{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Dish, FoodLabels } from \"./dish-showcase.types\";\n\n  export 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 lang=\"ts\">\n  import Badge from \"../compose/Badge.svelte\";\n  import Box from \"../compose/Box.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import Group from \"../compose/Group.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 AddIcon from \"../components/add-icon.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import { fmtMoney, tpl } from \"../utils\";\n\n  let {\n    id,\n    title,\n    lead = \"\",\n    dishes,\n    empty = \"\",\n    labels,\n    cols = \"4\",\n    tone = \"default\",\n    landmarkLabel,\n  }: SushiSetsProps = $props();\n</script>\n\n<SectionFrame id={id} title={title} lead={lead} tone={tone} landmarkLabel={landmarkLabel}>\n  {#if ((dishes?.length ?? 0) === 0)}\n    <EmptyState icon=\"package\" title={empty} />\n  {:else}\n    <Grid cols={(((cols as string) === \"3\") ? \"1-3\" : \"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          <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            {#each d.items as r (r)}\n              <ListItem 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            {/each}\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      {/each}\n    </Grid>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/sushi-sets.svelte",
      "target": "blocks/sushi-sets.svelte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "svelte",
      "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": "svelte",
  "title": "Sushi Sets",
  "type": "registry:block"
}
