{
  "component": {
    "id": "line-chart",
    "name": "Line chart",
    "tier": "pro",
    "exampleId": "line-chart",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/line-chart-demo.tsx",
    "exportName": "LineChartDemo",
    "sha256": "a370aa6126192045c77ca8e6639007f9300c88b99426b5b5930179ada409497d",
    "helperImports": [],
    "directComponentImports": [
      "line-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/line-chart",
    "registryUrl": "https://tidalui.com/r/pro/line-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/line-chart",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/line-chart",
      "registryUrl": "https://tidalui.com/r/pro/line-chart.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/line-chart.tsx",
    "exports": [
      "TidalLineChart",
      "TidalLineChartPoint"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/line-chart.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "line-chart"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/line-chart.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/line-chart.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/line-chart-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useMemo, useState } from \"react\";\n\nimport { TidalLineChart, type TidalLineChartPoint } from \"./components/ui/line-chart\";\n\nimport \"./components/ui/line-chart.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .line-chart-demo {\\n  display: grid;\\n  width: min(100%, 880px);\\n  min-width: 0;\\n  gap: 11px;\\n  margin-inline: auto;\\n}\\n\\n.tidal-scope .line-chart-demo-controls {\\n  display: grid;\\n  width: min(100%, 260px);\\n  grid-template-columns: repeat(2, minmax(0, 1fr));\\n  gap: 5px;\\n  padding: 5px;\\n  background: var(--t-subtle);\\n  border: 1px solid var(--t-border);\\n  border-radius: 14px;\\n}\\n\\n.tidal-scope .line-chart-demo-controls button {\\n  min-width: 44px;\\n  min-height: 44px;\\n  padding: 8px 12px;\\n  color: var(--t-muted);\\n  background: transparent;\\n  border: 1px solid transparent;\\n  border-radius: var(--t-radius-control);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 700;\\n  cursor: pointer;\\n  transition:\\n    color 140ms,\\n    background 180ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .line-chart-demo-controls button[aria-pressed=\\\"true\\\"] {\\n  color: var(--t-surface);\\n  background: var(--t-ink);\\n}\\n\\n.tidal-scope .line-chart-demo-controls button:active {\\n  transform: scale(0.97);\\n}\\n\\n.tidal-scope .line-chart-demo-controls button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .line-chart-demo-footer {\\n  display: flex;\\n  justify-content: space-between;\\n  gap: 12px;\\n}\\n\\n.tidal-scope .line-chart-demo-status {\\n  min-height: 1.4em;\\n  margin: 0 5px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.4;\\n  text-align: center;\\n}\\n\\n@container tidal-line-chart (max-width: 480px) {\\n  .tidal-scope .line-chart-demo-footer {\\n    flex-direction: column;\\n    gap: 3px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .line-chart-demo-controls button {\\n    transition: none;\\n  }\\n\\n  .tidal-scope .line-chart-demo-controls button:active {\\n    transform: none;\\n  }\\n}\";\n\ntype PeriodId = \"week\" | \"month\";\n\nconst DATA: Record<PeriodId, readonly TidalLineChartPoint[]> = {\n  week: [\n    {\n      id: \"oct-08\",\n      label: \"Oct 8\",\n      value: 12,\n      displayValue: \"12 tasks\",\n      description: \"Fictional completed-task count\",\n    },\n    {\n      id: \"oct-09\",\n      label: \"Oct 9\",\n      value: 18,\n      displayValue: \"18 tasks\",\n      description: \"Fictional completed-task count\",\n    },\n    {\n      id: \"oct-10\",\n      label: \"Oct 10\",\n      value: 14,\n      displayValue: \"14 tasks\",\n      description: \"Fictional completed-task count\",\n    },\n    {\n      id: \"oct-11\",\n      label: \"Oct 11\",\n      value: 26,\n      displayValue: \"26 tasks\",\n      description: \"Fictional completed-task count\",\n    },\n    {\n      id: \"oct-12\",\n      label: \"Oct 12\",\n      value: 21,\n      displayValue: \"21 tasks\",\n      description: \"Fictional completed-task count\",\n    },\n    {\n      id: \"oct-13\",\n      label: \"Oct 13\",\n      value: 31,\n      displayValue: \"31 tasks\",\n      description: \"Fictional completed-task count\",\n    },\n    {\n      id: \"oct-14\",\n      label: \"Oct 14\",\n      value: 28,\n      displayValue: \"28 tasks\",\n      description: \"Fictional completed-task count\",\n    },\n  ],\n  month: [\n    { id: \"sep-15\", label: \"Sep 15\", value: 9, displayValue: \"9 tasks\" },\n    { id: \"sep-18\", label: \"Sep 18\", value: 15, displayValue: \"15 tasks\" },\n    { id: \"sep-21\", label: \"Sep 21\", value: 13, displayValue: \"13 tasks\" },\n    { id: \"sep-24\", label: \"Sep 24\", value: 22, displayValue: \"22 tasks\" },\n    { id: \"sep-27\", label: \"Sep 27\", value: 19, displayValue: \"19 tasks\" },\n    { id: \"sep-30\", label: \"Sep 30\", value: 25, displayValue: \"25 tasks\" },\n    { id: \"oct-03\", label: \"Oct 3\", value: 23, displayValue: \"23 tasks\" },\n    { id: \"oct-06\", label: \"Oct 6\", value: 30, displayValue: \"30 tasks\" },\n    { id: \"oct-10\", label: \"Oct 10\", value: 27, displayValue: \"27 tasks\" },\n    { id: \"oct-14\", label: \"Oct 14\", value: 34, displayValue: \"34 tasks\" },\n  ],\n};\n\nexport function LineChartDemo() {\n  const [period, setPeriod] = useState<PeriodId>(\"week\");\n  const [selectedId, setSelectedId] = useState(\"oct-14\");\n  const [message, setMessage] = useState(\n    \"Oct 14 selected. The chart uses fictional local task counts.\",\n  );\n  const points = DATA[period];\n  const total = useMemo(\n    () => points.reduce((sum, point) => sum + point.value, 0),\n    [points],\n  );\n\n  function changePeriod(nextPeriod: PeriodId) {\n    const next = DATA[nextPeriod];\n    const nextSelected = next.at(-1)!;\n    setPeriod(nextPeriod);\n    setSelectedId(nextSelected.id);\n    setMessage(\n      `${nextPeriod === \"week\" ? \"Seven-day\" : \"Thirty-day\"} sample selected.`,\n    );\n  }\n\n  return (\n    <section className=\"line-chart-demo\" aria-label=\"Line chart preview\">\n      <div\n        className=\"line-chart-demo-controls\"\n        role=\"group\"\n        aria-label=\"Choose sample period\"\n      >\n        <button\n          type=\"button\"\n          aria-pressed={period === \"week\"}\n          onClick={() => changePeriod(\"week\")}\n        >\n          7 days\n        </button>\n        <button\n          type=\"button\"\n          aria-pressed={period === \"month\"}\n          onClick={() => changePeriod(\"month\")}\n        >\n          30 days\n        </button>\n      </div>\n\n      <TidalLineChart\n        title=\"Completed tasks\"\n        eyebrow={null}\n        description=\"Inspect exact fictional task counts by pointer, touch, or the native previous and next controls.\"\n        points={points}\n        selectedId={selectedId}\n        onSelectedChange={(point) => {\n          setSelectedId(point.id);\n          setMessage(`${point.label}: ${point.displayValue}.`);\n        }}\n        chartLabel={`${period === \"week\" ? \"Seven-day\" : \"Thirty-day\"} fictional completed tasks`}\n        xAxisLabel=\"Sample date\"\n        yAxisLabel=\"Tasks\"\n        footer={\n          <div className=\"line-chart-demo-footer\">\n            <span>{total} fictional tasks across the selected sample.</span>\n            <span>No live workspace, request, or analytics source.</span>\n          </div>\n        }\n      />\n      <p className=\"line-chart-demo-status\" role=\"status\" aria-live=\"polite\">\n        {message}\n      </p>\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      <LineChartDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/line-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-14\"",
      "setter": "setSelectedId",
      "proposalCanBeRejected": false
    }
  ],
  "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": "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": "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": []
}
