{
  "component": {
    "id": "heatmap",
    "name": "Heatmap",
    "tier": "pro",
    "exampleId": "heatmap",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/heatmap-demo.tsx",
    "exportName": "HeatmapDemo",
    "sha256": "cc02214325af9f29f0c4439c4289861c88892c107966b0cbb916d3bcfb081273",
    "helperImports": [],
    "directComponentImports": [
      "heatmap"
    ],
    "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/heatmap",
    "registryUrl": "https://tidalui.com/r/pro/heatmap.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/heatmap",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/heatmap",
      "registryUrl": "https://tidalui.com/r/pro/heatmap.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/heatmap.tsx",
    "exports": [
      "TidalHeatmap",
      "TidalHeatmapCoordinate"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/heatmap.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "heatmap"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/heatmap.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/heatmap.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalHeatmap, type TidalHeatmapCoordinate } from \"./components/ui/heatmap\";\n\nimport \"./components/ui/heatmap.css\";\n\n\n\nconst rows = [\n  { id: \"mon\", label: \"Monday\" },\n  { id: \"tue\", label: \"Tuesday\" },\n  { id: \"wed\", label: \"Wednesday\" },\n  { id: \"thu\", label: \"Thursday\" },\n  { id: \"fri\", label: \"Friday\" },\n];\n\nconst columns = [\n  { id: \"9\", label: \"9 AM\" },\n  { id: \"11\", label: \"11 AM\" },\n  { id: \"13\", label: \"1 PM\" },\n  { id: \"15\", label: \"3 PM\" },\n  { id: \"17\", label: \"5 PM\" },\n];\n\nconst counts = [\n  [42, 81, 123, 96, 35],\n  [58, 102, 184, 128, 54],\n  [74, 125, 246, 192, 79],\n  [61, 118, 205, 151, 62],\n  [36, 69, 97, 82, null],\n];\n\nconst cells = rows.flatMap((row, r) =>\n  columns.map((column, c) => ({\n    rowId: row.id,\n    columnId: column.id,\n    value: counts[r]![c]!,\n  })),\n);\n\nexport function HeatmapDemo() {\n  const [selected, setSelected] = useState<TidalHeatmapCoordinate | null>({\n    rowId: \"wed\",\n    columnId: \"13\",\n  });\n  return (\n    <div style={{ width: \"100%\", maxWidth: 940, display: \"grid\", gap: 12 }}>\n      <TidalHeatmap\n        title=\"Workspace activity\"\n        description=\"Sample events by weekday and time. Select a cell for its exact count.\"\n        rows={rows}\n        columns={columns}\n        cells={cells}\n        selectedCell={selected}\n        onSelectedCellChange={setSelected}\n      />\n      <p style={{ margin: 0, fontSize: 11, color: \"var(--t-muted)\" }}>\n        Fictional counts. Arrow keys move through cells; Enter selects. Missing\n        data stays distinct from zero.\n      </p>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <HeatmapDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/heatmap.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "selectedCell",
      "type": "inferred-from-existing-demo",
      "initial": "{\n    rowId: \"wed\",\n    columnId: \"13\",\n  }",
      "setter": "setSelected",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onSelectedCellChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "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": "Consumer-provided label remains required where the component API requires one.",
    "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": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "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": []
}
