@mui/material 5.11.13 → 5.11.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/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +3 -0
- package/Autocomplete/autocompleteClasses.d.ts +56 -56
- 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/BreadcrumbCollapsed.js +26 -3
- package/Breadcrumbs/Breadcrumbs.d.ts +31 -0
- package/Breadcrumbs/Breadcrumbs.js +30 -2
- 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 +123 -3
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +2 -3
- 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/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/ListItemButton.js +4 -2
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/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 -55
- package/README.md +5 -4
- 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/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/Stack/Stack.d.ts +10 -0
- package/Stack/Stack.js +11 -1
- package/Stack/stackClasses.d.ts +6 -6
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/StepButton.js +4 -2
- 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/TabScrollButton.d.ts +34 -1
- package/TabScrollButton/TabScrollButton.js +41 -8
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.d.ts +40 -0
- package/Tabs/Tabs.js +43 -2
- 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/Autocomplete/Autocomplete.js +3 -0
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +25 -3
- package/legacy/Breadcrumbs/Breadcrumbs.js +32 -2
- package/legacy/Chip/Chip.js +2 -3
- package/legacy/ListItemButton/ListItemButton.js +4 -2
- package/legacy/Stack/Stack.js +11 -1
- package/legacy/StepButton/StepButton.js +4 -2
- package/legacy/TabScrollButton/TabScrollButton.js +43 -8
- package/legacy/Tabs/Tabs.js +45 -2
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +156 -80
- package/locale/index.d.ts +76 -75
- package/locale/index.js +73 -0
- package/modern/Autocomplete/Autocomplete.js +3 -0
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +26 -3
- package/modern/Breadcrumbs/Breadcrumbs.js +30 -2
- package/modern/Chip/Chip.js +2 -3
- package/modern/ListItemButton/ListItemButton.js +4 -2
- package/modern/Stack/Stack.js +11 -1
- package/modern/StepButton/StepButton.js +4 -2
- package/modern/TabScrollButton/TabScrollButton.js +40 -8
- package/modern/Tabs/Tabs.js +43 -2
- package/modern/index.js +1 -1
- package/modern/locale/index.js +73 -0
- package/node/Autocomplete/Autocomplete.js +3 -0
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +26 -3
- package/node/Breadcrumbs/Breadcrumbs.js +29 -1
- package/node/Chip/Chip.js +2 -3
- package/node/ListItemButton/ListItemButton.js +4 -2
- package/node/Stack/Stack.js +11 -1
- package/node/StepButton/StepButton.js +4 -2
- package/node/TabScrollButton/TabScrollButton.js +42 -9
- package/node/Tabs/Tabs.js +42 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +75 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +15 -15
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/shouldSkipGeneratingVar.d.ts +1 -1
- 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 +301 -161
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +46 -46
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OverridableComponent } from '@mui/types';
|
|
2
|
-
import { Grid2TypeMap } from './Grid2Props';
|
|
3
|
-
declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
|
|
4
|
-
export default Grid2;
|
|
1
|
+
import { OverridableComponent } from '@mui/types';
|
|
2
|
+
import { Grid2TypeMap } from './Grid2Props';
|
|
3
|
+
declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
|
|
4
|
+
export default Grid2;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { SxProps, SystemProps } from '@mui/system';
|
|
4
|
-
import { GridBaseProps } from '@mui/system/Unstable_Grid';
|
|
5
|
-
import { Theme } from '../styles';
|
|
6
|
-
export type Grid2Slot = 'root';
|
|
7
|
-
export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
8
|
-
props: P & GridBaseProps & {
|
|
9
|
-
sx?: SxProps<Theme>;
|
|
10
|
-
} & SystemProps<Theme>;
|
|
11
|
-
defaultComponent: D;
|
|
12
|
-
}
|
|
13
|
-
export type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
|
|
14
|
-
component?: React.ElementType;
|
|
15
|
-
}> = OverrideProps<Grid2TypeMap<P, D>, D>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OverrideProps } from '@mui/types';
|
|
3
|
+
import { SxProps, SystemProps } from '@mui/system';
|
|
4
|
+
import { GridBaseProps } from '@mui/system/Unstable_Grid';
|
|
5
|
+
import { Theme } from '../styles';
|
|
6
|
+
export type Grid2Slot = 'root';
|
|
7
|
+
export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
8
|
+
props: P & GridBaseProps & {
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
} & SystemProps<Theme>;
|
|
11
|
+
defaultComponent: D;
|
|
12
|
+
}
|
|
13
|
+
export type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
|
|
14
|
+
component?: React.ElementType;
|
|
15
|
+
}> = OverrideProps<Grid2TypeMap<P, D>, D>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridClasses } from '@mui/system/Unstable_Grid';
|
|
2
|
-
export type Grid2ClassKey = keyof GridClasses;
|
|
3
|
-
export declare function getGrid2UtilityClass(slot: string): string;
|
|
4
|
-
declare const grid2Classes: GridClasses;
|
|
5
|
-
export default grid2Classes;
|
|
1
|
+
import { GridClasses } from '@mui/system/Unstable_Grid';
|
|
2
|
+
export type Grid2ClassKey = keyof GridClasses;
|
|
3
|
+
export declare function getGrid2UtilityClass(slot: string): string;
|
|
4
|
+
declare const grid2Classes: GridClasses;
|
|
5
|
+
export default grid2Classes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default } from './Grid2';
|
|
2
|
-
export * from './Grid2Props';
|
|
3
|
-
export { default as grid2Classes } from './grid2Classes';
|
|
4
|
-
export * from './grid2Classes';
|
|
1
|
+
export { default } from './Grid2';
|
|
2
|
+
export * from './Grid2Props';
|
|
3
|
+
export { default as grid2Classes } from './grid2Classes';
|
|
4
|
+
export * from './grid2Classes';
|
package/className/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { unstable_ClassNameGenerator } from '@mui/utils';
|
|
1
|
+
export { unstable_ClassNameGenerator } from '@mui/utils';
|
package/darkScrollbar/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export default function darkScrollbar(options?: {
|
|
2
|
-
track: string;
|
|
3
|
-
thumb: string;
|
|
4
|
-
active: string;
|
|
5
|
-
}): {
|
|
6
|
-
scrollbarColor: string;
|
|
7
|
-
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
-
backgroundColor: string;
|
|
9
|
-
};
|
|
10
|
-
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
-
borderRadius: number;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
minHeight: number;
|
|
14
|
-
border: string;
|
|
15
|
-
};
|
|
16
|
-
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
};
|
|
19
|
-
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
};
|
|
22
|
-
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
};
|
|
25
|
-
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
1
|
+
export default function darkScrollbar(options?: {
|
|
2
|
+
track: string;
|
|
3
|
+
thumb: string;
|
|
4
|
+
active: string;
|
|
5
|
+
}): {
|
|
6
|
+
scrollbarColor: string;
|
|
7
|
+
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
minHeight: number;
|
|
14
|
+
border: string;
|
|
15
|
+
};
|
|
16
|
+
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
};
|
|
19
|
+
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
};
|
|
22
|
+
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
};
|
|
25
|
+
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { unstable_generateUtilityClass as default } from '@mui/utils';
|
|
2
|
-
export type { GlobalStateSlot } from '@mui/utils';
|
|
1
|
+
export { unstable_generateUtilityClass as default } from '@mui/utils';
|
|
2
|
+
export type { GlobalStateSlot } from '@mui/utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { unstable_generateUtilityClasses as default } from '@mui/utils';
|
|
1
|
+
export { unstable_generateUtilityClasses as default } from '@mui/utils';
|
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface SwitchBaseClasses {
|
|
2
|
-
root: string;
|
|
3
|
-
checked: string;
|
|
4
|
-
disabled: string;
|
|
5
|
-
input: string;
|
|
6
|
-
edgeStart: string;
|
|
7
|
-
edgeEnd: string;
|
|
8
|
-
}
|
|
9
|
-
export type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
-
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
-
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
-
export default switchBaseClasses;
|
|
1
|
+
export interface SwitchBaseClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
checked: string;
|
|
4
|
+
disabled: string;
|
|
5
|
+
input: string;
|
|
6
|
+
edgeStart: string;
|
|
7
|
+
edgeEnd: string;
|
|
8
|
+
}
|
|
9
|
+
export type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
+
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
+
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
+
export default switchBaseClasses;
|
|
@@ -665,6 +665,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
665
665
|
* If `true`, the selected option becomes the value of the input
|
|
666
666
|
* when the Autocomplete loses focus unless the user chooses
|
|
667
667
|
* a different option or changes the character string in the input.
|
|
668
|
+
*
|
|
669
|
+
* When using `freeSolo` mode, the typed value will be the input value
|
|
670
|
+
* if the Autocomplete loses focus without highlighting an option.
|
|
668
671
|
* @default false
|
|
669
672
|
*/
|
|
670
673
|
autoSelect: PropTypes.bool,
|
|
File without changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
1
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
@@ -43,19 +44,40 @@ var BreadcrumbCollapsedIcon = styled(MoreHorizIcon)({
|
|
|
43
44
|
* @ignore - internal component.
|
|
44
45
|
*/
|
|
45
46
|
function BreadcrumbCollapsed(props) {
|
|
47
|
+
var _props$slots = props.slots,
|
|
48
|
+
slots = _props$slots === void 0 ? {} : _props$slots,
|
|
49
|
+
_props$slotProps = props.slotProps,
|
|
50
|
+
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
|
|
51
|
+
otherProps = _objectWithoutProperties(props, ["slots", "slotProps"]);
|
|
46
52
|
var ownerState = props;
|
|
47
53
|
return /*#__PURE__*/_jsx("li", {
|
|
48
54
|
children: /*#__PURE__*/_jsx(BreadcrumbCollapsedButton, _extends({
|
|
49
55
|
focusRipple: true
|
|
50
|
-
},
|
|
56
|
+
}, otherProps, {
|
|
51
57
|
ownerState: ownerState,
|
|
52
|
-
children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, {
|
|
58
|
+
children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, _extends({
|
|
59
|
+
as: slots.CollapsedIcon,
|
|
53
60
|
ownerState: ownerState
|
|
54
|
-
})
|
|
61
|
+
}, slotProps.collapsedIcon))
|
|
55
62
|
}))
|
|
56
63
|
});
|
|
57
64
|
}
|
|
58
65
|
process.env.NODE_ENV !== "production" ? BreadcrumbCollapsed.propTypes = {
|
|
66
|
+
/**
|
|
67
|
+
* The props used for the CollapsedIcon slot.
|
|
68
|
+
* @default {}
|
|
69
|
+
*/
|
|
70
|
+
slotProps: PropTypes.shape({
|
|
71
|
+
collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
72
|
+
}),
|
|
73
|
+
/**
|
|
74
|
+
* The components used for each slot inside the BreadcumbCollapsed.
|
|
75
|
+
* Either a string to use a HTML element or a component.
|
|
76
|
+
* @default {}
|
|
77
|
+
*/
|
|
78
|
+
slots: PropTypes.shape({
|
|
79
|
+
CollapsedIcon: PropTypes.elementType
|
|
80
|
+
}),
|
|
59
81
|
/**
|
|
60
82
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
61
83
|
*/
|
|
@@ -7,7 +7,7 @@ import { isFragment } from 'react-is';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { integerPropType } from '@mui/utils';
|
|
10
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
|
+
import { unstable_composeClasses as composeClasses, useSlotProps } from '@mui/base';
|
|
11
11
|
import styled from '../styles/styled';
|
|
12
12
|
import useThemeProps from '../styles/useThemeProps';
|
|
13
13
|
import Typography from '../Typography';
|
|
@@ -81,6 +81,10 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, re
|
|
|
81
81
|
className = props.className,
|
|
82
82
|
_props$component = props.component,
|
|
83
83
|
component = _props$component === void 0 ? 'nav' : _props$component,
|
|
84
|
+
_props$slots = props.slots,
|
|
85
|
+
slots = _props$slots === void 0 ? {} : _props$slots,
|
|
86
|
+
_props$slotProps = props.slotProps,
|
|
87
|
+
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
|
|
84
88
|
_props$expandText = props.expandText,
|
|
85
89
|
expandText = _props$expandText === void 0 ? 'Show path' : _props$expandText,
|
|
86
90
|
_props$itemsAfterColl = props.itemsAfterCollapse,
|
|
@@ -91,7 +95,7 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, re
|
|
|
91
95
|
maxItems = _props$maxItems === void 0 ? 8 : _props$maxItems,
|
|
92
96
|
_props$separator = props.separator,
|
|
93
97
|
separator = _props$separator === void 0 ? '/' : _props$separator,
|
|
94
|
-
other = _objectWithoutProperties(props, ["children", "className", "component", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"]);
|
|
98
|
+
other = _objectWithoutProperties(props, ["children", "className", "component", "slots", "slotProps", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"]);
|
|
95
99
|
var _React$useState = React.useState(false),
|
|
96
100
|
expanded = _React$useState[0],
|
|
97
101
|
setExpanded = _React$useState[1];
|
|
@@ -105,6 +109,11 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, re
|
|
|
105
109
|
separator: separator
|
|
106
110
|
});
|
|
107
111
|
var classes = useUtilityClasses(ownerState);
|
|
112
|
+
var collapsedIconSlotProps = useSlotProps({
|
|
113
|
+
elementType: slots.CollapsedIcon,
|
|
114
|
+
externalSlotProps: slotProps.collapsedIcon,
|
|
115
|
+
ownerState: ownerState
|
|
116
|
+
});
|
|
108
117
|
var listRef = React.useRef(null);
|
|
109
118
|
var renderItemsBeforeAndAfter = function renderItemsBeforeAndAfter(allItems) {
|
|
110
119
|
var handleClickExpand = function handleClickExpand() {
|
|
@@ -130,6 +139,12 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, re
|
|
|
130
139
|
}
|
|
131
140
|
return [].concat(_toConsumableArray(allItems.slice(0, itemsBeforeCollapse)), [/*#__PURE__*/_jsx(BreadcrumbCollapsed, {
|
|
132
141
|
"aria-label": expandText,
|
|
142
|
+
slots: {
|
|
143
|
+
CollapsedIcon: slots.CollapsedIcon
|
|
144
|
+
},
|
|
145
|
+
slotProps: {
|
|
146
|
+
collapsedIcon: collapsedIconSlotProps
|
|
147
|
+
},
|
|
133
148
|
onClick: handleClickExpand
|
|
134
149
|
}, "ellipsis")], _toConsumableArray(allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)));
|
|
135
150
|
};
|
|
@@ -212,6 +227,21 @@ process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes /* remove-proptype
|
|
|
212
227
|
* @default '/'
|
|
213
228
|
*/
|
|
214
229
|
separator: PropTypes.node,
|
|
230
|
+
/**
|
|
231
|
+
* The props used for each slot inside the Breadcumb.
|
|
232
|
+
* @default {}
|
|
233
|
+
*/
|
|
234
|
+
slotProps: PropTypes.shape({
|
|
235
|
+
collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
236
|
+
}),
|
|
237
|
+
/**
|
|
238
|
+
* The components used for each slot inside the Breadcumb.
|
|
239
|
+
* Either a string to use a HTML element or a component.
|
|
240
|
+
* @default {}
|
|
241
|
+
*/
|
|
242
|
+
slots: PropTypes.shape({
|
|
243
|
+
CollapsedIcon: PropTypes.elementType
|
|
244
|
+
}),
|
|
215
245
|
/**
|
|
216
246
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
217
247
|
*/
|
package/legacy/Chip/Chip.js
CHANGED
|
@@ -51,7 +51,6 @@ var ChipRoot = styled('div', {
|
|
|
51
51
|
var _extends2;
|
|
52
52
|
var theme = _ref11.theme,
|
|
53
53
|
ownerState = _ref11.ownerState;
|
|
54
|
-
var deleteIconColor = alpha(theme.palette.text.primary, 0.26);
|
|
55
54
|
var textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
|
|
56
55
|
return _extends((_extends2 = {
|
|
57
56
|
maxWidth: '100%',
|
|
@@ -112,12 +111,12 @@ var ChipRoot = styled('div', {
|
|
|
112
111
|
color: 'inherit'
|
|
113
112
|
}))), _defineProperty(_extends2, "& .".concat(chipClasses.deleteIcon), _extends({
|
|
114
113
|
WebkitTapHighlightColor: 'transparent',
|
|
115
|
-
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.26)") :
|
|
114
|
+
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.26)") : alpha(theme.palette.text.primary, 0.26),
|
|
116
115
|
fontSize: 22,
|
|
117
116
|
cursor: 'pointer',
|
|
118
117
|
margin: '0 5px 0 -6px',
|
|
119
118
|
'&:hover': {
|
|
120
|
-
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.4)") : alpha(
|
|
119
|
+
color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.4)") : alpha(theme.palette.text.primary, 0.4)
|
|
121
120
|
}
|
|
122
121
|
}, ownerState.size === 'small' && {
|
|
123
122
|
fontSize: 16,
|
|
@@ -147,8 +147,10 @@ var ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inPro
|
|
|
147
147
|
value: childContext,
|
|
148
148
|
children: /*#__PURE__*/_jsx(ListItemButtonRoot, _extends({
|
|
149
149
|
ref: handleRef,
|
|
150
|
-
href: other.href || other.to
|
|
151
|
-
|
|
150
|
+
href: other.href || other.to
|
|
151
|
+
// `ButtonBase` processes `href` or `to` if `component` is set to 'button'
|
|
152
|
+
,
|
|
153
|
+
component: (other.href || other.to) && component === 'div' ? 'button' : component,
|
|
152
154
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
153
155
|
ownerState: ownerState,
|
|
154
156
|
className: clsx(classes.root, className)
|
package/legacy/Stack/Stack.js
CHANGED
|
@@ -49,6 +49,16 @@ process.env.NODE_ENV !== "production" ? Stack.propTypes /* remove-proptypes */ =
|
|
|
49
49
|
/**
|
|
50
50
|
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
51
51
|
*/
|
|
52
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
52
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
53
|
+
/**
|
|
54
|
+
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
55
|
+
*
|
|
56
|
+
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack#limitations),
|
|
57
|
+
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
58
|
+
*
|
|
59
|
+
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
useFlexGap: PropTypes.bool
|
|
53
63
|
} : void 0;
|
|
54
64
|
export default Stack;
|
|
@@ -56,7 +56,8 @@ var StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref)
|
|
|
56
56
|
optional = props.optional,
|
|
57
57
|
other = _objectWithoutProperties(props, ["children", "className", "icon", "optional"]);
|
|
58
58
|
var _React$useContext = React.useContext(StepContext),
|
|
59
|
-
disabled = _React$useContext.disabled
|
|
59
|
+
disabled = _React$useContext.disabled,
|
|
60
|
+
active = _React$useContext.active;
|
|
60
61
|
var _React$useContext2 = React.useContext(StepperContext),
|
|
61
62
|
orientation = _React$useContext2.orientation;
|
|
62
63
|
var ownerState = _extends({}, props, {
|
|
@@ -78,7 +79,8 @@ var StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref)
|
|
|
78
79
|
},
|
|
79
80
|
className: clsx(classes.root, className),
|
|
80
81
|
ref: ref,
|
|
81
|
-
ownerState: ownerState
|
|
82
|
+
ownerState: ownerState,
|
|
83
|
+
"aria-current": active ? 'step' : undefined
|
|
82
84
|
}, other, {
|
|
83
85
|
children: child
|
|
84
86
|
}));
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
var _KeyboardArrowLeft, _KeyboardArrowRight;
|
|
5
4
|
/* eslint-disable jsx-a11y/aria-role */
|
|
6
5
|
import * as React from 'react';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
import clsx from 'clsx';
|
|
9
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
8
|
+
import { unstable_composeClasses as composeClasses, useSlotProps } from '@mui/base';
|
|
10
9
|
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
|
|
11
10
|
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
|
|
12
11
|
import ButtonBase from '../ButtonBase';
|
|
@@ -48,21 +47,44 @@ var TabScrollButtonRoot = styled(ButtonBase, {
|
|
|
48
47
|
});
|
|
49
48
|
});
|
|
50
49
|
var TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
|
|
50
|
+
var _slots$StartScrollBut, _slots$EndScrollButto;
|
|
51
51
|
var props = useThemeProps({
|
|
52
52
|
props: inProps,
|
|
53
53
|
name: 'MuiTabScrollButton'
|
|
54
54
|
});
|
|
55
55
|
var className = props.className,
|
|
56
|
+
_props$slots = props.slots,
|
|
57
|
+
slots = _props$slots === void 0 ? {} : _props$slots,
|
|
58
|
+
_props$slotProps = props.slotProps,
|
|
59
|
+
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
|
|
56
60
|
direction = props.direction,
|
|
57
61
|
orientation = props.orientation,
|
|
58
62
|
disabled = props.disabled,
|
|
59
|
-
other = _objectWithoutProperties(props, ["className", "direction", "orientation", "disabled"]);
|
|
63
|
+
other = _objectWithoutProperties(props, ["className", "slots", "slotProps", "direction", "orientation", "disabled"]);
|
|
60
64
|
var theme = useTheme();
|
|
61
65
|
var isRtl = theme.direction === 'rtl';
|
|
62
66
|
var ownerState = _extends({
|
|
63
67
|
isRtl: isRtl
|
|
64
68
|
}, props);
|
|
65
69
|
var classes = useUtilityClasses(ownerState);
|
|
70
|
+
var StartButtonIcon = (_slots$StartScrollBut = slots.StartScrollButtonIcon) != null ? _slots$StartScrollBut : KeyboardArrowLeft;
|
|
71
|
+
var EndButtonIcon = (_slots$EndScrollButto = slots.EndScrollButtonIcon) != null ? _slots$EndScrollButto : KeyboardArrowRight;
|
|
72
|
+
var startButtonIconProps = useSlotProps({
|
|
73
|
+
elementType: StartButtonIcon,
|
|
74
|
+
externalSlotProps: slotProps.startScrollButtonIcon,
|
|
75
|
+
additionalProps: {
|
|
76
|
+
fontSize: 'small'
|
|
77
|
+
},
|
|
78
|
+
ownerState: ownerState
|
|
79
|
+
});
|
|
80
|
+
var endButtonIconProps = useSlotProps({
|
|
81
|
+
elementType: EndButtonIcon,
|
|
82
|
+
externalSlotProps: slotProps.endScrollButtonIcon,
|
|
83
|
+
additionalProps: {
|
|
84
|
+
fontSize: 'small'
|
|
85
|
+
},
|
|
86
|
+
ownerState: ownerState
|
|
87
|
+
});
|
|
66
88
|
return /*#__PURE__*/_jsx(TabScrollButtonRoot, _extends({
|
|
67
89
|
component: "div",
|
|
68
90
|
className: clsx(classes.root, className),
|
|
@@ -71,11 +93,7 @@ var TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inP
|
|
|
71
93
|
ownerState: ownerState,
|
|
72
94
|
tabIndex: null
|
|
73
95
|
}, other, {
|
|
74
|
-
children: direction === 'left' ?
|
|
75
|
-
fontSize: "small"
|
|
76
|
-
})) : _KeyboardArrowRight || (_KeyboardArrowRight = /*#__PURE__*/_jsx(KeyboardArrowRight, {
|
|
77
|
-
fontSize: "small"
|
|
78
|
-
}))
|
|
96
|
+
children: direction === 'left' ? /*#__PURE__*/_jsx(StartButtonIcon, _extends({}, startButtonIconProps)) : /*#__PURE__*/_jsx(EndButtonIcon, _extends({}, endButtonIconProps))
|
|
79
97
|
}));
|
|
80
98
|
});
|
|
81
99
|
process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-proptypes */ = {
|
|
@@ -108,6 +126,23 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
|
|
|
108
126
|
* The component orientation (layout flow direction).
|
|
109
127
|
*/
|
|
110
128
|
orientation: PropTypes.oneOf(['horizontal', 'vertical']).isRequired,
|
|
129
|
+
/**
|
|
130
|
+
* The extra props for the slot components.
|
|
131
|
+
* You can override the existing props or add new ones.
|
|
132
|
+
* @default {}
|
|
133
|
+
*/
|
|
134
|
+
slotProps: PropTypes.shape({
|
|
135
|
+
endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
136
|
+
startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
137
|
+
}),
|
|
138
|
+
/**
|
|
139
|
+
* The components used for each slot inside.
|
|
140
|
+
* @default {}
|
|
141
|
+
*/
|
|
142
|
+
slots: PropTypes.shape({
|
|
143
|
+
EndScrollButtonIcon: PropTypes.elementType,
|
|
144
|
+
StartScrollButtonIcon: PropTypes.elementType
|
|
145
|
+
}),
|
|
111
146
|
/**
|
|
112
147
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
113
148
|
*/
|
package/legacy/Tabs/Tabs.js
CHANGED
|
@@ -6,7 +6,7 @@ import { isFragment } from 'react-is';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { refType } from '@mui/utils';
|
|
9
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
|
+
import { unstable_composeClasses as composeClasses, useSlotProps } from '@mui/base';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
12
|
import useTheme from '../styles/useTheme';
|
|
@@ -222,6 +222,10 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
222
222
|
_props$scrollButtons = props.scrollButtons,
|
|
223
223
|
scrollButtons = _props$scrollButtons === void 0 ? 'auto' : _props$scrollButtons,
|
|
224
224
|
selectionFollowsFocus = props.selectionFollowsFocus,
|
|
225
|
+
_props$slots = props.slots,
|
|
226
|
+
slots = _props$slots === void 0 ? {} : _props$slots,
|
|
227
|
+
_props$slotProps = props.slotProps,
|
|
228
|
+
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
|
|
225
229
|
_props$TabIndicatorPr = props.TabIndicatorProps,
|
|
226
230
|
TabIndicatorProps = _props$TabIndicatorPr === void 0 ? {} : _props$TabIndicatorPr,
|
|
227
231
|
_props$TabScrollButto = props.TabScrollButtonProps,
|
|
@@ -233,7 +237,7 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
233
237
|
variant = _props$variant === void 0 ? 'standard' : _props$variant,
|
|
234
238
|
_props$visibleScrollb = props.visibleScrollbar,
|
|
235
239
|
visibleScrollbar = _props$visibleScrollb === void 0 ? false : _props$visibleScrollb,
|
|
236
|
-
other = _objectWithoutProperties(props, ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"]);
|
|
240
|
+
other = _objectWithoutProperties(props, ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"]);
|
|
237
241
|
var scrollable = variant === 'scrollable';
|
|
238
242
|
var vertical = orientation === 'vertical';
|
|
239
243
|
var scrollStart = vertical ? 'scrollTop' : 'scrollLeft';
|
|
@@ -259,6 +263,16 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
259
263
|
scrollButtonsHideMobile: !allowScrollButtonsMobile
|
|
260
264
|
});
|
|
261
265
|
var classes = useUtilityClasses(ownerState);
|
|
266
|
+
var startScrollButtonIconProps = useSlotProps({
|
|
267
|
+
elementType: slots.StartScrollButtonIcon,
|
|
268
|
+
externalSlotProps: slotProps.startScrollButtonIcon,
|
|
269
|
+
ownerState: ownerState
|
|
270
|
+
});
|
|
271
|
+
var endScrollButtonIconProps = useSlotProps({
|
|
272
|
+
elementType: slots.EndScrollButtonIcon,
|
|
273
|
+
externalSlotProps: slotProps.endScrollButtonIcon,
|
|
274
|
+
ownerState: ownerState
|
|
275
|
+
});
|
|
262
276
|
if (process.env.NODE_ENV !== 'production') {
|
|
263
277
|
if (centered && scrollable) {
|
|
264
278
|
console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties ' + 'at the same time on a `Tabs` component.');
|
|
@@ -428,6 +442,12 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
428
442
|
var scrollButtonsActive = displayScroll.start || displayScroll.end;
|
|
429
443
|
var showScrollButtons = scrollable && (scrollButtons === 'auto' && scrollButtonsActive || scrollButtons === true);
|
|
430
444
|
conditionalElements.scrollButtonStart = showScrollButtons ? /*#__PURE__*/_jsx(ScrollButtonComponent, _extends({
|
|
445
|
+
slots: {
|
|
446
|
+
StartScrollButtonIcon: slots.StartScrollButtonIcon
|
|
447
|
+
},
|
|
448
|
+
slotProps: {
|
|
449
|
+
startScrollButtonIcon: startScrollButtonIconProps
|
|
450
|
+
},
|
|
431
451
|
orientation: orientation,
|
|
432
452
|
direction: isRtl ? 'right' : 'left',
|
|
433
453
|
onClick: handleStartScrollClick,
|
|
@@ -436,6 +456,12 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
436
456
|
className: clsx(classes.scrollButtons, TabScrollButtonProps.className)
|
|
437
457
|
})) : null;
|
|
438
458
|
conditionalElements.scrollButtonEnd = showScrollButtons ? /*#__PURE__*/_jsx(ScrollButtonComponent, _extends({
|
|
459
|
+
slots: {
|
|
460
|
+
EndScrollButtonIcon: slots.EndScrollButtonIcon
|
|
461
|
+
},
|
|
462
|
+
slotProps: {
|
|
463
|
+
endScrollButtonIcon: endScrollButtonIconProps
|
|
464
|
+
},
|
|
439
465
|
orientation: orientation,
|
|
440
466
|
direction: isRtl ? 'left' : 'right',
|
|
441
467
|
onClick: handleEndScrollClick,
|
|
@@ -738,6 +764,23 @@ process.env.NODE_ENV !== "production" ? Tabs.propTypes /* remove-proptypes */ =
|
|
|
738
764
|
* changes on activation.
|
|
739
765
|
*/
|
|
740
766
|
selectionFollowsFocus: PropTypes.bool,
|
|
767
|
+
/**
|
|
768
|
+
* The extra props for the slot components.
|
|
769
|
+
* You can override the existing props or add new ones.
|
|
770
|
+
* @default {}
|
|
771
|
+
*/
|
|
772
|
+
slotProps: PropTypes.shape({
|
|
773
|
+
endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
774
|
+
startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
775
|
+
}),
|
|
776
|
+
/**
|
|
777
|
+
* The components used for each slot inside.
|
|
778
|
+
* @default {}
|
|
779
|
+
*/
|
|
780
|
+
slots: PropTypes.shape({
|
|
781
|
+
EndScrollButtonIcon: PropTypes.elementType,
|
|
782
|
+
StartScrollButtonIcon: PropTypes.elementType
|
|
783
|
+
}),
|
|
741
784
|
/**
|
|
742
785
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
743
786
|
*/
|
package/legacy/index.js
CHANGED