@mui/material 5.13.5 → 5.13.6
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 +58 -58
- 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/TouchRipple.js +4 -2
- 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 +83 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +42 -42
- 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 +24 -24
- 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 +38 -38
- 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/Modal/Modal.js +8 -0
- package/NativeSelect/nativeSelectClasses.d.ts +34 -34
- package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
- 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 +65 -65
- 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 +32 -32
- 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/stackClasses.d.ts +6 -6
- 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/SvgIcon.js +8 -4
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Tooltip/Tooltip.js +6 -1
- 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/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonBase/TouchRipple.js +4 -2
- package/legacy/Modal/Modal.js +8 -0
- package/legacy/SvgIcon/SvgIcon.js +8 -4
- package/legacy/Tooltip/Tooltip.js +5 -2
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +80 -80
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/ButtonBase/TouchRipple.js +4 -2
- package/modern/Modal/Modal.js +8 -0
- package/modern/SvgIcon/SvgIcon.js +8 -4
- package/modern/Tooltip/Tooltip.js +6 -1
- package/modern/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/ButtonBase/TouchRipple.js +4 -2
- package/node/Modal/Modal.js +8 -0
- package/node/SvgIcon/SvgIcon.js +8 -4
- package/node/Tooltip/Tooltip.js +6 -1
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/styles/CssVarsProvider.d.ts +20 -20
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/experimental_extendTheme.d.ts +1 -0
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/identifier.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 +51 -19
- package/umd/material-ui.production.min.js +4 -4
- 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
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,31 +1,31 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DistributiveOmit } from '@mui/types';
|
|
3
|
-
declare module '@mui/material/OverridableComponent' {
|
|
4
|
-
/**
|
|
5
|
-
* A component whose root component can be controlled via a `component` prop.
|
|
6
|
-
*
|
|
7
|
-
* Adjusts valid props based on the type of `component`.
|
|
8
|
-
*/
|
|
9
|
-
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
10
|
-
<C extends React.ElementType>(props: {
|
|
11
|
-
/**
|
|
12
|
-
* The component used for the root node.
|
|
13
|
-
* Either a string to use a HTML element or a component.
|
|
14
|
-
*/
|
|
15
|
-
component: C;
|
|
16
|
-
} & OverridePropsVer2<M, C>): JSX.Element;
|
|
17
|
-
(props: DefaultComponentPropsVer2<M>): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Props of the component if `component={Component}` is used.
|
|
21
|
-
*/
|
|
22
|
-
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
-
ref?: React.Ref<Element>;
|
|
24
|
-
});
|
|
25
|
-
/**
|
|
26
|
-
* Props if `component={Component}` is NOT used.
|
|
27
|
-
*/
|
|
28
|
-
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
-
ref?: React.Ref<Element>;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DistributiveOmit } from '@mui/types';
|
|
3
|
+
declare module '@mui/material/OverridableComponent' {
|
|
4
|
+
/**
|
|
5
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
6
|
+
*
|
|
7
|
+
* Adjusts valid props based on the type of `component`.
|
|
8
|
+
*/
|
|
9
|
+
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
10
|
+
<C extends React.ElementType>(props: {
|
|
11
|
+
/**
|
|
12
|
+
* The component used for the root node.
|
|
13
|
+
* Either a string to use a HTML element or a component.
|
|
14
|
+
*/
|
|
15
|
+
component: C;
|
|
16
|
+
} & OverridePropsVer2<M, C>): JSX.Element;
|
|
17
|
+
(props: DefaultComponentPropsVer2<M>): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props of the component if `component={Component}` is used.
|
|
21
|
+
*/
|
|
22
|
+
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
+
ref?: React.Ref<Element>;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Props if `component={Component}` is NOT used.
|
|
27
|
+
*/
|
|
28
|
+
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
+
ref?: React.Ref<Element>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.13.
|
|
2
|
+
* @mui/material v5.13.6
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1968,6 +1968,7 @@
|
|
|
1968
1968
|
let timeout;
|
|
1969
1969
|
function debounced(...args) {
|
|
1970
1970
|
const later = () => {
|
|
1971
|
+
// @ts-ignore
|
|
1971
1972
|
func.apply(this, args);
|
|
1972
1973
|
};
|
|
1973
1974
|
clearTimeout(timeout);
|
|
@@ -4270,7 +4271,7 @@
|
|
|
4270
4271
|
|
|
4271
4272
|
var pkg = {
|
|
4272
4273
|
name: "@emotion/react",
|
|
4273
|
-
version: "11.11.
|
|
4274
|
+
version: "11.11.1",
|
|
4274
4275
|
main: "dist/emotion-react.cjs.js",
|
|
4275
4276
|
module: "dist/emotion-react.esm.js",
|
|
4276
4277
|
browser: {
|
|
@@ -14616,6 +14617,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14616
14617
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
14617
14618
|
*/
|
|
14618
14619
|
onClose: PropTypes.func,
|
|
14620
|
+
/**
|
|
14621
|
+
* A function called when a transition enters.
|
|
14622
|
+
*/
|
|
14623
|
+
onTransitionEnter: PropTypes.func,
|
|
14624
|
+
/**
|
|
14625
|
+
* A function called when a transition has exited.
|
|
14626
|
+
*/
|
|
14627
|
+
onTransitionExited: PropTypes.func,
|
|
14619
14628
|
/**
|
|
14620
14629
|
* If `true`, the component is shown.
|
|
14621
14630
|
*/
|
|
@@ -14980,13 +14989,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14980
14989
|
// @ts-ignore
|
|
14981
14990
|
let newValue = event.target.valueAsNumber;
|
|
14982
14991
|
if (marks && step == null) {
|
|
14983
|
-
|
|
14992
|
+
const maxMarksValue = marksValues[marksValues.length - 1];
|
|
14993
|
+
if (newValue > maxMarksValue) {
|
|
14994
|
+
newValue = maxMarksValue;
|
|
14995
|
+
} else if (newValue < marksValues[0]) {
|
|
14996
|
+
newValue = marksValues[0];
|
|
14997
|
+
} else {
|
|
14998
|
+
newValue = newValue < value ? marksValues[marksIndex - 1] : marksValues[marksIndex + 1];
|
|
14999
|
+
}
|
|
14984
15000
|
}
|
|
14985
15001
|
newValue = clamp$2(newValue, min, max);
|
|
14986
|
-
if (marks && step == null) {
|
|
14987
|
-
const currentMarkIndex = marksValues.indexOf(values[index]);
|
|
14988
|
-
newValue = newValue < values[index] ? marksValues[currentMarkIndex - 1] : marksValues[currentMarkIndex + 1];
|
|
14989
|
-
}
|
|
14990
15002
|
if (range) {
|
|
14991
15003
|
// Bound the new value to the thumb's neighbours.
|
|
14992
15004
|
if (disableSwap) {
|
|
@@ -15292,7 +15304,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15292
15304
|
type: 'range',
|
|
15293
15305
|
min: parameters.min,
|
|
15294
15306
|
max: parameters.max,
|
|
15295
|
-
step: (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
|
|
15307
|
+
step: parameters.step === null && parameters.marks ? 'any' : (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
|
|
15296
15308
|
disabled
|
|
15297
15309
|
}, mergedEventHandlers, {
|
|
15298
15310
|
style: _extends({}, visuallyHidden$1, {
|
|
@@ -15888,7 +15900,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15888
15900
|
}) : [];
|
|
15889
15901
|
const previousProps = usePreviousProps$1({
|
|
15890
15902
|
filteredOptions,
|
|
15891
|
-
value
|
|
15903
|
+
value,
|
|
15904
|
+
inputValue
|
|
15892
15905
|
});
|
|
15893
15906
|
React__namespace.useEffect(() => {
|
|
15894
15907
|
const valueChange = value !== previousProps.value;
|
|
@@ -16081,7 +16094,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16081
16094
|
const label2 = value2 ? getOptionLabel(value2) : '';
|
|
16082
16095
|
return label1 === label2;
|
|
16083
16096
|
};
|
|
16084
|
-
if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
|
|
16097
|
+
if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && previousProps.inputValue === inputValue && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
|
|
16085
16098
|
const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];
|
|
16086
16099
|
if (previousHighlightedOption) {
|
|
16087
16100
|
const previousHighlightedOptionExists = filteredOptions.some(option => {
|
|
@@ -16099,8 +16112,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16099
16112
|
return;
|
|
16100
16113
|
}
|
|
16101
16114
|
|
|
16102
|
-
// Check if the previously highlighted option still exists in the updated filtered options list and if the value
|
|
16103
|
-
// If it exists and the value
|
|
16115
|
+
// Check if the previously highlighted option still exists in the updated filtered options list and if the value and inputValue haven't changed
|
|
16116
|
+
// If it exists and the value and the inputValue haven't changed, return, otherwise continue execution
|
|
16104
16117
|
if (checkHighlightedOptionExists()) {
|
|
16105
16118
|
return;
|
|
16106
16119
|
}
|
|
@@ -16717,7 +16730,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16717
16730
|
width: '1em',
|
|
16718
16731
|
height: '1em',
|
|
16719
16732
|
display: 'inline-block',
|
|
16720
|
-
|
|
16733
|
+
// the <svg> will define the property that has `currentColor`
|
|
16734
|
+
// e.g. heroicons uses fill="none" and stroke="currentColor"
|
|
16735
|
+
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
16721
16736
|
flexShrink: 0,
|
|
16722
16737
|
transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
16723
16738
|
duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
|
|
@@ -16753,13 +16768,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16753
16768
|
viewBox = '0 0 24 24'
|
|
16754
16769
|
} = props,
|
|
16755
16770
|
other = _objectWithoutPropertiesLoose(props, _excluded$23);
|
|
16771
|
+
const hasSvgAsChild = /*#__PURE__*/React__namespace.isValidElement(children) && children.type === 'svg';
|
|
16756
16772
|
const ownerState = _extends({}, props, {
|
|
16757
16773
|
color,
|
|
16758
16774
|
component,
|
|
16759
16775
|
fontSize,
|
|
16760
16776
|
instanceFontSize: inProps.fontSize,
|
|
16761
16777
|
inheritViewBox,
|
|
16762
|
-
viewBox
|
|
16778
|
+
viewBox,
|
|
16779
|
+
hasSvgAsChild
|
|
16763
16780
|
});
|
|
16764
16781
|
const more = {};
|
|
16765
16782
|
if (!inheritViewBox) {
|
|
@@ -16774,9 +16791,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16774
16791
|
"aria-hidden": titleAccess ? undefined : true,
|
|
16775
16792
|
role: titleAccess ? 'img' : undefined,
|
|
16776
16793
|
ref: ref
|
|
16777
|
-
}, more, other, {
|
|
16794
|
+
}, more, other, hasSvgAsChild && children.props, {
|
|
16778
16795
|
ownerState: ownerState,
|
|
16779
|
-
children: [children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
|
|
16796
|
+
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
|
|
16780
16797
|
children: titleAccess
|
|
16781
16798
|
}) : null]
|
|
16782
16799
|
}));
|
|
@@ -19029,14 +19046,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19029
19046
|
const ignoringMouseDown = React__namespace.useRef(false);
|
|
19030
19047
|
// We use a timer in order to only show the ripples for touch "click" like events.
|
|
19031
19048
|
// We don't want to display the ripple for touch scroll events.
|
|
19032
|
-
const startTimer = React__namespace.useRef(
|
|
19049
|
+
const startTimer = React__namespace.useRef(0);
|
|
19033
19050
|
|
|
19034
19051
|
// This is the hook called once the previous timeout is ready.
|
|
19035
19052
|
const startTimerCommit = React__namespace.useRef(null);
|
|
19036
19053
|
const container = React__namespace.useRef(null);
|
|
19037
19054
|
React__namespace.useEffect(() => {
|
|
19038
19055
|
return () => {
|
|
19039
|
-
|
|
19056
|
+
if (startTimer.current) {
|
|
19057
|
+
clearTimeout(startTimer.current);
|
|
19058
|
+
}
|
|
19040
19059
|
};
|
|
19041
19060
|
}, []);
|
|
19042
19061
|
const startCommit = React__namespace.useCallback(params => {
|
|
@@ -27759,6 +27778,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27759
27778
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
27760
27779
|
*/
|
|
27761
27780
|
onClose: PropTypes.func,
|
|
27781
|
+
/**
|
|
27782
|
+
* A function called when a transition enters.
|
|
27783
|
+
*/
|
|
27784
|
+
onTransitionEnter: PropTypes.func,
|
|
27785
|
+
/**
|
|
27786
|
+
* A function called when a transition has exited.
|
|
27787
|
+
*/
|
|
27788
|
+
onTransitionExited: PropTypes.func,
|
|
27762
27789
|
/**
|
|
27763
27790
|
* If `true`, the component is shown.
|
|
27764
27791
|
*/
|
|
@@ -43012,7 +43039,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
43012
43039
|
});
|
|
43013
43040
|
const {
|
|
43014
43041
|
arrow = false,
|
|
43015
|
-
children,
|
|
43042
|
+
children: childrenProp,
|
|
43016
43043
|
components = {},
|
|
43017
43044
|
componentsProps = {},
|
|
43018
43045
|
describeChild = false,
|
|
@@ -43040,6 +43067,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
43040
43067
|
TransitionProps
|
|
43041
43068
|
} = props,
|
|
43042
43069
|
other = _objectWithoutPropertiesLoose(props, _excluded$v);
|
|
43070
|
+
|
|
43071
|
+
// to prevent runtime errors, developers will need to provide a child as a React element anyway.
|
|
43072
|
+
const children = /*#__PURE__*/React__namespace.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/jsxRuntime_1("span", {
|
|
43073
|
+
children: childrenProp
|
|
43074
|
+
});
|
|
43043
43075
|
const theme = useTheme();
|
|
43044
43076
|
const isRtl = theme.direction === 'rtl';
|
|
43045
43077
|
const [childNode, setChildNode] = React__namespace.useState();
|