{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "switch", "type": "registry:block", "title": "Switch", "description": "A smooth switch for product settings and control panels.", "author": "Wensity ", "dependencies": [ "@base-ui/react", "clsx", "tailwind-merge" ], "registryDependencies": [], "files": [ { "path": "registry/wensity/lib/utils.ts", "type": "registry:lib", "target": "@lib/utils.ts", "content": "import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n" }, { "path": "registry/wensity/switch.tsx", "type": "registry:component", "target": "@components/wensity/switch.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { Switch as BaseSwitch } from \"@base-ui/react/switch\";\nimport { cn } from \"@/lib/utils\";\n\nconst wensityCardSurfaceClass = cn(\n \"relative isolate overflow-hidden rounded-[var(--primitive-radius-surface)]\",\n \"border border-[var(--border)] bg-[var(--primitive-surface-elevated)]\",\n \"[box-shadow:var(--primitive-shadow-raised)]\",\n);\n\n/**\n * CSS rules for Switch animation slots. Re-keyed to Base UI `data-checked` /\n * `data-unchecked` attributes so they light up automatically from `BaseSwitch.Root`.\n *\n * These rules ship in the Wensity token CSS block the CLI writes into your\n * stylesheet, so this file injects no runtime `