{
  "$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/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/lightbox-stage.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/dialog\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// LightboxStageProps are the props of LightboxStage; the values are the JSON shapes of the TypeScript props.\ntype LightboxStageProps struct {\n\tPhotos any `json:\"photos\"`\n\tLabels any `json:\"labels\"`\n\tCaptions any `json:\"captions\"`\n\tLightbox any `json:\"lightbox\"`\n}\n\n// The selected photo in a dialog: title, close, picture, optional caption and previous/next. Static open state. Used by LightboxGallery.\ntempl LightboxStage(p LightboxStageProps) {\n\t{{ vPhotos := p.Photos }}\n\t{{ vLabels := p.Labels }}\n\t{{ vCaptions := uiutils.Def(p.Captions, \"show\") }}\n\t{{ vLightbox := uiutils.Def(p.Lightbox, \"closed\") }}\n\t@compose.Dialog(compose.DialogProps{Size: \"xl\", DialogProps: dialog.DialogProps{Open: uiutils.T(uiutils.Eq(vLightbox, \"open\")), AriaLabel: uiutils.S(uiutils.FirstOf(vPhotos, \"title\")), Class: \"gap-4 p-4\", Attrs: uiutils.Attrs(\"data-slot\", \"lightbox\")}}) {\n\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", Justify: \"between\", BoxProps: box.BoxProps{}}) {\n\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t{ uiutils.Text(uiutils.FirstOf(vPhotos, \"title\")) }\n\t\t\t}\n\t\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", Layout: \"icon\", ButtonProps: button.ButtonProps{Type: \"button\", AriaLabel: uiutils.S(uiutils.Get(vLabels, \"close\"))}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"x\", Size: 16})\n\t\t\t}\n\t\t}\n\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.FirstOf(vPhotos, \"title\"), Src: uiutils.FirstOf(vPhotos, \"image\"), Ratio: \"4/3\"})\n\t\tif uiutils.Eq(vCaptions, \"show\") {\n\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(uiutils.FirstOf(vPhotos, \"tag\")) }\n\t\t\t}\n\t\t}\n\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", Justify: \"between\", BoxProps: box.BoxProps{}}) {\n\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, \"counter\"), float64(1), uiutils.Len(vPhotos))) }\n\t\t\t}\n\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"sm\", Layout: \"icon\", ButtonProps: button.ButtonProps{Type: \"button\", AriaLabel: uiutils.S(uiutils.Get(vLabels, \"previous\"))}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"chevron-left\", Size: 16})\n\t\t\t\t}\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"sm\", Layout: \"icon\", ButtonProps: button.ButtonProps{Type: \"button\", AriaLabel: uiutils.S(uiutils.Get(vLabels, \"next\"))}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"chevron-right\", Size: 16})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/lightbox-stage.templ",
      "target": "blocks/lightbox-stage.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "lightbox-stage",
  "registryDependencies": [
    "button",
    "dialog",
    "group",
    "kit-box",
    "kit-button",
    "kit-dialog",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Lightbox Stage",
  "type": "registry:component"
}
