"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.badgeVariants = void 0;
exports.Badge = Badge;
const jsx_runtime_1 = require("react/jsx-runtime");
const class_variance_authority_1 = require("class-variance-authority");
const utils_1 = require("../../../lib/utils");
const react_slot_1 = require("@radix-ui/react-slot");
const badgeVariants = (0, class_variance_authority_1.cva)('inline-flex items-center rounded-full border border-border px-2.5 py-0.5 text-sm font-medium transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2', {
    variants: {
        variant: {
            default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
            active: 'bg-system-success-surface text-system-success-h1a border-none py-[2px] px-3',
            inactive: 'bg-muted text-foreground border-none py-[2px] px-3',
            secondary: 'border-transparent bg-muted-foreground text-white dark:text-black',
            destructive: 'border-transparent bg-red-500 text-primary-foreground hover:bg-red-500/80',
            error: 'border-system-error-border bg-system-error-surface text-system-error-text px-[10px] py-1',
            success: 'border-system-success-border bg-system-success-surface text-system-success-text px-[10px] py-1',
            info: 'border-system-info-border bg-system-info-surface text-system-info-text px-[10px] py-1',
            alert: 'border-system-alert-border bg-system-alert-surface text-system-alert-text px-[10px] py-1',
            purple: 'border-system-purple-border bg-system-purple-surface text-system-purple-text px-[10px] py-1',
            outline: 'text-foreground'
        }
    },
    defaultVariants: {
        variant: 'default'
    }
});
exports.badgeVariants = badgeVariants;
function Badge({ className, variant, asChild, ...props }) {
    const Comp = asChild ? react_slot_1.Slot : 'span';
    return ((0, jsx_runtime_1.jsx)(Comp, { "data-slot": "badge", className: (0, utils_1.cn)(badgeVariants({ variant }), className), ...props }));
}
