'use strict';

var jsxRuntime = require('react/jsx-runtime');
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var badge_module = require('./badge.module.css.cjs');

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

exports.Badge = Badge;
//# sourceMappingURL=badge.cjs.map
