@mui/utils 9.3.0 → 9.4.0
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,92 @@
|
|
|
1
1
|
# [Versions](https://mui.com/material-ui/getting-started/versions/)
|
|
2
2
|
|
|
3
|
+
## 9.4.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v9.3.1..master -->
|
|
6
|
+
|
|
7
|
+
_Aug 27, 2026_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- ♿️ Opt in to a consistent [keyboard focus ring](https://mui.com/material-ui/customization/focus-visible/) across components with the new `theme.focusVisible`.
|
|
12
|
+
- ♿️ The [Tooltip](https://mui.com/material-ui/react-tooltip/) now supports disabled button triggers without an extra wrapper element.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@9.4.0`
|
|
15
|
+
|
|
16
|
+
- [theme] Add `theme.focusVisible` opt-in keyboard focus ring (#48743) @siriwatknp
|
|
17
|
+
- [buttongroup] Prevent sticky hover border on touch devices (#48993) @petr-kratochvil
|
|
18
|
+
- [l10n] Complete Traditional Chinese localization (#48946) @nrps9909
|
|
19
|
+
- [menulist] Preserve custom list padding when adjusting for the scrollbar (#48707) @creazyfrog
|
|
20
|
+
- [pagination] Manage focus whenever first / last / next / previous buttons become disabled (#48877) @silviuaavram
|
|
21
|
+
- [tooltip] Improve support for disabled button triggers (#48622) @mayank99
|
|
22
|
+
|
|
23
|
+
### `@mui/utils@9.4.0`
|
|
24
|
+
|
|
25
|
+
- Fix resolveProps to correctly merge slotProps defined as functions (#48955) @mnajdova
|
|
26
|
+
- Replace deprecated `clip` CSS property with `clip-path` (#48966) @ZeeshanTamboli
|
|
27
|
+
|
|
28
|
+
### `@mui/styled-engine-sc@9.4.0`
|
|
29
|
+
|
|
30
|
+
- Fix types for components extended with styled (#45988) @megos
|
|
31
|
+
|
|
32
|
+
### Docs
|
|
33
|
+
|
|
34
|
+
- Bump @docsearch/react to ^4.7.0 (#48886) @LukasTy
|
|
35
|
+
- Fix broken links reported by Ahrefs (#48949) @brijeshb42
|
|
36
|
+
- Manage focus on Open in Chat button click (#48942) @silviuaavram
|
|
37
|
+
- Move focus to the main content with the skip link (#48944) @lazerg
|
|
38
|
+
- Use relative link for LICENSE in README (#49040) @loulanyue
|
|
39
|
+
- [autocomplete] Remove the "aria-owns" reference (#48958) @silviuaavram
|
|
40
|
+
- [table] Fix wrong number of rows reported to screen readers (#47653) @seomsoo
|
|
41
|
+
- [table] Reference DataGrid link in the row header section (#48988) @silviuaavram
|
|
42
|
+
- [table] Use and document the row header cells (#48965) @silviuaavram
|
|
43
|
+
- [tabs] Make tab panel focusable and show keep mounted examples (#48939) @silviuaavram
|
|
44
|
+
- [templates] Remove focusable links from hidden carousel slides (#49003) @gonzoblasco
|
|
45
|
+
|
|
46
|
+
### Core
|
|
47
|
+
|
|
48
|
+
- [code-infra] Fix team sync review requests (#48914) @brijeshb42
|
|
49
|
+
- [code-infra] Import the test globals from vitest (#49033) @JCQuintas
|
|
50
|
+
- [code-infra] Point the support validator link at frontend-public (#49041) @Janpot
|
|
51
|
+
- [code-infra] Update CircleCI orb (#49030) @Janpot
|
|
52
|
+
- [code-infra] Use ESM current directory syntax for Vitest config (#49032) @ZeeshanTamboli
|
|
53
|
+
- [core] Use @typescript/typescript6 for the docs tooling (#49025) @Janpot
|
|
54
|
+
- [core-docs] Remove the `globalSelector` stylis middleware (#49029) @Janpot
|
|
55
|
+
- [test] Add an `assertions` mode to the axe regression harness (#48915) @michelengelen
|
|
56
|
+
- [test] Automate the CSS-dependent WCAG criteria (#48936) @michelengelen
|
|
57
|
+
- [test] Fail the regression run when a webfont does not load (#48948) @LukasTy
|
|
58
|
+
- [test] Fix typo 'overriden' -> 'overridden' in Alert test comment (#48987) @FirmaSpring
|
|
59
|
+
- [test] Replace webfontloader with the CSS Font Loading API (#48995) @LukasTy
|
|
60
|
+
- [test] Skip the CrudDashboard VRT on React 18 (#49027) @Janpot
|
|
61
|
+
- [test] Use the shared loadFonts from @mui/internal-test-utils (#49007) @LukasTy
|
|
62
|
+
- [test] Use the Vitest global expect instead of importing chai (#48996) @JCQuintas
|
|
63
|
+
- [test][tooltip] Keep the disabled trigger away from the real pointer (#48947) @LukasTy
|
|
64
|
+
|
|
65
|
+
All contributors of this release in alphabetical order: @brijeshb42, @creazyfrog, @FirmaSpring, @gonzoblasco, @Janpot, @JCQuintas, @lazerg, @loulanyue, @LukasTy, @mayank99, @megos, @michelengelen, @mnajdova, @nrps9909, @petr-kratochvil, @seomsoo, @silviuaavram, @siriwatknp, @ZeeshanTamboli
|
|
66
|
+
|
|
67
|
+
## 9.3.1
|
|
68
|
+
|
|
69
|
+
<!-- generated comparing v9.3.0..master -->
|
|
70
|
+
|
|
71
|
+
_Aug 6, 2026_
|
|
72
|
+
|
|
73
|
+
A big thanks to the 4 contributors who made this release possible.
|
|
74
|
+
|
|
75
|
+
### `@mui/material@9.3.1`
|
|
76
|
+
|
|
77
|
+
- [transitions] Prevent exit transitions from getting stuck (#48881) @ZeeshanTamboli
|
|
78
|
+
|
|
79
|
+
### `@mui/codemod@9.3.1`
|
|
80
|
+
|
|
81
|
+
- Include transforms in published package (#48934) @brijeshb42
|
|
82
|
+
|
|
83
|
+
### Core
|
|
84
|
+
|
|
85
|
+
- [blog] Clarify early bird renewal discount scope (#48906) @DanailH
|
|
86
|
+
- [test][pagination] Add more unit tests (#48927) @silviuaavram
|
|
87
|
+
|
|
88
|
+
All contributors of this release in alphabetical order: @brijeshb42, @DanailH, @silviuaavram, @ZeeshanTamboli
|
|
89
|
+
|
|
3
90
|
## 9.3.0
|
|
4
91
|
|
|
5
92
|
<!-- generated comparing v9.2.0..master -->
|
package/index.js
CHANGED
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/utils",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Utility functions for React components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"clsx": "^2.1.1",
|
|
30
30
|
"prop-types": "^15.8.1",
|
|
31
31
|
"react-is": "^19.2.8",
|
|
32
|
-
"@mui/types": "^9.
|
|
32
|
+
"@mui/types": "^9.4.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
@@ -41,7 +41,15 @@ function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {
|
|
|
41
41
|
for (const slotKey in defaultSlotProps) {
|
|
42
42
|
if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
|
|
43
43
|
const slotPropName = slotKey;
|
|
44
|
-
|
|
44
|
+
const defaultSlotPropValue = defaultSlotProps[slotPropName];
|
|
45
|
+
const slotPropValue = slotProps[slotPropName];
|
|
46
|
+
if (typeof defaultSlotPropValue === 'function' || typeof slotPropValue === 'function') {
|
|
47
|
+
// Function slot props are resolved later (with `ownerState`), so defer
|
|
48
|
+
// the merge until then to avoid dropping either side.
|
|
49
|
+
output[propName][slotPropName] = (...args) => resolveProps((typeof defaultSlotPropValue === 'function' ? defaultSlotPropValue(...args) : defaultSlotPropValue) ?? {}, (typeof slotPropValue === 'function' ? slotPropValue(...args) : slotPropValue) ?? {}, mergeClassNameAndStyle);
|
|
50
|
+
} else {
|
|
51
|
+
output[propName][slotPropName] = resolveProps(defaultSlotPropValue ?? {}, slotPropValue ?? {}, mergeClassNameAndStyle);
|
|
52
|
+
}
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
}
|
|
@@ -35,7 +35,15 @@ export default function resolveProps(defaultProps, props, mergeClassNameAndStyle
|
|
|
35
35
|
for (const slotKey in defaultSlotProps) {
|
|
36
36
|
if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
|
|
37
37
|
const slotPropName = slotKey;
|
|
38
|
-
|
|
38
|
+
const defaultSlotPropValue = defaultSlotProps[slotPropName];
|
|
39
|
+
const slotPropValue = slotProps[slotPropName];
|
|
40
|
+
if (typeof defaultSlotPropValue === 'function' || typeof slotPropValue === 'function') {
|
|
41
|
+
// Function slot props are resolved later (with `ownerState`), so defer
|
|
42
|
+
// the merge until then to avoid dropping either side.
|
|
43
|
+
output[propName][slotPropName] = (...args) => resolveProps((typeof defaultSlotPropValue === 'function' ? defaultSlotPropValue(...args) : defaultSlotPropValue) ?? {}, (typeof slotPropValue === 'function' ? slotPropValue(...args) : slotPropValue) ?? {}, mergeClassNameAndStyle);
|
|
44
|
+
} else {
|
|
45
|
+
output[propName][slotPropName] = resolveProps(defaultSlotPropValue ?? {}, slotPropValue ?? {}, mergeClassNameAndStyle);
|
|
46
|
+
}
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
49
|
}
|