@mui/lab 5.0.0-alpha.104 → 5.0.0-alpha.106

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 (66) hide show
  1. package/CHANGELOG.md +356 -194
  2. package/LoadingButton/loadingButtonClasses.js +2 -1
  3. package/Masonry/masonryClasses.js +2 -1
  4. package/TabPanel/tabPanelClasses.js +2 -1
  5. package/Timeline/Timeline.js +4 -3
  6. package/Timeline/timelineClasses.js +2 -1
  7. package/TimelineConnector/timelineConnectorClasses.js +2 -1
  8. package/TimelineContent/timelineContentClasses.js +2 -1
  9. package/TimelineDot/timelineDotClasses.js +2 -1
  10. package/TimelineItem/TimelineItem.js +4 -3
  11. package/TimelineItem/timelineItemClasses.js +2 -1
  12. package/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -1
  13. package/TimelineSeparator/timelineSeparatorClasses.js +2 -1
  14. package/TreeItem/treeItemClasses.js +2 -1
  15. package/TreeView/TreeView.js +2 -0
  16. package/TreeView/treeViewClasses.js +2 -1
  17. package/index.js +1 -1
  18. package/legacy/LoadingButton/loadingButtonClasses.js +2 -1
  19. package/legacy/Masonry/masonryClasses.js +2 -1
  20. package/legacy/TabPanel/tabPanelClasses.js +2 -1
  21. package/legacy/Timeline/Timeline.js +6 -3
  22. package/legacy/Timeline/timelineClasses.js +2 -1
  23. package/legacy/TimelineConnector/timelineConnectorClasses.js +2 -1
  24. package/legacy/TimelineContent/timelineContentClasses.js +2 -1
  25. package/legacy/TimelineDot/timelineDotClasses.js +2 -1
  26. package/legacy/TimelineItem/TimelineItem.js +6 -3
  27. package/legacy/TimelineItem/timelineItemClasses.js +2 -1
  28. package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -1
  29. package/legacy/TimelineSeparator/timelineSeparatorClasses.js +2 -1
  30. package/legacy/TreeItem/treeItemClasses.js +2 -1
  31. package/legacy/TreeView/TreeView.js +2 -0
  32. package/legacy/TreeView/treeViewClasses.js +2 -1
  33. package/legacy/index.js +1 -1
  34. package/modern/LoadingButton/loadingButtonClasses.js +2 -1
  35. package/modern/Masonry/masonryClasses.js +2 -1
  36. package/modern/TabPanel/tabPanelClasses.js +2 -1
  37. package/modern/Timeline/Timeline.js +4 -3
  38. package/modern/Timeline/timelineClasses.js +2 -1
  39. package/modern/TimelineConnector/timelineConnectorClasses.js +2 -1
  40. package/modern/TimelineContent/timelineContentClasses.js +2 -1
  41. package/modern/TimelineDot/timelineDotClasses.js +2 -1
  42. package/modern/TimelineItem/TimelineItem.js +4 -3
  43. package/modern/TimelineItem/timelineItemClasses.js +2 -1
  44. package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +2 -1
  45. package/modern/TimelineSeparator/timelineSeparatorClasses.js +2 -1
  46. package/modern/TreeItem/treeItemClasses.js +2 -1
  47. package/modern/TreeView/TreeView.js +2 -0
  48. package/modern/TreeView/treeViewClasses.js +2 -1
  49. package/modern/index.js +1 -1
  50. package/node/LoadingButton/loadingButtonClasses.js +7 -3
  51. package/node/Masonry/masonryClasses.js +7 -3
  52. package/node/TabPanel/tabPanelClasses.js +7 -3
  53. package/node/Timeline/Timeline.js +4 -3
  54. package/node/Timeline/timelineClasses.js +7 -3
  55. package/node/TimelineConnector/timelineConnectorClasses.js +7 -3
  56. package/node/TimelineContent/timelineContentClasses.js +7 -3
  57. package/node/TimelineDot/timelineDotClasses.js +7 -3
  58. package/node/TimelineItem/TimelineItem.js +4 -3
  59. package/node/TimelineItem/timelineItemClasses.js +7 -3
  60. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +7 -3
  61. package/node/TimelineSeparator/timelineSeparatorClasses.js +7 -3
  62. package/node/TreeItem/treeItemClasses.js +7 -3
  63. package/node/TreeView/TreeView.js +2 -0
  64. package/node/TreeView/treeViewClasses.js +7 -3
  65. package/node/index.js +1 -1
  66. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,161 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.10.12
4
+
5
+ <!-- generated comparing v5.10.11..master -->
6
+
7
+ _Oct 31, 2022_
8
+
9
+ A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🚀 The LinearProgress component has been added to Joy UI by @hbjORbj (#34514).
12
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
13
+
14
+ ### `@mui/material@5.10.12`
15
+
16
+ - &#8203;<!-- 37 -->[Chip] Don't override icon color (#34247) @emlai
17
+ - &#8203;<!-- 09 -->[Radio] Skip default hover style when disableRipple is set (#34902) @VinceCYLiao
18
+ - &#8203;<!-- 08 -->[SwipeableDrawer] Fix React 18 issues (#34505) @mnajdova
19
+ - &#8203;<!-- 05 -->[Tooltip] Save a few bytes (#34853) @oliviertassinari
20
+
21
+ ### `@mui/base@5.0.0-alpha.104`
22
+
23
+ - &#8203;<!-- 38 -->[ButtonUnstyled] Update to render as link when href or to is provided (#34337) @EduardoSCosta
24
+
25
+ ### `@mui/joy@5.0.0-alpha.52`
26
+
27
+ - &#8203;<!-- 36 -->[Joy][circularprogress] Prevent new styles from being generated when `value` changes (#34897) @hbjORbj
28
+ - &#8203;<!-- 11 -->[Joy] Add color inversion feature (#32511) @siriwatknp
29
+ - &#8203;<!-- 10 -->[Joy] Add `LinearProgress` component (#34514) @hbjORbj
30
+
31
+ ### Docs
32
+
33
+ - &#8203;<!-- 40 -->[blog] Add blog post for high-level overview of all MUI products (#34325) @samuelsycamore
34
+ - &#8203;<!-- 39 -->[blog] Fix hydration mistmatch (#34857) @oliviertassinari
35
+ - &#8203;<!-- 21 -->[docs] Revise the Joy UI "Aspect Ratio" page (#34858) @samuelsycamore
36
+ - &#8203;<!-- 20 -->[docs] Fix Safari code font size (#34859) @oliviertassinari
37
+ - &#8203;<!-- 19 -->[docs] Fix spelling mistake (#34955) @punithnayak
38
+ - &#8203;<!-- 18 -->[docs] Fix 404 link of supported Material UI components @oliviertassinari
39
+ - &#8203;<!-- 17 -->[docs] Fix Safari button misalignment (#34861) @oliviertassinari
40
+ - &#8203;<!-- 16 -->[docs] Fix typo in docs title (#34926) @PunitSoniME
41
+ - &#8203;<!-- 25 -->[docs] Fix missing emotion prefixes (#34958) @oliviertassinari
42
+ - &#8203;<!-- 26 -->[docs] Improve UI display for copy code (#34950) @oliviertassinari
43
+ - &#8203;<!-- 15 -->[docs] Standardize all MUI Core "Usage" pages (#34183) @samuelsycamore
44
+ - &#8203;<!-- 14 -->[docs] Update templates' readme files to include required dependencies (#34757) @michaldudak
45
+ - &#8203;<!-- 13 -->[docs] Fix inconsistent theme colors when applying custom colors in playground (#34866) @cherniavskii
46
+ - &#8203;<!-- 12 -->[docs] Fix typo in bottom-navigation.md (#34884) @RoodyCode
47
+ - &#8203;<!-- 07 -->[website] Migrate about-us page to use CSS theme variables (#34919) @brianlu2610
48
+ - &#8203;<!-- 06 -->[website] Migrate Product-Templates page to use CSS theme variables (#34913) @EduardoSCosta
49
+ - &#8203;<!-- 05 -->[website] Migrate career page to use CSS theme variables (#34908) @the-mgi
50
+ - &#8203;<!-- 04 -->[website] Update MUI X open and future roles + about page (#34894) @DanailH
51
+ - &#8203;<!-- 03 -->[website] Remove one DOM node (#34960) @oliviertassinari
52
+ - &#8203;<!-- 02 -->[website] Use `span` for icon image (#34914) @siriwatknp
53
+ - &#8203;<!-- 01 -->[website] Fix subscribe input with Safari (#34869) @oliviertassinari
54
+
55
+ ### Core
56
+
57
+ - &#8203;<!-- 35 -->[core] Ignore compiled icons in CodeQL @oliviertassinari
58
+ - &#8203;<!-- 34 -->[core] Add OSSF Scorecard action (#34854) @oliviertassinari
59
+ - &#8203;<!-- 40 -->[core] Fix extra GitHub Action permission (#34496) @sashashura
60
+ - &#8203;<!-- 33 -->[core] Fix duplicate id @oliviertassinari
61
+ - &#8203;<!-- 41 -->[core] Enforce import \* as React (#34878) @da0x
62
+ - &#8203;<!-- 32 -->[core] A couple of simply fixes from #34870 (#34953) @oliviertassinari
63
+ - &#8203;<!-- 31 -->[core] Migrate outdated pattern to convention @oliviertassinari
64
+ - &#8203;<!-- 30 -->[core] Pin GitHub Actions dependencies (#34929) @renovate[bot]
65
+ - &#8203;<!-- 29 -->[core] Make the reproduction more important in the bug template (#34875) @oliviertassinari
66
+ - &#8203;<!-- 28 -->[core] Fix docs GitHub API rate limit (#34856) @oliviertassinari
67
+ - &#8203;<!-- 42 -->[core] Fix eslint issues (#34964) @mnajdova
68
+ - &#8203;<!-- 27 -->[core] Pin GitHub Action to digests (#34855) @oliviertassinari
69
+ - &#8203;<!-- 26 -->[core] Fix permissions in workflow @oliviertassinari
70
+ - &#8203;<!-- 25 -->[core] memoize context values for react/jsx-no-constructed-context-values (#34849) @Janpot
71
+ - &#8203;<!-- 24 -->[core] Fix @typescript-eslint/default-param-last issues (#34846) @Janpot
72
+ - &#8203;<!-- 23 -->[core] Fix HTML validation error (#34860) @oliviertassinari
73
+ - &#8203;<!-- 22 -->[core] Fix duplicate CodeQL build @oliviertassinari
74
+ - &#8203;<!-- 07 -->[test] Move Firefox tests to CircleCI (#34764) @oliviertassinari
75
+ - &#8203;<!-- 06 -->[test] Use screen when possible for simplicity (#34890) @oliviertassinari
76
+
77
+ All contributors of this release in alphabetical order: @cherniavskii, @DanailH, @EduardoSCosta, @emlai, @hbjORbj, @Janpot, @michaldudak, @mnajdova, @oliviertassinari, @punithnayak, @PunitSoniME, @renovate[bot], @RoodyCode, @samuelsycamore, @siriwatknp, @VinceCYLiao
78
+
79
+ ## v5.10.11
80
+
81
+ <!-- generated comparing v5.10.10..master -->
82
+
83
+ _Oct 25, 2022_
84
+
85
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
86
+
87
+ - 🔧 Moved `components` to `slots` prop starting at MUI Base to create consistency across products
88
+ - Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
89
+
90
+ ### `@mui/material@5.10.11`
91
+
92
+ - [InputBase] Fix `onInvalid` to use HTMLInputElement | HTMLTextAreaElement Element type (#33162) @KuSh
93
+ - [Alert] Add `components` and `componentsProps` props to allow close action overrides (#33582) @jake-collibra
94
+
95
+ ### `@mui/base@5.0.0-alpha.103`
96
+
97
+ #### BREAKING CHANGE
98
+
99
+ - [base] `components` -> `slots` API rename (#34693) @michaldudak
100
+
101
+ - Change all occurrences of components and componentsProps props in Base components to slots and slotProps, respectively.
102
+ - Change casing of slots' fields to camelCase
103
+
104
+ ```diff
105
+ -<SwitchUnstyled components={{Root: CustomRoot}} componentsProps={{rail: { className: 'custom-rail' }}} />
106
+ +<SwitchUnstyled slots={{root: CustomRoot}} slotProps={{rail: { className: 'custom-rail' }}} />
107
+ ```
108
+
109
+ - [base] Make CSS class prefixes consistent (#33411) @michaldudak
110
+
111
+ **This is a breaking change for anyone who depends on the class names applied to Base components.**
112
+ 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.
113
+
114
+ ```diff
115
+ -.ButtonUnstyled-root { ... };
116
+ +.MuiButton-root { ... };
117
+ ```
118
+
119
+ #### Changes
120
+
121
+ - [test] Test all Base components with describeConformanceUnstyled (#34825) @michaldudak
122
+
123
+ ### `@mui/joy@5.0.0-alpha.51`
124
+
125
+ - [CircularProgress][joy] Fix classnames and add test (#34806) @hbjORbj
126
+ - [Joy] Allow string type for `size` prop in components (#34805) @hbjORbj
127
+
128
+ ### Docs
129
+
130
+ - Revert "[docs] Fix search icons in other languages (#34823)" @oliviertassinari
131
+ - Revert "[core] Move SearchIcons to docs src folder (#34802)" @oliviertassinari
132
+ - Revert "[docs] Live demos (#34454)" @oliviertassinari
133
+ - Update the order of operations for pagination example so that slicing takes place after sorting. (#34189) @marceliwac
134
+ - [docs] Gatsby Description in Joy dark-mode (#34702) @pixelass
135
+ - [docs] Add notification for blogpost MUI X v6 alpha (#34809) @joserodolfofreitas
136
+ - [docs] Polish Crowdin config (#34852) @oliviertassinari
137
+ - [docs] Fix a few style standard deviations @oliviertassinari
138
+ - [docs] Enforce no trailing spaces (#34762) @oliviertassinari
139
+ - [docs] Enforce correct git diff format (#34765) @oliviertassinari
140
+ - [docs] Fix Toolpad docs 301 route (#34843) @bharatkashyap
141
+ - [docs] Replace initial value with theme white (#34822) @siriwatknp
142
+ - [docs] Remove localization redirects (#34844) @mnajdova
143
+ - [docs] Fix search icons in other languages (#34823) @siriwatknp
144
+ - [docs] Fix JavaScript capitalization @oliviertassinari
145
+ - [docs] Update new links to MD2 (#34848) @oliviertassinari
146
+ - [website] Update future work items on X landing page (#34810) @joserodolfofreitas
147
+ - [website] Add Toolpad docs to navigation (#34749) @bharatkashyap
148
+
149
+ ### Core
150
+
151
+ - [core] Remove dead files (#34850) @oliviertassinari
152
+ - [core] Fix revert conflict @oliviertassinari
153
+ - [core] Fix a few CodeQL errors (#34766) @oliviertassinari
154
+ - [core] Harden GitHub Actions permissions (#34769) @oliviertassinari
155
+ - [core] Remove the codeowners file (#34876) @michaldudak
156
+
157
+ All contributors of this release in alphabetical order: @bharatkashyap, @hbjORbj, @jake-collibra, @joserodolfofreitas, @KuSh, @marceliwac, @michaldudak, @oliviertassinari, @pixelass, @siriwatknp
158
+
3
159
  ## 5.10.10
4
160
 
5
161
  <!-- generated comparing v5.10.9..master -->
@@ -1701,7 +1857,8 @@ All contributors of this release in alphabetical order: @abhinav-22-tech, @ainat
1701
1857
 
1702
1858
  _Apr 18, 2022_
1703
1859
 
1704
- A big thanks to the 11 contributors who made this release possible. This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1860
+ A big thanks to the 11 contributors who made this release possible.
1861
+ This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1705
1862
 
1706
1863
  ### `@mui/material@5.6.2`
1707
1864
 
@@ -1760,7 +1917,7 @@ All contributors of this release in alphabetical order: @abaker93, @cherniavskii
1760
1917
 
1761
1918
  _Apr 11, 2022_
1762
1919
 
1763
- A big thanks to the 8 contributors who made this release possible.
1920
+ A big thanks to the 8 contributors who made this release possible.
1764
1921
  This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
1765
1922
 
1766
1923
  ### `@mui/material@5.6.1`
@@ -1923,7 +2080,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
1923
2080
  -import { Unstyled_TrapFocus } from '@mui/base';
1924
2081
  +import { TrapFocus } from '@mui/base';
1925
2082
 
1926
- // or
2083
+ // or
1927
2084
 
1928
2085
  -import TrapFocus from '@mui/base/Unstyled_TrapFocus';
1929
2086
  +import TrapFocus from '@mui/base/TrapFocus';
@@ -4539,15 +4696,15 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4539
4696
  Make the default rendered text field closer to the most common use cases (denser).
4540
4697
 
4541
4698
  ```diff
4542
- <DatePicker
4543
- label="Helper text example"
4544
- value={value}
4545
- onChange={onChange}
4546
- renderInput={(params) => (
4699
+ <DatePicker
4700
+ label="Helper text example"
4701
+ value={value}
4702
+ onChange={onChange}
4703
+ renderInput={(params) => (
4547
4704
  - <TextField {...params} />
4548
4705
  + <TextField {...params} helperText={params?.inputProps?.placeholder} />
4549
- )}
4550
- >
4706
+ )}
4707
+ >
4551
4708
  ```
4552
4709
 
4553
4710
  #### Changes
@@ -4609,7 +4766,7 @@ _Jun 23, 2021_
4609
4766
  A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
4610
4767
 
4611
4768
  - 🚀 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.
4612
- - 🎨 We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
4769
+ - 🎨 We have updated `Slider` to match current [Material Design guidelines](https://m2.material.io/components/sliders).
4613
4770
 
4614
4771
  <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>
4615
4772
 
@@ -4653,16 +4810,16 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4653
4810
  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).
4654
4811
 
4655
4812
  ```diff
4656
- {
4657
- xs: 0,
4658
- sm: 600,
4659
- - md: 960,
4660
- + md: 900,
4661
- - lg: 1280,
4662
- + lg: 1200,
4663
- - xl: 1920,
4664
- + xl: 1536,
4665
- }
4813
+ {
4814
+ xs: 0,
4815
+ sm: 600,
4816
+ - md: 960,
4817
+ + md: 900,
4818
+ - lg: 1280,
4819
+ + lg: 1200,
4820
+ - xl: 1920,
4821
+ + xl: 1536,
4822
+ }
4666
4823
  ```
4667
4824
 
4668
4825
  If you prefer the old breakpoint values, use the snippet below.
@@ -4694,7 +4851,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4694
4851
 
4695
4852
  - &#8203;<!-- 08 -->[Slider] Adjust css to match the specification (#26632) @siriwatknp
4696
4853
 
4697
- 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/).
4854
+ 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/).
4698
4855
 
4699
4856
  <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>
4700
4857
 
@@ -4707,11 +4864,11 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4707
4864
  `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).
4708
4865
 
4709
4866
  ```diff
4710
- <button class="MuiIconButton-root">
4711
- - <span class="MuiIconButton-label">
4712
- <svg />
4713
- - </span>
4714
- </button>
4867
+ <button class="MuiIconButton-root">
4868
+ - <span class="MuiIconButton-label">
4869
+ <svg />
4870
+ - </span>
4871
+ </button>
4715
4872
  ```
4716
4873
 
4717
4874
  - &#8203;<!-- 19 -->[core] Remove `unstable_` prefix on the `useThemeProps` hook (#26777) @mnajdova
@@ -4837,11 +4994,11 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4837
4994
  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.
4838
4995
 
4839
4996
  ```diff
4840
- <button class="MuiButton-root">
4841
- - <span class="MuiButton-label">
4842
- children
4843
- - </span>
4844
- </button>
4997
+ <button class="MuiButton-root">
4998
+ - <span class="MuiButton-label">
4999
+ children
5000
+ - </span>
5001
+ </button>
4845
5002
  ```
4846
5003
 
4847
5004
  #### Changes
@@ -4870,7 +5027,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4870
5027
  + const theme = useTheme();
4871
5028
  + const isRtl = theme.direction === 'rtl';
4872
5029
  //.. rest of the code
4873
- }
5030
+ }
4874
5031
  ```
4875
5032
 
4876
5033
  #### Changes
@@ -4942,7 +5099,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4942
5099
 
4943
5100
  - &#8203;<!-- 10 -->[AppBar] Fix background color on dark mode (#26545) @siriwatknp
4944
5101
 
4945
- 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.
5102
+ 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.
4946
5103
 
4947
5104
  ```jsx
4948
5105
  <AppBar enableColorOnDark />
@@ -4993,13 +5150,14 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4993
5150
  - &#8203;<!-- 29 -->[pickers] Remove `openPickerIcon` prop in favor of `components.OpenPickerIcon` (#26223) @vedadeepta
4994
5151
 
4995
5152
  ```diff
4996
- <DateTimePicker
4997
- components={{
4998
- LeftArrowIcon: AlarmIcon,
4999
- RightArrowIcon: SnoozeIcon,
5000
- + OpenPickerIcon: ClockIcon,
5001
- }}
5002
- - openPickerIcon={<ClockIcon />}
5153
+ <DateTimePicker
5154
+ components={{
5155
+ LeftArrowIcon: AlarmIcon,
5156
+ RightArrowIcon: SnoozeIcon,
5157
+ + OpenPickerIcon: ClockIcon,
5158
+ }}
5159
+ - openPickerIcon={<ClockIcon />}
5160
+ >
5003
5161
  ```
5004
5162
 
5005
5163
  ### `@material-ui/system@5.0.0-alpha.36`
@@ -5103,8 +5261,8 @@ A big thanks to the 14 contributors who made this release possible. Here are som
5103
5261
 
5104
5262
  Update the implementation to better match Material Design:
5105
5263
 
5106
- - Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://material.io/components/tabs#specs)
5107
- - Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://material.io/components/tabs#specs)
5264
+ - Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://m2.material.io/components/tabs#specs)
5265
+ - Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://m2.material.io/components/tabs#specs)
5108
5266
 
5109
5267
  #### Changes
5110
5268
 
@@ -5222,10 +5380,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5222
5380
  Move the custom class on `input` to `select`. The `input` key is being applied on another element.
5223
5381
 
5224
5382
  ```diff
5225
- <TablePagination
5226
- - classes={{ input: 'foo' }}
5227
- + classes={{ select: 'foo' }}
5228
- />
5383
+ <TablePagination
5384
+ - classes={{ input: 'foo' }}
5385
+ + classes={{ select: 'foo' }}
5386
+ />
5229
5387
  ```
5230
5388
 
5231
5389
  - &#8203;<!-- 45 -->[core] Move `StyledEngineProvider` to `@material-ui/core/styles` (#26265) @mnajdova
@@ -5270,10 +5428,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5270
5428
  - &#8203;<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
5271
5429
 
5272
5430
  ```diff
5273
- <Autocomplete
5431
+ <Autocomplete
5274
5432
  - getOptionSelected={(option, value) => option.title === value.title}
5275
5433
  + isOptionEqualToValue={(option, value) => option.title === value.title}
5276
- />
5434
+ />
5277
5435
  ```
5278
5436
 
5279
5437
  > Follow [this link](https://mui.com/material-ui/migration/migration-v4/) for full migration from v4 => v5
@@ -5376,18 +5534,20 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5376
5534
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5377
5535
 
5378
5536
  ```diff
5379
- import * as React from 'react';
5380
- import { withStyles } from '@material-ui/core/styles';
5381
- const MyComponent = withStyles({
5382
- root: {
5383
- backgroundColor: 'red',
5384
- },
5385
- })(({ classes }) => <div className={classes.root} />);
5386
- function MyOtherComponent(props) {
5387
- const ref = React.useRef();
5388
- - return <MyComponent innerRef={ref} />;
5389
- + return <MyComponent ref={ref} />;
5390
- }
5537
+ import * as React from 'react';
5538
+ import { withStyles } from '@material-ui/core/styles';
5539
+
5540
+ const MyComponent = withStyles({
5541
+ root: {
5542
+ backgroundColor: 'red',
5543
+ },
5544
+ })(({ classes }) => <div className={classes.root} />);
5545
+
5546
+ function MyOtherComponent(props) {
5547
+ const ref = React.useRef();
5548
+ - return <MyComponent innerRef={ref} />;
5549
+ + return <MyComponent ref={ref} />;
5550
+ }
5391
5551
  ```
5392
5552
 
5393
5553
  **withTheme**
@@ -5395,14 +5555,16 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5395
5555
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5396
5556
 
5397
5557
  ```diff
5398
- import * as React from 'react';
5399
- import { withTheme } from '@material-ui/core/styles';
5400
- const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
5401
- function MyOtherComponent(props) {
5402
- const ref = React.useRef();
5403
- - return <MyComponent innerRef={ref} />;
5404
- + return <MyComponent ref={ref} />;
5405
- }
5558
+ import * as React from 'react';
5559
+ import { withTheme } from '@material-ui/core/styles';
5560
+
5561
+ const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
5562
+
5563
+ function MyOtherComponent(props) {
5564
+ const ref = React.useRef();
5565
+ - return <MyComponent innerRef={ref} />;
5566
+ + return <MyComponent ref={ref} />;
5567
+ }
5406
5568
  ```
5407
5569
 
5408
5570
  - &#8203;<!-- 10 -->[theme] Rename `createMuiTheme` to `createTheme` (#25992) @m4theushw
@@ -5744,23 +5906,23 @@ A big thanks to the 15 contributors who made this release possible. Here are som
5744
5906
  - &#8203;<!-- 41 -->[Checkbox][switch] Remove checked argument from onChange (#25871) @m4theushw
5745
5907
 
5746
5908
  ```diff
5747
- function MyCheckbox() {
5748
- - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5749
- + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5750
- + const checked = event.target.checked;
5751
- };
5752
- return <Checkbox onChange={handleChange} />;
5753
- }
5909
+ function MyCheckbox() {
5910
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5911
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5912
+ + const checked = event.target.checked;
5913
+ };
5914
+ return <Checkbox onChange={handleChange} />;
5915
+ }
5754
5916
  ```
5755
5917
 
5756
5918
  ```diff
5757
- function MySwitch() {
5758
- - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5759
- + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5760
- + const checked = event.target.checked;
5761
- };
5762
- return <Switch onChange={handleChange} />;
5763
- }
5919
+ function MySwitch() {
5920
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
5921
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
5922
+ + const checked = event.target.checked;
5923
+ };
5924
+ return <Switch onChange={handleChange} />;
5925
+ }
5764
5926
  ```
5765
5927
 
5766
5928
  - &#8203;<!-- 42 -->[theme] Remove theme.breakpoints.width helper (#25918) @m4theushw
@@ -5915,12 +6077,12 @@ A big thanks to the 19 contributors who made this release possible. Here are som
5915
6077
  -import DayPicker from '@material-ui/lab/DayPicker';
5916
6078
  +import CalendarPicker from '@material-ui/lab/CalendarPicker';
5917
6079
 
5918
- createMuiTheme({
5919
- components: {
5920
- - MuiDayPicker: {},
5921
- + MuiCalendarPicker: {},
5922
- }
5923
- })
6080
+ createMuiTheme({
6081
+ components: {
6082
+ - MuiDayPicker: {},
6083
+ + MuiCalendarPicker: {},
6084
+ }
6085
+ })
5924
6086
  ```
5925
6087
 
5926
6088
  - &#8203;<!-- 04 -->[Pickers] Rename PickersCalendarSkeleton to CalendarPickerSkeleton (#25679) @eps1lon
@@ -6444,10 +6606,10 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6444
6606
 
6445
6607
  - &#8203;<!-- 087 -->[icons] Synchronize icons (#25055) @eps1lon
6446
6608
 
6447
- 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:
6609
+ 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:
6448
6610
 
6449
6611
  ```diff
6450
- // AmpStories -> Download
6612
+ // AmpStories -> Download
6451
6613
  -AmpStories
6452
6614
  +Download
6453
6615
  -AmpStoriesOutlined
@@ -6458,7 +6620,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6458
6620
  +DownloadSharp
6459
6621
  -AmpStoriesTwoTone
6460
6622
  +DownloadTwoTone
6461
- // Outbond -> Outbound
6623
+ // Outbond -> Outbound
6462
6624
  -Outbond
6463
6625
  +Outbound
6464
6626
  -OutbondOutlined
@@ -6635,10 +6797,10 @@ A big thanks to the 30 contributors who made this release possible. Here are som
6635
6797
  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}>`.
6636
6798
 
6637
6799
  ```diff
6638
- <Box
6639
- - gap={2}
6640
- + gap="2px"
6641
- >
6800
+ <Box
6801
+ - gap={2}
6802
+ + gap="2px"
6803
+ >
6642
6804
  ```
6643
6805
 
6644
6806
  ### `@material-ui/styled-engine@5.0.0-alpha.25`
@@ -6879,14 +7041,14 @@ A big thanks to the 15 contributors who made this release possible. Here are som
6879
7041
  --- a/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6880
7042
  +++ b/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6881
7043
  @@ -3,7 +3,7 @@ import TextField from '@material-ui/core/TextField';
6882
- import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
6883
- import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
6884
- import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
7044
+ import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
7045
+ import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
7046
+ import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
6885
7047
  -import DateRangeDelimiter from '@material-ui/lab/DateRangeDelimiter';
6886
7048
  +import Box from '@material-ui/core/Box';
6887
7049
 
6888
- export default function BasicDateRangePicker() {
6889
- const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
7050
+ export default function BasicDateRangePicker() {
7051
+ const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
6890
7052
  @@ -20,7 +20,7 @@ export default function BasicDateRangePicker() {
6891
7053
  renderInput={(startProps, endProps) => (
6892
7054
  <React.Fragment>
@@ -7428,42 +7590,42 @@ A big thanks to the 18 contributors who made this release possible. Here are som
7428
7590
  - [Dialog] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7429
7591
 
7430
7592
  ```diff
7431
- <Dialog
7432
- - disableBackdropClick
7433
- - onClose={handleClose}
7434
- + onClose={(event, reason) => {
7435
- + if (reason !== 'backdropClick') {
7436
- + onClose(event, reason);
7437
- + }
7438
- + }}
7439
- />
7593
+ <Dialog
7594
+ - disableBackdropClick
7595
+ - onClose={handleClose}
7596
+ + onClose={(event, reason) => {
7597
+ + if (reason !== 'backdropClick') {
7598
+ + onClose(event, reason);
7599
+ + }
7600
+ + }}
7601
+ />
7440
7602
  ```
7441
7603
 
7442
7604
  - [Modal] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7443
7605
 
7444
7606
  ```diff
7445
- <Modal
7446
- - disableBackdropClick
7447
- - onClose={handleClose}
7448
- + onClose={(event, reason) => {
7449
- + if (reason !== 'backdropClick') {
7450
- + onClose(event, reason);
7451
- + }
7452
- + }}
7453
- />
7607
+ <Modal
7608
+ - disableBackdropClick
7609
+ - onClose={handleClose}
7610
+ + onClose={(event, reason) => {
7611
+ + if (reason !== 'backdropClick') {
7612
+ + onClose(event, reason);
7613
+ + }
7614
+ + }}
7615
+ />
7454
7616
  ```
7455
7617
 
7456
7618
  - [Modal] Remove the `onEscapeKeyDown` prop. It's redundant with the `reason` argument. (#23571) @eps1lon
7457
7619
 
7458
7620
  ```diff
7459
- <Modal
7621
+ <Modal
7460
7622
  - onEscapeKeyDown={handleEscapeKeyDown}
7461
7623
  + onClose={(event, reason) => {
7462
7624
  + if (reason === "escapeKeyDown") {
7463
7625
  + handleEscapeKeyDown(event);
7464
7626
  + }
7465
7627
  + }}
7466
- />;
7628
+ />;
7467
7629
  ```
7468
7630
 
7469
7631
  #### Changes
@@ -7816,10 +7978,10 @@ Here are some highlights ✨:
7816
7978
  - The CSS prefixes have changed:
7817
7979
 
7818
7980
  ```diff
7819
- popper: {
7820
- zIndex: 1,
7821
- - '&[x-placement*="bottom"] $arrow': {
7822
- + '&[data-popper-placement*="bottom"] $arrow': {
7981
+ popper: {
7982
+ zIndex: 1,
7983
+ - '&[x-placement*="bottom"] $arrow': {
7984
+ + '&[data-popper-placement*="bottom"] $arrow': {
7823
7985
  ```
7824
7986
 
7825
7987
  - Method names have changed.
@@ -7843,13 +8005,13 @@ Here are some highlights ✨:
7843
8005
  -import withMobileDialog from '@material-ui/core/withMobileDialog';
7844
8006
  +import { useTheme, useMediaQuery } from '@material-ui/core';
7845
8007
 
7846
- function ResponsiveDialog(props) {
7847
- - const { fullScreen } = props;
7848
- + const theme = useTheme();
7849
- + const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
7850
- const [open, setOpen] = React.useState(false);
8008
+ function ResponsiveDialog(props) {
8009
+ - const { fullScreen } = props;
8010
+ + const theme = useTheme();
8011
+ + const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
8012
+ const [open, setOpen] = React.useState(false);
7851
8013
 
7852
- // ...
8014
+ // ...
7853
8015
 
7854
8016
  -export default withMobileDialog()(ResponsiveDialog);
7855
8017
  +export default ResponsiveDialog;
@@ -8095,24 +8257,24 @@ Here are some highlights ✨:
8095
8257
  The change was done to match the API convention.
8096
8258
 
8097
8259
  ```diff
8098
- <TablePagination
8099
- - onChangeRowsPerPage={()=>{}}
8100
- - onChangePage={()=>{}}
8101
- + onRowsPerPageChange={()=>{}}
8102
- + onPageChange={()=>{}}
8260
+ <TablePagination
8261
+ - onChangeRowsPerPage={()=>{}}
8262
+ - onChangePage={()=>{}}
8263
+ + onRowsPerPageChange={()=>{}}
8264
+ + onPageChange={()=>{}}
8103
8265
  ```
8104
8266
 
8105
8267
  - [theme] Rename fade to alpha (#22834) @mnajdova
8106
8268
  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.
8107
8269
 
8108
8270
  ```diff
8109
- - import { fade } from '@material-ui/core/styles';
8110
- + import { alpha } from '@material-ui/core/styles';
8271
+ -import { fade } from '@material-ui/core/styles';
8272
+ +import { alpha } from '@material-ui/core/styles';
8111
8273
 
8112
- const classes = makeStyles(theme => ({
8274
+ const classes = makeStyles(theme => ({
8113
8275
  - backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8114
8276
  + backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8115
- }));
8277
+ }));
8116
8278
  ```
8117
8279
 
8118
8280
  - [Tooltip] Make `interactive` default (#22382) @eps1lon
@@ -8123,7 +8285,7 @@ Here are some highlights ✨:
8123
8285
  ```diff
8124
8286
  -<Tooltip>
8125
8287
  +<Tooltip disableInteractive>
8126
- # Interactive tooltips no longer need the `interactive` prop.
8288
+ # Interactive tooltips no longer need the `interactive` prop.
8127
8289
  -<Tooltip interactive>
8128
8290
  +<Tooltip>
8129
8291
  ```
@@ -8371,7 +8533,7 @@ Here are some highlights ✨:
8371
8533
  Renames `theme.palette.type` to `theme.palette.mode`, to better follow the "dark mode" term that is usually used for describing this feature.
8372
8534
 
8373
8535
  ```diff
8374
- import { createMuiTheme } from '@material-ui/core/styles';
8536
+ import { createMuiTheme } from '@material-ui/core/styles';
8375
8537
 
8376
8538
  -const theme = createMuiTheme({palette: { type: 'dark' }}),
8377
8539
  +const theme = createMuiTheme({palette: { mode: 'dark' }}),
@@ -8436,22 +8598,22 @@ Here are some highlights ✨:
8436
8598
  You can recover from the change with:
8437
8599
 
8438
8600
  ```diff
8439
- <Autocomplete
8440
- - renderOption={(option, { selected }) => (
8441
- - <React.Fragment>
8442
- + renderOption={(props, option, { selected }) => (
8443
- + <li {...props}>
8444
- <Checkbox
8445
- icon={icon}
8446
- checkedIcon={checkedIcon}
8447
- style={{ marginRight: 8 }}
8448
- checked={selected}
8449
- />
8450
- {option.title}
8451
- - </React.Fragment>
8452
- + </li>
8453
- )}
8454
- />
8601
+ <Autocomplete
8602
+ - renderOption={(option, { selected }) => (
8603
+ - <React.Fragment>
8604
+ + renderOption={(props, option, { selected }) => (
8605
+ + <li {...props}>
8606
+ <Checkbox
8607
+ icon={icon}
8608
+ checkedIcon={checkedIcon}
8609
+ style={{ marginRight: 8 }}
8610
+ checked={selected}
8611
+ />
8612
+ {option.title}
8613
+ - </React.Fragment>
8614
+ + </li>
8615
+ )}
8616
+ />
8455
8617
  ```
8456
8618
 
8457
8619
  #### Changes
@@ -8537,12 +8699,12 @@ Here are some highlights ✨:
8537
8699
  Rename `focused` to `focusVisible` for consistency with the other components:
8538
8700
 
8539
8701
  ```diff
8540
- <Accordion
8541
- classes={{
8542
- - focused: 'custom-focus-visible-classname',
8543
- + focusVisible: 'custom-focus-visible-classname',
8544
- }}
8545
- />
8702
+ <Accordion
8703
+ classes={{
8704
+ - focused: 'custom-focus-visible-classname',
8705
+ + focusVisible: 'custom-focus-visible-classname',
8706
+ }}
8707
+ />
8546
8708
  ```
8547
8709
 
8548
8710
  - [Stepper] Remove Paper and built-in padding (#22564) @mbrookes
@@ -8622,10 +8784,10 @@ Here are some highlights ✨:
8622
8784
  If you have a custom `icon` prop but no `emptyIcon` prop, you can restore the previous behavior with:
8623
8785
 
8624
8786
  ```diff
8625
- <Rating
8626
- icon={customIcon}
8627
- + emptyIcon={null}
8628
- />
8787
+ <Rating
8788
+ icon={customIcon}
8789
+ + emptyIcon={null}
8790
+ />
8629
8791
  ```
8630
8792
 
8631
8793
  #### Changes
@@ -8751,9 +8913,9 @@ const theme = createMuiTheme({
8751
8913
  1. `props`
8752
8914
 
8753
8915
  ```diff
8754
- import { createMuiTheme } from '@material-ui/core/styles';
8916
+ import { createMuiTheme } from '@material-ui/core/styles';
8755
8917
 
8756
- const theme = createMuiTheme({
8918
+ const theme = createMuiTheme({
8757
8919
  - props: {
8758
8920
  - MuiButton: {
8759
8921
  - disableRipple: true,
@@ -8766,15 +8928,15 @@ const theme = createMuiTheme({
8766
8928
  + },
8767
8929
  + },
8768
8930
  + },
8769
- });
8931
+ });
8770
8932
  ```
8771
8933
 
8772
8934
  2. `overrides`
8773
8935
 
8774
8936
  ```diff
8775
- import { createMuiTheme } from '@material-ui/core/styles';
8937
+ import { createMuiTheme } from '@material-ui/core/styles';
8776
8938
 
8777
- const theme = createMuiTheme({
8939
+ const theme = createMuiTheme({
8778
8940
  - overrides: {
8779
8941
  - MuiButton: {
8780
8942
  - root: { padding: 0 },
@@ -8787,7 +8949,7 @@ const theme = createMuiTheme({
8787
8949
  + },
8788
8950
  + },
8789
8951
  + },
8790
- });
8952
+ });
8791
8953
  ```
8792
8954
 
8793
8955
  Note that if you don't have the time to upgrade the structure of the theme, you
@@ -8898,7 +9060,7 @@ Here are some highlights ✨:
8898
9060
  The onE\* transition props were removed. Use TransitionProps instead.
8899
9061
 
8900
9062
  ```diff
8901
- <Menu
9063
+ <Menu
8902
9064
  - onEnter={onEnter}
8903
9065
  - onEntered={onEntered},
8904
9066
  - onEntering={onEntered},
@@ -8913,14 +9075,14 @@ Here are some highlights ✨:
8913
9075
  + onExited,
8914
9076
  + onExiting,
8915
9077
  + }}
8916
- >
9078
+ >
8917
9079
  ```
8918
9080
 
8919
9081
  - [Popover] Remove transition onX props (#22184) @mbrookes
8920
9082
  The onE\* transition props were removed. Use TransitionProps instead.
8921
9083
 
8922
9084
  ```diff
8923
- <Popover
9085
+ <Popover
8924
9086
  - onEnter={onEnter}
8925
9087
  - onEntered={onEntered},
8926
9088
  - onEntering={onEntered},
@@ -8935,7 +9097,7 @@ Here are some highlights ✨:
8935
9097
  + onExited,
8936
9098
  + onExiting,
8937
9099
  + }}
8938
- />
9100
+ />
8939
9101
  ```
8940
9102
 
8941
9103
  - [TextField] Improve line-height reset (#22149) @imnasnainaec
@@ -9089,7 +9251,7 @@ Here are some highlights ✨:
9089
9251
  The onE\* transition props were removed. Use TransitionProps instead.
9090
9252
 
9091
9253
  ```diff
9092
- <Dialog
9254
+ <Dialog
9093
9255
  - onEnter={onEnter}
9094
9256
  - onEntered={onEntered},
9095
9257
  - onEntering={onEntered},
@@ -9104,7 +9266,7 @@ Here are some highlights ✨:
9104
9266
  + onExited,
9105
9267
  + onExiting,
9106
9268
  + }}
9107
- />
9269
+ />
9108
9270
  ```
9109
9271
 
9110
9272
  - [Fab] Rename round -> circular for consistency (#21903) @kodai3
@@ -9151,7 +9313,7 @@ Here are some highlights ✨:
9151
9313
  The onE\* transition props were removed. Use TransitionProps instead.
9152
9314
 
9153
9315
  ```diff
9154
- <Snackbar
9316
+ <Snackbar
9155
9317
  - onEnter={onEnter}
9156
9318
  - onEntered={onEntered},
9157
9319
  - onEntering={onEntered},
@@ -9166,7 +9328,7 @@ Here are some highlights ✨:
9166
9328
  + onExited,
9167
9329
  + onExiting,
9168
9330
  + }}
9169
- />
9331
+ />
9170
9332
  ```
9171
9333
 
9172
9334
  - [TextareaAutosize] Rename rowsMax->maxRows & rowsMin->minRows (#21873) @mhayk
@@ -9535,21 +9697,21 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9535
9697
  It prevents inconsistent height on scaled screens. For people customizing the color of the border, the change requires changing the override CSS property:
9536
9698
 
9537
9699
  ```diff
9538
- .MuiDivider-root {
9539
- - background-color: #f00;
9540
- + border-color: #f00;
9541
- }
9700
+ .MuiDivider-root {
9701
+ - background-color: #f00;
9702
+ + border-color: #f00;
9703
+ }
9542
9704
  ```
9543
9705
 
9544
9706
  - [Rating] Rename `visuallyhidden` to `visuallyHidden` for consistency (#21413) @mnajdova.
9545
9707
 
9546
9708
  ```diff
9547
- <Rating
9548
- classes={{
9709
+ <Rating
9710
+ classes={{
9549
9711
  - visuallyhidden: 'custom-visually-hidden-classname',
9550
9712
  + visuallyHidden: 'custom-visually-hidden-classname',
9551
- }}
9552
- />
9713
+ }}
9714
+ />
9553
9715
  ```
9554
9716
 
9555
9717
  - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
@@ -9569,10 +9731,10 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9569
9731
  The customization of the table pagination's actions labels must be done with the `getItemAriaLabel` prop. This increases consistency with the `Pagination` component.
9570
9732
 
9571
9733
  ```diff
9572
- <TablePagination
9573
- - backIconButtonText="Avant"
9574
- - nextIconButtonText="Après
9575
- + getItemAriaLabel={…}
9734
+ <TablePagination
9735
+ - backIconButtonText="Avant"
9736
+ - nextIconButtonText="Après
9737
+ + getItemAriaLabel={…}
9576
9738
  ```
9577
9739
 
9578
9740
  - [ExpansionPanel] Rename to Accordion (#21494) @mnajdova.