{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The steps of MediaList as numbered rows: the number, a glyph, the title and the text.",
  "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/** The steps of MediaList as numbered rows: the number, a glyph, the title and the text. */\nimport { type ReactNode } from \"react\";\nimport { Group, Inline, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { tpl } from \"../utils\";\nimport type { MediaExtras, MediaListLabels } from \"../blocks/media-list.types\";\n\nexport type MediaStepsProps = {\n  extras: MediaExtras;\n  labels: MediaListLabels;\n};\n\nexport function MediaSteps({ extras, labels }: MediaStepsProps) {\n  return (\n    <Stack gap=\"4\" align=\"stretch\" data-slot=\"media-steps\">\n      <Text size=\"sm\" weight=\"semibold\">\n        {labels.list}\n      </Text>\n      {(extras.steps ?? []).map((s, i) => (\n        <Group key={s.id} gap=\"4\" align=\"start\" data-slot=\"media-step\">\n          <Text size=\"sm\" weight=\"semibold\" className=\"w-6 shrink-0 text-primary\">\n            {tpl(\"0{0}\", ((i + 1) == null ? undefined : String((i + 1))))}\n          </Text>\n          <Inline className=\"flex size-6 shrink-0 items-center justify-center text-primary\">\n            <LucideIcon name={s.icon} size={16} />\n          </Inline>\n          <Stack gap=\"0\">\n            <Text size=\"sm\" weight=\"semibold\">\n              {s.title}\n            </Text>\n            <Text size=\"sm\" className=\"text-muted-foreground\">\n              {s.text}\n            </Text>\n          </Stack>\n        </Group>\n      ))}\n    </Stack>\n  );\n}\n",
      "path": "components/media-steps.tsx",
      "target": "components/media-steps.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "media-steps",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "media-list",
    "utils"
  ],
  "runtime": "react",
  "title": "Media Steps",
  "type": "registry:component"
}
