@gearbox-protocol/ui-kit 3.14.0-next.15 → 3.14.0-next.17
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/dialog/TransactionConfirmDialogView.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- 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/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/stepper/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.js +37 -28
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +59 -45
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +11 -5
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +14 -14
- package/dist/esm/components/composites/tx-preview/confirm/index.js +44 -52
- package/dist/esm/components/composites/tx-preview/confirm/preview/OperationPreviewContent.js +12 -24
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +6 -12
- package/dist/esm/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.js +6 -0
- package/dist/esm/components/composites/tx-preview/index.js +77 -96
- package/dist/globals.css +1 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.d.ts +6 -2
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/constants.d.ts +7 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/preview/OperationPreviewContent.d.ts +1 -2
- package/dist/types/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +1 -2
- package/dist/types/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.d.ts +10 -0
- package/dist/types/components/composites/tx-preview/index.d.ts +0 -2
- package/package.json +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/useTransactionConfirmFlow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/hooks/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/hooks/useCalldataOperationPreview.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/computeTransactionExecutionSteps.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/hooks/useParsedTransaction.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/prerequisites/PrerequisiteRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/prerequisites/PrerequisitesCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/prerequisites/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/prerequisites/prerequisiteDetails.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/prerequisites/usePrerequisites.cjs +0 -1
- package/dist/esm/components/composites/tx-preview/confirm/dialog/useTransactionConfirmFlow.js +0 -36
- package/dist/esm/components/composites/tx-preview/confirm/hooks/index.js +0 -4
- package/dist/esm/components/composites/tx-preview/confirm/hooks/useCalldataOperationPreview.js +0 -35
- package/dist/esm/components/composites/tx-preview/confirm/stepper/computeTransactionExecutionSteps.js +0 -55
- package/dist/esm/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.js +0 -45
- package/dist/esm/components/composites/tx-preview/hooks/useParsedTransaction.js +0 -45
- package/dist/esm/components/composites/tx-preview/prerequisites/PrerequisiteRow.js +0 -21
- package/dist/esm/components/composites/tx-preview/prerequisites/PrerequisitesCard.js +0 -207
- package/dist/esm/components/composites/tx-preview/prerequisites/index.js +0 -11
- package/dist/esm/components/composites/tx-preview/prerequisites/prerequisiteDetails.js +0 -58
- package/dist/esm/components/composites/tx-preview/prerequisites/usePrerequisites.js +0 -39
- package/dist/types/components/composites/tx-preview/confirm/dialog/useTransactionConfirmFlow.d.ts +0 -14
- package/dist/types/components/composites/tx-preview/confirm/hooks/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/hooks/useCalldataOperationPreview.d.ts +0 -19
- package/dist/types/components/composites/tx-preview/confirm/stepper/computeTransactionExecutionSteps.d.ts +0 -30
- package/dist/types/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.d.ts +0 -16
- package/dist/types/components/composites/tx-preview/hooks/useParsedTransaction.d.ts +0 -40
- package/dist/types/components/composites/tx-preview/prerequisites/PrerequisiteRow.d.ts +0 -11
- package/dist/types/components/composites/tx-preview/prerequisites/PrerequisitesCard.d.ts +0 -17
- package/dist/types/components/composites/tx-preview/prerequisites/index.d.ts +0 -4
- package/dist/types/components/composites/tx-preview/prerequisites/prerequisiteDetails.d.ts +0 -17
- package/dist/types/components/composites/tx-preview/prerequisites/usePrerequisites.d.ts +0 -25
package/dist/esm/components/composites/tx-preview/confirm/preview/OperationPreviewContent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
1
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import "@gearbox-protocol/sdk/preview";
|
|
3
3
|
import "../../../../vertical-indicator/vertical-indicator.js";
|
|
4
4
|
import "../../components/AddressAvatar.js";
|
|
@@ -164,41 +164,29 @@ import "../../../../theme-provider.js";
|
|
|
164
164
|
import "../../../../time-to-liquidation/time-to-liquidation.js";
|
|
165
165
|
import "../../../../toggle/toggle.js";
|
|
166
166
|
import "../../../../with-filter-button/with-filter-button.js";
|
|
167
|
-
import { OperationsCard as
|
|
168
|
-
import {
|
|
169
|
-
|
|
170
|
-
import { StateChangeCard as f } from "../../state-change/StateChangeCard.js";
|
|
171
|
-
function vt({
|
|
167
|
+
import { OperationsCard as e } from "../../operations/OperationsCard.js";
|
|
168
|
+
import { StateChangeCard as n } from "../../state-change/StateChangeCard.js";
|
|
169
|
+
function lo({
|
|
172
170
|
sdk: r,
|
|
173
|
-
operation:
|
|
171
|
+
operation: t,
|
|
174
172
|
simulation: m,
|
|
175
173
|
isSimulating: p,
|
|
176
|
-
wallet:
|
|
177
|
-
refreshNonce: e
|
|
174
|
+
wallet: o
|
|
178
175
|
}) {
|
|
179
176
|
return /* @__PURE__ */ a("div", { className: "flex flex-col gap-4", children: [
|
|
180
|
-
/* @__PURE__ */ o
|
|
181
|
-
|
|
177
|
+
/* @__PURE__ */ i(e, { sdk: r, transaction: t, wallet: o }),
|
|
178
|
+
/* @__PURE__ */ i(
|
|
179
|
+
n,
|
|
182
180
|
{
|
|
183
181
|
sdk: r,
|
|
184
|
-
|
|
185
|
-
wallet: t,
|
|
186
|
-
refreshNonce: e
|
|
187
|
-
}
|
|
188
|
-
),
|
|
189
|
-
/* @__PURE__ */ o(n, { sdk: r, transaction: i, wallet: t }),
|
|
190
|
-
/* @__PURE__ */ o(
|
|
191
|
-
f,
|
|
192
|
-
{
|
|
193
|
-
sdk: r,
|
|
194
|
-
data: i,
|
|
182
|
+
data: t,
|
|
195
183
|
simulation: m,
|
|
196
184
|
isLoading: p,
|
|
197
|
-
wallet:
|
|
185
|
+
wallet: o
|
|
198
186
|
}
|
|
199
187
|
)
|
|
200
188
|
] });
|
|
201
189
|
}
|
|
202
190
|
export {
|
|
203
|
-
|
|
191
|
+
lo as OperationPreviewContent
|
|
204
192
|
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { mergeCompletedStepsInSession as m, mergeStepsSeenInSession as c, useCompletedStepsInSession as g } from "./useCompletedStepsInSession.js";
|
|
1
|
+
import { TransactionProgressStepperTest as e } from "./constants.js";
|
|
2
|
+
import { TransactionProgressStepper as t } from "./TransactionProgressStepper.js";
|
|
3
|
+
import { shouldShowTransactionProgressStepper as a } from "./transactionExecutionStepTypes.js";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
s as getTransactionExecutionStepRequirements,
|
|
10
|
-
m as mergeCompletedStepsInSession,
|
|
11
|
-
c as mergeStepsSeenInSession,
|
|
12
|
-
t as shouldShowTransactionProgressStepper,
|
|
13
|
-
g as useCompletedStepsInSession
|
|
5
|
+
t as TransactionProgressStepper,
|
|
6
|
+
e as TransactionProgressStepperTest,
|
|
7
|
+
a as shouldShowTransactionProgressStepper
|
|
14
8
|
};
|
|
@@ -1,114 +1,95 @@
|
|
|
1
|
-
import { AddressAvatar as
|
|
1
|
+
import { AddressAvatar as t } from "./components/AddressAvatar.js";
|
|
2
2
|
import { AddressParty as n } from "./components/AddressParty.js";
|
|
3
3
|
import { AddressRow as i } from "./components/AddressRow.js";
|
|
4
4
|
import { AmountRow as m } from "./components/AmountRow.js";
|
|
5
5
|
import { getAddressLabel as p } from "./components/addressLabel.js";
|
|
6
6
|
import { CollapsibleCard as l } from "./components/CollapsibleCard.js";
|
|
7
|
-
import { SectionDivider as
|
|
7
|
+
import { SectionDivider as C } from "./components/SectionDivider.js";
|
|
8
8
|
import { TransferList as u } from "./components/TransferList.js";
|
|
9
|
-
import { TransferRow as
|
|
10
|
-
import { TransactionConfirmAmountFieldTest as
|
|
9
|
+
import { TransferRow as w } from "./components/TransferRow.js";
|
|
10
|
+
import { TransactionConfirmAmountFieldTest as S, TransactionConfirmAmountPairTest as g } from "./confirm/amounts/constants.js";
|
|
11
11
|
import { TransactionConfirmAmountField as R } from "./confirm/amounts/TransactionConfirmAmountField.js";
|
|
12
|
-
import { TransactionConfirmAmountPair as
|
|
13
|
-
import { computeTransactionConfirmDialogLayout as
|
|
14
|
-
import { TransactionConfirmDialogTest as
|
|
15
|
-
import { TransactionConfirmDialogView as
|
|
16
|
-
import { TransactionConfirmPageView as
|
|
17
|
-
import { TransactionConfirmShell as
|
|
18
|
-
import { TransactionConfirmShellTest as
|
|
19
|
-
import { useTransactionConfirmDialog as
|
|
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 {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
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";
|
|
12
|
+
import { TransactionConfirmAmountPair as D } from "./confirm/amounts/TransactionConfirmAmountPair.js";
|
|
13
|
+
import { computeTransactionConfirmDialogLayout as O } from "./confirm/dialog/computeTransactionConfirmDialogLayout.js";
|
|
14
|
+
import { TransactionConfirmDialogTest as B, transactionConfirmDialogShellVariants as b, transactionConfirmModalContainerVariants as F, transactionConfirmPreviewScrollVariants as L, transactionConfirmShellContentVariants as y } from "./confirm/dialog/constants.js";
|
|
15
|
+
import { TransactionConfirmDialogView as H } from "./confirm/dialog/TransactionConfirmDialogView.js";
|
|
16
|
+
import { TransactionConfirmPageView as G } from "./confirm/dialog/TransactionConfirmPageView.js";
|
|
17
|
+
import { TransactionConfirmShell as M } from "./confirm/dialog/TransactionConfirmShell.js";
|
|
18
|
+
import { TransactionConfirmShellTest as j } from "./confirm/dialog/TransactionConfirmShell.constants.js";
|
|
19
|
+
import { useTransactionConfirmDialog as z } from "./confirm/dialog/useTransactionConfirmDialog.js";
|
|
20
|
+
import { TransactionConfirmExecuteButton as K } from "./confirm/execution/TransactionConfirmExecuteButton.js";
|
|
21
|
+
import { OperationPreviewContent as Q } from "./confirm/preview/OperationPreviewContent.js";
|
|
22
|
+
import { TransactionConfirmExecuteButtonTest as X, TransactionConfirmFailureResultTest as Y, TransactionConfirmSuccessResultTest as Z, TransactionConfirmTxHashRowTest as _ } from "./confirm/result/constants.js";
|
|
23
|
+
import { TransactionConfirmFailureResult as oo } from "./confirm/result/TransactionConfirmFailureResult.js";
|
|
24
|
+
import { TransactionConfirmSuccessIcon as to } from "./confirm/result/TransactionConfirmSuccessIcon.js";
|
|
25
|
+
import { TransactionConfirmSuccessResult as no } from "./confirm/result/TransactionConfirmSuccessResult.js";
|
|
26
|
+
import { TransactionConfirmTxHashRow as io } from "./confirm/result/TransactionConfirmTxHashRow.js";
|
|
27
|
+
import { TransactionProgressStepperTest as mo } from "./confirm/stepper/constants.js";
|
|
28
|
+
import { TransactionProgressStepper as po } from "./confirm/stepper/TransactionProgressStepper.js";
|
|
29
|
+
import { shouldShowTransactionProgressStepper as lo } from "./confirm/stepper/transactionExecutionStepTypes.js";
|
|
30
|
+
import { PoolOperationConfirmDetailsTest as Co } from "./confirm/summary/constants.js";
|
|
31
|
+
import { PoolOperationConfirmDetails as uo } from "./confirm/summary/PoolOperationConfirmDetails.js";
|
|
32
|
+
import { OperationBody as Po } from "./operations/OperationBody.js";
|
|
33
|
+
import { OperationsCard as go, hasOperationView as ho } from "./operations/OperationsCard.js";
|
|
34
|
+
import { PoolDepositView as Ao } from "./operations/PoolDepositView.js";
|
|
35
|
+
import { PoolRow as Vo } from "./operations/PoolRow.js";
|
|
36
|
+
import { PoolWithdrawView as vo } from "./operations/PoolWithdrawView.js";
|
|
37
|
+
import { BalanceChangeGroup as bo } from "./state-change/BalanceChangeGroup.js";
|
|
38
|
+
import { BalanceChangeRow as Lo } from "./state-change/BalanceChangeRow.js";
|
|
39
|
+
import { PoolStateChangeCard as Eo } from "./state-change/PoolStateChangeCard.js";
|
|
40
|
+
import { StateChangeCard as ko } from "./state-change/StateChangeCard.js";
|
|
41
|
+
import { buildPoolOperationLabels as Io } from "./utils/addressLabels.js";
|
|
42
|
+
import { resolveToken as Wo } from "./utils/poolTokenInfo.js";
|
|
51
43
|
export {
|
|
52
|
-
|
|
44
|
+
t as AddressAvatar,
|
|
53
45
|
n as AddressParty,
|
|
54
46
|
i as AddressRow,
|
|
55
47
|
m as AmountRow,
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
bo as BalanceChangeGroup,
|
|
49
|
+
Lo as BalanceChangeRow,
|
|
58
50
|
l as CollapsibleCard,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
T as SectionDivider,
|
|
71
|
-
rr as StateChangeCard,
|
|
51
|
+
Po as OperationBody,
|
|
52
|
+
Q as OperationPreviewContent,
|
|
53
|
+
go as OperationsCard,
|
|
54
|
+
Ao as PoolDepositView,
|
|
55
|
+
uo as PoolOperationConfirmDetails,
|
|
56
|
+
Co as PoolOperationConfirmDetailsTest,
|
|
57
|
+
Vo as PoolRow,
|
|
58
|
+
Eo as PoolStateChangeCard,
|
|
59
|
+
vo as PoolWithdrawView,
|
|
60
|
+
C as SectionDivider,
|
|
61
|
+
ko as StateChangeCard,
|
|
72
62
|
R as TransactionConfirmAmountField,
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
S as TransactionConfirmAmountFieldTest,
|
|
64
|
+
D as TransactionConfirmAmountPair,
|
|
75
65
|
g as TransactionConfirmAmountPairTest,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
66
|
+
B as TransactionConfirmDialogTest,
|
|
67
|
+
H as TransactionConfirmDialogView,
|
|
68
|
+
K as TransactionConfirmExecuteButton,
|
|
69
|
+
X as TransactionConfirmExecuteButtonTest,
|
|
70
|
+
oo as TransactionConfirmFailureResult,
|
|
71
|
+
Y as TransactionConfirmFailureResultTest,
|
|
72
|
+
G as TransactionConfirmPageView,
|
|
73
|
+
M as TransactionConfirmShell,
|
|
74
|
+
j as TransactionConfirmShellTest,
|
|
75
|
+
to as TransactionConfirmSuccessIcon,
|
|
76
|
+
no as TransactionConfirmSuccessResult,
|
|
77
|
+
Z as TransactionConfirmSuccessResultTest,
|
|
78
|
+
io as TransactionConfirmTxHashRow,
|
|
79
|
+
_ as TransactionConfirmTxHashRowTest,
|
|
80
|
+
po as TransactionProgressStepper,
|
|
81
|
+
mo as TransactionProgressStepperTest,
|
|
92
82
|
u as TransferList,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
po as computeTransactionExecutionSteps,
|
|
83
|
+
w as TransferRow,
|
|
84
|
+
Io as buildPoolOperationLabels,
|
|
85
|
+
O as computeTransactionConfirmDialogLayout,
|
|
97
86
|
p as getAddressLabel,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Po as mergeCompletedStepsInSession,
|
|
101
|
-
wo as mergeStepsSeenInSession,
|
|
102
|
-
Ko as prerequisiteDetailRenderers,
|
|
103
|
-
Mo as renderPrerequisiteDetail,
|
|
104
|
-
ar as resolveToken,
|
|
87
|
+
ho as hasOperationView,
|
|
88
|
+
Wo as resolveToken,
|
|
105
89
|
lo as shouldShowTransactionProgressStepper,
|
|
106
|
-
|
|
107
|
-
F as
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Qo as usePrerequisites,
|
|
112
|
-
j as useTransactionConfirmDialog,
|
|
113
|
-
J as useTransactionConfirmFlow
|
|
90
|
+
b as transactionConfirmDialogShellVariants,
|
|
91
|
+
F as transactionConfirmModalContainerVariants,
|
|
92
|
+
L as transactionConfirmPreviewScrollVariants,
|
|
93
|
+
y as transactionConfirmShellContentVariants,
|
|
94
|
+
z as useTransactionConfirmDialog
|
|
114
95
|
};
|