@mui/material 5.14.18 → 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.js +9 -1
- 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 +89 -1
- package/Chip/Chip.js +2 -2
- package/FilledInput/FilledInput.js +1 -1
- 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/Select/Select.d.ts +1 -2
- package/Select/SelectInput.js +2 -1
- package/StepButton/StepButton.js +1 -1
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +4 -5
- package/legacy/AccordionSummary/AccordionSummary.js +5 -6
- package/legacy/Autocomplete/Autocomplete.js +47 -39
- package/legacy/AvatarGroup/AvatarGroup.js +2 -3
- 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 +12 -12
- 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 +4 -5
- 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 +6 -8
- 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 +9 -1
- 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 +1 -1
- 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/Select/SelectInput.js +2 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +9 -1
- 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 +1 -1
- 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/Select/SelectInput.js +2 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/index.js +1 -1
- package/package.json +9 -9
- package/umd/material-ui.development.js +70 -58
- package/umd/material-ui.production.min.js +20 -20
package/legacy/Tab/Tab.js
CHANGED
|
@@ -37,7 +37,6 @@ var TabRoot = styled(ButtonBase, {
|
|
|
37
37
|
return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles["textColor".concat(capitalize(ownerState.textColor))], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
|
|
38
38
|
}
|
|
39
39
|
})(function (_ref) {
|
|
40
|
-
var _ref3, _ref4, _ref5;
|
|
41
40
|
var theme = _ref.theme,
|
|
42
41
|
ownerState = _ref.ownerState;
|
|
43
42
|
return _extends({}, theme.typography.button, {
|
|
@@ -66,26 +65,26 @@ var TabRoot = styled(ButtonBase, {
|
|
|
66
65
|
marginRight: theme.spacing(1)
|
|
67
66
|
}, ownerState.iconPosition === 'end' && {
|
|
68
67
|
marginLeft: theme.spacing(1)
|
|
69
|
-
})), ownerState.textColor === 'inherit' && (
|
|
68
|
+
})), ownerState.textColor === 'inherit' && _defineProperty(_defineProperty({
|
|
70
69
|
color: 'inherit',
|
|
71
70
|
opacity: 0.6
|
|
72
|
-
},
|
|
71
|
+
}, "&.".concat(tabClasses.selected), {
|
|
73
72
|
opacity: 1
|
|
74
|
-
}),
|
|
73
|
+
}), "&.".concat(tabClasses.disabled), {
|
|
75
74
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
76
|
-
}),
|
|
75
|
+
}), ownerState.textColor === 'primary' && _defineProperty(_defineProperty({
|
|
77
76
|
color: (theme.vars || theme).palette.text.secondary
|
|
78
|
-
},
|
|
77
|
+
}, "&.".concat(tabClasses.selected), {
|
|
79
78
|
color: (theme.vars || theme).palette.primary.main
|
|
80
|
-
}),
|
|
79
|
+
}), "&.".concat(tabClasses.disabled), {
|
|
81
80
|
color: (theme.vars || theme).palette.text.disabled
|
|
82
|
-
}),
|
|
81
|
+
}), ownerState.textColor === 'secondary' && _defineProperty(_defineProperty({
|
|
83
82
|
color: (theme.vars || theme).palette.text.secondary
|
|
84
|
-
},
|
|
83
|
+
}, "&.".concat(tabClasses.selected), {
|
|
85
84
|
color: (theme.vars || theme).palette.secondary.main
|
|
86
|
-
}),
|
|
85
|
+
}), "&.".concat(tabClasses.disabled), {
|
|
87
86
|
color: (theme.vars || theme).palette.text.disabled
|
|
88
|
-
}),
|
|
87
|
+
}), ownerState.fullWidth && {
|
|
89
88
|
flexShrink: 1,
|
|
90
89
|
flexGrow: 1,
|
|
91
90
|
flexBasis: 0,
|
|
@@ -47,20 +47,19 @@ var TablePaginationToolbar = styled(Toolbar, {
|
|
|
47
47
|
return _extends(_defineProperty({}, "& .".concat(tablePaginationClasses.actions), styles.actions), styles.toolbar);
|
|
48
48
|
}
|
|
49
49
|
})(function (_ref2) {
|
|
50
|
-
var _ref3;
|
|
51
50
|
var theme = _ref2.theme;
|
|
52
|
-
return
|
|
51
|
+
return _defineProperty(_defineProperty(_defineProperty({
|
|
53
52
|
minHeight: 52,
|
|
54
53
|
paddingRight: 2
|
|
55
|
-
},
|
|
54
|
+
}, "".concat(theme.breakpoints.up('xs'), " and (orientation: landscape)"), {
|
|
56
55
|
minHeight: 52
|
|
57
|
-
}),
|
|
56
|
+
}), theme.breakpoints.up('sm'), {
|
|
58
57
|
minHeight: 52,
|
|
59
58
|
paddingRight: 2
|
|
60
|
-
}),
|
|
59
|
+
}), "& .".concat(tablePaginationClasses.actions), {
|
|
61
60
|
flexShrink: 0,
|
|
62
61
|
marginLeft: 20
|
|
63
|
-
})
|
|
62
|
+
});
|
|
64
63
|
});
|
|
65
64
|
var TablePaginationSpacer = styled('div', {
|
|
66
65
|
name: 'MuiTablePagination',
|
|
@@ -87,8 +86,7 @@ var TablePaginationSelect = styled(Select, {
|
|
|
87
86
|
name: 'MuiTablePagination',
|
|
88
87
|
slot: 'Select',
|
|
89
88
|
overridesResolver: function overridesResolver(props, styles) {
|
|
90
|
-
|
|
91
|
-
return _extends((_extends3 = {}, _defineProperty(_extends3, "& .".concat(tablePaginationClasses.selectIcon), styles.selectIcon), _defineProperty(_extends3, "& .".concat(tablePaginationClasses.select), styles.select), _extends3), styles.input, styles.selectRoot);
|
|
89
|
+
return _extends(_defineProperty(_defineProperty({}, "& .".concat(tablePaginationClasses.selectIcon), styles.selectIcon), "& .".concat(tablePaginationClasses.select), styles.select), styles.input, styles.selectRoot);
|
|
92
90
|
}
|
|
93
91
|
})(_defineProperty({
|
|
94
92
|
color: 'inherit',
|
|
@@ -32,22 +32,21 @@ var TableRowRoot = styled('tr', {
|
|
|
32
32
|
return [styles.root, ownerState.head && styles.head, ownerState.footer && styles.footer];
|
|
33
33
|
}
|
|
34
34
|
})(function (_ref) {
|
|
35
|
-
var _ref2;
|
|
36
35
|
var theme = _ref.theme;
|
|
37
|
-
return
|
|
36
|
+
return _defineProperty(_defineProperty({
|
|
38
37
|
color: 'inherit',
|
|
39
38
|
display: 'table-row',
|
|
40
39
|
verticalAlign: 'middle',
|
|
41
40
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
42
41
|
outline: 0
|
|
43
|
-
},
|
|
42
|
+
}, "&.".concat(tableRowClasses.hover, ":hover"), {
|
|
44
43
|
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
45
|
-
}),
|
|
44
|
+
}), "&.".concat(tableRowClasses.selected), {
|
|
46
45
|
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),
|
|
47
46
|
'&:hover': {
|
|
48
47
|
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)
|
|
49
48
|
}
|
|
50
|
-
})
|
|
49
|
+
});
|
|
51
50
|
});
|
|
52
51
|
var defaultComponent = 'tr';
|
|
53
52
|
/**
|
package/legacy/Tabs/Tabs.js
CHANGED
|
@@ -347,7 +347,6 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
349
|
var updateIndicatorState = useEventCallback(function () {
|
|
350
|
-
var _newIndicatorStyle;
|
|
351
350
|
var _getTabsMeta = getTabsMeta(),
|
|
352
351
|
tabsMeta = _getTabsMeta.tabsMeta,
|
|
353
352
|
tabMeta = _getTabsMeta.tabMeta;
|
|
@@ -365,7 +364,7 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
365
364
|
startValue = (isRtl ? -1 : 1) * (tabMeta[startIndicator] - tabsMeta[startIndicator] + correction);
|
|
366
365
|
}
|
|
367
366
|
}
|
|
368
|
-
var newIndicatorStyle = (
|
|
367
|
+
var newIndicatorStyle = _defineProperty(_defineProperty({}, startIndicator, startValue), size, tabMeta ? tabMeta[size] : 0);
|
|
369
368
|
|
|
370
369
|
// IE11 support, replace with Number.isNaN
|
|
371
370
|
// eslint-disable-next-line no-restricted-globals
|
|
@@ -35,7 +35,6 @@ var ToggleButtonRoot = styled(ButtonBase, {
|
|
|
35
35
|
return [styles.root, styles["size".concat(capitalize(ownerState.size))]];
|
|
36
36
|
}
|
|
37
37
|
})(function (_ref) {
|
|
38
|
-
var _extends2;
|
|
39
38
|
var theme = _ref.theme,
|
|
40
39
|
ownerState = _ref.ownerState;
|
|
41
40
|
var selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
|
|
@@ -51,17 +50,17 @@ var ToggleButtonRoot = styled(ButtonBase, {
|
|
|
51
50
|
color: (theme.vars || theme).palette.action.active
|
|
52
51
|
}, ownerState.fullWidth && {
|
|
53
52
|
width: '100%'
|
|
54
|
-
}, (
|
|
53
|
+
}, _defineProperty(_defineProperty(_defineProperty({}, "&.".concat(toggleButtonClasses.disabled), {
|
|
55
54
|
color: (theme.vars || theme).palette.action.disabled,
|
|
56
55
|
border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
|
|
57
|
-
}),
|
|
56
|
+
}), '&:hover', {
|
|
58
57
|
textDecoration: 'none',
|
|
59
58
|
// Reset on mouse devices
|
|
60
59
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
61
60
|
'@media (hover: none)': {
|
|
62
61
|
backgroundColor: 'transparent'
|
|
63
62
|
}
|
|
64
|
-
}),
|
|
63
|
+
}), "&.".concat(toggleButtonClasses.selected), {
|
|
65
64
|
color: selectedColor,
|
|
66
65
|
backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity),
|
|
67
66
|
'&:hover': {
|
|
@@ -71,7 +70,7 @@ var ToggleButtonRoot = styled(ButtonBase, {
|
|
|
71
70
|
backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity)
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
}),
|
|
73
|
+
}), ownerState.size === 'small' && {
|
|
75
74
|
padding: 7,
|
|
76
75
|
fontSize: theme.typography.pxToRem(13)
|
|
77
76
|
}, ownerState.size === 'large' && {
|
|
@@ -48,7 +48,6 @@ var TooltipPopper = styled(Popper, {
|
|
|
48
48
|
return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];
|
|
49
49
|
}
|
|
50
50
|
})(function (_ref) {
|
|
51
|
-
var _ref2;
|
|
52
51
|
var theme = _ref.theme,
|
|
53
52
|
ownerState = _ref.ownerState,
|
|
54
53
|
open = _ref.open;
|
|
@@ -59,19 +58,19 @@ var TooltipPopper = styled(Popper, {
|
|
|
59
58
|
pointerEvents: 'auto'
|
|
60
59
|
}, !open && {
|
|
61
60
|
pointerEvents: 'none'
|
|
62
|
-
}, ownerState.arrow && (
|
|
61
|
+
}, ownerState.arrow && _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&[data-popper-placement*=\"bottom\"] .".concat(tooltipClasses.arrow), {
|
|
63
62
|
top: 0,
|
|
64
63
|
marginTop: '-0.71em',
|
|
65
64
|
'&::before': {
|
|
66
65
|
transformOrigin: '0 100%'
|
|
67
66
|
}
|
|
68
|
-
}),
|
|
67
|
+
}), "&[data-popper-placement*=\"top\"] .".concat(tooltipClasses.arrow), {
|
|
69
68
|
bottom: 0,
|
|
70
69
|
marginBottom: '-0.71em',
|
|
71
70
|
'&::before': {
|
|
72
71
|
transformOrigin: '100% 0'
|
|
73
72
|
}
|
|
74
|
-
}),
|
|
73
|
+
}), "&[data-popper-placement*=\"right\"] .".concat(tooltipClasses.arrow), _extends({}, !ownerState.isRtl ? {
|
|
75
74
|
left: 0,
|
|
76
75
|
marginLeft: '-0.71em'
|
|
77
76
|
} : {
|
|
@@ -83,7 +82,7 @@ var TooltipPopper = styled(Popper, {
|
|
|
83
82
|
'&::before': {
|
|
84
83
|
transformOrigin: '100% 100%'
|
|
85
84
|
}
|
|
86
|
-
})),
|
|
85
|
+
})), "&[data-popper-placement*=\"left\"] .".concat(tooltipClasses.arrow), _extends({}, !ownerState.isRtl ? {
|
|
87
86
|
right: 0,
|
|
88
87
|
marginRight: '-0.71em'
|
|
89
88
|
} : {
|
|
@@ -95,7 +94,7 @@ var TooltipPopper = styled(Popper, {
|
|
|
95
94
|
'&::before': {
|
|
96
95
|
transformOrigin: '0 0'
|
|
97
96
|
}
|
|
98
|
-
}))
|
|
97
|
+
})));
|
|
99
98
|
});
|
|
100
99
|
var TooltipTooltip = styled('div', {
|
|
101
100
|
name: 'MuiTooltip',
|
|
@@ -105,7 +104,6 @@ var TooltipTooltip = styled('div', {
|
|
|
105
104
|
return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles["tooltipPlacement".concat(capitalize(ownerState.placement.split('-')[0]))]];
|
|
106
105
|
}
|
|
107
106
|
})(function (_ref3) {
|
|
108
|
-
var _extends2;
|
|
109
107
|
var theme = _ref3.theme,
|
|
110
108
|
ownerState = _ref3.ownerState;
|
|
111
109
|
return _extends({
|
|
@@ -127,7 +125,7 @@ var TooltipTooltip = styled('div', {
|
|
|
127
125
|
fontSize: theme.typography.pxToRem(14),
|
|
128
126
|
lineHeight: "".concat(round(16 / 14), "em"),
|
|
129
127
|
fontWeight: theme.typography.fontWeightRegular
|
|
130
|
-
}, (
|
|
128
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"left\"] &"), _extends({
|
|
131
129
|
transformOrigin: 'right center'
|
|
132
130
|
}, !ownerState.isRtl ? _extends({
|
|
133
131
|
marginRight: '14px'
|
|
@@ -137,7 +135,7 @@ var TooltipTooltip = styled('div', {
|
|
|
137
135
|
marginLeft: '14px'
|
|
138
136
|
}, ownerState.touch && {
|
|
139
137
|
marginLeft: '24px'
|
|
140
|
-
}))),
|
|
138
|
+
}))), ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"right\"] &"), _extends({
|
|
141
139
|
transformOrigin: 'left center'
|
|
142
140
|
}, !ownerState.isRtl ? _extends({
|
|
143
141
|
marginLeft: '14px'
|
|
@@ -147,17 +145,17 @@ var TooltipTooltip = styled('div', {
|
|
|
147
145
|
marginRight: '14px'
|
|
148
146
|
}, ownerState.touch && {
|
|
149
147
|
marginRight: '24px'
|
|
150
|
-
}))),
|
|
148
|
+
}))), ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"top\"] &"), _extends({
|
|
151
149
|
transformOrigin: 'center bottom',
|
|
152
150
|
marginBottom: '14px'
|
|
153
151
|
}, ownerState.touch && {
|
|
154
152
|
marginBottom: '24px'
|
|
155
|
-
})),
|
|
153
|
+
})), ".".concat(tooltipClasses.popper, "[data-popper-placement*=\"bottom\"] &"), _extends({
|
|
156
154
|
transformOrigin: 'center top',
|
|
157
155
|
marginTop: '14px'
|
|
158
156
|
}, ownerState.touch && {
|
|
159
157
|
marginTop: '24px'
|
|
160
|
-
}))
|
|
158
|
+
})));
|
|
161
159
|
});
|
|
162
160
|
var TooltipArrow = styled('span', {
|
|
163
161
|
name: 'MuiTooltip',
|
package/legacy/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
export default function createMixins(breakpoints, mixins) {
|
|
4
|
-
var _toolbar;
|
|
5
4
|
return _extends({
|
|
6
|
-
toolbar: (
|
|
5
|
+
toolbar: _defineProperty(_defineProperty({
|
|
7
6
|
minHeight: 56
|
|
8
|
-
},
|
|
7
|
+
}, breakpoints.up('xs'), {
|
|
9
8
|
'@media (orientation: landscape)': {
|
|
10
9
|
minHeight: 48
|
|
11
10
|
}
|
|
12
|
-
}),
|
|
11
|
+
}), breakpoints.up('sm'), {
|
|
13
12
|
minHeight: 64
|
|
14
|
-
})
|
|
13
|
+
})
|
|
15
14
|
}, mixins);
|
|
16
15
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
6
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
6
|
+
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
7
7
|
_excluded2 = ["ref"],
|
|
8
8
|
_excluded3 = ["key"];
|
|
9
9
|
import * as React from 'react';
|
|
@@ -826,6 +826,14 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
826
826
|
* @returns {boolean}
|
|
827
827
|
*/
|
|
828
828
|
getOptionDisabled: PropTypes.func,
|
|
829
|
+
/**
|
|
830
|
+
* Used to determine the key for a given option.
|
|
831
|
+
* This can be useful when the labels of options are not unique (since labels are used as keys by default).
|
|
832
|
+
*
|
|
833
|
+
* @param {Value} option The option to get the key for.
|
|
834
|
+
* @returns {string | number}
|
|
835
|
+
*/
|
|
836
|
+
getOptionKey: PropTypes.func,
|
|
829
837
|
/**
|
|
830
838
|
* Used to determine the string value for a given option.
|
|
831
839
|
* It's used to fill the input (and the list box options if `renderOption` is not provided).
|
package/modern/Box/Box.js
CHANGED
|
@@ -5,11 +5,12 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
|
|
6
6
|
import { createTheme } from '../styles';
|
|
7
7
|
import THEME_ID from '../styles/identifier';
|
|
8
|
+
import boxClasses from './boxClasses';
|
|
8
9
|
const defaultTheme = createTheme();
|
|
9
10
|
const Box = createBox({
|
|
10
11
|
themeId: THEME_ID,
|
|
11
12
|
defaultTheme,
|
|
12
|
-
defaultClassName:
|
|
13
|
+
defaultClassName: boxClasses.root,
|
|
13
14
|
generateClassName: ClassNameGenerator.generate
|
|
14
15
|
});
|
|
15
16
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
package/modern/Box/index.js
CHANGED
package/modern/Chip/Chip.js
CHANGED
|
@@ -358,10 +358,10 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
358
358
|
}) : {};
|
|
359
359
|
let deleteIcon = null;
|
|
360
360
|
if (onDelete) {
|
|
361
|
-
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
|
361
|
+
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? ( /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
|
362
362
|
className: clsx(deleteIconProp.props.className, classes.deleteIcon),
|
|
363
363
|
onClick: handleDeleteIconClick
|
|
364
|
-
}) : /*#__PURE__*/_jsx(CancelIcon, {
|
|
364
|
+
})) : /*#__PURE__*/_jsx(CancelIcon, {
|
|
365
365
|
className: clsx(classes.deleteIcon),
|
|
366
366
|
onClick: handleDeleteIconClick
|
|
367
367
|
});
|
|
@@ -213,7 +213,7 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
213
213
|
ownerState
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(slotProps ?? componentsPropsProp
|
|
216
|
+
const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(filledInputComponentsProps, slotProps ?? componentsPropsProp) : filledInputComponentsProps;
|
|
217
217
|
const RootSlot = slots.root ?? components.Root ?? FilledInputRoot;
|
|
218
218
|
const InputSlot = slots.input ?? components.Input ?? FilledInputInput;
|
|
219
219
|
return /*#__PURE__*/_jsx(InputBase, _extends({
|
|
@@ -114,10 +114,10 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
|
114
114
|
color: "text.secondary",
|
|
115
115
|
children: children
|
|
116
116
|
}) : /*#__PURE__*/_jsxs(React.Fragment, {
|
|
117
|
-
children: [position === 'start' ? /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
|
|
117
|
+
children: [position === 'start' ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
|
|
118
118
|
className: "notranslate",
|
|
119
119
|
children: "\u200B"
|
|
120
|
-
})) : null, children]
|
|
120
|
+
}))) : null, children]
|
|
121
121
|
})
|
|
122
122
|
}))
|
|
123
123
|
});
|
|
@@ -105,7 +105,11 @@ const InputLabelRoot = styled(FormLabel, {
|
|
|
105
105
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
106
106
|
maxWidth: 'calc(133% - 32px)',
|
|
107
107
|
transform: 'translate(14px, -9px) scale(0.75)'
|
|
108
|
-
})
|
|
108
|
+
}), ownerState.variant === 'standard' && {
|
|
109
|
+
'&:not(label) + div': {
|
|
110
|
+
marginTop: 16
|
|
111
|
+
}
|
|
112
|
+
}));
|
|
109
113
|
const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
|
|
110
114
|
const props = useThemeProps({
|
|
111
115
|
name: 'MuiInputLabel',
|
package/modern/Modal/Modal.js
CHANGED
|
@@ -275,6 +275,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
275
275
|
* An HTML element or function that returns one.
|
|
276
276
|
* The `container` will have the portal children appended to it.
|
|
277
277
|
*
|
|
278
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
279
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
280
|
+
*
|
|
278
281
|
* By default, it uses the body of the top-level document object,
|
|
279
282
|
* so it's simply `document.body` most of the time.
|
|
280
283
|
*/
|
package/modern/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
|
*/
|
|
@@ -434,6 +434,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
434
434
|
const classes = useUtilityClasses(ownerState);
|
|
435
435
|
const paperProps = _extends({}, MenuProps.PaperProps, MenuProps.slotProps?.paper);
|
|
436
436
|
const listboxId = useId();
|
|
437
|
+
const hiddenInputId = useId();
|
|
437
438
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
438
439
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
|
439
440
|
ref: handleDisplayRef,
|
|
@@ -464,7 +465,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
464
465
|
})), /*#__PURE__*/_jsx(SelectNativeInput, _extends({
|
|
465
466
|
"aria-invalid": error,
|
|
466
467
|
value: Array.isArray(value) ? value.join(',') : value,
|
|
467
|
-
name: name,
|
|
468
|
+
name: name ?? hiddenInputId,
|
|
468
469
|
ref: inputRef,
|
|
469
470
|
"aria-hidden": true,
|
|
470
471
|
onChange: handleChange,
|
|
@@ -81,7 +81,7 @@ const StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, re
|
|
|
81
81
|
icon,
|
|
82
82
|
optional
|
|
83
83
|
};
|
|
84
|
-
const child = isMuiElement(children, ['StepLabel']) ? /*#__PURE__*/React.cloneElement(children, childProps) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
|
|
84
|
+
const child = isMuiElement(children, ['StepLabel']) ? ( /*#__PURE__*/React.cloneElement(children, childProps)) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
|
|
85
85
|
children: children
|
|
86
86
|
}));
|
|
87
87
|
return /*#__PURE__*/_jsx(StepButtonRoot, _extends({
|
package/modern/index.js
CHANGED
|
@@ -38,7 +38,7 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
38
38
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
39
39
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
40
40
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
41
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
41
|
+
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
42
42
|
_excluded2 = ["ref"],
|
|
43
43
|
_excluded3 = ["key"];
|
|
44
44
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
@@ -842,6 +842,14 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
842
842
|
* @returns {boolean}
|
|
843
843
|
*/
|
|
844
844
|
getOptionDisabled: _propTypes.default.func,
|
|
845
|
+
/**
|
|
846
|
+
* Used to determine the key for a given option.
|
|
847
|
+
* This can be useful when the labels of options are not unique (since labels are used as keys by default).
|
|
848
|
+
*
|
|
849
|
+
* @param {Value} option The option to get the key for.
|
|
850
|
+
* @returns {string | number}
|
|
851
|
+
*/
|
|
852
|
+
getOptionKey: _propTypes.default.func,
|
|
845
853
|
/**
|
|
846
854
|
* Used to determine the string value for a given option.
|
|
847
855
|
* It's used to fill the input (and the list box options if `renderOption` is not provided).
|
package/node/Box/Box.js
CHANGED
|
@@ -11,11 +11,12 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _className = require("../className");
|
|
12
12
|
var _styles = require("../styles");
|
|
13
13
|
var _identifier = _interopRequireDefault(require("../styles/identifier"));
|
|
14
|
+
var _boxClasses = _interopRequireDefault(require("./boxClasses"));
|
|
14
15
|
const defaultTheme = (0, _styles.createTheme)();
|
|
15
16
|
const Box = (0, _system.createBox)({
|
|
16
17
|
themeId: _identifier.default,
|
|
17
18
|
defaultTheme,
|
|
18
|
-
defaultClassName:
|
|
19
|
+
defaultClassName: _boxClasses.default.root,
|
|
19
20
|
generateClassName: _className.unstable_ClassNameGenerator.generate
|
|
20
21
|
});
|
|
21
22
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _utils = require("@mui/utils");
|
|
8
|
+
const boxClasses = (0, _utils.unstable_generateUtilityClasses)('MuiBox', ['root']);
|
|
9
|
+
var _default = exports.default = boxClasses;
|
package/node/Box/index.js
CHANGED
|
@@ -5,10 +5,33 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
var _exportNames = {
|
|
9
|
+
boxClasses: true
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "boxClasses", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return _boxClasses.default;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
8
17
|
Object.defineProperty(exports, "default", {
|
|
9
18
|
enumerable: true,
|
|
10
19
|
get: function () {
|
|
11
20
|
return _Box.default;
|
|
12
21
|
}
|
|
13
22
|
});
|
|
14
|
-
var _Box = _interopRequireDefault(require("./Box"));
|
|
23
|
+
var _Box = _interopRequireDefault(require("./Box"));
|
|
24
|
+
var _boxClasses = _interopRequireWildcard(require("./boxClasses"));
|
|
25
|
+
Object.keys(_boxClasses).forEach(function (key) {
|
|
26
|
+
if (key === "default" || key === "__esModule") return;
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
+
if (key in exports && exports[key] === _boxClasses[key]) return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _boxClasses[key];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
37
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/node/Chip/Chip.js
CHANGED
|
@@ -365,10 +365,10 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
365
365
|
}) : {};
|
|
366
366
|
let deleteIcon = null;
|
|
367
367
|
if (onDelete) {
|
|
368
|
-
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
|
368
|
+
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? ( /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
|
369
369
|
className: (0, _clsx.default)(deleteIconProp.props.className, classes.deleteIcon),
|
|
370
370
|
onClick: handleDeleteIconClick
|
|
371
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cancel.default, {
|
|
371
|
+
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cancel.default, {
|
|
372
372
|
className: (0, _clsx.default)(classes.deleteIcon),
|
|
373
373
|
onClick: handleDeleteIconClick
|
|
374
374
|
});
|
|
@@ -223,7 +223,7 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
223
223
|
ownerState
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
|
-
const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? (0, _utils.deepmerge)(slotProps != null ? slotProps : componentsPropsProp
|
|
226
|
+
const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? (0, _utils.deepmerge)(filledInputComponentsProps, slotProps != null ? slotProps : componentsPropsProp) : filledInputComponentsProps;
|
|
227
227
|
const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : FilledInputRoot;
|
|
228
228
|
const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : FilledInputInput;
|
|
229
229
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({
|
|
@@ -121,10 +121,10 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
|
121
121
|
color: "text.secondary",
|
|
122
122
|
children: children
|
|
123
123
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
124
|
-
children: [position === 'start' ? /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
124
|
+
children: [position === 'start' ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
125
125
|
className: "notranslate",
|
|
126
126
|
children: "\u200B"
|
|
127
|
-
})) : null, children]
|
|
127
|
+
}))) : null, children]
|
|
128
128
|
})
|
|
129
129
|
}))
|
|
130
130
|
});
|
|
@@ -113,7 +113,11 @@ const InputLabelRoot = (0, _styled.default)(_FormLabel.default, {
|
|
|
113
113
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
114
114
|
maxWidth: 'calc(133% - 32px)',
|
|
115
115
|
transform: 'translate(14px, -9px) scale(0.75)'
|
|
116
|
-
})
|
|
116
|
+
}), ownerState.variant === 'standard' && {
|
|
117
|
+
'&:not(label) + div': {
|
|
118
|
+
marginTop: 16
|
|
119
|
+
}
|
|
120
|
+
}));
|
|
117
121
|
const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
|
|
118
122
|
const props = (0, _useThemeProps.default)({
|
|
119
123
|
name: 'MuiInputLabel',
|
package/node/Modal/Modal.js
CHANGED
|
@@ -283,6 +283,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
283
283
|
* An HTML element or function that returns one.
|
|
284
284
|
* The `container` will have the portal children appended to it.
|
|
285
285
|
*
|
|
286
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
287
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
288
|
+
*
|
|
286
289
|
* By default, it uses the body of the top-level document object,
|
|
287
290
|
* so it's simply `document.body` most of the time.
|
|
288
291
|
*/
|
package/node/Popper/Popper.js
CHANGED
|
@@ -125,6 +125,9 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
125
125
|
* An HTML element or function that returns one.
|
|
126
126
|
* The `container` will have the portal children appended to it.
|
|
127
127
|
*
|
|
128
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
129
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
130
|
+
*
|
|
128
131
|
* By default, it uses the body of the top-level document object,
|
|
129
132
|
* so it's simply `document.body` most of the time.
|
|
130
133
|
*/
|