@mui/private-theming 5.11.11 → 5.11.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 +144 -0
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/modern/index.js +1 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,149 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.11.12
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.11.11..master -->
|
|
6
|
+
|
|
7
|
+
_Mar 6, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- @michaldudak added the multiselect functionality to SelectUnstyled (#36274)
|
|
12
|
+
- @mnajdova updated `extendTheme` so that it can generate CSS variables with default values. This means that the `CssVarsProvider` is no longer required for Joy UI when using the default theme (#35739)
|
|
13
|
+
- other 🐛 bug fixes and 📚 documentation improvements.
|
|
14
|
+
|
|
15
|
+
### `@mui/material@5.11.12`
|
|
16
|
+
|
|
17
|
+
- ​<!-- 30 -->[Autocomplete] Fix list scrolls to the top when new data is added on touch devices (#36231) @SaidMarar
|
|
18
|
+
- ​<!-- 29 -->[Autocomplete] Add `Mui-expanded` class (#33312) @Osman-Sodefa
|
|
19
|
+
- ​<!-- 24 -->[Dialog] Use the `id` prop provided to the `DialogTitle` component (#36353) @Kundan28
|
|
20
|
+
- ​<!-- 07 -->[Menu] Fix Menu Paper styles overriding in the theme (#36316) @Paatus
|
|
21
|
+
|
|
22
|
+
### `@mui/lab@5.0.0-alpha.122`
|
|
23
|
+
|
|
24
|
+
- ​<!-- 05 -->[TreeView] Fix Tree View inside shadow root crashes (#36225) @NoFr1ends
|
|
25
|
+
|
|
26
|
+
### `@mui/system@5.11.12`
|
|
27
|
+
|
|
28
|
+
#### Breaking changes
|
|
29
|
+
|
|
30
|
+
- ​<!-- 26 -->[core] Generate vars in `extendTheme` (#35739) @mnajdova
|
|
31
|
+
|
|
32
|
+
The `shouldSkipGeneratingVar` prop was moved from the `createCssVarsProvider`'s option to the `theme`. If the default theme does not use `extendTheme` from Material UI or Joy UI, it needs to be wrapped inside `unstable_createCssVarsTheme` - a util exported from the MUI System. Below is an example of how the migration should look like:
|
|
33
|
+
|
|
34
|
+
```diff
|
|
35
|
+
import {
|
|
36
|
+
unstable_createCssVarsProvider as createCssVarsProvider,
|
|
37
|
+
+ unstable_createCssVarsTheme as createCssVarsTheme,
|
|
38
|
+
} from '@mui/system';
|
|
39
|
+
|
|
40
|
+
const { CssVarsProvider } = createCssVarsProvider({
|
|
41
|
+
- theme: {
|
|
42
|
+
+ theme: createCssVarsTheme({
|
|
43
|
+
colorSchemes: {
|
|
44
|
+
light: {
|
|
45
|
+
typography: {
|
|
46
|
+
htmlFontSize: '16px',
|
|
47
|
+
h1: {
|
|
48
|
+
fontSize: '1rem',
|
|
49
|
+
fontWeight: 500,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
+ shouldSkipGeneratingVar: (keys) => keys[0] === 'typography' && keys[1] === 'h1',
|
|
55
|
+
- },
|
|
56
|
+
+ }),
|
|
57
|
+
defaultColorScheme: 'light',
|
|
58
|
+
- shouldSkipGeneratingVar: (keys) => keys[0] === 'typography' && keys[1] === 'h1',
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Or you can define it directly in the theme prop:
|
|
63
|
+
|
|
64
|
+
```diff
|
|
65
|
+
<CssVarsProvider
|
|
66
|
+
+ theme={createCssVarsProvider({
|
|
67
|
+
+ // other theme keys
|
|
68
|
+
+ shouldSkipGeneratingVar: (keys) => keys[0] === 'typography' && keys[1] === 'h1'
|
|
69
|
+
+ })} />
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
This breaking change **only** affects experimental APIs
|
|
73
|
+
|
|
74
|
+
### `@mui/base@5.0.0-alpha.120`
|
|
75
|
+
|
|
76
|
+
#### Breaking changes
|
|
77
|
+
|
|
78
|
+
- ​<!-- 27 -->[Select][base] Add the multiselect functionality to SelectUnstyled (#36274) @michaldudak
|
|
79
|
+
|
|
80
|
+
The MultiSelectUnstyled was removed. The `SelectUnstyled` component with the `multiple` prop should be used instead. Additionally, the SelectUnstyledProps received a second generic parameter: `Multiple extends boolean`. If you deal with strictly single- or multi-select components, you can hard-code this parameter to `false` or `true`, respectively. Below is an example of how the migration should look like:
|
|
81
|
+
|
|
82
|
+
```diff
|
|
83
|
+
-import MultiSelectUnstyled from '@mui/base/MultiSelectUnstyled';
|
|
84
|
+
+import SelectUnstyled from '@mui/base/SelectUnstyled';
|
|
85
|
+
|
|
86
|
+
export default App() {
|
|
87
|
+
-return <MultiSelectUnstyled />
|
|
88
|
+
+return <SelectUnstyled multiple />
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
#### Changes
|
|
93
|
+
|
|
94
|
+
- ​<!-- 34 -->[useSnackBar] Add explicit return type (#36052) @sai6855
|
|
95
|
+
- ​<!-- 04 -->[useMenu] Fix `import type` syntax (#36411) @ZeeshanTamboli
|
|
96
|
+
- ​<!-- 03 -->[useSwitch] Add explicit return type (#36050) @sai6855
|
|
97
|
+
|
|
98
|
+
### `@mui/joy@5.0.0-alpha.70`
|
|
99
|
+
|
|
100
|
+
#### Breaking changes
|
|
101
|
+
|
|
102
|
+
- ​<!-- 09 -->[Joy] Change CSS variables naming for components (#36282) @hbjORbj
|
|
103
|
+
|
|
104
|
+
Joy UI has new naming standards of the CSS variables for its components. Below is an example of how the migration should look like:
|
|
105
|
+
|
|
106
|
+
```diff
|
|
107
|
+
-<List sx={{ py: 'var(--List-divider-gap)' }}>
|
|
108
|
+
+<List sx={{ py: 'var(--ListDivider-gap)' }}>
|
|
109
|
+
-<Switch sx={{ '--Switch-track-width': '40px' }}>
|
|
110
|
+
+<Switch sx={{ '--Switch-trackWidth': '40px' }}>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
#### Changes
|
|
114
|
+
|
|
115
|
+
- ​<!-- 28 -->[Autocomplete][joy] Add disabled class to the popup indicator (#36397) @hbjORbj
|
|
116
|
+
- ​<!-- 08 -->[Joy] Fix broken loading button in Safari (#36298) @Kuba429
|
|
117
|
+
|
|
118
|
+
### Docs
|
|
119
|
+
|
|
120
|
+
- ​<!-- 33 -->[docs][joy] Clarify when `CssVarsProvider` is required (#36410) @mnajdova
|
|
121
|
+
- ​<!-- 32 -->MUI X v6 release announcement (#36398) @joserodolfofreitas
|
|
122
|
+
- ​<!-- 23 -->[docs] Add instructions for deploying docs without a release (#36301) @cherniavskii
|
|
123
|
+
- ​<!-- 22 -->[docs] Fix 301 redirections on the docs @oliviertassinari
|
|
124
|
+
- ​<!-- 21 -->[docs] Update MUI X banner to reflect stable release (#36354) @MBilalShafi
|
|
125
|
+
- ​<!-- 20 -->[docs] Clarify the future plan for integrating MUI Base in Material UI (#36365) @mnajdova
|
|
126
|
+
- ​<!-- 19 -->[docs] Improve visual look of loose lists (#36190) @oliviertassinari
|
|
127
|
+
- ​<!-- 18 -->[docs] Fix @mui/styles example links (#36331) @oliviertassinari
|
|
128
|
+
- ​<!-- 17 -->[docs][joy] Build TS versions for List component demos (#36382) @sai6855
|
|
129
|
+
- ​<!-- 16 -->[docs][joy] Build TS versions for Radio component demos (#36406) @sai6855
|
|
130
|
+
- ​<!-- 15 -->[docs][joy] Build TS versions for Checkbox component demos (#36381) @sai6855
|
|
131
|
+
- ​<!-- 14 -->[docs][joy] Build TS versions for Select component demos (#36380) @sai6855
|
|
132
|
+
- ​<!-- 13 -->[docs][joy] Build TS versions for Typography component demos (#36378) @varunmulay22
|
|
133
|
+
- ​<!-- 12 -->[docs][joy] Add typescript demos for `Divider` (#36374) @sai6855
|
|
134
|
+
- ​<!-- 11 -->[docs][joy] Build TS versions for Textarea component demos (#36371) @varunmulay22
|
|
135
|
+
- ​<!-- 10 -->[docs][joy] Build TS versions for Link component demos (#36366) @hbjORbj
|
|
136
|
+
|
|
137
|
+
### Core
|
|
138
|
+
|
|
139
|
+
- ​<!-- 31 -->Revert "Bump rimraf to ^4.1.3" (#36420) @mnajdova
|
|
140
|
+
- ​<!-- 25 -->[core] Fix test utils types and external `buildApiUtils` usage issues (#36310) @LukasTy
|
|
141
|
+
- ​<!-- 06 -->[test] Remove duplicate `combobox` role queries in Autocomplete tests (#36394) @ZeeshanTamboli
|
|
142
|
+
- ​<!-- 02 -->[website] Clarify redistribution @oliviertassinari
|
|
143
|
+
- ​<!-- 01 -->[website] Sync /about page (#36334) @oliviertassinari
|
|
144
|
+
|
|
145
|
+
All contributors of this release in alphabetical order: @cherniavskii, @hbjORbj, @joserodolfofreitas, @Kuba429, @Kundan28, @LukasTy, @MBilalShafi, @michaldudak, @mnajdova, @NoFr1ends, @oliviertassinari, @Osman-Sodefa, @Paatus, @sai6855, @SaidMarar, @varunmulay22, @ZeeshanTamboli
|
|
146
|
+
|
|
3
147
|
## 5.11.11
|
|
4
148
|
|
|
5
149
|
<!-- generated comparing v5.11.10..master -->
|
package/index.js
CHANGED
package/legacy/index.js
CHANGED
package/modern/index.js
CHANGED
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/private-theming",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.21.0",
|
|
39
|
-
"@mui/utils": "^5.11.
|
|
39
|
+
"@mui/utils": "^5.11.12",
|
|
40
40
|
"prop-types": "^15.8.1"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|