@mui/x-date-pickers 7.5.0 → 7.6.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 (134) hide show
  1. package/CHANGELOG.md +148 -5418
  2. package/DateCalendar/DateCalendar.js +1 -1
  3. package/DateField/DateField.js +1 -1
  4. package/DatePicker/DatePicker.js +1 -1
  5. package/DatePicker/DatePickerToolbar.js +1 -1
  6. package/DateTimeField/DateTimeField.js +1 -1
  7. package/DateTimePicker/DateTimePicker.js +1 -1
  8. package/DateTimePicker/DateTimePickerTabs.js +1 -1
  9. package/DateTimePicker/DateTimePickerToolbar.js +1 -27
  10. package/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  11. package/DesktopDatePicker/DesktopDatePicker.js +1 -1
  12. package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  13. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  14. package/DesktopTimePicker/DesktopTimePicker.js +1 -1
  15. package/DigitalClock/DigitalClock.js +1 -1
  16. package/LocalizationProvider/LocalizationProvider.js +1 -1
  17. package/MobileDatePicker/MobileDatePicker.js +1 -1
  18. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  19. package/MobileTimePicker/MobileTimePicker.js +1 -1
  20. package/MonthCalendar/MonthCalendar.js +1 -1
  21. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  22. package/PickersActionBar/PickersActionBar.js +1 -1
  23. package/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  24. package/PickersDay/PickersDay.js +1 -1
  25. package/PickersLayout/PickersLayout.d.ts +1 -2
  26. package/PickersLayout/PickersLayout.js +2 -14
  27. package/PickersSectionList/PickersSectionList.js +1 -1
  28. package/PickersShortcuts/PickersShortcuts.js +1 -1
  29. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  30. package/PickersTextField/PickersInput/PickersInput.js +1 -1
  31. package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  32. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +2 -2
  33. package/PickersTextField/PickersTextField.js +1 -1
  34. package/StaticDatePicker/StaticDatePicker.js +1 -1
  35. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  36. package/StaticTimePicker/StaticTimePicker.js +1 -1
  37. package/TimeClock/TimeClock.js +1 -1
  38. package/TimeField/TimeField.js +1 -1
  39. package/TimePicker/TimePicker.js +1 -1
  40. package/TimePicker/TimePickerToolbar.js +1 -19
  41. package/YearCalendar/YearCalendar.js +1 -1
  42. package/index.js +1 -1
  43. package/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  44. package/internals/hooks/usePicker/usePickerViews.d.ts +2 -3
  45. package/internals/hooks/usePicker/usePickerViews.js +2 -5
  46. package/locales/fiFI.js +16 -20
  47. package/models/adapters.d.ts +1 -1
  48. package/modern/DateCalendar/DateCalendar.js +1 -1
  49. package/modern/DateField/DateField.js +1 -1
  50. package/modern/DatePicker/DatePicker.js +1 -1
  51. package/modern/DatePicker/DatePickerToolbar.js +1 -1
  52. package/modern/DateTimeField/DateTimeField.js +1 -1
  53. package/modern/DateTimePicker/DateTimePicker.js +1 -1
  54. package/modern/DateTimePicker/DateTimePickerTabs.js +1 -1
  55. package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -27
  56. package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  57. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
  58. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  59. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  60. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
  61. package/modern/DigitalClock/DigitalClock.js +1 -1
  62. package/modern/LocalizationProvider/LocalizationProvider.js +1 -1
  63. package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
  64. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  65. package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
  66. package/modern/MonthCalendar/MonthCalendar.js +1 -1
  67. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  68. package/modern/PickersActionBar/PickersActionBar.js +1 -1
  69. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  70. package/modern/PickersDay/PickersDay.js +1 -1
  71. package/modern/PickersLayout/PickersLayout.js +2 -14
  72. package/modern/PickersSectionList/PickersSectionList.js +1 -1
  73. package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
  74. package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  75. package/modern/PickersTextField/PickersInput/PickersInput.js +1 -1
  76. package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  77. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +2 -2
  78. package/modern/PickersTextField/PickersTextField.js +1 -1
  79. package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
  80. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  81. package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
  82. package/modern/TimeClock/TimeClock.js +1 -1
  83. package/modern/TimeField/TimeField.js +1 -1
  84. package/modern/TimePicker/TimePicker.js +1 -1
  85. package/modern/TimePicker/TimePickerToolbar.js +1 -19
  86. package/modern/YearCalendar/YearCalendar.js +1 -1
  87. package/modern/index.js +1 -1
  88. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  89. package/modern/internals/hooks/usePicker/usePickerViews.js +2 -5
  90. package/modern/locales/fiFI.js +16 -20
  91. package/node/DateCalendar/DateCalendar.js +1 -1
  92. package/node/DateField/DateField.js +1 -1
  93. package/node/DatePicker/DatePicker.js +1 -1
  94. package/node/DatePicker/DatePickerToolbar.js +1 -1
  95. package/node/DateTimeField/DateTimeField.js +1 -1
  96. package/node/DateTimePicker/DateTimePicker.js +1 -1
  97. package/node/DateTimePicker/DateTimePickerTabs.js +1 -1
  98. package/node/DateTimePicker/DateTimePickerToolbar.js +1 -27
  99. package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  100. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -1
  101. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  102. package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  103. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -1
  104. package/node/DigitalClock/DigitalClock.js +1 -1
  105. package/node/LocalizationProvider/LocalizationProvider.js +1 -1
  106. package/node/MobileDatePicker/MobileDatePicker.js +1 -1
  107. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  108. package/node/MobileTimePicker/MobileTimePicker.js +1 -1
  109. package/node/MonthCalendar/MonthCalendar.js +1 -1
  110. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  111. package/node/PickersActionBar/PickersActionBar.js +1 -1
  112. package/node/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  113. package/node/PickersDay/PickersDay.js +1 -1
  114. package/node/PickersLayout/PickersLayout.js +1 -12
  115. package/node/PickersSectionList/PickersSectionList.js +1 -1
  116. package/node/PickersShortcuts/PickersShortcuts.js +1 -1
  117. package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  118. package/node/PickersTextField/PickersInput/PickersInput.js +1 -1
  119. package/node/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  120. package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +2 -2
  121. package/node/PickersTextField/PickersTextField.js +1 -1
  122. package/node/StaticDatePicker/StaticDatePicker.js +1 -1
  123. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  124. package/node/StaticTimePicker/StaticTimePicker.js +1 -1
  125. package/node/TimeClock/TimeClock.js +1 -1
  126. package/node/TimeField/TimeField.js +1 -1
  127. package/node/TimePicker/TimePicker.js +1 -1
  128. package/node/TimePicker/TimePickerToolbar.js +1 -19
  129. package/node/YearCalendar/YearCalendar.js +1 -1
  130. package/node/index.js +1 -1
  131. package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  132. package/node/internals/hooks/usePicker/usePickerViews.js +2 -5
  133. package/node/locales/fiFI.js +16 -20
  134. package/package.json +3 -3
@@ -69,15 +69,6 @@ const TimePickerToolbarHourMinuteLabel = styled('div', {
69
69
  }
70
70
  }]
71
71
  }));
72
- TimePickerToolbarHourMinuteLabel.propTypes = {
73
- // ----------------------------- Warning --------------------------------
74
- // | These PropTypes are generated from the TypeScript type definitions |
75
- // | To update them edit the TypeScript types and run "yarn proptypes" |
76
- // ----------------------------------------------------------------------
77
- as: PropTypes.elementType,
78
- ownerState: PropTypes.object.isRequired,
79
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
80
- };
81
72
  const TimePickerToolbarAmPmSelection = styled('div', {
82
73
  name: 'MuiTimePickerToolbar',
83
74
  slot: 'AmPmSelection',
@@ -106,15 +97,6 @@ const TimePickerToolbarAmPmSelection = styled('div', {
106
97
  }
107
98
  }]
108
99
  });
109
- TimePickerToolbarAmPmSelection.propTypes = {
110
- // ----------------------------- Warning --------------------------------
111
- // | These PropTypes are generated from the TypeScript type definitions |
112
- // | To update them edit the TypeScript types and run "yarn proptypes" |
113
- // ----------------------------------------------------------------------
114
- as: PropTypes.elementType,
115
- ownerState: PropTypes.object.isRequired,
116
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
117
- };
118
100
 
119
101
  /**
120
102
  * Demos:
@@ -219,7 +201,7 @@ function TimePickerToolbar(inProps) {
219
201
  process.env.NODE_ENV !== "production" ? TimePickerToolbar.propTypes = {
220
202
  // ----------------------------- Warning --------------------------------
221
203
  // | These PropTypes are generated from the TypeScript type definitions |
222
- // | To update them edit the TypeScript types and run "yarn proptypes" |
204
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
223
205
  // ----------------------------------------------------------------------
224
206
  ampm: PropTypes.bool,
225
207
  ampmInClock: PropTypes.bool,
@@ -257,7 +257,7 @@ export const YearCalendar = /*#__PURE__*/React.forwardRef(function YearCalendar(
257
257
  process.env.NODE_ENV !== "production" ? YearCalendar.propTypes = {
258
258
  // ----------------------------- Warning --------------------------------
259
259
  // | These PropTypes are generated from the TypeScript type definitions |
260
- // | To update them edit the TypeScript types and run "yarn proptypes" |
260
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
261
261
  // ----------------------------------------------------------------------
262
262
  autoFocus: PropTypes.bool,
263
263
  /**
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.5.0
2
+ * @mui/x-date-pickers v7.6.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -121,7 +121,8 @@ export const useDesktopPicker = _ref => {
121
121
  // TODO: Move to `useSlotProps` when https://github.com/mui/material-ui/pull/35088 will be merged
122
122
  if (hasUIView) {
123
123
  fieldProps.InputProps = _extends({}, fieldProps.InputProps, {
124
- ref: containerRef,
124
+ ref: containerRef
125
+ }, !props.disableOpenPicker && {
125
126
  [`${inputAdornmentProps.position}Adornment`]: /*#__PURE__*/_jsx(InputAdornment, _extends({}, inputAdornmentProps, {
126
127
  children: /*#__PURE__*/_jsx(OpenPickerButton, _extends({}, openPickerButtonProps, {
127
128
  children: /*#__PURE__*/_jsx(OpenPickerIcon, _extends({}, innerSlotProps?.openPickerIcon))
@@ -42,7 +42,6 @@ export const usePickerViews = ({
42
42
  views,
43
43
  openTo,
44
44
  onViewChange,
45
- disableOpenPicker,
46
45
  viewRenderers,
47
46
  timezone
48
47
  } = props;
@@ -67,9 +66,7 @@ export const usePickerViews = ({
67
66
  viewModeLookup
68
67
  } = React.useMemo(() => views.reduce((acc, viewForReduce) => {
69
68
  let viewMode;
70
- if (disableOpenPicker) {
71
- viewMode = 'field';
72
- } else if (viewRenderers[viewForReduce] != null) {
69
+ if (viewRenderers[viewForReduce] != null) {
73
70
  viewMode = 'UI';
74
71
  } else {
75
72
  viewMode = 'field';
@@ -82,7 +79,7 @@ export const usePickerViews = ({
82
79
  }, {
83
80
  hasUIView: false,
84
81
  viewModeLookup: {}
85
- }), [disableOpenPicker, viewRenderers, views]);
82
+ }), [viewRenderers, views]);
86
83
  const timeViewsCount = React.useMemo(() => views.reduce((acc, viewForReduce) => {
87
84
  if (viewRenderers[viewForReduce] != null && isTimeView(viewForReduce)) {
88
85
  return acc + 1;
@@ -16,11 +16,10 @@ const fiFIPickers = {
16
16
  // DateRange labels
17
17
  start: 'Alku',
18
18
  end: 'Loppu',
19
- // startDate: 'Start date',
20
- // startTime: 'Start time',
21
- // endDate: 'End date',
22
- // endTime: 'End time',
23
-
19
+ startDate: 'Alkamispäivämäärä',
20
+ startTime: 'Alkamisaika',
21
+ endDate: 'Päättymispäivämäärä',
22
+ endTime: 'Päättymisaika',
24
23
  // Action bar
25
24
  cancelButtonLabel: 'Peruuta',
26
25
  clearButtonLabel: 'Tyhjennä',
@@ -35,7 +34,7 @@ const fiFIPickers = {
35
34
  clockLabelText: (view, time, adapter) => `Valitse ${views[view]}. ${time === null ? 'Ei aikaa valittuna' : `Valittu aika on ${adapter.format(time, 'fullTime')}`}`,
36
35
  hoursClockNumberText: hours => `${hours} tuntia`,
37
36
  minutesClockNumberText: minutes => `${minutes} minuuttia`,
38
- secondsClockNumberText: seconds => `${seconds} sekunttia`,
37
+ secondsClockNumberText: seconds => `${seconds} sekuntia`,
39
38
  // Digital clock labels
40
39
  selectViewText: view => `Valitse ${views[view]}`,
41
40
  // Calendar labels
@@ -46,8 +45,7 @@ const fiFIPickers = {
46
45
  // Open picker labels
47
46
  openDatePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse päivä, valittu päivä on ${utils.format(value, 'fullDate')}` : 'Valitse päivä',
48
47
  openTimePickerDialogue: (value, utils) => value !== null && utils.isValid(value) ? `Valitse aika, valittu aika on ${utils.format(value, 'fullTime')}` : 'Valitse aika',
49
- // fieldClearLabel: 'Clear value',
50
-
48
+ fieldClearLabel: 'Tyhjennä arvo',
51
49
  // Table labels
52
50
  timeTableLabel: 'valitse aika',
53
51
  dateTableLabel: 'valitse päivä',
@@ -59,19 +57,17 @@ const fiFIPickers = {
59
57
  fieldHoursPlaceholder: () => 'tt',
60
58
  fieldMinutesPlaceholder: () => 'mm',
61
59
  fieldSecondsPlaceholder: () => 'ss',
62
- fieldMeridiemPlaceholder: () => 'aa'
63
-
60
+ fieldMeridiemPlaceholder: () => 'aa',
64
61
  // View names
65
- // year: 'Year',
66
- // month: 'Month',
67
- // day: 'Day',
68
- // weekDay: 'Week day',
69
- // hours: 'Hours',
70
- // minutes: 'Minutes',
71
- // seconds: 'Seconds',
72
- // meridiem: 'Meridiem',
73
-
62
+ year: 'Vuosi',
63
+ month: 'Kuukausi',
64
+ day: 'Päivä',
65
+ weekDay: 'Viikonpäivä',
66
+ hours: 'Tunnit',
67
+ minutes: 'Minuutit',
68
+ seconds: 'Sekunnit',
69
+ meridiem: 'Iltapäivä',
74
70
  // Common
75
- // empty: 'Empty',
71
+ empty: 'Tyhjä'
76
72
  };
77
73
  export const fiFI = getPickersLocalization(fiFIPickers);
@@ -354,7 +354,7 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
354
354
  process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
355
355
  // ----------------------------- Warning --------------------------------
356
356
  // | These PropTypes are generated from the TypeScript type definitions |
357
- // | To update them edit the TypeScript types and run "yarn proptypes" |
357
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
358
358
  // ----------------------------------------------------------------------
359
359
  /**
360
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
  /**
@@ -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.
@@ -58,7 +58,7 @@ const PickersOutlinedInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersI
58
58
  },
59
59
  variants: Object.keys((theme.vars ?? theme).palette)
60
60
  // @ts-ignore
61
- .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({
61
+ .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({
62
62
  props: {
63
63
  color
64
64
  },
@@ -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.