@mui/lab 5.0.0-alpha.130 → 5.0.0-alpha.131
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.d.ts +3 -3
- package/AdapterDateFns/index.d.ts +1 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +3 -3
- package/AdapterDayjs/index.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
- package/AdapterLuxon/index.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.d.ts +3 -3
- package/AdapterMoment/index.d.ts +1 -1
- package/Alert/Alert.js +4 -4
- package/AlertTitle/AlertTitle.js +4 -4
- package/Autocomplete/Autocomplete.js +4 -4
- package/AvatarGroup/AvatarGroup.js +4 -4
- package/CHANGELOG.md +41 -0
- package/CalendarPicker/CalendarPicker.d.ts +14 -14
- package/CalendarPicker/index.d.ts +2 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -13
- package/CalendarPickerSkeleton/index.d.ts +2 -2
- package/ClockPicker/ClockPicker.d.ts +14 -14
- package/ClockPicker/index.d.ts +2 -2
- package/DatePicker/DatePicker.d.ts +10 -10
- package/DatePicker/index.d.ts +2 -2
- package/DateRangePicker/DateRangePicker.d.ts +11 -11
- package/DateRangePicker/index.d.ts +2 -2
- package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +10 -10
- package/DateTimePicker/index.d.ts +2 -2
- package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -10
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -10
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -10
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/LoadingButton.js +62 -74
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +10 -10
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/Masonry.js +29 -34
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +10 -10
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -10
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +10 -10
- package/MobileTimePicker/index.d.ts +2 -2
- package/MonthPicker/MonthPicker.d.ts +13 -13
- package/MonthPicker/index.d.ts +2 -2
- package/Pagination/Pagination.js +4 -4
- package/PaginationItem/PaginationItem.js +4 -4
- package/PickersDay/PickersDay.d.ts +13 -13
- package/PickersDay/index.d.ts +2 -2
- package/Rating/Rating.js +4 -4
- package/Skeleton/Skeleton.js +4 -4
- package/SpeedDial/SpeedDial.js +4 -4
- package/SpeedDialAction/SpeedDialAction.js +4 -4
- package/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/StaticDatePicker/StaticDatePicker.d.ts +10 -10
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -10
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +10 -10
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabList/TabList.js +8 -6
- package/TabPanel/TabPanel.js +13 -12
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +10 -10
- package/TimePicker/index.d.ts +2 -2
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/Timeline.js +12 -11
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/TimelineConnector.js +9 -7
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/TimelineContent.js +15 -15
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/TimelineDot.js +31 -38
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/TimelineItem.js +31 -33
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/TimelineSeparator.js +9 -7
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +4 -4
- package/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/TreeItem/TreeItem.js +37 -37
- package/TreeItem/TreeItemContent.js +18 -15
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/TreeView.js +33 -35
- package/TreeView/descendants.js +14 -13
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/YearPicker.d.ts +14 -14
- package/YearPicker/index.d.ts +2 -2
- package/index.js +1 -1
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
- package/internal/svg-icons/ArrowLeft.d.ts +7 -7
- package/internal/svg-icons/ArrowRight.d.ts +7 -7
- package/internal/svg-icons/Calendar.d.ts +7 -7
- package/internal/svg-icons/Clock.d.ts +7 -7
- package/internal/svg-icons/DateRange.d.ts +7 -7
- package/internal/svg-icons/Pen.d.ts +7 -7
- package/internal/svg-icons/Time.d.ts +7 -7
- package/legacy/Alert/Alert.js +2 -4
- package/legacy/AlertTitle/AlertTitle.js +2 -4
- package/legacy/Autocomplete/Autocomplete.js +2 -4
- package/legacy/AvatarGroup/AvatarGroup.js +2 -4
- package/legacy/LoadingButton/LoadingButton.js +15 -16
- package/legacy/Masonry/Masonry.js +8 -10
- package/legacy/Pagination/Pagination.js +2 -4
- package/legacy/PaginationItem/PaginationItem.js +2 -4
- package/legacy/Rating/Rating.js +2 -4
- package/legacy/Skeleton/Skeleton.js +2 -4
- package/legacy/SpeedDial/SpeedDial.js +2 -4
- package/legacy/SpeedDialAction/SpeedDialAction.js +2 -4
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +2 -4
- package/legacy/TabList/TabList.js +2 -4
- package/legacy/TabPanel/TabPanel.js +4 -6
- package/legacy/Timeline/Timeline.js +3 -5
- package/legacy/TimelineConnector/TimelineConnector.js +2 -4
- package/legacy/TimelineContent/TimelineContent.js +4 -6
- package/legacy/TimelineDot/TimelineDot.js +8 -10
- package/legacy/TimelineItem/TimelineItem.js +6 -7
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +4 -6
- package/legacy/TimelineSeparator/TimelineSeparator.js +2 -4
- package/legacy/ToggleButton/ToggleButton.js +2 -4
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +2 -4
- package/legacy/TreeItem/TreeItem.js +8 -9
- package/legacy/TreeItem/TreeItemContent.js +3 -5
- package/legacy/TreeView/TreeView.js +6 -8
- package/legacy/TreeView/descendants.js +4 -6
- package/legacy/index.js +1 -1
- package/modern/Alert/Alert.js +4 -4
- package/modern/AlertTitle/AlertTitle.js +4 -4
- package/modern/Autocomplete/Autocomplete.js +4 -4
- package/modern/AvatarGroup/AvatarGroup.js +4 -4
- package/modern/LoadingButton/LoadingButton.js +62 -74
- package/modern/Masonry/Masonry.js +29 -34
- package/modern/Pagination/Pagination.js +4 -4
- package/modern/PaginationItem/PaginationItem.js +4 -4
- package/modern/Rating/Rating.js +4 -4
- package/modern/Skeleton/Skeleton.js +4 -4
- package/modern/SpeedDial/SpeedDial.js +4 -4
- package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
- package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/modern/TabList/TabList.js +8 -6
- package/modern/TabPanel/TabPanel.js +13 -12
- package/modern/Timeline/Timeline.js +12 -11
- package/modern/TimelineConnector/TimelineConnector.js +9 -7
- package/modern/TimelineContent/TimelineContent.js +15 -15
- package/modern/TimelineDot/TimelineDot.js +31 -38
- package/modern/TimelineItem/TimelineItem.js +31 -33
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/modern/TimelineSeparator/TimelineSeparator.js +9 -7
- package/modern/ToggleButton/ToggleButton.js +4 -4
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/modern/TreeItem/TreeItem.js +37 -37
- package/modern/TreeItem/TreeItemContent.js +18 -15
- package/modern/TreeView/TreeView.js +33 -35
- package/modern/TreeView/descendants.js +14 -13
- package/modern/index.js +1 -1
- package/node/Alert/Alert.js +4 -4
- package/node/AlertTitle/AlertTitle.js +4 -4
- package/node/Autocomplete/Autocomplete.js +4 -4
- package/node/AvatarGroup/AvatarGroup.js +4 -4
- package/node/LoadingButton/LoadingButton.js +62 -74
- package/node/Masonry/Masonry.js +29 -34
- package/node/Pagination/Pagination.js +4 -4
- package/node/PaginationItem/PaginationItem.js +4 -4
- package/node/Rating/Rating.js +4 -4
- package/node/Skeleton/Skeleton.js +4 -4
- package/node/SpeedDial/SpeedDial.js +4 -4
- package/node/SpeedDialAction/SpeedDialAction.js +4 -4
- package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
- package/node/TabList/TabList.js +8 -6
- package/node/TabPanel/TabPanel.js +13 -12
- package/node/Timeline/Timeline.js +12 -13
- package/node/TimelineConnector/TimelineConnector.js +9 -7
- package/node/TimelineContent/TimelineContent.js +15 -15
- package/node/TimelineDot/TimelineDot.js +31 -38
- package/node/TimelineItem/TimelineItem.js +31 -33
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/node/TimelineSeparator/TimelineSeparator.js +9 -7
- package/node/ToggleButton/ToggleButton.js +4 -4
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/node/TreeItem/TreeItem.js +37 -37
- package/node/TreeItem/TreeItemContent.js +22 -18
- package/node/TreeView/TreeView.js +33 -35
- package/node/TreeView/descendants.js +16 -16
- package/node/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface TimelineContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
-
positionRight: string;
|
|
6
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
-
positionLeft: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
}
|
|
11
|
-
export type TimelineContentClassKey = keyof TimelineContentClasses;
|
|
12
|
-
export declare function getTimelineContentUtilityClass(slot: string): string;
|
|
13
|
-
declare const timelineContentClasses: TimelineContentClasses;
|
|
14
|
-
export default timelineContentClasses;
|
|
1
|
+
export interface TimelineContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
+
positionRight: string;
|
|
6
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
+
positionLeft: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
}
|
|
11
|
+
export type TimelineContentClassKey = keyof TimelineContentClasses;
|
|
12
|
+
export declare function getTimelineContentUtilityClass(slot: string): string;
|
|
13
|
+
declare const timelineContentClasses: TimelineContentClasses;
|
|
14
|
+
export default timelineContentClasses;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
const _excluded = ["className", "color", "variant"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import PropTypes from 'prop-types';
|
|
3
6
|
import clsx from 'clsx';
|
|
@@ -29,7 +32,7 @@ const TimelineDotRoot = styled('span', {
|
|
|
29
32
|
})(({
|
|
30
33
|
ownerState,
|
|
31
34
|
theme
|
|
32
|
-
}) => ({
|
|
35
|
+
}) => _extends({
|
|
33
36
|
display: 'flex',
|
|
34
37
|
alignSelf: 'baseline',
|
|
35
38
|
borderStyle: 'solid',
|
|
@@ -37,54 +40,44 @@ const TimelineDotRoot = styled('span', {
|
|
|
37
40
|
padding: 4,
|
|
38
41
|
borderRadius: '50%',
|
|
39
42
|
boxShadow: (theme.vars || theme).shadows[1],
|
|
40
|
-
margin: '11.5px 0'
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
...(ownerState.color === 'grey' ? {
|
|
58
|
-
borderColor: (theme.vars || theme).palette.grey[400]
|
|
59
|
-
} : {
|
|
60
|
-
borderColor: (theme.vars || theme).palette[ownerState.color].main
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
}));
|
|
43
|
+
margin: '11.5px 0'
|
|
44
|
+
}, ownerState.variant === 'filled' && _extends({
|
|
45
|
+
borderColor: 'transparent'
|
|
46
|
+
}, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
|
|
47
|
+
color: (theme.vars || theme).palette.grey[50],
|
|
48
|
+
backgroundColor: (theme.vars || theme).palette.grey[400]
|
|
49
|
+
} : {
|
|
50
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
51
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
52
|
+
})), ownerState.variant === 'outlined' && _extends({
|
|
53
|
+
boxShadow: 'none',
|
|
54
|
+
backgroundColor: 'transparent'
|
|
55
|
+
}, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
|
|
56
|
+
borderColor: (theme.vars || theme).palette.grey[400]
|
|
57
|
+
} : {
|
|
58
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].main
|
|
59
|
+
}))));
|
|
65
60
|
const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps, ref) {
|
|
66
61
|
const props = useThemeProps({
|
|
67
62
|
props: inProps,
|
|
68
63
|
name: 'MuiTimelineDot'
|
|
69
64
|
});
|
|
70
65
|
const {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const ownerState = {
|
|
77
|
-
...props,
|
|
66
|
+
className,
|
|
67
|
+
color = 'grey',
|
|
68
|
+
variant = 'filled'
|
|
69
|
+
} = props,
|
|
70
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
71
|
+
const ownerState = _extends({}, props, {
|
|
78
72
|
color,
|
|
79
73
|
variant
|
|
80
|
-
};
|
|
74
|
+
});
|
|
81
75
|
const classes = useUtilityClasses(ownerState);
|
|
82
|
-
return /*#__PURE__*/_jsx(TimelineDotRoot, {
|
|
76
|
+
return /*#__PURE__*/_jsx(TimelineDotRoot, _extends({
|
|
83
77
|
className: clsx(classes.root, className),
|
|
84
78
|
ownerState: ownerState,
|
|
85
|
-
ref: ref
|
|
86
|
-
|
|
87
|
-
});
|
|
79
|
+
ref: ref
|
|
80
|
+
}, other));
|
|
88
81
|
});
|
|
89
82
|
process.env.NODE_ENV !== "production" ? TimelineDot.propTypes /* remove-proptypes */ = {
|
|
90
83
|
// ----------------------------- Warning --------------------------------
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface TimelineDotClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
-
filled: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
-
outlined: string;
|
|
8
|
-
/** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
|
|
9
|
-
filledGrey: string;
|
|
10
|
-
/** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
|
|
11
|
-
outlinedGrey: string;
|
|
12
|
-
/** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
|
|
13
|
-
filledPrimary: string;
|
|
14
|
-
/** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
|
|
15
|
-
outlinedPrimary: string;
|
|
16
|
-
/** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
|
|
17
|
-
filledSecondary: string;
|
|
18
|
-
/** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
|
|
19
|
-
outlinedSecondary: string;
|
|
20
|
-
}
|
|
21
|
-
export type TimelineDotClassKey = keyof TimelineDotClasses;
|
|
22
|
-
export declare function getTimelineDotUtilityClass(slot: string): string;
|
|
23
|
-
declare const timelineDotClasses: TimelineDotClasses;
|
|
24
|
-
export default timelineDotClasses;
|
|
1
|
+
export interface TimelineDotClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
+
filled: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
+
outlined: string;
|
|
8
|
+
/** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
|
|
9
|
+
filledGrey: string;
|
|
10
|
+
/** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
|
|
11
|
+
outlinedGrey: string;
|
|
12
|
+
/** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
|
|
13
|
+
filledPrimary: string;
|
|
14
|
+
/** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
|
|
15
|
+
outlinedPrimary: string;
|
|
16
|
+
/** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
|
|
17
|
+
filledSecondary: string;
|
|
18
|
+
/** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
|
|
19
|
+
outlinedSecondary: string;
|
|
20
|
+
}
|
|
21
|
+
export type TimelineDotClassKey = keyof TimelineDotClasses;
|
|
22
|
+
export declare function getTimelineDotUtilityClass(slot: string): string;
|
|
23
|
+
declare const timelineDotClasses: TimelineDotClasses;
|
|
24
|
+
export default timelineDotClasses;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
const _excluded = ["position", "className"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import PropTypes from 'prop-types';
|
|
3
6
|
import clsx from 'clsx';
|
|
@@ -31,32 +34,29 @@ const TimelineItemRoot = styled('li', {
|
|
|
31
34
|
}
|
|
32
35
|
})(({
|
|
33
36
|
ownerState
|
|
34
|
-
}) => ({
|
|
37
|
+
}) => _extends({
|
|
35
38
|
listStyle: 'none',
|
|
36
39
|
display: 'flex',
|
|
37
40
|
position: 'relative',
|
|
38
|
-
minHeight: 70
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
'
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
textAlign: 'left'
|
|
50
|
-
}
|
|
41
|
+
minHeight: 70
|
|
42
|
+
}, ownerState.position === 'left' && {
|
|
43
|
+
flexDirection: 'row-reverse'
|
|
44
|
+
}, ownerState.position === 'alternate' && {
|
|
45
|
+
'&:nth-of-type(even)': {
|
|
46
|
+
flexDirection: 'row-reverse',
|
|
47
|
+
[`& .${timelineContentClasses.root}`]: {
|
|
48
|
+
textAlign: 'right'
|
|
49
|
+
},
|
|
50
|
+
[`& .${timelineOppositeContentClasses.root}`]: {
|
|
51
|
+
textAlign: 'left'
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
})
|
|
53
|
+
}
|
|
54
|
+
}, !ownerState.hasOppositeContent && {
|
|
55
|
+
'&:before': {
|
|
56
|
+
content: '""',
|
|
57
|
+
flex: 1,
|
|
58
|
+
padding: '6px 16px'
|
|
59
|
+
}
|
|
60
60
|
}));
|
|
61
61
|
const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps, ref) {
|
|
62
62
|
const props = useThemeProps({
|
|
@@ -64,10 +64,10 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
|
|
|
64
64
|
name: 'MuiTimelineItem'
|
|
65
65
|
});
|
|
66
66
|
const {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
position: positionProp,
|
|
68
|
+
className
|
|
69
|
+
} = props,
|
|
70
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
71
71
|
const {
|
|
72
72
|
position: positionContext
|
|
73
73
|
} = React.useContext(TimelineContext);
|
|
@@ -77,23 +77,21 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
|
|
|
77
77
|
hasOppositeContent = true;
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
const ownerState = {
|
|
81
|
-
...props,
|
|
80
|
+
const ownerState = _extends({}, props, {
|
|
82
81
|
position: positionProp || positionContext || 'right',
|
|
83
82
|
hasOppositeContent
|
|
84
|
-
};
|
|
83
|
+
});
|
|
85
84
|
const classes = useUtilityClasses(ownerState);
|
|
86
85
|
const contextValue = React.useMemo(() => ({
|
|
87
86
|
position: ownerState.position
|
|
88
87
|
}), [ownerState.position]);
|
|
89
88
|
return /*#__PURE__*/_jsx(TimelineContext.Provider, {
|
|
90
89
|
value: contextValue,
|
|
91
|
-
children: /*#__PURE__*/_jsx(TimelineItemRoot, {
|
|
90
|
+
children: /*#__PURE__*/_jsx(TimelineItemRoot, _extends({
|
|
92
91
|
className: clsx(classes.root, className),
|
|
93
92
|
ownerState: ownerState,
|
|
94
|
-
ref: ref
|
|
95
|
-
|
|
96
|
-
})
|
|
93
|
+
ref: ref
|
|
94
|
+
}, other))
|
|
97
95
|
});
|
|
98
96
|
});
|
|
99
97
|
process.env.NODE_ENV !== "production" ? TimelineItem.propTypes /* remove-proptypes */ = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TimelineItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
5
|
-
positionLeft: string;
|
|
6
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
7
|
-
positionRight: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
/** Styles applied to the root element if TimelineOppositeContent isn't provided. */
|
|
11
|
-
missingOppositeContent: string;
|
|
12
|
-
}
|
|
13
|
-
export type TimelineItemClassKey = keyof TimelineItemClasses;
|
|
14
|
-
export declare function getTimelineItemUtilityClass(slot: string): string;
|
|
15
|
-
declare const timelineItemClasses: TimelineItemClasses;
|
|
16
|
-
export default timelineItemClasses;
|
|
1
|
+
export interface TimelineItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
5
|
+
positionLeft: string;
|
|
6
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
7
|
+
positionRight: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
/** Styles applied to the root element if TimelineOppositeContent isn't provided. */
|
|
11
|
+
missingOppositeContent: string;
|
|
12
|
+
}
|
|
13
|
+
export type TimelineItemClassKey = keyof TimelineItemClasses;
|
|
14
|
+
export declare function getTimelineItemUtilityClass(slot: string): string;
|
|
15
|
+
declare const timelineItemClasses: TimelineItemClasses;
|
|
16
|
+
export default timelineItemClasses;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
const _excluded = ["className"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import PropTypes from 'prop-types';
|
|
3
6
|
import clsx from 'clsx';
|
|
@@ -29,14 +32,13 @@ const TimelineOppositeContentRoot = styled(Typography, {
|
|
|
29
32
|
}
|
|
30
33
|
})(({
|
|
31
34
|
ownerState
|
|
32
|
-
}) => ({
|
|
35
|
+
}) => _extends({
|
|
33
36
|
padding: '6px 16px',
|
|
34
37
|
marginRight: 'auto',
|
|
35
38
|
textAlign: 'right',
|
|
36
|
-
flex: 1
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
39
|
+
flex: 1
|
|
40
|
+
}, ownerState.position === 'left' && {
|
|
41
|
+
textAlign: 'left'
|
|
40
42
|
}));
|
|
41
43
|
const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineOppositeContent(inProps, ref) {
|
|
42
44
|
const props = useThemeProps({
|
|
@@ -44,24 +46,22 @@ const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineO
|
|
|
44
46
|
name: 'MuiTimelineOppositeContent'
|
|
45
47
|
});
|
|
46
48
|
const {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
className
|
|
50
|
+
} = props,
|
|
51
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
50
52
|
const {
|
|
51
53
|
position: positionContext
|
|
52
54
|
} = React.useContext(TimelineContext);
|
|
53
|
-
const ownerState = {
|
|
54
|
-
...props,
|
|
55
|
+
const ownerState = _extends({}, props, {
|
|
55
56
|
position: positionContext || 'left'
|
|
56
|
-
};
|
|
57
|
+
});
|
|
57
58
|
const classes = useUtilityClasses(ownerState);
|
|
58
|
-
return /*#__PURE__*/_jsx(TimelineOppositeContentRoot, {
|
|
59
|
+
return /*#__PURE__*/_jsx(TimelineOppositeContentRoot, _extends({
|
|
59
60
|
component: "div",
|
|
60
61
|
className: clsx(classes.root, className),
|
|
61
62
|
ownerState: ownerState,
|
|
62
|
-
ref: ref
|
|
63
|
-
|
|
64
|
-
});
|
|
63
|
+
ref: ref
|
|
64
|
+
}, other));
|
|
65
65
|
});
|
|
66
66
|
process.env.NODE_ENV !== "production" ? TimelineOppositeContent.propTypes /* remove-proptypes */ = {
|
|
67
67
|
// ----------------------------- Warning --------------------------------
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface TimelineOppositeContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
-
positionRight: string;
|
|
6
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
-
positionLeft: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
}
|
|
11
|
-
export type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
|
|
12
|
-
export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
|
|
13
|
-
declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
|
|
14
|
-
export default timelineOppositeContentClasses;
|
|
1
|
+
export interface TimelineOppositeContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
+
positionRight: string;
|
|
6
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
+
positionLeft: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
}
|
|
11
|
+
export type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
|
|
12
|
+
export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
|
|
13
|
+
declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
|
|
14
|
+
export default timelineOppositeContentClasses;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
const _excluded = ["className"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import PropTypes from 'prop-types';
|
|
3
6
|
import clsx from 'clsx';
|
|
@@ -30,17 +33,16 @@ const TimelineSeparator = /*#__PURE__*/React.forwardRef(function TimelineSeparat
|
|
|
30
33
|
name: 'MuiTimelineSeparator'
|
|
31
34
|
});
|
|
32
35
|
const {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
className
|
|
37
|
+
} = props,
|
|
38
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
36
39
|
const ownerState = props;
|
|
37
40
|
const classes = useUtilityClasses(ownerState);
|
|
38
|
-
return /*#__PURE__*/_jsx(TimelineSeparatorRoot, {
|
|
41
|
+
return /*#__PURE__*/_jsx(TimelineSeparatorRoot, _extends({
|
|
39
42
|
className: clsx(classes.root, className),
|
|
40
43
|
ownerState: ownerState,
|
|
41
|
-
ref: ref
|
|
42
|
-
|
|
43
|
-
});
|
|
44
|
+
ref: ref
|
|
45
|
+
}, other));
|
|
44
46
|
});
|
|
45
47
|
process.env.NODE_ENV !== "production" ? TimelineSeparator.propTypes /* remove-proptypes */ = {
|
|
46
48
|
// ----------------------------- Warning --------------------------------
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TimelineSeparatorClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
|
|
6
|
-
export declare function getTimelineSeparatorUtilityClass(slot: string): string;
|
|
7
|
-
declare const timelineSeparatorClasses: TimelineSeparatorClasses;
|
|
8
|
-
export default timelineSeparatorClasses;
|
|
1
|
+
export interface TimelineSeparatorClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
|
|
6
|
+
export declare function getTimelineSeparatorUtilityClass(slot: string): string;
|
|
7
|
+
declare const timelineSeparatorClasses: TimelineSeparatorClasses;
|
|
8
|
+
export default timelineSeparatorClasses;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import ToggleButton from '@mui/material/ToggleButton';
|
|
3
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -11,8 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButton(pro
|
|
|
11
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'));
|
|
12
13
|
warnedOnce = true;
|
|
13
14
|
}
|
|
14
|
-
return /*#__PURE__*/_jsx(ToggleButton, {
|
|
15
|
-
ref: ref
|
|
16
|
-
|
|
17
|
-
});
|
|
15
|
+
return /*#__PURE__*/_jsx(ToggleButton, _extends({
|
|
16
|
+
ref: ref
|
|
17
|
+
}, props));
|
|
18
18
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
|
|
3
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -11,8 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButtonGrou
|
|
|
11
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'));
|
|
12
13
|
warnedOnce = true;
|
|
13
14
|
}
|
|
14
|
-
return /*#__PURE__*/_jsx(ToggleButtonGroup, {
|
|
15
|
-
ref: ref
|
|
16
|
-
|
|
17
|
-
});
|
|
15
|
+
return /*#__PURE__*/_jsx(ToggleButtonGroup, _extends({
|
|
16
|
+
ref: ref
|
|
17
|
+
}, props));
|
|
18
18
|
});
|
package/TreeItem/TreeItem.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
const _excluded = ["children", "className", "collapseIcon", "ContentComponent", "ContentProps", "endIcon", "expandIcon", "disabled", "icon", "id", "label", "nodeId", "onClick", "onMouseDown", "TransitionComponent", "TransitionProps"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import clsx from 'clsx';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
@@ -95,14 +98,13 @@ const StyledTreeItemContent = styled(TreeItemContent, {
|
|
|
95
98
|
fontSize: 18
|
|
96
99
|
}
|
|
97
100
|
},
|
|
98
|
-
[`& .${treeItemClasses.label}`]: {
|
|
101
|
+
[`& .${treeItemClasses.label}`]: _extends({
|
|
99
102
|
width: '100%',
|
|
100
103
|
// fixes overflow - see https://github.com/mui/material-ui/issues/27372
|
|
101
104
|
minWidth: 0,
|
|
102
105
|
paddingLeft: 4,
|
|
103
|
-
position: 'relative'
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
+
position: 'relative'
|
|
107
|
+
}, theme.typography.body1)
|
|
106
108
|
}));
|
|
107
109
|
const TreeItemGroup = styled(Collapse, {
|
|
108
110
|
name: 'MuiTreeItem',
|
|
@@ -119,24 +121,24 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
|
|
|
119
121
|
name: 'MuiTreeItem'
|
|
120
122
|
});
|
|
121
123
|
const {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
124
|
+
children,
|
|
125
|
+
className,
|
|
126
|
+
collapseIcon,
|
|
127
|
+
ContentComponent = TreeItemContent,
|
|
128
|
+
ContentProps,
|
|
129
|
+
endIcon,
|
|
130
|
+
expandIcon,
|
|
131
|
+
disabled: disabledProp,
|
|
132
|
+
icon,
|
|
133
|
+
id: idProp,
|
|
134
|
+
label,
|
|
135
|
+
nodeId,
|
|
136
|
+
onClick,
|
|
137
|
+
onMouseDown,
|
|
138
|
+
TransitionComponent = Collapse,
|
|
139
|
+
TransitionProps
|
|
140
|
+
} = props,
|
|
141
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
140
142
|
const {
|
|
141
143
|
icons: contextIcons = {},
|
|
142
144
|
focus,
|
|
@@ -174,13 +176,12 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
|
|
|
174
176
|
const focused = isFocused ? isFocused(nodeId) : false;
|
|
175
177
|
const selected = isSelected ? isSelected(nodeId) : false;
|
|
176
178
|
const disabled = isDisabled ? isDisabled(nodeId) : false;
|
|
177
|
-
const ownerState = {
|
|
178
|
-
...props,
|
|
179
|
+
const ownerState = _extends({}, props, {
|
|
179
180
|
expanded,
|
|
180
181
|
focused,
|
|
181
182
|
selected,
|
|
182
183
|
disabled
|
|
183
|
-
};
|
|
184
|
+
});
|
|
184
185
|
const classes = useUtilityClasses(ownerState);
|
|
185
186
|
let displayIcon;
|
|
186
187
|
let expansionIcon;
|
|
@@ -252,7 +253,7 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
|
|
|
252
253
|
focus(event, nodeId);
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
|
-
return /*#__PURE__*/_jsxs(TreeItemRoot, {
|
|
256
|
+
return /*#__PURE__*/_jsxs(TreeItemRoot, _extends({
|
|
256
257
|
className: clsx(classes.root, className),
|
|
257
258
|
role: "treeitem",
|
|
258
259
|
"aria-expanded": expandable ? expanded : null,
|
|
@@ -260,11 +261,11 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
|
|
|
260
261
|
"aria-disabled": disabled || null,
|
|
261
262
|
ref: handleRef,
|
|
262
263
|
id: id,
|
|
263
|
-
tabIndex: -1
|
|
264
|
-
|
|
264
|
+
tabIndex: -1
|
|
265
|
+
}, other, {
|
|
265
266
|
ownerState: ownerState,
|
|
266
267
|
onFocus: handleFocus,
|
|
267
|
-
children: [/*#__PURE__*/_jsx(StyledTreeItemContent, {
|
|
268
|
+
children: [/*#__PURE__*/_jsx(StyledTreeItemContent, _extends({
|
|
268
269
|
as: ContentComponent,
|
|
269
270
|
ref: contentRef,
|
|
270
271
|
classes: {
|
|
@@ -283,22 +284,21 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
|
|
|
283
284
|
icon: icon,
|
|
284
285
|
expansionIcon: expansionIcon,
|
|
285
286
|
displayIcon: displayIcon,
|
|
286
|
-
ownerState: ownerState
|
|
287
|
-
|
|
288
|
-
}), children && /*#__PURE__*/_jsx(DescendantProvider, {
|
|
287
|
+
ownerState: ownerState
|
|
288
|
+
}, ContentProps)), children && /*#__PURE__*/_jsx(DescendantProvider, {
|
|
289
289
|
id: nodeId,
|
|
290
|
-
children: /*#__PURE__*/_jsx(TreeItemGroup, {
|
|
290
|
+
children: /*#__PURE__*/_jsx(TreeItemGroup, _extends({
|
|
291
291
|
as: TransitionComponent,
|
|
292
292
|
unmountOnExit: true,
|
|
293
293
|
className: classes.group,
|
|
294
294
|
in: expanded,
|
|
295
295
|
component: "ul",
|
|
296
|
-
role: "group"
|
|
297
|
-
|
|
296
|
+
role: "group"
|
|
297
|
+
}, TransitionProps, {
|
|
298
298
|
children: children
|
|
299
|
-
})
|
|
299
|
+
}))
|
|
300
300
|
})]
|
|
301
|
-
});
|
|
301
|
+
}));
|
|
302
302
|
});
|
|
303
303
|
process.env.NODE_ENV !== "production" ? TreeItem.propTypes /* remove-proptypes */ = {
|
|
304
304
|
// ----------------------------- Warning --------------------------------
|