@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
package/TabList/TabList.js
CHANGED
|
@@ -8,21 +8,17 @@ import { useTabContext, getTabId, getPanelId } from '../TabContext';
|
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
10
10
|
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
children: childrenProp
|
|
12
|
+
} = props,
|
|
13
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
15
14
|
const context = useTabContext();
|
|
16
|
-
|
|
17
15
|
if (context === null) {
|
|
18
16
|
throw new TypeError('No TabContext provided');
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
const children = React.Children.map(childrenProp, child => {
|
|
22
19
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
23
20
|
return null;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
22
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
27
23
|
// SOMEDAY: `Tabs` will set those themselves
|
|
28
24
|
'aria-controls': getPanelId(context, child.props.value),
|
|
@@ -35,14 +31,11 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
|
35
31
|
children: children
|
|
36
32
|
}));
|
|
37
33
|
});
|
|
38
|
-
process.env.NODE_ENV !== "production" ? TabList.propTypes
|
|
39
|
-
/* remove-proptypes */
|
|
40
|
-
= {
|
|
34
|
+
process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
|
|
41
35
|
// ----------------------------- Warning --------------------------------
|
|
42
36
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
43
37
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
44
38
|
// ----------------------------------------------------------------------
|
|
45
|
-
|
|
46
39
|
/**
|
|
47
40
|
* A list of `<Tab />` elements.
|
|
48
41
|
*/
|
package/TabPanel/TabPanel.js
CHANGED
|
@@ -9,7 +9,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
|
9
9
|
import { getTabPanelUtilityClass } from './tabPanelClasses';
|
|
10
10
|
import { getPanelId, getTabId, useTabContext } from '../TabContext';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
12
|
const useUtilityClasses = ownerState => {
|
|
14
13
|
const {
|
|
15
14
|
classes
|
|
@@ -19,7 +18,6 @@ const useUtilityClasses = ownerState => {
|
|
|
19
18
|
};
|
|
20
19
|
return composeClasses(slots, getTabPanelUtilityClass, classes);
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
const TabPanelRoot = styled('div', {
|
|
24
22
|
name: 'MuiTabPanel',
|
|
25
23
|
slot: 'Root',
|
|
@@ -34,23 +32,18 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
34
32
|
props: inProps,
|
|
35
33
|
name: 'MuiTabPanel'
|
|
36
34
|
});
|
|
37
|
-
|
|
38
35
|
const {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
value
|
|
39
|
+
} = props,
|
|
40
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
45
41
|
const ownerState = _extends({}, props);
|
|
46
|
-
|
|
47
42
|
const classes = useUtilityClasses(ownerState);
|
|
48
43
|
const context = useTabContext();
|
|
49
|
-
|
|
50
44
|
if (context === null) {
|
|
51
45
|
throw new TypeError('No TabContext provided');
|
|
52
46
|
}
|
|
53
|
-
|
|
54
47
|
const id = getPanelId(context, value);
|
|
55
48
|
const tabId = getTabId(context, value);
|
|
56
49
|
return /*#__PURE__*/_jsx(TabPanelRoot, _extends({
|
|
@@ -65,34 +58,27 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
65
58
|
children: value === context.value && children
|
|
66
59
|
}));
|
|
67
60
|
});
|
|
68
|
-
process.env.NODE_ENV !== "production" ? TabPanel.propTypes
|
|
69
|
-
/* remove-proptypes */
|
|
70
|
-
= {
|
|
61
|
+
process.env.NODE_ENV !== "production" ? TabPanel.propTypes /* remove-proptypes */ = {
|
|
71
62
|
// ----------------------------- Warning --------------------------------
|
|
72
63
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
73
64
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
74
65
|
// ----------------------------------------------------------------------
|
|
75
|
-
|
|
76
66
|
/**
|
|
77
67
|
* The content of the component.
|
|
78
68
|
*/
|
|
79
69
|
children: PropTypes.node,
|
|
80
|
-
|
|
81
70
|
/**
|
|
82
71
|
* Override or extend the styles applied to the component.
|
|
83
72
|
*/
|
|
84
73
|
classes: PropTypes.object,
|
|
85
|
-
|
|
86
74
|
/**
|
|
87
75
|
* @ignore
|
|
88
76
|
*/
|
|
89
77
|
className: PropTypes.string,
|
|
90
|
-
|
|
91
78
|
/**
|
|
92
79
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
93
80
|
*/
|
|
94
81
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
95
|
-
|
|
96
82
|
/**
|
|
97
83
|
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
98
84
|
* no `value` was passed to `Tab`.
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const 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
|
*/
|
package/Timeline/Timeline.js
CHANGED
|
@@ -10,7 +10,6 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
10
10
|
import TimelineContext from './TimelineContext';
|
|
11
11
|
import { getTimelineUtilityClass } from './timelineClasses';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
const useUtilityClasses = ownerState => {
|
|
15
14
|
const {
|
|
16
15
|
position,
|
|
@@ -21,7 +20,6 @@ const useUtilityClasses = ownerState => {
|
|
|
21
20
|
};
|
|
22
21
|
return composeClasses(slots, getTimelineUtilityClass, classes);
|
|
23
22
|
};
|
|
24
|
-
|
|
25
23
|
const TimelineRoot = styled('ul', {
|
|
26
24
|
name: 'MuiTimeline',
|
|
27
25
|
slot: 'Root',
|
|
@@ -37,6 +35,7 @@ const TimelineRoot = styled('ul', {
|
|
|
37
35
|
padding: '6px 16px',
|
|
38
36
|
flexGrow: 1
|
|
39
37
|
});
|
|
38
|
+
|
|
40
39
|
/**
|
|
41
40
|
*
|
|
42
41
|
* Demos:
|
|
@@ -47,23 +46,19 @@ const TimelineRoot = styled('ul', {
|
|
|
47
46
|
*
|
|
48
47
|
* - [Timeline API](https://mui.com/material-ui/api/timeline/)
|
|
49
48
|
*/
|
|
50
|
-
|
|
51
49
|
const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
52
50
|
const props = useThemeProps({
|
|
53
51
|
props: inProps,
|
|
54
52
|
name: 'MuiTimeline'
|
|
55
53
|
});
|
|
56
|
-
|
|
57
54
|
const {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
position = 'right',
|
|
56
|
+
className
|
|
57
|
+
} = props,
|
|
58
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
63
59
|
const ownerState = _extends({}, props, {
|
|
64
60
|
position
|
|
65
61
|
});
|
|
66
|
-
|
|
67
62
|
const classes = useUtilityClasses(ownerState);
|
|
68
63
|
const contextValue = React.useMemo(() => ({
|
|
69
64
|
position
|
|
@@ -72,46 +67,41 @@ const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
|
72
67
|
value: contextValue,
|
|
73
68
|
children: /*#__PURE__*/_jsx(TimelineRoot, _extends({
|
|
74
69
|
className: clsx(classes.root, className),
|
|
75
|
-
ownerState: ownerState
|
|
70
|
+
ownerState: ownerState
|
|
71
|
+
// @ts-expect-error TypeScript bug, need to keep unknown for DX
|
|
76
72
|
,
|
|
77
73
|
ref: ref
|
|
78
74
|
}, other))
|
|
79
75
|
});
|
|
80
76
|
});
|
|
81
|
-
process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
82
|
-
/* remove-proptypes */
|
|
83
|
-
= {
|
|
77
|
+
process.env.NODE_ENV !== "production" ? Timeline.propTypes /* remove-proptypes */ = {
|
|
84
78
|
// ----------------------------- Warning --------------------------------
|
|
85
79
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
86
80
|
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
87
81
|
// ----------------------------------------------------------------------
|
|
88
|
-
|
|
89
82
|
/**
|
|
90
83
|
* The content of the component.
|
|
91
84
|
*/
|
|
92
85
|
children: PropTypes.node,
|
|
93
|
-
|
|
94
86
|
/**
|
|
95
87
|
* Override or extend the styles applied to the component.
|
|
96
88
|
*/
|
|
97
89
|
classes: PropTypes.object,
|
|
98
|
-
|
|
99
90
|
/**
|
|
100
91
|
* className applied to the root element.
|
|
101
92
|
*/
|
|
102
93
|
className: PropTypes.string,
|
|
103
|
-
|
|
104
94
|
/**
|
|
105
95
|
* The position where the TimelineContent should appear relative to the time axis.
|
|
106
96
|
* @default 'right'
|
|
107
97
|
*/
|
|
108
98
|
position: PropTypes.oneOf(['alternate', 'left', 'right']),
|
|
109
|
-
|
|
110
99
|
/**
|
|
111
100
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
112
101
|
*/
|
|
113
102
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
114
103
|
} : void 0;
|
|
104
|
+
|
|
115
105
|
/**
|
|
116
106
|
*
|
|
117
107
|
* Demos:
|
|
@@ -122,5 +112,4 @@ process.env.NODE_ENV !== "production" ? Timeline.propTypes
|
|
|
122
112
|
*
|
|
123
113
|
* - [Timeline API](https://mui.com/api/timeline/)
|
|
124
114
|
*/
|
|
125
|
-
|
|
126
115
|
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
|
const 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;
|
|
@@ -8,7 +8,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import { getTimelineConnectorUtilityClass } from './timelineConnectorClasses';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
|
|
12
11
|
const useUtilityClasses = ownerState => {
|
|
13
12
|
const {
|
|
14
13
|
classes
|
|
@@ -18,7 +17,6 @@ const useUtilityClasses = ownerState => {
|
|
|
18
17
|
};
|
|
19
18
|
return composeClasses(slots, getTimelineConnectorUtilityClass, classes);
|
|
20
19
|
};
|
|
21
|
-
|
|
22
20
|
const TimelineConnectorRoot = styled('span', {
|
|
23
21
|
name: 'MuiTimelineConnector',
|
|
24
22
|
slot: 'Root',
|
|
@@ -37,12 +35,10 @@ const TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnect
|
|
|
37
35
|
props: inProps,
|
|
38
36
|
name: 'MuiTimelineConnector'
|
|
39
37
|
});
|
|
40
|
-
|
|
41
38
|
const {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
className
|
|
40
|
+
} = props,
|
|
41
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
46
42
|
const ownerState = props;
|
|
47
43
|
const classes = useUtilityClasses(ownerState);
|
|
48
44
|
return /*#__PURE__*/_jsx(TimelineConnectorRoot, _extends({
|
|
@@ -51,29 +47,23 @@ const TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnect
|
|
|
51
47
|
ref: ref
|
|
52
48
|
}, other));
|
|
53
49
|
});
|
|
54
|
-
process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes
|
|
55
|
-
/* remove-proptypes */
|
|
56
|
-
= {
|
|
50
|
+
process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes /* remove-proptypes */ = {
|
|
57
51
|
// ----------------------------- Warning --------------------------------
|
|
58
52
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
59
53
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
60
54
|
// ----------------------------------------------------------------------
|
|
61
|
-
|
|
62
55
|
/**
|
|
63
56
|
* The content of the component.
|
|
64
57
|
*/
|
|
65
58
|
children: PropTypes.node,
|
|
66
|
-
|
|
67
59
|
/**
|
|
68
60
|
* Override or extend the styles applied to the component.
|
|
69
61
|
*/
|
|
70
62
|
classes: PropTypes.object,
|
|
71
|
-
|
|
72
63
|
/**
|
|
73
64
|
* @ignore
|
|
74
65
|
*/
|
|
75
66
|
className: PropTypes.string,
|
|
76
|
-
|
|
77
67
|
/**
|
|
78
68
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
79
69
|
*/
|
|
@@ -11,7 +11,6 @@ import Typography from '@mui/material/Typography';
|
|
|
11
11
|
import TimelineContext from '../Timeline/TimelineContext';
|
|
12
12
|
import { getTimelineContentUtilityClass } from './timelineContentClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
14
|
const useUtilityClasses = ownerState => {
|
|
16
15
|
const {
|
|
17
16
|
position,
|
|
@@ -22,7 +21,6 @@ const useUtilityClasses = ownerState => {
|
|
|
22
21
|
};
|
|
23
22
|
return composeClasses(slots, getTimelineContentUtilityClass, classes);
|
|
24
23
|
};
|
|
25
|
-
|
|
26
24
|
const TimelineContentRoot = styled(Typography, {
|
|
27
25
|
name: 'MuiTimelineContent',
|
|
28
26
|
slot: 'Root',
|
|
@@ -46,20 +44,16 @@ const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(i
|
|
|
46
44
|
props: inProps,
|
|
47
45
|
name: 'MuiTimelineContent'
|
|
48
46
|
});
|
|
49
|
-
|
|
50
47
|
const {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
className
|
|
49
|
+
} = props,
|
|
50
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
55
51
|
const {
|
|
56
52
|
position: positionContext
|
|
57
53
|
} = React.useContext(TimelineContext);
|
|
58
|
-
|
|
59
54
|
const ownerState = _extends({}, props, {
|
|
60
55
|
position: positionContext || 'right'
|
|
61
56
|
});
|
|
62
|
-
|
|
63
57
|
const classes = useUtilityClasses(ownerState);
|
|
64
58
|
return /*#__PURE__*/_jsx(TimelineContentRoot, _extends({
|
|
65
59
|
component: "div",
|
|
@@ -68,29 +62,23 @@ const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(i
|
|
|
68
62
|
ref: ref
|
|
69
63
|
}, other));
|
|
70
64
|
});
|
|
71
|
-
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes
|
|
72
|
-
/* remove-proptypes */
|
|
73
|
-
= {
|
|
65
|
+
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
|
|
74
66
|
// ----------------------------- Warning --------------------------------
|
|
75
67
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
68
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
77
69
|
// ----------------------------------------------------------------------
|
|
78
|
-
|
|
79
70
|
/**
|
|
80
71
|
* The content of the component.
|
|
81
72
|
*/
|
|
82
73
|
children: PropTypes.node,
|
|
83
|
-
|
|
84
74
|
/**
|
|
85
75
|
* Override or extend the styles applied to the component.
|
|
86
76
|
*/
|
|
87
77
|
classes: PropTypes.object,
|
|
88
|
-
|
|
89
78
|
/**
|
|
90
79
|
* @ignore
|
|
91
80
|
*/
|
|
92
81
|
className: PropTypes.string,
|
|
93
|
-
|
|
94
82
|
/**
|
|
95
83
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
96
84
|
*/
|
|
@@ -9,7 +9,6 @@ import { capitalize } from '@mui/material/utils';
|
|
|
9
9
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
10
|
import { getTimelineDotUtilityClass } from './timelineDotClasses';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
12
|
const useUtilityClasses = ownerState => {
|
|
14
13
|
const {
|
|
15
14
|
color,
|
|
@@ -21,7 +20,6 @@ const useUtilityClasses = ownerState => {
|
|
|
21
20
|
};
|
|
22
21
|
return composeClasses(slots, getTimelineDotUtilityClass, classes);
|
|
23
22
|
};
|
|
24
|
-
|
|
25
23
|
const TimelineDotRoot = styled('span', {
|
|
26
24
|
name: 'MuiTimelineDot',
|
|
27
25
|
slot: 'Root',
|
|
@@ -64,19 +62,16 @@ const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps,
|
|
|
64
62
|
props: inProps,
|
|
65
63
|
name: 'MuiTimelineDot'
|
|
66
64
|
});
|
|
67
|
-
|
|
68
65
|
const {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
className,
|
|
67
|
+
color = 'grey',
|
|
68
|
+
variant = 'filled'
|
|
69
|
+
} = props,
|
|
70
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
75
71
|
const ownerState = _extends({}, props, {
|
|
76
72
|
color,
|
|
77
73
|
variant
|
|
78
74
|
});
|
|
79
|
-
|
|
80
75
|
const classes = useUtilityClasses(ownerState);
|
|
81
76
|
return /*#__PURE__*/_jsx(TimelineDotRoot, _extends({
|
|
82
77
|
className: clsx(classes.root, className),
|
|
@@ -84,48 +79,36 @@ const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps,
|
|
|
84
79
|
ref: ref
|
|
85
80
|
}, other));
|
|
86
81
|
});
|
|
87
|
-
process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
|
|
88
|
-
/* remove-proptypes */
|
|
89
|
-
= {
|
|
82
|
+
process.env.NODE_ENV !== "production" ? TimelineDot.propTypes /* remove-proptypes */ = {
|
|
90
83
|
// ----------------------------- Warning --------------------------------
|
|
91
84
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
92
85
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
93
86
|
// ----------------------------------------------------------------------
|
|
94
|
-
|
|
95
87
|
/**
|
|
96
88
|
* The content of the component.
|
|
97
89
|
*/
|
|
98
90
|
children: PropTypes.node,
|
|
99
|
-
|
|
100
91
|
/**
|
|
101
92
|
* Override or extend the styles applied to the component.
|
|
102
93
|
*/
|
|
103
94
|
classes: PropTypes.object,
|
|
104
|
-
|
|
105
95
|
/**
|
|
106
96
|
* @ignore
|
|
107
97
|
*/
|
|
108
98
|
className: PropTypes.string,
|
|
109
|
-
|
|
110
99
|
/**
|
|
111
100
|
* The dot can have a different colors.
|
|
112
101
|
* @default 'grey'
|
|
113
102
|
*/
|
|
114
|
-
color: PropTypes
|
|
115
|
-
/* @typescript-to-proptypes-ignore */
|
|
116
|
-
.oneOfType([PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
117
|
-
|
|
103
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
118
104
|
/**
|
|
119
105
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
120
106
|
*/
|
|
121
107
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
122
|
-
|
|
123
108
|
/**
|
|
124
109
|
* The dot can appear filled or outlined.
|
|
125
110
|
* @default 'filled'
|
|
126
111
|
*/
|
|
127
|
-
variant: PropTypes
|
|
128
|
-
/* @typescript-to-proptypes-ignore */
|
|
129
|
-
.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])
|
|
112
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])
|
|
130
113
|
} : void 0;
|
|
131
114
|
export default TimelineDot;
|
|
@@ -12,7 +12,6 @@ import { timelineOppositeContentClasses } from '../TimelineOppositeContent';
|
|
|
12
12
|
import TimelineContext from '../Timeline/TimelineContext';
|
|
13
13
|
import { getTimelineItemUtilityClass } from './timelineItemClasses';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
|
|
16
15
|
const useUtilityClasses = ownerState => {
|
|
17
16
|
const {
|
|
18
17
|
position,
|
|
@@ -24,7 +23,6 @@ const useUtilityClasses = ownerState => {
|
|
|
24
23
|
};
|
|
25
24
|
return composeClasses(slots, getTimelineItemUtilityClass, classes);
|
|
26
25
|
};
|
|
27
|
-
|
|
28
26
|
const TimelineItemRoot = styled('li', {
|
|
29
27
|
name: 'MuiTimelineItem',
|
|
30
28
|
slot: 'Root',
|
|
@@ -65,13 +63,11 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
|
|
|
65
63
|
props: inProps,
|
|
66
64
|
name: 'MuiTimelineItem'
|
|
67
65
|
});
|
|
68
|
-
|
|
69
66
|
const {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
position: positionProp,
|
|
68
|
+
className
|
|
69
|
+
} = props,
|
|
70
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
75
71
|
const {
|
|
76
72
|
position: positionContext
|
|
77
73
|
} = React.useContext(TimelineContext);
|
|
@@ -81,12 +77,10 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
|
|
|
81
77
|
hasOppositeContent = true;
|
|
82
78
|
}
|
|
83
79
|
});
|
|
84
|
-
|
|
85
80
|
const ownerState = _extends({}, props, {
|
|
86
81
|
position: positionProp || positionContext || 'right',
|
|
87
82
|
hasOppositeContent
|
|
88
83
|
});
|
|
89
|
-
|
|
90
84
|
const classes = useUtilityClasses(ownerState);
|
|
91
85
|
const contextValue = React.useMemo(() => ({
|
|
92
86
|
position: ownerState.position
|
|
@@ -100,34 +94,27 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
|
|
|
100
94
|
}, other))
|
|
101
95
|
});
|
|
102
96
|
});
|
|
103
|
-
process.env.NODE_ENV !== "production" ? TimelineItem.propTypes
|
|
104
|
-
/* remove-proptypes */
|
|
105
|
-
= {
|
|
97
|
+
process.env.NODE_ENV !== "production" ? TimelineItem.propTypes /* remove-proptypes */ = {
|
|
106
98
|
// ----------------------------- Warning --------------------------------
|
|
107
99
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
100
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
109
101
|
// ----------------------------------------------------------------------
|
|
110
|
-
|
|
111
102
|
/**
|
|
112
103
|
* The content of the component.
|
|
113
104
|
*/
|
|
114
105
|
children: PropTypes.node,
|
|
115
|
-
|
|
116
106
|
/**
|
|
117
107
|
* Override or extend the styles applied to the component.
|
|
118
108
|
*/
|
|
119
109
|
classes: PropTypes.object,
|
|
120
|
-
|
|
121
110
|
/**
|
|
122
111
|
* @ignore
|
|
123
112
|
*/
|
|
124
113
|
className: PropTypes.string,
|
|
125
|
-
|
|
126
114
|
/**
|
|
127
115
|
* The position where the timeline's item should appear.
|
|
128
116
|
*/
|
|
129
117
|
position: PropTypes.oneOf(['left', 'right']),
|
|
130
|
-
|
|
131
118
|
/**
|
|
132
119
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
133
120
|
*/
|
|
@@ -11,7 +11,6 @@ import Typography from '@mui/material/Typography';
|
|
|
11
11
|
import TimelineContext from '../Timeline/TimelineContext';
|
|
12
12
|
import { getTimelineOppositeContentUtilityClass } from './timelineOppositeContentClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
14
|
const useUtilityClasses = ownerState => {
|
|
16
15
|
const {
|
|
17
16
|
position,
|
|
@@ -22,7 +21,6 @@ const useUtilityClasses = ownerState => {
|
|
|
22
21
|
};
|
|
23
22
|
return composeClasses(slots, getTimelineOppositeContentUtilityClass, classes);
|
|
24
23
|
};
|
|
25
|
-
|
|
26
24
|
const TimelineOppositeContentRoot = styled(Typography, {
|
|
27
25
|
name: 'MuiTimelineOppositeContent',
|
|
28
26
|
slot: 'Root',
|
|
@@ -47,20 +45,16 @@ const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineO
|
|
|
47
45
|
props: inProps,
|
|
48
46
|
name: 'MuiTimelineOppositeContent'
|
|
49
47
|
});
|
|
50
|
-
|
|
51
48
|
const {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
className
|
|
50
|
+
} = props,
|
|
51
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
56
52
|
const {
|
|
57
53
|
position: positionContext
|
|
58
54
|
} = React.useContext(TimelineContext);
|
|
59
|
-
|
|
60
55
|
const ownerState = _extends({}, props, {
|
|
61
56
|
position: positionContext || 'left'
|
|
62
57
|
});
|
|
63
|
-
|
|
64
58
|
const classes = useUtilityClasses(ownerState);
|
|
65
59
|
return /*#__PURE__*/_jsx(TimelineOppositeContentRoot, _extends({
|
|
66
60
|
component: "div",
|
|
@@ -69,29 +63,23 @@ const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineO
|
|
|
69
63
|
ref: ref
|
|
70
64
|
}, other));
|
|
71
65
|
});
|
|
72
|
-
process.env.NODE_ENV !== "production" ? TimelineOppositeContent.propTypes
|
|
73
|
-
/* remove-proptypes */
|
|
74
|
-
= {
|
|
66
|
+
process.env.NODE_ENV !== "production" ? TimelineOppositeContent.propTypes /* remove-proptypes */ = {
|
|
75
67
|
// ----------------------------- Warning --------------------------------
|
|
76
68
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
69
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
78
70
|
// ----------------------------------------------------------------------
|
|
79
|
-
|
|
80
71
|
/**
|
|
81
72
|
* The content of the component.
|
|
82
73
|
*/
|
|
83
74
|
children: PropTypes.node,
|
|
84
|
-
|
|
85
75
|
/**
|
|
86
76
|
* Override or extend the styles applied to the component.
|
|
87
77
|
*/
|
|
88
78
|
classes: PropTypes.object,
|
|
89
|
-
|
|
90
79
|
/**
|
|
91
80
|
* @ignore
|
|
92
81
|
*/
|
|
93
82
|
className: PropTypes.string,
|
|
94
|
-
|
|
95
83
|
/**
|
|
96
84
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
97
85
|
*/
|