@gearbox-protocol/ui-kit 4.0.0-next.3 → 4.0.0-next.31
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/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/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 +27 -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 +27 -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 +754 -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/radio-group/index.js +5 -0
- package/dist/esm/components/radio-group/radio-group.js +57 -0
- 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 +27 -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 +908 -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 +7 -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/radio-group/index.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +39 -0
- 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 +8 -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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TokenAmount } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
import { TokenTemplateProps } from '../../../../token-template';
|
|
@@ -5,25 +6,57 @@ declare const rootVariants: (props?: ({
|
|
|
5
6
|
position?: "first" | "last" | "inBetween" | "solo" | null | undefined;
|
|
6
7
|
size?: "sm" | "md" | null | undefined;
|
|
7
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
|
|
9
|
+
type PrimarySlot = {
|
|
10
|
+
readonly value: TokenTemplateProps["value"];
|
|
11
|
+
readonly token?: TokenTemplateProps["token"];
|
|
12
|
+
} | {
|
|
13
|
+
node: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
type SecondarySlot = {
|
|
16
|
+
readonly valueUSD?: bigint | number;
|
|
17
|
+
} | {
|
|
18
|
+
node: React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Either hand over the SDK's {@link TokenAmount} whole, or fill the two slots
|
|
22
|
+
* yourself. The slot form stays for the `node` escape hatch and for callers
|
|
23
|
+
* that have no `TokenAmount` to give.
|
|
24
|
+
*/
|
|
25
|
+
type AmountSource = {
|
|
26
|
+
/**
|
|
27
|
+
* Value, token and the USD caption all read off one SDK amount.
|
|
28
|
+
* `null` means unavailable and renders like any other absent value.
|
|
29
|
+
*/
|
|
30
|
+
readonly amount: TokenAmount | null;
|
|
31
|
+
readonly primaryAmount?: undefined;
|
|
32
|
+
readonly secondaryAmount?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
readonly amount?: undefined;
|
|
35
|
+
readonly primaryAmount: PrimarySlot;
|
|
36
|
+
readonly secondaryAmount?: SecondarySlot;
|
|
37
|
+
};
|
|
38
|
+
export type TransactionConfirmAmountFieldProps = VariantProps<typeof rootVariants> & AmountSource & {
|
|
9
39
|
readonly label: React.ReactNode;
|
|
10
|
-
readonly primaryAmount: {
|
|
11
|
-
readonly value: TokenTemplateProps["value"];
|
|
12
|
-
readonly token?: TokenTemplateProps["token"];
|
|
13
|
-
} | {
|
|
14
|
-
node: React.ReactNode;
|
|
15
|
-
};
|
|
16
|
-
readonly secondaryAmount?: {
|
|
17
|
-
readonly valueUSD?: bigint | number;
|
|
18
|
-
} | {
|
|
19
|
-
node: React.ReactNode;
|
|
20
|
-
};
|
|
21
40
|
readonly loading?: boolean;
|
|
22
41
|
readonly maxLength?: number;
|
|
23
42
|
readonly approximate?: {
|
|
24
43
|
isApproximate?: boolean;
|
|
25
44
|
approximateSymbol?: string;
|
|
26
45
|
};
|
|
27
|
-
}
|
|
28
|
-
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* One SDK amount already carries all three things the field shows: the number,
|
|
49
|
+
* its token and the dollar value. Callers used to take it apart and hand the
|
|
50
|
+
* pieces back through two props; passing `amount` lets them stop.
|
|
51
|
+
*
|
|
52
|
+
* Takes the whole prop union so the slot form is picked by the discriminant
|
|
53
|
+
* rather than by a cast — `amount` is `TokenAmount | null`, never `undefined`,
|
|
54
|
+
* so a caller holding `TokenAmount | undefined` has to say `?? null` and
|
|
55
|
+
* cannot land here with nothing at all.
|
|
56
|
+
*/
|
|
57
|
+
export declare function resolveAmountSlots(source: AmountSource): {
|
|
58
|
+
readonly primaryAmount: PrimarySlot;
|
|
59
|
+
readonly secondaryAmount: SecondarySlot | undefined;
|
|
60
|
+
};
|
|
61
|
+
export declare function TransactionConfirmAmountField(props: TransactionConfirmAmountFieldProps): React.ReactElement;
|
|
29
62
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
|
-
export
|
|
2
|
+
export { TransactionConfirmAmountField, type TransactionConfirmAmountFieldProps, } from './TransactionConfirmAmountField';
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
-
export interface TransactionConfirmShellProps {
|
|
5
|
-
readonly phase?: TransactionConfirmPhase;
|
|
6
|
-
readonly header?: React.ReactNode;
|
|
7
|
-
readonly preview: React.ReactNode;
|
|
8
|
-
readonly previewLoading?: boolean;
|
|
9
|
-
readonly previewError?: Error | null;
|
|
10
|
-
readonly previewErrorTitle?: string;
|
|
11
|
-
readonly previewClassName?: string;
|
|
12
|
-
readonly execution: React.ReactNode;
|
|
13
|
-
readonly progressSteps?: ReadonlyArray<TransactionExecutionStepView>;
|
|
14
|
-
readonly renderProgressStepLabel?: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
15
|
-
readonly result?: React.ReactNode;
|
|
16
|
-
readonly className?: string;
|
|
17
|
-
readonly "data-testid"?: string;
|
|
18
|
-
}
|
|
2
|
+
import { TransactionConfirmShellProps } from './transactionConfirmShellTypes';
|
|
19
3
|
/**
|
|
4
|
+
* The one card every transaction confirmation renders, on every surface.
|
|
20
5
|
*
|
|
21
|
-
*
|
|
6
|
+
* Callers describe *what the card shows* (`body`) and *how it is framed*
|
|
7
|
+
* (`mode`); everything else is decided here. This replaces the former
|
|
8
|
+
* `TransactionConfirmPageView` / `TransactionConfirmModalView` pair, which
|
|
9
|
+
* differed only in the frame yet each restated the whole prop list.
|
|
10
|
+
*
|
|
11
|
+
* Two traps from that pair are closed here rather than left to callers.
|
|
12
|
+
*
|
|
13
|
+
* The modal's height clamp is composed with `className` instead of being
|
|
14
|
+
* replaced by it, so a caller adding a class no longer drops the viewport
|
|
15
|
+
* clamp and the flex context the scrollable preview depends on by accident.
|
|
16
|
+
* `cn` is tailwind-merge, so a utility deliberately targeting the same
|
|
17
|
+
* property still wins — though arbitrary-property syntax such as
|
|
18
|
+
* `[max-height:50vh]` sits in a different group and will not displace it.
|
|
19
|
+
*
|
|
20
|
+
* And a `placeholder` or `error` body pins the phase to `confirm`, so those
|
|
21
|
+
* two can never be asked for a result view they were never given. Note the
|
|
22
|
+
* limit of that guarantee: a `ready` body driven to a terminal phase without a
|
|
23
|
+
* `result` still draws a header and nothing else, exactly as the views it
|
|
24
|
+
* replaces did. Requiring both halves of `result` is what keeps the promise
|
|
25
|
+
* whole once a caller opts into one.
|
|
22
26
|
*/
|
|
23
|
-
export declare function TransactionConfirmShell(
|
|
27
|
+
export declare function TransactionConfirmShell(props: TransactionConfirmShellProps): React.ReactElement | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './computeTransactionConfirmDialogLayout';
|
|
2
2
|
export * from './constants';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './TransactionConfirmPageView';
|
|
3
|
+
export * from './TransactionConfirmShell';
|
|
5
4
|
export * from './transactionConfirmPhase';
|
|
5
|
+
export * from './transactionConfirmShellTypes';
|
package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ProgressStepperStep } from '../stepper/ProgressStepper';
|
|
3
|
+
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
+
/**
|
|
5
|
+
* How the card is framed. The body is identical in both: `page` drops the card
|
|
6
|
+
* into page flow, `dialog` puts the same card inside a modal.
|
|
7
|
+
*/
|
|
8
|
+
export type TransactionConfirmShellMode = "page" | "dialog";
|
|
9
|
+
/**
|
|
10
|
+
* Pre-labelled, ready-to-render steps. The slot no longer restricts step ids
|
|
11
|
+
* to the execution union: session-plan steppers (agreement/approve/confirm
|
|
12
|
+
* plus a delayed request/complete tail) carry their own ids and labels, and
|
|
13
|
+
* visibility is the caller's decision — omit the slot to hide the stepper.
|
|
14
|
+
*/
|
|
15
|
+
export type TransactionConfirmShellStepper = ReadonlyArray<ProgressStepperStep>;
|
|
16
|
+
/**
|
|
17
|
+
* Shown instead of preview and execution once the phase is terminal.
|
|
18
|
+
*
|
|
19
|
+
* Both halves are required on purpose: supplying `result` at all is the
|
|
20
|
+
* caller's promise that either terminal phase can be rendered. A flow that
|
|
21
|
+
* cannot fail says so with an explicit `failure: null` rather than by omission,
|
|
22
|
+
* which would leave `phase: "failure"` with nothing to draw.
|
|
23
|
+
*/
|
|
24
|
+
export interface TransactionConfirmShellResult {
|
|
25
|
+
readonly success: React.ReactNode;
|
|
26
|
+
readonly failure: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* What the card is showing.
|
|
30
|
+
*
|
|
31
|
+
* A discriminated union rather than a handful of loose flags: a caller cannot
|
|
32
|
+
* ask for a preview and an error at once, and does not have to spell out the
|
|
33
|
+
* props that mean "nothing here". `placeholder` and `error` also pin the card
|
|
34
|
+
* to the `confirm` phase, so neither can ask for a result view it did not
|
|
35
|
+
* supply — the failure mode that produced an empty card before.
|
|
36
|
+
*/
|
|
37
|
+
export type TransactionConfirmShellBody =
|
|
38
|
+
/**
|
|
39
|
+
* Nothing to show yet: a spinner and a caption, drawn here so no consumer
|
|
40
|
+
* has to assemble one. Distinct from `ready`'s `previewLoading`, which is a
|
|
41
|
+
* skeleton over a preview that already exists.
|
|
42
|
+
*/
|
|
43
|
+
{
|
|
44
|
+
readonly kind: "loading";
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: "error";
|
|
47
|
+
/**
|
|
48
|
+
* Required: the discriminant already says the card failed, so the object
|
|
49
|
+
* has to be there. A caller holding `Error | null` picks this body only
|
|
50
|
+
* once it has one, and `placeholder` or `ready` while it does not.
|
|
51
|
+
*/
|
|
52
|
+
readonly error: Error;
|
|
53
|
+
/** Heading above the error line. Defaults to this library's own copy. */
|
|
54
|
+
readonly title?: string;
|
|
55
|
+
} | {
|
|
56
|
+
readonly kind: "ready";
|
|
57
|
+
readonly preview: React.ReactNode;
|
|
58
|
+
readonly execution?: React.ReactNode;
|
|
59
|
+
readonly stepper?: TransactionConfirmShellStepper;
|
|
60
|
+
readonly result?: TransactionConfirmShellResult;
|
|
61
|
+
/** This library's skeleton over the preview slot, for a live refetch. */
|
|
62
|
+
readonly previewLoading?: boolean;
|
|
63
|
+
};
|
|
64
|
+
interface TransactionConfirmShellBase {
|
|
65
|
+
readonly phase?: TransactionConfirmPhase;
|
|
66
|
+
readonly title: React.ReactNode;
|
|
67
|
+
readonly titleAddon?: React.ReactNode;
|
|
68
|
+
/** Drop the addon once the phase is terminal. */
|
|
69
|
+
readonly hideTitleAddonOnResult?: boolean;
|
|
70
|
+
readonly body: TransactionConfirmShellBody;
|
|
71
|
+
/** Merged onto the outer card; it never replaces the frame's own classes. */
|
|
72
|
+
readonly className?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The scrollable preview column. Defaults to
|
|
75
|
+
* {@link transactionConfirmPreviewScrollVariants}; compose with it rather
|
|
76
|
+
* than replacing it, so later changes to the base still carry over.
|
|
77
|
+
*/
|
|
78
|
+
readonly previewClassName?: string;
|
|
79
|
+
/** Outer card. The inner content keeps {@link TransactionConfirmDialogTest.root}. */
|
|
80
|
+
readonly "data-testid"?: string;
|
|
81
|
+
readonly shellTestId?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface TransactionConfirmShellProps extends TransactionConfirmShellBase {
|
|
84
|
+
readonly mode: TransactionConfirmShellMode;
|
|
85
|
+
/** `dialog` only: the modal renders nothing while closed. Ignored on `page`. */
|
|
86
|
+
readonly open?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Omit to hide the close control — that is how a surface without one, such
|
|
89
|
+
* as a verification page, opts out. A `dialog` without it cannot be
|
|
90
|
+
* dismissed, so pass one unless that is genuinely what you want.
|
|
91
|
+
*
|
|
92
|
+
* `mode` is deliberately a plain field rather than a discriminant that would
|
|
93
|
+
* make this required for dialogs: consumers carry the mode in a variable and
|
|
94
|
+
* a union would force every one of them to branch at the call site.
|
|
95
|
+
*/
|
|
96
|
+
readonly onClose?: () => void;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -17,12 +17,24 @@ export interface CompoundAPYProps {
|
|
|
17
17
|
/** Strategy base borrow cost in bps. */
|
|
18
18
|
borrowApy?: Bps;
|
|
19
19
|
/** Strategy additional (quota) borrow cost in bps. */
|
|
20
|
-
|
|
20
|
+
quotaRate?: Bps;
|
|
21
21
|
/**
|
|
22
22
|
* Number of decimal places for the total APY string.
|
|
23
23
|
* @default 2
|
|
24
24
|
*/
|
|
25
25
|
decimals?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the figure carries the yield breakdown on hover.
|
|
28
|
+
*
|
|
29
|
+
* Off where the number is already explained — a badge that states one rate
|
|
30
|
+
* and stops, or a figure something else already wraps in a tooltip of its
|
|
31
|
+
* own. The incentives icon stays either way; only the hover goes.
|
|
32
|
+
*
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
tooltip?: boolean;
|
|
36
|
+
/** When `"7d"`, tooltip labels carry the averaging-window suffix. */
|
|
37
|
+
period?: "7d";
|
|
26
38
|
className?: string;
|
|
27
39
|
}
|
|
28
40
|
/**
|
|
@@ -31,4 +43,4 @@ export interface CompoundAPYProps {
|
|
|
31
43
|
* No `tokensList`, no external APY, no 7D history, no "soon" points state.
|
|
32
44
|
* For the legacy percent-based API see {@link CompoundAPYLegacy}.
|
|
33
45
|
*/
|
|
34
|
-
export declare function CompoundAPY({ apy, maxLeverage, collateralApy, borrowApy,
|
|
46
|
+
export declare function CompoundAPY({ apy, maxLeverage, collateralApy, borrowApy, quotaRate, decimals, tooltip, period, className, }: CompoundAPYProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
declare const DialogFooter: {
|
|
3
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
3
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export { DialogFooter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
declare const DialogHeader: {
|
|
3
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
3
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export { DialogHeader };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
declare const DropdownMenuShortcut: {
|
|
3
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
3
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export { DropdownMenuShortcut };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
declare const DropdownMenu: {
|
|
4
|
-
({ modal, ...props }: React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>):
|
|
4
|
+
({ modal, ...props }: React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -36,5 +36,5 @@ export interface EditInputProps extends Omit<React.ComponentProps<typeof Input>,
|
|
|
36
36
|
* EditInput — inline editable field: view mode (TextButton + label) or edit mode (Input + arrow submit).
|
|
37
37
|
* Matches interface EditInput structure and styles.
|
|
38
38
|
*/
|
|
39
|
-
export declare function EditInput({ label, value, onChange, onSubmit, onEditModeChange, textButtonProps, inputSize, colorTheme, placeholder, inputMode, autoComplete, autoCorrect, type, spellCheck, className, onKeyDown: onKeyDownProp, ...restProps }: EditInputProps):
|
|
39
|
+
export declare function EditInput({ label, value, onChange, onSubmit, onEditModeChange, textButtonProps, inputSize, colorTheme, placeholder, inputMode, autoComplete, autoCorrect, type, spellCheck, className, onKeyDown: onKeyDownProp, ...restProps }: EditInputProps): React.JSX.Element;
|
|
40
40
|
export {};
|
|
@@ -120,4 +120,4 @@ export interface FilterModalProps<T> {
|
|
|
120
120
|
*/
|
|
121
121
|
showSearch?: boolean;
|
|
122
122
|
}
|
|
123
|
-
export declare function FilterModal<T>({ title, state, modalShow, onOpen, onClose, onReset, options, tabbedOptions, onSelect, className, optionsClassName, resetLabel, applyLabel, showApplyButton, showSearch, }: FilterModalProps<T>):
|
|
123
|
+
export declare function FilterModal<T>({ title, state, modalShow, onOpen, onClose, onReset, options, tabbedOptions, onSelect, className, optionsClassName, resetLabel, applyLabel, showApplyButton, showSearch, }: FilterModalProps<T>): React.JSX.Element;
|
|
@@ -18,4 +18,4 @@ export interface FormattedNumberStringProps extends React.HTMLAttributes<HTMLSpa
|
|
|
18
18
|
* FormattedNumberString — displays a number with optional compact decimal (zeros as repeat count) and tooltip with full value.
|
|
19
19
|
* Matches interface FormattedNumber structure and styles.
|
|
20
20
|
*/
|
|
21
|
-
export declare function FormattedNumberString({ value, decimalPartLength, hideZerosIfMore, className, ...props }: FormattedNumberStringProps):
|
|
21
|
+
export declare function FormattedNumberString({ value, decimalPartLength, hideZerosIfMore, className, ...props }: FormattedNumberStringProps): React.JSX.Element;
|
|
@@ -2,6 +2,29 @@ import { AreaSeriesPartialOptions, ChartOptions, DeepPartial } from 'lightweight
|
|
|
2
2
|
import { VertLineOptions } from './plugins/vertical-line';
|
|
3
3
|
export declare const DEFAULT_AREA_SERIES: AreaSeriesPartialOptions;
|
|
4
4
|
export declare const DEFAULT_VERTICAL_LINE: Partial<VertLineOptions>;
|
|
5
|
+
/** Matches UI `text-sm` so axis tick labels read with the rest of the chrome. */
|
|
6
|
+
export declare const AXIS_FONT_SIZE = 14;
|
|
7
|
+
/**
|
|
8
|
+
* Price-scale tick density. Higher → more space between labels (fewer ticks).
|
|
9
|
+
* Lightweight-charts defaults to 2.5, which packs ~12 labels onto a 460px pane.
|
|
10
|
+
*/
|
|
11
|
+
export declare const AXIS_TICK_MARK_DENSITY = 5;
|
|
12
|
+
/**
|
|
13
|
+
* Pixel inset so a tick sitting on the pane edge is drawn fully inside the
|
|
14
|
+
* canvas (half the font plus a couple of pixels of breathing room).
|
|
15
|
+
*/
|
|
16
|
+
export declare const AXIS_EDGE_LABEL_PADDING_PX: number;
|
|
17
|
+
/**
|
|
18
|
+
* Extra air above the top tick so the label does not sit flush with the
|
|
19
|
+
* chart frame. Larger than the bottom inset because the top edge has no
|
|
20
|
+
* time-axis chrome to separate it from the container.
|
|
21
|
+
*/
|
|
22
|
+
export declare const AXIS_TOP_LABEL_PADDING_PX: number;
|
|
23
|
+
/**
|
|
24
|
+
* Horizontal inset so a centred date label (`dd MMM`, ~50px) sits fully
|
|
25
|
+
* inside the time-scale canvas with a few pixels of air on each side.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AXIS_TIME_EDGE_PADDING_PX = 40;
|
|
5
28
|
/**
|
|
6
29
|
* Gets the default chart options with resolved CSS colors
|
|
7
30
|
* Call this at runtime to ensure CSS variables are properly resolved
|
|
@@ -22,17 +22,26 @@ export interface AdaptiveYAxisFormatterOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
yScaleMin?: number;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Compact unit on an already-formatted axis tick. Generic `"token"` / `"none"`
|
|
27
|
+
* stay bare so charts without a real unit don't render a placeholder.
|
|
28
|
+
*/
|
|
29
|
+
export declare function withYAxisUnit(label: string, unit: YMeasureUnits): string;
|
|
30
|
+
/**
|
|
31
|
+
* Ratio units (`base / quote`) stay off axis ticks, the crosshair pill, and
|
|
32
|
+
* tooltip values — the pair belongs in the series title, not after the number.
|
|
33
|
+
*/
|
|
34
|
+
export declare function isRatioUnit(unit: YMeasureUnits): boolean;
|
|
25
35
|
/**
|
|
26
36
|
* Creates an adaptive Y-axis formatter that determines precision dynamically
|
|
27
37
|
* based on visible range to ensure unique labels on the axis.
|
|
28
38
|
* Data point values (like current price label) are shown with full precision.
|
|
29
39
|
* Returns both the formatter and update functions.
|
|
30
40
|
*/
|
|
31
|
-
export declare function createAdaptiveYAxisFormatter(initialValues: number[],
|
|
41
|
+
export declare function createAdaptiveYAxisFormatter(initialValues: number[], unit: YMeasureUnits, options?: AdaptiveYAxisFormatterOptions): {
|
|
32
42
|
formatter: (price: number) => string;
|
|
33
43
|
tickmarksFormatter: (prices: number[]) => string[];
|
|
34
44
|
updateVisibleRange: (visibleValues: number[]) => void;
|
|
35
|
-
updateLastValues: (lastValues: number[]) => void;
|
|
36
45
|
};
|
|
37
46
|
export type XMeasureUnits = "time" | "%";
|
|
38
47
|
type XFormatter = (time: Time, symbol: XMeasureUnits | undefined) => string;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import { GraphProps } from './graph';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const graphViewVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "outlined" | "ghost" | "elevated" | null | undefined;
|
|
5
|
+
variant?: "default" | "outlined" | "ghost" | "elevated" | "plain" | null | undefined;
|
|
6
6
|
size?: "full" | "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
7
7
|
padding?: "none" | "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -6,6 +6,12 @@ export type SeriesPriceScaleId = "left" | "right";
|
|
|
6
6
|
export type SeriesChartType = "area" | "line";
|
|
7
7
|
export interface SeriesConfig {
|
|
8
8
|
data: Array<Point>;
|
|
9
|
+
/**
|
|
10
|
+
* Stable chart-instance key. Prefer this over `label` so renaming the legend
|
|
11
|
+
* (e.g. interpolating leverage into the title) updates the existing series
|
|
12
|
+
* instead of destroying it — which shuffles `seriesRefs` and breaks tooltips.
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
9
15
|
label: string;
|
|
10
16
|
/** Line color (area stroke). Alias: prefer `lineColor` for clarity; if both set, `lineColor` wins. */
|
|
11
17
|
color?: string;
|
|
@@ -23,6 +29,8 @@ export interface SeriesConfig {
|
|
|
23
29
|
/** Line dash style (line series only). */
|
|
24
30
|
lineStyle?: LineStyle;
|
|
25
31
|
}
|
|
32
|
+
/** Chart-instance key: stable `id` when set, otherwise the display `label`. */
|
|
33
|
+
export declare function seriesIdentity(series: Pick<SeriesConfig, "id" | "label">): string;
|
|
26
34
|
export type VerticalLineOptions = Partial<{
|
|
27
35
|
color: string;
|
|
28
36
|
labelText: string;
|
|
@@ -30,6 +38,10 @@ export type VerticalLineOptions = Partial<{
|
|
|
30
38
|
width: number;
|
|
31
39
|
labelBackgroundColor: string;
|
|
32
40
|
labelTextColor: string;
|
|
41
|
+
/**
|
|
42
|
+
* Time-axis (bottom) badge. Independent of the top overlay, which renders
|
|
43
|
+
* whenever `labelText`, `value`, or `tooltipText` is set.
|
|
44
|
+
*/
|
|
33
45
|
showLabel: boolean;
|
|
34
46
|
/**
|
|
35
47
|
* Text shown only on hover of the line's badge (not rendered inline). Use it
|
|
@@ -47,8 +59,8 @@ export interface PriceLineConfig {
|
|
|
47
59
|
/** Y value (price) where the horizontal line is drawn. */
|
|
48
60
|
price: number;
|
|
49
61
|
/**
|
|
50
|
-
*
|
|
51
|
-
* attached to the first series that has data
|
|
62
|
+
* `id` (preferred) or display `label` of the series to attach the line to.
|
|
63
|
+
* When omitted, the line is attached to the first series that has data.
|
|
52
64
|
*/
|
|
53
65
|
seriesLabel?: string;
|
|
54
66
|
/** Line color. Defaults to the destructive theme color. */
|
|
@@ -76,8 +88,8 @@ export interface PriceZoneConfig {
|
|
|
76
88
|
/** Fill color — use a translucent value. Defaults to a translucent destructive tint. */
|
|
77
89
|
color?: string;
|
|
78
90
|
/**
|
|
79
|
-
*
|
|
80
|
-
* omitted, the first series with data is used.
|
|
91
|
+
* `id` (preferred) or display `label` of the series whose price scale the
|
|
92
|
+
* band is drawn against. When omitted, the first series with data is used.
|
|
81
93
|
*/
|
|
82
94
|
seriesLabel?: string;
|
|
83
95
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nice Y-axis range: a tick step from the same 1 / 2 / 2.5 / 5 × 10^n family
|
|
3
|
+
* that lightweight-charts uses, with min/max snapped onto that grid so the
|
|
4
|
+
* first and last labels sit on the pane edges.
|
|
5
|
+
*/
|
|
6
|
+
export interface PickTickSpanArgs {
|
|
7
|
+
min: number;
|
|
8
|
+
max: number;
|
|
9
|
+
scaleHeightPx: number;
|
|
10
|
+
fontSizePx: number;
|
|
11
|
+
tickMarkDensity: number;
|
|
12
|
+
minMove: number;
|
|
13
|
+
}
|
|
14
|
+
export interface NiceAxisRangeArgs {
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
/** Hard floor (e.g. `yScaleMin`, or 0 when the series never goes negative). */
|
|
18
|
+
floor?: number;
|
|
19
|
+
scaleHeightPx: number;
|
|
20
|
+
fontSizePx: number;
|
|
21
|
+
tickMarkDensity: number;
|
|
22
|
+
minMove?: number;
|
|
23
|
+
/** Pixel inset lightweight-charts will add via AutoscaleInfo.margins.below. */
|
|
24
|
+
edgePaddingPx?: number;
|
|
25
|
+
/** Pixel inset for AutoscaleInfo.margins.above. Defaults to `edgePaddingPx`. */
|
|
26
|
+
edgePaddingTopPx?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface NiceAxisRange {
|
|
29
|
+
min: number;
|
|
30
|
+
max: number;
|
|
31
|
+
step: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Smallest price increment the scale should resolve. One thousandth of the
|
|
35
|
+
* data span, snapped down to a power of ten — coarse enough to stay stable,
|
|
36
|
+
* fine enough not to cap the tick step the way a hardcoded `0.01` does on
|
|
37
|
+
* narrow ratio charts.
|
|
38
|
+
*/
|
|
39
|
+
export declare function pickMinMove(range: number): number;
|
|
40
|
+
/**
|
|
41
|
+
* Tick step lightweight-charts would pick for this visible range.
|
|
42
|
+
*/
|
|
43
|
+
export declare function pickTickSpan({ min, max, scaleHeightPx, fontSizePx, tickMarkDensity, minMove, }: PickTickSpanArgs): number;
|
|
44
|
+
/**
|
|
45
|
+
* Expand `[min, max]` onto the tick grid so both edges are labelled, matching
|
|
46
|
+
* the step the library will use once pixel edge-padding is applied.
|
|
47
|
+
*/
|
|
48
|
+
export declare function niceAxisRange({ min: rawMin, max: rawMax, floor, scaleHeightPx, fontSizePx, tickMarkDensity, minMove: minMoveArg, edgePaddingPx, edgePaddingTopPx, }: NiceAxisRangeArgs): NiceAxisRange;
|
|
@@ -41,4 +41,4 @@ export interface HealthFactorProps extends React.HTMLAttributes<HTMLSpanElement>
|
|
|
41
41
|
* <HealthFactor value={15000} debt={0n} /> // "N/A"
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
export declare function HealthFactor({ value, debt, decimals, zone, zoneType, className, ...props }: HealthFactorProps):
|
|
44
|
+
export declare function HealthFactor({ value, debt, decimals, zone, zoneType, className, ...props }: HealthFactorProps): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type HFIndicatorSize = "sm" | "md";
|
|
3
|
+
export interface HFIndicatorProps {
|
|
4
|
+
/** Pre-formatted health factor, e.g. `"1.05"`. */
|
|
5
|
+
readonly value: string;
|
|
6
|
+
/** `md` stands alone on a screen; `sm` fits a one-row banner. */
|
|
7
|
+
readonly size?: HFIndicatorSize;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Concentric rings around a health-factor value. Presentation only: the number
|
|
11
|
+
* arrives formatted, and the colour does not follow it — every caller so far
|
|
12
|
+
* renders this because the factor is already low.
|
|
13
|
+
*
|
|
14
|
+
* The box is the outermost ring, so the component occupies exactly what it
|
|
15
|
+
* paints and a caller can place it like any other block.
|
|
16
|
+
*/
|
|
17
|
+
export declare function HFIndicator({ value, size, }: HFIndicatorProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hf-indicator';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
2
|
-
export declare function FaIcon({ className, ...props }: FontAwesomeIconProps): import("react
|
|
2
|
+
export declare function FaIcon({ className, ...props }: FontAwesomeIconProps): import("react").JSX.Element;
|
|
@@ -6,7 +6,7 @@ export * from './assets-list-cell';
|
|
|
6
6
|
export * from './badge';
|
|
7
7
|
export * from './base';
|
|
8
8
|
export * from './base-link';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './base-table';
|
|
10
10
|
export * from './breadcrumbs';
|
|
11
11
|
export * from './breakpoint-provider';
|
|
12
12
|
export * from './buttons';
|
|
@@ -14,6 +14,7 @@ export * from './cards';
|
|
|
14
14
|
export * from './checkbox';
|
|
15
15
|
export * from './checkbox-item';
|
|
16
16
|
export * from './client-adapters';
|
|
17
|
+
export * from './collateral-allocation-tooltip';
|
|
17
18
|
export * from './composites';
|
|
18
19
|
export * from './compound-apy';
|
|
19
20
|
export * from './confirm-menu';
|
|
@@ -33,8 +34,10 @@ export * from './guard';
|
|
|
33
34
|
export * from './head-cell';
|
|
34
35
|
export * from './health-factor';
|
|
35
36
|
export * from './help-tip';
|
|
37
|
+
export * from './hf-indicator';
|
|
36
38
|
export * from './icon-button';
|
|
37
39
|
export * from './icons';
|
|
40
|
+
export * from './infinite-scroll';
|
|
38
41
|
export * from './input';
|
|
39
42
|
export * from './label';
|
|
40
43
|
export * from './layout';
|
|
@@ -44,13 +47,16 @@ export * from './loader';
|
|
|
44
47
|
export * from './loading';
|
|
45
48
|
export * from './loading-bar';
|
|
46
49
|
export * from './modal';
|
|
50
|
+
export * from './name-cell';
|
|
47
51
|
export * from './navbar-logo';
|
|
48
52
|
export * from './navigation-context';
|
|
49
53
|
export * from './points-icon';
|
|
50
54
|
export * from './pool-points-indicator';
|
|
55
|
+
export * from './radio-group';
|
|
51
56
|
export * from './rounded-image';
|
|
52
57
|
export * from './rwa-feature';
|
|
53
58
|
export * from './rwa-styles';
|
|
59
|
+
export * from './sdk-status-pill';
|
|
54
60
|
export * from './search-line';
|
|
55
61
|
export * from './segmented-control';
|
|
56
62
|
export * from './select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './infinite-scroll-wrapper';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
export interface InfiniteScrollWrapperProps {
|
|
3
|
+
readonly dataLength: number;
|
|
4
|
+
readonly hasMore: boolean;
|
|
5
|
+
readonly onNextLoad: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* List footer that asks for the next page. Presentation only: the caller
|
|
9
|
+
* owns paging state and `onNextLoad`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function InfiniteScrollWrapper({ hasMore, dataLength, children, onNextLoad, }: PropsWithChildren<InfiniteScrollWrapperProps>): React.ReactElement;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BlockSyncProps } from '../../../types/footer';
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
/**
|
|
4
3
|
* A single legal/navigation link rendered in {@link AppFooter}.
|
|
@@ -30,20 +29,14 @@ export interface AppFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
30
29
|
*/
|
|
31
30
|
year?: number;
|
|
32
31
|
/**
|
|
33
|
-
*
|
|
32
|
+
* Slot between the copyright and the links — typically a
|
|
33
|
+
* {@link SyncStatusPill}. The footer knows nothing about what goes in it.
|
|
34
|
+
*
|
|
35
|
+
* A slot rather than sync-specific props: the footer used to accept a fixed
|
|
36
|
+
* `blockSyncProps` shape and render its own pill from it, which made every
|
|
37
|
+
* change to the indicator a change to the footer's API.
|
|
34
38
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Label rendered inside the status pill. Defaults to `Status`.
|
|
38
|
-
*/
|
|
39
|
-
statusLabel?: React.ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* When provided, the status pill becomes a live network-synchronization
|
|
42
|
-
* indicator ({@link BlockSyncPill}): the dot color reflects the time since
|
|
43
|
-
* the last block update and hovering reveals per-chain block details.
|
|
44
|
-
* Without it, a static green status pill is rendered.
|
|
45
|
-
*/
|
|
46
|
-
blockSyncProps?: BlockSyncProps;
|
|
39
|
+
status?: React.ReactNode;
|
|
47
40
|
}
|
|
48
41
|
/**
|
|
49
42
|
* AppFooter — minimal, Hyperliquid-style footer used by the Gearbox App
|
|
@@ -56,7 +49,8 @@ export interface AppFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
56
49
|
* @example
|
|
57
50
|
* ```tsx
|
|
58
51
|
* <AppFooter />
|
|
59
|
-
* <AppFooter links={myLinks} copyright="© Acme, 2026"
|
|
52
|
+
* <AppFooter links={myLinks} copyright="© Acme, 2026" />
|
|
53
|
+
* <AppFooter status={<SyncStatusPill {...syncProps} />} />
|
|
60
54
|
* ```
|
|
61
55
|
*/
|
|
62
56
|
export declare const AppFooter: React.ForwardRefExoticComponent<AppFooterProps & React.RefAttributes<HTMLElement>>;
|