{
  "component": {
    "id": "pricing-card",
    "name": "Pricing card",
    "tier": "pro",
    "exampleId": "pricing-card",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/core-demos.tsx",
    "exportName": "PricingDemo",
    "sha256": "9ada940ce8bcf01c7cecabd02f4d68f78d67f34bd5f3d78a4121c709c05a7c77",
    "helperImports": [],
    "directComponentImports": [
      "pricing-card",
      "segmented-control"
    ],
    "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/pricing-card",
    "registryUrl": "https://tidalui.com/r/pro/pricing-card.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/pricing-card",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/pricing-card",
      "registryUrl": "https://tidalui.com/r/pro/pricing-card.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/segmented-control.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/segmented-control.json",
      "registryUrl": "https://tidalui.com/r/segmented-control.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/pricing-card.tsx",
    "exports": [
      "TidalPricingCard",
      "TidalSegmentedControl"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/pricing-card.css",
      "components/ui/segmented-control.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [
      "https://tidalui.com/r/tidal-button.json"
    ],
    "additionalRegistry": [
      "https://tidalui.com/r/segmented-control.json"
    ],
    "installClosure": [
      "pricing-card",
      "segmented-control",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/pricing-card.css",
      "components/ui/segmented-control.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/pricing-card.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/demo-styles.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalSegmentedControl } from \"./components/ui/segmented-control\";\n\nimport \"./components/ui/segmented-control.css\";\n\nimport { TidalPricingCard } from \"./components/ui/pricing-card\";\n\nimport \"./components/ui/pricing-card.css\";\n\n\n\nconst tidalExampleStyles = \".pricing-specimen{width:100%;max-width:320px}.pricing-specimen>.tidal-segments{margin-bottom:14px}\";\n\nexport function PricingDemo() {\n  const [billing, setBilling] = useState(\"monthly\");\n  const [chosen, setChosen] = useState(false);\n  return (\n    <div className=\"pricing-specimen\">\n      <TidalSegmentedControl\n        label=\"Sample plan billing\"\n        options={[\n          { value: \"monthly\", label: \"Monthly\" },\n          { value: \"yearly\", label: \"Yearly\" },\n        ]}\n        value={billing}\n        onValueChange={(value) => {\n          setBilling(value);\n          setChosen(false);\n        }}\n      />\n      <TidalPricingCard\n        name=\"Studio\"\n        description=\"For teams building multiple projects.\"\n        price={billing === \"monthly\" ? \"$29\" : \"$23\"}\n        period=\"/ month\"\n        badge=\"Most popular\"\n        featured\n        features={[\n          \"Unlimited projects\",\n          \"Your own custom domain\",\n          \"Bring your whole team\",\n        ]}\n        cta={chosen ? \"Plan selected\" : \"Choose Studio\"}\n        onChoose={() => setChosen(true)}\n        note={\n          chosen\n            ? \"Sample selection only. No payment is taken.\"\n            : billing === \"yearly\"\n              ? \"Sample plan · $276 billed yearly.\"\n              : \"Sample plan · Monthly billing.\"\n        }\n      />\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      <PricingDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/pricing-card.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"monthly\"",
      "setter": "setBilling",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChoose",
      "nativeType": "component callback",
      "callerFirst": false,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onValueChange",
      "nativeType": "component callback",
      "callerFirst": false,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [
      "Studio"
    ],
    "expectedFormData": {
      "Studio": "fixture value"
    },
    "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": []
}
