{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_lead = ($p['lead'] ?? '')}\n{var $v_photos = ($p['photos'] ?? null)}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'grid')}\n{var $v_captions = ($p['captions'] ?? 'show')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_density = ($p['density'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_16}\n  {if og_t(og_eq(og_len($v_photos), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'image', 'title' => $v_empty]])|noescape}\n  {elseif og_t(og_eq($v_layout, 'featured'))}\n    {capture $c_9}\n      {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_first_of($v_photos, 'title'), 'src' => og_first_of($v_photos, 'image')]])|noescape}\n      {capture $c_7}\n        {capture $c_3}\n          {capture $c_1}\n            {=og_text(og_first_of($v_photos, 'title'))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'base', 'weight' => 'semibold', 'children' => (string) $c_1])|noescape}\n          {capture $c_2}\n            {=og_text(og_tpl(og_get($v_labels, ['counter']), [1, og_len($v_photos)]))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_2])|noescape}\n        {/capture}\n        {=og_include('compose/Stack.latte', ['gap' => '0', 'children' => (string) $c_3])|noescape}\n        {capture $c_6}\n          {capture $c_4}\n            {=og_include('icons/LucideIcon.latte', ['name' => 'chevron-left', 'size' => 16])|noescape}\n          {/capture}\n          {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'sm', 'layout' => 'icon', 'ariaLabel' => og_s(og_get($v_labels, ['previous'])), 'children' => (string) $c_4])|noescape}\n          {capture $c_5}\n            {=og_include('icons/LucideIcon.latte', ['name' => 'chevron-right', 'size' => 16])|noescape}\n          {/capture}\n          {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'sm', 'layout' => 'icon', 'ariaLabel' => og_s(og_get($v_labels, ['next'])), 'children' => (string) $c_5])|noescape}\n        {/capture}\n        {=og_include('compose/Group.latte', ['gap' => '2', 'children' => (string) $c_6])|noescape}\n      {/capture}\n      {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'children' => (string) $c_7])|noescape}\n      {capture $c_8}\n        {foreach og_l($v_photos) as $v_p}\n          {var $v_i = $iterator->counter0}\n          {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_p, ['title']), 'src' => og_get($v_p, ['image']), 'ratio' => '1/1', 'className' => og_cnv([(og_t(og_eq($v_i, 0)) ? 'ring-2 ring-foreground' : '')])]])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/Box.latte', ['class' => 'grid grid-cols-3 gap-2 sm:grid-cols-9', 'attrs' => og_attrs(['data-slot', 'thumbs']), 'children' => (string) $c_8])|noescape}\n    {/capture}\n    {=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'attrs' => og_attrs(['data-slot', 'featured']), 'children' => (string) $c_9])|noescape}\n  {else}\n    {capture $c_15}\n      {foreach og_l($v_photos) as $v_p}\n        {var $v_i = $iterator->counter0}\n        {capture $c_14}\n          {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_p, ['title']), 'src' => og_get($v_p, ['image']), 'ratio' => (og_t(og_eq($v_layout, 'masonry')) ? (og_t(og_eq(og_get($v_p, ['size']), 'tall')) ? '3/4' : (og_t(og_eq(og_get($v_p, ['size']), 'wide')) ? '16/9' : (og_t(og_eq(og_get($v_p, ['size']), 'large')) ? '4/3' : '1/1'))) : (og_t(og_eq($v_layout, 'grid')) ? '4/3' : '1/1')), 'className' => og_cnv([(og_t(og_eq($v_layout, 'mosaic')) ? 'h-full' : '')])]])|noescape}\n          {if og_t(og_and([og_eq($v_captions, 'show'), og_eq($v_layout, 'cards')]))}\n            {capture $c_12}\n              {capture $c_10}\n                {=og_text(og_get($v_p, ['title']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_10])|noescape}\n              {capture $c_11}\n                {=og_text(og_get($v_p, ['tag']))}\n              {/capture}\n              {=og_include('compose/Badge.latte', ['variant' => 'secondary', 'size' => 'sm', 'children' => (string) $c_11])|noescape}\n            {/capture}\n            {=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'children' => (string) $c_12])|noescape}\n          {/if}\n          {if og_t(og_and([og_eq($v_captions, 'show'), og_or([og_eq($v_layout, 'grid'), og_eq($v_layout, 'masonry')])]))}\n            {capture $c_13}\n              {=og_text(og_get($v_p, ['title']))}\n            {/capture}\n            {=og_include('compose/Box.latte', ['class' => 'text-sm text-muted-foreground', 'attrs' => og_attrs(['data-slot', 'caption']), 'children' => (string) $c_13])|noescape}\n          {/if}\n        {/capture}\n        {=og_include('blocks/figure-block.latte', ['p' => ['className' => og_cnv([og_cnv(['flex flex-col gap-2', (og_t(og_eq($v_layout, 'masonry')) ? 'mb-4 break-inside-avoid' : ''), (og_t(og_and([og_eq($v_layout, 'mosaic'), og_eq($v_i, 0)])) ? 'col-span-2 row-span-2' : ''), (og_t(og_eq($v_layout, 'cards')) ? 'rounded bg-card inset-ring inset-ring-border p-4' : '')])]), 'testid' => 'item'], 'children' => og_markup($c_14)])|noescape}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => og_s((og_t(og_eq($v_layout, 'masonry')) ? 'columns-1 gap-4 sm:columns-2 lg:columns-3' : (og_t(og_eq($v_layout, 'mosaic')) ? 'grid grid-cols-2 gap-4 md:grid-cols-4' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3'))), 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_15])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_16)])|noescape}\n",
      "path": "blocks/photo-gallery.latte",
      "target": "blocks/photo-gallery.latte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "photo-gallery",
  "registryDependencies": [
    "badge",
    "box",
    "button",
    "empty-state",
    "figure-block",
    "group",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Photo Gallery",
  "type": "registry:block"
}
