1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { DistributiveOmit } from '@mui/types';
|
4 | import { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent';
|
5 | import { Theme } from '..';
|
6 | import { PaperOwnProps } from '../Paper';
|
7 | import { CardClasses } from './cardClasses';
|
8 |
|
9 |
|
10 | export interface CardPropsColorOverrides {}
|
11 |
|
12 | export interface CardOwnProps extends DistributiveOmit<PaperOwnProps, 'classes'> {
|
13 | |
14 |
|
15 |
|
16 | classes?: Partial<CardClasses>;
|
17 | |
18 |
|
19 |
|
20 |
|
21 | raised?: boolean;
|
22 | |
23 |
|
24 |
|
25 | sx?: SxProps<Theme>;
|
26 | }
|
27 |
|
28 | export interface CardTypeMap<
|
29 | AdditionalProps = {},
|
30 | RootComponent extends React.ElementType = 'div',
|
31 | > {
|
32 | props: AdditionalProps & CardOwnProps;
|
33 | defaultComponent: RootComponent;
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 | declare const Card: OverridableComponent<CardTypeMap>;
|
49 |
|
50 | export type CardProps<
|
51 | RootComponent extends React.ElementType = CardTypeMap['defaultComponent'],
|
52 | AdditionalProps = {},
|
53 | > = OverrideProps<CardTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
54 | component?: React.ElementType;
|
55 | };
|
56 |
|
57 | export default Card;
|