@mui/x-date-pickers 8.0.0-beta.3 → 8.0.0

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 (767) hide show
  1. package/CHANGELOG.md +282 -96
  2. package/DatePicker/DatePicker.js +1 -1
  3. package/DateTimePicker/DateTimePicker.js +1 -1
  4. package/DesktopDatePicker/DesktopDatePicker.js +2 -7
  5. package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  6. package/DesktopTimePicker/DesktopTimePicker.js +1 -1
  7. package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
  8. package/LocalizationProvider/LocalizationProvider.js +1 -1
  9. package/MobileDatePicker/MobileDatePicker.js +1 -1
  10. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  11. package/MobileTimePicker/MobileTimePicker.js +1 -1
  12. package/PickersLayout/usePickerLayout.js +3 -2
  13. package/PickersSectionList/PickersSectionList.types.d.ts +3 -1
  14. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
  15. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -0
  16. package/PickersTextField/PickersInput/PickersInput.js +1 -0
  17. package/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -0
  18. package/PickersTextField/PickersInputBase/PickersInputBase.js +101 -3
  19. package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +3 -1
  20. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +6 -4
  21. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
  22. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
  23. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -0
  24. package/PickersTextField/PickersTextField.js +6 -3
  25. package/TimePicker/TimePicker.js +1 -1
  26. package/esm/DatePicker/DatePicker.js +1 -1
  27. package/esm/DateTimePicker/DateTimePicker.js +1 -1
  28. package/esm/DesktopDatePicker/DesktopDatePicker.js +2 -7
  29. package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  30. package/esm/DesktopTimePicker/DesktopTimePicker.js +1 -1
  31. package/esm/LocalizationProvider/LocalizationProvider.d.ts +1 -1
  32. package/esm/LocalizationProvider/LocalizationProvider.js +1 -1
  33. package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
  34. package/esm/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  35. package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
  36. package/esm/PickersLayout/usePickerLayout.js +3 -2
  37. package/esm/PickersSectionList/PickersSectionList.types.d.ts +3 -1
  38. package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
  39. package/esm/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -0
  40. package/esm/PickersTextField/PickersInput/PickersInput.js +1 -0
  41. package/esm/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -0
  42. package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +101 -3
  43. package/esm/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +3 -1
  44. package/esm/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +6 -4
  45. package/esm/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
  46. package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
  47. package/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -0
  48. package/esm/PickersTextField/PickersTextField.js +6 -3
  49. package/esm/TimePicker/TimePicker.js +1 -1
  50. package/esm/index.js +1 -1
  51. package/esm/internals/components/PickerFieldUI.d.ts +2 -2
  52. package/esm/internals/components/PickerPopper/PickerPopper.js +6 -0
  53. package/esm/internals/components/PickerProvider.d.ts +9 -0
  54. package/esm/internals/components/PickerProvider.js +3 -1
  55. package/esm/internals/hooks/useField/buildSectionsFromFormat.js +1 -0
  56. package/esm/internals/hooks/useField/useFieldRootProps.js +3 -2
  57. package/esm/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -0
  58. package/esm/internals/hooks/useField/useFieldSectionContainerProps.js +4 -1
  59. package/esm/internals/hooks/useField/useFieldSectionContentProps.d.ts +2 -2
  60. package/esm/internals/hooks/useField/useFieldSectionContentProps.js +4 -1
  61. package/esm/internals/hooks/useField/useFieldV7TextField.js +25 -15
  62. package/esm/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +3 -2
  63. package/esm/internals/hooks/usePicker/usePicker.d.ts +1 -0
  64. package/esm/internals/hooks/usePicker/usePicker.js +21 -13
  65. package/esm/internals/hooks/usePicker/usePicker.types.d.ts +3 -2
  66. package/esm/internals/hooks/useViews.d.ts +8 -2
  67. package/esm/internals/hooks/useViews.js +27 -12
  68. package/esm/internals/utils/createNonRangePickerStepNavigation.js +3 -3
  69. package/esm/internals/utils/createStepNavigation.d.ts +19 -2
  70. package/esm/internals/utils/createStepNavigation.js +16 -6
  71. package/esm/locales/csCZ.js +1 -1
  72. package/esm/locales/skSK.js +3 -3
  73. package/esm/models/fields.d.ts +4 -0
  74. package/index.js +1 -1
  75. package/internals/components/PickerFieldUI.d.ts +2 -2
  76. package/internals/components/PickerPopper/PickerPopper.js +6 -0
  77. package/internals/components/PickerProvider.d.ts +9 -0
  78. package/internals/components/PickerProvider.js +3 -1
  79. package/internals/hooks/useField/buildSectionsFromFormat.js +1 -0
  80. package/internals/hooks/useField/useFieldRootProps.js +3 -2
  81. package/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -0
  82. package/internals/hooks/useField/useFieldSectionContainerProps.js +4 -1
  83. package/internals/hooks/useField/useFieldSectionContentProps.d.ts +2 -2
  84. package/internals/hooks/useField/useFieldSectionContentProps.js +4 -1
  85. package/internals/hooks/useField/useFieldV7TextField.js +25 -15
  86. package/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +3 -2
  87. package/internals/hooks/usePicker/usePicker.d.ts +1 -0
  88. package/internals/hooks/usePicker/usePicker.js +21 -13
  89. package/internals/hooks/usePicker/usePicker.types.d.ts +3 -2
  90. package/internals/hooks/useViews.d.ts +8 -2
  91. package/internals/hooks/useViews.js +28 -13
  92. package/internals/utils/createNonRangePickerStepNavigation.js +3 -3
  93. package/internals/utils/createStepNavigation.d.ts +19 -2
  94. package/internals/utils/createStepNavigation.js +17 -6
  95. package/locales/csCZ.js +1 -1
  96. package/locales/skSK.js +3 -3
  97. package/models/fields.d.ts +4 -0
  98. package/package.json +3 -11
  99. package/modern/AdapterDateFns/AdapterDateFns.d.ts +0 -88
  100. package/modern/AdapterDateFns/AdapterDateFns.js +0 -284
  101. package/modern/AdapterDateFns/index.d.ts +0 -1
  102. package/modern/AdapterDateFns/index.js +0 -1
  103. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +0 -64
  104. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +0 -291
  105. package/modern/AdapterDateFnsBase/index.d.ts +0 -1
  106. package/modern/AdapterDateFnsBase/index.js +0 -1
  107. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +0 -89
  108. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -326
  109. package/modern/AdapterDateFnsJalali/index.d.ts +0 -1
  110. package/modern/AdapterDateFnsJalali/index.js +0 -1
  111. package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +0 -89
  112. package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +0 -326
  113. package/modern/AdapterDateFnsJalaliV2/index.d.ts +0 -1
  114. package/modern/AdapterDateFnsJalaliV2/index.js +0 -1
  115. package/modern/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +0 -88
  116. package/modern/AdapterDateFnsV2/AdapterDateFnsV2.js +0 -284
  117. package/modern/AdapterDateFnsV2/index.d.ts +0 -1
  118. package/modern/AdapterDateFnsV2/index.js +0 -1
  119. package/modern/AdapterDayjs/AdapterDayjs.d.ts +0 -129
  120. package/modern/AdapterDayjs/AdapterDayjs.js +0 -557
  121. package/modern/AdapterDayjs/index.d.ts +0 -1
  122. package/modern/AdapterDayjs/index.js +0 -1
  123. package/modern/AdapterLuxon/AdapterLuxon.d.ts +0 -108
  124. package/modern/AdapterLuxon/AdapterLuxon.js +0 -500
  125. package/modern/AdapterLuxon/index.d.ts +0 -1
  126. package/modern/AdapterLuxon/index.js +0 -1
  127. package/modern/AdapterMoment/AdapterMoment.d.ts +0 -114
  128. package/modern/AdapterMoment/AdapterMoment.js +0 -472
  129. package/modern/AdapterMoment/index.d.ts +0 -1
  130. package/modern/AdapterMoment/index.js +0 -1
  131. package/modern/AdapterMomentHijri/AdapterMomentHijri.d.ts +0 -62
  132. package/modern/AdapterMomentHijri/AdapterMomentHijri.js +0 -219
  133. package/modern/AdapterMomentHijri/index.d.ts +0 -1
  134. package/modern/AdapterMomentHijri/index.js +0 -1
  135. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +0 -66
  136. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -221
  137. package/modern/AdapterMomentJalaali/index.d.ts +0 -1
  138. package/modern/AdapterMomentJalaali/index.js +0 -1
  139. package/modern/DateCalendar/DateCalendar.d.ts +0 -18
  140. package/modern/DateCalendar/DateCalendar.js +0 -590
  141. package/modern/DateCalendar/DateCalendar.types.d.ts +0 -87
  142. package/modern/DateCalendar/DateCalendar.types.js +0 -1
  143. package/modern/DateCalendar/DayCalendar.d.ts +0 -85
  144. package/modern/DateCalendar/DayCalendar.js +0 -449
  145. package/modern/DateCalendar/PickersFadeTransitionGroup.d.ts +0 -16
  146. package/modern/DateCalendar/PickersFadeTransitionGroup.js +0 -58
  147. package/modern/DateCalendar/PickersSlideTransition.d.ts +0 -21
  148. package/modern/DateCalendar/PickersSlideTransition.js +0 -142
  149. package/modern/DateCalendar/dateCalendarClasses.d.ts +0 -9
  150. package/modern/DateCalendar/dateCalendarClasses.js +0 -3
  151. package/modern/DateCalendar/dayCalendarClasses.d.ts +0 -23
  152. package/modern/DateCalendar/dayCalendarClasses.js +0 -3
  153. package/modern/DateCalendar/index.d.ts +0 -12
  154. package/modern/DateCalendar/index.js +0 -5
  155. package/modern/DateCalendar/pickersFadeTransitionGroupClasses.d.ts +0 -7
  156. package/modern/DateCalendar/pickersFadeTransitionGroupClasses.js +0 -3
  157. package/modern/DateCalendar/pickersSlideTransitionClasses.d.ts +0 -19
  158. package/modern/DateCalendar/pickersSlideTransitionClasses.js +0 -3
  159. package/modern/DateCalendar/useCalendarState.d.ts +0 -27
  160. package/modern/DateCalendar/useCalendarState.js +0 -156
  161. package/modern/DateCalendar/useIsDateDisabled.d.ts +0 -13
  162. package/modern/DateCalendar/useIsDateDisabled.js +0 -31
  163. package/modern/DateField/DateField.d.ts +0 -17
  164. package/modern/DateField/DateField.js +0 -327
  165. package/modern/DateField/DateField.types.d.ts +0 -22
  166. package/modern/DateField/DateField.types.js +0 -1
  167. package/modern/DateField/index.d.ts +0 -3
  168. package/modern/DateField/index.js +0 -2
  169. package/modern/DateField/useDateField.d.ts +0 -2
  170. package/modern/DateField/useDateField.js +0 -11
  171. package/modern/DatePicker/DatePicker.d.ts +0 -17
  172. package/modern/DatePicker/DatePicker.js +0 -368
  173. package/modern/DatePicker/DatePicker.types.d.ts +0 -38
  174. package/modern/DatePicker/DatePicker.types.js +0 -1
  175. package/modern/DatePicker/DatePickerToolbar.d.ts +0 -25
  176. package/modern/DatePicker/DatePickerToolbar.js +0 -130
  177. package/modern/DatePicker/datePickerToolbarClasses.d.ts +0 -9
  178. package/modern/DatePicker/datePickerToolbarClasses.js +0 -5
  179. package/modern/DatePicker/index.d.ts +0 -6
  180. package/modern/DatePicker/index.js +0 -3
  181. package/modern/DatePicker/shared.d.ts +0 -43
  182. package/modern/DatePicker/shared.js +0 -33
  183. package/modern/DateTimeField/DateTimeField.d.ts +0 -17
  184. package/modern/DateTimeField/DateTimeField.js +0 -367
  185. package/modern/DateTimeField/DateTimeField.types.d.ts +0 -22
  186. package/modern/DateTimeField/DateTimeField.types.js +0 -1
  187. package/modern/DateTimeField/index.d.ts +0 -3
  188. package/modern/DateTimeField/index.js +0 -2
  189. package/modern/DateTimeField/useDateTimeField.d.ts +0 -2
  190. package/modern/DateTimeField/useDateTimeField.js +0 -11
  191. package/modern/DateTimePicker/DateTimePicker.d.ts +0 -17
  192. package/modern/DateTimePicker/DateTimePicker.js +0 -438
  193. package/modern/DateTimePicker/DateTimePicker.types.d.ts +0 -34
  194. package/modern/DateTimePicker/DateTimePicker.types.js +0 -1
  195. package/modern/DateTimePicker/DateTimePickerTabs.d.ts +0 -39
  196. package/modern/DateTimePicker/DateTimePickerTabs.js +0 -142
  197. package/modern/DateTimePicker/DateTimePickerToolbar.d.ts +0 -47
  198. package/modern/DateTimePicker/DateTimePickerToolbar.js +0 -415
  199. package/modern/DateTimePicker/dateTimePickerTabsClasses.d.ts +0 -7
  200. package/modern/DateTimePicker/dateTimePickerTabsClasses.js +0 -5
  201. package/modern/DateTimePicker/dateTimePickerToolbarClasses.d.ts +0 -23
  202. package/modern/DateTimePicker/dateTimePickerToolbarClasses.js +0 -5
  203. package/modern/DateTimePicker/index.d.ts +0 -10
  204. package/modern/DateTimePicker/index.js +0 -5
  205. package/modern/DateTimePicker/shared.d.ts +0 -72
  206. package/modern/DateTimePicker/shared.js +0 -65
  207. package/modern/DayCalendarSkeleton/DayCalendarSkeleton.d.ts +0 -30
  208. package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +0 -100
  209. package/modern/DayCalendarSkeleton/dayCalendarSkeletonClasses.d.ts +0 -11
  210. package/modern/DayCalendarSkeleton/dayCalendarSkeletonClasses.js +0 -3
  211. package/modern/DayCalendarSkeleton/index.d.ts +0 -4
  212. package/modern/DayCalendarSkeleton/index.js +0 -2
  213. package/modern/DesktopDatePicker/DesktopDatePicker.d.ts +0 -17
  214. package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -384
  215. package/modern/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -28
  216. package/modern/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
  217. package/modern/DesktopDatePicker/index.d.ts +0 -2
  218. package/modern/DesktopDatePicker/index.js +0 -1
  219. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -17
  220. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -528
  221. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -29
  222. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
  223. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.ts +0 -11
  224. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +0 -83
  225. package/modern/DesktopDateTimePicker/index.d.ts +0 -3
  226. package/modern/DesktopDateTimePicker/index.js +0 -2
  227. package/modern/DesktopTimePicker/DesktopTimePicker.d.ts +0 -17
  228. package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -353
  229. package/modern/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -26
  230. package/modern/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
  231. package/modern/DesktopTimePicker/index.d.ts +0 -2
  232. package/modern/DesktopTimePicker/index.js +0 -1
  233. package/modern/DigitalClock/DigitalClock.d.ts +0 -18
  234. package/modern/DigitalClock/DigitalClock.js +0 -481
  235. package/modern/DigitalClock/DigitalClock.types.d.ts +0 -54
  236. package/modern/DigitalClock/DigitalClock.types.js +0 -1
  237. package/modern/DigitalClock/digitalClockClasses.d.ts +0 -11
  238. package/modern/DigitalClock/digitalClockClasses.js +0 -6
  239. package/modern/DigitalClock/index.d.ts +0 -4
  240. package/modern/DigitalClock/index.js +0 -2
  241. package/modern/LocalizationProvider/LocalizationProvider.d.ts +0 -55
  242. package/modern/LocalizationProvider/LocalizationProvider.js +0 -143
  243. package/modern/LocalizationProvider/index.d.ts +0 -2
  244. package/modern/LocalizationProvider/index.js +0 -1
  245. package/modern/MobileDatePicker/MobileDatePicker.d.ts +0 -17
  246. package/modern/MobileDatePicker/MobileDatePicker.js +0 -377
  247. package/modern/MobileDatePicker/MobileDatePicker.types.d.ts +0 -22
  248. package/modern/MobileDatePicker/MobileDatePicker.types.js +0 -1
  249. package/modern/MobileDatePicker/index.d.ts +0 -2
  250. package/modern/MobileDatePicker/index.js +0 -1
  251. package/modern/MobileDateTimePicker/MobileDateTimePicker.d.ts +0 -17
  252. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -497
  253. package/modern/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +0 -17
  254. package/modern/MobileDateTimePicker/MobileDateTimePicker.types.js +0 -1
  255. package/modern/MobileDateTimePicker/index.d.ts +0 -2
  256. package/modern/MobileDateTimePicker/index.js +0 -1
  257. package/modern/MobileTimePicker/MobileTimePicker.d.ts +0 -18
  258. package/modern/MobileTimePicker/MobileTimePicker.js +0 -316
  259. package/modern/MobileTimePicker/MobileTimePicker.types.d.ts +0 -19
  260. package/modern/MobileTimePicker/MobileTimePicker.types.js +0 -1
  261. package/modern/MobileTimePicker/index.d.ts +0 -2
  262. package/modern/MobileTimePicker/index.js +0 -1
  263. package/modern/MonthCalendar/MonthCalendar.d.ts +0 -18
  264. package/modern/MonthCalendar/MonthCalendar.js +0 -360
  265. package/modern/MonthCalendar/MonthCalendar.types.d.ts +0 -82
  266. package/modern/MonthCalendar/MonthCalendar.types.js +0 -1
  267. package/modern/MonthCalendar/MonthCalendarButton.d.ts +0 -24
  268. package/modern/MonthCalendar/MonthCalendarButton.js +0 -115
  269. package/modern/MonthCalendar/index.d.ts +0 -4
  270. package/modern/MonthCalendar/index.js +0 -2
  271. package/modern/MonthCalendar/monthCalendarClasses.d.ts +0 -13
  272. package/modern/MonthCalendar/monthCalendarClasses.js +0 -5
  273. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +0 -17
  274. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +0 -513
  275. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +0 -48
  276. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.types.js +0 -1
  277. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +0 -41
  278. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +0 -76
  279. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +0 -26
  280. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +0 -210
  281. package/modern/MultiSectionDigitalClock/index.d.ts +0 -7
  282. package/modern/MultiSectionDigitalClock/index.js +0 -3
  283. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockClasses.d.ts +0 -7
  284. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +0 -6
  285. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.d.ts +0 -9
  286. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +0 -6
  287. package/modern/PickersActionBar/PickersActionBar.d.ts +0 -29
  288. package/modern/PickersActionBar/PickersActionBar.js +0 -117
  289. package/modern/PickersActionBar/index.d.ts +0 -2
  290. package/modern/PickersActionBar/index.js +0 -1
  291. package/modern/PickersCalendarHeader/PickersCalendarHeader.d.ts +0 -18
  292. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +0 -280
  293. package/modern/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +0 -60
  294. package/modern/PickersCalendarHeader/PickersCalendarHeader.types.js +0 -1
  295. package/modern/PickersCalendarHeader/index.d.ts +0 -4
  296. package/modern/PickersCalendarHeader/index.js +0 -2
  297. package/modern/PickersCalendarHeader/pickersCalendarHeaderClasses.d.ts +0 -15
  298. package/modern/PickersCalendarHeader/pickersCalendarHeaderClasses.js +0 -3
  299. package/modern/PickersDay/PickersDay.d.ts +0 -15
  300. package/modern/PickersDay/PickersDay.js +0 -372
  301. package/modern/PickersDay/PickersDay.types.d.ts +0 -114
  302. package/modern/PickersDay/PickersDay.types.js +0 -1
  303. package/modern/PickersDay/index.d.ts +0 -4
  304. package/modern/PickersDay/index.js +0 -2
  305. package/modern/PickersDay/pickersDayClasses.d.ts +0 -19
  306. package/modern/PickersDay/pickersDayClasses.js +0 -5
  307. package/modern/PickersDay/usePickerDayOwnerState.d.ts +0 -14
  308. package/modern/PickersDay/usePickerDayOwnerState.js +0 -32
  309. package/modern/PickersLayout/PickersLayout.d.ts +0 -23
  310. package/modern/PickersLayout/PickersLayout.js +0 -168
  311. package/modern/PickersLayout/PickersLayout.types.d.ts +0 -100
  312. package/modern/PickersLayout/PickersLayout.types.js +0 -1
  313. package/modern/PickersLayout/index.d.ts +0 -5
  314. package/modern/PickersLayout/index.js +0 -3
  315. package/modern/PickersLayout/pickersLayoutClasses.d.ts +0 -19
  316. package/modern/PickersLayout/pickersLayoutClasses.js +0 -6
  317. package/modern/PickersLayout/usePickerLayout.d.ts +0 -7
  318. package/modern/PickersLayout/usePickerLayout.js +0 -104
  319. package/modern/PickersSectionList/PickersSectionList.d.ts +0 -20
  320. package/modern/PickersSectionList/PickersSectionList.js +0 -252
  321. package/modern/PickersSectionList/PickersSectionList.types.d.ts +0 -59
  322. package/modern/PickersSectionList/PickersSectionList.types.js +0 -1
  323. package/modern/PickersSectionList/index.d.ts +0 -4
  324. package/modern/PickersSectionList/index.js +0 -2
  325. package/modern/PickersSectionList/pickersSectionListClasses.d.ts +0 -11
  326. package/modern/PickersSectionList/pickersSectionListClasses.js +0 -6
  327. package/modern/PickersShortcuts/PickersShortcuts.d.ts +0 -47
  328. package/modern/PickersShortcuts/PickersShortcuts.js +0 -124
  329. package/modern/PickersShortcuts/index.d.ts +0 -2
  330. package/modern/PickersShortcuts/index.js +0 -1
  331. package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +0 -18
  332. package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +0 -305
  333. package/modern/PickersTextField/PickersFilledInput/index.d.ts +0 -4
  334. package/modern/PickersTextField/PickersFilledInput/index.js +0 -2
  335. package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +0 -23
  336. package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +0 -8
  337. package/modern/PickersTextField/PickersInput/PickersInput.d.ts +0 -10
  338. package/modern/PickersTextField/PickersInput/PickersInput.js +0 -220
  339. package/modern/PickersTextField/PickersInput/index.d.ts +0 -4
  340. package/modern/PickersTextField/PickersInput/index.js +0 -2
  341. package/modern/PickersTextField/PickersInput/pickersInputClasses.d.ts +0 -23
  342. package/modern/PickersTextField/PickersInput/pickersInputClasses.js +0 -8
  343. package/modern/PickersTextField/PickersInputBase/PickersInputBase.d.ts +0 -14
  344. package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +0 -375
  345. package/modern/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +0 -59
  346. package/modern/PickersTextField/PickersInputBase/PickersInputBase.types.js +0 -1
  347. package/modern/PickersTextField/PickersInputBase/index.d.ts +0 -4
  348. package/modern/PickersTextField/PickersInputBase/index.js +0 -2
  349. package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +0 -31
  350. package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +0 -6
  351. package/modern/PickersTextField/PickersOutlinedInput/Outline.d.ts +0 -11
  352. package/modern/PickersTextField/PickersOutlinedInput/Outline.js +0 -137
  353. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +0 -10
  354. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +0 -198
  355. package/modern/PickersTextField/PickersOutlinedInput/index.d.ts +0 -4
  356. package/modern/PickersTextField/PickersOutlinedInput/index.js +0 -2
  357. package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +0 -22
  358. package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +0 -8
  359. package/modern/PickersTextField/PickersTextField.d.ts +0 -3
  360. package/modern/PickersTextField/PickersTextField.js +0 -280
  361. package/modern/PickersTextField/PickersTextField.types.d.ts +0 -106
  362. package/modern/PickersTextField/PickersTextField.types.js +0 -1
  363. package/modern/PickersTextField/index.d.ts +0 -8
  364. package/modern/PickersTextField/index.js +0 -6
  365. package/modern/PickersTextField/pickersTextFieldClasses.d.ts +0 -15
  366. package/modern/PickersTextField/pickersTextFieldClasses.js +0 -6
  367. package/modern/PickersTextField/usePickerTextFieldOwnerState.d.ts +0 -4
  368. package/modern/PickersTextField/usePickerTextFieldOwnerState.js +0 -11
  369. package/modern/StaticDatePicker/StaticDatePicker.d.ts +0 -17
  370. package/modern/StaticDatePicker/StaticDatePicker.js +0 -310
  371. package/modern/StaticDatePicker/StaticDatePicker.types.d.ts +0 -22
  372. package/modern/StaticDatePicker/StaticDatePicker.types.js +0 -1
  373. package/modern/StaticDatePicker/index.d.ts +0 -2
  374. package/modern/StaticDatePicker/index.js +0 -1
  375. package/modern/StaticDateTimePicker/StaticDateTimePicker.d.ts +0 -17
  376. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -429
  377. package/modern/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +0 -22
  378. package/modern/StaticDateTimePicker/StaticDateTimePicker.types.js +0 -1
  379. package/modern/StaticDateTimePicker/index.d.ts +0 -2
  380. package/modern/StaticDateTimePicker/index.js +0 -1
  381. package/modern/StaticTimePicker/StaticTimePicker.d.ts +0 -17
  382. package/modern/StaticTimePicker/StaticTimePicker.js +0 -248
  383. package/modern/StaticTimePicker/StaticTimePicker.types.d.ts +0 -18
  384. package/modern/StaticTimePicker/StaticTimePicker.types.js +0 -1
  385. package/modern/StaticTimePicker/index.d.ts +0 -2
  386. package/modern/StaticTimePicker/index.js +0 -1
  387. package/modern/TimeClock/Clock.d.ts +0 -39
  388. package/modern/TimeClock/Clock.js +0 -354
  389. package/modern/TimeClock/ClockNumber.d.ts +0 -19
  390. package/modern/TimeClock/ClockNumber.js +0 -102
  391. package/modern/TimeClock/ClockNumbers.d.ts +0 -37
  392. package/modern/TimeClock/ClockNumbers.js +0 -71
  393. package/modern/TimeClock/ClockPointer.d.ts +0 -19
  394. package/modern/TimeClock/ClockPointer.js +0 -119
  395. package/modern/TimeClock/TimeClock.d.ts +0 -17
  396. package/modern/TimeClock/TimeClock.js +0 -491
  397. package/modern/TimeClock/TimeClock.types.d.ts +0 -36
  398. package/modern/TimeClock/TimeClock.types.js +0 -1
  399. package/modern/TimeClock/clockClasses.d.ts +0 -23
  400. package/modern/TimeClock/clockClasses.js +0 -5
  401. package/modern/TimeClock/clockNumberClasses.d.ts +0 -11
  402. package/modern/TimeClock/clockNumberClasses.js +0 -5
  403. package/modern/TimeClock/clockPointerClasses.d.ts +0 -9
  404. package/modern/TimeClock/clockPointerClasses.js +0 -5
  405. package/modern/TimeClock/index.d.ts +0 -13
  406. package/modern/TimeClock/index.js +0 -5
  407. package/modern/TimeClock/shared.d.ts +0 -4
  408. package/modern/TimeClock/shared.js +0 -52
  409. package/modern/TimeClock/timeClockClasses.d.ts +0 -9
  410. package/modern/TimeClock/timeClockClasses.js +0 -5
  411. package/modern/TimeField/TimeField.d.ts +0 -17
  412. package/modern/TimeField/TimeField.js +0 -328
  413. package/modern/TimeField/TimeField.types.d.ts +0 -22
  414. package/modern/TimeField/TimeField.types.js +0 -1
  415. package/modern/TimeField/index.d.ts +0 -3
  416. package/modern/TimeField/index.js +0 -2
  417. package/modern/TimeField/useTimeField.d.ts +0 -2
  418. package/modern/TimeField/useTimeField.js +0 -11
  419. package/modern/TimePicker/TimePicker.d.ts +0 -17
  420. package/modern/TimePicker/TimePicker.js +0 -326
  421. package/modern/TimePicker/TimePicker.types.d.ts +0 -28
  422. package/modern/TimePicker/TimePicker.types.js +0 -1
  423. package/modern/TimePicker/TimePickerToolbar.d.ts +0 -28
  424. package/modern/TimePicker/TimePickerToolbar.js +0 -244
  425. package/modern/TimePicker/index.d.ts +0 -6
  426. package/modern/TimePicker/index.js +0 -3
  427. package/modern/TimePicker/shared.d.ts +0 -49
  428. package/modern/TimePicker/shared.js +0 -43
  429. package/modern/TimePicker/timePickerToolbarClasses.d.ts +0 -21
  430. package/modern/TimePicker/timePickerToolbarClasses.js +0 -5
  431. package/modern/YearCalendar/YearCalendar.d.ts +0 -16
  432. package/modern/YearCalendar/YearCalendar.js +0 -410
  433. package/modern/YearCalendar/YearCalendar.types.d.ts +0 -88
  434. package/modern/YearCalendar/YearCalendar.types.js +0 -1
  435. package/modern/YearCalendar/YearCalendarButton.d.ts +0 -23
  436. package/modern/YearCalendar/YearCalendarButton.js +0 -115
  437. package/modern/YearCalendar/index.d.ts +0 -4
  438. package/modern/YearCalendar/index.js +0 -2
  439. package/modern/YearCalendar/yearCalendarClasses.d.ts +0 -13
  440. package/modern/YearCalendar/yearCalendarClasses.js +0 -5
  441. package/modern/dateViewRenderers/dateViewRenderers.d.ts +0 -50
  442. package/modern/dateViewRenderers/dateViewRenderers.js +0 -83
  443. package/modern/dateViewRenderers/index.d.ts +0 -2
  444. package/modern/dateViewRenderers/index.js +0 -1
  445. package/modern/hooks/index.d.ts +0 -6
  446. package/modern/hooks/index.js +0 -6
  447. package/modern/hooks/useIsValidValue.d.ts +0 -7
  448. package/modern/hooks/useIsValidValue.js +0 -11
  449. package/modern/hooks/useParsedFormat.d.ts +0 -16
  450. package/modern/hooks/useParsedFormat.js +0 -41
  451. package/modern/hooks/usePickerActionsContext.d.ts +0 -7
  452. package/modern/hooks/usePickerActionsContext.js +0 -15
  453. package/modern/hooks/usePickerContext.d.ts +0 -8
  454. package/modern/hooks/usePickerContext.js +0 -15
  455. package/modern/hooks/usePickerTranslations.d.ts +0 -1
  456. package/modern/hooks/usePickerTranslations.js +0 -4
  457. package/modern/hooks/useSplitFieldProps.d.ts +0 -24
  458. package/modern/hooks/useSplitFieldProps.js +0 -48
  459. package/modern/icons/index.d.ts +0 -48
  460. package/modern/icons/index.js +0 -67
  461. package/modern/index.d.ts +0 -39
  462. package/modern/index.js +0 -61
  463. package/modern/internals/components/PickerFieldUI.d.ts +0 -143
  464. package/modern/internals/components/PickerFieldUI.js +0 -321
  465. package/modern/internals/components/PickerPopper/PickerPopper.d.ts +0 -68
  466. package/modern/internals/components/PickerPopper/PickerPopper.js +0 -330
  467. package/modern/internals/components/PickerPopper/index.d.ts +0 -4
  468. package/modern/internals/components/PickerPopper/index.js +0 -2
  469. package/modern/internals/components/PickerPopper/pickerPopperClasses.d.ts +0 -9
  470. package/modern/internals/components/PickerPopper/pickerPopperClasses.js +0 -6
  471. package/modern/internals/components/PickerProvider.d.ts +0 -284
  472. package/modern/internals/components/PickerProvider.js +0 -64
  473. package/modern/internals/components/PickerViewRoot/PickerViewRoot.d.ts +0 -1
  474. package/modern/internals/components/PickerViewRoot/PickerViewRoot.js +0 -10
  475. package/modern/internals/components/PickerViewRoot/index.d.ts +0 -1
  476. package/modern/internals/components/PickerViewRoot/index.js +0 -1
  477. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.d.ts +0 -3
  478. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +0 -176
  479. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +0 -74
  480. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.js +0 -1
  481. package/modern/internals/components/PickersArrowSwitcher/index.d.ts +0 -4
  482. package/modern/internals/components/PickersArrowSwitcher/index.js +0 -2
  483. package/modern/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.d.ts +0 -19
  484. package/modern/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +0 -5
  485. package/modern/internals/components/PickersModalDialog.d.ts +0 -48
  486. package/modern/internals/components/PickersModalDialog.js +0 -51
  487. package/modern/internals/components/PickersToolbar.d.ts +0 -14
  488. package/modern/internals/components/PickersToolbar.js +0 -116
  489. package/modern/internals/components/PickersToolbarButton.d.ts +0 -15
  490. package/modern/internals/components/PickersToolbarButton.js +0 -61
  491. package/modern/internals/components/PickersToolbarText.d.ts +0 -11
  492. package/modern/internals/components/PickersToolbarText.js +0 -52
  493. package/modern/internals/components/pickersToolbarButtonClasses.d.ts +0 -7
  494. package/modern/internals/components/pickersToolbarButtonClasses.js +0 -5
  495. package/modern/internals/components/pickersToolbarClasses.d.ts +0 -11
  496. package/modern/internals/components/pickersToolbarClasses.js +0 -5
  497. package/modern/internals/components/pickersToolbarTextClasses.d.ts +0 -7
  498. package/modern/internals/components/pickersToolbarTextClasses.js +0 -5
  499. package/modern/internals/constants/dimensions.d.ts +0 -7
  500. package/modern/internals/constants/dimensions.js +0 -7
  501. package/modern/internals/demo/DemoContainer.d.ts +0 -27
  502. package/modern/internals/demo/DemoContainer.js +0 -178
  503. package/modern/internals/demo/index.d.ts +0 -1
  504. package/modern/internals/demo/index.js +0 -1
  505. package/modern/internals/hooks/date-helpers-hooks.d.ts +0 -24
  506. package/modern/internals/hooks/date-helpers-hooks.js +0 -40
  507. package/modern/internals/hooks/useClockReferenceDate.d.ts +0 -15
  508. package/modern/internals/hooks/useClockReferenceDate.js +0 -25
  509. package/modern/internals/hooks/useControlledValue.d.ts +0 -38
  510. package/modern/internals/hooks/useControlledValue.js +0 -56
  511. package/modern/internals/hooks/useDesktopPicker/index.d.ts +0 -2
  512. package/modern/internals/hooks/useDesktopPicker/index.js +0 -1
  513. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +0 -16
  514. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +0 -97
  515. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +0 -48
  516. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.js +0 -1
  517. package/modern/internals/hooks/useField/buildSectionsFromFormat.d.ts +0 -15
  518. package/modern/internals/hooks/useField/buildSectionsFromFormat.js +0 -254
  519. package/modern/internals/hooks/useField/index.d.ts +0 -4
  520. package/modern/internals/hooks/useField/index.js +0 -3
  521. package/modern/internals/hooks/useField/syncSelectionToDOM.d.ts +0 -9
  522. package/modern/internals/hooks/useField/syncSelectionToDOM.js +0 -50
  523. package/modern/internals/hooks/useField/useField.d.ts +0 -3
  524. package/modern/internals/hooks/useField/useField.js +0 -9
  525. package/modern/internals/hooks/useField/useField.types.d.ts +0 -329
  526. package/modern/internals/hooks/useField/useField.types.js +0 -1
  527. package/modern/internals/hooks/useField/useField.utils.d.ts +0 -36
  528. package/modern/internals/hooks/useField/useField.utils.js +0 -496
  529. package/modern/internals/hooks/useField/useFieldCharacterEditing.d.ts +0 -29
  530. package/modern/internals/hooks/useField/useFieldCharacterEditing.js +0 -240
  531. package/modern/internals/hooks/useField/useFieldHiddenInputProps.d.ts +0 -20
  532. package/modern/internals/hooks/useField/useFieldHiddenInputProps.js +0 -31
  533. package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +0 -17
  534. package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.js +0 -53
  535. package/modern/internals/hooks/useField/useFieldRootHandleKeyDown.d.ts +0 -16
  536. package/modern/internals/hooks/useField/useFieldRootHandleKeyDown.js +0 -205
  537. package/modern/internals/hooks/useField/useFieldRootProps.d.ts +0 -32
  538. package/modern/internals/hooks/useField/useFieldRootProps.js +0 -150
  539. package/modern/internals/hooks/useField/useFieldSectionContainerProps.d.ts +0 -15
  540. package/modern/internals/hooks/useField/useFieldSectionContainerProps.js +0 -29
  541. package/modern/internals/hooks/useField/useFieldSectionContentProps.d.ts +0 -23
  542. package/modern/internals/hooks/useField/useFieldSectionContentProps.js +0 -226
  543. package/modern/internals/hooks/useField/useFieldState.d.ts +0 -44
  544. package/modern/internals/hooks/useField/useFieldState.js +0 -392
  545. package/modern/internals/hooks/useField/useFieldV6TextField.d.ts +0 -26
  546. package/modern/internals/hooks/useField/useFieldV6TextField.js +0 -409
  547. package/modern/internals/hooks/useField/useFieldV7TextField.d.ts +0 -3
  548. package/modern/internals/hooks/useField/useFieldV7TextField.js +0 -243
  549. package/modern/internals/hooks/useFieldOwnerState.d.ts +0 -6
  550. package/modern/internals/hooks/useFieldOwnerState.js +0 -16
  551. package/modern/internals/hooks/useMobilePicker/index.d.ts +0 -2
  552. package/modern/internals/hooks/useMobilePicker/index.js +0 -1
  553. package/modern/internals/hooks/useMobilePicker/useMobilePicker.d.ts +0 -16
  554. package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +0 -97
  555. package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +0 -42
  556. package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.js +0 -1
  557. package/modern/internals/hooks/useNullableFieldPrivateContext.d.ts +0 -9
  558. package/modern/internals/hooks/useNullableFieldPrivateContext.js +0 -5
  559. package/modern/internals/hooks/useNullablePickerContext.d.ts +0 -5
  560. package/modern/internals/hooks/useNullablePickerContext.js +0 -10
  561. package/modern/internals/hooks/usePicker/hooks/useOrientation.d.ts +0 -2
  562. package/modern/internals/hooks/usePicker/hooks/useOrientation.js +0 -34
  563. package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +0 -21
  564. package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +0 -191
  565. package/modern/internals/hooks/usePicker/index.d.ts +0 -2
  566. package/modern/internals/hooks/usePicker/index.js +0 -1
  567. package/modern/internals/hooks/usePicker/usePicker.d.ts +0 -15
  568. package/modern/internals/hooks/usePicker/usePicker.js +0 -306
  569. package/modern/internals/hooks/usePicker/usePicker.types.d.ts +0 -186
  570. package/modern/internals/hooks/usePicker/usePicker.types.js +0 -1
  571. package/modern/internals/hooks/usePickerPrivateContext.d.ts +0 -4
  572. package/modern/internals/hooks/usePickerPrivateContext.js +0 -9
  573. package/modern/internals/hooks/useReduceAnimations.d.ts +0 -2
  574. package/modern/internals/hooks/useReduceAnimations.js +0 -17
  575. package/modern/internals/hooks/useStaticPicker/index.d.ts +0 -2
  576. package/modern/internals/hooks/useStaticPicker/index.js +0 -1
  577. package/modern/internals/hooks/useStaticPicker/useStaticPicker.d.ts +0 -16
  578. package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +0 -69
  579. package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +0 -46
  580. package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.js +0 -1
  581. package/modern/internals/hooks/useToolbarOwnerState.d.ts +0 -10
  582. package/modern/internals/hooks/useToolbarOwnerState.js +0 -13
  583. package/modern/internals/hooks/useUtils.d.ts +0 -13
  584. package/modern/internals/hooks/useUtils.js +0 -27
  585. package/modern/internals/hooks/useViews.d.ts +0 -79
  586. package/modern/internals/hooks/useViews.js +0 -113
  587. package/modern/internals/index.d.ts +0 -72
  588. package/modern/internals/index.js +0 -40
  589. package/modern/internals/models/common.d.ts +0 -5
  590. package/modern/internals/models/common.js +0 -1
  591. package/modern/internals/models/fields.d.ts +0 -12
  592. package/modern/internals/models/fields.js +0 -1
  593. package/modern/internals/models/formProps.d.ts +0 -14
  594. package/modern/internals/models/formProps.js +0 -1
  595. package/modern/internals/models/helpers.d.ts +0 -6
  596. package/modern/internals/models/helpers.js +0 -1
  597. package/modern/internals/models/index.d.ts +0 -5
  598. package/modern/internals/models/index.js +0 -5
  599. package/modern/internals/models/manager.d.ts +0 -119
  600. package/modern/internals/models/manager.js +0 -1
  601. package/modern/internals/models/pickers.d.ts +0 -1
  602. package/modern/internals/models/pickers.js +0 -1
  603. package/modern/internals/models/props/basePickerProps.d.ts +0 -27
  604. package/modern/internals/models/props/basePickerProps.js +0 -1
  605. package/modern/internals/models/props/tabs.d.ts +0 -9
  606. package/modern/internals/models/props/tabs.js +0 -1
  607. package/modern/internals/models/props/time.d.ts +0 -77
  608. package/modern/internals/models/props/time.js +0 -1
  609. package/modern/internals/models/props/toolbar.d.ts +0 -27
  610. package/modern/internals/models/props/toolbar.js +0 -1
  611. package/modern/internals/models/validation.d.ts +0 -116
  612. package/modern/internals/models/validation.js +0 -1
  613. package/modern/internals/models/value.d.ts +0 -12
  614. package/modern/internals/models/value.js +0 -1
  615. package/modern/internals/utils/createNonRangePickerStepNavigation.d.ts +0 -13
  616. package/modern/internals/utils/createNonRangePickerStepNavigation.js +0 -24
  617. package/modern/internals/utils/createStepNavigation.d.ts +0 -32
  618. package/modern/internals/utils/createStepNavigation.js +0 -34
  619. package/modern/internals/utils/date-time-utils.d.ts +0 -26
  620. package/modern/internals/utils/date-time-utils.js +0 -68
  621. package/modern/internals/utils/date-utils.d.ts +0 -40
  622. package/modern/internals/utils/date-utils.js +0 -124
  623. package/modern/internals/utils/getDefaultReferenceDate.d.ts +0 -31
  624. package/modern/internals/utils/getDefaultReferenceDate.js +0 -59
  625. package/modern/internals/utils/time-utils.d.ts +0 -21
  626. package/modern/internals/utils/time-utils.js +0 -59
  627. package/modern/internals/utils/utils.d.ts +0 -16
  628. package/modern/internals/utils/utils.js +0 -56
  629. package/modern/internals/utils/valueManagers.d.ts +0 -7
  630. package/modern/internals/utils/valueManagers.js +0 -44
  631. package/modern/internals/utils/views.d.ts +0 -16
  632. package/modern/internals/utils/views.js +0 -28
  633. package/modern/locales/beBY.d.ts +0 -83
  634. package/modern/locales/beBY.js +0 -82
  635. package/modern/locales/bgBG.d.ts +0 -83
  636. package/modern/locales/bgBG.js +0 -77
  637. package/modern/locales/bnBD.d.ts +0 -83
  638. package/modern/locales/bnBD.js +0 -77
  639. package/modern/locales/caES.d.ts +0 -83
  640. package/modern/locales/caES.js +0 -77
  641. package/modern/locales/csCZ.d.ts +0 -83
  642. package/modern/locales/csCZ.js +0 -78
  643. package/modern/locales/daDK.d.ts +0 -83
  644. package/modern/locales/daDK.js +0 -78
  645. package/modern/locales/deDE.d.ts +0 -83
  646. package/modern/locales/deDE.js +0 -77
  647. package/modern/locales/elGR.d.ts +0 -83
  648. package/modern/locales/elGR.js +0 -80
  649. package/modern/locales/enUS.d.ts +0 -84
  650. package/modern/locales/enUS.js +0 -74
  651. package/modern/locales/esES.d.ts +0 -83
  652. package/modern/locales/esES.js +0 -77
  653. package/modern/locales/eu.d.ts +0 -83
  654. package/modern/locales/eu.js +0 -80
  655. package/modern/locales/faIR.d.ts +0 -83
  656. package/modern/locales/faIR.js +0 -77
  657. package/modern/locales/fiFI.d.ts +0 -83
  658. package/modern/locales/fiFI.js +0 -77
  659. package/modern/locales/frFR.d.ts +0 -83
  660. package/modern/locales/frFR.js +0 -77
  661. package/modern/locales/heIL.d.ts +0 -83
  662. package/modern/locales/heIL.js +0 -77
  663. package/modern/locales/hrHR.d.ts +0 -83
  664. package/modern/locales/hrHR.js +0 -94
  665. package/modern/locales/huHU.d.ts +0 -83
  666. package/modern/locales/huHU.js +0 -78
  667. package/modern/locales/index.d.ts +0 -41
  668. package/modern/locales/index.js +0 -41
  669. package/modern/locales/isIS.d.ts +0 -83
  670. package/modern/locales/isIS.js +0 -81
  671. package/modern/locales/itIT.d.ts +0 -83
  672. package/modern/locales/itIT.js +0 -77
  673. package/modern/locales/jaJP.d.ts +0 -83
  674. package/modern/locales/jaJP.js +0 -78
  675. package/modern/locales/koKR.d.ts +0 -83
  676. package/modern/locales/koKR.js +0 -78
  677. package/modern/locales/kzKZ.d.ts +0 -83
  678. package/modern/locales/kzKZ.js +0 -82
  679. package/modern/locales/mk.d.ts +0 -82
  680. package/modern/locales/mk.js +0 -77
  681. package/modern/locales/nbNO.d.ts +0 -83
  682. package/modern/locales/nbNO.js +0 -77
  683. package/modern/locales/nlNL.d.ts +0 -83
  684. package/modern/locales/nlNL.js +0 -77
  685. package/modern/locales/nnNO.d.ts +0 -83
  686. package/modern/locales/nnNO.js +0 -77
  687. package/modern/locales/plPL.d.ts +0 -83
  688. package/modern/locales/plPL.js +0 -79
  689. package/modern/locales/ptBR.d.ts +0 -83
  690. package/modern/locales/ptBR.js +0 -79
  691. package/modern/locales/ptPT.d.ts +0 -83
  692. package/modern/locales/ptPT.js +0 -77
  693. package/modern/locales/roRO.d.ts +0 -83
  694. package/modern/locales/roRO.js +0 -78
  695. package/modern/locales/ruRU.d.ts +0 -83
  696. package/modern/locales/ruRU.js +0 -78
  697. package/modern/locales/skSK.d.ts +0 -83
  698. package/modern/locales/skSK.js +0 -82
  699. package/modern/locales/svSE.d.ts +0 -83
  700. package/modern/locales/svSE.js +0 -77
  701. package/modern/locales/trTR.d.ts +0 -83
  702. package/modern/locales/trTR.js +0 -81
  703. package/modern/locales/ukUA.d.ts +0 -83
  704. package/modern/locales/ukUA.js +0 -77
  705. package/modern/locales/urPK.d.ts +0 -83
  706. package/modern/locales/urPK.js +0 -82
  707. package/modern/locales/utils/getPickersLocalization.d.ts +0 -83
  708. package/modern/locales/utils/getPickersLocalization.js +0 -12
  709. package/modern/locales/utils/pickersLocaleTextApi.d.ts +0 -118
  710. package/modern/locales/utils/pickersLocaleTextApi.js +0 -1
  711. package/modern/locales/viVN.d.ts +0 -83
  712. package/modern/locales/viVN.js +0 -77
  713. package/modern/locales/zhCN.d.ts +0 -83
  714. package/modern/locales/zhCN.js +0 -76
  715. package/modern/locales/zhHK.d.ts +0 -83
  716. package/modern/locales/zhHK.js +0 -76
  717. package/modern/locales/zhTW.d.ts +0 -83
  718. package/modern/locales/zhTW.js +0 -76
  719. package/modern/managers/index.d.ts +0 -6
  720. package/modern/managers/index.js +0 -3
  721. package/modern/managers/useDateManager.d.ts +0 -14
  722. package/modern/managers/useDateManager.js +0 -48
  723. package/modern/managers/useDateTimeManager.d.ts +0 -15
  724. package/modern/managers/useDateTimeManager.js +0 -53
  725. package/modern/managers/useTimeManager.d.ts +0 -15
  726. package/modern/managers/useTimeManager.js +0 -48
  727. package/modern/models/adapters.d.ts +0 -542
  728. package/modern/models/adapters.js +0 -1
  729. package/modern/models/common.d.ts +0 -6
  730. package/modern/models/common.js +0 -1
  731. package/modern/models/fields.d.ts +0 -139
  732. package/modern/models/fields.js +0 -1
  733. package/modern/models/index.d.ts +0 -9
  734. package/modern/models/index.js +0 -11
  735. package/modern/models/manager.d.ts +0 -78
  736. package/modern/models/manager.js +0 -1
  737. package/modern/models/pickers.d.ts +0 -58
  738. package/modern/models/pickers.js +0 -1
  739. package/modern/models/timezone.d.ts +0 -11
  740. package/modern/models/timezone.js +0 -1
  741. package/modern/models/validation.d.ts +0 -22
  742. package/modern/models/validation.js +0 -1
  743. package/modern/models/views.d.ts +0 -3
  744. package/modern/models/views.js +0 -1
  745. package/modern/package.json +0 -1
  746. package/modern/themeAugmentation/components.d.ts +0 -190
  747. package/modern/themeAugmentation/index.d.ts +0 -3
  748. package/modern/themeAugmentation/index.js +0 -0
  749. package/modern/themeAugmentation/overrides.d.ts +0 -64
  750. package/modern/themeAugmentation/props.d.ts +0 -102
  751. package/modern/timeViewRenderers/index.d.ts +0 -2
  752. package/modern/timeViewRenderers/index.js +0 -1
  753. package/modern/timeViewRenderers/timeViewRenderers.d.ts +0 -103
  754. package/modern/timeViewRenderers/timeViewRenderers.js +0 -183
  755. package/modern/validation/extractValidationProps.d.ts +0 -11
  756. package/modern/validation/extractValidationProps.js +0 -14
  757. package/modern/validation/index.d.ts +0 -9
  758. package/modern/validation/index.js +0 -5
  759. package/modern/validation/useValidation.d.ts +0 -68
  760. package/modern/validation/useValidation.js +0 -53
  761. package/modern/validation/validateDate.d.ts +0 -18
  762. package/modern/validation/validateDate.js +0 -55
  763. package/modern/validation/validateDateTime.d.ts +0 -19
  764. package/modern/validation/validateDateTime.js +0 -39
  765. package/modern/validation/validateTime.d.ts +0 -18
  766. package/modern/validation/validateTime.js +0 -59
  767. package/tsconfig.build.tsbuildinfo +0 -1
@@ -1,542 +0,0 @@
1
- import { FieldSectionContentType, FieldSectionType } from "./fields.js";
2
- import { PickersTimezone } from "./timezone.js";
3
- import { PickerValidDate } from "./pickers.js";
4
- export interface AdapterFormats {
5
- /**
6
- * The 4-digit year.
7
- * @example "2019"
8
- */
9
- year: string;
10
- /**
11
- * The full month name.
12
- * @example "January"
13
- */
14
- month: string;
15
- /**
16
- * The abbreviated month name.
17
- * @example "Jan"
18
- */
19
- monthShort: string;
20
- /**
21
- * The day of the month.
22
- * @example "1"
23
- */
24
- dayOfMonth: string;
25
- /**
26
- * The day of the month with letters.
27
- * @example "2nd"
28
- */
29
- dayOfMonthFull: string;
30
- /**
31
- * The name of the day of the week.
32
- * @example "Wednesday"
33
- */
34
- weekday: string;
35
- /**
36
- * The abbreviated name of the day of the week.
37
- * @example "Wed"
38
- * */
39
- weekdayShort: string;
40
- /**
41
- * The hours, 24-hour clock.
42
- * @example "23"
43
- */
44
- hours24h: string;
45
- /**
46
- * The hours, 12-hour clock.
47
- * @example "11"
48
- */
49
- hours12h: string;
50
- /**
51
- * The meridiem.
52
- * @example "AM"
53
- */
54
- meridiem: string;
55
- /**
56
- * The minutes.
57
- * @example "44"
58
- */
59
- minutes: string;
60
- /**
61
- * The seconds.
62
- * @example "00"
63
- */
64
- seconds: string;
65
- /** The localized full date.
66
- * Used for the aria-label of the opening button of the `DatePicker`.
67
- * @example "Jan 1, 2019"
68
- */
69
- fullDate: string;
70
- /**
71
- * A keyboard input friendly date format.
72
- * Used in the date fields.
73
- * @example "02/13/2020"
74
- */
75
- keyboardDate: string;
76
- /**
77
- * The abbreviated month name and the day of the month.
78
- * Used in the `DateTimePicker` and `DateRangePicker` toolbars.
79
- * @example "Jan 1"
80
- */
81
- shortDate: string;
82
- /**
83
- * The month name and the day of the month.
84
- * Used in the `DatePicker` toolbar for non-english locales.
85
- * @example "1 January"
86
- */
87
- normalDate: string;
88
- /**
89
- * The month name, the day of the week and the day of the month.
90
- * Used in the `DatePicker` toolbar for english locales.
91
- * @example "Sun, Jan 1"
92
- */
93
- normalDateWithWeekday: string;
94
- /**
95
- * The hours with the meridiem and minutes.
96
- * @example "11:44 PM"
97
- */
98
- fullTime12h: string;
99
- /**
100
- * The hours without the meridiem and minutes.
101
- * @example "23:44"
102
- */
103
- fullTime24h: string;
104
- /**
105
- * A keyboard input friendly time format for 12-hour clock.
106
- * Used in the date-time fields.
107
- * @example "02/13/2020 11:44 PM"
108
- */
109
- keyboardDateTime12h: string;
110
- /**
111
- * A keyboard input friendly time format for 24-hour clock.
112
- * Used in the date-time fields.
113
- * @example "02/13/2020 23:44"
114
- */
115
- keyboardDateTime24h: string;
116
- }
117
- export type FieldFormatTokenMap = {
118
- [formatToken: string]: FieldSectionType | {
119
- sectionType: FieldSectionType;
120
- contentType: FieldSectionContentType;
121
- maxLength?: number;
122
- };
123
- };
124
- type PropertyIfNotNever<PName extends string, PType> = [PType] extends [never] ? {} : { [P in PName]?: PType };
125
- export type AdapterOptions<TLocale, TInstance> = {
126
- formats?: Partial<AdapterFormats>;
127
- locale?: TLocale;
128
- } & PropertyIfNotNever<'instance', TInstance>;
129
- export type DateBuilderReturnType<T extends string | null | undefined> = [T] extends [null] ? null : PickerValidDate;
130
- export interface MuiPickersAdapter<TLocale = any> {
131
- /**
132
- * A boolean confirming that the adapter used is an MUI adapter.
133
- */
134
- isMUIAdapter: boolean;
135
- isTimezoneCompatible: boolean;
136
- formats: AdapterFormats;
137
- locale?: TLocale;
138
- /**
139
- * Name of the library that is used right now
140
- */
141
- lib: string;
142
- /**
143
- * The characters used to escape a string inside a format.
144
- */
145
- escapedCharacters: {
146
- start: string;
147
- end: string;
148
- };
149
- /**
150
- * A map containing all the format that the field components can understand.
151
- */
152
- formatTokenMap: FieldFormatTokenMap;
153
- /**
154
- * Create a date in the date library format.
155
- * If no `value` parameter is provided, creates a date with the current timestamp.
156
- * If a `value` parameter is provided, pass it to the date library to try to parse it.
157
- * @param {string | null | undefined} value The optional value to parse.
158
- * @param {PickersTimezone} timezone The timezone of the date. Default: "default"
159
- * @returns {PickerValidDate | null} The parsed date.
160
- */
161
- date<T extends string | null | undefined>(value?: T, timezone?: PickersTimezone): DateBuilderReturnType<T>;
162
- /**
163
- * Creates an invalid date in the date library format.
164
- * @deprecated This method will be removed in the next major release (v9.0.0).
165
- * @returns {PickerValidDate} The invalid date.
166
- */
167
- getInvalidDate(): PickerValidDate;
168
- /**
169
- * Extracts the timezone from a date.
170
- * @param {PickerValidDate | null} value The date from which we want to get the timezone.
171
- * @returns {PickerValidDate} The timezone of the date.
172
- */
173
- getTimezone(value: PickerValidDate | null): PickersTimezone;
174
- /**
175
- * Convert a date to another timezone.
176
- * @param {PickerValidDate} value The date to convert.
177
- * @param {PickersTimezone} timezone The timezone to convert the date to.
178
- * @returns {PickerValidDate} The converted date.
179
- */
180
- setTimezone(value: PickerValidDate, timezone: PickersTimezone): PickerValidDate;
181
- /**
182
- * Convert a date in the library format into a JavaScript `Date` object.
183
- * @param {PickerValidDate} value The value to convert.
184
- * @returns {PickerValidDate} the JavaScript date.
185
- */
186
- toJsDate(value: PickerValidDate): Date;
187
- /**
188
- * Parse a string date in a specific format.
189
- * @param {string} value The string date to parse.
190
- * @param {string} format The format in which the string date is.
191
- * @returns {PickerValidDate | null} The parsed date.
192
- */
193
- parse(value: string, format: string): PickerValidDate | null;
194
- /**
195
- * Get the code of the locale currently used by the adapter.
196
- * @returns {string} The code of the locale.
197
- */
198
- getCurrentLocaleCode(): string;
199
- /**
200
- * Check if the current locale is using 12 hours cycle (i.e: time with meridiem).
201
- * @returns {boolean} `true` if the current locale is using 12 hours cycle.
202
- */
203
- is12HourCycleInCurrentLocale(): boolean;
204
- /**
205
- * Create a format with no meta-token (for example: `LLL` or `PP`).
206
- * @param {string} format The format to expand.
207
- * @returns {string} The expanded format.
208
- */
209
- expandFormat(format: string): string;
210
- /**
211
- * Check if the date is valid.
212
- * @param {PickerValidDate | null} value The value to test.
213
- * @returns {boolean} `true` if the value is a valid date according to the date library.
214
- */
215
- isValid(value: PickerValidDate | null): value is PickerValidDate;
216
- /**
217
- * Format a date using an adapter format string (see the `AdapterFormats` interface)
218
- * @param {PickerValidDate} value The date to format.
219
- * @param {keyof AdapterFormats} formatKey The formatKey to use.
220
- * @returns {string} The stringify date.
221
- */
222
- format(value: PickerValidDate, formatKey: keyof AdapterFormats): string;
223
- /**
224
- * Format a date using a format of the date library.
225
- * @param {PickerValidDate} value The date to format.
226
- * @param {string} formatString The format to use.
227
- * @returns {string} The stringify date.
228
- */
229
- formatByString(value: PickerValidDate, formatString: string): string;
230
- /**
231
- * Format a number to be rendered in the clock.
232
- * Is being used in hijri and jalali adapters.
233
- * @param {string} numberToFormat The number to format.
234
- * @returns {string} The formatted number.
235
- */
236
- formatNumber(numberToFormat: string): string;
237
- /**
238
- * Check if the two dates are equal (which means they represent the same timestamp).
239
- * @param {PickerValidDate | null} value The reference date.
240
- * @param {PickerValidDate | null} comparing The date to compare with the reference date.
241
- * @returns {boolean} `true` if the two dates are equal.
242
- */
243
- isEqual(value: PickerValidDate | null, comparing: PickerValidDate | null): boolean;
244
- /**
245
- * Check if the two dates are in the same year (using the timezone of the reference date).
246
- * @param {PickerValidDate} value The reference date.
247
- * @param {PickerValidDate} comparing The date to compare with the reference date.
248
- * @returns {boolean} `true` if the two dates are in the same year.
249
- */
250
- isSameYear(value: PickerValidDate, comparing: PickerValidDate): boolean;
251
- /**
252
- * Check if the two dates are in the same month (using the timezone of the reference date).
253
- * @param {PickerValidDate} value The reference date.
254
- * @param {PickerValidDate} comparing The date to compare with the reference date.
255
- * @returns {boolean} `true` if the two dates are in the same month.
256
- */
257
- isSameMonth(value: PickerValidDate, comparing: PickerValidDate): boolean;
258
- /**
259
- * Check if the two dates are in the same day (using the timezone of the reference date).
260
- * @param {PickerValidDate} value The reference date.
261
- * @param {PickerValidDate} comparing The date to compare with the reference date.
262
- * @returns {boolean} `true` if the two dates are in the same day.
263
- */
264
- isSameDay(value: PickerValidDate, comparing: PickerValidDate): boolean;
265
- /**
266
- * Check if the two dates are at the same hour (using the timezone of the reference date).
267
- * @param {PickerValidDate} value The reference date.
268
- * @param {PickerValidDate} comparing The date to compare with the reference date.
269
- * @returns {boolean} `true` if the two dates are in the same hour.
270
- */
271
- isSameHour(value: PickerValidDate, comparing: PickerValidDate): boolean;
272
- /**
273
- * Check if the reference date is after the second date.
274
- * @param {PickerValidDate} value The reference date.
275
- * @param {PickerValidDate} comparing The date to compare with the reference date.
276
- * @returns {boolean} `true` if the reference date is after the second date.
277
- */
278
- isAfter(value: PickerValidDate, comparing: PickerValidDate): boolean;
279
- /**
280
- * Check if the year of the reference date is after the year of the second date (using the timezone of the reference date).
281
- * @param {PickerValidDate} value The reference date.
282
- * @param {PickerValidDate} comparing The date to compare with the reference date.
283
- * @returns {boolean} `true` if the year of the reference date is after the year of the second date.
284
- */
285
- isAfterYear(value: PickerValidDate, comparing: PickerValidDate): boolean;
286
- /**
287
- * Check if the day of the reference date is after the day of the second date (using the timezone of the reference date).
288
- * @param {PickerValidDate} value The reference date.
289
- * @param {PickerValidDate} comparing The date to compare with the reference date.
290
- * @returns {boolean} `true` if the day of the reference date is after the day of the second date.
291
- */
292
- isAfterDay(value: PickerValidDate, comparing: PickerValidDate): boolean;
293
- /**
294
- * Check if the reference date is before the second date.
295
- * @param {PickerValidDate} value The reference date.
296
- * @param {PickerValidDate} comparing The date to compare with the reference date.
297
- * @returns {boolean} `true` if the reference date is before the second date.
298
- */
299
- isBefore(value: PickerValidDate, comparing: PickerValidDate): boolean;
300
- /**
301
- * Check if the year of the reference date is before the year of the second date (using the timezone of the reference date).
302
- * @param {PickerValidDate} value The reference date.
303
- * @param {PickerValidDate} comparing The date to compare with the reference date.
304
- * @returns {boolean} `true` if the year of the reference date is before the year of the second date.
305
- */
306
- isBeforeYear(value: PickerValidDate, comparing: PickerValidDate): boolean;
307
- /**
308
- * Check if the day of the reference date is before the day of the second date (using the timezone of the reference date).
309
- * @param {PickerValidDate} value The reference date.
310
- * @param {PickerValidDate} comparing The date to compare with the reference date.
311
- * @returns {boolean} `true` if the day of the reference date is before the day of the second date.
312
- */
313
- isBeforeDay(value: PickerValidDate, comparing: PickerValidDate): boolean;
314
- /**
315
- * Check if the value is within the provided range.
316
- * @param {PickerValidDate} value The value to test.
317
- * @param {[PickerValidDate, PickerValidDate]} range The range in which the value should be.
318
- * @returns {boolean} `true` if the value is within the provided range.
319
- */
320
- isWithinRange(value: PickerValidDate, range: [PickerValidDate, PickerValidDate]): boolean;
321
- /**
322
- * Return the start of the year for the given date.
323
- * @param {PickerValidDate} value The original date.
324
- * @returns {PickerValidDate} The start of the year of the given date.
325
- */
326
- startOfYear(value: PickerValidDate): PickerValidDate;
327
- /**
328
- * Return the start of the month for the given date.
329
- * @param {PickerValidDate} value The original date.
330
- * @returns {PickerValidDate} The start of the month of the given date.
331
- */
332
- startOfMonth(value: PickerValidDate): PickerValidDate;
333
- /**
334
- * Return the start of the week for the given date.
335
- * @param {PickerValidDate} value The original date.
336
- * @returns {PickerValidDate} The start of the week of the given date.
337
- */
338
- startOfWeek(value: PickerValidDate): PickerValidDate;
339
- /**
340
- * Return the start of the day for the given date.
341
- * @param {PickerValidDate} value The original date.
342
- * @returns {PickerValidDate} The start of the day of the given date.
343
- */
344
- startOfDay(value: PickerValidDate): PickerValidDate;
345
- /**
346
- * Return the end of the year for the given date.
347
- * @param {PickerValidDate} value The original date.
348
- * @returns {PickerValidDate} The end of the year of the given date.
349
- */
350
- endOfYear(value: PickerValidDate): PickerValidDate;
351
- /**
352
- * Return the end of the month for the given date.
353
- * @param {PickerValidDate} value The original date.
354
- * @returns {PickerValidDate} The end of the month of the given date.
355
- */
356
- endOfMonth(value: PickerValidDate): PickerValidDate;
357
- /**
358
- * Return the end of the week for the given date.
359
- * @param {PickerValidDate} value The original date.
360
- * @returns {PickerValidDate} The end of the week of the given date.
361
- */
362
- endOfWeek(value: PickerValidDate): PickerValidDate;
363
- /**
364
- * Return the end of the day for the given date.
365
- * @param {PickerValidDate} value The original date.
366
- * @returns {PickerValidDate} The end of the day of the given date.
367
- */
368
- endOfDay(value: PickerValidDate): PickerValidDate;
369
- /**
370
- * Add the specified number of years to the given date.
371
- * @param {PickerValidDate} value The date to be changed.
372
- * @param {number} amount The amount of years to be added.
373
- * @returns {PickerValidDate} The new date with the years added.
374
- */
375
- addYears(value: PickerValidDate, amount: number): PickerValidDate;
376
- /**
377
- * Add the specified number of months to the given date.
378
- * @param {PickerValidDate} value The date to be changed.
379
- * @param {number} amount The amount of months to be added.
380
- * @returns {PickerValidDate} The new date with the months added.
381
- */
382
- addMonths(value: PickerValidDate, amount: number): PickerValidDate;
383
- /**
384
- * Add the specified number of weeks to the given date.
385
- * @param {PickerValidDate} value The date to be changed.
386
- * @param {number} amount The amount of weeks to be added.
387
- * @returns {PickerValidDate} The new date with the weeks added.
388
- */
389
- addWeeks(value: PickerValidDate, amount: number): PickerValidDate;
390
- /**
391
- * Add the specified number of days to the given date.
392
- * @param {PickerValidDate} value The date to be changed.
393
- * @param {number} amount The amount of days to be added.
394
- * @returns {PickerValidDate} The new date with the days added.
395
- */
396
- addDays(value: PickerValidDate, amount: number): PickerValidDate;
397
- /**
398
- * Add the specified number of hours to the given date.
399
- * @param {PickerValidDate} value The date to be changed.
400
- * @param {number} amount The amount of hours to be added.
401
- * @returns {PickerValidDate} The new date with the hours added.
402
- */
403
- addHours(value: PickerValidDate, amount: number): PickerValidDate;
404
- /**
405
- * Add the specified number of minutes to the given date.
406
- * @param {PickerValidDate} value The date to be changed.
407
- * @param {number} amount The amount of minutes to be added.
408
- * @returns {PickerValidDate} The new date with the minutes added.
409
- */
410
- addMinutes(value: PickerValidDate, amount: number): PickerValidDate;
411
- /**
412
- * Add the specified number of seconds to the given date.
413
- * @param {PickerValidDate} value The date to be changed.
414
- * @param {number} amount The amount of seconds to be added.
415
- * @returns {PickerValidDate} The new date with the seconds added.
416
- */
417
- addSeconds(value: PickerValidDate, amount: number): PickerValidDate;
418
- /**
419
- * Get the year of the given date.
420
- * @param {PickerValidDate} value The given date.
421
- * @returns {number} The year of the given date.
422
- */
423
- getYear(value: PickerValidDate): number;
424
- /**
425
- * Get the month of the given date.
426
- * The value is 0-based, in the Gregorian calendar January = 0, February = 1, ...
427
- * @param {PickerValidDate} value The given date.
428
- * @returns {number} The month of the given date.
429
- */
430
- getMonth(value: PickerValidDate): number;
431
- /**
432
- * Get the date (day in the month) of the given date.
433
- * @param {PickerValidDate} value The given date.
434
- * @returns {number} The date of the given date.
435
- */
436
- getDate(value: PickerValidDate): number;
437
- /**
438
- * Get the hours of the given date.
439
- * @param {PickerValidDate} value The given date.
440
- * @returns {number} The hours of the given date.
441
- */
442
- getHours(value: PickerValidDate): number;
443
- /**
444
- * Get the minutes of the given date.
445
- * @param {PickerValidDate} value The given date.
446
- * @returns {number} The minutes of the given date.
447
- */
448
- getMinutes(value: PickerValidDate): number;
449
- /**
450
- * Get the seconds of the given date.
451
- * @param {PickerValidDate} value The given date.
452
- * @returns {number} The seconds of the given date.
453
- */
454
- getSeconds(value: PickerValidDate): number;
455
- /**
456
- * Get the milliseconds of the given date.
457
- * @param {PickerValidDate} value The given date.
458
- * @returns {number} The milliseconds of the given date.
459
- */
460
- getMilliseconds(value: PickerValidDate): number;
461
- /**
462
- * Set the year to the given date.
463
- * @param {PickerValidDate} value The date to be changed.
464
- * @param {number} year The year of the new date.
465
- * @returns {PickerValidDate} The new date with the year set.
466
- */
467
- setYear(value: PickerValidDate, year: number): PickerValidDate;
468
- /**
469
- * Set the month to the given date.
470
- * @param {PickerValidDate} value The date to be changed.
471
- * @param {number} month The month of the new date.
472
- * @returns {PickerValidDate} The new date with the month set.
473
- */
474
- setMonth(value: PickerValidDate, month: number): PickerValidDate;
475
- /**
476
- * Set the date (day in the month) to the given date.
477
- * @param {PickerValidDate} value The date to be changed.
478
- * @param {number} date The date of the new date.
479
- * @returns {PickerValidDate} The new date with the date set.
480
- */
481
- setDate(value: PickerValidDate, date: number): PickerValidDate;
482
- /**
483
- * Set the hours to the given date.
484
- * @param {PickerValidDate} value The date to be changed.
485
- * @param {number} hours The hours of the new date.
486
- * @returns {PickerValidDate} The new date with the hours set.
487
- */
488
- setHours(value: PickerValidDate, hours: number): PickerValidDate;
489
- /**
490
- * Set the minutes to the given date.
491
- * @param {PickerValidDate} value The date to be changed.
492
- * @param {number} minutes The minutes of the new date.
493
- * @returns {PickerValidDate} The new date with the minutes set.
494
- */
495
- setMinutes(value: PickerValidDate, minutes: number): PickerValidDate;
496
- /**
497
- * Set the seconds to the given date.
498
- * @param {PickerValidDate} value The date to be changed.
499
- * @param {number} seconds The seconds of the new date.
500
- * @returns {PickerValidDate} The new date with the seconds set.
501
- */
502
- setSeconds(value: PickerValidDate, seconds: number): PickerValidDate;
503
- /**
504
- * Set the milliseconds to the given date.
505
- * @param {PickerValidDate} value The date to be changed.
506
- * @param {number} milliseconds The milliseconds of the new date.
507
- * @returns {PickerValidDate} The new date with the milliseconds set.
508
- */
509
- setMilliseconds(value: PickerValidDate, milliseconds: number): PickerValidDate;
510
- /**
511
- * Get the number of days in a month of the given date.
512
- * @param {PickerValidDate} value The given date.
513
- * @returns {number} The number of days in the month
514
- */
515
- getDaysInMonth(value: PickerValidDate): number;
516
- /**
517
- * Create a nested list with all the days of the month of the given date grouped by week.
518
- * @param {PickerValidDate} value The given date.
519
- * @returns {PickerValidDate[][]} A nested list with all the days of the month grouped by week.
520
- */
521
- getWeekArray(value: PickerValidDate): PickerValidDate[][];
522
- /**
523
- * Get the number of the week of the given date.
524
- * @param {PickerValidDate} value The given date.
525
- * @returns {number} The number of the week of the given date.
526
- */
527
- getWeekNumber(value: PickerValidDate): number;
528
- /**
529
- * Get the number of the day of the week of the given date.
530
- * The value is 1-based, 1 - first day of the week, 7 - last day of the week.
531
- * @param {PickerValidDate} value The given date.
532
- * @returns {number} The number of the day of the week of the given date.
533
- */
534
- getDayOfWeek(value: PickerValidDate): number;
535
- /**
536
- * Create a list with all the years between the start and the end date.
537
- * @param {[PickerValidDate, PickerValidDate]} range The range of year to create.
538
- * @returns {PickerValidDate[]} List of all the years between the start end the end date.
539
- */
540
- getYearRange(range: [PickerValidDate, PickerValidDate]): PickerValidDate[];
541
- }
542
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- export interface TimeStepOptions {
2
- hours?: number;
3
- minutes?: number;
4
- seconds?: number;
5
- }
6
- export type PickerValueType = 'date' | 'time' | 'date-time';
@@ -1 +0,0 @@
1
- export {};
@@ -1,139 +0,0 @@
1
- import * as React from 'react';
2
- import { TextFieldProps } from '@mui/material/TextField';
3
- import type { ExportedPickersSectionListProps } from '../PickersSectionList';
4
- import type { UseFieldInternalProps, UseFieldReturnValue } from '../internals/hooks/useField';
5
- import type { PickersTextFieldProps } from '../PickersTextField';
6
- import { BaseSingleInputFieldProps, FieldRangeSection, PickerRangeValue, PickerValidValue } from "../internals/models/index.js";
7
- import { PickerOwnerState } from "./pickers.js";
8
- import type { ExportedPickerFieldUIProps } from '../internals/components/PickerFieldUI';
9
- export type FieldSectionType = 'year' | 'month' | 'day' | 'weekDay' | 'hours' | 'minutes' | 'seconds' | 'meridiem' | 'empty';
10
- export type FieldSectionContentType = 'digit' | 'digit-with-letter' | 'letter';
11
- export interface FieldSection {
12
- /**
13
- * Value of the section, as rendered inside the input.
14
- * For example, in the date `May 25, 1995`, the value of the month section is "May".
15
- */
16
- value: string;
17
- /**
18
- * Format token used to parse the value of this section from the date object.
19
- * For example, in the format `MMMM D, YYYY`, the format of the month section is "MMMM".
20
- */
21
- format: string;
22
- /**
23
- * Maximum length of the value, only defined for "digit" sections.
24
- * Will be used to determine how many leading zeros should be added to the value.
25
- */
26
- maxLength: number | null;
27
- /**
28
- * Placeholder rendered when the value of this section is empty.
29
- */
30
- placeholder: string;
31
- /**
32
- * Type of the section.
33
- */
34
- type: FieldSectionType;
35
- /**
36
- * Type of content of the section.
37
- * Will determine if we should apply a digit-based editing or a letter-based editing.
38
- */
39
- contentType: FieldSectionContentType;
40
- /**
41
- * If `true`, the value of this section is supposed to have leading zeroes when parsed by the date library.
42
- * For example, the value `1` should be rendered as "01" instead of "1".
43
- */
44
- hasLeadingZerosInFormat: boolean;
45
- /**
46
- * If `true`, the value of this section is supposed to have leading zeroes when rendered in the input.
47
- * For example, the value `1` should be rendered as "01" instead of "1".
48
- */
49
- hasLeadingZerosInInput: boolean;
50
- /**
51
- * If `true`, the section value has been modified since the last time the sections were generated from a valid date.
52
- * When we can generate a valid date from the section, we don't directly pass it to `onChange`,
53
- * Otherwise, we would lose all the information contained in the original date, things like:
54
- * - time if the format does not contain it
55
- * - timezone / UTC
56
- *
57
- * To avoid losing that information, we transfer the values of the modified sections from the newly generated date to the original date.
58
- */
59
- modified: boolean;
60
- /**
61
- * Separator displayed before the value of the section in the input.
62
- * If it contains escaped characters, then it must not have the escaping characters.
63
- * For example, on Day.js, the `year` section of the format `YYYY [year]` has an end separator equal to `year` not `[year]`
64
- */
65
- startSeparator: string;
66
- /**
67
- * Separator displayed after the value of the section in the input.
68
- * If it contains escaped characters, then it must not have the escaping characters.
69
- * For example, on Day.js, the `year` section of the format `[year] YYYY` has a start separator equal to `[year]`
70
- */
71
- endSeparator: string;
72
- }
73
- type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
74
- export type InferFieldSection<TValue extends PickerValidValue> = IsAny<TValue> extends true ? FieldSection : TValue extends PickerRangeValue ? FieldRangeSection : FieldSection;
75
- export interface FieldRef<TValue extends PickerValidValue> {
76
- /**
77
- * Returns the sections of the current value.
78
- * @returns {InferFieldSection<TValue>[]} The sections of the current value.
79
- */
80
- getSections: () => InferFieldSection<TValue>[];
81
- /**
82
- * Returns the index of the active section (the first focused section).
83
- * If no section is active, returns `null`.
84
- * @returns {number | null} The index of the active section.
85
- */
86
- getActiveSectionIndex: () => number | null;
87
- /**
88
- * Updates the selected sections.
89
- * @param {FieldSelectedSections} selectedSections The sections to select.
90
- */
91
- setSelectedSections: (selectedSections: FieldSelectedSections) => void;
92
- /**
93
- * Focuses the field.
94
- * @param {FieldSelectedSections | FieldSectionType} newSelectedSection The section to select once focused.
95
- */
96
- focusField: (newSelectedSection?: number | FieldSectionType) => void;
97
- /**
98
- * Returns `true` if the focused is on the field input.
99
- * @returns {boolean} `true` if the field is focused.
100
- */
101
- isFieldFocused: () => boolean;
102
- }
103
- export type FieldSelectedSections = number | FieldSectionType | null | 'all';
104
- export interface FieldOwnerState extends PickerOwnerState {
105
- /**
106
- * `true` if the field is disabled, `false` otherwise.
107
- */
108
- isFieldDisabled: boolean;
109
- /**
110
- * `true` if the field is read-only, `false` otherwise.
111
- */
112
- isFieldReadOnly: boolean;
113
- /**
114
- * `true` if the field is required, `false` otherwise.
115
- */
116
- isFieldRequired: boolean;
117
- /**
118
- * The direction of the field.
119
- * Is equal to "ltr" when the field is in left-to-right direction.
120
- * Is equal to "rtl" when the field is in right-to-left direction.
121
- */
122
- fieldDirection: 'ltr' | 'rtl';
123
- }
124
- /**
125
- * Props the `slotProps.field` of a Picker can receive.
126
- */
127
- export type PickerFieldSlotProps<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean> = ExportedPickerFieldUIProps & Pick<UseFieldInternalProps<TValue, TEnableAccessibleFieldDOMStructure, unknown>, 'shouldRespectLeadingZeros' | 'readOnly'> & React.HTMLAttributes<HTMLDivElement> & {
128
- ref?: React.Ref<HTMLDivElement>;
129
- };
130
- /**
131
- * Props the text field receives when used inside a single input Picker.
132
- * Only contains what the MUI components are passing to the text field, not what users can pass using the `props.slotProps.field` and `props.slotProps.textField`.
133
- */
134
- export type BaseSingleInputPickersTextFieldProps<TEnableAccessibleFieldDOMStructure extends boolean> = Omit<UseFieldReturnValue<TEnableAccessibleFieldDOMStructure, BaseSingleInputFieldProps>, 'slots' | 'slotProps' | 'clearable' | 'onClear' | 'openPickerButtonPosition' | 'clearButtonPosition' | 'openPickerAriaLabel'>;
135
- /**
136
- * Props the built-in text field component can receive.
137
- */
138
- export type BuiltInFieldTextFieldProps<TEnableAccessibleFieldDOMStructure extends boolean> = TEnableAccessibleFieldDOMStructure extends false ? Omit<TextFieldProps, 'autoComplete' | 'error' | 'maxRows' | 'minRows' | 'multiline' | 'placeholder' | 'rows' | 'select' | 'SelectProps' | 'type'> : Partial<Omit<PickersTextFieldProps, keyof ExportedPickersSectionListProps>>;
139
- export {};