@mui/lab 5.0.0-alpha.103 → 5.0.0-alpha.105

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 (54) hide show
  1. package/CHANGELOG.md +371 -213
  2. package/LoadingButton/loadingButtonClasses.js +2 -1
  3. package/Masonry/masonryClasses.js +2 -1
  4. package/TabPanel/tabPanelClasses.js +2 -1
  5. package/Timeline/timelineClasses.js +2 -1
  6. package/TimelineConnector/timelineConnectorClasses.js +2 -1
  7. package/TimelineContent/timelineContentClasses.js +2 -1
  8. package/TimelineDot/timelineDotClasses.js +2 -1
  9. package/TimelineItem/timelineItemClasses.js +2 -1
  10. package/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -1
  11. package/TimelineSeparator/timelineSeparatorClasses.js +2 -1
  12. package/TreeItem/treeItemClasses.js +2 -1
  13. package/TreeView/treeViewClasses.js +2 -1
  14. package/index.js +1 -1
  15. package/legacy/LoadingButton/loadingButtonClasses.js +2 -1
  16. package/legacy/Masonry/masonryClasses.js +2 -1
  17. package/legacy/TabPanel/tabPanelClasses.js +2 -1
  18. package/legacy/Timeline/timelineClasses.js +2 -1
  19. package/legacy/TimelineConnector/timelineConnectorClasses.js +2 -1
  20. package/legacy/TimelineContent/timelineContentClasses.js +2 -1
  21. package/legacy/TimelineDot/timelineDotClasses.js +2 -1
  22. package/legacy/TimelineItem/timelineItemClasses.js +2 -1
  23. package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -1
  24. package/legacy/TimelineSeparator/timelineSeparatorClasses.js +2 -1
  25. package/legacy/TreeItem/treeItemClasses.js +2 -1
  26. package/legacy/TreeView/treeViewClasses.js +2 -1
  27. package/legacy/index.js +1 -1
  28. package/modern/LoadingButton/loadingButtonClasses.js +2 -1
  29. package/modern/Masonry/masonryClasses.js +2 -1
  30. package/modern/TabPanel/tabPanelClasses.js +2 -1
  31. package/modern/Timeline/timelineClasses.js +2 -1
  32. package/modern/TimelineConnector/timelineConnectorClasses.js +2 -1
  33. package/modern/TimelineContent/timelineContentClasses.js +2 -1
  34. package/modern/TimelineDot/timelineDotClasses.js +2 -1
  35. package/modern/TimelineItem/timelineItemClasses.js +2 -1
  36. package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -1
  37. package/modern/TimelineSeparator/timelineSeparatorClasses.js +2 -1
  38. package/modern/TreeItem/treeItemClasses.js +2 -1
  39. package/modern/TreeView/treeViewClasses.js +2 -1
  40. package/modern/index.js +1 -1
  41. package/node/LoadingButton/loadingButtonClasses.js +7 -3
  42. package/node/Masonry/masonryClasses.js +7 -3
  43. package/node/TabPanel/tabPanelClasses.js +7 -3
  44. package/node/Timeline/timelineClasses.js +7 -3
  45. package/node/TimelineConnector/timelineConnectorClasses.js +7 -3
  46. package/node/TimelineContent/timelineContentClasses.js +7 -3
  47. package/node/TimelineDot/timelineDotClasses.js +7 -3
  48. package/node/TimelineItem/timelineItemClasses.js +7 -3
  49. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +7 -3
  50. package/node/TimelineSeparator/timelineSeparatorClasses.js +7 -3
  51. package/node/TreeItem/treeItemClasses.js +7 -3
  52. package/node/TreeView/treeViewClasses.js +7 -3
  53. package/node/index.js +1 -1
  54. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,157 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.10.11
4
+
5
+ <!-- generated comparing v5.10.10..master -->
6
+
7
+ _Oct 25, 2022_
8
+
9
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🔧 Moved `components` to `slots` prop starting at MUI Base to create consistency across products
12
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
13
+
14
+ ### `@mui/material@5.10.11`
15
+
16
+ - [InputBase] Fix `onInvalid` to use HTMLInputElement | HTMLTextAreaElement Element type (#33162) @KuSh
17
+ - [Alert] Add `components` and `componentsProps` props to allow close action overrides (#33582) @jake-collibra
18
+
19
+ ### `@mui/base@5.0.0-alpha.103`
20
+
21
+ #### BREAKING CHANGE
22
+
23
+ - [base] `components` -> `slots` API rename (#34693) @michaldudak
24
+
25
+ - Change all occurrences of components and componentsProps props in Base components to slots and slotProps, respectively.
26
+ - Change casing of slots' fields to camelCase
27
+
28
+ ```diff
29
+ -<SwitchUnstyled components={{Root: CustomRoot}} componentsProps={{rail: { className: 'custom-rail' }}} />
30
+ +<SwitchUnstyled slots={{root: CustomRoot}} slotProps={{rail: { className: 'custom-rail' }}} />
31
+ ```
32
+
33
+ - [base] Make CSS class prefixes consistent (#33411) @michaldudak
34
+
35
+ **This is a breaking change for anyone who depends on the class names applied to Base components.**
36
+ If you use the `<component>UnstyledClasses` objects, you won't notice a difference. Only if you depend on the resulting class names (e.g. in CSS stylesheets), you'll have to adjust your code.
37
+
38
+ ```diff
39
+ -.ButtonUnstyled-root { ... };
40
+ +.MuiButton-root { ... };
41
+ ```
42
+
43
+ #### Changes
44
+
45
+ - [test] Test all Base components with describeConformanceUnstyled (#34825) @michaldudak
46
+
47
+ ### `@mui/joy@5.0.0-alpha.51`
48
+
49
+ - [CircularProgress][joy] Fix classnames and add test (#34806) @hbjORbj
50
+ - [Joy] Allow string type for `size` prop in components (#34805) @hbjORbj
51
+
52
+ ### Docs
53
+
54
+ - Revert "[docs] Fix search icons in other languages (#34823)" @oliviertassinari
55
+ - Revert "[core] Move SearchIcons to docs src folder (#34802)" @oliviertassinari
56
+ - Revert "[docs] Live demos (#34454)" @oliviertassinari
57
+ - Update the order of operations for pagination example so that slicing takes place after sorting. (#34189) @marceliwac
58
+ - [docs] Gatsby Description in Joy dark-mode (#34702) @pixelass
59
+ - [docs] Add notification for blogpost MUI X v6 alpha (#34809) @joserodolfofreitas
60
+ - [docs] Polish Crowdin config (#34852) @oliviertassinari
61
+ - [docs] Fix a few style standard deviations @oliviertassinari
62
+ - [docs] Enforce no trailing spaces (#34762) @oliviertassinari
63
+ - [docs] Enforce correct git diff format (#34765) @oliviertassinari
64
+ - [docs] Fix Toolpad docs 301 route (#34843) @bharatkashyap
65
+ - [docs] Replace initial value with theme white (#34822) @siriwatknp
66
+ - [docs] Remove localization redirects (#34844) @mnajdova
67
+ - [docs] Fix search icons in other languages (#34823) @siriwatknp
68
+ - [docs] Fix JavaScript capitalization @oliviertassinari
69
+ - [docs] Update new links to MD2 (#34848) @oliviertassinari
70
+ - [website] Update future work items on X landing page (#34810) @joserodolfofreitas
71
+ - [website] Add Toolpad docs to navigation (#34749) @bharatkashyap
72
+
73
+ ### Core
74
+
75
+ - [core] Remove dead files (#34850) @oliviertassinari
76
+ - [core] Fix revert conflict @oliviertassinari
77
+ - [core] Fix a few CodeQL errors (#34766) @oliviertassinari
78
+ - [core] Harden GitHub Actions permissions (#34769) @oliviertassinari
79
+ - [core] Remove the codeowners file (#34876) @michaldudak
80
+
81
+ All contributors of this release in alphabetical order: @bharatkashyap, @hbjORbj, @jake-collibra, @joserodolfofreitas, @KuSh, @marceliwac, @michaldudak, @oliviertassinari, @pixelass, @siriwatknp
82
+
83
+ ## 5.10.10
84
+
85
+ <!-- generated comparing v5.10.9..master -->
86
+
87
+ _Oct 18, 2022_
88
+
89
+ A big thanks to the 21 contributors who made this release possible. Here are some highlights ✨:
90
+
91
+ - 🖌 Thanks to the efforts of @bharatkashyap and @nihgwu, we now have editable demos across our docs (#34454)!
92
+ - 🚀 The Tooltip component has been added to Joy UI by @hbjORbj (#34509).
93
+ - ⚙️ We started converting the remaining JS components in MUI Base to TypeScript.
94
+ @mbayucot finished the first PR with the conversion of the NoSsr code (#34735).
95
+ - And more 🐛 bug fixes and 📚 documentation improvements.
96
+
97
+ ### `@mui/material@5.10.10`
98
+
99
+ - [Popover] Fix paper position flash on open (#34546) @TheUnlocked
100
+ - [SwipeableDrawer] Make component `defaultProps` overridable (#34643) @hbjORbj
101
+
102
+ ### `@mui/system@5.10.10`
103
+
104
+ - [system] Support CSS `grey` color in `sx` (#34548) @TheUnlocked
105
+
106
+ ### `@mui/styles@5.10.10`
107
+
108
+ - [styles] Use memoized context in StylesProvider (#34637) @mohd-akram
109
+
110
+ ### `@mui/joy@5.0.0-alpha.50`
111
+
112
+ - [Select][joy] Added hidden input element (#34657) @zee-bit
113
+ - [Slider][joy] Add global variant to slider (#34733) @siriwatknp
114
+ - [Tooltip][joy] Add component (#34509) @hbjORbj
115
+
116
+ ### `@mui/base@5.0.0-alpha.102`
117
+
118
+ - [MultiSelect][base] Prevent the renderValue prop from being propagated to the DOM (#34698) @michaldudak
119
+ - [NoSsr] Convert code to TypeScript (#34735) @mbayucot
120
+
121
+ ### Docs
122
+
123
+ - [docs] Fix the Autocomplete Highlighting example (#34184) @hayawata3626
124
+ - [docs] Fix typos in Base (Menu, Tabs) and Joy UI (Chip) (#34803) @rvrvrv
125
+ - [docs] Use new editing API in homepage demos (#34220) @m4theushw
126
+ - [docs] Live demos (#34454) @bharatkashyap
127
+ - [docs] Fix typos in Joy UI Switch (#34728) @ndresx
128
+ - [docs] Avoid scrollbar in the code demos (#34741) @oliviertassinari
129
+ - [docs] Revise the Joy UI "Automatic adjustment" page (#34614) @samuelsycamore
130
+ - [docs] Revise and rename the Joy UI "Perfect dark mode" page (#34613) @samuelsycamore
131
+ - [docs] Revise the Joy UI "Global variants" page (#34595) @samuelsycamore
132
+ - [docs] Basic link verification at PR level (#34588) @alexfauquette
133
+ - [docs] Add a missing comma in the customization example (#34617) @AbayKinayat
134
+ - [website] Clarify Pro/Premium support (#34607) @oliviertassinari
135
+ - [website] Fix home page dark mode flicker (#33545)
136
+ - [website] Update the state of the date pickers on the landing page (#34750) @joserodolfofreitas
137
+
138
+ ### Core
139
+
140
+ - [core] Clean conditionals (#34772) @pedroprado010
141
+ - [core] Temporary remove the authorization (#34796) @siriwatknp
142
+ - [core] Avoid slower CI run statues @oliviertassinari
143
+ - [core] Improve the playground DX (#34739) @oliviertassinari
144
+ - [core] Link Netlify in the danger comment (#34688) @oliviertassinari
145
+ - [core] Fix CI after out of sync merge @oliviertassinari
146
+ - [core] Enforce straight quote (#34686) @oliviertassinari
147
+ - [core] Add code scanning via CodeQL (#34707) @DanailH
148
+ - [core] Fix some upcoming eslint issues (#34727) @oliviertassinari
149
+ - [core] Auto-fix upcoming eslint issues (#34644) @Janpot
150
+ - [core] Move SearchIcons to docs src folder (#34802)
151
+ - [test] Enable `react/no-unstable-nested-components` (#34518) @eps1lon
152
+
153
+ All contributors of this release in alphabetical order: @AbayKinayat, @alexfauquette, @bharatkashyap, @DanailH, @eps1lon, @hayawata3626, @hbjORbj, @Janpot, @joserodolfofreitas, @m4theushw, @mbayucot, @michaldudak, @mohd-akram, @ndresx, @oliviertassinari, @pedroprado010, @rvrvrv, @samuelsycamore, @siriwatknp, @TheUnlocked, @zee-bit
154
+
3
155
  ## 5.10.9
4
156
 
5
157
  <!-- generated comparing v5.10.8..master -->
@@ -154,8 +306,8 @@ A big thanks to the 21 contributors who made this release possible. Here are som
154
306
  - [TrapFocus] Rename TrapFocus to FocusTrap (#34216) @kabernardes
155
307
 
156
308
  ```diff
157
- - import TrapFocus from ‘@mui/base/TrapFocus’;
158
- + import FocusTrap from ‘@mui/base/FocusTrap’;
309
+ -import TrapFocus from '@mui/base/TrapFocus';
310
+ +import FocusTrap from '@mui/base/FocusTrap';
159
311
  ```
160
312
 
161
313
  #### Changes
@@ -437,7 +589,7 @@ _Aug 22, 2022_
437
589
 
438
590
  A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
439
591
 
440
- - ✨ @michaldudak synced the Material Icons set with the latest from Google (#33988).
592
+ - ✨ @michaldudak synced the Material Icons set with the latest from Google (#33988).\
441
593
  A couple of icons changed their appearance. See the difference [on this Argos build](https://app.argos-ci.com/mui/material-ui/builds/4428]).
442
594
 
443
595
  ### `@mui/material@5.10.2`
@@ -1629,7 +1781,8 @@ All contributors of this release in alphabetical order: @abhinav-22-tech, @ainat
1629
1781
 
1630
1782
  _Apr 18, 2022_
1631
1783
 
1632
- A big thanks to the 11 contributors who made this release possible. This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1784
+ A big thanks to the 11 contributors who made this release possible.
1785
+ This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1633
1786
 
1634
1787
  ### `@mui/material@5.6.2`
1635
1788
 
@@ -1688,7 +1841,7 @@ All contributors of this release in alphabetical order: @abaker93, @cherniavskii
1688
1841
 
1689
1842
  _Apr 11, 2022_
1690
1843
 
1691
- A big thanks to the 8 contributors who made this release possible.
1844
+ A big thanks to the 8 contributors who made this release possible.
1692
1845
  This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1693
1846
 
1694
1847
  ### `@mui/material@5.6.1`
@@ -1851,7 +2004,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
1851
2004
  -import { Unstyled_TrapFocus } from '@mui/base';
1852
2005
  +import { TrapFocus } from '@mui/base';
1853
2006
 
1854
- // or
2007
+ // or
1855
2008
 
1856
2009
  -import TrapFocus from '@mui/base/Unstyled_TrapFocus';
1857
2010
  +import TrapFocus from '@mui/base/TrapFocus';
@@ -2027,8 +2180,8 @@ A big thanks to the 16 contributors who made this release possible. Here are som
2027
2180
  `unstable_ClassNameGenerator` has been moved from `utils` to `className` folder to prevent all MUI Base module imports. If you use the module, please update the import as suggested in the diff below:
2028
2181
 
2029
2182
  ```diff
2030
- - import { unstable_ClassNameGenerator } from '@mui/material/utils';
2031
- + import { unstable_ClassNameGenerator } from '@mui/material/className';
2183
+ -import { unstable_ClassNameGenerator } from '@mui/material/utils';
2184
+ +import { unstable_ClassNameGenerator } from '@mui/material/className';
2032
2185
  ```
2033
2186
 
2034
2187
  #### Changes
@@ -2370,8 +2523,8 @@ A big thanks to the 22 contributors who made this release possible. Here are som
2370
2523
  3. Change the import paths of unstyled components from @mui/material to @mui/base, e.g.:
2371
2524
 
2372
2525
  ```diff
2373
- - @import ButtonUnstyled from '@mui/material/ButtonUnstyled';
2374
- + @import ButtonUnstyled from '@mui/base/ButtonUnstyled';
2526
+ -import ButtonUnstyled from '@mui/material/ButtonUnstyled';
2527
+ +import ButtonUnstyled from '@mui/base/ButtonUnstyled';
2375
2528
  ```
2376
2529
 
2377
2530
  #### Changes
@@ -4414,12 +4567,12 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4414
4567
  `span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui/material-ui/pull/26666).
4415
4568
 
4416
4569
  ```diff
4417
- <button class="MuiTab-root">
4418
- - <span class="MuiTab-wrapper">
4570
+ <button class="MuiTab-root">
4571
+ - <span class="MuiTab-wrapper">
4419
4572
  {icon}
4420
4573
  {label}
4421
- - </span>
4422
- </button>
4574
+ - </span>
4575
+ </button>
4423
4576
  ```
4424
4577
 
4425
4578
  - [BottomNavigation] Remove wrapper from BottomNavigationAction (#26923) @siriwatknp
@@ -4427,14 +4580,14 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4427
4580
  `span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui/material-ui/pull/26666).
4428
4581
 
4429
4582
  ```diff
4430
- <button class="MuiBottomNavigationAction-root">
4431
- - <span class="MuiBottomNavigationAction-wrapper">
4432
- {icon}
4433
- <span class="MuiBottomNavigationAction-label">
4434
- {label}
4435
- </span>
4436
- - </span>
4437
- </button>
4583
+ <button class="MuiBottomNavigationAction-root">
4584
+ - <span class="MuiBottomNavigationAction-wrapper">
4585
+ {icon}
4586
+ <span class="MuiBottomNavigationAction-label">
4587
+ {label}
4588
+ </span>
4589
+ - </span>
4590
+ </button>
4438
4591
  ```
4439
4592
 
4440
4593
  #### Changes
@@ -4467,15 +4620,15 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4467
4620
  Make the default rendered text field closer to the most common use cases (denser).
4468
4621
 
4469
4622
  ```diff
4470
- <DatePicker
4471
- label="Helper text example"
4472
- value={value}
4473
- onChange={onChange}
4474
- renderInput={(params) => (
4623
+ <DatePicker
4624
+ label="Helper text example"
4625
+ value={value}
4626
+ onChange={onChange}
4627
+ renderInput={(params) => (
4475
4628
  - <TextField {...params} />
4476
4629
  + <TextField {...params} helperText={params?.inputProps?.placeholder} />
4477
- )}
4478
- >
4630
+ )}
4631
+ >
4479
4632
  ```
4480
4633
 
4481
4634
  #### Changes
@@ -4537,7 +4690,7 @@ _Jun 23, 2021_
4537
4690
  A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
4538
4691
 
4539
4692
  - 🚀 We have only 2 left in the [breaking changes](https://github.com/mui/material-ui/issues/20012). The plan to release 5.0.0-beta.0 is on July 1st and will start to promote its usage over v4.
4540
- - 🎨 We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
4693
+ - 🎨 We have updated `Slider` to match current [Material Design guidelines](https://m2.material.io/components/sliders).
4541
4694
 
4542
4695
  <a href="https://mui.com/components/slider/#continuous-sliders"><img width="247" alt="" src="https://user-images.githubusercontent.com/3165635/121884800-a8808600-cd13-11eb-8cdf-e25de8f1ba73.png" style="margin: auto"></a>
4543
4696
 
@@ -4581,16 +4734,16 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4581
4734
  The default breakpoints were changed to better match the common use cases. They also better match the Material Design guidelines. [Read more about the change](https://github.com/mui/material-ui/issues/21902).
4582
4735
 
4583
4736
  ```diff
4584
- {
4585
- xs: 0,
4586
- sm: 600,
4587
- - md: 960,
4588
- + md: 900,
4589
- - lg: 1280,
4590
- + lg: 1200,
4591
- - xl: 1920,
4592
- + xl: 1536,
4593
- }
4737
+ {
4738
+ xs: 0,
4739
+ sm: 600,
4740
+ - md: 960,
4741
+ + md: 900,
4742
+ - lg: 1280,
4743
+ + lg: 1200,
4744
+ - xl: 1920,
4745
+ + xl: 1536,
4746
+ }
4594
4747
  ```
4595
4748
 
4596
4749
  If you prefer the old breakpoint values, use the snippet below.
@@ -4622,7 +4775,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4622
4775
 
4623
4776
  - &#8203;<!-- 08 -->[Slider] Adjust css to match the specification (#26632) @siriwatknp
4624
4777
 
4625
- Rework the CSS to match the latest [Material Design guidelines](https://material.io/components/sliders) and make custom styles more intuitive. [See documentation](https://mui.com/components/slider/).
4778
+ Rework the CSS to match the latest [Material Design guidelines](https://m2.material.io/components/sliders) and make custom styles more intuitive. [See documentation](https://mui.com/components/slider/).
4626
4779
 
4627
4780
  <a href="https://mui.com/components/slider/#continuous-sliders"><img width="247" alt="" src="https://user-images.githubusercontent.com/3165635/121884800-a8808600-cd13-11eb-8cdf-e25de8f1ba73.png" style="margin: auto"></a>
4628
4781
 
@@ -4635,11 +4788,11 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4635
4788
  `span` element that wraps children has been removed. `label` classKey is also removed. More details about [this change](https://github.com/mui/material-ui/pull/26666).
4636
4789
 
4637
4790
  ```diff
4638
- <button class="MuiIconButton-root">
4639
- - <span class="MuiIconButton-label">
4640
- <svg />
4641
- - </span>
4642
- </button>
4791
+ <button class="MuiIconButton-root">
4792
+ - <span class="MuiIconButton-label">
4793
+ <svg />
4794
+ - </span>
4795
+ </button>
4643
4796
  ```
4644
4797
 
4645
4798
  - &#8203;<!-- 19 -->[core] Remove `unstable_` prefix on the `useThemeProps` hook (#26777) @mnajdova
@@ -4765,11 +4918,11 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4765
4918
  The `span` element that wraps children has been removed. `label` classKey is also removed. The nested span was required for fixing a flexbox issue with iOS < 11.0.
4766
4919
 
4767
4920
  ```diff
4768
- <button class="MuiButton-root">
4769
- - <span class="MuiButton-label">
4770
- children
4771
- - </span>
4772
- </button>
4921
+ <button class="MuiButton-root">
4922
+ - <span class="MuiButton-label">
4923
+ children
4924
+ - </span>
4925
+ </button>
4773
4926
  ```
4774
4927
 
4775
4928
  #### Changes
@@ -4798,7 +4951,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4798
4951
  + const theme = useTheme();
4799
4952
  + const isRtl = theme.direction === 'rtl';
4800
4953
  //.. rest of the code
4801
- }
4954
+ }
4802
4955
  ```
4803
4956
 
4804
4957
  #### Changes
@@ -4870,7 +5023,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4870
5023
 
4871
5024
  - &#8203;<!-- 10 -->[AppBar] Fix background color on dark mode (#26545) @siriwatknp
4872
5025
 
4873
- The `color` prop has no longer any effect in dark mode. The app bar uses the background color required by the elevation to follow the [Material Design guidelines](https://material.io/design/color/dark-theme.html). Use `enableColorOnDark` to restore the behavior of v4.
5026
+ The `color` prop has no longer any effect in dark mode. The app bar uses the background color required by the elevation to follow the [Material Design guidelines](https://m2.material.io/design/color/dark-theme.html). Use `enableColorOnDark` to restore the behavior of v4.
4874
5027
 
4875
5028
  ```jsx
4876
5029
  <AppBar enableColorOnDark />
@@ -4921,13 +5074,14 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4921
5074
  - &#8203;<!-- 29 -->[pickers] Remove `openPickerIcon` prop in favor of `components.OpenPickerIcon` (#26223) @vedadeepta
4922
5075
 
4923
5076
  ```diff
4924
- <DateTimePicker
4925
- components={{
4926
- LeftArrowIcon: AlarmIcon,
4927
- RightArrowIcon: SnoozeIcon,
4928
- + OpenPickerIcon: ClockIcon,
4929
- }}
4930
- - openPickerIcon={<ClockIcon />}
5077
+ <DateTimePicker
5078
+ components={{
5079
+ LeftArrowIcon: AlarmIcon,
5080
+ RightArrowIcon: SnoozeIcon,
5081
+ + OpenPickerIcon: ClockIcon,
5082
+ }}
5083
+ - openPickerIcon={<ClockIcon />}
5084
+ >
4931
5085
  ```
4932
5086
 
4933
5087
  ### `@material-ui/system@5.0.0-alpha.36`
@@ -5031,8 +5185,8 @@ A big thanks to the 14 contributors who made this release possible. Here are som
5031
5185
 
5032
5186
  Update the implementation to better match Material Design:
5033
5187
 
5034
- - Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://material.io/components/tabs#specs)
5035
- - Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://material.io/components/tabs#specs)
5188
+ - Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://m2.material.io/components/tabs#specs)
5189
+ - Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://m2.material.io/components/tabs#specs)
5036
5190
 
5037
5191
  #### Changes
5038
5192
 
@@ -5150,10 +5304,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5150
5304
  Move the custom class on `input` to `select`. The `input` key is being applied on another element.
5151
5305
 
5152
5306
  ```diff
5153
- <TablePagination
5154
- - classes={{ input: 'foo' }}
5155
- + classes={{ select: 'foo' }}
5156
- />
5307
+ <TablePagination
5308
+ - classes={{ input: 'foo' }}
5309
+ + classes={{ select: 'foo' }}
5310
+ />
5157
5311
  ```
5158
5312
 
5159
5313
  - &#8203;<!-- 45 -->[core] Move `StyledEngineProvider` to `@material-ui/core/styles` (#26265) @mnajdova
@@ -5198,10 +5352,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5198
5352
  - &#8203;<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
5199
5353
 
5200
5354
  ```diff
5201
- <Autocomplete
5355
+ <Autocomplete
5202
5356
  - getOptionSelected={(option, value) => option.title === value.title}
5203
5357
  + isOptionEqualToValue={(option, value) => option.title === value.title}
5204
- />
5358
+ />
5205
5359
  ```
5206
5360
 
5207
5361
  > Follow [this link](https://mui.com/material-ui/migration/migration-v4/) for full migration from v4 => v5
@@ -5304,18 +5458,20 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5304
5458
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5305
5459
 
5306
5460
  ```diff
5307
- import * as React from 'react';
5308
- import { withStyles } from '@material-ui/core/styles';
5309
- const MyComponent = withStyles({
5310
- root: {
5311
- backgroundColor: 'red',
5312
- },
5313
- })(({ classes }) => <div className={classes.root} />);
5314
- function MyOtherComponent(props) {
5315
- const ref = React.useRef();
5316
- - return <MyComponent innerRef={ref} />;
5317
- + return <MyComponent ref={ref} />;
5318
- }
5461
+ import * as React from 'react';
5462
+ import { withStyles } from '@material-ui/core/styles';
5463
+
5464
+ const MyComponent = withStyles({
5465
+ root: {
5466
+ backgroundColor: 'red',
5467
+ },
5468
+ })(({ classes }) => <div className={classes.root} />);
5469
+
5470
+ function MyOtherComponent(props) {
5471
+ const ref = React.useRef();
5472
+ - return <MyComponent innerRef={ref} />;
5473
+ + return <MyComponent ref={ref} />;
5474
+ }
5319
5475
  ```
5320
5476
 
5321
5477
  **withTheme**
@@ -5323,14 +5479,16 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5323
5479
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5324
5480
 
5325
5481
  ```diff
5326
- import * as React from 'react';
5327
- import { withTheme } from '@material-ui/core/styles';
5328
- const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
5329
- function MyOtherComponent(props) {
5330
- const ref = React.useRef();
5331
- - return <MyComponent innerRef={ref} />;
5332
- + return <MyComponent ref={ref} />;
5333
- }
5482
+ import * as React from 'react';
5483
+ import { withTheme } from '@material-ui/core/styles';
5484
+
5485
+ const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
5486
+
5487
+ function MyOtherComponent(props) {
5488
+ const ref = React.useRef();
5489
+ - return <MyComponent innerRef={ref} />;
5490
+ + return <MyComponent ref={ref} />;
5491
+ }
5334
5492
  ```
5335
5493
 
5336
5494
  - &#8203;<!-- 10 -->[theme] Rename `createMuiTheme` to `createTheme` (#25992) @m4theushw
@@ -5672,23 +5830,23 @@ A big thanks to the 15 contributors who made this release possible. Here are som
5672
5830
  - &#8203;<!-- 41 -->[Checkbox][switch] Remove checked argument from onChange (#25871) @m4theushw
5673
5831
 
5674
5832
  ```diff
5675
- function MyCheckbox() {
5676
- - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5677
- + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5678
- + const checked = event.target.checked;
5679
- };
5680
- return <Checkbox onChange={handleChange} />;
5681
- }
5833
+ function MyCheckbox() {
5834
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5835
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5836
+ + const checked = event.target.checked;
5837
+ };
5838
+ return <Checkbox onChange={handleChange} />;
5839
+ }
5682
5840
  ```
5683
5841
 
5684
5842
  ```diff
5685
- function MySwitch() {
5686
- - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5687
- + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5688
- + const checked = event.target.checked;
5689
- };
5690
- return <Switch onChange={handleChange} />;
5691
- }
5843
+ function MySwitch() {
5844
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5845
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5846
+ + const checked = event.target.checked;
5847
+ };
5848
+ return <Switch onChange={handleChange} />;
5849
+ }
5692
5850
  ```
5693
5851
 
5694
5852
  - &#8203;<!-- 42 -->[theme] Remove theme.breakpoints.width helper (#25918) @m4theushw
@@ -5843,12 +6001,12 @@ A big thanks to the 19 contributors who made this release possible. Here are som
5843
6001
  -import DayPicker from '@material-ui/lab/DayPicker';
5844
6002
  +import CalendarPicker from '@material-ui/lab/CalendarPicker';
5845
6003
 
5846
- createMuiTheme({
5847
- components: {
5848
- - MuiDayPicker: {},
5849
- + MuiCalendarPicker: {},
5850
- }
5851
- })
6004
+ createMuiTheme({
6005
+ components: {
6006
+ - MuiDayPicker: {},
6007
+ + MuiCalendarPicker: {},
6008
+ }
6009
+ })
5852
6010
  ```
5853
6011
 
5854
6012
  - &#8203;<!-- 04 -->[Pickers] Rename PickersCalendarSkeleton to CalendarPickerSkeleton (#25679) @eps1lon
@@ -6372,10 +6530,10 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6372
6530
 
6373
6531
  - &#8203;<!-- 087 -->[icons] Synchronize icons (#25055) @eps1lon
6374
6532
 
6375
- The icons were synchronized with https://material.io/resources/icons/. This change increases the number of supported icons from 1,349 to 1,781 per theme (we support 5 themes). The breaking changes:
6533
+ The icons were synchronized with https://m2.material.io/resources/icons/. This change increases the number of supported icons from 1,349 to 1,781 per theme (we support 5 themes). The breaking changes:
6376
6534
 
6377
6535
  ```diff
6378
- // AmpStories -> Download
6536
+ // AmpStories -> Download
6379
6537
  -AmpStories
6380
6538
  +Download
6381
6539
  -AmpStoriesOutlined
@@ -6386,7 +6544,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6386
6544
  +DownloadSharp
6387
6545
  -AmpStoriesTwoTone
6388
6546
  +DownloadTwoTone
6389
- // Outbond -> Outbound
6547
+ // Outbond -> Outbound
6390
6548
  -Outbond
6391
6549
  +Outbound
6392
6550
  -OutbondOutlined
@@ -6563,10 +6721,10 @@ A big thanks to the 30 contributors who made this release possible. Here are som
6563
6721
  If you were using a number previously, you need to provide the value in `px` to bypass the new transformation with `theme.spacing`. The change was done for consistency with the Grid spacing prop and the other system spacing properties, e.g. `<Box padding={2}>`.
6564
6722
 
6565
6723
  ```diff
6566
- <Box
6567
- - gap={2}
6568
- + gap="2px"
6569
- >
6724
+ <Box
6725
+ - gap={2}
6726
+ + gap="2px"
6727
+ >
6570
6728
  ```
6571
6729
 
6572
6730
  ### `@material-ui/styled-engine@5.0.0-alpha.25`
@@ -6807,14 +6965,14 @@ A big thanks to the 15 contributors who made this release possible. Here are som
6807
6965
  --- a/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6808
6966
  +++ b/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6809
6967
  @@ -3,7 +3,7 @@ import TextField from '@material-ui/core/TextField';
6810
- import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
6811
- import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
6812
- import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
6968
+ import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
6969
+ import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
6970
+ import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
6813
6971
  -import DateRangeDelimiter from '@material-ui/lab/DateRangeDelimiter';
6814
6972
  +import Box from '@material-ui/core/Box';
6815
6973
 
6816
- export default function BasicDateRangePicker() {
6817
- const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
6974
+ export default function BasicDateRangePicker() {
6975
+ const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
6818
6976
  @@ -20,7 +20,7 @@ export default function BasicDateRangePicker() {
6819
6977
  renderInput={(startProps, endProps) => (
6820
6978
  <React.Fragment>
@@ -7356,42 +7514,42 @@ A big thanks to the 18 contributors who made this release possible. Here are som
7356
7514
  - [Dialog] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7357
7515
 
7358
7516
  ```diff
7359
- <Dialog
7360
- - disableBackdropClick
7361
- - onClose={handleClose}
7362
- + onClose={(event, reason) => {
7363
- + if (reason !== 'backdropClick') {
7364
- + onClose(event, reason);
7365
- + }
7366
- + }}
7367
- />
7517
+ <Dialog
7518
+ - disableBackdropClick
7519
+ - onClose={handleClose}
7520
+ + onClose={(event, reason) => {
7521
+ + if (reason !== 'backdropClick') {
7522
+ + onClose(event, reason);
7523
+ + }
7524
+ + }}
7525
+ />
7368
7526
  ```
7369
7527
 
7370
7528
  - [Modal] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7371
7529
 
7372
7530
  ```diff
7373
- <Modal
7374
- - disableBackdropClick
7375
- - onClose={handleClose}
7376
- + onClose={(event, reason) => {
7377
- + if (reason !== 'backdropClick') {
7378
- + onClose(event, reason);
7379
- + }
7380
- + }}
7381
- />
7531
+ <Modal
7532
+ - disableBackdropClick
7533
+ - onClose={handleClose}
7534
+ + onClose={(event, reason) => {
7535
+ + if (reason !== 'backdropClick') {
7536
+ + onClose(event, reason);
7537
+ + }
7538
+ + }}
7539
+ />
7382
7540
  ```
7383
7541
 
7384
7542
  - [Modal] Remove the `onEscapeKeyDown` prop. It's redundant with the `reason` argument. (#23571) @eps1lon
7385
7543
 
7386
7544
  ```diff
7387
- <Modal
7545
+ <Modal
7388
7546
  - onEscapeKeyDown={handleEscapeKeyDown}
7389
7547
  + onClose={(event, reason) => {
7390
7548
  + if (reason === "escapeKeyDown") {
7391
7549
  + handleEscapeKeyDown(event);
7392
7550
  + }
7393
7551
  + }}
7394
- />;
7552
+ />;
7395
7553
  ```
7396
7554
 
7397
7555
  #### Changes
@@ -7744,10 +7902,10 @@ Here are some highlights ✨:
7744
7902
  - The CSS prefixes have changed:
7745
7903
 
7746
7904
  ```diff
7747
- popper: {
7748
- zIndex: 1,
7749
- - '&[x-placement*="bottom"] $arrow': {
7750
- + '&[data-popper-placement*="bottom"] $arrow': {
7905
+ popper: {
7906
+ zIndex: 1,
7907
+ - '&[x-placement*="bottom"] $arrow': {
7908
+ + '&[data-popper-placement*="bottom"] $arrow': {
7751
7909
  ```
7752
7910
 
7753
7911
  - Method names have changed.
@@ -7771,13 +7929,13 @@ Here are some highlights ✨:
7771
7929
  -import withMobileDialog from '@material-ui/core/withMobileDialog';
7772
7930
  +import { useTheme, useMediaQuery } from '@material-ui/core';
7773
7931
 
7774
- function ResponsiveDialog(props) {
7775
- - const { fullScreen } = props;
7776
- + const theme = useTheme();
7777
- + const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
7778
- const [open, setOpen] = React.useState(false);
7932
+ function ResponsiveDialog(props) {
7933
+ - const { fullScreen } = props;
7934
+ + const theme = useTheme();
7935
+ + const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
7936
+ const [open, setOpen] = React.useState(false);
7779
7937
 
7780
- // ...
7938
+ // ...
7781
7939
 
7782
7940
  -export default withMobileDialog()(ResponsiveDialog);
7783
7941
  +export default ResponsiveDialog;
@@ -8023,24 +8181,24 @@ Here are some highlights ✨:
8023
8181
  The change was done to match the API convention.
8024
8182
 
8025
8183
  ```diff
8026
- <TablePagination
8027
- - onChangeRowsPerPage={()=>{}}
8028
- - onChangePage={()=>{}}
8029
- + onRowsPerPageChange={()=>{}}
8030
- + onPageChange={()=>{}}
8184
+ <TablePagination
8185
+ - onChangeRowsPerPage={()=>{}}
8186
+ - onChangePage={()=>{}}
8187
+ + onRowsPerPageChange={()=>{}}
8188
+ + onPageChange={()=>{}}
8031
8189
  ```
8032
8190
 
8033
8191
  - [theme] Rename fade to alpha (#22834) @mnajdova
8034
8192
  Better describe its functionality. The previous name was leading to confusion when the input color already had an alpha value. The helper **overrides** the alpha value of the color.
8035
8193
 
8036
8194
  ```diff
8037
- - import { fade } from '@material-ui/core/styles';
8038
- + import { alpha } from '@material-ui/core/styles';
8195
+ -import { fade } from '@material-ui/core/styles';
8196
+ +import { alpha } from '@material-ui/core/styles';
8039
8197
 
8040
- const classes = makeStyles(theme => ({
8198
+ const classes = makeStyles(theme => ({
8041
8199
  - backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8042
8200
  + backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8043
- }));
8201
+ }));
8044
8202
  ```
8045
8203
 
8046
8204
  - [Tooltip] Make `interactive` default (#22382) @eps1lon
@@ -8051,7 +8209,7 @@ Here are some highlights ✨:
8051
8209
  ```diff
8052
8210
  -<Tooltip>
8053
8211
  +<Tooltip disableInteractive>
8054
- # Interactive tooltips no longer need the `interactive` prop.
8212
+ # Interactive tooltips no longer need the `interactive` prop.
8055
8213
  -<Tooltip interactive>
8056
8214
  +<Tooltip>
8057
8215
  ```
@@ -8299,7 +8457,7 @@ Here are some highlights ✨:
8299
8457
  Renames `theme.palette.type` to `theme.palette.mode`, to better follow the "dark mode" term that is usually used for describing this feature.
8300
8458
 
8301
8459
  ```diff
8302
- import { createMuiTheme } from '@material-ui/core/styles';
8460
+ import { createMuiTheme } from '@material-ui/core/styles';
8303
8461
 
8304
8462
  -const theme = createMuiTheme({palette: { type: 'dark' }}),
8305
8463
  +const theme = createMuiTheme({palette: { mode: 'dark' }}),
@@ -8364,22 +8522,22 @@ Here are some highlights ✨:
8364
8522
  You can recover from the change with:
8365
8523
 
8366
8524
  ```diff
8367
- <Autocomplete
8368
- - renderOption={(option, { selected }) => (
8369
- - <React.Fragment>
8370
- + renderOption={(props, option, { selected }) => (
8371
- + <li {...props}>
8372
- <Checkbox
8373
- icon={icon}
8374
- checkedIcon={checkedIcon}
8375
- style={{ marginRight: 8 }}
8376
- checked={selected}
8377
- />
8378
- {option.title}
8379
- - </React.Fragment>
8380
- + </li>
8381
- )}
8382
- />
8525
+ <Autocomplete
8526
+ - renderOption={(option, { selected }) => (
8527
+ - <React.Fragment>
8528
+ + renderOption={(props, option, { selected }) => (
8529
+ + <li {...props}>
8530
+ <Checkbox
8531
+ icon={icon}
8532
+ checkedIcon={checkedIcon}
8533
+ style={{ marginRight: 8 }}
8534
+ checked={selected}
8535
+ />
8536
+ {option.title}
8537
+ - </React.Fragment>
8538
+ + </li>
8539
+ )}
8540
+ />
8383
8541
  ```
8384
8542
 
8385
8543
  #### Changes
@@ -8465,12 +8623,12 @@ Here are some highlights ✨:
8465
8623
  Rename `focused` to `focusVisible` for consistency with the other components:
8466
8624
 
8467
8625
  ```diff
8468
- <Accordion
8469
- classes={{
8470
- - focused: 'custom-focus-visible-classname',
8471
- + focusVisible: 'custom-focus-visible-classname',
8472
- }}
8473
- />
8626
+ <Accordion
8627
+ classes={{
8628
+ - focused: 'custom-focus-visible-classname',
8629
+ + focusVisible: 'custom-focus-visible-classname',
8630
+ }}
8631
+ />
8474
8632
  ```
8475
8633
 
8476
8634
  - [Stepper] Remove Paper and built-in padding (#22564) @mbrookes
@@ -8550,10 +8708,10 @@ Here are some highlights ✨:
8550
8708
  If you have a custom `icon` prop but no `emptyIcon` prop, you can restore the previous behavior with:
8551
8709
 
8552
8710
  ```diff
8553
- <Rating
8554
- icon={customIcon}
8555
- + emptyIcon={null}
8556
- />
8711
+ <Rating
8712
+ icon={customIcon}
8713
+ + emptyIcon={null}
8714
+ />
8557
8715
  ```
8558
8716
 
8559
8717
  #### Changes
@@ -8679,9 +8837,9 @@ const theme = createMuiTheme({
8679
8837
  1. `props`
8680
8838
 
8681
8839
  ```diff
8682
- import { createMuiTheme } from '@material-ui/core/styles';
8840
+ import { createMuiTheme } from '@material-ui/core/styles';
8683
8841
 
8684
- const theme = createMuiTheme({
8842
+ const theme = createMuiTheme({
8685
8843
  - props: {
8686
8844
  - MuiButton: {
8687
8845
  - disableRipple: true,
@@ -8694,15 +8852,15 @@ const theme = createMuiTheme({
8694
8852
  + },
8695
8853
  + },
8696
8854
  + },
8697
- });
8855
+ });
8698
8856
  ```
8699
8857
 
8700
8858
  2. `overrides`
8701
8859
 
8702
8860
  ```diff
8703
- import { createMuiTheme } from '@material-ui/core/styles';
8861
+ import { createMuiTheme } from '@material-ui/core/styles';
8704
8862
 
8705
- const theme = createMuiTheme({
8863
+ const theme = createMuiTheme({
8706
8864
  - overrides: {
8707
8865
  - MuiButton: {
8708
8866
  - root: { padding: 0 },
@@ -8715,7 +8873,7 @@ const theme = createMuiTheme({
8715
8873
  + },
8716
8874
  + },
8717
8875
  + },
8718
- });
8876
+ });
8719
8877
  ```
8720
8878
 
8721
8879
  Note that if you don't have the time to upgrade the structure of the theme, you
@@ -8826,7 +8984,7 @@ Here are some highlights ✨:
8826
8984
  The onE\* transition props were removed. Use TransitionProps instead.
8827
8985
 
8828
8986
  ```diff
8829
- <Menu
8987
+ <Menu
8830
8988
  - onEnter={onEnter}
8831
8989
  - onEntered={onEntered},
8832
8990
  - onEntering={onEntered},
@@ -8841,14 +8999,14 @@ Here are some highlights ✨:
8841
8999
  + onExited,
8842
9000
  + onExiting,
8843
9001
  + }}
8844
- >
9002
+ >
8845
9003
  ```
8846
9004
 
8847
9005
  - [Popover] Remove transition onX props (#22184) @mbrookes
8848
9006
  The onE\* transition props were removed. Use TransitionProps instead.
8849
9007
 
8850
9008
  ```diff
8851
- <Popover
9009
+ <Popover
8852
9010
  - onEnter={onEnter}
8853
9011
  - onEntered={onEntered},
8854
9012
  - onEntering={onEntered},
@@ -8863,7 +9021,7 @@ Here are some highlights ✨:
8863
9021
  + onExited,
8864
9022
  + onExiting,
8865
9023
  + }}
8866
- />
9024
+ />
8867
9025
  ```
8868
9026
 
8869
9027
  - [TextField] Improve line-height reset (#22149) @imnasnainaec
@@ -9017,7 +9175,7 @@ Here are some highlights ✨:
9017
9175
  The onE\* transition props were removed. Use TransitionProps instead.
9018
9176
 
9019
9177
  ```diff
9020
- <Dialog
9178
+ <Dialog
9021
9179
  - onEnter={onEnter}
9022
9180
  - onEntered={onEntered},
9023
9181
  - onEntering={onEntered},
@@ -9032,7 +9190,7 @@ Here are some highlights ✨:
9032
9190
  + onExited,
9033
9191
  + onExiting,
9034
9192
  + }}
9035
- />
9193
+ />
9036
9194
  ```
9037
9195
 
9038
9196
  - [Fab] Rename round -> circular for consistency (#21903) @kodai3
@@ -9079,7 +9237,7 @@ Here are some highlights ✨:
9079
9237
  The onE\* transition props were removed. Use TransitionProps instead.
9080
9238
 
9081
9239
  ```diff
9082
- <Snackbar
9240
+ <Snackbar
9083
9241
  - onEnter={onEnter}
9084
9242
  - onEntered={onEntered},
9085
9243
  - onEntering={onEntered},
@@ -9094,7 +9252,7 @@ Here are some highlights ✨:
9094
9252
  + onExited,
9095
9253
  + onExiting,
9096
9254
  + }}
9097
- />
9255
+ />
9098
9256
  ```
9099
9257
 
9100
9258
  - [TextareaAutosize] Rename rowsMax->maxRows & rowsMin->minRows (#21873) @mhayk
@@ -9463,21 +9621,21 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9463
9621
  It prevents inconsistent height on scaled screens. For people customizing the color of the border, the change requires changing the override CSS property:
9464
9622
 
9465
9623
  ```diff
9466
- .MuiDivider-root {
9467
- - background-color: #f00;
9468
- + border-color: #f00;
9469
- }
9624
+ .MuiDivider-root {
9625
+ - background-color: #f00;
9626
+ + border-color: #f00;
9627
+ }
9470
9628
  ```
9471
9629
 
9472
9630
  - [Rating] Rename `visuallyhidden` to `visuallyHidden` for consistency (#21413) @mnajdova.
9473
9631
 
9474
9632
  ```diff
9475
- <Rating
9476
- classes={{
9633
+ <Rating
9634
+ classes={{
9477
9635
  - visuallyhidden: 'custom-visually-hidden-classname',
9478
9636
  + visuallyHidden: 'custom-visually-hidden-classname',
9479
- }}
9480
- />
9637
+ }}
9638
+ />
9481
9639
  ```
9482
9640
 
9483
9641
  - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
@@ -9497,10 +9655,10 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9497
9655
  The customization of the table pagination's actions labels must be done with the `getItemAriaLabel` prop. This increases consistency with the `Pagination` component.
9498
9656
 
9499
9657
  ```diff
9500
- <TablePagination
9501
- - backIconButtonText="Avant"
9502
- - nextIconButtonText="Après
9503
- + getItemAriaLabel={…}
9658
+ <TablePagination
9659
+ - backIconButtonText="Avant"
9660
+ - nextIconButtonText="Après
9661
+ + getItemAriaLabel={…}
9504
9662
  ```
9505
9663
 
9506
9664
  - [ExpansionPanel] Rename to Accordion (#21494) @mnajdova.