{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Extras to tick: a fieldset named by its legend, one checkbox per option with its note and price. Static markup.",
  "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 * Extras to tick: a fieldset named by its legend, one checkbox per option with its note and price. Static\n * markup.\n */\nimport { type ReactNode } from \"react\";\nimport { Checkbox, Fieldset, Inline, Label, Legend } from \"../compose\";\nimport { fmtMoney, tpl } from \"../utils\";\nimport type { DishOption } from \"./option-chips.types\";\n\nexport type SideChecksProps = {\n  name: string;\n  legend: string;\n  options: DishOption[];\n};\n\nexport function SideChecks({ name, legend, options }: SideChecksProps) {\n  return (\n    <Fieldset className=\"flex flex-col gap-2\" data-slot=\"sides\">\n      <Legend size=\"sm\" className=\"mb-2\">\n        {legend}\n      </Legend>\n      {(options ?? []).map((o) => (\n        <Label key={o.id}\n          className={\"flex items-center justify-between gap-4 rounded px-4 py-2 text-sm inset-ring inset-ring-border has-checked:bg-muted\"}\n          data-slot=\"dish-option\"\n        >\n          <Inline className=\"flex items-center gap-2\">\n            <Checkbox name={tpl(\"{0}-{1}\", name, o.id)} value=\"on\" />\n            <Inline>\n              {o.name}\n            </Inline>\n          </Inline>\n          <Inline className=\"text-muted-foreground\">\n            {tpl(\"{0} · {1}\", o.note, fmtMoney(o.price, o.currency))}\n          </Inline>\n        </Label>\n      ))}\n    </Fieldset>\n  );\n}\n",
      "path": "components/side-checks.tsx",
      "target": "components/side-checks.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "side-checks",
  "registryDependencies": [
    "compose",
    "option-chips",
    "utils"
  ],
  "runtime": "react",
  "title": "Side Checks",
  "type": "registry:component"
}
