@mui/material 5.8.6 → 5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Autocomplete/Autocomplete.d.ts +2 -0
- package/Autocomplete/Autocomplete.js +14 -10
- package/ButtonBase/TouchRipple.js +1 -1
- package/CHANGELOG.md +185 -0
- package/Modal/Modal.js +6 -6
- package/Popper/Popper.d.ts +1 -6
- package/README.md +57 -24
- 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 +3 -2
- package/SnackbarContent/SnackbarContent.js +1 -1
- 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/Autocomplete/Autocomplete.js +14 -10
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Modal/Modal.js +13 -9
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/legacy/Select/Select.js +1 -1
- package/legacy/Slider/Slider.js +3 -2
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- 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 -10
- package/legacy/styles/experimental_extendTheme.js +60 -44
- package/modern/Autocomplete/Autocomplete.js +13 -9
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Modal/Modal.js +6 -6
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/modern/Select/Select.js +1 -1
- package/modern/Slider/Slider.js +3 -2
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- 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 +55 -45
- package/node/Autocomplete/Autocomplete.js +14 -10
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/Modal/Modal.js +9 -9
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/node/Select/Select.js +1 -1
- package/node/Slider/Slider.js +3 -2
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- 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 -10
- package/node/styles/experimental_extendTheme.js +57 -44
- package/package.json +7 -7
- package/styles/CssVarsProvider.d.ts +9 -5
- package/styles/CssVarsProvider.js +10 -10
- package/styles/components.d.ts +5 -0
- package/styles/createTheme.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +132 -40
- package/styles/experimental_extendTheme.js +55 -45
- package/styles/index.d.ts +11 -0
- package/styles/overrides.d.ts +3 -1
- package/styles/props.d.ts +2 -0
- package/themeCssVarsAugmentation/index.d.ts +6 -41
- package/umd/material-ui.development.js +918 -416
- package/umd/material-ui.production.min.js +20 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.
|
|
1
|
+
/** @license MUI v5.9.1
|
|
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;
|
|
3571
3554
|
|
|
3572
|
-
|
|
3573
|
-
|
|
3555
|
+
if (outerName !== null) {
|
|
3556
|
+
return outerName;
|
|
3557
|
+
}
|
|
3558
|
+
|
|
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
|
})();
|
|
@@ -5622,7 +5701,7 @@
|
|
|
5622
5701
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
5623
5702
|
var _breakpointsInput$key;
|
|
5624
5703
|
|
|
5625
|
-
const breakpointsInOrder =
|
|
5704
|
+
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
|
|
5626
5705
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
5627
5706
|
acc[breakpointStyleKey] = {};
|
|
5628
5707
|
return acc;
|
|
@@ -6460,7 +6539,7 @@
|
|
|
6460
6539
|
styleFunctionSx.filterProps = ['sx'];
|
|
6461
6540
|
var defaultStyleFunctionSx = styleFunctionSx;
|
|
6462
6541
|
|
|
6463
|
-
const _excluded$
|
|
6542
|
+
const _excluded$2n = ["sx"];
|
|
6464
6543
|
|
|
6465
6544
|
const splitProps = props => {
|
|
6466
6545
|
const result = {
|
|
@@ -6481,7 +6560,7 @@
|
|
|
6481
6560
|
const {
|
|
6482
6561
|
sx: inSx
|
|
6483
6562
|
} = props,
|
|
6484
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6563
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2n);
|
|
6485
6564
|
|
|
6486
6565
|
const {
|
|
6487
6566
|
systemProps,
|
|
@@ -6519,48 +6598,9 @@
|
|
|
6519
6598
|
});
|
|
6520
6599
|
}
|
|
6521
6600
|
|
|
6522
|
-
function
|
|
6523
|
-
var k, y, str='';
|
|
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}
|
|
6524
6602
|
|
|
6525
|
-
|
|
6526
|
-
str += mix;
|
|
6527
|
-
} else if (typeof mix === 'object') {
|
|
6528
|
-
if (Array.isArray(mix)) {
|
|
6529
|
-
for (k=0; k < mix.length; k++) {
|
|
6530
|
-
if (mix[k]) {
|
|
6531
|
-
if (y = toVal(mix[k])) {
|
|
6532
|
-
str && (str += ' ');
|
|
6533
|
-
str += y;
|
|
6534
|
-
}
|
|
6535
|
-
}
|
|
6536
|
-
}
|
|
6537
|
-
} else {
|
|
6538
|
-
for (k in mix) {
|
|
6539
|
-
if (mix[k]) {
|
|
6540
|
-
str && (str += ' ');
|
|
6541
|
-
str += k;
|
|
6542
|
-
}
|
|
6543
|
-
}
|
|
6544
|
-
}
|
|
6545
|
-
}
|
|
6546
|
-
|
|
6547
|
-
return str;
|
|
6548
|
-
}
|
|
6549
|
-
|
|
6550
|
-
function clsx () {
|
|
6551
|
-
var i=0, tmp, x, str='';
|
|
6552
|
-
while (i < arguments.length) {
|
|
6553
|
-
if (tmp = arguments[i++]) {
|
|
6554
|
-
if (x = toVal(tmp)) {
|
|
6555
|
-
str && (str += ' ');
|
|
6556
|
-
str += x;
|
|
6557
|
-
}
|
|
6558
|
-
}
|
|
6559
|
-
}
|
|
6560
|
-
return str;
|
|
6561
|
-
}
|
|
6562
|
-
|
|
6563
|
-
const _excluded$2l = ["values", "unit", "step"];
|
|
6603
|
+
const _excluded$2m = ["values", "unit", "step"];
|
|
6564
6604
|
|
|
6565
6605
|
const sortBreakpointsValues = values => {
|
|
6566
6606
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
@@ -6596,7 +6636,7 @@
|
|
|
6596
6636
|
unit = 'px',
|
|
6597
6637
|
step = 5
|
|
6598
6638
|
} = breakpoints,
|
|
6599
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6639
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2m);
|
|
6600
6640
|
|
|
6601
6641
|
const sortedValues = sortBreakpointsValues(values);
|
|
6602
6642
|
const keys = Object.keys(sortedValues);
|
|
@@ -6688,7 +6728,7 @@
|
|
|
6688
6728
|
return spacing;
|
|
6689
6729
|
}
|
|
6690
6730
|
|
|
6691
|
-
const _excluded$
|
|
6731
|
+
const _excluded$2l = ["breakpoints", "palette", "spacing", "shape"];
|
|
6692
6732
|
|
|
6693
6733
|
function createTheme$1(options = {}, ...args) {
|
|
6694
6734
|
const {
|
|
@@ -6697,7 +6737,7 @@
|
|
|
6697
6737
|
spacing: spacingInput,
|
|
6698
6738
|
shape: shapeInput = {}
|
|
6699
6739
|
} = options,
|
|
6700
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6740
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2l);
|
|
6701
6741
|
|
|
6702
6742
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
6703
6743
|
const spacing = createSpacing(spacingInput);
|
|
@@ -6819,7 +6859,7 @@
|
|
|
6819
6859
|
return useTheme$2(defaultTheme);
|
|
6820
6860
|
}
|
|
6821
6861
|
|
|
6822
|
-
const _excluded$
|
|
6862
|
+
const _excluded$2k = ["className", "component"];
|
|
6823
6863
|
function createBox(options = {}) {
|
|
6824
6864
|
const {
|
|
6825
6865
|
defaultTheme,
|
|
@@ -6836,7 +6876,7 @@
|
|
|
6836
6876
|
className,
|
|
6837
6877
|
component = 'div'
|
|
6838
6878
|
} = _extendSxProp,
|
|
6839
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
6879
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2k);
|
|
6840
6880
|
|
|
6841
6881
|
return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
|
|
6842
6882
|
as: component,
|
|
@@ -6848,7 +6888,7 @@
|
|
|
6848
6888
|
return Box;
|
|
6849
6889
|
}
|
|
6850
6890
|
|
|
6851
|
-
const _excluded$
|
|
6891
|
+
const _excluded$2j = ["variant"];
|
|
6852
6892
|
|
|
6853
6893
|
function isEmpty$3(string) {
|
|
6854
6894
|
return string.length === 0;
|
|
@@ -6864,7 +6904,7 @@
|
|
|
6864
6904
|
const {
|
|
6865
6905
|
variant
|
|
6866
6906
|
} = props,
|
|
6867
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6907
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2j);
|
|
6868
6908
|
|
|
6869
6909
|
let classKey = variant || '';
|
|
6870
6910
|
Object.keys(other).sort().forEach(key => {
|
|
@@ -6877,7 +6917,7 @@
|
|
|
6877
6917
|
return classKey;
|
|
6878
6918
|
}
|
|
6879
6919
|
|
|
6880
|
-
const _excluded$
|
|
6920
|
+
const _excluded$2i = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6881
6921
|
_excluded2$c = ["theme"],
|
|
6882
6922
|
_excluded3$1 = ["theme"];
|
|
6883
6923
|
|
|
@@ -6960,7 +7000,7 @@
|
|
|
6960
7000
|
skipSx: inputSkipSx,
|
|
6961
7001
|
overridesResolver
|
|
6962
7002
|
} = inputOptions,
|
|
6963
|
-
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.
|
|
6964
7004
|
|
|
6965
7005
|
|
|
6966
7006
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -7573,13 +7613,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7573
7613
|
* @param {Object} theme
|
|
7574
7614
|
* @param {{
|
|
7575
7615
|
* prefix?: string,
|
|
7576
|
-
* basePrefix?: string,
|
|
7577
7616
|
* shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
|
|
7578
7617
|
* }} options.
|
|
7579
|
-
* `
|
|
7580
|
-
* `prefix`: defined by application
|
|
7581
|
-
*
|
|
7582
|
-
* 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.
|
|
7583
7619
|
*
|
|
7584
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.
|
|
7585
7621
|
*
|
|
@@ -7590,16 +7626,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7590
7626
|
* palette: { primary: { 500: 'var(--color)' } }
|
|
7591
7627
|
* }, { prefix: 'foo' })
|
|
7592
7628
|
*
|
|
7593
|
-
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--
|
|
7594
|
-
* console.log(vars) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7595
|
-
* 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)' } } }
|
|
7596
7632
|
*/
|
|
7597
7633
|
|
|
7598
7634
|
|
|
7599
7635
|
function cssVarsParser(theme, options) {
|
|
7600
7636
|
const {
|
|
7601
7637
|
prefix,
|
|
7602
|
-
basePrefix = '',
|
|
7603
7638
|
shouldSkipGeneratingVar
|
|
7604
7639
|
} = options || {};
|
|
7605
7640
|
const css = {};
|
|
@@ -7607,16 +7642,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7607
7642
|
const parsedTheme = {};
|
|
7608
7643
|
walkObjectDeep(theme, (keys, value, arrayKeys) => {
|
|
7609
7644
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
7610
|
-
if (typeof value === 'string' && value.match(/var\(\s*--/)) {
|
|
7611
|
-
// for CSS variable, apply prefix or remove basePrefix from the variable
|
|
7612
|
-
if (!basePrefix && prefix) {
|
|
7613
|
-
value = value.replace(/var\(\s*--/g, `var(--${prefix}-`);
|
|
7614
|
-
} else {
|
|
7615
|
-
value = prefix ? value.replace(new RegExp(`var\\(\\s*--${basePrefix}`, 'g'), `var(--${prefix}`) // removing spaces
|
|
7616
|
-
: value.replace(new RegExp(`var\\(\\s*--${basePrefix}-`, 'g'), 'var(--');
|
|
7617
|
-
}
|
|
7618
|
-
}
|
|
7619
|
-
|
|
7620
7645
|
if (!shouldSkipGeneratingVar || shouldSkipGeneratingVar && !shouldSkipGeneratingVar(keys, value)) {
|
|
7621
7646
|
// only create css & var if `shouldSkipGeneratingVar` return false
|
|
7622
7647
|
const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
|
|
@@ -7838,7 +7863,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7838
7863
|
const handleMediaQuery = React__namespace.useCallback(e => {
|
|
7839
7864
|
if (state.mode === 'system') {
|
|
7840
7865
|
setState(currentState => _extends({}, currentState, {
|
|
7841
|
-
systemMode: e.matches ? 'dark' : 'light'
|
|
7866
|
+
systemMode: e != null && e.matches ? 'dark' : 'light'
|
|
7842
7867
|
}));
|
|
7843
7868
|
}
|
|
7844
7869
|
}, [state.mode]); // Ref hack to avoid adding handleMediaQuery as a dep
|
|
@@ -7911,34 +7936,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7911
7936
|
});
|
|
7912
7937
|
}
|
|
7913
7938
|
|
|
7914
|
-
|
|
7915
|
-
* The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
|
|
7916
|
-
* and they does not need to remember the prefix (defined once).
|
|
7917
|
-
*/
|
|
7918
|
-
function createGetCssVar(prefix = '') {
|
|
7919
|
-
function appendVar(...vars) {
|
|
7920
|
-
if (!vars.length) {
|
|
7921
|
-
return '';
|
|
7922
|
-
}
|
|
7923
|
-
|
|
7924
|
-
const value = vars[0];
|
|
7925
|
-
|
|
7926
|
-
if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
|
|
7927
|
-
return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
|
|
7928
|
-
}
|
|
7929
|
-
|
|
7930
|
-
return `, ${value}`;
|
|
7931
|
-
} // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
const getCssVar = (field, ...vars) => {
|
|
7935
|
-
return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...vars)})`;
|
|
7936
|
-
};
|
|
7937
|
-
|
|
7938
|
-
return getCssVar;
|
|
7939
|
-
}
|
|
7940
|
-
|
|
7941
|
-
const _excluded$2g = ["colorSchemes", "components"];
|
|
7939
|
+
const _excluded$2h = ["colorSchemes", "components", "cssVarPrefix"];
|
|
7942
7940
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
7943
7941
|
function createCssVarsProvider(options) {
|
|
7944
7942
|
const {
|
|
@@ -7950,8 +7948,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7950
7948
|
defaultColorScheme: designSystemColorScheme,
|
|
7951
7949
|
disableTransitionOnChange: designSystemTransitionOnChange = false,
|
|
7952
7950
|
enableColorScheme: designSystemEnableColorScheme = true,
|
|
7953
|
-
|
|
7954
|
-
shouldSkipGeneratingVar,
|
|
7951
|
+
shouldSkipGeneratingVar: designSystemShouldSkipGeneratingVar,
|
|
7955
7952
|
resolveTheme
|
|
7956
7953
|
} = options;
|
|
7957
7954
|
|
|
@@ -7974,7 +7971,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7974
7971
|
function CssVarsProvider({
|
|
7975
7972
|
children,
|
|
7976
7973
|
theme: themeProp = defaultTheme,
|
|
7977
|
-
prefix = designSystemPrefix,
|
|
7978
7974
|
modeStorageKey = defaultModeStorageKey,
|
|
7979
7975
|
colorSchemeStorageKey = defaultColorSchemeStorageKey,
|
|
7980
7976
|
attribute = defaultAttribute,
|
|
@@ -7985,15 +7981,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7985
7981
|
storageWindow = typeof window === 'undefined' ? undefined : window,
|
|
7986
7982
|
documentNode = typeof document === 'undefined' ? undefined : document,
|
|
7987
7983
|
colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
|
|
7988
|
-
colorSchemeSelector = ':root'
|
|
7984
|
+
colorSchemeSelector = ':root',
|
|
7985
|
+
shouldSkipGeneratingVar = designSystemShouldSkipGeneratingVar
|
|
7989
7986
|
}) {
|
|
7990
7987
|
const hasMounted = React__namespace.useRef(false);
|
|
7991
7988
|
|
|
7992
7989
|
const {
|
|
7993
7990
|
colorSchemes = {},
|
|
7994
|
-
components = {}
|
|
7991
|
+
components = {},
|
|
7992
|
+
cssVarPrefix
|
|
7995
7993
|
} = themeProp,
|
|
7996
|
-
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$
|
|
7994
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2h);
|
|
7997
7995
|
|
|
7998
7996
|
const allColorSchemes = Object.keys(colorSchemes);
|
|
7999
7997
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
@@ -8036,16 +8034,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8036
8034
|
vars: rootVars,
|
|
8037
8035
|
parsedTheme
|
|
8038
8036
|
} = cssVarsParser(theme, {
|
|
8039
|
-
prefix,
|
|
8040
|
-
basePrefix: designSystemPrefix,
|
|
8037
|
+
prefix: cssVarPrefix,
|
|
8041
8038
|
shouldSkipGeneratingVar
|
|
8042
8039
|
});
|
|
8043
8040
|
theme = _extends({}, parsedTheme, {
|
|
8044
8041
|
components,
|
|
8045
8042
|
colorSchemes,
|
|
8046
|
-
|
|
8043
|
+
cssVarPrefix,
|
|
8047
8044
|
vars: rootVars,
|
|
8048
|
-
getCssVar: createGetCssVar(prefix),
|
|
8049
8045
|
getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
|
|
8050
8046
|
});
|
|
8051
8047
|
const defaultColorSchemeStyleSheet = {};
|
|
@@ -8056,8 +8052,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8056
8052
|
vars,
|
|
8057
8053
|
parsedTheme: parsedScheme
|
|
8058
8054
|
} = cssVarsParser(scheme, {
|
|
8059
|
-
prefix,
|
|
8060
|
-
basePrefix: designSystemPrefix,
|
|
8055
|
+
prefix: cssVarPrefix,
|
|
8061
8056
|
shouldSkipGeneratingVar
|
|
8062
8057
|
});
|
|
8063
8058
|
theme.vars = deepmerge(theme.vars, vars);
|
|
@@ -8221,9 +8216,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8221
8216
|
modeStorageKey: PropTypes.string,
|
|
8222
8217
|
|
|
8223
8218
|
/**
|
|
8224
|
-
* CSS
|
|
8219
|
+
* A function to determine if the key, value should be attached as CSS Variable
|
|
8225
8220
|
*/
|
|
8226
|
-
|
|
8221
|
+
shouldSkipGeneratingVar: PropTypes.func,
|
|
8227
8222
|
|
|
8228
8223
|
/**
|
|
8229
8224
|
* The window that attaches the 'storage' event listener
|
|
@@ -8251,9 +8246,36 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8251
8246
|
};
|
|
8252
8247
|
}
|
|
8253
8248
|
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
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', {
|
|
8257
8279
|
name: 'MuiContainer',
|
|
8258
8280
|
slot: 'Root',
|
|
8259
8281
|
overridesResolver: (props, styles) => {
|
|
@@ -8264,10 +8286,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8264
8286
|
}
|
|
8265
8287
|
});
|
|
8266
8288
|
|
|
8267
|
-
const useThemePropsDefault = inProps => useThemeProps$1({
|
|
8289
|
+
const useThemePropsDefault$1 = inProps => useThemeProps$1({
|
|
8268
8290
|
props: inProps,
|
|
8269
8291
|
name: 'MuiContainer',
|
|
8270
|
-
defaultTheme: defaultTheme$
|
|
8292
|
+
defaultTheme: defaultTheme$5
|
|
8271
8293
|
});
|
|
8272
8294
|
|
|
8273
8295
|
const useUtilityClasses$1P = (ownerState, componentName) => {
|
|
@@ -8290,8 +8312,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8290
8312
|
function createContainer(options = {}) {
|
|
8291
8313
|
const {
|
|
8292
8314
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
8293
|
-
createStyledComponent = defaultCreateStyledComponent,
|
|
8294
|
-
useThemeProps = useThemePropsDefault,
|
|
8315
|
+
createStyledComponent = defaultCreateStyledComponent$1,
|
|
8316
|
+
useThemeProps = useThemePropsDefault$1,
|
|
8295
8317
|
componentName = 'MuiContainer'
|
|
8296
8318
|
} = options;
|
|
8297
8319
|
const ContainerRoot = createStyledComponent(({
|
|
@@ -8353,7 +8375,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8353
8375
|
fixed = false,
|
|
8354
8376
|
maxWidth = 'lg'
|
|
8355
8377
|
} = props,
|
|
8356
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8378
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2g);
|
|
8357
8379
|
|
|
8358
8380
|
const ownerState = _extends({}, props, {
|
|
8359
8381
|
component,
|
|
@@ -8393,6 +8415,407 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8393
8415
|
return Container;
|
|
8394
8416
|
}
|
|
8395
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.disableEqualOverflow && {
|
|
8605
|
+
margin: `calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)`
|
|
8606
|
+
}, ownerState.nested ? _extends({
|
|
8607
|
+
padding: `calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)`
|
|
8608
|
+
}, (ownerState.disableEqualOverflow || ownerState.parentDisableEqualOverflow) && {
|
|
8609
|
+
padding: `calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))`
|
|
8610
|
+
}) : {
|
|
8611
|
+
'--Grid-nested-rowSpacing': 'var(--Grid-rowSpacing)',
|
|
8612
|
+
'--Grid-nested-columnSpacing': 'var(--Grid-columnSpacing)'
|
|
8613
|
+
}) : _extends({
|
|
8614
|
+
padding: `calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)`
|
|
8615
|
+
}, ownerState.disableEqualOverflow && {
|
|
8616
|
+
padding: `calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))`
|
|
8617
|
+
}));
|
|
8618
|
+
};
|
|
8619
|
+
const generateSizeClassNames = gridSize => {
|
|
8620
|
+
const classNames = [];
|
|
8621
|
+
Object.entries(gridSize).forEach(([key, value]) => {
|
|
8622
|
+
if (value !== false && value !== undefined) {
|
|
8623
|
+
classNames.push(`grid-${key}-${String(value)}`);
|
|
8624
|
+
}
|
|
8625
|
+
});
|
|
8626
|
+
return classNames;
|
|
8627
|
+
};
|
|
8628
|
+
const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {
|
|
8629
|
+
function isValidSpacing(val) {
|
|
8630
|
+
if (val === undefined) {
|
|
8631
|
+
return false;
|
|
8632
|
+
}
|
|
8633
|
+
|
|
8634
|
+
return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;
|
|
8635
|
+
}
|
|
8636
|
+
|
|
8637
|
+
if (isValidSpacing(spacing)) {
|
|
8638
|
+
return [`spacing-${smallestBreakpoint}-${String(spacing)}`];
|
|
8639
|
+
}
|
|
8640
|
+
|
|
8641
|
+
if (typeof spacing === 'object' && !Array.isArray(spacing)) {
|
|
8642
|
+
const classNames = [];
|
|
8643
|
+
Object.entries(spacing).forEach(([key, value]) => {
|
|
8644
|
+
if (isValidSpacing(value)) {
|
|
8645
|
+
classNames.push(`spacing-${key}-${String(value)}`);
|
|
8646
|
+
}
|
|
8647
|
+
});
|
|
8648
|
+
return classNames;
|
|
8649
|
+
}
|
|
8650
|
+
|
|
8651
|
+
return [];
|
|
8652
|
+
};
|
|
8653
|
+
|
|
8654
|
+
const _excluded$2f = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow"];
|
|
8655
|
+
const defaultTheme$4 = createTheme$1(); // widening Theme to any so that the consumer can own the theme structure.
|
|
8656
|
+
|
|
8657
|
+
const defaultCreateStyledComponent = systemStyled('div', {
|
|
8658
|
+
name: 'MuiGrid',
|
|
8659
|
+
slot: 'Root',
|
|
8660
|
+
overridesResolver: (props, styles) => styles.root
|
|
8661
|
+
});
|
|
8662
|
+
|
|
8663
|
+
function useThemePropsDefault(props) {
|
|
8664
|
+
return useThemeProps$1({
|
|
8665
|
+
props,
|
|
8666
|
+
name: 'MuiGrid',
|
|
8667
|
+
defaultTheme: defaultTheme$4
|
|
8668
|
+
});
|
|
8669
|
+
}
|
|
8670
|
+
|
|
8671
|
+
function createGrid(options = {}) {
|
|
8672
|
+
const {
|
|
8673
|
+
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
8674
|
+
createStyledComponent = defaultCreateStyledComponent,
|
|
8675
|
+
useThemeProps = useThemePropsDefault,
|
|
8676
|
+
componentName = 'MuiGrid'
|
|
8677
|
+
} = options;
|
|
8678
|
+
const NestedContext = /*#__PURE__*/React__namespace.createContext(false);
|
|
8679
|
+
const OverflowContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
8680
|
+
|
|
8681
|
+
const useUtilityClasses = (ownerState, theme) => {
|
|
8682
|
+
const {
|
|
8683
|
+
container,
|
|
8684
|
+
direction,
|
|
8685
|
+
spacing,
|
|
8686
|
+
wrap,
|
|
8687
|
+
gridSize
|
|
8688
|
+
} = ownerState;
|
|
8689
|
+
const slots = {
|
|
8690
|
+
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]) : [])]
|
|
8691
|
+
};
|
|
8692
|
+
return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});
|
|
8693
|
+
};
|
|
8694
|
+
|
|
8695
|
+
const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);
|
|
8696
|
+
const Grid = /*#__PURE__*/React__namespace.forwardRef(function Grid(inProps, ref) {
|
|
8697
|
+
var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin, _ref3, _disableEqualOverflow;
|
|
8698
|
+
|
|
8699
|
+
const theme = useTheme$1();
|
|
8700
|
+
const themeProps = useThemeProps(inProps);
|
|
8701
|
+
const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
|
|
8702
|
+
|
|
8703
|
+
const nested = React__namespace.useContext(NestedContext);
|
|
8704
|
+
const overflow = React__namespace.useContext(OverflowContext);
|
|
8705
|
+
|
|
8706
|
+
const {
|
|
8707
|
+
className,
|
|
8708
|
+
columns: columnsProp = 12,
|
|
8709
|
+
container = false,
|
|
8710
|
+
component = 'div',
|
|
8711
|
+
direction = 'row',
|
|
8712
|
+
wrap = 'wrap',
|
|
8713
|
+
spacing: spacingProp = 0,
|
|
8714
|
+
rowSpacing: rowSpacingProp = spacingProp,
|
|
8715
|
+
columnSpacing: columnSpacingProp = spacingProp,
|
|
8716
|
+
disableEqualOverflow: themeDisableEqualOverflow
|
|
8717
|
+
} = props,
|
|
8718
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2f); // Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
|
|
8719
|
+
|
|
8720
|
+
|
|
8721
|
+
let disableEqualOverflow = themeDisableEqualOverflow;
|
|
8722
|
+
|
|
8723
|
+
if (nested && themeDisableEqualOverflow !== undefined) {
|
|
8724
|
+
disableEqualOverflow = inProps.disableEqualOverflow;
|
|
8725
|
+
} // collect breakpoints related props because they can be customized from the theme.
|
|
8726
|
+
|
|
8727
|
+
|
|
8728
|
+
const gridSize = {};
|
|
8729
|
+
const gridOffset = {};
|
|
8730
|
+
const other = {};
|
|
8731
|
+
Object.entries(rest).forEach(([key, val]) => {
|
|
8732
|
+
if (theme.breakpoints.values[key] !== undefined) {
|
|
8733
|
+
gridSize[key] = val;
|
|
8734
|
+
} else if (theme.breakpoints.values[key.replace('Offset', '')] !== undefined) {
|
|
8735
|
+
gridOffset[key.replace('Offset', '')] = val;
|
|
8736
|
+
} else {
|
|
8737
|
+
other[key] = val;
|
|
8738
|
+
}
|
|
8739
|
+
});
|
|
8740
|
+
const columns = (_inProps$columns = inProps.columns) != null ? _inProps$columns : nested ? undefined : columnsProp;
|
|
8741
|
+
const spacing = (_inProps$spacing = inProps.spacing) != null ? _inProps$spacing : nested ? undefined : spacingProp;
|
|
8742
|
+
const rowSpacing = (_ref = (_inProps$rowSpacing = inProps.rowSpacing) != null ? _inProps$rowSpacing : inProps.spacing) != null ? _ref : nested ? undefined : rowSpacingProp;
|
|
8743
|
+
const columnSpacing = (_ref2 = (_inProps$columnSpacin = inProps.columnSpacing) != null ? _inProps$columnSpacin : inProps.spacing) != null ? _ref2 : nested ? undefined : columnSpacingProp;
|
|
8744
|
+
|
|
8745
|
+
const ownerState = _extends({}, props, {
|
|
8746
|
+
nested,
|
|
8747
|
+
columns,
|
|
8748
|
+
container,
|
|
8749
|
+
direction,
|
|
8750
|
+
wrap,
|
|
8751
|
+
spacing,
|
|
8752
|
+
rowSpacing,
|
|
8753
|
+
columnSpacing,
|
|
8754
|
+
gridSize,
|
|
8755
|
+
gridOffset,
|
|
8756
|
+
disableEqualOverflow: (_ref3 = (_disableEqualOverflow = disableEqualOverflow) != null ? _disableEqualOverflow : overflow) != null ? _ref3 : false,
|
|
8757
|
+
// use context value if exists.
|
|
8758
|
+
parentDisableEqualOverflow: overflow // for nested grid
|
|
8759
|
+
|
|
8760
|
+
});
|
|
8761
|
+
|
|
8762
|
+
const classes = useUtilityClasses(ownerState, theme);
|
|
8763
|
+
|
|
8764
|
+
let result = /*#__PURE__*/jsxRuntime_1(GridRoot, _extends({
|
|
8765
|
+
ref: ref,
|
|
8766
|
+
as: component,
|
|
8767
|
+
ownerState: ownerState,
|
|
8768
|
+
className: clsx(classes.root, className)
|
|
8769
|
+
}, other));
|
|
8770
|
+
|
|
8771
|
+
if (!nested) {
|
|
8772
|
+
result = /*#__PURE__*/jsxRuntime_1(NestedContext.Provider, {
|
|
8773
|
+
value: true,
|
|
8774
|
+
children: result
|
|
8775
|
+
});
|
|
8776
|
+
}
|
|
8777
|
+
|
|
8778
|
+
if (disableEqualOverflow !== undefined && disableEqualOverflow !== (overflow != null ? overflow : false)) {
|
|
8779
|
+
// There are 2 possibilities that should wrap with the OverflowContext to communicate with the nested grids:
|
|
8780
|
+
// 1. It is the root grid with `disableEqualOverflow`.
|
|
8781
|
+
// 2. It is a nested grid with different `disableEqualOverflow` from the context.
|
|
8782
|
+
result = /*#__PURE__*/jsxRuntime_1(OverflowContext.Provider, {
|
|
8783
|
+
value: disableEqualOverflow,
|
|
8784
|
+
children: result
|
|
8785
|
+
});
|
|
8786
|
+
}
|
|
8787
|
+
|
|
8788
|
+
return result;
|
|
8789
|
+
});
|
|
8790
|
+
Grid.propTypes
|
|
8791
|
+
/* remove-proptypes */
|
|
8792
|
+
= {
|
|
8793
|
+
children: PropTypes.node,
|
|
8794
|
+
className: PropTypes.string,
|
|
8795
|
+
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
|
|
8796
|
+
columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
8797
|
+
component: PropTypes.elementType,
|
|
8798
|
+
container: PropTypes.bool,
|
|
8799
|
+
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
|
8800
|
+
disableEqualOverflow: PropTypes.bool,
|
|
8801
|
+
lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8802
|
+
lgOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8803
|
+
md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8804
|
+
mdOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8805
|
+
rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
8806
|
+
sm: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8807
|
+
smOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8808
|
+
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
8809
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
8810
|
+
wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap']),
|
|
8811
|
+
xl: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8812
|
+
xlOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
8813
|
+
xs: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
|
|
8814
|
+
xsOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
8815
|
+
} ;
|
|
8816
|
+
return Grid;
|
|
8817
|
+
}
|
|
8818
|
+
|
|
8396
8819
|
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
8397
8820
|
_excluded2$b = ["type", "mode"];
|
|
8398
8821
|
function adaptV4Theme(inputTheme) {
|
|
@@ -8534,12 +8957,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8534
8957
|
return componentProps;
|
|
8535
8958
|
}
|
|
8536
8959
|
|
|
8537
|
-
/**
|
|
8538
|
-
* Creates a type that is T with removed properties that are functions with names beginning with `on`.
|
|
8539
|
-
* Note that it does not exactly follow the logic of `omitEventHandlers` as it also removes fields where
|
|
8540
|
-
* `on` is followed by a non-letter character,
|
|
8541
|
-
*/
|
|
8542
|
-
|
|
8543
8960
|
/**
|
|
8544
8961
|
* Removes event handlers from the given object.
|
|
8545
8962
|
* A field is considered an event handler if it is a function with a name beginning with `on`.
|
|
@@ -8609,8 +9026,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8609
9026
|
const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));
|
|
8610
9027
|
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
|
8611
9028
|
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
|
8612
|
-
const internalSlotProps = getSlotProps(eventHandlers);
|
|
8613
|
-
|
|
9029
|
+
const internalSlotProps = getSlotProps(eventHandlers); // The order of classes is important here.
|
|
9030
|
+
// Emotion (that we use in libraries consuming MUI Base) depends on this order
|
|
9031
|
+
// to properly override style. It requires the most important classes to be last
|
|
9032
|
+
// (see https://github.com/mui/material-ui/pull/33205) for the related discussion.
|
|
9033
|
+
|
|
9034
|
+
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);
|
|
8614
9035
|
|
|
8615
9036
|
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);
|
|
8616
9037
|
|
|
@@ -8650,11 +9071,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8650
9071
|
rest = _objectWithoutPropertiesLoose(parameters, _excluded$2d);
|
|
8651
9072
|
|
|
8652
9073
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
8653
|
-
const
|
|
9074
|
+
const {
|
|
9075
|
+
props: mergedProps,
|
|
9076
|
+
internalRef
|
|
9077
|
+
} = mergeSlotProps(_extends({}, rest, {
|
|
8654
9078
|
externalSlotProps: resolvedComponentsProps
|
|
8655
9079
|
}));
|
|
8656
|
-
const
|
|
8657
|
-
|
|
9080
|
+
const ref = useForkRef(internalRef, useForkRef(resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref));
|
|
9081
|
+
const props = appendOwnerState(elementType, _extends({}, mergedProps, {
|
|
9082
|
+
ref
|
|
8658
9083
|
}), ownerState);
|
|
8659
9084
|
return props;
|
|
8660
9085
|
}
|
|
@@ -8724,13 +9149,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8724
9149
|
autoHighlight = false,
|
|
8725
9150
|
autoSelect = false,
|
|
8726
9151
|
blurOnSelect = false,
|
|
8727
|
-
disabled: disabledProp,
|
|
8728
9152
|
clearOnBlur = !props.freeSolo,
|
|
8729
9153
|
clearOnEscape = false,
|
|
8730
9154
|
componentName = 'useAutocomplete',
|
|
8731
9155
|
defaultValue = props.multiple ? [] : null,
|
|
8732
9156
|
disableClearable = false,
|
|
8733
9157
|
disableCloseOnSelect = false,
|
|
9158
|
+
disabled: disabledProp,
|
|
8734
9159
|
disabledItemsFocusable = false,
|
|
8735
9160
|
disableListWrap = false,
|
|
8736
9161
|
filterOptions = defaultFilterOptions,
|
|
@@ -8742,12 +9167,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8742
9167
|
|
|
8743
9168
|
return (_option$label = option.label) != null ? _option$label : option;
|
|
8744
9169
|
},
|
|
8745
|
-
isOptionEqualToValue = (option, value) => option === value,
|
|
8746
9170
|
groupBy,
|
|
8747
9171
|
handleHomeEndKeys = !props.freeSolo,
|
|
8748
9172
|
id: idProp,
|
|
8749
9173
|
includeInputInList = false,
|
|
8750
9174
|
inputValue: inputValueProp,
|
|
9175
|
+
isOptionEqualToValue = (option, value) => option === value,
|
|
8751
9176
|
multiple = false,
|
|
8752
9177
|
onChange,
|
|
8753
9178
|
onClose,
|
|
@@ -9222,7 +9647,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9222
9647
|
option
|
|
9223
9648
|
});
|
|
9224
9649
|
|
|
9225
|
-
if (!disableCloseOnSelect && !event.ctrlKey && !event.metaKey) {
|
|
9650
|
+
if (!disableCloseOnSelect && (!event || !event.ctrlKey && !event.metaKey)) {
|
|
9226
9651
|
handleClose(event, reason);
|
|
9227
9652
|
}
|
|
9228
9653
|
|
|
@@ -13057,7 +13482,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13057
13482
|
const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
|
|
13058
13483
|
var modalUnstyledClasses$1 = modalUnstyledClasses;
|
|
13059
13484
|
|
|
13060
|
-
const _excluded$2a = ["children", "classes", "
|
|
13485
|
+
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"];
|
|
13061
13486
|
|
|
13062
13487
|
const useUtilityClasses$1N = ownerState => {
|
|
13063
13488
|
const {
|
|
@@ -13097,12 +13522,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13097
13522
|
*/
|
|
13098
13523
|
|
|
13099
13524
|
const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, ref) {
|
|
13100
|
-
var _props$ariaHidden
|
|
13525
|
+
var _props$ariaHidden;
|
|
13101
13526
|
|
|
13102
13527
|
const {
|
|
13103
13528
|
children,
|
|
13104
13529
|
classes: classesProp,
|
|
13105
|
-
className,
|
|
13106
13530
|
closeAfterTransition = false,
|
|
13107
13531
|
component = 'div',
|
|
13108
13532
|
components = {},
|
|
@@ -13208,10 +13632,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13208
13632
|
|
|
13209
13633
|
const classes = useUtilityClasses$1N(ownerState);
|
|
13210
13634
|
|
|
13211
|
-
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
13212
|
-
return null;
|
|
13213
|
-
}
|
|
13214
|
-
|
|
13215
13635
|
const handleEnter = () => {
|
|
13216
13636
|
setExited(false);
|
|
13217
13637
|
|
|
@@ -13284,19 +13704,34 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13284
13704
|
}
|
|
13285
13705
|
|
|
13286
13706
|
const Root = components.Root || component;
|
|
13287
|
-
const rootProps =
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13707
|
+
const rootProps = useSlotProps({
|
|
13708
|
+
elementType: Root,
|
|
13709
|
+
externalSlotProps: componentsProps.root,
|
|
13710
|
+
externalForwardedProps: other,
|
|
13711
|
+
additionalProps: {
|
|
13712
|
+
ref: handleRef,
|
|
13713
|
+
role: 'presentation',
|
|
13714
|
+
onKeyDown: handleKeyDown
|
|
13715
|
+
},
|
|
13716
|
+
className: classes.root,
|
|
13717
|
+
ownerState
|
|
13718
|
+
});
|
|
13294
13719
|
const BackdropComponent = components.Backdrop;
|
|
13295
|
-
const backdropProps =
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13720
|
+
const backdropProps = useSlotProps({
|
|
13721
|
+
elementType: BackdropComponent,
|
|
13722
|
+
externalSlotProps: componentsProps.backdrop,
|
|
13723
|
+
additionalProps: {
|
|
13724
|
+
'aria-hidden': true,
|
|
13725
|
+
onClick: handleBackdropClick,
|
|
13726
|
+
open
|
|
13727
|
+
},
|
|
13728
|
+
ownerState
|
|
13729
|
+
});
|
|
13730
|
+
|
|
13731
|
+
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
13732
|
+
return null;
|
|
13733
|
+
}
|
|
13734
|
+
|
|
13300
13735
|
return /*#__PURE__*/jsxRuntime_1(Portal$1, {
|
|
13301
13736
|
ref: handlePortalRef,
|
|
13302
13737
|
container: container,
|
|
@@ -13331,11 +13766,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13331
13766
|
*/
|
|
13332
13767
|
classes: PropTypes.object,
|
|
13333
13768
|
|
|
13334
|
-
/**
|
|
13335
|
-
* @ignore
|
|
13336
|
-
*/
|
|
13337
|
-
className: PropTypes.string,
|
|
13338
|
-
|
|
13339
13769
|
/**
|
|
13340
13770
|
* When set to true the Modal waits until a nested Transition is completed before closing.
|
|
13341
13771
|
* @default false
|
|
@@ -13363,8 +13793,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13363
13793
|
* @default {}
|
|
13364
13794
|
*/
|
|
13365
13795
|
componentsProps: PropTypes.shape({
|
|
13366
|
-
backdrop: PropTypes.object,
|
|
13367
|
-
root: PropTypes.object
|
|
13796
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
13797
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
13368
13798
|
}),
|
|
13369
13799
|
|
|
13370
13800
|
/**
|
|
@@ -16070,7 +16500,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16070
16500
|
} ;
|
|
16071
16501
|
var Paper$1 = Paper;
|
|
16072
16502
|
|
|
16073
|
-
const _excluded$22 = ["colorSchemes"],
|
|
16503
|
+
const _excluded$22 = ["colorSchemes", "cssVarPrefix"],
|
|
16074
16504
|
_excluded2$9 = ["palette"];
|
|
16075
16505
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
16076
16506
|
if (index === 0) {
|
|
@@ -16093,14 +16523,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16093
16523
|
obj[key] = obj[key] || defaultValue;
|
|
16094
16524
|
}
|
|
16095
16525
|
|
|
16526
|
+
const createGetCssVar = (cssVarPrefix = 'mui') => createGetCssVar$1(cssVarPrefix);
|
|
16096
16527
|
function extendTheme(options = {}, ...args) {
|
|
16097
16528
|
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
|
|
16098
16529
|
|
|
16099
16530
|
const {
|
|
16100
|
-
colorSchemes: colorSchemesInput = {}
|
|
16531
|
+
colorSchemes: colorSchemesInput = {},
|
|
16532
|
+
cssVarPrefix = 'mui'
|
|
16101
16533
|
} = options,
|
|
16102
16534
|
input = _objectWithoutPropertiesLoose(options, _excluded$22);
|
|
16103
16535
|
|
|
16536
|
+
const getCssVar = createGetCssVar(cssVarPrefix);
|
|
16537
|
+
|
|
16104
16538
|
const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
|
|
16105
16539
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
16106
16540
|
})),
|
|
@@ -16118,6 +16552,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16118
16552
|
});
|
|
16119
16553
|
|
|
16120
16554
|
let theme = _extends({}, muiTheme, {
|
|
16555
|
+
cssVarPrefix,
|
|
16556
|
+
getCssVar,
|
|
16121
16557
|
colorSchemes: _extends({}, colorSchemesInput, {
|
|
16122
16558
|
light: _extends({}, colorSchemesInput.light, {
|
|
16123
16559
|
palette: lightPalette,
|
|
@@ -16161,10 +16597,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16161
16597
|
setColor(palette.Alert, 'infoColor', darken(palette.info.light, 0.6));
|
|
16162
16598
|
setColor(palette.Alert, 'successColor', darken(palette.success.light, 0.6));
|
|
16163
16599
|
setColor(palette.Alert, 'warningColor', darken(palette.warning.light, 0.6));
|
|
16164
|
-
setColor(palette.Alert, 'errorFilledBg', '
|
|
16165
|
-
setColor(palette.Alert, 'infoFilledBg', '
|
|
16166
|
-
setColor(palette.Alert, 'successFilledBg', '
|
|
16167
|
-
setColor(palette.Alert, 'warningFilledBg', '
|
|
16600
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-main'));
|
|
16601
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-main'));
|
|
16602
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-main'));
|
|
16603
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-main'));
|
|
16168
16604
|
setColor(palette.Alert, 'errorFilledColor', lightPalette.getContrastText(palette.error.main));
|
|
16169
16605
|
setColor(palette.Alert, 'infoFilledColor', lightPalette.getContrastText(palette.info.main));
|
|
16170
16606
|
setColor(palette.Alert, 'successFilledColor', lightPalette.getContrastText(palette.success.main));
|
|
@@ -16173,15 +16609,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16173
16609
|
setColor(palette.Alert, 'infoStandardBg', lighten(palette.info.light, 0.9));
|
|
16174
16610
|
setColor(palette.Alert, 'successStandardBg', lighten(palette.success.light, 0.9));
|
|
16175
16611
|
setColor(palette.Alert, 'warningStandardBg', lighten(palette.warning.light, 0.9));
|
|
16176
|
-
setColor(palette.Alert, 'errorIconColor', '
|
|
16177
|
-
setColor(palette.Alert, 'infoIconColor', '
|
|
16178
|
-
setColor(palette.Alert, 'successIconColor', '
|
|
16179
|
-
setColor(palette.Alert, 'warningIconColor', '
|
|
16180
|
-
setColor(palette.AppBar, 'defaultBg', '
|
|
16181
|
-
setColor(palette.Avatar, 'defaultBg', '
|
|
16182
|
-
setColor(palette.Chip, 'defaultBorder', '
|
|
16183
|
-
setColor(palette.Chip, 'defaultAvatarColor', '
|
|
16184
|
-
setColor(palette.Chip, 'defaultIconColor', '
|
|
16612
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-light'));
|
|
16613
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-light'));
|
|
16614
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-light'));
|
|
16615
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-light'));
|
|
16616
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-100'));
|
|
16617
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-400'));
|
|
16618
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-400'));
|
|
16619
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-700'));
|
|
16620
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-700'));
|
|
16185
16621
|
setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
|
|
16186
16622
|
setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
|
|
16187
16623
|
setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
|
|
@@ -16191,19 +16627,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16191
16627
|
setColor(palette.LinearProgress, 'infoBg', lighten(palette.info.main, 0.62));
|
|
16192
16628
|
setColor(palette.LinearProgress, 'successBg', lighten(palette.success.main, 0.62));
|
|
16193
16629
|
setColor(palette.LinearProgress, 'warningBg', lighten(palette.warning.main, 0.62));
|
|
16194
|
-
setColor(palette.Skeleton, 'bg',
|
|
16630
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.11)`);
|
|
16195
16631
|
setColor(palette.Slider, 'primaryTrack', lighten(palette.primary.main, 0.62));
|
|
16196
16632
|
setColor(palette.Slider, 'secondaryTrack', lighten(palette.secondary.main, 0.62));
|
|
16197
16633
|
setColor(palette.Slider, 'errorTrack', lighten(palette.error.main, 0.62));
|
|
16198
16634
|
setColor(palette.Slider, 'infoTrack', lighten(palette.info.main, 0.62));
|
|
16199
16635
|
setColor(palette.Slider, 'successTrack', lighten(palette.success.main, 0.62));
|
|
16200
16636
|
setColor(palette.Slider, 'warningTrack', lighten(palette.warning.main, 0.62));
|
|
16201
|
-
|
|
16637
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.8);
|
|
16638
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16639
|
+
setColor(palette.SnackbarContent, 'color', lightPalette.getContrastText(snackbarContentBackground));
|
|
16202
16640
|
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16203
|
-
setColor(palette.StepConnector, 'border', '
|
|
16204
|
-
setColor(palette.StepContent, 'border', '
|
|
16205
|
-
setColor(palette.Switch, 'defaultColor', '
|
|
16206
|
-
setColor(palette.Switch, 'defaultDisabledColor', '
|
|
16641
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-400'));
|
|
16642
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-400'));
|
|
16643
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-common-white'));
|
|
16644
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-100'));
|
|
16207
16645
|
setColor(palette.Switch, 'primaryDisabledColor', lighten(palette.primary.main, 0.62));
|
|
16208
16646
|
setColor(palette.Switch, 'secondaryDisabledColor', lighten(palette.secondary.main, 0.62));
|
|
16209
16647
|
setColor(palette.Switch, 'errorDisabledColor', lighten(palette.error.main, 0.62));
|
|
@@ -16217,10 +16655,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16217
16655
|
setColor(palette.Alert, 'infoColor', lighten(palette.info.light, 0.6));
|
|
16218
16656
|
setColor(palette.Alert, 'successColor', lighten(palette.success.light, 0.6));
|
|
16219
16657
|
setColor(palette.Alert, 'warningColor', lighten(palette.warning.light, 0.6));
|
|
16220
|
-
setColor(palette.Alert, 'errorFilledBg', '
|
|
16221
|
-
setColor(palette.Alert, 'infoFilledBg', '
|
|
16222
|
-
setColor(palette.Alert, 'successFilledBg', '
|
|
16223
|
-
setColor(palette.Alert, 'warningFilledBg', '
|
|
16658
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-dark'));
|
|
16659
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-dark'));
|
|
16660
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-dark'));
|
|
16661
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-dark'));
|
|
16224
16662
|
setColor(palette.Alert, 'errorFilledColor', darkPalette.getContrastText(palette.error.dark));
|
|
16225
16663
|
setColor(palette.Alert, 'infoFilledColor', darkPalette.getContrastText(palette.info.dark));
|
|
16226
16664
|
setColor(palette.Alert, 'successFilledColor', darkPalette.getContrastText(palette.success.dark));
|
|
@@ -16229,19 +16667,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16229
16667
|
setColor(palette.Alert, 'infoStandardBg', darken(palette.info.light, 0.9));
|
|
16230
16668
|
setColor(palette.Alert, 'successStandardBg', darken(palette.success.light, 0.9));
|
|
16231
16669
|
setColor(palette.Alert, 'warningStandardBg', darken(palette.warning.light, 0.9));
|
|
16232
|
-
setColor(palette.Alert, 'errorIconColor', '
|
|
16233
|
-
setColor(palette.Alert, 'infoIconColor', '
|
|
16234
|
-
setColor(palette.Alert, 'successIconColor', '
|
|
16235
|
-
setColor(palette.Alert, 'warningIconColor', '
|
|
16236
|
-
setColor(palette.AppBar, 'defaultBg', '
|
|
16237
|
-
setColor(palette.AppBar, 'darkBg', '
|
|
16238
|
-
|
|
16239
|
-
setColor(palette.AppBar, 'darkColor', '
|
|
16240
|
-
|
|
16241
|
-
setColor(palette.Avatar, 'defaultBg', '
|
|
16242
|
-
setColor(palette.Chip, 'defaultBorder', '
|
|
16243
|
-
setColor(palette.Chip, 'defaultAvatarColor', '
|
|
16244
|
-
setColor(palette.Chip, 'defaultIconColor', '
|
|
16670
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-main'));
|
|
16671
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-main'));
|
|
16672
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-main'));
|
|
16673
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-main'));
|
|
16674
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-900'));
|
|
16675
|
+
setColor(palette.AppBar, 'darkBg', getCssVar('palette-background-paper')); // specific for dark mode
|
|
16676
|
+
|
|
16677
|
+
setColor(palette.AppBar, 'darkColor', getCssVar('palette-text-primary')); // specific for dark mode
|
|
16678
|
+
|
|
16679
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-600'));
|
|
16680
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-700'));
|
|
16681
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-300'));
|
|
16682
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-300'));
|
|
16245
16683
|
setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
|
|
16246
16684
|
setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
|
|
16247
16685
|
setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
|
|
@@ -16251,19 +16689,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16251
16689
|
setColor(palette.LinearProgress, 'infoBg', darken(palette.info.main, 0.5));
|
|
16252
16690
|
setColor(palette.LinearProgress, 'successBg', darken(palette.success.main, 0.5));
|
|
16253
16691
|
setColor(palette.LinearProgress, 'warningBg', darken(palette.warning.main, 0.5));
|
|
16254
|
-
setColor(palette.Skeleton, 'bg',
|
|
16692
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.13)`);
|
|
16255
16693
|
setColor(palette.Slider, 'primaryTrack', darken(palette.primary.main, 0.5));
|
|
16256
16694
|
setColor(palette.Slider, 'secondaryTrack', darken(palette.secondary.main, 0.5));
|
|
16257
16695
|
setColor(palette.Slider, 'errorTrack', darken(palette.error.main, 0.5));
|
|
16258
16696
|
setColor(palette.Slider, 'infoTrack', darken(palette.info.main, 0.5));
|
|
16259
16697
|
setColor(palette.Slider, 'successTrack', darken(palette.success.main, 0.5));
|
|
16260
16698
|
setColor(palette.Slider, 'warningTrack', darken(palette.warning.main, 0.5));
|
|
16261
|
-
|
|
16699
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.98);
|
|
16700
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16701
|
+
setColor(palette.SnackbarContent, 'color', darkPalette.getContrastText(snackbarContentBackground));
|
|
16262
16702
|
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16263
|
-
setColor(palette.StepConnector, 'border', '
|
|
16264
|
-
setColor(palette.StepContent, 'border', '
|
|
16265
|
-
setColor(palette.Switch, 'defaultColor', '
|
|
16266
|
-
setColor(palette.Switch, 'defaultDisabledColor', '
|
|
16703
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-600'));
|
|
16704
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-600'));
|
|
16705
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-grey-300'));
|
|
16706
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-600'));
|
|
16267
16707
|
setColor(palette.Switch, 'primaryDisabledColor', darken(palette.primary.main, 0.55));
|
|
16268
16708
|
setColor(palette.Switch, 'secondaryDisabledColor', darken(palette.secondary.main, 0.55));
|
|
16269
16709
|
setColor(palette.Switch, 'errorDisabledColor', darken(palette.error.main, 0.55));
|
|
@@ -16319,9 +16759,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16319
16759
|
return theme;
|
|
16320
16760
|
}
|
|
16321
16761
|
|
|
16762
|
+
const shouldSkipGeneratingVar = keys => {
|
|
16763
|
+
var _keys$;
|
|
16764
|
+
|
|
16765
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16766
|
+
};
|
|
16767
|
+
|
|
16322
16768
|
const defaultTheme$1 = extendTheme();
|
|
16323
16769
|
const {
|
|
16324
|
-
CssVarsProvider
|
|
16770
|
+
CssVarsProvider,
|
|
16325
16771
|
useColorScheme,
|
|
16326
16772
|
getInitColorSchemeScript
|
|
16327
16773
|
} = createCssVarsProvider({
|
|
@@ -16333,7 +16779,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16333
16779
|
light: 'light',
|
|
16334
16780
|
dark: 'dark'
|
|
16335
16781
|
},
|
|
16336
|
-
prefix: 'mui',
|
|
16337
16782
|
resolveTheme: theme => {
|
|
16338
16783
|
const newTheme = _extends({}, theme, {
|
|
16339
16784
|
typography: createTypography(theme.palette, theme.typography)
|
|
@@ -16341,11 +16786,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16341
16786
|
|
|
16342
16787
|
return newTheme;
|
|
16343
16788
|
},
|
|
16344
|
-
shouldSkipGeneratingVar
|
|
16345
|
-
var _keys$;
|
|
16346
|
-
|
|
16347
|
-
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16348
|
-
}
|
|
16789
|
+
shouldSkipGeneratingVar
|
|
16349
16790
|
});
|
|
16350
16791
|
|
|
16351
16792
|
function getSvgIconUtilityClass(slot) {
|
|
@@ -18749,7 +19190,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18749
19190
|
const {
|
|
18750
19191
|
clientX,
|
|
18751
19192
|
clientY
|
|
18752
|
-
} = event.touches ? event.touches[0] : event;
|
|
19193
|
+
} = event.touches && event.touches.length > 0 ? event.touches[0] : event;
|
|
18753
19194
|
rippleX = Math.round(clientX - rect.left);
|
|
18754
19195
|
rippleY = Math.round(clientY - rect.top);
|
|
18755
19196
|
}
|
|
@@ -22589,7 +23030,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22589
23030
|
}
|
|
22590
23031
|
});
|
|
22591
23032
|
const Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
|
|
22592
|
-
var _componentsProps$clea, _componentsProps$pape;
|
|
23033
|
+
var _componentsProps$clea, _componentsProps$popu, _componentsProps$popp, _componentsProps$pape;
|
|
22593
23034
|
|
|
22594
23035
|
const props = useThemeProps({
|
|
22595
23036
|
props: inProps,
|
|
@@ -22697,7 +23138,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22697
23138
|
|
|
22698
23139
|
if (multiple && value.length > 0) {
|
|
22699
23140
|
const getCustomizedTagProps = params => _extends({
|
|
22700
|
-
className:
|
|
23141
|
+
className: classes.tag,
|
|
22701
23142
|
disabled
|
|
22702
23143
|
}, getTagProps(params));
|
|
22703
23144
|
|
|
@@ -22790,21 +23231,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22790
23231
|
disabled: disabled,
|
|
22791
23232
|
"aria-label": popupOpen ? closeText : openText,
|
|
22792
23233
|
title: popupOpen ? closeText : openText,
|
|
22793
|
-
|
|
22794
|
-
|
|
23234
|
+
ownerState: ownerState
|
|
23235
|
+
}, componentsProps.popupIndicator, {
|
|
23236
|
+
className: clsx(classes.popupIndicator, (_componentsProps$popu = componentsProps.popupIndicator) == null ? void 0 : _componentsProps$popu.className),
|
|
22795
23237
|
children: popupIcon
|
|
22796
23238
|
})) : null]
|
|
22797
23239
|
})
|
|
22798
23240
|
}),
|
|
22799
23241
|
inputProps: _extends({
|
|
22800
|
-
className:
|
|
23242
|
+
className: classes.input,
|
|
22801
23243
|
disabled,
|
|
22802
23244
|
readOnly
|
|
22803
23245
|
}, getInputProps())
|
|
22804
23246
|
})
|
|
22805
|
-
})), popupOpen && anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, {
|
|
23247
|
+
})), popupOpen && anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, _extends({
|
|
22806
23248
|
as: PopperComponent,
|
|
22807
|
-
className: clsx(classes.popper),
|
|
22808
23249
|
disablePortal: disablePortal,
|
|
22809
23250
|
style: {
|
|
22810
23251
|
width: anchorEl ? anchorEl.clientWidth : null
|
|
@@ -22812,7 +23253,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22812
23253
|
ownerState: ownerState,
|
|
22813
23254
|
role: "presentation",
|
|
22814
23255
|
anchorEl: anchorEl,
|
|
22815
|
-
open: true
|
|
23256
|
+
open: true
|
|
23257
|
+
}, componentsProps.popper, {
|
|
23258
|
+
className: clsx(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
|
|
22816
23259
|
children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, _extends({
|
|
22817
23260
|
ownerState: ownerState,
|
|
22818
23261
|
as: PaperComponent
|
|
@@ -22849,7 +23292,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22849
23292
|
})
|
|
22850
23293
|
})) : null]
|
|
22851
23294
|
}))
|
|
22852
|
-
}) : null]
|
|
23295
|
+
})) : null]
|
|
22853
23296
|
});
|
|
22854
23297
|
});
|
|
22855
23298
|
Autocomplete.propTypes
|
|
@@ -22951,7 +23394,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22951
23394
|
*/
|
|
22952
23395
|
componentsProps: PropTypes.shape({
|
|
22953
23396
|
clearIndicator: PropTypes.object,
|
|
22954
|
-
paper: PropTypes.object
|
|
23397
|
+
paper: PropTypes.object,
|
|
23398
|
+
popper: PropTypes.object,
|
|
23399
|
+
popupIndicator: PropTypes.object
|
|
22955
23400
|
}),
|
|
22956
23401
|
|
|
22957
23402
|
/**
|
|
@@ -23598,7 +24043,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23598
24043
|
var avatarGroupClasses$1 = avatarGroupClasses;
|
|
23599
24044
|
|
|
23600
24045
|
const _excluded$1L = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
|
|
23601
|
-
const SPACINGS$
|
|
24046
|
+
const SPACINGS$2 = {
|
|
23602
24047
|
small: -16,
|
|
23603
24048
|
medium: null
|
|
23604
24049
|
};
|
|
@@ -23694,7 +24139,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23694
24139
|
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
23695
24140
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
23696
24141
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
23697
|
-
const marginLeft = spacing && SPACINGS$
|
|
24142
|
+
const marginLeft = spacing && SPACINGS$2[spacing] !== undefined ? SPACINGS$2[spacing] : -spacing;
|
|
23698
24143
|
return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
|
|
23699
24144
|
ownerState: ownerState,
|
|
23700
24145
|
className: clsx(classes.root, className),
|
|
@@ -27738,11 +28183,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27738
28183
|
Backdrop: BackdropComponent
|
|
27739
28184
|
}, components),
|
|
27740
28185
|
componentsProps: {
|
|
27741
|
-
root: _extends({}, componentsProps.root, !isHostComponent(Root) && {
|
|
28186
|
+
root: () => _extends({}, resolveComponentProps(componentsProps.root, ownerState), !isHostComponent(Root) && {
|
|
27742
28187
|
as: component,
|
|
27743
28188
|
theme
|
|
27744
28189
|
}),
|
|
27745
|
-
backdrop: _extends({}, BackdropProps, componentsProps.backdrop)
|
|
28190
|
+
backdrop: () => _extends({}, BackdropProps, resolveComponentProps(componentsProps.backdrop, ownerState))
|
|
27746
28191
|
},
|
|
27747
28192
|
onTransitionEnter: () => setExited(false),
|
|
27748
28193
|
onTransitionExited: () => setExited(true),
|
|
@@ -27819,8 +28264,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27819
28264
|
* @default {}
|
|
27820
28265
|
*/
|
|
27821
28266
|
componentsProps: PropTypes.shape({
|
|
27822
|
-
backdrop: PropTypes.object,
|
|
27823
|
-
root: PropTypes.object
|
|
28267
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
28268
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
27824
28269
|
}),
|
|
27825
28270
|
|
|
27826
28271
|
/**
|
|
@@ -31344,15 +31789,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31344
31789
|
function getGridUtilityClass(slot) {
|
|
31345
31790
|
return generateUtilityClass('MuiGrid', slot);
|
|
31346
31791
|
}
|
|
31347
|
-
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
31348
|
-
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
31349
|
-
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
31350
|
-
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
31792
|
+
const SPACINGS$1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
31793
|
+
const DIRECTIONS$1 = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
31794
|
+
const WRAPS$1 = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
31795
|
+
const GRID_SIZES$1 = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
31351
31796
|
const gridClasses = generateUtilityClasses('MuiGrid', ['root', 'container', 'item', 'zeroMinWidth', // spacings
|
|
31352
|
-
...SPACINGS.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
31353
|
-
...DIRECTIONS.map(direction => `direction-xs-${direction}`), // wrap values
|
|
31354
|
-
...WRAPS.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
31355
|
-
...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}`)]);
|
|
31797
|
+
...SPACINGS$1.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
31798
|
+
...DIRECTIONS$1.map(direction => `direction-xs-${direction}`), // wrap values
|
|
31799
|
+
...WRAPS$1.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
31800
|
+
...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}`)]);
|
|
31356
31801
|
var gridClasses$1 = gridClasses;
|
|
31357
31802
|
|
|
31358
31803
|
const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
@@ -31899,6 +32344,52 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31899
32344
|
|
|
31900
32345
|
var Grid$1 = Grid;
|
|
31901
32346
|
|
|
32347
|
+
const Grid2 = createGrid({
|
|
32348
|
+
createStyledComponent: styled$1('div', {
|
|
32349
|
+
name: 'MuiGrid2',
|
|
32350
|
+
overridesResolver: (props, styles) => styles.root
|
|
32351
|
+
}),
|
|
32352
|
+
componentName: 'MuiGrid2',
|
|
32353
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
32354
|
+
useThemeProps: inProps => useThemeProps({
|
|
32355
|
+
props: inProps,
|
|
32356
|
+
name: 'MuiGrid2'
|
|
32357
|
+
})
|
|
32358
|
+
});
|
|
32359
|
+
Grid2.propTypes
|
|
32360
|
+
/* remove-proptypes */
|
|
32361
|
+
= {
|
|
32362
|
+
// ----------------------------- Warning --------------------------------
|
|
32363
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
32364
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
32365
|
+
// ----------------------------------------------------------------------
|
|
32366
|
+
|
|
32367
|
+
/**
|
|
32368
|
+
* The content of the component.
|
|
32369
|
+
*/
|
|
32370
|
+
children: PropTypes.node,
|
|
32371
|
+
|
|
32372
|
+
/**
|
|
32373
|
+
* @ignore
|
|
32374
|
+
*/
|
|
32375
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
32376
|
+
} ;
|
|
32377
|
+
var Grid2$1 = Grid2;
|
|
32378
|
+
|
|
32379
|
+
function getGrid2UtilityClass(slot) {
|
|
32380
|
+
return generateUtilityClass('MuiGrid2', slot);
|
|
32381
|
+
}
|
|
32382
|
+
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
32383
|
+
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
32384
|
+
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
32385
|
+
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
32386
|
+
const grid2Classes = generateUtilityClasses('MuiGrid2', ['root', 'container', 'item', 'zeroMinWidth', // spacings
|
|
32387
|
+
...SPACINGS.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
32388
|
+
...DIRECTIONS.map(direction => `direction-xs-${direction}`), // wrap values
|
|
32389
|
+
...WRAPS.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
32390
|
+
...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}`)]);
|
|
32391
|
+
var grid2Classes$1 = grid2Classes;
|
|
32392
|
+
|
|
31902
32393
|
const _excluded$1c = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
31903
32394
|
|
|
31904
32395
|
function getScale(value) {
|
|
@@ -40700,7 +41191,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40700
41191
|
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
40701
41192
|
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
40702
41193
|
*/
|
|
40703
|
-
enableColorScheme: PropTypes.bool
|
|
41194
|
+
enableColorScheme: PropTypes.bool,
|
|
41195
|
+
|
|
41196
|
+
/**
|
|
41197
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41198
|
+
*/
|
|
41199
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
40704
41200
|
} ;
|
|
40705
41201
|
var ScopedCssBaseline$1 = ScopedCssBaseline;
|
|
40706
41202
|
|
|
@@ -41698,7 +42194,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41698
42194
|
* If the value is an object it must have reference equality with the option in order to be selected.
|
|
41699
42195
|
* If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
|
|
41700
42196
|
*/
|
|
41701
|
-
value: PropTypes.any,
|
|
42197
|
+
value: PropTypes.oneOfType([PropTypes.oneOf(['']), PropTypes.any]),
|
|
41702
42198
|
|
|
41703
42199
|
/**
|
|
41704
42200
|
* The variant to use.
|
|
@@ -42209,7 +42705,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42209
42705
|
transition: theme.transitions.create(['transform'], {
|
|
42210
42706
|
duration: theme.transitions.duration.shortest
|
|
42211
42707
|
}),
|
|
42212
|
-
transformOrigin: 'bottom center',
|
|
42213
42708
|
transform: 'translateY(-100%) scale(0)',
|
|
42214
42709
|
position: 'absolute',
|
|
42215
42710
|
backgroundColor: (theme.vars || theme).palette.grey[600],
|
|
@@ -42221,6 +42716,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42221
42716
|
padding: '0.25rem 0.75rem'
|
|
42222
42717
|
}, ownerState.orientation === 'horizontal' && {
|
|
42223
42718
|
top: '-10px',
|
|
42719
|
+
transformOrigin: 'bottom center',
|
|
42224
42720
|
'&:before': {
|
|
42225
42721
|
position: 'absolute',
|
|
42226
42722
|
content: '""',
|
|
@@ -42233,7 +42729,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42233
42729
|
}
|
|
42234
42730
|
}, ownerState.orientation === 'vertical' && {
|
|
42235
42731
|
right: '30px',
|
|
42236
|
-
top: '
|
|
42732
|
+
top: '24px',
|
|
42733
|
+
transformOrigin: 'right center',
|
|
42237
42734
|
'&:before': {
|
|
42238
42735
|
position: 'absolute',
|
|
42239
42736
|
content: '""',
|
|
@@ -42719,7 +43216,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42719
43216
|
const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
|
|
42720
43217
|
const backgroundColor = emphasize(theme.palette.background.default, emphasis);
|
|
42721
43218
|
return _extends({}, theme.typography.body2, {
|
|
42722
|
-
color: theme.vars ? theme.vars.palette.
|
|
43219
|
+
color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
|
|
42723
43220
|
backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
|
|
42724
43221
|
display: 'flex',
|
|
42725
43222
|
alignItems: 'center',
|
|
@@ -44363,12 +44860,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44363
44860
|
const handleEnter = event => {
|
|
44364
44861
|
if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {
|
|
44365
44862
|
return;
|
|
44863
|
+
} // Workaround for https://github.com/facebook/react/issues/7769
|
|
44864
|
+
|
|
44865
|
+
|
|
44866
|
+
if (!childNode) {
|
|
44867
|
+
setChildNode(event.currentTarget);
|
|
44366
44868
|
} // Remove the title ahead of time.
|
|
44367
44869
|
// We don't want to wait for the next render commit.
|
|
44368
44870
|
// We would risk displaying two tooltips at the same time (native + this one).
|
|
44369
|
-
|
|
44370
|
-
|
|
44371
|
-
if (childNode) {
|
|
44871
|
+
else {
|
|
44372
44872
|
childNode.removeAttribute('title');
|
|
44373
44873
|
}
|
|
44374
44874
|
|
|
@@ -44413,8 +44913,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44413
44913
|
|
|
44414
44914
|
const handleFocus = event => {
|
|
44415
44915
|
// Workaround for https://github.com/facebook/react/issues/7769
|
|
44416
|
-
// The autoFocus of React might trigger the event before the componentDidMount.
|
|
44417
|
-
// We need to account for this eventuality.
|
|
44418
44916
|
if (!childNode) {
|
|
44419
44917
|
setChildNode(event.currentTarget);
|
|
44420
44918
|
}
|
|
@@ -51784,7 +52282,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51784
52282
|
exports.DialogTitle = DialogTitle$1;
|
|
51785
52283
|
exports.Divider = Divider$1;
|
|
51786
52284
|
exports.Drawer = Drawer$1;
|
|
51787
|
-
exports.Experimental_CssVarsProvider =
|
|
52285
|
+
exports.Experimental_CssVarsProvider = CssVarsProvider;
|
|
51788
52286
|
exports.Fab = Fab$1;
|
|
51789
52287
|
exports.Fade = Fade$1;
|
|
51790
52288
|
exports.FilledInput = FilledInput$1;
|
|
@@ -51886,6 +52384,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51886
52384
|
exports.Toolbar = Toolbar$1;
|
|
51887
52385
|
exports.Tooltip = Tooltip$1;
|
|
51888
52386
|
exports.Typography = Typography$1;
|
|
52387
|
+
exports.Unstable_Grid2 = Grid2$1;
|
|
51889
52388
|
exports.Zoom = Zoom$1;
|
|
51890
52389
|
exports.accordionActionsClasses = accordionActionsClasses$1;
|
|
51891
52390
|
exports.accordionClasses = accordionClasses$1;
|
|
@@ -51998,6 +52497,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51998
52497
|
exports.getFormGroupUtilityClass = getFormGroupUtilityClass;
|
|
51999
52498
|
exports.getFormHelperTextUtilityClasses = getFormHelperTextUtilityClasses;
|
|
52000
52499
|
exports.getFormLabelUtilityClasses = getFormLabelUtilityClasses;
|
|
52500
|
+
exports.getGrid2UtilityClass = getGrid2UtilityClass;
|
|
52001
52501
|
exports.getGridUtilityClass = getGridUtilityClass;
|
|
52002
52502
|
exports.getIconButtonUtilityClass = getIconButtonUtilityClass;
|
|
52003
52503
|
exports.getIconUtilityClass = getIconUtilityClass;
|
|
@@ -52070,6 +52570,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
52070
52570
|
exports.getTooltipUtilityClass = getTooltipUtilityClass;
|
|
52071
52571
|
exports.getTouchRippleUtilityClass = getTouchRippleUtilityClass;
|
|
52072
52572
|
exports.getTypographyUtilityClass = getTypographyUtilityClass;
|
|
52573
|
+
exports.grid2Classes = grid2Classes$1;
|
|
52073
52574
|
exports.gridClasses = gridClasses$1;
|
|
52074
52575
|
exports.hexToRgb = hexToRgb;
|
|
52075
52576
|
exports.hslToRgb = hslToRgb;
|
|
@@ -52118,6 +52619,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
52118
52619
|
exports.scopedCssBaselineClasses = scopedCssBaselineClasses$1;
|
|
52119
52620
|
exports.selectClasses = selectClasses$1;
|
|
52120
52621
|
exports.setRef = setRef;
|
|
52622
|
+
exports.shouldSkipGeneratingVar = shouldSkipGeneratingVar;
|
|
52121
52623
|
exports.skeletonClasses = skeletonClasses$1;
|
|
52122
52624
|
exports.sliderClasses = sliderClasses;
|
|
52123
52625
|
exports.snackbarClasses = snackbarClasses$1;
|