@mui/material 5.11.7 → 5.11.9
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/AppBar.js +1 -1
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +14 -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 +128 -1
- 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/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/FormLabel.d.ts +1 -1
- 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/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/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.d.ts +1 -1
- package/MenuList/MenuList.js +1 -1
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- 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 +55 -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/SelectInput.js +1 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- 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/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/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 +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +10 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/Select/SelectInput.js +1 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +75 -75
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +14 -0
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/Select/SelectInput.js +1 -1
- package/modern/index.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/Autocomplete/Autocomplete.js +14 -0
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/MenuList/MenuList.js +1 -1
- package/node/Select/SelectInput.js +1 -1
- package/node/index.js +1 -1
- package/package.json +6 -6
- 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 +115 -52
- 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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.11.
|
|
2
|
+
* @mui/material v5.11.9
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -3217,8 +3217,6 @@
|
|
|
3217
3217
|
return cache;
|
|
3218
3218
|
};
|
|
3219
3219
|
|
|
3220
|
-
var createCache$1 = createCache;
|
|
3221
|
-
|
|
3222
3220
|
var FORWARD_REF_STATICS = {
|
|
3223
3221
|
'$$typeof': true,
|
|
3224
3222
|
render: true,
|
|
@@ -3717,7 +3715,7 @@
|
|
|
3717
3715
|
// and we could have a special build just for that
|
|
3718
3716
|
// but this is much easier and the native packages
|
|
3719
3717
|
// might use a different theme context in the future anyway
|
|
3720
|
-
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache
|
|
3718
|
+
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
3721
3719
|
key: 'css'
|
|
3722
3720
|
}) : null);
|
|
3723
3721
|
|
|
@@ -3747,7 +3745,7 @@
|
|
|
3747
3745
|
// so there will only every be a single render
|
|
3748
3746
|
// that could change in the future because of suspense and etc. but for now,
|
|
3749
3747
|
// this works and i don't want to optimise for a future thing that we aren't sure about
|
|
3750
|
-
cache = createCache
|
|
3748
|
+
cache = createCache({
|
|
3751
3749
|
key: 'css'
|
|
3752
3750
|
});
|
|
3753
3751
|
return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
|
|
@@ -5781,16 +5779,19 @@
|
|
|
5781
5779
|
var jsxRuntime_1 = jsxRuntime.jsx;
|
|
5782
5780
|
var jsxRuntime_2 = jsxRuntime.jsxs;
|
|
5783
5781
|
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5782
|
+
let cache;
|
|
5783
|
+
if (typeof document === 'object') {
|
|
5784
|
+
cache = createCache({
|
|
5785
|
+
key: 'css',
|
|
5786
|
+
prepend: true
|
|
5787
|
+
});
|
|
5788
|
+
}
|
|
5788
5789
|
function StyledEngineProvider(props) {
|
|
5789
5790
|
const {
|
|
5790
5791
|
injectFirst,
|
|
5791
5792
|
children
|
|
5792
5793
|
} = props;
|
|
5793
|
-
return injectFirst ? /*#__PURE__*/jsxRuntime_1(CacheProvider, {
|
|
5794
|
+
return injectFirst && cache ? /*#__PURE__*/jsxRuntime_1(CacheProvider, {
|
|
5794
5795
|
value: cache,
|
|
5795
5796
|
children: children
|
|
5796
5797
|
}) : children;
|
|
@@ -8247,14 +8248,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8247
8248
|
colorScheme = ctx.colorScheme;
|
|
8248
8249
|
}
|
|
8249
8250
|
const calculatedMode = (() => {
|
|
8250
|
-
if (
|
|
8251
|
-
|
|
8252
|
-
if (defaultMode === 'system') {
|
|
8253
|
-
return designSystemMode;
|
|
8254
|
-
}
|
|
8255
|
-
return defaultMode;
|
|
8251
|
+
if (mode) {
|
|
8252
|
+
return mode;
|
|
8256
8253
|
}
|
|
8257
|
-
|
|
8254
|
+
// This scope occurs on the server
|
|
8255
|
+
if (defaultMode === 'system') {
|
|
8256
|
+
return designSystemMode;
|
|
8257
|
+
}
|
|
8258
|
+
return defaultMode;
|
|
8258
8259
|
})();
|
|
8259
8260
|
const calculatedColorScheme = (() => {
|
|
8260
8261
|
if (!colorScheme) {
|
|
@@ -8647,6 +8648,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8647
8648
|
return Container;
|
|
8648
8649
|
}
|
|
8649
8650
|
|
|
8651
|
+
function isNestedContainer(ownerState) {
|
|
8652
|
+
return ownerState.level > 0 && ownerState.container;
|
|
8653
|
+
}
|
|
8654
|
+
function createGetSelfSpacing(ownerState) {
|
|
8655
|
+
return function getSelfSpacing(axis) {
|
|
8656
|
+
return `var(--Grid-${axis}Spacing${ownerState.level || ''})`;
|
|
8657
|
+
};
|
|
8658
|
+
}
|
|
8659
|
+
function createGetParentSpacing(ownerState) {
|
|
8660
|
+
return function getParentSpacing(axis) {
|
|
8661
|
+
if (ownerState.level === 0) {
|
|
8662
|
+
return `var(--Grid-${axis}Spacing)`;
|
|
8663
|
+
}
|
|
8664
|
+
return `var(--Grid-${axis}Spacing${ownerState.level - 1 || ''})`;
|
|
8665
|
+
};
|
|
8666
|
+
}
|
|
8650
8667
|
const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));
|
|
8651
8668
|
const traverseBreakpoints = (breakpoints, responsive, iterator) => {
|
|
8652
8669
|
const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.
|
|
@@ -8693,6 +8710,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8693
8710
|
theme,
|
|
8694
8711
|
ownerState
|
|
8695
8712
|
}) => {
|
|
8713
|
+
const getSelfSpacing = createGetSelfSpacing(ownerState);
|
|
8696
8714
|
const styles = {};
|
|
8697
8715
|
traverseBreakpoints(theme.breakpoints, ownerState.gridSize, (appendStyle, value) => {
|
|
8698
8716
|
let style = {};
|
|
@@ -8716,7 +8734,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8716
8734
|
style = {
|
|
8717
8735
|
flexGrow: 0,
|
|
8718
8736
|
flexBasis: 'auto',
|
|
8719
|
-
width: `calc(100% * ${value} / var(--Grid-columns)${ownerState
|
|
8737
|
+
width: `calc(100% * ${value} / var(--Grid-columns)${isNestedContainer(ownerState) ? ` + ${getSelfSpacing('column')}` : ''})`
|
|
8720
8738
|
};
|
|
8721
8739
|
}
|
|
8722
8740
|
appendStyle(styles, style);
|
|
@@ -8768,11 +8786,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8768
8786
|
if (!ownerState.container) {
|
|
8769
8787
|
return {};
|
|
8770
8788
|
}
|
|
8771
|
-
const
|
|
8789
|
+
const getParentSpacing = createGetParentSpacing(ownerState);
|
|
8790
|
+
const styles = isNestedContainer(ownerState) ? {
|
|
8791
|
+
// Set the default spacing as its parent spacing.
|
|
8792
|
+
// It will be overridden if spacing props are provided
|
|
8793
|
+
[`--Grid-rowSpacing${ownerState.level || ''}`]: getParentSpacing('row')
|
|
8794
|
+
} : {};
|
|
8772
8795
|
traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {
|
|
8773
8796
|
var _theme$spacing;
|
|
8774
8797
|
appendStyle(styles, {
|
|
8775
|
-
|
|
8798
|
+
[`--Grid-rowSpacing${ownerState.level || ''}`]: typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
|
|
8776
8799
|
});
|
|
8777
8800
|
});
|
|
8778
8801
|
return styles;
|
|
@@ -8784,11 +8807,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8784
8807
|
if (!ownerState.container) {
|
|
8785
8808
|
return {};
|
|
8786
8809
|
}
|
|
8787
|
-
const
|
|
8810
|
+
const getParentSpacing = createGetParentSpacing(ownerState);
|
|
8811
|
+
const styles = isNestedContainer(ownerState) ? {
|
|
8812
|
+
// Set the default spacing as its parent spacing.
|
|
8813
|
+
// It will be overridden if spacing props are provided
|
|
8814
|
+
[`--Grid-columnSpacing${ownerState.level || ''}`]: getParentSpacing('column')
|
|
8815
|
+
} : {};
|
|
8788
8816
|
traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {
|
|
8789
8817
|
var _theme$spacing2;
|
|
8790
8818
|
appendStyle(styles, {
|
|
8791
|
-
|
|
8819
|
+
[`--Grid-columnSpacing${ownerState.level || ''}`]: typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
|
|
8792
8820
|
});
|
|
8793
8821
|
});
|
|
8794
8822
|
return styles;
|
|
@@ -8811,29 +8839,24 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8811
8839
|
const generateGridStyles = ({
|
|
8812
8840
|
ownerState
|
|
8813
8841
|
}) => {
|
|
8842
|
+
const getSelfSpacing = createGetSelfSpacing(ownerState);
|
|
8843
|
+
const getParentSpacing = createGetParentSpacing(ownerState);
|
|
8814
8844
|
return _extends({
|
|
8815
8845
|
minWidth: 0,
|
|
8816
8846
|
boxSizing: 'border-box'
|
|
8817
|
-
}, ownerState.container
|
|
8847
|
+
}, ownerState.container && _extends({
|
|
8818
8848
|
display: 'flex',
|
|
8819
8849
|
flexWrap: 'wrap'
|
|
8820
8850
|
}, ownerState.wrap && ownerState.wrap !== 'wrap' && {
|
|
8821
8851
|
flexWrap: ownerState.wrap
|
|
8822
8852
|
}, {
|
|
8823
|
-
margin: `calc(
|
|
8853
|
+
margin: `calc(${getSelfSpacing('row')} / -2) calc(${getSelfSpacing('column')} / -2)`
|
|
8824
8854
|
}, ownerState.disableEqualOverflow && {
|
|
8825
|
-
margin: `calc(
|
|
8826
|
-
}, ownerState.
|
|
8827
|
-
padding: `calc(
|
|
8855
|
+
margin: `calc(${getSelfSpacing('row')} * -1) 0px 0px calc(${getSelfSpacing('column')} * -1)`
|
|
8856
|
+
}), (!ownerState.container || isNestedContainer(ownerState)) && _extends({
|
|
8857
|
+
padding: `calc(${getParentSpacing('row')} / 2) calc(${getParentSpacing('column')} / 2)`
|
|
8828
8858
|
}, (ownerState.disableEqualOverflow || ownerState.parentDisableEqualOverflow) && {
|
|
8829
|
-
padding:
|
|
8830
|
-
}) : {
|
|
8831
|
-
'--Grid-nested-rowSpacing': 'var(--Grid-rowSpacing)',
|
|
8832
|
-
'--Grid-nested-columnSpacing': 'var(--Grid-columnSpacing)'
|
|
8833
|
-
}) : _extends({
|
|
8834
|
-
padding: `calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)`
|
|
8835
|
-
}, ownerState.disableEqualOverflow && {
|
|
8836
|
-
padding: `calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))`
|
|
8859
|
+
padding: `${getParentSpacing('row')} 0px 0px ${getParentSpacing('column')}`
|
|
8837
8860
|
}));
|
|
8838
8861
|
};
|
|
8839
8862
|
const generateSizeClassNames = gridSize => {
|
|
@@ -8899,7 +8922,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8899
8922
|
useThemeProps = useThemePropsDefault,
|
|
8900
8923
|
componentName = 'MuiGrid'
|
|
8901
8924
|
} = options;
|
|
8902
|
-
const NestedContext = /*#__PURE__*/React__namespace.createContext(
|
|
8925
|
+
const NestedContext = /*#__PURE__*/React__namespace.createContext(0);
|
|
8903
8926
|
const OverflowContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
8904
8927
|
const useUtilityClasses = (ownerState, theme) => {
|
|
8905
8928
|
const {
|
|
@@ -8920,7 +8943,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8920
8943
|
const theme = useTheme$1();
|
|
8921
8944
|
const themeProps = useThemeProps(inProps);
|
|
8922
8945
|
const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
|
|
8923
|
-
const
|
|
8946
|
+
const level = React__namespace.useContext(NestedContext);
|
|
8924
8947
|
const overflow = React__namespace.useContext(OverflowContext);
|
|
8925
8948
|
const {
|
|
8926
8949
|
className,
|
|
@@ -8937,7 +8960,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8937
8960
|
rest = _objectWithoutPropertiesLoose(props, _excluded$2f);
|
|
8938
8961
|
// Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
|
|
8939
8962
|
let disableEqualOverflow = themeDisableEqualOverflow;
|
|
8940
|
-
if (
|
|
8963
|
+
if (level && themeDisableEqualOverflow !== undefined) {
|
|
8941
8964
|
disableEqualOverflow = inProps.disableEqualOverflow;
|
|
8942
8965
|
}
|
|
8943
8966
|
// collect breakpoints related props because they can be customized from the theme.
|
|
@@ -8953,12 +8976,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8953
8976
|
other[key] = val;
|
|
8954
8977
|
}
|
|
8955
8978
|
});
|
|
8956
|
-
const columns = (_inProps$columns = inProps.columns) != null ? _inProps$columns :
|
|
8957
|
-
const spacing = (_inProps$spacing = inProps.spacing) != null ? _inProps$spacing :
|
|
8958
|
-
const rowSpacing = (_ref = (_inProps$rowSpacing = inProps.rowSpacing) != null ? _inProps$rowSpacing : inProps.spacing) != null ? _ref :
|
|
8959
|
-
const columnSpacing = (_ref2 = (_inProps$columnSpacin = inProps.columnSpacing) != null ? _inProps$columnSpacin : inProps.spacing) != null ? _ref2 :
|
|
8979
|
+
const columns = (_inProps$columns = inProps.columns) != null ? _inProps$columns : level ? undefined : columnsProp;
|
|
8980
|
+
const spacing = (_inProps$spacing = inProps.spacing) != null ? _inProps$spacing : level ? undefined : spacingProp;
|
|
8981
|
+
const rowSpacing = (_ref = (_inProps$rowSpacing = inProps.rowSpacing) != null ? _inProps$rowSpacing : inProps.spacing) != null ? _ref : level ? undefined : rowSpacingProp;
|
|
8982
|
+
const columnSpacing = (_ref2 = (_inProps$columnSpacin = inProps.columnSpacing) != null ? _inProps$columnSpacin : inProps.spacing) != null ? _ref2 : level ? undefined : columnSpacingProp;
|
|
8960
8983
|
const ownerState = _extends({}, props, {
|
|
8961
|
-
|
|
8984
|
+
level,
|
|
8962
8985
|
columns,
|
|
8963
8986
|
container,
|
|
8964
8987
|
direction,
|
|
@@ -8980,9 +9003,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8980
9003
|
ownerState: ownerState,
|
|
8981
9004
|
className: clsx(classes.root, className)
|
|
8982
9005
|
}, other));
|
|
8983
|
-
if (
|
|
9006
|
+
if (container) {
|
|
8984
9007
|
result = /*#__PURE__*/jsxRuntime_1(NestedContext.Provider, {
|
|
8985
|
-
value:
|
|
9008
|
+
value: level + 1,
|
|
8986
9009
|
children: result
|
|
8987
9010
|
});
|
|
8988
9011
|
}
|
|
@@ -10400,6 +10423,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10400
10423
|
|
|
10401
10424
|
const _excluded$28 = ["elementType", "externalSlotProps", "ownerState"];
|
|
10402
10425
|
/**
|
|
10426
|
+
* @ignore - do not document.
|
|
10403
10427
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
10404
10428
|
* It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
|
|
10405
10429
|
* If the slot component is not a host component, it also merges in the `ownerState`.
|
|
@@ -10714,7 +10738,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10714
10738
|
}
|
|
10715
10739
|
|
|
10716
10740
|
// Scroll active descendant into view.
|
|
10717
|
-
// Logic copied from https://www.w3.org/WAI/
|
|
10741
|
+
// Logic copied from https://www.w3.org/WAI/content-assets/wai-aria-practices/patterns/combobox/examples/js/select-only.js
|
|
10718
10742
|
//
|
|
10719
10743
|
// Consider this API instead once it has a better browser support:
|
|
10720
10744
|
// .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });
|
|
@@ -10795,8 +10819,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10795
10819
|
}
|
|
10796
10820
|
});
|
|
10797
10821
|
const checkHighlightedOptionExists = () => {
|
|
10798
|
-
|
|
10799
|
-
|
|
10822
|
+
const isSameValue = (value1, value2) => {
|
|
10823
|
+
const label1 = value1 ? getOptionLabel(value1) : '';
|
|
10824
|
+
const label2 = value2 ? getOptionLabel(value2) : '';
|
|
10825
|
+
return label1 === label2;
|
|
10826
|
+
};
|
|
10827
|
+
if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
|
|
10800
10828
|
const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];
|
|
10801
10829
|
if (previousHighlightedOption) {
|
|
10802
10830
|
const previousHighlightedOptionExists = filteredOptions.some(option => {
|
|
@@ -11316,7 +11344,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11316
11344
|
ref: inputRef,
|
|
11317
11345
|
autoCapitalize: 'none',
|
|
11318
11346
|
spellCheck: 'false',
|
|
11319
|
-
role: 'combobox'
|
|
11347
|
+
role: 'combobox',
|
|
11348
|
+
disabled: disabledProp
|
|
11320
11349
|
}),
|
|
11321
11350
|
getClearProps: () => ({
|
|
11322
11351
|
tabIndex: -1,
|
|
@@ -11377,6 +11406,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11377
11406
|
};
|
|
11378
11407
|
}
|
|
11379
11408
|
|
|
11409
|
+
/**
|
|
11410
|
+
*
|
|
11411
|
+
* Demos:
|
|
11412
|
+
*
|
|
11413
|
+
* - [Unstyled badge](https://mui.com/base/react-badge/#hook)
|
|
11414
|
+
*
|
|
11415
|
+
* API:
|
|
11416
|
+
*
|
|
11417
|
+
* - [useBadge API](https://mui.com/base/api/use-badge/)
|
|
11418
|
+
*/
|
|
11380
11419
|
function useBadge(parameters) {
|
|
11381
11420
|
const {
|
|
11382
11421
|
badgeContent: badgeContentProp,
|
|
@@ -15253,6 +15292,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15253
15292
|
}
|
|
15254
15293
|
return cachedSupportsTouchActionNone;
|
|
15255
15294
|
}
|
|
15295
|
+
/**
|
|
15296
|
+
*
|
|
15297
|
+
* Demos:
|
|
15298
|
+
*
|
|
15299
|
+
* - [Unstyled Slider](https://mui.com/base/react-slider/#hook)
|
|
15300
|
+
*
|
|
15301
|
+
* API:
|
|
15302
|
+
*
|
|
15303
|
+
* - [useSlider API](https://mui.com/base/api/use-slider/)
|
|
15304
|
+
*/
|
|
15256
15305
|
function useSlider(parameters) {
|
|
15257
15306
|
const {
|
|
15258
15307
|
'aria-labelledby': ariaLabelledby,
|
|
@@ -19930,7 +19979,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19930
19979
|
|
|
19931
19980
|
// var2 is the fallback.
|
|
19932
19981
|
// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
|
|
19933
|
-
const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})
|
|
19982
|
+
const joinVars = (var1, var2) => var1 ? `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})` : var2;
|
|
19934
19983
|
const AppBarRoot = styled$1(Paper$1, {
|
|
19935
19984
|
name: 'MuiAppBar',
|
|
19936
19985
|
slot: 'Root',
|
|
@@ -21833,6 +21882,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21833
21882
|
[`& .${inputBaseClasses$1.hiddenLabel}`]: {
|
|
21834
21883
|
paddingTop: 8
|
|
21835
21884
|
},
|
|
21885
|
+
[`& .${filledInputClasses$1.root}.${inputBaseClasses$1.hiddenLabel}`]: {
|
|
21886
|
+
paddingTop: 0,
|
|
21887
|
+
paddingBottom: 0,
|
|
21888
|
+
[`& .${autocompleteClasses$1.input}`]: {
|
|
21889
|
+
paddingTop: 16,
|
|
21890
|
+
paddingBottom: 17
|
|
21891
|
+
}
|
|
21892
|
+
},
|
|
21893
|
+
[`& .${filledInputClasses$1.root}.${inputBaseClasses$1.hiddenLabel}.${inputBaseClasses$1.sizeSmall}`]: {
|
|
21894
|
+
[`& .${autocompleteClasses$1.input}`]: {
|
|
21895
|
+
paddingTop: 8,
|
|
21896
|
+
paddingBottom: 9
|
|
21897
|
+
}
|
|
21898
|
+
},
|
|
21836
21899
|
[`& .${autocompleteClasses$1.input}`]: _extends({
|
|
21837
21900
|
flexGrow: 1,
|
|
21838
21901
|
textOverflow: 'ellipsis',
|
|
@@ -34680,7 +34743,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34680
34743
|
}
|
|
34681
34744
|
|
|
34682
34745
|
/**
|
|
34683
|
-
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/
|
|
34746
|
+
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
|
|
34684
34747
|
* It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
|
|
34685
34748
|
* use it separately you need to move focus into the component manually. Once
|
|
34686
34749
|
* the focus is placed inside the component it is fully keyboard accessible.
|
|
@@ -38912,7 +38975,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38912
38975
|
if (!readOnly) {
|
|
38913
38976
|
const validKeys = [' ', 'ArrowUp', 'ArrowDown',
|
|
38914
38977
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
38915
|
-
// https://www.w3.org/WAI/ARIA/apg/
|
|
38978
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
38916
38979
|
'Enter'];
|
|
38917
38980
|
if (validKeys.indexOf(event.key) !== -1) {
|
|
38918
38981
|
event.preventDefault();
|