@mui/material 5.14.10 → 5.14.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/Autocomplete/Autocomplete.d.ts +2 -0
- package/ButtonGroup/ButtonGroup.js +8 -8
- package/CHANGELOG.md +159 -0
- package/DialogActions/DialogActions.js +1 -1
- package/Menu/Menu.d.ts +2 -23
- package/Select/SelectInput.js +9 -5
- package/index.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +8 -8
- package/legacy/DialogActions/DialogActions.js +1 -1
- package/legacy/Select/SelectInput.js +9 -5
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +35 -32
- package/locale/index.js +6 -4
- package/modern/ButtonGroup/ButtonGroup.js +8 -8
- package/modern/DialogActions/DialogActions.js +1 -1
- package/modern/Select/SelectInput.js +9 -5
- package/modern/index.js +1 -1
- package/modern/locale/index.js +6 -4
- package/node/Accordion/Accordion.js +1 -2
- package/node/Accordion/AccordionContext.js +1 -2
- package/node/Accordion/accordionClasses.js +1 -2
- package/node/AccordionActions/AccordionActions.js +1 -2
- package/node/AccordionActions/accordionActionsClasses.js +1 -2
- package/node/AccordionDetails/AccordionDetails.js +1 -2
- package/node/AccordionDetails/accordionDetailsClasses.js +1 -2
- package/node/AccordionSummary/AccordionSummary.js +1 -2
- package/node/AccordionSummary/accordionSummaryClasses.js +1 -2
- package/node/Alert/Alert.js +1 -2
- package/node/Alert/alertClasses.js +1 -2
- package/node/AlertTitle/AlertTitle.js +1 -2
- package/node/AlertTitle/alertTitleClasses.js +1 -2
- package/node/AppBar/AppBar.js +1 -2
- package/node/AppBar/appBarClasses.js +1 -2
- package/node/Autocomplete/Autocomplete.js +1 -2
- package/node/Autocomplete/autocompleteClasses.js +1 -2
- package/node/Avatar/Avatar.js +1 -2
- package/node/Avatar/avatarClasses.js +1 -2
- package/node/AvatarGroup/AvatarGroup.js +1 -2
- package/node/AvatarGroup/avatarGroupClasses.js +1 -2
- package/node/Backdrop/Backdrop.js +1 -2
- package/node/Backdrop/backdropClasses.js +1 -2
- package/node/Badge/Badge.js +1 -2
- package/node/Badge/badgeClasses.js +1 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -2
- package/node/BottomNavigation/bottomNavigationClasses.js +1 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +1 -2
- package/node/BottomNavigationAction/bottomNavigationActionClasses.js +1 -2
- package/node/Box/Box.js +1 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -2
- package/node/Breadcrumbs/Breadcrumbs.js +1 -2
- package/node/Breadcrumbs/breadcrumbsClasses.js +1 -2
- package/node/Button/Button.js +1 -2
- package/node/Button/buttonClasses.js +1 -2
- package/node/ButtonBase/ButtonBase.js +2 -4
- package/node/ButtonBase/Ripple.js +1 -2
- package/node/ButtonBase/TouchRipple.js +4 -8
- package/node/ButtonBase/buttonBaseClasses.js +1 -2
- package/node/ButtonBase/touchRippleClasses.js +1 -2
- package/node/ButtonGroup/ButtonGroup.js +9 -10
- package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -2
- package/node/ButtonGroup/ButtonGroupContext.js +1 -2
- package/node/ButtonGroup/buttonGroupClasses.js +1 -2
- package/node/Card/Card.js +1 -2
- package/node/Card/cardClasses.js +1 -2
- package/node/CardActionArea/CardActionArea.js +1 -2
- package/node/CardActionArea/cardActionAreaClasses.js +1 -2
- package/node/CardActions/CardActions.js +1 -2
- package/node/CardActions/cardActionsClasses.js +1 -2
- package/node/CardContent/CardContent.js +1 -2
- package/node/CardContent/cardContentClasses.js +1 -2
- package/node/CardHeader/CardHeader.js +1 -2
- package/node/CardHeader/cardHeaderClasses.js +1 -2
- package/node/CardMedia/CardMedia.js +1 -2
- package/node/CardMedia/cardMediaClasses.js +1 -2
- package/node/Checkbox/Checkbox.js +1 -2
- package/node/Checkbox/checkboxClasses.js +1 -2
- package/node/Chip/Chip.js +1 -2
- package/node/Chip/chipClasses.js +1 -2
- package/node/CircularProgress/CircularProgress.js +1 -2
- package/node/CircularProgress/circularProgressClasses.js +1 -2
- package/node/Collapse/Collapse.js +1 -2
- package/node/Collapse/collapseClasses.js +1 -2
- package/node/Container/Container.js +1 -2
- package/node/Container/containerClasses.js +1 -2
- package/node/CssBaseline/CssBaseline.js +1 -2
- package/node/Dialog/Dialog.js +1 -2
- package/node/Dialog/DialogContext.js +1 -2
- package/node/Dialog/dialogClasses.js +1 -2
- package/node/DialogActions/DialogActions.js +2 -3
- package/node/DialogActions/dialogActionsClasses.js +1 -2
- package/node/DialogContent/DialogContent.js +1 -2
- package/node/DialogContent/dialogContentClasses.js +1 -2
- package/node/DialogContentText/DialogContentText.js +1 -2
- package/node/DialogContentText/dialogContentTextClasses.js +1 -2
- package/node/DialogTitle/DialogTitle.js +1 -2
- package/node/DialogTitle/dialogTitleClasses.js +1 -2
- package/node/Divider/Divider.js +1 -2
- package/node/Divider/dividerClasses.js +1 -2
- package/node/Drawer/Drawer.js +1 -2
- package/node/Drawer/drawerClasses.js +1 -2
- package/node/Fab/Fab.js +1 -2
- package/node/Fab/fabClasses.js +1 -2
- package/node/Fade/Fade.js +1 -2
- package/node/FilledInput/FilledInput.js +1 -2
- package/node/FilledInput/filledInputClasses.js +1 -2
- package/node/FormControl/FormControl.js +1 -2
- package/node/FormControl/FormControlContext.js +1 -2
- package/node/FormControl/formControlClasses.js +1 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -4
- package/node/FormControlLabel/formControlLabelClasses.js +1 -2
- package/node/FormGroup/FormGroup.js +1 -2
- package/node/FormGroup/formGroupClasses.js +1 -2
- package/node/FormHelperText/FormHelperText.js +1 -2
- package/node/FormHelperText/formHelperTextClasses.js +1 -2
- package/node/FormLabel/FormLabel.js +2 -4
- package/node/FormLabel/formLabelClasses.js +1 -2
- package/node/GlobalStyles/GlobalStyles.js +1 -2
- package/node/Grid/Grid.js +1 -2
- package/node/Grid/GridContext.js +1 -2
- package/node/Grid/gridClasses.js +1 -2
- package/node/Grow/Grow.js +1 -2
- package/node/Hidden/Hidden.js +1 -2
- package/node/Hidden/HiddenCss.js +1 -2
- package/node/Hidden/HiddenJs.js +1 -2
- package/node/Hidden/hiddenCssClasses.js +1 -2
- package/node/Hidden/withWidth.js +1 -2
- package/node/Icon/Icon.js +1 -2
- package/node/Icon/iconClasses.js +1 -2
- package/node/IconButton/IconButton.js +1 -2
- package/node/IconButton/iconButtonClasses.js +1 -2
- package/node/ImageList/ImageList.js +1 -2
- package/node/ImageList/ImageListContext.js +1 -2
- package/node/ImageList/imageListClasses.js +1 -2
- package/node/ImageListItem/ImageListItem.js +1 -2
- package/node/ImageListItem/imageListItemClasses.js +1 -2
- package/node/ImageListItemBar/ImageListItemBar.js +1 -2
- package/node/ImageListItemBar/imageListItemBarClasses.js +1 -2
- package/node/Input/Input.js +1 -2
- package/node/Input/inputClasses.js +1 -2
- package/node/InputAdornment/InputAdornment.js +1 -2
- package/node/InputAdornment/inputAdornmentClasses.js +1 -2
- package/node/InputBase/InputBase.js +3 -6
- package/node/InputBase/inputBaseClasses.js +1 -2
- package/node/InputLabel/InputLabel.js +1 -2
- package/node/InputLabel/inputLabelClasses.js +1 -2
- package/node/LinearProgress/LinearProgress.js +1 -2
- package/node/LinearProgress/linearProgressClasses.js +1 -2
- package/node/Link/Link.js +1 -2
- package/node/Link/getTextDecoration.js +2 -4
- package/node/Link/linkClasses.js +1 -2
- package/node/List/List.js +1 -2
- package/node/List/ListContext.js +1 -2
- package/node/List/listClasses.js +1 -2
- package/node/ListItem/ListItem.js +2 -4
- package/node/ListItem/listItemClasses.js +1 -2
- package/node/ListItemAvatar/ListItemAvatar.js +1 -2
- package/node/ListItemAvatar/listItemAvatarClasses.js +1 -2
- package/node/ListItemButton/ListItemButton.js +1 -2
- package/node/ListItemButton/listItemButtonClasses.js +1 -2
- package/node/ListItemIcon/ListItemIcon.js +1 -2
- package/node/ListItemIcon/listItemIconClasses.js +1 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -2
- package/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -2
- package/node/ListItemText/ListItemText.js +1 -2
- package/node/ListItemText/listItemTextClasses.js +1 -2
- package/node/ListSubheader/ListSubheader.js +1 -2
- package/node/ListSubheader/listSubheaderClasses.js +1 -2
- package/node/Menu/Menu.js +2 -4
- package/node/Menu/menuClasses.js +1 -2
- package/node/MenuItem/MenuItem.js +1 -2
- package/node/MenuItem/menuItemClasses.js +1 -2
- package/node/MenuList/MenuList.js +1 -2
- package/node/MobileStepper/MobileStepper.js +1 -2
- package/node/MobileStepper/mobileStepperClasses.js +1 -2
- package/node/Modal/Modal.js +1 -2
- package/node/Modal/modalClasses.js +1 -2
- package/node/NativeSelect/NativeSelect.js +1 -2
- package/node/NativeSelect/NativeSelectInput.js +1 -2
- package/node/NativeSelect/nativeSelectClasses.js +1 -2
- package/node/OutlinedInput/OutlinedInput.js +1 -2
- package/node/OutlinedInput/outlinedInputClasses.js +1 -2
- package/node/Pagination/Pagination.js +1 -2
- package/node/Pagination/paginationClasses.js +1 -2
- package/node/PaginationItem/PaginationItem.js +1 -2
- package/node/PaginationItem/paginationItemClasses.js +1 -2
- package/node/Paper/Paper.js +1 -2
- package/node/Paper/paperClasses.js +1 -2
- package/node/Popover/Popover.js +3 -6
- package/node/Popover/popoverClasses.js +1 -2
- package/node/Popper/Popper.js +1 -2
- package/node/Radio/Radio.js +1 -2
- package/node/Radio/RadioButtonIcon.js +1 -2
- package/node/Radio/radioClasses.js +1 -2
- package/node/RadioGroup/RadioGroup.js +1 -2
- package/node/RadioGroup/RadioGroupContext.js +1 -2
- package/node/Rating/Rating.js +1 -2
- package/node/Rating/ratingClasses.js +1 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
- package/node/ScopedCssBaseline/scopedCssBaselineClasses.js +1 -2
- package/node/Select/Select.js +1 -2
- package/node/Select/SelectInput.js +9 -6
- package/node/Select/selectClasses.js +1 -2
- package/node/Skeleton/Skeleton.js +1 -2
- package/node/Skeleton/skeletonClasses.js +1 -2
- package/node/Slide/Slide.js +1 -2
- package/node/Slider/Slider.js +8 -16
- package/node/Slider/sliderClasses.js +1 -2
- package/node/Snackbar/Snackbar.js +1 -2
- package/node/Snackbar/snackbarClasses.js +1 -2
- package/node/SnackbarContent/SnackbarContent.js +1 -2
- package/node/SnackbarContent/snackbarContentClasses.js +1 -2
- package/node/SpeedDial/SpeedDial.js +1 -2
- package/node/SpeedDial/speedDialClasses.js +1 -2
- package/node/SpeedDialAction/SpeedDialAction.js +1 -2
- package/node/SpeedDialAction/speedDialActionClasses.js +1 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/node/SpeedDialIcon/speedDialIconClasses.js +1 -2
- package/node/Stack/Stack.js +1 -2
- package/node/Stack/stackClasses.js +1 -2
- package/node/Step/Step.js +1 -2
- package/node/Step/StepContext.js +1 -2
- package/node/Step/stepClasses.js +1 -2
- package/node/StepButton/StepButton.js +1 -2
- package/node/StepButton/stepButtonClasses.js +1 -2
- package/node/StepConnector/StepConnector.js +1 -2
- package/node/StepConnector/stepConnectorClasses.js +1 -2
- package/node/StepContent/StepContent.js +1 -2
- package/node/StepContent/stepContentClasses.js +1 -2
- package/node/StepIcon/StepIcon.js +1 -2
- package/node/StepIcon/stepIconClasses.js +1 -2
- package/node/StepLabel/StepLabel.js +1 -2
- package/node/StepLabel/stepLabelClasses.js +1 -2
- package/node/Stepper/Stepper.js +1 -2
- package/node/Stepper/StepperContext.js +1 -2
- package/node/Stepper/stepperClasses.js +1 -2
- package/node/SvgIcon/SvgIcon.js +1 -2
- package/node/SvgIcon/svgIconClasses.js +1 -2
- package/node/SwipeableDrawer/SwipeArea.js +1 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -2
- package/node/Switch/Switch.js +1 -2
- package/node/Switch/switchClasses.js +1 -2
- package/node/Tab/Tab.js +1 -2
- package/node/Tab/tabClasses.js +1 -2
- package/node/TabScrollButton/TabScrollButton.js +1 -2
- package/node/TabScrollButton/tabScrollButtonClasses.js +1 -2
- package/node/Table/Table.js +1 -2
- package/node/Table/TableContext.js +1 -2
- package/node/Table/Tablelvl2Context.js +1 -2
- package/node/Table/tableClasses.js +1 -2
- package/node/TableBody/TableBody.js +1 -2
- package/node/TableBody/tableBodyClasses.js +1 -2
- package/node/TableCell/TableCell.js +1 -2
- package/node/TableCell/tableCellClasses.js +1 -2
- package/node/TableContainer/TableContainer.js +1 -2
- package/node/TableContainer/tableContainerClasses.js +1 -2
- package/node/TableFooter/TableFooter.js +1 -2
- package/node/TableFooter/tableFooterClasses.js +1 -2
- package/node/TableHead/TableHead.js +1 -2
- package/node/TableHead/tableHeadClasses.js +1 -2
- package/node/TablePagination/TablePagination.js +4 -4
- package/node/TablePagination/TablePaginationActions.js +1 -2
- package/node/TablePagination/tablePaginationClasses.js +1 -2
- package/node/TableRow/TableRow.js +1 -2
- package/node/TableRow/tableRowClasses.js +1 -2
- package/node/TableSortLabel/TableSortLabel.js +1 -2
- package/node/TableSortLabel/tableSortLabelClasses.js +1 -2
- package/node/Tabs/Tabs.js +1 -2
- package/node/Tabs/tabsClasses.js +1 -2
- package/node/TextField/TextField.js +1 -2
- package/node/TextField/textFieldClasses.js +1 -2
- package/node/ToggleButton/ToggleButton.js +1 -2
- package/node/ToggleButton/toggleButtonClasses.js +1 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -2
- package/node/Toolbar/Toolbar.js +1 -2
- package/node/Toolbar/toolbarClasses.js +1 -2
- package/node/Tooltip/Tooltip.js +1 -2
- package/node/Tooltip/tooltipClasses.js +1 -2
- package/node/Typography/Typography.js +2 -4
- package/node/Typography/typographyClasses.js +1 -2
- package/node/Unstable_Grid2/Grid2.js +1 -2
- package/node/Unstable_Grid2/grid2Classes.js +1 -2
- package/node/Zoom/Zoom.js +1 -2
- package/node/colors/amber.js +1 -2
- package/node/colors/blue.js +1 -2
- package/node/colors/blueGrey.js +1 -2
- package/node/colors/brown.js +1 -2
- package/node/colors/common.js +1 -2
- package/node/colors/cyan.js +1 -2
- package/node/colors/deepOrange.js +1 -2
- package/node/colors/deepPurple.js +1 -2
- package/node/colors/green.js +1 -2
- package/node/colors/grey.js +1 -2
- package/node/colors/indigo.js +1 -2
- package/node/colors/lightBlue.js +1 -2
- package/node/colors/lightGreen.js +1 -2
- package/node/colors/lime.js +1 -2
- package/node/colors/orange.js +1 -2
- package/node/colors/pink.js +1 -2
- package/node/colors/purple.js +1 -2
- package/node/colors/red.js +1 -2
- package/node/colors/teal.js +1 -2
- package/node/colors/yellow.js +1 -2
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +1 -2
- package/node/internal/svg-icons/Add.js +2 -3
- package/node/internal/svg-icons/ArrowDownward.js +2 -3
- package/node/internal/svg-icons/ArrowDropDown.js +2 -3
- package/node/internal/svg-icons/Cancel.js +2 -3
- package/node/internal/svg-icons/CheckBox.js +2 -3
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +2 -3
- package/node/internal/svg-icons/CheckCircle.js +2 -3
- package/node/internal/svg-icons/Close.js +2 -3
- package/node/internal/svg-icons/ErrorOutline.js +2 -3
- package/node/internal/svg-icons/FirstPage.js +2 -3
- package/node/internal/svg-icons/IndeterminateCheckBox.js +2 -3
- package/node/internal/svg-icons/InfoOutlined.js +2 -3
- package/node/internal/svg-icons/KeyboardArrowLeft.js +2 -3
- package/node/internal/svg-icons/KeyboardArrowRight.js +2 -3
- package/node/internal/svg-icons/LastPage.js +2 -3
- package/node/internal/svg-icons/MoreHoriz.js +2 -3
- package/node/internal/svg-icons/NavigateBefore.js +2 -3
- package/node/internal/svg-icons/NavigateNext.js +2 -3
- package/node/internal/svg-icons/Person.js +2 -3
- package/node/internal/svg-icons/RadioButtonChecked.js +2 -3
- package/node/internal/svg-icons/RadioButtonUnchecked.js +2 -3
- package/node/internal/svg-icons/ReportProblemOutlined.js +2 -3
- package/node/internal/svg-icons/Star.js +2 -3
- package/node/internal/svg-icons/StarBorder.js +2 -3
- package/node/internal/svg-icons/SuccessOutlined.js +2 -3
- package/node/internal/svg-icons/Warning.js +2 -3
- package/node/internal/switchBaseClasses.js +1 -2
- package/node/locale/index.js +68 -119
- package/node/styles/createPalette.js +2 -4
- package/node/styles/createTheme.js +1 -2
- package/node/styles/createTransitions.js +2 -4
- package/node/styles/defaultTheme.js +1 -2
- package/node/styles/excludeVariablesFromRoot.js +1 -2
- package/node/styles/getOverlayAlpha.js +1 -2
- package/node/styles/identifier.js +1 -2
- package/node/styles/shadows.js +1 -2
- package/node/styles/styled.js +2 -4
- package/node/styles/zIndex.js +1 -2
- package/node/useTouchRipple/useTouchRipple.js +1 -2
- package/node/utils/capitalize.js +1 -2
- package/node/utils/createChainedFunction.js +1 -2
- package/node/utils/debounce.js +1 -2
- package/node/utils/deprecatedPropType.js +1 -2
- package/node/utils/getScrollbarSize.js +1 -2
- package/node/utils/index.js +2 -3
- package/node/utils/isMuiElement.js +1 -2
- package/node/utils/ownerDocument.js +1 -2
- package/node/utils/ownerWindow.js +1 -2
- package/node/utils/requirePropFactory.js +1 -2
- package/node/utils/setRef.js +1 -2
- package/node/utils/shouldSpreadAdditionalProps.js +1 -2
- package/node/utils/unsupportedProp.js +1 -2
- package/node/utils/useControlled.js +1 -2
- package/node/utils/useEnhancedEffect.js +1 -2
- package/node/utils/useEventCallback.js +1 -2
- package/node/utils/useForkRef.js +1 -2
- package/node/utils/useId.js +1 -2
- package/node/utils/useIsFocusVisible.js +1 -2
- package/package.json +7 -7
- package/umd/material-ui.development.js +186 -108
- package/umd/material-ui.production.min.js +21 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.14.
|
|
2
|
+
* @mui/material v5.14.12
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1983,7 +1983,11 @@
|
|
|
1983
1983
|
}
|
|
1984
1984
|
|
|
1985
1985
|
function isMuiElement(element, muiNames) {
|
|
1986
|
-
|
|
1986
|
+
var _muiName, _element$type;
|
|
1987
|
+
return /*#__PURE__*/React__namespace.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
1988
|
+
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
1989
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
1990
|
+
(_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;
|
|
1987
1991
|
}
|
|
1988
1992
|
|
|
1989
1993
|
function ownerDocument(node) {
|
|
@@ -2037,6 +2041,13 @@
|
|
|
2037
2041
|
}
|
|
2038
2042
|
}
|
|
2039
2043
|
|
|
2044
|
+
/**
|
|
2045
|
+
* A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.
|
|
2046
|
+
* This is useful for effects that are only needed for client-side rendering but not for SSR.
|
|
2047
|
+
*
|
|
2048
|
+
* Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
|
|
2049
|
+
* and confirm it doesn't apply to your use-case.
|
|
2050
|
+
*/
|
|
2040
2051
|
const useEnhancedEffect = typeof window !== 'undefined' ? React__namespace.useLayoutEffect : React__namespace.useEffect;
|
|
2041
2052
|
var useEnhancedEffect$1 = useEnhancedEffect;
|
|
2042
2053
|
|
|
@@ -2393,6 +2404,16 @@
|
|
|
2393
2404
|
};
|
|
2394
2405
|
var usePreviousProps$1 = usePreviousProps;
|
|
2395
2406
|
|
|
2407
|
+
/**
|
|
2408
|
+
* Gets only the valid children of a component,
|
|
2409
|
+
* and ignores any nullish or falsy child.
|
|
2410
|
+
*
|
|
2411
|
+
* @param children the children
|
|
2412
|
+
*/
|
|
2413
|
+
function getValidReactChildren(children) {
|
|
2414
|
+
return React__namespace.Children.toArray(children).filter(child => /*#__PURE__*/React__namespace.isValidElement(child));
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2396
2417
|
const visuallyHidden = {
|
|
2397
2418
|
border: 0,
|
|
2398
2419
|
clip: 'rect(0 0 0 0)',
|
|
@@ -7604,40 +7625,48 @@
|
|
|
7604
7625
|
}
|
|
7605
7626
|
return null;
|
|
7606
7627
|
};
|
|
7628
|
+
const transformVariants = variants => {
|
|
7629
|
+
const variantsStyles = {};
|
|
7630
|
+
if (variants) {
|
|
7631
|
+
variants.forEach(definition => {
|
|
7632
|
+
const key = propsToClassKey(definition.props);
|
|
7633
|
+
variantsStyles[key] = definition.style;
|
|
7634
|
+
});
|
|
7635
|
+
}
|
|
7636
|
+
return variantsStyles;
|
|
7637
|
+
};
|
|
7607
7638
|
const getVariantStyles = (name, theme) => {
|
|
7608
7639
|
let variants = [];
|
|
7609
7640
|
if (theme && theme.components && theme.components[name] && theme.components[name].variants) {
|
|
7610
7641
|
variants = theme.components[name].variants;
|
|
7611
7642
|
}
|
|
7612
|
-
|
|
7613
|
-
variants.forEach(definition => {
|
|
7614
|
-
const key = propsToClassKey(definition.props);
|
|
7615
|
-
variantsStyles[key] = definition.style;
|
|
7616
|
-
});
|
|
7617
|
-
return variantsStyles;
|
|
7643
|
+
return transformVariants(variants);
|
|
7618
7644
|
};
|
|
7619
|
-
const variantsResolver = (props, styles,
|
|
7620
|
-
var _theme$components;
|
|
7645
|
+
const variantsResolver = (props, styles, variants) => {
|
|
7621
7646
|
const {
|
|
7622
7647
|
ownerState = {}
|
|
7623
7648
|
} = props;
|
|
7624
7649
|
const variantsStyles = [];
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
themeVariants.forEach(themeVariant => {
|
|
7650
|
+
if (variants) {
|
|
7651
|
+
variants.forEach(variant => {
|
|
7628
7652
|
let isMatch = true;
|
|
7629
|
-
Object.keys(
|
|
7630
|
-
if (ownerState[key] !==
|
|
7653
|
+
Object.keys(variant.props).forEach(key => {
|
|
7654
|
+
if (ownerState[key] !== variant.props[key] && props[key] !== variant.props[key]) {
|
|
7631
7655
|
isMatch = false;
|
|
7632
7656
|
}
|
|
7633
7657
|
});
|
|
7634
7658
|
if (isMatch) {
|
|
7635
|
-
variantsStyles.push(styles[propsToClassKey(
|
|
7659
|
+
variantsStyles.push(styles[propsToClassKey(variant.props)]);
|
|
7636
7660
|
}
|
|
7637
7661
|
});
|
|
7638
7662
|
}
|
|
7639
7663
|
return variantsStyles;
|
|
7640
7664
|
};
|
|
7665
|
+
const themeVariantsResolver = (props, styles, theme, name) => {
|
|
7666
|
+
var _theme$components;
|
|
7667
|
+
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[name]) == null ? void 0 : _theme$components.variants;
|
|
7668
|
+
return variantsResolver(props, styles, themeVariants);
|
|
7669
|
+
};
|
|
7641
7670
|
|
|
7642
7671
|
// Update /system/styled/#api in case if this changes
|
|
7643
7672
|
function shouldForwardProp(prop) {
|
|
@@ -7663,6 +7692,29 @@
|
|
|
7663
7692
|
}
|
|
7664
7693
|
return (props, styles) => styles[slot];
|
|
7665
7694
|
}
|
|
7695
|
+
const muiStyledFunctionResolver = ({
|
|
7696
|
+
styledArg,
|
|
7697
|
+
props,
|
|
7698
|
+
defaultTheme,
|
|
7699
|
+
themeId
|
|
7700
|
+
}) => {
|
|
7701
|
+
const resolvedStyles = styledArg(_extends({}, props, {
|
|
7702
|
+
theme: resolveTheme(_extends({}, props, {
|
|
7703
|
+
defaultTheme,
|
|
7704
|
+
themeId
|
|
7705
|
+
}))
|
|
7706
|
+
}));
|
|
7707
|
+
let optionalVariants;
|
|
7708
|
+
if (resolvedStyles && resolvedStyles.variants) {
|
|
7709
|
+
optionalVariants = resolvedStyles.variants;
|
|
7710
|
+
delete resolvedStyles.variants;
|
|
7711
|
+
}
|
|
7712
|
+
if (optionalVariants) {
|
|
7713
|
+
const variantsStyles = variantsResolver(props, transformVariants(optionalVariants), optionalVariants);
|
|
7714
|
+
return [resolvedStyles, ...variantsStyles];
|
|
7715
|
+
}
|
|
7716
|
+
return resolvedStyles;
|
|
7717
|
+
};
|
|
7666
7718
|
function createStyled(input = {}) {
|
|
7667
7719
|
const {
|
|
7668
7720
|
themeId,
|
|
@@ -7729,16 +7781,61 @@
|
|
|
7729
7781
|
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7730
7782
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7731
7783
|
// which are basically components used as a selectors.
|
|
7732
|
-
|
|
7733
|
-
return
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
})
|
|
7739
|
-
}
|
|
7784
|
+
if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg) {
|
|
7785
|
+
return props => muiStyledFunctionResolver({
|
|
7786
|
+
styledArg: stylesArg,
|
|
7787
|
+
props,
|
|
7788
|
+
defaultTheme,
|
|
7789
|
+
themeId
|
|
7790
|
+
});
|
|
7791
|
+
}
|
|
7792
|
+
if (isPlainObject(stylesArg)) {
|
|
7793
|
+
let transformedStylesArg = stylesArg;
|
|
7794
|
+
let styledArgVariants;
|
|
7795
|
+
if (stylesArg && stylesArg.variants) {
|
|
7796
|
+
styledArgVariants = stylesArg.variants;
|
|
7797
|
+
delete transformedStylesArg.variants;
|
|
7798
|
+
transformedStylesArg = props => {
|
|
7799
|
+
let result = stylesArg;
|
|
7800
|
+
const variantStyles = variantsResolver(props, transformVariants(styledArgVariants), styledArgVariants);
|
|
7801
|
+
variantStyles.forEach(variantStyle => {
|
|
7802
|
+
result = deepmerge(result, variantStyle);
|
|
7803
|
+
});
|
|
7804
|
+
return result;
|
|
7805
|
+
};
|
|
7806
|
+
}
|
|
7807
|
+
return transformedStylesArg;
|
|
7808
|
+
}
|
|
7809
|
+
return stylesArg;
|
|
7740
7810
|
}) : [];
|
|
7741
7811
|
let transformedStyleArg = styleArg;
|
|
7812
|
+
if (isPlainObject(styleArg)) {
|
|
7813
|
+
let styledArgVariants;
|
|
7814
|
+
if (styleArg && styleArg.variants) {
|
|
7815
|
+
styledArgVariants = styleArg.variants;
|
|
7816
|
+
delete transformedStyleArg.variants;
|
|
7817
|
+
transformedStyleArg = props => {
|
|
7818
|
+
let result = styleArg;
|
|
7819
|
+
const variantStyles = variantsResolver(props, transformVariants(styledArgVariants), styledArgVariants);
|
|
7820
|
+
variantStyles.forEach(variantStyle => {
|
|
7821
|
+
result = deepmerge(result, variantStyle);
|
|
7822
|
+
});
|
|
7823
|
+
return result;
|
|
7824
|
+
};
|
|
7825
|
+
}
|
|
7826
|
+
} else if (typeof styleArg === 'function' &&
|
|
7827
|
+
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7828
|
+
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7829
|
+
// which are basically components used as a selectors.
|
|
7830
|
+
styleArg.__emotion_real !== styleArg) {
|
|
7831
|
+
// If the type is function, we need to define the default theme.
|
|
7832
|
+
transformedStyleArg = props => muiStyledFunctionResolver({
|
|
7833
|
+
styledArg: styleArg,
|
|
7834
|
+
props,
|
|
7835
|
+
defaultTheme,
|
|
7836
|
+
themeId
|
|
7837
|
+
});
|
|
7838
|
+
}
|
|
7742
7839
|
if (componentName && overridesResolver) {
|
|
7743
7840
|
expressionsWithDefaultTheme.push(props => {
|
|
7744
7841
|
const theme = resolveTheme(_extends({}, props, {
|
|
@@ -7764,7 +7861,7 @@
|
|
|
7764
7861
|
defaultTheme,
|
|
7765
7862
|
themeId
|
|
7766
7863
|
}));
|
|
7767
|
-
return
|
|
7864
|
+
return themeVariantsResolver(props, getVariantStyles(componentName, theme), theme, componentName);
|
|
7768
7865
|
});
|
|
7769
7866
|
}
|
|
7770
7867
|
if (!skipSx) {
|
|
@@ -7776,18 +7873,6 @@
|
|
|
7776
7873
|
// If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.
|
|
7777
7874
|
transformedStyleArg = [...styleArg, ...placeholders];
|
|
7778
7875
|
transformedStyleArg.raw = [...styleArg.raw, ...placeholders];
|
|
7779
|
-
} else if (typeof styleArg === 'function' &&
|
|
7780
|
-
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7781
|
-
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7782
|
-
// which are basically components used as a selectors.
|
|
7783
|
-
styleArg.__emotion_real !== styleArg) {
|
|
7784
|
-
// If the type is function, we need to define the default theme.
|
|
7785
|
-
transformedStyleArg = props => styleArg(_extends({}, props, {
|
|
7786
|
-
theme: resolveTheme(_extends({}, props, {
|
|
7787
|
-
defaultTheme,
|
|
7788
|
-
themeId
|
|
7789
|
-
}))
|
|
7790
|
-
}));
|
|
7791
7876
|
}
|
|
7792
7877
|
const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);
|
|
7793
7878
|
{
|
|
@@ -8867,11 +8952,11 @@ try {
|
|
|
8867
8952
|
*/
|
|
8868
8953
|
disableStyleSheetGeneration: PropTypes.bool,
|
|
8869
8954
|
/**
|
|
8870
|
-
* Disable CSS transitions when switching between modes or color schemes
|
|
8955
|
+
* Disable CSS transitions when switching between modes or color schemes.
|
|
8871
8956
|
*/
|
|
8872
8957
|
disableTransitionOnChange: PropTypes.bool,
|
|
8873
8958
|
/**
|
|
8874
|
-
* The document to attach the attribute to
|
|
8959
|
+
* The document to attach the attribute to.
|
|
8875
8960
|
*/
|
|
8876
8961
|
documentNode: PropTypes.any,
|
|
8877
8962
|
/**
|
|
@@ -8879,7 +8964,7 @@ try {
|
|
|
8879
8964
|
*/
|
|
8880
8965
|
modeStorageKey: PropTypes.string,
|
|
8881
8966
|
/**
|
|
8882
|
-
* The window that attaches the 'storage' event listener
|
|
8967
|
+
* The window that attaches the 'storage' event listener.
|
|
8883
8968
|
* @default window
|
|
8884
8969
|
*/
|
|
8885
8970
|
storageWindow: PropTypes.any,
|
|
@@ -19260,12 +19345,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19260
19345
|
};
|
|
19261
19346
|
const trackOffset = valueToPercent(range ? values[0] : min, min, max);
|
|
19262
19347
|
const trackLeap = valueToPercent(values[values.length - 1], min, max) - trackOffset;
|
|
19263
|
-
const getRootProps = (
|
|
19348
|
+
const getRootProps = (externalProps = {}) => {
|
|
19349
|
+
const externalHandlers = extractEventHandlers(externalProps);
|
|
19264
19350
|
const ownEventHandlers = {
|
|
19265
|
-
onMouseDown: createHandleMouseDown(
|
|
19351
|
+
onMouseDown: createHandleMouseDown(externalHandlers || {})
|
|
19266
19352
|
};
|
|
19267
|
-
const mergedEventHandlers = _extends({},
|
|
19268
|
-
return _extends({
|
|
19353
|
+
const mergedEventHandlers = _extends({}, externalHandlers, ownEventHandlers);
|
|
19354
|
+
return _extends({}, externalProps, {
|
|
19269
19355
|
ref: handleRef
|
|
19270
19356
|
}, mergedEventHandlers);
|
|
19271
19357
|
};
|
|
@@ -19280,12 +19366,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19280
19366
|
(_otherHandlers$onMous3 = otherHandlers.onMouseLeave) == null || _otherHandlers$onMous3.call(otherHandlers, event);
|
|
19281
19367
|
setOpen(-1);
|
|
19282
19368
|
};
|
|
19283
|
-
const getThumbProps = (
|
|
19369
|
+
const getThumbProps = (externalProps = {}) => {
|
|
19370
|
+
const externalHandlers = extractEventHandlers(externalProps);
|
|
19284
19371
|
const ownEventHandlers = {
|
|
19285
|
-
onMouseOver: createHandleMouseOver(
|
|
19286
|
-
onMouseLeave: createHandleMouseLeave(
|
|
19372
|
+
onMouseOver: createHandleMouseOver(externalHandlers || {}),
|
|
19373
|
+
onMouseLeave: createHandleMouseLeave(externalHandlers || {})
|
|
19287
19374
|
};
|
|
19288
|
-
return _extends({},
|
|
19375
|
+
return _extends({}, externalProps, externalHandlers, ownEventHandlers);
|
|
19289
19376
|
};
|
|
19290
19377
|
const getThumbStyle = index => {
|
|
19291
19378
|
return {
|
|
@@ -19293,14 +19380,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19293
19380
|
pointerEvents: active !== -1 && active !== index ? 'none' : undefined
|
|
19294
19381
|
};
|
|
19295
19382
|
};
|
|
19296
|
-
const getHiddenInputProps = (
|
|
19383
|
+
const getHiddenInputProps = (externalProps = {}) => {
|
|
19297
19384
|
var _parameters$step;
|
|
19385
|
+
const externalHandlers = extractEventHandlers(externalProps);
|
|
19298
19386
|
const ownEventHandlers = {
|
|
19299
|
-
onChange: createHandleHiddenInputChange(
|
|
19300
|
-
onFocus: createHandleHiddenInputFocus(
|
|
19301
|
-
onBlur: createHandleHiddenInputBlur(
|
|
19387
|
+
onChange: createHandleHiddenInputChange(externalHandlers || {}),
|
|
19388
|
+
onFocus: createHandleHiddenInputFocus(externalHandlers || {}),
|
|
19389
|
+
onBlur: createHandleHiddenInputBlur(externalHandlers || {})
|
|
19302
19390
|
};
|
|
19303
|
-
const mergedEventHandlers = _extends({},
|
|
19391
|
+
const mergedEventHandlers = _extends({}, externalHandlers, ownEventHandlers);
|
|
19304
19392
|
return _extends({
|
|
19305
19393
|
tabIndex,
|
|
19306
19394
|
'aria-labelledby': ariaLabelledby,
|
|
@@ -19313,7 +19401,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19313
19401
|
max: parameters.max,
|
|
19314
19402
|
step: parameters.step === null && parameters.marks ? 'any' : (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
|
|
19315
19403
|
disabled
|
|
19316
|
-
}, mergedEventHandlers, {
|
|
19404
|
+
}, externalProps, mergedEventHandlers, {
|
|
19317
19405
|
style: _extends({}, visuallyHidden$1, {
|
|
19318
19406
|
direction: isRtl ? 'rtl' : 'ltr',
|
|
19319
19407
|
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
@@ -19600,64 +19688,51 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19600
19688
|
if (isEmpty$1(newState)) {
|
|
19601
19689
|
return;
|
|
19602
19690
|
}
|
|
19603
|
-
setState(prevState =>
|
|
19604
|
-
return updateState(prevState, newState);
|
|
19605
|
-
});
|
|
19691
|
+
setState(prevState => updateState(prevState, newState));
|
|
19606
19692
|
}, [getUpdatedState]);
|
|
19607
|
-
|
|
19608
|
-
const
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
|
|
19693
|
+
useEnhancedEffect$1(() => {
|
|
19694
|
+
const syncHeightWithFlushSync = () => {
|
|
19695
|
+
const newState = getUpdatedState();
|
|
19696
|
+
if (isEmpty$1(newState)) {
|
|
19697
|
+
return;
|
|
19698
|
+
}
|
|
19612
19699
|
|
|
19613
|
-
|
|
19614
|
-
|
|
19615
|
-
|
|
19616
|
-
|
|
19617
|
-
|
|
19618
|
-
|
|
19700
|
+
// In React 18, state updates in a ResizeObserver's callback are happening after
|
|
19701
|
+
// the paint, this leads to an infinite rendering.
|
|
19702
|
+
//
|
|
19703
|
+
// Using flushSync ensures that the states is updated before the next pain.
|
|
19704
|
+
// Related issue - https://github.com/facebook/react/issues/24331
|
|
19705
|
+
ReactDOM__namespace.flushSync(() => {
|
|
19706
|
+
setState(prevState => updateState(prevState, newState));
|
|
19619
19707
|
});
|
|
19620
|
-
}
|
|
19621
|
-
};
|
|
19622
|
-
React__namespace.useEffect(() => {
|
|
19708
|
+
};
|
|
19623
19709
|
const handleResize = () => {
|
|
19624
19710
|
renders.current = 0;
|
|
19625
|
-
|
|
19626
|
-
// If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
19627
|
-
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
19628
|
-
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
19629
|
-
// See https://github.com/mui/material-ui/issues/32640
|
|
19630
|
-
if (inputRef.current) {
|
|
19631
|
-
syncHeightWithFlushSync();
|
|
19632
|
-
}
|
|
19711
|
+
syncHeightWithFlushSync();
|
|
19633
19712
|
};
|
|
19634
|
-
|
|
19635
|
-
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
|
|
19640
|
-
// See https://github.com/mui/material-ui/issues/32640
|
|
19641
|
-
if (inputRef.current) {
|
|
19642
|
-
syncHeightWithFlushSync();
|
|
19643
|
-
}
|
|
19644
|
-
});
|
|
19645
|
-
let resizeObserver;
|
|
19713
|
+
// Workaround a "ResizeObserver loop completed with undelivered notifications" error
|
|
19714
|
+
// in test.
|
|
19715
|
+
// Note that we might need to use this logic in production per https://github.com/WICG/resize-observer/issues/38
|
|
19716
|
+
// Also see https://github.com/mui/mui-x/issues/8733
|
|
19717
|
+
let rAF;
|
|
19718
|
+
const debounceHandleResize = debounce$1(handleResize);
|
|
19646
19719
|
const input = inputRef.current;
|
|
19647
19720
|
const containerWindow = ownerWindow(input);
|
|
19648
|
-
containerWindow.addEventListener('resize',
|
|
19721
|
+
containerWindow.addEventListener('resize', debounceHandleResize);
|
|
19722
|
+
let resizeObserver;
|
|
19649
19723
|
if (typeof ResizeObserver !== 'undefined') {
|
|
19650
19724
|
resizeObserver = new ResizeObserver(handleResize);
|
|
19651
19725
|
resizeObserver.observe(input);
|
|
19652
19726
|
}
|
|
19653
19727
|
return () => {
|
|
19654
|
-
|
|
19655
|
-
|
|
19728
|
+
debounceHandleResize.clear();
|
|
19729
|
+
cancelAnimationFrame(rAF);
|
|
19730
|
+
containerWindow.removeEventListener('resize', debounceHandleResize);
|
|
19656
19731
|
if (resizeObserver) {
|
|
19657
19732
|
resizeObserver.disconnect();
|
|
19658
19733
|
}
|
|
19659
19734
|
};
|
|
19660
|
-
});
|
|
19735
|
+
}, [getUpdatedState]);
|
|
19661
19736
|
useEnhancedEffect$1(() => {
|
|
19662
19737
|
syncHeight();
|
|
19663
19738
|
});
|
|
@@ -25728,9 +25803,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25728
25803
|
size,
|
|
25729
25804
|
variant
|
|
25730
25805
|
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
25731
|
-
const
|
|
25806
|
+
const validChildren = getValidReactChildren(children);
|
|
25807
|
+
const childrenCount = validChildren.length;
|
|
25808
|
+
const getButtonPositionClassName = index => {
|
|
25732
25809
|
const isFirstButton = index === 0;
|
|
25733
|
-
const isLastButton = index ===
|
|
25810
|
+
const isLastButton = index === childrenCount - 1;
|
|
25734
25811
|
if (isFirstButton && isLastButton) {
|
|
25735
25812
|
return '';
|
|
25736
25813
|
}
|
|
@@ -25751,14 +25828,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25751
25828
|
}, other, {
|
|
25752
25829
|
children: /*#__PURE__*/jsxRuntime_1(ButtonGroupContext$1.Provider, {
|
|
25753
25830
|
value: context,
|
|
25754
|
-
children:
|
|
25755
|
-
if (! /*#__PURE__*/React__namespace.isValidElement(child)) {
|
|
25756
|
-
return child;
|
|
25757
|
-
}
|
|
25831
|
+
children: validChildren.map((child, index) => {
|
|
25758
25832
|
return /*#__PURE__*/jsxRuntime_1(ButtonGroupButtonContext$1.Provider, {
|
|
25759
|
-
value: getButtonPositionClassName(index
|
|
25833
|
+
value: getButtonPositionClassName(index),
|
|
25760
25834
|
children: child
|
|
25761
|
-
});
|
|
25835
|
+
}, index);
|
|
25762
25836
|
})
|
|
25763
25837
|
})
|
|
25764
25838
|
}));
|
|
@@ -28218,7 +28292,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28218
28292
|
justifyContent: 'flex-end',
|
|
28219
28293
|
flex: '0 0 auto'
|
|
28220
28294
|
}, !ownerState.disableSpacing && {
|
|
28221
|
-
'& > :not(:
|
|
28295
|
+
'& > :not(style) ~ :not(style)': {
|
|
28222
28296
|
marginLeft: 8
|
|
28223
28297
|
}
|
|
28224
28298
|
}));
|
|
@@ -40180,11 +40254,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40180
40254
|
});
|
|
40181
40255
|
const classes = useUtilityClasses$x(ownerState);
|
|
40182
40256
|
const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
40257
|
+
const listboxId = useId();
|
|
40183
40258
|
return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
40184
40259
|
children: [/*#__PURE__*/jsxRuntime_1(SelectSelect, _extends({
|
|
40185
40260
|
ref: handleDisplayRef,
|
|
40186
40261
|
tabIndex: tabIndex,
|
|
40187
|
-
role: "
|
|
40262
|
+
role: "combobox",
|
|
40263
|
+
"aria-controls": listboxId,
|
|
40188
40264
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
40189
40265
|
"aria-expanded": open ? 'true' : 'false',
|
|
40190
40266
|
"aria-haspopup": "listbox",
|
|
@@ -40239,15 +40315,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40239
40315
|
MenuListProps: _extends({
|
|
40240
40316
|
'aria-labelledby': labelId,
|
|
40241
40317
|
role: 'listbox',
|
|
40242
|
-
|
|
40318
|
+
'aria-multiselectable': multiple ? 'true' : undefined,
|
|
40319
|
+
disableListWrap: true,
|
|
40320
|
+
id: listboxId
|
|
40243
40321
|
}, MenuProps.MenuListProps),
|
|
40244
|
-
slotProps: {
|
|
40322
|
+
slotProps: _extends({}, MenuProps.slotProps, {
|
|
40245
40323
|
paper: _extends({}, paperProps, {
|
|
40246
40324
|
style: _extends({
|
|
40247
40325
|
minWidth: menuMinWidth
|
|
40248
40326
|
}, paperProps != null ? paperProps.style : null)
|
|
40249
40327
|
})
|
|
40250
|
-
},
|
|
40328
|
+
}),
|
|
40251
40329
|
children: items
|
|
40252
40330
|
}))]
|
|
40253
40331
|
});
|