{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "internal-switch-web",
  "title": "Internal Switch (Web Components)",
  "description": "Internal primitive used by Agent UI components; add a component instead.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/web@0.1.0-beta.17"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/agent-ui/src/web/internal/switch.ts",
      "content": "import \"@ui-sdk/web/switch\";\n\nconst classes = [\n  \"contents\",\n  \"[&_[data-slot=switch]]:inline-flex\",\n  \"[&_[data-slot=switch]]:h-[18px]\",\n  \"[&_[data-slot=switch]]:w-8\",\n  \"[&_[data-slot=switch]]:shrink-0\",\n  \"[&_[data-slot=switch]]:cursor-pointer\",\n  \"[&_[data-slot=switch]]:items-center\",\n  \"[&_[data-slot=switch]]:rounded-full\",\n  \"[&_[data-slot=switch]]:bg-[var(--kind-color-border)]\",\n  \"[&_[data-slot=switch]]:p-0.5\",\n  \"[&_[data-slot=switch]]:outline-hidden\",\n  \"[&_[data-slot=switch]]:transition-colors\",\n  \"[&_[data-slot=switch]]:duration-[120ms]\",\n  \"[&_[data-slot=switch]]:focus-visible:[outline:var(--kind-focus-ring)]\",\n  \"[&_[data-slot=switch]]:focus-visible:[outline-offset:var(--kind-focus-offset)]\",\n  \"[&_[data-slot=switch]]:motion-reduce:transition-none\",\n  \"[&_[data-slot=switch]]:data-checked:bg-[var(--kind-color-accent)]\",\n  \"[&_[data-slot=switch]]:data-disabled:cursor-not-allowed\",\n  \"[&_[data-slot=switch]]:data-disabled:opacity-[var(--kind-disabled-opacity)]\",\n  \"[&_[data-slot=switch-thumb]]:block\",\n  \"[&_[data-slot=switch-thumb]]:size-3.5\",\n  \"[&_[data-slot=switch-thumb]]:rounded-full\",\n  \"[&_[data-slot=switch-thumb]]:bg-[var(--kind-color-surface)]\",\n  \"[&_[data-slot=switch-thumb]]:shadow-sm\",\n  \"[&_[data-slot=switch-thumb]]:shadow-[color:var(--kind-color-shadow)]/10\",\n  \"[&_[data-slot=switch-thumb]]:transition-transform\",\n  \"[&_[data-slot=switch-thumb]]:duration-[120ms]\",\n  \"[&_[data-slot=switch-thumb]]:motion-reduce:transition-none\",\n  \"[&_[data-slot=switch-thumb]]:data-checked:translate-x-3.5\",\n  \"[&_[data-slot=switch-thumb]]:rtl:data-checked:-translate-x-3.5\",\n];\n\nexport function defineInternalSwitch(): void {\n  if (customElements.get(\"kind-internal-switch\")) return;\n  customElements.define(\n    \"kind-internal-switch\",\n    class extends HTMLElement {\n      connectedCallback(): void {\n        this.classList.add(...classes);\n      }\n    },\n  );\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    \"kind-internal-switch\": HTMLElement;\n  }\n}\n",
      "type": "registry:ui",
      "target": "@ui/web/internal/switch.ts"
    }
  ],
  "meta": {
    "layer": "web",
    "hidden": true
  },
  "categories": [
    "internal"
  ],
  "type": "registry:ui"
}
