{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Delivery windows by day: each day lists its windows as radio chips; closed windows are disabled and struck through. One radio group (`name`) across all days. 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/slot-grid.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\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/radio\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// SlotGridProps are the props of SlotGrid; the values are the JSON shapes of the TypeScript props.\ntype SlotGridProps struct {\n\tDays any `json:\"days\"`\n\tName any `json:\"name\"`\n\tItem any `json:\"item\"`\n}\n\n// Delivery windows by day: each day lists its windows as radio chips; closed windows are disabled and struck through. One radio group (`name`) across all days. Static markup.\ntempl SlotGrid(p SlotGridProps) {\n\t{{ vDays := p.Days }}\n\t{{ vName := p.Name }}\n\t{{ vItem := uiutils.Def(p.Item, \"card\") }}\n\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"days\")}}) {\n\t\tfor _, vD := range uiutils.L(vDays) {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vItem, \"card\")), \"rounded bg-card inset-ring inset-ring-border p-4\", \"border-b border-border pb-4\")), Attrs: uiutils.Attrs(\"data-slot\", \"day\")}}) {\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"baseline\", Justify: \"between\", BoxProps: box.BoxProps{Class: \"flex-wrap\"}}) {\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vD, \"title\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vD, \"note\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"grid grid-cols-2 gap-2 sm:grid-cols-3\"}}) {\n\t\t\t\t\tfor _, vS := range uiutils.L(uiutils.Get(vD, \"slots\")) {\n\t\t\t\t\t\t@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{Class: \"flex items-center gap-2 rounded px-4 py-2 text-sm inset-ring inset-ring-border has-checked:bg-muted has-checked:inset-ring-foreground\", Attrs: uiutils.Attrs(\"data-slot\", \"slots-row\")}}) {\n\t\t\t\t\t\t\t@compose.Radio(compose.RadioProps{RadioProps: radio.RadioProps{Name: uiutils.S(vName), Value: uiutils.SP(uiutils.Tpl(\"{0} {1}\", uiutils.Get(vD, \"id\"), vS))}})\n\t\t\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(vS) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor _, vS := range uiutils.L(uiutils.Get(vD, \"closed\")) {\n\t\t\t\t\t\t@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{Class: uiutils.S(uiutils.Cnv(\"flex items-center gap-2 rounded px-4 py-2 text-sm inset-ring inset-ring-border has-checked:bg-muted has-checked:inset-ring-foreground\", \"text-muted-foreground line-through\")), Attrs: uiutils.Attrs(\"data-slot\", \"closed-row\")}}) {\n\t\t\t\t\t\t\t@compose.Radio(compose.RadioProps{RadioProps: radio.RadioProps{Name: uiutils.S(vName), Value: uiutils.SP(uiutils.Tpl(\"{0} {1}\", uiutils.Get(vD, \"id\"), vS)), Disabled: true}})\n\t\t\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(vS) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/slot-grid.templ",
      "target": "blocks/slot-grid.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "slot-grid",
  "registryDependencies": [
    "box",
    "group",
    "inline",
    "kit-box",
    "kit-label",
    "kit-radio",
    "kit-text",
    "label",
    "radio",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Slot Grid",
  "type": "registry:component"
}
