@mui/system 6.0.0-rc.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Box/Box.js +2 -2
- package/Box/index.js +3 -3
- package/CHANGELOG.md +46 -0
- package/Container/Container.js +1 -1
- package/Container/createContainer.js +3 -3
- package/Container/index.js +3 -3
- package/DefaultPropsProvider/index.js +1 -1
- package/GlobalStyles/GlobalStyles.js +1 -1
- package/GlobalStyles/index.js +2 -2
- package/Grid/Grid.js +1 -1
- package/Grid/createGrid.js +6 -6
- package/Grid/gridGenerator.js +1 -1
- package/Grid/index.js +6 -6
- package/InitColorSchemeScript/index.js +1 -1
- package/README.md +2 -2
- package/Stack/Stack.js +1 -1
- package/Stack/createStack.js +6 -6
- package/Stack/index.js +5 -5
- package/ThemeProvider/ThemeProvider.js +3 -3
- package/ThemeProvider/index.js +1 -1
- package/borders/borders.js +5 -5
- package/borders/index.js +2 -2
- package/breakpoints/breakpoints.js +2 -2
- package/breakpoints/index.js +2 -2
- package/colorManipulator/index.js +1 -1
- package/compose/compose.js +1 -1
- package/compose/index.js +1 -1
- package/createBox/createBox.js +2 -2
- package/createBox/index.js +1 -1
- package/createBreakpoints/createBreakpoints.d.ts +4 -4
- package/createBreakpoints/index.js +1 -1
- package/createStyled/createStyled.js +2 -2
- package/createStyled/index.js +2 -2
- package/createTheme/createSpacing.js +1 -1
- package/createTheme/createTheme.js +7 -7
- package/createTheme/index.js +3 -3
- package/cssContainerQueries/index.js +2 -2
- package/cssGrid/cssGrid.js +5 -5
- package/cssGrid/index.js +2 -2
- package/cssVars/createCssVarsProvider.js +3 -3
- package/cssVars/createCssVarsTheme.js +3 -3
- package/cssVars/index.js +5 -5
- package/cssVars/prepareCssVars.js +1 -1
- package/cssVars/useCurrentColorScheme.js +1 -1
- package/display/display.js +2 -2
- package/display/index.js +2 -2
- package/flexbox/flexbox.js +2 -2
- package/flexbox/index.js +2 -2
- package/getThemeValue/getThemeValue.js +10 -10
- package/getThemeValue/index.js +2 -2
- package/index.js +58 -58
- package/memoize/index.js +1 -1
- package/merge/index.js +1 -1
- package/modern/Box/Box.js +2 -2
- package/modern/Box/index.js +3 -3
- package/modern/Container/Container.js +1 -1
- package/modern/Container/createContainer.js +3 -3
- package/modern/Container/index.js +3 -3
- package/modern/DefaultPropsProvider/index.js +1 -1
- package/modern/GlobalStyles/GlobalStyles.js +1 -1
- package/modern/GlobalStyles/index.js +2 -2
- package/modern/Grid/Grid.js +1 -1
- package/modern/Grid/createGrid.js +6 -6
- package/modern/Grid/gridGenerator.js +1 -1
- package/modern/Grid/index.js +6 -6
- package/modern/InitColorSchemeScript/index.js +1 -1
- package/modern/Stack/Stack.js +1 -1
- package/modern/Stack/createStack.js +6 -6
- package/modern/Stack/index.js +5 -5
- package/modern/ThemeProvider/ThemeProvider.js +3 -3
- package/modern/ThemeProvider/index.js +1 -1
- package/modern/borders/borders.js +5 -5
- package/modern/borders/index.js +2 -2
- package/modern/breakpoints/breakpoints.js +2 -2
- package/modern/breakpoints/index.js +2 -2
- package/modern/colorManipulator/index.js +1 -1
- package/modern/compose/compose.js +1 -1
- package/modern/compose/index.js +1 -1
- package/modern/createBox/createBox.js +2 -2
- package/modern/createBox/index.js +1 -1
- package/modern/createBreakpoints/index.js +1 -1
- package/modern/createStyled/createStyled.js +2 -2
- package/modern/createStyled/index.js +2 -2
- package/modern/createTheme/createSpacing.js +1 -1
- package/modern/createTheme/createTheme.js +7 -7
- package/modern/createTheme/index.js +3 -3
- package/modern/cssContainerQueries/index.js +2 -2
- package/modern/cssGrid/cssGrid.js +5 -5
- package/modern/cssGrid/index.js +2 -2
- package/modern/cssVars/createCssVarsProvider.js +3 -3
- package/modern/cssVars/createCssVarsTheme.js +3 -3
- package/modern/cssVars/index.js +5 -5
- package/modern/cssVars/prepareCssVars.js +1 -1
- package/modern/cssVars/useCurrentColorScheme.js +1 -1
- package/modern/display/display.js +2 -2
- package/modern/display/index.js +2 -2
- package/modern/flexbox/flexbox.js +2 -2
- package/modern/flexbox/index.js +2 -2
- package/modern/getThemeValue/getThemeValue.js +10 -10
- package/modern/getThemeValue/index.js +2 -2
- package/modern/index.js +58 -58
- package/modern/memoize/index.js +1 -1
- package/modern/merge/index.js +1 -1
- package/modern/palette/index.js +2 -2
- package/modern/palette/palette.js +2 -2
- package/modern/positions/index.js +2 -2
- package/modern/positions/positions.js +2 -2
- package/modern/propsToClassKey/index.js +1 -1
- package/modern/responsivePropType/index.js +1 -1
- package/modern/shadows/index.js +1 -1
- package/modern/shadows/shadows.js +1 -1
- package/modern/sizing/index.js +2 -2
- package/modern/sizing/sizing.js +3 -3
- package/modern/spacing/index.js +2 -2
- package/modern/spacing/spacing.js +5 -5
- package/modern/style/index.js +2 -2
- package/modern/style/style.js +2 -2
- package/modern/styleFunctionSx/defaultSxConfig.js +5 -5
- package/modern/styleFunctionSx/extendSxProp.js +1 -1
- package/modern/styleFunctionSx/index.js +4 -4
- package/modern/styleFunctionSx/styleFunctionSx.js +5 -5
- package/modern/styled/index.js +1 -1
- package/modern/styled/styled.js +1 -1
- package/modern/typography/index.js +2 -2
- package/modern/typography/typography.js +2 -2
- package/modern/useMediaQuery/index.js +2 -2
- package/modern/useMediaQuery/useMediaQuery.js +2 -2
- package/modern/useTheme/index.js +2 -2
- package/modern/useTheme/useTheme.js +2 -2
- package/modern/useThemeProps/index.js +2 -2
- package/modern/useThemeProps/useThemeProps.js +2 -2
- package/modern/useThemeWithoutDefault/index.js +1 -1
- package/modern/version/index.js +3 -3
- package/node/index.js +1 -1
- package/node/version/index.js +3 -3
- package/package.json +5 -5
- package/palette/index.js +2 -2
- package/palette/palette.js +2 -2
- package/positions/index.js +2 -2
- package/positions/positions.js +2 -2
- package/propsToClassKey/index.js +1 -1
- package/responsivePropType/index.js +1 -1
- package/shadows/index.js +1 -1
- package/shadows/shadows.js +1 -1
- package/sizing/index.js +2 -2
- package/sizing/sizing.js +3 -3
- package/spacing/index.js +2 -2
- package/spacing/spacing.js +5 -5
- package/style/index.js +2 -2
- package/style/style.js +2 -2
- package/styleFunctionSx/defaultSxConfig.js +5 -5
- package/styleFunctionSx/extendSxProp.js +1 -1
- package/styleFunctionSx/index.js +4 -4
- package/styleFunctionSx/styleFunctionSx.js +5 -5
- package/styled/index.js +1 -1
- package/styled/styled.js +1 -1
- package/typography/index.js +2 -2
- package/typography/typography.js +2 -2
- package/useMediaQuery/index.js +2 -2
- package/useMediaQuery/useMediaQuery.js +2 -2
- package/useTheme/index.js +2 -2
- package/useTheme/useTheme.js +2 -2
- package/useThemeProps/index.js +2 -2
- package/useThemeProps/useThemeProps.js +2 -2
- package/useThemeWithoutDefault/index.js +1 -1
- package/version/index.js +3 -3
package/Box/Box.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ClassNameGenerator from '@mui/utils/ClassNameGenerator';
|
|
5
|
-
import createBox from
|
|
6
|
-
import boxClasses from
|
|
5
|
+
import createBox from "../createBox/index.js";
|
|
6
|
+
import boxClasses from "./boxClasses.js";
|
|
7
7
|
const Box = createBox({
|
|
8
8
|
defaultClassName: boxClasses.root,
|
|
9
9
|
generateClassName: ClassNameGenerator.generate
|
package/Box/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { default } from
|
|
4
|
-
export { default as boxClasses } from
|
|
5
|
-
export * from
|
|
3
|
+
export { default } from "./Box.js";
|
|
4
|
+
export { default as boxClasses } from "./boxClasses.js";
|
|
5
|
+
export * from "./boxClasses.js";
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-rc.0..master -->
|
|
6
|
+
|
|
7
|
+
_Aug 27, 2024_
|
|
8
|
+
|
|
9
|
+
We are excited to announce the stable release of Material-UI v6 🎉, check out [the blog post](https://mui.com/blog/material-ui-v6-is-out/) to see all the updates.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@6.0.0`
|
|
12
|
+
|
|
13
|
+
- Change React.ReactElement<any,any> type from any to unknown (#43358) @sai6855
|
|
14
|
+
- [Pagination] Update `getItemAriaLabel` page param type (#43399) @sydneyjodon-wk
|
|
15
|
+
- [Unstable_TrapFocus] Fix `getTabbable` function return type (#42237) @KalmarLorand
|
|
16
|
+
|
|
17
|
+
### `@mui/lab@6.0.0-beta.8`
|
|
18
|
+
|
|
19
|
+
- [button] Add missing customize points for span (#43436) @oliviertassinari
|
|
20
|
+
|
|
21
|
+
### Docs
|
|
22
|
+
|
|
23
|
+
- Fix broken links (#43144) @DiegoAndai
|
|
24
|
+
- Updated mui-x roadmap links with the new project URL (#43444) @michelengelen
|
|
25
|
+
- Update pnpm order, move to second (#42712) @ahmadnadeem6236
|
|
26
|
+
- Fix CSS theme variables section (#43439) @siriwatknp
|
|
27
|
+
- Add two Toolpad Core components to Material UI sidebar (#43391) @prakhargupta1
|
|
28
|
+
- Fix licensingModel -> licenseModel @oliviertassinari
|
|
29
|
+
- Fix Stack Overflow issue canned response @oliviertassinari
|
|
30
|
+
- Avoid referencing MUI Core @oliviertassinari
|
|
31
|
+
- Fix description of eslint-plugin-material-ui @oliviertassinari
|
|
32
|
+
- [docs-infra] Polish reportBrokenLinks.js to support Base UI @oliviertassinari
|
|
33
|
+
- [material-ui] Clarify RTL language support in localization guide (#41784) @bahmanworld
|
|
34
|
+
- [material-ui] Refine templates theme selector (#43396) @zanivan
|
|
35
|
+
|
|
36
|
+
### Core
|
|
37
|
+
|
|
38
|
+
- Prepare for v6 stable release (#43454) @siriwatknp
|
|
39
|
+
- [blog] Polish Upcoming changes to MUI X pricing in 2024 (#43438) @oliviertassinari
|
|
40
|
+
- [blog] Add Material UI v6 stable release (#41932) @siriwatknp
|
|
41
|
+
- [ci] Fix the release:changelog cmd (#43451) @mnajdova
|
|
42
|
+
- [core] Allow `^6.0.0` for `@mui/` dependencies in `@mui/docs` (#43445) @LukasTy
|
|
43
|
+
- [code-infra] Babel plugin to fully resolve imported paths (#43294) @Janpot
|
|
44
|
+
- [infra] Add closing message workflow (#43450) @michelengelen
|
|
45
|
+
- [website] Make beta chip consistent for Toolpad (#43392) @prakhargupta1
|
|
46
|
+
|
|
47
|
+
All contributors of this release in alphabetical order: @ahmadnadeem6236, @bahmanworld, @DiegoAndai, @Janpot, @KalmarLorand, @LukasTy, @michelengelen, @mnajdova, @oliviertassinari, @prakhargupta1, @sai6855, @siriwatknp, @sydneyjodon-wk, @zanivan
|
|
48
|
+
|
|
3
49
|
## 6.0.0-rc.0
|
|
4
50
|
|
|
5
51
|
<!-- generated comparing v6.0.0-beta.6..next -->
|
package/Container/Container.js
CHANGED
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
5
5
|
import composeClasses from '@mui/utils/composeClasses';
|
|
6
6
|
import capitalize from '@mui/utils/capitalize';
|
|
7
|
-
import useThemePropsSystem from
|
|
8
|
-
import systemStyled from
|
|
9
|
-
import createTheme from
|
|
7
|
+
import useThemePropsSystem from "../useThemeProps/index.js";
|
|
8
|
+
import systemStyled from "../styled/index.js";
|
|
9
|
+
import createTheme from "../createTheme/index.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const defaultTheme = createTheme();
|
|
12
12
|
const defaultCreateStyledComponent = systemStyled('div', {
|
package/Container/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { default } from
|
|
4
|
-
export { default as containerClasses } from
|
|
5
|
-
export * from
|
|
3
|
+
export { default } from "./Container.js";
|
|
4
|
+
export { default as containerClasses } from "./containerClasses.js";
|
|
5
|
+
export * from "./containerClasses.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, useDefaultProps } from
|
|
1
|
+
export { default, useDefaultProps } from "./DefaultPropsProvider.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';
|
|
6
|
-
import useTheme from
|
|
6
|
+
import useTheme from "../useTheme/index.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
function GlobalStyles({
|
|
9
9
|
styles,
|
package/GlobalStyles/index.js
CHANGED
package/Grid/Grid.js
CHANGED
package/Grid/createGrid.js
CHANGED
|
@@ -4,12 +4,12 @@ import clsx from 'clsx';
|
|
|
4
4
|
import isMuiElement from '@mui/utils/isMuiElement';
|
|
5
5
|
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import systemStyled from
|
|
8
|
-
import useThemePropsSystem from
|
|
9
|
-
import useTheme from
|
|
10
|
-
import { extendSxProp } from
|
|
11
|
-
import createTheme from
|
|
12
|
-
import { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from
|
|
7
|
+
import systemStyled from "../styled/index.js";
|
|
8
|
+
import useThemePropsSystem from "../useThemeProps/index.js";
|
|
9
|
+
import useTheme from "../useTheme/index.js";
|
|
10
|
+
import { extendSxProp } from "../styleFunctionSx/index.js";
|
|
11
|
+
import createTheme from "../createTheme/index.js";
|
|
12
|
+
import { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from "./gridGenerator.js";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const defaultTheme = createTheme();
|
|
15
15
|
|
package/Grid/gridGenerator.js
CHANGED
package/Grid/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { default } from
|
|
4
|
-
export { default as createGrid } from
|
|
5
|
-
export * from
|
|
6
|
-
export { default as gridClasses } from
|
|
7
|
-
export * from
|
|
8
|
-
export { traverseBreakpoints as unstable_traverseBreakpoints } from
|
|
3
|
+
export { default } from "./Grid.js";
|
|
4
|
+
export { default as createGrid } from "./createGrid.js";
|
|
5
|
+
export * from "./GridProps.js";
|
|
6
|
+
export { default as gridClasses } from "./gridClasses.js";
|
|
7
|
+
export * from "./gridClasses.js";
|
|
8
|
+
export { traverseBreakpoints as unstable_traverseBreakpoints } from "./traverseBreakpoints.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./InitColorSchemeScript.js";
|
package/README.md
CHANGED
|
@@ -9,11 +9,11 @@ Install the package in your project directory with:
|
|
|
9
9
|
<!-- #default-branch-switch -->
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install @mui/system
|
|
12
|
+
npm install @mui/system @emotion/react @emotion/styled
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Documentation
|
|
16
16
|
|
|
17
17
|
<!-- #default-branch-switch -->
|
|
18
18
|
|
|
19
|
-
Visit [https://
|
|
19
|
+
Visit [https://mui.com/system/getting-started/](https://mui.com/system/getting-started/) to view the full documentation.
|
package/Stack/Stack.js
CHANGED
package/Stack/createStack.js
CHANGED
|
@@ -4,12 +4,12 @@ import clsx from 'clsx';
|
|
|
4
4
|
import deepmerge from '@mui/utils/deepmerge';
|
|
5
5
|
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import systemStyled from
|
|
8
|
-
import useThemePropsSystem from
|
|
9
|
-
import { extendSxProp } from
|
|
10
|
-
import createTheme from
|
|
11
|
-
import { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues } from
|
|
12
|
-
import { createUnarySpacing, getValue } from
|
|
7
|
+
import systemStyled from "../styled/index.js";
|
|
8
|
+
import useThemePropsSystem from "../useThemeProps/index.js";
|
|
9
|
+
import { extendSxProp } from "../styleFunctionSx/index.js";
|
|
10
|
+
import createTheme from "../createTheme/index.js";
|
|
11
|
+
import { handleBreakpoints, mergeBreakpointsInOrder, resolveBreakpointValues } from "../breakpoints/index.js";
|
|
12
|
+
import { createUnarySpacing, getValue } from "../spacing/index.js";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const defaultTheme = createTheme();
|
|
15
15
|
// widening Theme to any so that the consumer can own the theme structure.
|
package/Stack/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { default } from
|
|
4
|
-
export { default as createStack } from
|
|
5
|
-
export * from
|
|
6
|
-
export { default as stackClasses } from
|
|
7
|
-
export * from
|
|
3
|
+
export { default } from "./Stack.js";
|
|
4
|
+
export { default as createStack } from "./createStack.js";
|
|
5
|
+
export * from "./StackProps.js";
|
|
6
|
+
export { default as stackClasses } from "./stackClasses.js";
|
|
7
|
+
export * from "./stackClasses.js";
|
|
@@ -5,9 +5,9 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import { ThemeProvider as MuiThemeProvider, useTheme as usePrivateTheme } from '@mui/private-theming';
|
|
6
6
|
import exactProp from '@mui/utils/exactProp';
|
|
7
7
|
import { ThemeContext as StyledEngineThemeContext } from '@mui/styled-engine';
|
|
8
|
-
import useThemeWithoutDefault from
|
|
9
|
-
import RtlProvider from
|
|
10
|
-
import DefaultPropsProvider from
|
|
8
|
+
import useThemeWithoutDefault from "../useThemeWithoutDefault/index.js";
|
|
9
|
+
import RtlProvider from "../RtlProvider/index.js";
|
|
10
|
+
import DefaultPropsProvider from "../DefaultPropsProvider/index.js";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
const EMPTY_THEME = {};
|
|
13
13
|
function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
|
package/ThemeProvider/index.js
CHANGED
package/borders/borders.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import responsivePropType from
|
|
2
|
-
import style from
|
|
3
|
-
import compose from
|
|
4
|
-
import { createUnaryUnit, getValue } from
|
|
5
|
-
import { handleBreakpoints } from
|
|
1
|
+
import responsivePropType from "../responsivePropType/index.js";
|
|
2
|
+
import style from "../style/index.js";
|
|
3
|
+
import compose from "../compose/index.js";
|
|
4
|
+
import { createUnaryUnit, getValue } from "../spacing/index.js";
|
|
5
|
+
import { handleBreakpoints } from "../breakpoints/index.js";
|
|
6
6
|
export function borderTransform(value) {
|
|
7
7
|
if (typeof value !== 'number') {
|
|
8
8
|
return value;
|
package/borders/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import deepmerge from '@mui/utils/deepmerge';
|
|
3
|
-
import merge from
|
|
4
|
-
import { isCqShorthand, getContainerQuery } from
|
|
3
|
+
import merge from "../merge/index.js";
|
|
4
|
+
import { isCqShorthand, getContainerQuery } from "../cssContainerQueries/index.js";
|
|
5
5
|
|
|
6
6
|
// The breakpoint **start** at this value.
|
|
7
7
|
// For instance with the first breakpoint xs: [xs, sm[.
|
package/breakpoints/index.js
CHANGED
package/compose/compose.js
CHANGED
package/compose/index.js
CHANGED
package/createBox/createBox.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import styled from '@mui/styled-engine';
|
|
6
|
-
import styleFunctionSx, { extendSxProp } from
|
|
7
|
-
import useTheme from
|
|
6
|
+
import styleFunctionSx, { extendSxProp } from "../styleFunctionSx/index.js";
|
|
7
|
+
import useTheme from "../useTheme/index.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
export default function createBox(options = {}) {
|
|
10
10
|
const {
|
package/createBox/index.js
CHANGED
|
@@ -31,13 +31,13 @@ export interface Breakpoints {
|
|
|
31
31
|
/**
|
|
32
32
|
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
33
33
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than the screen size given by the breakpoint key (inclusive).
|
|
34
|
-
* @see [API documentation](https://
|
|
34
|
+
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-up-key-media-query)
|
|
35
35
|
*/
|
|
36
36
|
up: (key: Breakpoint | number) => string;
|
|
37
37
|
/**
|
|
38
38
|
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
39
39
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths less than the screen size given by the breakpoint key (exclusive).
|
|
40
|
-
* @see [API documentation](https://
|
|
40
|
+
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-down-key-media-query)
|
|
41
41
|
*/
|
|
42
42
|
down: (key: Breakpoint | number) => string;
|
|
43
43
|
/**
|
|
@@ -45,14 +45,14 @@ export interface Breakpoints {
|
|
|
45
45
|
* @param end - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
46
46
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than
|
|
47
47
|
* the screen size given by the breakpoint key in the first argument (inclusive) and less than the screen size given by the breakpoint key in the second argument (exclusive).
|
|
48
|
-
* @see [API documentation](https://
|
|
48
|
+
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-between-start-end-media-query)
|
|
49
49
|
*/
|
|
50
50
|
between: (start: Breakpoint | number, end: Breakpoint | number) => string;
|
|
51
51
|
/**
|
|
52
52
|
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
53
53
|
* @returns A media query string ready to be used with most styling solutions, which matches screen widths starting from
|
|
54
54
|
* the screen size given by the breakpoint key (inclusive) and stopping at the screen size given by the next breakpoint key (exclusive).
|
|
55
|
-
* @see [API documentation](https://
|
|
55
|
+
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-only-key-media-query)
|
|
56
56
|
*/
|
|
57
57
|
only: (key: Breakpoint) => string;
|
|
58
58
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** This export is intended for internal integration with Pigment CSS */
|
|
2
2
|
/* eslint-disable import/prefer-default-export */
|
|
3
|
-
export { default as unstable_createBreakpoints } from
|
|
3
|
+
export { default as unstable_createBreakpoints } from "./createBreakpoints.js";
|
|
@@ -3,8 +3,8 @@ import styledEngineStyled, { internal_processStyles as processStyles } from '@mu
|
|
|
3
3
|
import { isPlainObject } from '@mui/utils/deepmerge';
|
|
4
4
|
import capitalize from '@mui/utils/capitalize';
|
|
5
5
|
import getDisplayName from '@mui/utils/getDisplayName';
|
|
6
|
-
import createTheme from
|
|
7
|
-
import styleFunctionSx from
|
|
6
|
+
import createTheme from "../createTheme/index.js";
|
|
7
|
+
import styleFunctionSx from "../styleFunctionSx/index.js";
|
|
8
8
|
export const systemDefaultTheme = createTheme();
|
|
9
9
|
|
|
10
10
|
// Update /system/styled/#api in case if this changes
|
package/createStyled/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createUnarySpacing } from
|
|
1
|
+
import { createUnarySpacing } from "../spacing/index.js";
|
|
2
2
|
|
|
3
3
|
// The different signatures imply different meaning for their arguments that can't be expressed structurally.
|
|
4
4
|
// We express the difference with variable names.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import deepmerge from '@mui/utils/deepmerge';
|
|
2
|
-
import createBreakpoints from
|
|
3
|
-
import cssContainerQueries from
|
|
4
|
-
import shape from
|
|
5
|
-
import createSpacing from
|
|
6
|
-
import styleFunctionSx from
|
|
7
|
-
import defaultSxConfig from
|
|
8
|
-
import applyStyles from
|
|
2
|
+
import createBreakpoints from "../createBreakpoints/createBreakpoints.js";
|
|
3
|
+
import cssContainerQueries from "../cssContainerQueries/index.js";
|
|
4
|
+
import shape from "./shape.js";
|
|
5
|
+
import createSpacing from "./createSpacing.js";
|
|
6
|
+
import styleFunctionSx from "../styleFunctionSx/styleFunctionSx.js";
|
|
7
|
+
import defaultSxConfig from "../styleFunctionSx/defaultSxConfig.js";
|
|
8
|
+
import applyStyles from "./applyStyles.js";
|
|
9
9
|
function createTheme(options = {}, ...args) {
|
|
10
10
|
const {
|
|
11
11
|
breakpoints: breakpointsInput = {},
|
package/createTheme/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export { default as private_createBreakpoints } from
|
|
3
|
-
export { default as unstable_applyStyles } from
|
|
1
|
+
export { default } from "./createTheme.js";
|
|
2
|
+
export { default as private_createBreakpoints } from "../createBreakpoints/createBreakpoints.js";
|
|
3
|
+
export { default as unstable_applyStyles } from "./applyStyles.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export { isCqShorthand, getContainerQuery, sortContainerQueries } from
|
|
1
|
+
export { default } from "./cssContainerQueries.js";
|
|
2
|
+
export { isCqShorthand, getContainerQuery, sortContainerQueries } from "./cssContainerQueries.js";
|
package/cssGrid/cssGrid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import style from
|
|
2
|
-
import compose from
|
|
3
|
-
import { createUnaryUnit, getValue } from
|
|
4
|
-
import { handleBreakpoints } from
|
|
5
|
-
import responsivePropType from
|
|
1
|
+
import style from "../style/index.js";
|
|
2
|
+
import compose from "../compose/index.js";
|
|
3
|
+
import { createUnaryUnit, getValue } from "../spacing/index.js";
|
|
4
|
+
import { handleBreakpoints } from "../breakpoints/index.js";
|
|
5
|
+
import responsivePropType from "../responsivePropType/index.js";
|
|
6
6
|
|
|
7
7
|
// false positive
|
|
8
8
|
// eslint-disable-next-line react/function-component-definition
|
package/cssGrid/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { GlobalStyles } from '@mui/styled-engine';
|
|
4
4
|
import { useTheme as muiUseTheme } from '@mui/private-theming';
|
|
5
|
-
import ThemeProvider from
|
|
6
|
-
import InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from
|
|
7
|
-
import useCurrentColorScheme from
|
|
5
|
+
import ThemeProvider from "../ThemeProvider/index.js";
|
|
6
|
+
import InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from "../InitColorSchemeScript/InitColorSchemeScript.js";
|
|
7
|
+
import useCurrentColorScheme from "./useCurrentColorScheme.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
10
10
|
export default function createCssVarsProvider(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import prepareCssVars from
|
|
2
|
-
import { createGetColorSchemeSelector } from
|
|
3
|
-
import { DEFAULT_ATTRIBUTE } from
|
|
1
|
+
import prepareCssVars from "./prepareCssVars.js";
|
|
2
|
+
import { createGetColorSchemeSelector } from "./getColorSchemeSelector.js";
|
|
3
|
+
import { DEFAULT_ATTRIBUTE } from "../InitColorSchemeScript/InitColorSchemeScript.js";
|
|
4
4
|
function createCssVarsTheme({
|
|
5
5
|
colorSchemeSelector = `[${DEFAULT_ATTRIBUTE}="%s"]`,
|
|
6
6
|
...theme
|
package/cssVars/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { default } from
|
|
4
|
-
export { default as prepareCssVars } from
|
|
5
|
-
export { default as prepareTypographyVars } from
|
|
6
|
-
export { default as createCssVarsTheme } from
|
|
7
|
-
export { createGetColorSchemeSelector } from
|
|
3
|
+
export { default } from "./createCssVarsProvider.js";
|
|
4
|
+
export { default as prepareCssVars } from "./prepareCssVars.js";
|
|
5
|
+
export { default as prepareTypographyVars } from "./prepareTypographyVars.js";
|
|
6
|
+
export { default as createCssVarsTheme } from "./createCssVarsTheme.js";
|
|
7
|
+
export { createGetColorSchemeSelector } from "./getColorSchemeSelector.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from
|
|
4
|
+
import { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from "../InitColorSchemeScript/InitColorSchemeScript.js";
|
|
5
5
|
export function getSystemMode(mode) {
|
|
6
6
|
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function' && mode === 'system') {
|
|
7
7
|
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
package/display/display.js
CHANGED
package/display/index.js
CHANGED
package/flexbox/flexbox.js
CHANGED
package/flexbox/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import borders from
|
|
2
|
-
import display from
|
|
3
|
-
import flexbox from
|
|
4
|
-
import grid from
|
|
5
|
-
import positions from
|
|
6
|
-
import palette from
|
|
7
|
-
import shadows from
|
|
8
|
-
import sizing from
|
|
9
|
-
import spacing from
|
|
10
|
-
import typography from
|
|
1
|
+
import borders from "../borders/index.js";
|
|
2
|
+
import display from "../display/index.js";
|
|
3
|
+
import flexbox from "../flexbox/index.js";
|
|
4
|
+
import grid from "../cssGrid/index.js";
|
|
5
|
+
import positions from "../positions/index.js";
|
|
6
|
+
import palette from "../palette/index.js";
|
|
7
|
+
import shadows from "../shadows/index.js";
|
|
8
|
+
import sizing from "../sizing/index.js";
|
|
9
|
+
import spacing from "../spacing/index.js";
|
|
10
|
+
import typography from "../typography/index.js";
|
|
11
11
|
const filterPropsMapping = {
|
|
12
12
|
borders: borders.filterProps,
|
|
13
13
|
display: display.filterProps,
|
package/getThemeValue/index.js
CHANGED