{
  "component": {
    "id": "image-gallery",
    "name": "Image gallery",
    "tier": "pro",
    "exampleId": "image-gallery",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/image-gallery-demo.tsx",
    "exportName": "ImageGalleryDemo",
    "sha256": "20c690c4ba4152cf4c750e62802bb9f3752b5d06f84085c4510d2bf0920c259a",
    "helperImports": [],
    "directComponentImports": [
      "image-gallery"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/image-gallery",
    "registryUrl": "https://tidalui.com/r/pro/image-gallery.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/image-gallery",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/image-gallery",
      "registryUrl": "https://tidalui.com/r/pro/image-gallery.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/image-gallery.tsx",
    "exports": [
      "TidalImageGallery",
      "TidalImageGalleryItem"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/image-gallery.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-dialog"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "image-gallery"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/image-gallery.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/image-gallery.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/image-gallery-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useMemo, useState } from \"react\";\n\nimport { TidalImageGallery, type TidalImageGalleryItem } from \"./components/ui/image-gallery\";\n\nimport \"./components/ui/image-gallery.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .image-gallery-demo,\\n.tidal-scope .image-gallery-demo * {\\n  box-sizing: border-box;\\n}\\n.tidal-scope .image-gallery-demo {\\n  width: min(100%, 980px);\\n  min-width: 0;\\n  margin-inline: auto;\\n  padding: clamp(8px, 3vw, 28px);\\n  background: var(--t-subtle);\\n  color: var(--t-ink);\\n}\\n.tidal-scope .image-gallery-demo-footer {\\n  padding: 10px 12px 0;\\n}\\n.tidal-scope .image-gallery-demo-footer p {\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .image-gallery-demo * {\\n    scroll-behavior: auto;\\n  }\\n}\";\n\nfunction StudyVisual({\n  variant,\n  label,\n}: {\n  variant: 1 | 2 | 3;\n  label: string;\n}) {\n  return (\n    <svg viewBox=\"0 0 720 440\" role=\"img\" aria-label={label}>\n      <rect width=\"720\" height=\"440\" fill=\"var(--t-surface)\" />\n      <path\n        d=\"M0 80H720M0 160H720M0 240H720M0 320H720M120 0V440M240 0V440M360 0V440M480 0V440M600 0V440\"\n        stroke=\"var(--t-border)\"\n      />\n      {variant === 1 ? (\n        <>\n          <rect\n            x=\"70\"\n            y=\"70\"\n            width=\"250\"\n            height=\"300\"\n            rx=\"18\"\n            fill=\"var(--t-ink)\"\n          />\n          <rect\n            x=\"350\"\n            y=\"70\"\n            width=\"300\"\n            height=\"82\"\n            rx=\"15\"\n            fill=\"var(--t-wash)\"\n            stroke=\"var(--t-ink)\"\n          />\n          <rect\n            x=\"350\"\n            y=\"174\"\n            width=\"140\"\n            height=\"196\"\n            rx=\"15\"\n            fill=\"var(--t-subtle)\"\n            stroke=\"var(--t-ink)\"\n          />\n          <rect\n            x=\"510\"\n            y=\"174\"\n            width=\"140\"\n            height=\"196\"\n            rx=\"70\"\n            fill=\"none\"\n            stroke=\"var(--t-ink)\"\n            strokeWidth=\"3\"\n          />\n          <circle cx=\"195\" cy=\"220\" r=\"58\" fill=\"var(--t-surface)\" />\n          <path\n            d=\"M155 220h80M195 180v80\"\n            stroke=\"var(--t-ink)\"\n            strokeWidth=\"5\"\n          />\n        </>\n      ) : variant === 2 ? (\n        <>\n          <path\n            d=\"M70 310C170 120 250 350 350 170S530 280 650 95\"\n            fill=\"none\"\n            stroke=\"var(--t-ink)\"\n            strokeWidth=\"12\"\n            strokeLinecap=\"round\"\n          />\n          {[70, 210, 350, 510, 650].map((x, index) => (\n            <g key={x}>\n              <circle\n                cx={x}\n                cy={[310, 220, 170, 205, 95][index]}\n                r=\"24\"\n                fill=\"var(--t-surface)\"\n                stroke=\"var(--t-ink)\"\n                strokeWidth=\"4\"\n              />\n              <circle\n                cx={x}\n                cy={[310, 220, 170, 205, 95][index]}\n                r=\"8\"\n                fill=\"var(--t-ink)\"\n              />\n            </g>\n          ))}\n          <rect\n            x=\"70\"\n            y=\"354\"\n            width=\"580\"\n            height=\"22\"\n            rx=\"11\"\n            fill=\"var(--t-wash)\"\n          />\n          <rect\n            x=\"70\"\n            y=\"354\"\n            width=\"440\"\n            height=\"22\"\n            rx=\"11\"\n            fill=\"var(--t-ink)\"\n          />\n        </>\n      ) : (\n        <>\n          {[0, 1, 2].map((column) => (\n            <g key={column} transform={`translate(${75 + column * 205} 72)`}>\n              <rect\n                width=\"160\"\n                height=\"296\"\n                rx=\"18\"\n                fill={column === 1 ? \"var(--t-ink)\" : \"var(--t-subtle)\"}\n                stroke=\"var(--t-ink)\"\n              />\n              <rect\n                x=\"26\"\n                y=\"34\"\n                width=\"108\"\n                height=\"12\"\n                rx=\"6\"\n                fill={column === 1 ? \"var(--t-surface)\" : \"var(--t-ink)\"}\n              />\n              {[76, 130, 184].map((y, index) => (\n                <rect\n                  key={y}\n                  x=\"20\"\n                  y={y}\n                  width=\"120\"\n                  height=\"38\"\n                  rx=\"9\"\n                  fill={\n                    column === 1\n                      ? \"var(--t-surface)\"\n                      : index === column\n                        ? \"var(--t-ink)\"\n                        : \"var(--t-surface)\"\n                  }\n                  stroke=\"var(--t-border)\"\n                />\n              ))}\n              <circle\n                cx=\"80\"\n                cy=\"260\"\n                r=\"14\"\n                fill={column === 1 ? \"var(--t-surface)\" : \"var(--t-ink)\"}\n              />\n            </g>\n          ))}\n        </>\n      )}\n    </svg>\n  );\n}\n\nconst STUDIES = [\n  {\n    id: \"structure\",\n    label: \"Structure study\",\n    meta: \"Canvas 01\",\n    caption: \"A modular workspace shell built from clear content zones.\",\n    variant: 1 as const,\n  },\n  {\n    id: \"flow\",\n    label: \"Flow study\",\n    meta: \"Canvas 02\",\n    caption: \"A release path that keeps progress and checkpoints in one view.\",\n    variant: 2 as const,\n  },\n  {\n    id: \"index\",\n    label: \"Index study\",\n    meta: \"Canvas 03\",\n    caption: \"Three compact file columns for scanning work by stage.\",\n    variant: 3 as const,\n  },\n] as const;\n\nexport function ImageGalleryDemo({\n  theme = \"light\",\n}: {\n  theme?: \"light\" | \"dark\";\n}) {\n  const [currentItemId, setCurrentItemId] = useState(\"structure\");\n  const [open, setOpen] = useState(false);\n  const [status, setStatus] = useState(\"Structure study is selected.\");\n  const items = useMemo<readonly TidalImageGalleryItem[]>(\n    () =>\n      STUDIES.map((study) => ({\n        ...study,\n        media: (\n          <StudyVisual\n            variant={study.variant}\n            label={`${study.label}. ${study.caption}`}\n          />\n        ),\n      })),\n    [],\n  );\n\n  return (\n    <section className=\"image-gallery-demo\" aria-label=\"Workspace studies\">\n      <TidalImageGallery\n        theme={theme}\n        label=\"Workspace studies\"\n        items={items}\n        currentItemId={currentItemId}\n        onCurrentItemChange={(id) => {\n          setCurrentItemId(id);\n          const item = STUDIES.find((study) => study.id === id);\n          setStatus(`${item?.label ?? \"Image\"} is selected.`);\n        }}\n        open={open}\n        onOpenChange={(nextOpen) => {\n          setOpen(nextOpen);\n          setStatus(\n            nextOpen ? \"Expanded preview opened.\" : \"Expanded preview closed.\",\n          );\n        }}\n      />\n      <footer className=\"image-gallery-demo-footer\">\n        <p role=\"status\" aria-live=\"polite\">\n          {status} Sample artwork. Changes stay in this preview.\n        </p>\n      </footer>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <ImageGalleryDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/image-gallery.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "currentItemId",
      "type": "inferred-from-existing-demo",
      "initial": "\"structure\"",
      "setter": "setCurrentItemId",
      "proposalCanBeRejected": false
    },
    {
      "prop": "open",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setOpen",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onCurrentItemChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onOpenChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
