{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The selected photo in a dialog: title, close, picture, optional caption and previous/next. Static open state. Used by LightboxGallery.",
  "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 */\nimport { type ReactNode } from \"react\";\nimport { Button, Dialog, Group, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { tpl } from \"../utils\";\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\nexport function LightboxStage({\n  photos,\n  labels,\n  captions = \"show\",\n  lightbox = \"closed\",\n}: LightboxStageProps) {\n  return (\n    <Dialog\n      open={((lightbox as string) === \"open\")}\n      size=\"xl\"\n      aria-label={photos[0]?.title ?? \"\"}\n      className=\"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      {((captions as string) === \"show\") ? (\n        <Text size=\"sm\" className=\"text-muted-foreground\">\n          {photos[0]?.tag ?? \"\"}\n        </Text>\n      ) : null}\n      <Group gap=\"2\" align=\"center\" justify=\"between\">\n        <Text size=\"xs\" className=\"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  );\n}\n",
      "path": "components/lightbox-stage.tsx",
      "target": "components/lightbox-stage.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "lightbox-stage",
  "registryDependencies": [
    "compose",
    "lightbox-gallery",
    "lucide-icon",
    "media-frame",
    "photo-gallery",
    "utils"
  ],
  "runtime": "react",
  "title": "Lightbox Stage",
  "type": "registry:component"
}
