{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A dense grid of sets with the piece count and the rolls of each.",
  "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  Sushi sets as a dense grid of tiles: a square picture with the piece count over it, the name, the rolls of the\n  set as a list, the price and an add button. Axes: cols (3, 4), tone.\n-->\n<script lang=\"ts\">\nimport type { Dish, FoodLabels } from \"./dish-showcase.types\";\n\nexport type SushiSetsProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  dishes: Dish[];\n  empty?: string;\n  labels: FoodLabels;\n  cols?: \"3\" | \"4\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Badge from \"../compose/Badge.vue\";\nimport Box from \"../compose/Box.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport Group from \"../compose/Group.vue\";\nimport Inline from \"../compose/Inline.vue\";\nimport List from \"../compose/List.vue\";\nimport ListItem from \"../compose/ListItem.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport AddIcon from \"../components/add-icon.vue\";\nimport EmptyState from \"../components/empty-state.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { fmtMoney, tpl } from \"../utils\";\n\nconst {\n  id,\n  title,\n  lead = \"\",\n  dishes,\n  empty = \"\",\n  labels,\n  cols = \"4\",\n  tone = \"default\",\n  landmarkLabel,\n} = defineProps<SushiSetsProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :lead=\"lead\" :tone=\"tone\" :landmarkLabel=\"landmarkLabel\">\n    <EmptyState v-if=\"((dishes?.length ?? 0) === 0)\" icon=\"package\" :title=\"empty\" />\n    <Grid v-else :cols=\"(((cols as string) === '3') ? '1-3' : '1-4')\" class=\"gap-4\" data-slot=\"items\">\n      <Stack\n        v-for=\"d in dishes\"\n        :key=\"d.id\"\n        gap=\"4\"\n        class=\"rounded bg-card inset-ring inset-ring-border p-4\"\n        data-slot=\"item\"\n      >\n        <Box class=\"relative\">\n          <MediaFrame :alt=\"d.name\" :src=\"d.image\" ratio=\"1/1\" />\n          <Badge variant=\"default\" size=\"default\" class=\"absolute left-2 top-2\">\n            {{ d.weight }}\n          </Badge>\n        </Box>\n        <Text size=\"base\" weight=\"semibold\">\n          {{ d.name }}\n        </Text>\n        <List\n          tag=\"ul\"\n          class=\"flex flex-col gap-2 text-sm text-muted-foreground\"\n          :aria-label=\"tpl(labels.pieces, d.name)\"\n        >\n          <ListItem v-for=\"r in d.items\" :key=\"r\" class=\"flex items-center gap-2\" data-slot=\"items-row\">\n            <LucideIcon name=\"check\" :size=\"16\" />\n            <Inline>\n              {{ r }}\n            </Inline>\n          </ListItem>\n        </List>\n        <Group gap=\"2\" align=\"center\" justify=\"between\" class=\"mt-auto\">\n          <Inline class=\"text-lg font-bold\">\n            {{ fmtMoney(d.price, d.currency) }}\n          </Inline>\n          <AddIcon :label=\"tpl(labels.addOf, d.name)\" variant=\"default\" />\n        </Group>\n      </Stack>\n    </Grid>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/sushi-sets.vue",
      "target": "blocks/sushi-sets.vue"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "sushi-sets",
  "registryDependencies": [
    "add-icon",
    "badge",
    "box",
    "dish-showcase",
    "empty-state",
    "grid",
    "group",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Sushi Sets",
  "type": "registry:block"
}
