@mui/x-date-pickers 7.4.0 → 7.5.1

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 (159) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +5 -0
  2. package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +1 -5
  3. package/AdapterDateFnsBase/AdapterDateFnsBase.js +4 -2
  4. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +3 -20
  5. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +14 -227
  6. package/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.d.ts +3 -20
  7. package/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +17 -230
  8. package/AdapterDateFnsV3/AdapterDateFnsV3.d.ts +5 -0
  9. package/AdapterDateFnsV3/AdapterDateFnsV3.js +0 -1
  10. package/AdapterMomentJalaali/AdapterMomentJalaali.js +2 -6
  11. package/CHANGELOG.md +132 -5395
  12. package/DateCalendar/DateCalendar.js +6 -5
  13. package/DateField/DateField.js +1 -1
  14. package/DatePicker/DatePicker.js +1 -1
  15. package/DatePicker/DatePickerToolbar.js +1 -1
  16. package/DateTimeField/DateTimeField.js +1 -1
  17. package/DateTimePicker/DateTimePicker.js +1 -1
  18. package/DateTimePicker/DateTimePickerTabs.js +1 -1
  19. package/DateTimePicker/DateTimePickerToolbar.js +1 -27
  20. package/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  21. package/DesktopDatePicker/DesktopDatePicker.js +1 -1
  22. package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  23. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  24. package/DesktopTimePicker/DesktopTimePicker.js +1 -1
  25. package/DigitalClock/DigitalClock.js +1 -1
  26. package/LocalizationProvider/LocalizationProvider.js +1 -1
  27. package/MobileDatePicker/MobileDatePicker.js +1 -1
  28. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  29. package/MobileTimePicker/MobileTimePicker.js +1 -1
  30. package/MonthCalendar/MonthCalendar.js +1 -1
  31. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  32. package/PickersActionBar/PickersActionBar.js +1 -1
  33. package/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  34. package/PickersDay/PickersDay.js +1 -1
  35. package/PickersLayout/PickersLayout.d.ts +1 -2
  36. package/PickersLayout/PickersLayout.js +2 -14
  37. package/PickersLayout/usePickerLayout.js +6 -7
  38. package/PickersSectionList/PickersSectionList.js +1 -1
  39. package/PickersShortcuts/PickersShortcuts.js +1 -1
  40. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  41. package/PickersTextField/PickersInput/PickersInput.js +1 -1
  42. package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  43. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  44. package/PickersTextField/PickersTextField.js +1 -1
  45. package/StaticDatePicker/StaticDatePicker.js +1 -1
  46. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  47. package/StaticTimePicker/StaticTimePicker.js +1 -1
  48. package/TimeClock/TimeClock.js +1 -1
  49. package/TimeField/TimeField.js +1 -1
  50. package/TimePicker/TimePicker.js +1 -1
  51. package/TimePicker/TimePickerToolbar.js +1 -19
  52. package/YearCalendar/YearCalendar.js +1 -1
  53. package/index.js +1 -1
  54. package/internals/components/PickersModalDialog.d.ts +2 -2
  55. package/internals/demo/DemoContainer.js +1 -1
  56. package/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  57. package/internals/hooks/useField/useFieldV6TextField.js +1 -1
  58. package/internals/hooks/usePicker/usePickerViews.d.ts +2 -3
  59. package/internals/hooks/usePicker/usePickerViews.js +3 -5
  60. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +4 -2
  61. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +14 -227
  62. package/modern/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +17 -230
  63. package/modern/AdapterDateFnsV3/AdapterDateFnsV3.js +0 -1
  64. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +2 -6
  65. package/modern/DateCalendar/DateCalendar.js +6 -5
  66. package/modern/DateField/DateField.js +1 -1
  67. package/modern/DatePicker/DatePicker.js +1 -1
  68. package/modern/DatePicker/DatePickerToolbar.js +1 -1
  69. package/modern/DateTimeField/DateTimeField.js +1 -1
  70. package/modern/DateTimePicker/DateTimePicker.js +1 -1
  71. package/modern/DateTimePicker/DateTimePickerTabs.js +1 -1
  72. package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -27
  73. package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  74. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
  75. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  76. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  77. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
  78. package/modern/DigitalClock/DigitalClock.js +1 -1
  79. package/modern/LocalizationProvider/LocalizationProvider.js +1 -1
  80. package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
  81. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  82. package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
  83. package/modern/MonthCalendar/MonthCalendar.js +1 -1
  84. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  85. package/modern/PickersActionBar/PickersActionBar.js +1 -1
  86. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  87. package/modern/PickersDay/PickersDay.js +1 -1
  88. package/modern/PickersLayout/PickersLayout.js +2 -14
  89. package/modern/PickersLayout/usePickerLayout.js +6 -7
  90. package/modern/PickersSectionList/PickersSectionList.js +1 -1
  91. package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
  92. package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  93. package/modern/PickersTextField/PickersInput/PickersInput.js +1 -1
  94. package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  95. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  96. package/modern/PickersTextField/PickersTextField.js +1 -1
  97. package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
  98. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  99. package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
  100. package/modern/TimeClock/TimeClock.js +1 -1
  101. package/modern/TimeField/TimeField.js +1 -1
  102. package/modern/TimePicker/TimePicker.js +1 -1
  103. package/modern/TimePicker/TimePickerToolbar.js +1 -19
  104. package/modern/YearCalendar/YearCalendar.js +1 -1
  105. package/modern/index.js +1 -1
  106. package/modern/internals/demo/DemoContainer.js +1 -1
  107. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  108. package/modern/internals/hooks/useField/useFieldV6TextField.js +1 -1
  109. package/modern/internals/hooks/usePicker/usePickerViews.js +3 -5
  110. package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +4 -2
  111. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +14 -227
  112. package/node/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +17 -230
  113. package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +2 -6
  114. package/node/DateCalendar/DateCalendar.js +6 -5
  115. package/node/DateField/DateField.js +1 -1
  116. package/node/DatePicker/DatePicker.js +1 -1
  117. package/node/DatePicker/DatePickerToolbar.js +1 -1
  118. package/node/DateTimeField/DateTimeField.js +1 -1
  119. package/node/DateTimePicker/DateTimePicker.js +1 -1
  120. package/node/DateTimePicker/DateTimePickerTabs.js +1 -1
  121. package/node/DateTimePicker/DateTimePickerToolbar.js +1 -27
  122. package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  123. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -1
  124. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  125. package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  126. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -1
  127. package/node/DigitalClock/DigitalClock.js +1 -1
  128. package/node/LocalizationProvider/LocalizationProvider.js +1 -1
  129. package/node/MobileDatePicker/MobileDatePicker.js +1 -1
  130. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  131. package/node/MobileTimePicker/MobileTimePicker.js +1 -1
  132. package/node/MonthCalendar/MonthCalendar.js +1 -1
  133. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  134. package/node/PickersActionBar/PickersActionBar.js +1 -1
  135. package/node/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  136. package/node/PickersDay/PickersDay.js +1 -1
  137. package/node/PickersLayout/PickersLayout.js +1 -12
  138. package/node/PickersLayout/usePickerLayout.js +6 -7
  139. package/node/PickersSectionList/PickersSectionList.js +1 -1
  140. package/node/PickersShortcuts/PickersShortcuts.js +1 -1
  141. package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  142. package/node/PickersTextField/PickersInput/PickersInput.js +1 -1
  143. package/node/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  144. package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  145. package/node/PickersTextField/PickersTextField.js +1 -1
  146. package/node/StaticDatePicker/StaticDatePicker.js +1 -1
  147. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  148. package/node/StaticTimePicker/StaticTimePicker.js +1 -1
  149. package/node/TimeClock/TimeClock.js +1 -1
  150. package/node/TimeField/TimeField.js +1 -1
  151. package/node/TimePicker/TimePicker.js +1 -1
  152. package/node/TimePicker/TimePickerToolbar.js +1 -19
  153. package/node/YearCalendar/YearCalendar.js +1 -1
  154. package/node/index.js +1 -1
  155. package/node/internals/demo/DemoContainer.js +1 -1
  156. package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  157. package/node/internals/hooks/useField/useFieldV6TextField.js +1 -1
  158. package/node/internals/hooks/usePicker/usePickerViews.js +3 -5
  159. package/package.json +2 -2
@@ -207,9 +207,7 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
207
207
  disableFuture,
208
208
  reduceAnimations,
209
209
  timezone,
210
- labelId: gridLabelId,
211
- slots,
212
- slotProps
210
+ labelId: gridLabelId
213
211
  },
214
212
  ownerState: props
215
213
  });
@@ -303,7 +301,10 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
303
301
  className: (0, _clsx.default)(classes.root, className),
304
302
  ownerState: ownerState
305
303
  }, other, {
306
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CalendarHeader, (0, _extends2.default)({}, calendarHeaderProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(DateCalendarViewTransitionContainer, {
304
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CalendarHeader, (0, _extends2.default)({}, calendarHeaderProps, {
305
+ slots: slots,
306
+ slotProps: slotProps
307
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(DateCalendarViewTransitionContainer, {
307
308
  reduceAnimations: reduceAnimations,
308
309
  className: classes.viewTransitionContainer,
309
310
  transKey: view,
@@ -353,7 +354,7 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
353
354
  process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
354
355
  // ----------------------------- Warning --------------------------------
355
356
  // | These PropTypes are generated from the TypeScript type definitions |
356
- // | To update them edit the TypeScript types and run "yarn proptypes" |
357
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
357
358
  // ----------------------------------------------------------------------
358
359
  /**
359
360
  * If `true`, the main element is focused during the first mount.
@@ -69,7 +69,7 @@ const DateField = exports.DateField = /*#__PURE__*/React.forwardRef(function Dat
69
69
  process.env.NODE_ENV !== "production" ? DateField.propTypes = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
- // | To update them edit the TypeScript types and run "yarn proptypes" |
72
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
73
73
  // ----------------------------------------------------------------------
74
74
  /**
75
75
  * If `true`, the `input` element is focused during the first mount.
@@ -55,7 +55,7 @@ const DatePicker = exports.DatePicker = /*#__PURE__*/React.forwardRef(function D
55
55
  process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
56
56
  // ----------------------------- Warning --------------------------------
57
57
  // | These PropTypes are generated from the TypeScript type definitions |
58
- // | To update them edit the TypeScript types and run "yarn proptypes" |
58
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
59
59
  // ----------------------------------------------------------------------
60
60
  /**
61
61
  * If `true`, the main element is focused during the first mount.
@@ -106,7 +106,7 @@ const DatePickerToolbar = exports.DatePickerToolbar = /*#__PURE__*/React.forward
106
106
  process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
107
107
  // ----------------------------- Warning --------------------------------
108
108
  // | These PropTypes are generated from the TypeScript type definitions |
109
- // | To update them edit the TypeScript types and run "yarn proptypes" |
109
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
110
110
  // ----------------------------------------------------------------------
111
111
  /**
112
112
  * Override or extend the styles applied to the component.
@@ -69,7 +69,7 @@ const DateTimeField = exports.DateTimeField = /*#__PURE__*/React.forwardRef(func
69
69
  process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
- // | To update them edit the TypeScript types and run "yarn proptypes" |
72
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
73
73
  // ----------------------------------------------------------------------
74
74
  /**
75
75
  * 12h/24h view for hour selection clock.
@@ -55,7 +55,7 @@ const DateTimePicker = exports.DateTimePicker = /*#__PURE__*/React.forwardRef(fu
55
55
  process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
56
56
  // ----------------------------- Warning --------------------------------
57
57
  // | These PropTypes are generated from the TypeScript type definitions |
58
- // | To update them edit the TypeScript types and run "yarn proptypes" |
58
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
59
59
  // ----------------------------------------------------------------------
60
60
  /**
61
61
  * 12h/24h view for hour selection clock.
@@ -114,7 +114,7 @@ const DateTimePickerTabs = exports.DateTimePickerTabs = function DateTimePickerT
114
114
  process.env.NODE_ENV !== "production" ? DateTimePickerTabs.propTypes = {
115
115
  // ----------------------------- Warning --------------------------------
116
116
  // | These PropTypes are generated from the TypeScript type definitions |
117
- // | To update them edit the TypeScript types and run "yarn proptypes" |
117
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
118
118
  // ----------------------------------------------------------------------
119
119
  /**
120
120
  * Override or extend the styles applied to the component.
@@ -84,23 +84,6 @@ const DateTimePickerToolbarRoot = (0, _styles.styled)(_PickersToolbar.PickersToo
84
84
  }
85
85
  }]
86
86
  }));
87
- DateTimePickerToolbarRoot.propTypes = {
88
- // ----------------------------- Warning --------------------------------
89
- // | These PropTypes are generated from the TypeScript type definitions |
90
- // | To update them edit the TypeScript types and run "yarn proptypes" |
91
- // ----------------------------------------------------------------------
92
- as: _propTypes.default.elementType,
93
- classes: _propTypes.default.object,
94
- className: _propTypes.default.string,
95
- isLandscape: _propTypes.default.bool.isRequired,
96
- isMobileKeyboardViewOpen: _propTypes.default.bool,
97
- landscapeDirection: _propTypes.default.oneOf(['column', 'row']),
98
- ownerState: _propTypes.default.object.isRequired,
99
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
100
- toggleMobileKeyboardView: _propTypes.default.func,
101
- toolbarTitle: _propTypes.default.node,
102
- viewType: _propTypes.default.oneOf(['date', 'time'])
103
- };
104
87
  const DateTimePickerToolbarDateContainer = (0, _styles.styled)('div', {
105
88
  name: 'MuiDateTimePickerToolbar',
106
89
  slot: 'DateContainer',
@@ -166,15 +149,6 @@ const DateTimePickerToolbarTimeDigitsContainer = (0, _styles.styled)('div', {
166
149
  }
167
150
  }]
168
151
  }));
169
- DateTimePickerToolbarTimeContainer.propTypes = {
170
- // ----------------------------- Warning --------------------------------
171
- // | These PropTypes are generated from the TypeScript type definitions |
172
- // | To update them edit the TypeScript types and run "yarn proptypes" |
173
- // ----------------------------------------------------------------------
174
- as: _propTypes.default.elementType,
175
- ownerState: _propTypes.default.object.isRequired,
176
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
177
- };
178
152
  const DateTimePickerToolbarSeparator = (0, _styles.styled)(_PickersToolbarText.PickersToolbarText, {
179
153
  name: 'MuiDateTimePickerToolbar',
180
154
  slot: 'Separator',
@@ -372,7 +346,7 @@ function DateTimePickerToolbar(inProps) {
372
346
  process.env.NODE_ENV !== "production" ? DateTimePickerToolbar.propTypes = {
373
347
  // ----------------------------- Warning --------------------------------
374
348
  // | These PropTypes are generated from the TypeScript type definitions |
375
- // | To update them edit the TypeScript types and run "yarn proptypes" |
349
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
376
350
  // ----------------------------------------------------------------------
377
351
  ampm: _propTypes.default.bool,
378
352
  ampmInClock: _propTypes.default.bool,
@@ -61,15 +61,6 @@ const DayCalendarSkeletonDay = (0, _styles.styled)(_Skeleton.default, {
61
61
  }
62
62
  }]
63
63
  });
64
- DayCalendarSkeletonDay.propTypes = {
65
- // ----------------------------- Warning --------------------------------
66
- // | These PropTypes are generated from the TypeScript type definitions |
67
- // | To update them edit the TypeScript types and run "yarn proptypes" |
68
- // ----------------------------------------------------------------------
69
- ownerState: _propTypes.default.shape({
70
- day: _propTypes.default.number.isRequired
71
- }).isRequired
72
- };
73
64
  const monthMap = [[0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0]];
74
65
 
75
66
  /**
@@ -111,7 +102,7 @@ function DayCalendarSkeleton(inProps) {
111
102
  process.env.NODE_ENV !== "production" ? DayCalendarSkeleton.propTypes = {
112
103
  // ----------------------------- Warning --------------------------------
113
104
  // | These PropTypes are generated from the TypeScript type definitions |
114
- // | To update them edit the TypeScript types and run "yarn proptypes" |
105
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
115
106
  // ----------------------------------------------------------------------
116
107
  /**
117
108
  * Override or extend the styles applied to the component.
@@ -76,7 +76,7 @@ const DesktopDatePicker = exports.DesktopDatePicker = /*#__PURE__*/React.forward
76
76
  DesktopDatePicker.propTypes = {
77
77
  // ----------------------------- Warning --------------------------------
78
78
  // | These PropTypes are generated from the TypeScript type definitions |
79
- // | To update them edit the TypeScript types and run "yarn proptypes" |
79
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
80
80
  // ----------------------------------------------------------------------
81
81
  /**
82
82
  * If `true`, the main element is focused during the first mount.
@@ -161,7 +161,7 @@ const DesktopDateTimePicker = exports.DesktopDateTimePicker = /*#__PURE__*/React
161
161
  DesktopDateTimePicker.propTypes = {
162
162
  // ----------------------------- Warning --------------------------------
163
163
  // | These PropTypes are generated from the TypeScript type definitions |
164
- // | To update them edit the TypeScript types and run "yarn proptypes" |
164
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
165
165
  // ----------------------------------------------------------------------
166
166
  /**
167
167
  * 12h/24h view for hour selection clock.
@@ -28,12 +28,13 @@ function DesktopDateTimePickerLayout(props) {
28
28
  sx,
29
29
  className,
30
30
  isLandscape,
31
- ref
31
+ ref,
32
+ classes
32
33
  } = props;
33
34
  const isActionBarVisible = actionBar && (actionBar.props.actions?.length ?? 0) > 0;
34
35
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PickersLayout.PickersLayoutRoot, {
35
36
  ref: ref,
36
- className: (0, _clsx.default)(className, _PickersLayout.pickersLayoutClasses.root),
37
+ className: (0, _clsx.default)(className, _PickersLayout.pickersLayoutClasses.root, classes?.root),
37
38
  sx: [{
38
39
  [`& .${_PickersLayout.pickersLayoutClasses.tabs}`]: {
39
40
  gridRow: 4,
@@ -45,7 +46,7 @@ function DesktopDateTimePickerLayout(props) {
45
46
  }, ...(Array.isArray(sx) ? sx : [sx])],
46
47
  ownerState: props,
47
48
  children: [isLandscape ? shortcuts : toolbar, isLandscape ? toolbar : shortcuts, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PickersLayout.PickersLayoutContentWrapper, {
48
- className: _PickersLayout.pickersLayoutClasses.contentWrapper,
49
+ className: (0, _clsx.default)(_PickersLayout.pickersLayoutClasses.contentWrapper, classes?.contentWrapper),
49
50
  sx: {
50
51
  display: 'grid'
51
52
  },
@@ -61,7 +62,7 @@ function DesktopDateTimePickerLayout(props) {
61
62
  process.env.NODE_ENV !== "production" ? DesktopDateTimePickerLayout.propTypes = {
62
63
  // ----------------------------- Warning --------------------------------
63
64
  // | These PropTypes are generated from the TypeScript type definitions |
64
- // | To update them edit the TypeScript types and run "yarn proptypes" |
65
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
65
66
  // ----------------------------------------------------------------------
66
67
  children: _propTypes.default.node,
67
68
  /**
@@ -97,7 +97,7 @@ const DesktopTimePicker = exports.DesktopTimePicker = /*#__PURE__*/React.forward
97
97
  DesktopTimePicker.propTypes = {
98
98
  // ----------------------------- Warning --------------------------------
99
99
  // | These PropTypes are generated from the TypeScript type definitions |
100
- // | To update them edit the TypeScript types and run "yarn proptypes" |
100
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
101
101
  // ----------------------------------------------------------------------
102
102
  /**
103
103
  * 12h/24h view for hour selection clock.
@@ -279,7 +279,7 @@ const DigitalClock = exports.DigitalClock = /*#__PURE__*/React.forwardRef(functi
279
279
  process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
280
280
  // ----------------------------- Warning --------------------------------
281
281
  // | These PropTypes are generated from the TypeScript type definitions |
282
- // | To update them edit the TypeScript types and run "yarn proptypes" |
282
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
283
283
  // ----------------------------------------------------------------------
284
284
  /**
285
285
  * 12h/24h view for hour selection clock.
@@ -98,7 +98,7 @@ const LocalizationProvider = exports.LocalizationProvider = function Localizatio
98
98
  process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
99
99
  // ----------------------------- Warning --------------------------------
100
100
  // | These PropTypes are generated from the TypeScript type definitions |
101
- // | To update them edit the TypeScript types and run "yarn proptypes" |
101
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
102
102
  // ----------------------------------------------------------------------
103
103
  /**
104
104
  * Locale for the date library you are using
@@ -73,7 +73,7 @@ const MobileDatePicker = exports.MobileDatePicker = /*#__PURE__*/React.forwardRe
73
73
  MobileDatePicker.propTypes = {
74
74
  // ----------------------------- Warning --------------------------------
75
75
  // | These PropTypes are generated from the TypeScript type definitions |
76
- // | To update them edit the TypeScript types and run "yarn proptypes" |
76
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
77
77
  // ----------------------------------------------------------------------
78
78
  /**
79
79
  * If `true`, the main element is focused during the first mount.
@@ -83,7 +83,7 @@ const MobileDateTimePicker = exports.MobileDateTimePicker = /*#__PURE__*/React.f
83
83
  MobileDateTimePicker.propTypes = {
84
84
  // ----------------------------- Warning --------------------------------
85
85
  // | These PropTypes are generated from the TypeScript type definitions |
86
- // | To update them edit the TypeScript types and run "yarn proptypes" |
86
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
87
87
  // ----------------------------------------------------------------------
88
88
  /**
89
89
  * 12h/24h view for hour selection clock.
@@ -76,7 +76,7 @@ const MobileTimePicker = exports.MobileTimePicker = /*#__PURE__*/React.forwardRe
76
76
  MobileTimePicker.propTypes = {
77
77
  // ----------------------------- Warning --------------------------------
78
78
  // | These PropTypes are generated from the TypeScript type definitions |
79
- // | To update them edit the TypeScript types and run "yarn proptypes" |
79
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
80
80
  // ----------------------------------------------------------------------
81
81
  /**
82
82
  * 12h/24h view for hour selection clock.
@@ -242,7 +242,7 @@ const MonthCalendar = exports.MonthCalendar = /*#__PURE__*/React.forwardRef(func
242
242
  process.env.NODE_ENV !== "production" ? MonthCalendar.propTypes = {
243
243
  // ----------------------------- Warning --------------------------------
244
244
  // | These PropTypes are generated from the TypeScript type definitions |
245
- // | To update them edit the TypeScript types and run "yarn proptypes" |
245
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
246
246
  // ----------------------------------------------------------------------
247
247
  autoFocus: _propTypes.default.bool,
248
248
  /**
@@ -336,7 +336,7 @@ const MultiSectionDigitalClock = exports.MultiSectionDigitalClock = /*#__PURE__*
336
336
  process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
337
337
  // ----------------------------- Warning --------------------------------
338
338
  // | These PropTypes are generated from the TypeScript type definitions |
339
- // | To update them edit the TypeScript types and run "yarn proptypes" |
339
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
340
340
  // ----------------------------------------------------------------------
341
341
  /**
342
342
  * 12h/24h view for hour selection clock.
@@ -72,7 +72,7 @@ function PickersActionBar(props) {
72
72
  process.env.NODE_ENV !== "production" ? PickersActionBar.propTypes = {
73
73
  // ----------------------------- Warning --------------------------------
74
74
  // | These PropTypes are generated from the TypeScript type definitions |
75
- // | To update them edit the TypeScript types and run "yarn proptypes" |
75
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
76
76
  // ----------------------------------------------------------------------
77
77
  /**
78
78
  * Ordered array of actions to display.
@@ -236,7 +236,7 @@ const PickersCalendarHeader = exports.PickersCalendarHeader = /*#__PURE__*/React
236
236
  process.env.NODE_ENV !== "production" ? PickersCalendarHeader.propTypes = {
237
237
  // ----------------------------- Warning --------------------------------
238
238
  // | These PropTypes are generated from the TypeScript type definitions |
239
- // | To update them edit the TypeScript types and run "yarn proptypes" |
239
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
240
240
  // ----------------------------------------------------------------------
241
241
  /**
242
242
  * Override or extend the styles applied to the component.
@@ -226,7 +226,7 @@ const PickersDayRaw = /*#__PURE__*/React.forwardRef(function PickersDay(inProps,
226
226
  process.env.NODE_ENV !== "production" ? PickersDayRaw.propTypes = {
227
227
  // ----------------------------- Warning --------------------------------
228
228
  // | These PropTypes are generated from the TypeScript type definitions |
229
- // | To update them edit the TypeScript types and run "yarn proptypes" |
229
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
230
230
  // ----------------------------------------------------------------------
231
231
  /**
232
232
  * A ref for imperative actions.
@@ -70,17 +70,6 @@ const PickersLayoutRoot = exports.PickersLayoutRoot = (0, _styles.styled)('div',
70
70
  }
71
71
  }]
72
72
  }));
73
- PickersLayoutRoot.propTypes = {
74
- // ----------------------------- Warning --------------------------------
75
- // | These PropTypes are generated from the TypeScript type definitions |
76
- // | To update them edit the TypeScript types and run "yarn proptypes" |
77
- // ----------------------------------------------------------------------
78
- as: _propTypes.default.elementType,
79
- ownerState: _propTypes.default.shape({
80
- isLandscape: _propTypes.default.bool.isRequired
81
- }).isRequired,
82
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
83
- };
84
73
  const PickersLayoutContentWrapper = exports.PickersLayoutContentWrapper = (0, _styles.styled)('div', {
85
74
  name: 'MuiPickersLayout',
86
75
  slot: 'ContentWrapper',
@@ -140,7 +129,7 @@ const PickersLayout = exports.PickersLayout = function PickersLayout(inProps) {
140
129
  process.env.NODE_ENV !== "production" ? PickersLayout.propTypes = {
141
130
  // ----------------------------- Warning --------------------------------
142
131
  // | These PropTypes are generated from the TypeScript type definitions |
143
- // | To update them edit the TypeScript types and run "yarn proptypes" |
132
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
144
133
  // ----------------------------------------------------------------------
145
134
  children: _propTypes.default.node,
146
135
  /**
@@ -72,9 +72,9 @@ const usePickerLayout = props => {
72
72
  onClear,
73
73
  onCancel,
74
74
  onSetToday,
75
- actions: wrapperVariant === 'desktop' ? [] : ['cancel', 'accept'],
76
- className: classes.actionBar
75
+ actions: wrapperVariant === 'desktop' ? [] : ['cancel', 'accept']
77
76
  },
77
+ className: classes.actionBar,
78
78
  ownerState: (0, _extends2.default)({}, props, {
79
79
  wrapperVariant
80
80
  })
@@ -95,9 +95,9 @@ const usePickerLayout = props => {
95
95
  onViewChange,
96
96
  views,
97
97
  disabled,
98
- readOnly,
99
- className: classes.toolbar
98
+ readOnly
100
99
  },
100
+ className: classes.toolbar,
101
101
  ownerState: (0, _extends2.default)({}, props, {
102
102
  wrapperVariant
103
103
  })
@@ -126,14 +126,13 @@ const usePickerLayout = props => {
126
126
  additionalProps: {
127
127
  isValid,
128
128
  isLandscape,
129
- onChange: onSelectShortcut,
130
- className: classes.shortcuts
129
+ onChange: onSelectShortcut
131
130
  },
131
+ className: classes.shortcuts,
132
132
  ownerState: {
133
133
  isValid,
134
134
  isLandscape,
135
135
  onChange: onSelectShortcut,
136
- className: classes.shortcuts,
137
136
  wrapperVariant
138
137
  }
139
138
  });
@@ -192,7 +192,7 @@ const PickersSectionList = exports.PickersSectionList = /*#__PURE__*/React.forwa
192
192
  process.env.NODE_ENV !== "production" ? PickersSectionList.propTypes = {
193
193
  // ----------------------------- Warning --------------------------------
194
194
  // | These PropTypes are generated from the TypeScript type definitions |
195
- // | To update them edit the TypeScript types and run "yarn proptypes" |
195
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
196
196
  // ----------------------------------------------------------------------
197
197
  /**
198
198
  * Override or extend the styles applied to the component.
@@ -72,7 +72,7 @@ function PickersShortcuts(props) {
72
72
  process.env.NODE_ENV !== "production" ? PickersShortcuts.propTypes = {
73
73
  // ----------------------------- Warning --------------------------------
74
74
  // | These PropTypes are generated from the TypeScript type definitions |
75
- // | To update them edit the TypeScript types and run "yarn proptypes" |
75
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
76
76
  // ----------------------------------------------------------------------
77
77
  /**
78
78
  * Importance of the change when picking a shortcut:
@@ -234,7 +234,7 @@ const PickersFilledInput = exports.PickersFilledInput = /*#__PURE__*/React.forwa
234
234
  process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
235
235
  // ----------------------------- Warning --------------------------------
236
236
  // | These PropTypes are generated from the TypeScript type definitions |
237
- // | To update them edit the TypeScript types and run "yarn proptypes" |
237
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
238
238
  // ----------------------------------------------------------------------
239
239
  /**
240
240
  * Is `true` if the current values equals the empty value.
@@ -150,7 +150,7 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
150
150
  process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
151
151
  // ----------------------------- Warning --------------------------------
152
152
  // | These PropTypes are generated from the TypeScript type definitions |
153
- // | To update them edit the TypeScript types and run "yarn proptypes" |
153
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
154
154
  // ----------------------------------------------------------------------
155
155
  /**
156
156
  * Is `true` if the current values equals the empty value.
@@ -297,7 +297,7 @@ const PickersInputBase = exports.PickersInputBase = /*#__PURE__*/React.forwardRe
297
297
  process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
298
298
  // ----------------------------- Warning --------------------------------
299
299
  // | These PropTypes are generated from the TypeScript type definitions |
300
- // | To update them edit the TypeScript types and run "yarn proptypes" |
300
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
301
301
  // ----------------------------------------------------------------------
302
302
  /**
303
303
  * Is `true` if the current values equals the empty value.
@@ -140,7 +140,7 @@ const PickersOutlinedInput = exports.PickersOutlinedInput = /*#__PURE__*/React.f
140
140
  process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
141
141
  // ----------------------------- Warning --------------------------------
142
142
  // | These PropTypes are generated from the TypeScript type definitions |
143
- // | To update them edit the TypeScript types and run "yarn proptypes" |
143
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
144
144
  // ----------------------------------------------------------------------
145
145
  /**
146
146
  * Is `true` if the current values equals the empty value.
@@ -158,7 +158,7 @@ const PickersTextField = exports.PickersTextField = /*#__PURE__*/React.forwardRe
158
158
  process.env.NODE_ENV !== "production" ? PickersTextField.propTypes = {
159
159
  // ----------------------------- Warning --------------------------------
160
160
  // | These PropTypes are generated from the TypeScript type definitions |
161
- // | To update them edit the TypeScript types and run "yarn proptypes" |
161
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
162
162
  // ----------------------------------------------------------------------
163
163
  /**
164
164
  * Is `true` if the current values equals the empty value.
@@ -59,7 +59,7 @@ const StaticDatePicker = exports.StaticDatePicker = /*#__PURE__*/React.forwardRe
59
59
  StaticDatePicker.propTypes = {
60
60
  // ----------------------------- Warning --------------------------------
61
61
  // | These PropTypes are generated from the TypeScript type definitions |
62
- // | To update them edit the TypeScript types and run "yarn proptypes" |
62
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
63
63
  // ----------------------------------------------------------------------
64
64
  /**
65
65
  * If `true`, the main element is focused during the first mount.
@@ -69,7 +69,7 @@ const StaticDateTimePicker = exports.StaticDateTimePicker = /*#__PURE__*/React.f
69
69
  StaticDateTimePicker.propTypes = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
- // | To update them edit the TypeScript types and run "yarn proptypes" |
72
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
73
73
  // ----------------------------------------------------------------------
74
74
  /**
75
75
  * 12h/24h view for hour selection clock.
@@ -61,7 +61,7 @@ const StaticTimePicker = exports.StaticTimePicker = /*#__PURE__*/React.forwardRe
61
61
  StaticTimePicker.propTypes = {
62
62
  // ----------------------------- Warning --------------------------------
63
63
  // | These PropTypes are generated from the TypeScript type definitions |
64
- // | To update them edit the TypeScript types and run "yarn proptypes" |
64
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
65
65
  // ----------------------------------------------------------------------
66
66
  /**
67
67
  * 12h/24h view for hour selection clock.
@@ -321,7 +321,7 @@ const TimeClock = exports.TimeClock = /*#__PURE__*/React.forwardRef(function Tim
321
321
  process.env.NODE_ENV !== "production" ? TimeClock.propTypes = {
322
322
  // ----------------------------- Warning --------------------------------
323
323
  // | These PropTypes are generated from the TypeScript type definitions |
324
- // | To update them edit the TypeScript types and run "yarn proptypes" |
324
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
325
325
  // ----------------------------------------------------------------------
326
326
  /**
327
327
  * 12h/24h view for hour selection clock.
@@ -69,7 +69,7 @@ const TimeField = exports.TimeField = /*#__PURE__*/React.forwardRef(function Tim
69
69
  process.env.NODE_ENV !== "production" ? TimeField.propTypes = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
- // | To update them edit the TypeScript types and run "yarn proptypes" |
72
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
73
73
  // ----------------------------------------------------------------------
74
74
  /**
75
75
  * 12h/24h view for hour selection clock.
@@ -55,7 +55,7 @@ const TimePicker = exports.TimePicker = /*#__PURE__*/React.forwardRef(function T
55
55
  process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
56
56
  // ----------------------------- Warning --------------------------------
57
57
  // | These PropTypes are generated from the TypeScript type definitions |
58
- // | To update them edit the TypeScript types and run "yarn proptypes" |
58
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
59
59
  // ----------------------------------------------------------------------
60
60
  /**
61
61
  * 12h/24h view for hour selection clock.
@@ -78,15 +78,6 @@ const TimePickerToolbarHourMinuteLabel = (0, _styles.styled)('div', {
78
78
  }
79
79
  }]
80
80
  }));
81
- TimePickerToolbarHourMinuteLabel.propTypes = {
82
- // ----------------------------- Warning --------------------------------
83
- // | These PropTypes are generated from the TypeScript type definitions |
84
- // | To update them edit the TypeScript types and run "yarn proptypes" |
85
- // ----------------------------------------------------------------------
86
- as: _propTypes.default.elementType,
87
- ownerState: _propTypes.default.object.isRequired,
88
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
89
- };
90
81
  const TimePickerToolbarAmPmSelection = (0, _styles.styled)('div', {
91
82
  name: 'MuiTimePickerToolbar',
92
83
  slot: 'AmPmSelection',
@@ -115,15 +106,6 @@ const TimePickerToolbarAmPmSelection = (0, _styles.styled)('div', {
115
106
  }
116
107
  }]
117
108
  });
118
- TimePickerToolbarAmPmSelection.propTypes = {
119
- // ----------------------------- Warning --------------------------------
120
- // | These PropTypes are generated from the TypeScript type definitions |
121
- // | To update them edit the TypeScript types and run "yarn proptypes" |
122
- // ----------------------------------------------------------------------
123
- as: _propTypes.default.elementType,
124
- ownerState: _propTypes.default.object.isRequired,
125
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
126
- };
127
109
 
128
110
  /**
129
111
  * Demos:
@@ -228,7 +210,7 @@ function TimePickerToolbar(inProps) {
228
210
  process.env.NODE_ENV !== "production" ? TimePickerToolbar.propTypes = {
229
211
  // ----------------------------- Warning --------------------------------
230
212
  // | These PropTypes are generated from the TypeScript type definitions |
231
- // | To update them edit the TypeScript types and run "yarn proptypes" |
213
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
232
214
  // ----------------------------------------------------------------------
233
215
  ampm: _propTypes.default.bool,
234
216
  ampmInClock: _propTypes.default.bool,
@@ -266,7 +266,7 @@ const YearCalendar = exports.YearCalendar = /*#__PURE__*/React.forwardRef(functi
266
266
  process.env.NODE_ENV !== "production" ? YearCalendar.propTypes = {
267
267
  // ----------------------------- Warning --------------------------------
268
268
  // | These PropTypes are generated from the TypeScript type definitions |
269
- // | To update them edit the TypeScript types and run "yarn proptypes" |
269
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
270
270
  // ----------------------------------------------------------------------
271
271
  autoFocus: _propTypes.default.bool,
272
272
  /**
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.4.0
2
+ * @mui/x-date-pickers v7.5.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -11,7 +11,7 @@ var React = _interopRequireWildcard(require("react"));
11
11
  var _Stack = _interopRequireWildcard(require("@mui/material/Stack"));
12
12
  var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
13
13
  var _TextField = require("@mui/material/TextField");
14
- var _PickersTextField = require("@mui/x-date-pickers/PickersTextField");
14
+ var _PickersTextField = require("../../PickersTextField");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }