@mui/material 5.11.3 → 5.11.4
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/Autocomplete.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +1 -0
- 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/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 +48 -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/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/FilledInput.js +0 -4
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- 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 +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +1 -5
- 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/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- 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.d.ts +1 -1
- package/MenuItem/MenuItem.js +2 -1
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.d.ts +35 -12
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- 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/radioClasses.d.ts +16 -16
- 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/Select.d.ts +25 -83
- 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/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/Tabs.js +3 -1
- 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 +0 -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/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +3 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +1 -0
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/FilledInput/FilledInput.js +0 -3
- package/legacy/Input/Input.js +1 -4
- package/legacy/MenuItem/MenuItem.js +2 -1
- package/legacy/Tabs/Tabs.js +3 -1
- package/legacy/Tooltip/Tooltip.js +0 -1
- package/legacy/index.js +3 -1
- package/locale/index.d.ts +74 -74
- package/modern/Autocomplete/Autocomplete.js +1 -0
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/FilledInput/FilledInput.js +0 -4
- package/modern/Input/Input.js +1 -5
- package/modern/MenuItem/MenuItem.js +2 -1
- package/modern/Tabs/Tabs.js +3 -1
- package/modern/Tooltip/Tooltip.js +0 -1
- package/modern/index.js +3 -1
- package/node/Autocomplete/Autocomplete.js +1 -0
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/FilledInput/FilledInput.js +0 -4
- package/node/Input/Input.js +1 -5
- package/node/MenuItem/MenuItem.js +2 -1
- package/node/Tabs/Tabs.js +3 -1
- package/node/Tooltip/Tooltip.js +0 -1
- package/node/index.js +3 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +16 -16
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +27 -18
- package/umd/material-ui.production.min.js +7 -5
- 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,5 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @mui/material v5.11.4
|
|
2
3
|
*
|
|
4
|
+
* @license MIT
|
|
3
5
|
* This source code is licensed under the MIT license found in the
|
|
4
6
|
* LICENSE file in the root directory of this source tree.
|
|
5
7
|
*/
|
|
@@ -10901,7 +10903,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10901
10903
|
{
|
|
10902
10904
|
const matches = newValue.filter(val => isOptionEqualToValue(option, val));
|
|
10903
10905
|
if (matches.length > 1) {
|
|
10904
|
-
console.error([`MUI: The \`isOptionEqualToValue\` method of ${componentName}
|
|
10906
|
+
console.error([`MUI: The \`isOptionEqualToValue\` method of ${componentName} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${matches.length} matches.`].join('\n'));
|
|
10905
10907
|
}
|
|
10906
10908
|
}
|
|
10907
10909
|
const itemIndex = findIndex(newValue, valueItem => isOptionEqualToValue(option, valueItem));
|
|
@@ -13970,6 +13972,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13970
13972
|
/**
|
|
13971
13973
|
* Portals provide a first-class way to render children into a DOM node
|
|
13972
13974
|
* that exists outside the DOM hierarchy of the parent component.
|
|
13975
|
+
*
|
|
13976
|
+
* Demos:
|
|
13977
|
+
*
|
|
13978
|
+
* - [Portal](https://mui.com/base/react-portal/)
|
|
13979
|
+
*
|
|
13980
|
+
* API:
|
|
13981
|
+
*
|
|
13982
|
+
* - [Portal API](https://mui.com/base/api/portal/)
|
|
13973
13983
|
*/
|
|
13974
13984
|
const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props, ref) {
|
|
13975
13985
|
const {
|
|
@@ -13978,6 +13988,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13978
13988
|
disablePortal = false
|
|
13979
13989
|
} = props;
|
|
13980
13990
|
const [mountNode, setMountNode] = React__namespace.useState(null);
|
|
13991
|
+
// @ts-expect-error TODO upstream fix
|
|
13981
13992
|
const handleRef = useForkRef( /*#__PURE__*/React__namespace.isValidElement(children) ? children.ref : null, ref);
|
|
13982
13993
|
useEnhancedEffect$1(() => {
|
|
13983
13994
|
if (!disablePortal) {
|
|
@@ -13995,11 +14006,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13995
14006
|
}, [ref, mountNode, disablePortal]);
|
|
13996
14007
|
if (disablePortal) {
|
|
13997
14008
|
if ( /*#__PURE__*/React__namespace.isValidElement(children)) {
|
|
13998
|
-
|
|
14009
|
+
const newProps = {
|
|
13999
14010
|
ref: handleRef
|
|
14000
|
-
}
|
|
14011
|
+
};
|
|
14012
|
+
return /*#__PURE__*/React__namespace.cloneElement(children, newProps);
|
|
14001
14013
|
}
|
|
14002
|
-
return
|
|
14014
|
+
return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
|
|
14015
|
+
children: children
|
|
14016
|
+
});
|
|
14003
14017
|
}
|
|
14004
14018
|
return /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
|
|
14005
14019
|
children: mountNode ? /*#__PURE__*/ReactDOM__namespace.createPortal(children, mountNode) : mountNode
|
|
@@ -14008,7 +14022,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14008
14022
|
Portal.propTypes /* remove-proptypes */ = {
|
|
14009
14023
|
// ----------------------------- Warning --------------------------------
|
|
14010
14024
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14011
|
-
// | To update them edit
|
|
14025
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
14012
14026
|
// ----------------------------------------------------------------------
|
|
14013
14027
|
/**
|
|
14014
14028
|
* The children to render into the `container`.
|
|
@@ -22599,6 +22613,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22599
22613
|
className: classes.option
|
|
22600
22614
|
}), option, {
|
|
22601
22615
|
selected: optionProps['aria-selected'],
|
|
22616
|
+
index,
|
|
22602
22617
|
inputValue
|
|
22603
22618
|
});
|
|
22604
22619
|
};
|
|
@@ -29217,12 +29232,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29217
29232
|
[`&.${filledInputClasses$1.error}`]: {
|
|
29218
29233
|
'&:before, &:after': {
|
|
29219
29234
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
29220
|
-
},
|
|
29221
|
-
'&:focus-within:after': {
|
|
29222
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
29223
29235
|
}
|
|
29224
29236
|
},
|
|
29225
|
-
|
|
29226
29237
|
'&:before': {
|
|
29227
29238
|
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
29228
29239
|
left: 0,
|
|
@@ -32683,12 +32694,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32683
32694
|
[`&.${inputClasses$1.error}`]: {
|
|
32684
32695
|
'&:before, &:after': {
|
|
32685
32696
|
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
32686
|
-
},
|
|
32687
|
-
'&:focus-within:after': {
|
|
32688
|
-
transform: 'scaleX(1)' // error is always underlined in red
|
|
32689
32697
|
}
|
|
32690
32698
|
},
|
|
32691
|
-
|
|
32692
32699
|
'&:before': {
|
|
32693
32700
|
borderBottom: `1px solid ${bottomLineColor}`,
|
|
32694
32701
|
left: 0,
|
|
@@ -32704,7 +32711,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32704
32711
|
},
|
|
32705
32712
|
|
|
32706
32713
|
[`&:hover:not(.${inputClasses$1.disabled}, .${inputClasses$1.error}):before`]: {
|
|
32707
|
-
borderBottom: `
|
|
32714
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
32708
32715
|
// Reset on touch devices, it doesn't add specificity
|
|
32709
32716
|
'@media (hover: none)': {
|
|
32710
32717
|
borderBottom: `1px solid ${bottomLineColor}`
|
|
@@ -36262,7 +36269,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36262
36269
|
*/
|
|
36263
36270
|
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
|
|
36264
36271
|
/**
|
|
36265
|
-
*
|
|
36272
|
+
* If `true`, the component is selected.
|
|
36273
|
+
* @default false
|
|
36266
36274
|
*/
|
|
36267
36275
|
selected: PropTypes.bool,
|
|
36268
36276
|
/**
|
|
@@ -42706,7 +42714,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42706
42714
|
}) => /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
|
|
42707
42715
|
timeout: theme.transitions.duration.shorter
|
|
42708
42716
|
}, TransitionPropsInner, transitionProps, {
|
|
42709
|
-
"data-foo": "bar",
|
|
42710
42717
|
children: /*#__PURE__*/jsxRuntime_2(TooltipComponent, _extends({}, tooltipProps, {
|
|
42711
42718
|
children: [title, arrow ? /*#__PURE__*/jsxRuntime_1(ArrowComponent, _extends({}, tooltipArrowProps, {
|
|
42712
42719
|
ref: setArrowRef
|
|
@@ -47772,7 +47779,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
47772
47779
|
}
|
|
47773
47780
|
tabMeta = tab ? tab.getBoundingClientRect() : null;
|
|
47774
47781
|
{
|
|
47775
|
-
if (!warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0
|
|
47782
|
+
if (!warnedOnceTabPresent && tabMeta && tabMeta.width === 0 && tabMeta.height === 0 &&
|
|
47783
|
+
// if the whole Tabs component is hidden, don't warn
|
|
47784
|
+
tabsMeta.clientWidth !== 0) {
|
|
47776
47785
|
tabsMeta = null;
|
|
47777
47786
|
console.error(['MUI: The `value` provided to the Tabs component is invalid.', `The Tab with this \`value\` ("${value}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join('\n'));
|
|
47778
47787
|
warnedOnceTabPresent = true;
|