'use strict';

var jsxRuntime = require('react/jsx-runtime');
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var switch_module = require('./switch.module.css.cjs');
var index = require('../../node_modules/.pnpm/@radix-ui_react-switch@1.2.5_@types_react-dom@19.1.7_@types_react@19.1.9__@types_react@19.1.9_7cc2hdqtqg5xrhsyw2ibpmjamm/node_modules/@radix-ui/react-switch/dist/index.cjs');

const switchVariants = index$1.cva(switch_module.default.switch, {
    variants: {
        size: {
            large: switch_module.default.large,
            small: switch_module.default.small
        }
    },
    defaultVariants: {
        size: 'large'
    }
});
const Switch = React.forwardRef(({ className, disabled, required, size, name, value, ...props }, forwardedRef) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(index.Root, { ...props, ref: forwardedRef, disabled: disabled, required: required, className: switchVariants({ size, className }), "data-disabled": disabled, children: jsxRuntime.jsx(SwitchThumb, {}) }), name && (jsxRuntime.jsx("input", { type: 'hidden', name: name, value: value || 'on', disabled: disabled }))] })));
const SwitchThumb = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsx(index.Thumb, { ref: ref, className: index$1.cx(switch_module.default.thumb, className), ...props })));
Switch.displayName = 'Switch';

exports.Switch = Switch;
//# sourceMappingURL=switch.cjs.map
