{
  "component": {
    "id": "rating-input",
    "name": "Rating input",
    "tier": "pro",
    "exampleId": "rating-input",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/rating-input-demo.tsx",
    "exportName": "RatingInputDemo",
    "sha256": "ec26fabdc0c4807c695215ebefafbfa0d9050e55f0c7a703c344705b5e971899",
    "helperImports": [],
    "directComponentImports": [
      "rating-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/rating-input",
    "registryUrl": "https://tidalui.com/r/pro/rating-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/rating-input",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/rating-input",
      "registryUrl": "https://tidalui.com/r/pro/rating-input.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/rating-input.tsx",
    "exports": [
      "TidalRatingInput"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/rating-input.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "rating-input"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/rating-input.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/rating-input.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/rating-input-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalRatingInput } from \"./components/ui/rating-input\";\n\nimport \"./components/ui/rating-input.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .rating-input-demo {\\n  width: 100%;\\n  max-width: 380px;\\n  min-width: 0;\\n}\\n.tidal-scope .rating-input-demo > button {\\n  display: block;\\n  min-height: 44px;\\n  min-width: 44px;\\n  border: 1px solid var(--t-ink);\\n  border-radius: 9px;\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n  font: 500 12px/1.5 inherit;\\n  padding: 9px 16px;\\n  margin-top: 18px;\\n  cursor: pointer;\\n}\\n.tidal-scope .rating-input-demo > button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n.tidal-scope .rating-input-demo > p {\\n  font-size: 11px;\\n  line-height: 1.6;\\n  color: var(--t-muted);\\n  margin: 14px 0 0;\\n  overflow-wrap: anywhere;\\n}\";\n\nexport function RatingInputDemo() {\n  const [value, setValue] = useState<number | null>(4);\n  const [message, setMessage] = useState(\n    \"Choose a rating, then save this local sample.\",\n  );\n  return (\n    <form\n      className=\"rating-input-demo\"\n      onSubmit={(event) => {\n        event.preventDefault();\n        const data = new FormData(event.currentTarget);\n        setMessage(`Local rating: ${data.get(\"rating\") ?? \"not rated\"}.`);\n      }}\n    >\n      <TidalRatingInput\n        label=\"How was your experience?\"\n        description=\"Rate the product from one to five stars.\"\n        name=\"rating\"\n        value={value}\n        onValueChange={(next) => {\n          setValue(next);\n          setMessage(\"Choose Save rating to preview the form value.\");\n        }}\n      />\n      <button type=\"submit\">Save rating</button>\n      <p role=\"status\">{message}</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      <RatingInputDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/rating-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": "4",
      "setter": "setValue",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "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": [
      "rating"
    ],
    "expectedFormData": {
      "rating": "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": []
}
