@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
|
@@ -41,11 +41,11 @@ const TimelineRoot = styled('ul', {
|
|
|
41
41
|
*
|
|
42
42
|
* Demos:
|
|
43
43
|
*
|
|
44
|
-
* - [Timeline](https://
|
|
44
|
+
* - [Timeline](https://mui.com/components/timeline/)
|
|
45
45
|
*
|
|
46
46
|
* API:
|
|
47
47
|
*
|
|
48
|
-
* - [Timeline API](https://
|
|
48
|
+
* - [Timeline API](https://mui.com/api/timeline/)
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
@@ -115,11 +115,11 @@ process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
|
115
115
|
*
|
|
116
116
|
* Demos:
|
|
117
117
|
*
|
|
118
|
-
* - [Timeline](https://
|
|
118
|
+
* - [Timeline](https://mui.com/components/timeline/)
|
|
119
119
|
*
|
|
120
120
|
* API:
|
|
121
121
|
*
|
|
122
|
-
* - [Timeline API](https://
|
|
122
|
+
* - [Timeline API](https://mui.com/api/timeline/)
|
|
123
123
|
*/
|
|
124
124
|
|
|
125
125
|
export default Timeline;
|
|
@@ -9,7 +9,7 @@ let warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButton(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
console.warn(['MUI: The ToggleButton component was moved from the lab to the core.', '', "You should use `import { ToggleButton } from '@mui/material'`", "or `import ToggleButton from '@mui/material/ToggleButton'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ let warnedOnce = false;
|
|
|
9
9
|
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButtonGroup(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
|
-
console.warn(['
|
|
12
|
+
console.warn(['MUI: The ToggleButtonGroup component was moved from the lab to the core.', '', "You should use `import { ToggleButtonGroup } from '@mui/material'`", "or `import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -416,7 +416,7 @@ process.env.NODE_ENV !== "production" ? TreeItem.propTypes
|
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* Props applied to the transition element.
|
|
419
|
-
* By default, the element is based on this [`Transition`](
|
|
419
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition) component.
|
|
420
420
|
*/
|
|
421
421
|
TransitionProps: PropTypes.object
|
|
422
422
|
} : void 0;
|
|
@@ -93,7 +93,7 @@ const PickersYear = /*#__PURE__*/React.forwardRef(function PickersYear(props, fo
|
|
|
93
93
|
|
|
94
94
|
React.useEffect(() => {
|
|
95
95
|
if (autoFocus) {
|
|
96
|
-
// `ref.current` being `null` would be a bug in
|
|
96
|
+
// `ref.current` being `null` would be a bug in MUIu
|
|
97
97
|
ref.current.focus();
|
|
98
98
|
}
|
|
99
99
|
}, [autoFocus]);
|
|
@@ -225,11 +225,11 @@ process.env.NODE_ENV !== "production" ? YearPicker.propTypes
|
|
|
225
225
|
*
|
|
226
226
|
* Demos:
|
|
227
227
|
*
|
|
228
|
-
* - [Date Picker](https://
|
|
228
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
229
229
|
*
|
|
230
230
|
* API:
|
|
231
231
|
*
|
|
232
|
-
* - [YearPicker API](https://
|
|
232
|
+
* - [YearPicker API](https://mui.com/api/year-picker/)
|
|
233
233
|
*/
|
|
234
234
|
|
|
235
235
|
export default YearPicker;
|
package/modern/index.js
CHANGED
|
@@ -28,7 +28,7 @@ export function useMeridiemMode(date, ampm, onChange) {
|
|
|
28
28
|
const meridiemMode = getMeridiem(date, utils);
|
|
29
29
|
const handleMeridiemChange = React.useCallback(mode => {
|
|
30
30
|
const timeWithMeridiem = convertToMeridiem(date, mode, Boolean(ampm), utils);
|
|
31
|
-
onChange(timeWithMeridiem, '
|
|
31
|
+
onChange(timeWithMeridiem, 'partial');
|
|
32
32
|
}, [ampm, date, onChange, utils]);
|
|
33
33
|
return {
|
|
34
34
|
meridiemMode,
|
package/node/Alert/Alert.js
CHANGED
|
@@ -26,7 +26,7 @@ let warnedOnce = false;
|
|
|
26
26
|
|
|
27
27
|
var _default = /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].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 DeprecatedAlertTitle(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].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 DeprecatedAutocomplete(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].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 DeprecatedAvatarGroup(props, ref) {
|
|
28
28
|
if (!warnedOnce) {
|
|
29
|
-
console.warn(['
|
|
29
|
+
console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
|
|
30
30
|
warnedOnce = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -348,11 +348,11 @@ process.env.NODE_ENV !== "production" ? CalendarPicker.propTypes
|
|
|
348
348
|
*
|
|
349
349
|
* Demos:
|
|
350
350
|
*
|
|
351
|
-
* - [Date Picker](https://
|
|
351
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
352
352
|
*
|
|
353
353
|
* API:
|
|
354
354
|
*
|
|
355
|
-
* - [CalendarPicker API](https://
|
|
355
|
+
* - [CalendarPicker API](https://mui.com/api/calendar-picker/)
|
|
356
356
|
*/
|
|
357
357
|
|
|
358
358
|
var _default = CalendarPicker;
|
|
@@ -173,7 +173,6 @@ function PickersCalendarHeader(props) {
|
|
|
173
173
|
as: components.SwitchViewButton,
|
|
174
174
|
"aria-label": getViewSwitchingButtonText(currentView)
|
|
175
175
|
}, switchViewButtonProps, {
|
|
176
|
-
ownerState: (0, _extends2.default)({}, ownerState, switchViewButtonProps),
|
|
177
176
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersCalendarHeaderSwitchView, {
|
|
178
177
|
as: components.SwitchViewIcon,
|
|
179
178
|
ownerState: ownerState
|
|
@@ -103,11 +103,11 @@ const monthMap = [[0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1,
|
|
|
103
103
|
*
|
|
104
104
|
* Demos:
|
|
105
105
|
*
|
|
106
|
-
* - [Date Picker](https://
|
|
106
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
107
107
|
*
|
|
108
108
|
* API:
|
|
109
109
|
*
|
|
110
|
-
* - [CalendarPickerSkeleton API](https://
|
|
110
|
+
* - [CalendarPickerSkeleton API](https://mui.com/api/calendar-picker-skeleton/)
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
function CalendarPickerSkeleton(props) {
|
|
@@ -142,11 +142,11 @@ function CalendarPickerSkeleton(props) {
|
|
|
142
142
|
*
|
|
143
143
|
* Demos:
|
|
144
144
|
*
|
|
145
|
-
* - [Date Picker](https://
|
|
145
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
146
146
|
*
|
|
147
147
|
* API:
|
|
148
148
|
*
|
|
149
|
-
* - [CalendarPickerSkeleton API](https://
|
|
149
|
+
* - [CalendarPickerSkeleton API](https://mui.com/api/calendar-picker-skeleton/)
|
|
150
150
|
*/
|
|
151
151
|
|
|
152
152
|
|
|
@@ -97,7 +97,7 @@ const ClockAmButton = (0, _styles.styled)(_IconButton.default, {
|
|
|
97
97
|
}) => (0, _extends2.default)({
|
|
98
98
|
zIndex: 1,
|
|
99
99
|
position: 'absolute',
|
|
100
|
-
bottom: 8,
|
|
100
|
+
bottom: ownerState.ampmInClock ? 64 : 8,
|
|
101
101
|
left: 8
|
|
102
102
|
}, ownerState.meridiemMode === 'am' && {
|
|
103
103
|
backgroundColor: theme.palette.primary.main,
|
|
@@ -114,7 +114,7 @@ const ClockPmButton = (0, _styles.styled)(_IconButton.default, {
|
|
|
114
114
|
}) => (0, _extends2.default)({
|
|
115
115
|
zIndex: 1,
|
|
116
116
|
position: 'absolute',
|
|
117
|
-
bottom: 8,
|
|
117
|
+
bottom: ownerState.ampmInClock ? 64 : 8,
|
|
118
118
|
right: 8
|
|
119
119
|
}, ownerState.meridiemMode === 'pm' && {
|
|
120
120
|
backgroundColor: theme.palette.primary.main,
|
|
@@ -215,7 +215,7 @@ function Clock(props) {
|
|
|
215
215
|
|
|
216
216
|
(0, _utils.unstable_useEnhancedEffect)(() => {
|
|
217
217
|
if (autoFocus) {
|
|
218
|
-
// The ref not being resolved would be a bug in
|
|
218
|
+
// The ref not being resolved would be a bug in MUI.
|
|
219
219
|
listboxRef.current.focus();
|
|
220
220
|
}
|
|
221
221
|
}, [autoFocus]);
|
|
@@ -78,7 +78,7 @@ const defaultGetSecondsClockNumberText = seconds => `${seconds} seconds`;
|
|
|
78
78
|
*
|
|
79
79
|
* API:
|
|
80
80
|
*
|
|
81
|
-
* - [ClockPicker API](https://
|
|
81
|
+
* - [ClockPicker API](https://mui.com/api/clock-picker/)
|
|
82
82
|
*/
|
|
83
83
|
|
|
84
84
|
|
|
@@ -414,11 +414,11 @@ process.env.NODE_ENV !== "production" ? ClockPicker.propTypes
|
|
|
414
414
|
*
|
|
415
415
|
* Demos:
|
|
416
416
|
*
|
|
417
|
-
* - [Time Picker](https://
|
|
417
|
+
* - [Time Picker](https://mui.com/components/time-picker/)
|
|
418
418
|
*
|
|
419
419
|
* API:
|
|
420
420
|
*
|
|
421
|
-
* - [ClockPicker API](https://
|
|
421
|
+
* - [ClockPicker API](https://mui.com/api/clock-picker/)
|
|
422
422
|
*/
|
|
423
423
|
|
|
424
424
|
var _default = ClockPicker;
|
|
@@ -35,12 +35,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
35
35
|
*
|
|
36
36
|
* Demos:
|
|
37
37
|
*
|
|
38
|
-
* - [Date Picker](https://
|
|
39
|
-
* - [Pickers](https://
|
|
38
|
+
* - [Date Picker](https://mui.com/components/date-picker/)
|
|
39
|
+
* - [Pickers](https://mui.com/components/pickers/)
|
|
40
40
|
*
|
|
41
41
|
* API:
|
|
42
42
|
*
|
|
43
|
-
* - [DatePicker API](https://
|
|
43
|
+
* - [DatePicker API](https://mui.com/api/date-picker/)
|
|
44
44
|
*/
|
|
45
45
|
const DatePicker = /*#__PURE__*/React.forwardRef(function DatePicker(inProps, ref) {
|
|
46
46
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -355,7 +355,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
355
355
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
|
-
* Popper props passed down to [Popper](https://
|
|
358
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
359
359
|
*/
|
|
360
360
|
PopperProps: _propTypes.default.object,
|
|
361
361
|
|
|
@@ -371,13 +371,13 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
371
371
|
reduceAnimations: _propTypes.default.bool,
|
|
372
372
|
|
|
373
373
|
/**
|
|
374
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
374
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
375
375
|
*/
|
|
376
376
|
renderDay: _propTypes.default.func,
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
379
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
380
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
380
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
381
381
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
382
382
|
* @example ```jsx
|
|
383
383
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -459,7 +459,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
|
|
|
459
459
|
toolbarTitle: _propTypes.default.node,
|
|
460
460
|
|
|
461
461
|
/**
|
|
462
|
-
* Custom component for popper [Transition](https://
|
|
462
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
463
463
|
*/
|
|
464
464
|
TransitionComponent: _propTypes.default.elementType,
|
|
465
465
|
|
|
@@ -51,11 +51,11 @@ const rangePickerValueManager = {
|
|
|
51
51
|
*
|
|
52
52
|
* Demos:
|
|
53
53
|
*
|
|
54
|
-
* - [Date Range Picker](https://
|
|
54
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
55
55
|
*
|
|
56
56
|
* API:
|
|
57
57
|
*
|
|
58
|
-
* - [DateRangePicker API](https://
|
|
58
|
+
* - [DateRangePicker API](https://mui.com/api/date-range-picker/)
|
|
59
59
|
*/
|
|
60
60
|
const DateRangePicker = /*#__PURE__*/React.forwardRef(function DateRangePicker(inProps, ref) {
|
|
61
61
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -408,7 +408,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
408
408
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
409
409
|
|
|
410
410
|
/**
|
|
411
|
-
* Popper props passed down to [Popper](https://
|
|
411
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
412
412
|
*/
|
|
413
413
|
PopperProps: _propTypes.default.object,
|
|
414
414
|
|
|
@@ -431,7 +431,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
434
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
434
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
435
435
|
* that you need to forward to the range start/end inputs respectively.
|
|
436
436
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
437
437
|
* @example
|
|
@@ -528,7 +528,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
|
|
|
528
528
|
toolbarTitle: _propTypes.default.node,
|
|
529
529
|
|
|
530
530
|
/**
|
|
531
|
-
* Custom component for popper [Transition](https://
|
|
531
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
532
532
|
*/
|
|
533
533
|
TransitionComponent: _propTypes.default.elementType,
|
|
534
534
|
|
|
@@ -259,11 +259,11 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDay.propTypes
|
|
|
259
259
|
*
|
|
260
260
|
* Demos:
|
|
261
261
|
*
|
|
262
|
-
* - [Date Range Picker](https://
|
|
262
|
+
* - [Date Range Picker](https://mui.com/components/date-range-picker/)
|
|
263
263
|
*
|
|
264
264
|
* API:
|
|
265
265
|
*
|
|
266
|
-
* - [DateRangePickerDay API](https://
|
|
266
|
+
* - [DateRangePickerDay API](https://mui.com/api/date-range-picker-day/)
|
|
267
267
|
*/
|
|
268
268
|
|
|
269
269
|
var _default = /*#__PURE__*/React.memo(DateRangePickerDay, (prevProps, nextProps) => {
|
|
@@ -35,12 +35,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
35
35
|
*
|
|
36
36
|
* Demos:
|
|
37
37
|
*
|
|
38
|
-
* - [Date Time Picker](https://
|
|
39
|
-
* - [Pickers](https://
|
|
38
|
+
* - [Date Time Picker](https://mui.com/components/date-time-picker/)
|
|
39
|
+
* - [Pickers](https://mui.com/components/pickers/)
|
|
40
40
|
*
|
|
41
41
|
* API:
|
|
42
42
|
*
|
|
43
|
-
* - [DateTimePicker API](https://
|
|
43
|
+
* - [DateTimePicker API](https://mui.com/api/date-time-picker/)
|
|
44
44
|
*/
|
|
45
45
|
const DateTimePicker = /*#__PURE__*/React.forwardRef(function DateTimePicker(inProps, ref) {
|
|
46
46
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -416,7 +416,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
416
416
|
/**
|
|
417
417
|
* First view to show.
|
|
418
418
|
*/
|
|
419
|
-
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']),
|
|
419
|
+
openTo: _propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']),
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
422
|
* Force rendering in particular orientation.
|
|
@@ -424,7 +424,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
424
424
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
425
425
|
|
|
426
426
|
/**
|
|
427
|
-
* Popper props passed down to [Popper](https://
|
|
427
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
428
428
|
*/
|
|
429
429
|
PopperProps: _propTypes.default.object,
|
|
430
430
|
|
|
@@ -440,13 +440,13 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
440
440
|
reduceAnimations: _propTypes.default.bool,
|
|
441
441
|
|
|
442
442
|
/**
|
|
443
|
-
* Custom renderer for day. Check the [PickersDay](https://
|
|
443
|
+
* Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
|
|
444
444
|
*/
|
|
445
445
|
renderDay: _propTypes.default.func,
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
448
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
449
|
-
* The `props` argument of this render prop contains props of [TextField](https://
|
|
449
|
+
* The `props` argument of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api) that you need to forward.
|
|
450
450
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
451
451
|
* @example ```jsx
|
|
452
452
|
* renderInput={props => <TextField {...props} />}
|
|
@@ -539,7 +539,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
539
539
|
toolbarTitle: _propTypes.default.node,
|
|
540
540
|
|
|
541
541
|
/**
|
|
542
|
-
* Custom component for popper [Transition](https://
|
|
542
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
543
543
|
*/
|
|
544
544
|
TransitionComponent: _propTypes.default.elementType,
|
|
545
545
|
|
|
@@ -551,7 +551,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
|
|
|
551
551
|
/**
|
|
552
552
|
* Array of views to show.
|
|
553
553
|
*/
|
|
554
|
-
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'year']).isRequired)
|
|
554
|
+
views: _propTypes.default.arrayOf(_propTypes.default.oneOf(['day', 'hours', 'minutes', 'month', 'seconds', 'year']).isRequired)
|
|
555
555
|
} : void 0;
|
|
556
556
|
var _default = DateTimePicker;
|
|
557
557
|
exports.default = _default;
|
|
@@ -31,9 +31,9 @@ var _WrapperVariantContext = require("../internal/pickers/wrappers/WrapperVarian
|
|
|
31
31
|
|
|
32
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
33
|
|
|
34
|
-
var _DateTimePickerToolba;
|
|
34
|
+
var _DateTimePickerToolba, _DateTimePickerToolba2;
|
|
35
35
|
|
|
36
|
-
const _excluded = ["ampm", "date", "dateRangeIcon", "hideTabs", "isMobileKeyboardViewOpen", "onChange", "openView", "setOpenView", "timeIcon", "toggleMobileKeyboardView", "toolbarFormat", "toolbarPlaceholder", "toolbarTitle"];
|
|
36
|
+
const _excluded = ["ampm", "date", "dateRangeIcon", "hideTabs", "isMobileKeyboardViewOpen", "onChange", "openView", "setOpenView", "timeIcon", "toggleMobileKeyboardView", "toolbarFormat", "toolbarPlaceholder", "toolbarTitle", "views"];
|
|
37
37
|
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
39
|
|
|
@@ -87,7 +87,8 @@ const DateTimePickerToolbar = props => {
|
|
|
87
87
|
toggleMobileKeyboardView,
|
|
88
88
|
toolbarFormat,
|
|
89
89
|
toolbarPlaceholder = '––',
|
|
90
|
-
toolbarTitle = 'Select date & time'
|
|
90
|
+
toolbarTitle = 'Select date & time',
|
|
91
|
+
views
|
|
91
92
|
} = props,
|
|
92
93
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
93
94
|
const utils = (0, _useUtils.useUtils)();
|
|
@@ -116,13 +117,13 @@ const DateTimePickerToolbar = props => {
|
|
|
116
117
|
}, other, {
|
|
117
118
|
isLandscape: false,
|
|
118
119
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(DateTimePickerToolbarDateContainer, {
|
|
119
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
120
|
+
children: [views.includes('year') && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
120
121
|
tabIndex: -1,
|
|
121
122
|
variant: "subtitle1",
|
|
122
123
|
onClick: () => setOpenView('year'),
|
|
123
124
|
selected: openView === 'year',
|
|
124
125
|
value: date ? utils.format(date, 'year') : '–'
|
|
125
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
126
|
+
}), views.includes('day') && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
126
127
|
tabIndex: -1,
|
|
127
128
|
variant: "h4",
|
|
128
129
|
onClick: () => setOpenView('day'),
|
|
@@ -130,19 +131,31 @@ const DateTimePickerToolbar = props => {
|
|
|
130
131
|
value: dateText
|
|
131
132
|
})]
|
|
132
133
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(DateTimePickerToolbarTimeContainer, {
|
|
133
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
134
|
+
children: [views.includes('hours') && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
134
135
|
variant: "h3",
|
|
135
136
|
onClick: () => setOpenView('hours'),
|
|
136
137
|
selected: openView === 'hours',
|
|
137
138
|
value: date ? formatHours(date) : '--'
|
|
138
|
-
}),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
}), views.includes('minutes') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
140
|
+
children: [_DateTimePickerToolba || (_DateTimePickerToolba = /*#__PURE__*/(0, _jsxRuntime.jsx)(DateTimePickerToolbarSeparator, {
|
|
141
|
+
variant: "h3",
|
|
142
|
+
value: ":"
|
|
143
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
144
|
+
variant: "h3",
|
|
145
|
+
onClick: () => setOpenView('minutes'),
|
|
146
|
+
selected: openView === 'minutes',
|
|
147
|
+
value: date ? utils.format(date, 'minutes') : '--'
|
|
148
|
+
})]
|
|
149
|
+
}), views.includes('seconds') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
150
|
+
children: [_DateTimePickerToolba2 || (_DateTimePickerToolba2 = /*#__PURE__*/(0, _jsxRuntime.jsx)(DateTimePickerToolbarSeparator, {
|
|
151
|
+
variant: "h3",
|
|
152
|
+
value: ":"
|
|
153
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersToolbarButton.default, {
|
|
154
|
+
variant: "h3",
|
|
155
|
+
onClick: () => setOpenView('seconds'),
|
|
156
|
+
selected: openView === 'seconds',
|
|
157
|
+
value: date ? utils.format(date, 'seconds') : '--'
|
|
158
|
+
})]
|
|
146
159
|
})]
|
|
147
160
|
})]
|
|
148
161
|
})), showTabs && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateTimePickerTabs.default, {
|
|
@@ -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
|
-
* - [DesktopDatePicker API](https://
|
|
56
|
+
* - [DesktopDatePicker API](https://mui.com/api/desktop-date-picker/)
|
|
57
57
|
*/
|
|
58
58
|
const DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePicker(inProps, ref) {
|
|
59
59
|
// TODO: TDate needs to be instantiated at every usage.
|
|
@@ -330,7 +330,7 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
330
330
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
|
-
* Popper props passed down to [Popper](https://
|
|
333
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
334
334
|
*/
|
|
335
335
|
PopperProps: _propTypes.default.object,
|
|
336
336
|
|
|
@@ -346,13 +346,13 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
346
346
|
reduceAnimations: _propTypes.default.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.default.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} />}
|
|
@@ -422,7 +422,7 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
|
|
|
422
422
|
toolbarTitle: _propTypes.default.node,
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
|
-
* Custom component for popper [Transition](https://
|
|
425
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
426
426
|
*/
|
|
427
427
|
TransitionComponent: _propTypes.default.elementType,
|
|
428
428
|
|
|
@@ -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
|
-
* - [DesktopDateRangePicker API](https://
|
|
57
|
+
* - [DesktopDateRangePicker API](https://mui.com/api/desktop-date-range-picker/)
|
|
58
58
|
*/
|
|
59
59
|
const DesktopDateRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDateRangePicker(inProps, ref) {
|
|
60
60
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -374,7 +374,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
374
374
|
orientation: _propTypes.default.oneOf(['landscape', 'portrait']),
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
|
-
* Popper props passed down to [Popper](https://
|
|
377
|
+
* Popper props passed down to [Popper](https://mui.com/api/popper/) component.
|
|
378
378
|
*/
|
|
379
379
|
PopperProps: _propTypes.default.object,
|
|
380
380
|
|
|
@@ -397,7 +397,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
399
|
* The `renderInput` prop allows you to customize the rendered input.
|
|
400
|
-
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://
|
|
400
|
+
* The `startProps` and `endProps` arguments of this render prop contains props of [TextField](https://mui.com/api/text-field/#textfield-api),
|
|
401
401
|
* that you need to forward to the range start/end inputs respectively.
|
|
402
402
|
* Pay specific attention to the `ref` and `inputProps` keys.
|
|
403
403
|
* @example
|
|
@@ -482,7 +482,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
|
|
|
482
482
|
toolbarTitle: _propTypes.default.node,
|
|
483
483
|
|
|
484
484
|
/**
|
|
485
|
-
* Custom component for popper [Transition](https://
|
|
485
|
+
* Custom component for popper [Transition](https://mui.com/components/transitions/#transitioncomponent-prop).
|
|
486
486
|
*/
|
|
487
487
|
TransitionComponent: _propTypes.default.elementType,
|
|
488
488
|
|