|
|
@ -1,6 +1,6 @@ |
|
|
|
import * as React from "react" |
|
|
|
import * as React from "react"; |
|
|
|
|
|
|
|
|
|
|
|
import { cn } from "@/lib/utils" |
|
|
|
import { cn } from "@/lib/utils"; |
|
|
|
|
|
|
|
|
|
|
|
const Card = React.forwardRef< |
|
|
|
const Card = React.forwardRef< |
|
|
|
HTMLDivElement, |
|
|
|
HTMLDivElement, |
|
|
@ -10,12 +10,12 @@ const Card = React.forwardRef< |
|
|
|
ref={ref} |
|
|
|
ref={ref} |
|
|
|
className={cn( |
|
|
|
className={cn( |
|
|
|
"rounded-lg border bg-card text-card-foreground shadow-sm", |
|
|
|
"rounded-lg border bg-card text-card-foreground shadow-sm", |
|
|
|
className |
|
|
|
className, |
|
|
|
)} |
|
|
|
)} |
|
|
|
{...props} |
|
|
|
{...props} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)) |
|
|
|
)); |
|
|
|
Card.displayName = "Card" |
|
|
|
Card.displayName = "Card"; |
|
|
|
|
|
|
|
|
|
|
|
const CardHeader = React.forwardRef< |
|
|
|
const CardHeader = React.forwardRef< |
|
|
|
HTMLDivElement, |
|
|
|
HTMLDivElement, |
|
|
@ -26,8 +26,8 @@ const CardHeader = React.forwardRef< |
|
|
|
className={cn("flex flex-col space-y-1.5 p-6", className)} |
|
|
|
className={cn("flex flex-col space-y-1.5 p-6", className)} |
|
|
|
{...props} |
|
|
|
{...props} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)) |
|
|
|
)); |
|
|
|
CardHeader.displayName = "CardHeader" |
|
|
|
CardHeader.displayName = "CardHeader"; |
|
|
|
|
|
|
|
|
|
|
|
const CardTitle = React.forwardRef< |
|
|
|
const CardTitle = React.forwardRef< |
|
|
|
HTMLParagraphElement, |
|
|
|
HTMLParagraphElement, |
|
|
@ -37,12 +37,12 @@ const CardTitle = React.forwardRef< |
|
|
|
ref={ref} |
|
|
|
ref={ref} |
|
|
|
className={cn( |
|
|
|
className={cn( |
|
|
|
"text-2xl font-semibold leading-none tracking-tight", |
|
|
|
"text-2xl font-semibold leading-none tracking-tight", |
|
|
|
className |
|
|
|
className, |
|
|
|
)} |
|
|
|
)} |
|
|
|
{...props} |
|
|
|
{...props} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)) |
|
|
|
)); |
|
|
|
CardTitle.displayName = "CardTitle" |
|
|
|
CardTitle.displayName = "CardTitle"; |
|
|
|
|
|
|
|
|
|
|
|
const CardDescription = React.forwardRef< |
|
|
|
const CardDescription = React.forwardRef< |
|
|
|
HTMLParagraphElement, |
|
|
|
HTMLParagraphElement, |
|
|
@ -53,16 +53,16 @@ const CardDescription = React.forwardRef< |
|
|
|
className={cn("text-sm text-muted-foreground", className)} |
|
|
|
className={cn("text-sm text-muted-foreground", className)} |
|
|
|
{...props} |
|
|
|
{...props} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)) |
|
|
|
)); |
|
|
|
CardDescription.displayName = "CardDescription" |
|
|
|
CardDescription.displayName = "CardDescription"; |
|
|
|
|
|
|
|
|
|
|
|
const CardContent = React.forwardRef< |
|
|
|
const CardContent = React.forwardRef< |
|
|
|
HTMLDivElement, |
|
|
|
HTMLDivElement, |
|
|
|
React.HTMLAttributes<HTMLDivElement> |
|
|
|
React.HTMLAttributes<HTMLDivElement> |
|
|
|
>(({ className, ...props }, ref) => ( |
|
|
|
>(({ className, ...props }, ref) => ( |
|
|
|
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} /> |
|
|
|
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} /> |
|
|
|
)) |
|
|
|
)); |
|
|
|
CardContent.displayName = "CardContent" |
|
|
|
CardContent.displayName = "CardContent"; |
|
|
|
|
|
|
|
|
|
|
|
const CardFooter = React.forwardRef< |
|
|
|
const CardFooter = React.forwardRef< |
|
|
|
HTMLDivElement, |
|
|
|
HTMLDivElement, |
|
|
@ -73,7 +73,14 @@ const CardFooter = React.forwardRef< |
|
|
|
className={cn("flex items-center p-6 pt-0", className)} |
|
|
|
className={cn("flex items-center p-6 pt-0", className)} |
|
|
|
{...props} |
|
|
|
{...props} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)) |
|
|
|
)); |
|
|
|
CardFooter.displayName = "CardFooter" |
|
|
|
CardFooter.displayName = "CardFooter"; |
|
|
|
|
|
|
|
|
|
|
|
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } |
|
|
|
export { |
|
|
|
|
|
|
|
Card, |
|
|
|
|
|
|
|
CardHeader, |
|
|
|
|
|
|
|
CardFooter, |
|
|
|
|
|
|
|
CardTitle, |
|
|
|
|
|
|
|
CardDescription, |
|
|
|
|
|
|
|
CardContent, |
|
|
|
|
|
|
|
}; |
|
|
|