@gearbox-protocol/ui-kit 3.14.0-next.13 → 3.14.0-next.15
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/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/composites/pool-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/formatUsdAmount.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/useTransactionConfirmFlow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/execution/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/preview/OperationPreviewContent.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/result/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/computeTransactionExecutionSteps.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/summary/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/summary/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/operations/OperationsCard.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolDepositView.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolWithdrawView.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/prerequisites/PrerequisitesCard.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeGroup.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/state-change/StateChangeCard.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/legal-agreement/index.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-awaiting-panel.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement-dialog.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-link.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement-panel.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement-theme.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement.stories-config.cjs +1 -0
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +3 -2
- package/dist/esm/components/block-sync/block-sync.js +3 -2
- package/dist/esm/components/checkbox/checkbox-labeled.js +1 -0
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +1 -0
- package/dist/esm/components/complex-input/complex-input.js +3 -2
- package/dist/esm/components/composites/pool-table/columns.js +34 -33
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +63 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.js +52 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/constants.js +10 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/formatUsdAmount.js +21 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +9 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.js +33 -50
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +70 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.js +6 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +79 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.js +35 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +12 -2
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +17 -5
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.js +1 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/useTransactionConfirmFlow.js +36 -0
- package/dist/esm/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.js +30 -0
- package/dist/esm/components/composites/tx-preview/confirm/execution/index.js +4 -0
- package/dist/esm/components/composites/tx-preview/confirm/index.js +60 -16
- package/dist/esm/components/composites/tx-preview/confirm/preview/OperationPreviewContent.js +3 -2
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.js +55 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.js +25 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.js +60 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.js +21 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/constants.js +24 -0
- package/dist/esm/components/composites/tx-preview/confirm/result/index.js +15 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.js +67 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/computeTransactionExecutionSteps.js +49 -22
- package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +3 -3
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +12 -6
- package/dist/esm/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.js +45 -0
- package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.js +65 -0
- package/dist/esm/components/composites/tx-preview/confirm/summary/constants.js +6 -0
- package/dist/esm/components/composites/tx-preview/confirm/summary/index.js +6 -0
- package/dist/esm/components/composites/tx-preview/index.js +106 -62
- package/dist/esm/components/composites/tx-preview/operations/OperationsCard.js +3 -2
- package/dist/esm/components/composites/tx-preview/operations/PoolDepositView.js +3 -2
- package/dist/esm/components/composites/tx-preview/operations/PoolWithdrawView.js +3 -2
- package/dist/esm/components/composites/tx-preview/prerequisites/PrerequisitesCard.js +3 -2
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeGroup.js +3 -2
- package/dist/esm/components/composites/tx-preview/state-change/StateChangeCard.js +3 -2
- package/dist/esm/components/compound-apy/compound-apy.js +3 -2
- package/dist/esm/components/confirm-menu/confirm-menu.js +28 -25
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +1 -0
- package/dist/esm/components/index.js +504 -488
- package/dist/esm/components/legal-agreement/index.js +23 -7
- package/dist/esm/components/legal-agreement/legal-agreement-awaiting-panel.js +29 -0
- package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +72 -212
- package/dist/esm/components/legal-agreement/legal-agreement-link.js +22 -0
- package/dist/esm/components/legal-agreement/legal-agreement-panel.js +130 -0
- package/dist/esm/components/legal-agreement/legal-agreement-theme.js +137 -0
- package/dist/esm/components/legal-agreement/legal-agreement.stories-config.js +170 -0
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +3 -2
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +1 -0
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +3 -2
- package/dist/esm/components/with-copy/with-copy.js +3 -2
- package/dist/esm/index.js +836 -820
- package/dist/globals.css +1 -1
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +12 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.d.ts +15 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/constants.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/formatUsdAmount.d.ts +1 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.d.ts +9 -4
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +23 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +19 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/computeTransactionConfirmDialogLayout.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/constants.d.ts +7 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +4 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/useTransactionConfirmFlow.d.ts +14 -0
- package/dist/types/components/composites/tx-preview/confirm/execution/TransactionConfirmExecuteButton.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/execution/index.d.ts +1 -0
- package/dist/types/components/composites/tx-preview/confirm/index.d.ts +4 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.d.ts +2 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.d.ts +8 -0
- package/dist/types/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/result/constants.d.ts +18 -0
- package/dist/types/components/composites/tx-preview/confirm/result/index.d.ts +5 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.d.ts +7 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/computeTransactionExecutionSteps.d.ts +12 -3
- package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +2 -1
- package/dist/types/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.d.ts +16 -0
- package/dist/types/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.d.ts +15 -0
- package/dist/types/components/composites/tx-preview/confirm/summary/constants.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/summary/index.d.ts +2 -0
- package/dist/types/components/confirm-menu/confirm-menu.d.ts +4 -2
- package/dist/types/components/legal-agreement/index.d.ts +5 -1
- package/dist/types/components/legal-agreement/legal-agreement-awaiting-panel.d.ts +10 -0
- package/dist/types/components/legal-agreement/legal-agreement-dialog.d.ts +19 -52
- package/dist/types/components/legal-agreement/legal-agreement-link.d.ts +11 -0
- package/dist/types/components/legal-agreement/legal-agreement-panel.d.ts +16 -0
- package/dist/types/components/legal-agreement/legal-agreement-theme.d.ts +36 -0
- package/dist/types/components/legal-agreement/legal-agreement.stories-config.d.ts +11 -0
- package/package.json +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/HorizontalTransactionStepper.cjs +0 -1
- package/dist/esm/components/composites/tx-preview/confirm/stepper/HorizontalTransactionStepper.js +0 -120
- package/dist/types/components/composites/tx-preview/confirm/stepper/HorizontalTransactionStepper.d.ts +0 -7
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function u(s, r) {
|
|
2
|
+
if (!r)
|
|
3
|
+
return null;
|
|
4
|
+
const t = Number.parseFloat(s.replace(",", ".") || "0");
|
|
5
|
+
if (!Number.isFinite(t) || t === 0)
|
|
6
|
+
return null;
|
|
7
|
+
const n = t * r, e = Math.abs(n) < 100;
|
|
8
|
+
try {
|
|
9
|
+
return new Intl.NumberFormat("en-US", {
|
|
10
|
+
style: "currency",
|
|
11
|
+
currency: "USD",
|
|
12
|
+
minimumFractionDigits: e ? 2 : 0,
|
|
13
|
+
maximumFractionDigits: e ? 2 : 0
|
|
14
|
+
}).format(n);
|
|
15
|
+
} catch {
|
|
16
|
+
return "$0";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
u as formatUsdAmount
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TransactionConfirmAmountFieldTest as r, TransactionConfirmAmountPairTest as t } from "./constants.js";
|
|
2
|
+
import { TransactionConfirmAmountField as m } from "./TransactionConfirmAmountField.js";
|
|
3
|
+
import { TransactionConfirmAmountPair as e } from "./TransactionConfirmAmountPair.js";
|
|
4
|
+
export {
|
|
5
|
+
m as TransactionConfirmAmountField,
|
|
6
|
+
r as TransactionConfirmAmountFieldTest,
|
|
7
|
+
e as TransactionConfirmAmountPair,
|
|
8
|
+
t as TransactionConfirmAmountPairTest
|
|
9
|
+
};
|
package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.js
CHANGED
|
@@ -1,58 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "clsx";
|
|
11
|
-
import "tailwind-merge";
|
|
12
|
-
import "sonner";
|
|
13
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
14
|
-
import "luxon";
|
|
15
|
-
import "../../../../../utils/z-index.js";
|
|
16
|
-
import { Modal as u } from "../../../../modal/modal.js";
|
|
17
|
-
import { SkeletonStack as S } from "../../../../skeleton/skeleton-stack.js";
|
|
18
|
-
import { VSpace as i } from "../../../../vspace/vspace.js";
|
|
19
|
-
import { HorizontalTransactionStepper as v } from "../stepper/HorizontalTransactionStepper.js";
|
|
20
|
-
import { TransactionConfirmDialogTest as m } from "./constants.js";
|
|
21
|
-
function q({
|
|
22
|
-
open: o,
|
|
23
|
-
onClose: t,
|
|
24
|
-
title: n,
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as w } from "../../../../modal/modal.js";
|
|
3
|
+
import { TransactionConfirmPageView as x } from "./TransactionConfirmPageView.js";
|
|
4
|
+
function D({
|
|
5
|
+
open: r,
|
|
6
|
+
onClose: i,
|
|
7
|
+
phase: o = "confirm",
|
|
8
|
+
title: t,
|
|
9
|
+
titleAddon: e,
|
|
25
10
|
preview: a,
|
|
26
|
-
previewLoading:
|
|
27
|
-
previewError:
|
|
28
|
-
previewErrorTitle:
|
|
29
|
-
execution:
|
|
30
|
-
|
|
31
|
-
|
|
11
|
+
previewLoading: f = !1,
|
|
12
|
+
previewError: m,
|
|
13
|
+
previewErrorTitle: c = "Unable to preview transaction",
|
|
14
|
+
execution: l,
|
|
15
|
+
progressSteps: s,
|
|
16
|
+
renderProgressStepLabel: u,
|
|
17
|
+
result: d,
|
|
18
|
+
hideTitleAddonOnResult: p = !0
|
|
32
19
|
}) {
|
|
33
|
-
return
|
|
34
|
-
|
|
20
|
+
return r ? /* @__PURE__ */ n(w, { show: r, onClickOutside: i, zIndexLayer: "MODAL", children: /* @__PURE__ */ n(
|
|
21
|
+
x,
|
|
35
22
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
renderLabel: d
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
]
|
|
23
|
+
phase: o,
|
|
24
|
+
onClose: i,
|
|
25
|
+
title: t,
|
|
26
|
+
titleAddon: e,
|
|
27
|
+
preview: a,
|
|
28
|
+
previewLoading: f,
|
|
29
|
+
previewError: m,
|
|
30
|
+
previewErrorTitle: c,
|
|
31
|
+
execution: l,
|
|
32
|
+
progressSteps: s,
|
|
33
|
+
renderProgressStepLabel: u,
|
|
34
|
+
result: d,
|
|
35
|
+
hideTitleAddonOnResult: p
|
|
53
36
|
}
|
|
54
37
|
) }) : null;
|
|
55
38
|
}
|
|
56
39
|
export {
|
|
57
|
-
|
|
40
|
+
D as TransactionConfirmDialogView
|
|
58
41
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { StyledDialogContainer as w } from "../../../../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
3
|
+
import { ConfirmMenu as D } from "../../../../confirm-menu/confirm-menu.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "@gearbox-protocol/sdk";
|
|
6
|
+
import { cn as S } from "../../../../../utils/cn.js";
|
|
7
|
+
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
|
+
import "luxon";
|
|
10
|
+
import "../../../../../utils/z-index.js";
|
|
11
|
+
import { TransactionConfirmDialogTest as h, transactionConfirmDialogShellVariants as x } from "./constants.js";
|
|
12
|
+
import { TransactionConfirmShell as A } from "./TransactionConfirmShell.js";
|
|
13
|
+
function B({
|
|
14
|
+
onClose: i,
|
|
15
|
+
phase: o = "confirm",
|
|
16
|
+
title: t,
|
|
17
|
+
titleAddon: n,
|
|
18
|
+
preview: a,
|
|
19
|
+
previewLoading: m = !1,
|
|
20
|
+
previewError: e,
|
|
21
|
+
previewErrorTitle: f = "Unable to preview transaction",
|
|
22
|
+
previewClassName: l,
|
|
23
|
+
execution: c,
|
|
24
|
+
progressSteps: d,
|
|
25
|
+
renderProgressStepLabel: p,
|
|
26
|
+
result: s,
|
|
27
|
+
hideTitleAddonOnResult: C = !0,
|
|
28
|
+
containerClassName: g,
|
|
29
|
+
containerTestId: T,
|
|
30
|
+
shellTestId: u
|
|
31
|
+
}) {
|
|
32
|
+
const v = o !== "confirm" && o !== "awaiting_receipt" && C ? void 0 : n;
|
|
33
|
+
return /* @__PURE__ */ r(
|
|
34
|
+
w,
|
|
35
|
+
{
|
|
36
|
+
className: S(
|
|
37
|
+
x(),
|
|
38
|
+
g
|
|
39
|
+
),
|
|
40
|
+
"data-testid": T,
|
|
41
|
+
children: /* @__PURE__ */ r(
|
|
42
|
+
A,
|
|
43
|
+
{
|
|
44
|
+
phase: o,
|
|
45
|
+
header: /* @__PURE__ */ r(
|
|
46
|
+
D,
|
|
47
|
+
{
|
|
48
|
+
title: t,
|
|
49
|
+
titleAddon: v,
|
|
50
|
+
onClose: i
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
preview: a,
|
|
54
|
+
previewLoading: m,
|
|
55
|
+
previewError: e,
|
|
56
|
+
previewErrorTitle: f,
|
|
57
|
+
previewClassName: l,
|
|
58
|
+
execution: c,
|
|
59
|
+
progressSteps: d,
|
|
60
|
+
renderProgressStepLabel: p,
|
|
61
|
+
result: s,
|
|
62
|
+
"data-testid": u ?? h.root
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
B as TransactionConfirmPageView
|
|
70
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsxs as e, jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { ErrorLineMessage as T } from "../../../../error-message/error-line-message.js";
|
|
3
|
+
import "react-intl";
|
|
4
|
+
import "../../../../buttons/button/button.js";
|
|
5
|
+
import "../../../../dialog/dialog-container.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "@gearbox-protocol/sdk";
|
|
8
|
+
import "clsx";
|
|
9
|
+
import "tailwind-merge";
|
|
10
|
+
import "sonner";
|
|
11
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
12
|
+
import "luxon";
|
|
13
|
+
import "../../../../../utils/z-index.js";
|
|
14
|
+
import { SkeletonStack as C } from "../../../../skeleton/skeleton-stack.js";
|
|
15
|
+
import { VSpace as l } from "../../../../vspace/vspace.js";
|
|
16
|
+
import { shouldShowTransactionProgressStepper as S } from "../stepper/computeTransactionExecutionSteps.js";
|
|
17
|
+
import { TransactionProgressStepper as P } from "../stepper/TransactionProgressStepper.js";
|
|
18
|
+
import { computeTransactionConfirmDialogLayout as y } from "./computeTransactionConfirmDialogLayout.js";
|
|
19
|
+
import { TransactionConfirmDialogTest as r, transactionConfirmShellContentVariants as N } from "./constants.js";
|
|
20
|
+
function K({
|
|
21
|
+
phase: h = "confirm",
|
|
22
|
+
header: a,
|
|
23
|
+
preview: p,
|
|
24
|
+
previewLoading: d = !1,
|
|
25
|
+
previewError: m,
|
|
26
|
+
previewErrorTitle: f = "Unable to preview transaction",
|
|
27
|
+
previewClassName: u = "flex max-h-[50vh] min-w-0 flex-col gap-4 overflow-x-hidden overflow-y-auto",
|
|
28
|
+
execution: w,
|
|
29
|
+
progressSteps: i,
|
|
30
|
+
renderProgressStepLabel: n,
|
|
31
|
+
result: s,
|
|
32
|
+
className: v,
|
|
33
|
+
"data-testid": x = r.root
|
|
34
|
+
}) {
|
|
35
|
+
const g = !!(i && n && S(i)), t = y(h, g);
|
|
36
|
+
return /* @__PURE__ */ e(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
className: N({ className: v }),
|
|
40
|
+
"data-testid": x,
|
|
41
|
+
children: [
|
|
42
|
+
a,
|
|
43
|
+
a ? /* @__PURE__ */ o(l, { height: 16 }) : null,
|
|
44
|
+
t.showResult && s ? /* @__PURE__ */ o("div", { "data-testid": r.result, children: s }) : null,
|
|
45
|
+
t.showResult ? null : /* @__PURE__ */ e(c, { children: [
|
|
46
|
+
t.showPreview ? /* @__PURE__ */ o("div", { className: u, children: d ? /* @__PURE__ */ o(C, { lines: 3 }) : m ? /* @__PURE__ */ o(
|
|
47
|
+
T,
|
|
48
|
+
{
|
|
49
|
+
err: m,
|
|
50
|
+
title: f
|
|
51
|
+
}
|
|
52
|
+
) : p }) : null,
|
|
53
|
+
t.showPreview && t.showExecution ? /* @__PURE__ */ o(l, { height: 24 }) : null,
|
|
54
|
+
t.showExecution ? /* @__PURE__ */ o(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: "min-w-0 w-full",
|
|
58
|
+
"data-testid": r.execution,
|
|
59
|
+
children: w
|
|
60
|
+
}
|
|
61
|
+
) : null
|
|
62
|
+
] }),
|
|
63
|
+
t.showProgressStepper && i && n ? /* @__PURE__ */ e(c, { children: [
|
|
64
|
+
/* @__PURE__ */ o(l, { height: 24 }),
|
|
65
|
+
/* @__PURE__ */ o("div", { "data-testid": r.progress, children: /* @__PURE__ */ o(
|
|
66
|
+
P,
|
|
67
|
+
{
|
|
68
|
+
steps: i,
|
|
69
|
+
renderLabel: n
|
|
70
|
+
}
|
|
71
|
+
) })
|
|
72
|
+
] }) : null
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
K as TransactionConfirmShell
|
|
79
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function r(s, e) {
|
|
2
|
+
switch (s) {
|
|
3
|
+
case "confirm":
|
|
4
|
+
return {
|
|
5
|
+
showPreview: !0,
|
|
6
|
+
showExecution: !0,
|
|
7
|
+
showProgressStepper: e,
|
|
8
|
+
showResult: !1
|
|
9
|
+
};
|
|
10
|
+
case "awaiting_receipt":
|
|
11
|
+
return {
|
|
12
|
+
showPreview: !0,
|
|
13
|
+
showExecution: !0,
|
|
14
|
+
showProgressStepper: e,
|
|
15
|
+
showResult: !1
|
|
16
|
+
};
|
|
17
|
+
case "success":
|
|
18
|
+
return {
|
|
19
|
+
showPreview: !1,
|
|
20
|
+
showExecution: !1,
|
|
21
|
+
showProgressStepper: e,
|
|
22
|
+
showResult: !0
|
|
23
|
+
};
|
|
24
|
+
case "failure":
|
|
25
|
+
return {
|
|
26
|
+
showPreview: !1,
|
|
27
|
+
showExecution: !1,
|
|
28
|
+
showProgressStepper: !1,
|
|
29
|
+
showResult: !0
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
r as computeTransactionConfirmDialogLayout
|
|
35
|
+
};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { cva as o } from "class-variance-authority";
|
|
2
|
+
class r {
|
|
2
3
|
static root = "transaction-confirm-dialog-root";
|
|
3
4
|
static execution = "transaction-confirm-dialog-execution";
|
|
5
|
+
static progress = "transaction-confirm-dialog-progress";
|
|
6
|
+
static result = "transaction-confirm-dialog-result";
|
|
4
7
|
}
|
|
8
|
+
const i = o(
|
|
9
|
+
"box-border w-full max-w-full md:w-[560px] md:max-w-[560px]"
|
|
10
|
+
), n = o(
|
|
11
|
+
"box-border w-full min-w-0 max-w-full"
|
|
12
|
+
);
|
|
5
13
|
export {
|
|
6
|
-
|
|
14
|
+
r as TransactionConfirmDialogTest,
|
|
15
|
+
i as transactionConfirmDialogShellVariants,
|
|
16
|
+
n as transactionConfirmShellContentVariants
|
|
7
17
|
};
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { computeTransactionConfirmDialogLayout as n } from "./computeTransactionConfirmDialogLayout.js";
|
|
2
|
+
import { TransactionConfirmDialogTest as i, transactionConfirmDialogShellVariants as t, transactionConfirmShellContentVariants as e } from "./constants.js";
|
|
3
|
+
import { TransactionConfirmDialogView as f } from "./TransactionConfirmDialogView.js";
|
|
4
|
+
import { TransactionConfirmPageView as l } from "./TransactionConfirmPageView.js";
|
|
5
|
+
import { TransactionConfirmShell as C } from "./TransactionConfirmShell.js";
|
|
6
|
+
import { TransactionConfirmShellTest as p } from "./TransactionConfirmShell.constants.js";
|
|
7
|
+
import { useTransactionConfirmDialog as g } from "./useTransactionConfirmDialog.js";
|
|
8
|
+
import { useTransactionConfirmFlow as h } from "./useTransactionConfirmFlow.js";
|
|
4
9
|
export {
|
|
5
10
|
i as TransactionConfirmDialogTest,
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
f as TransactionConfirmDialogView,
|
|
12
|
+
l as TransactionConfirmPageView,
|
|
13
|
+
C as TransactionConfirmShell,
|
|
14
|
+
p as TransactionConfirmShellTest,
|
|
15
|
+
n as computeTransactionConfirmDialogLayout,
|
|
16
|
+
t as transactionConfirmDialogShellVariants,
|
|
17
|
+
e as transactionConfirmShellContentVariants,
|
|
18
|
+
g as useTransactionConfirmDialog,
|
|
19
|
+
h as useTransactionConfirmFlow
|
|
8
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useState as o, useCallback as e } from "react";
|
|
2
|
+
function k() {
|
|
3
|
+
const [a, c] = o(!1), [u, s] = o("confirm"), [f, i] = o(void 0), [l, r] = o(0), t = e(() => {
|
|
4
|
+
s("confirm"), i(void 0), r(0);
|
|
5
|
+
}, []), m = e(() => {
|
|
6
|
+
t(), c(!0);
|
|
7
|
+
}, [t]), p = e(() => {
|
|
8
|
+
c(!1), t();
|
|
9
|
+
}, [t]), b = e(() => {
|
|
10
|
+
r((n) => n + 1);
|
|
11
|
+
}, []), g = e(
|
|
12
|
+
(n) => {
|
|
13
|
+
i(n), s("awaiting_receipt");
|
|
14
|
+
},
|
|
15
|
+
[]
|
|
16
|
+
), h = e(() => {
|
|
17
|
+
s("success");
|
|
18
|
+
}, []), d = e(() => {
|
|
19
|
+
s("failure");
|
|
20
|
+
}, []);
|
|
21
|
+
return {
|
|
22
|
+
open: a,
|
|
23
|
+
phase: u,
|
|
24
|
+
submittedTx: f,
|
|
25
|
+
refreshNonce: l,
|
|
26
|
+
openDialog: m,
|
|
27
|
+
closeDialog: p,
|
|
28
|
+
bumpRefreshNonce: b,
|
|
29
|
+
beginAwaitingReceipt: g,
|
|
30
|
+
markSuccess: h,
|
|
31
|
+
markFailure: d
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
k as useTransactionConfirmFlow
|
|
36
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as o, jsxs as a, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { Button as f } from "../../../../buttons/button/button.js";
|
|
3
|
+
import { SpinnerLoader as d } from "../../../../spinner-loader/spinner-loader.js";
|
|
4
|
+
import { TransactionConfirmExecuteButtonTest as u } from "../result/constants.js";
|
|
5
|
+
function B({
|
|
6
|
+
isLoading: t = !1,
|
|
7
|
+
disabled: e,
|
|
8
|
+
children: r,
|
|
9
|
+
width: n = "wide",
|
|
10
|
+
size: i = "lg",
|
|
11
|
+
...m
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ o(
|
|
14
|
+
f,
|
|
15
|
+
{
|
|
16
|
+
"data-testid": u.root,
|
|
17
|
+
width: n,
|
|
18
|
+
size: i,
|
|
19
|
+
disabled: e || t,
|
|
20
|
+
...m,
|
|
21
|
+
children: t ? /* @__PURE__ */ a(s, { children: [
|
|
22
|
+
/* @__PURE__ */ o(d, { size: 18, width: 2 }),
|
|
23
|
+
r
|
|
24
|
+
] }) : r
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
B as TransactionConfirmExecuteButton
|
|
30
|
+
};
|
|
@@ -1,18 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { TransactionConfirmAmountFieldTest as t, TransactionConfirmAmountPairTest as e } from "./amounts/constants.js";
|
|
2
|
+
import { TransactionConfirmAmountField as a } from "./amounts/TransactionConfirmAmountField.js";
|
|
3
|
+
import { TransactionConfirmAmountPair as s } from "./amounts/TransactionConfirmAmountPair.js";
|
|
4
|
+
import { computeTransactionConfirmDialogLayout as f } from "./dialog/computeTransactionConfirmDialogLayout.js";
|
|
5
|
+
import { TransactionConfirmDialogTest as c, transactionConfirmDialogShellVariants as T, transactionConfirmShellContentVariants as l } from "./dialog/constants.js";
|
|
6
|
+
import { TransactionConfirmDialogView as C } from "./dialog/TransactionConfirmDialogView.js";
|
|
7
|
+
import { TransactionConfirmPageView as S } from "./dialog/TransactionConfirmPageView.js";
|
|
8
|
+
import { TransactionConfirmShell as P } from "./dialog/TransactionConfirmShell.js";
|
|
9
|
+
import { TransactionConfirmShellTest as w } from "./dialog/TransactionConfirmShell.constants.js";
|
|
10
|
+
import { useTransactionConfirmDialog as R } from "./dialog/useTransactionConfirmDialog.js";
|
|
11
|
+
import { useTransactionConfirmFlow as F } from "./dialog/useTransactionConfirmFlow.js";
|
|
12
|
+
import { TransactionConfirmExecuteButton as E } from "./execution/TransactionConfirmExecuteButton.js";
|
|
13
|
+
import { useCalldataOperationPreview as O } from "./hooks/useCalldataOperationPreview.js";
|
|
14
|
+
import { OperationPreviewContent as v } from "./preview/OperationPreviewContent.js";
|
|
15
|
+
import { TransactionConfirmExecuteButtonTest as H, TransactionConfirmFailureResultTest as q, TransactionConfirmSuccessResultTest as y, TransactionConfirmTxHashRowTest as L } from "./result/constants.js";
|
|
16
|
+
import { TransactionConfirmFailureResult as j } from "./result/TransactionConfirmFailureResult.js";
|
|
17
|
+
import { TransactionConfirmSuccessIcon as z } from "./result/TransactionConfirmSuccessIcon.js";
|
|
18
|
+
import { TransactionConfirmSuccessResult as J } from "./result/TransactionConfirmSuccessResult.js";
|
|
19
|
+
import { TransactionConfirmTxHashRow as M } from "./result/TransactionConfirmTxHashRow.js";
|
|
20
|
+
import { computeTransactionExecutionSteps as Q, getTransactionExecutionStepRequirements as U, shouldShowTransactionProgressStepper as W } from "./stepper/computeTransactionExecutionSteps.js";
|
|
21
|
+
import { TransactionProgressStepperTest as Y } from "./stepper/constants.js";
|
|
22
|
+
import { TransactionProgressStepper as _ } from "./stepper/TransactionProgressStepper.js";
|
|
23
|
+
import { mergeCompletedStepsInSession as oo, mergeStepsSeenInSession as ro, useCompletedStepsInSession as to } from "./stepper/useCompletedStepsInSession.js";
|
|
24
|
+
import { PoolOperationConfirmDetailsTest as no } from "./summary/constants.js";
|
|
25
|
+
import { PoolOperationConfirmDetails as io } from "./summary/PoolOperationConfirmDetails.js";
|
|
9
26
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
a as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
27
|
+
v as OperationPreviewContent,
|
|
28
|
+
io as PoolOperationConfirmDetails,
|
|
29
|
+
no as PoolOperationConfirmDetailsTest,
|
|
30
|
+
a as TransactionConfirmAmountField,
|
|
31
|
+
t as TransactionConfirmAmountFieldTest,
|
|
32
|
+
s as TransactionConfirmAmountPair,
|
|
33
|
+
e as TransactionConfirmAmountPairTest,
|
|
34
|
+
c as TransactionConfirmDialogTest,
|
|
35
|
+
C as TransactionConfirmDialogView,
|
|
36
|
+
E as TransactionConfirmExecuteButton,
|
|
37
|
+
H as TransactionConfirmExecuteButtonTest,
|
|
38
|
+
j as TransactionConfirmFailureResult,
|
|
39
|
+
q as TransactionConfirmFailureResultTest,
|
|
40
|
+
S as TransactionConfirmPageView,
|
|
41
|
+
P as TransactionConfirmShell,
|
|
42
|
+
w as TransactionConfirmShellTest,
|
|
43
|
+
z as TransactionConfirmSuccessIcon,
|
|
44
|
+
J as TransactionConfirmSuccessResult,
|
|
45
|
+
y as TransactionConfirmSuccessResultTest,
|
|
46
|
+
M as TransactionConfirmTxHashRow,
|
|
47
|
+
L as TransactionConfirmTxHashRowTest,
|
|
48
|
+
_ as TransactionProgressStepper,
|
|
49
|
+
Y as TransactionProgressStepperTest,
|
|
50
|
+
f as computeTransactionConfirmDialogLayout,
|
|
51
|
+
Q as computeTransactionExecutionSteps,
|
|
52
|
+
U as getTransactionExecutionStepRequirements,
|
|
53
|
+
oo as mergeCompletedStepsInSession,
|
|
54
|
+
ro as mergeStepsSeenInSession,
|
|
55
|
+
W as shouldShowTransactionProgressStepper,
|
|
56
|
+
T as transactionConfirmDialogShellVariants,
|
|
57
|
+
l as transactionConfirmShellContentVariants,
|
|
58
|
+
O as useCalldataOperationPreview,
|
|
59
|
+
to as useCompletedStepsInSession,
|
|
60
|
+
R as useTransactionConfirmDialog,
|
|
61
|
+
F as useTransactionConfirmFlow
|
|
18
62
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/preview/OperationPreviewContent.js
CHANGED
|
@@ -125,6 +125,7 @@ import "../../../../layout/layout/layout.js";
|
|
|
125
125
|
import "../../../../layout/main-aside-layout/main-aside-layout.js";
|
|
126
126
|
import "../../../../page-title/page-title.js";
|
|
127
127
|
import "../../../../layout/social-icons/social-icons.js";
|
|
128
|
+
import "../../../../legal-agreement/legal-agreement-theme.js";
|
|
128
129
|
import "../../../../link/link.js";
|
|
129
130
|
import "../../../../../utils/reactochart-compat.js";
|
|
130
131
|
import "../../../../status-elements/status-elements.js";
|
|
@@ -167,7 +168,7 @@ import { OperationsCard as n } from "../../operations/OperationsCard.js";
|
|
|
167
168
|
import { PrerequisitesCard as s } from "../../prerequisites/PrerequisitesCard.js";
|
|
168
169
|
import "@tanstack/react-query";
|
|
169
170
|
import { StateChangeCard as f } from "../../state-change/StateChangeCard.js";
|
|
170
|
-
function
|
|
171
|
+
function vt({
|
|
171
172
|
sdk: r,
|
|
172
173
|
operation: i,
|
|
173
174
|
simulation: m,
|
|
@@ -199,5 +200,5 @@ function jt({
|
|
|
199
200
|
] });
|
|
200
201
|
}
|
|
201
202
|
export {
|
|
202
|
-
|
|
203
|
+
vt as OperationPreviewContent
|
|
203
204
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmFailureResult.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
|
+
import { faXmark as o } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
import { FaIcon as c } from "../../../../icons/fa-icon.js";
|
|
4
|
+
import { VSpace as r } from "../../../../vspace/vspace.js";
|
|
5
|
+
import { TransactionConfirmFailureResultTest as a } from "./constants.js";
|
|
6
|
+
function v({
|
|
7
|
+
title: d,
|
|
8
|
+
description: m,
|
|
9
|
+
footerAction: i,
|
|
10
|
+
iconSize: t = 48
|
|
11
|
+
}) {
|
|
12
|
+
const l = t + 32;
|
|
13
|
+
return /* @__PURE__ */ s(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: "flex w-full flex-col items-center text-center",
|
|
17
|
+
"data-testid": a.root,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ e(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: "flex items-center justify-center rounded-full border-2 border-destructive bg-destructive/10",
|
|
23
|
+
style: { width: l, height: l },
|
|
24
|
+
children: /* @__PURE__ */ e(
|
|
25
|
+
c,
|
|
26
|
+
{
|
|
27
|
+
icon: o,
|
|
28
|
+
className: "text-destructive",
|
|
29
|
+
style: { width: t, height: t }
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ e(r, { height: 24 }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "text-xl font-medium leading-tight md:text-2xl", children: d }),
|
|
36
|
+
/* @__PURE__ */ e(r, { height: 12 }),
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "text-sm text-secondary-foreground", children: m }),
|
|
38
|
+
i ? /* @__PURE__ */ s(n, { children: [
|
|
39
|
+
/* @__PURE__ */ e(r, { height: 24 }),
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: "w-full",
|
|
44
|
+
"data-testid": a.footer,
|
|
45
|
+
children: i
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] }) : null
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
v as TransactionConfirmFailureResult
|
|
55
|
+
};
|
package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessIcon.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { faCheck as t } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
import { FaIcon as c } from "../../../../icons/fa-icon.js";
|
|
4
|
+
import { useIsMobile as i } from "../../../../../hooks/use-media-query.js";
|
|
5
|
+
function a() {
|
|
6
|
+
const e = i(), o = e ? 80 : 120, s = e ? 36 : 42;
|
|
7
|
+
return /* @__PURE__ */ r(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: "flex items-center justify-center rounded-full border-2 border-success",
|
|
11
|
+
style: { width: o, height: o },
|
|
12
|
+
children: /* @__PURE__ */ r(
|
|
13
|
+
c,
|
|
14
|
+
{
|
|
15
|
+
icon: t,
|
|
16
|
+
className: "text-success",
|
|
17
|
+
style: { width: s, height: s }
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
a as TransactionConfirmSuccessIcon
|
|
25
|
+
};
|