@mui/material 5.11.1 → 5.11.3
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/CHANGELOG.md +108 -0
- package/Popper/Popper.d.ts +1 -1
- package/Popper/Popper.js +11 -7
- package/Select/Select.d.ts +83 -25
- package/Select/SelectInput.js +11 -6
- package/Slider/Slider.js +0 -5
- package/TableCell/TableCell.js +5 -1
- package/index.js +1 -1
- package/legacy/Popper/Popper.js +13 -9
- package/legacy/Select/SelectInput.js +9 -6
- package/legacy/Slider/Slider.js +0 -5
- package/legacy/TableCell/TableCell.js +5 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +195 -116
- package/locale/index.d.ts +1 -0
- package/locale/index.js +79 -4
- package/modern/Popper/Popper.js +11 -7
- package/modern/Select/SelectInput.js +7 -6
- package/modern/Slider/Slider.js +0 -5
- package/modern/TableCell/TableCell.js +5 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +79 -4
- package/node/Popper/Popper.js +11 -7
- package/node/Select/SelectInput.js +11 -6
- package/node/Slider/Slider.js +0 -5
- package/node/TableCell/TableCell.js +5 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +81 -5
- package/package.json +6 -6
- package/umd/material-ui.development.js +154 -83
- package/umd/material-ui.production.min.js +21 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.11.
|
|
1
|
+
/** @license MUI v5.11.3
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -446,6 +446,16 @@
|
|
|
446
446
|
function isPlainObject(item) {
|
|
447
447
|
return item !== null && typeof item === 'object' && item.constructor === Object;
|
|
448
448
|
}
|
|
449
|
+
function deepClone(source) {
|
|
450
|
+
if (!isPlainObject(source)) {
|
|
451
|
+
return source;
|
|
452
|
+
}
|
|
453
|
+
const output = {};
|
|
454
|
+
Object.keys(source).forEach(key => {
|
|
455
|
+
output[key] = deepClone(source[key]);
|
|
456
|
+
});
|
|
457
|
+
return output;
|
|
458
|
+
}
|
|
449
459
|
function deepmerge(target, source, options = {
|
|
450
460
|
clone: true
|
|
451
461
|
}) {
|
|
@@ -459,6 +469,8 @@
|
|
|
459
469
|
if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {
|
|
460
470
|
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
|
|
461
471
|
output[key] = deepmerge(target[key], source[key], options);
|
|
472
|
+
} else if (options.clone) {
|
|
473
|
+
output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
|
|
462
474
|
} else {
|
|
463
475
|
output[key] = source[key];
|
|
464
476
|
}
|
|
@@ -11655,9 +11667,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11655
11667
|
ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
|
|
11656
11668
|
}
|
|
11657
11669
|
|
|
11670
|
+
/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */
|
|
11671
|
+
// Inspired by https://github.com/focus-trap/tabbable
|
|
11658
11672
|
const candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])'].join(',');
|
|
11659
11673
|
function getTabIndex(node) {
|
|
11660
|
-
const tabindexAttr = parseInt(node.getAttribute('tabindex'), 10);
|
|
11674
|
+
const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);
|
|
11661
11675
|
if (!Number.isNaN(tabindexAttr)) {
|
|
11662
11676
|
return tabindexAttr;
|
|
11663
11677
|
}
|
|
@@ -11709,7 +11723,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11709
11723
|
orderedTabNodes.push({
|
|
11710
11724
|
documentOrder: i,
|
|
11711
11725
|
tabIndex: nodeTabIndex,
|
|
11712
|
-
node
|
|
11726
|
+
node: node
|
|
11713
11727
|
});
|
|
11714
11728
|
}
|
|
11715
11729
|
});
|
|
@@ -11721,6 +11735,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11721
11735
|
|
|
11722
11736
|
/**
|
|
11723
11737
|
* Utility component that locks focus inside the component.
|
|
11738
|
+
*
|
|
11739
|
+
* Demos:
|
|
11740
|
+
*
|
|
11741
|
+
* - [Focus Trap](https://mui.com/base/react-focus-trap/)
|
|
11742
|
+
*
|
|
11743
|
+
* API:
|
|
11744
|
+
*
|
|
11745
|
+
* - [FocusTrap API](https://mui.com/base/api/focus-trap/)
|
|
11724
11746
|
*/
|
|
11725
11747
|
function FocusTrap(props) {
|
|
11726
11748
|
const {
|
|
@@ -11732,7 +11754,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11732
11754
|
isEnabled = defaultIsEnabled,
|
|
11733
11755
|
open
|
|
11734
11756
|
} = props;
|
|
11735
|
-
const ignoreNextEnforceFocus = React__namespace.useRef();
|
|
11757
|
+
const ignoreNextEnforceFocus = React__namespace.useRef(false);
|
|
11736
11758
|
const sentinelStart = React__namespace.useRef(null);
|
|
11737
11759
|
const sentinelEnd = React__namespace.useRef(null);
|
|
11738
11760
|
const nodeToRestore = React__namespace.useRef(null);
|
|
@@ -11741,6 +11763,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11741
11763
|
// It waits for the active element to move into the component to activate.
|
|
11742
11764
|
const activated = React__namespace.useRef(false);
|
|
11743
11765
|
const rootRef = React__namespace.useRef(null);
|
|
11766
|
+
// @ts-expect-error TODO upstream fix
|
|
11744
11767
|
const handleRef = useForkRef(children.ref, rootRef);
|
|
11745
11768
|
const lastKeydown = React__namespace.useRef(null);
|
|
11746
11769
|
React__namespace.useEffect(() => {
|
|
@@ -11761,7 +11784,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11761
11784
|
{
|
|
11762
11785
|
console.error(['MUI: The modal content node does not accept focus.', 'For the benefit of assistive technologies, ' + 'the tabIndex of the node is being set to "-1".'].join('\n'));
|
|
11763
11786
|
}
|
|
11764
|
-
rootRef.current.setAttribute('tabIndex', -1);
|
|
11787
|
+
rootRef.current.setAttribute('tabIndex', '-1');
|
|
11765
11788
|
}
|
|
11766
11789
|
if (activated.current) {
|
|
11767
11790
|
rootRef.current.focus();
|
|
@@ -11795,6 +11818,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11795
11818
|
const {
|
|
11796
11819
|
current: rootElement
|
|
11797
11820
|
} = rootRef;
|
|
11821
|
+
|
|
11798
11822
|
// Cleanup functions are executed lazily in React 17.
|
|
11799
11823
|
// Contain can be called between the component being unmounted and its cleanup function being run.
|
|
11800
11824
|
if (rootElement === null) {
|
|
@@ -11823,10 +11847,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11823
11847
|
const isShiftTab = Boolean(((_lastKeydown$current = lastKeydown.current) == null ? void 0 : _lastKeydown$current.shiftKey) && ((_lastKeydown$current2 = lastKeydown.current) == null ? void 0 : _lastKeydown$current2.key) === 'Tab');
|
|
11824
11848
|
const focusNext = tabbable[0];
|
|
11825
11849
|
const focusPrevious = tabbable[tabbable.length - 1];
|
|
11826
|
-
if (
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11850
|
+
if (typeof focusNext !== 'string' && typeof focusPrevious !== 'string') {
|
|
11851
|
+
if (isShiftTab) {
|
|
11852
|
+
focusPrevious.focus();
|
|
11853
|
+
} else {
|
|
11854
|
+
focusNext.focus();
|
|
11855
|
+
}
|
|
11830
11856
|
}
|
|
11831
11857
|
} else {
|
|
11832
11858
|
rootElement.focus();
|
|
@@ -11845,7 +11871,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11845
11871
|
// We need to ignore the next contain as
|
|
11846
11872
|
// it will try to move the focus back to the rootRef element.
|
|
11847
11873
|
ignoreNextEnforceFocus.current = true;
|
|
11848
|
-
sentinelEnd.current
|
|
11874
|
+
if (sentinelEnd.current) {
|
|
11875
|
+
sentinelEnd.current.focus();
|
|
11876
|
+
}
|
|
11849
11877
|
}
|
|
11850
11878
|
};
|
|
11851
11879
|
doc.addEventListener('focusin', contain);
|
|
@@ -11858,8 +11886,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11858
11886
|
// The whatwg spec defines how the browser should behave but does not explicitly mention any events:
|
|
11859
11887
|
// https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule.
|
|
11860
11888
|
const interval = setInterval(() => {
|
|
11861
|
-
if (doc.activeElement.tagName === 'BODY') {
|
|
11862
|
-
contain();
|
|
11889
|
+
if (doc.activeElement && doc.activeElement.tagName === 'BODY') {
|
|
11890
|
+
contain(null);
|
|
11863
11891
|
}
|
|
11864
11892
|
}, 50);
|
|
11865
11893
|
return () => {
|
|
@@ -11905,7 +11933,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11905
11933
|
FocusTrap.propTypes /* remove-proptypes */ = {
|
|
11906
11934
|
// ----------------------------- Warning --------------------------------
|
|
11907
11935
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
11908
|
-
// | To update them edit
|
|
11936
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
11909
11937
|
// ----------------------------------------------------------------------
|
|
11910
11938
|
/**
|
|
11911
11939
|
* A single child content element.
|
|
@@ -11946,7 +11974,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11946
11974
|
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
|
|
11947
11975
|
* This prop should be memoized.
|
|
11948
11976
|
* It can be used to support multiple focus trap mounted at the same time.
|
|
11949
|
-
* @default function defaultIsEnabled() {
|
|
11977
|
+
* @default function defaultIsEnabled(): boolean {
|
|
11950
11978
|
* return true;
|
|
11951
11979
|
* }
|
|
11952
11980
|
*/
|
|
@@ -12015,7 +12043,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12015
12043
|
return node instanceof OwnElement || node instanceof Element;
|
|
12016
12044
|
}
|
|
12017
12045
|
|
|
12018
|
-
function isHTMLElement(node) {
|
|
12046
|
+
function isHTMLElement$1(node) {
|
|
12019
12047
|
var OwnElement = getWindow(node).HTMLElement;
|
|
12020
12048
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
12021
12049
|
}
|
|
@@ -12039,7 +12067,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12039
12067
|
var attributes = state.attributes[name] || {};
|
|
12040
12068
|
var element = state.elements[name]; // arrow is optional + virtual elements
|
|
12041
12069
|
|
|
12042
|
-
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
12070
|
+
if (!isHTMLElement$1(element) || !getNodeName(element)) {
|
|
12043
12071
|
return;
|
|
12044
12072
|
} // Flow doesn't support to extend this property, but it's the most
|
|
12045
12073
|
// effective way to apply styles to an HTMLElement
|
|
@@ -12091,7 +12119,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12091
12119
|
return style;
|
|
12092
12120
|
}, {}); // arrow is optional + virtual elements
|
|
12093
12121
|
|
|
12094
|
-
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
12122
|
+
if (!isHTMLElement$1(element) || !getNodeName(element)) {
|
|
12095
12123
|
return;
|
|
12096
12124
|
}
|
|
12097
12125
|
|
|
@@ -12150,7 +12178,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12150
12178
|
var scaleX = 1;
|
|
12151
12179
|
var scaleY = 1;
|
|
12152
12180
|
|
|
12153
|
-
if (includeScale && isHTMLElement(element)) {
|
|
12181
|
+
if (includeScale && isHTMLElement$1(element)) {
|
|
12154
12182
|
scaleX = element.offsetWidth > 0 ? round$1(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
12155
12183
|
scaleY = element.offsetHeight > 0 ? round$1(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
12156
12184
|
}
|
|
@@ -12255,7 +12283,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12255
12283
|
}
|
|
12256
12284
|
|
|
12257
12285
|
function getTrueOffsetParent(element) {
|
|
12258
|
-
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
12286
|
+
if (!isHTMLElement$1(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
12259
12287
|
getComputedStyle(element).position === 'fixed') {
|
|
12260
12288
|
return null;
|
|
12261
12289
|
}
|
|
@@ -12269,7 +12297,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12269
12297
|
var isFirefox = /firefox/i.test(getUAString());
|
|
12270
12298
|
var isIE = /Trident/i.test(getUAString());
|
|
12271
12299
|
|
|
12272
|
-
if (isIE && isHTMLElement(element)) {
|
|
12300
|
+
if (isIE && isHTMLElement$1(element)) {
|
|
12273
12301
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
12274
12302
|
var elementCss = getComputedStyle(element);
|
|
12275
12303
|
|
|
@@ -12284,7 +12312,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12284
12312
|
currentNode = currentNode.host;
|
|
12285
12313
|
}
|
|
12286
12314
|
|
|
12287
|
-
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
12315
|
+
while (isHTMLElement$1(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
12288
12316
|
var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
12289
12317
|
// create a containing block.
|
|
12290
12318
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
@@ -12412,7 +12440,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12412
12440
|
}
|
|
12413
12441
|
|
|
12414
12442
|
{
|
|
12415
|
-
if (!isHTMLElement(arrowElement)) {
|
|
12443
|
+
if (!isHTMLElement$1(arrowElement)) {
|
|
12416
12444
|
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(' '));
|
|
12417
12445
|
}
|
|
12418
12446
|
}
|
|
@@ -12776,7 +12804,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12776
12804
|
return node.ownerDocument.body;
|
|
12777
12805
|
}
|
|
12778
12806
|
|
|
12779
|
-
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
12807
|
+
if (isHTMLElement$1(node) && isScrollParent(node)) {
|
|
12780
12808
|
return node;
|
|
12781
12809
|
}
|
|
12782
12810
|
|
|
@@ -12838,7 +12866,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
12838
12866
|
function getClippingParents(element) {
|
|
12839
12867
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
12840
12868
|
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
|
|
12841
|
-
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
12869
|
+
var clipperElement = canEscapeClipping && isHTMLElement$1(element) ? getOffsetParent(element) : element;
|
|
12842
12870
|
|
|
12843
12871
|
if (!isElement(clipperElement)) {
|
|
12844
12872
|
return [];
|
|
@@ -13454,7 +13482,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13454
13482
|
}
|
|
13455
13483
|
|
|
13456
13484
|
function getNodeScroll(node) {
|
|
13457
|
-
if (node === getWindow(node) || !isHTMLElement(node)) {
|
|
13485
|
+
if (node === getWindow(node) || !isHTMLElement$1(node)) {
|
|
13458
13486
|
return getWindowScroll(node);
|
|
13459
13487
|
} else {
|
|
13460
13488
|
return getHTMLElementScroll(node);
|
|
@@ -13475,8 +13503,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13475
13503
|
isFixed = false;
|
|
13476
13504
|
}
|
|
13477
13505
|
|
|
13478
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
13479
|
-
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
13506
|
+
var isOffsetParentAnElement = isHTMLElement$1(offsetParent);
|
|
13507
|
+
var offsetParentIsScaled = isHTMLElement$1(offsetParent) && isElementScaled(offsetParent);
|
|
13480
13508
|
var documentElement = getDocumentElement(offsetParent);
|
|
13481
13509
|
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
13482
13510
|
var scroll = {
|
|
@@ -13494,7 +13522,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13494
13522
|
scroll = getNodeScroll(offsetParent);
|
|
13495
13523
|
}
|
|
13496
13524
|
|
|
13497
|
-
if (isHTMLElement(offsetParent)) {
|
|
13525
|
+
if (isHTMLElement$1(offsetParent)) {
|
|
13498
13526
|
offsets = getBoundingClientRect(offsetParent, true);
|
|
13499
13527
|
offsets.x += offsetParent.clientLeft;
|
|
13500
13528
|
offsets.y += offsetParent.clientTop;
|
|
@@ -14012,7 +14040,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14012
14040
|
generateUtilityClasses('MuiPopperUnstyled', ['root']);
|
|
14013
14041
|
|
|
14014
14042
|
const _excluded$27 = ["anchorEl", "children", "component", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps"],
|
|
14015
|
-
_excluded2$9 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
|
|
14043
|
+
_excluded2$9 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
14016
14044
|
function flipPlacement(placement, direction) {
|
|
14017
14045
|
if (direction === 'ltr') {
|
|
14018
14046
|
return placement;
|
|
@@ -14033,6 +14061,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14033
14061
|
function resolveAnchorEl$1(anchorEl) {
|
|
14034
14062
|
return typeof anchorEl === 'function' ? anchorEl() : anchorEl;
|
|
14035
14063
|
}
|
|
14064
|
+
function isHTMLElement(element) {
|
|
14065
|
+
return element.nodeType !== undefined;
|
|
14066
|
+
}
|
|
14067
|
+
function isVirtualElement(element) {
|
|
14068
|
+
return !isHTMLElement(element);
|
|
14069
|
+
}
|
|
14036
14070
|
const useUtilityClasses$1O = () => {
|
|
14037
14071
|
const slots = {
|
|
14038
14072
|
root: ['root']
|
|
@@ -14040,8 +14074,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14040
14074
|
return composeClasses(slots, getPopperUnstyledUtilityClass, {});
|
|
14041
14075
|
};
|
|
14042
14076
|
const defaultPopperOptions = {};
|
|
14043
|
-
|
|
14044
|
-
/* eslint-disable react/prop-types */
|
|
14045
14077
|
const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, ref) {
|
|
14046
14078
|
var _ref;
|
|
14047
14079
|
const {
|
|
@@ -14095,7 +14127,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14095
14127
|
setPlacement(data.placement);
|
|
14096
14128
|
};
|
|
14097
14129
|
{
|
|
14098
|
-
if (resolvedAnchorElement && resolvedAnchorElement.nodeType === 1) {
|
|
14130
|
+
if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {
|
|
14099
14131
|
const box = resolvedAnchorElement.getBoundingClientRect();
|
|
14100
14132
|
if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
14101
14133
|
console.warn(['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'));
|
|
@@ -14140,7 +14172,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14140
14172
|
};
|
|
14141
14173
|
}, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);
|
|
14142
14174
|
const childProps = {
|
|
14143
|
-
placement
|
|
14175
|
+
placement: placement
|
|
14144
14176
|
};
|
|
14145
14177
|
if (TransitionProps !== null) {
|
|
14146
14178
|
childProps.TransitionProps = TransitionProps;
|
|
@@ -14162,10 +14194,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14162
14194
|
children: typeof children === 'function' ? children(childProps) : children
|
|
14163
14195
|
}));
|
|
14164
14196
|
});
|
|
14165
|
-
/* eslint-enable react/prop-types */
|
|
14166
14197
|
|
|
14167
14198
|
/**
|
|
14168
14199
|
* Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.
|
|
14200
|
+
*
|
|
14201
|
+
* Demos:
|
|
14202
|
+
*
|
|
14203
|
+
* - [Unstyled Popper](https://mui.com/base/react-popper/)
|
|
14204
|
+
*
|
|
14205
|
+
* API:
|
|
14206
|
+
*
|
|
14207
|
+
* - [PopperUnstyled API](https://mui.com/base/api/popper-unstyled/)
|
|
14169
14208
|
*/
|
|
14170
14209
|
const PopperUnstyled = /*#__PURE__*/React__namespace.forwardRef(function PopperUnstyled(props, ref) {
|
|
14171
14210
|
const {
|
|
@@ -14181,7 +14220,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14181
14220
|
popperOptions = defaultPopperOptions,
|
|
14182
14221
|
popperRef,
|
|
14183
14222
|
style,
|
|
14184
|
-
transition = false
|
|
14223
|
+
transition = false,
|
|
14224
|
+
slotProps = {},
|
|
14225
|
+
slots = {}
|
|
14185
14226
|
} = props,
|
|
14186
14227
|
other = _objectWithoutPropertiesLoose(props, _excluded2$9);
|
|
14187
14228
|
const [exited, setExited] = React__namespace.useState(true);
|
|
@@ -14198,7 +14239,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14198
14239
|
// If the container prop is provided, use that
|
|
14199
14240
|
// If the anchorEl prop is provided, use its parent body element as the container
|
|
14200
14241
|
// If neither are provided let the Modal take care of choosing the container
|
|
14201
|
-
|
|
14242
|
+
let container;
|
|
14243
|
+
if (containerProp) {
|
|
14244
|
+
container = containerProp;
|
|
14245
|
+
} else if (anchorEl) {
|
|
14246
|
+
const resolvedAnchorEl = resolveAnchorEl$1(anchorEl);
|
|
14247
|
+
container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;
|
|
14248
|
+
}
|
|
14249
|
+
const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;
|
|
14250
|
+
const transitionProps = transition ? {
|
|
14251
|
+
in: open,
|
|
14252
|
+
onEnter: handleEnter,
|
|
14253
|
+
onExited: handleExited
|
|
14254
|
+
} : undefined;
|
|
14202
14255
|
return /*#__PURE__*/jsxRuntime_1(Portal$1, {
|
|
14203
14256
|
disablePortal: disablePortal,
|
|
14204
14257
|
container: container,
|
|
@@ -14211,7 +14264,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14211
14264
|
open: transition ? !exited : open,
|
|
14212
14265
|
placement: placement,
|
|
14213
14266
|
popperOptions: popperOptions,
|
|
14214
|
-
popperRef: popperRef
|
|
14267
|
+
popperRef: popperRef,
|
|
14268
|
+
slotProps: slotProps,
|
|
14269
|
+
slots: slots
|
|
14215
14270
|
}, other, {
|
|
14216
14271
|
style: _extends({
|
|
14217
14272
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
@@ -14219,13 +14274,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14219
14274
|
// Fix Popper.js display issue
|
|
14220
14275
|
top: 0,
|
|
14221
14276
|
left: 0,
|
|
14222
|
-
display
|
|
14277
|
+
display
|
|
14223
14278
|
}, style),
|
|
14224
|
-
TransitionProps:
|
|
14225
|
-
in: open,
|
|
14226
|
-
onEnter: handleEnter,
|
|
14227
|
-
onExited: handleExited
|
|
14228
|
-
} : null,
|
|
14279
|
+
TransitionProps: transitionProps,
|
|
14229
14280
|
children: children
|
|
14230
14281
|
}))
|
|
14231
14282
|
});
|
|
@@ -14233,7 +14284,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14233
14284
|
PopperUnstyled.propTypes /* remove-proptypes */ = {
|
|
14234
14285
|
// ----------------------------- Warning --------------------------------
|
|
14235
14286
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14236
|
-
// | To update them edit
|
|
14287
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
14237
14288
|
// ----------------------------------------------------------------------
|
|
14238
14289
|
/**
|
|
14239
14290
|
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
@@ -14244,12 +14295,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14244
14295
|
anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {
|
|
14245
14296
|
if (props.open) {
|
|
14246
14297
|
const resolvedAnchorEl = resolveAnchorEl$1(props.anchorEl);
|
|
14247
|
-
if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
|
|
14298
|
+
if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {
|
|
14248
14299
|
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
14249
14300
|
if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
14250
14301
|
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'));
|
|
14251
14302
|
}
|
|
14252
|
-
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
14303
|
+
} else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {
|
|
14253
14304
|
return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\n'));
|
|
14254
14305
|
}
|
|
14255
14306
|
}
|
|
@@ -14581,15 +14632,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14581
14632
|
classes
|
|
14582
14633
|
} = ownerState;
|
|
14583
14634
|
const slots = {
|
|
14584
|
-
root: ['root', !open && exited && 'hidden']
|
|
14635
|
+
root: ['root', !open && exited && 'hidden'],
|
|
14636
|
+
backdrop: ['backdrop']
|
|
14585
14637
|
};
|
|
14586
14638
|
return composeClasses(slots, getModalUtilityClass, classes);
|
|
14587
14639
|
};
|
|
14588
14640
|
function getContainer(container) {
|
|
14589
14641
|
return typeof container === 'function' ? container() : container;
|
|
14590
14642
|
}
|
|
14591
|
-
function getHasTransition(
|
|
14592
|
-
return
|
|
14643
|
+
function getHasTransition(children) {
|
|
14644
|
+
return children ? children.props.hasOwnProperty('in') : false;
|
|
14593
14645
|
}
|
|
14594
14646
|
|
|
14595
14647
|
// A modal manager used to track and manage the state of open Modals.
|
|
@@ -14599,17 +14651,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14599
14651
|
/**
|
|
14600
14652
|
* Modal is a lower-level construct that is leveraged by the following components:
|
|
14601
14653
|
*
|
|
14602
|
-
*
|
|
14603
|
-
*
|
|
14604
|
-
*
|
|
14605
|
-
*
|
|
14654
|
+
* * [Dialog](https://mui.com/material-ui/api/dialog/)
|
|
14655
|
+
* * [Drawer](https://mui.com/material-ui/api/drawer/)
|
|
14656
|
+
* * [Menu](https://mui.com/material-ui/api/menu/)
|
|
14657
|
+
* * [Popover](https://mui.com/material-ui/api/popover/)
|
|
14606
14658
|
*
|
|
14607
|
-
* If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component
|
|
14659
|
+
* If you are creating a modal dialog, you probably want to use the [Dialog](https://mui.com/material-ui/api/dialog/) component
|
|
14608
14660
|
* rather than directly using Modal.
|
|
14609
14661
|
*
|
|
14610
14662
|
* This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
|
|
14663
|
+
*
|
|
14664
|
+
* Demos:
|
|
14665
|
+
*
|
|
14666
|
+
* - [Unstyled Modal](https://mui.com/base/react-modal/)
|
|
14667
|
+
*
|
|
14668
|
+
* API:
|
|
14669
|
+
*
|
|
14670
|
+
* - [ModalUnstyled API](https://mui.com/base/api/modal-unstyled/)
|
|
14611
14671
|
*/
|
|
14612
|
-
const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props,
|
|
14672
|
+
const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, forwardedRef) {
|
|
14613
14673
|
var _props$ariaHidden, _ref;
|
|
14614
14674
|
const {
|
|
14615
14675
|
children,
|
|
@@ -14626,13 +14686,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14626
14686
|
hideBackdrop = false,
|
|
14627
14687
|
keepMounted = false,
|
|
14628
14688
|
// private
|
|
14629
|
-
// eslint-disable-next-line react/prop-types
|
|
14630
14689
|
manager = defaultManager,
|
|
14631
14690
|
onBackdropClick,
|
|
14632
14691
|
onClose,
|
|
14633
14692
|
onKeyDown,
|
|
14634
14693
|
open,
|
|
14635
|
-
/* eslint-disable react/prop-types */
|
|
14636
14694
|
onTransitionEnter,
|
|
14637
14695
|
onTransitionExited,
|
|
14638
14696
|
slotProps = {},
|
|
@@ -14643,8 +14701,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14643
14701
|
const modal = React__namespace.useRef({});
|
|
14644
14702
|
const mountNodeRef = React__namespace.useRef(null);
|
|
14645
14703
|
const modalRef = React__namespace.useRef(null);
|
|
14646
|
-
const handleRef = useForkRef(modalRef,
|
|
14647
|
-
const hasTransition = getHasTransition(
|
|
14704
|
+
const handleRef = useForkRef(modalRef, forwardedRef);
|
|
14705
|
+
const hasTransition = getHasTransition(children);
|
|
14648
14706
|
const ariaHiddenProp = (_props$ariaHidden = props['aria-hidden']) != null ? _props$ariaHidden : true;
|
|
14649
14707
|
const getDoc = () => ownerDocument(mountNodeRef.current);
|
|
14650
14708
|
const getModal = () => {
|
|
@@ -14658,7 +14716,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14658
14716
|
});
|
|
14659
14717
|
|
|
14660
14718
|
// Fix a bug on Chrome where the scroll isn't initially 0.
|
|
14661
|
-
modalRef.current
|
|
14719
|
+
if (modalRef.current) {
|
|
14720
|
+
modalRef.current.scrollTop = 0;
|
|
14721
|
+
}
|
|
14662
14722
|
};
|
|
14663
14723
|
const handleOpen = useEventCallback(() => {
|
|
14664
14724
|
const resolvedContainer = getContainer(container) || getDoc().body;
|
|
@@ -14672,7 +14732,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14672
14732
|
const isTopModal = React__namespace.useCallback(() => manager.isTopModal(getModal()), [manager]);
|
|
14673
14733
|
const handlePortalRef = useEventCallback(node => {
|
|
14674
14734
|
mountNodeRef.current = node;
|
|
14675
|
-
if (!node) {
|
|
14735
|
+
if (!node || !modalRef.current) {
|
|
14676
14736
|
return;
|
|
14677
14737
|
}
|
|
14678
14738
|
if (open && isTopModal()) {
|
|
@@ -14796,7 +14856,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14796
14856
|
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
14797
14857
|
return null;
|
|
14798
14858
|
}
|
|
14799
|
-
return /*#__PURE__*/jsxRuntime_1(Portal$1
|
|
14859
|
+
return /*#__PURE__*/jsxRuntime_1(Portal$1
|
|
14860
|
+
// @ts-expect-error TODO: include ref to MUI Base Portal props
|
|
14861
|
+
, {
|
|
14800
14862
|
ref: handlePortalRef,
|
|
14801
14863
|
container: container,
|
|
14802
14864
|
disablePortal: disablePortal,
|
|
@@ -14815,7 +14877,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14815
14877
|
ModalUnstyled.propTypes /* remove-proptypes */ = {
|
|
14816
14878
|
// ----------------------------- Warning --------------------------------
|
|
14817
14879
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14818
|
-
// | To update them edit
|
|
14880
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
14819
14881
|
// ----------------------------------------------------------------------
|
|
14820
14882
|
/**
|
|
14821
14883
|
* A single child content element.
|
|
@@ -15944,7 +16006,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15944
16006
|
*/
|
|
15945
16007
|
getAriaValueText: PropTypes.func,
|
|
15946
16008
|
/**
|
|
15947
|
-
*
|
|
16009
|
+
* If `true` the Slider will be rendered right-to-left (with the lowest value on the right-hand side).
|
|
15948
16010
|
* @default false
|
|
15949
16011
|
*/
|
|
15950
16012
|
isRtl: PropTypes.bool,
|
|
@@ -20482,17 +20544,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20482
20544
|
const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
|
|
20483
20545
|
var _slots$root;
|
|
20484
20546
|
const theme = useTheme$2();
|
|
20485
|
-
const
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20547
|
+
const props = useThemeProps({
|
|
20548
|
+
props: inProps,
|
|
20549
|
+
name: 'MuiPopper'
|
|
20550
|
+
});
|
|
20551
|
+
const {
|
|
20490
20552
|
components,
|
|
20491
20553
|
componentsProps,
|
|
20492
20554
|
slots,
|
|
20493
20555
|
slotProps
|
|
20494
|
-
} =
|
|
20495
|
-
other = _objectWithoutPropertiesLoose(
|
|
20556
|
+
} = props,
|
|
20557
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$1R);
|
|
20496
20558
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
20497
20559
|
return /*#__PURE__*/jsxRuntime_1(PopperRoot, _extends({
|
|
20498
20560
|
direction: theme == null ? void 0 : theme.direction,
|
|
@@ -20583,6 +20645,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20583
20645
|
* If `true`, the component is shown.
|
|
20584
20646
|
*/
|
|
20585
20647
|
open: PropTypes.bool.isRequired,
|
|
20648
|
+
/**
|
|
20649
|
+
* @ignore
|
|
20650
|
+
*/
|
|
20651
|
+
ownerState: PropTypes.any,
|
|
20586
20652
|
/**
|
|
20587
20653
|
* Popper placement.
|
|
20588
20654
|
* @default 'bottom'
|
|
@@ -39161,6 +39227,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39161
39227
|
setDisplayNode(node);
|
|
39162
39228
|
}
|
|
39163
39229
|
}, []);
|
|
39230
|
+
const anchorElement = displayNode == null ? void 0 : displayNode.parentNode;
|
|
39164
39231
|
React__namespace.useImperativeHandle(handleRef, () => ({
|
|
39165
39232
|
focus: () => {
|
|
39166
39233
|
displayRef.current.focus();
|
|
@@ -39172,7 +39239,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39172
39239
|
// Resize menu on `defaultOpen` automatic toggle.
|
|
39173
39240
|
React__namespace.useEffect(() => {
|
|
39174
39241
|
if (defaultOpen && openState && displayNode && !isOpenControlled) {
|
|
39175
|
-
setMenuMinWidthState(autoWidth ? null :
|
|
39242
|
+
setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
|
|
39176
39243
|
displayRef.current.focus();
|
|
39177
39244
|
}
|
|
39178
39245
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -39211,7 +39278,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39211
39278
|
onClose(event);
|
|
39212
39279
|
}
|
|
39213
39280
|
if (!isOpenControlled) {
|
|
39214
|
-
setMenuMinWidthState(autoWidth ? null :
|
|
39281
|
+
setMenuMinWidthState(autoWidth ? null : anchorElement.clientWidth);
|
|
39215
39282
|
setOpenState(open);
|
|
39216
39283
|
}
|
|
39217
39284
|
};
|
|
@@ -39331,6 +39398,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39331
39398
|
}
|
|
39332
39399
|
}
|
|
39333
39400
|
const items = childrenArray.map((child, index, arr) => {
|
|
39401
|
+
var _arr$, _arr$$props, _arr$2, _arr$2$props;
|
|
39334
39402
|
if (! /*#__PURE__*/React__namespace.isValidElement(child)) {
|
|
39335
39403
|
return null;
|
|
39336
39404
|
}
|
|
@@ -39367,7 +39435,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39367
39435
|
if (value) {
|
|
39368
39436
|
return selected;
|
|
39369
39437
|
}
|
|
39370
|
-
const firstSelectableElement = arr.find(item =>
|
|
39438
|
+
const firstSelectableElement = arr.find(item => {
|
|
39439
|
+
var _item$props;
|
|
39440
|
+
return (item == null ? void 0 : (_item$props = item.props) == null ? void 0 : _item$props.value) !== undefined && item.props.disabled !== true;
|
|
39441
|
+
});
|
|
39371
39442
|
if (child === firstSelectableElement) {
|
|
39372
39443
|
return true;
|
|
39373
39444
|
}
|
|
@@ -39388,7 +39459,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39388
39459
|
}
|
|
39389
39460
|
},
|
|
39390
39461
|
role: 'option',
|
|
39391
|
-
selected: arr[0]
|
|
39462
|
+
selected: ((_arr$ = arr[0]) == null ? void 0 : (_arr$$props = _arr$.props) == null ? void 0 : _arr$$props.value) === undefined || ((_arr$2 = arr[0]) == null ? void 0 : (_arr$2$props = _arr$2.props) == null ? void 0 : _arr$2$props.disabled) === true ? isFirstSelectableElement() : selected,
|
|
39392
39463
|
value: undefined,
|
|
39393
39464
|
// The value is most likely not a valid HTML attribute.
|
|
39394
39465
|
'data-value': child.props.value // Instead, we provide it as a data attribute.
|
|
@@ -39425,7 +39496,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39425
39496
|
// Avoid performing a layout computation in the render method.
|
|
39426
39497
|
let menuMinWidth = menuMinWidthState;
|
|
39427
39498
|
if (!autoWidth && isOpenControlled && displayNode) {
|
|
39428
|
-
menuMinWidth =
|
|
39499
|
+
menuMinWidth = anchorElement.clientWidth;
|
|
39429
39500
|
}
|
|
39430
39501
|
let tabIndex;
|
|
39431
39502
|
if (typeof tabIndexProp !== 'undefined') {
|
|
@@ -39483,7 +39554,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39483
39554
|
ownerState: ownerState
|
|
39484
39555
|
}), /*#__PURE__*/jsxRuntime_1(Menu$1, _extends({
|
|
39485
39556
|
id: `menu-${name || ''}`,
|
|
39486
|
-
anchorEl:
|
|
39557
|
+
anchorEl: anchorElement,
|
|
39487
39558
|
open: open,
|
|
39488
39559
|
onClose: handleClose,
|
|
39489
39560
|
anchorOrigin: {
|
|
@@ -40725,11 +40796,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40725
40796
|
* @returns {string}
|
|
40726
40797
|
*/
|
|
40727
40798
|
getAriaValueText: PropTypes.func,
|
|
40728
|
-
/**
|
|
40729
|
-
* Indicates whether the theme context has rtl direction. It is set automatically.
|
|
40730
|
-
* @default false
|
|
40731
|
-
*/
|
|
40732
|
-
isRtl: PropTypes.bool,
|
|
40733
40799
|
/**
|
|
40734
40800
|
* Marks indicate predetermined values to which the user can move the slider.
|
|
40735
40801
|
* If `true` the marks are spaced according the value of the `step` prop.
|
|
@@ -45993,7 +46059,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45993
46059
|
component = isHeadCell ? 'th' : 'td';
|
|
45994
46060
|
}
|
|
45995
46061
|
let scope = scopeProp;
|
|
45996
|
-
|
|
46062
|
+
// scope is not a valid attribute for <td/> elements.
|
|
46063
|
+
// source: https://html.spec.whatwg.org/multipage/tables.html#the-td-element
|
|
46064
|
+
if (component === 'td') {
|
|
46065
|
+
scope = undefined;
|
|
46066
|
+
} else if (!scope && isHeadCell) {
|
|
45997
46067
|
scope = 'col';
|
|
45998
46068
|
}
|
|
45999
46069
|
const variant = variantProp || tablelvl2 && tablelvl2.variant;
|
|
@@ -49176,6 +49246,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49176
49246
|
exports.alertTitleClasses = alertTitleClasses$1;
|
|
49177
49247
|
exports.alpha = alpha;
|
|
49178
49248
|
exports.appBarClasses = appBarClasses$1;
|
|
49249
|
+
exports.ariaHidden = ariaHidden;
|
|
49179
49250
|
exports.autocompleteClasses = autocompleteClasses$1;
|
|
49180
49251
|
exports.avatarClasses = avatarClasses$1;
|
|
49181
49252
|
exports.avatarGroupClasses = avatarGroupClasses$1;
|