{
  "component": {
    "id": "area-chart",
    "name": "Area chart",
    "tier": "pro",
    "exampleId": "area-chart",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/area-chart-demo.tsx",
    "exportName": "AreaChartDemo",
    "sha256": "cb68b10d5ebc2b0bf23144b62e8ac38421db3876e1b55828d0a75fb117b06f31",
    "helperImports": [],
    "directComponentImports": [
      "area-chart"
    ],
    "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/area-chart",
    "registryUrl": "https://tidalui.com/r/pro/area-chart.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/area-chart",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/area-chart",
      "registryUrl": "https://tidalui.com/r/pro/area-chart.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/area-chart.tsx",
    "exports": [
      "TidalAreaChart",
      "TidalAreaDatum"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/area-chart.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "area-chart"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/area-chart.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/area-chart.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/area-chart-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalAreaChart, type TidalAreaDatum } from \"./components/ui/area-chart\";\n\nimport \"./components/ui/area-chart.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .area-chart-demo {\\n  width: 100%;\\n  max-width: 760px;\\n  min-width: 0;\\n}\\n.area-chart-demo > p {\\n  font-size: 11px;\\n  line-height: 1.6;\\n  color: var(--t-muted);\\n  margin: 14px 0 0;\\n  overflow-wrap: anywhere;\\n}\\n.area-chart-mode {\\n  display: flex;\\n  justify-content: flex-end;\\n  gap: 12px;\\n  align-items: center;\\n  flex-wrap: wrap;\\n  margin-top: 14px;\\n  font-size: 11px;\\n  color: var(--t-muted);\\n}\\n.area-chart-mode select {\\n  font-family: inherit;\\n  color: var(--t-ink);\\n  border: 1px solid var(--t-border);\\n  background: var(--t-surface);\\n  border-radius: 8px;\\n  min-height: 44px;\\n  max-width: 100%;\\n  padding: 8px 32px 8px 10px;\\n}\\n.area-chart-mode select:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 2px;\\n}\\n@media (max-width: 480px) {\\n  .area-chart-mode select {\\n    font-size: 16px;\\n  }\\n}\";\n\nconst data: TidalAreaDatum[] = [\n  { id: \"may\", label: \"May\", values: { self: 1200, sales: 600 } },\n  { id: \"jun\", label: \"June\", values: { self: 1450, sales: 700 } },\n  { id: \"jul\", label: \"July\", values: { self: 1380, sales: 820 } },\n  { id: \"aug\", label: \"August\", values: { self: 1820, sales: 940 } },\n  { id: \"sep\", label: \"September\", values: { self: 2100, sales: 1000 } },\n  { id: \"oct\", label: \"October\", values: { self: 2380, sales: 1150 } },\n];\n\nexport function AreaChartDemo() {\n  const [selected, setSelected] = useState(\"oct\"),\n    [mode, setMode] = useState<\"stacked\" | \"overlaid\">(\"stacked\");\n  return (\n    <div className=\"area-chart-demo\">\n      <TidalAreaChart\n        title=\"Monthly subscriptions\"\n        description=\"Self-serve and sales-assisted subscriptions across six sample months.\"\n        data={data}\n        series={[\n          { id: \"self\", label: \"Self-serve\" },\n          { id: \"sales\", label: \"Sales-assisted\" },\n        ]}\n        selectedId={selected}\n        onSelectedChange={setSelected}\n        mode={mode}\n      />\n      <label className=\"area-chart-mode\">\n        Chart layout\n        <select\n          value={mode}\n          onChange={(e) => setMode(e.currentTarget.value as typeof mode)}\n        >\n          <option value=\"stacked\">Stacked</option>\n          <option value=\"overlaid\">Overlaid</option>\n        </select>\n      </label>\n      <p>\n        Sample counts. Move over the plot or use the period control to inspect\n        exact values.\n      </p>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <AreaChartDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/area-chart.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "selectedId",
      "type": "inferred-from-existing-demo",
      "initial": "\"oct\"",
      "setter": "setSelected",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChange",
      "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": "onSelectedChange",
      "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": "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": "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": []
}
