@mui/utils 6.0.0-alpha.9 → 6.0.0-beta.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +331 -3
  2. package/getDisplayName/getDisplayName.d.ts +1 -1
  3. package/getDisplayName/getDisplayName.js +1 -1
  4. package/index.d.ts +1 -2
  5. package/index.js +2 -3
  6. package/isFocusVisible/index.d.ts +1 -0
  7. package/isFocusVisible/index.js +1 -0
  8. package/isFocusVisible/isFocusVisible.d.ts +4 -0
  9. package/isFocusVisible/isFocusVisible.js +15 -0
  10. package/{scrollLeft → isFocusVisible}/package.json +1 -1
  11. package/modern/getDisplayName/getDisplayName.js +1 -1
  12. package/modern/index.js +2 -3
  13. package/modern/isFocusVisible/index.js +1 -0
  14. package/modern/isFocusVisible/isFocusVisible.js +15 -0
  15. package/modern/useControlled/useControlled.js +3 -1
  16. package/node/getDisplayName/getDisplayName.js +1 -1
  17. package/node/index.js +7 -22
  18. package/node/isFocusVisible/index.js +13 -0
  19. package/node/isFocusVisible/isFocusVisible.js +21 -0
  20. package/node/useControlled/useControlled.js +3 -1
  21. package/package.json +3 -3
  22. package/useControlled/useControlled.js +3 -1
  23. package/modern/scrollLeft/index.js +0 -1
  24. package/modern/scrollLeft/scrollLeft.js +0 -70
  25. package/modern/useIsFocusVisible/index.js +0 -2
  26. package/modern/useIsFocusVisible/useIsFocusVisible.js +0 -163
  27. package/node/scrollLeft/index.js +0 -16
  28. package/node/scrollLeft/scrollLeft.js +0 -77
  29. package/node/useIsFocusVisible/index.js +0 -26
  30. package/node/useIsFocusVisible/useIsFocusVisible.js +0 -171
  31. package/scrollLeft/index.d.ts +0 -1
  32. package/scrollLeft/index.js +0 -1
  33. package/scrollLeft/scrollLeft.d.ts +0 -2
  34. package/scrollLeft/scrollLeft.js +0 -70
  35. package/useIsFocusVisible/index.d.ts +0 -2
  36. package/useIsFocusVisible/index.js +0 -2
  37. package/useIsFocusVisible/package.json +0 -6
  38. package/useIsFocusVisible/useIsFocusVisible.d.ts +0 -9
  39. package/useIsFocusVisible/useIsFocusVisible.js +0 -163
package/CHANGELOG.md CHANGED
@@ -1,5 +1,333 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-beta.0
4
+
5
+ <!-- generated comparing v6.0.0-alpha.14..next -->
6
+
7
+ _Jul 11, 2024_
8
+
9
+ A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🎉 This is the first v6 beta release! A huge thanks to everyone who helped to make this happen! The target date for a stable release is the 28th of July. The next month will be used to polish v6, and ease the migration from v5. You can follow the [v6 stable milestone](https://github.com/mui/material-ui/milestone/42) for more details.
12
+ - 🚀 All planned breaking changes are completed.
13
+
14
+ ### `@mui/material@v6.0.0-beta.0`
15
+
16
+ - Revert deprecation warnings for `*Components` and `*Props` for v6 (#42466) @lhilgert9
17
+ - Performance: lazy Ripple (#41061) @romgrk
18
+ - [AppBar] Fix inherit color is inconsistent between ThemeProvider and CssVarsProvider (#42714) @ZeeshanTamboli
19
+ - [Autocomplete] Add new AutocompleteInputChangeReason (#37301) @binh1298
20
+
21
+ ### `@mui/material-pigment-css@v6.0.0-beta.0`
22
+
23
+ - Create a wrapper package over Pigment CSS (#42819) @brijeshb42
24
+
25
+ ### `@mui/base@5.0.0-beta.53`
26
+
27
+ - [Autocomplete] Add new AutocompleteInputChangeReason (#37301) @binh1298
28
+
29
+ ### Docs
30
+
31
+ - Replace v6 "alpha" mentions with "beta" (#42895) @DiegoAndai
32
+ - Fix typos (#42862) @omahs
33
+ - Fix issues reported by react compiler in docs folder (#42881) @sai6855
34
+ - Fix 301 @oliviertassinari
35
+ - [LinearProgress] Fix buffer demo (#42858) @mbrookes
36
+ - Adjust site to add Toolpad on the homepage (#38604) @bharatkashyap
37
+
38
+ ### Core
39
+
40
+ - Fix imports in `Demo` component (#42857) @LukasTy
41
+ - Use @mui/docs/HighlightedCodeWithTabs in markdown (#42841) @Janpot
42
+ - Simpler pnpm dedupe error message to act on @oliviertassinari
43
+ - Fix split infinitive use in tests @oliviertassinari
44
+ - [lab] Fix issues reported by react-compiler in mui-lab (#42880) @sai6855
45
+
46
+ All contributors of this release in alphabetical order: @bharatkashyap, @brijeshb42, @DiegoAndai, @Janpot, @lhilgert9, @LukasTy, @mbrookes, @oliviertassinari, @omahs, @romgrk, @sai6855, @ZeeshanTamboli
47
+
48
+ ## v6.0.0-alpha.14
49
+
50
+ <!-- generated comparing v6.0.0-alpha.13..next -->
51
+
52
+ _Jul 3, 2024_
53
+
54
+ A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
55
+
56
+ - ✨ Updated Grid v2 to match PigmentGrid (#42742) @DiegoAndai
57
+
58
+ ### `@mui/material@v6.0.0-alpha.14`
59
+
60
+ #### BREAKING CHANGES
61
+
62
+ - [Grid] Update Grid props to match PigmentGrid (#42742) @DiegoAndai
63
+
64
+ Use the codemod below to migrate the props:
65
+
66
+ ```bash
67
+ npx @mui/codemod@next v6.0.0/grid-v2-props /path/to/folder
68
+ ```
69
+
70
+ #### Changes
71
+
72
+ - [Alert] Add ability to override slot props (#42787) @alexey-kozlenkov
73
+ - [Dialog] Revert incorrect textAlign style removal (#42778) @DiegoAndai
74
+ - [theme] Support `CssVarsTheme` in `responsiveFontSizes` return type (#42786) @jxdp
75
+
76
+ ### Docs
77
+
78
+ - [material-ui] Add some writing tweaks to v6 migration page (#42623) @danilo-leal
79
+ - [material-ui] Fix issues reported by react-compiler in docs folder (#42830) @sai6855
80
+ - [material-ui] Add some writing tweaks to v6 migration page (#42623) @danilo-leal
81
+ - [base-ui] Fix wrong description for `UseTabParameters.onChange` (#42749) @ohgree
82
+ - Fix 301 MDN redirections @oliviertassinari
83
+
84
+ ### Core
85
+
86
+ - [core] Bump React to 18.3.1 (#42047) @renovate[bot]
87
+ - [core] Revert lint for `useThemeProps` (#42817) @siriwatknp
88
+ - [core] Remove useIsFocusVisible util (#42467) @DiegoAndai
89
+ - [core] Remove react-test-renderer (#42784) @aarongarciah
90
+ - [core][mui-utils] Remove remaining IE11 references (#42777) @DiegoAndai
91
+ - [code-infra] Move `HighlightedCode` test into `@mui/docs` package (#42835) @LukasTy
92
+ - [code-infra] Cleanup `@mui/docs` usage and legacy re-exports (#42833) @LukasTy
93
+ - [docs-infra] Fix React Compiler ESLint issues in website components (#42566) @aarongarciah
94
+ - [docs-infra] Add batch of design polish (#42823) @danilo-leal
95
+ - [test][mui-utils] Remove usages of deprecated react-dom APIs (#42780) @aarongarciah
96
+ - [test][joy-ui][Autocomplete] Fix spread key error in test (#42775) @aarongarciah
97
+
98
+ All contributors of this release in alphabetical order: @aarongarciah, @alexey-kozlenkov, @danilo-leal, @DiegoAndai, @Janpot, @jxdp, @LukasTy, @ohgree, @oliviertassinari, @renovate[bot], @sai6855, @siriwatknp
99
+
100
+ ## v6.0.0-alpha.13
101
+
102
+ <!-- generated comparing v6.0.0-alpha.12..next -->
103
+
104
+ _Jun 27, 2024_
105
+
106
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
107
+
108
+ - 🚀 Added layout components for Pigment CSS integration (#42693) @siriwatknp
109
+
110
+ ### `@mui/material@6.0.0-alpha.13`
111
+
112
+ - [Autocomplete] Fix more React 18.3 key spread warnings in demos (#42639) @wbt
113
+ - [Container][Grid][Stack][Hidden] Export Pigment CSS layout components (#42693) @siriwatknp
114
+ - [Text Field] when click password visibility button, text caret position change to very front. (#42595) @appleSimple
115
+ - [Modal] migrate useSlotProps to useSLot (#42150) @sai6855
116
+
117
+ ### `@mui/styles@6.0.0-alpha.13`
118
+
119
+ - [withStyles] Expect React defaultProps warning in test (#42752) @aarongarciah
120
+
121
+ ### Docs
122
+
123
+ - Fix link in CONTRIBUTING.md (#42755) @Janpot
124
+ - Add documentation on migrating JSS's alternative, array-based syntax to syntax supported by Emotion (#42053) @cjl750
125
+ - Fix type error in virtualized table demo (#42757) @aarongarciah
126
+ - Add first batch of v6 migration (#42242) @siriwatknp
127
+ - Fix quotes on font-family dedeclaration in the Landing Page template theme (#42748) @joetats
128
+
129
+ ### Core
130
+
131
+ - [code-infra] Refactor eslint `import/no-cycle` rule (#42705) @LukasTy
132
+ - [core] Target direct version for prerelease (#42768) @siriwatknp
133
+ - [test] Remove enzyme (#42706) @aarongarciah
134
+ - [test] Remove createMount test util (#42703) @aarongarciah
135
+ - [website] Add Ale to team (#42764) @alelthomas
136
+
137
+ All contributors of this release in alphabetical order: @aarongarciah, @alelthomas, @appleSimple, @cjl750, @Janpot, @joetats, @LukasTy, @sai6855, @siriwatknp, @wbt
138
+
139
+ ## v6.0.0-alpha.12
140
+
141
+ <!-- generated comparing v6.0.0-alpha.11..next -->
142
+
143
+ _Jun 24, 2024_
144
+
145
+ A big thanks to the 17 contributors who made this release possible.
146
+
147
+ ### `@mui/material@6.0.0-alpha.12`
148
+
149
+ - Add `InitColorSchemeScript` for Next.js App Router (#42247) @siriwatknp
150
+ - [Autocomplete] Fix renderOption props type (#42689) @DiegoAndai
151
+ - [Autocomplete] Fix React 18.3 key spread warnings in Autocomplete demos (#42691) @aarongarciah
152
+ - Support Pigment CSS for `CssBaseline`, `ScopedCssBaseline` and `Popper` (#42640) @siriwatknp
153
+ - Add `DefaultPropsProvider` for Pigment CSS integration (#42638) @siriwatknp
154
+ - [Stepper] Generate class for nonLinear prop (#42620) @alexismo
155
+ - [Tab] Fix failing test (#42686) @aarongarciah
156
+ - [Tab] Deprecate iconWrapper class for icon class (#42647) @sai6855
157
+ - [TableSortLabel] Deprecate composed classes (#42281) @sai6855
158
+ - [usePagination] Update pagination `siblingsEnd` calculation logic (#42667) @Mini-ghost
159
+
160
+ ### `@mui/codemod@6.0.0-alpha.12`
161
+
162
+ - Support dynamic props styled transformation (#42683) @siriwatknp
163
+
164
+ ### `@mui/system@6.0.0-alpha.12`
165
+
166
+ - Fix issues reported by react compiler in `mui-system` package (#42637) @sai6855
167
+ - [useMediaQuery] Remove deprecated types (#42560) @aarongarciah
168
+
169
+ ### `@mui/joy@5.0.0-beta.45`
170
+
171
+ - Fix issues reported by the React Compiler (#42671) @anuujj
172
+ - [Autocomplete] Fix React spread key warning (#42741) @aarongarciah
173
+
174
+ ### `@mui/lab@6.0.0-alpha.12`
175
+
176
+ - [LoadingButton] Apply wrapping element to prevent React crash on Google page translation (#35198) @BartJanvanAssen
177
+
178
+ ### Docs
179
+
180
+ - Fix git diff format in migration to v6 (#42711) @oliviertassinari
181
+ - Use new email for sponsoring @oliviertassinari
182
+ - Fix 301 links (#42697) @alexfauquette
183
+ - Normalize the capitalization of Design Kit @oliviertassinari
184
+ - Recommend setting HTML attribute instead of DOM property for RTL (#42599) @aarongarciah
185
+ - [material-ui][Select] Fix the `SelectAutoWidth` demo menu item value (#42648) @Danielkhakbaz
186
+
187
+ ### Core
188
+
189
+ - [code-infra] Try disabling animations when taking screenshots (#42537) @Janpot
190
+ - [code-infra] Fix benchmark package (#42553) @Janpot
191
+ - [core] Replace enzyme in describeConformance (#42447) @DiegoAndai
192
+ - [docs-infra] Fix layout shift demo toolbar (#42743) @oliviertassinari
193
+ - [docs-infra] Fix visual look of in-house ad (#42735) @oliviertassinari
194
+ - [docs-infra] Add stray design polish (#42646) @danilo-leal
195
+ - [docs-infra] Fix wrong migration (#42675) @siriwatknp
196
+ - [docs-infra] Fine tune markdown elements design (#42643) @danilo-leal
197
+ - [docs-infra] Revamp the product switcher design (#42603) @danilo-leal
198
+ - [docs-infra] Allow Link component to receive the `role` attribute (#42629) @danilo-leal
199
+ - [infra] Add support donation button (#42499) @oliviertassinari
200
+ - [infra] Raise `tsconfig`/`tsc` target to `es2022` (#42645) @LukasTy
201
+ - [test] Fix tests on CI (#42670) @michaldudak
202
+ - [test] Fix issues reported by react-compiler in test packages (#42626) @sai6855
203
+ - [website] Add Armin to the team members (#42679) @arminmeh
204
+ - [website] Open Staff Engineer role for Pigment CSS (#42531) @mnajdova
205
+
206
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @alexismo, @anuujj, @arminmeh, @BartJanvanAssen, @Danielkhakbaz, @danilo-leal, @DiegoAndai, @Janpot, @LukasTy, @michaldudak, @Mini-ghost, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp
207
+
208
+ ## v6.0.0-alpha.11
209
+
210
+ <!-- generated comparing v6.0.0-alpha.10..next -->
211
+
212
+ _Jun 11, 2024_
213
+
214
+ A big thanks to the 18 contributors who made this release possible.
215
+
216
+ ### `@mui/material@6.0.0-alpha.11`
217
+
218
+ - &#8203;<!-- 38 -->[Autocomplete] Shouldn't resize when hovering (#42452) @ZeeshanTamboli
219
+ - &#8203;<!-- 37 -->[Chip] Fix focus issue related with the Escape event (#41578) @shrilsharma
220
+ - &#8203;<!-- 12 -->[Grid] Fix support for CSS variables (#42574) @oliviertassinari
221
+ - &#8203;<!-- 11 -->[InputBase] Use `globalCss` for Pigment integration (#42431) @siriwatknp
222
+ - &#8203;<!-- 10 -->Change React.ReactElement type from `any` to `unknown` (#42473) @sai6855
223
+ - &#8203;<!-- 09 -->Integrate `extendSxProp` adapter (#42543) @siriwatknp
224
+ - &#8203;<!-- 08 -->[Tab] Fix applying `iconWrapper` styles from theme and update its description (#42549) @sai6855
225
+ - &#8203;<!-- 08 -->[pigment-css] Add `stringifyTheme` for Pigment CSS integration (#42476) @siriwatknp
226
+
227
+ ### `@mui/system@6.0.0-alpha.11`
228
+
229
+ - &#8203;<!-- 11 -->[Grid] Remove `disableEqualOverflow` by using `gap` (#42526) @DiegoAndai
230
+ - &#8203;<!-- 07 -->[useMediaQuery] Drop Safari < 14 support (#42464) @aarongarciah
231
+
232
+ ### `@mui/utils@6.0.0-alpha.11`
233
+
234
+ - &#8203;<!-- 04 -->Allow passing `NaN` as `defaultValue` to `useControlled` (#41559) @iammminzzy
235
+
236
+ ### `@mui/codemod@6.0.0-alpha.11`
237
+
238
+ - &#8203;<!-- 39 -->Improve styled and sx prop transformation (#42598) @siriwatknp
239
+ - &#8203;<!-- 36 -->Support more cases for sx-prop transformation (#42527) @siriwatknp
240
+
241
+ ### `@mui/private-theming@6.0.0-alpha.11`
242
+
243
+ - &#8203;<!-- 09 -->Fix issues reported by react compiler in `mui-private-theming` components (#42619) @sai6855
244
+
245
+ ### Docs
246
+
247
+ - &#8203;<!-- 31 -->Add `theme.applyStyles` and migrate docs (#42498) @siriwatknp
248
+ - &#8203;<!-- 29 -->Fix dashboard template console error (#42594) @oliviertassinari
249
+ - &#8203;<!-- 28 -->Migrate system props to `sx` prop (#42475) @siriwatknp
250
+ - &#8203;<!-- 27 -->[material-ui]Fix duplicated sentence (#42521) @alexfauquette
251
+ - &#8203;<!-- 22 -->[Grid] Fix docs spacing (#42573) @oliviertassinari
252
+ - &#8203;<!-- 21 -->[joy-ui] Add Next.js App Router instructions on how to prevent flickering (#42514) @devnyxie
253
+ - &#8203;<!-- 20 -->[joy-ui] Fix HTML tag without preformatting (#42525) @jacobmoshipco
254
+ - &#8203;<!-- 19 -->[material-ui] Add docs for complementary stepper components (#41900) @anle9650
255
+ - &#8203;<!-- 18 -->[material-ui] Fix typo on Sign-in/Sign-up templates (#42605) @zanivan
256
+ - &#8203;<!-- 17 -->[material-ui] Add container queries docs (#42434) @siriwatknp
257
+ - &#8203;<!-- 16 -->[material-ui] Fix ESLint error in Stepper demo (#42559) @aarongarciah
258
+ - &#8203;<!-- 15 -->[material-ui] Shorten useMediaQuery subheading (#42561) @aarongarciah
259
+ - &#8203;<!-- 14 -->[material-ui] Add a Refine example project (#42461) @necatiozmen
260
+
261
+ ### Core
262
+
263
+ - &#8203;<!-- 39 -->[website] Move the `React Engineer - X` role to future roles (#42532) @DanailH
264
+ - &#8203;<!-- 35 -->[core] Allow `for..of` loops (#42600) @michaldudak
265
+ - &#8203;<!-- 34 -->[core] Add comment about Object.js @oliviertassinari
266
+ - &#8203;<!-- 33 -->[core] Disable eslint-plugin-react-compiler for Base (#42563) @aarongarciah
267
+ - &#8203;<!-- 33 -->[core] Group Pigment CSS dependencies (#42174) @siriwatknp
268
+ - &#8203;<!-- 32 -->[core] Configure eslint-plugin-react-compiler (#42555) @aarongarciah
269
+ - &#8203;<!-- 31 -->[core] Skip charts animation for visual regression test (#42530) @alexfauquette
270
+ - &#8203;<!-- 26 -->[docs-infra] Simplify click header (#42593) @oliviertassinari
271
+ - &#8203;<!-- 25 -->[docs-infra] Add configurable jsdoc host variable (#42472) @tonygravell
272
+ - &#8203;<!-- 25 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
273
+ - &#8203;<!-- 24 -->[docs-infra] Prevent link anchor when selecting text (#41994) @alexfauquette
274
+ - &#8203;<!-- 23 -->[docs-infra] Add the Base UI logo with copy functionality (#42446) @danilo-leal
275
+ - &#8203;<!-- 13 -->[examples] Remove Pigment CSS examples (#42471) @sai6855
276
+ - &#8203;<!-- 06 -->[test] Restore pnpm tc command (#42572) @oliviertassinari
277
+ - &#8203;<!-- 05 -->[test] Restore testing internal packages (#42519) @michaldudak
278
+ - &#8203;<!-- 03 -->[website] Close Developer Advocate / Content Engineer role @oliviertassinari
279
+ - &#8203;<!-- 02 -->[website] Remove blank line @oliviertassinari
280
+ - &#8203;<!-- 01 -->[website] Fix mobile layout shift @oliviertassinari
281
+
282
+ All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @anle9650, @DanailH, @danilo-leal, @devnyxie, @DiegoAndai, @iammminzzy, @jacobmoshipco, @michaldudak, @necatiozmen, @oliviertassinari, @sai6855, @shrilsharma, @siriwatknp, @tonygravell, @zanivan, @ZeeshanTamboli
283
+
284
+ ## v6.0.0-alpha.10
285
+
286
+ <!-- generated comparing v6.0.0-alpha.9..next -->
287
+
288
+ _Jun 4, 2024_
289
+
290
+ A big thanks to the 7 contributors who made this release possible.
291
+
292
+ ### `@mui/material@6.0.0-alpha.10`
293
+
294
+ - &#8203;<!-- 26 -->[Backdrop] Deprecate `components` and `componentsProps` (#42468) @DiegoAndai
295
+ - &#8203;<!-- 25 -->[Collapse] Bound max transition time (#42390) @oliviertassinari
296
+ - &#8203;<!-- 12 -->[FilledInput] Remove unapplied classes from filledInputClasses interface and add missing classes to root (#42082) @sai6855
297
+ - &#8203;<!-- 11 -->[InputBase] Deprecate components and componentProps props for v6 (#42093) @ChronicusUA
298
+ - &#8203;<!-- 10 -->Remove remaining IE11 code (#42283) @DiegoAndai
299
+ - &#8203;<!-- 09 -->[Modal] Deprecate `components` and `componentsProps` (#42469) @DiegoAndai
300
+ - &#8203;<!-- 08 -->[Popover] Migrate useSlotProps to useSlot (#42369) @sai6855
301
+ - &#8203;<!-- 07 -->[useMediaQuery] Remove unused useMediaQueryTheme (#42367) @aarongarciah
302
+
303
+ ### `@mui/system@6.0.0-alpha.10`
304
+
305
+ - &#8203;<!-- 06 -->Remove IE11 code (#42436) @DiegoAndai
306
+
307
+ ### Docs
308
+
309
+ - &#8203;<!-- 23 -->Reflect Base UI and MUI System in a different repository @oliviertassinari
310
+ - &#8203;<!-- 22 -->Update twitter.com to x.com @oliviertassinari
311
+ - &#8203;<!-- 21 -->Simplify Example projects page @oliviertassinari
312
+ - &#8203;<!-- 17 -->[icons] Update README and docs page (#41938) @danilo-leal
313
+ - &#8203;<!-- 16 -->[material-ui] Add changelog section to the design kits page (#42449) @danilo-leal
314
+ - &#8203;<!-- 15 -->[material-ui] Fix sentence in the All components page (#42336) @danilo-leal
315
+ - &#8203;<!-- 14 -->[material-ui] Update Figma design kit doc redirect link (#42448) @danilo-leal
316
+ - &#8203;<!-- 13 -->[system] Add "dynamic values" section to sx prop page (#42239) @aarongarciah
317
+
318
+ ### Core
319
+
320
+ - &#8203;<!-- 20 -->[docs-infra] Update the OG card image design (#42470) @danilo-leal
321
+ - &#8203;<!-- 19 -->[docs-infra] Add small design polish (#42455) @danilo-leal
322
+ - &#8203;<!-- 18 -->[docs-infra] Update the Material logo + add copy functionality (#42435) @danilo-leal
323
+ - &#8203;<!-- 05 -->[website] Update DoiT description and link in Sponsors section (#42505) @erezstmn-doit
324
+ - &#8203;<!-- 04 -->[website] Clean up the docs-infra job ad (#42504) @danilo-leal
325
+ - &#8203;<!-- 03 -->[website] Fix FlashCode position (#42139) @oliviertassinari
326
+ - &#8203;<!-- 02 -->[website] Open Docs-infra engineer role (#42101) @danilo-leal
327
+ - &#8203;<!-- 01 -->[website] Fix locationCountry in about page @oliviertassinari
328
+
329
+ All contributors of this release in alphabetical order: @aarongarciah, @ChronicusUA, @danilo-leal, @DiegoAndai, @erezstmn-doit, @oliviertassinari, @sai6855
330
+
3
331
  ## v6.0.0-alpha.9
4
332
 
5
333
  <!-- generated comparing v6.0.0-alpha.8..next -->
@@ -94,7 +422,7 @@ This release was mostly about 🐛 bug fixes and 📚 documentation improvements
94
422
  ### Docs
95
423
 
96
424
  - &#8203;<!-- 08 -->[docs] Remove Base UI from the README (#42307) @danilo-leal
97
- - &#8203;<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
425
+ - &#8203;<!-- 07 -->[docs][material-ui] Fix typo in style interoperability with Tailwind CSS docs (#42279) @ZeeshanTamboli
98
426
  - &#8203;<!-- 06 -->[docs][material-ui] Add supported browsers section to migration guide (#42194) @DiegoAndai
99
427
  - &#8203;<!-- 05 -->[docs][material-ui][Pagination] Clarify pagination `page` prop API (#42220) @Mandar-Pandya
100
428
 
@@ -8806,7 +9134,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
8806
9134
 
8807
9135
  - &#8203;<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
8808
9136
 
8809
- Based on the results of the [poll](https://twitter.com/michaldudak/status/1452630484706635779) and our internal discussions, we decided to rename the `@mui/core` package to `@mui/base`. The main rationale for this is the fact that we use the term "Core" to refer to the core components product family, the one that includes Material Design components, unstyled components, System utilities, etc. Therefore, @mui/core was effectively a subset of MUI Core. This was confusing.
9137
+ Based on the results of the [poll](https://x.com/michaldudak/status/1452630484706635779) and our internal discussions, we decided to rename the `@mui/core` package to `@mui/base`. The main rationale for this is the fact that we use the term "Core" to refer to the core components product family, the one that includes Material Design components, unstyled components, System utilities, etc. Therefore, @mui/core was effectively a subset of MUI Core. This was confusing.
8810
9138
 
8811
9139
  The new name better reflects the purpose of the package: it contains unstyled components, hooks, and utilities that serve as a **base** to build on.
8812
9140
 
@@ -13223,7 +13551,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
13223
13551
  ```
13224
13552
 
13225
13553
  - [Autocomplete] Remove `debug` in favor of `open` and dev tools (#23377) @eps1lon
13226
- There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://twitter.com/sulco/status/1305841873945272321), or React devtools props.
13554
+ There are a couple of simpler alternatives: `open={true}`, Chrome devtools ["Emulate focused"](https://x.com/sulco/status/1305841873945272321), or React devtools props.
13227
13555
 
13228
13556
  #### Changes
13229
13557
 
@@ -2,6 +2,6 @@ import * as React from 'react';
2
2
  /**
3
3
  * cherry-pick from
4
4
  * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
5
- * originally forked from recompose/getDisplayName with added IE11 support
5
+ * originally forked from recompose/getDisplayName
6
6
  */
7
7
  export default function getDisplayName(Component: React.ElementType): string | undefined;
@@ -10,7 +10,7 @@ function getWrappedName(outerType, innerType, wrapperName) {
10
10
  /**
11
11
  * cherry-pick from
12
12
  * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
13
- * originally forked from recompose/getDisplayName with added IE11 support
13
+ * originally forked from recompose/getDisplayName
14
14
  */
15
15
  export default function getDisplayName(Component) {
16
16
  if (Component == null) {
package/index.d.ts CHANGED
@@ -27,9 +27,8 @@ export { default as unstable_useForkRef } from './useForkRef';
27
27
  export { default as unstable_useLazyRef } from './useLazyRef';
28
28
  export { default as unstable_useTimeout, Timeout as unstable_Timeout } from './useTimeout';
29
29
  export { default as unstable_useOnMount } from './useOnMount';
30
- export { default as unstable_useIsFocusVisible } from './useIsFocusVisible';
30
+ export { default as unstable_isFocusVisible } from './isFocusVisible';
31
31
  export { default as unstable_getScrollbarSize } from './getScrollbarSize';
32
- export { detectScrollType as unstable_detectScrollType, getNormalizedScrollLeft as unstable_getNormalizedScrollLeft, } from './scrollLeft';
33
32
  export { default as usePreviousProps } from './usePreviousProps';
34
33
  export { default as getValidReactChildren } from './getValidReactChildren';
35
34
  export { default as visuallyHidden } from './visuallyHidden';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v6.0.0-alpha.9
2
+ * @mui/utils v6.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -34,9 +34,8 @@ export { default as unstable_useForkRef } from './useForkRef';
34
34
  export { default as unstable_useLazyRef } from './useLazyRef';
35
35
  export { default as unstable_useTimeout, Timeout as unstable_Timeout } from './useTimeout';
36
36
  export { default as unstable_useOnMount } from './useOnMount';
37
- export { default as unstable_useIsFocusVisible } from './useIsFocusVisible';
37
+ export { default as unstable_isFocusVisible } from './isFocusVisible';
38
38
  export { default as unstable_getScrollbarSize } from './getScrollbarSize';
39
- export { detectScrollType as unstable_detectScrollType, getNormalizedScrollLeft as unstable_getNormalizedScrollLeft } from './scrollLeft';
40
39
  export { default as usePreviousProps } from './usePreviousProps';
41
40
  export { default as getValidReactChildren } from './getValidReactChildren';
42
41
  export { default as visuallyHidden } from './visuallyHidden';
@@ -0,0 +1 @@
1
+ export { default } from './isFocusVisible';
@@ -0,0 +1 @@
1
+ export { default } from './isFocusVisible';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Returns a boolean indicating if the event's target has :focus-visible
3
+ */
4
+ export default function isFocusVisible(element: Element): boolean;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns a boolean indicating if the event's target has :focus-visible
3
+ */
4
+ export default function isFocusVisible(element) {
5
+ try {
6
+ return element.matches(':focus-visible');
7
+ } catch (error) {
8
+ // Do not warn on jsdom tests, otherwise all tests that rely on focus have to be skipped
9
+ // Tests that rely on `:focus-visible` will still have to be skipped in jsdom
10
+ if (process.env.NODE_ENV !== 'production' && !/jsdom/.test(window.navigator.userAgent)) {
11
+ console.warn(['MUI: The `:focus-visible` pseudo class is not supported in this browser.', 'Some components rely on this feature to work properly.'].join('\n'));
12
+ }
13
+ }
14
+ return false;
15
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "module": "./index.js",
4
- "main": "../node/scrollLeft/index.js",
4
+ "main": "../node/isFocusVisible/index.js",
5
5
  "types": "./index.d.ts"
6
6
  }
@@ -10,7 +10,7 @@ function getWrappedName(outerType, innerType, wrapperName) {
10
10
  /**
11
11
  * cherry-pick from
12
12
  * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
13
- * originally forked from recompose/getDisplayName with added IE11 support
13
+ * originally forked from recompose/getDisplayName
14
14
  */
15
15
  export default function getDisplayName(Component) {
16
16
  if (Component == null) {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v6.0.0-alpha.9
2
+ * @mui/utils v6.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -34,9 +34,8 @@ export { default as unstable_useForkRef } from './useForkRef';
34
34
  export { default as unstable_useLazyRef } from './useLazyRef';
35
35
  export { default as unstable_useTimeout, Timeout as unstable_Timeout } from './useTimeout';
36
36
  export { default as unstable_useOnMount } from './useOnMount';
37
- export { default as unstable_useIsFocusVisible } from './useIsFocusVisible';
37
+ export { default as unstable_isFocusVisible } from './isFocusVisible';
38
38
  export { default as unstable_getScrollbarSize } from './getScrollbarSize';
39
- export { detectScrollType as unstable_detectScrollType, getNormalizedScrollLeft as unstable_getNormalizedScrollLeft } from './scrollLeft';
40
39
  export { default as usePreviousProps } from './usePreviousProps';
41
40
  export { default as getValidReactChildren } from './getValidReactChildren';
42
41
  export { default as visuallyHidden } from './visuallyHidden';
@@ -0,0 +1 @@
1
+ export { default } from './isFocusVisible';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns a boolean indicating if the event's target has :focus-visible
3
+ */
4
+ export default function isFocusVisible(element) {
5
+ try {
6
+ return element.matches(':focus-visible');
7
+ } catch (error) {
8
+ // Do not warn on jsdom tests, otherwise all tests that rely on focus have to be skipped
9
+ // Tests that rely on `:focus-visible` will still have to be skipped in jsdom
10
+ if (process.env.NODE_ENV !== 'production' && !/jsdom/.test(window.navigator.userAgent)) {
11
+ console.warn(['MUI: The `:focus-visible` pseudo class is not supported in this browser.', 'Some components rely on this feature to work properly.'].join('\n'));
12
+ }
13
+ }
14
+ return false;
15
+ }
@@ -24,7 +24,9 @@ export default function useControlled({
24
24
  current: defaultValue
25
25
  } = React.useRef(defaultProp);
26
26
  React.useEffect(() => {
27
- if (!isControlled && defaultValue !== defaultProp) {
27
+ // Object.is() is not equivalent to the === operator.
28
+ // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details.
29
+ if (!isControlled && !Object.is(defaultValue, defaultProp)) {
28
30
  console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\n'));
29
31
  }
30
32
  }, [JSON.stringify(defaultProp)]);
@@ -16,7 +16,7 @@ function getWrappedName(outerType, innerType, wrapperName) {
16
16
  /**
17
17
  * cherry-pick from
18
18
  * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
19
- * originally forked from recompose/getDisplayName with added IE11 support
19
+ * originally forked from recompose/getDisplayName
20
20
  */
21
21
  function getDisplayName(Component) {
22
22
  if (Component == null) {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v6.0.0-alpha.9
2
+ * @mui/utils v6.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -42,10 +42,8 @@ var _exportNames = {
42
42
  unstable_useTimeout: true,
43
43
  unstable_Timeout: true,
44
44
  unstable_useOnMount: true,
45
- unstable_useIsFocusVisible: true,
45
+ unstable_isFocusVisible: true,
46
46
  unstable_getScrollbarSize: true,
47
- unstable_detectScrollType: true,
48
- unstable_getNormalizedScrollLeft: true,
49
47
  usePreviousProps: true,
50
48
  getValidReactChildren: true,
51
49
  visuallyHidden: true,
@@ -190,12 +188,6 @@ Object.defineProperty(exports, "unstable_deprecatedPropType", {
190
188
  return _deprecatedPropType.default;
191
189
  }
192
190
  });
193
- Object.defineProperty(exports, "unstable_detectScrollType", {
194
- enumerable: true,
195
- get: function () {
196
- return _scrollLeft.detectScrollType;
197
- }
198
- });
199
191
  Object.defineProperty(exports, "unstable_generateUtilityClass", {
200
192
  enumerable: true,
201
193
  get: function () {
@@ -208,16 +200,16 @@ Object.defineProperty(exports, "unstable_generateUtilityClasses", {
208
200
  return _generateUtilityClasses.default;
209
201
  }
210
202
  });
211
- Object.defineProperty(exports, "unstable_getNormalizedScrollLeft", {
203
+ Object.defineProperty(exports, "unstable_getScrollbarSize", {
212
204
  enumerable: true,
213
205
  get: function () {
214
- return _scrollLeft.getNormalizedScrollLeft;
206
+ return _getScrollbarSize.default;
215
207
  }
216
208
  });
217
- Object.defineProperty(exports, "unstable_getScrollbarSize", {
209
+ Object.defineProperty(exports, "unstable_isFocusVisible", {
218
210
  enumerable: true,
219
211
  get: function () {
220
- return _getScrollbarSize.default;
212
+ return _isFocusVisible.default;
221
213
  }
222
214
  });
223
215
  Object.defineProperty(exports, "unstable_isGlobalState", {
@@ -292,12 +284,6 @@ Object.defineProperty(exports, "unstable_useId", {
292
284
  return _useId.default;
293
285
  }
294
286
  });
295
- Object.defineProperty(exports, "unstable_useIsFocusVisible", {
296
- enumerable: true,
297
- get: function () {
298
- return _useIsFocusVisible.default;
299
- }
300
- });
301
287
  Object.defineProperty(exports, "unstable_useLazyRef", {
302
288
  enumerable: true,
303
289
  get: function () {
@@ -356,9 +342,8 @@ var _useForkRef = _interopRequireDefault(require("./useForkRef"));
356
342
  var _useLazyRef = _interopRequireDefault(require("./useLazyRef"));
357
343
  var _useTimeout = _interopRequireWildcard(require("./useTimeout"));
358
344
  var _useOnMount = _interopRequireDefault(require("./useOnMount"));
359
- var _useIsFocusVisible = _interopRequireDefault(require("./useIsFocusVisible"));
345
+ var _isFocusVisible = _interopRequireDefault(require("./isFocusVisible"));
360
346
  var _getScrollbarSize = _interopRequireDefault(require("./getScrollbarSize"));
361
- var _scrollLeft = require("./scrollLeft");
362
347
  var _usePreviousProps = _interopRequireDefault(require("./usePreviousProps"));
363
348
  var _getValidReactChildren = _interopRequireDefault(require("./getValidReactChildren"));
364
349
  var _visuallyHidden = _interopRequireDefault(require("./visuallyHidden"));
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "default", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _isFocusVisible.default;
11
+ }
12
+ });
13
+ var _isFocusVisible = _interopRequireDefault(require("./isFocusVisible"));
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = isFocusVisible;
7
+ /**
8
+ * Returns a boolean indicating if the event's target has :focus-visible
9
+ */
10
+ function isFocusVisible(element) {
11
+ try {
12
+ return element.matches(':focus-visible');
13
+ } catch (error) {
14
+ // Do not warn on jsdom tests, otherwise all tests that rely on focus have to be skipped
15
+ // Tests that rely on `:focus-visible` will still have to be skipped in jsdom
16
+ if (process.env.NODE_ENV !== 'production' && !/jsdom/.test(window.navigator.userAgent)) {
17
+ console.warn(['MUI: The `:focus-visible` pseudo class is not supported in this browser.', 'Some components rely on this feature to work properly.'].join('\n'));
18
+ }
19
+ }
20
+ return false;
21
+ }
@@ -31,7 +31,9 @@ function useControlled({
31
31
  current: defaultValue
32
32
  } = React.useRef(defaultProp);
33
33
  React.useEffect(() => {
34
- if (!isControlled && defaultValue !== defaultProp) {
34
+ // Object.is() is not equivalent to the === operator.
35
+ // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details.
36
+ if (!isControlled && !Object.is(defaultValue, defaultProp)) {
35
37
  console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\n'));
36
38
  }
37
39
  }, [JSON.stringify(defaultProp)]);