@mui/lab 6.0.0-alpha.7 → 6.0.0-alpha.8

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.
Files changed (77) hide show
  1. package/Alert/Alert.js +4 -4
  2. package/AlertTitle/AlertTitle.js +4 -4
  3. package/Autocomplete/Autocomplete.js +4 -4
  4. package/AvatarGroup/AvatarGroup.js +4 -4
  5. package/CHANGELOG.md +37 -2
  6. package/LoadingButton/LoadingButton.js +21 -19
  7. package/Masonry/Masonry.js +35 -30
  8. package/Pagination/Pagination.js +4 -4
  9. package/PaginationItem/PaginationItem.js +4 -4
  10. package/Rating/Rating.js +4 -4
  11. package/Skeleton/Skeleton.js +4 -4
  12. package/SpeedDial/SpeedDial.js +4 -4
  13. package/SpeedDialAction/SpeedDialAction.js +4 -4
  14. package/SpeedDialIcon/SpeedDialIcon.js +4 -4
  15. package/TabList/TabList.js +6 -8
  16. package/TabPanel/TabPanel.js +13 -14
  17. package/Timeline/Timeline.js +11 -12
  18. package/TimelineConnector/TimelineConnector.js +7 -9
  19. package/TimelineContent/TimelineContent.js +15 -15
  20. package/TimelineDot/TimelineDot.js +38 -31
  21. package/TimelineItem/TimelineItem.js +33 -31
  22. package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  23. package/TimelineSeparator/TimelineSeparator.js +7 -9
  24. package/ToggleButton/ToggleButton.js +4 -4
  25. package/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  26. package/index.js +1 -1
  27. package/modern/Alert/Alert.js +4 -4
  28. package/modern/AlertTitle/AlertTitle.js +4 -4
  29. package/modern/Autocomplete/Autocomplete.js +4 -4
  30. package/modern/AvatarGroup/AvatarGroup.js +4 -4
  31. package/modern/LoadingButton/LoadingButton.js +21 -19
  32. package/modern/Masonry/Masonry.js +35 -30
  33. package/modern/Pagination/Pagination.js +4 -4
  34. package/modern/PaginationItem/PaginationItem.js +4 -4
  35. package/modern/Rating/Rating.js +4 -4
  36. package/modern/Skeleton/Skeleton.js +4 -4
  37. package/modern/SpeedDial/SpeedDial.js +4 -4
  38. package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
  39. package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
  40. package/modern/TabList/TabList.js +6 -8
  41. package/modern/TabPanel/TabPanel.js +13 -14
  42. package/modern/Timeline/Timeline.js +11 -12
  43. package/modern/TimelineConnector/TimelineConnector.js +7 -9
  44. package/modern/TimelineContent/TimelineContent.js +15 -15
  45. package/modern/TimelineDot/TimelineDot.js +38 -31
  46. package/modern/TimelineItem/TimelineItem.js +33 -31
  47. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  48. package/modern/TimelineSeparator/TimelineSeparator.js +7 -9
  49. package/modern/ToggleButton/ToggleButton.js +4 -4
  50. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  51. package/modern/index.js +1 -1
  52. package/node/Alert/Alert.js +4 -4
  53. package/node/AlertTitle/AlertTitle.js +4 -4
  54. package/node/Autocomplete/Autocomplete.js +4 -4
  55. package/node/AvatarGroup/AvatarGroup.js +4 -4
  56. package/node/LoadingButton/LoadingButton.js +21 -19
  57. package/node/Masonry/Masonry.js +35 -30
  58. package/node/Pagination/Pagination.js +4 -4
  59. package/node/PaginationItem/PaginationItem.js +4 -4
  60. package/node/Rating/Rating.js +4 -4
  61. package/node/Skeleton/Skeleton.js +4 -4
  62. package/node/SpeedDial/SpeedDial.js +4 -4
  63. package/node/SpeedDialAction/SpeedDialAction.js +4 -4
  64. package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
  65. package/node/TabList/TabList.js +6 -8
  66. package/node/TabPanel/TabPanel.js +13 -14
  67. package/node/Timeline/Timeline.js +11 -12
  68. package/node/TimelineConnector/TimelineConnector.js +7 -9
  69. package/node/TimelineContent/TimelineContent.js +15 -15
  70. package/node/TimelineDot/TimelineDot.js +38 -31
  71. package/node/TimelineItem/TimelineItem.js +33 -31
  72. package/node/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
  73. package/node/TimelineSeparator/TimelineSeparator.js +7 -9
  74. package/node/ToggleButton/ToggleButton.js +4 -4
  75. package/node/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  76. package/node/index.js +1 -1
  77. package/package.json +5 -5
@@ -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 = ["children", "className", "component", "columns", "spacing", "sequential", "defaultColumns", "defaultHeight", "defaultSpacing"];
6
3
  import { unstable_composeClasses as composeClasses } from '@mui/base';
7
4
  import * as ReactDOM from 'react-dom';
8
5
  import { styled, useThemeProps } from '@mui/material/styles';
@@ -57,11 +54,16 @@ export const getStyle = ({
57
54
  }
58
55
  stylesSSR.height = ownerState.defaultHeight;
59
56
  stylesSSR.margin = -(defaultSpacing / 2);
60
- stylesSSR['& > *'] = _extends({}, styles['& > *'], orderStyleSSR, {
57
+ stylesSSR['& > *'] = {
58
+ ...styles['& > *'],
59
+ ...orderStyleSSR,
61
60
  margin: defaultSpacing / 2,
62
61
  width: `calc(${(100 / ownerState.defaultColumns).toFixed(2)}% - ${defaultSpacing}px)`
63
- });
64
- return _extends({}, styles, stylesSSR);
62
+ };
63
+ return {
64
+ ...styles,
65
+ ...stylesSSR
66
+ };
65
67
  }
66
68
  const spacingValues = resolveBreakpointValues({
67
69
  values: ownerState.spacing,
@@ -77,14 +79,15 @@ export const getStyle = ({
77
79
  } else {
78
80
  spacing = propValue;
79
81
  }
80
- return _extends({
82
+ return {
81
83
  margin: `calc(0px - (${spacing} / 2))`,
82
84
  '& > *': {
83
85
  margin: `calc(${spacing} / 2)`
84
- }
85
- }, ownerState.maxColumnHeight && {
86
- height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : `calc(${ownerState.maxColumnHeight}px + ${spacing})`
87
- });
86
+ },
87
+ ...(ownerState.maxColumnHeight && {
88
+ height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : `calc(${ownerState.maxColumnHeight}px + ${spacing})`
89
+ })
90
+ };
88
91
  };
89
92
  styles = deepmerge(styles, handleBreakpoints({
90
93
  theme
@@ -142,22 +145,23 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
142
145
  name: 'MuiMasonry'
143
146
  });
144
147
  const {
145
- children,
146
- className,
147
- component = 'div',
148
- columns = 4,
149
- spacing = 1,
150
- sequential = false,
151
- defaultColumns,
152
- defaultHeight,
153
- defaultSpacing
154
- } = props,
155
- other = _objectWithoutPropertiesLoose(props, _excluded);
148
+ children,
149
+ className,
150
+ component = 'div',
151
+ columns = 4,
152
+ spacing = 1,
153
+ sequential = false,
154
+ defaultColumns,
155
+ defaultHeight,
156
+ defaultSpacing,
157
+ ...other
158
+ } = props;
156
159
  const masonryRef = React.useRef();
157
160
  const [maxColumnHeight, setMaxColumnHeight] = React.useState();
158
161
  const isSSR = !maxColumnHeight && defaultHeight && defaultColumns !== undefined && defaultSpacing !== undefined;
159
162
  const [numberOfLineBreaks, setNumberOfLineBreaks] = React.useState(isSSR ? defaultColumns - 1 : 0);
160
- const ownerState = _extends({}, props, {
163
+ const ownerState = {
164
+ ...props,
161
165
  spacing,
162
166
  columns,
163
167
  maxColumnHeight,
@@ -165,7 +169,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
165
169
  defaultHeight,
166
170
  defaultSpacing,
167
171
  isSSR
168
- });
172
+ };
169
173
  const classes = useUtilityClasses(ownerState);
170
174
  const handleResize = React.useCallback(masonryChildren => {
171
175
  if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
@@ -263,18 +267,19 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
263
267
  // a line break at the end of each column prevents columns from merging
264
268
  const lineBreaks = new Array(numberOfLineBreaks).fill('').map((_, index) => /*#__PURE__*/_jsx("span", {
265
269
  "data-class": "line-break",
266
- style: _extends({}, lineBreakStyle, {
270
+ style: {
271
+ ...lineBreakStyle,
267
272
  order: index + 1
268
- })
273
+ }
269
274
  }, index));
270
- return /*#__PURE__*/_jsxs(MasonryRoot, _extends({
275
+ return /*#__PURE__*/_jsxs(MasonryRoot, {
271
276
  as: component,
272
277
  className: clsx(classes.root, className),
273
278
  ref: handleRef,
274
- ownerState: ownerState
275
- }, other, {
279
+ ownerState: ownerState,
280
+ ...other,
276
281
  children: [children, lineBreaks]
277
- }));
282
+ });
278
283
  });
279
284
  process.env.NODE_ENV !== "production" ? Masonry.propTypes /* remove-proptypes */ = {
280
285
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -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 Pagination from '@mui/material/Pagination';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props
14
13
  console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Pagination, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Pagination, {
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 PaginationItem from '@mui/material/PaginationItem';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(p
14
13
  console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(PaginationItem, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(PaginationItem, {
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 Rating from '@mui/material/Rating';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, re
14
13
  console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Rating, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Rating, {
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 Skeleton from '@mui/material/Skeleton';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -14,7 +13,8 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props,
14
13
  console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
15
14
  warnedOnce = true;
16
15
  }
17
- return /*#__PURE__*/_jsx(Skeleton, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(Skeleton, {
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 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, _extends({
18
- ref: ref
19
- }, props));
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, _extends({
18
- ref: ref
19
- }, props));
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, _extends({
18
- ref: ref
19
- }, props));
16
+ return /*#__PURE__*/_jsx(SpeedDialIcon, {
17
+ ref: ref,
18
+ ...props
19
+ });
20
20
  });
@@ -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
- children: childrenProp
14
- } = props,
15
- other = _objectWithoutPropertiesLoose(props, _excluded);
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, _extends({}, other, {
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 ──────────────────────────────┐
@@ -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
- children,
40
- className,
41
- value,
42
- keepMounted = false
43
- } = props,
44
- other = _objectWithoutPropertiesLoose(props, _excluded);
45
- const ownerState = _extends({}, props);
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, _extends({
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
- }, other, {
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,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
- position = 'right',
58
- className
59
- } = props,
60
- other = _objectWithoutPropertiesLoose(props, _excluded);
61
- const ownerState = _extends({}, props, {
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, _extends({
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
- }, other))
73
+ ref: ref,
74
+ ...other
75
+ })
77
76
  });
78
77
  });
79
78
  process.env.NODE_ENV !== "production" ? Timeline.propTypes /* remove-proptypes */ = {
@@ -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
- className
42
- } = props,
43
- other = _objectWithoutPropertiesLoose(props, _excluded);
38
+ className,
39
+ ...other
40
+ } = props;
44
41
  const ownerState = props;
45
42
  const classes = useUtilityClasses(ownerState);
46
- return /*#__PURE__*/_jsx(TimelineConnectorRoot, _extends({
43
+ return /*#__PURE__*/_jsx(TimelineConnectorRoot, {
47
44
  className: clsx(classes.root, className),
48
45
  ownerState: ownerState,
49
- ref: ref
50
- }, other));
46
+ ref: ref,
47
+ ...other
48
+ });
51
49
  });
52
50
  process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes /* remove-proptypes */ = {
53
51
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -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
- }) => _extends({
34
+ }) => ({
38
35
  flex: 1,
39
36
  padding: '6px 16px',
40
- textAlign: 'left'
41
- }, ownerState.position === 'left' && {
42
- textAlign: 'right'
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
- className
51
- } = props,
52
- other = _objectWithoutPropertiesLoose(props, _excluded);
48
+ className,
49
+ ...other
50
+ } = props;
53
51
  const {
54
52
  position: positionContext
55
53
  } = React.useContext(TimelineContext);
56
- const ownerState = _extends({}, props, {
54
+ const ownerState = {
55
+ ...props,
57
56
  position: positionContext || 'right'
58
- });
57
+ };
59
58
  const classes = useUtilityClasses(ownerState);
60
- return /*#__PURE__*/_jsx(TimelineContentRoot, _extends({
59
+ return /*#__PURE__*/_jsx(TimelineContentRoot, {
61
60
  component: "div",
62
61
  className: clsx(classes.root, className),
63
62
  ownerState: ownerState,
64
- ref: ref
65
- }, other));
63
+ ref: ref,
64
+ ...other
65
+ });
66
66
  });
67
67
  process.env.NODE_ENV !== "production" ? TimelineContent.propTypes /* remove-proptypes */ = {
68
68
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -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
- }) => _extends({
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
- }, ownerState.variant === 'filled' && _extends({
47
- borderColor: 'transparent'
48
- }, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
49
- color: (theme.vars || theme).palette.grey[50],
50
- backgroundColor: (theme.vars || theme).palette.grey[400]
51
- } : {
52
- color: (theme.vars || theme).palette[ownerState.color].contrastText,
53
- backgroundColor: (theme.vars || theme).palette[ownerState.color].main
54
- })), ownerState.variant === 'outlined' && _extends({
55
- boxShadow: 'none',
56
- backgroundColor: 'transparent'
57
- }, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
58
- borderColor: (theme.vars || theme).palette.grey[400]
59
- } : {
60
- borderColor: (theme.vars || theme).palette[ownerState.color].main
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
- className,
69
- color = 'grey',
70
- variant = 'filled'
71
- } = props,
72
- other = _objectWithoutPropertiesLoose(props, _excluded);
73
- const ownerState = _extends({}, props, {
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, _extends({
84
+ return /*#__PURE__*/_jsx(TimelineDotRoot, {
79
85
  className: clsx(classes.root, className),
80
86
  ownerState: ownerState,
81
- ref: ref
82
- }, other));
87
+ ref: ref,
88
+ ...other
89
+ });
83
90
  });
84
91
  process.env.NODE_ENV !== "production" ? TimelineDot.propTypes /* remove-proptypes */ = {
85
92
  // ┌────────────────────────────── Warning ──────────────────────────────┐