| 1 |
/// <reference types="react" /> |
| 2 |
import { OUIAProps } from '../../helpers'; |
| 3 |
export interface CardProps extends React.HTMLProps<HTMLElement>, OUIAProps { |
| 4 |
/** Content rendered inside the Card */ |
| 5 |
children?: React.ReactNode; |
| 6 |
/** ID of the Card. Also passed back in the CardHeader onExpand callback. */ |
| 7 |
id?: string; |
| 8 |
/** Additional classes added to the Card */ |
| 9 |
className?: string; |
| 10 |
/** Sets the base component to render. defaults to div */ |
| 11 |
component?: keyof React.JSX.IntrinsicElements; |
| 12 |
/** Modifies the card to include compact styling. Should not be used with isLarge. */ |
| 13 |
isCompact?: boolean; |
| 14 |
/** Flag indicating that the card is selectable. */ |
| 15 |
isSelectable?: boolean; |
| 16 |
/** Flag indicating that the card is clickable and contains some action that triggers on click. */ |
| 17 |
isClickable?: boolean; |
| 18 |
/** Flag indicating whether a card that is either selectable only or both clickable and selectable is |
| 19 |
* currently selected and has selected styling. |
| 20 |
*/ |
| 21 |
isSelected?: boolean; |
| 22 |
/** Flag indicating whether a card that is either only clickable or that is both clickable and selectable |
| 23 |
* is currently clicked and has clicked styling. |
| 24 |
*/ |
| 25 |
isClicked?: boolean; |
| 26 |
/** Flag indicating that a clickable or selectable card is disabled. */ |
| 27 |
isDisabled?: boolean; |
| 28 |
/** Modifies the card to be large. Should not be used with isCompact. */ |
| 29 |
isLarge?: boolean; |
| 30 |
/** Cause component to consume the available height of its container */ |
| 31 |
isFullHeight?: boolean; |
| 32 |
/** Modifies the card to include plain styling; this removes border and background */ |
| 33 |
isPlain?: boolean; |
| 34 |
/** Modifies the card to include glass styling when glass theme is enabled */ |
| 35 |
isGlass?: boolean; |
| 36 |
/** Flag indicating if a card is expanded. Modifies the card to be expandable. */ |
| 37 |
isExpanded?: boolean; |
| 38 |
/** Card background color variant */ |
| 39 |
variant?: 'default' | 'secondary'; |
| 40 |
/** Value to overwrite the randomly generated data-ouia-component-id.*/ |
| 41 |
ouiaId?: number | string; |
| 42 |
/** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */ |
| 43 |
ouiaSafe?: boolean; |
| 44 |
/** @hide Forwarded ref */ |
| 45 |
innerRef?: React.Ref<any>; |
| 46 |
} |
| 47 |
interface CardContextProps { |
| 48 |
cardId: string; |
| 49 |
isExpanded: boolean; |
| 50 |
isClickable: boolean; |
| 51 |
isSelectable: boolean; |
| 52 |
isSelected: boolean; |
| 53 |
isClicked: boolean; |
| 54 |
isDisabled: boolean; |
| 55 |
} |
| 56 |
export declare const CardContext: import("react").Context<Partial<CardContextProps>>; |
| 57 |
export declare const Card: import("react").ForwardRefExoticComponent<Omit<CardProps, "ref"> & import("react").RefAttributes<any>>; |
| 58 |
export {}; |
| 59 |
//# sourceMappingURL=Card.d.ts.map |