init 3
This commit is contained in:
50
node_modules/@mui/material/esm/styles/ThemeProviderWithVars.d.ts
generated
vendored
Normal file
50
node_modules/@mui/material/esm/styles/ThemeProviderWithVars.d.ts
generated
vendored
Normal file
@@ -0,0 +1,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 };
|
||||
1
node_modules/@mui/material/esm/styles/components.js
generated
vendored
Normal file
1
node_modules/@mui/material/esm/styles/components.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
32
node_modules/@mui/material/esm/styles/createMixins.d.ts
generated
vendored
Normal file
32
node_modules/@mui/material/esm/styles/createMixins.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import * as CSS from 'csstype';
|
||||
import { Breakpoints } from '@mui/system';
|
||||
export type NormalCssProperties = CSS.Properties<number | string>;
|
||||
export type Fontface = CSS.AtRule.FontFace & {
|
||||
fallbacks?: CSS.AtRule.FontFace[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Allows the user to augment the properties available
|
||||
*/
|
||||
export interface BaseCSSProperties extends NormalCssProperties {
|
||||
'@font-face'?: Fontface | Fontface[];
|
||||
}
|
||||
export interface CSSProperties extends BaseCSSProperties {
|
||||
// Allow pseudo selectors and media queries
|
||||
// `unknown` is used since TS does not allow assigning an interface without
|
||||
// an index signature to one with an index signature. This is to allow type safe
|
||||
// module augmentation.
|
||||
// Technically we want any key not typed in `BaseCSSProperties` to be of type
|
||||
// `CSSProperties` but this doesn't work. The index signature needs to cover
|
||||
// BaseCSSProperties as well. Usually you would use `BaseCSSProperties[keyof BaseCSSProperties]`
|
||||
// but this would not allow assigning React.CSSProperties to CSSProperties
|
||||
[k: string]: unknown | CSSProperties;
|
||||
}
|
||||
export interface Mixins {
|
||||
toolbar: CSSProperties;
|
||||
// ... use interface declaration merging to add custom mixins
|
||||
}
|
||||
export interface MixinsOptions extends Partial<Mixins> {
|
||||
// ... use interface declaration merging to add custom mixin options
|
||||
}
|
||||
export default function createMixins(breakpoints: Breakpoints, mixins: MixinsOptions): Mixins;
|
||||
1
node_modules/@mui/material/esm/styles/createStyles.d.ts
generated
vendored
Normal file
1
node_modules/@mui/material/esm/styles/createStyles.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default function createStyles(styles: any): never;
|
||||
1
node_modules/@mui/material/esm/styles/overrides.js
generated
vendored
Normal file
1
node_modules/@mui/material/esm/styles/overrides.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
14
node_modules/@mui/material/esm/styles/styled.js
generated
vendored
Normal file
14
node_modules/@mui/material/esm/styles/styled.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use client';
|
||||
|
||||
import createStyled from '@mui/system/createStyled';
|
||||
import defaultTheme from "./defaultTheme.js";
|
||||
import THEME_ID from "./identifier.js";
|
||||
import rootShouldForwardProp from "./rootShouldForwardProp.js";
|
||||
export { default as slotShouldForwardProp } from "./slotShouldForwardProp.js";
|
||||
export { default as rootShouldForwardProp } from "./rootShouldForwardProp.js";
|
||||
const styled = createStyled({
|
||||
themeId: THEME_ID,
|
||||
defaultTheme,
|
||||
rootShouldForwardProp
|
||||
});
|
||||
export default styled;
|
||||
4
node_modules/@mui/material/esm/styles/withTheme.js
generated
vendored
Normal file
4
node_modules/@mui/material/esm/styles/withTheme.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import _formatErrorMessage from "@mui/utils/formatMuiErrorMessage";
|
||||
export default function withTheme() {
|
||||
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: withTheme is no longer exported from @mui/material/styles.\n' + 'You have to import it from @mui/styles.\n' + 'See https://mui.com/r/migration-v4/#mui-material-styles for more details.' : _formatErrorMessage(16));
|
||||
}
|
||||
Reference in New Issue
Block a user