@gearbox-protocol/permissionless-ui 1.26.11-next.7 → 1.27.0
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/address/address.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/apy/apy.cjs +1 -1
- package/dist/cjs/components/arc-loader/arc-loader.cjs +1 -1
- package/dist/cjs/components/asset-line/asset-line.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/assets-ratio/assets-ratio.cjs +1 -1
- package/dist/cjs/components/auth/connect-required.cjs +1 -1
- package/dist/cjs/components/auth/signin-required.cjs +1 -1
- package/dist/cjs/components/avatar/avatar.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/button-checkbox/button-checkbox.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/card-grid/card-grid.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/carousel/carousel.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/colored-text/colored-text.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.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/credit-session-status/credit-session-status.cjs +1 -1
- package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
- package/dist/cjs/components/description/description.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/detailed-page-title/detailed-page-title.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-label/dropdown-label.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/error-view/error-view.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.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/grid-td-cell/grid-td-cell.cjs +1 -1
- 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-sections/help-sections.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/horizontal-indicator/horizontal-indicator.cjs +1 -1
- package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
- package/dist/cjs/components/icons/fa-icon.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/label.cjs +1 -1
- package/dist/cjs/components/layout/block/block.cjs +1 -1
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-assets-table/liquidation-assets-table.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.cjs +1 -1
- package/dist/cjs/components/liquidation-price/liquidation-price.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar/navbar-with-overflow.cjs +1 -1
- package/dist/cjs/components/navbar/navbar.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/navitem/navitem.cjs +1 -1
- package/dist/cjs/components/not-found/not-found.cjs +1 -1
- package/dist/cjs/components/options-list/options-list.cjs +1 -1
- package/dist/cjs/components/overflow/overflow.cjs +1 -1
- package/dist/cjs/components/overflow-container/overflow-container.cjs +1 -1
- package/dist/cjs/components/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/percent-indicator/percent-indicator.cjs +1 -1
- package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
- package/dist/cjs/components/pool-indicator-icon/pool-indicator-icon.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/progress/progress.cjs +1 -1
- package/dist/cjs/components/progress-bar/progress-bar.cjs +1 -1
- package/dist/cjs/components/progress-circle/progress-circle.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/row/row.cjs +1 -1
- package/dist/cjs/components/search-bar/search-bar.cjs +1 -1
- 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/separator/separator.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/signatures/confirmation-item.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/slider.cjs +1 -1
- package/dist/cjs/components/slider-token/slider-token.cjs +1 -1
- package/dist/cjs/components/smart-number-input/balance-indicator.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.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/stat-badge/stat-badge.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/status-triangle/status-triangle.cjs +1 -1
- package/dist/cjs/components/stepper/stepper.cjs +1 -1
- package/dist/cjs/components/styled-dropdown/styled-dropdown.cjs +1 -1
- package/dist/cjs/components/switch/switch.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/edit-button.cjs +1 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
- package/dist/cjs/components/table/editable-table.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/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/toggle/toggle.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/tokens-list-cell/tokens-list-cell.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/vertical-list/vertical-list.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/with-filter-button/with-filter-button.cjs +1 -1
- package/dist/cjs/components/with-title/with-title.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/hooks/use-hf.cjs +1 -1
- package/dist/cjs/hooks/use-liquidation/index.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +7 -8
- package/dist/esm/components/address/address.js +2 -3
- package/dist/esm/components/alert-badge/alert-badge.js +0 -1
- package/dist/esm/components/alert-dialog/alert-dialog.js +7 -8
- package/dist/esm/components/alert-modal/alert-modal.js +0 -1
- package/dist/esm/components/app-bar/app-bar.js +0 -1
- package/dist/esm/components/apy/apy.js +9 -10
- package/dist/esm/components/arc-loader/arc-loader.js +0 -1
- package/dist/esm/components/asset-line/asset-line.js +9 -10
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +2 -3
- package/dist/esm/components/assets-ratio/assets-ratio.js +11 -12
- package/dist/esm/components/auth/connect-required.js +2 -3
- package/dist/esm/components/auth/signin-required.js +11 -12
- package/dist/esm/components/avatar/avatar.js +9 -10
- package/dist/esm/components/badge/badge.js +6 -7
- package/dist/esm/components/base-link/base-link.js +7 -8
- package/dist/esm/components/block-sync/block-sync.js +2 -3
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +2 -3
- package/dist/esm/components/button-checkbox/button-checkbox.js +13 -16
- package/dist/esm/components/buttons/back-button/back-button.js +6 -7
- package/dist/esm/components/buttons/button/button.js +4 -5
- package/dist/esm/components/buttons/copy-button/copy-button.js +7 -8
- package/dist/esm/components/buttons/external-button/external-button.js +7 -8
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +3 -4
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +2 -3
- package/dist/esm/components/card-grid/card-grid.js +4 -5
- package/dist/esm/components/cards/card/card.js +0 -1
- package/dist/esm/components/cards/expandable-call/expandable-call.js +19 -20
- package/dist/esm/components/cards/expandable-card/expandable-card.js +11 -12
- package/dist/esm/components/carousel/carousel.js +14 -15
- package/dist/esm/components/checkbox/checkbox-labeled.js +0 -1
- package/dist/esm/components/checkbox/checkbox.js +0 -1
- package/dist/esm/components/checkbox-item/checkbox-item.js +9 -10
- 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 +0 -1
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +0 -1
- package/dist/esm/components/colored-text/colored-text.js +0 -1
- package/dist/esm/components/complex-input/complex-input.js +2 -3
- package/dist/esm/components/compound-apy/compound-apy.js +2 -3
- package/dist/esm/components/confirm-menu/confirm-menu.js +3 -4
- package/dist/esm/components/credit-session-status/credit-session-status.js +2 -3
- package/dist/esm/components/currency-button/currency-button.js +9 -10
- package/dist/esm/components/description/description.js +0 -1
- package/dist/esm/components/detailed-apy/detailed-apy.js +8 -9
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +0 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +0 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +0 -1
- package/dist/esm/components/dialog/dialog-container.js +6 -7
- package/dist/esm/components/dialog/dialog-content.js +0 -1
- package/dist/esm/components/dialog/dialog-description.js +4 -5
- package/dist/esm/components/dialog/dialog-footer.js +0 -1
- package/dist/esm/components/dialog/dialog-form.js +11 -12
- package/dist/esm/components/dialog/dialog-header.js +4 -5
- package/dist/esm/components/dialog/dialog-modal-container.js +0 -1
- package/dist/esm/components/dialog/dialog-overlay.js +3 -4
- package/dist/esm/components/dialog/dialog-title.js +0 -1
- package/dist/esm/components/dropdown-label/dropdown-label.js +6 -7
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +7 -8
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +7 -8
- package/dist/esm/components/edit-input/edit-input.js +6 -7
- package/dist/esm/components/error-message/error-line-message.js +5 -6
- package/dist/esm/components/error-message/error-message.js +2 -3
- package/dist/esm/components/error-view/error-view.js +2 -3
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +2 -3
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +0 -1
- package/dist/esm/components/filter/filter-block.js +0 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +3 -4
- package/dist/esm/components/filter/filter-chip.js +8 -9
- package/dist/esm/components/filter/filter-chips.js +5 -6
- package/dist/esm/components/filter/filter-dropdown-item.js +11 -12
- package/dist/esm/components/filter/filter-group.js +0 -1
- package/dist/esm/components/filter/filter-label.js +0 -1
- package/dist/esm/components/filter/filter-modal-item.js +4 -5
- package/dist/esm/components/filter/filter-modal.js +2 -3
- package/dist/esm/components/filter/filter-radio-item.js +4 -5
- package/dist/esm/components/filter/filter-separator.js +3 -4
- package/dist/esm/components/formatted-number/formatted-number.js +2 -3
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +2 -3
- package/dist/esm/components/head-cell/head-cell.js +12 -13
- package/dist/esm/components/health-factor/health-factor.js +6 -7
- package/dist/esm/components/help-sections/help-sections.js +7 -8
- package/dist/esm/components/help-tip/help-tip.js +4 -5
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +2 -3
- package/dist/esm/components/icon-button/icon-button.js +6 -7
- package/dist/esm/components/icons/fa-icon.js +2 -3
- package/dist/esm/components/input/input.js +62 -56
- package/dist/esm/components/label/label.js +0 -1
- package/dist/esm/components/layout/block/block.js +2 -3
- package/dist/esm/components/link/link.js +13 -14
- package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js +5 -6
- package/dist/esm/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.js +17 -18
- package/dist/esm/components/liquidation-price/liquidation-price.js +2 -3
- package/dist/esm/components/loader/loader.js +0 -1
- package/dist/esm/components/loader-guard/loader-guard.js +2 -3
- package/dist/esm/components/loading-bar/loading-bar.js +0 -1
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +2 -3
- package/dist/esm/components/modal/modal.js +7 -8
- package/dist/esm/components/navbar/navbar-with-overflow.js +2 -3
- package/dist/esm/components/navbar/navbar.js +21 -22
- package/dist/esm/components/navbar-logo/navbar-logo.js +2 -3
- package/dist/esm/components/navitem/navitem.js +0 -1
- package/dist/esm/components/not-found/not-found.js +2 -3
- package/dist/esm/components/options-list/options-list.js +4 -5
- package/dist/esm/components/overflow/overflow.js +8 -9
- package/dist/esm/components/overflow-container/overflow-container.js +2 -3
- package/dist/esm/components/page-title/page-title.js +5 -6
- package/dist/esm/components/percent-indicator/percent-indicator.js +2 -3
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +2 -3
- package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +5 -6
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +2 -3
- package/dist/esm/components/progress/progress.js +5 -6
- package/dist/esm/components/progress-bar/progress-bar.js +16 -17
- package/dist/esm/components/progress-circle/progress-circle.js +10 -11
- package/dist/esm/components/radio-group/radio-group.js +0 -1
- package/dist/esm/components/rounded-image/rounded-image.js +0 -1
- package/dist/esm/components/row/row.js +2 -3
- package/dist/esm/components/search-bar/search-bar.js +4 -5
- package/dist/esm/components/search-line/search-line.js +0 -1
- package/dist/esm/components/segmented-control/segmented-control.js +8 -9
- package/dist/esm/components/select/select.js +3 -4
- package/dist/esm/components/separate-line/separate-line.js +0 -1
- package/dist/esm/components/separator/separator.js +3 -4
- package/dist/esm/components/short-string/short-string.js +3 -4
- package/dist/esm/components/signatures/confirmation-item.js +2 -3
- package/dist/esm/components/simple-accordion/simple-accordion.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +4 -5
- package/dist/esm/components/skeleton/skeleton-stack.js +6 -7
- package/dist/esm/components/skeleton/skeleton.js +2 -3
- package/dist/esm/components/slider/slider.js +0 -1
- package/dist/esm/components/slider-token/slider-token.js +12 -13
- package/dist/esm/components/smart-number-input/balance-indicator.js +13 -14
- package/dist/esm/components/smart-number-input/smart-number-input.js +0 -1
- package/dist/esm/components/spinner/spinner.js +0 -1
- package/dist/esm/components/spinner-loader/spinner-loader.js +7 -8
- package/dist/esm/components/split-list/split-list.js +4 -5
- package/dist/esm/components/stat-badge/stat-badge.js +9 -10
- package/dist/esm/components/status-dot/status-dot.js +3 -4
- package/dist/esm/components/status-elements/status-elements.js +6 -7
- package/dist/esm/components/status-triangle/status-triangle.js +5 -6
- package/dist/esm/components/stepper/stepper.js +20 -21
- package/dist/esm/components/styled-dropdown/styled-dropdown.js +2 -3
- package/dist/esm/components/switch/switch.js +7 -8
- package/dist/esm/components/tab-control/tab-control.js +36 -37
- package/dist/esm/components/table/edit-button.js +2 -3
- package/dist/esm/components/table/editable-grid-table.js +35 -36
- package/dist/esm/components/table/editable-table.js +16 -17
- package/dist/esm/components/table/grid-loading-line.js +13 -14
- package/dist/esm/components/table/table-sm.js +20 -21
- package/dist/esm/components/table/table.js +0 -1
- package/dist/esm/components/tabs/tabs.js +6 -7
- package/dist/esm/components/text-button/text-button.js +9 -10
- package/dist/esm/components/textarea/textarea.js +0 -1
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +0 -1
- package/dist/esm/components/tip-card/tip-card.js +4 -5
- package/dist/esm/components/toggle/toggle.js +0 -1
- package/dist/esm/components/token-symbol/token-symbol.js +4 -5
- package/dist/esm/components/token-template/token-template.js +5 -6
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +2 -3
- package/dist/esm/components/tooltip/simple-tooltip.js +0 -1
- package/dist/esm/components/tooltip/tooltip.js +6 -7
- package/dist/esm/components/trading-view/trading-view.js +2 -3
- package/dist/esm/components/typography/typography.js +4 -5
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +0 -1
- package/dist/esm/components/vertical-list/vertical-list.js +8 -9
- package/dist/esm/components/with-copy/with-copy.js +2 -3
- package/dist/esm/components/with-filter-button/with-filter-button.js +0 -1
- package/dist/esm/components/with-title/with-title.js +7 -8
- package/dist/esm/hooks/use-debounce-call.js +5 -6
- package/dist/esm/hooks/use-hf.js +22 -22
- package/dist/esm/hooks/use-liquidation/index.js +65 -66
- package/dist/esm/utils/format-money.js +17 -18
- package/dist/esm/utils/templates.js +20 -21
- package/dist/globals.css +1 -1
- package/dist/types/components/asset-line/asset-line.d.ts +3 -4
- package/dist/types/components/compound-apy/compound-apy.d.ts +4 -3
- package/dist/types/components/credit-session-status/credit-session-status.d.ts +1 -1
- package/dist/types/components/currency-button/currency-button.d.ts +2 -2
- package/dist/types/components/detailed-apy/detailed-apy.d.ts +5 -5
- package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +2 -2
- package/dist/types/components/liquidation/liquidation-assets-table/liquidation-assets-table.d.ts +2 -2
- package/dist/types/components/liquidation/liquidation-graph/liquidation-graph.d.ts +4 -5
- package/dist/types/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.d.ts +2 -2
- package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +3 -3
- package/dist/types/components/slider-token/slider-token.d.ts +2 -2
- package/dist/types/components/smart-number-input/balance-indicator.d.ts +2 -2
- package/dist/types/components/smart-number-input/smart-number-input.d.ts +10 -2
- package/dist/types/components/token-symbol/token-symbol.d.ts +6 -2
- package/dist/types/components/token-template/token-template.d.ts +2 -2
- package/dist/types/components/tokens-list-cell/tokens-list-cell.d.ts +2 -2
- package/dist/types/hooks/use-hf.d.ts +3 -4
- package/dist/types/hooks/use-liquidation/index.d.ts +8 -9
- package/dist/types/hooks/use-liquidation/types.d.ts +2 -2
- package/dist/types/hooks/use-liquidation/utils.d.ts +10 -11
- package/dist/types/utils/interface.d.ts +9 -0
- package/dist/types/utils/search-in-token.d.ts +4 -4
- package/dist/types/utils/templates.d.ts +8 -8
- package/package.json +7 -7
- package/dist/cjs/types/common.cjs +0 -1
- package/dist/esm/types/common.js +0 -1
- package/dist/types/types/common.d.ts +0 -23
|
@@ -4,7 +4,6 @@ import { toast as ie } from "sonner";
|
|
|
4
4
|
import { useIsMobile as le } from "../../hooks/use-media-query.js";
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as se } from "../../utils/cn.js";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
import { RangeButtons as ce } from "../buttons/range-buttons/range-buttons.js";
|
|
@@ -79,7 +78,7 @@ function z(e, t) {
|
|
|
79
78
|
c.set(o, p);
|
|
80
79
|
we(e, c);
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function Ne({
|
|
83
82
|
data: e,
|
|
84
83
|
yMeasureUnit: t,
|
|
85
84
|
height: c = 306,
|
|
@@ -242,5 +241,5 @@ function Re({
|
|
|
242
241
|
);
|
|
243
242
|
}
|
|
244
243
|
export {
|
|
245
|
-
|
|
244
|
+
Ne as TradingView
|
|
246
245
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { cva as x } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as c from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as p } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const g = x("", {
|
|
@@ -76,7 +75,7 @@ const g = x("", {
|
|
|
76
75
|
caption: "span",
|
|
77
76
|
overline: "span",
|
|
78
77
|
inherit: "span"
|
|
79
|
-
}, u =
|
|
78
|
+
}, u = c.forwardRef(
|
|
80
79
|
({
|
|
81
80
|
className: e,
|
|
82
81
|
variant: t = "inherit",
|
|
@@ -93,7 +92,7 @@ const g = x("", {
|
|
|
93
92
|
d,
|
|
94
93
|
{
|
|
95
94
|
ref: m,
|
|
96
|
-
className:
|
|
95
|
+
className: p(
|
|
97
96
|
g({
|
|
98
97
|
variant: t,
|
|
99
98
|
color: i,
|
|
@@ -4,7 +4,6 @@ import * as V from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
import { Description as f } from "../description/description.js";
|
|
@@ -4,7 +4,6 @@ import * as r from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as t } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const u = c("flex flex-col [&>li:empty]:hidden", {
|
|
@@ -36,12 +35,12 @@ const u = c("flex flex-col [&>li:empty]:hidden", {
|
|
|
36
35
|
({
|
|
37
36
|
className: s,
|
|
38
37
|
rowGap: f = "default",
|
|
39
|
-
divided:
|
|
38
|
+
divided: a = !1,
|
|
40
39
|
nested: p = !1,
|
|
41
|
-
children:
|
|
42
|
-
...
|
|
40
|
+
children: n,
|
|
41
|
+
...m
|
|
43
42
|
}, d) => {
|
|
44
|
-
const
|
|
43
|
+
const o = r.Children.toArray(n).filter(
|
|
45
44
|
(e) => e != null
|
|
46
45
|
);
|
|
47
46
|
return /* @__PURE__ */ i(
|
|
@@ -49,18 +48,18 @@ const u = c("flex flex-col [&>li:empty]:hidden", {
|
|
|
49
48
|
{
|
|
50
49
|
ref: d,
|
|
51
50
|
className: t(
|
|
52
|
-
u({ rowGap: f, divided:
|
|
51
|
+
u({ rowGap: f, divided: a, nested: p }),
|
|
53
52
|
"list-none",
|
|
54
53
|
s
|
|
55
54
|
),
|
|
56
|
-
...
|
|
57
|
-
children:
|
|
55
|
+
...m,
|
|
56
|
+
children: o.map((e, l) => {
|
|
58
57
|
const b = r.isValidElement(e) && e.key ? e.key : `vertical-list-item-${l}`;
|
|
59
58
|
return /* @__PURE__ */ i(
|
|
60
59
|
"li",
|
|
61
60
|
{
|
|
62
61
|
className: t(
|
|
63
|
-
|
|
62
|
+
a && l !== o.length - 1 && "pb-3 border-b border-border"
|
|
64
63
|
),
|
|
65
64
|
children: e
|
|
66
65
|
},
|
|
@@ -6,7 +6,6 @@ import { FaIcon as j } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as i } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
import "../accordion/accordion.js";
|
|
@@ -158,7 +157,7 @@ import "../tip-card/tip-card.js";
|
|
|
158
157
|
import "../toggle/toggle.js";
|
|
159
158
|
import "../typography/typography.js";
|
|
160
159
|
import "../with-filter-button/with-filter-button.js";
|
|
161
|
-
function
|
|
160
|
+
function jr({
|
|
162
161
|
toCopy: u,
|
|
163
162
|
children: d,
|
|
164
163
|
onCopySuccess: f,
|
|
@@ -240,5 +239,5 @@ function Tr({
|
|
|
240
239
|
return a ? /* @__PURE__ */ t(T, { placement: "top", triangle: !0, title: c(), children: a }) : c();
|
|
241
240
|
}
|
|
242
241
|
export {
|
|
243
|
-
|
|
242
|
+
jr as WithCopy
|
|
244
243
|
};
|
|
@@ -5,7 +5,6 @@ import { FilterButton as F } from "../buttons/filter-button/filter-button.js";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as g } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
const j = z.forwardRef(
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cva as
|
|
1
|
+
import { jsxs as x, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cva as a } from "class-variance-authority";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as e } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
|
-
const
|
|
9
|
+
const p = a("", {
|
|
11
10
|
variants: {
|
|
12
11
|
size: {
|
|
13
12
|
sm: "text-[14px] mb-[14px]",
|
|
@@ -20,19 +19,19 @@ const a = x("", {
|
|
|
20
19
|
size: "default"
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
|
-
function
|
|
22
|
+
function b({
|
|
24
23
|
title: m,
|
|
25
24
|
children: t,
|
|
26
25
|
size: o = "default",
|
|
27
26
|
className: r
|
|
28
27
|
}) {
|
|
29
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ x("div", { className: e("flex flex-col"), children: [
|
|
30
29
|
/* @__PURE__ */ i(
|
|
31
30
|
"div",
|
|
32
31
|
{
|
|
33
32
|
className: e(
|
|
34
33
|
"text-foreground font-medium",
|
|
35
|
-
|
|
34
|
+
p({ size: o }),
|
|
36
35
|
r
|
|
37
36
|
),
|
|
38
37
|
children: m
|
|
@@ -42,5 +41,5 @@ function g({
|
|
|
42
41
|
] });
|
|
43
42
|
}
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
b as WithTitle
|
|
46
45
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { useDebounce as
|
|
3
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
2
|
+
import { useDebounce as o } from "./use-debounce.js";
|
|
4
3
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
const n = (
|
|
6
|
-
function
|
|
7
|
-
return
|
|
4
|
+
const n = (e) => e();
|
|
5
|
+
function b(e) {
|
|
6
|
+
return o(n, e);
|
|
8
7
|
}
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
b as useDebounceCall
|
|
11
10
|
};
|
package/dist/esm/hooks/use-hf.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMemo as
|
|
3
|
-
function
|
|
4
|
-
assets:
|
|
1
|
+
import { CreditAccountData_Legacy as l } from "@gearbox-protocol/sdk";
|
|
2
|
+
import { useMemo as p } from "react";
|
|
3
|
+
function _({
|
|
4
|
+
assets: e,
|
|
5
5
|
quotas: c,
|
|
6
|
-
prices:
|
|
7
|
-
liquidationThresholds:
|
|
8
|
-
underlyingToken:
|
|
9
|
-
debt:
|
|
6
|
+
prices: n,
|
|
7
|
+
liquidationThresholds: u,
|
|
8
|
+
underlyingToken: f,
|
|
9
|
+
debt: t,
|
|
10
10
|
quotasInfo: o,
|
|
11
11
|
allowZeroDebt: m = !1,
|
|
12
|
-
tokensList:
|
|
12
|
+
tokensList: a
|
|
13
13
|
}) {
|
|
14
|
-
return { hf:
|
|
14
|
+
return { hf: p(() => {
|
|
15
15
|
try {
|
|
16
|
-
return
|
|
17
|
-
assets:
|
|
16
|
+
return t === 0n && !m ? 0 : l.calcHealthFactor({
|
|
17
|
+
assets: e,
|
|
18
18
|
quotas: c,
|
|
19
|
-
prices:
|
|
20
|
-
liquidationThresholds:
|
|
21
|
-
underlyingToken:
|
|
22
|
-
debt:
|
|
19
|
+
prices: n,
|
|
20
|
+
liquidationThresholds: u,
|
|
21
|
+
underlyingToken: f,
|
|
22
|
+
debt: t,
|
|
23
23
|
quotasInfo: o,
|
|
24
|
-
tokensList:
|
|
24
|
+
tokensList: a
|
|
25
25
|
});
|
|
26
26
|
} catch (r) {
|
|
27
27
|
return typeof r == "object" && r !== null && "reason" in r && r.reason === "overflow" ? Number.MAX_SAFE_INTEGER : 0;
|
|
28
28
|
}
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
e,
|
|
31
31
|
c,
|
|
32
|
-
f,
|
|
33
32
|
n,
|
|
34
33
|
u,
|
|
35
|
-
|
|
34
|
+
f,
|
|
35
|
+
t,
|
|
36
36
|
o,
|
|
37
37
|
m,
|
|
38
|
-
|
|
38
|
+
a
|
|
39
39
|
]) };
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
_ as useHF
|
|
43
43
|
};
|
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import { toBN as v, PRICE_DECIMALS_POW as R } from "@gearbox-protocol/sdk";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function K({
|
|
1
|
+
import { toBN as v, PRICE_DECIMALS_POW as R, CreditAccountData_Legacy as U } from "@gearbox-protocol/sdk";
|
|
2
|
+
import { useMemo as G, useState as g, useCallback as F } from "react";
|
|
3
|
+
import { useFixedAssets as Y, usePriceInNumber as S, useAxis as X, DEFAULT_AXIS_MAX as x } from "./utils.js";
|
|
4
|
+
import { CELL_BAD as J, CELL_CURRENT as Z, CELL_GOOD as $, CELL_HOVERED as b, CELL_LIQUIDATION as j, CELL_OK as M, DEFAULT_AXIS_MIN as tt, formatAxisLabel as et, formatAxisTipLabel as rt, formatAxisTipPrice as it, getCellClass as nt, isPointInCell as st, useIsAxisInRelativeUnits as ct, useLiquidationGraphActivePrice as ot, useLiquidationGraphCurrentActiveValue as at, useWithLiquidationGraphActivePrices as ut } from "./utils.js";
|
|
5
|
+
const m = 35;
|
|
6
|
+
function W({
|
|
8
7
|
xMin: t,
|
|
9
8
|
xMax: e,
|
|
10
9
|
yMin: r,
|
|
11
10
|
yMax: c,
|
|
12
11
|
xLabel: i,
|
|
13
|
-
yLabel:
|
|
14
|
-
assets:
|
|
12
|
+
yLabel: n,
|
|
13
|
+
assets: s,
|
|
15
14
|
quotas: o,
|
|
16
15
|
prices: u,
|
|
17
16
|
liquidationThresholds: a,
|
|
18
|
-
quotasInfo:
|
|
19
|
-
underlyingTokenAddress:
|
|
20
|
-
debt:
|
|
17
|
+
quotasInfo: A,
|
|
18
|
+
underlyingTokenAddress: p,
|
|
19
|
+
debt: E,
|
|
21
20
|
tokensList: l
|
|
22
21
|
}) {
|
|
23
22
|
return G(() => {
|
|
24
|
-
const N = e - t, T = c - r,
|
|
25
|
-
return
|
|
26
|
-
const
|
|
27
|
-
return i && (
|
|
28
|
-
String((
|
|
23
|
+
const N = e - t, T = c - r, d = N / m, C = T / m, P = Array.from(Array(m)), L = { ...u };
|
|
24
|
+
return P.flatMap((B, _) => {
|
|
25
|
+
const f = t + _ * d, I = t + (_ + 1) * d;
|
|
26
|
+
return i && (L[i.address] = v(
|
|
27
|
+
String((f + I) / 2),
|
|
29
28
|
R
|
|
30
|
-
)),
|
|
31
|
-
const O = r + D *
|
|
32
|
-
return
|
|
29
|
+
)), P.map((H, D) => {
|
|
30
|
+
const O = r + D * C, h = r + (D + 1) * C;
|
|
31
|
+
return n && (L[n.address] = v(
|
|
33
32
|
String((O + h) / 2),
|
|
34
33
|
R
|
|
35
34
|
)), {
|
|
36
|
-
x:
|
|
35
|
+
x: f,
|
|
37
36
|
xEnd: I,
|
|
38
37
|
y: O,
|
|
39
38
|
yEnd: h,
|
|
40
|
-
value: U({
|
|
41
|
-
assets:
|
|
39
|
+
value: U.calcHealthFactor({
|
|
40
|
+
assets: s,
|
|
42
41
|
quotas: o,
|
|
43
|
-
prices:
|
|
42
|
+
prices: L,
|
|
44
43
|
liquidationThresholds: a,
|
|
45
|
-
underlyingToken:
|
|
46
|
-
debt:
|
|
47
|
-
quotasInfo:
|
|
44
|
+
underlyingToken: p,
|
|
45
|
+
debt: E,
|
|
46
|
+
quotasInfo: A,
|
|
48
47
|
tokensList: l
|
|
49
48
|
})
|
|
50
49
|
};
|
|
@@ -56,83 +55,83 @@ function K({
|
|
|
56
55
|
r,
|
|
57
56
|
c,
|
|
58
57
|
i,
|
|
59
|
-
s,
|
|
60
58
|
n,
|
|
59
|
+
s,
|
|
61
60
|
o,
|
|
62
61
|
u,
|
|
63
62
|
a,
|
|
64
|
-
m,
|
|
65
|
-
A,
|
|
66
63
|
p,
|
|
64
|
+
E,
|
|
65
|
+
A,
|
|
67
66
|
l
|
|
68
67
|
]);
|
|
69
68
|
}
|
|
70
|
-
function
|
|
71
|
-
const [e, r] =
|
|
69
|
+
function K({ prices: t }) {
|
|
70
|
+
const [e, r] = g({}), c = G(
|
|
72
71
|
() => ({ ...t, ...e }),
|
|
73
72
|
[t, e]
|
|
74
|
-
), i =
|
|
75
|
-
(
|
|
76
|
-
r({ ...e, [
|
|
73
|
+
), i = F(
|
|
74
|
+
(n, s) => {
|
|
75
|
+
r({ ...e, [s]: n });
|
|
77
76
|
},
|
|
78
77
|
[e]
|
|
79
78
|
);
|
|
80
79
|
return [c, i];
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function Q({
|
|
83
82
|
assets: t,
|
|
84
83
|
liquidationThresholds: e,
|
|
85
84
|
quotas: r,
|
|
86
85
|
quotasInfo: c,
|
|
87
86
|
tokensList: i,
|
|
88
|
-
prices:
|
|
87
|
+
prices: n
|
|
89
88
|
}) {
|
|
90
|
-
const [
|
|
89
|
+
const [s] = Y({
|
|
91
90
|
assets: t,
|
|
92
91
|
liquidationThresholds: e,
|
|
93
92
|
quotas: r,
|
|
94
93
|
quotasInfo: c
|
|
95
94
|
}), [o, u] = S({
|
|
96
|
-
asset:
|
|
95
|
+
asset: s[0],
|
|
97
96
|
tokensList: i,
|
|
98
|
-
prices:
|
|
99
|
-
}), [a,
|
|
100
|
-
asset:
|
|
97
|
+
prices: n
|
|
98
|
+
}), [a, A] = S({
|
|
99
|
+
asset: s[1],
|
|
101
100
|
tokensList: i,
|
|
102
|
-
prices:
|
|
103
|
-
}),
|
|
101
|
+
prices: n
|
|
102
|
+
}), p = X({ currentPrice: o, token: u }), E = X({ currentPrice: a, token: A });
|
|
104
103
|
return {
|
|
105
|
-
xAxis:
|
|
106
|
-
yAxis:
|
|
104
|
+
xAxis: p,
|
|
105
|
+
yAxis: E,
|
|
107
106
|
currentPoint: [
|
|
108
107
|
o || x / 2,
|
|
109
108
|
a || x / 2
|
|
110
109
|
],
|
|
111
|
-
fixedBalances:
|
|
110
|
+
fixedBalances: s
|
|
112
111
|
};
|
|
113
112
|
}
|
|
114
113
|
export {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
J as CELL_BAD,
|
|
115
|
+
Z as CELL_CURRENT,
|
|
116
|
+
$ as CELL_GOOD,
|
|
117
|
+
b as CELL_HOVERED,
|
|
118
|
+
j as CELL_LIQUIDATION,
|
|
119
|
+
M as CELL_OK,
|
|
121
120
|
x as DEFAULT_AXIS_MAX,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
tt as DEFAULT_AXIS_MIN,
|
|
122
|
+
et as formatAxisLabel,
|
|
123
|
+
rt as formatAxisTipLabel,
|
|
124
|
+
it as formatAxisTipPrice,
|
|
126
125
|
nt as getCellClass,
|
|
127
|
-
|
|
126
|
+
st as isPointInCell,
|
|
128
127
|
X as useAxis,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
K as useEditPriceManually,
|
|
129
|
+
Y as useFixedAssets,
|
|
130
|
+
ct as useIsAxisInRelativeUnits,
|
|
131
|
+
ot as useLiquidationGraphActivePrice,
|
|
132
|
+
at as useLiquidationGraphCurrentActiveValue,
|
|
133
|
+
Q as useLiquidationGraphParams,
|
|
134
|
+
W as useLiquidationHeatmap,
|
|
136
135
|
S as usePriceInNumber,
|
|
137
|
-
|
|
136
|
+
ut as useWithLiquidationGraphActivePrices
|
|
138
137
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BigIntMath as g } from "@gearbox-protocol/sdk/common-utils";
|
|
1
|
+
import { BigIntMath as M, formatBN as $, WAD_DECIMALS_POW as A, PERCENTAGE_FACTOR as g } from "@gearbox-protocol/sdk";
|
|
3
2
|
import "react";
|
|
4
3
|
import { bnToInputView as h } from "./bn-to-input-view.js";
|
|
5
4
|
import "clsx";
|
|
@@ -12,21 +11,21 @@ const _ = 10000000000000000n;
|
|
|
12
11
|
function F(t) {
|
|
13
12
|
return BigInt(t.toFixed(18).replace(".", ""));
|
|
14
13
|
}
|
|
15
|
-
function
|
|
16
|
-
const n = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", s = typeof t == "number" ? F(Math.abs(t)) :
|
|
14
|
+
function H(t, r) {
|
|
15
|
+
const n = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", s = typeof t == "number" ? F(Math.abs(t)) : M.abs(t), u = s < _ && s > 0n, f = u ? "0.01" : $(s, A, r), o = `${n}$${f}`;
|
|
17
16
|
return u ? `< ${o}` : o;
|
|
18
17
|
}
|
|
19
18
|
const O = 1e4;
|
|
20
|
-
function
|
|
19
|
+
function p(t, r, i = !0) {
|
|
21
20
|
const n = typeof t == "number" ? t : Number(t);
|
|
22
21
|
return Number.isNaN(n) || n === void 0 || n === null ? "0" : n === 0 ? 0 : i && n > O ? n.toExponential(r) : n.toFixed(r);
|
|
23
22
|
}
|
|
24
|
-
function
|
|
25
|
-
return `${
|
|
23
|
+
function U(t, r = 2) {
|
|
24
|
+
return `${p(t, r)}%`;
|
|
26
25
|
}
|
|
27
|
-
function
|
|
28
|
-
const i = Number(t) / Number(
|
|
29
|
-
return `${
|
|
26
|
+
function V(t, r = 2) {
|
|
27
|
+
const i = Number(t) / Number(g);
|
|
28
|
+
return `${p(i, r)}%`;
|
|
30
29
|
}
|
|
31
30
|
const c = {
|
|
32
31
|
minimumFractionDigits: 2,
|
|
@@ -36,7 +35,7 @@ const c = {
|
|
|
36
35
|
minExponentialThreshold: 1e-4,
|
|
37
36
|
maxExponentialThreshold: 1e6,
|
|
38
37
|
locale: "en-US"
|
|
39
|
-
},
|
|
38
|
+
}, W = ({
|
|
40
39
|
amount: t,
|
|
41
40
|
format: r = "full",
|
|
42
41
|
maximumFractionDigits: i = c.maximumFractionDigits,
|
|
@@ -49,8 +48,8 @@ const c = {
|
|
|
49
48
|
}) => {
|
|
50
49
|
const m = typeof t == "bigint" ? Number(h(t, 8)) : t, e = Math.abs(m);
|
|
51
50
|
if (r === "short") {
|
|
52
|
-
const T = m < 0 ? "-" : "", a = (
|
|
53
|
-
const b =
|
|
51
|
+
const T = m < 0 ? "-" : "", a = (l, d) => {
|
|
52
|
+
const b = l >= 100 ? 0 : i, E = l.toFixed(b).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
|
|
54
53
|
return `${T}${E}${d}`;
|
|
55
54
|
};
|
|
56
55
|
if (e >= 1e9 && e <= o)
|
|
@@ -69,9 +68,9 @@ const c = {
|
|
|
69
68
|
};
|
|
70
69
|
export {
|
|
71
70
|
c as DEFAULT_FORMAT_MONEY_CONSTANTS,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
H as formatMoney,
|
|
72
|
+
W as formatMoneyAmount,
|
|
73
|
+
p as formatPercentAmount,
|
|
74
|
+
U as percentTemplate,
|
|
75
|
+
V as percentageTemplate
|
|
77
76
|
};
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { jsx as f, Fragment as u } from "react/jsx-runtime";
|
|
2
|
-
import { formatBN as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ f(u, { children: p(o, t) });
|
|
2
|
+
import { formatBN as m, toBigInt as g, BigIntMath as d } from "@gearbox-protocol/sdk";
|
|
3
|
+
import { percentTemplate as $ } from "./format-money.js";
|
|
4
|
+
function B(o, t = 2) {
|
|
5
|
+
return /* @__PURE__ */ f(u, { children: $(o, t) });
|
|
7
6
|
}
|
|
8
|
-
function
|
|
7
|
+
function p(o, t, s, e = " ", r) {
|
|
9
8
|
const { decimals: n = 18 } = t || {};
|
|
10
|
-
let i =
|
|
11
|
-
const
|
|
9
|
+
let i = m(o, n, s);
|
|
10
|
+
const c = t?.title || t?.symbol || "undefined";
|
|
12
11
|
if (r !== void 0 && i !== "-") {
|
|
13
|
-
const l = e.length +
|
|
14
|
-
|
|
12
|
+
const l = e.length + c.length, a = r - l;
|
|
13
|
+
a > 0 && i.length > a && (i = i.slice(0, a));
|
|
15
14
|
}
|
|
16
|
-
return i === "-" ? i : `${i}${e}${
|
|
15
|
+
return i === "-" ? i : `${i}${e}${c}`;
|
|
17
16
|
}
|
|
18
|
-
function
|
|
17
|
+
function x(o, t, s = 2) {
|
|
19
18
|
if (o === void 0) return "-";
|
|
20
19
|
const e = o.toFixed(s), r = Math.abs(Number(e)) > 0 ? "" : "< ", n = r ? `${e.slice(0, e.length - 1)}1` : e;
|
|
21
20
|
return `${r}${n} ${t?.title}`;
|
|
22
21
|
}
|
|
23
|
-
function
|
|
24
|
-
const r = g(o || 0), n =
|
|
22
|
+
function v(o, t, s, e) {
|
|
23
|
+
const r = g(o || 0), n = p(
|
|
25
24
|
d.abs(r),
|
|
26
25
|
t,
|
|
27
26
|
s,
|
|
@@ -29,14 +28,14 @@ function k(o, t, s, e) {
|
|
|
29
28
|
);
|
|
30
29
|
return n === "-" ? n : `${r < 0 ? "-" : ""}${n}`;
|
|
31
30
|
}
|
|
32
|
-
function
|
|
33
|
-
const { decimals: r = 18 } = t || {}, n =
|
|
31
|
+
function k(o, t, s, e = " ") {
|
|
32
|
+
const { decimals: r = 18 } = t || {}, n = m(o, r, s), i = t?.title || t?.symbol || "undefined";
|
|
34
33
|
return n === "-" ? n : `${n}${e}${i}`;
|
|
35
34
|
}
|
|
36
35
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
v as negativeTokenTemplate,
|
|
37
|
+
B as percentageTemplate,
|
|
38
|
+
p as tokenTemplate,
|
|
39
|
+
x as tokenTemplateNumber,
|
|
40
|
+
k as tokenTemplateString
|
|
42
41
|
};
|