@carbonid1/design-system 5.16.0 → 5.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Switch/Switch.js +1 -1
- package/package.json +1 -1
package/dist/Switch/Switch.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Switch as BaseSwitch } from '@base-ui/react/switch';
|
|
4
4
|
import { cn } from '../helpers/cn/cn';
|
|
5
|
-
const Root = ({ className, ...props }) => (_jsx(BaseSwitch.Root, { "data-slot": "switch", className: cn('border-input-border bg-input data-checked:border-primary data-checked:bg-primary inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border p-0.5 outline-hidden', '
|
|
5
|
+
const Root = ({ className, ...props }) => (_jsx(BaseSwitch.Root, { "data-slot": "switch", className: cn('border-input-border bg-input data-checked:border-primary data-checked:bg-primary inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border p-0.5 outline-hidden', 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3', 'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50', className), ...props }));
|
|
6
6
|
const Thumb = ({ className, ...props }) => (_jsx(BaseSwitch.Thumb, { "data-slot": "switch-thumb", className: cn('bg-background pointer-events-none block size-4 translate-x-0 rounded-full shadow-sm', 'transition-transform duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none', 'data-checked:translate-x-4', className), ...props }));
|
|
7
7
|
export const Switch = {
|
|
8
8
|
Root,
|