{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Meal delivery as a week: one column per day with its meal.",
  "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  Meal delivery as a week: one column per day (its name and delivery note) with the meal of that day as a small\n  card (picture, name, weight, price). Axes: media (image, none), tone.\n-->\n<script lang=\"ts\">\nimport type { Dish, FoodLabels } from \"./dish-showcase.types\";\nimport type { DishSection } from \"./restaurant-menu.types\";\n\nexport type WeekMenuProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  dishes: Dish[];\n  sections: DishSection[];\n  empty?: string;\n  labels: FoodLabels;\n  media?: \"image\" | \"none\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\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 Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { fmtMoney } from \"../utils\";\n\nconst {\n  id,\n  title,\n  lead = \"\",\n  dishes,\n  sections,\n  empty = \"\",\n  labels,\n  media = \"image\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<WeekMenuProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :lead=\"lead\" :tone=\"tone\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((sections?.length ?? 0) === 0)\" icon=\"calendar\" :title=\"empty\" />\n    <Box v-else class=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5\" data-slot=\"items\">\n      <Stack v-for=\"s in sections\" :key=\"s.id\" gap=\"2\" class=\"border-t-2 border-primary pt-4\" data-slot=\"day\">\n        <Text size=\"sm\" weight=\"semibold\">\n          {{ s.title }}\n        </Text>\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ s.note }}\n        </Text>\n        <template v-for=\"d in dishes\" :key=\"d.id\">\n          <Stack\n            v-if=\"(d.tag === s.key)\"\n            gap=\"2\"\n            class=\"rounded bg-card inset-ring inset-ring-border p-4\"\n            data-slot=\"item\"\n          >\n            <MediaFrame v-if=\"((media as string) === 'image')\" :alt=\"d.name\" :src=\"d.image\" ratio=\"4/3\" />\n            <Text size=\"sm\" weight=\"semibold\">\n              {{ d.name }}\n            </Text>\n            <Group gap=\"2\" align=\"baseline\" justify=\"between\">\n              <Text size=\"xs\" class=\"text-muted-foreground\">\n                {{ d.weight }}\n              </Text>\n              <Inline class=\"text-sm font-bold\">\n                {{ fmtMoney(d.price, d.currency) }}\n              </Inline>\n            </Group>\n          </Stack>\n        </template>\n      </Stack>\n    </Box>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/week-menu.vue",
      "target": "blocks/week-menu.vue"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "week-menu",
  "registryDependencies": [
    "box",
    "dish-showcase",
    "empty-state",
    "group",
    "inline",
    "media-frame",
    "restaurant-menu",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Week Menu",
  "type": "registry:block"
}
