@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
|
@@ -5,18 +5,19 @@ import "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 { isLongString as u, shortenString as S } from "../../utils/shorten-string.js";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
|
-
function
|
|
12
|
+
function y({
|
|
12
13
|
children: o,
|
|
13
14
|
maxLength: t,
|
|
14
15
|
showTooltip: m = !0,
|
|
15
16
|
className: i
|
|
16
17
|
}) {
|
|
17
|
-
const n = (
|
|
18
|
+
const n = (p, e) => e === "text-overflow" ? /* @__PURE__ */ r("span", { className: s("inline-block max-w-full truncate", i), children: p }) : /* @__PURE__ */ r("span", { className: i, children: S(p, e) });
|
|
18
19
|
return typeof o == "string" && t !== void 0 ? m && (t === "text-overflow" || u(o, t)) ? /* @__PURE__ */ r(f, { title: n(o, t), children: o }) : n(o, t) : o;
|
|
19
20
|
}
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
y as ShortString
|
|
22
23
|
};
|
|
@@ -11,11 +11,12 @@ import "clsx";
|
|
|
11
11
|
import "tailwind-merge";
|
|
12
12
|
import "sonner";
|
|
13
13
|
import { shortenHash as s } from "../../utils/format.js";
|
|
14
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
14
15
|
import "luxon";
|
|
15
16
|
import "../../utils/z-index.js";
|
|
16
17
|
import "../buttons/tab-button/tab-button.js";
|
|
17
18
|
import { Identicon as a } from "./identicon.js";
|
|
18
|
-
function
|
|
19
|
+
function z({
|
|
19
20
|
confirmation: r,
|
|
20
21
|
note: o,
|
|
21
22
|
explorerUrl: i
|
|
@@ -34,5 +35,5 @@ function I({
|
|
|
34
35
|
] });
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
z as ConfirmationItem
|
|
38
39
|
};
|
|
@@ -5,6 +5,7 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as a } 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 h = "flex-wrap text-left bg-transparent border-0 [&[data-state=open]>[data-accordion-icon]]:rotate-180";
|
|
@@ -13,6 +13,7 @@ import "../dropdown-menu/dropdown-menu-sub-trigger.js";
|
|
|
13
13
|
import "@gearbox-protocol/sdk";
|
|
14
14
|
import { cn as e } from "../../utils/cn.js";
|
|
15
15
|
import "sonner";
|
|
16
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
16
17
|
import "luxon";
|
|
17
18
|
import "../../utils/z-index.js";
|
|
18
19
|
const n = "cursor-pointer gap-0 rounded-lg px-3 py-3 text-sm font-normal leading-[17px] text-foreground hover:bg-gray-80 focus:bg-gray-80", a = p.forwardRef(({ className: o, ...r }, m) => /* @__PURE__ */ t(
|
|
@@ -4,11 +4,12 @@ import { useRef as j } from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as l } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import { Z_INDEX as y } from "../../utils/z-index.js";
|
|
9
10
|
function E({
|
|
10
|
-
children:
|
|
11
|
-
title:
|
|
11
|
+
children: p,
|
|
12
|
+
title: f,
|
|
12
13
|
asChild: a = !1,
|
|
13
14
|
placement: m = "bottom",
|
|
14
15
|
align: u = "start",
|
|
@@ -59,7 +60,7 @@ function E({
|
|
|
59
60
|
"inline-flex appearance-none border-0 bg-transparent p-0 text-inherit font-inherit cursor-pointer",
|
|
60
61
|
v
|
|
61
62
|
),
|
|
62
|
-
children:
|
|
63
|
+
children: f
|
|
63
64
|
}
|
|
64
65
|
),
|
|
65
66
|
/* @__PURE__ */ r(t.Portal, { children: /* @__PURE__ */ r(
|
|
@@ -76,7 +77,7 @@ function E({
|
|
|
76
77
|
},
|
|
77
78
|
onPointerDownOutside: o ? x : void 0,
|
|
78
79
|
onEscapeKeyDown: o ? () => e?.(!1) : void 0,
|
|
79
|
-
children:
|
|
80
|
+
children: p
|
|
80
81
|
}
|
|
81
82
|
) })
|
|
82
83
|
]
|
|
@@ -3,15 +3,16 @@ import { useMemo as c } from "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as r } 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
|
-
import { Skeleton as
|
|
9
|
-
const
|
|
9
|
+
import { Skeleton as i } from "./skeleton.js";
|
|
10
|
+
const n = {
|
|
10
11
|
sm: "space-y-2",
|
|
11
12
|
md: "space-y-3",
|
|
12
13
|
lg: "space-y-4"
|
|
13
14
|
};
|
|
14
|
-
function
|
|
15
|
+
function w({
|
|
15
16
|
lines: o = 5,
|
|
16
17
|
className: t,
|
|
17
18
|
gap: e = "md"
|
|
@@ -20,8 +21,8 @@ function S({
|
|
|
20
21
|
() => Array.from({ length: o }, () => crypto.randomUUID()),
|
|
21
22
|
[o]
|
|
22
23
|
);
|
|
23
|
-
return /* @__PURE__ */ m("div", { className: r(
|
|
24
|
-
|
|
24
|
+
return /* @__PURE__ */ m("div", { className: r(n[e], t), children: p.map((s, a) => /* @__PURE__ */ m(
|
|
25
|
+
i,
|
|
25
26
|
{
|
|
26
27
|
className: r("h-4 w-full", a === o - 1 && "w-3/4")
|
|
27
28
|
},
|
|
@@ -29,5 +30,5 @@ function S({
|
|
|
29
30
|
)) });
|
|
30
31
|
}
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
w as SkeletonStack
|
|
33
34
|
};
|
|
@@ -4,6 +4,7 @@ import "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as w } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
const c = f("animate-pulse rounded-md bg-muted", {
|
|
@@ -50,7 +51,7 @@ const c = f("animate-pulse rounded-md bg-muted", {
|
|
|
50
51
|
height: "md"
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
|
-
function
|
|
54
|
+
function j({
|
|
54
55
|
className: s,
|
|
55
56
|
variant: l,
|
|
56
57
|
speed: n,
|
|
@@ -86,6 +87,6 @@ function $({
|
|
|
86
87
|
);
|
|
87
88
|
}
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
j as Skeleton,
|
|
90
91
|
c as skeletonVariants
|
|
91
92
|
};
|
|
@@ -5,6 +5,7 @@ import * as H from "react";
|
|
|
5
5
|
import { useMemo as m, useRef as w, useCallback as J, useState as K, useLayoutEffect as Q } from "react";
|
|
6
6
|
import { cn as y } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
8
9
|
import { findClosestPoint as X, validateMinMax as Y } from "../../utils/math.js";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
@@ -6,13 +6,14 @@ import { SliderProvider as K } from "../slider/slider-context.js";
|
|
|
6
6
|
import { SliderMark as Q } from "../slider/slider-mark.js";
|
|
7
7
|
import { cn as x } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import { validateMinMax as w } from "../../utils/math.js";
|
|
10
11
|
import "luxon";
|
|
11
12
|
import "../../utils/z-index.js";
|
|
12
13
|
import { SliderTokenLabel as X } from "./slider-token-label.js";
|
|
13
14
|
import { makeSliderTokenMarkerPoints as Y, mergeCloseMarkers as Z } from "./slider-token-utils.js";
|
|
14
15
|
const V = 7.5;
|
|
15
|
-
function
|
|
16
|
+
function pe({
|
|
16
17
|
from: p,
|
|
17
18
|
to: g,
|
|
18
19
|
step: I,
|
|
@@ -45,21 +46,21 @@ function ue({
|
|
|
45
46
|
f
|
|
46
47
|
),
|
|
47
48
|
[t, n, N, f]
|
|
48
|
-
),
|
|
49
|
+
), i = l(
|
|
49
50
|
() => Z(y, T),
|
|
50
51
|
[y, T]
|
|
51
52
|
), C = u(
|
|
52
53
|
(e) => {
|
|
53
|
-
if (
|
|
54
|
+
if (i.length === 0) {
|
|
54
55
|
m(w(e, t, n));
|
|
55
56
|
return;
|
|
56
57
|
}
|
|
57
|
-
const o =
|
|
58
|
-
(a,
|
|
58
|
+
const o = i.reduce(
|
|
59
|
+
(a, s) => Math.abs(s.point - e) < Math.abs(a.point - e) ? s : a
|
|
59
60
|
);
|
|
60
61
|
Math.abs(o.point - e) < M ? m(w(o.point, t, n)) : m(e);
|
|
61
62
|
},
|
|
62
|
-
[
|
|
63
|
+
[i, M, t, n, m]
|
|
63
64
|
), P = u(
|
|
64
65
|
(e) => {
|
|
65
66
|
e.length > 0 && C(e[0]);
|
|
@@ -79,11 +80,11 @@ function ue({
|
|
|
79
80
|
document.removeEventListener("pointermove", o), delete e.dataset.dragging;
|
|
80
81
|
};
|
|
81
82
|
document.addEventListener("pointermove", o, { once: !0 }), document.addEventListener("pointerup", a, { once: !0 });
|
|
82
|
-
}, []), G = l(() =>
|
|
83
|
-
const
|
|
83
|
+
}, []), G = l(() => i.map(({ point: e }, o, a) => {
|
|
84
|
+
const s = a[o + 1], k = a[o - 1], O = s ? Math.abs(e - s.point) <= h : !1, U = k ? Math.abs(e - k.point) <= h : !1, W = o === 0 || o === a.length - 1 || f[e] !== void 0 && !U && !O, _ = S?.[e], q = W ? F(H(String(e), b.decimals), b.decimals) : "", j = _ ?? q;
|
|
84
85
|
return { point: e, labelText: j, align: _ ? "top" : "bottom", hasLabel: !!j };
|
|
85
86
|
}), [
|
|
86
|
-
|
|
87
|
+
i,
|
|
87
88
|
f,
|
|
88
89
|
S,
|
|
89
90
|
b,
|
|
@@ -113,7 +114,7 @@ function ue({
|
|
|
113
114
|
onValueCommit: P,
|
|
114
115
|
children: [
|
|
115
116
|
/* @__PURE__ */ r(v.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-full bg-gray-40 mx-[9px] cursor-pointer" }),
|
|
116
|
-
|
|
117
|
+
i.length > 0 && /* @__PURE__ */ r("div", { className: "absolute inset-0 pointer-events-none flex items-center", children: /* @__PURE__ */ r("div", { className: "relative w-full", children: i.map(({ point: e }) => /* @__PURE__ */ r(
|
|
117
118
|
Q,
|
|
118
119
|
{
|
|
119
120
|
value: e,
|
|
@@ -140,7 +141,7 @@ function ue({
|
|
|
140
141
|
}
|
|
141
142
|
),
|
|
142
143
|
/* @__PURE__ */ r("div", { className: "absolute inset-0 pointer-events-none", children: /* @__PURE__ */ r("div", { className: "relative w-full h-full", children: G.map(
|
|
143
|
-
({ point: e, labelText: o, align: a, hasLabel:
|
|
144
|
+
({ point: e, labelText: o, align: a, hasLabel: s }) => s && /* @__PURE__ */ r(
|
|
144
145
|
X,
|
|
145
146
|
{
|
|
146
147
|
point: e,
|
|
@@ -158,5 +159,5 @@ function ue({
|
|
|
158
159
|
) }) }) });
|
|
159
160
|
}
|
|
160
161
|
export {
|
|
161
|
-
|
|
162
|
+
pe as SliderToken
|
|
162
163
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { cva as x } from "class-variance-authority";
|
|
3
3
|
import { TextButton as u } from "../text-button/text-button.js";
|
|
4
4
|
import { TokenTemplate as f } from "../token-template/token-template.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
|
-
import { cn as
|
|
7
|
+
import { cn as r } 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 b = x("font-normal leading-[130%] text-foreground", {
|
|
@@ -17,35 +18,35 @@ const b = x("font-normal leading-[130%] text-foreground", {
|
|
|
17
18
|
},
|
|
18
19
|
defaultVariants: { size: "md" }
|
|
19
20
|
});
|
|
20
|
-
function
|
|
21
|
-
title:
|
|
21
|
+
function V({
|
|
22
|
+
title: s = "Balance",
|
|
22
23
|
className: i,
|
|
23
24
|
maxAmount: l,
|
|
24
25
|
token: c,
|
|
25
26
|
disabled: d,
|
|
26
27
|
maxButton: p = !0,
|
|
27
|
-
onMaxButtonClick:
|
|
28
|
+
onMaxButtonClick: a,
|
|
28
29
|
size: e = "sm"
|
|
29
30
|
}) {
|
|
30
31
|
const o = !d && p, n = /* @__PURE__ */ t(f, { value: l, token: c, showSymbol: !1 });
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ m(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
34
|
-
className:
|
|
35
|
+
className: r("flex shrink-0 basis-auto items-center", i),
|
|
35
36
|
"data-testid": "balance-indicator",
|
|
36
37
|
children: [
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
38
|
+
/* @__PURE__ */ m("span", { className: r(b({ size: e })), children: [
|
|
39
|
+
s,
|
|
39
40
|
": ",
|
|
40
|
-
o && e === "sm" ? /* @__PURE__ */ t(u, { onClick:
|
|
41
|
+
o && e === "sm" ? /* @__PURE__ */ t(u, { onClick: a, children: n }) : n
|
|
41
42
|
] }),
|
|
42
43
|
o && e !== "sm" && /* @__PURE__ */ t("div", { className: "ml-2", children: /* @__PURE__ */ t(
|
|
43
44
|
"button",
|
|
44
45
|
{
|
|
45
46
|
type: "button",
|
|
46
|
-
onClick:
|
|
47
|
+
onClick: a,
|
|
47
48
|
"data-testid": "balance-max",
|
|
48
|
-
className:
|
|
49
|
+
className: r(
|
|
49
50
|
"rounded-[6px] border-0 py-[3px] px-1 text-[11px]! leading-[13px]!",
|
|
50
51
|
"text-center uppercase text-foreground",
|
|
51
52
|
"bg-gray-70 hover:bg-gray-90 transition-colors"
|
|
@@ -58,5 +59,5 @@ function S({
|
|
|
58
59
|
);
|
|
59
60
|
}
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
V as BalanceIndicator
|
|
62
63
|
};
|
|
@@ -10,6 +10,7 @@ import "@gearbox-protocol/sdk";
|
|
|
10
10
|
import { parseInputToBN as Q } from "../../utils/parse-input-to-bn.js";
|
|
11
11
|
import { cn as d } from "../../utils/cn.js";
|
|
12
12
|
import "sonner";
|
|
13
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
13
14
|
import "luxon";
|
|
14
15
|
import "../../utils/z-index.js";
|
|
15
16
|
import { BalanceIndicator as U } from "./balance-indicator.js";
|
|
@@ -4,6 +4,7 @@ import * as i from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import { Z_INDEX as d } from "../../utils/z-index.js";
|
|
9
10
|
const m = i.forwardRef(
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as p from "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as d } 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
|
-
const s =
|
|
9
|
-
({ size: r = 40, speed: o = "1s", width: i = 4, className:
|
|
9
|
+
const s = p.forwardRef(
|
|
10
|
+
({ size: r = 40, speed: o = "1s", width: i = 4, className: t, style: e, ...a }, n) => /* @__PURE__ */ m(
|
|
10
11
|
"span",
|
|
11
12
|
{
|
|
12
13
|
ref: n,
|
|
13
|
-
className:
|
|
14
|
+
className: d(
|
|
14
15
|
"inline-block rounded-full border-solid border-gray-20 border-b-gray-110 animate-spin",
|
|
15
|
-
|
|
16
|
+
t
|
|
16
17
|
),
|
|
17
18
|
style: {
|
|
18
19
|
width: r,
|
|
19
20
|
height: r,
|
|
20
21
|
borderWidth: i,
|
|
21
22
|
animationDuration: o,
|
|
22
|
-
...
|
|
23
|
+
...e
|
|
23
24
|
},
|
|
24
25
|
...a
|
|
25
26
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { cva as
|
|
2
|
+
import { cva as m } from "class-variance-authority";
|
|
3
3
|
import * as t from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as c } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
const u =
|
|
10
|
+
const u = m(
|
|
10
11
|
[
|
|
11
12
|
/* layout */
|
|
12
13
|
"relative flex items-center",
|
|
@@ -31,7 +32,7 @@ const u = c(
|
|
|
31
32
|
"div",
|
|
32
33
|
{
|
|
33
34
|
ref: s,
|
|
34
|
-
className:
|
|
35
|
+
className: c(
|
|
35
36
|
"flex w-full flex-row flex-nowrap",
|
|
36
37
|
"items-stretch",
|
|
37
38
|
l
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cva as
|
|
2
|
+
import { cva as o } from "class-variance-authority";
|
|
3
3
|
import * as b from "react";
|
|
4
4
|
import { StatusTriangle as v } from "../status-triangle/status-triangle.js";
|
|
5
5
|
import { SimpleTooltip as B } from "../tooltip/simple-tooltip.js";
|
|
@@ -7,9 +7,10 @@ import "../tooltip/tooltip.js";
|
|
|
7
7
|
import "@gearbox-protocol/sdk";
|
|
8
8
|
import { cn as l } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
10
11
|
import "luxon";
|
|
11
12
|
import "../../utils/z-index.js";
|
|
12
|
-
const S =
|
|
13
|
+
const S = o(
|
|
13
14
|
"w-full h-full rounded-lg border transition-colors",
|
|
14
15
|
{
|
|
15
16
|
variants: {
|
|
@@ -30,7 +31,7 @@ const S = d(
|
|
|
30
31
|
size: "default"
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
), V =
|
|
34
|
+
), V = o("font-medium text-muted-foreground", {
|
|
34
35
|
variants: {
|
|
35
36
|
size: {
|
|
36
37
|
sm: "text-xs leading-[0.8125rem]",
|
|
@@ -41,7 +42,7 @@ const S = d(
|
|
|
41
42
|
defaultVariants: {
|
|
42
43
|
size: "default"
|
|
43
44
|
}
|
|
44
|
-
}), w =
|
|
45
|
+
}), w = o("font-medium text-foreground flex", {
|
|
45
46
|
variants: {
|
|
46
47
|
size: {
|
|
47
48
|
sm: "text-sm leading-[1.0625rem]",
|
|
@@ -54,7 +55,7 @@ const S = d(
|
|
|
54
55
|
}
|
|
55
56
|
}), y = b.forwardRef(
|
|
56
57
|
({
|
|
57
|
-
className:
|
|
58
|
+
className: d,
|
|
58
59
|
variant: c,
|
|
59
60
|
size: t,
|
|
60
61
|
title: m,
|
|
@@ -97,7 +98,7 @@ const S = d(
|
|
|
97
98
|
"div",
|
|
98
99
|
{
|
|
99
100
|
ref: u,
|
|
100
|
-
className: l(S({ variant: c, size: t }),
|
|
101
|
+
className: l(S({ variant: c, size: t }), d),
|
|
101
102
|
...g,
|
|
102
103
|
children: [
|
|
103
104
|
/* @__PURE__ */ a("div", { className: l("flex items-center", N), children: [
|
|
@@ -123,7 +124,7 @@ const S = d(
|
|
|
123
124
|
}
|
|
124
125
|
);
|
|
125
126
|
y.displayName = "StatBadge";
|
|
126
|
-
const z =
|
|
127
|
+
const z = o("grid w-full", {
|
|
127
128
|
variants: {
|
|
128
129
|
cols: {
|
|
129
130
|
1: "grid-cols-1",
|
|
@@ -181,7 +182,7 @@ const z = d("grid w-full", {
|
|
|
181
182
|
}
|
|
182
183
|
}), G = b.forwardRef(
|
|
183
184
|
({
|
|
184
|
-
className:
|
|
185
|
+
className: d,
|
|
185
186
|
cols: c,
|
|
186
187
|
colsSm: t,
|
|
187
188
|
colsMd: m,
|
|
@@ -196,7 +197,7 @@ const z = d("grid w-full", {
|
|
|
196
197
|
ref: u,
|
|
197
198
|
className: l(
|
|
198
199
|
z({ cols: c, colsSm: t, colsMd: m, colsLg: s, colsXl: n, gap: i }),
|
|
199
|
-
|
|
200
|
+
d
|
|
200
201
|
),
|
|
201
202
|
...g,
|
|
202
203
|
children: r
|
|
@@ -4,6 +4,7 @@ import * as n from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as u } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
const d = m("rounded-full shrink-0", {
|
|
@@ -29,7 +30,7 @@ const d = m("rounded-full shrink-0", {
|
|
|
29
30
|
variant: "default",
|
|
30
31
|
size: "sm"
|
|
31
32
|
}
|
|
32
|
-
}),
|
|
33
|
+
}), p = n.forwardRef(
|
|
33
34
|
({ className: t, variant: r, size: a, pulse: s, ...e }, i) => /* @__PURE__ */ o(
|
|
34
35
|
"div",
|
|
35
36
|
{
|
|
@@ -43,8 +44,8 @@ const d = m("rounded-full shrink-0", {
|
|
|
43
44
|
}
|
|
44
45
|
)
|
|
45
46
|
);
|
|
46
|
-
|
|
47
|
+
p.displayName = "StatusDot";
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
p as StatusDot,
|
|
49
50
|
d as statusDotVariants
|
|
50
51
|
};
|
|
@@ -4,6 +4,7 @@ import "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";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
const d = {
|
|
@@ -13,7 +14,7 @@ const d = {
|
|
|
13
14
|
critical: "bg-destructive",
|
|
14
15
|
liquidation: "bg-liquidation"
|
|
15
16
|
};
|
|
16
|
-
function
|
|
17
|
+
function A({ zone: i, size: t = 8 }) {
|
|
17
18
|
return /* @__PURE__ */ a(
|
|
18
19
|
"div",
|
|
19
20
|
{
|
|
@@ -29,7 +30,7 @@ const l = {
|
|
|
29
30
|
bad: 1,
|
|
30
31
|
critical: 1,
|
|
31
32
|
liquidation: 1
|
|
32
|
-
},
|
|
33
|
+
}, m = 3, g = {
|
|
33
34
|
good: "success",
|
|
34
35
|
medium: "warning",
|
|
35
36
|
bad: "destructive",
|
|
@@ -52,8 +53,8 @@ const l = {
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
);
|
|
55
|
-
function
|
|
56
|
-
const t = l[i], e =
|
|
56
|
+
function x({ zone: i }) {
|
|
57
|
+
const t = l[i], e = g[i], n = Array.from({ length: m }, (o, r) => {
|
|
57
58
|
const c = r < t;
|
|
58
59
|
return {
|
|
59
60
|
key: r,
|
|
@@ -63,6 +64,6 @@ function A({ zone: i }) {
|
|
|
63
64
|
return /* @__PURE__ */ a("div", { className: s("flex flex-wrap gap-0.5 w-2"), "aria-hidden": !0, children: n.map(({ key: o, color: r }) => /* @__PURE__ */ a("div", { className: b({ color: r }) }, o)) });
|
|
64
65
|
}
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
A as HealthDot,
|
|
68
|
+
x as StatusBars
|
|
68
69
|
};
|
|
@@ -3,6 +3,7 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as d } 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 m = {
|
|
@@ -11,13 +12,13 @@ const m = {
|
|
|
11
12
|
md: 6,
|
|
12
13
|
lg: 8
|
|
13
14
|
};
|
|
14
|
-
function
|
|
15
|
+
function v({
|
|
15
16
|
isNegative: i,
|
|
16
17
|
$isNegative: o,
|
|
17
18
|
size: t = 5,
|
|
18
19
|
className: n
|
|
19
20
|
}) {
|
|
20
|
-
const
|
|
21
|
+
const r = i ?? o ?? !1, e = typeof t == "string" ? m[t] || 5 : t, s = e - 1;
|
|
21
22
|
return /* @__PURE__ */ a(
|
|
22
23
|
"div",
|
|
23
24
|
{
|
|
@@ -27,13 +28,13 @@ function h({
|
|
|
27
28
|
height: 0,
|
|
28
29
|
borderLeft: `${s}px solid transparent`,
|
|
29
30
|
borderRight: `${s}px solid transparent`,
|
|
30
|
-
borderTop: `${
|
|
31
|
+
borderTop: `${e}px solid ${r ? "hsl(var(--destructive))" : "hsl(var(--success, 142 76% 36%))"}`,
|
|
31
32
|
borderRadius: "1px",
|
|
32
|
-
transform:
|
|
33
|
+
transform: r ? "rotate(0deg)" : "rotate(180deg)"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
);
|
|
36
37
|
}
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
v as StatusTriangle
|
|
39
40
|
};
|