@mui/material 5.12.2 → 5.13.0
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/Accordion.d.ts +71 -57
- package/AppBar/AppBar.d.ts +9 -7
- package/Autocomplete/Autocomplete.d.ts +2 -1
- package/BottomNavigationAction/BottomNavigationAction.js +4 -1
- package/ButtonGroup/ButtonGroup.js +8 -2
- package/CHANGELOG.md +182 -0
- package/Chip/Chip.js +1 -1
- package/Divider/Divider.js +10 -11
- package/Input/inputClasses.d.ts +4 -0
- package/InputBase/InputBase.js +1 -1
- package/Paper/Paper.d.ts +6 -1
- package/Popper/Popper.d.ts +11 -1
- package/Popper/Popper.js +4 -3
- package/Select/SelectInput.js +6 -4
- package/Slider/Slider.js +1 -1
- package/Snackbar/Snackbar.js +4 -3
- package/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/TextField/TextField.d.ts +21 -2
- package/TextField/TextField.js +7 -1
- package/index.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +7 -3
- package/legacy/Divider/Divider.js +17 -17
- package/legacy/Drawer/Drawer.js +4 -4
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/ListItem/ListItem.js +4 -4
- package/legacy/Menu/Menu.js +4 -4
- package/legacy/Popover/Popover.js +4 -4
- package/legacy/Popper/Popper.js +4 -3
- package/legacy/Select/SelectInput.js +4 -5
- package/legacy/Slider/Slider.js +1 -1
- package/legacy/Snackbar/Snackbar.js +16 -15
- package/legacy/SpeedDial/SpeedDial.js +8 -8
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
- package/legacy/TextField/TextField.js +7 -1
- package/legacy/index.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +8 -0
- package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -1
- package/modern/ButtonGroup/ButtonGroup.js +8 -2
- package/modern/Chip/Chip.js +1 -1
- package/modern/Divider/Divider.js +10 -11
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/Popper/Popper.js +4 -3
- package/modern/Select/SelectInput.js +6 -4
- package/modern/Slider/Slider.js +1 -1
- package/modern/Snackbar/Snackbar.js +4 -3
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/modern/TextField/TextField.js +7 -1
- package/modern/index.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +8 -0
- package/node/BottomNavigationAction/BottomNavigationAction.js +4 -1
- package/node/ButtonBase/Ripple.js +1 -2
- package/node/ButtonGroup/ButtonGroup.js +8 -2
- package/node/Chip/Chip.js +1 -1
- package/node/Divider/Divider.js +10 -11
- package/node/Grid/Grid.js +10 -1
- package/node/Hidden/Hidden.js +2 -2
- package/node/Hidden/HiddenJs.js +1 -2
- package/node/InputBase/InputBase.js +1 -1
- package/node/Popper/Popper.js +4 -3
- package/node/Select/SelectInput.js +6 -4
- package/node/Slide/Slide.js +2 -3
- package/node/Slider/Slider.js +1 -1
- package/node/Snackbar/Snackbar.js +4 -3
- package/node/SpeedDialAction/SpeedDialAction.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +3 -4
- package/node/Switch/Switch.js +1 -1
- package/node/TabScrollButton/TabScrollButton.js +1 -0
- package/node/TablePagination/TablePaginationActions.js +2 -2
- package/node/TextField/TextField.js +7 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/index.js +5 -1
- package/node/useMediaQuery/useMediaQuery.js +12 -0
- package/node/utils/createSvgIcon.js +1 -2
- package/package.json +6 -6
- package/umd/material-ui.development.js +93 -75
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.js +8 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.
|
|
2
|
+
* @mui/material v5.13.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -1651,7 +1651,6 @@
|
|
|
1651
1651
|
// This module is based on https://github.com/airbnb/prop-types-exact repository.
|
|
1652
1652
|
// However, in order to reduce the number of dependencies and to remove some extra safe checks
|
|
1653
1653
|
// the module was forked.
|
|
1654
|
-
|
|
1655
1654
|
const specialProperty = 'exact-prop: \u200b';
|
|
1656
1655
|
function exactProp(propTypes) {
|
|
1657
1656
|
return _extends({}, propTypes, {
|
|
@@ -2566,7 +2565,7 @@
|
|
|
2566
2565
|
return StyleSheet;
|
|
2567
2566
|
}();
|
|
2568
2567
|
|
|
2569
|
-
var e="-ms-";var r$1="-moz-";var a="-webkit-";var n="comm";var c="rule";var s="decl";var i="@import";var h="@keyframes";var $=Math.abs;var
|
|
2568
|
+
var e="-ms-";var r$1="-moz-";var a="-webkit-";var n="comm";var c="rule";var s="decl";var i="@import";var h="@keyframes";var $=Math.abs;var g=String.fromCharCode;var k=Object.assign;function m(e,r){return C(e,0)^45?(((r<<2^C(e,0))<<2^C(e,1))<<2^C(e,2))<<2^C(e,3):0}function x(e){return e.trim()}function y(e,r){return (e=r.exec(e))?e[0]:e}function j(e,r,a){return e.replace(r,a)}function z(e,r){return e.indexOf(r)}function C(e,r){return e.charCodeAt(r)|0}function O(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function S(e,r){return r.push(e),e}function q(e,r){return e.map(r).join("")}var B=1;var D=1;var E=0;var F=0;var G=0;var H="";function I(e,r,a,n,c,s,t){return {value:e,root:r,parent:a,type:n,props:c,children:s,line:B,column:D,length:t,return:""}}function J(e,r){return k(I("",null,null,"",null,null,0),e,{length:-e.length},r)}function K(){return G}function L(){G=F>0?C(H,--F):0;if(D--,G===10)D=1,B--;return G}function N(){G=F<E?C(H,F++):0;if(D++,G===10)D=1,B++;return G}function P(){return C(H,F)}function Q(){return F}function R(e,r){return O(H,e,r)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U(e){return B=D=1,E=A(H=e),F=0,[]}function V(e){return H="",e}function W(e){return x(R(F-1,ee(e===91?e+2:e===40?e+1:e)))}function Y(e){while(G=P())if(G<33)N();else break;return T(e)>2||T(G)>3?"":" "}function _$4(e,r){while(--r&&N())if(G<48||G>102||G>57&&G<65||G>70&&G<97)break;return R(e,Q()+(r<6&&P()==32&&N()==32))}function ee(e){while(N())switch(G){case e:return F;case 34:case 39:if(e!==34&&e!==39)ee(G);break;case 40:if(e===41)ee(e);break;case 92:N();break}return F}function re(e,r){while(N())if(e+G===47+10)break;else if(e+G===42+42&&P()===47)break;return "/*"+R(r,F-1)+"*"+g(e===47?e:N())}function ae(e){while(!T(P()))N();return R(e,F)}function ne(e){return V(ce("",null,null,null,[""],e=U(e),0,[0],e))}function ce(e,r,a,n,c,s,t,u,i){var f=0;var o=0;var l=t;var v=0;var p=0;var h=0;var b=1;var w=1;var d=1;var $=0;var k="";var m=c;var x=s;var y=n;var O=k;while(w)switch(h=$,$=N()){case 40:if(h!=108&&C(O,l-1)==58){if(z(O+=j(W($),"&","&\f"),"&\f")!=-1)d=-1;break}case 34:case 39:case 91:O+=W($);break;case 9:case 10:case 13:case 32:O+=Y(h);break;case 92:O+=_$4(Q()-1,7);continue;case 47:switch(P()){case 42:case 47:S(te(re(N(),Q()),r,a),i);break;default:O+="/";}break;case 123*b:u[f++]=A(O)*d;case 125*b:case 59:case 0:switch($){case 0:case 125:w=0;case 59+o:if(d==-1)O=j(O,/\f/g,"");if(p>0&&A(O)-l)S(p>32?ue(O+";",n,a,l-1):ue(j(O," ","")+";",n,a,l-2),i);break;case 59:O+=";";default:S(y=se(O,r,a,f,o,c,u,k,m=[],x=[],l),s);if($===123)if(o===0)ce(O,r,y,y,m,s,l,u,x);else switch(v===99&&C(O,3)===110?100:v){case 100:case 109:case 115:ce(e,y,y,n&&S(se(e,y,y,0,0,c,u,k,c,m=[],l),x),c,x,l,u,n?m:x);break;default:ce(O,y,y,y,[""],x,0,u,x);}}f=o=p=0,b=d=1,k=O="",l=t;break;case 58:l=1+A(O),p=h;default:if(b<1)if($==123)--b;else if($==125&&b++==0&&L()==125)continue;switch(O+=g($),$*b){case 38:d=o>0?1:(O+="\f",-1);break;case 44:u[f++]=(A(O)-1)*d,d=1;break;case 64:if(P()===45)O+=W(N());v=P(),o=l=A(k=O+=ae(Q())),$++;break;case 45:if(h===45&&A(O)==2)b=0;}}return s}function se(e,r,a,n,s,t,u,i,f,o,l){var v=s-1;var p=s===0?t:[""];var h=M(p);for(var b=0,w=0,d=0;b<n;++b)for(var g=0,k=O(e,v+1,v=$(w=u[b])),m=e;g<h;++g)if(m=x(w>0?p[g]+" "+k:j(k,/&\f/g,p[g])))f[d++]=m;return I(e,r,a,s===0?c:i,f,o,l)}function te(e,r,a){return I(e,r,a,n,g(K()),O(e,2,-2),0)}function ue(e,r,a,n){return I(e,r,a,s,O(e,0,n),O(e,n+1,-1),n)}function fe(e,r){var a="";var n=M(e);for(var c=0;c<n;c++)a+=r(e[c],c,e,r)||"";return a}function oe(e,r,a,t){switch(e.type){case i:case s:return e.return=e.return||e.value;case n:return "";case h:return e.return=e.value+"{"+fe(e.children,t)+"}";case c:e.value=e.props.join(",");}return A(a=fe(e.children,t))?e.return=e.value+"{"+a+"}":""}function le(e){var r=M(e);return function(a,n,c,s){var t="";for(var u=0;u<r;u++)t+=e[u](a,n,c,s)||"";return t}}
|
|
2570
2569
|
|
|
2571
2570
|
var weakMemoize = function weakMemoize(func) {
|
|
2572
2571
|
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
@@ -2641,7 +2640,7 @@
|
|
|
2641
2640
|
// fallthrough
|
|
2642
2641
|
|
|
2643
2642
|
default:
|
|
2644
|
-
parsed[index] +=
|
|
2643
|
+
parsed[index] += g(character);
|
|
2645
2644
|
}
|
|
2646
2645
|
} while (character = N());
|
|
2647
2646
|
|
|
@@ -3854,7 +3853,7 @@
|
|
|
3854
3853
|
|
|
3855
3854
|
var pkg = {
|
|
3856
3855
|
name: "@emotion/react",
|
|
3857
|
-
version: "11.10.
|
|
3856
|
+
version: "11.10.8",
|
|
3858
3857
|
main: "dist/emotion-react.cjs.js",
|
|
3859
3858
|
module: "dist/emotion-react.esm.js",
|
|
3860
3859
|
browser: {
|
|
@@ -3917,8 +3916,8 @@
|
|
|
3917
3916
|
},
|
|
3918
3917
|
dependencies: {
|
|
3919
3918
|
"@babel/runtime": "^7.18.3",
|
|
3920
|
-
"@emotion/babel-plugin": "^11.10.
|
|
3921
|
-
"@emotion/cache": "^11.10.
|
|
3919
|
+
"@emotion/babel-plugin": "^11.10.8",
|
|
3920
|
+
"@emotion/cache": "^11.10.8",
|
|
3922
3921
|
"@emotion/serialize": "^1.1.1",
|
|
3923
3922
|
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
|
|
3924
3923
|
"@emotion/utils": "^1.2.0",
|
|
@@ -3935,10 +3934,10 @@
|
|
|
3935
3934
|
},
|
|
3936
3935
|
devDependencies: {
|
|
3937
3936
|
"@definitelytyped/dtslint": "0.0.112",
|
|
3938
|
-
"@emotion/css": "11.10.
|
|
3939
|
-
"@emotion/css-prettifier": "1.1.
|
|
3937
|
+
"@emotion/css": "11.10.8",
|
|
3938
|
+
"@emotion/css-prettifier": "1.1.2",
|
|
3940
3939
|
"@emotion/server": "11.10.0",
|
|
3941
|
-
"@emotion/styled": "11.10.
|
|
3940
|
+
"@emotion/styled": "11.10.8",
|
|
3942
3941
|
"html-tag-names": "^1.1.2",
|
|
3943
3942
|
react: "16.14.0",
|
|
3944
3943
|
"svg-tag-names": "^1.1.1",
|
|
@@ -6288,6 +6287,9 @@
|
|
|
6288
6287
|
return obj;
|
|
6289
6288
|
}, {}) ;
|
|
6290
6289
|
|
|
6290
|
+
// The different signatures imply different meaning for their arguments that can't be expressed structurally.
|
|
6291
|
+
// We express the difference with variable names.
|
|
6292
|
+
/* tslint:disable:unified-signatures */
|
|
6291
6293
|
/* tslint:enable:unified-signatures */
|
|
6292
6294
|
|
|
6293
6295
|
function createSpacing(spacingInput = 8) {
|
|
@@ -7387,6 +7389,7 @@
|
|
|
7387
7389
|
return mergedProps;
|
|
7388
7390
|
}
|
|
7389
7391
|
|
|
7392
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
7390
7393
|
/**
|
|
7391
7394
|
* Returns a number whose value is limited to the given range.
|
|
7392
7395
|
* @param {number} value The value to be clamped
|
|
@@ -13371,7 +13374,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13371
13374
|
*
|
|
13372
13375
|
* - [Portal API](https://mui.com/base/react-portal/components-api/#portal)
|
|
13373
13376
|
*/
|
|
13374
|
-
const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props,
|
|
13377
|
+
const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props, forwardedRef) {
|
|
13375
13378
|
const {
|
|
13376
13379
|
children,
|
|
13377
13380
|
container,
|
|
@@ -13379,7 +13382,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13379
13382
|
} = props;
|
|
13380
13383
|
const [mountNode, setMountNode] = React__namespace.useState(null);
|
|
13381
13384
|
// @ts-expect-error TODO upstream fix
|
|
13382
|
-
const handleRef = useForkRef( /*#__PURE__*/React__namespace.isValidElement(children) ? children.ref : null,
|
|
13385
|
+
const handleRef = useForkRef( /*#__PURE__*/React__namespace.isValidElement(children) ? children.ref : null, forwardedRef);
|
|
13383
13386
|
useEnhancedEffect$1(() => {
|
|
13384
13387
|
if (!disablePortal) {
|
|
13385
13388
|
setMountNode(getContainer$1(container) || document.body);
|
|
@@ -13387,13 +13390,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13387
13390
|
}, [container, disablePortal]);
|
|
13388
13391
|
useEnhancedEffect$1(() => {
|
|
13389
13392
|
if (mountNode && !disablePortal) {
|
|
13390
|
-
setRef(
|
|
13393
|
+
setRef(forwardedRef, mountNode);
|
|
13391
13394
|
return () => {
|
|
13392
|
-
setRef(
|
|
13395
|
+
setRef(forwardedRef, null);
|
|
13393
13396
|
};
|
|
13394
13397
|
}
|
|
13395
13398
|
return undefined;
|
|
13396
|
-
}, [
|
|
13399
|
+
}, [forwardedRef, mountNode, disablePortal]);
|
|
13397
13400
|
if (disablePortal) {
|
|
13398
13401
|
if ( /*#__PURE__*/React__namespace.isValidElement(children)) {
|
|
13399
13402
|
const newProps = {
|
|
@@ -13443,7 +13446,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13443
13446
|
}
|
|
13444
13447
|
generateUtilityClasses('MuiPopper', ['root']);
|
|
13445
13448
|
|
|
13446
|
-
const _excluded$26 = ["anchorEl", "children", "
|
|
13449
|
+
const _excluded$26 = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
|
|
13447
13450
|
_excluded2$9 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
13448
13451
|
function flipPlacement(placement, direction) {
|
|
13449
13452
|
if (direction === 'ltr') {
|
|
@@ -13478,12 +13481,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13478
13481
|
return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));
|
|
13479
13482
|
};
|
|
13480
13483
|
const defaultPopperOptions = {};
|
|
13481
|
-
const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props,
|
|
13482
|
-
var
|
|
13484
|
+
const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, forwardedRef) {
|
|
13485
|
+
var _slots$root;
|
|
13483
13486
|
const {
|
|
13484
13487
|
anchorEl,
|
|
13485
13488
|
children,
|
|
13486
|
-
component,
|
|
13487
13489
|
direction,
|
|
13488
13490
|
disablePortal,
|
|
13489
13491
|
modifiers,
|
|
@@ -13494,10 +13496,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13494
13496
|
slotProps = {},
|
|
13495
13497
|
slots = {},
|
|
13496
13498
|
TransitionProps
|
|
13499
|
+
// @ts-ignore internal logic
|
|
13500
|
+
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
13497
13501
|
} = props,
|
|
13498
13502
|
other = _objectWithoutPropertiesLoose(props, _excluded$26);
|
|
13499
13503
|
const tooltipRef = React__namespace.useRef(null);
|
|
13500
|
-
const ownRef = useForkRef(tooltipRef,
|
|
13504
|
+
const ownRef = useForkRef(tooltipRef, forwardedRef);
|
|
13501
13505
|
const popperRef = React__namespace.useRef(null);
|
|
13502
13506
|
const handlePopperRef = useForkRef(popperRef, popperRefProp);
|
|
13503
13507
|
const handlePopperRefRef = React__namespace.useRef(handlePopperRef);
|
|
@@ -13581,7 +13585,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13581
13585
|
childProps.TransitionProps = TransitionProps;
|
|
13582
13586
|
}
|
|
13583
13587
|
const classes = useUtilityClasses$1O();
|
|
13584
|
-
const Root = (
|
|
13588
|
+
const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';
|
|
13585
13589
|
const rootProps = useSlotProps({
|
|
13586
13590
|
elementType: Root,
|
|
13587
13591
|
externalSlotProps: slotProps.root,
|
|
@@ -13609,7 +13613,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13609
13613
|
*
|
|
13610
13614
|
* - [Popper API](https://mui.com/base/react-popper/components-api/#popper)
|
|
13611
13615
|
*/
|
|
13612
|
-
const Popper$2 = /*#__PURE__*/React__namespace.forwardRef(function Popper(props,
|
|
13616
|
+
const Popper$2 = /*#__PURE__*/React__namespace.forwardRef(function Popper(props, forwardedRef) {
|
|
13613
13617
|
const {
|
|
13614
13618
|
anchorEl,
|
|
13615
13619
|
children,
|
|
@@ -13663,7 +13667,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13663
13667
|
direction: direction,
|
|
13664
13668
|
disablePortal: disablePortal,
|
|
13665
13669
|
modifiers: modifiers,
|
|
13666
|
-
ref:
|
|
13670
|
+
ref: forwardedRef,
|
|
13667
13671
|
open: transition ? !exited : open,
|
|
13668
13672
|
placement: placement,
|
|
13669
13673
|
popperOptions: popperOptions,
|
|
@@ -13796,10 +13800,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13796
13800
|
slots: PropTypes.shape({
|
|
13797
13801
|
root: PropTypes.elementType
|
|
13798
13802
|
}),
|
|
13799
|
-
/**
|
|
13800
|
-
* @ignore
|
|
13801
|
-
*/
|
|
13802
|
-
style: PropTypes.object,
|
|
13803
13803
|
/**
|
|
13804
13804
|
* Help supporting a react-transition-group/Transition component.
|
|
13805
13805
|
* @default false
|
|
@@ -14027,7 +14027,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14027
14027
|
const modalClasses$1 = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
14028
14028
|
var modalUnstyledClasses = modalClasses$1;
|
|
14029
14029
|
|
|
14030
|
-
const _excluded$25 = ["children", "closeAfterTransition", "
|
|
14030
|
+
const _excluded$25 = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
14031
14031
|
const useUtilityClasses$1N = ownerState => {
|
|
14032
14032
|
const {
|
|
14033
14033
|
open,
|
|
@@ -14072,11 +14072,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14072
14072
|
* - [Modal API](https://mui.com/base/react-modal/components-api/#modal)
|
|
14073
14073
|
*/
|
|
14074
14074
|
const Modal$2 = /*#__PURE__*/React__namespace.forwardRef(function Modal(props, forwardedRef) {
|
|
14075
|
-
var _props$ariaHidden,
|
|
14075
|
+
var _props$ariaHidden, _slots$root;
|
|
14076
14076
|
const {
|
|
14077
14077
|
children,
|
|
14078
14078
|
closeAfterTransition = false,
|
|
14079
|
-
component,
|
|
14080
14079
|
container,
|
|
14081
14080
|
disableAutoFocus = false,
|
|
14082
14081
|
disableEnforceFocus = false,
|
|
@@ -14087,7 +14086,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14087
14086
|
hideBackdrop = false,
|
|
14088
14087
|
keepMounted = false,
|
|
14089
14088
|
// private
|
|
14090
|
-
manager = defaultManager,
|
|
14089
|
+
manager: managerProp = defaultManager,
|
|
14091
14090
|
onBackdropClick,
|
|
14092
14091
|
onClose,
|
|
14093
14092
|
onKeyDown,
|
|
@@ -14098,6 +14097,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14098
14097
|
slots = {}
|
|
14099
14098
|
} = props,
|
|
14100
14099
|
other = _objectWithoutPropertiesLoose(props, _excluded$25);
|
|
14100
|
+
// TODO: `modal`` must change its type in this file to match the type of methods
|
|
14101
|
+
// provided by `ModalManager`
|
|
14102
|
+
const manager = managerProp;
|
|
14101
14103
|
const [exited, setExited] = React__namespace.useState(!open);
|
|
14102
14104
|
const modal = React__namespace.useRef({});
|
|
14103
14105
|
const mountNodeRef = React__namespace.useRef(null);
|
|
@@ -14228,7 +14230,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14228
14230
|
childProps.onEnter = createChainedFunction(handleEnter, children.props.onEnter);
|
|
14229
14231
|
childProps.onExited = createChainedFunction(handleExited, children.props.onExited);
|
|
14230
14232
|
}
|
|
14231
|
-
const Root = (
|
|
14233
|
+
const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';
|
|
14232
14234
|
const rootProps = useSlotProps({
|
|
14233
14235
|
elementType: Root,
|
|
14234
14236
|
externalSlotProps: slotProps.root,
|
|
@@ -14288,11 +14290,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14288
14290
|
* @default false
|
|
14289
14291
|
*/
|
|
14290
14292
|
closeAfterTransition: PropTypes.bool,
|
|
14291
|
-
/**
|
|
14292
|
-
* The component used for the root node.
|
|
14293
|
-
* Either a string to use a HTML element or a component.
|
|
14294
|
-
*/
|
|
14295
|
-
component: PropTypes.elementType,
|
|
14296
14293
|
/**
|
|
14297
14294
|
* An HTML element or function that returns one.
|
|
14298
14295
|
* The `container` will have the portal children appended to it.
|
|
@@ -14365,10 +14362,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14365
14362
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
14366
14363
|
*/
|
|
14367
14364
|
onClose: PropTypes.func,
|
|
14368
|
-
/**
|
|
14369
|
-
* @ignore
|
|
14370
|
-
*/
|
|
14371
|
-
onKeyDown: PropTypes.func,
|
|
14372
14365
|
/**
|
|
14373
14366
|
* If `true`, the component is shown.
|
|
14374
14367
|
*/
|
|
@@ -14635,7 +14628,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14635
14628
|
onChange,
|
|
14636
14629
|
onChangeCommitted,
|
|
14637
14630
|
orientation = 'horizontal',
|
|
14638
|
-
ref,
|
|
14631
|
+
rootRef: ref,
|
|
14639
14632
|
scale = Identity$1,
|
|
14640
14633
|
step = 1,
|
|
14641
14634
|
tabIndex,
|
|
@@ -15068,6 +15061,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15068
15061
|
marks: marks,
|
|
15069
15062
|
open,
|
|
15070
15063
|
range,
|
|
15064
|
+
rootRef: handleRef,
|
|
15071
15065
|
trackLeap,
|
|
15072
15066
|
trackOffset,
|
|
15073
15067
|
values
|
|
@@ -15091,7 +15085,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15091
15085
|
disableWindowBlurListener = false,
|
|
15092
15086
|
onClose,
|
|
15093
15087
|
open,
|
|
15094
|
-
ref,
|
|
15095
15088
|
resumeHideDuration
|
|
15096
15089
|
} = parameters;
|
|
15097
15090
|
const timerAutoHide = React__namespace.useRef();
|
|
@@ -15190,7 +15183,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15190
15183
|
const propsEventHandlers = extractEventHandlers(parameters);
|
|
15191
15184
|
const externalEventHandlers = _extends({}, propsEventHandlers, otherHandlers);
|
|
15192
15185
|
return _extends({
|
|
15193
|
-
ref,
|
|
15194
15186
|
// ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
15195
15187
|
// See https://github.com/mui/material-ui/issues/29080
|
|
15196
15188
|
role: 'presentation'
|
|
@@ -15241,7 +15233,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15241
15233
|
*
|
|
15242
15234
|
* - [TextareaAutosize API](https://mui.com/base/react-textarea-autosize/components-api/#textarea-autosize)
|
|
15243
15235
|
*/
|
|
15244
|
-
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props,
|
|
15236
|
+
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, forwardedRef) {
|
|
15245
15237
|
const {
|
|
15246
15238
|
onChange,
|
|
15247
15239
|
maxRows,
|
|
@@ -15254,7 +15246,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15254
15246
|
current: isControlled
|
|
15255
15247
|
} = React__namespace.useRef(value != null);
|
|
15256
15248
|
const inputRef = React__namespace.useRef(null);
|
|
15257
|
-
const handleRef = useForkRef(
|
|
15249
|
+
const handleRef = useForkRef(forwardedRef, inputRef);
|
|
15258
15250
|
const shadowRef = React__namespace.useRef(null);
|
|
15259
15251
|
const renders = React__namespace.useRef(0);
|
|
15260
15252
|
const [state, setState] = React__namespace.useState({
|
|
@@ -20608,7 +20600,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20608
20600
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
20609
20601
|
const otherProps = _extends({
|
|
20610
20602
|
anchorEl,
|
|
20611
|
-
component,
|
|
20612
20603
|
container,
|
|
20613
20604
|
disablePortal,
|
|
20614
20605
|
keepMounted,
|
|
@@ -20620,6 +20611,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20620
20611
|
transition
|
|
20621
20612
|
}, other);
|
|
20622
20613
|
return /*#__PURE__*/jsxRuntime_1(PopperRoot, _extends({
|
|
20614
|
+
as: component,
|
|
20623
20615
|
direction: theme == null ? void 0 : theme.direction,
|
|
20624
20616
|
slots: {
|
|
20625
20617
|
root: RootComponent
|
|
@@ -20646,9 +20638,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20646
20638
|
*/
|
|
20647
20639
|
children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
|
|
20648
20640
|
/**
|
|
20649
|
-
*
|
|
20641
|
+
* The component used for the root node.
|
|
20642
|
+
* Either a string to use a HTML element or a component.
|
|
20650
20643
|
*/
|
|
20651
|
-
component: PropTypes
|
|
20644
|
+
component: PropTypes.elementType,
|
|
20652
20645
|
/**
|
|
20653
20646
|
* The components used for each slot inside the Popper.
|
|
20654
20647
|
* Either a string to use a HTML element or a component.
|
|
@@ -21176,7 +21169,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21176
21169
|
size = 'medium',
|
|
21177
21170
|
variant = 'filled',
|
|
21178
21171
|
tabIndex,
|
|
21179
|
-
skipFocusWhenDisabled = false
|
|
21172
|
+
skipFocusWhenDisabled = false // TODO v6: Rename to `focusableWhenDisabled`.
|
|
21180
21173
|
} = props,
|
|
21181
21174
|
other = _objectWithoutPropertiesLoose(props, _excluded$1P);
|
|
21182
21175
|
const chipRef = React__namespace.useRef(null);
|
|
@@ -21816,7 +21809,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21816
21809
|
if (inputRef.current && event.currentTarget === event.target) {
|
|
21817
21810
|
inputRef.current.focus();
|
|
21818
21811
|
}
|
|
21819
|
-
if (onClick) {
|
|
21812
|
+
if (onClick && !fcs.disabled) {
|
|
21820
21813
|
onClick(event);
|
|
21821
21814
|
}
|
|
21822
21815
|
};
|
|
@@ -24578,7 +24571,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24578
24571
|
icon,
|
|
24579
24572
|
label,
|
|
24580
24573
|
onChange,
|
|
24581
|
-
onClick
|
|
24574
|
+
onClick
|
|
24575
|
+
// eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
|
|
24576
|
+
,
|
|
24577
|
+
|
|
24582
24578
|
value
|
|
24583
24579
|
} = props,
|
|
24584
24580
|
other = _objectWithoutPropertiesLoose(props, _excluded$1G);
|
|
@@ -25452,9 +25448,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25452
25448
|
borderBottomRightRadius: 0,
|
|
25453
25449
|
borderBottomLeftRadius: 0
|
|
25454
25450
|
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
25455
|
-
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}
|
|
25451
|
+
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
25452
|
+
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25453
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25454
|
+
}
|
|
25456
25455
|
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
25457
|
-
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}
|
|
25456
|
+
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
25457
|
+
[`&.${buttonGroupClasses$1.disabled}`]: {
|
|
25458
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
25459
|
+
}
|
|
25458
25460
|
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
25459
25461
|
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
|
|
25460
25462
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
@@ -28285,7 +28287,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28285
28287
|
alignSelf: 'stretch',
|
|
28286
28288
|
height: 'auto'
|
|
28287
28289
|
}), ({
|
|
28288
|
-
theme,
|
|
28289
28290
|
ownerState
|
|
28290
28291
|
}) => _extends({}, ownerState.children && {
|
|
28291
28292
|
display: 'flex',
|
|
@@ -28293,12 +28294,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28293
28294
|
textAlign: 'center',
|
|
28294
28295
|
border: 0,
|
|
28295
28296
|
'&::before, &::after': {
|
|
28296
|
-
position: 'relative',
|
|
28297
|
-
width: '100%',
|
|
28298
|
-
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
28299
|
-
top: '50%',
|
|
28300
28297
|
content: '""',
|
|
28301
|
-
|
|
28298
|
+
alignSelf: 'center'
|
|
28299
|
+
}
|
|
28300
|
+
}), ({
|
|
28301
|
+
theme,
|
|
28302
|
+
ownerState
|
|
28303
|
+
}) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
|
|
28304
|
+
'&::before, &::after': {
|
|
28305
|
+
width: '100%',
|
|
28306
|
+
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
28302
28307
|
}
|
|
28303
28308
|
}), ({
|
|
28304
28309
|
theme,
|
|
@@ -28307,11 +28312,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28307
28312
|
flexDirection: 'column',
|
|
28308
28313
|
'&::before, &::after': {
|
|
28309
28314
|
height: '100%',
|
|
28310
|
-
|
|
28311
|
-
left: '50%',
|
|
28312
|
-
borderTop: 0,
|
|
28313
|
-
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
28314
|
-
transform: 'translateX(0%)'
|
|
28315
|
+
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
|
|
28315
28316
|
}
|
|
28316
28317
|
}), ({
|
|
28317
28318
|
ownerState
|
|
@@ -31498,6 +31499,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31498
31499
|
* @deprecated Not used internally. Use `MediaQueryListEvent` from lib.dom.d.ts instead.
|
|
31499
31500
|
*/
|
|
31500
31501
|
|
|
31502
|
+
/**
|
|
31503
|
+
* @deprecated Not used internally. Use `MediaQueryList` from lib.dom.d.ts instead.
|
|
31504
|
+
*/
|
|
31505
|
+
|
|
31506
|
+
/**
|
|
31507
|
+
* @deprecated Not used internally. Use `(event: MediaQueryListEvent) => void` instead.
|
|
31508
|
+
*/
|
|
31509
|
+
|
|
31501
31510
|
function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
|
|
31502
31511
|
const [match, setMatch] = React__namespace.useState(() => {
|
|
31503
31512
|
if (noSsr && matchMedia) {
|
|
@@ -39392,7 +39401,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39392
39401
|
readOnly,
|
|
39393
39402
|
renderValue,
|
|
39394
39403
|
SelectDisplayProps = {},
|
|
39395
|
-
tabIndex: tabIndexProp
|
|
39404
|
+
tabIndex: tabIndexProp
|
|
39405
|
+
// catching `type` from Input which makes no sense for SelectInput
|
|
39406
|
+
,
|
|
39407
|
+
|
|
39396
39408
|
value: valueProp,
|
|
39397
39409
|
variant = 'standard'
|
|
39398
39410
|
} = props,
|
|
@@ -39493,11 +39505,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39493
39505
|
|
|
39494
39506
|
// Support autofill.
|
|
39495
39507
|
const handleChange = event => {
|
|
39496
|
-
const
|
|
39497
|
-
if (
|
|
39508
|
+
const child = childrenArray.find(childItem => childItem.props.value === event.target.value);
|
|
39509
|
+
if (child === undefined) {
|
|
39498
39510
|
return;
|
|
39499
39511
|
}
|
|
39500
|
-
const child = childrenArray[index];
|
|
39501
39512
|
setValueState(child.props.value);
|
|
39502
39513
|
if (onChange) {
|
|
39503
39514
|
onChange(event, child);
|
|
@@ -40924,7 +40935,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40924
40935
|
trackOffset,
|
|
40925
40936
|
trackLeap
|
|
40926
40937
|
} = useSlider(_extends({}, ownerState, {
|
|
40927
|
-
ref
|
|
40938
|
+
rootRef: ref
|
|
40928
40939
|
}));
|
|
40929
40940
|
ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
40930
40941
|
ownerState.dragging = dragging;
|
|
@@ -41588,15 +41599,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41588
41599
|
const {
|
|
41589
41600
|
getRootProps,
|
|
41590
41601
|
onClickAway
|
|
41591
|
-
} = useSnackbar(_extends({}, ownerState
|
|
41592
|
-
ref
|
|
41593
|
-
}));
|
|
41602
|
+
} = useSnackbar(_extends({}, ownerState));
|
|
41594
41603
|
const [exited, setExited] = React__namespace.useState(true);
|
|
41595
41604
|
const rootProps = useSlotProps({
|
|
41596
41605
|
elementType: SnackbarRoot,
|
|
41597
41606
|
getSlotProps: getRootProps,
|
|
41598
41607
|
externalForwardedProps: other,
|
|
41599
41608
|
ownerState,
|
|
41609
|
+
additionalProps: {
|
|
41610
|
+
ref
|
|
41611
|
+
},
|
|
41600
41612
|
className: [classes.root, className]
|
|
41601
41613
|
});
|
|
41602
41614
|
const handleExited = node => {
|
|
@@ -44946,7 +44958,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44946
44958
|
SwipeAreaProps,
|
|
44947
44959
|
swipeAreaWidth = 20,
|
|
44948
44960
|
transitionDuration = transitionDurationDefault,
|
|
44949
|
-
variant = 'temporary'
|
|
44961
|
+
variant = 'temporary' // Mobile first.
|
|
44950
44962
|
} = props,
|
|
44951
44963
|
ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded$k),
|
|
44952
44964
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
@@ -48569,7 +48581,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48569
48581
|
const textFieldClasses = generateUtilityClasses('MuiTextField', ['root']);
|
|
48570
48582
|
var textFieldClasses$1 = textFieldClasses;
|
|
48571
48583
|
|
|
48572
|
-
const _excluded$3 = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
|
|
48584
|
+
const _excluded$3 = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
|
|
48573
48585
|
const variantComponent = {
|
|
48574
48586
|
standard: Input$1,
|
|
48575
48587
|
filled: FilledInput$1,
|
|
@@ -48651,6 +48663,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48651
48663
|
name,
|
|
48652
48664
|
onBlur,
|
|
48653
48665
|
onChange,
|
|
48666
|
+
onClick,
|
|
48654
48667
|
onFocus,
|
|
48655
48668
|
placeholder,
|
|
48656
48669
|
required = false,
|
|
@@ -48715,6 +48728,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48715
48728
|
onBlur: onBlur,
|
|
48716
48729
|
onChange: onChange,
|
|
48717
48730
|
onFocus: onFocus,
|
|
48731
|
+
onClick: onClick,
|
|
48718
48732
|
placeholder: placeholder,
|
|
48719
48733
|
inputProps: inputProps
|
|
48720
48734
|
}, InputMore, InputProps));
|
|
@@ -48873,6 +48887,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48873
48887
|
* You can pull out the new value by accessing `event.target.value` (string).
|
|
48874
48888
|
*/
|
|
48875
48889
|
onChange: PropTypes.func,
|
|
48890
|
+
/**
|
|
48891
|
+
* @ignore
|
|
48892
|
+
*/
|
|
48893
|
+
onClick: PropTypes.func,
|
|
48876
48894
|
/**
|
|
48877
48895
|
* @ignore
|
|
48878
48896
|
*/
|