@mui/material 5.8.7 → 5.9.2
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.js +2 -2
- package/ButtonBase/TouchRipple.js +1 -1
- package/CHANGELOG.md +200 -4
- package/Dialog/Dialog.js +2 -1
- package/FormHelperText/FormHelperText.d.ts +7 -1
- package/FormHelperText/FormHelperText.js +3 -1
- package/ImageListItem/ImageListItem.js +4 -4
- package/Modal/Modal.d.ts +2 -1
- package/Modal/Modal.js +8 -7
- package/OverridableComponent.d.ts +4 -0
- package/Popper/Popper.d.ts +1 -6
- package/Popper/Popper.js +24 -0
- package/README.md +60 -26
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +6 -0
- package/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/Slider/Slider.js +3 -2
- package/Stack/Stack.js +13 -1
- package/Tabs/Tabs.d.ts +7 -1
- package/Tabs/Tabs.js +3 -1
- 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 +2 -2
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Dialog/Dialog.js +2 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -1
- package/legacy/ImageListItem/ImageListItem.js +4 -4
- package/legacy/Modal/Modal.js +15 -10
- package/legacy/Popper/Popper.js +24 -0
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/legacy/Slider/Slider.js +3 -2
- package/legacy/Stack/Stack.js +13 -1
- package/legacy/Tabs/Tabs.js +3 -1
- 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/modern/Autocomplete/Autocomplete.js +2 -2
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Dialog/Dialog.js +2 -1
- package/modern/FormHelperText/FormHelperText.js +3 -1
- package/modern/ImageListItem/ImageListItem.js +4 -4
- package/modern/Modal/Modal.js +8 -7
- package/modern/Popper/Popper.js +24 -0
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/modern/Slider/Slider.js +3 -2
- package/modern/Stack/Stack.js +13 -1
- package/modern/Tabs/Tabs.js +3 -1
- 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/node/Autocomplete/Autocomplete.js +2 -2
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/Dialog/Dialog.js +2 -1
- package/node/FormHelperText/FormHelperText.js +3 -1
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/Modal/Modal.js +11 -10
- package/node/Popper/Popper.js +24 -0
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +6 -1
- package/node/Slider/Slider.js +3 -2
- package/node/Stack/Stack.js +13 -1
- package/node/Tabs/Tabs.js +3 -1
- 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/package.json +7 -7
- package/styles/components.d.ts +5 -0
- package/styles/createTheme.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +84 -7
- 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 +4 -8
- package/umd/material-ui.development.js +885 -290
- package/umd/material-ui.production.min.js +20 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.
|
|
1
|
+
/** @license MUI v5.9.2
|
|
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.
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
return StyleSheet;
|
|
660
660
|
}();
|
|
661
661
|
|
|
662
|
-
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 ""}))}}
|
|
663
663
|
|
|
664
664
|
var weakMemoize = function weakMemoize(func) {
|
|
665
665
|
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
@@ -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
|
|
|
@@ -3367,13 +3356,7 @@
|
|
|
3367
3356
|
propTypes.oneOfType;
|
|
3368
3357
|
propTypes.element;
|
|
3369
3358
|
|
|
3370
|
-
|
|
3371
|
-
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};
|
|
3372
|
-
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;
|
|
3373
|
-
});
|
|
3374
|
-
reactJsxRuntime_production_min.Fragment;
|
|
3375
|
-
reactJsxRuntime_production_min.jsx;
|
|
3376
|
-
reactJsxRuntime_production_min.jsxs;
|
|
3359
|
+
React__default["default"].__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
|
3377
3360
|
|
|
3378
3361
|
var reactJsxRuntime_development = createCommonjsModule(function (module, exports) {
|
|
3379
3362
|
|
|
@@ -3381,56 +3364,25 @@
|
|
|
3381
3364
|
(function() {
|
|
3382
3365
|
|
|
3383
3366
|
var React = React__default["default"];
|
|
3384
|
-
var _assign = objectAssign;
|
|
3385
3367
|
|
|
3386
3368
|
// ATTENTION
|
|
3387
3369
|
// When adding new symbols to this file,
|
|
3388
3370
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
3389
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
3390
|
-
|
|
3391
|
-
var
|
|
3392
|
-
var
|
|
3393
|
-
|
|
3394
|
-
var
|
|
3395
|
-
var
|
|
3396
|
-
var
|
|
3397
|
-
var
|
|
3398
|
-
var
|
|
3399
|
-
var
|
|
3400
|
-
var
|
|
3401
|
-
var
|
|
3402
|
-
var
|
|
3403
|
-
var
|
|
3404
|
-
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
|
3405
|
-
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
|
3406
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
3407
|
-
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
|
3408
|
-
|
|
3409
|
-
if (typeof Symbol === 'function' && Symbol.for) {
|
|
3410
|
-
var symbolFor = Symbol.for;
|
|
3411
|
-
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
3412
|
-
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
3413
|
-
exports.Fragment = symbolFor('react.fragment');
|
|
3414
|
-
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
|
3415
|
-
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
|
3416
|
-
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
3417
|
-
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
3418
|
-
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
3419
|
-
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
|
3420
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
|
3421
|
-
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
3422
|
-
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
3423
|
-
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
3424
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
3425
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
3426
|
-
symbolFor('react.scope');
|
|
3427
|
-
symbolFor('react.opaque.id');
|
|
3428
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
|
|
3429
|
-
symbolFor('react.offscreen');
|
|
3430
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
|
3431
|
-
}
|
|
3432
|
-
|
|
3433
|
-
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;
|
|
3434
3386
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
3435
3387
|
function getIteratorFn(maybeIterable) {
|
|
3436
3388
|
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
|
@@ -3450,11 +3402,13 @@
|
|
|
3450
3402
|
|
|
3451
3403
|
function error(format) {
|
|
3452
3404
|
{
|
|
3453
|
-
|
|
3454
|
-
args
|
|
3455
|
-
|
|
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
|
+
}
|
|
3456
3409
|
|
|
3457
|
-
|
|
3410
|
+
printWarning('error', format, args);
|
|
3411
|
+
}
|
|
3458
3412
|
}
|
|
3459
3413
|
}
|
|
3460
3414
|
|
|
@@ -3468,10 +3422,11 @@
|
|
|
3468
3422
|
if (stack !== '') {
|
|
3469
3423
|
format += '%s';
|
|
3470
3424
|
args = args.concat([stack]);
|
|
3471
|
-
}
|
|
3425
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
3426
|
+
|
|
3472
3427
|
|
|
3473
3428
|
var argsWithFormat = args.map(function (item) {
|
|
3474
|
-
return
|
|
3429
|
+
return String(item);
|
|
3475
3430
|
}); // Careful: RN currently depends on this prefix
|
|
3476
3431
|
|
|
3477
3432
|
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
|
|
@@ -3482,9 +3437,23 @@
|
|
|
3482
3437
|
}
|
|
3483
3438
|
}
|
|
3484
3439
|
|
|
3485
|
-
//
|
|
3440
|
+
// -----------------------------------------------------------------------------
|
|
3486
3441
|
|
|
3487
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
|
+
}
|
|
3488
3457
|
|
|
3489
3458
|
function isValidElementType(type) {
|
|
3490
3459
|
if (typeof type === 'string' || typeof type === 'function') {
|
|
@@ -3492,12 +3461,16 @@
|
|
|
3492
3461
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
3493
3462
|
|
|
3494
3463
|
|
|
3495
|
-
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 ) {
|
|
3496
3465
|
return true;
|
|
3497
3466
|
}
|
|
3498
3467
|
|
|
3499
3468
|
if (typeof type === 'object' && type !== null) {
|
|
3500
|
-
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) {
|
|
3501
3474
|
return true;
|
|
3502
3475
|
}
|
|
3503
3476
|
}
|
|
@@ -3506,15 +3479,23 @@
|
|
|
3506
3479
|
}
|
|
3507
3480
|
|
|
3508
3481
|
function getWrappedName(outerType, innerType, wrapperName) {
|
|
3482
|
+
var displayName = outerType.displayName;
|
|
3483
|
+
|
|
3484
|
+
if (displayName) {
|
|
3485
|
+
return displayName;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3509
3488
|
var functionName = innerType.displayName || innerType.name || '';
|
|
3510
|
-
return
|
|
3511
|
-
}
|
|
3489
|
+
return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
3490
|
+
} // Keep in sync with react-reconciler/getComponentNameFromFiber
|
|
3491
|
+
|
|
3512
3492
|
|
|
3513
3493
|
function getContextName(type) {
|
|
3514
3494
|
return type.displayName || 'Context';
|
|
3515
|
-
}
|
|
3495
|
+
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
|
|
3496
|
+
|
|
3516
3497
|
|
|
3517
|
-
function
|
|
3498
|
+
function getComponentNameFromType(type) {
|
|
3518
3499
|
if (type == null) {
|
|
3519
3500
|
// Host root, text node or just invalid type.
|
|
3520
3501
|
return null;
|
|
@@ -3522,7 +3503,7 @@
|
|
|
3522
3503
|
|
|
3523
3504
|
{
|
|
3524
3505
|
if (typeof type.tag === 'number') {
|
|
3525
|
-
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.');
|
|
3526
3507
|
}
|
|
3527
3508
|
}
|
|
3528
3509
|
|
|
@@ -3535,7 +3516,7 @@
|
|
|
3535
3516
|
}
|
|
3536
3517
|
|
|
3537
3518
|
switch (type) {
|
|
3538
|
-
case
|
|
3519
|
+
case REACT_FRAGMENT_TYPE:
|
|
3539
3520
|
return 'Fragment';
|
|
3540
3521
|
|
|
3541
3522
|
case REACT_PORTAL_TYPE:
|
|
@@ -3552,6 +3533,7 @@
|
|
|
3552
3533
|
|
|
3553
3534
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
3554
3535
|
return 'SuspenseList';
|
|
3536
|
+
|
|
3555
3537
|
}
|
|
3556
3538
|
|
|
3557
3539
|
if (typeof type === 'object') {
|
|
@@ -3568,10 +3550,13 @@
|
|
|
3568
3550
|
return getWrappedName(type, type.render, 'ForwardRef');
|
|
3569
3551
|
|
|
3570
3552
|
case REACT_MEMO_TYPE:
|
|
3571
|
-
|
|
3553
|
+
var outerName = type.displayName || null;
|
|
3554
|
+
|
|
3555
|
+
if (outerName !== null) {
|
|
3556
|
+
return outerName;
|
|
3557
|
+
}
|
|
3572
3558
|
|
|
3573
|
-
|
|
3574
|
-
return getComponentName(type._render);
|
|
3559
|
+
return getComponentNameFromType(type.type) || 'Memo';
|
|
3575
3560
|
|
|
3576
3561
|
case REACT_LAZY_TYPE:
|
|
3577
3562
|
{
|
|
@@ -3580,17 +3565,21 @@
|
|
|
3580
3565
|
var init = lazyComponent._init;
|
|
3581
3566
|
|
|
3582
3567
|
try {
|
|
3583
|
-
return
|
|
3568
|
+
return getComponentNameFromType(init(payload));
|
|
3584
3569
|
} catch (x) {
|
|
3585
3570
|
return null;
|
|
3586
3571
|
}
|
|
3587
3572
|
}
|
|
3573
|
+
|
|
3574
|
+
// eslint-disable-next-line no-fallthrough
|
|
3588
3575
|
}
|
|
3589
3576
|
}
|
|
3590
3577
|
|
|
3591
3578
|
return null;
|
|
3592
3579
|
}
|
|
3593
3580
|
|
|
3581
|
+
var assign = Object.assign;
|
|
3582
|
+
|
|
3594
3583
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
3595
3584
|
// replaying on render function. This currently only patches the object
|
|
3596
3585
|
// lazily which won't cover if the log function was extracted eagerly.
|
|
@@ -3654,25 +3643,25 @@
|
|
|
3654
3643
|
}; // $FlowFixMe Flow thinks console is immutable.
|
|
3655
3644
|
|
|
3656
3645
|
Object.defineProperties(console, {
|
|
3657
|
-
log:
|
|
3646
|
+
log: assign({}, props, {
|
|
3658
3647
|
value: prevLog
|
|
3659
3648
|
}),
|
|
3660
|
-
info:
|
|
3649
|
+
info: assign({}, props, {
|
|
3661
3650
|
value: prevInfo
|
|
3662
3651
|
}),
|
|
3663
|
-
warn:
|
|
3652
|
+
warn: assign({}, props, {
|
|
3664
3653
|
value: prevWarn
|
|
3665
3654
|
}),
|
|
3666
|
-
error:
|
|
3655
|
+
error: assign({}, props, {
|
|
3667
3656
|
value: prevError
|
|
3668
3657
|
}),
|
|
3669
|
-
group:
|
|
3658
|
+
group: assign({}, props, {
|
|
3670
3659
|
value: prevGroup
|
|
3671
3660
|
}),
|
|
3672
|
-
groupCollapsed:
|
|
3661
|
+
groupCollapsed: assign({}, props, {
|
|
3673
3662
|
value: prevGroupCollapsed
|
|
3674
3663
|
}),
|
|
3675
|
-
groupEnd:
|
|
3664
|
+
groupEnd: assign({}, props, {
|
|
3676
3665
|
value: prevGroupEnd
|
|
3677
3666
|
})
|
|
3678
3667
|
});
|
|
@@ -3713,7 +3702,7 @@
|
|
|
3713
3702
|
|
|
3714
3703
|
function describeNativeComponentFrame(fn, construct) {
|
|
3715
3704
|
// If something asked for a stack inside a fake render, it should get ignored.
|
|
3716
|
-
if (!fn || reentry) {
|
|
3705
|
+
if ( !fn || reentry) {
|
|
3717
3706
|
return '';
|
|
3718
3707
|
}
|
|
3719
3708
|
|
|
@@ -3822,7 +3811,14 @@
|
|
|
3822
3811
|
|
|
3823
3812
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
3824
3813
|
// V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
|
|
3825
|
-
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
|
+
}
|
|
3826
3822
|
|
|
3827
3823
|
{
|
|
3828
3824
|
if (typeof fn === 'function') {
|
|
@@ -3907,9 +3903,6 @@
|
|
|
3907
3903
|
// Memo may contain any component type so we recursively resolve it.
|
|
3908
3904
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
3909
3905
|
|
|
3910
|
-
case REACT_BLOCK_TYPE:
|
|
3911
|
-
return describeFunctionComponentFrame(type._render);
|
|
3912
|
-
|
|
3913
3906
|
case REACT_LAZY_TYPE:
|
|
3914
3907
|
{
|
|
3915
3908
|
var lazyComponent = type;
|
|
@@ -3927,6 +3920,8 @@
|
|
|
3927
3920
|
return '';
|
|
3928
3921
|
}
|
|
3929
3922
|
|
|
3923
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3924
|
+
|
|
3930
3925
|
var loggedTypeFailures = {};
|
|
3931
3926
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3932
3927
|
|
|
@@ -3945,7 +3940,7 @@
|
|
|
3945
3940
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
3946
3941
|
{
|
|
3947
3942
|
// $FlowFixMe This is okay but Flow doesn't know it.
|
|
3948
|
-
var has = Function.call.bind(
|
|
3943
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
3949
3944
|
|
|
3950
3945
|
for (var typeSpecName in typeSpecs) {
|
|
3951
3946
|
if (has(typeSpecs, typeSpecName)) {
|
|
@@ -3957,6 +3952,7 @@
|
|
|
3957
3952
|
// This is intentionally an invariant that gets caught. It's the same
|
|
3958
3953
|
// behavior as without this statement except with a better message.
|
|
3959
3954
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
3955
|
+
// eslint-disable-next-line react-internal/prod-error-codes
|
|
3960
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`.');
|
|
3961
3957
|
err.name = 'Invariant Violation';
|
|
3962
3958
|
throw err;
|
|
@@ -3990,8 +3986,80 @@
|
|
|
3990
3986
|
}
|
|
3991
3987
|
}
|
|
3992
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
|
+
|
|
3993
4062
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
3994
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3995
4063
|
var RESERVED_PROPS = {
|
|
3996
4064
|
key: true,
|
|
3997
4065
|
ref: true,
|
|
@@ -4037,10 +4105,10 @@
|
|
|
4037
4105
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
4038
4106
|
{
|
|
4039
4107
|
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
4040
|
-
var componentName =
|
|
4108
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
4041
4109
|
|
|
4042
4110
|
if (!didWarnAboutStringRefs[componentName]) {
|
|
4043
|
-
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);
|
|
4044
4112
|
|
|
4045
4113
|
didWarnAboutStringRefs[componentName] = true;
|
|
4046
4114
|
}
|
|
@@ -4179,10 +4247,18 @@
|
|
|
4179
4247
|
// key is explicitly declared to be undefined or not.
|
|
4180
4248
|
|
|
4181
4249
|
if (maybeKey !== undefined) {
|
|
4250
|
+
{
|
|
4251
|
+
checkKeyStringCoercion(maybeKey);
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4182
4254
|
key = '' + maybeKey;
|
|
4183
4255
|
}
|
|
4184
4256
|
|
|
4185
4257
|
if (hasValidKey(config)) {
|
|
4258
|
+
{
|
|
4259
|
+
checkKeyStringCoercion(config.key);
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4186
4262
|
key = '' + config.key;
|
|
4187
4263
|
}
|
|
4188
4264
|
|
|
@@ -4253,6 +4329,7 @@
|
|
|
4253
4329
|
* @final
|
|
4254
4330
|
*/
|
|
4255
4331
|
|
|
4332
|
+
|
|
4256
4333
|
function isValidElement(object) {
|
|
4257
4334
|
{
|
|
4258
4335
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
@@ -4262,7 +4339,7 @@
|
|
|
4262
4339
|
function getDeclarationErrorAddendum() {
|
|
4263
4340
|
{
|
|
4264
4341
|
if (ReactCurrentOwner$1.current) {
|
|
4265
|
-
var name =
|
|
4342
|
+
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
4266
4343
|
|
|
4267
4344
|
if (name) {
|
|
4268
4345
|
return '\n\nCheck the render method of `' + name + '`.';
|
|
@@ -4342,7 +4419,7 @@
|
|
|
4342
4419
|
|
|
4343
4420
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
4344
4421
|
// Give the component that originally created this child.
|
|
4345
|
-
childOwner = " It was passed a child from " +
|
|
4422
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
4346
4423
|
}
|
|
4347
4424
|
|
|
4348
4425
|
setCurrentlyValidatingElement$1(element);
|
|
@@ -4369,7 +4446,7 @@
|
|
|
4369
4446
|
return;
|
|
4370
4447
|
}
|
|
4371
4448
|
|
|
4372
|
-
if (
|
|
4449
|
+
if (isArray(node)) {
|
|
4373
4450
|
for (var i = 0; i < node.length; i++) {
|
|
4374
4451
|
var child = node[i];
|
|
4375
4452
|
|
|
@@ -4432,12 +4509,12 @@
|
|
|
4432
4509
|
|
|
4433
4510
|
if (propTypes) {
|
|
4434
4511
|
// Intentionally inside to avoid triggering lazy initializers:
|
|
4435
|
-
var name =
|
|
4512
|
+
var name = getComponentNameFromType(type);
|
|
4436
4513
|
checkPropTypes(propTypes, element.props, 'prop', name, element);
|
|
4437
4514
|
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
4438
4515
|
propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
|
|
4439
4516
|
|
|
4440
|
-
var _name =
|
|
4517
|
+
var _name = getComponentNameFromType(type);
|
|
4441
4518
|
|
|
4442
4519
|
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
|
|
4443
4520
|
}
|
|
@@ -4504,10 +4581,10 @@
|
|
|
4504
4581
|
|
|
4505
4582
|
if (type === null) {
|
|
4506
4583
|
typeString = 'null';
|
|
4507
|
-
} else if (
|
|
4584
|
+
} else if (isArray(type)) {
|
|
4508
4585
|
typeString = 'array';
|
|
4509
4586
|
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
4510
|
-
typeString = "<" + (
|
|
4587
|
+
typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
|
|
4511
4588
|
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
4512
4589
|
} else {
|
|
4513
4590
|
typeString = typeof type;
|
|
@@ -4533,7 +4610,7 @@
|
|
|
4533
4610
|
|
|
4534
4611
|
if (children !== undefined) {
|
|
4535
4612
|
if (isStaticChildren) {
|
|
4536
|
-
if (
|
|
4613
|
+
if (isArray(children)) {
|
|
4537
4614
|
for (var i = 0; i < children.length; i++) {
|
|
4538
4615
|
validateChildKeys(children[i], type);
|
|
4539
4616
|
}
|
|
@@ -4550,7 +4627,7 @@
|
|
|
4550
4627
|
}
|
|
4551
4628
|
}
|
|
4552
4629
|
|
|
4553
|
-
if (type ===
|
|
4630
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
4554
4631
|
validateFragmentProps(element);
|
|
4555
4632
|
} else {
|
|
4556
4633
|
validatePropTypes(element);
|
|
@@ -4579,6 +4656,7 @@
|
|
|
4579
4656
|
|
|
4580
4657
|
var jsxs = jsxWithValidationStatic ;
|
|
4581
4658
|
|
|
4659
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
4582
4660
|
exports.jsx = jsx;
|
|
4583
4661
|
exports.jsxs = jsxs;
|
|
4584
4662
|
})();
|
|
@@ -5623,7 +5701,7 @@
|
|
|
5623
5701
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
5624
5702
|
var _breakpointsInput$key;
|
|
5625
5703
|
|
|
5626
|
-
const breakpointsInOrder =
|
|
5704
|
+
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
|
|
5627
5705
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
5628
5706
|
acc[breakpointStyleKey] = {};
|
|
5629
5707
|
return acc;
|
|
@@ -6461,7 +6539,7 @@
|
|
|
6461
6539
|
styleFunctionSx.filterProps = ['sx'];
|
|
6462
6540
|
var defaultStyleFunctionSx = styleFunctionSx;
|
|
6463
6541
|
|
|
6464
|
-
const _excluded$
|
|
6542
|
+
const _excluded$2n = ["sx"];
|
|
6465
6543
|
|
|
6466
6544
|
const splitProps = props => {
|
|
6467
6545
|
const result = {
|
|
@@ -6482,7 +6560,7 @@
|
|
|
6482
6560
|
const {
|
|
6483
6561
|
sx: inSx
|
|
6484
6562
|
} = props,
|
|
6485
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6563
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2n);
|
|
6486
6564
|
|
|
6487
6565
|
const {
|
|
6488
6566
|
systemProps,
|
|
@@ -6520,48 +6598,9 @@
|
|
|
6520
6598
|
});
|
|
6521
6599
|
}
|
|
6522
6600
|
|
|
6523
|
-
function
|
|
6524
|
-
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}
|
|
6525
6602
|
|
|
6526
|
-
|
|
6527
|
-
str += mix;
|
|
6528
|
-
} else if (typeof mix === 'object') {
|
|
6529
|
-
if (Array.isArray(mix)) {
|
|
6530
|
-
for (k=0; k < mix.length; k++) {
|
|
6531
|
-
if (mix[k]) {
|
|
6532
|
-
if (y = toVal(mix[k])) {
|
|
6533
|
-
str && (str += ' ');
|
|
6534
|
-
str += y;
|
|
6535
|
-
}
|
|
6536
|
-
}
|
|
6537
|
-
}
|
|
6538
|
-
} else {
|
|
6539
|
-
for (k in mix) {
|
|
6540
|
-
if (mix[k]) {
|
|
6541
|
-
str && (str += ' ');
|
|
6542
|
-
str += k;
|
|
6543
|
-
}
|
|
6544
|
-
}
|
|
6545
|
-
}
|
|
6546
|
-
}
|
|
6547
|
-
|
|
6548
|
-
return str;
|
|
6549
|
-
}
|
|
6550
|
-
|
|
6551
|
-
function clsx() {
|
|
6552
|
-
var i=0, tmp, x, str='';
|
|
6553
|
-
while (i < arguments.length) {
|
|
6554
|
-
if (tmp = arguments[i++]) {
|
|
6555
|
-
if (x = toVal(tmp)) {
|
|
6556
|
-
str && (str += ' ');
|
|
6557
|
-
str += x;
|
|
6558
|
-
}
|
|
6559
|
-
}
|
|
6560
|
-
}
|
|
6561
|
-
return str;
|
|
6562
|
-
}
|
|
6563
|
-
|
|
6564
|
-
const _excluded$2l = ["values", "unit", "step"];
|
|
6603
|
+
const _excluded$2m = ["values", "unit", "step"];
|
|
6565
6604
|
|
|
6566
6605
|
const sortBreakpointsValues = values => {
|
|
6567
6606
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
@@ -6597,7 +6636,7 @@
|
|
|
6597
6636
|
unit = 'px',
|
|
6598
6637
|
step = 5
|
|
6599
6638
|
} = breakpoints,
|
|
6600
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6639
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2m);
|
|
6601
6640
|
|
|
6602
6641
|
const sortedValues = sortBreakpointsValues(values);
|
|
6603
6642
|
const keys = Object.keys(sortedValues);
|
|
@@ -6689,7 +6728,7 @@
|
|
|
6689
6728
|
return spacing;
|
|
6690
6729
|
}
|
|
6691
6730
|
|
|
6692
|
-
const _excluded$
|
|
6731
|
+
const _excluded$2l = ["breakpoints", "palette", "spacing", "shape"];
|
|
6693
6732
|
|
|
6694
6733
|
function createTheme$1(options = {}, ...args) {
|
|
6695
6734
|
const {
|
|
@@ -6698,7 +6737,7 @@
|
|
|
6698
6737
|
spacing: spacingInput,
|
|
6699
6738
|
shape: shapeInput = {}
|
|
6700
6739
|
} = options,
|
|
6701
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6740
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2l);
|
|
6702
6741
|
|
|
6703
6742
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
6704
6743
|
const spacing = createSpacing(spacingInput);
|
|
@@ -6820,7 +6859,7 @@
|
|
|
6820
6859
|
return useTheme$2(defaultTheme);
|
|
6821
6860
|
}
|
|
6822
6861
|
|
|
6823
|
-
const _excluded$
|
|
6862
|
+
const _excluded$2k = ["className", "component"];
|
|
6824
6863
|
function createBox(options = {}) {
|
|
6825
6864
|
const {
|
|
6826
6865
|
defaultTheme,
|
|
@@ -6837,7 +6876,7 @@
|
|
|
6837
6876
|
className,
|
|
6838
6877
|
component = 'div'
|
|
6839
6878
|
} = _extendSxProp,
|
|
6840
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
6879
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2k);
|
|
6841
6880
|
|
|
6842
6881
|
return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
|
|
6843
6882
|
as: component,
|
|
@@ -6849,7 +6888,7 @@
|
|
|
6849
6888
|
return Box;
|
|
6850
6889
|
}
|
|
6851
6890
|
|
|
6852
|
-
const _excluded$
|
|
6891
|
+
const _excluded$2j = ["variant"];
|
|
6853
6892
|
|
|
6854
6893
|
function isEmpty$3(string) {
|
|
6855
6894
|
return string.length === 0;
|
|
@@ -6865,7 +6904,7 @@
|
|
|
6865
6904
|
const {
|
|
6866
6905
|
variant
|
|
6867
6906
|
} = props,
|
|
6868
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6907
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2j);
|
|
6869
6908
|
|
|
6870
6909
|
let classKey = variant || '';
|
|
6871
6910
|
Object.keys(other).sort().forEach(key => {
|
|
@@ -6878,7 +6917,7 @@
|
|
|
6878
6917
|
return classKey;
|
|
6879
6918
|
}
|
|
6880
6919
|
|
|
6881
|
-
const _excluded$
|
|
6920
|
+
const _excluded$2i = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6882
6921
|
_excluded2$c = ["theme"],
|
|
6883
6922
|
_excluded3$1 = ["theme"];
|
|
6884
6923
|
|
|
@@ -6961,7 +7000,7 @@
|
|
|
6961
7000
|
skipSx: inputSkipSx,
|
|
6962
7001
|
overridesResolver
|
|
6963
7002
|
} = inputOptions,
|
|
6964
|
-
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.
|
|
6965
7004
|
|
|
6966
7005
|
|
|
6967
7006
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -7824,7 +7863,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7824
7863
|
const handleMediaQuery = React__namespace.useCallback(e => {
|
|
7825
7864
|
if (state.mode === 'system') {
|
|
7826
7865
|
setState(currentState => _extends({}, currentState, {
|
|
7827
|
-
systemMode: e.matches ? 'dark' : 'light'
|
|
7866
|
+
systemMode: e != null && e.matches ? 'dark' : 'light'
|
|
7828
7867
|
}));
|
|
7829
7868
|
}
|
|
7830
7869
|
}, [state.mode]); // Ref hack to avoid adding handleMediaQuery as a dep
|
|
@@ -7897,7 +7936,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7897
7936
|
});
|
|
7898
7937
|
}
|
|
7899
7938
|
|
|
7900
|
-
const _excluded$
|
|
7939
|
+
const _excluded$2h = ["colorSchemes", "components", "cssVarPrefix"];
|
|
7901
7940
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
7902
7941
|
function createCssVarsProvider(options) {
|
|
7903
7942
|
const {
|
|
@@ -7952,7 +7991,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7952
7991
|
components = {},
|
|
7953
7992
|
cssVarPrefix
|
|
7954
7993
|
} = themeProp,
|
|
7955
|
-
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$
|
|
7994
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2h);
|
|
7956
7995
|
|
|
7957
7996
|
const allColorSchemes = Object.keys(colorSchemes);
|
|
7958
7997
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
@@ -8234,9 +8273,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8234
8273
|
return getCssVar;
|
|
8235
8274
|
}
|
|
8236
8275
|
|
|
8237
|
-
const _excluded$
|
|
8238
|
-
const defaultTheme$
|
|
8239
|
-
const defaultCreateStyledComponent = systemStyled('div', {
|
|
8276
|
+
const _excluded$2g = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
|
|
8277
|
+
const defaultTheme$5 = createTheme$1();
|
|
8278
|
+
const defaultCreateStyledComponent$1 = systemStyled('div', {
|
|
8240
8279
|
name: 'MuiContainer',
|
|
8241
8280
|
slot: 'Root',
|
|
8242
8281
|
overridesResolver: (props, styles) => {
|
|
@@ -8247,13 +8286,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8247
8286
|
}
|
|
8248
8287
|
});
|
|
8249
8288
|
|
|
8250
|
-
const useThemePropsDefault = inProps => useThemeProps$1({
|
|
8289
|
+
const useThemePropsDefault$1 = inProps => useThemeProps$1({
|
|
8251
8290
|
props: inProps,
|
|
8252
8291
|
name: 'MuiContainer',
|
|
8253
|
-
defaultTheme: defaultTheme$
|
|
8292
|
+
defaultTheme: defaultTheme$5
|
|
8254
8293
|
});
|
|
8255
8294
|
|
|
8256
|
-
const useUtilityClasses$
|
|
8295
|
+
const useUtilityClasses$1Q = (ownerState, componentName) => {
|
|
8257
8296
|
const getContainerUtilityClass = slot => {
|
|
8258
8297
|
return generateUtilityClass(componentName, slot);
|
|
8259
8298
|
};
|
|
@@ -8273,8 +8312,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8273
8312
|
function createContainer(options = {}) {
|
|
8274
8313
|
const {
|
|
8275
8314
|
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
8276
|
-
createStyledComponent = defaultCreateStyledComponent,
|
|
8277
|
-
useThemeProps = useThemePropsDefault,
|
|
8315
|
+
createStyledComponent = defaultCreateStyledComponent$1,
|
|
8316
|
+
useThemeProps = useThemePropsDefault$1,
|
|
8278
8317
|
componentName = 'MuiContainer'
|
|
8279
8318
|
} = options;
|
|
8280
8319
|
const ContainerRoot = createStyledComponent(({
|
|
@@ -8336,7 +8375,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8336
8375
|
fixed = false,
|
|
8337
8376
|
maxWidth = 'lg'
|
|
8338
8377
|
} = props,
|
|
8339
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8378
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2g);
|
|
8340
8379
|
|
|
8341
8380
|
const ownerState = _extends({}, props, {
|
|
8342
8381
|
component,
|
|
@@ -8346,7 +8385,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8346
8385
|
}); // @ts-ignore module augmentation fails if custom breakpoints are used
|
|
8347
8386
|
|
|
8348
8387
|
|
|
8349
|
-
const classes = useUtilityClasses$
|
|
8388
|
+
const classes = useUtilityClasses$1Q(ownerState, componentName);
|
|
8350
8389
|
return (
|
|
8351
8390
|
/*#__PURE__*/
|
|
8352
8391
|
// @ts-ignore theme is injected by the styled util
|
|
@@ -8376,6 +8415,407 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8376
8415
|
return Container;
|
|
8377
8416
|
}
|
|
8378
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
|
+
|
|
8379
8819
|
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
8380
8820
|
_excluded2$b = ["type", "mode"];
|
|
8381
8821
|
function adaptV4Theme(inputTheme) {
|
|
@@ -8586,8 +9026,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8586
9026
|
const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));
|
|
8587
9027
|
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
|
8588
9028
|
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
|
8589
|
-
const internalSlotProps = getSlotProps(eventHandlers);
|
|
8590
|
-
|
|
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);
|
|
8591
9035
|
|
|
8592
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);
|
|
8593
9037
|
|
|
@@ -8627,11 +9071,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8627
9071
|
rest = _objectWithoutPropertiesLoose(parameters, _excluded$2d);
|
|
8628
9072
|
|
|
8629
9073
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
8630
|
-
const
|
|
9074
|
+
const {
|
|
9075
|
+
props: mergedProps,
|
|
9076
|
+
internalRef
|
|
9077
|
+
} = mergeSlotProps(_extends({}, rest, {
|
|
8631
9078
|
externalSlotProps: resolvedComponentsProps
|
|
8632
9079
|
}));
|
|
8633
|
-
const
|
|
8634
|
-
|
|
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
|
|
8635
9083
|
}), ownerState);
|
|
8636
9084
|
return props;
|
|
8637
9085
|
}
|
|
@@ -9199,7 +9647,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9199
9647
|
option
|
|
9200
9648
|
});
|
|
9201
9649
|
|
|
9202
|
-
if (!disableCloseOnSelect && !event.ctrlKey && !event.metaKey) {
|
|
9650
|
+
if (!disableCloseOnSelect && (!event || !event.ctrlKey && !event.metaKey)) {
|
|
9203
9651
|
handleClose(event, reason);
|
|
9204
9652
|
}
|
|
9205
9653
|
|
|
@@ -9711,7 +10159,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9711
10159
|
|
|
9712
10160
|
const _excluded$2c = ["badgeContent", "component", "children", "components", "componentsProps", "invisible", "max", "showZero"];
|
|
9713
10161
|
|
|
9714
|
-
const useUtilityClasses$
|
|
10162
|
+
const useUtilityClasses$1P = ownerState => {
|
|
9715
10163
|
const {
|
|
9716
10164
|
invisible
|
|
9717
10165
|
} = ownerState;
|
|
@@ -9760,7 +10208,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9760
10208
|
showZero
|
|
9761
10209
|
});
|
|
9762
10210
|
|
|
9763
|
-
const classes = useUtilityClasses$
|
|
10211
|
+
const classes = useUtilityClasses$1P(ownerState);
|
|
9764
10212
|
const Root = component || components.Root || 'span';
|
|
9765
10213
|
const rootProps = useSlotProps({
|
|
9766
10214
|
elementType: Root,
|
|
@@ -12079,7 +12527,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12079
12527
|
|
|
12080
12528
|
var Portal$1 = Portal;
|
|
12081
12529
|
|
|
12082
|
-
|
|
12530
|
+
function getPopperUnstyledUtilityClass(slot) {
|
|
12531
|
+
return generateUtilityClass('MuiPopperUnstyled', slot);
|
|
12532
|
+
}
|
|
12533
|
+
generateUtilityClasses('MuiPopperUnstyled', ['root']);
|
|
12534
|
+
|
|
12535
|
+
const _excluded$2b = ["anchorEl", "children", "component", "components", "componentsProps", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
|
|
12083
12536
|
_excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
|
|
12084
12537
|
|
|
12085
12538
|
function flipPlacement(placement, direction) {
|
|
@@ -12109,17 +12562,30 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12109
12562
|
return typeof anchorEl === 'function' ? anchorEl() : anchorEl;
|
|
12110
12563
|
}
|
|
12111
12564
|
|
|
12565
|
+
const useUtilityClasses$1O = () => {
|
|
12566
|
+
const slots = {
|
|
12567
|
+
root: ['root']
|
|
12568
|
+
};
|
|
12569
|
+
return composeClasses(slots, getPopperUnstyledUtilityClass, {});
|
|
12570
|
+
};
|
|
12571
|
+
|
|
12112
12572
|
const defaultPopperOptions = {};
|
|
12113
12573
|
/* eslint-disable react/prop-types */
|
|
12114
12574
|
|
|
12115
12575
|
const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, ref) {
|
|
12576
|
+
var _ref;
|
|
12577
|
+
|
|
12116
12578
|
const {
|
|
12117
12579
|
anchorEl,
|
|
12118
12580
|
children,
|
|
12581
|
+
component,
|
|
12582
|
+
components = {},
|
|
12583
|
+
componentsProps = {},
|
|
12119
12584
|
direction,
|
|
12120
12585
|
disablePortal,
|
|
12121
12586
|
modifiers,
|
|
12122
12587
|
open,
|
|
12588
|
+
ownerState,
|
|
12123
12589
|
placement: initialPlacement,
|
|
12124
12590
|
popperOptions,
|
|
12125
12591
|
popperRef: popperRefProp,
|
|
@@ -12217,10 +12683,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12217
12683
|
childProps.TransitionProps = TransitionProps;
|
|
12218
12684
|
}
|
|
12219
12685
|
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12686
|
+
const classes = useUtilityClasses$1O();
|
|
12687
|
+
const Root = (_ref = component != null ? component : components.Root) != null ? _ref : 'div';
|
|
12688
|
+
const rootProps = useSlotProps({
|
|
12689
|
+
elementType: Root,
|
|
12690
|
+
externalSlotProps: componentsProps.root,
|
|
12691
|
+
externalForwardedProps: other,
|
|
12692
|
+
additionalProps: {
|
|
12693
|
+
role: 'tooltip',
|
|
12694
|
+
ref: ownRef
|
|
12695
|
+
},
|
|
12696
|
+
ownerState: _extends({}, props, ownerState),
|
|
12697
|
+
className: classes.root
|
|
12698
|
+
});
|
|
12699
|
+
return /*#__PURE__*/jsxRuntime_1(Root, _extends({}, rootProps, {
|
|
12224
12700
|
children: typeof children === 'function' ? children(childProps) : children
|
|
12225
12701
|
}));
|
|
12226
12702
|
});
|
|
@@ -12336,6 +12812,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12336
12812
|
/* @typescript-to-proptypes-ignore */
|
|
12337
12813
|
.oneOfType([PropTypes.node, PropTypes.func]),
|
|
12338
12814
|
|
|
12815
|
+
/**
|
|
12816
|
+
* The components used for each slot inside the Popper.
|
|
12817
|
+
* Either a string to use a HTML element or a component.
|
|
12818
|
+
* @default {}
|
|
12819
|
+
*/
|
|
12820
|
+
components: PropTypes.shape({
|
|
12821
|
+
Root: PropTypes.elementType
|
|
12822
|
+
}),
|
|
12823
|
+
|
|
12824
|
+
/**
|
|
12825
|
+
* The props used for each slot inside the Popper.
|
|
12826
|
+
* @default {}
|
|
12827
|
+
*/
|
|
12828
|
+
componentsProps: PropTypes.shape({
|
|
12829
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
12830
|
+
}),
|
|
12831
|
+
|
|
12339
12832
|
/**
|
|
12340
12833
|
* An HTML element or function that returns one.
|
|
12341
12834
|
* The `container` will have the portal children appended to it.
|
|
@@ -13034,7 +13527,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13034
13527
|
const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
|
|
13035
13528
|
var modalUnstyledClasses$1 = modalUnstyledClasses;
|
|
13036
13529
|
|
|
13037
|
-
const _excluded$2a = ["children", "classes", "
|
|
13530
|
+
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"];
|
|
13038
13531
|
|
|
13039
13532
|
const useUtilityClasses$1N = ownerState => {
|
|
13040
13533
|
const {
|
|
@@ -13074,12 +13567,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13074
13567
|
*/
|
|
13075
13568
|
|
|
13076
13569
|
const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, ref) {
|
|
13077
|
-
var _props$ariaHidden
|
|
13570
|
+
var _props$ariaHidden;
|
|
13078
13571
|
|
|
13079
13572
|
const {
|
|
13080
13573
|
children,
|
|
13081
13574
|
classes: classesProp,
|
|
13082
|
-
className,
|
|
13083
13575
|
closeAfterTransition = false,
|
|
13084
13576
|
component = 'div',
|
|
13085
13577
|
components = {},
|
|
@@ -13185,10 +13677,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13185
13677
|
|
|
13186
13678
|
const classes = useUtilityClasses$1N(ownerState);
|
|
13187
13679
|
|
|
13188
|
-
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
13189
|
-
return null;
|
|
13190
|
-
}
|
|
13191
|
-
|
|
13192
13680
|
const handleEnter = () => {
|
|
13193
13681
|
setExited(false);
|
|
13194
13682
|
|
|
@@ -13261,19 +13749,34 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13261
13749
|
}
|
|
13262
13750
|
|
|
13263
13751
|
const Root = components.Root || component;
|
|
13264
|
-
const rootProps =
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13752
|
+
const rootProps = useSlotProps({
|
|
13753
|
+
elementType: Root,
|
|
13754
|
+
externalSlotProps: componentsProps.root,
|
|
13755
|
+
externalForwardedProps: other,
|
|
13756
|
+
additionalProps: {
|
|
13757
|
+
ref: handleRef,
|
|
13758
|
+
role: 'presentation',
|
|
13759
|
+
onKeyDown: handleKeyDown
|
|
13760
|
+
},
|
|
13761
|
+
className: classes.root,
|
|
13762
|
+
ownerState
|
|
13763
|
+
});
|
|
13271
13764
|
const BackdropComponent = components.Backdrop;
|
|
13272
|
-
const backdropProps =
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
|
|
13276
|
-
|
|
13765
|
+
const backdropProps = useSlotProps({
|
|
13766
|
+
elementType: BackdropComponent,
|
|
13767
|
+
externalSlotProps: componentsProps.backdrop,
|
|
13768
|
+
additionalProps: {
|
|
13769
|
+
'aria-hidden': true,
|
|
13770
|
+
onClick: handleBackdropClick,
|
|
13771
|
+
open
|
|
13772
|
+
},
|
|
13773
|
+
ownerState
|
|
13774
|
+
});
|
|
13775
|
+
|
|
13776
|
+
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
13777
|
+
return null;
|
|
13778
|
+
}
|
|
13779
|
+
|
|
13277
13780
|
return /*#__PURE__*/jsxRuntime_1(Portal$1, {
|
|
13278
13781
|
ref: handlePortalRef,
|
|
13279
13782
|
container: container,
|
|
@@ -13308,11 +13811,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13308
13811
|
*/
|
|
13309
13812
|
classes: PropTypes.object,
|
|
13310
13813
|
|
|
13311
|
-
/**
|
|
13312
|
-
* @ignore
|
|
13313
|
-
*/
|
|
13314
|
-
className: PropTypes.string,
|
|
13315
|
-
|
|
13316
13814
|
/**
|
|
13317
13815
|
* When set to true the Modal waits until a nested Transition is completed before closing.
|
|
13318
13816
|
* @default false
|
|
@@ -13340,8 +13838,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13340
13838
|
* @default {}
|
|
13341
13839
|
*/
|
|
13342
13840
|
componentsProps: PropTypes.shape({
|
|
13343
|
-
backdrop: PropTypes.object,
|
|
13344
|
-
root: PropTypes.object
|
|
13841
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
13842
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
13345
13843
|
}),
|
|
13346
13844
|
|
|
13347
13845
|
/**
|
|
@@ -18737,7 +19235,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18737
19235
|
const {
|
|
18738
19236
|
clientX,
|
|
18739
19237
|
clientY
|
|
18740
|
-
} = event.touches ? event.touches[0] : event;
|
|
19238
|
+
} = event.touches && event.touches.length > 0 ? event.touches[0] : event;
|
|
18741
19239
|
rippleX = Math.round(clientX - rect.left);
|
|
18742
19240
|
rippleY = Math.round(clientY - rect.top);
|
|
18743
19241
|
}
|
|
@@ -20641,6 +21139,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20641
21139
|
/* @typescript-to-proptypes-ignore */
|
|
20642
21140
|
.oneOfType([PropTypes.node, PropTypes.func]),
|
|
20643
21141
|
|
|
21142
|
+
/**
|
|
21143
|
+
* @ignore
|
|
21144
|
+
*/
|
|
21145
|
+
component: PropTypes
|
|
21146
|
+
/* @typescript-to-proptypes-ignore */
|
|
21147
|
+
.elementType,
|
|
21148
|
+
|
|
21149
|
+
/**
|
|
21150
|
+
* The components used for each slot inside the Popper.
|
|
21151
|
+
* Either a string to use a HTML element or a component.
|
|
21152
|
+
* @default {}
|
|
21153
|
+
*/
|
|
21154
|
+
components: PropTypes.shape({
|
|
21155
|
+
Root: PropTypes.elementType
|
|
21156
|
+
}),
|
|
21157
|
+
|
|
21158
|
+
/**
|
|
21159
|
+
* The props used for each slot inside the Popper.
|
|
21160
|
+
* @default {}
|
|
21161
|
+
*/
|
|
21162
|
+
componentsProps: PropTypes.shape({
|
|
21163
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
21164
|
+
}),
|
|
21165
|
+
|
|
20644
21166
|
/**
|
|
20645
21167
|
* An HTML element or function that returns one.
|
|
20646
21168
|
* The `container` will have the portal children appended to it.
|
|
@@ -22685,7 +23207,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22685
23207
|
|
|
22686
23208
|
if (multiple && value.length > 0) {
|
|
22687
23209
|
const getCustomizedTagProps = params => _extends({
|
|
22688
|
-
className:
|
|
23210
|
+
className: classes.tag,
|
|
22689
23211
|
disabled
|
|
22690
23212
|
}, getTagProps(params));
|
|
22691
23213
|
|
|
@@ -22786,7 +23308,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22786
23308
|
})
|
|
22787
23309
|
}),
|
|
22788
23310
|
inputProps: _extends({
|
|
22789
|
-
className:
|
|
23311
|
+
className: classes.input,
|
|
22790
23312
|
disabled,
|
|
22791
23313
|
readOnly
|
|
22792
23314
|
}, getInputProps())
|
|
@@ -23590,7 +24112,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23590
24112
|
var avatarGroupClasses$1 = avatarGroupClasses;
|
|
23591
24113
|
|
|
23592
24114
|
const _excluded$1L = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
|
|
23593
|
-
const SPACINGS$
|
|
24115
|
+
const SPACINGS$2 = {
|
|
23594
24116
|
small: -16,
|
|
23595
24117
|
medium: null
|
|
23596
24118
|
};
|
|
@@ -23686,7 +24208,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23686
24208
|
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
23687
24209
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
23688
24210
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
23689
|
-
const marginLeft = spacing && SPACINGS$
|
|
24211
|
+
const marginLeft = spacing && SPACINGS$2[spacing] !== undefined ? SPACINGS$2[spacing] : -spacing;
|
|
23690
24212
|
return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
|
|
23691
24213
|
ownerState: ownerState,
|
|
23692
24214
|
className: clsx(classes.root, className),
|
|
@@ -27730,11 +28252,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27730
28252
|
Backdrop: BackdropComponent
|
|
27731
28253
|
}, components),
|
|
27732
28254
|
componentsProps: {
|
|
27733
|
-
root: _extends({}, componentsProps.root, !isHostComponent(Root) && {
|
|
28255
|
+
root: () => _extends({}, resolveComponentProps(componentsProps.root, ownerState), !isHostComponent(Root) && {
|
|
27734
28256
|
as: component,
|
|
27735
28257
|
theme
|
|
27736
28258
|
}),
|
|
27737
|
-
backdrop: _extends({}, BackdropProps, componentsProps.backdrop)
|
|
28259
|
+
backdrop: () => _extends({}, BackdropProps, resolveComponentProps(componentsProps.backdrop, ownerState))
|
|
27738
28260
|
},
|
|
27739
28261
|
onTransitionEnter: () => setExited(false),
|
|
27740
28262
|
onTransitionExited: () => setExited(true),
|
|
@@ -27755,7 +28277,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27755
28277
|
|
|
27756
28278
|
/**
|
|
27757
28279
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
27758
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
28280
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
28281
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
27759
28282
|
* @default styled(Backdrop, {
|
|
27760
28283
|
* name: 'MuiModal',
|
|
27761
28284
|
* slot: 'Backdrop',
|
|
@@ -27811,8 +28334,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
27811
28334
|
* @default {}
|
|
27812
28335
|
*/
|
|
27813
28336
|
componentsProps: PropTypes.shape({
|
|
27814
|
-
backdrop: PropTypes.object,
|
|
27815
|
-
root: PropTypes.object
|
|
28337
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
28338
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
27816
28339
|
}),
|
|
27817
28340
|
|
|
27818
28341
|
/**
|
|
@@ -28201,7 +28724,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28201
28724
|
|
|
28202
28725
|
/**
|
|
28203
28726
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
28204
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
28727
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
28728
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
28205
28729
|
* @default styled(Backdrop, {
|
|
28206
28730
|
* name: 'MuiModal',
|
|
28207
28731
|
* slot: 'Backdrop',
|
|
@@ -31139,7 +31663,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31139
31663
|
/**
|
|
31140
31664
|
* The variant to use.
|
|
31141
31665
|
*/
|
|
31142
|
-
variant: PropTypes
|
|
31666
|
+
variant: PropTypes
|
|
31667
|
+
/* @typescript-to-proptypes-ignore */
|
|
31668
|
+
.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])
|
|
31143
31669
|
} ;
|
|
31144
31670
|
var FormHelperText$1 = FormHelperText;
|
|
31145
31671
|
|
|
@@ -31336,15 +31862,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31336
31862
|
function getGridUtilityClass(slot) {
|
|
31337
31863
|
return generateUtilityClass('MuiGrid', slot);
|
|
31338
31864
|
}
|
|
31339
|
-
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
31340
|
-
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
31341
|
-
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
31342
|
-
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
31865
|
+
const SPACINGS$1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
31866
|
+
const DIRECTIONS$1 = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
31867
|
+
const WRAPS$1 = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
31868
|
+
const GRID_SIZES$1 = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
31343
31869
|
const gridClasses = generateUtilityClasses('MuiGrid', ['root', 'container', 'item', 'zeroMinWidth', // spacings
|
|
31344
|
-
...SPACINGS.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
31345
|
-
...DIRECTIONS.map(direction => `direction-xs-${direction}`), // wrap values
|
|
31346
|
-
...WRAPS.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
31347
|
-
...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}`)]);
|
|
31870
|
+
...SPACINGS$1.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
31871
|
+
...DIRECTIONS$1.map(direction => `direction-xs-${direction}`), // wrap values
|
|
31872
|
+
...WRAPS$1.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
31873
|
+
...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}`)]);
|
|
31348
31874
|
var gridClasses$1 = gridClasses;
|
|
31349
31875
|
|
|
31350
31876
|
const _excluded$1d = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
@@ -31891,6 +32417,52 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31891
32417
|
|
|
31892
32418
|
var Grid$1 = Grid;
|
|
31893
32419
|
|
|
32420
|
+
const Grid2 = createGrid({
|
|
32421
|
+
createStyledComponent: styled$1('div', {
|
|
32422
|
+
name: 'MuiGrid2',
|
|
32423
|
+
overridesResolver: (props, styles) => styles.root
|
|
32424
|
+
}),
|
|
32425
|
+
componentName: 'MuiGrid2',
|
|
32426
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
32427
|
+
useThemeProps: inProps => useThemeProps({
|
|
32428
|
+
props: inProps,
|
|
32429
|
+
name: 'MuiGrid2'
|
|
32430
|
+
})
|
|
32431
|
+
});
|
|
32432
|
+
Grid2.propTypes
|
|
32433
|
+
/* remove-proptypes */
|
|
32434
|
+
= {
|
|
32435
|
+
// ----------------------------- Warning --------------------------------
|
|
32436
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
32437
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
32438
|
+
// ----------------------------------------------------------------------
|
|
32439
|
+
|
|
32440
|
+
/**
|
|
32441
|
+
* The content of the component.
|
|
32442
|
+
*/
|
|
32443
|
+
children: PropTypes.node,
|
|
32444
|
+
|
|
32445
|
+
/**
|
|
32446
|
+
* @ignore
|
|
32447
|
+
*/
|
|
32448
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
32449
|
+
} ;
|
|
32450
|
+
var Grid2$1 = Grid2;
|
|
32451
|
+
|
|
32452
|
+
function getGrid2UtilityClass(slot) {
|
|
32453
|
+
return generateUtilityClass('MuiGrid2', slot);
|
|
32454
|
+
}
|
|
32455
|
+
const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
32456
|
+
const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
|
|
32457
|
+
const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
|
|
32458
|
+
const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
32459
|
+
const grid2Classes = generateUtilityClasses('MuiGrid2', ['root', 'container', 'item', 'zeroMinWidth', // spacings
|
|
32460
|
+
...SPACINGS.map(spacing => `spacing-xs-${spacing}`), // direction values
|
|
32461
|
+
...DIRECTIONS.map(direction => `direction-xs-${direction}`), // wrap values
|
|
32462
|
+
...WRAPS.map(wrap => `wrap-xs-${wrap}`), // grid sizes for all breakpoints
|
|
32463
|
+
...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}`)]);
|
|
32464
|
+
var grid2Classes$1 = grid2Classes;
|
|
32465
|
+
|
|
31894
32466
|
const _excluded$1c = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
31895
32467
|
|
|
31896
32468
|
function getScale(value) {
|
|
@@ -33268,9 +33840,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33268
33840
|
})(({
|
|
33269
33841
|
ownerState
|
|
33270
33842
|
}) => _extends({
|
|
33271
|
-
display: '
|
|
33272
|
-
position: 'relative'
|
|
33273
|
-
lineHeight: 0
|
|
33843
|
+
display: 'block',
|
|
33844
|
+
position: 'relative'
|
|
33274
33845
|
}, ownerState.variant === 'standard' && {
|
|
33275
33846
|
// For titlebar under list item
|
|
33276
33847
|
display: 'flex',
|
|
@@ -33285,7 +33856,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33285
33856
|
[`& .${imageListItemClasses$1.img}`]: _extends({
|
|
33286
33857
|
objectFit: 'cover',
|
|
33287
33858
|
width: '100%',
|
|
33288
|
-
height: '100%'
|
|
33859
|
+
height: '100%',
|
|
33860
|
+
display: 'block'
|
|
33289
33861
|
}, ownerState.variant === 'standard' && {
|
|
33290
33862
|
height: 'auto',
|
|
33291
33863
|
flexGrow: 1
|
|
@@ -40692,7 +41264,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40692
41264
|
* For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
|
|
40693
41265
|
* For browser support, check out https://caniuse.com/?search=color-scheme
|
|
40694
41266
|
*/
|
|
40695
|
-
enableColorScheme: PropTypes.bool
|
|
41267
|
+
enableColorScheme: PropTypes.bool,
|
|
41268
|
+
|
|
41269
|
+
/**
|
|
41270
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
41271
|
+
*/
|
|
41272
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
40696
41273
|
} ;
|
|
40697
41274
|
var ScopedCssBaseline$1 = ScopedCssBaseline;
|
|
40698
41275
|
|
|
@@ -42201,7 +42778,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42201
42778
|
transition: theme.transitions.create(['transform'], {
|
|
42202
42779
|
duration: theme.transitions.duration.shortest
|
|
42203
42780
|
}),
|
|
42204
|
-
transformOrigin: 'bottom center',
|
|
42205
42781
|
transform: 'translateY(-100%) scale(0)',
|
|
42206
42782
|
position: 'absolute',
|
|
42207
42783
|
backgroundColor: (theme.vars || theme).palette.grey[600],
|
|
@@ -42213,6 +42789,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42213
42789
|
padding: '0.25rem 0.75rem'
|
|
42214
42790
|
}, ownerState.orientation === 'horizontal' && {
|
|
42215
42791
|
top: '-10px',
|
|
42792
|
+
transformOrigin: 'bottom center',
|
|
42216
42793
|
'&:before': {
|
|
42217
42794
|
position: 'absolute',
|
|
42218
42795
|
content: '""',
|
|
@@ -42225,7 +42802,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42225
42802
|
}
|
|
42226
42803
|
}, ownerState.orientation === 'vertical' && {
|
|
42227
42804
|
right: '30px',
|
|
42228
|
-
top: '
|
|
42805
|
+
top: '24px',
|
|
42806
|
+
transformOrigin: 'right center',
|
|
42229
42807
|
'&:before': {
|
|
42230
42808
|
position: 'absolute',
|
|
42231
42809
|
content: '""',
|
|
@@ -45286,7 +45864,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45286
45864
|
theme
|
|
45287
45865
|
}) => {
|
|
45288
45866
|
let styles = _extends({
|
|
45289
|
-
display: 'flex'
|
|
45867
|
+
display: 'flex',
|
|
45868
|
+
flexDirection: 'column'
|
|
45290
45869
|
}, handleBreakpoints({
|
|
45291
45870
|
theme
|
|
45292
45871
|
}, resolveBreakpointValues({
|
|
@@ -45314,6 +45893,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45314
45893
|
base
|
|
45315
45894
|
});
|
|
45316
45895
|
|
|
45896
|
+
if (typeof directionValues === 'object') {
|
|
45897
|
+
Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {
|
|
45898
|
+
const directionValue = directionValues[breakpoint];
|
|
45899
|
+
|
|
45900
|
+
if (!directionValue) {
|
|
45901
|
+
const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';
|
|
45902
|
+
directionValues[breakpoint] = previousDirectionValue;
|
|
45903
|
+
}
|
|
45904
|
+
});
|
|
45905
|
+
}
|
|
45906
|
+
|
|
45317
45907
|
const styleFromPropValue = (propValue, breakpoint) => {
|
|
45318
45908
|
return {
|
|
45319
45909
|
'& > :not(style) + :not(style)': {
|
|
@@ -50662,7 +51252,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50662
51252
|
* Determines the color of the indicator.
|
|
50663
51253
|
* @default 'primary'
|
|
50664
51254
|
*/
|
|
50665
|
-
indicatorColor: PropTypes
|
|
51255
|
+
indicatorColor: PropTypes
|
|
51256
|
+
/* @typescript-to-proptypes-ignore */
|
|
51257
|
+
.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
50666
51258
|
|
|
50667
51259
|
/**
|
|
50668
51260
|
* Callback fired when the value changes.
|
|
@@ -51878,6 +52470,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51878
52470
|
exports.Toolbar = Toolbar$1;
|
|
51879
52471
|
exports.Tooltip = Tooltip$1;
|
|
51880
52472
|
exports.Typography = Typography$1;
|
|
52473
|
+
exports.Unstable_Grid2 = Grid2$1;
|
|
51881
52474
|
exports.Zoom = Zoom$1;
|
|
51882
52475
|
exports.accordionActionsClasses = accordionActionsClasses$1;
|
|
51883
52476
|
exports.accordionClasses = accordionClasses$1;
|
|
@@ -51990,6 +52583,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51990
52583
|
exports.getFormGroupUtilityClass = getFormGroupUtilityClass;
|
|
51991
52584
|
exports.getFormHelperTextUtilityClasses = getFormHelperTextUtilityClasses;
|
|
51992
52585
|
exports.getFormLabelUtilityClasses = getFormLabelUtilityClasses;
|
|
52586
|
+
exports.getGrid2UtilityClass = getGrid2UtilityClass;
|
|
51993
52587
|
exports.getGridUtilityClass = getGridUtilityClass;
|
|
51994
52588
|
exports.getIconButtonUtilityClass = getIconButtonUtilityClass;
|
|
51995
52589
|
exports.getIconUtilityClass = getIconUtilityClass;
|
|
@@ -52062,6 +52656,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
52062
52656
|
exports.getTooltipUtilityClass = getTooltipUtilityClass;
|
|
52063
52657
|
exports.getTouchRippleUtilityClass = getTouchRippleUtilityClass;
|
|
52064
52658
|
exports.getTypographyUtilityClass = getTypographyUtilityClass;
|
|
52659
|
+
exports.grid2Classes = grid2Classes$1;
|
|
52065
52660
|
exports.gridClasses = gridClasses$1;
|
|
52066
52661
|
exports.hexToRgb = hexToRgb;
|
|
52067
52662
|
exports.hslToRgb = hslToRgb;
|