{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_steps = ($p['steps'] ?? null)}\n{var $v_current = ($p['current'] ?? 2)}\n{var $v_stepLabel = ($p['stepLabel'] ?? null)}\n{var $v_back = ($p['back'] ?? null)}\n{var $v_next = ($p['next'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'horizontal')}\n{var $v_marker = ($p['marker'] ?? 'number')}\n{var $v_summary = ($p['summary'] ?? 'show')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_14}\n  {if og_t(og_gt(og_len($v_steps), 0))}\n    {capture $c_13}\n      {capture $c_1}\n        {=og_text(og_tpl($v_stepLabel, [$v_current, og_len($v_steps)]))}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_1])|noescape}\n      {capture $c_6}\n        {foreach og_l($v_steps) as $v_s}\n          {var $v_i = $iterator->counter0}\n          {capture $c_5}\n            {capture $c_3}\n              {if og_t(og_eq($v_marker, 'icon'))}\n                {=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_s, ['icon'])), 'size' => 16])|noescape}\n              {else}\n                {capture $c_2}\n                  {=og_text(og_str(og_add($v_i, 1)))}\n                {/capture}\n                {=og_include('compose/Inline.latte', ['class' => 'text-sm font-bold', 'children' => (string) $c_2])|noescape}\n              {/if}\n            {/capture}\n            {=og_include('compose/IconBadge.latte', ['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' => (string) $c_3])|noescape}\n            {capture $c_4}\n              {=og_text(og_get($v_s, ['title']))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => og_s((og_t(og_eq(og_add($v_i, 1), $v_current)) ? 'bold' : 'semibold')), 'children' => (string) $c_4])|noescape}\n          {/capture}\n          {=og_include('compose/ListItem.latte', ['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' => (string) $c_5])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/List.latte', ['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' => (string) $c_6])|noescape}\n      {if og_t(og_eq($v_summary, 'show'))}\n        {foreach og_l($v_steps) as $v_s}\n          {var $v_i = $iterator->counter0}\n          {if og_t(og_eq(og_add($v_i, 1), $v_current))}\n            {capture $c_12}\n              {capture $c_7}\n                {=og_text(og_get($v_s, ['title']))}\n              {/capture}\n              {=og_include('compose/Title.latte', ['as' => 3, 'size' => 'xl', 'weight' => 'bold', 'children' => (string) $c_7])|noescape}\n              {capture $c_8}\n                {=og_text(og_get($v_s, ['text']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_8])|noescape}\n              {capture $c_11}\n                {capture $c_9}\n                  {=og_text($v_back)}\n                {/capture}\n                {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'sm', 'type' => 'button', 'children' => (string) $c_9])|noescape}\n                {capture $c_10}\n                  {=og_text($v_next)}\n                {/capture}\n                {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'sm', 'type' => 'button', 'children' => (string) $c_10])|noescape}\n              {/capture}\n              {=og_include('compose/Group.latte', ['gap' => '2', 'class' => 'pt-2', 'children' => (string) $c_11])|noescape}\n            {/capture}\n            {=og_include('compose/Stack.latte', ['gap' => '2', 'class' => 'rounded bg-card p-6 inset-ring inset-ring-border', 'attrs' => og_attrs(['data-slot', 'step-summary']), 'children' => (string) $c_12])|noescape}\n          {/if}\n        {/foreach}\n      {/if}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '6', 'align' => 'stretch', 'attrs' => og_attrs(['data-slot', 'stepper']), 'children' => (string) $c_13])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'measure' => '3xl', 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_14)])|noescape}\n",
      "path": "blocks/stepper.latte",
      "target": "blocks/stepper.latte"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "setup",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "stepper",
  "registryDependencies": [
    "button",
    "group",
    "icon-badge",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "latte",
  "title": "Stepper",
  "type": "registry:block"
}
