@gearbox-protocol/ui-kit 4.0.0-next.60 → 4.0.0-next.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/accordion/accordion.cjs +1 -1
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/alert-badge/index.cjs +1 -1
- package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
- package/dist/cjs/components/alert-dialog/index.cjs +1 -1
- package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar-frame.cjs +1 -0
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/app-bar/index.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/badge/chip.cjs +1 -1
- package/dist/cjs/components/badge/index.cjs +1 -1
- package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
- package/dist/cjs/components/base/amount-input/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 -1
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/copy-button.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/details-view/details-view.cjs +1 -1
- package/dist/cjs/components/base/details-view/index.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/format-chip-leverage.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -1
- 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/pool-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/position-assets/index.cjs +1 -1
- package/dist/cjs/components/base/position-assets/position-asset-rows.cjs +1 -0
- package/dist/cjs/components/base/position-assets/position-assets.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/index.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs-styles.cjs +1 -0
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
- package/dist/cjs/components/base/stack/stack.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/stat-badge.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/index.cjs +1 -1
- package/dist/cjs/components/base/tabber/is-tabber.cjs +1 -0
- 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/time-to-liquidation-block/ttl-left.cjs +1 -0
- package/dist/cjs/components/base/time-to-liquidation-block/ttl.cjs +1 -0
- 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/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 -1
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact.cjs +1 -0
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -1
- package/dist/cjs/components/base-table/base-table.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/breakpoints/breakpoint-provider.cjs +1 -0
- package/dist/cjs/components/breakpoints/index.cjs +1 -0
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/index.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.variants.cjs +1 -0
- package/dist/cjs/components/buttons/button/index.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/index.cjs +1 -1
- package/dist/cjs/components/cards/card/card.cjs +1 -1
- package/dist/cjs/components/cards/card/index.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/cards/index.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/index.cjs +1 -1
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/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/pool-assets-table/sort-for-field.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/amount-slots.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transaction-confirm-dialog.variants.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/result/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-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-portal.cjs +1 -0
- package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/dialog/index.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/edit-input/edit-input.cjs +1 -1
- package/dist/cjs/components/error-message/error-line-message.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/graph/format-number.cjs +1 -0
- package/dist/cjs/components/graph/formatters.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-vocabulary.cjs +1 -0
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/graph/index.cjs +1 -1
- package/dist/cjs/components/graph/series-config.cjs +1 -0
- package/dist/cjs/components/graph/series-palette.cjs +1 -0
- package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
- package/dist/cjs/components/head-cell/index.cjs +1 -1
- package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
- package/dist/cjs/components/health-factor/index.cjs +1 -1
- package/dist/cjs/components/health-factor/zones.cjs +1 -0
- package/dist/cjs/components/help-tip/help-tip-icon.cjs +1 -0
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/help-tip/index.cjs +1 -1
- package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
- package/dist/cjs/components/icon-button/index.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/input/index.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/index.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/layout/app-footer/index.cjs +1 -1
- package/dist/cjs/components/layout/app-header/app-header.cjs +1 -1
- package/dist/cjs/components/layout/index.cjs +1 -1
- package/dist/cjs/components/legal-agreement/index.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-awaiting-panel.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-config.cjs +1 -0
- package/dist/cjs/components/legal-agreement/legal-agreement-link.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-panel.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-theme.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement.variants.cjs +1 -0
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loading/loading.cjs +1 -1
- package/dist/cjs/components/markdown-text/markdown-text.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/navigation-context/index.cjs +1 -1
- package/dist/cjs/components/navigation-context/navigation-context.cjs +1 -1
- package/dist/cjs/components/navigation-context/navigation-provider.cjs +1 -0
- package/dist/cjs/components/network-icon/network-icon.cjs +1 -1
- package/dist/cjs/components/no-value/index.cjs +1 -0
- package/dist/cjs/components/no-value/no-value.cjs +1 -0
- package/dist/cjs/components/points-icon/points-icon.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -1
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
- package/dist/cjs/components/rwa-feature/rwa-feature.cjs +1 -1
- package/dist/cjs/components/sdk-status-pill/index.cjs +1 -1
- package/dist/cjs/components/sdk-status-pill/sdk-status-pill.cjs +1 -1
- package/dist/cjs/components/search-line/index.cjs +1 -1
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/segmented-control/index.cjs +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/select/index.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/index.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/index.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/index.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/spinner-loader/spinner-loader.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/cjs/components/status-elements/status-elements.cjs +1 -1
- package/dist/cjs/components/tab-control/index.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-item.cjs +1 -0
- package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
- package/dist/cjs/components/table/grid-table.cjs +1 -1
- package/dist/cjs/components/table/index.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/components/text-button/text-button.cjs +1 -1
- package/dist/cjs/components/textarea/index.cjs +1 -1
- package/dist/cjs/components/textarea/textarea.cjs +1 -1
- package/dist/cjs/components/tip-card/index.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon-source.cjs +1 -0
- 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/bn-to-pretty-view.cjs +1 -0
- 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/index.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/truncated-text/truncated-text.cjs +1 -1
- package/dist/cjs/components/typography/index.cjs +1 -1
- package/dist/cjs/components/typography/typography.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/index.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/vspace/vspace.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/index.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown.cjs +1 -0
- package/dist/cjs/configs/tailwind-preset.cjs +1 -1
- package/dist/cjs/hooks/breakpoint-state.cjs +1 -0
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/hooks/use-filter.cjs +1 -1
- package/dist/cjs/hooks/use-media-query.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/internal/format-bps.cjs +1 -0
- package/dist/cjs/utils/internal/format-percent.cjs +1 -0
- package/dist/cjs/utils/internal/is-long-string.cjs +1 -0
- package/dist/cjs/utils/internal/parse-small-number.cjs +1 -0
- package/dist/cjs/utils/internal/z-index-values.cjs +1 -0
- package/dist/cjs/utils/leverage-presets.cjs +1 -1
- package/dist/cjs/utils/parse-input-to-bn.cjs +1 -1
- package/dist/cjs/utils/shorten-string.cjs +1 -1
- package/dist/cjs/utils/sort.cjs +1 -0
- package/dist/cjs/utils/z-index.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +15 -16
- package/dist/esm/components/alert-badge/alert-badge.js +2 -4
- package/dist/esm/components/alert-badge/index.js +2 -3
- package/dist/esm/components/alert-dialog/alert-dialog.js +24 -31
- package/dist/esm/components/alert-dialog/index.js +5 -7
- package/dist/esm/components/alert-modal/alert-modal.js +1 -3
- package/dist/esm/components/app-bar/app-bar-frame.js +67 -0
- package/dist/esm/components/app-bar/app-bar.js +48 -109
- package/dist/esm/components/app-bar/index.js +6 -10
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +78 -141
- package/dist/esm/components/badge/badge.js +3 -5
- package/dist/esm/components/badge/chip.js +8 -9
- package/dist/esm/components/badge/index.js +7 -8
- package/dist/esm/components/base/amount-input/amount-input.js +1 -1
- package/dist/esm/components/base/amount-input/index.js +3 -5
- package/dist/esm/components/base/amount-input/token-select-panel.js +31 -41
- package/dist/esm/components/base/apy-breakdown-body/apy-breakdown-body.js +1 -1
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +3 -4
- package/dist/esm/components/base/detailed-page-title/copy-button.js +27 -36
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +3 -4
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-scope.js +1 -1
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +10 -11
- package/dist/esm/components/base/details-view/details-view.js +1 -1
- package/dist/esm/components/base/details-view/index.js +7 -11
- package/dist/esm/components/base/history-chart/history-chart.js +26 -30
- package/dist/esm/components/base/index.js +151 -167
- package/dist/esm/components/base/info-list/info-list.js +21 -22
- package/dist/esm/components/base/leverage-input/leverage-input.js +3 -5
- package/dist/esm/components/base/leverage-preset-chips/format-chip-leverage.js +6 -0
- package/dist/esm/components/base/leverage-preset-chips/leverage-preset-chips.js +6 -6
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +16 -19
- package/dist/esm/components/base/manage-pane/manage-pane.js +7 -8
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +38 -49
- package/dist/esm/components/base/position-assets/index.js +2 -3
- package/dist/esm/components/base/position-assets/position-asset-rows.js +26 -0
- package/dist/esm/components/base/position-assets/position-assets.js +39 -63
- package/dist/esm/components/base/review-button/review-button.js +9 -10
- package/dist/esm/components/base/section-heading/section-heading.js +7 -8
- package/dist/esm/components/base/segmented-tabs/index.js +4 -5
- package/dist/esm/components/base/segmented-tabs/segmented-tabs-styles.js +4 -0
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +29 -31
- package/dist/esm/components/base/stack/stack.js +7 -8
- package/dist/esm/components/base/stat-badge/stat-badge.js +5 -6
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +47 -57
- package/dist/esm/components/base/tabber/index.js +3 -6
- package/dist/esm/components/base/tabber/is-tabber.js +8 -0
- package/dist/esm/components/base/tabber/tabber.js +43 -46
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +20 -19
- package/dist/esm/components/base/time-to-liquidation-block/ttl-left.js +10 -0
- package/dist/esm/components/base/time-to-liquidation-block/ttl.js +8 -0
- package/dist/esm/components/base/token-amount/token-amount.js +21 -35
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +7 -8
- package/dist/esm/components/base/values/index.js +14 -16
- package/dist/esm/components/base/values/pnl-value.js +8 -9
- package/dist/esm/components/base/values/position-status-badge.js +6 -7
- package/dist/esm/components/base/values/position-type-badge.js +5 -6
- package/dist/esm/components/base/values/price-impact-value.js +5 -14
- package/dist/esm/components/base/values/price-impact.js +7 -0
- package/dist/esm/components/base/values/scalars.js +25 -29
- package/dist/esm/components/base-link/base-link.js +7 -8
- package/dist/esm/components/base-table/base-table-line.js +51 -67
- package/dist/esm/components/base-table/base-table.js +37 -43
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +7 -8
- package/dist/esm/components/breakpoints/breakpoint-provider.js +17 -0
- package/dist/esm/components/breakpoints/index.js +4 -0
- package/dist/esm/components/buttons/back-button/back-button.js +5 -7
- package/dist/esm/components/buttons/back-button/index.js +2 -3
- package/dist/esm/components/buttons/button/button.js +25 -91
- package/dist/esm/components/buttons/button/button.variants.js +72 -0
- package/dist/esm/components/buttons/button/index.js +2 -3
- package/dist/esm/components/buttons/copy-button/copy-button.js +30 -38
- package/dist/esm/components/buttons/external-button/external-button.js +1 -2
- package/dist/esm/components/buttons/index.js +7 -9
- package/dist/esm/components/cards/card/card.js +6 -17
- package/dist/esm/components/cards/card/index.js +2 -3
- package/dist/esm/components/cards/expandable-card/expandable-card.js +5 -6
- package/dist/esm/components/cards/index.js +7 -8
- package/dist/esm/components/checkbox/checkbox-labeled.js +32 -135
- package/dist/esm/components/checkbox/checkbox.js +4 -5
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +4 -5
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +17 -36
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +3 -4
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +3 -4
- package/dist/esm/components/collateral-allocation-tooltip/index.js +3 -7
- package/dist/esm/components/composites/index.js +29 -42
- package/dist/esm/components/composites/notification-center/notification-center.js +17 -18
- package/dist/esm/components/composites/pool-assets-table/index.js +0 -4
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +26 -37
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +30 -41
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +16 -21
- package/dist/esm/components/composites/pool-assets-table/sort-for-field.js +7 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +32 -45
- package/dist/esm/components/composites/tx-preview/confirm/amounts/amount-slots.js +15 -0
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +3 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +14 -14
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +2 -19
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +4 -10
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transaction-confirm-dialog.variants.js +19 -0
- package/dist/esm/components/composites/tx-preview/confirm/index.js +25 -34
- package/dist/esm/components/composites/tx-preview/confirm/result/index.js +7 -9
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +7 -8
- package/dist/esm/components/composites/tx-preview/index.js +25 -34
- package/dist/esm/components/compound-apy/compound-apy.js +36 -43
- package/dist/esm/components/confirm-menu/confirm-menu.js +5 -6
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +1 -2
- package/dist/esm/components/dialog/dialog-container.js +16 -23
- package/dist/esm/components/dialog/dialog-content.js +8 -9
- 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 +3 -4
- package/dist/esm/components/dialog/dialog-header.js +4 -5
- package/dist/esm/components/dialog/dialog-modal-container.js +6 -7
- package/dist/esm/components/dialog/dialog-overlay.js +1 -2
- package/dist/esm/components/dialog/dialog-portal.js +5 -0
- package/dist/esm/components/dialog/dialog-title.js +1 -2
- package/dist/esm/components/dialog/dialog.js +1 -2
- package/dist/esm/components/dialog/index.js +13 -16
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +6 -7
- package/dist/esm/components/edit-input/edit-input.js +3 -4
- package/dist/esm/components/error-message/error-line-message.js +3 -4
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +9 -10
- package/dist/esm/components/formatted-number/formatted-number.js +3 -4
- package/dist/esm/components/graph/default-config.js +1 -1
- package/dist/esm/components/graph/format-number.js +35 -0
- package/dist/esm/components/graph/formatters.js +1 -1
- package/dist/esm/components/graph/graph-tooltip.js +1 -1
- package/dist/esm/components/graph/graph-view.js +20 -22
- package/dist/esm/components/graph/graph-vocabulary.js +119 -0
- package/dist/esm/components/graph/graph.js +308 -431
- package/dist/esm/components/graph/index.js +2 -34
- package/dist/esm/components/graph/series-config.js +1 -0
- package/dist/esm/components/graph/series-palette.js +12 -0
- package/dist/esm/components/head-cell/head-cell.js +38 -50
- package/dist/esm/components/head-cell/index.js +2 -3
- package/dist/esm/components/health-factor/health-factor.js +8 -12
- package/dist/esm/components/health-factor/index.js +2 -5
- package/dist/esm/components/health-factor/zones.js +1 -0
- package/dist/esm/components/help-tip/help-tip-icon.js +41 -0
- package/dist/esm/components/help-tip/help-tip.js +32 -121
- package/dist/esm/components/help-tip/index.js +2 -4
- package/dist/esm/components/icon-button/icon-button.js +11 -14
- package/dist/esm/components/icon-button/index.js +2 -3
- package/dist/esm/components/icons/fa-icon.js +6 -7
- package/dist/esm/components/index.js +452 -646
- package/dist/esm/components/input/index.js +2 -3
- package/dist/esm/components/input/input.js +8 -10
- package/dist/esm/components/label/index.js +2 -3
- package/dist/esm/components/label/label.js +8 -10
- package/dist/esm/components/layout/app-footer/app-footer.js +1 -2
- package/dist/esm/components/layout/app-footer/index.js +2 -3
- package/dist/esm/components/layout/app-header/app-header.js +65 -76
- package/dist/esm/components/layout/index.js +11 -14
- package/dist/esm/components/legal-agreement/index.js +2 -20
- package/dist/esm/components/legal-agreement/legal-agreement-awaiting-panel.js +1 -1
- package/dist/esm/components/legal-agreement/legal-agreement-config.js +1 -0
- package/dist/esm/components/legal-agreement/legal-agreement-link.js +1 -1
- package/dist/esm/components/legal-agreement/legal-agreement-panel.js +1 -1
- package/dist/esm/components/legal-agreement/legal-agreement-theme.js +1 -137
- package/dist/esm/components/legal-agreement/legal-agreement.variants.js +137 -0
- package/dist/esm/components/link/link.js +1 -2
- package/dist/esm/components/loader/loader.js +8 -9
- package/dist/esm/components/loading/loading.js +8 -8
- package/dist/esm/components/markdown-text/markdown-text.js +5 -4
- package/dist/esm/components/modal/modal.js +32 -35
- package/dist/esm/components/navbar-logo/navbar-logo.js +8 -9
- package/dist/esm/components/navigation-context/index.js +2 -3
- package/dist/esm/components/navigation-context/navigation-context.js +13 -24
- package/dist/esm/components/navigation-context/navigation-provider.js +18 -0
- package/dist/esm/components/network-icon/network-icon.js +1 -1
- package/dist/esm/components/no-value/index.js +4 -0
- package/dist/esm/components/{base/values → no-value}/no-value.js +3 -3
- package/dist/esm/components/points-icon/points-icon.js +1 -1
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +3 -4
- package/dist/esm/components/radio-group/radio-group.js +6 -7
- package/dist/esm/components/rounded-image/rounded-image.js +6 -7
- package/dist/esm/components/rwa-feature/rwa-feature.js +1 -1
- package/dist/esm/components/sdk-status-pill/index.js +4 -6
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +14 -15
- package/dist/esm/components/search-line/index.js +2 -5
- package/dist/esm/components/search-line/search-line.js +53 -88
- package/dist/esm/components/segmented-control/index.js +2 -3
- package/dist/esm/components/segmented-control/segmented-control.js +2 -4
- package/dist/esm/components/select/index.js +4 -10
- package/dist/esm/components/select/select.js +36 -63
- package/dist/esm/components/separate-line/separate-line.js +1 -2
- package/dist/esm/components/short-string/short-string.js +7 -7
- package/dist/esm/components/simple-accordion/simple-accordion.js +1 -2
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +3 -4
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +1 -2
- package/dist/esm/components/skeleton/index.js +3 -4
- package/dist/esm/components/skeleton/skeleton-stack.js +8 -9
- package/dist/esm/components/skeleton/skeleton.js +12 -14
- package/dist/esm/components/slider/index.js +1 -26
- package/dist/esm/components/slider/slider-utils.js +2 -2
- package/dist/esm/components/slider/slider.js +6 -7
- package/dist/esm/components/spinner/index.js +2 -3
- package/dist/esm/components/spinner/spinner.js +18 -33
- package/dist/esm/components/spinner-loader/spinner-loader.js +6 -7
- package/dist/esm/components/split-list/split-list.js +5 -6
- package/dist/esm/components/status-elements/status-elements.js +5 -6
- package/dist/esm/components/tab-control/index.js +2 -3
- package/dist/esm/components/tab-control/tab-control.js +49 -84
- package/dist/esm/components/tab-control/tab-item.js +40 -0
- package/dist/esm/components/table/grid-loading-line.js +3 -4
- package/dist/esm/components/table/grid-table.js +67 -96
- package/dist/esm/components/table/index.js +9 -29
- package/dist/esm/components/table/table-sm.js +9 -10
- package/dist/esm/components/table/table.js +9 -13
- package/dist/esm/components/tabs/tabs.js +11 -12
- package/dist/esm/components/text-button/text-button.js +14 -15
- package/dist/esm/components/textarea/index.js +2 -3
- package/dist/esm/components/textarea/textarea.js +4 -6
- package/dist/esm/components/tip-card/index.js +2 -3
- package/dist/esm/components/tip-card/tip-card.js +26 -41
- package/dist/esm/{utils → components/token-icon}/token-icon-source.js +1 -1
- package/dist/esm/components/token-icon/token-icon.js +13 -14
- package/dist/esm/components/token-symbol/token-symbol.js +11 -12
- package/dist/esm/{utils → components/token-template}/bn-to-pretty-view.js +2 -2
- package/dist/esm/components/token-template/token-template.js +10 -15
- package/dist/esm/components/tooltip/simple-tooltip.js +22 -23
- package/dist/esm/components/tooltip/tooltip.js +5 -6
- package/dist/esm/components/trading-view/index.js +2 -4
- package/dist/esm/components/trading-view/trading-view.js +160 -167
- package/dist/esm/components/truncated-text/truncated-text.js +7 -8
- package/dist/esm/components/typography/index.js +2 -3
- package/dist/esm/components/typography/typography.js +5 -7
- package/dist/esm/components/vertical-indicator/index.js +2 -3
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +8 -11
- package/dist/esm/components/vspace/vspace.js +6 -7
- package/dist/esm/components/with-copy/with-copy.js +38 -155
- package/dist/esm/components/yield-breakdown-tooltip/index.js +2 -3
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +19 -172
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown.js +158 -0
- package/dist/esm/configs/tailwind-preset.js +0 -6
- package/dist/esm/hooks/breakpoint-state.js +54 -0
- package/dist/esm/hooks/index.js +13 -18
- package/dist/esm/hooks/use-copy-to-clipboard.js +29 -0
- package/dist/esm/hooks/use-debounce-call.js +20 -5
- package/dist/esm/hooks/use-filter.js +13 -17
- package/dist/esm/hooks/use-media-query.js +1 -1
- package/dist/esm/index.js +494 -742
- package/dist/esm/locale/en.json.js +0 -112
- package/dist/esm/utils/format-money.js +11 -48
- package/dist/esm/utils/index.js +27 -78
- package/dist/esm/utils/internal/format-bps.js +7 -0
- package/dist/esm/utils/internal/format-percent.js +36 -0
- package/dist/esm/utils/internal/is-long-string.js +6 -0
- package/dist/esm/utils/internal/parse-small-number.js +38 -0
- package/dist/esm/utils/internal/z-index-values.js +13 -0
- package/dist/esm/utils/leverage-presets.js +4 -8
- package/dist/esm/utils/parse-input-to-bn.js +41 -81
- package/dist/esm/utils/shorten-string.js +3 -6
- package/dist/esm/utils/sort.js +1 -0
- package/dist/esm/utils/z-index.js +6 -15
- package/dist/globals.css +1 -1
- package/dist/types/components/alert-badge/alert-badge.d.ts +2 -2
- package/dist/types/components/alert-dialog/alert-dialog.d.ts +5 -3
- package/dist/types/components/app-bar/app-bar-frame.d.ts +57 -0
- package/dist/types/components/app-bar/app-bar.d.ts +0 -52
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +3 -55
- package/dist/types/components/badge/badge.d.ts +2 -2
- package/dist/types/components/base/amount-input/index.d.ts +0 -1
- package/dist/types/components/base/details-view/index.d.ts +1 -2
- package/dist/types/components/base/index.d.ts +0 -1
- package/dist/types/components/base/info-list/info-list.d.ts +3 -1
- package/dist/types/components/base/leverage-preset-chips/format-chip-leverage.d.ts +5 -0
- package/dist/types/components/base/more-accordion/more-accordion.d.ts +6 -1
- package/dist/types/components/base/position-assets/position-asset-rows.d.ts +23 -0
- package/dist/types/components/base/position-assets/position-assets.d.ts +2 -20
- package/dist/types/components/base/segmented-tabs/segmented-tabs-styles.d.ts +5 -0
- package/dist/types/components/base/segmented-tabs/segmented-tabs.d.ts +0 -2
- package/dist/types/components/base/tabber/index.d.ts +0 -1
- package/dist/types/components/base/tabber/is-tabber.d.ts +6 -0
- package/dist/types/components/base/tabber/tabber.d.ts +0 -1
- package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +1 -1
- package/dist/types/{utils/ttl.d.ts → components/base/time-to-liquidation-block/ttl-left.d.ts} +0 -15
- package/dist/types/components/base/time-to-liquidation-block/ttl.d.ts +15 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +1 -1
- package/dist/types/components/base/values/index.d.ts +1 -1
- package/dist/types/components/base/values/price-impact-value.d.ts +0 -14
- package/dist/types/components/base/values/price-impact.d.ts +14 -0
- package/dist/types/components/base/values/scalars.d.ts +0 -9
- package/dist/types/components/base-table/base-table-line.d.ts +1 -3
- package/dist/types/components/breakpoints/breakpoint-provider.d.ts +12 -0
- package/dist/types/components/breakpoints/index.d.ts +1 -0
- package/dist/types/components/buttons/back-button/back-button.d.ts +1 -1
- package/dist/types/components/buttons/button/button.d.ts +2 -6
- package/dist/types/components/buttons/button/button.variants.d.ts +10 -0
- package/dist/types/components/cards/card/card.d.ts +0 -6
- package/dist/types/components/client-adapters/styled-dialog-container/styled-dialog-container.d.ts +5 -6
- package/dist/types/components/collateral-allocation-tooltip/index.d.ts +1 -2
- package/dist/types/components/composites/pool-assets-table/index.d.ts +0 -2
- package/dist/types/components/composites/pool-assets-table/sort-for-field.d.ts +6 -0
- package/dist/types/components/composites/pool-assets-table/types.d.ts +2 -1
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +1 -45
- package/dist/types/components/composites/tx-preview/confirm/amounts/amount-slots.d.ts +51 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/constants.d.ts +0 -10
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/transaction-confirm-dialog.variants.d.ts +10 -0
- package/dist/types/components/composites/tx-preview/confirm/result/index.d.ts +0 -1
- package/dist/types/components/dialog/dialog-container.d.ts +1 -2
- package/dist/types/components/dialog/dialog-portal.d.ts +7 -0
- package/dist/types/components/dialog/dialog.d.ts +6 -2
- package/dist/types/components/dialog/index.d.ts +0 -1
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +5 -0
- package/dist/types/components/formatted-number/formatted-number.d.ts +1 -1
- package/dist/types/{utils → components/graph}/format-number.d.ts +0 -23
- package/dist/types/components/graph/formatters.d.ts +2 -6
- package/dist/types/components/graph/graph-tooltip.d.ts +1 -1
- package/dist/types/components/graph/graph-view.d.ts +2 -2
- package/dist/types/components/graph/graph-vocabulary.d.ts +44 -0
- package/dist/types/components/graph/graph.d.ts +4 -84
- package/dist/types/components/graph/index.d.ts +2 -7
- package/dist/types/components/graph/series-config.d.ts +31 -0
- package/dist/types/components/graph/series-palette.d.ts +13 -0
- package/dist/types/components/head-cell/head-cell.d.ts +0 -37
- package/dist/types/components/health-factor/health-factor.d.ts +2 -9
- package/dist/types/components/health-factor/zones.d.ts +6 -0
- package/dist/types/components/help-tip/help-tip-icon.d.ts +17 -0
- package/dist/types/components/help-tip/help-tip.d.ts +1 -26
- package/dist/types/components/icon-button/icon-button.d.ts +2 -2
- package/dist/types/components/index.d.ts +2 -6
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/label/label.d.ts +3 -9
- package/dist/types/components/layout/app-footer/app-footer.d.ts +0 -7
- package/dist/types/components/layout/index.d.ts +0 -1
- package/dist/types/components/legal-agreement/index.d.ts +0 -2
- package/dist/types/components/legal-agreement/legal-agreement-config.d.ts +53 -0
- package/dist/types/components/legal-agreement/legal-agreement-dialog.d.ts +1 -47
- package/dist/types/components/legal-agreement/legal-agreement-panel.d.ts +1 -1
- package/dist/types/components/legal-agreement/legal-agreement-theme.d.ts +0 -33
- package/dist/types/components/legal-agreement/legal-agreement.stories-config.d.ts +1 -1
- package/dist/types/components/legal-agreement/legal-agreement.variants.d.ts +33 -0
- package/dist/types/components/modal/modal.d.ts +3 -3
- package/dist/types/components/navigation-context/index.d.ts +1 -1
- package/dist/types/components/navigation-context/navigation-context.d.ts +1 -27
- package/dist/types/components/navigation-context/navigation-provider.d.ts +29 -0
- package/dist/types/components/no-value/index.d.ts +1 -0
- package/dist/types/components/sdk-status-pill/index.d.ts +0 -1
- package/dist/types/components/search-line/search-line.d.ts +1 -44
- package/dist/types/components/segmented-control/segmented-control.d.ts +1 -4
- package/dist/types/components/select/select.d.ts +3 -14
- package/dist/types/components/skeleton/skeleton.d.ts +1 -1
- package/dist/types/components/slider/index.d.ts +0 -6
- package/dist/types/components/slider/slider-utils.d.ts +1 -1
- package/dist/types/components/spinner/spinner.d.ts +0 -12
- package/dist/types/components/status-elements/status-elements.d.ts +1 -1
- package/dist/types/components/tab-control/tab-control.d.ts +5 -13
- package/dist/types/components/tab-control/tab-item.d.ts +13 -0
- package/dist/types/components/table/grid-table.d.ts +1 -21
- package/dist/types/components/table/index.d.ts +0 -3
- package/dist/types/components/table/table.d.ts +1 -1
- package/dist/types/components/text-button/text-button.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/dist/types/components/tip-card/tip-card.d.ts +5 -5
- package/dist/types/components/token-icon/token-icon.d.ts +1 -1
- package/dist/types/{utils → components/token-template}/bn-to-pretty-view.d.ts +1 -1
- package/dist/types/components/token-template/token-template.d.ts +1 -1
- package/dist/types/components/trading-view/index.d.ts +0 -1
- package/dist/types/components/typography/typography.d.ts +2 -2
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +3 -3
- package/dist/types/components/vspace/vspace.d.ts +1 -1
- package/dist/types/components/with-copy/with-copy.d.ts +1 -23
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +0 -33
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown.d.ts +38 -0
- package/dist/types/configs/tailwind-preset.d.ts +0 -6
- package/dist/types/{components/breakpoint-provider.d.ts → hooks/breakpoint-state.d.ts} +0 -12
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/use-copy-to-clipboard.d.ts +11 -0
- package/dist/types/hooks/use-filter.d.ts +1 -8
- package/dist/types/hooks/use-media-query.d.ts +3 -0
- package/dist/types/index.d.ts +7 -10
- package/dist/types/locale/en.json.d.ts +2 -128
- package/dist/types/utils/format-money.d.ts +0 -72
- package/dist/types/utils/index.d.ts +1 -12
- package/dist/types/utils/internal/format-bps.d.ts +10 -0
- package/dist/types/utils/internal/format-percent.d.ts +57 -0
- package/dist/types/utils/internal/is-long-string.d.ts +5 -0
- package/dist/types/utils/internal/parse-small-number.d.ts +14 -0
- package/dist/types/utils/internal/z-index-values.d.ts +27 -0
- package/dist/types/utils/leverage-presets.d.ts +0 -2
- package/dist/types/utils/parse-input-to-bn.d.ts +1 -10
- package/dist/types/utils/shorten-string.d.ts +0 -1
- package/dist/types/utils/sort.d.ts +15 -0
- package/dist/types/utils/z-index.d.ts +1 -27
- package/package.json +4 -2
- package/src/styles/base.css +0 -8
- package/src/styles/theme.css +0 -8
- package/dist/cjs/components/base/values/no-value.cjs +0 -1
- package/dist/cjs/components/breakpoint-provider.cjs +0 -1
- package/dist/cjs/hooks/use-debounce.cjs +0 -1
- package/dist/cjs/utils/bn-to-pretty-view.cjs +0 -1
- package/dist/cjs/utils/format-number.cjs +0 -1
- package/dist/cjs/utils/token-icon-source.cjs +0 -1
- package/dist/cjs/utils/ttl.cjs +0 -1
- package/dist/esm/components/breakpoint-provider.js +0 -67
- package/dist/esm/hooks/use-debounce.js +0 -21
- package/dist/esm/utils/format-number.js +0 -77
- package/dist/esm/utils/ttl.js +0 -17
- package/dist/types/hooks/use-debounce.d.ts +0 -17
- /package/dist/cjs/{utils → components/graph}/colors.cjs +0 -0
- /package/dist/cjs/{utils/loading.cjs → components/loading/loading-progress.cjs} +0 -0
- /package/dist/cjs/components/rwa-styles/{index.cjs → rwa-gradient.cjs} +0 -0
- /package/dist/cjs/{utils/math.cjs → components/slider/slider-math.cjs} +0 -0
- /package/dist/cjs/components/{base/spacing.cjs → vspace/vspace-spacing.cjs} +0 -0
- /package/dist/cjs/utils/{apy-breakdown.cjs → internal/apy-breakdown.cjs} +0 -0
- /package/dist/cjs/utils/{bn-to-input-view.cjs → internal/bn-to-input-view.cjs} +0 -0
- /package/dist/cjs/utils/{bps.cjs → internal/bps-to-percent.cjs} +0 -0
- /package/dist/cjs/utils/{format-asset-amount.cjs → internal/format-asset-amount.cjs} +0 -0
- /package/dist/cjs/utils/{network-icons.cjs → internal/network-icons.cjs} +0 -0
- /package/dist/cjs/utils/{static.cjs → internal/static.cjs} +0 -0
- /package/dist/esm/{utils → components/graph}/colors.js +0 -0
- /package/dist/esm/{utils/loading.js → components/loading/loading-progress.js} +0 -0
- /package/dist/esm/components/rwa-styles/{index.js → rwa-gradient.js} +0 -0
- /package/dist/esm/{utils/math.js → components/slider/slider-math.js} +0 -0
- /package/dist/esm/components/{base/spacing.js → vspace/vspace-spacing.js} +0 -0
- /package/dist/esm/utils/{apy-breakdown.js → internal/apy-breakdown.js} +0 -0
- /package/dist/esm/utils/{bn-to-input-view.js → internal/bn-to-input-view.js} +0 -0
- /package/dist/esm/utils/{bps.js → internal/bps-to-percent.js} +0 -0
- /package/dist/esm/utils/{format-asset-amount.js → internal/format-asset-amount.js} +0 -0
- /package/dist/esm/utils/{network-icons.js → internal/network-icons.js} +0 -0
- /package/dist/esm/utils/{static.js → internal/static.js} +0 -0
- /package/dist/types/{utils → components/graph}/colors.d.ts +0 -0
- /package/dist/types/{utils/loading.d.ts → components/loading/loading-progress.d.ts} +0 -0
- /package/dist/types/components/{base/values → no-value}/no-value.d.ts +0 -0
- /package/dist/types/components/rwa-styles/{index.d.ts → rwa-gradient.d.ts} +0 -0
- /package/dist/types/{utils/math.d.ts → components/slider/slider-math.d.ts} +0 -0
- /package/dist/types/{utils → components/token-icon}/token-icon-source.d.ts +0 -0
- /package/dist/types/components/{base/spacing.d.ts → vspace/vspace-spacing.d.ts} +0 -0
- /package/dist/types/utils/{apy-breakdown.d.ts → internal/apy-breakdown.d.ts} +0 -0
- /package/dist/types/utils/{bn-to-input-view.d.ts → internal/bn-to-input-view.d.ts} +0 -0
- /package/dist/types/utils/{bps.d.ts → internal/bps-to-percent.d.ts} +0 -0
- /package/dist/types/utils/{format-asset-amount.d.ts → internal/format-asset-amount.d.ts} +0 -0
- /package/dist/types/utils/{network-icons.d.ts → internal/network-icons.d.ts} +0 -0
- /package/dist/types/utils/{static.d.ts → internal/static.d.ts} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FilterSortField, SortType } from '../../../utils/sort';
|
|
2
|
+
/**
|
|
3
|
+
* Sort state of a single column. Internal: the kit's own table heads read it,
|
|
4
|
+
* while consumers sort through `useSort` and `getSortForFields`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getSortForField: <T>(s: T, state: FilterSortField<T> | null) => SortType | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SortSetterFunction } from '../../../hooks';
|
|
2
|
+
import { SortField } from '../../../utils/sort';
|
|
2
3
|
/** Column identifiers used by the pool assets table header sort controls. */
|
|
3
4
|
export type PoolAssetsSortFields = "name" | "exposure" | "cap" | "capUtilization";
|
|
4
5
|
/**
|
|
@@ -1,40 +1,10 @@
|
|
|
1
|
-
import { TokenAmount } from '@gearbox-protocol/sdk/model';
|
|
2
1
|
import { VariantProps } from 'class-variance-authority';
|
|
3
2
|
import { default as React } from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import { AmountSource } from './amount-slots';
|
|
5
4
|
declare const rootVariants: (props?: ({
|
|
6
5
|
position?: "first" | "last" | "inBetween" | "solo" | null | undefined;
|
|
7
6
|
size?: "sm" | "md" | null | undefined;
|
|
8
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
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
8
|
export type TransactionConfirmAmountFieldProps = VariantProps<typeof rootVariants> & AmountSource & {
|
|
39
9
|
readonly label: React.ReactNode;
|
|
40
10
|
readonly loading?: boolean;
|
|
@@ -44,19 +14,5 @@ export type TransactionConfirmAmountFieldProps = VariantProps<typeof rootVariant
|
|
|
44
14
|
approximateSymbol?: string;
|
|
45
15
|
};
|
|
46
16
|
};
|
|
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
17
|
export declare function TransactionConfirmAmountField(props: TransactionConfirmAmountFieldProps): React.ReactElement;
|
|
62
18
|
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { TokenAmount } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { TokenTemplateProps } from '../../../../token-template';
|
|
4
|
+
/**
|
|
5
|
+
* The slot vocabulary of TransactionConfirmAmountField and the step that fills
|
|
6
|
+
* it. Internal: the field is public, the shape of its two slots is the kit's
|
|
7
|
+
* own business.
|
|
8
|
+
*/
|
|
9
|
+
export type PrimarySlot = {
|
|
10
|
+
readonly value: TokenTemplateProps["value"];
|
|
11
|
+
readonly token?: TokenTemplateProps["token"];
|
|
12
|
+
} | {
|
|
13
|
+
node: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export 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
|
+
export 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
|
+
/**
|
|
39
|
+
* One SDK amount already carries all three things the field shows: the number,
|
|
40
|
+
* its token and the dollar value. Callers used to take it apart and hand the
|
|
41
|
+
* pieces back through two props; passing `amount` lets them stop.
|
|
42
|
+
*
|
|
43
|
+
* Takes the whole prop union so the slot form is picked by the discriminant
|
|
44
|
+
* rather than by a cast — `amount` is `TokenAmount | null`, never `undefined`,
|
|
45
|
+
* so a caller holding `TokenAmount | undefined` has to say `?? null` and
|
|
46
|
+
* cannot land here with nothing at all.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveAmountSlots(source: AmountSource): {
|
|
49
|
+
readonly primaryAmount: PrimarySlot;
|
|
50
|
+
readonly secondaryAmount: SecondarySlot | undefined;
|
|
51
|
+
};
|
|
@@ -5,13 +5,3 @@ export declare class TransactionConfirmDialogTest {
|
|
|
5
5
|
static result: string;
|
|
6
6
|
}
|
|
7
7
|
/** Outer dialog card: mobile-first full width, fixed 560px from md up. */
|
|
8
|
-
export declare const transactionConfirmDialogShellVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
9
|
-
/**
|
|
10
|
-
* Modal confirm: use available viewport height; inner preview scrolls only when
|
|
11
|
-
* content overflows (see `transactionConfirmPreviewScrollVariants`).
|
|
12
|
-
*/
|
|
13
|
-
export declare const transactionConfirmModalContainerVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
14
|
-
/** Scrollable preview column inside confirm / execute body. */
|
|
15
|
-
export declare const transactionConfirmPreviewScrollVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
16
|
-
/** Inner shell content: fill the padded dialog container without re-applying width. */
|
|
17
|
-
export declare const transactionConfirmShellContentVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const transactionConfirmDialogShellVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Modal confirm: use available viewport height; inner preview scrolls only when
|
|
4
|
+
* content overflows (see `transactionConfirmPreviewScrollVariants`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const transactionConfirmModalContainerVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
7
|
+
/** Scrollable preview column inside confirm / execute body. */
|
|
8
|
+
export declare const transactionConfirmPreviewScrollVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
9
|
+
/** Inner shell content: fill the padded dialog container without re-applying width. */
|
|
10
|
+
export declare const transactionConfirmShellContentVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -2,9 +2,8 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const dialogContainerVariants: (props?: ({
|
|
4
4
|
padding?: boolean | "md" | "xl" | null | undefined;
|
|
5
|
-
colorTheme?: "default" | "modal" | "
|
|
5
|
+
colorTheme?: "default" | "modal" | "box" | null | undefined;
|
|
6
6
|
maxWidth?: "full" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
7
|
-
sticky?: boolean | null | undefined;
|
|
8
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
8
|
export interface DialogContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dialogContainerVariants> {
|
|
10
9
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
|
+
/**
|
|
3
|
+
* Where a dialog renders. Its own module, outside the barrel: DialogContent is
|
|
4
|
+
* the only thing that portals, and a consumer composes dialogs from Dialog and
|
|
5
|
+
* DialogContent rather than from radix parts.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DialogPortal: import('react').FC<DialogPrimitive.DialogPortalProps>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
2
|
declare const Dialog: import('react').FC<DialogPrimitive.DialogProps>;
|
|
3
|
+
/**
|
|
4
|
+
* No consumer uses it: a dialog here is opened from the modal store. Kept
|
|
5
|
+
* because it is one alias completing the radix surface, and the stories open
|
|
6
|
+
* their dialogs through it.
|
|
7
|
+
*/
|
|
3
8
|
declare const DialogTrigger: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
|
|
5
|
-
export { Dialog, DialogPortal, DialogTrigger };
|
|
9
|
+
export { Dialog, DialogTrigger };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
2
|
import type * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Looks like a passthrough, and is not: radix defaults `modal` to true, which
|
|
5
|
+
* locks body scroll while a menu is open. Every menu in the kit wants the
|
|
6
|
+
* opposite, so the default is flipped here rather than at each call.
|
|
7
|
+
*/
|
|
3
8
|
declare const DropdownMenu: {
|
|
4
9
|
({ modal, ...props }: React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
|
|
5
10
|
displayName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParseSmallNumberResult } from '../../utils';
|
|
1
|
+
import { ParseSmallNumberResult } from '../../utils/internal/parse-small-number';
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
export interface FormattedNumberStringProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
4
|
/**
|
|
@@ -2,24 +2,6 @@
|
|
|
2
2
|
* Utility functions for formatting numbers with various options
|
|
3
3
|
* Used by graph formatters and liquidation components
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* Determines the appropriate number of decimal places based on the scaled value.
|
|
7
|
-
* If the value is small (< 10), we need more precision to distinguish between values.
|
|
8
|
-
*/
|
|
9
|
-
export declare function getAdaptiveDecimals(scaledValue: number): number;
|
|
10
|
-
interface FormatNumberOptions {
|
|
11
|
-
/** Use short format with K/M/B suffixes */
|
|
12
|
-
format?: "full" | "short";
|
|
13
|
-
/** Minimum fraction digits */
|
|
14
|
-
minimumFractionDigits?: number;
|
|
15
|
-
/** Maximum fraction digits */
|
|
16
|
-
maximumFractionDigits?: number;
|
|
17
|
-
/** Threshold for exponential notation */
|
|
18
|
-
maxExponentialThreshold?: number;
|
|
19
|
-
/** Automatically determine decimals based on magnitude */
|
|
20
|
-
adaptiveDecimals?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare function formatNumberWithSuffix(amount: number, options?: FormatNumberOptions): string;
|
|
23
5
|
/**
|
|
24
6
|
* Convert a number to significant digits string
|
|
25
7
|
* For small values (< 1), uses true significant digits
|
|
@@ -38,10 +20,6 @@ export declare function toSignificantDigits(value: number, decimals: number): st
|
|
|
38
20
|
* Check if a value is below display threshold
|
|
39
21
|
*/
|
|
40
22
|
export declare function isBelowDisplayThreshold(value: number): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Format very small values with threshold indicator
|
|
43
|
-
*/
|
|
44
|
-
export declare function formatSmallValue(value: number, suffix?: string): string | null;
|
|
45
23
|
/**
|
|
46
24
|
* Constants for number formatting
|
|
47
25
|
*/
|
|
@@ -62,4 +40,3 @@ export declare const FORMAT_CONSTANTS: {
|
|
|
62
40
|
* ```
|
|
63
41
|
*/
|
|
64
42
|
export declare function formatPrice(value: number, decimals?: number, maxSmallDecimals?: number): string;
|
|
65
|
-
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
+
import { YMeasureUnits } from './graph-vocabulary';
|
|
1
2
|
import { Time, TickMarkType } from 'lightweight-charts';
|
|
3
|
+
export type { YMeasureUnits };
|
|
2
4
|
export interface Point {
|
|
3
5
|
time: Time | number;
|
|
4
6
|
value: number;
|
|
5
7
|
}
|
|
6
|
-
interface Flavoring<FlavorT> {
|
|
7
|
-
_type?: FlavorT;
|
|
8
|
-
}
|
|
9
|
-
type Flavor<T, FlavorT> = T & Flavoring<FlavorT>;
|
|
10
|
-
export type YMeasureUnits = "$" | "%" | "none" | Flavor<string, "token">;
|
|
11
8
|
/**
|
|
12
9
|
* Format a number with full precision, only removing trailing zeros
|
|
13
10
|
* Used for displaying exact current values on graphs
|
|
@@ -52,4 +49,3 @@ export interface XFormatters {
|
|
|
52
49
|
export declare const getXFormatters: (unit: XMeasureUnits, points?: Point[]) => XFormatters;
|
|
53
50
|
/** @deprecated Use getXFormatters instead */
|
|
54
51
|
export declare const getXFormatter: (unit: XMeasureUnits, points?: Point[]) => XFormatter;
|
|
55
|
-
export {};
|
|
@@ -4,7 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
declare const graphViewVariants: (props?: ({
|
|
5
5
|
variant?: "default" | "outlined" | "ghost" | "elevated" | "plain" | null | undefined;
|
|
6
6
|
size?: "full" | "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
7
|
-
padding?: "
|
|
7
|
+
padding?: "default" | "none" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
10
10
|
* GraphView component props
|
|
@@ -189,4 +189,4 @@ declare const GraphView: React.ForwardRefExoticComponent<GraphViewProps & React.
|
|
|
189
189
|
* ```
|
|
190
190
|
*/
|
|
191
191
|
export declare function GraphViewWithData({ series, data, lineColor, color, topColor, bottomColor, graphId, onUnselectSeries, loading, title, description, toolbar, emptyMessage, error, containerClassName, variant, size, padding, yMeasureUnit, showCurrentValue, ...restProps }: GraphViewWithDataProps): React.ReactElement;
|
|
192
|
-
export { GraphView
|
|
192
|
+
export { GraphView };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LineStyle as LineStyleEnum, LineWidth } from 'lightweight-charts';
|
|
2
|
+
interface Flavoring<FlavorT> {
|
|
3
|
+
_type?: FlavorT;
|
|
4
|
+
}
|
|
5
|
+
type Flavor<T, FlavorT> = T & Flavoring<FlavorT>;
|
|
6
|
+
export type YMeasureUnits = "$" | "%" | "none" | Flavor<string, "token">;
|
|
7
|
+
export interface PriceLineConfig {
|
|
8
|
+
/** Y value (price) where the horizontal line is drawn. */
|
|
9
|
+
price: number;
|
|
10
|
+
/**
|
|
11
|
+
* `id` (preferred) or display `label` of the series to attach the line to.
|
|
12
|
+
* When omitted, the line is attached to the first series that has data.
|
|
13
|
+
*/
|
|
14
|
+
seriesLabel?: string;
|
|
15
|
+
/** Line color. Defaults to the destructive theme color. */
|
|
16
|
+
color?: string;
|
|
17
|
+
/** Text shown next to the line on the price axis. */
|
|
18
|
+
title?: string;
|
|
19
|
+
/** Line thickness (1–4). Default 1. */
|
|
20
|
+
lineWidth?: LineWidth;
|
|
21
|
+
/** Line dash style. Default dashed. */
|
|
22
|
+
lineStyle?: LineStyleEnum;
|
|
23
|
+
/** Whether to render the value label on the price axis. Default true. */
|
|
24
|
+
axisLabelVisible?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface PriceZoneConfig {
|
|
27
|
+
/** Upper price bound. Omit to extend the band to the top of the pane. */
|
|
28
|
+
priceTop?: number;
|
|
29
|
+
/** Lower price bound. Omit to extend the band to the bottom of the pane. */
|
|
30
|
+
priceBottom?: number;
|
|
31
|
+
/** Fill color — use a translucent value. Defaults to a translucent destructive tint. */
|
|
32
|
+
color?: string;
|
|
33
|
+
/**
|
|
34
|
+
* `id` (preferred) or display `label` of the series whose price scale the
|
|
35
|
+
* band is drawn against. When omitted, the first series with data is used.
|
|
36
|
+
*/
|
|
37
|
+
seriesLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare const DEFAULT_SERIES_COLORS: {
|
|
40
|
+
line: string;
|
|
41
|
+
top: string;
|
|
42
|
+
bottom: string;
|
|
43
|
+
}[];
|
|
44
|
+
export {};
|
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
import { ChartOptions, DeepPartial,
|
|
1
|
+
import { ChartOptions, DeepPartial, Time } from 'lightweight-charts';
|
|
2
2
|
import { Point, YMeasureUnits } from './formatters';
|
|
3
3
|
import { GraphTooltipProps } from './graph-tooltip';
|
|
4
|
+
import { PriceLineConfig, PriceZoneConfig } from './graph-vocabulary';
|
|
5
|
+
import { SeriesConfig, SeriesPriceScaleId } from './series-config';
|
|
6
|
+
export type { SeriesChartType, SeriesConfig, SeriesPriceScaleId, } from './series-config';
|
|
4
7
|
import * as React from "react";
|
|
5
|
-
export type SeriesPriceScaleId = "left" | "right";
|
|
6
|
-
export type SeriesChartType = "area" | "line";
|
|
7
|
-
export interface SeriesConfig {
|
|
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;
|
|
15
|
-
label: string;
|
|
16
|
-
/** Line color (area stroke). Alias: prefer `lineColor` for clarity; if both set, `lineColor` wins. */
|
|
17
|
-
color?: string;
|
|
18
|
-
/** Line color — same as `color`; use for explicit line-only color. */
|
|
19
|
-
lineColor?: string;
|
|
20
|
-
/** Upper gradient of the area fill */
|
|
21
|
-
topColor?: string;
|
|
22
|
-
/** Lower gradient of the area fill */
|
|
23
|
-
bottomColor?: string;
|
|
24
|
-
yMeasureUnit?: YMeasureUnits;
|
|
25
|
-
/** Price scale when `dualYAxis` is enabled on Graph. */
|
|
26
|
-
priceScaleId?: SeriesPriceScaleId;
|
|
27
|
-
/** Render as line (no fill) instead of area. */
|
|
28
|
-
seriesType?: SeriesChartType;
|
|
29
|
-
/** Line dash style (line series only). */
|
|
30
|
-
lineStyle?: LineStyle;
|
|
31
|
-
}
|
|
32
8
|
/** Chart-instance key: stable `id` when set, otherwise the display `label`. */
|
|
33
9
|
export declare function seriesIdentity(series: Pick<SeriesConfig, "id" | "label">): string;
|
|
34
10
|
export interface VisibleLogicalRangeInput {
|
|
@@ -70,50 +46,6 @@ export type VerticalLineOptions = Partial<{
|
|
|
70
46
|
*/
|
|
71
47
|
tooltipText: string;
|
|
72
48
|
}>;
|
|
73
|
-
/**
|
|
74
|
-
* Horizontal reference line drawn at a fixed Y (price) value, e.g. a
|
|
75
|
-
* liquidation price level. Rendered as a native lightweight-charts price line
|
|
76
|
-
* attached to a series, so it tracks the series' price scale and does not
|
|
77
|
-
* affect autoscale or tooltips.
|
|
78
|
-
*/
|
|
79
|
-
export interface PriceLineConfig {
|
|
80
|
-
/** Y value (price) where the horizontal line is drawn. */
|
|
81
|
-
price: number;
|
|
82
|
-
/**
|
|
83
|
-
* `id` (preferred) or display `label` of the series to attach the line to.
|
|
84
|
-
* When omitted, the line is attached to the first series that has data.
|
|
85
|
-
*/
|
|
86
|
-
seriesLabel?: string;
|
|
87
|
-
/** Line color. Defaults to the destructive theme color. */
|
|
88
|
-
color?: string;
|
|
89
|
-
/** Text shown next to the line on the price axis. */
|
|
90
|
-
title?: string;
|
|
91
|
-
/** Line thickness (1–4). Default 1. */
|
|
92
|
-
lineWidth?: LineWidth;
|
|
93
|
-
/** Line dash style. Default dashed. */
|
|
94
|
-
lineStyle?: LineStyleEnum;
|
|
95
|
-
/** Whether to render the value label on the price axis. Default true. */
|
|
96
|
-
axisLabelVisible?: boolean;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Shaded horizontal band drawn between two Y (price) values across the full
|
|
100
|
-
* width of the chart — e.g. a liquidation "danger zone" below a health-factor
|
|
101
|
-
* threshold. Rendered behind the series as a lightweight-charts primitive, so
|
|
102
|
-
* it tracks the series' price scale and does not affect tooltips.
|
|
103
|
-
*/
|
|
104
|
-
export interface PriceZoneConfig {
|
|
105
|
-
/** Upper price bound. Omit to extend the band to the top of the pane. */
|
|
106
|
-
priceTop?: number;
|
|
107
|
-
/** Lower price bound. Omit to extend the band to the bottom of the pane. */
|
|
108
|
-
priceBottom?: number;
|
|
109
|
-
/** Fill color — use a translucent value. Defaults to a translucent destructive tint. */
|
|
110
|
-
color?: string;
|
|
111
|
-
/**
|
|
112
|
-
* `id` (preferred) or display `label` of the series whose price scale the
|
|
113
|
-
* band is drawn against. When omitted, the first series with data is used.
|
|
114
|
-
*/
|
|
115
|
-
seriesLabel?: string;
|
|
116
|
-
}
|
|
117
49
|
/**
|
|
118
50
|
* Returns formatted label and value strings for a vertical line tooltip.
|
|
119
51
|
* Used by Graph and by tests.
|
|
@@ -146,18 +78,6 @@ export declare function getStepForwardValue(data: ReadonlyArray<Point>, crosshai
|
|
|
146
78
|
* Greens/teals are spread out so that when only a subset of series is visible,
|
|
147
79
|
* similar colors are not repeated.
|
|
148
80
|
*/
|
|
149
|
-
export declare const DEFAULT_SERIES_COLORS: {
|
|
150
|
-
line: string;
|
|
151
|
-
top: string;
|
|
152
|
-
bottom: string;
|
|
153
|
-
}[];
|
|
154
|
-
export type SeriesColorPalette = (typeof DEFAULT_SERIES_COLORS)[number];
|
|
155
|
-
/**
|
|
156
|
-
* Returns a color palette for a series by index. Uses predefined palette for
|
|
157
|
-
* the first N series; generates distinct colors for additional series so they
|
|
158
|
-
* never repeat.
|
|
159
|
-
*/
|
|
160
|
-
export declare function getSeriesColorPalette(index: number): SeriesColorPalette;
|
|
161
81
|
export interface GraphProps {
|
|
162
82
|
/** Series configuration - can be single or multiple series */
|
|
163
83
|
series: Array<SeriesConfig>;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './graph';
|
|
4
|
-
export * from './graph-current-value';
|
|
5
|
-
export * from './graph-tooltip';
|
|
6
|
-
export * from './graph-view';
|
|
7
|
-
export * from './plugins/vertical-line';
|
|
1
|
+
export type { GraphViewWithDataProps } from './graph-view';
|
|
2
|
+
export * from './graph-vocabulary';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LineStyle } from 'lightweight-charts';
|
|
2
|
+
import { Point, YMeasureUnits } from './formatters';
|
|
3
|
+
/** Which axis a series is drawn against. */
|
|
4
|
+
export type SeriesPriceScaleId = "left" | "right";
|
|
5
|
+
/** Area with a fill, or a bare line. */
|
|
6
|
+
export type SeriesChartType = "area" | "line";
|
|
7
|
+
export interface SeriesConfig {
|
|
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;
|
|
15
|
+
label: string;
|
|
16
|
+
/** Line color (area stroke). Alias: prefer `lineColor` for clarity; if both set, `lineColor` wins. */
|
|
17
|
+
color?: string;
|
|
18
|
+
/** Line color — same as `color`; use for explicit line-only color. */
|
|
19
|
+
lineColor?: string;
|
|
20
|
+
/** Upper gradient of the area fill */
|
|
21
|
+
topColor?: string;
|
|
22
|
+
/** Lower gradient of the area fill */
|
|
23
|
+
bottomColor?: string;
|
|
24
|
+
yMeasureUnit?: YMeasureUnits;
|
|
25
|
+
/** Price scale when `dualYAxis` is enabled on Graph. */
|
|
26
|
+
priceScaleId?: SeriesPriceScaleId;
|
|
27
|
+
/** Render as line (no fill) instead of area. */
|
|
28
|
+
seriesType?: SeriesChartType;
|
|
29
|
+
/** Line dash style (line series only). */
|
|
30
|
+
lineStyle?: LineStyle;
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DEFAULT_SERIES_COLORS } from './graph-vocabulary';
|
|
2
|
+
/**
|
|
3
|
+
* Colours for the nth series. Its own module: the chart assigns them and the
|
|
4
|
+
* tooltip reads them back, and taking the function from the chart would close
|
|
5
|
+
* a cycle between the two.
|
|
6
|
+
*/
|
|
7
|
+
export type SeriesColorPalette = (typeof DEFAULT_SERIES_COLORS)[number];
|
|
8
|
+
/**
|
|
9
|
+
* Returns a color palette for a series by index. Uses predefined palette for
|
|
10
|
+
* the first N series; generates distinct colors for additional series so they
|
|
11
|
+
* never repeat.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSeriesColorPalette(index: number): SeriesColorPalette;
|
|
@@ -70,40 +70,3 @@ export interface HeadCellProps {
|
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
72
|
export declare function HeadCell({ title, tip, arrowPosition, sortDirection, sortField, sortTip, onSort, className, }: HeadCellProps): React.ReactElement;
|
|
73
|
-
interface SimpleHeadCellProps {
|
|
74
|
-
/**
|
|
75
|
-
* Title to display in the header cell
|
|
76
|
-
*/
|
|
77
|
-
title: React.ReactNode;
|
|
78
|
-
/**
|
|
79
|
-
* Help tip to display next to title
|
|
80
|
-
*/
|
|
81
|
-
tip?: React.ReactNode;
|
|
82
|
-
/**
|
|
83
|
-
* Additional className
|
|
84
|
-
*/
|
|
85
|
-
className?: string;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* SimpleHeadCell — simple table header cell without sorting.
|
|
89
|
-
*
|
|
90
|
-
* @usage
|
|
91
|
-
* Use SimpleHeadCell in table headers when you don't need sorting:
|
|
92
|
-
* - Non-sortable columns
|
|
93
|
-
* - Static headers
|
|
94
|
-
* - Headers with only help tips
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```tsx
|
|
98
|
-
* // Basic header
|
|
99
|
-
* <SimpleHeadCell title="Status" />
|
|
100
|
-
*
|
|
101
|
-
* // With help tip
|
|
102
|
-
* <SimpleHeadCell
|
|
103
|
-
* title="Health Factor"
|
|
104
|
-
* tip="Ratio of collateral value to borrowed value"
|
|
105
|
-
* />
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
export declare function SimpleHeadCell({ title, tip, className, }: SimpleHeadCellProps): React.ReactElement;
|
|
109
|
-
export {};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
+
import { HFZones } from './zones';
|
|
1
2
|
import type * as React from "react";
|
|
2
|
-
export type HFZones
|
|
3
|
-
export declare const GOOD_HF = 15000;
|
|
4
|
-
export declare const BAD_HF = 11000;
|
|
5
|
-
/**
|
|
6
|
-
* Determines the health factor zone based on the value
|
|
7
|
-
* @param hf - Health factor value in basis points (e.g., 15000 for 1.5)
|
|
8
|
-
* @returns The health factor zone or undefined
|
|
9
|
-
*/
|
|
10
|
-
export declare const getHFZones: (hf: number | bigint | undefined) => HFZones | undefined;
|
|
3
|
+
export type { HFZones };
|
|
11
4
|
export interface HealthFactorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
12
5
|
/** Health factor value in basis points (e.g. 15000 = 1.5, 10000 = 1.0). */
|
|
13
6
|
value: number | bigint;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The health-factor zones a value can fall into. Its own module: HealthFactor
|
|
3
|
+
* renders them and StatusBars colours by them, and naming the type from either
|
|
4
|
+
* component would close a cycle between the two.
|
|
5
|
+
*/
|
|
6
|
+
export type HFZones = "good" | "medium" | "bad" | "critical" | "liquidation";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The question mark on its own, without the tooltip around it. Its own module:
|
|
4
|
+
* HelpTip and NoValue render it, no consumer does, and the barrel carries the
|
|
5
|
+
* tooltip rather than its glyph.
|
|
6
|
+
*/
|
|
7
|
+
export interface HelpTipIconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
8
|
+
/** Size of the icon in pixels. @default 14 */
|
|
9
|
+
iconSize?: number;
|
|
10
|
+
/** Icon type: question circle or info. @default "question" */
|
|
11
|
+
iconVariant?: "question" | "info";
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* HelpTipIcon — standalone help icon (gray-90 default, gray-110 on hover).
|
|
15
|
+
* Use with a custom tooltip or when you only need the icon.
|
|
16
|
+
*/
|
|
17
|
+
export declare const HelpTipIcon: React.ForwardRefExoticComponent<HelpTipIconProps & React.RefAttributes<HTMLSpanElement>>;
|