@mui/x-date-pickers 7.5.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 (130) hide show
  1. package/CHANGELOG.md +61 -5417
  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 +1 -1
  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/modern/DateCalendar/DateCalendar.js +1 -1
  47. package/modern/DateField/DateField.js +1 -1
  48. package/modern/DatePicker/DatePicker.js +1 -1
  49. package/modern/DatePicker/DatePickerToolbar.js +1 -1
  50. package/modern/DateTimeField/DateTimeField.js +1 -1
  51. package/modern/DateTimePicker/DateTimePicker.js +1 -1
  52. package/modern/DateTimePicker/DateTimePickerTabs.js +1 -1
  53. package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -27
  54. package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  55. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
  56. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  57. package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  58. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
  59. package/modern/DigitalClock/DigitalClock.js +1 -1
  60. package/modern/LocalizationProvider/LocalizationProvider.js +1 -1
  61. package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
  62. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  63. package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
  64. package/modern/MonthCalendar/MonthCalendar.js +1 -1
  65. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  66. package/modern/PickersActionBar/PickersActionBar.js +1 -1
  67. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  68. package/modern/PickersDay/PickersDay.js +1 -1
  69. package/modern/PickersLayout/PickersLayout.js +2 -14
  70. package/modern/PickersSectionList/PickersSectionList.js +1 -1
  71. package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
  72. package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  73. package/modern/PickersTextField/PickersInput/PickersInput.js +1 -1
  74. package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  75. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  76. package/modern/PickersTextField/PickersTextField.js +1 -1
  77. package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
  78. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  79. package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
  80. package/modern/TimeClock/TimeClock.js +1 -1
  81. package/modern/TimeField/TimeField.js +1 -1
  82. package/modern/TimePicker/TimePicker.js +1 -1
  83. package/modern/TimePicker/TimePickerToolbar.js +1 -19
  84. package/modern/YearCalendar/YearCalendar.js +1 -1
  85. package/modern/index.js +1 -1
  86. package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  87. package/modern/internals/hooks/usePicker/usePickerViews.js +2 -5
  88. package/node/DateCalendar/DateCalendar.js +1 -1
  89. package/node/DateField/DateField.js +1 -1
  90. package/node/DatePicker/DatePicker.js +1 -1
  91. package/node/DatePicker/DatePickerToolbar.js +1 -1
  92. package/node/DateTimeField/DateTimeField.js +1 -1
  93. package/node/DateTimePicker/DateTimePicker.js +1 -1
  94. package/node/DateTimePicker/DateTimePickerTabs.js +1 -1
  95. package/node/DateTimePicker/DateTimePickerToolbar.js +1 -27
  96. package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -10
  97. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -1
  98. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
  99. package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +5 -4
  100. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -1
  101. package/node/DigitalClock/DigitalClock.js +1 -1
  102. package/node/LocalizationProvider/LocalizationProvider.js +1 -1
  103. package/node/MobileDatePicker/MobileDatePicker.js +1 -1
  104. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
  105. package/node/MobileTimePicker/MobileTimePicker.js +1 -1
  106. package/node/MonthCalendar/MonthCalendar.js +1 -1
  107. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
  108. package/node/PickersActionBar/PickersActionBar.js +1 -1
  109. package/node/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  110. package/node/PickersDay/PickersDay.js +1 -1
  111. package/node/PickersLayout/PickersLayout.js +1 -12
  112. package/node/PickersSectionList/PickersSectionList.js +1 -1
  113. package/node/PickersShortcuts/PickersShortcuts.js +1 -1
  114. package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  115. package/node/PickersTextField/PickersInput/PickersInput.js +1 -1
  116. package/node/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  117. package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  118. package/node/PickersTextField/PickersTextField.js +1 -1
  119. package/node/StaticDatePicker/StaticDatePicker.js +1 -1
  120. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  121. package/node/StaticTimePicker/StaticTimePicker.js +1 -1
  122. package/node/TimeClock/TimeClock.js +1 -1
  123. package/node/TimeField/TimeField.js +1 -1
  124. package/node/TimePicker/TimePicker.js +1 -1
  125. package/node/TimePicker/TimePickerToolbar.js +1 -19
  126. package/node/YearCalendar/YearCalendar.js +1 -1
  127. package/node/index.js +1 -1
  128. package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
  129. package/node/internals/hooks/usePicker/usePickerViews.js +2 -5
  130. package/package.json +1 -1
@@ -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.
@@ -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.5.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
@@ -130,7 +130,8 @@ const useDesktopPicker = _ref => {
130
130
  // TODO: Move to `useSlotProps` when https://github.com/mui/material-ui/pull/35088 will be merged
131
131
  if (hasUIView) {
132
132
  fieldProps.InputProps = (0, _extends2.default)({}, fieldProps.InputProps, {
133
- ref: containerRef,
133
+ ref: containerRef
134
+ }, !props.disableOpenPicker && {
134
135
  [`${inputAdornmentProps.position}Adornment`]: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputAdornment, (0, _extends2.default)({}, inputAdornmentProps, {
135
136
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OpenPickerButton, (0, _extends2.default)({}, openPickerButtonProps, {
136
137
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OpenPickerIcon, (0, _extends2.default)({}, innerSlotProps?.openPickerIcon))
@@ -50,7 +50,6 @@ const usePickerViews = ({
50
50
  views,
51
51
  openTo,
52
52
  onViewChange,
53
- disableOpenPicker,
54
53
  viewRenderers,
55
54
  timezone
56
55
  } = props;
@@ -75,9 +74,7 @@ const usePickerViews = ({
75
74
  viewModeLookup
76
75
  } = React.useMemo(() => views.reduce((acc, viewForReduce) => {
77
76
  let viewMode;
78
- if (disableOpenPicker) {
79
- viewMode = 'field';
80
- } else if (viewRenderers[viewForReduce] != null) {
77
+ if (viewRenderers[viewForReduce] != null) {
81
78
  viewMode = 'UI';
82
79
  } else {
83
80
  viewMode = 'field';
@@ -90,7 +87,7 @@ const usePickerViews = ({
90
87
  }, {
91
88
  hasUIView: false,
92
89
  viewModeLookup: {}
93
- }), [disableOpenPicker, viewRenderers, views]);
90
+ }), [viewRenderers, views]);
94
91
  const timeViewsCount = React.useMemo(() => views.reduce((acc, viewForReduce) => {
95
92
  if (viewRenderers[viewForReduce] != null && (0, _timeUtils.isTimeView)(viewForReduce)) {
96
93
  return acc + 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "7.5.0",
3
+ "version": "7.5.1",
4
4
  "description": "The community edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",