{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Lightbox Stage component",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  The selected photo in a dialog: title, close, picture, optional caption and previous/next. Static open state.\n  Used by LightboxGallery.\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { LightboxLabels } from \"../blocks/lightbox-gallery.types\";\n  import type { Photo } from \"../blocks/photo-gallery.types\";\n\n  export type LightboxStageProps = {\n    photos: Photo[];\n    labels: LightboxLabels;\n    captions?: \"show\" | \"hide\";\n    lightbox?: \"open\" | \"closed\";\n  };\n</script>\n\n<script lang=\"ts\">\n  import Button from \"../compose/Button.svelte\";\n  import Dialog from \"../compose/Dialog.svelte\";\n  import Group from \"../compose/Group.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import { tpl } from \"../utils\";\n\n  let { photos, labels, captions = \"show\", lightbox = \"closed\" }: LightboxStageProps = $props();\n</script>\n\n<Dialog\n  open={((lightbox as string) === \"open\")}\n  size=\"xl\"\n  aria-label={photos[0]?.title ?? \"\"}\n  class=\"gap-4 p-4\"\n  data-slot=\"lightbox\"\n>\n  <Group gap=\"2\" align=\"center\" justify=\"between\">\n    <Text size=\"sm\" weight=\"semibold\">\n      {photos[0]?.title ?? \"\"}\n    </Text>\n    <Button variant=\"ghost\" size=\"sm\" layout=\"icon\" type=\"button\" aria-label={labels.close}>\n      <LucideIcon name=\"x\" size={16} />\n    </Button>\n  </Group>\n  <MediaFrame alt={photos[0]?.title ?? \"\"} src={photos[0]?.image ?? \"\"} ratio=\"4/3\" />\n  {#if ((captions as string) === \"show\")}\n    <Text size=\"sm\" class=\"text-muted-foreground\">\n      {photos[0]?.tag ?? \"\"}\n    </Text>\n  {/if}\n  <Group gap=\"2\" align=\"center\" justify=\"between\">\n    <Text size=\"xs\" class=\"text-muted-foreground\">\n      {tpl(labels.counter, 1, (photos?.length ?? 0))}\n    </Text>\n    <Group gap=\"2\">\n      <Button variant=\"outline\" size=\"sm\" layout=\"icon\" type=\"button\" aria-label={labels.previous}>\n        <LucideIcon name=\"chevron-left\" size={16} />\n      </Button>\n      <Button variant=\"outline\" size=\"sm\" layout=\"icon\" type=\"button\" aria-label={labels.next}>\n        <LucideIcon name=\"chevron-right\" size={16} />\n      </Button>\n    </Group>\n  </Group>\n</Dialog>\n",
      "path": "components/lightbox-stage.svelte",
      "target": "components/lightbox-stage.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "lightbox-stage",
  "registryDependencies": [
    "button",
    "dialog",
    "group",
    "lightbox-gallery",
    "lucide-icon",
    "media-frame",
    "photo-gallery",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Lightbox Stage",
  "type": "registry:component"
}
