{
  "component": {
    "id": "native-select",
    "name": "Native select",
    "tier": "pro",
    "exampleId": "native-select",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/native-select-demo.tsx",
    "exportName": "NativeSelectDemo",
    "sha256": "29035ac43ff7f31a21c4623f5f2dfe8a3c1f525ffd6822f6126944cc7ad050a8",
    "helperImports": [],
    "directComponentImports": [
      "native-select"
    ],
    "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/native-select",
    "registryUrl": "https://tidalui.com/r/pro/native-select.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/native-select",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/native-select",
      "registryUrl": "https://tidalui.com/r/pro/native-select.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/native-select.tsx",
    "exports": [
      "TidalNativeSelect"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/native-select.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "native-select"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/native-select.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/native-select.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/native-select-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useRef, useState, type FormEvent } from \"react\";\n\nimport { TidalNativeSelect } from \"./components/ui/native-select\";\n\nimport \"./components/ui/native-select.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .native-select-demo {\\n  container: native-select-demo / inline-size;\\n  width: min(100%, 520px);\\n  min-width: 0;\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .native-select-demo form {\\n  display: grid;\\n  gap: 24px;\\n}\\n\\n.tidal-scope .native-select-demo-footer {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 14px;\\n  min-width: 0;\\n  padding-top: 18px;\\n  border-top: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .native-select-demo-footer > p {\\n  min-width: 0;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .native-select-demo-footer > div {\\n  display: flex;\\n  flex: none;\\n  gap: 8px;\\n}\\n\\n.tidal-scope .native-select-demo-footer button {\\n  min-height: 44px;\\n  padding: 9px 14px;\\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: 12px;\\n  font-weight: 640;\\n  cursor: pointer;\\n  transition:\\n    background-color 140ms,\\n    color 140ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .native-select-demo-footer button[type=\\\"submit\\\"] {\\n  border-color: var(--t-ink);\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .native-select-demo-footer button:hover {\\n  border-color: var(--t-ink);\\n}\\n\\n.tidal-scope .native-select-demo-footer button[type=\\\"submit\\\"]:hover {\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .native-select-demo-footer button:active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope .native-select-demo-footer button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n@container native-select-demo (max-width: 420px) {\\n  .tidal-scope .native-select-demo-footer {\\n    align-items: stretch;\\n    flex-direction: column;\\n  }\\n\\n  .tidal-scope .native-select-demo-footer > div {\\n    display: grid;\\n    grid-template-columns: repeat(2, minmax(0, 1fr));\\n  }\\n}\\n\\n@container native-select-demo (max-width: 300px) {\\n  .tidal-scope .native-select-demo-footer > div {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .native-select-demo-footer button {\\n    transition: none;\\n  }\\n\\n  .tidal-scope .native-select-demo-footer button:active {\\n    transform: none;\\n  }\\n}\";\n\nexport function NativeSelectDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const selectRef = useRef<HTMLSelectElement>(null);\n  const [visibility, setVisibility] = useState(\"team\");\n  const [error, setError] = useState(\"\");\n  const [status, setStatus] = useState(\n    \"Choose who can open this fictional workspace.\",\n  );\n\n  function submitSelection(event: FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    const node = selectRef.current;\n    if (!node?.checkValidity()) {\n      setError(\"Choose a workspace visibility.\");\n      node?.focus({ preventScroll: true });\n      return;\n    }\n    setError(\"\");\n    setStatus(`Local visibility preview: ${node.selectedOptions[0]?.text}.`);\n  }\n\n  return (\n    <section className=\"native-select-demo\" aria-label=\"Native select preview\">\n      <form\n        onSubmit={submitSelection}\n        onReset={() => {\n          setVisibility(\"team\");\n          setError(\"\");\n          setStatus(\"The local sample was reset.\");\n        }}\n        noValidate\n      >\n        <TidalNativeSelect\n          ref={selectRef}\n          id={`${generatedId}-visibility`}\n          label=\"Workspace visibility\"\n          name=\"visibility\"\n          value={visibility}\n          onChange={(event) => {\n            setVisibility(event.currentTarget.value);\n            setError(\"\");\n            setStatus(\"The sample selection changed locally.\");\n          }}\n          required\n          description=\"Uses the platform select menu and prepares no request.\"\n          error={error || undefined}\n        >\n          <option value=\"\">Choose visibility</option>\n          <option value=\"private\">Only workspace owners</option>\n          <option value=\"team\">Everyone in the sample workspace</option>\n          <option value=\"reviewers\">\n            Workspace members and invited project reviewers\n          </option>\n        </TidalNativeSelect>\n\n        <div className=\"native-select-demo-footer\">\n          <p role=\"status\" aria-live=\"polite\">\n            {status}\n          </p>\n          <div>\n            <button type=\"reset\">Reset</button>\n            <button type=\"submit\">Apply preview</button>\n          </div>\n        </div>\n      </form>\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      <NativeSelectDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/native-select.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"team\"",
      "setter": "setVisibility",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChange",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "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": false,
      "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": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [
      "visibility"
    ],
    "expectedFormData": {
      "visibility": "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": "Verify focus returns to the invoking control after dismissal.",
    "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": []
}
