Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/styles/ThemeProviderWithVars.d.ts 2.1 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  import { SupportedColorScheme } from "./createThemeWithVars.js";
  declare const useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, deprecatedGetInitColorSchemeScript: typeof import("@mui/system/InitColorSchemeScript").default;
  declare function Experimental_CssVarsProvider(props: any): import("react/jsx-runtime").JSX.Element;
  declare const getInitColorSchemeScript: typeof deprecatedGetInitColorSchemeScript;
  /**
   * TODO: remove this export in v7
   * @deprecated
   * The `CssVarsProvider` component has been deprecated and ported into `ThemeProvider`.
   *
   * You should use `ThemeProvider` and `createTheme()` instead:
   *
   * ```diff
   * - import { CssVarsProvider, extendTheme } from '@mui/material/styles';
   * + import { ThemeProvider, createTheme } from '@mui/material/styles';
   *
   * - const theme = extendTheme();
   * + const theme = createTheme({
   * +   cssVariables: true,
   * +   colorSchemes: { light: true, dark: true },
   * + });
   *
   * - <CssVarsProvider theme={theme}>
   * + <ThemeProvider theme={theme}>
   * ```
   *
   * To see the full documentation, check out https://mui.com/material-ui/customization/css-theme-variables/usage/.
   */
  export declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
    theme?: {
      cssVariables?: false;
      cssVarPrefix?: string;
      colorSchemes: Partial<Record<SupportedColorScheme, any>>;
      colorSchemeSelector?: "media" | "class" | "data" | string;
    } | {
      $$material: {
        cssVariables?: false;
        cssVarPrefix?: string;
        colorSchemes: Partial<Record<SupportedColorScheme, any>>;
        colorSchemeSelector?: "media" | "class" | "data" | string;
      };
    } | undefined;
    defaultMode?: "light" | "dark" | "system";
    documentNode?: Document | null;
    colorSchemeNode?: Element | null;
    storageManager?: import("@mui/system").StorageManager | null;
    storageWindow?: Window | null;
    disableNestedContext?: boolean;
    disableStyleSheetGeneration?: boolean;
  }>) => React.JSX.Element;
  export { useColorScheme, getInitColorSchemeScript, Experimental_CssVarsProvider };