@mui/material 5.10.15 → 5.10.16
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/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +47 -1
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.d.ts +10 -0
- package/Chip/Chip.js +15 -2
- 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 -0
- package/FormControl/FormControlContext.js +1 -1
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/index.d.ts +3 -1
- package/FormControl/useFormControl.d.ts +2 -25
- 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 -26
- package/IconButton/iconButtonClasses.js +1 -1
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +37 -37
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/SwipeableDrawer/SwipeableDrawer.js +3 -1
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/Chip/Chip.js +15 -2
- package/esm/FormControl/FormControlContext.js +1 -2
- package/esm/IconButton/iconButtonClasses.js +1 -1
- package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -1
- 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/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Chip/Chip.js +15 -1
- package/legacy/FormControl/FormControlContext.js +1 -2
- package/legacy/IconButton/iconButtonClasses.js +1 -1
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +3 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +73 -73
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Chip/Chip.js +15 -2
- package/modern/FormControl/FormControlContext.js +1 -2
- package/modern/IconButton/iconButtonClasses.js +1 -1
- package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -1
- package/modern/index.js +1 -1
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/responsiveFontSizes.d.ts +2 -2
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +32 -24
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/legacy/index.js
CHANGED
package/locale/index.d.ts
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
-
export interface Localization {
|
|
3
|
-
components?: {
|
|
4
|
-
MuiAlert?: {
|
|
5
|
-
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
-
};
|
|
7
|
-
MuiBreadcrumbs?: {
|
|
8
|
-
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
-
};
|
|
10
|
-
MuiTablePagination?: {
|
|
11
|
-
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
-
};
|
|
13
|
-
MuiRating?: {
|
|
14
|
-
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
-
};
|
|
16
|
-
MuiAutocomplete?: {
|
|
17
|
-
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
-
};
|
|
19
|
-
MuiPagination?: {
|
|
20
|
-
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const amET: Localization;
|
|
25
|
-
export declare const arEG: Localization;
|
|
26
|
-
export declare const arSA: Localization;
|
|
27
|
-
export declare const arSD: Localization;
|
|
28
|
-
export declare const azAZ: Localization;
|
|
29
|
-
export declare const bnBD: Localization;
|
|
30
|
-
export declare const bgBG: Localization;
|
|
31
|
-
export declare const caES: Localization;
|
|
32
|
-
export declare const csCZ: Localization;
|
|
33
|
-
export declare const daDK: Localization;
|
|
34
|
-
export declare const deDE: Localization;
|
|
35
|
-
export declare const elGR: Localization;
|
|
36
|
-
export declare const enUS: Localization;
|
|
37
|
-
export declare const esES: Localization;
|
|
38
|
-
export declare const etEE: Localization;
|
|
39
|
-
export declare const faIR: Localization;
|
|
40
|
-
export declare const fiFI: Localization;
|
|
41
|
-
export declare const frFR: Localization;
|
|
42
|
-
export declare const heIL: Localization;
|
|
43
|
-
export declare const hiIN: Localization;
|
|
44
|
-
export declare const hrHR: Localization;
|
|
45
|
-
export declare const huHU: Localization;
|
|
46
|
-
export declare const hyAM: Localization;
|
|
47
|
-
export declare const idID: Localization;
|
|
48
|
-
export declare const isIS: Localization;
|
|
49
|
-
export declare const itIT: Localization;
|
|
50
|
-
export declare const jaJP: Localization;
|
|
51
|
-
export declare const khKH: Localization;
|
|
52
|
-
export declare const koKR: Localization;
|
|
53
|
-
export declare const kzKZ: Localization;
|
|
54
|
-
export declare const mkMK: Localization;
|
|
55
|
-
export declare const nbNO: Localization;
|
|
56
|
-
export declare const nlNL: Localization;
|
|
57
|
-
export declare const plPL: Localization;
|
|
58
|
-
export declare const ptBR: Localization;
|
|
59
|
-
export declare const ptPT: Localization;
|
|
60
|
-
export declare const roRO: Localization;
|
|
61
|
-
export declare const srRS: Localization;
|
|
62
|
-
export declare const ruRU: Localization;
|
|
63
|
-
export declare const siLK: Localization;
|
|
64
|
-
export declare const skSK: Localization;
|
|
65
|
-
export declare const svSE: Localization;
|
|
66
|
-
export declare const thTH: Localization;
|
|
67
|
-
export declare const trTR: Localization;
|
|
68
|
-
export declare const ukUA: Localization;
|
|
69
|
-
export declare const urPK: Localization;
|
|
70
|
-
export declare const viVN: Localization;
|
|
71
|
-
export declare const zhCN: Localization;
|
|
72
|
-
export declare const zhHK: Localization;
|
|
73
|
-
export declare const zhTW: Localization;
|
|
1
|
+
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const amET: Localization;
|
|
25
|
+
export declare const arEG: Localization;
|
|
26
|
+
export declare const arSA: Localization;
|
|
27
|
+
export declare const arSD: Localization;
|
|
28
|
+
export declare const azAZ: Localization;
|
|
29
|
+
export declare const bnBD: Localization;
|
|
30
|
+
export declare const bgBG: Localization;
|
|
31
|
+
export declare const caES: Localization;
|
|
32
|
+
export declare const csCZ: Localization;
|
|
33
|
+
export declare const daDK: Localization;
|
|
34
|
+
export declare const deDE: Localization;
|
|
35
|
+
export declare const elGR: Localization;
|
|
36
|
+
export declare const enUS: Localization;
|
|
37
|
+
export declare const esES: Localization;
|
|
38
|
+
export declare const etEE: Localization;
|
|
39
|
+
export declare const faIR: Localization;
|
|
40
|
+
export declare const fiFI: Localization;
|
|
41
|
+
export declare const frFR: Localization;
|
|
42
|
+
export declare const heIL: Localization;
|
|
43
|
+
export declare const hiIN: Localization;
|
|
44
|
+
export declare const hrHR: Localization;
|
|
45
|
+
export declare const huHU: Localization;
|
|
46
|
+
export declare const hyAM: Localization;
|
|
47
|
+
export declare const idID: Localization;
|
|
48
|
+
export declare const isIS: Localization;
|
|
49
|
+
export declare const itIT: Localization;
|
|
50
|
+
export declare const jaJP: Localization;
|
|
51
|
+
export declare const khKH: Localization;
|
|
52
|
+
export declare const koKR: Localization;
|
|
53
|
+
export declare const kzKZ: Localization;
|
|
54
|
+
export declare const mkMK: Localization;
|
|
55
|
+
export declare const nbNO: Localization;
|
|
56
|
+
export declare const nlNL: Localization;
|
|
57
|
+
export declare const plPL: Localization;
|
|
58
|
+
export declare const ptBR: Localization;
|
|
59
|
+
export declare const ptPT: Localization;
|
|
60
|
+
export declare const roRO: Localization;
|
|
61
|
+
export declare const srRS: Localization;
|
|
62
|
+
export declare const ruRU: Localization;
|
|
63
|
+
export declare const siLK: Localization;
|
|
64
|
+
export declare const skSK: Localization;
|
|
65
|
+
export declare const svSE: Localization;
|
|
66
|
+
export declare const thTH: Localization;
|
|
67
|
+
export declare const trTR: Localization;
|
|
68
|
+
export declare const ukUA: Localization;
|
|
69
|
+
export declare const urPK: Localization;
|
|
70
|
+
export declare const viVN: Localization;
|
|
71
|
+
export declare const zhCN: Localization;
|
|
72
|
+
export declare const zhHK: Localization;
|
|
73
|
+
export declare const zhTW: Localization;
|
|
File without changes
|
package/modern/Chip/Chip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
|
|
3
|
+
const _excluded = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -292,7 +292,9 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
292
292
|
onKeyDown,
|
|
293
293
|
onKeyUp,
|
|
294
294
|
size = 'medium',
|
|
295
|
-
variant = 'filled'
|
|
295
|
+
variant = 'filled',
|
|
296
|
+
tabIndex,
|
|
297
|
+
skipFocusWhenDisabled = false
|
|
296
298
|
} = props,
|
|
297
299
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
298
300
|
const chipRef = React.useRef(null);
|
|
@@ -382,6 +384,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
382
384
|
onKeyDown: handleKeyDown,
|
|
383
385
|
onKeyUp: handleKeyUp,
|
|
384
386
|
ref: handleRef,
|
|
387
|
+
tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
|
|
385
388
|
ownerState: ownerState
|
|
386
389
|
}, moreProps, other, {
|
|
387
390
|
children: [avatar || icon, /*#__PURE__*/_jsx(ChipLabel, {
|
|
@@ -473,10 +476,20 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
|
|
|
473
476
|
* @default 'medium'
|
|
474
477
|
*/
|
|
475
478
|
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
479
|
+
/**
|
|
480
|
+
* If `true`, allows the disabled chip to escape focus.
|
|
481
|
+
* If `false`, allows the disabled chip to receive focus.
|
|
482
|
+
* @default false
|
|
483
|
+
*/
|
|
484
|
+
skipFocusWhenDisabled: PropTypes.bool,
|
|
476
485
|
/**
|
|
477
486
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
478
487
|
*/
|
|
479
488
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
489
|
+
/**
|
|
490
|
+
* @ignore
|
|
491
|
+
*/
|
|
492
|
+
tabIndex: PropTypes.number,
|
|
480
493
|
/**
|
|
481
494
|
* The variant to use.
|
|
482
495
|
* @default 'filled'
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* @ignore - internal component.
|
|
5
4
|
*/
|
|
6
|
-
const FormControlContext = /*#__PURE__*/React.createContext();
|
|
5
|
+
const FormControlContext = /*#__PURE__*/React.createContext(undefined);
|
|
7
6
|
if (process.env.NODE_ENV !== 'production') {
|
|
8
7
|
FormControlContext.displayName = 'FormControlContext';
|
|
9
8
|
}
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getIconButtonUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiIconButton', slot);
|
|
5
5
|
}
|
|
6
|
-
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
6
|
+
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
7
7
|
export default iconButtonClasses;
|
|
@@ -9,6 +9,7 @@ import { elementTypeAcceptingRef } from '@mui/utils';
|
|
|
9
9
|
import { useThemeProps } from '@mui/system';
|
|
10
10
|
import { NoSsr } from '@mui/base';
|
|
11
11
|
import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
|
|
12
|
+
import useForkRef from '../utils/useForkRef';
|
|
12
13
|
import ownerDocument from '../utils/ownerDocument';
|
|
13
14
|
import ownerWindow from '../utils/ownerWindow';
|
|
14
15
|
import useEventCallback from '../utils/useEventCallback';
|
|
@@ -154,6 +155,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
154
155
|
const swipeAreaRef = React.useRef();
|
|
155
156
|
const backdropRef = React.useRef();
|
|
156
157
|
const paperRef = React.useRef();
|
|
158
|
+
const handleRef = useForkRef(PaperProps.ref, paperRef);
|
|
157
159
|
const touchDetected = React.useRef(false);
|
|
158
160
|
|
|
159
161
|
// Ref for transition duration based on / to match swipe speed
|
|
@@ -448,7 +450,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
448
450
|
style: _extends({
|
|
449
451
|
pointerEvents: variant === 'temporary' && !open ? 'none' : ''
|
|
450
452
|
}, PaperProps.style),
|
|
451
|
-
ref:
|
|
453
|
+
ref: handleRef
|
|
452
454
|
}),
|
|
453
455
|
anchor: anchor,
|
|
454
456
|
transitionDuration: calculatedDurationRef.current || transitionDuration,
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.20.1",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.10.
|
|
51
|
-
"@mui/system": "^5.10.
|
|
52
|
-
"@mui/types": "^7.2.
|
|
53
|
-
"@mui/utils": "^5.10.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.108",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.10.16",
|
|
51
|
+
"@mui/system": "^5.10.16",
|
|
52
|
+
"@mui/types": "^7.2.2",
|
|
53
|
+
"@mui/utils": "^5.10.16",
|
|
54
54
|
"@types/react-transition-group": "^4.4.5",
|
|
55
55
|
"clsx": "^1.2.1",
|
|
56
56
|
"csstype": "^3.1.1",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
-
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
-
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
-
theme?: {
|
|
6
|
-
cssVarPrefix?: string | undefined;
|
|
7
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
-
} | undefined;
|
|
9
|
-
documentNode?: Document | null | undefined;
|
|
10
|
-
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
-
colorSchemeSelector?: string | undefined;
|
|
12
|
-
storageWindow?: Window | null | undefined;
|
|
13
|
-
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
-
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
+
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
+
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
+
theme?: {
|
|
6
|
+
cssVarPrefix?: string | undefined;
|
|
7
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
+
} | undefined;
|
|
9
|
+
documentNode?: Document | null | undefined;
|
|
10
|
+
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
+
colorSchemeSelector?: string | undefined;
|
|
12
|
+
storageWindow?: Window | null | undefined;
|
|
13
|
+
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
+
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
-
*/
|
|
4
|
-
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
-
export default excludeVariablesFromRoot;
|
|
1
|
+
/**
|
|
2
|
+
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
+
*/
|
|
4
|
+
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
+
export default excludeVariablesFromRoot;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getOverlayAlpha: (elevation: number) => string;
|
|
2
|
-
export default getOverlayAlpha;
|
|
1
|
+
declare const getOverlayAlpha: (elevation: number) => string;
|
|
2
|
+
export default getOverlayAlpha;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Breakpoint } from '@mui/system';
|
|
2
|
+
import { Typography } from './createTypography';
|
|
2
3
|
import { Theme } from './createTheme';
|
|
3
|
-
import { Variant } from './createTypography';
|
|
4
4
|
|
|
5
5
|
export interface ResponsiveFontSizesOptions {
|
|
6
6
|
breakpoints?: Breakpoint[];
|
|
7
7
|
disableAlign?: boolean;
|
|
8
8
|
factor?: number;
|
|
9
|
-
variants?:
|
|
9
|
+
variants?: Array<keyof Typography>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export default function responsiveFontSizes(
|
package/transitions/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './transition';
|
|
1
|
+
export * from './transition';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export interface EasingProps {
|
|
6
|
-
easing: string | {
|
|
7
|
-
enter?: string;
|
|
8
|
-
exit?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
-
}
|
|
1
|
+
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
+
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
+
export interface EasingProps {
|
|
6
|
+
easing: string | {
|
|
7
|
+
enter?: string;
|
|
8
|
+
exit?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
+
}
|
package/transitions/utils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const reflow: (node: Element) => number;
|
|
3
|
-
interface ComponentProps {
|
|
4
|
-
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
style: React.CSSProperties | undefined;
|
|
9
|
-
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface Options {
|
|
15
|
-
mode: 'enter' | 'exit';
|
|
16
|
-
}
|
|
17
|
-
interface TransitionProps {
|
|
18
|
-
duration: string | number;
|
|
19
|
-
easing: string | undefined;
|
|
20
|
-
delay: string | undefined;
|
|
21
|
-
}
|
|
22
|
-
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const reflow: (node: Element) => number;
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
easing: string | {
|
|
5
|
+
enter?: string;
|
|
6
|
+
exit?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
style: React.CSSProperties | undefined;
|
|
9
|
+
timeout: number | {
|
|
10
|
+
enter?: number;
|
|
11
|
+
exit?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
mode: 'enter' | 'exit';
|
|
16
|
+
}
|
|
17
|
+
interface TransitionProps {
|
|
18
|
+
duration: string | number;
|
|
19
|
+
easing: string | undefined;
|
|
20
|
+
delay: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.10.
|
|
1
|
+
/** @license MUI v5.10.16
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -7626,10 +7626,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7626
7626
|
* }} options.
|
|
7627
7627
|
* `prefix`: The prefix of the generated CSS variables. This function does not change the value.
|
|
7628
7628
|
*
|
|
7629
|
-
* @returns {{ css: Object, vars: Object
|
|
7629
|
+
* @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).
|
|
7630
7630
|
*
|
|
7631
7631
|
* @example
|
|
7632
|
-
* const { css, vars
|
|
7632
|
+
* const { css, vars } = parser({
|
|
7633
7633
|
* fontSize: 12,
|
|
7634
7634
|
* lineHeight: 1.2,
|
|
7635
7635
|
* palette: { primary: { 500: 'var(--color)' } }
|
|
@@ -7637,7 +7637,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7637
7637
|
*
|
|
7638
7638
|
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
|
|
7639
7639
|
* console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7640
|
-
* console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--color)' } } }
|
|
7641
7640
|
*/
|
|
7642
7641
|
function cssVarsParser(theme, options) {
|
|
7643
7642
|
const {
|
|
@@ -7646,7 +7645,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7646
7645
|
} = options || {};
|
|
7647
7646
|
const css = {};
|
|
7648
7647
|
const vars = {};
|
|
7649
|
-
const parsedTheme = {};
|
|
7650
7648
|
walkObjectDeep(theme, (keys, value, arrayKeys) => {
|
|
7651
7649
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
7652
7650
|
if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
|
|
@@ -7658,14 +7656,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7658
7656
|
assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
|
|
7659
7657
|
}
|
|
7660
7658
|
}
|
|
7661
|
-
assignNestedKeys(parsedTheme, keys, value, arrayKeys);
|
|
7662
7659
|
}, keys => keys[0] === 'vars' // skip 'vars/*' paths
|
|
7663
7660
|
);
|
|
7664
7661
|
|
|
7665
7662
|
return {
|
|
7666
7663
|
css,
|
|
7667
|
-
vars
|
|
7668
|
-
parsedTheme
|
|
7664
|
+
vars
|
|
7669
7665
|
};
|
|
7670
7666
|
}
|
|
7671
7667
|
|
|
@@ -8023,15 +8019,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8023
8019
|
// 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)
|
|
8024
8020
|
const {
|
|
8025
8021
|
css: rootCss,
|
|
8026
|
-
vars: rootVars
|
|
8027
|
-
parsedTheme
|
|
8022
|
+
vars: rootVars
|
|
8028
8023
|
} = cssVarsParser(restThemeProp, {
|
|
8029
8024
|
prefix: cssVarPrefix,
|
|
8030
8025
|
shouldSkipGeneratingVar
|
|
8031
8026
|
});
|
|
8032
8027
|
|
|
8033
8028
|
// 3. Start composing the theme object
|
|
8034
|
-
const theme = _extends({},
|
|
8029
|
+
const theme = _extends({}, restThemeProp, {
|
|
8035
8030
|
components,
|
|
8036
8031
|
colorSchemes,
|
|
8037
8032
|
cssVarPrefix,
|
|
@@ -8047,8 +8042,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8047
8042
|
Object.entries(colorSchemes).forEach(([key, scheme]) => {
|
|
8048
8043
|
const {
|
|
8049
8044
|
css,
|
|
8050
|
-
vars
|
|
8051
|
-
parsedTheme: parsedScheme
|
|
8045
|
+
vars
|
|
8052
8046
|
} = cssVarsParser(scheme, {
|
|
8053
8047
|
prefix: cssVarPrefix,
|
|
8054
8048
|
shouldSkipGeneratingVar
|
|
@@ -8056,12 +8050,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8056
8050
|
theme.vars = deepmerge(theme.vars, vars);
|
|
8057
8051
|
if (key === calculatedColorScheme) {
|
|
8058
8052
|
// 4.1 Merge the selected color scheme to the theme
|
|
8059
|
-
Object.keys(
|
|
8060
|
-
if (
|
|
8053
|
+
Object.keys(scheme).forEach(schemeKey => {
|
|
8054
|
+
if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {
|
|
8061
8055
|
// shallow merge the 1st level structure of the theme.
|
|
8062
|
-
theme[schemeKey] = _extends({}, theme[schemeKey],
|
|
8056
|
+
theme[schemeKey] = _extends({}, theme[schemeKey], scheme[schemeKey]);
|
|
8063
8057
|
} else {
|
|
8064
|
-
theme[schemeKey] =
|
|
8058
|
+
theme[schemeKey] = scheme[schemeKey];
|
|
8065
8059
|
}
|
|
8066
8060
|
});
|
|
8067
8061
|
if (theme.palette) {
|
|
@@ -9956,12 +9950,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
9956
9950
|
/**
|
|
9957
9951
|
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
9958
9952
|
*
|
|
9959
|
-
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` is not applied.
|
|
9953
|
+
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.
|
|
9960
9954
|
* @param otherProps Props of the element.
|
|
9961
9955
|
* @param ownerState
|
|
9962
9956
|
*/
|
|
9963
9957
|
function appendOwnerState(elementType, otherProps, ownerState) {
|
|
9964
|
-
if (isHostComponent(elementType)) {
|
|
9958
|
+
if (elementType === undefined || isHostComponent(elementType)) {
|
|
9965
9959
|
return otherProps;
|
|
9966
9960
|
}
|
|
9967
9961
|
return _extends({}, otherProps, {
|
|
@@ -19213,7 +19207,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19213
19207
|
function getIconButtonUtilityClass(slot) {
|
|
19214
19208
|
return generateUtilityClass('MuiIconButton', slot);
|
|
19215
19209
|
}
|
|
19216
|
-
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
19210
|
+
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
19217
19211
|
var iconButtonClasses$1 = iconButtonClasses;
|
|
19218
19212
|
|
|
19219
19213
|
const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
@@ -20473,7 +20467,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20473
20467
|
const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
|
20474
20468
|
var chipClasses$1 = chipClasses;
|
|
20475
20469
|
|
|
20476
|
-
const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
|
|
20470
|
+
const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
|
|
20477
20471
|
const useUtilityClasses$1x = ownerState => {
|
|
20478
20472
|
const {
|
|
20479
20473
|
classes,
|
|
@@ -20750,7 +20744,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20750
20744
|
onKeyDown,
|
|
20751
20745
|
onKeyUp,
|
|
20752
20746
|
size = 'medium',
|
|
20753
|
-
variant = 'filled'
|
|
20747
|
+
variant = 'filled',
|
|
20748
|
+
tabIndex,
|
|
20749
|
+
skipFocusWhenDisabled = false
|
|
20754
20750
|
} = props,
|
|
20755
20751
|
other = _objectWithoutPropertiesLoose(props, _excluded$1P);
|
|
20756
20752
|
const chipRef = React__namespace.useRef(null);
|
|
@@ -20840,6 +20836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20840
20836
|
onKeyDown: handleKeyDown,
|
|
20841
20837
|
onKeyUp: handleKeyUp,
|
|
20842
20838
|
ref: handleRef,
|
|
20839
|
+
tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
|
|
20843
20840
|
ownerState: ownerState
|
|
20844
20841
|
}, moreProps, other, {
|
|
20845
20842
|
children: [avatar || icon, /*#__PURE__*/jsxRuntime_1(ChipLabel, {
|
|
@@ -20931,10 +20928,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20931
20928
|
* @default 'medium'
|
|
20932
20929
|
*/
|
|
20933
20930
|
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
20931
|
+
/**
|
|
20932
|
+
* If `true`, allows the disabled chip to escape focus.
|
|
20933
|
+
* If `false`, allows the disabled chip to receive focus.
|
|
20934
|
+
* @default false
|
|
20935
|
+
*/
|
|
20936
|
+
skipFocusWhenDisabled: PropTypes.bool,
|
|
20934
20937
|
/**
|
|
20935
20938
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20936
20939
|
*/
|
|
20937
20940
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
20941
|
+
/**
|
|
20942
|
+
* @ignore
|
|
20943
|
+
*/
|
|
20944
|
+
tabIndex: PropTypes.number,
|
|
20938
20945
|
/**
|
|
20939
20946
|
* The variant to use.
|
|
20940
20947
|
* @default 'filled'
|
|
@@ -20962,7 +20969,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20962
20969
|
/**
|
|
20963
20970
|
* @ignore - internal component.
|
|
20964
20971
|
*/
|
|
20965
|
-
const FormControlContext = /*#__PURE__*/React__namespace.createContext();
|
|
20972
|
+
const FormControlContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
20966
20973
|
{
|
|
20967
20974
|
FormControlContext.displayName = 'FormControlContext';
|
|
20968
20975
|
}
|
|
@@ -44344,6 +44351,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44344
44351
|
const swipeAreaRef = React__namespace.useRef();
|
|
44345
44352
|
const backdropRef = React__namespace.useRef();
|
|
44346
44353
|
const paperRef = React__namespace.useRef();
|
|
44354
|
+
const handleRef = useForkRef(PaperProps.ref, paperRef);
|
|
44347
44355
|
const touchDetected = React__namespace.useRef(false);
|
|
44348
44356
|
|
|
44349
44357
|
// Ref for transition duration based on / to match swipe speed
|
|
@@ -44638,7 +44646,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44638
44646
|
style: _extends({
|
|
44639
44647
|
pointerEvents: variant === 'temporary' && !open ? 'none' : ''
|
|
44640
44648
|
}, PaperProps.style),
|
|
44641
|
-
ref:
|
|
44649
|
+
ref: handleRef
|
|
44642
44650
|
}),
|
|
44643
44651
|
anchor: anchor,
|
|
44644
44652
|
transitionDuration: calculatedDurationRef.current || transitionDuration,
|