@mui/material 5.13.2 → 5.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +14 -2
- package/Autocomplete/autocompleteClasses.d.ts +58 -56
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/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 +97 -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/Hidden/Hidden.js +10 -10
- package/Hidden/withWidth.js +1 -1
- 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/Menu.d.ts +3 -0
- package/Menu/Menu.js +11 -9
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.js +7 -0
- package/MobileStepper/MobileStepper.js +9 -1
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- 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 +34 -3
- package/Popover/Popover.js +76 -28
- 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/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/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +12 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Hidden/Hidden.js +10 -10
- package/legacy/Hidden/withWidth.js +1 -1
- package/legacy/Menu/Menu.js +11 -9
- package/legacy/MenuList/MenuList.js +7 -0
- package/legacy/MobileStepper/MobileStepper.js +9 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/Popover/Popover.js +73 -28
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +80 -80
- package/modern/Autocomplete/Autocomplete.js +14 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Hidden/Hidden.js +10 -10
- package/modern/Hidden/withWidth.js +1 -1
- package/modern/Menu/Menu.js +11 -9
- package/modern/MenuList/MenuList.js +7 -0
- package/modern/MobileStepper/MobileStepper.js +9 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/Popover/Popover.js +75 -28
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +14 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Hidden/Hidden.js +10 -10
- package/node/Hidden/withWidth.js +1 -1
- package/node/Menu/Menu.js +13 -10
- package/node/MenuList/MenuList.js +7 -0
- package/node/MobileStepper/MobileStepper.js +9 -1
- package/node/Modal/Modal.js +1 -1
- package/node/Popover/Popover.js +75 -25
- package/node/index.js +1 -1
- package/package.json +3 -3
- package/styles/CssVarsProvider.d.ts +20 -20
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- 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 +140 -243
- package/umd/material-ui.production.min.js +16 -16
- 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.4
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -9028,7 +9028,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9028
9028
|
}
|
|
9029
9029
|
|
|
9030
9030
|
const _excluded$2i = ["colorSchemes", "components"],
|
|
9031
|
-
_excluded2$
|
|
9031
|
+
_excluded2$d = ["light"];
|
|
9032
9032
|
function prepareCssVars(theme, parserConfig) {
|
|
9033
9033
|
// @ts-ignore - ignore components do not exist
|
|
9034
9034
|
const {
|
|
@@ -9045,7 +9045,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9045
9045
|
const {
|
|
9046
9046
|
light
|
|
9047
9047
|
} = colorSchemes,
|
|
9048
|
-
otherColorSchemes = _objectWithoutPropertiesLoose(colorSchemes, _excluded2$
|
|
9048
|
+
otherColorSchemes = _objectWithoutPropertiesLoose(colorSchemes, _excluded2$d);
|
|
9049
9049
|
Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {
|
|
9050
9050
|
const {
|
|
9051
9051
|
vars,
|
|
@@ -9797,7 +9797,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9797
9797
|
}
|
|
9798
9798
|
|
|
9799
9799
|
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
9800
|
-
_excluded2$
|
|
9800
|
+
_excluded2$c = ["type", "mode"];
|
|
9801
9801
|
function adaptV4Theme(inputTheme) {
|
|
9802
9802
|
{
|
|
9803
9803
|
console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
|
|
@@ -9862,7 +9862,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9862
9862
|
type: typeInput,
|
|
9863
9863
|
mode: modeInput
|
|
9864
9864
|
} = palette,
|
|
9865
|
-
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$
|
|
9865
|
+
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$c);
|
|
9866
9866
|
const finalMode = modeInput || typeInput || 'light';
|
|
9867
9867
|
theme.palette = _extends({
|
|
9868
9868
|
// theme.palette.text.hint
|
|
@@ -10750,7 +10750,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10750
10750
|
var getOverlayAlpha$1 = getOverlayAlpha;
|
|
10751
10751
|
|
|
10752
10752
|
const _excluded$28 = ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar"],
|
|
10753
|
-
_excluded2$
|
|
10753
|
+
_excluded2$b = ["palette"];
|
|
10754
10754
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
10755
10755
|
if (index === 0) {
|
|
10756
10756
|
return undefined;
|
|
@@ -10801,7 +10801,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10801
10801
|
{
|
|
10802
10802
|
palette: lightPalette
|
|
10803
10803
|
} = _createThemeWithoutVa,
|
|
10804
|
-
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$
|
|
10804
|
+
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$b);
|
|
10805
10805
|
const {
|
|
10806
10806
|
palette: darkPalette
|
|
10807
10807
|
} = createTheme({
|
|
@@ -12264,17 +12264,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12264
12264
|
}
|
|
12265
12265
|
}
|
|
12266
12266
|
|
|
12267
|
-
{
|
|
12268
|
-
if (!isHTMLElement$1(arrowElement)) {
|
|
12269
|
-
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
|
12270
|
-
}
|
|
12271
|
-
}
|
|
12272
|
-
|
|
12273
12267
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
12274
|
-
{
|
|
12275
|
-
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
12276
|
-
}
|
|
12277
|
-
|
|
12278
12268
|
return;
|
|
12279
12269
|
}
|
|
12280
12270
|
|
|
@@ -12416,17 +12406,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12416
12406
|
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
12417
12407
|
_options$roundOffsets = options.roundOffsets,
|
|
12418
12408
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
12419
|
-
|
|
12420
|
-
{
|
|
12421
|
-
var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
|
|
12422
|
-
|
|
12423
|
-
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
12424
|
-
return transitionProperty.indexOf(property) >= 0;
|
|
12425
|
-
})) {
|
|
12426
|
-
console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
|
|
12427
|
-
}
|
|
12428
|
-
}
|
|
12429
|
-
|
|
12430
12409
|
var commonStyles = {
|
|
12431
12410
|
placement: getBasePlacement(state.placement),
|
|
12432
12411
|
variation: getVariation(state.placement),
|
|
@@ -12867,10 +12846,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12867
12846
|
|
|
12868
12847
|
if (allowedPlacements.length === 0) {
|
|
12869
12848
|
allowedPlacements = placements$1;
|
|
12870
|
-
|
|
12871
|
-
{
|
|
12872
|
-
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
12873
|
-
}
|
|
12874
12849
|
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
12875
12850
|
|
|
12876
12851
|
|
|
@@ -13422,108 +13397,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13422
13397
|
};
|
|
13423
13398
|
}
|
|
13424
13399
|
|
|
13425
|
-
function format(str) {
|
|
13426
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
13427
|
-
args[_key - 1] = arguments[_key];
|
|
13428
|
-
}
|
|
13429
|
-
|
|
13430
|
-
return [].concat(args).reduce(function (p, c) {
|
|
13431
|
-
return p.replace(/%s/, c);
|
|
13432
|
-
}, str);
|
|
13433
|
-
}
|
|
13434
|
-
|
|
13435
|
-
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
13436
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
13437
|
-
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
13438
|
-
function validateModifiers(modifiers) {
|
|
13439
|
-
modifiers.forEach(function (modifier) {
|
|
13440
|
-
[].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
|
|
13441
|
-
.filter(function (value, index, self) {
|
|
13442
|
-
return self.indexOf(value) === index;
|
|
13443
|
-
}).forEach(function (key) {
|
|
13444
|
-
switch (key) {
|
|
13445
|
-
case 'name':
|
|
13446
|
-
if (typeof modifier.name !== 'string') {
|
|
13447
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
|
|
13448
|
-
}
|
|
13449
|
-
|
|
13450
|
-
break;
|
|
13451
|
-
|
|
13452
|
-
case 'enabled':
|
|
13453
|
-
if (typeof modifier.enabled !== 'boolean') {
|
|
13454
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
13455
|
-
}
|
|
13456
|
-
|
|
13457
|
-
break;
|
|
13458
|
-
|
|
13459
|
-
case 'phase':
|
|
13460
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
13461
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
13462
|
-
}
|
|
13463
|
-
|
|
13464
|
-
break;
|
|
13465
|
-
|
|
13466
|
-
case 'fn':
|
|
13467
|
-
if (typeof modifier.fn !== 'function') {
|
|
13468
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
13469
|
-
}
|
|
13470
|
-
|
|
13471
|
-
break;
|
|
13472
|
-
|
|
13473
|
-
case 'effect':
|
|
13474
|
-
if (modifier.effect != null && typeof modifier.effect !== 'function') {
|
|
13475
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
13476
|
-
}
|
|
13477
|
-
|
|
13478
|
-
break;
|
|
13479
|
-
|
|
13480
|
-
case 'requires':
|
|
13481
|
-
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
13482
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
13483
|
-
}
|
|
13484
|
-
|
|
13485
|
-
break;
|
|
13486
|
-
|
|
13487
|
-
case 'requiresIfExists':
|
|
13488
|
-
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
13489
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
|
|
13490
|
-
}
|
|
13491
|
-
|
|
13492
|
-
break;
|
|
13493
|
-
|
|
13494
|
-
case 'options':
|
|
13495
|
-
case 'data':
|
|
13496
|
-
break;
|
|
13497
|
-
|
|
13498
|
-
default:
|
|
13499
|
-
console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
|
|
13500
|
-
return "\"" + s + "\"";
|
|
13501
|
-
}).join(', ') + "; but \"" + key + "\" was provided.");
|
|
13502
|
-
}
|
|
13503
|
-
|
|
13504
|
-
modifier.requires && modifier.requires.forEach(function (requirement) {
|
|
13505
|
-
if (modifiers.find(function (mod) {
|
|
13506
|
-
return mod.name === requirement;
|
|
13507
|
-
}) == null) {
|
|
13508
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
13509
|
-
}
|
|
13510
|
-
});
|
|
13511
|
-
});
|
|
13512
|
-
});
|
|
13513
|
-
}
|
|
13514
|
-
|
|
13515
|
-
function uniqueBy(arr, fn) {
|
|
13516
|
-
var identifiers = new Set();
|
|
13517
|
-
return arr.filter(function (item) {
|
|
13518
|
-
var identifier = fn(item);
|
|
13519
|
-
|
|
13520
|
-
if (!identifiers.has(identifier)) {
|
|
13521
|
-
identifiers.add(identifier);
|
|
13522
|
-
return true;
|
|
13523
|
-
}
|
|
13524
|
-
});
|
|
13525
|
-
}
|
|
13526
|
-
|
|
13527
13400
|
function mergeByName(modifiers) {
|
|
13528
13401
|
var merged = modifiers.reduce(function (merged, current) {
|
|
13529
13402
|
var existing = merged[current.name];
|
|
@@ -13539,8 +13412,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13539
13412
|
});
|
|
13540
13413
|
}
|
|
13541
13414
|
|
|
13542
|
-
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
13543
|
-
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
13544
13415
|
var DEFAULT_OPTIONS = {
|
|
13545
13416
|
placement: 'bottom',
|
|
13546
13417
|
modifiers: [],
|
|
@@ -13602,42 +13473,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13602
13473
|
|
|
13603
13474
|
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
13604
13475
|
return m.enabled;
|
|
13605
|
-
});
|
|
13606
|
-
// if one of the modifiers is invalid for any reason
|
|
13607
|
-
|
|
13608
|
-
{
|
|
13609
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
13610
|
-
var name = _ref.name;
|
|
13611
|
-
return name;
|
|
13612
|
-
});
|
|
13613
|
-
validateModifiers(modifiers);
|
|
13614
|
-
|
|
13615
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
13616
|
-
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
13617
|
-
var name = _ref2.name;
|
|
13618
|
-
return name === 'flip';
|
|
13619
|
-
});
|
|
13620
|
-
|
|
13621
|
-
if (!flipModifier) {
|
|
13622
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
13623
|
-
}
|
|
13624
|
-
}
|
|
13625
|
-
|
|
13626
|
-
var _getComputedStyle = getComputedStyle(popper),
|
|
13627
|
-
marginTop = _getComputedStyle.marginTop,
|
|
13628
|
-
marginRight = _getComputedStyle.marginRight,
|
|
13629
|
-
marginBottom = _getComputedStyle.marginBottom,
|
|
13630
|
-
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
13631
|
-
// cause bugs with positioning, so we'll warn the consumer
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
13635
|
-
return parseFloat(margin);
|
|
13636
|
-
})) {
|
|
13637
|
-
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
13638
|
-
}
|
|
13639
|
-
}
|
|
13640
|
-
|
|
13476
|
+
});
|
|
13641
13477
|
runModifierEffects();
|
|
13642
13478
|
return instance.update();
|
|
13643
13479
|
},
|
|
@@ -13657,10 +13493,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13657
13493
|
// anymore
|
|
13658
13494
|
|
|
13659
13495
|
if (!areValidElements(reference, popper)) {
|
|
13660
|
-
{
|
|
13661
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
13662
|
-
}
|
|
13663
|
-
|
|
13664
13496
|
return;
|
|
13665
13497
|
} // Store the reference and popper rects to be read by modifiers
|
|
13666
13498
|
|
|
@@ -13683,18 +13515,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13683
13515
|
state.orderedModifiers.forEach(function (modifier) {
|
|
13684
13516
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
13685
13517
|
});
|
|
13686
|
-
var __debug_loops__ = 0;
|
|
13687
13518
|
|
|
13688
13519
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
13689
|
-
{
|
|
13690
|
-
__debug_loops__ += 1;
|
|
13691
|
-
|
|
13692
|
-
if (__debug_loops__ > 100) {
|
|
13693
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
13694
|
-
break;
|
|
13695
|
-
}
|
|
13696
|
-
}
|
|
13697
|
-
|
|
13698
13520
|
if (state.reset === true) {
|
|
13699
13521
|
state.reset = false;
|
|
13700
13522
|
index = -1;
|
|
@@ -13732,10 +13554,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13732
13554
|
};
|
|
13733
13555
|
|
|
13734
13556
|
if (!areValidElements(reference, popper)) {
|
|
13735
|
-
{
|
|
13736
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
13737
|
-
}
|
|
13738
|
-
|
|
13739
13557
|
return instance;
|
|
13740
13558
|
}
|
|
13741
13559
|
|
|
@@ -13750,11 +13568,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13750
13568
|
// one.
|
|
13751
13569
|
|
|
13752
13570
|
function runModifierEffects() {
|
|
13753
|
-
state.orderedModifiers.forEach(function (
|
|
13754
|
-
var name =
|
|
13755
|
-
|
|
13756
|
-
options =
|
|
13757
|
-
effect =
|
|
13571
|
+
state.orderedModifiers.forEach(function (_ref) {
|
|
13572
|
+
var name = _ref.name,
|
|
13573
|
+
_ref$options = _ref.options,
|
|
13574
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
13575
|
+
effect = _ref.effect;
|
|
13758
13576
|
|
|
13759
13577
|
if (typeof effect === 'function') {
|
|
13760
13578
|
var cleanupFn = effect({
|
|
@@ -13876,7 +13694,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13876
13694
|
generateUtilityClasses('MuiPopper', ['root']);
|
|
13877
13695
|
|
|
13878
13696
|
const _excluded$26 = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
|
|
13879
|
-
_excluded2$
|
|
13697
|
+
_excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
13880
13698
|
function flipPlacement(placement, direction) {
|
|
13881
13699
|
if (direction === 'ltr') {
|
|
13882
13700
|
return placement;
|
|
@@ -14060,7 +13878,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14060
13878
|
slotProps = {},
|
|
14061
13879
|
slots = {}
|
|
14062
13880
|
} = props,
|
|
14063
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
13881
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$a);
|
|
14064
13882
|
const [exited, setExited] = React__namespace.useState(true);
|
|
14065
13883
|
const handleEnter = () => {
|
|
14066
13884
|
setExited(false);
|
|
@@ -22612,7 +22430,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22612
22430
|
var autocompleteClasses$1 = autocompleteClasses;
|
|
22613
22431
|
|
|
22614
22432
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
22615
|
-
const _excluded$1N = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]
|
|
22433
|
+
const _excluded$1N = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
22434
|
+
_excluded2$9 = ["ref"];
|
|
22616
22435
|
const useUtilityClasses$1w = ownerState => {
|
|
22617
22436
|
const {
|
|
22618
22437
|
classes,
|
|
@@ -23043,6 +22862,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23043
22862
|
const {
|
|
23044
22863
|
onMouseDown: handleInputMouseDown
|
|
23045
22864
|
} = getInputProps();
|
|
22865
|
+
const {
|
|
22866
|
+
ref: externalListboxRef
|
|
22867
|
+
} = ListboxProps != null ? ListboxProps : {};
|
|
22868
|
+
const _getListboxProps = getListboxProps(),
|
|
22869
|
+
{
|
|
22870
|
+
ref: listboxRef
|
|
22871
|
+
} = _getListboxProps,
|
|
22872
|
+
otherListboxProps = _objectWithoutPropertiesLoose(_getListboxProps, _excluded2$9);
|
|
22873
|
+
const combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
|
|
23046
22874
|
|
|
23047
22875
|
// If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
23048
22876
|
const ownerState = _extends({}, props, {
|
|
@@ -23201,7 +23029,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23201
23029
|
as: ListboxComponent,
|
|
23202
23030
|
className: classes.listbox,
|
|
23203
23031
|
ownerState: ownerState
|
|
23204
|
-
},
|
|
23032
|
+
}, otherListboxProps, ListboxProps, {
|
|
23033
|
+
ref: combinedListboxRef,
|
|
23205
23034
|
children: groupedOptions.map((option, index) => {
|
|
23206
23035
|
if (groupBy) {
|
|
23207
23036
|
return renderGroup({
|
|
@@ -27769,7 +27598,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27769
27598
|
className: clsx(className, rootSlotProps == null ? void 0 : rootSlotProps.className, classes == null ? void 0 : classes.root, !ownerState.open && ownerState.exited && (classes == null ? void 0 : classes.hidden))
|
|
27770
27599
|
}),
|
|
27771
27600
|
backdrop: () => _extends({}, BackdropProps, resolveComponentProps(backdropSlotProps, ownerState), {
|
|
27772
|
-
className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, classes == null ? void 0 : classes.backdrop)
|
|
27601
|
+
className: clsx(backdropSlotProps == null ? void 0 : backdropSlotProps.className, BackdropProps == null ? void 0 : BackdropProps.className, classes == null ? void 0 : classes.backdrop)
|
|
27773
27602
|
})
|
|
27774
27603
|
},
|
|
27775
27604
|
onTransitionEnter: () => setExited(false),
|
|
@@ -32067,7 +31896,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32067
31896
|
return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
|
|
32068
31897
|
};
|
|
32069
31898
|
|
|
32070
|
-
// By default, returns true if screen width is
|
|
31899
|
+
// By default, returns true if screen width is less than the given breakpoint.
|
|
32071
31900
|
const isWidthDown = (breakpoint, width, inclusive = false) => {
|
|
32072
31901
|
if (inclusive) {
|
|
32073
31902
|
return breakpointKeys.indexOf(width) <= breakpointKeys.indexOf(breakpoint);
|
|
@@ -32510,22 +32339,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32510
32339
|
*/
|
|
32511
32340
|
initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
32512
32341
|
/**
|
|
32513
|
-
* If `true`, screens
|
|
32342
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32514
32343
|
* @default false
|
|
32515
32344
|
*/
|
|
32516
32345
|
lgDown: PropTypes.bool,
|
|
32517
32346
|
/**
|
|
32518
|
-
* If `true`, screens this size and
|
|
32347
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32519
32348
|
* @default false
|
|
32520
32349
|
*/
|
|
32521
32350
|
lgUp: PropTypes.bool,
|
|
32522
32351
|
/**
|
|
32523
|
-
* If `true`, screens
|
|
32352
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32524
32353
|
* @default false
|
|
32525
32354
|
*/
|
|
32526
32355
|
mdDown: PropTypes.bool,
|
|
32527
32356
|
/**
|
|
32528
|
-
* If `true`, screens this size and
|
|
32357
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32529
32358
|
* @default false
|
|
32530
32359
|
*/
|
|
32531
32360
|
mdUp: PropTypes.bool,
|
|
@@ -32534,32 +32363,32 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32534
32363
|
*/
|
|
32535
32364
|
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
|
|
32536
32365
|
/**
|
|
32537
|
-
* If `true`, screens
|
|
32366
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32538
32367
|
* @default false
|
|
32539
32368
|
*/
|
|
32540
32369
|
smDown: PropTypes.bool,
|
|
32541
32370
|
/**
|
|
32542
|
-
* If `true`, screens this size and
|
|
32371
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32543
32372
|
* @default false
|
|
32544
32373
|
*/
|
|
32545
32374
|
smUp: PropTypes.bool,
|
|
32546
32375
|
/**
|
|
32547
|
-
* If `true`, screens
|
|
32376
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32548
32377
|
* @default false
|
|
32549
32378
|
*/
|
|
32550
32379
|
xlDown: PropTypes.bool,
|
|
32551
32380
|
/**
|
|
32552
|
-
* If `true`, screens this size and
|
|
32381
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32553
32382
|
* @default false
|
|
32554
32383
|
*/
|
|
32555
32384
|
xlUp: PropTypes.bool,
|
|
32556
32385
|
/**
|
|
32557
|
-
* If `true`, screens
|
|
32386
|
+
* If `true`, component is hidden on screens below (but not including) this size.
|
|
32558
32387
|
* @default false
|
|
32559
32388
|
*/
|
|
32560
32389
|
xsDown: PropTypes.bool,
|
|
32561
32390
|
/**
|
|
32562
|
-
* If `true`, screens this size and
|
|
32391
|
+
* If `true`, component is hidden on screens this size and above.
|
|
32563
32392
|
* @default false
|
|
32564
32393
|
*/
|
|
32565
32394
|
xsUp: PropTypes.bool
|
|
@@ -35859,6 +35688,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35859
35688
|
// item and use the first valid item as a fallback
|
|
35860
35689
|
React__namespace.Children.forEach(children, (child, index) => {
|
|
35861
35690
|
if (! /*#__PURE__*/React__namespace.isValidElement(child)) {
|
|
35691
|
+
if (activeItemIndex === index) {
|
|
35692
|
+
activeItemIndex += 1;
|
|
35693
|
+
if (activeItemIndex >= children.length) {
|
|
35694
|
+
// there are no focusable items within the list.
|
|
35695
|
+
activeItemIndex = -1;
|
|
35696
|
+
}
|
|
35697
|
+
}
|
|
35862
35698
|
return;
|
|
35863
35699
|
}
|
|
35864
35700
|
{
|
|
@@ -35958,7 +35794,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35958
35794
|
var popoverClasses$1 = popoverClasses;
|
|
35959
35795
|
|
|
35960
35796
|
const _excluded$S = ["onEntering"],
|
|
35961
|
-
_excluded2$6 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]
|
|
35797
|
+
_excluded2$6 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"],
|
|
35798
|
+
_excluded3$1 = ["slotProps"];
|
|
35962
35799
|
function getOffsetTop(rect, vertical) {
|
|
35963
35800
|
let offset = 0;
|
|
35964
35801
|
if (typeof vertical === 'number') {
|
|
@@ -36020,6 +35857,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36020
35857
|
outline: 0
|
|
36021
35858
|
});
|
|
36022
35859
|
const Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProps, ref) {
|
|
35860
|
+
var _slotProps$paper, _slots$root, _slots$paper;
|
|
36023
35861
|
const props = useThemeProps({
|
|
36024
35862
|
props: inProps,
|
|
36025
35863
|
name: 'MuiPopover'
|
|
@@ -36039,7 +35877,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36039
35877
|
elevation = 8,
|
|
36040
35878
|
marginThreshold = 16,
|
|
36041
35879
|
open,
|
|
36042
|
-
PaperProps = {},
|
|
35880
|
+
PaperProps: PaperPropsProp = {},
|
|
35881
|
+
slots,
|
|
35882
|
+
slotProps,
|
|
36043
35883
|
transformOrigin = {
|
|
36044
35884
|
vertical: 'top',
|
|
36045
35885
|
horizontal: 'left'
|
|
@@ -36052,14 +35892,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36052
35892
|
} = props,
|
|
36053
35893
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$S),
|
|
36054
35894
|
other = _objectWithoutPropertiesLoose(props, _excluded2$6);
|
|
35895
|
+
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
36055
35896
|
const paperRef = React__namespace.useRef();
|
|
36056
|
-
const handlePaperRef = useForkRef(paperRef,
|
|
35897
|
+
const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
|
|
36057
35898
|
const ownerState = _extends({}, props, {
|
|
36058
35899
|
anchorOrigin,
|
|
36059
35900
|
anchorReference,
|
|
36060
35901
|
elevation,
|
|
36061
35902
|
marginThreshold,
|
|
36062
|
-
|
|
35903
|
+
externalPaperSlotProps,
|
|
36063
35904
|
transformOrigin,
|
|
36064
35905
|
TransitionComponent,
|
|
36065
35906
|
transitionDuration: transitionDurationProp,
|
|
@@ -36224,16 +36065,46 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36224
36065
|
// If the anchorEl prop is provided, use its parent body element as the container
|
|
36225
36066
|
// If neither are provided let the Modal take care of choosing the container
|
|
36226
36067
|
const container = containerProp || (anchorEl ? ownerDocument(resolveAnchorEl(anchorEl)).body : undefined);
|
|
36227
|
-
|
|
36228
|
-
|
|
36229
|
-
|
|
36068
|
+
const RootSlot = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : PopoverRoot;
|
|
36069
|
+
const PaperSlot = (_slots$paper = slots == null ? void 0 : slots.paper) != null ? _slots$paper : PopoverPaper;
|
|
36070
|
+
const paperProps = useSlotProps({
|
|
36071
|
+
elementType: PaperSlot,
|
|
36072
|
+
externalSlotProps: _extends({}, externalPaperSlotProps, {
|
|
36073
|
+
style: isPositioned ? externalPaperSlotProps.style : _extends({}, externalPaperSlotProps.style, {
|
|
36074
|
+
opacity: 0
|
|
36075
|
+
})
|
|
36076
|
+
}),
|
|
36077
|
+
additionalProps: {
|
|
36078
|
+
elevation,
|
|
36079
|
+
ref: handlePaperRef
|
|
36230
36080
|
},
|
|
36231
|
-
|
|
36232
|
-
|
|
36233
|
-
|
|
36234
|
-
|
|
36235
|
-
|
|
36236
|
-
|
|
36081
|
+
ownerState,
|
|
36082
|
+
className: clsx(classes.paper, externalPaperSlotProps == null ? void 0 : externalPaperSlotProps.className)
|
|
36083
|
+
});
|
|
36084
|
+
const _useSlotProps = useSlotProps({
|
|
36085
|
+
elementType: RootSlot,
|
|
36086
|
+
externalSlotProps: (slotProps == null ? void 0 : slotProps.root) || {},
|
|
36087
|
+
externalForwardedProps: other,
|
|
36088
|
+
additionalProps: {
|
|
36089
|
+
ref,
|
|
36090
|
+
slotProps: {
|
|
36091
|
+
backdrop: {
|
|
36092
|
+
invisible: true
|
|
36093
|
+
}
|
|
36094
|
+
},
|
|
36095
|
+
container,
|
|
36096
|
+
open
|
|
36097
|
+
},
|
|
36098
|
+
ownerState,
|
|
36099
|
+
className: clsx(classes.root, className)
|
|
36100
|
+
}),
|
|
36101
|
+
{
|
|
36102
|
+
slotProps: rootSlotPropsProp
|
|
36103
|
+
} = _useSlotProps,
|
|
36104
|
+
rootProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded3$1);
|
|
36105
|
+
return /*#__PURE__*/jsxRuntime_1(RootSlot, _extends({}, rootProps, !isHostComponent(RootSlot) && {
|
|
36106
|
+
slotProps: rootSlotPropsProp
|
|
36107
|
+
}, {
|
|
36237
36108
|
children: /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
|
|
36238
36109
|
appear: true,
|
|
36239
36110
|
in: open,
|
|
@@ -36241,17 +36112,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36241
36112
|
onExited: handleExited,
|
|
36242
36113
|
timeout: transitionDuration
|
|
36243
36114
|
}, TransitionProps, {
|
|
36244
|
-
children: /*#__PURE__*/jsxRuntime_1(
|
|
36245
|
-
elevation: elevation
|
|
36246
|
-
}, PaperProps, {
|
|
36247
|
-
ref: handlePaperRef,
|
|
36248
|
-
className: clsx(classes.paper, PaperProps.className)
|
|
36249
|
-
}, isPositioned ? undefined : {
|
|
36250
|
-
style: _extends({}, PaperProps.style, {
|
|
36251
|
-
opacity: 0
|
|
36252
|
-
})
|
|
36253
|
-
}, {
|
|
36254
|
-
ownerState: ownerState,
|
|
36115
|
+
children: /*#__PURE__*/jsxRuntime_1(PaperSlot, _extends({}, paperProps, {
|
|
36255
36116
|
children: children
|
|
36256
36117
|
}))
|
|
36257
36118
|
}))
|
|
@@ -36357,11 +36218,34 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36357
36218
|
open: PropTypes.bool.isRequired,
|
|
36358
36219
|
/**
|
|
36359
36220
|
* Props applied to the [`Paper`](/material-ui/api/paper/) element.
|
|
36221
|
+
*
|
|
36222
|
+
* This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.
|
|
36223
|
+
* @deprecated Use `slotProps.paper` instead.
|
|
36224
|
+
*
|
|
36360
36225
|
* @default {}
|
|
36361
36226
|
*/
|
|
36362
36227
|
PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({
|
|
36363
36228
|
component: elementTypeAcceptingRef$1
|
|
36364
36229
|
}),
|
|
36230
|
+
/**
|
|
36231
|
+
* The extra props for the slot components.
|
|
36232
|
+
* You can override the existing props or add new ones.
|
|
36233
|
+
*
|
|
36234
|
+
* @default {}
|
|
36235
|
+
*/
|
|
36236
|
+
slotProps: PropTypes.shape({
|
|
36237
|
+
paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
36238
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
36239
|
+
}),
|
|
36240
|
+
/**
|
|
36241
|
+
* The components used for each slot inside.
|
|
36242
|
+
*
|
|
36243
|
+
* @default {}
|
|
36244
|
+
*/
|
|
36245
|
+
slots: PropTypes.shape({
|
|
36246
|
+
paper: PropTypes.elementType,
|
|
36247
|
+
root: PropTypes.elementType
|
|
36248
|
+
}),
|
|
36365
36249
|
/**
|
|
36366
36250
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36367
36251
|
*/
|
|
@@ -36439,7 +36323,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36439
36323
|
slot: 'Root',
|
|
36440
36324
|
overridesResolver: (props, styles) => styles.root
|
|
36441
36325
|
})({});
|
|
36442
|
-
const MenuPaper = styled$1(
|
|
36326
|
+
const MenuPaper = styled$1(PopoverPaper, {
|
|
36443
36327
|
name: 'MuiMenu',
|
|
36444
36328
|
slot: 'Paper',
|
|
36445
36329
|
overridesResolver: (props, styles) => styles.paper
|
|
@@ -36546,13 +36430,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36546
36430
|
horizontal: isRtl ? 'right' : 'left'
|
|
36547
36431
|
},
|
|
36548
36432
|
transformOrigin: isRtl ? RTL_ORIGIN : LTR_ORIGIN,
|
|
36549
|
-
|
|
36550
|
-
|
|
36551
|
-
},
|
|
36552
|
-
|
|
36553
|
-
|
|
36433
|
+
slots: {
|
|
36434
|
+
paper: MenuPaper
|
|
36435
|
+
},
|
|
36436
|
+
slotProps: {
|
|
36437
|
+
paper: _extends({}, PaperProps, {
|
|
36438
|
+
classes: _extends({}, PaperProps.classes, {
|
|
36439
|
+
root: classes.paper
|
|
36440
|
+
})
|
|
36554
36441
|
})
|
|
36555
|
-
}
|
|
36442
|
+
},
|
|
36556
36443
|
className: classes.root,
|
|
36557
36444
|
open: open,
|
|
36558
36445
|
ref: ref,
|
|
@@ -37026,6 +36913,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37026
36913
|
position,
|
|
37027
36914
|
variant
|
|
37028
36915
|
});
|
|
36916
|
+
let value;
|
|
36917
|
+
if (variant === 'progress') {
|
|
36918
|
+
if (steps === 1) {
|
|
36919
|
+
value = 100;
|
|
36920
|
+
} else {
|
|
36921
|
+
value = Math.ceil(activeStep / (steps - 1) * 100);
|
|
36922
|
+
}
|
|
36923
|
+
}
|
|
37029
36924
|
const classes = useUtilityClasses$G(ownerState);
|
|
37030
36925
|
return /*#__PURE__*/jsxRuntime_2(MobileStepperRoot, _extends({
|
|
37031
36926
|
square: true,
|
|
@@ -37048,7 +36943,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37048
36943
|
ownerState: ownerState,
|
|
37049
36944
|
className: classes.progress,
|
|
37050
36945
|
variant: "determinate",
|
|
37051
|
-
value:
|
|
36946
|
+
value: value
|
|
37052
36947
|
}, LinearProgressProps)), nextButton]
|
|
37053
36948
|
}));
|
|
37054
36949
|
});
|
|
@@ -49963,6 +49858,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49963
49858
|
exports.PaginationItem = PaginationItem$1;
|
|
49964
49859
|
exports.Paper = Paper$1;
|
|
49965
49860
|
exports.Popover = Popover$1;
|
|
49861
|
+
exports.PopoverPaper = PopoverPaper;
|
|
49862
|
+
exports.PopoverRoot = PopoverRoot;
|
|
49966
49863
|
exports.Popper = Popper$1;
|
|
49967
49864
|
exports.Portal = Portal$1;
|
|
49968
49865
|
exports.Radio = Radio$1;
|