@@ -7,7 +7,7 @@ function Card({ className, ...props }: React.ComponentProps<"div">) {
77 < div
88 data-slot = "card"
99 className = { cn (
10- "bn: bg-card bn: text-card-foreground bn: flex bn: flex-col bn: gap-6 bn: rounded-xl bn: border bn: py-6 bn: shadow-sm" ,
10+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm" ,
1111 className ,
1212 ) }
1313 { ...props }
@@ -20,7 +20,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
2020 < div
2121 data-slot = "card-header"
2222 className = { cn (
23- "bn: @container/card-header bn :grid bn: auto-rows-min bn: grid-rows-[auto_auto] bn: items-start bn: gap-1.5 bn:px-6 bn:has-data-[slot=card-action]:grid-cols-[1fr_auto] bn:[.border-b]:pb -6" ,
23+ "@container/card-header has-data-[slot=card-action] :grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px -6" ,
2424 className ,
2525 ) }
2626 { ...props }
@@ -32,7 +32,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
3232 return (
3333 < div
3434 data-slot = "card-title"
35- className = { cn ( "bn:leading-none bn: font-semibold" , className ) }
35+ className = { cn ( "font-semibold leading-none " , className ) }
3636 { ...props }
3737 />
3838 ) ;
@@ -42,7 +42,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
4242 return (
4343 < div
4444 data-slot = "card-description"
45- className = { cn ( "bn: text-muted-foreground bn: text-sm" , className ) }
45+ className = { cn ( "text-muted-foreground text-sm" , className ) }
4646 { ...props }
4747 />
4848 ) ;
@@ -53,7 +53,7 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
5353 < div
5454 data-slot = "card-action"
5555 className = { cn (
56- "bn: col-start-2 bn: row-span-2 bn: row-start-1 bn: self-start bn: justify-self-end" ,
56+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end" ,
5757 className ,
5858 ) }
5959 { ...props }
@@ -65,7 +65,7 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
6565 return (
6666 < div
6767 data-slot = "card-content"
68- className = { cn ( "bn: px-6" , className ) }
68+ className = { cn ( "px-6" , className ) }
6969 { ...props }
7070 />
7171 ) ;
@@ -75,10 +75,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
7575 return (
7676 < div
7777 data-slot = "card-footer"
78- className = { cn (
79- "bn:flex bn:items-center bn:px-6 bn:[.border-t]:pt-6" ,
80- className ,
81- ) }
78+ className = { cn ( "[.border-t]:pt-6 flex items-center px-6" , className ) }
8279 { ...props }
8380 />
8481 ) ;
0 commit comments