@mui/x-date-pickers-pro 7.4.0 → 7.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +132 -5395
  2. package/DateRangeCalendar/DateRangeCalendar.js +1 -1
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +1 -1
  4. package/DateRangePicker/DateRangePicker.js +1 -1
  5. package/DateRangePicker/DateRangePickerToolbar.js +1 -1
  6. package/DateRangePickerDay/DateRangePickerDay.js +1 -15
  7. package/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  8. package/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -1
  9. package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  10. package/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
  11. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +1 -1
  12. package/LocalizationProvider/index.d.ts +1 -0
  13. package/LocalizationProvider/index.js +1 -0
  14. package/LocalizationProvider/package.json +6 -0
  15. package/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
  16. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +1 -1
  17. package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  18. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +1 -2
  19. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -1
  20. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
  21. package/PickersRangeCalendarHeader/PickersRangeCalendarHeader.js +1 -1
  22. package/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  23. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +1 -2
  24. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
  25. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
  26. package/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
  27. package/index.d.ts +0 -1
  28. package/index.js +1 -1
  29. package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +1 -2
  30. package/internals/models/dateRange.d.ts +0 -4
  31. package/internals/utils/releaseInfo.js +1 -1
  32. package/internals/utils/validation/validateDateRange.d.ts +1 -1
  33. package/models/dateRange.d.ts +8 -0
  34. package/models/dateRange.js +1 -0
  35. package/models/index.d.ts +1 -0
  36. package/models/index.js +1 -0
  37. package/modern/DateRangeCalendar/DateRangeCalendar.js +1 -1
  38. package/modern/DateRangePicker/DateRangePicker.js +1 -1
  39. package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
  40. package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -15
  41. package/modern/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  42. package/modern/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -1
  43. package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  44. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
  45. package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +1 -1
  46. package/modern/LocalizationProvider/index.js +1 -0
  47. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
  48. package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +1 -1
  49. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  50. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -1
  51. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
  52. package/modern/PickersRangeCalendarHeader/PickersRangeCalendarHeader.js +1 -1
  53. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  54. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
  55. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
  56. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
  57. package/modern/index.js +1 -1
  58. package/modern/internals/utils/releaseInfo.js +1 -1
  59. package/modern/models/dateRange.js +1 -0
  60. package/modern/models/index.js +1 -0
  61. package/node/DateRangeCalendar/DateRangeCalendar.js +1 -1
  62. package/node/DateRangePicker/DateRangePicker.js +1 -1
  63. package/node/DateRangePicker/DateRangePickerToolbar.js +1 -1
  64. package/node/DateRangePickerDay/DateRangePickerDay.js +1 -15
  65. package/node/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  66. package/node/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -1
  67. package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  68. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
  69. package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +1 -1
  70. package/node/LocalizationProvider/index.js +12 -0
  71. package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
  72. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +1 -1
  73. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
  74. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -1
  75. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
  76. package/node/PickersRangeCalendarHeader/PickersRangeCalendarHeader.js +1 -1
  77. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
  78. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
  79. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
  80. package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
  81. package/node/index.js +1 -1
  82. package/node/internals/utils/releaseInfo.js +1 -1
  83. package/node/models/dateRange.js +5 -0
  84. package/node/models/index.js +11 -0
  85. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcxNTMxMzYwMDAwMA==";
3
+ const releaseInfo = "MTcxNjQxNTIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ export * from './dateRange';
1
2
  export * from './fields';
2
3
  export * from './range';
3
4
  export * from './validation';
@@ -480,7 +480,7 @@ const DateRangeCalendar = exports.DateRangeCalendar = /*#__PURE__*/React.forward
480
480
  process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
481
481
  // ----------------------------- Warning --------------------------------
482
482
  // | These PropTypes are generated from the TypeScript type definitions |
483
- // | To update them edit the TypeScript types and run "yarn proptypes" |
483
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
484
484
  // ----------------------------------------------------------------------
485
485
  /**
486
486
  * If `true`, the main element is focused during the first mount.
@@ -54,7 +54,7 @@ const DateRangePicker = exports.DateRangePicker = /*#__PURE__*/React.forwardRef(
54
54
  process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
55
55
  // ----------------------------- Warning --------------------------------
56
56
  // | These PropTypes are generated from the TypeScript type definitions |
57
- // | To update them edit the TypeScript types and run "yarn proptypes" |
57
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
58
58
  // ----------------------------------------------------------------------
59
59
  /**
60
60
  * If `true`, the main element is focused during the first mount.
@@ -99,7 +99,7 @@ const DateRangePickerToolbar = exports.DateRangePickerToolbar = /*#__PURE__*/Rea
99
99
  process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
100
100
  // ----------------------------- Warning --------------------------------
101
101
  // | These PropTypes are generated from the TypeScript type definitions |
102
- // | To update them edit the TypeScript types and run "yarn proptypes" |
102
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
103
103
  // ----------------------------------------------------------------------
104
104
  /**
105
105
  * Override or extend the styles applied to the component.
@@ -127,13 +127,6 @@ const DateRangePickerDayRoot = (0, _styles.styled)('div', {
127
127
  })
128
128
  }]
129
129
  }));
130
- DateRangePickerDayRoot.propTypes = {
131
- // ----------------------------- Warning --------------------------------
132
- // | These PropTypes are generated from the TypeScript type definitions |
133
- // | To update them edit the TypeScript types and run "yarn proptypes" |
134
- // ----------------------------------------------------------------------
135
- ownerState: _propTypes.default.object.isRequired
136
- };
137
130
  const DateRangePickerDayRangeIntervalPreview = (0, _styles.styled)('div', {
138
131
  name: 'MuiDateRangePickerDay',
139
132
  slot: 'RangeIntervalPreview',
@@ -186,13 +179,6 @@ const DateRangePickerDayRangeIntervalPreview = (0, _styles.styled)('div', {
186
179
  }, endBorderStyle)
187
180
  }]
188
181
  }));
189
- DateRangePickerDayRangeIntervalPreview.propTypes = {
190
- // ----------------------------- Warning --------------------------------
191
- // | These PropTypes are generated from the TypeScript type definitions |
192
- // | To update them edit the TypeScript types and run "yarn proptypes" |
193
- // ----------------------------------------------------------------------
194
- ownerState: _propTypes.default.object.isRequired
195
- };
196
182
  const DateRangePickerDayDay = (0, _styles.styled)(_PickersDay.PickersDay, {
197
183
  name: 'MuiDateRangePickerDay',
198
184
  slot: 'Day',
@@ -279,7 +265,7 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
279
265
  process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
280
266
  // ----------------------------- Warning --------------------------------
281
267
  // | These PropTypes are generated from the TypeScript type definitions |
282
- // | To update them edit the TypeScript types and run "yarn proptypes" |
268
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
283
269
  // ----------------------------------------------------------------------
284
270
  /**
285
271
  * A ref for imperative actions.
@@ -54,7 +54,7 @@ const DateTimeRangePicker = exports.DateTimeRangePicker = /*#__PURE__*/React.for
54
54
  process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
55
55
  // ----------------------------- Warning --------------------------------
56
56
  // | These PropTypes are generated from the TypeScript type definitions |
57
- // | To update them edit the TypeScript types and run "yarn proptypes" |
57
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
58
58
  // ----------------------------------------------------------------------
59
59
  /**
60
60
  * 12h/24h view for hour selection clock.
@@ -155,7 +155,7 @@ const DateTimeRangePickerTabs = exports.DateTimeRangePickerTabs = function DateT
155
155
  process.env.NODE_ENV !== "production" ? DateTimeRangePickerTabs.propTypes = {
156
156
  // ----------------------------- Warning --------------------------------
157
157
  // | These PropTypes are generated from the TypeScript type definitions |
158
- // | To update them edit the TypeScript types and run "yarn proptypes" |
158
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
159
159
  // ----------------------------------------------------------------------
160
160
  /**
161
161
  * Override or extend the styles applied to the component.
@@ -181,7 +181,7 @@ const DateTimeRangePickerToolbar = exports.DateTimeRangePickerToolbar = /*#__PUR
181
181
  process.env.NODE_ENV !== "production" ? DateTimeRangePickerToolbar.propTypes = {
182
182
  // ----------------------------- Warning --------------------------------
183
183
  // | These PropTypes are generated from the TypeScript type definitions |
184
- // | To update them edit the TypeScript types and run "yarn proptypes" |
184
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
185
185
  // ----------------------------------------------------------------------
186
186
  ampm: _propTypes.default.bool,
187
187
  /**
@@ -65,7 +65,7 @@ const DesktopDateRangePicker = exports.DesktopDateRangePicker = /*#__PURE__*/Rea
65
65
  DesktopDateRangePicker.propTypes = {
66
66
  // ----------------------------- Warning --------------------------------
67
67
  // | These PropTypes are generated from the TypeScript type definitions |
68
- // | To update them edit the TypeScript types and run "yarn proptypes" |
68
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
69
69
  // ----------------------------------------------------------------------
70
70
  /**
71
71
  * If `true`, the main element is focused during the first mount.
@@ -138,7 +138,7 @@ const DesktopDateTimeRangePicker = exports.DesktopDateTimeRangePicker = /*#__PUR
138
138
  DesktopDateTimeRangePicker.propTypes = {
139
139
  // ----------------------------- Warning --------------------------------
140
140
  // | These PropTypes are generated from the TypeScript type definitions |
141
- // | To update them edit the TypeScript types and run "yarn proptypes" |
141
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
142
142
  // ----------------------------------------------------------------------
143
143
  /**
144
144
  * 12h/24h view for hour selection clock.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "LocalizationProvider", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _LocalizationProvider.LocalizationProvider;
10
+ }
11
+ });
12
+ var _LocalizationProvider = require("@mui/x-date-pickers/LocalizationProvider");
@@ -66,7 +66,7 @@ const MobileDateRangePicker = exports.MobileDateRangePicker = /*#__PURE__*/React
66
66
  MobileDateRangePicker.propTypes = {
67
67
  // ----------------------------- Warning --------------------------------
68
68
  // | These PropTypes are generated from the TypeScript type definitions |
69
- // | To update them edit the TypeScript types and run "yarn proptypes" |
69
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
70
70
  // ----------------------------------------------------------------------
71
71
  /**
72
72
  * If `true`, the main element is focused during the first mount.
@@ -137,7 +137,7 @@ const MobileDateTimeRangePicker = exports.MobileDateTimeRangePicker = /*#__PURE_
137
137
  MobileDateTimeRangePicker.propTypes = {
138
138
  // ----------------------------- Warning --------------------------------
139
139
  // | These PropTypes are generated from the TypeScript type definitions |
140
- // | To update them edit the TypeScript types and run "yarn proptypes" |
140
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
141
141
  // ----------------------------------------------------------------------
142
142
  /**
143
143
  * 12h/24h view for hour selection clock.
@@ -138,7 +138,7 @@ const MultiInputDateRangeField = exports.MultiInputDateRangeField = /*#__PURE__*
138
138
  process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
139
139
  // ----------------------------- Warning --------------------------------
140
140
  // | These PropTypes are generated from the TypeScript type definitions |
141
- // | To update them edit the TypeScript types and run "yarn proptypes" |
141
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
142
142
  // ----------------------------------------------------------------------
143
143
  /**
144
144
  * If `true`, the `input` element is focused during the first mount.
@@ -138,7 +138,7 @@ const MultiInputDateTimeRangeField = exports.MultiInputDateTimeRangeField = /*#_
138
138
  process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes = {
139
139
  // ----------------------------- Warning --------------------------------
140
140
  // | These PropTypes are generated from the TypeScript type definitions |
141
- // | To update them edit the TypeScript types and run "yarn proptypes" |
141
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
142
142
  // ----------------------------------------------------------------------
143
143
  /**
144
144
  * 12h/24h view for hour selection clock.
@@ -138,7 +138,7 @@ const MultiInputTimeRangeField = exports.MultiInputTimeRangeField = /*#__PURE__*
138
138
  process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
139
139
  // ----------------------------- Warning --------------------------------
140
140
  // | These PropTypes are generated from the TypeScript type definitions |
141
- // | To update them edit the TypeScript types and run "yarn proptypes" |
141
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
142
142
  // ----------------------------------------------------------------------
143
143
  /**
144
144
  * 12h/24h view for hour selection clock.
@@ -78,7 +78,7 @@ const PickersRangeCalendarHeader = exports.PickersRangeCalendarHeader = /*#__PUR
78
78
  process.env.NODE_ENV !== "production" ? PickersRangeCalendarHeader.propTypes = {
79
79
  // ----------------------------- Warning --------------------------------
80
80
  // | These PropTypes are generated from the TypeScript type definitions |
81
- // | To update them edit the TypeScript types and run "yarn proptypes" |
81
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
82
82
  // ----------------------------------------------------------------------
83
83
  /**
84
84
  * The number of calendars rendered.
@@ -70,7 +70,7 @@ SingleInputDateRangeField.fieldType = 'single-input';
70
70
  process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
71
71
  // ----------------------------- Warning --------------------------------
72
72
  // | These PropTypes are generated from the TypeScript type definitions |
73
- // | To update them edit the TypeScript types and run "yarn proptypes" |
73
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
74
74
  // ----------------------------------------------------------------------
75
75
  /**
76
76
  * If `true`, the `input` element is focused during the first mount.
@@ -70,7 +70,7 @@ SingleInputDateTimeRangeField.fieldType = 'single-input';
70
70
  process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes = {
71
71
  // ----------------------------- Warning --------------------------------
72
72
  // | These PropTypes are generated from the TypeScript type definitions |
73
- // | To update them edit the TypeScript types and run "yarn proptypes" |
73
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
74
74
  // ----------------------------------------------------------------------
75
75
  /**
76
76
  * 12h/24h view for hour selection clock.
@@ -70,7 +70,7 @@ SingleInputTimeRangeField.fieldType = 'single-input';
70
70
  process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
71
71
  // ----------------------------- Warning --------------------------------
72
72
  // | These PropTypes are generated from the TypeScript type definitions |
73
- // | To update them edit the TypeScript types and run "yarn proptypes" |
73
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
74
74
  // ----------------------------------------------------------------------
75
75
  /**
76
76
  * 12h/24h view for hour selection clock.
@@ -59,7 +59,7 @@ const StaticDateRangePicker = exports.StaticDateRangePicker = /*#__PURE__*/React
59
59
  StaticDateRangePicker.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.
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.4.0
2
+ * @mui/x-date-pickers-pro v7.5.1
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 = "MTcxNTMxMzYwMDAwMA==";
9
+ const releaseInfo = "MTcxNjQxNTIwMDAwMA==";
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
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -3,6 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ var _dateRange = require("./dateRange");
7
+ Object.keys(_dateRange).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _dateRange[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _dateRange[key];
14
+ }
15
+ });
16
+ });
6
17
  var _fields = require("./fields");
7
18
  Object.keys(_fields).forEach(function (key) {
8
19
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "7.4.0",
3
+ "version": "7.5.1",
4
4
  "description": "The Pro plan edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -32,15 +32,15 @@
32
32
  "directory": "packages/x-date-pickers-pro"
33
33
  },
34
34
  "dependencies": {
35
- "@babel/runtime": "^7.24.0",
35
+ "@babel/runtime": "^7.24.5",
36
36
  "@mui/base": "^5.0.0-beta.40",
37
37
  "@mui/system": "^5.15.14",
38
38
  "@mui/utils": "^5.15.14",
39
39
  "clsx": "^2.1.1",
40
40
  "prop-types": "^15.8.1",
41
41
  "react-transition-group": "^4.4.5",
42
- "@mui/x-date-pickers": "7.4.0",
43
- "@mui/x-license": "7.2.0"
42
+ "@mui/x-date-pickers": "7.5.1",
43
+ "@mui/x-license": "7.2.1"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@emotion/react": "^11.9.0",