@mui/lab 5.0.0-alpha.81 → 5.0.0-alpha.84

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 (70) hide show
  1. package/AdapterDateFns/index.d.ts +1 -1
  2. package/AdapterDayjs/index.d.ts +1 -1
  3. package/AdapterLuxon/index.d.ts +1 -1
  4. package/AdapterMoment/index.d.ts +1 -1
  5. package/CHANGELOG.md +201 -4
  6. package/CalendarPicker/index.d.ts +2 -2
  7. package/CalendarPickerSkeleton/index.d.ts +2 -2
  8. package/ClockPicker/index.d.ts +2 -2
  9. package/DatePicker/index.d.ts +2 -2
  10. package/DateRangePicker/DateRangePicker.d.ts +11 -11
  11. package/DateRangePicker/index.d.ts +2 -2
  12. package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
  13. package/DateRangePickerDay/index.d.ts +2 -2
  14. package/DateTimePicker/index.d.ts +2 -2
  15. package/DesktopDatePicker/index.d.ts +2 -2
  16. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
  17. package/DesktopDateRangePicker/index.d.ts +2 -2
  18. package/DesktopDateTimePicker/index.d.ts +2 -2
  19. package/DesktopTimePicker/index.d.ts +2 -2
  20. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  21. package/LocalizationProvider/index.d.ts +2 -2
  22. package/Masonry/Masonry.js +9 -9
  23. package/Masonry/masonryClasses.d.ts +8 -8
  24. package/MobileDatePicker/index.d.ts +2 -2
  25. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
  26. package/MobileDateRangePicker/index.d.ts +2 -2
  27. package/MobileDateTimePicker/index.d.ts +2 -2
  28. package/MobileTimePicker/index.d.ts +2 -2
  29. package/MonthPicker/index.d.ts +2 -2
  30. package/PickersDay/index.d.ts +2 -2
  31. package/StaticDatePicker/index.d.ts +2 -2
  32. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
  33. package/StaticDateRangePicker/index.d.ts +2 -2
  34. package/StaticDateTimePicker/index.d.ts +2 -2
  35. package/StaticTimePicker/index.d.ts +2 -2
  36. package/TabPanel/tabPanelClasses.d.ts +8 -8
  37. package/TimePicker/index.d.ts +2 -2
  38. package/Timeline/Timeline.d.ts +59 -59
  39. package/Timeline/TimelineContext.d.ts +6 -6
  40. package/Timeline/index.d.ts +5 -5
  41. package/Timeline/timelineClasses.d.ts +3 -3
  42. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  43. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  44. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  45. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  46. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  47. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  48. package/TreeItem/TreeItem.js +1 -1
  49. package/TreeItem/treeItemClasses.d.ts +24 -24
  50. package/TreeView/treeViewClasses.d.ts +8 -8
  51. package/YearPicker/index.d.ts +2 -2
  52. package/index.js +1 -1
  53. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  54. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  55. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  56. package/internal/svg-icons/Calendar.d.ts +7 -7
  57. package/internal/svg-icons/Clock.d.ts +7 -7
  58. package/internal/svg-icons/DateRange.d.ts +7 -7
  59. package/internal/svg-icons/Pen.d.ts +7 -7
  60. package/internal/svg-icons/Time.d.ts +7 -7
  61. package/legacy/Masonry/Masonry.js +9 -9
  62. package/legacy/TreeItem/TreeItem.js +1 -1
  63. package/legacy/index.js +1 -1
  64. package/modern/Masonry/Masonry.js +9 -9
  65. package/modern/TreeItem/TreeItem.js +1 -1
  66. package/modern/index.js +1 -1
  67. package/node/Masonry/Masonry.js +9 -9
  68. package/node/TreeItem/TreeItem.js +1 -1
  69. package/node/index.js +1 -1
  70. package/package.json +13 -5
@@ -1 +1 @@
1
- export { AdapterDateFns as default } from '@mui/x-date-pickers/AdapterDateFns';
1
+ export { AdapterDateFns as default } from '@mui/x-date-pickers/AdapterDateFns';
@@ -1 +1 @@
1
- export { AdapterDayjs as default } from '@mui/x-date-pickers/AdapterDayjs';
1
+ export { AdapterDayjs as default } from '@mui/x-date-pickers/AdapterDayjs';
@@ -1 +1 @@
1
- export { AdapterLuxon as default } from '@mui/x-date-pickers/AdapterLuxon';
1
+ export { AdapterLuxon as default } from '@mui/x-date-pickers/AdapterLuxon';
@@ -1 +1 @@
1
- export { AdapterMoment as default } from '@mui/x-date-pickers/AdapterMoment';
1
+ export { AdapterMoment as default } from '@mui/x-date-pickers/AdapterMoment';
package/CHANGELOG.md CHANGED
@@ -1,5 +1,202 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.8.2
4
+
5
+ <!-- generated comparing v5.8.1..master -->
6
+
7
+ _May 30, 2022_
8
+
9
+ A big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🐛 bug fixes and 📚 documentation improvements.
12
+
13
+ ### `@mui/system@5.8.2`
14
+
15
+ - &#8203;<!-- 04 -->[system] Add `getColorSchemeSelector` util (#32868) @siriwatknp
16
+
17
+ ### `@mui/lab@5.0.0-alpha.84`
18
+
19
+ - &#8203;<!-- 07 -->[Masonry] Place items to the left when there are less objects than specified in `column` prop (#32873) @hbjORbj
20
+
21
+ ### `@mui/base@5.0.0-alpha.83`
22
+
23
+ - &#8203;<!-- 24 -->[BadgeUnstyled] Define ownerState and slot props' types (#32750) @michaldudak
24
+ - &#8203;<!-- 06 -->[SliderUnstyled] Define ownerState and slot props' types (#32739) @michaldudak
25
+ - &#8203;<!-- 05 -->[SwitchUnstyled] Define ownerState and slot props' types (#32573) @michaldudak
26
+ - &#8203;<!-- 03 -->[TabsUnstyled] Define ownerState and slot props' types (#32918) @michaldudak
27
+ - &#8203;<!-- 02 -->[TabUnstyled] Define ownerState and slot props' types (#32915) @michaldudak
28
+
29
+ ### `@mui/joy@5.0.0-alpha.30`
30
+
31
+ - &#8203;<!-- 13 -->[Joy] use `textColor` prop for Typography and Link (#32938) @siriwatknp
32
+ - &#8203;<!-- 12 -->[Joy] Make variants for more flexible (#32931) @siriwatknp
33
+ - &#8203;<!-- 11 -->[Joy] Improve automatic adjustment (#32923) @siriwatknp
34
+ - &#8203;<!-- 10 -->[Joy] Add `Chip` doc (#32819) @hbjORbj
35
+ - &#8203;<!-- 09 -->[Joy] Add `AspectRatio` demos (#32848) @siriwatknp
36
+ - &#8203;<!-- 08 -->[Joy] Fix wrong urls (#32883) @siriwatknp
37
+
38
+ ### Docs
39
+
40
+ - &#8203;<!-- 24 -->[docs] Iterate on the job ad for React engineer in Core (#32900) @mnajdova
41
+ - &#8203;<!-- 23 -->[blog] Fix avatar image resolution (#32890) @oliviertassinari
42
+ - &#8203;<!-- 19 -->[docs] Link the first page of the product (#32943) @oliviertassinari
43
+ - &#8203;<!-- 18 -->[docs] Batch small changes (#32170) @michaldudak
44
+ - &#8203;<!-- 17 -->[docs] Allow function prop to return undefined (#32766) @m4theushw
45
+ - &#8203;<!-- 16 -->[docs] Fix wrong link to Material Icons (#32847) @oliviertassinari
46
+ - &#8203;<!-- 15 -->[docs] Fix ClassNameGenerator content (#32800) @siriwatknp
47
+ - &#8203;<!-- 14 -->[docs] Fix navigation links (#32851) @oliviertassinari
48
+ - &#8203;<!-- 14 -->[docs] Document the `size` prop for InputLabel (#32936) @romelperez
49
+ - &#8203;<!-- 21 -->[docs] Add note about transparent background on the outlined Alert variant (#32810) @aaarichter
50
+ - &#8203;<!-- 01 -->[website] Update the careers's page with the new roles (#32535) @oliviertassinari
51
+
52
+ ### Core
53
+
54
+ - &#8203;<!-- 22 -->[core] Improve the incomplete issues workflow (#32878) @mnajdova
55
+ - &#8203;<!-- 21 -->[core] Add CI check that the PR has label (#32886) @mnajdova
56
+ - &#8203;<!-- 20 -->[core] Avoid leaking @babel/runtime (#32874) @oliviertassinari
57
+
58
+ All contributors of this release in alphabetical order: @aaarichter, @hbjORbj, @m4theushw, @michaldudak, @mnajdova, @oliviertassinari, @romelperez, @siriwatknp
59
+
60
+ ## 5.8.1
61
+
62
+ <!-- generated comparing v5.8.0..master -->
63
+
64
+ _May 23, 2022_
65
+
66
+ A big thanks to the 21 contributors who made this release possible. Here are some highlights ✨:
67
+
68
+ - 💅 Added CSS variables support for two more Material UI components by @diggis00 and @alisasanib
69
+ - And more 🐛 bug fixes and 📚 documentation improvements.
70
+
71
+ ### `@mui/material@5.8.1`
72
+
73
+ - &#8203;<!-- 33 -->[Alert] Fix missing `ownerState` on the `action` slot (#32801) @mnajdova
74
+ - &#8203;<!-- 20 -->[Fab] Make the `color` prop type extendable (#31830) @paales
75
+ - &#8203;<!-- 14 -->[ListItemButton] Render as link if href specified (#32403) @o-dubrovskyi
76
+ - &#8203;<!-- 13 -->[Paper] Add support for CSS variables (#32570) @diggis00
77
+ - &#8203;<!-- 11 -->[Radio] Add support for CSS variables (#32599) @alisasanib
78
+ - &#8203;<!-- 10 -->[Slider] Prevent rendering for marks that are out of the min & max bounds (#32436) @abriginets
79
+ - &#8203;<!-- 09 -->[Slider] Slider having marks should be customizable in theme (#32816) @ZeeshanTamboli
80
+ - &#8203;<!-- 03 -->[TouchRipple] Allows call imperative methods without event (#31955) @alexfauquette
81
+
82
+ ### `@mui/system@5.8.1`
83
+
84
+ - &#8203;<!-- 07 -->[system] Simplify stylesheet injection logic (#32869) @siriwatknp
85
+ - &#8203;<!-- 06 -->[system] Fix color scheme specificity (#32628) @siriwatknp
86
+ - &#8203;<!-- 05 -->[system] Fix `borderRadius` errors when used inside `CssVarsProvider` (#32817) @mnajdova
87
+ - &#8203;<!-- 04 -->[system] Fix toolbar media query mixin getting merged in wrong order (#32713) @ZeeshanTamboli
88
+
89
+ ### `@mui/lab@5.0.0-alpha.83`
90
+
91
+ - &#8203;<!-- 15 -->[lab] Add missing `peerDependencies` (#32623) @nate-summercook
92
+ - &#8203;<!-- 12 -->[pickers] Update @mui/x-date-pickers to be usable with React 18 (#32828) @flaviendelangle
93
+
94
+ ### `@mui/base@5.0.0-alpha.82`
95
+
96
+ - &#8203;<!-- 08 -->[SliderUnstyled] Fix `disabledSwap` not being respected in `onChangeCommitted` (#32647) @JeanPetrov
97
+
98
+ ### `@mui/joy@5.0.0-alpha.29`
99
+
100
+ - &#8203;<!-- 19 -->[Joy] Show Joy pages on master (#32866) @siriwatknp
101
+ - &#8203;<!-- 18 -->[Joy] Add an overview page (#32836) @danilo-leal
102
+ - &#8203;<!-- 17 -->[Joy] Add doc for the card components (#32825) @siriwatknp
103
+ - &#8203;<!-- 16 -->[Joy] Miscellaneous fixes (#32815) @siriwatknp
104
+
105
+ ### Docs
106
+
107
+ - &#8203;<!-- 31 -->[docs] Simplify header DOM structure (#32844) @oliviertassinari
108
+ - &#8203;<!-- 30 -->[docs] Fix CodeSandbox & StackBlitz generation (#32726) @siriwatknp
109
+ - &#8203;<!-- 29 -->[docs] Fix urls to columns pages in pricing table (#32842) @alexfauquette
110
+ - &#8203;<!-- 28 -->[docs] Fix Tailwind CSS integration docs (#32512) @robertwt7
111
+ - &#8203;<!-- 27 -->[docs] Fixed wrong command for the `link-underline-hover` codemod (#32793) @veronikaslc
112
+ - &#8203;<!-- 26 -->[docs] Fixed broken link on the icons page (#32780) @SamuelMaddox
113
+ - &#8203;<!-- 25 -->[docs] Add "back to top" button (#30441) @VibhorJaiswal
114
+ - &#8203;<!-- 24 -->[docs] Fix typo in notifications @mbrookes
115
+ - &#8203;<!-- 32 -->[docs] New WAI-ARIA guidelines location (#32865) @oliviertassinari
116
+ - &#8203;<!-- 23 -->[docs] Mention the ESLint plugin for detecting unused classes in tss-react (#32666) @garronej
117
+ - &#8203;<!-- 22 -->[docs] Update `useAutocomplete` demos to use `Mui-focused` class (#32757) @ZeeshanTamboli
118
+ - &#8203;<!-- 21 -->[examples] Fix `NextLinkComposedProps` gives a TypeScript error (#32655) @ZeeshanTamboli
119
+ - &#8203;<!-- 01 -->[website] Add Pedro to About Us page (#32803) @apedroferreira
120
+
121
+ ### Core
122
+
123
+ - &#8203;<!-- 32 -->[core] Upgrade MUI X dependency (#32824) @oliviertassinari
124
+ - &#8203;<!-- 02 -->[typescript] Allow module augmentation for `Mixins` (#32798) @mnajdova
125
+
126
+ All contributors of this release in alphabetical order: @abriginets, @alexfauquette, @alisasanib, @apedroferreira, @danilo-leal, @diggis00, @flaviendelangle, @garronej, @JeanPetrov, @mbrookes, @mnajdova, @nate-summercook, @o-dubrovskyi, @oliviertassinari, @paales, @robertwt7, @SamuelMaddox, @siriwatknp, @veronikaslc, @VibhorJaiswal, @ZeeshanTamboli
127
+
128
+ ## 5.8.0
129
+
130
+ <!-- generated comparing v5.7.0..master -->
131
+
132
+ _May 17, 2022_
133
+
134
+ A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
135
+
136
+ - 🚀 [Blog post](https://mui.com/blog/premium-plan-release/) for announcing the release of the Premium plan of MUI X is out thanks to @joserodolfofreitas.
137
+ - Codemod for `jss` to `tss-react` migration is out thanks to @ryancogswell
138
+ - And more 🐛 bug fixes and 📚 documentation improvements.
139
+
140
+ ### `@mui/material@5.8.0`
141
+
142
+ - &#8203;<!-- 37 -->[Autocomplete] Fix `getInputProps` TypeScript return type (#32730) @ZeeshanTamboli
143
+ - &#8203;<!-- 36 -->[Autocomplete] Forward props to renderTags() (#32637) @emlai
144
+ - &#8203;<!-- 35 -->[Badge] Fix TypeScript error when adding style overrides for Badge (#32745) @ZeeshanTamboli
145
+ - &#8203;<!-- 09 -->[Menu] Fix context menu open position (#32661) @oliviertassinari
146
+
147
+ ### `@mui/system@5.8.0`
148
+
149
+ - &#8203;<!-- 05 -->[system] Add `Container` component and `createContainer` factory (#32263) @mnajdova
150
+
151
+ ### `@mui/base@5.0.0-alpha.81`
152
+
153
+ - &#8203;<!-- 15 -->[InputUnstyled] Support callbacks in componentsProps (#32271) @michaldudak
154
+ - &#8203;<!-- 14 -->[InputUnstyled] Define ownerState and slot props' types (#32491) @michaldudak
155
+ - &#8203;<!-- 08 -->[MenuUnstyled] Demos improvements (#32714) @michaldudak
156
+ - &#8203;<!-- 07 -->[OptionUnstyled] Define ownerState and slot props' types (#32717) @michaldudak
157
+
158
+ ### `@mui/joy@5.0.0-alpha.28`
159
+
160
+ - &#8203;<!-- 13 -->[Joy] Add Badge doc (#32790) @siriwatknp
161
+ - &#8203;<!-- 12 -->[Joy] Add global variant feature page (#32695) @siriwatknp
162
+ - &#8203;<!-- 11 -->[Joy] Add avatar page (#32711) @siriwatknp
163
+
164
+ ### `@mui/codemod@5.8.0`
165
+
166
+ - &#8203;<!-- 33 -->[codemod] Add jss to tss-react codemod (#31802) @ryancogswell
167
+
168
+ ### Docs
169
+
170
+ - &#8203;<!-- 34 -->[blog] Add release post for MUI X Premium (#32720) @joserodolfofreitas
171
+ - &#8203;<!-- 29 -->[docs] Fix wrong code snippet for overriding styles in theme with a callback value (#32781) @ZeeshanTamboli
172
+ - &#8203;<!-- 28 -->[docs] Update Crowdin logo (#32782) @andrii-bodnar
173
+ - &#8203;<!-- 27 -->[docs] Improve callouts design (#32709) @danilo-leal
174
+ - &#8203;<!-- 26 -->[docs] Revise the "Understanding MUI packages" article (#32382) @danilo-leal
175
+ - &#8203;<!-- 25 -->[docs] Fix link to the material icons (#32771) @oliviertassinari
176
+ - &#8203;<!-- 24 -->[docs] Add notification for Premium release blog post (#32728) @joserodolfofreitas
177
+ - &#8203;<!-- 23 -->[docs] Base Portal style revisions and final review (#32157) @samuelsycamore
178
+ - &#8203;<!-- 22 -->[docs] Add joy to docs package.json (#32744) @siriwatknp
179
+ - &#8203;<!-- 21 -->[docs] Fix TOC-related styles not being applied when disableAd=true (#32733) @cherniavskii
180
+ - &#8203;<!-- 20 -->[docs] Add TypeScript guide on the polymorphic components (#32168) @mnajdova
181
+ - &#8203;<!-- 19 -->[docs] Fix warning mode pass to React.Fragment (#32729) @siriwatknp
182
+ - &#8203;<!-- 18 -->[docs] Revise Showcase copy for clarity + audit appList (#31946) @samuelsycamore
183
+ - &#8203;<!-- 17 -->[examples] Update remix example's tsconfig with required values (#32723) @michaldudak
184
+ - &#8203;<!-- 16 -->[examples] Update to use React 18's createRoot (#32506) @mnajdova
185
+ - &#8203;<!-- 10 -->[l10n] Fix typos and translations on arSD and arEG locales (#31848) @shadigaafar
186
+ - &#8203;<!-- 04 -->[website] Improve communication about MUI X components that are still wip (#32708) @danilo-leal
187
+ - &#8203;<!-- 03 -->[website] Remove scrollbar on x-axis (#32291) @MrHBS
188
+ - &#8203;<!-- 02 -->[website] Update the pricing page for the MUI X premium plan release (#32458) @joserodolfofreitas
189
+ - &#8203;<!-- 01 -->[website] Update sponsors (#32725) @oliviertassinari
190
+
191
+ ### Core
192
+
193
+ - &#8203;<!-- 32 -->[core] Enabled Renovate's lockfile maintenance (#32635) @michaldudak
194
+ - &#8203;<!-- 31 -->[core] Extract `MuiPage` interface to separate file (#32715) @cherniavskii
195
+ - &#8203;<!-- 30 -->[core] Remove unnecessary `spacing` parameter from `createMixins` method (#32690) @ZeeshanTamboli
196
+ - &#8203;<!-- 06 -->[private-classnames] Remove package and move everything to utils (#32758) @mnajdova
197
+
198
+ All contributors of this release in alphabetical order: @andrii-bodnar, @cherniavskii, @danilo-leal, @emlai, @joserodolfofreitas, @michaldudak, @mnajdova, @MrHBS, @oliviertassinari, @ryancogswell, @samuelsycamore, @shadigaafar, @siriwatknp, @ZeeshanTamboli
199
+
3
200
  ## 5.7.0
4
201
 
5
202
  <!-- generated comparing v5.6.4..master -->
@@ -851,7 +1048,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
851
1048
  - [docs] Fix force redirection to a different locale (#30967) @oliviertassinari
852
1049
  - [docs] Add live Tailwind CSS demo (#30966) @oliviertassinari
853
1050
  - [website] Add banner for promoting priority open roles (#31076) @danilo-leal
854
- - [website] Open Full-stack Engineer role for studio (#31038) @newguy-123
1051
+ - [website] Open Full-stack Engineer role for studio (#31038) @prakhargupta1
855
1052
  - [website] Minor security improvements (#31062) @oliviertassinari
856
1053
  - [website] Improve title of open roles (#30963) @DanailH
857
1054
  - [website] Add BIMI avatar (#30444) @oliviertassinari
@@ -866,7 +1063,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
866
1063
  - [test] Test if certain Base members are exported from Material UI (#31067) @michaldudak
867
1064
  - [core] Remove dead code (#31064) @oliviertassinari
868
1065
 
869
- All contributors of this release in alphabetical order: @agauravdev, @alisasanib, @DanailH, @danilo-leal, @huyenltnguyen, @l10nbot, @liradb2000, @mbrookes, @michaldudak, @mnajdova, @newguy-123, @oliviertassinari, @ryohey, @samuelsycamore, @siriwatknp, @sydneyjodon-wk
1066
+ All contributors of this release in alphabetical order: @agauravdev, @alisasanib, @DanailH, @danilo-leal, @huyenltnguyen, @l10nbot, @liradb2000, @mbrookes, @michaldudak, @mnajdova, @prakhargupta1, @oliviertassinari, @ryohey, @samuelsycamore, @siriwatknp, @sydneyjodon-wk
870
1067
 
871
1068
  ## 5.4.1
872
1069
 
@@ -1576,14 +1773,14 @@ This is an early release to fix `export 'useId' (imported as 'React') was not fo
1576
1773
  - &#8203;<!-- 9 -->[core] Fix PR run detection in test_bundle_size_monitor (#29879) @eps1lon
1577
1774
  - &#8203;<!-- 8 -->[core] Move bundle size monitoring to CircleCI (#29876) @eps1lon
1578
1775
  - &#8203;<!-- 7 -->[docs] Add keys to Responsive AppBar demo (#29884) @mbrookes
1579
- - &#8203;<!-- 6 -->[docs] MUI's 2021 Developer survey (#29765) @newguy-123
1776
+ - &#8203;<!-- 6 -->[docs] MUI's 2021 Developer survey (#29765) @prakhargupta1
1580
1777
  - &#8203;<!-- 5 -->[docs] Smoother image loading UX (#29858) @oliviertassinari
1581
1778
  - &#8203;<!-- 4 -->[Select] Fix select display value with React Nodes (#29836) @kegi
1582
1779
  - &#8203;<!-- 3 -->[system] Add `experimental_sx` utility (#29833) @mnajdova
1583
1780
  - &#8203;<!-- 2 -->[test] Ignore "detected multiple renderers" warning for now (#29854) @eps1lon
1584
1781
  - &#8203;<!-- 1 -->[useMediaQuery][utils] Remove usage of React 18 APIs (#29870) @eps1lon
1585
1782
 
1586
- All contributors of this release in alphabetical order: @eps1lon, @karakib2k18, @kegi, @mbrookes, @mnajdova, @newguy-123, @oliviertassinari
1783
+ All contributors of this release in alphabetical order: @eps1lon, @karakib2k18, @kegi, @mbrookes, @mnajdova, @prakhargupta1, @oliviertassinari
1587
1784
 
1588
1785
  ## 5.2.0
1589
1786
 
@@ -1,2 +1,2 @@
1
- export { CalendarPicker as default, calendarPickerClasses, } from '@mui/x-date-pickers/CalendarPicker';
2
- export type { CalendarPickerClassKey, CalendarPickerClasses, CalendarPickerProps, CalendarPickerView, } from '@mui/x-date-pickers/CalendarPicker';
1
+ export { CalendarPicker as default, calendarPickerClasses, } from '@mui/x-date-pickers/CalendarPicker';
2
+ export type { CalendarPickerClassKey, CalendarPickerClasses, CalendarPickerProps, CalendarPickerView, } from '@mui/x-date-pickers/CalendarPicker';
@@ -1,2 +1,2 @@
1
- export { CalendarPickerSkeleton as default, calendarPickerSkeletonClasses, getCalendarPickerSkeletonUtilityClass, } from '@mui/x-date-pickers/CalendarPickerSkeleton';
2
- export type { CalendarPickerSkeletonClassKey, CalendarPickerSkeletonProps, } from '@mui/x-date-pickers/CalendarPickerSkeleton';
1
+ export { CalendarPickerSkeleton as default, calendarPickerSkeletonClasses, getCalendarPickerSkeletonUtilityClass, } from '@mui/x-date-pickers/CalendarPickerSkeleton';
2
+ export type { CalendarPickerSkeletonClassKey, CalendarPickerSkeletonProps, } from '@mui/x-date-pickers/CalendarPickerSkeleton';
@@ -1,2 +1,2 @@
1
- export { ClockPicker as default, clockPickerClasses } from '@mui/x-date-pickers/ClockPicker';
2
- export type { ClockPickerClasses, ClockPickerClassKey, ClockPickerProps, ClockPickerView, } from '@mui/x-date-pickers/ClockPicker';
1
+ export { ClockPicker as default, clockPickerClasses } from '@mui/x-date-pickers/ClockPicker';
2
+ export type { ClockPickerClasses, ClockPickerClassKey, ClockPickerProps, ClockPickerView, } from '@mui/x-date-pickers/ClockPicker';
@@ -1,2 +1,2 @@
1
- export { DatePicker as default } from '@mui/x-date-pickers/DatePicker';
2
- export type { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
1
+ export { DatePicker as default } from '@mui/x-date-pickers/DatePicker';
2
+ export type { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
2
- declare type DateRangePickerComponent = (<TDate>(props: DateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const DateRangePicker: DateRangePickerComponent;
9
- export default DateRangePicker;
10
- export declare type DateRangePickerProps = Record<any, any>;
11
- export declare type DateRange<TDate> = [TDate | null, TDate | null];
1
+ import * as React from 'react';
2
+ declare type DateRangePickerComponent = (<TDate>(props: DateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const DateRangePicker: DateRangePickerComponent;
9
+ export default DateRangePicker;
10
+ export declare type DateRangePickerProps = Record<any, any>;
11
+ export declare type DateRange<TDate> = [TDate | null, TDate | null];
@@ -1,2 +1,2 @@
1
- export { default } from './DateRangePicker';
2
- export * from './DateRangePicker';
1
+ export { default } from './DateRangePicker';
2
+ export * from './DateRangePicker';
@@ -1,13 +1,13 @@
1
- import * as React from 'react';
2
- declare type DateRangePickerDayComponent = (<TDate>(props: DateRangePickerDayProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const DateRangePickerDay: DateRangePickerDayComponent;
9
- export default DateRangePickerDay;
10
- export declare const getDateRangePickerDayUtilityClass: (slot: string) => string;
11
- export declare type DateRangePickerDayProps = Record<any, any>;
12
- export declare type DateRangePickerDayClasses = any;
13
- export declare type DateRangePickerDayClassKey = any;
1
+ import * as React from 'react';
2
+ declare type DateRangePickerDayComponent = (<TDate>(props: DateRangePickerDayProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const DateRangePickerDay: DateRangePickerDayComponent;
9
+ export default DateRangePickerDay;
10
+ export declare const getDateRangePickerDayUtilityClass: (slot: string) => string;
11
+ export declare type DateRangePickerDayProps = Record<any, any>;
12
+ export declare type DateRangePickerDayClasses = any;
13
+ export declare type DateRangePickerDayClassKey = any;
@@ -1,2 +1,2 @@
1
- export { default } from './DateRangePickerDay';
2
- export * from './DateRangePickerDay';
1
+ export { default } from './DateRangePickerDay';
2
+ export * from './DateRangePickerDay';
@@ -1,2 +1,2 @@
1
- export { DateTimePicker as default } from '@mui/x-date-pickers/DateTimePicker';
2
- export type { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';
1
+ export { DateTimePicker as default } from '@mui/x-date-pickers/DateTimePicker';
2
+ export type { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';
@@ -1,2 +1,2 @@
1
- export { DesktopDatePicker as default } from '@mui/x-date-pickers/DesktopDatePicker';
2
- export type { DesktopDatePickerProps } from '@mui/x-date-pickers/DesktopDatePicker';
1
+ export { DesktopDatePicker as default } from '@mui/x-date-pickers/DesktopDatePicker';
2
+ export type { DesktopDatePickerProps } from '@mui/x-date-pickers/DesktopDatePicker';
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
9
- export default DesktopDateRangePicker;
10
- export declare type DesktopDateRangePickerProps = Record<any, any>;
1
+ import * as React from 'react';
2
+ declare type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
9
+ export default DesktopDateRangePicker;
10
+ export declare type DesktopDateRangePickerProps = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './DesktopDateRangePicker';
2
- export * from './DesktopDateRangePicker';
1
+ export { default } from './DesktopDateRangePicker';
2
+ export * from './DesktopDateRangePicker';
@@ -1,2 +1,2 @@
1
- export { DesktopDateTimePicker as default } from '@mui/x-date-pickers/DesktopDateTimePicker';
2
- export type { DesktopDateTimePickerProps } from '@mui/x-date-pickers/DesktopDateTimePicker';
1
+ export { DesktopDateTimePicker as default } from '@mui/x-date-pickers/DesktopDateTimePicker';
2
+ export type { DesktopDateTimePickerProps } from '@mui/x-date-pickers/DesktopDateTimePicker';
@@ -1,2 +1,2 @@
1
- export { DesktopTimePicker as default } from '@mui/x-date-pickers/DesktopTimePicker';
2
- export type { DesktopTimePickerProps } from '@mui/x-date-pickers/DesktopTimePicker';
1
+ export { DesktopTimePicker as default } from '@mui/x-date-pickers/DesktopTimePicker';
2
+ export type { DesktopTimePickerProps } from '@mui/x-date-pickers/DesktopTimePicker';
@@ -1,22 +1,22 @@
1
- export interface LoadingButtonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `loading={true}`. */
5
- loading: string;
6
- /** Styles applied to the loadingIndicator element. */
7
- loadingIndicator: string;
8
- /** Styles applied to the loadingIndicator element if `loadingPosition="center"`. */
9
- loadingIndicatorCenter: string;
10
- /** Styles applied to the loadingIndicator element if `loadingPosition="start"`. */
11
- loadingIndicatorStart: string;
12
- /** Styles applied to the loadingIndicator element if `loadingPosition="end"`. */
13
- loadingIndicatorEnd: string;
14
- /** Styles applied to the endIcon element if `loading={true}` and `loadingPosition="end"`. */
15
- endIconLoadingEnd: string;
16
- /** Styles applied to the startIcon element if `loading={true}` and `loadingPosition="start"`. */
17
- startIconLoadingStart: string;
18
- }
19
- export declare type LoadingButtonClassKey = keyof LoadingButtonClasses;
20
- export declare function getLoadingButtonUtilityClass(slot: string): string;
21
- declare const loadingButtonClasses: LoadingButtonClasses;
22
- export default loadingButtonClasses;
1
+ export interface LoadingButtonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `loading={true}`. */
5
+ loading: string;
6
+ /** Styles applied to the loadingIndicator element. */
7
+ loadingIndicator: string;
8
+ /** Styles applied to the loadingIndicator element if `loadingPosition="center"`. */
9
+ loadingIndicatorCenter: string;
10
+ /** Styles applied to the loadingIndicator element if `loadingPosition="start"`. */
11
+ loadingIndicatorStart: string;
12
+ /** Styles applied to the loadingIndicator element if `loadingPosition="end"`. */
13
+ loadingIndicatorEnd: string;
14
+ /** Styles applied to the endIcon element if `loading={true}` and `loadingPosition="end"`. */
15
+ endIconLoadingEnd: string;
16
+ /** Styles applied to the startIcon element if `loading={true}` and `loadingPosition="start"`. */
17
+ startIconLoadingStart: string;
18
+ }
19
+ export declare type LoadingButtonClassKey = keyof LoadingButtonClasses;
20
+ export declare function getLoadingButtonUtilityClass(slot: string): string;
21
+ declare const loadingButtonClasses: LoadingButtonClasses;
22
+ export default loadingButtonClasses;
@@ -1,2 +1,2 @@
1
- export { LocalizationProvider as default } from '@mui/x-date-pickers/LocalizationProvider';
2
- export type { LocalizationProviderProps } from '@mui/x-date-pickers/LocalizationProvider';
1
+ export { LocalizationProvider as default } from '@mui/x-date-pickers/LocalizationProvider';
2
+ export type { LocalizationProviderProps } from '@mui/x-date-pickers/LocalizationProvider';
@@ -14,6 +14,12 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
14
14
  export const parseToNumber = val => {
15
15
  return Number(val.replace('px', ''));
16
16
  };
17
+ const lineBreakStyle = {
18
+ flexBasis: '100%',
19
+ width: 0,
20
+ margin: 0,
21
+ padding: 0
22
+ };
17
23
 
18
24
  const useUtilityClasses = ownerState => {
19
25
  const {
@@ -33,13 +39,13 @@ export const getStyle = ({
33
39
  width: '100%',
34
40
  display: 'flex',
35
41
  flexFlow: 'column wrap',
36
- alignContent: 'space-between',
42
+ alignContent: 'flex-start',
37
43
  boxSizing: 'border-box',
38
44
  '& > *': {
39
45
  boxSizing: 'border-box'
40
46
  }
41
47
  };
42
- const stylesSSR = {};
48
+ const stylesSSR = {}; // Only applicable for Server-Side Rendering
43
49
 
44
50
  if (ownerState.isSSR) {
45
51
  const orderStyleSSR = {};
@@ -245,13 +251,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
245
251
 
246
252
  return () => resizeObserver ? resizeObserver.disconnect() : {};
247
253
  }, [columns, spacing, children]);
248
- const handleRef = useForkRef(ref, masonryRef);
249
- const lineBreakStyle = {
250
- flexBasis: '100%',
251
- width: 0,
252
- margin: 0,
253
- padding: 0
254
- }; // columns are likely to have different heights and hence can start to merge;
254
+ const handleRef = useForkRef(ref, masonryRef); // columns are likely to have different heights and hence can start to merge;
255
255
  // a line break at the end of each column prevents columns from merging
256
256
 
257
257
  const lineBreaks = new Array(numberOfLineBreaks).fill('').map((_, index) => /*#__PURE__*/_jsx("span", {
@@ -1,8 +1,8 @@
1
- export interface MasonryClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type MasonryClassKey = keyof MasonryClasses;
6
- export declare function getMasonryUtilityClass(slot: string): string;
7
- declare const masonryClasses: MasonryClasses;
8
- export default masonryClasses;
1
+ export interface MasonryClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type MasonryClassKey = keyof MasonryClasses;
6
+ export declare function getMasonryUtilityClass(slot: string): string;
7
+ declare const masonryClasses: MasonryClasses;
8
+ export default masonryClasses;
@@ -1,2 +1,2 @@
1
- export { MobileDatePicker as default } from '@mui/x-date-pickers/MobileDatePicker';
2
- export type { MobileDatePickerProps } from '@mui/x-date-pickers/MobileDatePicker';
1
+ export { MobileDatePicker as default } from '@mui/x-date-pickers/MobileDatePicker';
2
+ export type { MobileDatePickerProps } from '@mui/x-date-pickers/MobileDatePicker';
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const MobileDateRangePicker: MobileDateRangePickerComponent;
9
- export default MobileDateRangePicker;
10
- export declare type MobileDateRangePickerProps = Record<any, any>;
1
+ import * as React from 'react';
2
+ declare type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const MobileDateRangePicker: MobileDateRangePickerComponent;
9
+ export default MobileDateRangePicker;
10
+ export declare type MobileDateRangePickerProps = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './MobileDateRangePicker';
2
- export * from './MobileDateRangePicker';
1
+ export { default } from './MobileDateRangePicker';
2
+ export * from './MobileDateRangePicker';
@@ -1,2 +1,2 @@
1
- export { MobileDateTimePicker as default } from '@mui/x-date-pickers/MobileDateTimePicker';
2
- export type { MobileDateTimePickerProps } from '@mui/x-date-pickers/MobileDateTimePicker';
1
+ export { MobileDateTimePicker as default } from '@mui/x-date-pickers/MobileDateTimePicker';
2
+ export type { MobileDateTimePickerProps } from '@mui/x-date-pickers/MobileDateTimePicker';
@@ -1,2 +1,2 @@
1
- export { MobileTimePicker as default } from '@mui/x-date-pickers/MobileTimePicker';
2
- export type { MobileTimePickerProps } from '@mui/x-date-pickers/MobileTimePicker';
1
+ export { MobileTimePicker as default } from '@mui/x-date-pickers/MobileTimePicker';
2
+ export type { MobileTimePickerProps } from '@mui/x-date-pickers/MobileTimePicker';
@@ -1,2 +1,2 @@
1
- export { MonthPicker as default, getMonthPickerUtilityClass, monthPickerClasses, } from '@mui/x-date-pickers/MonthPicker';
2
- export type { MonthPickerClassKey, MonthPickerProps } from '@mui/x-date-pickers/MonthPicker';
1
+ export { MonthPicker as default, getMonthPickerUtilityClass, monthPickerClasses, } from '@mui/x-date-pickers/MonthPicker';
2
+ export type { MonthPickerClassKey, MonthPickerProps } from '@mui/x-date-pickers/MonthPicker';
@@ -1,2 +1,2 @@
1
- export { PickersDay as default, pickersDayClasses, getPickersDayUtilityClass, } from '@mui/x-date-pickers/PickersDay';
2
- export type { PickersDayClassKey, PickersDayProps } from '@mui/x-date-pickers/PickersDay';
1
+ export { PickersDay as default, pickersDayClasses, getPickersDayUtilityClass, } from '@mui/x-date-pickers/PickersDay';
2
+ export type { PickersDayClassKey, PickersDayProps } from '@mui/x-date-pickers/PickersDay';
@@ -1,2 +1,2 @@
1
- export { StaticDatePicker as default } from '@mui/x-date-pickers/StaticDatePicker';
2
- export type { StaticDatePickerProps } from '@mui/x-date-pickers/StaticDatePicker';
1
+ export { StaticDatePicker as default } from '@mui/x-date-pickers/StaticDatePicker';
2
+ export type { StaticDatePickerProps } from '@mui/x-date-pickers/StaticDatePicker';
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
- propTypes?: any;
4
- };
5
- /**
6
- * @ignore - do not document.
7
- */
8
- declare const StaticDateRangePicker: StaticDateRangePickerComponent;
9
- export default StaticDateRangePicker;
10
- export declare type StaticDateRangePickerProps = Record<any, any>;
1
+ import * as React from 'react';
2
+ declare type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ propTypes?: any;
4
+ };
5
+ /**
6
+ * @ignore - do not document.
7
+ */
8
+ declare const StaticDateRangePicker: StaticDateRangePickerComponent;
9
+ export default StaticDateRangePicker;
10
+ export declare type StaticDateRangePickerProps = Record<any, any>;
@@ -1,2 +1,2 @@
1
- export { default } from './StaticDateRangePicker';
2
- export * from './StaticDateRangePicker';
1
+ export { default } from './StaticDateRangePicker';
2
+ export * from './StaticDateRangePicker';
@@ -1,2 +1,2 @@
1
- export { StaticDateTimePicker as default } from '@mui/x-date-pickers/StaticDateTimePicker';
2
- export type { StaticDateTimePickerProps } from '@mui/x-date-pickers/StaticDateTimePicker';
1
+ export { StaticDateTimePicker as default } from '@mui/x-date-pickers/StaticDateTimePicker';
2
+ export type { StaticDateTimePickerProps } from '@mui/x-date-pickers/StaticDateTimePicker';
@@ -1,2 +1,2 @@
1
- export { StaticTimePicker as default } from '@mui/x-date-pickers/StaticTimePicker';
2
- export type { StaticTimePickerProps } from '@mui/x-date-pickers/StaticTimePicker';
1
+ export { StaticTimePicker as default } from '@mui/x-date-pickers/StaticTimePicker';
2
+ export type { StaticTimePickerProps } from '@mui/x-date-pickers/StaticTimePicker';