{
  "component": {
    "id": "sparkline",
    "name": "Sparkline",
    "tier": "pro",
    "exampleId": "sparkline",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/sparkline-demo.tsx",
    "exportName": "SparklineDemo",
    "sha256": "e423479d1cfa3c9cdb3f4cd9006b29354522c85356234b125704d89a207c3f5e",
    "helperImports": [],
    "directComponentImports": [
      "sparkline"
    ],
    "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/sparkline",
    "registryUrl": "https://tidalui.com/r/pro/sparkline.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/sparkline",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/sparkline",
      "registryUrl": "https://tidalui.com/r/pro/sparkline.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/sparkline.tsx",
    "exports": [
      "TidalSparkline"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/sparkline.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "sparkline"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/sparkline.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/sparkline.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/sparkline-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalSparkline } from \"./components/ui/sparkline\";\n\nimport \"./components/ui/sparkline.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .sparkline-demo {\\n  display: grid;\\n  width: min(100%, 360px);\\n  min-width: 0;\\n  gap: 12px;\\n  margin-inline: auto;\\n}\\n\\n.tidal-scope .sparkline-demo > p {\\n  min-width: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.45;\\n  overflow-wrap: anywhere;\\n}\";\n\nconst SAMPLE_POINTS = [\n  { id: \"mon\", label: \"Monday\", value: 18 },\n  { id: \"tue\", label: \"Tuesday\", value: 23 },\n  { id: \"wed\", label: \"Wednesday\", value: 21 },\n  { id: \"thu\", label: \"Thursday\", value: 29 },\n  { id: \"fri\", label: \"Friday\", value: 31 },\n  { id: \"sat\", label: \"Saturday\", value: 27 },\n  { id: \"sun\", label: \"Sunday\", value: 34 },\n] as const;\n\nexport function SparklineDemo() {\n  const [activePointId, setActivePointId] = useState<string>(\"mon\");\n\n  return (\n    <section className=\"sparkline-demo\" aria-label=\"Sparkline preview\">\n      <TidalSparkline\n        label=\"Sample weekly activity\"\n        points={SAMPLE_POINTS}\n        formatValue={(value) => `${value} items`}\n        inspectable\n        activePointId={activePointId}\n        onActivePointChange={setActivePointId}\n      />\n      <p>Local sample values.</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      <SparklineDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/sparkline.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "activePointId",
      "type": "inferred-from-existing-demo",
      "initial": "\"mon\"",
      "setter": "setActivePointId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onActivePointChange",
      "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": "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": []
}
