'use strict';

var jsxRuntime = require('../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var index$1 = require('../node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs');
var index = require('../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var button_module = require('./button.module.css.cjs');

const button = index.cva(button_module.default.button, {
    variants: {
        variant: {
            primary: button_module.default["button-primary"],
            outline: button_module.default["button-outline"],
            secondary: button_module.default["button-secondary"],
            ghost: button_module.default["button-ghost"],
            danger: button_module.default["button-danger"],
        },
        size: {
            small: button_module.default["button-small"],
            medium: button_module.default["button-medium"],
            large: button_module.default["button-large"],
        },
    },
});
/**
 * @deprecated Use Button from '@raystack/apsara/v1' instead.
 */
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
    const Comp = asChild ? index$1.Slot : "button";
    return (jsxRuntime.jsxRuntimeExports.jsx(Comp, { className: button({ variant, size, className }), ref: ref, ...props }));
});
Button.displayName = "Button";

exports.Button = Button;
//# sourceMappingURL=button.cjs.map
