{
  "$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\">\nimport type { LightboxLabels } from \"../blocks/lightbox-gallery.types\";\nimport type { Photo } from \"../blocks/photo-gallery.types\";\n\nexport type LightboxStageProps = {\n  photos: Photo[];\n  labels: LightboxLabels;\n  captions?: \"show\" | \"hide\";\n  lightbox?: \"open\" | \"closed\";\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Button from \"../compose/Button.vue\";\nimport Dialog from \"../compose/Dialog.vue\";\nimport Group from \"../compose/Group.vue\";\nimport LucideIcon from \"../icons/LucideIcon.vue\";\nimport Text from \"../compose/Text.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport { tpl } from \"../utils\";\n\nconst { photos, labels, captions = \"show\", lightbox = \"closed\" } = defineProps<LightboxStageProps>();\n</script>\n\n<template>\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    <Text v-if=\"((captions as string) === 'show')\" size=\"sm\" class=\"text-muted-foreground\">\n      {{ photos[0]?.tag ?? \"\" }}\n    </Text>\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</template>\n",
      "path": "components/lightbox-stage.vue",
      "target": "components/lightbox-stage.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "lightbox-stage",
  "registryDependencies": [
    "button",
    "dialog",
    "group",
    "lightbox-gallery",
    "lucide-icon",
    "media-frame",
    "photo-gallery",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Lightbox Stage",
  "type": "registry:component"
}
