{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A horizontal strip of small cards that scrolls sideways.",
  "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  A horizontal strip of dishes that scrolls sideways (a focusable, named region with snap points): small cards\n  with a picture, name, weight, price and an add button. Axes: size (sm, lg), 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 DishStripProps = {\n    id: string;\n    title: string;\n    lead?: string;\n    dishes: Dish[];\n    empty?: string;\n    labels: FoodLabels;\n    size?: \"sm\" | \"lg\";\n    tone?: \"default\" | \"muted\";\n    landmarkLabel?: string;\n  };\n</script>\n\n<script lang=\"ts\">\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 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    size = \"sm\",\n    tone = \"default\",\n    landmarkLabel,\n  }: DishStripProps = $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=\"star\" title={empty} />\n  {:else}\n    <List\n      tag=\"ul\"\n      class=\"-mx-4 flex snap-x gap-4 overflow-x-auto px-4 pb-4\"\n      tabindex={0}\n      aria-label={labels.strip}\n      data-slot=\"items\"\n    >\n      {#each dishes as d (d.id)}\n        <ListItem\n          class={\n            (size as string) === \"lg\" ? \"flex w-64 shrink-0 snap-start flex-col gap-2\"\n            : \"flex w-48 shrink-0 snap-start flex-col gap-2\"\n          }\n          data-slot=\"item\"\n        >\n          <MediaFrame alt={d.name} src={d.image} ratio={(((size as string) === \"lg\") ? \"4/3\" : \"1/1\")} />\n          <Group gap=\"2\" align=\"baseline\" justify=\"between\">\n            <Text size=\"sm\" weight=\"semibold\">\n              {d.name}\n            </Text>\n            <Text size=\"xs\" class=\"text-muted-foreground\">\n              {d.weight}\n            </Text>\n          </Group>\n          <Group gap=\"2\" align=\"center\" justify=\"between\">\n            <Inline class=\"text-sm font-bold\">\n              {fmtMoney(d.price, d.currency)}\n            </Inline>\n            <AddIcon label={tpl(labels.addOf, d.name)} />\n          </Group>\n        </ListItem>\n      {/each}\n    </List>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/dish-strip.svelte",
      "target": "blocks/dish-strip.svelte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "dish-strip",
  "registryDependencies": [
    "add-icon",
    "dish-showcase",
    "empty-state",
    "group",
    "inline",
    "list",
    "list-item",
    "media-frame",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Dish Strip",
  "type": "registry:block"
}
