{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The panel of the active step of StoryTabs: the year badge and the step count, the title, the text and the tag in a muted box.",
  "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 */\nimport { type ReactNode } from \"react\";\nimport { Badge, Box, Group, Stack, Text, Title } from \"../compose\";\nimport { tpl } from \"../utils\";\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\nexport function StoryPanel({ s, index, total, labels }: StoryPanelProps) {\n  return (\n    <Stack\n      gap=\"4\"\n      align=\"stretch\"\n      className=\"rounded bg-card inset-ring inset-ring-border p-6\"\n      data-slot=\"story-panel\"\n    >\n      <Group gap=\"2\" align=\"center\">\n        <Badge variant=\"secondary\" size=\"sm\">\n          {s.date}\n        </Badge>\n        <Text size=\"xs\" className=\"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\" className=\"text-muted-foreground\">\n        {s.text}\n      </Text>\n      <Box className=\"rounded bg-muted p-4\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {s.tag}\n        </Text>\n      </Box>\n    </Stack>\n  );\n}\n",
      "path": "components/story-panel.tsx",
      "target": "components/story-panel.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "story-panel",
  "registryDependencies": [
    "compose",
    "milestone-timeline",
    "story-tabs",
    "utils"
  ],
  "runtime": "react",
  "title": "Story Panel",
  "type": "registry:component"
}
