@mui/lab 6.0.0-alpha.7 → 6.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alert/Alert.js +4 -4
- package/AlertTitle/AlertTitle.js +4 -4
- package/Autocomplete/Autocomplete.js +4 -4
- package/AvatarGroup/AvatarGroup.js +4 -4
- package/CHANGELOG.md +113 -2
- package/CalendarPicker/CalendarPicker.d.ts +1 -1
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +1 -1
- package/ClockPicker/ClockPicker.d.ts +1 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/DateRangePickerDay/DateRangePickerDay.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/DesktopDatePicker/DesktopDatePicker.d.ts +1 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -1
- package/DesktopTimePicker/DesktopTimePicker.d.ts +1 -1
- package/LoadingButton/LoadingButton.js +21 -19
- package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/Masonry/Masonry.js +35 -30
- package/MobileDatePicker/MobileDatePicker.d.ts +1 -1
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -1
- package/MobileTimePicker/MobileTimePicker.d.ts +1 -1
- package/MonthPicker/MonthPicker.d.ts +1 -1
- package/Pagination/Pagination.js +4 -4
- package/PaginationItem/PaginationItem.js +4 -4
- package/PickersDay/PickersDay.d.ts +1 -1
- 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 +1 -1
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +1 -1
- package/StaticTimePicker/StaticTimePicker.d.ts +1 -1
- package/TabContext/TabContext.d.ts +1 -1
- package/TabList/TabList.js +6 -8
- package/TabPanel/TabPanel.d.ts +1 -1
- package/TabPanel/TabPanel.js +13 -14
- package/TimePicker/TimePicker.d.ts +1 -1
- package/Timeline/Timeline.js +11 -12
- package/TimelineConnector/TimelineConnector.d.ts +1 -1
- package/TimelineConnector/TimelineConnector.js +7 -9
- package/TimelineContent/TimelineContent.d.ts +1 -1
- package/TimelineContent/TimelineContent.js +15 -15
- package/TimelineDot/TimelineDot.d.ts +1 -1
- package/TimelineDot/TimelineDot.js +38 -31
- package/TimelineItem/TimelineItem.d.ts +1 -1
- package/TimelineItem/TimelineItem.js +33 -31
- package/TimelineOppositeContent/TimelineOppositeContent.d.ts +3 -1
- package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/TimelineSeparator/TimelineSeparator.d.ts +1 -1
- package/TimelineSeparator/TimelineSeparator.js +7 -9
- package/ToggleButton/ToggleButton.js +4 -4
- package/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/TreeItem/TreeItem.d.ts +1 -1
- package/TreeView/TreeView.d.ts +1 -1
- package/YearPicker/YearPicker.d.ts +1 -1
- package/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 +21 -19
- package/modern/Masonry/Masonry.js +35 -30
- 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 +6 -8
- package/modern/TabPanel/TabPanel.js +13 -14
- package/modern/Timeline/Timeline.js +11 -12
- package/modern/TimelineConnector/TimelineConnector.js +7 -9
- package/modern/TimelineContent/TimelineContent.js +15 -15
- package/modern/TimelineDot/TimelineDot.js +38 -31
- package/modern/TimelineItem/TimelineItem.js +33 -31
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/modern/TimelineSeparator/TimelineSeparator.js +7 -9
- package/modern/ToggleButton/ToggleButton.js +4 -4
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- 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 +21 -19
- package/node/Masonry/Masonry.js +35 -30
- 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 +6 -8
- package/node/TabPanel/TabPanel.js +13 -14
- package/node/Timeline/Timeline.js +11 -12
- package/node/TimelineConnector/TimelineConnector.js +7 -9
- package/node/TimelineContent/TimelineContent.js +15 -15
- package/node/TimelineDot/TimelineDot.js +38 -31
- package/node/TimelineItem/TimelineItem.js +33 -31
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/node/TimelineSeparator/TimelineSeparator.js +7 -9
- package/node/ToggleButton/ToggleButton.js +4 -4
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
- package/node/index.js +1 -1
- package/package.json +7 -7
package/SpeedDial/SpeedDial.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import SpeedDial from '@mui/material/SpeedDial';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props,
|
|
|
14
13
|
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'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDial,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(SpeedDial, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import SpeedDialAction from '@mui/material/SpeedDialAction';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(
|
|
|
14
13
|
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'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialAction,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(SpeedDialAction, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import SpeedDialIcon from '@mui/material/SpeedDialIcon';
|
|
6
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(pr
|
|
|
14
13
|
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'));
|
|
15
14
|
warnedOnce = true;
|
|
16
15
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialIcon,
|
|
18
|
-
ref: ref
|
|
19
|
-
|
|
16
|
+
return /*#__PURE__*/_jsx(SpeedDialIcon, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
20
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
@@ -25,7 +25,7 @@ export interface TabContextProps {
|
|
|
25
25
|
*
|
|
26
26
|
* - [TabContext API](https://mui.com/material-ui/api/tab-context/)
|
|
27
27
|
*/
|
|
28
|
-
export default function TabContext(props: TabContextProps): JSX.Element;
|
|
28
|
+
export default function TabContext(props: TabContextProps): React.JSX.Element;
|
|
29
29
|
export function useTabContext(): TabContextValue | null;
|
|
30
30
|
export function getPanelId(context: TabContextValue, tabValue: string): string;
|
|
31
31
|
export function getTabId(context: TabContextValue, tabValue: string): string;
|
package/TabList/TabList.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["children"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import Tabs from '@mui/material/Tabs';
|
|
@@ -10,9 +7,9 @@ import { useTabContext, getTabId, getPanelId } from '../TabContext';
|
|
|
10
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
8
|
const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
12
9
|
const {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
children: childrenProp,
|
|
11
|
+
...other
|
|
12
|
+
} = props;
|
|
16
13
|
const context = useTabContext();
|
|
17
14
|
if (context === null) {
|
|
18
15
|
throw new TypeError('No TabContext provided');
|
|
@@ -27,11 +24,12 @@ const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
|
27
24
|
id: getTabId(context, child.props.value)
|
|
28
25
|
});
|
|
29
26
|
});
|
|
30
|
-
return /*#__PURE__*/_jsx(Tabs,
|
|
27
|
+
return /*#__PURE__*/_jsx(Tabs, {
|
|
28
|
+
...other,
|
|
31
29
|
ref: ref,
|
|
32
30
|
value: context.value,
|
|
33
31
|
children: children
|
|
34
|
-
})
|
|
32
|
+
});
|
|
35
33
|
});
|
|
36
34
|
process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
|
|
37
35
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
package/TabPanel/TabPanel.d.ts
CHANGED
|
@@ -39,4 +39,4 @@ export interface TabPanelProps extends StandardProps<React.HTMLAttributes<HTMLDi
|
|
|
39
39
|
*
|
|
40
40
|
* - [TabPanel API](https://mui.com/material-ui/api/tab-panel/)
|
|
41
41
|
*/
|
|
42
|
-
export default function TabPanel(props: TabPanelProps): JSX.Element;
|
|
42
|
+
export default function TabPanel(props: TabPanelProps): React.JSX.Element;
|
package/TabPanel/TabPanel.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["children", "className", "value", "keepMounted"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -36,13 +33,15 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
36
33
|
name: 'MuiTabPanel'
|
|
37
34
|
});
|
|
38
35
|
const {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const ownerState =
|
|
36
|
+
children,
|
|
37
|
+
className,
|
|
38
|
+
value,
|
|
39
|
+
keepMounted = false,
|
|
40
|
+
...other
|
|
41
|
+
} = props;
|
|
42
|
+
const ownerState = {
|
|
43
|
+
...props
|
|
44
|
+
};
|
|
46
45
|
const classes = useUtilityClasses(ownerState);
|
|
47
46
|
const context = useTabContext();
|
|
48
47
|
if (context === null) {
|
|
@@ -50,17 +49,17 @@ const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
|
50
49
|
}
|
|
51
50
|
const id = getPanelId(context, value);
|
|
52
51
|
const tabId = getTabId(context, value);
|
|
53
|
-
return /*#__PURE__*/_jsx(TabPanelRoot,
|
|
52
|
+
return /*#__PURE__*/_jsx(TabPanelRoot, {
|
|
54
53
|
"aria-labelledby": tabId,
|
|
55
54
|
className: clsx(classes.root, className),
|
|
56
55
|
hidden: value !== context.value,
|
|
57
56
|
id: id,
|
|
58
57
|
ref: ref,
|
|
59
58
|
role: "tabpanel",
|
|
60
|
-
ownerState: ownerState
|
|
61
|
-
|
|
59
|
+
ownerState: ownerState,
|
|
60
|
+
...other,
|
|
62
61
|
children: (keepMounted || value === context.value) && children
|
|
63
|
-
})
|
|
62
|
+
});
|
|
64
63
|
});
|
|
65
64
|
process.env.NODE_ENV !== "production" ? TabPanel.propTypes /* remove-proptypes */ = {
|
|
66
65
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
2
|
+
type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
package/Timeline/Timeline.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["position", "className"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -54,26 +51,28 @@ const Timeline = /*#__PURE__*/React.forwardRef(function Timeline(inProps, ref) {
|
|
|
54
51
|
name: 'MuiTimeline'
|
|
55
52
|
});
|
|
56
53
|
const {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const ownerState =
|
|
54
|
+
position = 'right',
|
|
55
|
+
className,
|
|
56
|
+
...other
|
|
57
|
+
} = props;
|
|
58
|
+
const ownerState = {
|
|
59
|
+
...props,
|
|
62
60
|
position
|
|
63
|
-
}
|
|
61
|
+
};
|
|
64
62
|
const classes = useUtilityClasses(ownerState);
|
|
65
63
|
const contextValue = React.useMemo(() => ({
|
|
66
64
|
position
|
|
67
65
|
}), [position]);
|
|
68
66
|
return /*#__PURE__*/_jsx(TimelineContext.Provider, {
|
|
69
67
|
value: contextValue,
|
|
70
|
-
children: /*#__PURE__*/_jsx(TimelineRoot,
|
|
68
|
+
children: /*#__PURE__*/_jsx(TimelineRoot, {
|
|
71
69
|
className: clsx(classes.root, className),
|
|
72
70
|
ownerState: ownerState
|
|
73
71
|
// @ts-expect-error TypeScript bug, need to keep unknown for DX
|
|
74
72
|
,
|
|
75
|
-
ref: ref
|
|
76
|
-
|
|
73
|
+
ref: ref,
|
|
74
|
+
...other
|
|
75
|
+
})
|
|
77
76
|
});
|
|
78
77
|
});
|
|
79
78
|
process.env.NODE_ENV !== "production" ? Timeline.propTypes /* remove-proptypes */ = {
|
|
@@ -30,4 +30,4 @@ export interface TimelineConnectorProps
|
|
|
30
30
|
*
|
|
31
31
|
* - [TimelineConnector API](https://mui.com/material-ui/api/timeline-connector/)
|
|
32
32
|
*/
|
|
33
|
-
export default function TimelineConnector(props: TimelineConnectorProps): JSX.Element;
|
|
33
|
+
export default function TimelineConnector(props: TimelineConnectorProps): React.JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["className"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -38,16 +35,17 @@ const TimelineConnector = /*#__PURE__*/React.forwardRef(function TimelineConnect
|
|
|
38
35
|
name: 'MuiTimelineConnector'
|
|
39
36
|
});
|
|
40
37
|
const {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
className,
|
|
39
|
+
...other
|
|
40
|
+
} = props;
|
|
44
41
|
const ownerState = props;
|
|
45
42
|
const classes = useUtilityClasses(ownerState);
|
|
46
|
-
return /*#__PURE__*/_jsx(TimelineConnectorRoot,
|
|
43
|
+
return /*#__PURE__*/_jsx(TimelineConnectorRoot, {
|
|
47
44
|
className: clsx(classes.root, className),
|
|
48
45
|
ownerState: ownerState,
|
|
49
|
-
ref: ref
|
|
50
|
-
|
|
46
|
+
ref: ref,
|
|
47
|
+
...other
|
|
48
|
+
});
|
|
51
49
|
});
|
|
52
50
|
process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes /* remove-proptypes */ = {
|
|
53
51
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -30,4 +30,4 @@ export interface TimelineContentProps extends StandardProps<TypographyProps> {
|
|
|
30
30
|
* - [TimelineContent API](https://mui.com/material-ui/api/timeline-content/)
|
|
31
31
|
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
32
32
|
*/
|
|
33
|
-
export default function TimelineContent(props: TimelineContentProps): JSX.Element;
|
|
33
|
+
export default function TimelineContent(props: TimelineContentProps): React.JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["className"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -34,12 +31,13 @@ const TimelineContentRoot = styled(Typography, {
|
|
|
34
31
|
}
|
|
35
32
|
})(({
|
|
36
33
|
ownerState
|
|
37
|
-
}) =>
|
|
34
|
+
}) => ({
|
|
38
35
|
flex: 1,
|
|
39
36
|
padding: '6px 16px',
|
|
40
|
-
textAlign: 'left'
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
textAlign: 'left',
|
|
38
|
+
...(ownerState.position === 'left' && {
|
|
39
|
+
textAlign: 'right'
|
|
40
|
+
})
|
|
43
41
|
}));
|
|
44
42
|
const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(inProps, ref) {
|
|
45
43
|
const props = useThemeProps({
|
|
@@ -47,22 +45,24 @@ const TimelineContent = /*#__PURE__*/React.forwardRef(function TimelineContent(i
|
|
|
47
45
|
name: 'MuiTimelineContent'
|
|
48
46
|
});
|
|
49
47
|
const {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
className,
|
|
49
|
+
...other
|
|
50
|
+
} = props;
|
|
53
51
|
const {
|
|
54
52
|
position: positionContext
|
|
55
53
|
} = React.useContext(TimelineContext);
|
|
56
|
-
const ownerState =
|
|
54
|
+
const ownerState = {
|
|
55
|
+
...props,
|
|
57
56
|
position: positionContext || 'right'
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
const classes = useUtilityClasses(ownerState);
|
|
60
|
-
return /*#__PURE__*/_jsx(TimelineContentRoot,
|
|
59
|
+
return /*#__PURE__*/_jsx(TimelineContentRoot, {
|
|
61
60
|
component: "div",
|
|
62
61
|
className: clsx(classes.root, className),
|
|
63
62
|
ownerState: ownerState,
|
|
64
|
-
ref: ref
|
|
65
|
-
|
|
63
|
+
ref: ref,
|
|
64
|
+
...other
|
|
65
|
+
});
|
|
66
66
|
});
|
|
67
67
|
process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
|
|
68
68
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -47,4 +47,4 @@ export interface TimelineDotProps extends StandardProps<React.HTMLAttributes<HTM
|
|
|
47
47
|
*
|
|
48
48
|
* - [TimelineDot API](https://mui.com/material-ui/api/timeline-dot/)
|
|
49
49
|
*/
|
|
50
|
-
export default function TimelineDot(props: TimelineDotProps): JSX.Element;
|
|
50
|
+
export default function TimelineDot(props: TimelineDotProps): React.JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["className", "color", "variant"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -34,7 +31,7 @@ const TimelineDotRoot = styled('span', {
|
|
|
34
31
|
})(({
|
|
35
32
|
ownerState,
|
|
36
33
|
theme
|
|
37
|
-
}) =>
|
|
34
|
+
}) => ({
|
|
38
35
|
display: 'flex',
|
|
39
36
|
alignSelf: 'baseline',
|
|
40
37
|
borderStyle: 'solid',
|
|
@@ -42,44 +39,54 @@ const TimelineDotRoot = styled('span', {
|
|
|
42
39
|
padding: 4,
|
|
43
40
|
borderRadius: '50%',
|
|
44
41
|
boxShadow: (theme.vars || theme).shadows[1],
|
|
45
|
-
margin: '11.5px 0'
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
42
|
+
margin: '11.5px 0',
|
|
43
|
+
...(ownerState.variant === 'filled' && {
|
|
44
|
+
borderColor: 'transparent',
|
|
45
|
+
...(ownerState.color !== 'inherit' && {
|
|
46
|
+
...(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
|
+
})
|
|
53
|
+
})
|
|
54
|
+
}),
|
|
55
|
+
...(ownerState.variant === 'outlined' && {
|
|
56
|
+
boxShadow: 'none',
|
|
57
|
+
backgroundColor: 'transparent',
|
|
58
|
+
...(ownerState.color !== 'inherit' && {
|
|
59
|
+
...(ownerState.color === 'grey' ? {
|
|
60
|
+
borderColor: (theme.vars || theme).palette.grey[400]
|
|
61
|
+
} : {
|
|
62
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].main
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
}));
|
|
62
67
|
const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps, ref) {
|
|
63
68
|
const props = useThemeProps({
|
|
64
69
|
props: inProps,
|
|
65
70
|
name: 'MuiTimelineDot'
|
|
66
71
|
});
|
|
67
72
|
const {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const ownerState =
|
|
73
|
+
className,
|
|
74
|
+
color = 'grey',
|
|
75
|
+
variant = 'filled',
|
|
76
|
+
...other
|
|
77
|
+
} = props;
|
|
78
|
+
const ownerState = {
|
|
79
|
+
...props,
|
|
74
80
|
color,
|
|
75
81
|
variant
|
|
76
|
-
}
|
|
82
|
+
};
|
|
77
83
|
const classes = useUtilityClasses(ownerState);
|
|
78
|
-
return /*#__PURE__*/_jsx(TimelineDotRoot,
|
|
84
|
+
return /*#__PURE__*/_jsx(TimelineDotRoot, {
|
|
79
85
|
className: clsx(classes.root, className),
|
|
80
86
|
ownerState: ownerState,
|
|
81
|
-
ref: ref
|
|
82
|
-
|
|
87
|
+
ref: ref,
|
|
88
|
+
...other
|
|
89
|
+
});
|
|
83
90
|
});
|
|
84
91
|
process.env.NODE_ENV !== "production" ? TimelineDot.propTypes /* remove-proptypes */ = {
|
|
85
92
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -33,4 +33,4 @@ export interface TimelineItemProps extends StandardProps<React.HTMLAttributes<HT
|
|
|
33
33
|
*
|
|
34
34
|
* - [TimelineItem API](https://mui.com/material-ui/api/timeline-item/)
|
|
35
35
|
*/
|
|
36
|
-
export default function TimelineItem(props: TimelineItemProps): JSX.Element;
|
|
36
|
+
export default function TimelineItem(props: TimelineItemProps): React.JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["position", "className"];
|
|
6
3
|
import * as React from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import clsx from 'clsx';
|
|
@@ -37,29 +34,32 @@ const TimelineItemRoot = styled('li', {
|
|
|
37
34
|
}
|
|
38
35
|
})(({
|
|
39
36
|
ownerState
|
|
40
|
-
}) =>
|
|
37
|
+
}) => ({
|
|
41
38
|
listStyle: 'none',
|
|
42
39
|
display: 'flex',
|
|
43
40
|
position: 'relative',
|
|
44
|
-
minHeight: 70
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
minHeight: 70,
|
|
42
|
+
...(ownerState.position === 'left' && {
|
|
43
|
+
flexDirection: 'row-reverse'
|
|
44
|
+
}),
|
|
45
|
+
...((ownerState.position === 'alternate' || ownerState.position === 'alternate-reverse') && {
|
|
46
|
+
[`&:nth-of-type(${ownerState.position === 'alternate' ? 'even' : 'odd'})`]: {
|
|
47
|
+
flexDirection: 'row-reverse',
|
|
48
|
+
[`& .${timelineContentClasses.root}`]: {
|
|
49
|
+
textAlign: 'right'
|
|
50
|
+
},
|
|
51
|
+
[`& .${timelineOppositeContentClasses.root}`]: {
|
|
52
|
+
textAlign: 'left'
|
|
53
|
+
}
|
|
55
54
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
}),
|
|
56
|
+
...(!ownerState.hasOppositeContent && {
|
|
57
|
+
'&::before': {
|
|
58
|
+
content: '""',
|
|
59
|
+
flex: 1,
|
|
60
|
+
padding: '6px 16px'
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
63
|
}));
|
|
64
64
|
const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps, ref) {
|
|
65
65
|
const props = useThemeProps({
|
|
@@ -67,10 +67,10 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
|
|
|
67
67
|
name: 'MuiTimelineItem'
|
|
68
68
|
});
|
|
69
69
|
const {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
position: positionProp,
|
|
71
|
+
className,
|
|
72
|
+
...other
|
|
73
|
+
} = props;
|
|
74
74
|
const {
|
|
75
75
|
position: positionContext
|
|
76
76
|
} = React.useContext(TimelineContext);
|
|
@@ -80,21 +80,23 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
|
|
|
80
80
|
hasOppositeContent = true;
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
const ownerState =
|
|
83
|
+
const ownerState = {
|
|
84
|
+
...props,
|
|
84
85
|
position: positionProp || positionContext || 'right',
|
|
85
86
|
hasOppositeContent
|
|
86
|
-
}
|
|
87
|
+
};
|
|
87
88
|
const classes = useUtilityClasses(ownerState);
|
|
88
89
|
const contextValue = React.useMemo(() => ({
|
|
89
90
|
position: ownerState.position
|
|
90
91
|
}), [ownerState.position]);
|
|
91
92
|
return /*#__PURE__*/_jsx(TimelineContext.Provider, {
|
|
92
93
|
value: contextValue,
|
|
93
|
-
children: /*#__PURE__*/_jsx(TimelineItemRoot,
|
|
94
|
+
children: /*#__PURE__*/_jsx(TimelineItemRoot, {
|
|
94
95
|
className: clsx(classes.root, className),
|
|
95
96
|
ownerState: ownerState,
|
|
96
|
-
ref: ref
|
|
97
|
-
|
|
97
|
+
ref: ref,
|
|
98
|
+
...other
|
|
99
|
+
})
|
|
98
100
|
});
|
|
99
101
|
});
|
|
100
102
|
process.env.NODE_ENV !== "production" ? TimelineItem.propTypes /* remove-proptypes */ = {
|
|
@@ -30,7 +30,9 @@ export interface TimelineOppositeContentProps extends StandardProps<TypographyPr
|
|
|
30
30
|
* - [TimelineOppositeContent API](https://mui.com/material-ui/api/timeline-opposite-content/)
|
|
31
31
|
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
|
|
32
32
|
*/
|
|
33
|
-
declare const TimelineOppositeContent: ((
|
|
33
|
+
declare const TimelineOppositeContent: ((
|
|
34
|
+
props: TimelineOppositeContentProps,
|
|
35
|
+
) => React.JSX.Element) & {
|
|
34
36
|
muiName: string;
|
|
35
37
|
};
|
|
36
38
|
|