1 | import { BreakpointsOptions, ShapeOptions, SpacingOptions } from '@mui/system';
|
2 | import { MixinsOptions } from './createMixins';
|
3 | import { Palette, PaletteOptions } from './createPalette';
|
4 | import { TypographyOptions } from './createTypography';
|
5 | import { Shadows } from './shadows';
|
6 | import { TransitionsOptions } from './createTransitions';
|
7 | import { ZIndexOptions } from './zIndex';
|
8 | import { ComponentsOverrides } from './overrides';
|
9 | import { ComponentsVariants } from './variants';
|
10 | import { ComponentsProps } from './props';
|
11 | import { Theme } from './createTheme';
|
12 |
|
13 | export type Direction = 'ltr' | 'rtl';
|
14 |
|
15 | export interface DeprecatedThemeOptions {
|
16 | shape?: ShapeOptions;
|
17 | breakpoints?: BreakpointsOptions;
|
18 | direction?: Direction;
|
19 | mixins?: MixinsOptions;
|
20 | overrides?: ComponentsOverrides;
|
21 | palette?: PaletteOptions;
|
22 | props?: ComponentsProps;
|
23 | shadows?: Shadows;
|
24 | spacing?: SpacingOptions;
|
25 | transitions?: TransitionsOptions;
|
26 | typography?: TypographyOptions | ((palette: Palette) => TypographyOptions);
|
27 | variants?: ComponentsVariants;
|
28 | zIndex?: ZIndexOptions;
|
29 | unstable_strictMode?: boolean;
|
30 | }
|
31 |
|
32 | /**
|
33 | * Generate a theme base on the V4 theme options received.
|
34 | * @deprecated Follow the upgrade guide on https://mui.com/r/migration-v4#theme
|
35 | * @param options Takes an incomplete theme object and adds the missing parts.
|
36 | * @returns A complete, ready-to-use theme object.
|
37 | */
|
38 | export default function adaptV4Theme(options?: DeprecatedThemeOptions): Theme;
|
39 |
|
\ | No newline at end of file |