import { CardHeaderProps } from "./CardHeader.mjs"; import { CardContentProps } from "./CardContent.mjs"; import { CardFooterProps } from "./CardFooter.mjs"; import { CardMediaProps } from "./CardMedia.mjs"; import { InsetSpacingTokens, PaddingSpacingTokens, SpaceProp, SpacingTokens } from "@marigold/system"; import { HTMLAttributes, ReactNode } from "react"; interface CardBaseProps extends Omit, 'className' | 'style'> { /** * Content of the card. Typically a combination of `Card.Media`, * `Card.Header`, `Card.Content`, and `Card.Footer`. * * `Card.Header` configures the slot-aware text primitives `` * and `<Description>`. */ children?: ReactNode; variant?: 'default' | 'master' | 'admin' | (string & {}); size?: string; /** * Base heading level for the card. A `<Title>` inside `Card.Header` * renders at this level. * @default 3 */ headingLevel?: 2 | 3 | 4 | 5 | 6; /** * Stretch to fill space horizontally. * @default false */ stretch?: boolean; /** * Spacing between Card slots (Media, Header, Content, Footer). * @default 'regular' */ space?: SpaceProp<SpacingTokens>['space']; } /** * Padding applied to the Card. Either set `p` for uniform padding, or use * `px`/`py` to control the axes separately — setting both forms is a TypeScript * error, mirroring the `<Panel>` component's `p` / `px`+`py` split. */ type CardPaddingProps = { /** Padding on all sides. Cannot be combined with `px` or `py`. */ p?: SpaceProp<InsetSpacingTokens>['space']; px?: never; py?: never; } | { p?: never; /** Horizontal padding applied to every slot. */ px?: SpaceProp<PaddingSpacingTokens>['space']; /** Vertical padding applied at the top and bottom of the card. */ py?: SpaceProp<PaddingSpacingTokens>['space']; }; export type CardProps = CardBaseProps & CardPaddingProps; export declare const Card: { ({ children, variant, size, stretch, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, role, headingLevel, space, p, px, py, ...props }: CardProps): import("react").JSX.Element; Header: ({ children }: CardHeaderProps) => import("react").JSX.Element; Content: ({ children, bleed }: CardContentProps) => import("react").JSX.Element; Footer: ({ children, bleed }: CardFooterProps) => import("react").JSX.Element; Media: ({ children }: CardMediaProps) => import("react").JSX.Element; }; export {};