@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
|
@@ -5,7 +5,6 @@ import { FormattedMessageTyped as s } from "../typed-intl/index.js";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as t } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
const n = a.forwardRef(function({ className: o }, i) {
|
|
@@ -6,7 +6,6 @@ import "@gearbox-protocol/sdk";
|
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "tailwind-merge";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
import "../layout/col/col.js";
|
|
@@ -19,7 +18,7 @@ import "../buttons/back-button/back-button.js";
|
|
|
19
18
|
import "../page-title/page-title.js";
|
|
20
19
|
import "../layout/social-icons/social-icons.js";
|
|
21
20
|
import { Skeleton as r } from "../skeleton/skeleton.js";
|
|
22
|
-
function
|
|
21
|
+
function z({
|
|
23
22
|
showGuard: s,
|
|
24
23
|
children: a,
|
|
25
24
|
loader: i
|
|
@@ -39,5 +38,5 @@ function A({
|
|
|
39
38
|
return /* @__PURE__ */ m(e, { showGuard: l, guard: l && (i || t), children: a });
|
|
40
39
|
}
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
z as LoaderGuard
|
|
43
42
|
};
|
|
@@ -6,7 +6,6 @@ import { SpinnerLoader as c } from "../spinner-loader/spinner-loader.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as p } 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 s = m(
|
|
@@ -6,7 +6,6 @@ import "../base-link/base-link.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as p } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
import "../layout/col/col.js";
|
|
@@ -179,7 +178,7 @@ function a(o) {
|
|
|
179
178
|
}
|
|
180
179
|
return { id: T(l), displayText: o };
|
|
181
180
|
}
|
|
182
|
-
function
|
|
181
|
+
function Tr({
|
|
183
182
|
content: o,
|
|
184
183
|
title: l,
|
|
185
184
|
backButton: s,
|
|
@@ -391,5 +390,5 @@ function vr({
|
|
|
391
390
|
return c ? d : /* @__PURE__ */ r(w, { title: l || "", backButton: s, children: d });
|
|
392
391
|
}
|
|
393
392
|
export {
|
|
394
|
-
|
|
393
|
+
Tr as MarkdownViewer
|
|
395
394
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "@radix-ui/react-dialog";
|
|
3
3
|
import { cva as D } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
5
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
4
|
+
import * as s from "react";
|
|
6
5
|
import "@gearbox-protocol/sdk";
|
|
7
6
|
import { useIsMobile as M } from "../../hooks/use-media-query.js";
|
|
8
7
|
import { cn as o } from "../../utils/cn.js";
|
|
@@ -28,30 +27,30 @@ const b = "before:content-[''] before:absolute before:inset-0 after:z-[-1] befor
|
|
|
28
27
|
colorTheme: "default",
|
|
29
28
|
backdrop: "default"
|
|
30
29
|
}
|
|
31
|
-
}), w =
|
|
30
|
+
}), w = s.forwardRef(
|
|
32
31
|
({
|
|
33
32
|
show: r = !0,
|
|
34
33
|
colorTheme: g = "default",
|
|
35
34
|
backdrop: p = "default",
|
|
36
35
|
xsCentered: v = !1,
|
|
37
|
-
onClickOutside:
|
|
36
|
+
onClickOutside: i,
|
|
38
37
|
zIndexLayer: c = "MODAL",
|
|
39
38
|
className: x,
|
|
40
39
|
children: y,
|
|
41
40
|
...h
|
|
42
41
|
}, C) => {
|
|
43
42
|
const _ = M(), d = O[c], f = { zIndex: N[c] };
|
|
44
|
-
|
|
43
|
+
s.useEffect(() => {
|
|
45
44
|
if (!(typeof document > "u") && r)
|
|
46
45
|
return n += 1, document.body.classList.add(u), () => {
|
|
47
46
|
n = Math.max(0, n - 1), n === 0 && document.body.classList.remove(u);
|
|
48
47
|
};
|
|
49
48
|
}, [r]);
|
|
50
|
-
const l =
|
|
49
|
+
const l = s.useCallback(
|
|
51
50
|
(e) => {
|
|
52
|
-
e ||
|
|
51
|
+
e || i?.();
|
|
53
52
|
},
|
|
54
|
-
[
|
|
53
|
+
[i]
|
|
55
54
|
);
|
|
56
55
|
return r ? /* @__PURE__ */ t(a.Root, { open: r, onOpenChange: l, modal: !0, children: /* @__PURE__ */ m(a.Portal, { children: [
|
|
57
56
|
/* @__PURE__ */ t(
|
|
@@ -8,7 +8,6 @@ import { SimpleDropdown as G } from "../simple-dropdown/simple-dropdown.js";
|
|
|
8
8
|
import "@gearbox-protocol/sdk";
|
|
9
9
|
import { cn as T } 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
|
import { FaIcon as V } from "../icons/fa-icon.js";
|
|
@@ -85,7 +84,7 @@ function _({
|
|
|
85
84
|
}
|
|
86
85
|
);
|
|
87
86
|
}
|
|
88
|
-
function
|
|
87
|
+
function oe({
|
|
89
88
|
items: t,
|
|
90
89
|
moreLabel: a = "More",
|
|
91
90
|
className: m
|
|
@@ -177,5 +176,5 @@ function ie({
|
|
|
177
176
|
);
|
|
178
177
|
}
|
|
179
178
|
export {
|
|
180
|
-
|
|
179
|
+
oe as NavbarWithOverflow
|
|
181
180
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { cva as d } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as o from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as n } 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 { NavbarIndicatorProvider as
|
|
9
|
+
import { NavbarIndicatorProvider as v, useNavbarIndicator as p } from "./navbar-indicator-context.js";
|
|
11
10
|
const u = d("flex items-center bg-background min-w-0", {
|
|
12
11
|
variants: {
|
|
13
12
|
variant: {
|
|
@@ -31,25 +30,25 @@ const u = d("flex items-center bg-background min-w-0", {
|
|
|
31
30
|
size: "default",
|
|
32
31
|
sticky: !1
|
|
33
32
|
}
|
|
34
|
-
}), b = ({ containerClassName:
|
|
35
|
-
const
|
|
36
|
-
return /* @__PURE__ */
|
|
33
|
+
}), b = ({ containerClassName: t, children: e }) => {
|
|
34
|
+
const a = p();
|
|
35
|
+
return /* @__PURE__ */ m(
|
|
37
36
|
"div",
|
|
38
37
|
{
|
|
39
|
-
ref:
|
|
40
|
-
className:
|
|
38
|
+
ref: a?.containerRef,
|
|
39
|
+
className: n(
|
|
41
40
|
"flex items-center gap-10 max-xs:gap-8 flex-1 h-full relative overflow-x-auto overflow-y-hidden",
|
|
42
41
|
"md:justify-center md:overflow-x-visible",
|
|
43
42
|
"px-1 pb-1 md:px-4 md:pb-0",
|
|
44
43
|
"navbar-scrollbar",
|
|
45
|
-
|
|
44
|
+
t
|
|
46
45
|
),
|
|
47
46
|
children: [
|
|
48
47
|
e,
|
|
49
48
|
/* @__PURE__ */ r(
|
|
50
49
|
"div",
|
|
51
50
|
{
|
|
52
|
-
ref:
|
|
51
|
+
ref: a?.indicatorRef,
|
|
53
52
|
className: "absolute bottom-0 h-0.5 bg-accent transition-all duration-300 ease-out pointer-events-none",
|
|
54
53
|
style: {
|
|
55
54
|
left: 0,
|
|
@@ -62,32 +61,32 @@ const u = d("flex items-center bg-background min-w-0", {
|
|
|
62
61
|
]
|
|
63
62
|
}
|
|
64
63
|
);
|
|
65
|
-
}, x =
|
|
64
|
+
}, x = o.forwardRef(
|
|
66
65
|
({
|
|
67
|
-
className:
|
|
66
|
+
className: t,
|
|
68
67
|
variant: e,
|
|
69
|
-
size:
|
|
68
|
+
size: a,
|
|
70
69
|
sticky: i,
|
|
71
70
|
containerClassName: s,
|
|
72
71
|
children: l,
|
|
73
72
|
...f
|
|
74
|
-
},
|
|
73
|
+
}, c) => /* @__PURE__ */ r(
|
|
75
74
|
"nav",
|
|
76
75
|
{
|
|
77
|
-
ref:
|
|
78
|
-
className:
|
|
76
|
+
ref: c,
|
|
77
|
+
className: n(u({ variant: e, size: a, sticky: i, className: t })),
|
|
79
78
|
...f,
|
|
80
|
-
children: /* @__PURE__ */ r(
|
|
79
|
+
children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(b, { containerClassName: s, children: l }) })
|
|
81
80
|
}
|
|
82
81
|
)
|
|
83
82
|
);
|
|
84
83
|
x.displayName = "Navbar";
|
|
85
|
-
const N =
|
|
84
|
+
const N = o.forwardRef(({ className: t, children: e, ...a }, i) => /* @__PURE__ */ r(
|
|
86
85
|
"div",
|
|
87
86
|
{
|
|
88
87
|
ref: i,
|
|
89
|
-
className:
|
|
90
|
-
...
|
|
88
|
+
className: n("flex items-center gap-1 min-w-max", t),
|
|
89
|
+
...a,
|
|
91
90
|
children: e
|
|
92
91
|
}
|
|
93
92
|
));
|
|
@@ -3,10 +3,9 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as a } 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
|
|
8
|
+
function y({
|
|
10
9
|
size: o,
|
|
11
10
|
className: t,
|
|
12
11
|
style: i,
|
|
@@ -29,5 +28,5 @@ function f({
|
|
|
29
28
|
);
|
|
30
29
|
}
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
y as NavBarLogo
|
|
33
32
|
};
|
|
@@ -6,7 +6,6 @@ import { useNavbarIndicator as I } from "../navbar/navbar-indicator-context.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";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
const R = w(
|
|
@@ -3,10 +3,9 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as m } 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
|
|
8
|
+
function u({
|
|
10
9
|
icon: e,
|
|
11
10
|
message: r,
|
|
12
11
|
className: i
|
|
@@ -26,5 +25,5 @@ function x({
|
|
|
26
25
|
);
|
|
27
26
|
}
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
u as NotFound
|
|
30
29
|
};
|
|
@@ -3,17 +3,16 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as i } 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
|
|
8
|
+
function h({
|
|
10
9
|
className: t,
|
|
11
10
|
children: o,
|
|
12
11
|
...r
|
|
13
12
|
}) {
|
|
14
13
|
return /* @__PURE__ */ e("div", { className: i("m-0 p-0 w-full flex flex-wrap", t), ...r, children: o });
|
|
15
14
|
}
|
|
16
|
-
function
|
|
15
|
+
function g({
|
|
17
16
|
icon: t,
|
|
18
17
|
title: o,
|
|
19
18
|
subTitle: r,
|
|
@@ -47,6 +46,6 @@ function v({
|
|
|
47
46
|
);
|
|
48
47
|
}
|
|
49
48
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
g as OptionsItem,
|
|
50
|
+
h as OptionsList
|
|
52
51
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { jsx as t } 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";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ t("div", { className:
|
|
8
|
+
function l({ children: r, className: o, ...i }) {
|
|
9
|
+
return /* @__PURE__ */ t("div", { className: e("overflow-hidden", o), ...i, children: r });
|
|
11
10
|
}
|
|
12
|
-
function
|
|
11
|
+
function v({
|
|
13
12
|
children: r,
|
|
14
13
|
className: o,
|
|
15
14
|
size: i,
|
|
16
|
-
...
|
|
15
|
+
...m
|
|
17
16
|
}) {
|
|
18
|
-
return /* @__PURE__ */ t("div", { className:
|
|
17
|
+
return /* @__PURE__ */ t("div", { className: e("break-words", o), ...m, children: r });
|
|
19
18
|
}
|
|
20
19
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
l as Overflow,
|
|
21
|
+
v as OverflowWrap
|
|
23
22
|
};
|
|
@@ -3,7 +3,6 @@ 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";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
8
|
const m = {
|
|
@@ -14,7 +13,7 @@ const m = {
|
|
|
14
13
|
light: "border border-gray-50",
|
|
15
14
|
none: ""
|
|
16
15
|
};
|
|
17
|
-
function
|
|
16
|
+
function C({
|
|
18
17
|
children: o,
|
|
19
18
|
maxHeight: e,
|
|
20
19
|
minHeight: p = e,
|
|
@@ -47,5 +46,5 @@ function w({
|
|
|
47
46
|
);
|
|
48
47
|
}
|
|
49
48
|
export {
|
|
50
|
-
|
|
49
|
+
C as OverflowContainer
|
|
51
50
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { cva as
|
|
2
|
+
import { cva as x } from "class-variance-authority";
|
|
3
3
|
import * as b from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as s } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
|
-
const A =
|
|
9
|
+
const A = x(
|
|
11
10
|
"font-semibold leading-tight tracking-tight flex items-center gap-2",
|
|
12
11
|
{
|
|
13
12
|
variants: {
|
|
@@ -29,7 +28,7 @@ const A = o(
|
|
|
29
28
|
variant: "default"
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
|
-
), T =
|
|
31
|
+
), T = x(
|
|
33
32
|
"flex flex-col md:flex-row items-start md:items-center",
|
|
34
33
|
{
|
|
35
34
|
variants: {
|
|
@@ -45,7 +44,7 @@ const A = o(
|
|
|
45
44
|
}
|
|
46
45
|
), V = b.forwardRef(
|
|
47
46
|
({
|
|
48
|
-
className:
|
|
47
|
+
className: o,
|
|
49
48
|
size: g,
|
|
50
49
|
variant: p,
|
|
51
50
|
spacing: m,
|
|
@@ -83,7 +82,7 @@ const A = o(
|
|
|
83
82
|
className: s(
|
|
84
83
|
"w-full flex items-center gap-4",
|
|
85
84
|
n ? "flex-col items-start" : "flex-row items-center",
|
|
86
|
-
|
|
85
|
+
o
|
|
87
86
|
),
|
|
88
87
|
...v,
|
|
89
88
|
children: [
|
|
@@ -5,11 +5,10 @@ import "@gearbox-protocol/sdk";
|
|
|
5
5
|
import { cn as i } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
7
|
import { percentTemplate as l } from "../../utils/format-money.js";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
const x = (r) => r >= 90 ? "danger" : r >= 70 ? "warning" : r >= 50 ? "info" : "success";
|
|
12
|
-
function
|
|
11
|
+
function C({
|
|
13
12
|
percent: r,
|
|
14
13
|
decimals: e = 2,
|
|
15
14
|
showColor: o = !0,
|
|
@@ -32,5 +31,5 @@ function M({
|
|
|
32
31
|
] });
|
|
33
32
|
}
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
C as PercentIndicator
|
|
36
35
|
};
|
|
@@ -10,7 +10,6 @@ import "@gearbox-protocol/sdk";
|
|
|
10
10
|
import { cn as y } from "../../utils/cn.js";
|
|
11
11
|
import "sonner";
|
|
12
12
|
import { percentTemplate as r } from "../../utils/format-money.js";
|
|
13
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../utils/z-index.js";
|
|
16
15
|
import { TokenIcon as C } from "../token-icon/token-icon.js";
|
|
@@ -33,7 +32,7 @@ const A = {
|
|
|
33
32
|
function $({ children: d }) {
|
|
34
33
|
return /* @__PURE__ */ e("div", { className: "w-[110px] grid grid-cols-2 items-end text-end", children: d });
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function oe({
|
|
37
36
|
children: d,
|
|
38
37
|
totalAPY: f,
|
|
39
38
|
baseAPY: c,
|
|
@@ -247,5 +246,5 @@ function ne({
|
|
|
247
246
|
);
|
|
248
247
|
}
|
|
249
248
|
export {
|
|
250
|
-
|
|
249
|
+
oe as PoolAPYTooltip
|
|
251
250
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { IconLighting as
|
|
3
|
-
import
|
|
2
|
+
import { IconLighting as n } from "@gearbox-protocol/static";
|
|
3
|
+
import m from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const f = {
|
|
11
10
|
primary: "#e0369c",
|
|
12
11
|
secondary: "#fff"
|
|
13
|
-
},
|
|
12
|
+
}, v = m.forwardRef(({ children: t, size: i = 24, color: s = "primary", className: l }, c) => {
|
|
14
13
|
const e = i + 8, o = f[s];
|
|
15
14
|
return /* @__PURE__ */ d("div", { ref: c, className: a("relative", l), children: [
|
|
16
15
|
/* @__PURE__ */ r(
|
|
@@ -33,12 +32,12 @@ const f = {
|
|
|
33
32
|
height: 14,
|
|
34
33
|
backgroundColor: o
|
|
35
34
|
},
|
|
36
|
-
children: /* @__PURE__ */ r(
|
|
35
|
+
children: /* @__PURE__ */ r(n, { size: 8 })
|
|
37
36
|
}
|
|
38
37
|
),
|
|
39
38
|
t
|
|
40
39
|
] });
|
|
41
40
|
});
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
v as PoolIndicatorIcon
|
|
44
43
|
};
|
|
@@ -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 a = {
|
|
@@ -13,7 +12,7 @@ const a = {
|
|
|
13
12
|
blue: "border-blue-600 bg-blue-600",
|
|
14
13
|
yellow: "border-yellow-600 bg-yellow-600"
|
|
15
14
|
};
|
|
16
|
-
function
|
|
15
|
+
function y({
|
|
17
16
|
size: r = 24,
|
|
18
17
|
color: n = "primary",
|
|
19
18
|
className: s,
|
|
@@ -74,5 +73,5 @@ function f({
|
|
|
74
73
|
] });
|
|
75
74
|
}
|
|
76
75
|
export {
|
|
77
|
-
|
|
76
|
+
y as PoolPointsIndicator
|
|
78
77
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
1
|
+
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "@radix-ui/react-progress";
|
|
3
3
|
import * as u 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";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const g = u.forwardRef(
|
|
11
10
|
({
|
|
12
|
-
className:
|
|
11
|
+
className: o,
|
|
13
12
|
value: e,
|
|
14
13
|
variant: i = "default",
|
|
15
14
|
size: n = "default",
|
|
@@ -28,17 +27,17 @@ const g = u.forwardRef(
|
|
|
28
27
|
info: "bg-foreground"
|
|
29
28
|
};
|
|
30
29
|
return /* @__PURE__ */ a("div", { className: r("flex w-full items-center", t && "gap-3"), children: [
|
|
31
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ l(
|
|
32
31
|
s.Root,
|
|
33
32
|
{
|
|
34
33
|
ref: f,
|
|
35
34
|
className: r(
|
|
36
35
|
"relative w-full overflow-hidden rounded-full bg-secondary",
|
|
37
36
|
d[n],
|
|
38
|
-
|
|
37
|
+
o
|
|
39
38
|
),
|
|
40
39
|
...m,
|
|
41
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ l(
|
|
42
41
|
s.Indicator,
|
|
43
42
|
{
|
|
44
43
|
className: r(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { cva as g } from "class-variance-authority";
|
|
3
3
|
import * as b from "react";
|
|
4
4
|
import { GOOD_HF as l, BAD_HF as x, getHFZones as v } from "../health-factor/health-factor.js";
|
|
@@ -6,7 +6,6 @@ import { HelpTip as h } from "../help-tip/help-tip.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as i } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
const m = 33.33, N = {
|
|
@@ -23,11 +22,11 @@ const m = 33.33, N = {
|
|
|
23
22
|
}
|
|
24
23
|
};
|
|
25
24
|
function w(t) {
|
|
26
|
-
const
|
|
27
|
-
return
|
|
25
|
+
const r = v(t);
|
|
26
|
+
return r === "good" ? 3 : r === "medium" ? 2 : 1;
|
|
28
27
|
}
|
|
29
|
-
function y(t,
|
|
30
|
-
const { intervalStart: s, intervalEnd: n, startFrom: a } = N[
|
|
28
|
+
function y(t, r) {
|
|
29
|
+
const { intervalStart: s, intervalEnd: n, startFrom: a } = N[r], f = Math.min(Math.max(t, s), n) - s, p = n - s, u = f / p * m;
|
|
31
30
|
return a + u;
|
|
32
31
|
}
|
|
33
32
|
const E = g(
|
|
@@ -37,13 +36,13 @@ const E = g(
|
|
|
37
36
|
"py-6 px-5"
|
|
38
37
|
].join(" ")
|
|
39
38
|
), d = "mx-[2.5px] h-2 flex-1 shrink-0 basis-0 rounded-[2px]", F = b.forwardRef(
|
|
40
|
-
({ progress: t, tip:
|
|
39
|
+
({ progress: t, tip: r, children: s }, n) => {
|
|
41
40
|
const a = w(t), c = y(t, a);
|
|
42
41
|
return /* @__PURE__ */ o("div", { ref: n, className: i(E()), children: [
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */
|
|
42
|
+
r != null && r !== "" && /* @__PURE__ */ e("div", { className: "absolute right-4 top-4 z-[1] leading-none", children: /* @__PURE__ */ e(h, { maxWidth: "350px", minWidth: "350px", children: r }) }),
|
|
43
|
+
/* @__PURE__ */ e("div", { className: "mb-4 text-base font-medium leading-5", children: s }),
|
|
45
44
|
/* @__PURE__ */ o("div", { className: "relative w-full flex flex-nowrap", children: [
|
|
46
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ e(
|
|
47
46
|
"div",
|
|
48
47
|
{
|
|
49
48
|
className: i(
|
|
@@ -52,7 +51,7 @@ const E = g(
|
|
|
52
51
|
)
|
|
53
52
|
}
|
|
54
53
|
),
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ e(
|
|
56
55
|
"div",
|
|
57
56
|
{
|
|
58
57
|
className: i(
|
|
@@ -61,7 +60,7 @@ const E = g(
|
|
|
61
60
|
)
|
|
62
61
|
}
|
|
63
62
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ e(
|
|
65
64
|
"div",
|
|
66
65
|
{
|
|
67
66
|
className: i(
|
|
@@ -77,16 +76,16 @@ const E = g(
|
|
|
77
76
|
style: { left: `${c}%` },
|
|
78
77
|
"aria-hidden": !0,
|
|
79
78
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ e("span", { className: " absolute left-1/2 -top-1/8 h-0 w-0 -translate-x-1/2 translate-y-1/2 border-4 border-transparent border-t-foreground border-b-0" }),
|
|
80
|
+
/* @__PURE__ */ e("span", { className: "absolute left-1/2 -bottom-1/8 h-0 w-0 -translate-x-1/2 -translate-y-1/2 border-4 border-transparent border-b-foreground border-t-0" })
|
|
82
81
|
]
|
|
83
82
|
}
|
|
84
83
|
)
|
|
85
84
|
] }),
|
|
86
85
|
/* @__PURE__ */ o("div", { className: "mt-4 flex w-full flex-nowrap", children: [
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ e("div", { className: "mx-[2.5px] flex-1 shrink-0 basis-0 text-center text-xs font-medium uppercase leading-[14px] text-secondary-foreground", children: "Low" }),
|
|
87
|
+
/* @__PURE__ */ e("div", { className: "mx-[2.5px] flex-1 shrink-0 basis-0 text-center text-xs font-medium uppercase leading-[14px] text-secondary-foreground", children: "Normal" }),
|
|
88
|
+
/* @__PURE__ */ e("div", { className: "mx-[2.5px] flex-1 shrink-0 basis-0 text-center text-xs font-medium uppercase leading-[14px] text-secondary-foreground", children: "High" })
|
|
90
89
|
] })
|
|
91
90
|
] });
|
|
92
91
|
}
|