@mui/lab 5.0.0-alpha.67 → 5.0.0-alpha.68

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 (165) 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 +100 -28
  6. package/CalendarPicker/CalendarPicker.d.ts +106 -106
  7. package/CalendarPicker/PickersCalendar.d.ts +47 -47
  8. package/CalendarPicker/PickersCalendarHeader.d.ts +43 -43
  9. package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
  10. package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
  11. package/CalendarPicker/index.d.ts +5 -5
  12. package/CalendarPicker/shared.d.ts +1 -1
  13. package/CalendarPicker/useCalendarState.d.ts +32 -32
  14. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -41
  15. package/CalendarPickerSkeleton/index.d.ts +3 -3
  16. package/ClockPicker/Clock.d.ts +28 -28
  17. package/ClockPicker/ClockNumber.d.ts +19 -19
  18. package/ClockPicker/ClockNumber.js +1 -0
  19. package/ClockPicker/ClockNumbers.d.ts +24 -24
  20. package/ClockPicker/ClockPicker.d.ts +121 -121
  21. package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
  22. package/ClockPicker/ClockPointer.d.ts +23 -23
  23. package/ClockPicker/index.d.ts +5 -5
  24. package/ClockPicker/shared.d.ts +5 -5
  25. package/DatePicker/DatePicker.d.ts +27 -27
  26. package/DatePicker/DatePickerToolbar.d.ts +23 -23
  27. package/DatePicker/index.d.ts +2 -2
  28. package/DatePicker/shared.d.ts +45 -45
  29. package/DateRangePicker/DateRangePicker.d.ts +65 -65
  30. package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
  31. package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
  32. package/DateRangePicker/DateRangePickerView.d.ts +44 -44
  33. package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
  34. package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
  35. package/DateRangePicker/RangeTypes.d.ts +8 -8
  36. package/DateRangePicker/date-range-manager.d.ts +14 -14
  37. package/DateRangePicker/index.d.ts +3 -3
  38. package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
  39. package/DateRangePickerDay/index.d.ts +2 -2
  40. package/DateTimePicker/DateTimePicker.d.ts +27 -27
  41. package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
  42. package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
  43. package/DateTimePicker/index.d.ts +2 -2
  44. package/DateTimePicker/shared.d.ts +67 -67
  45. package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
  46. package/DesktopDatePicker/index.d.ts +2 -2
  47. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
  48. package/DesktopDateRangePicker/index.d.ts +2 -2
  49. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
  50. package/DesktopDateTimePicker/index.d.ts +2 -2
  51. package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
  52. package/DesktopTimePicker/index.d.ts +2 -2
  53. package/LoadingButton/LoadingButton.js +3 -1
  54. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  55. package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
  56. package/LocalizationProvider/index.d.ts +2 -2
  57. package/Masonry/masonryClasses.d.ts +8 -8
  58. package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
  59. package/MobileDatePicker/index.d.ts +2 -2
  60. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
  61. package/MobileDateRangePicker/index.d.ts +2 -2
  62. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
  63. package/MobileDateTimePicker/index.d.ts +2 -2
  64. package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
  65. package/MobileTimePicker/index.d.ts +2 -2
  66. package/MonthPicker/MonthPicker.d.ts +53 -53
  67. package/MonthPicker/PickersMonth.d.ts +15 -15
  68. package/MonthPicker/index.d.ts +3 -3
  69. package/PickersDay/PickersDay.d.ts +93 -93
  70. package/PickersDay/index.d.ts +4 -4
  71. package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
  72. package/StaticDatePicker/index.d.ts +2 -2
  73. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
  74. package/StaticDateRangePicker/index.d.ts +2 -2
  75. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
  76. package/StaticDateTimePicker/index.d.ts +2 -2
  77. package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
  78. package/StaticTimePicker/index.d.ts +2 -2
  79. package/TabPanel/tabPanelClasses.d.ts +8 -8
  80. package/TimePicker/TimePicker.d.ts +27 -27
  81. package/TimePicker/TimePickerToolbar.d.ts +23 -23
  82. package/TimePicker/index.d.ts +2 -2
  83. package/TimePicker/shared.d.ts +36 -36
  84. package/Timeline/Timeline.d.ts +59 -59
  85. package/Timeline/TimelineContext.d.ts +6 -6
  86. package/Timeline/index.d.ts +5 -5
  87. package/Timeline/timelineClasses.d.ts +3 -3
  88. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  89. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  90. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  91. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  92. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  93. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  94. package/TreeItem/TreeItem.js +1 -1
  95. package/TreeItem/treeItemClasses.d.ts +24 -24
  96. package/TreeView/treeViewClasses.d.ts +8 -8
  97. package/YearPicker/PickersYear.d.ts +28 -28
  98. package/YearPicker/YearPicker.d.ts +44 -44
  99. package/YearPicker/index.d.ts +5 -5
  100. package/YearPicker/yearPickerClasses.d.ts +3 -3
  101. package/index.js +1 -1
  102. package/internal/pickers/KeyboardDateInput.d.ts +4 -4
  103. package/internal/pickers/Picker/Picker.d.ts +33 -33
  104. package/internal/pickers/Picker/PickerView.d.ts +3 -3
  105. package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
  106. package/internal/pickers/PickersModalDialog.d.ts +47 -47
  107. package/internal/pickers/PickersModalDialog.js +1 -1
  108. package/internal/pickers/PickersPopper.d.ts +33 -33
  109. package/internal/pickers/PickersToolbar.d.ts +14 -14
  110. package/internal/pickers/PickersToolbarButton.d.ts +13 -13
  111. package/internal/pickers/PickersToolbarText.d.ts +8 -8
  112. package/internal/pickers/PureDateInput.d.ts +80 -80
  113. package/internal/pickers/constants/dimensions.d.ts +4 -4
  114. package/internal/pickers/constants/prop-types.d.ts +1 -1
  115. package/internal/pickers/date-time-utils.d.ts +8 -8
  116. package/internal/pickers/date-utils.d.ts +52 -52
  117. package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
  118. package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
  119. package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
  120. package/internal/pickers/hooks/useOpenState.d.ts +10 -10
  121. package/internal/pickers/hooks/usePickerState.d.ts +38 -38
  122. package/internal/pickers/hooks/usePickerState.js +6 -4
  123. package/internal/pickers/hooks/useUtils.d.ts +7 -7
  124. package/internal/pickers/hooks/useValidation.d.ts +23 -23
  125. package/internal/pickers/hooks/useViews.d.ts +19 -19
  126. package/internal/pickers/text-field-helper.d.ts +11 -11
  127. package/internal/pickers/time-utils.d.ts +33 -33
  128. package/internal/pickers/typings/BasePicker.d.ts +95 -95
  129. package/internal/pickers/typings/Views.d.ts +1 -1
  130. package/internal/pickers/typings/helpers.d.ts +9 -9
  131. package/internal/pickers/utils.d.ts +7 -7
  132. package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
  133. package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
  134. package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
  135. package/internal/pickers/wrappers/PickerStaticWrapper.d.ts +21 -21
  136. package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
  137. package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
  138. package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
  139. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  140. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  141. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  142. package/internal/svg-icons/Calendar.d.ts +7 -7
  143. package/internal/svg-icons/Clock.d.ts +7 -7
  144. package/internal/svg-icons/DateRange.d.ts +7 -7
  145. package/internal/svg-icons/Pen.d.ts +7 -7
  146. package/internal/svg-icons/Time.d.ts +7 -7
  147. package/legacy/ClockPicker/ClockNumber.js +1 -0
  148. package/legacy/LoadingButton/LoadingButton.js +3 -1
  149. package/legacy/TreeItem/TreeItem.js +1 -1
  150. package/legacy/index.js +1 -1
  151. package/legacy/internal/pickers/PickersModalDialog.js +1 -1
  152. package/legacy/internal/pickers/hooks/usePickerState.js +11 -6
  153. package/modern/ClockPicker/ClockNumber.js +1 -0
  154. package/modern/LoadingButton/LoadingButton.js +3 -1
  155. package/modern/TreeItem/TreeItem.js +1 -1
  156. package/modern/index.js +1 -1
  157. package/modern/internal/pickers/PickersModalDialog.js +1 -1
  158. package/modern/internal/pickers/hooks/usePickerState.js +6 -4
  159. package/node/ClockPicker/ClockNumber.js +1 -0
  160. package/node/LoadingButton/LoadingButton.js +3 -1
  161. package/node/TreeItem/TreeItem.js +1 -1
  162. package/node/index.js +1 -1
  163. package/node/internal/pickers/PickersModalDialog.js +1 -1
  164. package/node/internal/pickers/hooks/usePickerState.js +6 -4
  165. package/package.json +7 -7
@@ -1 +1 @@
1
- export { default } from '@date-io/date-fns';
1
+ export { default } from '@date-io/date-fns';
@@ -1 +1 @@
1
- export { default } from '@date-io/dayjs';
1
+ export { default } from '@date-io/dayjs';
@@ -1 +1 @@
1
- export { default } from '@date-io/luxon';
1
+ export { default } from '@date-io/luxon';
@@ -1 +1 @@
1
- export { default } from '@date-io/moment';
1
+ export { default } from '@date-io/moment';
package/CHANGELOG.md CHANGED
@@ -1,5 +1,77 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.4.1
4
+
5
+ <!-- generated comparing v5.4.0..master -->
6
+
7
+ _Feb 8, 2022_
8
+
9
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - ♿️ Snackbar messages are now announced by NVDA when using Firefox (#30774) @eps1lon
12
+ - Several 🐛 bug fixes and 📚 documentation improvements.
13
+
14
+ ### `@mui/material@5.4.1`
15
+
16
+ - &#8203;<!-- 37 -->[AvatarGroup] Enable targeting of additional Avatar when max props is passed (#30794) @mogrady88
17
+ - &#8203;<!-- 36 -->[Badge] Fix showzero and invisible condition (#30899) @alisasanib
18
+ - &#8203;<!-- 35 -->[ButtonBase] Expose ref to TouchRipple (#30901) @m4theushw
19
+ - &#8203;<!-- 15 -->[Fab] Add support for the default theme colors (#30846) @alisasanib
20
+ - &#8203;<!-- 11 -->[SelectInput] Only attach click handler to label if a labelId is passed (#30239) @johsunds
21
+ - &#8203;<!-- 09 -->[Snackbar] Ensure messages are announced in NVDA+FF (#30774) @eps1lon
22
+
23
+ ### `@mui/base@5.0.0-alpha.68`
24
+
25
+ - &#8203;<!-- 10 -->[SelectUnstyled] Improve exported types (#30895) @michaldudak
26
+
27
+ ### `@mui/lab@5.0.0-alpha.68`
28
+
29
+ - &#8203;<!-- 12 -->[Pickers] Fix `onDismiss` handler in `MobileDatePicker` (#30768) @Ashish2097
30
+ - &#8203;<!-- 06 -->[TimePicker] Add font family for clock numbers (#30738) @alisasanib
31
+
32
+ ### `@mui/joy@5.0.0-alpha.14`
33
+
34
+ - &#8203;<!-- 14 -->[Joy] Add `IconButton` component (#30864) @siriwatknp
35
+ - &#8203;<!-- 13 -->[Joy] Use icon inside a Button (#30803) @siriwatknp
36
+
37
+ ### Docs
38
+
39
+ - &#8203;<!-- 16 -->[examples] Fix vitejs example and improve HMR (#30897) @mihailgaberov
40
+ - &#8203;<!-- 33 -->[docs] Improve autocomplete "limit tags" demo (#30910) @danilo-leal
41
+ - &#8203;<!-- 34 -->[docs] Sync translations with Crowdin (#30950) @l10nbot
42
+ - &#8203;<!-- 38 -->[docs] Improve description of the disableRestoreFocus prop of the `TrapFocus` (#30912) @flaviendelangle
43
+ - &#8203;<!-- 32 -->[docs] Remove ul with div children and replace with nav element (#30534) @joeframbach
44
+ - &#8203;<!-- 31 -->[docs] Add Saleor to showcase (#30924) @cherniavskii
45
+ - &#8203;<!-- 30 -->[docs] Include JSS in styling solution interoperability guide (#30736) @garronej
46
+ - &#8203;<!-- 29 -->[docs] Fix contents of link-underline-hover (#30904) @pppp606
47
+ - &#8203;<!-- 28 -->[docs] Fix markdown table format (#30947) @oliviertassinari
48
+ - &#8203;<!-- 27 -->[docs] Add missing import to RTL guide (#30891) @CFarhad
49
+ - &#8203;<!-- 26 -->[docs] Fix WithStyles import statement for @mui/styles (#30942) @altruity
50
+ - &#8203;<!-- 25 -->[docs] Fix broken roadmap table (#30943) @cherniavskii
51
+ - &#8203;<!-- 24 -->[docs] Fix broken URL in "Edit this page" button (#30923) @cherniavskii
52
+ - &#8203;<!-- 23 -->[docs] Migrate content to the new location (#30757) @siriwatknp
53
+ - &#8203;<!-- 22 -->[docs] Fix the link to the Vite.js example project (#30872) @GneyHabub
54
+ - &#8203;<!-- 21 -->[docs] Clarify the minimum configuration for TypeScript (#30790) @mnajdova
55
+ - &#8203;<!-- 20 -->[docs] Clarify what the name of @mui/material is (#30866) @oliviertassinari
56
+ - &#8203;<!-- 19 -->[docs] Remove migration from the releases page (#30863) @mnajdova
57
+ - &#8203;<!-- 18 -->[docs] Update Instructions for Google Maps Autocomplete (#30849) @kjschabra
58
+ - &#8203;<!-- 17 -->[docs] Hotfix notification <b> (#30862) @siriwatknp
59
+ - &#8203;<!-- 04 -->[website] Sample GA to avoid hit limit (#30919) @oliviertassinari
60
+ - &#8203;<!-- 03 -->[website] Hide scrollbars of hero containers (#29474) @theiliad
61
+ - &#8203;<!-- 02 -->[website] Polishing spacing and other small things (#30828) @danilo-leal
62
+ - &#8203;<!-- 01 -->[website] Close the Developer Advocate role (#30867) @oliviertassinari
63
+
64
+ ### Core
65
+
66
+ - &#8203;<!-- 37 -->[core] Batch small fixes (#30952) @oliviertassinari
67
+ - &#8203;<!-- 34 -->[core] Rename the GitHub org (#30944) @oliviertassinari
68
+ - &#8203;<!-- 33 -->[core] Fix propTypes in components where OverridableStringUnion is used (#30682) @paales
69
+ - &#8203;<!-- 08 -->[test] Codify the difference between keyup and keydown in SelectUnstyled (#30857) @eps1lon
70
+ - &#8203;<!-- 07 -->[test] Fix typo (#30841) @caioagiani
71
+ - &#8203;<!-- 05 -->[utils] Use built-in hook when available for useId (#30654) @eps1lon
72
+
73
+ All contributors of this release in alphabetical order: @alisasanib, @altruity, @Ashish2097, @caioagiani, @CFarhad, @cherniavskii, @danilo-leal, @eps1lon, @flaviendelangle, @garronej, @GneyHabub, @joeframbach, @johsunds, @kjschabra, @m4theushw, @michaldudak, @mihailgaberov, @mnajdova, @mogrady88, @oliviertassinari, @paales, @pppp606, @siriwatknp, @theiliad
74
+
3
75
  ## 5.4.0
4
76
 
5
77
  <!-- generated comparing v5.3.1..master -->
@@ -8,7 +80,7 @@ _Feb 1, 2022_
8
80
 
9
81
  A big thanks to the 22 contributors who made this release possible. Here are some highlights ✨:
10
82
 
11
- - 🛠 @goncalovf added an example project using [MUI with Vite.js](https://github.com/mui-org/material-ui/tree/master/examples/vitejs) (#28241)
83
+ - 🛠 @goncalovf added an example project using [MUI with Vite.js](https://github.com/mui/material-ui/tree/master/examples/vitejs) (#28241)
12
84
  - Number of 🐛 bug fixes and 📚 documentation improvements.
13
85
 
14
86
  ### `@mui/material@5.4.0`
@@ -486,7 +558,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
486
558
 
487
559
  <a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
488
560
 
489
- You can follow our progress with unstyled components at https://github.com/mui-org/material-ui/issues/27170.
561
+ You can follow our progress with unstyled components at https://github.com/mui/material-ui/issues/27170.
490
562
 
491
563
  - 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
492
564
 
@@ -1460,8 +1532,8 @@ _Sep 1, 2021_
1460
1532
 
1461
1533
  A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
1462
1534
 
1463
- - 🎉 Renamed packages to `@mui/*` as part of rebranding the company, following the strategy of expanding the library scope beyond Material Design. For more details about it, check the [GitHub discussion](https://github.com/mui-org/material-ui/discussions/27803).
1464
- - 🛠 Added `mui-replace` codemod for migrating `@material-ui/*` to new packages `@mui/*`. Check out this [codemod detail](https://github.com/mui-org/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) or head to [migration guide](https://mui.com/guides/migration-v4/#preset-safe)
1535
+ - 🎉 Renamed packages to `@mui/*` as part of rebranding the company, following the strategy of expanding the library scope beyond Material Design. For more details about it, check the [GitHub discussion](https://github.com/mui/material-ui/discussions/27803).
1536
+ - 🛠 Added `mui-replace` codemod for migrating `@material-ui/*` to new packages `@mui/*`. Check out this [codemod detail](https://github.com/mui/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) or head to [migration guide](https://mui.com/guides/migration-v4/#preset-safe)
1465
1537
  - 🧪 Added new `<Mansory>` component to the lab, [check it out](https://mui.com/components/masonry/). It has been crafted by our first intern, @hbjORbj 👏!
1466
1538
 
1467
1539
  ### `@mui/material@5.0.0-rc.0`
@@ -1493,7 +1565,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
1493
1565
 
1494
1566
  > **Note**: `@mui/base` (previously `@material-ui/unstyled`) is not the same as `@material-ui/core`.
1495
1567
 
1496
- We encourage you to use the [codemod](https://github.com/mui-org/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) for smooth migration.
1568
+ We encourage you to use the [codemod](https://github.com/mui/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) for smooth migration.
1497
1569
 
1498
1570
  #### Changes
1499
1571
 
@@ -1561,7 +1633,7 @@ _Aug 24, 2021_
1561
1633
 
1562
1634
  A big thanks to the 26 contributors who made this release possible. Here are some highlights ✨:
1563
1635
 
1564
- - 🐛 Fixed a lot of bugs and regressions to get us closer to the [v5 stable release milestone](https://github.com/mui-org/material-ui/milestone/44)
1636
+ - 🐛 Fixed a lot of bugs and regressions to get us closer to the [v5 stable release milestone](https://github.com/mui/material-ui/milestone/44)
1565
1637
  - 📚 Improved the docs and the migration guide for upgrading to v5
1566
1638
 
1567
1639
  ### `@material-ui/core@5.0.0-beta.5`
@@ -1956,7 +2028,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
1956
2028
 
1957
2029
  <a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
1958
2030
 
1959
- You can follow our progress at https://github.com/mui-org/material-ui/issues/27170.
2031
+ You can follow our progress at https://github.com/mui/material-ui/issues/27170.
1960
2032
 
1961
2033
  - 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
1962
2034
  You can find the new [default values](https://mui.com/customization/palette/#default-values) in the documentation.
@@ -2062,9 +2134,9 @@ _Jul 01, 2021_
2062
2134
 
2063
2135
  A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
2064
2136
 
2065
- - 🎉 This is the first beta release of v5! A huge thanks to everyone who helped to make this happen! We're targeting the 1st of September for a stable release, and will use the next two months to polish v5, and ease the migration from v4. You can follow [the v5 stable milestone](https://github.com/mui-org/material-ui/milestone/44) for more details. We now encourage any new projects to start on v5.
2137
+ - 🎉 This is the first beta release of v5! A huge thanks to everyone who helped to make this happen! We're targeting the 1st of September for a stable release, and will use the next two months to polish v5, and ease the migration from v4. You can follow [the v5 stable milestone](https://github.com/mui/material-ui/milestone/44) for more details. We now encourage any new projects to start on v5.
2066
2138
  - 🚀 We have completed all the planned breaking changes.
2067
- - ⚒️ We added the codemod CLI to simplify migration to v5 (#26941) @eps1lon. You can find it at [`@material-ui/codemod`](https://github.com/mui-org/material-ui/tree/HEAD/packages/mui-codemod).
2139
+ - ⚒️ We added the codemod CLI to simplify migration to v5 (#26941) @eps1lon. You can find it at [`@material-ui/codemod`](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod).
2068
2140
  - 🐛 The majority of other changes in this release were bug fixes, test utilities and docs.
2069
2141
 
2070
2142
  ### `@material-ui/core@5.0.0-beta.0`
@@ -2073,7 +2145,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
2073
2145
 
2074
2146
  - [Tabs] Remove unnecessary wrapper from Tab (#26926) @siriwatknp
2075
2147
 
2076
- `span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui-org/material-ui/pull/26666).
2148
+ `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).
2077
2149
 
2078
2150
  ```diff
2079
2151
  <button class="MuiTab-root">
@@ -2086,7 +2158,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
2086
2158
 
2087
2159
  - [BottomNavigation] Remove wrapper from BottomNavigationAction (#26923) @siriwatknp
2088
2160
 
2089
- `span` element that wraps children has been removed. `wrapper` classKey is also removed. More details about [this change](https://github.com/mui-org/material-ui/pull/26666).
2161
+ `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).
2090
2162
 
2091
2163
  ```diff
2092
2164
  <button class="MuiBottomNavigationAction-root">
@@ -2198,7 +2270,7 @@ _Jun 23, 2021_
2198
2270
 
2199
2271
  A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
2200
2272
 
2201
- - 🚀 We have only 2 left in the [breaking changes](https://github.com/mui-org/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.
2273
+ - 🚀 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.
2202
2274
  - 🎨 We have updated `Slider` to match current [Material Design guidelines](https://material.io/components/sliders).
2203
2275
 
2204
2276
  <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>
@@ -2240,7 +2312,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
2240
2312
 
2241
2313
  - &#8203;<!-- 09 -->[theme] Improve default breakpoints (#26746) @siriwatknp
2242
2314
 
2243
- 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-org/material-ui/issues/21902).
2315
+ 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).
2244
2316
 
2245
2317
  ```diff
2246
2318
  {
@@ -2294,7 +2366,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
2294
2366
 
2295
2367
  - &#8203;<!-- 14 -->[IconButton] Remove label span (#26801) @siriwatknp
2296
2368
 
2297
- `span` element that wraps children has been removed. `label` classKey is also removed. More details about [this change](https://github.com/mui-org/material-ui/pull/26666).
2369
+ `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).
2298
2370
 
2299
2371
  ```diff
2300
2372
  <button class="MuiIconButton-root">
@@ -2415,7 +2487,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
2415
2487
 
2416
2488
  - ⚒️ We've introduced a new `useTheme` and `useThemeProps` hooks in the `@material-ui/system` package.
2417
2489
  We believe that this package can be used as a standalone styling solution for building custom design systems (#26649) @mnajdova.
2418
- - 💥 Made progress with the breaking changes. We have done 105 of the 109 changes [planned](https://github.com/mui-org/material-ui/issues/20012). We are getting closer to our goal of releasing 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui-org/material-ui/milestone/35) for more details.
2490
+ - 💥 Made progress with the breaking changes. We have done 105 of the 109 changes [planned](https://github.com/mui/material-ui/issues/20012). We are getting closer to our goal of releasing 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui/material-ui/milestone/35) for more details.
2419
2491
  - And many more 🐛 bug fixes and 📚 improvements.
2420
2492
 
2421
2493
  ### `@material-ui/core@5.0.0-alpha.37`
@@ -2627,7 +2699,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
2627
2699
 
2628
2700
  - 👩‍🎤 We have completed the migration to emotion of all the components (`@material-ui/core` and `@material-ui/lab`) @siriwatknp, @mnajdova.
2629
2701
  - 📦 Save [10 kB gzipped](https://bundlephobia.com/package/@material-ui/core@5.0.0-alpha.34) by removing the dependency on `@material-ui/styles` (JSS) from the core and the lab (#26377, #26382, #26376) @mnajdova.
2630
- - ⚒️ Add many new [codemods](https://github.com/mui-org/material-ui/blob/HEAD/packages/mui-codemod/README.md) to automate the migration from v4 to v5 (#24867) @mbrookes.
2702
+ - ⚒️ Add many new [codemods](https://github.com/mui/material-ui/blob/HEAD/packages/mui-codemod/README.md) to automate the migration from v4 to v5 (#24867) @mbrookes.
2631
2703
  - And many more 🐛 bug fixes and 📚 improvements.
2632
2704
 
2633
2705
  ### `@material-ui/core@5.0.0-alpha.35`
@@ -2788,7 +2860,7 @@ _May 18, 2021_
2788
2860
 
2789
2861
  A big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
2790
2862
 
2791
- - 💥 Make progress with the breaking changes. We have done 89 of the 109 changes [planned](https://github.com/mui-org/material-ui/issues/20012). We will release 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui-org/material-ui/milestone/35) for more details.
2863
+ - 💥 Make progress with the breaking changes. We have done 89 of the 109 changes [planned](https://github.com/mui/material-ui/issues/20012). We will release 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui/material-ui/milestone/35) for more details.
2792
2864
  - 🚀 Make progress with components migration to emotion. We have done 153 of the 168 components (almost there!)
2793
2865
  - And many more 🐛 bug fixes and 📚 improvements.
2794
2866
 
@@ -2952,7 +3024,7 @@ _May 9, 2021_
2952
3024
 
2953
3025
  A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
2954
3026
 
2955
- - 💥 Make progress with the breaking changes. We have done 81 of the 109 changes [planned](https://github.com/mui-org/material-ui/issues/20012). We will release 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui-org/material-ui/milestone/35) for more details.
3027
+ - 💥 Make progress with the breaking changes. We have done 81 of the 109 changes [planned](https://github.com/mui/material-ui/issues/20012). We will release 5.0.0-beta.0 on July 1st and start to promote its usage over v4. You can also follow [our milestone](https://github.com/mui/material-ui/milestone/35) for more details.
2956
3028
  - And many more 🐛 bug fixes and 📚 improvements.
2957
3029
 
2958
3030
  ### `@material-ui/core@5.0.0-alpha.33`
@@ -3457,7 +3529,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
3457
3529
  #### Breaking changes
3458
3530
 
3459
3531
  - [FormControl] Change default variant from standard to outlined (#24895) @petyosi
3460
- Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui-org/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
3532
+ Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
3461
3533
 
3462
3534
  ```diff
3463
3535
  -<FormControl value="Standard" />
@@ -3469,7 +3541,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
3469
3541
  - [Menu] The `selectedMenu` variant will not vertically align the selected item with the anchor anymore. (#25691) @m4theushw
3470
3542
  - [Popover] Remove the `getContentAnchorEl` prop to simplify the positioning logic. (#25691) @m4theushw
3471
3543
  - [Select] Change default variant from standard to outlined (#24895) @petyosi
3472
- Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui-org/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
3544
+ Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
3473
3545
 
3474
3546
  ```diff
3475
3547
  -<Select value="Standard" />
@@ -3673,7 +3745,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
3673
3745
  ```
3674
3746
 
3675
3747
  This feature was made possible by the recent migration to emotion.
3676
- You can [find the other issues](https://github.com/mui-org/material-ui/issues?q=is%3Aopen+is%3Aissue+label%3A%22component%3A+Grid%22) unlocked by the migration to emotion on the Grid component that are left to be solved.
3748
+ You can [find the other issues](https://github.com/mui/material-ui/issues?q=is%3Aopen+is%3Aissue+label%3A%22component%3A+Grid%22) unlocked by the migration to emotion on the Grid component that are left to be solved.
3677
3749
 
3678
3750
  - 👩‍🎤 Convert 3 components to emotion (#25541, #25516, #25521) @rajzik, @praveenkumar-kalidass, @siriwatknp.
3679
3751
  - 📚 Migrate 8 component demo pages to the `sx`, `Stack`, and `styled` API @vicasas.
@@ -4891,7 +4963,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
4891
4963
 
4892
4964
  - [Box] Remove deprecated props (#23716) @mnajdova
4893
4965
  All props are now available under the `sx` prop. A deprecation will be landing in v4.
4894
- Thanks to @mbrookes developers can automate the migration with a [codemod](https://github.com/mui-org/material-ui/blob/next/packages/mui-codemod/README.md#box-sx-prop).
4966
+ Thanks to @mbrookes developers can automate the migration with a [codemod](https://github.com/mui/material-ui/blob/next/packages/mui-codemod/README.md#box-sx-prop).
4895
4967
 
4896
4968
  ```diff
4897
4969
  -<Box p={2} bgColor="primary.main">
@@ -5142,9 +5214,9 @@ _Nov 14, 2020_
5142
5214
  A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
5143
5215
 
5144
5216
  - 📅 Migrate the date picker to the lab (#22692) @dmtrKovalenko.
5145
- We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui-org/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high quality bar we have for core components. You can find the [new documentation here](https://mui.com/components/pickers/).
5217
+ We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high quality bar we have for core components. You can find the [new documentation here](https://mui.com/components/pickers/).
5146
5218
 
5147
- While the source code is currently hosted in the [main repository](https://github.com/mui-org/material-ui), we might move it to the [x repository](https://github.com/mui-org/material-ui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
5219
+ While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
5148
5220
 
5149
5221
  - 📚 Revamp the documentation for [the system](https://mui.com/system/basics/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
5150
5222
  - 👩‍🎨 Upgrade emotion to v11 (#23007) @mnajdova.
@@ -5155,7 +5227,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
5155
5227
  #### Breaking changes
5156
5228
 
5157
5229
  - [TextField] Change default variant from standard to outlined (#23503) @mbrookes
5158
- Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui-org/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
5230
+ Standard has been removed from the Material Design guidelines. [This codemod](https://github.com/mui/material-ui/tree/next/packages/mui-codemod#variant-prop) will automatically update your code.
5159
5231
 
5160
5232
  ```diff
5161
5233
  -<TextField value="Standard" />
@@ -5252,11 +5324,11 @@ A big thanks to the 20 contributors who made this release possible. Here are som
5252
5324
 
5253
5325
  **Why an unstyled package?**
5254
5326
 
5255
- While engineering teams are successfully building custom design systems by wrapping Material-UI, we [occasionally hear](https://github.com/mui-org/material-ui/issues/6218) that Material Design or our styling solution are something they don't need. Some teams prefer SASS, others prefer to customize the components starting from a pristine state. What all these teams have in common is that they value the features coming from the components, such as accessibility.
5327
+ While engineering teams are successfully building custom design systems by wrapping Material-UI, we [occasionally hear](https://github.com/mui/material-ui/issues/6218) that Material Design or our styling solution are something they don't need. Some teams prefer SASS, others prefer to customize the components starting from a pristine state. What all these teams have in common is that they value the features coming from the components, such as accessibility.
5256
5328
 
5257
5329
  The unstyled package goes one step down in the abstraction layer, providing more flexibility. Angular Material introduced this approach two years ago. Today their unstyled components account for [25% of the usage](https://npm-stat.com/charts.html?package=%40angular%2Fmaterial&package=%40angular%2Fcdk&from=2017-11-03&to=2020-11-03).
5258
5330
 
5259
- Another reason for introducing this package is to prepare the groundwork for a [second theme](https://github.com/mui-org/material-ui/issues/22485) (not Material Design based).
5331
+ Another reason for introducing this package is to prepare the groundwork for a [second theme](https://github.com/mui/material-ui/issues/22485) (not Material Design based).
5260
5332
 
5261
5333
  A note on the terminology: "unstyled" means that the components have the same API as the "styled" components but come without CSS. Material-UI also contains "headless" components that exposes a hook API, e.g. [useAutocomplete](https://mui.com/components/autocomplete/#useautocomplete) or [usePagination](https://mui.com/components/pagination/#usepagination).
5262
5334
 
@@ -7312,4 +7384,4 @@ A big thanks to the 33 contributors who made this release possible. Here are som
7312
7384
 
7313
7385
  ## Older versions
7314
7386
 
7315
- Changes before 5.x are listed in our [changelog for older versions](https://github.com/mui-org/material-ui/blob/HEAD/CHANGELOG.old.md).
7387
+ Changes before 5.x are listed in our [changelog for older versions](https://github.com/mui/material-ui/blob/HEAD/CHANGELOG.old.md).
@@ -1,106 +1,106 @@
1
- import * as React from 'react';
2
- import { ExportedCalendarProps } from './PickersCalendar';
3
- import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
- import { ExportedCalendarHeaderProps } from './PickersCalendarHeader';
5
- import { ExportedYearPickerProps } from '../YearPicker/YearPicker';
6
- import { CalendarPickerView } from './shared';
7
- export interface CalendarPickerClasses {
8
- /** Styles applied to the root element. */
9
- root: string;
10
- /** Styles applied to the transition group element. */
11
- viewTransitionContainer: string;
12
- }
13
- export declare type CalendarPickerClassKey = keyof CalendarPickerClasses;
14
- export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>, ExportedYearPickerProps<TDate>, ExportedCalendarHeaderProps<TDate> {
15
- className?: string;
16
- date: TDate | null;
17
- /**
18
- * Default calendar month displayed when `value={null}`.
19
- */
20
- defaultCalendarMonth?: TDate;
21
- /**
22
- * If `true`, the picker and text field are disabled.
23
- * @default false
24
- */
25
- disabled?: boolean;
26
- /**
27
- * @default false
28
- */
29
- disableFuture?: boolean;
30
- /**
31
- * @default false
32
- */
33
- disablePast?: boolean;
34
- /**
35
- * Max selectable date. @DateIOType
36
- */
37
- maxDate?: TDate;
38
- /**
39
- * Min selectable date. @DateIOType
40
- */
41
- minDate?: TDate;
42
- /**
43
- * Callback fired on view change.
44
- */
45
- onViewChange?: (view: CalendarPickerView) => void;
46
- /**
47
- * Callback fired on date change
48
- */
49
- onChange: PickerOnChangeFn<TDate>;
50
- /**
51
- * Callback firing on month change. @DateIOType
52
- */
53
- onMonthChange?: (date: TDate) => void;
54
- /**
55
- * Initially open view.
56
- * @default 'day'
57
- */
58
- openTo?: CalendarPickerView;
59
- /**
60
- * Make picker read only.
61
- * @default false
62
- */
63
- readOnly?: boolean;
64
- /**
65
- * Disable heavy animations.
66
- * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
67
- */
68
- reduceAnimations?: boolean;
69
- /**
70
- * Component displaying when passed `loading` true.
71
- * @default () => <span data-mui-test="loading-progress">...</span>
72
- */
73
- renderLoading?: () => React.ReactNode;
74
- /**
75
- * Disable specific date. @DateIOType
76
- */
77
- shouldDisableDate?: (day: TDate) => boolean;
78
- /**
79
- * Controlled open view.
80
- */
81
- view?: CalendarPickerView;
82
- /**
83
- * Views for calendar picker.
84
- * @default ['year', 'day']
85
- */
86
- views?: readonly CalendarPickerView[];
87
- }
88
- export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
89
- interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
90
- classes?: Partial<CalendarPickerClasses>;
91
- }
92
- export declare function getCalendarPickerUtilityClass(slot: string): string;
93
- export declare const calendarPickerClasses: CalendarPickerClasses;
94
- export declare const defaultReduceAnimations: boolean;
95
- declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
96
- /**
97
- *
98
- * Demos:
99
- *
100
- * - [Date Picker](https://mui.com/components/date-picker/)
101
- *
102
- * API:
103
- *
104
- * - [CalendarPicker API](https://mui.com/api/calendar-picker/)
105
- */
106
- export default _default;
1
+ import * as React from 'react';
2
+ import { ExportedCalendarProps } from './PickersCalendar';
3
+ import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
+ import { ExportedCalendarHeaderProps } from './PickersCalendarHeader';
5
+ import { ExportedYearPickerProps } from '../YearPicker/YearPicker';
6
+ import { CalendarPickerView } from './shared';
7
+ export interface CalendarPickerClasses {
8
+ /** Styles applied to the root element. */
9
+ root: string;
10
+ /** Styles applied to the transition group element. */
11
+ viewTransitionContainer: string;
12
+ }
13
+ export declare type CalendarPickerClassKey = keyof CalendarPickerClasses;
14
+ export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>, ExportedYearPickerProps<TDate>, ExportedCalendarHeaderProps<TDate> {
15
+ className?: string;
16
+ date: TDate | null;
17
+ /**
18
+ * Default calendar month displayed when `value={null}`.
19
+ */
20
+ defaultCalendarMonth?: TDate;
21
+ /**
22
+ * If `true`, the picker and text field are disabled.
23
+ * @default false
24
+ */
25
+ disabled?: boolean;
26
+ /**
27
+ * @default false
28
+ */
29
+ disableFuture?: boolean;
30
+ /**
31
+ * @default false
32
+ */
33
+ disablePast?: boolean;
34
+ /**
35
+ * Max selectable date. @DateIOType
36
+ */
37
+ maxDate?: TDate;
38
+ /**
39
+ * Min selectable date. @DateIOType
40
+ */
41
+ minDate?: TDate;
42
+ /**
43
+ * Callback fired on view change.
44
+ */
45
+ onViewChange?: (view: CalendarPickerView) => void;
46
+ /**
47
+ * Callback fired on date change
48
+ */
49
+ onChange: PickerOnChangeFn<TDate>;
50
+ /**
51
+ * Callback firing on month change. @DateIOType
52
+ */
53
+ onMonthChange?: (date: TDate) => void;
54
+ /**
55
+ * Initially open view.
56
+ * @default 'day'
57
+ */
58
+ openTo?: CalendarPickerView;
59
+ /**
60
+ * Make picker read only.
61
+ * @default false
62
+ */
63
+ readOnly?: boolean;
64
+ /**
65
+ * Disable heavy animations.
66
+ * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
67
+ */
68
+ reduceAnimations?: boolean;
69
+ /**
70
+ * Component displaying when passed `loading` true.
71
+ * @default () => <span data-mui-test="loading-progress">...</span>
72
+ */
73
+ renderLoading?: () => React.ReactNode;
74
+ /**
75
+ * Disable specific date. @DateIOType
76
+ */
77
+ shouldDisableDate?: (day: TDate) => boolean;
78
+ /**
79
+ * Controlled open view.
80
+ */
81
+ view?: CalendarPickerView;
82
+ /**
83
+ * Views for calendar picker.
84
+ * @default ['year', 'day']
85
+ */
86
+ views?: readonly CalendarPickerView[];
87
+ }
88
+ export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
89
+ interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
90
+ classes?: Partial<CalendarPickerClasses>;
91
+ }
92
+ export declare function getCalendarPickerUtilityClass(slot: string): string;
93
+ export declare const calendarPickerClasses: CalendarPickerClasses;
94
+ export declare const defaultReduceAnimations: boolean;
95
+ declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
96
+ /**
97
+ *
98
+ * Demos:
99
+ *
100
+ * - [Date Picker](https://mui.com/components/date-picker/)
101
+ *
102
+ * API:
103
+ *
104
+ * - [CalendarPicker API](https://mui.com/api/calendar-picker/)
105
+ */
106
+ export default _default;
@@ -1,47 +1,47 @@
1
- import * as React from 'react';
2
- import { PickersDayProps } from '../PickersDay/PickersDay';
3
- import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
- import { SlideDirection, SlideTransitionProps } from './PickersSlideTransition';
5
- export interface ExportedCalendarProps<TDate> extends Pick<PickersDayProps<TDate>, 'disableHighlightToday' | 'showDaysOutsideCurrentMonth' | 'allowSameDateSelection'> {
6
- autoFocus?: boolean;
7
- /**
8
- * If `true` renders `LoadingComponent` in calendar instead of calendar view.
9
- * Can be used to preload information and show it in calendar.
10
- * @default false
11
- */
12
- loading?: boolean;
13
- /**
14
- * Calendar onChange.
15
- */
16
- onChange: PickerOnChangeFn<TDate>;
17
- /**
18
- * Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
19
- */
20
- renderDay?: (day: TDate, selectedDates: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element;
21
- /**
22
- * Component displaying when passed `loading` true.
23
- * @default () => "..."
24
- */
25
- renderLoading?: () => React.ReactNode;
26
- }
27
- export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate> {
28
- autoFocus?: boolean;
29
- className?: string;
30
- currentMonth: TDate;
31
- date: TDate | [TDate | null, TDate | null] | null;
32
- disabled?: boolean;
33
- focusedDay: TDate | null;
34
- isDateDisabled: (day: TDate) => boolean;
35
- isMonthSwitchingAnimating: boolean;
36
- onFocusedDayChange: (newFocusedDay: TDate) => void;
37
- onMonthSwitchingAnimationEnd: () => void;
38
- readOnly?: boolean;
39
- reduceAnimations: boolean;
40
- slideDirection: SlideDirection;
41
- TransitionProps?: Partial<SlideTransitionProps>;
42
- }
43
- /**
44
- * @ignore - do not document.
45
- */
46
- declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
47
- export default PickersCalendar;
1
+ import * as React from 'react';
2
+ import { PickersDayProps } from '../PickersDay/PickersDay';
3
+ import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
+ import { SlideDirection, SlideTransitionProps } from './PickersSlideTransition';
5
+ export interface ExportedCalendarProps<TDate> extends Pick<PickersDayProps<TDate>, 'disableHighlightToday' | 'showDaysOutsideCurrentMonth' | 'allowSameDateSelection'> {
6
+ autoFocus?: boolean;
7
+ /**
8
+ * If `true` renders `LoadingComponent` in calendar instead of calendar view.
9
+ * Can be used to preload information and show it in calendar.
10
+ * @default false
11
+ */
12
+ loading?: boolean;
13
+ /**
14
+ * Calendar onChange.
15
+ */
16
+ onChange: PickerOnChangeFn<TDate>;
17
+ /**
18
+ * Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
19
+ */
20
+ renderDay?: (day: TDate, selectedDates: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element;
21
+ /**
22
+ * Component displaying when passed `loading` true.
23
+ * @default () => "..."
24
+ */
25
+ renderLoading?: () => React.ReactNode;
26
+ }
27
+ export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate> {
28
+ autoFocus?: boolean;
29
+ className?: string;
30
+ currentMonth: TDate;
31
+ date: TDate | [TDate | null, TDate | null] | null;
32
+ disabled?: boolean;
33
+ focusedDay: TDate | null;
34
+ isDateDisabled: (day: TDate) => boolean;
35
+ isMonthSwitchingAnimating: boolean;
36
+ onFocusedDayChange: (newFocusedDay: TDate) => void;
37
+ onMonthSwitchingAnimationEnd: () => void;
38
+ readOnly?: boolean;
39
+ reduceAnimations: boolean;
40
+ slideDirection: SlideDirection;
41
+ TransitionProps?: Partial<SlideTransitionProps>;
42
+ }
43
+ /**
44
+ * @ignore - do not document.
45
+ */
46
+ declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
47
+ export default PickersCalendar;