@gearbox-protocol/ui-kit 4.0.0-next.4 → 4.0.0-next.41
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/amount-input.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -1
- package/dist/cjs/components/base/apy-breakdown-body/apy-breakdown-body.cjs +1 -0
- package/dist/cjs/components/base/apy-breakdown-body/index.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/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/history-chart/history-chart.cjs +1 -1
- package/dist/cjs/components/base/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/manage-pane/manage-pane.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/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/position-status-badge.cjs +1 -0
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -0
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -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-debounce-call.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-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 +8 -9
- package/dist/esm/components/alert-badge/alert-badge.js +1 -2
- package/dist/esm/components/alert-dialog/alert-dialog.js +8 -9
- package/dist/esm/components/alert-modal/alert-modal.js +1 -2
- package/dist/esm/components/app-bar/app-bar.js +1 -2
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +162 -161
- package/dist/esm/components/badge/badge.js +15 -10
- package/dist/esm/components/badge/chip.js +46 -0
- package/dist/esm/components/badge/index.js +8 -3
- package/dist/esm/components/base/amount-input/amount-input.js +13 -14
- package/dist/esm/components/base/amount-input/token-select-panel.js +34 -39
- 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 +2 -2
- 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 +20 -21
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +11 -12
- package/dist/esm/components/base/history-chart/history-chart.js +84 -42
- package/dist/esm/components/base/index.js +155 -142
- package/dist/esm/components/base/info-list/info-list.js +10 -11
- package/dist/esm/components/base/leverage-input/leverage-input.js +11 -13
- 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 +3 -4
- package/dist/esm/components/base/manage-pane/manage-pane.js +5 -6
- 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 +95 -0
- package/dist/esm/components/base/review-button/constants.js +3 -2
- package/dist/esm/components/base/review-button/review-button.js +31 -19
- package/dist/esm/components/base/section-heading/section-heading.js +3 -4
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +12 -13
- package/dist/esm/components/base/side-card/side-card.js +16 -17
- package/dist/esm/components/base/stack/stack.js +9 -10
- package/dist/esm/components/base/stat-badge/constants.js +1 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +88 -54
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +3 -4
- 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 +198 -42
- package/dist/esm/components/base/tabber/tabber.js +67 -64
- 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 +11 -11
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +7 -8
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +17 -12
- package/dist/esm/components/base/values/pnl-value.js +14 -14
- package/dist/esm/components/base/values/position-status-badge.js +25 -0
- package/dist/esm/components/base/values/position-type-badge.js +2 -2
- package/dist/esm/components/base/values/price-impact-value.js +22 -0
- package/dist/esm/components/base/values/scalars.js +60 -36
- package/dist/esm/components/base-link/base-link.js +8 -9
- package/dist/esm/components/base-table/base-table-line.js +116 -0
- package/dist/esm/components/base-table/base-table.js +109 -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 +3 -4
- package/dist/esm/components/buttons/back-button/back-button.js +7 -8
- package/dist/esm/components/buttons/button/button.js +1 -2
- package/dist/esm/components/buttons/copy-button/copy-button.js +8 -9
- package/dist/esm/components/buttons/external-button/external-button.js +8 -9
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +4 -5
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +3 -4
- package/dist/esm/components/cards/card/card.js +1 -2
- package/dist/esm/components/cards/expandable-call/expandable-call.js +20 -21
- package/dist/esm/components/cards/expandable-card/expandable-card.js +12 -13
- package/dist/esm/components/checkbox/checkbox-labeled.js +13 -9
- package/dist/esm/components/checkbox/checkbox.js +1 -2
- package/dist/esm/components/checkbox-item/checkbox-item.js +10 -11
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +8 -9
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +1 -2
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +13 -9
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +70 -0
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +101 -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 +3 -4
- 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 -31
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +110 -79
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -27
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +51 -41
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +115 -61
- 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 +3 -4
- package/dist/esm/components/composites/tx-preview/index.js +24 -26
- package/dist/esm/components/compound-apy/compound-apy.js +88 -81
- package/dist/esm/components/confirm-menu/confirm-menu.js +6 -7
- package/dist/esm/components/detailed-apy/detailed-apy.js +9 -10
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +1 -2
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +51 -43
- package/dist/esm/components/dialog/dialog-container.js +7 -8
- package/dist/esm/components/dialog/dialog-content.js +1 -2
- package/dist/esm/components/dialog/dialog-description.js +5 -6
- package/dist/esm/components/dialog/dialog-footer.js +1 -2
- package/dist/esm/components/dialog/dialog-form.js +12 -13
- package/dist/esm/components/dialog/dialog-header.js +5 -6
- package/dist/esm/components/dialog/dialog-modal-container.js +1 -2
- package/dist/esm/components/dialog/dialog-overlay.js +4 -5
- package/dist/esm/components/dialog/dialog-title.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +5 -6
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +8 -9
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +8 -9
- package/dist/esm/components/edit-input/edit-input.js +7 -8
- package/dist/esm/components/error-message/error-line-message.js +6 -7
- package/dist/esm/components/error-message/error-message.js +3 -4
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +1 -2
- package/dist/esm/components/filter/filter-block.js +1 -2
- package/dist/esm/components/filter/filter-checkbox-item.js +4 -5
- package/dist/esm/components/filter/filter-chip.js +2 -2
- package/dist/esm/components/filter/filter-chips.js +6 -7
- package/dist/esm/components/filter/filter-dropdown-item.js +12 -13
- package/dist/esm/components/filter/filter-group.js +1 -2
- package/dist/esm/components/filter/filter-label.js +1 -2
- package/dist/esm/components/filter/filter-modal-item.js +5 -6
- package/dist/esm/components/filter/filter-modal.js +3 -4
- package/dist/esm/components/filter/filter-radio-item.js +5 -6
- package/dist/esm/components/filter/filter-separator.js +4 -5
- package/dist/esm/components/formatted-number/formatted-number.js +3 -4
- 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 +32 -31
- package/dist/esm/components/graph/graph.js +646 -555
- 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 +13 -14
- package/dist/esm/components/health-factor/health-factor.js +3 -4
- package/dist/esm/components/help-tip/help-tip.js +5 -6
- 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 +7 -8
- package/dist/esm/components/icons/fa-icon.js +3 -4
- package/dist/esm/components/index.js +757 -703
- 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 +3 -4
- package/dist/esm/components/label/label.js +1 -2
- package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
- package/dist/esm/components/link/link.js +12 -13
- package/dist/esm/components/loader/loader.js +1 -2
- package/dist/esm/components/loading-bar/loading-bar.js +1 -2
- package/dist/esm/components/modal/modal.js +8 -9
- 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 +3 -4
- package/dist/esm/components/network-icon/index.js +4 -2
- package/dist/esm/components/network-icon/network-indicator.js +81 -0
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +3 -4
- package/dist/esm/components/radio-group/index.js +5 -0
- package/dist/esm/components/radio-group/radio-group.js +56 -0
- package/dist/esm/components/rounded-image/rounded-image.js +1 -2
- 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 +58 -0
- package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
- package/dist/esm/components/search-line/search-line.js +1 -2
- package/dist/esm/components/segmented-control/segmented-control.js +7 -8
- package/dist/esm/components/select/select.js +4 -5
- package/dist/esm/components/separate-line/separate-line.js +1 -2
- package/dist/esm/components/short-string/short-string.js +4 -5
- package/dist/esm/components/simple-accordion/simple-accordion.js +1 -2
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +1 -2
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +5 -6
- package/dist/esm/components/skeleton/skeleton-stack.js +7 -8
- package/dist/esm/components/skeleton/skeleton.js +3 -4
- 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 -53
- package/dist/esm/components/spinner/spinner.js +1 -2
- package/dist/esm/components/spinner-loader/spinner-loader.js +8 -9
- package/dist/esm/components/split-list/split-list.js +5 -6
- package/dist/esm/components/status-dot/status-dot.js +4 -5
- package/dist/esm/components/status-elements/status-elements.js +7 -8
- package/dist/esm/components/tab-control/tab-control.js +40 -35
- package/dist/esm/components/table/grid-loading-line.js +14 -15
- package/dist/esm/components/table/table-sm.js +21 -22
- package/dist/esm/components/table/table.js +1 -2
- package/dist/esm/components/tabs/tabs.js +7 -8
- package/dist/esm/components/text-button/text-button.js +10 -11
- package/dist/esm/components/textarea/textarea.js +1 -2
- package/dist/esm/components/tip-card/tip-card.js +5 -6
- package/dist/esm/components/token-icon/token-icon.js +12 -13
- package/dist/esm/components/token-symbol/token-symbol.js +1 -2
- package/dist/esm/components/token-template/token-template.js +9 -10
- package/dist/esm/components/tooltip/simple-tooltip.js +52 -51
- package/dist/esm/components/tooltip/tooltip.js +7 -8
- package/dist/esm/components/trading-view/trading-view.js +219 -179
- package/dist/esm/components/typography/typography.js +5 -6
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +7 -8
- package/dist/esm/components/vspace/vspace.js +8 -9
- package/dist/esm/components/with-copy/with-copy.js +13 -9
- package/dist/esm/components/with-title/with-title.js +8 -9
- 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 +23 -23
- package/dist/esm/hooks/use-debounce-call.js +5 -6
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +909 -849
- package/dist/esm/locale/en.json.js +62 -47
- 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-money.js +55 -38
- package/dist/esm/utils/format-slippage.js +1 -1
- package/dist/esm/utils/index.js +87 -83
- 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 +20 -21
- 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/history-chart/history-chart.d.ts +33 -8
- package/dist/types/components/base/index.d.ts +2 -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/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 +40 -4
- package/dist/types/components/base/tabber/tabber.d.ts +2 -2
- 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 +6 -1
- 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/pnl-value.d.ts +8 -2
- 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/price-impact-value.d.ts +25 -0
- 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 +30 -5
- package/dist/types/components/graph/index.d.ts +1 -1
- 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-icon/token-icon.d.ts +1 -2
- 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 +26 -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 -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 +64 -47
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/format-money.d.ts +11 -5
- package/dist/types/utils/index.d.ts +3 -2
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/dist/types/utils/network-icons.d.ts +1 -1
- package/dist/types/utils/token-icon-source.d.ts +25 -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/hooks/use-hf.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 -207
- 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 -177
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/esm/hooks/use-hf.js +0 -43
- 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/hooks/use-hf.d.ts +0 -17
- 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
|
@@ -2,5 +2,7 @@ export { ValueTest } from './constants';
|
|
|
2
2
|
export { PnlValue } from './pnl-value';
|
|
3
3
|
export { PointsValue, type PointsValueProps } from './points-value';
|
|
4
4
|
export { PositionShortLabel, PositionShortLabelTest, } from './position-short-label';
|
|
5
|
+
export { type PositionStatus, PositionStatusBadge, type PositionStatusBadgeProps, } from './position-status-badge';
|
|
5
6
|
export { PositionTypeBadge, type PositionTypeBadgeProps, } from './position-type-badge';
|
|
7
|
+
export { PriceImpactValue, priceImpact } from './price-impact-value';
|
|
6
8
|
export { ApyValue, type ApyValueProps, bps, HealthFactorValue, LeverageValue, TokenBigint, UsdValue, UtilizationValue, } from './scalars';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { PnlBreakdown } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Realised + unrealised PnL, signed.
|
|
5
|
+
*
|
|
6
|
+
* A breakdown (a position's own) or a bare USD figure (a wallet's total, which
|
|
7
|
+
* the model carries as a plain number) — the same pairing {@link ApyValue}
|
|
8
|
+
* makes between a breakdown and a bare rate.
|
|
9
|
+
*/
|
|
4
10
|
export declare function PnlValue({ data, }: {
|
|
5
|
-
readonly data: PnlBreakdown | undefined;
|
|
11
|
+
readonly data: PnlBreakdown | number | null | undefined;
|
|
6
12
|
}): React.ReactElement;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type PositionStatus = "active" | "repaid";
|
|
3
|
+
export interface PositionStatusBadgeProps {
|
|
4
|
+
readonly data: PositionStatus;
|
|
5
|
+
}
|
|
6
|
+
/** Lifecycle chip of a strategy position: Active or Repaid. */
|
|
7
|
+
export declare function PositionStatusBadge({ data, }: PositionStatusBadgeProps): React.ReactElement;
|
|
@@ -6,6 +6,6 @@ export interface PositionTypeBadgeProps {
|
|
|
6
6
|
readonly size?: "table" | "aside" | "title";
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Colored kind label of a position row: "
|
|
9
|
+
* Colored kind label of a position row: "LP" / "Strategy" / "Liquidation".
|
|
10
10
|
*/
|
|
11
11
|
export declare function PositionTypeBadge({ data, size, }: PositionTypeBadgeProps): React.ReactElement;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A price impact as a percentage.
|
|
4
|
+
*
|
|
5
|
+
* The scale is `PERCENTAGE_FACTOR_1KK` — `1_000_000` is 100%, so `-10_000` is
|
|
6
|
+
* -1% — the legacy price-impact scale, a hundred times finer than the `Bps`
|
|
7
|
+
* the rest of this module speaks. The conversion is owned here for the same
|
|
8
|
+
* reason `bps` owns its own: `percentageTemplate` carries a same-named,
|
|
9
|
+
* differently-scaled twin, so a shared step would inherit that ambiguity.
|
|
10
|
+
*
|
|
11
|
+
* A loss is what this figure almost always is, and it prints its own minus.
|
|
12
|
+
* Only the rare route that beat the marginal price needs its sign spelled out,
|
|
13
|
+
* or a gain would read as a loss of the same size.
|
|
14
|
+
*/
|
|
15
|
+
export declare function priceImpact(value: bigint): string;
|
|
16
|
+
/**
|
|
17
|
+
* What a routed operation gave up to market depth.
|
|
18
|
+
*
|
|
19
|
+
* Which of the three rates a caller shows — against the routed output, the
|
|
20
|
+
* equity or the position — is the caller's choice; this renders the one it is
|
|
21
|
+
* handed.
|
|
22
|
+
*/
|
|
23
|
+
export declare function PriceImpactValue({ data, }: {
|
|
24
|
+
readonly data: bigint | undefined;
|
|
25
|
+
}): React.ReactElement;
|
|
@@ -12,13 +12,25 @@ export declare function bps(value: Bps): string;
|
|
|
12
12
|
export interface ApyValueProps {
|
|
13
13
|
/** A breakdown (tooltip-able) or a bare rate; `undefined` renders a dash. */
|
|
14
14
|
readonly data: ApyBreakdown | Bps | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a breakdown carries its yield tooltip on hover. Off where the
|
|
17
|
+
* figure is already explained — a badge that states one rate, or a figure
|
|
18
|
+
* wrapped in a tooltip of its own, which would otherwise stack two.
|
|
19
|
+
*
|
|
20
|
+
* A bare `Bps` has no tooltip to begin with, so this does not reach it.
|
|
21
|
+
*
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
readonly tooltip?: boolean;
|
|
25
|
+
/** When `"7d"`, the breakdown tooltip labels carry the averaging-window suffix. */
|
|
26
|
+
readonly period?: "7d";
|
|
15
27
|
}
|
|
16
28
|
/**
|
|
17
29
|
* Any APY the model carries, in one place: `supplyApy`, `netApy`, `borrowApy`.
|
|
18
30
|
* A breakdown renders the reference chip (reward icons + breakdown tooltip)
|
|
19
31
|
* via `CompoundAPY`; a bare `Bps` stays a plain percentage.
|
|
20
32
|
*/
|
|
21
|
-
export declare function ApyValue({ data }: ApyValueProps): React.ReactElement;
|
|
33
|
+
export declare function ApyValue({ data, tooltip, period, }: ApyValueProps): React.ReactElement;
|
|
22
34
|
export declare function UsdValue({ data, }: {
|
|
23
35
|
readonly data: number | null | undefined;
|
|
24
36
|
}): React.ReactElement;
|
|
@@ -36,8 +48,17 @@ export declare function HealthFactorValue({ data, }: {
|
|
|
36
48
|
* A bare `bigint` in token units (simulate previews carry these): the only
|
|
37
49
|
* value component that needs a denomination passed with it, because the SDK
|
|
38
50
|
* hands these out without one.
|
|
51
|
+
*
|
|
52
|
+
* Shown to `formatAssetAmount`'s three decimals, with the exact amount in a
|
|
53
|
+
* tooltip — a metrics row reads better short, and nothing is lost: the figure
|
|
54
|
+
* behind the rounding stays a hover away.
|
|
39
55
|
*/
|
|
40
|
-
export declare function TokenBigint({ data, token, }: {
|
|
56
|
+
export declare function TokenBigint({ data, token, showSymbol, }: {
|
|
41
57
|
readonly data: bigint | undefined;
|
|
42
58
|
readonly token: Token | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Off where the row names the token itself — a `before → after` pair prints
|
|
61
|
+
* the symbol once for both amounts rather than twice.
|
|
62
|
+
*/
|
|
63
|
+
readonly showSymbol?: boolean;
|
|
43
64
|
}): React.ReactElement;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { BaseTableColumn } from './types';
|
|
3
|
+
export { BaseTableLineTest } from './constants';
|
|
4
|
+
export interface BaseTableLineProps<TSort extends string = never> {
|
|
5
|
+
readonly columns: ReadonlyArray<BaseTableColumn<TSort>>;
|
|
6
|
+
readonly cells: Readonly<Record<string, ReactNode>>;
|
|
7
|
+
readonly last: boolean;
|
|
8
|
+
readonly href?: string;
|
|
9
|
+
readonly disabled?: boolean;
|
|
10
|
+
readonly disabledStyle?: boolean;
|
|
11
|
+
/** Extra row className, e.g. RWA accent tint. */
|
|
12
|
+
readonly accentClassName?: string;
|
|
13
|
+
readonly onRowClick?: () => void;
|
|
14
|
+
readonly "data-testid"?: string;
|
|
15
|
+
readonly minHeightClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* One row of {@link BaseTable}: desktop cells from the column model, or a
|
|
19
|
+
* stacked mobile card driven by each column's `mobile` role.
|
|
20
|
+
*/
|
|
21
|
+
export declare function BaseTableLine<TSort extends string = never>({ columns, cells, last, href, disabled, disabledStyle, accentClassName, onRowClick, "data-testid": testId, minHeightClassName, }: BaseTableLineProps<TSort>): React.ReactElement;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { BaseTableColumn, BaseTableSortApi } from './types';
|
|
3
|
+
export { BaseTableTest } from './constants';
|
|
4
|
+
export type { BaseTableColumn, BaseTableSortApi } from './types';
|
|
5
|
+
export interface BaseTableProps<TSort extends string = never> {
|
|
6
|
+
readonly columns: ReadonlyArray<BaseTableColumn<TSort>>;
|
|
7
|
+
readonly isLoading: boolean;
|
|
8
|
+
readonly emptyMessage: ReactNode;
|
|
9
|
+
readonly sort?: BaseTableSortApi<TSort>;
|
|
10
|
+
readonly rowHeight?: string;
|
|
11
|
+
readonly loaderRows?: number;
|
|
12
|
+
readonly className?: string;
|
|
13
|
+
readonly wrapperClassName?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Declarative data table over {@link GridTable}: column model, sort headers,
|
|
17
|
+
* loading skeleton and empty state. Mobile collapses to a single track.
|
|
18
|
+
*/
|
|
19
|
+
export declare function BaseTable<TSort extends string = never>({ columns, isLoading, emptyMessage, sort, rowHeight, loaderRows, className, wrapperClassName, children, }: PropsWithChildren<BaseTableProps<TSort>>): React.ReactElement;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type BaseTableColumnJustify = "start" | "end";
|
|
3
|
+
/**
|
|
4
|
+
* Mobile placement for a column inside {@link BaseTableLine}:
|
|
5
|
+
* - `title` — primary identity block (name / tokens)
|
|
6
|
+
* - `badge` — compact chip next to the title (also unclipped on desktop)
|
|
7
|
+
* - `stat` — labeled metric in the stats grid
|
|
8
|
+
* - `block` — full-width labeled block under the stats
|
|
9
|
+
* - `hidden` — desktop-only
|
|
10
|
+
*/
|
|
11
|
+
type BaseTableColumnMobile = "title" | "badge" | "stat" | "block" | "hidden";
|
|
12
|
+
interface BaseTableColumnSort<TSort extends string = never> {
|
|
13
|
+
readonly field: TSort;
|
|
14
|
+
readonly defaultDirection: "asc" | "desc";
|
|
15
|
+
/** Plain string for HeadCell `sortField` (a11y / tooltip). */
|
|
16
|
+
readonly label: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Column model shared by {@link BaseTable} (tracks + header) and
|
|
20
|
+
* {@link BaseTableLine} (desktop cells + mobile labels).
|
|
21
|
+
*/
|
|
22
|
+
export interface BaseTableColumn<TSort extends string = never> {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly title: ReactNode;
|
|
25
|
+
/** CSS grid track, e.g. `"minmax(320px,3fr)"`. */
|
|
26
|
+
readonly track: string;
|
|
27
|
+
readonly justify?: BaseTableColumnJustify;
|
|
28
|
+
readonly sort?: BaseTableColumnSort<TSort>;
|
|
29
|
+
readonly headClassName?: string;
|
|
30
|
+
readonly cellClassName?: string;
|
|
31
|
+
readonly mobile?: BaseTableColumnMobile;
|
|
32
|
+
}
|
|
33
|
+
export interface BaseTableSortApi<TSort extends string> {
|
|
34
|
+
readonly getSortDirection: (field: TSort) => "asc" | "desc" | undefined;
|
|
35
|
+
readonly onSort: (field: TSort, defaultDirection: "asc" | "desc") => void;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -16,5 +16,5 @@ export interface BackButtonProps extends VariantProps<typeof backButtonVariants>
|
|
|
16
16
|
className?: string;
|
|
17
17
|
LinkComponent?: React.ComponentType<LinkComponentProps>;
|
|
18
18
|
}
|
|
19
|
-
export declare function BackButton({ href, text, onClick, className, variant, size, LinkComponent, }: BackButtonProps): import("react
|
|
19
|
+
export declare function BackButton({ href, text, onClick, className, variant, size, LinkComponent, }: BackButtonProps): import("react").JSX.Element;
|
|
20
20
|
export { backButtonVariants };
|
|
@@ -46,4 +46,4 @@ export interface RangeButtonsProps<T> {
|
|
|
46
46
|
* />
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
export declare function RangeButtons<T>({ range, rangeList, setRange, className, }: RangeButtonsProps<T>):
|
|
49
|
+
export declare function RangeButtons<T>({ range, rangeList, setRange, className, }: RangeButtonsProps<T>): React.JSX.Element;
|
|
@@ -16,4 +16,4 @@ import { CardProps } from '../card';
|
|
|
16
16
|
* - for warnings or informational content (use regular Card with appropriate styling).
|
|
17
17
|
* - when actions are not actually dangerous or destructive.
|
|
18
18
|
*/
|
|
19
|
-
export declare function DangerZone({ children, ...props }: CardProps): import("react
|
|
19
|
+
export declare function DangerZone({ children, ...props }: CardProps): import("react").JSX.Element;
|
|
@@ -24,5 +24,5 @@ export interface ExpandablCallProps {
|
|
|
24
24
|
* - for displaying transactions themselves (use ExpandableCard instead).
|
|
25
25
|
* - outside of transaction context (use ExpandableCard or regular Card instead).
|
|
26
26
|
*/
|
|
27
|
-
declare function ExpandablCall({ header, children, index, isExpandable, }: ExpandablCallProps):
|
|
27
|
+
declare function ExpandablCall({ header, children, index, isExpandable, }: ExpandablCallProps): React.JSX.Element;
|
|
28
28
|
export { ExpandablCall };
|
|
@@ -24,5 +24,5 @@ export interface ExpandableCardProps {
|
|
|
24
24
|
* - when you need multiple independent expandable sections (consider using Tabs or separate ExpandableCards).
|
|
25
25
|
* - for non-transaction content when a regular Card would suffice.
|
|
26
26
|
*/
|
|
27
|
-
declare function ExpandableCard({ header, children, alwaysExpanded, }: ExpandableCardProps):
|
|
27
|
+
declare function ExpandableCard({ header, children, alwaysExpanded, }: ExpandableCardProps): React.JSX.Element;
|
|
28
28
|
export { ExpandableCard };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AllocationWheelProps {
|
|
3
|
+
/** Slice share in 0..1 of the total allocation. */
|
|
4
|
+
readonly share: number;
|
|
5
|
+
/** Palette index for token slices; ignored when {@link idle}. */
|
|
6
|
+
readonly colorIndex: number;
|
|
7
|
+
readonly idle?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** 20px donut showing one slice's share of the total. */
|
|
10
|
+
export declare function AllocationWheel({ share, colorIndex, idle, }: AllocationWheelProps): React.ReactElement;
|
package/dist/types/components/collateral-allocation-tooltip/collateral-allocation-tooltip.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Amount, Token } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type CollateralAllocationSlice = {
|
|
4
|
+
kind: "token";
|
|
5
|
+
token: Token;
|
|
6
|
+
amount: Amount;
|
|
7
|
+
} | {
|
|
8
|
+
kind: "idle";
|
|
9
|
+
amount: Amount;
|
|
10
|
+
};
|
|
11
|
+
export interface CollateralAllocation {
|
|
12
|
+
slices: ReadonlyArray<CollateralAllocationSlice>;
|
|
13
|
+
}
|
|
14
|
+
export interface CollateralAllocationTooltipProps {
|
|
15
|
+
readonly data: CollateralAllocation;
|
|
16
|
+
readonly children?: React.ReactNode;
|
|
17
|
+
readonly className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Pool collateral mix for Earn table hover — token rows plus an Idle remainder.
|
|
21
|
+
* Slice shares are derived from `amount.valueUsd`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function CollateralAllocationTooltip({ data, children, className, }: CollateralAllocationTooltipProps): React.ReactElement;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PoolAssetsTableSort } from './types';
|
|
3
|
-
/** Props for {@link PoolAssetsTableHead}. */
|
|
4
3
|
export interface PoolAssetsTableHeadProps {
|
|
5
4
|
readonly sort: PoolAssetsTableSort;
|
|
6
5
|
}
|
|
7
6
|
/**
|
|
8
|
-
* Header row: sortable
|
|
7
|
+
* Header row: sortable Name / Exposure / Cap / Cap utilization.
|
|
9
8
|
*/
|
|
10
9
|
export declare function PoolAssetsTableHead({ sort, }: PoolAssetsTableHeadProps): React.ReactElement;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuotaAsset, Token } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { PoolAssetsTableQuotaRow } from './types';
|
|
4
|
-
/** Props for {@link PoolAssetsTableRow}. */
|
|
5
3
|
export interface PoolAssetsTableRowProps {
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly currentQuota: PoolAssetsTableQuotaRow;
|
|
9
|
-
readonly underlyingToken: TokenData;
|
|
4
|
+
readonly asset: QuotaAsset;
|
|
5
|
+
readonly underlyingToken: Token;
|
|
10
6
|
readonly last: boolean;
|
|
7
|
+
readonly isCompact: boolean;
|
|
8
|
+
readonly totalUsed: bigint;
|
|
9
|
+
readonly colorIndex: number;
|
|
10
|
+
/** Base URL of the chain's explorer; absent leaves the row inert. */
|
|
11
|
+
readonly explorerUrl?: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
* Single data row: token
|
|
14
|
+
* Single data row: token name, exposure (amount + pie), cap, and cap utilization.
|
|
14
15
|
*/
|
|
15
|
-
export declare function PoolAssetsTableRow({
|
|
16
|
+
export declare function PoolAssetsTableRow({ asset, underlyingToken, last, isCompact, totalUsed, colorIndex, explorerUrl, }: PoolAssetsTableRowProps): React.ReactElement;
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuotaAsset, Token } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { PoolAssetsTableQuotaRow, PoolAssetsTableSort } from './types';
|
|
5
|
-
/**
|
|
6
|
-
* Props for {@link PoolAssetsTable}.
|
|
7
|
-
*/
|
|
3
|
+
import { PoolAssetsTableSort } from './types';
|
|
8
4
|
export interface PoolAssetsTableProps {
|
|
9
|
-
|
|
10
|
-
readonly list: ReadonlyArray<PoolAssetsTableQuotaRow>;
|
|
11
|
-
/** Pool name shown under the asset title. */
|
|
12
|
-
readonly poolName: string;
|
|
5
|
+
readonly list: ReadonlyArray<QuotaAsset>;
|
|
13
6
|
readonly sort: PoolAssetsTableSort;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
readonly underlyingToken: Token;
|
|
8
|
+
/**
|
|
9
|
+
* Block explorer base URL of the pool's chain. Given one, each row links to
|
|
10
|
+
* its token's address there; without one the rows stay inert.
|
|
11
|
+
*/
|
|
12
|
+
readonly explorerUrl?: string;
|
|
18
13
|
}
|
|
19
14
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Do not add a third table in this pass — next-stage `table/` absorbs this.
|
|
23
|
-
*
|
|
24
|
-
* On viewports below the mobile breakpoint the header is hidden and each row
|
|
25
|
-
* uses the compact `TableLineSm` layout.
|
|
15
|
+
* Grid table of pool asset quotas: exposure, cap, and cap utilization.
|
|
16
|
+
* Collapses into stacked cards below {@link COMPACT_WIDTH_THRESHOLD}.
|
|
26
17
|
*/
|
|
27
|
-
export declare function PoolAssetsTable({ list,
|
|
18
|
+
export declare function PoolAssetsTable({ list, sort, underlyingToken, explorerUrl, }: PoolAssetsTableProps): React.ReactElement | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuotaAsset } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { SortField, SortSetterFunction } from '../../../hooks';
|
|
3
3
|
/** Column identifiers used by the pool assets table header sort controls. */
|
|
4
|
-
export type PoolAssetsSortFields = "name" | "
|
|
4
|
+
export type PoolAssetsSortFields = "name" | "exposure" | "cap" | "capUtilization";
|
|
5
5
|
/**
|
|
6
6
|
* Sort state + setter wired to `HeadCell` / `useSort` (same pattern as `PoolTable`).
|
|
7
7
|
*/
|
|
@@ -13,13 +13,5 @@ export interface PoolAssetsTableSort {
|
|
|
13
13
|
export interface PoolAssetsFilterState {
|
|
14
14
|
readonly sort: PoolAssetsTableSort;
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
* Shape aligns with Gearbox SDK quota / QuotaInfo-style data.
|
|
19
|
-
*/
|
|
20
|
-
export interface PoolAssetsTableQuotaRow {
|
|
21
|
-
readonly token: Address;
|
|
22
|
-
readonly limit: bigint;
|
|
23
|
-
readonly totalQuoted: bigint;
|
|
24
|
-
readonly rate: bigint;
|
|
25
|
-
}
|
|
16
|
+
/** One quota row — the SDK's {@link QuotaAsset}. */
|
|
17
|
+
export type PoolAssetsTableQuotaRow = QuotaAsset;
|
|
@@ -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';
|