@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.esm.js +8 -5
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -7372,7 +7372,7 @@ var useStyles$f = makeStyles$1(function (theme) { return ({
|
|
|
7372
7372
|
borderRadius: 12,
|
|
7373
7373
|
margin: function (_a) {
|
|
7374
7374
|
var fullWidth = _a.fullWidth, fullScreen = _a.fullScreen, match_XS = _a.match_XS;
|
|
7375
|
-
return
|
|
7375
|
+
return fullWidth || fullScreen ? 0 : match_XS ? "0px 24px" : "0px 16px";
|
|
7376
7376
|
},
|
|
7377
7377
|
},
|
|
7378
7378
|
backdrop: {
|
|
@@ -7698,7 +7698,7 @@ var useStyles$f = makeStyles$1(function (theme) { return ({
|
|
|
7698
7698
|
transition: "all 0.2s ease-in-out",
|
|
7699
7699
|
height: function (_a) {
|
|
7700
7700
|
var fullScreen = _a.fullScreen, height = _a.height;
|
|
7701
|
-
return fullScreen ? "calc(
|
|
7701
|
+
return fullScreen ? "calc(100dvh - 146px)" : height ? height : "100%";
|
|
7702
7702
|
},
|
|
7703
7703
|
padding: function (_a) {
|
|
7704
7704
|
var bodyPadding = _a.bodyPadding, mobile = _a.mobile;
|
|
@@ -7712,7 +7712,7 @@ var useStyles$f = makeStyles$1(function (theme) { return ({
|
|
|
7712
7712
|
maxHeight: function (_a) {
|
|
7713
7713
|
var bodyMaxHeight = _a.bodyMaxHeight, fullWidth = _a.fullWidth, fullScreen = _a.fullScreen, clientHeight = _a.clientHeight;
|
|
7714
7714
|
return fullScreen
|
|
7715
|
-
? "calc(
|
|
7715
|
+
? "calc(100dvh - 146px)"
|
|
7716
7716
|
: bodyMaxHeight
|
|
7717
7717
|
? bodyMaxHeight
|
|
7718
7718
|
: fullWidth
|
|
@@ -7876,7 +7876,10 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7876
7876
|
: mobile
|
|
7877
7877
|
? -16
|
|
7878
7878
|
: -24,
|
|
7879
|
-
position: bodyMaxHeight ||
|
|
7879
|
+
position: bodyMaxHeight ||
|
|
7880
|
+
height ||
|
|
7881
|
+
(mobile && fullWidth) ||
|
|
7882
|
+
fullScreen
|
|
7880
7883
|
? "fixed"
|
|
7881
7884
|
: "absolute",
|
|
7882
7885
|
width: width
|
|
@@ -7891,7 +7894,7 @@ var Modal = React__default.forwardRef(function (props, ref) {
|
|
|
7891
7894
|
? 320
|
|
7892
7895
|
: "100%",
|
|
7893
7896
|
height: fullScreen
|
|
7894
|
-
? "
|
|
7897
|
+
? "100dvh"
|
|
7895
7898
|
: bodyMaxHeight
|
|
7896
7899
|
? bodyMaxHeight
|
|
7897
7900
|
: height
|