@mui/system 5.16.7 → 5.16.12
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/CHANGELOG.md +96 -0
- package/README.md +1 -1
- package/Stack/createStack.d.ts +1 -1
- package/Unstable_Grid/createGrid.d.ts +1 -1
- package/Unstable_Grid/createGrid.js +2 -2
- package/Unstable_Grid/gridGenerator.d.ts +2 -2
- package/Unstable_Grid/traverseBreakpoints.d.ts +1 -1
- package/cssVars/createCssVarsProvider.d.ts +1 -1
- package/cssVars/createCssVarsTheme.d.ts +1 -1
- package/cssVars/cssVarsParser.d.ts +2 -2
- package/esm/Unstable_Grid/createGrid.js +2 -2
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/legacy/Unstable_Grid/createGrid.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/version/index.js +2 -2
- package/modern/Unstable_Grid/createGrid.js +1 -1
- package/modern/index.js +1 -1
- package/modern/version/index.js +2 -2
- package/package.json +7 -7
- package/version/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v5.16.12
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.16.11..v5.x -->
|
|
6
|
+
|
|
7
|
+
_Dec 16, 2024_
|
|
8
|
+
|
|
9
|
+
Material UI v5 is now compatible with React 19 (#44720) @DiegoAndai
|
|
10
|
+
|
|
11
|
+
### Core
|
|
12
|
+
|
|
13
|
+
- Bump react 19 in v5 (#44720) @DiegoAndai
|
|
14
|
+
- Add `latest-v5` tag to v5 releases (#44757) @DiegoAndai
|
|
15
|
+
|
|
16
|
+
All contributors of this release in alphabetical order: @DiegoAndai
|
|
17
|
+
|
|
18
|
+
## 5.16.11
|
|
19
|
+
|
|
20
|
+
<!-- generated comparing v5.16.9..v5.x -->
|
|
21
|
+
|
|
22
|
+
_Dec 11, 2024_
|
|
23
|
+
|
|
24
|
+
A big thanks to the contributor who made this release possible.
|
|
25
|
+
|
|
26
|
+
### Core
|
|
27
|
+
|
|
28
|
+
- Bump pnpm to 9.14.4 in v5 (#44705) @DiegoAndai
|
|
29
|
+
- Fix UMD examples (#44706) @DiegoAndai
|
|
30
|
+
- [typescript] Rescue missing backports v5 (#44712) @DiegoAndai
|
|
31
|
+
|
|
32
|
+
All contributors of this release in alphabetical order: @DiegoAndai
|
|
33
|
+
|
|
34
|
+
## 5.16.9
|
|
35
|
+
|
|
36
|
+
<!-- generated comparing v5.16.8..v5.x -->
|
|
37
|
+
|
|
38
|
+
_Dec 3, 2024_
|
|
39
|
+
|
|
40
|
+
A big thanks to the 2 contributors who made this release possible.
|
|
41
|
+
|
|
42
|
+
### `@mui/material@5.16.9`
|
|
43
|
+
|
|
44
|
+
- [Tabs] Cherry pick `ScrollbarSize` ref being overridden fix (#44595) @DiegoAndai
|
|
45
|
+
|
|
46
|
+
### Core
|
|
47
|
+
|
|
48
|
+
- Ignore browserslist and remove tag latest (#44589) @siriwatknp
|
|
49
|
+
|
|
50
|
+
All contributors of this release in alphabetical order: @DiegoAndai, @siriwatknp
|
|
51
|
+
|
|
52
|
+
## 5.16.8
|
|
53
|
+
|
|
54
|
+
<!-- generated comparing v5.16.7..v5.x -->
|
|
55
|
+
|
|
56
|
+
_Nov 26, 2024_
|
|
57
|
+
|
|
58
|
+
A big thanks to the 8 contributors who made this release possible.
|
|
59
|
+
|
|
60
|
+
### `@mui/material@5.16.8`
|
|
61
|
+
|
|
62
|
+
- Cherry pick ref accessing PRs (#44543) @DiegoAndai
|
|
63
|
+
|
|
64
|
+
### `@mui/utils@5.16.8`
|
|
65
|
+
|
|
66
|
+
- Skip deep clone React element (v5.x) (#44494) @jukkatupamaki
|
|
67
|
+
|
|
68
|
+
### Docs
|
|
69
|
+
|
|
70
|
+
- Keep sponsors up to date @oliviertassinari
|
|
71
|
+
- Fix MUI Treasury Layout broken links (#43753) @oliviertassinari
|
|
72
|
+
- Strengthen CSP rule @oliviertassinari
|
|
73
|
+
- Give up on restoring search @oliviertassinari
|
|
74
|
+
- Normalize next major message @oliviertassinari
|
|
75
|
+
- Fix versions URL @oliviertassinari
|
|
76
|
+
- Fix use of absolute URLs (#43567) @oliviertassinari
|
|
77
|
+
- Restore search on v5 (#43566) @oliviertassinari
|
|
78
|
+
- Fix link from v5 to v6 (#43585) @alexfauquette
|
|
79
|
+
- Updated mui-x roadmap links with the new project URL (@michelengelen) (#43446) @michelengelen
|
|
80
|
+
- Fix broken link to Next.js docs @oliviertassinari
|
|
81
|
+
|
|
82
|
+
### Core
|
|
83
|
+
|
|
84
|
+
- [blog] Polish Upcoming changes to MUI X pricing in 2024 (#43438) @oliviertassinari
|
|
85
|
+
- [blog] Add video to the Pigment CSS blog post (#42500) @oliviertassinari
|
|
86
|
+
- [blog] Announcing pricing changes Sep 2024 (#43272) @cherniavskii
|
|
87
|
+
- Prepare for moving to v5.x branch (#43447) @siriwatknp
|
|
88
|
+
- [core] Cherry pick #42346 to v5 (#44475) @DiegoAndai
|
|
89
|
+
- [core] Fix CI on v5.x branch (#44487) @DiegoAndai
|
|
90
|
+
- [core] Fix CI on v5.x branch (#43564) @oliviertassinari
|
|
91
|
+
- [examples] Fix v5 clone example instructions (#43755) @oliviertassinari
|
|
92
|
+
- [examples] Fix CLI download instructions @oliviertassinari
|
|
93
|
+
- [examples] Fix CDN live preview example @oliviertassinari
|
|
94
|
+
- [examples] Fix more examples to work with v5 @oliviertassinari
|
|
95
|
+
- [examples] Freeze examples dependency range (#43435) @oliviertassinari
|
|
96
|
+
|
|
97
|
+
All contributors of this release in alphabetical order: @alexfauquette, @cherniavskii, @DiegoAndai, @jukkatupamaki, @michelengelen, @oliviertassinari, @rluzists1, @siriwatknp
|
|
98
|
+
|
|
3
99
|
## 5.16.7
|
|
4
100
|
|
|
5
101
|
<!-- generated comparing v5.16.6..master -->
|
package/README.md
CHANGED
|
@@ -16,4 +16,4 @@ npm install @mui/system @emotion/react @emotion/styled
|
|
|
16
16
|
|
|
17
17
|
<!-- #default-branch-switch -->
|
|
18
18
|
|
|
19
|
-
Visit [https://mui.com/system/getting-started/](https://mui.com/system/getting-started/) to view the full documentation.
|
|
19
|
+
Visit [https://v5.mui.com/system/getting-started/](https://v5.mui.com/system/getting-started/) to view the full documentation.
|
package/Stack/createStack.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface StyleFunctionProps {
|
|
|
11
11
|
ownerState: StackOwnerState;
|
|
12
12
|
}
|
|
13
13
|
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
14
|
-
declare function useThemePropsDefault<T extends {}>(props: T): T
|
|
14
|
+
declare function useThemePropsDefault<T extends {}>(props: T): T;
|
|
15
15
|
export declare const style: ({ ownerState, theme }: StyleFunctionProps) => any;
|
|
16
16
|
export default function createStack(options?: {
|
|
17
17
|
createStyledComponent?: typeof defaultCreateStyledComponent;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { OverridableComponent } from '@mui/types';
|
|
3
3
|
import { GridTypeMap } from './GridProps';
|
|
4
4
|
declare const defaultCreateStyledComponent: import("@mui/styled-engine").CreateStyledComponent<import("../createStyled").MUIStyledCommonProps<any>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}, any>;
|
|
5
|
-
declare function useThemePropsDefault<T extends {}>(props: T): T
|
|
5
|
+
declare function useThemePropsDefault<T extends {}>(props: T): T;
|
|
6
6
|
export default function createGrid(options?: {
|
|
7
7
|
createStyledComponent?: typeof defaultCreateStyledComponent;
|
|
8
8
|
useThemeProps?: typeof useThemePropsDefault;
|
|
@@ -130,9 +130,9 @@ function createGrid(options = {}) {
|
|
|
130
130
|
}, other, {
|
|
131
131
|
children: React.Children.map(children, child => {
|
|
132
132
|
if ( /*#__PURE__*/React.isValidElement(child) && (0, _isMuiElement.default)(child, ['Grid'])) {
|
|
133
|
-
var _child$props
|
|
133
|
+
var _unstable_level, _child$props;
|
|
134
134
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
135
|
-
unstable_level: (_child$props
|
|
135
|
+
unstable_level: (_unstable_level = (_child$props = child.props) == null ? void 0 : _child$props.unstable_level) != null ? _unstable_level : level + 1
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
return child;
|
|
@@ -27,7 +27,7 @@ export declare const generateGridColumnSpacingStyles: ({ theme, ownerState }: Pr
|
|
|
27
27
|
};
|
|
28
28
|
export declare const generateGridDirectionStyles: ({ theme, ownerState }: Props) => {};
|
|
29
29
|
export declare const generateGridStyles: ({ ownerState }: Props) => {};
|
|
30
|
-
export declare const generateSizeClassNames: (gridSize: GridOwnerState[
|
|
31
|
-
export declare const generateSpacingClassNames: (spacing: GridOwnerState[
|
|
30
|
+
export declare const generateSizeClassNames: (gridSize: GridOwnerState["gridSize"]) => string[];
|
|
31
|
+
export declare const generateSpacingClassNames: (spacing: GridOwnerState["spacing"], smallestBreakpoint?: string) => string[];
|
|
32
32
|
export declare const generateDirectionClasses: (direction: ResponsiveStyleValue<GridDirection> | undefined) => string[];
|
|
33
33
|
export {};
|
|
@@ -3,5 +3,5 @@ export declare const filterBreakpointKeys: (breakpointsKeys: Breakpoint[], respo
|
|
|
3
3
|
interface Iterator<T> {
|
|
4
4
|
(appendStyle: (responsiveStyles: Record<string, any>, style: object) => void, value: T): void;
|
|
5
5
|
}
|
|
6
|
-
export declare const traverseBreakpoints: <T = unknown>(breakpoints: Breakpoints, responsive: Record<string, any> |
|
|
6
|
+
export declare const traverseBreakpoints: <T = unknown>(breakpoints: Breakpoints, responsive: T | T[] | Record<string, any> | undefined, iterator: Iterator<T>) => void;
|
|
7
7
|
export {};
|
|
@@ -90,7 +90,7 @@ export interface CreateCssVarsProviderResult<
|
|
|
90
90
|
disableStyleSheetGeneration?: boolean;
|
|
91
91
|
}
|
|
92
92
|
>,
|
|
93
|
-
) => React.
|
|
93
|
+
) => React.JSX.Element;
|
|
94
94
|
useColorScheme: () => ColorSchemeContextValue<ColorScheme>;
|
|
95
95
|
getInitColorSchemeScript: typeof InitColorSchemeScript;
|
|
96
96
|
}
|
|
@@ -5,7 +5,7 @@ interface Theme extends DefaultCssVarsTheme {
|
|
|
5
5
|
}
|
|
6
6
|
declare function createCssVarsTheme<T extends Theme, ThemeVars extends Record<string, any>>(theme: T): T & {
|
|
7
7
|
vars: ThemeVars;
|
|
8
|
-
generateCssVars: (colorScheme?: string
|
|
8
|
+
generateCssVars: (colorScheme?: string) => {
|
|
9
9
|
css: {
|
|
10
10
|
[x: string]: string | number;
|
|
11
11
|
};
|
|
@@ -18,7 +18,7 @@ type NestedRecord<V = any> = {
|
|
|
18
18
|
* assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
|
|
19
19
|
* console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
|
|
20
20
|
*/
|
|
21
|
-
export declare const assignNestedKeys: <T extends
|
|
21
|
+
export declare const assignNestedKeys: <T extends Record<string, any> | null | undefined | string = NestedRecord<any>, Value = any>(obj: T, keys: Array<string>, value: Value, arrayKeys?: Array<string>) => void;
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @param {Object} obj : source object
|
|
@@ -30,7 +30,7 @@ export declare const assignNestedKeys: <T extends string | Record<string, any> |
|
|
|
30
30
|
* walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
|
|
31
31
|
* // ['palette', 'primary', 'main'] '#000000'
|
|
32
32
|
*/
|
|
33
|
-
export declare const walkObjectDeep: <Value, T = Record<string, any>>(obj: T, callback: (keys: Array<string>, value: Value, arrayKeys: Array<string>) => void, shouldSkipPaths?: (
|
|
33
|
+
export declare const walkObjectDeep: <Value, T = Record<string, any>>(obj: T, callback: (keys: Array<string>, value: Value, arrayKeys: Array<string>) => void, shouldSkipPaths?: (keys: Array<string>) => boolean) => void;
|
|
34
34
|
/**
|
|
35
35
|
* a function that parse theme and return { css, vars }
|
|
36
36
|
*
|
|
@@ -121,9 +121,9 @@ export default function createGrid(options = {}) {
|
|
|
121
121
|
}, other, {
|
|
122
122
|
children: React.Children.map(children, child => {
|
|
123
123
|
if ( /*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid'])) {
|
|
124
|
-
var _child$props
|
|
124
|
+
var _unstable_level, _child$props;
|
|
125
125
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
126
|
-
unstable_level: (_child$props
|
|
126
|
+
unstable_level: (_unstable_level = (_child$props = child.props) == null ? void 0 : _child$props.unstable_level) != null ? _unstable_level : level + 1
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
return child;
|
package/esm/version/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const version = "5.16.
|
|
1
|
+
export const version = "5.16.12";
|
|
2
2
|
export const major = Number("5");
|
|
3
3
|
export const minor = Number("16");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("12");
|
|
5
5
|
export const preReleaseLabel = undefined || null;
|
|
6
6
|
export const preReleaseNumber = Number(undefined) || null;
|
|
7
7
|
export default version;
|
package/index.js
CHANGED
|
@@ -134,9 +134,9 @@ export default function createGrid() {
|
|
|
134
134
|
}, other, {
|
|
135
135
|
children: React.Children.map(children, function (child) {
|
|
136
136
|
if ( /*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid'])) {
|
|
137
|
-
var _child$props
|
|
137
|
+
var _unstable_level, _child$props;
|
|
138
138
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
139
|
-
unstable_level: (_child$props
|
|
139
|
+
unstable_level: (_unstable_level = (_child$props = child.props) == null ? void 0 : _child$props.unstable_level) != null ? _unstable_level : level + 1
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
return child;
|
package/legacy/index.js
CHANGED
package/legacy/version/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export var version = "5.16.
|
|
1
|
+
export var version = "5.16.12";
|
|
2
2
|
export var major = Number("5");
|
|
3
3
|
export var minor = Number("16");
|
|
4
|
-
export var patch = Number("
|
|
4
|
+
export var patch = Number("12");
|
|
5
5
|
export var preReleaseLabel = undefined || null;
|
|
6
6
|
export var preReleaseNumber = Number(undefined) || null;
|
|
7
7
|
export default version;
|
|
@@ -121,7 +121,7 @@ export default function createGrid(options = {}) {
|
|
|
121
121
|
children: React.Children.map(children, child => {
|
|
122
122
|
if ( /*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid'])) {
|
|
123
123
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
124
|
-
unstable_level: child.props
|
|
124
|
+
unstable_level: child.props?.unstable_level ?? level + 1
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
return child;
|
package/modern/index.js
CHANGED
package/modern/version/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const version = "5.16.
|
|
1
|
+
export const version = "5.16.12";
|
|
2
2
|
export const major = Number("5");
|
|
3
3
|
export const minor = Number("16");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("12");
|
|
5
5
|
export const preReleaseLabel = undefined || null;
|
|
6
6
|
export const preReleaseNumber = Number(undefined) || null;
|
|
7
7
|
export default version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "5.16.
|
|
3
|
+
"version": "5.16.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"bugs": {
|
|
21
21
|
"url": "https://github.com/mui/material-ui/issues"
|
|
22
22
|
},
|
|
23
|
-
"homepage": "https://mui.com/system/getting-started/",
|
|
23
|
+
"homepage": "https://v5.mui.com/system/getting-started/",
|
|
24
24
|
"funding": {
|
|
25
25
|
"type": "opencollective",
|
|
26
26
|
"url": "https://opencollective.com/mui-org"
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"clsx": "^2.1.0",
|
|
31
31
|
"csstype": "^3.1.3",
|
|
32
32
|
"prop-types": "^15.8.1",
|
|
33
|
+
"@mui/private-theming": "^5.16.12",
|
|
34
|
+
"@mui/styled-engine": "^5.16.12",
|
|
33
35
|
"@mui/types": "^7.2.15",
|
|
34
|
-
"@mui/
|
|
35
|
-
"@mui/utils": "^5.16.6",
|
|
36
|
-
"@mui/styled-engine": "^5.16.6"
|
|
36
|
+
"@mui/utils": "^5.16.12"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@emotion/react": "^11.5.0",
|
|
40
40
|
"@emotion/styled": "^11.3.0",
|
|
41
|
-
"@types/react": "^17.0.0 || ^18.0.0",
|
|
42
|
-
"react": "^17.0.0 || ^18.0.0"
|
|
41
|
+
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
42
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@types/react": {
|
package/version/index.js
CHANGED
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.preReleaseNumber = exports.preReleaseLabel = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "5.16.
|
|
7
|
+
const version = exports.version = "5.16.12";
|
|
8
8
|
const major = exports.major = Number("5");
|
|
9
9
|
const minor = exports.minor = Number("16");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("12");
|
|
11
11
|
const preReleaseLabel = exports.preReleaseLabel = undefined || null;
|
|
12
12
|
const preReleaseNumber = exports.preReleaseNumber = Number(undefined) || null;
|
|
13
13
|
var _default = exports.default = version;
|