@gearbox-protocol/ui-kit 3.14.0-next.6 → 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/README.md +1 -0
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/apy/apy.cjs +1 -1
- 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 -0
- package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +1 -0
- package/dist/cjs/components/block-sync-pill/index.cjs +1 -0
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.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/credit-account-history/body.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/cells/details.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/cells/hash.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/cells/index.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/cells/protocol.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/cells/token-list.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/credit-account-history.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/index.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/line.cjs +1 -0
- package/dist/cjs/components/composites/credit-account-history/types.cjs +1 -0
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/notification-center/index.cjs +1 -0
- package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -0
- package/dist/cjs/components/composites/notification-center/types.cjs +1 -0
- 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/constants.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/TransactionConfirmModalView.cjs +1 -0
- 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/computeTransactionConfirmDialogLayout.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.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 -0
- 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/ProgressStepper.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/constants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/index.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -0
- 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/graph/formatters.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/graph/index.cjs +1 -1
- package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/app-footer/app-footer.cjs +1 -0
- package/dist/cjs/components/layout/app-footer/index.cjs +1 -0
- package/dist/cjs/components/layout/app-header/app-header.cjs +1 -0
- package/dist/cjs/components/layout/app-header/index.cjs +1 -0
- package/dist/cjs/components/layout/index.cjs +1 -1
- package/dist/cjs/components/layout/main-aside-layout/main-aside-layout.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/link/link.cjs +1 -1
- package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/token-template/token-template.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/configs/tailwind-preset.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-filter.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/test-ids/index.cjs +1 -1
- package/dist/cjs/test-ids/notification-center.cjs +1 -0
- package/dist/esm/components/alert-badge/alert-badge.js +12 -10
- package/dist/esm/components/app-bar/app-bar.js +1 -1
- package/dist/esm/components/apy/apy.js +9 -9
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +14 -8
- package/dist/esm/components/block-sync/block-sync.js +14 -8
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +243 -0
- package/dist/esm/components/block-sync-pill/block-sync-status.js +12 -0
- package/dist/esm/components/block-sync-pill/index.js +4 -0
- package/dist/esm/components/buttons/button/button.js +1 -0
- package/dist/esm/components/checkbox/checkbox-labeled.js +12 -6
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +11 -11
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +12 -6
- package/dist/esm/components/complex-input/complex-input.js +14 -8
- package/dist/esm/components/composites/credit-account-history/body.js +73 -0
- package/dist/esm/components/composites/credit-account-history/cells/details.js +22 -0
- package/dist/esm/components/composites/credit-account-history/cells/hash.js +24 -0
- package/dist/esm/components/composites/credit-account-history/cells/index.js +10 -0
- package/dist/esm/components/composites/credit-account-history/cells/protocol.js +25 -0
- package/dist/esm/components/composites/credit-account-history/cells/token-list.js +43 -0
- package/dist/esm/components/composites/credit-account-history/credit-account-history.js +46 -0
- package/dist/esm/components/composites/credit-account-history/index.js +8 -0
- package/dist/esm/components/composites/credit-account-history/line.js +125 -0
- package/dist/esm/components/composites/credit-account-history/types.js +9 -0
- package/dist/esm/components/composites/index.js +125 -79
- package/dist/esm/components/composites/notification-center/index.js +4 -0
- package/dist/esm/components/composites/notification-center/notification-center.js +208 -0
- package/dist/esm/components/composites/notification-center/types.js +1 -0
- package/dist/esm/components/composites/pool-table/columns.js +51 -45
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +234 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/constants.js +10 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +7 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +213 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +53 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +97 -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 +23 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +14 -0
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.js +1 -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 +40 -0
- 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/ProgressStepper.js +105 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +6 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +8 -0
- package/dist/esm/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.js +6 -0
- package/dist/esm/components/composites/tx-preview/index.js +40 -0
- package/dist/esm/components/compound-apy/compound-apy.js +14 -8
- package/dist/esm/components/confirm-menu/confirm-menu.js +28 -25
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +12 -6
- package/dist/esm/components/graph/formatters.js +128 -132
- package/dist/esm/components/graph/graph.js +744 -389
- package/dist/esm/components/graph/index.js +26 -24
- package/dist/esm/components/health-factor/health-factor.js +27 -26
- package/dist/esm/components/index.js +793 -722
- package/dist/esm/components/layout/app-footer/app-footer.js +54 -0
- package/dist/esm/components/layout/app-footer/index.js +5 -0
- package/dist/esm/components/layout/app-header/app-header.js +100 -0
- package/dist/esm/components/layout/app-header/index.js +4 -0
- package/dist/esm/components/layout/index.js +32 -27
- package/dist/esm/components/layout/main-aside-layout/main-aside-layout.js +107 -58
- 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/link/link.js +42 -35
- package/dist/esm/components/loader-guard/loader-guard.js +7 -5
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +14 -8
- package/dist/esm/components/segmented-control/segmented-control.js +21 -21
- package/dist/esm/components/smart-number-input/smart-number-input.js +33 -29
- package/dist/esm/components/tab-control/tab-control.js +1 -1
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +12 -6
- package/dist/esm/components/token-template/token-template.js +17 -17
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +14 -8
- package/dist/esm/components/trading-view/trading-view.js +164 -147
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +39 -33
- package/dist/esm/components/with-copy/with-copy.js +14 -8
- package/dist/esm/configs/tailwind-preset.js +1 -0
- package/dist/esm/hooks/index.js +50 -47
- package/dist/esm/hooks/use-filter.js +63 -29
- package/dist/esm/index.js +972 -896
- package/dist/esm/locale/en.json.js +10 -0
- package/dist/esm/test-ids/index.js +14 -12
- package/dist/esm/test-ids/notification-center.js +16 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/alert-badge/alert-badge.d.ts +1 -1
- package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +35 -0
- package/dist/types/components/block-sync-pill/block-sync-status.d.ts +29 -0
- package/dist/types/components/block-sync-pill/index.d.ts +1 -0
- package/dist/types/components/buttons/button/button.d.ts +4 -3
- package/dist/types/components/composites/credit-account-history/body.d.ts +14 -0
- package/dist/types/components/composites/credit-account-history/cells/details.d.ts +9 -0
- package/dist/types/components/composites/credit-account-history/cells/hash.d.ts +6 -0
- package/dist/types/components/composites/credit-account-history/cells/index.d.ts +4 -0
- package/dist/types/components/composites/credit-account-history/cells/protocol.d.ts +7 -0
- package/dist/types/components/composites/credit-account-history/cells/token-list.d.ts +9 -0
- package/dist/types/components/composites/credit-account-history/credit-account-history.d.ts +15 -0
- package/dist/types/components/composites/credit-account-history/index.d.ts +2 -0
- package/dist/types/components/composites/credit-account-history/line.d.ts +18 -0
- package/dist/types/components/composites/credit-account-history/types.d.ts +36 -0
- package/dist/types/components/composites/index.d.ts +3 -0
- package/dist/types/components/composites/notification-center/index.d.ts +2 -0
- package/dist/types/components/composites/notification-center/notification-center.d.ts +9 -0
- package/dist/types/components/composites/notification-center/types.d.ts +31 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +29 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/constants.d.ts +6 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +2 -0
- 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 +15 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -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 +17 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +5 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +4 -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 +5 -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/ProgressStepper.d.ts +36 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +3 -0
- package/dist/types/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.d.ts +10 -0
- package/dist/types/components/composites/tx-preview/index.d.ts +1 -0
- package/dist/types/components/confirm-menu/confirm-menu.d.ts +4 -2
- package/dist/types/components/graph/graph.d.ts +112 -2
- package/dist/types/components/graph/index.d.ts +1 -1
- package/dist/types/components/health-factor/health-factor.d.ts +6 -3
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/layout/app-footer/app-footer.d.ts +62 -0
- package/dist/types/components/layout/app-footer/index.d.ts +1 -0
- package/dist/types/components/layout/app-header/app-header.d.ts +67 -0
- package/dist/types/components/layout/app-header/index.d.ts +1 -0
- package/dist/types/components/layout/index.d.ts +2 -0
- package/dist/types/components/layout/main-aside-layout/main-aside-layout.d.ts +42 -0
- 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/dist/types/components/trading-view/trading-view.d.ts +15 -1
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +6 -0
- package/dist/types/configs/tailwind-preset.d.ts +1 -0
- package/dist/types/hooks/use-filter.d.ts +46 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/locale/en.json.d.ts +13 -0
- package/dist/types/test-ids/index.d.ts +1 -0
- package/dist/types/test-ids/notification-center.d.ts +13 -0
- package/dist/types/types/footer.d.ts +24 -3
- package/package.json +7 -4
- package/src/styles/base.css +2 -0
- package/src/styles/theme.css +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { AssetsListCell as A } from "../../assets-list-cell/assets-list-cell.js";
|
|
3
|
-
import { CompoundAPY as
|
|
3
|
+
import { CompoundAPY as x } from "../../compound-apy/compound-apy.js";
|
|
4
4
|
import { Description as c } from "../../description/description.js";
|
|
5
|
-
import { NetworkIcon as
|
|
5
|
+
import { NetworkIcon as C } from "../../network-icon/network-icon.js";
|
|
6
6
|
import { PercentIndicator as N } from "../../percent-indicator/percent-indicator.js";
|
|
7
7
|
import { PoolAPYTooltip as P } from "../../pool-apy-tooltip/pool-apy-tooltip.js";
|
|
8
8
|
import { PoolIndicatorIcon as v } from "../../pool-indicator-icon/pool-indicator-icon.js";
|
|
@@ -20,15 +20,18 @@ import "../../../utils/z-index.js";
|
|
|
20
20
|
import { TokenSymbol as Y } from "../../token-symbol/token-symbol.js";
|
|
21
21
|
import { FormattedMessageTyped as f } from "../../typed-intl/index.js";
|
|
22
22
|
import { poolTableTestIds as z } from "../../../test-ids/pool-table.js";
|
|
23
|
+
import "../credit-account-history/credit-account-history.js";
|
|
24
|
+
import "@fortawesome/free-solid-svg-icons";
|
|
25
|
+
import "../../icons/fa-icon.js";
|
|
26
|
+
import "../../simple-dropdown/simple-dropdown.js";
|
|
27
|
+
import "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
28
|
+
import "../../typography/typography.js";
|
|
23
29
|
import "@gearbox-protocol/static";
|
|
24
30
|
import "../../base-link/base-link.js";
|
|
25
31
|
import "../../client-adapters/styled-rounded-image/styled-rounded-image.js";
|
|
26
32
|
import "../../tooltip/simple-tooltip.js";
|
|
27
33
|
import "@gearbox-protocol/sdk/common-utils";
|
|
28
34
|
import "../../table/grid-table.js";
|
|
29
|
-
import "../../typography/typography.js";
|
|
30
|
-
import "@fortawesome/free-solid-svg-icons";
|
|
31
|
-
import "../../icons/fa-icon.js";
|
|
32
35
|
import "../../help-tip/help-tip.js";
|
|
33
36
|
import "../../tooltip/tooltip.js";
|
|
34
37
|
import "../../card-grid/card-grid.js";
|
|
@@ -114,6 +117,8 @@ import "../../graph/graph-view.js";
|
|
|
114
117
|
import "../../health-factor/health-factor.js";
|
|
115
118
|
import "../../horizontal-indicator/horizontal-indicator.js";
|
|
116
119
|
import "../../icon-button/icon-button.js";
|
|
120
|
+
import "../../layout/app-footer/app-footer.js";
|
|
121
|
+
import "../../layout/app-header/app-header.js";
|
|
117
122
|
import "../../layout/col/col.js";
|
|
118
123
|
import "../../layout/container/container.js";
|
|
119
124
|
import "../../layout/footer/footer.js";
|
|
@@ -123,6 +128,7 @@ import "../../layout/layout/layout.js";
|
|
|
123
128
|
import "../../layout/main-aside-layout/main-aside-layout.js";
|
|
124
129
|
import "../../page-title/page-title.js";
|
|
125
130
|
import "../../layout/social-icons/social-icons.js";
|
|
131
|
+
import "../../legal-agreement/legal-agreement-theme.js";
|
|
126
132
|
import "../../link/link.js";
|
|
127
133
|
import "../../../utils/reactochart-compat.js";
|
|
128
134
|
import "../../status-elements/status-elements.js";
|
|
@@ -135,7 +141,6 @@ import "../../navbar/navbar.js";
|
|
|
135
141
|
import "../../navbar/navbar-indicator-context.js";
|
|
136
142
|
import "../../app-bar/app-bar.js";
|
|
137
143
|
import "../../navitem/navitem.js";
|
|
138
|
-
import "../../simple-dropdown/simple-dropdown.js";
|
|
139
144
|
import "../../points-icon/points-icon.js";
|
|
140
145
|
import "../../progress/progress.js";
|
|
141
146
|
import "../../progress-bar/progress-bar.js";
|
|
@@ -147,7 +152,6 @@ import "../../select/select.js";
|
|
|
147
152
|
import "../../separate-line/separate-line.js";
|
|
148
153
|
import "../../separator/separator.js";
|
|
149
154
|
import "../../simple-accordion/simple-accordion.js";
|
|
150
|
-
import "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
151
155
|
import "../../slider/slider.js";
|
|
152
156
|
import "../../slider/slider-context.js";
|
|
153
157
|
import "@radix-ui/react-slider";
|
|
@@ -172,6 +176,8 @@ import "../../with-filter-button/with-filter-button.js";
|
|
|
172
176
|
import { RWAFeature as B } from "../strategies-table/components/cells/cells.js";
|
|
173
177
|
import "../strategies-table/components/feature/feature.styles.js";
|
|
174
178
|
import "../strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
179
|
+
import "../tx-preview/confirm/amounts/TransactionConfirmAmountField.js";
|
|
180
|
+
import "../tx-preview/confirm/dialog/constants.js";
|
|
175
181
|
function p(o, t, i) {
|
|
176
182
|
const e = o?.header ?? /* @__PURE__ */ r(
|
|
177
183
|
f,
|
|
@@ -214,7 +220,7 @@ function M({
|
|
|
214
220
|
m && /* @__PURE__ */ r("span", { className: "hidden", "data-rwa-pool-marker": "true" }),
|
|
215
221
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-3 shrink-0 leading-0", children: [
|
|
216
222
|
e.network && /* @__PURE__ */ r(
|
|
217
|
-
|
|
223
|
+
C,
|
|
218
224
|
{
|
|
219
225
|
network: e.network,
|
|
220
226
|
isTest: !1,
|
|
@@ -224,19 +230,19 @@ function M({
|
|
|
224
230
|
),
|
|
225
231
|
/* @__PURE__ */ r(S, { ctx: o })
|
|
226
232
|
] }),
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */ d("div", { className: "flex
|
|
229
|
-
/* @__PURE__ */ r("span", { className: "truncate
|
|
230
|
-
|
|
233
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ d("div", { className: "flex md:flex-col min-w-0 overflow-hidden items-center md:items-start gap-2 md:gap-0", children: [
|
|
234
|
+
/* @__PURE__ */ d("div", { className: "flex min-w-0 max-w-full items-center gap-x-2", children: [
|
|
235
|
+
/* @__PURE__ */ r("span", { className: "truncate min-w-0", children: l }),
|
|
236
|
+
m && /* @__PURE__ */ r("span", { className: "shrink-0 leading-0", children: /* @__PURE__ */ r(
|
|
237
|
+
B,
|
|
238
|
+
{
|
|
239
|
+
disabledStyle: !1,
|
|
240
|
+
tooltip: /* @__PURE__ */ r(f, { messageId: "components.poolTable.line.rwa.tip" })
|
|
241
|
+
}
|
|
242
|
+
) })
|
|
231
243
|
] }),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
{
|
|
235
|
-
disabledStyle: !1,
|
|
236
|
-
tooltip: /* @__PURE__ */ r(f, { messageId: "components.poolTable.line.rwa.tip" })
|
|
237
|
-
}
|
|
238
|
-
)
|
|
239
|
-
] })
|
|
244
|
+
t && /* @__PURE__ */ r(c, { className: "min-w-0 text-xs", children: t(o) })
|
|
245
|
+
] }) })
|
|
240
246
|
] });
|
|
241
247
|
}
|
|
242
248
|
function L({ ctx: o }) {
|
|
@@ -289,7 +295,7 @@ function R(o, t, i) {
|
|
|
289
295
|
}
|
|
290
296
|
);
|
|
291
297
|
}
|
|
292
|
-
function
|
|
298
|
+
function le(o) {
|
|
293
299
|
const { header: t, mobileTitle: i } = p(
|
|
294
300
|
o,
|
|
295
301
|
"components.poolTable.pool"
|
|
@@ -311,7 +317,7 @@ function Zi(o) {
|
|
|
311
317
|
mobileTitle: i
|
|
312
318
|
};
|
|
313
319
|
}
|
|
314
|
-
function
|
|
320
|
+
function me(o) {
|
|
315
321
|
const { header: t, mobileTitle: i } = p(
|
|
316
322
|
o,
|
|
317
323
|
"components.poolTable.supply"
|
|
@@ -327,7 +333,7 @@ function oe(o) {
|
|
|
327
333
|
mobileTitle: i
|
|
328
334
|
};
|
|
329
335
|
}
|
|
330
|
-
function
|
|
336
|
+
function ne(o) {
|
|
331
337
|
const { header: t, headerTip: i, mobileTitle: e } = p(
|
|
332
338
|
o,
|
|
333
339
|
"components.poolTable.supplyApy",
|
|
@@ -342,19 +348,19 @@ function te(o) {
|
|
|
342
348
|
sort: o?.sortField !== void 0 ? { field: o.sortField, defaultDirection: "desc" } : { field: "apy", defaultDirection: "desc" },
|
|
343
349
|
cell: (l) => {
|
|
344
350
|
const { apy: m, loading: n, points: a, tokensList: s } = l, {
|
|
345
|
-
totalAPY:
|
|
346
|
-
baseAPY:
|
|
347
|
-
extraAPY:
|
|
351
|
+
totalAPY: w = 0,
|
|
352
|
+
baseAPY: T = [],
|
|
353
|
+
extraAPY: b = [],
|
|
348
354
|
externalAPY: y,
|
|
349
355
|
apy7DAgo: k
|
|
350
356
|
} = m ?? {};
|
|
351
357
|
return /* @__PURE__ */ r(u, { width: 60, loading: !!n, children: /* @__PURE__ */ r(
|
|
352
|
-
|
|
358
|
+
x,
|
|
353
359
|
{
|
|
354
|
-
totalAPY:
|
|
360
|
+
totalAPY: w,
|
|
355
361
|
totalAPYLoading: !!n,
|
|
356
|
-
baseAPY:
|
|
357
|
-
extraAPY:
|
|
362
|
+
baseAPY: T,
|
|
363
|
+
extraAPY: b,
|
|
358
364
|
points: a,
|
|
359
365
|
apy7DAgo: k,
|
|
360
366
|
tokensList: s,
|
|
@@ -365,7 +371,7 @@ function te(o) {
|
|
|
365
371
|
mobileTitle: e
|
|
366
372
|
};
|
|
367
373
|
}
|
|
368
|
-
function
|
|
374
|
+
function pe(o) {
|
|
369
375
|
const { header: t, mobileTitle: i } = p(
|
|
370
376
|
o,
|
|
371
377
|
"components.poolTable.borrowed"
|
|
@@ -379,7 +385,7 @@ function ie(o) {
|
|
|
379
385
|
mobileTitle: i
|
|
380
386
|
};
|
|
381
387
|
}
|
|
382
|
-
function
|
|
388
|
+
function ae(o) {
|
|
383
389
|
const { header: t, headerTip: i, mobileTitle: e } = p(
|
|
384
390
|
o,
|
|
385
391
|
"components.poolTable.borrowApy"
|
|
@@ -397,7 +403,7 @@ function ee(o) {
|
|
|
397
403
|
mobileTitle: e
|
|
398
404
|
};
|
|
399
405
|
}
|
|
400
|
-
function
|
|
406
|
+
function de(o) {
|
|
401
407
|
const { header: t, mobileTitle: i } = p(
|
|
402
408
|
o,
|
|
403
409
|
"components.poolTable.utilization"
|
|
@@ -416,7 +422,7 @@ function re(o) {
|
|
|
416
422
|
mobileTitle: i
|
|
417
423
|
};
|
|
418
424
|
}
|
|
419
|
-
function
|
|
425
|
+
function se(o) {
|
|
420
426
|
const t = o?.maxAssets ?? 5, i = (m) => R(m, t, o?.options), { header: e, mobileTitle: l } = p(
|
|
421
427
|
o,
|
|
422
428
|
"components.poolTable.collateral"
|
|
@@ -432,7 +438,7 @@ function le(o) {
|
|
|
432
438
|
mobileTitle: l
|
|
433
439
|
};
|
|
434
440
|
}
|
|
435
|
-
function
|
|
441
|
+
function ce(o) {
|
|
436
442
|
const { header: t, mobileTitle: i } = p(
|
|
437
443
|
o,
|
|
438
444
|
"components.poolTable.balance"
|
|
@@ -449,18 +455,18 @@ function me(o) {
|
|
|
449
455
|
mobileTitle: i
|
|
450
456
|
};
|
|
451
457
|
}
|
|
452
|
-
function
|
|
458
|
+
function ue(o) {
|
|
453
459
|
return o;
|
|
454
460
|
}
|
|
455
461
|
export {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
462
|
+
ce as balanceColumn,
|
|
463
|
+
ae as borrowApyColumn,
|
|
464
|
+
pe as borrowedColumn,
|
|
465
|
+
se as collateralColumn,
|
|
466
|
+
ue as customColumn,
|
|
461
467
|
F as defaultPoolName,
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
468
|
+
le as poolColumn,
|
|
469
|
+
ne as supplyApyColumn,
|
|
470
|
+
me as supplyColumn,
|
|
471
|
+
de as utilizationColumn
|
|
466
472
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { jsxs as r, Fragment as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cva as g } from "class-variance-authority";
|
|
3
|
+
import "../../../../accordion/accordion.js";
|
|
4
|
+
import "@gearbox-protocol/static";
|
|
5
|
+
import "react";
|
|
6
|
+
import "@fortawesome/free-solid-svg-icons";
|
|
7
|
+
import "../../../../icons/fa-icon.js";
|
|
8
|
+
import "@gearbox-protocol/sdk";
|
|
9
|
+
import { cn as h } from "../../../../../utils/cn.js";
|
|
10
|
+
import "sonner";
|
|
11
|
+
import { formatMoney as u } from "../../../../../utils/format-money.js";
|
|
12
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
13
|
+
import "luxon";
|
|
14
|
+
import "../../../../../utils/z-index.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 { TokenIcon as v } from "../../../../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 { getSymbolOrIcon as b } from "../../../../token-symbol/token-symbol.js";
|
|
58
|
+
import "../../../../help-tip/help-tip.js";
|
|
59
|
+
import "../../../../description/description.js";
|
|
60
|
+
import { TokenTemplate as N } from "../../../../token-template/token-template.js";
|
|
61
|
+
import "../../../../confirm-menu/confirm-menu.js";
|
|
62
|
+
import "../../../../dialog/dialog-modal-container.js";
|
|
63
|
+
import "../../../../text-button/text-button.js";
|
|
64
|
+
import "../../../../vertical-indicator/vertical-indicator.js";
|
|
65
|
+
import "../../../../points-icon/points-icon.js";
|
|
66
|
+
import "../../../../skeleton/skeleton.js";
|
|
67
|
+
import "../../../../vertical-list/vertical-list.js";
|
|
68
|
+
import "../../../../rounded-image/rounded-image.js";
|
|
69
|
+
import "../../../../progress/progress.js";
|
|
70
|
+
import "../../../../pool-indicator-icon/pool-indicator-icon.js";
|
|
71
|
+
import "../../../strategies-table/components/feature/feature.styles.js";
|
|
72
|
+
import "viem";
|
|
73
|
+
import "../../../../icon-button/icon-button.js";
|
|
74
|
+
import "../../../../separate-line/separate-line.js";
|
|
75
|
+
import "../../../../tip-card/tip-card.js";
|
|
76
|
+
import "../../../strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
77
|
+
import { TransactionConfirmAmountFieldTest as T } from "./constants.js";
|
|
78
|
+
import "../dialog/constants.js";
|
|
79
|
+
import "../../../../modal/modal.js";
|
|
80
|
+
import "../../../../dialog/dialog-container.js";
|
|
81
|
+
import "../../../../spinner-loader/spinner-loader.js";
|
|
82
|
+
import "../../../../currency-button/currency-button.js";
|
|
83
|
+
import "../../../../detailed-apy/detailed-apy.js";
|
|
84
|
+
import "../../../../detailed-page-title/detailed-page-title.js";
|
|
85
|
+
import "../../../../detailed-page-title/detailed-page-title-copy-button.js";
|
|
86
|
+
import "../../../../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
87
|
+
import "@radix-ui/react-dialog";
|
|
88
|
+
import "../../../../dialog/dialog-content.js";
|
|
89
|
+
import "../../../../dialog/dialog-description.js";
|
|
90
|
+
import "../../../../dialog/dialog-footer.js";
|
|
91
|
+
import "../../../../dialog/dialog-header.js";
|
|
92
|
+
import "../../../../dialog/dialog-title.js";
|
|
93
|
+
import "../../../../dialog/dialog-overlay.js";
|
|
94
|
+
import "../../../../label/label.js";
|
|
95
|
+
import "../../../../dropdown-menu/dropdown-menu.js";
|
|
96
|
+
import "../../../../dropdown-menu/dropdown-menu-checkbox-item.js";
|
|
97
|
+
import "../../../../dropdown-menu/dropdown-menu-content.js";
|
|
98
|
+
import "../../../../dropdown-menu/dropdown-menu-item.js";
|
|
99
|
+
import "../../../../dropdown-menu/dropdown-menu-label.js";
|
|
100
|
+
import "../../../../dropdown-menu/dropdown-menu-radio-item.js";
|
|
101
|
+
import "../../../../dropdown-menu/dropdown-menu-separator.js";
|
|
102
|
+
import "../../../../dropdown-menu/dropdown-menu-shortcut.js";
|
|
103
|
+
import "../../../../dropdown-menu/dropdown-menu-sub-content.js";
|
|
104
|
+
import "../../../../dropdown-menu/dropdown-menu-sub-trigger.js";
|
|
105
|
+
import "../../../../edit-input/edit-input.js";
|
|
106
|
+
import { FadeoutLoading as k } from "../../../../fadeout-loading/fadeout-loading.js";
|
|
107
|
+
import "../../../../filter/filter-block.js";
|
|
108
|
+
import "../../../../filter/filter-checkbox-item.js";
|
|
109
|
+
import "../../../../filter/filter-chip.js";
|
|
110
|
+
import "../../../../filter/filter-chips.js";
|
|
111
|
+
import "../../../../filter/filter-dropdown-item.js";
|
|
112
|
+
import "../../../../filter/filter-group.js";
|
|
113
|
+
import "../../../../filter/filter-label.js";
|
|
114
|
+
import "../../../../search-line/search-line.js";
|
|
115
|
+
import "../../../../tabs/tabs.js";
|
|
116
|
+
import "../../../../filter/filter-modal-item.js";
|
|
117
|
+
import "../../../../filter/filter-radio-item.js";
|
|
118
|
+
import "../../../../filter/filter-separator.js";
|
|
119
|
+
import "../../../../filter/variants.js";
|
|
120
|
+
import "../../../../graph/formatters.js";
|
|
121
|
+
import "lightweight-charts";
|
|
122
|
+
import "../../../../graph/graph-view.js";
|
|
123
|
+
import "../../../../health-factor/health-factor.js";
|
|
124
|
+
import "../../../../horizontal-indicator/horizontal-indicator.js";
|
|
125
|
+
import "../../../../layout/app-footer/app-footer.js";
|
|
126
|
+
import "../../../../layout/app-header/app-header.js";
|
|
127
|
+
import "../../../../layout/col/col.js";
|
|
128
|
+
import "../../../../layout/container/container.js";
|
|
129
|
+
import "../../../../layout/footer/footer.js";
|
|
130
|
+
import "../../../../layout/grid/grid.js";
|
|
131
|
+
import "../../../../layout/header/header.js";
|
|
132
|
+
import "../../../../layout/layout/layout.js";
|
|
133
|
+
import "../../../../layout/main-aside-layout/main-aside-layout.js";
|
|
134
|
+
import "../../../../page-title/page-title.js";
|
|
135
|
+
import "../../../../layout/social-icons/social-icons.js";
|
|
136
|
+
import "../../../../legal-agreement/legal-agreement-theme.js";
|
|
137
|
+
import "../../../../link/link.js";
|
|
138
|
+
import "../../../../../utils/reactochart-compat.js";
|
|
139
|
+
import "../../../../status-elements/status-elements.js";
|
|
140
|
+
import "../../../../loader/loader.js";
|
|
141
|
+
import "../../../../loading/loading.js";
|
|
142
|
+
import "../../../../loading-bar/loading-bar.js";
|
|
143
|
+
import "react-markdown";
|
|
144
|
+
import "remark-gfm";
|
|
145
|
+
import "../../../../navbar/navbar.js";
|
|
146
|
+
import "../../../../navbar/navbar-indicator-context.js";
|
|
147
|
+
import "../../../../app-bar/app-bar.js";
|
|
148
|
+
import "../../../../navitem/navitem.js";
|
|
149
|
+
import "../../../../progress-bar/progress-bar.js";
|
|
150
|
+
import "../../../../radio-group/radio-group.js";
|
|
151
|
+
import "../../../../search-bar/search-bar.js";
|
|
152
|
+
import "../../../../segmented-control/segmented-control.js";
|
|
153
|
+
import "../../../../select/select.js";
|
|
154
|
+
import "../../../../separator/separator.js";
|
|
155
|
+
import "../../../../simple-accordion/simple-accordion.js";
|
|
156
|
+
import "../../../../slider/slider.js";
|
|
157
|
+
import "../../../../slider/slider-context.js";
|
|
158
|
+
import "@radix-ui/react-slider";
|
|
159
|
+
import "../../../../spinner/spinner.js";
|
|
160
|
+
import "../../../../split-list/split-list.js";
|
|
161
|
+
import "../../../../stat-badge/stat-badge.js";
|
|
162
|
+
import "../../../../status-dot/status-dot.js";
|
|
163
|
+
import "../../../../stepper/stepper.js";
|
|
164
|
+
import "../../../../switch/switch.js";
|
|
165
|
+
import "../../../../table/table.js";
|
|
166
|
+
import "../../../../table/grid-table-loader.js";
|
|
167
|
+
import "../../../../textarea/textarea.js";
|
|
168
|
+
import "../../../../theme-provider.js";
|
|
169
|
+
import "../../../../time-to-liquidation/time-to-liquidation.js";
|
|
170
|
+
import "../../../../toggle/toggle.js";
|
|
171
|
+
import "../../../../with-filter-button/with-filter-button.js";
|
|
172
|
+
const S = "≈", F = g(
|
|
173
|
+
"flex w-full items-center justify-between bg-gray-20 px-4 py-3",
|
|
174
|
+
{
|
|
175
|
+
variants: {
|
|
176
|
+
position: {
|
|
177
|
+
first: "rounded-t-lg",
|
|
178
|
+
inBetween: "",
|
|
179
|
+
last: "rounded-b-lg",
|
|
180
|
+
solo: "rounded-b-lg rounded-t-lg"
|
|
181
|
+
},
|
|
182
|
+
size: {
|
|
183
|
+
sm: "min-h-[52px]",
|
|
184
|
+
md: "min-h-[56px]"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
defaultVariants: { position: "first", size: "md" }
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
function Pi({
|
|
191
|
+
label: s,
|
|
192
|
+
primaryAmount: t,
|
|
193
|
+
secondaryAmount: i,
|
|
194
|
+
loading: l = !1,
|
|
195
|
+
position: a,
|
|
196
|
+
size: d = "md",
|
|
197
|
+
maxLength: c,
|
|
198
|
+
approximate: f
|
|
199
|
+
}) {
|
|
200
|
+
const { isApproximate: m = !1, approximateSymbol: p = S } = f || {}, x = t && "node" in t ? t.node : /* @__PURE__ */ r(n, { children: [
|
|
201
|
+
t.token && /* @__PURE__ */ o(v, { symbol: b(t.token), size: 16 }),
|
|
202
|
+
/* @__PURE__ */ r("span", { children: [
|
|
203
|
+
m && /* @__PURE__ */ o("span", { children: p }),
|
|
204
|
+
/* @__PURE__ */ o(
|
|
205
|
+
N,
|
|
206
|
+
{
|
|
207
|
+
value: t?.value,
|
|
208
|
+
token: t.token,
|
|
209
|
+
maxLength: c
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
] })
|
|
213
|
+
] }), e = i && "node" in i ? i.node : i?.valueUSD ? /* @__PURE__ */ r(n, { children: [
|
|
214
|
+
m && /* @__PURE__ */ o("span", { children: p }),
|
|
215
|
+
u(i.valueUSD)
|
|
216
|
+
] }) : null;
|
|
217
|
+
return /* @__PURE__ */ r(
|
|
218
|
+
"div",
|
|
219
|
+
{
|
|
220
|
+
className: h(F({ position: a, size: d })),
|
|
221
|
+
"data-testid": T.root,
|
|
222
|
+
children: [
|
|
223
|
+
/* @__PURE__ */ o("span", { className: "text-sm font-medium text-foreground", children: s }),
|
|
224
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col items-end gap-0.5", children: [
|
|
225
|
+
/* @__PURE__ */ o(k, { loading: l, children: /* @__PURE__ */ o("span", { className: "inline-flex items-center gap-1.5 text-sm font-medium text-foreground", children: x }) }),
|
|
226
|
+
e && /* @__PURE__ */ o("span", { className: "text-xs leading-[130%] text-secondary-foreground", children: e })
|
|
227
|
+
] })
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
export {
|
|
233
|
+
Pi as TransactionConfirmAmountField
|
|
234
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TransactionConfirmAmountFieldTest as r, TransactionConfirmAmountPairTest as t } from "./constants.js";
|
|
2
|
+
import { TransactionConfirmAmountField as m } from "./TransactionConfirmAmountField.js";
|
|
3
|
+
export {
|
|
4
|
+
m as TransactionConfirmAmountField,
|
|
5
|
+
r as TransactionConfirmAmountFieldTest,
|
|
6
|
+
t as TransactionConfirmAmountPairTest
|
|
7
|
+
};
|