@yosgo/swap-ui 1.0.141 → 1.0.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -7377,7 +7377,7 @@ var useStyles$f = core.makeStyles(function (theme) { return ({
7377
7377
  borderRadius: 12,
7378
7378
  margin: function (_a) {
7379
7379
  var fullWidth = _a.fullWidth, fullScreen = _a.fullScreen, match_XS = _a.match_XS;
7380
- return (fullWidth || fullScreen) ? 0 : match_XS ? "0px 24px" : "0px 16px";
7380
+ return fullWidth || fullScreen ? 0 : match_XS ? "0px 24px" : "0px 16px";
7381
7381
  },
7382
7382
  },
7383
7383
  backdrop: {
@@ -7703,7 +7703,7 @@ var useStyles$f = core.makeStyles(function (theme) { return ({
7703
7703
  transition: "all 0.2s ease-in-out",
7704
7704
  height: function (_a) {
7705
7705
  var fullScreen = _a.fullScreen, height = _a.height;
7706
- return fullScreen ? "calc(100vh - 146px)" : height ? height : "100%";
7706
+ return fullScreen ? "calc(100dvh - 146px)" : height ? height : "100%";
7707
7707
  },
7708
7708
  padding: function (_a) {
7709
7709
  var bodyPadding = _a.bodyPadding, mobile = _a.mobile;
@@ -7717,7 +7717,7 @@ var useStyles$f = core.makeStyles(function (theme) { return ({
7717
7717
  maxHeight: function (_a) {
7718
7718
  var bodyMaxHeight = _a.bodyMaxHeight, fullWidth = _a.fullWidth, fullScreen = _a.fullScreen, clientHeight = _a.clientHeight;
7719
7719
  return fullScreen
7720
- ? "calc(100vh - 146px)"
7720
+ ? "calc(100dvh - 146px)"
7721
7721
  : bodyMaxHeight
7722
7722
  ? bodyMaxHeight
7723
7723
  : fullWidth
@@ -7881,7 +7881,10 @@ var Modal = React__default.forwardRef(function (props, ref) {
7881
7881
  : mobile
7882
7882
  ? -16
7883
7883
  : -24,
7884
- position: bodyMaxHeight || height || (mobile && fullWidth) || fullScreen
7884
+ position: bodyMaxHeight ||
7885
+ height ||
7886
+ (mobile && fullWidth) ||
7887
+ fullScreen
7885
7888
  ? "fixed"
7886
7889
  : "absolute",
7887
7890
  width: width
@@ -7896,7 +7899,7 @@ var Modal = React__default.forwardRef(function (props, ref) {
7896
7899
  ? 320
7897
7900
  : "100%",
7898
7901
  height: fullScreen
7899
- ? "100vh"
7902
+ ? "100dvh"
7900
7903
  : bodyMaxHeight
7901
7904
  ? bodyMaxHeight
7902
7905
  : height