@gearbox-protocol/ui-kit 4.0.0-next.3 → 4.0.0-next.30
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 -0
- package/dist/cjs/components/badge/index.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/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/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/leverage-preset-chips/constants.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/index.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -0
- 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/constants.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/page-title/index.cjs +1 -1
- package/dist/cjs/components/base/page-title/page-title.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/side-card/side-card.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/sticky-bar/sticky-bar.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/constants.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/pnl-value.cjs +1 -1
- package/dist/cjs/components/base/values/points-value.cjs +1 -0
- package/dist/cjs/components/base/values/position-status-badge.cjs +1 -0
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- 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 -0
- package/dist/cjs/components/base-table/base-table.cjs +1 -0
- package/dist/cjs/components/base-table/constants.cjs +1 -0
- package/dist/cjs/components/base-table/index.cjs +1 -0
- 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/navigation-button/navigation-button.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-call/expandable-call.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.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/checkbox-item/checkbox-item.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/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/constants.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/index.cjs +1 -0
- 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/constants.cjs +1 -0
- package/dist/cjs/components/composites/pool-assets-table/index.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/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/dialog/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.cjs +1 -0
- 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/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-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.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-checkbox-item.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-radio-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.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/error-message.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/filter/filter-block.cjs +1 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/filter/filter-chips.cjs +1 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-group.cjs +1 -1
- package/dist/cjs/components/filter/filter-label.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal.cjs +1 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-separator.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 -0
- package/dist/cjs/components/hf-indicator/index.cjs +1 -0
- 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/index.cjs +1 -1
- package/dist/cjs/components/infinite-scroll/index.cjs +1 -0
- package/dist/cjs/components/infinite-scroll/infinite-scroll-wrapper.cjs +1 -0
- 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/link/link.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/name-cell/index.cjs +1 -0
- package/dist/cjs/components/name-cell/name-cell.cjs +1 -0
- 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/network-icon/network-indicator.cjs +1 -0
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/rounded-image/rounded-image.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-dot/status-dot.cjs +1 -1
- package/dist/cjs/components/status-elements/status-elements.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/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/tip-card/tip-card.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/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/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/with-title/with-title.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/tailwind-preset.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-observed-width-key.cjs +1 -0
- 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/format-asset-amount.cjs +1 -1
- package/dist/cjs/utils/format-leverage.cjs +1 -0
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/format-slippage.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/leverage-presets.cjs +1 -0
- package/dist/cjs/utils/parse-input-to-bn.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/_virtual/index.js +1 -1
- package/dist/esm/components/accordion/accordion.js +1 -1
- package/dist/esm/components/alert-badge/alert-badge.js +1 -1
- package/dist/esm/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/esm/components/alert-modal/alert-modal.js +1 -1
- package/dist/esm/components/app-bar/app-bar.js +1 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +162 -160
- package/dist/esm/components/badge/badge.js +15 -9
- package/dist/esm/components/badge/chip.js +47 -0
- package/dist/esm/components/badge/index.js +8 -3
- package/dist/esm/components/base/amount-input/token-select-panel.js +34 -38
- 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 +5 -3
- package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +6 -6
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +27 -28
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +1 -1
- package/dist/esm/components/base/health-factor-block/health-factor-block.js +25 -25
- package/dist/esm/components/base/history-chart/history-chart.js +84 -42
- package/dist/esm/components/base/index.js +154 -140
- package/dist/esm/components/base/info-list/index.js +5 -4
- package/dist/esm/components/base/info-list/info-list.js +52 -27
- package/dist/esm/components/base/leverage-input/leverage-input.js +26 -30
- package/dist/esm/components/base/leverage-preset-chips/constants.js +7 -0
- package/dist/esm/components/base/leverage-preset-chips/index.js +6 -0
- package/dist/esm/components/base/leverage-preset-chips/leverage-preset-chips.js +39 -0
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +1 -1
- package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +33 -28
- package/dist/esm/components/base/manage-pane/constants.js +3 -2
- package/dist/esm/components/base/manage-pane/manage-pane.js +154 -113
- package/dist/esm/components/base/page-title/index.js +5 -4
- package/dist/esm/components/base/page-title/page-title.js +31 -23
- 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 +110 -47
- package/dist/esm/components/base/position-assets/constants.js +8 -0
- package/dist/esm/components/base/position-assets/index.js +6 -0
- package/dist/esm/components/base/position-assets/position-assets.js +96 -0
- package/dist/esm/components/base/review-button/constants.js +3 -2
- package/dist/esm/components/base/review-button/review-button.js +35 -22
- package/dist/esm/components/base/section-heading/section-heading.js +1 -1
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +1 -1
- package/dist/esm/components/base/side-card/side-card.js +1 -1
- package/dist/esm/components/base/stack/stack.js +1 -1
- package/dist/esm/components/base/stat-badge/constants.js +1 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +92 -48
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +1 -1
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +8 -3
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +158 -41
- package/dist/esm/components/base/tabber/tabber.js +67 -64
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +31 -31
- package/dist/esm/components/base/title-meta/constants.js +1 -0
- package/dist/esm/components/base/title-meta/title-meta.js +48 -28
- package/dist/esm/components/base/token-amount/token-amount.js +16 -15
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +1 -1
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +20 -16
- package/dist/esm/components/base/values/pnl-value.js +1 -1
- package/dist/esm/components/base/values/points-value.js +30 -0
- package/dist/esm/components/base/values/position-status-badge.js +26 -0
- package/dist/esm/components/base/values/position-type-badge.js +8 -7
- package/dist/esm/components/base/values/scalars.js +61 -35
- package/dist/esm/components/base-link/base-link.js +1 -1
- package/dist/esm/components/base-table/base-table-line.js +117 -0
- package/dist/esm/components/base-table/base-table.js +110 -0
- package/dist/esm/components/base-table/constants.js +12 -0
- package/dist/esm/components/base-table/index.js +9 -0
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/esm/components/buttons/back-button/back-button.js +1 -1
- package/dist/esm/components/buttons/button/button.js +1 -1
- package/dist/esm/components/buttons/copy-button/copy-button.js +1 -1
- package/dist/esm/components/buttons/external-button/external-button.js +1 -1
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +1 -1
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +1 -1
- package/dist/esm/components/cards/card/card.js +1 -1
- package/dist/esm/components/cards/expandable-call/expandable-call.js +1 -1
- package/dist/esm/components/cards/expandable-card/expandable-card.js +1 -1
- package/dist/esm/components/checkbox/checkbox-labeled.js +26 -21
- package/dist/esm/components/checkbox/checkbox.js +1 -1
- package/dist/esm/components/checkbox-item/checkbox-item.js +1 -1
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +1 -1
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +1 -1
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +26 -21
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +71 -0
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +102 -0
- package/dist/esm/components/collateral-allocation-tooltip/constants.js +12 -0
- package/dist/esm/components/collateral-allocation-tooltip/index.js +9 -0
- package/dist/esm/components/composites/index.js +31 -31
- package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
- package/dist/esm/components/composites/pool-assets-table/constants.js +9 -0
- package/dist/esm/components/composites/pool-assets-table/index.js +8 -6
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +52 -30
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +111 -78
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -26
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +51 -40
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +115 -60
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +10 -7
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +8 -10
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js +1 -0
- package/dist/esm/components/composites/tx-preview/confirm/index.js +24 -26
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +1 -1
- package/dist/esm/components/composites/tx-preview/index.js +24 -26
- package/dist/esm/components/compound-apy/compound-apy.js +91 -83
- package/dist/esm/components/confirm-menu/confirm-menu.js +1 -1
- package/dist/esm/components/detailed-apy/detailed-apy.js +1 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +1 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +51 -42
- package/dist/esm/components/dialog/dialog-container.js +1 -1
- package/dist/esm/components/dialog/dialog-content.js +1 -1
- package/dist/esm/components/dialog/dialog-description.js +1 -1
- package/dist/esm/components/dialog/dialog-footer.js +1 -1
- package/dist/esm/components/dialog/dialog-form.js +1 -1
- package/dist/esm/components/dialog/dialog-header.js +1 -1
- package/dist/esm/components/dialog/dialog-modal-container.js +1 -1
- package/dist/esm/components/dialog/dialog-overlay.js +1 -1
- package/dist/esm/components/dialog/dialog-title.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +1 -1
- package/dist/esm/components/edit-input/edit-input.js +1 -1
- package/dist/esm/components/error-message/error-line-message.js +1 -1
- package/dist/esm/components/error-message/error-message.js +1 -1
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +1 -1
- package/dist/esm/components/filter/filter-block.js +1 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +1 -1
- package/dist/esm/components/filter/filter-chip.js +2 -1
- package/dist/esm/components/filter/filter-chips.js +1 -1
- package/dist/esm/components/filter/filter-dropdown-item.js +1 -1
- package/dist/esm/components/filter/filter-group.js +1 -1
- package/dist/esm/components/filter/filter-label.js +1 -1
- package/dist/esm/components/filter/filter-modal-item.js +1 -1
- package/dist/esm/components/filter/filter-modal.js +1 -1
- package/dist/esm/components/filter/filter-radio-item.js +1 -1
- package/dist/esm/components/filter/filter-separator.js +1 -1
- package/dist/esm/components/formatted-number/formatted-number.js +1 -1
- package/dist/esm/components/graph/default-config.js +47 -25
- package/dist/esm/components/graph/formatters.js +127 -122
- 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 +72 -88
- package/dist/esm/components/graph/graph.js +587 -536
- package/dist/esm/components/graph/index.js +32 -27
- package/dist/esm/components/graph/y-axis-scale.js +112 -0
- package/dist/esm/components/head-cell/head-cell.js +1 -1
- package/dist/esm/components/health-factor/health-factor.js +1 -1
- package/dist/esm/components/help-tip/help-tip.js +1 -1
- package/dist/esm/components/hf-indicator/hf-indicator.js +59 -0
- package/dist/esm/components/hf-indicator/index.js +4 -0
- package/dist/esm/components/icon-button/icon-button.js +1 -1
- package/dist/esm/components/icons/fa-icon.js +1 -1
- package/dist/esm/components/index.js +751 -699
- package/dist/esm/components/infinite-scroll/index.js +4 -0
- package/dist/esm/components/infinite-scroll/infinite-scroll-wrapper.js +30 -0
- package/dist/esm/components/input/input.js +1 -1
- package/dist/esm/components/label/label.js +1 -1
- package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
- package/dist/esm/components/link/link.js +1 -1
- package/dist/esm/components/loader/loader.js +1 -1
- package/dist/esm/components/loading-bar/loading-bar.js +1 -1
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/name-cell/index.js +4 -0
- package/dist/esm/components/name-cell/name-cell.js +35 -0
- package/dist/esm/components/navbar-logo/navbar-logo.js +1 -1
- package/dist/esm/components/network-icon/index.js +4 -2
- package/dist/esm/components/network-icon/network-indicator.js +82 -0
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +1 -1
- package/dist/esm/components/rounded-image/rounded-image.js +1 -1
- 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 +59 -0
- package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
- package/dist/esm/components/search-line/search-line.js +1 -1
- package/dist/esm/components/segmented-control/segmented-control.js +1 -1
- package/dist/esm/components/select/select.js +1 -1
- package/dist/esm/components/separate-line/separate-line.js +1 -1
- package/dist/esm/components/short-string/short-string.js +1 -1
- package/dist/esm/components/simple-accordion/simple-accordion.js +1 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +1 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +1 -1
- package/dist/esm/components/skeleton/skeleton-stack.js +1 -1
- package/dist/esm/components/skeleton/skeleton.js +1 -1
- package/dist/esm/components/slider/constants.js +6 -0
- package/dist/esm/components/slider/index.js +29 -26
- package/dist/esm/components/slider/slider-track.js +19 -17
- package/dist/esm/components/slider/slider-utils.js +37 -20
- package/dist/esm/components/slider/slider.js +54 -52
- package/dist/esm/components/spinner/spinner.js +1 -1
- package/dist/esm/components/spinner-loader/spinner-loader.js +1 -1
- package/dist/esm/components/split-list/split-list.js +1 -1
- package/dist/esm/components/status-dot/status-dot.js +1 -1
- package/dist/esm/components/status-elements/status-elements.js +1 -1
- package/dist/esm/components/tab-control/tab-control.js +1 -1
- package/dist/esm/components/table/grid-loading-line.js +1 -1
- package/dist/esm/components/table/table-sm.js +1 -1
- package/dist/esm/components/table/table.js +1 -1
- package/dist/esm/components/tabs/tabs.js +1 -1
- package/dist/esm/components/text-button/text-button.js +1 -1
- package/dist/esm/components/textarea/textarea.js +1 -1
- package/dist/esm/components/tip-card/tip-card.js +1 -1
- package/dist/esm/components/token-icon/token-icon.js +1 -1
- package/dist/esm/components/token-symbol/token-symbol.js +1 -1
- package/dist/esm/components/token-template/token-template.js +1 -1
- package/dist/esm/components/tooltip/simple-tooltip.js +57 -55
- package/dist/esm/components/tooltip/tooltip.js +1 -1
- package/dist/esm/components/trading-view/trading-view.js +213 -174
- package/dist/esm/components/typography/typography.js +1 -1
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +1 -1
- package/dist/esm/components/vspace/vspace.js +1 -1
- package/dist/esm/components/with-copy/with-copy.js +26 -21
- package/dist/esm/components/with-title/with-title.js +1 -1
- package/dist/esm/components/yield-breakdown-tooltip/index.js +2 -1
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +154 -192
- package/dist/esm/configs/tailwind-preset.js +13 -1
- package/dist/esm/hooks/index.js +20 -18
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +905 -843
- package/dist/esm/locale/en.json.js +39 -24
- 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/format-asset-amount.js +1 -1
- package/dist/esm/utils/format-leverage.js +6 -0
- package/dist/esm/utils/format-money.js +59 -41
- package/dist/esm/utils/format-slippage.js +1 -1
- package/dist/esm/utils/index.js +91 -85
- package/dist/esm/utils/leverage-presets.js +13 -0
- package/dist/esm/utils/parse-input-to-bn.js +1 -1
- package/dist/esm/utils/templates.js +4 -4
- package/dist/globals.css +2 -2
- package/dist/types/components/alert-dialog/alert-dialog.d.ts +2 -2
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +4 -1
- package/dist/types/components/badge/badge.d.ts +3 -2
- package/dist/types/components/badge/chip.d.ts +22 -0
- package/dist/types/components/badge/index.d.ts +1 -0
- 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 +42 -0
- package/dist/types/components/base/apy-breakdown-body/index.d.ts +2 -0
- package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +1 -3
- package/dist/types/components/base/health-factor-block/health-factor-block.d.ts +6 -6
- package/dist/types/components/base/history-chart/history-chart.d.ts +33 -8
- package/dist/types/components/base/index.d.ts +2 -0
- package/dist/types/components/base/info-list/info-list.d.ts +7 -0
- package/dist/types/components/base/info-portal/info-portal.d.ts +1 -1
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +5 -3
- package/dist/types/components/base/leverage-preset-chips/constants.d.ts +4 -0
- package/dist/types/components/base/leverage-preset-chips/index.d.ts +2 -0
- package/dist/types/components/base/leverage-preset-chips/leverage-preset-chips.d.ts +13 -0
- package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +2 -2
- package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +6 -4
- package/dist/types/components/base/manage-pane/constants.d.ts +1 -0
- package/dist/types/components/base/manage-pane/manage-pane.d.ts +3 -1
- package/dist/types/components/base/page-title/page-title.d.ts +12 -6
- 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 +12 -9
- package/dist/types/components/base/position-assets/constants.d.ts +5 -0
- package/dist/types/components/base/position-assets/index.d.ts +2 -0
- package/dist/types/components/base/position-assets/position-assets.d.ts +55 -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 +6 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +45 -4
- 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 +5 -6
- package/dist/types/components/base/title-meta/constants.d.ts +1 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +9 -1
- package/dist/types/components/base/token-amount/token-amount.d.ts +13 -2
- package/dist/types/components/base/values/constants.d.ts +1 -0
- package/dist/types/components/base/values/index.d.ts +2 -0
- package/dist/types/components/base/values/points-value.d.ts +11 -0
- package/dist/types/components/base/values/position-short-label.d.ts +1 -1
- package/dist/types/components/base/values/position-status-badge.d.ts +7 -0
- package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
- package/dist/types/components/base/values/scalars.d.ts +23 -2
- package/dist/types/components/base-table/base-table-line.d.ts +21 -0
- package/dist/types/components/base-table/base-table.d.ts +19 -0
- package/dist/types/components/base-table/constants.d.ts +8 -0
- package/dist/types/components/base-table/index.d.ts +3 -0
- package/dist/types/components/base-table/types.d.ts +37 -0
- package/dist/types/components/buttons/back-button/back-button.d.ts +1 -1
- package/dist/types/components/buttons/range-buttons/range-buttons.d.ts +1 -1
- package/dist/types/components/cards/danger-zone/danger-zone.d.ts +1 -1
- package/dist/types/components/cards/expandable-call/expandable-call.d.ts +1 -1
- package/dist/types/components/cards/expandable-card/expandable-card.d.ts +1 -1
- package/dist/types/components/collateral-allocation-tooltip/allocation-wheel.d.ts +10 -0
- package/dist/types/components/collateral-allocation-tooltip/collateral-allocation-tooltip.d.ts +23 -0
- package/dist/types/components/collateral-allocation-tooltip/constants.d.ts +8 -0
- package/dist/types/components/collateral-allocation-tooltip/index.d.ts +3 -0
- package/dist/types/components/composites/pool-assets-table/constants.d.ts +6 -0
- package/dist/types/components/composites/pool-assets-table/index.d.ts +1 -0
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-head.d.ts +1 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +10 -9
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +12 -21
- package/dist/types/components/composites/pool-assets-table/types.d.ts +4 -12
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +47 -14
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -19
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +2 -2
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts +98 -0
- package/dist/types/components/compound-apy/compound-apy.d.ts +14 -2
- 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-shortcut.d.ts +1 -1
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/types/components/edit-input/edit-input.d.ts +1 -1
- package/dist/types/components/filter/filter-modal.d.ts +1 -1
- package/dist/types/components/formatted-number/formatted-number.d.ts +1 -1
- package/dist/types/components/graph/default-config.d.ts +23 -0
- package/dist/types/components/graph/formatters.d.ts +11 -2
- package/dist/types/components/graph/graph-view.d.ts +1 -1
- package/dist/types/components/graph/graph.d.ts +16 -4
- package/dist/types/components/graph/y-axis-scale.d.ts +48 -0
- package/dist/types/components/health-factor/health-factor.d.ts +1 -1
- package/dist/types/components/hf-indicator/hf-indicator.d.ts +17 -0
- package/dist/types/components/hf-indicator/index.d.ts +1 -0
- package/dist/types/components/icons/fa-icon.d.ts +1 -1
- package/dist/types/components/index.d.ts +6 -1
- package/dist/types/components/infinite-scroll/index.d.ts +1 -0
- package/dist/types/components/infinite-scroll/infinite-scroll-wrapper.d.ts +11 -0
- package/dist/types/components/layout/app-footer/app-footer.d.ts +9 -15
- package/dist/types/components/legal-agreement/legal-agreement-dialog.d.ts +2 -2
- package/dist/types/components/loading/loading.d.ts +1 -1
- package/dist/types/components/name-cell/index.d.ts +1 -0
- package/dist/types/components/name-cell/name-cell.d.ts +13 -0
- package/dist/types/components/navbar-logo/navbar-logo.d.ts +1 -1
- package/dist/types/components/navigation-context/navigation-context.d.ts +1 -1
- package/dist/types/components/network-icon/index.d.ts +1 -0
- package/dist/types/components/network-icon/network-icon.d.ts +1 -1
- package/dist/types/components/network-icon/network-indicator.d.ts +23 -0
- package/dist/types/components/pool-points-indicator/pool-points-indicator.d.ts +1 -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/select/select.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 +27 -0
- package/dist/types/components/status-elements/status-elements.d.ts +2 -2
- package/dist/types/components/tab-control/tab-control.d.ts +2 -2
- package/dist/types/components/table/grid-loading-line.d.ts +1 -1
- package/dist/types/components/table/table-loader.d.ts +1 -1
- package/dist/types/components/table/table-sm.d.ts +2 -2
- package/dist/types/components/theme-provider.d.ts +1 -1
- package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
- package/dist/types/components/token-template/token-template.d.ts +1 -1
- package/dist/types/components/tooltip/simple-tooltip.d.ts +1 -1
- package/dist/types/components/trading-view/trading-view.d.ts +19 -8
- package/dist/types/components/typed-intl/index.d.ts +1 -1
- package/dist/types/components/with-title/with-title.d.ts +1 -1
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +30 -10
- package/dist/types/configs/tailwind-preset.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/use-hf.d.ts +1 -1
- package/dist/types/hooks/use-observed-width-key.d.ts +8 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/locale/en.json.d.ts +41 -24
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/format-leverage.d.ts +5 -0
- package/dist/types/utils/format-money.d.ts +11 -5
- package/dist/types/utils/index.d.ts +4 -2
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/dist/types/utils/network-icons.d.ts +1 -1
- package/package.json +23 -23
- package/src/styles/base.css +30 -0
- package/src/styles/theme.css +16 -0
- 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/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.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/esm/components/block-sync-pill/block-sync-pill.js +0 -206
- 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/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -176
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/esm/node_modules/.pnpm/tailwindcss@4.1.17/node_modules/tailwindcss/dist/flatten-color-palette.js +0 -363
- 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/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +0 -17
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +0 -16
- package/dist/types/types/footer.d.ts +0 -51
- /package/dist/cjs/{types/footer.cjs → components/base-table/types.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/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/{types/footer.js → components/base-table/types.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/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
|
@@ -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>>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { Address } from 'viem';
|
|
4
|
+
import { CollateralAllocation } from '../collateral-allocation-tooltip';
|
|
4
5
|
type Mode = "default" | "cascade";
|
|
5
6
|
interface CommonOptions {
|
|
6
7
|
mode?: Mode;
|
|
7
8
|
showIconTooltip?: boolean;
|
|
8
9
|
otherTooltip?: React.ReactNode;
|
|
9
10
|
onOtherClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
/** When set, hover on the cascade shows the allocation mix instead of per-icon symbols. */
|
|
12
|
+
allocation?: CollateralAllocation;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* Single asset cell props (new API)
|
|
@@ -148,5 +151,5 @@ export type AssetsListCellProps = SingleAssetCellProps | MultiAssetCellProps | T
|
|
|
148
151
|
* />
|
|
149
152
|
* ```
|
|
150
153
|
*/
|
|
151
|
-
export declare function AssetsListCell(props: AssetsListCellProps):
|
|
154
|
+
export declare function AssetsListCell(props: AssetsListCellProps): React.JSX.Element;
|
|
152
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" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
4
|
+
variant?: "default" | "success" | "warning" | "destructive" | "secondary" | "info" | "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.
|
|
@@ -15,6 +15,7 @@ declare const badgeVariants: (props?: ({
|
|
|
15
15
|
* - `secondary` — secondary badge with muted background.
|
|
16
16
|
* - `destructive` — destructive badge with red background for errors/warnings.
|
|
17
17
|
* - `outline` — outlined badge with border only.
|
|
18
|
+
* - `success` / `info` / `warning` / `danger` / `accent` / `neutral` — tinted chips.
|
|
18
19
|
*
|
|
19
20
|
* Note: Prefer using this component instead of native HTML div element for badges.
|
|
20
21
|
*
|
|
@@ -24,5 +25,5 @@ declare const badgeVariants: (props?: ({
|
|
|
24
25
|
*/
|
|
25
26
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
26
27
|
}
|
|
27
|
-
declare function Badge({ className, variant, ...props }: BadgeProps):
|
|
28
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
|
|
28
29
|
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export declare class ChipTest {
|
|
3
|
+
static root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class ChipsTest {
|
|
6
|
+
static root: string;
|
|
7
|
+
static chip: string;
|
|
8
|
+
}
|
|
9
|
+
export type ChipTone = "success" | "info" | "neutral" | "warning" | "danger" | "accent";
|
|
10
|
+
export interface ChipProps {
|
|
11
|
+
readonly children?: ReactNode;
|
|
12
|
+
readonly tone?: ChipTone;
|
|
13
|
+
readonly className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Tinted {@link Badge} for table/status chips. */
|
|
16
|
+
export declare function Chip({ children, tone, className, }: ChipProps): React.ReactElement;
|
|
17
|
+
export interface ChipsProps {
|
|
18
|
+
readonly children: ReactNode;
|
|
19
|
+
readonly className?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Horizontal row of {@link Chip} (or other badge nodes). */
|
|
22
|
+
export declare function Chips({ children, className }: ChipsProps): React.ReactElement;
|
|
@@ -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,42 @@
|
|
|
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. */
|
|
20
|
+
readonly chip: string;
|
|
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
|
+
readonly value: string;
|
|
35
|
+
readonly subtext?: React.ReactNode;
|
|
36
|
+
readonly muted?: boolean;
|
|
37
|
+
readonly testId?: string;
|
|
38
|
+
readonly valueTestId?: string;
|
|
39
|
+
readonly captionTestId?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function ApyBreakdownRow({ label, value, subtext, muted, testId, valueTestId, captionTestId, }: ApyBreakdownRowProps): React.ReactElement;
|
|
42
|
+
export declare function ApyBreakdownDivider(): React.ReactElement;
|
|
@@ -9,8 +9,6 @@ export interface DetailedPageTitleProps {
|
|
|
9
9
|
/** Visible heading; a node (e.g. a token-pair title) renders as given. */
|
|
10
10
|
readonly title: PageTitleText | React.ReactNode;
|
|
11
11
|
readonly browserTitle?: PageTitleText;
|
|
12
|
-
/** Document-head hook forwarded to {@link PageTitle}. */
|
|
13
|
-
readonly head?: (browserTitle: string) => React.ReactNode;
|
|
14
12
|
/**
|
|
15
13
|
* Token whose icon heads the title. The model `Token` is enough — the icon
|
|
16
14
|
* is resolved from the symbol inside ui-kit.
|
|
@@ -29,4 +27,4 @@ export interface DetailedPageTitleProps {
|
|
|
29
27
|
readonly className?: string;
|
|
30
28
|
}
|
|
31
29
|
/** Detail screen heading: token icon + title + badges + copy/explorer actions. */
|
|
32
|
-
export declare function DetailedPageTitle({ title, browserTitle,
|
|
30
|
+
export declare function DetailedPageTitle({ title, browserTitle, token, icon, tokenIconSize, disabled, toCopy, explorerLinks, badges, actions, buttonsSlot, meta, actionsPosition, className, }: DetailedPageTitleProps): React.ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { Bps } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { TitleText } from '../text';
|
|
3
4
|
import { HFZones } from '../../health-factor';
|
|
4
5
|
import { HealthFactorBlockTest } from './constants';
|
|
5
6
|
export { HealthFactorBlockTest };
|
|
6
7
|
export interface HealthFactorBlockProps {
|
|
7
|
-
/**
|
|
8
|
-
readonly
|
|
8
|
+
/** SDK `healthFactor` in basis points (e.g. 15000 = 1.5); omit to render "—". */
|
|
9
|
+
readonly healthFactor?: Bps;
|
|
9
10
|
/** Target HF after the operation; renders a from → to transition. */
|
|
10
|
-
readonly
|
|
11
|
+
readonly healthFactorTo?: Bps;
|
|
11
12
|
/** Debt in base units; a 0n debt renders "N/A". */
|
|
12
13
|
readonly debt: bigint;
|
|
13
14
|
/** Debt after the operation (defaults to `debt`). */
|
|
@@ -23,7 +24,6 @@ export interface HealthFactorBlockProps {
|
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* "Health factor" row of a preview: label + help tip on the left, the zone-
|
|
26
|
-
* colored HF (with optional from → to transition) on the right.
|
|
27
|
-
* the reference `HFBlock` markup on bare value props.
|
|
27
|
+
* colored HF (with optional from → to transition) on the right.
|
|
28
28
|
*/
|
|
29
|
-
export declare function HealthFactorBlock({
|
|
29
|
+
export declare function HealthFactorBlock({ healthFactor, healthFactorTo, debt, debtTo, zone, isLoading, title, tip, testId, }: HealthFactorBlockProps): React.ReactElement;
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartRange, Timestamp } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { TitleText } from '../text';
|
|
3
4
|
import { PriceLineConfig, PriceZoneConfig } from '../../graph';
|
|
4
5
|
import { YMeasureUnits } from '../../graph/formatters';
|
|
5
6
|
import { HistoryChartTest } from './constants';
|
|
6
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
|
+
}
|
|
7
22
|
export interface HistoryChartProps {
|
|
8
|
-
/** One series or several (dual charts)
|
|
23
|
+
/** One series or several (dual charts). */
|
|
9
24
|
readonly data: HistorySeries | ReadonlyArray<HistorySeries> | undefined;
|
|
10
|
-
readonly range:
|
|
11
|
-
readonly onRange: (range:
|
|
25
|
+
readonly range: ChartRange;
|
|
26
|
+
readonly onRange: (range: ChartRange) => void;
|
|
12
27
|
readonly isLoading?: boolean;
|
|
13
28
|
readonly error?: Error;
|
|
14
29
|
/** Y-axis unit ("%", "$", a token symbol); one for all or one per series. */
|
|
@@ -28,10 +43,20 @@ export interface HistoryChartProps {
|
|
|
28
43
|
readonly showCurrentValue?: boolean;
|
|
29
44
|
/** Y-axis floor when the series has data. */
|
|
30
45
|
readonly yScaleMin?: number;
|
|
46
|
+
/** Heading to the left of the range dropdown, above the chart frame. */
|
|
47
|
+
readonly title?: TitleText;
|
|
48
|
+
/** Controls to the left of the range dropdown (e.g. leverage chips). */
|
|
49
|
+
readonly trailing?: React.ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Force a second Y-axis. When omitted, the chart splits axes only if
|
|
52
|
+
* `yMeasureUnit` lists more than one distinct unit. Same-unit series share
|
|
53
|
+
* one scale and show its labels.
|
|
54
|
+
*/
|
|
55
|
+
readonly dualYAxis?: boolean;
|
|
31
56
|
}
|
|
32
57
|
/**
|
|
33
|
-
* Design-only history chart on the TradingView engine: range
|
|
34
|
-
* tooltips, optional reference lines and zones. Takes the SDK's
|
|
35
|
-
* `HistorySeries` as it comes — points are mapped 1:1, no fetching.
|
|
58
|
+
* Design-only history chart on the TradingView engine: range dropdown, legend
|
|
59
|
+
* below the frame, tooltips, optional reference lines and zones. Takes the SDK's
|
|
60
|
+
* a `HistorySeries` as it comes — points are mapped 1:1, no fetching.
|
|
36
61
|
*/
|
|
37
|
-
export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, showCurrentValue, yScaleMin, }: HistoryChartProps): React.ReactElement;
|
|
62
|
+
export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, showCurrentValue, yScaleMin, title, trailing, dualYAxis: dualYAxisProp, }: HistoryChartProps): React.ReactElement;
|
|
@@ -8,6 +8,7 @@ export * from './history-chart';
|
|
|
8
8
|
export * from './info-list';
|
|
9
9
|
export * from './info-portal';
|
|
10
10
|
export * from './leverage-input';
|
|
11
|
+
export * from './leverage-preset-chips';
|
|
11
12
|
export * from './liquidation-params-table';
|
|
12
13
|
export * from './liquidation-price-block';
|
|
13
14
|
export * from './manage-pane';
|
|
@@ -15,6 +16,7 @@ export * from './more-accordion';
|
|
|
15
16
|
export * from './nested-info-stack';
|
|
16
17
|
export * from './page-title';
|
|
17
18
|
export * from './pool-apy-breakdown-card';
|
|
19
|
+
export * from './position-assets';
|
|
18
20
|
export * from './review-button';
|
|
19
21
|
export * from './section-heading';
|
|
20
22
|
export * from './segmented-tabs';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApyBreakdown } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { TitleText } from '../text';
|
|
3
4
|
import { InfoListTest } from './constants';
|
|
@@ -24,3 +25,9 @@ export interface InfoSectionTitleProps {
|
|
|
24
25
|
}
|
|
25
26
|
/** Uppercase section label inside an `InfoList` (e.g. debt limits). */
|
|
26
27
|
export declare function InfoSectionTitle({ title, }: InfoSectionTitleProps): React.ReactElement;
|
|
28
|
+
export interface PointsInfoLineProps {
|
|
29
|
+
readonly data: ApyBreakdown | undefined;
|
|
30
|
+
readonly title?: TitleText;
|
|
31
|
+
}
|
|
32
|
+
/** Points row that omits itself when the SDK breakdown has no programs. */
|
|
33
|
+
export declare function PointsInfoLine({ data, title, }: PointsInfoLineProps): React.ReactElement | null;
|
|
@@ -3,6 +3,6 @@ import { default as React, PropsWithChildren } from 'react';
|
|
|
3
3
|
* Lets a deeply nested child render information into a slot reserved higher up
|
|
4
4
|
* (e.g. a dialog's projection into the manage pane's card top).
|
|
5
5
|
*/
|
|
6
|
-
export declare function InfoPortalProvider({ children }: PropsWithChildren<object>):
|
|
6
|
+
export declare function InfoPortalProvider({ children }: PropsWithChildren<object>): React.JSX.Element;
|
|
7
7
|
/** The slot inside the pane card where portal content appears. */
|
|
8
8
|
export declare function InfoPortalOut(): React.ReactElement;
|
|
@@ -25,8 +25,10 @@ export interface LeverageInputProps {
|
|
|
25
25
|
/** When set, renders a "Reset" button with a tooltip next to the value. */
|
|
26
26
|
readonly reset?: LeverageInputResetProps;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
28
|
+
* The reachable leverages, in leverage units (e.g. `{start: 1, end: 3}`),
|
|
29
|
+
* scaled to the slider's integer space internally. Omitted or empty leaves
|
|
30
|
+
* the track unmarked — which is what an unknown range looks like, not a
|
|
31
|
+
* full one.
|
|
30
32
|
*/
|
|
31
33
|
readonly colorIntervals?: ReadonlyArray<ColorInterval>;
|
|
32
34
|
/** Label of the highlighted interval range under the slider. */
|
|
@@ -35,7 +37,7 @@ export interface LeverageInputProps {
|
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* Target leverage of a position, bounded by what the strategy allows.
|
|
38
|
-
* Title row carries an inline-editable value (
|
|
40
|
+
* Title row carries an inline-editable value (`N.NNx`) and an optional reset;
|
|
39
41
|
* the slider below can show risk bands via `colorIntervals`.
|
|
40
42
|
*/
|
|
41
43
|
export declare function LeverageInput({ value, onChange, max, min, title, hint, reset, colorIntervals, colorIntervalLabel, size, }: LeverageInputProps): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LeveragePresetChipsTest } from './constants';
|
|
3
|
+
export { LeveragePresetChipsTest };
|
|
4
|
+
export interface LeveragePresetChipsProps {
|
|
5
|
+
readonly options: readonly number[];
|
|
6
|
+
readonly value?: number;
|
|
7
|
+
readonly onChange: (value: number) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Leverage step pills for the yield-chart toolbar. Selected leverage only
|
|
11
|
+
* drives the APY breakdown card, not the chart series.
|
|
12
|
+
*/
|
|
13
|
+
export declare function LeveragePresetChips({ options, value, onChange, }: LeveragePresetChipsProps): React.ReactElement | null;
|
|
@@ -6,7 +6,7 @@ export interface LiquidationParamsTableProps {
|
|
|
6
6
|
readonly data: Pick<StrategyOpportunity, "liquidationThreshold" | "liquidationPremium" | "liquidationFee">;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Single-row liquidation parameters.
|
|
10
|
-
* of two SDK values.
|
|
9
|
+
* Single-row liquidation parameters. Discount is premium + fee, a
|
|
10
|
+
* presentation of two SDK values.
|
|
11
11
|
*/
|
|
12
12
|
export declare function LiquidationParamsTable({ data, }: LiquidationParamsTableProps): React.ReactElement;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Token } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { TitleText } from '../text';
|
|
3
4
|
import { HFZones } from '../../health-factor';
|
|
@@ -11,8 +12,10 @@ export interface LiquidationPriceBlockProps {
|
|
|
11
12
|
readonly price?: bigint | null;
|
|
12
13
|
/** Price after the operation; renders a from → to transition. */
|
|
13
14
|
readonly priceTo?: bigint | null;
|
|
14
|
-
/**
|
|
15
|
-
readonly
|
|
15
|
+
/** Collateral token of the quoted pair. */
|
|
16
|
+
readonly collateral?: Token | null;
|
|
17
|
+
/** Underlying token of the quoted pair. */
|
|
18
|
+
readonly underlying?: Token;
|
|
16
19
|
/** Zone dot next to the price. */
|
|
17
20
|
readonly zone?: HFZones;
|
|
18
21
|
readonly isLoading?: boolean;
|
|
@@ -25,6 +28,5 @@ export interface LiquidationPriceBlockProps {
|
|
|
25
28
|
/**
|
|
26
29
|
* "Liquidation price" row of a preview: label + help tip, the formatted price
|
|
27
30
|
* (with optional from → to and zone dot), and the price pair underneath.
|
|
28
|
-
* Design only — the reference `LiquidationPriceBlock` markup on value props.
|
|
29
31
|
*/
|
|
30
|
-
export declare function LiquidationPriceBlock({ price, priceTo,
|
|
32
|
+
export declare function LiquidationPriceBlock({ price, priceTo, collateral, underlying, zone, isLoading, title, tip, testId, }: LiquidationPriceBlockProps): React.ReactElement;
|
|
@@ -24,7 +24,9 @@ export interface ManagePaneActionTabProps {
|
|
|
24
24
|
readonly id: string;
|
|
25
25
|
readonly title: TitleText;
|
|
26
26
|
/** Fires without changing the active tab (e.g. "My positions"). */
|
|
27
|
-
readonly onClick
|
|
27
|
+
readonly onClick?: () => void;
|
|
28
|
+
/** When set, a click opens this content in a dialog instead of switching tabs. */
|
|
29
|
+
readonly children?: React.ReactNode;
|
|
28
30
|
}
|
|
29
31
|
export declare function ManagePaneActionTab(_props: ManagePaneActionTabProps): null;
|
|
30
32
|
export interface ManagePaneProps {
|
|
@@ -3,6 +3,17 @@ import { FormatMessageTypedProps } from '../../typed-intl';
|
|
|
3
3
|
import { PageTitleTest } from './constants';
|
|
4
4
|
export { PageTitleTest };
|
|
5
5
|
export type PageTitleText = FormatMessageTypedProps | string;
|
|
6
|
+
export interface PageHeadProviderProps {
|
|
7
|
+
readonly children: React.ReactNode;
|
|
8
|
+
/** Renders the document head for a resolved browser title (e.g. a Helmet node). */
|
|
9
|
+
readonly render: (browserTitle: string) => React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Optional document-head hook for {@link PageTitle}. Without a provider the
|
|
13
|
+
* visible heading still renders and `<head>` is left alone — ui-kit does not
|
|
14
|
+
* import a head library.
|
|
15
|
+
*/
|
|
16
|
+
export declare function PageHeadProvider({ children, render, }: PageHeadProviderProps): React.ReactElement;
|
|
6
17
|
export interface PageTitleProps {
|
|
7
18
|
/** Visible heading; a node (e.g. a token-pair title) renders as given. */
|
|
8
19
|
readonly title: PageTitleText | React.ReactNode;
|
|
@@ -11,13 +22,8 @@ export interface PageTitleProps {
|
|
|
11
22
|
* Required when {@link title} is a node — a node cannot become a string.
|
|
12
23
|
*/
|
|
13
24
|
readonly browserTitle?: PageTitleText;
|
|
14
|
-
/**
|
|
15
|
-
* Renders the document head for the resolved browser title (e.g. a Helmet
|
|
16
|
-
* element). The app owns the head library; ui-kit only hands over the string.
|
|
17
|
-
*/
|
|
18
|
-
readonly head?: (browserTitle: string) => React.ReactNode;
|
|
19
25
|
readonly as?: "h1" | "h2" | "h3" | "span";
|
|
20
26
|
readonly className?: string;
|
|
21
27
|
}
|
|
22
28
|
/** The one visible page heading, plus an optional document-head hook. */
|
|
23
|
-
export declare function PageTitle({ title, browserTitle,
|
|
29
|
+
export declare function PageTitle({ title, browserTitle, as, className, }: PageTitleProps): React.ReactElement;
|
|
@@ -1,14 +1,17 @@
|
|
|
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
|
-
readonly apy30d?: Bps;
|
|
11
|
-
};
|
|
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";
|
|
12
10
|
}
|
|
13
|
-
/**
|
|
14
|
-
|
|
11
|
+
/**
|
|
12
|
+
* How a pool's net APY is arrived at: base yield plus incentives.
|
|
13
|
+
*
|
|
14
|
+
* Base and Incentive add up to the chip. Token rewards and points programs
|
|
15
|
+
* sit under a divider as a breakdown of the incentive, not as extra addends.
|
|
16
|
+
*/
|
|
17
|
+
export declare function PoolApyBreakdownCard({ data, period, }: PoolApyBreakdownCardProps): React.ReactElement;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
readonly testId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Holdings token by token, most valuable first — the position itself rather
|
|
19
|
+
* than the one number its collateral adds up to. A right-aligned column, so it
|
|
20
|
+
* reads as the value of the `InfoLine` a caller drops it into.
|
|
21
|
+
*
|
|
22
|
+
* The whole of a change belongs in the one slot: a row carries both amounts
|
|
23
|
+
* with the arrow between them, rather than the caller putting one list in
|
|
24
|
+
* `value` and another in `valueTo`. Two lists would name the same token twice
|
|
25
|
+
* and draw its icon twice, which is what pushes a long symbol out of a narrow
|
|
26
|
+
* dialog; they would also have to be kept in the same order by hand.
|
|
27
|
+
*
|
|
28
|
+
* The rows carry no label of their own, which is why they are not `InfoLine`s:
|
|
29
|
+
* `VerticalIndicator` leaves out its left column entirely when no label is
|
|
30
|
+
* given and never justifies what remains, so a label-less row would sit on the
|
|
31
|
+
* wrong side.
|
|
32
|
+
*
|
|
33
|
+
* Dust is left out: an account carries stray fractions of a cent from
|
|
34
|
+
* rounding, and listing them buries the holdings that matter. A token the
|
|
35
|
+
* oracle cannot price is never dust — an unknown value is not a small one.
|
|
36
|
+
*/
|
|
37
|
+
export declare function PositionAssets({ assets, to, empty, testId, }: PositionAssetsProps): React.ReactElement;
|
|
38
|
+
/** One token across both sides of a change. */
|
|
39
|
+
export interface AssetRow {
|
|
40
|
+
readonly token: TokenAmount["token"];
|
|
41
|
+
/** What the position holds now — zero for a token only the other side has. */
|
|
42
|
+
readonly value: bigint;
|
|
43
|
+
/** What it becomes — zero where the projection drops the token. */
|
|
44
|
+
readonly valueTo: bigint;
|
|
45
|
+
/**
|
|
46
|
+
* What the token is worth at its richer side, which is what decides both
|
|
47
|
+
* dust and order. `null` when a side the oracle cannot price is involved.
|
|
48
|
+
*/
|
|
49
|
+
readonly worth: number | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* What earns a row, most valuable first — decided across both sides, so a
|
|
53
|
+
* token either side holds is listed once, in one place.
|
|
54
|
+
*/
|
|
55
|
+
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;
|