@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
|
@@ -47,9 +47,12 @@ import "../input/input.js";
|
|
|
47
47
|
import "../with-title/with-title.js";
|
|
48
48
|
import "../smart-number-input/balance-indicator.js";
|
|
49
49
|
import "../smart-number-input/smart-number-input.js";
|
|
50
|
+
import "../composites/credit-account-history/credit-account-history.js";
|
|
51
|
+
import "../simple-dropdown/simple-dropdown.js";
|
|
52
|
+
import "../simple-dropdown/simple-dropdown-menu-item.js";
|
|
53
|
+
import "../typography/typography.js";
|
|
50
54
|
import "../table/grid-table.js";
|
|
51
55
|
import "../token-symbol/token-symbol.js";
|
|
52
|
-
import "../typography/typography.js";
|
|
53
56
|
import "../help-tip/help-tip.js";
|
|
54
57
|
import "../description/description.js";
|
|
55
58
|
import "../confirm-menu/confirm-menu.js";
|
|
@@ -68,14 +71,17 @@ import "../icon-button/icon-button.js";
|
|
|
68
71
|
import "../separate-line/separate-line.js";
|
|
69
72
|
import "../tip-card/tip-card.js";
|
|
70
73
|
import "../composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
74
|
+
import "../composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js";
|
|
75
|
+
import "../composites/tx-preview/confirm/dialog/constants.js";
|
|
76
|
+
import "../modal/modal.js";
|
|
77
|
+
import "../dialog/dialog-container.js";
|
|
78
|
+
import "../spinner-loader/spinner-loader.js";
|
|
71
79
|
import "../currency-button/currency-button.js";
|
|
72
80
|
import "../detailed-apy/detailed-apy.js";
|
|
73
81
|
import "../detailed-page-title/detailed-page-title.js";
|
|
74
82
|
import "../detailed-page-title/detailed-page-title-copy-button.js";
|
|
75
83
|
import "../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
76
|
-
import "../modal/modal.js";
|
|
77
84
|
import "@radix-ui/react-dialog";
|
|
78
|
-
import "../dialog/dialog-container.js";
|
|
79
85
|
import "../dialog/dialog-content.js";
|
|
80
86
|
import "../dialog/dialog-description.js";
|
|
81
87
|
import "../dialog/dialog-footer.js";
|
|
@@ -113,6 +119,8 @@ import "lightweight-charts";
|
|
|
113
119
|
import "../graph/graph-view.js";
|
|
114
120
|
import "../health-factor/health-factor.js";
|
|
115
121
|
import "../horizontal-indicator/horizontal-indicator.js";
|
|
122
|
+
import "../layout/app-footer/app-footer.js";
|
|
123
|
+
import "../layout/app-header/app-header.js";
|
|
116
124
|
import "../layout/col/col.js";
|
|
117
125
|
import "../layout/container/container.js";
|
|
118
126
|
import "../layout/footer/footer.js";
|
|
@@ -122,6 +130,7 @@ import "../layout/layout/layout.js";
|
|
|
122
130
|
import "../layout/main-aside-layout/main-aside-layout.js";
|
|
123
131
|
import "../page-title/page-title.js";
|
|
124
132
|
import "../layout/social-icons/social-icons.js";
|
|
133
|
+
import "../legal-agreement/legal-agreement-theme.js";
|
|
125
134
|
import "../link/link.js";
|
|
126
135
|
import "../../utils/reactochart-compat.js";
|
|
127
136
|
import "../status-elements/status-elements.js";
|
|
@@ -134,7 +143,6 @@ import "../navbar/navbar.js";
|
|
|
134
143
|
import "../navbar/navbar-indicator-context.js";
|
|
135
144
|
import "../app-bar/app-bar.js";
|
|
136
145
|
import "../navitem/navitem.js";
|
|
137
|
-
import "../simple-dropdown/simple-dropdown.js";
|
|
138
146
|
import "../progress-bar/progress-bar.js";
|
|
139
147
|
import "../radio-group/radio-group.js";
|
|
140
148
|
import "../search-bar/search-bar.js";
|
|
@@ -142,12 +150,10 @@ import "../segmented-control/segmented-control.js";
|
|
|
142
150
|
import "../select/select.js";
|
|
143
151
|
import "../separator/separator.js";
|
|
144
152
|
import "../simple-accordion/simple-accordion.js";
|
|
145
|
-
import "../simple-dropdown/simple-dropdown-menu-item.js";
|
|
146
153
|
import "../slider/slider.js";
|
|
147
154
|
import "../slider/slider-context.js";
|
|
148
155
|
import "@radix-ui/react-slider";
|
|
149
156
|
import "../spinner/spinner.js";
|
|
150
|
-
import "../spinner-loader/spinner-loader.js";
|
|
151
157
|
import "../split-list/split-list.js";
|
|
152
158
|
import "../stat-badge/stat-badge.js";
|
|
153
159
|
import "../status-dot/status-dot.js";
|
|
@@ -2,37 +2,37 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { Button as p } from "../../buttons/button/button.js";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as s } from "../../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
7
|
import "@gearbox-protocol/sdk/common-utils";
|
|
8
8
|
import "luxon";
|
|
9
9
|
import "../../../utils/z-index.js";
|
|
10
|
-
const
|
|
10
|
+
const c = {
|
|
11
11
|
primary: "default",
|
|
12
12
|
outlined: "outline",
|
|
13
13
|
neutral: "neutral",
|
|
14
14
|
white: "white",
|
|
15
15
|
success: "success"
|
|
16
|
-
},
|
|
16
|
+
}, l = n.forwardRef(
|
|
17
17
|
({
|
|
18
18
|
$size: t = "lg",
|
|
19
19
|
$width: r = "compact",
|
|
20
20
|
$color: o = "primary",
|
|
21
|
-
className:
|
|
22
|
-
...
|
|
21
|
+
className: i,
|
|
22
|
+
...e
|
|
23
23
|
}, m) => /* @__PURE__ */ a(
|
|
24
24
|
p,
|
|
25
25
|
{
|
|
26
26
|
ref: m,
|
|
27
|
-
size: t
|
|
27
|
+
size: t,
|
|
28
28
|
width: r,
|
|
29
|
-
variant:
|
|
30
|
-
className:
|
|
31
|
-
...
|
|
29
|
+
variant: c[o],
|
|
30
|
+
className: s("inline-block whitespace-normal", i),
|
|
31
|
+
...e
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
);
|
|
35
|
-
|
|
35
|
+
l.displayName = "StyledButton";
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
l as StyledButton
|
|
38
38
|
};
|
|
@@ -47,9 +47,12 @@ import "../../input/input.js";
|
|
|
47
47
|
import "../../with-title/with-title.js";
|
|
48
48
|
import "../../smart-number-input/balance-indicator.js";
|
|
49
49
|
import "../../smart-number-input/smart-number-input.js";
|
|
50
|
+
import "../../composites/credit-account-history/credit-account-history.js";
|
|
51
|
+
import "../../simple-dropdown/simple-dropdown.js";
|
|
52
|
+
import "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
53
|
+
import "../../typography/typography.js";
|
|
50
54
|
import "../../table/grid-table.js";
|
|
51
55
|
import "../../token-symbol/token-symbol.js";
|
|
52
|
-
import "../../typography/typography.js";
|
|
53
56
|
import "../../help-tip/help-tip.js";
|
|
54
57
|
import "../../description/description.js";
|
|
55
58
|
import "../../confirm-menu/confirm-menu.js";
|
|
@@ -68,14 +71,17 @@ import "../../icon-button/icon-button.js";
|
|
|
68
71
|
import "../../separate-line/separate-line.js";
|
|
69
72
|
import "../../tip-card/tip-card.js";
|
|
70
73
|
import "../../composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
74
|
+
import "../../composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js";
|
|
75
|
+
import "../../composites/tx-preview/confirm/dialog/constants.js";
|
|
76
|
+
import "../../modal/modal.js";
|
|
77
|
+
import "../../dialog/dialog-container.js";
|
|
78
|
+
import "../../spinner-loader/spinner-loader.js";
|
|
71
79
|
import "../../currency-button/currency-button.js";
|
|
72
80
|
import "../../detailed-apy/detailed-apy.js";
|
|
73
81
|
import "../../detailed-page-title/detailed-page-title.js";
|
|
74
82
|
import "../../detailed-page-title/detailed-page-title-copy-button.js";
|
|
75
83
|
import "../../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
76
|
-
import "../../modal/modal.js";
|
|
77
84
|
import "@radix-ui/react-dialog";
|
|
78
|
-
import "../../dialog/dialog-container.js";
|
|
79
85
|
import "../../dialog/dialog-content.js";
|
|
80
86
|
import "../../dialog/dialog-description.js";
|
|
81
87
|
import "../../dialog/dialog-footer.js";
|
|
@@ -113,6 +119,8 @@ import "lightweight-charts";
|
|
|
113
119
|
import "../../graph/graph-view.js";
|
|
114
120
|
import "../../health-factor/health-factor.js";
|
|
115
121
|
import "../../horizontal-indicator/horizontal-indicator.js";
|
|
122
|
+
import "../../layout/app-footer/app-footer.js";
|
|
123
|
+
import "../../layout/app-header/app-header.js";
|
|
116
124
|
import "../../layout/col/col.js";
|
|
117
125
|
import "../../layout/container/container.js";
|
|
118
126
|
import "../../layout/footer/footer.js";
|
|
@@ -122,6 +130,7 @@ import "../../layout/layout/layout.js";
|
|
|
122
130
|
import "../../layout/main-aside-layout/main-aside-layout.js";
|
|
123
131
|
import "../../page-title/page-title.js";
|
|
124
132
|
import "../../layout/social-icons/social-icons.js";
|
|
133
|
+
import "../../legal-agreement/legal-agreement-theme.js";
|
|
125
134
|
import "../../link/link.js";
|
|
126
135
|
import "../../../utils/reactochart-compat.js";
|
|
127
136
|
import "../../status-elements/status-elements.js";
|
|
@@ -134,7 +143,6 @@ import "../../navbar/navbar.js";
|
|
|
134
143
|
import "../../navbar/navbar-indicator-context.js";
|
|
135
144
|
import "../../app-bar/app-bar.js";
|
|
136
145
|
import "../../navitem/navitem.js";
|
|
137
|
-
import "../../simple-dropdown/simple-dropdown.js";
|
|
138
146
|
import "../../progress-bar/progress-bar.js";
|
|
139
147
|
import "../../radio-group/radio-group.js";
|
|
140
148
|
import "../../search-bar/search-bar.js";
|
|
@@ -142,12 +150,10 @@ import "../../segmented-control/segmented-control.js";
|
|
|
142
150
|
import "../../select/select.js";
|
|
143
151
|
import "../../separator/separator.js";
|
|
144
152
|
import "../../simple-accordion/simple-accordion.js";
|
|
145
|
-
import "../../simple-dropdown/simple-dropdown-menu-item.js";
|
|
146
153
|
import "../../slider/slider.js";
|
|
147
154
|
import "../../slider/slider-context.js";
|
|
148
155
|
import "@radix-ui/react-slider";
|
|
149
156
|
import "../../spinner/spinner.js";
|
|
150
|
-
import "../../spinner-loader/spinner-loader.js";
|
|
151
157
|
import "../../split-list/split-list.js";
|
|
152
158
|
import "../../stat-badge/stat-badge.js";
|
|
153
159
|
import "../../status-dot/status-dot.js";
|
|
@@ -47,9 +47,12 @@ import "../client-adapters/styled-button/styled-button.js";
|
|
|
47
47
|
import "../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
48
48
|
import "../client-adapters/styled-rounded-image/styled-rounded-image.js";
|
|
49
49
|
import "../colored-text/colored-text.js";
|
|
50
|
+
import "../composites/credit-account-history/credit-account-history.js";
|
|
51
|
+
import "../simple-dropdown/simple-dropdown.js";
|
|
52
|
+
import "../simple-dropdown/simple-dropdown-menu-item.js";
|
|
53
|
+
import "../typography/typography.js";
|
|
50
54
|
import "../table/grid-table.js";
|
|
51
55
|
import "../token-symbol/token-symbol.js";
|
|
52
|
-
import "../typography/typography.js";
|
|
53
56
|
import "../help-tip/help-tip.js";
|
|
54
57
|
import "../description/description.js";
|
|
55
58
|
import { ShortString as M } from "../short-string/short-string.js";
|
|
@@ -69,14 +72,17 @@ import "../icon-button/icon-button.js";
|
|
|
69
72
|
import "../separate-line/separate-line.js";
|
|
70
73
|
import "../tip-card/tip-card.js";
|
|
71
74
|
import "../composites/strategies-table/components/rewards-tooltip/rewards-tooltip-root.js";
|
|
75
|
+
import "../composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js";
|
|
76
|
+
import "../composites/tx-preview/confirm/dialog/constants.js";
|
|
77
|
+
import "../modal/modal.js";
|
|
78
|
+
import "../dialog/dialog-container.js";
|
|
79
|
+
import "../spinner-loader/spinner-loader.js";
|
|
72
80
|
import "../currency-button/currency-button.js";
|
|
73
81
|
import "../detailed-apy/detailed-apy.js";
|
|
74
82
|
import "../detailed-page-title/detailed-page-title.js";
|
|
75
83
|
import "../detailed-page-title/detailed-page-title-copy-button.js";
|
|
76
84
|
import "../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
77
|
-
import "../modal/modal.js";
|
|
78
85
|
import "@radix-ui/react-dialog";
|
|
79
|
-
import "../dialog/dialog-container.js";
|
|
80
86
|
import "../dialog/dialog-content.js";
|
|
81
87
|
import "../dialog/dialog-description.js";
|
|
82
88
|
import "../dialog/dialog-footer.js";
|
|
@@ -114,6 +120,8 @@ import "lightweight-charts";
|
|
|
114
120
|
import "../graph/graph-view.js";
|
|
115
121
|
import "../health-factor/health-factor.js";
|
|
116
122
|
import "../horizontal-indicator/horizontal-indicator.js";
|
|
123
|
+
import "../layout/app-footer/app-footer.js";
|
|
124
|
+
import "../layout/app-header/app-header.js";
|
|
117
125
|
import "../layout/col/col.js";
|
|
118
126
|
import "../layout/container/container.js";
|
|
119
127
|
import "../layout/footer/footer.js";
|
|
@@ -123,6 +131,7 @@ import "../layout/layout/layout.js";
|
|
|
123
131
|
import "../layout/main-aside-layout/main-aside-layout.js";
|
|
124
132
|
import "../page-title/page-title.js";
|
|
125
133
|
import "../layout/social-icons/social-icons.js";
|
|
134
|
+
import "../legal-agreement/legal-agreement-theme.js";
|
|
126
135
|
import "../link/link.js";
|
|
127
136
|
import "../../utils/reactochart-compat.js";
|
|
128
137
|
import "../status-elements/status-elements.js";
|
|
@@ -135,7 +144,6 @@ import "../navbar/navbar.js";
|
|
|
135
144
|
import "../navbar/navbar-indicator-context.js";
|
|
136
145
|
import "../app-bar/app-bar.js";
|
|
137
146
|
import "../navitem/navitem.js";
|
|
138
|
-
import "../simple-dropdown/simple-dropdown.js";
|
|
139
147
|
import "../progress-bar/progress-bar.js";
|
|
140
148
|
import "../radio-group/radio-group.js";
|
|
141
149
|
import "../search-bar/search-bar.js";
|
|
@@ -143,14 +151,12 @@ import "../segmented-control/segmented-control.js";
|
|
|
143
151
|
import "../select/select.js";
|
|
144
152
|
import "../separator/separator.js";
|
|
145
153
|
import "../simple-accordion/simple-accordion.js";
|
|
146
|
-
import "../simple-dropdown/simple-dropdown-menu-item.js";
|
|
147
154
|
import "../slider/slider.js";
|
|
148
155
|
import "../slider/slider-context.js";
|
|
149
156
|
import "@radix-ui/react-slider";
|
|
150
157
|
import { BalanceIndicator as P } from "../smart-number-input/balance-indicator.js";
|
|
151
158
|
import "../smart-number-input/smart-number-input.js";
|
|
152
159
|
import "../spinner/spinner.js";
|
|
153
|
-
import "../spinner-loader/spinner-loader.js";
|
|
154
160
|
import "../split-list/split-list.js";
|
|
155
161
|
import "../stat-badge/stat-badge.js";
|
|
156
162
|
import "../status-dot/status-dot.js";
|
|
@@ -163,7 +169,7 @@ import "../theme-provider.js";
|
|
|
163
169
|
import "../time-to-liquidation/time-to-liquidation.js";
|
|
164
170
|
import "../toggle/toggle.js";
|
|
165
171
|
import "../with-filter-button/with-filter-button.js";
|
|
166
|
-
function
|
|
172
|
+
function Ji({
|
|
167
173
|
titleProps: s,
|
|
168
174
|
inputProps: a,
|
|
169
175
|
balanceIndicatorProps: c
|
|
@@ -226,5 +232,5 @@ function qi({
|
|
|
226
232
|
);
|
|
227
233
|
}
|
|
228
234
|
export {
|
|
229
|
-
|
|
235
|
+
Ji as ComplexInput
|
|
230
236
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as a, Fragment as j, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import H from "react";
|
|
3
|
+
import { HistoryLine as h } from "./line.js";
|
|
4
|
+
import { ZERO_ADDRESS as L } from "./types.js";
|
|
5
|
+
function u(t) {
|
|
6
|
+
return [
|
|
7
|
+
t.txHash,
|
|
8
|
+
t.operationType,
|
|
9
|
+
t.operation,
|
|
10
|
+
t.timestamp,
|
|
11
|
+
t.blockNum
|
|
12
|
+
].join(":");
|
|
13
|
+
}
|
|
14
|
+
function C({
|
|
15
|
+
dataList: t,
|
|
16
|
+
creditManager: f,
|
|
17
|
+
tokens: i,
|
|
18
|
+
protocols: s,
|
|
19
|
+
explorerUrl: d
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ a(j, { children: t.map((o, p, x) => {
|
|
22
|
+
const { underlyingToken: n = L } = f || {}, [y, r] = o.getDetails(
|
|
23
|
+
n,
|
|
24
|
+
i
|
|
25
|
+
), c = p === x.length - 1, D = !!r && r.length > 0;
|
|
26
|
+
return /* @__PURE__ */ B(H.Fragment, { children: [
|
|
27
|
+
/* @__PURE__ */ a(
|
|
28
|
+
h,
|
|
29
|
+
{
|
|
30
|
+
data: o,
|
|
31
|
+
details: y,
|
|
32
|
+
hideBorder: c || D,
|
|
33
|
+
tokens: i,
|
|
34
|
+
protocols: s,
|
|
35
|
+
index: {
|
|
36
|
+
index: 0,
|
|
37
|
+
outOf: r?.length || 0
|
|
38
|
+
},
|
|
39
|
+
underlyingToken: n,
|
|
40
|
+
explorerUrl: d
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
r?.filter((e) => e.operationType !== "OpenCreditAccount")?.map(
|
|
44
|
+
(e, m, l) => {
|
|
45
|
+
const [O] = e.getDetails(
|
|
46
|
+
n,
|
|
47
|
+
i
|
|
48
|
+
), g = m === l.length - 1;
|
|
49
|
+
return /* @__PURE__ */ a(
|
|
50
|
+
h,
|
|
51
|
+
{
|
|
52
|
+
data: e,
|
|
53
|
+
index: {
|
|
54
|
+
index: m + 1,
|
|
55
|
+
outOf: l.length
|
|
56
|
+
},
|
|
57
|
+
details: O,
|
|
58
|
+
hideBorder: c && g || !g,
|
|
59
|
+
tokens: i,
|
|
60
|
+
protocols: s,
|
|
61
|
+
underlyingToken: n,
|
|
62
|
+
explorerUrl: d
|
|
63
|
+
},
|
|
64
|
+
u(e)
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] }, u(o));
|
|
69
|
+
}) });
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
C as HistoryBody
|
|
73
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { IconExpand as i } from "@gearbox-protocol/static";
|
|
3
|
+
import { TokenList as t } from "./token-list.js";
|
|
4
|
+
function d({
|
|
5
|
+
data: { from: r, leverage: l, to: e },
|
|
6
|
+
tokensList: m
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ s("div", { className: "flex items-center gap-1 sm:gap-2 flex-col md:flex-row", children: [
|
|
9
|
+
/* @__PURE__ */ a("div", { className: "min-w-0 flex-shrink", children: /* @__PURE__ */ a(t, { data: r, tokensList: m }) }),
|
|
10
|
+
e && /* @__PURE__ */ s("div", { className: "relative mx-1 sm:mx-[20px] sm:mr-[26px] flex-shrink-0", children: [
|
|
11
|
+
l && /* @__PURE__ */ s("div", { className: "absolute left-1/2 -translate-x-1/2 -translate-y-[calc(50%+4px)] sm:-translate-y-[calc(50%+6px)] text-[10px] sm:text-xs font-bold", children: [
|
|
12
|
+
"x",
|
|
13
|
+
l
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ a("div", { className: "md:-rotate-90 rotate-0", children: /* @__PURE__ */ a(i, { size: 10, className: "sm:w-3 sm:h-3" }) })
|
|
16
|
+
] }),
|
|
17
|
+
e && /* @__PURE__ */ a("div", { className: "min-w-0 flex-shrink", children: /* @__PURE__ */ a(t, { data: e, tokensList: m }) })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
d as Details
|
|
22
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { shortAddress as m } from "@gearbox-protocol/sdk";
|
|
3
|
+
import { IconExternal as n } from "@gearbox-protocol/static";
|
|
4
|
+
import { BaseLink as i } from "../../../base-link/base-link.js";
|
|
5
|
+
function c({
|
|
6
|
+
txHash: e,
|
|
7
|
+
etherscanAddress: r
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ t(
|
|
10
|
+
i,
|
|
11
|
+
{
|
|
12
|
+
href: `${r}/tx/${e}`,
|
|
13
|
+
external: !0,
|
|
14
|
+
className: "inline-flex items-center gap-0.5 sm:gap-1 text-xs sm:text-sm",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ s("span", { className: "truncate", children: m(e) }),
|
|
17
|
+
/* @__PURE__ */ s(n, { size: 12, className: "flex-shrink-0 sm:size-3" })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
c as Hash
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Details as t } from "./details.js";
|
|
2
|
+
import { Hash as f } from "./hash.js";
|
|
3
|
+
import { Protocol as p } from "./protocol.js";
|
|
4
|
+
import { TokenList as s } from "./token-list.js";
|
|
5
|
+
export {
|
|
6
|
+
t as Details,
|
|
7
|
+
f as Hash,
|
|
8
|
+
p as Protocol,
|
|
9
|
+
s as TokenList
|
|
10
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { IconArrowUnderlying as t, getStatic as l } from "@gearbox-protocol/static";
|
|
3
|
+
import { Image as c } from "../../../image/image.js";
|
|
4
|
+
function x({
|
|
5
|
+
isUnderlying: s,
|
|
6
|
+
protocol: { icon: m, name: r }
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ i("div", { className: "inline-flex items-center", children: [
|
|
9
|
+
s && /* @__PURE__ */ e("div", { className: "mr-1 sm:mr-2 inline-block text-gray-400", children: /* @__PURE__ */ e(t, { size: 10, className: "sm:w-3 sm:h-3" }) }),
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "mr-1 sm:mr-1.5 inline-flex w-[20px] h-[20px] sm:w-[29px] sm:h-[29px] justify-center items-center bg-black rounded-full", children: /* @__PURE__ */ e(
|
|
11
|
+
c,
|
|
12
|
+
{
|
|
13
|
+
src: l(m),
|
|
14
|
+
alt: r,
|
|
15
|
+
width: 18,
|
|
16
|
+
height: 18,
|
|
17
|
+
className: "max-w-[12px] h-[12px] sm:max-w-[18px] sm:h-[18px]"
|
|
18
|
+
}
|
|
19
|
+
) }),
|
|
20
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: r })
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
x as Protocol
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { shortAddress as s } from "@gearbox-protocol/sdk";
|
|
3
|
+
import { ShortString as p } from "../../../short-string/short-string.js";
|
|
4
|
+
import { TokenSymbol as h } from "../../../token-symbol/token-symbol.js";
|
|
5
|
+
import "../../../tooltip/simple-tooltip.js";
|
|
6
|
+
import { TooltipProvider as f, Tooltip as g, TooltipTrigger as u, TooltipContent as N } from "../../../tooltip/tooltip.js";
|
|
7
|
+
import { useIsMobile as v } from "../../../../hooks/use-media-query.js";
|
|
8
|
+
import { ZERO_ADDRESS as n } from "../types.js";
|
|
9
|
+
function b({
|
|
10
|
+
data: a,
|
|
11
|
+
tokensList: x
|
|
12
|
+
}) {
|
|
13
|
+
const r = v();
|
|
14
|
+
return /* @__PURE__ */ e("div", { className: "flex flex-col gap-1 sm:gap-2", children: a.map(({ token: t, description: o, account: i }) => {
|
|
15
|
+
const c = (t || n).toLowerCase(), m = x[c], d = `${t || n}-${i || ""}`;
|
|
16
|
+
return /* @__PURE__ */ l("div", { className: "flex items-center min-w-0", children: [
|
|
17
|
+
/* @__PURE__ */ e("div", { className: "mr-1 sm:mr-1.5 flex-shrink-0", children: i ? /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground", children: s(i) }) : /* @__PURE__ */ e(
|
|
18
|
+
h,
|
|
19
|
+
{
|
|
20
|
+
maxLength: r ? 6 : 12,
|
|
21
|
+
token: m,
|
|
22
|
+
size: r ? 20 : 29
|
|
23
|
+
}
|
|
24
|
+
) }),
|
|
25
|
+
/* @__PURE__ */ l("div", { className: "flex-1 min-w-0", children: [
|
|
26
|
+
o && /* @__PURE__ */ e(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: i ? "text-[9px] sm:text-[10px]" : "text-[10px] sm:text-xs",
|
|
30
|
+
children: o
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
m ? /* @__PURE__ */ e("div", { className: "text-[11px] sm:text-sm leading-tight sm:leading-[18px] truncate", children: /* @__PURE__ */ e(p, { maxLength: r ? 6 : 12, children: m.title }) }) : t && /* @__PURE__ */ e(f, { delayDuration: 0, children: /* @__PURE__ */ l(g, { children: [
|
|
34
|
+
/* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "text-[11px] sm:text-sm leading-tight sm:leading-[18px] truncate text-muted-foreground cursor-help", children: s(t) }) }),
|
|
35
|
+
/* @__PURE__ */ e(N, { className: "text-xs", children: t })
|
|
36
|
+
] }) })
|
|
37
|
+
] })
|
|
38
|
+
] }, d);
|
|
39
|
+
}) });
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
b as TokenList
|
|
43
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as p } from "react";
|
|
3
|
+
import { GridTable as h, GridTableHeader as x, GridTableRow as b, GridTableHead as r, GridTableBody as u } from "../../table/grid-table.js";
|
|
4
|
+
import { TableLoaderGuard as y } from "../../table/table-loader-guard.js";
|
|
5
|
+
import { FormattedMessageTyped as s } from "../../typed-intl/index.js";
|
|
6
|
+
import { useIsMobile as f } from "../../../hooks/use-media-query.js";
|
|
7
|
+
import { HistoryBody as H } from "./body.js";
|
|
8
|
+
const B = p(function({
|
|
9
|
+
dataList: m,
|
|
10
|
+
creditManager: o,
|
|
11
|
+
tokens: i,
|
|
12
|
+
protocols: d,
|
|
13
|
+
isLoading: l = !1,
|
|
14
|
+
explorerUrl: n
|
|
15
|
+
}) {
|
|
16
|
+
const a = l || !o || Object.keys(i).length === 0, t = f();
|
|
17
|
+
return /* @__PURE__ */ c(h, { cols: t ? 1 : 3, children: [
|
|
18
|
+
!t && /* @__PURE__ */ e(x, { children: /* @__PURE__ */ c(b, { noHover: !0, children: [
|
|
19
|
+
/* @__PURE__ */ e(r, { className: "text-xs sm:text-sm", children: /* @__PURE__ */ e(s, { messageId: "components.creditAccountHistory.table.protocol" }) }),
|
|
20
|
+
/* @__PURE__ */ e(r, { className: "text-xs sm:text-sm", children: /* @__PURE__ */ e(s, { messageId: "components.creditAccountHistory.table.operation" }) }),
|
|
21
|
+
/* @__PURE__ */ e(r, { className: "text-xs sm:text-sm", children: /* @__PURE__ */ e(s, { messageId: "components.creditAccountHistory.table.details" }) })
|
|
22
|
+
] }) }),
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
y,
|
|
25
|
+
{
|
|
26
|
+
showGuard: a,
|
|
27
|
+
rows: 5,
|
|
28
|
+
columns: t ? 1 : 3,
|
|
29
|
+
height: "40px",
|
|
30
|
+
children: o && /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(
|
|
31
|
+
H,
|
|
32
|
+
{
|
|
33
|
+
dataList: m,
|
|
34
|
+
creditManager: o,
|
|
35
|
+
tokens: i,
|
|
36
|
+
protocols: d,
|
|
37
|
+
explorerUrl: n
|
|
38
|
+
}
|
|
39
|
+
) })
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] });
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
B as CreditAccountHistory
|
|
46
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreditAccountHistory as t } from "./credit-account-history.js";
|
|
2
|
+
import { GEARBOX_PROTOCOL_INFO as i, ZERO_ADDRESS as e, isMulticallOperation as R } from "./types.js";
|
|
3
|
+
export {
|
|
4
|
+
t as CreditAccountHistory,
|
|
5
|
+
i as GEARBOX_PROTOCOL_INFO,
|
|
6
|
+
e as ZERO_ADDRESS,
|
|
7
|
+
R as isMulticallOperation
|
|
8
|
+
};
|