{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A multi-step form header with the current step.",
  "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  A multi-step form header: the steps with the current one marked (aria-current step), and the current step's\n  text with back and next buttons. Axes: layout (horizontal, vertical), marker (number, icon), summary (show,\n  hide).\n-->\n<script lang=\"ts\">\nimport type { Step } from \"./steps-list.types\";\n\nexport type StepperProps = {\n  id: string;\n  title: string;\n  steps: Step[];\n  current?: number;\n  stepLabel: string;\n  back: string;\n  next: string;\n  layout?: \"horizontal\" | \"vertical\";\n  marker?: \"number\" | \"icon\";\n  summary?: \"show\" | \"hide\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Button from \"../compose/Button.vue\";\nimport Group from \"../compose/Group.vue\";\nimport IconBadge from \"../compose/IconBadge.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { cn, tpl } from \"../utils\";\n\nconst {\n  id,\n  title,\n  steps,\n  current = 2,\n  stepLabel,\n  back,\n  next,\n  layout = \"horizontal\",\n  marker = \"number\",\n  summary = \"show\",\n  landmarkLabel,\n} = defineProps<StepperProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" measure=\"3xl\" :landmarkLabel=\"landmarkLabel\">\n    <Stack v-if=\"((steps?.length ?? 0) > 0)\" gap=\"6\" align=\"stretch\" data-slot=\"stepper\">\n      <Text size=\"sm\" class=\"text-muted-foreground\">\n        {{ tpl(stepLabel, current, (steps?.length ?? 0)) }}\n      </Text>\n      <List\n        tag=\"ol\"\n        :class=\"cn(\n          'm-0 flex list-none gap-4 p-0',\n          (((layout as string) === 'vertical') ? 'flex-col' : 'flex-col sm:flex-row')\n        )\"\n        data-slot=\"items\"\n      >\n        <ListItem v-for=\"(s, i) in steps\" :key=\"s.id\"\n          class=\"flex flex-1 items-center gap-4\"\n          :aria-current=\"(((i + 1) === current) ? 'step' : undefined)\"\n          data-slot=\"item\"\n        >\n          <IconBadge\n            :variant=\"(((i + 1) < (current + 1)) ? 'primary' : 'outline')\"\n            size=\"sm\"\n            :class=\"(((i + 1) < (current + 1)) ? 'text-sm' : 'text-sm text-muted-foreground')\"\n          >\n            <LucideIcon v-if=\"((marker as string) === 'icon')\" :name=\"s.icon\" :size=\"16\" />\n            <Inline v-else class=\"text-sm font-bold\">\n              {{ ((i + 1) == null ? undefined : String((i + 1))) }}\n            </Inline>\n          </IconBadge>\n          <Text size=\"sm\" :weight=\"(((i + 1) === current) ? 'bold' : 'semibold')\">\n            {{ s.title }}\n          </Text>\n        </ListItem>\n      </List>\n      <template v-if=\"((summary as string) === 'show')\">\n        <template v-for=\"(s, i) in steps\" :key=\"s.id\">\n          <Stack\n            v-if=\"((i + 1) === current)\"\n            gap=\"2\"\n            class=\"rounded bg-card p-6 inset-ring inset-ring-border\"\n            data-slot=\"step-summary\"\n          >\n            <Title :as=\"3\" size=\"xl\" weight=\"bold\">\n              {{ s.title }}\n            </Title>\n            <Text size=\"sm\" class=\"text-muted-foreground\">\n              {{ s.text }}\n            </Text>\n            <Group gap=\"2\" class=\"pt-2\">\n              <Button variant=\"outline\" size=\"sm\" type=\"button\">\n                {{ back }}\n              </Button>\n              <Button variant=\"default\" size=\"sm\" type=\"button\">\n                {{ next }}\n              </Button>\n            </Group>\n          </Stack>\n        </template>\n      </template>\n    </Stack>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/stepper.vue",
      "target": "blocks/stepper.vue"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "setup",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "stepper",
  "registryDependencies": [
    "button",
    "group",
    "icon-badge",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "steps-list",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Stepper",
  "type": "registry:block"
}
