{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Slot Grid 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\nexport type Day = {\n  id: string;\n  title: string;\n  note: string;\n  slots: string[];\n  closed: string[];\n};\n",
      "path": "components/slot-grid.types.ts",
      "target": "components/slot-grid.types.ts"
    },
    {
      "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  Delivery windows by day: each day lists its windows as radio chips; closed windows are disabled and struck\n  through. One radio group (`name`) across all days. Static markup.\n-->\n<script lang=\"ts\">\nimport type { Day } from \"./slot-grid.types\";\n\nexport type SlotGridProps = {\n  days: Day[];\n  name: string;\n  item?: \"card\" | \"plain\";\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Box from \"../compose/Box.vue\";\nimport Group from \"../compose/Group.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport Label from \"../compose/Label.vue\";\nimport Radio from \"../compose/Radio.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport { cn, tpl } from \"../utils\";\n\nconst { days, name, item = \"card\" } = defineProps<SlotGridProps>();\n</script>\n\n<template>\n  <Stack gap=\"4\" align=\"stretch\" data-slot=\"days\">\n    <Stack v-for=\"d in days\" :key=\"d.id\"\n      gap=\"4\"\n      :class=\"\n        (item as string) === 'card' ? 'rounded bg-card inset-ring inset-ring-border p-4'\n        : 'border-b border-border pb-4'\n      \"\n      data-slot=\"day\"\n    >\n      <Group gap=\"4\" align=\"baseline\" justify=\"between\" class=\"flex-wrap\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {{ d.title }}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ d.note }}\n        </Text>\n      </Group>\n      <Box class=\"grid grid-cols-2 gap-2 sm:grid-cols-3\">\n        <Label v-for=\"s in d.slots\" :key=\"s\"\n          :class=\"'flex items-center gap-2 rounded px-4 py-2 text-sm inset-ring inset-ring-border has-checked:bg-muted ' +\n            'has-checked:inset-ring-foreground'\"\n          data-slot=\"slots-row\"\n        >\n          <Radio :name=\"name\" :value=\"tpl('{0} {1}', d.id, s)\" />\n          <Inline>\n            {{ s }}\n          </Inline>\n        </Label>\n        <Label v-for=\"s in d.closed\" :key=\"s\"\n          :class=\"cn(\n            'flex items-center gap-2 rounded px-4 py-2 text-sm inset-ring inset-ring-border has-checked:bg-muted ' +\n              'has-checked:inset-ring-foreground',\n            'text-muted-foreground line-through'\n          )\"\n          data-slot=\"closed-row\"\n        >\n          <Radio :name=\"name\" :value=\"tpl('{0} {1}', d.id, s)\" :disabled=\"true\" />\n          <Inline>\n            {{ s }}\n          </Inline>\n        </Label>\n      </Box>\n    </Stack>\n  </Stack>\n</template>\n",
      "path": "components/slot-grid.vue",
      "target": "components/slot-grid.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "slot-grid",
  "registryDependencies": [
    "box",
    "group",
    "inline",
    "label",
    "radio",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Slot Grid",
  "type": "registry:component"
}
