@mui/system 6.1.7 → 6.1.8
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 +53 -0
- package/cssVars/createCssVarsProvider.js +7 -2
- package/esm/cssVars/createCssVarsProvider.js +7 -2
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/modern/cssVars/createCssVarsProvider.js +7 -2
- package/modern/index.js +1 -1
- package/modern/version/index.js +2 -2
- package/package.json +4 -4
- package/version/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.1.8
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.1.7..master -->
|
|
6
|
+
|
|
7
|
+
_Nov 20, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 10 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
TODO INSERT HIGHLIGHTS
|
|
12
|
+
|
|
13
|
+
### `@mui/material@6.1.8`
|
|
14
|
+
|
|
15
|
+
- [Autocomplete] Use `ul` element for the listbox (#44422) @DiegoAndai
|
|
16
|
+
- [Grid2] Remove item and zeroMinWidth classes from grid2Classes (#44419) @sai6855
|
|
17
|
+
- [StepIcon] Add SvgIconOwnProps type to StepIcon props (#44337) @sai6855
|
|
18
|
+
- Add generic back to `useMediaQuery` to prevent a breaking change (#44455) @siriwatknp
|
|
19
|
+
- [Tooltip] Deprecate `*Component` and `*Props` for v6 (#44350) @siriwatknp
|
|
20
|
+
|
|
21
|
+
### `@mui/system@6.1.8`
|
|
22
|
+
|
|
23
|
+
- Warn when calling `setMode` without configuring `colorSchemeSelector` (#43783) @siriwatknp
|
|
24
|
+
|
|
25
|
+
### `@mui/styled-engine@6.1.8`
|
|
26
|
+
|
|
27
|
+
- Add back removed internal function (#44421) @mnajdova
|
|
28
|
+
|
|
29
|
+
### `@mui/utils@6.1.8`
|
|
30
|
+
|
|
31
|
+
- Skip deep clone React element (#44400) @siriwatknp
|
|
32
|
+
- Add documentation to `useForkRef` (#44410) @JCQuintas
|
|
33
|
+
|
|
34
|
+
### Docs
|
|
35
|
+
|
|
36
|
+
- [Accordion] Replace hardcoded classes with constants in demos (#44453) @ZeeshanTamboli
|
|
37
|
+
- [material-ui][Autocomplete] Fix virtualization demo (#44382) @DiegoAndai
|
|
38
|
+
- Revert #44388 (#44454) @prakhargupta1
|
|
39
|
+
- Add App starters in related-projects.md (#44315) @oliviertassinari
|
|
40
|
+
- Bring back `*Component` and `*Props` codemods and deprecation messages (#44383) @DiegoAndai
|
|
41
|
+
- [docs] Copyedit Templates page (#44461) @samuelsycamore
|
|
42
|
+
|
|
43
|
+
### Core
|
|
44
|
+
|
|
45
|
+
- Remove `stylis-plugin-rtl-sc` (#44447) @renovate[bot]
|
|
46
|
+
- [test][Autocomplete] Make virtualize regression screenshots deterministic (#44425) @DiegoAndai
|
|
47
|
+
- [blog] Fix reference to subdomain on MUI X v8 alpha zero post (#44416) @joserodolfofreitas
|
|
48
|
+
- [blog] MUI X v8 alpha zero blog post (#44377) @joserodolfofreitas
|
|
49
|
+
- [code-infra] Use vitest-compatible skip in `describeConformance` (#44412) @JCQuintas
|
|
50
|
+
- Keep OpenSSF badge up-to-date (aef2bf2) @oliviertassinari
|
|
51
|
+
- Polish useForkRef docs (#44424) @oliviertassinari
|
|
52
|
+
- [infra] Upgrade Cherry-pick workflow to latest (#44448) @oliviertassinari
|
|
53
|
+
|
|
54
|
+
All contributors of this release in alphabetical order: @DiegoAndai, @JCQuintas, @joserodolfofreitas, @mnajdova, @oliviertassinari, @prakhargupta1, @sai6855, samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
55
|
+
|
|
3
56
|
## v6.1.7
|
|
4
57
|
|
|
5
58
|
<!-- generated comparing v6.1.6..master -->
|
|
@@ -217,9 +217,14 @@ function createCssVarsProvider(options) {
|
|
|
217
217
|
lightColorScheme,
|
|
218
218
|
mode,
|
|
219
219
|
setColorScheme,
|
|
220
|
-
setMode
|
|
220
|
+
setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {
|
|
221
|
+
if (theme.colorSchemeSelector === 'media') {
|
|
222
|
+
console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\n'));
|
|
223
|
+
}
|
|
224
|
+
setMode(newMode);
|
|
225
|
+
},
|
|
221
226
|
systemMode
|
|
222
|
-
}), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);
|
|
227
|
+
}), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, theme.colorSchemeSelector]);
|
|
223
228
|
let shouldGenerateStyleSheet = true;
|
|
224
229
|
if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {
|
|
225
230
|
shouldGenerateStyleSheet = false;
|
|
@@ -208,9 +208,14 @@ export default function createCssVarsProvider(options) {
|
|
|
208
208
|
lightColorScheme,
|
|
209
209
|
mode,
|
|
210
210
|
setColorScheme,
|
|
211
|
-
setMode
|
|
211
|
+
setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {
|
|
212
|
+
if (theme.colorSchemeSelector === 'media') {
|
|
213
|
+
console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\n'));
|
|
214
|
+
}
|
|
215
|
+
setMode(newMode);
|
|
216
|
+
},
|
|
212
217
|
systemMode
|
|
213
|
-
}), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);
|
|
218
|
+
}), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, theme.colorSchemeSelector]);
|
|
214
219
|
let shouldGenerateStyleSheet = true;
|
|
215
220
|
if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {
|
|
216
221
|
shouldGenerateStyleSheet = false;
|
package/esm/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.1.
|
|
1
|
+
export const version = "6.1.8";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("1");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("8");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
package/index.js
CHANGED
|
@@ -208,9 +208,14 @@ export default function createCssVarsProvider(options) {
|
|
|
208
208
|
lightColorScheme,
|
|
209
209
|
mode,
|
|
210
210
|
setColorScheme,
|
|
211
|
-
setMode
|
|
211
|
+
setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {
|
|
212
|
+
if (theme.colorSchemeSelector === 'media') {
|
|
213
|
+
console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\n'));
|
|
214
|
+
}
|
|
215
|
+
setMode(newMode);
|
|
216
|
+
},
|
|
212
217
|
systemMode
|
|
213
|
-
}), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);
|
|
218
|
+
}), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, theme.colorSchemeSelector]);
|
|
214
219
|
let shouldGenerateStyleSheet = true;
|
|
215
220
|
if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {
|
|
216
221
|
shouldGenerateStyleSheet = false;
|
package/modern/index.js
CHANGED
package/modern/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.1.
|
|
1
|
+
export const version = "6.1.8";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("1");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("8");
|
|
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.1.
|
|
3
|
+
"version": "6.1.8",
|
|
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,10 +30,10 @@
|
|
|
30
30
|
"clsx": "^2.1.1",
|
|
31
31
|
"csstype": "^3.1.3",
|
|
32
32
|
"prop-types": "^15.8.1",
|
|
33
|
-
"@mui/private-theming": "^6.1.
|
|
33
|
+
"@mui/private-theming": "^6.1.8",
|
|
34
34
|
"@mui/types": "^7.2.19",
|
|
35
|
-
"@mui/
|
|
36
|
-
"@mui/
|
|
35
|
+
"@mui/utils": "^6.1.8",
|
|
36
|
+
"@mui/styled-engine": "^6.1.8"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@emotion/react": "^11.5.0",
|
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.1.
|
|
7
|
+
const version = exports.version = "6.1.8";
|
|
8
8
|
const major = exports.major = Number("6");
|
|
9
9
|
const minor = exports.minor = Number("1");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("8");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|