@mui/system 6.4.0 → 6.4.1

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 CHANGED
@@ -1,5 +1,47 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 6.4.1
4
+
5
+ <!-- generated comparing v6.4.0..master -->
6
+
7
+ _Jan 21, 2025_
8
+
9
+ A big thanks to the 9 contributors who made this release possible.
10
+
11
+ ### `@mui/material@6.4.1`
12
+
13
+ - [ButtonBase] Export types used in ButtonBase props (#43530) @Janpot
14
+ - [Dialog] Add slots and slotProps (#44792) @sai6855
15
+ - [Drawer] Deprecate composed classes (#44870) @yash49
16
+ - [IconButton] Set default loading to `null` (#45057) @siriwatknp
17
+ - [ListItem] Add codemod for deprecated props (#45022) @sai6855
18
+ - [Modal] Add migration guide and codemod for deprecated props (#45021) @sai6855
19
+ - [TextField] Fix filled state to be synced with autofill (#44135) @DiegoAndai
20
+
21
+ ### `@mui/system@6.4.1`
22
+
23
+ - Fix dark mode flicker using `useEnhancedEffect` (#44812) @siriwatknp
24
+
25
+ ### `@mui/utils@6.4.1`
26
+
27
+ - Do not deep merge React component (#45058) @siriwatknp
28
+
29
+ ### Docs
30
+
31
+ - Fix typo (#45070) @Fullchee
32
+ - Improve Toolpad templates section (#44914) @bharatkashyap
33
+ - Fix expand / collapse icons orientation (#44989) @zanivan
34
+ - Rename "Base UI" to "MUI Base" in all text (#45060) @mj12albert
35
+ - Add @mui/base deprecation callout (#45030) @mj12albert
36
+ - Update @mui/base deprecation message (#45064) @mj12albert
37
+
38
+ ### Core
39
+
40
+ - [code-infra] Add "use client" directive to files with React APIs (#45036) @Janpot
41
+ - [docs] 301 redirect `/base-ui` to `base-ui.com` (#45061) @mj12albert
42
+
43
+ All contributors of this release in alphabetical order: @bharatkashyap, @DiegoAndai, @Fullchee, @Janpot, @mj12albert, @sai6855, @siriwatknp, @yash49, @zanivan
44
+
3
45
  ## 6.4.0
4
46
 
5
47
  <!-- generated comparing v6.3.1..master -->
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
5
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ 'use client';
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
5
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
@@ -11,6 +12,7 @@ var React = _interopRequireWildcard(require("react"));
11
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
13
  var _styledEngine = require("@mui/styled-engine");
13
14
  var _privateTheming = require("@mui/private-theming");
15
+ var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
14
16
  var _ThemeProvider = _interopRequireDefault(require("../ThemeProvider"));
15
17
  var _InitColorSchemeScript = _interopRequireWildcard(require("../InitColorSchemeScript/InitColorSchemeScript"));
16
18
  var _useCurrentColorScheme = _interopRequireDefault(require("./useCurrentColorScheme"));
@@ -155,7 +157,7 @@ function createCssVarsProvider(options) {
155
157
  // 5. Declaring effects
156
158
  // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
157
159
  const colorSchemeSelector = restThemeProp.colorSchemeSelector;
158
- React.useEffect(() => {
160
+ (0, _useEnhancedEffect.default)(() => {
159
161
  if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {
160
162
  const selector = colorSchemeSelector;
161
163
  let rule = colorSchemeSelector;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,10 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import { GlobalStyles } from '@mui/styled-engine';
4
6
  import { useTheme as muiUseTheme } from '@mui/private-theming';
7
+ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
5
8
  import ThemeProvider from "../ThemeProvider/index.js";
6
9
  import InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from "../InitColorSchemeScript/InitColorSchemeScript.js";
7
10
  import useCurrentColorScheme from "./useCurrentColorScheme.js";
@@ -146,7 +149,7 @@ export default function createCssVarsProvider(options) {
146
149
  // 5. Declaring effects
147
150
  // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
148
151
  const colorSchemeSelector = restThemeProp.colorSchemeSelector;
149
- React.useEffect(() => {
152
+ useEnhancedEffect(() => {
150
153
  if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {
151
154
  const selector = colorSchemeSelector;
152
155
  let rule = colorSchemeSelector;
@@ -1,6 +1,6 @@
1
- export const version = "6.4.0";
1
+ export const version = "6.4.1";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("4");
4
- export const patch = Number("0");
4
+ export const patch = Number("1");
5
5
  export const prerelease = undefined;
6
6
  export default version;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v6.4.0
2
+ * @mui/system v6.4.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,10 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import { GlobalStyles } from '@mui/styled-engine';
4
6
  import { useTheme as muiUseTheme } from '@mui/private-theming';
7
+ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
5
8
  import ThemeProvider from "../ThemeProvider/index.js";
6
9
  import InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from "../InitColorSchemeScript/InitColorSchemeScript.js";
7
10
  import useCurrentColorScheme from "./useCurrentColorScheme.js";
@@ -146,7 +149,7 @@ export default function createCssVarsProvider(options) {
146
149
  // 5. Declaring effects
147
150
  // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
148
151
  const colorSchemeSelector = restThemeProp.colorSchemeSelector;
149
- React.useEffect(() => {
152
+ useEnhancedEffect(() => {
150
153
  if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {
151
154
  const selector = colorSchemeSelector;
152
155
  let rule = colorSchemeSelector;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v6.4.0
2
+ * @mui/system v6.4.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,6 +1,6 @@
1
- export const version = "6.4.0";
1
+ export const version = "6.4.1";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("4");
4
- export const patch = Number("0");
4
+ export const patch = Number("1");
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.0",
3
+ "version": "6.4.1",
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.4.0",
34
- "@mui/styled-engine": "^6.4.0",
33
+ "@mui/utils": "^6.4.1",
35
34
  "@mui/types": "^7.2.21",
36
- "@mui/utils": "^6.4.0"
35
+ "@mui/private-theming": "^6.4.1",
36
+ "@mui/styled-engine": "^6.4.0"
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.4.0";
7
+ const version = exports.version = "6.4.1";
8
8
  const major = exports.major = Number("6");
9
9
  const minor = exports.minor = Number("4");
10
- const patch = exports.patch = Number("0");
10
+ const patch = exports.patch = Number("1");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;