{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Meal delivery as a week: one column per day with its meal.",
  "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 * Meal delivery as a week: one column per day (its name and delivery note) with the meal of that day as a small\n * card (picture, name, weight, price). Axes: media (image, none), tone.\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Box, Group, Inline, Stack, Text } from \"../compose\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { fmtMoney } from \"../utils\";\nimport type { Dish, FoodLabels } from \"./dish-showcase.types\";\nimport type { DishSection } from \"./restaurant-menu.types\";\n\nexport type WeekMenuProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  dishes: Dish[];\n  sections: DishSection[];\n  empty?: string;\n  labels: FoodLabels;\n  media?: \"image\" | \"none\";\n  tone?: \"default\" | \"muted\";\n  landmarkLabel?: string;\n};\n\nexport function WeekMenu({\n  id,\n  title,\n  lead = \"\",\n  dishes,\n  sections,\n  empty = \"\",\n  labels,\n  media = \"image\",\n  tone = \"default\",\n  landmarkLabel,\n}: WeekMenuProps) {\n  return (\n    <SectionFrame id={id} title={title} lead={lead} tone={tone} landmarkLabel={landmarkLabel}>\n      {((sections?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"calendar\" title={empty} />\n      ) : (\n        <Box class=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5\" data-slot=\"items\">\n          <For each={sections ?? []}>{(s) => (\n            <Stack gap=\"2\" class=\"border-t-2 border-primary pt-4\" data-slot=\"day\">\n              <Text size=\"sm\" weight=\"semibold\">\n                {s.title}\n              </Text>\n              <Text size=\"xs\" class=\"text-muted-foreground\">\n                {s.note}\n              </Text>\n              <For each={dishes ?? []}>{(d) => (\n                <>\n                  {(d.tag === s.key) ? (\n                    <Stack gap=\"2\" class=\"rounded bg-card inset-ring inset-ring-border p-4\" data-slot=\"item\">\n                      {((media as string) === \"image\") ? (\n                        <MediaFrame alt={d.name} src={d.image} ratio=\"4/3\" />\n                      ) : null}\n                      <Text size=\"sm\" weight=\"semibold\">\n                        {d.name}\n                      </Text>\n                      <Group gap=\"2\" align=\"baseline\" justify=\"between\">\n                        <Text size=\"xs\" class=\"text-muted-foreground\">\n                          {d.weight}\n                        </Text>\n                        <Inline class=\"text-sm font-bold\">\n                          {fmtMoney(d.price, d.currency)}\n                        </Inline>\n                      </Group>\n                    </Stack>\n                  ) : null}\n                </>\n              )}</For>\n            </Stack>\n          )}</For>\n        </Box>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/week-menu.tsx",
      "target": "blocks/week-menu.tsx"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "week-menu",
  "registryDependencies": [
    "compose",
    "dish-showcase",
    "empty-state",
    "media-frame",
    "restaurant-menu",
    "section-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Week Menu",
  "type": "registry:block"
}
