{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Dish, FoodLabels } from \"../blocks/dish-showcase.types\";\n\n  export type CutCardsProps = {\n    dishes: Dish[];\n    labels: FoodLabels;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Badge from \"../compose/Badge.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import Inline from \"../compose/Inline.svelte\";\n  import List from \"../compose/List.svelte\";\n  import ListItem from \"../compose/ListItem.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import { fmtMoney, tpl } from \"../utils\";\n\n  let { dishes, labels }: CutCardsProps = $props();\n</script>\n\n<Grid cols=\"1-4\" class=\"gap-4\" data-slot=\"items\">\n  {#each dishes as d (d.id)}\n    <Stack gap=\"4\" class=\"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\" 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  {/each}\n</Grid>\n",
      "path": "components/cut-cards.svelte",
      "target": "components/cut-cards.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "cut-cards",
  "registryDependencies": [
    "badge",
    "dish-showcase",
    "grid",
    "inline",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Cut Cards",
  "type": "registry:component"
}
