import { cn } from "@/lib/utils"; import { SettingSurface } from "./SettingSurface"; interface SurfaceProps extends React.HTMLAttributes { variant?: "raised" | "flat" | "bordered"; frost?: "none" | "sm" | "md" | "lg"; padding?: "none" | "sm" | "md" | "lg"; } const paddingMap = { none: "", sm: "px-3 py-2.5", md: "px-5 py-4", lg: "px-6 py-5", }; // Surface 是 SettingSurface 的兼容别名(保留原 API,样式与设置卡片统一) function Surface({ variant = "raised", frost = "none", padding = "md", className, children, ...props }: SurfaceProps) { return ( {children} ); } function SurfaceHeader({ className, children, ...props }: React.HTMLAttributes) { return (
{children}
); } function SurfaceContent({ className, children, ...props }: React.HTMLAttributes) { return (
{children}
); } export { Surface, SurfaceHeader, SurfaceContent }