{
  "$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 { For, type JSX } from \"solid-js\";\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 class=\"flex flex-col gap-2\" data-slot=\"sides\">\n      <Legend size=\"sm\" class=\"mb-2\">\n        {legend}\n      </Legend>\n      <For each={options ?? []}>{(o) => (\n        <Label\n          class={\"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 class=\"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 class=\"text-muted-foreground\">\n            {tpl(\"{0} · {1}\", o.note, fmtMoney(o.price, o.currency))}\n          </Inline>\n        </Label>\n      )}</For>\n    </Fieldset>\n  );\n}\n",
      "path": "components/side-checks.tsx",
      "target": "components/side-checks.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "side-checks",
  "registryDependencies": [
    "compose",
    "option-chips",
    "utils"
  ],
  "runtime": "solid",
  "title": "Side Checks",
  "type": "registry:component"
}
