@deframe-sdk/components 0.1.59 → 0.1.60
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/dist/index.js +25 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5269,7 +5269,7 @@ var SwapSignatureWarningViewSimple = ({
|
|
|
5269
5269
|
React6.useEffect(() => {
|
|
5270
5270
|
const timer = setTimeout(() => {
|
|
5271
5271
|
onCancel == null ? void 0 : onCancel();
|
|
5272
|
-
},
|
|
5272
|
+
}, 2e3);
|
|
5273
5273
|
return () => clearTimeout(timer);
|
|
5274
5274
|
}, [onCancel]);
|
|
5275
5275
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -5461,7 +5461,12 @@ function SuccessIcon() {
|
|
|
5461
5461
|
}
|
|
5462
5462
|
);
|
|
5463
5463
|
}
|
|
5464
|
-
var SwapSuccessViewSimple = ({ labels }) => {
|
|
5464
|
+
var SwapSuccessViewSimple = ({ labels, onClose }) => {
|
|
5465
|
+
React6__namespace.default.useEffect(() => {
|
|
5466
|
+
if (!onClose) return;
|
|
5467
|
+
const timer = setTimeout(onClose, 2e3);
|
|
5468
|
+
return () => clearTimeout(timer);
|
|
5469
|
+
}, [onClose]);
|
|
5465
5470
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5466
5471
|
"div",
|
|
5467
5472
|
{
|
|
@@ -5663,8 +5668,14 @@ function ErrorIcon() {
|
|
|
5663
5668
|
}
|
|
5664
5669
|
var SwapTransactionFailedViewSimple = ({
|
|
5665
5670
|
errorTitle,
|
|
5666
|
-
errorDescription
|
|
5671
|
+
errorDescription,
|
|
5672
|
+
onBack
|
|
5667
5673
|
}) => {
|
|
5674
|
+
React6__namespace.default.useEffect(() => {
|
|
5675
|
+
if (!onBack) return;
|
|
5676
|
+
const timer = setTimeout(onBack, 2e3);
|
|
5677
|
+
return () => clearTimeout(timer);
|
|
5678
|
+
}, [onBack]);
|
|
5668
5679
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5669
5680
|
"div",
|
|
5670
5681
|
{
|
|
@@ -13422,7 +13433,7 @@ var EarnDepositSuccessSimpleView = ({
|
|
|
13422
13433
|
}) => {
|
|
13423
13434
|
React6__namespace.default.useEffect(() => {
|
|
13424
13435
|
if (!onClose) return;
|
|
13425
|
-
const timer = setTimeout(onClose,
|
|
13436
|
+
const timer = setTimeout(onClose, 2e3);
|
|
13426
13437
|
return () => clearTimeout(timer);
|
|
13427
13438
|
}, [onClose]);
|
|
13428
13439
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "earn-deposit-success-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13512,7 +13523,7 @@ var EarnDepositWarningSimpleView = ({
|
|
|
13512
13523
|
}) => {
|
|
13513
13524
|
React6__namespace.default.useEffect(() => {
|
|
13514
13525
|
if (!onBack) return;
|
|
13515
|
-
const timer = setTimeout(onBack,
|
|
13526
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13516
13527
|
return () => clearTimeout(timer);
|
|
13517
13528
|
}, [onBack]);
|
|
13518
13529
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "earn-deposit-warning-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13604,7 +13615,7 @@ var EarnDepositFailedSimpleView = ({
|
|
|
13604
13615
|
}) => {
|
|
13605
13616
|
React6__namespace.default.useEffect(() => {
|
|
13606
13617
|
if (!onBack) return;
|
|
13607
|
-
const timer = setTimeout(onBack,
|
|
13618
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13608
13619
|
return () => clearTimeout(timer);
|
|
13609
13620
|
}, [onBack]);
|
|
13610
13621
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "earn-deposit-failed-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13790,7 +13801,7 @@ var EarnWithdrawSuccessSimpleView = ({
|
|
|
13790
13801
|
}) => {
|
|
13791
13802
|
React6__namespace.default.useEffect(() => {
|
|
13792
13803
|
if (!onClose) return;
|
|
13793
|
-
const timer = setTimeout(onClose,
|
|
13804
|
+
const timer = setTimeout(onClose, 2e3);
|
|
13794
13805
|
return () => clearTimeout(timer);
|
|
13795
13806
|
}, [onClose]);
|
|
13796
13807
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "earn-withdraw-success-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13880,7 +13891,7 @@ var EarnWithdrawWarningSimpleView = ({
|
|
|
13880
13891
|
}) => {
|
|
13881
13892
|
React6__namespace.default.useEffect(() => {
|
|
13882
13893
|
if (!onBack) return;
|
|
13883
|
-
const timer = setTimeout(onBack,
|
|
13894
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13884
13895
|
return () => clearTimeout(timer);
|
|
13885
13896
|
}, [onBack]);
|
|
13886
13897
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "earn-withdraw-warning-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13972,7 +13983,7 @@ var EarnWithdrawFailedSimpleView = ({
|
|
|
13972
13983
|
}) => {
|
|
13973
13984
|
React6__namespace.default.useEffect(() => {
|
|
13974
13985
|
if (!onBack) return;
|
|
13975
|
-
const timer = setTimeout(onBack,
|
|
13986
|
+
const timer = setTimeout(onBack, 2e3);
|
|
13976
13987
|
return () => clearTimeout(timer);
|
|
13977
13988
|
}, [onBack]);
|
|
13978
13989
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "earn-withdraw-failed-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14693,7 +14704,7 @@ var OnchainDepositSuccessSimpleView = ({
|
|
|
14693
14704
|
}) => {
|
|
14694
14705
|
React6__namespace.useEffect(() => {
|
|
14695
14706
|
if (!onClose) return;
|
|
14696
|
-
const timer = setTimeout(onClose,
|
|
14707
|
+
const timer = setTimeout(onClose, 2e3);
|
|
14697
14708
|
return () => clearTimeout(timer);
|
|
14698
14709
|
}, [onClose]);
|
|
14699
14710
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "onchain-deposit-success-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -15606,7 +15617,7 @@ var OnchainWithdrawSuccessSimpleView = ({
|
|
|
15606
15617
|
}) => {
|
|
15607
15618
|
React6__namespace.useEffect(() => {
|
|
15608
15619
|
if (!onClose) return;
|
|
15609
|
-
const timer = setTimeout(onClose,
|
|
15620
|
+
const timer = setTimeout(onClose, 2e3);
|
|
15610
15621
|
return () => clearTimeout(timer);
|
|
15611
15622
|
}, [onClose]);
|
|
15612
15623
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "onchain-withdraw-success-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16086,7 +16097,7 @@ var OnchainWithdrawSignatureWarningSimpleView = ({
|
|
|
16086
16097
|
}) => {
|
|
16087
16098
|
React6__namespace.useEffect(() => {
|
|
16088
16099
|
if (!onCancel) return;
|
|
16089
|
-
const timer = setTimeout(onCancel,
|
|
16100
|
+
const timer = setTimeout(onCancel, 2e3);
|
|
16090
16101
|
return () => clearTimeout(timer);
|
|
16091
16102
|
}, [onCancel]);
|
|
16092
16103
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "onchain-withdraw-signature-warning-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -17037,7 +17048,7 @@ var OnrampSuccessSimpleView = ({
|
|
|
17037
17048
|
}) => {
|
|
17038
17049
|
React6__namespace.useEffect(() => {
|
|
17039
17050
|
if (!onGoToDashboard) return;
|
|
17040
|
-
const timer = setTimeout(onGoToDashboard,
|
|
17051
|
+
const timer = setTimeout(onGoToDashboard, 2e3);
|
|
17041
17052
|
return () => clearTimeout(timer);
|
|
17042
17053
|
}, [onGoToDashboard]);
|
|
17043
17054
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "onramp-success-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -18035,7 +18046,7 @@ var OfframpSuccessSimpleView = ({
|
|
|
18035
18046
|
}) => {
|
|
18036
18047
|
React6__namespace.useEffect(() => {
|
|
18037
18048
|
if (!onClose) return;
|
|
18038
|
-
const timer = setTimeout(onClose,
|
|
18049
|
+
const timer = setTimeout(onClose, 2e3);
|
|
18039
18050
|
return () => clearTimeout(timer);
|
|
18040
18051
|
}, [onClose]);
|
|
18041
18052
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-test-id": "offramp-success-simple-view", children: /* @__PURE__ */ jsxRuntime.jsx(
|