{
  "$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 = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_steps = (p.steps ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_current = (p.current ?? 1) -%}\n{%- set v_level = (p.level ?? 2) -%}\n{%- set v_progress = (p.progress ?? 'bar') -%}\n{%- set v_layout = (p.layout ?? 'card') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\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    {{ include('compose/Title.html.twig', {'as': og_i(v_level), 'size': '2xl', 'weight': 'bold', 'attrs': og_attrs(['id', og_tpl('{0}-title', [v_id])]), 'children': c_1}, with_context = false) }}\n    {%- set c_2 -%}\n      {{ og_text(og_tpl(og_get(v_labels, ['stepOf']), [v_current, og_len(v_steps)])) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'attrs': og_attrs(['data-slot', 'step-of']), 'children': c_2}, with_context = false) }}\n    {%- if og_t(og_eq(v_progress, 'bar')) %}\n      {{ include('compose/Progress.html.twig', {'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'])])}, with_context = false) }}\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            {{ include('icons/LucideIcon.html.twig', {'name': og_s((og_t(og_lt(og_add(v_i, 1), v_current)) ? 'circle-check' : og_get(v_s, ['icon']))), 'size': 16}, with_context = false) }}\n            {{ og_text(og_get(v_s, ['title'])) }}\n          {%- endset -%}\n          {{ include('compose/ListItem.html.twig', {'class': og_s(og_cnv(['flex items-center gap-4 text-sm', (og_t(og_eq(og_add(v_i, 1), v_current)) ? 'font-semibold' : 'text-muted-foreground')])), 'attrs': og_attrs(['aria-current', (og_t(og_eq(og_add(v_i, 1), v_current)) ? 'step' : null), 'data-slot', 'step-item']), 'children': c_3}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/List.html.twig', {'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}, with_context = false) }}\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          {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_5}, with_context = false) }}\n          {%- set c_6 -%}\n            {{ og_text(og_get(v_s, ['text'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_6}, with_context = false) }}\n          {%- set c_9 -%}\n            {%- set c_7 -%}\n              {{ include('compose/Input.html.twig', {'type': 'text', 'name': og_s(og_tpl('{0}-a', [v_id])), 'attrs': og_attrs(['id', og_tpl('{0}-a', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_s, ['fieldA']), 'htmlFor': og_tpl('{0}-a', [v_id])}, 'children': og_markup(c_7)}, with_context = false) }}\n            {%- set c_8 -%}\n              {{ include('compose/Input.html.twig', {'type': 'text', 'name': og_s(og_tpl('{0}-b', [v_id])), 'attrs': og_attrs(['id', og_tpl('{0}-b', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_s, ['fieldB']), 'htmlFor': og_tpl('{0}-b', [v_id])}, 'children': og_markup(c_8)}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Box.html.twig', {'class': 'grid gap-4', 'children': c_9}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'step']), 'children': c_10}, with_context = false) }}\n      {%- endif %}\n    {%- endfor %}\n    {%- set c_13 -%}\n      {%- set c_11 -%}\n        {{ og_text(og_get(v_labels, ['back'])) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'default', 'type': 'button', 'disabled': og_t(og_lt(v_current, 2)), 'children': c_11}, with_context = false) }}\n      {%- set c_12 -%}\n        {{ og_text((og_t(og_ge(v_current, og_len(v_steps))) ? og_get(v_labels, ['finish']) : og_get(v_labels, ['next']))) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'type': 'button', 'children': c_12}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'justify': 'between', 'children': c_13}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Block.html.twig', {'tag': 'section', 'class': og_s(og_cnv(['mx-auto flex w-full max-w-lg flex-col gap-6 px-4 py-8', (og_t(og_eq(v_layout, 'card')) ? 'rounded bg-card p-6 inset-ring inset-ring-border' : '')])), 'attrs': og_attrs(['aria-labelledby', (og_t(v_landmarkLabel) ? null : og_tpl('{0}-title', [v_id])), 'data-current', og_str(v_current), 'aria-label', v_landmarkLabel, 'data-slot', 'wizard']), 'children': c_14}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/signup-wizard.html.twig",
      "target": "blocks/signup-wizard.html.twig"
    }
  ],
  "meta": {
    "category": "account",
    "group": "auth",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "signup-wizard",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "field",
    "group",
    "input",
    "list",
    "list-item",
    "lucide-icon",
    "progress",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Signup Wizard",
  "type": "registry:block"
}
