@mui/material 5.2.3 → 5.2.7

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.
Files changed (56) hide show
  1. package/Avatar/Avatar.d.ts +4 -2
  2. package/Badge/Badge.d.ts +25 -0
  3. package/Badge/Badge.js +40 -10
  4. package/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  5. package/ButtonGroup/ButtonGroupContext.d.ts +1 -1
  6. package/CHANGELOG.md +227 -0
  7. package/CssBaseline/CssBaseline.d.ts +1 -1
  8. package/GlobalStyles/GlobalStyles.d.ts +2 -1
  9. package/Grid/Grid.js +74 -66
  10. package/InputBase/InputBase.d.ts +6 -0
  11. package/InputBase/InputBase.js +10 -2
  12. package/ListItem/ListItem.d.ts +1 -1
  13. package/ListItemButton/ListItemButton.d.ts +1 -1
  14. package/MenuItem/MenuItem.d.ts +1 -1
  15. package/OutlinedInput/OutlinedInput.js +14 -1
  16. package/README.md +15 -27
  17. package/Select/SelectInput.js +11 -3
  18. package/SvgIcon/SvgIcon.d.ts +8 -0
  19. package/SvgIcon/SvgIcon.js +19 -3
  20. package/Tabs/Tabs.d.ts +1 -1
  21. package/TextField/TextField.js +2 -9
  22. package/index.js +1 -1
  23. package/legacy/Badge/Badge.js +46 -11
  24. package/legacy/Grid/Grid.js +84 -78
  25. package/legacy/InputBase/InputBase.js +10 -2
  26. package/legacy/OutlinedInput/OutlinedInput.js +14 -1
  27. package/legacy/Select/SelectInput.js +11 -5
  28. package/legacy/SvgIcon/SvgIcon.js +20 -3
  29. package/legacy/TextField/TextField.js +2 -9
  30. package/legacy/index.js +1 -1
  31. package/legacy/locale/index.js +319 -142
  32. package/locale/index.d.ts +2 -0
  33. package/locale/index.js +220 -50
  34. package/modern/Badge/Badge.js +40 -10
  35. package/modern/Grid/Grid.js +74 -66
  36. package/modern/InputBase/InputBase.js +10 -2
  37. package/modern/OutlinedInput/OutlinedInput.js +14 -1
  38. package/modern/Select/SelectInput.js +11 -3
  39. package/modern/SvgIcon/SvgIcon.js +19 -3
  40. package/modern/TextField/TextField.js +2 -7
  41. package/modern/index.js +1 -1
  42. package/modern/locale/index.js +220 -50
  43. package/node/Badge/Badge.js +40 -10
  44. package/node/Grid/Grid.js +75 -65
  45. package/node/InputBase/InputBase.js +10 -2
  46. package/node/OutlinedInput/OutlinedInput.js +15 -1
  47. package/node/Select/SelectInput.js +11 -3
  48. package/node/SvgIcon/SvgIcon.js +19 -3
  49. package/node/TextField/TextField.js +1 -8
  50. package/node/index.js +1 -1
  51. package/node/locale/index.js +223 -51
  52. package/package.json +3 -3
  53. package/styles/createTheme.d.ts +1 -1
  54. package/transitions/transition.d.ts +1 -2
  55. package/umd/material-ui.development.js +278 -171
  56. package/umd/material-ui.production.min.js +21 -21
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.3
1
+ /** @license MUI v5.2.7
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.
@@ -661,7 +661,7 @@
661
661
  return StyleSheet;
662
662
  }();
663
663
 
664
- 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;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function g(e){return e.trim()}function x$1(e,r){return (e=r.exec(e))?e[0]:e}function y(e,r,a){return e.replace(r,a)}function j(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function C(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function O(e,r){return r.push(e),e}function S(e,r){return e.map(r).join("")}var q=1;var B=1;var D=0;var E=0;var F=0;var G="";function H(e,r,a,c,n,t,s){return {value:e,root:r,parent:a,type:c,props:n,children:t,line:q,column:B,length:s,return:""}}function I(e,r,a){return H(e,r.root,r.parent,a,r.props,r.children,0)}function J(){return F}function K(){F=E>0?z(G,--E):0;if(B--,F===10)B=1,q--;return F}function L(){F=E<D?z(G,E++):0;if(B++,F===10)B=1,q++;return F}function N(){return z(G,E)}function P(){return E}function Q(e,r){return C(G,e,r)}function R(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 T(e){return q=B=1,D=A(G=e),E=0,[]}function U(e){return G="",e}function V(e){return g(Q(E-1,_$4(e===91?e+2:e===40?e+1:e)))}function X(e){while(F=N())if(F<33)L();else break;return R(e)>2||R(F)>3?"":" "}function Z(e,r){while(--r&&L())if(F<48||F>102||F>57&&F<65||F>70&&F<97)break;return Q(e,P()+(r<6&&N()==32&&L()==32))}function _$4(e){while(L())switch(F){case e:return E;case 34:case 39:return _$4(e===34||e===39?e:F);case 40:if(e===41)_$4(e);break;case 92:L();break}return E}function ee(e,r){while(L())if(e+F===47+10)break;else if(e+F===42+42&&N()===47)break;return "/*"+Q(r,E-1)+"*"+d(e===47?e:L())}function re(e){while(!R(N()))L();return Q(e,E)}function ae(e){return U(ce("",null,null,null,[""],e=T(e),0,[0],e))}function ce(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 m="";var g=n;var x=t;var j=c;var z=m;while(w)switch(p=k,k=L()){case 34:case 39:case 91:case 40:z+=V(k);break;case 9:case 10:case 13:case 32:z+=X(p);break;case 92:z+=Z(P()-1,7);continue;case 47:switch(N()){case 42:case 47:O(te(ee(L(),P()),r,a),i);break;default:z+="/";}break;case 123*b:u[f++]=A(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+o:if(h>0&&A(z)-l)O(h>32?se(z+";",c,a,l-1):se(y(z," ","")+";",c,a,l-2),i);break;case 59:z+=";";default:O(j=ne(z,r,a,f,o,n,u,m,g=[],x=[],l),t);if(k===123)if(o===0)ce(z,r,j,j,g,t,l,u,x);else switch(v){case 100:case 109:case 115:ce(e,j,j,c&&O(ne(e,j,j,0,0,n,u,m,n,g=[],l),x),n,x,l,u,c?g:x);break;default:ce(z,j,j,j,[""],x,l,u,x);}}f=o=h=0,b=$=1,m=z="",l=s;break;case 58:l=1+A(z),h=p;default:if(b<1)if(k==123)--b;else if(k==125&&b++==0&&K()==125)continue;switch(z+=d(k),k*b){case 38:$=o>0?1:(z+="\f",-1);break;case 44:u[f++]=(A(z)-1)*$,$=1;break;case 64:if(N()===45)z+=V(L());v=N(),o=A(m=z+=re(P())),k++;break;case 45:if(p===45&&A(z)==2)b=0;}}return t}function ne(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,m=C(e,v+1,v=k(w=u[b])),x=e;d<p;++d)if(x=g(w>0?h[d]+" "+m:y(m,/&\f/g,h[d])))f[$++]=x;return H(e,r,a,t===0?n:i,f,o,l)}function te(e,r,a){return H(e,r,a,c,d(J()),C(e,2,-2),0)}function se(e,r,a,c){return H(e,r,a,t,C(e,0,c),C(e,c+1,-1),c)}function ue(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+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+y(c,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+c;case 5443:return a+c+e+"flex-item-"+y(c,/flex-|-self/,"")+c;case 4675:return a+c+e+"flex-line-pack"+y(c,/align-content|flex-|-self/,"")+c;case 5548:return a+c+e+y(c,"shrink","negative")+c;case 5292:return a+c+e+y(c,"basis","preferred-size")+c;case 6060:return a+"box-"+y(c,"-grow","")+a+c+e+y(c,"grow","positive")+c;case 4554:return a+y(c,/([^-])(transform)/g,"$1"+a+"$2")+c;case 6187:return y(y(y(c,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),c,"")+c;case 5495:case 3959:return y(c,/(image-set\([^]*)/,a+"$1"+"$`$1");case 4968:return y(y(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 y(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(A(c)-1-n>6)switch(z(c,n+1)){case 109:if(z(c,n+4)!==45)break;case 102:return y(c,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3"+"$1"+r+(z(c,n+3)==108?"$3":"$2-$3"))+c;case 115:return ~j(c,"stretch")?ue(y(c,"stretch","fill-available"),n)+c:c}break;case 4949:if(z(c,n+1)!==115)break;case 6444:switch(z(c,A(c)-3-(~j(c,"!important")&&10))){case 107:return y(c,":",":"+a)+c;case 101:return y(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+y(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return a+c+e+c+c}return c}function ie(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 fe(e,r,a,s){switch(e.type){case i:case t:return e.return=e.return||e.value;case c:return "";case n:e.value=e.props.join(",");}return A(a=ie(e.children,s))?e.return=e.value+"{"+a+"}":""}function oe(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 ve(c,s,u,i){if(!c.return)switch(c.type){case t:c.return=ue(c.value,c.length);break;case p:return ie([I(y(c.value,"@","@"+a),c,"")],i);case n:if(c.length)return S(c.props,(function(n){switch(x$1(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([I(y(n,/:(read-\w+)/,":"+r+"$1"),c,"")],i);case"::placeholder":return ie([I(y(n,/:(plac\w+)/,":"+a+"input-$1"),c,""),I(y(n,/:(plac\w+)/,":"+r+"$1"),c,""),I(y(n,/:(plac\w+)/,e+"input-$1"),c,"")],i)}return ""}))}}
664
+ 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$1(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$1(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$1(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+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+(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")]})],i);case"::placeholder":return fe([J(c,{props:[j(n,/:(plac\w+)/,":"+a+"input-$1")]}),J(c,{props:[j(n,/:(plac\w+)/,":"+r+"$1")]}),J(c,{props:[j(n,/:(plac\w+)/,e+"input-$1")]})],i)}return ""}))}}
665
665
 
666
666
  var weakMemoize = function weakMemoize(func) {
667
667
  // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
@@ -689,20 +689,20 @@
689
689
 
690
690
  while (true) {
691
691
  previous = character;
692
- character = N(); // &\f
692
+ character = P(); // &\f
693
693
 
694
694
  if (previous === 38 && character === 12) {
695
695
  points[index] = 1;
696
696
  }
697
697
 
698
- if (R(character)) {
698
+ if (T(character)) {
699
699
  break;
700
700
  }
701
701
 
702
- L();
702
+ N();
703
703
  }
704
704
 
705
- return Q(begin, E);
705
+ return R(begin, F);
706
706
  };
707
707
 
708
708
  var toRules = function toRules(parsed, points) {
@@ -711,10 +711,10 @@
711
711
  var character = 44;
712
712
 
713
713
  do {
714
- switch (R(character)) {
714
+ switch (T(character)) {
715
715
  case 0:
716
716
  // &\f
717
- if (character === 38 && N() === 12) {
717
+ if (character === 38 && P() === 12) {
718
718
  // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
719
719
  // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
720
720
  // and when it should just concatenate the outer and inner selectors
@@ -722,18 +722,18 @@
722
722
  points[index] = 1;
723
723
  }
724
724
 
725
- parsed[index] += identifierWithPointTracking(E - 1, points, index);
725
+ parsed[index] += identifierWithPointTracking(F - 1, points, index);
726
726
  break;
727
727
 
728
728
  case 2:
729
- parsed[index] += V(character);
729
+ parsed[index] += W(character);
730
730
  break;
731
731
 
732
732
  case 4:
733
733
  // comma
734
734
  if (character === 44) {
735
735
  // colon
736
- parsed[++index] = N() === 58 ? '&\f' : '';
736
+ parsed[++index] = P() === 58 ? '&\f' : '';
737
737
  points[index] = parsed[index].length;
738
738
  break;
739
739
  }
@@ -743,20 +743,21 @@
743
743
  default:
744
744
  parsed[index] += d(character);
745
745
  }
746
- } while (character = L());
746
+ } while (character = N());
747
747
 
748
748
  return parsed;
749
749
  };
750
750
 
751
751
  var getRules = function getRules(value, points) {
752
- return U(toRules(T(value), points));
752
+ return V(toRules(U(value), points));
753
753
  }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
754
754
 
755
755
 
756
756
  var fixedElements = /* #__PURE__ */new WeakMap();
757
757
  var compat = function compat(element) {
758
- if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not
759
- !element.length) {
758
+ if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
759
+ // negative .length indicates that this rule has been already prefixed
760
+ element.length < 1) {
760
761
  return;
761
762
  }
762
763
 
@@ -879,7 +880,7 @@
879
880
  };
880
881
  });
881
882
  });
882
- var defaultStylisPlugins = [ve];
883
+ var defaultStylisPlugins = [he];
883
884
 
884
885
  var createCache = function createCache(options) {
885
886
  var key = options.key;
@@ -955,7 +956,7 @@
955
956
 
956
957
  if (isBrowser$4) {
957
958
  var currentSheet;
958
- var finalizingPlugins = [fe, function (element) {
959
+ var finalizingPlugins = [oe, function (element) {
959
960
  if (!element.root) {
960
961
  if (element["return"]) {
961
962
  currentSheet.insert(element["return"]);
@@ -966,10 +967,10 @@
966
967
  }
967
968
  }
968
969
  } ];
969
- var serializer = oe(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
970
+ var serializer = le(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
970
971
 
971
972
  var stylis = function stylis(styles) {
972
- return ie(ae(styles), serializer);
973
+ return fe(ce(styles), serializer);
973
974
  };
974
975
 
975
976
  _insert = function insert(selector, serialized, sheet, shouldCache) {
@@ -990,12 +991,12 @@
990
991
  }
991
992
  };
992
993
  } else {
993
- var _finalizingPlugins = [fe];
994
+ var _finalizingPlugins = [oe];
994
995
 
995
- var _serializer = oe(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
996
+ var _serializer = le(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
996
997
 
997
998
  var _stylis = function _stylis(styles) {
998
- return ie(ae(styles), _serializer);
999
+ return fe(ce(styles), _serializer);
999
1000
  }; // $FlowFixMe
1000
1001
 
1001
1002
 
@@ -2008,7 +2009,7 @@
2008
2009
 
2009
2010
  var pkg = {
2010
2011
  name: "@emotion/react",
2011
- version: "11.7.0",
2012
+ version: "11.7.1",
2012
2013
  main: "dist/emotion-react.cjs.js",
2013
2014
  module: "dist/emotion-react.esm.js",
2014
2015
  browser: {
@@ -2035,7 +2036,7 @@
2035
2036
  },
2036
2037
  dependencies: {
2037
2038
  "@babel/runtime": "^7.13.10",
2038
- "@emotion/cache": "^11.6.0",
2039
+ "@emotion/cache": "^11.7.1",
2039
2040
  "@emotion/serialize": "^1.0.2",
2040
2041
  "@emotion/sheet": "^1.1.0",
2041
2042
  "@emotion/utils": "^1.0.0",
@@ -2056,8 +2057,8 @@
2056
2057
  },
2057
2058
  devDependencies: {
2058
2059
  "@babel/core": "^7.13.10",
2059
- "@emotion/css": "11.5.0",
2060
- "@emotion/css-prettifier": "1.0.0",
2060
+ "@emotion/css": "11.7.1",
2061
+ "@emotion/css-prettifier": "1.0.1",
2061
2062
  "@emotion/server": "11.4.0",
2062
2063
  "@emotion/styled": "11.6.0",
2063
2064
  "@types/react": "^16.9.11",
@@ -6463,6 +6464,21 @@
6463
6464
  return up(key);
6464
6465
  }
6465
6466
 
6467
+ function not(key) {
6468
+ // handle first and last key separately, for better readability
6469
+ const keyIndex = keys.indexOf(key);
6470
+
6471
+ if (keyIndex === 0) {
6472
+ return up(keys[1]);
6473
+ }
6474
+
6475
+ if (keyIndex === keys.length - 1) {
6476
+ return down(keys[keyIndex]);
6477
+ }
6478
+
6479
+ return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');
6480
+ }
6481
+
6466
6482
  return _extends({
6467
6483
  keys,
6468
6484
  values,
@@ -6470,6 +6486,7 @@
6470
6486
  down,
6471
6487
  between,
6472
6488
  only,
6489
+ not,
6473
6490
  unit
6474
6491
  }, other);
6475
6492
  }
@@ -7926,7 +7943,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7926
7943
  };
7927
7944
 
7928
7945
  const handleValue = (event, newValue, reason, details) => {
7929
- if (value === newValue) {
7946
+ if (Array.isArray(value)) {
7947
+ if (value.length === newValue.length && value.every((val, i) => val === newValue[i])) {
7948
+ return;
7949
+ }
7950
+ } else if (value === newValue) {
7930
7951
  return;
7931
7952
  }
7932
7953
 
@@ -8374,7 +8395,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8374
8395
  // only have an opinion about this when closed
8375
8396
  'aria-activedescendant': popupOpen ? '' : null,
8376
8397
  'aria-autocomplete': autoComplete ? 'both' : 'list',
8377
- 'aria-controls': listboxAvailable ? `${id}-listbox` : null,
8398
+ 'aria-controls': listboxAvailable ? `${id}-listbox` : undefined,
8378
8399
  // Disable browser's suggestion that might overlap with the popup.
8379
8400
  // Handle autocomplete but not autofill.
8380
8401
  autoComplete: 'off',
@@ -8614,25 +8635,70 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8614
8635
  } ;
8615
8636
  var BackdropUnstyled$1 = BackdropUnstyled;
8616
8637
 
8638
+ function useBadge(props) {
8639
+ const {
8640
+ anchorOrigin: anchorOriginProp = {
8641
+ vertical: 'top',
8642
+ horizontal: 'right'
8643
+ },
8644
+ badgeContent: badgeContentProp,
8645
+ invisible: invisibleProp,
8646
+ max: maxProp = 99,
8647
+ showZero = false,
8648
+ variant: variantProp = 'standard'
8649
+ } = props;
8650
+ const prevProps = usePreviousProps$1({
8651
+ anchorOrigin: anchorOriginProp,
8652
+ badgeContent: badgeContentProp,
8653
+ max: maxProp,
8654
+ variant: variantProp
8655
+ });
8656
+ let invisible = invisibleProp;
8657
+
8658
+ if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
8659
+ invisible = true;
8660
+ }
8661
+
8662
+ const {
8663
+ anchorOrigin = anchorOriginProp,
8664
+ badgeContent,
8665
+ max = maxProp,
8666
+ variant = variantProp
8667
+ } = invisible ? prevProps : props;
8668
+ let displayValue = '';
8669
+
8670
+ if (variant !== 'dot') {
8671
+ displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
8672
+ }
8673
+
8674
+ return {
8675
+ anchorOrigin,
8676
+ badgeContent,
8677
+ invisible,
8678
+ max,
8679
+ variant,
8680
+ displayValue
8681
+ };
8682
+ }
8683
+
8617
8684
  function getBadgeUtilityClass(slot) {
8618
8685
  return generateUtilityClass('MuiBadge', slot);
8619
8686
  }
8620
- const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular', 'invisible']);
8687
+ const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopLeft', 'anchorOriginTopRight', 'anchorOriginBottomLeft', 'anchorOriginBottomRight', 'invisible']);
8621
8688
  var badgeUnstyledClasses$1 = badgeUnstyledClasses;
8622
8689
 
8623
- const _excluded$2l = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "overlap", "showZero", "variant", "theme"];
8690
+ const _excluded$2l = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero", "variant"];
8624
8691
 
8625
8692
  const useUtilityClasses$1S = ownerState => {
8626
8693
  const {
8627
8694
  variant,
8628
8695
  anchorOrigin,
8629
- overlap,
8630
8696
  invisible,
8631
8697
  classes
8632
8698
  } = ownerState;
8633
8699
  const slots = {
8634
8700
  root: ['root'],
8635
- badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`, invisible && 'invisible']
8701
+ badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, invisible && 'invisible']
8636
8702
  };
8637
8703
  return composeClasses(slots, getBadgeUtilityClass, classes);
8638
8704
  };
@@ -8644,43 +8710,29 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8644
8710
  horizontal: 'right'
8645
8711
  },
8646
8712
  classes: classesProp,
8647
- badgeContent: badgeContentProp,
8648
- component = 'span',
8713
+ component,
8649
8714
  children,
8650
8715
  className,
8651
8716
  components = {},
8652
8717
  componentsProps = {},
8653
- invisible: invisibleProp,
8654
8718
  max: maxProp = 99,
8655
- overlap: overlapProp = 'rectangular',
8656
8719
  showZero = false,
8657
- variant: variantProp = 'standard',
8658
-
8659
- /* eslint-disable react/prop-types */
8660
- theme
8720
+ variant: variantProp = 'standard'
8661
8721
  } = props,
8662
8722
  other = _objectWithoutPropertiesLoose(props, _excluded$2l);
8663
8723
 
8664
- const prevProps = usePreviousProps$1({
8724
+ const {
8725
+ anchorOrigin,
8726
+ badgeContent,
8727
+ max,
8728
+ variant,
8729
+ displayValue,
8730
+ invisible
8731
+ } = useBadge(_extends({}, props, {
8665
8732
  anchorOrigin: anchorOriginProp,
8666
- badgeContent: badgeContentProp,
8667
8733
  max: maxProp,
8668
- overlap: overlapProp,
8669
8734
  variant: variantProp
8670
- });
8671
- let invisible = invisibleProp;
8672
-
8673
- if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
8674
- invisible = true;
8675
- }
8676
-
8677
- const {
8678
- anchorOrigin = anchorOriginProp,
8679
- badgeContent,
8680
- max = maxProp,
8681
- overlap = overlapProp,
8682
- variant = variantProp
8683
- } = invisible ? prevProps : props;
8735
+ }));
8684
8736
 
8685
8737
  const ownerState = _extends({}, props, {
8686
8738
  anchorOrigin,
@@ -8688,33 +8740,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8688
8740
  classes: classesProp,
8689
8741
  invisible,
8690
8742
  max,
8691
- overlap,
8692
- variant
8743
+ variant,
8744
+ showZero
8693
8745
  });
8694
8746
 
8695
- let displayValue = '';
8696
-
8697
- if (variant !== 'dot') {
8698
- displayValue = badgeContent > max ? `${max}+` : badgeContent;
8699
- }
8700
-
8701
8747
  const classes = useUtilityClasses$1S(ownerState);
8702
- const Root = components.Root || component;
8703
- const rootProps = componentsProps.root || {};
8748
+ const Root = component || components.Root || 'span';
8749
+ const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
8704
8750
  const Badge = components.Badge || 'span';
8705
- const badgeProps = componentsProps.badge || {};
8706
- return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, !isHostComponent(Root) && {
8707
- as: component,
8708
- ownerState: _extends({}, ownerState, rootProps.ownerState),
8709
- theme
8710
- }, {
8751
+ const badgeProps = appendOwnerState(Badge, componentsProps.badge, ownerState);
8752
+ return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
8711
8753
  ref: ref
8712
8754
  }, other, {
8713
8755
  className: clsx(classes.root, rootProps.className, className),
8714
- children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, !isHostComponent(Badge) && {
8715
- ownerState: _extends({}, ownerState, badgeProps.ownerState),
8716
- theme
8717
- }, {
8756
+ children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
8718
8757
  className: clsx(classes.badge, badgeProps.className),
8719
8758
  children: displayValue
8720
8759
  }))]
@@ -8793,12 +8832,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8793
8832
  */
8794
8833
  max: propTypes.number,
8795
8834
 
8796
- /**
8797
- * Wrapped shape the badge should overlap.
8798
- * @default 'rectangular'
8799
- */
8800
- overlap: propTypes.oneOf(['circular', 'rectangular']),
8801
-
8802
8835
  /**
8803
8836
  * Controls whether the badge is hidden when `badgeContent` is zero.
8804
8837
  * @default false
@@ -9841,7 +9874,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9841
9874
  if (rows) {
9842
9875
  {
9843
9876
  if (minRows || maxRows) {
9844
- console.warn('Material-UI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
9877
+ console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
9845
9878
  }
9846
9879
  }
9847
9880
 
@@ -16733,7 +16766,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
16733
16766
  const svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
16734
16767
  var svgIconClasses$1 = svgIconClasses;
16735
16768
 
16736
- const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"];
16769
+ const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
16737
16770
 
16738
16771
  const useUtilityClasses$1K = ownerState => {
16739
16772
  const {
@@ -16799,6 +16832,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
16799
16832
  component = 'svg',
16800
16833
  fontSize = 'medium',
16801
16834
  htmlColor,
16835
+ inheritViewBox = false,
16802
16836
  titleAccess,
16803
16837
  viewBox = '0 0 24 24'
16804
16838
  } = props,
@@ -16808,21 +16842,27 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
16808
16842
  color,
16809
16843
  component,
16810
16844
  fontSize,
16845
+ inheritViewBox,
16811
16846
  viewBox
16812
16847
  });
16813
16848
 
16849
+ const more = {};
16850
+
16851
+ if (!inheritViewBox) {
16852
+ more.viewBox = viewBox;
16853
+ }
16854
+
16814
16855
  const classes = useUtilityClasses$1K(ownerState);
16815
16856
  return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
16816
16857
  as: component,
16817
16858
  className: clsx(classes.root, className),
16818
16859
  ownerState: ownerState,
16819
16860
  focusable: "false",
16820
- viewBox: viewBox,
16821
16861
  color: htmlColor,
16822
16862
  "aria-hidden": titleAccess ? undefined : true,
16823
16863
  role: titleAccess ? 'img' : undefined,
16824
16864
  ref: ref
16825
- }, other, {
16865
+ }, more, other, {
16826
16866
  children: [children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
16827
16867
  children: titleAccess
16828
16868
  }) : null]
@@ -16879,6 +16919,15 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
16879
16919
  */
16880
16920
  htmlColor: propTypes.string,
16881
16921
 
16922
+ /**
16923
+ * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
16924
+ * prop will be ignored.
16925
+ * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
16926
+ * `component`'s viewBox to the root node.
16927
+ * @default false
16928
+ */
16929
+ inheritViewBox: propTypes.bool,
16930
+
16882
16931
  /**
16883
16932
  * The shape-rendering attribute. The behavior of the different options is described on the
16884
16933
  * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
@@ -23758,18 +23807,21 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23758
23807
  } ;
23759
23808
  var Backdrop$1 = Backdrop;
23760
23809
 
23761
- const _excluded$1K = ["components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
23762
- const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning']));
23810
+ const _excluded$1K = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
23811
+ const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
23812
+ 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
23763
23813
  const RADIUS_STANDARD = 10;
23764
23814
  const RADIUS_DOT = 4;
23765
23815
 
23766
23816
  const extendUtilityClasses$2 = ownerState => {
23767
23817
  const {
23768
23818
  color,
23819
+ anchorOrigin,
23820
+ overlap,
23769
23821
  classes = {}
23770
23822
  } = ownerState;
23771
23823
  return _extends({}, classes, {
23772
- badge: clsx(classes.badge, color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
23824
+ badge: clsx(classes.badge, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
23773
23825
  });
23774
23826
  };
23775
23827
 
@@ -23897,6 +23949,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23897
23949
  duration: theme.transitions.duration.leavingScreen
23898
23950
  })
23899
23951
  }));
23952
+
23953
+ const shouldSpreadAdditionalProps = Slot => {
23954
+ return !Slot || !isHostComponent(Slot);
23955
+ };
23956
+
23900
23957
  const Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
23901
23958
  var _componentsProps$root, _componentsProps$badg;
23902
23959
 
@@ -23906,8 +23963,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23906
23963
  });
23907
23964
 
23908
23965
  const {
23966
+ anchorOrigin: anchorOriginProp = {
23967
+ vertical: 'top',
23968
+ horizontal: 'right'
23969
+ },
23970
+ component = 'span',
23909
23971
  components = {},
23910
23972
  componentsProps = {},
23973
+ overlap: overlapProp = 'rectangular',
23911
23974
  color: colorProp = 'default',
23912
23975
  invisible: invisibleProp,
23913
23976
  badgeContent: badgeContentProp,
@@ -23917,7 +23980,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23917
23980
  other = _objectWithoutPropertiesLoose(props, _excluded$1K);
23918
23981
 
23919
23982
  const prevProps = usePreviousProps$1({
23920
- color: colorProp
23983
+ anchorOrigin: anchorOriginProp,
23984
+ color: colorProp,
23985
+ overlap: overlapProp
23921
23986
  });
23922
23987
  let invisible = invisibleProp;
23923
23988
 
@@ -23926,16 +23991,21 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23926
23991
  }
23927
23992
 
23928
23993
  const {
23929
- color = colorProp
23994
+ color = colorProp,
23995
+ overlap = overlapProp,
23996
+ anchorOrigin = anchorOriginProp
23930
23997
  } = invisible ? prevProps : props;
23931
23998
 
23932
23999
  const ownerState = _extends({}, props, {
24000
+ anchorOrigin,
23933
24001
  invisible,
23934
- color
24002
+ color,
24003
+ overlap
23935
24004
  });
23936
24005
 
23937
24006
  const classes = extendUtilityClasses$2(ownerState);
23938
24007
  return /*#__PURE__*/jsxRuntime_1(BadgeUnstyled$1, _extends({
24008
+ anchorOrigin: anchorOrigin,
23939
24009
  invisible: invisibleProp,
23940
24010
  badgeContent: badgeContentProp,
23941
24011
  showZero: showZero,
@@ -23946,14 +24016,17 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23946
24016
  Badge: BadgeBadge
23947
24017
  }, components),
23948
24018
  componentsProps: {
23949
- root: _extends({}, componentsProps.root, (!components.Root || !isHostComponent(components.Root)) && {
24019
+ root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
24020
+ as: component,
23950
24021
  ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
23951
- color
24022
+ color,
24023
+ overlap
23952
24024
  })
23953
24025
  }),
23954
- badge: _extends({}, componentsProps.badge, (!components.Thumb || !isHostComponent(components.Thumb)) && {
24026
+ badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
23955
24027
  ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
23956
- color
24028
+ color,
24029
+ overlap
23957
24030
  })
23958
24031
  })
23959
24032
  },
@@ -24004,6 +24077,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
24004
24077
  /* @typescript-to-proptypes-ignore */
24005
24078
  .oneOfType([propTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), propTypes.string]),
24006
24079
 
24080
+ /**
24081
+ * The component used for the root node.
24082
+ * Either a string to use a HTML element or a component.
24083
+ */
24084
+ component: propTypes.elementType,
24085
+
24007
24086
  /**
24008
24087
  * The components used for each slot inside the Badge.
24009
24088
  * Either a string to use a HTML element or a component.
@@ -29527,7 +29606,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
29527
29606
  return obj.startAdornment;
29528
29607
  }
29529
29608
 
29530
- const _excluded$1k = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
29609
+ const _excluded$1k = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
29531
29610
  const rootOverridesResolver = (props, styles) => {
29532
29611
  const {
29533
29612
  ownerState
@@ -29728,6 +29807,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
29728
29807
  componentsProps = {},
29729
29808
  defaultValue,
29730
29809
  disabled,
29810
+ disableInjectingGlobalStyles,
29731
29811
  endAdornment,
29732
29812
  fullWidth = false,
29733
29813
  id,
@@ -29958,7 +30038,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
29958
30038
  const Input = components.Input || InputBaseComponent;
29959
30039
  inputProps = _extends({}, inputProps, componentsProps.input);
29960
30040
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
29961
- children: [inputGlobalStyles, /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, !isHostComponent(Root) && {
30041
+ children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, !isHostComponent(Root) && {
29962
30042
  ownerState: _extends({}, ownerState, rootProps.ownerState)
29963
30043
  }, {
29964
30044
  ref: ref,
@@ -30072,6 +30152,13 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
30072
30152
  */
30073
30153
  disabled: propTypes.bool,
30074
30154
 
30155
+ /**
30156
+ * If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
30157
+ * This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
30158
+ * @default false
30159
+ */
30160
+ disableInjectingGlobalStyles: propTypes.bool,
30161
+
30075
30162
  /**
30076
30163
  * End `InputAdornment` for this component.
30077
30164
  */
@@ -31651,69 +31738,84 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
31651
31738
  return `${parse}${String(val).replace(String(parse), '') || 'px'}`;
31652
31739
  }
31653
31740
 
31654
- function generateGrid(globalStyles, theme, breakpoint, ownerState) {
31655
- const size = ownerState[breakpoint];
31741
+ function generateGrid({
31742
+ theme,
31743
+ ownerState
31744
+ }) {
31745
+ let size;
31746
+ return theme.breakpoints.keys.reduce((globalStyles, breakpoint) => {
31747
+ // Use side effect over immutability for better performance.
31748
+ let styles = {};
31656
31749
 
31657
- if (!size) {
31658
- return;
31659
- }
31750
+ if (ownerState[breakpoint]) {
31751
+ size = ownerState[breakpoint];
31752
+ }
31660
31753
 
31661
- let styles = {};
31754
+ if (!size) {
31755
+ return globalStyles;
31756
+ }
31662
31757
 
31663
- if (size === true) {
31664
- // For the auto layouting
31665
- styles = {
31666
- flexBasis: 0,
31667
- flexGrow: 1,
31668
- maxWidth: '100%'
31669
- };
31670
- } else if (size === 'auto') {
31671
- styles = {
31672
- flexBasis: 'auto',
31673
- flexGrow: 0,
31674
- flexShrink: 0,
31675
- maxWidth: 'none',
31676
- width: 'auto'
31677
- };
31678
- } else {
31679
- const columnsBreakpointValues = resolveBreakpointValues({
31680
- values: ownerState.columns,
31681
- breakpoints: theme.breakpoints.values
31682
- });
31683
- const columnValue = typeof columnsBreakpointValues === 'object' ? columnsBreakpointValues[breakpoint] : columnsBreakpointValues; // Keep 7 significant numbers.
31758
+ if (size === true) {
31759
+ // For the auto layouting
31760
+ styles = {
31761
+ flexBasis: 0,
31762
+ flexGrow: 1,
31763
+ maxWidth: '100%'
31764
+ };
31765
+ } else if (size === 'auto') {
31766
+ styles = {
31767
+ flexBasis: 'auto',
31768
+ flexGrow: 0,
31769
+ flexShrink: 0,
31770
+ maxWidth: 'none',
31771
+ width: 'auto'
31772
+ };
31773
+ } else {
31774
+ const columnsBreakpointValues = resolveBreakpointValues({
31775
+ values: ownerState.columns,
31776
+ breakpoints: theme.breakpoints.values
31777
+ });
31778
+ const columnValue = typeof columnsBreakpointValues === 'object' ? columnsBreakpointValues[breakpoint] : columnsBreakpointValues;
31684
31779
 
31685
- const width = `${Math.round(size / columnValue * 10e7) / 10e5}%`;
31686
- let more = {};
31780
+ if (columnValue === undefined || columnValue === null) {
31781
+ return globalStyles;
31782
+ } // Keep 7 significant numbers.
31687
31783
 
31688
- if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
31689
- const themeSpacing = theme.spacing(ownerState.columnSpacing);
31690
31784
 
31691
- if (themeSpacing !== '0px') {
31692
- const fullWidth = `calc(${width} + ${getOffset(themeSpacing)})`;
31693
- more = {
31694
- flexBasis: fullWidth,
31695
- maxWidth: fullWidth
31696
- };
31697
- }
31698
- } // Close to the bootstrap implementation:
31699
- // https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41
31785
+ const width = `${Math.round(size / columnValue * 10e7) / 10e5}%`;
31786
+ let more = {};
31787
+
31788
+ if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
31789
+ const themeSpacing = theme.spacing(ownerState.columnSpacing);
31790
+
31791
+ if (themeSpacing !== '0px') {
31792
+ const fullWidth = `calc(${width} + ${getOffset(themeSpacing)})`;
31793
+ more = {
31794
+ flexBasis: fullWidth,
31795
+ maxWidth: fullWidth
31796
+ };
31797
+ }
31798
+ } // Close to the bootstrap implementation:
31799
+ // https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41
31700
31800
 
31701
31801
 
31702
- styles = _extends({
31703
- flexBasis: width,
31704
- flexGrow: 0,
31705
- maxWidth: width
31706
- }, more);
31707
- } // No need for a media query for the first size.
31802
+ styles = _extends({
31803
+ flexBasis: width,
31804
+ flexGrow: 0,
31805
+ maxWidth: width
31806
+ }, more);
31807
+ } // No need for a media query for the first size.
31708
31808
 
31709
31809
 
31710
- if (theme.breakpoints.values[breakpoint] === 0) {
31711
- Object.assign(globalStyles, styles);
31712
- } else {
31713
- globalStyles[theme.breakpoints.up(breakpoint)] = styles;
31714
- }
31715
- }
31810
+ if (theme.breakpoints.values[breakpoint] === 0) {
31811
+ Object.assign(globalStyles, styles);
31812
+ } else {
31813
+ globalStyles[theme.breakpoints.up(breakpoint)] = styles;
31814
+ }
31716
31815
 
31816
+ return globalStyles;
31817
+ }, {});
31818
+ }
31717
31819
  function generateDirection({
31718
31820
  theme,
31719
31821
  ownerState
@@ -31872,14 +31974,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
31872
31974
  flexWrap: 'nowrap'
31873
31975
  }, ownerState.wrap === 'reverse' && {
31874
31976
  flexWrap: 'wrap-reverse'
31875
- }), generateDirection, generateRowGap, generateColumnGap, ({
31876
- theme,
31877
- ownerState
31878
- }) => theme.breakpoints.keys.reduce((globalStyles, breakpoint) => {
31879
- // Use side effect over immutability for better performance.
31880
- generateGrid(globalStyles, theme, breakpoint, ownerState);
31881
- return globalStyles;
31882
- }, {}));
31977
+ }), generateDirection, generateRowGap, generateColumnGap, generateGrid);
31883
31978
 
31884
31979
  const useUtilityClasses$_ = ownerState => {
31885
31980
  const {
@@ -38556,6 +38651,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
38556
38651
  paddingRight: 0
38557
38652
  }));
38558
38653
  const OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function OutlinedInput(inProps, ref) {
38654
+ var _React$Fragment;
38655
+
38559
38656
  const props = useThemeProps({
38560
38657
  props: inProps,
38561
38658
  name: 'MuiOutlinedInput'
@@ -38573,6 +38670,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
38573
38670
  other = _objectWithoutPropertiesLoose(props, _excluded$M);
38574
38671
 
38575
38672
  const classes = useUtilityClasses$C(props);
38673
+ const muiFormControl = useFormControl();
38674
+ const fcs = formControlState({
38675
+ props,
38676
+ muiFormControl,
38677
+ states: ['required']
38678
+ });
38576
38679
  return /*#__PURE__*/jsxRuntime_1(InputBase$1, _extends({
38577
38680
  components: _extends({
38578
38681
  Root: OutlinedInputRoot,
@@ -38580,7 +38683,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
38580
38683
  }, components),
38581
38684
  renderSuffix: state => /*#__PURE__*/jsxRuntime_1(NotchedOutlineRoot, {
38582
38685
  className: classes.notchedOutline,
38583
- label: label,
38686
+ label: label && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
38687
+ children: [label, "\xA0", '*']
38688
+ })) : label,
38584
38689
  notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)
38585
38690
  }),
38586
38691
  fullWidth: fullWidth,
@@ -41174,10 +41279,18 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41174
41279
 
41175
41280
  if (computeDisplay) {
41176
41281
  if (multiple) {
41177
- if (value.length === 0) {
41178
- display = '';
41282
+ if (displayMultiple.length === 0) {
41283
+ display = null;
41179
41284
  } else {
41180
- display = displayMultiple.reduce((prev, curr) => [prev, ', ', curr]);
41285
+ display = displayMultiple.reduce((output, child, index) => {
41286
+ output.push(child);
41287
+
41288
+ if (index < displayMultiple.length - 1) {
41289
+ output.push(', ');
41290
+ }
41291
+
41292
+ return output;
41293
+ }, []);
41181
41294
  }
41182
41295
  } else {
41183
41296
  display = displaySingle;
@@ -50779,14 +50892,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
50779
50892
  InputMore.notched = InputLabelProps.shrink;
50780
50893
  }
50781
50894
 
50782
- if (label) {
50783
- var _InputLabelProps$requ;
50784
-
50785
- const displayRequired = (_InputLabelProps$requ = InputLabelProps == null ? void 0 : InputLabelProps.required) != null ? _InputLabelProps$requ : required;
50786
- InputMore.label = /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
50787
- children: [label, displayRequired && '\u00a0*']
50788
- });
50789
- }
50895
+ InputMore.label = label;
50790
50896
  }
50791
50897
 
50792
50898
  if (select) {
@@ -52071,6 +52177,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
52071
52177
  exports.unstable_useId = useId;
52072
52178
  exports.unsupportedProp = unsupportedProp;
52073
52179
  exports.useAutocomplete = useAutocomplete;
52180
+ exports.useBadge = useBadge;
52074
52181
  exports.useButton = useButton;
52075
52182
  exports.useControlled = useControlled;
52076
52183
  exports.useEventCallback = useEventCallback;