@mui/material 5.12.1 → 5.12.3

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 (92) hide show
  1. package/Accordion/Accordion.d.ts +71 -57
  2. package/Badge/Badge.d.ts +3 -6
  3. package/BottomNavigationAction/BottomNavigationAction.js +4 -1
  4. package/ButtonGroup/ButtonGroup.js +8 -2
  5. package/CHANGELOG.md +188 -0
  6. package/Chip/Chip.js +1 -1
  7. package/Divider/Divider.js +10 -11
  8. package/FormControl/FormControl.js +1 -1
  9. package/Input/inputClasses.d.ts +4 -0
  10. package/InputBase/InputBase.js +1 -1
  11. package/Modal/Modal.d.ts +6 -3
  12. package/Modal/Modal.js +11 -3
  13. package/Modal/index.d.ts +1 -1
  14. package/Modal/index.js +1 -1
  15. package/OverridableComponent.d.ts +1 -1
  16. package/Paper/Paper.d.ts +6 -1
  17. package/Popper/Popper.d.ts +15 -5
  18. package/Popper/Popper.js +31 -6
  19. package/Popper/index.d.ts +1 -1
  20. package/Select/SelectInput.js +4 -1
  21. package/Slider/Slider.js +1 -1
  22. package/Snackbar/Snackbar.js +4 -3
  23. package/SwipeableDrawer/SwipeableDrawer.js +1 -1
  24. package/TextField/TextField.d.ts +21 -2
  25. package/TextField/TextField.js +7 -1
  26. package/index.js +1 -1
  27. package/legacy/ButtonGroup/ButtonGroup.js +7 -3
  28. package/legacy/Divider/Divider.js +17 -17
  29. package/legacy/Drawer/Drawer.js +4 -4
  30. package/legacy/FormControl/FormControl.js +1 -1
  31. package/legacy/InputBase/InputBase.js +1 -1
  32. package/legacy/ListItem/ListItem.js +4 -4
  33. package/legacy/Menu/Menu.js +4 -4
  34. package/legacy/Modal/Modal.js +11 -3
  35. package/legacy/Modal/index.js +1 -1
  36. package/legacy/Popover/Popover.js +4 -4
  37. package/legacy/Popper/Popper.js +32 -7
  38. package/legacy/Slider/Slider.js +1 -1
  39. package/legacy/Snackbar/Snackbar.js +16 -15
  40. package/legacy/SpeedDial/SpeedDial.js +8 -8
  41. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  42. package/legacy/TextField/TextField.js +7 -1
  43. package/legacy/index.js +1 -1
  44. package/legacy/useMediaQuery/useMediaQuery.js +8 -0
  45. package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -1
  46. package/modern/ButtonGroup/ButtonGroup.js +8 -2
  47. package/modern/Chip/Chip.js +1 -1
  48. package/modern/Divider/Divider.js +10 -11
  49. package/modern/FormControl/FormControl.js +1 -1
  50. package/modern/InputBase/InputBase.js +1 -1
  51. package/modern/Modal/Modal.js +11 -3
  52. package/modern/Modal/index.js +1 -1
  53. package/modern/Popper/Popper.js +31 -6
  54. package/modern/Select/SelectInput.js +4 -1
  55. package/modern/Slider/Slider.js +1 -1
  56. package/modern/Snackbar/Snackbar.js +4 -3
  57. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -1
  58. package/modern/TextField/TextField.js +7 -1
  59. package/modern/index.js +1 -1
  60. package/modern/useMediaQuery/useMediaQuery.js +8 -0
  61. package/node/BottomNavigationAction/BottomNavigationAction.js +4 -1
  62. package/node/ButtonBase/Ripple.js +1 -2
  63. package/node/ButtonGroup/ButtonGroup.js +8 -2
  64. package/node/Chip/Chip.js +1 -1
  65. package/node/Divider/Divider.js +10 -11
  66. package/node/FormControl/FormControl.js +1 -1
  67. package/node/Grid/Grid.js +10 -1
  68. package/node/Hidden/Hidden.js +2 -2
  69. package/node/Hidden/HiddenJs.js +1 -2
  70. package/node/InputBase/InputBase.js +1 -1
  71. package/node/Modal/Modal.js +13 -5
  72. package/node/Modal/index.js +15 -18
  73. package/node/Popper/Popper.js +31 -6
  74. package/node/Select/SelectInput.js +4 -1
  75. package/node/Slide/Slide.js +2 -3
  76. package/node/Slider/Slider.js +1 -1
  77. package/node/Snackbar/Snackbar.js +4 -3
  78. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  79. package/node/SwipeableDrawer/SwipeableDrawer.js +3 -4
  80. package/node/Switch/Switch.js +1 -1
  81. package/node/TabScrollButton/TabScrollButton.js +1 -0
  82. package/node/TablePagination/TablePaginationActions.js +2 -2
  83. package/node/TextField/TextField.js +7 -1
  84. package/node/ToggleButton/ToggleButton.js +1 -1
  85. package/node/index.js +1 -1
  86. package/node/styles/index.js +5 -1
  87. package/node/useMediaQuery/useMediaQuery.js +12 -0
  88. package/node/utils/createSvgIcon.js +1 -2
  89. package/package.json +5 -5
  90. package/umd/material-ui.development.js +164 -103
  91. package/umd/material-ui.production.min.js +21 -21
  92. package/useMediaQuery/useMediaQuery.js +8 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.12.1
2
+ * @mui/material v5.12.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1651,7 +1651,6 @@
1651
1651
  // This module is based on https://github.com/airbnb/prop-types-exact repository.
1652
1652
  // However, in order to reduce the number of dependencies and to remove some extra safe checks
1653
1653
  // the module was forked.
1654
-
1655
1654
  const specialProperty = 'exact-prop: \u200b';
1656
1655
  function exactProp(propTypes) {
1657
1656
  return _extends({}, propTypes, {
@@ -2566,7 +2565,7 @@
2566
2565
  return StyleSheet;
2567
2566
  }();
2568
2567
 
2569
- var e="-ms-";var r$1="-moz-";var a="-webkit-";var n="comm";var c="rule";var s="decl";var i="@import";var h="@keyframes";var $=Math.abs;var k=String.fromCharCode;var g=Object.assign;function m(e,r){return C(e,0)^45?(((r<<2^C(e,0))<<2^C(e,1))<<2^C(e,2))<<2^C(e,3):0}function x(e){return e.trim()}function y(e,r){return (e=r.exec(e))?e[0]:e}function j(e,r,a){return e.replace(r,a)}function z(e,r){return e.indexOf(r)}function C(e,r){return e.charCodeAt(r)|0}function O(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function S(e,r){return r.push(e),e}function q(e,r){return e.map(r).join("")}var B=1;var D=1;var E=0;var F=0;var G=0;var H="";function I(e,r,a,n,c,s,t){return {value:e,root:r,parent:a,type:n,props:c,children:s,line:B,column:D,length:t,return:""}}function J(e,r){return g(I("",null,null,"",null,null,0),e,{length:-e.length},r)}function K(){return G}function L(){G=F>0?C(H,--F):0;if(D--,G===10)D=1,B--;return G}function N(){G=F<E?C(H,F++):0;if(D++,G===10)D=1,B++;return G}function P(){return C(H,F)}function Q(){return F}function R(e,r){return O(H,e,r)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U(e){return B=D=1,E=A(H=e),F=0,[]}function V(e){return H="",e}function W(e){return x(R(F-1,ee(e===91?e+2:e===40?e+1:e)))}function Y(e){while(G=P())if(G<33)N();else break;return T(e)>2||T(G)>3?"":" "}function _$4(e,r){while(--r&&N())if(G<48||G>102||G>57&&G<65||G>70&&G<97)break;return R(e,Q()+(r<6&&P()==32&&N()==32))}function ee(e){while(N())switch(G){case e:return F;case 34:case 39:if(e!==34&&e!==39)ee(G);break;case 40:if(e===41)ee(e);break;case 92:N();break}return F}function re(e,r){while(N())if(e+G===47+10)break;else if(e+G===42+42&&P()===47)break;return "/*"+R(r,F-1)+"*"+k(e===47?e:N())}function ae(e){while(!T(P()))N();return R(e,F)}function ne(e){return V(ce("",null,null,null,[""],e=U(e),0,[0],e))}function ce(e,r,a,n,c,s,t,u,i){var f=0;var o=0;var l=t;var v=0;var p=0;var h=0;var b=1;var w=1;var d=1;var $=0;var g="";var m=c;var x=s;var y=n;var O=g;while(w)switch(h=$,$=N()){case 40:if(h!=108&&C(O,l-1)==58){if(z(O+=j(W($),"&","&\f"),"&\f")!=-1)d=-1;break}case 34:case 39:case 91:O+=W($);break;case 9:case 10:case 13:case 32:O+=Y(h);break;case 92:O+=_$4(Q()-1,7);continue;case 47:switch(P()){case 42:case 47:S(te(re(N(),Q()),r,a),i);break;default:O+="/";}break;case 123*b:u[f++]=A(O)*d;case 125*b:case 59:case 0:switch($){case 0:case 125:w=0;case 59+o:if(p>0&&A(O)-l)S(p>32?ue(O+";",n,a,l-1):ue(j(O," ","")+";",n,a,l-2),i);break;case 59:O+=";";default:S(y=se(O,r,a,f,o,c,u,g,m=[],x=[],l),s);if($===123)if(o===0)ce(O,r,y,y,m,s,l,u,x);else switch(v===99&&C(O,3)===110?100:v){case 100:case 109:case 115:ce(e,y,y,n&&S(se(e,y,y,0,0,c,u,g,c,m=[],l),x),c,x,l,u,n?m:x);break;default:ce(O,y,y,y,[""],x,0,u,x);}}f=o=p=0,b=d=1,g=O="",l=t;break;case 58:l=1+A(O),p=h;default:if(b<1)if($==123)--b;else if($==125&&b++==0&&L()==125)continue;switch(O+=k($),$*b){case 38:d=o>0?1:(O+="\f",-1);break;case 44:u[f++]=(A(O)-1)*d,d=1;break;case 64:if(P()===45)O+=W(N());v=P(),o=l=A(g=O+=ae(Q())),$++;break;case 45:if(h===45&&A(O)==2)b=0;}}return s}function se(e,r,a,n,s,t,u,i,f,o,l){var v=s-1;var p=s===0?t:[""];var h=M(p);for(var b=0,w=0,d=0;b<n;++b)for(var k=0,g=O(e,v+1,v=$(w=u[b])),m=e;k<h;++k)if(m=x(w>0?p[k]+" "+g:j(g,/&\f/g,p[k])))f[d++]=m;return I(e,r,a,s===0?c:i,f,o,l)}function te(e,r,a){return I(e,r,a,n,k(K()),O(e,2,-2),0)}function ue(e,r,a,n){return I(e,r,a,s,O(e,0,n),O(e,n+1,-1),n)}function fe(e,r){var a="";var n=M(e);for(var c=0;c<n;c++)a+=r(e[c],c,e,r)||"";return a}function oe(e,r,a,t){switch(e.type){case i:case s:return e.return=e.return||e.value;case n:return "";case h:return e.return=e.value+"{"+fe(e.children,t)+"}";case c:e.value=e.props.join(",");}return A(a=fe(e.children,t))?e.return=e.value+"{"+a+"}":""}function le(e){var r=M(e);return function(a,n,c,s){var t="";for(var u=0;u<r;u++)t+=e[u](a,n,c,s)||"";return t}}
2568
+ var e="-ms-";var r$1="-moz-";var a="-webkit-";var n="comm";var c="rule";var s="decl";var i="@import";var h="@keyframes";var $=Math.abs;var g=String.fromCharCode;var k=Object.assign;function m(e,r){return C(e,0)^45?(((r<<2^C(e,0))<<2^C(e,1))<<2^C(e,2))<<2^C(e,3):0}function x(e){return e.trim()}function y(e,r){return (e=r.exec(e))?e[0]:e}function j(e,r,a){return e.replace(r,a)}function z(e,r){return e.indexOf(r)}function C(e,r){return e.charCodeAt(r)|0}function O(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function S(e,r){return r.push(e),e}function q(e,r){return e.map(r).join("")}var B=1;var D=1;var E=0;var F=0;var G=0;var H="";function I(e,r,a,n,c,s,t){return {value:e,root:r,parent:a,type:n,props:c,children:s,line:B,column:D,length:t,return:""}}function J(e,r){return k(I("",null,null,"",null,null,0),e,{length:-e.length},r)}function K(){return G}function L(){G=F>0?C(H,--F):0;if(D--,G===10)D=1,B--;return G}function N(){G=F<E?C(H,F++):0;if(D++,G===10)D=1,B++;return G}function P(){return C(H,F)}function Q(){return F}function R(e,r){return O(H,e,r)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U(e){return B=D=1,E=A(H=e),F=0,[]}function V(e){return H="",e}function W(e){return x(R(F-1,ee(e===91?e+2:e===40?e+1:e)))}function Y(e){while(G=P())if(G<33)N();else break;return T(e)>2||T(G)>3?"":" "}function _$4(e,r){while(--r&&N())if(G<48||G>102||G>57&&G<65||G>70&&G<97)break;return R(e,Q()+(r<6&&P()==32&&N()==32))}function ee(e){while(N())switch(G){case e:return F;case 34:case 39:if(e!==34&&e!==39)ee(G);break;case 40:if(e===41)ee(e);break;case 92:N();break}return F}function re(e,r){while(N())if(e+G===47+10)break;else if(e+G===42+42&&P()===47)break;return "/*"+R(r,F-1)+"*"+g(e===47?e:N())}function ae(e){while(!T(P()))N();return R(e,F)}function ne(e){return V(ce("",null,null,null,[""],e=U(e),0,[0],e))}function ce(e,r,a,n,c,s,t,u,i){var f=0;var o=0;var l=t;var v=0;var p=0;var h=0;var b=1;var w=1;var d=1;var $=0;var k="";var m=c;var x=s;var y=n;var O=k;while(w)switch(h=$,$=N()){case 40:if(h!=108&&C(O,l-1)==58){if(z(O+=j(W($),"&","&\f"),"&\f")!=-1)d=-1;break}case 34:case 39:case 91:O+=W($);break;case 9:case 10:case 13:case 32:O+=Y(h);break;case 92:O+=_$4(Q()-1,7);continue;case 47:switch(P()){case 42:case 47:S(te(re(N(),Q()),r,a),i);break;default:O+="/";}break;case 123*b:u[f++]=A(O)*d;case 125*b:case 59:case 0:switch($){case 0:case 125:w=0;case 59+o:if(d==-1)O=j(O,/\f/g,"");if(p>0&&A(O)-l)S(p>32?ue(O+";",n,a,l-1):ue(j(O," ","")+";",n,a,l-2),i);break;case 59:O+=";";default:S(y=se(O,r,a,f,o,c,u,k,m=[],x=[],l),s);if($===123)if(o===0)ce(O,r,y,y,m,s,l,u,x);else switch(v===99&&C(O,3)===110?100:v){case 100:case 109:case 115:ce(e,y,y,n&&S(se(e,y,y,0,0,c,u,k,c,m=[],l),x),c,x,l,u,n?m:x);break;default:ce(O,y,y,y,[""],x,0,u,x);}}f=o=p=0,b=d=1,k=O="",l=t;break;case 58:l=1+A(O),p=h;default:if(b<1)if($==123)--b;else if($==125&&b++==0&&L()==125)continue;switch(O+=g($),$*b){case 38:d=o>0?1:(O+="\f",-1);break;case 44:u[f++]=(A(O)-1)*d,d=1;break;case 64:if(P()===45)O+=W(N());v=P(),o=l=A(k=O+=ae(Q())),$++;break;case 45:if(h===45&&A(O)==2)b=0;}}return s}function se(e,r,a,n,s,t,u,i,f,o,l){var v=s-1;var p=s===0?t:[""];var h=M(p);for(var b=0,w=0,d=0;b<n;++b)for(var g=0,k=O(e,v+1,v=$(w=u[b])),m=e;g<h;++g)if(m=x(w>0?p[g]+" "+k:j(k,/&\f/g,p[g])))f[d++]=m;return I(e,r,a,s===0?c:i,f,o,l)}function te(e,r,a){return I(e,r,a,n,g(K()),O(e,2,-2),0)}function ue(e,r,a,n){return I(e,r,a,s,O(e,0,n),O(e,n+1,-1),n)}function fe(e,r){var a="";var n=M(e);for(var c=0;c<n;c++)a+=r(e[c],c,e,r)||"";return a}function oe(e,r,a,t){switch(e.type){case i:case s:return e.return=e.return||e.value;case n:return "";case h:return e.return=e.value+"{"+fe(e.children,t)+"}";case c:e.value=e.props.join(",");}return A(a=fe(e.children,t))?e.return=e.value+"{"+a+"}":""}function le(e){var r=M(e);return function(a,n,c,s){var t="";for(var u=0;u<r;u++)t+=e[u](a,n,c,s)||"";return t}}
2570
2569
 
2571
2570
  var weakMemoize = function weakMemoize(func) {
2572
2571
  // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
@@ -2641,7 +2640,7 @@
2641
2640
  // fallthrough
2642
2641
 
2643
2642
  default:
2644
- parsed[index] += k(character);
2643
+ parsed[index] += g(character);
2645
2644
  }
2646
2645
  } while (character = N());
2647
2646
 
@@ -3854,7 +3853,7 @@
3854
3853
 
3855
3854
  var pkg = {
3856
3855
  name: "@emotion/react",
3857
- version: "11.10.6",
3856
+ version: "11.10.8",
3858
3857
  main: "dist/emotion-react.cjs.js",
3859
3858
  module: "dist/emotion-react.esm.js",
3860
3859
  browser: {
@@ -3917,8 +3916,8 @@
3917
3916
  },
3918
3917
  dependencies: {
3919
3918
  "@babel/runtime": "^7.18.3",
3920
- "@emotion/babel-plugin": "^11.10.6",
3921
- "@emotion/cache": "^11.10.5",
3919
+ "@emotion/babel-plugin": "^11.10.8",
3920
+ "@emotion/cache": "^11.10.8",
3922
3921
  "@emotion/serialize": "^1.1.1",
3923
3922
  "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
3924
3923
  "@emotion/utils": "^1.2.0",
@@ -3935,10 +3934,10 @@
3935
3934
  },
3936
3935
  devDependencies: {
3937
3936
  "@definitelytyped/dtslint": "0.0.112",
3938
- "@emotion/css": "11.10.6",
3939
- "@emotion/css-prettifier": "1.1.1",
3937
+ "@emotion/css": "11.10.8",
3938
+ "@emotion/css-prettifier": "1.1.2",
3940
3939
  "@emotion/server": "11.10.0",
3941
- "@emotion/styled": "11.10.6",
3940
+ "@emotion/styled": "11.10.8",
3942
3941
  "html-tag-names": "^1.1.2",
3943
3942
  react: "16.14.0",
3944
3943
  "svg-tag-names": "^1.1.1",
@@ -6288,6 +6287,9 @@
6288
6287
  return obj;
6289
6288
  }, {}) ;
6290
6289
 
6290
+ // The different signatures imply different meaning for their arguments that can't be expressed structurally.
6291
+ // We express the difference with variable names.
6292
+ /* tslint:disable:unified-signatures */
6291
6293
  /* tslint:enable:unified-signatures */
6292
6294
 
6293
6295
  function createSpacing(spacingInput = 8) {
@@ -7387,6 +7389,7 @@
7387
7389
  return mergedProps;
7388
7390
  }
7389
7391
 
7392
+ /* eslint-disable @typescript-eslint/naming-convention */
7390
7393
  /**
7391
7394
  * Returns a number whose value is limited to the given range.
7392
7395
  * @param {number} value The value to be clamped
@@ -10681,6 +10684,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10681
10684
  });
10682
10685
  }
10683
10686
 
10687
+ function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {
10688
+ return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));
10689
+ }
10690
+
10684
10691
  const defaultContextValue = {
10685
10692
  disableDefaultClasses: false
10686
10693
  };
@@ -10758,7 +10765,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10758
10765
  *
10759
10766
  * The merge order is (the latter overrides the former):
10760
10767
  * 1. The internal props (specified as a getter function to work with get*Props hook result)
10761
- * 2. Additional props (specified internally on an unstyled component)
10768
+ * 2. Additional props (specified internally on a Base UI component)
10762
10769
  * 3. External props specified on the owner component. These should only be used on a root slot.
10763
10770
  * 4. External props specified in the `slotProps.*` prop.
10764
10771
  * 5. The `className` prop - combined from all the above.
@@ -10853,7 +10860,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10853
10860
  *
10854
10861
  * Demos:
10855
10862
  *
10856
- * - [Unstyled badge](https://mui.com/base/react-badge/#hook)
10863
+ * - [Badge](https://mui.com/base/react-badge/#hook)
10857
10864
  *
10858
10865
  * API:
10859
10866
  *
@@ -13367,7 +13374,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13367
13374
  *
13368
13375
  * - [Portal API](https://mui.com/base/react-portal/components-api/#portal)
13369
13376
  */
13370
- const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props, ref) {
13377
+ const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props, forwardedRef) {
13371
13378
  const {
13372
13379
  children,
13373
13380
  container,
@@ -13375,7 +13382,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13375
13382
  } = props;
13376
13383
  const [mountNode, setMountNode] = React__namespace.useState(null);
13377
13384
  // @ts-expect-error TODO upstream fix
13378
- const handleRef = useForkRef( /*#__PURE__*/React__namespace.isValidElement(children) ? children.ref : null, ref);
13385
+ const handleRef = useForkRef( /*#__PURE__*/React__namespace.isValidElement(children) ? children.ref : null, forwardedRef);
13379
13386
  useEnhancedEffect$1(() => {
13380
13387
  if (!disablePortal) {
13381
13388
  setMountNode(getContainer$1(container) || document.body);
@@ -13383,13 +13390,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13383
13390
  }, [container, disablePortal]);
13384
13391
  useEnhancedEffect$1(() => {
13385
13392
  if (mountNode && !disablePortal) {
13386
- setRef(ref, mountNode);
13393
+ setRef(forwardedRef, mountNode);
13387
13394
  return () => {
13388
- setRef(ref, null);
13395
+ setRef(forwardedRef, null);
13389
13396
  };
13390
13397
  }
13391
13398
  return undefined;
13392
- }, [ref, mountNode, disablePortal]);
13399
+ }, [forwardedRef, mountNode, disablePortal]);
13393
13400
  if (disablePortal) {
13394
13401
  if ( /*#__PURE__*/React__namespace.isValidElement(children)) {
13395
13402
  const newProps = {
@@ -13434,12 +13441,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13434
13441
  }
13435
13442
  var Portal$1 = Portal;
13436
13443
 
13437
- function getPopperUnstyledUtilityClass(slot) {
13444
+ function getPopperUtilityClass(slot) {
13438
13445
  return generateUtilityClass('MuiPopper', slot);
13439
13446
  }
13440
13447
  generateUtilityClasses('MuiPopper', ['root']);
13441
13448
 
13442
- const _excluded$26 = ["anchorEl", "children", "component", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
13449
+ const _excluded$26 = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
13443
13450
  _excluded2$9 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
13444
13451
  function flipPlacement(placement, direction) {
13445
13452
  if (direction === 'ltr') {
@@ -13471,15 +13478,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13471
13478
  const slots = {
13472
13479
  root: ['root']
13473
13480
  };
13474
- return composeClasses(slots, useClassNamesOverride(getPopperUnstyledUtilityClass));
13481
+ return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));
13475
13482
  };
13476
13483
  const defaultPopperOptions = {};
13477
- const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, ref) {
13478
- var _ref;
13484
+ const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, forwardedRef) {
13485
+ var _slots$root;
13479
13486
  const {
13480
13487
  anchorEl,
13481
13488
  children,
13482
- component,
13483
13489
  direction,
13484
13490
  disablePortal,
13485
13491
  modifiers,
@@ -13490,10 +13496,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13490
13496
  slotProps = {},
13491
13497
  slots = {},
13492
13498
  TransitionProps
13499
+ // @ts-ignore internal logic
13500
+ // prevent from spreading to DOM, it can come from the parent component e.g. Select.
13493
13501
  } = props,
13494
13502
  other = _objectWithoutPropertiesLoose(props, _excluded$26);
13495
13503
  const tooltipRef = React__namespace.useRef(null);
13496
- const ownRef = useForkRef(tooltipRef, ref);
13504
+ const ownRef = useForkRef(tooltipRef, forwardedRef);
13497
13505
  const popperRef = React__namespace.useRef(null);
13498
13506
  const handlePopperRef = useForkRef(popperRef, popperRefProp);
13499
13507
  const handlePopperRefRef = React__namespace.useRef(handlePopperRef);
@@ -13577,7 +13585,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13577
13585
  childProps.TransitionProps = TransitionProps;
13578
13586
  }
13579
13587
  const classes = useUtilityClasses$1O();
13580
- const Root = (_ref = component != null ? component : slots.root) != null ? _ref : 'div';
13588
+ const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';
13581
13589
  const rootProps = useSlotProps({
13582
13590
  elementType: Root,
13583
13591
  externalSlotProps: slotProps.root,
@@ -13599,13 +13607,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13599
13607
  *
13600
13608
  * Demos:
13601
13609
  *
13602
- * - [Unstyled Popper](https://mui.com/base/react-popper/)
13610
+ * - [Popper](https://mui.com/base/react-popper/)
13603
13611
  *
13604
13612
  * API:
13605
13613
  *
13606
- * - [PopperUnstyled API](https://mui.com/base/react-popper/components-api/#popper-unstyled)
13614
+ * - [Popper API](https://mui.com/base/react-popper/components-api/#popper)
13607
13615
  */
13608
- const PopperUnstyled = /*#__PURE__*/React__namespace.forwardRef(function PopperUnstyled(props, ref) {
13616
+ const Popper$2 = /*#__PURE__*/React__namespace.forwardRef(function Popper(props, forwardedRef) {
13609
13617
  const {
13610
13618
  anchorEl,
13611
13619
  children,
@@ -13659,7 +13667,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13659
13667
  direction: direction,
13660
13668
  disablePortal: disablePortal,
13661
13669
  modifiers: modifiers,
13662
- ref: ref,
13670
+ ref: forwardedRef,
13663
13671
  open: transition ? !exited : open,
13664
13672
  placement: placement,
13665
13673
  popperOptions: popperOptions,
@@ -13680,7 +13688,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13680
13688
  }))
13681
13689
  });
13682
13690
  });
13683
- PopperUnstyled.propTypes /* remove-proptypes */ = {
13691
+ Popper$2.propTypes /* remove-proptypes */ = {
13684
13692
  // ----------------------------- Warning --------------------------------
13685
13693
  // | These PropTypes are generated from the TypeScript type definitions |
13686
13694
  // | To update them edit TypeScript types and run "yarn proptypes" |
@@ -13792,17 +13800,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13792
13800
  slots: PropTypes.shape({
13793
13801
  root: PropTypes.elementType
13794
13802
  }),
13795
- /**
13796
- * @ignore
13797
- */
13798
- style: PropTypes.object,
13799
13803
  /**
13800
13804
  * Help supporting a react-transition-group/Transition component.
13801
13805
  * @default false
13802
13806
  */
13803
13807
  transition: PropTypes.bool
13804
13808
  } ;
13805
- var PopperUnstyled$1 = PopperUnstyled;
13809
+ var BasePopper = Popper$2;
13806
13810
 
13807
13811
  // Is a vertical scrollbar displayed?
13808
13812
  function isOverflowing(container) {
@@ -14020,10 +14024,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14020
14024
  function getModalUtilityClass(slot) {
14021
14025
  return generateUtilityClass('MuiModal', slot);
14022
14026
  }
14023
- const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
14024
- var modalUnstyledClasses$1 = modalUnstyledClasses;
14027
+ const modalClasses$1 = generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
14028
+ var modalUnstyledClasses = modalClasses$1;
14025
14029
 
14026
- const _excluded$25 = ["children", "closeAfterTransition", "component", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
14030
+ const _excluded$25 = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
14027
14031
  const useUtilityClasses$1N = ownerState => {
14028
14032
  const {
14029
14033
  open,
@@ -14061,18 +14065,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14061
14065
  *
14062
14066
  * Demos:
14063
14067
  *
14064
- * - [Unstyled Modal](https://mui.com/base/react-modal/)
14068
+ * - [Modal](https://mui.com/base/react-modal/)
14065
14069
  *
14066
14070
  * API:
14067
14071
  *
14068
- * - [ModalUnstyled API](https://mui.com/base/react-modal/components-api/#modal-unstyled)
14072
+ * - [Modal API](https://mui.com/base/react-modal/components-api/#modal)
14069
14073
  */
14070
- const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUnstyled(props, forwardedRef) {
14071
- var _props$ariaHidden, _ref;
14074
+ const Modal$2 = /*#__PURE__*/React__namespace.forwardRef(function Modal(props, forwardedRef) {
14075
+ var _props$ariaHidden, _slots$root;
14072
14076
  const {
14073
14077
  children,
14074
14078
  closeAfterTransition = false,
14075
- component,
14076
14079
  container,
14077
14080
  disableAutoFocus = false,
14078
14081
  disableEnforceFocus = false,
@@ -14083,7 +14086,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14083
14086
  hideBackdrop = false,
14084
14087
  keepMounted = false,
14085
14088
  // private
14086
- manager = defaultManager,
14089
+ manager: managerProp = defaultManager,
14087
14090
  onBackdropClick,
14088
14091
  onClose,
14089
14092
  onKeyDown,
@@ -14094,6 +14097,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14094
14097
  slots = {}
14095
14098
  } = props,
14096
14099
  other = _objectWithoutPropertiesLoose(props, _excluded$25);
14100
+ // TODO: `modal`` must change its type in this file to match the type of methods
14101
+ // provided by `ModalManager`
14102
+ const manager = managerProp;
14097
14103
  const [exited, setExited] = React__namespace.useState(!open);
14098
14104
  const modal = React__namespace.useRef({});
14099
14105
  const mountNodeRef = React__namespace.useRef(null);
@@ -14224,7 +14230,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14224
14230
  childProps.onEnter = createChainedFunction(handleEnter, children.props.onEnter);
14225
14231
  childProps.onExited = createChainedFunction(handleExited, children.props.onExited);
14226
14232
  }
14227
- const Root = (_ref = component != null ? component : slots.root) != null ? _ref : 'div';
14233
+ const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';
14228
14234
  const rootProps = useSlotProps({
14229
14235
  elementType: Root,
14230
14236
  externalSlotProps: slotProps.root,
@@ -14270,7 +14276,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14270
14276
  }))
14271
14277
  });
14272
14278
  });
14273
- ModalUnstyled.propTypes /* remove-proptypes */ = {
14279
+ Modal$2.propTypes /* remove-proptypes */ = {
14274
14280
  // ----------------------------- Warning --------------------------------
14275
14281
  // | These PropTypes are generated from the TypeScript type definitions |
14276
14282
  // | To update them edit TypeScript types and run "yarn proptypes" |
@@ -14284,11 +14290,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14284
14290
  * @default false
14285
14291
  */
14286
14292
  closeAfterTransition: PropTypes.bool,
14287
- /**
14288
- * The component used for the root node.
14289
- * Either a string to use a HTML element or a component.
14290
- */
14291
- component: PropTypes.elementType,
14292
14293
  /**
14293
14294
  * An HTML element or function that returns one.
14294
14295
  * The `container` will have the portal children appended to it.
@@ -14361,10 +14362,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14361
14362
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
14362
14363
  */
14363
14364
  onClose: PropTypes.func,
14364
- /**
14365
- * @ignore
14366
- */
14367
- onKeyDown: PropTypes.func,
14368
14365
  /**
14369
14366
  * If `true`, the component is shown.
14370
14367
  */
@@ -14387,7 +14384,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14387
14384
  root: PropTypes.elementType
14388
14385
  })
14389
14386
  } ;
14390
- var ModalUnstyled$1 = ModalUnstyled;
14387
+ var ModalUnstyled = Modal$2;
14391
14388
 
14392
14389
  /**
14393
14390
  * NoSsr purposely removes components from the subject of Server Side Rendering (SSR).
@@ -14549,6 +14546,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14549
14546
  setActive(activeIndex);
14550
14547
  }
14551
14548
  }
14549
+ function areValuesEqual(newValue, oldValue) {
14550
+ if (typeof newValue === 'number' && typeof oldValue === 'number') {
14551
+ return newValue === oldValue;
14552
+ }
14553
+ if (typeof newValue === 'object' && typeof oldValue === 'object') {
14554
+ return areArraysEqual(newValue, oldValue);
14555
+ }
14556
+ return false;
14557
+ }
14552
14558
  const axisProps = {
14553
14559
  horizontal: {
14554
14560
  offset: percent => ({
@@ -14602,7 +14608,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14602
14608
  *
14603
14609
  * Demos:
14604
14610
  *
14605
- * - [Unstyled Slider](https://mui.com/base/react-slider/#hook)
14611
+ * - [Slider](https://mui.com/base/react-slider/#hook)
14606
14612
  *
14607
14613
  * API:
14608
14614
  *
@@ -14622,7 +14628,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14622
14628
  onChange,
14623
14629
  onChangeCommitted,
14624
14630
  orientation = 'horizontal',
14625
- ref,
14631
+ rootRef: ref,
14626
14632
  scale = Identity$1,
14627
14633
  step = 1,
14628
14634
  tabIndex,
@@ -14751,7 +14757,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14751
14757
  }
14752
14758
  setValueState(newValue);
14753
14759
  setFocusedThumbIndex(index);
14754
- if (handleChange) {
14760
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
14755
14761
  handleChange(event, newValue, index);
14756
14762
  }
14757
14763
  if (onChangeCommitted) {
@@ -14854,7 +14860,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14854
14860
  if (!dragging && moveCount.current > INTENTIONAL_DRAG_COUNT_THRESHOLD) {
14855
14861
  setDragging(true);
14856
14862
  }
14857
- if (handleChange && newValue !== valueDerived) {
14863
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
14858
14864
  handleChange(nativeEvent, newValue, activeIndex);
14859
14865
  }
14860
14866
  });
@@ -14909,7 +14915,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14909
14915
  setActive
14910
14916
  });
14911
14917
  setValueState(newValue);
14912
- if (handleChange) {
14918
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
14913
14919
  handleChange(nativeEvent, newValue, activeIndex);
14914
14920
  }
14915
14921
  }
@@ -14976,7 +14982,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14976
14982
  setActive
14977
14983
  });
14978
14984
  setValueState(newValue);
14979
- if (handleChange) {
14985
+ if (handleChange && !areValuesEqual(newValue, valueDerived)) {
14980
14986
  handleChange(event, newValue, activeIndex);
14981
14987
  }
14982
14988
  }
@@ -15055,6 +15061,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15055
15061
  marks: marks,
15056
15062
  open,
15057
15063
  range,
15064
+ rootRef: handleRef,
15058
15065
  trackLeap,
15059
15066
  trackOffset,
15060
15067
  values
@@ -15066,7 +15073,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15066
15073
  *
15067
15074
  * Demos:
15068
15075
  *
15069
- * - [Unstyled Snackbar](https://mui.com/base/react-snackbar/#hook)
15076
+ * - [Snackbar](https://mui.com/base/react-snackbar/#hook)
15070
15077
  *
15071
15078
  * API:
15072
15079
  *
@@ -15078,7 +15085,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15078
15085
  disableWindowBlurListener = false,
15079
15086
  onClose,
15080
15087
  open,
15081
- ref,
15082
15088
  resumeHideDuration
15083
15089
  } = parameters;
15084
15090
  const timerAutoHide = React__namespace.useRef();
@@ -15177,7 +15183,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15177
15183
  const propsEventHandlers = extractEventHandlers(parameters);
15178
15184
  const externalEventHandlers = _extends({}, propsEventHandlers, otherHandlers);
15179
15185
  return _extends({
15180
- ref,
15181
15186
  // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
15182
15187
  // See https://github.com/mui/material-ui/issues/29080
15183
15188
  role: 'presentation'
@@ -15228,7 +15233,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15228
15233
  *
15229
15234
  * - [TextareaAutosize API](https://mui.com/base/react-textarea-autosize/components-api/#textarea-autosize)
15230
15235
  */
15231
- const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
15236
+ const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, forwardedRef) {
15232
15237
  const {
15233
15238
  onChange,
15234
15239
  maxRows,
@@ -15241,7 +15246,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15241
15246
  current: isControlled
15242
15247
  } = React__namespace.useRef(value != null);
15243
15248
  const inputRef = React__namespace.useRef(null);
15244
- const handleRef = useForkRef(ref, inputRef);
15249
+ const handleRef = useForkRef(forwardedRef, inputRef);
15245
15250
  const shadowRef = React__namespace.useRef(null);
15246
15251
  const renders = React__namespace.useRef(0);
15247
15252
  const [state, setState] = React__namespace.useState({
@@ -20548,8 +20553,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20548
20553
  } ;
20549
20554
  var AppBar$1 = AppBar;
20550
20555
 
20551
- const _excluded$1R = ["components", "componentsProps", "slots", "slotProps"];
20552
- const PopperRoot = styled$1(PopperUnstyled$1, {
20556
+ const _excluded$1R = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
20557
+ const PopperRoot = styled$1(BasePopper, {
20553
20558
  name: 'MuiPopper',
20554
20559
  slot: 'Root',
20555
20560
  overridesResolver: (props, styles) => styles.root
@@ -20575,20 +20580,44 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20575
20580
  name: 'MuiPopper'
20576
20581
  });
20577
20582
  const {
20583
+ anchorEl,
20584
+ component,
20578
20585
  components,
20579
20586
  componentsProps,
20587
+ container,
20588
+ disablePortal,
20589
+ keepMounted,
20590
+ modifiers,
20591
+ open,
20592
+ placement,
20593
+ popperOptions,
20594
+ popperRef,
20595
+ transition,
20580
20596
  slots,
20581
20597
  slotProps
20582
20598
  } = props,
20583
20599
  other = _objectWithoutPropertiesLoose(props, _excluded$1R);
20584
20600
  const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
20601
+ const otherProps = _extends({
20602
+ anchorEl,
20603
+ container,
20604
+ disablePortal,
20605
+ keepMounted,
20606
+ modifiers,
20607
+ open,
20608
+ placement,
20609
+ popperOptions,
20610
+ popperRef,
20611
+ transition
20612
+ }, other);
20585
20613
  return /*#__PURE__*/jsxRuntime_1(PopperRoot, _extends({
20614
+ as: component,
20586
20615
  direction: theme == null ? void 0 : theme.direction,
20587
20616
  slots: {
20588
20617
  root: RootComponent
20589
20618
  },
20590
20619
  slotProps: slotProps != null ? slotProps : componentsProps
20591
- }, other, {
20620
+ }, otherProps, {
20592
20621
  ref: ref
20593
20622
  }));
20594
20623
  });
@@ -20609,9 +20638,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20609
20638
  */
20610
20639
  children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
20611
20640
  /**
20612
- * @ignore
20641
+ * The component used for the root node.
20642
+ * Either a string to use a HTML element or a component.
20613
20643
  */
20614
- component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
20644
+ component: PropTypes.elementType,
20615
20645
  /**
20616
20646
  * The components used for each slot inside the Popper.
20617
20647
  * Either a string to use a HTML element or a component.
@@ -21139,7 +21169,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21139
21169
  size = 'medium',
21140
21170
  variant = 'filled',
21141
21171
  tabIndex,
21142
- skipFocusWhenDisabled = false
21172
+ skipFocusWhenDisabled = false // TODO v6: Rename to `focusableWhenDisabled`.
21143
21173
  } = props,
21144
21174
  other = _objectWithoutPropertiesLoose(props, _excluded$1P);
21145
21175
  const chipRef = React__namespace.useRef(null);
@@ -21779,7 +21809,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21779
21809
  if (inputRef.current && event.currentTarget === event.target) {
21780
21810
  inputRef.current.focus();
21781
21811
  }
21782
- if (onClick) {
21812
+ if (onClick && !fcs.disabled) {
21783
21813
  onClick(event);
21784
21814
  }
21785
21815
  };
@@ -24541,7 +24571,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24541
24571
  icon,
24542
24572
  label,
24543
24573
  onChange,
24544
- onClick,
24574
+ onClick
24575
+ // eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
24576
+ ,
24577
+
24545
24578
  value
24546
24579
  } = props,
24547
24580
  other = _objectWithoutPropertiesLoose(props, _excluded$1G);
@@ -25415,9 +25448,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25415
25448
  borderBottomRightRadius: 0,
25416
25449
  borderBottomLeftRadius: 0
25417
25450
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
25418
- borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25451
+ borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
25452
+ [`&.${buttonGroupClasses$1.disabled}`]: {
25453
+ borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25454
+ }
25419
25455
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
25420
- borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25456
+ borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
25457
+ [`&.${buttonGroupClasses$1.disabled}`]: {
25458
+ borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25459
+ }
25421
25460
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
25422
25461
  borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
25423
25462
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
@@ -27172,8 +27211,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27172
27211
  };
27173
27212
  }
27174
27213
 
27175
- const _excluded$1s = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "slotProps", "slots", "theme"];
27176
- const modalClasses = modalUnstyledClasses$1;
27214
+ const _excluded$1s = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
27215
+ const modalClasses = modalUnstyledClasses;
27177
27216
  const ModalRoot = styled$1('div', {
27178
27217
  name: 'MuiModal',
27179
27218
  slot: 'Root',
@@ -27232,6 +27271,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27232
27271
  className,
27233
27272
  closeAfterTransition = false,
27234
27273
  children,
27274
+ container,
27235
27275
  component,
27236
27276
  components = {},
27237
27277
  componentsProps = {},
@@ -27243,6 +27283,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27243
27283
  disableScrollLock = false,
27244
27284
  hideBackdrop = false,
27245
27285
  keepMounted = false,
27286
+ onBackdropClick,
27287
+ onClose,
27288
+ open,
27246
27289
  slotProps,
27247
27290
  slots,
27248
27291
  // eslint-disable-next-line react/prop-types
@@ -27251,6 +27294,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27251
27294
  other = _objectWithoutPropertiesLoose(props, _excluded$1s);
27252
27295
  const [exited, setExited] = React__namespace.useState(true);
27253
27296
  const commonProps = {
27297
+ container,
27254
27298
  closeAfterTransition,
27255
27299
  disableAutoFocus,
27256
27300
  disableEnforceFocus,
@@ -27259,7 +27303,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27259
27303
  disableRestoreFocus,
27260
27304
  disableScrollLock,
27261
27305
  hideBackdrop,
27262
- keepMounted
27306
+ keepMounted,
27307
+ onBackdropClick,
27308
+ onClose,
27309
+ open
27263
27310
  };
27264
27311
  const ownerState = _extends({}, props, commonProps, {
27265
27312
  exited
@@ -27268,7 +27315,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27268
27315
  const BackdropSlot = (_ref2 = (_slots$backdrop = slots == null ? void 0 : slots.backdrop) != null ? _slots$backdrop : components.Backdrop) != null ? _ref2 : BackdropComponent;
27269
27316
  const rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
27270
27317
  const backdropSlotProps = (_slotProps$backdrop = slotProps == null ? void 0 : slotProps.backdrop) != null ? _slotProps$backdrop : componentsProps.backdrop;
27271
- return /*#__PURE__*/jsxRuntime_1(ModalUnstyled$1, _extends({
27318
+ return /*#__PURE__*/jsxRuntime_1(ModalUnstyled, _extends({
27272
27319
  slots: {
27273
27320
  root: RootSlot,
27274
27321
  backdrop: BackdropSlot
@@ -28240,7 +28287,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28240
28287
  alignSelf: 'stretch',
28241
28288
  height: 'auto'
28242
28289
  }), ({
28243
- theme,
28244
28290
  ownerState
28245
28291
  }) => _extends({}, ownerState.children && {
28246
28292
  display: 'flex',
@@ -28248,12 +28294,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28248
28294
  textAlign: 'center',
28249
28295
  border: 0,
28250
28296
  '&::before, &::after': {
28251
- position: 'relative',
28252
- width: '100%',
28253
- borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
28254
- top: '50%',
28255
28297
  content: '""',
28256
- transform: 'translateY(50%)'
28298
+ alignSelf: 'center'
28299
+ }
28300
+ }), ({
28301
+ theme,
28302
+ ownerState
28303
+ }) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
28304
+ '&::before, &::after': {
28305
+ width: '100%',
28306
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
28257
28307
  }
28258
28308
  }), ({
28259
28309
  theme,
@@ -28262,11 +28312,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28262
28312
  flexDirection: 'column',
28263
28313
  '&::before, &::after': {
28264
28314
  height: '100%',
28265
- top: '0%',
28266
- left: '50%',
28267
- borderTop: 0,
28268
- borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
28269
- transform: 'translateX(0%)'
28315
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
28270
28316
  }
28271
28317
  }), ({
28272
28318
  ownerState
@@ -29793,7 +29839,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29793
29839
  if (!isMuiElement(child, ['Input', 'Select'])) {
29794
29840
  return;
29795
29841
  }
29796
- if (isFilled(child.props, true)) {
29842
+ if (isFilled(child.props, true) || isFilled(child.props.inputProps, true)) {
29797
29843
  initialFilled = true;
29798
29844
  }
29799
29845
  });
@@ -31453,6 +31499,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31453
31499
  * @deprecated Not used internally. Use `MediaQueryListEvent` from lib.dom.d.ts instead.
31454
31500
  */
31455
31501
 
31502
+ /**
31503
+ * @deprecated Not used internally. Use `MediaQueryList` from lib.dom.d.ts instead.
31504
+ */
31505
+
31506
+ /**
31507
+ * @deprecated Not used internally. Use `(event: MediaQueryListEvent) => void` instead.
31508
+ */
31509
+
31456
31510
  function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
31457
31511
  const [match, setMatch] = React__namespace.useState(() => {
31458
31512
  if (noSsr && matchMedia) {
@@ -39347,7 +39401,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39347
39401
  readOnly,
39348
39402
  renderValue,
39349
39403
  SelectDisplayProps = {},
39350
- tabIndex: tabIndexProp,
39404
+ tabIndex: tabIndexProp
39405
+ // catching `type` from Input which makes no sense for SelectInput
39406
+ ,
39407
+
39351
39408
  value: valueProp,
39352
39409
  variant = 'standard'
39353
39410
  } = props,
@@ -40879,7 +40936,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40879
40936
  trackOffset,
40880
40937
  trackLeap
40881
40938
  } = useSlider(_extends({}, ownerState, {
40882
- ref
40939
+ rootRef: ref
40883
40940
  }));
40884
40941
  ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
40885
40942
  ownerState.dragging = dragging;
@@ -41543,15 +41600,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41543
41600
  const {
41544
41601
  getRootProps,
41545
41602
  onClickAway
41546
- } = useSnackbar(_extends({}, ownerState, {
41547
- ref
41548
- }));
41603
+ } = useSnackbar(_extends({}, ownerState));
41549
41604
  const [exited, setExited] = React__namespace.useState(true);
41550
41605
  const rootProps = useSlotProps({
41551
41606
  elementType: SnackbarRoot,
41552
41607
  getSlotProps: getRootProps,
41553
41608
  externalForwardedProps: other,
41554
41609
  ownerState,
41610
+ additionalProps: {
41611
+ ref
41612
+ },
41555
41613
  className: [classes.root, className]
41556
41614
  });
41557
41615
  const handleExited = node => {
@@ -44901,7 +44959,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44901
44959
  SwipeAreaProps,
44902
44960
  swipeAreaWidth = 20,
44903
44961
  transitionDuration = transitionDurationDefault,
44904
- variant = 'temporary'
44962
+ variant = 'temporary' // Mobile first.
44905
44963
  } = props,
44906
44964
  ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded$k),
44907
44965
  other = _objectWithoutPropertiesLoose(props, _excluded2);
@@ -48524,7 +48582,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48524
48582
  const textFieldClasses = generateUtilityClasses('MuiTextField', ['root']);
48525
48583
  var textFieldClasses$1 = textFieldClasses;
48526
48584
 
48527
- const _excluded$3 = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
48585
+ const _excluded$3 = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"];
48528
48586
  const variantComponent = {
48529
48587
  standard: Input$1,
48530
48588
  filled: FilledInput$1,
@@ -48606,6 +48664,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48606
48664
  name,
48607
48665
  onBlur,
48608
48666
  onChange,
48667
+ onClick,
48609
48668
  onFocus,
48610
48669
  placeholder,
48611
48670
  required = false,
@@ -48670,6 +48729,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48670
48729
  onBlur: onBlur,
48671
48730
  onChange: onChange,
48672
48731
  onFocus: onFocus,
48732
+ onClick: onClick,
48673
48733
  placeholder: placeholder,
48674
48734
  inputProps: inputProps
48675
48735
  }, InputMore, InputProps));
@@ -48828,6 +48888,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48828
48888
  * You can pull out the new value by accessing `event.target.value` (string).
48829
48889
  */
48830
48890
  onChange: PropTypes.func,
48891
+ /**
48892
+ * @ignore
48893
+ */
48894
+ onClick: PropTypes.func,
48831
48895
  /**
48832
48896
  * @ignore
48833
48897
  */
@@ -49528,7 +49592,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49528
49592
  exports.alertTitleClasses = alertTitleClasses$1;
49529
49593
  exports.alpha = alpha;
49530
49594
  exports.appBarClasses = appBarClasses$1;
49531
- exports.ariaHidden = ariaHidden;
49532
49595
  exports.autocompleteClasses = autocompleteClasses$1;
49533
49596
  exports.avatarClasses = avatarClasses$1;
49534
49597
  exports.avatarGroupClasses = avatarGroupClasses$1;
@@ -49657,7 +49720,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49657
49720
  exports.getMenuItemUtilityClass = getMenuItemUtilityClass;
49658
49721
  exports.getMenuUtilityClass = getMenuUtilityClass;
49659
49722
  exports.getMobileStepperUtilityClass = getMobileStepperUtilityClass;
49660
- exports.getModalUtilityClass = getModalUtilityClass;
49661
49723
  exports.getNativeSelectUtilityClasses = getNativeSelectUtilityClasses;
49662
49724
  exports.getOffsetLeft = getOffsetLeft;
49663
49725
  exports.getOffsetTop = getOffsetTop;
@@ -49737,7 +49799,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49737
49799
  exports.menuItemClasses = menuItemClasses$1;
49738
49800
  exports.mobileStepperClasses = mobileStepperClasses$1;
49739
49801
  exports.modalClasses = modalClasses;
49740
- exports.modalUnstyledClasses = modalUnstyledClasses$1;
49741
49802
  exports.nativeSelectClasses = nativeSelectClasses$1;
49742
49803
  exports.outlinedInputClasses = outlinedInputClasses$1;
49743
49804
  exports.ownerDocument = ownerDocument;