@gearbox-protocol/ui-kit 4.0.0-next.6 → 4.0.0-next.60
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/_virtual/index.cjs +1 -1
- package/dist/cjs/components/accordion/accordion.cjs +1 -1
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
- package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/badge/chip.cjs +1 -1
- package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -1
- package/dist/cjs/components/base/apy-breakdown-body/apy-breakdown-body.cjs +1 -0
- package/dist/cjs/components/base/apy-breakdown-body/index.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/copy-button.cjs +1 -0
- package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/base/details-view/detail-aside/detail-aside-screen-layout.cjs +1 -1
- package/dist/cjs/components/base/details-view/index.cjs +1 -1
- package/dist/cjs/components/base/health-factor-block/health-factor-block.cjs +1 -1
- package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
- package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -1
- package/dist/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/more-accordion/more-accordion.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/position-assets/constants.cjs +1 -0
- package/dist/cjs/components/base/position-assets/index.cjs +1 -0
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -0
- package/dist/cjs/components/base/review-button/constants.cjs +1 -1
- package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/base/section-heading/section-heading.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
- package/dist/cjs/components/base/stack/stack.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/constants.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -1
- package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
- package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -1
- package/dist/cjs/components/base/values/constants.cjs +1 -1
- package/dist/cjs/components/base/values/index.cjs +1 -1
- package/dist/cjs/components/base/values/no-value.cjs +1 -0
- package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
- package/dist/cjs/components/base/values/position-status-badge.cjs +1 -1
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -0
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -1
- package/dist/cjs/components/base-table/base-table.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/index.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/index.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -1
- package/dist/cjs/components/cards/card/card.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/cards/index.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/client-adapters/index.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -1
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.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/constants.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/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.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/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.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/confirm-menu/confirm-menu.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/index.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-description.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-footer.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-form.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-header.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-overlay.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/index.cjs +1 -1
- package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
- package/dist/cjs/components/error-message/error-line-message.cjs +1 -1
- package/dist/cjs/components/error-message/index.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/graph/formatters.cjs +1 -1
- package/dist/cjs/components/graph/graph-current-value.cjs +1 -1
- package/dist/cjs/components/graph/graph-tooltip.cjs +1 -1
- package/dist/cjs/components/graph/graph-view.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/graph/y-axis-scale.cjs +1 -0
- package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
- package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/hf-indicator/hf-indicator.cjs +1 -1
- package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
- package/dist/cjs/components/icons/fa-icon.cjs +1 -1
- package/dist/cjs/components/icons/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/label.cjs +1 -1
- package/dist/cjs/components/layout/app-footer/app-footer.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-dialog.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-panel.cjs +1 -1
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loading/loading.cjs +1 -1
- package/dist/cjs/components/markdown-text/index.cjs +1 -0
- package/dist/cjs/components/markdown-text/markdown-text.cjs +1 -0
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/network-icon/index.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/radio-group/index.cjs +1 -0
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -0
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
- package/dist/cjs/components/rwa-styles/index.cjs +1 -1
- package/dist/cjs/components/sdk-status-pill/constants.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/index.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/sdk-status-pill.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/sdk-status.cjs +1 -0
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/separate-line/separate-line.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/simple-accordion/simple-accordion.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton-stack.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton.cjs +1 -1
- package/dist/cjs/components/slider/constants.cjs +1 -0
- package/dist/cjs/components/slider/index.cjs +1 -1
- package/dist/cjs/components/slider/slider-track.cjs +1 -1
- package/dist/cjs/components/slider/slider-utils.cjs +1 -1
- package/dist/cjs/components/slider/slider.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/spinner-loader/spinner-loader.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/cjs/components/status-elements/status-elements.cjs +1 -1
- package/dist/cjs/components/tab-control/index.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
- package/dist/cjs/components/table/grid-table.cjs +1 -1
- package/dist/cjs/components/table/index.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/components/text-button/text-button.cjs +1 -1
- package/dist/cjs/components/textarea/textarea.cjs +1 -1
- package/dist/cjs/components/theme-provider.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/token-icon/index.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon.cjs +1 -1
- package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
- package/dist/cjs/components/token-template/index.cjs +1 -1
- package/dist/cjs/components/token-template/token-template.cjs +1 -1
- package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/truncated-text/index.cjs +1 -0
- package/dist/cjs/components/truncated-text/truncated-text.cjs +1 -0
- package/dist/cjs/components/typography/typography.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/vspace/vspace.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/index.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
- package/dist/cjs/configs/index.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/hooks/use-filter.cjs +1 -1
- package/dist/cjs/hooks/use-media-query.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3/node_modules/tailwind-scrollbar/src/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3/node_modules/tailwind-scrollbar/src/utilities.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/tailwindcss@4.3.3/node_modules/tailwindcss/dist/flatten-color-palette.cjs +1 -0
- package/dist/cjs/utils/bn-to-pretty-view.cjs +1 -1
- package/dist/cjs/utils/colors.cjs +1 -1
- package/dist/cjs/utils/format-asset-amount.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/format-number.cjs +1 -1
- package/dist/cjs/utils/format-slippage.cjs +1 -1
- package/dist/cjs/utils/format.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/loading.cjs +1 -1
- package/dist/cjs/utils/math.cjs +1 -1
- package/dist/cjs/utils/parse-input-to-bn.cjs +1 -1
- package/dist/cjs/utils/ranges.cjs +1 -1
- package/dist/cjs/utils/ranges.spec.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/cjs/utils/ttl.cjs +1 -1
- package/dist/esm/_virtual/index.js +1 -1
- package/dist/esm/components/accordion/accordion.js +8 -10
- package/dist/esm/components/alert-badge/alert-badge.js +16 -18
- package/dist/esm/components/alert-dialog/alert-dialog.js +9 -13
- package/dist/esm/components/alert-modal/alert-modal.js +9 -13
- package/dist/esm/components/app-bar/app-bar.js +1 -3
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +35 -39
- package/dist/esm/components/badge/badge.js +3 -6
- package/dist/esm/components/badge/chip.js +10 -13
- package/dist/esm/components/base/amount-input/amount-input.js +13 -14
- package/dist/esm/components/base/amount-input/token-select-panel.js +34 -40
- package/dist/esm/components/base/apy-breakdown-body/apy-breakdown-body.js +106 -0
- package/dist/esm/components/base/apy-breakdown-body/index.js +10 -0
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +4 -7
- package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +6 -6
- package/dist/esm/components/{detailed-page-title/detailed-page-title-copy-button.js → base/detailed-page-title/copy-button.js} +14 -16
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +26 -29
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-scope.js +1 -1
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +20 -23
- package/dist/esm/components/base/details-view/index.js +11 -9
- package/dist/esm/components/base/health-factor-block/health-factor-block.js +49 -34
- package/dist/esm/components/base/history-chart/history-chart.js +65 -63
- package/dist/esm/components/base/index.js +158 -164
- package/dist/esm/components/base/info-list/index.js +4 -5
- package/dist/esm/components/base/info-list/info-list.js +55 -55
- package/dist/esm/components/base/leverage-input/leverage-input.js +67 -51
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +4 -6
- package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +46 -38
- package/dist/esm/components/base/manage-pane/manage-pane.js +80 -72
- package/dist/esm/components/base/more-accordion/more-accordion.js +4 -4
- package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +5 -2
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +123 -40
- package/dist/esm/components/base/position-assets/constants.js +9 -0
- package/dist/esm/components/base/position-assets/index.js +7 -0
- package/dist/esm/components/base/position-assets/position-assets.js +115 -0
- package/dist/esm/components/base/review-button/constants.js +3 -2
- package/dist/esm/components/base/review-button/review-button.js +27 -17
- package/dist/esm/components/base/section-heading/section-heading.js +3 -6
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +14 -17
- package/dist/esm/components/base/stack/stack.js +20 -22
- package/dist/esm/components/base/stat-badge/constants.js +1 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +91 -58
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +7 -3
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +191 -186
- package/dist/esm/components/base/tabber/tabber.js +75 -60
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +36 -28
- package/dist/esm/components/base/title-meta/title-meta.js +39 -40
- package/dist/esm/components/base/token-amount/token-amount.js +36 -16
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +13 -16
- package/dist/esm/components/base/values/constants.js +2 -0
- package/dist/esm/components/base/values/index.js +19 -16
- package/dist/esm/components/base/values/no-value.js +34 -0
- package/dist/esm/components/base/values/pnl-value.js +11 -12
- package/dist/esm/components/base/values/position-status-badge.js +6 -9
- package/dist/esm/components/base/values/position-type-badge.js +10 -13
- package/dist/esm/components/base/values/price-impact-value.js +21 -0
- package/dist/esm/components/base/values/scalars.js +60 -41
- package/dist/esm/components/base-link/base-link.js +8 -10
- package/dist/esm/components/base-table/base-table-line.js +50 -42
- package/dist/esm/components/base-table/base-table.js +56 -51
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +9 -12
- package/dist/esm/components/buttons/back-button/back-button.js +20 -23
- package/dist/esm/components/buttons/button/button.js +5 -7
- package/dist/esm/components/buttons/copy-button/copy-button.js +13 -15
- package/dist/esm/components/buttons/external-button/external-button.js +8 -10
- package/dist/esm/components/buttons/index.js +5 -11
- package/dist/esm/components/buttons/range-buttons/index.js +1 -4
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +1 -36
- package/dist/esm/components/cards/card/card.js +7 -9
- package/dist/esm/components/cards/expandable-card/expandable-card.js +14 -16
- package/dist/esm/components/cards/index.js +2 -4
- package/dist/esm/components/checkbox/checkbox-labeled.js +25 -49
- package/dist/esm/components/checkbox/checkbox.js +8 -10
- package/dist/esm/components/client-adapters/index.js +4 -6
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +14 -22
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +5 -7
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +13 -16
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +16 -19
- package/dist/esm/components/composites/index.js +17 -19
- package/dist/esm/components/composites/notification-center/notification-center.js +22 -25
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +16 -18
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +47 -49
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +10 -12
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +46 -37
- package/dist/esm/components/composites/tx-preview/confirm/amounts/constants.js +1 -5
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +4 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +81 -89
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +10 -7
- package/dist/esm/components/composites/tx-preview/confirm/index.js +18 -20
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +20 -23
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +1 -3
- package/dist/esm/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.js +1 -6
- package/dist/esm/components/composites/tx-preview/index.js +18 -20
- package/dist/esm/components/compound-apy/compound-apy.js +50 -42
- package/dist/esm/components/confirm-menu/confirm-menu.js +10 -12
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +51 -44
- package/dist/esm/components/detailed-page-title/index.js +2 -4
- package/dist/esm/components/dialog/dialog-container.js +11 -13
- package/dist/esm/components/dialog/dialog-content.js +5 -7
- package/dist/esm/components/dialog/dialog-description.js +5 -7
- package/dist/esm/components/dialog/dialog-footer.js +10 -13
- package/dist/esm/components/dialog/dialog-form.js +12 -15
- package/dist/esm/components/dialog/dialog-header.js +5 -8
- package/dist/esm/components/dialog/dialog-modal-container.js +4 -6
- package/dist/esm/components/dialog/dialog-overlay.js +6 -8
- package/dist/esm/components/dialog/dialog-title.js +4 -6
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +8 -10
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +10 -12
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +7 -9
- package/dist/esm/components/dropdown-menu/dropdown-menu.js +8 -11
- package/dist/esm/components/dropdown-menu/index.js +9 -24
- package/dist/esm/components/edit-input/edit-input.js +13 -15
- package/dist/esm/components/error-message/error-line-message.js +10 -13
- package/dist/esm/components/error-message/index.js +1 -3
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +4 -6
- package/dist/esm/components/formatted-number/formatted-number.js +3 -6
- package/dist/esm/components/graph/default-config.js +39 -73
- package/dist/esm/components/graph/formatters.js +98 -137
- package/dist/esm/components/graph/graph-current-value.js +11 -11
- package/dist/esm/components/graph/graph-tooltip.js +6 -6
- package/dist/esm/components/graph/graph-view.js +76 -91
- package/dist/esm/components/graph/graph.js +706 -605
- package/dist/esm/components/graph/index.js +34 -29
- package/dist/esm/components/graph/y-axis-scale.js +112 -0
- package/dist/esm/components/head-cell/head-cell.js +21 -23
- package/dist/esm/components/health-factor/health-factor.js +27 -27
- package/dist/esm/components/help-tip/help-tip.js +70 -67
- package/dist/esm/components/hf-indicator/hf-indicator.js +55 -29
- package/dist/esm/components/icon-button/icon-button.js +14 -16
- package/dist/esm/components/icons/fa-icon.js +3 -6
- package/dist/esm/components/icons/index.js +2 -41
- package/dist/esm/components/index.js +626 -733
- package/dist/esm/components/input/input.js +3 -5
- package/dist/esm/components/label/label.js +1 -3
- package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
- package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +12 -12
- package/dist/esm/components/legal-agreement/legal-agreement-panel.js +6 -6
- package/dist/esm/components/link/link.js +51 -40
- package/dist/esm/components/loader/loader.js +5 -7
- package/dist/esm/components/loading/loading.js +22 -15
- package/dist/esm/components/markdown-text/index.js +4 -0
- package/dist/esm/components/markdown-text/markdown-text.js +63 -0
- package/dist/esm/components/modal/modal.js +8 -10
- package/dist/esm/components/navbar-logo/navbar-logo.js +9 -12
- package/dist/esm/components/network-icon/index.js +2 -4
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +20 -23
- package/dist/esm/components/radio-group/index.js +5 -0
- package/dist/esm/components/radio-group/radio-group.js +55 -0
- package/dist/esm/components/rounded-image/rounded-image.js +46 -44
- package/dist/esm/components/rwa-styles/index.js +2 -3
- package/dist/esm/components/sdk-status-pill/constants.js +8 -0
- package/dist/esm/components/sdk-status-pill/index.js +8 -0
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +63 -0
- package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
- package/dist/esm/components/search-line/search-line.js +6 -8
- package/dist/esm/components/segmented-control/segmented-control.js +7 -9
- package/dist/esm/components/select/select.js +8 -10
- package/dist/esm/components/separate-line/separate-line.js +1 -3
- package/dist/esm/components/short-string/short-string.js +7 -10
- package/dist/esm/components/simple-accordion/simple-accordion.js +10 -13
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +5 -13
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +11 -13
- package/dist/esm/components/skeleton/skeleton-stack.js +9 -11
- package/dist/esm/components/skeleton/skeleton.js +11 -14
- package/dist/esm/components/slider/constants.js +6 -0
- package/dist/esm/components/slider/index.js +27 -26
- package/dist/esm/components/slider/slider-track.js +19 -17
- package/dist/esm/components/slider/slider-utils.js +36 -21
- package/dist/esm/components/slider/slider.js +54 -54
- package/dist/esm/components/spinner/spinner.js +1 -3
- package/dist/esm/components/spinner-loader/spinner-loader.js +10 -12
- package/dist/esm/components/split-list/split-list.js +5 -7
- package/dist/esm/components/status-elements/status-elements.js +10 -13
- package/dist/esm/components/tab-control/index.js +3 -6
- package/dist/esm/components/tab-control/tab-control.js +59 -103
- package/dist/esm/components/table/grid-loading-line.js +16 -18
- package/dist/esm/components/table/grid-table.js +46 -49
- package/dist/esm/components/table/index.js +20 -29
- package/dist/esm/components/table/table-sm.js +23 -26
- package/dist/esm/components/table/table.js +2 -7
- package/dist/esm/components/tabs/tabs.js +10 -12
- package/dist/esm/components/text-button/text-button.js +10 -12
- package/dist/esm/components/textarea/textarea.js +1 -3
- package/dist/esm/components/theme-provider.js +19 -26
- package/dist/esm/components/tip-card/tip-card.js +5 -7
- package/dist/esm/components/token-icon/index.js +2 -3
- package/dist/esm/components/token-icon/token-icon.js +73 -86
- package/dist/esm/components/token-symbol/token-symbol.js +5 -7
- package/dist/esm/components/token-template/index.js +4 -2
- package/dist/esm/components/token-template/token-template.js +16 -20
- package/dist/esm/components/tooltip/simple-tooltip.js +52 -52
- package/dist/esm/components/tooltip/tooltip.js +7 -9
- package/dist/esm/components/trading-view/trading-view.js +133 -131
- package/dist/esm/components/truncated-text/index.js +4 -0
- package/dist/esm/components/truncated-text/truncated-text.js +30 -0
- package/dist/esm/components/typography/typography.js +9 -11
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +16 -18
- package/dist/esm/components/vspace/vspace.js +10 -13
- package/dist/esm/components/with-copy/with-copy.js +33 -57
- package/dist/esm/components/yield-breakdown-tooltip/index.js +2 -1
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +149 -130
- package/dist/esm/configs/index.js +4 -11
- package/dist/esm/hooks/index.js +18 -34
- package/dist/esm/hooks/use-debounce-call.js +5 -6
- package/dist/esm/hooks/use-filter.js +25 -61
- package/dist/esm/hooks/use-media-query.js +27 -41
- package/dist/esm/index.js +729 -892
- package/dist/esm/locale/en.json.js +57 -42
- package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/utilities.js +1 -1
- package/dist/esm/node_modules/.pnpm/tailwindcss@4.3.3/node_modules/tailwindcss/dist/flatten-color-palette.js +16 -0
- package/dist/esm/utils/bn-to-pretty-view.js +1 -1
- package/dist/esm/utils/colors.js +22 -34
- package/dist/esm/utils/format-asset-amount.js +1 -1
- package/dist/esm/utils/format-money.js +29 -69
- package/dist/esm/utils/format-number.js +26 -30
- package/dist/esm/utils/format-slippage.js +1 -1
- package/dist/esm/utils/format.js +6 -25
- package/dist/esm/utils/index.js +77 -110
- package/dist/esm/utils/loading.js +6 -13
- package/dist/esm/utils/math.js +22 -31
- package/dist/esm/utils/parse-input-to-bn.js +1 -1
- package/dist/esm/utils/ranges.js +1 -24
- package/dist/esm/utils/ranges.spec.js +1 -188
- package/dist/esm/utils/templates.js +5 -39
- package/dist/esm/utils/ttl.js +11 -36
- package/dist/globals.css +2 -2
- package/dist/types/components/alert-badge/alert-badge.d.ts +1 -1
- package/dist/types/components/alert-dialog/alert-dialog.d.ts +2 -2
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts +2 -2
- package/dist/types/components/base/amount-input/amount-input.d.ts +3 -2
- package/dist/types/components/base/amount-input/token-select-panel.d.ts +4 -3
- package/dist/types/components/base/apy-breakdown-body/apy-breakdown-body.d.ts +43 -0
- package/dist/types/components/base/apy-breakdown-body/index.d.ts +2 -0
- package/dist/types/components/base/details-view/index.d.ts +2 -2
- package/dist/types/components/base/health-factor-block/health-factor-block.d.ts +8 -1
- package/dist/types/components/base/history-chart/history-chart.d.ts +21 -6
- package/dist/types/components/base/index.d.ts +1 -4
- package/dist/types/components/base/info-list/info-list.d.ts +4 -15
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +6 -4
- package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +8 -1
- package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +3 -0
- package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +13 -8
- package/dist/types/components/base/position-assets/constants.d.ts +6 -0
- package/dist/types/components/base/position-assets/index.d.ts +2 -0
- package/dist/types/components/base/position-assets/position-assets.d.ts +65 -0
- package/dist/types/components/base/review-button/constants.d.ts +1 -0
- package/dist/types/components/base/review-button/review-button.d.ts +17 -3
- package/dist/types/components/base/stat-badge/constants.d.ts +1 -0
- package/dist/types/components/base/stat-badge/stat-badge.d.ts +11 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +5 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +40 -12
- package/dist/types/components/base/tabber/tabber.d.ts +2 -2
- package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +8 -1
- package/dist/types/components/base/token-amount/token-amount.d.ts +14 -2
- package/dist/types/components/base/values/constants.d.ts +2 -0
- package/dist/types/components/base/values/index.d.ts +8 -7
- package/dist/types/components/base/values/no-value.d.ts +25 -0
- package/dist/types/components/base/values/pnl-value.d.ts +8 -2
- package/dist/types/components/base/values/price-impact-value.d.ts +25 -0
- package/dist/types/components/base/values/scalars.d.ts +29 -3
- package/dist/types/components/base-table/base-table-line.d.ts +1 -1
- package/dist/types/components/base-table/base-table.d.ts +2 -2
- package/dist/types/components/buttons/back-button/back-button.d.ts +2 -2
- package/dist/types/components/buttons/button/button.d.ts +2 -2
- package/dist/types/components/buttons/index.d.ts +0 -2
- package/dist/types/components/buttons/range-buttons/range-buttons.d.ts +0 -32
- package/dist/types/components/cards/card/card.d.ts +2 -2
- package/dist/types/components/cards/danger-zone/danger-zone.d.ts +1 -1
- package/dist/types/components/cards/expandable-card/expandable-card.d.ts +1 -1
- package/dist/types/components/cards/index.d.ts +0 -1
- package/dist/types/components/checkbox/checkbox.d.ts +2 -2
- package/dist/types/components/client-adapters/index.d.ts +0 -1
- package/dist/types/components/client-adapters/styled-button/styled-button.d.ts +10 -5
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +3 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +6 -2
- package/dist/types/components/composites/pool-assets-table/types.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +47 -14
- package/dist/types/components/composites/tx-preview/confirm/amounts/constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts +26 -25
- package/dist/types/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.d.ts +0 -9
- package/dist/types/components/compound-apy/compound-apy.d.ts +14 -2
- package/dist/types/components/detailed-page-title/index.d.ts +0 -1
- package/dist/types/components/dialog/dialog-footer.d.ts +1 -1
- package/dist/types/components/dialog/dialog-header.d.ts +1 -1
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +2 -5
- package/dist/types/components/dropdown-menu/index.d.ts +0 -6
- package/dist/types/components/edit-input/edit-input.d.ts +1 -1
- package/dist/types/components/error-message/index.d.ts +0 -1
- package/dist/types/components/formatted-number/formatted-number.d.ts +1 -1
- package/dist/types/components/graph/default-config.d.ts +23 -2
- package/dist/types/components/graph/formatters.d.ts +11 -4
- package/dist/types/components/graph/graph-view.d.ts +0 -32
- package/dist/types/components/graph/graph.d.ts +51 -9
- package/dist/types/components/graph/index.d.ts +3 -3
- package/dist/types/components/graph/y-axis-scale.d.ts +48 -0
- package/dist/types/components/head-cell/head-cell.d.ts +2 -1
- package/dist/types/components/head-cell/index.d.ts +1 -1
- package/dist/types/components/health-factor/health-factor.d.ts +10 -1
- package/dist/types/components/help-tip/help-tip.d.ts +4 -4
- package/dist/types/components/hf-indicator/hf-indicator.d.ts +12 -3
- package/dist/types/components/icon-button/icon-button.d.ts +0 -8
- package/dist/types/components/icons/fa-icon.d.ts +1 -1
- package/dist/types/components/icons/index.d.ts +1 -2
- package/dist/types/components/index.d.ts +4 -7
- package/dist/types/components/label/label.d.ts +2 -2
- package/dist/types/components/layout/app-footer/app-footer.d.ts +9 -15
- package/dist/types/components/legal-agreement/index.d.ts +5 -5
- package/dist/types/components/legal-agreement/legal-agreement-dialog.d.ts +2 -2
- package/dist/types/components/legal-agreement/legal-agreement-theme.d.ts +0 -2
- package/dist/types/components/loading/loading.d.ts +1 -1
- package/dist/types/components/markdown-text/index.d.ts +1 -0
- package/dist/types/components/markdown-text/markdown-text.d.ts +6 -0
- package/dist/types/components/navbar-logo/navbar-logo.d.ts +1 -1
- package/dist/types/components/navigation-context/index.d.ts +1 -1
- package/dist/types/components/navigation-context/navigation-context.d.ts +1 -9
- package/dist/types/components/network-icon/index.d.ts +0 -2
- package/dist/types/components/network-icon/network-icon.d.ts +1 -1
- package/dist/types/components/points-icon/index.d.ts +1 -1
- package/dist/types/components/points-icon/points-icon.d.ts +0 -5
- package/dist/types/components/pool-points-indicator/pool-points-indicator.d.ts +1 -1
- package/dist/types/components/radio-group/index.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +39 -0
- package/dist/types/components/rwa-styles/index.d.ts +0 -1
- package/dist/types/components/sdk-status-pill/constants.d.ts +5 -0
- package/dist/types/components/sdk-status-pill/index.d.ts +3 -0
- package/dist/types/components/sdk-status-pill/sdk-status-pill.d.ts +27 -0
- package/dist/types/components/sdk-status-pill/sdk-status.d.ts +11 -0
- package/dist/types/components/search-line/search-line.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +4 -4
- package/dist/types/components/separate-line/index.d.ts +1 -1
- package/dist/types/components/short-string/short-string.d.ts +1 -1
- package/dist/types/components/simple-accordion/simple-accordion.d.ts +2 -2
- package/dist/types/components/simple-dropdown/simple-dropdown.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton.d.ts +1 -1
- package/dist/types/components/slider/constants.d.ts +3 -0
- package/dist/types/components/slider/index.d.ts +1 -0
- package/dist/types/components/slider/slider-context.d.ts +1 -1
- package/dist/types/components/slider/slider-mark.d.ts +1 -1
- package/dist/types/components/slider/slider-track.d.ts +1 -1
- package/dist/types/components/slider/slider-utils.d.ts +28 -3
- package/dist/types/components/spinner/spinner.d.ts +2 -2
- package/dist/types/components/spinner-loader/spinner-loader.d.ts +1 -1
- package/dist/types/components/status-elements/status-elements.d.ts +2 -2
- package/dist/types/components/tab-control/tab-control.d.ts +2 -14
- package/dist/types/components/table/grid-loading-line.d.ts +1 -1
- package/dist/types/components/table/grid-table.d.ts +5 -7
- package/dist/types/components/table/index.d.ts +0 -2
- package/dist/types/components/table/table-sm.d.ts +2 -2
- package/dist/types/components/table/table.d.ts +1 -46
- package/dist/types/components/theme-provider.d.ts +1 -14
- package/dist/types/components/tip-card/index.d.ts +1 -1
- package/dist/types/components/tip-card/tip-card.d.ts +1 -1
- package/dist/types/components/token-icon/index.d.ts +1 -1
- package/dist/types/components/token-icon/token-icon.d.ts +1 -16
- package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
- package/dist/types/components/token-template/index.d.ts +1 -1
- package/dist/types/components/token-template/token-template.d.ts +3 -3
- package/dist/types/components/tooltip/simple-tooltip.d.ts +1 -1
- package/dist/types/components/trading-view/trading-view.d.ts +18 -7
- package/dist/types/components/truncated-text/index.d.ts +1 -0
- package/dist/types/components/truncated-text/truncated-text.d.ts +13 -0
- package/dist/types/components/typed-intl/index.d.ts +1 -1
- package/dist/types/components/typography/typography.d.ts +3 -3
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +3 -3
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +27 -5
- package/dist/types/configs/index.d.ts +0 -2
- package/dist/types/hooks/index.d.ts +0 -5
- package/dist/types/hooks/use-filter.d.ts +1 -38
- package/dist/types/hooks/use-media-query.d.ts +0 -8
- package/dist/types/index.d.ts +6 -14
- package/dist/types/locale/en.json.d.ts +58 -43
- package/dist/types/types/index.d.ts +0 -2
- package/dist/types/utils/colors.d.ts +0 -6
- package/dist/types/utils/format-money.d.ts +0 -1
- package/dist/types/utils/format-number.d.ts +2 -5
- package/dist/types/utils/format.d.ts +8 -4
- package/dist/types/utils/index.d.ts +3 -12
- package/dist/types/utils/loading.d.ts +0 -1
- package/dist/types/utils/math.d.ts +0 -3
- package/dist/types/utils/network-icons.d.ts +1 -1
- package/dist/types/utils/ranges.d.ts +0 -23
- package/dist/types/utils/ranges.spec.d.ts +0 -1
- package/dist/types/utils/templates.d.ts +0 -77
- package/dist/types/utils/token-icon-source.d.ts +25 -1
- package/dist/types/utils/ttl.d.ts +0 -37
- package/package.json +26 -36
- package/dist/cjs/components/base/info-portal/index.cjs +0 -1
- package/dist/cjs/components/base/info-portal/info-portal.cjs +0 -1
- package/dist/cjs/components/base/side-card/constants.cjs +0 -1
- package/dist/cjs/components/base/side-card/index.cjs +0 -1
- package/dist/cjs/components/base/side-card/side-card.cjs +0 -1
- package/dist/cjs/components/base/sticky-bar/constants.cjs +0 -1
- package/dist/cjs/components/base/sticky-bar/index.cjs +0 -1
- package/dist/cjs/components/base/sticky-bar/sticky-bar.cjs +0 -1
- package/dist/cjs/components/base/token-pair-title/constants.cjs +0 -1
- package/dist/cjs/components/base/token-pair-title/index.cjs +0 -1
- package/dist/cjs/components/base/token-pair-title/token-pair-title.cjs +0 -1
- package/dist/cjs/components/base/values/points-value.cjs +0 -1
- package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +0 -1
- package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +0 -1
- package/dist/cjs/components/block-sync-pill/index.cjs +0 -1
- package/dist/cjs/components/buttons/filter-button/filter-button.cjs +0 -1
- package/dist/cjs/components/buttons/filter-button/index.cjs +0 -1
- package/dist/cjs/components/buttons/navigation-button/index.cjs +0 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +0 -1
- package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +0 -1
- package/dist/cjs/components/cards/expandable-call/index.cjs +0 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +0 -1
- package/dist/cjs/components/checkbox-item/index.cjs +0 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/index.cjs +0 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +0 -1
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +0 -1
- package/dist/cjs/components/detailed-apy/index.cjs +0 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +0 -1
- package/dist/cjs/components/error-message/error-message.cjs +0 -1
- package/dist/cjs/components/filter/filter-block.cjs +0 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-chip.cjs +0 -1
- package/dist/cjs/components/filter/filter-chips.cjs +0 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-group.cjs +0 -1
- package/dist/cjs/components/filter/filter-label.cjs +0 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-modal.cjs +0 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-separator.cjs +0 -1
- package/dist/cjs/components/filter/index.cjs +0 -1
- package/dist/cjs/components/filter/interface.cjs +0 -1
- package/dist/cjs/components/filter/variants.cjs +0 -1
- package/dist/cjs/components/loading-bar/index.cjs +0 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +0 -1
- package/dist/cjs/components/network-icon/network-indicator.cjs +0 -1
- package/dist/cjs/components/status-dot/index.cjs +0 -1
- package/dist/cjs/components/status-dot/status-dot.cjs +0 -1
- package/dist/cjs/components/table/table-loader-guard.cjs +0 -1
- package/dist/cjs/components/table/table-loader.cjs +0 -1
- package/dist/cjs/components/with-title/index.cjs +0 -1
- package/dist/cjs/components/with-title/with-title.cjs +0 -1
- package/dist/cjs/configs/design-tokens.cjs +0 -1
- package/dist/cjs/configs/variants.cjs +0 -1
- package/dist/cjs/hooks/use-checkbox-select.cjs +0 -1
- package/dist/cjs/hooks/use-controllable-state.cjs +0 -1
- package/dist/cjs/hooks/use-hf.cjs +0 -1
- package/dist/cjs/hooks/use-opened-state.cjs +0 -1
- package/dist/cjs/hooks/use-smart-number-input.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17/node_modules/tailwind-scrollbar/src/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17/node_modules/tailwind-scrollbar/src/utilities.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/tailwindcss@4.1.17/node_modules/tailwindcss/dist/flatten-color-palette.cjs +0 -3
- package/dist/cjs/types/filter.cjs +0 -1
- package/dist/cjs/types/footer.cjs +0 -1
- package/dist/cjs/utils/a11y.cjs +0 -1
- package/dist/cjs/utils/copy.cjs +0 -1
- package/dist/cjs/utils/interface.cjs +0 -1
- package/dist/cjs/utils/plural.cjs +0 -1
- package/dist/cjs/utils/react.cjs +0 -1
- package/dist/cjs/utils/search-in-token.cjs +0 -1
- package/dist/cjs/utils/search.cjs +0 -1
- package/dist/cjs/utils/short-sha.cjs +0 -1
- package/dist/cjs/utils/sort.cjs +0 -1
- package/dist/esm/components/base/info-portal/index.js +0 -5
- package/dist/esm/components/base/info-portal/info-portal.js +0 -20
- package/dist/esm/components/base/side-card/constants.js +0 -8
- package/dist/esm/components/base/side-card/index.js +0 -6
- package/dist/esm/components/base/side-card/side-card.js +0 -57
- package/dist/esm/components/base/sticky-bar/constants.js +0 -6
- package/dist/esm/components/base/sticky-bar/index.js +0 -6
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +0 -31
- package/dist/esm/components/base/token-pair-title/constants.js +0 -6
- package/dist/esm/components/base/token-pair-title/index.js +0 -6
- package/dist/esm/components/base/token-pair-title/token-pair-title.js +0 -20
- package/dist/esm/components/base/values/points-value.js +0 -30
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +0 -210
- package/dist/esm/components/block-sync-pill/block-sync-status.js +0 -12
- package/dist/esm/components/block-sync-pill/index.js +0 -4
- package/dist/esm/components/buttons/filter-button/filter-button.js +0 -32
- package/dist/esm/components/buttons/filter-button/index.js +0 -4
- package/dist/esm/components/buttons/navigation-button/index.js +0 -4
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +0 -28
- package/dist/esm/components/cards/expandable-call/expandable-call.js +0 -51
- package/dist/esm/components/cards/expandable-call/index.js +0 -4
- package/dist/esm/components/checkbox-item/checkbox-item.js +0 -52
- package/dist/esm/components/checkbox-item/index.js +0 -4
- package/dist/esm/components/client-adapters/styled-rounded-image/index.js +0 -4
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +0 -149
- package/dist/esm/components/detailed-apy/detailed-apy.js +0 -74
- package/dist/esm/components/detailed-apy/index.js +0 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +0 -35
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +0 -30
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +0 -21
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +0 -22
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +0 -25
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +0 -30
- package/dist/esm/components/error-message/error-message.js +0 -39
- package/dist/esm/components/filter/filter-block.js +0 -26
- package/dist/esm/components/filter/filter-checkbox-item.js +0 -31
- package/dist/esm/components/filter/filter-chip.js +0 -44
- package/dist/esm/components/filter/filter-chips.js +0 -50
- package/dist/esm/components/filter/filter-dropdown-item.js +0 -55
- package/dist/esm/components/filter/filter-group.js +0 -14
- package/dist/esm/components/filter/filter-label.js +0 -25
- package/dist/esm/components/filter/filter-modal-item.js +0 -61
- package/dist/esm/components/filter/filter-modal.js +0 -218
- package/dist/esm/components/filter/filter-radio-item.js +0 -30
- package/dist/esm/components/filter/filter-separator.js +0 -21
- package/dist/esm/components/filter/index.js +0 -26
- package/dist/esm/components/filter/interface.js +0 -1
- package/dist/esm/components/filter/variants.js +0 -17
- package/dist/esm/components/loading-bar/index.js +0 -4
- package/dist/esm/components/loading-bar/loading-bar.js +0 -29
- package/dist/esm/components/network-icon/network-indicator.js +0 -82
- package/dist/esm/components/status-dot/index.js +0 -5
- package/dist/esm/components/status-dot/status-dot.js +0 -51
- package/dist/esm/components/table/table-loader-guard.js +0 -31
- package/dist/esm/components/table/table-loader.js +0 -25
- package/dist/esm/components/with-title/index.js +0 -4
- package/dist/esm/components/with-title/with-title.js +0 -46
- package/dist/esm/configs/design-tokens.js +0 -85
- package/dist/esm/configs/variants.js +0 -28
- package/dist/esm/hooks/use-checkbox-select.js +0 -74
- package/dist/esm/hooks/use-controllable-state.js +0 -18
- package/dist/esm/hooks/use-hf.js +0 -43
- package/dist/esm/hooks/use-opened-state.js +0 -20
- package/dist/esm/hooks/use-smart-number-input.js +0 -10
- package/dist/esm/node_modules/.pnpm/tailwindcss@4.1.17/node_modules/tailwindcss/dist/flatten-color-palette.js +0 -363
- package/dist/esm/types/filter.js +0 -1
- package/dist/esm/types/footer.js +0 -1
- package/dist/esm/utils/a11y.js +0 -12
- package/dist/esm/utils/copy.js +0 -10
- package/dist/esm/utils/interface.js +0 -1
- package/dist/esm/utils/plural.js +0 -11
- package/dist/esm/utils/react.js +0 -44
- package/dist/esm/utils/search-in-token.js +0 -14
- package/dist/esm/utils/search.js +0 -6
- package/dist/esm/utils/short-sha.js +0 -4
- package/dist/esm/utils/sort.js +0 -1
- package/dist/types/components/base/info-portal/index.d.ts +0 -1
- package/dist/types/components/base/info-portal/info-portal.d.ts +0 -8
- package/dist/types/components/base/side-card/constants.d.ts +0 -5
- package/dist/types/components/base/side-card/index.d.ts +0 -2
- package/dist/types/components/base/side-card/side-card.d.ts +0 -16
- package/dist/types/components/base/sticky-bar/constants.d.ts +0 -3
- package/dist/types/components/base/sticky-bar/index.d.ts +0 -1
- package/dist/types/components/base/sticky-bar/sticky-bar.d.ts +0 -9
- package/dist/types/components/base/token-pair-title/constants.d.ts +0 -3
- package/dist/types/components/base/token-pair-title/index.d.ts +0 -2
- package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +0 -11
- package/dist/types/components/base/values/points-value.d.ts +0 -11
- package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +0 -35
- package/dist/types/components/block-sync-pill/block-sync-status.d.ts +0 -29
- package/dist/types/components/block-sync-pill/index.d.ts +0 -1
- package/dist/types/components/buttons/filter-button/filter-button.d.ts +0 -52
- package/dist/types/components/buttons/filter-button/index.d.ts +0 -1
- package/dist/types/components/buttons/navigation-button/index.d.ts +0 -1
- package/dist/types/components/buttons/navigation-button/navigation-button.d.ts +0 -26
- package/dist/types/components/cards/expandable-call/expandable-call.d.ts +0 -28
- package/dist/types/components/cards/expandable-call/index.d.ts +0 -1
- package/dist/types/components/checkbox-item/checkbox-item.d.ts +0 -56
- package/dist/types/components/checkbox-item/index.d.ts +0 -1
- package/dist/types/components/client-adapters/styled-rounded-image/index.d.ts +0 -1
- package/dist/types/components/client-adapters/styled-rounded-image/styled-rounded-image.d.ts +0 -9
- package/dist/types/components/detailed-apy/detailed-apy.d.ts +0 -40
- package/dist/types/components/detailed-apy/index.d.ts +0 -1
- package/dist/types/components/dropdown-menu/dropdown-menu-checkbox-item.d.ts +0 -22
- package/dist/types/components/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -4
- package/dist/types/components/dropdown-menu/dropdown-menu-separator.d.ts +0 -4
- package/dist/types/components/dropdown-menu/dropdown-menu-shortcut.d.ts +0 -6
- package/dist/types/components/dropdown-menu/dropdown-menu-sub-content.d.ts +0 -4
- package/dist/types/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +0 -6
- package/dist/types/components/error-message/error-message.d.ts +0 -22
- package/dist/types/components/filter/filter-block.d.ts +0 -39
- package/dist/types/components/filter/filter-checkbox-item.d.ts +0 -23
- package/dist/types/components/filter/filter-chip.d.ts +0 -34
- package/dist/types/components/filter/filter-chips.d.ts +0 -42
- package/dist/types/components/filter/filter-dropdown-item.d.ts +0 -62
- package/dist/types/components/filter/filter-group.d.ts +0 -22
- package/dist/types/components/filter/filter-label.d.ts +0 -21
- package/dist/types/components/filter/filter-modal-item.d.ts +0 -55
- package/dist/types/components/filter/filter-modal.d.ts +0 -123
- package/dist/types/components/filter/filter-radio-item.d.ts +0 -19
- package/dist/types/components/filter/filter-separator.d.ts +0 -22
- package/dist/types/components/filter/index.d.ts +0 -109
- package/dist/types/components/filter/interface.d.ts +0 -24
- package/dist/types/components/filter/variants.d.ts +0 -3
- package/dist/types/components/loading-bar/index.d.ts +0 -1
- package/dist/types/components/loading-bar/loading-bar.d.ts +0 -25
- package/dist/types/components/network-icon/network-indicator.d.ts +0 -23
- package/dist/types/components/status-dot/index.d.ts +0 -1
- package/dist/types/components/status-dot/status-dot.d.ts +0 -47
- package/dist/types/components/table/table-loader-guard.d.ts +0 -45
- package/dist/types/components/table/table-loader.d.ts +0 -50
- package/dist/types/components/with-title/index.d.ts +0 -1
- package/dist/types/components/with-title/with-title.d.ts +0 -31
- package/dist/types/configs/design-tokens.d.ts +0 -73
- package/dist/types/configs/variants.d.ts +0 -28
- package/dist/types/hooks/use-checkbox-select.d.ts +0 -101
- package/dist/types/hooks/use-controllable-state.d.ts +0 -24
- package/dist/types/hooks/use-hf.d.ts +0 -17
- package/dist/types/hooks/use-opened-state.d.ts +0 -71
- package/dist/types/hooks/use-smart-number-input.d.ts +0 -1
- package/dist/types/types/filter.d.ts +0 -8
- package/dist/types/types/footer.d.ts +0 -51
- package/dist/types/utils/a11y.d.ts +0 -24
- package/dist/types/utils/copy.d.ts +0 -4
- package/dist/types/utils/interface.d.ts +0 -24
- package/dist/types/utils/plural.d.ts +0 -36
- package/dist/types/utils/react.d.ts +0 -31
- package/dist/types/utils/search-in-token.d.ts +0 -43
- package/dist/types/utils/search.d.ts +0 -15
- package/dist/types/utils/short-sha.d.ts +0 -9
- package/dist/types/utils/sort.d.ts +0 -5
- /package/dist/cjs/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/helpers.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/variants.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{tailwindcss@4.1.17 → tailwindcss@4.3.3}/node_modules/tailwindcss/dist/plugin.cjs +0 -0
- /package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/helpers.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/variants.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{tailwindcss@4.1.17 → tailwindcss@4.3.3}/node_modules/tailwindcss/dist/plugin.js +0 -0
- /package/dist/types/components/{detailed-page-title/detailed-page-title-copy-button.d.ts → base/detailed-page-title/copy-button.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const alertBadgeVariants: (props?: ({
|
|
4
|
-
variant?: "none" | "default" | "success" | "
|
|
4
|
+
variant?: "none" | "default" | "success" | "alert" | "info" | "warning" | "primary" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
6
|
fullWidth?: boolean | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -33,11 +33,11 @@ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortal
|
|
|
33
33
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
34
|
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
35
|
declare const AlertDialogHeader: {
|
|
36
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
36
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
37
37
|
displayName: string;
|
|
38
38
|
};
|
|
39
39
|
declare const AlertDialogFooter: {
|
|
40
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
40
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|
|
43
43
|
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -151,5 +151,5 @@ export type AssetsListCellProps = SingleAssetCellProps | MultiAssetCellProps | T
|
|
|
151
151
|
* />
|
|
152
152
|
* ```
|
|
153
153
|
*/
|
|
154
|
-
export declare function AssetsListCell(props: AssetsListCellProps):
|
|
154
|
+
export declare function AssetsListCell(props: AssetsListCellProps): React.JSX.Element;
|
|
155
155
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "success" | "
|
|
4
|
+
variant?: "default" | "success" | "secondary" | "info" | "warning" | "destructive" | "outline" | "neutral" | "danger" | "accent" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
/**
|
|
7
7
|
* Badge — component for displaying labels, tags, or status indicators.
|
|
@@ -25,5 +25,5 @@ declare const badgeVariants: (props?: ({
|
|
|
25
25
|
*/
|
|
26
26
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
27
27
|
}
|
|
28
|
-
declare function Badge({ className, variant, ...props }: BadgeProps):
|
|
28
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
|
|
29
29
|
export { Badge, badgeVariants };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { AddressMap } from '@gearbox-protocol/sdk/onchain';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
import { TitleText } from '../text';
|
|
4
5
|
import { AmountInputTest } from './constants';
|
|
@@ -14,9 +15,9 @@ export interface AmountInputProps {
|
|
|
14
15
|
readonly onToken?: (token: Token) => void;
|
|
15
16
|
readonly balance?: bigint;
|
|
16
17
|
/** Wallet balances by token address — the picker's balance column. */
|
|
17
|
-
readonly balances?:
|
|
18
|
+
readonly balances?: AddressMap<bigint>;
|
|
18
19
|
/** USD price per whole token by address — the picker's USD line. */
|
|
19
|
-
readonly usdPrices?:
|
|
20
|
+
readonly usdPrices?: AddressMap<number>;
|
|
20
21
|
/** Label above the field; defaults to the "Amount" locale string. */
|
|
21
22
|
readonly label?: TitleText;
|
|
22
23
|
/** Label of the balance row; defaults to the "Balance" locale string. */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { AddressMap } from '@gearbox-protocol/sdk/onchain';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
export interface TokenSelectPanelProps {
|
|
4
5
|
readonly tokens: ReadonlyArray<Token>;
|
|
5
|
-
/** Wallet balances by token address
|
|
6
|
-
readonly balances?:
|
|
6
|
+
/** Wallet balances by token address; shows a balance column. */
|
|
7
|
+
readonly balances?: AddressMap<bigint>;
|
|
7
8
|
/** USD price per one whole token by address; shows a USD line under the balance. */
|
|
8
|
-
readonly usdPrices?:
|
|
9
|
+
readonly usdPrices?: AddressMap<number>;
|
|
9
10
|
readonly onSelect: (token: Token) => void;
|
|
10
11
|
readonly onClose: () => void;
|
|
11
12
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Bps } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { LocaleKeys } from '../../../locale';
|
|
4
|
+
export declare const BREAKDOWN_DASH = "\u2014";
|
|
5
|
+
/** Width of an APY breakdown in a tooltip — the one place it is named. */
|
|
6
|
+
export declare const APY_BREAKDOWN_TOOLTIP_WIDTH = "400px";
|
|
7
|
+
export declare function periodMessageId(period: "7d" | undefined, base: LocaleKeys, with7d: LocaleKeys): LocaleKeys;
|
|
8
|
+
/**
|
|
9
|
+
* A rate as the rows write it: two decimals, and a real minus sign.
|
|
10
|
+
*
|
|
11
|
+
* Two decimals at every scale, unlike the compact form the rest of the kit
|
|
12
|
+
* uses above 1000%. A breakdown is read by adding it up, and `1.2K%` carries
|
|
13
|
+
* three significant figures — enough to make a correct column look wrong.
|
|
14
|
+
*/
|
|
15
|
+
export declare function formatBreakdownRate(value: Bps): string;
|
|
16
|
+
export interface ApyBreakdownBodyProps {
|
|
17
|
+
/** Heading to the left of the chip — "Net APY (7d)" and the like. */
|
|
18
|
+
readonly title: React.ReactNode;
|
|
19
|
+
/** The figure the chip prints, or {@link NoValue} when there is none. */
|
|
20
|
+
readonly chip: React.ReactNode;
|
|
21
|
+
/** Green chip when the net is positive; muted otherwise. */
|
|
22
|
+
readonly chipPositive?: boolean;
|
|
23
|
+
readonly chipTestId?: string;
|
|
24
|
+
readonly children: React.ReactNode;
|
|
25
|
+
readonly testId?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Shared chrome of an APY breakdown: header with a net chip, then rows.
|
|
29
|
+
* Used by the pool and strategy cards and by the yield tooltip.
|
|
30
|
+
*/
|
|
31
|
+
export declare function ApyBreakdownBody({ title, chip, chipPositive, chipTestId, children, testId, }: ApyBreakdownBodyProps): React.ReactElement;
|
|
32
|
+
export interface ApyBreakdownRowProps {
|
|
33
|
+
readonly label: React.ReactNode;
|
|
34
|
+
/** The rate, or {@link NoValue} when the feed has none. */
|
|
35
|
+
readonly value: React.ReactNode;
|
|
36
|
+
readonly subtext?: React.ReactNode;
|
|
37
|
+
readonly muted?: boolean;
|
|
38
|
+
readonly testId?: string;
|
|
39
|
+
readonly valueTestId?: string;
|
|
40
|
+
readonly captionTestId?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function ApyBreakdownRow({ label, value, subtext, muted, testId, valueTestId, captionTestId, }: ApyBreakdownRowProps): React.ReactElement;
|
|
43
|
+
export declare function ApyBreakdownDivider(): React.ReactElement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './detail-aside/detail-aside-scope';
|
|
2
|
+
export * from './detail-aside/detail-aside-screen-layout';
|
|
3
3
|
export * from './details-view';
|
|
@@ -13,6 +13,13 @@ export interface HealthFactorBlockProps {
|
|
|
13
13
|
readonly debt: bigint;
|
|
14
14
|
/** Debt after the operation (defaults to `debt`). */
|
|
15
15
|
readonly debtTo?: bigint;
|
|
16
|
+
/**
|
|
17
|
+
* Marks the figure as projected rather than promised, with a leading `≈` in
|
|
18
|
+
* the factor's own colour. Only the projected side is marked: on a
|
|
19
|
+
* `from → to` row the "from" is where the account stands now, which is
|
|
20
|
+
* measured, not estimated.
|
|
21
|
+
*/
|
|
22
|
+
readonly approximate?: boolean;
|
|
16
23
|
/** Pre-computed zone; if not set, derived from the value. */
|
|
17
24
|
readonly zone?: HFZones;
|
|
18
25
|
readonly isLoading?: boolean;
|
|
@@ -26,4 +33,4 @@ export interface HealthFactorBlockProps {
|
|
|
26
33
|
* "Health factor" row of a preview: label + help tip on the left, the zone-
|
|
27
34
|
* colored HF (with optional from → to transition) on the right.
|
|
28
35
|
*/
|
|
29
|
-
export declare function HealthFactorBlock({ healthFactor, healthFactorTo, debt, debtTo, zone, isLoading, title, tip, testId, }: HealthFactorBlockProps): React.ReactElement;
|
|
36
|
+
export declare function HealthFactorBlock({ healthFactor, healthFactorTo, debt, debtTo, approximate, zone, isLoading, title, tip, testId, }: HealthFactorBlockProps): React.ReactElement;
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartRange, Timestamp } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { TitleText } from '../text';
|
|
4
4
|
import { PriceLineConfig, PriceZoneConfig } from '../../graph';
|
|
5
5
|
import { YMeasureUnits } from '../../graph/formatters';
|
|
6
6
|
import { HistoryChartTest } from './constants';
|
|
7
7
|
export { HistoryChartTest };
|
|
8
|
+
/**
|
|
9
|
+
* One metric's points over the selected window.
|
|
10
|
+
*
|
|
11
|
+
* Declared here rather than imported: the SDK used to export `HistorySeries`,
|
|
12
|
+
* dropped it when charts moved to the multi-metric `ChartBundle`, and this
|
|
13
|
+
* component still draws one series at a time. Only these three fields are read.
|
|
14
|
+
*/
|
|
15
|
+
export interface HistorySeries {
|
|
16
|
+
readonly metric: string;
|
|
17
|
+
readonly points: ReadonlyArray<{
|
|
18
|
+
readonly timestamp: Timestamp;
|
|
19
|
+
readonly value: number;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
8
22
|
export interface HistoryChartProps {
|
|
9
|
-
/** One series or several (dual charts)
|
|
23
|
+
/** One series or several (dual charts). */
|
|
10
24
|
readonly data: HistorySeries | ReadonlyArray<HistorySeries> | undefined;
|
|
11
|
-
readonly range:
|
|
12
|
-
readonly onRange: (range:
|
|
25
|
+
readonly range: ChartRange;
|
|
26
|
+
readonly onRange: (range: ChartRange) => void;
|
|
13
27
|
readonly isLoading?: boolean;
|
|
14
28
|
readonly error?: Error;
|
|
15
29
|
/** Y-axis unit ("%", "$", a token symbol); one for all or one per series. */
|
|
@@ -35,13 +49,14 @@ export interface HistoryChartProps {
|
|
|
35
49
|
readonly trailing?: React.ReactNode;
|
|
36
50
|
/**
|
|
37
51
|
* Force a second Y-axis. When omitted, the chart splits axes only if
|
|
38
|
-
* `yMeasureUnit` lists more than one distinct unit.
|
|
52
|
+
* `yMeasureUnit` lists more than one distinct unit. Same-unit series share
|
|
53
|
+
* one scale and show its labels.
|
|
39
54
|
*/
|
|
40
55
|
readonly dualYAxis?: boolean;
|
|
41
56
|
}
|
|
42
57
|
/**
|
|
43
58
|
* Design-only history chart on the TradingView engine: range dropdown, legend
|
|
44
59
|
* below the frame, tooltips, optional reference lines and zones. Takes the SDK's
|
|
45
|
-
* `HistorySeries` as it comes — points are mapped 1:1, no fetching.
|
|
60
|
+
* a `HistorySeries` as it comes — points are mapped 1:1, no fetching.
|
|
46
61
|
*/
|
|
47
62
|
export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, showCurrentValue, yScaleMin, title, trailing, dualYAxis: dualYAxisProp, }: HistoryChartProps): React.ReactElement;
|
|
@@ -6,7 +6,6 @@ export * from './details-view';
|
|
|
6
6
|
export * from './health-factor-block';
|
|
7
7
|
export * from './history-chart';
|
|
8
8
|
export * from './info-list';
|
|
9
|
-
export * from './info-portal';
|
|
10
9
|
export * from './leverage-input';
|
|
11
10
|
export * from './leverage-preset-chips';
|
|
12
11
|
export * from './liquidation-params-table';
|
|
@@ -16,14 +15,13 @@ export * from './more-accordion';
|
|
|
16
15
|
export * from './nested-info-stack';
|
|
17
16
|
export * from './page-title';
|
|
18
17
|
export * from './pool-apy-breakdown-card';
|
|
18
|
+
export * from './position-assets';
|
|
19
19
|
export * from './review-button';
|
|
20
20
|
export * from './section-heading';
|
|
21
21
|
export * from './segmented-tabs';
|
|
22
|
-
export * from './side-card';
|
|
23
22
|
export * from './spacing';
|
|
24
23
|
export * from './stack';
|
|
25
24
|
export * from './stat-badge';
|
|
26
|
-
export * from './sticky-bar';
|
|
27
25
|
export * from './strategy-apy-breakdown-card';
|
|
28
26
|
export * from './tabber';
|
|
29
27
|
export * from './text';
|
|
@@ -31,5 +29,4 @@ export * from './time-to-liquidation-block';
|
|
|
31
29
|
export * from './title-meta';
|
|
32
30
|
export * from './token-amount';
|
|
33
31
|
export * from './token-pair-symbol';
|
|
34
|
-
export * from './token-pair-title';
|
|
35
32
|
export * from './values';
|
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
import { ApyBreakdown } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { TitleText } from '../text';
|
|
4
|
+
import { VerticalIndicatorProps } from '../../vertical-indicator';
|
|
4
5
|
import { InfoListTest } from './constants';
|
|
5
6
|
export { InfoListTest };
|
|
6
7
|
/** Label / value rows under a form — the projected state of an operation. */
|
|
7
8
|
export declare function InfoList({ children, }: {
|
|
8
9
|
readonly children: React.ReactNode;
|
|
9
10
|
}): React.ReactElement;
|
|
10
|
-
export interface InfoLineProps {
|
|
11
|
+
export interface InfoLineProps extends Omit<VerticalIndicatorProps, "label" | "title"> {
|
|
11
12
|
readonly title: TitleText;
|
|
12
|
-
readonly
|
|
13
|
-
/** Tooltip content behind the help icon next to the label. */
|
|
14
|
-
readonly tip?: React.ReactNode;
|
|
15
|
-
/** Caption under the value (right-aligned), e.g. "for 0.00 USDC". */
|
|
16
|
-
readonly valueDescription?: React.ReactNode;
|
|
17
|
-
/** New value after an arrow (value → valueTo); the old one is dimmed. */
|
|
18
|
-
readonly valueTo?: React.ReactNode;
|
|
19
|
-
readonly testId?: string;
|
|
13
|
+
readonly "data-testid"?: string;
|
|
20
14
|
}
|
|
21
15
|
/** One row of the list — the reference `VerticalIndicator` markup. */
|
|
22
|
-
export declare function InfoLine({ title,
|
|
23
|
-
export interface InfoSectionTitleProps {
|
|
24
|
-
readonly title: TitleText;
|
|
25
|
-
}
|
|
26
|
-
/** Uppercase section label inside an `InfoList` (e.g. debt limits). */
|
|
27
|
-
export declare function InfoSectionTitle({ title, }: InfoSectionTitleProps): React.ReactElement;
|
|
16
|
+
export declare function InfoLine({ title, size, align, "data-testid": testId, ...rest }: InfoLineProps): React.ReactElement;
|
|
28
17
|
export interface PointsInfoLineProps {
|
|
29
18
|
readonly data: ApyBreakdown | undefined;
|
|
30
19
|
readonly title?: TitleText;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Leverage } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { TitleText } from '../text';
|
|
4
|
-
import { WithTitleProps } from '../../with-title';
|
|
5
4
|
import { ColorInterval } from '../../../utils/ranges';
|
|
6
5
|
import { LeverageInputTest } from './constants';
|
|
7
6
|
export { LeverageInputTest };
|
|
@@ -25,14 +24,17 @@ export interface LeverageInputProps {
|
|
|
25
24
|
/** When set, renders a "Reset" button with a tooltip next to the value. */
|
|
26
25
|
readonly reset?: LeverageInputResetProps;
|
|
27
26
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* The reachable leverages, in leverage units (e.g. `{start: 1, end: 3}`),
|
|
28
|
+
* scaled to the slider's integer space internally. Omitted or empty leaves
|
|
29
|
+
* the track unmarked — which is what an unknown range looks like, not a
|
|
30
|
+
* full one.
|
|
30
31
|
*/
|
|
31
32
|
readonly colorIntervals?: ReadonlyArray<ColorInterval>;
|
|
32
33
|
/** Label of the highlighted interval range under the slider. */
|
|
33
34
|
readonly colorIntervalLabel?: string;
|
|
34
|
-
readonly size?:
|
|
35
|
+
readonly size?: TitleSize;
|
|
35
36
|
}
|
|
37
|
+
type TitleSize = "sm" | "default" | "md" | "lg";
|
|
36
38
|
/**
|
|
37
39
|
* Target leverage of a position, bounded by what the strategy allows.
|
|
38
40
|
* Title row carries an inline-editable value (`N.NNx`) and an optional reset;
|
|
@@ -16,6 +16,13 @@ export interface LiquidationPriceBlockProps {
|
|
|
16
16
|
readonly collateral?: Token | null;
|
|
17
17
|
/** Underlying token of the quoted pair. */
|
|
18
18
|
readonly underlying?: Token;
|
|
19
|
+
/**
|
|
20
|
+
* Prefixes the figure with {@link APPROXIMATE_SYMBOL}, for a value the
|
|
21
|
+
* operation projects rather than promises. Only the projected side is
|
|
22
|
+
* marked: on a `from → to` row the "from" is where the account stands now,
|
|
23
|
+
* which is measured, not estimated.
|
|
24
|
+
*/
|
|
25
|
+
readonly approximate?: boolean;
|
|
19
26
|
/** Zone dot next to the price. */
|
|
20
27
|
readonly zone?: HFZones;
|
|
21
28
|
readonly isLoading?: boolean;
|
|
@@ -29,4 +36,4 @@ export interface LiquidationPriceBlockProps {
|
|
|
29
36
|
* "Liquidation price" row of a preview: label + help tip, the formatted price
|
|
30
37
|
* (with optional from → to and zone dot), and the price pair underneath.
|
|
31
38
|
*/
|
|
32
|
-
export declare function LiquidationPriceBlock({ price, priceTo, collateral, underlying, zone, isLoading, title, tip, testId, }: LiquidationPriceBlockProps): React.ReactElement;
|
|
39
|
+
export declare function LiquidationPriceBlock({ price, priceTo, collateral, underlying, approximate, zone, isLoading, title, tip, testId, }: LiquidationPriceBlockProps): React.ReactElement;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApyBreakdown } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { PoolApyBreakdownCardTest } from './constants';
|
|
4
4
|
export { PoolApyBreakdownCardTest };
|
|
5
5
|
export interface PoolApyBreakdownCardProps {
|
|
6
|
-
/**
|
|
7
|
-
readonly data?:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
6
|
+
/** SDK supply APY; missing data renders dashes, a present one with no incentives renders Incentive APY as 0%. */
|
|
7
|
+
readonly data?: ApyBreakdown;
|
|
8
|
+
/** When `"7d"`, labels carry the averaging-window suffix. */
|
|
9
|
+
readonly period?: "7d";
|
|
11
10
|
}
|
|
12
|
-
/**
|
|
13
|
-
|
|
11
|
+
/**
|
|
12
|
+
* How a pool's net APY is arrived at: base yield plus incentives.
|
|
13
|
+
*
|
|
14
|
+
* A token reward names the incentive row (`GEAR Incentive APY`). With none,
|
|
15
|
+
* that row is still shown as Incentive APY at 0%. Points sit under a divider
|
|
16
|
+
* when present; they are not addends.
|
|
17
|
+
*/
|
|
18
|
+
export declare function PoolApyBreakdownCard({ data, period, }: PoolApyBreakdownCardProps): React.ReactElement;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { TokenAmount } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { PositionAssetsTest } from './constants';
|
|
4
|
+
export { PositionAssetsTest };
|
|
5
|
+
export interface PositionAssetsProps {
|
|
6
|
+
/** What the position holds. */
|
|
7
|
+
readonly assets?: readonly TokenAmount[];
|
|
8
|
+
/**
|
|
9
|
+
* What those holdings become. Given, every row reads `before → after` and
|
|
10
|
+
* names its token once for the pair; omitted, the rows are plain holdings.
|
|
11
|
+
*/
|
|
12
|
+
readonly to?: readonly TokenAmount[];
|
|
13
|
+
/** Rendered in place of the rows when nothing survives the dust filter. */
|
|
14
|
+
readonly empty?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Prefixes the projected amount with {@link APPROXIMATE_SYMBOL} — the "after"
|
|
17
|
+
* of a pair, or the only column when the list itself is a projection. The
|
|
18
|
+
* struck "before" is never marked: it is what the account holds now.
|
|
19
|
+
*/
|
|
20
|
+
readonly approximate?: boolean;
|
|
21
|
+
readonly testId?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Holdings token by token, most valuable first — the position itself rather
|
|
25
|
+
* than the one number its collateral adds up to. A right-aligned column, so it
|
|
26
|
+
* reads as the value of the `InfoLine` a caller drops it into.
|
|
27
|
+
*
|
|
28
|
+
* The whole of a change belongs in the one slot: a row carries both amounts
|
|
29
|
+
* with the arrow between them, rather than the caller putting one list in
|
|
30
|
+
* `value` and another in `valueTo`. Two lists would name the same token twice
|
|
31
|
+
* and draw its icon twice, which is what pushes a long symbol out of a narrow
|
|
32
|
+
* dialog; they would also have to be kept in the same order by hand.
|
|
33
|
+
*
|
|
34
|
+
* The rows carry no label of their own, which is why they are not `InfoLine`s:
|
|
35
|
+
* `VerticalIndicator` leaves out its left column entirely when no label is
|
|
36
|
+
* given and never justifies what remains, so a label-less row would sit on the
|
|
37
|
+
* wrong side.
|
|
38
|
+
*
|
|
39
|
+
* Dust is left out: an account carries stray fractions of a cent from
|
|
40
|
+
* rounding, and listing them buries the holdings that matter. A token the
|
|
41
|
+
* oracle cannot price is never dust — an unknown value is not a small one.
|
|
42
|
+
*/
|
|
43
|
+
export declare function PositionAssets({ assets, to, empty, approximate, testId, }: PositionAssetsProps): React.ReactElement;
|
|
44
|
+
/** One token across both sides of a change. */
|
|
45
|
+
export interface AssetRow {
|
|
46
|
+
readonly token: TokenAmount["token"];
|
|
47
|
+
/** What the position holds now — zero for a token only the other side has. */
|
|
48
|
+
readonly value: bigint;
|
|
49
|
+
/** What it becomes — zero where the projection drops the token. */
|
|
50
|
+
readonly valueTo: bigint;
|
|
51
|
+
/**
|
|
52
|
+
* What the token is worth at its richer side, which is what decides both
|
|
53
|
+
* dust and order. `null` when a side the oracle cannot price is involved.
|
|
54
|
+
*/
|
|
55
|
+
readonly worth: number | null;
|
|
56
|
+
/** USD of the "now" side; `null` where the oracle could not price it. */
|
|
57
|
+
readonly valueUsd: number | null;
|
|
58
|
+
/** USD of the "after" side, for the caption a paired row shows. */
|
|
59
|
+
readonly valueToUsd: number | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* What earns a row, most valuable first — decided across both sides, so a
|
|
63
|
+
* token either side holds is listed once, in one place.
|
|
64
|
+
*/
|
|
65
|
+
export declare function visibleAssets(assets: readonly TokenAmount[] | undefined, to?: readonly TokenAmount[]): AssetRow[];
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { FormattedMessageTypedProps } from '../../typed-intl';
|
|
2
3
|
import { LocaleKeys } from '../../../locale';
|
|
3
4
|
import { ReviewButtonTest } from './constants';
|
|
4
5
|
export { ReviewButtonTest };
|
|
5
6
|
export interface ReviewButtonProps {
|
|
6
7
|
readonly disabled: boolean;
|
|
7
|
-
/**
|
|
8
|
+
/** What blocks the action; takes the button's own label while it is set. */
|
|
8
9
|
readonly error: LocaleKeys | null;
|
|
10
|
+
/**
|
|
11
|
+
* How to get past the error — a card above the button. Taken as a message
|
|
12
|
+
* rather than a node because this component owns the formatter: the numbers
|
|
13
|
+
* a resolution names are `values`, and every caller would otherwise repeat
|
|
14
|
+
* the same `<FormattedMessageTyped>` wrapper.
|
|
15
|
+
*/
|
|
16
|
+
readonly tip?: FormattedMessageTypedProps;
|
|
9
17
|
readonly onClick: () => void;
|
|
10
18
|
readonly label?: LocaleKeys;
|
|
11
19
|
}
|
|
12
|
-
/**
|
|
13
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The single primary action of every dialog: review, then confirm in Verify.
|
|
22
|
+
*
|
|
23
|
+
* A blocked action says so on the button itself, and says what to do about it
|
|
24
|
+
* above — the arrangement the confirm screen already uses, so a dialog and its
|
|
25
|
+
* confirmation report the same refusal the same way.
|
|
26
|
+
*/
|
|
27
|
+
export declare function ReviewButton({ disabled, error, tip, onClick, label, }: ReviewButtonProps): React.ReactElement;
|
|
@@ -3,10 +3,20 @@ import { TitleText } from '../text';
|
|
|
3
3
|
import { StatBadgeTest } from './constants';
|
|
4
4
|
export { StatBadgeTest };
|
|
5
5
|
export type StatBadgeSize = "sm" | "md" | "default";
|
|
6
|
+
export interface StatBadgeDelta {
|
|
7
|
+
/** Formatted change, e.g. `"12.50%"`. Sign is taken from `value`, not this string. */
|
|
8
|
+
readonly label: ReactNode;
|
|
9
|
+
/** Signed change; `> 0` is success, `< 0` is destructive. */
|
|
10
|
+
readonly value: number;
|
|
11
|
+
/** Period hint shown on hover, e.g. `"7D"`. */
|
|
12
|
+
readonly tooltip?: ReactNode;
|
|
13
|
+
}
|
|
6
14
|
export interface StatBadgeProps {
|
|
7
15
|
/** A messageId (formatted here) or a node. */
|
|
8
16
|
readonly title: TitleText;
|
|
9
17
|
readonly value: React.ReactNode;
|
|
18
|
+
/** Optional change chip in the top-right of the card. Hidden while `isLoading`. */
|
|
19
|
+
readonly delta?: StatBadgeDelta;
|
|
10
20
|
/** Optional control in the top-right of the card, e.g. a Claim button. */
|
|
11
21
|
readonly action?: ReactNode;
|
|
12
22
|
readonly className?: string;
|
|
@@ -16,7 +26,7 @@ export interface StatBadgeProps {
|
|
|
16
26
|
readonly testId?: string;
|
|
17
27
|
readonly size?: StatBadgeSize;
|
|
18
28
|
}
|
|
19
|
-
export declare function StatBadge({ title, value, isLoading, size, action, className, testId, }: StatBadgeProps): React.ReactElement;
|
|
29
|
+
export declare function StatBadge({ title, value, isLoading, size, delta, action, className, testId, }: StatBadgeProps): React.ReactElement;
|
|
20
30
|
export interface StatBadgeGridProps {
|
|
21
31
|
readonly cols?: 1 | 2 | 3 | 4;
|
|
22
32
|
readonly colsLg?: 1 | 2 | 3 | 4;
|
package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts
CHANGED
|
@@ -1,17 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Leverage, StrategyOpportunity } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { StrategyApyBreakdownCardTest } from './constants';
|
|
4
4
|
export { StrategyApyBreakdownCardTest };
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
/**
|
|
6
|
+
* What the card reads off a strategy: the seven-day feed, and the liquidation
|
|
7
|
+
* threshold the quota is weighted by.
|
|
8
|
+
*
|
|
9
|
+
* A slice of the SDK type rather than a shape of its own, so a caller hands
|
|
10
|
+
* over the opportunity it already holds and the card states what it reads.
|
|
11
|
+
*/
|
|
12
|
+
export type StrategyApyBreakdownSlice = Pick<StrategyOpportunity, "borrowApyAvg7D" | "quotaRateAvg7D" | "liquidationThreshold" | "collateralApyAvg7D">;
|
|
11
13
|
export interface StrategyApyBreakdownCardProps {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
/** The strategy being broken down; every figure is derived from it. */
|
|
15
|
+
readonly data: StrategyApyBreakdownSlice;
|
|
16
|
+
/** Leverage every figure below is quoted at. */
|
|
17
|
+
readonly leverage: Leverage;
|
|
18
|
+
/**
|
|
19
|
+
* Multiplier caption under each figure — `11.18 × 3.11%` and the like.
|
|
20
|
+
*
|
|
21
|
+
* On beside a chart, where the card is the derivation and there is room for
|
|
22
|
+
* it. Off in a tooltip, where it is a glance.
|
|
23
|
+
*/
|
|
24
|
+
readonly showFormula?: boolean;
|
|
25
|
+
/** When `"7d"`, labels carry the averaging-window suffix. */
|
|
26
|
+
readonly period?: "7d";
|
|
15
27
|
}
|
|
16
|
-
/**
|
|
17
|
-
|
|
28
|
+
/**
|
|
29
|
+
* How a strategy's net APY is arrived at: collateral yield on the leveraged
|
|
30
|
+
* position, less what the credit behind it costs.
|
|
31
|
+
*
|
|
32
|
+
* The card is handed a strategy and a leverage and derives the rest, because
|
|
33
|
+
* every figure it shows is a figure only this card asks for. **N** and **B**
|
|
34
|
+
* come from the SDK — `calcNetStrategyApy` and `calcEffectiveBorrowApy`, the
|
|
35
|
+
* same two the badge and the list cell are quoting — and the collateral row is
|
|
36
|
+
* their sum, which is exactly `round(leverage × collateralApy)` because the SDK
|
|
37
|
+
* subtracts an integer `B` inside its own rounding. Deriving the third value
|
|
38
|
+
* instead of recomputing it is what makes `N = C − B` hold to the basis point
|
|
39
|
+
* rather than approximately.
|
|
40
|
+
*
|
|
41
|
+
* Incentive rows are levered individually and the collateral row takes the
|
|
42
|
+
* remainder, so the column adds up to the chip even when each reward rounds
|
|
43
|
+
* its own way.
|
|
44
|
+
*/
|
|
45
|
+
export declare function StrategyApyBreakdownCard({ data, leverage, showFormula, period, }: StrategyApyBreakdownCardProps): React.ReactElement;
|
|
@@ -10,8 +10,8 @@ export interface TabberSectionProps {
|
|
|
10
10
|
readonly actions?: React.ReactNode;
|
|
11
11
|
readonly children?: React.ReactNode;
|
|
12
12
|
/**
|
|
13
|
-
* Render this section above the sticky tab bar (overview badges). The
|
|
14
|
-
*
|
|
13
|
+
* Render this section above the sticky tab bar (overview badges). The
|
|
14
|
+
* section is not listed in the bar; scroll-spy tracks only sections below it.
|
|
15
15
|
*/
|
|
16
16
|
readonly beforeBar?: boolean;
|
|
17
17
|
/** Skip the in-section h2 — overview has badges, not a heading. */
|
|
@@ -11,6 +11,13 @@ export interface TimeToLiquidationBlockProps {
|
|
|
11
11
|
readonly data?: bigint | null;
|
|
12
12
|
/** Time after the operation; renders a from → to transition. */
|
|
13
13
|
readonly dataTo?: bigint | null;
|
|
14
|
+
/**
|
|
15
|
+
* Prefixes the figure with {@link APPROXIMATE_SYMBOL}, for a value the
|
|
16
|
+
* operation projects rather than promises. Only the projected side is
|
|
17
|
+
* marked: on a `from → to` row the "from" is where the account stands now,
|
|
18
|
+
* which is measured, not estimated.
|
|
19
|
+
*/
|
|
20
|
+
readonly approximate?: boolean;
|
|
14
21
|
/** Pre-computed zone; if not set, derived from the value. */
|
|
15
22
|
readonly zone?: TTLZones;
|
|
16
23
|
readonly isLoading?: boolean;
|
|
@@ -24,4 +31,4 @@ export interface TimeToLiquidationBlockProps {
|
|
|
24
31
|
* "Time to liquidation" row of a preview: label + help tip, the remaining
|
|
25
32
|
* time as `Nmo` / `Nd` / `<1d` with a zone dot, optionally from → to.
|
|
26
33
|
*/
|
|
27
|
-
export declare function TimeToLiquidationBlock({ data, dataTo, zone, isLoading, title, tip, testId, }: TimeToLiquidationBlockProps): React.ReactElement;
|
|
34
|
+
export declare function TimeToLiquidationBlock({ data, dataTo, approximate, zone, isLoading, title, tip, testId, }: TimeToLiquidationBlockProps): React.ReactElement;
|