@mui/material 5.14.6 → 5.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +22 -20
- package/AppBar/AppBar.d.ts +33 -31
- package/Avatar/Avatar.d.ts +49 -50
- package/Backdrop/Backdrop.d.ts +87 -85
- package/Badge/Badge.d.ts +2 -2
- package/BottomNavigation/BottomNavigation.d.ts +35 -33
- package/BottomNavigationAction/BottomNavigationAction.d.ts +39 -37
- package/Breadcrumbs/Breadcrumbs.d.ts +69 -67
- package/Button/Button.d.ts +72 -73
- package/ButtonBase/ButtonBase.d.ts +83 -81
- package/ButtonGroup/ButtonGroup.d.ts +72 -70
- package/CHANGELOG.md +136 -2
- package/Card/Card.d.ts +19 -18
- package/CardActionArea/CardActionArea.d.ts +15 -13
- package/CardContent/CardContent.d.ts +18 -16
- package/CardHeader/CardHeader.d.ts +77 -67
- package/CardMedia/CardMedia.d.ts +30 -28
- package/Chip/Chip.d.ts +84 -82
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Container/Container.d.ts +35 -33
- package/DialogContentText/DialogContentText.d.ts +14 -12
- package/DialogTitle/DialogTitle.d.ts +18 -16
- package/Divider/Divider.d.ts +49 -50
- package/Fab/Fab.d.ts +59 -56
- package/FormControl/FormControl.d.ts +74 -72
- package/FormHelperText/FormHelperText.d.ts +52 -50
- package/FormLabel/FormLabel.d.ts +7 -4
- package/Grid/Grid.d.ts +69 -68
- package/Hidden/Hidden.d.ts +10 -10
- package/Icon/Icon.d.ts +50 -48
- package/IconButton/IconButton.d.ts +52 -50
- package/ImageList/ImageList.d.ts +41 -39
- package/ImageListItem/ImageListItem.d.ts +28 -26
- package/ImageListItem/ImageListItem.js +2 -1
- package/InputAdornment/InputAdornment.d.ts +39 -37
- package/InputBase/InputBase.js +1 -1
- package/InputLabel/InputLabel.d.ts +58 -56
- package/InputLabel/InputLabel.js +2 -1
- package/Link/Link.d.ts +37 -39
- package/List/List.d.ts +34 -35
- package/ListItem/ListItem.d.ts +53 -49
- package/ListItemButton/ListItemButton.d.ts +9 -3
- package/ListSubheader/ListSubheader.d.ts +38 -36
- package/MenuItem/MenuItem.d.ts +47 -44
- package/MenuList/MenuList.d.ts +37 -35
- package/Modal/Modal.d.ts +172 -178
- package/PaginationItem/PaginationItem.d.ts +85 -83
- package/Paper/Paper.d.ts +2 -2
- package/Popover/Popover.d.ts +2 -1
- package/Popover/Popover.js +20 -6
- package/Radio/Radio.js +3 -2
- package/Radio/radioClasses.d.ts +2 -0
- package/Radio/radioClasses.js +1 -1
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +25 -23
- package/Select/SelectInput.js +9 -5
- package/Skeleton/Skeleton.d.ts +42 -40
- package/Slider/Slider.d.ts +249 -247
- package/Snackbar/Snackbar.d.ts +4 -4
- package/Snackbar/Snackbar.js +4 -4
- package/Stack/Stack.d.ts +39 -38
- package/Step/Step.d.ts +46 -44
- package/StepButton/StepButton.d.ts +27 -25
- package/Stepper/Stepper.d.ts +45 -44
- package/SvgIcon/SvgIcon.d.ts +77 -75
- package/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/Tab/Tab.d.ts +52 -50
- package/TabScrollButton/TabScrollButton.d.ts +3 -2
- package/Table/Table.d.ts +35 -33
- package/TableBody/TableBody.d.ts +18 -16
- package/TableContainer/TableContainer.d.ts +18 -16
- package/TableFooter/TableFooter.d.ts +18 -16
- package/TableHead/TableHead.d.ts +18 -16
- package/TablePagination/TablePagination.d.ts +113 -112
- package/TableRow/TableRow.d.ts +28 -26
- package/TableSortLabel/TableSortLabel.d.ts +40 -36
- package/Tabs/Tabs.d.ts +153 -150
- package/ToggleButton/ToggleButton.d.ts +72 -70
- package/Toolbar/Toolbar.d.ts +29 -27
- package/Typography/Typography.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/ImageListItem/ImageListItem.js +2 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/InputLabel/InputLabel.js +2 -1
- package/legacy/Popover/Popover.js +22 -5
- package/legacy/Radio/Radio.js +3 -2
- package/legacy/Radio/radioClasses.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/Snackbar/Snackbar.js +4 -4
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/index.js +1 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/ImageListItem/ImageListItem.js +2 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/InputLabel/InputLabel.js +2 -1
- package/modern/Popover/Popover.js +20 -6
- package/modern/Radio/Radio.js +3 -2
- package/modern/Radio/radioClasses.js +1 -1
- package/modern/Select/SelectInput.js +8 -5
- package/modern/Snackbar/Snackbar.js +4 -4
- package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/modern/index.js +1 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/ImageListItem/ImageListItem.js +2 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputLabel/InputLabel.js +2 -1
- package/node/Popover/Popover.js +20 -6
- package/node/Radio/Radio.js +3 -2
- package/node/Radio/radioClasses.js +1 -1
- package/node/Select/SelectInput.js +9 -5
- package/node/Snackbar/Snackbar.js +4 -4
- package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/umd/material-ui.development.js +75 -34
- package/umd/material-ui.production.min.js +7 -7
|
@@ -235,10 +235,10 @@ process.env.NODE_ENV !== "production" ? Snackbar.propTypes /* remove-proptypes *
|
|
|
235
235
|
*/
|
|
236
236
|
disableWindowBlurListener: _propTypes.default.bool,
|
|
237
237
|
/**
|
|
238
|
-
* When displaying multiple consecutive
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* features
|
|
238
|
+
* When displaying multiple consecutive snackbars using a single parent-rendered
|
|
239
|
+
* `<Snackbar/>`, add the `key` prop to ensure independent treatment of each message.
|
|
240
|
+
* For instance, use `<Snackbar key={message} />`. Otherwise, messages might update
|
|
241
|
+
* in place, and features like `autoHideDuration` could be affected.
|
|
242
242
|
*/
|
|
243
243
|
key: () => null,
|
|
244
244
|
/**
|
|
@@ -508,7 +508,7 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
508
508
|
*
|
|
509
509
|
* @default false
|
|
510
510
|
*/
|
|
511
|
-
allowSwipeInChildren: _propTypes.default.oneOfType([_propTypes.default.
|
|
511
|
+
allowSwipeInChildren: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.bool]),
|
|
512
512
|
/**
|
|
513
513
|
* @ignore
|
|
514
514
|
*/
|
|
@@ -563,20 +563,20 @@ process.env.NODE_ENV !== "production" ? SwipeableDrawer.propTypes /* remove-prop
|
|
|
563
563
|
/**
|
|
564
564
|
* Callback fired when the component requests to be closed.
|
|
565
565
|
*
|
|
566
|
-
* @param {
|
|
566
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
567
567
|
*/
|
|
568
568
|
onClose: _propTypes.default.func.isRequired,
|
|
569
569
|
/**
|
|
570
570
|
* Callback fired when the component requests to be opened.
|
|
571
571
|
*
|
|
572
|
-
* @param {
|
|
572
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
573
573
|
*/
|
|
574
574
|
onOpen: _propTypes.default.func.isRequired,
|
|
575
575
|
/**
|
|
576
576
|
* If `true`, the component is shown.
|
|
577
577
|
* @default false
|
|
578
578
|
*/
|
|
579
|
-
open: _propTypes.default.bool
|
|
579
|
+
open: _propTypes.default.bool,
|
|
580
580
|
/**
|
|
581
581
|
* @ignore
|
|
582
582
|
*/
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.22.10",
|
|
49
|
-
"@mui/base": "5.0.0-beta.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.14.
|
|
51
|
-
"@mui/system": "^5.14.
|
|
49
|
+
"@mui/base": "5.0.0-beta.14",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.14.8",
|
|
51
|
+
"@mui/system": "^5.14.8",
|
|
52
52
|
"@mui/types": "^7.2.4",
|
|
53
|
-
"@mui/utils": "^5.14.
|
|
53
|
+
"@mui/utils": "^5.14.8",
|
|
54
54
|
"@types/react-transition-group": "^4.4.6",
|
|
55
55
|
"clsx": "^2.0.0",
|
|
56
56
|
"csstype": "^3.1.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.14.
|
|
2
|
+
* @mui/material v5.14.8
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -6950,10 +6950,20 @@
|
|
|
6950
6950
|
const maxWidth = props => {
|
|
6951
6951
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
6952
6952
|
const styleFromPropValue = propValue => {
|
|
6953
|
-
var _props$theme;
|
|
6953
|
+
var _props$theme, _props$theme2;
|
|
6954
6954
|
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values$1[propValue];
|
|
6955
|
+
if (!breakpoint) {
|
|
6956
|
+
return {
|
|
6957
|
+
maxWidth: sizingTransform(propValue)
|
|
6958
|
+
};
|
|
6959
|
+
}
|
|
6960
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
|
|
6961
|
+
return {
|
|
6962
|
+
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
6963
|
+
};
|
|
6964
|
+
}
|
|
6955
6965
|
return {
|
|
6956
|
-
maxWidth: breakpoint
|
|
6966
|
+
maxWidth: breakpoint
|
|
6957
6967
|
};
|
|
6958
6968
|
};
|
|
6959
6969
|
return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
|
|
@@ -19601,7 +19611,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19601
19611
|
});
|
|
19602
19612
|
};
|
|
19603
19613
|
React__namespace.useEffect(() => {
|
|
19604
|
-
const handleResize =
|
|
19614
|
+
const handleResize = () => {
|
|
19615
|
+
renders.current = 0;
|
|
19616
|
+
|
|
19617
|
+
// If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
19618
|
+
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
19619
|
+
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
19620
|
+
// See https://github.com/mui/material-ui/issues/32640
|
|
19621
|
+
if (inputRef.current) {
|
|
19622
|
+
syncHeightWithFlushSync();
|
|
19623
|
+
}
|
|
19624
|
+
};
|
|
19625
|
+
const handleResizeWindow = debounce$1(() => {
|
|
19605
19626
|
renders.current = 0;
|
|
19606
19627
|
|
|
19607
19628
|
// If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
@@ -19615,14 +19636,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19615
19636
|
let resizeObserver;
|
|
19616
19637
|
const input = inputRef.current;
|
|
19617
19638
|
const containerWindow = ownerWindow(input);
|
|
19618
|
-
containerWindow.addEventListener('resize',
|
|
19639
|
+
containerWindow.addEventListener('resize', handleResizeWindow);
|
|
19619
19640
|
if (typeof ResizeObserver !== 'undefined') {
|
|
19620
19641
|
resizeObserver = new ResizeObserver(handleResize);
|
|
19621
19642
|
resizeObserver.observe(input);
|
|
19622
19643
|
}
|
|
19623
19644
|
return () => {
|
|
19624
|
-
|
|
19625
|
-
containerWindow.removeEventListener('resize',
|
|
19645
|
+
handleResizeWindow.clear();
|
|
19646
|
+
containerWindow.removeEventListener('resize', handleResizeWindow);
|
|
19626
19647
|
if (resizeObserver) {
|
|
19627
19648
|
resizeObserver.disconnect();
|
|
19628
19649
|
}
|
|
@@ -20551,7 +20572,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20551
20572
|
firstFocus.current = false;
|
|
20552
20573
|
};
|
|
20553
20574
|
const handleInputMouseDown = event => {
|
|
20554
|
-
if (inputValue === '' || !open) {
|
|
20575
|
+
if (!disabledProp && (inputValue === '' || !open)) {
|
|
20555
20576
|
handlePopupIndicator(event);
|
|
20556
20577
|
}
|
|
20557
20578
|
};
|
|
@@ -21613,7 +21634,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21613
21634
|
type
|
|
21614
21635
|
} = ownerState;
|
|
21615
21636
|
const slots = {
|
|
21616
|
-
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size
|
|
21637
|
+
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size && size !== 'medium' && `size${capitalize(size)}`, multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
|
|
21617
21638
|
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
|
|
21618
21639
|
};
|
|
21619
21640
|
return composeClasses(slots, getInputBaseUtilityClass, classes);
|
|
@@ -27129,7 +27150,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27129
27150
|
/**
|
|
27130
27151
|
* The size of the component.
|
|
27131
27152
|
* If using a number, the pixel unit is assumed.
|
|
27132
|
-
* If using a string, you need to provide the CSS unit, e.g '3rem'.
|
|
27153
|
+
* If using a string, you need to provide the CSS unit, e.g. '3rem'.
|
|
27133
27154
|
* @default 40
|
|
27134
27155
|
*/
|
|
27135
27156
|
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -32808,7 +32829,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32808
32829
|
height,
|
|
32809
32830
|
gridColumnEnd: variant !== 'masonry' ? `span ${cols}` : undefined,
|
|
32810
32831
|
gridRowEnd: variant !== 'masonry' ? `span ${rows}` : undefined,
|
|
32811
|
-
marginBottom: variant === 'masonry' ? gap : undefined
|
|
32832
|
+
marginBottom: variant === 'masonry' ? gap : undefined,
|
|
32833
|
+
breakInside: variant === 'masonry' ? 'avoid' : undefined
|
|
32812
32834
|
}, style),
|
|
32813
32835
|
ownerState: ownerState
|
|
32814
32836
|
}, other, {
|
|
@@ -33599,7 +33621,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33599
33621
|
required
|
|
33600
33622
|
} = ownerState;
|
|
33601
33623
|
const slots = {
|
|
33602
|
-
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size
|
|
33624
|
+
root: ['root', formControl && 'formControl', !disableAnimation && 'animated', shrink && 'shrink', size && size !== 'normal' && `size${capitalize(size)}`, variant],
|
|
33603
33625
|
asterisk: [required && 'asterisk']
|
|
33604
33626
|
};
|
|
33605
33627
|
const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);
|
|
@@ -35810,7 +35832,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35810
35832
|
var popoverClasses$1 = popoverClasses;
|
|
35811
35833
|
|
|
35812
35834
|
const _excluded$S = ["onEntering"],
|
|
35813
|
-
_excluded2$7 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"],
|
|
35835
|
+
_excluded2$7 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
|
|
35814
35836
|
_excluded3$1 = ["slotProps"];
|
|
35815
35837
|
function getOffsetTop(rect, vertical) {
|
|
35816
35838
|
let offset = 0;
|
|
@@ -35904,7 +35926,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35904
35926
|
transitionDuration: transitionDurationProp = 'auto',
|
|
35905
35927
|
TransitionProps: {
|
|
35906
35928
|
onEntering
|
|
35907
|
-
} = {}
|
|
35929
|
+
} = {},
|
|
35930
|
+
disableScrollLock = false
|
|
35908
35931
|
} = props,
|
|
35909
35932
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$S),
|
|
35910
35933
|
other = _objectWithoutPropertiesLoose(props, _excluded2$7);
|
|
@@ -35992,11 +36015,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35992
36015
|
const widthThreshold = containerWindow.innerWidth - marginThreshold;
|
|
35993
36016
|
|
|
35994
36017
|
// Check if the vertical axis needs shifting
|
|
35995
|
-
if (top < marginThreshold) {
|
|
36018
|
+
if (marginThreshold !== null && top < marginThreshold) {
|
|
35996
36019
|
const diff = top - marginThreshold;
|
|
35997
36020
|
top -= diff;
|
|
35998
36021
|
elemTransformOrigin.vertical += diff;
|
|
35999
|
-
} else if (bottom > heightThreshold) {
|
|
36022
|
+
} else if (marginThreshold !== null && bottom > heightThreshold) {
|
|
36000
36023
|
const diff = bottom - heightThreshold;
|
|
36001
36024
|
top -= diff;
|
|
36002
36025
|
elemTransformOrigin.vertical += diff;
|
|
@@ -36008,7 +36031,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36008
36031
|
}
|
|
36009
36032
|
|
|
36010
36033
|
// Check if the horizontal axis needs shifting
|
|
36011
|
-
if (left < marginThreshold) {
|
|
36034
|
+
if (marginThreshold !== null && left < marginThreshold) {
|
|
36012
36035
|
const diff = left - marginThreshold;
|
|
36013
36036
|
left -= diff;
|
|
36014
36037
|
elemTransformOrigin.horizontal += diff;
|
|
@@ -36039,6 +36062,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36039
36062
|
element.style.transformOrigin = positioning.transformOrigin;
|
|
36040
36063
|
setIsPositioned(true);
|
|
36041
36064
|
}, [getPositioningStyle]);
|
|
36065
|
+
React__namespace.useEffect(() => {
|
|
36066
|
+
if (disableScrollLock) {
|
|
36067
|
+
window.addEventListener('scroll', setPositioningStyles);
|
|
36068
|
+
}
|
|
36069
|
+
return () => window.removeEventListener('scroll', setPositioningStyles);
|
|
36070
|
+
}, [anchorEl, disableScrollLock, setPositioningStyles]);
|
|
36042
36071
|
const handleEntering = (element, isAppearing) => {
|
|
36043
36072
|
if (onEntering) {
|
|
36044
36073
|
onEntering(element, isAppearing);
|
|
@@ -36119,7 +36148,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36119
36148
|
} = _useSlotProps,
|
|
36120
36149
|
rootProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded3$1);
|
|
36121
36150
|
return /*#__PURE__*/jsxRuntime_1(RootSlot, _extends({}, rootProps, !isHostComponent(RootSlot) && {
|
|
36122
|
-
slotProps: rootSlotPropsProp
|
|
36151
|
+
slotProps: rootSlotPropsProp,
|
|
36152
|
+
disableScrollLock
|
|
36123
36153
|
}, {
|
|
36124
36154
|
children: /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
|
|
36125
36155
|
appear: true,
|
|
@@ -36214,6 +36244,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36214
36244
|
* so it's simply `document.body` most of the time.
|
|
36215
36245
|
*/
|
|
36216
36246
|
container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),
|
|
36247
|
+
/**
|
|
36248
|
+
* Disable the scroll lock behavior.
|
|
36249
|
+
* @default false
|
|
36250
|
+
*/
|
|
36251
|
+
disableScrollLock: PropTypes.bool,
|
|
36217
36252
|
/**
|
|
36218
36253
|
* The elevation of the popover.
|
|
36219
36254
|
* @default 8
|
|
@@ -36221,6 +36256,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36221
36256
|
elevation: integerPropType,
|
|
36222
36257
|
/**
|
|
36223
36258
|
* Specifies how close to the edge of the window the popover can appear.
|
|
36259
|
+
* If null, the popover will not be constrained by the window.
|
|
36224
36260
|
* @default 16
|
|
36225
36261
|
*/
|
|
36226
36262
|
marginThreshold: PropTypes.number,
|
|
@@ -38645,17 +38681,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38645
38681
|
function getRadioUtilityClass(slot) {
|
|
38646
38682
|
return generateUtilityClass('MuiRadio', slot);
|
|
38647
38683
|
}
|
|
38648
|
-
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary']);
|
|
38684
|
+
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
|
38649
38685
|
var radioClasses$1 = radioClasses;
|
|
38650
38686
|
|
|
38651
38687
|
const _excluded$H = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"];
|
|
38652
38688
|
const useUtilityClasses$A = ownerState => {
|
|
38653
38689
|
const {
|
|
38654
38690
|
classes,
|
|
38655
|
-
color
|
|
38691
|
+
color,
|
|
38692
|
+
size
|
|
38656
38693
|
} = ownerState;
|
|
38657
38694
|
const slots = {
|
|
38658
|
-
root: ['root', `color${capitalize(color)}`]
|
|
38695
|
+
root: ['root', `color${capitalize(color)}`, size !== 'medium' && `size${capitalize(size)}`]
|
|
38659
38696
|
};
|
|
38660
38697
|
return _extends({}, classes, composeClasses(slots, getRadioUtilityClass, classes));
|
|
38661
38698
|
};
|
|
@@ -39765,6 +39802,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39765
39802
|
* @ignore - internal component.
|
|
39766
39803
|
*/
|
|
39767
39804
|
const SelectInput = /*#__PURE__*/React__namespace.forwardRef(function SelectInput(props, ref) {
|
|
39805
|
+
var _MenuProps$slotProps;
|
|
39768
39806
|
const {
|
|
39769
39807
|
'aria-describedby': ariaDescribedby,
|
|
39770
39808
|
'aria-label': ariaLabel,
|
|
@@ -40088,6 +40126,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40088
40126
|
error
|
|
40089
40127
|
});
|
|
40090
40128
|
const classes = useUtilityClasses$x(ownerState);
|
|
40129
|
+
const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
40091
40130
|
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
40092
40131
|
children: [/*#__PURE__*/jsxRuntime_1(SelectSelect, _extends({
|
|
40093
40132
|
ref: handleDisplayRef,
|
|
@@ -40149,11 +40188,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40149
40188
|
role: 'listbox',
|
|
40150
40189
|
disableListWrap: true
|
|
40151
40190
|
}, MenuProps.MenuListProps),
|
|
40152
|
-
|
|
40153
|
-
|
|
40154
|
-
|
|
40155
|
-
|
|
40156
|
-
|
|
40191
|
+
slotProps: {
|
|
40192
|
+
paper: _extends({}, paperProps, {
|
|
40193
|
+
style: _extends({
|
|
40194
|
+
minWidth: menuMinWidth
|
|
40195
|
+
}, paperProps != null ? paperProps.style : null)
|
|
40196
|
+
})
|
|
40197
|
+
},
|
|
40157
40198
|
children: items
|
|
40158
40199
|
}))]
|
|
40159
40200
|
});
|
|
@@ -42093,10 +42134,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42093
42134
|
*/
|
|
42094
42135
|
disableWindowBlurListener: PropTypes.bool,
|
|
42095
42136
|
/**
|
|
42096
|
-
* When displaying multiple consecutive
|
|
42097
|
-
*
|
|
42098
|
-
*
|
|
42099
|
-
* features
|
|
42137
|
+
* When displaying multiple consecutive snackbars using a single parent-rendered
|
|
42138
|
+
* `<Snackbar/>`, add the `key` prop to ensure independent treatment of each message.
|
|
42139
|
+
* For instance, use `<Snackbar key={message} />`. Otherwise, messages might update
|
|
42140
|
+
* in place, and features like `autoHideDuration` could be affected.
|
|
42100
42141
|
*/
|
|
42101
42142
|
key: () => null,
|
|
42102
42143
|
/**
|
|
@@ -45650,7 +45691,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45650
45691
|
*
|
|
45651
45692
|
* @default false
|
|
45652
45693
|
*/
|
|
45653
|
-
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.
|
|
45694
|
+
allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
45654
45695
|
/**
|
|
45655
45696
|
* @ignore
|
|
45656
45697
|
*/
|
|
@@ -45705,20 +45746,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45705
45746
|
/**
|
|
45706
45747
|
* Callback fired when the component requests to be closed.
|
|
45707
45748
|
*
|
|
45708
|
-
* @param {
|
|
45749
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
45709
45750
|
*/
|
|
45710
45751
|
onClose: PropTypes.func.isRequired,
|
|
45711
45752
|
/**
|
|
45712
45753
|
* Callback fired when the component requests to be opened.
|
|
45713
45754
|
*
|
|
45714
|
-
* @param {
|
|
45755
|
+
* @param {React.SyntheticEvent<{}>} event The event source of the callback.
|
|
45715
45756
|
*/
|
|
45716
45757
|
onOpen: PropTypes.func.isRequired,
|
|
45717
45758
|
/**
|
|
45718
45759
|
* If `true`, the component is shown.
|
|
45719
45760
|
* @default false
|
|
45720
45761
|
*/
|
|
45721
|
-
open: PropTypes.bool
|
|
45762
|
+
open: PropTypes.bool,
|
|
45722
45763
|
/**
|
|
45723
45764
|
* @ignore
|
|
45724
45765
|
*/
|