@mui/x-date-pickers 8.0.0 → 8.2.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 (274) hide show
  1. package/CHANGELOG.md +230 -5
  2. package/DateCalendar/DateCalendar.js +2 -4
  3. package/DateCalendar/DayCalendar.js +9 -18
  4. package/DateCalendar/PickersFadeTransitionGroup.d.ts +4 -2
  5. package/DateCalendar/PickersFadeTransitionGroup.js +10 -3
  6. package/DateCalendar/PickersSlideTransition.d.ts +4 -0
  7. package/DateCalendar/PickersSlideTransition.js +1 -0
  8. package/DateCalendar/index.d.ts +7 -7
  9. package/DateField/index.d.ts +1 -1
  10. package/DateField/useDateField.d.ts +1 -1
  11. package/DatePicker/DatePickerToolbar.js +2 -4
  12. package/DatePicker/index.d.ts +3 -3
  13. package/DateTimeField/index.d.ts +1 -1
  14. package/DateTimeField/useDateTimeField.d.ts +1 -1
  15. package/DateTimePicker/DateTimePickerTabs.js +1 -2
  16. package/DateTimePicker/DateTimePickerToolbar.js +1 -6
  17. package/DateTimePicker/index.d.ts +5 -5
  18. package/DayCalendarSkeleton/DayCalendarSkeleton.js +5 -7
  19. package/DayCalendarSkeleton/index.d.ts +2 -2
  20. package/DesktopDatePicker/index.d.ts +1 -1
  21. package/DesktopDateTimePicker/index.d.ts +1 -1
  22. package/DesktopTimePicker/index.d.ts +1 -1
  23. package/DigitalClock/DigitalClock.js +3 -6
  24. package/DigitalClock/index.d.ts +2 -2
  25. package/LocalizationProvider/index.d.ts +1 -1
  26. package/MobileDatePicker/index.d.ts +1 -1
  27. package/MobileDateTimePicker/index.d.ts +1 -1
  28. package/MobileTimePicker/index.d.ts +1 -1
  29. package/MonthCalendar/MonthCalendar.js +0 -1
  30. package/MonthCalendar/index.d.ts +2 -2
  31. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -2
  32. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +8 -1
  33. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -4
  34. package/MultiSectionDigitalClock/index.d.ts +4 -4
  35. package/PickersActionBar/PickersActionBar.js +1 -2
  36. package/PickersActionBar/index.d.ts +1 -1
  37. package/PickersCalendarHeader/PickersCalendarHeader.js +5 -10
  38. package/PickersCalendarHeader/index.d.ts +2 -2
  39. package/PickersDay/index.d.ts +2 -2
  40. package/PickersLayout/PickersLayout.js +2 -4
  41. package/PickersLayout/index.d.ts +2 -2
  42. package/PickersSectionList/PickersSectionList.d.ts +1 -1
  43. package/PickersSectionList/PickersSectionList.js +4 -8
  44. package/PickersSectionList/PickersSectionList.types.d.ts +1 -1
  45. package/PickersSectionList/index.d.ts +2 -2
  46. package/PickersShortcuts/PickersShortcuts.js +1 -2
  47. package/PickersShortcuts/index.d.ts +1 -1
  48. package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +1 -1
  49. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -3
  50. package/PickersTextField/PickersFilledInput/index.d.ts +2 -2
  51. package/PickersTextField/PickersInput/PickersInput.d.ts +7 -0
  52. package/PickersTextField/PickersInput/PickersInput.js +1 -2
  53. package/PickersTextField/PickersInput/index.d.ts +2 -2
  54. package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +1 -1
  55. package/PickersTextField/PickersInputBase/PickersInputBase.js +8 -13
  56. package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +2 -1
  57. package/PickersTextField/PickersInputBase/index.d.ts +2 -2
  58. package/PickersTextField/PickersOutlinedInput/Outline.js +1 -2
  59. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -5
  60. package/PickersTextField/PickersOutlinedInput/index.d.ts +2 -2
  61. package/PickersTextField/PickersTextField.d.ts +1 -1
  62. package/PickersTextField/PickersTextField.js +1 -2
  63. package/PickersTextField/PickersTextField.types.d.ts +4 -43
  64. package/PickersTextField/index.d.ts +2 -2
  65. package/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
  66. package/StaticDatePicker/index.d.ts +1 -1
  67. package/StaticDateTimePicker/index.d.ts +1 -1
  68. package/StaticTimePicker/index.d.ts +1 -1
  69. package/TimeClock/Clock.d.ts +13 -2
  70. package/TimeClock/Clock.js +8 -16
  71. package/TimeClock/ClockNumber.d.ts +18 -0
  72. package/TimeClock/ClockNumbers.d.ts +1 -1
  73. package/TimeClock/ClockPointer.d.ts +13 -1
  74. package/TimeClock/ClockPointer.js +2 -4
  75. package/TimeClock/TimeClock.js +2 -4
  76. package/TimeClock/index.d.ts +8 -8
  77. package/TimeField/index.d.ts +1 -1
  78. package/TimeField/useTimeField.d.ts +1 -1
  79. package/TimePicker/TimePickerToolbar.js +2 -4
  80. package/TimePicker/index.d.ts +3 -3
  81. package/YearCalendar/index.d.ts +2 -2
  82. package/dateViewRenderers/index.d.ts +1 -1
  83. package/esm/DateCalendar/DateCalendar.js +2 -4
  84. package/esm/DateCalendar/DayCalendar.js +9 -18
  85. package/esm/DateCalendar/PickersFadeTransitionGroup.d.ts +4 -2
  86. package/esm/DateCalendar/PickersFadeTransitionGroup.js +10 -3
  87. package/esm/DateCalendar/PickersSlideTransition.d.ts +4 -0
  88. package/esm/DateCalendar/PickersSlideTransition.js +1 -0
  89. package/esm/DateCalendar/index.d.ts +7 -7
  90. package/esm/DateField/index.d.ts +1 -1
  91. package/esm/DateField/useDateField.d.ts +1 -1
  92. package/esm/DatePicker/DatePickerToolbar.js +2 -4
  93. package/esm/DatePicker/index.d.ts +3 -3
  94. package/esm/DateTimeField/index.d.ts +1 -1
  95. package/esm/DateTimeField/useDateTimeField.d.ts +1 -1
  96. package/esm/DateTimePicker/DateTimePickerTabs.js +1 -2
  97. package/esm/DateTimePicker/DateTimePickerToolbar.js +1 -6
  98. package/esm/DateTimePicker/index.d.ts +5 -5
  99. package/esm/DayCalendarSkeleton/DayCalendarSkeleton.js +5 -7
  100. package/esm/DayCalendarSkeleton/index.d.ts +2 -2
  101. package/esm/DesktopDatePicker/index.d.ts +1 -1
  102. package/esm/DesktopDateTimePicker/index.d.ts +1 -1
  103. package/esm/DesktopTimePicker/index.d.ts +1 -1
  104. package/esm/DigitalClock/DigitalClock.js +3 -6
  105. package/esm/DigitalClock/index.d.ts +2 -2
  106. package/esm/LocalizationProvider/index.d.ts +1 -1
  107. package/esm/MobileDatePicker/index.d.ts +1 -1
  108. package/esm/MobileDateTimePicker/index.d.ts +1 -1
  109. package/esm/MobileTimePicker/index.d.ts +1 -1
  110. package/esm/MonthCalendar/MonthCalendar.js +0 -1
  111. package/esm/MonthCalendar/index.d.ts +2 -2
  112. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -2
  113. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +8 -1
  114. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -4
  115. package/esm/MultiSectionDigitalClock/index.d.ts +4 -4
  116. package/esm/PickersActionBar/PickersActionBar.js +1 -2
  117. package/esm/PickersActionBar/index.d.ts +1 -1
  118. package/esm/PickersCalendarHeader/PickersCalendarHeader.js +5 -10
  119. package/esm/PickersCalendarHeader/index.d.ts +2 -2
  120. package/esm/PickersDay/index.d.ts +2 -2
  121. package/esm/PickersLayout/PickersLayout.js +2 -4
  122. package/esm/PickersLayout/index.d.ts +2 -2
  123. package/esm/PickersSectionList/PickersSectionList.d.ts +1 -1
  124. package/esm/PickersSectionList/PickersSectionList.js +4 -8
  125. package/esm/PickersSectionList/PickersSectionList.types.d.ts +1 -1
  126. package/esm/PickersSectionList/index.d.ts +2 -2
  127. package/esm/PickersShortcuts/PickersShortcuts.js +1 -2
  128. package/esm/PickersShortcuts/index.d.ts +1 -1
  129. package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +1 -1
  130. package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -3
  131. package/esm/PickersTextField/PickersFilledInput/index.d.ts +2 -2
  132. package/esm/PickersTextField/PickersInput/PickersInput.d.ts +7 -0
  133. package/esm/PickersTextField/PickersInput/PickersInput.js +1 -2
  134. package/esm/PickersTextField/PickersInput/index.d.ts +2 -2
  135. package/esm/PickersTextField/PickersInputBase/PickersInputBase.d.ts +1 -1
  136. package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +8 -13
  137. package/esm/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +2 -1
  138. package/esm/PickersTextField/PickersInputBase/index.d.ts +2 -2
  139. package/esm/PickersTextField/PickersOutlinedInput/Outline.js +1 -2
  140. package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -5
  141. package/esm/PickersTextField/PickersOutlinedInput/index.d.ts +2 -2
  142. package/esm/PickersTextField/PickersTextField.d.ts +1 -1
  143. package/esm/PickersTextField/PickersTextField.js +1 -2
  144. package/esm/PickersTextField/PickersTextField.types.d.ts +4 -43
  145. package/esm/PickersTextField/index.d.ts +2 -2
  146. package/esm/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
  147. package/esm/StaticDatePicker/index.d.ts +1 -1
  148. package/esm/StaticDateTimePicker/index.d.ts +1 -1
  149. package/esm/StaticTimePicker/index.d.ts +1 -1
  150. package/esm/TimeClock/Clock.d.ts +13 -2
  151. package/esm/TimeClock/Clock.js +8 -16
  152. package/esm/TimeClock/ClockNumber.d.ts +18 -0
  153. package/esm/TimeClock/ClockNumbers.d.ts +1 -1
  154. package/esm/TimeClock/ClockPointer.d.ts +13 -1
  155. package/esm/TimeClock/ClockPointer.js +2 -4
  156. package/esm/TimeClock/TimeClock.js +2 -4
  157. package/esm/TimeClock/index.d.ts +8 -8
  158. package/esm/TimeField/index.d.ts +1 -1
  159. package/esm/TimeField/useTimeField.d.ts +1 -1
  160. package/esm/TimePicker/TimePickerToolbar.js +2 -4
  161. package/esm/TimePicker/index.d.ts +3 -3
  162. package/esm/YearCalendar/index.d.ts +2 -2
  163. package/esm/dateViewRenderers/index.d.ts +1 -1
  164. package/esm/hooks/usePickerContext.d.ts +1 -1
  165. package/esm/hooks/usePickerTranslations.d.ts +1 -1
  166. package/esm/index.js +1 -1
  167. package/esm/internals/components/PickerFieldUI.d.ts +1 -1
  168. package/esm/internals/components/PickerPopper/PickerPopper.d.ts +2 -3
  169. package/esm/internals/components/PickerPopper/PickerPopper.js +2 -4
  170. package/esm/internals/components/PickerPopper/index.d.ts +2 -2
  171. package/esm/internals/components/PickerProvider.d.ts +2 -2
  172. package/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +3 -6
  173. package/esm/internals/components/PickersArrowSwitcher/index.d.ts +2 -2
  174. package/esm/internals/components/PickersToolbar.js +1 -3
  175. package/esm/internals/components/PickersToolbarButton.js +3 -3
  176. package/esm/internals/components/PickersToolbarText.js +3 -3
  177. package/esm/internals/hooks/date-helpers-hooks.d.ts +1 -1
  178. package/esm/internals/hooks/useControlledValue.d.ts +1 -1
  179. package/esm/internals/hooks/useDesktopPicker/index.d.ts +1 -1
  180. package/esm/internals/hooks/useField/index.d.ts +1 -1
  181. package/esm/internals/hooks/useField/useField.types.d.ts +1 -1
  182. package/esm/internals/hooks/useMobilePicker/index.d.ts +1 -1
  183. package/esm/internals/hooks/useNullableFieldPrivateContext.d.ts +1 -1
  184. package/esm/internals/hooks/useNullablePickerContext.d.ts +1 -1
  185. package/esm/internals/hooks/usePicker/index.d.ts +1 -1
  186. package/esm/internals/hooks/usePickerPrivateContext.d.ts +1 -1
  187. package/esm/internals/hooks/useStaticPicker/index.d.ts +1 -1
  188. package/esm/internals/hooks/useViews.d.ts +1 -1
  189. package/esm/internals/index.d.ts +34 -32
  190. package/esm/internals/index.js +1 -0
  191. package/esm/internals/models/fields.d.ts +1 -1
  192. package/esm/internals/models/helpers.d.ts +12 -1
  193. package/esm/internals/models/manager.d.ts +3 -3
  194. package/esm/internals/models/props/basePickerProps.d.ts +1 -1
  195. package/esm/internals/models/props/time.d.ts +3 -3
  196. package/esm/internals/models/validation.d.ts +1 -1
  197. package/esm/internals/utils/createNonRangePickerStepNavigation.d.ts +1 -1
  198. package/esm/internals/utils/valueManagers.d.ts +2 -2
  199. package/esm/locales/enUS.d.ts +1 -1
  200. package/esm/locales/itIT.js +2 -2
  201. package/esm/locales/mk.d.ts +1 -1
  202. package/esm/locales/utils/getPickersLocalization.d.ts +1 -1
  203. package/esm/managers/index.d.ts +3 -3
  204. package/esm/models/fields.d.ts +43 -4
  205. package/esm/models/manager.d.ts +4 -4
  206. package/esm/models/pickers.d.ts +1 -1
  207. package/esm/models/validation.d.ts +1 -1
  208. package/esm/themeAugmentation/components.d.ts +44 -37
  209. package/esm/themeAugmentation/components.js +1 -0
  210. package/esm/themeAugmentation/index.d.ts +3 -3
  211. package/esm/themeAugmentation/overrides.d.ts +0 -6
  212. package/esm/themeAugmentation/overrides.js +4 -0
  213. package/esm/themeAugmentation/props.d.ts +2 -12
  214. package/esm/themeAugmentation/props.js +2 -0
  215. package/esm/timeViewRenderers/index.d.ts +1 -1
  216. package/esm/timeViewRenderers/timeViewRenderers.d.ts +1 -1
  217. package/esm/validation/index.d.ts +4 -4
  218. package/esm/validation/useValidation.d.ts +1 -1
  219. package/hooks/usePickerContext.d.ts +1 -1
  220. package/hooks/usePickerTranslations.d.ts +1 -1
  221. package/index.js +1 -1
  222. package/internals/components/PickerFieldUI.d.ts +1 -1
  223. package/internals/components/PickerPopper/PickerPopper.d.ts +2 -3
  224. package/internals/components/PickerPopper/PickerPopper.js +2 -4
  225. package/internals/components/PickerPopper/index.d.ts +2 -2
  226. package/internals/components/PickerProvider.d.ts +2 -2
  227. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +3 -6
  228. package/internals/components/PickersArrowSwitcher/index.d.ts +2 -2
  229. package/internals/components/PickersToolbar.js +1 -3
  230. package/internals/components/PickersToolbarButton.js +3 -3
  231. package/internals/components/PickersToolbarText.js +3 -3
  232. package/internals/hooks/date-helpers-hooks.d.ts +1 -1
  233. package/internals/hooks/useControlledValue.d.ts +1 -1
  234. package/internals/hooks/useDesktopPicker/index.d.ts +1 -1
  235. package/internals/hooks/useField/index.d.ts +1 -1
  236. package/internals/hooks/useField/useField.types.d.ts +1 -1
  237. package/internals/hooks/useMobilePicker/index.d.ts +1 -1
  238. package/internals/hooks/useNullableFieldPrivateContext.d.ts +1 -1
  239. package/internals/hooks/useNullablePickerContext.d.ts +1 -1
  240. package/internals/hooks/usePicker/index.d.ts +1 -1
  241. package/internals/hooks/usePickerPrivateContext.d.ts +1 -1
  242. package/internals/hooks/useStaticPicker/index.d.ts +1 -1
  243. package/internals/hooks/useViews.d.ts +1 -1
  244. package/internals/index.d.ts +34 -32
  245. package/internals/index.js +7 -0
  246. package/internals/models/fields.d.ts +1 -1
  247. package/internals/models/helpers.d.ts +12 -1
  248. package/internals/models/manager.d.ts +3 -3
  249. package/internals/models/props/basePickerProps.d.ts +1 -1
  250. package/internals/models/props/time.d.ts +3 -3
  251. package/internals/models/validation.d.ts +1 -1
  252. package/internals/utils/createNonRangePickerStepNavigation.d.ts +1 -1
  253. package/internals/utils/valueManagers.d.ts +2 -2
  254. package/locales/enUS.d.ts +1 -1
  255. package/locales/itIT.js +2 -2
  256. package/locales/mk.d.ts +1 -1
  257. package/locales/utils/getPickersLocalization.d.ts +1 -1
  258. package/managers/index.d.ts +3 -3
  259. package/models/fields.d.ts +43 -4
  260. package/models/manager.d.ts +4 -4
  261. package/models/pickers.d.ts +1 -1
  262. package/models/validation.d.ts +1 -1
  263. package/package.json +2 -2
  264. package/themeAugmentation/components.d.ts +44 -37
  265. package/themeAugmentation/components.js +5 -0
  266. package/themeAugmentation/index.d.ts +3 -3
  267. package/themeAugmentation/overrides.d.ts +0 -6
  268. package/themeAugmentation/overrides.js +5 -0
  269. package/themeAugmentation/props.d.ts +2 -12
  270. package/themeAugmentation/props.js +5 -0
  271. package/timeViewRenderers/index.d.ts +1 -1
  272. package/timeViewRenderers/timeViewRenderers.d.ts +1 -1
  273. package/validation/index.d.ts +4 -4
  274. package/validation/useValidation.d.ts +1 -1
@@ -24,8 +24,7 @@ const useUtilityClasses = classes => {
24
24
  };
25
25
  const PickerPopperRoot = styled(MuiPopper, {
26
26
  name: 'MuiPickerPopper',
27
- slot: 'Root',
28
- overridesResolver: (_, styles) => styles.root
27
+ slot: 'Root'
29
28
  })(({
30
29
  theme
31
30
  }) => ({
@@ -33,8 +32,7 @@ const PickerPopperRoot = styled(MuiPopper, {
33
32
  }));
34
33
  const PickerPopperPaper = styled(MuiPaper, {
35
34
  name: 'MuiPickerPopper',
36
- slot: 'Paper',
37
- overridesResolver: (_, styles) => styles.paper
35
+ slot: 'Paper'
38
36
  })({
39
37
  outline: 0,
40
38
  transformOrigin: 'top center',
@@ -1,4 +1,4 @@
1
1
  export { PickerPopper } from "./PickerPopper.js";
2
- export type { ExportedPickerPopperProps } from './PickerPopper';
2
+ export type { ExportedPickerPopperProps } from "./PickerPopper.js";
3
3
  export { pickerPopperClasses, getPickerPopperUtilityClass } from "./pickerPopperClasses.js";
4
- export type { PickerPopperClassKey, PickerPopperClasses } from './pickerPopperClasses';
4
+ export type { PickerPopperClassKey, PickerPopperClasses } from "./pickerPopperClasses.js";
@@ -5,8 +5,8 @@ import { PickerChangeImportance, PickerOwnerState, PickersTimezone } from "../..
5
5
  import { PickersInputLocaleText } from "../../locales/index.js";
6
6
  import { DateOrTimeViewWithMeridiem, PickerOrientation, PickerValidValue, PickerVariant } from "../models/index.js";
7
7
  import { PickerFieldPrivateContextValue } from "../hooks/useNullableFieldPrivateContext.js";
8
- import type { PickersShortcutsItemContext } from '../../PickersShortcuts';
9
- import type { PickersActionBarAction } from '../../PickersActionBar';
8
+ import type { PickersShortcutsItemContext } from "../../PickersShortcuts/index.js";
9
+ import type { PickersActionBarAction } from "../../PickersActionBar/index.js";
10
10
  export declare const PickerActionsContext: React.Context<PickerActionsContextValue<any, any, any> | null>;
11
11
  export declare const PickerPrivateContext: React.Context<PickerPrivateContextValue>;
12
12
  /**
@@ -17,15 +17,13 @@ import { usePickerPrivateContext } from "../../hooks/usePickerPrivateContext.js"
17
17
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
18
  const PickersArrowSwitcherRoot = styled('div', {
19
19
  name: 'MuiPickersArrowSwitcher',
20
- slot: 'Root',
21
- overridesResolver: (props, styles) => styles.root
20
+ slot: 'Root'
22
21
  })({
23
22
  display: 'flex'
24
23
  });
25
24
  const PickersArrowSwitcherSpacer = styled('div', {
26
25
  name: 'MuiPickersArrowSwitcher',
27
- slot: 'Spacer',
28
- overridesResolver: (props, styles) => styles.spacer
26
+ slot: 'Spacer'
29
27
  })(({
30
28
  theme
31
29
  }) => ({
@@ -33,8 +31,7 @@ const PickersArrowSwitcherSpacer = styled('div', {
33
31
  }));
34
32
  const PickersArrowSwitcherButton = styled(IconButton, {
35
33
  name: 'MuiPickersArrowSwitcher',
36
- slot: 'Button',
37
- overridesResolver: (props, styles) => styles.button
34
+ slot: 'Button'
38
35
  })({
39
36
  variants: [{
40
37
  props: {
@@ -1,4 +1,4 @@
1
1
  export { PickersArrowSwitcher } from "./PickersArrowSwitcher.js";
2
- export type { PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps, ExportedPickersArrowSwitcherProps } from './PickersArrowSwitcher.types';
2
+ export type { PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps, ExportedPickersArrowSwitcherProps } from "./PickersArrowSwitcher.types.js";
3
3
  export { pickersArrowSwitcherClasses, getPickersArrowSwitcherUtilityClass } from "./pickersArrowSwitcherClasses.js";
4
- export type { PickersArrowSwitcherClassKey, PickersArrowSwitcherClasses } from './pickersArrowSwitcherClasses';
4
+ export type { PickersArrowSwitcherClassKey, PickersArrowSwitcherClasses } from "./pickersArrowSwitcherClasses.js";
@@ -20,8 +20,7 @@ const useUtilityClasses = classes => {
20
20
  };
21
21
  const PickersToolbarRoot = styled('div', {
22
22
  name: 'MuiPickersToolbar',
23
- slot: 'Root',
24
- overridesResolver: (props, styles) => styles.root
23
+ slot: 'Root'
25
24
  })(({
26
25
  theme
27
26
  }) => ({
@@ -46,7 +45,6 @@ const PickersToolbarRoot = styled('div', {
46
45
  const PickersToolbarContent = styled('div', {
47
46
  name: 'MuiPickersToolbar',
48
47
  slot: 'Content',
49
- overridesResolver: (props, styles) => styles.content,
50
48
  shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'landscapeDirection'
51
49
  })({
52
50
  display: 'flex',
@@ -17,8 +17,7 @@ const useUtilityClasses = classes => {
17
17
  };
18
18
  const PickersToolbarButtonRoot = styled(Button, {
19
19
  name: 'MuiPickersToolbarButton',
20
- slot: 'Root',
21
- overridesResolver: (_, styles) => styles.root
20
+ slot: 'Root'
22
21
  })({
23
22
  padding: 0,
24
23
  minWidth: 16,
@@ -44,7 +43,8 @@ export const PickersToolbarButton = /*#__PURE__*/React.forwardRef(function Picke
44
43
  return /*#__PURE__*/_jsx(PickersToolbarButtonRoot, _extends({
45
44
  variant: "text",
46
45
  ref: ref,
47
- className: clsx(classes.root, className)
46
+ className: clsx(classes.root, className),
47
+ ownerState: props
48
48
  }, width ? {
49
49
  sx: {
50
50
  width
@@ -16,8 +16,7 @@ const useUtilityClasses = classes => {
16
16
  };
17
17
  const PickersToolbarTextRoot = styled(Typography, {
18
18
  name: 'MuiPickersToolbarText',
19
- slot: 'Root',
20
- overridesResolver: (_, styles) => [styles.root]
19
+ slot: 'Root'
21
20
  })(({
22
21
  theme
23
22
  }) => ({
@@ -43,7 +42,8 @@ export const PickersToolbarText = /*#__PURE__*/React.forwardRef(function Pickers
43
42
  return /*#__PURE__*/_jsx(PickersToolbarTextRoot, _extends({
44
43
  ref: ref,
45
44
  className: clsx(classes.root, className),
46
- component: "span"
45
+ component: "span",
46
+ ownerState: props
47
47
  }, selected && {
48
48
  'data-selected': true
49
49
  }, other, {
@@ -19,6 +19,6 @@ export declare function usePreviousMonthDisabled(month: PickerValidDate, {
19
19
  timezone
20
20
  }: Pick<MonthValidationOptions, 'disablePast' | 'minDate' | 'timezone'>): boolean;
21
21
  export declare function useMeridiemMode(date: PickerValidDate | null, ampm: boolean | undefined, onChange: PickerOnChangeFn, selectionState?: PickerSelectionState): {
22
- meridiemMode: import("../utils/time-utils").Meridiem | null;
22
+ meridiemMode: import("../utils/time-utils.js").Meridiem | null;
23
23
  handleMeridiemChange: (mode: "am" | "pm") => void;
24
24
  };
@@ -1,4 +1,4 @@
1
- import type { PickerValueManager } from '../models';
1
+ import type { PickerValueManager } from "../models/index.js";
2
2
  import { PickersTimezone, PickerValidDate } from "../../models/index.js";
3
3
  import { PickerValidValue } from "../models/index.js";
4
4
  /**
@@ -1,2 +1,2 @@
1
1
  export { useDesktopPicker } from "./useDesktopPicker.js";
2
- export type { UseDesktopPickerSlots, UseDesktopPickerSlotProps, ExportedUseDesktopPickerSlotProps, DesktopOnlyPickerProps, UseDesktopPickerProps } from './useDesktopPicker.types';
2
+ export type { UseDesktopPickerSlots, UseDesktopPickerSlotProps, ExportedUseDesktopPickerSlotProps, DesktopOnlyPickerProps, UseDesktopPickerProps } from "./useDesktopPicker.types.js";
@@ -1,4 +1,4 @@
1
1
  export { useField } from "./useField.js";
2
- export type { UseFieldInternalProps, UseFieldParameters, UseFieldReturnValue, UseFieldProps, FieldValueManager, FieldChangeHandler, FieldChangeHandlerContext } from './useField.types';
2
+ export type { UseFieldInternalProps, UseFieldParameters, UseFieldReturnValue, UseFieldProps, FieldValueManager, FieldChangeHandler, FieldChangeHandlerContext } from "./useField.types.js";
3
3
  export { createDateStrForV7HiddenInputFromSections, createDateStrForV6InputFromSections } from "./useField.utils.js";
4
4
  export { useFieldInternalPropsWithDefaults } from "./useFieldInternalPropsWithDefaults.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { FieldSectionType, FieldSection, FieldSelectedSections, MuiPickersAdapter, TimezoneProps, FieldSectionContentType, PickerValidDate, FieldRef, OnErrorProps, InferFieldSection, PickerManager, PickerValueType } from "../../../models/index.js";
3
3
  import { InternalPropNames } from "../../../hooks/useSplitFieldProps.js";
4
- import type { PickersSectionElement, PickersSectionListRef } from '../../../PickersSectionList';
4
+ import type { PickersSectionElement, PickersSectionListRef } from "../../../PickersSectionList/index.js";
5
5
  import { FormProps, InferNonNullablePickerValue, PickerValidValue } from "../../models/index.js";
6
6
  export interface UseFieldParameters<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError, TValidationProps extends {}, TProps extends UseFieldProps<TEnableAccessibleFieldDOMStructure>> {
7
7
  manager: PickerManager<TValue, TEnableAccessibleFieldDOMStructure, TError, TValidationProps, any>;
@@ -1,2 +1,2 @@
1
1
  export { useMobilePicker } from "./useMobilePicker.js";
2
- export type { UseMobilePickerSlots, UseMobilePickerSlotProps, ExportedUseMobilePickerSlotProps, MobileOnlyPickerProps } from './useMobilePicker.types';
2
+ export type { UseMobilePickerSlots, UseMobilePickerSlotProps, ExportedUseMobilePickerSlotProps, MobileOnlyPickerProps } from "./useMobilePicker.types.js";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { UseFieldInternalProps } from './useField';
2
+ import type { UseFieldInternalProps } from "./useField/index.js";
3
3
  import { FieldRef } from "../../models/index.js";
4
4
  import { PickerRangeValue, PickerValue } from "../models/index.js";
5
5
  export declare const PickerFieldPrivateContext: React.Context<PickerFieldPrivateContextValue | null>;
@@ -2,4 +2,4 @@
2
2
  * Returns the context passed by the Picker wrapping the current component.
3
3
  * If the context is not found, returns `null`.
4
4
  */
5
- export declare const useNullablePickerContext: () => import("..").PickerContextValue<any, any, any> | null;
5
+ export declare const useNullablePickerContext: () => import("../index.js").PickerContextValue<any, any, any> | null;
@@ -1,2 +1,2 @@
1
1
  export { usePicker } from "./usePicker.js";
2
- export type { UsePickerProps, UsePickerBaseProps, UsePickerParameters, PickerSelectionState, PickerViewsRendererProps, PickerViewRendererLookup, PickerRendererInterceptorProps, PickerViewRenderer, UsePickerNonStaticProps } from './usePicker.types';
2
+ export type { UsePickerProps, UsePickerBaseProps, UsePickerParameters, PickerSelectionState, PickerViewsRendererProps, PickerViewRendererLookup, PickerRendererInterceptorProps, PickerViewRenderer, UsePickerNonStaticProps } from "./usePicker.types.js";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Returns the private context passed by the Picker wrapping the current component.
3
3
  */
4
- export declare const usePickerPrivateContext: () => import("../components/PickerProvider").PickerPrivateContextValue;
4
+ export declare const usePickerPrivateContext: () => import("../components/PickerProvider.js").PickerPrivateContextValue;
@@ -1,2 +1,2 @@
1
1
  export { useStaticPicker } from "./useStaticPicker.js";
2
- export type { UseStaticPickerSlots, UseStaticPickerSlotProps, StaticOnlyPickerProps } from './useStaticPicker.types';
2
+ export type { UseStaticPickerSlots, UseStaticPickerSlotProps, StaticOnlyPickerProps } from "./useStaticPicker.types.js";
@@ -1,5 +1,5 @@
1
1
  import { MakeOptional } from '@mui/x-internals/types';
2
- import type { PickerSelectionState } from './usePicker';
2
+ import type { PickerSelectionState } from "./usePicker/index.js";
3
3
  import { DateOrTimeViewWithMeridiem, PickerValidValue } from "../models/index.js";
4
4
  import { PickerValidDate } from "../../models/index.js";
5
5
  import { CreateStepNavigationReturnValue } from "../utils/createStepNavigation.js";
@@ -1,58 +1,60 @@
1
1
  export { PickersArrowSwitcher } from "./components/PickersArrowSwitcher/PickersArrowSwitcher.js";
2
- export type { ExportedPickersArrowSwitcherProps, PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps } from './components/PickersArrowSwitcher';
2
+ export type { ExportedPickersArrowSwitcherProps, PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps } from "./components/PickersArrowSwitcher/index.js";
3
3
  export { PickerFieldUI, PickerFieldUIContextProvider, cleanFieldResponse, useFieldTextFieldProps, PickerFieldUIContext, mergeSlotProps } from "./components/PickerFieldUI.js";
4
- export type { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps, PickerFieldUISlotsFromContext, PickerFieldUISlotPropsFromContext } from './components/PickerFieldUI';
4
+ export type { ExportedPickerFieldUIProps, PickerFieldUISlots, PickerFieldUISlotProps, PickerFieldUISlotsFromContext, PickerFieldUISlotPropsFromContext } from "./components/PickerFieldUI.js";
5
5
  export { PickerProvider } from "./components/PickerProvider.js";
6
- export type { PickerContextValue } from './components/PickerProvider';
6
+ export type { PickerContextValue } from "./components/PickerProvider.js";
7
7
  export { PickersModalDialog } from "./components/PickersModalDialog.js";
8
- export type { PickersModalDialogSlots, PickersModalDialogSlotProps } from './components/PickersModalDialog';
8
+ export type { PickersModalDialogSlots, PickersModalDialogSlotProps } from "./components/PickersModalDialog.js";
9
9
  export { PickerPopper } from "./components/PickerPopper/PickerPopper.js";
10
- export type { PickerPopperSlots, PickerPopperSlotProps } from './components/PickerPopper/PickerPopper';
10
+ export type { PickerPopperSlots, PickerPopperSlotProps } from "./components/PickerPopper/PickerPopper.js";
11
+ export { pickerPopperClasses } from "./components/PickerPopper/pickerPopperClasses.js";
11
12
  export { PickersToolbar } from "./components/PickersToolbar.js";
12
- export type { PickersToolbarProps } from './components/PickersToolbar';
13
+ export type { PickersToolbarProps } from "./components/PickersToolbar.js";
13
14
  export { pickersToolbarClasses } from "./components/pickersToolbarClasses.js";
14
- export type { PickersToolbarClassKey, PickersToolbarClasses } from './components/pickersToolbarClasses';
15
- export type { PickersToolbarButtonProps } from './components/PickersToolbarButton';
15
+ export type { PickersToolbarClassKey, PickersToolbarClasses } from "./components/pickersToolbarClasses.js";
16
+ export type { PickersToolbarButtonProps } from "./components/PickersToolbarButton.js";
16
17
  export { pickersToolbarButtonClasses } from "./components/pickersToolbarButtonClasses.js";
17
- export type { PickersToolbarButtonClassKey, PickersToolbarButtonClasses } from './components/pickersToolbarButtonClasses';
18
+ export type { PickersToolbarButtonClassKey, PickersToolbarButtonClasses } from "./components/pickersToolbarButtonClasses.js";
18
19
  export { PickersToolbarText } from "./components/PickersToolbarText.js";
19
- export type { PickersToolbarTextProps, ExportedPickersToolbarTextProps } from './components/PickersToolbarText';
20
+ export type { PickersToolbarTextProps, ExportedPickersToolbarTextProps } from "./components/PickersToolbarText.js";
20
21
  export { pickersToolbarTextClasses } from "./components/pickersToolbarTextClasses.js";
21
- export type { PickersToolbarTextClassKey, PickersToolbarTextClasses } from './components/pickersToolbarTextClasses';
22
+ export type { PickersToolbarTextClassKey, PickersToolbarTextClasses } from "./components/pickersToolbarTextClasses.js";
22
23
  export { pickersArrowSwitcherClasses } from "./components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js";
23
- export type { PickersArrowSwitcherClassKey, PickersArrowSwitcherClasses } from './components/PickersArrowSwitcher/pickersArrowSwitcherClasses';
24
+ export type { PickersArrowSwitcherClassKey, PickersArrowSwitcherClasses } from "./components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js";
24
25
  export { PickersToolbarButton } from "./components/PickersToolbarButton.js";
25
26
  export { DAY_MARGIN, DIALOG_WIDTH, VIEW_HEIGHT, MULTI_SECTION_CLOCK_SECTION_WIDTH } from "./constants/dimensions.js";
26
27
  export { useControlledValue } from "./hooks/useControlledValue.js";
27
- export type { DesktopOnlyPickerProps } from './hooks/useDesktopPicker';
28
+ export type { DesktopOnlyPickerProps } from "./hooks/useDesktopPicker/index.js";
28
29
  export { useField, useFieldInternalPropsWithDefaults, createDateStrForV7HiddenInputFromSections, createDateStrForV6InputFromSections } from "./hooks/useField/index.js";
29
- export type { UseFieldInternalProps, UseFieldParameters, UseFieldReturnValue, FieldValueManager, FieldChangeHandler, FieldChangeHandlerContext } from './hooks/useField';
30
+ export type { UseFieldInternalProps, UseFieldParameters, UseFieldReturnValue, FieldValueManager, FieldChangeHandler, FieldChangeHandlerContext } from "./hooks/useField/index.js";
30
31
  export { useFieldOwnerState } from "./hooks/useFieldOwnerState.js";
31
- export type { MobileOnlyPickerProps } from './hooks/useMobilePicker';
32
+ export type { MobileOnlyPickerProps } from "./hooks/useMobilePicker/index.js";
32
33
  export { useNullableFieldPrivateContext } from "./hooks/useNullableFieldPrivateContext.js";
33
34
  export { useNullablePickerContext } from "./hooks/useNullablePickerContext.js";
34
35
  export { usePicker } from "./hooks/usePicker/index.js";
35
- export type { UsePickerParameters, UsePickerProps, PickerViewsRendererProps, PickerSelectionState, PickerViewRendererLookup, PickerRendererInterceptorProps, PickerViewRenderer, UsePickerNonStaticProps } from './hooks/usePicker';
36
+ export type { UsePickerParameters, UsePickerProps, PickerViewsRendererProps, PickerSelectionState, PickerViewRendererLookup, PickerRendererInterceptorProps, PickerViewRenderer, UsePickerNonStaticProps } from "./hooks/usePicker/index.js";
36
37
  export { usePickerPrivateContext } from "./hooks/usePickerPrivateContext.js";
37
38
  export { useStaticPicker } from "./hooks/useStaticPicker/index.js";
38
- export type { StaticOnlyPickerProps, UseStaticPickerSlots, UseStaticPickerSlotProps } from './hooks/useStaticPicker';
39
+ export type { StaticOnlyPickerProps, UseStaticPickerSlots, UseStaticPickerSlotProps } from "./hooks/useStaticPicker/index.js";
39
40
  export { useToolbarOwnerState } from "./hooks/useToolbarOwnerState.js";
40
- export type { PickerToolbarOwnerState } from './hooks/useToolbarOwnerState';
41
+ export type { PickerToolbarOwnerState } from "./hooks/useToolbarOwnerState.js";
41
42
  export { useLocalizationContext, useDefaultDates, useUtils, useNow } from "./hooks/useUtils.js";
42
- export type { ExportedUseViewsOptions, UseViewsOptions } from './hooks/useViews';
43
+ export type { ExportedUseViewsOptions, UseViewsOptions } from "./hooks/useViews.js";
43
44
  export { useViews } from "./hooks/useViews.js";
44
45
  export { usePreviousMonthDisabled, useNextMonthDisabled } from "./hooks/date-helpers-hooks.js";
45
- export type { PickerAnyManager, PickerManagerFieldInternalProps, PickerManagerFieldInternalPropsWithDefaults, PickerManagerEnableAccessibleFieldDOMStructure, PickerManagerError, PickerValueManager } from './models/manager';
46
- export type { RangePosition } from './models/pickers';
47
- export type { BaseSingleInputFieldProps, FieldRangeSection } from './models/fields';
48
- export type { BasePickerProps, BasePickerInputProps } from './models/props/basePickerProps';
49
- export type { BaseClockProps, ExportedBaseClockProps, DigitalTimePickerProps, AmPmProps } from './models/props/time';
50
- export type { ExportedBaseTabsProps } from './models/props/tabs';
51
- export type { BaseToolbarProps, ExportedBaseToolbarProps } from './models/props/toolbar';
52
- export type { FormProps } from './models/formProps';
53
- export type { PickerVariant, TimeViewWithMeridiem, DateOrTimeViewWithMeridiem } from './models/common';
54
- export type { BaseDateValidationProps, BaseTimeValidationProps, TimeValidationProps, MonthValidationProps, YearValidationProps, DayValidationProps, DateTimeValidationProps } from './models/validation';
55
- export type { PickerValue, PickerRangeValue, PickerNonNullableRangeValue, InferNonNullablePickerValue, PickerValidValue } from './models/value';
46
+ export type { PickerAnyManager, PickerManagerFieldInternalProps, PickerManagerFieldInternalPropsWithDefaults, PickerManagerEnableAccessibleFieldDOMStructure, PickerManagerError, PickerValueManager } from "./models/manager.js";
47
+ export type { RangePosition } from "./models/pickers.js";
48
+ export type { BaseSingleInputFieldProps, FieldRangeSection } from "./models/fields.js";
49
+ export type { BasePickerProps, BasePickerInputProps } from "./models/props/basePickerProps.js";
50
+ export type { BaseClockProps, ExportedBaseClockProps, DigitalTimePickerProps, AmPmProps } from "./models/props/time.js";
51
+ export type { ExportedBaseTabsProps } from "./models/props/tabs.js";
52
+ export type { BaseToolbarProps, ExportedBaseToolbarProps } from "./models/props/toolbar.js";
53
+ export type { FormProps } from "./models/formProps.js";
54
+ export type { PickerVariant, TimeViewWithMeridiem, DateOrTimeViewWithMeridiem } from "./models/common.js";
55
+ export type { BaseDateValidationProps, BaseTimeValidationProps, TimeValidationProps, MonthValidationProps, YearValidationProps, DayValidationProps, DateTimeValidationProps } from "./models/validation.js";
56
+ export type { PickerValue, PickerRangeValue, PickerNonNullableRangeValue, InferNonNullablePickerValue, PickerValidValue } from "./models/value.js";
57
+ export type { ComponentsOverrides } from "./models/helpers.js";
56
58
  export { createStepNavigation } from "./utils/createStepNavigation.js";
57
59
  export { applyDefaultDate, replaceInvalidDateByNull, areDatesEqual, getTodayDate, isDatePickerView, mergeDateAndTime, formatMeridiem, DATE_VIEWS } from "./utils/date-utils.js";
58
60
  export { getDefaultReferenceDate } from "./utils/getDefaultReferenceDate.js";
@@ -62,8 +64,8 @@ export { executeInTheNextEventLoopTick, getActiveElement, onSpaceOrEnter, mergeS
62
64
  export { useReduceAnimations } from "./hooks/useReduceAnimations.js";
63
65
  export { applyDefaultViewProps } from "./utils/views.js";
64
66
  export { DayCalendar } from "../DateCalendar/DayCalendar.js";
65
- export type { DayCalendarProps, DayCalendarSlots, DayCalendarSlotProps, ExportedDayCalendarProps } from '../DateCalendar/DayCalendar';
66
- export type { ExportedDateCalendarProps } from '../DateCalendar/DateCalendar.types';
67
+ export type { DayCalendarProps, DayCalendarSlots, DayCalendarSlotProps, ExportedDayCalendarProps } from "../DateCalendar/DayCalendar.js";
68
+ export type { ExportedDateCalendarProps } from "../DateCalendar/DateCalendar.types.js";
67
69
  export { useCalendarState } from "../DateCalendar/useCalendarState.js";
68
70
  export { DateTimePickerToolbarOverrideContext } from "../DateTimePicker/DateTimePickerToolbar.js";
69
71
  export { usePickerDayOwnerState } from "../PickersDay/usePickerDayOwnerState.js";
@@ -3,6 +3,7 @@ export { PickerFieldUI, PickerFieldUIContextProvider, cleanFieldResponse, useFie
3
3
  export { PickerProvider } from "./components/PickerProvider.js";
4
4
  export { PickersModalDialog } from "./components/PickersModalDialog.js";
5
5
  export { PickerPopper } from "./components/PickerPopper/PickerPopper.js";
6
+ export { pickerPopperClasses } from "./components/PickerPopper/pickerPopperClasses.js";
6
7
  export { PickersToolbar } from "./components/PickersToolbar.js";
7
8
  export { pickersToolbarClasses } from "./components/pickersToolbarClasses.js";
8
9
  export { pickersToolbarButtonClasses } from "./components/pickersToolbarButtonClasses.js";
@@ -1,4 +1,4 @@
1
- import type { FieldSection } from '../../models';
1
+ import type { FieldSection } from "../../models/index.js";
2
2
  import { RangePosition } from "./pickers.js";
3
3
  export interface FieldRangeSection extends FieldSection {
4
4
  dateName: RangePosition;
@@ -1,6 +1,17 @@
1
+ import { ComponentNameToClassKey, ComponentsPropsList } from '@mui/material/styles';
2
+ import { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
1
3
  /**
2
4
  * All standard components exposed by `material-ui` are `StyledComponents` with
3
5
  * certain `classes`, on which one can also set a top-level `className` and inline
4
6
  * `style`.
5
7
  */
6
- export type ExtendMui<C, Removals extends keyof C = never> = Omit<C, 'classes' | 'theme' | Removals>;
8
+ export type ExtendMui<C, Removals extends keyof C = never> = Omit<C, 'classes' | 'theme' | Removals>;
9
+ type OverridesStyleRules<ClassKey extends string = string, ComponentName = keyof ComponentsPropsList, Theme = unknown, OwnerState = unknown> = Record<ClassKey, Interpolation<(ComponentName extends keyof ComponentsPropsList ? ComponentsPropsList[ComponentName] & Record<string, unknown> & {
10
+ ownerState: OwnerState extends Object ? OwnerState : ComponentsPropsList[ComponentName] & Record<string, unknown>;
11
+ } : {}) & {
12
+ theme: Theme;
13
+ } & Record<string, unknown>>>;
14
+ export type ComponentsOverrides<Theme = unknown, OwnerState = unknown> = { [Name in keyof ComponentNameToClassKey]?: Partial<OverridesStyleRules<ComponentNameToClassKey[Name], Name, Theme, OwnerState>> } & {
15
+ MuiCssBaseline?: CSSObject | string | ((theme: Theme) => CSSInterpolation);
16
+ };
17
+ export {};
@@ -1,7 +1,7 @@
1
- import type { MuiPickersAdapter, PickerManager, PickersTimezone, PickerValidDate, PickerValueType } from '../../models';
2
- import type { GetDefaultReferenceDateProps } from '../utils/getDefaultReferenceDate';
1
+ import type { MuiPickersAdapter, PickerManager, PickersTimezone, PickerValidDate, PickerValueType } from "../../models/index.js";
2
+ import type { GetDefaultReferenceDateProps } from "../utils/getDefaultReferenceDate.js";
3
3
  import { InferNonNullablePickerValue, PickerValidValue } from "./value.js";
4
- import type { UseFieldInternalProps } from '../hooks/useField';
4
+ import type { UseFieldInternalProps } from "../hooks/useField/index.js";
5
5
  export type PickerAnyManager = PickerManager<any, any, any, any, any>;
6
6
  type PickerManagerProperties<TManager extends PickerAnyManager> = TManager extends PickerManager<infer TValue, infer TEnableAccessibleFieldDOMStructure, infer TError, infer TValidationProps, infer TFieldInternalProps> ? {
7
7
  value: TValue;
@@ -3,7 +3,7 @@ import { SxProps } from '@mui/system';
3
3
  import { MakeOptional } from '@mui/x-internals/types';
4
4
  import { UsePickerBaseProps } from "../../hooks/usePicker/index.js";
5
5
  import { PickersInputComponentLocaleText } from "../../../locales/utils/pickersLocaleTextApi.js";
6
- import type { UsePickerProps } from '../../hooks/usePicker';
6
+ import type { UsePickerProps } from "../../hooks/usePicker/index.js";
7
7
  import { DateOrTimeViewWithMeridiem } from "../common.js";
8
8
  import { PickerValidValue } from "../value.js";
9
9
  /**
@@ -1,8 +1,8 @@
1
1
  import { SxProps, Theme } from '@mui/material/styles';
2
2
  import { PickerValidDate, TimeStepOptions, TimezoneProps } from "../../../models/index.js";
3
- import type { ExportedDigitalClockProps } from '../../../DigitalClock/DigitalClock.types';
4
- import type { ExportedMultiSectionDigitalClockProps } from '../../../MultiSectionDigitalClock/MultiSectionDigitalClock.types';
5
- import type { ExportedUseViewsOptions } from '../../hooks/useViews';
3
+ import type { ExportedDigitalClockProps } from "../../../DigitalClock/DigitalClock.types.js";
4
+ import type { ExportedMultiSectionDigitalClockProps } from "../../../MultiSectionDigitalClock/MultiSectionDigitalClock.types.js";
5
+ import type { ExportedUseViewsOptions } from "../../hooks/useViews.js";
6
6
  import { TimeViewWithMeridiem } from "../common.js";
7
7
  import { ExportedValidateTimeProps } from "../../../validation/validateTime.js";
8
8
  import { FormProps } from "../formProps.js";
@@ -1,4 +1,4 @@
1
- import type { PickerValidDate, TimeView } from '../../models';
1
+ import type { PickerValidDate, TimeView } from "../../models/index.js";
2
2
  interface FutureAndPastValidationProps {
3
3
  /**
4
4
  * If `true`, disable values before the current date for date components, time for time components and both for date time components.
@@ -1,5 +1,5 @@
1
1
  import { DateOrTimeViewWithMeridiem } from "../models/common.js";
2
- export declare function createNonRangePickerStepNavigation(parameters: CreateNonRangePickerStepNavigationParameters): import("./createStepNavigation").CreateStepNavigationReturnValue;
2
+ export declare function createNonRangePickerStepNavigation(parameters: CreateNonRangePickerStepNavigationParameters): import("./createStepNavigation.js").CreateStepNavigationReturnValue;
3
3
  export interface PickerStep {
4
4
  /**
5
5
  * The views that are handled inside this step.
@@ -1,6 +1,6 @@
1
- import type { PickerValueManager } from '../models';
1
+ import type { PickerValueManager } from "../models/index.js";
2
2
  import { DateValidationError, TimeValidationError, DateTimeValidationError } from "../../models/index.js";
3
- import type { FieldValueManager } from '../hooks/useField';
3
+ import type { FieldValueManager } from "../hooks/useField/index.js";
4
4
  import { PickerValue } from "../models/index.js";
5
5
  export type SingleItemPickerValueManager<TError extends DateValidationError | TimeValidationError | DateTimeValidationError = any> = PickerValueManager<PickerValue, TError>;
6
6
  export declare const singleItemValueManager: SingleItemPickerValueManager;
@@ -29,7 +29,7 @@ export declare const enUS: {
29
29
  hoursClockNumberText?: ((hours: string) => string) | undefined;
30
30
  minutesClockNumberText?: ((minutes: string) => string) | undefined;
31
31
  secondsClockNumberText?: ((seconds: string) => string) | undefined;
32
- selectViewText?: ((view: import("../internals").TimeViewWithMeridiem) => string) | undefined;
32
+ selectViewText?: ((view: import("../internals/index.js").TimeViewWithMeridiem) => string) | undefined;
33
33
  openDatePickerDialogue?: ((formattedDate: string | null) => string) | undefined;
34
34
  openTimePickerDialogue?: ((formattedTime: string | null) => string) | undefined;
35
35
  openRangePickerDialogue?: ((formattedRange: string | null) => string) | undefined;
@@ -21,8 +21,8 @@ const itITPickers = {
21
21
  endDate: 'Data di fine',
22
22
  endTime: 'Ora di fine',
23
23
  // Action bar
24
- cancelButtonLabel: 'Cancellare',
25
- clearButtonLabel: 'Sgomberare',
24
+ cancelButtonLabel: 'Annulla',
25
+ clearButtonLabel: 'Pulisci',
26
26
  okButtonLabel: 'OK',
27
27
  todayButtonLabel: 'Oggi',
28
28
  nextStepButtonLabel: 'Successivo',
@@ -27,7 +27,7 @@ export declare const mk: {
27
27
  hoursClockNumberText?: ((hours: string) => string) | undefined;
28
28
  minutesClockNumberText?: ((minutes: string) => string) | undefined;
29
29
  secondsClockNumberText?: ((seconds: string) => string) | undefined;
30
- selectViewText?: ((view: import("../internals").TimeViewWithMeridiem) => string) | undefined;
30
+ selectViewText?: ((view: import("../internals/index.js").TimeViewWithMeridiem) => string) | undefined;
31
31
  openDatePickerDialogue?: ((formattedDate: string | null) => string) | undefined;
32
32
  openTimePickerDialogue?: ((formattedTime: string | null) => string) | undefined;
33
33
  openRangePickerDialogue?: ((formattedRange: string | null) => string) | undefined;
@@ -28,7 +28,7 @@ export declare const getPickersLocalization: (pickersTranslations: Partial<Picke
28
28
  hoursClockNumberText?: ((hours: string) => string) | undefined;
29
29
  minutesClockNumberText?: ((minutes: string) => string) | undefined;
30
30
  secondsClockNumberText?: ((seconds: string) => string) | undefined;
31
- selectViewText?: ((view: import("../../internals").TimeViewWithMeridiem) => string) | undefined;
31
+ selectViewText?: ((view: import("../../internals/index.js").TimeViewWithMeridiem) => string) | undefined;
32
32
  openDatePickerDialogue?: ((formattedDate: string | null) => string) | undefined;
33
33
  openTimePickerDialogue?: ((formattedTime: string | null) => string) | undefined;
34
34
  openRangePickerDialogue?: ((formattedRange: string | null) => string) | undefined;
@@ -1,6 +1,6 @@
1
1
  export { useDateManager } from "./useDateManager.js";
2
- export type { UseDateManagerReturnValue, UseDateManagerParameters, DateManagerFieldInternalProps } from './useDateManager';
2
+ export type { UseDateManagerReturnValue, UseDateManagerParameters, DateManagerFieldInternalProps } from "./useDateManager.js";
3
3
  export { useTimeManager } from "./useTimeManager.js";
4
- export type { UseTimeManagerReturnValue, UseTimeManagerParameters, TimeManagerFieldInternalProps } from './useTimeManager';
4
+ export type { UseTimeManagerReturnValue, UseTimeManagerParameters, TimeManagerFieldInternalProps } from "./useTimeManager.js";
5
5
  export { useDateTimeManager } from "./useDateTimeManager.js";
6
- export type { UseDateTimeManagerReturnValue, UseDateTimeManagerParameters, DateTimeManagerFieldInternalProps } from './useDateTimeManager';
6
+ export type { UseDateTimeManagerReturnValue, UseDateTimeManagerParameters, DateTimeManagerFieldInternalProps } from "./useDateTimeManager.js";
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { TextFieldProps } from '@mui/material/TextField';
3
- import type { ExportedPickersSectionListProps } from '../PickersSectionList';
4
- import type { UseFieldInternalProps, UseFieldReturnValue } from '../internals/hooks/useField';
5
- import type { PickersTextFieldProps } from '../PickersTextField';
3
+ import { FormControlOwnProps } from '@mui/material/FormControl';
4
+ import type { ExportedPickersSectionListProps } from "../PickersSectionList/index.js";
5
+ import type { UseFieldInternalProps, UseFieldReturnValue } from "../internals/hooks/useField/index.js";
6
+ import type { PickersTextFieldProps } from "../PickersTextField/index.js";
6
7
  import { BaseSingleInputFieldProps, FieldRangeSection, PickerRangeValue, PickerValidValue } from "../internals/models/index.js";
7
8
  import { PickerOwnerState } from "./pickers.js";
8
- import type { ExportedPickerFieldUIProps } from '../internals/components/PickerFieldUI';
9
+ import type { ExportedPickerFieldUIProps } from "../internals/components/PickerFieldUI.js";
9
10
  export type FieldSectionType = 'year' | 'month' | 'day' | 'weekDay' | 'hours' | 'minutes' | 'seconds' | 'meridiem' | 'empty';
10
11
  export type FieldSectionContentType = 'digit' | 'digit-with-letter' | 'letter';
11
12
  export interface FieldSection {
@@ -140,4 +141,42 @@ export type BaseSingleInputPickersTextFieldProps<TEnableAccessibleFieldDOMStruct
140
141
  * Props the built-in text field component can receive.
141
142
  */
142
143
  export type BuiltInFieldTextFieldProps<TEnableAccessibleFieldDOMStructure extends boolean> = TEnableAccessibleFieldDOMStructure extends false ? Omit<TextFieldProps, 'autoComplete' | 'error' | 'maxRows' | 'minRows' | 'multiline' | 'placeholder' | 'rows' | 'select' | 'SelectProps' | 'type'> : Partial<Omit<PickersTextFieldProps, keyof ExportedPickersSectionListProps>>;
144
+ export interface PickerTextFieldOwnerState extends FieldOwnerState {
145
+ /**
146
+ * `true` if the value of the field is currently empty.
147
+ */
148
+ isFieldValueEmpty: boolean;
149
+ /**
150
+ * `true` if the field is focused, `false` otherwise.
151
+ */
152
+ isFieldFocused: boolean;
153
+ /**
154
+ * `true` if the field has an error, `false` otherwise.
155
+ */
156
+ hasFieldError: boolean;
157
+ /**
158
+ * The size of the input.
159
+ */
160
+ inputSize: Exclude<FormControlOwnProps['size'], undefined>;
161
+ /**
162
+ * The color of the input.
163
+ */
164
+ inputColor: Exclude<FormControlOwnProps['color'], undefined>;
165
+ /**
166
+ * `true` if the input takes up the full width of its container.
167
+ */
168
+ isInputInFullWidth: boolean;
169
+ /**
170
+ * `true` if the input has a start adornment, `false` otherwise.
171
+ */
172
+ hasStartAdornment: boolean;
173
+ /**
174
+ * `true` if the input has an end adornment, `false` otherwise.
175
+ */
176
+ hasEndAdornment: boolean;
177
+ /**
178
+ * `true` if the input has a label, `false` otherwise.
179
+ */
180
+ inputHasLabel: boolean;
181
+ }
143
182
  export {};
@@ -1,7 +1,7 @@
1
- import type { FieldValueManager, UseFieldInternalProps } from '../internals/hooks/useField';
2
- import type { PickerValidValue, PickerValueManager } from '../internals/models';
3
- import type { Validator } from '../validation';
4
- import type { PickerValueType } from './common';
1
+ import type { FieldValueManager, UseFieldInternalProps } from "../internals/hooks/useField/index.js";
2
+ import type { PickerValidValue, PickerValueManager } from "../internals/models/index.js";
3
+ import type { Validator } from "../validation/index.js";
4
+ import type { PickerValueType } from "./common.js";
5
5
  /**
6
6
  * Object that contains all the necessary methods and properties to adapt a Picker or a Field for a given value type.
7
7
  * You should never create your own manager.
@@ -1,5 +1,5 @@
1
1
  import { PickerOrientation, PickerVariant } from "../internals/models/common.js";
2
- import type { PickersShortcutsItemContext } from '../PickersShortcuts';
2
+ import type { PickersShortcutsItemContext } from "../PickersShortcuts/index.js";
3
3
  export interface PickerChangeHandlerContext<TError> {
4
4
  validationError: TError;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { PickerValidValue } from '../internals/models';
1
+ import type { PickerValidValue } from "../internals/models/index.js";
2
2
  /**
3
3
  * Validation error types applicable to both date and time validation
4
4
  */