{
  "$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/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/side-checks.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/checkbox\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/label\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// SideChecksProps are the props of SideChecks; the values are the JSON shapes of the TypeScript props.\ntype SideChecksProps struct {\n\tName any `json:\"name\"`\n\tLegend any `json:\"legend\"`\n\tOptions any `json:\"options\"`\n}\n\n// Extras to tick: a fieldset named by its legend, one checkbox per option with its note and price. Static markup.\ntempl SideChecks(p SideChecksProps) {\n\t{{ vName := p.Name }}\n\t{{ vLegend := p.Legend }}\n\t{{ vOptions := p.Options }}\n\t@compose.Fieldset(compose.FieldsetProps{BoxProps: box.BoxProps{Class: \"flex flex-col gap-2\", Attrs: uiutils.Attrs(\"data-slot\", \"sides\")}}) {\n\t\t@compose.Legend(compose.LegendProps{Size: \"sm\", TextProps: text.TextProps{Class: \"mb-2\"}}) {\n\t\t\t{ uiutils.Text(vLegend) }\n\t\t}\n\t\tfor _, vO := range uiutils.L(vOptions) {\n\t\t\t@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{Class: \"flex items-center justify-between gap-4 rounded px-4 py-2 text-sm inset-ring inset-ring-border has-checked:bg-muted\", Attrs: uiutils.Attrs(\"data-slot\", \"dish-option\")}}) {\n\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"flex items-center gap-2\"}}) {\n\t\t\t\t\t@compose.Checkbox(compose.CheckboxProps{CheckboxProps: checkbox.CheckboxProps{Name: uiutils.S(uiutils.Tpl(\"{0}-{1}\", vName, uiutils.Get(vO, \"id\"))), Value: uiutils.SP(\"on\")}})\n\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vO, \"name\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(\"{0} · {1}\", uiutils.Get(vO, \"note\"), uiutils.Money(uiutils.Get(vO, \"price\"), uiutils.Get(vO, \"currency\")))) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/side-checks.templ",
      "target": "blocks/side-checks.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "side-checks",
  "registryDependencies": [
    "checkbox",
    "fieldset",
    "inline",
    "kit-box",
    "kit-checkbox",
    "kit-label",
    "kit-text",
    "label",
    "legend",
    "utils"
  ],
  "runtime": "templ",
  "title": "Side Checks",
  "type": "registry:component"
}
