import { jsxs, jsx } from 'react/jsx-runtime';
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import styles from './badge.module.css.js';

const badge = cva(styles['badge'], {
    variants: {
        variant: {
            accent: styles["badge-accent"],
            warning: styles["badge-warning"],
            danger: styles["badge-danger"],
            success: styles["badge-success"],
            neutral: styles["badge-neutral"],
            gradient: styles["badge-gradient"]
        },
        size: {
            micro: styles["badge-micro"],
            small: styles["badge-small"],
            regular: styles["badge-regular"],
        },
        defaultVariants: {
            variant: "accent",
            size: "small"
        }
    },
});
const Badge = ({ variant = 'accent', size = 'small', icon, children, className, screenReaderText }) => {
    return (jsxs("span", { className: badge({ variant, size, className }), children: [icon && jsx("span", { className: styles['icon'], children: icon }), screenReaderText && (jsx("span", { className: styles['sr-only'], children: screenReaderText })), children] }));
};
Badge.displayName = "Badge";

export { Badge };
//# sourceMappingURL=badge.js.map
