import { AnimatedCard } from "@unom/ui/card"; import type { ComponentProps } from "react"; import * as React from "react"; import { cn } from "@/lib/utils"; // The console's Card IS @unom/ui's animated card — a `bg-neutral` (#1c1530) // surface with a soft brand-violet ring, on-mount motion + material gloss // (enabled via UnomProviders). We keep the composed shadcn-style sub-component // API (CardHeader/Title/Description/Content/Footer own their own padding), so // the card defaults to `padding={false}` to avoid doubling it, and soften the // 2px ring to a subtle 1px brand tint. type CardProps = ComponentProps; const Card = ({ className, padding = false, children, ...props }: CardProps) => ( {children} ); Card.displayName = "Card"; const CardHeader = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)); CardHeader.displayName = "CardHeader"; const CardTitle = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)); CardTitle.displayName = "CardTitle"; const CardDescription = React.forwardRef< HTMLDivElement, 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, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };