{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "step-indicator",
  "type": "registry:item",
  "title": "Step Indicator",
  "description": "Where a multi-step flow is: steps done (which can be revisited), the current one, and those ahead. `readonly` shows where something is without offering to go back (an order's status): plain list items, not buttons. `current` past the last step shows every step done.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "display"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/step-indicator.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/step-indicator.js",
      "content": "// Generated by zubra from step-indicator.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\nimport { emit } from '@zubra/runtime';\n\nexport const tag = \"step-indicator\";\n\nexport default $define(tag, {\n  props: {\n    \"steps\": { attribute: \"steps\", default: [], required: false },\n    \"current\": { attribute: \"current\", default: 0, required: false },\n    \"readonly\": { attribute: \"readonly\", default: false, required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [],\n  events: [\"stepselect\"],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (step-indicator) to ([data-zb-slotted=\\\"step-indicator\\\"]) {\\n  /* The list fills its nav even when the page lays navs out as flex rows (`nav { display: flex }`). */\\n  ol { display: flex; flex: 1; width: 100%; gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }\\n  li { flex: 1; }\\n  .step { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.6rem 0.25rem 0.5rem; border: 0; border-top: 3px solid var(--border, #dde); background: none; color: var(--muted-foreground, #667); font: inherit; font-size: 0.875rem; font-weight: 600; text-align: left; }\\n  .step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--border, #dde); color: var(--foreground, #111); font-size: 0.75rem; }\\n  .done .step { border-top-color: var(--primary, #36c); color: var(--foreground, #111); }\\n  .done button { cursor: pointer; }\\n  .done .step::before { content: \\\"✓\\\"; background: var(--primary, #36c); color: var(--primary-foreground, white); }\\n  .current .step { border-top-color: var(--primary, #36c); color: var(--primary, #36c); }\\n  .current .step::before { background: var(--primary, #36c); color: var(--primary-foreground, white); }\\n  button:disabled { cursor: default; }\\n  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\\n  /* Narrow: numbers only, except read-only, where the labels are the point. */\\n  @media (max-width: 36rem) { button .label { display: none; } }\\n}\\n}\\n\",\n  template: \"\\n  <nav aria-label=\\\"Progress\\\">\\n    <ol>\\n      <!--[--><!--]-->\\n    </ol>\\n  </nav>\\n\",\n  setup($p, $emit) {\n    const emit = $emit;\n    return [\n      { path: [0, 0, 0], each: () => $p.steps, key: (step, index) => $r(step), block: { template: \"\\n        <li>\\n          <!--[--><!--]-->\\n        </li>\\n      \", parts: (step, index) => [{ path: [0], toggle: \"done\", value: () => ($r(index) < $p.current) }, { path: [0], toggle: \"current\", value: () => ($r(index) === $p.current) }, { path: [0], attribute: \"aria-current\", value: () => (($p.readonly && ($r(index) === $p.current)) ? \"step\" : null) }, { path: [0, 0], when: () => $p.readonly, blocks: [{ template: \"<span class=\\\"step\\\"><span class=\\\"label\\\"></span><!--[--><!--]--></span>\", parts: () => [{ path: [0, 0], text: () => $t($r(step)) }, { path: [0, 1], when: () => ($r(index) < $p.current), blocks: [{ template: \"<span class=\\\"sr-only\\\"> (done)</span>\", parts: () => [] }, null] }] }, { template: \"<button type=\\\"button\\\" class=\\\"step\\\"><span class=\\\"label\\\"></span></button>\", parts: () => [{ path: [0], attribute: \"disabled\", boolean: true, value: () => ($r(index) >= $p.current) }, { path: [0], attribute: \"aria-current\", value: () => (($r(index) === $p.current) ? \"step\" : \"false\") }, { path: [0], on: \"click\", handler: () => (() => emit('stepselect', $r(index))) }, { path: [0, 0], text: () => $t($r(step)) }] }] }] } },\n    ];\n  },\n});\n"
    }
  ]
}
