@mui/x-date-pickers 7.0.0-alpha.1 → 7.0.0-alpha.3

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 (323) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +2 -2
  2. package/AdapterDateFns/AdapterDateFns.js +11 -17
  3. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +2 -2
  4. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +13 -19
  5. package/AdapterDayjs/AdapterDayjs.d.ts +2 -2
  6. package/AdapterDayjs/AdapterDayjs.js +13 -15
  7. package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
  8. package/AdapterLuxon/AdapterLuxon.js +31 -39
  9. package/AdapterMoment/AdapterMoment.d.ts +3 -3
  10. package/AdapterMoment/AdapterMoment.js +16 -23
  11. package/AdapterMomentHijri/AdapterMomentHijri.d.ts +1 -3
  12. package/AdapterMomentHijri/AdapterMomentHijri.js +1 -27
  13. package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +1 -4
  14. package/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -29
  15. package/CHANGELOG.md +607 -188
  16. package/DateCalendar/DateCalendar.js +4 -10
  17. package/DateCalendar/DateCalendar.types.d.ts +0 -4
  18. package/DateCalendar/DayCalendar.d.ts +3 -3
  19. package/DateCalendar/dayCalendarClasses.d.ts +1 -1
  20. package/DateCalendar/dayCalendarClasses.js +1 -1
  21. package/DateCalendar/index.d.ts +1 -1
  22. package/DateCalendar/index.js +1 -1
  23. package/DateCalendar/useCalendarState.d.ts +1 -1
  24. package/DateCalendar/useCalendarState.js +1 -9
  25. package/DateField/DateField.js +1 -1
  26. package/DatePicker/DatePicker.js +3 -7
  27. package/DateTimeField/DateTimeField.js +1 -9
  28. package/DateTimePicker/DateTimePicker.js +3 -15
  29. package/DesktopDatePicker/DesktopDatePicker.js +3 -7
  30. package/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -15
  31. package/DesktopTimePicker/DesktopTimePicker.js +1 -9
  32. package/DigitalClock/DigitalClock.js +3 -15
  33. package/MobileDatePicker/MobileDatePicker.js +3 -7
  34. package/MobileDateTimePicker/MobileDateTimePicker.js +3 -15
  35. package/MobileTimePicker/MobileTimePicker.js +1 -9
  36. package/MonthCalendar/MonthCalendar.js +1 -1
  37. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -15
  38. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +3 -2
  39. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  40. package/PickersDay/PickersDay.js +1 -1
  41. package/PickersShortcuts/PickersShortcuts.d.ts +1 -1
  42. package/PickersShortcuts/PickersShortcuts.js +1 -1
  43. package/README.md +0 -1
  44. package/StaticDatePicker/StaticDatePicker.js +3 -7
  45. package/StaticDateTimePicker/StaticDateTimePicker.js +3 -15
  46. package/StaticTimePicker/StaticTimePicker.js +1 -9
  47. package/TimeClock/Clock.js +1 -1
  48. package/TimeClock/TimeClock.js +3 -15
  49. package/TimeField/TimeField.js +1 -9
  50. package/TimePicker/TimePicker.js +1 -9
  51. package/YearCalendar/YearCalendar.js +1 -1
  52. package/dateTimeViewRenderers/dateTimeViewRenderers.d.ts +1 -1
  53. package/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  54. package/dateViewRenderers/dateViewRenderers.d.ts +1 -1
  55. package/dateViewRenderers/dateViewRenderers.js +0 -2
  56. package/index.js +1 -1
  57. package/internals/components/PickersTextField/Outline.d.ts +2 -0
  58. package/internals/components/PickersTextField/Outline.js +99 -0
  59. package/internals/components/PickersTextField/PickersInput.d.ts +4 -0
  60. package/internals/components/PickersTextField/PickersInput.js +264 -0
  61. package/internals/components/PickersTextField/PickersInput.types.d.ts +30 -0
  62. package/internals/components/PickersTextField/PickersInput.types.js +1 -0
  63. package/internals/components/PickersTextField/PickersTextField.d.ts +3 -0
  64. package/internals/components/PickersTextField/PickersTextField.js +120 -0
  65. package/internals/components/PickersTextField/PickersTextField.types.d.ts +18 -0
  66. package/internals/components/PickersTextField/PickersTextField.types.js +1 -0
  67. package/internals/components/PickersTextField/index.d.ts +1 -0
  68. package/internals/components/PickersTextField/index.js +1 -0
  69. package/internals/components/PickersTextField/pickersTextFieldClasses.d.ts +42 -0
  70. package/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
  71. package/internals/hooks/date-helpers-hooks.js +2 -2
  72. package/internals/hooks/useField/useField.utils.js +30 -17
  73. package/internals/hooks/useField/useFieldState.js +1 -1
  74. package/internals/hooks/usePicker/usePickerValue.js +2 -6
  75. package/internals/hooks/usePicker/usePickerValue.types.d.ts +3 -3
  76. package/internals/hooks/useUtils.js +1 -1
  77. package/internals/hooks/useViews.js +2 -2
  78. package/internals/models/validation.d.ts +0 -8
  79. package/internals/utils/date-utils.js +2 -2
  80. package/internals/utils/validation/extractValidationProps.d.ts +1 -1
  81. package/internals/utils/validation/extractValidationProps.js +1 -1
  82. package/internals/utils/validation/validateDate.js +1 -1
  83. package/internals/utils/validation/validateTime.js +1 -8
  84. package/legacy/AdapterDateFns/AdapterDateFns.js +12 -16
  85. package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +14 -18
  86. package/legacy/AdapterDayjs/AdapterDayjs.js +15 -14
  87. package/legacy/AdapterLuxon/AdapterLuxon.js +34 -39
  88. package/legacy/AdapterMoment/AdapterMoment.js +326 -324
  89. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +4 -28
  90. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -33
  91. package/legacy/DateCalendar/DateCalendar.js +4 -10
  92. package/legacy/DateCalendar/PickersSlideTransition.js +8 -9
  93. package/legacy/DateCalendar/dayCalendarClasses.js +1 -1
  94. package/legacy/DateCalendar/index.js +1 -1
  95. package/legacy/DateCalendar/useCalendarState.js +1 -9
  96. package/legacy/DateField/DateField.js +1 -1
  97. package/legacy/DatePicker/DatePicker.js +3 -7
  98. package/legacy/DateTimeField/DateTimeField.js +1 -9
  99. package/legacy/DateTimePicker/DateTimePicker.js +3 -15
  100. package/legacy/DesktopDatePicker/DesktopDatePicker.js +3 -7
  101. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -15
  102. package/legacy/DesktopTimePicker/DesktopTimePicker.js +1 -9
  103. package/legacy/DigitalClock/DigitalClock.js +3 -15
  104. package/legacy/MobileDatePicker/MobileDatePicker.js +3 -7
  105. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +3 -15
  106. package/legacy/MobileTimePicker/MobileTimePicker.js +1 -9
  107. package/legacy/MonthCalendar/MonthCalendar.js +1 -1
  108. package/legacy/MonthCalendar/PickersMonth.js +4 -5
  109. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -15
  110. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  111. package/legacy/PickersDay/PickersDay.js +6 -7
  112. package/legacy/PickersLayout/PickersLayout.js +5 -6
  113. package/legacy/PickersShortcuts/PickersShortcuts.js +2 -1
  114. package/legacy/StaticDatePicker/StaticDatePicker.js +3 -7
  115. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +3 -15
  116. package/legacy/StaticTimePicker/StaticTimePicker.js +1 -9
  117. package/legacy/TimeClock/Clock.js +1 -1
  118. package/legacy/TimeClock/ClockNumber.js +4 -5
  119. package/legacy/TimeClock/TimeClock.js +3 -15
  120. package/legacy/TimeField/TimeField.js +1 -9
  121. package/legacy/TimePicker/TimePicker.js +1 -9
  122. package/legacy/TimePicker/TimePickerToolbar.js +1 -2
  123. package/legacy/YearCalendar/PickersYear.js +4 -5
  124. package/legacy/YearCalendar/YearCalendar.js +1 -1
  125. package/legacy/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  126. package/legacy/dateViewRenderers/dateViewRenderers.js +0 -2
  127. package/legacy/index.js +1 -1
  128. package/legacy/internals/components/PickersModalDialog.js +3 -4
  129. package/legacy/internals/components/PickersTextField/Outline.js +100 -0
  130. package/legacy/internals/components/PickersTextField/PickersInput.js +273 -0
  131. package/legacy/internals/components/PickersTextField/PickersInput.types.js +1 -0
  132. package/legacy/internals/components/PickersTextField/PickersTextField.js +129 -0
  133. package/legacy/internals/components/PickersTextField/PickersTextField.types.js +1 -0
  134. package/legacy/internals/components/PickersTextField/index.js +1 -0
  135. package/legacy/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
  136. package/legacy/internals/hooks/date-helpers-hooks.js +2 -2
  137. package/legacy/internals/hooks/useField/useField.utils.js +30 -17
  138. package/legacy/internals/hooks/useField/useFieldState.js +1 -1
  139. package/legacy/internals/hooks/usePicker/usePickerValue.js +2 -6
  140. package/legacy/internals/hooks/useUtils.js +1 -1
  141. package/legacy/internals/hooks/useViews.js +2 -2
  142. package/legacy/internals/utils/date-utils.js +2 -2
  143. package/legacy/internals/utils/validation/extractValidationProps.js +1 -1
  144. package/legacy/internals/utils/validation/validateDate.js +1 -1
  145. package/legacy/internals/utils/validation/validateTime.js +1 -8
  146. package/legacy/locales/deDE.js +4 -3
  147. package/legacy/locales/index.js +1 -0
  148. package/legacy/locales/mk.js +91 -0
  149. package/legacy/timeViewRenderers/timeViewRenderers.js +0 -6
  150. package/locales/beBY.d.ts +18 -5
  151. package/locales/caES.d.ts +18 -5
  152. package/locales/csCZ.d.ts +18 -5
  153. package/locales/daDK.d.ts +18 -5
  154. package/locales/deDE.d.ts +18 -5
  155. package/locales/deDE.js +2 -3
  156. package/locales/elGR.d.ts +18 -5
  157. package/locales/enUS.d.ts +18 -5
  158. package/locales/esES.d.ts +18 -5
  159. package/locales/eu.d.ts +18 -5
  160. package/locales/faIR.d.ts +18 -5
  161. package/locales/fiFI.d.ts +18 -5
  162. package/locales/frFR.d.ts +18 -5
  163. package/locales/heIL.d.ts +18 -5
  164. package/locales/huHU.d.ts +18 -5
  165. package/locales/index.d.ts +1 -0
  166. package/locales/index.js +1 -0
  167. package/locales/isIS.d.ts +18 -5
  168. package/locales/itIT.d.ts +18 -5
  169. package/locales/jaJP.d.ts +18 -5
  170. package/locales/koKR.d.ts +18 -5
  171. package/locales/kzKZ.d.ts +18 -5
  172. package/locales/mk.d.ts +66 -0
  173. package/locales/mk.js +55 -0
  174. package/locales/nbNO.d.ts +18 -5
  175. package/locales/nlNL.d.ts +18 -5
  176. package/locales/plPL.d.ts +18 -5
  177. package/locales/ptBR.d.ts +18 -5
  178. package/locales/roRO.d.ts +18 -5
  179. package/locales/ruRU.d.ts +18 -5
  180. package/locales/skSK.d.ts +18 -5
  181. package/locales/svSE.d.ts +18 -5
  182. package/locales/trTR.d.ts +18 -5
  183. package/locales/ukUA.d.ts +18 -5
  184. package/locales/urPK.d.ts +18 -5
  185. package/locales/utils/getPickersLocalization.d.ts +18 -5
  186. package/locales/utils/pickersLocaleTextApi.d.ts +18 -5
  187. package/locales/viVN.d.ts +18 -5
  188. package/locales/zhCN.d.ts +18 -5
  189. package/locales/zhHK.d.ts +18 -5
  190. package/models/adapters.d.ts +6 -10
  191. package/models/timezone.d.ts +1 -1
  192. package/models/validation.d.ts +1 -1
  193. package/modern/AdapterDateFns/AdapterDateFns.js +11 -17
  194. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +13 -19
  195. package/modern/AdapterDayjs/AdapterDayjs.js +13 -15
  196. package/modern/AdapterLuxon/AdapterLuxon.js +30 -39
  197. package/modern/AdapterMoment/AdapterMoment.js +16 -23
  198. package/modern/AdapterMomentHijri/AdapterMomentHijri.js +1 -27
  199. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -29
  200. package/modern/DateCalendar/DateCalendar.js +4 -10
  201. package/modern/DateCalendar/dayCalendarClasses.js +1 -1
  202. package/modern/DateCalendar/index.js +1 -1
  203. package/modern/DateCalendar/useCalendarState.js +1 -9
  204. package/modern/DateField/DateField.js +1 -1
  205. package/modern/DatePicker/DatePicker.js +3 -7
  206. package/modern/DateTimeField/DateTimeField.js +1 -9
  207. package/modern/DateTimePicker/DateTimePicker.js +3 -15
  208. package/modern/DesktopDatePicker/DesktopDatePicker.js +3 -7
  209. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -15
  210. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -9
  211. package/modern/DigitalClock/DigitalClock.js +3 -15
  212. package/modern/MobileDatePicker/MobileDatePicker.js +3 -7
  213. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +3 -15
  214. package/modern/MobileTimePicker/MobileTimePicker.js +1 -9
  215. package/modern/MonthCalendar/MonthCalendar.js +1 -1
  216. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -15
  217. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  218. package/modern/PickersDay/PickersDay.js +1 -1
  219. package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
  220. package/modern/StaticDatePicker/StaticDatePicker.js +3 -7
  221. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +3 -15
  222. package/modern/StaticTimePicker/StaticTimePicker.js +1 -9
  223. package/modern/TimeClock/Clock.js +1 -1
  224. package/modern/TimeClock/TimeClock.js +3 -15
  225. package/modern/TimeField/TimeField.js +1 -9
  226. package/modern/TimePicker/TimePicker.js +1 -9
  227. package/modern/YearCalendar/YearCalendar.js +1 -1
  228. package/modern/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  229. package/modern/dateViewRenderers/dateViewRenderers.js +0 -2
  230. package/modern/index.js +1 -1
  231. package/modern/internals/components/PickersTextField/Outline.js +99 -0
  232. package/modern/internals/components/PickersTextField/PickersInput.js +264 -0
  233. package/modern/internals/components/PickersTextField/PickersInput.types.js +1 -0
  234. package/modern/internals/components/PickersTextField/PickersTextField.js +119 -0
  235. package/modern/internals/components/PickersTextField/PickersTextField.types.js +1 -0
  236. package/modern/internals/components/PickersTextField/index.js +1 -0
  237. package/modern/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
  238. package/modern/internals/hooks/date-helpers-hooks.js +2 -2
  239. package/modern/internals/hooks/useField/useField.utils.js +30 -17
  240. package/modern/internals/hooks/useField/useFieldState.js +1 -1
  241. package/modern/internals/hooks/usePicker/usePickerValue.js +2 -6
  242. package/modern/internals/hooks/useUtils.js +1 -1
  243. package/modern/internals/hooks/useViews.js +2 -2
  244. package/modern/internals/utils/date-utils.js +2 -2
  245. package/modern/internals/utils/validation/extractValidationProps.js +1 -1
  246. package/modern/internals/utils/validation/validateDate.js +1 -1
  247. package/modern/internals/utils/validation/validateTime.js +1 -8
  248. package/modern/locales/deDE.js +2 -3
  249. package/modern/locales/index.js +1 -0
  250. package/modern/locales/mk.js +55 -0
  251. package/modern/timeViewRenderers/timeViewRenderers.js +0 -6
  252. package/node/AdapterDateFns/AdapterDateFns.js +11 -17
  253. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +13 -19
  254. package/node/AdapterDayjs/AdapterDayjs.js +12 -14
  255. package/node/AdapterLuxon/AdapterLuxon.js +30 -39
  256. package/node/AdapterMoment/AdapterMoment.js +16 -23
  257. package/node/AdapterMomentHijri/AdapterMomentHijri.js +1 -27
  258. package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -29
  259. package/node/DateCalendar/DateCalendar.js +4 -10
  260. package/node/DateCalendar/dayCalendarClasses.js +2 -2
  261. package/node/DateCalendar/index.js +2 -2
  262. package/node/DateCalendar/useCalendarState.js +1 -9
  263. package/node/DateField/DateField.js +1 -1
  264. package/node/DatePicker/DatePicker.js +3 -7
  265. package/node/DateTimeField/DateTimeField.js +1 -9
  266. package/node/DateTimePicker/DateTimePicker.js +3 -15
  267. package/node/DesktopDatePicker/DesktopDatePicker.js +3 -7
  268. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -15
  269. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -9
  270. package/node/DigitalClock/DigitalClock.js +3 -15
  271. package/node/MobileDatePicker/MobileDatePicker.js +3 -7
  272. package/node/MobileDateTimePicker/MobileDateTimePicker.js +3 -15
  273. package/node/MobileTimePicker/MobileTimePicker.js +1 -9
  274. package/node/MonthCalendar/MonthCalendar.js +1 -1
  275. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -15
  276. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  277. package/node/PickersDay/PickersDay.js +1 -1
  278. package/node/PickersShortcuts/PickersShortcuts.js +1 -1
  279. package/node/StaticDatePicker/StaticDatePicker.js +3 -7
  280. package/node/StaticDateTimePicker/StaticDateTimePicker.js +3 -15
  281. package/node/StaticTimePicker/StaticTimePicker.js +1 -9
  282. package/node/TimeClock/Clock.js +1 -1
  283. package/node/TimeClock/TimeClock.js +3 -15
  284. package/node/TimeField/TimeField.js +1 -9
  285. package/node/TimePicker/TimePicker.js +1 -9
  286. package/node/YearCalendar/YearCalendar.js +1 -1
  287. package/node/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  288. package/node/dateViewRenderers/dateViewRenderers.js +0 -2
  289. package/node/index.js +1 -1
  290. package/node/internals/components/PickersTextField/Outline.js +108 -0
  291. package/node/internals/components/PickersTextField/PickersInput.js +272 -0
  292. package/node/internals/components/PickersTextField/PickersInput.types.js +5 -0
  293. package/node/internals/components/PickersTextField/PickersTextField.js +127 -0
  294. package/node/internals/components/PickersTextField/PickersTextField.types.js +5 -0
  295. package/node/internals/components/PickersTextField/index.js +12 -0
  296. package/node/internals/components/PickersTextField/pickersTextFieldClasses.js +17 -0
  297. package/node/internals/hooks/date-helpers-hooks.js +2 -2
  298. package/node/internals/hooks/useField/useField.utils.js +30 -17
  299. package/node/internals/hooks/useField/useFieldState.js +1 -1
  300. package/node/internals/hooks/usePicker/usePickerValue.js +2 -6
  301. package/node/internals/hooks/useUtils.js +1 -1
  302. package/node/internals/hooks/useViews.js +2 -2
  303. package/node/internals/utils/date-utils.js +2 -2
  304. package/node/internals/utils/validation/extractValidationProps.js +1 -1
  305. package/node/internals/utils/validation/validateDate.js +1 -1
  306. package/node/internals/utils/validation/validateTime.js +1 -8
  307. package/node/locales/deDE.js +2 -3
  308. package/node/locales/index.js +11 -0
  309. package/node/locales/mk.js +60 -0
  310. package/node/timeViewRenderers/timeViewRenderers.js +0 -6
  311. package/package.json +8 -7
  312. package/timeViewRenderers/timeViewRenderers.d.ts +3 -3
  313. package/timeViewRenderers/timeViewRenderers.js +0 -6
  314. package/internals/components/FakeTextField/FakeTextField.d.ts +0 -22
  315. package/internals/components/FakeTextField/FakeTextField.js +0 -44
  316. package/internals/components/FakeTextField/index.d.ts +0 -1
  317. package/internals/components/FakeTextField/index.js +0 -1
  318. package/legacy/internals/components/FakeTextField/FakeTextField.js +0 -49
  319. package/legacy/internals/components/FakeTextField/index.js +0 -1
  320. package/modern/internals/components/FakeTextField/FakeTextField.js +0 -44
  321. package/modern/internals/components/FakeTextField/index.js +0 -1
  322. package/node/internals/components/FakeTextField/FakeTextField.js +0 -52
  323. package/node/internals/components/FakeTextField/index.js +0 -12
@@ -27,7 +27,7 @@ var _useValueWithTimezone = require("../internals/hooks/useValueWithTimezone");
27
27
  var _valueManagers = require("../internals/utils/valueManagers");
28
28
  var _useClockReferenceDate = require("../internals/hooks/useClockReferenceDate");
29
29
  var _jsxRuntime = require("react/jsx-runtime");
30
- const _excluded = ["ampm", "timeStep", "autoFocus", "slots", "slotProps", "value", "defaultValue", "referenceDate", "disableIgnoringDatePartForTimeValidation", "maxTime", "minTime", "disableFuture", "disablePast", "minutesStep", "shouldDisableClock", "shouldDisableTime", "onChange", "view", "openTo", "onViewChange", "focusedView", "onFocusedViewChange", "className", "disabled", "readOnly", "views", "skipDisabled", "timezone"];
30
+ const _excluded = ["ampm", "timeStep", "autoFocus", "slots", "slotProps", "value", "defaultValue", "referenceDate", "disableIgnoringDatePartForTimeValidation", "maxTime", "minTime", "disableFuture", "disablePast", "minutesStep", "shouldDisableTime", "onChange", "view", "openTo", "onViewChange", "focusedView", "onFocusedViewChange", "className", "disabled", "readOnly", "views", "skipDisabled", "timezone"];
31
31
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
32
32
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
33
33
  const useUtilityClasses = ownerState => {
@@ -121,7 +121,6 @@ const DigitalClock = exports.DigitalClock = /*#__PURE__*/React.forwardRef(functi
121
121
  disableFuture,
122
122
  disablePast,
123
123
  minutesStep = 1,
124
- shouldDisableClock,
125
124
  shouldDisableTime,
126
125
  onChange,
127
126
  view: inView,
@@ -221,16 +220,13 @@ const DigitalClock = exports.DigitalClock = /*#__PURE__*/React.forwardRef(functi
221
220
  if (utils.getMinutes(valueToCheck) % minutesStep !== 0) {
222
221
  return false;
223
222
  }
224
- if (shouldDisableClock?.(utils.toJsDate(valueToCheck).getTime(), 'hours')) {
225
- return false;
226
- }
227
223
  if (shouldDisableTime) {
228
224
  return !shouldDisableTime(valueToCheck, 'hours');
229
225
  }
230
226
  return true;
231
227
  };
232
228
  return !containsValidTime() || !isValidValue();
233
- }, [disableIgnoringDatePartForTimeValidation, utils, minTime, maxTime, disableFuture, now, disablePast, minutesStep, shouldDisableClock, shouldDisableTime]);
229
+ }, [disableIgnoringDatePartForTimeValidation, utils, minTime, maxTime, disableFuture, now, disablePast, minutesStep, shouldDisableTime]);
234
230
  const timeOptions = React.useMemo(() => {
235
231
  const startOfDay = utils.startOfDay(valueOrReferenceDate);
236
232
  return [startOfDay, ...Array.from({
@@ -375,14 +371,6 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
375
371
  * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.
376
372
  */
377
373
  referenceDate: _propTypes.default.any,
378
- /**
379
- * Disable specific clock time.
380
- * @param {number} clockValue The value to check.
381
- * @param {TimeView} view The clock type of the timeValue.
382
- * @returns {boolean} If `true` the time will be disabled.
383
- * @deprecated Consider using `shouldDisableTime`.
384
- */
385
- shouldDisableClock: _propTypes.default.func,
386
374
  /**
387
375
  * Disable specific time.
388
376
  * @template TDate
@@ -420,7 +408,7 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
420
408
  * Choose which timezone to use for the value.
421
409
  * Example: "default", "system", "UTC", "America/New_York".
422
410
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
423
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
411
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
424
412
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
425
413
  */
426
414
  timezone: _propTypes.default.string,
@@ -97,10 +97,6 @@ MobileDatePicker.propTypes = {
97
97
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
98
98
  */
99
99
  dayOfWeekFormatter: _propTypes.default.func,
100
- /**
101
- * Default calendar month displayed when `value` and `defaultValue` are empty.
102
- */
103
- defaultCalendarMonth: _propTypes.default.any,
104
100
  /**
105
101
  * The default value.
106
102
  * Used when the component is not controlled.
@@ -136,8 +132,8 @@ MobileDatePicker.propTypes = {
136
132
  */
137
133
  displayWeekNumber: _propTypes.default.bool,
138
134
  /**
139
- * Calendar will show more weeks in order to match this value.
140
- * Put it to 6 for having fix number of week in Gregorian calendars
135
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
136
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
141
137
  * @default undefined
142
138
  */
143
139
  fixedWeekNumber: _propTypes.default.number,
@@ -339,7 +335,7 @@ MobileDatePicker.propTypes = {
339
335
  * Choose which timezone to use for the value.
340
336
  * Example: "default", "system", "UTC", "America/New_York".
341
337
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
342
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
338
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
343
339
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
344
340
  */
345
341
  timezone: _propTypes.default.string,
@@ -118,10 +118,6 @@ MobileDateTimePicker.propTypes = {
118
118
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
119
119
  */
120
120
  dayOfWeekFormatter: _propTypes.default.func,
121
- /**
122
- * Default calendar month displayed when `value` and `defaultValue` are empty.
123
- */
124
- defaultCalendarMonth: _propTypes.default.any,
125
121
  /**
126
122
  * The default value.
127
123
  * Used when the component is not controlled.
@@ -162,8 +158,8 @@ MobileDateTimePicker.propTypes = {
162
158
  */
163
159
  displayWeekNumber: _propTypes.default.bool,
164
160
  /**
165
- * Calendar will show more weeks in order to match this value.
166
- * Put it to 6 for having fix number of week in Gregorian calendars
161
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
162
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
167
163
  * @default undefined
168
164
  */
169
165
  fixedWeekNumber: _propTypes.default.number,
@@ -335,14 +331,6 @@ MobileDateTimePicker.propTypes = {
335
331
  endIndex: _propTypes.default.number.isRequired,
336
332
  startIndex: _propTypes.default.number.isRequired
337
333
  })]),
338
- /**
339
- * Disable specific clock time.
340
- * @param {number} clockValue The value to check.
341
- * @param {TimeView} view The clock type of the timeValue.
342
- * @returns {boolean} If `true` the time will be disabled.
343
- * @deprecated Consider using `shouldDisableTime`.
344
- */
345
- shouldDisableClock: _propTypes.default.func,
346
334
  /**
347
335
  * Disable specific date.
348
336
  *
@@ -404,7 +392,7 @@ MobileDateTimePicker.propTypes = {
404
392
  * Choose which timezone to use for the value.
405
393
  * Example: "default", "system", "UTC", "America/New_York".
406
394
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
407
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
395
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
408
396
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
409
397
  */
410
398
  timezone: _propTypes.default.string,
@@ -257,14 +257,6 @@ MobileTimePicker.propTypes = {
257
257
  endIndex: _propTypes.default.number.isRequired,
258
258
  startIndex: _propTypes.default.number.isRequired
259
259
  })]),
260
- /**
261
- * Disable specific clock time.
262
- * @param {number} clockValue The value to check.
263
- * @param {TimeView} view The clock type of the timeValue.
264
- * @returns {boolean} If `true` the time will be disabled.
265
- * @deprecated Consider using `shouldDisableTime`.
266
- */
267
- shouldDisableClock: _propTypes.default.func,
268
260
  /**
269
261
  * Disable specific time.
270
262
  * @template TDate
@@ -291,7 +283,7 @@ MobileTimePicker.propTypes = {
291
283
  * Choose which timezone to use for the value.
292
284
  * Example: "default", "system", "UTC", "America/New_York".
293
285
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
294
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
286
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
295
287
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
296
288
  */
297
289
  timezone: _propTypes.default.string,
@@ -325,7 +325,7 @@ process.env.NODE_ENV !== "production" ? MonthCalendar.propTypes = {
325
325
  * Choose which timezone to use for the value.
326
326
  * Example: "default", "system", "UTC", "America/New_York".
327
327
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
328
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
328
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
329
329
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
330
330
  */
331
331
  timezone: _propTypes.default.string,
@@ -26,7 +26,7 @@ var _valueManagers = require("../internals/utils/valueManagers");
26
26
  var _useClockReferenceDate = require("../internals/hooks/useClockReferenceDate");
27
27
  var _dateUtils = require("../internals/utils/date-utils");
28
28
  var _jsxRuntime = require("react/jsx-runtime");
29
- const _excluded = ["ampm", "timeSteps", "autoFocus", "slots", "slotProps", "value", "defaultValue", "referenceDate", "disableIgnoringDatePartForTimeValidation", "maxTime", "minTime", "disableFuture", "disablePast", "minutesStep", "shouldDisableClock", "shouldDisableTime", "onChange", "view", "views", "openTo", "onViewChange", "focusedView", "onFocusedViewChange", "className", "disabled", "readOnly", "skipDisabled", "timezone"];
29
+ const _excluded = ["ampm", "timeSteps", "autoFocus", "slots", "slotProps", "value", "defaultValue", "referenceDate", "disableIgnoringDatePartForTimeValidation", "maxTime", "minTime", "disableFuture", "disablePast", "minutesStep", "shouldDisableTime", "onChange", "view", "views", "openTo", "onViewChange", "focusedView", "onFocusedViewChange", "className", "disabled", "readOnly", "skipDisabled", "timezone"];
30
30
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
31
31
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
32
32
  const useUtilityClasses = ownerState => {
@@ -81,7 +81,6 @@ const MultiSectionDigitalClock = exports.MultiSectionDigitalClock = /*#__PURE__*
81
81
  disableFuture,
82
82
  disablePast,
83
83
  minutesStep = 1,
84
- shouldDisableClock,
85
84
  shouldDisableTime,
86
85
  onChange,
87
86
  view: inView,
@@ -175,9 +174,6 @@ const MultiSectionDigitalClock = exports.MultiSectionDigitalClock = /*#__PURE__*
175
174
  if (timeValue % step !== 0) {
176
175
  return false;
177
176
  }
178
- if (shouldDisableClock?.(timeValue, viewType)) {
179
- return false;
180
- }
181
177
  if (shouldDisableTime) {
182
178
  switch (viewType) {
183
179
  case 'hours':
@@ -227,7 +223,7 @@ const MultiSectionDigitalClock = exports.MultiSectionDigitalClock = /*#__PURE__*
227
223
  default:
228
224
  throw new Error('not supported');
229
225
  }
230
- }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableClock, shouldDisableTime, utils, disableFuture, disablePast, now, views]);
226
+ }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableTime, utils, disableFuture, disablePast, now, views]);
231
227
  const handleSectionChange = (0, _useEventCallback.default)((sectionView, newValue) => {
232
228
  const viewIndex = views.indexOf(sectionView);
233
229
  const nextView = views[viewIndex + 1];
@@ -262,6 +258,7 @@ const MultiSectionDigitalClock = exports.MultiSectionDigitalClock = /*#__PURE__*
262
258
  },
263
259
  items: (0, _MultiSectionDigitalClock.getTimeSectionOptions)({
264
260
  value: utils.getMinutes(valueOrReferenceDate),
261
+ utils,
265
262
  isDisabled: minutes => disabled || isTimeDisabled(minutes, 'minutes'),
266
263
  resolveLabel: minutes => utils.format(utils.setMinutes(now, minutes), 'minutes'),
267
264
  timeStep: timeSteps.minutes,
@@ -278,6 +275,7 @@ const MultiSectionDigitalClock = exports.MultiSectionDigitalClock = /*#__PURE__*
278
275
  },
279
276
  items: (0, _MultiSectionDigitalClock.getTimeSectionOptions)({
280
277
  value: utils.getSeconds(valueOrReferenceDate),
278
+ utils,
281
279
  isDisabled: seconds => disabled || isTimeDisabled(seconds, 'seconds'),
282
280
  resolveLabel: seconds => utils.format(utils.setSeconds(now, seconds), 'seconds'),
283
281
  timeStep: timeSteps.seconds,
@@ -443,14 +441,6 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
443
441
  * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.
444
442
  */
445
443
  referenceDate: _propTypes.default.any,
446
- /**
447
- * Disable specific clock time.
448
- * @param {number} clockValue The value to check.
449
- * @param {TimeView} view The clock type of the timeValue.
450
- * @returns {boolean} If `true` the time will be disabled.
451
- * @deprecated Consider using `shouldDisableTime`.
452
- */
453
- shouldDisableClock: _propTypes.default.func,
454
444
  /**
455
445
  * Disable specific time.
456
446
  * @template TDate
@@ -492,7 +482,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
492
482
  * Choose which timezone to use for the value.
493
483
  * Example: "default", "system", "UTC", "America/New_York".
494
484
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
495
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
485
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
496
486
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
497
487
  */
498
488
  timezone: _propTypes.default.string,
@@ -51,6 +51,7 @@ const getHourSectionOptions = ({
51
51
  exports.getHourSectionOptions = getHourSectionOptions;
52
52
  const getTimeSectionOptions = ({
53
53
  value,
54
+ utils,
54
55
  isDisabled,
55
56
  timeStep,
56
57
  resolveLabel,
@@ -72,7 +73,7 @@ const getTimeSectionOptions = ({
72
73
  const timeValue = timeStep * index;
73
74
  return {
74
75
  value: timeValue,
75
- label: resolveLabel(timeValue),
76
+ label: utils.formatNumber(resolveLabel(timeValue)),
76
77
  isDisabled,
77
78
  isSelected,
78
79
  isFocused,
@@ -165,7 +165,7 @@ const PickersDayRaw = /*#__PURE__*/React.forwardRef(function PickersDay(inProps,
165
165
  }
166
166
  }, [autoFocus, disabled, isAnimating, outsideCurrentMonth]);
167
167
 
168
- // For day outside of current month, move focus from mouseDown to mouseUp
168
+ // For a day outside the current month, move the focus from mouseDown to mouseUp
169
169
  // Goal: have the onClick ends before sliding to the new month
170
170
  const handleMouseDown = event => {
171
171
  onMouseDown(event);
@@ -30,7 +30,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
30
30
  function PickersShortcuts(props) {
31
31
  const {
32
32
  items,
33
- changeImportance,
33
+ changeImportance = 'accept',
34
34
  onChange,
35
35
  isValid
36
36
  } = props,
@@ -79,10 +79,6 @@ StaticDatePicker.propTypes = {
79
79
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
80
80
  */
81
81
  dayOfWeekFormatter: _propTypes.default.func,
82
- /**
83
- * Default calendar month displayed when `value` and `defaultValue` are empty.
84
- */
85
- defaultCalendarMonth: _propTypes.default.any,
86
82
  /**
87
83
  * The default value.
88
84
  * Used when the component is not controlled.
@@ -118,8 +114,8 @@ StaticDatePicker.propTypes = {
118
114
  */
119
115
  displayWeekNumber: _propTypes.default.bool,
120
116
  /**
121
- * Calendar will show more weeks in order to match this value.
122
- * Put it to 6 for having fix number of week in Gregorian calendars
117
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
118
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
123
119
  * @default undefined
124
120
  */
125
121
  fixedWeekNumber: _propTypes.default.number,
@@ -275,7 +271,7 @@ StaticDatePicker.propTypes = {
275
271
  * Choose which timezone to use for the value.
276
272
  * Example: "default", "system", "UTC", "America/New_York".
277
273
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
278
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
274
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
279
275
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
280
276
  */
281
277
  timezone: _propTypes.default.string,
@@ -99,10 +99,6 @@ StaticDateTimePicker.propTypes = {
99
99
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
100
100
  */
101
101
  dayOfWeekFormatter: _propTypes.default.func,
102
- /**
103
- * Default calendar month displayed when `value` and `defaultValue` are empty.
104
- */
105
- defaultCalendarMonth: _propTypes.default.any,
106
102
  /**
107
103
  * The default value.
108
104
  * Used when the component is not controlled.
@@ -143,8 +139,8 @@ StaticDateTimePicker.propTypes = {
143
139
  */
144
140
  displayWeekNumber: _propTypes.default.bool,
145
141
  /**
146
- * Calendar will show more weeks in order to match this value.
147
- * Put it to 6 for having fix number of week in Gregorian calendars
142
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
143
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
148
144
  * @default undefined
149
145
  */
150
146
  fixedWeekNumber: _propTypes.default.number,
@@ -270,14 +266,6 @@ StaticDateTimePicker.propTypes = {
270
266
  * @default () => <span data-mui-test="loading-progress">...</span>
271
267
  */
272
268
  renderLoading: _propTypes.default.func,
273
- /**
274
- * Disable specific clock time.
275
- * @param {number} clockValue The value to check.
276
- * @param {TimeView} view The clock type of the timeValue.
277
- * @returns {boolean} If `true` the time will be disabled.
278
- * @deprecated Consider using `shouldDisableTime`.
279
- */
280
- shouldDisableClock: _propTypes.default.func,
281
269
  /**
282
270
  * Disable specific date.
283
271
  *
@@ -339,7 +327,7 @@ StaticDateTimePicker.propTypes = {
339
327
  * Choose which timezone to use for the value.
340
328
  * Example: "default", "system", "UTC", "America/New_York".
341
329
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
342
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
330
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
343
331
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
344
332
  */
345
333
  timezone: _propTypes.default.string,
@@ -191,14 +191,6 @@ StaticTimePicker.propTypes = {
191
191
  * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
192
192
  */
193
193
  referenceDate: _propTypes.default.any,
194
- /**
195
- * Disable specific clock time.
196
- * @param {number} clockValue The value to check.
197
- * @param {TimeView} view The clock type of the timeValue.
198
- * @returns {boolean} If `true` the time will be disabled.
199
- * @deprecated Consider using `shouldDisableTime`.
200
- */
201
- shouldDisableClock: _propTypes.default.func,
202
194
  /**
203
195
  * Disable specific time.
204
196
  * @template TDate
@@ -225,7 +217,7 @@ StaticTimePicker.propTypes = {
225
217
  * Choose which timezone to use for the value.
226
218
  * Example: "default", "system", "UTC", "America/New_York".
227
219
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
228
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
220
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
229
221
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
230
222
  */
231
223
  timezone: _propTypes.default.string,
@@ -264,7 +264,7 @@ function Clock(inProps) {
264
264
  }
265
265
  switch (event.key) {
266
266
  case 'Home':
267
- // annulate both hours and minutes
267
+ // reset both hours and minutes
268
268
  handleValueChange(0, 'partial');
269
269
  event.preventDefault();
270
270
  break;
@@ -25,7 +25,7 @@ var _useValueWithTimezone = require("../internals/hooks/useValueWithTimezone");
25
25
  var _valueManagers = require("../internals/utils/valueManagers");
26
26
  var _useClockReferenceDate = require("../internals/hooks/useClockReferenceDate");
27
27
  var _jsxRuntime = require("react/jsx-runtime");
28
- const _excluded = ["ampm", "ampmInClock", "autoFocus", "slots", "slotProps", "value", "defaultValue", "referenceDate", "disableIgnoringDatePartForTimeValidation", "maxTime", "minTime", "disableFuture", "disablePast", "minutesStep", "shouldDisableClock", "shouldDisableTime", "showViewSwitcher", "onChange", "view", "views", "openTo", "onViewChange", "focusedView", "onFocusedViewChange", "className", "disabled", "readOnly", "timezone"];
28
+ const _excluded = ["ampm", "ampmInClock", "autoFocus", "slots", "slotProps", "value", "defaultValue", "referenceDate", "disableIgnoringDatePartForTimeValidation", "maxTime", "minTime", "disableFuture", "disablePast", "minutesStep", "shouldDisableTime", "showViewSwitcher", "onChange", "view", "views", "openTo", "onViewChange", "focusedView", "onFocusedViewChange", "className", "disabled", "readOnly", "timezone"];
29
29
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
30
30
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
31
31
  const useUtilityClasses = ownerState => {
@@ -89,7 +89,6 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
89
89
  disableFuture,
90
90
  disablePast,
91
91
  minutesStep = 1,
92
- shouldDisableClock,
93
92
  shouldDisableTime,
94
93
  showViewSwitcher,
95
94
  onChange,
@@ -170,9 +169,6 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
170
169
  if (timeValue % step !== 0) {
171
170
  return false;
172
171
  }
173
- if (shouldDisableClock?.(timeValue, viewType)) {
174
- return false;
175
- }
176
172
  if (shouldDisableTime) {
177
173
  switch (viewType) {
178
174
  case 'hours':
@@ -222,7 +218,7 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
222
218
  default:
223
219
  throw new Error('not supported');
224
220
  }
225
- }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableClock, shouldDisableTime, utils, disableFuture, disablePast, now, views]);
221
+ }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableTime, utils, disableFuture, disablePast, now, views]);
226
222
  const selectedId = (0, _utils.unstable_useId)();
227
223
  const viewProps = React.useMemo(() => {
228
224
  switch (view) {
@@ -430,14 +426,6 @@ process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
430
426
  * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.
431
427
  */
432
428
  referenceDate: _propTypes.default.any,
433
- /**
434
- * Disable specific clock time.
435
- * @param {number} clockValue The value to check.
436
- * @param {TimeView} view The clock type of the timeValue.
437
- * @returns {boolean} If `true` the time will be disabled.
438
- * @deprecated Consider using `shouldDisableTime`.
439
- */
440
- shouldDisableClock: _propTypes.default.func,
441
429
  /**
442
430
  * Disable specific time.
443
431
  * @template TDate
@@ -465,7 +453,7 @@ process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
465
453
  * Choose which timezone to use for the value.
466
454
  * Example: "default", "system", "UTC", "America/New_York".
467
455
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
468
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
456
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
469
457
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
470
458
  */
471
459
  timezone: _propTypes.default.string,
@@ -295,14 +295,6 @@ process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
295
295
  endIndex: _propTypes.default.number.isRequired,
296
296
  startIndex: _propTypes.default.number.isRequired
297
297
  })]),
298
- /**
299
- * Disable specific clock time.
300
- * @param {number} clockValue The value to check.
301
- * @param {TimeView} view The clock type of the timeValue.
302
- * @returns {boolean} If `true` the time will be disabled.
303
- * @deprecated Consider using `shouldDisableTime`.
304
- */
305
- shouldDisableClock: _propTypes.default.func,
306
298
  /**
307
299
  * Disable specific time.
308
300
  * @template TDate
@@ -349,7 +341,7 @@ process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
349
341
  * Choose which timezone to use for the value.
350
342
  * Example: "default", "system", "UTC", "America/New_York".
351
343
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
352
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
344
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
353
345
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
354
346
  */
355
347
  timezone: _propTypes.default.string,
@@ -242,14 +242,6 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
242
242
  endIndex: _propTypes.default.number.isRequired,
243
243
  startIndex: _propTypes.default.number.isRequired
244
244
  })]),
245
- /**
246
- * Disable specific clock time.
247
- * @param {number} clockValue The value to check.
248
- * @param {TimeView} view The clock type of the timeValue.
249
- * @returns {boolean} If `true` the time will be disabled.
250
- * @deprecated Consider using `shouldDisableTime`.
251
- */
252
- shouldDisableClock: _propTypes.default.func,
253
245
  /**
254
246
  * Disable specific time.
255
247
  * @template TDate
@@ -297,7 +289,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
297
289
  * Choose which timezone to use for the value.
298
290
  * Example: "default", "system", "UTC", "America/New_York".
299
291
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
300
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
292
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
301
293
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
302
294
  */
303
295
  timezone: _propTypes.default.string,
@@ -344,7 +344,7 @@ process.env.NODE_ENV !== "production" ? YearCalendar.propTypes = {
344
344
  * Choose which timezone to use for the value.
345
345
  * Example: "default", "system", "UTC", "America/New_York".
346
346
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
347
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
347
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
348
348
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
349
349
  */
350
350
  timezone: _propTypes.default.string,
@@ -42,7 +42,6 @@ const renderDesktopDateTimeView = ({
42
42
  shouldDisableMonth,
43
43
  shouldDisableYear,
44
44
  shouldDisableTime,
45
- shouldDisableClock,
46
45
  reduceAnimations,
47
46
  minutesStep,
48
47
  ampm,
@@ -50,7 +49,6 @@ const renderDesktopDateTimeView = ({
50
49
  monthsPerRow,
51
50
  onYearChange,
52
51
  yearsPerRow,
53
- defaultCalendarMonth,
54
52
  slots,
55
53
  slotProps,
56
54
  loading,
@@ -89,7 +87,6 @@ const renderDesktopDateTimeView = ({
89
87
  minTime,
90
88
  maxTime,
91
89
  shouldDisableTime,
92
- shouldDisableClock,
93
90
  minutesStep,
94
91
  ampm,
95
92
  slots,
@@ -128,7 +125,6 @@ const renderDesktopDateTimeView = ({
128
125
  monthsPerRow: monthsPerRow,
129
126
  onYearChange: onYearChange,
130
127
  yearsPerRow: yearsPerRow,
131
- defaultCalendarMonth: defaultCalendarMonth,
132
128
  slots: slots,
133
129
  slotProps: slotProps,
134
130
  loading: loading,
@@ -34,7 +34,6 @@ const renderDateViewCalendar = ({
34
34
  monthsPerRow,
35
35
  onYearChange,
36
36
  yearsPerRow,
37
- defaultCalendarMonth,
38
37
  slots,
39
38
  slotProps,
40
39
  loading,
@@ -73,7 +72,6 @@ const renderDateViewCalendar = ({
73
72
  monthsPerRow: monthsPerRow,
74
73
  onYearChange: onYearChange,
75
74
  yearsPerRow: yearsPerRow,
76
- defaultCalendarMonth: defaultCalendarMonth,
77
75
  slots: slots,
78
76
  slotProps: slotProps,
79
77
  loading: loading,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.0.0-alpha.1
2
+ * @mui/x-date-pickers v7.0.0-alpha.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the