import { j as jsxRuntimeExports } from '../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { Slot as $5e63c961fc1ce211$export$8c6ed5c666ac1360 } from '../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.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 './button.module.css.js';

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

export { Button };
//# sourceMappingURL=button.js.map
