{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A sign-up in steps with a progress bar or a list of steps; back and next move between them.",
  "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/signup-wizard.json\n    A sign-up in steps: the progress, the fields of the current step, back and next. `current` is the step shown, counted from 1. Axes: progress (bar, list: every step named), layout (card, plain). Keeping the typed values between steps is the page's job.\n    Props (p): id, title, steps, labels, current, level, progress, layout, 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_labels = og_def(p['labels'], none) -%}\n{%- set v_current = og_def(p['current'], 1) -%}\n{%- set v_level = og_def(p['level'], 2) -%}\n{%- set v_progress = og_def(p['progress'], 'bar') -%}\n{%- set v_layout = og_def(p['layout'], 'card') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- if og_t(og_gt(og_len(v_steps), 0)) %}\n  {%- set c_14 -%}\n    {%- set c_1 -%}\n      {{ og_text(v_title) }}\n    {%- endset -%}\n    {{ og_include('compose/title.html.j2', {'p': {'As': og_i(v_level), 'Size': '2xl', 'Weight': 'bold', 'Attrs': og_attrs(['id', og_tpl('{0}-title', [v_id])])}, 'children': c_1}) }}\n    {%- set c_2 -%}\n      {{ og_text(og_tpl(og_get(v_labels, ['stepOf']), [v_current, og_len(v_steps)])) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'step-of'])}, 'children': c_2}) }}\n    {%- if og_t(og_eq(v_progress, 'bar')) %}\n      {{ og_include('compose/progress.html.j2', {'p': {'Value': og_s(og_str(v_current)), 'Max': og_s(og_str(og_len(v_steps))), 'Attrs': og_attrs(['aria-label', og_get(v_labels, ['steps'])])}}) }}\n    {%- endif %}\n    {%- if og_t(og_eq(v_progress, 'list')) %}\n      {%- set c_4 -%}\n        {%- for v_s in og_l(v_steps) %}\n          {%- set v_i = loop.index0 -%}\n          {%- set c_3 -%}\n            {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(('circle-check' if og_t(og_lt(og_add(v_i, 1), v_current)) else og_get(v_s, ['icon']))), 'Size': 16}}) }}\n            {{ og_text(og_get(v_s, ['title'])) }}\n          {%- endset -%}\n          {{ og_include('compose/list-item.html.j2', {'p': {'Class': og_s(og_cnv(['flex items-center gap-4 text-sm', ('font-semibold' if og_t(og_eq(og_add(v_i, 1), v_current)) else 'text-muted-foreground')])), 'Attrs': og_attrs(['aria-current', ('step' if og_t(og_eq(og_add(v_i, 1), v_current)) else none), 'data-slot', 'step-item'])}, 'children': c_3}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-0', 'Attrs': og_attrs(['aria-label', og_get(v_labels, ['steps']), 'data-slot', 'step-list'])}, 'children': c_4}) }}\n    {%- endif %}\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_10 -%}\n          {%- set c_5 -%}\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_5}) }}\n          {%- set c_6 -%}\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_6}) }}\n          {%- set c_9 -%}\n            {%- set c_7 -%}\n              {{ og_include('compose/input.html.j2', {'p': {'Type': 'text', 'Name': og_s(og_tpl('{0}-a', [v_id])), 'Attrs': og_attrs(['id', og_tpl('{0}-a', [v_id]), 'data-slot', 'field'])}}) }}\n            {%- endset -%}\n            {{ og_include('blocks/field.html.j2', {'p': {'label': og_get(v_s, ['fieldA']), 'htmlFor': og_tpl('{0}-a', [v_id])}, 'children': og_markup(c_7)}) }}\n            {%- set c_8 -%}\n              {{ og_include('compose/input.html.j2', {'p': {'Type': 'text', 'Name': og_s(og_tpl('{0}-b', [v_id])), 'Attrs': og_attrs(['id', og_tpl('{0}-b', [v_id]), 'data-slot', 'field'])}}) }}\n            {%- endset -%}\n            {{ og_include('blocks/field.html.j2', {'p': {'label': og_get(v_s, ['fieldB']), 'htmlFor': og_tpl('{0}-b', [v_id])}, 'children': og_markup(c_8)}) }}\n          {%- endset -%}\n          {{ og_include('compose/box.html.j2', {'p': {'Class': 'grid gap-4'}, 'children': c_9}) }}\n        {%- endset -%}\n        {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'step'])}, 'children': c_10}) }}\n      {%- endif %}\n    {%- endfor %}\n    {%- set c_13 -%}\n      {%- set c_11 -%}\n        {{ og_text(og_get(v_labels, ['back'])) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'default', 'Type': 'button', 'Disabled': og_t(og_lt(v_current, 2))}, 'children': c_11}) }}\n      {%- set c_12 -%}\n        {{ og_text((og_get(v_labels, ['finish']) if og_t(og_ge(v_current, og_len(v_steps))) else og_get(v_labels, ['next']))) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'button'}, 'children': c_12}) }}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Justify': 'between'}, 'children': c_13}) }}\n  {%- endset -%}\n  {{ og_include('compose/block.html.j2', {'p': {'Tag': 'section', 'Class': og_s(og_cnv(['mx-auto flex w-full max-w-lg flex-col gap-6 px-4 py-8', ('rounded bg-card p-6 inset-ring inset-ring-border' if og_t(og_eq(v_layout, 'card')) else '')])), 'Attrs': og_attrs(['aria-labelledby', (none if og_t(v_landmarkLabel) else og_tpl('{0}-title', [v_id])), 'data-current', og_str(v_current), 'aria-label', v_landmarkLabel, 'data-slot', 'wizard'])}, 'children': c_14}) }}\n{%- endif %}\n",
      "path": "blocks/signup-wizard.html.j2",
      "target": "blocks/signup-wizard.html.j2"
    }
  ],
  "meta": {
    "category": "account",
    "group": "auth",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "signup-wizard",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "field",
    "group",
    "input",
    "list",
    "list-item",
    "lucide-icon",
    "progress",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Signup Wizard",
  "type": "registry:block"
}
