@mui/material 5.14.13 → 5.14.15
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/AppBar/AppBar.d.ts +4 -1
- package/AppBar/AppBar.js +1 -1
- package/AppBar/appBarClasses.d.ts +8 -0
- package/AppBar/appBarClasses.js +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +6 -0
- package/AvatarGroup/AvatarGroup.js +12 -3
- package/CHANGELOG.md +146 -0
- package/Checkbox/Checkbox.js +1 -1
- package/InputLabel/InputLabel.js +4 -3
- package/Pagination/Pagination.d.ts +3 -6
- package/Pagination/Pagination.js +1 -1
- package/Radio/Radio.js +1 -1
- package/Tabs/Tabs.js +30 -5
- package/ToggleButton/toggleButtonClasses.d.ts +2 -0
- package/ToggleButton/toggleButtonClasses.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -0
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/index.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/AppBar/appBarClasses.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +12 -3
- package/legacy/Checkbox/Checkbox.js +1 -1
- package/legacy/InputLabel/InputLabel.js +4 -3
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Tabs/Tabs.js +30 -5
- package/legacy/ToggleButton/toggleButtonClasses.js +1 -1
- package/legacy/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +244 -166
- package/locale/index.d.ts +1 -0
- package/locale/index.js +120 -46
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/AppBar/appBarClasses.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +12 -3
- package/modern/Checkbox/Checkbox.js +1 -1
- package/modern/InputLabel/InputLabel.js +4 -3
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/Radio/Radio.js +1 -1
- package/modern/Tabs/Tabs.js +27 -5
- package/modern/ToggleButton/toggleButtonClasses.js +1 -1
- package/modern/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +120 -46
- package/node/Accordion/Accordion.js +2 -2
- package/node/Accordion/AccordionContext.js +2 -2
- package/node/Accordion/index.js +2 -2
- package/node/AccordionActions/AccordionActions.js +2 -2
- package/node/AccordionActions/index.js +2 -2
- package/node/AccordionDetails/AccordionDetails.js +2 -2
- package/node/AccordionDetails/index.js +2 -2
- package/node/AccordionSummary/AccordionSummary.js +2 -2
- package/node/AccordionSummary/index.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/Alert/index.js +2 -2
- package/node/AlertTitle/AlertTitle.js +2 -2
- package/node/AlertTitle/index.js +2 -2
- package/node/AppBar/AppBar.js +3 -3
- package/node/AppBar/appBarClasses.js +1 -1
- package/node/AppBar/index.js +2 -2
- package/node/Autocomplete/Autocomplete.js +2 -2
- package/node/Autocomplete/index.js +2 -2
- package/node/Avatar/Avatar.js +2 -2
- package/node/Avatar/index.js +2 -2
- package/node/AvatarGroup/AvatarGroup.js +13 -5
- package/node/AvatarGroup/index.js +2 -2
- package/node/Backdrop/Backdrop.js +2 -2
- package/node/Backdrop/index.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/Badge/index.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +2 -2
- package/node/BottomNavigation/index.js +2 -2
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/BottomNavigationAction/index.js +2 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +2 -2
- package/node/Breadcrumbs/Breadcrumbs.js +2 -2
- package/node/Breadcrumbs/index.js +2 -2
- package/node/Button/Button.js +2 -2
- package/node/Button/index.js +2 -2
- package/node/ButtonBase/ButtonBase.js +2 -2
- package/node/ButtonBase/Ripple.js +2 -2
- package/node/ButtonBase/TouchRipple.js +2 -2
- package/node/ButtonBase/index.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +2 -2
- package/node/ButtonGroup/ButtonGroupButtonContext.js +2 -2
- package/node/ButtonGroup/ButtonGroupContext.js +2 -2
- package/node/ButtonGroup/index.js +2 -2
- package/node/Card/Card.js +2 -2
- package/node/Card/index.js +2 -2
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CardActionArea/index.js +2 -2
- package/node/CardActions/CardActions.js +2 -2
- package/node/CardActions/index.js +2 -2
- package/node/CardContent/CardContent.js +2 -2
- package/node/CardContent/index.js +2 -2
- package/node/CardHeader/CardHeader.js +2 -2
- package/node/CardHeader/index.js +2 -2
- package/node/CardMedia/CardMedia.js +2 -2
- package/node/CardMedia/index.js +2 -2
- package/node/Checkbox/Checkbox.js +3 -3
- package/node/Checkbox/index.js +2 -2
- package/node/Chip/Chip.js +2 -2
- package/node/Chip/index.js +2 -2
- package/node/CircularProgress/CircularProgress.js +2 -2
- package/node/CircularProgress/index.js +2 -2
- package/node/Collapse/Collapse.js +2 -2
- package/node/Collapse/index.js +2 -2
- package/node/Container/index.js +2 -2
- package/node/CssBaseline/CssBaseline.js +2 -2
- package/node/Dialog/Dialog.js +2 -2
- package/node/Dialog/DialogContext.js +2 -2
- package/node/Dialog/index.js +2 -2
- package/node/DialogActions/DialogActions.js +2 -2
- package/node/DialogActions/index.js +2 -2
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/DialogContent/index.js +2 -2
- package/node/DialogContentText/DialogContentText.js +2 -2
- package/node/DialogContentText/index.js +2 -2
- package/node/DialogTitle/DialogTitle.js +2 -2
- package/node/DialogTitle/index.js +2 -2
- package/node/Divider/Divider.js +2 -2
- package/node/Divider/index.js +2 -2
- package/node/Drawer/Drawer.js +2 -2
- package/node/Drawer/index.js +2 -2
- package/node/Fab/Fab.js +2 -2
- package/node/Fab/index.js +2 -2
- package/node/Fade/Fade.js +2 -2
- package/node/FilledInput/FilledInput.js +2 -2
- package/node/FilledInput/index.js +2 -2
- package/node/FormControl/FormControl.js +2 -2
- package/node/FormControl/FormControlContext.js +2 -2
- package/node/FormControl/index.js +2 -2
- package/node/FormControl/useFormControl.js +2 -2
- package/node/FormControlLabel/FormControlLabel.js +2 -2
- package/node/FormControlLabel/index.js +2 -2
- package/node/FormGroup/FormGroup.js +2 -2
- package/node/FormGroup/index.js +2 -2
- package/node/FormHelperText/FormHelperText.js +2 -2
- package/node/FormHelperText/index.js +2 -2
- package/node/FormLabel/FormLabel.js +2 -2
- package/node/FormLabel/index.js +2 -2
- package/node/GlobalStyles/GlobalStyles.js +2 -2
- package/node/Grid/Grid.js +2 -2
- package/node/Grid/GridContext.js +2 -2
- package/node/Grid/index.js +2 -2
- package/node/Grow/Grow.js +2 -2
- package/node/Hidden/Hidden.js +2 -2
- package/node/Hidden/HiddenCss.js +2 -2
- package/node/Hidden/HiddenJs.js +2 -2
- package/node/Hidden/withWidth.js +2 -2
- package/node/Icon/Icon.js +2 -2
- package/node/Icon/index.js +2 -2
- package/node/IconButton/IconButton.js +2 -2
- package/node/IconButton/index.js +2 -2
- package/node/ImageList/ImageList.js +2 -2
- package/node/ImageList/ImageListContext.js +2 -2
- package/node/ImageList/index.js +2 -2
- package/node/ImageListItem/ImageListItem.js +2 -2
- package/node/ImageListItem/index.js +2 -2
- package/node/ImageListItemBar/ImageListItemBar.js +2 -2
- package/node/ImageListItemBar/index.js +2 -2
- package/node/Input/Input.js +2 -2
- package/node/Input/index.js +2 -2
- package/node/InputAdornment/InputAdornment.js +2 -2
- package/node/InputAdornment/index.js +2 -2
- package/node/InputBase/InputBase.js +2 -2
- package/node/InputBase/index.js +2 -2
- package/node/InputLabel/InputLabel.js +6 -5
- package/node/InputLabel/index.js +2 -2
- package/node/LinearProgress/LinearProgress.js +2 -2
- package/node/LinearProgress/index.js +2 -2
- package/node/Link/Link.js +2 -2
- package/node/Link/index.js +2 -2
- package/node/List/List.js +2 -2
- package/node/List/ListContext.js +2 -2
- package/node/List/index.js +2 -2
- package/node/ListItem/ListItem.js +2 -2
- package/node/ListItem/index.js +2 -2
- package/node/ListItemAvatar/ListItemAvatar.js +2 -2
- package/node/ListItemAvatar/index.js +2 -2
- package/node/ListItemButton/ListItemButton.js +2 -2
- package/node/ListItemButton/index.js +2 -2
- package/node/ListItemIcon/ListItemIcon.js +2 -2
- package/node/ListItemIcon/index.js +2 -2
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/node/ListItemSecondaryAction/index.js +2 -2
- package/node/ListItemText/ListItemText.js +2 -2
- package/node/ListItemText/index.js +2 -2
- package/node/ListSubheader/ListSubheader.js +2 -2
- package/node/ListSubheader/index.js +2 -2
- package/node/Menu/Menu.js +2 -2
- package/node/Menu/index.js +2 -2
- package/node/MenuItem/MenuItem.js +2 -2
- package/node/MenuItem/index.js +2 -2
- package/node/MenuList/MenuList.js +2 -2
- package/node/MobileStepper/MobileStepper.js +2 -2
- package/node/MobileStepper/index.js +2 -2
- package/node/Modal/Modal.js +2 -2
- package/node/Modal/index.js +2 -2
- package/node/NativeSelect/NativeSelect.js +2 -2
- package/node/NativeSelect/NativeSelectInput.js +2 -2
- package/node/NativeSelect/index.js +2 -2
- package/node/OutlinedInput/NotchedOutline.js +2 -2
- package/node/OutlinedInput/OutlinedInput.js +2 -2
- package/node/OutlinedInput/index.js +2 -2
- package/node/Pagination/Pagination.js +3 -3
- package/node/Pagination/index.js +2 -2
- package/node/PaginationItem/PaginationItem.js +2 -2
- package/node/PaginationItem/index.js +2 -2
- package/node/Paper/Paper.js +2 -2
- package/node/Paper/index.js +2 -2
- package/node/Popover/Popover.js +2 -2
- package/node/Popover/index.js +2 -2
- package/node/Popper/Popper.js +2 -2
- package/node/Radio/Radio.js +3 -3
- package/node/Radio/RadioButtonIcon.js +2 -2
- package/node/Radio/index.js +2 -2
- package/node/RadioGroup/RadioGroup.js +2 -2
- package/node/RadioGroup/RadioGroupContext.js +2 -2
- package/node/RadioGroup/useRadioGroup.js +2 -2
- package/node/Rating/Rating.js +2 -2
- package/node/Rating/index.js +2 -2
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
- package/node/ScopedCssBaseline/index.js +2 -2
- package/node/Select/Select.js +2 -2
- package/node/Select/SelectInput.js +2 -2
- package/node/Select/index.js +2 -2
- package/node/Skeleton/Skeleton.js +2 -2
- package/node/Skeleton/index.js +2 -2
- package/node/Slide/Slide.js +2 -2
- package/node/Slider/Slider.js +2 -2
- package/node/Slider/SliderValueLabel.js +2 -2
- package/node/Slider/index.js +2 -2
- package/node/Snackbar/Snackbar.js +2 -2
- package/node/Snackbar/index.js +2 -2
- package/node/SnackbarContent/SnackbarContent.js +2 -2
- package/node/SnackbarContent/index.js +2 -2
- package/node/SpeedDial/SpeedDial.js +2 -2
- package/node/SpeedDial/index.js +2 -2
- package/node/SpeedDialAction/SpeedDialAction.js +2 -2
- package/node/SpeedDialAction/index.js +2 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
- package/node/SpeedDialIcon/index.js +2 -2
- package/node/Step/Step.js +2 -2
- package/node/Step/StepContext.js +2 -2
- package/node/Step/index.js +2 -2
- package/node/StepButton/StepButton.js +2 -2
- package/node/StepButton/index.js +2 -2
- package/node/StepConnector/StepConnector.js +2 -2
- package/node/StepConnector/index.js +2 -2
- package/node/StepContent/StepContent.js +2 -2
- package/node/StepContent/index.js +2 -2
- package/node/StepIcon/StepIcon.js +2 -2
- package/node/StepIcon/index.js +2 -2
- package/node/StepLabel/StepLabel.js +2 -2
- package/node/StepLabel/index.js +2 -2
- package/node/Stepper/Stepper.js +2 -2
- package/node/Stepper/StepperContext.js +2 -2
- package/node/Stepper/index.js +2 -2
- package/node/SvgIcon/SvgIcon.js +2 -2
- package/node/SvgIcon/index.js +2 -2
- package/node/SwipeableDrawer/SwipeArea.js +2 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +2 -2
- package/node/Switch/Switch.js +2 -2
- package/node/Switch/index.js +2 -2
- package/node/Tab/Tab.js +2 -2
- package/node/Tab/index.js +2 -2
- package/node/TabScrollButton/TabScrollButton.js +2 -2
- package/node/TabScrollButton/index.js +2 -2
- package/node/Table/Table.js +2 -2
- package/node/Table/TableContext.js +2 -2
- package/node/Table/Tablelvl2Context.js +2 -2
- package/node/Table/index.js +2 -2
- package/node/TableBody/TableBody.js +2 -2
- package/node/TableBody/index.js +2 -2
- package/node/TableCell/TableCell.js +2 -2
- package/node/TableCell/index.js +2 -2
- package/node/TableContainer/TableContainer.js +2 -2
- package/node/TableContainer/index.js +2 -2
- package/node/TableFooter/TableFooter.js +2 -2
- package/node/TableFooter/index.js +2 -2
- package/node/TableHead/TableHead.js +2 -2
- package/node/TableHead/index.js +2 -2
- package/node/TablePagination/TablePagination.js +2 -2
- package/node/TablePagination/TablePaginationActions.js +2 -2
- package/node/TablePagination/index.js +2 -2
- package/node/TableRow/TableRow.js +2 -2
- package/node/TableRow/index.js +2 -2
- package/node/TableSortLabel/TableSortLabel.js +2 -2
- package/node/TableSortLabel/index.js +2 -2
- package/node/Tabs/ScrollbarSize.js +2 -2
- package/node/Tabs/Tabs.js +32 -7
- package/node/Tabs/index.js +2 -2
- package/node/TextField/TextField.js +2 -2
- package/node/TextField/index.js +2 -2
- package/node/ToggleButton/ToggleButton.js +2 -2
- package/node/ToggleButton/index.js +2 -2
- package/node/ToggleButton/toggleButtonClasses.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/node/ToggleButtonGroup/index.js +2 -2
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Toolbar/Toolbar.js +2 -2
- package/node/Toolbar/index.js +2 -2
- package/node/Tooltip/Tooltip.js +2 -2
- package/node/Tooltip/index.js +2 -2
- package/node/Typography/Typography.js +2 -2
- package/node/Typography/index.js +2 -2
- package/node/Unstable_Grid2/index.js +2 -2
- package/node/Zoom/Zoom.js +2 -2
- package/node/index.js +3 -3
- package/node/internal/SwitchBase.js +2 -2
- package/node/internal/svg-icons/Add.js +2 -2
- package/node/internal/svg-icons/ArrowDownward.js +2 -2
- package/node/internal/svg-icons/ArrowDropDown.js +2 -2
- package/node/internal/svg-icons/Cancel.js +2 -2
- package/node/internal/svg-icons/CheckBox.js +2 -2
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +2 -2
- package/node/internal/svg-icons/CheckCircle.js +2 -2
- package/node/internal/svg-icons/Close.js +2 -2
- package/node/internal/svg-icons/ErrorOutline.js +2 -2
- package/node/internal/svg-icons/FirstPage.js +2 -2
- package/node/internal/svg-icons/IndeterminateCheckBox.js +2 -2
- package/node/internal/svg-icons/InfoOutlined.js +2 -2
- package/node/internal/svg-icons/KeyboardArrowLeft.js +2 -2
- package/node/internal/svg-icons/KeyboardArrowRight.js +2 -2
- package/node/internal/svg-icons/LastPage.js +2 -2
- package/node/internal/svg-icons/MoreHoriz.js +2 -2
- package/node/internal/svg-icons/NavigateBefore.js +2 -2
- package/node/internal/svg-icons/NavigateNext.js +2 -2
- package/node/internal/svg-icons/Person.js +2 -2
- package/node/internal/svg-icons/RadioButtonChecked.js +2 -2
- package/node/internal/svg-icons/RadioButtonUnchecked.js +2 -2
- package/node/internal/svg-icons/ReportProblemOutlined.js +2 -2
- package/node/internal/svg-icons/Star.js +2 -2
- package/node/internal/svg-icons/StarBorder.js +2 -2
- package/node/internal/svg-icons/SuccessOutlined.js +2 -2
- package/node/internal/svg-icons/Warning.js +2 -2
- package/node/locale/index.js +121 -47
- package/node/styles/ThemeProvider.js +2 -2
- package/node/styles/index.js +2 -2
- package/node/styles/useTheme.js +2 -2
- package/node/useAutocomplete/index.js +2 -2
- package/node/useMediaQuery/useMediaQuery.js +2 -2
- package/node/useScrollTrigger/useScrollTrigger.js +2 -2
- package/node/useTouchRipple/useTouchRipple.js +2 -2
- package/node/utils/createSvgIcon.js +2 -2
- package/package.json +7 -7
- package/umd/material-ui.development.js +72 -35
- package/umd/material-ui.production.min.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"url": "https://opencollective.com/mui"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@babel/runtime": "^7.23.
|
|
31
|
-
"@mui/base": "5.0.0-beta.
|
|
32
|
-
"@mui/core-downloads-tracker": "^5.14.
|
|
33
|
-
"@mui/system": "^5.14.
|
|
34
|
-
"@mui/types": "^7.2.
|
|
35
|
-
"@mui/utils": "^5.14.
|
|
30
|
+
"@babel/runtime": "^7.23.2",
|
|
31
|
+
"@mui/base": "5.0.0-beta.21",
|
|
32
|
+
"@mui/core-downloads-tracker": "^5.14.15",
|
|
33
|
+
"@mui/system": "^5.14.15",
|
|
34
|
+
"@mui/types": "^7.2.7",
|
|
35
|
+
"@mui/utils": "^5.14.15",
|
|
36
36
|
"@types/react-transition-group": "^4.4.7",
|
|
37
37
|
"clsx": "^2.0.0",
|
|
38
38
|
"csstype": "^3.1.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.14.
|
|
2
|
+
* @mui/material v5.14.15
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -2138,10 +2138,10 @@
|
|
|
2138
2138
|
useEnhancedEffect$1(() => {
|
|
2139
2139
|
ref.current = fn;
|
|
2140
2140
|
});
|
|
2141
|
-
return React__namespace.
|
|
2141
|
+
return React__namespace.useRef((...args) =>
|
|
2142
2142
|
// @ts-expect-error hide `this`
|
|
2143
2143
|
// tslint:disable-next-line:ban-comma-operator
|
|
2144
|
-
(0, ref.current)(...args)
|
|
2144
|
+
(0, ref.current)(...args)).current;
|
|
2145
2145
|
}
|
|
2146
2146
|
|
|
2147
2147
|
function useForkRef(...refs) {
|
|
@@ -6542,11 +6542,6 @@
|
|
|
6542
6542
|
} else {
|
|
6543
6543
|
value = getPath(themeMapping, propValueFinal) || userValue;
|
|
6544
6544
|
}
|
|
6545
|
-
if (typeof value === 'object') {
|
|
6546
|
-
{
|
|
6547
|
-
console.warn(`MUI: The value found in theme for prop: "${propValueFinal}" is an [Object] instead of string or number. Check if you forgot to add the correct dotted notation, eg, "background.paper" instead of "background".`);
|
|
6548
|
-
}
|
|
6549
|
-
}
|
|
6550
6545
|
if (transform) {
|
|
6551
6546
|
value = transform(value, userValue, themeMapping);
|
|
6552
6547
|
}
|
|
@@ -15193,7 +15188,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15193
15188
|
function getAppBarUtilityClass(slot) {
|
|
15194
15189
|
return generateUtilityClass('MuiAppBar', slot);
|
|
15195
15190
|
}
|
|
15196
|
-
const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
|
|
15191
|
+
const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
|
|
15197
15192
|
var appBarClasses$1 = appBarClasses;
|
|
15198
15193
|
|
|
15199
15194
|
const _excluded$1V = ["className", "color", "enableColorOnDark", "position"];
|
|
@@ -15341,7 +15336,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15341
15336
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
15342
15337
|
* @default 'primary'
|
|
15343
15338
|
*/
|
|
15344
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), PropTypes.string]),
|
|
15339
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
15345
15340
|
/**
|
|
15346
15341
|
* If true, the `color` prop is applied in dark mode.
|
|
15347
15342
|
* @default false
|
|
@@ -20038,25 +20033,33 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20038
20033
|
}
|
|
20039
20034
|
}, [value, multiple, focusedTag, focusTag]);
|
|
20040
20035
|
function validOptionIndex(index, direction) {
|
|
20041
|
-
if (!listboxRef.current || index
|
|
20036
|
+
if (!listboxRef.current || index < 0 || index >= filteredOptions.length) {
|
|
20042
20037
|
return -1;
|
|
20043
20038
|
}
|
|
20044
20039
|
let nextFocus = index;
|
|
20045
20040
|
while (true) {
|
|
20046
|
-
// Out of range
|
|
20047
|
-
if (direction === 'next' && nextFocus === filteredOptions.length || direction === 'previous' && nextFocus === -1) {
|
|
20048
|
-
return -1;
|
|
20049
|
-
}
|
|
20050
20041
|
const option = listboxRef.current.querySelector(`[data-option-index="${nextFocus}"]`);
|
|
20051
20042
|
|
|
20052
20043
|
// Same logic as MenuList.js
|
|
20053
20044
|
const nextFocusDisabled = disabledItemsFocusable ? false : !option || option.disabled || option.getAttribute('aria-disabled') === 'true';
|
|
20054
|
-
if (option &&
|
|
20055
|
-
//
|
|
20056
|
-
nextFocus += direction === 'next' ? 1 : -1;
|
|
20057
|
-
} else {
|
|
20045
|
+
if (option && option.hasAttribute('tabindex') && !nextFocusDisabled) {
|
|
20046
|
+
// The next option is available
|
|
20058
20047
|
return nextFocus;
|
|
20059
20048
|
}
|
|
20049
|
+
|
|
20050
|
+
// The next option is disabled, move to the next element.
|
|
20051
|
+
// with looped index
|
|
20052
|
+
if (direction === 'next') {
|
|
20053
|
+
nextFocus = (nextFocus + 1) % filteredOptions.length;
|
|
20054
|
+
} else {
|
|
20055
|
+
nextFocus = (nextFocus - 1 + filteredOptions.length) % filteredOptions.length;
|
|
20056
|
+
}
|
|
20057
|
+
|
|
20058
|
+
// We end up with initial index, that means we don't have available options.
|
|
20059
|
+
// All of them are disabled
|
|
20060
|
+
if (nextFocus === index) {
|
|
20061
|
+
return -1;
|
|
20062
|
+
}
|
|
20060
20063
|
}
|
|
20061
20064
|
}
|
|
20062
20065
|
const setHighlightedIndex = useEventCallback(({
|
|
@@ -23701,7 +23704,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23701
23704
|
const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
|
|
23702
23705
|
var avatarGroupClasses$1 = avatarGroupClasses;
|
|
23703
23706
|
|
|
23704
|
-
const _excluded$1L = ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"];
|
|
23707
|
+
const _excluded$1L = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
|
|
23705
23708
|
const SPACINGS$2 = {
|
|
23706
23709
|
small: -16,
|
|
23707
23710
|
medium: null
|
|
@@ -23762,6 +23765,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23762
23765
|
component = 'div',
|
|
23763
23766
|
componentsProps = {},
|
|
23764
23767
|
max = 5,
|
|
23768
|
+
renderSurplus,
|
|
23765
23769
|
slotProps = {},
|
|
23766
23770
|
spacing = 'medium',
|
|
23767
23771
|
total,
|
|
@@ -23791,6 +23795,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23791
23795
|
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
23792
23796
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
23793
23797
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
23798
|
+
const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
|
|
23794
23799
|
const marginLeft = spacing && SPACINGS$2[spacing] !== undefined ? SPACINGS$2[spacing] : -spacing;
|
|
23795
23800
|
const additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
|
|
23796
23801
|
return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
|
|
@@ -23799,7 +23804,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23799
23804
|
className: clsx(classes.root, className),
|
|
23800
23805
|
ref: ref
|
|
23801
23806
|
}, other, {
|
|
23802
|
-
children: [extraAvatars ? /*#__PURE__*/
|
|
23807
|
+
children: [extraAvatars ? /*#__PURE__*/jsxRuntime_1(AvatarGroupAvatar, _extends({
|
|
23803
23808
|
ownerState: ownerState,
|
|
23804
23809
|
variant: variant
|
|
23805
23810
|
}, additionalAvatarSlotProps, {
|
|
@@ -23807,7 +23812,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23807
23812
|
style: _extends({
|
|
23808
23813
|
marginLeft
|
|
23809
23814
|
}, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.style),
|
|
23810
|
-
children:
|
|
23815
|
+
children: extraAvatarsElement
|
|
23811
23816
|
})) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
|
|
23812
23817
|
return /*#__PURE__*/React__namespace.cloneElement(child, {
|
|
23813
23818
|
className: clsx(child.props.className, classes.avatar),
|
|
@@ -23865,6 +23870,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23865
23870
|
}
|
|
23866
23871
|
return null;
|
|
23867
23872
|
}),
|
|
23873
|
+
/**
|
|
23874
|
+
* custom renderer of extraAvatars
|
|
23875
|
+
* @param {number} surplus number of extra avatars
|
|
23876
|
+
* @returns {React.ReactNode} custom element to display
|
|
23877
|
+
*/
|
|
23878
|
+
renderSurplus: PropTypes.func,
|
|
23868
23879
|
/**
|
|
23869
23880
|
* The extra props for the slot components.
|
|
23870
23881
|
* You can override the existing props or add new ones.
|
|
@@ -26906,7 +26917,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
26906
26917
|
const {
|
|
26907
26918
|
ownerState
|
|
26908
26919
|
} = props;
|
|
26909
|
-
return [styles.root, ownerState.indeterminate && styles.indeterminate, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];
|
|
26920
|
+
return [styles.root, ownerState.indeterminate && styles.indeterminate, styles[`size${capitalize(ownerState.size)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];
|
|
26910
26921
|
}
|
|
26911
26922
|
})(({
|
|
26912
26923
|
theme,
|
|
@@ -33777,7 +33788,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33777
33788
|
} = props;
|
|
33778
33789
|
return [{
|
|
33779
33790
|
[`& .${formLabelClasses$1.asterisk}`]: styles.asterisk
|
|
33780
|
-
}, styles.root, ownerState.formControl && styles.formControl, ownerState.size === 'small' && styles.sizeSmall, ownerState.shrink && styles.shrink, !ownerState.disableAnimation && styles.animated, styles[ownerState.variant]];
|
|
33791
|
+
}, styles.root, ownerState.formControl && styles.formControl, ownerState.size === 'small' && styles.sizeSmall, ownerState.shrink && styles.shrink, !ownerState.disableAnimation && styles.animated, ownerState.focused && styles.focused, styles[ownerState.variant]];
|
|
33781
33792
|
}
|
|
33782
33793
|
})(({
|
|
33783
33794
|
theme,
|
|
@@ -33860,7 +33871,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33860
33871
|
const fcs = formControlState({
|
|
33861
33872
|
props,
|
|
33862
33873
|
muiFormControl,
|
|
33863
|
-
states: ['size', 'variant', 'required']
|
|
33874
|
+
states: ['size', 'variant', 'required', 'focused']
|
|
33864
33875
|
});
|
|
33865
33876
|
const ownerState = _extends({}, props, {
|
|
33866
33877
|
disableAnimation,
|
|
@@ -33868,7 +33879,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33868
33879
|
shrink,
|
|
33869
33880
|
size: fcs.size,
|
|
33870
33881
|
variant: fcs.variant,
|
|
33871
|
-
required: fcs.required
|
|
33882
|
+
required: fcs.required,
|
|
33883
|
+
focused: fcs.focused
|
|
33872
33884
|
});
|
|
33873
33885
|
const classes = useUtilityClasses$T(ownerState);
|
|
33874
33886
|
return /*#__PURE__*/jsxRuntime_1(InputLabelRoot, _extends({
|
|
@@ -38656,7 +38668,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38656
38668
|
* This is important for screen reader users.
|
|
38657
38669
|
*
|
|
38658
38670
|
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
38659
|
-
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
|
|
38671
|
+
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
|
|
38660
38672
|
* @param {number} page The page number to format.
|
|
38661
38673
|
* @param {bool} selected If true, the current page is selected.
|
|
38662
38674
|
* @returns {string}
|
|
@@ -38844,7 +38856,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38844
38856
|
const {
|
|
38845
38857
|
ownerState
|
|
38846
38858
|
} = props;
|
|
38847
|
-
return [styles.root, styles[`color${capitalize(ownerState.color)}`]];
|
|
38859
|
+
return [styles.root, ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], styles[`color${capitalize(ownerState.color)}`]];
|
|
38848
38860
|
}
|
|
38849
38861
|
})(({
|
|
38850
38862
|
theme,
|
|
@@ -48711,23 +48723,48 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48711
48723
|
updateIndicatorState();
|
|
48712
48724
|
}
|
|
48713
48725
|
});
|
|
48726
|
+
let resizeObserver;
|
|
48727
|
+
|
|
48728
|
+
/**
|
|
48729
|
+
* @type {MutationCallback}
|
|
48730
|
+
*/
|
|
48731
|
+
const handleMutation = records => {
|
|
48732
|
+
records.forEach(record => {
|
|
48733
|
+
record.removedNodes.forEach(item => {
|
|
48734
|
+
var _resizeObserver;
|
|
48735
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.unobserve(item);
|
|
48736
|
+
});
|
|
48737
|
+
record.addedNodes.forEach(item => {
|
|
48738
|
+
var _resizeObserver2;
|
|
48739
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.observe(item);
|
|
48740
|
+
});
|
|
48741
|
+
});
|
|
48742
|
+
handleResize();
|
|
48743
|
+
updateScrollButtonState();
|
|
48744
|
+
};
|
|
48714
48745
|
const win = ownerWindow(tabsRef.current);
|
|
48715
48746
|
win.addEventListener('resize', handleResize);
|
|
48716
|
-
let
|
|
48747
|
+
let mutationObserver;
|
|
48717
48748
|
if (typeof ResizeObserver !== 'undefined') {
|
|
48718
48749
|
resizeObserver = new ResizeObserver(handleResize);
|
|
48719
48750
|
Array.from(tabListRef.current.children).forEach(child => {
|
|
48720
48751
|
resizeObserver.observe(child);
|
|
48721
48752
|
});
|
|
48722
48753
|
}
|
|
48754
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
48755
|
+
mutationObserver = new MutationObserver(handleMutation);
|
|
48756
|
+
mutationObserver.observe(tabListRef.current, {
|
|
48757
|
+
childList: true
|
|
48758
|
+
});
|
|
48759
|
+
}
|
|
48723
48760
|
return () => {
|
|
48761
|
+
var _mutationObserver, _resizeObserver3;
|
|
48724
48762
|
handleResize.clear();
|
|
48725
48763
|
win.removeEventListener('resize', handleResize);
|
|
48726
|
-
|
|
48727
|
-
|
|
48728
|
-
}
|
|
48764
|
+
(_mutationObserver = mutationObserver) == null || _mutationObserver.disconnect();
|
|
48765
|
+
(_resizeObserver3 = resizeObserver) == null || _resizeObserver3.disconnect();
|
|
48729
48766
|
};
|
|
48730
|
-
}, [updateIndicatorState]);
|
|
48767
|
+
}, [updateIndicatorState, updateScrollButtonState]);
|
|
48731
48768
|
|
|
48732
48769
|
/**
|
|
48733
48770
|
* Toggle visibility of start and end scroll buttons
|
|
@@ -49385,7 +49422,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49385
49422
|
function getToggleButtonUtilityClass(slot) {
|
|
49386
49423
|
return generateUtilityClass('MuiToggleButton', slot);
|
|
49387
49424
|
}
|
|
49388
|
-
const toggleButtonClasses = generateUtilityClasses('MuiToggleButton', ['root', 'disabled', 'selected', 'standard', 'primary', 'secondary', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
49425
|
+
const toggleButtonClasses = generateUtilityClasses('MuiToggleButton', ['root', 'disabled', 'selected', 'standard', 'primary', 'secondary', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'fullWidth']);
|
|
49389
49426
|
var toggleButtonClasses$1 = toggleButtonClasses;
|
|
49390
49427
|
|
|
49391
49428
|
const _excluded$2 = ["children", "className", "color", "disabled", "disableFocusRipple", "fullWidth", "onChange", "onClick", "selected", "size", "value"];
|
|
@@ -49611,7 +49648,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49611
49648
|
function getToggleButtonGroupUtilityClass(slot) {
|
|
49612
49649
|
return generateUtilityClass('MuiToggleButtonGroup', slot);
|
|
49613
49650
|
}
|
|
49614
|
-
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical']);
|
|
49651
|
+
const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth']);
|
|
49615
49652
|
var toggleButtonGroupClasses$1 = toggleButtonGroupClasses;
|
|
49616
49653
|
|
|
49617
49654
|
const _excluded$1 = ["children", "className", "color", "disabled", "exclusive", "fullWidth", "onChange", "orientation", "size", "value"];
|