@mui/x-date-pickers 9.6.0 → 9.8.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 (490) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.mts +2 -2
  2. package/AdapterDateFns/AdapterDateFns.d.ts +2 -2
  3. package/AdapterDateFnsBase/AdapterDateFnsBase.d.mts +2 -2
  4. package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +2 -2
  5. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.mts +2 -2
  6. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +2 -2
  7. package/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.mts +1 -1
  8. package/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +1 -1
  9. package/AdapterDateFnsV2/AdapterDateFnsV2.d.mts +1 -1
  10. package/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +1 -1
  11. package/AdapterDayjs/AdapterDayjs.d.mts +29 -29
  12. package/AdapterDayjs/AdapterDayjs.d.ts +29 -29
  13. package/AdapterDayjs/AdapterDayjs.mjs +1 -0
  14. package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.d.mts +4 -4
  15. package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.d.ts +4 -4
  16. package/AdapterDayjsBuddhist/AdapterDayjsBuddhist.mjs +1 -0
  17. package/AdapterLuxon/AdapterLuxon.d.mts +1 -1
  18. package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
  19. package/AdapterMoment/AdapterMoment.d.mts +29 -28
  20. package/AdapterMoment/AdapterMoment.d.ts +29 -28
  21. package/AdapterMomentHijri/AdapterMomentHijri.d.mts +14 -13
  22. package/AdapterMomentHijri/AdapterMomentHijri.d.ts +14 -13
  23. package/AdapterMomentHijri/AdapterMomentHijri.js +2 -2
  24. package/AdapterMomentHijri/AdapterMomentHijri.mjs +3 -2
  25. package/AdapterMomentJalaali/AdapterMomentJalaali.d.mts +13 -12
  26. package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +13 -12
  27. package/AdapterMomentJalaali/AdapterMomentJalaali.js +2 -2
  28. package/AdapterMomentJalaali/AdapterMomentJalaali.mjs +3 -2
  29. package/CHANGELOG.md +241 -2
  30. package/DateCalendar/DateCalendar.d.mts +1 -1
  31. package/DateCalendar/DateCalendar.d.ts +1 -1
  32. package/DateCalendar/DateCalendar.types.d.mts +16 -16
  33. package/DateCalendar/DateCalendar.types.d.ts +16 -16
  34. package/DateCalendar/DayCalendar.d.mts +9 -9
  35. package/DateCalendar/DayCalendar.d.ts +9 -9
  36. package/DateCalendar/DayCalendar.js +5 -4
  37. package/DateCalendar/DayCalendar.mjs +5 -4
  38. package/DateCalendar/PickersFadeTransitionGroup.d.mts +1 -1
  39. package/DateCalendar/PickersFadeTransitionGroup.d.ts +1 -1
  40. package/DateCalendar/PickersSlideTransition.d.mts +3 -3
  41. package/DateCalendar/PickersSlideTransition.d.ts +3 -3
  42. package/DateCalendar/useCalendarState.d.mts +3 -3
  43. package/DateCalendar/useCalendarState.d.ts +3 -3
  44. package/DateCalendar/useIsDateDisabled.d.mts +3 -3
  45. package/DateCalendar/useIsDateDisabled.d.ts +3 -3
  46. package/DateField/DateField.d.mts +1 -1
  47. package/DateField/DateField.d.ts +1 -1
  48. package/DateField/DateField.js +1 -0
  49. package/DateField/DateField.mjs +1 -0
  50. package/DateField/DateField.types.d.mts +6 -6
  51. package/DateField/DateField.types.d.ts +6 -6
  52. package/DateField/useDateField.d.mts +1 -1
  53. package/DateField/useDateField.d.ts +1 -1
  54. package/DatePicker/DatePicker.d.mts +1 -1
  55. package/DatePicker/DatePicker.d.ts +1 -1
  56. package/DatePicker/DatePicker.types.d.mts +4 -4
  57. package/DatePicker/DatePicker.types.d.ts +4 -4
  58. package/DatePicker/DatePickerToolbar.d.mts +2 -2
  59. package/DatePicker/DatePickerToolbar.d.ts +2 -2
  60. package/DatePicker/shared.d.mts +10 -10
  61. package/DatePicker/shared.d.ts +10 -10
  62. package/DateTimeField/DateTimeField.d.mts +1 -1
  63. package/DateTimeField/DateTimeField.d.ts +1 -1
  64. package/DateTimeField/DateTimeField.js +1 -0
  65. package/DateTimeField/DateTimeField.mjs +1 -0
  66. package/DateTimeField/DateTimeField.types.d.mts +7 -7
  67. package/DateTimeField/DateTimeField.types.d.ts +7 -7
  68. package/DateTimeField/useDateTimeField.d.mts +1 -1
  69. package/DateTimeField/useDateTimeField.d.ts +1 -1
  70. package/DateTimePicker/DateTimePicker.d.mts +1 -1
  71. package/DateTimePicker/DateTimePicker.d.ts +1 -1
  72. package/DateTimePicker/DateTimePicker.types.d.mts +5 -5
  73. package/DateTimePicker/DateTimePicker.types.d.ts +5 -5
  74. package/DateTimePicker/DateTimePickerTabs.d.mts +2 -2
  75. package/DateTimePicker/DateTimePickerTabs.d.ts +2 -2
  76. package/DateTimePicker/DateTimePickerToolbar.d.mts +5 -5
  77. package/DateTimePicker/DateTimePickerToolbar.d.ts +5 -5
  78. package/DateTimePicker/shared.d.mts +15 -15
  79. package/DateTimePicker/shared.d.ts +15 -15
  80. package/DayCalendarSkeleton/DayCalendarSkeleton.d.mts +3 -3
  81. package/DayCalendarSkeleton/DayCalendarSkeleton.d.ts +3 -3
  82. package/DesktopDatePicker/DesktopDatePicker.d.mts +1 -1
  83. package/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
  84. package/DesktopDatePicker/DesktopDatePicker.types.d.mts +4 -4
  85. package/DesktopDatePicker/DesktopDatePicker.types.d.ts +4 -4
  86. package/DesktopDateTimePicker/DesktopDateTimePicker.d.mts +1 -1
  87. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
  88. package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.mts +6 -6
  89. package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +6 -6
  90. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.mts +2 -2
  91. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.d.ts +2 -2
  92. package/DesktopTimePicker/DesktopTimePicker.d.mts +1 -1
  93. package/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
  94. package/DesktopTimePicker/DesktopTimePicker.types.d.mts +8 -8
  95. package/DesktopTimePicker/DesktopTimePicker.types.d.ts +8 -8
  96. package/DigitalClock/DigitalClock.d.mts +1 -1
  97. package/DigitalClock/DigitalClock.d.ts +1 -1
  98. package/DigitalClock/DigitalClock.types.d.mts +6 -6
  99. package/DigitalClock/DigitalClock.types.d.ts +6 -6
  100. package/LocalizationProvider/LocalizationProvider.d.mts +2 -2
  101. package/LocalizationProvider/LocalizationProvider.d.ts +2 -2
  102. package/MobileDatePicker/MobileDatePicker.d.mts +1 -1
  103. package/MobileDatePicker/MobileDatePicker.d.ts +1 -1
  104. package/MobileDatePicker/MobileDatePicker.types.d.mts +3 -3
  105. package/MobileDatePicker/MobileDatePicker.types.d.ts +3 -3
  106. package/MobileDateTimePicker/MobileDateTimePicker.d.mts +1 -1
  107. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -1
  108. package/MobileDateTimePicker/MobileDateTimePicker.types.d.mts +3 -3
  109. package/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +3 -3
  110. package/MobileTimePicker/MobileTimePicker.d.mts +2 -2
  111. package/MobileTimePicker/MobileTimePicker.d.ts +2 -2
  112. package/MobileTimePicker/MobileTimePicker.types.d.mts +5 -5
  113. package/MobileTimePicker/MobileTimePicker.types.d.ts +5 -5
  114. package/MonthCalendar/MonthCalendar.d.mts +2 -2
  115. package/MonthCalendar/MonthCalendar.d.ts +2 -2
  116. package/MonthCalendar/MonthCalendar.types.d.mts +8 -8
  117. package/MonthCalendar/MonthCalendar.types.d.ts +8 -8
  118. package/MonthCalendar/MonthCalendarButton.d.mts +2 -2
  119. package/MonthCalendar/MonthCalendarButton.d.ts +2 -2
  120. package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.mts +1 -1
  121. package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +1 -1
  122. package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.mts +7 -7
  123. package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +7 -7
  124. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.mts +2 -2
  125. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +2 -2
  126. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.mts +3 -3
  127. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +3 -3
  128. package/PickerDay/PickerDay.d.mts +1 -1
  129. package/PickerDay/PickerDay.d.ts +1 -1
  130. package/PickerDay/PickerDay.types.d.mts +5 -5
  131. package/PickerDay/PickerDay.types.d.ts +5 -5
  132. package/PickersActionBar/PickersActionBar.d.mts +1 -1
  133. package/PickersActionBar/PickersActionBar.d.ts +1 -1
  134. package/PickersCalendarHeader/PickersCalendarHeader.d.mts +1 -1
  135. package/PickersCalendarHeader/PickersCalendarHeader.d.ts +1 -1
  136. package/PickersCalendarHeader/PickersCalendarHeader.types.d.mts +9 -9
  137. package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +9 -9
  138. package/PickersLayout/PickersLayout.d.mts +2 -2
  139. package/PickersLayout/PickersLayout.d.ts +2 -2
  140. package/PickersLayout/PickersLayout.types.d.mts +11 -11
  141. package/PickersLayout/PickersLayout.types.d.ts +11 -11
  142. package/PickersLayout/usePickerLayout.d.mts +2 -2
  143. package/PickersLayout/usePickerLayout.d.ts +2 -2
  144. package/PickersSectionList/PickersSectionList.types.d.mts +4 -4
  145. package/PickersSectionList/PickersSectionList.types.d.ts +4 -4
  146. package/PickersShortcuts/PickersShortcuts.d.mts +3 -3
  147. package/PickersShortcuts/PickersShortcuts.d.ts +3 -3
  148. package/PickersTextField/PickersFilledInput/PickersFilledInput.d.mts +2 -2
  149. package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +2 -2
  150. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
  151. package/PickersTextField/PickersFilledInput/PickersFilledInput.mjs +1 -0
  152. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.mts +1 -1
  153. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +1 -1
  154. package/PickersTextField/PickersInput/PickersInput.d.mts +2 -2
  155. package/PickersTextField/PickersInput/PickersInput.d.ts +2 -2
  156. package/PickersTextField/PickersInput/PickersInput.js +1 -0
  157. package/PickersTextField/PickersInput/PickersInput.mjs +1 -0
  158. package/PickersTextField/PickersInput/pickersInputClasses.d.mts +1 -1
  159. package/PickersTextField/PickersInput/pickersInputClasses.d.ts +1 -1
  160. package/PickersTextField/PickersInputBase/PickersInputBase.d.mts +2 -2
  161. package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +2 -2
  162. package/PickersTextField/PickersInputBase/PickersInputBase.js +16 -1
  163. package/PickersTextField/PickersInputBase/PickersInputBase.mjs +16 -1
  164. package/PickersTextField/PickersInputBase/PickersInputBase.types.d.mts +6 -5
  165. package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +6 -5
  166. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.mts +1 -1
  167. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +1 -1
  168. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +12 -8
  169. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.mjs +12 -8
  170. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.mts +1 -1
  171. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +1 -1
  172. package/PickersTextField/PickersTextField.js +4 -1
  173. package/PickersTextField/PickersTextField.mjs +4 -1
  174. package/PickersTextField/PickersTextField.types.d.mts +6 -6
  175. package/PickersTextField/PickersTextField.types.d.ts +6 -6
  176. package/PickersTextField/usePickerTextFieldOwnerState.d.mts +1 -1
  177. package/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
  178. package/StaticDatePicker/StaticDatePicker.d.mts +1 -1
  179. package/StaticDatePicker/StaticDatePicker.d.ts +1 -1
  180. package/StaticDatePicker/StaticDatePicker.types.d.mts +3 -3
  181. package/StaticDatePicker/StaticDatePicker.types.d.ts +3 -3
  182. package/StaticDateTimePicker/StaticDateTimePicker.d.mts +1 -1
  183. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +1 -1
  184. package/StaticDateTimePicker/StaticDateTimePicker.types.d.mts +3 -3
  185. package/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +3 -3
  186. package/StaticTimePicker/StaticTimePicker.d.mts +1 -1
  187. package/StaticTimePicker/StaticTimePicker.d.ts +1 -1
  188. package/StaticTimePicker/StaticTimePicker.types.d.mts +4 -4
  189. package/StaticTimePicker/StaticTimePicker.types.d.ts +4 -4
  190. package/TimeClock/Clock.d.mts +5 -5
  191. package/TimeClock/Clock.d.ts +5 -5
  192. package/TimeClock/Clock.js +76 -30
  193. package/TimeClock/Clock.mjs +76 -30
  194. package/TimeClock/ClockNumber.d.mts +2 -2
  195. package/TimeClock/ClockNumber.d.ts +2 -2
  196. package/TimeClock/ClockNumbers.d.mts +1 -1
  197. package/TimeClock/ClockNumbers.d.ts +1 -1
  198. package/TimeClock/ClockPointer.d.mts +2 -2
  199. package/TimeClock/ClockPointer.d.ts +2 -2
  200. package/TimeClock/TimeClock.d.mts +1 -1
  201. package/TimeClock/TimeClock.d.ts +1 -1
  202. package/TimeClock/TimeClock.types.d.mts +5 -5
  203. package/TimeClock/TimeClock.types.d.ts +5 -5
  204. package/TimeField/TimeField.d.mts +1 -1
  205. package/TimeField/TimeField.d.ts +1 -1
  206. package/TimeField/TimeField.js +1 -0
  207. package/TimeField/TimeField.mjs +1 -0
  208. package/TimeField/TimeField.types.d.mts +7 -7
  209. package/TimeField/TimeField.types.d.ts +7 -7
  210. package/TimeField/useTimeField.d.mts +1 -1
  211. package/TimeField/useTimeField.d.ts +1 -1
  212. package/TimePicker/TimePicker.d.mts +1 -1
  213. package/TimePicker/TimePicker.d.ts +1 -1
  214. package/TimePicker/TimePicker.types.d.mts +4 -4
  215. package/TimePicker/TimePicker.types.d.ts +4 -4
  216. package/TimePicker/TimePickerToolbar.d.mts +2 -2
  217. package/TimePicker/TimePickerToolbar.d.ts +2 -2
  218. package/TimePicker/shared.d.mts +11 -11
  219. package/TimePicker/shared.d.ts +11 -11
  220. package/YearCalendar/YearCalendar.d.mts +1 -1
  221. package/YearCalendar/YearCalendar.d.ts +1 -1
  222. package/YearCalendar/YearCalendar.types.d.mts +8 -8
  223. package/YearCalendar/YearCalendar.types.d.ts +8 -8
  224. package/YearCalendar/YearCalendarButton.d.mts +2 -2
  225. package/YearCalendar/YearCalendarButton.d.ts +2 -2
  226. package/dateViewRenderers/dateViewRenderers.d.mts +3 -3
  227. package/dateViewRenderers/dateViewRenderers.d.ts +3 -3
  228. package/hooks/useIsValidValue.d.mts +1 -1
  229. package/hooks/useIsValidValue.d.ts +1 -1
  230. package/hooks/usePickerActionsContext.d.mts +2 -2
  231. package/hooks/usePickerActionsContext.d.ts +2 -2
  232. package/hooks/usePickerAdapter.d.mts +2 -2
  233. package/hooks/usePickerAdapter.d.ts +2 -2
  234. package/hooks/usePickerContext.d.mts +1 -1
  235. package/hooks/usePickerContext.d.ts +1 -1
  236. package/hooks/useSplitFieldProps.d.mts +1 -1
  237. package/hooks/useSplitFieldProps.d.ts +1 -1
  238. package/index.js +1 -1
  239. package/index.mjs +1 -1
  240. package/internals/components/PickerFieldUI.d.mts +7 -7
  241. package/internals/components/PickerFieldUI.d.ts +7 -7
  242. package/internals/components/PickerPopper/PickerPopper.d.mts +7 -7
  243. package/internals/components/PickerPopper/PickerPopper.d.ts +7 -7
  244. package/internals/components/PickerPopper/PickerPopper.js +1 -1
  245. package/internals/components/PickerPopper/PickerPopper.mjs +1 -1
  246. package/internals/components/PickerProvider.d.mts +6 -6
  247. package/internals/components/PickerProvider.d.ts +6 -6
  248. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.d.mts +1 -1
  249. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.d.ts +1 -1
  250. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.mts +6 -6
  251. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +6 -6
  252. package/internals/components/PickersModalDialog.d.mts +3 -3
  253. package/internals/components/PickersModalDialog.d.ts +3 -3
  254. package/internals/components/PickersToolbar.d.mts +2 -2
  255. package/internals/components/PickersToolbar.d.ts +2 -2
  256. package/internals/components/PickersToolbarButton.d.mts +4 -4
  257. package/internals/components/PickersToolbarButton.d.ts +4 -4
  258. package/internals/components/PickersToolbarText.d.mts +2 -2
  259. package/internals/components/PickersToolbarText.d.ts +2 -2
  260. package/internals/demo/DemoContainer.d.mts +2 -2
  261. package/internals/demo/DemoContainer.d.ts +2 -2
  262. package/internals/hooks/PickerDay.types.d.mts +1 -1
  263. package/internals/hooks/PickerDay.types.d.ts +1 -1
  264. package/internals/hooks/date-helpers-hooks.d.mts +3 -3
  265. package/internals/hooks/date-helpers-hooks.d.ts +3 -3
  266. package/internals/hooks/useClockReferenceDate.d.mts +2 -2
  267. package/internals/hooks/useClockReferenceDate.d.ts +2 -2
  268. package/internals/hooks/useControlledValue.d.mts +2 -3
  269. package/internals/hooks/useControlledValue.d.ts +2 -3
  270. package/internals/hooks/useDesktopPicker/useDesktopPicker.d.mts +2 -2
  271. package/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +2 -2
  272. package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.mts +10 -10
  273. package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +10 -10
  274. package/internals/hooks/useField/buildSectionsFromFormat.d.mts +2 -2
  275. package/internals/hooks/useField/buildSectionsFromFormat.d.ts +2 -2
  276. package/internals/hooks/useField/syncSelectionToDOM.d.mts +3 -3
  277. package/internals/hooks/useField/syncSelectionToDOM.d.ts +3 -3
  278. package/internals/hooks/useField/useField.d.mts +2 -2
  279. package/internals/hooks/useField/useField.d.ts +2 -2
  280. package/internals/hooks/useField/useField.js +18 -0
  281. package/internals/hooks/useField/useField.mjs +18 -0
  282. package/internals/hooks/useField/useField.types.d.mts +5 -4
  283. package/internals/hooks/useField/useField.types.d.ts +5 -4
  284. package/internals/hooks/useField/useField.utils.d.mts +3 -5
  285. package/internals/hooks/useField/useField.utils.d.ts +3 -5
  286. package/internals/hooks/useField/useField.utils.js +2 -4
  287. package/internals/hooks/useField/useField.utils.mjs +1 -2
  288. package/internals/hooks/useField/useFieldCharacterEditing.d.mts +2 -2
  289. package/internals/hooks/useField/useFieldCharacterEditing.d.ts +2 -2
  290. package/internals/hooks/useField/useFieldHiddenInputProps.d.mts +2 -2
  291. package/internals/hooks/useField/useFieldHiddenInputProps.d.ts +2 -2
  292. package/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.mts +1 -1
  293. package/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +1 -1
  294. package/internals/hooks/useField/useFieldRootProps.d.mts +5 -4
  295. package/internals/hooks/useField/useFieldRootProps.d.ts +5 -4
  296. package/internals/hooks/useField/useFieldRootProps.js +95 -8
  297. package/internals/hooks/useField/useFieldRootProps.mjs +95 -8
  298. package/internals/hooks/useField/useFieldSectionContainerProps.d.mts +2 -2
  299. package/internals/hooks/useField/useFieldSectionContainerProps.d.ts +2 -2
  300. package/internals/hooks/useField/useFieldSectionContainerProps.js +35 -4
  301. package/internals/hooks/useField/useFieldSectionContainerProps.mjs +34 -4
  302. package/internals/hooks/useField/useFieldSectionContentProps.d.mts +6 -6
  303. package/internals/hooks/useField/useFieldSectionContentProps.d.ts +6 -6
  304. package/internals/hooks/useField/useFieldSectionContentProps.js +17 -12
  305. package/internals/hooks/useField/useFieldSectionContentProps.mjs +17 -12
  306. package/internals/hooks/useField/useFieldState.d.mts +3 -3
  307. package/internals/hooks/useField/useFieldState.d.ts +3 -3
  308. package/internals/hooks/useFieldOwnerState.d.mts +2 -2
  309. package/internals/hooks/useFieldOwnerState.d.ts +2 -2
  310. package/internals/hooks/useMobilePicker/useMobilePicker.d.mts +2 -2
  311. package/internals/hooks/useMobilePicker/useMobilePicker.d.ts +2 -2
  312. package/internals/hooks/useMobilePicker/useMobilePicker.types.d.mts +10 -10
  313. package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +10 -10
  314. package/internals/hooks/useNullableFieldPrivateContext.d.mts +2 -2
  315. package/internals/hooks/useNullableFieldPrivateContext.d.ts +2 -2
  316. package/internals/hooks/usePicker/hooks/useOrientation.d.mts +1 -1
  317. package/internals/hooks/usePicker/hooks/useOrientation.d.ts +1 -1
  318. package/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.mts +5 -5
  319. package/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +5 -5
  320. package/internals/hooks/usePicker/usePicker.d.mts +2 -2
  321. package/internals/hooks/usePicker/usePicker.d.ts +2 -2
  322. package/internals/hooks/usePicker/usePicker.types.d.mts +10 -10
  323. package/internals/hooks/usePicker/usePicker.types.d.ts +10 -10
  324. package/internals/hooks/usePickerDayOwnerState.d.mts +2 -2
  325. package/internals/hooks/usePickerDayOwnerState.d.ts +2 -2
  326. package/internals/hooks/useReduceAnimations.js +4 -1
  327. package/internals/hooks/useReduceAnimations.mjs +4 -1
  328. package/internals/hooks/useStaticPicker/useStaticPicker.d.mts +2 -2
  329. package/internals/hooks/useStaticPicker/useStaticPicker.d.ts +2 -2
  330. package/internals/hooks/useStaticPicker/useStaticPicker.types.d.mts +5 -5
  331. package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +5 -5
  332. package/internals/hooks/useToolbarOwnerState.d.mts +1 -1
  333. package/internals/hooks/useToolbarOwnerState.d.ts +1 -1
  334. package/internals/hooks/useUtils.d.mts +1 -1
  335. package/internals/hooks/useUtils.d.ts +1 -1
  336. package/internals/hooks/useViews.d.mts +4 -4
  337. package/internals/hooks/useViews.d.ts +4 -4
  338. package/internals/models/common.d.mts +1 -1
  339. package/internals/models/common.d.ts +1 -1
  340. package/internals/models/fields.d.mts +1 -1
  341. package/internals/models/fields.d.ts +1 -1
  342. package/internals/models/helpers.d.mts +2 -2
  343. package/internals/models/helpers.d.ts +2 -2
  344. package/internals/models/manager.d.mts +1 -1
  345. package/internals/models/manager.d.ts +1 -1
  346. package/internals/models/props/basePickerProps.d.mts +7 -8
  347. package/internals/models/props/basePickerProps.d.ts +7 -8
  348. package/internals/models/props/tabs.d.mts +2 -2
  349. package/internals/models/props/tabs.d.ts +2 -2
  350. package/internals/models/props/time.d.mts +6 -6
  351. package/internals/models/props/time.d.ts +6 -6
  352. package/internals/models/props/toolbar.d.mts +3 -3
  353. package/internals/models/props/toolbar.d.ts +3 -3
  354. package/internals/models/value.d.mts +1 -1
  355. package/internals/models/value.d.ts +1 -1
  356. package/internals/utils/createNonRangePickerStepNavigation.d.mts +1 -1
  357. package/internals/utils/createNonRangePickerStepNavigation.d.ts +1 -1
  358. package/internals/utils/createStepNavigation.d.mts +1 -1
  359. package/internals/utils/createStepNavigation.d.ts +1 -1
  360. package/internals/utils/date-time-utils.d.mts +4 -4
  361. package/internals/utils/date-time-utils.d.ts +4 -4
  362. package/internals/utils/date-utils.d.mts +2 -2
  363. package/internals/utils/date-utils.d.ts +2 -2
  364. package/internals/utils/getDefaultReferenceDate.d.mts +1 -1
  365. package/internals/utils/getDefaultReferenceDate.d.ts +1 -1
  366. package/internals/utils/time-utils.d.mts +2 -2
  367. package/internals/utils/time-utils.d.ts +2 -2
  368. package/internals/utils/utils.d.mts +3 -3
  369. package/internals/utils/utils.d.ts +3 -3
  370. package/internals/utils/valueManagers.d.mts +2 -3
  371. package/internals/utils/valueManagers.d.ts +2 -3
  372. package/internals/utils/views.d.mts +1 -1
  373. package/internals/utils/views.d.ts +1 -1
  374. package/locales/beBY.d.mts +1 -1
  375. package/locales/beBY.d.ts +1 -1
  376. package/locales/bgBG.d.mts +1 -1
  377. package/locales/bgBG.d.ts +1 -1
  378. package/locales/bnBD.d.mts +1 -1
  379. package/locales/bnBD.d.ts +1 -1
  380. package/locales/caES.d.mts +1 -1
  381. package/locales/caES.d.ts +1 -1
  382. package/locales/csCZ.d.mts +1 -1
  383. package/locales/csCZ.d.ts +1 -1
  384. package/locales/daDK.d.mts +1 -1
  385. package/locales/daDK.d.ts +1 -1
  386. package/locales/deDE.d.mts +1 -1
  387. package/locales/deDE.d.ts +1 -1
  388. package/locales/elGR.d.mts +1 -1
  389. package/locales/elGR.d.ts +1 -1
  390. package/locales/enUS.d.mts +1 -1
  391. package/locales/enUS.d.ts +1 -1
  392. package/locales/esES.d.mts +1 -1
  393. package/locales/esES.d.ts +1 -1
  394. package/locales/eu.d.mts +1 -1
  395. package/locales/eu.d.ts +1 -1
  396. package/locales/faIR.d.mts +1 -1
  397. package/locales/faIR.d.ts +1 -1
  398. package/locales/fiFI.d.mts +1 -1
  399. package/locales/fiFI.d.ts +1 -1
  400. package/locales/frFR.d.mts +1 -1
  401. package/locales/frFR.d.ts +1 -1
  402. package/locales/heIL.d.mts +1 -1
  403. package/locales/heIL.d.ts +1 -1
  404. package/locales/hrHR.d.mts +1 -1
  405. package/locales/hrHR.d.ts +1 -1
  406. package/locales/huHU.d.mts +1 -1
  407. package/locales/huHU.d.ts +1 -1
  408. package/locales/isIS.d.mts +1 -1
  409. package/locales/isIS.d.ts +1 -1
  410. package/locales/itIT.d.mts +1 -1
  411. package/locales/itIT.d.ts +1 -1
  412. package/locales/jaJP.d.mts +1 -1
  413. package/locales/jaJP.d.ts +1 -1
  414. package/locales/koKR.d.mts +1 -1
  415. package/locales/koKR.d.ts +1 -1
  416. package/locales/kzKZ.d.mts +1 -1
  417. package/locales/kzKZ.d.ts +1 -1
  418. package/locales/nbNO.d.mts +1 -1
  419. package/locales/nbNO.d.ts +1 -1
  420. package/locales/nlNL.d.mts +1 -1
  421. package/locales/nlNL.d.ts +1 -1
  422. package/locales/nnNO.d.mts +1 -1
  423. package/locales/nnNO.d.ts +1 -1
  424. package/locales/plPL.d.mts +1 -1
  425. package/locales/plPL.d.ts +1 -1
  426. package/locales/ptBR.d.mts +1 -1
  427. package/locales/ptBR.d.ts +1 -1
  428. package/locales/ptPT.d.mts +1 -1
  429. package/locales/ptPT.d.ts +1 -1
  430. package/locales/roRO.d.mts +1 -1
  431. package/locales/roRO.d.ts +1 -1
  432. package/locales/roRO.js +2 -3
  433. package/locales/roRO.mjs +2 -3
  434. package/locales/ruRU.d.mts +1 -1
  435. package/locales/ruRU.d.ts +1 -1
  436. package/locales/skSK.d.mts +1 -1
  437. package/locales/skSK.d.ts +1 -1
  438. package/locales/svSE.d.mts +1 -1
  439. package/locales/svSE.d.ts +1 -1
  440. package/locales/thTH.d.mts +1 -1
  441. package/locales/thTH.d.ts +1 -1
  442. package/locales/trTR.d.mts +1 -1
  443. package/locales/trTR.d.ts +1 -1
  444. package/locales/ukUA.d.mts +1 -1
  445. package/locales/ukUA.d.ts +1 -1
  446. package/locales/urPK.d.mts +1 -1
  447. package/locales/urPK.d.ts +1 -1
  448. package/locales/utils/getPickersLocalization.d.mts +1 -1
  449. package/locales/utils/getPickersLocalization.d.ts +1 -1
  450. package/locales/utils/pickersLocaleTextApi.d.mts +2 -2
  451. package/locales/utils/pickersLocaleTextApi.d.ts +2 -2
  452. package/locales/viVN.d.mts +1 -1
  453. package/locales/viVN.d.ts +1 -1
  454. package/locales/zhCN.d.mts +1 -1
  455. package/locales/zhCN.d.ts +1 -1
  456. package/locales/zhHK.d.mts +1 -1
  457. package/locales/zhHK.d.ts +1 -1
  458. package/locales/zhTW.d.mts +1 -1
  459. package/locales/zhTW.d.ts +1 -1
  460. package/managers/useDateManager.d.mts +4 -4
  461. package/managers/useDateManager.d.ts +4 -4
  462. package/managers/useDateTimeManager.d.mts +5 -5
  463. package/managers/useDateTimeManager.d.ts +5 -5
  464. package/managers/useTimeManager.d.mts +5 -5
  465. package/managers/useTimeManager.d.ts +5 -5
  466. package/models/adapters.d.mts +3 -3
  467. package/models/adapters.d.ts +3 -3
  468. package/models/fields.d.mts +4 -4
  469. package/models/fields.d.ts +4 -4
  470. package/models/pickers.d.mts +1 -1
  471. package/models/pickers.d.ts +1 -1
  472. package/package.json +3 -3
  473. package/themeAugmentation/components.d.mts +16 -16
  474. package/themeAugmentation/components.d.ts +16 -16
  475. package/themeAugmentation/overrides.d.mts +20 -20
  476. package/themeAugmentation/overrides.d.ts +20 -20
  477. package/themeAugmentation/props.d.mts +38 -38
  478. package/themeAugmentation/props.d.ts +38 -38
  479. package/timeViewRenderers/timeViewRenderers.d.mts +6 -6
  480. package/timeViewRenderers/timeViewRenderers.d.ts +6 -6
  481. package/validation/extractValidationProps.d.mts +1 -1
  482. package/validation/extractValidationProps.d.ts +1 -1
  483. package/validation/useValidation.d.mts +2 -3
  484. package/validation/useValidation.d.ts +2 -3
  485. package/validation/validateDate.d.mts +4 -4
  486. package/validation/validateDate.d.ts +4 -4
  487. package/validation/validateDateTime.d.mts +6 -6
  488. package/validation/validateDateTime.d.ts +6 -6
  489. package/validation/validateTime.d.mts +4 -4
  490. package/validation/validateTime.d.ts +4 -4
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import useEventCallback from '@mui/utils/useEventCallback';
3
3
  import { usePickerAdapter, usePickerTranslations } from "../../../hooks/index.mjs";
4
4
  import { syncSelectionToDOM } from "./syncSelectionToDOM.mjs";
5
+ import { removeLocalizedDigits } from "./useField.utils.mjs";
5
6
  /**
6
7
  * Generate the props to pass to the content element of each section of the field.
7
8
  * @param {UseFieldSectionContentPropsParameters} parameters The parameters of the hook.
@@ -24,6 +25,7 @@ export function useFieldSectionContentProps(parameters) {
24
25
  sectionsValueBoundaries,
25
26
  state,
26
27
  value,
28
+ localizedDigits,
27
29
  // Methods to update the states
28
30
  clearActiveSection,
29
31
  setCharacterQuery,
@@ -144,10 +146,10 @@ export function useFieldSectionContentProps(parameters) {
144
146
  onFocus: createFocusHandler(sectionIndex),
145
147
  // Aria attributes
146
148
  'aria-readonly': readOnly,
147
- 'aria-valuenow': getSectionValueNow(section, adapter),
149
+ 'aria-valuenow': getSectionValueNow(section, adapter, localizedDigits),
148
150
  'aria-valuemin': sectionBoundaries.minimum,
149
151
  'aria-valuemax': sectionBoundaries.maximum,
150
- 'aria-valuetext': section.value ? getSectionValueText(section, adapter) : translations.empty,
152
+ 'aria-valuetext': section.value ? getSectionValueText(section, adapter, localizedDigits) : translations.empty,
151
153
  'aria-label': translations[section.type],
152
154
  'aria-disabled': disabled,
153
155
  // Other
@@ -163,9 +165,9 @@ export function useFieldSectionContentProps(parameters) {
163
165
  children: section.value || section.placeholder,
164
166
  inputMode: section.contentType === 'letter' ? 'text' : 'numeric'
165
167
  };
166
- }, [sectionsValueBoundaries, isContainerEditable, disabled, readOnly, isEditable, translations, adapter, handleInput, handlePaste, handleMouseUp, handleDragOver, createFocusHandler, fieldValueManager, value]);
168
+ }, [sectionsValueBoundaries, isContainerEditable, disabled, readOnly, isEditable, translations, adapter, localizedDigits, handleInput, handlePaste, handleMouseUp, handleDragOver, createFocusHandler, fieldValueManager, value]);
167
169
  }
168
- function getSectionValueText(section, adapter) {
170
+ function getSectionValueText(section, adapter, localizedDigits) {
169
171
  if (!section.value) {
170
172
  return undefined;
171
173
  }
@@ -173,7 +175,7 @@ function getSectionValueText(section, adapter) {
173
175
  case 'month':
174
176
  {
175
177
  if (section.contentType === 'digit') {
176
- const dateWithMonth = adapter.setMonth(adapter.date(), Number(section.value) - 1);
178
+ const dateWithMonth = adapter.setMonth(adapter.date(), Number(removeLocalizedDigits(section.value, localizedDigits)) - 1);
177
179
  return adapter.isValid(dateWithMonth) ? adapter.format(dateWithMonth, 'month') : '';
178
180
  }
179
181
  const parsedDate = adapter.parse(section.value, section.format);
@@ -181,8 +183,10 @@ function getSectionValueText(section, adapter) {
181
183
  }
182
184
  case 'day':
183
185
  if (section.contentType === 'digit') {
184
- const dateWithDay = adapter.setDate(adapter.startOfYear(adapter.date()), Number(section.value));
185
- return adapter.isValid(dateWithDay) ? adapter.format(dateWithDay, 'dayOfMonthFull') : '';
186
+ const dateWithDay = adapter.setDate(adapter.startOfYear(adapter.date()), Number(removeLocalizedDigits(section.value, localizedDigits)));
187
+ // Announce a cardinal day (e.g. "2"), not a locale ordinal (e.g. French "2ème").
188
+ // See https://github.com/mui/mui-x/issues/22915.
189
+ return adapter.isValid(dateWithDay) ? adapter.format(dateWithDay, 'dayOfMonth') : '';
186
190
  }
187
191
  return section.value;
188
192
  case 'weekDay':
@@ -192,10 +196,11 @@ function getSectionValueText(section, adapter) {
192
196
  return undefined;
193
197
  }
194
198
  }
195
- function getSectionValueNow(section, adapter) {
199
+ function getSectionValueNow(section, adapter, localizedDigits) {
196
200
  if (!section.value) {
197
201
  return undefined;
198
202
  }
203
+ const nonLocalizedValue = removeLocalizedDigits(section.value, localizedDigits);
199
204
  switch (section.type) {
200
205
  case 'weekDay':
201
206
  {
@@ -203,7 +208,7 @@ function getSectionValueNow(section, adapter) {
203
208
  // TODO: improve by resolving the week day number from a letter week day
204
209
  return undefined;
205
210
  }
206
- return Number(section.value);
211
+ return Number(nonLocalizedValue);
207
212
  }
208
213
  case 'meridiem':
209
214
  {
@@ -214,16 +219,16 @@ function getSectionValueNow(section, adapter) {
214
219
  return undefined;
215
220
  }
216
221
  case 'day':
217
- return section.contentType === 'digit-with-letter' ? parseInt(section.value, 10) : Number(section.value);
222
+ return section.contentType === 'digit-with-letter' ? parseInt(nonLocalizedValue, 10) : Number(nonLocalizedValue);
218
223
  case 'month':
219
224
  {
220
225
  if (section.contentType === 'digit') {
221
- return Number(section.value);
226
+ return Number(nonLocalizedValue);
222
227
  }
223
228
  const parsedDate = adapter.parse(section.value, section.format);
224
229
  return parsedDate ? adapter.getMonth(parsedDate) + 1 : undefined;
225
230
  }
226
231
  default:
227
- return section.contentType !== 'letter' ? Number(section.value) : undefined;
232
+ return section.contentType !== 'letter' ? Number(nonLocalizedValue) : undefined;
228
233
  }
229
234
  }
@@ -1,6 +1,6 @@
1
- import { UseFieldInternalProps, UseFieldState, FieldParsedSelectedSections, FieldSectionsValueBoundaries, SectionOrdering, UseFieldForwardedProps, CharacterEditingQuery } from "./useField.types.mjs";
2
- import { FieldSelectedSections, PickersTimezone, InferFieldSection, PickerManager } from "../../../models/index.mjs";
3
- import { PickerValidValue } from "../../models/index.mjs";
1
+ import type { UseFieldInternalProps, UseFieldState, FieldParsedSelectedSections, FieldSectionsValueBoundaries, SectionOrdering, UseFieldForwardedProps, CharacterEditingQuery } from "./useField.types.mjs";
2
+ import type { FieldSelectedSections, PickersTimezone, InferFieldSection, PickerManager } from "../../../models/index.mjs";
3
+ import type { PickerValidValue } from "../../models/index.mjs";
4
4
  export declare const useFieldState: <TValue extends PickerValidValue, TError, TValidationProps extends {}, TForwardedProps extends UseFieldForwardedProps>(parameters: UseFieldStateParameters<TValue, TError, TValidationProps, TForwardedProps>) => UseFieldStateReturnValue<TValue>;
5
5
  interface UseFieldStateParameters<TValue extends PickerValidValue, TError, TValidationProps extends {}, TForwardedProps extends UseFieldForwardedProps> {
6
6
  manager: PickerManager<TValue, TError, TValidationProps, any>;
@@ -1,6 +1,6 @@
1
- import { UseFieldInternalProps, UseFieldState, FieldParsedSelectedSections, FieldSectionsValueBoundaries, SectionOrdering, UseFieldForwardedProps, CharacterEditingQuery } from "./useField.types.js";
2
- import { FieldSelectedSections, PickersTimezone, InferFieldSection, PickerManager } from "../../../models/index.js";
3
- import { PickerValidValue } from "../../models/index.js";
1
+ import type { UseFieldInternalProps, UseFieldState, FieldParsedSelectedSections, FieldSectionsValueBoundaries, SectionOrdering, UseFieldForwardedProps, CharacterEditingQuery } from "./useField.types.js";
2
+ import type { FieldSelectedSections, PickersTimezone, InferFieldSection, PickerManager } from "../../../models/index.js";
3
+ import type { PickerValidValue } from "../../models/index.js";
4
4
  export declare const useFieldState: <TValue extends PickerValidValue, TError, TValidationProps extends {}, TForwardedProps extends UseFieldForwardedProps>(parameters: UseFieldStateParameters<TValue, TError, TValidationProps, TForwardedProps>) => UseFieldStateReturnValue<TValue>;
5
5
  interface UseFieldStateParameters<TValue extends PickerValidValue, TError, TValidationProps extends {}, TForwardedProps extends UseFieldForwardedProps> {
6
6
  manager: PickerManager<TValue, TError, TValidationProps, any>;
@@ -1,5 +1,5 @@
1
- import { FieldOwnerState } from "../../models/index.mjs";
2
- import { FormProps } from "../models/index.mjs";
1
+ import type { FieldOwnerState } from "../../models/index.mjs";
2
+ import type { FormProps } from "../models/index.mjs";
3
3
  export declare function useFieldOwnerState(parameters: UseFieldOwnerStateParameters): FieldOwnerState;
4
4
  export interface UseFieldOwnerStateParameters extends FormProps {
5
5
  required?: boolean;
@@ -1,5 +1,5 @@
1
- import { FieldOwnerState } from "../../models/index.js";
2
- import { FormProps } from "../models/index.js";
1
+ import type { FieldOwnerState } from "../../models/index.js";
2
+ import type { FormProps } from "../models/index.js";
3
3
  export declare function useFieldOwnerState(parameters: UseFieldOwnerStateParameters): FieldOwnerState;
4
4
  export interface UseFieldOwnerStateParameters extends FormProps {
5
5
  required?: boolean;
@@ -1,5 +1,5 @@
1
- import { UseMobilePickerParams, UseMobilePickerProps } from "./useMobilePicker.types.mjs";
2
- import { DateOrTimeViewWithMeridiem } from "../../models/index.mjs";
1
+ import type { UseMobilePickerParams, UseMobilePickerProps } from "./useMobilePicker.types.mjs";
2
+ import type { DateOrTimeViewWithMeridiem } from "../../models/index.mjs";
3
3
  /**
4
4
  * Hook managing all the single-date mobile pickers:
5
5
  * - MobileDatePicker
@@ -1,5 +1,5 @@
1
- import { UseMobilePickerParams, UseMobilePickerProps } from "./useMobilePicker.types.js";
2
- import { DateOrTimeViewWithMeridiem } from "../../models/index.js";
1
+ import type { UseMobilePickerParams, UseMobilePickerProps } from "./useMobilePicker.types.js";
2
+ import type { DateOrTimeViewWithMeridiem } from "../../models/index.js";
3
3
  /**
4
4
  * Hook managing all the single-date mobile pickers:
5
5
  * - MobileDatePicker
@@ -1,13 +1,13 @@
1
- import * as React from 'react';
2
- import { MakeRequired, SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
- import { BasePickerProps } from "../../models/props/basePickerProps.mjs";
4
- import { PickersModalDialogSlots, PickersModalDialogSlotProps } from "../../components/PickersModalDialog.mjs";
5
- import { UsePickerParameters, UsePickerNonStaticProps, UsePickerProps } from "../usePicker/index.mjs";
6
- import { PickerFieldSlotProps, PickerOwnerState } from "../../../models/index.mjs";
7
- import { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.mjs";
8
- import { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.mjs";
9
- import { PickerFieldUISlotsFromContext, PickerFieldUISlotPropsFromContext } from "../../components/PickerFieldUI.mjs";
10
- import { PickerStep } from "../../utils/createNonRangePickerStepNavigation.mjs";
1
+ import type * as React from 'react';
2
+ import type { MakeRequired, SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
+ import type { BasePickerProps } from "../../models/props/basePickerProps.mjs";
4
+ import type { PickersModalDialogSlots, PickersModalDialogSlotProps } from "../../components/PickersModalDialog.mjs";
5
+ import type { UsePickerParameters, UsePickerNonStaticProps, UsePickerProps } from "../usePicker/index.mjs";
6
+ import type { PickerFieldSlotProps, PickerOwnerState } from "../../../models/index.mjs";
7
+ import type { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.mjs";
8
+ import type { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.mjs";
9
+ import type { PickerFieldUISlotsFromContext, PickerFieldUISlotPropsFromContext } from "../../components/PickerFieldUI.mjs";
10
+ import type { PickerStep } from "../../utils/createNonRangePickerStepNavigation.mjs";
11
11
  export interface UseMobilePickerSlots extends PickersModalDialogSlots, ExportedPickersLayoutSlots<PickerValue>, PickerFieldUISlotsFromContext {
12
12
  /**
13
13
  * Component used to enter the date with the keyboard.
@@ -1,13 +1,13 @@
1
- import * as React from 'react';
2
- import { MakeRequired, SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
- import { BasePickerProps } from "../../models/props/basePickerProps.js";
4
- import { PickersModalDialogSlots, PickersModalDialogSlotProps } from "../../components/PickersModalDialog.js";
5
- import { UsePickerParameters, UsePickerNonStaticProps, UsePickerProps } from "../usePicker/index.js";
6
- import { PickerFieldSlotProps, PickerOwnerState } from "../../../models/index.js";
7
- import { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.js";
8
- import { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.js";
9
- import { PickerFieldUISlotsFromContext, PickerFieldUISlotPropsFromContext } from "../../components/PickerFieldUI.js";
10
- import { PickerStep } from "../../utils/createNonRangePickerStepNavigation.js";
1
+ import type * as React from 'react';
2
+ import type { MakeRequired, SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
+ import type { BasePickerProps } from "../../models/props/basePickerProps.js";
4
+ import type { PickersModalDialogSlots, PickersModalDialogSlotProps } from "../../components/PickersModalDialog.js";
5
+ import type { UsePickerParameters, UsePickerNonStaticProps, UsePickerProps } from "../usePicker/index.js";
6
+ import type { PickerFieldSlotProps, PickerOwnerState } from "../../../models/index.js";
7
+ import type { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.js";
8
+ import type { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.js";
9
+ import type { PickerFieldUISlotsFromContext, PickerFieldUISlotPropsFromContext } from "../../components/PickerFieldUI.js";
10
+ import type { PickerStep } from "../../utils/createNonRangePickerStepNavigation.js";
11
11
  export interface UseMobilePickerSlots extends PickersModalDialogSlots, ExportedPickersLayoutSlots<PickerValue>, PickerFieldUISlotsFromContext {
12
12
  /**
13
13
  * Component used to enter the date with the keyboard.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { UseFieldInternalProps } from "./useField/index.mjs";
3
- import { FieldRef } from "../../models/index.mjs";
4
- import { PickerRangeValue, PickerValue } from "../models/index.mjs";
3
+ import type { FieldRef } from "../../models/index.mjs";
4
+ import type { PickerRangeValue, PickerValue } from "../models/index.mjs";
5
5
  export declare const PickerFieldPrivateContext: React.Context<PickerFieldPrivateContextValue | null>;
6
6
  export declare function useNullableFieldPrivateContext(): PickerFieldPrivateContextValue | null;
7
7
  export interface PickerFieldPrivateContextValue extends Pick<UseFieldInternalProps<any, any>, 'formatDensity' | 'selectedSections' | 'onSelectedSectionsChange'> {
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { UseFieldInternalProps } from "./useField/index.js";
3
- import { FieldRef } from "../../models/index.js";
4
- import { PickerRangeValue, PickerValue } from "../models/index.js";
3
+ import type { FieldRef } from "../../models/index.js";
4
+ import type { PickerRangeValue, PickerValue } from "../models/index.js";
5
5
  export declare const PickerFieldPrivateContext: React.Context<PickerFieldPrivateContextValue | null>;
6
6
  export declare function useNullableFieldPrivateContext(): PickerFieldPrivateContextValue | null;
7
7
  export interface PickerFieldPrivateContextValue extends Pick<UseFieldInternalProps<any, any>, 'formatDensity' | 'selectedSections' | 'onSelectedSectionsChange'> {
@@ -1,2 +1,2 @@
1
- import { DateOrTimeViewWithMeridiem, PickerOrientation } from "../../../models/index.mjs";
1
+ import type { DateOrTimeViewWithMeridiem, PickerOrientation } from "../../../models/index.mjs";
2
2
  export declare function useOrientation(views: readonly DateOrTimeViewWithMeridiem[], customOrientation: PickerOrientation | undefined): PickerOrientation;
@@ -1,2 +1,2 @@
1
- import { DateOrTimeViewWithMeridiem, PickerOrientation } from "../../../models/index.js";
1
+ import type { DateOrTimeViewWithMeridiem, PickerOrientation } from "../../../models/index.js";
2
2
  export declare function useOrientation(views: readonly DateOrTimeViewWithMeridiem[], customOrientation: PickerOrientation | undefined): PickerOrientation;
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import { DateOrTimeViewWithMeridiem, PickerValidValue, PickerValueManager } from "../../../models/index.mjs";
3
- import { PickerSelectionState, UsePickerProps, UsePickerState } from "../usePicker.types.mjs";
4
- import { InferError } from "../../../../models/index.mjs";
5
- import { SetValueActionOptions } from "../../../components/PickerProvider.mjs";
6
- import { Validator } from "../../../../validation/index.mjs";
2
+ import type { DateOrTimeViewWithMeridiem, PickerValidValue, PickerValueManager } from "../../../models/index.mjs";
3
+ import type { PickerSelectionState, UsePickerProps, UsePickerState } from "../usePicker.types.mjs";
4
+ import type { InferError } from "../../../../models/index.mjs";
5
+ import type { SetValueActionOptions } from "../../../components/PickerProvider.mjs";
6
+ import type { Validator } from "../../../../validation/index.mjs";
7
7
  export declare function useValueAndOpenStates<TValue extends PickerValidValue, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UsePickerProps<TValue, TView, any, any>>(parameters: UsePickerDateStateParameters<TValue, TView, TExternalProps>): {
8
8
  timezone: string;
9
9
  state: UsePickerState<TValue>;
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import { DateOrTimeViewWithMeridiem, PickerValidValue, PickerValueManager } from "../../../models/index.js";
3
- import { PickerSelectionState, UsePickerProps, UsePickerState } from "../usePicker.types.js";
4
- import { InferError } from "../../../../models/index.js";
5
- import { SetValueActionOptions } from "../../../components/PickerProvider.js";
6
- import { Validator } from "../../../../validation/index.js";
2
+ import type { DateOrTimeViewWithMeridiem, PickerValidValue, PickerValueManager } from "../../../models/index.js";
3
+ import type { PickerSelectionState, UsePickerProps, UsePickerState } from "../usePicker.types.js";
4
+ import type { InferError } from "../../../../models/index.js";
5
+ import type { SetValueActionOptions } from "../../../components/PickerProvider.js";
6
+ import type { Validator } from "../../../../validation/index.js";
7
7
  export declare function useValueAndOpenStates<TValue extends PickerValidValue, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UsePickerProps<TValue, TView, any, any>>(parameters: UsePickerDateStateParameters<TValue, TView, TExternalProps>): {
8
8
  timezone: string;
9
9
  state: UsePickerState<TValue>;
@@ -1,5 +1,5 @@
1
- import { UsePickerParameters, UsePickerProps, UsePickerReturnValue } from "./usePicker.types.mjs";
2
- import { DateOrTimeViewWithMeridiem, PickerValidValue } from "../../models/index.mjs";
1
+ import type { UsePickerParameters, UsePickerProps, UsePickerReturnValue } from "./usePicker.types.mjs";
2
+ import type { DateOrTimeViewWithMeridiem, PickerValidValue } from "../../models/index.mjs";
3
3
  export declare const usePicker: <TValue extends PickerValidValue, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UsePickerProps<TValue, TView, any, any>>({
4
4
  ref,
5
5
  props,
@@ -1,5 +1,5 @@
1
- import { UsePickerParameters, UsePickerProps, UsePickerReturnValue } from "./usePicker.types.js";
2
- import { DateOrTimeViewWithMeridiem, PickerValidValue } from "../../models/index.js";
1
+ import type { UsePickerParameters, UsePickerProps, UsePickerReturnValue } from "./usePicker.types.js";
2
+ import type { DateOrTimeViewWithMeridiem, PickerValidValue } from "../../models/index.js";
3
3
  export declare const usePicker: <TValue extends PickerValidValue, TView extends DateOrTimeViewWithMeridiem, TExternalProps extends UsePickerProps<TValue, TView, any, any>>({
4
4
  ref,
5
5
  props,
@@ -1,14 +1,14 @@
1
1
  import type * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { Theme } from '@mui/material/styles';
4
- import { InferError, OnErrorProps, PickerChangeHandlerContext, PickerOwnerState, PickerValidDate, PickerValueType, TimezoneProps } from "../../../models/index.mjs";
5
- import { DateOrTimeViewWithMeridiem, FormProps, PickerOrientation, PickerRangeValue, PickerValidValue, PickerValueManager, PickerVariant } from "../../models/index.mjs";
6
- import { Validator } from "../../../validation/index.mjs";
7
- import { UseViewsOptions } from "../useViews.mjs";
8
- import { PickerProviderProps } from "../../components/PickerProvider.mjs";
9
- import { PickersInputLocaleText } from "../../../locales/index.mjs";
10
- import { PickerFieldPrivateContextValue } from "../useNullableFieldPrivateContext.mjs";
11
- import { CreateStepNavigationReturnValue } from "../../utils/createStepNavigation.mjs";
2
+ import type { SxProps } from '@mui/system';
3
+ import type { Theme } from '@mui/material/styles';
4
+ import type { InferError, OnErrorProps, PickerChangeHandlerContext, PickerOwnerState, PickerValidDate, PickerValueType, TimezoneProps } from "../../../models/index.mjs";
5
+ import type { DateOrTimeViewWithMeridiem, FormProps, PickerOrientation, PickerRangeValue, PickerValidValue, PickerValueManager, PickerVariant } from "../../models/index.mjs";
6
+ import type { Validator } from "../../../validation/index.mjs";
7
+ import type { UseViewsOptions } from "../useViews.mjs";
8
+ import type { PickerProviderProps } from "../../components/PickerProvider.mjs";
9
+ import type { PickersInputLocaleText } from "../../../locales/index.mjs";
10
+ import type { PickerFieldPrivateContextValue } from "../useNullableFieldPrivateContext.mjs";
11
+ import type { CreateStepNavigationReturnValue } from "../../utils/createStepNavigation.mjs";
12
12
  /**
13
13
  * Props common to all Picker headless implementations.
14
14
  * Those props are exposed on all the Pickers.
@@ -1,14 +1,14 @@
1
1
  import type * as React from 'react';
2
- import { SxProps } from '@mui/system';
3
- import { Theme } from '@mui/material/styles';
4
- import { InferError, OnErrorProps, PickerChangeHandlerContext, PickerOwnerState, PickerValidDate, PickerValueType, TimezoneProps } from "../../../models/index.js";
5
- import { DateOrTimeViewWithMeridiem, FormProps, PickerOrientation, PickerRangeValue, PickerValidValue, PickerValueManager, PickerVariant } from "../../models/index.js";
6
- import { Validator } from "../../../validation/index.js";
7
- import { UseViewsOptions } from "../useViews.js";
8
- import { PickerProviderProps } from "../../components/PickerProvider.js";
9
- import { PickersInputLocaleText } from "../../../locales/index.js";
10
- import { PickerFieldPrivateContextValue } from "../useNullableFieldPrivateContext.js";
11
- import { CreateStepNavigationReturnValue } from "../../utils/createStepNavigation.js";
2
+ import type { SxProps } from '@mui/system';
3
+ import type { Theme } from '@mui/material/styles';
4
+ import type { InferError, OnErrorProps, PickerChangeHandlerContext, PickerOwnerState, PickerValidDate, PickerValueType, TimezoneProps } from "../../../models/index.js";
5
+ import type { DateOrTimeViewWithMeridiem, FormProps, PickerOrientation, PickerRangeValue, PickerValidValue, PickerValueManager, PickerVariant } from "../../models/index.js";
6
+ import type { Validator } from "../../../validation/index.js";
7
+ import type { UseViewsOptions } from "../useViews.js";
8
+ import type { PickerProviderProps } from "../../components/PickerProvider.js";
9
+ import type { PickersInputLocaleText } from "../../../locales/index.js";
10
+ import type { PickerFieldPrivateContextValue } from "../useNullableFieldPrivateContext.js";
11
+ import type { CreateStepNavigationReturnValue } from "../../utils/createStepNavigation.js";
12
12
  /**
13
13
  * Props common to all Picker headless implementations.
14
14
  * Those props are exposed on all the Pickers.
@@ -1,5 +1,5 @@
1
- import { PickerDayOwnerState } from "./PickerDay.types.mjs";
2
- import { PickerValidDate } from "../../models/pickers.mjs";
1
+ import type { PickerDayOwnerState } from "./PickerDay.types.mjs";
2
+ import type { PickerValidDate } from "../../models/pickers.mjs";
3
3
  export declare function usePickerDayOwnerState(parameters: UsePickerDayOwnerStateParameters): PickerDayOwnerState;
4
4
  interface UsePickerDayOwnerStateParameters {
5
5
  day: PickerValidDate;
@@ -1,5 +1,5 @@
1
- import { PickerDayOwnerState } from "./PickerDay.types.js";
2
- import { PickerValidDate } from "../../models/pickers.js";
1
+ import type { PickerDayOwnerState } from "./PickerDay.types.js";
2
+ import type { PickerValidDate } from "../../models/pickers.js";
3
3
  export declare function usePickerDayOwnerState(parameters: UsePickerDayOwnerStateParameters): PickerDayOwnerState;
4
4
  interface UsePickerDayOwnerStateParameters {
5
5
  day: PickerValidDate;
@@ -9,7 +9,10 @@ exports.useReduceAnimations = useReduceAnimations;
9
9
  var _useMediaQuery = _interopRequireDefault(require("@mui/material/useMediaQuery"));
10
10
  const PREFERS_REDUCED_MOTION = '@media (prefers-reduced-motion: reduce)';
11
11
 
12
- // detect if user agent has Android version < 10 or iOS version < 13
12
+ // TODO v10: Remove user-agent sniffing. The Android branch is dead and the iOS branch is becoming
13
+ // irrelevant.
14
+ // https://github.com/mui/mui-x/pull/22710#discussion_r3377072061
15
+
13
16
  const mobileVersionMatches = typeof navigator !== 'undefined' && navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i);
14
17
  const androidVersion = mobileVersionMatches && mobileVersionMatches[1] ? parseInt(mobileVersionMatches[1], 10) : null;
15
18
  const iOSVersion = mobileVersionMatches && mobileVersionMatches[2] ? parseInt(mobileVersionMatches[2], 10) : null;
@@ -1,7 +1,10 @@
1
1
  import useMediaQuery from '@mui/material/useMediaQuery';
2
2
  const PREFERS_REDUCED_MOTION = '@media (prefers-reduced-motion: reduce)';
3
3
 
4
- // detect if user agent has Android version < 10 or iOS version < 13
4
+ // TODO v10: Remove user-agent sniffing. The Android branch is dead and the iOS branch is becoming
5
+ // irrelevant.
6
+ // https://github.com/mui/mui-x/pull/22710#discussion_r3377072061
7
+
5
8
  const mobileVersionMatches = typeof navigator !== 'undefined' && navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i);
6
9
  const androidVersion = mobileVersionMatches && mobileVersionMatches[1] ? parseInt(mobileVersionMatches[1], 10) : null;
7
10
  const iOSVersion = mobileVersionMatches && mobileVersionMatches[2] ? parseInt(mobileVersionMatches[2], 10) : null;
@@ -1,5 +1,5 @@
1
- import { UseStaticPickerParams, UseStaticPickerProps } from "./useStaticPicker.types.mjs";
2
- import { DateOrTimeViewWithMeridiem } from "../../models/index.mjs";
1
+ import type { UseStaticPickerParams, UseStaticPickerProps } from "./useStaticPicker.types.mjs";
2
+ import type { DateOrTimeViewWithMeridiem } from "../../models/index.mjs";
3
3
  /**
4
4
  * Hook managing all the single-date static pickers:
5
5
  * - StaticDatePicker
@@ -1,5 +1,5 @@
1
- import { UseStaticPickerParams, UseStaticPickerProps } from "./useStaticPicker.types.js";
2
- import { DateOrTimeViewWithMeridiem } from "../../models/index.js";
1
+ import type { UseStaticPickerParams, UseStaticPickerProps } from "./useStaticPicker.types.js";
2
+ import type { DateOrTimeViewWithMeridiem } from "../../models/index.js";
3
3
  /**
4
4
  * Hook managing all the single-date static pickers:
5
5
  * - StaticDatePicker
@@ -1,8 +1,8 @@
1
- import { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.mjs";
2
- import { BasePickerProps } from "../../models/props/basePickerProps.mjs";
3
- import { UsePickerParameters, UsePickerProps } from "../usePicker/index.mjs";
4
- import { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.mjs";
5
- import { PickerStep } from "../../utils/createNonRangePickerStepNavigation.mjs";
1
+ import type { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.mjs";
2
+ import type { BasePickerProps } from "../../models/props/basePickerProps.mjs";
3
+ import type { UsePickerParameters, UsePickerProps } from "../usePicker/index.mjs";
4
+ import type { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.mjs";
5
+ import type { PickerStep } from "../../utils/createNonRangePickerStepNavigation.mjs";
6
6
  export interface UseStaticPickerSlots extends ExportedPickersLayoutSlots<PickerValue> {}
7
7
  export interface UseStaticPickerSlotProps extends ExportedPickersLayoutSlotProps<PickerValue> {}
8
8
  export interface StaticOnlyPickerProps {
@@ -1,8 +1,8 @@
1
- import { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.js";
2
- import { BasePickerProps } from "../../models/props/basePickerProps.js";
3
- import { UsePickerParameters, UsePickerProps } from "../usePicker/index.js";
4
- import { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.js";
5
- import { PickerStep } from "../../utils/createNonRangePickerStepNavigation.js";
1
+ import type { ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps } from "../../../PickersLayout/PickersLayout.types.js";
2
+ import type { BasePickerProps } from "../../models/props/basePickerProps.js";
3
+ import type { UsePickerParameters, UsePickerProps } from "../usePicker/index.js";
4
+ import type { DateOrTimeViewWithMeridiem, PickerValue } from "../../models/index.js";
5
+ import type { PickerStep } from "../../utils/createNonRangePickerStepNavigation.js";
6
6
  export interface UseStaticPickerSlots extends ExportedPickersLayoutSlots<PickerValue> {}
7
7
  export interface UseStaticPickerSlotProps extends ExportedPickersLayoutSlotProps<PickerValue> {}
8
8
  export interface StaticOnlyPickerProps {
@@ -1,4 +1,4 @@
1
- import { PickerOwnerState } from "../../models/index.mjs";
1
+ import type { PickerOwnerState } from "../../models/index.mjs";
2
2
  export declare function useToolbarOwnerState(): PickerToolbarOwnerState;
3
3
  export interface PickerToolbarOwnerState extends PickerOwnerState {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { PickerOwnerState } from "../../models/index.js";
1
+ import type { PickerOwnerState } from "../../models/index.js";
2
2
  export declare function useToolbarOwnerState(): PickerToolbarOwnerState;
3
3
  export interface PickerToolbarOwnerState extends PickerOwnerState {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { PickersTimezone, PickerValidDate } from "../../models/index.mjs";
1
+ import type { PickersTimezone, PickerValidDate } from "../../models/index.mjs";
2
2
  export declare const useDefaultDates: () => {
3
3
  minDate: PickerValidDate;
4
4
  maxDate: PickerValidDate;
@@ -1,4 +1,4 @@
1
- import { PickersTimezone, PickerValidDate } from "../../models/index.js";
1
+ import type { PickersTimezone, PickerValidDate } from "../../models/index.js";
2
2
  export declare const useDefaultDates: () => {
3
3
  minDate: PickerValidDate;
4
4
  maxDate: PickerValidDate;
@@ -1,8 +1,8 @@
1
- import { MakeOptional } from '@mui/x-internals/types';
1
+ import type { MakeOptional } from '@mui/x-internals/types';
2
2
  import type { PickerSelectionState } from "./usePicker/index.mjs";
3
- import { DateOrTimeViewWithMeridiem, PickerValidValue } from "../models/index.mjs";
4
- import { PickerValidDate } from "../../models/index.mjs";
5
- import { CreateStepNavigationReturnValue } from "../utils/createStepNavigation.mjs";
3
+ import type { DateOrTimeViewWithMeridiem, PickerValidValue } from "../models/index.mjs";
4
+ import type { PickerValidDate } from "../../models/index.mjs";
5
+ import type { CreateStepNavigationReturnValue } from "../utils/createStepNavigation.mjs";
6
6
  export type PickerOnChangeFn = (date: PickerValidDate | null, selectionState?: PickerSelectionState) => void;
7
7
  export interface UseViewsOptions<TValue extends PickerValidValue, TView extends DateOrTimeViewWithMeridiem> {
8
8
  /**
@@ -1,8 +1,8 @@
1
- import { MakeOptional } from '@mui/x-internals/types';
1
+ import type { MakeOptional } from '@mui/x-internals/types';
2
2
  import type { PickerSelectionState } from "./usePicker/index.js";
3
- import { DateOrTimeViewWithMeridiem, PickerValidValue } from "../models/index.js";
4
- import { PickerValidDate } from "../../models/index.js";
5
- import { CreateStepNavigationReturnValue } from "../utils/createStepNavigation.js";
3
+ import type { DateOrTimeViewWithMeridiem, PickerValidValue } from "../models/index.js";
4
+ import type { PickerValidDate } from "../../models/index.js";
5
+ import type { CreateStepNavigationReturnValue } from "../utils/createStepNavigation.js";
6
6
  export type PickerOnChangeFn = (date: PickerValidDate | null, selectionState?: PickerSelectionState) => void;
7
7
  export interface UseViewsOptions<TValue extends PickerValidValue, TView extends DateOrTimeViewWithMeridiem> {
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { DateView, TimeView } from "../../models/views.mjs";
1
+ import type { DateView, TimeView } from "../../models/views.mjs";
2
2
  export type PickerOrientation = 'portrait' | 'landscape';
3
3
  export type PickerVariant = 'mobile' | 'desktop';
4
4
  export type TimeViewWithMeridiem = TimeView | 'meridiem';
@@ -1,4 +1,4 @@
1
- import { DateView, TimeView } from "../../models/views.js";
1
+ import type { DateView, TimeView } from "../../models/views.js";
2
2
  export type PickerOrientation = 'portrait' | 'landscape';
3
3
  export type PickerVariant = 'mobile' | 'desktop';
4
4
  export type TimeViewWithMeridiem = TimeView | 'meridiem';
@@ -1,5 +1,5 @@
1
1
  import type { FieldSection } from "../../models/index.mjs";
2
- import { RangePosition } from "./pickers.mjs";
2
+ import type { RangePosition } from "./pickers.mjs";
3
3
  export interface FieldRangeSection extends FieldSection {
4
4
  dateName: RangePosition;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { FieldSection } from "../../models/index.js";
2
- import { RangePosition } from "./pickers.js";
2
+ import type { RangePosition } from "./pickers.js";
3
3
  export interface FieldRangeSection extends FieldSection {
4
4
  dateName: RangePosition;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { ComponentNameToClassKey, ComponentsPropsList } from '@mui/material/styles';
2
- import { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
1
+ import type { ComponentNameToClassKey, ComponentsPropsList } from '@mui/material/styles';
2
+ import type { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
3
3
  /**
4
4
  * All standard components exposed by `material-ui` are `StyledComponents` with
5
5
  * certain `classes`, on which one can also set a top-level `className` and inline
@@ -1,5 +1,5 @@
1
- import { ComponentNameToClassKey, ComponentsPropsList } from '@mui/material/styles';
2
- import { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
1
+ import type { ComponentNameToClassKey, ComponentsPropsList } from '@mui/material/styles';
2
+ import type { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
3
3
  /**
4
4
  * All standard components exposed by `material-ui` are `StyledComponents` with
5
5
  * certain `classes`, on which one can also set a top-level `className` and inline
@@ -1,6 +1,6 @@
1
1
  import type { MuiPickersAdapter, PickerManager, PickersTimezone, PickerValidDate, PickerValueType } from "../../models/index.mjs";
2
2
  import type { GetDefaultReferenceDateProps } from "../utils/getDefaultReferenceDate.mjs";
3
- import { InferNonNullablePickerValue, PickerRangeValue, PickerValidValue } from "./value.mjs";
3
+ import type { InferNonNullablePickerValue, PickerRangeValue, PickerValidValue } from "./value.mjs";
4
4
  import type { UseFieldInternalProps } from "../hooks/useField/index.mjs";
5
5
  export type PickerAnyManager = PickerManager<any, any, any, any>;
6
6
  type PickerManagerProperties<TManager extends PickerAnyManager> = TManager extends PickerManager<infer TValue, infer TError, infer TValidationProps, infer TFieldInternalProps> ? {
@@ -1,6 +1,6 @@
1
1
  import type { MuiPickersAdapter, PickerManager, PickersTimezone, PickerValidDate, PickerValueType } from "../../models/index.js";
2
2
  import type { GetDefaultReferenceDateProps } from "../utils/getDefaultReferenceDate.js";
3
- import { InferNonNullablePickerValue, PickerRangeValue, PickerValidValue } from "./value.js";
3
+ import type { InferNonNullablePickerValue, PickerRangeValue, PickerValidValue } from "./value.js";
4
4
  import type { UseFieldInternalProps } from "../hooks/useField/index.js";
5
5
  export type PickerAnyManager = PickerManager<any, any, any, any>;
6
6
  type PickerManagerProperties<TManager extends PickerAnyManager> = TManager extends PickerManager<infer TValue, infer TError, infer TValidationProps, infer TFieldInternalProps> ? {