@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
|
@@ -8,10 +8,9 @@ import { TooltipProvider as y, Tooltip as b, TooltipTrigger as H, TooltipContent
|
|
|
8
8
|
import "@gearbox-protocol/sdk";
|
|
9
9
|
import { cn as n } from "../../utils/cn.js";
|
|
10
10
|
import "sonner";
|
|
11
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
12
11
|
import "luxon";
|
|
13
12
|
import "../../utils/z-index.js";
|
|
14
|
-
function
|
|
13
|
+
function $({
|
|
15
14
|
title: l,
|
|
16
15
|
tip: r,
|
|
17
16
|
arrowPosition: i = "left",
|
|
@@ -21,7 +20,7 @@ function q({
|
|
|
21
20
|
onSort: t,
|
|
22
21
|
className: h
|
|
23
22
|
}) {
|
|
24
|
-
const [x,
|
|
23
|
+
const [x, a] = v.useState(!1), g = !!s || x, c = () => /* @__PURE__ */ e(
|
|
25
24
|
"span",
|
|
26
25
|
{
|
|
27
26
|
className: n(
|
|
@@ -30,7 +29,7 @@ function q({
|
|
|
30
29
|
),
|
|
31
30
|
children: s === "asc" ? /* @__PURE__ */ e(d, { icon: N, className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(d, { icon: T, className: "size-3 text-muted-foreground" })
|
|
32
31
|
}
|
|
33
|
-
),
|
|
32
|
+
), m = () => /* @__PURE__ */ o(
|
|
34
33
|
"button",
|
|
35
34
|
{
|
|
36
35
|
type: "button",
|
|
@@ -42,9 +41,9 @@ function q({
|
|
|
42
41
|
!t && "cursor-default"
|
|
43
42
|
),
|
|
44
43
|
children: [
|
|
45
|
-
t && i === "left" &&
|
|
44
|
+
t && i === "left" && c(),
|
|
46
45
|
l,
|
|
47
|
-
t && i === "right" &&
|
|
46
|
+
t && i === "right" && c()
|
|
48
47
|
]
|
|
49
48
|
}
|
|
50
49
|
), C = `Sort by ${f}`;
|
|
@@ -52,19 +51,19 @@ function q({
|
|
|
52
51
|
"div",
|
|
53
52
|
{
|
|
54
53
|
className: n("inline-flex items-center gap-1.5", h),
|
|
55
|
-
onPointerEnter: () =>
|
|
56
|
-
onPointerLeave: () =>
|
|
54
|
+
onPointerEnter: () => a(!0),
|
|
55
|
+
onPointerLeave: () => a(!1),
|
|
57
56
|
children: [
|
|
58
57
|
t ? /* @__PURE__ */ e(y, { children: /* @__PURE__ */ o(b, { children: [
|
|
59
|
-
/* @__PURE__ */ e(H, { asChild: !0, children:
|
|
58
|
+
/* @__PURE__ */ e(H, { asChild: !0, children: m() }),
|
|
60
59
|
/* @__PURE__ */ e(w, { children: u || C })
|
|
61
|
-
] }) }) :
|
|
60
|
+
] }) }) : m(),
|
|
62
61
|
r && /* @__PURE__ */ e(p, { children: r })
|
|
63
62
|
]
|
|
64
63
|
}
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function q({
|
|
68
67
|
title: l,
|
|
69
68
|
tip: r,
|
|
70
69
|
className: i
|
|
@@ -75,6 +74,6 @@ function B({
|
|
|
75
74
|
] });
|
|
76
75
|
}
|
|
77
76
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
$ as HeadCell,
|
|
78
|
+
q as SimpleHeadCell
|
|
80
79
|
};
|
|
@@ -4,7 +4,6 @@ import { cva as x } from "class-variance-authority";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import { cn as C } 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 { StatusBars as F } from "../status-elements/status-elements.js";
|
|
@@ -26,17 +25,17 @@ const g = 15e3, A = 11e3, H = 10500, N = (t) => {
|
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
);
|
|
29
|
-
function
|
|
28
|
+
function B({
|
|
30
29
|
value: t,
|
|
31
30
|
debt: e,
|
|
32
31
|
decimals: a = 3,
|
|
33
32
|
zone: o,
|
|
34
|
-
zoneType:
|
|
33
|
+
zoneType: n = "color",
|
|
35
34
|
className: m,
|
|
36
35
|
...u
|
|
37
36
|
}) {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
37
|
+
const i = e !== void 0 && e === 0n, r = !i && n === "color" ? o === void 0 ? N(t) : o : void 0, s = r === void 0 ? void 0 : r === null ? "unset" : r, d = () => {
|
|
38
|
+
if (i) return "N/A";
|
|
40
39
|
const l = Number(t);
|
|
41
40
|
return v(l, a);
|
|
42
41
|
};
|
|
@@ -51,7 +50,7 @@ function G({
|
|
|
51
50
|
),
|
|
52
51
|
...u,
|
|
53
52
|
children: [
|
|
54
|
-
o &&
|
|
53
|
+
o && n === "bars" && /* @__PURE__ */ c("span", { className: "mr-6 shrink-0", children: /* @__PURE__ */ c(F, { zone: o }) }),
|
|
55
54
|
d()
|
|
56
55
|
]
|
|
57
56
|
}
|
|
@@ -60,6 +59,6 @@ function G({
|
|
|
60
59
|
export {
|
|
61
60
|
A as BAD_HF,
|
|
62
61
|
g as GOOD_HF,
|
|
63
|
-
|
|
62
|
+
B as HealthFactor,
|
|
64
63
|
N as getHFZones
|
|
65
64
|
};
|
|
@@ -3,19 +3,18 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as o } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ r("div", { className: o("space-y-4",
|
|
8
|
+
function f({ children: e, className: t }) {
|
|
9
|
+
return /* @__PURE__ */ r("div", { className: o("space-y-4", t), children: e });
|
|
11
10
|
}
|
|
12
|
-
function
|
|
11
|
+
function l({ title: e, children: t, className: m }) {
|
|
13
12
|
return /* @__PURE__ */ i("div", { className: o("space-y-2", m), children: [
|
|
14
|
-
|
|
15
|
-
/* @__PURE__ */ r("div", { className: "text-sm text-muted-foreground", children:
|
|
13
|
+
e && /* @__PURE__ */ r("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
14
|
+
/* @__PURE__ */ r("div", { className: "text-sm text-muted-foreground", children: t })
|
|
16
15
|
] });
|
|
17
16
|
}
|
|
18
17
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
l as HelpSection,
|
|
19
|
+
f as HelpSections
|
|
21
20
|
};
|
|
@@ -5,7 +5,6 @@ import * as c from "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as s } 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
|
import { SimpleTooltip as C } from "../tooltip/simple-tooltip.js";
|
|
@@ -54,8 +53,8 @@ const H = T("transition-colors", {
|
|
|
54
53
|
iconSize: i = 14,
|
|
55
54
|
iconColor: n = "gray-90",
|
|
56
55
|
iconHoverColor: p = "gray-110",
|
|
57
|
-
iconVariant:
|
|
58
|
-
onPointerEnter:
|
|
56
|
+
iconVariant: x = "question",
|
|
57
|
+
onPointerEnter: m,
|
|
59
58
|
...d
|
|
60
59
|
}, f) => {
|
|
61
60
|
const u = /* @__PURE__ */ e(
|
|
@@ -65,8 +64,8 @@ const H = T("transition-colors", {
|
|
|
65
64
|
iconSize: i,
|
|
66
65
|
iconColor: n,
|
|
67
66
|
iconHoverColor: p,
|
|
68
|
-
iconVariant:
|
|
69
|
-
onPointerEnter:
|
|
67
|
+
iconVariant: x,
|
|
68
|
+
onPointerEnter: m,
|
|
70
69
|
className: r,
|
|
71
70
|
...d
|
|
72
71
|
}
|
|
@@ -2,17 +2,16 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconQuestionCircle as a } from "@gearbox-protocol/static";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import "../tooltip/simple-tooltip.js";
|
|
5
|
-
import { TooltipProvider as
|
|
5
|
+
import { TooltipProvider as c, Tooltip as m, TooltipTrigger as p, TooltipContent as f } from "../tooltip/tooltip.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as x } 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
|
const h = d.forwardRef(({ label: i, value: l, tip: r, valueDescription: t, className: n }, s) => /* @__PURE__ */ o("div", { ref: s, className: x("flex flex-col gap-2 w-full", n), children: [
|
|
13
12
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
14
13
|
/* @__PURE__ */ e("span", { children: i }),
|
|
15
|
-
r && /* @__PURE__ */ e(
|
|
14
|
+
r && /* @__PURE__ */ e(c, { delayDuration: 0, children: /* @__PURE__ */ o(m, { children: [
|
|
16
15
|
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(
|
|
17
16
|
"button",
|
|
18
17
|
{
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { cva as
|
|
2
|
+
import { Slot as m } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
4
|
import * as f from "react";
|
|
5
5
|
import { BaseLink as g } from "../base-link/base-link.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as h } 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
|
-
const y =
|
|
11
|
+
const y = p(
|
|
13
12
|
"inline-flex items-center justify-center p-0 rounded-full transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-default disabled:pointer-events-none",
|
|
14
13
|
{
|
|
15
14
|
variants: {
|
|
@@ -33,10 +32,10 @@ const y = u(
|
|
|
33
32
|
linkProps: i,
|
|
34
33
|
asChild: c = !1,
|
|
35
34
|
disabled: a,
|
|
36
|
-
children:
|
|
35
|
+
children: u,
|
|
37
36
|
...s
|
|
38
37
|
}, l) => {
|
|
39
|
-
const e =
|
|
38
|
+
const e = u, n = h(
|
|
40
39
|
y({ buttonType: b, className: d }),
|
|
41
40
|
"flex items-center justify-center"
|
|
42
41
|
), o = {
|
|
@@ -54,7 +53,7 @@ const y = u(
|
|
|
54
53
|
children: e
|
|
55
54
|
}
|
|
56
55
|
) }) : c ? /* @__PURE__ */ r(
|
|
57
|
-
|
|
56
|
+
m,
|
|
58
57
|
{
|
|
59
58
|
ref: l,
|
|
60
59
|
className: n,
|
|
@@ -5,11 +5,10 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as n } 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
|
i.autoAddCss = !1;
|
|
12
|
-
function
|
|
11
|
+
function k({ className: o, ...r }) {
|
|
13
12
|
return /* @__PURE__ */ m(
|
|
14
13
|
t,
|
|
15
14
|
{
|
|
@@ -19,5 +18,5 @@ function x({ className: o, ...r }) {
|
|
|
19
18
|
);
|
|
20
19
|
}
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
k as FaIcon
|
|
23
22
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cva as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cva as T } from "class-variance-authority";
|
|
3
|
+
import * as R from "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
|
-
import { useIconSlotWidths as
|
|
11
|
-
const
|
|
9
|
+
import { useIconSlotWidths as S } from "./use-icon-slot-widths.js";
|
|
10
|
+
const z = T(
|
|
12
11
|
e(
|
|
13
12
|
// Layout + typography (matches styled-components: 14/17)
|
|
14
13
|
"flex w-full border shadow-sm transition-colors",
|
|
15
14
|
"!text-sm leading-[17px] font-normal font-feature-settings-normal placeholder:text-sm",
|
|
16
|
-
"file:border-0 file:bg-transparent file:text-sm file:font-
|
|
15
|
+
"file:border-0 file:bg-transparent file:text-sm file:font-semibold file:text-foreground file:my-0",
|
|
17
16
|
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
18
17
|
"outline-none",
|
|
19
18
|
// Hide built-in search clear / decorations (we render our own endingIcon)
|
|
@@ -71,86 +70,93 @@ const R = D(
|
|
|
71
70
|
variant: "default"
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
),
|
|
73
|
+
), F = R.forwardRef(
|
|
75
74
|
({
|
|
76
|
-
hasError:
|
|
77
|
-
errorMessage:
|
|
78
|
-
value:
|
|
79
|
-
size:
|
|
75
|
+
hasError: o,
|
|
76
|
+
errorMessage: d,
|
|
77
|
+
value: g,
|
|
78
|
+
size: u,
|
|
80
79
|
colorTheme: b,
|
|
81
|
-
variant:
|
|
82
|
-
className:
|
|
83
|
-
style:
|
|
84
|
-
startingIcon:
|
|
85
|
-
onStartingIconClick:
|
|
86
|
-
endingIcon:
|
|
87
|
-
onEndingIconClick:
|
|
88
|
-
...
|
|
89
|
-
},
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
80
|
+
variant: m,
|
|
81
|
+
className: x,
|
|
82
|
+
style: y,
|
|
83
|
+
startingIcon: i,
|
|
84
|
+
onStartingIconClick: l,
|
|
85
|
+
endingIcon: s,
|
|
86
|
+
onEndingIconClick: f,
|
|
87
|
+
...a
|
|
88
|
+
}, w) => {
|
|
89
|
+
const c = b ?? "filledDark", r = u ?? "default", v = a.type === "file" && e(
|
|
90
|
+
"cursor-pointer text-muted-foreground flex items-center justify-start py-0 file:mr-3 file:cursor-pointer",
|
|
91
|
+
r === "xs" && "min-h-8 leading-8",
|
|
92
|
+
r === "sm" && "leading-8",
|
|
93
|
+
r === "default" && "leading-10",
|
|
94
|
+
r === "lg" && "leading-11"
|
|
95
|
+
), h = c === "filledLight" ? "text-gray-50" : "text-gray-110", { setStartRef: _, setEndRef: k, inputPaddingStyle: C } = S(), N = (n) => (D) => {
|
|
96
|
+
D.key === "Enter" && n?.();
|
|
97
|
+
}, j = {
|
|
98
|
+
...y,
|
|
99
|
+
...C(!!i, !!s)
|
|
95
100
|
};
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
101
|
+
return /* @__PURE__ */ p("div", { className: "flex flex-col space-y-2", children: [
|
|
102
|
+
/* @__PURE__ */ p("div", { className: "relative", children: [
|
|
103
|
+
i && /* @__PURE__ */ t(
|
|
99
104
|
"button",
|
|
100
105
|
{
|
|
101
|
-
ref:
|
|
106
|
+
ref: _,
|
|
102
107
|
type: "button",
|
|
103
|
-
onClick:
|
|
104
|
-
onKeyDown:
|
|
108
|
+
onClick: l,
|
|
109
|
+
onKeyDown: N(l),
|
|
105
110
|
className: e(
|
|
106
111
|
"absolute left-0 top-1/2 -translate-y-1/2",
|
|
107
112
|
"flex h-9 min-w-9 px-3 items-center justify-center",
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
h,
|
|
114
|
+
l ? "cursor-pointer" : "cursor-default"
|
|
110
115
|
),
|
|
111
|
-
children:
|
|
116
|
+
children: i
|
|
112
117
|
}
|
|
113
118
|
),
|
|
114
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ t(
|
|
115
120
|
"input",
|
|
116
121
|
{
|
|
117
|
-
ref:
|
|
118
|
-
...
|
|
119
|
-
value:
|
|
120
|
-
"data-error":
|
|
121
|
-
style:
|
|
122
|
+
ref: w,
|
|
123
|
+
...a,
|
|
124
|
+
value: g,
|
|
125
|
+
"data-error": o ? "true" : "false",
|
|
126
|
+
style: j,
|
|
122
127
|
className: e(
|
|
123
|
-
|
|
124
|
-
size:
|
|
125
|
-
colorTheme:
|
|
126
|
-
variant:
|
|
128
|
+
z({
|
|
129
|
+
size: u,
|
|
130
|
+
colorTheme: c,
|
|
131
|
+
variant: o ? "error" : m
|
|
127
132
|
}),
|
|
128
|
-
|
|
133
|
+
v,
|
|
134
|
+
x
|
|
129
135
|
),
|
|
130
|
-
onWheel:
|
|
136
|
+
onWheel: a.type === "number" ? (n) => n.currentTarget.blur() : void 0
|
|
131
137
|
}
|
|
132
138
|
),
|
|
133
|
-
|
|
139
|
+
s && /* @__PURE__ */ t(
|
|
134
140
|
"button",
|
|
135
141
|
{
|
|
136
|
-
ref:
|
|
142
|
+
ref: k,
|
|
137
143
|
type: "button",
|
|
138
|
-
onClick:
|
|
144
|
+
onClick: f,
|
|
139
145
|
className: e(
|
|
140
146
|
"absolute right-0 top-1/2 -translate-y-1/2",
|
|
141
147
|
"flex h-9 min-w-9 px-3 items-center justify-center",
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
h,
|
|
149
|
+
f ? "cursor-pointer" : "cursor-default"
|
|
144
150
|
),
|
|
145
|
-
children:
|
|
151
|
+
children: s
|
|
146
152
|
}
|
|
147
153
|
)
|
|
148
154
|
] }),
|
|
149
|
-
|
|
155
|
+
o && d && /* @__PURE__ */ t("p", { className: "text-destructive text-sm", children: d })
|
|
150
156
|
] });
|
|
151
157
|
}
|
|
152
158
|
);
|
|
153
159
|
export {
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
F as Input,
|
|
161
|
+
z as inputVariants
|
|
156
162
|
};
|
|
@@ -3,7 +3,6 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as o } from "../../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../../utils/z-index.js";
|
|
9
8
|
const f = {
|
|
@@ -22,7 +21,7 @@ const f = {
|
|
|
22
21
|
"flex-end": "items-end",
|
|
23
22
|
stretch: "items-stretch"
|
|
24
23
|
};
|
|
25
|
-
function
|
|
24
|
+
function y({
|
|
26
25
|
children: t,
|
|
27
26
|
margin: e = "md",
|
|
28
27
|
justify: s = "flex-start",
|
|
@@ -46,5 +45,5 @@ function w({
|
|
|
46
45
|
);
|
|
47
46
|
}
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
y as Block
|
|
50
49
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as o, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import { IconExternal as t } from "@gearbox-protocol/static";
|
|
3
3
|
import { cva as w } from "class-variance-authority";
|
|
4
4
|
import { BaseLink as u } from "../base-link/base-link.js";
|
|
@@ -6,7 +6,6 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as _ } 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
|
const g = w(
|
|
@@ -27,30 +26,30 @@ function x({
|
|
|
27
26
|
children: a,
|
|
28
27
|
href: i,
|
|
29
28
|
target: s,
|
|
30
|
-
variant:
|
|
29
|
+
variant: e = "default",
|
|
31
30
|
size: c = "default",
|
|
32
31
|
color: m = "main",
|
|
33
|
-
external:
|
|
32
|
+
external: r = !1,
|
|
34
33
|
asChild: d = !1,
|
|
35
34
|
...l
|
|
36
35
|
}) {
|
|
37
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ n(
|
|
38
37
|
u,
|
|
39
38
|
{
|
|
40
39
|
href: i,
|
|
41
40
|
target: s,
|
|
42
|
-
external:
|
|
43
|
-
variant:
|
|
41
|
+
external: r,
|
|
42
|
+
variant: e,
|
|
44
43
|
size: c,
|
|
45
44
|
color: m,
|
|
46
|
-
className: _(g({ variant:
|
|
45
|
+
className: _(g({ variant: e }), p),
|
|
47
46
|
...l,
|
|
48
|
-
children: d ? /* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
] }) : /* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
47
|
+
children: d ? /* @__PURE__ */ o("span", { children: [
|
|
48
|
+
/* @__PURE__ */ n("span", { className: "content-wrap", children: a }),
|
|
49
|
+
r && /* @__PURE__ */ n("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ n(t, { size: 14 }) })
|
|
50
|
+
] }) : /* @__PURE__ */ o(f, { children: [
|
|
51
|
+
/* @__PURE__ */ n("span", { className: "content-wrap", children: a }),
|
|
52
|
+
r && /* @__PURE__ */ n("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ n(t, { size: 14 }) })
|
|
54
53
|
] })
|
|
55
54
|
}
|
|
56
55
|
);
|
package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { AssetUtils as b } from "@gearbox-protocol/sdk/common-utils";
|
|
2
|
+
import { AssetUtils as h, PRICE_DECIMALS as b } from "@gearbox-protocol/sdk";
|
|
4
3
|
import { useMemo as N } from "react";
|
|
5
4
|
import { TokenSymbol as v } from "../../token-symbol/token-symbol.js";
|
|
6
5
|
import { FormattedMessageTyped as s } from "../../typed-intl/index.js";
|
|
7
6
|
import { useIsMobile as L } from "../../../hooks/use-media-query.js";
|
|
8
7
|
import { cn as n } from "../../../utils/cn.js";
|
|
9
|
-
function
|
|
8
|
+
function q({
|
|
10
9
|
tokensList: a,
|
|
11
10
|
graphParams: l,
|
|
12
11
|
data: i,
|
|
13
12
|
prices: m,
|
|
14
13
|
editedPrices: f
|
|
15
14
|
}) {
|
|
16
|
-
const { fixedBalances: o } = l, c = N(() =>
|
|
15
|
+
const { fixedBalances: o } = l, c = N(() => h.constructAssetRecord(o), [o]), u = L();
|
|
17
16
|
return !i || !i.length ? /* @__PURE__ */ e("div", { className: "w-full flex items-center justify-center py-8 text-sm text-muted-foreground", children: /* @__PURE__ */ e(
|
|
18
17
|
s,
|
|
19
18
|
{
|
|
@@ -77,8 +76,8 @@ function T({
|
|
|
77
76
|
] });
|
|
78
77
|
}
|
|
79
78
|
function d(a) {
|
|
80
|
-
return (Number(a || 0n) / Number(
|
|
79
|
+
return (Number(a || 0n) / Number(b)).toFixed(2);
|
|
81
80
|
}
|
|
82
81
|
export {
|
|
83
|
-
|
|
82
|
+
q as LiquidationModellingAssetsTable
|
|
84
83
|
};
|
|
@@ -4,16 +4,15 @@ import { ShortString as p } from "../../short-string/short-string.js";
|
|
|
4
4
|
import { TokenSymbol as f } from "../../token-symbol/token-symbol.js";
|
|
5
5
|
import { FormattedMessageTyped as c } from "../../typed-intl/index.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "react";
|
|
9
8
|
import { formatAxisTipPrice as h, formatAxisTipLabel as u } from "../../../hooks/use-liquidation/utils.js";
|
|
10
|
-
function
|
|
11
|
-
activePointX:
|
|
12
|
-
activePointY:
|
|
9
|
+
function q({
|
|
10
|
+
activePointX: a,
|
|
11
|
+
activePointY: o,
|
|
13
12
|
xAxis: i,
|
|
14
13
|
yAxis: t,
|
|
15
|
-
hf:
|
|
16
|
-
underlyingToken:
|
|
14
|
+
hf: s,
|
|
15
|
+
underlyingToken: m,
|
|
17
16
|
maxLabelLength: l
|
|
18
17
|
}) {
|
|
19
18
|
return /* @__PURE__ */ r("div", { className: "flex w-full justify-between items-center", children: [
|
|
@@ -21,9 +20,9 @@ function T({
|
|
|
21
20
|
i && /* @__PURE__ */ e("div", { className: "flex items-center", children: /* @__PURE__ */ e(
|
|
22
21
|
d,
|
|
23
22
|
{
|
|
24
|
-
underlyingToken:
|
|
23
|
+
underlyingToken: m,
|
|
25
24
|
token: i.label,
|
|
26
|
-
value:
|
|
25
|
+
value: a,
|
|
27
26
|
order: i.order,
|
|
28
27
|
maxLabelLength: l
|
|
29
28
|
}
|
|
@@ -31,9 +30,9 @@ function T({
|
|
|
31
30
|
t && /* @__PURE__ */ e("div", { className: "flex items-center", children: /* @__PURE__ */ e(
|
|
32
31
|
d,
|
|
33
32
|
{
|
|
34
|
-
underlyingToken:
|
|
33
|
+
underlyingToken: m,
|
|
35
34
|
token: t.label,
|
|
36
|
-
value:
|
|
35
|
+
value: o,
|
|
37
36
|
order: t.order,
|
|
38
37
|
maxLabelLength: l
|
|
39
38
|
}
|
|
@@ -44,29 +43,29 @@ function T({
|
|
|
44
43
|
/* @__PURE__ */ e(c, { messageId: "components.creditSessionDetailedLiquidation.graph.tip.hf" }),
|
|
45
44
|
":"
|
|
46
45
|
] }),
|
|
47
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { value:
|
|
46
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { value: s, debt: 1n }) })
|
|
48
47
|
] })
|
|
49
48
|
] });
|
|
50
49
|
}
|
|
51
50
|
function d({
|
|
52
|
-
token:
|
|
53
|
-
underlyingToken:
|
|
51
|
+
token: a,
|
|
52
|
+
underlyingToken: o,
|
|
54
53
|
value: i = 0,
|
|
55
54
|
order: t = "straight",
|
|
56
|
-
maxLabelLength:
|
|
55
|
+
maxLabelLength: s = 13
|
|
57
56
|
}) {
|
|
58
57
|
return /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
59
|
-
/* @__PURE__ */ e(f, { token:
|
|
58
|
+
/* @__PURE__ */ e(f, { token: a, size: 12 }),
|
|
60
59
|
/* @__PURE__ */ r("div", { className: "text-sm text-foreground", children: [
|
|
61
|
-
/* @__PURE__ */ e(p, { maxLength:
|
|
60
|
+
/* @__PURE__ */ e(p, { maxLength: s, children: u(a, o, t) }),
|
|
62
61
|
" ",
|
|
63
62
|
/* @__PURE__ */ e(c, { messageId: "components.creditSessionDetailedLiquidation.graph.tip.price" }),
|
|
64
63
|
": ",
|
|
65
|
-
|
|
64
|
+
o ? "" : "$",
|
|
66
65
|
h(i)
|
|
67
66
|
] })
|
|
68
67
|
] });
|
|
69
68
|
}
|
|
70
69
|
export {
|
|
71
|
-
|
|
70
|
+
q as LiquidationGraphTip
|
|
72
71
|
};
|
|
@@ -8,11 +8,10 @@ import "react";
|
|
|
8
8
|
import { bnToLiquidationPriceView as b } from "../../utils/parse-input-to-bn.js";
|
|
9
9
|
import { cn as v } from "../../utils/cn.js";
|
|
10
10
|
import "sonner";
|
|
11
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
12
11
|
import "luxon";
|
|
13
12
|
import "../../utils/z-index.js";
|
|
14
13
|
const w = { type: "text" };
|
|
15
|
-
function
|
|
14
|
+
function _({
|
|
16
15
|
liquidationPrice: t = 0,
|
|
17
16
|
type: o = w,
|
|
18
17
|
hfZone: e,
|
|
@@ -42,5 +41,5 @@ function y({
|
|
|
42
41
|
] });
|
|
43
42
|
}
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
_ as LiquidationPrice
|
|
46
45
|
};
|