'use strict';

var jsxRuntime = require('../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var index = require('../node_modules/.pnpm/@radix-ui_react-checkbox@1.0.4_@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-checkbox/dist/index.cjs');
var reactIcons_esm = require('../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
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 flex = require('../flex/flex.cjs');
var label = require('../label/label.cjs');
var checkbox_module = require('./checkbox.module.css.cjs');

const checkbox = index$1.cva(checkbox_module.default.checkbox, {
    variants: {
        size: {
            small: checkbox_module.default["checkbox-sm"],
            medium: checkbox_module.default["checkbox-md"],
        },
    },
    defaultVariants: {
        size: "small",
    },
});
/**
 * @deprecated Use Checkbox from '@raystack/apsara/v1' instead.
 */
const Checkbox = React.forwardRef(({ className, size, children, ...props }, forwardedRef) => (jsxRuntime.jsxRuntimeExports.jsxs(flex.Flex, { gap: "small", children: [jsxRuntime.jsxRuntimeExports.jsx(index.Root, { ...props, ref: forwardedRef, className: checkbox({ size, className }), children: jsxRuntime.jsxRuntimeExports.jsx(CheckboxIndicator, { children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.CheckIcon, {}) }) }), jsxRuntime.jsxRuntimeExports.jsx(label.Label, { children: children })] })));
const indicator = index$1.cva(checkbox_module.default.indicator);
const CheckboxIndicator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Indicator, { ref: ref, className: indicator({ className }), ...props })));
CheckboxIndicator.displayName = index.Indicator.displayName;

exports.Checkbox = Checkbox;
//# sourceMappingURL=checkbox.cjs.map
