@mui/x-date-pickers-pro 7.0.0-alpha.1 → 7.0.0-alpha.3

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 (66) hide show
  1. package/CHANGELOG.md +607 -188
  2. package/DateRangeCalendar/DateRangeCalendar.js +5 -11
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +0 -4
  4. package/DateRangeCalendar/useDragRange.js +1 -1
  5. package/DateRangePicker/DateRangePicker.js +4 -8
  6. package/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
  7. package/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
  8. package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  9. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
  10. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
  11. package/README.md +0 -1
  12. package/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  13. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
  14. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
  15. package/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
  16. package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +1 -1
  17. package/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
  18. package/index.js +1 -1
  19. package/internals/utils/releaseInfo.js +1 -1
  20. package/legacy/DateRangeCalendar/DateRangeCalendar.js +10 -17
  21. package/legacy/DateRangeCalendar/useDragRange.js +1 -1
  22. package/legacy/DateRangePicker/DateRangePicker.js +4 -8
  23. package/legacy/DateRangePickerDay/DateRangePickerDay.js +3 -4
  24. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
  25. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
  26. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  27. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
  28. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
  29. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  30. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
  31. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
  32. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
  33. package/legacy/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
  34. package/legacy/index.js +1 -1
  35. package/legacy/internals/utils/releaseInfo.js +1 -1
  36. package/modern/DateRangeCalendar/DateRangeCalendar.js +5 -11
  37. package/modern/DateRangeCalendar/useDragRange.js +1 -1
  38. package/modern/DateRangePicker/DateRangePicker.js +4 -8
  39. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
  40. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
  41. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  42. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
  43. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
  44. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  45. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
  46. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
  47. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
  48. package/modern/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
  49. package/modern/index.js +1 -1
  50. package/modern/internals/utils/releaseInfo.js +1 -1
  51. package/node/DateRangeCalendar/DateRangeCalendar.js +5 -11
  52. package/node/DateRangeCalendar/useDragRange.js +1 -1
  53. package/node/DateRangePicker/DateRangePicker.js +4 -8
  54. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
  55. package/node/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
  56. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  57. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
  58. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
  59. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  60. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
  61. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
  62. package/node/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
  63. package/node/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
  64. package/node/index.js +1 -1
  65. package/node/internals/utils/releaseInfo.js +1 -1
  66. package/package.json +7 -6
@@ -27,7 +27,7 @@ var _valueManagers = require("../internals/utils/valueManagers");
27
27
  var _useDragRange2 = require("./useDragRange");
28
28
  var _useRangePosition = require("../internals/hooks/useRangePosition");
29
29
  var _jsxRuntime = require("react/jsx-runtime");
30
- const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "defaultCalendarMonth", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone"],
30
+ const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone"],
31
31
  _excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
32
32
  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); }
33
33
  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 && Object.prototype.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; }
@@ -144,7 +144,6 @@ const DateRangeCalendar = exports.DateRangeCalendar = /*#__PURE__*/React.forward
144
144
  shouldDisableDate,
145
145
  reduceAnimations,
146
146
  onMonthChange,
147
- defaultCalendarMonth,
148
147
  rangePosition: rangePositionProp,
149
148
  defaultRangePosition: inDefaultRangePosition,
150
149
  onRangePositionChange: inOnRangePositionChange,
@@ -264,7 +263,6 @@ const DateRangeCalendar = exports.DateRangeCalendar = /*#__PURE__*/React.forward
264
263
  } = (0, _internals.useCalendarState)({
265
264
  value: value[0] || value[1],
266
265
  referenceDate,
267
- defaultCalendarMonth,
268
266
  disableFuture,
269
267
  disablePast,
270
268
  disableSwitchToMonthOnDayFocus: true,
@@ -519,10 +517,6 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
519
517
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
520
518
  */
521
519
  dayOfWeekFormatter: _propTypes.default.func,
522
- /**
523
- * Default calendar month displayed when `value={[null, null]}`.
524
- */
525
- defaultCalendarMonth: _propTypes.default.any,
526
520
  /**
527
521
  * The initial position in the edited date range.
528
522
  * Used when the component is not controlled.
@@ -569,8 +563,8 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
569
563
  */
570
564
  displayWeekNumber: _propTypes.default.bool,
571
565
  /**
572
- * Calendar will show more weeks in order to match this value.
573
- * Put it to 6 for having fix number of week in Gregorian calendars
566
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
567
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
574
568
  * @default undefined
575
569
  */
576
570
  fixedWeekNumber: _propTypes.default.number,
@@ -627,7 +621,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
627
621
  */
628
622
  referenceDate: _propTypes.default.any,
629
623
  /**
630
- * Component displaying when passed `loading` true.
624
+ * Component rendered on the "day" view when `props.loading` is true.
631
625
  * @returns {React.ReactNode} The node to render when loading.
632
626
  * @default () => "..."
633
627
  */
@@ -672,7 +666,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
672
666
  * Choose which timezone to use for the value.
673
667
  * Example: "default", "system", "UTC", "America/New_York".
674
668
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
675
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
669
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
676
670
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
677
671
  */
678
672
  timezone: _propTypes.default.string,
@@ -17,7 +17,7 @@ const resolveDateFromTarget = (target, utils, timezone) => {
17
17
  return null;
18
18
  }
19
19
  const timestamp = +timestampString;
20
- return utils.dateWithTimezone(new Date(timestamp).toISOString(), timezone);
20
+ return utils.date(new Date(timestamp).toISOString(), timezone);
21
21
  };
22
22
  const isSameAsDraggingDate = event => {
23
23
  const timestampString = event.target.dataset.timestamp;
@@ -89,10 +89,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
89
89
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
90
90
  */
91
91
  dayOfWeekFormatter: _propTypes.default.func,
92
- /**
93
- * Default calendar month displayed when `value={[null, null]}`.
94
- */
95
- defaultCalendarMonth: _propTypes.default.any,
96
92
  /**
97
93
  * The initial position in the edited date range.
98
94
  * Used when the component is not controlled.
@@ -150,8 +146,8 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
150
146
  */
151
147
  displayWeekNumber: _propTypes.default.bool,
152
148
  /**
153
- * Calendar will show more weeks in order to match this value.
154
- * Put it to 6 for having fix number of week in Gregorian calendars
149
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
150
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
155
151
  * @default undefined
156
152
  */
157
153
  fixedWeekNumber: _propTypes.default.number,
@@ -267,7 +263,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
267
263
  */
268
264
  referenceDate: _propTypes.default.any,
269
265
  /**
270
- * Component displaying when passed `loading` true.
266
+ * Component rendered on the "day" view when `props.loading` is true.
271
267
  * @returns {React.ReactNode} The node to render when loading.
272
268
  * @default () => "..."
273
269
  */
@@ -325,7 +321,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
325
321
  * Choose which timezone to use for the value.
326
322
  * Example: "default", "system", "UTC", "America/New_York".
327
323
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
328
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
324
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
329
325
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
330
326
  */
331
327
  timezone: _propTypes.default.string,
@@ -100,10 +100,6 @@ DesktopDateRangePicker.propTypes = {
100
100
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
101
101
  */
102
102
  dayOfWeekFormatter: _propTypes.default.func,
103
- /**
104
- * Default calendar month displayed when `value={[null, null]}`.
105
- */
106
- defaultCalendarMonth: _propTypes.default.any,
107
103
  /**
108
104
  * The initial position in the edited date range.
109
105
  * Used when the component is not controlled.
@@ -155,8 +151,8 @@ DesktopDateRangePicker.propTypes = {
155
151
  */
156
152
  displayWeekNumber: _propTypes.default.bool,
157
153
  /**
158
- * Calendar will show more weeks in order to match this value.
159
- * Put it to 6 for having fix number of week in Gregorian calendars
154
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
155
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
160
156
  * @default undefined
161
157
  */
162
158
  fixedWeekNumber: _propTypes.default.number,
@@ -272,7 +268,7 @@ DesktopDateRangePicker.propTypes = {
272
268
  */
273
269
  referenceDate: _propTypes.default.any,
274
270
  /**
275
- * Component displaying when passed `loading` true.
271
+ * Component rendered on the "day" view when `props.loading` is true.
276
272
  * @returns {React.ReactNode} The node to render when loading.
277
273
  * @default () => "..."
278
274
  */
@@ -330,7 +326,7 @@ DesktopDateRangePicker.propTypes = {
330
326
  * Choose which timezone to use for the value.
331
327
  * Example: "default", "system", "UTC", "America/New_York".
332
328
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
333
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
329
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
334
330
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
335
331
  */
336
332
  timezone: _propTypes.default.string,
@@ -100,10 +100,6 @@ MobileDateRangePicker.propTypes = {
100
100
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
101
101
  */
102
102
  dayOfWeekFormatter: _propTypes.default.func,
103
- /**
104
- * Default calendar month displayed when `value={[null, null]}`.
105
- */
106
- defaultCalendarMonth: _propTypes.default.any,
107
103
  /**
108
104
  * The initial position in the edited date range.
109
105
  * Used when the component is not controlled.
@@ -155,8 +151,8 @@ MobileDateRangePicker.propTypes = {
155
151
  */
156
152
  displayWeekNumber: _propTypes.default.bool,
157
153
  /**
158
- * Calendar will show more weeks in order to match this value.
159
- * Put it to 6 for having fix number of week in Gregorian calendars
154
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
155
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
160
156
  * @default undefined
161
157
  */
162
158
  fixedWeekNumber: _propTypes.default.number,
@@ -272,7 +268,7 @@ MobileDateRangePicker.propTypes = {
272
268
  */
273
269
  referenceDate: _propTypes.default.any,
274
270
  /**
275
- * Component displaying when passed `loading` true.
271
+ * Component rendered on the "day" view when `props.loading` is true.
276
272
  * @returns {React.ReactNode} The node to render when loading.
277
273
  * @default () => "..."
278
274
  */
@@ -330,7 +326,7 @@ MobileDateRangePicker.propTypes = {
330
326
  * Choose which timezone to use for the value.
331
327
  * Example: "default", "system", "UTC", "America/New_York".
332
328
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
333
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
329
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
334
330
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
335
331
  */
336
332
  timezone: _propTypes.default.string,
@@ -330,7 +330,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
330
330
  * Choose which timezone to use for the value.
331
331
  * Example: "default", "system", "UTC", "America/New_York".
332
332
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
333
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
333
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
334
334
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
335
335
  */
336
336
  timezone: _propTypes.default.string,
@@ -313,14 +313,6 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
313
313
  endIndex: _propTypes.default.number.isRequired,
314
314
  startIndex: _propTypes.default.number.isRequired
315
315
  })]),
316
- /**
317
- * Disable specific clock time.
318
- * @param {number} clockValue The value to check.
319
- * @param {TimeView} view The clock type of the timeValue.
320
- * @returns {boolean} If `true` the time will be disabled.
321
- * @deprecated Consider using `shouldDisableTime`.
322
- */
323
- shouldDisableClock: _propTypes.default.func,
324
316
  /**
325
317
  * Disable specific date.
326
318
  *
@@ -379,7 +371,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
379
371
  * Choose which timezone to use for the value.
380
372
  * Example: "default", "system", "UTC", "America/New_York".
381
373
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
382
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
374
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
383
375
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
384
376
  */
385
377
  timezone: _propTypes.default.string,
@@ -297,14 +297,6 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
297
297
  endIndex: _propTypes.default.number.isRequired,
298
298
  startIndex: _propTypes.default.number.isRequired
299
299
  })]),
300
- /**
301
- * Disable specific clock time.
302
- * @param {number} clockValue The value to check.
303
- * @param {TimeView} view The clock type of the timeValue.
304
- * @returns {boolean} If `true` the time will be disabled.
305
- * @deprecated Consider using `shouldDisableTime`.
306
- */
307
- shouldDisableClock: _propTypes.default.func,
308
300
  /**
309
301
  * Disable specific time.
310
302
  * @template TDate
@@ -352,7 +344,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
352
344
  * Choose which timezone to use for the value.
353
345
  * Example: "default", "system", "UTC", "America/New_York".
354
346
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
355
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
347
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
356
348
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
357
349
  */
358
350
  timezone: _propTypes.default.string,
@@ -328,7 +328,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
328
328
  * Choose which timezone to use for the value.
329
329
  * Example: "default", "system", "UTC", "America/New_York".
330
330
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
331
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
331
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
332
332
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
333
333
  */
334
334
  timezone: _propTypes.default.string,
@@ -312,14 +312,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
312
312
  endIndex: _propTypes.default.number.isRequired,
313
313
  startIndex: _propTypes.default.number.isRequired
314
314
  })]),
315
- /**
316
- * Disable specific clock time.
317
- * @param {number} clockValue The value to check.
318
- * @param {TimeView} view The clock type of the timeValue.
319
- * @returns {boolean} If `true` the time will be disabled.
320
- * @deprecated Consider using `shouldDisableTime`.
321
- */
322
- shouldDisableClock: _propTypes.default.func,
323
315
  /**
324
316
  * Disable specific date.
325
317
  *
@@ -377,7 +369,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
377
369
  * Choose which timezone to use for the value.
378
370
  * Example: "default", "system", "UTC", "America/New_York".
379
371
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
380
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
372
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
381
373
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
382
374
  */
383
375
  timezone: _propTypes.default.string,
@@ -296,14 +296,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
296
296
  endIndex: _propTypes.default.number.isRequired,
297
297
  startIndex: _propTypes.default.number.isRequired
298
298
  })]),
299
- /**
300
- * Disable specific clock time.
301
- * @param {number} clockValue The value to check.
302
- * @param {TimeView} view The clock type of the timeValue.
303
- * @returns {boolean} If `true` the time will be disabled.
304
- * @deprecated Consider using `shouldDisableTime`.
305
- */
306
- shouldDisableClock: _propTypes.default.func,
307
299
  /**
308
300
  * Disable specific time.
309
301
  * @template TDate
@@ -350,7 +342,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
350
342
  * Choose which timezone to use for the value.
351
343
  * Example: "default", "system", "UTC", "America/New_York".
352
344
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
353
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
345
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
354
346
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
355
347
  */
356
348
  timezone: _propTypes.default.string,
@@ -89,10 +89,6 @@ StaticDateRangePicker.propTypes = {
89
89
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
90
90
  */
91
91
  dayOfWeekFormatter: _propTypes.default.func,
92
- /**
93
- * Default calendar month displayed when `value={[null, null]}`.
94
- */
95
- defaultCalendarMonth: _propTypes.default.any,
96
92
  /**
97
93
  * The initial position in the edited date range.
98
94
  * Used when the component is not controlled.
@@ -144,8 +140,8 @@ StaticDateRangePicker.propTypes = {
144
140
  */
145
141
  displayWeekNumber: _propTypes.default.bool,
146
142
  /**
147
- * Calendar will show more weeks in order to match this value.
148
- * Put it to 6 for having fix number of week in Gregorian calendars
143
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
144
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
149
145
  * @default undefined
150
146
  */
151
147
  fixedWeekNumber: _propTypes.default.number,
@@ -226,7 +222,7 @@ StaticDateRangePicker.propTypes = {
226
222
  */
227
223
  referenceDate: _propTypes.default.any,
228
224
  /**
229
- * Component displaying when passed `loading` true.
225
+ * Component rendered on the "day" view when `props.loading` is true.
230
226
  * @returns {React.ReactNode} The node to render when loading.
231
227
  * @default () => "..."
232
228
  */
@@ -271,7 +267,7 @@ StaticDateRangePicker.propTypes = {
271
267
  * Choose which timezone to use for the value.
272
268
  * Example: "default", "system", "UTC", "America/New_York".
273
269
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
274
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
270
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
275
271
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
276
272
  */
277
273
  timezone: _propTypes.default.string,
@@ -27,7 +27,6 @@ const renderDateRangeViewCalendar = ({
27
27
  shouldDisableDate,
28
28
  reduceAnimations,
29
29
  onMonthChange,
30
- defaultCalendarMonth,
31
30
  rangePosition,
32
31
  defaultRangePosition,
33
32
  onRangePositionChange,
@@ -63,7 +62,6 @@ const renderDateRangeViewCalendar = ({
63
62
  shouldDisableDate: shouldDisableDate,
64
63
  reduceAnimations: reduceAnimations,
65
64
  onMonthChange: onMonthChange,
66
- defaultCalendarMonth: defaultCalendarMonth,
67
65
  rangePosition: rangePosition,
68
66
  defaultRangePosition: defaultRangePosition,
69
67
  onRangePositionChange: onRangePositionChange,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.0.0-alpha.1
2
+ * @mui/x-date-pickers-pro v7.0.0-alpha.3
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTcwMDE3MjAwMDAwMA==";
9
+ const releaseInfo = "MTcwMTY0MDgwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "7.0.0-alpha.1",
3
+ "version": "7.0.0-alpha.3",
4
4
  "description": "The commercial edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -17,6 +17,7 @@
17
17
  "react",
18
18
  "react-component",
19
19
  "mui",
20
+ "mui-x",
20
21
  "material-ui",
21
22
  "material design",
22
23
  "datepicker",
@@ -30,10 +31,11 @@
30
31
  "directory": "packages/x-date-pickers-pro"
31
32
  },
32
33
  "dependencies": {
33
- "@babel/runtime": "^7.23.2",
34
- "@mui/base": "^5.0.0-beta.22",
35
- "@mui/utils": "^5.14.16",
36
- "@mui/x-date-pickers": "7.0.0-alpha.1",
34
+ "@babel/runtime": "^7.23.4",
35
+ "@mui/base": "^5.0.0-beta.24",
36
+ "@mui/system": "^5.14.18",
37
+ "@mui/utils": "^5.14.18",
38
+ "@mui/x-date-pickers": "7.0.0-alpha.3",
37
39
  "@mui/x-license-pro": "7.0.0-alpha.1",
38
40
  "clsx": "^2.0.0",
39
41
  "prop-types": "^15.8.1",
@@ -43,7 +45,6 @@
43
45
  "@emotion/react": "^11.9.0",
44
46
  "@emotion/styled": "^11.8.1",
45
47
  "@mui/material": "^5.8.6",
46
- "@mui/system": "^5.8.0",
47
48
  "date-fns": "^2.25.0",
48
49
  "date-fns-jalali": "^2.13.0-0",
49
50
  "dayjs": "^1.10.7",