worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
49
node_modules/@mui/system/esm/createTheme/createTheme.js
generated
vendored
Normal file
49
node_modules/@mui/system/esm/createTheme/createTheme.js
generated
vendored
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
import deepmerge from '@mui/utils/deepmerge';
|
||||
import createBreakpoints from "../createBreakpoints/createBreakpoints.js";
|
||||
import cssContainerQueries from "../cssContainerQueries/index.js";
|
||||
import shape from "./shape.js";
|
||||
import createSpacing from "./createSpacing.js";
|
||||
import styleFunctionSx from "../styleFunctionSx/styleFunctionSx.js";
|
||||
import defaultSxConfig from "../styleFunctionSx/defaultSxConfig.js";
|
||||
import applyStyles from "./applyStyles.js";
|
||||
function createTheme(options = {}, ...args) {
|
||||
const {
|
||||
breakpoints: breakpointsInput = {},
|
||||
palette: paletteInput = {},
|
||||
spacing: spacingInput,
|
||||
shape: shapeInput = {},
|
||||
...other
|
||||
} = options;
|
||||
const breakpoints = createBreakpoints(breakpointsInput);
|
||||
const spacing = createSpacing(spacingInput);
|
||||
let muiTheme = deepmerge({
|
||||
breakpoints,
|
||||
direction: 'ltr',
|
||||
components: {},
|
||||
// Inject component definitions.
|
||||
palette: {
|
||||
mode: 'light',
|
||||
...paletteInput
|
||||
},
|
||||
spacing,
|
||||
shape: {
|
||||
...shape,
|
||||
...shapeInput
|
||||
}
|
||||
}, other);
|
||||
muiTheme = cssContainerQueries(muiTheme);
|
||||
muiTheme.applyStyles = applyStyles;
|
||||
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
||||
muiTheme.unstable_sxConfig = {
|
||||
...defaultSxConfig,
|
||||
...other?.unstable_sxConfig
|
||||
};
|
||||
muiTheme.unstable_sx = function sx(props) {
|
||||
return styleFunctionSx({
|
||||
sx: props,
|
||||
theme: this
|
||||
});
|
||||
};
|
||||
return muiTheme;
|
||||
}
|
||||
export default createTheme;
|
||||
Loading…
Add table
Add a link
Reference in a new issue