@mui/x-date-pickers 8.0.0-beta.3 → 8.1.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 (825) hide show
  1. package/CHANGELOG.md +388 -96
  2. package/DateCalendar/DateCalendar.js +2 -4
  3. package/DateCalendar/DayCalendar.js +9 -18
  4. package/DateCalendar/PickersFadeTransitionGroup.js +1 -2
  5. package/DatePicker/DatePicker.js +1 -1
  6. package/DatePicker/DatePickerToolbar.js +2 -4
  7. package/DateTimePicker/DateTimePicker.js +1 -1
  8. package/DateTimePicker/DateTimePickerTabs.js +1 -2
  9. package/DateTimePicker/DateTimePickerToolbar.js +1 -6
  10. package/DayCalendarSkeleton/DayCalendarSkeleton.js +3 -6
  11. package/DesktopDatePicker/DesktopDatePicker.js +2 -7
  12. package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  13. package/DesktopTimePicker/DesktopTimePicker.js +1 -1
  14. package/DigitalClock/DigitalClock.js +3 -6
  15. package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
  16. package/LocalizationProvider/LocalizationProvider.js +1 -1
  17. package/MobileDatePicker/MobileDatePicker.js +1 -1
  18. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  19. package/MobileTimePicker/MobileTimePicker.js +1 -1
  20. package/MonthCalendar/MonthCalendar.js +0 -1
  21. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -2
  22. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -4
  23. package/PickersActionBar/PickersActionBar.js +1 -2
  24. package/PickersCalendarHeader/PickersCalendarHeader.js +5 -10
  25. package/PickersLayout/PickersLayout.js +2 -4
  26. package/PickersLayout/usePickerLayout.js +3 -2
  27. package/PickersSectionList/PickersSectionList.js +4 -8
  28. package/PickersSectionList/PickersSectionList.types.d.ts +3 -1
  29. package/PickersShortcuts/PickersShortcuts.js +1 -2
  30. package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +1 -1
  31. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +2 -3
  32. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -0
  33. package/PickersTextField/PickersInput/PickersInput.js +2 -2
  34. package/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -0
  35. package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +1 -1
  36. package/PickersTextField/PickersInputBase/PickersInputBase.js +107 -14
  37. package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +5 -2
  38. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +6 -4
  39. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
  40. package/PickersTextField/PickersOutlinedInput/Outline.js +1 -2
  41. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +4 -5
  42. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -0
  43. package/PickersTextField/PickersTextField.js +7 -5
  44. package/PickersTextField/PickersTextField.types.d.ts +1 -40
  45. package/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
  46. package/TimeClock/Clock.js +8 -16
  47. package/TimeClock/ClockPointer.js +2 -4
  48. package/TimeClock/TimeClock.js +2 -4
  49. package/TimePicker/TimePicker.js +1 -1
  50. package/TimePicker/TimePickerToolbar.js +2 -4
  51. package/esm/DateCalendar/DateCalendar.js +2 -4
  52. package/esm/DateCalendar/DayCalendar.js +9 -18
  53. package/esm/DateCalendar/PickersFadeTransitionGroup.js +1 -2
  54. package/esm/DatePicker/DatePicker.js +1 -1
  55. package/esm/DatePicker/DatePickerToolbar.js +2 -4
  56. package/esm/DateTimePicker/DateTimePicker.js +1 -1
  57. package/esm/DateTimePicker/DateTimePickerTabs.js +1 -2
  58. package/esm/DateTimePicker/DateTimePickerToolbar.js +1 -6
  59. package/esm/DayCalendarSkeleton/DayCalendarSkeleton.js +3 -6
  60. package/esm/DesktopDatePicker/DesktopDatePicker.js +2 -7
  61. package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  62. package/esm/DesktopTimePicker/DesktopTimePicker.js +1 -1
  63. package/esm/DigitalClock/DigitalClock.js +3 -6
  64. package/esm/LocalizationProvider/LocalizationProvider.d.ts +1 -1
  65. package/esm/LocalizationProvider/LocalizationProvider.js +1 -1
  66. package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
  67. package/esm/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  68. package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
  69. package/esm/MonthCalendar/MonthCalendar.js +0 -1
  70. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -2
  71. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -4
  72. package/esm/PickersActionBar/PickersActionBar.js +1 -2
  73. package/esm/PickersCalendarHeader/PickersCalendarHeader.js +5 -10
  74. package/esm/PickersLayout/PickersLayout.js +2 -4
  75. package/esm/PickersLayout/usePickerLayout.js +3 -2
  76. package/esm/PickersSectionList/PickersSectionList.js +4 -8
  77. package/esm/PickersSectionList/PickersSectionList.types.d.ts +3 -1
  78. package/esm/PickersShortcuts/PickersShortcuts.js +1 -2
  79. package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +1 -1
  80. package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +2 -3
  81. package/esm/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -0
  82. package/esm/PickersTextField/PickersInput/PickersInput.js +2 -2
  83. package/esm/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -0
  84. package/esm/PickersTextField/PickersInputBase/PickersInputBase.d.ts +1 -1
  85. package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +107 -14
  86. package/esm/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +5 -2
  87. package/esm/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +6 -4
  88. package/esm/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
  89. package/esm/PickersTextField/PickersOutlinedInput/Outline.js +1 -2
  90. package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +4 -5
  91. package/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -0
  92. package/esm/PickersTextField/PickersTextField.js +7 -5
  93. package/esm/PickersTextField/PickersTextField.types.d.ts +1 -40
  94. package/esm/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
  95. package/esm/TimeClock/Clock.js +8 -16
  96. package/esm/TimeClock/ClockPointer.js +2 -4
  97. package/esm/TimeClock/TimeClock.js +2 -4
  98. package/esm/TimePicker/TimePicker.js +1 -1
  99. package/esm/TimePicker/TimePickerToolbar.js +2 -4
  100. package/esm/index.js +1 -1
  101. package/esm/internals/components/PickerFieldUI.d.ts +2 -2
  102. package/esm/internals/components/PickerPopper/PickerPopper.js +8 -4
  103. package/esm/internals/components/PickerProvider.d.ts +9 -0
  104. package/esm/internals/components/PickerProvider.js +3 -1
  105. package/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +3 -6
  106. package/esm/internals/components/PickersToolbar.js +1 -3
  107. package/esm/internals/components/PickersToolbarButton.js +1 -2
  108. package/esm/internals/components/PickersToolbarText.js +1 -2
  109. package/esm/internals/hooks/useField/buildSectionsFromFormat.js +1 -0
  110. package/esm/internals/hooks/useField/useFieldRootProps.js +3 -2
  111. package/esm/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -0
  112. package/esm/internals/hooks/useField/useFieldSectionContainerProps.js +4 -1
  113. package/esm/internals/hooks/useField/useFieldSectionContentProps.d.ts +2 -2
  114. package/esm/internals/hooks/useField/useFieldSectionContentProps.js +4 -1
  115. package/esm/internals/hooks/useField/useFieldV7TextField.js +25 -15
  116. package/esm/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +3 -2
  117. package/esm/internals/hooks/usePicker/usePicker.d.ts +1 -0
  118. package/esm/internals/hooks/usePicker/usePicker.js +21 -13
  119. package/esm/internals/hooks/usePicker/usePicker.types.d.ts +3 -2
  120. package/esm/internals/hooks/useViews.d.ts +8 -2
  121. package/esm/internals/hooks/useViews.js +27 -12
  122. package/esm/internals/utils/createNonRangePickerStepNavigation.js +3 -3
  123. package/esm/internals/utils/createStepNavigation.d.ts +19 -2
  124. package/esm/internals/utils/createStepNavigation.js +16 -6
  125. package/esm/locales/csCZ.js +1 -1
  126. package/esm/locales/skSK.js +3 -3
  127. package/esm/models/fields.d.ts +43 -0
  128. package/index.js +1 -1
  129. package/internals/components/PickerFieldUI.d.ts +2 -2
  130. package/internals/components/PickerPopper/PickerPopper.js +8 -4
  131. package/internals/components/PickerProvider.d.ts +9 -0
  132. package/internals/components/PickerProvider.js +3 -1
  133. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +3 -6
  134. package/internals/components/PickersToolbar.js +1 -3
  135. package/internals/components/PickersToolbarButton.js +1 -2
  136. package/internals/components/PickersToolbarText.js +1 -2
  137. package/internals/hooks/useField/buildSectionsFromFormat.js +1 -0
  138. package/internals/hooks/useField/useFieldRootProps.js +3 -2
  139. package/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -0
  140. package/internals/hooks/useField/useFieldSectionContainerProps.js +4 -1
  141. package/internals/hooks/useField/useFieldSectionContentProps.d.ts +2 -2
  142. package/internals/hooks/useField/useFieldSectionContentProps.js +4 -1
  143. package/internals/hooks/useField/useFieldV7TextField.js +25 -15
  144. package/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +3 -2
  145. package/internals/hooks/usePicker/usePicker.d.ts +1 -0
  146. package/internals/hooks/usePicker/usePicker.js +21 -13
  147. package/internals/hooks/usePicker/usePicker.types.d.ts +3 -2
  148. package/internals/hooks/useViews.d.ts +8 -2
  149. package/internals/hooks/useViews.js +28 -13
  150. package/internals/utils/createNonRangePickerStepNavigation.js +3 -3
  151. package/internals/utils/createStepNavigation.d.ts +19 -2
  152. package/internals/utils/createStepNavigation.js +17 -6
  153. package/locales/csCZ.js +1 -1
  154. package/locales/skSK.js +3 -3
  155. package/models/fields.d.ts +43 -0
  156. package/package.json +3 -11
  157. package/modern/AdapterDateFns/AdapterDateFns.d.ts +0 -88
  158. package/modern/AdapterDateFns/AdapterDateFns.js +0 -284
  159. package/modern/AdapterDateFns/index.d.ts +0 -1
  160. package/modern/AdapterDateFns/index.js +0 -1
  161. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +0 -64
  162. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +0 -291
  163. package/modern/AdapterDateFnsBase/index.d.ts +0 -1
  164. package/modern/AdapterDateFnsBase/index.js +0 -1
  165. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +0 -89
  166. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -326
  167. package/modern/AdapterDateFnsJalali/index.d.ts +0 -1
  168. package/modern/AdapterDateFnsJalali/index.js +0 -1
  169. package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +0 -89
  170. package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +0 -326
  171. package/modern/AdapterDateFnsJalaliV2/index.d.ts +0 -1
  172. package/modern/AdapterDateFnsJalaliV2/index.js +0 -1
  173. package/modern/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +0 -88
  174. package/modern/AdapterDateFnsV2/AdapterDateFnsV2.js +0 -284
  175. package/modern/AdapterDateFnsV2/index.d.ts +0 -1
  176. package/modern/AdapterDateFnsV2/index.js +0 -1
  177. package/modern/AdapterDayjs/AdapterDayjs.d.ts +0 -129
  178. package/modern/AdapterDayjs/AdapterDayjs.js +0 -557
  179. package/modern/AdapterDayjs/index.d.ts +0 -1
  180. package/modern/AdapterDayjs/index.js +0 -1
  181. package/modern/AdapterLuxon/AdapterLuxon.d.ts +0 -108
  182. package/modern/AdapterLuxon/AdapterLuxon.js +0 -500
  183. package/modern/AdapterLuxon/index.d.ts +0 -1
  184. package/modern/AdapterLuxon/index.js +0 -1
  185. package/modern/AdapterMoment/AdapterMoment.d.ts +0 -114
  186. package/modern/AdapterMoment/AdapterMoment.js +0 -472
  187. package/modern/AdapterMoment/index.d.ts +0 -1
  188. package/modern/AdapterMoment/index.js +0 -1
  189. package/modern/AdapterMomentHijri/AdapterMomentHijri.d.ts +0 -62
  190. package/modern/AdapterMomentHijri/AdapterMomentHijri.js +0 -219
  191. package/modern/AdapterMomentHijri/index.d.ts +0 -1
  192. package/modern/AdapterMomentHijri/index.js +0 -1
  193. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +0 -66
  194. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -221
  195. package/modern/AdapterMomentJalaali/index.d.ts +0 -1
  196. package/modern/AdapterMomentJalaali/index.js +0 -1
  197. package/modern/DateCalendar/DateCalendar.d.ts +0 -18
  198. package/modern/DateCalendar/DateCalendar.js +0 -590
  199. package/modern/DateCalendar/DateCalendar.types.d.ts +0 -87
  200. package/modern/DateCalendar/DateCalendar.types.js +0 -1
  201. package/modern/DateCalendar/DayCalendar.d.ts +0 -85
  202. package/modern/DateCalendar/DayCalendar.js +0 -449
  203. package/modern/DateCalendar/PickersFadeTransitionGroup.d.ts +0 -16
  204. package/modern/DateCalendar/PickersFadeTransitionGroup.js +0 -58
  205. package/modern/DateCalendar/PickersSlideTransition.d.ts +0 -21
  206. package/modern/DateCalendar/PickersSlideTransition.js +0 -142
  207. package/modern/DateCalendar/dateCalendarClasses.d.ts +0 -9
  208. package/modern/DateCalendar/dateCalendarClasses.js +0 -3
  209. package/modern/DateCalendar/dayCalendarClasses.d.ts +0 -23
  210. package/modern/DateCalendar/dayCalendarClasses.js +0 -3
  211. package/modern/DateCalendar/index.d.ts +0 -12
  212. package/modern/DateCalendar/index.js +0 -5
  213. package/modern/DateCalendar/pickersFadeTransitionGroupClasses.d.ts +0 -7
  214. package/modern/DateCalendar/pickersFadeTransitionGroupClasses.js +0 -3
  215. package/modern/DateCalendar/pickersSlideTransitionClasses.d.ts +0 -19
  216. package/modern/DateCalendar/pickersSlideTransitionClasses.js +0 -3
  217. package/modern/DateCalendar/useCalendarState.d.ts +0 -27
  218. package/modern/DateCalendar/useCalendarState.js +0 -156
  219. package/modern/DateCalendar/useIsDateDisabled.d.ts +0 -13
  220. package/modern/DateCalendar/useIsDateDisabled.js +0 -31
  221. package/modern/DateField/DateField.d.ts +0 -17
  222. package/modern/DateField/DateField.js +0 -327
  223. package/modern/DateField/DateField.types.d.ts +0 -22
  224. package/modern/DateField/DateField.types.js +0 -1
  225. package/modern/DateField/index.d.ts +0 -3
  226. package/modern/DateField/index.js +0 -2
  227. package/modern/DateField/useDateField.d.ts +0 -2
  228. package/modern/DateField/useDateField.js +0 -11
  229. package/modern/DatePicker/DatePicker.d.ts +0 -17
  230. package/modern/DatePicker/DatePicker.js +0 -368
  231. package/modern/DatePicker/DatePicker.types.d.ts +0 -38
  232. package/modern/DatePicker/DatePicker.types.js +0 -1
  233. package/modern/DatePicker/DatePickerToolbar.d.ts +0 -25
  234. package/modern/DatePicker/DatePickerToolbar.js +0 -130
  235. package/modern/DatePicker/datePickerToolbarClasses.d.ts +0 -9
  236. package/modern/DatePicker/datePickerToolbarClasses.js +0 -5
  237. package/modern/DatePicker/index.d.ts +0 -6
  238. package/modern/DatePicker/index.js +0 -3
  239. package/modern/DatePicker/shared.d.ts +0 -43
  240. package/modern/DatePicker/shared.js +0 -33
  241. package/modern/DateTimeField/DateTimeField.d.ts +0 -17
  242. package/modern/DateTimeField/DateTimeField.js +0 -367
  243. package/modern/DateTimeField/DateTimeField.types.d.ts +0 -22
  244. package/modern/DateTimeField/DateTimeField.types.js +0 -1
  245. package/modern/DateTimeField/index.d.ts +0 -3
  246. package/modern/DateTimeField/index.js +0 -2
  247. package/modern/DateTimeField/useDateTimeField.d.ts +0 -2
  248. package/modern/DateTimeField/useDateTimeField.js +0 -11
  249. package/modern/DateTimePicker/DateTimePicker.d.ts +0 -17
  250. package/modern/DateTimePicker/DateTimePicker.js +0 -438
  251. package/modern/DateTimePicker/DateTimePicker.types.d.ts +0 -34
  252. package/modern/DateTimePicker/DateTimePicker.types.js +0 -1
  253. package/modern/DateTimePicker/DateTimePickerTabs.d.ts +0 -39
  254. package/modern/DateTimePicker/DateTimePickerTabs.js +0 -142
  255. package/modern/DateTimePicker/DateTimePickerToolbar.d.ts +0 -47
  256. package/modern/DateTimePicker/DateTimePickerToolbar.js +0 -415
  257. package/modern/DateTimePicker/dateTimePickerTabsClasses.d.ts +0 -7
  258. package/modern/DateTimePicker/dateTimePickerTabsClasses.js +0 -5
  259. package/modern/DateTimePicker/dateTimePickerToolbarClasses.d.ts +0 -23
  260. package/modern/DateTimePicker/dateTimePickerToolbarClasses.js +0 -5
  261. package/modern/DateTimePicker/index.d.ts +0 -10
  262. package/modern/DateTimePicker/index.js +0 -5
  263. package/modern/DateTimePicker/shared.d.ts +0 -72
  264. package/modern/DateTimePicker/shared.js +0 -65
  265. package/modern/DayCalendarSkeleton/DayCalendarSkeleton.d.ts +0 -30
  266. package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +0 -100
  267. package/modern/DayCalendarSkeleton/dayCalendarSkeletonClasses.d.ts +0 -11
  268. package/modern/DayCalendarSkeleton/dayCalendarSkeletonClasses.js +0 -3
  269. package/modern/DayCalendarSkeleton/index.d.ts +0 -4
  270. package/modern/DayCalendarSkeleton/index.js +0 -2
  271. package/modern/DesktopDatePicker/DesktopDatePicker.d.ts +0 -17
  272. package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -384
  273. package/modern/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -28
  274. package/modern/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
  275. package/modern/DesktopDatePicker/index.d.ts +0 -2
  276. package/modern/DesktopDatePicker/index.js +0 -1
  277. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -17
  278. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -528
  279. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -29
  280. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
  281. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.ts +0 -11
  282. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +0 -83
  283. package/modern/DesktopDateTimePicker/index.d.ts +0 -3
  284. package/modern/DesktopDateTimePicker/index.js +0 -2
  285. package/modern/DesktopTimePicker/DesktopTimePicker.d.ts +0 -17
  286. package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -353
  287. package/modern/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -26
  288. package/modern/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
  289. package/modern/DesktopTimePicker/index.d.ts +0 -2
  290. package/modern/DesktopTimePicker/index.js +0 -1
  291. package/modern/DigitalClock/DigitalClock.d.ts +0 -18
  292. package/modern/DigitalClock/DigitalClock.js +0 -481
  293. package/modern/DigitalClock/DigitalClock.types.d.ts +0 -54
  294. package/modern/DigitalClock/DigitalClock.types.js +0 -1
  295. package/modern/DigitalClock/digitalClockClasses.d.ts +0 -11
  296. package/modern/DigitalClock/digitalClockClasses.js +0 -6
  297. package/modern/DigitalClock/index.d.ts +0 -4
  298. package/modern/DigitalClock/index.js +0 -2
  299. package/modern/LocalizationProvider/LocalizationProvider.d.ts +0 -55
  300. package/modern/LocalizationProvider/LocalizationProvider.js +0 -143
  301. package/modern/LocalizationProvider/index.d.ts +0 -2
  302. package/modern/LocalizationProvider/index.js +0 -1
  303. package/modern/MobileDatePicker/MobileDatePicker.d.ts +0 -17
  304. package/modern/MobileDatePicker/MobileDatePicker.js +0 -377
  305. package/modern/MobileDatePicker/MobileDatePicker.types.d.ts +0 -22
  306. package/modern/MobileDatePicker/MobileDatePicker.types.js +0 -1
  307. package/modern/MobileDatePicker/index.d.ts +0 -2
  308. package/modern/MobileDatePicker/index.js +0 -1
  309. package/modern/MobileDateTimePicker/MobileDateTimePicker.d.ts +0 -17
  310. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -497
  311. package/modern/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +0 -17
  312. package/modern/MobileDateTimePicker/MobileDateTimePicker.types.js +0 -1
  313. package/modern/MobileDateTimePicker/index.d.ts +0 -2
  314. package/modern/MobileDateTimePicker/index.js +0 -1
  315. package/modern/MobileTimePicker/MobileTimePicker.d.ts +0 -18
  316. package/modern/MobileTimePicker/MobileTimePicker.js +0 -316
  317. package/modern/MobileTimePicker/MobileTimePicker.types.d.ts +0 -19
  318. package/modern/MobileTimePicker/MobileTimePicker.types.js +0 -1
  319. package/modern/MobileTimePicker/index.d.ts +0 -2
  320. package/modern/MobileTimePicker/index.js +0 -1
  321. package/modern/MonthCalendar/MonthCalendar.d.ts +0 -18
  322. package/modern/MonthCalendar/MonthCalendar.js +0 -360
  323. package/modern/MonthCalendar/MonthCalendar.types.d.ts +0 -82
  324. package/modern/MonthCalendar/MonthCalendar.types.js +0 -1
  325. package/modern/MonthCalendar/MonthCalendarButton.d.ts +0 -24
  326. package/modern/MonthCalendar/MonthCalendarButton.js +0 -115
  327. package/modern/MonthCalendar/index.d.ts +0 -4
  328. package/modern/MonthCalendar/index.js +0 -2
  329. package/modern/MonthCalendar/monthCalendarClasses.d.ts +0 -13
  330. package/modern/MonthCalendar/monthCalendarClasses.js +0 -5
  331. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +0 -17
  332. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +0 -513
  333. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +0 -48
  334. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.types.js +0 -1
  335. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +0 -41
  336. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +0 -76
  337. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +0 -26
  338. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +0 -210
  339. package/modern/MultiSectionDigitalClock/index.d.ts +0 -7
  340. package/modern/MultiSectionDigitalClock/index.js +0 -3
  341. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockClasses.d.ts +0 -7
  342. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +0 -6
  343. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.d.ts +0 -9
  344. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +0 -6
  345. package/modern/PickersActionBar/PickersActionBar.d.ts +0 -29
  346. package/modern/PickersActionBar/PickersActionBar.js +0 -117
  347. package/modern/PickersActionBar/index.d.ts +0 -2
  348. package/modern/PickersActionBar/index.js +0 -1
  349. package/modern/PickersCalendarHeader/PickersCalendarHeader.d.ts +0 -18
  350. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +0 -280
  351. package/modern/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +0 -60
  352. package/modern/PickersCalendarHeader/PickersCalendarHeader.types.js +0 -1
  353. package/modern/PickersCalendarHeader/index.d.ts +0 -4
  354. package/modern/PickersCalendarHeader/index.js +0 -2
  355. package/modern/PickersCalendarHeader/pickersCalendarHeaderClasses.d.ts +0 -15
  356. package/modern/PickersCalendarHeader/pickersCalendarHeaderClasses.js +0 -3
  357. package/modern/PickersDay/PickersDay.d.ts +0 -15
  358. package/modern/PickersDay/PickersDay.js +0 -372
  359. package/modern/PickersDay/PickersDay.types.d.ts +0 -114
  360. package/modern/PickersDay/PickersDay.types.js +0 -1
  361. package/modern/PickersDay/index.d.ts +0 -4
  362. package/modern/PickersDay/index.js +0 -2
  363. package/modern/PickersDay/pickersDayClasses.d.ts +0 -19
  364. package/modern/PickersDay/pickersDayClasses.js +0 -5
  365. package/modern/PickersDay/usePickerDayOwnerState.d.ts +0 -14
  366. package/modern/PickersDay/usePickerDayOwnerState.js +0 -32
  367. package/modern/PickersLayout/PickersLayout.d.ts +0 -23
  368. package/modern/PickersLayout/PickersLayout.js +0 -168
  369. package/modern/PickersLayout/PickersLayout.types.d.ts +0 -100
  370. package/modern/PickersLayout/PickersLayout.types.js +0 -1
  371. package/modern/PickersLayout/index.d.ts +0 -5
  372. package/modern/PickersLayout/index.js +0 -3
  373. package/modern/PickersLayout/pickersLayoutClasses.d.ts +0 -19
  374. package/modern/PickersLayout/pickersLayoutClasses.js +0 -6
  375. package/modern/PickersLayout/usePickerLayout.d.ts +0 -7
  376. package/modern/PickersLayout/usePickerLayout.js +0 -104
  377. package/modern/PickersSectionList/PickersSectionList.d.ts +0 -20
  378. package/modern/PickersSectionList/PickersSectionList.js +0 -252
  379. package/modern/PickersSectionList/PickersSectionList.types.d.ts +0 -59
  380. package/modern/PickersSectionList/PickersSectionList.types.js +0 -1
  381. package/modern/PickersSectionList/index.d.ts +0 -4
  382. package/modern/PickersSectionList/index.js +0 -2
  383. package/modern/PickersSectionList/pickersSectionListClasses.d.ts +0 -11
  384. package/modern/PickersSectionList/pickersSectionListClasses.js +0 -6
  385. package/modern/PickersShortcuts/PickersShortcuts.d.ts +0 -47
  386. package/modern/PickersShortcuts/PickersShortcuts.js +0 -124
  387. package/modern/PickersShortcuts/index.d.ts +0 -2
  388. package/modern/PickersShortcuts/index.js +0 -1
  389. package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +0 -18
  390. package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +0 -305
  391. package/modern/PickersTextField/PickersFilledInput/index.d.ts +0 -4
  392. package/modern/PickersTextField/PickersFilledInput/index.js +0 -2
  393. package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +0 -23
  394. package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +0 -8
  395. package/modern/PickersTextField/PickersInput/PickersInput.d.ts +0 -10
  396. package/modern/PickersTextField/PickersInput/PickersInput.js +0 -220
  397. package/modern/PickersTextField/PickersInput/index.d.ts +0 -4
  398. package/modern/PickersTextField/PickersInput/index.js +0 -2
  399. package/modern/PickersTextField/PickersInput/pickersInputClasses.d.ts +0 -23
  400. package/modern/PickersTextField/PickersInput/pickersInputClasses.js +0 -8
  401. package/modern/PickersTextField/PickersInputBase/PickersInputBase.d.ts +0 -14
  402. package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +0 -375
  403. package/modern/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +0 -59
  404. package/modern/PickersTextField/PickersInputBase/PickersInputBase.types.js +0 -1
  405. package/modern/PickersTextField/PickersInputBase/index.d.ts +0 -4
  406. package/modern/PickersTextField/PickersInputBase/index.js +0 -2
  407. package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +0 -31
  408. package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +0 -6
  409. package/modern/PickersTextField/PickersOutlinedInput/Outline.d.ts +0 -11
  410. package/modern/PickersTextField/PickersOutlinedInput/Outline.js +0 -137
  411. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +0 -10
  412. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +0 -198
  413. package/modern/PickersTextField/PickersOutlinedInput/index.d.ts +0 -4
  414. package/modern/PickersTextField/PickersOutlinedInput/index.js +0 -2
  415. package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +0 -22
  416. package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +0 -8
  417. package/modern/PickersTextField/PickersTextField.d.ts +0 -3
  418. package/modern/PickersTextField/PickersTextField.js +0 -280
  419. package/modern/PickersTextField/PickersTextField.types.d.ts +0 -106
  420. package/modern/PickersTextField/PickersTextField.types.js +0 -1
  421. package/modern/PickersTextField/index.d.ts +0 -8
  422. package/modern/PickersTextField/index.js +0 -6
  423. package/modern/PickersTextField/pickersTextFieldClasses.d.ts +0 -15
  424. package/modern/PickersTextField/pickersTextFieldClasses.js +0 -6
  425. package/modern/PickersTextField/usePickerTextFieldOwnerState.d.ts +0 -4
  426. package/modern/PickersTextField/usePickerTextFieldOwnerState.js +0 -11
  427. package/modern/StaticDatePicker/StaticDatePicker.d.ts +0 -17
  428. package/modern/StaticDatePicker/StaticDatePicker.js +0 -310
  429. package/modern/StaticDatePicker/StaticDatePicker.types.d.ts +0 -22
  430. package/modern/StaticDatePicker/StaticDatePicker.types.js +0 -1
  431. package/modern/StaticDatePicker/index.d.ts +0 -2
  432. package/modern/StaticDatePicker/index.js +0 -1
  433. package/modern/StaticDateTimePicker/StaticDateTimePicker.d.ts +0 -17
  434. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -429
  435. package/modern/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +0 -22
  436. package/modern/StaticDateTimePicker/StaticDateTimePicker.types.js +0 -1
  437. package/modern/StaticDateTimePicker/index.d.ts +0 -2
  438. package/modern/StaticDateTimePicker/index.js +0 -1
  439. package/modern/StaticTimePicker/StaticTimePicker.d.ts +0 -17
  440. package/modern/StaticTimePicker/StaticTimePicker.js +0 -248
  441. package/modern/StaticTimePicker/StaticTimePicker.types.d.ts +0 -18
  442. package/modern/StaticTimePicker/StaticTimePicker.types.js +0 -1
  443. package/modern/StaticTimePicker/index.d.ts +0 -2
  444. package/modern/StaticTimePicker/index.js +0 -1
  445. package/modern/TimeClock/Clock.d.ts +0 -39
  446. package/modern/TimeClock/Clock.js +0 -354
  447. package/modern/TimeClock/ClockNumber.d.ts +0 -19
  448. package/modern/TimeClock/ClockNumber.js +0 -102
  449. package/modern/TimeClock/ClockNumbers.d.ts +0 -37
  450. package/modern/TimeClock/ClockNumbers.js +0 -71
  451. package/modern/TimeClock/ClockPointer.d.ts +0 -19
  452. package/modern/TimeClock/ClockPointer.js +0 -119
  453. package/modern/TimeClock/TimeClock.d.ts +0 -17
  454. package/modern/TimeClock/TimeClock.js +0 -491
  455. package/modern/TimeClock/TimeClock.types.d.ts +0 -36
  456. package/modern/TimeClock/TimeClock.types.js +0 -1
  457. package/modern/TimeClock/clockClasses.d.ts +0 -23
  458. package/modern/TimeClock/clockClasses.js +0 -5
  459. package/modern/TimeClock/clockNumberClasses.d.ts +0 -11
  460. package/modern/TimeClock/clockNumberClasses.js +0 -5
  461. package/modern/TimeClock/clockPointerClasses.d.ts +0 -9
  462. package/modern/TimeClock/clockPointerClasses.js +0 -5
  463. package/modern/TimeClock/index.d.ts +0 -13
  464. package/modern/TimeClock/index.js +0 -5
  465. package/modern/TimeClock/shared.d.ts +0 -4
  466. package/modern/TimeClock/shared.js +0 -52
  467. package/modern/TimeClock/timeClockClasses.d.ts +0 -9
  468. package/modern/TimeClock/timeClockClasses.js +0 -5
  469. package/modern/TimeField/TimeField.d.ts +0 -17
  470. package/modern/TimeField/TimeField.js +0 -328
  471. package/modern/TimeField/TimeField.types.d.ts +0 -22
  472. package/modern/TimeField/TimeField.types.js +0 -1
  473. package/modern/TimeField/index.d.ts +0 -3
  474. package/modern/TimeField/index.js +0 -2
  475. package/modern/TimeField/useTimeField.d.ts +0 -2
  476. package/modern/TimeField/useTimeField.js +0 -11
  477. package/modern/TimePicker/TimePicker.d.ts +0 -17
  478. package/modern/TimePicker/TimePicker.js +0 -326
  479. package/modern/TimePicker/TimePicker.types.d.ts +0 -28
  480. package/modern/TimePicker/TimePicker.types.js +0 -1
  481. package/modern/TimePicker/TimePickerToolbar.d.ts +0 -28
  482. package/modern/TimePicker/TimePickerToolbar.js +0 -244
  483. package/modern/TimePicker/index.d.ts +0 -6
  484. package/modern/TimePicker/index.js +0 -3
  485. package/modern/TimePicker/shared.d.ts +0 -49
  486. package/modern/TimePicker/shared.js +0 -43
  487. package/modern/TimePicker/timePickerToolbarClasses.d.ts +0 -21
  488. package/modern/TimePicker/timePickerToolbarClasses.js +0 -5
  489. package/modern/YearCalendar/YearCalendar.d.ts +0 -16
  490. package/modern/YearCalendar/YearCalendar.js +0 -410
  491. package/modern/YearCalendar/YearCalendar.types.d.ts +0 -88
  492. package/modern/YearCalendar/YearCalendar.types.js +0 -1
  493. package/modern/YearCalendar/YearCalendarButton.d.ts +0 -23
  494. package/modern/YearCalendar/YearCalendarButton.js +0 -115
  495. package/modern/YearCalendar/index.d.ts +0 -4
  496. package/modern/YearCalendar/index.js +0 -2
  497. package/modern/YearCalendar/yearCalendarClasses.d.ts +0 -13
  498. package/modern/YearCalendar/yearCalendarClasses.js +0 -5
  499. package/modern/dateViewRenderers/dateViewRenderers.d.ts +0 -50
  500. package/modern/dateViewRenderers/dateViewRenderers.js +0 -83
  501. package/modern/dateViewRenderers/index.d.ts +0 -2
  502. package/modern/dateViewRenderers/index.js +0 -1
  503. package/modern/hooks/index.d.ts +0 -6
  504. package/modern/hooks/index.js +0 -6
  505. package/modern/hooks/useIsValidValue.d.ts +0 -7
  506. package/modern/hooks/useIsValidValue.js +0 -11
  507. package/modern/hooks/useParsedFormat.d.ts +0 -16
  508. package/modern/hooks/useParsedFormat.js +0 -41
  509. package/modern/hooks/usePickerActionsContext.d.ts +0 -7
  510. package/modern/hooks/usePickerActionsContext.js +0 -15
  511. package/modern/hooks/usePickerContext.d.ts +0 -8
  512. package/modern/hooks/usePickerContext.js +0 -15
  513. package/modern/hooks/usePickerTranslations.d.ts +0 -1
  514. package/modern/hooks/usePickerTranslations.js +0 -4
  515. package/modern/hooks/useSplitFieldProps.d.ts +0 -24
  516. package/modern/hooks/useSplitFieldProps.js +0 -48
  517. package/modern/icons/index.d.ts +0 -48
  518. package/modern/icons/index.js +0 -67
  519. package/modern/index.d.ts +0 -39
  520. package/modern/index.js +0 -61
  521. package/modern/internals/components/PickerFieldUI.d.ts +0 -143
  522. package/modern/internals/components/PickerFieldUI.js +0 -321
  523. package/modern/internals/components/PickerPopper/PickerPopper.d.ts +0 -68
  524. package/modern/internals/components/PickerPopper/PickerPopper.js +0 -330
  525. package/modern/internals/components/PickerPopper/index.d.ts +0 -4
  526. package/modern/internals/components/PickerPopper/index.js +0 -2
  527. package/modern/internals/components/PickerPopper/pickerPopperClasses.d.ts +0 -9
  528. package/modern/internals/components/PickerPopper/pickerPopperClasses.js +0 -6
  529. package/modern/internals/components/PickerProvider.d.ts +0 -284
  530. package/modern/internals/components/PickerProvider.js +0 -64
  531. package/modern/internals/components/PickerViewRoot/PickerViewRoot.d.ts +0 -1
  532. package/modern/internals/components/PickerViewRoot/PickerViewRoot.js +0 -10
  533. package/modern/internals/components/PickerViewRoot/index.d.ts +0 -1
  534. package/modern/internals/components/PickerViewRoot/index.js +0 -1
  535. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.d.ts +0 -3
  536. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +0 -176
  537. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +0 -74
  538. package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.js +0 -1
  539. package/modern/internals/components/PickersArrowSwitcher/index.d.ts +0 -4
  540. package/modern/internals/components/PickersArrowSwitcher/index.js +0 -2
  541. package/modern/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.d.ts +0 -19
  542. package/modern/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +0 -5
  543. package/modern/internals/components/PickersModalDialog.d.ts +0 -48
  544. package/modern/internals/components/PickersModalDialog.js +0 -51
  545. package/modern/internals/components/PickersToolbar.d.ts +0 -14
  546. package/modern/internals/components/PickersToolbar.js +0 -116
  547. package/modern/internals/components/PickersToolbarButton.d.ts +0 -15
  548. package/modern/internals/components/PickersToolbarButton.js +0 -61
  549. package/modern/internals/components/PickersToolbarText.d.ts +0 -11
  550. package/modern/internals/components/PickersToolbarText.js +0 -52
  551. package/modern/internals/components/pickersToolbarButtonClasses.d.ts +0 -7
  552. package/modern/internals/components/pickersToolbarButtonClasses.js +0 -5
  553. package/modern/internals/components/pickersToolbarClasses.d.ts +0 -11
  554. package/modern/internals/components/pickersToolbarClasses.js +0 -5
  555. package/modern/internals/components/pickersToolbarTextClasses.d.ts +0 -7
  556. package/modern/internals/components/pickersToolbarTextClasses.js +0 -5
  557. package/modern/internals/constants/dimensions.d.ts +0 -7
  558. package/modern/internals/constants/dimensions.js +0 -7
  559. package/modern/internals/demo/DemoContainer.d.ts +0 -27
  560. package/modern/internals/demo/DemoContainer.js +0 -178
  561. package/modern/internals/demo/index.d.ts +0 -1
  562. package/modern/internals/demo/index.js +0 -1
  563. package/modern/internals/hooks/date-helpers-hooks.d.ts +0 -24
  564. package/modern/internals/hooks/date-helpers-hooks.js +0 -40
  565. package/modern/internals/hooks/useClockReferenceDate.d.ts +0 -15
  566. package/modern/internals/hooks/useClockReferenceDate.js +0 -25
  567. package/modern/internals/hooks/useControlledValue.d.ts +0 -38
  568. package/modern/internals/hooks/useControlledValue.js +0 -56
  569. package/modern/internals/hooks/useDesktopPicker/index.d.ts +0 -2
  570. package/modern/internals/hooks/useDesktopPicker/index.js +0 -1
  571. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +0 -16
  572. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +0 -97
  573. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +0 -48
  574. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.js +0 -1
  575. package/modern/internals/hooks/useField/buildSectionsFromFormat.d.ts +0 -15
  576. package/modern/internals/hooks/useField/buildSectionsFromFormat.js +0 -254
  577. package/modern/internals/hooks/useField/index.d.ts +0 -4
  578. package/modern/internals/hooks/useField/index.js +0 -3
  579. package/modern/internals/hooks/useField/syncSelectionToDOM.d.ts +0 -9
  580. package/modern/internals/hooks/useField/syncSelectionToDOM.js +0 -50
  581. package/modern/internals/hooks/useField/useField.d.ts +0 -3
  582. package/modern/internals/hooks/useField/useField.js +0 -9
  583. package/modern/internals/hooks/useField/useField.types.d.ts +0 -329
  584. package/modern/internals/hooks/useField/useField.types.js +0 -1
  585. package/modern/internals/hooks/useField/useField.utils.d.ts +0 -36
  586. package/modern/internals/hooks/useField/useField.utils.js +0 -496
  587. package/modern/internals/hooks/useField/useFieldCharacterEditing.d.ts +0 -29
  588. package/modern/internals/hooks/useField/useFieldCharacterEditing.js +0 -240
  589. package/modern/internals/hooks/useField/useFieldHiddenInputProps.d.ts +0 -20
  590. package/modern/internals/hooks/useField/useFieldHiddenInputProps.js +0 -31
  591. package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +0 -17
  592. package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.js +0 -53
  593. package/modern/internals/hooks/useField/useFieldRootHandleKeyDown.d.ts +0 -16
  594. package/modern/internals/hooks/useField/useFieldRootHandleKeyDown.js +0 -205
  595. package/modern/internals/hooks/useField/useFieldRootProps.d.ts +0 -32
  596. package/modern/internals/hooks/useField/useFieldRootProps.js +0 -150
  597. package/modern/internals/hooks/useField/useFieldSectionContainerProps.d.ts +0 -15
  598. package/modern/internals/hooks/useField/useFieldSectionContainerProps.js +0 -29
  599. package/modern/internals/hooks/useField/useFieldSectionContentProps.d.ts +0 -23
  600. package/modern/internals/hooks/useField/useFieldSectionContentProps.js +0 -226
  601. package/modern/internals/hooks/useField/useFieldState.d.ts +0 -44
  602. package/modern/internals/hooks/useField/useFieldState.js +0 -392
  603. package/modern/internals/hooks/useField/useFieldV6TextField.d.ts +0 -26
  604. package/modern/internals/hooks/useField/useFieldV6TextField.js +0 -409
  605. package/modern/internals/hooks/useField/useFieldV7TextField.d.ts +0 -3
  606. package/modern/internals/hooks/useField/useFieldV7TextField.js +0 -243
  607. package/modern/internals/hooks/useFieldOwnerState.d.ts +0 -6
  608. package/modern/internals/hooks/useFieldOwnerState.js +0 -16
  609. package/modern/internals/hooks/useMobilePicker/index.d.ts +0 -2
  610. package/modern/internals/hooks/useMobilePicker/index.js +0 -1
  611. package/modern/internals/hooks/useMobilePicker/useMobilePicker.d.ts +0 -16
  612. package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +0 -97
  613. package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +0 -42
  614. package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.js +0 -1
  615. package/modern/internals/hooks/useNullableFieldPrivateContext.d.ts +0 -9
  616. package/modern/internals/hooks/useNullableFieldPrivateContext.js +0 -5
  617. package/modern/internals/hooks/useNullablePickerContext.d.ts +0 -5
  618. package/modern/internals/hooks/useNullablePickerContext.js +0 -10
  619. package/modern/internals/hooks/usePicker/hooks/useOrientation.d.ts +0 -2
  620. package/modern/internals/hooks/usePicker/hooks/useOrientation.js +0 -34
  621. package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +0 -21
  622. package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +0 -191
  623. package/modern/internals/hooks/usePicker/index.d.ts +0 -2
  624. package/modern/internals/hooks/usePicker/index.js +0 -1
  625. package/modern/internals/hooks/usePicker/usePicker.d.ts +0 -15
  626. package/modern/internals/hooks/usePicker/usePicker.js +0 -306
  627. package/modern/internals/hooks/usePicker/usePicker.types.d.ts +0 -186
  628. package/modern/internals/hooks/usePicker/usePicker.types.js +0 -1
  629. package/modern/internals/hooks/usePickerPrivateContext.d.ts +0 -4
  630. package/modern/internals/hooks/usePickerPrivateContext.js +0 -9
  631. package/modern/internals/hooks/useReduceAnimations.d.ts +0 -2
  632. package/modern/internals/hooks/useReduceAnimations.js +0 -17
  633. package/modern/internals/hooks/useStaticPicker/index.d.ts +0 -2
  634. package/modern/internals/hooks/useStaticPicker/index.js +0 -1
  635. package/modern/internals/hooks/useStaticPicker/useStaticPicker.d.ts +0 -16
  636. package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +0 -69
  637. package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +0 -46
  638. package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.js +0 -1
  639. package/modern/internals/hooks/useToolbarOwnerState.d.ts +0 -10
  640. package/modern/internals/hooks/useToolbarOwnerState.js +0 -13
  641. package/modern/internals/hooks/useUtils.d.ts +0 -13
  642. package/modern/internals/hooks/useUtils.js +0 -27
  643. package/modern/internals/hooks/useViews.d.ts +0 -79
  644. package/modern/internals/hooks/useViews.js +0 -113
  645. package/modern/internals/index.d.ts +0 -72
  646. package/modern/internals/index.js +0 -40
  647. package/modern/internals/models/common.d.ts +0 -5
  648. package/modern/internals/models/common.js +0 -1
  649. package/modern/internals/models/fields.d.ts +0 -12
  650. package/modern/internals/models/fields.js +0 -1
  651. package/modern/internals/models/formProps.d.ts +0 -14
  652. package/modern/internals/models/formProps.js +0 -1
  653. package/modern/internals/models/helpers.d.ts +0 -6
  654. package/modern/internals/models/helpers.js +0 -1
  655. package/modern/internals/models/index.d.ts +0 -5
  656. package/modern/internals/models/index.js +0 -5
  657. package/modern/internals/models/manager.d.ts +0 -119
  658. package/modern/internals/models/manager.js +0 -1
  659. package/modern/internals/models/pickers.d.ts +0 -1
  660. package/modern/internals/models/pickers.js +0 -1
  661. package/modern/internals/models/props/basePickerProps.d.ts +0 -27
  662. package/modern/internals/models/props/basePickerProps.js +0 -1
  663. package/modern/internals/models/props/tabs.d.ts +0 -9
  664. package/modern/internals/models/props/tabs.js +0 -1
  665. package/modern/internals/models/props/time.d.ts +0 -77
  666. package/modern/internals/models/props/time.js +0 -1
  667. package/modern/internals/models/props/toolbar.d.ts +0 -27
  668. package/modern/internals/models/props/toolbar.js +0 -1
  669. package/modern/internals/models/validation.d.ts +0 -116
  670. package/modern/internals/models/validation.js +0 -1
  671. package/modern/internals/models/value.d.ts +0 -12
  672. package/modern/internals/models/value.js +0 -1
  673. package/modern/internals/utils/createNonRangePickerStepNavigation.d.ts +0 -13
  674. package/modern/internals/utils/createNonRangePickerStepNavigation.js +0 -24
  675. package/modern/internals/utils/createStepNavigation.d.ts +0 -32
  676. package/modern/internals/utils/createStepNavigation.js +0 -34
  677. package/modern/internals/utils/date-time-utils.d.ts +0 -26
  678. package/modern/internals/utils/date-time-utils.js +0 -68
  679. package/modern/internals/utils/date-utils.d.ts +0 -40
  680. package/modern/internals/utils/date-utils.js +0 -124
  681. package/modern/internals/utils/getDefaultReferenceDate.d.ts +0 -31
  682. package/modern/internals/utils/getDefaultReferenceDate.js +0 -59
  683. package/modern/internals/utils/time-utils.d.ts +0 -21
  684. package/modern/internals/utils/time-utils.js +0 -59
  685. package/modern/internals/utils/utils.d.ts +0 -16
  686. package/modern/internals/utils/utils.js +0 -56
  687. package/modern/internals/utils/valueManagers.d.ts +0 -7
  688. package/modern/internals/utils/valueManagers.js +0 -44
  689. package/modern/internals/utils/views.d.ts +0 -16
  690. package/modern/internals/utils/views.js +0 -28
  691. package/modern/locales/beBY.d.ts +0 -83
  692. package/modern/locales/beBY.js +0 -82
  693. package/modern/locales/bgBG.d.ts +0 -83
  694. package/modern/locales/bgBG.js +0 -77
  695. package/modern/locales/bnBD.d.ts +0 -83
  696. package/modern/locales/bnBD.js +0 -77
  697. package/modern/locales/caES.d.ts +0 -83
  698. package/modern/locales/caES.js +0 -77
  699. package/modern/locales/csCZ.d.ts +0 -83
  700. package/modern/locales/csCZ.js +0 -78
  701. package/modern/locales/daDK.d.ts +0 -83
  702. package/modern/locales/daDK.js +0 -78
  703. package/modern/locales/deDE.d.ts +0 -83
  704. package/modern/locales/deDE.js +0 -77
  705. package/modern/locales/elGR.d.ts +0 -83
  706. package/modern/locales/elGR.js +0 -80
  707. package/modern/locales/enUS.d.ts +0 -84
  708. package/modern/locales/enUS.js +0 -74
  709. package/modern/locales/esES.d.ts +0 -83
  710. package/modern/locales/esES.js +0 -77
  711. package/modern/locales/eu.d.ts +0 -83
  712. package/modern/locales/eu.js +0 -80
  713. package/modern/locales/faIR.d.ts +0 -83
  714. package/modern/locales/faIR.js +0 -77
  715. package/modern/locales/fiFI.d.ts +0 -83
  716. package/modern/locales/fiFI.js +0 -77
  717. package/modern/locales/frFR.d.ts +0 -83
  718. package/modern/locales/frFR.js +0 -77
  719. package/modern/locales/heIL.d.ts +0 -83
  720. package/modern/locales/heIL.js +0 -77
  721. package/modern/locales/hrHR.d.ts +0 -83
  722. package/modern/locales/hrHR.js +0 -94
  723. package/modern/locales/huHU.d.ts +0 -83
  724. package/modern/locales/huHU.js +0 -78
  725. package/modern/locales/index.d.ts +0 -41
  726. package/modern/locales/index.js +0 -41
  727. package/modern/locales/isIS.d.ts +0 -83
  728. package/modern/locales/isIS.js +0 -81
  729. package/modern/locales/itIT.d.ts +0 -83
  730. package/modern/locales/itIT.js +0 -77
  731. package/modern/locales/jaJP.d.ts +0 -83
  732. package/modern/locales/jaJP.js +0 -78
  733. package/modern/locales/koKR.d.ts +0 -83
  734. package/modern/locales/koKR.js +0 -78
  735. package/modern/locales/kzKZ.d.ts +0 -83
  736. package/modern/locales/kzKZ.js +0 -82
  737. package/modern/locales/mk.d.ts +0 -82
  738. package/modern/locales/mk.js +0 -77
  739. package/modern/locales/nbNO.d.ts +0 -83
  740. package/modern/locales/nbNO.js +0 -77
  741. package/modern/locales/nlNL.d.ts +0 -83
  742. package/modern/locales/nlNL.js +0 -77
  743. package/modern/locales/nnNO.d.ts +0 -83
  744. package/modern/locales/nnNO.js +0 -77
  745. package/modern/locales/plPL.d.ts +0 -83
  746. package/modern/locales/plPL.js +0 -79
  747. package/modern/locales/ptBR.d.ts +0 -83
  748. package/modern/locales/ptBR.js +0 -79
  749. package/modern/locales/ptPT.d.ts +0 -83
  750. package/modern/locales/ptPT.js +0 -77
  751. package/modern/locales/roRO.d.ts +0 -83
  752. package/modern/locales/roRO.js +0 -78
  753. package/modern/locales/ruRU.d.ts +0 -83
  754. package/modern/locales/ruRU.js +0 -78
  755. package/modern/locales/skSK.d.ts +0 -83
  756. package/modern/locales/skSK.js +0 -82
  757. package/modern/locales/svSE.d.ts +0 -83
  758. package/modern/locales/svSE.js +0 -77
  759. package/modern/locales/trTR.d.ts +0 -83
  760. package/modern/locales/trTR.js +0 -81
  761. package/modern/locales/ukUA.d.ts +0 -83
  762. package/modern/locales/ukUA.js +0 -77
  763. package/modern/locales/urPK.d.ts +0 -83
  764. package/modern/locales/urPK.js +0 -82
  765. package/modern/locales/utils/getPickersLocalization.d.ts +0 -83
  766. package/modern/locales/utils/getPickersLocalization.js +0 -12
  767. package/modern/locales/utils/pickersLocaleTextApi.d.ts +0 -118
  768. package/modern/locales/utils/pickersLocaleTextApi.js +0 -1
  769. package/modern/locales/viVN.d.ts +0 -83
  770. package/modern/locales/viVN.js +0 -77
  771. package/modern/locales/zhCN.d.ts +0 -83
  772. package/modern/locales/zhCN.js +0 -76
  773. package/modern/locales/zhHK.d.ts +0 -83
  774. package/modern/locales/zhHK.js +0 -76
  775. package/modern/locales/zhTW.d.ts +0 -83
  776. package/modern/locales/zhTW.js +0 -76
  777. package/modern/managers/index.d.ts +0 -6
  778. package/modern/managers/index.js +0 -3
  779. package/modern/managers/useDateManager.d.ts +0 -14
  780. package/modern/managers/useDateManager.js +0 -48
  781. package/modern/managers/useDateTimeManager.d.ts +0 -15
  782. package/modern/managers/useDateTimeManager.js +0 -53
  783. package/modern/managers/useTimeManager.d.ts +0 -15
  784. package/modern/managers/useTimeManager.js +0 -48
  785. package/modern/models/adapters.d.ts +0 -542
  786. package/modern/models/adapters.js +0 -1
  787. package/modern/models/common.d.ts +0 -6
  788. package/modern/models/common.js +0 -1
  789. package/modern/models/fields.d.ts +0 -139
  790. package/modern/models/fields.js +0 -1
  791. package/modern/models/index.d.ts +0 -9
  792. package/modern/models/index.js +0 -11
  793. package/modern/models/manager.d.ts +0 -78
  794. package/modern/models/manager.js +0 -1
  795. package/modern/models/pickers.d.ts +0 -58
  796. package/modern/models/pickers.js +0 -1
  797. package/modern/models/timezone.d.ts +0 -11
  798. package/modern/models/timezone.js +0 -1
  799. package/modern/models/validation.d.ts +0 -22
  800. package/modern/models/validation.js +0 -1
  801. package/modern/models/views.d.ts +0 -3
  802. package/modern/models/views.js +0 -1
  803. package/modern/package.json +0 -1
  804. package/modern/themeAugmentation/components.d.ts +0 -190
  805. package/modern/themeAugmentation/index.d.ts +0 -3
  806. package/modern/themeAugmentation/index.js +0 -0
  807. package/modern/themeAugmentation/overrides.d.ts +0 -64
  808. package/modern/themeAugmentation/props.d.ts +0 -102
  809. package/modern/timeViewRenderers/index.d.ts +0 -2
  810. package/modern/timeViewRenderers/index.js +0 -1
  811. package/modern/timeViewRenderers/timeViewRenderers.d.ts +0 -103
  812. package/modern/timeViewRenderers/timeViewRenderers.js +0 -183
  813. package/modern/validation/extractValidationProps.d.ts +0 -11
  814. package/modern/validation/extractValidationProps.js +0 -14
  815. package/modern/validation/index.d.ts +0 -9
  816. package/modern/validation/index.js +0 -5
  817. package/modern/validation/useValidation.d.ts +0 -68
  818. package/modern/validation/useValidation.js +0 -53
  819. package/modern/validation/validateDate.d.ts +0 -18
  820. package/modern/validation/validateDate.js +0 -55
  821. package/modern/validation/validateDateTime.d.ts +0 -19
  822. package/modern/validation/validateDateTime.js +0 -39
  823. package/modern/validation/validateTime.d.ts +0 -18
  824. package/modern/validation/validateTime.js +0 -59
  825. 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 {};