@mui/material 6.4.4 → 6.4.5

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/Button/Button.js CHANGED
@@ -501,9 +501,9 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
501
501
  variant = 'text',
502
502
  ...other
503
503
  } = props;
504
- const id = useId(idProp);
504
+ const loadingId = useId(idProp);
505
505
  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
506
- "aria-labelledby": id,
506
+ "aria-labelledby": loadingId,
507
507
  color: "inherit",
508
508
  size: 16
509
509
  });
@@ -563,7 +563,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
563
563
  focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
564
564
  ref: ref,
565
565
  type: type,
566
- id: id,
566
+ id: loading ? loadingId : idProp,
567
567
  ...other,
568
568
  classes: classes,
569
569
  children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 6.4.5
4
+
5
+ <!-- generated comparing v6.4.4..v6.x -->
6
+
7
+ _Feb 18, 2025_
8
+
9
+ A big thanks to the 5 contributors who made this release possible.
10
+
11
+ ### `@mui/material@6.4.5`
12
+
13
+ - [Autocomplete] Remove legacy `aria-owns` attribute for combobox (#45303) @ZeeshanTamboli
14
+ - [Button] Apply id only if loading indicator is present (#45339) @aarongarciah
15
+
16
+ ### Docs
17
+
18
+ - [icons] Fix typo in material-icons.md (#45336) @a-s-russo
19
+ - [Menu] Add Grouped Menu demo (#45292) @noobDev31
20
+
21
+ ### Core
22
+
23
+ - [blog] Consistent Base UI terminology (#45342) @aarongarciah
24
+ - Fix double redirection to Base UI (#45146) @oliviertassinari
25
+
26
+ All contributors of this release in alphabetical order: @a-s-russo, @aarongarciah, @noobDev31, @oliviertassinari, @ZeeshanTamboli
27
+
3
28
  ## 6.4.4
4
29
 
5
30
  <!-- generated comparing v6.4.3..v6.x -->
@@ -193,9 +193,9 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
193
193
  loadingIndicator: loadingIndicatorProp,
194
194
  ...other
195
195
  } = props;
196
- const id = useId(idProp);
196
+ const loadingId = useId(idProp);
197
197
  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
198
- "aria-labelledby": id,
198
+ "aria-labelledby": loadingId,
199
199
  color: "inherit",
200
200
  size: 16
201
201
  });
@@ -211,7 +211,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
211
211
  };
212
212
  const classes = useUtilityClasses(ownerState);
213
213
  return /*#__PURE__*/_jsxs(IconButtonRoot, {
214
- id: id,
214
+ id: loading ? loadingId : idProp,
215
215
  className: clsx(classes.root, className),
216
216
  centerRipple: true,
217
217
  focusRipple: !disableFocusRipple,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.4.4
2
+ * @mui/material v6.4.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -501,9 +501,9 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
501
501
  variant = 'text',
502
502
  ...other
503
503
  } = props;
504
- const id = useId(idProp);
504
+ const loadingId = useId(idProp);
505
505
  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
506
- "aria-labelledby": id,
506
+ "aria-labelledby": loadingId,
507
507
  color: "inherit",
508
508
  size: 16
509
509
  });
@@ -563,7 +563,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
563
563
  focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
564
564
  ref: ref,
565
565
  type: type,
566
- id: id,
566
+ id: loading ? loadingId : idProp,
567
567
  ...other,
568
568
  classes: classes,
569
569
  children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]
@@ -193,9 +193,9 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
193
193
  loadingIndicator: loadingIndicatorProp,
194
194
  ...other
195
195
  } = props;
196
- const id = useId(idProp);
196
+ const loadingId = useId(idProp);
197
197
  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
198
- "aria-labelledby": id,
198
+ "aria-labelledby": loadingId,
199
199
  color: "inherit",
200
200
  size: 16
201
201
  });
@@ -211,7 +211,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
211
211
  };
212
212
  const classes = useUtilityClasses(ownerState);
213
213
  return /*#__PURE__*/_jsxs(IconButtonRoot, {
214
- id: id,
214
+ id: loading ? loadingId : idProp,
215
215
  className: clsx(classes.root, className),
216
216
  centerRipple: true,
217
217
  focusRipple: !disableFocusRipple,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.4.4
2
+ * @mui/material v6.4.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -877,7 +877,6 @@ function useAutocomplete(props) {
877
877
  }
878
878
  return {
879
879
  getRootProps: (other = {}) => ({
880
- 'aria-owns': listboxAvailable ? `${id}-listbox` : null,
881
880
  ...other,
882
881
  onKeyDown: handleKeyDown(other),
883
882
  onMouseDown: handleMouseDown,
@@ -1,6 +1,6 @@
1
- export const version = "6.4.4";
1
+ export const version = "6.4.5";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("4");
4
- export const patch = Number("4");
4
+ export const patch = Number("5");
5
5
  export const prerelease = undefined;
6
6
  export default version;
@@ -508,9 +508,9 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
508
508
  variant = 'text',
509
509
  ...other
510
510
  } = props;
511
- const id = (0, _utils.unstable_useId)(idProp);
511
+ const loadingId = (0, _utils.unstable_useId)(idProp);
512
512
  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
513
- "aria-labelledby": id,
513
+ "aria-labelledby": loadingId,
514
514
  color: "inherit",
515
515
  size: 16
516
516
  });
@@ -570,7 +570,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
570
570
  focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
571
571
  ref: ref,
572
572
  type: type,
573
- id: id,
573
+ id: loading ? loadingId : idProp,
574
574
  ...other,
575
575
  classes: classes,
576
576
  children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]
@@ -200,9 +200,9 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
200
200
  loadingIndicator: loadingIndicatorProp,
201
201
  ...other
202
202
  } = props;
203
- const id = (0, _utils.unstable_useId)(idProp);
203
+ const loadingId = (0, _utils.unstable_useId)(idProp);
204
204
  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
205
- "aria-labelledby": id,
205
+ "aria-labelledby": loadingId,
206
206
  color: "inherit",
207
207
  size: 16
208
208
  });
@@ -218,7 +218,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
218
218
  };
219
219
  const classes = useUtilityClasses(ownerState);
220
220
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(IconButtonRoot, {
221
- id: id,
221
+ id: loading ? loadingId : idProp,
222
222
  className: (0, _clsx.default)(classes.root, className),
223
223
  centerRipple: true,
224
224
  focusRipple: !disableFocusRipple,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.4.4
2
+ * @mui/material v6.4.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -883,7 +883,6 @@ function useAutocomplete(props) {
883
883
  }
884
884
  return {
885
885
  getRootProps: (other = {}) => ({
886
- 'aria-owns': listboxAvailable ? `${id}-listbox` : null,
887
886
  ...other,
888
887
  onKeyDown: handleKeyDown(other),
889
888
  onMouseDown: handleMouseDown,
@@ -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.4";
7
+ const version = exports.version = "6.4.5";
8
8
  const major = exports.major = Number("6");
9
9
  const minor = exports.minor = Number("4");
10
- const patch = exports.patch = Number("4");
10
+ const patch = exports.patch = Number("5");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "6.4.4",
3
+ "version": "6.4.5",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
@@ -35,10 +35,10 @@
35
35
  "prop-types": "^15.8.1",
36
36
  "react-is": "^19.0.0",
37
37
  "react-transition-group": "^4.4.5",
38
- "@mui/core-downloads-tracker": "^6.4.4",
38
+ "@mui/core-downloads-tracker": "^6.4.5",
39
39
  "@mui/system": "^6.4.3",
40
- "@mui/utils": "^6.4.3",
41
- "@mui/types": "^7.2.21"
40
+ "@mui/types": "^7.2.21",
41
+ "@mui/utils": "^6.4.3"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@emotion/react": "^11.5.0",
@@ -877,7 +877,6 @@ function useAutocomplete(props) {
877
877
  }
878
878
  return {
879
879
  getRootProps: (other = {}) => ({
880
- 'aria-owns': listboxAvailable ? `${id}-listbox` : null,
881
880
  ...other,
882
881
  onKeyDown: handleKeyDown(other),
883
882
  onMouseDown: handleMouseDown,
package/version/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export const version = "6.4.4";
1
+ export const version = "6.4.5";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("4");
4
- export const patch = Number("4");
4
+ export const patch = Number("5");
5
5
  export const prerelease = undefined;
6
6
  export default version;