{
  "component": {
    "id": "tooltip",
    "name": "Tooltip",
    "tier": "pro",
    "exampleId": "tooltip",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/core-demos.tsx",
    "exportName": "TooltipDemo",
    "sha256": "7c2959d7795d34f37db0447c3d150dca1160412433f0d252d57bed77dc598a31",
    "helperImports": [],
    "directComponentImports": [
      "tidal-button",
      "tooltip"
    ],
    "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/tooltip",
    "registryUrl": "https://tidalui.com/r/pro/tooltip.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/tooltip",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/tooltip",
      "registryUrl": "https://tidalui.com/r/pro/tooltip.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/tidal-button.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/tidal-button.json",
      "registryUrl": "https://tidalui.com/r/tidal-button.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/tooltip.tsx",
    "exports": [
      "TidalButton",
      "TidalTooltip",
      "TidalTooltipProvider"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/tooltip.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-tooltip",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [
      "https://tidalui.com/r/tidal-button.json"
    ],
    "installClosure": [
      "tidal-button",
      "tooltip"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/tooltip.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/tooltip.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/demo-styles.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { TidalTooltip, TidalTooltipProvider } from \"./components/ui/tooltip\";\n\nimport \"./components/ui/tooltip.css\";\n\nimport { Share2, Download } from \"lucide-react\";\n\nimport { LayoutGrid, Folder } from \"lucide-react\";\n\nimport { useState, useId } from \"react\";\n\nimport { TidalButton } from \"./components/ui/tidal-button\";\n\n\n\nconst tidalExampleStyles = \".demo-eyebrow{font-size:11px;letter-spacing:1px;color:var(--t-muted);font-weight:500;margin:0 0 13px}\\n\\n.tooltip-specimen{width:100%;max-width:370px;background:var(--t-surface);border:1px solid var(--t-border);border-radius:17px;padding:28px;text-align:center;box-shadow:0 8px 24px #1f1f1f07}.tooltip-specimen>.demo-eyebrow{font-size:11px}.tooltip-specimen>h3{font-size:23px;letter-spacing:-.8px;color:var(--t-ink);margin:12px 0 23px}.tooltip-demo-tools{display:flex;justify-content:center;gap:10px}.tooltip-demo-tools .tidal-button{width:44px;padding:0;border-radius:10px}.tooltip-demo-status{font-size:11px;color:var(--t-muted);margin:22px 0 0;line-height:1.6}.tooltip-demo-note{font-size:11px;color:var(--t-muted);margin:8px 0 0}\\n.tooltip-specimen{max-width:580px;padding:28px;text-align:left;border-radius:var(--t-radius-card);box-shadow:0 24px 40px -28px #00000035,0 2px 4px #00000008}.tooltip-demo-heading>h3{font-size:26px;letter-spacing:-.9px;line-height:1.2;margin:13px 0 24px}.tooltip-demo-document{border:1px solid var(--t-border);border-radius:12px;padding:20px;background:linear-gradient(145deg,var(--t-subtle),var(--t-surface));box-shadow:0 2px 3px #00000005;transition:padding 420ms var(--t-ease-out)}.tooltip-demo-document-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--t-muted);font-size:11px;letter-spacing:1px}.tooltip-demo-document-top>span:first-child{display:flex;align-items:center;gap:7px}.tooltip-demo-document>h4{font-family:\\\"Instrument Serif\\\",serif;font-style:italic;font-size:29px;line-height:1.15;letter-spacing:-.5px;font-weight:400;margin:20px 0 12px;color:var(--t-ink);transition:margin 420ms var(--t-ease-out)}.tooltip-demo-document>p{font-size:11px;line-height:1.8;margin:0;color:var(--t-muted);max-width:380px}.tooltip-demo-document-lines{display:flex;flex-direction:column;gap:7px;margin:19px 0 21px}.tooltip-demo-document-lines>span{height:3px;border-radius:2px;background:var(--t-border);width:88%;transition:width 420ms var(--t-ease-out),margin 420ms var(--t-ease-out)}.tooltip-demo-document-lines>span:nth-child(2){width:72%}.tooltip-demo-document-lines>span:last-child{width:48%}.tooltip-demo-document[data-roomy=true]{padding-block:28px}.tooltip-demo-document[data-roomy=true]>h4{margin-top:28px;margin-bottom:18px}.tooltip-demo-document[data-roomy=true] .tooltip-demo-document-lines>span{width:95%;margin-block:2px}.tooltip-demo-document[data-roomy=true] .tooltip-demo-document-lines>span:nth-child(2){width:82%}.tooltip-demo-document[data-roomy=true] .tooltip-demo-document-lines>span:last-child{width:62%}.tooltip-demo-document-bottom{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--t-muted);border-top:1px solid var(--t-border);padding-top:12px}.tooltip-demo-document-bottom>span:last-child{margin-left:auto}.tooltip-demo-document-avatar{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--t-ink);color:var(--t-surface);font-size:11px}.tooltip-demo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:18px}.tooltip-demo-toolbar>span{font-size:11px;letter-spacing:1px;color:var(--t-muted)}.tooltip-demo-tools{gap:7px}.tooltip-demo-tools .tidal-button[aria-pressed=true],.tooltip-demo-tools .tidal-button[aria-expanded=true]{background:var(--t-ink);color:var(--t-surface);border-color:var(--t-ink)}.tooltip-demo-sharing{display:grid;grid-template-rows:0fr;transition:grid-template-rows 420ms var(--t-ease-out)}.tooltip-demo-sharing[data-open=true]{grid-template-rows:1fr}.tooltip-demo-sharing>div{overflow:hidden;min-height:0}.tooltip-demo-sharing section{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:19px 7px 7px}.tooltip-demo-sharing .demo-eyebrow{width:100%;font-size:11px}.tooltip-demo-sharing code{font-size:11px;color:var(--t-muted);overflow-wrap:anywhere;flex:1}.tooltip-demo-sharing .tidal-button{font-size:11px;flex:none}.tooltip-demo-status{margin-top:19px;font-size:11px;min-height:16px;line-height:1.6;color:var(--t-muted)}.tooltip-demo-note{font-size:11px;margin-top:5px;color:var(--t-muted)}@media(max-width:420px){.tooltip-specimen{padding:22px}.tooltip-demo-heading>h3{font-size:23px}.tooltip-demo-document{padding:16px}.tooltip-demo-document>h4{font-size:26px}.tooltip-demo-toolbar>span{font-size:11px;max-width:90px;line-height:1.8}.tooltip-demo-sharing code{font-size:11px}.tooltip-demo-sharing .tidal-button{padding-inline:12px}}\";\n\nexport function TooltipDemo({\n  theme = \"light\",\n  writeText,\n}: {\n  theme?: \"light\" | \"dark\";\n  writeText?: (text: string) => Promise<void>;\n}) {\n  const [action, setAction] = useState(\"Hover or focus a control.\");\n  const [roomy, setRoomy] = useState(false);\n  const [sharing, setSharing] = useState(false);\n  const shareId = useId();\n  async function copyLink() {\n    try {\n      const url = new URL(\"/sample-project-brief.txt\", window.location.href)\n        .href;\n      await (writeText ? writeText(url) : navigator.clipboard.writeText(url));\n      setAction(\"Sample document link copied.\");\n    } catch {\n      setAction(\n        \"Copy unavailable. The sample file is at /sample-project-brief.txt.\",\n      );\n    }\n  }\n  return (\n    <TidalTooltipProvider>\n      <div className=\"tooltip-specimen\" data-sharing={sharing}>\n        <div className=\"tooltip-demo-heading\"></div>\n        <article\n          className=\"tooltip-demo-document\"\n          data-roomy={roomy}\n          aria-label=\"Sample project brief\"\n        >\n          <div className=\"tooltip-demo-document-top\">\n            <span>\n              <Folder size={13} aria-hidden=\"true\" /> NORTHSTAR\n            </span>\n            <span>SAMPLE .TXT</span>\n          </div>\n          <h4>Project brief</h4>\n          <p>Goals, scope and milestones for the sample project.</p>\n          <div className=\"tooltip-demo-document-lines\" aria-hidden=\"true\">\n            <span />\n            <span />\n            <span />\n          </div>\n          <div className=\"tooltip-demo-document-bottom\">\n            <span className=\"tooltip-demo-document-avatar\" aria-hidden=\"true\">\n              NS\n            </span>\n            <span>Original sample content</span>\n            <span>{roomy ? \"Roomy\" : \"Compact\"}</span>\n          </div>\n        </article>\n        <div className=\"tooltip-demo-toolbar\">\n          <span>DOCUMENT ACTIONS</span>\n          <div\n            className=\"tooltip-demo-tools\"\n            role=\"group\"\n            aria-label=\"Sample document actions\"\n          >\n            <TidalTooltip\n              content=\"Show the sample document link.\"\n              shortcut=\"Enter\"\n              theme={theme}\n            >\n              <TidalButton\n                variant=\"secondary\"\n                aria-label=\"Show sample link\"\n                aria-expanded={sharing}\n                aria-controls={shareId}\n                onClick={() => {\n                  setSharing(!sharing);\n                  setAction(\n                    sharing\n                      ? \"Sample link hidden.\"\n                      : \"Copy the sample link below.\",\n                  );\n                }}\n              >\n                <Share2 size={17} aria-hidden=\"true\" />\n              </TidalButton>\n            </TidalTooltip>\n            <TidalTooltip\n              content=\"Download the fictional project brief.\"\n              shortcut=\"Enter\"\n              theme={theme}\n            >\n              <a\n                className=\"tidal-button tidal-button-secondary\"\n                href=\"/sample-project-brief.txt\"\n                download\n                aria-label=\"Download sample document\"\n                onClick={() => setAction(\"Sample document download requested.\")}\n              >\n                <Download size={17} aria-hidden=\"true\" />\n              </a>\n            </TidalTooltip>\n            <TidalTooltip\n              content={\n                roomy\n                  ? \"Use compact document spacing.\"\n                  : \"Give the document more room.\"\n              }\n              shortcut=\"Enter\"\n              theme={theme}\n            >\n              <TidalButton\n                variant=\"secondary\"\n                aria-label=\"Toggle document spacing\"\n                aria-pressed={roomy}\n                onClick={() => {\n                  setRoomy(!roomy);\n                  setAction(\n                    roomy\n                      ? \"Compact document spacing.\"\n                      : \"Roomy document spacing.\",\n                  );\n                }}\n              >\n                <LayoutGrid size={17} aria-hidden=\"true\" />\n              </TidalButton>\n            </TidalTooltip>\n          </div>\n        </div>\n        <div\n          className=\"tooltip-demo-sharing\"\n          id={shareId}\n          data-open={sharing}\n          aria-hidden={!sharing}\n          inert={!sharing}\n        >\n          <div>\n            <section>\n              <span className=\"demo-eyebrow\">SAMPLE DOCUMENT LINK</span>\n              <code>/sample-project-brief.txt</code>\n              <TidalButton variant=\"secondary\" onClick={copyLink}>\n                Copy sample link <Share2 size={14} aria-hidden=\"true\" />\n              </TidalButton>\n            </section>\n          </div>\n        </div>\n        <p className=\"tooltip-demo-status\" role=\"status\">\n          {action}\n        </p>\n        <p className=\"tooltip-demo-note\">Hover or focus a control.</p>\n      </div>\n    </TidalTooltipProvider>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <TooltipDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/tooltip.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "sharing",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setSharing",
      "proposalCanBeRejected": false
    },
    {
      "prop": "roomy",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setRoomy",
      "proposalCanBeRejected": false
    },
    {
      "prop": "expanded",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setSharing",
      "proposalCanBeRejected": false
    },
    {
      "prop": "pressed",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setRoomy",
      "proposalCanBeRejected": false
    },
    {
      "prop": "open",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setSharing",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": false,
      "preventable": false,
      "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": "No error fixture is exposed by the existing demo; inject a consumer-owned failure state before production use.",
      "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": []
}
