{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Story Panel component",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  The panel of the active step of StoryTabs: the year badge and the step count, the title, the text and the tag\n  in a muted box.\n-->\n<script lang=\"ts\">\nimport type { Milestone } from \"../blocks/milestone-timeline.types\";\nimport type { StoryLabels } from \"../blocks/story-tabs.types\";\n\nexport type StoryPanelProps = {\n  s: Milestone;\n  index: number;\n  total: number;\n  labels: StoryLabels;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Badge from \"../compose/Badge.vue\";\nimport Box from \"../compose/Box.vue\";\nimport Group from \"../compose/Group.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport { tpl } from \"../utils\";\n\nconst { s, index, total, labels } = defineProps<StoryPanelProps>();\n</script>\n\n<template>\n  <Stack gap=\"4\" align=\"stretch\" class=\"rounded bg-card inset-ring inset-ring-border p-6\" data-slot=\"story-panel\">\n    <Group gap=\"2\" align=\"center\">\n      <Badge variant=\"secondary\" size=\"sm\">\n        {{ s.date }}\n      </Badge>\n      <Text size=\"xs\" class=\"text-muted-foreground\">\n        {{ tpl(labels.step, ((index + 1) == null ? undefined : String((index + 1))), (total == null ? undefined : String(total))) }}\n      </Text>\n    </Group>\n    <Title :as=\"3\" size=\"xl\" weight=\"semibold\">\n      {{ s.title }}\n    </Title>\n    <Text size=\"sm\" class=\"text-muted-foreground\">\n      {{ s.text }}\n    </Text>\n    <Box class=\"rounded bg-muted p-4\">\n      <Text size=\"sm\" weight=\"semibold\">\n        {{ s.tag }}\n      </Text>\n    </Box>\n  </Stack>\n</template>\n",
      "path": "components/story-panel.vue",
      "target": "components/story-panel.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "story-panel",
  "registryDependencies": [
    "badge",
    "box",
    "group",
    "milestone-timeline",
    "stack",
    "story-tabs",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Story Panel",
  "type": "registry:component"
}
