@mui/material 5.13.3 → 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/Autocomplete/autocompleteClasses.d.ts +2 -0
- package/CHANGELOG.md +45 -0
- package/Menu/Menu.d.ts +3 -0
- package/Menu/Menu.js +11 -9
- package/MenuList/MenuList.js +7 -0
- package/MobileStepper/MobileStepper.js +9 -1
- package/Popover/Popover.d.ts +34 -3
- package/Popover/Popover.js +76 -28
- package/index.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/Popover/Popover.js +73 -28
- package/legacy/index.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/Popover/Popover.js +75 -28
- package/modern/index.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/Popover/Popover.js +75 -25
- package/node/index.js +1 -1
- package/package.json +3 -3
- package/umd/material-ui.development.js +107 -221
- package/umd/material-ui.production.min.js +6 -6
|
@@ -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
|
|
@@ -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({
|
|
@@ -35870,6 +35688,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35870
35688
|
// item and use the first valid item as a fallback
|
|
35871
35689
|
React__namespace.Children.forEach(children, (child, index) => {
|
|
35872
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
|
+
}
|
|
35873
35698
|
return;
|
|
35874
35699
|
}
|
|
35875
35700
|
{
|
|
@@ -35969,7 +35794,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35969
35794
|
var popoverClasses$1 = popoverClasses;
|
|
35970
35795
|
|
|
35971
35796
|
const _excluded$S = ["onEntering"],
|
|
35972
|
-
_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"];
|
|
35973
35799
|
function getOffsetTop(rect, vertical) {
|
|
35974
35800
|
let offset = 0;
|
|
35975
35801
|
if (typeof vertical === 'number') {
|
|
@@ -36031,6 +35857,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36031
35857
|
outline: 0
|
|
36032
35858
|
});
|
|
36033
35859
|
const Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProps, ref) {
|
|
35860
|
+
var _slotProps$paper, _slots$root, _slots$paper;
|
|
36034
35861
|
const props = useThemeProps({
|
|
36035
35862
|
props: inProps,
|
|
36036
35863
|
name: 'MuiPopover'
|
|
@@ -36050,7 +35877,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36050
35877
|
elevation = 8,
|
|
36051
35878
|
marginThreshold = 16,
|
|
36052
35879
|
open,
|
|
36053
|
-
PaperProps = {},
|
|
35880
|
+
PaperProps: PaperPropsProp = {},
|
|
35881
|
+
slots,
|
|
35882
|
+
slotProps,
|
|
36054
35883
|
transformOrigin = {
|
|
36055
35884
|
vertical: 'top',
|
|
36056
35885
|
horizontal: 'left'
|
|
@@ -36063,14 +35892,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36063
35892
|
} = props,
|
|
36064
35893
|
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$S),
|
|
36065
35894
|
other = _objectWithoutPropertiesLoose(props, _excluded2$6);
|
|
35895
|
+
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
36066
35896
|
const paperRef = React__namespace.useRef();
|
|
36067
|
-
const handlePaperRef = useForkRef(paperRef,
|
|
35897
|
+
const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
|
|
36068
35898
|
const ownerState = _extends({}, props, {
|
|
36069
35899
|
anchorOrigin,
|
|
36070
35900
|
anchorReference,
|
|
36071
35901
|
elevation,
|
|
36072
35902
|
marginThreshold,
|
|
36073
|
-
|
|
35903
|
+
externalPaperSlotProps,
|
|
36074
35904
|
transformOrigin,
|
|
36075
35905
|
TransitionComponent,
|
|
36076
35906
|
transitionDuration: transitionDurationProp,
|
|
@@ -36235,16 +36065,46 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36235
36065
|
// If the anchorEl prop is provided, use its parent body element as the container
|
|
36236
36066
|
// If neither are provided let the Modal take care of choosing the container
|
|
36237
36067
|
const container = containerProp || (anchorEl ? ownerDocument(resolveAnchorEl(anchorEl)).body : undefined);
|
|
36238
|
-
|
|
36239
|
-
|
|
36240
|
-
|
|
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
|
|
36241
36080
|
},
|
|
36242
|
-
|
|
36243
|
-
|
|
36244
|
-
|
|
36245
|
-
|
|
36246
|
-
|
|
36247
|
-
|
|
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
|
+
}, {
|
|
36248
36108
|
children: /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
|
|
36249
36109
|
appear: true,
|
|
36250
36110
|
in: open,
|
|
@@ -36252,17 +36112,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36252
36112
|
onExited: handleExited,
|
|
36253
36113
|
timeout: transitionDuration
|
|
36254
36114
|
}, TransitionProps, {
|
|
36255
|
-
children: /*#__PURE__*/jsxRuntime_1(
|
|
36256
|
-
elevation: elevation
|
|
36257
|
-
}, PaperProps, {
|
|
36258
|
-
ref: handlePaperRef,
|
|
36259
|
-
className: clsx(classes.paper, PaperProps.className)
|
|
36260
|
-
}, isPositioned ? undefined : {
|
|
36261
|
-
style: _extends({}, PaperProps.style, {
|
|
36262
|
-
opacity: 0
|
|
36263
|
-
})
|
|
36264
|
-
}, {
|
|
36265
|
-
ownerState: ownerState,
|
|
36115
|
+
children: /*#__PURE__*/jsxRuntime_1(PaperSlot, _extends({}, paperProps, {
|
|
36266
36116
|
children: children
|
|
36267
36117
|
}))
|
|
36268
36118
|
}))
|
|
@@ -36368,11 +36218,34 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36368
36218
|
open: PropTypes.bool.isRequired,
|
|
36369
36219
|
/**
|
|
36370
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
|
+
*
|
|
36371
36225
|
* @default {}
|
|
36372
36226
|
*/
|
|
36373
36227
|
PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({
|
|
36374
36228
|
component: elementTypeAcceptingRef$1
|
|
36375
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
|
+
}),
|
|
36376
36249
|
/**
|
|
36377
36250
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
36378
36251
|
*/
|
|
@@ -36450,7 +36323,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36450
36323
|
slot: 'Root',
|
|
36451
36324
|
overridesResolver: (props, styles) => styles.root
|
|
36452
36325
|
})({});
|
|
36453
|
-
const MenuPaper = styled$1(
|
|
36326
|
+
const MenuPaper = styled$1(PopoverPaper, {
|
|
36454
36327
|
name: 'MuiMenu',
|
|
36455
36328
|
slot: 'Paper',
|
|
36456
36329
|
overridesResolver: (props, styles) => styles.paper
|
|
@@ -36557,13 +36430,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
36557
36430
|
horizontal: isRtl ? 'right' : 'left'
|
|
36558
36431
|
},
|
|
36559
36432
|
transformOrigin: isRtl ? RTL_ORIGIN : LTR_ORIGIN,
|
|
36560
|
-
|
|
36561
|
-
|
|
36562
|
-
},
|
|
36563
|
-
|
|
36564
|
-
|
|
36433
|
+
slots: {
|
|
36434
|
+
paper: MenuPaper
|
|
36435
|
+
},
|
|
36436
|
+
slotProps: {
|
|
36437
|
+
paper: _extends({}, PaperProps, {
|
|
36438
|
+
classes: _extends({}, PaperProps.classes, {
|
|
36439
|
+
root: classes.paper
|
|
36440
|
+
})
|
|
36565
36441
|
})
|
|
36566
|
-
}
|
|
36442
|
+
},
|
|
36567
36443
|
className: classes.root,
|
|
36568
36444
|
open: open,
|
|
36569
36445
|
ref: ref,
|
|
@@ -37037,6 +36913,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37037
36913
|
position,
|
|
37038
36914
|
variant
|
|
37039
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
|
+
}
|
|
37040
36924
|
const classes = useUtilityClasses$G(ownerState);
|
|
37041
36925
|
return /*#__PURE__*/jsxRuntime_2(MobileStepperRoot, _extends({
|
|
37042
36926
|
square: true,
|
|
@@ -37059,7 +36943,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37059
36943
|
ownerState: ownerState,
|
|
37060
36944
|
className: classes.progress,
|
|
37061
36945
|
variant: "determinate",
|
|
37062
|
-
value:
|
|
36946
|
+
value: value
|
|
37063
36947
|
}, LinearProgressProps)), nextButton]
|
|
37064
36948
|
}));
|
|
37065
36949
|
});
|
|
@@ -49974,6 +49858,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49974
49858
|
exports.PaginationItem = PaginationItem$1;
|
|
49975
49859
|
exports.Paper = Paper$1;
|
|
49976
49860
|
exports.Popover = Popover$1;
|
|
49861
|
+
exports.PopoverPaper = PopoverPaper;
|
|
49862
|
+
exports.PopoverRoot = PopoverRoot;
|
|
49977
49863
|
exports.Popper = Popper$1;
|
|
49978
49864
|
exports.Portal = Portal$1;
|
|
49979
49865
|
exports.Radio = Radio$1;
|