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