{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Side Checks component",
  "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-->\n<script lang=\"ts\">\nimport type { DishOption } from \"./option-chips.types\";\n\nexport type SideChecksProps = {\n  name: string;\n  legend: string;\n  options: DishOption[];\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Checkbox from \"../compose/Checkbox.vue\";\nimport Fieldset from \"../compose/Fieldset.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport Label from \"../compose/Label.vue\";\nimport Legend from \"../compose/Legend.vue\";\nimport { fmtMoney, tpl } from \"../utils\";\n\nconst { name, legend, options } = defineProps<SideChecksProps>();\n</script>\n\n<template>\n  <Fieldset class=\"flex flex-col gap-2\" data-slot=\"sides\">\n    <Legend size=\"sm\" class=\"mb-2\">\n      {{ legend }}\n    </Legend>\n    <Label v-for=\"o in options\" :key=\"o.id\"\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  </Fieldset>\n</template>\n",
      "path": "components/side-checks.vue",
      "target": "components/side-checks.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "side-checks",
  "registryDependencies": [
    "checkbox",
    "fieldset",
    "inline",
    "label",
    "legend",
    "option-chips",
    "utils"
  ],
  "runtime": "vue",
  "title": "Side Checks",
  "type": "registry:component"
}
