{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Template gallery: filters, a browse-all button and an 8-card MediaFrame grid.",
  "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/template-grid.json\n    Template gallery: a heading, outline filter pills, a grid of template cards and a full-width browse-all button.\n    Props (p): id, title, templates, filters, browseHref, labels, cols, tone, density, empty, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_templates = (p.templates ?? null) -%}\n{%- set v_filters = (p.filters ?? null) -%}\n{%- set v_browseHref = (p.browseHref ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_cols = (p.cols ?? '1-4') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'compact') -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_21 -%}\n  {%- set c_20 -%}\n    {%- set c_4 -%}\n      {%- set c_1 -%}\n        {{ og_text(v_title) }}\n      {%- endset -%}\n      {{ include('compose/Title.html.twig', {'as': 2, 'size': '2xl', 'weight': 'semibold', 'class': 'leading-9', 'attrs': og_attrs(['id', og_add(v_id, '-title')]), 'children': c_1}, with_context = false) }}\n      {%- if og_t(og_gt(og_len(v_filters), 0)) %}\n        {%- set c_3 -%}\n          {%- for v_f in og_l(v_filters) %}\n            {%- set c_2 -%}\n              {%- if og_t(og_get(v_f, ['icon'])) %}\n                {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_f, ['icon'])), 'size': 16}, with_context = false) }}\n              {%- endif %}\n              {{ og_text(og_get(v_f, ['title'])) }}\n            {%- endset -%}\n            {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'type': 'button', 'class': 'gap-2', 'children': c_2}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'class': 'flex-wrap', 'attrs': og_attrs(['role', 'group', 'aria-label', og_get(v_labels, ['filters']), 'data-slot', 'template-filters']), 'children': c_3}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'class': 'h-8 w-full flex-wrap', 'children': c_4}, with_context = false) }}\n    {%- if og_t(og_eq(og_len(v_templates), 0)) %}\n      {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'layout-template', 'title': v_empty}}, with_context = false) }}\n    {%- else %}\n      {%- set c_18 -%}\n        {%- for v_t in og_l(v_templates) %}\n          {%- set c_17 -%}\n            {%- set c_5 -%}\n              {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_t, ['title']), 'src': og_get(v_t, ['image']), 'className': og_cnv([og_cnv(['size-full', og_preset('blocks/presets/defaults.json', ['media', 'rounded'])])])}}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['shrink-0 overflow-hidden', og_preset('blocks/presets/defaults.json', ['templates', 'image'])])), 'children': c_5}, with_context = false) }}\n            {%- set c_16 -%}\n              {%- set c_6 -%}\n                {{ include('icons/LucideIcon.html.twig', {'name': 'layout-template', 'size': 16}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/IconBadge.html.twig', {'size': 'sm', 'class': 'overflow-hidden', 'attrs': og_attrs(['data-slot', 'template-avatar']), 'children': c_6}, with_context = false) }}\n              {%- set c_15 -%}\n                {%- set c_7 -%}\n                  {{ og_text(og_get(v_t, ['title'])) }}\n                {%- endset -%}\n                {{ include('compose/Title.html.twig', {'as': 3, 'size': 'base', 'weight': 'semibold', 'class': 'truncate leading-6', 'children': c_7}, with_context = false) }}\n                {%- set c_14 -%}\n                  {%- set c_10 -%}\n                    {{ include('icons/LucideIcon.html.twig', {'name': 'eye', 'size': 16}, with_context = false) }}\n                    {%- set c_8 -%}\n                      {{ og_text(og_get(v_labels, ['views'])) }}\n                    {%- endset -%}\n                    {{ include('compose/Inline.html.twig', {'class': 'sr-only', 'children': c_8}, with_context = false) }}\n                    {%- set c_9 -%}\n                      {{ og_text(og_get(v_t, ['views'])) }}\n                    {%- endset -%}\n                    {{ include('compose/Text.html.twig', {'size': 'xs', 'weight': 'bold', 'class': 'leading-4', 'children': c_9}, with_context = false) }}\n                  {%- endset -%}\n                  {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_10}, with_context = false) }}\n                  {%- set c_13 -%}\n                    {{ include('icons/LucideIcon.html.twig', {'name': 'heart', 'size': 16}, with_context = false) }}\n                    {%- set c_11 -%}\n                      {{ og_text(og_get(v_labels, ['likes'])) }}\n                    {%- endset -%}\n                    {{ include('compose/Inline.html.twig', {'class': 'sr-only', 'children': c_11}, with_context = false) }}\n                    {%- set c_12 -%}\n                      {{ og_text(og_get(v_t, ['likes'])) }}\n                    {%- endset -%}\n                    {{ include('compose/Text.html.twig', {'size': 'xs', 'weight': 'bold', 'class': 'leading-4', 'children': c_12}, with_context = false) }}\n                  {%- endset -%}\n                  {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_13}, with_context = false) }}\n                {%- endset -%}\n                {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'class': 'h-4 text-muted-foreground', 'children': c_14}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'min-w-0 flex-1', 'children': c_15}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'class': og_s(og_cnv(['w-full', og_preset('blocks/presets/defaults.json', ['templates', 'footer'])])), 'attrs': og_attrs(['data-slot', 'template-footer']), 'children': c_16}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-2 overflow-hidden rounded p-4 inset-ring inset-ring-border', og_preset('blocks/presets/defaults.json', ['templates', 'card'])])), 'attrs': og_attrs(['data-slot', 'template-card']), 'children': c_17}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Grid.html.twig', {'cols': og_s(v_cols), 'class': 'w-full gap-6', 'attrs': og_attrs(['data-slot', 'template-grid']), 'children': c_18}, with_context = false) }}\n    {%- endif %}\n    {%- set c_19 -%}\n      {{ og_text(og_get(v_labels, ['browse'])) }}\n    {%- endset -%}\n    {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'href': og_url(og_s(v_browseHref)), 'class': 'w-full', 'children': c_19}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Stack.html.twig', {'gap': '8', 'align': 'stretch', 'children': c_20}, with_context = false) }}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'tone': v_tone, 'density': v_density, 'measure': 'fill', 'className': og_cnv(['py-0']), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_21)}, with_context = false) }}\n",
      "path": "blocks/template-grid.html.twig",
      "target": "blocks/template-grid.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "gallery",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "template-grid",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "grid",
    "group",
    "icon-badge",
    "inline",
    "lucide-icon",
    "media-frame",
    "presets",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Template Grid",
  "type": "registry:block"
}
