@mui/lab 5.0.0-alpha.106 → 5.0.0-alpha.108
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/AdapterDateFns/AdapterDateFns.js +2 -4
- package/AdapterDayjs/AdapterDayjs.js +2 -4
- package/AdapterLuxon/AdapterLuxon.js +2 -4
- package/AdapterMoment/AdapterMoment.js +2 -4
- package/Alert/Alert.js +1 -2
- package/AlertTitle/AlertTitle.js +1 -2
- package/Autocomplete/Autocomplete.js +1 -2
- package/AvatarGroup/AvatarGroup.js +1 -2
- package/CHANGELOG.md +127 -1
- package/CalendarPicker/CalendarPicker.js +0 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/ClockPicker/ClockPicker.js +0 -2
- package/DatePicker/DatePicker.js +0 -2
- package/DateRangePicker/DateRangePicker.js +0 -2
- package/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/DateTimePicker/DateTimePicker.js +0 -2
- package/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/LoadingButton/LoadingButton.js +13 -34
- package/LocalizationProvider/LocalizationProvider.js +0 -2
- package/Masonry/Masonry.js +27 -68
- package/MobileDatePicker/MobileDatePicker.js +0 -2
- package/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/MobileTimePicker/MobileTimePicker.js +0 -2
- package/MonthPicker/MonthPicker.js +0 -2
- package/Pagination/Pagination.js +1 -2
- package/PaginationItem/PaginationItem.js +1 -2
- package/PickersDay/PickersDay.js +0 -2
- package/Rating/Rating.js +1 -2
- package/Skeleton/Skeleton.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/StaticDatePicker/StaticDatePicker.js +0 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/StaticTimePicker/StaticTimePicker.js +0 -2
- package/TabContext/TabContext.js +3 -14
- package/TabList/TabList.js +4 -11
- package/TabPanel/TabPanel.js +6 -20
- package/TimePicker/TimePicker.js +0 -2
- package/Timeline/Timeline.js +9 -20
- package/Timeline/TimelineContext.js +1 -3
- package/TimelineConnector/TimelineConnector.js +4 -14
- package/TimelineContent/TimelineContent.js +4 -16
- package/TimelineDot/TimelineDot.js +8 -25
- package/TimelineItem/TimelineItem.js +5 -18
- package/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/TimelineSeparator/TimelineSeparator.js +4 -14
- package/ToggleButton/ToggleButton.js +1 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/TreeItem/TreeItem.js +19 -58
- package/TreeItem/TreeItemContent.js +12 -28
- package/TreeItem/useTreeItem.js +2 -8
- package/TreeView/TreeView.js +51 -195
- package/TreeView/TreeViewContext.js +1 -3
- package/TreeView/descendants.js +19 -31
- package/YearPicker/YearPicker.js +1 -3
- package/index.js +3 -2
- package/internal/svg-icons/ArrowDropDown.js +1 -1
- package/internal/svg-icons/ArrowLeft.js +1 -1
- package/internal/svg-icons/ArrowRight.js +1 -1
- package/internal/svg-icons/Calendar.js +1 -1
- package/internal/svg-icons/Clock.js +1 -1
- package/internal/svg-icons/DateRange.js +1 -1
- package/internal/svg-icons/Pen.js +1 -1
- package/internal/svg-icons/Time.js +1 -1
- package/legacy/AdapterDateFns/AdapterDateFns.js +2 -5
- package/legacy/AdapterDayjs/AdapterDayjs.js +2 -5
- package/legacy/AdapterLuxon/AdapterLuxon.js +2 -5
- package/legacy/AdapterMoment/AdapterMoment.js +2 -5
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/AlertTitle/AlertTitle.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +1 -2
- package/legacy/AvatarGroup/AvatarGroup.js +1 -2
- package/legacy/CalendarPicker/CalendarPicker.js +0 -2
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/legacy/ClockPicker/ClockPicker.js +0 -2
- package/legacy/DatePicker/DatePicker.js +0 -2
- package/legacy/DateRangePicker/DateRangePicker.js +0 -2
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/legacy/DateTimePicker/DateTimePicker.js +0 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/legacy/LoadingButton/LoadingButton.js +19 -40
- package/legacy/LocalizationProvider/LocalizationProvider.js +0 -2
- package/legacy/Masonry/Masonry.js +33 -77
- package/legacy/MobileDatePicker/MobileDatePicker.js +0 -2
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/legacy/MobileTimePicker/MobileTimePicker.js +0 -2
- package/legacy/MonthPicker/MonthPicker.js +0 -2
- package/legacy/Pagination/Pagination.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/PickersDay/PickersDay.js +0 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Skeleton/Skeleton.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/StaticDatePicker/StaticDatePicker.js +0 -2
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/legacy/StaticTimePicker/StaticTimePicker.js +0 -2
- package/legacy/TabContext/TabContext.js +6 -18
- package/legacy/TabList/TabList.js +2 -9
- package/legacy/TabPanel/TabPanel.js +4 -18
- package/legacy/TimePicker/TimePicker.js +0 -2
- package/legacy/Timeline/Timeline.js +9 -20
- package/legacy/Timeline/TimelineContext.js +1 -3
- package/legacy/TimelineConnector/TimelineConnector.js +2 -12
- package/legacy/TimelineContent/TimelineContent.js +4 -16
- package/legacy/TimelineDot/TimelineDot.js +11 -28
- package/legacy/TimelineItem/TimelineItem.js +6 -21
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/legacy/TimelineSeparator/TimelineSeparator.js +2 -12
- package/legacy/ToggleButton/ToggleButton.js +1 -2
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/legacy/TreeItem/TreeItem.js +37 -81
- package/legacy/TreeItem/TreeItemContent.js +17 -34
- package/legacy/TreeItem/useTreeItem.js +12 -19
- package/legacy/TreeView/TreeView.js +83 -236
- package/legacy/TreeView/TreeViewContext.js +1 -3
- package/legacy/TreeView/descendants.js +26 -44
- package/legacy/YearPicker/YearPicker.js +1 -3
- package/legacy/index.js +3 -2
- package/legacy/internal/svg-icons/ArrowDropDown.js +1 -1
- package/legacy/internal/svg-icons/ArrowLeft.js +1 -1
- package/legacy/internal/svg-icons/ArrowRight.js +1 -1
- package/legacy/internal/svg-icons/Calendar.js +1 -1
- package/legacy/internal/svg-icons/Clock.js +1 -1
- package/legacy/internal/svg-icons/DateRange.js +1 -1
- package/legacy/internal/svg-icons/Pen.js +1 -1
- package/legacy/internal/svg-icons/Time.js +1 -1
- package/modern/AdapterDateFns/AdapterDateFns.js +2 -4
- package/modern/AdapterDayjs/AdapterDayjs.js +2 -4
- package/modern/AdapterLuxon/AdapterLuxon.js +2 -4
- package/modern/AdapterMoment/AdapterMoment.js +2 -4
- package/modern/Alert/Alert.js +1 -2
- package/modern/AlertTitle/AlertTitle.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +1 -2
- package/modern/AvatarGroup/AvatarGroup.js +1 -2
- package/modern/CalendarPicker/CalendarPicker.js +0 -2
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/modern/ClockPicker/ClockPicker.js +0 -2
- package/modern/DatePicker/DatePicker.js +0 -2
- package/modern/DateRangePicker/DateRangePicker.js +0 -2
- package/modern/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/modern/DateTimePicker/DateTimePicker.js +0 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/modern/LoadingButton/LoadingButton.js +13 -35
- package/modern/LocalizationProvider/LocalizationProvider.js +0 -2
- package/modern/Masonry/Masonry.js +27 -68
- package/modern/MobileDatePicker/MobileDatePicker.js +0 -2
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/modern/MobileTimePicker/MobileTimePicker.js +0 -2
- package/modern/MonthPicker/MonthPicker.js +0 -2
- package/modern/Pagination/Pagination.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/PickersDay/PickersDay.js +0 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Skeleton/Skeleton.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/StaticDatePicker/StaticDatePicker.js +0 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/modern/StaticTimePicker/StaticTimePicker.js +0 -2
- package/modern/TabContext/TabContext.js +3 -14
- package/modern/TabList/TabList.js +4 -11
- package/modern/TabPanel/TabPanel.js +6 -20
- package/modern/TimePicker/TimePicker.js +0 -2
- package/modern/Timeline/Timeline.js +9 -20
- package/modern/Timeline/TimelineContext.js +1 -3
- package/modern/TimelineConnector/TimelineConnector.js +4 -14
- package/modern/TimelineContent/TimelineContent.js +4 -16
- package/modern/TimelineDot/TimelineDot.js +8 -25
- package/modern/TimelineItem/TimelineItem.js +5 -18
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/modern/TimelineSeparator/TimelineSeparator.js +4 -14
- package/modern/ToggleButton/ToggleButton.js +1 -2
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/modern/TreeItem/TreeItem.js +19 -58
- package/modern/TreeItem/TreeItemContent.js +12 -28
- package/modern/TreeItem/useTreeItem.js +2 -8
- package/modern/TreeView/TreeView.js +51 -195
- package/modern/TreeView/TreeViewContext.js +1 -3
- package/modern/TreeView/descendants.js +19 -31
- package/modern/YearPicker/YearPicker.js +1 -3
- package/modern/index.js +3 -2
- package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
- package/modern/internal/svg-icons/ArrowLeft.js +1 -1
- package/modern/internal/svg-icons/ArrowRight.js +1 -1
- package/modern/internal/svg-icons/Calendar.js +1 -1
- package/modern/internal/svg-icons/Clock.js +1 -1
- package/modern/internal/svg-icons/DateRange.js +1 -1
- package/modern/internal/svg-icons/Pen.js +1 -1
- package/modern/internal/svg-icons/Time.js +1 -1
- package/node/AdapterDateFns/AdapterDateFns.js +2 -5
- package/node/AdapterDateFns/index.js +0 -2
- package/node/AdapterDayjs/AdapterDayjs.js +2 -5
- package/node/AdapterDayjs/index.js +0 -2
- package/node/AdapterLuxon/AdapterLuxon.js +2 -5
- package/node/AdapterLuxon/index.js +0 -2
- package/node/AdapterMoment/AdapterMoment.js +2 -5
- package/node/AdapterMoment/index.js +0 -2
- package/node/Alert/Alert.js +1 -11
- package/node/Alert/index.js +0 -2
- package/node/AlertTitle/AlertTitle.js +1 -11
- package/node/AlertTitle/index.js +0 -2
- package/node/Autocomplete/Autocomplete.js +1 -11
- package/node/Autocomplete/index.js +0 -2
- package/node/AvatarGroup/AvatarGroup.js +1 -11
- package/node/AvatarGroup/index.js +0 -2
- package/node/CalendarPicker/CalendarPicker.js +1 -6
- package/node/CalendarPicker/index.js +0 -4
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -8
- package/node/CalendarPickerSkeleton/index.js +0 -4
- package/node/ClockPicker/ClockPicker.js +1 -6
- package/node/ClockPicker/index.js +0 -4
- package/node/DatePicker/DatePicker.js +1 -6
- package/node/DatePicker/index.js +0 -4
- package/node/DateRangePicker/DateRangePicker.js +1 -6
- package/node/DateRangePicker/index.js +0 -4
- package/node/DateRangePickerDay/DateRangePickerDay.js +1 -8
- package/node/DateRangePickerDay/index.js +0 -4
- package/node/DateTimePicker/DateTimePicker.js +1 -6
- package/node/DateTimePicker/index.js +0 -4
- package/node/DesktopDatePicker/DesktopDatePicker.js +1 -6
- package/node/DesktopDatePicker/index.js +0 -4
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -6
- package/node/DesktopDateRangePicker/index.js +0 -4
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -6
- package/node/DesktopDateTimePicker/index.js +0 -4
- package/node/DesktopTimePicker/DesktopTimePicker.js +1 -6
- package/node/DesktopTimePicker/index.js +0 -4
- package/node/LoadingButton/LoadingButton.js +13 -46
- package/node/LoadingButton/index.js +0 -6
- package/node/LoadingButton/loadingButtonClasses.js +0 -5
- package/node/LocalizationProvider/LocalizationProvider.js +0 -6
- package/node/LocalizationProvider/index.js +0 -4
- package/node/Masonry/Masonry.js +27 -83
- package/node/Masonry/index.js +0 -6
- package/node/Masonry/masonryClasses.js +0 -5
- package/node/MobileDatePicker/MobileDatePicker.js +1 -6
- package/node/MobileDatePicker/index.js +0 -4
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -6
- package/node/MobileDateRangePicker/index.js +0 -4
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -6
- package/node/MobileDateTimePicker/index.js +0 -4
- package/node/MobileTimePicker/MobileTimePicker.js +1 -6
- package/node/MobileTimePicker/index.js +0 -4
- package/node/MonthPicker/MonthPicker.js +1 -8
- package/node/MonthPicker/index.js +0 -4
- package/node/Pagination/Pagination.js +1 -11
- package/node/Pagination/index.js +0 -3
- package/node/Pagination/usePagination.js +0 -2
- package/node/PaginationItem/PaginationItem.js +1 -11
- package/node/PaginationItem/index.js +0 -2
- package/node/PickersDay/PickersDay.js +1 -8
- package/node/PickersDay/index.js +0 -4
- package/node/Rating/Rating.js +1 -11
- package/node/Rating/index.js +0 -2
- package/node/Skeleton/Skeleton.js +1 -11
- package/node/Skeleton/index.js +0 -2
- package/node/SpeedDial/SpeedDial.js +1 -11
- package/node/SpeedDial/index.js +0 -2
- package/node/SpeedDialAction/SpeedDialAction.js +1 -11
- package/node/SpeedDialAction/index.js +0 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -11
- package/node/SpeedDialIcon/index.js +0 -2
- package/node/StaticDatePicker/StaticDatePicker.js +1 -6
- package/node/StaticDatePicker/index.js +0 -4
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -6
- package/node/StaticDateRangePicker/index.js +0 -4
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -6
- package/node/StaticDateTimePicker/index.js +0 -4
- package/node/StaticTimePicker/StaticTimePicker.js +1 -6
- package/node/StaticTimePicker/index.js +0 -4
- package/node/TabContext/TabContext.js +2 -23
- package/node/TabContext/index.js +0 -4
- package/node/TabList/TabList.js +4 -22
- package/node/TabList/index.js +0 -2
- package/node/TabPanel/TabPanel.js +6 -31
- package/node/TabPanel/index.js +0 -6
- package/node/TabPanel/tabPanelClasses.js +0 -5
- package/node/TimePicker/TimePicker.js +1 -6
- package/node/TimePicker/index.js +0 -4
- package/node/Timeline/Timeline.js +9 -32
- package/node/Timeline/TimelineContext.js +0 -6
- package/node/Timeline/index.js +0 -6
- package/node/Timeline/timelineClasses.js +0 -5
- package/node/TimelineConnector/TimelineConnector.js +4 -25
- package/node/TimelineConnector/index.js +0 -6
- package/node/TimelineConnector/timelineConnectorClasses.js +0 -5
- package/node/TimelineContent/TimelineContent.js +4 -28
- package/node/TimelineContent/index.js +0 -6
- package/node/TimelineContent/timelineContentClasses.js +0 -5
- package/node/TimelineDot/TimelineDot.js +8 -36
- package/node/TimelineDot/index.js +0 -6
- package/node/TimelineDot/timelineDotClasses.js +0 -5
- package/node/TimelineItem/TimelineItem.js +5 -31
- package/node/TimelineItem/index.js +0 -6
- package/node/TimelineItem/timelineItemClasses.js +0 -5
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +4 -28
- package/node/TimelineOppositeContent/index.js +0 -6
- package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +0 -5
- package/node/TimelineSeparator/TimelineSeparator.js +4 -25
- package/node/TimelineSeparator/index.js +0 -6
- package/node/TimelineSeparator/timelineSeparatorClasses.js +0 -5
- package/node/ToggleButton/ToggleButton.js +1 -11
- package/node/ToggleButton/index.js +0 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -11
- package/node/ToggleButtonGroup/index.js +0 -2
- package/node/TreeItem/TreeItem.js +19 -73
- package/node/TreeItem/TreeItemContent.js +11 -38
- package/node/TreeItem/index.js +0 -7
- package/node/TreeItem/treeItemClasses.js +0 -5
- package/node/TreeItem/useTreeItem.js +2 -14
- package/node/TreeView/TreeView.js +51 -205
- package/node/TreeView/TreeViewContext.js +0 -6
- package/node/TreeView/descendants.js +18 -40
- package/node/TreeView/index.js +0 -6
- package/node/TreeView/treeViewClasses.js +0 -5
- package/node/YearPicker/YearPicker.js +1 -6
- package/node/YearPicker/index.js +0 -4
- package/node/index.js +1 -107
- package/node/internal/svg-icons/ArrowDropDown.js +0 -7
- package/node/internal/svg-icons/ArrowLeft.js +0 -7
- package/node/internal/svg-icons/ArrowRight.js +0 -7
- package/node/internal/svg-icons/Calendar.js +0 -7
- package/node/internal/svg-icons/Clock.js +0 -7
- package/node/internal/svg-icons/DateRange.js +0 -7
- package/node/internal/svg-icons/Pen.js +0 -7
- package/node/internal/svg-icons/Time.js +0 -7
- package/node/useAutocomplete/index.js +0 -1
- package/package.json +6 -6
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import Skeleton from '@mui/material/Skeleton';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
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
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(Skeleton, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import SpeedDial from '@mui/material/SpeedDial';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
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
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(SpeedDial, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import SpeedDialAction from '@mui/material/SpeedDialAction';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
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
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(SpeedDialAction, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import SpeedDialIcon from '@mui/material/SpeedDialIcon';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
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
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(SpeedDialIcon, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The StaticDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDatePicker } from '@mui/x-date-pickers'`", "or `import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The StaticDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro/StaticDateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The StaticDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDateTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticDateTimePicker } from '@mui/x-date-pickers/StaticDateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticTimePicker } from '@mui/x-date-pickers/StaticTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* @type {React.Context<{ idPrefix: string; value: string } | null>}
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var Context = /*#__PURE__*/React.createContext(null);
|
|
9
|
-
|
|
10
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
10
|
Context.displayName = 'TabContext';
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
function useUniquePrefix() {
|
|
15
13
|
var _React$useState = React.useState(null),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
id = _React$useState[0],
|
|
15
|
+
setId = _React$useState[1];
|
|
19
16
|
React.useEffect(function () {
|
|
20
17
|
setId("mui-p-".concat(Math.round(Math.random() * 1e5)));
|
|
21
18
|
}, []);
|
|
22
19
|
return id;
|
|
23
20
|
}
|
|
24
|
-
|
|
25
21
|
export default function TabContext(props) {
|
|
26
22
|
var children = props.children,
|
|
27
|
-
|
|
23
|
+
value = props.value;
|
|
28
24
|
var idPrefix = useUniquePrefix();
|
|
29
25
|
var context = React.useMemo(function () {
|
|
30
26
|
return {
|
|
@@ -37,46 +33,38 @@ export default function TabContext(props) {
|
|
|
37
33
|
children: children
|
|
38
34
|
});
|
|
39
35
|
}
|
|
40
|
-
process.env.NODE_ENV !== "production" ? TabContext.propTypes
|
|
41
|
-
/* remove-proptypes */
|
|
42
|
-
= {
|
|
36
|
+
process.env.NODE_ENV !== "production" ? TabContext.propTypes /* remove-proptypes */ = {
|
|
43
37
|
// ----------------------------- Warning --------------------------------
|
|
44
38
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
45
39
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
46
40
|
// ----------------------------------------------------------------------
|
|
47
|
-
|
|
48
41
|
/**
|
|
49
42
|
* The content of the component.
|
|
50
43
|
*/
|
|
51
44
|
children: PropTypes.node,
|
|
52
|
-
|
|
53
45
|
/**
|
|
54
46
|
* The value of the currently selected `Tab`.
|
|
55
47
|
*/
|
|
56
48
|
value: PropTypes.string.isRequired
|
|
57
49
|
} : void 0;
|
|
50
|
+
|
|
58
51
|
/**
|
|
59
52
|
* @returns {unknown}
|
|
60
53
|
*/
|
|
61
|
-
|
|
62
54
|
export function useTabContext() {
|
|
63
55
|
return React.useContext(Context);
|
|
64
56
|
}
|
|
65
57
|
export function getPanelId(context, value) {
|
|
66
58
|
var idPrefix = context.idPrefix;
|
|
67
|
-
|
|
68
59
|
if (idPrefix === null) {
|
|
69
60
|
return null;
|
|
70
61
|
}
|
|
71
|
-
|
|
72
62
|
return "".concat(context.idPrefix, "-P-").concat(value);
|
|
73
63
|
}
|
|
74
64
|
export function getTabId(context, value) {
|
|
75
65
|
var idPrefix = context.idPrefix;
|
|
76
|
-
|
|
77
66
|
if (idPrefix === null) {
|
|
78
67
|
return null;
|
|
79
68
|
}
|
|
80
|
-
|
|
81
69
|
return "".concat(context.idPrefix, "-T-").concat(value);
|
|
82
70
|
}
|
|
@@ -7,19 +7,15 @@ import { useTabContext, getTabId, getPanelId } from '../TabContext';
|
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
9
9
|
var childrenProp = props.children,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
other = _objectWithoutProperties(props, ["children"]);
|
|
12
11
|
var context = useTabContext();
|
|
13
|
-
|
|
14
12
|
if (context === null) {
|
|
15
13
|
throw new TypeError('No TabContext provided');
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
var children = React.Children.map(childrenProp, function (child) {
|
|
19
16
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
20
17
|
return null;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
24
20
|
// SOMEDAY: `Tabs` will set those themselves
|
|
25
21
|
'aria-controls': getPanelId(context, child.props.value),
|
|
@@ -32,14 +28,11 @@ var TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
|
32
28
|
children: children
|
|
33
29
|
}));
|
|
34
30
|
});
|
|
35
|
-
process.env.NODE_ENV !== "production" ? TabList.propTypes
|
|
36
|
-
/* remove-proptypes */
|
|
37
|
-
= {
|
|
31
|
+
process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
|
|
38
32
|
// ----------------------------- Warning --------------------------------
|
|
39
33
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
40
34
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
41
35
|
// ----------------------------------------------------------------------
|
|
42
|
-
|
|
43
36
|
/**
|
|
44
37
|
* A list of `<Tab />` elements.
|
|
45
38
|
*/
|
|
@@ -8,7 +8,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
|
8
8
|
import { getTabPanelUtilityClass } from './tabPanelClasses';
|
|
9
9
|
import { getPanelId, getTabId, useTabContext } from '../TabContext';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
|
|
12
11
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
13
12
|
var classes = ownerState.classes;
|
|
14
13
|
var slots = {
|
|
@@ -16,7 +15,6 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
16
15
|
};
|
|
17
16
|
return composeClasses(slots, getTabPanelUtilityClass, classes);
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
var TabPanelRoot = styled('div', {
|
|
21
19
|
name: 'MuiTabPanel',
|
|
22
20
|
slot: 'Root',
|
|
@@ -34,21 +32,16 @@ var TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
34
32
|
props: inProps,
|
|
35
33
|
name: 'MuiTabPanel'
|
|
36
34
|
});
|
|
37
|
-
|
|
38
35
|
var children = props.children,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
className = props.className,
|
|
37
|
+
value = props.value,
|
|
38
|
+
other = _objectWithoutProperties(props, ["children", "className", "value"]);
|
|
43
39
|
var ownerState = _extends({}, props);
|
|
44
|
-
|
|
45
40
|
var classes = useUtilityClasses(ownerState);
|
|
46
41
|
var context = useTabContext();
|
|
47
|
-
|
|
48
42
|
if (context === null) {
|
|
49
43
|
throw new TypeError('No TabContext provided');
|
|
50
44
|
}
|
|
51
|
-
|
|
52
45
|
var id = getPanelId(context, value);
|
|
53
46
|
var tabId = getTabId(context, value);
|
|
54
47
|
return /*#__PURE__*/_jsx(TabPanelRoot, _extends({
|
|
@@ -63,34 +56,27 @@ var TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
63
56
|
children: value === context.value && children
|
|
64
57
|
}));
|
|
65
58
|
});
|
|
66
|
-
process.env.NODE_ENV !== "production" ? TabPanel.propTypes
|
|
67
|
-
/* remove-proptypes */
|
|
68
|
-
= {
|
|
59
|
+
process.env.NODE_ENV !== "production" ? TabPanel.propTypes /* remove-proptypes */ = {
|
|
69
60
|
// ----------------------------- Warning --------------------------------
|
|
70
61
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
71
62
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
72
63
|
// ----------------------------------------------------------------------
|
|
73
|
-
|
|
74
64
|
/**
|
|
75
65
|
* The content of the component.
|
|
76
66
|
*/
|
|
77
67
|
children: PropTypes.node,
|
|
78
|
-
|
|
79
68
|
/**
|
|
80
69
|
* Override or extend the styles applied to the component.
|
|
81
70
|
*/
|
|
82
71
|
classes: PropTypes.object,
|
|
83
|
-
|
|
84
72
|
/**
|
|
85
73
|
* @ignore
|
|
86
74
|
*/
|
|
87
75
|
className: PropTypes.string,
|
|
88
|
-
|
|
89
76
|
/**
|
|
90
77
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
91
78
|
*/
|
|
92
79
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
93
|
-
|
|
94
80
|
/**
|
|
95
81
|
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
96
82
|
* no `value` was passed to `Tab`.
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The TimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { TimePicker } from '@mui/x-date-pickers'`", "or `import { TimePicker } from '@mui/x-date-pickers/TimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -9,16 +9,14 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
9
9
|
import TimelineContext from './TimelineContext';
|
|
10
10
|
import { getTimelineUtilityClass } from './timelineClasses';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
12
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
14
13
|
var position = ownerState.position,
|
|
15
|
-
|
|
14
|
+
classes = ownerState.classes;
|
|
16
15
|
var slots = {
|
|
17
16
|
root: ['root', position && "position".concat(capitalize(position))]
|
|
18
17
|
};
|
|
19
18
|
return composeClasses(slots, getTimelineUtilityClass, classes);
|
|
20
19
|
};
|
|
21
|
-
|
|
22
20
|
var TimelineRoot = styled('ul', {
|
|
23
21
|
name: 'MuiTimeline',
|
|
24
22
|
slot: 'Root',
|
|
@@ -32,6 +30,7 @@ var TimelineRoot = styled('ul', {
|
|
|
32
30
|
padding: '6px 16px',
|
|
33
31
|
flexGrow: 1
|
|
34
32
|
});
|
|
33
|
+
|
|
35
34
|
/**
|
|
36
35
|
*
|
|
37
36
|
* Demos:
|
|
@@ -42,22 +41,18 @@ var TimelineRoot = styled('ul', {
|
|
|
42
41
|
*
|
|
43
42
|
* - [Timeline API](https://mui.com/material-ui/api/timeline/)
|
|
44
43
|
*/
|
|
45
|
-
|
|
46
44
|
var Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
47
45
|
var props = useThemeProps({
|
|
48
46
|
props: inProps,
|
|
49
47
|
name: 'MuiTimeline'
|
|
50
48
|
});
|
|
51
|
-
|
|
52
49
|
var _props$position = props.position,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
position = _props$position === void 0 ? 'right' : _props$position,
|
|
51
|
+
className = props.className,
|
|
52
|
+
other = _objectWithoutProperties(props, ["position", "className"]);
|
|
57
53
|
var ownerState = _extends({}, props, {
|
|
58
54
|
position: position
|
|
59
55
|
});
|
|
60
|
-
|
|
61
56
|
var classes = useUtilityClasses(ownerState);
|
|
62
57
|
var contextValue = React.useMemo(function () {
|
|
63
58
|
return {
|
|
@@ -68,46 +63,41 @@ var Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
|
68
63
|
value: contextValue,
|
|
69
64
|
children: /*#__PURE__*/_jsx(TimelineRoot, _extends({
|
|
70
65
|
className: clsx(classes.root, className),
|
|
71
|
-
ownerState: ownerState
|
|
66
|
+
ownerState: ownerState
|
|
67
|
+
// @ts-expect-error TypeScript bug, need to keep unknown for DX
|
|
72
68
|
,
|
|
73
69
|
ref: ref
|
|
74
70
|
}, other))
|
|
75
71
|
});
|
|
76
72
|
});
|
|
77
|
-
process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
78
|
-
/* remove-proptypes */
|
|
79
|
-
= {
|
|
73
|
+
process.env.NODE_ENV !== "production" ? Timeline.propTypes /* remove-proptypes */ = {
|
|
80
74
|
// ----------------------------- Warning --------------------------------
|
|
81
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
82
76
|
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
83
77
|
// ----------------------------------------------------------------------
|
|
84
|
-
|
|
85
78
|
/**
|
|
86
79
|
* The content of the component.
|
|
87
80
|
*/
|
|
88
81
|
children: PropTypes.node,
|
|
89
|
-
|
|
90
82
|
/**
|
|
91
83
|
* Override or extend the styles applied to the component.
|
|
92
84
|
*/
|
|
93
85
|
classes: PropTypes.object,
|
|
94
|
-
|
|
95
86
|
/**
|
|
96
87
|
* className applied to the root element.
|
|
97
88
|
*/
|
|
98
89
|
className: PropTypes.string,
|
|
99
|
-
|
|
100
90
|
/**
|
|
101
91
|
* The position where the TimelineContent should appear relative to the time axis.
|
|
102
92
|
* @default 'right'
|
|
103
93
|
*/
|
|
104
94
|
position: PropTypes.oneOf(['alternate', 'left', 'right']),
|
|
105
|
-
|
|
106
95
|
/**
|
|
107
96
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
108
97
|
*/
|
|
109
98
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
110
99
|
} : void 0;
|
|
100
|
+
|
|
111
101
|
/**
|
|
112
102
|
*
|
|
113
103
|
* Demos:
|
|
@@ -118,5 +108,4 @@ process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
|
118
108
|
*
|
|
119
109
|
* - [Timeline API](https://mui.com/api/timeline/)
|
|
120
110
|
*/
|
|
121
|
-
|
|
122
111
|
export default Timeline;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @ignore - internal component.
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
6
|
var TimelineContext = /*#__PURE__*/React.createContext({});
|
|
7
|
-
|
|
8
7
|
if (process.env.NODE_ENV !== 'production') {
|
|
9
8
|
TimelineContext.displayName = 'TimelineContext';
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
export default TimelineContext;
|
|
@@ -7,7 +7,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import { getTimelineConnectorUtilityClass } from './timelineConnectorClasses';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
10
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
12
11
|
var classes = ownerState.classes;
|
|
13
12
|
var slots = {
|
|
@@ -15,7 +14,6 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
15
14
|
};
|
|
16
15
|
return composeClasses(slots, getTimelineConnectorUtilityClass, classes);
|
|
17
16
|
};
|
|
18
|
-
|
|
19
17
|
var TimelineConnectorRoot = styled('span', {
|
|
20
18
|
name: 'MuiTimelineConnector',
|
|
21
19
|
slot: 'Root',
|
|
@@ -35,10 +33,8 @@ var TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnector
|
|
|
35
33
|
props: inProps,
|
|
36
34
|
name: 'MuiTimelineConnector'
|
|
37
35
|
});
|
|
38
|
-
|
|
39
36
|
var className = props.className,
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
other = _objectWithoutProperties(props, ["className"]);
|
|
42
38
|
var ownerState = props;
|
|
43
39
|
var classes = useUtilityClasses(ownerState);
|
|
44
40
|
return /*#__PURE__*/_jsx(TimelineConnectorRoot, _extends({
|
|
@@ -47,29 +43,23 @@ var TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnector
|
|
|
47
43
|
ref: ref
|
|
48
44
|
}, other));
|
|
49
45
|
});
|
|
50
|
-
process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes
|
|
51
|
-
/* remove-proptypes */
|
|
52
|
-
= {
|
|
46
|
+
process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes /* remove-proptypes */ = {
|
|
53
47
|
// ----------------------------- Warning --------------------------------
|
|
54
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
49
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
56
50
|
// ----------------------------------------------------------------------
|
|
57
|
-
|
|
58
51
|
/**
|
|
59
52
|
* The content of the component.
|
|
60
53
|
*/
|
|
61
54
|
children: PropTypes.node,
|
|
62
|
-
|
|
63
55
|
/**
|
|
64
56
|
* Override or extend the styles applied to the component.
|
|
65
57
|
*/
|
|
66
58
|
classes: PropTypes.object,
|
|
67
|
-
|
|
68
59
|
/**
|
|
69
60
|
* @ignore
|
|
70
61
|
*/
|
|
71
62
|
className: PropTypes.string,
|
|
72
|
-
|
|
73
63
|
/**
|
|
74
64
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
75
65
|
*/
|
|
@@ -10,16 +10,14 @@ import Typography from '@mui/material/Typography';
|
|
|
10
10
|
import TimelineContext from '../Timeline/TimelineContext';
|
|
11
11
|
import { getTimelineContentUtilityClass } from './timelineContentClasses';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
15
14
|
var position = ownerState.position,
|
|
16
|
-
|
|
15
|
+
classes = ownerState.classes;
|
|
17
16
|
var slots = {
|
|
18
17
|
root: ['root', "position".concat(capitalize(position))]
|
|
19
18
|
};
|
|
20
19
|
return composeClasses(slots, getTimelineContentUtilityClass, classes);
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
var TimelineContentRoot = styled(Typography, {
|
|
24
22
|
name: 'MuiTimelineContent',
|
|
25
23
|
slot: 'Root',
|
|
@@ -42,17 +40,13 @@ var TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(inP
|
|
|
42
40
|
props: inProps,
|
|
43
41
|
name: 'MuiTimelineContent'
|
|
44
42
|
});
|
|
45
|
-
|
|
46
43
|
var className = props.className,
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
other = _objectWithoutProperties(props, ["className"]);
|
|
49
45
|
var _React$useContext = React.useContext(TimelineContext),
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
positionContext = _React$useContext.position;
|
|
52
47
|
var ownerState = _extends({}, props, {
|
|
53
48
|
position: positionContext || 'right'
|
|
54
49
|
});
|
|
55
|
-
|
|
56
50
|
var classes = useUtilityClasses(ownerState);
|
|
57
51
|
return /*#__PURE__*/_jsx(TimelineContentRoot, _extends({
|
|
58
52
|
component: "div",
|
|
@@ -61,29 +55,23 @@ var TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(inP
|
|
|
61
55
|
ref: ref
|
|
62
56
|
}, other));
|
|
63
57
|
});
|
|
64
|
-
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes
|
|
65
|
-
/* remove-proptypes */
|
|
66
|
-
= {
|
|
58
|
+
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
|
|
67
59
|
// ----------------------------- Warning --------------------------------
|
|
68
60
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
69
61
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
70
62
|
// ----------------------------------------------------------------------
|
|
71
|
-
|
|
72
63
|
/**
|
|
73
64
|
* The content of the component.
|
|
74
65
|
*/
|
|
75
66
|
children: PropTypes.node,
|
|
76
|
-
|
|
77
67
|
/**
|
|
78
68
|
* Override or extend the styles applied to the component.
|
|
79
69
|
*/
|
|
80
70
|
classes: PropTypes.object,
|
|
81
|
-
|
|
82
71
|
/**
|
|
83
72
|
* @ignore
|
|
84
73
|
*/
|
|
85
74
|
className: PropTypes.string,
|
|
86
|
-
|
|
87
75
|
/**
|
|
88
76
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
89
77
|
*/
|