@mui/lab 5.0.0-alpha.45 → 5.0.0-alpha.49
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/Alert/Alert.js +1 -1
- package/AlertTitle/AlertTitle.js +1 -1
- package/Autocomplete/Autocomplete.js +1 -1
- package/AvatarGroup/AvatarGroup.js +1 -1
- package/CHANGELOG.md +337 -48
- package/CalendarPicker/CalendarPicker.d.ts +2 -2
- package/CalendarPicker/CalendarPicker.js +2 -2
- package/CalendarPicker/PickersCalendar.d.ts +1 -1
- package/CalendarPicker/PickersCalendarHeader.d.ts +4 -1
- package/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +2 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/ClockPicker/Clock.js +3 -3
- package/ClockPicker/ClockPicker.d.ts +6 -4
- package/ClockPicker/ClockPicker.js +3 -3
- package/ClockPicker/shared.js +1 -1
- package/DatePicker/DatePicker.d.ts +3 -3
- package/DatePicker/DatePicker.js +7 -7
- package/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/DateRangePicker/DateRangePicker.js +5 -5
- package/DateRangePicker/DateRangePickerInput.d.ts +1 -1
- package/DateRangePickerDay/DateRangePickerDay.d.ts +2 -2
- package/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +3 -3
- package/DateTimePicker/DateTimePicker.js +9 -9
- package/DateTimePicker/DateTimePickerToolbar.js +27 -14
- package/DateTimePicker/shared.d.ts +1 -1
- package/DesktopDatePicker/DesktopDatePicker.d.ts +2 -2
- package/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/DesktopTimePicker/DesktopTimePicker.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/LoadingButton/LoadingButton.d.ts +3 -3
- package/LoadingButton/LoadingButton.js +2 -2
- package/Masonry/Masonry.d.ts +2 -2
- package/Masonry/Masonry.js +1 -1
- package/MasonryItem/MasonryItem.d.ts +2 -2
- package/MasonryItem/MasonryItem.js +15 -27
- package/MobileDatePicker/MobileDatePicker.d.ts +2 -2
- package/MobileDatePicker/MobileDatePicker.js +4 -4
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/MobileTimePicker/MobileTimePicker.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.js +3 -3
- package/MonthPicker/MonthPicker.d.ts +2 -2
- package/MonthPicker/MonthPicker.js +2 -2
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.js +1 -1
- package/PickersDay/PickersDay.d.ts +2 -2
- package/PickersDay/PickersDay.js +3 -3
- package/README.md +11 -7
- package/Rating/Rating.js +1 -1
- package/Skeleton/Skeleton.js +1 -1
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/StaticDatePicker/StaticDatePicker.d.ts +2 -2
- package/StaticDatePicker/StaticDatePicker.js +4 -4
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/StaticTimePicker/StaticTimePicker.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.js +3 -3
- package/TabContext/TabContext.d.ts +2 -2
- package/TabList/TabList.d.ts +3 -3
- package/TabPanel/TabPanel.d.ts +2 -2
- package/TimePicker/TimePicker.d.ts +3 -3
- package/TimePicker/TimePicker.js +6 -6
- package/Timeline/Timeline.d.ts +4 -4
- package/Timeline/Timeline.js +4 -4
- package/TimelineConnector/TimelineConnector.d.ts +2 -2
- package/TimelineContent/TimelineContent.d.ts +3 -3
- package/TimelineDot/TimelineDot.d.ts +2 -2
- package/TimelineItem/TimelineItem.d.ts +2 -2
- package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -3
- package/TimelineSeparator/TimelineSeparator.d.ts +2 -2
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/TreeItem/TreeItem.d.ts +3 -3
- package/TreeItem/TreeItem.js +1 -1
- package/TreeView/TreeView.d.ts +2 -2
- package/YearPicker/PickersYear.js +1 -1
- package/YearPicker/YearPicker.d.ts +2 -2
- package/YearPicker/YearPicker.js +2 -2
- package/index.js +1 -1
- package/internal/pickers/PickersArrowSwitcher.d.ts +3 -3
- package/internal/pickers/PickersPopper.d.ts +2 -2
- package/internal/pickers/PureDateInput.d.ts +1 -1
- package/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/legacy/Alert/Alert.js +1 -1
- package/legacy/AlertTitle/AlertTitle.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +1 -1
- package/legacy/CalendarPicker/CalendarPicker.js +2 -2
- package/legacy/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/legacy/ClockPicker/Clock.js +3 -3
- package/legacy/ClockPicker/ClockPicker.js +3 -3
- package/legacy/ClockPicker/shared.js +1 -1
- package/legacy/DatePicker/DatePicker.js +7 -7
- package/legacy/DateRangePicker/DateRangePicker.js +5 -5
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/legacy/DateTimePicker/DateTimePicker.js +9 -9
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +30 -15
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/legacy/LoadingButton/LoadingButton.js +2 -2
- package/legacy/Masonry/Masonry.js +1 -1
- package/legacy/MasonryItem/MasonryItem.js +18 -30
- package/legacy/MobileDatePicker/MobileDatePicker.js +4 -4
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/legacy/MobileTimePicker/MobileTimePicker.js +3 -3
- package/legacy/MonthPicker/MonthPicker.js +2 -2
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +1 -1
- package/legacy/PickersDay/PickersDay.js +3 -3
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Skeleton/Skeleton.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +4 -4
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/legacy/StaticTimePicker/StaticTimePicker.js +3 -3
- package/legacy/TimePicker/TimePicker.js +6 -6
- package/legacy/Timeline/Timeline.js +4 -4
- package/legacy/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/TreeItem/TreeItem.js +1 -1
- package/legacy/YearPicker/PickersYear.js +1 -1
- package/legacy/YearPicker/YearPicker.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/modern/Alert/Alert.js +1 -1
- package/modern/AlertTitle/AlertTitle.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +1 -1
- package/modern/CalendarPicker/CalendarPicker.js +2 -2
- package/modern/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/modern/ClockPicker/Clock.js +3 -3
- package/modern/ClockPicker/ClockPicker.js +3 -3
- package/modern/ClockPicker/shared.js +1 -1
- package/modern/DatePicker/DatePicker.js +7 -7
- package/modern/DateRangePicker/DateRangePicker.js +5 -5
- package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/modern/DateTimePicker/DateTimePicker.js +9 -9
- package/modern/DateTimePicker/DateTimePickerToolbar.js +27 -14
- package/modern/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/modern/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/modern/LoadingButton/LoadingButton.js +2 -2
- package/modern/Masonry/Masonry.js +1 -1
- package/modern/MasonryItem/MasonryItem.js +15 -27
- package/modern/MobileDatePicker/MobileDatePicker.js +4 -4
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/modern/MobileTimePicker/MobileTimePicker.js +3 -3
- package/modern/MonthPicker/MonthPicker.js +2 -2
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +1 -1
- package/modern/PickersDay/PickersDay.js +3 -3
- package/modern/Rating/Rating.js +1 -1
- package/modern/Skeleton/Skeleton.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +4 -4
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/modern/StaticTimePicker/StaticTimePicker.js +3 -3
- package/modern/TimePicker/TimePicker.js +6 -6
- package/modern/Timeline/Timeline.js +4 -4
- package/modern/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/TreeItem/TreeItem.js +1 -1
- package/modern/YearPicker/PickersYear.js +1 -1
- package/modern/YearPicker/YearPicker.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/AlertTitle/AlertTitle.js +1 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +1 -1
- package/node/CalendarPicker/CalendarPicker.js +2 -2
- package/node/CalendarPicker/PickersCalendarHeader.js +0 -1
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +4 -4
- package/node/ClockPicker/Clock.js +3 -3
- package/node/ClockPicker/ClockPicker.js +3 -3
- package/node/ClockPicker/shared.js +1 -1
- package/node/DatePicker/DatePicker.js +7 -7
- package/node/DateRangePicker/DateRangePicker.js +5 -5
- package/node/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/node/DateTimePicker/DateTimePicker.js +9 -9
- package/node/DateTimePicker/DateTimePickerToolbar.js +27 -14
- package/node/DesktopDatePicker/DesktopDatePicker.js +6 -6
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -8
- package/node/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/node/LoadingButton/LoadingButton.js +2 -2
- package/node/Masonry/Masonry.js +1 -1
- package/node/MasonryItem/MasonryItem.js +14 -26
- package/node/MobileDatePicker/MobileDatePicker.js +4 -4
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +6 -6
- package/node/MobileTimePicker/MobileTimePicker.js +3 -3
- package/node/MonthPicker/MonthPicker.js +2 -2
- package/node/Pagination/Pagination.js +1 -1
- package/node/PaginationItem/PaginationItem.js +1 -1
- package/node/PickersDay/PickersDay.js +3 -3
- package/node/Rating/Rating.js +1 -1
- package/node/Skeleton/Skeleton.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +4 -4
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +6 -6
- package/node/StaticTimePicker/StaticTimePicker.js +3 -3
- package/node/TimePicker/TimePicker.js +6 -6
- package/node/Timeline/Timeline.js +4 -4
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/TreeItem/TreeItem.js +1 -1
- package/node/YearPicker/PickersYear.js +1 -1
- package/node/YearPicker/YearPicker.js +2 -2
- package/node/index.js +1 -1
- package/node/internal/pickers/hooks/date-helpers-hooks.js +1 -1
- package/package.json +13 -13
|
@@ -49,11 +49,11 @@ const valueManager = {
|
|
|
49
49
|
*
|
|
50
50
|
* Demos:
|
|
51
51
|
*
|
|
52
|
-
* - [Date Time Picker](https://
|
|
52
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
53
53
|
*
|
|
54
54
|
* API:
|
|
55
55
|
*
|
|
56
|
-
* - [DesktopDateTimePicker API](https://
|
|
56
|
+
* - [DesktopDateTimePicker API](https://mui.com/api/desktop-date-time-picker/)
|
|
57
57
|
*/
|
|
58
58
|
const DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DesktopDateTimePicker(inProps, ref) {
|
|
59
59
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -391,7 +391,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
391
391
|
/**
|
|
392
392
|
* First view to show.
|
|
393
393
|
*/
|
|
394
|
-
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
394
|
+
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
397
|
* Force rendering in particular orientation.
|
|
@@ -399,7 +399,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
399
399
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
|
-
* Popper props passed down to [Popper](https://
|
|
402
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
403
403
|
*/
|
|
404
404
|
PopperProps: _propTypes.default.object,
|
|
405
405
|
|
|
@@ -415,13 +415,13 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
415
415
|
reduceAnimations: _propTypes.default.bool,
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
418
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
419
419
|
*/
|
|
420
420
|
renderDay: _propTypes.default.func,
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
423
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
424
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
424
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
425
425
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
426
426
|
* @example ```jsx
|
|
427
427
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -502,7 +502,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
502
502
|
toolbarTitle: _propTypes.default.node,
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
|
-
* Custom component for popper [Transition](https://
|
|
505
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
506
506
|
*/
|
|
507
507
|
TransitionComponent: _propTypes.default.elementType,
|
|
508
508
|
|
|
@@ -514,7 +514,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
514
514
|
/**
|
|
515
515
|
* Array of views to show.
|
|
516
516
|
*/
|
|
517
|
-
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
517
|
+
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
518
518
|
} : void 0;
|
|
519
519
|
var _default = DesktopDateTimePicker;
|
|
520
520
|
exports.default = _default;
|
|
@@ -49,11 +49,11 @@ const valueManager = {
|
|
|
49
49
|
*
|
|
50
50
|
* Demos:
|
|
51
51
|
*
|
|
52
|
-
* - [Time Picker](https://
|
|
52
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
53
53
|
*
|
|
54
54
|
* API:
|
|
55
55
|
*
|
|
56
|
-
* - [DesktopTimePicker API](https://
|
|
56
|
+
* - [DesktopTimePicker API](https://mui.com/api/desktop-time-picker/)
|
|
57
57
|
*/
|
|
58
58
|
const DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DesktopTimePicker(inProps, ref) {
|
|
59
59
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -292,7 +292,7 @@ process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
|
292
292
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
|
-
* Popper props passed down to [Popper](https://
|
|
295
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
296
296
|
*/
|
|
297
297
|
PopperProps: _propTypes.default.object,
|
|
298
298
|
|
|
@@ -303,7 +303,7 @@ process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
306
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
306
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
307
307
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
308
308
|
* @example ```jsx
|
|
309
309
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -351,7 +351,7 @@ process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
|
351
351
|
toolbarTitle: _propTypes.default.node,
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* Custom component for popper [Transition](https://
|
|
354
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
355
355
|
*/
|
|
356
356
|
TransitionComponent: _propTypes.default.elementType,
|
|
357
357
|
|
|
@@ -189,11 +189,11 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
189
189
|
*/
|
|
190
190
|
loadingPosition: (0, _utils.chainPropTypes)(_propTypes.default.oneOf(['start', 'end', 'center']), props => {
|
|
191
191
|
if (props.loadingPosition === 'start' && !props.startIcon) {
|
|
192
|
-
return new Error(`
|
|
192
|
+
return new Error(`MUI: The loadingPosition="start" should be used in combination with startIcon.`);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
if (props.loadingPosition === 'end' && !props.endIcon) {
|
|
196
|
-
return new Error(`
|
|
196
|
+
return new Error(`MUI: The loadingPosition="end" should be used in combination with endIcon.`);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
return null;
|
package/node/Masonry/Masonry.js
CHANGED
|
@@ -133,7 +133,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
133
133
|
// scroller always appears when masonry's height goes beyond 2,000px on Chrome
|
|
134
134
|
const handleScroll = () => {
|
|
135
135
|
if (masonryRef.current.clientHeight === 1998 && !didWarn) {
|
|
136
|
-
console.warn(['
|
|
136
|
+
console.warn(['MUI: The Masonry can have the maximum height of 2,000px on Chrome browser.', 'Items that go beyond this height fail to be rendered on Chrome browser.', 'You can find more in this open issue: https://github.com/mui-org/material-ui/issues/27934'].join('\n')); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
137
137
|
|
|
138
138
|
didWarn = true;
|
|
139
139
|
}
|
|
@@ -37,15 +37,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
37
37
|
|
|
38
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
39
39
|
|
|
40
|
-
// dummy resize observer used to prevent crash for old browsers that do not support ResizeObserver API(e.g., 11IE)
|
|
41
|
-
const MockResizeObserver = () => {
|
|
42
|
-
return {
|
|
43
|
-
observe: () => {},
|
|
44
|
-
unobserve: () => {},
|
|
45
|
-
disconnect: () => {}
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
40
|
const useUtilityClasses = ownerState => {
|
|
50
41
|
const {
|
|
51
42
|
classes
|
|
@@ -66,7 +57,7 @@ const style = ({
|
|
|
66
57
|
// all contents should have a width of 100%
|
|
67
58
|
width: '100%',
|
|
68
59
|
boxSizing: 'inherit'
|
|
69
|
-
}, ownerState.
|
|
60
|
+
}, ownerState.hasDefaultHeight && {
|
|
70
61
|
height: '100%'
|
|
71
62
|
}),
|
|
72
63
|
visibility: ownerState.height ? 'visible' : 'hidden',
|
|
@@ -131,37 +122,34 @@ const MasonryItem = /*#__PURE__*/React.forwardRef(function MasonryItem(inProps,
|
|
|
131
122
|
defaultHeight
|
|
132
123
|
} = props,
|
|
133
124
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
134
|
-
const
|
|
125
|
+
const hasDefaultHeight = defaultHeight !== undefined;
|
|
135
126
|
const [height, setHeight] = React.useState(defaultHeight);
|
|
136
127
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
137
|
-
isSSR,
|
|
138
128
|
spacing,
|
|
129
|
+
hasDefaultHeight,
|
|
139
130
|
columnSpan,
|
|
140
131
|
height: height < 0 ? 0 : height // MasonryItems to which negative or zero height is passed will be hidden
|
|
141
132
|
|
|
142
133
|
});
|
|
143
134
|
const classes = useUtilityClasses(ownerState);
|
|
144
|
-
const resizeObserver = React.useRef(null);
|
|
145
135
|
React.useEffect(() => {
|
|
146
|
-
//
|
|
147
|
-
if (
|
|
148
|
-
return
|
|
136
|
+
// Do not create a resize observer in case of provided height masonry
|
|
137
|
+
if (hasDefaultHeight) {
|
|
138
|
+
return undefined;
|
|
149
139
|
}
|
|
150
140
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
setHeight(item.contentRect.height);
|
|
154
|
-
});
|
|
155
|
-
} catch (err) {
|
|
156
|
-
resizeObserver.current = MockResizeObserver();
|
|
141
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
142
|
+
return undefined;
|
|
157
143
|
}
|
|
158
144
|
|
|
159
|
-
const
|
|
160
|
-
|
|
145
|
+
const resizeObserver = new ResizeObserver(([item]) => {
|
|
146
|
+
setHeight(item.contentRect.height);
|
|
147
|
+
});
|
|
148
|
+
resizeObserver.observe(masonryItemRef.current.firstChild);
|
|
161
149
|
return () => {
|
|
162
|
-
resizeObserver.
|
|
150
|
+
resizeObserver.disconnect();
|
|
163
151
|
};
|
|
164
|
-
}, [
|
|
152
|
+
}, [hasDefaultHeight]);
|
|
165
153
|
const handleRef = (0, _utils.unstable_useForkRef)(ref, masonryItemRef);
|
|
166
154
|
const theme = (0, _styles.useTheme)();
|
|
167
155
|
const styleProp = {};
|
|
@@ -49,11 +49,11 @@ const valueManager = {
|
|
|
49
49
|
*
|
|
50
50
|
* Demos:
|
|
51
51
|
*
|
|
52
|
-
* - [Date Picker](https://
|
|
52
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
53
53
|
*
|
|
54
54
|
* API:
|
|
55
55
|
*
|
|
56
|
-
* - [MobileDatePicker API](https://
|
|
56
|
+
* - [MobileDatePicker API](https://mui.com/api/mobile-date-picker/)
|
|
57
57
|
*/
|
|
58
58
|
const MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker(inProps, ref) {
|
|
59
59
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -368,13 +368,13 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
|
368
368
|
reduceAnimations: _propTypes.default.bool,
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
371
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
372
372
|
*/
|
|
373
373
|
renderDay: _propTypes.default.func,
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
376
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
377
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
377
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
378
378
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
379
379
|
* @example ```jsx
|
|
380
380
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -50,11 +50,11 @@ const rangePickerValueManager = {
|
|
|
50
50
|
*
|
|
51
51
|
* Demos:
|
|
52
52
|
*
|
|
53
|
-
* - [Date Range Picker](https://
|
|
53
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
54
54
|
*
|
|
55
55
|
* API:
|
|
56
56
|
*
|
|
57
|
-
* - [MobileDateRangePicker API](https://
|
|
57
|
+
* - [MobileDateRangePicker API](https://mui.com/api/mobile-date-range-picker/)
|
|
58
58
|
*/
|
|
59
59
|
const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {
|
|
60
60
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -417,7 +417,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
|
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
419
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
420
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
420
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
421
421
|
* that you need to forward to the range start/end inputs respectively.
|
|
422
422
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
423
423
|
* @example
|
|
@@ -49,11 +49,11 @@ const valueManager = {
|
|
|
49
49
|
*
|
|
50
50
|
* Demos:
|
|
51
51
|
*
|
|
52
|
-
* - [Date Time Picker](https://
|
|
52
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
53
53
|
*
|
|
54
54
|
* API:
|
|
55
55
|
*
|
|
56
|
-
* - [MobileDateTimePicker API](https://
|
|
56
|
+
* - [MobileDateTimePicker API](https://mui.com/api/mobile-date-time-picker/)
|
|
57
57
|
*/
|
|
58
58
|
const MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function MobileDateTimePicker(inProps, ref) {
|
|
59
59
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -418,7 +418,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
418
418
|
/**
|
|
419
419
|
* First view to show.
|
|
420
420
|
*/
|
|
421
|
-
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
421
|
+
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
424
|
* Force rendering in particular orientation.
|
|
@@ -437,13 +437,13 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
437
437
|
reduceAnimations: _propTypes.default.bool,
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
440
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
441
441
|
*/
|
|
442
442
|
renderDay: _propTypes.default.func,
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
446
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
446
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
447
447
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
448
448
|
* @example ```jsx
|
|
449
449
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -543,7 +543,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
543
543
|
/**
|
|
544
544
|
* Array of views to show.
|
|
545
545
|
*/
|
|
546
|
-
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
546
|
+
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
547
547
|
} : void 0;
|
|
548
548
|
var _default = MobileDateTimePicker;
|
|
549
549
|
exports.default = _default;
|
|
@@ -49,11 +49,11 @@ const valueManager = {
|
|
|
49
49
|
*
|
|
50
50
|
* Demos:
|
|
51
51
|
*
|
|
52
|
-
* - [Time Picker](https://
|
|
52
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
53
53
|
*
|
|
54
54
|
* API:
|
|
55
55
|
*
|
|
56
|
-
* - [MobileTimePicker API](https://
|
|
56
|
+
* - [MobileTimePicker API](https://mui.com/api/mobile-time-picker/)
|
|
57
57
|
*/
|
|
58
58
|
const MobileTimePicker = /*#__PURE__*/React.forwardRef(function MobileTimePicker(inProps, ref) {
|
|
59
59
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -325,7 +325,7 @@ process.env.NODE_ENV !== "production" ? MobileTimePicker.propTypes
|
|
|
325
325
|
|
|
326
326
|
/**
|
|
327
327
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
328
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
328
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
329
329
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
330
330
|
* @example ```jsx
|
|
331
331
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -180,11 +180,11 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
|
|
|
180
180
|
*
|
|
181
181
|
* Demos:
|
|
182
182
|
*
|
|
183
|
-
* - [Date Picker](https://
|
|
183
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
184
184
|
*
|
|
185
185
|
* API:
|
|
186
186
|
*
|
|
187
|
-
* - [MonthPicker API](https://
|
|
187
|
+
* - [MonthPicker API](https://mui.com/api/month-picker/)
|
|
188
188
|
*/
|
|
189
189
|
|
|
190
190
|
var _default = MonthPicker;
|
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -182,7 +182,7 @@ const PickersDay = /*#__PURE__*/React.forwardRef(function PickersDay(inProps, fo
|
|
|
182
182
|
|
|
183
183
|
(0, _utils.unstable_useEnhancedEffect)(() => {
|
|
184
184
|
if (autoFocus && !disabled && !isAnimating && !outsideCurrentMonth) {
|
|
185
|
-
// ref.current being null would be a bug in
|
|
185
|
+
// ref.current being null would be a bug in MUI
|
|
186
186
|
ref.current.focus();
|
|
187
187
|
}
|
|
188
188
|
}, [autoFocus, disabled, isAnimating, outsideCurrentMonth]);
|
|
@@ -416,11 +416,11 @@ process.env.NODE_ENV !== "production" ? PickersDay.propTypes
|
|
|
416
416
|
*
|
|
417
417
|
* Demos:
|
|
418
418
|
*
|
|
419
|
-
* - [Date Picker](https://
|
|
419
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
420
420
|
*
|
|
421
421
|
* API:
|
|
422
422
|
*
|
|
423
|
-
* - [PickersDay API](https://
|
|
423
|
+
* - [PickersDay API](https://mui.com/api/pickers-day/)
|
|
424
424
|
*/
|
|
425
425
|
|
|
426
426
|
var _default = /*#__PURE__*/React.memo(PickersDay, areDayPropsEqual);
|
package/node/Rating/Rating.js
CHANGED
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -47,11 +47,11 @@ const valueManager = {
|
|
|
47
47
|
*
|
|
48
48
|
* Demos:
|
|
49
49
|
*
|
|
50
|
-
* - [Date Picker](https://
|
|
50
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
51
51
|
*
|
|
52
52
|
* API:
|
|
53
53
|
*
|
|
54
|
-
* - [StaticDatePicker API](https://
|
|
54
|
+
* - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
|
|
55
55
|
*/
|
|
56
56
|
const StaticDatePicker = /*#__PURE__*/React.forwardRef(function StaticDatePicker(inProps, ref) {
|
|
57
57
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -336,13 +336,13 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
336
336
|
reduceAnimations: _propTypes.default.bool,
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
339
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
340
340
|
*/
|
|
341
341
|
renderDay: _propTypes.default.func,
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
344
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
345
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
345
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
346
346
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
347
347
|
* @example ```jsx
|
|
348
348
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -47,11 +47,11 @@ const rangePickerValueManager = {
|
|
|
47
47
|
*
|
|
48
48
|
* Demos:
|
|
49
49
|
*
|
|
50
|
-
* - [Date Range Picker](https://
|
|
50
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
51
51
|
*
|
|
52
52
|
* API:
|
|
53
53
|
*
|
|
54
|
-
* - [StaticDateRangePicker API](https://
|
|
54
|
+
* - [StaticDateRangePicker API](https://mui.com/api/static-date-range-picker/)
|
|
55
55
|
*/
|
|
56
56
|
const StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function StaticDateRangePicker(inProps, ref) {
|
|
57
57
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -384,7 +384,7 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
|
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
387
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
387
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
388
388
|
* that you need to forward to the range start/end inputs respectively.
|
|
389
389
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
390
390
|
* @example
|
|
@@ -47,11 +47,11 @@ const valueManager = {
|
|
|
47
47
|
*
|
|
48
48
|
* Demos:
|
|
49
49
|
*
|
|
50
|
-
* - [Date Time Picker](https://
|
|
50
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
51
51
|
*
|
|
52
52
|
* API:
|
|
53
53
|
*
|
|
54
|
-
* - [StaticDateTimePicker API](https://
|
|
54
|
+
* - [StaticDateTimePicker API](https://mui.com/api/static-date-time-picker/)
|
|
55
55
|
*/
|
|
56
56
|
const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function StaticDateTimePicker(inProps, ref) {
|
|
57
57
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -386,7 +386,7 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
386
386
|
/**
|
|
387
387
|
* First view to show.
|
|
388
388
|
*/
|
|
389
|
-
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
389
|
+
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
390
390
|
|
|
391
391
|
/**
|
|
392
392
|
* Force rendering in particular orientation.
|
|
@@ -405,13 +405,13 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
405
405
|
reduceAnimations: _propTypes.default.bool,
|
|
406
406
|
|
|
407
407
|
/**
|
|
408
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
408
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
409
409
|
*/
|
|
410
410
|
renderDay: _propTypes.default.func,
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
414
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
414
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
415
415
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
416
416
|
* @example ```jsx
|
|
417
417
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -499,7 +499,7 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
499
499
|
/**
|
|
500
500
|
* Array of views to show.
|
|
501
501
|
*/
|
|
502
|
-
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
502
|
+
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
503
503
|
} : void 0;
|
|
504
504
|
var _default = StaticDateTimePicker;
|
|
505
505
|
exports.default = _default;
|
|
@@ -47,11 +47,11 @@ const valueManager = {
|
|
|
47
47
|
*
|
|
48
48
|
* Demos:
|
|
49
49
|
*
|
|
50
|
-
* - [Time Picker](https://
|
|
50
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
51
51
|
*
|
|
52
52
|
* API:
|
|
53
53
|
*
|
|
54
|
-
* - [StaticTimePicker API](https://
|
|
54
|
+
* - [StaticTimePicker API](https://mui.com/api/static-time-picker/)
|
|
55
55
|
*/
|
|
56
56
|
const StaticTimePicker = /*#__PURE__*/React.forwardRef(function StaticTimePicker(inProps, ref) {
|
|
57
57
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -291,7 +291,7 @@ process.env.NODE_ENV !== "production" ? StaticTimePicker.propTypes
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
294
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
294
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
295
295
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
296
296
|
* @example ```jsx
|
|
297
297
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -35,12 +35,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
35
35
|
*
|
|
36
36
|
* Demos:
|
|
37
37
|
*
|
|
38
|
-
* - [Pickers](https://
|
|
39
|
-
* - [Time Picker](https://
|
|
38
|
+
* - [Pickers](https://mui.com/components/pickers/)
|
|
39
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
40
40
|
*
|
|
41
41
|
* API:
|
|
42
42
|
*
|
|
43
|
-
* - [TimePicker API](https://
|
|
43
|
+
* - [TimePicker API](https://mui.com/api/time-picker/)
|
|
44
44
|
*/
|
|
45
45
|
const TimePicker = /*#__PURE__*/React.forwardRef(function TimePicker(inProps, ref) {
|
|
46
46
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -317,7 +317,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
|
317
317
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* Popper props passed down to [Popper](https://
|
|
320
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
321
321
|
*/
|
|
322
322
|
PopperProps: _propTypes.default.object,
|
|
323
323
|
|
|
@@ -328,7 +328,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
330
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
331
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
331
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
332
332
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
333
333
|
* @example ```jsx
|
|
334
334
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -388,7 +388,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
|
388
388
|
toolbarTitle: _propTypes.default.node,
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
|
-
* Custom component for popper [Transition](https://
|
|
391
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
392
392
|
*/
|
|
393
393
|
TransitionComponent: _propTypes.default.elementType,
|
|
394
394
|
|