@gearbox-protocol/ui-kit 3.14.0-next.14 → 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/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/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 -1
- 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 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
- 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 +34 -51
- 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 +10 -5
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +18 -7
- 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 -24
- 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 +26 -18
- 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 -9
- package/dist/esm/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.js +37 -31
- package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.js +65 -0
- package/dist/esm/components/composites/tx-preview/confirm/summary/constants.js +3 -3
- package/dist/esm/components/composites/tx-preview/confirm/summary/index.js +4 -4
- package/dist/esm/components/composites/tx-preview/index.js +106 -70
- package/dist/esm/components/confirm-menu/confirm-menu.js +28 -25
- 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 +5 -1
- 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 +3 -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/{HorizontalTransactionStepper.d.ts → TransactionProgressStepper.d.ts} +2 -2
- package/dist/types/components/composites/tx-preview/confirm/stepper/computeTransactionExecutionSteps.d.ts +2 -0
- 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 +1 -1
- package/dist/types/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.d.ts +3 -1
- 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 +1 -1
- package/dist/types/components/composites/tx-preview/confirm/summary/index.d.ts +1 -1
- package/dist/types/components/confirm-menu/confirm-menu.d.ts +4 -2
- package/package.json +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/HorizontalTransactionStepper.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/PoolOperationConfirmSummary.cjs +0 -1
- package/dist/esm/components/composites/tx-preview/confirm/stepper/HorizontalTransactionStepper.js +0 -136
- package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmSummary.js +0 -92
- package/dist/types/components/composites/tx-preview/confirm/summary/PoolOperationConfirmSummary.d.ts +0 -18
|
@@ -1,47 +1,55 @@
|
|
|
1
|
-
function
|
|
1
|
+
function p(e) {
|
|
2
2
|
return {
|
|
3
3
|
approve: !e.allowWalletBatching && (e.needsApproval || e.isApprovalPending),
|
|
4
4
|
auth: !e.isAuthReady
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function l(e) {
|
|
8
8
|
return !e.allowWalletBatching && (e.isApprovalPending || e.needsApproval);
|
|
9
9
|
}
|
|
10
10
|
function c(e, t) {
|
|
11
|
-
return
|
|
11
|
+
return p(t)[e];
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function u(e, t) {
|
|
14
14
|
return t.completedStepsInSession?.includes(e) ?? !1;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return c(e, t) ||
|
|
16
|
+
function i(e, t) {
|
|
17
|
+
return c(e, t) || u(e, t);
|
|
18
18
|
}
|
|
19
19
|
function f(e) {
|
|
20
20
|
const t = [];
|
|
21
|
-
return
|
|
21
|
+
return i("approve", e) && t.push("approve"), i("auth", e) && t.push("auth"), t.push("execute"), t;
|
|
22
22
|
}
|
|
23
23
|
function v(e, t) {
|
|
24
|
-
return e.isCorrectChain ?
|
|
24
|
+
return e.isCorrectChain ? l(e) ? "approve" : c("auth", e) ? "auth" : "execute" : t[0] ?? "execute";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function h(e, t, r, o) {
|
|
27
27
|
const n = o.indexOf(r);
|
|
28
|
-
return o.indexOf(e) < n ? !0 : e === "execute" ? !1 : !!(
|
|
28
|
+
return o.indexOf(e) < n ? !0 : e === "execute" ? !1 : !!(u(e, t) && !c(e, t));
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function d(e, t) {
|
|
31
31
|
return e === "approve" && t.allowWalletBatching ? "approveBatch" : e === "auth" ? "auth" : e;
|
|
32
32
|
}
|
|
33
33
|
function S(e) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
return e.some((t) => t.id !== "execute");
|
|
35
|
+
}
|
|
36
|
+
function x(e) {
|
|
37
|
+
const t = f(e), r = v(e, t), o = t.map((n) => {
|
|
38
|
+
const s = h(n, e, r, t) ? "completed" : n === r ? "active" : "upcoming";
|
|
37
39
|
return {
|
|
38
40
|
id: n,
|
|
39
|
-
labelKey:
|
|
41
|
+
labelKey: d(n, e),
|
|
40
42
|
status: s
|
|
41
43
|
};
|
|
42
|
-
})
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
steps: o,
|
|
47
|
+
activeStepId: r,
|
|
48
|
+
showProgressStepper: S(o)
|
|
49
|
+
};
|
|
43
50
|
}
|
|
44
51
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
x as computeTransactionExecutionSteps,
|
|
53
|
+
p as getTransactionExecutionStepRequirements,
|
|
54
|
+
S as shouldShowTransactionProgressStepper
|
|
47
55
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { computeTransactionExecutionSteps as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { computeTransactionExecutionSteps as r, getTransactionExecutionStepRequirements as s, shouldShowTransactionProgressStepper as t } from "./computeTransactionExecutionSteps.js";
|
|
2
|
+
import { TransactionProgressStepperTest as p } from "./constants.js";
|
|
3
|
+
import { TransactionProgressStepper as i } from "./TransactionProgressStepper.js";
|
|
4
|
+
import { mergeCompletedStepsInSession as m, mergeStepsSeenInSession as c, useCompletedStepsInSession as g } from "./useCompletedStepsInSession.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
p as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
i as TransactionProgressStepper,
|
|
7
|
+
p as TransactionProgressStepperTest,
|
|
8
|
+
r as computeTransactionExecutionSteps,
|
|
9
|
+
s as getTransactionExecutionStepRequirements,
|
|
10
|
+
m as mergeCompletedStepsInSession,
|
|
11
|
+
c as mergeStepsSeenInSession,
|
|
12
|
+
t as shouldShowTransactionProgressStepper,
|
|
13
|
+
g as useCompletedStepsInSession
|
|
11
14
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.js
CHANGED
|
@@ -1,39 +1,45 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
import { getTransactionExecutionStepRequirements as
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useState as S, useEffect as i } from "react";
|
|
2
|
+
import { getTransactionExecutionStepRequirements as c } from "./computeTransactionExecutionSteps.js";
|
|
3
|
+
function m(e, n) {
|
|
4
|
+
const t = new Set(e);
|
|
5
|
+
return n.approve && t.add("approve"), n.auth && t.add("auth"), [...t];
|
|
6
|
+
}
|
|
7
|
+
function h(e, n, t) {
|
|
8
|
+
const p = new Set(e);
|
|
9
|
+
return n.includes("approve") && !t.approve && p.add("approve"), n.includes("auth") && !t.auth && p.add("auth"), [...p];
|
|
10
|
+
}
|
|
11
|
+
function v({
|
|
12
|
+
sessionActive: e,
|
|
13
|
+
needsApproval: n,
|
|
14
|
+
isApprovalPending: t = !1,
|
|
15
|
+
allowWalletBatching: p,
|
|
16
|
+
isAuthReady: d
|
|
9
17
|
}) {
|
|
10
|
-
const [
|
|
11
|
-
needsApproval:
|
|
12
|
-
isApprovalPending:
|
|
13
|
-
allowWalletBatching:
|
|
14
|
-
isAuthReady:
|
|
18
|
+
const [s, a] = S([]), [f, u] = S([]), o = c({
|
|
19
|
+
needsApproval: n,
|
|
20
|
+
isApprovalPending: t,
|
|
21
|
+
allowWalletBatching: p,
|
|
22
|
+
isAuthReady: d
|
|
15
23
|
});
|
|
16
|
-
return
|
|
17
|
-
if (!
|
|
18
|
-
|
|
24
|
+
return i(() => {
|
|
25
|
+
if (!e) {
|
|
26
|
+
a([]), u([]);
|
|
19
27
|
return;
|
|
20
28
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
n && s((r) => {
|
|
27
|
-
const t = new Set(r);
|
|
28
|
-
return p.includes("approve") && !e.approve && t.add("approve"), p.includes("auth") && !e.auth && t.add("auth"), [...t];
|
|
29
|
-
});
|
|
29
|
+
a((r) => m(r, o));
|
|
30
|
+
}, [e, o.approve, o.auth]), i(() => {
|
|
31
|
+
e && u(
|
|
32
|
+
(r) => h(r, s, o)
|
|
33
|
+
);
|
|
30
34
|
}, [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
]),
|
|
35
|
+
e,
|
|
36
|
+
s,
|
|
37
|
+
o.approve,
|
|
38
|
+
o.auth
|
|
39
|
+
]), f;
|
|
36
40
|
}
|
|
37
41
|
export {
|
|
38
|
-
|
|
42
|
+
h as mergeCompletedStepsInSession,
|
|
43
|
+
m as mergeStepsSeenInSession,
|
|
44
|
+
v as useCompletedStepsInSession
|
|
39
45
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { FadeoutLoading as c } from "../../../../fadeout-loading/fadeout-loading.js";
|
|
3
|
+
import { TipCard as v } from "../../../../tip-card/tip-card.js";
|
|
4
|
+
import { VerticalIndicator as i } from "../../../../vertical-indicator/vertical-indicator.js";
|
|
5
|
+
import { VerticalList as b } from "../../../../vertical-list/vertical-list.js";
|
|
6
|
+
import { PoolOperationConfirmDetailsTest as z } from "./constants.js";
|
|
7
|
+
function L({
|
|
8
|
+
apyLabel: l,
|
|
9
|
+
apy: o,
|
|
10
|
+
apyLoading: r = !1,
|
|
11
|
+
poolTvlLabel: t,
|
|
12
|
+
poolTvl: a,
|
|
13
|
+
poolUtilizationLabel: m,
|
|
14
|
+
poolUtilization: s,
|
|
15
|
+
curatorLabel: n,
|
|
16
|
+
curatorValue: d,
|
|
17
|
+
poolLabel: f,
|
|
18
|
+
poolContractValue: p
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ e(
|
|
21
|
+
v,
|
|
22
|
+
{
|
|
23
|
+
textColor: "light",
|
|
24
|
+
"data-testid": z.root,
|
|
25
|
+
children: /* @__PURE__ */ u(b, { children: [
|
|
26
|
+
o !== void 0 ? /* @__PURE__ */ e(
|
|
27
|
+
i,
|
|
28
|
+
{
|
|
29
|
+
size: "sm",
|
|
30
|
+
label: l,
|
|
31
|
+
value: /* @__PURE__ */ e(c, { loading: r, children: o })
|
|
32
|
+
}
|
|
33
|
+
) : null,
|
|
34
|
+
/* @__PURE__ */ e(i, { size: "sm", label: t, value: a }),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
i,
|
|
37
|
+
{
|
|
38
|
+
size: "sm",
|
|
39
|
+
label: m,
|
|
40
|
+
value: s
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
i,
|
|
45
|
+
{
|
|
46
|
+
size: "sm",
|
|
47
|
+
label: n,
|
|
48
|
+
value: d
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ e(
|
|
52
|
+
i,
|
|
53
|
+
{
|
|
54
|
+
size: "sm",
|
|
55
|
+
label: f,
|
|
56
|
+
value: p
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] })
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
L as PoolOperationConfirmDetails
|
|
65
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PoolOperationConfirmDetailsTest as e } from "./constants.js";
|
|
2
|
+
import { PoolOperationConfirmDetails as i } from "./PoolOperationConfirmDetails.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
i as PoolOperationConfirmDetails,
|
|
5
|
+
e as PoolOperationConfirmDetailsTest
|
|
6
6
|
};
|
|
@@ -1,78 +1,114 @@
|
|
|
1
1
|
import { AddressAvatar as e } from "./components/AddressAvatar.js";
|
|
2
|
-
import { AddressParty as
|
|
3
|
-
import { AddressRow as
|
|
2
|
+
import { AddressParty as n } from "./components/AddressParty.js";
|
|
3
|
+
import { AddressRow as i } from "./components/AddressRow.js";
|
|
4
4
|
import { AmountRow as m } from "./components/AmountRow.js";
|
|
5
|
-
import { getAddressLabel as
|
|
5
|
+
import { getAddressLabel as p } from "./components/addressLabel.js";
|
|
6
6
|
import { CollapsibleCard as l } from "./components/CollapsibleCard.js";
|
|
7
|
-
import { SectionDivider as
|
|
8
|
-
import { TransferList as
|
|
9
|
-
import { TransferRow as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
7
|
+
import { SectionDivider as T } from "./components/SectionDivider.js";
|
|
8
|
+
import { TransferList as u } from "./components/TransferList.js";
|
|
9
|
+
import { TransferRow as S } from "./components/TransferRow.js";
|
|
10
|
+
import { TransactionConfirmAmountFieldTest as w, TransactionConfirmAmountPairTest as g } from "./confirm/amounts/constants.js";
|
|
11
|
+
import { TransactionConfirmAmountField as R } from "./confirm/amounts/TransactionConfirmAmountField.js";
|
|
12
|
+
import { TransactionConfirmAmountPair as A } from "./confirm/amounts/TransactionConfirmAmountPair.js";
|
|
13
|
+
import { computeTransactionConfirmDialogLayout as V } from "./confirm/dialog/computeTransactionConfirmDialogLayout.js";
|
|
14
|
+
import { TransactionConfirmDialogTest as v, transactionConfirmDialogShellVariants as B, transactionConfirmShellContentVariants as F } from "./confirm/dialog/constants.js";
|
|
15
|
+
import { TransactionConfirmDialogView as E } from "./confirm/dialog/TransactionConfirmDialogView.js";
|
|
16
|
+
import { TransactionConfirmPageView as L } from "./confirm/dialog/TransactionConfirmPageView.js";
|
|
17
|
+
import { TransactionConfirmShell as H } from "./confirm/dialog/TransactionConfirmShell.js";
|
|
18
|
+
import { TransactionConfirmShellTest as G } from "./confirm/dialog/TransactionConfirmShell.constants.js";
|
|
19
|
+
import { useTransactionConfirmDialog as j } from "./confirm/dialog/useTransactionConfirmDialog.js";
|
|
20
|
+
import { useTransactionConfirmFlow as J } from "./confirm/dialog/useTransactionConfirmFlow.js";
|
|
21
|
+
import { TransactionConfirmExecuteButton as M } from "./confirm/execution/TransactionConfirmExecuteButton.js";
|
|
22
|
+
import { useCalldataOperationPreview as Q } from "./confirm/hooks/useCalldataOperationPreview.js";
|
|
23
|
+
import { OperationPreviewContent as X } from "./confirm/preview/OperationPreviewContent.js";
|
|
24
|
+
import { TransactionConfirmExecuteButtonTest as Z, TransactionConfirmFailureResultTest as _, TransactionConfirmSuccessResultTest as $, TransactionConfirmTxHashRowTest as oo } from "./confirm/result/constants.js";
|
|
25
|
+
import { TransactionConfirmFailureResult as eo } from "./confirm/result/TransactionConfirmFailureResult.js";
|
|
26
|
+
import { TransactionConfirmSuccessIcon as no } from "./confirm/result/TransactionConfirmSuccessIcon.js";
|
|
27
|
+
import { TransactionConfirmSuccessResult as io } from "./confirm/result/TransactionConfirmSuccessResult.js";
|
|
28
|
+
import { TransactionConfirmTxHashRow as mo } from "./confirm/result/TransactionConfirmTxHashRow.js";
|
|
29
|
+
import { computeTransactionExecutionSteps as po, getTransactionExecutionStepRequirements as xo, shouldShowTransactionProgressStepper as lo } from "./confirm/stepper/computeTransactionExecutionSteps.js";
|
|
30
|
+
import { TransactionProgressStepperTest as To } from "./confirm/stepper/constants.js";
|
|
31
|
+
import { TransactionProgressStepper as uo } from "./confirm/stepper/TransactionProgressStepper.js";
|
|
32
|
+
import { mergeCompletedStepsInSession as Po, mergeStepsSeenInSession as wo, useCompletedStepsInSession as go } from "./confirm/stepper/useCompletedStepsInSession.js";
|
|
33
|
+
import { PoolOperationConfirmDetailsTest as Ro } from "./confirm/summary/constants.js";
|
|
34
|
+
import { PoolOperationConfirmDetails as Ao } from "./confirm/summary/PoolOperationConfirmDetails.js";
|
|
35
|
+
import { useParsedTransaction as Vo } from "./hooks/useParsedTransaction.js";
|
|
36
|
+
import { OperationBody as vo } from "./operations/OperationBody.js";
|
|
37
|
+
import { OperationsCard as Fo, hasOperationView as bo } from "./operations/OperationsCard.js";
|
|
38
|
+
import { PoolDepositView as Io } from "./operations/PoolDepositView.js";
|
|
39
|
+
import { PoolRow as yo } from "./operations/PoolRow.js";
|
|
40
|
+
import { PoolWithdrawView as ko } from "./operations/PoolWithdrawView.js";
|
|
41
|
+
import { PrerequisiteRow as Wo } from "./prerequisites/PrerequisiteRow.js";
|
|
42
|
+
import { PrerequisitesCard as zo } from "./prerequisites/PrerequisitesCard.js";
|
|
43
|
+
import { prerequisiteDetailRenderers as Ko, renderPrerequisiteDetail as Mo } from "./prerequisites/prerequisiteDetails.js";
|
|
44
|
+
import { usePrerequisites as Qo } from "./prerequisites/usePrerequisites.js";
|
|
45
|
+
import { BalanceChangeGroup as Xo } from "./state-change/BalanceChangeGroup.js";
|
|
46
|
+
import { BalanceChangeRow as Zo } from "./state-change/BalanceChangeRow.js";
|
|
47
|
+
import { PoolStateChangeCard as $o } from "./state-change/PoolStateChangeCard.js";
|
|
48
|
+
import { StateChangeCard as rr } from "./state-change/StateChangeCard.js";
|
|
49
|
+
import { buildPoolOperationLabels as tr } from "./utils/addressLabels.js";
|
|
50
|
+
import { resolveToken as ar } from "./utils/poolTokenInfo.js";
|
|
37
51
|
export {
|
|
38
52
|
e as AddressAvatar,
|
|
39
|
-
|
|
40
|
-
|
|
53
|
+
n as AddressParty,
|
|
54
|
+
i as AddressRow,
|
|
41
55
|
m as AmountRow,
|
|
42
|
-
|
|
43
|
-
|
|
56
|
+
Xo as BalanceChangeGroup,
|
|
57
|
+
Zo as BalanceChangeRow,
|
|
44
58
|
l as CollapsibleCard,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
$ as
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
59
|
+
vo as OperationBody,
|
|
60
|
+
X as OperationPreviewContent,
|
|
61
|
+
Fo as OperationsCard,
|
|
62
|
+
Io as PoolDepositView,
|
|
63
|
+
Ao as PoolOperationConfirmDetails,
|
|
64
|
+
Ro as PoolOperationConfirmDetailsTest,
|
|
65
|
+
yo as PoolRow,
|
|
66
|
+
$o as PoolStateChangeCard,
|
|
67
|
+
ko as PoolWithdrawView,
|
|
68
|
+
Wo as PrerequisiteRow,
|
|
69
|
+
zo as PrerequisitesCard,
|
|
70
|
+
T as SectionDivider,
|
|
71
|
+
rr as StateChangeCard,
|
|
72
|
+
R as TransactionConfirmAmountField,
|
|
73
|
+
w as TransactionConfirmAmountFieldTest,
|
|
74
|
+
A as TransactionConfirmAmountPair,
|
|
75
|
+
g as TransactionConfirmAmountPairTest,
|
|
76
|
+
v as TransactionConfirmDialogTest,
|
|
77
|
+
E as TransactionConfirmDialogView,
|
|
78
|
+
M as TransactionConfirmExecuteButton,
|
|
79
|
+
Z as TransactionConfirmExecuteButtonTest,
|
|
80
|
+
eo as TransactionConfirmFailureResult,
|
|
81
|
+
_ as TransactionConfirmFailureResultTest,
|
|
82
|
+
L as TransactionConfirmPageView,
|
|
83
|
+
H as TransactionConfirmShell,
|
|
84
|
+
G as TransactionConfirmShellTest,
|
|
85
|
+
no as TransactionConfirmSuccessIcon,
|
|
86
|
+
io as TransactionConfirmSuccessResult,
|
|
87
|
+
$ as TransactionConfirmSuccessResultTest,
|
|
88
|
+
mo as TransactionConfirmTxHashRow,
|
|
89
|
+
oo as TransactionConfirmTxHashRowTest,
|
|
90
|
+
uo as TransactionProgressStepper,
|
|
91
|
+
To as TransactionProgressStepperTest,
|
|
92
|
+
u as TransferList,
|
|
93
|
+
S as TransferRow,
|
|
94
|
+
tr as buildPoolOperationLabels,
|
|
95
|
+
V as computeTransactionConfirmDialogLayout,
|
|
96
|
+
po as computeTransactionExecutionSteps,
|
|
97
|
+
p as getAddressLabel,
|
|
98
|
+
xo as getTransactionExecutionStepRequirements,
|
|
99
|
+
bo as hasOperationView,
|
|
100
|
+
Po as mergeCompletedStepsInSession,
|
|
101
|
+
wo as mergeStepsSeenInSession,
|
|
102
|
+
Ko as prerequisiteDetailRenderers,
|
|
103
|
+
Mo as renderPrerequisiteDetail,
|
|
104
|
+
ar as resolveToken,
|
|
105
|
+
lo as shouldShowTransactionProgressStepper,
|
|
106
|
+
B as transactionConfirmDialogShellVariants,
|
|
107
|
+
F as transactionConfirmShellContentVariants,
|
|
108
|
+
Q as useCalldataOperationPreview,
|
|
109
|
+
go as useCompletedStepsInSession,
|
|
110
|
+
Vo as useParsedTransaction,
|
|
111
|
+
Qo as usePrerequisites,
|
|
112
|
+
j as useTransactionConfirmDialog,
|
|
113
|
+
J as useTransactionConfirmFlow
|
|
78
114
|
};
|
|
@@ -1,44 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { IconButton as
|
|
4
|
-
import { faXmark as
|
|
5
|
-
import { FaIcon as
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { IconButton as t } from "../icon-button/icon-button.js";
|
|
4
|
+
import { faXmark as c } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { FaIcon as p } from "../icons/fa-icon.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
|
-
import { cn as
|
|
7
|
+
import { cn as l } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
9
|
import "@gearbox-protocol/sdk/common-utils";
|
|
10
10
|
import "luxon";
|
|
11
11
|
import "../../utils/z-index.js";
|
|
12
|
-
const f =
|
|
13
|
-
({ title:
|
|
12
|
+
const f = s.forwardRef(
|
|
13
|
+
({ title: m, titleAddon: i, onClose: e, className: o }, a) => /* @__PURE__ */ n(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
|
-
ref:
|
|
17
|
-
className:
|
|
16
|
+
ref: a,
|
|
17
|
+
className: l(
|
|
18
18
|
"flex flex-nowrap items-center w-full max-w-full shrink-0 basis-full",
|
|
19
|
-
|
|
19
|
+
o
|
|
20
20
|
),
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "flex min-w-0 grow shrink-0 basis-[0%] flex-nowrap items-center gap-2", children: [
|
|
23
|
+
/* @__PURE__ */ r(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: l(
|
|
27
|
+
"font-normal min-h-[min-content]",
|
|
28
|
+
"text-[21px] leading-[25px]"
|
|
29
|
+
),
|
|
30
|
+
children: m
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
i ? /* @__PURE__ */ r("div", { className: "shrink-0", children: i }) : null
|
|
34
|
+
] }),
|
|
35
|
+
e ? /* @__PURE__ */ r("div", { className: "shrink-0 pl-2", children: /* @__PURE__ */ r(
|
|
36
|
+
t,
|
|
34
37
|
{
|
|
35
38
|
buttonType: "hollow",
|
|
36
39
|
size: 30,
|
|
37
40
|
onClick: e,
|
|
38
41
|
"aria-label": "Close",
|
|
39
|
-
children: /* @__PURE__ */ r(
|
|
42
|
+
children: /* @__PURE__ */ r(p, { icon: c, className: "size-5" })
|
|
40
43
|
}
|
|
41
|
-
) })
|
|
44
|
+
) }) : null
|
|
42
45
|
]
|
|
43
46
|
}
|
|
44
47
|
)
|