@mui/material 5.13.4 → 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 +129 -4
- 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/Popover.d.ts +13 -2
- package/Popover/Popover.js +3 -2
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +65 -65
- package/README.md +2 -3
- 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/Popover/Popover.js +3 -2
- 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/Popover/Popover.js +3 -2
- 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/Popover/Popover.js +3 -2
- 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 +109 -69
- 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
|
@@ -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: {
|
|
@@ -8555,6 +8556,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8555
8556
|
function createCssVarsProvider(options) {
|
|
8556
8557
|
const {
|
|
8557
8558
|
themeId,
|
|
8559
|
+
/**
|
|
8560
|
+
* This `theme` object needs to follow a certain structure to
|
|
8561
|
+
* be used correctly by the finel `CssVarsProvider`. It should have a
|
|
8562
|
+
* `colorSchemes` key with the light and dark (and any other) palette.
|
|
8563
|
+
* It should also ideally have a vars object created using `prepareCssVars`.
|
|
8564
|
+
*/
|
|
8558
8565
|
theme: defaultTheme = {},
|
|
8559
8566
|
attribute: defaultAttribute = DEFAULT_ATTRIBUTE,
|
|
8560
8567
|
modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,
|
|
@@ -9221,34 +9228,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9221
9228
|
return Container;
|
|
9222
9229
|
}
|
|
9223
9230
|
|
|
9224
|
-
function appendLevel(level) {
|
|
9225
|
-
if (!level) {
|
|
9226
|
-
return '';
|
|
9227
|
-
}
|
|
9228
|
-
return `Level${level}`;
|
|
9229
|
-
}
|
|
9230
|
-
function isNestedContainer(ownerState) {
|
|
9231
|
-
return ownerState.unstable_level > 0 && ownerState.container;
|
|
9232
|
-
}
|
|
9233
|
-
function createGetSelfSpacing(ownerState) {
|
|
9234
|
-
return function getSelfSpacing(axis) {
|
|
9235
|
-
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level)})`;
|
|
9236
|
-
};
|
|
9237
|
-
}
|
|
9238
|
-
function createGetParentSpacing(ownerState) {
|
|
9239
|
-
return function getParentSpacing(axis) {
|
|
9240
|
-
if (ownerState.unstable_level === 0) {
|
|
9241
|
-
return `var(--Grid-${axis}Spacing)`;
|
|
9242
|
-
}
|
|
9243
|
-
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level - 1)})`;
|
|
9244
|
-
};
|
|
9245
|
-
}
|
|
9246
|
-
function getParentColumns(ownerState) {
|
|
9247
|
-
if (ownerState.unstable_level === 0) {
|
|
9248
|
-
return `var(--Grid-columns)`;
|
|
9249
|
-
}
|
|
9250
|
-
return `var(--Grid-columns${appendLevel(ownerState.unstable_level - 1)})`;
|
|
9251
|
-
}
|
|
9252
9231
|
const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));
|
|
9253
9232
|
const traverseBreakpoints = (breakpoints, responsive, iterator) => {
|
|
9254
9233
|
const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.
|
|
@@ -9291,6 +9270,35 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9291
9270
|
}, responsive);
|
|
9292
9271
|
}
|
|
9293
9272
|
};
|
|
9273
|
+
|
|
9274
|
+
function appendLevel(level) {
|
|
9275
|
+
if (!level) {
|
|
9276
|
+
return '';
|
|
9277
|
+
}
|
|
9278
|
+
return `Level${level}`;
|
|
9279
|
+
}
|
|
9280
|
+
function isNestedContainer(ownerState) {
|
|
9281
|
+
return ownerState.unstable_level > 0 && ownerState.container;
|
|
9282
|
+
}
|
|
9283
|
+
function createGetSelfSpacing(ownerState) {
|
|
9284
|
+
return function getSelfSpacing(axis) {
|
|
9285
|
+
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level)})`;
|
|
9286
|
+
};
|
|
9287
|
+
}
|
|
9288
|
+
function createGetParentSpacing(ownerState) {
|
|
9289
|
+
return function getParentSpacing(axis) {
|
|
9290
|
+
if (ownerState.unstable_level === 0) {
|
|
9291
|
+
return `var(--Grid-${axis}Spacing)`;
|
|
9292
|
+
}
|
|
9293
|
+
return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level - 1)})`;
|
|
9294
|
+
};
|
|
9295
|
+
}
|
|
9296
|
+
function getParentColumns(ownerState) {
|
|
9297
|
+
if (ownerState.unstable_level === 0) {
|
|
9298
|
+
return `var(--Grid-columns)`;
|
|
9299
|
+
}
|
|
9300
|
+
return `var(--Grid-columns${appendLevel(ownerState.unstable_level - 1)})`;
|
|
9301
|
+
}
|
|
9294
9302
|
const generateGridSizeStyles = ({
|
|
9295
9303
|
theme,
|
|
9296
9304
|
ownerState
|
|
@@ -11289,11 +11297,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11289
11297
|
*
|
|
11290
11298
|
* Demos:
|
|
11291
11299
|
*
|
|
11292
|
-
* - [Badge](https://mui.com/base/react-badge/#hook)
|
|
11300
|
+
* - [Badge](https://mui.com/base-ui/react-badge/#hook)
|
|
11293
11301
|
*
|
|
11294
11302
|
* API:
|
|
11295
11303
|
*
|
|
11296
|
-
* - [useBadge API](https://mui.com/base/react-badge/hooks-api/#use-badge)
|
|
11304
|
+
* - [useBadge API](https://mui.com/base-ui/react-badge/hooks-api/#use-badge)
|
|
11297
11305
|
*/
|
|
11298
11306
|
function useBadge(parameters) {
|
|
11299
11307
|
const {
|
|
@@ -11335,11 +11343,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11335
11343
|
*
|
|
11336
11344
|
* Demos:
|
|
11337
11345
|
*
|
|
11338
|
-
* - [Click-Away Listener](https://mui.com/base/react-click-away-listener/)
|
|
11346
|
+
* - [Click-Away Listener](https://mui.com/base-ui/react-click-away-listener/)
|
|
11339
11347
|
*
|
|
11340
11348
|
* API:
|
|
11341
11349
|
*
|
|
11342
|
-
* - [ClickAwayListener API](https://mui.com/base/react-click-away-listener/components-api/#click-away-listener)
|
|
11350
|
+
* - [ClickAwayListener API](https://mui.com/base-ui/react-click-away-listener/components-api/#click-away-listener)
|
|
11343
11351
|
*/
|
|
11344
11352
|
function ClickAwayListener(props) {
|
|
11345
11353
|
const {
|
|
@@ -11563,11 +11571,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11563
11571
|
*
|
|
11564
11572
|
* Demos:
|
|
11565
11573
|
*
|
|
11566
|
-
* - [Focus Trap](https://mui.com/base/react-focus-trap/)
|
|
11574
|
+
* - [Focus Trap](https://mui.com/base-ui/react-focus-trap/)
|
|
11567
11575
|
*
|
|
11568
11576
|
* API:
|
|
11569
11577
|
*
|
|
11570
|
-
* - [FocusTrap API](https://mui.com/base/react-focus-trap/components-api/#focus-trap)
|
|
11578
|
+
* - [FocusTrap API](https://mui.com/base-ui/react-focus-trap/components-api/#focus-trap)
|
|
11571
11579
|
*/
|
|
11572
11580
|
function FocusTrap(props) {
|
|
11573
11581
|
const {
|
|
@@ -13615,11 +13623,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13615
13623
|
*
|
|
13616
13624
|
* Demos:
|
|
13617
13625
|
*
|
|
13618
|
-
* - [Portal](https://mui.com/base/react-portal/)
|
|
13626
|
+
* - [Portal](https://mui.com/base-ui/react-portal/)
|
|
13619
13627
|
*
|
|
13620
13628
|
* API:
|
|
13621
13629
|
*
|
|
13622
|
-
* - [Portal API](https://mui.com/base/react-portal/components-api/#portal)
|
|
13630
|
+
* - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)
|
|
13623
13631
|
*/
|
|
13624
13632
|
const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props, forwardedRef) {
|
|
13625
13633
|
const {
|
|
@@ -13854,11 +13862,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13854
13862
|
*
|
|
13855
13863
|
* Demos:
|
|
13856
13864
|
*
|
|
13857
|
-
* - [Popper](https://mui.com/base/react-popper/)
|
|
13865
|
+
* - [Popper](https://mui.com/base-ui/react-popper/)
|
|
13858
13866
|
*
|
|
13859
13867
|
* API:
|
|
13860
13868
|
*
|
|
13861
|
-
* - [Popper API](https://mui.com/base/react-popper/components-api/#popper)
|
|
13869
|
+
* - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)
|
|
13862
13870
|
*/
|
|
13863
13871
|
const Popper$2 = /*#__PURE__*/React__namespace.forwardRef(function Popper(props, forwardedRef) {
|
|
13864
13872
|
const {
|
|
@@ -14312,11 +14320,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14312
14320
|
*
|
|
14313
14321
|
* Demos:
|
|
14314
14322
|
*
|
|
14315
|
-
* - [Modal](https://mui.com/base/react-modal/)
|
|
14323
|
+
* - [Modal](https://mui.com/base-ui/react-modal/)
|
|
14316
14324
|
*
|
|
14317
14325
|
* API:
|
|
14318
14326
|
*
|
|
14319
|
-
* - [Modal API](https://mui.com/base/react-modal/components-api/#modal)
|
|
14327
|
+
* - [Modal API](https://mui.com/base-ui/react-modal/components-api/#modal)
|
|
14320
14328
|
*/
|
|
14321
14329
|
const Modal$2 = /*#__PURE__*/React__namespace.forwardRef(function Modal(props, forwardedRef) {
|
|
14322
14330
|
var _props$ariaHidden, _slots$root;
|
|
@@ -14609,6 +14617,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14609
14617
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
14610
14618
|
*/
|
|
14611
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,
|
|
14612
14628
|
/**
|
|
14613
14629
|
* If `true`, the component is shown.
|
|
14614
14630
|
*/
|
|
@@ -14645,11 +14661,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14645
14661
|
*
|
|
14646
14662
|
* Demos:
|
|
14647
14663
|
*
|
|
14648
|
-
* - [No SSR](https://mui.com/base/react-no-ssr/)
|
|
14664
|
+
* - [No SSR](https://mui.com/base-ui/react-no-ssr/)
|
|
14649
14665
|
*
|
|
14650
14666
|
* API:
|
|
14651
14667
|
*
|
|
14652
|
-
* - [NoSsr API](https://mui.com/base/react-no-ssr/components-api/#no-ssr)
|
|
14668
|
+
* - [NoSsr API](https://mui.com/base-ui/react-no-ssr/components-api/#no-ssr)
|
|
14653
14669
|
*/
|
|
14654
14670
|
function NoSsr(props) {
|
|
14655
14671
|
const {
|
|
@@ -14855,11 +14871,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14855
14871
|
*
|
|
14856
14872
|
* Demos:
|
|
14857
14873
|
*
|
|
14858
|
-
* - [Slider](https://mui.com/base/react-slider/#hook)
|
|
14874
|
+
* - [Slider](https://mui.com/base-ui/react-slider/#hook)
|
|
14859
14875
|
*
|
|
14860
14876
|
* API:
|
|
14861
14877
|
*
|
|
14862
|
-
* - [useSlider API](https://mui.com/base/react-slider/hooks-api/#use-slider)
|
|
14878
|
+
* - [useSlider API](https://mui.com/base-ui/react-slider/hooks-api/#use-slider)
|
|
14863
14879
|
*/
|
|
14864
14880
|
function useSlider(parameters) {
|
|
14865
14881
|
const {
|
|
@@ -14973,13 +14989,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14973
14989
|
// @ts-ignore
|
|
14974
14990
|
let newValue = event.target.valueAsNumber;
|
|
14975
14991
|
if (marks && step == null) {
|
|
14976
|
-
|
|
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
|
+
}
|
|
14977
15000
|
}
|
|
14978
15001
|
newValue = clamp$2(newValue, min, max);
|
|
14979
|
-
if (marks && step == null) {
|
|
14980
|
-
const currentMarkIndex = marksValues.indexOf(values[index]);
|
|
14981
|
-
newValue = newValue < values[index] ? marksValues[currentMarkIndex - 1] : marksValues[currentMarkIndex + 1];
|
|
14982
|
-
}
|
|
14983
15002
|
if (range) {
|
|
14984
15003
|
// Bound the new value to the thumb's neighbours.
|
|
14985
15004
|
if (disableSwap) {
|
|
@@ -15285,7 +15304,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15285
15304
|
type: 'range',
|
|
15286
15305
|
min: parameters.min,
|
|
15287
15306
|
max: parameters.max,
|
|
15288
|
-
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,
|
|
15289
15308
|
disabled
|
|
15290
15309
|
}, mergedEventHandlers, {
|
|
15291
15310
|
style: _extends({}, visuallyHidden$1, {
|
|
@@ -15320,11 +15339,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15320
15339
|
*
|
|
15321
15340
|
* Demos:
|
|
15322
15341
|
*
|
|
15323
|
-
* - [Snackbar](https://mui.com/base/react-snackbar/#hook)
|
|
15342
|
+
* - [Snackbar](https://mui.com/base-ui/react-snackbar/#hook)
|
|
15324
15343
|
*
|
|
15325
15344
|
* API:
|
|
15326
15345
|
*
|
|
15327
|
-
* - [useSnackbar API](https://mui.com/base/react-snackbar/hooks-api/#use-snackbar)
|
|
15346
|
+
* - [useSnackbar API](https://mui.com/base-ui/react-snackbar/hooks-api/#use-snackbar)
|
|
15328
15347
|
*/
|
|
15329
15348
|
function useSnackbar(parameters) {
|
|
15330
15349
|
const {
|
|
@@ -15473,12 +15492,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15473
15492
|
*
|
|
15474
15493
|
* Demos:
|
|
15475
15494
|
*
|
|
15476
|
-
* - [Textarea Autosize](https://mui.com/base/react-textarea-autosize/)
|
|
15495
|
+
* - [Textarea Autosize](https://mui.com/base-ui/react-textarea-autosize/)
|
|
15477
15496
|
* - [Textarea Autosize](https://mui.com/material-ui/react-textarea-autosize/)
|
|
15478
15497
|
*
|
|
15479
15498
|
* API:
|
|
15480
15499
|
*
|
|
15481
|
-
* - [TextareaAutosize API](https://mui.com/base/react-textarea-autosize/components-api/#textarea-autosize)
|
|
15500
|
+
* - [TextareaAutosize API](https://mui.com/base-ui/react-textarea-autosize/components-api/#textarea-autosize)
|
|
15482
15501
|
*/
|
|
15483
15502
|
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, forwardedRef) {
|
|
15484
15503
|
const {
|
|
@@ -15881,7 +15900,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15881
15900
|
}) : [];
|
|
15882
15901
|
const previousProps = usePreviousProps$1({
|
|
15883
15902
|
filteredOptions,
|
|
15884
|
-
value
|
|
15903
|
+
value,
|
|
15904
|
+
inputValue
|
|
15885
15905
|
});
|
|
15886
15906
|
React__namespace.useEffect(() => {
|
|
15887
15907
|
const valueChange = value !== previousProps.value;
|
|
@@ -16074,7 +16094,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16074
16094
|
const label2 = value2 ? getOptionLabel(value2) : '';
|
|
16075
16095
|
return label1 === label2;
|
|
16076
16096
|
};
|
|
16077
|
-
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))) {
|
|
16078
16098
|
const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];
|
|
16079
16099
|
if (previousHighlightedOption) {
|
|
16080
16100
|
const previousHighlightedOptionExists = filteredOptions.some(option => {
|
|
@@ -16092,8 +16112,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16092
16112
|
return;
|
|
16093
16113
|
}
|
|
16094
16114
|
|
|
16095
|
-
// Check if the previously highlighted option still exists in the updated filtered options list and if the value
|
|
16096
|
-
// 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
|
|
16097
16117
|
if (checkHighlightedOptionExists()) {
|
|
16098
16118
|
return;
|
|
16099
16119
|
}
|
|
@@ -16710,7 +16730,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16710
16730
|
width: '1em',
|
|
16711
16731
|
height: '1em',
|
|
16712
16732
|
display: 'inline-block',
|
|
16713
|
-
|
|
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',
|
|
16714
16736
|
flexShrink: 0,
|
|
16715
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', {
|
|
16716
16738
|
duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
|
|
@@ -16746,13 +16768,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16746
16768
|
viewBox = '0 0 24 24'
|
|
16747
16769
|
} = props,
|
|
16748
16770
|
other = _objectWithoutPropertiesLoose(props, _excluded$23);
|
|
16771
|
+
const hasSvgAsChild = /*#__PURE__*/React__namespace.isValidElement(children) && children.type === 'svg';
|
|
16749
16772
|
const ownerState = _extends({}, props, {
|
|
16750
16773
|
color,
|
|
16751
16774
|
component,
|
|
16752
16775
|
fontSize,
|
|
16753
16776
|
instanceFontSize: inProps.fontSize,
|
|
16754
16777
|
inheritViewBox,
|
|
16755
|
-
viewBox
|
|
16778
|
+
viewBox,
|
|
16779
|
+
hasSvgAsChild
|
|
16756
16780
|
});
|
|
16757
16781
|
const more = {};
|
|
16758
16782
|
if (!inheritViewBox) {
|
|
@@ -16767,9 +16791,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16767
16791
|
"aria-hidden": titleAccess ? undefined : true,
|
|
16768
16792
|
role: titleAccess ? 'img' : undefined,
|
|
16769
16793
|
ref: ref
|
|
16770
|
-
}, more, other, {
|
|
16794
|
+
}, more, other, hasSvgAsChild && children.props, {
|
|
16771
16795
|
ownerState: ownerState,
|
|
16772
|
-
children: [children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
|
|
16796
|
+
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
|
|
16773
16797
|
children: titleAccess
|
|
16774
16798
|
}) : null]
|
|
16775
16799
|
}));
|
|
@@ -19022,14 +19046,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19022
19046
|
const ignoringMouseDown = React__namespace.useRef(false);
|
|
19023
19047
|
// We use a timer in order to only show the ripples for touch "click" like events.
|
|
19024
19048
|
// We don't want to display the ripple for touch scroll events.
|
|
19025
|
-
const startTimer = React__namespace.useRef(
|
|
19049
|
+
const startTimer = React__namespace.useRef(0);
|
|
19026
19050
|
|
|
19027
19051
|
// This is the hook called once the previous timeout is ready.
|
|
19028
19052
|
const startTimerCommit = React__namespace.useRef(null);
|
|
19029
19053
|
const container = React__namespace.useRef(null);
|
|
19030
19054
|
React__namespace.useEffect(() => {
|
|
19031
19055
|
return () => {
|
|
19032
|
-
|
|
19056
|
+
if (startTimer.current) {
|
|
19057
|
+
clearTimeout(startTimer.current);
|
|
19058
|
+
}
|
|
19033
19059
|
};
|
|
19034
19060
|
}, []);
|
|
19035
19061
|
const startCommit = React__namespace.useCallback(params => {
|
|
@@ -27752,6 +27778,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27752
27778
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
27753
27779
|
*/
|
|
27754
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,
|
|
27755
27789
|
/**
|
|
27756
27790
|
* If `true`, the component is shown.
|
|
27757
27791
|
*/
|
|
@@ -36129,7 +36163,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36129
36163
|
*/
|
|
36130
36164
|
action: refType$1,
|
|
36131
36165
|
/**
|
|
36132
|
-
* An HTML element,
|
|
36166
|
+
* An HTML element, [PopoverVirtualElement](/material-ui/react-popover/#virtual-element),
|
|
36167
|
+
* or a function that returns either.
|
|
36133
36168
|
* It's used to set the position of the popover.
|
|
36134
36169
|
*/
|
|
36135
36170
|
anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), props => {
|
|
@@ -36141,7 +36176,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36141
36176
|
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
|
|
36142
36177
|
}
|
|
36143
36178
|
} else {
|
|
36144
|
-
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element instance but it's \`${resolvedAnchorEl}\` instead.`].join('\n'));
|
|
36179
|
+
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element or PopoverVirtualElement instance but it's \`${resolvedAnchorEl}\` instead.`].join('\n'));
|
|
36145
36180
|
}
|
|
36146
36181
|
}
|
|
36147
36182
|
return null;
|
|
@@ -43004,7 +43039,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
43004
43039
|
});
|
|
43005
43040
|
const {
|
|
43006
43041
|
arrow = false,
|
|
43007
|
-
children,
|
|
43042
|
+
children: childrenProp,
|
|
43008
43043
|
components = {},
|
|
43009
43044
|
componentsProps = {},
|
|
43010
43045
|
describeChild = false,
|
|
@@ -43032,6 +43067,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
43032
43067
|
TransitionProps
|
|
43033
43068
|
} = props,
|
|
43034
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
|
+
});
|
|
43035
43075
|
const theme = useTheme();
|
|
43036
43076
|
const isRtl = theme.direction === 'rtl';
|
|
43037
43077
|
const [childNode, setChildNode] = React__namespace.useState();
|