1 | import * as React from 'react';
|
2 | import { SxProps, Breakpoint } from '@mui/system';
|
3 | import { Theme } from '../styles';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { ContainerClasses } from './containerClasses';
|
6 |
|
7 | export interface ContainerOwnProps {
|
8 | children?: React.ReactNode;
|
9 | |
10 |
|
11 |
|
12 | classes?: Partial<ContainerClasses>;
|
13 | |
14 |
|
15 |
|
16 |
|
17 | disableGutters?: boolean;
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | fixed?: boolean;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | maxWidth?: Breakpoint | false;
|
33 | |
34 |
|
35 |
|
36 | sx?: SxProps<Theme>;
|
37 | }
|
38 |
|
39 | export interface ContainerTypeMap<
|
40 | AdditionalProps = {},
|
41 | RootComponent extends React.ElementType = 'div',
|
42 | > {
|
43 | props: AdditionalProps & ContainerOwnProps;
|
44 | defaultComponent: RootComponent;
|
45 | }
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | declare const Container: OverridableComponent<ContainerTypeMap>;
|
57 |
|
58 | export type ContainerProps<
|
59 | RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'],
|
60 | AdditionalProps = {},
|
61 | > = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
62 | component?: React.ElementType;
|
63 | };
|
64 |
|
65 | export default Container;
|