{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Menu Row 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  One dish on a menu board: name, optional badge, a dotted leader to the price, then the summary and the\n  portion/weight. Used by MenuBoard; Codex kind `dish`.\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Dish } from \"../blocks/dish-showcase.types\";\n\n  export type MenuRowProps = {\n    dish: Dish;\n    prices?: \"show\" | \"hide\";\n  };\n</script>\n\n<script lang=\"ts\">\n  import Badge from \"../compose/Badge.svelte\";\n  import Box from \"../compose/Box.svelte\";\n  import Inline from \"../compose/Inline.svelte\";\n  import ListItem from \"../compose/ListItem.svelte\";\n  import { fmtMoney, tpl } from \"../utils\";\n\n  let { dish, prices = \"show\" }: MenuRowProps = $props();\n</script>\n\n<ListItem class=\"flex flex-col gap-0 border-b border-border py-2\" data-slot=\"item\">\n  <Box class=\"flex items-baseline gap-2\">\n    <Inline class=\"font-semibold\">\n      {dish.name}\n    </Inline>\n    {#if dish.badge}\n      <Badge variant=\"outline\" size=\"sm\">\n        {dish.badge}\n      </Badge>\n    {/if}\n    {#if ((prices as string) === \"show\")}\n      <Inline class=\"flex-1 border-b border-dotted border-border\" aria-hidden=\"true\" />\n      <Inline class=\"font-semibold\" data-slot=\"price\">\n        {fmtMoney(dish.price, dish.currency)}\n      </Inline>\n    {/if}\n  </Box>\n  <Inline class=\"text-sm text-muted-foreground\">\n    {tpl(\"{0} · {1}\", dish.summary, dish.weight)}\n  </Inline>\n</ListItem>\n",
      "path": "components/menu-row.svelte",
      "target": "components/menu-row.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "menu-row",
  "registryDependencies": [
    "badge",
    "box",
    "dish-showcase",
    "inline",
    "list-item",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Menu Row",
  "type": "registry:component"
}
