{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Pick a main, a side and a drink beside the total.",
  "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/combo-builder.json\n    A set (combo) builder: three numbered steps, each a radio group of cards with the price (main, side, drink), beside or under a summary with the live total and the order button. Axes: layout (split, stacked), tone.\n    Props (p): id, title, lead, labels, mains, sides, drinks, total, currency, layout, tone, landmarkLabel. *}\n{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_lead = ($p['lead'] ?? '')}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_mains = ($p['mains'] ?? null)}\n{var $v_sides = ($p['sides'] ?? null)}\n{var $v_drinks = ($p['drinks'] ?? null)}\n{var $v_total = ($p['total'] ?? null)}\n{var $v_currency = ($p['currency'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'split')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_9}\n  {capture $c_8}\n    {capture $c_1}\n      {=og_include('blocks/option-chips.latte', ['p' => ['name' => og_tpl('{0}-main', [$v_id]), 'legend' => og_get($v_labels, ['main']), 'options' => $v_mains, 'extra' => 'price', 'layout' => 'column']])|noescape}\n      {=og_include('blocks/option-chips.latte', ['p' => ['name' => og_tpl('{0}-side', [$v_id]), 'legend' => og_get($v_labels, ['side']), 'options' => $v_sides, 'extra' => 'price', 'layout' => 'column']])|noescape}\n      {=og_include('blocks/option-chips.latte', ['p' => ['name' => og_tpl('{0}-drink', [$v_id]), 'legend' => og_get($v_labels, ['drink']), 'options' => $v_drinks, 'extra' => 'price', 'layout' => 'column']])|noescape}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => og_s((og_t(og_eq($v_layout, 'split')) ? 'flex flex-col gap-8 lg:col-span-2' : 'flex flex-col gap-8 lg:col-span-3')), 'attrs' => og_attrs(['data-slot', 'steps']), 'children' => (string) $c_1])|noescape}\n    {capture $c_7}\n      {capture $c_2}\n        {=og_text(og_get($v_labels, ['summary']))}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => 'lg', 'weight' => 'semibold', 'children' => (string) $c_2])|noescape}\n      {capture $c_5}\n        {capture $c_3}\n          {=og_text(og_get($v_labels, ['total']))}\n        {/capture}\n        {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_3])|noescape}\n        {capture $c_4}\n          {=og_text(og_money($v_total, $v_currency))}\n        {/capture}\n        {=og_include('compose/Inline.latte', ['class' => 'text-2xl font-bold', 'attrs' => og_attrs(['role', 'status', 'aria-live', 'polite', 'data-slot', 'total']), 'children' => (string) $c_4])|noescape}\n      {/capture}\n      {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'baseline', 'justify' => 'between', 'children' => (string) $c_5])|noescape}\n      {capture $c_6}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'shopping-bag', 'size' => 16])|noescape}\n        {=og_text(og_get($v_labels, ['add']))}\n      {/capture}\n      {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'lg', 'type' => 'button', 'class' => 'w-full', 'children' => (string) $c_6])|noescape}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '4', 'class' => og_s((og_t(og_eq($v_layout, 'split')) ? 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6 lg:sticky lg:top-8' : 'rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6')), 'attrs' => og_attrs(['data-slot', 'summary']), 'children' => (string) $c_7])|noescape}\n  {/capture}\n  {=og_include('compose/Box.latte', ['class' => 'grid grid-cols-1 items-start gap-8 lg:grid-cols-3', 'children' => (string) $c_8])|noescape}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_9)])|noescape}\n",
      "path": "blocks/combo-builder.latte",
      "target": "blocks/combo-builder.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "combo-builder",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "inline",
    "lucide-icon",
    "option-chips",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Combo Builder",
  "type": "registry:block"
}
