@gearbox-protocol/permissionless-ui 1.27.0 → 2.0.0-next.1
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/types/common.cjs +1 -0
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +8 -7
- package/dist/esm/components/address/address.js +3 -2
- package/dist/esm/components/alert-badge/alert-badge.js +1 -0
- package/dist/esm/components/alert-dialog/alert-dialog.js +8 -7
- package/dist/esm/components/alert-modal/alert-modal.js +1 -0
- package/dist/esm/components/app-bar/app-bar.js +1 -0
- package/dist/esm/components/apy/apy.js +10 -9
- package/dist/esm/components/arc-loader/arc-loader.js +1 -0
- package/dist/esm/components/asset-line/asset-line.js +10 -9
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +3 -2
- package/dist/esm/components/assets-ratio/assets-ratio.js +12 -11
- package/dist/esm/components/auth/connect-required.js +3 -2
- package/dist/esm/components/auth/signin-required.js +12 -11
- package/dist/esm/components/avatar/avatar.js +10 -9
- package/dist/esm/components/badge/badge.js +7 -6
- package/dist/esm/components/base-link/base-link.js +8 -7
- package/dist/esm/components/block-sync/block-sync.js +3 -2
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +3 -2
- package/dist/esm/components/button-checkbox/button-checkbox.js +16 -13
- package/dist/esm/components/buttons/back-button/back-button.js +7 -6
- package/dist/esm/components/buttons/button/button.js +5 -4
- package/dist/esm/components/buttons/copy-button/copy-button.js +8 -7
- package/dist/esm/components/buttons/external-button/external-button.js +8 -7
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +4 -3
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +3 -2
- package/dist/esm/components/card-grid/card-grid.js +5 -4
- package/dist/esm/components/cards/card/card.js +1 -0
- package/dist/esm/components/cards/expandable-call/expandable-call.js +20 -19
- package/dist/esm/components/cards/expandable-card/expandable-card.js +12 -11
- package/dist/esm/components/carousel/carousel.js +15 -14
- package/dist/esm/components/checkbox/checkbox-labeled.js +1 -0
- package/dist/esm/components/checkbox/checkbox.js +1 -0
- package/dist/esm/components/checkbox-item/checkbox-item.js +10 -9
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +5 -4
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +1 -0
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +1 -0
- package/dist/esm/components/colored-text/colored-text.js +1 -0
- package/dist/esm/components/complex-input/complex-input.js +3 -2
- package/dist/esm/components/compound-apy/compound-apy.js +3 -2
- package/dist/esm/components/confirm-menu/confirm-menu.js +4 -3
- package/dist/esm/components/credit-session-status/credit-session-status.js +3 -2
- package/dist/esm/components/currency-button/currency-button.js +10 -9
- package/dist/esm/components/description/description.js +1 -0
- package/dist/esm/components/detailed-apy/detailed-apy.js +9 -8
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +1 -0
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +1 -0
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +1 -0
- package/dist/esm/components/dialog/dialog-container.js +7 -6
- package/dist/esm/components/dialog/dialog-content.js +1 -0
- package/dist/esm/components/dialog/dialog-description.js +5 -4
- package/dist/esm/components/dialog/dialog-footer.js +1 -0
- package/dist/esm/components/dialog/dialog-form.js +12 -11
- package/dist/esm/components/dialog/dialog-header.js +5 -4
- package/dist/esm/components/dialog/dialog-modal-container.js +1 -0
- package/dist/esm/components/dialog/dialog-overlay.js +4 -3
- package/dist/esm/components/dialog/dialog-title.js +1 -0
- package/dist/esm/components/dropdown-label/dropdown-label.js +7 -6
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +5 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +8 -7
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +8 -7
- package/dist/esm/components/edit-input/edit-input.js +7 -6
- package/dist/esm/components/error-message/error-line-message.js +6 -5
- package/dist/esm/components/error-message/error-message.js +3 -2
- package/dist/esm/components/error-view/error-view.js +3 -2
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +3 -2
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +1 -0
- package/dist/esm/components/filter/filter-block.js +1 -0
- package/dist/esm/components/filter/filter-checkbox-item.js +4 -3
- package/dist/esm/components/filter/filter-chip.js +9 -8
- package/dist/esm/components/filter/filter-chips.js +6 -5
- package/dist/esm/components/filter/filter-dropdown-item.js +12 -11
- package/dist/esm/components/filter/filter-group.js +1 -0
- package/dist/esm/components/filter/filter-label.js +1 -0
- package/dist/esm/components/filter/filter-modal-item.js +5 -4
- package/dist/esm/components/filter/filter-modal.js +3 -2
- package/dist/esm/components/filter/filter-radio-item.js +5 -4
- package/dist/esm/components/filter/filter-separator.js +4 -3
- package/dist/esm/components/formatted-number/formatted-number.js +3 -2
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +3 -2
- package/dist/esm/components/head-cell/head-cell.js +13 -12
- package/dist/esm/components/health-factor/health-factor.js +7 -6
- package/dist/esm/components/help-sections/help-sections.js +8 -7
- package/dist/esm/components/help-tip/help-tip.js +5 -4
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +3 -2
- package/dist/esm/components/icon-button/icon-button.js +7 -6
- package/dist/esm/components/icons/fa-icon.js +3 -2
- package/dist/esm/components/input/input.js +3 -2
- package/dist/esm/components/label/label.js +1 -0
- package/dist/esm/components/layout/block/block.js +3 -2
- package/dist/esm/components/link/link.js +14 -13
- package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js +6 -5
- package/dist/esm/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.js +18 -17
- package/dist/esm/components/liquidation-price/liquidation-price.js +3 -2
- package/dist/esm/components/loader/loader.js +1 -0
- package/dist/esm/components/loader-guard/loader-guard.js +3 -2
- package/dist/esm/components/loading-bar/loading-bar.js +1 -0
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +3 -2
- package/dist/esm/components/modal/modal.js +8 -7
- package/dist/esm/components/navbar/navbar-with-overflow.js +3 -2
- package/dist/esm/components/navbar/navbar.js +22 -21
- package/dist/esm/components/navbar-logo/navbar-logo.js +3 -2
- package/dist/esm/components/navitem/navitem.js +1 -0
- package/dist/esm/components/not-found/not-found.js +3 -2
- package/dist/esm/components/options-list/options-list.js +5 -4
- package/dist/esm/components/overflow/overflow.js +9 -8
- package/dist/esm/components/overflow-container/overflow-container.js +3 -2
- package/dist/esm/components/page-title/page-title.js +6 -5
- package/dist/esm/components/percent-indicator/percent-indicator.js +3 -2
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +3 -2
- package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +6 -5
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +3 -2
- package/dist/esm/components/progress/progress.js +6 -5
- package/dist/esm/components/progress-bar/progress-bar.js +17 -16
- package/dist/esm/components/progress-circle/progress-circle.js +11 -10
- package/dist/esm/components/radio-group/radio-group.js +1 -0
- package/dist/esm/components/rounded-image/rounded-image.js +1 -0
- package/dist/esm/components/row/row.js +3 -2
- package/dist/esm/components/search-bar/search-bar.js +5 -4
- package/dist/esm/components/search-line/search-line.js +1 -0
- package/dist/esm/components/segmented-control/segmented-control.js +9 -8
- package/dist/esm/components/select/select.js +4 -3
- package/dist/esm/components/separate-line/separate-line.js +1 -0
- package/dist/esm/components/separator/separator.js +4 -3
- package/dist/esm/components/short-string/short-string.js +4 -3
- package/dist/esm/components/signatures/confirmation-item.js +3 -2
- package/dist/esm/components/simple-accordion/simple-accordion.js +1 -0
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +1 -0
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +5 -4
- package/dist/esm/components/skeleton/skeleton-stack.js +7 -6
- package/dist/esm/components/skeleton/skeleton.js +3 -2
- package/dist/esm/components/slider/slider.js +1 -0
- package/dist/esm/components/slider-token/slider-token.js +13 -12
- package/dist/esm/components/smart-number-input/balance-indicator.js +14 -13
- package/dist/esm/components/smart-number-input/smart-number-input.js +1 -0
- package/dist/esm/components/spinner/spinner.js +1 -0
- package/dist/esm/components/spinner-loader/spinner-loader.js +8 -7
- package/dist/esm/components/split-list/split-list.js +5 -4
- package/dist/esm/components/stat-badge/stat-badge.js +10 -9
- package/dist/esm/components/status-dot/status-dot.js +4 -3
- package/dist/esm/components/status-elements/status-elements.js +7 -6
- package/dist/esm/components/status-triangle/status-triangle.js +6 -5
- package/dist/esm/components/stepper/stepper.js +21 -20
- package/dist/esm/components/styled-dropdown/styled-dropdown.js +3 -2
- package/dist/esm/components/switch/switch.js +8 -7
- package/dist/esm/components/tab-control/tab-control.js +37 -36
- package/dist/esm/components/table/edit-button.js +3 -2
- package/dist/esm/components/table/editable-grid-table.js +36 -35
- package/dist/esm/components/table/editable-table.js +17 -16
- package/dist/esm/components/table/grid-loading-line.js +14 -13
- package/dist/esm/components/table/table-sm.js +21 -20
- package/dist/esm/components/table/table.js +1 -0
- package/dist/esm/components/tabs/tabs.js +7 -6
- package/dist/esm/components/text-button/text-button.js +10 -9
- package/dist/esm/components/textarea/textarea.js +1 -0
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +1 -0
- package/dist/esm/components/tip-card/tip-card.js +5 -4
- package/dist/esm/components/toggle/toggle.js +1 -0
- package/dist/esm/components/token-symbol/token-symbol.js +5 -4
- package/dist/esm/components/token-template/token-template.js +6 -5
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +3 -2
- package/dist/esm/components/tooltip/simple-tooltip.js +1 -0
- package/dist/esm/components/tooltip/tooltip.js +7 -6
- package/dist/esm/components/trading-view/trading-view.js +3 -2
- package/dist/esm/components/typography/typography.js +5 -4
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +1 -0
- package/dist/esm/components/vertical-list/vertical-list.js +9 -8
- package/dist/esm/components/with-copy/with-copy.js +3 -2
- package/dist/esm/components/with-filter-button/with-filter-button.js +1 -0
- package/dist/esm/components/with-title/with-title.js +8 -7
- package/dist/esm/hooks/use-debounce-call.js +6 -5
- package/dist/esm/hooks/use-hf.js +22 -22
- package/dist/esm/hooks/use-liquidation/index.js +66 -65
- package/dist/esm/types/common.js +1 -0
- package/dist/esm/utils/format-money.js +18 -17
- package/dist/esm/utils/templates.js +21 -20
- package/dist/types/components/asset-line/asset-line.d.ts +4 -3
- package/dist/types/components/compound-apy/compound-apy.d.ts +3 -4
- 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 +5 -4
- 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 +2 -10
- package/dist/types/components/token-symbol/token-symbol.d.ts +2 -6
- 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 +4 -3
- package/dist/types/hooks/use-liquidation/index.d.ts +9 -8
- package/dist/types/hooks/use-liquidation/types.d.ts +2 -2
- package/dist/types/hooks/use-liquidation/utils.d.ts +11 -10
- package/dist/types/types/common.d.ts +23 -0
- package/dist/types/utils/interface.d.ts +0 -9
- 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
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as a from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as i } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
const
|
|
10
|
+
const e = a.forwardRef(({ className: o, ...m }, p) => /* @__PURE__ */ t(
|
|
10
11
|
r.Separator,
|
|
11
12
|
{
|
|
12
13
|
ref: p,
|
|
13
|
-
className:
|
|
14
|
+
className: i("-mx-1 my-1 h-px bg-muted", o),
|
|
14
15
|
...m
|
|
15
16
|
}
|
|
16
17
|
));
|
|
17
|
-
|
|
18
|
+
e.displayName = r.Separator.displayName;
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
e as DropdownMenuSeparator
|
|
20
21
|
};
|
|
@@ -4,6 +4,7 @@ import * as i from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as r } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import { Z_INDEX as m } from "../../utils/z-index.js";
|
|
9
10
|
const n = i.forwardRef(({ className: o, ...e }, a) => /* @__PURE__ */ d(
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { IconExpand as
|
|
1
|
+
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { IconExpand as p } from "@gearbox-protocol/static";
|
|
3
3
|
import * as e from "@radix-ui/react-dropdown-menu";
|
|
4
|
-
import * as
|
|
4
|
+
import * as a from "react";
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as c } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
8
9
|
import "luxon";
|
|
9
10
|
import "../../utils/z-index.js";
|
|
10
|
-
const g =
|
|
11
|
+
const g = a.forwardRef(({ className: r, inset: o, children: t, ...s }, i) => /* @__PURE__ */ m(
|
|
11
12
|
e.SubTrigger,
|
|
12
13
|
{
|
|
13
14
|
ref: i,
|
|
@@ -16,10 +17,10 @@ const g = p.forwardRef(({ className: r, inset: o, children: s, ...t }, i) => /*
|
|
|
16
17
|
o && "pl-8",
|
|
17
18
|
r
|
|
18
19
|
),
|
|
19
|
-
...
|
|
20
|
+
...s,
|
|
20
21
|
children: [
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
t,
|
|
23
|
+
/* @__PURE__ */ n(p, { size: 16, className: "ml-auto [&_svg]:size-4" })
|
|
23
24
|
]
|
|
24
25
|
}
|
|
25
26
|
));
|
|
@@ -9,6 +9,7 @@ import { TextButton as M } from "../text-button/text-button.js";
|
|
|
9
9
|
import "@gearbox-protocol/sdk";
|
|
10
10
|
import { cn as f } from "../../utils/cn.js";
|
|
11
11
|
import "sonner";
|
|
12
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
12
13
|
import "luxon";
|
|
13
14
|
import "../../utils/z-index.js";
|
|
14
15
|
const S = D("", {
|
|
@@ -29,9 +30,9 @@ const S = D("", {
|
|
|
29
30
|
md: "default",
|
|
30
31
|
lg: "lg"
|
|
31
32
|
};
|
|
32
|
-
function
|
|
33
|
-
label:
|
|
34
|
-
value:
|
|
33
|
+
function Y({
|
|
34
|
+
label: m,
|
|
35
|
+
value: c,
|
|
35
36
|
onChange: d,
|
|
36
37
|
onSubmit: u,
|
|
37
38
|
onEditModeChange: p,
|
|
@@ -74,7 +75,7 @@ function X({
|
|
|
74
75
|
L,
|
|
75
76
|
{
|
|
76
77
|
ref: n,
|
|
77
|
-
value:
|
|
78
|
+
value: c,
|
|
78
79
|
size: V[s],
|
|
79
80
|
colorTheme: x,
|
|
80
81
|
onChange: d,
|
|
@@ -113,12 +114,12 @@ function X({
|
|
|
113
114
|
icon: /* @__PURE__ */ t(z, { size: 12, className: "mb-[3px] shrink-0", "aria-hidden": !0 }),
|
|
114
115
|
tabIndex: -1,
|
|
115
116
|
onClick: j,
|
|
116
|
-
children:
|
|
117
|
+
children: m
|
|
117
118
|
}
|
|
118
119
|
)
|
|
119
120
|
}
|
|
120
121
|
);
|
|
121
122
|
}
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
Y as EditInput
|
|
124
125
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as e } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
|
-
function
|
|
9
|
+
function g({
|
|
9
10
|
err: t,
|
|
10
11
|
title: o,
|
|
11
|
-
className:
|
|
12
|
+
className: i
|
|
12
13
|
}) {
|
|
13
|
-
return /* @__PURE__ */ r("div", { className:
|
|
14
|
+
return /* @__PURE__ */ r("div", { className: e("text-destructive", i), children: [
|
|
14
15
|
/* @__PURE__ */ r("strong", { children: [
|
|
15
16
|
o ?? "Error",
|
|
16
17
|
":"
|
|
@@ -20,5 +21,5 @@ function f({
|
|
|
20
21
|
] });
|
|
21
22
|
}
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
g as ErrorLineMessage
|
|
24
25
|
};
|
|
@@ -7,9 +7,10 @@ import "react";
|
|
|
7
7
|
import "@gearbox-protocol/sdk";
|
|
8
8
|
import { cn as n } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
10
11
|
import "luxon";
|
|
11
12
|
import "../../utils/z-index.js";
|
|
12
|
-
function
|
|
13
|
+
function y({
|
|
13
14
|
err: t,
|
|
14
15
|
btnTitle: m,
|
|
15
16
|
onClick: o,
|
|
@@ -34,5 +35,5 @@ function v({
|
|
|
34
35
|
);
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
y as ErrorMessage
|
|
38
39
|
};
|
|
@@ -4,9 +4,10 @@ import "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as l } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
function
|
|
10
|
+
function N({
|
|
10
11
|
status: m,
|
|
11
12
|
message: t,
|
|
12
13
|
backButton: r,
|
|
@@ -47,5 +48,5 @@ function g({
|
|
|
47
48
|
);
|
|
48
49
|
}
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
N as ErrorView
|
|
51
52
|
};
|
|
@@ -14,6 +14,7 @@ import "../dropdown-menu/dropdown-menu-sub-trigger.js";
|
|
|
14
14
|
import "@gearbox-protocol/sdk";
|
|
15
15
|
import { cn as M } from "../../utils/cn.js";
|
|
16
16
|
import "sonner";
|
|
17
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
17
18
|
import "luxon";
|
|
18
19
|
import "../../utils/z-index.js";
|
|
19
20
|
const s = {
|
|
@@ -34,7 +35,7 @@ const s = {
|
|
|
34
35
|
function N(e, r, n) {
|
|
35
36
|
return n ? `${e}/tx/${n}` : r ? `${e}/address/${r}` : e;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function G({
|
|
38
39
|
explorerLinks: e,
|
|
39
40
|
opened: r,
|
|
40
41
|
opens: n = "right",
|
|
@@ -78,5 +79,5 @@ function F({
|
|
|
78
79
|
] });
|
|
79
80
|
}
|
|
80
81
|
export {
|
|
81
|
-
|
|
82
|
+
G as ExplorerLinksDropdown
|
|
82
83
|
};
|
|
@@ -3,6 +3,7 @@ import * as s from "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as l } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
9
|
import { filterBlockVariants as c } from "./variants.js";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as c from "react";
|
|
4
4
|
import { faCheck as n } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { FaIcon as l } from "../icons/fa-icon.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as d } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
|
-
const p =
|
|
12
|
+
const p = c.forwardRef(({ className: o, children: r, checked: a, ...i }, s) => /* @__PURE__ */ m(
|
|
12
13
|
t.CheckboxItem,
|
|
13
14
|
{
|
|
14
15
|
ref: s,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { Badge as
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { Badge as s } from "../badge/badge.js";
|
|
4
4
|
import { faXmark as f } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { FaIcon as l } from "../icons/fa-icon.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as u } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
|
-
const d =
|
|
12
|
-
({ className: e, label: i, value: g, onRemove: o, showRemove: t = !0, ...a }, n) => /* @__PURE__ */ r("div", { ref: n, ...a, children: /* @__PURE__ */
|
|
13
|
-
|
|
12
|
+
const d = m.forwardRef(
|
|
13
|
+
({ className: e, label: i, value: g, onRemove: o, showRemove: t = !0, ...a }, n) => /* @__PURE__ */ r("div", { ref: n, ...a, children: /* @__PURE__ */ c(
|
|
14
|
+
s,
|
|
14
15
|
{
|
|
15
16
|
variant: "secondary",
|
|
16
17
|
className: u(
|
|
@@ -24,8 +25,8 @@ const d = s.forwardRef(
|
|
|
24
25
|
"button",
|
|
25
26
|
{
|
|
26
27
|
type: "button",
|
|
27
|
-
onClick: (
|
|
28
|
-
|
|
28
|
+
onClick: (p) => {
|
|
29
|
+
p.stopPropagation(), o();
|
|
29
30
|
},
|
|
30
31
|
className: "ml-1 rounded-sm hover:bg-accent hover:text-accent-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
31
32
|
"aria-label": `Remove filter: ${i}`,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as s } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
9
|
import { FilterChip as u } from "./filter-chip.js";
|
|
@@ -13,13 +14,13 @@ const c = d.forwardRef(
|
|
|
13
14
|
onRemoveFilter: t,
|
|
14
15
|
onClearAll: o,
|
|
15
16
|
showClearAll: n = !0,
|
|
16
|
-
...
|
|
17
|
-
},
|
|
17
|
+
...p
|
|
18
|
+
}, a) => r.length === 0 ? null : /* @__PURE__ */ l(
|
|
18
19
|
"div",
|
|
19
20
|
{
|
|
20
|
-
ref:
|
|
21
|
+
ref: a,
|
|
21
22
|
className: s("flex flex-wrap items-center gap-2", m),
|
|
22
|
-
...
|
|
23
|
+
...p,
|
|
23
24
|
children: [
|
|
24
25
|
r.map((e) => /* @__PURE__ */ i(
|
|
25
26
|
u,
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as u } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
9
|
const x = d.forwardRef(
|
|
9
10
|
({
|
|
10
11
|
className: n,
|
|
11
12
|
inset: a,
|
|
12
|
-
title:
|
|
13
|
+
title: i,
|
|
13
14
|
decimals: f,
|
|
14
15
|
maxValue: h,
|
|
15
|
-
state:
|
|
16
|
+
state: t,
|
|
16
17
|
onSave: v,
|
|
17
|
-
onReset:
|
|
18
|
-
children:
|
|
18
|
+
onReset: e,
|
|
19
|
+
children: s,
|
|
19
20
|
...m
|
|
20
21
|
}, l) => {
|
|
21
|
-
const o =
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
const o = t != null;
|
|
23
|
+
return /* @__PURE__ */ c(
|
|
23
24
|
"div",
|
|
24
25
|
{
|
|
25
26
|
ref: l,
|
|
@@ -31,13 +32,13 @@ const x = d.forwardRef(
|
|
|
31
32
|
),
|
|
32
33
|
...m,
|
|
33
34
|
children: [
|
|
34
|
-
/* @__PURE__ */ r("span", { children:
|
|
35
|
-
o &&
|
|
35
|
+
/* @__PURE__ */ r("span", { children: i || s }),
|
|
36
|
+
o && e && /* @__PURE__ */ r(
|
|
36
37
|
"button",
|
|
37
38
|
{
|
|
38
39
|
type: "button",
|
|
39
|
-
onClick: (
|
|
40
|
-
|
|
40
|
+
onClick: (p) => {
|
|
41
|
+
p.stopPropagation(), e();
|
|
41
42
|
},
|
|
42
43
|
className: "text-xs text-muted-foreground hover:text-foreground",
|
|
43
44
|
children: "Reset"
|
|
@@ -4,6 +4,7 @@ import * as t 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";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
const e = t.forwardRef(({ className: o, ...m }, p) => /* @__PURE__ */ i(r.Group, { ref: p, className: a(o), ...m }));
|
|
@@ -4,6 +4,7 @@ import * as e 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";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
const s = e.forwardRef(({ className: m, inset: r, ...t }, i) => /* @__PURE__ */ p(
|
|
@@ -3,6 +3,7 @@ import * as x from "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as g } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
9
|
const b = x.forwardRef(
|
|
@@ -16,13 +17,13 @@ const b = x.forwardRef(
|
|
|
16
17
|
onReset: o,
|
|
17
18
|
children: l,
|
|
18
19
|
onClick: p,
|
|
19
|
-
...
|
|
20
|
-
},
|
|
20
|
+
...m
|
|
21
|
+
}, u) => {
|
|
21
22
|
const r = e != null;
|
|
22
23
|
return /* @__PURE__ */ d(
|
|
23
24
|
"button",
|
|
24
25
|
{
|
|
25
|
-
ref:
|
|
26
|
+
ref: u,
|
|
26
27
|
type: "button",
|
|
27
28
|
"data-has-state": r,
|
|
28
29
|
className: g(
|
|
@@ -35,7 +36,7 @@ const b = x.forwardRef(
|
|
|
35
36
|
),
|
|
36
37
|
onClick: p || a,
|
|
37
38
|
disabled: t,
|
|
38
|
-
...
|
|
39
|
+
...m,
|
|
39
40
|
children: [
|
|
40
41
|
/* @__PURE__ */ n("span", { children: c || l }),
|
|
41
42
|
r && o && /* @__PURE__ */ n(
|
|
@@ -9,6 +9,7 @@ import "../buttons/navigation-button/navigation-button.js";
|
|
|
9
9
|
import "@gearbox-protocol/sdk";
|
|
10
10
|
import { cn as D } from "../../utils/cn.js";
|
|
11
11
|
import "sonner";
|
|
12
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
12
13
|
import { extractTextFromLabel as j, serializeValue as R } from "../../utils/react.js";
|
|
13
14
|
import "luxon";
|
|
14
15
|
import "../../utils/z-index.js";
|
|
@@ -33,7 +34,7 @@ import { useIntlTyped as ae } from "../typed-intl/index.js";
|
|
|
33
34
|
function d(m, o) {
|
|
34
35
|
return m ? Array.isArray(m) ? m.includes(o) : m.has(o) : !1;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function Qe({
|
|
37
38
|
title: m,
|
|
38
39
|
state: o,
|
|
39
40
|
modalShow: f,
|
|
@@ -213,5 +214,5 @@ function qe({
|
|
|
213
214
|
);
|
|
214
215
|
}
|
|
215
216
|
export {
|
|
216
|
-
|
|
217
|
+
Qe as FilterModal
|
|
217
218
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
4
|
-
import { faCircle as
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { faCircle as n } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { FaIcon as c } from "../icons/fa-icon.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as l } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
|
-
const d =
|
|
12
|
+
const d = m.forwardRef(({ className: o, children: r, ...i }, a) => /* @__PURE__ */ s(
|
|
12
13
|
t.RadioItem,
|
|
13
14
|
{
|
|
14
15
|
ref: a,
|
|
@@ -18,7 +19,7 @@ const d = n.forwardRef(({ className: o, children: r, ...i }, a) => /* @__PURE__
|
|
|
18
19
|
),
|
|
19
20
|
...i,
|
|
20
21
|
children: [
|
|
21
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(c, { icon:
|
|
22
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(c, { icon: n, className: "size-2 fill-current" }) }) }),
|
|
22
23
|
r
|
|
23
24
|
]
|
|
24
25
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as a from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as i } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
const e =
|
|
10
|
+
const e = a.forwardRef(({ className: o, ...m }, t) => /* @__PURE__ */ p(
|
|
10
11
|
r.Separator,
|
|
11
12
|
{
|
|
12
13
|
ref: t,
|
|
@@ -5,9 +5,10 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as u } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
8
9
|
import "luxon";
|
|
9
10
|
import "../../utils/z-index.js";
|
|
10
|
-
function
|
|
11
|
+
function w({
|
|
11
12
|
value: t,
|
|
12
13
|
decimalPartLength: r = 4,
|
|
13
14
|
hideZerosIfMore: p = 3,
|
|
@@ -54,5 +55,5 @@ function x({ zeroPart: t, repeats: r }) {
|
|
|
54
55
|
] });
|
|
55
56
|
}
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
w as FormattedNumberString
|
|
58
59
|
};
|
|
@@ -3,11 +3,12 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as t } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
|
-
function
|
|
9
|
+
function s({ children: r, className: i, ...m }) {
|
|
9
10
|
return /* @__PURE__ */ o("td", { className: t("px-3 py-2 align-middle", i), ...m, children: r });
|
|
10
11
|
}
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
s as GridTDCell
|
|
13
14
|
};
|
|
@@ -8,9 +8,10 @@ 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";
|
|
11
12
|
import "luxon";
|
|
12
13
|
import "../../utils/z-index.js";
|
|
13
|
-
function
|
|
14
|
+
function q({
|
|
14
15
|
title: l,
|
|
15
16
|
tip: r,
|
|
16
17
|
arrowPosition: i = "left",
|
|
@@ -20,7 +21,7 @@ function $({
|
|
|
20
21
|
onSort: t,
|
|
21
22
|
className: h
|
|
22
23
|
}) {
|
|
23
|
-
const [x,
|
|
24
|
+
const [x, m] = v.useState(!1), g = !!s || x, a = () => /* @__PURE__ */ e(
|
|
24
25
|
"span",
|
|
25
26
|
{
|
|
26
27
|
className: n(
|
|
@@ -29,7 +30,7 @@ function $({
|
|
|
29
30
|
),
|
|
30
31
|
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" })
|
|
31
32
|
}
|
|
32
|
-
),
|
|
33
|
+
), c = () => /* @__PURE__ */ o(
|
|
33
34
|
"button",
|
|
34
35
|
{
|
|
35
36
|
type: "button",
|
|
@@ -41,9 +42,9 @@ function $({
|
|
|
41
42
|
!t && "cursor-default"
|
|
42
43
|
),
|
|
43
44
|
children: [
|
|
44
|
-
t && i === "left" &&
|
|
45
|
+
t && i === "left" && a(),
|
|
45
46
|
l,
|
|
46
|
-
t && i === "right" &&
|
|
47
|
+
t && i === "right" && a()
|
|
47
48
|
]
|
|
48
49
|
}
|
|
49
50
|
), C = `Sort by ${f}`;
|
|
@@ -51,19 +52,19 @@ function $({
|
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
53
54
|
className: n("inline-flex items-center gap-1.5", h),
|
|
54
|
-
onPointerEnter: () =>
|
|
55
|
-
onPointerLeave: () =>
|
|
55
|
+
onPointerEnter: () => m(!0),
|
|
56
|
+
onPointerLeave: () => m(!1),
|
|
56
57
|
children: [
|
|
57
58
|
t ? /* @__PURE__ */ e(y, { children: /* @__PURE__ */ o(b, { children: [
|
|
58
|
-
/* @__PURE__ */ e(H, { asChild: !0, children:
|
|
59
|
+
/* @__PURE__ */ e(H, { asChild: !0, children: c() }),
|
|
59
60
|
/* @__PURE__ */ e(w, { children: u || C })
|
|
60
|
-
] }) }) :
|
|
61
|
+
] }) }) : c(),
|
|
61
62
|
r && /* @__PURE__ */ e(p, { children: r })
|
|
62
63
|
]
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function B({
|
|
67
68
|
title: l,
|
|
68
69
|
tip: r,
|
|
69
70
|
className: i
|
|
@@ -74,6 +75,6 @@ function q({
|
|
|
74
75
|
] });
|
|
75
76
|
}
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
q as HeadCell,
|
|
79
|
+
B as SimpleHeadCell
|
|
79
80
|
};
|
|
@@ -4,6 +4,7 @@ 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";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
import { StatusBars as F } from "../status-elements/status-elements.js";
|
|
@@ -25,17 +26,17 @@ const g = 15e3, A = 11e3, H = 10500, N = (t) => {
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
|
-
function
|
|
29
|
+
function G({
|
|
29
30
|
value: t,
|
|
30
31
|
debt: e,
|
|
31
32
|
decimals: a = 3,
|
|
32
33
|
zone: o,
|
|
33
|
-
zoneType:
|
|
34
|
+
zoneType: i = "color",
|
|
34
35
|
className: m,
|
|
35
36
|
...u
|
|
36
37
|
}) {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
38
|
+
const n = e !== void 0 && e === 0n, r = !n && i === "color" ? o === void 0 ? N(t) : o : void 0, s = r === void 0 ? void 0 : r === null ? "unset" : r, d = () => {
|
|
39
|
+
if (n) return "N/A";
|
|
39
40
|
const l = Number(t);
|
|
40
41
|
return v(l, a);
|
|
41
42
|
};
|
|
@@ -50,7 +51,7 @@ function B({
|
|
|
50
51
|
),
|
|
51
52
|
...u,
|
|
52
53
|
children: [
|
|
53
|
-
o &&
|
|
54
|
+
o && i === "bars" && /* @__PURE__ */ c("span", { className: "mr-6 shrink-0", children: /* @__PURE__ */ c(F, { zone: o }) }),
|
|
54
55
|
d()
|
|
55
56
|
]
|
|
56
57
|
}
|
|
@@ -59,6 +60,6 @@ function B({
|
|
|
59
60
|
export {
|
|
60
61
|
A as BAD_HF,
|
|
61
62
|
g as GOOD_HF,
|
|
62
|
-
|
|
63
|
+
G as HealthFactor,
|
|
63
64
|
N as getHFZones
|
|
64
65
|
};
|