{
  "component": {
    "id": "currency-input",
    "name": "Currency input",
    "tier": "pro",
    "exampleId": "currency-input",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/currency-input-demo.tsx",
    "exportName": "CurrencyInputDemo",
    "sha256": "3dd4dc342e5858f55b68694bcef86bf6aa561f9c8ecbbc3dc100a1aa6702f679",
    "helperImports": [],
    "directComponentImports": [
      "currency-input"
    ],
    "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/currency-input",
    "registryUrl": "https://tidalui.com/r/pro/currency-input.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/currency-input",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/currency-input",
      "registryUrl": "https://tidalui.com/r/pro/currency-input.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/currency-input.tsx",
    "exports": [
      "TidalCurrencyInput"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/currency-input.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "currency-input"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/currency-input.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/currency-input.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/currency-input-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { TidalCurrencyInput } from \"./components/ui/currency-input\";\n\nimport \"./components/ui/currency-input.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .currency-input-demo {\\n  container: currency-input-demo / inline-size;\\n  display: grid;\\n  gap: 20px;\\n  width: min(100%, 520px);\\n  min-width: 0;\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .currency-input-demo-actions {\\n  display: flex;\\n  flex-wrap: wrap;\\n  gap: 10px;\\n}\\n\\n.tidal-scope .currency-input-demo-actions > button {\\n  min-width: 132px;\\n  min-height: 44px;\\n  padding: 10px 15px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-control);\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 13px;\\n  font-weight: 650;\\n  cursor: pointer;\\n  transition:\\n    border-color 140ms,\\n    background-color 140ms,\\n    color 140ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .currency-input-demo-actions > button[type=\\\"submit\\\"] {\\n  border-color: var(--t-ink);\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .currency-input-demo-actions > button:hover {\\n  border-color: var(--t-ink);\\n}\\n\\n.tidal-scope .currency-input-demo-actions > button[type=\\\"reset\\\"]:hover {\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .currency-input-demo-actions > button:active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope .currency-input-demo-actions > button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .currency-input-demo-status {\\n  min-width: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container currency-input-demo (max-width: 320px) {\\n  .tidal-scope .currency-input-demo-actions {\\n    display: grid;\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n\\n  .tidal-scope .currency-input-demo-actions > button {\\n    width: 100%;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .currency-input-demo-actions > button {\\n    transition: none;\\n  }\\n\\n  .tidal-scope .currency-input-demo-actions > button:active {\\n    transform: none;\\n  }\\n}\";\n\nconst INITIAL_AMOUNT = \"1248.50\";\n\nexport function CurrencyInputDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const [amount, setAmount] = useState(INITIAL_AMOUNT);\n  const [error, setError] = useState<string | null>(null);\n  const [status, setStatus] = useState(\"Edit the sample amount.\");\n\n  return (\n    <form\n      className=\"currency-input-demo\"\n      aria-label=\"Currency input preview\"\n      onSubmit={(event) => {\n        event.preventDefault();\n        const submitted = new FormData(event.currentTarget).get(\"amount\");\n        setError(null);\n        setStatus(`Prepared USD ${String(submitted)} locally.`);\n      }}\n      onReset={(event) => {\n        if (event.defaultPrevented) return;\n        setAmount(INITIAL_AMOUNT);\n        setError(null);\n        setStatus(\"Sample reset.\");\n      }}\n    >\n      <TidalCurrencyInput\n        id={`${generatedId}-amount`}\n        name=\"amount\"\n        label=\"Invoice amount\"\n        value={amount}\n        onValueChange={(nextValue) => {\n          setAmount(nextValue);\n          setError(null);\n          setStatus(\"Edit the sample amount.\");\n        }}\n        currency=\"USD\"\n        locale=\"en-US\"\n        minimumFractionDigits={2}\n        maximumFractionDigits={2}\n        min=\"0\"\n        max=\"250000\"\n        step=\"0.01\"\n        description=\"Sample invoice amount.\"\n        error={error}\n        placeholder=\"0.00\"\n        autoComplete=\"off\"\n        required\n        onInvalid={(event) => {\n          event.preventDefault();\n          setError(event.currentTarget.validationMessage);\n          setStatus(\"Check the amount.\");\n          event.currentTarget.focus({ preventScroll: true });\n        }}\n      />\n\n      <div className=\"currency-input-demo-actions\">\n        <button type=\"submit\">Prepare sample</button>\n        <button type=\"reset\">Reset</button>\n      </div>\n      <p\n        className=\"currency-input-demo-status\"\n        role=\"status\"\n        aria-live=\"polite\"\n      >\n        {status}\n      </p>\n    </form>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <CurrencyInputDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/currency-input.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "INITIAL_AMOUNT",
      "setter": "setAmount",
      "proposalCanBeRejected": false
    },
    {
      "prop": "error",
      "type": "inferred-from-existing-demo",
      "initial": "null",
      "setter": "setError",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onInvalid",
      "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."
    },
    {
      "name": "onReset",
      "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": "onSubmit",
      "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": "onValueChange",
      "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": [
      "amount"
    ],
    "expectedFormData": {
      "amount": "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": "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": "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": []
}
