@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,329 +0,0 @@
1
- import * as React from 'react';
2
- import { FieldSectionType, FieldSection, FieldSelectedSections, MuiPickersAdapter, TimezoneProps, FieldSectionContentType, PickerValidDate, FieldRef, OnErrorProps, InferFieldSection, PickerManager, PickerValueType } from "../../../models/index.js";
3
- import { InternalPropNames } from "../../../hooks/useSplitFieldProps.js";
4
- import type { PickersSectionElement, PickersSectionListRef } from '../../../PickersSectionList';
5
- import { FormProps, InferNonNullablePickerValue, PickerValidValue } from "../../models/index.js";
6
- export interface UseFieldParameters<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError, TValidationProps extends {}, TProps extends UseFieldProps<TEnableAccessibleFieldDOMStructure>> {
7
- manager: PickerManager<TValue, TEnableAccessibleFieldDOMStructure, TError, TValidationProps, any>;
8
- props: TProps;
9
- skipContextFieldRefAssignment?: boolean;
10
- }
11
- export interface UseFieldInternalProps<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError> extends TimezoneProps, FormProps, OnErrorProps<TValue, TError> {
12
- /**
13
- * The selected value.
14
- * Used when the component is controlled.
15
- */
16
- value?: TValue;
17
- /**
18
- * The default value. Use when the component is not controlled.
19
- */
20
- defaultValue?: TValue;
21
- /**
22
- * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.
23
- * For example, on time fields it will be used to determine the date to set.
24
- * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.
25
- */
26
- referenceDate?: PickerValidDate;
27
- /**
28
- * Callback fired when the value changes.
29
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
30
- * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
31
- * @param {TValue} value The new value.
32
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
33
- */
34
- onChange?: FieldChangeHandler<TValue, TError>;
35
- /**
36
- * Format of the date when rendered in the input(s).
37
- */
38
- format: string;
39
- /**
40
- * Density of the format when rendered in the input.
41
- * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
42
- * @default "dense"
43
- */
44
- formatDensity?: 'dense' | 'spacious';
45
- /**
46
- * If `true`, the format will respect the leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
47
- * If `false`, the format will always add leading zeroes (for example on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
48
- *
49
- * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (for example "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
50
- *
51
- * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.
52
- * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
53
- *
54
- * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
55
- * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
56
- *
57
- * @default false
58
- */
59
- shouldRespectLeadingZeros?: boolean;
60
- /**
61
- * The currently selected sections.
62
- * This prop accepts four formats:
63
- * 1. If a number is provided, the section at this index will be selected.
64
- * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
65
- * 3. If `"all"` is provided, all the sections will be selected.
66
- * 4. If `null` is provided, no section will be selected.
67
- * If not provided, the selected sections will be handled internally.
68
- */
69
- selectedSections?: FieldSelectedSections;
70
- /**
71
- * Callback fired when the selected sections change.
72
- * @param {FieldSelectedSections} newValue The new selected sections.
73
- */
74
- onSelectedSectionsChange?: (newValue: FieldSelectedSections) => void;
75
- /**
76
- * The ref object used to imperatively interact with the field.
77
- */
78
- unstableFieldRef?: React.Ref<FieldRef<TValue>>;
79
- /**
80
- * @default true
81
- */
82
- enableAccessibleFieldDOMStructure?: TEnableAccessibleFieldDOMStructure;
83
- /**
84
- * If `true`, the `input` element is focused during the first mount.
85
- * @default false
86
- */
87
- autoFocus?: boolean;
88
- /**
89
- * If `true`, the component is displayed in focused state.
90
- */
91
- focused?: boolean;
92
- }
93
- export type UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure extends boolean> = TEnableAccessibleFieldDOMStructure extends false ? {
94
- clearable?: boolean;
95
- error?: boolean;
96
- placeholder?: string;
97
- inputRef?: React.Ref<HTMLInputElement>;
98
- onClick?: React.MouseEventHandler;
99
- onFocus?: React.FocusEventHandler;
100
- onKeyDown?: React.KeyboardEventHandler;
101
- onBlur?: React.FocusEventHandler;
102
- onPaste?: React.ClipboardEventHandler<HTMLDivElement>;
103
- onClear?: React.MouseEventHandler;
104
- } : {
105
- clearable?: boolean;
106
- error?: boolean;
107
- focused?: boolean;
108
- sectionListRef?: React.Ref<PickersSectionListRef>;
109
- onClick?: React.MouseEventHandler;
110
- onKeyDown?: React.KeyboardEventHandler;
111
- onFocus?: React.FocusEventHandler;
112
- onBlur?: React.FocusEventHandler;
113
- onInput?: React.FormEventHandler<HTMLDivElement>;
114
- onPaste?: React.ClipboardEventHandler<HTMLDivElement>;
115
- onClear?: React.MouseEventHandler;
116
- };
117
- type UseFieldAdditionalProps<TEnableAccessibleFieldDOMStructure extends boolean> = TEnableAccessibleFieldDOMStructure extends false ? {
118
- /**
119
- * The aria label to set on the button that opens the Picker.
120
- */
121
- openPickerAriaLabel: string;
122
- enableAccessibleFieldDOMStructure: false;
123
- focused: boolean | undefined;
124
- inputMode: 'text' | 'numeric';
125
- placeholder: string;
126
- value: string;
127
- onChange: React.ChangeEventHandler<HTMLInputElement>;
128
- autoComplete: 'off';
129
- } : {
130
- /**
131
- * The aria label to set on the button that opens the Picker.
132
- */
133
- openPickerAriaLabel: string;
134
- enableAccessibleFieldDOMStructure: true;
135
- elements: PickersSectionElement[];
136
- tabIndex: number | undefined;
137
- contentEditable: boolean;
138
- value: string;
139
- onChange: React.ChangeEventHandler<HTMLInputElement>;
140
- areAllSectionsEmpty: boolean;
141
- focused: boolean;
142
- };
143
- export type UseFieldReturnValue<TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseFieldProps<TEnableAccessibleFieldDOMStructure>> = Required<Pick<UseFieldInternalProps<any, any, any>, 'disabled' | 'readOnly' | 'autoFocus'>> & Required<UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure>> & UseFieldAdditionalProps<TEnableAccessibleFieldDOMStructure> & Omit<TProps, InternalPropNames<PickerValueType>>;
144
- export type FieldSectionValueBoundaries<SectionType extends FieldSectionType> = {
145
- minimum: number;
146
- maximum: number;
147
- } & (SectionType extends 'day' ? {
148
- longestMonth: PickerValidDate;
149
- } : {});
150
- export type FieldSectionsValueBoundaries = { [SectionType in FieldSectionType]: (params: {
151
- currentDate: PickerValidDate | null;
152
- format: string;
153
- contentType: FieldSectionContentType;
154
- }) => FieldSectionValueBoundaries<SectionType> };
155
- export type FieldSectionsBoundaries = { [SectionType in FieldSectionType]: {
156
- minimum: number;
157
- maximum: number;
158
- } };
159
- export type FieldChangeHandler<TValue extends PickerValidValue, TError> = (value: TValue, context: FieldChangeHandlerContext<TError>) => void;
160
- export interface FieldChangeHandlerContext<TError> {
161
- validationError: TError;
162
- }
163
- export type FieldParsedSelectedSections = number | 'all' | null;
164
- export interface FieldValueManager<TValue extends PickerValidValue> {
165
- /**
166
- * Creates the section list from the current value.
167
- * The `prevSections` are used on the range fields to avoid losing the sections of a partially filled date when editing the other date.
168
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
169
- * @param {TValue} value The current value to generate sections from.
170
- * @param {(date: PickerValidDate | null) => FieldSection[]} getSectionsFromDate Returns the sections of the given date.
171
- * @returns {InferFieldSection<TValue>[]} The new section list.
172
- */
173
- getSectionsFromValue: (value: TValue, getSectionsFromDate: (date: PickerValidDate | null) => FieldSection[]) => InferFieldSection<TValue>[];
174
- /**
175
- * Creates the string value to render in the input based on the current section list.
176
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
177
- * @param {InferFieldSection<TValue>[]} sections The current section list.
178
- * @param {string} localizedDigits The conversion table from localized to 0-9 digits.
179
- * @param {boolean} isRtl `true` if the current orientation is "right to left"
180
- * @returns {string} The string value to render in the input.
181
- */
182
- getV6InputValueFromSections: (sections: InferFieldSection<TValue>[], localizedDigits: string[], isRtl: boolean) => string;
183
- /**
184
- * Creates the string value to render in the input based on the current section list.
185
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
186
- * @param {InferFieldSection<TValue>[]} sections The current section list.
187
- * @returns {string} The string value to render in the input.
188
- */
189
- getV7HiddenInputValueFromSections: (sections: InferFieldSection<TValue>[]) => string;
190
- /**
191
- * Parses a string version (most of the time coming from the input).
192
- * This method should only be used when the change does not come from a single section.
193
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
194
- * @param {string} valueStr The string value to parse.
195
- * @param {TValue} referenceValue The reference value currently stored in state.
196
- * @param {(dateStr: string, referenceDate: PickerValidDate) => PickerValidDate | null} parseDate A method to convert a string date into a parsed one.
197
- * @returns {TValue} The new parsed value.
198
- */
199
- parseValueStr: (valueStr: string, referenceValue: InferNonNullablePickerValue<TValue>, parseDate: (dateStr: string, referenceDate: PickerValidDate) => PickerValidDate | null) => TValue;
200
- /**
201
- * Update the reference value with the new value.
202
- * This method must make sure that no date inside the returned `referenceValue` is invalid.
203
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
204
- * @param {MuiPickersAdapter} utils The utils to manipulate the date.
205
- * @param {TValue} value The new value from which we want to take all valid dates in the `referenceValue` state.
206
- * @param {TValue} prevReferenceValue The previous reference value. It is used as a fallback for invalid dates in the new value.
207
- * @returns {TValue} The new reference value with no invalid date.
208
- */
209
- updateReferenceValue: (utils: MuiPickersAdapter, value: TValue, prevReferenceValue: InferNonNullablePickerValue<TValue>) => InferNonNullablePickerValue<TValue>;
210
- /**
211
- * Extract from the given value the date that contains the given section.
212
- * @param {TValue} value The value to extract the date from.
213
- * @param {InferFieldSection<TValue>} section The section to get the date from.
214
- * @returns {PickerValidDate | null} The date that contains the section.
215
- */
216
- getDateFromSection: (value: TValue, section: InferFieldSection<TValue>) => PickerValidDate | null;
217
- /**
218
- * Get the sections of the date that contains the given section.
219
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
220
- * @param {InferFieldSection<TValue>[]} sections The sections of the full value.
221
- * @param {InferFieldSection<TValue>} section A section of the date from which we want to get all the sections.
222
- * @returns {InferFieldSection<TValue>[]} The sections of the date that contains the section.
223
- */
224
- getDateSectionsFromValue: (sections: InferFieldSection<TValue>[], section: InferFieldSection<TValue>) => InferFieldSection<TValue>[];
225
- /**
226
- * Creates a new value based on the provided date and the current value.
227
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
228
- * @param {TValue} value The value to update the date in.
229
- * @param {InferFieldSection<TValue>} section A section of the date we want to update in the value.
230
- * @param {PickerValidDate | null} date The date that contains the section.
231
- * @returns {TValue} The updated value.
232
- */
233
- updateDateInValue: (value: TValue, section: InferFieldSection<TValue>, date: PickerValidDate | null) => TValue;
234
- /**
235
- * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
236
- * @param {InferFieldSection<TValue>[]} sections The sections of the full value.
237
- * @param {InferFieldSection<TValue>} section A section of the date from which we want to clear all the sections.
238
- * @returns {InferFieldSection<TValue>[]} The sections of the full value with all the sections of the target date cleared.
239
- */
240
- clearDateSections: (sections: InferFieldSection<TValue>[], section: InferFieldSection<TValue>) => InferFieldSection<TValue>[];
241
- }
242
- export interface UseFieldState<TValue extends PickerValidValue> {
243
- /**
244
- * Last value returned by `useControlledValue`.
245
- */
246
- lastExternalValue: TValue;
247
- /**
248
- * Last set of parameters used to generate the sections.
249
- */
250
- lastSectionsDependencies: {
251
- format: string;
252
- isRtl: boolean;
253
- locale: any;
254
- };
255
- /**
256
- * Non-nullable value used to keep trace of the timezone and the date parts not present in the format.
257
- * It is updated whenever we have a valid date (for the Range Pickers we update only the portion of the range that is valid).
258
- */
259
- referenceValue: InferNonNullablePickerValue<TValue>;
260
- /**
261
- * Sections currently displayed in the field.
262
- */
263
- sections: InferFieldSection<TValue>[];
264
- /**
265
- * Android `onChange` behavior when the input selection is not empty is quite different from a desktop behavior.
266
- * There are two `onChange` calls:
267
- * 1. A call with the selected content removed.
268
- * 2. A call with the key pressed added to the value.
269
- **
270
- * For instance, if the input value equals `month / day / year` and `day` is selected.
271
- * The pressing `1` will have the following behavior:
272
- * 1. A call with `month / / year`.
273
- * 2. A call with `month / 1 / year`.
274
- *
275
- * But if you don't update the input with the value passed on the first `onChange`.
276
- * Then the second `onChange` will add the key press at the beginning of the selected value.
277
- * 1. A call with `month / / year` that we don't set into state.
278
- * 2. A call with `month / 1day / year`.
279
- *
280
- * The property below allows us to set the first `onChange` value into state waiting for the second one.
281
- */
282
- tempValueStrAndroid: string | null;
283
- /**
284
- * The current query when editing the field using letters or digits.
285
- */
286
- characterQuery: CharacterEditingQuery | null;
287
- }
288
- export type SectionNeighbors = {
289
- [sectionIndex: number]: {
290
- /**
291
- * Index of the next section displayed on the left. `null` if it's the leftmost section.
292
- */
293
- leftIndex: number | null;
294
- /**
295
- * Index of the next section displayed on the right. `null` if it's the rightmost section.
296
- */
297
- rightIndex: number | null;
298
- };
299
- };
300
- export type SectionOrdering = {
301
- /**
302
- * For each section index provide the index of the section displayed on the left and on the right.
303
- */
304
- neighbors: SectionNeighbors;
305
- /**
306
- * Index of the section displayed on the far left
307
- */
308
- startIndex: number;
309
- /**
310
- * Index of the section displayed on the far right
311
- */
312
- endIndex: number;
313
- };
314
- export interface CharacterEditingQuery {
315
- value: string;
316
- sectionIndex: number;
317
- sectionType: FieldSectionType;
318
- }
319
- export type UseFieldProps<TEnableAccessibleFieldDOMStructure extends boolean> = UseFieldForwardedProps<TEnableAccessibleFieldDOMStructure> & {
320
- enableAccessibleFieldDOMStructure?: boolean;
321
- };
322
- export interface UseFieldDOMGetters {
323
- isReady: () => boolean;
324
- getRoot: () => HTMLElement;
325
- getSectionContainer: (sectionIndex: number) => HTMLElement;
326
- getSectionContent: (sectionIndex: number) => HTMLElement;
327
- getSectionIndexFromDOMElement: (element: Element | null | undefined) => number | null;
328
- }
329
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,36 +0,0 @@
1
- import { FieldSectionsValueBoundaries, SectionOrdering, FieldSectionValueBoundaries, FieldParsedSelectedSections } from "./useField.types.js";
2
- import { FieldSectionType, FieldSection, MuiPickersAdapter, FieldSectionContentType, PickersTimezone, PickerValidDate, FieldSelectedSections, PickerValueType, InferFieldSection } from "../../../models/index.js";
3
- import { PickerValidValue } from "../../models/index.js";
4
- export declare const getDateSectionConfigFromFormatToken: (utils: MuiPickersAdapter, formatToken: string) => Pick<FieldSection, "type" | "contentType"> & {
5
- maxLength: number | undefined;
6
- };
7
- export declare const getDaysInWeekStr: (utils: MuiPickersAdapter, format: string) => string[];
8
- export declare const getLetterEditingOptions: (utils: MuiPickersAdapter, timezone: PickersTimezone, sectionType: FieldSectionType, format: string) => string[];
9
- export declare const FORMAT_SECONDS_NO_LEADING_ZEROS = "s";
10
- export declare const getLocalizedDigits: (utils: MuiPickersAdapter) => string[];
11
- export declare const removeLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string;
12
- export declare const applyLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string;
13
- export declare const isStringNumber: (valueStr: string, localizedDigits: string[]) => boolean;
14
- /**
15
- * Make sure the value of a digit section have the right amount of leading zeros.
16
- * E.g.: `03` => `3`
17
- * Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed.
18
- */
19
- export declare const cleanLeadingZeros: (valueStr: string, size: number) => string;
20
- export declare const cleanDigitSectionValue: (utils: MuiPickersAdapter, value: number, sectionBoundaries: FieldSectionValueBoundaries<any>, localizedDigits: string[], section: Pick<FieldSection, "format" | "type" | "contentType" | "hasLeadingZerosInFormat" | "hasLeadingZerosInInput" | "maxLength">) => string;
21
- export declare const getSectionVisibleValue: (section: FieldSection, target: "input-rtl" | "input-ltr" | "non-input", localizedDigits: string[]) => string;
22
- export declare const changeSectionValueFormat: (utils: MuiPickersAdapter, valueStr: string, currentFormat: string, newFormat: string) => string;
23
- export declare const doesSectionFormatHaveLeadingZeros: (utils: MuiPickersAdapter, contentType: FieldSectionContentType, sectionType: FieldSectionType, format: string) => boolean;
24
- /**
25
- * Some date libraries like `dayjs` don't support parsing from date with escaped characters.
26
- * To make sure that the parsing works, we are building a format and a date without any separator.
27
- */
28
- export declare const getDateFromDateSections: (utils: MuiPickersAdapter, sections: FieldSection[], localizedDigits: string[]) => PickerValidDate;
29
- export declare const createDateStrForV7HiddenInputFromSections: (sections: FieldSection[]) => string;
30
- export declare const createDateStrForV6InputFromSections: (sections: FieldSection[], localizedDigits: string[], isRtl: boolean) => string;
31
- export declare const getSectionsBoundaries: (utils: MuiPickersAdapter, localizedDigits: string[], timezone: PickersTimezone) => FieldSectionsValueBoundaries;
32
- export declare const validateSections: <TValue extends PickerValidValue>(sections: InferFieldSection<TValue>[], valueType: PickerValueType) => void;
33
- export declare const mergeDateIntoReferenceDate: (utils: MuiPickersAdapter, dateToTransferFrom: PickerValidDate, sections: FieldSection[], referenceDate: PickerValidDate, shouldLimitToEditedSections: boolean) => PickerValidDate;
34
- export declare const isAndroid: () => boolean;
35
- export declare const getSectionOrder: (sections: FieldSection[], shouldApplyRTL: boolean) => SectionOrdering;
36
- export declare const parseSelectedSections: (selectedSections: FieldSelectedSections, sections: FieldSection[]) => FieldParsedSelectedSections;