{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Tiles of different sizes in one grid; the large tiles hold the main features.",
  "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/bento-grid.json\n    Tiles of different sizes in one grid: the large and wide tiles hold the important features. Sizes come from the data (large, wide, small). Axes: layout (bento, even: all tiles alike), media (none, image: a picture in the large tiles), tone, density.\n    Props (p): id, title, tiles, empty, layout, media, tone, density, landmarkLabel. -#}\n{%- set k_SPAN = {'large': 'md:col-span-2 md:row-span-2', 'wide': 'md:col-span-2', 'small': ''} -%}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_tiles = (p.tiles ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_layout = (p.layout ?? 'bento') -%}\n{%- set v_media = (p.media ?? 'none') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_6 -%}\n  {%- if og_t(og_eq(og_len(v_tiles), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'layout-dashboard', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_5 -%}\n      {%- for v_tile in og_l(v_tiles) %}\n        {%- set c_4 -%}\n          {%- set c_3 -%}\n            {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_tile, ['icon'])), 'size': 24}, with_context = false) }}\n            {%- set c_1 -%}\n              {{ og_text(og_get(v_tile, ['title'])) }}\n            {%- endset -%}\n            {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_1}, with_context = false) }}\n            {%- set c_2 -%}\n              {{ og_text(og_get(v_tile, ['text'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n            {%- if og_t(og_and([og_eq(v_media, 'image'), og_or([og_eq(og_get(v_tile, ['size']), 'large'), og_eq(v_layout, 'even')])])) %}\n              {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_tile, ['title']), 'src': og_get(v_tile, ['image']), 'ratio': '4/3', 'className': og_cnv(['mt-auto'])}}, with_context = false) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ include('compose/CardContent.html.twig', {'class': 'flex h-full flex-col gap-4', 'children': c_3}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Card.html.twig', {'variant': 'default', 'class': og_s(og_cnv(['h-full overflow-hidden', (og_t(og_eq(v_density, 'compact')) ? 'gap-4 p-4' : ''), (og_t(og_eq(v_layout, 'bento')) ? og_at(k_SPAN, og_get(v_tile, ['size'])) : '')])), 'attrs': og_attrs(['data-size', (og_t(og_eq(v_layout, 'bento')) ? og_get(v_tile, ['size']) : 'even')]), 'children': c_4}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': '1-4', 'class': 'auto-rows-fr gap-4', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_5}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_6)}, with_context = false) }}\n",
      "path": "blocks/bento-grid.html.twig",
      "target": "blocks/bento-grid.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "bento-grid",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "grid",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Bento Grid",
  "type": "registry:block"
}
