import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import { forwardRef } from 'react';
import styles from './switch.module.css.js';
import { Root, Thumb } from '../../node_modules/.pnpm/@radix-ui_react-switch@1.2.5_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-switch/dist/index.js';

const switchVariants = cva(styles.switch);
const Switch = forwardRef(({ className, disabled, required, ...props }, forwardedRef) => (jsxRuntimeExports.jsx(Root, { ...props, ref: forwardedRef, disabled: disabled, required: required, className: switchVariants({ className }), "data-disabled": disabled, children: jsxRuntimeExports.jsx(SwitchThumb, {}) })));
const thumbVariants = cva(styles.thumb);
const SwitchThumb = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Thumb, { ref: ref, className: thumbVariants({ className }), ...props })));
Switch.displayName = 'Switch';

export { Switch };
//# sourceMappingURL=switch.js.map
