@mui/icons-material 5.10.9 โ†’ 5.10.14

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 (4) hide show
  1. package/CHANGELOG.md +574 -214
  2. package/index.d.ts +708 -708
  3. package/index.js +1 -1
  4. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,359 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.10.14
4
+
5
+ <!-- generated comparing v5.10.13..master -->
6
+
7
+ _Nov 14, 2022_
8
+
9
+ A big thanks to the 17 contributors who made this release possible. Here are some highlights โœจ:
10
+
11
+ - ๐Ÿš€ @siriwatknp added the Autocomplete component to the Joy UI (#34315)
12
+ - โ™ฟ @sfavello improved the accessibility of the Material UI's Autocomplete by adding support for the Delete key (#33822)
13
+ - Many other ๐Ÿ› bug fixes, ๐Ÿ“š documentation, and โš™๏ธ infrastructure improvements.
14
+
15
+ ### `@mui/material@5.10.14`
16
+
17
+ - [Material UI] Add `palette.background.defaultChannel` token (#35061) @siriwatknp
18
+ - [Autocomplete] Remove tags with the Delete key (#33822) @sfavello
19
+ - [IconButton] custom color causes type error (#34521) @kushagra010
20
+
21
+ ### `@mui/system@5.10.14`
22
+
23
+ - [Unstable_Gridv2] sorted responsize keys based on breakpoint value (#34987) @sai6855
24
+
25
+ ### `@mui/joy@5.0.0-alpha.54`
26
+
27
+ - [Joy] Export `FormControl`, `LinearProgress` and `ListSubheader` components from `@mui/joy` (#35003) @Studio384
28
+ - [Joy] Miscellaneous fixes (#35044) @siriwatknp
29
+ - [Joy] Add `Autocomplete` component (#34315) @siriwatknp
30
+ - [Joy] Saturate a bit the gray palette (#35148) @danilo-leal
31
+ - [Autocomplete][joy] Fix types (#35153) @siriwatknp
32
+
33
+ ### Docs
34
+
35
+ - [blog] Fix font size of code blocks on iOS @oliviertassinari
36
+ - [docs] Accessibility - increase default contrastThreshold for WCAG AA compliance (#34901) @kennethbigler
37
+ - [docs] Correct the keepMounted section on the Drawer page (#35076) @michaldudak
38
+ - [docs] Fix code editor styles mismatches (#35108) @oliviertassinari
39
+ - [docs] Allows to access the next MUI-X (#34798) @alexfauquette
40
+ - [docs] Fix bugs with live edit demos (#35106) @oliviertassinari
41
+ - [docs] Fix `MarkdownElement` regression from adding CSS variables (#35096) @siriwatknp
42
+ - [docs] Add a new gold sponsor (#35089) @hbjORbj
43
+ - [docs] Fix scroll issue on expanded live demos (#35064) @bharatkashyap
44
+ - [docs] Improve alignment of the sponsors @oliviertassinari
45
+ - [docs] Improve code font family v2 (#35053) @oliviertassinari
46
+ - [docs] Upgrade to Next.js 13 (#35001) @mnajdova
47
+ - [docs] Fix typo in changelog @oliviertassinari
48
+ - [docs] Update Joy UI templates to use latest components (#35058) @siriwatknp
49
+ - [website] Fix design kits showcase throwing an error (#35093) @cherniavskii
50
+ - [website] Fix margin bug on CTA @oliviertassinari
51
+ - [website] Link respective repositories in product pages (#35046) @sidtohan
52
+ - [website] Migrate blog pages to use CSS theme variables (#34976) @siriwatknp
53
+ - [website] Update DoiT International logo and links with new brand (#35030) @ofir5300
54
+ - [website] Improve visual design app bar (#35111) @oliviertassinari
55
+
56
+ ### Core
57
+
58
+ - [core] Convert scripts to ES modules (#35036) @michaldudak
59
+ - [core] Show the whole version to make blame easier @oliviertassinari
60
+ - [core] Polish GitHub Action version @oliviertassinari
61
+ - [core] Ignore icons to speed up CodeQL @oliviertassinari
62
+ - [core] Feedback on branch protection @oliviertassinari
63
+ - [core] Revert CI (#35098) @siriwatknp
64
+ - [core] Fix job name to match the CI (#35097) @siriwatknp
65
+ - [core] ESLint fixes for tests (#34924) @Janpot
66
+ - [core] Ignore unrelated folders from github actions (#35028) @siriwatknp
67
+ - [core] Use pretty-quick instead of custom script (#34062) @Janpot
68
+
69
+ All contributors of this release in alphabetical order: @alexfauquette, @bharatkashyap, @cherniavskii, @danilo-leal, @hbjORbj, @Janpot, @kennethbigler, @kushagra010, @michaldudak, @mnajdova, @ofir5300, @oliviertassinari, @sai6855, @sfavello, @sidtohan, @siriwatknp, @Studio384
70
+
71
+ ## v5.10.13
72
+
73
+ <!-- generated comparing v5.10.12..master -->
74
+
75
+ _Nov 7, 2022_
76
+
77
+ A big thanks to the 12 contributors who made this release possible. Here are some highlights โœจ:
78
+
79
+ - ๐Ÿš€ The slots API has been introduced to the Material UI package by @michaldudak (#34873).
80
+ - ๐Ÿ”ฅ Live editing of demos is stabilized by @oliviertassinari (#34870).
81
+ - Many other ๐Ÿ› bug fixes, ๐Ÿ“š documentation, and โš™๏ธ infrastructure improvements.
82
+
83
+ ### `@mui/material@5.10.13`
84
+
85
+ - &#8203;<!-- 08 -->[material-ui] Introduce the slots API (#34873) @michaldudak
86
+ - &#8203;<!-- 07 -->[NativeSelectInput] Support CSS theme variables (#34975) @siriwatknp
87
+
88
+ ### `@mui/system@5.10.13`
89
+
90
+ - &#8203;<!-- 05 -->[system] Add a missing key attribute in getInitColorScheme to fix key issue (#34992) @akshaya-venkatesh8
91
+
92
+ ### `@mui/base@5.0.0-alpha.105`
93
+
94
+ - &#8203;<!-- 26 -->[base] Avoid calling setState during renders (#34916) @Janpot
95
+
96
+ ### `@mui/joy@5.0.0-alpha.53`
97
+
98
+ - &#8203;<!-- 06 -->[Select] Fix custom options menu not opening on Avatar click (#34648) @shivam1646
99
+
100
+ ### Docs
101
+
102
+ - &#8203;<!-- 20 -->[docs] Add a guide for setting dark mode by default (#34839) @siriwatknp
103
+ - &#8203;<!-- 19 -->[docs] Improve code font family (#35027) @oliviertassinari
104
+ - &#8203;<!-- 18 -->[docs] Revise and expand Joy UI "Alert" page (#34838) @samuelsycamore
105
+ - &#8203;<!-- 17 -->[docs] Live demos v2 (#34870) @oliviertassinari
106
+ - &#8203;<!-- 16 -->[docs] Fix 301 links in the docs @oliviertassinari
107
+ - &#8203;<!-- 15 -->[docs] Fix code display in RTL (#34951) @oliviertassinari
108
+ - &#8203;<!-- 14 -->[docs] New API design rule disabled > disable (#34972) @oliviertassinari
109
+ - &#8203;<!-- 13 -->[docs] Explain the usage of Select's onOpen/onClose in the uncontrolled mode (#34755) @michaldudak
110
+ - &#8203;<!-- 12 -->[docs] Add a new gold sponsor (#34984) @hbjORbj
111
+ - &#8203;<!-- 11 -->[docs] Add author and published_time meta tags (#34382) @alexfauquette
112
+ - &#8203;<!-- 10 -->[examples] Next.js examples v13 - fonts (#34971) @PetroSilenius
113
+ - &#8203;<!-- 09 -->[examples] Next.js examples v13 - links (#34970) @PetroSilenius
114
+ - &#8203;<!-- 04 -->[website] Update IPinfo.AI name @oliviertassinari
115
+ - &#8203;<!-- 03 -->[website] Remove date-io from the docs dependencies (#34748) @michaldudak
116
+ - &#8203;<!-- 02 -->[website] Migrate Design-kits page to use CSS theme variables (#34920) @jesrodri
117
+ - &#8203;<!-- 01 -->[website] Migrate Pricing page to use CSS theme variables (#34917) @trizotti
118
+
119
+ ### Core
120
+
121
+ - &#8203;<!-- 25 -->[core] Remove default access to GitHub action scopes @oliviertassinari
122
+ - &#8203;<!-- 24 -->[core] Fix Pinned-Dependencies @oliviertassinari
123
+ - &#8203;<!-- 23 -->[core] Fix typos in the component name @oliviertassinari
124
+ - &#8203;<!-- 22 -->[core] Fix scorecard regression @oliviertassinari
125
+ - &#8203;<!-- 21 -->[core] Create the docs theme once (#34954) @oliviertassinari
126
+
127
+ All contributors of this release in alphabetical order: @akshaya-venkatesh8, @alexfauquette, @hbjORbj, @Janpot, @jesrodri, @michaldudak, @oliviertassinari, @PetroSilenius, @samuelsycamore, @shivam1646, @siriwatknp, @trizotti
128
+
129
+ ## v5.10.12
130
+
131
+ <!-- generated comparing v5.10.11..master -->
132
+
133
+ _Oct 31, 2022_
134
+
135
+ A big thanks to the 16 contributors who made this release possible. Here are some highlights โœจ:
136
+
137
+ - ๐Ÿš€ The LinearProgress component has been added to Joy UI by @hbjORbj (#34514).
138
+ - Many other ๐Ÿ› bug fixes, ๐Ÿ“š documentation, and โš™๏ธ infrastructure improvements.
139
+
140
+ ### `@mui/material@5.10.12`
141
+
142
+ - &#8203;<!-- 37 -->[Chip] Don't override icon color (#34247) @emlai
143
+ - &#8203;<!-- 09 -->[Radio] Skip default hover style when disableRipple is set (#34902) @VinceCYLiao
144
+ - &#8203;<!-- 08 -->[SwipeableDrawer] Fix React 18 issues (#34505) @mnajdova
145
+ - &#8203;<!-- 05 -->[Tooltip] Save a few bytes (#34853) @oliviertassinari
146
+
147
+ ### `@mui/base@5.0.0-alpha.104`
148
+
149
+ - &#8203;<!-- 38 -->[ButtonUnstyled] Update to render as link when href or to is provided (#34337) @EduardoSCosta
150
+
151
+ ### `@mui/joy@5.0.0-alpha.52`
152
+
153
+ - &#8203;<!-- 36 -->[Joy][circularprogress] Prevent new styles from being generated when `value` changes (#34897) @hbjORbj
154
+ - &#8203;<!-- 11 -->[Joy] Add color inversion feature (#32511) @siriwatknp
155
+ - &#8203;<!-- 10 -->[Joy] Add `LinearProgress` component (#34514) @hbjORbj
156
+
157
+ ### Docs
158
+
159
+ - &#8203;<!-- 40 -->[blog] Add blog post for high-level overview of all MUI products (#34325) @samuelsycamore
160
+ - &#8203;<!-- 39 -->[blog] Fix hydration mistmatch (#34857) @oliviertassinari
161
+ - &#8203;<!-- 21 -->[docs] Revise the Joy UI "Aspect Ratio" page (#34858) @samuelsycamore
162
+ - &#8203;<!-- 20 -->[docs] Fix Safari code font size (#34859) @oliviertassinari
163
+ - &#8203;<!-- 19 -->[docs] Fix spelling mistake (#34955) @punithnayak
164
+ - &#8203;<!-- 18 -->[docs] Fix 404 link of supported Material UI components @oliviertassinari
165
+ - &#8203;<!-- 17 -->[docs] Fix Safari button misalignment (#34861) @oliviertassinari
166
+ - &#8203;<!-- 16 -->[docs] Fix typo in docs title (#34926) @PunitSoniME
167
+ - &#8203;<!-- 25 -->[docs] Fix missing emotion prefixes (#34958) @oliviertassinari
168
+ - &#8203;<!-- 26 -->[docs] Improve UI display for copy code (#34950) @oliviertassinari
169
+ - &#8203;<!-- 15 -->[docs] Standardize all MUI Core "Usage" pages (#34183) @samuelsycamore
170
+ - &#8203;<!-- 14 -->[docs] Update templates' readme files to include required dependencies (#34757) @michaldudak
171
+ - &#8203;<!-- 13 -->[docs] Fix inconsistent theme colors when applying custom colors in playground (#34866) @cherniavskii
172
+ - &#8203;<!-- 12 -->[docs] Fix typo in bottom-navigation.md (#34884) @RoodyCode
173
+ - &#8203;<!-- 07 -->[website] Migrate about-us page to use CSS theme variables (#34919) @brianlu2610
174
+ - &#8203;<!-- 06 -->[website] Migrate Product-Templates page to use CSS theme variables (#34913) @EduardoSCosta
175
+ - &#8203;<!-- 05 -->[website] Migrate career page to use CSS theme variables (#34908) @the-mgi
176
+ - &#8203;<!-- 04 -->[website] Update MUI X open and future roles + about page (#34894) @DanailH
177
+ - &#8203;<!-- 03 -->[website] Remove one DOM node (#34960) @oliviertassinari
178
+ - &#8203;<!-- 02 -->[website] Use `span` for icon image (#34914) @siriwatknp
179
+ - &#8203;<!-- 01 -->[website] Fix subscribe input with Safari (#34869) @oliviertassinari
180
+
181
+ ### Core
182
+
183
+ - &#8203;<!-- 35 -->[core] Ignore compiled icons in CodeQL @oliviertassinari
184
+ - &#8203;<!-- 34 -->[core] Add OSSF Scorecard action (#34854) @oliviertassinari
185
+ - &#8203;<!-- 40 -->[core] Fix extra GitHub Action permission (#34496) @sashashura
186
+ - &#8203;<!-- 33 -->[core] Fix duplicate id @oliviertassinari
187
+ - &#8203;<!-- 41 -->[core] Enforce import \* as React (#34878) @da0x
188
+ - &#8203;<!-- 32 -->[core] A couple of simply fixes from #34870 (#34953) @oliviertassinari
189
+ - &#8203;<!-- 31 -->[core] Migrate outdated pattern to convention @oliviertassinari
190
+ - &#8203;<!-- 30 -->[core] Pin GitHub Actions dependencies (#34929) @renovate[bot]
191
+ - &#8203;<!-- 29 -->[core] Make the reproduction more important in the bug template (#34875) @oliviertassinari
192
+ - &#8203;<!-- 28 -->[core] Fix docs GitHub API rate limit (#34856) @oliviertassinari
193
+ - &#8203;<!-- 42 -->[core] Fix eslint issues (#34964) @mnajdova
194
+ - &#8203;<!-- 27 -->[core] Pin GitHub Action to digests (#34855) @oliviertassinari
195
+ - &#8203;<!-- 26 -->[core] Fix permissions in workflow @oliviertassinari
196
+ - &#8203;<!-- 25 -->[core] memoize context values for react/jsx-no-constructed-context-values (#34849) @Janpot
197
+ - &#8203;<!-- 24 -->[core] Fix @typescript-eslint/default-param-last issues (#34846) @Janpot
198
+ - &#8203;<!-- 23 -->[core] Fix HTML validation error (#34860) @oliviertassinari
199
+ - &#8203;<!-- 22 -->[core] Fix duplicate CodeQL build @oliviertassinari
200
+ - &#8203;<!-- 07 -->[test] Move Firefox tests to CircleCI (#34764) @oliviertassinari
201
+ - &#8203;<!-- 06 -->[test] Use screen when possible for simplicity (#34890) @oliviertassinari
202
+
203
+ 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
204
+
205
+ ## v5.10.11
206
+
207
+ <!-- generated comparing v5.10.10..master -->
208
+
209
+ _Oct 25, 2022_
210
+
211
+ A big thanks to the 10 contributors who made this release possible. Here are some highlights โœจ:
212
+
213
+ - ๐Ÿ”ง Moved `components` to `slots` prop starting at MUI Base to create consistency across products
214
+ - Many other ๐Ÿ› bug fixes, ๐Ÿ“š documentation, and โš™๏ธ infrastructure improvements
215
+
216
+ ### `@mui/material@5.10.11`
217
+
218
+ - [InputBase] Fix `onInvalid` to use HTMLInputElement | HTMLTextAreaElement Element type (#33162) @KuSh
219
+ - [Alert] Add `components` and `componentsProps` props to allow close action overrides (#33582) @jake-collibra
220
+
221
+ ### `@mui/base@5.0.0-alpha.103`
222
+
223
+ #### BREAKING CHANGE
224
+
225
+ - [base] `components` -> `slots` API rename (#34693) @michaldudak
226
+
227
+ - Change all occurrences ofย componentsย andย componentsPropsย props in Base components toย slotsย andย slotProps, respectively.
228
+ - Change casing ofย slots' fields to camelCase
229
+
230
+ ```diff
231
+ -<SwitchUnstyled components={{Root: CustomRoot}} componentsProps={{rail: { className: 'custom-rail' }}} />
232
+ +<SwitchUnstyled slots={{root: CustomRoot}} slotProps={{rail: { className: 'custom-rail' }}} />
233
+ ```
234
+
235
+ - [base] Make CSS class prefixes consistent (#33411) @michaldudak
236
+
237
+ **This is a breaking change for anyone who depends on the class names applied to Base components.**
238
+ 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.
239
+
240
+ ```diff
241
+ -.ButtonUnstyled-root { ... };
242
+ +.MuiButton-root { ... };
243
+ ```
244
+
245
+ #### Changes
246
+
247
+ - [test] Test all Base components with describeConformanceUnstyled (#34825) @michaldudak
248
+
249
+ ### `@mui/joy@5.0.0-alpha.51`
250
+
251
+ - [CircularProgress][joy] Fix classnames and add test (#34806) @hbjORbj
252
+ - [Joy] Allow string type for `size` prop in components (#34805) @hbjORbj
253
+
254
+ ### Docs
255
+
256
+ - Revert "[docs] Fix search icons in other languages (#34823)" @oliviertassinari
257
+ - Revert "[core] Move SearchIcons to docs src folder (#34802)" @oliviertassinari
258
+ - Revert "[docs] Live demos (#34454)" @oliviertassinari
259
+ - Update the order of operations for pagination example so that slicing takes place after sorting. (#34189) @marceliwac
260
+ - [docs] Gatsby Description in Joy dark-mode (#34702) @pixelass
261
+ - [docs] Add notification for blogpost MUI X v6 alpha (#34809) @joserodolfofreitas
262
+ - [docs] Polish Crowdin config (#34852) @oliviertassinari
263
+ - [docs] Fix a few style standard deviations @oliviertassinari
264
+ - [docs] Enforce no trailing spaces (#34762) @oliviertassinari
265
+ - [docs] Enforce correct git diff format (#34765) @oliviertassinari
266
+ - [docs] Fix Toolpad docs 301 route (#34843) @bharatkashyap
267
+ - [docs] Replace initial value with theme white (#34822) @siriwatknp
268
+ - [docs] Remove localization redirects (#34844) @mnajdova
269
+ - [docs] Fix search icons in other languages (#34823) @siriwatknp
270
+ - [docs] Fix JavaScript capitalization @oliviertassinari
271
+ - [docs] Update new links to MD2 (#34848) @oliviertassinari
272
+ - [website] Update future work items on X landing page (#34810) @joserodolfofreitas
273
+ - [website] Add Toolpad docs to navigation (#34749) @bharatkashyap
274
+
275
+ ### Core
276
+
277
+ - [core] Remove dead files (#34850) @oliviertassinari
278
+ - [core] Fix revert conflict @oliviertassinari
279
+ - [core] Fix a few CodeQL errors (#34766) @oliviertassinari
280
+ - [core] Harden GitHub Actions permissions (#34769) @oliviertassinari
281
+ - [core] Remove the codeowners file (#34876) @michaldudak
282
+
283
+ All contributors of this release in alphabetical order: @bharatkashyap, @hbjORbj, @jake-collibra, @joserodolfofreitas, @KuSh, @marceliwac, @michaldudak, @oliviertassinari, @pixelass, @siriwatknp
284
+
285
+ ## 5.10.10
286
+
287
+ <!-- generated comparing v5.10.9..master -->
288
+
289
+ _Oct 18, 2022_
290
+
291
+ A big thanks to the 21 contributors who made this release possible. Here are some highlights โœจ:
292
+
293
+ - ๐Ÿ–Œ Thanks to the efforts of @bharatkashyap and @nihgwu, we now have editable demos across our docs (#34454)!
294
+ - ๐Ÿš€ The Tooltip component has been added to Joy UI by @hbjORbj (#34509).
295
+ - โš™๏ธ We started converting the remaining JS components in MUI Base to TypeScript.
296
+ @mbayucot finished the first PR with the conversion of the NoSsr code (#34735).
297
+ - And more ๐Ÿ› bug fixes and ๐Ÿ“š documentation improvements.
298
+
299
+ ### `@mui/material@5.10.10`
300
+
301
+ - [Popover] Fix paper position flash on open (#34546) @TheUnlocked
302
+ - [SwipeableDrawer] Make component `defaultProps` overridable (#34643) @hbjORbj
303
+
304
+ ### `@mui/system@5.10.10`
305
+
306
+ - [system] Support CSS `grey` color in `sx` (#34548) @TheUnlocked
307
+
308
+ ### `@mui/styles@5.10.10`
309
+
310
+ - [styles] Use memoized context in StylesProvider (#34637) @mohd-akram
311
+
312
+ ### `@mui/joy@5.0.0-alpha.50`
313
+
314
+ - [Select][joy] Added hidden input element (#34657) @zee-bit
315
+ - [Slider][joy] Add global variant to slider (#34733) @siriwatknp
316
+ - [Tooltip][joy] Add component (#34509) @hbjORbj
317
+
318
+ ### `@mui/base@5.0.0-alpha.102`
319
+
320
+ - [MultiSelect][base] Prevent the renderValue prop from being propagated to the DOM (#34698) @michaldudak
321
+ - [NoSsr] Convert code to TypeScript (#34735) @mbayucot
322
+
323
+ ### Docs
324
+
325
+ - [docs] Fix the Autocomplete Highlighting example (#34184) @hayawata3626
326
+ - [docs] Fix typos in Base (Menu, Tabs) and Joy UI (Chip) (#34803) @rvrvrv
327
+ - [docs] Use new editing API in homepage demos (#34220) @m4theushw
328
+ - [docs] Live demos (#34454) @bharatkashyap
329
+ - [docs] Fix typos in Joy UI Switch (#34728) @ndresx
330
+ - [docs] Avoid scrollbar in the code demos (#34741) @oliviertassinari
331
+ - [docs] Revise the Joy UI "Automatic adjustment" page (#34614) @samuelsycamore
332
+ - [docs] Revise and rename the Joy UI "Perfect dark mode" page (#34613) @samuelsycamore
333
+ - [docs] Revise the Joy UI "Global variants" page (#34595) @samuelsycamore
334
+ - [docs] Basic link verification at PR level (#34588) @alexfauquette
335
+ - [docs] Add a missing comma in the customization example (#34617) @AbayKinayat
336
+ - [website] Clarify Pro/Premium support (#34607) @oliviertassinari
337
+ - [website] Fix home page dark mode flicker (#33545)
338
+ - [website] Update the state of the date pickers on the landing page (#34750) @joserodolfofreitas
339
+
340
+ ### Core
341
+
342
+ - [core] Clean conditionals (#34772) @pedroprado010
343
+ - [core] Temporary remove the authorization (#34796) @siriwatknp
344
+ - [core] Avoid slower CI run statues @oliviertassinari
345
+ - [core] Improve the playground DX (#34739) @oliviertassinari
346
+ - [core] Link Netlify in the danger comment (#34688) @oliviertassinari
347
+ - [core] Fix CI after out of sync merge @oliviertassinari
348
+ - [core] Enforce straight quote (#34686) @oliviertassinari
349
+ - [core] Add code scanning via CodeQL (#34707) @DanailH
350
+ - [core] Fix some upcoming eslint issues (#34727) @oliviertassinari
351
+ - [core] Auto-fix upcoming eslint issues (#34644) @Janpot
352
+ - [core] Move SearchIcons to docs src folder (#34802)
353
+ - [test] Enable `react/no-unstable-nested-components` (#34518) @eps1lon
354
+
355
+ 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
356
+
3
357
  ## 5.10.9
4
358
 
5
359
  <!-- generated comparing v5.10.8..master -->
@@ -154,8 +508,8 @@ A big thanks to the 21 contributors who made this release possible. Here are som
154
508
  - [TrapFocus] Rename TrapFocus to FocusTrap (#34216) @kabernardes
155
509
 
156
510
  ```diff
157
- - import TrapFocus from โ€˜@mui/base/TrapFocusโ€™;
158
- + import FocusTrap from โ€˜@mui/base/FocusTrapโ€™;
511
+ -import TrapFocus from '@mui/base/TrapFocus';
512
+ +import FocusTrap from '@mui/base/FocusTrap';
159
513
  ```
160
514
 
161
515
  #### Changes
@@ -437,7 +791,7 @@ _Aug 22, 2022_
437
791
 
438
792
  A big thanks to the 11 contributors who made this release possible. Here are some highlights โœจ:
439
793
 
440
- - โœจ @michaldudak synced the Material Icons set with the latest from Google (#33988).
794
+ - โœจ @michaldudak synced the Material Icons set with the latest from Google (#33988).\
441
795
  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
796
 
443
797
  ### `@mui/material@5.10.2`
@@ -1629,7 +1983,8 @@ All contributors of this release in alphabetical order: @abhinav-22-tech, @ainat
1629
1983
 
1630
1984
  _Apr 18, 2022_
1631
1985
 
1632
- A big thanks to the 11 contributors who made this release possible. This release is mostly about ๐Ÿ› bug fixes and ๐Ÿ“š documentation improvements.
1986
+ A big thanks to the 11 contributors who made this release possible.
1987
+ This release is mostly about ๐Ÿ› bug fixes and ๐Ÿ“š documentation improvements.
1633
1988
 
1634
1989
  ### `@mui/material@5.6.2`
1635
1990
 
@@ -1688,7 +2043,7 @@ All contributors of this release in alphabetical order: @abaker93, @cherniavskii
1688
2043
 
1689
2044
  _Apr 11, 2022_
1690
2045
 
1691
- A big thanks to the 8 contributors who made this release possible.
2046
+ A big thanks to the 8 contributors who made this release possible.
1692
2047
  This release is mostly about ๐Ÿ› bug fixes and ๐Ÿ“š documentation improvements.
1693
2048
 
1694
2049
  ### `@mui/material@5.6.1`
@@ -1851,7 +2206,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
1851
2206
  -import { Unstyled_TrapFocus } from '@mui/base';
1852
2207
  +import { TrapFocus } from '@mui/base';
1853
2208
 
1854
- // or
2209
+ // or
1855
2210
 
1856
2211
  -import TrapFocus from '@mui/base/Unstyled_TrapFocus';
1857
2212
  +import TrapFocus from '@mui/base/TrapFocus';
@@ -2027,8 +2382,8 @@ A big thanks to the 16 contributors who made this release possible. Here are som
2027
2382
  `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
2383
 
2029
2384
  ```diff
2030
- - import { unstable_ClassNameGenerator } from '@mui/material/utils';
2031
- + import { unstable_ClassNameGenerator } from '@mui/material/className';
2385
+ -import { unstable_ClassNameGenerator } from '@mui/material/utils';
2386
+ +import { unstable_ClassNameGenerator } from '@mui/material/className';
2032
2387
  ```
2033
2388
 
2034
2389
  #### Changes
@@ -2370,8 +2725,8 @@ A big thanks to the 22 contributors who made this release possible. Here are som
2370
2725
  3. Change the import paths of unstyled components from @mui/material to @mui/base, e.g.:
2371
2726
 
2372
2727
  ```diff
2373
- - @import ButtonUnstyled from '@mui/material/ButtonUnstyled';
2374
- + @import ButtonUnstyled from '@mui/base/ButtonUnstyled';
2728
+ -import ButtonUnstyled from '@mui/material/ButtonUnstyled';
2729
+ +import ButtonUnstyled from '@mui/base/ButtonUnstyled';
2375
2730
  ```
2376
2731
 
2377
2732
  #### Changes
@@ -4414,12 +4769,12 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4414
4769
  `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
4770
 
4416
4771
  ```diff
4417
- <button class="MuiTab-root">
4418
- - <span class="MuiTab-wrapper">
4772
+ <button class="MuiTab-root">
4773
+ - <span class="MuiTab-wrapper">
4419
4774
  {icon}
4420
4775
  {label}
4421
- - </span>
4422
- </button>
4776
+ - </span>
4777
+ </button>
4423
4778
  ```
4424
4779
 
4425
4780
  - [BottomNavigation] Remove wrapper from BottomNavigationAction (#26923) @siriwatknp
@@ -4427,14 +4782,14 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4427
4782
  `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
4783
 
4429
4784
  ```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>
4785
+ <button class="MuiBottomNavigationAction-root">
4786
+ - <span class="MuiBottomNavigationAction-wrapper">
4787
+ {icon}
4788
+ <span class="MuiBottomNavigationAction-label">
4789
+ {label}
4790
+ </span>
4791
+ - </span>
4792
+ </button>
4438
4793
  ```
4439
4794
 
4440
4795
  #### Changes
@@ -4467,15 +4822,15 @@ A big thanks to the 13 contributors who made this release possible. Here are som
4467
4822
  Make the default rendered text field closer to the most common use cases (denser).
4468
4823
 
4469
4824
  ```diff
4470
- <DatePicker
4471
- label="Helper text example"
4472
- value={value}
4473
- onChange={onChange}
4474
- renderInput={(params) => (
4825
+ <DatePicker
4826
+ label="Helper text example"
4827
+ value={value}
4828
+ onChange={onChange}
4829
+ renderInput={(params) => (
4475
4830
  - <TextField {...params} />
4476
4831
  + <TextField {...params} helperText={params?.inputProps?.placeholder} />
4477
- )}
4478
- >
4832
+ )}
4833
+ >
4479
4834
  ```
4480
4835
 
4481
4836
  #### Changes
@@ -4537,7 +4892,7 @@ _Jun 23, 2021_
4537
4892
  A big thanks to the 18 contributors who made this release possible. Here are some highlights โœจ:
4538
4893
 
4539
4894
  - ๐Ÿš€ 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).
4895
+ - ๐ŸŽจ We have updated `Slider` to match current [Material Design guidelines](https://m2.material.io/components/sliders).
4541
4896
 
4542
4897
  <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
4898
 
@@ -4581,16 +4936,16 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4581
4936
  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
4937
 
4583
4938
  ```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
- }
4939
+ {
4940
+ xs: 0,
4941
+ sm: 600,
4942
+ - md: 960,
4943
+ + md: 900,
4944
+ - lg: 1280,
4945
+ + lg: 1200,
4946
+ - xl: 1920,
4947
+ + xl: 1536,
4948
+ }
4594
4949
  ```
4595
4950
 
4596
4951
  If you prefer the old breakpoint values, use the snippet below.
@@ -4622,7 +4977,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4622
4977
 
4623
4978
  - &#8203;<!-- 08 -->[Slider] Adjust css to match the specification (#26632) @siriwatknp
4624
4979
 
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/).
4980
+ 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
4981
 
4627
4982
  <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
4983
 
@@ -4635,11 +4990,11 @@ A big thanks to the 18 contributors who made this release possible. Here are som
4635
4990
  `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
4991
 
4637
4992
  ```diff
4638
- <button class="MuiIconButton-root">
4639
- - <span class="MuiIconButton-label">
4640
- <svg />
4641
- - </span>
4642
- </button>
4993
+ <button class="MuiIconButton-root">
4994
+ - <span class="MuiIconButton-label">
4995
+ <svg />
4996
+ - </span>
4997
+ </button>
4643
4998
  ```
4644
4999
 
4645
5000
  - &#8203;<!-- 19 -->[core] Remove `unstable_` prefix on the `useThemeProps` hook (#26777) @mnajdova
@@ -4765,11 +5120,11 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4765
5120
  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
5121
 
4767
5122
  ```diff
4768
- <button class="MuiButton-root">
4769
- - <span class="MuiButton-label">
4770
- children
4771
- - </span>
4772
- </button>
5123
+ <button class="MuiButton-root">
5124
+ - <span class="MuiButton-label">
5125
+ children
5126
+ - </span>
5127
+ </button>
4773
5128
  ```
4774
5129
 
4775
5130
  #### Changes
@@ -4798,7 +5153,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
4798
5153
  + const theme = useTheme();
4799
5154
  + const isRtl = theme.direction === 'rtl';
4800
5155
  //.. rest of the code
4801
- }
5156
+ }
4802
5157
  ```
4803
5158
 
4804
5159
  #### Changes
@@ -4870,7 +5225,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4870
5225
 
4871
5226
  - &#8203;<!-- 10 -->[AppBar] Fix background color on dark mode (#26545) @siriwatknp
4872
5227
 
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.
5228
+ 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
5229
 
4875
5230
  ```jsx
4876
5231
  <AppBar enableColorOnDark />
@@ -4921,13 +5276,14 @@ A big thanks to the 14 contributors who made this release possible. Here are som
4921
5276
  - &#8203;<!-- 29 -->[pickers] Remove `openPickerIcon` prop in favor of `components.OpenPickerIcon` (#26223) @vedadeepta
4922
5277
 
4923
5278
  ```diff
4924
- <DateTimePicker
4925
- components={{
4926
- LeftArrowIcon: AlarmIcon,
4927
- RightArrowIcon: SnoozeIcon,
4928
- + OpenPickerIcon: ClockIcon,
4929
- }}
4930
- - openPickerIcon={<ClockIcon />}
5279
+ <DateTimePicker
5280
+ components={{
5281
+ LeftArrowIcon: AlarmIcon,
5282
+ RightArrowIcon: SnoozeIcon,
5283
+ + OpenPickerIcon: ClockIcon,
5284
+ }}
5285
+ - openPickerIcon={<ClockIcon />}
5286
+ >
4931
5287
  ```
4932
5288
 
4933
5289
  ### `@material-ui/system@5.0.0-alpha.36`
@@ -5031,8 +5387,8 @@ A big thanks to the 14 contributors who made this release possible. Here are som
5031
5387
 
5032
5388
  Update the implementation to better match Material Design:
5033
5389
 
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)
5390
+ - Tab `minWidth` changed from `72px` => `90px` (without media-query) according to [material-design spec](https://m2.material.io/components/tabs#specs)
5391
+ - Tab `maxWidth` changed from `264px` => `360px` according to [material-design spec](https://m2.material.io/components/tabs#specs)
5036
5392
 
5037
5393
  #### Changes
5038
5394
 
@@ -5150,10 +5506,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5150
5506
  Move the custom class on `input` to `select`. The `input` key is being applied on another element.
5151
5507
 
5152
5508
  ```diff
5153
- <TablePagination
5154
- - classes={{ input: 'foo' }}
5155
- + classes={{ select: 'foo' }}
5156
- />
5509
+ <TablePagination
5510
+ - classes={{ input: 'foo' }}
5511
+ + classes={{ select: 'foo' }}
5512
+ />
5157
5513
  ```
5158
5514
 
5159
5515
  - &#8203;<!-- 45 -->[core] Move `StyledEngineProvider` to `@material-ui/core/styles` (#26265) @mnajdova
@@ -5198,10 +5554,10 @@ A big thanks to the 16 contributors who made this release possible. Here are som
5198
5554
  - &#8203;<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
5199
5555
 
5200
5556
  ```diff
5201
- <Autocomplete
5557
+ <Autocomplete
5202
5558
  - getOptionSelected={(option, value) => option.title === value.title}
5203
5559
  + isOptionEqualToValue={(option, value) => option.title === value.title}
5204
- />
5560
+ />
5205
5561
  ```
5206
5562
 
5207
5563
  > Follow [this link](https://mui.com/material-ui/migration/migration-v4/) for full migration from v4 => v5
@@ -5304,18 +5660,20 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5304
5660
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5305
5661
 
5306
5662
  ```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
- }
5663
+ import * as React from 'react';
5664
+ import { withStyles } from '@material-ui/core/styles';
5665
+
5666
+ const MyComponent = withStyles({
5667
+ root: {
5668
+ backgroundColor: 'red',
5669
+ },
5670
+ })(({ classes }) => <div className={classes.root} />);
5671
+
5672
+ function MyOtherComponent(props) {
5673
+ const ref = React.useRef();
5674
+ - return <MyComponent innerRef={ref} />;
5675
+ + return <MyComponent ref={ref} />;
5676
+ }
5319
5677
  ```
5320
5678
 
5321
5679
  **withTheme**
@@ -5323,14 +5681,16 @@ A big thanks to the 17 contributors who made this release possible. Here are som
5323
5681
  Replace the `innerRef` prop with the `ref` prop. Refs are now automatically forwarded to the inner component.
5324
5682
 
5325
5683
  ```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
- }
5684
+ import * as React from 'react';
5685
+ import { withTheme } from '@material-ui/core/styles';
5686
+
5687
+ const MyComponent = withTheme(({ theme }) => <div>{props.theme.direction}</div>);
5688
+
5689
+ function MyOtherComponent(props) {
5690
+ const ref = React.useRef();
5691
+ - return <MyComponent innerRef={ref} />;
5692
+ + return <MyComponent ref={ref} />;
5693
+ }
5334
5694
  ```
5335
5695
 
5336
5696
  - &#8203;<!-- 10 -->[theme] Rename `createMuiTheme` to `createTheme` (#25992) @m4theushw
@@ -5672,23 +6032,23 @@ A big thanks to the 15 contributors who made this release possible. Here are som
5672
6032
  - &#8203;<!-- 41 -->[Checkbox][switch] Remove checked argument from onChange (#25871) @m4theushw
5673
6033
 
5674
6034
  ```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
- }
6035
+ function MyCheckbox() {
6036
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
6037
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
6038
+ + const checked = event.target.checked;
6039
+ };
6040
+ return <Checkbox onChange={handleChange} />;
6041
+ }
5682
6042
  ```
5683
6043
 
5684
6044
  ```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
- }
6045
+ function MySwitch() {
6046
+ - const handleChange = (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => {
6047
+ + const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
6048
+ + const checked = event.target.checked;
6049
+ };
6050
+ return <Switch onChange={handleChange} />;
6051
+ }
5692
6052
  ```
5693
6053
 
5694
6054
  - &#8203;<!-- 42 -->[theme] Remove theme.breakpoints.width helper (#25918) @m4theushw
@@ -5843,12 +6203,12 @@ A big thanks to the 19 contributors who made this release possible. Here are som
5843
6203
  -import DayPicker from '@material-ui/lab/DayPicker';
5844
6204
  +import CalendarPicker from '@material-ui/lab/CalendarPicker';
5845
6205
 
5846
- createMuiTheme({
5847
- components: {
5848
- - MuiDayPicker: {},
5849
- + MuiCalendarPicker: {},
5850
- }
5851
- })
6206
+ createMuiTheme({
6207
+ components: {
6208
+ - MuiDayPicker: {},
6209
+ + MuiCalendarPicker: {},
6210
+ }
6211
+ })
5852
6212
  ```
5853
6213
 
5854
6214
  - &#8203;<!-- 04 -->[Pickers] Rename PickersCalendarSkeleton to CalendarPickerSkeleton (#25679) @eps1lon
@@ -6372,10 +6732,10 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6372
6732
 
6373
6733
  - &#8203;<!-- 087 -->[icons] Synchronize icons (#25055) @eps1lon
6374
6734
 
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:
6735
+ 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
6736
 
6377
6737
  ```diff
6378
- // AmpStories -> Download
6738
+ // AmpStories -> Download
6379
6739
  -AmpStories
6380
6740
  +Download
6381
6741
  -AmpStoriesOutlined
@@ -6386,7 +6746,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
6386
6746
  +DownloadSharp
6387
6747
  -AmpStoriesTwoTone
6388
6748
  +DownloadTwoTone
6389
- // Outbond -> Outbound
6749
+ // Outbond -> Outbound
6390
6750
  -Outbond
6391
6751
  +Outbound
6392
6752
  -OutbondOutlined
@@ -6563,10 +6923,10 @@ A big thanks to the 30 contributors who made this release possible. Here are som
6563
6923
  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
6924
 
6565
6925
  ```diff
6566
- <Box
6567
- - gap={2}
6568
- + gap="2px"
6569
- >
6926
+ <Box
6927
+ - gap={2}
6928
+ + gap="2px"
6929
+ >
6570
6930
  ```
6571
6931
 
6572
6932
  ### `@material-ui/styled-engine@5.0.0-alpha.25`
@@ -6807,14 +7167,14 @@ A big thanks to the 15 contributors who made this release possible. Here are som
6807
7167
  --- a/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6808
7168
  +++ b/docs/src/pages/components/date-range-picker/BasicDateRangePicker.tsx
6809
7169
  @@ -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';
7170
+ import DateRangePicker, { DateRange } from '@material-ui/lab/DateRangePicker';
7171
+ import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
7172
+ import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
6813
7173
  -import DateRangeDelimiter from '@material-ui/lab/DateRangeDelimiter';
6814
7174
  +import Box from '@material-ui/core/Box';
6815
7175
 
6816
- export default function BasicDateRangePicker() {
6817
- const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
7176
+ export default function BasicDateRangePicker() {
7177
+ const [value, setValue] = React.useState<DateRange<Date>>([null, null]);
6818
7178
  @@ -20,7 +20,7 @@ export default function BasicDateRangePicker() {
6819
7179
  renderInput={(startProps, endProps) => (
6820
7180
  <React.Fragment>
@@ -7356,42 +7716,42 @@ A big thanks to the 18 contributors who made this release possible. Here are som
7356
7716
  - [Dialog] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7357
7717
 
7358
7718
  ```diff
7359
- <Dialog
7360
- - disableBackdropClick
7361
- - onClose={handleClose}
7362
- + onClose={(event, reason) => {
7363
- + if (reason !== 'backdropClick') {
7364
- + onClose(event, reason);
7365
- + }
7366
- + }}
7367
- />
7719
+ <Dialog
7720
+ - disableBackdropClick
7721
+ - onClose={handleClose}
7722
+ + onClose={(event, reason) => {
7723
+ + if (reason !== 'backdropClick') {
7724
+ + onClose(event, reason);
7725
+ + }
7726
+ + }}
7727
+ />
7368
7728
  ```
7369
7729
 
7370
7730
  - [Modal] Remove the `disableBackdropClick` prop. It's redundant with the `reason` argument (#23607) @eps1lon.
7371
7731
 
7372
7732
  ```diff
7373
- <Modal
7374
- - disableBackdropClick
7375
- - onClose={handleClose}
7376
- + onClose={(event, reason) => {
7377
- + if (reason !== 'backdropClick') {
7378
- + onClose(event, reason);
7379
- + }
7380
- + }}
7381
- />
7733
+ <Modal
7734
+ - disableBackdropClick
7735
+ - onClose={handleClose}
7736
+ + onClose={(event, reason) => {
7737
+ + if (reason !== 'backdropClick') {
7738
+ + onClose(event, reason);
7739
+ + }
7740
+ + }}
7741
+ />
7382
7742
  ```
7383
7743
 
7384
7744
  - [Modal] Remove the `onEscapeKeyDown` prop. It's redundant with the `reason` argument. (#23571) @eps1lon
7385
7745
 
7386
7746
  ```diff
7387
- <Modal
7747
+ <Modal
7388
7748
  - onEscapeKeyDown={handleEscapeKeyDown}
7389
7749
  + onClose={(event, reason) => {
7390
7750
  + if (reason === "escapeKeyDown") {
7391
7751
  + handleEscapeKeyDown(event);
7392
7752
  + }
7393
7753
  + }}
7394
- />;
7754
+ />;
7395
7755
  ```
7396
7756
 
7397
7757
  #### Changes
@@ -7744,10 +8104,10 @@ Here are some highlights โœจ:
7744
8104
  - The CSS prefixes have changed:
7745
8105
 
7746
8106
  ```diff
7747
- popper: {
7748
- zIndex: 1,
7749
- - '&[x-placement*="bottom"] $arrow': {
7750
- + '&[data-popper-placement*="bottom"] $arrow': {
8107
+ popper: {
8108
+ zIndex: 1,
8109
+ - '&[x-placement*="bottom"] $arrow': {
8110
+ + '&[data-popper-placement*="bottom"] $arrow': {
7751
8111
  ```
7752
8112
 
7753
8113
  - Method names have changed.
@@ -7771,13 +8131,13 @@ Here are some highlights โœจ:
7771
8131
  -import withMobileDialog from '@material-ui/core/withMobileDialog';
7772
8132
  +import {ย useTheme, useMediaQuery } from '@material-ui/core';
7773
8133
 
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);
8134
+ function ResponsiveDialog(props) {
8135
+ - const { fullScreen } = props;
8136
+ + const theme = useTheme();
8137
+ + const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
8138
+ const [open, setOpen] = React.useState(false);
7779
8139
 
7780
- // ...
8140
+ // ...
7781
8141
 
7782
8142
  -export default withMobileDialog()(ResponsiveDialog);
7783
8143
  +export default ResponsiveDialog;
@@ -8023,24 +8383,24 @@ Here are some highlights โœจ:
8023
8383
  The change was done to match the API convention.
8024
8384
 
8025
8385
  ```diff
8026
- <TablePagination
8027
- - onChangeRowsPerPage={()=>{}}
8028
- - onChangePage={()=>{}}
8029
- + onRowsPerPageChange={()=>{}}
8030
- + onPageChange={()=>{}}
8386
+ <TablePagination
8387
+ - onChangeRowsPerPage={()=>{}}
8388
+ - onChangePage={()=>{}}
8389
+ + onRowsPerPageChange={()=>{}}
8390
+ + onPageChange={()=>{}}
8031
8391
  ```
8032
8392
 
8033
8393
  - [theme] Rename fade to alpha (#22834) @mnajdova
8034
8394
  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
8395
 
8036
8396
  ```diff
8037
- - import { fade } from '@material-ui/core/styles';
8038
- + import { alpha } from '@material-ui/core/styles';
8397
+ -import { fade } from '@material-ui/core/styles';
8398
+ +import { alpha } from '@material-ui/core/styles';
8039
8399
 
8040
- const classes = makeStyles(theme => ({
8400
+ const classes = makeStyles(theme => ({
8041
8401
  - backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8042
8402
  + backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
8043
- }));
8403
+ }));
8044
8404
  ```
8045
8405
 
8046
8406
  - [Tooltip] Make `interactive` default (#22382) @eps1lon
@@ -8051,7 +8411,7 @@ Here are some highlights โœจ:
8051
8411
  ```diff
8052
8412
  -<Tooltip>
8053
8413
  +<Tooltip disableInteractive>
8054
- # Interactive tooltips no longer need the `interactive` prop.
8414
+ # Interactive tooltips no longer need the `interactive` prop.
8055
8415
  -<Tooltip interactive>
8056
8416
  +<Tooltip>
8057
8417
  ```
@@ -8299,7 +8659,7 @@ Here are some highlights โœจ:
8299
8659
  Renames `theme.palette.type` to `theme.palette.mode`, to better follow the "dark mode" term that is usually used for describing this feature.
8300
8660
 
8301
8661
  ```diff
8302
- import { createMuiTheme } from '@material-ui/core/styles';
8662
+ import { createMuiTheme } from '@material-ui/core/styles';
8303
8663
 
8304
8664
  -const theme = createMuiTheme({palette: { type: 'dark' }}),
8305
8665
  +const theme = createMuiTheme({palette: { mode: 'dark' }}),
@@ -8364,22 +8724,22 @@ Here are some highlights โœจ:
8364
8724
  You can recover from the change with:
8365
8725
 
8366
8726
  ```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
- />
8727
+ <Autocomplete
8728
+ - renderOption={(option, { selected }) => (
8729
+ - <React.Fragment>
8730
+ + renderOption={(props, option, { selected }) => (
8731
+ + <li {...props}>
8732
+ <Checkbox
8733
+ icon={icon}
8734
+ checkedIcon={checkedIcon}
8735
+ style={{ marginRight: 8 }}
8736
+ checked={selected}
8737
+ />
8738
+ {option.title}
8739
+ - </React.Fragment>
8740
+ + </li>
8741
+ )}
8742
+ />
8383
8743
  ```
8384
8744
 
8385
8745
  #### Changes
@@ -8465,12 +8825,12 @@ Here are some highlights โœจ:
8465
8825
  Rename `focused` to `focusVisible` for consistency with the other components:
8466
8826
 
8467
8827
  ```diff
8468
- <Accordion
8469
- classes={{
8470
- - focused: 'custom-focus-visible-classname',
8471
- + focusVisible: 'custom-focus-visible-classname',
8472
- }}
8473
- />
8828
+ <Accordion
8829
+ classes={{
8830
+ - focused: 'custom-focus-visible-classname',
8831
+ + focusVisible: 'custom-focus-visible-classname',
8832
+ }}
8833
+ />
8474
8834
  ```
8475
8835
 
8476
8836
  - [Stepper] Remove Paper and built-in padding (#22564) @mbrookes
@@ -8550,10 +8910,10 @@ Here are some highlights โœจ:
8550
8910
  If you have a custom `icon` prop but no `emptyIcon` prop, you can restore the previous behavior with:
8551
8911
 
8552
8912
  ```diff
8553
- <Rating
8554
- icon={customIcon}
8555
- + emptyIcon={null}
8556
- />
8913
+ <Rating
8914
+ icon={customIcon}
8915
+ + emptyIcon={null}
8916
+ />
8557
8917
  ```
8558
8918
 
8559
8919
  #### Changes
@@ -8583,7 +8943,7 @@ _Sep 6, 2020_
8583
8943
  A big thanks to the 14 contributors who made this release possible.
8584
8944
  Here are some highlights โœจ:
8585
8945
 
8586
- - ๐Ÿ’Ž A new diamond sponsor: [DoiT](https://www.doit-intl.com/), thank you!
8946
+ - ๐Ÿ’Ž A new diamond sponsor: [DoiT](https://www.doit.com/), thank you!
8587
8947
  - ๐Ÿ“š Include the default value of the props in IntelliSense (#22447) @eps1lon
8588
8948
  - โš›๏ธ More source migrated to TypeScript and testing-library (#22441) @baterson
8589
8949
  - And many more ๐Ÿ› bug fixes and ๐Ÿ“š improvements.
@@ -8679,9 +9039,9 @@ const theme = createMuiTheme({
8679
9039
  1. `props`
8680
9040
 
8681
9041
  ```diff
8682
- import { createMuiTheme } from '@material-ui/core/styles';
9042
+ import { createMuiTheme } from '@material-ui/core/styles';
8683
9043
 
8684
- const theme = createMuiTheme({
9044
+ const theme = createMuiTheme({
8685
9045
  - props: {
8686
9046
  - MuiButton: {
8687
9047
  - disableRipple: true,
@@ -8694,15 +9054,15 @@ const theme = createMuiTheme({
8694
9054
  + },
8695
9055
  + },
8696
9056
  + },
8697
- });
9057
+ });
8698
9058
  ```
8699
9059
 
8700
9060
  2. `overrides`
8701
9061
 
8702
9062
  ```diff
8703
- import { createMuiTheme } from '@material-ui/core/styles';
9063
+ import { createMuiTheme } from '@material-ui/core/styles';
8704
9064
 
8705
- const theme = createMuiTheme({
9065
+ const theme = createMuiTheme({
8706
9066
  - overrides: {
8707
9067
  - MuiButton: {
8708
9068
  - root: { padding: 0 },
@@ -8715,7 +9075,7 @@ const theme = createMuiTheme({
8715
9075
  + },
8716
9076
  + },
8717
9077
  + },
8718
- });
9078
+ });
8719
9079
  ```
8720
9080
 
8721
9081
  Note that if you don't have the time to upgrade the structure of the theme, you
@@ -8826,7 +9186,7 @@ Here are some highlights โœจ:
8826
9186
  The onE\* transition props were removed. Use TransitionProps instead.
8827
9187
 
8828
9188
  ```diff
8829
- <Menu
9189
+ <Menu
8830
9190
  - onEnter={onEnter}
8831
9191
  - onEntered={onEntered},
8832
9192
  - onEntering={onEntered},
@@ -8841,14 +9201,14 @@ Here are some highlights โœจ:
8841
9201
  + onExited,
8842
9202
  + onExiting,
8843
9203
  + }}
8844
- >
9204
+ >
8845
9205
  ```
8846
9206
 
8847
9207
  - [Popover] Remove transition onX props (#22184) @mbrookes
8848
9208
  The onE\* transition props were removed. Use TransitionProps instead.
8849
9209
 
8850
9210
  ```diff
8851
- <Popover
9211
+ <Popover
8852
9212
  - onEnter={onEnter}
8853
9213
  - onEntered={onEntered},
8854
9214
  - onEntering={onEntered},
@@ -8863,7 +9223,7 @@ Here are some highlights โœจ:
8863
9223
  + onExited,
8864
9224
  + onExiting,
8865
9225
  + }}
8866
- />
9226
+ />
8867
9227
  ```
8868
9228
 
8869
9229
  - [TextField] Improve line-height reset (#22149) @imnasnainaec
@@ -9017,7 +9377,7 @@ Here are some highlights โœจ:
9017
9377
  The onE\* transition props were removed. Use TransitionProps instead.
9018
9378
 
9019
9379
  ```diff
9020
- <Dialog
9380
+ <Dialog
9021
9381
  - onEnter={onEnter}
9022
9382
  - onEntered={onEntered},
9023
9383
  - onEntering={onEntered},
@@ -9032,7 +9392,7 @@ Here are some highlights โœจ:
9032
9392
  + onExited,
9033
9393
  + onExiting,
9034
9394
  + }}
9035
- />
9395
+ />
9036
9396
  ```
9037
9397
 
9038
9398
  - [Fab] Rename round -> circular for consistency (#21903) @kodai3
@@ -9079,7 +9439,7 @@ Here are some highlights โœจ:
9079
9439
  The onE\* transition props were removed. Use TransitionProps instead.
9080
9440
 
9081
9441
  ```diff
9082
- <Snackbar
9442
+ <Snackbar
9083
9443
  - onEnter={onEnter}
9084
9444
  - onEntered={onEntered},
9085
9445
  - onEntering={onEntered},
@@ -9094,7 +9454,7 @@ Here are some highlights โœจ:
9094
9454
  + onExited,
9095
9455
  + onExiting,
9096
9456
  + }}
9097
- />
9457
+ />
9098
9458
  ```
9099
9459
 
9100
9460
  - [TextareaAutosize] Rename rowsMax->maxRows & rowsMin->minRows (#21873) @mhayk
@@ -9463,21 +9823,21 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9463
9823
  It prevents inconsistent height on scaled screens. For people customizing the color of the border, the change requires changing the override CSS property:
9464
9824
 
9465
9825
  ```diff
9466
- .MuiDivider-root {
9467
- - background-color: #f00;
9468
- + border-color: #f00;
9469
- }
9826
+ .MuiDivider-root {
9827
+ - background-color: #f00;
9828
+ + border-color: #f00;
9829
+ }
9470
9830
  ```
9471
9831
 
9472
9832
  - [Rating] Rename `visuallyhidden` to `visuallyHidden` for consistency (#21413) @mnajdova.
9473
9833
 
9474
9834
  ```diff
9475
- <Rating
9476
- classes={{
9835
+ <Rating
9836
+ classes={{
9477
9837
  - visuallyhidden: 'custom-visually-hidden-classname',
9478
9838
  + visuallyHidden: 'custom-visually-hidden-classname',
9479
- }}
9480
- />
9839
+ }}
9840
+ />
9481
9841
  ```
9482
9842
 
9483
9843
  - [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 +9857,10 @@ A big thanks to the 33 contributors who made this release possible. Here are som
9497
9857
  The customization of the table pagination's actions labels must be done with the `getItemAriaLabel` prop. This increases consistency with the `Pagination` component.
9498
9858
 
9499
9859
  ```diff
9500
- <TablePagination
9501
- - backIconButtonText="Avant"
9502
- - nextIconButtonText="Aprรจs
9503
- + getItemAriaLabel={โ€ฆ}
9860
+ <TablePagination
9861
+ - backIconButtonText="Avant"
9862
+ - nextIconButtonText="Aprรจs
9863
+ + getItemAriaLabel={โ€ฆ}
9504
9864
  ```
9505
9865
 
9506
9866
  - [ExpansionPanel] Rename to Accordion (#21494) @mnajdova.