@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
|
@@ -23,11 +23,11 @@ var valueManager = {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Date Time Picker](https://
|
|
26
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [DesktopDateTimePicker API](https://
|
|
30
|
+
* - [DesktopDateTimePicker API](https://mui.com/api/desktop-date-time-picker/)
|
|
31
31
|
*/
|
|
32
32
|
var DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DesktopDateTimePicker(inProps, ref) {
|
|
33
33
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -369,7 +369,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
369
369
|
/**
|
|
370
370
|
* First view to show.
|
|
371
371
|
*/
|
|
372
|
-
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
372
|
+
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
375
|
* Force rendering in particular orientation.
|
|
@@ -377,7 +377,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
377
377
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
|
-
* Popper props passed down to [Popper](https://
|
|
380
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
381
381
|
*/
|
|
382
382
|
PopperProps: PropTypes.object,
|
|
383
383
|
|
|
@@ -393,13 +393,13 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
393
393
|
reduceAnimations: PropTypes.bool,
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
396
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
397
397
|
*/
|
|
398
398
|
renderDay: PropTypes.func,
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
401
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
402
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
402
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
403
403
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
404
404
|
* @example ```jsx
|
|
405
405
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -480,7 +480,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
480
480
|
toolbarTitle: PropTypes.node,
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
|
-
* Custom component for popper [Transition](https://
|
|
483
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
484
484
|
*/
|
|
485
485
|
TransitionComponent: PropTypes.elementType,
|
|
486
486
|
|
|
@@ -492,6 +492,6 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
|
|
|
492
492
|
/**
|
|
493
493
|
* Array of views to show.
|
|
494
494
|
*/
|
|
495
|
-
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
495
|
+
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
496
496
|
} : void 0;
|
|
497
497
|
export default DesktopDateTimePicker;
|
|
@@ -23,11 +23,11 @@ var valueManager = {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Time Picker](https://
|
|
26
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [DesktopTimePicker API](https://
|
|
30
|
+
* - [DesktopTimePicker API](https://mui.com/api/desktop-time-picker/)
|
|
31
31
|
*/
|
|
32
32
|
var DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DesktopTimePicker(inProps, ref) {
|
|
33
33
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -270,7 +270,7 @@ process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
|
270
270
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
|
-
* Popper props passed down to [Popper](https://
|
|
273
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
274
274
|
*/
|
|
275
275
|
PopperProps: PropTypes.object,
|
|
276
276
|
|
|
@@ -281,7 +281,7 @@ process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
283
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
284
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
284
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
285
285
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
286
286
|
* @example ```jsx
|
|
287
287
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -329,7 +329,7 @@ process.env.NODE_ENV !== "production" ? DesktopTimePicker.propTypes
|
|
|
329
329
|
toolbarTitle: PropTypes.node,
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
|
-
* Custom component for popper [Transition](https://
|
|
332
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
333
333
|
*/
|
|
334
334
|
TransitionComponent: PropTypes.elementType,
|
|
335
335
|
|
|
@@ -167,11 +167,11 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
167
167
|
*/
|
|
168
168
|
loadingPosition: chainPropTypes(PropTypes.oneOf(['start', 'end', 'center']), function (props) {
|
|
169
169
|
if (props.loadingPosition === 'start' && !props.startIcon) {
|
|
170
|
-
return new Error("
|
|
170
|
+
return new Error("MUI: The loadingPosition=\"start\" should be used in combination with startIcon.");
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
if (props.loadingPosition === 'end' && !props.endIcon) {
|
|
174
|
-
return new Error("
|
|
174
|
+
return new Error("MUI: The loadingPosition=\"end\" should be used in combination with endIcon.");
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
return null;
|
|
@@ -108,7 +108,7 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
108
108
|
// scroller always appears when masonry's height goes beyond 2,000px on Chrome
|
|
109
109
|
var handleScroll = function handleScroll() {
|
|
110
110
|
if (masonryRef.current.clientHeight === 1998 && !didWarn) {
|
|
111
|
-
console.warn(['
|
|
111
|
+
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
|
|
112
112
|
|
|
113
113
|
didWarn = true;
|
|
114
114
|
}
|
|
@@ -10,18 +10,9 @@ import { unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
|
10
10
|
import { unstable_composeClasses as composeClasses } from '@mui/core';
|
|
11
11
|
import { styled, useThemeProps, useTheme } from '@mui/material/styles';
|
|
12
12
|
import { getMasonryItemUtilityClass } from './masonryItemClasses';
|
|
13
|
-
import MasonryContext from '../Masonry/MasonryContext';
|
|
14
|
-
|
|
13
|
+
import MasonryContext from '../Masonry/MasonryContext';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
15
|
|
|
17
|
-
var MockResizeObserver = function MockResizeObserver() {
|
|
18
|
-
return {
|
|
19
|
-
observe: function observe() {},
|
|
20
|
-
unobserve: function unobserve() {},
|
|
21
|
-
disconnect: function disconnect() {}
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
|
|
25
16
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
26
17
|
var classes = ownerState.classes;
|
|
27
18
|
var slots = {
|
|
@@ -39,7 +30,7 @@ export var style = function style(_ref) {
|
|
|
39
30
|
// all contents should have a width of 100%
|
|
40
31
|
width: '100%',
|
|
41
32
|
boxSizing: 'inherit'
|
|
42
|
-
}, ownerState.
|
|
33
|
+
}, ownerState.hasDefaultHeight && {
|
|
43
34
|
height: '100%'
|
|
44
35
|
}),
|
|
45
36
|
visibility: ownerState.height ? 'visible' : 'hidden',
|
|
@@ -105,45 +96,42 @@ var MasonryItem = /*#__PURE__*/React.forwardRef(function MasonryItem(inProps, re
|
|
|
105
96
|
defaultHeight = props.defaultHeight,
|
|
106
97
|
other = _objectWithoutProperties(props, ["children", "className", "component", "columnSpan", "defaultHeight"]);
|
|
107
98
|
|
|
108
|
-
var
|
|
99
|
+
var hasDefaultHeight = defaultHeight !== undefined;
|
|
109
100
|
|
|
110
101
|
var _React$useState = React.useState(defaultHeight),
|
|
111
102
|
height = _React$useState[0],
|
|
112
103
|
setHeight = _React$useState[1];
|
|
113
104
|
|
|
114
105
|
var ownerState = _extends({}, props, {
|
|
115
|
-
isSSR: isSSR,
|
|
116
106
|
spacing: spacing,
|
|
107
|
+
hasDefaultHeight: hasDefaultHeight,
|
|
117
108
|
columnSpan: columnSpan,
|
|
118
109
|
height: height < 0 ? 0 : height // MasonryItems to which negative or zero height is passed will be hidden
|
|
119
110
|
|
|
120
111
|
});
|
|
121
112
|
|
|
122
113
|
var classes = useUtilityClasses(ownerState);
|
|
123
|
-
var resizeObserver = React.useRef(null);
|
|
124
114
|
React.useEffect(function () {
|
|
125
|
-
//
|
|
126
|
-
if (
|
|
127
|
-
return
|
|
115
|
+
// Do not create a resize observer in case of provided height masonry
|
|
116
|
+
if (hasDefaultHeight) {
|
|
117
|
+
return undefined;
|
|
128
118
|
}
|
|
129
119
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var _ref3 = _slicedToArray(_ref2, 1),
|
|
133
|
-
item = _ref3[0];
|
|
134
|
-
|
|
135
|
-
setHeight(item.contentRect.height);
|
|
136
|
-
});
|
|
137
|
-
} catch (err) {
|
|
138
|
-
resizeObserver.current = MockResizeObserver();
|
|
120
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
121
|
+
return undefined;
|
|
139
122
|
}
|
|
140
123
|
|
|
141
|
-
var
|
|
142
|
-
|
|
124
|
+
var resizeObserver = new ResizeObserver(function (_ref2) {
|
|
125
|
+
var _ref3 = _slicedToArray(_ref2, 1),
|
|
126
|
+
item = _ref3[0];
|
|
127
|
+
|
|
128
|
+
setHeight(item.contentRect.height);
|
|
129
|
+
});
|
|
130
|
+
resizeObserver.observe(masonryItemRef.current.firstChild);
|
|
143
131
|
return function () {
|
|
144
|
-
resizeObserver.
|
|
132
|
+
resizeObserver.disconnect();
|
|
145
133
|
};
|
|
146
|
-
}, [
|
|
134
|
+
}, [hasDefaultHeight]);
|
|
147
135
|
var handleRef = useForkRef(ref, masonryItemRef);
|
|
148
136
|
var theme = useTheme();
|
|
149
137
|
var styleProp = {};
|
|
@@ -23,11 +23,11 @@ var valueManager = {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Date Picker](https://
|
|
26
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [MobileDatePicker API](https://
|
|
30
|
+
* - [MobileDatePicker API](https://mui.com/api/mobile-date-picker/)
|
|
31
31
|
*/
|
|
32
32
|
var MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker(inProps, ref) {
|
|
33
33
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -346,13 +346,13 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
|
|
|
346
346
|
reduceAnimations: PropTypes.bool,
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
349
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
350
350
|
*/
|
|
351
351
|
renderDay: PropTypes.func,
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
354
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
355
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
355
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
356
356
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
357
357
|
* @example ```jsx
|
|
358
358
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -24,11 +24,11 @@ var rangePickerValueManager = {
|
|
|
24
24
|
*
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
27
|
-
* - [Date Range Picker](https://
|
|
27
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
28
28
|
*
|
|
29
29
|
* API:
|
|
30
30
|
*
|
|
31
|
-
* - [MobileDateRangePicker API](https://
|
|
31
|
+
* - [MobileDateRangePicker API](https://mui.com/api/mobile-date-range-picker/)
|
|
32
32
|
*/
|
|
33
33
|
var MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {
|
|
34
34
|
var props = useThemeProps({
|
|
@@ -403,7 +403,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
|
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
406
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
406
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
407
407
|
* that you need to forward to the range start/end inputs respectively.
|
|
408
408
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
409
409
|
* @example
|
|
@@ -23,11 +23,11 @@ var valueManager = {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Date Time Picker](https://
|
|
26
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [MobileDateTimePicker API](https://
|
|
30
|
+
* - [MobileDateTimePicker API](https://mui.com/api/mobile-date-time-picker/)
|
|
31
31
|
*/
|
|
32
32
|
var MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function MobileDateTimePicker(inProps, ref) {
|
|
33
33
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -396,7 +396,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
396
396
|
/**
|
|
397
397
|
* First view to show.
|
|
398
398
|
*/
|
|
399
|
-
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
399
|
+
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
402
|
* Force rendering in particular orientation.
|
|
@@ -415,13 +415,13 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
415
415
|
reduceAnimations: PropTypes.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.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} />}
|
|
@@ -521,6 +521,6 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
|
|
|
521
521
|
/**
|
|
522
522
|
* Array of views to show.
|
|
523
523
|
*/
|
|
524
|
-
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
524
|
+
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
525
525
|
} : void 0;
|
|
526
526
|
export default MobileDateTimePicker;
|
|
@@ -23,11 +23,11 @@ var valueManager = {
|
|
|
23
23
|
*
|
|
24
24
|
* Demos:
|
|
25
25
|
*
|
|
26
|
-
* - [Time Picker](https://
|
|
26
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
27
27
|
*
|
|
28
28
|
* API:
|
|
29
29
|
*
|
|
30
|
-
* - [MobileTimePicker API](https://
|
|
30
|
+
* - [MobileTimePicker API](https://mui.com/api/mobile-time-picker/)
|
|
31
31
|
*/
|
|
32
32
|
var MobileTimePicker = /*#__PURE__*/React.forwardRef(function MobileTimePicker(inProps, ref) {
|
|
33
33
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -303,7 +303,7 @@ process.env.NODE_ENV !== "production" ? MobileTimePicker.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} />}
|
|
@@ -152,11 +152,11 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
|
|
|
152
152
|
*
|
|
153
153
|
* Demos:
|
|
154
154
|
*
|
|
155
|
-
* - [Date Picker](https://
|
|
155
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
156
156
|
*
|
|
157
157
|
* API:
|
|
158
158
|
*
|
|
159
|
-
* - [MonthPicker API](https://
|
|
159
|
+
* - [MonthPicker API](https://mui.com/api/month-picker/)
|
|
160
160
|
*/
|
|
161
161
|
|
|
162
162
|
export default MonthPicker;
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -158,7 +158,7 @@ var PickersDay = /*#__PURE__*/React.forwardRef(function PickersDay(inProps, forw
|
|
|
158
158
|
|
|
159
159
|
useEnhancedEffect(function () {
|
|
160
160
|
if (autoFocus && !disabled && !isAnimating && !outsideCurrentMonth) {
|
|
161
|
-
// ref.current being null would be a bug in
|
|
161
|
+
// ref.current being null would be a bug in MUI
|
|
162
162
|
ref.current.focus();
|
|
163
163
|
}
|
|
164
164
|
}, [autoFocus, disabled, isAnimating, outsideCurrentMonth]);
|
|
@@ -389,11 +389,11 @@ process.env.NODE_ENV !== "production" ? PickersDay.propTypes
|
|
|
389
389
|
*
|
|
390
390
|
* Demos:
|
|
391
391
|
*
|
|
392
|
-
* - [Date Picker](https://
|
|
392
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
393
393
|
*
|
|
394
394
|
* API:
|
|
395
395
|
*
|
|
396
|
-
* - [PickersDay API](https://
|
|
396
|
+
* - [PickersDay API](https://mui.com/api/pickers-day/)
|
|
397
397
|
*/
|
|
398
398
|
|
|
399
399
|
export default /*#__PURE__*/React.memo(PickersDay, areDayPropsEqual);
|
package/legacy/Rating/Rating.js
CHANGED
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -22,11 +22,11 @@ var valueManager = {
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Date Picker](https://
|
|
25
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [StaticDatePicker API](https://
|
|
29
|
+
* - [StaticDatePicker API](https://mui.com/api/static-date-picker/)
|
|
30
30
|
*/
|
|
31
31
|
var StaticDatePicker = /*#__PURE__*/React.forwardRef(function StaticDatePicker(inProps, ref) {
|
|
32
32
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -316,13 +316,13 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
|
|
|
316
316
|
reduceAnimations: PropTypes.bool,
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
319
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
320
320
|
*/
|
|
321
321
|
renderDay: PropTypes.func,
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
324
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
325
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
325
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
326
326
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
327
327
|
* @example ```jsx
|
|
328
328
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -22,11 +22,11 @@ var rangePickerValueManager = {
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Date Range Picker](https://
|
|
25
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [StaticDateRangePicker API](https://
|
|
29
|
+
* - [StaticDateRangePicker API](https://mui.com/api/static-date-range-picker/)
|
|
30
30
|
*/
|
|
31
31
|
var StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function StaticDateRangePicker(inProps, ref) {
|
|
32
32
|
var props = useThemeProps({
|
|
@@ -372,7 +372,7 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
|
|
|
372
372
|
|
|
373
373
|
/**
|
|
374
374
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
375
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
375
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
376
376
|
* that you need to forward to the range start/end inputs respectively.
|
|
377
377
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
378
378
|
* @example
|
|
@@ -22,11 +22,11 @@ var valueManager = {
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Date Time Picker](https://
|
|
25
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [StaticDateTimePicker API](https://
|
|
29
|
+
* - [StaticDateTimePicker API](https://mui.com/api/static-date-time-picker/)
|
|
30
30
|
*/
|
|
31
31
|
var StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function StaticDateTimePicker(inProps, ref) {
|
|
32
32
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -366,7 +366,7 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
366
366
|
/**
|
|
367
367
|
* First view to show.
|
|
368
368
|
*/
|
|
369
|
-
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
369
|
+
openTo: PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
370
370
|
|
|
371
371
|
/**
|
|
372
372
|
* Force rendering in particular orientation.
|
|
@@ -385,13 +385,13 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
385
385
|
reduceAnimations: PropTypes.bool,
|
|
386
386
|
|
|
387
387
|
/**
|
|
388
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
388
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
389
389
|
*/
|
|
390
390
|
renderDay: PropTypes.func,
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
394
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
394
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
395
395
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
396
396
|
* @example ```jsx
|
|
397
397
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -479,6 +479,6 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
|
|
|
479
479
|
/**
|
|
480
480
|
* Array of views to show.
|
|
481
481
|
*/
|
|
482
|
-
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
482
|
+
views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
483
483
|
} : void 0;
|
|
484
484
|
export default StaticDateTimePicker;
|
|
@@ -22,11 +22,11 @@ var valueManager = {
|
|
|
22
22
|
*
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
25
|
-
* - [Time Picker](https://
|
|
25
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
26
26
|
*
|
|
27
27
|
* API:
|
|
28
28
|
*
|
|
29
|
-
* - [StaticTimePicker API](https://
|
|
29
|
+
* - [StaticTimePicker API](https://mui.com/api/static-time-picker/)
|
|
30
30
|
*/
|
|
31
31
|
var StaticTimePicker = /*#__PURE__*/React.forwardRef(function StaticTimePicker(inProps, ref) {
|
|
32
32
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -271,7 +271,7 @@ process.env.NODE_ENV !== "production" ? StaticTimePicker.propTypes
|
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
274
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
274
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
275
275
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
276
276
|
* @example ```jsx
|
|
277
277
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -12,12 +12,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
*
|
|
13
13
|
* Demos:
|
|
14
14
|
*
|
|
15
|
-
* - [Pickers](https://
|
|
16
|
-
* - [Time Picker](https://
|
|
15
|
+
* - [Pickers](https://mui.com/components/pickers/)
|
|
16
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
17
17
|
*
|
|
18
18
|
* API:
|
|
19
19
|
*
|
|
20
|
-
* - [TimePicker API](https://
|
|
20
|
+
* - [TimePicker API](https://mui.com/api/time-picker/)
|
|
21
21
|
*/
|
|
22
22
|
var TimePicker = /*#__PURE__*/React.forwardRef(function TimePicker(inProps, ref) {
|
|
23
23
|
var props = useThemeProps({
|
|
@@ -295,7 +295,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
|
295
295
|
orientation: PropTypes.oneOf(['landscape', 'portrait']),
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
* Popper props passed down to [Popper](https://
|
|
298
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
299
299
|
*/
|
|
300
300
|
PopperProps: PropTypes.object,
|
|
301
301
|
|
|
@@ -306,7 +306,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
308
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
309
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
309
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
310
310
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
311
311
|
* @example ```jsx
|
|
312
312
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -366,7 +366,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes
|
|
|
366
366
|
toolbarTitle: PropTypes.node,
|
|
367
367
|
|
|
368
368
|
/**
|
|
369
|
-
* Custom component for popper [Transition](https://
|
|
369
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
370
370
|
*/
|
|
371
371
|
TransitionComponent: PropTypes.elementType,
|
|
372
372
|
|