{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Choose the meat, the weight and the sides of a grill (mangal) dish.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * A grill (mangal) dish builder: the meat as picture cards in a radio group, the weight as chips, the sides as\n * checkboxes with prices, then a summary with the live total and the order button. Axes: layout (split,\n * stacked), tone.\n */\nimport { type JSX } from \"solid-js\";\nimport { Box, Button, Group, Inline, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MeatCards } from \"../components/meat-cards\";\nimport { OptionChips } from \"../components/option-chips\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { SideChecks } from \"../components/side-checks\";\nimport { fmtMoney, tpl } from \"../utils\";\nimport type { Dish, FoodLabels } from \"./dish-showcase.types\";\nimport type { DishOption } from \"../components/option-chips.types\";\n\nexport type GrillBuilderProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  labels: FoodLabels;\n  meats: DishOption[];\n  weights: DishOption[];\n  sides: DishOption[];\n  total: number;\n  currency: string;\n  layout?: \"split\" | \"stacked\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n\nexport function GrillBuilder({\n  id,\n  title,\n  lead = \"\",\n  labels,\n  meats,\n  weights,\n  sides,\n  total,\n  currency,\n  layout = \"split\",\n  tone = \"default\",\n  landmarkLabel,\n}: GrillBuilderProps) {\n  return (\n    <SectionFrame id={id} title={title} lead={lead} tone={tone} landmarkLabel={landmarkLabel}>\n      <Box class=\"grid grid-cols-1 items-start gap-8 lg:grid-cols-3\">\n        <Box\n          class={\n            (layout as string) === \"split\" ? \"flex flex-col gap-8 lg:col-span-2\"\n            : \"flex flex-col gap-8 lg:col-span-3\"\n          }\n          data-slot=\"steps\"\n        >\n          <MeatCards name={tpl(\"{0}-meat\", id)} legend={labels.meat} options={meats} />\n          <OptionChips name={tpl(\"{0}-weight\", id)} legend={labels.weight} options={weights} extra=\"note\" />\n          <SideChecks name={tpl(\"{0}-sides\", id)} legend={labels.sides} options={sides} />\n        </Box>\n        <Stack\n          gap=\"4\"\n          class={\n            (layout as string) === \"split\" ? \"rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6 lg:sticky lg:top-8\"\n            : \"rounded bg-card inset-ring inset-ring-border flex flex-col gap-4 p-6\"\n          }\n          data-slot=\"summary\"\n        >\n          <Text size=\"lg\" weight=\"semibold\">\n            {labels.summary}\n          </Text>\n          <Group gap=\"2\" align=\"baseline\" justify=\"between\">\n            <Text size=\"sm\" class=\"text-muted-foreground\">\n              {labels.total}\n            </Text>\n            <Inline class=\"text-2xl font-bold\" role=\"status\" aria-live=\"polite\" data-slot=\"total\">\n              {fmtMoney(total, currency)}\n            </Inline>\n          </Group>\n          <Button variant=\"default\" size=\"lg\" type=\"button\" class=\"w-full\">\n            <LucideIcon name=\"shopping-bag\" size={16} />\n            {labels.add}\n          </Button>\n        </Stack>\n      </Box>\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/grill-builder.tsx",
      "target": "blocks/grill-builder.tsx"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "grill-builder",
  "registryDependencies": [
    "compose",
    "dish-showcase",
    "lucide-icon",
    "meat-cards",
    "option-chips",
    "section-frame",
    "side-checks",
    "utils"
  ],
  "runtime": "solid",
  "title": "Grill Builder",
  "type": "registry:block"
}
