@mui/material 5.8.5 → 5.9.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/Alert/Alert.js +19 -11
- package/Autocomplete/Autocomplete.d.ts +2 -0
- package/Autocomplete/Autocomplete.js +14 -10
- package/CHANGELOG.md +190 -0
- package/FilledInput/FilledInput.js +1 -1
- package/Input/Input.js +1 -1
- package/Modal/Modal.js +6 -6
- package/OutlinedInput/OutlinedInput.js +15 -0
- package/Popper/Popper.d.ts +1 -6
- package/README.md +60 -23
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
- package/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js +1 -1
- package/Slider/Slider.js +9 -9
- package/SnackbarContent/SnackbarContent.js +1 -1
- package/Tabs/Tabs.js +10 -2
- package/Tooltip/Tooltip.js +6 -5
- package/Unstable_Grid2/Grid2.d.ts +4 -0
- package/Unstable_Grid2/Grid2.js +34 -0
- package/Unstable_Grid2/Grid2Props.d.ts +15 -0
- package/Unstable_Grid2/Grid2Props.js +1 -0
- package/Unstable_Grid2/grid2Classes.d.ts +5 -0
- package/Unstable_Grid2/grid2Classes.js +14 -0
- package/Unstable_Grid2/index.d.ts +4 -0
- package/Unstable_Grid2/index.js +4 -0
- package/Unstable_Grid2/package.json +6 -0
- package/index.d.ts +3 -0
- package/index.js +3 -1
- package/legacy/Alert/Alert.js +19 -11
- package/legacy/Autocomplete/Autocomplete.js +14 -10
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/Input/Input.js +1 -1
- package/legacy/Modal/Modal.js +13 -9
- package/legacy/OutlinedInput/OutlinedInput.js +15 -0
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Slider/Slider.js +9 -9
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- package/legacy/Tabs/Tabs.js +10 -2
- package/legacy/Tooltip/Tooltip.js +6 -5
- package/legacy/Unstable_Grid2/Grid2.js +38 -0
- package/legacy/Unstable_Grid2/Grid2Props.js +1 -0
- package/legacy/Unstable_Grid2/grid2Classes.js +27 -0
- package/legacy/Unstable_Grid2/index.js +4 -0
- package/legacy/index.js +3 -1
- package/legacy/styles/CssVarsProvider.js +10 -8
- package/legacy/styles/experimental_extendTheme.js +85 -29
- package/modern/Alert/Alert.js +19 -11
- package/modern/Autocomplete/Autocomplete.js +13 -9
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/Input/Input.js +1 -1
- package/modern/Modal/Modal.js +6 -6
- package/modern/OutlinedInput/OutlinedInput.js +15 -0
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Slider/Slider.js +9 -9
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- package/modern/Tabs/Tabs.js +10 -2
- package/modern/Tooltip/Tooltip.js +6 -5
- package/modern/Unstable_Grid2/Grid2.js +34 -0
- package/modern/Unstable_Grid2/Grid2Props.js +1 -0
- package/modern/Unstable_Grid2/grid2Classes.js +14 -0
- package/modern/Unstable_Grid2/index.js +4 -0
- package/modern/index.js +3 -1
- package/modern/styles/CssVarsProvider.js +6 -6
- package/modern/styles/experimental_extendTheme.js +80 -30
- package/node/Alert/Alert.js +19 -11
- package/node/Autocomplete/Autocomplete.js +14 -10
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/Modal/Modal.js +9 -9
- package/node/OutlinedInput/OutlinedInput.js +13 -0
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/node/Select/Select.js +1 -1
- package/node/Slider/Slider.js +9 -9
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/Tabs/Tabs.js +10 -2
- package/node/Tooltip/Tooltip.js +6 -5
- package/node/Unstable_Grid2/Grid2.js +47 -0
- package/node/Unstable_Grid2/Grid2Props.js +5 -0
- package/node/Unstable_Grid2/grid2Classes.js +25 -0
- package/node/Unstable_Grid2/index.js +56 -0
- package/node/index.js +22 -1
- package/node/styles/CssVarsProvider.js +11 -6
- package/node/styles/experimental_extendTheme.js +84 -31
- package/package.json +7 -7
- package/styles/CssVarsProvider.d.ts +14 -28
- package/styles/CssVarsProvider.js +10 -6
- package/styles/components.d.ts +5 -0
- package/styles/createPalette.d.ts +0 -89
- package/styles/createTheme.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +315 -35
- package/styles/experimental_extendTheme.js +80 -30
- package/styles/index.d.ts +35 -1
- package/styles/overrides.d.ts +3 -1
- package/styles/props.d.ts +2 -0
- package/themeCssVarsAugmentation/index.d.ts +26 -0
- package/umd/material-ui.development.js +1211 -559
- package/umd/material-ui.production.min.js +20 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.
|
|
1
|
+
/** @license MUI v5.9.0
|
|
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.
|
|
@@ -560,6 +560,7 @@
|
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
var StyleSheet = /*#__PURE__*/function () {
|
|
563
|
+
// Using Node instead of HTMLElement since container may be a ShadowRoot
|
|
563
564
|
function StyleSheet(options) {
|
|
564
565
|
var _this = this;
|
|
565
566
|
|
|
@@ -658,7 +659,7 @@
|
|
|
658
659
|
return StyleSheet;
|
|
659
660
|
}();
|
|
660
661
|
|
|
661
|
-
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var i="@import";var p="@keyframes";var k=Math.abs;var d=String.fromCharCode;var g=Object.assign;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function x
|
|
662
|
+
var e="-ms-";var r$1="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var i="@import";var p="@keyframes";var k=Math.abs;var d=String.fromCharCode;var g=Object.assign;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}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 C(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function A(e,r,a){return e.slice(r,a)}function O(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,c,n,t,s){return {value:e,root:r,parent:a,type:c,props:n,children:t,line:B,column:D,length:s,return:""}}function J(e,r){return g(I("",null,null,"",null,null,0),e,{length:-e.length},r)}function K(){return G}function L(){G=F>0?z(H,--F):0;if(D--,G===10)D=1,B--;return G}function N(){G=F<E?z(H,F++):0;if(D++,G===10)D=1,B++;return G}function P(){return z(H,F)}function Q(){return F}function R(e,r){return A(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=O(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)+"*"+d(e===47?e:N())}function ae(e){while(!T(P()))N();return R(e,F)}function ce(e){return V(ne("",null,null,null,[""],e=U(e),0,[0],e))}function ne(e,r,a,c,n,t,s,u,i){var f=0;var o=0;var l=s;var v=0;var h=0;var p=0;var b=1;var w=1;var $=1;var k=0;var g="";var m=n;var x=t;var y=c;var z=g;while(w)switch(p=k,k=N()){case 40:if(p!=108&&z.charCodeAt(l-1)==58){if(C(z+=j(W(k),"&","&\f"),"&\f")!=-1)$=-1;break}case 34:case 39:case 91:z+=W(k);break;case 9:case 10:case 13:case 32:z+=Y(p);break;case 92:z+=_$4(Q()-1,7);continue;case 47:switch(P()){case 42:case 47:S(se(re(N(),Q()),r,a),i);break;default:z+="/";}break;case 123*b:u[f++]=O(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+o:if(h>0&&O(z)-l)S(h>32?ue(z+";",c,a,l-1):ue(j(z," ","")+";",c,a,l-2),i);break;case 59:z+=";";default:S(y=te(z,r,a,f,o,n,u,g,m=[],x=[],l),t);if(k===123)if(o===0)ne(z,r,y,y,m,t,l,u,x);else switch(v){case 100:case 109:case 115:ne(e,y,y,c&&S(te(e,y,y,0,0,n,u,g,n,m=[],l),x),n,x,l,u,c?m:x);break;default:ne(z,y,y,y,[""],x,0,u,x);}}f=o=h=0,b=$=1,g=z="",l=s;break;case 58:l=1+O(z),h=p;default:if(b<1)if(k==123)--b;else if(k==125&&b++==0&&L()==125)continue;switch(z+=d(k),k*b){case 38:$=o>0?1:(z+="\f",-1);break;case 44:u[f++]=(O(z)-1)*$,$=1;break;case 64:if(P()===45)z+=W(N());v=P(),o=l=O(g=z+=ae(Q())),k++;break;case 45:if(p===45&&O(z)==2)b=0;}}return t}function te(e,r,a,c,t,s,u,i,f,o,l){var v=t-1;var h=t===0?s:[""];var p=M(h);for(var b=0,w=0,$=0;b<c;++b)for(var d=0,g=A(e,v+1,v=k(w=u[b])),m=e;d<p;++d)if(m=x(w>0?h[d]+" "+g:j(g,/&\f/g,h[d])))f[$++]=m;return I(e,r,a,t===0?n:i,f,o,l)}function se(e,r,a){return I(e,r,a,c,d(K()),A(e,2,-2),0)}function ue(e,r,a,c){return I(e,r,a,t,A(e,0,c),A(e,c+1,-1),c)}function ie(c,n){switch(m(c,n)){case 5103:return a+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return a+c+r$1+c+e+c+c;case 6828:case 4268:return a+c+e+c+c;case 6165:return a+c+e+"flex-"+c+c;case 5187:return a+c+j(c,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+c;case 5443:return a+c+e+"flex-item-"+j(c,/flex-|-self/,"")+c;case 4675:return a+c+e+"flex-line-pack"+j(c,/align-content|flex-|-self/,"")+c;case 5548:return a+c+e+j(c,"shrink","negative")+c;case 5292:return a+c+e+j(c,"basis","preferred-size")+c;case 6060:return a+"box-"+j(c,"-grow","")+a+c+e+j(c,"grow","positive")+c;case 4554:return a+j(c,/([^-])(transform)/g,"$1"+a+"$2")+c;case 6187:return j(j(j(c,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),c,"")+c;case 5495:case 3959:return j(c,/(image-set\([^]*)/,a+"$1"+"$`$1");case 4968:return j(j(c,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+c+c;case 4095:case 3583:case 4068:case 2532:return j(c,/(.+)-inline(.+)/,a+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(O(c)-1-n>6)switch(z(c,n+1)){case 109:if(z(c,n+4)!==45)break;case 102:return j(c,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3"+"$1"+r$1+(z(c,n+3)==108?"$3":"$2-$3"))+c;case 115:return ~C(c,"stretch")?ie(j(c,"stretch","fill-available"),n)+c:c}break;case 4949:if(z(c,n+1)!==115)break;case 6444:switch(z(c,O(c)-3-(~C(c,"!important")&&10))){case 107:return j(c,":",":"+a)+c;case 101:return j(c,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(z(c,14)===45?"inline-":"")+"box$3"+"$1"+a+"$2$3"+"$1"+e+"$2box$3")+c}break;case 5936:switch(z(c,n+11)){case 114:return a+c+e+j(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return a+c+e+j(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return a+c+e+j(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return a+c+e+c+c}return c}function fe(e,r){var a="";var c=M(e);for(var n=0;n<c;n++)a+=r(e[n],n,e,r)||"";return a}function oe(e,r,a,s){switch(e.type){case i:case t:return e.return=e.return||e.value;case c:return "";case p:return e.return=e.value+"{"+fe(e.children,s)+"}";case n:e.value=e.props.join(",");}return O(a=fe(e.children,s))?e.return=e.value+"{"+a+"}":""}function le(e){var r=M(e);return function(a,c,n,t){var s="";for(var u=0;u<r;u++)s+=e[u](a,c,n,t)||"";return s}}function he(c,s,u,i){if(c.length>-1)if(!c.return)switch(c.type){case t:c.return=ie(c.value,c.length);break;case p:return fe([J(c,{value:j(c.value,"@","@"+a)})],i);case n:if(c.length)return q(c.props,(function(n){switch(y(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fe([J(c,{props:[j(n,/:(read-\w+)/,":"+r$1+"$1")]})],i);case"::placeholder":return fe([J(c,{props:[j(n,/:(plac\w+)/,":"+a+"input-$1")]}),J(c,{props:[j(n,/:(plac\w+)/,":"+r$1+"$1")]}),J(c,{props:[j(n,/:(plac\w+)/,e+"input-$1")]})],i)}return ""}))}}
|
|
662
663
|
|
|
663
664
|
var weakMemoize = function weakMemoize(func) {
|
|
664
665
|
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
@@ -918,8 +919,7 @@
|
|
|
918
919
|
}
|
|
919
920
|
}
|
|
920
921
|
|
|
921
|
-
var inserted = {};
|
|
922
|
-
|
|
922
|
+
var inserted = {};
|
|
923
923
|
var container;
|
|
924
924
|
var nodesToHydrate = [];
|
|
925
925
|
|
|
@@ -1066,16 +1066,6 @@
|
|
|
1066
1066
|
|
|
1067
1067
|
var createCache$1 = createCache;
|
|
1068
1068
|
|
|
1069
|
-
/** @license React v17.0.2
|
|
1070
|
-
* react-is.production.min.js
|
|
1071
|
-
*
|
|
1072
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1073
|
-
*
|
|
1074
|
-
* This source code is licensed under the MIT license found in the
|
|
1075
|
-
* LICENSE file in the root directory of this source tree.
|
|
1076
|
-
*/
|
|
1077
|
-
if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;x("react.element");x("react.portal");x("react.fragment");x("react.strict_mode");x("react.profiler");x("react.provider");x("react.context");x("react.forward_ref");x("react.suspense");x("react.suspense_list");x("react.memo");x("react.lazy");x("react.block");x("react.server.block");x("react.fundamental");x("react.debug_trace_mode");x("react.legacy_hidden");}
|
|
1078
|
-
|
|
1079
1069
|
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
1080
1070
|
|
|
1081
1071
|
{
|
|
@@ -1084,53 +1074,39 @@
|
|
|
1084
1074
|
// ATTENTION
|
|
1085
1075
|
// When adding new symbols to this file,
|
|
1086
1076
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
1087
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
1088
|
-
|
|
1089
|
-
var
|
|
1090
|
-
var
|
|
1091
|
-
var
|
|
1092
|
-
var
|
|
1093
|
-
var
|
|
1094
|
-
var
|
|
1095
|
-
var
|
|
1096
|
-
var REACT_FORWARD_REF_TYPE =
|
|
1097
|
-
var REACT_SUSPENSE_TYPE =
|
|
1098
|
-
var REACT_SUSPENSE_LIST_TYPE =
|
|
1099
|
-
var REACT_MEMO_TYPE =
|
|
1100
|
-
var REACT_LAZY_TYPE =
|
|
1101
|
-
var
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
1105
|
-
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
|
1106
|
-
|
|
1107
|
-
if (typeof Symbol === 'function' && Symbol.for) {
|
|
1108
|
-
var symbolFor = Symbol.for;
|
|
1109
|
-
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
1110
|
-
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
1111
|
-
REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
|
|
1112
|
-
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
|
1113
|
-
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
|
1114
|
-
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
1115
|
-
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
1116
|
-
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
1117
|
-
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
|
1118
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
|
1119
|
-
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
1120
|
-
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
1121
|
-
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
1122
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
1123
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
1124
|
-
symbolFor('react.scope');
|
|
1125
|
-
symbolFor('react.opaque.id');
|
|
1126
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
|
|
1127
|
-
symbolFor('react.offscreen');
|
|
1128
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1077
|
+
// The Symbol used to tag the ReactElement-like types.
|
|
1078
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
1079
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
1080
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
1081
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
1082
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
1083
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
1084
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
1085
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
1086
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
1087
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
1088
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
1089
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
1090
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
1091
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
1092
|
+
|
|
1093
|
+
// -----------------------------------------------------------------------------
|
|
1132
1094
|
|
|
1133
1095
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1096
|
+
var enableCacheElement = false;
|
|
1097
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
1098
|
+
|
|
1099
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
1100
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
1101
|
+
// issues in DEV builds.
|
|
1102
|
+
|
|
1103
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
1104
|
+
|
|
1105
|
+
var REACT_MODULE_REFERENCE;
|
|
1106
|
+
|
|
1107
|
+
{
|
|
1108
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
1109
|
+
}
|
|
1134
1110
|
|
|
1135
1111
|
function isValidElementType(type) {
|
|
1136
1112
|
if (typeof type === 'string' || typeof type === 'function') {
|
|
@@ -1138,12 +1114,16 @@
|
|
|
1138
1114
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1139
1115
|
|
|
1140
1116
|
|
|
1141
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE ||
|
|
1117
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
1142
1118
|
return true;
|
|
1143
1119
|
}
|
|
1144
1120
|
|
|
1145
1121
|
if (typeof type === 'object' && type !== null) {
|
|
1146
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
1122
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
1123
|
+
// types supported by any Flight configuration anywhere since
|
|
1124
|
+
// we don't know which Flight build this will end up being used
|
|
1125
|
+
// with.
|
|
1126
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
1147
1127
|
return true;
|
|
1148
1128
|
}
|
|
1149
1129
|
}
|
|
@@ -1171,6 +1151,7 @@
|
|
|
1171
1151
|
var $$typeofType = type && type.$$typeof;
|
|
1172
1152
|
|
|
1173
1153
|
switch ($$typeofType) {
|
|
1154
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
1174
1155
|
case REACT_CONTEXT_TYPE:
|
|
1175
1156
|
case REACT_FORWARD_REF_TYPE:
|
|
1176
1157
|
case REACT_LAZY_TYPE:
|
|
@@ -1202,6 +1183,7 @@
|
|
|
1202
1183
|
var Profiler = REACT_PROFILER_TYPE;
|
|
1203
1184
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1204
1185
|
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1186
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
1205
1187
|
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
1206
1188
|
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
1207
1189
|
|
|
@@ -1260,6 +1242,9 @@
|
|
|
1260
1242
|
function isSuspense(object) {
|
|
1261
1243
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1262
1244
|
}
|
|
1245
|
+
function isSuspenseList(object) {
|
|
1246
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
1247
|
+
}
|
|
1263
1248
|
|
|
1264
1249
|
exports.ContextConsumer = ContextConsumer;
|
|
1265
1250
|
exports.ContextProvider = ContextProvider;
|
|
@@ -1272,6 +1257,7 @@
|
|
|
1272
1257
|
exports.Profiler = Profiler;
|
|
1273
1258
|
exports.StrictMode = StrictMode;
|
|
1274
1259
|
exports.Suspense = Suspense;
|
|
1260
|
+
exports.SuspenseList = SuspenseList;
|
|
1275
1261
|
exports.isAsyncMode = isAsyncMode;
|
|
1276
1262
|
exports.isConcurrentMode = isConcurrentMode;
|
|
1277
1263
|
exports.isContextConsumer = isContextConsumer;
|
|
@@ -1285,6 +1271,7 @@
|
|
|
1285
1271
|
exports.isProfiler = isProfiler;
|
|
1286
1272
|
exports.isStrictMode = isStrictMode;
|
|
1287
1273
|
exports.isSuspense = isSuspense;
|
|
1274
|
+
exports.isSuspenseList = isSuspenseList;
|
|
1288
1275
|
exports.isValidElementType = isValidElementType;
|
|
1289
1276
|
exports.typeOf = typeOf;
|
|
1290
1277
|
})();
|
|
@@ -1301,6 +1288,7 @@
|
|
|
1301
1288
|
reactIs_development.Profiler;
|
|
1302
1289
|
reactIs_development.StrictMode;
|
|
1303
1290
|
reactIs_development.Suspense;
|
|
1291
|
+
reactIs_development.SuspenseList;
|
|
1304
1292
|
reactIs_development.isAsyncMode;
|
|
1305
1293
|
reactIs_development.isConcurrentMode;
|
|
1306
1294
|
reactIs_development.isContextConsumer;
|
|
@@ -1314,6 +1302,7 @@
|
|
|
1314
1302
|
reactIs_development.isProfiler;
|
|
1315
1303
|
reactIs_development.isStrictMode;
|
|
1316
1304
|
reactIs_development.isSuspense;
|
|
1305
|
+
reactIs_development.isSuspenseList;
|
|
1317
1306
|
reactIs_development.isValidElementType;
|
|
1318
1307
|
reactIs_development.typeOf;
|
|
1319
1308
|
|
|
@@ -1574,6 +1563,8 @@
|
|
|
1574
1563
|
};
|
|
1575
1564
|
}
|
|
1576
1565
|
|
|
1566
|
+
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
1567
|
+
|
|
1577
1568
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1578
1569
|
if (interpolation == null) {
|
|
1579
1570
|
return '';
|
|
@@ -1581,7 +1572,7 @@
|
|
|
1581
1572
|
|
|
1582
1573
|
if (interpolation.__emotion_styles !== undefined) {
|
|
1583
1574
|
if (interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
1584
|
-
throw new Error(
|
|
1575
|
+
throw new Error(noComponentSelectorMessage);
|
|
1585
1576
|
}
|
|
1586
1577
|
|
|
1587
1578
|
return interpolation;
|
|
@@ -1691,7 +1682,7 @@
|
|
|
1691
1682
|
}
|
|
1692
1683
|
} else {
|
|
1693
1684
|
if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') {
|
|
1694
|
-
throw new Error(
|
|
1685
|
+
throw new Error(noComponentSelectorMessage);
|
|
1695
1686
|
}
|
|
1696
1687
|
|
|
1697
1688
|
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
|
@@ -1961,7 +1952,7 @@
|
|
|
1961
1952
|
|
|
1962
1953
|
var pkg = {
|
|
1963
1954
|
name: "@emotion/react",
|
|
1964
|
-
version: "11.9.
|
|
1955
|
+
version: "11.9.3",
|
|
1965
1956
|
main: "dist/emotion-react.cjs.js",
|
|
1966
1957
|
module: "dist/emotion-react.esm.js",
|
|
1967
1958
|
browser: {
|
|
@@ -1989,8 +1980,8 @@
|
|
|
1989
1980
|
dependencies: {
|
|
1990
1981
|
"@babel/runtime": "^7.13.10",
|
|
1991
1982
|
"@emotion/babel-plugin": "^11.7.1",
|
|
1992
|
-
"@emotion/cache": "^11.
|
|
1993
|
-
"@emotion/serialize": "^1.0.
|
|
1983
|
+
"@emotion/cache": "^11.9.3",
|
|
1984
|
+
"@emotion/serialize": "^1.0.4",
|
|
1994
1985
|
"@emotion/utils": "^1.1.0",
|
|
1995
1986
|
"@emotion/weak-memoize": "^0.2.5",
|
|
1996
1987
|
"hoist-non-react-statics": "^3.3.1"
|
|
@@ -2009,12 +2000,11 @@
|
|
|
2009
2000
|
},
|
|
2010
2001
|
devDependencies: {
|
|
2011
2002
|
"@babel/core": "^7.13.10",
|
|
2003
|
+
"@definitelytyped/dtslint": "0.0.112",
|
|
2012
2004
|
"@emotion/css": "11.9.0",
|
|
2013
2005
|
"@emotion/css-prettifier": "1.0.1",
|
|
2014
2006
|
"@emotion/server": "11.4.0",
|
|
2015
|
-
"@emotion/styled": "11.
|
|
2016
|
-
"@types/react": "^16.9.11",
|
|
2017
|
-
dtslint: "^4.2.1",
|
|
2007
|
+
"@emotion/styled": "11.9.3",
|
|
2018
2008
|
"html-tag-names": "^1.1.2",
|
|
2019
2009
|
react: "16.14.0",
|
|
2020
2010
|
"svg-tag-names": "^1.1.1",
|
|
@@ -3366,13 +3356,7 @@
|
|
|
3366
3356
|
propTypes.oneOfType;
|
|
3367
3357
|
propTypes.element;
|
|
3368
3358
|
|
|
3369
|
-
|
|
3370
|
-
var g=60103;exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");exports.Fragment=h("react.fragment");}var m=React__default["default"].__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
3371
|
-
function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;
|
|
3372
|
-
});
|
|
3373
|
-
reactJsxRuntime_production_min.Fragment;
|
|
3374
|
-
reactJsxRuntime_production_min.jsx;
|
|
3375
|
-
reactJsxRuntime_production_min.jsxs;
|
|
3359
|
+
React__default["default"].__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
|
3376
3360
|
|
|
3377
3361
|
var reactJsxRuntime_development = createCommonjsModule(function (module, exports) {
|
|
3378
3362
|
|
|
@@ -3380,56 +3364,25 @@
|
|
|
3380
3364
|
(function() {
|
|
3381
3365
|
|
|
3382
3366
|
var React = React__default["default"];
|
|
3383
|
-
var _assign = objectAssign;
|
|
3384
3367
|
|
|
3385
3368
|
// ATTENTION
|
|
3386
3369
|
// When adding new symbols to this file,
|
|
3387
3370
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
3388
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
3389
|
-
|
|
3390
|
-
var
|
|
3391
|
-
var
|
|
3392
|
-
|
|
3393
|
-
var
|
|
3394
|
-
var
|
|
3395
|
-
var
|
|
3396
|
-
var
|
|
3397
|
-
var
|
|
3398
|
-
var
|
|
3399
|
-
var
|
|
3400
|
-
var
|
|
3401
|
-
var
|
|
3402
|
-
var
|
|
3403
|
-
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
|
3404
|
-
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
|
3405
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
3406
|
-
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
|
3407
|
-
|
|
3408
|
-
if (typeof Symbol === 'function' && Symbol.for) {
|
|
3409
|
-
var symbolFor = Symbol.for;
|
|
3410
|
-
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
3411
|
-
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
3412
|
-
exports.Fragment = symbolFor('react.fragment');
|
|
3413
|
-
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
|
3414
|
-
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
|
3415
|
-
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
3416
|
-
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
3417
|
-
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
3418
|
-
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
|
3419
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
|
3420
|
-
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
3421
|
-
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
3422
|
-
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
3423
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
3424
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
3425
|
-
symbolFor('react.scope');
|
|
3426
|
-
symbolFor('react.opaque.id');
|
|
3427
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
|
|
3428
|
-
symbolFor('react.offscreen');
|
|
3429
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
|
3430
|
-
}
|
|
3431
|
-
|
|
3432
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
3371
|
+
// The Symbol used to tag the ReactElement-like types.
|
|
3372
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
3373
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
3374
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
3375
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
3376
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
3377
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
3378
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
3379
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
3380
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
3381
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
3382
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
3383
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
3384
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
3385
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
3433
3386
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
3434
3387
|
function getIteratorFn(maybeIterable) {
|
|
3435
3388
|
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
|
@@ -3449,11 +3402,13 @@
|
|
|
3449
3402
|
|
|
3450
3403
|
function error(format) {
|
|
3451
3404
|
{
|
|
3452
|
-
|
|
3453
|
-
args
|
|
3454
|
-
|
|
3405
|
+
{
|
|
3406
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
3407
|
+
args[_key2 - 1] = arguments[_key2];
|
|
3408
|
+
}
|
|
3455
3409
|
|
|
3456
|
-
|
|
3410
|
+
printWarning('error', format, args);
|
|
3411
|
+
}
|
|
3457
3412
|
}
|
|
3458
3413
|
}
|
|
3459
3414
|
|
|
@@ -3467,10 +3422,11 @@
|
|
|
3467
3422
|
if (stack !== '') {
|
|
3468
3423
|
format += '%s';
|
|
3469
3424
|
args = args.concat([stack]);
|
|
3470
|
-
}
|
|
3425
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
3426
|
+
|
|
3471
3427
|
|
|
3472
3428
|
var argsWithFormat = args.map(function (item) {
|
|
3473
|
-
return
|
|
3429
|
+
return String(item);
|
|
3474
3430
|
}); // Careful: RN currently depends on this prefix
|
|
3475
3431
|
|
|
3476
3432
|
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
@@ -3481,9 +3437,23 @@
|
|
|
3481
3437
|
}
|
|
3482
3438
|
}
|
|
3483
3439
|
|
|
3484
|
-
//
|
|
3440
|
+
// -----------------------------------------------------------------------------
|
|
3485
3441
|
|
|
3486
3442
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
3443
|
+
var enableCacheElement = false;
|
|
3444
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
3445
|
+
|
|
3446
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
3447
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
3448
|
+
// issues in DEV builds.
|
|
3449
|
+
|
|
3450
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
3451
|
+
|
|
3452
|
+
var REACT_MODULE_REFERENCE;
|
|
3453
|
+
|
|
3454
|
+
{
|
|
3455
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
3456
|
+
}
|
|
3487
3457
|
|
|
3488
3458
|
function isValidElementType(type) {
|
|
3489
3459
|
if (typeof type === 'string' || typeof type === 'function') {
|
|
@@ -3491,12 +3461,16 @@
|
|
|
3491
3461
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
3492
3462
|
|
|
3493
3463
|
|
|
3494
|
-
if (type ===
|
|
3464
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
3495
3465
|
return true;
|
|
3496
3466
|
}
|
|
3497
3467
|
|
|
3498
3468
|
if (typeof type === 'object' && type !== null) {
|
|
3499
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
3469
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
3470
|
+
// types supported by any Flight configuration anywhere since
|
|
3471
|
+
// we don't know which Flight build this will end up being used
|
|
3472
|
+
// with.
|
|
3473
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
3500
3474
|
return true;
|
|
3501
3475
|
}
|
|
3502
3476
|
}
|
|
@@ -3505,15 +3479,23 @@
|
|
|
3505
3479
|
}
|
|
3506
3480
|
|
|
3507
3481
|
function getWrappedName(outerType, innerType, wrapperName) {
|
|
3482
|
+
var displayName = outerType.displayName;
|
|
3483
|
+
|
|
3484
|
+
if (displayName) {
|
|
3485
|
+
return displayName;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3508
3488
|
var functionName = innerType.displayName || innerType.name || '';
|
|
3509
|
-
return
|
|
3510
|
-
}
|
|
3489
|
+
return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
3490
|
+
} // Keep in sync with react-reconciler/getComponentNameFromFiber
|
|
3491
|
+
|
|
3511
3492
|
|
|
3512
3493
|
function getContextName(type) {
|
|
3513
3494
|
return type.displayName || 'Context';
|
|
3514
|
-
}
|
|
3495
|
+
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
|
3496
|
+
|
|
3515
3497
|
|
|
3516
|
-
function
|
|
3498
|
+
function getComponentNameFromType(type) {
|
|
3517
3499
|
if (type == null) {
|
|
3518
3500
|
// Host root, text node or just invalid type.
|
|
3519
3501
|
return null;
|
|
@@ -3521,7 +3503,7 @@
|
|
|
3521
3503
|
|
|
3522
3504
|
{
|
|
3523
3505
|
if (typeof type.tag === 'number') {
|
|
3524
|
-
error('Received an unexpected object in
|
|
3506
|
+
error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
|
|
3525
3507
|
}
|
|
3526
3508
|
}
|
|
3527
3509
|
|
|
@@ -3534,7 +3516,7 @@
|
|
|
3534
3516
|
}
|
|
3535
3517
|
|
|
3536
3518
|
switch (type) {
|
|
3537
|
-
case
|
|
3519
|
+
case REACT_FRAGMENT_TYPE:
|
|
3538
3520
|
return 'Fragment';
|
|
3539
3521
|
|
|
3540
3522
|
case REACT_PORTAL_TYPE:
|
|
@@ -3551,6 +3533,7 @@
|
|
|
3551
3533
|
|
|
3552
3534
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
3553
3535
|
return 'SuspenseList';
|
|
3536
|
+
|
|
3554
3537
|
}
|
|
3555
3538
|
|
|
3556
3539
|
if (typeof type === 'object') {
|
|
@@ -3567,10 +3550,13 @@
|
|
|
3567
3550
|
return getWrappedName(type, type.render, 'ForwardRef');
|
|
3568
3551
|
|
|
3569
3552
|
case REACT_MEMO_TYPE:
|
|
3570
|
-
|
|
3553
|
+
var outerName = type.displayName || null;
|
|
3554
|
+
|
|
3555
|
+
if (outerName !== null) {
|
|
3556
|
+
return outerName;
|
|
3557
|
+
}
|
|
3571
3558
|
|
|
3572
|
-
|
|
3573
|
-
return getComponentName(type._render);
|
|
3559
|
+
return getComponentNameFromType(type.type) || 'Memo';
|
|
3574
3560
|
|
|
3575
3561
|
case REACT_LAZY_TYPE:
|
|
3576
3562
|
{
|
|
@@ -3579,17 +3565,21 @@
|
|
|
3579
3565
|
var init = lazyComponent._init;
|
|
3580
3566
|
|
|
3581
3567
|
try {
|
|
3582
|
-
return
|
|
3568
|
+
return getComponentNameFromType(init(payload));
|
|
3583
3569
|
} catch (x) {
|
|
3584
3570
|
return null;
|
|
3585
3571
|
}
|
|
3586
3572
|
}
|
|
3573
|
+
|
|
3574
|
+
// eslint-disable-next-line no-fallthrough
|
|
3587
3575
|
}
|
|
3588
3576
|
}
|
|
3589
3577
|
|
|
3590
3578
|
return null;
|
|
3591
3579
|
}
|
|
3592
3580
|
|
|
3581
|
+
var assign = Object.assign;
|
|
3582
|
+
|
|
3593
3583
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
3594
3584
|
// replaying on render function. This currently only patches the object
|
|
3595
3585
|
// lazily which won't cover if the log function was extracted eagerly.
|
|
@@ -3653,25 +3643,25 @@
|
|
|
3653
3643
|
}; // $FlowFixMe Flow thinks console is immutable.
|
|
3654
3644
|
|
|
3655
3645
|
Object.defineProperties(console, {
|
|
3656
|
-
log:
|
|
3646
|
+
log: assign({}, props, {
|
|
3657
3647
|
value: prevLog
|
|
3658
3648
|
}),
|
|
3659
|
-
info:
|
|
3649
|
+
info: assign({}, props, {
|
|
3660
3650
|
value: prevInfo
|
|
3661
3651
|
}),
|
|
3662
|
-
warn:
|
|
3652
|
+
warn: assign({}, props, {
|
|
3663
3653
|
value: prevWarn
|
|
3664
3654
|
}),
|
|
3665
|
-
error:
|
|
3655
|
+
error: assign({}, props, {
|
|
3666
3656
|
value: prevError
|
|
3667
3657
|
}),
|
|
3668
|
-
group:
|
|
3658
|
+
group: assign({}, props, {
|
|
3669
3659
|
value: prevGroup
|
|
3670
3660
|
}),
|
|
3671
|
-
groupCollapsed:
|
|
3661
|
+
groupCollapsed: assign({}, props, {
|
|
3672
3662
|
value: prevGroupCollapsed
|
|
3673
3663
|
}),
|
|
3674
|
-
groupEnd:
|
|
3664
|
+
groupEnd: assign({}, props, {
|
|
3675
3665
|
value: prevGroupEnd
|
|
3676
3666
|
})
|
|
3677
3667
|
});
|
|
@@ -3712,7 +3702,7 @@
|
|
|
3712
3702
|
|
|
3713
3703
|
function describeNativeComponentFrame(fn, construct) {
|
|
3714
3704
|
// If something asked for a stack inside a fake render, it should get ignored.
|
|
3715
|
-
if (!fn || reentry) {
|
|
3705
|
+
if ( !fn || reentry) {
|
|
3716
3706
|
return '';
|
|
3717
3707
|
}
|
|
3718
3708
|
|
|
@@ -3821,7 +3811,14 @@
|
|
|
3821
3811
|
|
|
3822
3812
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
3823
3813
|
// V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
|
|
3824
|
-
var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
|
|
3814
|
+
var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
|
|
3815
|
+
// but we have a user-provided "displayName"
|
|
3816
|
+
// splice it in to make the stack more readable.
|
|
3817
|
+
|
|
3818
|
+
|
|
3819
|
+
if (fn.displayName && _frame.includes('<anonymous>')) {
|
|
3820
|
+
_frame = _frame.replace('<anonymous>', fn.displayName);
|
|
3821
|
+
}
|
|
3825
3822
|
|
|
3826
3823
|
{
|
|
3827
3824
|
if (typeof fn === 'function') {
|
|
@@ -3906,9 +3903,6 @@
|
|
|
3906
3903
|
// Memo may contain any component type so we recursively resolve it.
|
|
3907
3904
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
3908
3905
|
|
|
3909
|
-
case REACT_BLOCK_TYPE:
|
|
3910
|
-
return describeFunctionComponentFrame(type._render);
|
|
3911
|
-
|
|
3912
3906
|
case REACT_LAZY_TYPE:
|
|
3913
3907
|
{
|
|
3914
3908
|
var lazyComponent = type;
|
|
@@ -3926,6 +3920,8 @@
|
|
|
3926
3920
|
return '';
|
|
3927
3921
|
}
|
|
3928
3922
|
|
|
3923
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3924
|
+
|
|
3929
3925
|
var loggedTypeFailures = {};
|
|
3930
3926
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3931
3927
|
|
|
@@ -3944,7 +3940,7 @@
|
|
|
3944
3940
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
3945
3941
|
{
|
|
3946
3942
|
// $FlowFixMe This is okay but Flow doesn't know it.
|
|
3947
|
-
var has = Function.call.bind(
|
|
3943
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
3948
3944
|
|
|
3949
3945
|
for (var typeSpecName in typeSpecs) {
|
|
3950
3946
|
if (has(typeSpecs, typeSpecName)) {
|
|
@@ -3956,6 +3952,7 @@
|
|
|
3956
3952
|
// This is intentionally an invariant that gets caught. It's the same
|
|
3957
3953
|
// behavior as without this statement except with a better message.
|
|
3958
3954
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
3955
|
+
// eslint-disable-next-line react-internal/prod-error-codes
|
|
3959
3956
|
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
3960
3957
|
err.name = 'Invariant Violation';
|
|
3961
3958
|
throw err;
|
|
@@ -3989,8 +3986,80 @@
|
|
|
3989
3986
|
}
|
|
3990
3987
|
}
|
|
3991
3988
|
|
|
3989
|
+
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
|
|
3990
|
+
|
|
3991
|
+
function isArray(a) {
|
|
3992
|
+
return isArrayImpl(a);
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3995
|
+
/*
|
|
3996
|
+
* The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
|
|
3997
|
+
* and Temporal.* types. See https://github.com/facebook/react/pull/22064.
|
|
3998
|
+
*
|
|
3999
|
+
* The functions in this module will throw an easier-to-understand,
|
|
4000
|
+
* easier-to-debug exception with a clear errors message message explaining the
|
|
4001
|
+
* problem. (Instead of a confusing exception thrown inside the implementation
|
|
4002
|
+
* of the `value` object).
|
|
4003
|
+
*/
|
|
4004
|
+
// $FlowFixMe only called in DEV, so void return is not possible.
|
|
4005
|
+
function typeName(value) {
|
|
4006
|
+
{
|
|
4007
|
+
// toStringTag is needed for namespaced types like Temporal.Instant
|
|
4008
|
+
var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
|
|
4009
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
|
|
4010
|
+
return type;
|
|
4011
|
+
}
|
|
4012
|
+
} // $FlowFixMe only called in DEV, so void return is not possible.
|
|
4013
|
+
|
|
4014
|
+
|
|
4015
|
+
function willCoercionThrow(value) {
|
|
4016
|
+
{
|
|
4017
|
+
try {
|
|
4018
|
+
testStringCoercion(value);
|
|
4019
|
+
return false;
|
|
4020
|
+
} catch (e) {
|
|
4021
|
+
return true;
|
|
4022
|
+
}
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
function testStringCoercion(value) {
|
|
4027
|
+
// If you ended up here by following an exception call stack, here's what's
|
|
4028
|
+
// happened: you supplied an object or symbol value to React (as a prop, key,
|
|
4029
|
+
// DOM attribute, CSS property, string ref, etc.) and when React tried to
|
|
4030
|
+
// coerce it to a string using `'' + value`, an exception was thrown.
|
|
4031
|
+
//
|
|
4032
|
+
// The most common types that will cause this exception are `Symbol` instances
|
|
4033
|
+
// and Temporal objects like `Temporal.Instant`. But any object that has a
|
|
4034
|
+
// `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
|
|
4035
|
+
// exception. (Library authors do this to prevent users from using built-in
|
|
4036
|
+
// numeric operators like `+` or comparison operators like `>=` because custom
|
|
4037
|
+
// methods are needed to perform accurate arithmetic or comparison.)
|
|
4038
|
+
//
|
|
4039
|
+
// To fix the problem, coerce this object or symbol value to a string before
|
|
4040
|
+
// passing it to React. The most reliable way is usually `String(value)`.
|
|
4041
|
+
//
|
|
4042
|
+
// To find which value is throwing, check the browser or debugger console.
|
|
4043
|
+
// Before this exception was thrown, there should be `console.error` output
|
|
4044
|
+
// that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
|
|
4045
|
+
// problem and how that type was used: key, atrribute, input value prop, etc.
|
|
4046
|
+
// In most cases, this console output also shows the component and its
|
|
4047
|
+
// ancestor components where the exception happened.
|
|
4048
|
+
//
|
|
4049
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
4050
|
+
return '' + value;
|
|
4051
|
+
}
|
|
4052
|
+
function checkKeyStringCoercion(value) {
|
|
4053
|
+
{
|
|
4054
|
+
if (willCoercionThrow(value)) {
|
|
4055
|
+
error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
|
|
4056
|
+
|
|
4057
|
+
return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
|
|
4058
|
+
}
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
|
|
3992
4062
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
3993
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3994
4063
|
var RESERVED_PROPS = {
|
|
3995
4064
|
key: true,
|
|
3996
4065
|
ref: true,
|
|
@@ -4036,10 +4105,10 @@
|
|
|
4036
4105
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
4037
4106
|
{
|
|
4038
4107
|
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
4039
|
-
var componentName =
|
|
4108
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
4040
4109
|
|
|
4041
4110
|
if (!didWarnAboutStringRefs[componentName]) {
|
|
4042
|
-
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref',
|
|
4111
|
+
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
4043
4112
|
|
|
4044
4113
|
didWarnAboutStringRefs[componentName] = true;
|
|
4045
4114
|
}
|
|
@@ -4178,10 +4247,18 @@
|
|
|
4178
4247
|
// key is explicitly declared to be undefined or not.
|
|
4179
4248
|
|
|
4180
4249
|
if (maybeKey !== undefined) {
|
|
4250
|
+
{
|
|
4251
|
+
checkKeyStringCoercion(maybeKey);
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4181
4254
|
key = '' + maybeKey;
|
|
4182
4255
|
}
|
|
4183
4256
|
|
|
4184
4257
|
if (hasValidKey(config)) {
|
|
4258
|
+
{
|
|
4259
|
+
checkKeyStringCoercion(config.key);
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4185
4262
|
key = '' + config.key;
|
|
4186
4263
|
}
|
|
4187
4264
|
|
|
@@ -4252,6 +4329,7 @@
|
|
|
4252
4329
|
* @final
|
|
4253
4330
|
*/
|
|
4254
4331
|
|
|
4332
|
+
|
|
4255
4333
|
function isValidElement(object) {
|
|
4256
4334
|
{
|
|
4257
4335
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
@@ -4261,7 +4339,7 @@
|
|
|
4261
4339
|
function getDeclarationErrorAddendum() {
|
|
4262
4340
|
{
|
|
4263
4341
|
if (ReactCurrentOwner$1.current) {
|
|
4264
|
-
var name =
|
|
4342
|
+
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
4265
4343
|
|
|
4266
4344
|
if (name) {
|
|
4267
4345
|
return '\n\nCheck the render method of `' + name + '`.';
|
|
@@ -4341,7 +4419,7 @@
|
|
|
4341
4419
|
|
|
4342
4420
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
4343
4421
|
// Give the component that originally created this child.
|
|
4344
|
-
childOwner = " It was passed a child from " +
|
|
4422
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
4345
4423
|
}
|
|
4346
4424
|
|
|
4347
4425
|
setCurrentlyValidatingElement$1(element);
|
|
@@ -4368,7 +4446,7 @@
|
|
|
4368
4446
|
return;
|
|
4369
4447
|
}
|
|
4370
4448
|
|
|
4371
|
-
if (
|
|
4449
|
+
if (isArray(node)) {
|
|
4372
4450
|
for (var i = 0; i < node.length; i++) {
|
|
4373
4451
|
var child = node[i];
|
|
4374
4452
|
|
|
@@ -4431,12 +4509,12 @@
|
|
|
4431
4509
|
|
|
4432
4510
|
if (propTypes) {
|
|
4433
4511
|
// Intentionally inside to avoid triggering lazy initializers:
|
|
4434
|
-
var name =
|
|
4512
|
+
var name = getComponentNameFromType(type);
|
|
4435
4513
|
checkPropTypes(propTypes, element.props, 'prop', name, element);
|
|
4436
4514
|
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
4437
4515
|
propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
|
|
4438
4516
|
|
|
4439
|
-
var _name =
|
|
4517
|
+
var _name = getComponentNameFromType(type);
|
|
4440
4518
|
|
|
4441
4519
|
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
|
|
4442
4520
|
}
|
|
@@ -4503,10 +4581,10 @@
|
|
|
4503
4581
|
|
|
4504
4582
|
if (type === null) {
|
|
4505
4583
|
typeString = 'null';
|
|
4506
|
-
} else if (
|
|
4584
|
+
} else if (isArray(type)) {
|
|
4507
4585
|
typeString = 'array';
|
|
4508
4586
|
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
4509
|
-
typeString = "<" + (
|
|
4587
|
+
typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
|
|
4510
4588
|
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
4511
4589
|
} else {
|
|
4512
4590
|
typeString = typeof type;
|
|
@@ -4532,7 +4610,7 @@
|
|
|
4532
4610
|
|
|
4533
4611
|
if (children !== undefined) {
|
|
4534
4612
|
if (isStaticChildren) {
|
|
4535
|
-
if (
|
|
4613
|
+
if (isArray(children)) {
|
|
4536
4614
|
for (var i = 0; i < children.length; i++) {
|
|
4537
4615
|
validateChildKeys(children[i], type);
|
|
4538
4616
|
}
|
|
@@ -4549,7 +4627,7 @@
|
|
|
4549
4627
|
}
|
|
4550
4628
|
}
|
|
4551
4629
|
|
|
4552
|
-
if (type ===
|
|
4630
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
4553
4631
|
validateFragmentProps(element);
|
|
4554
4632
|
} else {
|
|
4555
4633
|
validatePropTypes(element);
|
|
@@ -4578,6 +4656,7 @@
|
|
|
4578
4656
|
|
|
4579
4657
|
var jsxs = jsxWithValidationStatic ;
|
|
4580
4658
|
|
|
4659
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
4581
4660
|
exports.jsx = jsx;
|
|
4582
4661
|
exports.jsxs = jsxs;
|
|
4583
4662
|
})();
|
|
@@ -4624,7 +4703,7 @@
|
|
|
4624
4703
|
injectFirst: PropTypes.bool
|
|
4625
4704
|
} ;
|
|
4626
4705
|
|
|
4627
|
-
function isEmpty$
|
|
4706
|
+
function isEmpty$4(obj) {
|
|
4628
4707
|
return obj === undefined || obj === null || Object.keys(obj).length === 0;
|
|
4629
4708
|
}
|
|
4630
4709
|
|
|
@@ -4633,7 +4712,7 @@
|
|
|
4633
4712
|
styles,
|
|
4634
4713
|
defaultTheme = {}
|
|
4635
4714
|
} = props;
|
|
4636
|
-
const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$
|
|
4715
|
+
const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$4(themeInput) ? defaultTheme : themeInput) : styles;
|
|
4637
4716
|
return /*#__PURE__*/jsxRuntime_1(Global, {
|
|
4638
4717
|
styles: globalStyles
|
|
4639
4718
|
});
|
|
@@ -5464,7 +5543,12 @@
|
|
|
5464
5543
|
return requiredInteger(props, propName, ...other);
|
|
5465
5544
|
}
|
|
5466
5545
|
|
|
5546
|
+
function validatorNoop() {
|
|
5547
|
+
return null;
|
|
5548
|
+
}
|
|
5549
|
+
|
|
5467
5550
|
validator.isRequired = requiredInteger;
|
|
5551
|
+
validatorNoop.isRequired = validatorNoop;
|
|
5468
5552
|
var integerPropType = validator;
|
|
5469
5553
|
|
|
5470
5554
|
/**
|
|
@@ -5528,26 +5612,26 @@
|
|
|
5528
5612
|
var ClassNameGenerator$1 = ClassNameGenerator;
|
|
5529
5613
|
|
|
5530
5614
|
const globalStateClassesMapping = {
|
|
5531
|
-
active: '
|
|
5532
|
-
checked: '
|
|
5533
|
-
completed: '
|
|
5534
|
-
disabled: '
|
|
5535
|
-
error: '
|
|
5536
|
-
expanded: '
|
|
5537
|
-
focused: '
|
|
5538
|
-
focusVisible: '
|
|
5539
|
-
required: '
|
|
5540
|
-
selected: '
|
|
5541
|
-
};
|
|
5542
|
-
function generateUtilityClass(componentName, slot) {
|
|
5615
|
+
active: 'active',
|
|
5616
|
+
checked: 'checked',
|
|
5617
|
+
completed: 'completed',
|
|
5618
|
+
disabled: 'disabled',
|
|
5619
|
+
error: 'error',
|
|
5620
|
+
expanded: 'expanded',
|
|
5621
|
+
focused: 'focused',
|
|
5622
|
+
focusVisible: 'focusVisible',
|
|
5623
|
+
required: 'required',
|
|
5624
|
+
selected: 'selected'
|
|
5625
|
+
};
|
|
5626
|
+
function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {
|
|
5543
5627
|
const globalStateClass = globalStateClassesMapping[slot];
|
|
5544
|
-
return globalStateClass
|
|
5628
|
+
return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator$1.generate(componentName)}-${slot}`;
|
|
5545
5629
|
}
|
|
5546
5630
|
|
|
5547
|
-
function generateUtilityClasses(componentName, slots) {
|
|
5631
|
+
function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {
|
|
5548
5632
|
const result = {};
|
|
5549
5633
|
slots.forEach(slot => {
|
|
5550
|
-
result[slot] = generateUtilityClass(componentName, slot);
|
|
5634
|
+
result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
|
|
5551
5635
|
});
|
|
5552
5636
|
return result;
|
|
5553
5637
|
}
|
|
@@ -6455,7 +6539,7 @@
|
|
|
6455
6539
|
styleFunctionSx.filterProps = ['sx'];
|
|
6456
6540
|
var defaultStyleFunctionSx = styleFunctionSx;
|
|
6457
6541
|
|
|
6458
|
-
const _excluded$
|
|
6542
|
+
const _excluded$2n = ["sx"];
|
|
6459
6543
|
|
|
6460
6544
|
const splitProps = props => {
|
|
6461
6545
|
const result = {
|
|
@@ -6476,7 +6560,7 @@
|
|
|
6476
6560
|
const {
|
|
6477
6561
|
sx: inSx
|
|
6478
6562
|
} = props,
|
|
6479
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6563
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2n);
|
|
6480
6564
|
|
|
6481
6565
|
const {
|
|
6482
6566
|
systemProps,
|
|
@@ -6514,48 +6598,9 @@
|
|
|
6514
6598
|
});
|
|
6515
6599
|
}
|
|
6516
6600
|
|
|
6517
|
-
function
|
|
6518
|
-
var k, y, str='';
|
|
6519
|
-
|
|
6520
|
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
6521
|
-
str += mix;
|
|
6522
|
-
} else if (typeof mix === 'object') {
|
|
6523
|
-
if (Array.isArray(mix)) {
|
|
6524
|
-
for (k=0; k < mix.length; k++) {
|
|
6525
|
-
if (mix[k]) {
|
|
6526
|
-
if (y = toVal(mix[k])) {
|
|
6527
|
-
str && (str += ' ');
|
|
6528
|
-
str += y;
|
|
6529
|
-
}
|
|
6530
|
-
}
|
|
6531
|
-
}
|
|
6532
|
-
} else {
|
|
6533
|
-
for (k in mix) {
|
|
6534
|
-
if (mix[k]) {
|
|
6535
|
-
str && (str += ' ');
|
|
6536
|
-
str += k;
|
|
6537
|
-
}
|
|
6538
|
-
}
|
|
6539
|
-
}
|
|
6540
|
-
}
|
|
6541
|
-
|
|
6542
|
-
return str;
|
|
6543
|
-
}
|
|
6544
|
-
|
|
6545
|
-
function clsx () {
|
|
6546
|
-
var i=0, tmp, x, str='';
|
|
6547
|
-
while (i < arguments.length) {
|
|
6548
|
-
if (tmp = arguments[i++]) {
|
|
6549
|
-
if (x = toVal(tmp)) {
|
|
6550
|
-
str && (str += ' ');
|
|
6551
|
-
str += x;
|
|
6552
|
-
}
|
|
6553
|
-
}
|
|
6554
|
-
}
|
|
6555
|
-
return str;
|
|
6556
|
-
}
|
|
6601
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
6557
6602
|
|
|
6558
|
-
const _excluded$
|
|
6603
|
+
const _excluded$2m = ["values", "unit", "step"];
|
|
6559
6604
|
|
|
6560
6605
|
const sortBreakpointsValues = values => {
|
|
6561
6606
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
@@ -6591,7 +6636,7 @@
|
|
|
6591
6636
|
unit = 'px',
|
|
6592
6637
|
step = 5
|
|
6593
6638
|
} = breakpoints,
|
|
6594
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6639
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2m);
|
|
6595
6640
|
|
|
6596
6641
|
const sortedValues = sortBreakpointsValues(values);
|
|
6597
6642
|
const keys = Object.keys(sortedValues);
|
|
@@ -6683,7 +6728,7 @@
|
|
|
6683
6728
|
return spacing;
|
|
6684
6729
|
}
|
|
6685
6730
|
|
|
6686
|
-
const _excluded$
|
|
6731
|
+
const _excluded$2l = ["breakpoints", "palette", "spacing", "shape"];
|
|
6687
6732
|
|
|
6688
6733
|
function createTheme$1(options = {}, ...args) {
|
|
6689
6734
|
const {
|
|
@@ -6692,7 +6737,7 @@
|
|
|
6692
6737
|
spacing: spacingInput,
|
|
6693
6738
|
shape: shapeInput = {}
|
|
6694
6739
|
} = options,
|
|
6695
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6740
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2l);
|
|
6696
6741
|
|
|
6697
6742
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
6698
6743
|
const spacing = createSpacing(spacingInput);
|
|
@@ -6814,7 +6859,7 @@
|
|
|
6814
6859
|
return useTheme$2(defaultTheme);
|
|
6815
6860
|
}
|
|
6816
6861
|
|
|
6817
|
-
const _excluded$
|
|
6862
|
+
const _excluded$2k = ["className", "component"];
|
|
6818
6863
|
function createBox(options = {}) {
|
|
6819
6864
|
const {
|
|
6820
6865
|
defaultTheme,
|
|
@@ -6831,7 +6876,7 @@
|
|
|
6831
6876
|
className,
|
|
6832
6877
|
component = 'div'
|
|
6833
6878
|
} = _extendSxProp,
|
|
6834
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
6879
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2k);
|
|
6835
6880
|
|
|
6836
6881
|
return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
|
|
6837
6882
|
as: component,
|
|
@@ -6843,9 +6888,9 @@
|
|
|
6843
6888
|
return Box;
|
|
6844
6889
|
}
|
|
6845
6890
|
|
|
6846
|
-
const _excluded$
|
|
6891
|
+
const _excluded$2j = ["variant"];
|
|
6847
6892
|
|
|
6848
|
-
function isEmpty$
|
|
6893
|
+
function isEmpty$3(string) {
|
|
6849
6894
|
return string.length === 0;
|
|
6850
6895
|
}
|
|
6851
6896
|
/**
|
|
@@ -6859,24 +6904,24 @@
|
|
|
6859
6904
|
const {
|
|
6860
6905
|
variant
|
|
6861
6906
|
} = props,
|
|
6862
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6907
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2j);
|
|
6863
6908
|
|
|
6864
6909
|
let classKey = variant || '';
|
|
6865
6910
|
Object.keys(other).sort().forEach(key => {
|
|
6866
6911
|
if (key === 'color') {
|
|
6867
|
-
classKey += isEmpty$
|
|
6912
|
+
classKey += isEmpty$3(classKey) ? props[key] : capitalize(props[key]);
|
|
6868
6913
|
} else {
|
|
6869
|
-
classKey += `${isEmpty$
|
|
6914
|
+
classKey += `${isEmpty$3(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`;
|
|
6870
6915
|
}
|
|
6871
6916
|
});
|
|
6872
6917
|
return classKey;
|
|
6873
6918
|
}
|
|
6874
6919
|
|
|
6875
|
-
const _excluded$
|
|
6920
|
+
const _excluded$2i = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6876
6921
|
_excluded2$c = ["theme"],
|
|
6877
6922
|
_excluded3$1 = ["theme"];
|
|
6878
6923
|
|
|
6879
|
-
function isEmpty$
|
|
6924
|
+
function isEmpty$2(obj) {
|
|
6880
6925
|
return Object.keys(obj).length === 0;
|
|
6881
6926
|
}
|
|
6882
6927
|
|
|
@@ -6955,7 +7000,7 @@
|
|
|
6955
7000
|
skipSx: inputSkipSx,
|
|
6956
7001
|
overridesResolver
|
|
6957
7002
|
} = inputOptions,
|
|
6958
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
7003
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2i); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
6959
7004
|
|
|
6960
7005
|
|
|
6961
7006
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -6995,7 +7040,7 @@
|
|
|
6995
7040
|
other = _objectWithoutPropertiesLoose(_ref, _excluded2$c);
|
|
6996
7041
|
|
|
6997
7042
|
return stylesArg(_extends({
|
|
6998
|
-
theme: isEmpty$
|
|
7043
|
+
theme: isEmpty$2(themeInput) ? defaultTheme : themeInput
|
|
6999
7044
|
}, other));
|
|
7000
7045
|
} : stylesArg;
|
|
7001
7046
|
}) : [];
|
|
@@ -7003,7 +7048,7 @@
|
|
|
7003
7048
|
|
|
7004
7049
|
if (componentName && overridesResolver) {
|
|
7005
7050
|
expressionsWithDefaultTheme.push(props => {
|
|
7006
|
-
const theme = isEmpty$
|
|
7051
|
+
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7007
7052
|
const styleOverrides = getStyleOverrides(componentName, theme);
|
|
7008
7053
|
|
|
7009
7054
|
if (styleOverrides) {
|
|
@@ -7022,14 +7067,14 @@
|
|
|
7022
7067
|
|
|
7023
7068
|
if (componentName && !skipVariantsResolver) {
|
|
7024
7069
|
expressionsWithDefaultTheme.push(props => {
|
|
7025
|
-
const theme = isEmpty$
|
|
7070
|
+
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7026
7071
|
return variantsResolver(props, getVariantStyles(componentName, theme), theme, componentName);
|
|
7027
7072
|
});
|
|
7028
7073
|
}
|
|
7029
7074
|
|
|
7030
7075
|
if (!skipSx) {
|
|
7031
7076
|
expressionsWithDefaultTheme.push(props => {
|
|
7032
|
-
const theme = isEmpty$
|
|
7077
|
+
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7033
7078
|
return styleFunctionSx(_extends({}, props, {
|
|
7034
7079
|
theme
|
|
7035
7080
|
}));
|
|
@@ -7056,7 +7101,7 @@
|
|
|
7056
7101
|
other = _objectWithoutPropertiesLoose(_ref2, _excluded3$1);
|
|
7057
7102
|
|
|
7058
7103
|
return styleArg(_extends({
|
|
7059
|
-
theme: isEmpty$
|
|
7104
|
+
theme: isEmpty$2(themeInput) ? defaultTheme : themeInput
|
|
7060
7105
|
}, other));
|
|
7061
7106
|
};
|
|
7062
7107
|
}
|
|
@@ -7568,13 +7613,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7568
7613
|
* @param {Object} theme
|
|
7569
7614
|
* @param {{
|
|
7570
7615
|
* prefix?: string,
|
|
7571
|
-
* basePrefix?: string,
|
|
7572
7616
|
* shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
|
|
7573
7617
|
* }} options.
|
|
7574
|
-
* `
|
|
7575
|
-
* `prefix`: defined by application
|
|
7576
|
-
*
|
|
7577
|
-
* the CSS variable value will be adjusted based on the provided `basePrefix` & `prefix` which can be found in `parsedTheme`.
|
|
7618
|
+
* `prefix`: The prefix of the generated CSS variables. This function does not change the value.
|
|
7578
7619
|
*
|
|
7579
7620
|
* @returns {{ css: Object, vars: Object, parsedTheme: typeof theme }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme), and `parsedTheme` is the cloned version of theme.
|
|
7580
7621
|
*
|
|
@@ -7585,16 +7626,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7585
7626
|
* palette: { primary: { 500: 'var(--color)' } }
|
|
7586
7627
|
* }, { prefix: 'foo' })
|
|
7587
7628
|
*
|
|
7588
|
-
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--
|
|
7589
|
-
* console.log(vars) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7590
|
-
* console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--
|
|
7629
|
+
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
|
|
7630
|
+
* console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7631
|
+
* console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--color)' } } }
|
|
7591
7632
|
*/
|
|
7592
7633
|
|
|
7593
7634
|
|
|
7594
7635
|
function cssVarsParser(theme, options) {
|
|
7595
7636
|
const {
|
|
7596
7637
|
prefix,
|
|
7597
|
-
basePrefix = '',
|
|
7598
7638
|
shouldSkipGeneratingVar
|
|
7599
7639
|
} = options || {};
|
|
7600
7640
|
const css = {};
|
|
@@ -7602,16 +7642,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7602
7642
|
const parsedTheme = {};
|
|
7603
7643
|
walkObjectDeep(theme, (keys, value, arrayKeys) => {
|
|
7604
7644
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
7605
|
-
if (typeof value === 'string' && value.match(/var\(\s*--/)) {
|
|
7606
|
-
// for CSS variable, apply prefix or remove basePrefix from the variable
|
|
7607
|
-
if (!basePrefix && prefix) {
|
|
7608
|
-
value = value.replace(/var\(\s*--/g, `var(--${prefix}-`);
|
|
7609
|
-
} else {
|
|
7610
|
-
value = prefix ? value.replace(new RegExp(`var\\(\\s*--${basePrefix}`, 'g'), `var(--${prefix}`) // removing spaces
|
|
7611
|
-
: value.replace(new RegExp(`var\\(\\s*--${basePrefix}-`, 'g'), 'var(--');
|
|
7612
|
-
}
|
|
7613
|
-
}
|
|
7614
|
-
|
|
7615
7645
|
if (!shouldSkipGeneratingVar || shouldSkipGeneratingVar && !shouldSkipGeneratingVar(keys, value)) {
|
|
7616
7646
|
// only create css & var if `shouldSkipGeneratingVar` return false
|
|
7617
7647
|
const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
|
|
@@ -7637,6 +7667,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7637
7667
|
const DEFAULT_ATTRIBUTE = 'data-color-scheme';
|
|
7638
7668
|
function getInitColorSchemeScript$1(options) {
|
|
7639
7669
|
const {
|
|
7670
|
+
enableColorScheme = true,
|
|
7640
7671
|
enableSystem = false,
|
|
7641
7672
|
defaultLightColorScheme = 'light',
|
|
7642
7673
|
defaultDarkColorScheme = 'dark',
|
|
@@ -7650,13 +7681,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7650
7681
|
dangerouslySetInnerHTML: {
|
|
7651
7682
|
__html: `(function() { try {
|
|
7652
7683
|
var mode = localStorage.getItem('${modeStorageKey}');
|
|
7684
|
+
var cssColorScheme = mode;
|
|
7653
7685
|
var colorScheme = '';
|
|
7654
7686
|
if (mode === 'system' || (!mode && !!${enableSystem})) {
|
|
7655
7687
|
// handle system mode
|
|
7656
7688
|
var mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
7657
7689
|
if (mql.matches) {
|
|
7690
|
+
cssColorScheme = 'dark';
|
|
7658
7691
|
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
7659
7692
|
} else {
|
|
7693
|
+
cssColorScheme = 'light';
|
|
7660
7694
|
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
7661
7695
|
}
|
|
7662
7696
|
}
|
|
@@ -7669,6 +7703,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7669
7703
|
if (colorScheme) {
|
|
7670
7704
|
${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
|
|
7671
7705
|
}
|
|
7706
|
+
if (${enableColorScheme} && !!cssColorScheme) {
|
|
7707
|
+
${colorSchemeNode}.style.setProperty('color-scheme', cssColorScheme);
|
|
7708
|
+
}
|
|
7672
7709
|
} catch (e) {} })();`
|
|
7673
7710
|
}
|
|
7674
7711
|
});
|
|
@@ -7826,7 +7863,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7826
7863
|
const handleMediaQuery = React__namespace.useCallback(e => {
|
|
7827
7864
|
if (state.mode === 'system') {
|
|
7828
7865
|
setState(currentState => _extends({}, currentState, {
|
|
7829
|
-
systemMode: e.matches ? 'dark' : 'light'
|
|
7866
|
+
systemMode: e != null && e.matches ? 'dark' : 'light'
|
|
7830
7867
|
}));
|
|
7831
7868
|
}
|
|
7832
7869
|
}, [state.mode]); // Ref hack to avoid adding handleMediaQuery as a dep
|
|
@@ -7899,34 +7936,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7899
7936
|
});
|
|
7900
7937
|
}
|
|
7901
7938
|
|
|
7902
|
-
|
|
7903
|
-
* The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
|
|
7904
|
-
* and they does not need to remember the prefix (defined once).
|
|
7905
|
-
*/
|
|
7906
|
-
function createGetCssVar(prefix = '') {
|
|
7907
|
-
function appendVar(...vars) {
|
|
7908
|
-
if (!vars.length) {
|
|
7909
|
-
return '';
|
|
7910
|
-
}
|
|
7911
|
-
|
|
7912
|
-
const value = vars[0];
|
|
7913
|
-
|
|
7914
|
-
if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
|
|
7915
|
-
return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
|
|
7916
|
-
}
|
|
7917
|
-
|
|
7918
|
-
return `, ${value}`;
|
|
7919
|
-
} // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
const getCssVar = (field, ...vars) => {
|
|
7923
|
-
return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...vars)})`;
|
|
7924
|
-
};
|
|
7925
|
-
|
|
7926
|
-
return getCssVar;
|
|
7927
|
-
}
|
|
7928
|
-
|
|
7929
|
-
const _excluded$2g = ["colorSchemes", "components"];
|
|
7939
|
+
const _excluded$2h = ["colorSchemes", "components", "cssVarPrefix"];
|
|
7930
7940
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
7931
7941
|
function createCssVarsProvider(options) {
|
|
7932
7942
|
const {
|
|
@@ -7938,8 +7948,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7938
7948
|
defaultColorScheme: designSystemColorScheme,
|
|
7939
7949
|
disableTransitionOnChange: designSystemTransitionOnChange = false,
|
|
7940
7950
|
enableColorScheme: designSystemEnableColorScheme = true,
|
|
7941
|
-
|
|
7942
|
-
shouldSkipGeneratingVar,
|
|
7951
|
+
shouldSkipGeneratingVar: designSystemShouldSkipGeneratingVar,
|
|
7943
7952
|
resolveTheme
|
|
7944
7953
|
} = options;
|
|
7945
7954
|
|
|
@@ -7962,7 +7971,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7962
7971
|
function CssVarsProvider({
|
|
7963
7972
|
children,
|
|
7964
7973
|
theme: themeProp = defaultTheme,
|
|
7965
|
-
prefix = designSystemPrefix,
|
|
7966
7974
|
modeStorageKey = defaultModeStorageKey,
|
|
7967
7975
|
colorSchemeStorageKey = defaultColorSchemeStorageKey,
|
|
7968
7976
|
attribute = defaultAttribute,
|
|
@@ -7973,15 +7981,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7973
7981
|
storageWindow = typeof window === 'undefined' ? undefined : window,
|
|
7974
7982
|
documentNode = typeof document === 'undefined' ? undefined : document,
|
|
7975
7983
|
colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
|
|
7976
|
-
colorSchemeSelector = ':root'
|
|
7984
|
+
colorSchemeSelector = ':root',
|
|
7985
|
+
shouldSkipGeneratingVar = designSystemShouldSkipGeneratingVar
|
|
7977
7986
|
}) {
|
|
7978
7987
|
const hasMounted = React__namespace.useRef(false);
|
|
7979
7988
|
|
|
7980
7989
|
const {
|
|
7981
7990
|
colorSchemes = {},
|
|
7982
|
-
components = {}
|
|
7991
|
+
components = {},
|
|
7992
|
+
cssVarPrefix
|
|
7983
7993
|
} = themeProp,
|
|
7984
|
-
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$
|
|
7994
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2h);
|
|
7985
7995
|
|
|
7986
7996
|
const allColorSchemes = Object.keys(colorSchemes);
|
|
7987
7997
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
@@ -8024,16 +8034,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8024
8034
|
vars: rootVars,
|
|
8025
8035
|
parsedTheme
|
|
8026
8036
|
} = cssVarsParser(theme, {
|
|
8027
|
-
prefix,
|
|
8028
|
-
basePrefix: designSystemPrefix,
|
|
8037
|
+
prefix: cssVarPrefix,
|
|
8029
8038
|
shouldSkipGeneratingVar
|
|
8030
8039
|
});
|
|
8031
8040
|
theme = _extends({}, parsedTheme, {
|
|
8032
8041
|
components,
|
|
8033
8042
|
colorSchemes,
|
|
8034
|
-
|
|
8043
|
+
cssVarPrefix,
|
|
8035
8044
|
vars: rootVars,
|
|
8036
|
-
getCssVar: createGetCssVar(prefix),
|
|
8037
8045
|
getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
|
|
8038
8046
|
});
|
|
8039
8047
|
const defaultColorSchemeStyleSheet = {};
|
|
@@ -8044,8 +8052,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8044
8052
|
vars,
|
|
8045
8053
|
parsedTheme: parsedScheme
|
|
8046
8054
|
} = cssVarsParser(scheme, {
|
|
8047
|
-
prefix,
|
|
8048
|
-
basePrefix: designSystemPrefix,
|
|
8055
|
+
prefix: cssVarPrefix,
|
|
8049
8056
|
shouldSkipGeneratingVar
|
|
8050
8057
|
});
|
|
8051
8058
|
theme.vars = deepmerge(theme.vars, vars);
|
|
@@ -8209,9 +8216,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8209
8216
|
modeStorageKey: PropTypes.string,
|
|
8210
8217
|
|
|
8211
8218
|
/**
|
|
8212
|
-
* CSS
|
|
8219
|
+
* A function to determine if the key, value should be attached as CSS Variable
|
|
8213
8220
|
*/
|
|
8214
|
-
|
|
8221
|
+
shouldSkipGeneratingVar: PropTypes.func,
|
|
8215
8222
|
|
|
8216
8223
|
/**
|
|
8217
8224
|
* The window that attaches the 'storage' event listener
|
|
@@ -8228,7 +8235,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8228
8235
|
const getInitColorSchemeScript = params => getInitColorSchemeScript$1(_extends({
|
|
8229
8236
|
attribute: defaultAttribute,
|
|
8230
8237
|
colorSchemeStorageKey: defaultColorSchemeStorageKey,
|
|
8231
|
-
modeStorageKey: defaultModeStorageKey
|
|
8238
|
+
modeStorageKey: defaultModeStorageKey,
|
|
8239
|
+
enableColorScheme: designSystemEnableColorScheme
|
|
8232
8240
|
}, params));
|
|
8233
8241
|
|
|
8234
8242
|
return {
|
|
@@ -8238,9 +8246,36 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8238
8246
|
};
|
|
8239
8247
|
}
|
|
8240
8248
|
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8249
|
+
/**
|
|
8250
|
+
* The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
|
|
8251
|
+
* and they does not need to remember the prefix (defined once).
|
|
8252
|
+
*/
|
|
8253
|
+
function createGetCssVar$1(prefix = '') {
|
|
8254
|
+
function appendVar(...vars) {
|
|
8255
|
+
if (!vars.length) {
|
|
8256
|
+
return '';
|
|
8257
|
+
}
|
|
8258
|
+
|
|
8259
|
+
const value = vars[0];
|
|
8260
|
+
|
|
8261
|
+
if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
|
|
8262
|
+
return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
|
|
8263
|
+
}
|
|
8264
|
+
|
|
8265
|
+
return `, ${value}`;
|
|
8266
|
+
} // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
|
|
8267
|
+
|
|
8268
|
+
|
|
8269
|
+
const getCssVar = (field, ...fallbacks) => {
|
|
8270
|
+
return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;
|
|
8271
|
+
};
|
|
8272
|
+
|
|
8273
|
+
return getCssVar;
|
|
8274
|
+
}
|
|
8275
|
+
|
|
8276
|
+
const _excluded$2g = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
|
|
8277
|
+
const defaultTheme$5 = createTheme$1();
|
|
8278
|
+
const defaultCreateStyledComponent$1 = systemStyled('div', {
|
|
8244
8279
|
name: 'MuiContainer',
|
|
8245
8280
|
slot: 'Root',
|
|
8246
8281
|
overridesResolver: (props, styles) => {
|
|
@@ -8251,10 +8286,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8251
8286
|
}
|
|
8252
8287
|
});
|
|
8253
8288
|
|
|
8254
|
-
const useThemePropsDefault = inProps => useThemeProps$1({
|
|
8289
|
+
const useThemePropsDefault$1 = inProps => useThemeProps$1({
|
|
8255
8290
|
props: inProps,
|
|
8256
8291
|
name: 'MuiContainer',
|
|
8257
|
-
defaultTheme: defaultTheme$
|
|
8292
|
+
defaultTheme: defaultTheme$5
|
|
8258
8293
|
});
|
|
8259
8294
|
|
|
8260
8295
|
const useUtilityClasses$1P = (ownerState, componentName) => {
|
|
@@ -8277,8 +8312,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8277
8312
|
function createContainer(options = {}) {
|
|
8278
8313
|
const {
|
|
8279
8314
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
8280
|
-
createStyledComponent = defaultCreateStyledComponent,
|
|
8281
|
-
useThemeProps = useThemePropsDefault,
|
|
8315
|
+
createStyledComponent = defaultCreateStyledComponent$1,
|
|
8316
|
+
useThemeProps = useThemePropsDefault$1,
|
|
8282
8317
|
componentName = 'MuiContainer'
|
|
8283
8318
|
} = options;
|
|
8284
8319
|
const ContainerRoot = createStyledComponent(({
|
|
@@ -8340,7 +8375,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8340
8375
|
fixed = false,
|
|
8341
8376
|
maxWidth = 'lg'
|
|
8342
8377
|
} = props,
|
|
8343
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8378
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2g);
|
|
8344
8379
|
|
|
8345
8380
|
const ownerState = _extends({}, props, {
|
|
8346
8381
|
component,
|
|
@@ -8380,6 +8415,376 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8380
8415
|
return Container;
|
|
8381
8416
|
}
|
|
8382
8417
|
|
|
8418
|
+
const traverseBreakpoints = (breakpoints, responsize, iterator) => {
|
|
8419
|
+
const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.
|
|
8420
|
+
|
|
8421
|
+
if (Array.isArray(responsize)) {
|
|
8422
|
+
responsize.forEach((breakpointValue, index) => {
|
|
8423
|
+
iterator((responsizeStyles, style) => {
|
|
8424
|
+
if (index <= breakpoints.keys.length - 1) {
|
|
8425
|
+
if (index === 0) {
|
|
8426
|
+
Object.assign(responsizeStyles, style);
|
|
8427
|
+
} else {
|
|
8428
|
+
responsizeStyles[breakpoints.up(breakpoints.keys[index])] = style;
|
|
8429
|
+
}
|
|
8430
|
+
}
|
|
8431
|
+
}, breakpointValue);
|
|
8432
|
+
});
|
|
8433
|
+
} else if (responsize && typeof responsize === 'object') {
|
|
8434
|
+
// prevent null
|
|
8435
|
+
// responsize could be a very big object, pick the smallest responsive values
|
|
8436
|
+
const keys = Object.keys(responsize).length > breakpoints.keys.length ? breakpoints.keys : Object.keys(responsize);
|
|
8437
|
+
keys.forEach(key => {
|
|
8438
|
+
if (breakpoints.keys.indexOf(key) !== -1) {
|
|
8439
|
+
// @ts-ignore already checked that responsize is an object
|
|
8440
|
+
const breakpointValue = responsize[key];
|
|
8441
|
+
|
|
8442
|
+
if (breakpointValue !== undefined) {
|
|
8443
|
+
iterator((responsizeStyles, style) => {
|
|
8444
|
+
if (smallestBreakpoint === key) {
|
|
8445
|
+
Object.assign(responsizeStyles, style);
|
|
8446
|
+
} else {
|
|
8447
|
+
responsizeStyles[breakpoints.up(key)] = style;
|
|
8448
|
+
}
|
|
8449
|
+
}, breakpointValue);
|
|
8450
|
+
}
|
|
8451
|
+
}
|
|
8452
|
+
});
|
|
8453
|
+
} else if (typeof responsize === 'number' || typeof responsize === 'string') {
|
|
8454
|
+
iterator((responsizeStyles, style) => {
|
|
8455
|
+
Object.assign(responsizeStyles, style);
|
|
8456
|
+
}, responsize);
|
|
8457
|
+
}
|
|
8458
|
+
};
|
|
8459
|
+
const generateGridSizeStyles = ({
|
|
8460
|
+
theme,
|
|
8461
|
+
ownerState
|
|
8462
|
+
}) => {
|
|
8463
|
+
const styles = {};
|
|
8464
|
+
traverseBreakpoints(theme.breakpoints, ownerState.gridSize, (appendStyle, value) => {
|
|
8465
|
+
let style = {};
|
|
8466
|
+
|
|
8467
|
+
if (value === true) {
|
|
8468
|
+
style = {
|
|
8469
|
+
flexBasis: 0,
|
|
8470
|
+
flexGrow: 1,
|
|
8471
|
+
maxWidth: '100%'
|
|
8472
|
+
};
|
|
8473
|
+
}
|
|
8474
|
+
|
|
8475
|
+
if (value === 'auto') {
|
|
8476
|
+
style = {
|
|
8477
|
+
flexBasis: 'auto',
|
|
8478
|
+
flexGrow: 0,
|
|
8479
|
+
flexShrink: 0,
|
|
8480
|
+
maxWidth: 'none',
|
|
8481
|
+
width: 'auto'
|
|
8482
|
+
};
|
|
8483
|
+
}
|
|
8484
|
+
|
|
8485
|
+
if (typeof value === 'number') {
|
|
8486
|
+
style = {
|
|
8487
|
+
flexGrow: 0,
|
|
8488
|
+
flexBasis: 'auto',
|
|
8489
|
+
width: `calc(100% * ${value} / var(--Grid-columns)${ownerState.nested && ownerState.container ? ` + var(--Grid-columnSpacing)` : ''})`
|
|
8490
|
+
};
|
|
8491
|
+
}
|
|
8492
|
+
|
|
8493
|
+
appendStyle(styles, style);
|
|
8494
|
+
});
|
|
8495
|
+
return styles;
|
|
8496
|
+
};
|
|
8497
|
+
const generateGridOffsetStyles = ({
|
|
8498
|
+
theme,
|
|
8499
|
+
ownerState
|
|
8500
|
+
}) => {
|
|
8501
|
+
const styles = {};
|
|
8502
|
+
traverseBreakpoints(theme.breakpoints, ownerState.gridOffset, (appendStyle, value) => {
|
|
8503
|
+
let style = {};
|
|
8504
|
+
|
|
8505
|
+
if (value === 'auto') {
|
|
8506
|
+
style = {
|
|
8507
|
+
marginLeft: 'auto'
|
|
8508
|
+
};
|
|
8509
|
+
}
|
|
8510
|
+
|
|
8511
|
+
if (typeof value === 'number') {
|
|
8512
|
+
style = {
|
|
8513
|
+
marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / var(--Grid-columns))`
|
|
8514
|
+
};
|
|
8515
|
+
}
|
|
8516
|
+
|
|
8517
|
+
appendStyle(styles, style);
|
|
8518
|
+
});
|
|
8519
|
+
return styles;
|
|
8520
|
+
};
|
|
8521
|
+
const generateGridColumnsStyles = ({
|
|
8522
|
+
theme,
|
|
8523
|
+
ownerState
|
|
8524
|
+
}) => {
|
|
8525
|
+
if (!ownerState.container) {
|
|
8526
|
+
return {};
|
|
8527
|
+
}
|
|
8528
|
+
|
|
8529
|
+
const styles = {
|
|
8530
|
+
'--Grid-columns': 12
|
|
8531
|
+
};
|
|
8532
|
+
traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {
|
|
8533
|
+
appendStyle(styles, {
|
|
8534
|
+
'--Grid-columns': value
|
|
8535
|
+
});
|
|
8536
|
+
});
|
|
8537
|
+
return styles;
|
|
8538
|
+
};
|
|
8539
|
+
const generateGridRowSpacingStyles = ({
|
|
8540
|
+
theme,
|
|
8541
|
+
ownerState
|
|
8542
|
+
}) => {
|
|
8543
|
+
if (!ownerState.container) {
|
|
8544
|
+
return {};
|
|
8545
|
+
}
|
|
8546
|
+
|
|
8547
|
+
const styles = {};
|
|
8548
|
+
traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {
|
|
8549
|
+
var _theme$spacing;
|
|
8550
|
+
|
|
8551
|
+
appendStyle(styles, {
|
|
8552
|
+
'--Grid-rowSpacing': typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
|
|
8553
|
+
});
|
|
8554
|
+
});
|
|
8555
|
+
return styles;
|
|
8556
|
+
};
|
|
8557
|
+
const generateGridColumnSpacingStyles = ({
|
|
8558
|
+
theme,
|
|
8559
|
+
ownerState
|
|
8560
|
+
}) => {
|
|
8561
|
+
if (!ownerState.container) {
|
|
8562
|
+
return {};
|
|
8563
|
+
}
|
|
8564
|
+
|
|
8565
|
+
const styles = {};
|
|
8566
|
+
traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {
|
|
8567
|
+
var _theme$spacing2;
|
|
8568
|
+
|
|
8569
|
+
appendStyle(styles, {
|
|
8570
|
+
'--Grid-columnSpacing': typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
|
|
8571
|
+
});
|
|
8572
|
+
});
|
|
8573
|
+
return styles;
|
|
8574
|
+
};
|
|
8575
|
+
const generateGridDirectionStyles = ({
|
|
8576
|
+
theme,
|
|
8577
|
+
ownerState
|
|
8578
|
+
}) => {
|
|
8579
|
+
if (!ownerState.container) {
|
|
8580
|
+
return {};
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8583
|
+
const styles = {};
|
|
8584
|
+
traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => {
|
|
8585
|
+
appendStyle(styles, {
|
|
8586
|
+
flexDirection: value
|
|
8587
|
+
});
|
|
8588
|
+
});
|
|
8589
|
+
return styles;
|
|
8590
|
+
};
|
|
8591
|
+
const generateGridStyles = ({
|
|
8592
|
+
ownerState
|
|
8593
|
+
}) => {
|
|
8594
|
+
return _extends({
|
|
8595
|
+
minWidth: 0,
|
|
8596
|
+
boxSizing: 'border-box'
|
|
8597
|
+
}, ownerState.container ? _extends({
|
|
8598
|
+
display: 'flex',
|
|
8599
|
+
flexWrap: 'wrap'
|
|
8600
|
+
}, ownerState.wrap && ownerState.wrap !== 'wrap' && {
|
|
8601
|
+
flexWrap: ownerState.wrap
|
|
8602
|
+
}, {
|
|
8603
|
+
margin: `calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)`
|
|
8604
|
+
}, ownerState.nested ? {
|
|
8605
|
+
padding: `calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)`
|
|
8606
|
+
} : {
|
|
8607
|
+
'--Grid-nested-rowSpacing': 'var(--Grid-rowSpacing)',
|
|
8608
|
+
'--Grid-nested-columnSpacing': 'var(--Grid-columnSpacing)'
|
|
8609
|
+
}) : {
|
|
8610
|
+
padding: `calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)`
|
|
8611
|
+
});
|
|
8612
|
+
};
|
|
8613
|
+
const generateSizeClassNames = gridSize => {
|
|
8614
|
+
const classNames = [];
|
|
8615
|
+
Object.entries(gridSize).forEach(([key, value]) => {
|
|
8616
|
+
if (value !== false && value !== undefined) {
|
|
8617
|
+
classNames.push(`grid-${key}-${String(value)}`);
|
|
8618
|
+
}
|
|
8619
|
+
});
|
|
8620
|
+
return classNames;
|
|
8621
|
+
};
|
|
8622
|
+
const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {
|
|
8623
|
+
function isValidSpacing(val) {
|
|
8624
|
+
if (val === undefined) {
|
|
8625
|
+
return false;
|
|
8626
|
+
}
|
|
8627
|
+
|
|
8628
|
+
return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;
|
|
8629
|
+
}
|
|
8630
|
+
|
|
8631
|
+
if (isValidSpacing(spacing)) {
|
|
8632
|
+
return [`spacing-${smallestBreakpoint}-${String(spacing)}`];
|
|
8633
|
+
}
|
|
8634
|
+
|
|
8635
|
+
if (typeof spacing === 'object' && !Array.isArray(spacing)) {
|
|
8636
|
+
const classNames = [];
|
|
8637
|
+
Object.entries(spacing).forEach(([key, value]) => {
|
|
8638
|
+
if (isValidSpacing(value)) {
|
|
8639
|
+
classNames.push(`spacing-${key}-${String(value)}`);
|
|
8640
|
+
}
|
|
8641
|
+
});
|
|
8642
|
+
return classNames;
|
|
8643
|
+
}
|
|
8644
|
+
|
|
8645
|
+
return [];
|
|
8646
|
+
};
|
|
8647
|
+
|
|
8648
|
+
const _excluded$2f = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing"];
|
|
8649
|
+
const defaultTheme$4 = createTheme$1(); // widening Theme to any so that the consumer can own the theme structure.
|
|
8650
|
+
|
|
8651
|
+
const defaultCreateStyledComponent = systemStyled('div', {
|
|
8652
|
+
name: 'MuiGrid',
|
|
8653
|
+
slot: 'Root',
|
|
8654
|
+
overridesResolver: (props, styles) => styles.root
|
|
8655
|
+
});
|
|
8656
|
+
|
|
8657
|
+
function useThemePropsDefault(props) {
|
|
8658
|
+
return useThemeProps$1({
|
|
8659
|
+
props,
|
|
8660
|
+
name: 'MuiGrid',
|
|
8661
|
+
defaultTheme: defaultTheme$4
|
|
8662
|
+
});
|
|
8663
|
+
}
|
|
8664
|
+
|
|
8665
|
+
function createGrid(options = {}) {
|
|
8666
|
+
const {
|
|
8667
|
+
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
8668
|
+
createStyledComponent = defaultCreateStyledComponent,
|
|
8669
|
+
useThemeProps = useThemePropsDefault,
|
|
8670
|
+
componentName = 'MuiGrid'
|
|
8671
|
+
} = options;
|
|
8672
|
+
const NestedContext = /*#__PURE__*/React__namespace.createContext(false);
|
|
8673
|
+
|
|
8674
|
+
const useUtilityClasses = (ownerState, theme) => {
|
|
8675
|
+
const {
|
|
8676
|
+
container,
|
|
8677
|
+
direction,
|
|
8678
|
+
spacing,
|
|
8679
|
+
wrap,
|
|
8680
|
+
gridSize
|
|
8681
|
+
} = ownerState;
|
|
8682
|
+
const slots = {
|
|
8683
|
+
root: ['root', container && 'container', direction !== 'row' && `direction-xs-${String(direction)}`, wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...generateSizeClassNames(gridSize), ...(container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : [])]
|
|
8684
|
+
};
|
|
8685
|
+
return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});
|
|
8686
|
+
};
|
|
8687
|
+
|
|
8688
|
+
const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);
|
|
8689
|
+
const Grid = /*#__PURE__*/React__namespace.forwardRef(function Grid(inProps, ref) {
|
|
8690
|
+
var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin;
|
|
8691
|
+
|
|
8692
|
+
const theme = useTheme$1();
|
|
8693
|
+
const themeProps = useThemeProps(inProps);
|
|
8694
|
+
const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
|
|
8695
|
+
|
|
8696
|
+
const nested = React__namespace.useContext(NestedContext);
|
|
8697
|
+
|
|
8698
|
+
const {
|
|
8699
|
+
className,
|
|
8700
|
+
columns: columnsProp = 12,
|
|
8701
|
+
container = false,
|
|
8702
|
+
component = 'div',
|
|
8703
|
+
direction = 'row',
|
|
8704
|
+
wrap = 'wrap',
|
|
8705
|
+
spacing: spacingProp = 0,
|
|
8706
|
+
rowSpacing: rowSpacingProp = spacingProp,
|
|
8707
|
+
columnSpacing: columnSpacingProp = spacingProp
|
|
8708
|
+
} = props,
|
|
8709
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2f); // collect breakpoints related props because they can be custom from the theme.
|
|
8710
|
+
|
|
8711
|
+
|
|
8712
|
+
const gridSize = {};
|
|
8713
|
+
const gridOffset = {};
|
|
8714
|
+
const other = {};
|
|
8715
|
+
Object.entries(rest).forEach(([key, val]) => {
|
|
8716
|
+
if (theme.breakpoints.values[key] !== undefined) {
|
|
8717
|
+
gridSize[key] = val;
|
|
8718
|
+
} else if (theme.breakpoints.values[key.replace('Offset', '')] !== undefined) {
|
|
8719
|
+
gridOffset[key.replace('Offset', '')] = val;
|
|
8720
|
+
} else {
|
|
8721
|
+
other[key] = val;
|
|
8722
|
+
}
|
|
8723
|
+
});
|
|
8724
|
+
const columns = (_inProps$columns = inProps.columns) != null ? _inProps$columns : nested ? undefined : columnsProp;
|
|
8725
|
+
const spacing = (_inProps$spacing = inProps.spacing) != null ? _inProps$spacing : nested ? undefined : spacingProp;
|
|
8726
|
+
const rowSpacing = (_ref = (_inProps$rowSpacing = inProps.rowSpacing) != null ? _inProps$rowSpacing : inProps.spacing) != null ? _ref : nested ? undefined : rowSpacingProp;
|
|
8727
|
+
const columnSpacing = (_ref2 = (_inProps$columnSpacin = inProps.columnSpacing) != null ? _inProps$columnSpacin : inProps.spacing) != null ? _ref2 : nested ? undefined : columnSpacingProp;
|
|
8728
|
+
|
|
8729
|
+
const ownerState = _extends({}, props, {
|
|
8730
|
+
nested,
|
|
8731
|
+
columns,
|
|
8732
|
+
container,
|
|
8733
|
+
direction,
|
|
8734
|
+
wrap,
|
|
8735
|
+
spacing,
|
|
8736
|
+
rowSpacing,
|
|
8737
|
+
columnSpacing,
|
|
8738
|
+
gridSize,
|
|
8739
|
+
gridOffset
|
|
8740
|
+
});
|
|
8741
|
+
|
|
8742
|
+
const classes = useUtilityClasses(ownerState, theme);
|
|
8743
|
+
|
|
8744
|
+
let result = /*#__PURE__*/jsxRuntime_1(GridRoot, _extends({
|
|
8745
|
+
ref: ref,
|
|
8746
|
+
as: component,
|
|
8747
|
+
ownerState: ownerState,
|
|
8748
|
+
className: clsx(classes.root, className)
|
|
8749
|
+
}, other));
|
|
8750
|
+
|
|
8751
|
+
if (!nested) {
|
|
8752
|
+
result = /*#__PURE__*/jsxRuntime_1(NestedContext.Provider, {
|
|
8753
|
+
value: true,
|
|
8754
|
+
children: result
|
|
8755
|
+
});
|
|
8756
|
+
}
|
|
8757
|
+
|
|
8758
|
+
return result;
|
|
8759
|
+
});
|
|
8760
|
+
Grid.propTypes
|
|
8761
|
+
/* remove-proptypes */
|
|
8762
|
+
= {
|
|
8763
|
+
children: PropTypes.node,
|
|
8764
|
+
className: PropTypes.string,
|
|
8765
|
+
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
|
|
8766
|
+
columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
8767
|
+
component: PropTypes.elementType,
|
|
8768
|
+
container: PropTypes.bool,
|
|
8769
|
+
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
|
8770
|
+
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8771
|
+
lgOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8772
|
+
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8773
|
+
mdOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8774
|
+
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
8775
|
+
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8776
|
+
smOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8777
|
+
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
8778
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
8779
|
+
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
8780
|
+
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8781
|
+
xlOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8782
|
+
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8783
|
+
xsOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
8784
|
+
} ;
|
|
8785
|
+
return Grid;
|
|
8786
|
+
}
|
|
8787
|
+
|
|
8383
8788
|
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
8384
8789
|
_excluded2$b = ["type", "mode"];
|
|
8385
8790
|
function adaptV4Theme(inputTheme) {
|
|
@@ -8467,21 +8872,26 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8467
8872
|
return typeof element === 'string';
|
|
8468
8873
|
}
|
|
8469
8874
|
|
|
8875
|
+
/**
|
|
8876
|
+
* Type of the ownerState based on the type of an element it applies to.
|
|
8877
|
+
* This resolves to the provided OwnerState for React components and `undefined` for host components.
|
|
8878
|
+
* Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.
|
|
8879
|
+
*/
|
|
8880
|
+
|
|
8470
8881
|
/**
|
|
8471
8882
|
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
8472
8883
|
*
|
|
8473
|
-
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState`
|
|
8474
|
-
* @param
|
|
8884
|
+
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` is not applied.
|
|
8885
|
+
* @param otherProps Props of the element.
|
|
8475
8886
|
* @param ownerState
|
|
8476
8887
|
*/
|
|
8477
|
-
|
|
8478
|
-
function appendOwnerState(elementType, existingProps = {}, ownerState) {
|
|
8888
|
+
function appendOwnerState(elementType, otherProps = {}, ownerState) {
|
|
8479
8889
|
if (isHostComponent(elementType)) {
|
|
8480
|
-
return
|
|
8890
|
+
return otherProps;
|
|
8481
8891
|
}
|
|
8482
8892
|
|
|
8483
|
-
return _extends({},
|
|
8484
|
-
ownerState: _extends({},
|
|
8893
|
+
return _extends({}, otherProps, {
|
|
8894
|
+
ownerState: _extends({}, otherProps.ownerState, ownerState)
|
|
8485
8895
|
});
|
|
8486
8896
|
}
|
|
8487
8897
|
|
|
@@ -8505,10 +8915,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8505
8915
|
}
|
|
8506
8916
|
|
|
8507
8917
|
/**
|
|
8508
|
-
*
|
|
8509
|
-
*
|
|
8510
|
-
* `on` is followed by a non-letter character,
|
|
8918
|
+
* If `componentProps` is a function, calls it with the provided `ownerState`.
|
|
8919
|
+
* Otherwise, just returns `componentProps`.
|
|
8511
8920
|
*/
|
|
8921
|
+
function resolveComponentProps(componentProps, ownerState) {
|
|
8922
|
+
if (typeof componentProps === 'function') {
|
|
8923
|
+
return componentProps(ownerState);
|
|
8924
|
+
}
|
|
8925
|
+
|
|
8926
|
+
return componentProps;
|
|
8927
|
+
}
|
|
8512
8928
|
|
|
8513
8929
|
/**
|
|
8514
8930
|
* Removes event handlers from the given object.
|
|
@@ -8556,12 +8972,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8556
8972
|
// so we can simply merge all the props without having to worry about extracting event handlers.
|
|
8557
8973
|
const joinedClasses = clsx(externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className, className, additionalProps == null ? void 0 : additionalProps.className);
|
|
8558
8974
|
|
|
8559
|
-
const
|
|
8560
|
-
className: joinedClasses
|
|
8561
|
-
});
|
|
8975
|
+
const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
8562
8976
|
|
|
8563
|
-
|
|
8564
|
-
|
|
8977
|
+
const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);
|
|
8978
|
+
|
|
8979
|
+
if (joinedClasses.length > 0) {
|
|
8980
|
+
props.className = joinedClasses;
|
|
8981
|
+
}
|
|
8982
|
+
|
|
8983
|
+
if (Object.keys(mergedStyle).length > 0) {
|
|
8984
|
+
props.style = mergedStyle;
|
|
8565
8985
|
}
|
|
8566
8986
|
|
|
8567
8987
|
return {
|
|
@@ -8575,15 +8995,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8575
8995
|
const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));
|
|
8576
8996
|
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
|
8577
8997
|
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
|
8578
|
-
const internalSlotProps = getSlotProps(eventHandlers);
|
|
8579
|
-
|
|
8998
|
+
const internalSlotProps = getSlotProps(eventHandlers); // The order of classes is important here.
|
|
8999
|
+
// Emotion (that we use in libraries consuming MUI Base) depends on this order
|
|
9000
|
+
// to properly override style. It requires the most important classes to be last
|
|
9001
|
+
// (see https://github.com/mui/material-ui/pull/33205) for the related discussion.
|
|
8580
9002
|
|
|
8581
|
-
const
|
|
8582
|
-
|
|
8583
|
-
});
|
|
9003
|
+
const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
9004
|
+
|
|
9005
|
+
const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
9006
|
+
|
|
9007
|
+
const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);
|
|
8584
9008
|
|
|
8585
|
-
if (joinedClasses.length
|
|
8586
|
-
|
|
9009
|
+
if (joinedClasses.length > 0) {
|
|
9010
|
+
props.className = joinedClasses;
|
|
9011
|
+
}
|
|
9012
|
+
|
|
9013
|
+
if (Object.keys(mergedStyle).length > 0) {
|
|
9014
|
+
props.style = mergedStyle;
|
|
8587
9015
|
}
|
|
8588
9016
|
|
|
8589
9017
|
return {
|
|
@@ -8592,18 +9020,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8592
9020
|
};
|
|
8593
9021
|
}
|
|
8594
9022
|
|
|
8595
|
-
/**
|
|
8596
|
-
* If `componentProps` is a function, calls it with the provided `ownerState`.
|
|
8597
|
-
* Otherwise, just returns `componentProps`.
|
|
8598
|
-
*/
|
|
8599
|
-
function resolveComponentProps(componentProps, ownerState) {
|
|
8600
|
-
if (typeof componentProps === 'function') {
|
|
8601
|
-
return componentProps(ownerState);
|
|
8602
|
-
}
|
|
8603
|
-
|
|
8604
|
-
return componentProps;
|
|
8605
|
-
}
|
|
8606
|
-
|
|
8607
9023
|
const _excluded$2d = ["elementType", "externalSlotProps", "ownerState"];
|
|
8608
9024
|
|
|
8609
9025
|
/**
|
|
@@ -8624,11 +9040,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8624
9040
|
rest = _objectWithoutPropertiesLoose(parameters, _excluded$2d);
|
|
8625
9041
|
|
|
8626
9042
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
8627
|
-
const
|
|
9043
|
+
const {
|
|
9044
|
+
props: mergedProps,
|
|
9045
|
+
internalRef
|
|
9046
|
+
} = mergeSlotProps(_extends({}, rest, {
|
|
8628
9047
|
externalSlotProps: resolvedComponentsProps
|
|
8629
9048
|
}));
|
|
8630
|
-
const
|
|
8631
|
-
|
|
9049
|
+
const ref = useForkRef(internalRef, useForkRef(resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref));
|
|
9050
|
+
const props = appendOwnerState(elementType, _extends({}, mergedProps, {
|
|
9051
|
+
ref
|
|
8632
9052
|
}), ownerState);
|
|
8633
9053
|
return props;
|
|
8634
9054
|
}
|
|
@@ -8698,13 +9118,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8698
9118
|
autoHighlight = false,
|
|
8699
9119
|
autoSelect = false,
|
|
8700
9120
|
blurOnSelect = false,
|
|
8701
|
-
disabled: disabledProp,
|
|
8702
9121
|
clearOnBlur = !props.freeSolo,
|
|
8703
9122
|
clearOnEscape = false,
|
|
8704
9123
|
componentName = 'useAutocomplete',
|
|
8705
9124
|
defaultValue = props.multiple ? [] : null,
|
|
8706
9125
|
disableClearable = false,
|
|
8707
9126
|
disableCloseOnSelect = false,
|
|
9127
|
+
disabled: disabledProp,
|
|
8708
9128
|
disabledItemsFocusable = false,
|
|
8709
9129
|
disableListWrap = false,
|
|
8710
9130
|
filterOptions = defaultFilterOptions,
|
|
@@ -8716,12 +9136,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8716
9136
|
|
|
8717
9137
|
return (_option$label = option.label) != null ? _option$label : option;
|
|
8718
9138
|
},
|
|
8719
|
-
isOptionEqualToValue = (option, value) => option === value,
|
|
8720
9139
|
groupBy,
|
|
8721
9140
|
handleHomeEndKeys = !props.freeSolo,
|
|
8722
9141
|
id: idProp,
|
|
8723
9142
|
includeInputInList = false,
|
|
8724
9143
|
inputValue: inputValueProp,
|
|
9144
|
+
isOptionEqualToValue = (option, value) => option === value,
|
|
8725
9145
|
multiple = false,
|
|
8726
9146
|
onChange,
|
|
8727
9147
|
onClose,
|
|
@@ -12508,15 +12928,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12508
12928
|
});
|
|
12509
12929
|
element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize}px`;
|
|
12510
12930
|
});
|
|
12511
|
-
}
|
|
12512
|
-
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
12931
|
+
}
|
|
12513
12932
|
|
|
12933
|
+
let scrollContainer;
|
|
12514
12934
|
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12935
|
+
if (container.parentNode instanceof DocumentFragment) {
|
|
12936
|
+
scrollContainer = ownerDocument(container).body;
|
|
12937
|
+
} else {
|
|
12938
|
+
// Improve Gatsby support
|
|
12939
|
+
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
12940
|
+
const parent = container.parentElement;
|
|
12941
|
+
const containerWindow = ownerWindow(container);
|
|
12942
|
+
scrollContainer = (parent == null ? void 0 : parent.nodeName) === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;
|
|
12943
|
+
} // Block the scroll even if no scrollbar is visible to account for mobile keyboard
|
|
12518
12944
|
// screensize shrink.
|
|
12519
12945
|
|
|
12946
|
+
|
|
12520
12947
|
restoreStyle.push({
|
|
12521
12948
|
value: scrollContainer.style.overflow,
|
|
12522
12949
|
property: 'overflow',
|
|
@@ -13024,7 +13451,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13024
13451
|
const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
|
|
13025
13452
|
var modalUnstyledClasses$1 = modalUnstyledClasses;
|
|
13026
13453
|
|
|
13027
|
-
const _excluded$2a = ["children", "classes", "
|
|
13454
|
+
const _excluded$2a = ["children", "classes", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited"];
|
|
13028
13455
|
|
|
13029
13456
|
const useUtilityClasses$1N = ownerState => {
|
|
13030
13457
|
const {
|
|
@@ -13064,12 +13491,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13064
13491
|
*/
|
|
13065
13492
|
|
|
13066
13493
|
const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, ref) {
|
|
13067
|
-
var _props$ariaHidden
|
|
13494
|
+
var _props$ariaHidden;
|
|
13068
13495
|
|
|
13069
13496
|
const {
|
|
13070
13497
|
children,
|
|
13071
13498
|
classes: classesProp,
|
|
13072
|
-
className,
|
|
13073
13499
|
closeAfterTransition = false,
|
|
13074
13500
|
component = 'div',
|
|
13075
13501
|
components = {},
|
|
@@ -13175,10 +13601,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13175
13601
|
|
|
13176
13602
|
const classes = useUtilityClasses$1N(ownerState);
|
|
13177
13603
|
|
|
13178
|
-
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
13179
|
-
return null;
|
|
13180
|
-
}
|
|
13181
|
-
|
|
13182
13604
|
const handleEnter = () => {
|
|
13183
13605
|
setExited(false);
|
|
13184
13606
|
|
|
@@ -13251,19 +13673,34 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13251
13673
|
}
|
|
13252
13674
|
|
|
13253
13675
|
const Root = components.Root || component;
|
|
13254
|
-
const rootProps =
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13676
|
+
const rootProps = useSlotProps({
|
|
13677
|
+
elementType: Root,
|
|
13678
|
+
externalSlotProps: componentsProps.root,
|
|
13679
|
+
externalForwardedProps: other,
|
|
13680
|
+
additionalProps: {
|
|
13681
|
+
ref: handleRef,
|
|
13682
|
+
role: 'presentation',
|
|
13683
|
+
onKeyDown: handleKeyDown
|
|
13684
|
+
},
|
|
13685
|
+
className: classes.root,
|
|
13686
|
+
ownerState
|
|
13687
|
+
});
|
|
13261
13688
|
const BackdropComponent = components.Backdrop;
|
|
13262
|
-
const backdropProps =
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13266
|
-
|
|
13689
|
+
const backdropProps = useSlotProps({
|
|
13690
|
+
elementType: BackdropComponent,
|
|
13691
|
+
externalSlotProps: componentsProps.backdrop,
|
|
13692
|
+
additionalProps: {
|
|
13693
|
+
'aria-hidden': true,
|
|
13694
|
+
onClick: handleBackdropClick,
|
|
13695
|
+
open
|
|
13696
|
+
},
|
|
13697
|
+
ownerState
|
|
13698
|
+
});
|
|
13699
|
+
|
|
13700
|
+
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
13701
|
+
return null;
|
|
13702
|
+
}
|
|
13703
|
+
|
|
13267
13704
|
return /*#__PURE__*/jsxRuntime_1(Portal$1, {
|
|
13268
13705
|
ref: handlePortalRef,
|
|
13269
13706
|
container: container,
|
|
@@ -13298,11 +13735,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13298
13735
|
*/
|
|
13299
13736
|
classes: PropTypes.object,
|
|
13300
13737
|
|
|
13301
|
-
/**
|
|
13302
|
-
* @ignore
|
|
13303
|
-
*/
|
|
13304
|
-
className: PropTypes.string,
|
|
13305
|
-
|
|
13306
13738
|
/**
|
|
13307
13739
|
* When set to true the Modal waits until a nested Transition is completed before closing.
|
|
13308
13740
|
* @default false
|
|
@@ -13330,8 +13762,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13330
13762
|
* @default {}
|
|
13331
13763
|
*/
|
|
13332
13764
|
componentsProps: PropTypes.shape({
|
|
13333
|
-
backdrop: PropTypes.object,
|
|
13334
|
-
root: PropTypes.object
|
|
13765
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
13766
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
13335
13767
|
}),
|
|
13336
13768
|
|
|
13337
13769
|
/**
|
|
@@ -13772,7 +14204,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13772
14204
|
onFocus: handleFocusVisible,
|
|
13773
14205
|
ref: focusVisibleRef
|
|
13774
14206
|
} = useIsFocusVisible();
|
|
13775
|
-
const [
|
|
14207
|
+
const [focusedThumbIndex, setFocusedThumbIndex] = React__namespace.useState(-1);
|
|
13776
14208
|
const sliderRef = React__namespace.useRef();
|
|
13777
14209
|
const handleFocusRef = useForkRef(focusVisibleRef, sliderRef);
|
|
13778
14210
|
const handleRef = useForkRef(ref, handleFocusRef);
|
|
@@ -13784,7 +14216,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13784
14216
|
handleFocusVisible(event);
|
|
13785
14217
|
|
|
13786
14218
|
if (isFocusVisibleRef.current === true) {
|
|
13787
|
-
|
|
14219
|
+
setFocusedThumbIndex(index);
|
|
13788
14220
|
}
|
|
13789
14221
|
|
|
13790
14222
|
setOpen(index);
|
|
@@ -13797,7 +14229,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13797
14229
|
handleBlurVisible(event);
|
|
13798
14230
|
|
|
13799
14231
|
if (isFocusVisibleRef.current === false) {
|
|
13800
|
-
|
|
14232
|
+
setFocusedThumbIndex(-1);
|
|
13801
14233
|
}
|
|
13802
14234
|
|
|
13803
14235
|
setOpen(-1);
|
|
@@ -13820,8 +14252,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13820
14252
|
setActive(-1);
|
|
13821
14253
|
}
|
|
13822
14254
|
|
|
13823
|
-
if (disabled &&
|
|
13824
|
-
|
|
14255
|
+
if (disabled && focusedThumbIndex !== -1) {
|
|
14256
|
+
setFocusedThumbIndex(-1);
|
|
13825
14257
|
}
|
|
13826
14258
|
|
|
13827
14259
|
const createHandleHiddenInputChange = otherHandlers => event => {
|
|
@@ -13870,7 +14302,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13870
14302
|
}
|
|
13871
14303
|
|
|
13872
14304
|
setValueState(newValue);
|
|
13873
|
-
|
|
14305
|
+
setFocusedThumbIndex(index);
|
|
13874
14306
|
|
|
13875
14307
|
if (handleChange) {
|
|
13876
14308
|
handleChange(event, newValue, index);
|
|
@@ -14181,13 +14613,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14181
14613
|
onMouseOver: createHandleMouseOver(otherHandlers || {}),
|
|
14182
14614
|
onMouseLeave: createHandleMouseLeave(otherHandlers || {})
|
|
14183
14615
|
};
|
|
14184
|
-
|
|
14185
|
-
const mergedEventHandlers = _extends({}, otherHandlers, ownEventHandlers);
|
|
14186
|
-
|
|
14187
|
-
return _extends({}, mergedEventHandlers);
|
|
14616
|
+
return _extends({}, otherHandlers, ownEventHandlers);
|
|
14188
14617
|
};
|
|
14189
14618
|
|
|
14190
14619
|
const getHiddenInputProps = (otherHandlers = {}) => {
|
|
14620
|
+
var _parameters$step;
|
|
14621
|
+
|
|
14191
14622
|
const ownEventHandlers = {
|
|
14192
14623
|
onChange: createHandleHiddenInputChange(otherHandlers || {}),
|
|
14193
14624
|
onFocus: createHandleHiddenInputFocus(otherHandlers || {}),
|
|
@@ -14206,7 +14637,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14206
14637
|
type: 'range',
|
|
14207
14638
|
min: parameters.min,
|
|
14208
14639
|
max: parameters.max,
|
|
14209
|
-
step: parameters.step,
|
|
14640
|
+
step: (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
|
|
14210
14641
|
disabled
|
|
14211
14642
|
}, mergedEventHandlers, {
|
|
14212
14643
|
style: _extends({}, visuallyHidden$1, {
|
|
@@ -14223,7 +14654,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14223
14654
|
axis: axis,
|
|
14224
14655
|
axisProps,
|
|
14225
14656
|
dragging,
|
|
14226
|
-
|
|
14657
|
+
focusedThumbIndex,
|
|
14227
14658
|
getHiddenInputProps,
|
|
14228
14659
|
getRootProps,
|
|
14229
14660
|
getThumbProps,
|
|
@@ -14236,7 +14667,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14236
14667
|
};
|
|
14237
14668
|
}
|
|
14238
14669
|
|
|
14239
|
-
const _excluded$29 = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "
|
|
14670
|
+
const _excluded$29 = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
|
|
14240
14671
|
|
|
14241
14672
|
const Identity = x => x;
|
|
14242
14673
|
|
|
@@ -14286,7 +14717,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14286
14717
|
marks: marksProp = false,
|
|
14287
14718
|
max = 100,
|
|
14288
14719
|
min = 0,
|
|
14289
|
-
onMouseDown,
|
|
14290
14720
|
orientation = 'horizontal',
|
|
14291
14721
|
scale = Identity,
|
|
14292
14722
|
step = 1,
|
|
@@ -14325,7 +14755,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14325
14755
|
active,
|
|
14326
14756
|
axis,
|
|
14327
14757
|
range,
|
|
14328
|
-
|
|
14758
|
+
focusedThumbIndex,
|
|
14329
14759
|
dragging,
|
|
14330
14760
|
marks,
|
|
14331
14761
|
values,
|
|
@@ -14336,37 +14766,69 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14336
14766
|
}));
|
|
14337
14767
|
ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
14338
14768
|
ownerState.dragging = dragging;
|
|
14769
|
+
ownerState.focusedThumbIndex = focusedThumbIndex;
|
|
14770
|
+
const classes = useUtilityClasses$1M(ownerState);
|
|
14339
14771
|
const Root = (_ref = component != null ? component : components.Root) != null ? _ref : 'span';
|
|
14340
|
-
const rootProps =
|
|
14772
|
+
const rootProps = useSlotProps({
|
|
14773
|
+
elementType: Root,
|
|
14774
|
+
getSlotProps: getRootProps,
|
|
14775
|
+
externalSlotProps: componentsProps.root,
|
|
14776
|
+
externalForwardedProps: other,
|
|
14777
|
+
ownerState,
|
|
14778
|
+
className: [classes.root, className]
|
|
14779
|
+
});
|
|
14341
14780
|
const Rail = (_components$Rail = components.Rail) != null ? _components$Rail : 'span';
|
|
14342
|
-
const railProps =
|
|
14781
|
+
const railProps = useSlotProps({
|
|
14782
|
+
elementType: Rail,
|
|
14783
|
+
externalSlotProps: componentsProps.rail,
|
|
14784
|
+
ownerState,
|
|
14785
|
+
className: classes.rail
|
|
14786
|
+
});
|
|
14343
14787
|
const Track = (_components$Track = components.Track) != null ? _components$Track : 'span';
|
|
14344
|
-
const trackProps =
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14788
|
+
const trackProps = useSlotProps({
|
|
14789
|
+
elementType: Track,
|
|
14790
|
+
externalSlotProps: componentsProps.track,
|
|
14791
|
+
additionalProps: {
|
|
14792
|
+
style: _extends({}, axisProps[axis].offset(trackOffset), axisProps[axis].leap(trackLeap))
|
|
14793
|
+
},
|
|
14794
|
+
ownerState,
|
|
14795
|
+
className: classes.track
|
|
14796
|
+
});
|
|
14348
14797
|
const Thumb = (_components$Thumb = components.Thumb) != null ? _components$Thumb : 'span';
|
|
14349
|
-
const thumbProps =
|
|
14798
|
+
const thumbProps = useSlotProps({
|
|
14799
|
+
elementType: Thumb,
|
|
14800
|
+
getSlotProps: getThumbProps,
|
|
14801
|
+
externalSlotProps: componentsProps.thumb,
|
|
14802
|
+
ownerState
|
|
14803
|
+
});
|
|
14350
14804
|
const ValueLabel = (_components$ValueLabe = components.ValueLabel) != null ? _components$ValueLabe : SliderValueLabelUnstyled;
|
|
14351
|
-
const valueLabelProps =
|
|
14805
|
+
const valueLabelProps = useSlotProps({
|
|
14806
|
+
elementType: ValueLabel,
|
|
14807
|
+
externalSlotProps: componentsProps.valueLabel,
|
|
14808
|
+
ownerState
|
|
14809
|
+
});
|
|
14352
14810
|
const Mark = (_components$Mark = components.Mark) != null ? _components$Mark : 'span';
|
|
14353
|
-
const markProps =
|
|
14811
|
+
const markProps = useSlotProps({
|
|
14812
|
+
elementType: Mark,
|
|
14813
|
+
externalSlotProps: componentsProps.mark,
|
|
14814
|
+
ownerState,
|
|
14815
|
+
className: classes.mark
|
|
14816
|
+
});
|
|
14354
14817
|
const MarkLabel = (_components$MarkLabel = components.MarkLabel) != null ? _components$MarkLabel : 'span';
|
|
14355
|
-
const markLabelProps =
|
|
14818
|
+
const markLabelProps = useSlotProps({
|
|
14819
|
+
elementType: MarkLabel,
|
|
14820
|
+
externalSlotProps: componentsProps.markLabel,
|
|
14821
|
+
ownerState
|
|
14822
|
+
});
|
|
14356
14823
|
const Input = components.Input || 'input';
|
|
14357
|
-
const inputProps =
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
})
|
|
14363
|
-
|
|
14364
|
-
children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps, {
|
|
14365
|
-
className: clsx(classes.rail, railProps.className)
|
|
14366
|
-
})), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, {
|
|
14367
|
-
className: clsx(classes.track, trackProps.className),
|
|
14368
|
-
style: _extends({}, trackStyle, trackProps.style)
|
|
14369
|
-
})), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
14824
|
+
const inputProps = useSlotProps({
|
|
14825
|
+
elementType: Input,
|
|
14826
|
+
getSlotProps: getHiddenInputProps,
|
|
14827
|
+
externalSlotProps: componentsProps.input,
|
|
14828
|
+
ownerState
|
|
14829
|
+
});
|
|
14830
|
+
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
|
|
14831
|
+
children: [/*#__PURE__*/jsxRuntime_1(Rail, _extends({}, railProps)), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps)), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
14370
14832
|
const percent = valueToPercent(mark.value, min, max);
|
|
14371
14833
|
const style = axisProps[axis].offset(percent);
|
|
14372
14834
|
let markActive;
|
|
@@ -14384,7 +14846,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14384
14846
|
markActive
|
|
14385
14847
|
}, {
|
|
14386
14848
|
style: _extends({}, style, markProps.style),
|
|
14387
|
-
className: clsx(
|
|
14849
|
+
className: clsx(markProps.className, markActive && classes.markActive)
|
|
14388
14850
|
})), mark.label != null ? /*#__PURE__*/jsxRuntime_1(MarkLabel, _extends({
|
|
14389
14851
|
"aria-hidden": true,
|
|
14390
14852
|
"data-index": index
|
|
@@ -14411,23 +14873,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14411
14873
|
}, valueLabelProps, {
|
|
14412
14874
|
className: clsx(classes.valueLabel, valueLabelProps.className),
|
|
14413
14875
|
children: /*#__PURE__*/jsxRuntime_1(Thumb, _extends({
|
|
14414
|
-
"data-index": index
|
|
14415
|
-
|
|
14416
|
-
|
|
14876
|
+
"data-index": index,
|
|
14877
|
+
"data-focusvisible": focusedThumbIndex === index
|
|
14878
|
+
}, thumbProps, {
|
|
14879
|
+
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
14417
14880
|
style: _extends({}, style, {
|
|
14418
14881
|
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
14419
14882
|
}, thumbProps.style),
|
|
14420
|
-
children: /*#__PURE__*/jsxRuntime_1(Input, _extends({
|
|
14883
|
+
children: /*#__PURE__*/jsxRuntime_1(Input, _extends({
|
|
14421
14884
|
"data-index": index,
|
|
14422
14885
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
|
14423
14886
|
"aria-valuenow": scale(value),
|
|
14424
14887
|
"aria-valuetext": getAriaValueText ? getAriaValueText(scale(value), index) : ariaValuetext,
|
|
14425
14888
|
value: values[index]
|
|
14426
|
-
},
|
|
14427
|
-
ownerState: _extends({}, ownerState, inputProps.ownerState)
|
|
14428
|
-
}, inputProps, {
|
|
14429
|
-
style: _extends({}, hiddenInputProps.style, inputProps.style)
|
|
14430
|
-
}))
|
|
14889
|
+
}, inputProps))
|
|
14431
14890
|
}))
|
|
14432
14891
|
}))
|
|
14433
14892
|
}, index);
|
|
@@ -14515,14 +14974,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14515
14974
|
* @default {}
|
|
14516
14975
|
*/
|
|
14517
14976
|
componentsProps: PropTypes.shape({
|
|
14518
|
-
input: PropTypes.object,
|
|
14519
|
-
mark: PropTypes.object,
|
|
14520
|
-
markLabel: PropTypes.object,
|
|
14521
|
-
rail: PropTypes.object,
|
|
14522
|
-
root: PropTypes.object,
|
|
14523
|
-
thumb: PropTypes.object,
|
|
14524
|
-
track: PropTypes.object,
|
|
14525
|
-
valueLabel: PropTypes.shape({
|
|
14977
|
+
input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14978
|
+
mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14979
|
+
markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14980
|
+
rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14981
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14982
|
+
thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14983
|
+
track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
14984
|
+
valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
14526
14985
|
children: PropTypes.element,
|
|
14527
14986
|
className: PropTypes.string,
|
|
14528
14987
|
components: PropTypes.shape({
|
|
@@ -14532,7 +14991,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14532
14991
|
style: PropTypes.object,
|
|
14533
14992
|
value: PropTypes.number,
|
|
14534
14993
|
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
|
|
14535
|
-
})
|
|
14994
|
+
})])
|
|
14536
14995
|
}),
|
|
14537
14996
|
|
|
14538
14997
|
/**
|
|
@@ -14624,11 +15083,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14624
15083
|
*/
|
|
14625
15084
|
onChangeCommitted: PropTypes.func,
|
|
14626
15085
|
|
|
14627
|
-
/**
|
|
14628
|
-
* @ignore
|
|
14629
|
-
*/
|
|
14630
|
-
onMouseDown: PropTypes.func,
|
|
14631
|
-
|
|
14632
15086
|
/**
|
|
14633
15087
|
* The component orientation.
|
|
14634
15088
|
* @default 'horizontal'
|
|
@@ -14716,6 +15170,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14716
15170
|
transform: 'translateZ(0)'
|
|
14717
15171
|
}
|
|
14718
15172
|
};
|
|
15173
|
+
|
|
15174
|
+
function isEmpty$1(obj) {
|
|
15175
|
+
return obj === undefined || obj === null || Object.keys(obj).length === 0;
|
|
15176
|
+
}
|
|
15177
|
+
|
|
14719
15178
|
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
|
|
14720
15179
|
const {
|
|
14721
15180
|
onChange,
|
|
@@ -14734,13 +15193,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14734
15193
|
const shadowRef = React__namespace.useRef(null);
|
|
14735
15194
|
const renders = React__namespace.useRef(0);
|
|
14736
15195
|
const [state, setState] = React__namespace.useState({});
|
|
14737
|
-
const
|
|
15196
|
+
const getUpdatedState = React__namespace.useCallback(() => {
|
|
14738
15197
|
const input = inputRef.current;
|
|
14739
15198
|
const containerWindow = ownerWindow(input);
|
|
14740
15199
|
const computedStyle = containerWindow.getComputedStyle(input); // If input's width is shrunk and it's not visible, don't sync height.
|
|
14741
15200
|
|
|
14742
15201
|
if (computedStyle.width === '0px') {
|
|
14743
|
-
return;
|
|
15202
|
+
return {};
|
|
14744
15203
|
}
|
|
14745
15204
|
|
|
14746
15205
|
const inputShallow = shadowRef.current;
|
|
@@ -14777,30 +15236,77 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14777
15236
|
|
|
14778
15237
|
const outerHeightStyle = outerHeight + (boxSizing === 'border-box' ? padding + border : 0);
|
|
14779
15238
|
const overflow = Math.abs(outerHeight - innerHeight) <= 1;
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14785
|
-
return {
|
|
14786
|
-
overflow,
|
|
14787
|
-
outerHeightStyle
|
|
14788
|
-
};
|
|
14789
|
-
}
|
|
15239
|
+
return {
|
|
15240
|
+
outerHeightStyle,
|
|
15241
|
+
overflow
|
|
15242
|
+
};
|
|
15243
|
+
}, [maxRows, minRows, props.placeholder]);
|
|
14790
15244
|
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
|
|
15245
|
+
const updateState = (prevState, newState) => {
|
|
15246
|
+
const {
|
|
15247
|
+
outerHeightStyle,
|
|
15248
|
+
overflow
|
|
15249
|
+
} = newState; // Need a large enough difference to update the height.
|
|
15250
|
+
// This prevents infinite rendering loop.
|
|
15251
|
+
|
|
15252
|
+
if (renders.current < 20 && (outerHeightStyle > 0 && Math.abs((prevState.outerHeightStyle || 0) - outerHeightStyle) > 1 || prevState.overflow !== overflow)) {
|
|
15253
|
+
renders.current += 1;
|
|
15254
|
+
return {
|
|
15255
|
+
overflow,
|
|
15256
|
+
outerHeightStyle
|
|
15257
|
+
};
|
|
15258
|
+
}
|
|
15259
|
+
|
|
15260
|
+
{
|
|
15261
|
+
if (renders.current === 20) {
|
|
15262
|
+
console.error(['MUI: Too many re-renders. The layout is unstable.', 'TextareaAutosize limits the number of renders to prevent an infinite loop.'].join('\n'));
|
|
14795
15263
|
}
|
|
15264
|
+
}
|
|
14796
15265
|
|
|
14797
|
-
|
|
15266
|
+
return prevState;
|
|
15267
|
+
};
|
|
15268
|
+
|
|
15269
|
+
const syncHeight = React__namespace.useCallback(() => {
|
|
15270
|
+
const newState = getUpdatedState();
|
|
15271
|
+
|
|
15272
|
+
if (isEmpty$1(newState)) {
|
|
15273
|
+
return;
|
|
15274
|
+
}
|
|
15275
|
+
|
|
15276
|
+
setState(prevState => {
|
|
15277
|
+
return updateState(prevState, newState);
|
|
14798
15278
|
});
|
|
14799
|
-
}, [
|
|
15279
|
+
}, [getUpdatedState]);
|
|
15280
|
+
|
|
15281
|
+
const syncHeightWithFlushSycn = () => {
|
|
15282
|
+
const newState = getUpdatedState();
|
|
15283
|
+
|
|
15284
|
+
if (isEmpty$1(newState)) {
|
|
15285
|
+
return;
|
|
15286
|
+
} // In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
15287
|
+
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
15288
|
+
// Related issue - https://github.com/facebook/react/issues/24331
|
|
15289
|
+
|
|
15290
|
+
|
|
15291
|
+
ReactDOM.flushSync(() => {
|
|
15292
|
+
setState(prevState => {
|
|
15293
|
+
return updateState(prevState, newState);
|
|
15294
|
+
});
|
|
15295
|
+
});
|
|
15296
|
+
};
|
|
15297
|
+
|
|
14800
15298
|
React__namespace.useEffect(() => {
|
|
14801
15299
|
const handleResize = debounce$1(() => {
|
|
14802
|
-
renders.current = 0;
|
|
14803
|
-
|
|
15300
|
+
renders.current = 0; // If the TextareaAutosize component is replaced by Suspense with a fallback, the last
|
|
15301
|
+
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
15302
|
+
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
15303
|
+
// See https://github.com/mui/material-ui/issues/32640
|
|
15304
|
+
// TODO: Add tests that will ensure the component is not failing when
|
|
15305
|
+
// replaced by Suspense with a fallback, once React is updated to version 18
|
|
15306
|
+
|
|
15307
|
+
if (inputRef.current) {
|
|
15308
|
+
syncHeightWithFlushSycn();
|
|
15309
|
+
}
|
|
14804
15310
|
});
|
|
14805
15311
|
const containerWindow = ownerWindow(inputRef.current);
|
|
14806
15312
|
containerWindow.addEventListener('resize', handleResize);
|
|
@@ -14819,7 +15325,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14819
15325
|
resizeObserver.disconnect();
|
|
14820
15326
|
}
|
|
14821
15327
|
};
|
|
14822
|
-
}
|
|
15328
|
+
});
|
|
14823
15329
|
useEnhancedEffect$1(() => {
|
|
14824
15330
|
syncHeight();
|
|
14825
15331
|
});
|
|
@@ -15963,7 +16469,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15963
16469
|
} ;
|
|
15964
16470
|
var Paper$1 = Paper;
|
|
15965
16471
|
|
|
15966
|
-
const _excluded$22 = ["colorSchemes"],
|
|
16472
|
+
const _excluded$22 = ["colorSchemes", "cssVarPrefix"],
|
|
15967
16473
|
_excluded2$9 = ["palette"];
|
|
15968
16474
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
15969
16475
|
if (index === 0) {
|
|
@@ -15986,14 +16492,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15986
16492
|
obj[key] = obj[key] || defaultValue;
|
|
15987
16493
|
}
|
|
15988
16494
|
|
|
16495
|
+
const createGetCssVar = (cssVarPrefix = 'mui') => createGetCssVar$1(cssVarPrefix);
|
|
15989
16496
|
function extendTheme(options = {}, ...args) {
|
|
15990
16497
|
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
|
|
15991
16498
|
|
|
15992
16499
|
const {
|
|
15993
|
-
colorSchemes: colorSchemesInput = {}
|
|
16500
|
+
colorSchemes: colorSchemesInput = {},
|
|
16501
|
+
cssVarPrefix = 'mui'
|
|
15994
16502
|
} = options,
|
|
15995
16503
|
input = _objectWithoutPropertiesLoose(options, _excluded$22);
|
|
15996
16504
|
|
|
16505
|
+
const getCssVar = createGetCssVar(cssVarPrefix);
|
|
16506
|
+
|
|
15997
16507
|
const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
|
|
15998
16508
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
15999
16509
|
})),
|
|
@@ -16011,12 +16521,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16011
16521
|
});
|
|
16012
16522
|
|
|
16013
16523
|
let theme = _extends({}, muiTheme, {
|
|
16524
|
+
cssVarPrefix,
|
|
16525
|
+
getCssVar,
|
|
16014
16526
|
colorSchemes: _extends({}, colorSchemesInput, {
|
|
16015
16527
|
light: _extends({}, colorSchemesInput.light, {
|
|
16016
16528
|
palette: lightPalette,
|
|
16017
16529
|
opacity: _extends({
|
|
16018
16530
|
inputPlaceholder: 0.42,
|
|
16019
|
-
|
|
16531
|
+
inputUnderline: 0.42,
|
|
16020
16532
|
switchTrackDisabled: 0.12,
|
|
16021
16533
|
switchTrack: 0.38
|
|
16022
16534
|
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
|
|
@@ -16026,7 +16538,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16026
16538
|
palette: darkPalette,
|
|
16027
16539
|
opacity: _extends({
|
|
16028
16540
|
inputPlaceholder: 0.5,
|
|
16029
|
-
|
|
16541
|
+
inputUnderline: 0.7,
|
|
16030
16542
|
switchTrackDisabled: 0.2,
|
|
16031
16543
|
switchTrack: 0.3
|
|
16032
16544
|
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
|
|
@@ -16047,14 +16559,34 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16047
16559
|
} // assign component variables
|
|
16048
16560
|
|
|
16049
16561
|
|
|
16050
|
-
assignNode(palette, ['AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
|
|
16562
|
+
assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
|
|
16051
16563
|
|
|
16052
16564
|
if (key === 'light') {
|
|
16053
|
-
setColor(palette.
|
|
16054
|
-
setColor(palette.
|
|
16055
|
-
setColor(palette.
|
|
16056
|
-
setColor(palette.
|
|
16057
|
-
setColor(palette.
|
|
16565
|
+
setColor(palette.Alert, 'errorColor', darken(palette.error.light, 0.6));
|
|
16566
|
+
setColor(palette.Alert, 'infoColor', darken(palette.info.light, 0.6));
|
|
16567
|
+
setColor(palette.Alert, 'successColor', darken(palette.success.light, 0.6));
|
|
16568
|
+
setColor(palette.Alert, 'warningColor', darken(palette.warning.light, 0.6));
|
|
16569
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-main'));
|
|
16570
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-main'));
|
|
16571
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-main'));
|
|
16572
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-main'));
|
|
16573
|
+
setColor(palette.Alert, 'errorFilledColor', lightPalette.getContrastText(palette.error.main));
|
|
16574
|
+
setColor(palette.Alert, 'infoFilledColor', lightPalette.getContrastText(palette.info.main));
|
|
16575
|
+
setColor(palette.Alert, 'successFilledColor', lightPalette.getContrastText(palette.success.main));
|
|
16576
|
+
setColor(palette.Alert, 'warningFilledColor', lightPalette.getContrastText(palette.warning.main));
|
|
16577
|
+
setColor(palette.Alert, 'errorStandardBg', lighten(palette.error.light, 0.9));
|
|
16578
|
+
setColor(palette.Alert, 'infoStandardBg', lighten(palette.info.light, 0.9));
|
|
16579
|
+
setColor(palette.Alert, 'successStandardBg', lighten(palette.success.light, 0.9));
|
|
16580
|
+
setColor(palette.Alert, 'warningStandardBg', lighten(palette.warning.light, 0.9));
|
|
16581
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-light'));
|
|
16582
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-light'));
|
|
16583
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-light'));
|
|
16584
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-light'));
|
|
16585
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-100'));
|
|
16586
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-400'));
|
|
16587
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-400'));
|
|
16588
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-700'));
|
|
16589
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-700'));
|
|
16058
16590
|
setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
|
|
16059
16591
|
setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
|
|
16060
16592
|
setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
|
|
@@ -16064,19 +16596,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16064
16596
|
setColor(palette.LinearProgress, 'infoBg', lighten(palette.info.main, 0.62));
|
|
16065
16597
|
setColor(palette.LinearProgress, 'successBg', lighten(palette.success.main, 0.62));
|
|
16066
16598
|
setColor(palette.LinearProgress, 'warningBg', lighten(palette.warning.main, 0.62));
|
|
16067
|
-
setColor(palette.Skeleton, 'bg',
|
|
16599
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.11)`);
|
|
16068
16600
|
setColor(palette.Slider, 'primaryTrack', lighten(palette.primary.main, 0.62));
|
|
16069
16601
|
setColor(palette.Slider, 'secondaryTrack', lighten(palette.secondary.main, 0.62));
|
|
16070
16602
|
setColor(palette.Slider, 'errorTrack', lighten(palette.error.main, 0.62));
|
|
16071
16603
|
setColor(palette.Slider, 'infoTrack', lighten(palette.info.main, 0.62));
|
|
16072
16604
|
setColor(palette.Slider, 'successTrack', lighten(palette.success.main, 0.62));
|
|
16073
16605
|
setColor(palette.Slider, 'warningTrack', lighten(palette.warning.main, 0.62));
|
|
16074
|
-
|
|
16606
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.8);
|
|
16607
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16608
|
+
setColor(palette.SnackbarContent, 'color', lightPalette.getContrastText(snackbarContentBackground));
|
|
16075
16609
|
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16076
|
-
setColor(palette.StepConnector, 'border', '
|
|
16077
|
-
setColor(palette.StepContent, 'border', '
|
|
16078
|
-
setColor(palette.Switch, 'defaultColor', '
|
|
16079
|
-
setColor(palette.Switch, 'defaultDisabledColor', '
|
|
16610
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-400'));
|
|
16611
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-400'));
|
|
16612
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-common-white'));
|
|
16613
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-100'));
|
|
16080
16614
|
setColor(palette.Switch, 'primaryDisabledColor', lighten(palette.primary.main, 0.62));
|
|
16081
16615
|
setColor(palette.Switch, 'secondaryDisabledColor', lighten(palette.secondary.main, 0.62));
|
|
16082
16616
|
setColor(palette.Switch, 'errorDisabledColor', lighten(palette.error.main, 0.62));
|
|
@@ -16086,15 +16620,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16086
16620
|
setColor(palette.TableCell, 'border', lighten(alpha(palette.divider, 1), 0.88));
|
|
16087
16621
|
setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
|
|
16088
16622
|
} else {
|
|
16089
|
-
setColor(palette.
|
|
16090
|
-
setColor(palette.
|
|
16091
|
-
|
|
16092
|
-
setColor(palette.
|
|
16093
|
-
|
|
16094
|
-
setColor(palette.
|
|
16095
|
-
setColor(palette.
|
|
16096
|
-
setColor(palette.
|
|
16097
|
-
setColor(palette.
|
|
16623
|
+
setColor(palette.Alert, 'errorColor', lighten(palette.error.light, 0.6));
|
|
16624
|
+
setColor(palette.Alert, 'infoColor', lighten(palette.info.light, 0.6));
|
|
16625
|
+
setColor(palette.Alert, 'successColor', lighten(palette.success.light, 0.6));
|
|
16626
|
+
setColor(palette.Alert, 'warningColor', lighten(palette.warning.light, 0.6));
|
|
16627
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-dark'));
|
|
16628
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-dark'));
|
|
16629
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-dark'));
|
|
16630
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-dark'));
|
|
16631
|
+
setColor(palette.Alert, 'errorFilledColor', darkPalette.getContrastText(palette.error.dark));
|
|
16632
|
+
setColor(palette.Alert, 'infoFilledColor', darkPalette.getContrastText(palette.info.dark));
|
|
16633
|
+
setColor(palette.Alert, 'successFilledColor', darkPalette.getContrastText(palette.success.dark));
|
|
16634
|
+
setColor(palette.Alert, 'warningFilledColor', darkPalette.getContrastText(palette.warning.dark));
|
|
16635
|
+
setColor(palette.Alert, 'errorStandardBg', darken(palette.error.light, 0.9));
|
|
16636
|
+
setColor(palette.Alert, 'infoStandardBg', darken(palette.info.light, 0.9));
|
|
16637
|
+
setColor(palette.Alert, 'successStandardBg', darken(palette.success.light, 0.9));
|
|
16638
|
+
setColor(palette.Alert, 'warningStandardBg', darken(palette.warning.light, 0.9));
|
|
16639
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-main'));
|
|
16640
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-main'));
|
|
16641
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-main'));
|
|
16642
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-main'));
|
|
16643
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-900'));
|
|
16644
|
+
setColor(palette.AppBar, 'darkBg', getCssVar('palette-background-paper')); // specific for dark mode
|
|
16645
|
+
|
|
16646
|
+
setColor(palette.AppBar, 'darkColor', getCssVar('palette-text-primary')); // specific for dark mode
|
|
16647
|
+
|
|
16648
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-600'));
|
|
16649
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-700'));
|
|
16650
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-300'));
|
|
16651
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-300'));
|
|
16098
16652
|
setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
|
|
16099
16653
|
setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
|
|
16100
16654
|
setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
|
|
@@ -16104,19 +16658,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16104
16658
|
setColor(palette.LinearProgress, 'infoBg', darken(palette.info.main, 0.5));
|
|
16105
16659
|
setColor(palette.LinearProgress, 'successBg', darken(palette.success.main, 0.5));
|
|
16106
16660
|
setColor(palette.LinearProgress, 'warningBg', darken(palette.warning.main, 0.5));
|
|
16107
|
-
setColor(palette.Skeleton, 'bg',
|
|
16661
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.13)`);
|
|
16108
16662
|
setColor(palette.Slider, 'primaryTrack', darken(palette.primary.main, 0.5));
|
|
16109
16663
|
setColor(palette.Slider, 'secondaryTrack', darken(palette.secondary.main, 0.5));
|
|
16110
16664
|
setColor(palette.Slider, 'errorTrack', darken(palette.error.main, 0.5));
|
|
16111
16665
|
setColor(palette.Slider, 'infoTrack', darken(palette.info.main, 0.5));
|
|
16112
16666
|
setColor(palette.Slider, 'successTrack', darken(palette.success.main, 0.5));
|
|
16113
16667
|
setColor(palette.Slider, 'warningTrack', darken(palette.warning.main, 0.5));
|
|
16114
|
-
|
|
16668
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.98);
|
|
16669
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16670
|
+
setColor(palette.SnackbarContent, 'color', darkPalette.getContrastText(snackbarContentBackground));
|
|
16115
16671
|
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16116
|
-
setColor(palette.StepConnector, 'border', '
|
|
16117
|
-
setColor(palette.StepContent, 'border', '
|
|
16118
|
-
setColor(palette.Switch, 'defaultColor', '
|
|
16119
|
-
setColor(palette.Switch, 'defaultDisabledColor', '
|
|
16672
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-600'));
|
|
16673
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-600'));
|
|
16674
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-grey-300'));
|
|
16675
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-600'));
|
|
16120
16676
|
setColor(palette.Switch, 'primaryDisabledColor', darken(palette.primary.main, 0.55));
|
|
16121
16677
|
setColor(palette.Switch, 'secondaryDisabledColor', darken(palette.secondary.main, 0.55));
|
|
16122
16678
|
setColor(palette.Switch, 'errorDisabledColor', darken(palette.error.main, 0.55));
|
|
@@ -16172,9 +16728,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16172
16728
|
return theme;
|
|
16173
16729
|
}
|
|
16174
16730
|
|
|
16731
|
+
const shouldSkipGeneratingVar = keys => {
|
|
16732
|
+
var _keys$;
|
|
16733
|
+
|
|
16734
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16735
|
+
};
|
|
16736
|
+
|
|
16175
16737
|
const defaultTheme$1 = extendTheme();
|
|
16176
16738
|
const {
|
|
16177
|
-
CssVarsProvider
|
|
16739
|
+
CssVarsProvider,
|
|
16178
16740
|
useColorScheme,
|
|
16179
16741
|
getInitColorSchemeScript
|
|
16180
16742
|
} = createCssVarsProvider({
|
|
@@ -16186,7 +16748,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16186
16748
|
light: 'light',
|
|
16187
16749
|
dark: 'dark'
|
|
16188
16750
|
},
|
|
16189
|
-
prefix: 'mui',
|
|
16190
16751
|
resolveTheme: theme => {
|
|
16191
16752
|
const newTheme = _extends({}, theme, {
|
|
16192
16753
|
typography: createTypography(theme.palette, theme.typography)
|
|
@@ -16194,7 +16755,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16194
16755
|
|
|
16195
16756
|
return newTheme;
|
|
16196
16757
|
},
|
|
16197
|
-
shouldSkipGeneratingVar
|
|
16758
|
+
shouldSkipGeneratingVar
|
|
16198
16759
|
});
|
|
16199
16760
|
|
|
16200
16761
|
function getSvgIconUtilityClass(slot) {
|
|
@@ -19736,22 +20297,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19736
20297
|
display: 'flex',
|
|
19737
20298
|
padding: '6px 16px'
|
|
19738
20299
|
}, color && ownerState.variant === 'standard' && {
|
|
19739
|
-
color: getColor(theme.palette[color].light, 0.6),
|
|
19740
|
-
backgroundColor: getBackgroundColor(theme.palette[color].light, 0.9),
|
|
19741
|
-
[`& .${alertClasses$1.icon}`]: {
|
|
20300
|
+
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
|
|
20301
|
+
backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),
|
|
20302
|
+
[`& .${alertClasses$1.icon}`]: theme.vars ? {
|
|
20303
|
+
color: theme.vars.palette.Alert[`${color}IconColor`]
|
|
20304
|
+
} : {
|
|
19742
20305
|
color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
|
|
19743
20306
|
}
|
|
19744
20307
|
}, color && ownerState.variant === 'outlined' && {
|
|
19745
|
-
color: getColor(theme.palette[color].light, 0.6),
|
|
19746
|
-
border: `1px solid ${theme.palette[color].light}`,
|
|
19747
|
-
[`& .${alertClasses$1.icon}`]: {
|
|
20308
|
+
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
|
|
20309
|
+
border: `1px solid ${(theme.vars || theme).palette[color].light}`,
|
|
20310
|
+
[`& .${alertClasses$1.icon}`]: theme.vars ? {
|
|
20311
|
+
color: theme.vars.palette.Alert[`${color}IconColor`]
|
|
20312
|
+
} : {
|
|
19748
20313
|
color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
|
|
19749
20314
|
}
|
|
19750
|
-
}, color && ownerState.variant === 'filled' && {
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
20315
|
+
}, color && ownerState.variant === 'filled' && _extends({
|
|
20316
|
+
fontWeight: theme.typography.fontWeightMedium
|
|
20317
|
+
}, theme.vars ? {
|
|
20318
|
+
color: theme.vars.palette.Alert[`${color}FilledColor`],
|
|
20319
|
+
backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]
|
|
20320
|
+
} : {
|
|
20321
|
+
backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,
|
|
20322
|
+
color: theme.palette.getContrastText(theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main)
|
|
20323
|
+
}));
|
|
19755
20324
|
});
|
|
19756
20325
|
const AlertIcon = styled$1('div', {
|
|
19757
20326
|
name: 'MuiAlert',
|
|
@@ -22430,7 +22999,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22430
22999
|
}
|
|
22431
23000
|
});
|
|
22432
23001
|
const Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
|
|
22433
|
-
var _componentsProps$clea, _componentsProps$pape;
|
|
23002
|
+
var _componentsProps$clea, _componentsProps$popu, _componentsProps$popp, _componentsProps$pape;
|
|
22434
23003
|
|
|
22435
23004
|
const props = useThemeProps({
|
|
22436
23005
|
props: inProps,
|
|
@@ -22538,7 +23107,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22538
23107
|
|
|
22539
23108
|
if (multiple && value.length > 0) {
|
|
22540
23109
|
const getCustomizedTagProps = params => _extends({
|
|
22541
|
-
className:
|
|
23110
|
+
className: classes.tag,
|
|
22542
23111
|
disabled
|
|
22543
23112
|
}, getTagProps(params));
|
|
22544
23113
|
|
|
@@ -22631,21 +23200,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22631
23200
|
disabled: disabled,
|
|
22632
23201
|
"aria-label": popupOpen ? closeText : openText,
|
|
22633
23202
|
title: popupOpen ? closeText : openText,
|
|
22634
|
-
|
|
22635
|
-
|
|
23203
|
+
ownerState: ownerState
|
|
23204
|
+
}, componentsProps.popupIndicator, {
|
|
23205
|
+
className: clsx(classes.popupIndicator, (_componentsProps$popu = componentsProps.popupIndicator) == null ? void 0 : _componentsProps$popu.className),
|
|
22636
23206
|
children: popupIcon
|
|
22637
23207
|
})) : null]
|
|
22638
23208
|
})
|
|
22639
23209
|
}),
|
|
22640
23210
|
inputProps: _extends({
|
|
22641
|
-
className:
|
|
23211
|
+
className: classes.input,
|
|
22642
23212
|
disabled,
|
|
22643
23213
|
readOnly
|
|
22644
23214
|
}, getInputProps())
|
|
22645
23215
|
})
|
|
22646
|
-
})), popupOpen && anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, {
|
|
23216
|
+
})), popupOpen && anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, _extends({
|
|
22647
23217
|
as: PopperComponent,
|
|
22648
|
-
className: clsx(classes.popper),
|
|
22649
23218
|
disablePortal: disablePortal,
|
|
22650
23219
|
style: {
|
|
22651
23220
|
width: anchorEl ? anchorEl.clientWidth : null
|
|
@@ -22653,7 +23222,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22653
23222
|
ownerState: ownerState,
|
|
22654
23223
|
role: "presentation",
|
|
22655
23224
|
anchorEl: anchorEl,
|
|
22656
|
-
open: true
|
|
23225
|
+
open: true
|
|
23226
|
+
}, componentsProps.popper, {
|
|
23227
|
+
className: clsx(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
|
|
22657
23228
|
children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, _extends({
|
|
22658
23229
|
ownerState: ownerState,
|
|
22659
23230
|
as: PaperComponent
|
|
@@ -22690,7 +23261,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22690
23261
|
})
|
|
22691
23262
|
})) : null]
|
|
22692
23263
|
}))
|
|
22693
|
-
}) : null]
|
|
23264
|
+
})) : null]
|
|
22694
23265
|
});
|
|
22695
23266
|
});
|
|
22696
23267
|
Autocomplete.propTypes
|
|
@@ -22792,7 +23363,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22792
23363
|
*/
|
|
22793
23364
|
componentsProps: PropTypes.shape({
|
|
22794
23365
|
clearIndicator: PropTypes.object,
|
|
22795
|
-
paper: PropTypes.object
|
|
23366
|
+
paper: PropTypes.object,
|
|
23367
|
+
popper: PropTypes.object,
|
|
23368
|
+
popupIndicator: PropTypes.object
|
|
22796
23369
|
}),
|
|
22797
23370
|
|
|
22798
23371
|
/**
|
|
@@ -23439,7 +24012,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23439
24012
|
var avatarGroupClasses$1 = avatarGroupClasses;
|
|
23440
24013
|
|
|
23441
24014
|
const _excluded$1L = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
|
|
23442
|
-
const SPACINGS$
|
|
24015
|
+
const SPACINGS$2 = {
|
|
23443
24016
|
small: -16,
|
|
23444
24017
|
medium: null
|
|
23445
24018
|
};
|
|
@@ -23535,7 +24108,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23535
24108
|
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
23536
24109
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
23537
24110
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
23538
|
-
const marginLeft = spacing && SPACINGS$
|
|
24111
|
+
const marginLeft = spacing && SPACINGS$2[spacing] !== undefined ? SPACINGS$2[spacing] : -spacing;
|
|
23539
24112
|
return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
|
|
23540
24113
|
ownerState: ownerState,
|
|
23541
24114
|
className: clsx(classes.root, className),
|
|
@@ -27579,11 +28152,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27579
28152
|
Backdrop: BackdropComponent
|
|
27580
28153
|
}, components),
|
|
27581
28154
|
componentsProps: {
|
|
27582
|
-
root: _extends({}, componentsProps.root, !isHostComponent(Root) && {
|
|
28155
|
+
root: () => _extends({}, resolveComponentProps(componentsProps.root, ownerState), !isHostComponent(Root) && {
|
|
27583
28156
|
as: component,
|
|
27584
28157
|
theme
|
|
27585
28158
|
}),
|
|
27586
|
-
backdrop: _extends({}, BackdropProps, componentsProps.backdrop)
|
|
28159
|
+
backdrop: () => _extends({}, BackdropProps, resolveComponentProps(componentsProps.backdrop, ownerState))
|
|
27587
28160
|
},
|
|
27588
28161
|
onTransitionEnter: () => setExited(false),
|
|
27589
28162
|
onTransitionExited: () => setExited(true),
|
|
@@ -27660,8 +28233,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27660
28233
|
* @default {}
|
|
27661
28234
|
*/
|
|
27662
28235
|
componentsProps: PropTypes.shape({
|
|
27663
|
-
backdrop: PropTypes.object,
|
|
27664
|
-
root: PropTypes.object
|
|
28236
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
28237
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
27665
28238
|
}),
|
|
27666
28239
|
|
|
27667
28240
|
/**
|
|
@@ -29822,7 +30395,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29822
30395
|
|
|
29823
30396
|
},
|
|
29824
30397
|
'&:before': {
|
|
29825
|
-
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.
|
|
30398
|
+
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
29826
30399
|
left: 0,
|
|
29827
30400
|
bottom: 0,
|
|
29828
30401
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -31185,15 +31758,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31185
31758
|
function getGridUtilityClass(slot) {
|
|
31186
31759
|
return generateUtilityClass('MuiGrid', slot);
|
|
31187
31760
|
}
|
|
31188
|
-
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
31189
|
-
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
31190
|
-
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
31191
|
-
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
31761
|
+
const SPACINGS$1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
31762
|
+
const DIRECTIONS$1 = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
31763
|
+
const WRAPS$1 = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
31764
|
+
const GRID_SIZES$1 = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
31192
31765
|
const gridClasses = generateUtilityClasses('MuiGrid', ['root', 'container', 'item', 'zeroMinWidth', // spacings
|
|
31193
|
-
...SPACINGS.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
31194
|
-
...DIRECTIONS.map(direction => `direction-xs-${direction}`), // wrap values
|
|
31195
|
-
...WRAPS.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
31196
|
-
...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);
|
|
31766
|
+
...SPACINGS$1.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
31767
|
+
...DIRECTIONS$1.map(direction => `direction-xs-${direction}`), // wrap values
|
|
31768
|
+
...WRAPS$1.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
31769
|
+
...GRID_SIZES$1.map(size => `grid-xs-${size}`), ...GRID_SIZES$1.map(size => `grid-sm-${size}`), ...GRID_SIZES$1.map(size => `grid-md-${size}`), ...GRID_SIZES$1.map(size => `grid-lg-${size}`), ...GRID_SIZES$1.map(size => `grid-xl-${size}`)]);
|
|
31197
31770
|
var gridClasses$1 = gridClasses;
|
|
31198
31771
|
|
|
31199
31772
|
const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
@@ -31740,6 +32313,52 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31740
32313
|
|
|
31741
32314
|
var Grid$1 = Grid;
|
|
31742
32315
|
|
|
32316
|
+
const Grid2 = createGrid({
|
|
32317
|
+
createStyledComponent: styled$1('div', {
|
|
32318
|
+
name: 'MuiGrid2',
|
|
32319
|
+
overridesResolver: (props, styles) => styles.root
|
|
32320
|
+
}),
|
|
32321
|
+
componentName: 'MuiGrid2',
|
|
32322
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
32323
|
+
useThemeProps: inProps => useThemeProps({
|
|
32324
|
+
props: inProps,
|
|
32325
|
+
name: 'MuiGrid2'
|
|
32326
|
+
})
|
|
32327
|
+
});
|
|
32328
|
+
Grid2.propTypes
|
|
32329
|
+
/* remove-proptypes */
|
|
32330
|
+
= {
|
|
32331
|
+
// ----------------------------- Warning --------------------------------
|
|
32332
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
32333
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
32334
|
+
// ----------------------------------------------------------------------
|
|
32335
|
+
|
|
32336
|
+
/**
|
|
32337
|
+
* The content of the component.
|
|
32338
|
+
*/
|
|
32339
|
+
children: PropTypes.node,
|
|
32340
|
+
|
|
32341
|
+
/**
|
|
32342
|
+
* @ignore
|
|
32343
|
+
*/
|
|
32344
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
32345
|
+
} ;
|
|
32346
|
+
var Grid2$1 = Grid2;
|
|
32347
|
+
|
|
32348
|
+
function getGrid2UtilityClass(slot) {
|
|
32349
|
+
return generateUtilityClass('MuiGrid2', slot);
|
|
32350
|
+
}
|
|
32351
|
+
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
32352
|
+
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
32353
|
+
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
32354
|
+
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
32355
|
+
const grid2Classes = generateUtilityClasses('MuiGrid2', ['root', 'container', 'item', 'zeroMinWidth', // spacings
|
|
32356
|
+
...SPACINGS.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
32357
|
+
...DIRECTIONS.map(direction => `direction-xs-${direction}`), // wrap values
|
|
32358
|
+
...WRAPS.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
32359
|
+
...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);
|
|
32360
|
+
var grid2Classes$1 = grid2Classes;
|
|
32361
|
+
|
|
31743
32362
|
const _excluded$1c = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
31744
32363
|
|
|
31745
32364
|
function getScale(value) {
|
|
@@ -33529,7 +34148,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33529
34148
|
let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
33530
34149
|
|
|
33531
34150
|
if (theme.vars) {
|
|
33532
|
-
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.
|
|
34151
|
+
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;
|
|
33533
34152
|
}
|
|
33534
34153
|
|
|
33535
34154
|
return _extends({
|
|
@@ -38316,12 +38935,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38316
38935
|
muiFormControl,
|
|
38317
38936
|
states: ['required']
|
|
38318
38937
|
});
|
|
38938
|
+
|
|
38939
|
+
const ownerState = _extends({}, props, {
|
|
38940
|
+
color: fcs.color || 'primary',
|
|
38941
|
+
disabled: fcs.disabled,
|
|
38942
|
+
error: fcs.error,
|
|
38943
|
+
focused: fcs.focused,
|
|
38944
|
+
formControl: muiFormControl,
|
|
38945
|
+
fullWidth,
|
|
38946
|
+
hiddenLabel: fcs.hiddenLabel,
|
|
38947
|
+
multiline,
|
|
38948
|
+
size: fcs.size,
|
|
38949
|
+
type
|
|
38950
|
+
});
|
|
38951
|
+
|
|
38319
38952
|
return /*#__PURE__*/jsxRuntime_1(InputBase$1, _extends({
|
|
38320
38953
|
components: _extends({
|
|
38321
38954
|
Root: OutlinedInputRoot,
|
|
38322
38955
|
Input: OutlinedInputInput
|
|
38323
38956
|
}, components),
|
|
38324
38957
|
renderSuffix: state => /*#__PURE__*/jsxRuntime_1(NotchedOutlineRoot, {
|
|
38958
|
+
ownerState: ownerState,
|
|
38325
38959
|
className: classes.notchedOutline,
|
|
38326
38960
|
label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
|
|
38327
38961
|
children: [label, "\xA0", '*']
|
|
@@ -40526,7 +41160,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40526
41160
|
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
40527
41161
|
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
40528
41162
|
*/
|
|
40529
|
-
enableColorScheme: PropTypes.bool
|
|
41163
|
+
enableColorScheme: PropTypes.bool,
|
|
41164
|
+
|
|
41165
|
+
/**
|
|
41166
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41167
|
+
*/
|
|
41168
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
40530
41169
|
} ;
|
|
40531
41170
|
var ScopedCssBaseline$1 = ScopedCssBaseline;
|
|
40532
41171
|
|
|
@@ -41524,7 +42163,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41524
42163
|
* If the value is an object it must have reference equality with the option in order to be selected.
|
|
41525
42164
|
* If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
|
|
41526
42165
|
*/
|
|
41527
|
-
value: PropTypes.any,
|
|
42166
|
+
value: PropTypes.oneOfType([PropTypes.oneOf(['']), PropTypes.any]),
|
|
41528
42167
|
|
|
41529
42168
|
/**
|
|
41530
42169
|
* The variant to use.
|
|
@@ -42327,14 +42966,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42327
42966
|
* @default {}
|
|
42328
42967
|
*/
|
|
42329
42968
|
componentsProps: PropTypes.shape({
|
|
42330
|
-
input: PropTypes.object,
|
|
42331
|
-
mark: PropTypes.object,
|
|
42332
|
-
markLabel: PropTypes.object,
|
|
42333
|
-
rail: PropTypes.object,
|
|
42334
|
-
root: PropTypes.object,
|
|
42335
|
-
thumb: PropTypes.object,
|
|
42336
|
-
track: PropTypes.object,
|
|
42337
|
-
valueLabel: PropTypes.shape({
|
|
42969
|
+
input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42970
|
+
mark: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42971
|
+
markLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42972
|
+
rail: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42973
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42974
|
+
thumb: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42975
|
+
track: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
42976
|
+
valueLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
42338
42977
|
children: PropTypes.element,
|
|
42339
42978
|
className: PropTypes.string,
|
|
42340
42979
|
components: PropTypes.shape({
|
|
@@ -42344,7 +42983,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42344
42983
|
style: PropTypes.object,
|
|
42345
42984
|
value: PropTypes.number,
|
|
42346
42985
|
valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
|
|
42347
|
-
})
|
|
42986
|
+
})])
|
|
42348
42987
|
}),
|
|
42349
42988
|
|
|
42350
42989
|
/**
|
|
@@ -42545,7 +43184,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42545
43184
|
const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
|
|
42546
43185
|
const backgroundColor = emphasize(theme.palette.background.default, emphasis);
|
|
42547
43186
|
return _extends({}, theme.typography.body2, {
|
|
42548
|
-
color: theme.vars ? theme.vars.palette.
|
|
43187
|
+
color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
|
|
42549
43188
|
backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
|
|
42550
43189
|
display: 'flex',
|
|
42551
43190
|
alignItems: 'center',
|
|
@@ -44189,12 +44828,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44189
44828
|
const handleEnter = event => {
|
|
44190
44829
|
if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {
|
|
44191
44830
|
return;
|
|
44831
|
+
} // Workaround for https://github.com/facebook/react/issues/7769
|
|
44832
|
+
|
|
44833
|
+
|
|
44834
|
+
if (!childNode) {
|
|
44835
|
+
setChildNode(event.currentTarget);
|
|
44192
44836
|
} // Remove the title ahead of time.
|
|
44193
44837
|
// We don't want to wait for the next render commit.
|
|
44194
44838
|
// We would risk displaying two tooltips at the same time (native + this one).
|
|
44195
|
-
|
|
44196
|
-
|
|
44197
|
-
if (childNode) {
|
|
44839
|
+
else {
|
|
44198
44840
|
childNode.removeAttribute('title');
|
|
44199
44841
|
}
|
|
44200
44842
|
|
|
@@ -44239,8 +44881,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44239
44881
|
|
|
44240
44882
|
const handleFocus = event => {
|
|
44241
44883
|
// Workaround for https://github.com/facebook/react/issues/7769
|
|
44242
|
-
// The autoFocus of React might trigger the event before the componentDidMount.
|
|
44243
|
-
// We need to account for this eventuality.
|
|
44244
44884
|
if (!childNode) {
|
|
44245
44885
|
setChildNode(event.currentTarget);
|
|
44246
44886
|
}
|
|
@@ -50265,8 +50905,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50265
50905
|
});
|
|
50266
50906
|
React__namespace.useEffect(() => {
|
|
50267
50907
|
const handleResize = debounce$1(() => {
|
|
50268
|
-
|
|
50269
|
-
|
|
50908
|
+
// If the Tabs component is replaced by Suspense with a fallback, the last
|
|
50909
|
+
// ResizeObserver's handler that runs because of the change in the layout is trying to
|
|
50910
|
+
// access a dom node that is no longer there (as the fallback component is being shown instead).
|
|
50911
|
+
// See https://github.com/mui/material-ui/issues/33276
|
|
50912
|
+
// TODO: Add tests that will ensure the component is not failing when
|
|
50913
|
+
// replaced by Suspense with a fallback, once React is updated to version 18
|
|
50914
|
+
if (tabsRef.current) {
|
|
50915
|
+
updateIndicatorState();
|
|
50916
|
+
updateScrollButtonState();
|
|
50917
|
+
}
|
|
50270
50918
|
});
|
|
50271
50919
|
const win = ownerWindow(tabsRef.current);
|
|
50272
50920
|
win.addEventListener('resize', handleResize);
|
|
@@ -51602,7 +52250,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51602
52250
|
exports.DialogTitle = DialogTitle$1;
|
|
51603
52251
|
exports.Divider = Divider$1;
|
|
51604
52252
|
exports.Drawer = Drawer$1;
|
|
51605
|
-
exports.Experimental_CssVarsProvider =
|
|
52253
|
+
exports.Experimental_CssVarsProvider = CssVarsProvider;
|
|
51606
52254
|
exports.Fab = Fab$1;
|
|
51607
52255
|
exports.Fade = Fade$1;
|
|
51608
52256
|
exports.FilledInput = FilledInput$1;
|
|
@@ -51704,6 +52352,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51704
52352
|
exports.Toolbar = Toolbar$1;
|
|
51705
52353
|
exports.Tooltip = Tooltip$1;
|
|
51706
52354
|
exports.Typography = Typography$1;
|
|
52355
|
+
exports.Unstable_Grid2 = Grid2$1;
|
|
51707
52356
|
exports.Zoom = Zoom$1;
|
|
51708
52357
|
exports.accordionActionsClasses = accordionActionsClasses$1;
|
|
51709
52358
|
exports.accordionClasses = accordionClasses$1;
|
|
@@ -51816,6 +52465,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51816
52465
|
exports.getFormGroupUtilityClass = getFormGroupUtilityClass;
|
|
51817
52466
|
exports.getFormHelperTextUtilityClasses = getFormHelperTextUtilityClasses;
|
|
51818
52467
|
exports.getFormLabelUtilityClasses = getFormLabelUtilityClasses;
|
|
52468
|
+
exports.getGrid2UtilityClass = getGrid2UtilityClass;
|
|
51819
52469
|
exports.getGridUtilityClass = getGridUtilityClass;
|
|
51820
52470
|
exports.getIconButtonUtilityClass = getIconButtonUtilityClass;
|
|
51821
52471
|
exports.getIconUtilityClass = getIconUtilityClass;
|
|
@@ -51888,6 +52538,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51888
52538
|
exports.getTooltipUtilityClass = getTooltipUtilityClass;
|
|
51889
52539
|
exports.getTouchRippleUtilityClass = getTouchRippleUtilityClass;
|
|
51890
52540
|
exports.getTypographyUtilityClass = getTypographyUtilityClass;
|
|
52541
|
+
exports.grid2Classes = grid2Classes$1;
|
|
51891
52542
|
exports.gridClasses = gridClasses$1;
|
|
51892
52543
|
exports.hexToRgb = hexToRgb;
|
|
51893
52544
|
exports.hslToRgb = hslToRgb;
|
|
@@ -51936,6 +52587,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51936
52587
|
exports.scopedCssBaselineClasses = scopedCssBaselineClasses$1;
|
|
51937
52588
|
exports.selectClasses = selectClasses$1;
|
|
51938
52589
|
exports.setRef = setRef;
|
|
52590
|
+
exports.shouldSkipGeneratingVar = shouldSkipGeneratingVar;
|
|
51939
52591
|
exports.skeletonClasses = skeletonClasses$1;
|
|
51940
52592
|
exports.sliderClasses = sliderClasses;
|
|
51941
52593
|
exports.snackbarClasses = snackbarClasses$1;
|