{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A compact list of groceries with a small picture and an add button.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/grocery-list.json\n    Groceries as a compact list: a small square picture (or none), the name, the pack size, the price and an add button, in one or two columns. Axes: thumbs (show, hide), cols (1, 2), tone.\n    Props (p): id, title, lead, dishes, empty, labels, thumbs, cols, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_dishes = (p.dishes ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_thumbs = (p.thumbs ?? 'show') -%}\n{%- set v_cols = (p.cols ?? '2') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_7 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'shopping-bag', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_6 -%}\n      {%- for v_d in og_l(v_dishes) %}\n        {%- set c_5 -%}\n          {%- if og_t(og_eq(v_thumbs, 'show')) %}\n            {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_d, ['name']), 'src': og_get(v_d, ['image']), 'ratio': '1/1', 'className': og_cnv(['size-12 shrink-0'])}}, with_context = false) }}\n          {%- endif %}\n          {%- set c_3 -%}\n            {%- set c_1 -%}\n              {{ og_text(og_get(v_d, ['name'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n            {%- set c_2 -%}\n              {{ og_text(og_tpl('{0} · {1}', [og_get(v_d, ['weight']), og_get(v_d, ['tag'])])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'min-w-0 flex-1', 'children': c_3}, with_context = false) }}\n          {%- set c_4 -%}\n            {{ og_text(og_money(og_get(v_d, ['price']), og_get(v_d, ['currency']))) }}\n          {%- endset -%}\n          {{ include('compose/Inline.html.twig', {'class': 'text-sm font-bold', 'children': c_4}, with_context = false) }}\n          {{ include('blocks/add-icon.html.twig', {'p': {'label': og_tpl(og_get(v_labels, ['addOf']), [og_get(v_d, ['name'])])}}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/ListItem.html.twig', {'class': 'flex items-center gap-4 border-b border-border py-2', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_5}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/List.html.twig', {'tag': 'ul', 'class': og_s((og_t(og_eq(v_cols, '2')) ? 'grid grid-cols-1 gap-x-8 md:grid-cols-2' : 'grid grid-cols-1')), 'attrs': og_attrs(['data-slot', 'items']), 'children': c_6}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_7)}, with_context = false) }}\n",
      "path": "blocks/grocery-list.html.twig",
      "target": "blocks/grocery-list.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "grocery-list",
  "registryDependencies": [
    "add-icon",
    "empty-state",
    "inline",
    "list",
    "list-item",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Grocery List",
  "type": "registry:block"
}
