@mui/x-date-pickers 8.0.0-alpha.5 → 8.0.0-alpha.7

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 (305) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +2 -4
  2. package/AdapterDateFns/AdapterDateFns.js +49 -47
  3. package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +1 -1
  4. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +2 -4
  5. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +48 -46
  6. package/{AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.d.ts → AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts} +2 -2
  7. package/{AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js → AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js} +45 -52
  8. package/AdapterDateFnsJalaliV2/index.d.ts +1 -0
  9. package/AdapterDateFnsJalaliV2/index.js +1 -0
  10. package/{AdapterDateFnsJalaliV3 → AdapterDateFnsJalaliV2}/package.json +1 -1
  11. package/{AdapterDateFnsV3/AdapterDateFnsV3.d.ts → AdapterDateFnsV2/AdapterDateFnsV2.d.ts} +2 -2
  12. package/{AdapterDateFnsV3/AdapterDateFnsV3.js → AdapterDateFnsV2/AdapterDateFnsV2.js} +46 -54
  13. package/AdapterDateFnsV2/index.d.ts +1 -0
  14. package/AdapterDateFnsV2/index.js +1 -0
  15. package/{AdapterDateFnsV3 → AdapterDateFnsV2}/package.json +1 -1
  16. package/AdapterDayjs/AdapterDayjs.d.ts +1 -1
  17. package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
  18. package/AdapterMoment/AdapterMoment.d.ts +1 -1
  19. package/CHANGELOG.md +206 -1
  20. package/DateCalendar/DateCalendar.js +1 -1
  21. package/DateCalendar/PickersFadeTransitionGroup.d.ts +1 -1
  22. package/DateCalendar/PickersSlideTransition.d.ts +1 -1
  23. package/DateField/useDateField.d.ts +1 -1
  24. package/DateField/useDateField.js +13 -11
  25. package/DatePicker/DatePicker.js +1 -1
  26. package/DatePicker/DatePicker.types.d.ts +5 -0
  27. package/DatePicker/DatePickerToolbar.d.ts +1 -3
  28. package/DatePicker/DatePickerToolbar.js +10 -25
  29. package/DatePicker/shared.d.ts +1 -1
  30. package/DateTimeField/useDateTimeField.d.ts +1 -1
  31. package/DateTimeField/useDateTimeField.js +13 -11
  32. package/DateTimePicker/DateTimePicker.js +2 -2
  33. package/DateTimePicker/DateTimePicker.types.d.ts +2 -2
  34. package/DateTimePicker/DateTimePickerTabs.d.ts +2 -5
  35. package/DateTimePicker/DateTimePickerTabs.js +7 -14
  36. package/DateTimePicker/DateTimePickerToolbar.d.ts +12 -4
  37. package/DateTimePicker/DateTimePickerToolbar.js +42 -48
  38. package/DateTimePicker/shared.d.ts +3 -3
  39. package/DesktopDatePicker/DesktopDatePicker.js +9 -3
  40. package/DesktopDatePicker/DesktopDatePicker.types.d.ts +7 -3
  41. package/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -10
  42. package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +2 -2
  43. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.ts +1 -2
  44. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -15
  45. package/DesktopTimePicker/DesktopTimePicker.js +3 -7
  46. package/DesktopTimePicker/DesktopTimePicker.types.d.ts +2 -2
  47. package/MobileDatePicker/MobileDatePicker.js +2 -2
  48. package/MobileDatePicker/MobileDatePicker.types.d.ts +2 -3
  49. package/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  50. package/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +4 -4
  51. package/MobileTimePicker/MobileTimePicker.js +2 -2
  52. package/MobileTimePicker/MobileTimePicker.types.d.ts +4 -4
  53. package/PickersActionBar/PickersActionBar.d.ts +6 -7
  54. package/PickersActionBar/PickersActionBar.js +18 -16
  55. package/PickersLayout/PickersLayout.d.ts +2 -2
  56. package/PickersLayout/PickersLayout.js +1 -15
  57. package/PickersLayout/PickersLayout.types.d.ts +12 -15
  58. package/PickersLayout/usePickerLayout.d.ts +2 -2
  59. package/PickersLayout/usePickerLayout.js +13 -47
  60. package/PickersShortcuts/PickersShortcuts.d.ts +2 -5
  61. package/PickersShortcuts/PickersShortcuts.js +13 -10
  62. package/PickersShortcuts/index.d.ts +1 -1
  63. package/PickersTextField/PickersInputBase/PickersInputBase.js +7 -0
  64. package/PickersTextField/PickersTextField.js +1 -1
  65. package/StaticDatePicker/StaticDatePicker.types.d.ts +2 -3
  66. package/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +2 -2
  67. package/StaticTimePicker/StaticTimePicker.types.d.ts +2 -2
  68. package/TimeField/useTimeField.d.ts +1 -1
  69. package/TimeField/useTimeField.js +13 -11
  70. package/TimePicker/TimePicker.js +2 -2
  71. package/TimePicker/TimePicker.types.d.ts +2 -2
  72. package/TimePicker/TimePickerToolbar.d.ts +1 -2
  73. package/TimePicker/TimePickerToolbar.js +23 -35
  74. package/TimePicker/shared.d.ts +1 -1
  75. package/hooks/index.d.ts +2 -0
  76. package/hooks/index.js +3 -1
  77. package/hooks/useIsValidValue.d.ts +7 -0
  78. package/hooks/useIsValidValue.js +11 -0
  79. package/hooks/usePickerActionsContext.d.ts +7 -0
  80. package/hooks/usePickerActionsContext.js +15 -0
  81. package/hooks/usePickerContext.d.ts +3 -1
  82. package/hooks/usePickerContext.js +1 -2
  83. package/index.d.ts +1 -0
  84. package/index.js +3 -2
  85. package/internals/components/PickerProvider.d.ts +14 -8
  86. package/internals/components/PickerProvider.js +17 -6
  87. package/internals/components/PickersModalDialog.d.ts +1 -3
  88. package/internals/components/PickersModalDialog.js +9 -3
  89. package/internals/components/PickersPopper.d.ts +1 -3
  90. package/internals/components/PickersPopper.js +11 -6
  91. package/internals/components/PickersToolbar.d.ts +2 -3
  92. package/internals/components/PickersToolbar.js +1 -1
  93. package/internals/hooks/date-helpers-hooks.js +4 -3
  94. package/internals/hooks/useDesktopPicker/useDesktopPicker.js +10 -12
  95. package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +7 -7
  96. package/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
  97. package/internals/hooks/useField/index.d.ts +1 -1
  98. package/internals/hooks/useField/index.js +1 -1
  99. package/internals/hooks/useField/useField.d.ts +10 -1
  100. package/internals/hooks/useField/useField.js +17 -1
  101. package/internals/hooks/useField/useField.utils.js +2 -2
  102. package/internals/hooks/useField/useFieldState.js +2 -2
  103. package/internals/hooks/useField/useFieldV6TextField.js +2 -2
  104. package/internals/hooks/useMobilePicker/useMobilePicker.js +9 -10
  105. package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +7 -7
  106. package/internals/hooks/useOpenState.js +3 -2
  107. package/internals/hooks/usePicker/usePicker.d.ts +1 -1
  108. package/internals/hooks/usePicker/usePicker.js +0 -8
  109. package/internals/hooks/usePicker/usePicker.types.d.ts +6 -7
  110. package/internals/hooks/usePicker/usePickerProvider.d.ts +5 -5
  111. package/internals/hooks/usePicker/usePickerProvider.js +8 -5
  112. package/internals/hooks/usePicker/usePickerValue.d.ts +1 -1
  113. package/internals/hooks/usePicker/usePickerValue.js +82 -217
  114. package/internals/hooks/usePicker/usePickerValue.types.d.ts +82 -67
  115. package/internals/hooks/usePicker/usePickerViews.d.ts +35 -20
  116. package/internals/hooks/usePicker/usePickerViews.js +22 -14
  117. package/internals/hooks/useStaticPicker/useStaticPicker.js +1 -4
  118. package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +6 -6
  119. package/internals/hooks/useUtils.js +1 -1
  120. package/internals/index.d.ts +9 -7
  121. package/internals/index.js +5 -3
  122. package/internals/models/index.d.ts +1 -0
  123. package/internals/models/index.js +2 -1
  124. package/internals/models/manager.d.ts +12 -0
  125. package/internals/models/manager.js +1 -0
  126. package/internals/models/props/basePickerProps.d.ts +2 -2
  127. package/internals/models/props/tabs.d.ts +0 -13
  128. package/internals/models/props/toolbar.d.ts +1 -20
  129. package/internals/utils/date-utils.js +1 -1
  130. package/internals/utils/valueManagers.js +4 -4
  131. package/locales/index.d.ts +1 -0
  132. package/locales/index.js +1 -0
  133. package/locales/nbNO.js +15 -19
  134. package/locales/utils/getPickersLocalization.js +1 -1
  135. package/locales/zhTW.d.ts +80 -0
  136. package/locales/zhTW.js +73 -0
  137. package/managers/index.d.ts +6 -0
  138. package/managers/index.js +3 -0
  139. package/managers/package.json +6 -0
  140. package/managers/useDateManager.d.ts +27 -0
  141. package/managers/useDateManager.js +47 -0
  142. package/managers/useDateTimeManager.d.ts +28 -0
  143. package/managers/useDateTimeManager.js +52 -0
  144. package/managers/useTimeManager.d.ts +28 -0
  145. package/managers/useTimeManager.js +43 -0
  146. package/models/adapters.d.ts +1 -1
  147. package/models/index.d.ts +1 -0
  148. package/models/index.js +1 -0
  149. package/models/manager.d.ts +78 -0
  150. package/models/manager.js +1 -0
  151. package/models/pickers.d.ts +7 -0
  152. package/modern/AdapterDateFns/AdapterDateFns.js +49 -47
  153. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +48 -46
  154. package/modern/{AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js → AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js} +45 -52
  155. package/modern/AdapterDateFnsJalaliV2/index.js +1 -0
  156. package/modern/{AdapterDateFnsV3/AdapterDateFnsV3.js → AdapterDateFnsV2/AdapterDateFnsV2.js} +46 -54
  157. package/modern/AdapterDateFnsV2/index.js +1 -0
  158. package/modern/DateCalendar/DateCalendar.js +1 -1
  159. package/modern/DateField/useDateField.js +13 -11
  160. package/modern/DatePicker/DatePicker.js +1 -1
  161. package/modern/DatePicker/DatePickerToolbar.js +10 -25
  162. package/modern/DateTimeField/useDateTimeField.js +13 -11
  163. package/modern/DateTimePicker/DateTimePicker.js +2 -2
  164. package/modern/DateTimePicker/DateTimePickerTabs.js +7 -14
  165. package/modern/DateTimePicker/DateTimePickerToolbar.js +42 -48
  166. package/modern/DesktopDatePicker/DesktopDatePicker.js +9 -3
  167. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -10
  168. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -15
  169. package/modern/DesktopTimePicker/DesktopTimePicker.js +3 -7
  170. package/modern/MobileDatePicker/MobileDatePicker.js +2 -2
  171. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  172. package/modern/MobileTimePicker/MobileTimePicker.js +2 -2
  173. package/modern/PickersActionBar/PickersActionBar.js +18 -16
  174. package/modern/PickersLayout/PickersLayout.js +1 -15
  175. package/modern/PickersLayout/usePickerLayout.js +13 -47
  176. package/modern/PickersShortcuts/PickersShortcuts.js +13 -10
  177. package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +7 -0
  178. package/modern/PickersTextField/PickersTextField.js +1 -1
  179. package/modern/TimeField/useTimeField.js +13 -11
  180. package/modern/TimePicker/TimePicker.js +2 -2
  181. package/modern/TimePicker/TimePickerToolbar.js +23 -35
  182. package/modern/hooks/index.js +3 -1
  183. package/modern/hooks/useIsValidValue.js +11 -0
  184. package/modern/hooks/usePickerActionsContext.js +15 -0
  185. package/modern/hooks/usePickerContext.js +1 -2
  186. package/modern/index.js +3 -2
  187. package/modern/internals/components/PickerProvider.js +17 -6
  188. package/modern/internals/components/PickersModalDialog.js +9 -3
  189. package/modern/internals/components/PickersPopper.js +11 -6
  190. package/modern/internals/components/PickersToolbar.js +1 -1
  191. package/modern/internals/hooks/date-helpers-hooks.js +4 -3
  192. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +10 -12
  193. package/modern/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
  194. package/modern/internals/hooks/useField/index.js +1 -1
  195. package/modern/internals/hooks/useField/useField.js +17 -1
  196. package/modern/internals/hooks/useField/useField.utils.js +2 -2
  197. package/modern/internals/hooks/useField/useFieldState.js +2 -2
  198. package/modern/internals/hooks/useField/useFieldV6TextField.js +2 -2
  199. package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +9 -10
  200. package/modern/internals/hooks/useOpenState.js +3 -2
  201. package/modern/internals/hooks/usePicker/usePicker.js +0 -8
  202. package/modern/internals/hooks/usePicker/usePickerProvider.js +8 -5
  203. package/modern/internals/hooks/usePicker/usePickerValue.js +82 -217
  204. package/modern/internals/hooks/usePicker/usePickerViews.js +22 -14
  205. package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +1 -4
  206. package/modern/internals/hooks/useUtils.js +1 -1
  207. package/modern/internals/index.js +5 -3
  208. package/modern/internals/models/index.js +2 -1
  209. package/modern/internals/models/manager.js +1 -0
  210. package/modern/internals/utils/date-utils.js +1 -1
  211. package/modern/internals/utils/valueManagers.js +4 -4
  212. package/modern/locales/index.js +1 -0
  213. package/modern/locales/nbNO.js +15 -19
  214. package/modern/locales/utils/getPickersLocalization.js +1 -1
  215. package/modern/locales/zhTW.js +73 -0
  216. package/modern/managers/index.js +3 -0
  217. package/modern/managers/useDateManager.js +47 -0
  218. package/modern/managers/useDateTimeManager.js +52 -0
  219. package/modern/managers/useTimeManager.js +43 -0
  220. package/modern/models/index.js +1 -0
  221. package/modern/models/manager.js +1 -0
  222. package/node/AdapterDateFns/AdapterDateFns.js +97 -97
  223. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +97 -96
  224. package/node/{AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js → AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js} +94 -101
  225. package/node/{AdapterDateFnsJalaliV3 → AdapterDateFnsJalaliV2}/index.js +1 -1
  226. package/node/AdapterDateFnsV2/AdapterDateFnsV2.js +291 -0
  227. package/node/{AdapterDateFnsV3 → AdapterDateFnsV2}/index.js +1 -1
  228. package/node/DateCalendar/DateCalendar.js +1 -1
  229. package/node/DateField/useDateField.js +12 -10
  230. package/node/DatePicker/DatePicker.js +1 -1
  231. package/node/DatePicker/DatePickerToolbar.js +10 -25
  232. package/node/DateTimeField/useDateTimeField.js +12 -10
  233. package/node/DateTimePicker/DateTimePicker.js +2 -2
  234. package/node/DateTimePicker/DateTimePickerTabs.js +7 -14
  235. package/node/DateTimePicker/DateTimePickerToolbar.js +43 -49
  236. package/node/DesktopDatePicker/DesktopDatePicker.js +9 -3
  237. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -10
  238. package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -15
  239. package/node/DesktopTimePicker/DesktopTimePicker.js +3 -7
  240. package/node/MobileDatePicker/MobileDatePicker.js +2 -2
  241. package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  242. package/node/MobileTimePicker/MobileTimePicker.js +2 -2
  243. package/node/PickersActionBar/PickersActionBar.js +20 -18
  244. package/node/PickersLayout/PickersLayout.js +1 -15
  245. package/node/PickersLayout/usePickerLayout.js +17 -51
  246. package/node/PickersShortcuts/PickersShortcuts.js +13 -10
  247. package/node/PickersTextField/PickersInputBase/PickersInputBase.js +7 -0
  248. package/node/PickersTextField/PickersTextField.js +1 -1
  249. package/node/TimeField/useTimeField.js +12 -10
  250. package/node/TimePicker/TimePicker.js +2 -2
  251. package/node/TimePicker/TimePickerToolbar.js +23 -35
  252. package/node/hooks/index.js +15 -1
  253. package/node/hooks/useIsValidValue.js +18 -0
  254. package/node/hooks/usePickerActionsContext.js +22 -0
  255. package/node/hooks/usePickerContext.js +1 -1
  256. package/node/index.js +13 -1
  257. package/node/internals/components/PickerProvider.js +18 -7
  258. package/node/internals/components/PickersModalDialog.js +9 -3
  259. package/node/internals/components/PickersPopper.js +11 -6
  260. package/node/internals/components/PickersToolbar.js +1 -1
  261. package/node/internals/hooks/date-helpers-hooks.js +4 -3
  262. package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +10 -12
  263. package/node/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
  264. package/node/internals/hooks/useField/index.js +6 -0
  265. package/node/internals/hooks/useField/useField.js +18 -1
  266. package/node/internals/hooks/useField/useField.utils.js +2 -2
  267. package/node/internals/hooks/useField/useFieldState.js +2 -2
  268. package/node/internals/hooks/useField/useFieldV6TextField.js +2 -2
  269. package/node/internals/hooks/useMobilePicker/useMobilePicker.js +9 -10
  270. package/node/internals/hooks/useOpenState.js +4 -2
  271. package/node/internals/hooks/usePicker/usePicker.js +0 -9
  272. package/node/internals/hooks/usePicker/usePickerProvider.js +8 -5
  273. package/node/internals/hooks/usePicker/usePickerValue.js +82 -217
  274. package/node/internals/hooks/usePicker/usePickerViews.js +22 -15
  275. package/node/internals/hooks/useStaticPicker/useStaticPicker.js +1 -4
  276. package/node/internals/hooks/useUtils.js +1 -1
  277. package/node/internals/index.js +28 -20
  278. package/node/internals/models/index.js +11 -0
  279. package/node/internals/models/manager.js +5 -0
  280. package/node/internals/utils/date-utils.js +1 -1
  281. package/node/internals/utils/valueManagers.js +4 -4
  282. package/node/locales/index.js +11 -0
  283. package/node/locales/nbNO.js +15 -19
  284. package/node/locales/utils/getPickersLocalization.js +1 -1
  285. package/node/locales/zhTW.js +79 -0
  286. package/node/managers/index.js +26 -0
  287. package/node/managers/useDateManager.js +55 -0
  288. package/node/managers/useDateTimeManager.js +60 -0
  289. package/node/managers/useTimeManager.js +51 -0
  290. package/node/models/index.js +11 -0
  291. package/node/models/manager.js +5 -0
  292. package/package.json +3 -3
  293. package/themeAugmentation/props.d.ts +2 -3
  294. package/validation/extractValidationProps.d.ts +1 -1
  295. package/AdapterDateFnsJalaliV3/index.d.ts +0 -1
  296. package/AdapterDateFnsJalaliV3/index.js +0 -1
  297. package/AdapterDateFnsV3/index.d.ts +0 -1
  298. package/AdapterDateFnsV3/index.js +0 -1
  299. package/internals/hooks/defaultizedFieldProps.d.ts +0 -18
  300. package/internals/hooks/defaultizedFieldProps.js +0 -40
  301. package/modern/AdapterDateFnsJalaliV3/index.js +0 -1
  302. package/modern/AdapterDateFnsV3/index.js +0 -1
  303. package/modern/internals/hooks/defaultizedFieldProps.js +0 -40
  304. package/node/AdapterDateFnsV3/AdapterDateFnsV3.js +0 -299
  305. package/node/internals/hooks/defaultizedFieldProps.js +0 -50
@@ -1,53 +1,50 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  /* eslint-disable class-methods-use-this */
3
- // TODO remove when date-fns-jalali-v3 is the default
4
3
  // @ts-nocheck
5
- import { addSeconds } from 'date-fns-jalali/addSeconds';
6
- import { addMinutes } from 'date-fns-jalali/addMinutes';
7
- import { addHours } from 'date-fns-jalali/addHours';
8
- import { addDays } from 'date-fns-jalali/addDays';
9
- import { addWeeks } from 'date-fns-jalali/addWeeks';
10
- import { addMonths } from 'date-fns-jalali/addMonths';
11
- import { addYears } from 'date-fns-jalali/addYears';
12
- import { endOfDay } from 'date-fns-jalali/endOfDay';
13
- import { endOfWeek } from 'date-fns-jalali/endOfWeek';
14
- import { endOfYear } from 'date-fns-jalali/endOfYear';
15
- import { format as dateFnsFormat, longFormatters } from 'date-fns-jalali/format';
16
- import { getHours } from 'date-fns-jalali/getHours';
17
- import { getSeconds } from 'date-fns-jalali/getSeconds';
18
- import { getMilliseconds } from 'date-fns-jalali/getMilliseconds';
19
- import { getWeek } from 'date-fns-jalali/getWeek';
20
- import { getYear } from 'date-fns-jalali/getYear';
21
- import { getMonth } from 'date-fns-jalali/getMonth';
22
- import { getDate } from 'date-fns-jalali/getDate';
23
- import { getDaysInMonth } from 'date-fns-jalali/getDaysInMonth';
24
- import { getMinutes } from 'date-fns-jalali/getMinutes';
25
- import { isAfter } from 'date-fns-jalali/isAfter';
26
- import { isBefore } from 'date-fns-jalali/isBefore';
27
- import { isEqual } from 'date-fns-jalali/isEqual';
28
- import { isSameDay } from 'date-fns-jalali/isSameDay';
29
- import { isSameYear } from 'date-fns-jalali/isSameYear';
30
- import { isSameMonth } from 'date-fns-jalali/isSameMonth';
31
- import { isSameHour } from 'date-fns-jalali/isSameHour';
32
- import { isValid } from 'date-fns-jalali/isValid';
33
- import { parse as dateFnsParse } from 'date-fns-jalali/parse';
34
- import { setDate } from 'date-fns-jalali/setDate';
35
- import { setHours } from 'date-fns-jalali/setHours';
36
- import { setMinutes } from 'date-fns-jalali/setMinutes';
37
- import { setMonth } from 'date-fns-jalali/setMonth';
38
- import { setSeconds } from 'date-fns-jalali/setSeconds';
39
- import { setMilliseconds } from 'date-fns-jalali/setMilliseconds';
40
- import { setYear } from 'date-fns-jalali/setYear';
41
- import { startOfDay } from 'date-fns-jalali/startOfDay';
42
- import { startOfMonth } from 'date-fns-jalali/startOfMonth';
43
- import { endOfMonth } from 'date-fns-jalali/endOfMonth';
44
- import { startOfWeek } from 'date-fns-jalali/startOfWeek';
45
- import { startOfYear } from 'date-fns-jalali/startOfYear';
46
- import { isWithinInterval } from 'date-fns-jalali/isWithinInterval';
47
- import { faIR as defaultLocale } from 'date-fns-jalali/locale/fa-IR';
48
- // date-fns-jalali v2 does not export types
49
- // @ts-ignore TODO remove when date-fns-jalali-v3 is the default
50
-
4
+ import addSeconds from 'date-fns-jalali/addSeconds';
5
+ import addMinutes from 'date-fns-jalali/addMinutes';
6
+ import addHours from 'date-fns-jalali/addHours';
7
+ import addDays from 'date-fns-jalali/addDays';
8
+ import addWeeks from 'date-fns-jalali/addWeeks';
9
+ import addMonths from 'date-fns-jalali/addMonths';
10
+ import addYears from 'date-fns-jalali/addYears';
11
+ import endOfDay from 'date-fns-jalali/endOfDay';
12
+ import endOfWeek from 'date-fns-jalali/endOfWeek';
13
+ import endOfYear from 'date-fns-jalali/endOfYear';
14
+ import dateFnsFormat from 'date-fns-jalali/format';
15
+ import getHours from 'date-fns-jalali/getHours';
16
+ import getSeconds from 'date-fns-jalali/getSeconds';
17
+ import getMilliseconds from 'date-fns-jalali/getMilliseconds';
18
+ import getWeek from 'date-fns-jalali/getWeek';
19
+ import getYear from 'date-fns-jalali/getYear';
20
+ import getMonth from 'date-fns-jalali/getMonth';
21
+ import getDate from 'date-fns-jalali/getDate';
22
+ import getDaysInMonth from 'date-fns-jalali/getDaysInMonth';
23
+ import getMinutes from 'date-fns-jalali/getMinutes';
24
+ import isAfter from 'date-fns-jalali/isAfter';
25
+ import isBefore from 'date-fns-jalali/isBefore';
26
+ import isEqual from 'date-fns-jalali/isEqual';
27
+ import isSameDay from 'date-fns-jalali/isSameDay';
28
+ import isSameYear from 'date-fns-jalali/isSameYear';
29
+ import isSameMonth from 'date-fns-jalali/isSameMonth';
30
+ import isSameHour from 'date-fns-jalali/isSameHour';
31
+ import isValid from 'date-fns-jalali/isValid';
32
+ import dateFnsParse from 'date-fns-jalali/parse';
33
+ import setDate from 'date-fns-jalali/setDate';
34
+ import setHours from 'date-fns-jalali/setHours';
35
+ import setMinutes from 'date-fns-jalali/setMinutes';
36
+ import setMonth from 'date-fns-jalali/setMonth';
37
+ import setSeconds from 'date-fns-jalali/setSeconds';
38
+ import setMilliseconds from 'date-fns-jalali/setMilliseconds';
39
+ import setYear from 'date-fns-jalali/setYear';
40
+ import startOfDay from 'date-fns-jalali/startOfDay';
41
+ import startOfMonth from 'date-fns-jalali/startOfMonth';
42
+ import endOfMonth from 'date-fns-jalali/endOfMonth';
43
+ import startOfWeek from 'date-fns-jalali/startOfWeek';
44
+ import startOfYear from 'date-fns-jalali/startOfYear';
45
+ import isWithinInterval from 'date-fns-jalali/isWithinInterval';
46
+ import defaultLocale from 'date-fns-jalali/locale/fa-IR';
47
+ import longFormatters from 'date-fns-jalali/_lib/format/longFormatters';
51
48
  import { AdapterDateFnsBase } from "../AdapterDateFnsBase/index.js";
52
49
  const defaultFormats = {
53
50
  year: 'yyyy',
@@ -119,10 +116,7 @@ export class AdapterDateFnsJalali extends AdapterDateFnsBase {
119
116
  /* istanbul ignore next */
120
117
  if (process.env.NODE_ENV !== 'production') {
121
118
  if (typeof addDays !== 'function') {
122
- throw new Error([`MUI: The \`date-fns-jalali\` package v2.x is not compatible with this adapter.`, 'Please, install v3.x of the package or use the `AdapterDateFnsJalali` instead.'].join('\n'));
123
- }
124
- if (!longFormatters) {
125
- throw new Error('MUI: The minimum supported `date-fns-jalali` package version compatible with this adapter is `3.2.x`.');
119
+ throw new Error(['MUI: This adapter is only compatible with `date-fns-jalali` v2.x package versions.', 'Please, install v2.x of the package or use the `AdapterDateFnsJalali` instead.'].join('\n'));
126
120
  }
127
121
  }
128
122
  super({
@@ -133,7 +127,6 @@ export class AdapterDateFnsJalali extends AdapterDateFnsBase {
133
127
  longFormatters,
134
128
  lib: 'date-fns-jalali'
135
129
  });
136
- // TODO: explicit return types can be removed once there is only one date-fns version supported
137
130
  this.parse = (value, format) => {
138
131
  if (value === '') {
139
132
  return null;
@@ -0,0 +1 @@
1
+ export { AdapterDateFnsJalali } from "./AdapterDateFnsJalaliV2.js";
@@ -1,53 +1,49 @@
1
1
  /* eslint-disable class-methods-use-this */
2
- // TODO remove when date-fns-v3 is the default
3
2
  // @ts-nocheck
4
- import { addDays } from 'date-fns/addDays';
5
- import { addSeconds } from 'date-fns/addSeconds';
6
- import { addMinutes } from 'date-fns/addMinutes';
7
- import { addHours } from 'date-fns/addHours';
8
- import { addWeeks } from 'date-fns/addWeeks';
9
- import { addMonths } from 'date-fns/addMonths';
10
- import { addYears } from 'date-fns/addYears';
11
- import { endOfDay } from 'date-fns/endOfDay';
12
- import { endOfWeek } from 'date-fns/endOfWeek';
13
- import { endOfYear } from 'date-fns/endOfYear';
14
- // @ts-ignore TODO remove when date-fns-v3 is the default
15
- import { format as dateFnsFormat, longFormatters } from 'date-fns/format';
16
- import { getDate } from 'date-fns/getDate';
17
- import { getDaysInMonth } from 'date-fns/getDaysInMonth';
18
- import { getHours } from 'date-fns/getHours';
19
- import { getMinutes } from 'date-fns/getMinutes';
20
- import { getMonth } from 'date-fns/getMonth';
21
- import { getSeconds } from 'date-fns/getSeconds';
22
- import { getMilliseconds } from 'date-fns/getMilliseconds';
23
- import { getWeek } from 'date-fns/getWeek';
24
- import { getYear } from 'date-fns/getYear';
25
- import { isAfter } from 'date-fns/isAfter';
26
- import { isBefore } from 'date-fns/isBefore';
27
- import { isEqual } from 'date-fns/isEqual';
28
- import { isSameDay } from 'date-fns/isSameDay';
29
- import { isSameYear } from 'date-fns/isSameYear';
30
- import { isSameMonth } from 'date-fns/isSameMonth';
31
- import { isSameHour } from 'date-fns/isSameHour';
32
- import { isValid } from 'date-fns/isValid';
33
- import { parse as dateFnsParse } from 'date-fns/parse';
34
- import { setDate } from 'date-fns/setDate';
35
- import { setHours } from 'date-fns/setHours';
36
- import { setMinutes } from 'date-fns/setMinutes';
37
- import { setMonth } from 'date-fns/setMonth';
38
- import { setSeconds } from 'date-fns/setSeconds';
39
- import { setMilliseconds } from 'date-fns/setMilliseconds';
40
- import { setYear } from 'date-fns/setYear';
41
- import { startOfDay } from 'date-fns/startOfDay';
42
- import { startOfMonth } from 'date-fns/startOfMonth';
43
- import { endOfMonth } from 'date-fns/endOfMonth';
44
- import { startOfWeek } from 'date-fns/startOfWeek';
45
- import { startOfYear } from 'date-fns/startOfYear';
46
- import { isWithinInterval } from 'date-fns/isWithinInterval';
47
- import { enUS } from 'date-fns/locale/en-US';
48
- // date-fns v2 does not export types
49
- // @ts-ignore TODO remove when date-fns-v3 is the default
50
-
3
+ import addDays from 'date-fns/addDays';
4
+ import addSeconds from 'date-fns/addSeconds';
5
+ import addMinutes from 'date-fns/addMinutes';
6
+ import addHours from 'date-fns/addHours';
7
+ import addWeeks from 'date-fns/addWeeks';
8
+ import addMonths from 'date-fns/addMonths';
9
+ import addYears from 'date-fns/addYears';
10
+ import endOfDay from 'date-fns/endOfDay';
11
+ import endOfWeek from 'date-fns/endOfWeek';
12
+ import endOfYear from 'date-fns/endOfYear';
13
+ import dateFnsFormat from 'date-fns/format';
14
+ import getDate from 'date-fns/getDate';
15
+ import getDaysInMonth from 'date-fns/getDaysInMonth';
16
+ import getHours from 'date-fns/getHours';
17
+ import getMinutes from 'date-fns/getMinutes';
18
+ import getMonth from 'date-fns/getMonth';
19
+ import getSeconds from 'date-fns/getSeconds';
20
+ import getMilliseconds from 'date-fns/getMilliseconds';
21
+ import getWeek from 'date-fns/getWeek';
22
+ import getYear from 'date-fns/getYear';
23
+ import isAfter from 'date-fns/isAfter';
24
+ import isBefore from 'date-fns/isBefore';
25
+ import isEqual from 'date-fns/isEqual';
26
+ import isSameDay from 'date-fns/isSameDay';
27
+ import isSameYear from 'date-fns/isSameYear';
28
+ import isSameMonth from 'date-fns/isSameMonth';
29
+ import isSameHour from 'date-fns/isSameHour';
30
+ import isValid from 'date-fns/isValid';
31
+ import dateFnsParse from 'date-fns/parse';
32
+ import setDate from 'date-fns/setDate';
33
+ import setHours from 'date-fns/setHours';
34
+ import setMinutes from 'date-fns/setMinutes';
35
+ import setMonth from 'date-fns/setMonth';
36
+ import setSeconds from 'date-fns/setSeconds';
37
+ import setMilliseconds from 'date-fns/setMilliseconds';
38
+ import setYear from 'date-fns/setYear';
39
+ import startOfDay from 'date-fns/startOfDay';
40
+ import startOfMonth from 'date-fns/startOfMonth';
41
+ import endOfMonth from 'date-fns/endOfMonth';
42
+ import startOfWeek from 'date-fns/startOfWeek';
43
+ import startOfYear from 'date-fns/startOfYear';
44
+ import isWithinInterval from 'date-fns/isWithinInterval';
45
+ import defaultLocale from 'date-fns/locale/en-US';
46
+ import longFormatters from 'date-fns/_lib/format/longFormatters';
51
47
  import { AdapterDateFnsBase } from "../AdapterDateFnsBase/index.js";
52
48
  /**
53
49
  * Based on `@date-io/date-fns`
@@ -82,18 +78,14 @@ export class AdapterDateFns extends AdapterDateFnsBase {
82
78
  /* istanbul ignore next */
83
79
  if (process.env.NODE_ENV !== 'production') {
84
80
  if (typeof addDays !== 'function') {
85
- throw new Error([`MUI: The \`date-fns\` package v2.x is not compatible with this adapter.`, 'Please, install v3.x or v4.x of the package or use the `AdapterDateFns` instead.'].join('\n'));
86
- }
87
- if (!longFormatters) {
88
- throw new Error('MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.');
81
+ throw new Error(['MUI: This adapter is only compatible with `date-fns` v2.x package versions.', 'Please, install v2.x of the package or use the `AdapterDateFns` instead.'].join('\n'));
89
82
  }
90
83
  }
91
84
  super({
92
- locale: locale ?? enUS,
85
+ locale: locale ?? defaultLocale,
93
86
  formats,
94
87
  longFormatters
95
88
  });
96
- // TODO: explicit return types can be removed once there is only one date-fns version supported
97
89
  this.parse = (value, format) => {
98
90
  if (value === '') {
99
91
  return null;
@@ -0,0 +1 @@
1
+ export { AdapterDateFns } from "./AdapterDateFnsV2.js";
@@ -260,7 +260,7 @@ export const DateCalendar = /*#__PURE__*/React.forwardRef(function DateCalendar(
260
260
  return handleValueChange(day, 'finish', view);
261
261
  });
262
262
  React.useEffect(() => {
263
- if (value != null && utils.isValid(value)) {
263
+ if (utils.isValid(value)) {
264
264
  changeMonth(value);
265
265
  }
266
266
  }, [value]); // eslint-disable-line
@@ -1,22 +1,24 @@
1
1
  'use client';
2
2
 
3
- import { singleItemFieldValueManager, singleItemValueManager } from "../internals/utils/valueManagers.js";
4
- import { useField } from "../internals/hooks/useField/index.js";
5
- import { validateDate } from "../validation/index.js";
3
+ import { useField, useFieldInternalPropsWithDefaults } from "../internals/hooks/useField/index.js";
6
4
  import { useSplitFieldProps } from "../hooks/index.js";
7
- import { useDefaultizedDateField } from "../internals/hooks/defaultizedFieldProps.js";
8
- export const useDateField = inProps => {
9
- const props = useDefaultizedDateField(inProps);
5
+ import { useDateManager } from "../managers/index.js";
6
+ export const useDateField = props => {
7
+ const manager = useDateManager(props);
10
8
  const {
11
9
  forwardedProps,
12
10
  internalProps
13
11
  } = useSplitFieldProps(props, 'date');
12
+ const internalPropsWithDefaults = useFieldInternalPropsWithDefaults({
13
+ manager,
14
+ internalProps
15
+ });
14
16
  return useField({
15
17
  forwardedProps,
16
- internalProps,
17
- valueManager: singleItemValueManager,
18
- fieldValueManager: singleItemFieldValueManager,
19
- validator: validateDate,
20
- valueType: 'date'
18
+ internalProps: internalPropsWithDefaults,
19
+ valueManager: manager.internal_valueManager,
20
+ fieldValueManager: manager.internal_fieldValueManager,
21
+ validator: manager.validator,
22
+ valueType: manager.valueType
21
23
  });
22
24
  };
@@ -59,7 +59,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
59
59
  autoFocus: PropTypes.bool,
60
60
  className: PropTypes.string,
61
61
  /**
62
- * If `true`, the popover or modal will close after submitting the full date.
62
+ * If `true`, the Picker will close after submitting the full date.
63
63
  * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
64
64
  */
65
65
  closeOnSelect: PropTypes.bool,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceholder", "views", "className", "classes", "onViewChange", "view"];
5
+ const _excluded = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
8
8
  import PropTypes from 'prop-types';
@@ -15,6 +15,7 @@ import { useUtils } from "../internals/hooks/useUtils.js";
15
15
  import { getDatePickerToolbarUtilityClass } from "./datePickerToolbarClasses.js";
16
16
  import { resolveDateFormat } from "../internals/utils/date-utils.js";
17
17
  import { useToolbarOwnerState } from "../internals/hooks/useToolbarOwnerState.js";
18
+ import { usePickerContext } from "../hooks/index.js";
18
19
  import { jsx as _jsx } from "react/jsx-runtime";
19
20
  const useUtilityClasses = classes => {
20
21
  const slots = {
@@ -58,21 +59,23 @@ export const DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePick
58
59
  name: 'MuiDatePickerToolbar'
59
60
  });
60
61
  const {
61
- value,
62
- isLandscape,
63
62
  toolbarFormat,
64
63
  toolbarPlaceholder = '––',
65
- views,
66
64
  className,
67
65
  classes: classesProp
68
66
  } = props,
69
67
  other = _objectWithoutPropertiesLoose(props, _excluded);
70
68
  const utils = useUtils();
69
+ const {
70
+ value,
71
+ views,
72
+ orientation
73
+ } = usePickerContext();
71
74
  const translations = usePickerTranslations();
72
75
  const ownerState = useToolbarOwnerState();
73
76
  const classes = useUtilityClasses(classesProp);
74
77
  const dateText = React.useMemo(() => {
75
- if (!value) {
78
+ if (!utils.isValid(value)) {
76
79
  return toolbarPlaceholder;
77
80
  }
78
81
  const formatFromViews = resolveDateFormat(utils, {
@@ -84,12 +87,11 @@ export const DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePick
84
87
  return /*#__PURE__*/_jsx(DatePickerToolbarRoot, _extends({
85
88
  ref: ref,
86
89
  toolbarTitle: translations.datePickerToolbarTitle,
87
- isLandscape: isLandscape,
88
90
  className: clsx(classes.root, className)
89
91
  }, other, {
90
92
  children: /*#__PURE__*/_jsx(DatePickerToolbarTitle, {
91
93
  variant: "h4",
92
- align: isLandscape ? 'left' : 'center',
94
+ align: orientation === 'landscape' ? 'left' : 'center',
93
95
  ownerState: ownerState,
94
96
  className: classes.title,
95
97
  children: dateText
@@ -111,14 +113,6 @@ process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
111
113
  * @default `true` for Desktop, `false` for Mobile.
112
114
  */
113
115
  hidden: PropTypes.bool,
114
- isLandscape: PropTypes.bool.isRequired,
115
- onChange: PropTypes.func.isRequired,
116
- /**
117
- * Callback called when a toolbar is clicked
118
- * @template TView
119
- * @param {TView} view The view to open
120
- */
121
- onViewChange: PropTypes.func.isRequired,
122
116
  /**
123
117
  * The system prop that allows defining system overrides as well as additional CSS styles.
124
118
  */
@@ -132,14 +126,5 @@ process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
132
126
  * Toolbar value placeholder—it is displayed when the value is empty.
133
127
  * @default "––"
134
128
  */
135
- toolbarPlaceholder: PropTypes.node,
136
- value: PropTypes.object,
137
- /**
138
- * Currently visible picker view.
139
- */
140
- view: PropTypes.oneOf(['day', 'month', 'year']).isRequired,
141
- /**
142
- * Available views.
143
- */
144
- views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired).isRequired
129
+ toolbarPlaceholder: PropTypes.node
145
130
  } : void 0;
@@ -1,22 +1,24 @@
1
1
  'use client';
2
2
 
3
- import { singleItemFieldValueManager, singleItemValueManager } from "../internals/utils/valueManagers.js";
4
- import { useField } from "../internals/hooks/useField/index.js";
5
- import { validateDateTime } from "../validation/index.js";
3
+ import { useField, useFieldInternalPropsWithDefaults } from "../internals/hooks/useField/index.js";
6
4
  import { useSplitFieldProps } from "../hooks/index.js";
7
- import { useDefaultizedDateTimeField } from "../internals/hooks/defaultizedFieldProps.js";
8
- export const useDateTimeField = inProps => {
9
- const props = useDefaultizedDateTimeField(inProps);
5
+ import { useDateTimeManager } from "../managers/index.js";
6
+ export const useDateTimeField = props => {
7
+ const manager = useDateTimeManager(props);
10
8
  const {
11
9
  forwardedProps,
12
10
  internalProps
13
11
  } = useSplitFieldProps(props, 'date-time');
12
+ const internalPropsWithDefaults = useFieldInternalPropsWithDefaults({
13
+ manager,
14
+ internalProps
15
+ });
14
16
  return useField({
15
17
  forwardedProps,
16
- internalProps,
17
- valueManager: singleItemValueManager,
18
- fieldValueManager: singleItemFieldValueManager,
19
- validator: validateDateTime,
20
- valueType: 'date-time'
18
+ internalProps: internalPropsWithDefaults,
19
+ valueManager: manager.internal_valueManager,
20
+ fieldValueManager: manager.internal_fieldValueManager,
21
+ validator: manager.validator,
22
+ valueType: manager.valueType
21
23
  });
22
24
  };
@@ -69,8 +69,8 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
69
69
  autoFocus: PropTypes.bool,
70
70
  className: PropTypes.string,
71
71
  /**
72
- * If `true`, the popover or modal will close after submitting the full date.
73
- * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
72
+ * If `true`, the Picker will close after submitting the full date.
73
+ * @default false
74
74
  */
75
75
  closeOnSelect: PropTypes.bool,
76
76
  /**
@@ -12,6 +12,7 @@ import { usePickerTranslations } from "../hooks/usePickerTranslations.js";
12
12
  import { getDateTimePickerTabsUtilityClass } from "./dateTimePickerTabsClasses.js";
13
13
  import { isDatePickerView } from "../internals/utils/date-utils.js";
14
14
  import { usePickerPrivateContext } from "../internals/hooks/usePickerPrivateContext.js";
15
+ import { usePickerContext } from "../hooks/index.js";
15
16
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
17
  const viewToTab = view => {
17
18
  if (isDatePickerView(view)) {
@@ -65,9 +66,7 @@ const DateTimePickerTabs = function DateTimePickerTabs(inProps) {
65
66
  });
66
67
  const {
67
68
  dateIcon = /*#__PURE__*/_jsx(DateRangeIcon, {}),
68
- onViewChange,
69
69
  timeIcon = /*#__PURE__*/_jsx(TimeIcon, {}),
70
- view,
71
70
  hidden = typeof window === 'undefined' || window.innerHeight < 667,
72
71
  className,
73
72
  classes: classesProp,
@@ -77,9 +76,13 @@ const DateTimePickerTabs = function DateTimePickerTabs(inProps) {
77
76
  const {
78
77
  ownerState
79
78
  } = usePickerPrivateContext();
79
+ const {
80
+ view,
81
+ setView
82
+ } = usePickerContext();
80
83
  const classes = useUtilityClasses(classesProp);
81
84
  const handleChange = (event, value) => {
82
- onViewChange(tabToView(value));
85
+ setView(tabToView(value));
83
86
  };
84
87
  if (hidden) {
85
88
  return null;
@@ -126,12 +129,6 @@ process.env.NODE_ENV !== "production" ? DateTimePickerTabs.propTypes = {
126
129
  * @default `window.innerHeight < 667` for `DesktopDateTimePicker` and `MobileDateTimePicker`, `displayStaticWrapperAs === 'desktop'` for `StaticDateTimePicker`
127
130
  */
128
131
  hidden: PropTypes.bool,
129
- /**
130
- * Callback called when a tab is clicked.
131
- * @template TView
132
- * @param {TView} view The view to open
133
- */
134
- onViewChange: PropTypes.func.isRequired,
135
132
  /**
136
133
  * The system prop that allows defining system overrides as well as additional CSS styles.
137
134
  */
@@ -140,10 +137,6 @@ process.env.NODE_ENV !== "production" ? DateTimePickerTabs.propTypes = {
140
137
  * Time tab icon.
141
138
  * @default Time
142
139
  */
143
- timeIcon: PropTypes.node,
144
- /**
145
- * Currently visible picker view.
146
- */
147
- view: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']).isRequired
140
+ timeIcon: PropTypes.node
148
141
  } : void 0;
149
142
  export { DateTimePickerTabs };