@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
package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmSuccessResult.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as r } from "react/jsx-runtime";
|
|
2
|
+
import { VSpace as t } from "../../../../vspace/vspace.js";
|
|
3
|
+
import { useIsMobile as u } from "../../../../../hooks/use-media-query.js";
|
|
4
|
+
import { TransactionConfirmSuccessResultTest as i } from "./constants.js";
|
|
5
|
+
import { TransactionConfirmSuccessIcon as f } from "./TransactionConfirmSuccessIcon.js";
|
|
6
|
+
function v({
|
|
7
|
+
headline: o,
|
|
8
|
+
subtitle: d,
|
|
9
|
+
txHashRow: n,
|
|
10
|
+
footerAction: a
|
|
11
|
+
}) {
|
|
12
|
+
const s = u(), m = s ? 20 : 32, h = s ? 12 : 16, c = s ? 24 : 32;
|
|
13
|
+
return /* @__PURE__ */ l(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: "flex w-full flex-col items-center text-center",
|
|
17
|
+
"data-testid": i.root,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ e(t, { height: m }),
|
|
20
|
+
/* @__PURE__ */ e(f, {}),
|
|
21
|
+
/* @__PURE__ */ e(t, { height: 24 }),
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
className: "text-xl font-medium leading-tight md:text-2xl",
|
|
26
|
+
"data-testid": i.headline,
|
|
27
|
+
children: o
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ e(t, { height: h }),
|
|
31
|
+
/* @__PURE__ */ e(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
className: "text-sm text-secondary-foreground",
|
|
35
|
+
"data-testid": i.subtitle,
|
|
36
|
+
children: d
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
n ? /* @__PURE__ */ l(r, { children: [
|
|
40
|
+
/* @__PURE__ */ e(t, { height: c }),
|
|
41
|
+
/* @__PURE__ */ e("div", { className: "w-full text-center", children: n })
|
|
42
|
+
] }) : null,
|
|
43
|
+
a ? /* @__PURE__ */ l(r, { children: [
|
|
44
|
+
/* @__PURE__ */ e(t, { height: c }),
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: "w-full",
|
|
49
|
+
"data-testid": i.footer,
|
|
50
|
+
children: a
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }) : null
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
v as TransactionConfirmSuccessResult
|
|
60
|
+
};
|
package/dist/esm/components/composites/tx-preview/confirm/result/TransactionConfirmTxHashRow.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { TransactionConfirmTxHashRowTest as t } from "./constants.js";
|
|
3
|
+
function o({
|
|
4
|
+
txHashLink: r,
|
|
5
|
+
addToWalletLink: a
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ e(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: "flex w-full flex-wrap items-center justify-center gap-6 sm:gap-8",
|
|
11
|
+
"data-testid": t.root,
|
|
12
|
+
children: [
|
|
13
|
+
a ? /* @__PURE__ */ i("div", { "data-testid": t.addToWallet, children: a }) : null,
|
|
14
|
+
/* @__PURE__ */ i("div", { "data-testid": t.txHashLink, children: r })
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
o as TransactionConfirmTxHashRow
|
|
21
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
class s {
|
|
2
|
+
static root = "transaction-confirm-success-result-root";
|
|
3
|
+
static headline = "transaction-confirm-success-result-headline";
|
|
4
|
+
static subtitle = "transaction-confirm-success-result-subtitle";
|
|
5
|
+
static footer = "transaction-confirm-success-result-footer";
|
|
6
|
+
}
|
|
7
|
+
class o {
|
|
8
|
+
static root = "transaction-confirm-failure-result-root";
|
|
9
|
+
static footer = "transaction-confirm-failure-result-footer";
|
|
10
|
+
}
|
|
11
|
+
class a {
|
|
12
|
+
static root = "transaction-confirm-tx-hash-row-root";
|
|
13
|
+
static txHashLink = "transaction-confirm-tx-hash-row-tx-hash-link";
|
|
14
|
+
static addToWallet = "transaction-confirm-tx-hash-row-add-to-wallet";
|
|
15
|
+
}
|
|
16
|
+
class r {
|
|
17
|
+
static root = "transaction-confirm-execute-button-root";
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
r as TransactionConfirmExecuteButtonTest,
|
|
21
|
+
o as TransactionConfirmFailureResultTest,
|
|
22
|
+
s as TransactionConfirmSuccessResultTest,
|
|
23
|
+
a as TransactionConfirmTxHashRowTest
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TransactionConfirmExecuteButtonTest as n, TransactionConfirmFailureResultTest as s, TransactionConfirmSuccessResultTest as t, TransactionConfirmTxHashRowTest as a } from "./constants.js";
|
|
2
|
+
import { TransactionConfirmFailureResult as i } from "./TransactionConfirmFailureResult.js";
|
|
3
|
+
import { TransactionConfirmSuccessIcon as T } from "./TransactionConfirmSuccessIcon.js";
|
|
4
|
+
import { TransactionConfirmSuccessResult as m } from "./TransactionConfirmSuccessResult.js";
|
|
5
|
+
import { TransactionConfirmTxHashRow as x } from "./TransactionConfirmTxHashRow.js";
|
|
6
|
+
export {
|
|
7
|
+
n as TransactionConfirmExecuteButtonTest,
|
|
8
|
+
i as TransactionConfirmFailureResult,
|
|
9
|
+
s as TransactionConfirmFailureResultTest,
|
|
10
|
+
T as TransactionConfirmSuccessIcon,
|
|
11
|
+
m as TransactionConfirmSuccessResult,
|
|
12
|
+
t as TransactionConfirmSuccessResultTest,
|
|
13
|
+
x as TransactionConfirmTxHashRow,
|
|
14
|
+
a as TransactionConfirmTxHashRowTest
|
|
15
|
+
};
|
package/dist/esm/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "@gearbox-protocol/sdk";
|
|
4
|
+
import { cn as o } from "../../../../../utils/cn.js";
|
|
5
|
+
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
|
+
import "luxon";
|
|
8
|
+
import "../../../../../utils/z-index.js";
|
|
9
|
+
import { TransactionProgressStepperTest as m } from "./constants.js";
|
|
10
|
+
function c({ status: t }) {
|
|
11
|
+
const a = t === "active", r = t === "completed";
|
|
12
|
+
return /* @__PURE__ */ e(
|
|
13
|
+
"span",
|
|
14
|
+
{
|
|
15
|
+
className: o(
|
|
16
|
+
"relative z-10 block size-[9px] shrink-0 rounded-full",
|
|
17
|
+
a && "bg-foreground",
|
|
18
|
+
r && "bg-gray-50",
|
|
19
|
+
!a && !r && "border border-gray-50 bg-transparent"
|
|
20
|
+
),
|
|
21
|
+
"aria-hidden": !0
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
function w({
|
|
26
|
+
steps: t,
|
|
27
|
+
renderLabel: a
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ e(
|
|
30
|
+
"ol",
|
|
31
|
+
{
|
|
32
|
+
className: "m-0 flex w-full list-none p-0",
|
|
33
|
+
"data-testid": m.root,
|
|
34
|
+
children: t.map((r, n) => {
|
|
35
|
+
const l = n === t.length - 1, s = r.status === "active";
|
|
36
|
+
return /* @__PURE__ */ i(
|
|
37
|
+
"li",
|
|
38
|
+
{
|
|
39
|
+
className: "flex min-w-0 flex-1 flex-col items-center",
|
|
40
|
+
"aria-current": s ? "step" : void 0,
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ i("div", { className: "flex w-full items-center", children: [
|
|
43
|
+
n > 0 ? /* @__PURE__ */ e("span", { className: "h-px min-w-0 flex-1 bg-gray-50", "aria-hidden": !0 }) : /* @__PURE__ */ e("span", { className: "min-w-0 flex-1", "aria-hidden": !0 }),
|
|
44
|
+
/* @__PURE__ */ e(c, { status: r.status }),
|
|
45
|
+
l ? /* @__PURE__ */ e("span", { className: "min-w-0 flex-1", "aria-hidden": !0 }) : /* @__PURE__ */ e("span", { className: "h-px min-w-0 flex-1 bg-gray-50", "aria-hidden": !0 })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
"span",
|
|
49
|
+
{
|
|
50
|
+
className: o(
|
|
51
|
+
"mt-3 max-w-full truncate px-1 text-center text-xs leading-snug",
|
|
52
|
+
s ? "font-medium text-foreground" : "font-normal text-secondary-foreground"
|
|
53
|
+
),
|
|
54
|
+
children: a(r)
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
r.id
|
|
60
|
+
);
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
w as TransactionProgressStepper
|
|
67
|
+
};
|
|
@@ -1,28 +1,55 @@
|
|
|
1
|
-
const r = [
|
|
2
|
-
"connect",
|
|
3
|
-
"network",
|
|
4
|
-
"approve",
|
|
5
|
-
"execute"
|
|
6
|
-
], l = {
|
|
7
|
-
connect: "connect",
|
|
8
|
-
network: "network",
|
|
9
|
-
approve: "approve",
|
|
10
|
-
execute: "execute"
|
|
11
|
-
};
|
|
12
1
|
function p(e) {
|
|
13
|
-
return
|
|
2
|
+
return {
|
|
3
|
+
approve: !e.allowWalletBatching && (e.needsApproval || e.isApprovalPending),
|
|
4
|
+
auth: !e.isAuthReady
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function l(e) {
|
|
8
|
+
return !e.allowWalletBatching && (e.isApprovalPending || e.needsApproval);
|
|
9
|
+
}
|
|
10
|
+
function c(e, t) {
|
|
11
|
+
return p(t)[e];
|
|
12
|
+
}
|
|
13
|
+
function u(e, t) {
|
|
14
|
+
return t.completedStepsInSession?.includes(e) ?? !1;
|
|
15
|
+
}
|
|
16
|
+
function i(e, t) {
|
|
17
|
+
return c(e, t) || u(e, t);
|
|
18
|
+
}
|
|
19
|
+
function f(e) {
|
|
20
|
+
const t = [];
|
|
21
|
+
return i("approve", e) && t.push("approve"), i("auth", e) && t.push("auth"), t.push("execute"), t;
|
|
22
|
+
}
|
|
23
|
+
function v(e, t) {
|
|
24
|
+
return e.isCorrectChain ? l(e) ? "approve" : c("auth", e) ? "auth" : "execute" : t[0] ?? "execute";
|
|
25
|
+
}
|
|
26
|
+
function h(e, t, r, o) {
|
|
27
|
+
const n = o.indexOf(r);
|
|
28
|
+
return o.indexOf(e) < n ? !0 : e === "execute" ? !1 : !!(u(e, t) && !c(e, t));
|
|
29
|
+
}
|
|
30
|
+
function d(e, t) {
|
|
31
|
+
return e === "approve" && t.allowWalletBatching ? "approveBatch" : e === "auth" ? "auth" : e;
|
|
14
32
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
return r.indexOf(e) < n || e === "approve" && t.allowWalletBatching || e === "approve" && !t.needsApproval ? !0 : (e === "execute" && t.isExecuting, !1);
|
|
33
|
+
function S(e) {
|
|
34
|
+
return e.some((t) => t.id !== "execute");
|
|
18
35
|
}
|
|
19
|
-
function
|
|
20
|
-
const t =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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";
|
|
39
|
+
return {
|
|
40
|
+
id: n,
|
|
41
|
+
labelKey: d(n, e),
|
|
42
|
+
status: s
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
steps: o,
|
|
47
|
+
activeStepId: r,
|
|
48
|
+
showProgressStepper: S(o)
|
|
49
|
+
};
|
|
25
50
|
}
|
|
26
51
|
export {
|
|
27
|
-
|
|
52
|
+
x as computeTransactionExecutionSteps,
|
|
53
|
+
p as getTransactionExecutionStepRequirements,
|
|
54
|
+
S as shouldShowTransactionProgressStepper
|
|
28
55
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { computeTransactionExecutionSteps as r } from "./computeTransactionExecutionSteps.js";
|
|
2
|
-
import {
|
|
3
|
-
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";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
p as
|
|
7
|
-
r as computeTransactionExecutionSteps
|
|
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
|
|
8
14
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/stepper/useCompletedStepsInSession.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
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
|
|
17
|
+
}) {
|
|
18
|
+
const [s, a] = S([]), [f, u] = S([]), o = c({
|
|
19
|
+
needsApproval: n,
|
|
20
|
+
isApprovalPending: t,
|
|
21
|
+
allowWalletBatching: p,
|
|
22
|
+
isAuthReady: d
|
|
23
|
+
});
|
|
24
|
+
return i(() => {
|
|
25
|
+
if (!e) {
|
|
26
|
+
a([]), u([]);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
a((r) => m(r, o));
|
|
30
|
+
}, [e, o.approve, o.auth]), i(() => {
|
|
31
|
+
e && u(
|
|
32
|
+
(r) => h(r, s, o)
|
|
33
|
+
);
|
|
34
|
+
}, [
|
|
35
|
+
e,
|
|
36
|
+
s,
|
|
37
|
+
o.approve,
|
|
38
|
+
o.auth
|
|
39
|
+
]), f;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
h as mergeCompletedStepsInSession,
|
|
43
|
+
m as mergeStepsSeenInSession,
|
|
44
|
+
v as useCompletedStepsInSession
|
|
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,70 +1,114 @@
|
|
|
1
1
|
import { AddressAvatar as e } from "./components/AddressAvatar.js";
|
|
2
|
-
import { AddressParty as
|
|
2
|
+
import { AddressParty as n } from "./components/AddressParty.js";
|
|
3
3
|
import { AddressRow as i } from "./components/AddressRow.js";
|
|
4
|
-
import { AmountRow as
|
|
5
|
-
import { getAddressLabel as
|
|
4
|
+
import { AmountRow as m } from "./components/AmountRow.js";
|
|
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 {
|
|
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";
|
|
34
51
|
export {
|
|
35
52
|
e as AddressAvatar,
|
|
36
|
-
|
|
53
|
+
n as AddressParty,
|
|
37
54
|
i as AddressRow,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
m as AmountRow,
|
|
56
|
+
Xo as BalanceChangeGroup,
|
|
57
|
+
Zo as BalanceChangeRow,
|
|
41
58
|
l as CollapsibleCard,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
R as
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
|
70
114
|
};
|
|
@@ -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";
|
|
@@ -178,7 +179,7 @@ function l(o) {
|
|
|
178
179
|
return o.operation;
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function Ot({
|
|
182
183
|
sdk: o,
|
|
183
184
|
transaction: r,
|
|
184
185
|
wallet: i
|
|
@@ -186,6 +187,6 @@ function ht({
|
|
|
186
187
|
return n(r) ? /* @__PURE__ */ t(m, { value: "operations", title: l(r), children: /* @__PURE__ */ t(e, { sdk: o, operation: r, wallet: i }) }) : null;
|
|
187
188
|
}
|
|
188
189
|
export {
|
|
189
|
-
|
|
190
|
+
Ot as OperationsCard,
|
|
190
191
|
n as hasOperationView
|
|
191
192
|
};
|