1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
4 | import { Theme } from '../styles';
|
5 | import { TypographyTypeMap } from '../Typography';
|
6 | import { DialogTitleClasses } from './dialogTitleClasses';
|
7 |
|
8 | export interface DialogTitleOwnProps extends Omit<TypographyTypeMap['props'], 'classes'> {
|
9 | |
10 |
|
11 |
|
12 | children?: React.ReactNode;
|
13 | |
14 |
|
15 |
|
16 | classes?: Partial<DialogTitleClasses>;
|
17 | |
18 |
|
19 |
|
20 | sx?: SxProps<Theme>;
|
21 | }
|
22 |
|
23 | export interface DialogTitleTypeMap<
|
24 | AdditionalProps = {},
|
25 | RootComponent extends React.ElementType = TypographyTypeMap['defaultComponent'],
|
26 | > {
|
27 | props: AdditionalProps & DialogTitleOwnProps;
|
28 | defaultComponent: RootComponent;
|
29 | }
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
|
43 |
|
44 | export type DialogTitleProps<
|
45 | RootComponent extends React.ElementType = DialogTitleTypeMap['defaultComponent'],
|
46 | AdditionalProps = { component?: React.ElementType },
|
47 | > = OverrideProps<DialogTitleTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
48 | component?: React.ElementType;
|
49 | };
|
50 |
|
51 | export default DialogTitle;
|