{
  "$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 */\nimport { For, type JSX } from \"solid-js\";\nimport { Badge, Box, Grid, Group, Inline, List, ListItem, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { AddIcon } from \"../components/add-icon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { fmtMoney, tpl } from \"../utils\";\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\nexport function SushiSets({\n  id,\n  title,\n  lead = \"\",\n  dishes,\n  empty = \"\",\n  labels,\n  cols = \"4\",\n  tone = \"default\",\n  landmarkLabel,\n}: SushiSetsProps) {\n  return (\n    <SectionFrame id={id} title={title} lead={lead} tone={tone} landmarkLabel={landmarkLabel}>\n      {((dishes?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"package\" title={empty} />\n      ) : (\n        <Grid cols={(((cols as string) === \"3\") ? \"1-3\" : \"1-4\")} class=\"gap-4\" data-slot=\"items\">\n          <For each={dishes ?? []}>{(d) => (\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                <For each={d.items ?? []}>{(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                )}</For>\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          )}</For>\n        </Grid>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/sushi-sets.tsx",
      "target": "blocks/sushi-sets.tsx"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "sushi-sets",
  "registryDependencies": [
    "add-icon",
    "compose",
    "dish-showcase",
    "empty-state",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Sushi Sets",
  "type": "registry:block"
}
