@mui/system 6.4.11 → 6.4.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 +37 -0
- package/createStyled/createStyled.js +9 -4
- package/esm/createStyled/createStyled.js +9 -4
- package/esm/useMediaQuery/useMediaQuery.js +3 -0
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/modern/createStyled/createStyled.js +9 -4
- package/modern/index.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +3 -0
- package/modern/version/index.js +2 -2
- package/package.json +3 -3
- package/useMediaQuery/useMediaQuery.js +3 -0
- package/version/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 6.4.12
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.4.11..v6.x -->
|
|
6
|
+
|
|
7
|
+
_May 30, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 7 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
### `@mui/material@6.4.12`
|
|
12
|
+
|
|
13
|
+
- [Badge] Replace useSlotProps with useSlot hook (#45876) @sai6855
|
|
14
|
+
- [BottomNavigationAction] Add slots and slotProps (#45875) @sai6855
|
|
15
|
+
- [CardActionArea] Add slots and slotProps (#45877) @sai6855
|
|
16
|
+
- [OutlinedInput] Add missing `notchedOutline` slot (#45938) @siriwatknp
|
|
17
|
+
- [useMediaQuery] Add warning and docs for using `useMediaQuery('print')` (#45886) @good-jinu
|
|
18
|
+
- Fix theme object changes between renders (#45874) @siriwatknp
|
|
19
|
+
|
|
20
|
+
### `@mui/material-nextjs@6.4.12`
|
|
21
|
+
|
|
22
|
+
- Do not wrap `@layer` order rules in App Router (#45870) @Nayeem-XTREME
|
|
23
|
+
|
|
24
|
+
### `@mui/system@6.4.12`
|
|
25
|
+
|
|
26
|
+
- Skip styled component from being transformed (#46184) @siriwatknp
|
|
27
|
+
|
|
28
|
+
### Docs
|
|
29
|
+
|
|
30
|
+
- [Dialog] Remove deprecated props usage in demos (#45928) @sai6855
|
|
31
|
+
- [Grid] Update grid migration guide (#46153) @sai6855
|
|
32
|
+
- [Menu] Update `paper` slot JSDoc default from `Paper` to `PopoverPaper` (@andreachiera) (#45865) @andreachiera
|
|
33
|
+
- Update CSS variable usage in migration guide for Pigment CSS (#46038) @sai6855
|
|
34
|
+
- Remove outdated StackOverflow tag (9b9f96b) @oliviertassinari
|
|
35
|
+
- Update `@mui/icons-material` install command to use 6.x version (#45810) @Nickknack
|
|
36
|
+
- Add AccordionSummary to the breaking change migration (#45973) @siriwatknp
|
|
37
|
+
|
|
38
|
+
All contributors of this release in alphabetical order: @andreachiera, @good-jinu, @Nayeem-XTREME, @Nickknack, @oliviertassinari, @sai6855, @siriwatknp
|
|
39
|
+
|
|
3
40
|
## 6.4.11
|
|
4
41
|
|
|
5
42
|
_Apr 9, 2025_
|
|
@@ -150,10 +150,15 @@ function createStyled(input = {}) {
|
|
|
150
150
|
...options
|
|
151
151
|
});
|
|
152
152
|
const transformStyle = style => {
|
|
153
|
-
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
154
|
-
//
|
|
155
|
-
//
|
|
156
|
-
|
|
153
|
+
// - On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
154
|
+
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
155
|
+
// which are basically components used as a selectors.
|
|
156
|
+
// - `style` could be a styled component from a babel plugin for component selectors, This condition
|
|
157
|
+
// makes sure that we do not interpolate them.
|
|
158
|
+
if (style.__emotion_real === style) {
|
|
159
|
+
return style;
|
|
160
|
+
}
|
|
161
|
+
if (typeof style === 'function') {
|
|
157
162
|
return function styleFunctionProcessor(props) {
|
|
158
163
|
return processStyle(props, style);
|
|
159
164
|
};
|
|
@@ -141,10 +141,15 @@ export default function createStyled(input = {}) {
|
|
|
141
141
|
...options
|
|
142
142
|
});
|
|
143
143
|
const transformStyle = style => {
|
|
144
|
-
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
|
|
144
|
+
// - On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
145
|
+
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
146
|
+
// which are basically components used as a selectors.
|
|
147
|
+
// - `style` could be a styled component from a babel plugin for component selectors, This condition
|
|
148
|
+
// makes sure that we do not interpolate them.
|
|
149
|
+
if (style.__emotion_real === style) {
|
|
150
|
+
return style;
|
|
151
|
+
}
|
|
152
|
+
if (typeof style === 'function') {
|
|
148
153
|
return function styleFunctionProcessor(props) {
|
|
149
154
|
return processStyle(props, style);
|
|
150
155
|
};
|
|
@@ -102,6 +102,9 @@ export function unstable_createUseMediaQuery(params = {}) {
|
|
|
102
102
|
}
|
|
103
103
|
let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
104
104
|
query = query.replace(/^@media( ?)/m, '');
|
|
105
|
+
if (query.includes('print')) {
|
|
106
|
+
console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, 'Using the print media query to modify print styles can lead to unexpected results.', 'Consider using the `displayPrint` field in the `sx` prop instead.', 'More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.'].join('\n'));
|
|
107
|
+
}
|
|
105
108
|
const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
|
|
106
109
|
const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
|
|
107
110
|
if (process.env.NODE_ENV !== 'production') {
|
package/esm/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.4.
|
|
1
|
+
export const version = "6.4.12";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("4");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("12");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/index.js
CHANGED
|
@@ -141,10 +141,15 @@ export default function createStyled(input = {}) {
|
|
|
141
141
|
...options
|
|
142
142
|
});
|
|
143
143
|
const transformStyle = style => {
|
|
144
|
-
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
|
|
144
|
+
// - On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
145
|
+
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
146
|
+
// which are basically components used as a selectors.
|
|
147
|
+
// - `style` could be a styled component from a babel plugin for component selectors, This condition
|
|
148
|
+
// makes sure that we do not interpolate them.
|
|
149
|
+
if (style.__emotion_real === style) {
|
|
150
|
+
return style;
|
|
151
|
+
}
|
|
152
|
+
if (typeof style === 'function') {
|
|
148
153
|
return function styleFunctionProcessor(props) {
|
|
149
154
|
return processStyle(props, style);
|
|
150
155
|
};
|
package/modern/index.js
CHANGED
|
@@ -102,6 +102,9 @@ export function unstable_createUseMediaQuery(params = {}) {
|
|
|
102
102
|
}
|
|
103
103
|
let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
104
104
|
query = query.replace(/^@media( ?)/m, '');
|
|
105
|
+
if (query.includes('print')) {
|
|
106
|
+
console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, 'Using the print media query to modify print styles can lead to unexpected results.', 'Consider using the `displayPrint` field in the `sx` prop instead.', 'More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.'].join('\n'));
|
|
107
|
+
}
|
|
105
108
|
const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
|
|
106
109
|
const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
|
|
107
110
|
if (process.env.NODE_ENV !== 'production') {
|
package/modern/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.4.
|
|
1
|
+
export const version = "6.4.12";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("4");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("12");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.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.",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"clsx": "^2.1.1",
|
|
31
31
|
"csstype": "^3.1.3",
|
|
32
32
|
"prop-types": "^15.8.1",
|
|
33
|
-
"@mui/private-theming": "^6.4.9",
|
|
34
|
-
"@mui/styled-engine": "^6.4.11",
|
|
35
33
|
"@mui/types": "~7.2.24",
|
|
34
|
+
"@mui/styled-engine": "^6.4.11",
|
|
35
|
+
"@mui/private-theming": "^6.4.9",
|
|
36
36
|
"@mui/utils": "^6.4.9"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -110,6 +110,9 @@ function unstable_createUseMediaQuery(params = {}) {
|
|
|
110
110
|
}
|
|
111
111
|
let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;
|
|
112
112
|
query = query.replace(/^@media( ?)/m, '');
|
|
113
|
+
if (query.includes('print')) {
|
|
114
|
+
console.warn([`MUI: You have provided a \`print\` query to the \`useMediaQuery\` hook.`, 'Using the print media query to modify print styles can lead to unexpected results.', 'Consider using the `displayPrint` field in the `sx` prop instead.', 'More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print.'].join('\n'));
|
|
115
|
+
}
|
|
113
116
|
const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;
|
|
114
117
|
const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);
|
|
115
118
|
if (process.env.NODE_ENV !== 'production') {
|
package/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "6.4.
|
|
7
|
+
const version = exports.version = "6.4.12";
|
|
8
8
|
const major = exports.major = Number("6");
|
|
9
9
|
const minor = exports.minor = Number("4");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("12");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|