{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The cards layout of DishCompare: one compare card per cut with a picture, the name, the summary, the weight, heat and price as a description list, and the cooking time.",
  "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 */\nimport { type ReactNode } from \"react\";\nimport { Badge, Grid, Inline, List, ListItem, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { fmtMoney, tpl } from \"../utils\";\nimport type { Dish, FoodLabels } from \"../blocks/dish-showcase.types\";\n\nexport type CutCardsProps = {\n  dishes: Dish[];\n  labels: FoodLabels;\n};\n\nexport function CutCards({ dishes, labels }: CutCardsProps) {\n  return (\n    <Grid cols=\"1-4\" className=\"gap-4\" data-slot=\"items\">\n      {(dishes ?? []).map((d) => (\n        <Stack key={d.id} gap=\"4\" className=\"rounded bg-card inset-ring inset-ring-border p-4\" data-slot=\"item\">\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\" className=\"text-muted-foreground\">\n            {d.summary}\n          </Text>\n          <List tag=\"ul\" className=\"flex flex-col gap-2 text-sm\">\n            <ListItem className=\"flex items-center justify-between gap-4\">\n              <Inline className=\"text-muted-foreground\">\n                {labels.weight}\n              </Inline>\n              <Inline className=\"font-semibold\">\n                {d.weight}\n              </Inline>\n            </ListItem>\n            <ListItem className=\"flex items-center justify-between gap-4\">\n              <Inline className=\"text-muted-foreground\">\n                {labels.heat}\n              </Inline>\n              <Inline className=\"font-semibold\">\n                {d.tag}\n              </Inline>\n            </ListItem>\n            <ListItem className=\"flex items-center justify-between gap-4\">\n              <Inline className=\"text-muted-foreground\">\n                {labels.price}\n              </Inline>\n              <Inline className=\"font-semibold\">\n                {fmtMoney(d.price, d.currency)}\n              </Inline>\n            </ListItem>\n          </List>\n          <Badge variant=\"secondary\" size=\"default\" className=\"w-fit\">\n            <LucideIcon name=\"timer\" size={16} />\n            {tpl(labels.minutes, (d.minutes == null ? undefined : String(d.minutes)))}\n          </Badge>\n        </Stack>\n      ))}\n    </Grid>\n  );\n}\n",
      "path": "components/cut-cards.tsx",
      "target": "components/cut-cards.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "cut-cards",
  "registryDependencies": [
    "compose",
    "dish-showcase",
    "lucide-icon",
    "media-frame",
    "utils"
  ],
  "runtime": "react",
  "title": "Cut Cards",
  "type": "registry:component"
}
