@mui/lab 5.0.0-alpha.85 → 5.0.0-alpha.88
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.
- package/CHANGELOG.md +224 -14
- package/CalendarPicker/CalendarPicker.js +4 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -2
- package/ClockPicker/ClockPicker.js +4 -2
- package/DatePicker/DatePicker.js +4 -7
- package/DateRangePicker/DateRangePicker.js +0 -14
- package/DateTimePicker/DateTimePicker.js +4 -7
- package/DesktopDatePicker/DesktopDatePicker.js +4 -7
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -14
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +4 -7
- package/DesktopTimePicker/DesktopTimePicker.js +4 -7
- package/LocalizationProvider/LocalizationProvider.js +4 -2
- package/Masonry/Masonry.js +8 -3
- package/MobileDatePicker/MobileDatePicker.js +4 -7
- package/MobileDateRangePicker/MobileDateRangePicker.js +0 -14
- package/MobileDateTimePicker/MobileDateTimePicker.js +4 -7
- package/MobileTimePicker/MobileTimePicker.js +4 -7
- package/MonthPicker/MonthPicker.js +4 -2
- package/PickersDay/PickersDay.js +4 -2
- package/README.md +1 -1
- package/StaticDatePicker/StaticDatePicker.js +4 -7
- package/StaticDateRangePicker/StaticDateRangePicker.js +0 -14
- package/StaticDateTimePicker/StaticDateTimePicker.js +4 -7
- package/StaticTimePicker/StaticTimePicker.js +4 -7
- package/TimePicker/TimePicker.js +4 -7
- package/YearPicker/YearPicker.js +3 -2
- package/index.js +1 -1
- package/legacy/CalendarPicker/CalendarPicker.js +4 -2
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -2
- package/legacy/ClockPicker/ClockPicker.js +4 -2
- package/legacy/DatePicker/DatePicker.js +4 -7
- package/legacy/DateRangePicker/DateRangePicker.js +0 -14
- package/legacy/DateTimePicker/DateTimePicker.js +4 -7
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +4 -7
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -14
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +4 -7
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +4 -7
- package/legacy/LocalizationProvider/LocalizationProvider.js +4 -2
- package/legacy/Masonry/Masonry.js +8 -3
- package/legacy/MobileDatePicker/MobileDatePicker.js +4 -7
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -14
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +4 -7
- package/legacy/MobileTimePicker/MobileTimePicker.js +4 -7
- package/legacy/MonthPicker/MonthPicker.js +4 -2
- package/legacy/PickersDay/PickersDay.js +4 -2
- package/legacy/StaticDatePicker/StaticDatePicker.js +4 -7
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -14
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +4 -7
- package/legacy/StaticTimePicker/StaticTimePicker.js +4 -7
- package/legacy/TimePicker/TimePicker.js +4 -7
- package/legacy/YearPicker/YearPicker.js +3 -2
- package/legacy/index.js +1 -1
- package/modern/CalendarPicker/CalendarPicker.js +4 -2
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -2
- package/modern/ClockPicker/ClockPicker.js +4 -2
- package/modern/DatePicker/DatePicker.js +4 -7
- package/modern/DateRangePicker/DateRangePicker.js +0 -14
- package/modern/DateTimePicker/DateTimePicker.js +4 -7
- package/modern/DesktopDatePicker/DesktopDatePicker.js +4 -7
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -14
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +4 -7
- package/modern/DesktopTimePicker/DesktopTimePicker.js +4 -7
- package/modern/LocalizationProvider/LocalizationProvider.js +4 -2
- package/modern/Masonry/Masonry.js +8 -3
- package/modern/MobileDatePicker/MobileDatePicker.js +4 -7
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -14
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +4 -7
- package/modern/MobileTimePicker/MobileTimePicker.js +4 -7
- package/modern/MonthPicker/MonthPicker.js +4 -2
- package/modern/PickersDay/PickersDay.js +4 -2
- package/modern/StaticDatePicker/StaticDatePicker.js +4 -7
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -14
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +4 -7
- package/modern/StaticTimePicker/StaticTimePicker.js +4 -7
- package/modern/TimePicker/TimePicker.js +4 -7
- package/modern/YearPicker/YearPicker.js +3 -2
- package/modern/index.js +1 -1
- package/node/CalendarPicker/CalendarPicker.js +4 -2
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -2
- package/node/ClockPicker/ClockPicker.js +4 -2
- package/node/DatePicker/DatePicker.js +4 -7
- package/node/DateRangePicker/DateRangePicker.js +0 -17
- package/node/DateTimePicker/DateTimePicker.js +4 -7
- package/node/DesktopDatePicker/DesktopDatePicker.js +4 -7
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -17
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +4 -7
- package/node/DesktopTimePicker/DesktopTimePicker.js +4 -7
- package/node/LocalizationProvider/LocalizationProvider.js +4 -2
- package/node/Masonry/Masonry.js +9 -3
- package/node/MobileDatePicker/MobileDatePicker.js +4 -7
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +0 -17
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +4 -7
- package/node/MobileTimePicker/MobileTimePicker.js +4 -7
- package/node/MonthPicker/MonthPicker.js +4 -2
- package/node/PickersDay/PickersDay.js +4 -2
- package/node/StaticDatePicker/StaticDatePicker.js +4 -7
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +0 -17
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +4 -7
- package/node/StaticTimePicker/StaticTimePicker.js +4 -7
- package/node/TimePicker/TimePicker.js +4 -7
- package/node/YearPicker/YearPicker.js +3 -2
- package/node/index.js +1 -1
- package/package.json +4 -4
|
@@ -15,9 +15,11 @@ const warn = () => {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
const MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker(props) {
|
|
18
|
+
const MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XMobileTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XMobileTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -170,11 +172,6 @@ process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes
|
|
|
170
172
|
current: PropTypes.object
|
|
171
173
|
})]),
|
|
172
174
|
|
|
173
|
-
/**
|
|
174
|
-
* @ignore
|
|
175
|
-
*/
|
|
176
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
177
|
-
|
|
178
175
|
/**
|
|
179
176
|
* @ignore
|
|
180
177
|
*/
|
|
@@ -14,8 +14,10 @@ const warn = () => {
|
|
|
14
14
|
/**
|
|
15
15
|
* @ignore - do not document.
|
|
16
16
|
*/
|
|
17
|
-
const MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker(props) {
|
|
17
|
+
const MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker(props, ref) {
|
|
18
18
|
warn();
|
|
19
|
-
return /*#__PURE__*/_jsx(XMonthPicker, _extends({
|
|
19
|
+
return /*#__PURE__*/_jsx(XMonthPicker, _extends({
|
|
20
|
+
ref: ref
|
|
21
|
+
}, props));
|
|
20
22
|
});
|
|
21
23
|
export default MonthPicker;
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -15,9 +15,11 @@ const warn = () => {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
const PickersDay = /*#__PURE__*/React.forwardRef(function DeprecatedPickersDay(props) {
|
|
18
|
+
const PickersDay = /*#__PURE__*/React.forwardRef(function DeprecatedPickersDay(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XPickersDay, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XPickersDay, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? PickersDay.propTypes
|
|
23
25
|
/* remove-proptypes */
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm install @mui/lab
|
|
|
16
16
|
yarn add @mui/lab
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
The lab has peer dependencies on the Material Design components and on the
|
|
19
|
+
The lab has peer dependencies on the Material Design components and on the Emotion library.
|
|
20
20
|
If you are not already using them in your project, you can install with:
|
|
21
21
|
|
|
22
22
|
<!-- #default-branch-switch -->
|
|
@@ -15,9 +15,11 @@ const warn = () => {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
const StaticDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDatePicker(props) {
|
|
18
|
+
const StaticDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDatePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XStaticDatePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XStaticDatePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -169,11 +171,6 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
169
171
|
current: PropTypes.object
|
|
170
172
|
})]),
|
|
171
173
|
|
|
172
|
-
/**
|
|
173
|
-
* @ignore
|
|
174
|
-
*/
|
|
175
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
176
|
-
|
|
177
174
|
/**
|
|
178
175
|
* @ignore
|
|
179
176
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
let warnedOnce = false;
|
|
5
4
|
|
|
6
5
|
const warn = () => {
|
|
@@ -17,17 +16,4 @@ const StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedS
|
|
|
17
16
|
warn();
|
|
18
17
|
return null;
|
|
19
18
|
});
|
|
20
|
-
process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
|
|
21
|
-
/* remove-proptypes */
|
|
22
|
-
= {
|
|
23
|
-
// ----------------------------- Warning --------------------------------
|
|
24
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
25
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
26
|
-
// ----------------------------------------------------------------------
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @ignore
|
|
30
|
-
*/
|
|
31
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
32
|
-
} : void 0;
|
|
33
19
|
export default StaticDateRangePicker;
|
|
@@ -15,9 +15,11 @@ const warn = () => {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateTimePicker(props) {
|
|
18
|
+
const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XStaticDateTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XStaticDateTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -215,11 +217,6 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
215
217
|
current: PropTypes.object
|
|
216
218
|
})]),
|
|
217
219
|
|
|
218
|
-
/**
|
|
219
|
-
* @ignore
|
|
220
|
-
*/
|
|
221
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
222
|
-
|
|
223
220
|
/**
|
|
224
221
|
* @ignore
|
|
225
222
|
*/
|
|
@@ -15,9 +15,11 @@ const warn = () => {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
const StaticTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticTimePicker(props) {
|
|
18
|
+
const StaticTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XStaticTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XStaticTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? StaticTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -148,11 +150,6 @@ process.env.NODE_ENV !== "production" ? StaticTimePicker.propTypes
|
|
|
148
150
|
current: PropTypes.object
|
|
149
151
|
})]),
|
|
150
152
|
|
|
151
|
-
/**
|
|
152
|
-
* @ignore
|
|
153
|
-
*/
|
|
154
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
155
|
-
|
|
156
153
|
/**
|
|
157
154
|
* @ignore
|
|
158
155
|
*/
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -15,9 +15,11 @@ const warn = () => {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
const TimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedTimePicker(props) {
|
|
18
|
+
const TimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -177,11 +179,6 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
|
177
179
|
current: PropTypes.object
|
|
178
180
|
})]),
|
|
179
181
|
|
|
180
|
-
/**
|
|
181
|
-
* @ignore
|
|
182
|
-
*/
|
|
183
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
184
|
-
|
|
185
182
|
/**
|
|
186
183
|
* @ignore
|
|
187
184
|
*/
|
package/YearPicker/YearPicker.js
CHANGED
|
@@ -14,8 +14,9 @@ const warn = () => {
|
|
|
14
14
|
/**
|
|
15
15
|
* @ignore - do not document.
|
|
16
16
|
*/
|
|
17
|
-
const YearPicker =
|
|
17
|
+
const YearPicker = function DeprecatedYearPicker(props) {
|
|
18
18
|
warn();
|
|
19
19
|
return /*#__PURE__*/_jsx(XYearPicker, _extends({}, props));
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
|
+
|
|
21
22
|
export default YearPicker;
|
package/index.js
CHANGED
|
@@ -14,8 +14,10 @@ var warn = function warn() {
|
|
|
14
14
|
/**
|
|
15
15
|
* @ignore - do not document.
|
|
16
16
|
*/
|
|
17
|
-
var CalendarPicker = /*#__PURE__*/React.forwardRef(function DeprecatedCalendarPicker(props) {
|
|
17
|
+
var CalendarPicker = /*#__PURE__*/React.forwardRef(function DeprecatedCalendarPicker(props, ref) {
|
|
18
18
|
warn();
|
|
19
|
-
return /*#__PURE__*/_jsx(XCalendarPicker, _extends({
|
|
19
|
+
return /*#__PURE__*/_jsx(XCalendarPicker, _extends({
|
|
20
|
+
ref: ref
|
|
21
|
+
}, props));
|
|
20
22
|
});
|
|
21
23
|
export default CalendarPicker;
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var CalendarPickerSkeleton = /*#__PURE__*/React.forwardRef(function DeprecatedCalendarPickerSkeleton(props) {
|
|
18
|
+
var CalendarPickerSkeleton = /*#__PURE__*/React.forwardRef(function DeprecatedCalendarPickerSkeleton(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XCalendarPickerSkeleton, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XCalendarPickerSkeleton, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? CalendarPickerSkeleton.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -14,8 +14,10 @@ var warn = function warn() {
|
|
|
14
14
|
/**
|
|
15
15
|
* @ignore - do not document.
|
|
16
16
|
*/
|
|
17
|
-
var ClockPicker = /*#__PURE__*/React.forwardRef(function DeprecatedClockPicker(props) {
|
|
17
|
+
var ClockPicker = /*#__PURE__*/React.forwardRef(function DeprecatedClockPicker(props, ref) {
|
|
18
18
|
warn();
|
|
19
|
-
return /*#__PURE__*/_jsx(XClockPicker, _extends({
|
|
19
|
+
return /*#__PURE__*/_jsx(XClockPicker, _extends({
|
|
20
|
+
ref: ref
|
|
21
|
+
}, props));
|
|
20
22
|
});
|
|
21
23
|
export default ClockPicker;
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var DatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDatePicker(props) {
|
|
18
|
+
var DatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDatePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XDatePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XDatePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -198,11 +200,6 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
198
200
|
current: PropTypes.object
|
|
199
201
|
})]),
|
|
200
202
|
|
|
201
|
-
/**
|
|
202
|
-
* @ignore
|
|
203
|
-
*/
|
|
204
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
205
|
-
|
|
206
203
|
/**
|
|
207
204
|
* @ignore
|
|
208
205
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
var warnedOnce = false;
|
|
5
4
|
|
|
6
5
|
var warn = function warn() {
|
|
@@ -17,17 +16,4 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDateRange
|
|
|
17
16
|
warn();
|
|
18
17
|
return null;
|
|
19
18
|
});
|
|
20
|
-
process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
21
|
-
/* remove-proptypes */
|
|
22
|
-
= {
|
|
23
|
-
// ----------------------------- Warning --------------------------------
|
|
24
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
25
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
26
|
-
// ----------------------------------------------------------------------
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @ignore
|
|
30
|
-
*/
|
|
31
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
32
|
-
} : void 0;
|
|
33
19
|
export default DateRangePicker;
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var DateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDateTimePicker(props) {
|
|
18
|
+
var DateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDateTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XDateTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XDateTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -244,11 +246,6 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
244
246
|
current: PropTypes.object
|
|
245
247
|
})]),
|
|
246
248
|
|
|
247
|
-
/**
|
|
248
|
-
* @ignore
|
|
249
|
-
*/
|
|
250
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
251
|
-
|
|
252
249
|
/**
|
|
253
250
|
* @ignore
|
|
254
251
|
*/
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopDatePicker(props) {
|
|
18
|
+
var DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopDatePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XDesktopDatePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XDesktopDatePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -180,11 +182,6 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
180
182
|
current: PropTypes.object
|
|
181
183
|
})]),
|
|
182
184
|
|
|
183
|
-
/**
|
|
184
|
-
* @ignore
|
|
185
|
-
*/
|
|
186
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
187
|
-
|
|
188
185
|
/**
|
|
189
186
|
* @ignore
|
|
190
187
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
var warnedOnce = false;
|
|
5
4
|
|
|
6
5
|
var warn = function warn() {
|
|
@@ -17,17 +16,4 @@ var DesktopDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDe
|
|
|
17
16
|
warn();
|
|
18
17
|
return null;
|
|
19
18
|
});
|
|
20
|
-
process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
21
|
-
/* remove-proptypes */
|
|
22
|
-
= {
|
|
23
|
-
// ----------------------------- Warning --------------------------------
|
|
24
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
25
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
26
|
-
// ----------------------------------------------------------------------
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @ignore
|
|
30
|
-
*/
|
|
31
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
32
|
-
} : void 0;
|
|
33
19
|
export default DesktopDateRangePicker;
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopDateTimePicker(props) {
|
|
18
|
+
var DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopDateTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XDesktopDateTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XDesktopDateTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -226,11 +228,6 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
226
228
|
current: PropTypes.object
|
|
227
229
|
})]),
|
|
228
230
|
|
|
229
|
-
/**
|
|
230
|
-
* @ignore
|
|
231
|
-
*/
|
|
232
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
233
|
-
|
|
234
231
|
/**
|
|
235
232
|
* @ignore
|
|
236
233
|
*/
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopTimePicker(props) {
|
|
18
|
+
var DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XDesktopTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XDesktopTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -159,11 +161,6 @@ process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
|
159
161
|
current: PropTypes.object
|
|
160
162
|
})]),
|
|
161
163
|
|
|
162
|
-
/**
|
|
163
|
-
* @ignore
|
|
164
|
-
*/
|
|
165
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
166
|
-
|
|
167
164
|
/**
|
|
168
165
|
* @ignore
|
|
169
166
|
*/
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var LocalizationProvider = /*#__PURE__*/React.forwardRef(function DeprecatedLocalizationProvider(props) {
|
|
18
|
+
var LocalizationProvider = /*#__PURE__*/React.forwardRef(function DeprecatedLocalizationProvider(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XLocalizationProvider, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XLocalizationProvider, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
6
|
+
import { flushSync } from 'react-dom';
|
|
6
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
8
|
import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
|
|
8
9
|
import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
@@ -235,9 +236,13 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
235
236
|
});
|
|
236
237
|
|
|
237
238
|
if (!skip) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
240
|
+
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
241
|
+
// Related issue - https://github.com/facebook/react/issues/24331
|
|
242
|
+
flushSync(function () {
|
|
243
|
+
setMaxColumnHeight(Math.max.apply(Math, _toConsumableArray(columnHeights)));
|
|
244
|
+
setNumberOfLineBreaks(currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0);
|
|
245
|
+
});
|
|
241
246
|
}
|
|
242
247
|
};
|
|
243
248
|
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var MobileDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDatePicker(props) {
|
|
18
|
+
var MobileDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDatePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XMobileDatePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XMobileDatePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -191,11 +193,6 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
|
191
193
|
current: PropTypes.object
|
|
192
194
|
})]),
|
|
193
195
|
|
|
194
|
-
/**
|
|
195
|
-
* @ignore
|
|
196
|
-
*/
|
|
197
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
198
|
-
|
|
199
196
|
/**
|
|
200
197
|
* @ignore
|
|
201
198
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
var warnedOnce = false;
|
|
5
4
|
|
|
6
5
|
var warn = function warn() {
|
|
@@ -17,17 +16,4 @@ var MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMob
|
|
|
17
16
|
warn();
|
|
18
17
|
return null;
|
|
19
18
|
});
|
|
20
|
-
process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
|
|
21
|
-
/* remove-proptypes */
|
|
22
|
-
= {
|
|
23
|
-
// ----------------------------- Warning --------------------------------
|
|
24
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
25
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
26
|
-
// ----------------------------------------------------------------------
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @ignore
|
|
30
|
-
*/
|
|
31
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
32
|
-
} : void 0;
|
|
33
19
|
export default MobileDateRangePicker;
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateTimePicker(props) {
|
|
18
|
+
var MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XMobileDateTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XMobileDateTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -237,11 +239,6 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
237
239
|
current: PropTypes.object
|
|
238
240
|
})]),
|
|
239
241
|
|
|
240
|
-
/**
|
|
241
|
-
* @ignore
|
|
242
|
-
*/
|
|
243
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
244
|
-
|
|
245
242
|
/**
|
|
246
243
|
* @ignore
|
|
247
244
|
*/
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker(props) {
|
|
18
|
+
var MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XMobileTimePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XMobileTimePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -170,11 +172,6 @@ process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes
|
|
|
170
172
|
current: PropTypes.object
|
|
171
173
|
})]),
|
|
172
174
|
|
|
173
|
-
/**
|
|
174
|
-
* @ignore
|
|
175
|
-
*/
|
|
176
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
177
|
-
|
|
178
175
|
/**
|
|
179
176
|
* @ignore
|
|
180
177
|
*/
|
|
@@ -14,8 +14,10 @@ var warn = function warn() {
|
|
|
14
14
|
/**
|
|
15
15
|
* @ignore - do not document.
|
|
16
16
|
*/
|
|
17
|
-
var MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker(props) {
|
|
17
|
+
var MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker(props, ref) {
|
|
18
18
|
warn();
|
|
19
|
-
return /*#__PURE__*/_jsx(XMonthPicker, _extends({
|
|
19
|
+
return /*#__PURE__*/_jsx(XMonthPicker, _extends({
|
|
20
|
+
ref: ref
|
|
21
|
+
}, props));
|
|
20
22
|
});
|
|
21
23
|
export default MonthPicker;
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var PickersDay = /*#__PURE__*/React.forwardRef(function DeprecatedPickersDay(props) {
|
|
18
|
+
var PickersDay = /*#__PURE__*/React.forwardRef(function DeprecatedPickersDay(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XPickersDay, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XPickersDay, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? PickersDay.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -15,9 +15,11 @@ var warn = function warn() {
|
|
|
15
15
|
/**
|
|
16
16
|
* @ignore - do not document.
|
|
17
17
|
*/
|
|
18
|
-
var StaticDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDatePicker(props) {
|
|
18
|
+
var StaticDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDatePicker(props, ref) {
|
|
19
19
|
warn();
|
|
20
|
-
return /*#__PURE__*/_jsx(XStaticDatePicker, _extends({
|
|
20
|
+
return /*#__PURE__*/_jsx(XStaticDatePicker, _extends({
|
|
21
|
+
ref: ref
|
|
22
|
+
}, props));
|
|
21
23
|
});
|
|
22
24
|
process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
23
25
|
/* remove-proptypes */
|
|
@@ -169,11 +171,6 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
169
171
|
current: PropTypes.object
|
|
170
172
|
})]),
|
|
171
173
|
|
|
172
|
-
/**
|
|
173
|
-
* @ignore
|
|
174
|
-
*/
|
|
175
|
-
key: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
176
|
-
|
|
177
174
|
/**
|
|
178
175
|
* @ignore
|
|
179
176
|
*/
|