UNPKG

1.46 kBTypeScriptView Raw
1import { BreakpointsOptions, ShapeOptions, SpacingOptions } from '@mui/system';
2import { MixinsOptions } from './createMixins';
3import { Palette, PaletteOptions } from './createPalette';
4import { TypographyOptions } from './createTypography';
5import { Shadows } from './shadows';
6import { TransitionsOptions } from './createTransitions';
7import { ZIndexOptions } from './zIndex';
8import { ComponentsOverrides } from './overrides';
9import { ComponentsVariants } from './variants';
10import { ComponentsProps } from './props';
11import { Theme } from './createTheme';
12
13export type Direction = 'ltr' | 'rtl';
14
15export 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 */
38export default function adaptV4Theme(options?: DeprecatedThemeOptions): Theme;
39
\No newline at end of file