{
  "component": {
    "id": "hover-card",
    "name": "Hover card",
    "tier": "pro",
    "exampleId": "hover-card",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/hover-card-demo.tsx",
    "exportName": "HoverCardDemo",
    "sha256": "6211bd02306278272728033c9ae8a465a590c5709bd70878259ede07b2236b33",
    "helperImports": [],
    "directComponentImports": [
      "hover-card"
    ],
    "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/hover-card",
    "registryUrl": "https://tidalui.com/r/pro/hover-card.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/hover-card",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/hover-card",
      "registryUrl": "https://tidalui.com/r/pro/hover-card.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/hover-card.tsx",
    "exports": [
      "TidalHoverCard",
      "TidalHoverCardContent",
      "TidalHoverCardTrigger"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/hover-card.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-hover-card",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "hover-card"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/hover-card.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/hover-card.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/hover-card-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { MapPin } from \"lucide-react\";\n\nimport { TidalHoverCard, TidalHoverCardContent, TidalHoverCardTrigger } from \"./components/ui/hover-card\";\n\nimport \"./components/ui/hover-card.css\";\n\nfunction tidalExampleAvatarDataUri(seed: unknown) {\n  const text = String(seed).replace(/[^a-z0-9]/gi, \"\").slice(-2) || \"UI\";\n  const palette = [\"#333333\", \"#555555\", \"#777777\", \"#999999\", \"#bbbbbb\"];\n  const color = palette[Array.from(text).reduce((sum, character) => sum + character.charCodeAt(0), 0) % palette.length];\n  const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 96 96\"><rect width=\"96\" height=\"96\" rx=\"48\" fill=\"${color}\"/><circle cx=\"48\" cy=\"38\" r=\"17\" fill=\"white\" fill-opacity=\".92\"/><path d=\"M18 92c3-22 15-34 30-34s27 12 30 34\" fill=\"white\" fill-opacity=\".92\"/></svg>`;\n  return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n\nfunction tidalExampleImageDataUri(label: string) {\n  const safeLabel = label.replace(/[<>&]/g, \"\").slice(0, 28) || \"Sample image\";\n  const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1200 675\"><defs><linearGradient id=\"g\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"1\"><stop stop-color=\"#171717\"/><stop offset=\"1\" stop-color=\"#555555\"/></linearGradient></defs><rect width=\"1200\" height=\"675\" fill=\"url(#g)\"/><circle cx=\"950\" cy=\"100\" r=\"260\" fill=\"white\" fill-opacity=\".08\"/><text x=\"80\" y=\"570\" fill=\"white\" font-family=\"system-ui,sans-serif\" font-size=\"64\" font-weight=\"700\">${safeLabel}</text></svg>`;\n  return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n}\n\nconst tidalExampleStyles = \".tidal-scope .hover-card-demo,\\n.tidal-scope .hover-card-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .hover-card-demo {\\n  container: tidal-hover-demo / inline-size;\\n  display: grid;\\n  width: min(100%, 980px);\\n  min-width: 0;\\n  gap: 24px;\\n  margin-inline: auto;\\n  padding: clamp(16px, 4vw, 44px);\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .hover-card-demo-heading {\\n  display: grid;\\n  max-width: 620px;\\n  min-width: 0;\\n  gap: 8px;\\n}\\n\\n.tidal-scope .hover-card-demo-heading :is(h2, p) {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .hover-card-demo-heading h2 {\\n  font-size: clamp(27px, 5vw, 44px);\\n  font-weight: 570;\\n  letter-spacing: -0.052em;\\n  line-height: 1;\\n}\\n\\n.tidal-scope .hover-card-demo-heading p {\\n  color: var(--t-muted);\\n  font-size: 12px;\\n  line-height: 1.55;\\n}\\n\\n.tidal-scope .hover-card-demo-grid {\\n  display: grid;\\n  grid-template-columns: repeat(3, minmax(0, 1fr));\\n  min-width: 0;\\n  gap: 10px;\\n}\\n\\n.tidal-scope .hover-card-demo-person {\\n  display: grid;\\n  grid-template-columns: 44px minmax(0, 1fr) 28px;\\n  justify-content: stretch;\\n  width: 100%;\\n  min-width: 0;\\n  min-height: 76px;\\n  gap: 11px;\\n  padding: 10px 12px;\\n  text-align: start;\\n}\\n\\n.tidal-scope .hover-card-demo-person > img,\\n.tidal-scope .hover-card-demo-profile header > img {\\n  width: 44px;\\n  height: 44px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 50%;\\n  object-fit: cover;\\n  filter: grayscale(1);\\n}\\n\\n.tidal-scope .hover-card-demo-person > span:not(.hover-card-demo-person-mark) {\\n  display: grid;\\n  min-width: 0;\\n  gap: 3px;\\n}\\n\\n.tidal-scope .hover-card-demo-person :is(strong, small) {\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .hover-card-demo-person strong {\\n  font-size: 12px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .hover-card-demo-person small {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .hover-card-demo-person-mark {\\n  display: grid;\\n  width: 28px;\\n  height: 28px;\\n  place-items: center;\\n  border: 1px solid var(--t-border);\\n  border-radius: 50%;\\n  font-size: 15px;\\n  transition:\\n    background 180ms,\\n    color 180ms,\\n    transform 220ms var(--t-ease-out);\\n}\\n\\n.tidal-scope\\n  .hover-card-demo-person[data-state=\\\"open\\\"]\\n  .hover-card-demo-person-mark {\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n  transform: rotate(45deg);\\n}\\n\\n.tidal-scope .hover-card-demo-profile {\\n  display: grid;\\n  min-width: 0;\\n  gap: 16px;\\n}\\n\\n.tidal-scope .hover-card-demo-profile header {\\n  display: grid;\\n  grid-template-columns: 48px minmax(0, 1fr);\\n  align-items: center;\\n  min-width: 0;\\n  gap: 12px;\\n}\\n\\n.tidal-scope .hover-card-demo-profile header > img {\\n  width: 48px;\\n  height: 48px;\\n}\\n\\n.tidal-scope .hover-card-demo-profile header > div {\\n  display: grid;\\n  min-width: 0;\\n  gap: 3px;\\n}\\n\\n.tidal-scope .hover-card-demo-profile :is(strong, span, p, dl, dt, dd) {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .hover-card-demo-profile strong {\\n  font-size: 16px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .hover-card-demo-profile header span,\\n.tidal-scope .hover-card-demo-profile p,\\n.tidal-scope .hover-card-demo-profile dd {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n}\\n\\n.tidal-scope .hover-card-demo-profile dl {\\n  display: grid;\\n  gap: 8px;\\n}\\n\\n.tidal-scope .hover-card-demo-profile dl > div {\\n  display: grid;\\n  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);\\n  min-width: 0;\\n  gap: 10px;\\n  padding-top: 9px;\\n  border-top: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .hover-card-demo-profile dt {\\n  display: inline-flex;\\n  align-items: center;\\n  gap: 5px;\\n  font-size: 11px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .hover-card-demo-profile footer {\\n  padding: 9px 10px;\\n  border-radius: 9px;\\n  background: var(--t-wash);\\n  font-size: 11px;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .hover-card-demo-footer {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  min-width: 0;\\n  gap: 14px;\\n}\\n\\n.tidal-scope .hover-card-demo-footer span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .hover-card-demo-footer button {\\n  flex: 0 0 auto;\\n  min-width: 44px;\\n  min-height: 44px;\\n  padding: 0 14px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 620;\\n}\\n\\n.tidal-scope .hover-card-demo-footer button:focus-visible {\\n  outline: 2px solid var(--t-ink);\\n  outline-offset: 3px;\\n}\\n\\n@container tidal-hover-demo (max-width: 700px) {\\n  .tidal-scope .hover-card-demo-grid {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\\n\\n@container tidal-hover-demo (max-width: 390px) {\\n  .tidal-scope .hover-card-demo-footer {\\n    align-items: stretch;\\n    flex-direction: column;\\n  }\\n\\n  .tidal-scope .hover-card-demo-footer button {\\n    width: 100%;\\n  }\\n}\\n\\n@media (pointer: coarse) {\\n  .tidal-scope .hover-card-demo-person,\\n  .tidal-scope .hover-card-demo-footer button {\\n    font-size: 16px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .hover-card-demo-person-mark {\\n    transition: none;\\n  }\\n}\";\n\ntype Profile = {\n  id: string;\n  name: string;\n  role: string;\n  location: string;\n  detail: string;\n  focus: string;\n  avatar: string;\n};\n\nconst PROFILES: Profile[] = [\n  {\n    id: \"avery\",\n    name: \"Avery Morgan\",\n    role: \"Product designer\",\n    location: \"Chicago\",\n    detail: \"Shapes the workspace navigation and review flow.\",\n    focus: \"Current focus · Project handoff\",\n    avatar: tidalExampleAvatarDataUri(\"04\"),\n  },\n  {\n    id: \"noah\",\n    name: \"Noah Bennett\",\n    role: \"Frontend engineer\",\n    location: \"Austin\",\n    detail: \"Builds interface systems for the project workspace.\",\n    focus: \"Current focus · File browser\",\n    avatar: tidalExampleAvatarDataUri(\"06\"),\n  },\n  {\n    id: \"mila\",\n    name: \"Mila Chen\",\n    role: \"Research lead\",\n    location: \"Toronto\",\n    detail: \"Organizes customer notes and weekly product findings.\",\n    focus: \"Current focus · Research summary\",\n    avatar: tidalExampleAvatarDataUri(\"08\"),\n  },\n];\n\nexport function HoverCardDemo({\n  theme = \"light\",\n}: {\n  theme?: \"light\" | \"dark\";\n}) {\n  const headingId = `${useId().replace(/:/g, \"\")}-team-directory`;\n  const [openProfileId, setOpenProfileId] = useState<string | null>(null);\n  const [status, setStatus] = useState(\"Choose a teammate to preview details.\");\n\n  return (\n    <section className=\"hover-card-demo\" aria-labelledby={headingId}>\n      <header className=\"hover-card-demo-heading\">\n        <h2 id={headingId}>Team directory</h2>\n        <p>Hover, focus, or tap a teammate to preview their details.</p>\n      </header>\n\n      <div className=\"hover-card-demo-grid\" aria-label=\"Fictional teammates\">\n        {PROFILES.map((profile) => (\n          <TidalHoverCard\n            theme={theme}\n            key={profile.id}\n            open={openProfileId === profile.id}\n            onOpenChange={(open) => {\n              setOpenProfileId(open ? profile.id : null);\n              if (open) setStatus(`${profile.name} preview opened.`);\n            }}\n            accessibleDescription={`${profile.name}, ${profile.role} in ${profile.location}. ${profile.detail} ${profile.focus}.`}\n          >\n            <TidalHoverCardTrigger className=\"hover-card-demo-person\">\n              <img src={profile.avatar} alt=\"\" />\n              <span>\n                <strong>{profile.name}</strong>\n                <small>{profile.role}</small>\n              </span>\n              <span className=\"hover-card-demo-person-mark\" aria-hidden=\"true\">\n                +\n              </span>\n            </TidalHoverCardTrigger>\n\n            <TidalHoverCardContent\n              role=\"region\"\n              aria-label={`${profile.name} profile preview`}\n            >\n              <article className=\"hover-card-demo-profile\">\n                <header>\n                  <img src={profile.avatar} alt=\"\" />\n                  <div>\n                    <strong>{profile.name}</strong>\n                    <span>{profile.role}</span>\n                  </div>\n                </header>\n                <p>{profile.detail}</p>\n                <dl>\n                  <div>\n                    <dt>\n                      <MapPin size={14} aria-hidden=\"true\" /> Location\n                    </dt>\n                    <dd>{profile.location}</dd>\n                  </div>\n                  <div>\n                    <dt>Work</dt>\n                    <dd>{profile.focus.replace(\"Current focus · \", \"\")}</dd>\n                  </div>\n                </dl>\n                <footer>{profile.focus}</footer>\n              </article>\n            </TidalHoverCardContent>\n          </TidalHoverCard>\n        ))}\n      </div>\n\n      <footer className=\"hover-card-demo-footer\">\n        <span role=\"status\" aria-live=\"polite\">\n          {status} Sample profiles stay on this page.\n        </span>\n        <button\n          type=\"button\"\n          onClick={() => {\n            setOpenProfileId(null);\n            setStatus(\"Profile preview closed.\");\n          }}\n        >\n          Close preview\n        </button>\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      <HoverCardDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/hover-card.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native 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": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "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": []
}
