worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
91
node_modules/@mui/material/esm/styles/ThemeProviderWithVars.js
generated
vendored
Normal file
91
node_modules/@mui/material/esm/styles/ThemeProviderWithVars.js
generated
vendored
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import styleFunctionSx from '@mui/system/styleFunctionSx';
|
||||
import { unstable_createCssVarsProvider as createCssVarsProvider } from '@mui/system';
|
||||
import createTheme from "./createTheme.js";
|
||||
import createTypography from "./createTypography.js";
|
||||
import THEME_ID from "./identifier.js";
|
||||
import { defaultConfig } from "../InitColorSchemeScript/InitColorSchemeScript.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const {
|
||||
CssVarsProvider: InternalCssVarsProvider,
|
||||
useColorScheme,
|
||||
getInitColorSchemeScript: deprecatedGetInitColorSchemeScript
|
||||
} = createCssVarsProvider({
|
||||
themeId: THEME_ID,
|
||||
// @ts-ignore ignore module augmentation tests
|
||||
theme: () => createTheme({
|
||||
cssVariables: true
|
||||
}),
|
||||
colorSchemeStorageKey: defaultConfig.colorSchemeStorageKey,
|
||||
modeStorageKey: defaultConfig.modeStorageKey,
|
||||
defaultColorScheme: {
|
||||
light: defaultConfig.defaultLightColorScheme,
|
||||
dark: defaultConfig.defaultDarkColorScheme
|
||||
},
|
||||
resolveTheme: theme => {
|
||||
const newTheme = {
|
||||
...theme,
|
||||
typography: createTypography(theme.palette, theme.typography)
|
||||
};
|
||||
newTheme.unstable_sx = function sx(props) {
|
||||
return styleFunctionSx({
|
||||
sx: props,
|
||||
theme: this
|
||||
});
|
||||
};
|
||||
return newTheme;
|
||||
}
|
||||
});
|
||||
let warnedOnce = false;
|
||||
|
||||
// TODO: remove in v7
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
function Experimental_CssVarsProvider(props) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (!warnedOnce) {
|
||||
console.warn(['MUI: The Experimental_CssVarsProvider component has been ported into ThemeProvider.', '', "You should use `import { ThemeProvider } from '@mui/material/styles'` instead.", 'For more details, check out https://mui.com/material-ui/customization/css-theme-variables/usage/'].join('\n'));
|
||||
warnedOnce = true;
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/_jsx(InternalCssVarsProvider, {
|
||||
...props
|
||||
});
|
||||
}
|
||||
let warnedInitScriptOnce = false;
|
||||
|
||||
// TODO: remove in v7
|
||||
const getInitColorSchemeScript = params => {
|
||||
if (!warnedInitScriptOnce) {
|
||||
console.warn(['MUI: The getInitColorSchemeScript function has been deprecated.', '', "You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`", 'and replace the function call with `<InitColorSchemeScript />` instead.'].join('\n'));
|
||||
warnedInitScriptOnce = true;
|
||||
}
|
||||
return deprecatedGetInitColorSchemeScript(params);
|
||||
};
|
||||
|
||||
/**
|
||||
* 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 const CssVarsProvider = InternalCssVarsProvider;
|
||||
export { useColorScheme, getInitColorSchemeScript, Experimental_CssVarsProvider };
|
||||
Loading…
Add table
Add a link
Reference in a new issue