@gearbox-protocol/ui-kit 3.14.0-next.60 → 3.14.0-next.62
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/block-sync-pill/block-sync-pill.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/index.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 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.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/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/ProgressStepper.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/index.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.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/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 +7 -5
- package/dist/esm/components/block-sync/block-sync.js +7 -5
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +8 -6
- package/dist/esm/components/checkbox/checkbox-labeled.js +5 -3
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +5 -3
- package/dist/esm/components/complex-input/complex-input.js +7 -5
- package/dist/esm/components/composites/index.js +100 -62
- package/dist/esm/components/composites/pool-table/columns.js +20 -18
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +26 -25
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +0 -2
- package/dist/esm/components/composites/tx-preview/confirm/{preview/OperationPreviewContent.js → dialog/TransactionConfirmModalView.js} +51 -33
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +32 -49
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +43 -39
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +4 -10
- package/dist/esm/components/composites/tx-preview/confirm/index.js +35 -52
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +37 -32
- package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +2 -6
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +5 -8
- package/dist/esm/components/composites/tx-preview/index.js +38 -96
- package/dist/esm/components/compound-apy/compound-apy.js +7 -5
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +5 -3
- package/dist/esm/components/index.js +686 -648
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +7 -5
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +5 -3
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +7 -5
- package/dist/esm/components/with-copy/with-copy.js +7 -5
- package/dist/esm/index.js +837 -799
- package/dist/globals.css +1 -1
- package/dist/types/components/composites/index.d.ts +1 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +3 -3
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +17 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +12 -20
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +4 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +1 -4
- package/dist/types/components/composites/tx-preview/confirm/index.d.ts +0 -2
- package/dist/types/components/composites/tx-preview/confirm/stepper/ProgressStepper.d.ts +12 -5
- package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/index.d.ts +0 -16
- package/package.json +1 -11
- package/dist/cjs/components/composites/tx-preview/components/AddressAvatar.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/AddressParty.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/AddressRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/AmountRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/CollapsibleCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/SectionDivider.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/TransferList.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/TransferRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/addressLabel.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/preview/OperationPreviewContent.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/preview/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/constants.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/OperationBody.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/OperationsCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolDepositView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolWithdrawView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeGroup.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/PoolStateChangeCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/StateChangeCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/types.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/utils/addressLabels.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/utils/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/utils/poolTokenInfo.cjs +0 -1
- package/dist/esm/components/composites/tx-preview/components/AddressAvatar.js +0 -47
- package/dist/esm/components/composites/tx-preview/components/AddressParty.js +0 -17
- package/dist/esm/components/composites/tx-preview/components/AddressRow.js +0 -16
- package/dist/esm/components/composites/tx-preview/components/AmountRow.js +0 -30
- package/dist/esm/components/composites/tx-preview/components/CollapsibleCard.js +0 -45
- package/dist/esm/components/composites/tx-preview/components/SectionDivider.js +0 -12
- package/dist/esm/components/composites/tx-preview/components/TransferList.js +0 -25
- package/dist/esm/components/composites/tx-preview/components/TransferRow.js +0 -52
- package/dist/esm/components/composites/tx-preview/components/addressLabel.js +0 -7
- package/dist/esm/components/composites/tx-preview/components/index.js +0 -20
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.js +0 -63
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.js +0 -50
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.js +0 -6
- package/dist/esm/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.js +0 -20
- package/dist/esm/components/composites/tx-preview/confirm/preview/index.js +0 -4
- package/dist/esm/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.js +0 -67
- package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.js +0 -65
- package/dist/esm/components/composites/tx-preview/confirm/summary/constants.js +0 -6
- package/dist/esm/components/composites/tx-preview/confirm/summary/index.js +0 -6
- package/dist/esm/components/composites/tx-preview/operations/OperationBody.js +0 -10
- package/dist/esm/components/composites/tx-preview/operations/OperationsCard.js +0 -195
- package/dist/esm/components/composites/tx-preview/operations/PoolDepositView.js +0 -204
- package/dist/esm/components/composites/tx-preview/operations/PoolRow.js +0 -20
- package/dist/esm/components/composites/tx-preview/operations/PoolWithdrawView.js +0 -198
- package/dist/esm/components/composites/tx-preview/operations/index.js +0 -13
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeGroup.js +0 -185
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeRow.js +0 -61
- package/dist/esm/components/composites/tx-preview/state-change/PoolStateChangeCard.js +0 -23
- package/dist/esm/components/composites/tx-preview/state-change/StateChangeCard.js +0 -200
- package/dist/esm/components/composites/tx-preview/state-change/index.js +0 -10
- package/dist/esm/components/composites/tx-preview/types.js +0 -1
- package/dist/esm/components/composites/tx-preview/utils/addressLabels.js +0 -41
- package/dist/esm/components/composites/tx-preview/utils/index.js +0 -6
- package/dist/esm/components/composites/tx-preview/utils/poolTokenInfo.js +0 -12
- package/dist/types/components/composites/tx-preview/components/AddressAvatar.d.ts +0 -12
- package/dist/types/components/composites/tx-preview/components/AddressParty.d.ts +0 -14
- package/dist/types/components/composites/tx-preview/components/AddressRow.d.ts +0 -7
- package/dist/types/components/composites/tx-preview/components/AmountRow.d.ts +0 -15
- package/dist/types/components/composites/tx-preview/components/CollapsibleCard.d.ts +0 -22
- package/dist/types/components/composites/tx-preview/components/SectionDivider.d.ts +0 -10
- package/dist/types/components/composites/tx-preview/components/TransferList.d.ts +0 -19
- package/dist/types/components/composites/tx-preview/components/TransferRow.d.ts +0 -30
- package/dist/types/components/composites/tx-preview/components/addressLabel.d.ts +0 -27
- package/dist/types/components/composites/tx-preview/components/index.d.ts +0 -9
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.d.ts +0 -16
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.d.ts +0 -24
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.d.ts +0 -8
- package/dist/types/components/composites/tx-preview/confirm/preview/OperationPreviewContent.d.ts +0 -12
- package/dist/types/components/composites/tx-preview/confirm/preview/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.d.ts +0 -7
- package/dist/types/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.d.ts +0 -15
- package/dist/types/components/composites/tx-preview/confirm/summary/constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/summary/index.d.ts +0 -2
- package/dist/types/components/composites/tx-preview/operations/OperationBody.d.ts +0 -15
- package/dist/types/components/composites/tx-preview/operations/OperationsCard.d.ts +0 -21
- package/dist/types/components/composites/tx-preview/operations/PoolDepositView.d.ts +0 -11
- package/dist/types/components/composites/tx-preview/operations/PoolRow.d.ts +0 -8
- package/dist/types/components/composites/tx-preview/operations/PoolWithdrawView.d.ts +0 -11
- package/dist/types/components/composites/tx-preview/operations/index.d.ts +0 -5
- package/dist/types/components/composites/tx-preview/state-change/BalanceChangeGroup.d.ts +0 -11
- package/dist/types/components/composites/tx-preview/state-change/BalanceChangeRow.d.ts +0 -14
- package/dist/types/components/composites/tx-preview/state-change/PoolStateChangeCard.d.ts +0 -18
- package/dist/types/components/composites/tx-preview/state-change/StateChangeCard.d.ts +0 -21
- package/dist/types/components/composites/tx-preview/state-change/index.d.ts +0 -4
- package/dist/types/components/composites/tx-preview/types.d.ts +0 -19
- package/dist/types/components/composites/tx-preview/utils/addressLabels.d.ts +0 -16
- package/dist/types/components/composites/tx-preview/utils/index.d.ts +0 -2
- package/dist/types/components/composites/tx-preview/utils/poolTokenInfo.d.ts +0 -14
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { faVault as n, faWallet as i } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
-
import { getStatic as a } from "@gearbox-protocol/static";
|
|
4
|
-
import { FaIcon as r } from "../../../icons/fa-icon.js";
|
|
5
|
-
import { RoundedImage as c } from "../../../rounded-image/rounded-image.js";
|
|
6
|
-
import { Identicon as l } from "../../../signatures/identicon.js";
|
|
7
|
-
const t = 24, m = a("/logo/logo_symbol.png");
|
|
8
|
-
function x({
|
|
9
|
-
address: o,
|
|
10
|
-
role: s = "external"
|
|
11
|
-
}) {
|
|
12
|
-
switch (s) {
|
|
13
|
-
case "wallet":
|
|
14
|
-
return /* @__PURE__ */ e(
|
|
15
|
-
"span",
|
|
16
|
-
{
|
|
17
|
-
className: "flex shrink-0 items-center justify-center rounded-full bg-gray-700",
|
|
18
|
-
style: { width: t, height: t },
|
|
19
|
-
children: /* @__PURE__ */ e(r, { icon: i, className: "size-3 text-foreground" })
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
case "creditAccount":
|
|
23
|
-
return /* @__PURE__ */ e(
|
|
24
|
-
"span",
|
|
25
|
-
{
|
|
26
|
-
className: "flex shrink-0 items-center justify-center rounded-full bg-gray-700",
|
|
27
|
-
style: { width: t, height: t },
|
|
28
|
-
children: /* @__PURE__ */ e(r, { icon: n, className: "size-3 text-foreground" })
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
case "pool":
|
|
32
|
-
return /* @__PURE__ */ e(
|
|
33
|
-
c,
|
|
34
|
-
{
|
|
35
|
-
size: t,
|
|
36
|
-
fit: "contain",
|
|
37
|
-
src: m,
|
|
38
|
-
className: "shrink-0"
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
default:
|
|
42
|
-
return /* @__PURE__ */ e(l, { address: o, size: t });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
x as AddressAvatar
|
|
47
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
|
-
import { WithCopy as s } from "../../../with-copy/with-copy.js";
|
|
3
|
-
import { shortenHash as a } from "../../../../utils/format.js";
|
|
4
|
-
import { AddressAvatar as c } from "./AddressAvatar.js";
|
|
5
|
-
function x({ address: r, label: t }) {
|
|
6
|
-
const o = a(r);
|
|
7
|
-
return /* @__PURE__ */ n("span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
8
|
-
/* @__PURE__ */ e(c, { address: r, role: t?.role }),
|
|
9
|
-
/* @__PURE__ */ e("span", { className: "flex min-w-0 flex-col", children: t?.transferLabel ? /* @__PURE__ */ n(m, { children: [
|
|
10
|
-
/* @__PURE__ */ e("span", { className: "truncate text-foreground text-sm", children: t.transferLabel }),
|
|
11
|
-
/* @__PURE__ */ e(s, { toCopy: r, children: /* @__PURE__ */ e("span", { className: "font-mono text-muted-foreground text-xs", children: o }) })
|
|
12
|
-
] }) : /* @__PURE__ */ e(s, { toCopy: r, children: /* @__PURE__ */ e("span", { className: "font-mono text-foreground text-sm", children: o }) }) })
|
|
13
|
-
] });
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
x as AddressParty
|
|
17
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { VerticalIndicator as e } from "../../../vertical-indicator/vertical-indicator.js";
|
|
3
|
-
import { WithCopy as m } from "../../../with-copy/with-copy.js";
|
|
4
|
-
import { shortenHash as n } from "../../../../utils/format.js";
|
|
5
|
-
function a({ label: t, address: r }) {
|
|
6
|
-
return /* @__PURE__ */ o(
|
|
7
|
-
e,
|
|
8
|
-
{
|
|
9
|
-
label: t,
|
|
10
|
-
value: /* @__PURE__ */ o(m, { toCopy: r, children: /* @__PURE__ */ o("span", { className: "font-mono text-foreground text-sm", children: n(r) }) })
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
a as AddressRow
|
|
16
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as m, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { TokenIcon as t } from "../../../token-icon/token-icon.js";
|
|
3
|
-
import { TokenTemplate as l } from "../../../token-template/token-template.js";
|
|
4
|
-
import { VerticalIndicator as i } from "../../../vertical-indicator/vertical-indicator.js";
|
|
5
|
-
function f({ value: e, token: o, label: s = "Amount" }) {
|
|
6
|
-
return /* @__PURE__ */ m(
|
|
7
|
-
i,
|
|
8
|
-
{
|
|
9
|
-
label: s,
|
|
10
|
-
value: /* @__PURE__ */ r("span", { className: "flex items-center justify-end gap-2", children: [
|
|
11
|
-
/* @__PURE__ */ m(t, { symbol: o.symbol, size: 16 }),
|
|
12
|
-
/* @__PURE__ */ m(
|
|
13
|
-
l,
|
|
14
|
-
{
|
|
15
|
-
value: e,
|
|
16
|
-
token: {
|
|
17
|
-
symbol: o.symbol,
|
|
18
|
-
title: o.symbol,
|
|
19
|
-
decimals: o.decimals
|
|
20
|
-
},
|
|
21
|
-
showSymbol: !0
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
] })
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
f as AmountRow
|
|
30
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Card as p, CardContent as m, CardTitle as a } from "../../../cards/card/card.js";
|
|
3
|
-
import { SimpleAccordion as c, SimpleAccordionItem as n } from "../../../simple-accordion/simple-accordion.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "@gearbox-protocol/sdk";
|
|
6
|
-
import { cn as d } from "../../../../utils/cn.js";
|
|
7
|
-
import "sonner";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
|
-
import "luxon";
|
|
10
|
-
import "../../../../utils/z-index.js";
|
|
11
|
-
function N({
|
|
12
|
-
value: t,
|
|
13
|
-
title: i,
|
|
14
|
-
defaultOpen: o = !0,
|
|
15
|
-
contentClassName: e,
|
|
16
|
-
children: l
|
|
17
|
-
}) {
|
|
18
|
-
return /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(
|
|
19
|
-
c,
|
|
20
|
-
{
|
|
21
|
-
type: "single",
|
|
22
|
-
collapsible: !0,
|
|
23
|
-
defaultValue: o ? t : void 0,
|
|
24
|
-
children: /* @__PURE__ */ r(
|
|
25
|
-
n,
|
|
26
|
-
{
|
|
27
|
-
value: t,
|
|
28
|
-
last: !0,
|
|
29
|
-
triggerClassName: "px-4 py-2",
|
|
30
|
-
title: /* @__PURE__ */ r(a, { children: i }),
|
|
31
|
-
description: /* @__PURE__ */ r(
|
|
32
|
-
m,
|
|
33
|
-
{
|
|
34
|
-
className: d("flex flex-col gap-3 pt-0", e),
|
|
35
|
-
children: l
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
}
|
|
41
|
-
) });
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
N as CollapsibleCard
|
|
45
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Separator as r } from "../../../separator/separator.js";
|
|
3
|
-
function c({ title: s }) {
|
|
4
|
-
return /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
|
|
5
|
-
/* @__PURE__ */ e(r, { className: "flex-1" }),
|
|
6
|
-
/* @__PURE__ */ e("span", { className: "font-medium text-foreground text-xs uppercase tracking-wide", children: s }),
|
|
7
|
-
/* @__PURE__ */ e(r, { className: "flex-1" })
|
|
8
|
-
] });
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
c as SectionDivider
|
|
12
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { SectionDivider as t } from "./SectionDivider.js";
|
|
3
|
-
import { TransferRow as a } from "./TransferRow.js";
|
|
4
|
-
function x({
|
|
5
|
-
transfers: m,
|
|
6
|
-
labels: e,
|
|
7
|
-
resolveToken: l,
|
|
8
|
-
title: n = "Transfers"
|
|
9
|
-
}) {
|
|
10
|
-
return m.length === 0 ? null : /* @__PURE__ */ r("div", { className: "mt-2 flex flex-col gap-3", children: [
|
|
11
|
-
n !== null ? /* @__PURE__ */ i(t, { title: n }) : null,
|
|
12
|
-
/* @__PURE__ */ i("div", { className: "grid grid-cols-[minmax(0,1fr)_auto_auto_auto_minmax(0,1fr)] items-center gap-x-3 gap-y-3", children: m.map((o) => /* @__PURE__ */ i(
|
|
13
|
-
a,
|
|
14
|
-
{
|
|
15
|
-
transfer: o,
|
|
16
|
-
labels: e,
|
|
17
|
-
token: l(o.token)
|
|
18
|
-
},
|
|
19
|
-
`${o.token}-${o.from}-${o.to}-${o.amount}`
|
|
20
|
-
)) })
|
|
21
|
-
] });
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
x as TransferList
|
|
25
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, Fragment as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { faArrowRight as f } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
-
import { FaIcon as n } from "../../../icons/fa-icon.js";
|
|
4
|
-
import { TokenIcon as y } from "../../../token-icon/token-icon.js";
|
|
5
|
-
import { TokenTemplate as b } from "../../../token-template/token-template.js";
|
|
6
|
-
import { AddressParty as d } from "./AddressParty.js";
|
|
7
|
-
import { getAddressLabel as u } from "./addressLabel.js";
|
|
8
|
-
function T({ transfer: e, labels: r, token: o }) {
|
|
9
|
-
const m = u(r, e.from), l = u(r, e.to), i = m?.ours ?? !1, a = l?.ours ?? !1, t = i && !a ? "text-destructive" : a && !i ? "text-success" : "text-muted-foreground";
|
|
10
|
-
return /* @__PURE__ */ c(p, { children: [
|
|
11
|
-
/* @__PURE__ */ s("div", { className: "min-w-0 justify-self-start", children: /* @__PURE__ */ s(d, { address: e.from, label: m }) }),
|
|
12
|
-
/* @__PURE__ */ s(
|
|
13
|
-
n,
|
|
14
|
-
{
|
|
15
|
-
icon: f,
|
|
16
|
-
className: `size-2.5 justify-self-center ${t}`
|
|
17
|
-
}
|
|
18
|
-
),
|
|
19
|
-
/* @__PURE__ */ c(
|
|
20
|
-
"span",
|
|
21
|
-
{
|
|
22
|
-
className: `flex items-center justify-self-center gap-1 whitespace-nowrap text-xs ${t}`,
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ s(y, { symbol: o.symbol, size: 14 }),
|
|
25
|
-
/* @__PURE__ */ s(
|
|
26
|
-
b,
|
|
27
|
-
{
|
|
28
|
-
value: e.amount,
|
|
29
|
-
token: {
|
|
30
|
-
symbol: o.symbol,
|
|
31
|
-
title: o.symbol,
|
|
32
|
-
decimals: o.decimals
|
|
33
|
-
},
|
|
34
|
-
showSymbol: !0
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ s(
|
|
41
|
-
n,
|
|
42
|
-
{
|
|
43
|
-
icon: f,
|
|
44
|
-
className: `size-2.5 justify-self-center ${t}`
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ s("div", { className: "min-w-0 justify-self-start", children: /* @__PURE__ */ s(d, { address: e.to, label: l }) })
|
|
48
|
-
] });
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
T as TransferRow
|
|
52
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AddressAvatar as e } from "./AddressAvatar.js";
|
|
2
|
-
import { AddressParty as s } from "./AddressParty.js";
|
|
3
|
-
import { AddressRow as d } from "./AddressRow.js";
|
|
4
|
-
import { AmountRow as p } from "./AmountRow.js";
|
|
5
|
-
import { getAddressLabel as a } from "./addressLabel.js";
|
|
6
|
-
import { CollapsibleCard as i } from "./CollapsibleCard.js";
|
|
7
|
-
import { SectionDivider as n } from "./SectionDivider.js";
|
|
8
|
-
import { TransferList as R } from "./TransferList.js";
|
|
9
|
-
import { TransferRow as v } from "./TransferRow.js";
|
|
10
|
-
export {
|
|
11
|
-
e as AddressAvatar,
|
|
12
|
-
s as AddressParty,
|
|
13
|
-
d as AddressRow,
|
|
14
|
-
p as AmountRow,
|
|
15
|
-
i as CollapsibleCard,
|
|
16
|
-
n as SectionDivider,
|
|
17
|
-
R as TransferList,
|
|
18
|
-
v as TransferRow,
|
|
19
|
-
a as getAddressLabel
|
|
20
|
-
};
|
package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { TransactionConfirmAmountPairTest as d } from "./constants.js";
|
|
3
|
-
import { TransactionConfirmAmountField as m } from "./TransactionConfirmAmountField.js";
|
|
4
|
-
function T({
|
|
5
|
-
primaryLabel: i,
|
|
6
|
-
primaryAmount: a,
|
|
7
|
-
primaryToken: e,
|
|
8
|
-
primaryUsdMoney: s,
|
|
9
|
-
receiveLabel: u,
|
|
10
|
-
receiveAmount: p,
|
|
11
|
-
receiveToken: c,
|
|
12
|
-
receiveUsdMoney: f,
|
|
13
|
-
loading: o = !1,
|
|
14
|
-
size: r = "md",
|
|
15
|
-
maxLength: n
|
|
16
|
-
}) {
|
|
17
|
-
return /* @__PURE__ */ l(
|
|
18
|
-
"div",
|
|
19
|
-
{
|
|
20
|
-
className: "mb-4 flex flex-col gap-px",
|
|
21
|
-
"data-testid": d.root,
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ t(
|
|
24
|
-
m,
|
|
25
|
-
{
|
|
26
|
-
label: i,
|
|
27
|
-
primaryAmount: {
|
|
28
|
-
amount: a,
|
|
29
|
-
token: e
|
|
30
|
-
},
|
|
31
|
-
secondaryAmount: {
|
|
32
|
-
usd: s
|
|
33
|
-
},
|
|
34
|
-
loading: o,
|
|
35
|
-
position: "primary",
|
|
36
|
-
size: r,
|
|
37
|
-
maxLength: n
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ t(
|
|
41
|
-
m,
|
|
42
|
-
{
|
|
43
|
-
label: u,
|
|
44
|
-
primaryAmount: {
|
|
45
|
-
amount: p,
|
|
46
|
-
token: c
|
|
47
|
-
},
|
|
48
|
-
secondaryAmount: {
|
|
49
|
-
usd: f
|
|
50
|
-
},
|
|
51
|
-
loading: o,
|
|
52
|
-
position: "receive",
|
|
53
|
-
size: r,
|
|
54
|
-
maxLength: n
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
export {
|
|
62
|
-
T as TransactionConfirmAmountPair
|
|
63
|
-
};
|
package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Modal as V } from "../../../../modal/modal.js";
|
|
3
|
-
import { transactionConfirmModalContainerVariants as g } from "./constants.js";
|
|
4
|
-
import { TransactionConfirmPageView as h } from "./TransactionConfirmPageView.js";
|
|
5
|
-
function b({
|
|
6
|
-
open: r,
|
|
7
|
-
onClose: i,
|
|
8
|
-
phase: o = "confirm",
|
|
9
|
-
title: a,
|
|
10
|
-
titleAddon: t,
|
|
11
|
-
preview: e,
|
|
12
|
-
previewLoading: m = !1,
|
|
13
|
-
previewError: f,
|
|
14
|
-
previewErrorTitle: s = "Unable to preview transaction",
|
|
15
|
-
previewClassName: c,
|
|
16
|
-
containerClassName: l,
|
|
17
|
-
containerTestId: u,
|
|
18
|
-
shellTestId: d,
|
|
19
|
-
execution: p,
|
|
20
|
-
progressSteps: C,
|
|
21
|
-
renderProgressStepLabel: w,
|
|
22
|
-
result: x,
|
|
23
|
-
hideTitleAddonOnResult: M = !0
|
|
24
|
-
}) {
|
|
25
|
-
return r ? /* @__PURE__ */ n(V, { show: r, onClickOutside: i, zIndexLayer: "MODAL", children: /* @__PURE__ */ n(
|
|
26
|
-
h,
|
|
27
|
-
{
|
|
28
|
-
phase: o,
|
|
29
|
-
onClose: i,
|
|
30
|
-
title: a,
|
|
31
|
-
titleAddon: t,
|
|
32
|
-
preview: e,
|
|
33
|
-
previewLoading: m,
|
|
34
|
-
previewError: f,
|
|
35
|
-
previewErrorTitle: s,
|
|
36
|
-
previewClassName: c,
|
|
37
|
-
containerClassName: l ?? g(),
|
|
38
|
-
containerTestId: u,
|
|
39
|
-
shellTestId: d,
|
|
40
|
-
execution: p,
|
|
41
|
-
progressSteps: C,
|
|
42
|
-
renderProgressStepLabel: w,
|
|
43
|
-
result: x,
|
|
44
|
-
hideTitleAddonOnResult: M
|
|
45
|
-
}
|
|
46
|
-
) }) : null;
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
b as TransactionConfirmDialogView
|
|
50
|
-
};
|
package/dist/esm/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useState as s, useCallback as e } from "react";
|
|
2
|
-
function u() {
|
|
3
|
-
const [t, o] = s(!1), [c, n] = s(0), r = e(() => {
|
|
4
|
-
n(0), o(!0);
|
|
5
|
-
}, []), a = e(() => {
|
|
6
|
-
o(!1);
|
|
7
|
-
}, []), f = e(() => {
|
|
8
|
-
n((l) => l + 1);
|
|
9
|
-
}, []);
|
|
10
|
-
return {
|
|
11
|
-
open: t,
|
|
12
|
-
openDialog: r,
|
|
13
|
-
closeDialog: a,
|
|
14
|
-
refreshNonce: c,
|
|
15
|
-
bumpRefreshNonce: f
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
u as useTransactionConfirmDialog
|
|
20
|
-
};
|
package/dist/esm/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { isPoolOperation as m } from "@gearbox-protocol/sdk/preview";
|
|
3
|
-
import { PoolDepositView as p } from "./PoolDepositView.js";
|
|
4
|
-
import { PoolWithdrawView as e } from "./PoolWithdrawView.js";
|
|
5
|
-
function s({ sdk: r, operation: o, wallet: i }) {
|
|
6
|
-
return m(o) ? o.operation === "Deposit" ? /* @__PURE__ */ t(p, { sdk: r, operation: o, wallet: i }) : /* @__PURE__ */ t(e, { sdk: r, operation: o, wallet: i }) : null;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
s as OperationBody
|
|
10
|
-
};
|