import { jsx as _jsx } from "react/jsx-runtime";
import { Slot } from "@radix-ui/react-slot";
import { cva } from "class-variance-authority";
import { cn } from "../../lib/utils";
const badgeVariants = cva("inline-flex items-center justify-center rounded-badge border text-2xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
    variants: {
        size: {
            default: "badge-pad",
            sm: "badge-pad-sm",
        },
        variant: {
            default: "border-transparent bg-feedback-blue-light text-feedback-blue [a&]:hover:bg-feedback-blue-light/80",
            secondary: "border-transparent bg-feedback-grey-light text-feedback-grey [a&]:hover:bg-feedback-grey-light/80",
            destructive: "border-transparent bg-feedback-red-light text-feedback-red [a&]:hover:bg-feedback-red-light/80 focus-visible:ring-feedback-red/20",
            outline: "border-feedback-grey/25 bg-feedback-grey-light text-feedback-grey [a&]:hover:bg-feedback-grey-light/80",
        },
    },
    defaultVariants: {
        variant: "default",
        size: "default",
    },
});
function Badge({ className, variant, size, asChild = false, ...props }) {
    const Comp = asChild ? Slot : "span";
    return (_jsx(Comp, { "data-slot": "badge", className: cn(badgeVariants({ variant, size }), className), ...props }));
}
export { Badge, badgeVariants };
//# sourceMappingURL=badge.js.map