@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
|
@@ -3,18 +3,19 @@ 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";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ r("div", { className: o("space-y-4",
|
|
9
|
+
function l({ children: t, className: e }) {
|
|
10
|
+
return /* @__PURE__ */ r("div", { className: o("space-y-4", e), children: t });
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
+
function x({ title: t, children: e, className: m }) {
|
|
12
13
|
return /* @__PURE__ */ i("div", { className: o("space-y-2", m), children: [
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */ r("div", { className: "text-sm text-muted-foreground", children:
|
|
14
|
+
t && /* @__PURE__ */ r("h3", { className: "text-sm font-medium text-foreground", children: t }),
|
|
15
|
+
/* @__PURE__ */ r("div", { className: "text-sm text-muted-foreground", children: e })
|
|
15
16
|
] });
|
|
16
17
|
}
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
x as HelpSection,
|
|
20
|
+
l as HelpSections
|
|
20
21
|
};
|
|
@@ -5,6 +5,7 @@ import * as c from "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as s } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
8
9
|
import "luxon";
|
|
9
10
|
import "../../utils/z-index.js";
|
|
10
11
|
import { SimpleTooltip as C } from "../tooltip/simple-tooltip.js";
|
|
@@ -53,8 +54,8 @@ const H = T("transition-colors", {
|
|
|
53
54
|
iconSize: i = 14,
|
|
54
55
|
iconColor: n = "gray-90",
|
|
55
56
|
iconHoverColor: p = "gray-110",
|
|
56
|
-
iconVariant:
|
|
57
|
-
onPointerEnter:
|
|
57
|
+
iconVariant: m = "question",
|
|
58
|
+
onPointerEnter: x,
|
|
58
59
|
...d
|
|
59
60
|
}, f) => {
|
|
60
61
|
const u = /* @__PURE__ */ e(
|
|
@@ -64,8 +65,8 @@ const H = T("transition-colors", {
|
|
|
64
65
|
iconSize: i,
|
|
65
66
|
iconColor: n,
|
|
66
67
|
iconHoverColor: p,
|
|
67
|
-
iconVariant:
|
|
68
|
-
onPointerEnter:
|
|
68
|
+
iconVariant: m,
|
|
69
|
+
onPointerEnter: x,
|
|
69
70
|
className: r,
|
|
70
71
|
...d
|
|
71
72
|
}
|
|
@@ -2,16 +2,17 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconQuestionCircle as a } from "@gearbox-protocol/static";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import "../tooltip/simple-tooltip.js";
|
|
5
|
-
import { TooltipProvider as
|
|
5
|
+
import { TooltipProvider as m, Tooltip as c, TooltipTrigger as p, TooltipContent as f } from "../tooltip/tooltip.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as x } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
const h = d.forwardRef(({ label: i, value: l, tip: r, valueDescription: t, className: n }, s) => /* @__PURE__ */ o("div", { ref: s, className: x("flex flex-col gap-2 w-full", n), children: [
|
|
12
13
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
13
14
|
/* @__PURE__ */ e("span", { children: i }),
|
|
14
|
-
r && /* @__PURE__ */ e(
|
|
15
|
+
r && /* @__PURE__ */ e(m, { delayDuration: 0, children: /* @__PURE__ */ o(c, { children: [
|
|
15
16
|
/* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(
|
|
16
17
|
"button",
|
|
17
18
|
{
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { cva as
|
|
2
|
+
import { Slot as p } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as u } from "class-variance-authority";
|
|
4
4
|
import * as f from "react";
|
|
5
5
|
import { BaseLink as g } from "../base-link/base-link.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as h } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
|
-
const y =
|
|
12
|
+
const y = u(
|
|
12
13
|
"inline-flex items-center justify-center p-0 rounded-full transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-default disabled:pointer-events-none",
|
|
13
14
|
{
|
|
14
15
|
variants: {
|
|
@@ -32,10 +33,10 @@ const y = p(
|
|
|
32
33
|
linkProps: i,
|
|
33
34
|
asChild: c = !1,
|
|
34
35
|
disabled: a,
|
|
35
|
-
children:
|
|
36
|
+
children: m,
|
|
36
37
|
...s
|
|
37
38
|
}, l) => {
|
|
38
|
-
const e =
|
|
39
|
+
const e = m, n = h(
|
|
39
40
|
y({ buttonType: b, className: d }),
|
|
40
41
|
"flex items-center justify-center"
|
|
41
42
|
), o = {
|
|
@@ -53,7 +54,7 @@ const y = p(
|
|
|
53
54
|
children: e
|
|
54
55
|
}
|
|
55
56
|
) }) : c ? /* @__PURE__ */ r(
|
|
56
|
-
|
|
57
|
+
p,
|
|
57
58
|
{
|
|
58
59
|
ref: l,
|
|
59
60
|
className: n,
|
|
@@ -5,10 +5,11 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as n } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
8
9
|
import "luxon";
|
|
9
10
|
import "../../utils/z-index.js";
|
|
10
11
|
i.autoAddCss = !1;
|
|
11
|
-
function
|
|
12
|
+
function x({ className: o, ...r }) {
|
|
12
13
|
return /* @__PURE__ */ m(
|
|
13
14
|
t,
|
|
14
15
|
{
|
|
@@ -18,5 +19,5 @@ function k({ className: o, ...r }) {
|
|
|
18
19
|
);
|
|
19
20
|
}
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
x as FaIcon
|
|
22
23
|
};
|
|
@@ -4,6 +4,7 @@ import * as R from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as e } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
import { useIconSlotWidths as S } from "./use-icon-slot-widths.js";
|
|
@@ -70,7 +71,7 @@ const z = T(
|
|
|
70
71
|
variant: "default"
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
),
|
|
74
|
+
), G = R.forwardRef(
|
|
74
75
|
({
|
|
75
76
|
hasError: o,
|
|
76
77
|
errorMessage: d,
|
|
@@ -157,6 +158,6 @@ const z = T(
|
|
|
157
158
|
}
|
|
158
159
|
);
|
|
159
160
|
export {
|
|
160
|
-
|
|
161
|
+
G as Input,
|
|
161
162
|
z as inputVariants
|
|
162
163
|
};
|
|
@@ -3,6 +3,7 @@ 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";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../../utils/z-index.js";
|
|
8
9
|
const f = {
|
|
@@ -21,7 +22,7 @@ const f = {
|
|
|
21
22
|
"flex-end": "items-end",
|
|
22
23
|
stretch: "items-stretch"
|
|
23
24
|
};
|
|
24
|
-
function
|
|
25
|
+
function w({
|
|
25
26
|
children: t,
|
|
26
27
|
margin: e = "md",
|
|
27
28
|
justify: s = "flex-start",
|
|
@@ -45,5 +46,5 @@ function y({
|
|
|
45
46
|
);
|
|
46
47
|
}
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
w as Block
|
|
49
50
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as e, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import { IconExternal as t } from "@gearbox-protocol/static";
|
|
3
3
|
import { cva as w } from "class-variance-authority";
|
|
4
4
|
import { BaseLink as u } from "../base-link/base-link.js";
|
|
@@ -6,6 +6,7 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as _ } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
const g = w(
|
|
@@ -26,30 +27,30 @@ function x({
|
|
|
26
27
|
children: a,
|
|
27
28
|
href: i,
|
|
28
29
|
target: s,
|
|
29
|
-
variant:
|
|
30
|
+
variant: o = "default",
|
|
30
31
|
size: c = "default",
|
|
31
32
|
color: m = "main",
|
|
32
|
-
external:
|
|
33
|
+
external: n = !1,
|
|
33
34
|
asChild: d = !1,
|
|
34
35
|
...l
|
|
35
36
|
}) {
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ r(
|
|
37
38
|
u,
|
|
38
39
|
{
|
|
39
40
|
href: i,
|
|
40
41
|
target: s,
|
|
41
|
-
external:
|
|
42
|
-
variant:
|
|
42
|
+
external: n,
|
|
43
|
+
variant: o,
|
|
43
44
|
size: c,
|
|
44
45
|
color: m,
|
|
45
|
-
className: _(g({ variant:
|
|
46
|
+
className: _(g({ variant: o }), p),
|
|
46
47
|
...l,
|
|
47
|
-
children: d ? /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
] }) : /* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
48
|
+
children: d ? /* @__PURE__ */ e("span", { children: [
|
|
49
|
+
/* @__PURE__ */ r("span", { className: "content-wrap", children: a }),
|
|
50
|
+
n && /* @__PURE__ */ r("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ r(t, { size: 14 }) })
|
|
51
|
+
] }) : /* @__PURE__ */ e(f, { children: [
|
|
52
|
+
/* @__PURE__ */ r("span", { className: "content-wrap", children: a }),
|
|
53
|
+
n && /* @__PURE__ */ r("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ r(t, { size: 14 }) })
|
|
53
54
|
] })
|
|
54
55
|
}
|
|
55
56
|
);
|
package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { PRICE_DECIMALS as h } from "@gearbox-protocol/sdk";
|
|
3
|
+
import { AssetUtils as b } from "@gearbox-protocol/sdk/common-utils";
|
|
3
4
|
import { useMemo as N } from "react";
|
|
4
5
|
import { TokenSymbol as v } from "../../token-symbol/token-symbol.js";
|
|
5
6
|
import { FormattedMessageTyped as s } from "../../typed-intl/index.js";
|
|
6
7
|
import { useIsMobile as L } from "../../../hooks/use-media-query.js";
|
|
7
8
|
import { cn as n } from "../../../utils/cn.js";
|
|
8
|
-
function
|
|
9
|
+
function T({
|
|
9
10
|
tokensList: a,
|
|
10
11
|
graphParams: l,
|
|
11
12
|
data: i,
|
|
12
13
|
prices: m,
|
|
13
14
|
editedPrices: f
|
|
14
15
|
}) {
|
|
15
|
-
const { fixedBalances: o } = l, c = N(() =>
|
|
16
|
+
const { fixedBalances: o } = l, c = N(() => b.constructAssetRecord(o), [o]), u = L();
|
|
16
17
|
return !i || !i.length ? /* @__PURE__ */ e("div", { className: "w-full flex items-center justify-center py-8 text-sm text-muted-foreground", children: /* @__PURE__ */ e(
|
|
17
18
|
s,
|
|
18
19
|
{
|
|
@@ -76,8 +77,8 @@ function q({
|
|
|
76
77
|
] });
|
|
77
78
|
}
|
|
78
79
|
function d(a) {
|
|
79
|
-
return (Number(a || 0n) / Number(
|
|
80
|
+
return (Number(a || 0n) / Number(h)).toFixed(2);
|
|
80
81
|
}
|
|
81
82
|
export {
|
|
82
|
-
|
|
83
|
+
T as LiquidationModellingAssetsTable
|
|
83
84
|
};
|
|
@@ -4,15 +4,16 @@ import { ShortString as p } from "../../short-string/short-string.js";
|
|
|
4
4
|
import { TokenSymbol as f } from "../../token-symbol/token-symbol.js";
|
|
5
5
|
import { FormattedMessageTyped as c } from "../../typed-intl/index.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "react";
|
|
8
9
|
import { formatAxisTipPrice as h, formatAxisTipLabel as u } from "../../../hooks/use-liquidation/utils.js";
|
|
9
|
-
function
|
|
10
|
-
activePointX:
|
|
11
|
-
activePointY:
|
|
10
|
+
function T({
|
|
11
|
+
activePointX: o,
|
|
12
|
+
activePointY: a,
|
|
12
13
|
xAxis: i,
|
|
13
14
|
yAxis: t,
|
|
14
|
-
hf:
|
|
15
|
-
underlyingToken:
|
|
15
|
+
hf: m,
|
|
16
|
+
underlyingToken: s,
|
|
16
17
|
maxLabelLength: l
|
|
17
18
|
}) {
|
|
18
19
|
return /* @__PURE__ */ r("div", { className: "flex w-full justify-between items-center", children: [
|
|
@@ -20,9 +21,9 @@ function q({
|
|
|
20
21
|
i && /* @__PURE__ */ e("div", { className: "flex items-center", children: /* @__PURE__ */ e(
|
|
21
22
|
d,
|
|
22
23
|
{
|
|
23
|
-
underlyingToken:
|
|
24
|
+
underlyingToken: s,
|
|
24
25
|
token: i.label,
|
|
25
|
-
value:
|
|
26
|
+
value: o,
|
|
26
27
|
order: i.order,
|
|
27
28
|
maxLabelLength: l
|
|
28
29
|
}
|
|
@@ -30,9 +31,9 @@ function q({
|
|
|
30
31
|
t && /* @__PURE__ */ e("div", { className: "flex items-center", children: /* @__PURE__ */ e(
|
|
31
32
|
d,
|
|
32
33
|
{
|
|
33
|
-
underlyingToken:
|
|
34
|
+
underlyingToken: s,
|
|
34
35
|
token: t.label,
|
|
35
|
-
value:
|
|
36
|
+
value: a,
|
|
36
37
|
order: t.order,
|
|
37
38
|
maxLabelLength: l
|
|
38
39
|
}
|
|
@@ -43,29 +44,29 @@ function q({
|
|
|
43
44
|
/* @__PURE__ */ e(c, { messageId: "components.creditSessionDetailedLiquidation.graph.tip.hf" }),
|
|
44
45
|
":"
|
|
45
46
|
] }),
|
|
46
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { value:
|
|
47
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { value: m, debt: 1n }) })
|
|
47
48
|
] })
|
|
48
49
|
] });
|
|
49
50
|
}
|
|
50
51
|
function d({
|
|
51
|
-
token:
|
|
52
|
-
underlyingToken:
|
|
52
|
+
token: o,
|
|
53
|
+
underlyingToken: a,
|
|
53
54
|
value: i = 0,
|
|
54
55
|
order: t = "straight",
|
|
55
|
-
maxLabelLength:
|
|
56
|
+
maxLabelLength: m = 13
|
|
56
57
|
}) {
|
|
57
58
|
return /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
58
|
-
/* @__PURE__ */ e(f, { token:
|
|
59
|
+
/* @__PURE__ */ e(f, { token: o, size: 12 }),
|
|
59
60
|
/* @__PURE__ */ r("div", { className: "text-sm text-foreground", children: [
|
|
60
|
-
/* @__PURE__ */ e(p, { maxLength:
|
|
61
|
+
/* @__PURE__ */ e(p, { maxLength: m, children: u(o, a, t) }),
|
|
61
62
|
" ",
|
|
62
63
|
/* @__PURE__ */ e(c, { messageId: "components.creditSessionDetailedLiquidation.graph.tip.price" }),
|
|
63
64
|
": ",
|
|
64
|
-
|
|
65
|
+
a ? "" : "$",
|
|
65
66
|
h(i)
|
|
66
67
|
] })
|
|
67
68
|
] });
|
|
68
69
|
}
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
T as LiquidationGraphTip
|
|
71
72
|
};
|
|
@@ -8,10 +8,11 @@ import "react";
|
|
|
8
8
|
import { bnToLiquidationPriceView as b } from "../../utils/parse-input-to-bn.js";
|
|
9
9
|
import { cn as v } from "../../utils/cn.js";
|
|
10
10
|
import "sonner";
|
|
11
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
11
12
|
import "luxon";
|
|
12
13
|
import "../../utils/z-index.js";
|
|
13
14
|
const w = { type: "text" };
|
|
14
|
-
function
|
|
15
|
+
function y({
|
|
15
16
|
liquidationPrice: t = 0,
|
|
16
17
|
type: o = w,
|
|
17
18
|
hfZone: e,
|
|
@@ -41,5 +42,5 @@ function _({
|
|
|
41
42
|
] });
|
|
42
43
|
}
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
y as LiquidationPrice
|
|
45
46
|
};
|
|
@@ -5,6 +5,7 @@ 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";
|
|
8
9
|
import "luxon";
|
|
9
10
|
import "../../utils/z-index.js";
|
|
10
11
|
const n = a.forwardRef(function({ className: o }, i) {
|
|
@@ -6,6 +6,7 @@ import "@gearbox-protocol/sdk";
|
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "tailwind-merge";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
import "../layout/col/col.js";
|
|
@@ -18,7 +19,7 @@ import "../buttons/back-button/back-button.js";
|
|
|
18
19
|
import "../page-title/page-title.js";
|
|
19
20
|
import "../layout/social-icons/social-icons.js";
|
|
20
21
|
import { Skeleton as r } from "../skeleton/skeleton.js";
|
|
21
|
-
function
|
|
22
|
+
function A({
|
|
22
23
|
showGuard: s,
|
|
23
24
|
children: a,
|
|
24
25
|
loader: i
|
|
@@ -38,5 +39,5 @@ function z({
|
|
|
38
39
|
return /* @__PURE__ */ m(e, { showGuard: l, guard: l && (i || t), children: a });
|
|
39
40
|
}
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
A as LoaderGuard
|
|
42
43
|
};
|
|
@@ -6,6 +6,7 @@ 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";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
const s = m(
|
|
@@ -6,6 +6,7 @@ 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";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
import "../layout/col/col.js";
|
|
@@ -178,7 +179,7 @@ function a(o) {
|
|
|
178
179
|
}
|
|
179
180
|
return { id: T(l), displayText: o };
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function vr({
|
|
182
183
|
content: o,
|
|
183
184
|
title: l,
|
|
184
185
|
backButton: s,
|
|
@@ -390,5 +391,5 @@ function Tr({
|
|
|
390
391
|
return c ? d : /* @__PURE__ */ r(w, { title: l || "", backButton: s, children: d });
|
|
391
392
|
}
|
|
392
393
|
export {
|
|
393
|
-
|
|
394
|
+
vr as MarkdownViewer
|
|
394
395
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
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
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
5
6
|
import "@gearbox-protocol/sdk";
|
|
6
7
|
import { useIsMobile as M } from "../../hooks/use-media-query.js";
|
|
7
8
|
import { cn as o } from "../../utils/cn.js";
|
|
@@ -27,30 +28,30 @@ const b = "before:content-[''] before:absolute before:inset-0 after:z-[-1] befor
|
|
|
27
28
|
colorTheme: "default",
|
|
28
29
|
backdrop: "default"
|
|
29
30
|
}
|
|
30
|
-
}), w =
|
|
31
|
+
}), w = i.forwardRef(
|
|
31
32
|
({
|
|
32
33
|
show: r = !0,
|
|
33
34
|
colorTheme: g = "default",
|
|
34
35
|
backdrop: p = "default",
|
|
35
36
|
xsCentered: v = !1,
|
|
36
|
-
onClickOutside:
|
|
37
|
+
onClickOutside: s,
|
|
37
38
|
zIndexLayer: c = "MODAL",
|
|
38
39
|
className: x,
|
|
39
40
|
children: y,
|
|
40
41
|
...h
|
|
41
42
|
}, C) => {
|
|
42
43
|
const _ = M(), d = O[c], f = { zIndex: N[c] };
|
|
43
|
-
|
|
44
|
+
i.useEffect(() => {
|
|
44
45
|
if (!(typeof document > "u") && r)
|
|
45
46
|
return n += 1, document.body.classList.add(u), () => {
|
|
46
47
|
n = Math.max(0, n - 1), n === 0 && document.body.classList.remove(u);
|
|
47
48
|
};
|
|
48
49
|
}, [r]);
|
|
49
|
-
const l =
|
|
50
|
+
const l = i.useCallback(
|
|
50
51
|
(e) => {
|
|
51
|
-
e ||
|
|
52
|
+
e || s?.();
|
|
52
53
|
},
|
|
53
|
-
[
|
|
54
|
+
[s]
|
|
54
55
|
);
|
|
55
56
|
return r ? /* @__PURE__ */ t(a.Root, { open: r, onOpenChange: l, modal: !0, children: /* @__PURE__ */ m(a.Portal, { children: [
|
|
56
57
|
/* @__PURE__ */ t(
|
|
@@ -8,6 +8,7 @@ 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";
|
|
11
12
|
import "luxon";
|
|
12
13
|
import "../../utils/z-index.js";
|
|
13
14
|
import { FaIcon as V } from "../icons/fa-icon.js";
|
|
@@ -84,7 +85,7 @@ function _({
|
|
|
84
85
|
}
|
|
85
86
|
);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function ie({
|
|
88
89
|
items: t,
|
|
89
90
|
moreLabel: a = "More",
|
|
90
91
|
className: m
|
|
@@ -176,5 +177,5 @@ function oe({
|
|
|
176
177
|
);
|
|
177
178
|
}
|
|
178
179
|
export {
|
|
179
|
-
|
|
180
|
+
ie as NavbarWithOverflow
|
|
180
181
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { cva as d } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as n from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as o } 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
|
-
import { NavbarIndicatorProvider as
|
|
10
|
+
import { NavbarIndicatorProvider as p, useNavbarIndicator as v } from "./navbar-indicator-context.js";
|
|
10
11
|
const u = d("flex items-center bg-background min-w-0", {
|
|
11
12
|
variants: {
|
|
12
13
|
variant: {
|
|
@@ -30,25 +31,25 @@ const u = d("flex items-center bg-background min-w-0", {
|
|
|
30
31
|
size: "default",
|
|
31
32
|
sticky: !1
|
|
32
33
|
}
|
|
33
|
-
}), b = ({ containerClassName:
|
|
34
|
-
const
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
}), b = ({ containerClassName: a, children: e }) => {
|
|
35
|
+
const t = v();
|
|
36
|
+
return /* @__PURE__ */ c(
|
|
36
37
|
"div",
|
|
37
38
|
{
|
|
38
|
-
ref:
|
|
39
|
-
className:
|
|
39
|
+
ref: t?.containerRef,
|
|
40
|
+
className: o(
|
|
40
41
|
"flex items-center gap-10 max-xs:gap-8 flex-1 h-full relative overflow-x-auto overflow-y-hidden",
|
|
41
42
|
"md:justify-center md:overflow-x-visible",
|
|
42
43
|
"px-1 pb-1 md:px-4 md:pb-0",
|
|
43
44
|
"navbar-scrollbar",
|
|
44
|
-
|
|
45
|
+
a
|
|
45
46
|
),
|
|
46
47
|
children: [
|
|
47
48
|
e,
|
|
48
49
|
/* @__PURE__ */ r(
|
|
49
50
|
"div",
|
|
50
51
|
{
|
|
51
|
-
ref:
|
|
52
|
+
ref: t?.indicatorRef,
|
|
52
53
|
className: "absolute bottom-0 h-0.5 bg-accent transition-all duration-300 ease-out pointer-events-none",
|
|
53
54
|
style: {
|
|
54
55
|
left: 0,
|
|
@@ -61,32 +62,32 @@ const u = d("flex items-center bg-background min-w-0", {
|
|
|
61
62
|
]
|
|
62
63
|
}
|
|
63
64
|
);
|
|
64
|
-
}, x =
|
|
65
|
+
}, x = n.forwardRef(
|
|
65
66
|
({
|
|
66
|
-
className:
|
|
67
|
+
className: a,
|
|
67
68
|
variant: e,
|
|
68
|
-
size:
|
|
69
|
+
size: t,
|
|
69
70
|
sticky: i,
|
|
70
71
|
containerClassName: s,
|
|
71
72
|
children: l,
|
|
72
73
|
...f
|
|
73
|
-
},
|
|
74
|
+
}, m) => /* @__PURE__ */ r(
|
|
74
75
|
"nav",
|
|
75
76
|
{
|
|
76
|
-
ref:
|
|
77
|
-
className:
|
|
77
|
+
ref: m,
|
|
78
|
+
className: o(u({ variant: e, size: t, sticky: i, className: a })),
|
|
78
79
|
...f,
|
|
79
|
-
children: /* @__PURE__ */ r(
|
|
80
|
+
children: /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(b, { containerClassName: s, children: l }) })
|
|
80
81
|
}
|
|
81
82
|
)
|
|
82
83
|
);
|
|
83
84
|
x.displayName = "Navbar";
|
|
84
|
-
const N =
|
|
85
|
+
const N = n.forwardRef(({ className: a, children: e, ...t }, i) => /* @__PURE__ */ r(
|
|
85
86
|
"div",
|
|
86
87
|
{
|
|
87
88
|
ref: i,
|
|
88
|
-
className:
|
|
89
|
-
...
|
|
89
|
+
className: o("flex items-center gap-1 min-w-max", a),
|
|
90
|
+
...t,
|
|
90
91
|
children: e
|
|
91
92
|
}
|
|
92
93
|
));
|
|
@@ -3,9 +3,10 @@ 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";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
|
-
function
|
|
9
|
+
function f({
|
|
9
10
|
size: o,
|
|
10
11
|
className: t,
|
|
11
12
|
style: i,
|
|
@@ -28,5 +29,5 @@ function y({
|
|
|
28
29
|
);
|
|
29
30
|
}
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
f as NavBarLogo
|
|
32
33
|
};
|
|
@@ -6,6 +6,7 @@ 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";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
const R = w(
|