{
  "component": {
    "id": "funnel-chart",
    "name": "Funnel chart",
    "tier": "pro",
    "exampleId": "funnel-chart",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/funnel-chart-demo.tsx",
    "exportName": "FunnelChartDemo",
    "sha256": "e055deb37ad514c8b1eab7b87406c3c09d99fa2a83182d73f75b3cf79e6e2a2e",
    "helperImports": [],
    "directComponentImports": [
      "funnel-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/funnel-chart",
    "registryUrl": "https://tidalui.com/r/pro/funnel-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/funnel-chart",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/funnel-chart",
      "registryUrl": "https://tidalui.com/r/pro/funnel-chart.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/funnel-chart.tsx",
    "exports": [
      "TidalFunnelChart"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/funnel-chart.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "funnel-chart"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/funnel-chart.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/funnel-chart.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalFunnelChart } from \"./components/ui/funnel-chart\";\n\nimport \"./components/ui/funnel-chart.css\";\n\n\n\nconst stages = [\n  {\n    id: \"visits\",\n    label: \"Product visits\",\n    value: 14400,\n    detail: \"People who visited the product page during the sample period.\",\n  },\n  {\n    id: \"signup\",\n    label: \"Signups\",\n    value: 6800,\n    detail: \"Accounts created during the same sample period.\",\n  },\n  {\n    id: \"active\",\n    label: \"Activated\",\n    value: 2480,\n    detail: \"Accounts that completed their first project.\",\n  },\n  {\n    id: \"paid\",\n    label: \"Paid accounts\",\n    value: 920,\n    detail: \"Accounts with a paid plan at the end of the period.\",\n  },\n];\n\nexport function FunnelChartDemo() {\n  const [id, setId] = useState<string | null>(\"active\");\n  return (\n    <div style={{ width: \"100%\", maxWidth: 860 }}>\n      <TidalFunnelChart\n        title=\"Signup funnel\"\n        description=\"Compare supplied counts across four ordered stages.\"\n        stages={stages}\n        selectedId={id}\n        onSelectedChange={setId}\n        formatValue={(n) => new Intl.NumberFormat(\"en-US\").format(n)}\n      />\n      <p style={{ fontSize: 11, color: \"var(--t-muted)\", textAlign: \"center\" }}>\n        Fictional counts. Select a stage to inspect its definition.\n      </p>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <FunnelChartDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/funnel-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": "\"active\"",
      "setter": "setId",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "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": "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": []
}
