import { cva, type VariantProps } from "class-variance-authority"; import type * as React from "react"; import { cn } from "./utils.js"; const badgeVariants = cva( "inline-flex items-center rounded-full border border-[var(--color-border)] px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--color-ring)] focus:ring-offset-2", { variants: { variant: { default: "border-transparent bg-[var(--color-primary)] text-[var(--color-primary-foreground)] shadow hover:bg-[oklch(from_var(--color-primary)_calc(l/_2)_h)]", secondary: "border-transparent bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)] hover:bg-[oklch(from_var(--color-secondary)_calc(l/_2)_h)]", destructive: "border-transparent bg-[var(--color-destructive)] text-[var(--color-destructive-foreground)] shadow hover:bg-[oklch(from_var(--color-destructive)_calc(l/_2)_h)]", outline: "text-[var(--color-foreground)]", }, }, defaultVariants: { variant: "default", }, }, ); export interface BadgeProps extends React.HTMLAttributes, VariantProps {} function Badge({ className, variant, ...props }: BadgeProps) { return
; } export { Badge, badgeVariants };