{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_steps = og_def(p['steps'], none) -%}\n{%- set v_current = og_def(p['current'], 2) -%}\n{%- set v_stepLabel = og_def(p['stepLabel'], none) -%}\n{%- set v_back = og_def(p['back'], none) -%}\n{%- set v_next = og_def(p['next'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'horizontal') -%}\n{%- set v_marker = og_def(p['marker'], 'number') -%}\n{%- set v_summary = og_def(p['summary'], 'show') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\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      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_1}) }}\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                {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_s, ['icon'])), 'Size': 16}}) }}\n              {%- else %}\n                {%- set c_2 -%}\n                  {{ og_text(og_str(og_add(v_i, 1))) }}\n                {%- endset -%}\n                {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-sm font-bold'}, 'children': c_2}) }}\n              {%- endif %}\n            {%- endset -%}\n            {{ og_include('compose/icon-badge.html.j2', {'p': {'Variant': og_s(('primary' if og_t(og_lt(og_add(v_i, 1), og_add(v_current, 1))) else 'outline')), 'Size': 'sm', 'Class': og_s(('text-sm' if og_t(og_lt(og_add(v_i, 1), og_add(v_current, 1))) else 'text-sm text-muted-foreground'))}, 'children': c_3}) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_s, ['title'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': og_s(('bold' if og_t(og_eq(og_add(v_i, 1), v_current)) else 'semibold'))}, 'children': c_4}) }}\n          {%- endset -%}\n          {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex flex-1 items-center gap-4', 'Attrs': og_attrs(['aria-current', ('step' if og_t(og_eq(og_add(v_i, 1), v_current)) else none), 'data-slot', 'item'])}, 'children': c_5}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ol', 'Class': og_s(og_cnv(['m-0 flex list-none gap-4 p-0', ('flex-col' if og_t(og_eq(v_layout, 'vertical')) else 'flex-col sm:flex-row')])), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_6}) }}\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              {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}\n              {%- set c_8 -%}\n                {{ og_text(og_get(v_s, ['text'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}) }}\n              {%- set c_11 -%}\n                {%- set c_9 -%}\n                  {{ og_text(v_back) }}\n                {%- endset -%}\n                {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm', 'Type': 'button'}, 'children': c_9}) }}\n                {%- set c_10 -%}\n                  {{ og_text(v_next) }}\n                {%- endset -%}\n                {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'sm', 'Type': 'button'}, 'children': c_10}) }}\n              {%- endset -%}\n              {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Class': 'pt-2'}, 'children': c_11}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Class': 'rounded bg-card p-6 inset-ring inset-ring-border', 'Attrs': og_attrs(['data-slot', 'step-summary'])}, 'children': c_12}) }}\n          {%- endif %}\n        {%- endfor %}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '6', 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'stepper'])}, 'children': c_13}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'measure': '3xl', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_14)}) }}\n",
      "path": "blocks/stepper.html.j2",
      "target": "blocks/stepper.html.j2"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "setup",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "stepper",
  "registryDependencies": [
    "button",
    "group",
    "icon-badge",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Stepper",
  "type": "registry:block"
}
