Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/styles/adaptV4Theme.d.ts 1.48 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  import { BreakpointsOptions, ShapeOptions, SpacingOptions } from '@mui/system';
  import { MixinsOptions } from "./createMixins.js";
  import { Palette, PaletteOptions } from "./createPalette.js";
  import { TypographyVariantsOptions } from "./createTypography.js";
  import { Shadows } from "./shadows.js";
  import { TransitionsOptions } from "./createTransitions.js";
  import { ZIndexOptions } from "./zIndex.js";
  import { ComponentsOverrides } from "./overrides.js";
  import { ComponentsVariants } from "./variants.js";
  import { ComponentsProps } from "./props.js";
  import { Theme } from "./createTheme.js";
  export type Direction = 'ltr' | 'rtl';
  export interface DeprecatedThemeOptions {
    shape?: ShapeOptions;
    breakpoints?: BreakpointsOptions;
    direction?: Direction;
    mixins?: MixinsOptions;
    overrides?: ComponentsOverrides;
    palette?: PaletteOptions;
    props?: ComponentsProps;
    shadows?: Shadows;
    spacing?: SpacingOptions;
    transitions?: TransitionsOptions;
    typography?: TypographyVariantsOptions | ((palette: Palette) => TypographyVariantsOptions);
    variants?: ComponentsVariants;
    zIndex?: ZIndexOptions;
    unstable_strictMode?: boolean;
  }
  
  /**
   * Generate a theme base on the V4 theme options received.
   * @deprecated Follow the upgrade guide on https://mui.com/r/migration-v4#theme
   * @param options Takes an incomplete theme object and adds the missing parts.
   * @returns A complete, ready-to-use theme object.
   */
  export default function adaptV4Theme(options?: DeprecatedThemeOptions): Theme;