@mui/material 5.3.1 → 5.4.3
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/Autocomplete/Autocomplete.d.ts +5 -0
- package/Autocomplete/Autocomplete.js +11 -3
- package/AvatarGroup/AvatarGroup.d.ts +10 -0
- package/AvatarGroup/AvatarGroup.js +19 -7
- package/Badge/Badge.js +3 -2
- package/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/ButtonBase/ButtonBase.d.ts +5 -1
- package/ButtonBase/ButtonBase.js +15 -2
- package/ButtonBase/TouchRipple.js +1 -2
- package/CHANGELOG.md +295 -27
- package/Dialog/Dialog.d.ts +4 -1
- package/Dialog/Dialog.js +10 -6
- package/Drawer/Drawer.d.ts +4 -1
- package/Drawer/Drawer.js +11 -9
- package/Fab/Fab.d.ts +4 -1
- package/Fab/Fab.js +8 -20
- package/Fab/fabClasses.js +1 -1
- package/Fade/Fade.d.ts +2 -2
- package/Fade/Fade.js +8 -8
- package/FormControlLabel/FormControlLabel.js +11 -3
- package/FormControlLabel/formControlLabelClasses.d.ts +2 -0
- package/FormControlLabel/formControlLabelClasses.js +1 -1
- package/FormGroup/FormGroup.js +14 -3
- package/FormGroup/formGroupClasses.d.ts +2 -0
- package/FormGroup/formGroupClasses.js +1 -1
- package/FormHelperText/FormHelperText.js +7 -9
- package/Grid/Grid.js +2 -4
- package/ImageList/ImageList.js +3 -1
- package/InputAdornment/InputAdornment.js +6 -9
- package/Modal/Modal.js +1 -1
- package/OutlinedInput/NotchedOutline.js +14 -16
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/README.md +6 -6
- package/Radio/RadioButtonIcon.js +2 -6
- package/Rating/Rating.js +1 -1
- package/Select/Select.js +19 -7
- package/Select/SelectInput.js +12 -10
- package/Slide/Slide.d.ts +4 -4
- package/Slide/Slide.js +14 -14
- package/Slider/Slider.js +3 -1
- package/Snackbar/Snackbar.d.ts +2 -2
- package/Snackbar/Snackbar.js +12 -9
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDial/SpeedDial.js +9 -7
- package/Step/StepContext.d.ts +20 -0
- package/Step/StepContext.js +10 -2
- package/Step/index.d.ts +3 -0
- package/Step/index.js +3 -1
- package/SwipeableDrawer/SwipeArea.js +1 -3
- package/SwipeableDrawer/SwipeableDrawer.js +8 -6
- package/TextField/TextField.js +1 -1
- package/ToggleButton/ToggleButton.d.ts +15 -0
- package/ToggleButton/ToggleButton.js +8 -2
- package/Zoom/Zoom.d.ts +2 -2
- package/Zoom/Zoom.js +8 -8
- package/index.d.ts +11 -3
- package/index.js +8 -3
- package/internal/SwitchBase.js +2 -6
- package/legacy/Autocomplete/Autocomplete.js +12 -3
- package/legacy/AvatarGroup/AvatarGroup.js +20 -7
- package/legacy/Badge/Badge.js +4 -2
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/legacy/ButtonBase/ButtonBase.js +15 -2
- package/legacy/ButtonBase/TouchRipple.js +1 -2
- package/legacy/Dialog/Dialog.js +10 -6
- package/legacy/Drawer/Drawer.js +11 -9
- package/legacy/Fab/Fab.js +8 -20
- package/legacy/Fab/fabClasses.js +1 -1
- package/legacy/Fade/Fade.js +8 -8
- package/legacy/FormControlLabel/FormControlLabel.js +11 -3
- package/legacy/FormControlLabel/formControlLabelClasses.js +1 -1
- package/legacy/FormGroup/FormGroup.js +14 -3
- package/legacy/FormGroup/formGroupClasses.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +7 -9
- package/legacy/Grid/Grid.js +2 -4
- package/legacy/ImageList/ImageList.js +3 -1
- package/legacy/InputAdornment/InputAdornment.js +6 -9
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/OutlinedInput/NotchedOutline.js +14 -16
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Radio/RadioButtonIcon.js +2 -6
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/Select.js +23 -7
- package/legacy/Select/SelectInput.js +12 -10
- package/legacy/Slide/Slide.js +14 -14
- package/legacy/Slider/Slider.js +3 -1
- package/legacy/Snackbar/Snackbar.js +12 -9
- package/legacy/SpeedDial/SpeedDial.js +9 -7
- package/legacy/Step/StepContext.js +10 -2
- package/legacy/Step/index.js +3 -1
- package/legacy/SwipeableDrawer/SwipeArea.js +1 -3
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +8 -6
- package/legacy/TextField/TextField.js +1 -1
- package/legacy/ToggleButton/ToggleButton.js +8 -2
- package/legacy/Zoom/Zoom.js +8 -8
- package/legacy/index.js +8 -3
- package/legacy/internal/SwitchBase.js +2 -6
- package/legacy/locale/index.js +86 -78
- package/legacy/styles/makeStyles.js +1 -1
- package/legacy/styles/withStyles.js +1 -1
- package/legacy/styles/withTheme.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +87 -32
- package/locale/index.js +12 -6
- package/modern/Autocomplete/Autocomplete.js +11 -3
- package/modern/AvatarGroup/AvatarGroup.js +17 -7
- package/modern/Badge/Badge.js +3 -2
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/modern/ButtonBase/ButtonBase.js +15 -2
- package/modern/ButtonBase/TouchRipple.js +1 -2
- package/modern/Dialog/Dialog.js +10 -6
- package/modern/Drawer/Drawer.js +11 -9
- package/modern/Fab/Fab.js +8 -20
- package/modern/Fab/fabClasses.js +1 -1
- package/modern/Fade/Fade.js +8 -8
- package/modern/FormControlLabel/FormControlLabel.js +11 -3
- package/modern/FormControlLabel/formControlLabelClasses.js +1 -1
- package/modern/FormGroup/FormGroup.js +14 -3
- package/modern/FormGroup/formGroupClasses.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +7 -9
- package/modern/Grid/Grid.js +2 -4
- package/modern/ImageList/ImageList.js +3 -1
- package/modern/InputAdornment/InputAdornment.js +6 -9
- package/modern/Modal/Modal.js +1 -1
- package/modern/OutlinedInput/NotchedOutline.js +14 -16
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Radio/RadioButtonIcon.js +2 -6
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/Select.js +19 -7
- package/modern/Select/SelectInput.js +12 -10
- package/modern/Slide/Slide.js +14 -14
- package/modern/Slider/Slider.js +3 -1
- package/modern/Snackbar/Snackbar.js +12 -9
- package/modern/SpeedDial/SpeedDial.js +9 -7
- package/modern/Step/StepContext.js +10 -2
- package/modern/Step/index.js +3 -1
- package/modern/SwipeableDrawer/SwipeArea.js +1 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +8 -6
- package/modern/TextField/TextField.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +8 -2
- package/modern/Zoom/Zoom.js +8 -8
- package/modern/index.js +8 -3
- package/modern/internal/SwitchBase.js +2 -6
- package/modern/locale/index.js +12 -6
- package/modern/styles/makeStyles.js +1 -1
- package/modern/styles/withStyles.js +1 -1
- package/modern/styles/withTheme.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +69 -27
- package/node/Autocomplete/Autocomplete.js +11 -3
- package/node/AvatarGroup/AvatarGroup.js +19 -7
- package/node/Badge/Badge.js +3 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/node/ButtonBase/ButtonBase.js +15 -2
- package/node/ButtonBase/TouchRipple.js +1 -2
- package/node/Dialog/Dialog.js +11 -7
- package/node/Drawer/Drawer.js +11 -10
- package/node/Fab/Fab.js +8 -20
- package/node/Fab/fabClasses.js +1 -1
- package/node/Fade/Fade.js +7 -9
- package/node/FormControlLabel/FormControlLabel.js +12 -3
- package/node/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node/FormGroup/FormGroup.js +15 -3
- package/node/FormGroup/formGroupClasses.js +1 -1
- package/node/FormHelperText/FormHelperText.js +6 -9
- package/node/Grid/Grid.js +2 -4
- package/node/ImageList/ImageList.js +3 -1
- package/node/InputAdornment/InputAdornment.js +5 -9
- package/node/Modal/Modal.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +12 -16
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Radio/RadioButtonIcon.js +2 -6
- package/node/Rating/Rating.js +1 -1
- package/node/Select/Select.js +22 -9
- package/node/Select/SelectInput.js +11 -10
- package/node/Slide/Slide.js +14 -16
- package/node/Slider/Slider.js +3 -1
- package/node/Snackbar/Snackbar.js +12 -10
- package/node/SpeedDial/SpeedDial.js +9 -7
- package/node/Step/StepContext.js +11 -1
- package/node/Step/index.js +22 -1
- package/node/SwipeableDrawer/SwipeArea.js +1 -3
- package/node/SwipeableDrawer/SwipeableDrawer.js +8 -7
- package/node/TextField/TextField.js +1 -1
- package/node/ToggleButton/ToggleButton.js +8 -2
- package/node/Zoom/Zoom.js +7 -9
- package/node/index.js +62 -16
- package/node/internal/SwitchBase.js +2 -6
- package/node/locale/index.js +12 -6
- package/node/styles/makeStyles.js +1 -1
- package/node/styles/withStyles.js +1 -1
- package/node/styles/withTheme.js +1 -1
- package/node/useMediaQuery/useMediaQuery.js +69 -27
- package/package.json +8 -8
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/index.d.ts +3 -0
- package/styles/makeStyles.js +1 -1
- package/styles/withStyles.js +1 -1
- package/styles/withTheme.js +1 -1
- package/umd/material-ui.development.js +5022 -7146
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +4 -0
- package/useMediaQuery/useMediaQuery.js +69 -27
|
@@ -12,6 +12,6 @@ function getFormGroupUtilityClass(slot) {
|
|
|
12
12
|
return (0, _base.generateUtilityClass)('MuiFormGroup', slot);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const formGroupClasses = (0, _base.generateUtilityClasses)('MuiFormGroup', ['root', 'row']);
|
|
15
|
+
const formGroupClasses = (0, _base.generateUtilityClasses)('MuiFormGroup', ['root', 'row', 'error']);
|
|
16
16
|
var _default = formGroupClasses;
|
|
17
17
|
exports.default = _default;
|
|
@@ -33,6 +33,8 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
33
33
|
|
|
34
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
35
|
|
|
36
|
+
var _span;
|
|
37
|
+
|
|
36
38
|
const _excluded = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
|
|
37
39
|
|
|
38
40
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -123,16 +125,11 @@ const FormHelperText = /*#__PURE__*/React.forwardRef(function FormHelperText(inP
|
|
|
123
125
|
className: (0, _clsx.default)(classes.root, className),
|
|
124
126
|
ref: ref
|
|
125
127
|
}, other, {
|
|
126
|
-
children: children === ' ' ?
|
|
127
|
-
/*#__PURE__*/
|
|
128
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
129
|
-
// eslint-disable-next-line react/no-danger
|
|
130
|
-
(0, _jsxRuntime.jsx)("span", {
|
|
128
|
+
children: children === ' ' ? // notranslate needed while Google Translate will not fix zero-width space issue
|
|
129
|
+
_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
131
130
|
className: "notranslate",
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
}) : children
|
|
131
|
+
children: "\u200B"
|
|
132
|
+
})) : children
|
|
136
133
|
}));
|
|
137
134
|
});
|
|
138
135
|
process.env.NODE_ENV !== "production" ? FormHelperText.propTypes
|
package/node/Grid/Grid.js
CHANGED
|
@@ -286,10 +286,8 @@ const GridRoot = (0, _styled.default)('div', {
|
|
|
286
286
|
|
|
287
287
|
}, ownerState.zeroMinWidth && {
|
|
288
288
|
minWidth: 0
|
|
289
|
-
}, ownerState.wrap
|
|
290
|
-
flexWrap:
|
|
291
|
-
}, ownerState.wrap === 'reverse' && {
|
|
292
|
-
flexWrap: 'wrap-reverse'
|
|
289
|
+
}, ownerState.wrap !== 'wrap' && {
|
|
290
|
+
flexWrap: ownerState.wrap
|
|
293
291
|
}), generateDirection, generateRowGap, generateColumnGap, generateGrid);
|
|
294
292
|
|
|
295
293
|
const useUtilityClasses = ownerState => {
|
|
@@ -190,7 +190,9 @@ process.env.NODE_ENV !== "production" ? ImageList.propTypes
|
|
|
190
190
|
* The variant to use.
|
|
191
191
|
* @default 'standard'
|
|
192
192
|
*/
|
|
193
|
-
variant: _propTypes.default
|
|
193
|
+
variant: _propTypes.default
|
|
194
|
+
/* @typescript-to-proptypes-ignore */
|
|
195
|
+
.oneOfType([_propTypes.default.oneOf(['masonry', 'quilted', 'standard', 'woven']), _propTypes.default.string])
|
|
194
196
|
} : void 0;
|
|
195
197
|
var _default = ImageList;
|
|
196
198
|
exports.default = _default;
|
|
@@ -35,6 +35,8 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
35
35
|
|
|
36
36
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
37
|
|
|
38
|
+
var _span;
|
|
39
|
+
|
|
38
40
|
const _excluded = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"];
|
|
39
41
|
|
|
40
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -144,17 +146,11 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
|
144
146
|
children: children
|
|
145
147
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
146
148
|
children: [position === 'start' ?
|
|
147
|
-
/*#__PURE__*/
|
|
148
|
-
|
|
149
149
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
150
|
-
|
|
151
|
-
/* eslint-disable-next-line react/no-danger */
|
|
152
|
-
(0, _jsxRuntime.jsx)("span", {
|
|
150
|
+
_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
153
151
|
className: "notranslate",
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
}) : null, children]
|
|
152
|
+
children: "\u200B"
|
|
153
|
+
})) : null, children]
|
|
158
154
|
})
|
|
159
155
|
}))
|
|
160
156
|
});
|
package/node/Modal/Modal.js
CHANGED
|
@@ -250,7 +250,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
252
|
* If `true`, the modal will not restore focus to previously focused element once
|
|
253
|
-
* modal is hidden.
|
|
253
|
+
* modal is hidden or unmounted.
|
|
254
254
|
* @default false
|
|
255
255
|
*/
|
|
256
256
|
disableRestoreFocus: _propTypes.default.bool,
|
|
@@ -19,6 +19,8 @@ var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
|
19
19
|
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
|
|
22
|
+
var _span;
|
|
23
|
+
|
|
22
24
|
const _excluded = ["children", "classes", "className", "label", "notched"];
|
|
23
25
|
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -41,14 +43,12 @@ const NotchedOutlineRoot = (0, _styled.default)('fieldset')({
|
|
|
41
43
|
overflow: 'hidden',
|
|
42
44
|
minWidth: '0%'
|
|
43
45
|
});
|
|
44
|
-
const NotchedOutlineLegend = (0, _styled.default)('legend'
|
|
45
|
-
skipSx: true
|
|
46
|
-
})(({
|
|
46
|
+
const NotchedOutlineLegend = (0, _styled.default)('legend')(({
|
|
47
47
|
ownerState,
|
|
48
48
|
theme
|
|
49
49
|
}) => (0, _extends2.default)({
|
|
50
50
|
float: 'unset'
|
|
51
|
-
}, ownerState.
|
|
51
|
+
}, !ownerState.withLabel && {
|
|
52
52
|
padding: 0,
|
|
53
53
|
lineHeight: '11px',
|
|
54
54
|
// sync with `height` in `legend` styles
|
|
@@ -56,7 +56,7 @@ const NotchedOutlineLegend = (0, _styled.default)('legend', {
|
|
|
56
56
|
duration: 150,
|
|
57
57
|
easing: theme.transitions.easing.easeOut
|
|
58
58
|
})
|
|
59
|
-
}, ownerState.
|
|
59
|
+
}, ownerState.withLabel && (0, _extends2.default)({
|
|
60
60
|
display: 'block',
|
|
61
61
|
// Fix conflict with normalize.css and sanitize.css
|
|
62
62
|
width: 'auto',
|
|
@@ -96,9 +96,10 @@ function NotchedOutline(props) {
|
|
|
96
96
|
notched
|
|
97
97
|
} = props,
|
|
98
98
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
99
|
+
const withLabel = label != null && label !== '';
|
|
99
100
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
100
101
|
notched,
|
|
101
|
-
|
|
102
|
+
withLabel
|
|
102
103
|
});
|
|
103
104
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, (0, _extends2.default)({
|
|
104
105
|
"aria-hidden": true,
|
|
@@ -107,18 +108,13 @@ function NotchedOutline(props) {
|
|
|
107
108
|
}, other, {
|
|
108
109
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineLegend, {
|
|
109
110
|
ownerState: ownerState,
|
|
110
|
-
children:
|
|
111
|
+
children: withLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
111
112
|
children: label
|
|
112
|
-
}) :
|
|
113
|
-
/*#__PURE__*/
|
|
114
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
115
|
-
// eslint-disable-next-line react/no-danger
|
|
116
|
-
(0, _jsxRuntime.jsx)("span", {
|
|
113
|
+
}) : // notranslate needed while Google Translate will not fix zero-width space issue
|
|
114
|
+
_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
117
115
|
className: "notranslate",
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
})
|
|
116
|
+
children: "\u200B"
|
|
117
|
+
}))
|
|
122
118
|
})
|
|
123
119
|
}));
|
|
124
120
|
}
|
|
@@ -160,7 +160,7 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
160
160
|
}, components),
|
|
161
161
|
renderSuffix: state => /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, {
|
|
162
162
|
className: classes.notchedOutline,
|
|
163
|
-
label: label && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
163
|
+
label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
164
164
|
children: [label, "\xA0", '*']
|
|
165
165
|
})) : label,
|
|
166
166
|
notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)
|
|
@@ -29,15 +29,11 @@ const RadioButtonIconRoot = (0, _styled.default)('span')({
|
|
|
29
29
|
position: 'relative',
|
|
30
30
|
display: 'flex'
|
|
31
31
|
});
|
|
32
|
-
const RadioButtonIconBackground = (0, _styled.default)(_RadioButtonUnchecked.default
|
|
33
|
-
skipSx: true
|
|
34
|
-
})({
|
|
32
|
+
const RadioButtonIconBackground = (0, _styled.default)(_RadioButtonUnchecked.default)({
|
|
35
33
|
// Scale applied to prevent dot misalignment in Safari
|
|
36
34
|
transform: 'scale(1)'
|
|
37
35
|
});
|
|
38
|
-
const RadioButtonIconDot = (0, _styled.default)(_RadioButtonChecked.default
|
|
39
|
-
skipSx: true
|
|
40
|
-
})(({
|
|
36
|
+
const RadioButtonIconDot = (0, _styled.default)(_RadioButtonChecked.default)(({
|
|
41
37
|
theme,
|
|
42
38
|
ownerState
|
|
43
39
|
}) => (0, _extends2.default)({
|
package/node/Rating/Rating.js
CHANGED
|
@@ -426,7 +426,7 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
426
426
|
|
|
427
427
|
const handleChange = event => {
|
|
428
428
|
let newValue = event.target.value === '' ? null : parseFloat(event.target.value); // Give mouse priority over keyboard
|
|
429
|
-
// Fix https://github.com/mui
|
|
429
|
+
// Fix https://github.com/mui/material-ui/issues/22827
|
|
430
430
|
|
|
431
431
|
if (hover !== -1) {
|
|
432
432
|
newValue = hover;
|
package/node/Select/Select.js
CHANGED
|
@@ -27,11 +27,11 @@ var _useFormControl = _interopRequireDefault(require("../FormControl/useFormCont
|
|
|
27
27
|
|
|
28
28
|
var _ArrowDropDown = _interopRequireDefault(require("../internal/svg-icons/ArrowDropDown"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _Input = _interopRequireDefault(require("../Input"));
|
|
31
31
|
|
|
32
32
|
var _NativeSelectInput = _interopRequireDefault(require("../NativeSelect/NativeSelectInput"));
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _FilledInput = _interopRequireDefault(require("../FilledInput"));
|
|
35
35
|
|
|
36
36
|
var _OutlinedInput = _interopRequireDefault(require("../OutlinedInput"));
|
|
37
37
|
|
|
@@ -39,9 +39,11 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
39
39
|
|
|
40
40
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
41
41
|
|
|
42
|
+
var _styled = _interopRequireWildcard(require("../styles/styled"));
|
|
43
|
+
|
|
42
44
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
43
45
|
|
|
44
|
-
var
|
|
46
|
+
var _StyledInput, _StyledFilledInput;
|
|
45
47
|
|
|
46
48
|
const _excluded = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
|
|
47
49
|
|
|
@@ -56,6 +58,15 @@ const useUtilityClasses = ownerState => {
|
|
|
56
58
|
return classes;
|
|
57
59
|
};
|
|
58
60
|
|
|
61
|
+
const styledRootConfig = {
|
|
62
|
+
name: 'MuiSelect',
|
|
63
|
+
overridesResolver: (props, styles) => styles.root,
|
|
64
|
+
shouldForwardProp: prop => (0, _styled.rootShouldForwardProp)(prop) && prop !== 'variant',
|
|
65
|
+
slot: 'Root'
|
|
66
|
+
};
|
|
67
|
+
const StyledInput = (0, _styled.default)(_Input.default, styledRootConfig)('');
|
|
68
|
+
const StyledOutlinedInput = (0, _styled.default)(_OutlinedInput.default, styledRootConfig)('');
|
|
69
|
+
const StyledFilledInput = (0, _styled.default)(_FilledInput.default, styledRootConfig)('');
|
|
59
70
|
const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
60
71
|
const props = (0, _useThemeProps.default)({
|
|
61
72
|
name: 'MuiSelect',
|
|
@@ -82,7 +93,7 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
82
93
|
open,
|
|
83
94
|
renderValue,
|
|
84
95
|
SelectDisplayProps,
|
|
85
|
-
variant:
|
|
96
|
+
variant: variantProp = 'outlined'
|
|
86
97
|
} = props,
|
|
87
98
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
88
99
|
const inputComponent = native ? _NativeSelectInput.default : _SelectInput.default;
|
|
@@ -92,15 +103,16 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
92
103
|
muiFormControl,
|
|
93
104
|
states: ['variant']
|
|
94
105
|
});
|
|
95
|
-
const variant = fcs.variant ||
|
|
106
|
+
const variant = fcs.variant || variantProp;
|
|
96
107
|
const InputComponent = input || {
|
|
97
|
-
standard:
|
|
98
|
-
outlined: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
108
|
+
standard: _StyledInput || (_StyledInput = /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledInput, {})),
|
|
109
|
+
outlined: /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledOutlinedInput, {
|
|
99
110
|
label: label
|
|
100
111
|
}),
|
|
101
|
-
filled:
|
|
112
|
+
filled: _StyledFilledInput || (_StyledFilledInput = /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledFilledInput, {}))
|
|
102
113
|
}[variant];
|
|
103
114
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
115
|
+
variant,
|
|
104
116
|
classes: classesProp
|
|
105
117
|
});
|
|
106
118
|
const classes = useUtilityClasses(ownerState);
|
|
@@ -138,7 +150,8 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
138
150
|
notched: true
|
|
139
151
|
} : {}, {
|
|
140
152
|
ref: inputComponentRef,
|
|
141
|
-
className: (0, _clsx.default)(InputComponent.props.className, className)
|
|
153
|
+
className: (0, _clsx.default)(InputComponent.props.className, className),
|
|
154
|
+
variant
|
|
142
155
|
}, other));
|
|
143
156
|
});
|
|
144
157
|
process.env.NODE_ENV !== "production" ? Select.propTypes
|
|
@@ -43,6 +43,8 @@ var _selectClasses = _interopRequireWildcard(require("./selectClasses"));
|
|
|
43
43
|
|
|
44
44
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
45
45
|
|
|
46
|
+
var _span;
|
|
47
|
+
|
|
46
48
|
const _excluded = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
|
|
47
49
|
|
|
48
50
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -215,6 +217,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
215
217
|
}
|
|
216
218
|
}, [autoFocus]);
|
|
217
219
|
React.useEffect(() => {
|
|
220
|
+
if (!labelId) {
|
|
221
|
+
return undefined;
|
|
222
|
+
}
|
|
223
|
+
|
|
218
224
|
const label = (0, _ownerDocument.default)(displayRef.current).getElementById(labelId);
|
|
219
225
|
|
|
220
226
|
if (label) {
|
|
@@ -311,7 +317,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
311
317
|
if (onChange) {
|
|
312
318
|
// Redefine target to allow name and value to be read.
|
|
313
319
|
// This allows seamless integration with the most popular form libraries.
|
|
314
|
-
// https://github.com/mui
|
|
320
|
+
// https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
|
|
315
321
|
// Clone the event to not override `target` of the original event.
|
|
316
322
|
const nativeEvent = event.nativeEvent || event;
|
|
317
323
|
const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
@@ -509,16 +515,11 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
509
515
|
className: (0, _clsx.default)(classes.select, className, SelectDisplayProps.className) // The id is required for proper a11y
|
|
510
516
|
,
|
|
511
517
|
id: buttonId,
|
|
512
|
-
children: isEmpty(display) ?
|
|
513
|
-
/*#__PURE__*/
|
|
514
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
515
|
-
// eslint-disable-next-line react/no-danger
|
|
516
|
-
(0, _jsxRuntime.jsx)("span", {
|
|
518
|
+
children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
|
|
519
|
+
_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
517
520
|
className: "notranslate",
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
521
|
-
}) : display
|
|
521
|
+
children: "\u200B"
|
|
522
|
+
})) : display
|
|
522
523
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectNativeInput, (0, _extends2.default)({
|
|
523
524
|
value: Array.isArray(value) ? value.join(',') : value,
|
|
524
525
|
name: name,
|
package/node/Slide/Slide.js
CHANGED
|
@@ -26,8 +26,6 @@ var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
|
26
26
|
|
|
27
27
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
28
28
|
|
|
29
|
-
var _createTransitions = require("../styles/createTransitions");
|
|
30
|
-
|
|
31
29
|
var _utils2 = require("../transitions/utils");
|
|
32
30
|
|
|
33
31
|
var _utils3 = require("../utils");
|
|
@@ -109,21 +107,22 @@ function setTranslateValue(direction, node, containerProp) {
|
|
|
109
107
|
node.style.transform = transform;
|
|
110
108
|
}
|
|
111
109
|
}
|
|
112
|
-
|
|
113
|
-
const defaultEasing = {
|
|
114
|
-
enter: _createTransitions.easing.easeOut,
|
|
115
|
-
exit: _createTransitions.easing.sharp
|
|
116
|
-
};
|
|
117
|
-
const defaultTimeout = {
|
|
118
|
-
enter: _createTransitions.duration.enteringScreen,
|
|
119
|
-
exit: _createTransitions.duration.leavingScreen
|
|
120
|
-
};
|
|
121
110
|
/**
|
|
122
111
|
* The Slide transition is used by the [Drawer](/components/drawers/) component.
|
|
123
112
|
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
124
113
|
*/
|
|
125
114
|
|
|
115
|
+
|
|
126
116
|
const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
117
|
+
const theme = (0, _useTheme.default)();
|
|
118
|
+
const defaultEasing = {
|
|
119
|
+
enter: theme.transitions.easing.easeOut,
|
|
120
|
+
exit: theme.transitions.easing.sharp
|
|
121
|
+
};
|
|
122
|
+
const defaultTimeout = {
|
|
123
|
+
enter: theme.transitions.duration.enteringScreen,
|
|
124
|
+
exit: theme.transitions.duration.leavingScreen
|
|
125
|
+
};
|
|
127
126
|
const {
|
|
128
127
|
addEndListener,
|
|
129
128
|
appear = true,
|
|
@@ -144,7 +143,6 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
144
143
|
TransitionComponent = _reactTransitionGroup.Transition
|
|
145
144
|
} = props,
|
|
146
145
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
147
|
-
const theme = (0, _useTheme.default)();
|
|
148
146
|
const childrenRef = React.useRef(null);
|
|
149
147
|
const handleRefIntermediary = (0, _useForkRef.default)(children.ref, childrenRef);
|
|
150
148
|
const handleRef = (0, _useForkRef.default)(handleRefIntermediary, ref);
|
|
@@ -332,8 +330,8 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
|
|
|
332
330
|
* The transition timing function.
|
|
333
331
|
* You may specify a single easing or a object containing enter and exit values.
|
|
334
332
|
* @default {
|
|
335
|
-
* enter: easing.easeOut,
|
|
336
|
-
* exit: easing.sharp,
|
|
333
|
+
* enter: theme.transitions.easing.easeOut,
|
|
334
|
+
* exit: theme.transitions.easing.sharp,
|
|
337
335
|
* }
|
|
338
336
|
*/
|
|
339
337
|
easing: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
@@ -385,8 +383,8 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes
|
|
|
385
383
|
* The duration for the transition, in milliseconds.
|
|
386
384
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
387
385
|
* @default {
|
|
388
|
-
* enter: duration.enteringScreen,
|
|
389
|
-
* exit: duration.leavingScreen,
|
|
386
|
+
* enter: theme.transitions.duration.enteringScreen,
|
|
387
|
+
* exit: theme.transitions.duration.leavingScreen,
|
|
390
388
|
* }
|
|
391
389
|
*/
|
|
392
390
|
timeout: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
package/node/Slider/Slider.js
CHANGED
|
@@ -718,7 +718,9 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
718
718
|
* The size of the slider.
|
|
719
719
|
* @default 'medium'
|
|
720
720
|
*/
|
|
721
|
-
size: _propTypes.default
|
|
721
|
+
size: _propTypes.default
|
|
722
|
+
/* @typescript-to-proptypes-ignore */
|
|
723
|
+
.oneOfType([_propTypes.default.oneOf(['small', 'medium']), _propTypes.default.string]),
|
|
722
724
|
|
|
723
725
|
/**
|
|
724
726
|
* The granularity with which the slider can step through values. (A "discrete" slider.)
|
|
@@ -27,8 +27,6 @@ var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
|
27
27
|
|
|
28
28
|
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
29
29
|
|
|
30
|
-
var _createTransitions = require("../styles/createTransitions");
|
|
31
|
-
|
|
32
30
|
var _useEventCallback = _interopRequireDefault(require("../utils/useEventCallback"));
|
|
33
31
|
|
|
34
32
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
@@ -122,6 +120,11 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
122
120
|
props: inProps,
|
|
123
121
|
name: 'MuiSnackbar'
|
|
124
122
|
});
|
|
123
|
+
const theme = (0, _useTheme.default)();
|
|
124
|
+
const defaultTransitionDuration = {
|
|
125
|
+
enter: theme.transitions.duration.enteringScreen,
|
|
126
|
+
exit: theme.transitions.duration.leavingScreen
|
|
127
|
+
};
|
|
125
128
|
const {
|
|
126
129
|
action,
|
|
127
130
|
anchorOrigin: {
|
|
@@ -146,10 +149,7 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
146
149
|
open,
|
|
147
150
|
resumeHideDuration,
|
|
148
151
|
TransitionComponent = _Grow.default,
|
|
149
|
-
transitionDuration =
|
|
150
|
-
enter: _createTransitions.duration.enteringScreen,
|
|
151
|
-
exit: _createTransitions.duration.leavingScreen
|
|
152
|
-
},
|
|
152
|
+
transitionDuration = defaultTransitionDuration,
|
|
153
153
|
TransitionProps: {
|
|
154
154
|
onEnter,
|
|
155
155
|
onExited
|
|
@@ -157,7 +157,6 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
157
157
|
} = props,
|
|
158
158
|
TransitionProps = (0, _objectWithoutPropertiesLoose2.default)(props.TransitionProps, _excluded),
|
|
159
159
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
|
|
160
|
-
const theme = (0, _useTheme.default)();
|
|
161
160
|
const isRtl = theme.direction === 'rtl';
|
|
162
161
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
163
162
|
anchorOrigin: {
|
|
@@ -315,7 +314,10 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
315
314
|
onMouseEnter: handleMouseEnter,
|
|
316
315
|
onMouseLeave: handleMouseLeave,
|
|
317
316
|
ownerState: ownerState,
|
|
318
|
-
ref: ref
|
|
317
|
+
ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
318
|
+
// See https://github.com/mui-org/material-ui/issues/29080
|
|
319
|
+
,
|
|
320
|
+
role: "presentation"
|
|
319
321
|
}, other, {
|
|
320
322
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionComponent, (0, _extends2.default)({
|
|
321
323
|
appear: true,
|
|
@@ -471,8 +473,8 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes
|
|
|
471
473
|
* The duration for the transition, in milliseconds.
|
|
472
474
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
473
475
|
* @default {
|
|
474
|
-
* enter: duration.enteringScreen,
|
|
475
|
-
* exit: duration.leavingScreen,
|
|
476
|
+
* enter: theme.transitions.duration.enteringScreen,
|
|
477
|
+
* exit: theme.transitions.duration.leavingScreen,
|
|
476
478
|
* }
|
|
477
479
|
*/
|
|
478
480
|
transitionDuration: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
@@ -25,7 +25,7 @@ var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
|
25
25
|
|
|
26
26
|
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
29
29
|
|
|
30
30
|
var _Zoom = _interopRequireDefault(require("../Zoom"));
|
|
31
31
|
|
|
@@ -167,6 +167,11 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
|
|
|
167
167
|
props: inProps,
|
|
168
168
|
name: 'MuiSpeedDial'
|
|
169
169
|
});
|
|
170
|
+
const theme = (0, _useTheme.default)();
|
|
171
|
+
const defaultTransitionDuration = {
|
|
172
|
+
enter: theme.transitions.duration.enteringScreen,
|
|
173
|
+
exit: theme.transitions.duration.leavingScreen
|
|
174
|
+
};
|
|
170
175
|
const {
|
|
171
176
|
ariaLabel,
|
|
172
177
|
FabProps: {
|
|
@@ -186,10 +191,7 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
|
|
|
186
191
|
onOpen,
|
|
187
192
|
open: openProp,
|
|
188
193
|
TransitionComponent = _Zoom.default,
|
|
189
|
-
transitionDuration =
|
|
190
|
-
enter: _createTransitions.duration.enteringScreen,
|
|
191
|
-
exit: _createTransitions.duration.leavingScreen
|
|
192
|
-
},
|
|
194
|
+
transitionDuration = defaultTransitionDuration,
|
|
193
195
|
TransitionProps
|
|
194
196
|
} = props,
|
|
195
197
|
FabProps = (0, _objectWithoutPropertiesLoose2.default)(props.FabProps, _excluded),
|
|
@@ -567,8 +569,8 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes
|
|
|
567
569
|
* The duration for the transition, in milliseconds.
|
|
568
570
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
569
571
|
* @default {
|
|
570
|
-
* enter: duration.enteringScreen,
|
|
571
|
-
* exit: duration.leavingScreen,
|
|
572
|
+
* enter: theme.transitions.duration.enteringScreen,
|
|
573
|
+
* exit: theme.transitions.duration.leavingScreen,
|
|
572
574
|
* }
|
|
573
575
|
*/
|
|
574
576
|
transitionDuration: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
package/node/Step/StepContext.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
exports.useStepContext = useStepContext;
|
|
7
8
|
|
|
8
9
|
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
|
|
@@ -12,13 +13,22 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
12
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Provides information about the current step in Stepper.
|
|
16
17
|
*/
|
|
17
18
|
const StepContext = /*#__PURE__*/React.createContext({});
|
|
18
19
|
|
|
19
20
|
if (process.env.NODE_ENV !== 'production') {
|
|
20
21
|
StepContext.displayName = 'StepContext';
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns the current StepContext or an empty object if no StepContext
|
|
25
|
+
* has been defined in the component tree.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
function useStepContext() {
|
|
30
|
+
return React.useContext(StepContext);
|
|
31
|
+
}
|
|
22
32
|
|
|
23
33
|
var _default = StepContext;
|
|
24
34
|
exports.default = _default;
|
package/node/Step/index.js
CHANGED
|
@@ -6,8 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
var _exportNames = {
|
|
9
|
-
stepClasses: true
|
|
9
|
+
stepClasses: true,
|
|
10
|
+
StepContext: true
|
|
10
11
|
};
|
|
12
|
+
Object.defineProperty(exports, "StepContext", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _StepContext.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
11
18
|
Object.defineProperty(exports, "default", {
|
|
12
19
|
enumerable: true,
|
|
13
20
|
get: function () {
|
|
@@ -37,6 +44,20 @@ Object.keys(_stepClasses).forEach(function (key) {
|
|
|
37
44
|
});
|
|
38
45
|
});
|
|
39
46
|
|
|
47
|
+
var _StepContext = _interopRequireWildcard(require("./StepContext"));
|
|
48
|
+
|
|
49
|
+
Object.keys(_StepContext).forEach(function (key) {
|
|
50
|
+
if (key === "default" || key === "__esModule") return;
|
|
51
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
52
|
+
if (key in exports && exports[key] === _StepContext[key]) return;
|
|
53
|
+
Object.defineProperty(exports, key, {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () {
|
|
56
|
+
return _StepContext[key];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
40
61
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
62
|
|
|
42
63
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -31,9 +31,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
33
|
|
|
34
|
-
const SwipeAreaRoot = (0, _styled.default)('div'
|
|
35
|
-
skipSx: true
|
|
36
|
-
})(({
|
|
34
|
+
const SwipeAreaRoot = (0, _styled.default)('div')(({
|
|
37
35
|
theme,
|
|
38
36
|
ownerState
|
|
39
37
|
}) => (0, _extends2.default)({
|