@mui/material 5.14.17 → 5.14.19
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 +3 -0
- package/Autocomplete/Autocomplete.js +24 -5
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/Box/Box.js +2 -1
- package/Box/boxClasses.d.ts +7 -0
- package/Box/boxClasses.js +3 -0
- package/Box/index.d.ts +3 -0
- package/Box/index.js +3 -1
- package/CHANGELOG.md +154 -6
- package/Chip/Chip.js +2 -2
- package/FilledInput/FilledInput.js +9 -6
- package/FormControlLabel/FormControlLabel.js +1 -2
- package/InputAdornment/InputAdornment.js +2 -2
- package/InputLabel/InputLabel.js +5 -1
- package/Modal/Modal.d.ts +3 -0
- package/Modal/Modal.js +3 -0
- package/Popper/Popper.js +3 -0
- package/Rating/Rating.js +4 -6
- package/Select/Select.d.ts +1 -2
- package/Select/SelectInput.js +2 -1
- package/StepButton/StepButton.js +1 -1
- package/TablePagination/TablePagination.d.ts +23 -0
- package/TablePagination/TablePagination.js +47 -12
- package/TablePagination/TablePaginationActions.d.ts +19 -0
- package/TablePagination/TablePaginationActions.js +35 -15
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +4 -5
- package/legacy/AccordionSummary/AccordionSummary.js +5 -6
- package/legacy/Autocomplete/Autocomplete.js +55 -41
- package/legacy/AvatarGroup/AvatarGroup.js +2 -3
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Box/Box.js +2 -1
- package/legacy/Box/boxClasses.js +3 -0
- package/legacy/Box/index.js +3 -1
- package/legacy/Button/Button.js +10 -11
- package/legacy/ButtonBase/ButtonBase.js +4 -5
- package/legacy/ButtonGroup/ButtonGroup.js +4 -5
- package/legacy/CardActionArea/CardActionArea.js +4 -5
- package/legacy/CardHeader/CardHeader.js +1 -2
- package/legacy/Checkbox/Checkbox.js +3 -4
- package/legacy/Chip/Chip.js +29 -32
- package/legacy/FilledInput/FilledInput.js +20 -17
- package/legacy/FormControlLabel/FormControlLabel.js +1 -2
- package/legacy/FormHelperText/FormHelperText.js +4 -5
- package/legacy/FormLabel/FormLabel.js +5 -6
- package/legacy/Input/Input.js +7 -8
- package/legacy/InputAdornment/InputAdornment.js +2 -2
- package/legacy/InputBase/InputBase.js +5 -6
- package/legacy/InputLabel/InputLabel.js +5 -1
- package/legacy/ListItem/ListItem.js +4 -5
- package/legacy/ListItemButton/ListItemButton.js +6 -7
- package/legacy/MenuItem/MenuItem.js +11 -12
- package/legacy/Modal/Modal.js +3 -0
- package/legacy/NativeSelect/NativeSelectInput.js +6 -7
- package/legacy/OutlinedInput/OutlinedInput.js +7 -8
- package/legacy/PaginationItem/PaginationItem.js +9 -10
- package/legacy/Popper/Popper.js +3 -0
- package/legacy/Rating/Rating.js +8 -10
- package/legacy/Select/SelectInput.js +2 -1
- package/legacy/Slider/Slider.js +11 -14
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -5
- package/legacy/StepButton/StepButton.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -6
- package/legacy/StepLabel/StepLabel.js +10 -12
- package/legacy/Switch/Switch.js +14 -17
- package/legacy/Tab/Tab.js +10 -11
- package/legacy/TablePagination/TablePagination.js +53 -19
- package/legacy/TablePagination/TablePaginationActions.js +35 -14
- package/legacy/TableRow/TableRow.js +4 -5
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/ToggleButton/ToggleButton.js +4 -5
- package/legacy/Tooltip/Tooltip.js +10 -12
- package/legacy/index.js +1 -1
- package/legacy/styles/createMixins.js +4 -5
- package/modern/Autocomplete/Autocomplete.js +24 -5
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Box/Box.js +2 -1
- package/modern/Box/boxClasses.js +3 -0
- package/modern/Box/index.js +3 -1
- package/modern/Chip/Chip.js +2 -2
- package/modern/FilledInput/FilledInput.js +9 -6
- package/modern/FormControlLabel/FormControlLabel.js +1 -2
- package/modern/InputAdornment/InputAdornment.js +2 -2
- package/modern/InputLabel/InputLabel.js +5 -1
- package/modern/Modal/Modal.js +3 -0
- package/modern/Popper/Popper.js +3 -0
- package/modern/Rating/Rating.js +4 -6
- package/modern/Select/SelectInput.js +2 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/TablePagination/TablePagination.js +46 -12
- package/modern/TablePagination/TablePaginationActions.js +34 -15
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +24 -5
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Box/Box.js +2 -1
- package/node/Box/boxClasses.js +9 -0
- package/node/Box/index.js +24 -1
- package/node/Chip/Chip.js +2 -2
- package/node/FilledInput/FilledInput.js +9 -6
- package/node/FormControlLabel/FormControlLabel.js +1 -2
- package/node/InputAdornment/InputAdornment.js +2 -2
- package/node/InputLabel/InputLabel.js +5 -1
- package/node/Modal/Modal.js +3 -0
- package/node/Popper/Popper.js +3 -0
- package/node/Rating/Rating.js +4 -6
- package/node/Select/SelectInput.js +2 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/TablePagination/TablePagination.js +47 -12
- package/node/TablePagination/TablePaginationActions.js +35 -15
- package/node/index.js +1 -1
- package/package.json +9 -9
- package/umd/material-ui.development.js +180 -102
- package/umd/material-ui.production.min.js +21 -21
|
@@ -84,7 +84,6 @@ export var InputBaseComponent = styled('input', {
|
|
|
84
84
|
slot: 'Input',
|
|
85
85
|
overridesResolver: inputOverridesResolver
|
|
86
86
|
})(function (_ref2) {
|
|
87
|
-
var _extends3;
|
|
88
87
|
var theme = _ref2.theme,
|
|
89
88
|
ownerState = _ref2.ownerState;
|
|
90
89
|
var light = theme.palette.mode === 'light';
|
|
@@ -107,7 +106,7 @@ export var InputBaseComponent = styled('input', {
|
|
|
107
106
|
} : {
|
|
108
107
|
opacity: light ? 0.42 : 0.5
|
|
109
108
|
};
|
|
110
|
-
return _extends((
|
|
109
|
+
return _extends(_defineProperty(_defineProperty(_defineProperty({
|
|
111
110
|
font: 'inherit',
|
|
112
111
|
letterSpacing: 'inherit',
|
|
113
112
|
color: 'currentColor',
|
|
@@ -145,7 +144,7 @@ export var InputBaseComponent = styled('input', {
|
|
|
145
144
|
// Remove the padding when type=search.
|
|
146
145
|
WebkitAppearance: 'none'
|
|
147
146
|
}
|
|
148
|
-
},
|
|
147
|
+
}, "label[data-shrink=false] + .".concat(inputBaseClasses.formControl, " &"), {
|
|
149
148
|
'&::-webkit-input-placeholder': placeholderHidden,
|
|
150
149
|
'&::-moz-placeholder': placeholderHidden,
|
|
151
150
|
// Firefox 19+
|
|
@@ -159,14 +158,14 @@ export var InputBaseComponent = styled('input', {
|
|
|
159
158
|
'&:focus:-ms-input-placeholder': placeholderVisible,
|
|
160
159
|
// IE11
|
|
161
160
|
'&:focus::-ms-input-placeholder': placeholderVisible // Edge
|
|
162
|
-
}),
|
|
161
|
+
}), "&.".concat(inputBaseClasses.disabled), {
|
|
163
162
|
opacity: 1,
|
|
164
163
|
// Reset iOS opacity
|
|
165
164
|
WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
|
|
166
|
-
}),
|
|
165
|
+
}), '&:-webkit-autofill', {
|
|
167
166
|
animationDuration: '5000s',
|
|
168
167
|
animationName: 'mui-auto-fill'
|
|
169
|
-
}),
|
|
168
|
+
}), ownerState.size === 'small' && {
|
|
170
169
|
paddingTop: 1
|
|
171
170
|
}, ownerState.multiline && {
|
|
172
171
|
height: 'auto',
|
|
@@ -101,7 +101,11 @@ var InputLabelRoot = styled(FormLabel, {
|
|
|
101
101
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
102
102
|
maxWidth: 'calc(133% - 32px)',
|
|
103
103
|
transform: 'translate(14px, -9px) scale(0.75)'
|
|
104
|
-
})
|
|
104
|
+
}), ownerState.variant === 'standard' && {
|
|
105
|
+
'&:not(label) + div': {
|
|
106
|
+
marginTop: 16
|
|
107
|
+
}
|
|
108
|
+
});
|
|
105
109
|
});
|
|
106
110
|
var InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
|
|
107
111
|
var props = useThemeProps({
|
|
@@ -47,7 +47,6 @@ export var ListItemRoot = styled('div', {
|
|
|
47
47
|
slot: 'Root',
|
|
48
48
|
overridesResolver: overridesResolver
|
|
49
49
|
})(function (_ref) {
|
|
50
|
-
var _extends2;
|
|
51
50
|
var theme = _ref.theme,
|
|
52
51
|
ownerState = _ref.ownerState;
|
|
53
52
|
return _extends({
|
|
@@ -74,15 +73,15 @@ export var ListItemRoot = styled('div', {
|
|
|
74
73
|
paddingRight: 48
|
|
75
74
|
}), !!ownerState.secondaryAction && _defineProperty({}, "& > .".concat(listItemButtonClasses.root), {
|
|
76
75
|
paddingRight: 48
|
|
77
|
-
}), (
|
|
76
|
+
}), _defineProperty(_defineProperty(_defineProperty({}, "&.".concat(listItemClasses.focusVisible), {
|
|
78
77
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
79
|
-
}),
|
|
78
|
+
}), "&.".concat(listItemClasses.selected), _defineProperty({
|
|
80
79
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
81
80
|
}, "&.".concat(listItemClasses.focusVisible), {
|
|
82
81
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
83
|
-
})),
|
|
82
|
+
})), "&.".concat(listItemClasses.disabled), {
|
|
84
83
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
85
|
-
}),
|
|
84
|
+
}), ownerState.alignItems === 'flex-start' && {
|
|
86
85
|
alignItems: 'flex-start'
|
|
87
86
|
}, ownerState.divider && {
|
|
88
87
|
borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
|
|
@@ -42,10 +42,9 @@ var ListItemButtonRoot = styled(ButtonBase, {
|
|
|
42
42
|
slot: 'Root',
|
|
43
43
|
overridesResolver: overridesResolver
|
|
44
44
|
})(function (_ref) {
|
|
45
|
-
var _extends2;
|
|
46
45
|
var theme = _ref.theme,
|
|
47
46
|
ownerState = _ref.ownerState;
|
|
48
|
-
return _extends((
|
|
47
|
+
return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
49
48
|
display: 'flex',
|
|
50
49
|
flexGrow: 1,
|
|
51
50
|
justifyContent: 'flex-start',
|
|
@@ -68,21 +67,21 @@ var ListItemButtonRoot = styled(ButtonBase, {
|
|
|
68
67
|
backgroundColor: 'transparent'
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
|
-
},
|
|
70
|
+
}, "&.".concat(listItemButtonClasses.selected), _defineProperty({
|
|
72
71
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
73
72
|
}, "&.".concat(listItemButtonClasses.focusVisible), {
|
|
74
73
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
75
|
-
})),
|
|
74
|
+
})), "&.".concat(listItemButtonClasses.selected, ":hover"), {
|
|
76
75
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
77
76
|
// Reset on touch devices, it doesn't add specificity
|
|
78
77
|
'@media (hover: none)': {
|
|
79
78
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
80
79
|
}
|
|
81
|
-
}),
|
|
80
|
+
}), "&.".concat(listItemButtonClasses.focusVisible), {
|
|
82
81
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
83
|
-
}),
|
|
82
|
+
}), "&.".concat(listItemButtonClasses.disabled), {
|
|
84
83
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
85
|
-
}),
|
|
84
|
+
}), ownerState.divider && {
|
|
86
85
|
borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
|
|
87
86
|
backgroundClip: 'padding-box'
|
|
88
87
|
}, ownerState.alignItems === 'flex-start' && {
|
|
@@ -44,7 +44,6 @@ var MenuItemRoot = styled(ButtonBase, {
|
|
|
44
44
|
slot: 'Root',
|
|
45
45
|
overridesResolver: overridesResolver
|
|
46
46
|
})(function (_ref) {
|
|
47
|
-
var _extends2;
|
|
48
47
|
var theme = _ref.theme,
|
|
49
48
|
ownerState = _ref.ownerState;
|
|
50
49
|
return _extends({}, theme.typography.body1, {
|
|
@@ -64,7 +63,7 @@ var MenuItemRoot = styled(ButtonBase, {
|
|
|
64
63
|
}, ownerState.divider && {
|
|
65
64
|
borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
|
|
66
65
|
backgroundClip: 'padding-box'
|
|
67
|
-
}, (
|
|
66
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
68
67
|
'&:hover': {
|
|
69
68
|
textDecoration: 'none',
|
|
70
69
|
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
@@ -73,33 +72,33 @@ var MenuItemRoot = styled(ButtonBase, {
|
|
|
73
72
|
backgroundColor: 'transparent'
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
|
-
},
|
|
75
|
+
}, "&.".concat(menuItemClasses.selected), _defineProperty({
|
|
77
76
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
78
77
|
}, "&.".concat(menuItemClasses.focusVisible), {
|
|
79
78
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
80
|
-
})),
|
|
79
|
+
})), "&.".concat(menuItemClasses.selected, ":hover"), {
|
|
81
80
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
82
81
|
// Reset on touch devices, it doesn't add specificity
|
|
83
82
|
'@media (hover: none)': {
|
|
84
83
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
85
84
|
}
|
|
86
|
-
}),
|
|
85
|
+
}), "&.".concat(menuItemClasses.focusVisible), {
|
|
87
86
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
88
|
-
}),
|
|
87
|
+
}), "&.".concat(menuItemClasses.disabled), {
|
|
89
88
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
90
|
-
}),
|
|
89
|
+
}), "& + .".concat(dividerClasses.root), {
|
|
91
90
|
marginTop: theme.spacing(1),
|
|
92
91
|
marginBottom: theme.spacing(1)
|
|
93
|
-
}),
|
|
92
|
+
}), "& + .".concat(dividerClasses.inset), {
|
|
94
93
|
marginLeft: 52
|
|
95
|
-
}),
|
|
94
|
+
}), "& .".concat(listItemTextClasses.root), {
|
|
96
95
|
marginTop: 0,
|
|
97
96
|
marginBottom: 0
|
|
98
|
-
}),
|
|
97
|
+
}), "& .".concat(listItemTextClasses.inset), {
|
|
99
98
|
paddingLeft: 36
|
|
100
|
-
}),
|
|
99
|
+
}), "& .".concat(listItemIconClasses.root), {
|
|
101
100
|
minWidth: 36
|
|
102
|
-
}),
|
|
101
|
+
}), !ownerState.dense && _defineProperty({}, theme.breakpoints.up('sm'), {
|
|
103
102
|
minHeight: 'auto'
|
|
104
103
|
}), ownerState.dense && _extends({
|
|
105
104
|
minHeight: 32,
|
package/legacy/Modal/Modal.js
CHANGED
|
@@ -284,6 +284,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
284
284
|
* An HTML element or function that returns one.
|
|
285
285
|
* The `container` will have the portal children appended to it.
|
|
286
286
|
*
|
|
287
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
288
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
289
|
+
*
|
|
287
290
|
* By default, it uses the body of the top-level document object,
|
|
288
291
|
* so it's simply `document.body` most of the time.
|
|
289
292
|
*/
|
|
@@ -27,10 +27,9 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
27
27
|
return composeClasses(slots, getNativeSelectUtilityClasses, classes);
|
|
28
28
|
};
|
|
29
29
|
export var nativeSelectSelectStyles = function nativeSelectSelectStyles(_ref) {
|
|
30
|
-
var _extends2;
|
|
31
30
|
var ownerState = _ref.ownerState,
|
|
32
31
|
theme = _ref.theme;
|
|
33
|
-
return _extends((
|
|
32
|
+
return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
34
33
|
MozAppearance: 'none',
|
|
35
34
|
// Reset
|
|
36
35
|
WebkitAppearance: 'none',
|
|
@@ -53,16 +52,16 @@ export var nativeSelectSelectStyles = function nativeSelectSelectStyles(_ref) {
|
|
|
53
52
|
'&::-ms-expand': {
|
|
54
53
|
display: 'none'
|
|
55
54
|
}
|
|
56
|
-
},
|
|
55
|
+
}, "&.".concat(nativeSelectClasses.disabled), {
|
|
57
56
|
cursor: 'default'
|
|
58
|
-
}),
|
|
57
|
+
}), '&[multiple]', {
|
|
59
58
|
height: 'auto'
|
|
60
|
-
}),
|
|
59
|
+
}), '&:not([multiple]) option, &:not([multiple]) optgroup', {
|
|
61
60
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
62
|
-
}),
|
|
61
|
+
}), '&&&', {
|
|
63
62
|
paddingRight: 24,
|
|
64
63
|
minWidth: 16 // So it doesn't collapse.
|
|
65
|
-
}),
|
|
64
|
+
}), ownerState.variant === 'filled' && {
|
|
66
65
|
'&&&': {
|
|
67
66
|
paddingRight: 32
|
|
68
67
|
}
|
|
@@ -34,25 +34,24 @@ var OutlinedInputRoot = styled(InputBaseRoot, {
|
|
|
34
34
|
slot: 'Root',
|
|
35
35
|
overridesResolver: inputBaseRootOverridesResolver
|
|
36
36
|
})(function (_ref) {
|
|
37
|
-
var _extends2;
|
|
38
37
|
var theme = _ref.theme,
|
|
39
38
|
ownerState = _ref.ownerState;
|
|
40
39
|
var borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
41
|
-
return _extends((
|
|
40
|
+
return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
42
41
|
position: 'relative',
|
|
43
42
|
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
44
|
-
},
|
|
43
|
+
}, "&:hover .".concat(outlinedInputClasses.notchedOutline), {
|
|
45
44
|
borderColor: (theme.vars || theme).palette.text.primary
|
|
46
|
-
}),
|
|
45
|
+
}), '@media (hover: none)', _defineProperty({}, "&:hover .".concat(outlinedInputClasses.notchedOutline), {
|
|
47
46
|
borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : borderColor
|
|
48
|
-
})),
|
|
47
|
+
})), "&.".concat(outlinedInputClasses.focused, " .").concat(outlinedInputClasses.notchedOutline), {
|
|
49
48
|
borderColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
50
49
|
borderWidth: 2
|
|
51
|
-
}),
|
|
50
|
+
}), "&.".concat(outlinedInputClasses.error, " .").concat(outlinedInputClasses.notchedOutline), {
|
|
52
51
|
borderColor: (theme.vars || theme).palette.error.main
|
|
53
|
-
}),
|
|
52
|
+
}), "&.".concat(outlinedInputClasses.disabled, " .").concat(outlinedInputClasses.notchedOutline), {
|
|
54
53
|
borderColor: (theme.vars || theme).palette.action.disabled
|
|
55
|
-
}),
|
|
54
|
+
}), ownerState.startAdornment && {
|
|
56
55
|
paddingLeft: 14
|
|
57
56
|
}, ownerState.endAdornment && {
|
|
58
57
|
paddingRight: 14
|
|
@@ -82,10 +82,9 @@ var PaginationItemPage = styled(ButtonBase, {
|
|
|
82
82
|
slot: 'Root',
|
|
83
83
|
overridesResolver: overridesResolver
|
|
84
84
|
})(function (_ref2) {
|
|
85
|
-
var _$concat, _extends3;
|
|
86
85
|
var theme = _ref2.theme,
|
|
87
86
|
ownerState = _ref2.ownerState;
|
|
88
|
-
return _extends({}, theme.typography.body2, (
|
|
87
|
+
return _extends({}, theme.typography.body2, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
89
88
|
borderRadius: 32 / 2,
|
|
90
89
|
textAlign: 'center',
|
|
91
90
|
boxSizing: 'border-box',
|
|
@@ -94,19 +93,19 @@ var PaginationItemPage = styled(ButtonBase, {
|
|
|
94
93
|
padding: '0 6px',
|
|
95
94
|
margin: '0 3px',
|
|
96
95
|
color: (theme.vars || theme).palette.text.primary
|
|
97
|
-
},
|
|
96
|
+
}, "&.".concat(paginationItemClasses.focusVisible), {
|
|
98
97
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
99
|
-
}),
|
|
98
|
+
}), "&.".concat(paginationItemClasses.disabled), {
|
|
100
99
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
101
|
-
}),
|
|
100
|
+
}), "transition", theme.transitions.create(['color', 'background-color'], {
|
|
102
101
|
duration: theme.transitions.duration.short
|
|
103
|
-
})),
|
|
102
|
+
})), '&:hover', {
|
|
104
103
|
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
105
104
|
// Reset on touch devices, it doesn't add specificity
|
|
106
105
|
'@media (hover: none)': {
|
|
107
106
|
backgroundColor: 'transparent'
|
|
108
107
|
}
|
|
109
|
-
}),
|
|
108
|
+
}), "&.".concat(paginationItemClasses.selected), _defineProperty(_defineProperty({
|
|
110
109
|
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
111
110
|
'&:hover': {
|
|
112
111
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
@@ -115,13 +114,13 @@ var PaginationItemPage = styled(ButtonBase, {
|
|
|
115
114
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
},
|
|
117
|
+
}, "&.".concat(paginationItemClasses.focusVisible), {
|
|
119
118
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
120
|
-
}),
|
|
119
|
+
}), "&.".concat(paginationItemClasses.disabled), {
|
|
121
120
|
opacity: 1,
|
|
122
121
|
color: (theme.vars || theme).palette.action.disabled,
|
|
123
122
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
124
|
-
})
|
|
123
|
+
})), ownerState.size === 'small' && {
|
|
125
124
|
minWidth: 26,
|
|
126
125
|
height: 26,
|
|
127
126
|
borderRadius: 26 / 2,
|
package/legacy/Popper/Popper.js
CHANGED
|
@@ -116,6 +116,9 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
116
116
|
* An HTML element or function that returns one.
|
|
117
117
|
* The `container` will have the portal children appended to it.
|
|
118
118
|
*
|
|
119
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
120
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
121
|
+
*
|
|
119
122
|
* By default, it uses the body of the top-level document object,
|
|
120
123
|
* so it's simply `document.body` most of the time.
|
|
121
124
|
*/
|
package/legacy/Rating/Rating.js
CHANGED
|
@@ -68,10 +68,9 @@ var RatingRoot = styled('span', {
|
|
|
68
68
|
return [_defineProperty({}, "& .".concat(ratingClasses.visuallyHidden), styles.visuallyHidden), styles.root, styles["size".concat(capitalize(ownerState.size))], ownerState.readOnly && styles.readOnly];
|
|
69
69
|
}
|
|
70
70
|
})(function (_ref2) {
|
|
71
|
-
var _extends2;
|
|
72
71
|
var theme = _ref2.theme,
|
|
73
72
|
ownerState = _ref2.ownerState;
|
|
74
|
-
return _extends((
|
|
73
|
+
return _extends(_defineProperty(_defineProperty(_defineProperty({
|
|
75
74
|
display: 'inline-flex',
|
|
76
75
|
// Required to position the pristine input absolutely
|
|
77
76
|
position: 'relative',
|
|
@@ -80,12 +79,12 @@ var RatingRoot = styled('span', {
|
|
|
80
79
|
cursor: 'pointer',
|
|
81
80
|
textAlign: 'left',
|
|
82
81
|
WebkitTapHighlightColor: 'transparent'
|
|
83
|
-
},
|
|
82
|
+
}, "&.".concat(ratingClasses.disabled), {
|
|
84
83
|
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
85
84
|
pointerEvents: 'none'
|
|
86
|
-
}),
|
|
85
|
+
}), "&.".concat(ratingClasses.focusVisible, " .").concat(ratingClasses.iconActive), {
|
|
87
86
|
outline: '1px solid #999'
|
|
88
|
-
}),
|
|
87
|
+
}), "& .".concat(ratingClasses.visuallyHidden), visuallyHidden), ownerState.size === 'small' && {
|
|
89
88
|
fontSize: theme.typography.pxToRem(18)
|
|
90
89
|
}, ownerState.size === 'large' && {
|
|
91
90
|
fontSize: theme.typography.pxToRem(30)
|
|
@@ -346,14 +345,13 @@ var Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
346
345
|
var rootNode = rootRef.current;
|
|
347
346
|
var _rootNode$getBounding = rootNode.getBoundingClientRect(),
|
|
348
347
|
right = _rootNode$getBounding.right,
|
|
349
|
-
left = _rootNode$getBounding.left
|
|
350
|
-
|
|
351
|
-
width = _rootNode$firstChild$.width;
|
|
348
|
+
left = _rootNode$getBounding.left,
|
|
349
|
+
containerWidth = _rootNode$getBounding.width;
|
|
352
350
|
var percent;
|
|
353
351
|
if (theme.direction === 'rtl') {
|
|
354
|
-
percent = (right - event.clientX) /
|
|
352
|
+
percent = (right - event.clientX) / containerWidth;
|
|
355
353
|
} else {
|
|
356
|
-
percent = (event.clientX - left) /
|
|
354
|
+
percent = (event.clientX - left) / containerWidth;
|
|
357
355
|
}
|
|
358
356
|
var newHover = roundValueToPrecision(max * percent + precision / 2, precision);
|
|
359
357
|
newHover = clamp(newHover, precision, max);
|
|
@@ -446,6 +446,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
446
446
|
var classes = useUtilityClasses(ownerState);
|
|
447
447
|
var paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
448
448
|
var listboxId = useId();
|
|
449
|
+
var hiddenInputId = useId();
|
|
449
450
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
450
451
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
|
451
452
|
ref: handleDisplayRef,
|
|
@@ -476,7 +477,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
476
477
|
})), /*#__PURE__*/_jsx(SelectNativeInput, _extends({
|
|
477
478
|
"aria-invalid": error,
|
|
478
479
|
value: Array.isArray(value) ? value.join(',') : value,
|
|
479
|
-
name: name,
|
|
480
|
+
name: name != null ? name : hiddenInputId,
|
|
480
481
|
ref: inputRef,
|
|
481
482
|
"aria-hidden": true,
|
|
482
483
|
onChange: handleChange,
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -30,7 +30,6 @@ export var SliderRoot = styled('span', {
|
|
|
30
30
|
return [styles.root, styles["color".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
|
|
31
31
|
}
|
|
32
32
|
})(function (_ref) {
|
|
33
|
-
var _extends2;
|
|
34
33
|
var theme = _ref.theme,
|
|
35
34
|
ownerState = _ref.ownerState;
|
|
36
35
|
return _extends({
|
|
@@ -68,17 +67,17 @@ export var SliderRoot = styled('span', {
|
|
|
68
67
|
width: 2
|
|
69
68
|
}, ownerState.marked && {
|
|
70
69
|
marginRight: 44
|
|
71
|
-
}), (
|
|
70
|
+
}), _defineProperty(_defineProperty({
|
|
72
71
|
'@media print': {
|
|
73
72
|
colorAdjust: 'exact'
|
|
74
73
|
}
|
|
75
|
-
},
|
|
74
|
+
}, "&.".concat(sliderClasses.disabled), {
|
|
76
75
|
pointerEvents: 'none',
|
|
77
76
|
cursor: 'default',
|
|
78
77
|
color: (theme.vars || theme).palette.grey[400]
|
|
79
|
-
}),
|
|
78
|
+
}), "&.".concat(sliderClasses.dragging), _defineProperty({}, "& .".concat(sliderClasses.thumb, ", & .").concat(sliderClasses.track), {
|
|
80
79
|
transition: 'none'
|
|
81
|
-
}))
|
|
80
|
+
})));
|
|
82
81
|
});
|
|
83
82
|
export var SliderRail = styled('span', {
|
|
84
83
|
name: 'MuiSlider',
|
|
@@ -154,7 +153,6 @@ export var SliderThumb = styled('span', {
|
|
|
154
153
|
return [styles.thumb, styles["thumbColor".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["thumbSize".concat(capitalize(ownerState.size))]];
|
|
155
154
|
}
|
|
156
155
|
})(function (_ref4) {
|
|
157
|
-
var _extends3;
|
|
158
156
|
var theme = _ref4.theme,
|
|
159
157
|
ownerState = _ref4.ownerState;
|
|
160
158
|
return _extends({
|
|
@@ -180,7 +178,7 @@ export var SliderThumb = styled('span', {
|
|
|
180
178
|
}, ownerState.orientation === 'vertical' && {
|
|
181
179
|
left: '50%',
|
|
182
180
|
transform: 'translate(-50%, 50%)'
|
|
183
|
-
}, (
|
|
181
|
+
}, _defineProperty(_defineProperty(_defineProperty({
|
|
184
182
|
'&:before': _extends({
|
|
185
183
|
position: 'absolute',
|
|
186
184
|
content: '""',
|
|
@@ -202,18 +200,18 @@ export var SliderThumb = styled('span', {
|
|
|
202
200
|
left: '50%',
|
|
203
201
|
transform: 'translate(-50%, -50%)'
|
|
204
202
|
}
|
|
205
|
-
},
|
|
203
|
+
}, "&:hover, &.".concat(sliderClasses.focusVisible), {
|
|
206
204
|
boxShadow: "0px 0px 0px 8px ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.16)") : alpha(theme.palette[ownerState.color].main, 0.16)),
|
|
207
205
|
'@media (hover: none)': {
|
|
208
206
|
boxShadow: 'none'
|
|
209
207
|
}
|
|
210
|
-
}),
|
|
208
|
+
}), "&.".concat(sliderClasses.active), {
|
|
211
209
|
boxShadow: "0px 0px 0px 14px ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.16)") : alpha(theme.palette[ownerState.color].main, 0.16))
|
|
212
|
-
}),
|
|
210
|
+
}), "&.".concat(sliderClasses.disabled), {
|
|
213
211
|
'&:hover': {
|
|
214
212
|
boxShadow: 'none'
|
|
215
213
|
}
|
|
216
|
-
})
|
|
214
|
+
}));
|
|
217
215
|
});
|
|
218
216
|
export var SliderValueLabel = styled(BaseSliderValueLabel, {
|
|
219
217
|
name: 'MuiSlider',
|
|
@@ -222,12 +220,11 @@ export var SliderValueLabel = styled(BaseSliderValueLabel, {
|
|
|
222
220
|
return styles.valueLabel;
|
|
223
221
|
}
|
|
224
222
|
})(function (_ref5) {
|
|
225
|
-
var _extends4;
|
|
226
223
|
var theme = _ref5.theme,
|
|
227
224
|
ownerState = _ref5.ownerState;
|
|
228
|
-
return _extends((
|
|
225
|
+
return _extends(_defineProperty(_defineProperty(_defineProperty({}, "&.".concat(sliderClasses.valueLabelOpen), {
|
|
229
226
|
transform: "".concat(ownerState.orientation === 'vertical' ? 'translateY(-50%)' : 'translateY(-100%)', " scale(1)")
|
|
230
|
-
}),
|
|
227
|
+
}), "zIndex", 1), "whiteSpace", 'nowrap'), theme.typography.body2, {
|
|
231
228
|
fontWeight: 500,
|
|
232
229
|
transition: theme.transitions.create(['transform'], {
|
|
233
230
|
duration: theme.transitions.duration.shortest
|
|
@@ -32,12 +32,11 @@ var SpeedDialIconRoot = styled('span', {
|
|
|
32
32
|
return [_defineProperty({}, "& .".concat(speedDialIconClasses.icon), styles.icon), _defineProperty({}, "& .".concat(speedDialIconClasses.icon), ownerState.open && styles.iconOpen), _defineProperty({}, "& .".concat(speedDialIconClasses.icon), ownerState.open && ownerState.openIcon && styles.iconWithOpenIconOpen), _defineProperty({}, "& .".concat(speedDialIconClasses.openIcon), styles.openIcon), _defineProperty({}, "& .".concat(speedDialIconClasses.openIcon), ownerState.open && styles.openIconOpen), styles.root];
|
|
33
33
|
}
|
|
34
34
|
})(function (_ref6) {
|
|
35
|
-
var _ref7;
|
|
36
35
|
var theme = _ref6.theme,
|
|
37
36
|
ownerState = _ref6.ownerState;
|
|
38
|
-
return
|
|
37
|
+
return _defineProperty(_defineProperty({
|
|
39
38
|
height: 24
|
|
40
|
-
},
|
|
39
|
+
}, "& .".concat(speedDialIconClasses.icon), _extends({
|
|
41
40
|
transition: theme.transitions.create(['transform', 'opacity'], {
|
|
42
41
|
duration: theme.transitions.duration.short
|
|
43
42
|
})
|
|
@@ -45,7 +44,7 @@ var SpeedDialIconRoot = styled('span', {
|
|
|
45
44
|
transform: 'rotate(45deg)'
|
|
46
45
|
}, ownerState.openIcon && {
|
|
47
46
|
opacity: 0
|
|
48
|
-
}))),
|
|
47
|
+
}))), "& .".concat(speedDialIconClasses.openIcon), _extends({
|
|
49
48
|
position: 'absolute',
|
|
50
49
|
transition: theme.transitions.create(['transform', 'opacity'], {
|
|
51
50
|
duration: theme.transitions.duration.short
|
|
@@ -55,7 +54,7 @@ var SpeedDialIconRoot = styled('span', {
|
|
|
55
54
|
}, ownerState.open && {
|
|
56
55
|
transform: 'rotate(0deg)',
|
|
57
56
|
opacity: 1
|
|
58
|
-
}))
|
|
57
|
+
}));
|
|
59
58
|
});
|
|
60
59
|
var SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {
|
|
61
60
|
var props = useThemeProps({
|
|
@@ -70,7 +70,7 @@ var StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref)
|
|
|
70
70
|
icon: icon,
|
|
71
71
|
optional: optional
|
|
72
72
|
};
|
|
73
|
-
var child = isMuiElement(children, ['StepLabel']) ? /*#__PURE__*/React.cloneElement(children, childProps) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
|
|
73
|
+
var child = isMuiElement(children, ['StepLabel']) ? ( /*#__PURE__*/React.cloneElement(children, childProps)) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
|
|
74
74
|
children: children
|
|
75
75
|
}));
|
|
76
76
|
return /*#__PURE__*/_jsx(StepButtonRoot, _extends({
|
|
@@ -34,21 +34,20 @@ var StepIconRoot = styled(SvgIcon, {
|
|
|
34
34
|
return styles.root;
|
|
35
35
|
}
|
|
36
36
|
})(function (_ref) {
|
|
37
|
-
var _ref2;
|
|
38
37
|
var theme = _ref.theme;
|
|
39
|
-
return
|
|
38
|
+
return _defineProperty(_defineProperty(_defineProperty({
|
|
40
39
|
display: 'block',
|
|
41
40
|
transition: theme.transitions.create('color', {
|
|
42
41
|
duration: theme.transitions.duration.shortest
|
|
43
42
|
}),
|
|
44
43
|
color: (theme.vars || theme).palette.text.disabled
|
|
45
|
-
},
|
|
44
|
+
}, "&.".concat(stepIconClasses.completed), {
|
|
46
45
|
color: (theme.vars || theme).palette.primary.main
|
|
47
|
-
}),
|
|
46
|
+
}), "&.".concat(stepIconClasses.active), {
|
|
48
47
|
color: (theme.vars || theme).palette.primary.main
|
|
49
|
-
}),
|
|
48
|
+
}), "&.".concat(stepIconClasses.error), {
|
|
50
49
|
color: (theme.vars || theme).palette.error.main
|
|
51
|
-
})
|
|
50
|
+
});
|
|
52
51
|
});
|
|
53
52
|
var StepIconText = styled('text', {
|
|
54
53
|
name: 'MuiStepIcon',
|
|
@@ -39,16 +39,15 @@ var StepLabelRoot = styled('span', {
|
|
|
39
39
|
return [styles.root, styles[ownerState.orientation]];
|
|
40
40
|
}
|
|
41
41
|
})(function (_ref) {
|
|
42
|
-
var _extends2;
|
|
43
42
|
var ownerState = _ref.ownerState;
|
|
44
|
-
return _extends((
|
|
43
|
+
return _extends(_defineProperty(_defineProperty({
|
|
45
44
|
display: 'flex',
|
|
46
45
|
alignItems: 'center'
|
|
47
|
-
},
|
|
46
|
+
}, "&.".concat(stepLabelClasses.alternativeLabel), {
|
|
48
47
|
flexDirection: 'column'
|
|
49
|
-
}),
|
|
48
|
+
}), "&.".concat(stepLabelClasses.disabled), {
|
|
50
49
|
cursor: 'default'
|
|
51
|
-
}),
|
|
50
|
+
}), ownerState.orientation === 'vertical' && {
|
|
52
51
|
textAlign: 'left',
|
|
53
52
|
padding: '8px 0'
|
|
54
53
|
});
|
|
@@ -60,24 +59,23 @@ var StepLabelLabel = styled('span', {
|
|
|
60
59
|
return styles.label;
|
|
61
60
|
}
|
|
62
61
|
})(function (_ref2) {
|
|
63
|
-
var _extends3;
|
|
64
62
|
var theme = _ref2.theme;
|
|
65
|
-
return _extends({}, theme.typography.body2, (
|
|
63
|
+
return _extends({}, theme.typography.body2, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
66
64
|
display: 'block',
|
|
67
65
|
transition: theme.transitions.create('color', {
|
|
68
66
|
duration: theme.transitions.duration.shortest
|
|
69
67
|
})
|
|
70
|
-
},
|
|
68
|
+
}, "&.".concat(stepLabelClasses.active), {
|
|
71
69
|
color: (theme.vars || theme).palette.text.primary,
|
|
72
70
|
fontWeight: 500
|
|
73
|
-
}),
|
|
71
|
+
}), "&.".concat(stepLabelClasses.completed), {
|
|
74
72
|
color: (theme.vars || theme).palette.text.primary,
|
|
75
73
|
fontWeight: 500
|
|
76
|
-
}),
|
|
74
|
+
}), "&.".concat(stepLabelClasses.alternativeLabel), {
|
|
77
75
|
marginTop: 16
|
|
78
|
-
}),
|
|
76
|
+
}), "&.".concat(stepLabelClasses.error), {
|
|
79
77
|
color: (theme.vars || theme).palette.error.main
|
|
80
|
-
})
|
|
78
|
+
}));
|
|
81
79
|
});
|
|
82
80
|
var StepLabelIconContainer = styled('span', {
|
|
83
81
|
name: 'MuiStepLabel',
|