1- import * as React from "react"
2- import { Slot } from "@radix-ui/react-slot"
3- import { cva , type VariantProps } from "class-variance-authority"
1+ // SPDX-FileCopyrightText: 2025 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
2+ //
3+ // SPDX-License-Identifier: Apache-2.0
44
5- import { cn } from "@/lib/utils"
5+ import * as React from "react" ;
6+ import { Slot } from "@radix-ui/react-slot" ;
7+ import { cva , type VariantProps } from "class-variance-authority" ;
8+
9+ import { cn } from "@/lib/utils" ;
610
711const badgeVariants = cva (
812 "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs 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" ,
@@ -23,7 +27,7 @@ const badgeVariants = cva(
2327 variant : "default" ,
2428 } ,
2529 }
26- )
30+ ) ;
2731
2832function Badge ( {
2933 className,
@@ -32,15 +36,15 @@ function Badge({
3236 ...props
3337} : React . ComponentProps < "span" > &
3438 VariantProps < typeof badgeVariants > & { asChild ?: boolean } ) {
35- const Comp = asChild ? Slot : "span"
39+ const Comp = asChild ? Slot : "span" ;
3640
3741 return (
3842 < Comp
3943 data-slot = "badge"
4044 className = { cn ( badgeVariants ( { variant } ) , className ) }
4145 { ...props }
4246 />
43- )
47+ ) ;
4448}
4549
46- export { Badge , badgeVariants }
50+ export { Badge , badgeVariants } ;
0 commit comments