{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Photos in a grid, a masonry, a mosaic, a featured picture with thumbnails, or cards.",
  "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/photo-gallery.json\n    Photos in a grid, a masonry of mixed heights, a mosaic with one big tile, a featured picture over a strip of thumbnails, or cards with a title and a tag. Static markup: the featured layout's arrows are the page's. Axes: layout (grid, masonry, mosaic, featured, cards), captions (show, hide), tone, density.\n    Props (p): id, title, lead, photos, empty, labels, layout, captions, tone, density, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_lead = og_def(p['lead'], '') -%}\n{%- set v_photos = og_def(p['photos'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'grid') -%}\n{%- set v_captions = og_def(p['captions'], 'show') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_16 -%}\n  {%- if og_t(og_eq(og_len(v_photos), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'image', 'title': v_empty}}) }}\n  {%- elif og_t(og_eq(v_layout, 'featured')) %}\n    {%- set c_9 -%}\n      {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_first_of(v_photos, 'title'), 'src': og_first_of(v_photos, 'image')}}) }}\n      {%- set c_7 -%}\n        {%- set c_3 -%}\n          {%- set c_1 -%}\n            {{ og_text(og_first_of(v_photos, 'title')) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_1}) }}\n          {%- set c_2 -%}\n            {{ og_text(og_tpl(og_get(v_labels, ['counter']), [1, og_len(v_photos)])) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n        {%- endset -%}\n        {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_3}) }}\n        {%- set c_6 -%}\n          {%- set c_4 -%}\n            {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'chevron-left', 'Size': 16}}) }}\n          {%- endset -%}\n          {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm', 'Layout': 'icon', 'AriaLabel': og_s(og_get(v_labels, ['previous']))}, 'children': c_4}) }}\n          {%- set c_5 -%}\n            {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'chevron-right', 'Size': 16}}) }}\n          {%- endset -%}\n          {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm', 'Layout': 'icon', 'AriaLabel': og_s(og_get(v_labels, ['next']))}, 'children': c_5}) }}\n        {%- endset -%}\n        {{ og_include('compose/group.html.j2', {'p': {'Gap': '2'}, 'children': c_6}) }}\n      {%- endset -%}\n      {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between'}, 'children': c_7}) }}\n      {%- set c_8 -%}\n        {%- for v_p in og_l(v_photos) %}\n          {%- set v_i = loop.index0 -%}\n          {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_p, ['title']), 'src': og_get(v_p, ['image']), 'ratio': '1/1', 'className': og_cnv([('ring-2 ring-foreground' if og_t(og_eq(v_i, 0)) else '')])}}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-3 gap-2 sm:grid-cols-9', 'Attrs': og_attrs(['data-slot', 'thumbs'])}, 'children': c_8}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'featured'])}, 'children': c_9}) }}\n  {%- else %}\n    {%- set c_15 -%}\n      {%- for v_p in og_l(v_photos) %}\n        {%- set v_i = loop.index0 -%}\n        {%- set c_14 -%}\n          {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_p, ['title']), 'src': og_get(v_p, ['image']), 'ratio': (('3/4' if og_t(og_eq(og_get(v_p, ['size']), 'tall')) else ('16/9' if og_t(og_eq(og_get(v_p, ['size']), 'wide')) else ('4/3' if og_t(og_eq(og_get(v_p, ['size']), 'large')) else '1/1'))) if og_t(og_eq(v_layout, 'masonry')) else ('4/3' if og_t(og_eq(v_layout, 'grid')) else '1/1')), 'className': og_cnv([('h-full' if og_t(og_eq(v_layout, 'mosaic')) else '')])}}) }}\n          {%- if og_t(og_and([og_eq(v_captions, 'show'), og_eq(v_layout, 'cards')])) %}\n            {%- set c_12 -%}\n              {%- set c_10 -%}\n                {{ og_text(og_get(v_p, ['title'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_10}) }}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_p, ['tag'])) }}\n              {%- endset -%}\n              {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'secondary', 'Size': 'sm'}, 'children': c_11}) }}\n            {%- endset -%}\n            {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between'}, 'children': c_12}) }}\n          {%- endif %}\n          {%- if og_t(og_and([og_eq(v_captions, 'show'), og_or([og_eq(v_layout, 'grid'), og_eq(v_layout, 'masonry')])])) %}\n            {%- set c_13 -%}\n              {{ og_text(og_get(v_p, ['title'])) }}\n            {%- endset -%}\n            {{ og_include('compose/box.html.j2', {'p': {'Class': 'text-sm text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'caption'])}, 'children': c_13}) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ og_include('blocks/figure-block.html.j2', {'p': {'className': og_cnv([og_cnv(['flex flex-col gap-2', ('mb-4 break-inside-avoid' if og_t(og_eq(v_layout, 'masonry')) else ''), ('col-span-2 row-span-2' if og_t(og_and([og_eq(v_layout, 'mosaic'), og_eq(v_i, 0)])) else ''), ('rounded bg-card inset-ring inset-ring-border p-4' if og_t(og_eq(v_layout, 'cards')) else '')])]), 'testid': 'item'}, 'children': og_markup(c_14)}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('columns-1 gap-4 sm:columns-2 lg:columns-3' if og_t(og_eq(v_layout, 'masonry')) else ('grid grid-cols-2 gap-4 md:grid-cols-4' if og_t(og_eq(v_layout, 'mosaic')) else 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3'))), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_15}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_16)}) }}\n",
      "path": "blocks/photo-gallery.html.j2",
      "target": "blocks/photo-gallery.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "photo-gallery",
  "registryDependencies": [
    "badge",
    "box",
    "button",
    "empty-state",
    "figure-block",
    "group",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Photo Gallery",
  "type": "registry:block"
}
