@gearbox-protocol/ui-kit 3.14.0-next.60 → 3.14.0-next.61
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,185 +0,0 @@
|
|
|
1
|
-
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "../components/AddressAvatar.js";
|
|
3
|
-
import "@gearbox-protocol/static";
|
|
4
|
-
import "react";
|
|
5
|
-
import "@fortawesome/free-solid-svg-icons";
|
|
6
|
-
import "../../../icons/fa-icon.js";
|
|
7
|
-
import "@gearbox-protocol/sdk";
|
|
8
|
-
import "clsx";
|
|
9
|
-
import "tailwind-merge";
|
|
10
|
-
import "sonner";
|
|
11
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
12
|
-
import "luxon";
|
|
13
|
-
import "../../../../utils/z-index.js";
|
|
14
|
-
import "../../../accordion/accordion.js";
|
|
15
|
-
import "../../../alert-badge/alert-badge.js";
|
|
16
|
-
import "../../../alert-dialog/alert-dialog.js";
|
|
17
|
-
import "../../../alert-modal/alert-modal.js";
|
|
18
|
-
import "../../../tooltip/simple-tooltip.js";
|
|
19
|
-
import "../../../tooltip/tooltip.js";
|
|
20
|
-
import "react-intl";
|
|
21
|
-
import "../../../arc-loader/arc-loader.js";
|
|
22
|
-
import "../../../asset-line/asset-line.js";
|
|
23
|
-
import "../../../buttons/back-button/back-button.js";
|
|
24
|
-
import "../../../buttons/button/button.js";
|
|
25
|
-
import "../../../buttons/copy-button/copy-button.js";
|
|
26
|
-
import "../../../buttons/external-button/external-button.js";
|
|
27
|
-
import "../../../buttons/filter-button/filter-button.js";
|
|
28
|
-
import "../../../buttons/navigation-button/navigation-button.js";
|
|
29
|
-
import "../../../buttons/tab-button/tab-button.js";
|
|
30
|
-
import "../../../token-icon/token-icon.js";
|
|
31
|
-
import "wagmi";
|
|
32
|
-
import "../../../auth/wallet-ui-context.js";
|
|
33
|
-
import "../../../avatar/avatar.js";
|
|
34
|
-
import "../../../badge/badge.js";
|
|
35
|
-
import "../../../base-link/base-link.js";
|
|
36
|
-
import "../../../navigation-context/navigation-context.js";
|
|
37
|
-
import "../../../button-checkbox/button-checkbox.js";
|
|
38
|
-
import "../../../card-grid/card-grid.js";
|
|
39
|
-
import "../../../cards/card/card.js";
|
|
40
|
-
import "../../../carousel/carousel.js";
|
|
41
|
-
import "../../../checkbox/checkbox.js";
|
|
42
|
-
import "../../../checkbox/checkbox-labeled.js";
|
|
43
|
-
import "../../../checkbox-item/checkbox-item.js";
|
|
44
|
-
import "../../../client-adapters/styled-button/styled-button.js";
|
|
45
|
-
import "../../../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
46
|
-
import "../../../client-adapters/styled-rounded-image/styled-rounded-image.js";
|
|
47
|
-
import "../../../colored-text/colored-text.js";
|
|
48
|
-
import "../../../input/input.js";
|
|
49
|
-
import "../../../with-title/with-title.js";
|
|
50
|
-
import "../../../smart-number-input/balance-indicator.js";
|
|
51
|
-
import "../../../smart-number-input/smart-number-input.js";
|
|
52
|
-
import "../../credit-account-history/credit-account-history.js";
|
|
53
|
-
import "../../../simple-dropdown/simple-dropdown.js";
|
|
54
|
-
import "../../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
55
|
-
import "../../../typography/typography.js";
|
|
56
|
-
import "../../../table/grid-table.js";
|
|
57
|
-
import "../../../token-symbol/token-symbol.js";
|
|
58
|
-
import "../../../help-tip/help-tip.js";
|
|
59
|
-
import "../../../description/description.js";
|
|
60
|
-
import "../../../confirm-menu/confirm-menu.js";
|
|
61
|
-
import "../../../dialog/dialog-modal-container.js";
|
|
62
|
-
import "../../../text-button/text-button.js";
|
|
63
|
-
import "../../../vertical-indicator/vertical-indicator.js";
|
|
64
|
-
import "../../../points-icon/points-icon.js";
|
|
65
|
-
import "../../../skeleton/skeleton.js";
|
|
66
|
-
import "../../../vertical-list/vertical-list.js";
|
|
67
|
-
import "../../../rounded-image/rounded-image.js";
|
|
68
|
-
import "../../../progress/progress.js";
|
|
69
|
-
import "../../../pool-indicator-icon/pool-indicator-icon.js";
|
|
70
|
-
import "../../strategies-table/components/feature/feature.styles.js";
|
|
71
|
-
import "viem";
|
|
72
|
-
import "../../../icon-button/icon-button.js";
|
|
73
|
-
import "../../../separate-line/separate-line.js";
|
|
74
|
-
import "../../../tip-card/tip-card.js";
|
|
75
|
-
import "../../strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
76
|
-
import "../../../currency-button/currency-button.js";
|
|
77
|
-
import "../../../detailed-apy/detailed-apy.js";
|
|
78
|
-
import "../../../detailed-page-title/detailed-page-title.js";
|
|
79
|
-
import "../../../detailed-page-title/detailed-page-title-copy-button.js";
|
|
80
|
-
import "../../../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
81
|
-
import "../../../modal/modal.js";
|
|
82
|
-
import "@radix-ui/react-dialog";
|
|
83
|
-
import "../../../dialog/dialog-container.js";
|
|
84
|
-
import "../../../dialog/dialog-content.js";
|
|
85
|
-
import "../../../dialog/dialog-description.js";
|
|
86
|
-
import "../../../dialog/dialog-footer.js";
|
|
87
|
-
import "../../../dialog/dialog-header.js";
|
|
88
|
-
import "../../../dialog/dialog-title.js";
|
|
89
|
-
import "../../../dialog/dialog-overlay.js";
|
|
90
|
-
import "../../../label/label.js";
|
|
91
|
-
import "../../../dropdown-menu/dropdown-menu.js";
|
|
92
|
-
import "../../../dropdown-menu/dropdown-menu-checkbox-item.js";
|
|
93
|
-
import "../../../dropdown-menu/dropdown-menu-content.js";
|
|
94
|
-
import "../../../dropdown-menu/dropdown-menu-item.js";
|
|
95
|
-
import "../../../dropdown-menu/dropdown-menu-label.js";
|
|
96
|
-
import "../../../dropdown-menu/dropdown-menu-radio-item.js";
|
|
97
|
-
import "../../../dropdown-menu/dropdown-menu-separator.js";
|
|
98
|
-
import "../../../dropdown-menu/dropdown-menu-shortcut.js";
|
|
99
|
-
import "../../../dropdown-menu/dropdown-menu-sub-content.js";
|
|
100
|
-
import "../../../dropdown-menu/dropdown-menu-sub-trigger.js";
|
|
101
|
-
import "../../../edit-input/edit-input.js";
|
|
102
|
-
import "../../../fadeout-loading/fadeout-loading.js";
|
|
103
|
-
import "../../../filter/filter-block.js";
|
|
104
|
-
import "../../../filter/filter-checkbox-item.js";
|
|
105
|
-
import "../../../filter/filter-chip.js";
|
|
106
|
-
import "../../../filter/filter-chips.js";
|
|
107
|
-
import "../../../filter/filter-dropdown-item.js";
|
|
108
|
-
import "../../../filter/filter-group.js";
|
|
109
|
-
import "../../../filter/filter-label.js";
|
|
110
|
-
import "../../../search-line/search-line.js";
|
|
111
|
-
import "../../../tabs/tabs.js";
|
|
112
|
-
import "../../../filter/filter-modal-item.js";
|
|
113
|
-
import "../../../filter/filter-radio-item.js";
|
|
114
|
-
import "../../../filter/filter-separator.js";
|
|
115
|
-
import "../../../filter/variants.js";
|
|
116
|
-
import "../../../graph/formatters.js";
|
|
117
|
-
import "lightweight-charts";
|
|
118
|
-
import "../../../graph/graph-view.js";
|
|
119
|
-
import "../../../health-factor/health-factor.js";
|
|
120
|
-
import "../../../horizontal-indicator/horizontal-indicator.js";
|
|
121
|
-
import "../../../layout/app-footer/app-footer.js";
|
|
122
|
-
import "../../../layout/app-header/app-header.js";
|
|
123
|
-
import "../../../layout/col/col.js";
|
|
124
|
-
import "../../../layout/container/container.js";
|
|
125
|
-
import "../../../layout/footer/footer.js";
|
|
126
|
-
import "../../../layout/grid/grid.js";
|
|
127
|
-
import "../../../layout/header/header.js";
|
|
128
|
-
import "../../../layout/layout/layout.js";
|
|
129
|
-
import "../../../layout/main-aside-layout/main-aside-layout.js";
|
|
130
|
-
import "../../../page-title/page-title.js";
|
|
131
|
-
import "../../../layout/social-icons/social-icons.js";
|
|
132
|
-
import "../../../legal-agreement/legal-agreement-theme.js";
|
|
133
|
-
import "../../../link/link.js";
|
|
134
|
-
import "../../../../utils/reactochart-compat.js";
|
|
135
|
-
import "../../../status-elements/status-elements.js";
|
|
136
|
-
import "../../../loader/loader.js";
|
|
137
|
-
import "../../../loading/loading.js";
|
|
138
|
-
import "../../../loading-bar/loading-bar.js";
|
|
139
|
-
import "react-markdown";
|
|
140
|
-
import "remark-gfm";
|
|
141
|
-
import "../../../navbar/navbar.js";
|
|
142
|
-
import "../../../navbar/navbar-indicator-context.js";
|
|
143
|
-
import "../../../app-bar/app-bar.js";
|
|
144
|
-
import "../../../navitem/navitem.js";
|
|
145
|
-
import "../../../progress-bar/progress-bar.js";
|
|
146
|
-
import "../../../radio-group/radio-group.js";
|
|
147
|
-
import "../../../search-bar/search-bar.js";
|
|
148
|
-
import "../../../segmented-control/segmented-control.js";
|
|
149
|
-
import "../../../select/select.js";
|
|
150
|
-
import "../../../separator/separator.js";
|
|
151
|
-
import "../../../simple-accordion/simple-accordion.js";
|
|
152
|
-
import "../../../slider/slider.js";
|
|
153
|
-
import "../../../slider/slider-context.js";
|
|
154
|
-
import "@radix-ui/react-slider";
|
|
155
|
-
import "../../../spinner/spinner.js";
|
|
156
|
-
import "../../../spinner-loader/spinner-loader.js";
|
|
157
|
-
import "../../../split-list/split-list.js";
|
|
158
|
-
import "../../../stat-badge/stat-badge.js";
|
|
159
|
-
import "../../../status-dot/status-dot.js";
|
|
160
|
-
import "../../../stepper/stepper.js";
|
|
161
|
-
import "../../../switch/switch.js";
|
|
162
|
-
import "../../../table/table.js";
|
|
163
|
-
import "../../../table/grid-table-loader.js";
|
|
164
|
-
import "../../../textarea/textarea.js";
|
|
165
|
-
import "../../../theme-provider.js";
|
|
166
|
-
import "../../../time-to-liquidation/time-to-liquidation.js";
|
|
167
|
-
import "../../../toggle/toggle.js";
|
|
168
|
-
import "../../../with-filter-button/with-filter-button.js";
|
|
169
|
-
import { getAddressLabel as a } from "../components/addressLabel.js";
|
|
170
|
-
import { SectionDivider as l } from "../components/SectionDivider.js";
|
|
171
|
-
import { BalanceChangeRow as n } from "./BalanceChangeRow.js";
|
|
172
|
-
function ji({
|
|
173
|
-
sdk: m,
|
|
174
|
-
group: o,
|
|
175
|
-
labels: p
|
|
176
|
-
}) {
|
|
177
|
-
const i = a(p, o.address)?.balancesLabel;
|
|
178
|
-
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-3", children: [
|
|
179
|
-
i ? /* @__PURE__ */ r(l, { title: i }) : null,
|
|
180
|
-
/* @__PURE__ */ r("div", { className: "grid grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-x-4 gap-y-2", children: o.changes.map((t) => /* @__PURE__ */ r(n, { sdk: m, change: t }, t.token)) })
|
|
181
|
-
] });
|
|
182
|
-
}
|
|
183
|
-
export {
|
|
184
|
-
ji as BalanceChangeGroup
|
|
185
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { faArrowRight as p } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
-
import { FaIcon as f } from "../../../icons/fa-icon.js";
|
|
4
|
-
import { TokenIcon as d } from "../../../token-icon/token-icon.js";
|
|
5
|
-
import { TokenTemplate as m } from "../../../token-template/token-template.js";
|
|
6
|
-
import "viem";
|
|
7
|
-
import { resolveToken as u } from "../utils/poolTokenInfo.js";
|
|
8
|
-
function v({ sdk: r, change: t }) {
|
|
9
|
-
const s = u(r, t.token), l = t.delta >= 0n, i = l ? t.delta : -t.delta, o = l ? "text-success" : "text-destructive", n = {
|
|
10
|
-
symbol: s.symbol,
|
|
11
|
-
title: s.symbol,
|
|
12
|
-
decimals: s.decimals
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ a(c, { children: [
|
|
15
|
-
/* @__PURE__ */ a(
|
|
16
|
-
"div",
|
|
17
|
-
{
|
|
18
|
-
className: `flex min-w-0 items-center gap-2 justify-self-start ${o}`,
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ e(d, { symbol: s.symbol, size: 16 }),
|
|
21
|
-
/* @__PURE__ */ e("span", { className: "truncate text-sm", children: s.symbol }),
|
|
22
|
-
s.name ? /* @__PURE__ */ e("span", { className: "truncate text-xs opacity-70", children: s.name }) : null
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
),
|
|
26
|
-
/* @__PURE__ */ a("span", { className: "flex items-center justify-self-end gap-2 whitespace-nowrap text-xs", children: [
|
|
27
|
-
/* @__PURE__ */ e("span", { className: `line-through ${o}`, children: /* @__PURE__ */ e(
|
|
28
|
-
m,
|
|
29
|
-
{
|
|
30
|
-
value: t.before,
|
|
31
|
-
token: n,
|
|
32
|
-
showSymbol: !1
|
|
33
|
-
}
|
|
34
|
-
) }),
|
|
35
|
-
/* @__PURE__ */ e(f, { icon: p, className: `size-2.5 ${o}` }),
|
|
36
|
-
/* @__PURE__ */ e("span", { className: o, children: /* @__PURE__ */ e(
|
|
37
|
-
m,
|
|
38
|
-
{
|
|
39
|
-
value: t.after,
|
|
40
|
-
token: n,
|
|
41
|
-
showSymbol: !1
|
|
42
|
-
}
|
|
43
|
-
) })
|
|
44
|
-
] }),
|
|
45
|
-
/* @__PURE__ */ a(
|
|
46
|
-
"span",
|
|
47
|
-
{
|
|
48
|
-
className: `justify-self-start whitespace-nowrap text-xs ${o}`,
|
|
49
|
-
children: [
|
|
50
|
-
"(",
|
|
51
|
-
l ? "+" : "-",
|
|
52
|
-
/* @__PURE__ */ e(m, { value: i, token: n, showSymbol: !1 }),
|
|
53
|
-
")"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
] });
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
v as BalanceChangeRow
|
|
61
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as a, Fragment as m } from "react/jsx-runtime";
|
|
2
|
-
import { buildPoolOperationLabels as i } from "../utils/addressLabels.js";
|
|
3
|
-
import { BalanceChangeGroup as p } from "./BalanceChangeGroup.js";
|
|
4
|
-
function f({
|
|
5
|
-
sdk: o,
|
|
6
|
-
operation: e,
|
|
7
|
-
balanceChanges: t,
|
|
8
|
-
wallet: n
|
|
9
|
-
}) {
|
|
10
|
-
const l = i(o, e, n);
|
|
11
|
-
return /* @__PURE__ */ a(m, { children: t.map((r) => /* @__PURE__ */ a(
|
|
12
|
-
p,
|
|
13
|
-
{
|
|
14
|
-
sdk: o,
|
|
15
|
-
group: r,
|
|
16
|
-
labels: l
|
|
17
|
-
},
|
|
18
|
-
r.address
|
|
19
|
-
)) });
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
f as PoolStateChangeCard
|
|
23
|
-
};
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { isPoolOperation as s } from "@gearbox-protocol/sdk/preview";
|
|
3
|
-
import { AlertBadge as c } from "../../../alert-badge/alert-badge.js";
|
|
4
|
-
import { SkeletonStack as u } from "../../../skeleton/skeleton-stack.js";
|
|
5
|
-
import "../components/AddressAvatar.js";
|
|
6
|
-
import "@gearbox-protocol/static";
|
|
7
|
-
import "react";
|
|
8
|
-
import "@fortawesome/free-solid-svg-icons";
|
|
9
|
-
import "../../../icons/fa-icon.js";
|
|
10
|
-
import "@gearbox-protocol/sdk";
|
|
11
|
-
import "clsx";
|
|
12
|
-
import "tailwind-merge";
|
|
13
|
-
import "sonner";
|
|
14
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
15
|
-
import "luxon";
|
|
16
|
-
import "../../../../utils/z-index.js";
|
|
17
|
-
import "../../../accordion/accordion.js";
|
|
18
|
-
import "../../../alert-dialog/alert-dialog.js";
|
|
19
|
-
import "../../../alert-modal/alert-modal.js";
|
|
20
|
-
import "../../../tooltip/simple-tooltip.js";
|
|
21
|
-
import "../../../tooltip/tooltip.js";
|
|
22
|
-
import "react-intl";
|
|
23
|
-
import "../../../arc-loader/arc-loader.js";
|
|
24
|
-
import "../../../asset-line/asset-line.js";
|
|
25
|
-
import "../../../buttons/back-button/back-button.js";
|
|
26
|
-
import "../../../buttons/button/button.js";
|
|
27
|
-
import "../../../buttons/copy-button/copy-button.js";
|
|
28
|
-
import "../../../buttons/external-button/external-button.js";
|
|
29
|
-
import "../../../buttons/filter-button/filter-button.js";
|
|
30
|
-
import "../../../buttons/navigation-button/navigation-button.js";
|
|
31
|
-
import "../../../buttons/tab-button/tab-button.js";
|
|
32
|
-
import "../../../token-icon/token-icon.js";
|
|
33
|
-
import "wagmi";
|
|
34
|
-
import "../../../auth/wallet-ui-context.js";
|
|
35
|
-
import "../../../avatar/avatar.js";
|
|
36
|
-
import "../../../badge/badge.js";
|
|
37
|
-
import "../../../base-link/base-link.js";
|
|
38
|
-
import "../../../navigation-context/navigation-context.js";
|
|
39
|
-
import "../../../button-checkbox/button-checkbox.js";
|
|
40
|
-
import "../../../card-grid/card-grid.js";
|
|
41
|
-
import "../../../cards/card/card.js";
|
|
42
|
-
import "../../../carousel/carousel.js";
|
|
43
|
-
import "../../../checkbox/checkbox.js";
|
|
44
|
-
import "../../../checkbox/checkbox-labeled.js";
|
|
45
|
-
import "../../../checkbox-item/checkbox-item.js";
|
|
46
|
-
import "../../../client-adapters/styled-button/styled-button.js";
|
|
47
|
-
import "../../../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
48
|
-
import "../../../client-adapters/styled-rounded-image/styled-rounded-image.js";
|
|
49
|
-
import "../../../colored-text/colored-text.js";
|
|
50
|
-
import "../../../input/input.js";
|
|
51
|
-
import "../../../with-title/with-title.js";
|
|
52
|
-
import "../../../smart-number-input/balance-indicator.js";
|
|
53
|
-
import "../../../smart-number-input/smart-number-input.js";
|
|
54
|
-
import "../../credit-account-history/credit-account-history.js";
|
|
55
|
-
import "../../../simple-dropdown/simple-dropdown.js";
|
|
56
|
-
import "../../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
57
|
-
import "../../../typography/typography.js";
|
|
58
|
-
import "../../../table/grid-table.js";
|
|
59
|
-
import "../../../token-symbol/token-symbol.js";
|
|
60
|
-
import "../../../help-tip/help-tip.js";
|
|
61
|
-
import "../../../description/description.js";
|
|
62
|
-
import "../../../confirm-menu/confirm-menu.js";
|
|
63
|
-
import "../../../dialog/dialog-modal-container.js";
|
|
64
|
-
import "../../../text-button/text-button.js";
|
|
65
|
-
import "../../../vertical-indicator/vertical-indicator.js";
|
|
66
|
-
import "../../../points-icon/points-icon.js";
|
|
67
|
-
import "../../../skeleton/skeleton.js";
|
|
68
|
-
import "../../../vertical-list/vertical-list.js";
|
|
69
|
-
import "../../../rounded-image/rounded-image.js";
|
|
70
|
-
import "../../../progress/progress.js";
|
|
71
|
-
import "../../../pool-indicator-icon/pool-indicator-icon.js";
|
|
72
|
-
import "../../strategies-table/components/feature/feature.styles.js";
|
|
73
|
-
import "viem";
|
|
74
|
-
import "../../../icon-button/icon-button.js";
|
|
75
|
-
import "../../../separate-line/separate-line.js";
|
|
76
|
-
import "../../../tip-card/tip-card.js";
|
|
77
|
-
import "../../strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
78
|
-
import "../../../currency-button/currency-button.js";
|
|
79
|
-
import "../../../detailed-apy/detailed-apy.js";
|
|
80
|
-
import "../../../detailed-page-title/detailed-page-title.js";
|
|
81
|
-
import "../../../detailed-page-title/detailed-page-title-copy-button.js";
|
|
82
|
-
import "../../../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
83
|
-
import "../../../modal/modal.js";
|
|
84
|
-
import "@radix-ui/react-dialog";
|
|
85
|
-
import "../../../dialog/dialog-container.js";
|
|
86
|
-
import "../../../dialog/dialog-content.js";
|
|
87
|
-
import "../../../dialog/dialog-description.js";
|
|
88
|
-
import "../../../dialog/dialog-footer.js";
|
|
89
|
-
import "../../../dialog/dialog-header.js";
|
|
90
|
-
import "../../../dialog/dialog-title.js";
|
|
91
|
-
import "../../../dialog/dialog-overlay.js";
|
|
92
|
-
import "../../../label/label.js";
|
|
93
|
-
import "../../../dropdown-menu/dropdown-menu.js";
|
|
94
|
-
import "../../../dropdown-menu/dropdown-menu-checkbox-item.js";
|
|
95
|
-
import "../../../dropdown-menu/dropdown-menu-content.js";
|
|
96
|
-
import "../../../dropdown-menu/dropdown-menu-item.js";
|
|
97
|
-
import "../../../dropdown-menu/dropdown-menu-label.js";
|
|
98
|
-
import "../../../dropdown-menu/dropdown-menu-radio-item.js";
|
|
99
|
-
import "../../../dropdown-menu/dropdown-menu-separator.js";
|
|
100
|
-
import "../../../dropdown-menu/dropdown-menu-shortcut.js";
|
|
101
|
-
import "../../../dropdown-menu/dropdown-menu-sub-content.js";
|
|
102
|
-
import "../../../dropdown-menu/dropdown-menu-sub-trigger.js";
|
|
103
|
-
import "../../../edit-input/edit-input.js";
|
|
104
|
-
import "../../../fadeout-loading/fadeout-loading.js";
|
|
105
|
-
import "../../../filter/filter-block.js";
|
|
106
|
-
import "../../../filter/filter-checkbox-item.js";
|
|
107
|
-
import "../../../filter/filter-chip.js";
|
|
108
|
-
import "../../../filter/filter-chips.js";
|
|
109
|
-
import "../../../filter/filter-dropdown-item.js";
|
|
110
|
-
import "../../../filter/filter-group.js";
|
|
111
|
-
import "../../../filter/filter-label.js";
|
|
112
|
-
import "../../../search-line/search-line.js";
|
|
113
|
-
import "../../../tabs/tabs.js";
|
|
114
|
-
import "../../../filter/filter-modal-item.js";
|
|
115
|
-
import "../../../filter/filter-radio-item.js";
|
|
116
|
-
import "../../../filter/filter-separator.js";
|
|
117
|
-
import "../../../filter/variants.js";
|
|
118
|
-
import "../../../graph/formatters.js";
|
|
119
|
-
import "lightweight-charts";
|
|
120
|
-
import "../../../graph/graph-view.js";
|
|
121
|
-
import "../../../health-factor/health-factor.js";
|
|
122
|
-
import "../../../horizontal-indicator/horizontal-indicator.js";
|
|
123
|
-
import "../../../layout/app-footer/app-footer.js";
|
|
124
|
-
import "../../../layout/app-header/app-header.js";
|
|
125
|
-
import "../../../layout/col/col.js";
|
|
126
|
-
import "../../../layout/container/container.js";
|
|
127
|
-
import "../../../layout/footer/footer.js";
|
|
128
|
-
import "../../../layout/grid/grid.js";
|
|
129
|
-
import "../../../layout/header/header.js";
|
|
130
|
-
import "../../../layout/layout/layout.js";
|
|
131
|
-
import "../../../layout/main-aside-layout/main-aside-layout.js";
|
|
132
|
-
import "../../../page-title/page-title.js";
|
|
133
|
-
import "../../../layout/social-icons/social-icons.js";
|
|
134
|
-
import "../../../legal-agreement/legal-agreement-theme.js";
|
|
135
|
-
import "../../../link/link.js";
|
|
136
|
-
import "../../../../utils/reactochart-compat.js";
|
|
137
|
-
import "../../../status-elements/status-elements.js";
|
|
138
|
-
import "../../../loader/loader.js";
|
|
139
|
-
import "../../../loading/loading.js";
|
|
140
|
-
import "../../../loading-bar/loading-bar.js";
|
|
141
|
-
import "react-markdown";
|
|
142
|
-
import "remark-gfm";
|
|
143
|
-
import "../../../navbar/navbar.js";
|
|
144
|
-
import "../../../navbar/navbar-indicator-context.js";
|
|
145
|
-
import "../../../app-bar/app-bar.js";
|
|
146
|
-
import "../../../navitem/navitem.js";
|
|
147
|
-
import "../../../progress-bar/progress-bar.js";
|
|
148
|
-
import "../../../radio-group/radio-group.js";
|
|
149
|
-
import "../../../search-bar/search-bar.js";
|
|
150
|
-
import "../../../segmented-control/segmented-control.js";
|
|
151
|
-
import "../../../select/select.js";
|
|
152
|
-
import "../../../separator/separator.js";
|
|
153
|
-
import "../../../simple-accordion/simple-accordion.js";
|
|
154
|
-
import "../../../slider/slider.js";
|
|
155
|
-
import "../../../slider/slider-context.js";
|
|
156
|
-
import "@radix-ui/react-slider";
|
|
157
|
-
import "../../../spinner/spinner.js";
|
|
158
|
-
import "../../../spinner-loader/spinner-loader.js";
|
|
159
|
-
import "../../../split-list/split-list.js";
|
|
160
|
-
import "../../../stat-badge/stat-badge.js";
|
|
161
|
-
import "../../../status-dot/status-dot.js";
|
|
162
|
-
import "../../../stepper/stepper.js";
|
|
163
|
-
import "../../../switch/switch.js";
|
|
164
|
-
import "../../../table/table.js";
|
|
165
|
-
import "../../../table/grid-table-loader.js";
|
|
166
|
-
import "../../../textarea/textarea.js";
|
|
167
|
-
import "../../../theme-provider.js";
|
|
168
|
-
import "../../../time-to-liquidation/time-to-liquidation.js";
|
|
169
|
-
import "../../../toggle/toggle.js";
|
|
170
|
-
import "../../../with-filter-button/with-filter-button.js";
|
|
171
|
-
import { CollapsibleCard as p } from "../components/CollapsibleCard.js";
|
|
172
|
-
import { PoolStateChangeCard as f } from "./PoolStateChangeCard.js";
|
|
173
|
-
const m = "state-change", e = "State changes", h = "Transaction will revert";
|
|
174
|
-
function Ao({
|
|
175
|
-
sdk: n,
|
|
176
|
-
data: o,
|
|
177
|
-
simulation: t,
|
|
178
|
-
isLoading: a,
|
|
179
|
-
wallet: l
|
|
180
|
-
}) {
|
|
181
|
-
return s(o) ? a ? /* @__PURE__ */ r(p, { value: m, title: e, defaultOpen: !0, children: /* @__PURE__ */ r(u, { lines: 2 }) }) : t?.status === "failure" ? /* @__PURE__ */ r(c, { variant: "alert", size: "lg", fullWidth: !0, children: /* @__PURE__ */ i("span", { children: [
|
|
182
|
-
/* @__PURE__ */ i("strong", { children: [
|
|
183
|
-
h,
|
|
184
|
-
":"
|
|
185
|
-
] }),
|
|
186
|
-
" ",
|
|
187
|
-
t.error.reason
|
|
188
|
-
] }) }) : t?.status !== "success" ? null : /* @__PURE__ */ r(p, { value: m, title: e, defaultOpen: !0, children: /* @__PURE__ */ r(
|
|
189
|
-
f,
|
|
190
|
-
{
|
|
191
|
-
sdk: n,
|
|
192
|
-
operation: o,
|
|
193
|
-
balanceChanges: t.balanceChanges,
|
|
194
|
-
wallet: l
|
|
195
|
-
}
|
|
196
|
-
) }) : null;
|
|
197
|
-
}
|
|
198
|
-
export {
|
|
199
|
-
Ao as StateChangeCard
|
|
200
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BalanceChangeGroup as o } from "./BalanceChangeGroup.js";
|
|
2
|
-
import { BalanceChangeRow as t } from "./BalanceChangeRow.js";
|
|
3
|
-
import { PoolStateChangeCard as C } from "./PoolStateChangeCard.js";
|
|
4
|
-
import { StateChangeCard as f } from "./StateChangeCard.js";
|
|
5
|
-
export {
|
|
6
|
-
o as BalanceChangeGroup,
|
|
7
|
-
t as BalanceChangeRow,
|
|
8
|
-
C as PoolStateChangeCard,
|
|
9
|
-
f as StateChangeCard
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { getAddress as l, isAddressEqual as n } from "viem";
|
|
2
|
-
import { resolveToken as c } from "./poolTokenInfo.js";
|
|
3
|
-
function f(b, e, a) {
|
|
4
|
-
const r = /* @__PURE__ */ new Map();
|
|
5
|
-
r.set(l(a), {
|
|
6
|
-
transferLabel: "Your wallet",
|
|
7
|
-
balancesLabel: "Wallet balances",
|
|
8
|
-
role: "wallet",
|
|
9
|
-
ours: !0
|
|
10
|
-
});
|
|
11
|
-
const o = c(b, e.pool);
|
|
12
|
-
r.set(l(e.pool), {
|
|
13
|
-
transferLabel: `Pool ${o.name ?? o.symbol}`,
|
|
14
|
-
role: "pool",
|
|
15
|
-
ours: !1
|
|
16
|
-
});
|
|
17
|
-
const s = n(e.receiver, a);
|
|
18
|
-
if (r.set(l(e.receiver), {
|
|
19
|
-
transferLabel: s ? "Your wallet" : e.operation === "Deposit" ? "LP shares receiver" : "Token receiver",
|
|
20
|
-
// The wallet entry above already carries "Wallet balances"; only label the
|
|
21
|
-
// receiver group when it is a distinct address.
|
|
22
|
-
balancesLabel: s ? "Wallet balances" : "Receiver balances",
|
|
23
|
-
role: "wallet",
|
|
24
|
-
ours: !0
|
|
25
|
-
}), e.operation === "Redeem") {
|
|
26
|
-
const t = n(e.owner, a);
|
|
27
|
-
r.set(l(e.owner), {
|
|
28
|
-
transferLabel: t ? "Your wallet" : "Shares owner",
|
|
29
|
-
// Preserve the wallet's balances label when the owner is the wallet (this
|
|
30
|
-
// map entry would otherwise overwrite it); a distinct owner is never a
|
|
31
|
-
// balance-change group.
|
|
32
|
-
balancesLabel: t ? "Wallet balances" : void 0,
|
|
33
|
-
role: "wallet",
|
|
34
|
-
ours: !0
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return r;
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
f as buildPoolOperationLabels
|
|
41
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { AddressRole } from './addressLabel';
|
|
3
|
-
export interface AddressAvatarProps {
|
|
4
|
-
address: Address;
|
|
5
|
-
role?: AddressRole;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Small round avatar for an operation party. Picks an icon based on `role`:
|
|
9
|
-
* wallet / credit-account get a Font Awesome glyph, pools get the Gearbox brand
|
|
10
|
-
* logo, and everything else falls back to an address-derived {@link Identicon}.
|
|
11
|
-
*/
|
|
12
|
-
export declare function AddressAvatar({ address, role, }: AddressAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { AddressLabel } from './addressLabel';
|
|
3
|
-
export interface AddressPartyProps {
|
|
4
|
-
address: Address;
|
|
5
|
-
/** Optional resolved label; controls the displayed name and avatar. */
|
|
6
|
-
label?: AddressLabel;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* One side of a transfer: an avatar plus a name (the resolved label, when
|
|
10
|
-
* present) and the shortened, copyable address. The copy affordance sits on the
|
|
11
|
-
* address line itself (not centered against the whole block). Purely
|
|
12
|
-
* presentational; labels are resolved by the caller.
|
|
13
|
-
*/
|
|
14
|
-
export declare function AddressParty({ address, label }: AddressPartyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
export interface AddressRowProps {
|
|
3
|
-
label: string;
|
|
4
|
-
address: Address;
|
|
5
|
-
}
|
|
6
|
-
/** A labeled row showing a shortened, copyable address. */
|
|
7
|
-
export declare function AddressRow({ label, address }: AddressRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface AmountRowToken {
|
|
2
|
-
symbol: string;
|
|
3
|
-
decimals: number;
|
|
4
|
-
}
|
|
5
|
-
export interface AmountRowProps {
|
|
6
|
-
value: bigint | string | number;
|
|
7
|
-
token: AmountRowToken;
|
|
8
|
-
/** Row label shown on the left. */
|
|
9
|
-
label?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A two-column row: a label on the left and a token amount (icon + formatted
|
|
13
|
-
* value + symbol) on the right.
|
|
14
|
-
*/
|
|
15
|
-
export declare function AmountRow({ value, token, label }: AmountRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface CollapsibleCardProps {
|
|
3
|
-
/** Unique value identifying the accordion item within the card. */
|
|
4
|
-
value: string;
|
|
5
|
-
/** Header title, rendered inside a `CardTitle`. */
|
|
6
|
-
title: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Whether the card is expanded by default.
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
defaultOpen?: boolean;
|
|
12
|
-
/** Extra classes merged into the content wrapper (default `flex flex-col gap-3 pt-0`). */
|
|
13
|
-
contentClassName?: string;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Collapsible card shell: a `Card` wrapping a single-item `SimpleAccordion`
|
|
18
|
-
* whose header is the `title` and whose body is `children`. Encapsulates the
|
|
19
|
-
* repeated `Card -> SimpleAccordion -> SimpleAccordionItem` pattern used across
|
|
20
|
-
* the decode feature cards.
|
|
21
|
-
*/
|
|
22
|
-
export declare function CollapsibleCard({ value, title, defaultOpen, contentClassName, children, }: CollapsibleCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface SectionDividerProps {
|
|
2
|
-
/** Section heading rendered between the two separator rules. */
|
|
3
|
-
title: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* A labeled divider: a centered, uppercase heading flanked by horizontal rules.
|
|
7
|
-
* Used to introduce a section inside an operation card (e.g. "Transfers" or the
|
|
8
|
-
* per-address balance groups in the state-changes card).
|
|
9
|
-
*/
|
|
10
|
-
export declare function SectionDivider({ title }: SectionDividerProps): import("react/jsx-runtime").JSX.Element;
|