Fixed an issue where media manager only shows files uploaded in specific sections. Fixed an issue with icon picker names. Removed jumbo rounding and a few other style tweaks.
29 lines
1012 B
TypeScript
29 lines
1012 B
TypeScript
import type { HTMLAttributes } from "react";
|
|
import { cn } from "@/lib/utils/cn";
|
|
|
|
/**
|
|
* The single most-repeated visual pattern across the templates: a white
|
|
* surface, hairline border, jumbo radius. See docs/implementation-plan.md
|
|
* §7 ("Cards" — strongest, most reusable element across the set).
|
|
*/
|
|
export function Card({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div
|
|
className={cn("rounded-md border border-line bg-white shadow-sm", className)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
|
return <div className={cn("p-6 pb-0", className)} {...props} />;
|
|
}
|
|
|
|
export function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
|
return <div className={cn("p-6", className)} {...props} />;
|
|
}
|
|
|
|
export function CardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
|
return <div className={cn("flex items-center gap-3 p-6 pt-0", className)} {...props} />;
|
|
}
|