import * as React from "react" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "../../design-lib/utils" const badgeVariants = cva( "inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", { variants: { variant: { default: "hover:bg-primary/80 border-transparent bg-primary text-primary-foreground shadow-medium", secondary: "border-transparent bg-secondary text-muted-foreground hover:bg-gray-5", error: "border-transparent bg-error text-white shadow-medium hover:bg-error-hover", success: "border-transparent bg-success text-white shadow-medium hover:bg-success-hover", info: "border-transparent bg-info text-white shadow-medium hover:bg-info-hover", warning: "border-transparent bg-warning text-black shadow-medium hover:bg-warning-hover", outline: "text-foreground hover:bg-accent", "error-subtle": "border-transparent bg-error-light text-error-foreground", "success-subtle": "border-transparent bg-success-light text-success-foreground", "info-subtle": "border-transparent bg-info-light text-info-foreground", "warning-subtle": "border-transparent bg-warning-light text-warning-foreground", }, }, defaultVariants: { variant: "default", }, } ) export interface BadgeProps extends React.HTMLAttributes, VariantProps {} function Badge({ className, variant, ...props }: BadgeProps) { return (
) } export { Badge, badgeVariants }