@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
@@ -29,15 +29,13 @@ const useUtilityClasses = classes => {
29
29
  };
30
30
  const DayCalendarSkeletonRoot = (0, _styles.styled)('div', {
31
31
  name: 'MuiDayCalendarSkeleton',
32
- slot: 'Root',
33
- overridesResolver: (props, styles) => styles.root
32
+ slot: 'Root'
34
33
  })({
35
34
  alignSelf: 'start'
36
35
  });
37
36
  const DayCalendarSkeletonWeek = (0, _styles.styled)('div', {
38
37
  name: 'MuiDayCalendarSkeleton',
39
- slot: 'Week',
40
- overridesResolver: (props, styles) => styles.week
38
+ slot: 'Week'
41
39
  })({
42
40
  margin: `${_dimensions.DAY_MARGIN}px 0`,
43
41
  display: 'flex',
@@ -45,8 +43,7 @@ const DayCalendarSkeletonWeek = (0, _styles.styled)('div', {
45
43
  });
46
44
  const DayCalendarSkeletonDay = (0, _styles.styled)(_Skeleton.default, {
47
45
  name: 'MuiDayCalendarSkeleton',
48
- slot: 'DaySkeleton',
49
- overridesResolver: (props, styles) => styles.daySkeleton
46
+ slot: 'DaySkeleton'
50
47
  })({
51
48
  margin: `0 ${_dimensions.DAY_MARGIN}px`,
52
49
  '&[data-day-in-month="0"]': {
@@ -76,7 +73,8 @@ function DayCalendarSkeleton(inProps) {
76
73
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
77
74
  const classes = useUtilityClasses(classesProp);
78
75
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(DayCalendarSkeletonRoot, (0, _extends2.default)({
79
- className: (0, _clsx.default)(classes.root, className)
76
+ className: (0, _clsx.default)(classes.root, className),
77
+ ownerState: props
80
78
  }, other, {
81
79
  children: monthMap.map((week, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(DayCalendarSkeletonWeek, {
82
80
  className: classes.week,
@@ -1,4 +1,4 @@
1
1
  export { DayCalendarSkeleton } from "./DayCalendarSkeleton.js";
2
- export type { DayCalendarSkeletonProps } from './DayCalendarSkeleton';
2
+ export type { DayCalendarSkeletonProps } from "./DayCalendarSkeleton.js";
3
3
  export { dayCalendarSkeletonClasses, getDayCalendarSkeletonUtilityClass } from "./dayCalendarSkeletonClasses.js";
4
- export type { DayCalendarSkeletonClassKey, DayCalendarSkeletonClasses } from './dayCalendarSkeletonClasses';
4
+ export type { DayCalendarSkeletonClassKey, DayCalendarSkeletonClasses } from "./dayCalendarSkeletonClasses.js";
@@ -1,2 +1,2 @@
1
1
  export { DesktopDatePicker } from "./DesktopDatePicker.js";
2
- export type { DesktopDatePickerProps, DesktopDatePickerSlots, DesktopDatePickerSlotProps } from './DesktopDatePicker.types';
2
+ export type { DesktopDatePickerProps, DesktopDatePickerSlots, DesktopDatePickerSlotProps } from "./DesktopDatePicker.types.js";
@@ -1,3 +1,3 @@
1
1
  export { DesktopDateTimePicker } from "./DesktopDateTimePicker.js";
2
2
  export { DesktopDateTimePickerLayout } from "./DesktopDateTimePickerLayout.js";
3
- export type { DesktopDateTimePickerProps, DesktopDateTimePickerSlots, DesktopDateTimePickerSlotProps } from './DesktopDateTimePicker.types';
3
+ export type { DesktopDateTimePickerProps, DesktopDateTimePickerSlots, DesktopDateTimePickerSlotProps } from "./DesktopDateTimePicker.types.js";
@@ -1,2 +1,2 @@
1
1
  export { DesktopTimePicker } from "./DesktopTimePicker.js";
2
- export type { DesktopTimePickerProps, DesktopTimePickerSlots, DesktopTimePickerSlotProps } from './DesktopTimePicker.types';
2
+ export type { DesktopTimePickerProps, DesktopTimePickerSlots, DesktopTimePickerSlotProps } from "./DesktopTimePicker.types.js";
@@ -43,8 +43,7 @@ const useUtilityClasses = classes => {
43
43
  };
44
44
  const DigitalClockRoot = (0, _styles.styled)(_PickerViewRoot.PickerViewRoot, {
45
45
  name: 'MuiDigitalClock',
46
- slot: 'Root',
47
- overridesResolver: (props, styles) => styles.root
46
+ slot: 'Root'
48
47
  })({
49
48
  overflowY: 'auto',
50
49
  width: '100%',
@@ -66,16 +65,14 @@ const DigitalClockRoot = (0, _styles.styled)(_PickerViewRoot.PickerViewRoot, {
66
65
  });
67
66
  const DigitalClockList = (0, _styles.styled)(_MenuList.default, {
68
67
  name: 'MuiDigitalClock',
69
- slot: 'List',
70
- overridesResolver: (props, styles) => styles.list
68
+ slot: 'List'
71
69
  })({
72
70
  padding: 0
73
71
  });
74
72
  const DigitalClockItem = exports.DigitalClockItem = (0, _styles.styled)(_MenuItem.default, {
75
73
  name: 'MuiDigitalClock',
76
74
  slot: 'Item',
77
- shouldForwardProp: prop => prop !== 'itemValue' && prop !== 'formattedValue',
78
- overridesResolver: (props, styles) => styles.item
75
+ shouldForwardProp: prop => prop !== 'itemValue' && prop !== 'formattedValue'
79
76
  })(({
80
77
  theme
81
78
  }) => ({
@@ -1,4 +1,4 @@
1
1
  export { DigitalClock, DigitalClockItem } from "./DigitalClock.js";
2
- export type { DigitalClockProps, DigitalClockSlots, DigitalClockSlotProps, ExportedDigitalClockProps, DigitalClockItemProps } from './DigitalClock.types';
2
+ export type { DigitalClockProps, DigitalClockSlots, DigitalClockSlotProps, ExportedDigitalClockProps, DigitalClockItemProps } from "./DigitalClock.types.js";
3
3
  export { digitalClockClasses, getDigitalClockUtilityClass } from "./digitalClockClasses.js";
4
- export type { DigitalClockClasses, DigitalClockClassKey } from './digitalClockClasses';
4
+ export type { DigitalClockClasses, DigitalClockClassKey } from "./digitalClockClasses.js";
@@ -1,2 +1,2 @@
1
1
  export { LocalizationProvider, MuiPickersAdapterContext } from "./LocalizationProvider.js";
2
- export type { LocalizationProviderProps } from './LocalizationProvider';
2
+ export type { LocalizationProviderProps } from "./LocalizationProvider.js";
@@ -1,2 +1,2 @@
1
1
  export { MobileDatePicker } from "./MobileDatePicker.js";
2
- export type { MobileDatePickerProps, MobileDatePickerSlots, MobileDatePickerSlotProps } from './MobileDatePicker.types';
2
+ export type { MobileDatePickerProps, MobileDatePickerSlots, MobileDatePickerSlotProps } from "./MobileDatePicker.types.js";
@@ -1,2 +1,2 @@
1
1
  export { MobileDateTimePicker } from "./MobileDateTimePicker.js";
2
- export type { MobileDateTimePickerProps, MobileDateTimePickerSlots, MobileDateTimePickerSlotProps } from './MobileDateTimePicker.types';
2
+ export type { MobileDateTimePickerProps, MobileDateTimePickerSlots, MobileDateTimePickerSlotProps } from "./MobileDateTimePicker.types.js";
@@ -1,2 +1,2 @@
1
1
  export { MobileTimePicker } from "./MobileTimePicker.js";
2
- export type { MobileTimePickerProps, MobileTimePickerSlots, MobileTimePickerSlotProps } from './MobileTimePicker.types';
2
+ export type { MobileTimePickerProps, MobileTimePickerSlots, MobileTimePickerSlotProps } from "./MobileTimePicker.types.js";
@@ -48,7 +48,6 @@ function useMonthCalendarDefaultizedProps(props, name) {
48
48
  const MonthCalendarRoot = (0, _styles.styled)('div', {
49
49
  name: 'MuiMonthCalendar',
50
50
  slot: 'Root',
51
- overridesResolver: (props, styles) => styles.root,
52
51
  shouldForwardProp: prop => (0, _createStyled.shouldForwardProp)(prop) && prop !== 'monthsPerRow'
53
52
  })({
54
53
  display: 'flex',
@@ -1,4 +1,4 @@
1
1
  export { MonthCalendar } from "./MonthCalendar.js";
2
- export type { MonthCalendarProps, MonthCalendarSlots, MonthCalendarSlotProps } from './MonthCalendar.types';
2
+ export type { MonthCalendarProps, MonthCalendarSlots, MonthCalendarSlotProps } from "./MonthCalendar.types.js";
3
3
  export { monthCalendarClasses, getMonthCalendarUtilityClass } from "./monthCalendarClasses.js";
4
- export type { MonthCalendarClasses, MonthCalendarClassKey } from './monthCalendarClasses';
4
+ export type { MonthCalendarClasses, MonthCalendarClassKey } from "./monthCalendarClasses.js";
@@ -40,8 +40,7 @@ const useUtilityClasses = classes => {
40
40
  };
41
41
  const MultiSectionDigitalClockRoot = (0, _styles.styled)(_PickerViewRoot.PickerViewRoot, {
42
42
  name: 'MuiMultiSectionDigitalClock',
43
- slot: 'Root',
44
- overridesResolver: (_, styles) => styles.root
43
+ slot: 'Root'
45
44
  })(({
46
45
  theme
47
46
  }) => ({
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { MultiSectionDigitalClockSectionClasses } from "./multiSectionDigitalClockSectionClasses.js";
3
- import type { MultiSectionDigitalClockOption, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from './MultiSectionDigitalClock.types';
3
+ import type { MultiSectionDigitalClockOption, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from "./MultiSectionDigitalClock.types.js";
4
4
  import { FormProps } from "../internals/models/formProps.js";
5
+ import { PickerOwnerState } from "../models/pickers.js";
5
6
  export interface ExportedMultiSectionDigitalClockSectionProps {
6
7
  className?: string;
7
8
  classes?: Partial<MultiSectionDigitalClockSectionClasses>;
@@ -16,6 +17,12 @@ export interface MultiSectionDigitalClockSectionProps<TSectionValue extends numb
16
17
  skipDisabled?: boolean;
17
18
  role?: string;
18
19
  }
20
+ export interface MultiSectionDigitalClockSectionOwnerState extends PickerOwnerState {
21
+ /**
22
+ * `true` if this is not the initial render of the digital clock.
23
+ */
24
+ hasDigitalClockAlreadyBeenRendered: boolean;
25
+ }
19
26
  type MultiSectionDigitalClockSectionComponent = <TSectionValue extends number | string>(props: MultiSectionDigitalClockSectionProps<TSectionValue> & React.RefAttributes<HTMLUListElement>) => React.JSX.Element & {
20
27
  propTypes?: any;
21
28
  };
@@ -31,8 +31,7 @@ const useUtilityClasses = classes => {
31
31
  };
32
32
  const MultiSectionDigitalClockSectionRoot = (0, _styles.styled)(_MenuList.default, {
33
33
  name: 'MuiMultiSectionDigitalClockSection',
34
- slot: 'Root',
35
- overridesResolver: (_, styles) => styles.root
34
+ slot: 'Root'
36
35
  })(({
37
36
  theme
38
37
  }) => ({
@@ -74,8 +73,7 @@ const MultiSectionDigitalClockSectionRoot = (0, _styles.styled)(_MenuList.defaul
74
73
  }));
75
74
  const MultiSectionDigitalClockSectionItem = (0, _styles.styled)(_MenuItem.default, {
76
75
  name: 'MuiMultiSectionDigitalClockSection',
77
- slot: 'Item',
78
- overridesResolver: (_, styles) => styles.item
76
+ slot: 'Item'
79
77
  })(({
80
78
  theme
81
79
  }) => ({
@@ -1,7 +1,7 @@
1
1
  export { MultiSectionDigitalClock } from "./MultiSectionDigitalClock.js";
2
- export type { MultiSectionDigitalClockProps, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from './MultiSectionDigitalClock.types';
2
+ export type { MultiSectionDigitalClockProps, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from "./MultiSectionDigitalClock.types.js";
3
3
  export { multiSectionDigitalClockSectionClasses } from "./multiSectionDigitalClockSectionClasses.js";
4
- export type { MultiSectionDigitalClockSectionClasses, MultiSectionDigitalClockSectionClassKey } from './multiSectionDigitalClockSectionClasses';
5
- export type { ExportedMultiSectionDigitalClockSectionProps } from './MultiSectionDigitalClockSection';
4
+ export type { MultiSectionDigitalClockSectionClasses, MultiSectionDigitalClockSectionClassKey } from "./multiSectionDigitalClockSectionClasses.js";
5
+ export type { ExportedMultiSectionDigitalClockSectionProps } from "./MultiSectionDigitalClockSection.js";
6
6
  export { multiSectionDigitalClockClasses, getMultiSectionDigitalClockUtilityClass } from "./multiSectionDigitalClockClasses.js";
7
- export type { MultiSectionDigitalClockClasses, MultiSectionDigitalClockClassKey } from './multiSectionDigitalClockClasses';
7
+ export type { MultiSectionDigitalClockClasses, MultiSectionDigitalClockClassKey } from "./multiSectionDigitalClockClasses.js";
@@ -20,8 +20,7 @@ var _jsxRuntime = require("react/jsx-runtime");
20
20
  const _excluded = ["actions"];
21
21
  const PickersActionBarRoot = (0, _styles.styled)(_DialogActions.default, {
22
22
  name: 'MuiPickersLayout',
23
- slot: 'ActionBar',
24
- overridesResolver: (_, styles) => styles.actionBar
23
+ slot: 'ActionBar'
25
24
  })({});
26
25
 
27
26
  /**
@@ -1,2 +1,2 @@
1
1
  export { PickersActionBar } from "./PickersActionBar.js";
2
- export type { PickersActionBarProps, PickersActionBarAction } from './PickersActionBar';
2
+ export type { PickersActionBarProps, PickersActionBarAction } from "./PickersActionBar.js";
@@ -40,8 +40,7 @@ const useUtilityClasses = classes => {
40
40
  };
41
41
  const PickersCalendarHeaderRoot = (0, _styles.styled)('div', {
42
42
  name: 'MuiPickersCalendarHeader',
43
- slot: 'Root',
44
- overridesResolver: (_, styles) => styles.root
43
+ slot: 'Root'
45
44
  })({
46
45
  display: 'flex',
47
46
  alignItems: 'center',
@@ -55,8 +54,7 @@ const PickersCalendarHeaderRoot = (0, _styles.styled)('div', {
55
54
  });
56
55
  const PickersCalendarHeaderLabelContainer = (0, _styles.styled)('div', {
57
56
  name: 'MuiPickersCalendarHeader',
58
- slot: 'LabelContainer',
59
- overridesResolver: (_, styles) => styles.labelContainer
57
+ slot: 'LabelContainer'
60
58
  })(({
61
59
  theme
62
60
  }) => (0, _extends2.default)({
@@ -70,15 +68,13 @@ const PickersCalendarHeaderLabelContainer = (0, _styles.styled)('div', {
70
68
  }));
71
69
  const PickersCalendarHeaderLabel = (0, _styles.styled)('div', {
72
70
  name: 'MuiPickersCalendarHeader',
73
- slot: 'Label',
74
- overridesResolver: (_, styles) => styles.label
71
+ slot: 'Label'
75
72
  })({
76
73
  marginRight: 6
77
74
  });
78
75
  const PickersCalendarHeaderSwitchViewButton = (0, _styles.styled)(_IconButton.default, {
79
76
  name: 'MuiPickersCalendarHeader',
80
- slot: 'SwitchViewButton',
81
- overridesResolver: (_, styles) => styles.switchViewButton
77
+ slot: 'SwitchViewButton'
82
78
  })({
83
79
  marginRight: 'auto',
84
80
  variants: [{
@@ -94,8 +90,7 @@ const PickersCalendarHeaderSwitchViewButton = (0, _styles.styled)(_IconButton.de
94
90
  });
95
91
  const PickersCalendarHeaderSwitchViewIcon = (0, _styles.styled)(_icons.ArrowDropDownIcon, {
96
92
  name: 'MuiPickersCalendarHeader',
97
- slot: 'SwitchViewIcon',
98
- overridesResolver: (_, styles) => styles.switchViewIcon
93
+ slot: 'SwitchViewIcon'
99
94
  })(({
100
95
  theme
101
96
  }) => ({
@@ -1,4 +1,4 @@
1
1
  export { pickersCalendarHeaderClasses } from "./pickersCalendarHeaderClasses.js";
2
- export type { PickersCalendarHeaderClassKey, PickersCalendarHeaderClasses } from './pickersCalendarHeaderClasses';
2
+ export type { PickersCalendarHeaderClassKey, PickersCalendarHeaderClasses } from "./pickersCalendarHeaderClasses.js";
3
3
  export { PickersCalendarHeader } from "./PickersCalendarHeader.js";
4
- export type { PickersCalendarHeaderProps, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps, ExportedPickersCalendarHeaderProps } from './PickersCalendarHeader.types';
4
+ export type { PickersCalendarHeaderProps, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps, ExportedPickersCalendarHeaderProps } from "./PickersCalendarHeader.types.js";
@@ -1,4 +1,4 @@
1
1
  export { PickersDay } from "./PickersDay.js";
2
- export type { PickersDayProps, PickerDayOwnerState } from './PickersDay.types';
2
+ export type { PickersDayProps, PickerDayOwnerState } from "./PickersDay.types.js";
3
3
  export { pickersDayClasses, getPickersDayUtilityClass } from "./pickersDayClasses.js";
4
- export type { PickersDayClasses, PickersDayClassKey } from './pickersDayClasses';
4
+ export type { PickersDayClasses, PickersDayClassKey } from "./pickersDayClasses.js";
@@ -28,8 +28,7 @@ const useUtilityClasses = (classes, ownerState) => {
28
28
  };
29
29
  const PickersLayoutRoot = exports.PickersLayoutRoot = (0, _styles.styled)('div', {
30
30
  name: 'MuiPickersLayout',
31
- slot: 'Root',
32
- overridesResolver: (props, styles) => styles.root
31
+ slot: 'Root'
33
32
  })({
34
33
  display: 'grid',
35
34
  gridAutoColumns: 'max-content auto max-content',
@@ -90,8 +89,7 @@ const PickersLayoutRoot = exports.PickersLayoutRoot = (0, _styles.styled)('div',
90
89
  });
91
90
  const PickersLayoutContentWrapper = exports.PickersLayoutContentWrapper = (0, _styles.styled)('div', {
92
91
  name: 'MuiPickersLayout',
93
- slot: 'ContentWrapper',
94
- overridesResolver: (props, styles) => styles.contentWrapper
92
+ slot: 'ContentWrapper'
95
93
  })({
96
94
  gridColumn: '2 / 4',
97
95
  gridRow: 2,
@@ -1,5 +1,5 @@
1
1
  export { PickersLayout, PickersLayoutRoot, PickersLayoutContentWrapper } from "./PickersLayout.js";
2
- export type { PickersLayoutProps, PickersLayoutSlots, PickersLayoutSlotProps, ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickerLayoutOwnerState } from './PickersLayout.types';
2
+ export type { PickersLayoutProps, PickersLayoutSlots, PickersLayoutSlotProps, ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickerLayoutOwnerState } from "./PickersLayout.types.js";
3
3
  export { default as usePickerLayout } from "./usePickerLayout.js";
4
4
  export { pickersLayoutClasses } from "./pickersLayoutClasses.js";
5
- export type { PickersLayoutClassKey } from './pickersLayoutClasses';
5
+ export type { PickersLayoutClassKey } from "./pickersLayoutClasses.js";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { PickersSectionListProps } from './PickersSectionList.types';
2
+ import type { PickersSectionListProps } from "./PickersSectionList.types.js";
3
3
  export declare const PickersSectionListRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
4
4
  export declare const PickersSectionListSection: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof React.ClassAttributes<HTMLSpanElement> | keyof React.HTMLAttributes<HTMLSpanElement>>, {}>;
5
5
  export declare const PickersSectionListSectionSeparator: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof React.ClassAttributes<HTMLSpanElement> | keyof React.HTMLAttributes<HTMLSpanElement>>, {}>;
@@ -21,28 +21,24 @@ var _jsxRuntime = require("react/jsx-runtime");
21
21
  const _excluded = ["slots", "slotProps", "elements", "sectionListRef", "classes"];
22
22
  const PickersSectionListRoot = exports.PickersSectionListRoot = (0, _styles.styled)('div', {
23
23
  name: 'MuiPickersSectionList',
24
- slot: 'Root',
25
- overridesResolver: (props, styles) => styles.root
24
+ slot: 'Root'
26
25
  })({
27
26
  direction: 'ltr /*! @noflip */',
28
27
  outline: 'none'
29
28
  });
30
29
  const PickersSectionListSection = exports.PickersSectionListSection = (0, _styles.styled)('span', {
31
30
  name: 'MuiPickersSectionList',
32
- slot: 'Section',
33
- overridesResolver: (props, styles) => styles.section
31
+ slot: 'Section'
34
32
  })({});
35
33
  const PickersSectionListSectionSeparator = exports.PickersSectionListSectionSeparator = (0, _styles.styled)('span', {
36
34
  name: 'MuiPickersSectionList',
37
- slot: 'SectionSeparator',
38
- overridesResolver: (props, styles) => styles.sectionSeparator
35
+ slot: 'SectionSeparator'
39
36
  })({
40
37
  whiteSpace: 'pre'
41
38
  });
42
39
  const PickersSectionListSectionContent = exports.PickersSectionListSectionContent = (0, _styles.styled)('span', {
43
40
  name: 'MuiPickersSectionList',
44
- slot: 'SectionContent',
45
- overridesResolver: (props, styles) => styles.sectionContent
41
+ slot: 'SectionContent'
46
42
  })({
47
43
  outline: 'none'
48
44
  });
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { SlotComponentProps } from '@mui/utils';
3
3
  import { PickersSectionListClasses } from "./pickersSectionListClasses.js";
4
4
  import { PickerOwnerState } from "../models/index.js";
5
- import type { UseFieldDOMGetters } from '../internals/hooks/useField/useField.types';
5
+ import type { UseFieldDOMGetters } from "../internals/hooks/useField/useField.types.js";
6
6
  export interface PickersSectionListSlots {
7
7
  root: React.ElementType;
8
8
  section: React.ElementType;
@@ -1,4 +1,4 @@
1
1
  export { PickersSectionList as Unstable_PickersSectionList, PickersSectionListRoot as Unstable_PickersSectionListRoot, PickersSectionListSection as Unstable_PickersSectionListSection, PickersSectionListSectionSeparator as Unstable_PickersSectionListSectionSeparator, PickersSectionListSectionContent as Unstable_PickersSectionListSectionContent } from "./PickersSectionList.js";
2
- export type { PickersSectionListProps, PickersSectionElement, PickersSectionListRef, PickersSectionListSlots, PickersSectionListSlotProps, ExportedPickersSectionListProps } from './PickersSectionList.types';
2
+ export type { PickersSectionListProps, PickersSectionElement, PickersSectionListRef, PickersSectionListSlots, PickersSectionListSlotProps, ExportedPickersSectionListProps } from "./PickersSectionList.types.js";
3
3
  export { getPickersSectionListUtilityClass, pickersSectionListClasses } from "./pickersSectionListClasses.js";
4
- export type { PickersSectionListClasses, PickersSectionListClassKey } from './pickersSectionListClasses';
4
+ export type { PickersSectionListClasses, PickersSectionListClassKey } from "./pickersSectionListClasses.js";
@@ -22,8 +22,7 @@ const _excluded = ["items", "changeImportance"],
22
22
  _excluded2 = ["getValue"];
23
23
  const PickersShortcutsRoot = (0, _styles.styled)(_List.default, {
24
24
  name: 'MuiPickersLayout',
25
- slot: 'Shortcuts',
26
- overridesResolver: (_, styles) => styles.shortcuts
25
+ slot: 'Shortcuts'
27
26
  })({});
28
27
 
29
28
  /**
@@ -1,2 +1,2 @@
1
1
  export { PickersShortcuts } from "./PickersShortcuts.js";
2
- export type { PickersShortcutsProps, PickersShortcutsItem, PickersShortcutsItemContext } from './PickersShortcuts';
2
+ export type { PickersShortcutsProps, PickersShortcutsItem, PickersShortcutsItemContext } from "./PickersShortcuts.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { PickersInputBaseProps } from "../PickersInputBase/index.js";
3
- import { PickerTextFieldOwnerState } from "../PickersTextField.types.js";
3
+ import { PickerTextFieldOwnerState } from "../../models/fields.js";
4
4
  export interface PickersFilledInputProps extends PickersInputBaseProps {
5
5
  disableUnderline?: boolean;
6
6
  hiddenLabel?: boolean;
@@ -23,7 +23,6 @@ const _excluded = ["label", "autoFocus", "disableUnderline", "hiddenLabel", "cla
23
23
  const PickersFilledInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseRoot, {
24
24
  name: 'MuiPickersFilledInput',
25
25
  slot: 'Root',
26
- overridesResolver: (props, styles) => styles.root,
27
26
  shouldForwardProp: prop => (0, _system.shouldForwardProp)(prop) && prop !== 'disableUnderline'
28
27
  })(({
29
28
  theme
@@ -136,7 +135,6 @@ const PickersFilledInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInp
136
135
  const PickersFilledSectionsContainer = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseSectionsContainer, {
137
136
  name: 'MuiPickersFilledInput',
138
137
  slot: 'sectionsContainer',
139
- overridesResolver: (props, styles) => styles.sectionsContainer,
140
138
  shouldForwardProp: prop => (0, _system.shouldForwardProp)(prop) && prop !== 'hiddenLabel'
141
139
  })({
142
140
  paddingTop: 25,
@@ -280,7 +278,7 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
280
278
  onInput: _propTypes.default.func.isRequired,
281
279
  onKeyDown: _propTypes.default.func.isRequired,
282
280
  onPaste: _propTypes.default.func.isRequired,
283
- ownerState: _propTypes.default.any,
281
+ ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
284
282
  readOnly: _propTypes.default.bool,
285
283
  renderSuffix: _propTypes.default.func,
286
284
  sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
@@ -1,4 +1,4 @@
1
1
  export { PickersFilledInput } from "./PickersFilledInput.js";
2
- export type { PickersFilledInputProps } from './PickersFilledInput';
3
- export type { PickersFilledInputClasses, PickersFilledInputClassKey } from './pickersFilledInputClasses';
2
+ export type { PickersFilledInputProps } from "./PickersFilledInput.js";
3
+ export type { PickersFilledInputClasses, PickersFilledInputClassKey } from "./pickersFilledInputClasses.js";
4
4
  export { getPickersFilledInputUtilityClass, pickersFilledInputClasses } from "./pickersFilledInputClasses.js";
@@ -1,8 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { PickersInputBaseProps } from "../PickersInputBase/index.js";
3
+ import { PickerTextFieldOwnerState } from "../../models/fields.js";
3
4
  export interface PickersInputProps extends PickersInputBaseProps {
4
5
  disableUnderline?: boolean;
5
6
  }
7
+ export interface PickerInputOwnerState extends PickerTextFieldOwnerState {
8
+ /**
9
+ * `true` if the input has an underline, `false` otherwise.
10
+ */
11
+ inputHasUnderline: boolean;
12
+ }
6
13
  /**
7
14
  * @ignore - internal component.
8
15
  */
@@ -23,7 +23,6 @@ const _excluded = ["label", "autoFocus", "disableUnderline", "ownerState", "clas
23
23
  const PickersInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseRoot, {
24
24
  name: 'MuiPickersInput',
25
25
  slot: 'Root',
26
- overridesResolver: (props, styles) => styles.root,
27
26
  shouldForwardProp: prop => (0, _createStyled.shouldForwardProp)(prop) && prop !== 'disableUnderline'
28
27
  })(({
29
28
  theme
@@ -195,7 +194,7 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
195
194
  onInput: _propTypes.default.func.isRequired,
196
195
  onKeyDown: _propTypes.default.func.isRequired,
197
196
  onPaste: _propTypes.default.func.isRequired,
198
- ownerState: _propTypes.default.any,
197
+ ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
199
198
  readOnly: _propTypes.default.bool,
200
199
  renderSuffix: _propTypes.default.func,
201
200
  sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
@@ -1,4 +1,4 @@
1
1
  export { PickersInput } from "./PickersInput.js";
2
- export type { PickersInputProps } from './PickersInput';
3
- export type { PickersInputClasses, PickersInputClassKey } from './pickersInputClasses';
2
+ export type { PickersInputProps } from "./PickersInput.js";
3
+ export type { PickersInputClasses, PickersInputClassKey } from "./pickersInputClasses.js";
4
4
  export { getPickersInputUtilityClass, pickersInputClasses } from "./pickersInputClasses.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { PickersInputBaseProps } from "./PickersInputBase.types.js";
3
- import { PickerTextFieldOwnerState } from "../PickersTextField.types.js";
3
+ import { PickerTextFieldOwnerState } from "../../models/fields.js";
4
4
  export declare const PickersInputBaseRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
5
  ownerState: PickerTextFieldOwnerState;
6
6
  }, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
@@ -26,8 +26,7 @@ const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "
26
26
  const round = value => Math.round(value * 1e5) / 1e5;
27
27
  const PickersInputBaseRoot = exports.PickersInputBaseRoot = (0, _styles.styled)('div', {
28
28
  name: 'MuiPickersInputBase',
29
- slot: 'Root',
30
- overridesResolver: (props, styles) => styles.root
29
+ slot: 'Root'
31
30
  })(({
32
31
  theme
33
32
  }) => (0, _extends2.default)({}, theme.typography.body1, {
@@ -52,8 +51,7 @@ const PickersInputBaseRoot = exports.PickersInputBaseRoot = (0, _styles.styled)(
52
51
  }));
53
52
  const PickersInputBaseSectionsContainer = exports.PickersInputBaseSectionsContainer = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListRoot, {
54
53
  name: 'MuiPickersInputBase',
55
- slot: 'SectionsContainer',
56
- overridesResolver: (props, styles) => styles.sectionsContainer
54
+ slot: 'SectionsContainer'
57
55
  })(({
58
56
  theme
59
57
  }) => ({
@@ -110,8 +108,7 @@ const PickersInputBaseSectionsContainer = exports.PickersInputBaseSectionsContai
110
108
  }));
111
109
  const PickersInputBaseSection = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSection, {
112
110
  name: 'MuiPickersInputBase',
113
- slot: 'Section',
114
- overridesResolver: (props, styles) => styles.section
111
+ slot: 'Section'
115
112
  })(({
116
113
  theme
117
114
  }) => ({
@@ -126,7 +123,7 @@ const PickersInputBaseSection = (0, _styles.styled)(_PickersSectionList.Unstable
126
123
  const PickersInputBaseSectionContent = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionContent, {
127
124
  name: 'MuiPickersInputBase',
128
125
  slot: 'SectionContent',
129
- overridesResolver: (props, styles) => styles.content
126
+ overridesResolver: (props, styles) => styles.content // FIXME: Inconsistent naming with slot
130
127
  })(({
131
128
  theme
132
129
  }) => ({
@@ -139,8 +136,7 @@ const PickersInputBaseSectionContent = (0, _styles.styled)(_PickersSectionList.U
139
136
  }));
140
137
  const PickersInputBaseSectionSeparator = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionSeparator, {
141
138
  name: 'MuiPickersInputBase',
142
- slot: 'Separator',
143
- overridesResolver: (props, styles) => styles.separator
139
+ slot: 'Separator'
144
140
  })(() => ({
145
141
  whiteSpace: 'pre',
146
142
  letterSpacing: 'inherit'
@@ -148,12 +144,11 @@ const PickersInputBaseSectionSeparator = (0, _styles.styled)(_PickersSectionList
148
144
  const PickersInputBaseInput = (0, _styles.styled)('input', {
149
145
  name: 'MuiPickersInputBase',
150
146
  slot: 'Input',
151
- overridesResolver: (props, styles) => styles.hiddenInput
147
+ overridesResolver: (props, styles) => styles.hiddenInput // FIXME: Inconsistent naming with slot
152
148
  })((0, _extends2.default)({}, _visuallyHidden.default));
153
149
  const PickersInputBaseActiveBar = (0, _styles.styled)('div', {
154
150
  name: 'MuiPickersInputBase',
155
- slot: 'ActiveBar',
156
- overridesResolver: (props, styles) => styles.activeBar
151
+ slot: 'ActiveBar'
157
152
  })(({
158
153
  theme,
159
154
  ownerState
@@ -448,7 +443,7 @@ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
448
443
  onInput: _propTypes.default.func.isRequired,
449
444
  onKeyDown: _propTypes.default.func.isRequired,
450
445
  onPaste: _propTypes.default.func.isRequired,
451
- ownerState: _propTypes.default.any,
446
+ ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
452
447
  readOnly: _propTypes.default.bool,
453
448
  renderSuffix: _propTypes.default.func,
454
449
  sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { BoxProps } from '@mui/material/Box';
3
3
  import { MuiEvent } from '@mui/x-internals/types';
4
4
  import { PickersSectionListProps } from "../../PickersSectionList/index.js";
5
+ import { PickerTextFieldOwnerState } from "../../models/fields.js";
5
6
  export interface PickersInputPropsUsedByField extends Pick<PickersSectionListProps, 'elements' | 'sectionListRef' | 'contentEditable' | 'tabIndex'> {
6
7
  /**
7
8
  * Is `true` if the current values equals the empty value.
@@ -28,7 +29,7 @@ export interface PickersInputPropsUsedByField extends Pick<PickersSectionListPro
28
29
  inputRef?: React.Ref<HTMLInputElement>;
29
30
  }
30
31
  export interface PickersInputBaseProps extends Omit<BoxProps, keyof PickersInputPropsUsedByField>, PickersInputPropsUsedByField {
31
- ownerState?: any;
32
+ ownerState?: PickerTextFieldOwnerState;
32
33
  margin?: 'dense' | 'none' | 'normal';
33
34
  renderSuffix?: (state: {
34
35
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
1
  export { PickersInputBase } from "./PickersInputBase.js";
2
- export type { PickersInputBaseProps } from './PickersInputBase.types';
2
+ export type { PickersInputBaseProps } from "./PickersInputBase.types.js";
3
3
  export { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from "./pickersInputBaseClasses.js";
4
- export type { PickersInputBaseClasses, PickersInputBaseClassKey } from './pickersInputBaseClasses';
4
+ export type { PickersInputBaseClasses, PickersInputBaseClassKey } from "./pickersInputBaseClasses.js";
@@ -16,8 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
16
16
  const _excluded = ["children", "className", "label", "notched", "shrink"];
17
17
  const OutlineRoot = (0, _styles.styled)('fieldset', {
18
18
  name: 'MuiPickersOutlinedInput',
19
- slot: 'NotchedOutline',
20
- overridesResolver: (props, styles) => styles.notchedOutline
19
+ slot: 'NotchedOutline'
21
20
  })(({
22
21
  theme
23
22
  }) => {