{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/stepper.json\n    A multi-step form header: the steps with the current one marked (aria-current step), and the current step's text with back and next buttons. Axes: layout (horizontal, vertical), marker (number, icon), summary (show, hide).\n    Props (p): id, title, steps, current, stepLabel, back, next, layout, marker, summary, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_steps = (p.steps ?? null) -%}\n{%- set v_current = (p.current ?? 2) -%}\n{%- set v_stepLabel = (p.stepLabel ?? null) -%}\n{%- set v_back = (p.back ?? null) -%}\n{%- set v_next = (p.next ?? null) -%}\n{%- set v_layout = (p.layout ?? 'horizontal') -%}\n{%- set v_marker = (p.marker ?? 'number') -%}\n{%- set v_summary = (p.summary ?? 'show') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_14 -%}\n  {%- if og_t(og_gt(og_len(v_steps), 0)) %}\n    {%- set c_13 -%}\n      {%- set c_1 -%}\n        {{ og_text(og_tpl(v_stepLabel, [v_current, og_len(v_steps)])) }}\n      {%- endset -%}\n      {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_1}, with_context = false) }}\n      {%- set c_6 -%}\n        {%- for v_s in og_l(v_steps) %}\n          {%- set v_i = loop.index0 -%}\n          {%- set c_5 -%}\n            {%- set c_3 -%}\n              {%- if og_t(og_eq(v_marker, 'icon')) %}\n                {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_s, ['icon'])), 'size': 16}, with_context = false) }}\n              {%- else %}\n                {%- set c_2 -%}\n                  {{ og_text(og_str(og_add(v_i, 1))) }}\n                {%- endset -%}\n                {{ include('compose/Inline.html.twig', {'class': 'text-sm font-bold', 'children': c_2}, with_context = false) }}\n              {%- endif %}\n            {%- endset -%}\n            {{ include('compose/IconBadge.html.twig', {'variant': og_s((og_t(og_lt(og_add(v_i, 1), og_add(v_current, 1))) ? 'primary' : 'outline')), 'size': 'sm', 'class': og_s((og_t(og_lt(og_add(v_i, 1), og_add(v_current, 1))) ? 'text-sm' : 'text-sm text-muted-foreground')), 'children': c_3}, with_context = false) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_s, ['title'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': og_s((og_t(og_eq(og_add(v_i, 1), v_current)) ? 'bold' : 'semibold')), 'children': c_4}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/ListItem.html.twig', {'class': 'flex flex-1 items-center gap-4', 'attrs': og_attrs(['aria-current', (og_t(og_eq(og_add(v_i, 1), v_current)) ? 'step' : null), 'data-slot', 'item']), 'children': c_5}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/List.html.twig', {'tag': 'ol', 'class': og_s(og_cnv(['m-0 flex list-none gap-4 p-0', (og_t(og_eq(v_layout, 'vertical')) ? 'flex-col' : 'flex-col sm:flex-row')])), 'attrs': og_attrs(['data-slot', 'items']), 'children': c_6}, with_context = false) }}\n      {%- if og_t(og_eq(v_summary, 'show')) %}\n        {%- for v_s in og_l(v_steps) %}\n          {%- set v_i = loop.index0 -%}\n          {%- if og_t(og_eq(og_add(v_i, 1), v_current)) %}\n            {%- set c_12 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_s, ['title'])) }}\n              {%- endset -%}\n              {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_7}, with_context = false) }}\n              {%- set c_8 -%}\n                {{ og_text(og_get(v_s, ['text'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_8}, with_context = false) }}\n              {%- set c_11 -%}\n                {%- set c_9 -%}\n                  {{ og_text(v_back) }}\n                {%- endset -%}\n                {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'type': 'button', 'children': c_9}, with_context = false) }}\n                {%- set c_10 -%}\n                  {{ og_text(v_next) }}\n                {%- endset -%}\n                {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'sm', 'type': 'button', 'children': c_10}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'pt-2', 'children': c_11}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'class': 'rounded bg-card p-6 inset-ring inset-ring-border', 'attrs': og_attrs(['data-slot', 'step-summary']), 'children': c_12}, with_context = false) }}\n          {%- endif %}\n        {%- endfor %}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'stepper']), 'children': c_13}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'measure': '3xl', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_14)}, with_context = false) }}\n",
      "path": "blocks/stepper.html.twig",
      "target": "blocks/stepper.html.twig"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "setup",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "stepper",
  "registryDependencies": [
    "button",
    "group",
    "icon-badge",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Stepper",
  "type": "registry:block"
}
