@mui/lab 5.0.0-alpha.130 → 5.0.0-alpha.132
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 +93 -0
- package/LoadingButton/LoadingButton.js +62 -74
- package/Masonry/Masonry.js +29 -34
- package/Pagination/Pagination.js +4 -4
- package/PaginationItem/PaginationItem.js +4 -4
- 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/TabList/TabList.js +8 -6
- package/TabPanel/TabPanel.js +13 -12
- package/Timeline/Timeline.js +12 -11
- package/TimelineConnector/TimelineConnector.js +9 -7
- package/TimelineContent/TimelineContent.js +15 -15
- package/TimelineDot/TimelineDot.js +31 -38
- package/TimelineItem/TimelineItem.js +31 -33
- package/TimelineOppositeContent/TimelineOppositeContent.js +15 -15
- package/TimelineSeparator/TimelineSeparator.js +9 -7
- 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/TreeView/TreeView.js +33 -35
- package/TreeView/descendants.js +14 -13
- package/index.js +1 -1
- 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,3 +1,6 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
const _excluded = ["classes", "className", "displayIcon", "expansionIcon", "icon", "label", "nodeId", "onClick", "onMouseDown"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import clsx from 'clsx';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
@@ -10,17 +13,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
14
|
const TreeItemContent = /*#__PURE__*/React.forwardRef(function TreeItemContent(props, ref) {
|
|
12
15
|
const {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
classes,
|
|
17
|
+
className,
|
|
18
|
+
displayIcon,
|
|
19
|
+
expansionIcon,
|
|
20
|
+
icon: iconProp,
|
|
21
|
+
label,
|
|
22
|
+
nodeId,
|
|
23
|
+
onClick,
|
|
24
|
+
onMouseDown
|
|
25
|
+
} = props,
|
|
26
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
24
27
|
const {
|
|
25
28
|
disabled,
|
|
26
29
|
expanded,
|
|
@@ -47,12 +50,12 @@ const TreeItemContent = /*#__PURE__*/React.forwardRef(function TreeItemContent(p
|
|
|
47
50
|
return (
|
|
48
51
|
/*#__PURE__*/
|
|
49
52
|
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
|
|
50
|
-
_jsxs("div", {
|
|
53
|
+
_jsxs("div", _extends({
|
|
51
54
|
className: clsx(className, classes.root, expanded && classes.expanded, selected && classes.selected, focused && classes.focused, disabled && classes.disabled),
|
|
52
55
|
onClick: handleClick,
|
|
53
56
|
onMouseDown: handleMouseDown,
|
|
54
|
-
ref: ref
|
|
55
|
-
|
|
57
|
+
ref: ref
|
|
58
|
+
}, other, {
|
|
56
59
|
children: [/*#__PURE__*/_jsx("div", {
|
|
57
60
|
className: classes.iconContainer,
|
|
58
61
|
children: icon
|
|
@@ -60,7 +63,7 @@ const TreeItemContent = /*#__PURE__*/React.forwardRef(function TreeItemContent(p
|
|
|
60
63
|
className: classes.label,
|
|
61
64
|
children: label
|
|
62
65
|
})]
|
|
63
|
-
})
|
|
66
|
+
}))
|
|
64
67
|
);
|
|
65
68
|
});
|
|
66
69
|
process.env.NODE_ENV !== "production" ? TreeItemContent.propTypes = {
|
package/TreeView/TreeView.js
CHANGED
|
@@ -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 = ["children", "className", "defaultCollapseIcon", "defaultEndIcon", "defaultExpanded", "defaultExpandIcon", "defaultParentIcon", "defaultSelected", "disabledItemsFocusable", "disableSelection", "expanded", "id", "multiSelect", "onBlur", "onFocus", "onKeyDown", "onNodeFocus", "onNodeSelect", "onNodeToggle", "selected"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import clsx from 'clsx';
|
|
3
6
|
import PropTypes from 'prop-types';
|
|
@@ -49,38 +52,37 @@ const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
|
|
|
49
52
|
name: 'MuiTreeView'
|
|
50
53
|
});
|
|
51
54
|
const {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
55
|
+
children,
|
|
56
|
+
className,
|
|
57
|
+
defaultCollapseIcon,
|
|
58
|
+
defaultEndIcon,
|
|
59
|
+
defaultExpanded = defaultDefaultExpanded,
|
|
60
|
+
defaultExpandIcon,
|
|
61
|
+
defaultParentIcon,
|
|
62
|
+
defaultSelected = defaultDefaultSelected,
|
|
63
|
+
disabledItemsFocusable = false,
|
|
64
|
+
disableSelection = false,
|
|
65
|
+
expanded: expandedProp,
|
|
66
|
+
id: idProp,
|
|
67
|
+
multiSelect = false,
|
|
68
|
+
onBlur,
|
|
69
|
+
onFocus,
|
|
70
|
+
onKeyDown,
|
|
71
|
+
onNodeFocus,
|
|
72
|
+
onNodeSelect,
|
|
73
|
+
onNodeToggle,
|
|
74
|
+
selected: selectedProp
|
|
75
|
+
} = props,
|
|
76
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
74
77
|
const theme = useTheme();
|
|
75
78
|
const isRtl = theme.direction === 'rtl';
|
|
76
|
-
const ownerState = {
|
|
77
|
-
...props,
|
|
79
|
+
const ownerState = _extends({}, props, {
|
|
78
80
|
defaultExpanded,
|
|
79
81
|
defaultSelected,
|
|
80
82
|
disabledItemsFocusable,
|
|
81
83
|
disableSelection,
|
|
82
84
|
multiSelect
|
|
83
|
-
};
|
|
85
|
+
});
|
|
84
86
|
const classes = useUtilityClasses(ownerState);
|
|
85
87
|
const treeId = useId(idProp);
|
|
86
88
|
const treeRef = React.useRef(null);
|
|
@@ -513,9 +515,7 @@ const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
|
|
|
513
515
|
};
|
|
514
516
|
}, []);
|
|
515
517
|
const unregisterNode = React.useCallback(id => {
|
|
516
|
-
const newMap = {
|
|
517
|
-
...nodeMap.current
|
|
518
|
-
};
|
|
518
|
+
const newMap = _extends({}, nodeMap.current);
|
|
519
519
|
delete newMap[id];
|
|
520
520
|
nodeMap.current = newMap;
|
|
521
521
|
setFocusedNodeId(oldFocusedNodeId => {
|
|
@@ -529,9 +529,7 @@ const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
|
|
|
529
529
|
firstCharMap.current[id] = firstChar;
|
|
530
530
|
}, []);
|
|
531
531
|
const unMapFirstChar = React.useCallback(id => {
|
|
532
|
-
const newMap = {
|
|
533
|
-
...firstCharMap.current
|
|
534
|
-
};
|
|
532
|
+
const newMap = _extends({}, firstCharMap.current);
|
|
535
533
|
delete newMap[id];
|
|
536
534
|
firstCharMap.current = newMap;
|
|
537
535
|
}, []);
|
|
@@ -707,7 +705,7 @@ const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
|
|
|
707
705
|
treeId
|
|
708
706
|
},
|
|
709
707
|
children: /*#__PURE__*/_jsx(DescendantProvider, {
|
|
710
|
-
children: /*#__PURE__*/_jsx(TreeViewRoot, {
|
|
708
|
+
children: /*#__PURE__*/_jsx(TreeViewRoot, _extends({
|
|
711
709
|
role: "tree",
|
|
712
710
|
id: treeId,
|
|
713
711
|
"aria-activedescendant": activeDescendant,
|
|
@@ -718,10 +716,10 @@ const TreeView = /*#__PURE__*/React.forwardRef(function TreeView(inProps, ref) {
|
|
|
718
716
|
onKeyDown: handleKeyDown,
|
|
719
717
|
onFocus: handleFocus,
|
|
720
718
|
onBlur: handleBlur,
|
|
721
|
-
ownerState: ownerState
|
|
722
|
-
|
|
719
|
+
ownerState: ownerState
|
|
720
|
+
}, other, {
|
|
723
721
|
children: children
|
|
724
|
-
})
|
|
722
|
+
}))
|
|
725
723
|
})
|
|
726
724
|
});
|
|
727
725
|
});
|
package/TreeView/descendants.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 = ["element"];
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import PropTypes from 'prop-types';
|
|
3
6
|
import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/material/utils';
|
|
@@ -95,10 +98,9 @@ export function useDescendant(descendant) {
|
|
|
95
98
|
// Prevent any flashing
|
|
96
99
|
useEnhancedEffect(() => {
|
|
97
100
|
if (descendant.element) {
|
|
98
|
-
registerDescendant({
|
|
99
|
-
...descendant,
|
|
101
|
+
registerDescendant(_extends({}, descendant, {
|
|
100
102
|
index
|
|
101
|
-
});
|
|
103
|
+
}));
|
|
102
104
|
return () => {
|
|
103
105
|
unregisterDescendant(descendant.element);
|
|
104
106
|
};
|
|
@@ -117,19 +119,19 @@ export function DescendantProvider(props) {
|
|
|
117
119
|
id
|
|
118
120
|
} = props;
|
|
119
121
|
const [items, set] = React.useState([]);
|
|
120
|
-
const registerDescendant = React.useCallback(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
const registerDescendant = React.useCallback(_ref => {
|
|
123
|
+
let {
|
|
124
|
+
element
|
|
125
|
+
} = _ref,
|
|
126
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
124
127
|
set(oldItems => {
|
|
125
128
|
let newItems;
|
|
126
129
|
if (oldItems.length === 0) {
|
|
127
130
|
// If there are no items, register at index 0 and bail.
|
|
128
|
-
return [{
|
|
129
|
-
...other,
|
|
131
|
+
return [_extends({}, other, {
|
|
130
132
|
element,
|
|
131
133
|
index: 0
|
|
132
|
-
}];
|
|
134
|
+
})];
|
|
133
135
|
}
|
|
134
136
|
const index = binaryFindElement(oldItems, element);
|
|
135
137
|
if (oldItems[index] && oldItems[index].element === element) {
|
|
@@ -149,11 +151,10 @@ export function DescendantProvider(props) {
|
|
|
149
151
|
// we should be sure that this index is accurate when descendent
|
|
150
152
|
// elements come or go from our component.
|
|
151
153
|
|
|
152
|
-
const newItem = {
|
|
153
|
-
...other,
|
|
154
|
+
const newItem = _extends({}, other, {
|
|
154
155
|
element,
|
|
155
156
|
index
|
|
156
|
-
};
|
|
157
|
+
});
|
|
157
158
|
|
|
158
159
|
// If an index is not found we will push the element to the end.
|
|
159
160
|
newItems = oldItems.slice();
|
package/index.js
CHANGED
package/legacy/Alert/Alert.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import Alert from '@mui/material/Alert';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref
|
|
|
14
12
|
console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Alert,
|
|
15
|
+
return /*#__PURE__*/_jsx(Alert, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import AlertTitle from '@mui/material/AlertTitle';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props
|
|
|
14
12
|
console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(AlertTitle,
|
|
15
|
+
return /*#__PURE__*/_jsx(AlertTitle, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import Autocomplete from '@mui/material/Autocomplete';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(pro
|
|
|
14
12
|
console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Autocomplete,
|
|
15
|
+
return /*#__PURE__*/_jsx(Autocomplete, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import AvatarGroup from '@mui/material/AvatarGroup';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(prop
|
|
|
14
12
|
console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(AvatarGroup,
|
|
15
|
+
return /*#__PURE__*/_jsx(AvatarGroup, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
4
|
import * as React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import { chainPropTypes } from '@mui/utils';
|
|
@@ -24,7 +23,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
24
23
|
loadingIndicator: ['loadingIndicator', loading && "loadingIndicator".concat(capitalize(loadingPosition))]
|
|
25
24
|
};
|
|
26
25
|
var composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
|
|
27
|
-
return
|
|
26
|
+
return _extends({}, classes, composedClasses);
|
|
28
27
|
};
|
|
29
28
|
|
|
30
29
|
// TODO use `import { rootShouldForwardProp } from '../styles/styled';` once move to core
|
|
@@ -43,7 +42,7 @@ var LoadingButtonRoot = styled(Button, {
|
|
|
43
42
|
})(function (_ref3) {
|
|
44
43
|
var ownerState = _ref3.ownerState,
|
|
45
44
|
theme = _ref3.theme;
|
|
46
|
-
return
|
|
45
|
+
return _extends(_defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart, ", & .").concat(loadingButtonClasses.endIconLoadingEnd), {
|
|
47
46
|
transition: theme.transitions.create(['opacity'], {
|
|
48
47
|
duration: theme.transitions.duration.short
|
|
49
48
|
}),
|
|
@@ -54,13 +53,13 @@ var LoadingButtonRoot = styled(Button, {
|
|
|
54
53
|
})
|
|
55
54
|
}, "&.".concat(loadingButtonClasses.loading), {
|
|
56
55
|
color: 'transparent'
|
|
57
|
-
})
|
|
56
|
+
}), ownerState.loadingPosition === 'start' && ownerState.fullWidth && _defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart, ", & .").concat(loadingButtonClasses.endIconLoadingEnd), {
|
|
58
57
|
transition: theme.transitions.create(['opacity'], {
|
|
59
58
|
duration: theme.transitions.duration.short
|
|
60
59
|
}),
|
|
61
60
|
opacity: 0,
|
|
62
61
|
marginRight: -8
|
|
63
|
-
})
|
|
62
|
+
}), ownerState.loadingPosition === 'end' && ownerState.fullWidth && _defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart, ", & .").concat(loadingButtonClasses.endIconLoadingEnd), {
|
|
64
63
|
transition: theme.transitions.create(['opacity'], {
|
|
65
64
|
duration: theme.transitions.duration.short
|
|
66
65
|
}),
|
|
@@ -78,26 +77,26 @@ var LoadingButtonLoadingIndicator = styled('div', {
|
|
|
78
77
|
})(function (_ref7) {
|
|
79
78
|
var theme = _ref7.theme,
|
|
80
79
|
ownerState = _ref7.ownerState;
|
|
81
|
-
return
|
|
80
|
+
return _extends({
|
|
82
81
|
position: 'absolute',
|
|
83
82
|
visibility: 'visible',
|
|
84
83
|
display: 'flex'
|
|
85
84
|
}, ownerState.loadingPosition === 'start' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
|
|
86
85
|
left: ownerState.size === 'small' ? 10 : 14
|
|
87
|
-
}
|
|
86
|
+
}, ownerState.loadingPosition === 'start' && ownerState.variant === 'text' && {
|
|
88
87
|
left: 6
|
|
89
|
-
}
|
|
88
|
+
}, ownerState.loadingPosition === 'center' && {
|
|
90
89
|
left: '50%',
|
|
91
90
|
transform: 'translate(-50%)',
|
|
92
91
|
color: (theme.vars || theme).palette.action.disabled
|
|
93
|
-
}
|
|
92
|
+
}, ownerState.loadingPosition === 'end' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
|
|
94
93
|
right: ownerState.size === 'small' ? 10 : 14
|
|
95
|
-
}
|
|
94
|
+
}, ownerState.loadingPosition === 'end' && ownerState.variant === 'text' && {
|
|
96
95
|
right: 6
|
|
97
|
-
}
|
|
96
|
+
}, ownerState.loadingPosition === 'start' && ownerState.fullWidth && {
|
|
98
97
|
position: 'relative',
|
|
99
98
|
left: -10
|
|
100
|
-
}
|
|
99
|
+
}, ownerState.loadingPosition === 'end' && ownerState.fullWidth && {
|
|
101
100
|
position: 'relative',
|
|
102
101
|
right: -10
|
|
103
102
|
});
|
|
@@ -125,7 +124,7 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
125
124
|
color: "inherit",
|
|
126
125
|
size: 16
|
|
127
126
|
});
|
|
128
|
-
var ownerState =
|
|
127
|
+
var ownerState = _extends({}, props, {
|
|
129
128
|
disabled: disabled,
|
|
130
129
|
loading: loading,
|
|
131
130
|
loadingIndicator: loadingIndicator,
|
|
@@ -138,11 +137,11 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
138
137
|
ownerState: ownerState,
|
|
139
138
|
children: loadingIndicator
|
|
140
139
|
}) : null;
|
|
141
|
-
return /*#__PURE__*/_jsxs(LoadingButtonRoot,
|
|
140
|
+
return /*#__PURE__*/_jsxs(LoadingButtonRoot, _extends({
|
|
142
141
|
disabled: disabled || loading,
|
|
143
142
|
id: id,
|
|
144
143
|
ref: ref
|
|
145
|
-
}, other
|
|
144
|
+
}, other, {
|
|
146
145
|
variant: variant,
|
|
147
146
|
classes: classes,
|
|
148
147
|
ownerState: ownerState,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
|
-
import
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
7
5
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
8
6
|
import * as ReactDOM from 'react-dom';
|
|
9
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
@@ -56,11 +54,11 @@ export var getStyle = function getStyle(_ref) {
|
|
|
56
54
|
}
|
|
57
55
|
stylesSSR.height = ownerState.defaultHeight;
|
|
58
56
|
stylesSSR.margin = -(defaultSpacing / 2);
|
|
59
|
-
stylesSSR['& > *'] =
|
|
57
|
+
stylesSSR['& > *'] = _extends({}, styles['& > *'], orderStyleSSR, {
|
|
60
58
|
margin: defaultSpacing / 2,
|
|
61
59
|
width: "calc(".concat((100 / ownerState.defaultColumns).toFixed(2), "% - ").concat(defaultSpacing, "px)")
|
|
62
60
|
});
|
|
63
|
-
return
|
|
61
|
+
return _extends({}, styles, stylesSSR);
|
|
64
62
|
}
|
|
65
63
|
var spacingValues = resolveBreakpointValues({
|
|
66
64
|
values: ownerState.spacing,
|
|
@@ -76,7 +74,7 @@ export var getStyle = function getStyle(_ref) {
|
|
|
76
74
|
} else {
|
|
77
75
|
spacing = propValue;
|
|
78
76
|
}
|
|
79
|
-
return
|
|
77
|
+
return _extends({
|
|
80
78
|
margin: "calc(0px - (".concat(spacing, " / 2))"),
|
|
81
79
|
'& > *': {
|
|
82
80
|
margin: "calc(".concat(spacing, " / 2)")
|
|
@@ -160,7 +158,7 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
160
158
|
var _React$useState2 = React.useState(isSSR ? defaultColumns - 1 : 0),
|
|
161
159
|
numberOfLineBreaks = _React$useState2[0],
|
|
162
160
|
setNumberOfLineBreaks = _React$useState2[1];
|
|
163
|
-
var ownerState =
|
|
161
|
+
var ownerState = _extends({}, props, {
|
|
164
162
|
spacing: spacing,
|
|
165
163
|
columns: columns,
|
|
166
164
|
maxColumnHeight: maxColumnHeight,
|
|
@@ -249,17 +247,17 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
249
247
|
var lineBreaks = new Array(numberOfLineBreaks).fill('').map(function (_, index) {
|
|
250
248
|
return /*#__PURE__*/_jsx("span", {
|
|
251
249
|
"data-class": "line-break",
|
|
252
|
-
style:
|
|
250
|
+
style: _extends({}, lineBreakStyle, {
|
|
253
251
|
order: index + 1
|
|
254
252
|
})
|
|
255
253
|
}, index);
|
|
256
254
|
});
|
|
257
|
-
return /*#__PURE__*/_jsxs(MasonryRoot,
|
|
255
|
+
return /*#__PURE__*/_jsxs(MasonryRoot, _extends({
|
|
258
256
|
as: component,
|
|
259
257
|
className: clsx(classes.root, className),
|
|
260
258
|
ref: handleRef,
|
|
261
259
|
ownerState: ownerState
|
|
262
|
-
}, other
|
|
260
|
+
}, other, {
|
|
263
261
|
children: [children, lineBreaks]
|
|
264
262
|
}));
|
|
265
263
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import Pagination from '@mui/material/Pagination';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props
|
|
|
14
12
|
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
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Pagination,
|
|
15
|
+
return /*#__PURE__*/_jsx(Pagination, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import PaginationItem from '@mui/material/PaginationItem';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(p
|
|
|
14
12
|
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
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(PaginationItem,
|
|
15
|
+
return /*#__PURE__*/_jsx(PaginationItem, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
package/legacy/Rating/Rating.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import Rating from '@mui/material/Rating';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, re
|
|
|
14
12
|
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
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Rating,
|
|
15
|
+
return /*#__PURE__*/_jsx(Rating, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import Skeleton from '@mui/material/Skeleton';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props,
|
|
|
14
12
|
console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Skeleton,
|
|
15
|
+
return /*#__PURE__*/_jsx(Skeleton, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import SpeedDial from '@mui/material/SpeedDial';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props,
|
|
|
14
12
|
console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDial,
|
|
15
|
+
return /*#__PURE__*/_jsx(SpeedDial, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import SpeedDialAction from '@mui/material/SpeedDialAction';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(
|
|
|
14
12
|
console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialAction,
|
|
15
|
+
return /*#__PURE__*/_jsx(SpeedDialAction, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
2
|
import * as React from 'react';
|
|
5
3
|
import SpeedDialIcon from '@mui/material/SpeedDialIcon';
|
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +12,7 @@ export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(pr
|
|
|
14
12
|
console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
|
|
15
13
|
warnedOnce = true;
|
|
16
14
|
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialIcon,
|
|
15
|
+
return /*#__PURE__*/_jsx(SpeedDialIcon, _extends({
|
|
18
16
|
ref: ref
|
|
19
17
|
}, props));
|
|
20
18
|
});
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
3
|
import * as React from 'react';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
7
5
|
import Tabs from '@mui/material/Tabs';
|
|
@@ -24,7 +22,7 @@ var TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
|
24
22
|
id: getTabId(context, child.props.value)
|
|
25
23
|
});
|
|
26
24
|
});
|
|
27
|
-
return /*#__PURE__*/_jsx(Tabs,
|
|
25
|
+
return /*#__PURE__*/_jsx(Tabs, _extends({}, other, {
|
|
28
26
|
ref: ref,
|
|
29
27
|
value: context.value,
|
|
30
28
|
children: children
|