@mui/material 5.10.11 → 5.10.12
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/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/TouchRipple.js +1 -1
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +76 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +8 -4
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControl.js +29 -29
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +2 -2
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +2 -2
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +2 -2
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +37 -37
- package/Radio/Radio.js +2 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroup.js +12 -12
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/SwipeableDrawer/SwipeableDrawer.js +10 -2
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +1 -1
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/ButtonBase/TouchRipple.js +1 -1
- package/esm/Chip/Chip.js +8 -4
- package/esm/FormControl/FormControl.js +29 -29
- package/esm/ListItem/ListItem.js +2 -2
- package/esm/ListItemButton/ListItemButton.js +2 -2
- package/esm/MenuItem/MenuItem.js +2 -2
- package/esm/Radio/Radio.js +2 -1
- package/esm/RadioGroup/RadioGroup.js +12 -12
- package/esm/SwipeableDrawer/SwipeableDrawer.js +9 -2
- package/esm/Tooltip/Tooltip.js +1 -1
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Chip/Chip.js +8 -4
- package/legacy/FormControl/FormControl.js +29 -29
- package/legacy/ListItem/ListItem.js +7 -5
- package/legacy/ListItemButton/ListItemButton.js +7 -5
- package/legacy/MenuItem/MenuItem.js +6 -4
- package/legacy/Radio/Radio.js +2 -1
- package/legacy/RadioGroup/RadioGroup.js +14 -14
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +9 -2
- package/legacy/Tooltip/Tooltip.js +1 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +72 -72
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Chip/Chip.js +8 -4
- package/modern/FormControl/FormControl.js +29 -29
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +2 -2
- package/modern/MenuItem/MenuItem.js +2 -2
- package/modern/Radio/Radio.js +2 -1
- package/modern/RadioGroup/RadioGroup.js +12 -12
- package/modern/SwipeableDrawer/SwipeableDrawer.js +9 -2
- package/modern/Tooltip/Tooltip.js +1 -1
- package/modern/index.js +1 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +84 -70
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.10.
|
|
1
|
+
/** @license MUI v5.10.12
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -7582,10 +7582,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7582
7582
|
return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
|
|
7583
7583
|
}
|
|
7584
7584
|
|
|
7585
|
+
const EMPTY_THEME = {};
|
|
7586
|
+
|
|
7585
7587
|
function InnerThemeProvider(props) {
|
|
7586
7588
|
const theme = useTheme$1();
|
|
7587
7589
|
return /*#__PURE__*/jsxRuntime_1(ThemeContext$2.Provider, {
|
|
7588
|
-
value: typeof theme === 'object' ? theme :
|
|
7590
|
+
value: typeof theme === 'object' ? theme : EMPTY_THEME,
|
|
7589
7591
|
children: props.children
|
|
7590
7592
|
});
|
|
7591
7593
|
}
|
|
@@ -8269,17 +8271,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8269
8271
|
hasMounted.current = false;
|
|
8270
8272
|
};
|
|
8271
8273
|
}, []);
|
|
8274
|
+
const contextValue = React__namespace.useMemo(() => ({
|
|
8275
|
+
mode,
|
|
8276
|
+
systemMode,
|
|
8277
|
+
setMode,
|
|
8278
|
+
lightColorScheme,
|
|
8279
|
+
darkColorScheme,
|
|
8280
|
+
colorScheme,
|
|
8281
|
+
setColorScheme,
|
|
8282
|
+
allColorSchemes
|
|
8283
|
+
}), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);
|
|
8272
8284
|
return /*#__PURE__*/jsxRuntime_2(ColorSchemeContext.Provider, {
|
|
8273
|
-
value:
|
|
8274
|
-
mode,
|
|
8275
|
-
systemMode,
|
|
8276
|
-
setMode,
|
|
8277
|
-
lightColorScheme,
|
|
8278
|
-
darkColorScheme,
|
|
8279
|
-
colorScheme,
|
|
8280
|
-
setColorScheme,
|
|
8281
|
-
allColorSchemes
|
|
8282
|
-
},
|
|
8285
|
+
value: contextValue,
|
|
8283
8286
|
children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
|
|
8284
8287
|
styles: {
|
|
8285
8288
|
[colorSchemeSelector]: rootCss
|
|
@@ -9949,7 +9952,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
9949
9952
|
* @param otherProps Props of the element.
|
|
9950
9953
|
* @param ownerState
|
|
9951
9954
|
*/
|
|
9952
|
-
function appendOwnerState(elementType, otherProps
|
|
9955
|
+
function appendOwnerState(elementType, otherProps, ownerState) {
|
|
9953
9956
|
if (isHostComponent(elementType)) {
|
|
9954
9957
|
return otherProps;
|
|
9955
9958
|
}
|
|
@@ -14357,7 +14360,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14357
14360
|
return isForbiddenTagName || isInputHidden;
|
|
14358
14361
|
}
|
|
14359
14362
|
|
|
14360
|
-
function ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude
|
|
14363
|
+
function ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude, show) {
|
|
14361
14364
|
const blacklist = [mountElement, currentElement, ...elementsToExclude];
|
|
14362
14365
|
[].forEach.call(container.children, element => {
|
|
14363
14366
|
const isNotExcludedElement = blacklist.indexOf(element) === -1;
|
|
@@ -19393,7 +19396,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19393
19396
|
nextKey.current += 1;
|
|
19394
19397
|
rippleCallback.current = cb;
|
|
19395
19398
|
}, [classes]);
|
|
19396
|
-
const start = React__namespace.useCallback((event = {}, options = {}, cb) => {
|
|
19399
|
+
const start = React__namespace.useCallback((event = {}, options = {}, cb = () => {}) => {
|
|
19397
19400
|
const {
|
|
19398
19401
|
pulsate = false,
|
|
19399
19402
|
center = centerProp || options.pulsate,
|
|
@@ -21667,6 +21670,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21667
21670
|
disabled,
|
|
21668
21671
|
size,
|
|
21669
21672
|
color,
|
|
21673
|
+
iconColor,
|
|
21670
21674
|
onDelete,
|
|
21671
21675
|
clickable,
|
|
21672
21676
|
variant
|
|
@@ -21675,7 +21679,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21675
21679
|
root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', clickable && `clickableColor${capitalize(color)}`, onDelete && 'deletable', onDelete && `deletableColor${capitalize(color)}`, `${variant}${capitalize(color)}`],
|
|
21676
21680
|
label: ['label', `label${capitalize(size)}`],
|
|
21677
21681
|
avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
|
|
21678
|
-
icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(
|
|
21682
|
+
icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],
|
|
21679
21683
|
deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
21680
21684
|
};
|
|
21681
21685
|
return composeClasses(slots, getChipUtilityClass, classes);
|
|
@@ -21690,6 +21694,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21690
21694
|
} = props;
|
|
21691
21695
|
const {
|
|
21692
21696
|
color,
|
|
21697
|
+
iconColor,
|
|
21693
21698
|
clickable,
|
|
21694
21699
|
onDelete,
|
|
21695
21700
|
size,
|
|
@@ -21706,7 +21711,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21706
21711
|
}, {
|
|
21707
21712
|
[`& .${chipClasses$1.icon}`]: styles[`icon${capitalize(size)}`]
|
|
21708
21713
|
}, {
|
|
21709
|
-
[`& .${chipClasses$1.icon}`]: styles[`iconColor${capitalize(
|
|
21714
|
+
[`& .${chipClasses$1.icon}`]: styles[`iconColor${capitalize(iconColor)}`]
|
|
21710
21715
|
}, {
|
|
21711
21716
|
[`& .${chipClasses$1.deleteIcon}`]: styles.deleteIcon
|
|
21712
21717
|
}, {
|
|
@@ -21775,16 +21780,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21775
21780
|
fontSize: theme.typography.pxToRem(10)
|
|
21776
21781
|
},
|
|
21777
21782
|
[`& .${chipClasses$1.icon}`]: _extends({
|
|
21778
|
-
color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor,
|
|
21779
21783
|
marginLeft: 5,
|
|
21780
21784
|
marginRight: -6
|
|
21781
21785
|
}, ownerState.size === 'small' && {
|
|
21782
21786
|
fontSize: 18,
|
|
21783
21787
|
marginLeft: 4,
|
|
21784
21788
|
marginRight: -4
|
|
21789
|
+
}, ownerState.iconColor === ownerState.color && _extends({
|
|
21790
|
+
color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
|
|
21785
21791
|
}, ownerState.color !== 'default' && {
|
|
21786
21792
|
color: 'inherit'
|
|
21787
|
-
}),
|
|
21793
|
+
})),
|
|
21788
21794
|
[`& .${chipClasses$1.deleteIcon}`]: _extends({
|
|
21789
21795
|
WebkitTapHighlightColor: 'transparent',
|
|
21790
21796
|
color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
|
|
@@ -21990,6 +21996,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21990
21996
|
disabled,
|
|
21991
21997
|
size,
|
|
21992
21998
|
color,
|
|
21999
|
+
iconColor: /*#__PURE__*/React__namespace.isValidElement(iconProp) ? iconProp.props.color || color : color,
|
|
21993
22000
|
onDelete: !!onDelete,
|
|
21994
22001
|
clickable,
|
|
21995
22002
|
variant
|
|
@@ -31350,35 +31357,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31350
31357
|
};
|
|
31351
31358
|
}
|
|
31352
31359
|
|
|
31353
|
-
const
|
|
31354
|
-
|
|
31355
|
-
|
|
31356
|
-
|
|
31357
|
-
|
|
31358
|
-
|
|
31359
|
-
|
|
31360
|
-
|
|
31361
|
-
|
|
31362
|
-
|
|
31363
|
-
|
|
31364
|
-
|
|
31365
|
-
|
|
31366
|
-
|
|
31367
|
-
|
|
31368
|
-
|
|
31369
|
-
|
|
31370
|
-
|
|
31371
|
-
|
|
31372
|
-
|
|
31373
|
-
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
|
|
31378
|
-
|
|
31379
|
-
|
|
31380
|
-
|
|
31381
|
-
};
|
|
31360
|
+
const childContext = React__namespace.useMemo(() => {
|
|
31361
|
+
return {
|
|
31362
|
+
adornedStart,
|
|
31363
|
+
setAdornedStart,
|
|
31364
|
+
color,
|
|
31365
|
+
disabled,
|
|
31366
|
+
error,
|
|
31367
|
+
filled,
|
|
31368
|
+
focused,
|
|
31369
|
+
fullWidth,
|
|
31370
|
+
hiddenLabel,
|
|
31371
|
+
size,
|
|
31372
|
+
onBlur: () => {
|
|
31373
|
+
setFocused(false);
|
|
31374
|
+
},
|
|
31375
|
+
onEmpty: () => {
|
|
31376
|
+
setFilled(false);
|
|
31377
|
+
},
|
|
31378
|
+
onFilled: () => {
|
|
31379
|
+
setFilled(true);
|
|
31380
|
+
},
|
|
31381
|
+
onFocus: () => {
|
|
31382
|
+
setFocused(true);
|
|
31383
|
+
},
|
|
31384
|
+
registerEffect,
|
|
31385
|
+
required,
|
|
31386
|
+
variant
|
|
31387
|
+
};
|
|
31388
|
+
}, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);
|
|
31382
31389
|
return /*#__PURE__*/jsxRuntime_1(FormControlContext$1.Provider, {
|
|
31383
31390
|
value: childContext,
|
|
31384
31391
|
children: /*#__PURE__*/jsxRuntime_1(FormControlRoot, _extends({
|
|
@@ -36260,11 +36267,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36260
36267
|
other = _objectWithoutPropertiesLoose(props, _excluded$_);
|
|
36261
36268
|
|
|
36262
36269
|
const context = React__namespace.useContext(ListContext$1);
|
|
36263
|
-
const childContext = {
|
|
36270
|
+
const childContext = React__namespace.useMemo(() => ({
|
|
36264
36271
|
dense: dense || context.dense || false,
|
|
36265
36272
|
alignItems,
|
|
36266
36273
|
disableGutters
|
|
36267
|
-
};
|
|
36274
|
+
}), [alignItems, context.dense, dense, disableGutters]);
|
|
36268
36275
|
const listItemRef = React__namespace.useRef(null);
|
|
36269
36276
|
useEnhancedEffect$1(() => {
|
|
36270
36277
|
if (autoFocus) {
|
|
@@ -36641,11 +36648,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36641
36648
|
other = _objectWithoutPropertiesLoose(props, _excluded2$7);
|
|
36642
36649
|
|
|
36643
36650
|
const context = React__namespace.useContext(ListContext$1);
|
|
36644
|
-
const childContext = {
|
|
36651
|
+
const childContext = React__namespace.useMemo(() => ({
|
|
36645
36652
|
dense: dense || context.dense || false,
|
|
36646
36653
|
alignItems,
|
|
36647
36654
|
disableGutters
|
|
36648
|
-
};
|
|
36655
|
+
}), [alignItems, context.dense, dense, disableGutters]);
|
|
36649
36656
|
const listItemRef = React__namespace.useRef(null);
|
|
36650
36657
|
useEnhancedEffect$1(() => {
|
|
36651
36658
|
if (autoFocus) {
|
|
@@ -38497,10 +38504,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38497
38504
|
other = _objectWithoutPropertiesLoose(props, _excluded$R);
|
|
38498
38505
|
|
|
38499
38506
|
const context = React__namespace.useContext(ListContext$1);
|
|
38500
|
-
const childContext = {
|
|
38507
|
+
const childContext = React__namespace.useMemo(() => ({
|
|
38501
38508
|
dense: dense || context.dense || false,
|
|
38502
38509
|
disableGutters
|
|
38503
|
-
};
|
|
38510
|
+
}), [context.dense, dense, disableGutters]);
|
|
38504
38511
|
const menuItemRef = React__namespace.useRef(null);
|
|
38505
38512
|
useEnhancedEffect$1(() => {
|
|
38506
38513
|
if (autoFocus) {
|
|
@@ -40590,7 +40597,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40590
40597
|
theme,
|
|
40591
40598
|
ownerState
|
|
40592
40599
|
}) => _extends({
|
|
40593
|
-
color: (theme.vars || theme).palette.text.secondary
|
|
40600
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
40601
|
+
}, !ownerState.disableRipple && {
|
|
40594
40602
|
'&:hover': {
|
|
40595
40603
|
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
40596
40604
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -40825,22 +40833,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40825
40833
|
}
|
|
40826
40834
|
}), []);
|
|
40827
40835
|
const handleRef = useForkRef(ref, rootRef);
|
|
40836
|
+
const name = useId(nameProp);
|
|
40837
|
+
const contextValue = React__namespace.useMemo(() => ({
|
|
40838
|
+
name,
|
|
40828
40839
|
|
|
40829
|
-
|
|
40830
|
-
|
|
40840
|
+
onChange(event) {
|
|
40841
|
+
setValueState(event.target.value);
|
|
40831
40842
|
|
|
40832
|
-
|
|
40833
|
-
|
|
40834
|
-
|
|
40835
|
-
|
|
40843
|
+
if (onChange) {
|
|
40844
|
+
onChange(event, event.target.value);
|
|
40845
|
+
}
|
|
40846
|
+
},
|
|
40836
40847
|
|
|
40837
|
-
|
|
40848
|
+
value
|
|
40849
|
+
}), [name, onChange, setValueState, value]);
|
|
40838
40850
|
return /*#__PURE__*/jsxRuntime_1(RadioGroupContext$1.Provider, {
|
|
40839
|
-
value:
|
|
40840
|
-
name,
|
|
40841
|
-
onChange: handleChange,
|
|
40842
|
-
value
|
|
40843
|
-
},
|
|
40851
|
+
value: contextValue,
|
|
40844
40852
|
children: /*#__PURE__*/jsxRuntime_1(FormGroup$1, _extends({
|
|
40845
40853
|
role: "radiogroup",
|
|
40846
40854
|
ref: handleRef
|
|
@@ -45568,7 +45576,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45568
45576
|
}, [handleClose, open]);
|
|
45569
45577
|
const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref); // There is no point in displaying an empty tooltip.
|
|
45570
45578
|
|
|
45571
|
-
if (
|
|
45579
|
+
if (!title && title !== 0) {
|
|
45572
45580
|
open = false;
|
|
45573
45581
|
}
|
|
45574
45582
|
|
|
@@ -48014,7 +48022,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48014
48022
|
|
|
48015
48023
|
claimedSwipeInstance = null;
|
|
48016
48024
|
touchDetected.current = false;
|
|
48017
|
-
|
|
48025
|
+
ReactDOM.flushSync(() => {
|
|
48026
|
+
setMaybeSwiping(false);
|
|
48027
|
+
}); // The swipe wasn't started.
|
|
48018
48028
|
|
|
48019
48029
|
if (!swipeInstance.current.isSwiping) {
|
|
48020
48030
|
swipeInstance.current.isSwiping = null;
|
|
@@ -48216,7 +48226,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48216
48226
|
claimedSwipeInstance = null;
|
|
48217
48227
|
swipeInstance.current.startX = currentX;
|
|
48218
48228
|
swipeInstance.current.startY = currentY;
|
|
48219
|
-
|
|
48229
|
+
ReactDOM.flushSync(() => {
|
|
48230
|
+
setMaybeSwiping(true);
|
|
48231
|
+
});
|
|
48220
48232
|
|
|
48221
48233
|
if (!open && paperRef.current) {
|
|
48222
48234
|
// The ref may be null when a parent component updates while swiping.
|
|
@@ -48272,6 +48284,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48272
48284
|
BackdropProps: _extends({}, BackdropProps, {
|
|
48273
48285
|
ref: backdropRef
|
|
48274
48286
|
})
|
|
48287
|
+
}, variant === 'temporary' && {
|
|
48288
|
+
keepMounted: true
|
|
48275
48289
|
}, ModalPropsProp),
|
|
48276
48290
|
hideBackdrop: hideBackdrop,
|
|
48277
48291
|
PaperProps: _extends({}, PaperProps, {
|