1- import * as React from "react"
1+ import * as React from "react" ;
22
3- import { cn } from "~/lib/utils"
3+ import { cn } from "~/lib/utils" ;
44
55function Card ( { className, ...props } : React . ComponentProps < "div" > ) {
66 return (
77 < div
88 data-slot = "card"
99 className = { cn (
10- "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm " ,
11- className
10+ "flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground " ,
11+ className ,
1212 ) }
1313 { ...props }
1414 />
15- )
15+ ) ;
1616}
1717
1818function CardHeader ( { className, ...props } : React . ComponentProps < "div" > ) {
1919 return (
2020 < div
2121 data-slot = "card-header"
2222 className = { cn (
23- "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6" ,
24- className
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-2 px -6" ,
24+ className ,
2525 ) }
2626 { ...props }
2727 />
28- )
28+ ) ;
2929}
3030
3131function CardTitle ( { className, ...props } : React . ComponentProps < "div" > ) {
3232 return (
3333 < div
3434 data-slot = "card-title"
35- className = { cn ( "leading-none font-semibold" , className ) }
35+ className = { cn ( "font-semibold leading-none " , className ) }
3636 { ...props }
3737 />
38- )
38+ ) ;
3939}
4040
4141function CardDescription ( { className, ...props } : React . ComponentProps < "div" > ) {
4242 return (
4343 < div
4444 data-slot = "card-description"
45- className = { cn ( "text-muted-foreground text-sm " , className ) }
45+ className = { cn ( "text-sm text-muted-foreground " , className ) }
4646 { ...props }
4747 />
48- )
48+ ) ;
4949}
5050
5151function CardAction ( { className, ...props } : React . ComponentProps < "div" > ) {
@@ -54,11 +54,11 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
5454 data-slot = "card-action"
5555 className = { cn (
5656 "col-start-2 row-span-2 row-start-1 self-start justify-self-end" ,
57- className
57+ className ,
5858 ) }
5959 { ...props }
6060 />
61- )
61+ ) ;
6262}
6363
6464function CardContent ( { className, ...props } : React . ComponentProps < "div" > ) {
@@ -68,17 +68,17 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
6868 className = { cn ( "px-6" , className ) }
6969 { ...props }
7070 />
71- )
71+ ) ;
7272}
7373
7474function CardFooter ( { className, ...props } : React . ComponentProps < "div" > ) {
7575 return (
7676 < div
7777 data-slot = "card-footer"
78- className = { cn ( "flex items-center px-6 [.border-t]:pt-6" , className ) }
78+ className = { cn ( "[.border-t]:pt-6 flex items-center px -6" , className ) }
7979 { ...props }
8080 />
81- )
81+ ) ;
8282}
8383
8484export {
@@ -89,4 +89,4 @@ export {
8989 CardAction ,
9090 CardDescription ,
9191 CardContent ,
92- }
92+ } ;
0 commit comments