{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Cut Cards 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<!--\n  The cards layout of DishCompare: one compare card per cut with a picture, the name, the summary, the weight,\n  heat and price as a description list, and the cooking time.\n-->\n<script lang=\"ts\">\nimport type { Dish, FoodLabels } from \"../blocks/dish-showcase.types\";\n\nexport type CutCardsProps = {\n  dishes: Dish[];\n  labels: FoodLabels;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Badge from \"../compose/Badge.vue\";\nimport Grid from \"../compose/Grid.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 MediaFrame from \"../components/media-frame.vue\";\nimport { fmtMoney, tpl } from \"../utils\";\n\nconst { dishes, labels } = defineProps<CutCardsProps>();\n</script>\n\n<template>\n  <Grid cols=\"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      <MediaFrame :alt=\"d.name\" :src=\"d.image\" ratio=\"4/3\" />\n      <Text size=\"lg\" weight=\"semibold\">\n        {{ d.name }}\n      </Text>\n      <Text size=\"sm\" class=\"text-muted-foreground\">\n        {{ d.summary }}\n      </Text>\n      <List tag=\"ul\" class=\"flex flex-col gap-2 text-sm\">\n        <ListItem class=\"flex items-center justify-between gap-4\">\n          <Inline class=\"text-muted-foreground\">\n            {{ labels.weight }}\n          </Inline>\n          <Inline class=\"font-semibold\">\n            {{ d.weight }}\n          </Inline>\n        </ListItem>\n        <ListItem class=\"flex items-center justify-between gap-4\">\n          <Inline class=\"text-muted-foreground\">\n            {{ labels.heat }}\n          </Inline>\n          <Inline class=\"font-semibold\">\n            {{ d.tag }}\n          </Inline>\n        </ListItem>\n        <ListItem class=\"flex items-center justify-between gap-4\">\n          <Inline class=\"text-muted-foreground\">\n            {{ labels.price }}\n          </Inline>\n          <Inline class=\"font-semibold\">\n            {{ fmtMoney(d.price, d.currency) }}\n          </Inline>\n        </ListItem>\n      </List>\n      <Badge variant=\"secondary\" size=\"default\" class=\"w-fit\">\n        <LucideIcon name=\"timer\" :size=\"16\" />\n        {{ tpl(labels.minutes, (d.minutes == null ? undefined : String(d.minutes))) }}\n      </Badge>\n    </Stack>\n  </Grid>\n</template>\n",
      "path": "components/cut-cards.vue",
      "target": "components/cut-cards.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "cut-cards",
  "registryDependencies": [
    "badge",
    "dish-showcase",
    "grid",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Cut Cards",
  "type": "registry:component"
}
