@mui/lab 5.0.0-alpha.49 → 5.0.0-alpha.53

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 (336) 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 +251 -0
  6. package/CalendarPicker/CalendarPicker.d.ts +96 -96
  7. package/CalendarPicker/PickersCalendar.d.ts +45 -45
  8. package/CalendarPicker/PickersCalendarHeader.d.ts +42 -42
  9. package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
  10. package/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
  11. package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
  12. package/CalendarPicker/index.d.ts +5 -5
  13. package/CalendarPicker/shared.d.ts +1 -1
  14. package/CalendarPicker/useCalendarState.d.ts +32 -32
  15. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -40
  16. package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
  17. package/CalendarPickerSkeleton/index.d.ts +3 -3
  18. package/ClockPicker/Clock.d.ts +28 -28
  19. package/ClockPicker/ClockNumber.d.ts +19 -19
  20. package/ClockPicker/ClockNumbers.d.ts +24 -24
  21. package/ClockPicker/ClockPicker.d.ts +121 -121
  22. package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
  23. package/ClockPicker/ClockPointer.d.ts +23 -23
  24. package/ClockPicker/index.d.ts +5 -5
  25. package/ClockPicker/shared.d.ts +5 -5
  26. package/DatePicker/DatePicker.d.ts +27 -27
  27. package/DatePicker/DatePicker.js +5 -0
  28. package/DatePicker/DatePickerToolbar.d.ts +23 -23
  29. package/DatePicker/index.d.ts +2 -2
  30. package/DatePicker/shared.d.ts +45 -41
  31. package/DateRangePicker/DateRangePicker.d.ts +65 -65
  32. package/DateRangePicker/DateRangePicker.js +5 -0
  33. package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
  34. package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
  35. package/DateRangePicker/DateRangePickerView.d.ts +44 -44
  36. package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
  37. package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
  38. package/DateRangePicker/RangeTypes.d.ts +8 -8
  39. package/DateRangePicker/date-range-manager.d.ts +14 -14
  40. package/DateRangePicker/index.d.ts +3 -3
  41. package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
  42. package/DateRangePickerDay/DateRangePickerDay.js +1 -1
  43. package/DateRangePickerDay/index.d.ts +2 -2
  44. package/DateTimePicker/DateTimePicker.d.ts +27 -27
  45. package/DateTimePicker/DateTimePicker.js +5 -0
  46. package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
  47. package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
  48. package/DateTimePicker/index.d.ts +2 -2
  49. package/DateTimePicker/shared.d.ts +67 -63
  50. package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
  51. package/DesktopDatePicker/DesktopDatePicker.js +8 -1
  52. package/DesktopDatePicker/index.d.ts +2 -2
  53. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
  54. package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
  55. package/DesktopDateRangePicker/index.d.ts +2 -2
  56. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
  57. package/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
  58. package/DesktopDateTimePicker/index.d.ts +2 -2
  59. package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
  60. package/DesktopTimePicker/DesktopTimePicker.js +10 -0
  61. package/DesktopTimePicker/index.d.ts +2 -2
  62. package/LICENSE +21 -21
  63. package/LoadingButton/LoadingButton.js +37 -7
  64. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  65. package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
  66. package/LocalizationProvider/index.d.ts +2 -2
  67. package/Masonry/Masonry.d.ts +13 -1
  68. package/Masonry/Masonry.js +246 -59
  69. package/Masonry/masonryClasses.d.ts +8 -8
  70. package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
  71. package/MobileDatePicker/index.d.ts +2 -2
  72. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
  73. package/MobileDateRangePicker/index.d.ts +2 -2
  74. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
  75. package/MobileDateTimePicker/index.d.ts +2 -2
  76. package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
  77. package/MobileTimePicker/MobileTimePicker.js +5 -0
  78. package/MobileTimePicker/index.d.ts +2 -2
  79. package/MonthPicker/MonthPicker.d.ts +49 -49
  80. package/MonthPicker/MonthPicker.js +1 -1
  81. package/MonthPicker/PickersMonth.d.ts +15 -15
  82. package/MonthPicker/index.d.ts +3 -3
  83. package/PickersDay/PickersDay.d.ts +93 -93
  84. package/PickersDay/PickersDay.js +1 -1
  85. package/PickersDay/index.d.ts +4 -4
  86. package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
  87. package/StaticDatePicker/index.d.ts +2 -2
  88. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
  89. package/StaticDateRangePicker/index.d.ts +2 -2
  90. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
  91. package/StaticDateTimePicker/index.d.ts +2 -2
  92. package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
  93. package/StaticTimePicker/StaticTimePicker.js +5 -0
  94. package/StaticTimePicker/index.d.ts +2 -2
  95. package/TabPanel/TabPanel.js +1 -1
  96. package/TabPanel/tabPanelClasses.d.ts +8 -8
  97. package/TimePicker/TimePicker.d.ts +27 -27
  98. package/TimePicker/TimePicker.js +10 -0
  99. package/TimePicker/TimePickerToolbar.d.ts +23 -23
  100. package/TimePicker/index.d.ts +2 -2
  101. package/TimePicker/shared.d.ts +36 -32
  102. package/Timeline/Timeline.d.ts +59 -59
  103. package/Timeline/Timeline.js +1 -1
  104. package/Timeline/TimelineContext.d.ts +6 -6
  105. package/Timeline/index.d.ts +5 -5
  106. package/Timeline/timelineClasses.d.ts +3 -3
  107. package/TimelineConnector/TimelineConnector.js +1 -1
  108. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  109. package/TimelineContent/TimelineContent.js +1 -1
  110. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  111. package/TimelineDot/TimelineDot.js +1 -1
  112. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  113. package/TimelineItem/TimelineItem.js +1 -1
  114. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  115. package/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
  116. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  117. package/TimelineSeparator/TimelineSeparator.js +1 -1
  118. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  119. package/TreeItem/TreeItem.js +1 -1
  120. package/TreeItem/treeItemClasses.d.ts +24 -24
  121. package/TreeView/TreeView.js +1 -1
  122. package/TreeView/treeViewClasses.d.ts +8 -8
  123. package/YearPicker/PickersYear.d.ts +28 -28
  124. package/YearPicker/YearPicker.d.ts +42 -42
  125. package/YearPicker/index.d.ts +5 -5
  126. package/YearPicker/yearPickerClasses.d.ts +3 -3
  127. package/index.js +1 -1
  128. package/internal/pickers/KeyboardDateInput.d.ts +4 -4
  129. package/internal/pickers/Picker/Picker.d.ts +33 -33
  130. package/internal/pickers/Picker/Picker.js +12 -6
  131. package/internal/pickers/Picker/PickerView.d.ts +3 -7
  132. package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
  133. package/internal/pickers/PickersArrowSwitcher.js +1 -3
  134. package/internal/pickers/PickersModalDialog.d.ts +47 -47
  135. package/internal/pickers/PickersPopper.d.ts +33 -25
  136. package/internal/pickers/PickersPopper.js +31 -7
  137. package/internal/pickers/PickersToolbar.d.ts +14 -14
  138. package/internal/pickers/PickersToolbarButton.d.ts +13 -13
  139. package/internal/pickers/PickersToolbarText.d.ts +8 -8
  140. package/internal/pickers/PureDateInput.d.ts +80 -80
  141. package/internal/pickers/constants/dimensions.d.ts +4 -4
  142. package/internal/pickers/constants/prop-types.d.ts +1 -1
  143. package/internal/pickers/date-time-utils.d.ts +8 -8
  144. package/internal/pickers/date-utils.d.ts +52 -52
  145. package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
  146. package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
  147. package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
  148. package/internal/pickers/hooks/useOpenState.d.ts +10 -10
  149. package/internal/pickers/hooks/usePickerState.d.ts +38 -38
  150. package/internal/pickers/hooks/useUtils.d.ts +7 -7
  151. package/internal/pickers/hooks/useValidation.d.ts +23 -23
  152. package/internal/pickers/hooks/useViews.d.ts +19 -19
  153. package/internal/pickers/test-utils.js +18 -26
  154. package/internal/pickers/text-field-helper.d.ts +11 -11
  155. package/internal/pickers/time-utils.d.ts +33 -33
  156. package/internal/pickers/typings/BasePicker.d.ts +95 -95
  157. package/internal/pickers/typings/Views.d.ts +1 -1
  158. package/internal/pickers/typings/helpers.d.ts +9 -9
  159. package/internal/pickers/utils.d.ts +7 -7
  160. package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
  161. package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
  162. package/internal/pickers/wrappers/DesktopWrapper.js +2 -0
  163. package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
  164. package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
  165. package/internal/pickers/wrappers/StaticWrapper.d.ts +10 -10
  166. package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
  167. package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
  168. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  169. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  170. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  171. package/internal/svg-icons/Calendar.d.ts +7 -7
  172. package/internal/svg-icons/Clock.d.ts +7 -7
  173. package/internal/svg-icons/DateRange.d.ts +7 -7
  174. package/internal/svg-icons/Pen.d.ts +7 -7
  175. package/internal/svg-icons/Time.d.ts +7 -7
  176. package/legacy/CalendarPicker/PickersFadeTransitionGroup.js +3 -5
  177. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
  178. package/legacy/DatePicker/DatePicker.js +5 -0
  179. package/legacy/DateRangePicker/DateRangePicker.js +5 -0
  180. package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -1
  181. package/legacy/DateTimePicker/DateTimePicker.js +5 -0
  182. package/legacy/DesktopDatePicker/DesktopDatePicker.js +8 -1
  183. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
  184. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
  185. package/legacy/DesktopTimePicker/DesktopTimePicker.js +10 -0
  186. package/legacy/LoadingButton/LoadingButton.js +36 -10
  187. package/legacy/Masonry/Masonry.js +255 -59
  188. package/legacy/MobileTimePicker/MobileTimePicker.js +5 -0
  189. package/legacy/MonthPicker/MonthPicker.js +1 -1
  190. package/legacy/PickersDay/PickersDay.js +1 -1
  191. package/legacy/StaticTimePicker/StaticTimePicker.js +5 -0
  192. package/legacy/TabPanel/TabPanel.js +1 -1
  193. package/legacy/TimePicker/TimePicker.js +10 -0
  194. package/legacy/Timeline/Timeline.js +1 -1
  195. package/legacy/TimelineConnector/TimelineConnector.js +1 -1
  196. package/legacy/TimelineContent/TimelineContent.js +1 -1
  197. package/legacy/TimelineDot/TimelineDot.js +1 -1
  198. package/legacy/TimelineItem/TimelineItem.js +1 -1
  199. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
  200. package/legacy/TimelineSeparator/TimelineSeparator.js +1 -1
  201. package/legacy/TreeItem/TreeItem.js +1 -1
  202. package/legacy/TreeView/TreeView.js +1 -1
  203. package/legacy/index.js +1 -1
  204. package/legacy/internal/pickers/Picker/Picker.js +12 -8
  205. package/legacy/internal/pickers/PickersArrowSwitcher.js +1 -3
  206. package/legacy/internal/pickers/PickersPopper.js +29 -7
  207. package/legacy/internal/pickers/test-utils.js +22 -33
  208. package/legacy/internal/pickers/wrappers/DesktopWrapper.js +2 -0
  209. package/modern/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
  210. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -1
  211. package/modern/DatePicker/DatePicker.js +5 -0
  212. package/modern/DateRangePicker/DateRangePicker.js +5 -0
  213. package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -1
  214. package/modern/DateTimePicker/DateTimePicker.js +5 -0
  215. package/modern/DesktopDatePicker/DesktopDatePicker.js +8 -1
  216. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
  217. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
  218. package/modern/DesktopTimePicker/DesktopTimePicker.js +10 -0
  219. package/modern/LoadingButton/LoadingButton.js +37 -7
  220. package/modern/Masonry/Masonry.js +246 -59
  221. package/modern/MobileTimePicker/MobileTimePicker.js +5 -0
  222. package/modern/MonthPicker/MonthPicker.js +1 -1
  223. package/modern/PickersDay/PickersDay.js +1 -1
  224. package/modern/StaticTimePicker/StaticTimePicker.js +5 -0
  225. package/modern/TabPanel/TabPanel.js +1 -1
  226. package/modern/TimePicker/TimePicker.js +10 -0
  227. package/modern/Timeline/Timeline.js +1 -1
  228. package/modern/TimelineConnector/TimelineConnector.js +1 -1
  229. package/modern/TimelineContent/TimelineContent.js +1 -1
  230. package/modern/TimelineDot/TimelineDot.js +1 -1
  231. package/modern/TimelineItem/TimelineItem.js +1 -1
  232. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
  233. package/modern/TimelineSeparator/TimelineSeparator.js +1 -1
  234. package/modern/TreeItem/TreeItem.js +1 -1
  235. package/modern/TreeView/TreeView.js +1 -1
  236. package/modern/index.js +1 -1
  237. package/modern/internal/pickers/Picker/Picker.js +12 -6
  238. package/modern/internal/pickers/PickersArrowSwitcher.js +1 -3
  239. package/modern/internal/pickers/PickersPopper.js +31 -7
  240. package/modern/internal/pickers/test-utils.js +18 -26
  241. package/modern/internal/pickers/wrappers/DesktopWrapper.js +2 -0
  242. package/node/CalendarPicker/CalendarPicker.js +1 -1
  243. package/node/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
  244. package/node/CalendarPicker/PickersSlideTransition.js +1 -1
  245. package/node/CalendarPicker/index.js +4 -4
  246. package/node/CalendarPicker/useCalendarState.js +1 -1
  247. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  248. package/node/CalendarPickerSkeleton/index.js +4 -4
  249. package/node/ClockPicker/ClockPicker.js +1 -1
  250. package/node/ClockPicker/index.js +4 -4
  251. package/node/ClockPicker/shared.js +1 -1
  252. package/node/DatePicker/DatePicker.js +5 -0
  253. package/node/DatePicker/shared.js +1 -1
  254. package/node/DateRangePicker/DateRangePicker.js +5 -0
  255. package/node/DateRangePickerDay/DateRangePickerDay.js +2 -2
  256. package/node/DateTimePicker/DateTimePicker.js +5 -0
  257. package/node/DesktopDatePicker/DesktopDatePicker.js +8 -1
  258. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
  259. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
  260. package/node/DesktopTimePicker/DesktopTimePicker.js +10 -0
  261. package/node/LoadingButton/LoadingButton.js +37 -7
  262. package/node/LoadingButton/loadingButtonClasses.js +1 -1
  263. package/node/Masonry/Masonry.js +247 -63
  264. package/node/Masonry/masonryClasses.js +1 -1
  265. package/node/MobileTimePicker/MobileTimePicker.js +5 -0
  266. package/node/MonthPicker/MonthPicker.js +3 -2
  267. package/node/PickersDay/PickersDay.js +3 -2
  268. package/node/PickersDay/index.js +4 -4
  269. package/node/StaticTimePicker/StaticTimePicker.js +5 -0
  270. package/node/TabContext/TabContext.js +1 -1
  271. package/node/TabPanel/TabPanel.js +1 -1
  272. package/node/TabPanel/tabPanelClasses.js +1 -1
  273. package/node/TimePicker/TimePicker.js +10 -0
  274. package/node/TimePicker/TimePickerToolbar.js +2 -1
  275. package/node/Timeline/Timeline.js +1 -1
  276. package/node/Timeline/timelineClasses.js +1 -1
  277. package/node/TimelineConnector/TimelineConnector.js +1 -1
  278. package/node/TimelineConnector/timelineConnectorClasses.js +1 -1
  279. package/node/TimelineContent/TimelineContent.js +1 -1
  280. package/node/TimelineContent/timelineContentClasses.js +1 -1
  281. package/node/TimelineDot/TimelineDot.js +1 -1
  282. package/node/TimelineDot/timelineDotClasses.js +1 -1
  283. package/node/TimelineItem/TimelineItem.js +1 -1
  284. package/node/TimelineItem/timelineItemClasses.js +1 -1
  285. package/node/TimelineOppositeContent/TimelineOppositeContent.js +1 -1
  286. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  287. package/node/TimelineSeparator/TimelineSeparator.js +1 -1
  288. package/node/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  289. package/node/TreeItem/TreeItem.js +1 -1
  290. package/node/TreeItem/index.js +4 -4
  291. package/node/TreeItem/treeItemClasses.js +1 -1
  292. package/node/TreeView/TreeView.js +1 -1
  293. package/node/TreeView/descendants.js +1 -1
  294. package/node/TreeView/treeViewClasses.js +1 -1
  295. package/node/YearPicker/PickersYear.js +2 -1
  296. package/node/YearPicker/yearPickerClasses.js +1 -1
  297. package/node/index.js +7 -7
  298. package/node/internal/pickers/Picker/Picker.js +12 -6
  299. package/node/internal/pickers/PickersArrowSwitcher.js +1 -3
  300. package/node/internal/pickers/PickersPopper.js +31 -7
  301. package/node/internal/pickers/constants/dimensions.js +1 -1
  302. package/node/internal/pickers/date-utils.js +2 -1
  303. package/node/internal/pickers/hooks/date-helpers-hooks.js +1 -1
  304. package/node/internal/pickers/hooks/useIsLandscape.js +1 -1
  305. package/node/internal/pickers/hooks/useMaskedInput.js +1 -1
  306. package/node/internal/pickers/hooks/useOpenState.js +1 -1
  307. package/node/internal/pickers/hooks/useUtils.js +1 -1
  308. package/node/internal/pickers/hooks/useValidation.js +3 -3
  309. package/node/internal/pickers/test-utils.js +20 -39
  310. package/node/internal/pickers/text-field-helper.js +3 -2
  311. package/node/internal/pickers/time-utils.js +2 -1
  312. package/node/internal/pickers/utils.js +1 -1
  313. package/node/internal/pickers/wrappers/DesktopWrapper.js +2 -0
  314. package/node/internal/pickers/wrappers/WrapperVariantContext.js +1 -1
  315. package/node/useAutocomplete/index.js +4 -4
  316. package/package.json +9 -9
  317. package/Masonry/MasonryContext.js +0 -12
  318. package/MasonryItem/MasonryItem.d.ts +0 -49
  319. package/MasonryItem/MasonryItem.js +0 -196
  320. package/MasonryItem/index.d.ts +0 -5
  321. package/MasonryItem/index.js +0 -3
  322. package/MasonryItem/masonryItemClasses.d.ts +0 -8
  323. package/MasonryItem/masonryItemClasses.js +0 -6
  324. package/MasonryItem/package.json +0 -6
  325. package/legacy/Masonry/MasonryContext.js +0 -12
  326. package/legacy/MasonryItem/MasonryItem.js +0 -201
  327. package/legacy/MasonryItem/index.js +0 -3
  328. package/legacy/MasonryItem/masonryItemClasses.js +0 -6
  329. package/modern/Masonry/MasonryContext.js +0 -12
  330. package/modern/MasonryItem/MasonryItem.js +0 -196
  331. package/modern/MasonryItem/index.js +0 -3
  332. package/modern/MasonryItem/masonryItemClasses.js +0 -6
  333. package/node/Masonry/MasonryContext.js +0 -24
  334. package/node/MasonryItem/MasonryItem.js +0 -220
  335. package/node/MasonryItem/index.js +0 -42
  336. package/node/MasonryItem/masonryItemClasses.js +0 -17
@@ -1,64 +1,64 @@
1
- import * as React from 'react';
2
- import { MobileWrapperProps } from '../internal/pickers/wrappers/MobileWrapper';
3
- import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
4
- import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
5
- import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
6
- import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
7
- interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
8
- /**
9
- * The components used for each slot.
10
- * Either a string to use a HTML element or a component.
11
- * @default {}
12
- */
13
- components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
14
- /**
15
- * Text for end input label and toolbar placeholder.
16
- * @default 'End'
17
- */
18
- endText?: React.ReactNode;
19
- /**
20
- * Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
21
- * @default '__/__/____'
22
- */
23
- mask?: ExportedDateRangePickerInputProps['mask'];
24
- /**
25
- * Min selectable date. @DateIOType
26
- * @default defaultMinDate
27
- */
28
- minDate?: TDate;
29
- /**
30
- * Max selectable date. @DateIOType
31
- * @default defaultMaxDate
32
- */
33
- maxDate?: TDate;
34
- /**
35
- * Callback fired when the value (the selected date range) changes @DateIOType.
36
- */
37
- onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
38
- /**
39
- * Text for start input label and toolbar placeholder.
40
- * @default 'Start'
41
- */
42
- startText?: React.ReactNode;
43
- /**
44
- * The value of the date range picker.
45
- */
46
- value: RangeInput<TDate>;
47
- }
48
- export interface MobileDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate>, MobileWrapperProps {
49
- }
50
- declare type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
51
- propTypes: unknown;
52
- };
53
- /**
54
- *
55
- * Demos:
56
- *
57
- * - [Date Range Picker](https://mui.com/components/date-range-picker/)
58
- *
59
- * API:
60
- *
61
- * - [MobileDateRangePicker API](https://mui.com/api/mobile-date-range-picker/)
62
- */
63
- declare const MobileDateRangePicker: MobileDateRangePickerComponent;
64
- export default MobileDateRangePicker;
1
+ import * as React from 'react';
2
+ import { MobileWrapperProps } from '../internal/pickers/wrappers/MobileWrapper';
3
+ import { RangeInput, DateRange } from '../DateRangePicker/RangeTypes';
4
+ import { DateRangeValidationError, ValidationProps } from '../internal/pickers/hooks/useValidation';
5
+ import { ExportedDateRangePickerViewProps } from '../DateRangePicker/DateRangePickerView';
6
+ import { ExportedDateRangePickerInputProps } from '../DateRangePicker/DateRangePickerInput';
7
+ interface BaseDateRangePickerProps<TDate> extends ExportedDateRangePickerViewProps<TDate>, ValidationProps<DateRangeValidationError, RangeInput<TDate>>, ExportedDateRangePickerInputProps {
8
+ /**
9
+ * The components used for each slot.
10
+ * Either a string to use a HTML element or a component.
11
+ * @default {}
12
+ */
13
+ components?: ExportedDateRangePickerViewProps<TDate>['components'] & ExportedDateRangePickerInputProps['components'];
14
+ /**
15
+ * Text for end input label and toolbar placeholder.
16
+ * @default 'End'
17
+ */
18
+ endText?: React.ReactNode;
19
+ /**
20
+ * Custom mask. Can be used to override generate from format. (e.g. `__/__/____ __:__` or `__/__/____ __:__ _M`).
21
+ * @default '__/__/____'
22
+ */
23
+ mask?: ExportedDateRangePickerInputProps['mask'];
24
+ /**
25
+ * Min selectable date. @DateIOType
26
+ * @default defaultMinDate
27
+ */
28
+ minDate?: TDate;
29
+ /**
30
+ * Max selectable date. @DateIOType
31
+ * @default defaultMaxDate
32
+ */
33
+ maxDate?: TDate;
34
+ /**
35
+ * Callback fired when the value (the selected date range) changes @DateIOType.
36
+ */
37
+ onChange: (date: DateRange<TDate>, keyboardInputValue?: string) => void;
38
+ /**
39
+ * Text for start input label and toolbar placeholder.
40
+ * @default 'Start'
41
+ */
42
+ startText?: React.ReactNode;
43
+ /**
44
+ * The value of the date range picker.
45
+ */
46
+ value: RangeInput<TDate>;
47
+ }
48
+ export interface MobileDateRangePickerProps<TDate = unknown> extends BaseDateRangePickerProps<TDate>, MobileWrapperProps {
49
+ }
50
+ declare type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
51
+ propTypes: unknown;
52
+ };
53
+ /**
54
+ *
55
+ * Demos:
56
+ *
57
+ * - [Date Range Picker](https://mui.com/components/date-range-picker/)
58
+ *
59
+ * API:
60
+ *
61
+ * - [MobileDateRangePicker API](https://mui.com/api/mobile-date-range-picker/)
62
+ */
63
+ declare const MobileDateRangePicker: MobileDateRangePickerComponent;
64
+ export default MobileDateRangePicker;
@@ -1,2 +1,2 @@
1
- export * from './MobileDateRangePicker';
2
- export { default } from './MobileDateRangePicker';
1
+ export * from './MobileDateRangePicker';
2
+ export { default } from './MobileDateRangePicker';
@@ -1,20 +1,20 @@
1
- import * as React from 'react';
2
- import { BaseDateTimePickerProps } from '../DateTimePicker/shared';
3
- import { MobileWrapperProps } from '../internal/pickers/wrappers/MobileWrapper';
4
- export interface MobileDateTimePickerProps<TDate = unknown> extends BaseDateTimePickerProps<TDate>, MobileWrapperProps {
5
- }
6
- declare type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
7
- propTypes?: any;
8
- };
9
- /**
10
- *
11
- * Demos:
12
- *
13
- * - [Date Time Picker](https://mui.com/components/date-time-picker/)
14
- *
15
- * API:
16
- *
17
- * - [MobileDateTimePicker API](https://mui.com/api/mobile-date-time-picker/)
18
- */
19
- declare const MobileDateTimePicker: MobileDateTimePickerComponent;
20
- export default MobileDateTimePicker;
1
+ import * as React from 'react';
2
+ import { BaseDateTimePickerProps } from '../DateTimePicker/shared';
3
+ import { MobileWrapperProps } from '../internal/pickers/wrappers/MobileWrapper';
4
+ export interface MobileDateTimePickerProps<TDate = unknown> extends BaseDateTimePickerProps<TDate>, MobileWrapperProps {
5
+ }
6
+ declare type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
7
+ propTypes?: any;
8
+ };
9
+ /**
10
+ *
11
+ * Demos:
12
+ *
13
+ * - [Date Time Picker](https://mui.com/components/date-time-picker/)
14
+ *
15
+ * API:
16
+ *
17
+ * - [MobileDateTimePicker API](https://mui.com/api/mobile-date-time-picker/)
18
+ */
19
+ declare const MobileDateTimePicker: MobileDateTimePickerComponent;
20
+ export default MobileDateTimePicker;
@@ -1,2 +1,2 @@
1
- export * from './MobileDateTimePicker';
2
- export { default } from './MobileDateTimePicker';
1
+ export * from './MobileDateTimePicker';
2
+ export { default } from './MobileDateTimePicker';
@@ -1,20 +1,20 @@
1
- import * as React from 'react';
2
- import { BaseTimePickerProps } from '../TimePicker/shared';
3
- import { MobileWrapperProps } from '../internal/pickers/wrappers/MobileWrapper';
4
- export interface MobileTimePickerProps<TDate = unknown> extends BaseTimePickerProps<TDate>, MobileWrapperProps {
5
- }
6
- declare type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
7
- propTypes?: any;
8
- };
9
- /**
10
- *
11
- * Demos:
12
- *
13
- * - [Time Picker](https://mui.com/components/time-picker/)
14
- *
15
- * API:
16
- *
17
- * - [MobileTimePicker API](https://mui.com/api/mobile-time-picker/)
18
- */
19
- declare const MobileTimePicker: MobileTimePickerComponent;
20
- export default MobileTimePicker;
1
+ import * as React from 'react';
2
+ import { BaseTimePickerProps } from '../TimePicker/shared';
3
+ import { MobileWrapperProps } from '../internal/pickers/wrappers/MobileWrapper';
4
+ export interface MobileTimePickerProps<TDate = unknown> extends BaseTimePickerProps<TDate>, MobileWrapperProps {
5
+ }
6
+ declare type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
7
+ propTypes?: any;
8
+ };
9
+ /**
10
+ *
11
+ * Demos:
12
+ *
13
+ * - [Time Picker](https://mui.com/components/time-picker/)
14
+ *
15
+ * API:
16
+ *
17
+ * - [MobileTimePicker API](https://mui.com/api/mobile-time-picker/)
18
+ */
19
+ declare const MobileTimePicker: MobileTimePickerComponent;
20
+ export default MobileTimePicker;
@@ -273,6 +273,11 @@ process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes
273
273
  */
274
274
  onOpen: PropTypes.func,
275
275
 
276
+ /**
277
+ * Callback fired on view change.
278
+ */
279
+ onViewChange: PropTypes.func,
280
+
276
281
  /**
277
282
  * Control the popup or dialog open state.
278
283
  */
@@ -1,2 +1,2 @@
1
- export * from './MobileTimePicker';
2
- export { default } from './MobileTimePicker';
1
+ export * from './MobileTimePicker';
2
+ export { default } from './MobileTimePicker';
@@ -1,49 +1,49 @@
1
- import * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { Theme } from '@mui/material/styles';
4
- import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
5
- export interface MonthPickerProps<TDate> {
6
- /**
7
- * className applied to the root element.
8
- */
9
- className?: string;
10
- /**
11
- * Override or extend the styles applied to the component.
12
- */
13
- classes?: {
14
- /** Styles applied to the root element. */
15
- root?: string;
16
- };
17
- /** Date value for the MonthPicker */
18
- date: TDate | null;
19
- /** If `true` past days are disabled. */
20
- disablePast?: boolean | null;
21
- /** If `true` future days are disabled. */
22
- disableFuture?: boolean | null;
23
- /** Minimal selectable date. */
24
- minDate: TDate;
25
- /** Maximal selectable date. */
26
- maxDate: TDate;
27
- /** Callback fired on date change. */
28
- onChange: PickerOnChangeFn<TDate>;
29
- onMonthChange?: (date: TDate) => void | Promise<void>;
30
- /**
31
- * The system prop that allows defining system overrides as well as additional CSS styles.
32
- */
33
- sx?: SxProps<Theme>;
34
- }
35
- export declare function getMonthPickerUtilityClass(slot: string): string;
36
- export declare type MonthPickerClassKey = keyof NonNullable<MonthPickerProps<unknown>['classes']>;
37
- export declare const monthPickerClasses: Record<"root", string>;
38
- declare const _default: <TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
39
- /**
40
- *
41
- * Demos:
42
- *
43
- * - [Date Picker](https://mui.com/components/date-picker/)
44
- *
45
- * API:
46
- *
47
- * - [MonthPicker API](https://mui.com/api/month-picker/)
48
- */
49
- export default _default;
1
+ import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { Theme } from '@mui/material/styles';
4
+ import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
5
+ export interface MonthPickerProps<TDate> {
6
+ /**
7
+ * className applied to the root element.
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Override or extend the styles applied to the component.
12
+ */
13
+ classes?: {
14
+ /** Styles applied to the root element. */
15
+ root?: string;
16
+ };
17
+ /** Date value for the MonthPicker */
18
+ date: TDate | null;
19
+ /** If `true` past days are disabled. */
20
+ disablePast?: boolean | null;
21
+ /** If `true` future days are disabled. */
22
+ disableFuture?: boolean | null;
23
+ /** Minimal selectable date. */
24
+ minDate: TDate;
25
+ /** Maximal selectable date. */
26
+ maxDate: TDate;
27
+ /** Callback fired on date change. */
28
+ onChange: PickerOnChangeFn<TDate>;
29
+ onMonthChange?: (date: TDate) => void | Promise<void>;
30
+ /**
31
+ * The system prop that allows defining system overrides as well as additional CSS styles.
32
+ */
33
+ sx?: SxProps<Theme>;
34
+ }
35
+ export declare function getMonthPickerUtilityClass(slot: string): string;
36
+ export declare type MonthPickerClassKey = keyof NonNullable<MonthPickerProps<unknown>['classes']>;
37
+ export declare const monthPickerClasses: Record<"root", string>;
38
+ declare const _default: <TDate>(props: MonthPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
39
+ /**
40
+ *
41
+ * Demos:
42
+ *
43
+ * - [Date Picker](https://mui.com/components/date-picker/)
44
+ *
45
+ * API:
46
+ *
47
+ * - [MonthPicker API](https://mui.com/api/month-picker/)
48
+ */
49
+ export default _default;
@@ -149,7 +149,7 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
149
149
  /**
150
150
  * The system prop that allows defining system overrides as well as additional CSS styles.
151
151
  */
152
- sx: PropTypes.object
152
+ sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
153
153
  } : void 0;
154
154
  /**
155
155
  *
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
2
- declare const classes: Record<"root" | "selected", string>;
3
- export interface MonthProps {
4
- children: React.ReactNode;
5
- disabled?: boolean;
6
- onSelect: (value: any) => void;
7
- selected?: boolean;
8
- value: any;
9
- }
10
- export declare type PickersMonthClassKey = keyof typeof classes;
11
- /**
12
- * @ignore - do not document.
13
- */
14
- declare const PickersMonth: React.FC<MonthProps>;
15
- export default PickersMonth;
1
+ import * as React from 'react';
2
+ declare const classes: Record<"root" | "selected", string>;
3
+ export interface MonthProps {
4
+ children: React.ReactNode;
5
+ disabled?: boolean;
6
+ onSelect: (value: any) => void;
7
+ selected?: boolean;
8
+ value: any;
9
+ }
10
+ export declare type PickersMonthClassKey = keyof typeof classes;
11
+ /**
12
+ * @ignore - do not document.
13
+ */
14
+ declare const PickersMonth: React.FC<MonthProps>;
15
+ export default PickersMonth;
@@ -1,3 +1,3 @@
1
- export { default, getMonthPickerUtilityClass, monthPickerClasses } from './MonthPicker';
2
- export declare type MonthPickerClassKey = import('./MonthPicker').MonthPickerClassKey;
3
- export declare type MonthPickerProps<TDate> = import('./MonthPicker').MonthPickerProps<TDate>;
1
+ export { default, getMonthPickerUtilityClass, monthPickerClasses } from './MonthPicker';
2
+ export declare type MonthPickerClassKey = import('./MonthPicker').MonthPickerClassKey;
3
+ export declare type MonthPickerProps<TDate> = import('./MonthPicker').MonthPickerProps<TDate>;
@@ -1,93 +1,93 @@
1
- import * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { ButtonBaseProps } from '@mui/material/ButtonBase';
4
- import { Theme } from '@mui/material/styles';
5
- import { ExtendMui } from '../internal/pickers/typings/helpers';
6
- import { PickerSelectionState } from '../internal/pickers/hooks/usePickerState';
7
- export interface PickersDayProps<TDate> extends ExtendMui<ButtonBaseProps> {
8
- /**
9
- * If `true`, `onChange` is fired on click even if the same date is selected.
10
- * @default false
11
- */
12
- allowSameDateSelection?: boolean;
13
- /**
14
- * Override or extend the styles applied to the component.
15
- */
16
- classes?: {
17
- /** Styles applied to the root element. */
18
- root?: string;
19
- /** Styles applied to the root element if `disableMargin=false`. */
20
- dayWithMargin?: string;
21
- /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=true`. */
22
- dayOutsideMonth?: string;
23
- /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=false`. */
24
- hiddenDaySpacingFiller?: string;
25
- /** Styles applied to the root element if `disableHighlightToday=false` and `today=true`. */
26
- today?: string;
27
- /** State class applied to the root element if `selected=true`. */
28
- selected?: string;
29
- /** State class applied to the root element if `disabled=true`. */
30
- disabled?: string;
31
- };
32
- /**
33
- * The date to show.
34
- */
35
- day: TDate;
36
- /**
37
- * If `true`, renders as disabled.
38
- * @default false
39
- */
40
- disabled?: boolean;
41
- /**
42
- * If `true`, todays date is rendering without highlighting with circle.
43
- * @default false
44
- */
45
- disableHighlightToday?: boolean;
46
- /**
47
- * If `true`, days are rendering without margin. Useful for displaying linked range of days.
48
- * @default false
49
- */
50
- disableMargin?: boolean;
51
- isAnimating?: boolean;
52
- onDayFocus?: (day: TDate) => void;
53
- onDaySelect: (day: TDate, isFinish: PickerSelectionState) => void;
54
- /**
55
- * If `true`, day is outside of month and will be hidden.
56
- */
57
- outsideCurrentMonth: boolean;
58
- /**
59
- * If `true`, renders as selected.
60
- * @default false
61
- */
62
- selected?: boolean;
63
- /**
64
- * If `true`, days that have `outsideCurrentMonth={true}` are displayed.
65
- * @default false
66
- */
67
- showDaysOutsideCurrentMonth?: boolean;
68
- /**
69
- * If `true`, renders as today date.
70
- * @default false
71
- */
72
- today?: boolean;
73
- /**
74
- * The system prop that allows defining system overrides as well as additional CSS styles.
75
- */
76
- sx?: SxProps<Theme>;
77
- }
78
- export declare type PickersDayClassKey = keyof NonNullable<PickersDayProps<unknown>['classes']>;
79
- export declare function getPickersDayUtilityClass(slot: string): string;
80
- export declare const pickersDayClasses: Record<"root" | "selected" | "disabled" | "dayWithMargin" | "dayOutsideMonth" | "hiddenDaySpacingFiller" | "today", string>;
81
- export declare const areDayPropsEqual: (prevProps: PickersDayProps<any>, nextProps: PickersDayProps<any>) => boolean;
82
- declare const _default: <TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
83
- /**
84
- *
85
- * Demos:
86
- *
87
- * - [Date Picker](https://mui.com/components/date-picker/)
88
- *
89
- * API:
90
- *
91
- * - [PickersDay API](https://mui.com/api/pickers-day/)
92
- */
93
- export default _default;
1
+ import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
3
+ import { ButtonBaseProps } from '@mui/material/ButtonBase';
4
+ import { Theme } from '@mui/material/styles';
5
+ import { ExtendMui } from '../internal/pickers/typings/helpers';
6
+ import { PickerSelectionState } from '../internal/pickers/hooks/usePickerState';
7
+ export interface PickersDayProps<TDate> extends ExtendMui<ButtonBaseProps> {
8
+ /**
9
+ * If `true`, `onChange` is fired on click even if the same date is selected.
10
+ * @default false
11
+ */
12
+ allowSameDateSelection?: boolean;
13
+ /**
14
+ * Override or extend the styles applied to the component.
15
+ */
16
+ classes?: {
17
+ /** Styles applied to the root element. */
18
+ root?: string;
19
+ /** Styles applied to the root element if `disableMargin=false`. */
20
+ dayWithMargin?: string;
21
+ /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=true`. */
22
+ dayOutsideMonth?: string;
23
+ /** Styles applied to the root element if `outsideCurrentMonth=true` and `showDaysOutsideCurrentMonth=false`. */
24
+ hiddenDaySpacingFiller?: string;
25
+ /** Styles applied to the root element if `disableHighlightToday=false` and `today=true`. */
26
+ today?: string;
27
+ /** State class applied to the root element if `selected=true`. */
28
+ selected?: string;
29
+ /** State class applied to the root element if `disabled=true`. */
30
+ disabled?: string;
31
+ };
32
+ /**
33
+ * The date to show.
34
+ */
35
+ day: TDate;
36
+ /**
37
+ * If `true`, renders as disabled.
38
+ * @default false
39
+ */
40
+ disabled?: boolean;
41
+ /**
42
+ * If `true`, todays date is rendering without highlighting with circle.
43
+ * @default false
44
+ */
45
+ disableHighlightToday?: boolean;
46
+ /**
47
+ * If `true`, days are rendering without margin. Useful for displaying linked range of days.
48
+ * @default false
49
+ */
50
+ disableMargin?: boolean;
51
+ isAnimating?: boolean;
52
+ onDayFocus?: (day: TDate) => void;
53
+ onDaySelect: (day: TDate, isFinish: PickerSelectionState) => void;
54
+ /**
55
+ * If `true`, day is outside of month and will be hidden.
56
+ */
57
+ outsideCurrentMonth: boolean;
58
+ /**
59
+ * If `true`, renders as selected.
60
+ * @default false
61
+ */
62
+ selected?: boolean;
63
+ /**
64
+ * If `true`, days that have `outsideCurrentMonth={true}` are displayed.
65
+ * @default false
66
+ */
67
+ showDaysOutsideCurrentMonth?: boolean;
68
+ /**
69
+ * If `true`, renders as today date.
70
+ * @default false
71
+ */
72
+ today?: boolean;
73
+ /**
74
+ * The system prop that allows defining system overrides as well as additional CSS styles.
75
+ */
76
+ sx?: SxProps<Theme>;
77
+ }
78
+ export declare type PickersDayClassKey = keyof NonNullable<PickersDayProps<unknown>['classes']>;
79
+ export declare function getPickersDayUtilityClass(slot: string): string;
80
+ export declare const pickersDayClasses: Record<"root" | "selected" | "disabled" | "dayWithMargin" | "dayOutsideMonth" | "hiddenDaySpacingFiller" | "today", string>;
81
+ export declare const areDayPropsEqual: (prevProps: PickersDayProps<any>, nextProps: PickersDayProps<any>) => boolean;
82
+ declare const _default: <TDate>(props: PickersDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
83
+ /**
84
+ *
85
+ * Demos:
86
+ *
87
+ * - [Date Picker](https://mui.com/components/date-picker/)
88
+ *
89
+ * API:
90
+ *
91
+ * - [PickersDay API](https://mui.com/api/pickers-day/)
92
+ */
93
+ export default _default;
@@ -374,7 +374,7 @@ process.env.NODE_ENV !== "production" ? PickersDay.propTypes
374
374
  /**
375
375
  * The system prop that allows defining system overrides as well as additional CSS styles.
376
376
  */
377
- sx: PropTypes.object,
377
+ sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
378
378
 
379
379
  /**
380
380
  * If `true`, renders as today date.
@@ -1,4 +1,4 @@
1
- export { default } from './PickersDay';
2
- export { pickersDayClasses, getPickersDayUtilityClass } from './PickersDay';
3
- export declare type PickersDayClassKey = import('./PickersDay').PickersDayClassKey;
4
- export declare type PickersDayProps<TDate> = import('./PickersDay').PickersDayProps<TDate>;
1
+ export { default } from './PickersDay';
2
+ export { pickersDayClasses, getPickersDayUtilityClass } from './PickersDay';
3
+ export declare type PickersDayClassKey = import('./PickersDay').PickersDayClassKey;
4
+ export declare type PickersDayProps<TDate> = import('./PickersDay').PickersDayProps<TDate>;
@@ -1,25 +1,25 @@
1
- import * as React from 'react';
2
- import { BaseDatePickerProps } from '../DatePicker/shared';
3
- import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
4
- export interface StaticDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate> {
5
- /**
6
- * Force static wrapper inner components to be rendered in mobile or desktop mode.
7
- * @default 'mobile'
8
- */
9
- displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
10
- }
11
- declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
12
- propTypes?: any;
13
- };
14
- /**
15
- *
16
- * Demos:
17
- *
18
- * - [Date Picker](https://mui.com/components/date-picker/)
19
- *
20
- * API:
21
- *
22
- * - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
23
- */
24
- declare const StaticDatePicker: StaticDatePickerComponent;
25
- export default StaticDatePicker;
1
+ import * as React from 'react';
2
+ import { BaseDatePickerProps } from '../DatePicker/shared';
3
+ import { StaticWrapperProps } from '../internal/pickers/wrappers/StaticWrapper';
4
+ export interface StaticDatePickerProps<TDate = unknown> extends BaseDatePickerProps<TDate> {
5
+ /**
6
+ * Force static wrapper inner components to be rendered in mobile or desktop mode.
7
+ * @default 'mobile'
8
+ */
9
+ displayStaticWrapperAs?: StaticWrapperProps['displayStaticWrapperAs'];
10
+ }
11
+ declare type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
12
+ propTypes?: any;
13
+ };
14
+ /**
15
+ *
16
+ * Demos:
17
+ *
18
+ * - [Date Picker](https://mui.com/components/date-picker/)
19
+ *
20
+ * API:
21
+ *
22
+ * - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
23
+ */
24
+ declare const StaticDatePicker: StaticDatePickerComponent;
25
+ export default StaticDatePicker;