import * as React from "react" import { cva, VariantProps } from "class-variance-authority" import { cn } from "../../design-lib/utils" const cardVariants = cva( "relative bg-card text-card-foreground transition-[shadow_border] duration-300", { variants: { variant: { small: "rounded-[6px] shadow-border-small", medium: "rounded-[12px] shadow-border-medium", large: "rounded-[12px] shadow-border-large", tooltip: "rounded-[6px] shadow-tooltip", popover: "rounded-[12px] shadow-popover", dialog: "rounded-[12px] shadow-dialog", fullscreen: "rounded-[16px] shadow-fullscreen", }, }, defaultVariants: { variant: "small", }, } ) const Card = React.forwardRef< HTMLDivElement, React.HTMLAttributes & { stroke?: boolean hover?: boolean strokePostition?: "top" | "bottom" bgAnimation?: boolean } & VariantProps >( ( { className, stroke, hover, variant, strokePostition, bgAnimation, ...props }, ref ) => (
{stroke && ( )} {props.children}
) ) Card.displayName = "Card" const CardHeader = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)) CardHeader.displayName = "CardHeader" const CardTitle = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => (

)) CardTitle.displayName = "CardTitle" const CardDescription = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => (

)) CardDescription.displayName = "CardDescription" const CardContent = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (

)) CardContent.displayName = "CardContent" const CardFooter = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)) CardFooter.displayName = "CardFooter" export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }