@gearbox-protocol/permissionless-ui 1.26.11-next.7 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/accordion/accordion.cjs +1 -1
- package/dist/cjs/components/address/address.cjs +1 -1
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
- package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/apy/apy.cjs +1 -1
- package/dist/cjs/components/arc-loader/arc-loader.cjs +1 -1
- package/dist/cjs/components/asset-line/asset-line.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/assets-ratio/assets-ratio.cjs +1 -1
- package/dist/cjs/components/auth/connect-required.cjs +1 -1
- package/dist/cjs/components/auth/signin-required.cjs +1 -1
- package/dist/cjs/components/avatar/avatar.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/button-checkbox/button-checkbox.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -1
- package/dist/cjs/components/card-grid/card-grid.cjs +1 -1
- package/dist/cjs/components/cards/card/card.cjs +1 -1
- package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/colored-text/colored-text.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
- package/dist/cjs/components/credit-session-status/credit-session-status.cjs +1 -1
- package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
- package/dist/cjs/components/description/description.cjs +1 -1
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-description.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-footer.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-form.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-header.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-overlay.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
- package/dist/cjs/components/dropdown-label/dropdown-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +1 -1
- package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
- package/dist/cjs/components/error-message/error-line-message.cjs +1 -1
- package/dist/cjs/components/error-message/error-message.cjs +1 -1
- package/dist/cjs/components/error-view/error-view.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/filter/filter-block.cjs +1 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/filter/filter-chips.cjs +1 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-group.cjs +1 -1
- package/dist/cjs/components/filter/filter-label.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal.cjs +1 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-separator.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
- package/dist/cjs/components/grid-td-cell/grid-td-cell.cjs +1 -1
- package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
- package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
- package/dist/cjs/components/help-sections/help-sections.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/horizontal-indicator/horizontal-indicator.cjs +1 -1
- package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
- package/dist/cjs/components/icons/fa-icon.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/label.cjs +1 -1
- package/dist/cjs/components/layout/block/block.cjs +1 -1
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-assets-table/liquidation-assets-table.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.cjs +1 -1
- package/dist/cjs/components/liquidation-price/liquidation-price.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar/navbar-with-overflow.cjs +1 -1
- package/dist/cjs/components/navbar/navbar.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/navitem/navitem.cjs +1 -1
- package/dist/cjs/components/not-found/not-found.cjs +1 -1
- package/dist/cjs/components/options-list/options-list.cjs +1 -1
- package/dist/cjs/components/overflow/overflow.cjs +1 -1
- package/dist/cjs/components/overflow-container/overflow-container.cjs +1 -1
- package/dist/cjs/components/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/percent-indicator/percent-indicator.cjs +1 -1
- package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
- package/dist/cjs/components/pool-indicator-icon/pool-indicator-icon.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/progress/progress.cjs +1 -1
- package/dist/cjs/components/progress-bar/progress-bar.cjs +1 -1
- package/dist/cjs/components/progress-circle/progress-circle.cjs +1 -1
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -1
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
- package/dist/cjs/components/row/row.cjs +1 -1
- package/dist/cjs/components/search-bar/search-bar.cjs +1 -1
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/separate-line/separate-line.cjs +1 -1
- package/dist/cjs/components/separator/separator.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/signatures/confirmation-item.cjs +1 -1
- package/dist/cjs/components/simple-accordion/simple-accordion.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton-stack.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton.cjs +1 -1
- package/dist/cjs/components/slider/slider.cjs +1 -1
- package/dist/cjs/components/slider-token/slider-token.cjs +1 -1
- package/dist/cjs/components/smart-number-input/balance-indicator.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/spinner-loader/spinner-loader.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/cjs/components/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/status-dot/status-dot.cjs +1 -1
- package/dist/cjs/components/status-elements/status-elements.cjs +1 -1
- package/dist/cjs/components/status-triangle/status-triangle.cjs +1 -1
- package/dist/cjs/components/stepper/stepper.cjs +1 -1
- package/dist/cjs/components/styled-dropdown/styled-dropdown.cjs +1 -1
- package/dist/cjs/components/switch/switch.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/edit-button.cjs +1 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
- package/dist/cjs/components/table/editable-table.cjs +1 -1
- package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/components/text-button/text-button.cjs +1 -1
- package/dist/cjs/components/textarea/textarea.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/toggle/toggle.cjs +1 -1
- package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
- package/dist/cjs/components/token-template/token-template.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/typography/typography.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/vertical-list/vertical-list.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/with-filter-button/with-filter-button.cjs +1 -1
- package/dist/cjs/components/with-title/with-title.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/hooks/use-hf.cjs +1 -1
- package/dist/cjs/hooks/use-liquidation/index.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +7 -8
- package/dist/esm/components/address/address.js +2 -3
- package/dist/esm/components/alert-badge/alert-badge.js +0 -1
- package/dist/esm/components/alert-dialog/alert-dialog.js +7 -8
- package/dist/esm/components/alert-modal/alert-modal.js +0 -1
- package/dist/esm/components/app-bar/app-bar.js +0 -1
- package/dist/esm/components/apy/apy.js +9 -10
- package/dist/esm/components/arc-loader/arc-loader.js +0 -1
- package/dist/esm/components/asset-line/asset-line.js +9 -10
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +2 -3
- package/dist/esm/components/assets-ratio/assets-ratio.js +11 -12
- package/dist/esm/components/auth/connect-required.js +2 -3
- package/dist/esm/components/auth/signin-required.js +11 -12
- package/dist/esm/components/avatar/avatar.js +9 -10
- package/dist/esm/components/badge/badge.js +6 -7
- package/dist/esm/components/base-link/base-link.js +7 -8
- package/dist/esm/components/block-sync/block-sync.js +2 -3
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +2 -3
- package/dist/esm/components/button-checkbox/button-checkbox.js +13 -16
- package/dist/esm/components/buttons/back-button/back-button.js +6 -7
- package/dist/esm/components/buttons/button/button.js +4 -5
- package/dist/esm/components/buttons/copy-button/copy-button.js +7 -8
- package/dist/esm/components/buttons/external-button/external-button.js +7 -8
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +3 -4
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +2 -3
- package/dist/esm/components/card-grid/card-grid.js +4 -5
- package/dist/esm/components/cards/card/card.js +0 -1
- package/dist/esm/components/cards/expandable-call/expandable-call.js +19 -20
- package/dist/esm/components/cards/expandable-card/expandable-card.js +11 -12
- package/dist/esm/components/carousel/carousel.js +14 -15
- package/dist/esm/components/checkbox/checkbox-labeled.js +0 -1
- package/dist/esm/components/checkbox/checkbox.js +0 -1
- package/dist/esm/components/checkbox-item/checkbox-item.js +9 -10
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +4 -5
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +0 -1
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +0 -1
- package/dist/esm/components/colored-text/colored-text.js +0 -1
- package/dist/esm/components/complex-input/complex-input.js +2 -3
- package/dist/esm/components/compound-apy/compound-apy.js +2 -3
- package/dist/esm/components/confirm-menu/confirm-menu.js +3 -4
- package/dist/esm/components/credit-session-status/credit-session-status.js +2 -3
- package/dist/esm/components/currency-button/currency-button.js +9 -10
- package/dist/esm/components/description/description.js +0 -1
- package/dist/esm/components/detailed-apy/detailed-apy.js +8 -9
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +0 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +0 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +0 -1
- package/dist/esm/components/dialog/dialog-container.js +6 -7
- package/dist/esm/components/dialog/dialog-content.js +0 -1
- package/dist/esm/components/dialog/dialog-description.js +4 -5
- package/dist/esm/components/dialog/dialog-footer.js +0 -1
- package/dist/esm/components/dialog/dialog-form.js +11 -12
- package/dist/esm/components/dialog/dialog-header.js +4 -5
- package/dist/esm/components/dialog/dialog-modal-container.js +0 -1
- package/dist/esm/components/dialog/dialog-overlay.js +3 -4
- package/dist/esm/components/dialog/dialog-title.js +0 -1
- package/dist/esm/components/dropdown-label/dropdown-label.js +6 -7
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +7 -8
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +7 -8
- package/dist/esm/components/edit-input/edit-input.js +6 -7
- package/dist/esm/components/error-message/error-line-message.js +5 -6
- package/dist/esm/components/error-message/error-message.js +2 -3
- package/dist/esm/components/error-view/error-view.js +2 -3
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +2 -3
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +0 -1
- package/dist/esm/components/filter/filter-block.js +0 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +3 -4
- package/dist/esm/components/filter/filter-chip.js +8 -9
- package/dist/esm/components/filter/filter-chips.js +5 -6
- package/dist/esm/components/filter/filter-dropdown-item.js +11 -12
- package/dist/esm/components/filter/filter-group.js +0 -1
- package/dist/esm/components/filter/filter-label.js +0 -1
- package/dist/esm/components/filter/filter-modal-item.js +4 -5
- package/dist/esm/components/filter/filter-modal.js +2 -3
- package/dist/esm/components/filter/filter-radio-item.js +4 -5
- package/dist/esm/components/filter/filter-separator.js +3 -4
- package/dist/esm/components/formatted-number/formatted-number.js +2 -3
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +2 -3
- package/dist/esm/components/head-cell/head-cell.js +12 -13
- package/dist/esm/components/health-factor/health-factor.js +6 -7
- package/dist/esm/components/help-sections/help-sections.js +7 -8
- package/dist/esm/components/help-tip/help-tip.js +4 -5
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +2 -3
- package/dist/esm/components/icon-button/icon-button.js +6 -7
- package/dist/esm/components/icons/fa-icon.js +2 -3
- package/dist/esm/components/input/input.js +62 -56
- package/dist/esm/components/label/label.js +0 -1
- package/dist/esm/components/layout/block/block.js +2 -3
- package/dist/esm/components/link/link.js +13 -14
- package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js +5 -6
- package/dist/esm/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.js +17 -18
- package/dist/esm/components/liquidation-price/liquidation-price.js +2 -3
- package/dist/esm/components/loader/loader.js +0 -1
- package/dist/esm/components/loader-guard/loader-guard.js +2 -3
- package/dist/esm/components/loading-bar/loading-bar.js +0 -1
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +2 -3
- package/dist/esm/components/modal/modal.js +7 -8
- package/dist/esm/components/navbar/navbar-with-overflow.js +2 -3
- package/dist/esm/components/navbar/navbar.js +21 -22
- package/dist/esm/components/navbar-logo/navbar-logo.js +2 -3
- package/dist/esm/components/navitem/navitem.js +0 -1
- package/dist/esm/components/not-found/not-found.js +2 -3
- package/dist/esm/components/options-list/options-list.js +4 -5
- package/dist/esm/components/overflow/overflow.js +8 -9
- package/dist/esm/components/overflow-container/overflow-container.js +2 -3
- package/dist/esm/components/page-title/page-title.js +5 -6
- package/dist/esm/components/percent-indicator/percent-indicator.js +2 -3
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +2 -3
- package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +5 -6
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +2 -3
- package/dist/esm/components/progress/progress.js +5 -6
- package/dist/esm/components/progress-bar/progress-bar.js +16 -17
- package/dist/esm/components/progress-circle/progress-circle.js +10 -11
- package/dist/esm/components/radio-group/radio-group.js +0 -1
- package/dist/esm/components/rounded-image/rounded-image.js +0 -1
- package/dist/esm/components/row/row.js +2 -3
- package/dist/esm/components/search-bar/search-bar.js +4 -5
- package/dist/esm/components/search-line/search-line.js +0 -1
- package/dist/esm/components/segmented-control/segmented-control.js +8 -9
- package/dist/esm/components/select/select.js +3 -4
- package/dist/esm/components/separate-line/separate-line.js +0 -1
- package/dist/esm/components/separator/separator.js +3 -4
- package/dist/esm/components/short-string/short-string.js +3 -4
- package/dist/esm/components/signatures/confirmation-item.js +2 -3
- package/dist/esm/components/simple-accordion/simple-accordion.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +4 -5
- package/dist/esm/components/skeleton/skeleton-stack.js +6 -7
- package/dist/esm/components/skeleton/skeleton.js +2 -3
- package/dist/esm/components/slider/slider.js +0 -1
- package/dist/esm/components/slider-token/slider-token.js +12 -13
- package/dist/esm/components/smart-number-input/balance-indicator.js +13 -14
- package/dist/esm/components/smart-number-input/smart-number-input.js +0 -1
- package/dist/esm/components/spinner/spinner.js +0 -1
- package/dist/esm/components/spinner-loader/spinner-loader.js +7 -8
- package/dist/esm/components/split-list/split-list.js +4 -5
- package/dist/esm/components/stat-badge/stat-badge.js +9 -10
- package/dist/esm/components/status-dot/status-dot.js +3 -4
- package/dist/esm/components/status-elements/status-elements.js +6 -7
- package/dist/esm/components/status-triangle/status-triangle.js +5 -6
- package/dist/esm/components/stepper/stepper.js +20 -21
- package/dist/esm/components/styled-dropdown/styled-dropdown.js +2 -3
- package/dist/esm/components/switch/switch.js +7 -8
- package/dist/esm/components/tab-control/tab-control.js +36 -37
- package/dist/esm/components/table/edit-button.js +2 -3
- package/dist/esm/components/table/editable-grid-table.js +35 -36
- package/dist/esm/components/table/editable-table.js +16 -17
- package/dist/esm/components/table/grid-loading-line.js +13 -14
- package/dist/esm/components/table/table-sm.js +20 -21
- package/dist/esm/components/table/table.js +0 -1
- package/dist/esm/components/tabs/tabs.js +6 -7
- package/dist/esm/components/text-button/text-button.js +9 -10
- package/dist/esm/components/textarea/textarea.js +0 -1
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +0 -1
- package/dist/esm/components/tip-card/tip-card.js +4 -5
- package/dist/esm/components/toggle/toggle.js +0 -1
- package/dist/esm/components/token-symbol/token-symbol.js +4 -5
- package/dist/esm/components/token-template/token-template.js +5 -6
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +2 -3
- package/dist/esm/components/tooltip/simple-tooltip.js +0 -1
- package/dist/esm/components/tooltip/tooltip.js +6 -7
- package/dist/esm/components/trading-view/trading-view.js +2 -3
- package/dist/esm/components/typography/typography.js +4 -5
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +0 -1
- package/dist/esm/components/vertical-list/vertical-list.js +8 -9
- package/dist/esm/components/with-copy/with-copy.js +2 -3
- package/dist/esm/components/with-filter-button/with-filter-button.js +0 -1
- package/dist/esm/components/with-title/with-title.js +7 -8
- package/dist/esm/hooks/use-debounce-call.js +5 -6
- package/dist/esm/hooks/use-hf.js +22 -22
- package/dist/esm/hooks/use-liquidation/index.js +65 -66
- package/dist/esm/utils/format-money.js +17 -18
- package/dist/esm/utils/templates.js +20 -21
- package/dist/globals.css +1 -1
- package/dist/types/components/asset-line/asset-line.d.ts +3 -4
- package/dist/types/components/compound-apy/compound-apy.d.ts +4 -3
- package/dist/types/components/credit-session-status/credit-session-status.d.ts +1 -1
- package/dist/types/components/currency-button/currency-button.d.ts +2 -2
- package/dist/types/components/detailed-apy/detailed-apy.d.ts +5 -5
- package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +2 -2
- package/dist/types/components/liquidation/liquidation-assets-table/liquidation-assets-table.d.ts +2 -2
- package/dist/types/components/liquidation/liquidation-graph/liquidation-graph.d.ts +4 -5
- package/dist/types/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.d.ts +2 -2
- package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +3 -3
- package/dist/types/components/slider-token/slider-token.d.ts +2 -2
- package/dist/types/components/smart-number-input/balance-indicator.d.ts +2 -2
- package/dist/types/components/smart-number-input/smart-number-input.d.ts +10 -2
- package/dist/types/components/token-symbol/token-symbol.d.ts +6 -2
- package/dist/types/components/token-template/token-template.d.ts +2 -2
- package/dist/types/components/tokens-list-cell/tokens-list-cell.d.ts +2 -2
- package/dist/types/hooks/use-hf.d.ts +3 -4
- package/dist/types/hooks/use-liquidation/index.d.ts +8 -9
- package/dist/types/hooks/use-liquidation/types.d.ts +2 -2
- package/dist/types/hooks/use-liquidation/utils.d.ts +10 -11
- package/dist/types/utils/interface.d.ts +9 -0
- package/dist/types/utils/search-in-token.d.ts +4 -4
- package/dist/types/utils/templates.d.ts +8 -8
- package/package.json +7 -7
- package/dist/cjs/types/common.cjs +0 -1
- package/dist/esm/types/common.js +0 -1
- package/dist/types/types/common.d.ts +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("@gearbox-protocol/static"),l=require("react"),C=require("@fortawesome/free-solid-svg-icons"),v=require("../icons/fa-icon.cjs");require("@gearbox-protocol/sdk");const u=require("../../utils/cn.cjs");require("sonner");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("@gearbox-protocol/static"),l=require("react"),C=require("@fortawesome/free-solid-svg-icons"),v=require("../icons/fa-icon.cjs");require("@gearbox-protocol/sdk");const u=require("../../utils/cn.cjs");require("sonner");require("luxon");require("../../utils/z-index.cjs");require("../accordion/accordion.cjs");require("../alert-badge/alert-badge.cjs");require("../alert-dialog/alert-dialog.cjs");require("../alert-modal/alert-modal.cjs");const w=require("../tooltip/simple-tooltip.cjs");require("../tooltip/tooltip.cjs");require("react-intl");require("../arc-loader/arc-loader.cjs");require("../asset-line/asset-line.cjs");require("../buttons/back-button/back-button.cjs");require("../buttons/button/button.cjs");require("../buttons/copy-button/copy-button.cjs");require("../buttons/external-button/external-button.cjs");require("../buttons/filter-button/filter-button.cjs");require("../buttons/navigation-button/navigation-button.cjs");require("../buttons/tab-button/tab-button.cjs");require("../token-icon/token-icon.cjs");require("connectkit");require("wagmi");require("viem/siwe");require("../avatar/avatar.cjs");require("../badge/badge.cjs");require("../base-link/base-link.cjs");require("../navigation-context/navigation-context.cjs");require("../button-checkbox/button-checkbox.cjs");require("../card-grid/card-grid.cjs");require("../cards/card/card.cjs");require("../carousel/carousel.cjs");require("../checkbox/checkbox.cjs");require("../checkbox/checkbox-labeled.cjs");require("../checkbox-item/checkbox-item.cjs");require("../client-adapters/styled-button/styled-button.cjs");require("../client-adapters/styled-dialog-container/styled-dialog-container.cjs");require("../client-adapters/styled-rounded-image/styled-rounded-image.cjs");require("../colored-text/colored-text.cjs");require("../input/input.cjs");require("../with-title/with-title.cjs");require("../smart-number-input/balance-indicator.cjs");require("../smart-number-input/smart-number-input.cjs");require("../points-icon/points-icon.cjs");require("../skeleton/skeleton.cjs");require("../vertical-indicator/vertical-indicator.cjs");require("../vertical-list/vertical-list.cjs");require("../confirm-menu/confirm-menu.cjs");require("../currency-button/currency-button.cjs");require("../description/description.cjs");require("../detailed-apy/detailed-apy.cjs");require("../detailed-page-title/detailed-page-title.cjs");require("../detailed-page-title/detailed-page-title-copy-button.cjs");require("../detailed-page-title/detailed-page-title-explorer-dropdown.cjs");require("../modal/modal.cjs");require("@radix-ui/react-dialog");require("../dialog/dialog-container.cjs");require("../dialog/dialog-content.cjs");require("../dialog/dialog-description.cjs");require("../dialog/dialog-footer.cjs");require("../dialog/dialog-header.cjs");require("../dialog/dialog-title.cjs");require("../dialog/dialog-modal-container.cjs");require("../dialog/dialog-overlay.cjs");require("viem");require("../label/label.cjs");require("../dropdown-menu/dropdown-menu.cjs");require("../dropdown-menu/dropdown-menu-checkbox-item.cjs");require("../dropdown-menu/dropdown-menu-content.cjs");require("../dropdown-menu/dropdown-menu-item.cjs");require("../dropdown-menu/dropdown-menu-label.cjs");require("../dropdown-menu/dropdown-menu-radio-item.cjs");require("../dropdown-menu/dropdown-menu-separator.cjs");require("../dropdown-menu/dropdown-menu-shortcut.cjs");require("../dropdown-menu/dropdown-menu-sub-content.cjs");require("../dropdown-menu/dropdown-menu-sub-trigger.cjs");require("../edit-input/edit-input.cjs");require("../fadeout-loading/fadeout-loading.cjs");require("../filter/filter-block.cjs");require("../filter/filter-checkbox-item.cjs");require("../filter/filter-chip.cjs");require("../filter/filter-chips.cjs");require("../filter/filter-dropdown-item.cjs");require("../filter/filter-group.cjs");require("../filter/filter-label.cjs");require("../search-line/search-line.cjs");require("../tabs/tabs.cjs");require("../filter/filter-modal-item.cjs");require("../filter/filter-radio-item.cjs");require("../filter/filter-separator.cjs");require("../filter/variants.cjs");require("../graph/formatters.cjs");require("lightweight-charts");require("../graph/graph-view.cjs");require("../help-tip/help-tip.cjs");require("../health-factor/health-factor.cjs");require("../horizontal-indicator/horizontal-indicator.cjs");require("../icon-button/icon-button.cjs");require("../layout/col/col.cjs");require("../layout/container/container.cjs");require("../layout/footer/footer.cjs");require("../layout/grid/grid.cjs");require("../layout/header/header.cjs");require("../layout/layout/layout.cjs");require("../page-title/page-title.cjs");require("../layout/social-icons/social-icons.cjs");require("../link/link.cjs");require("../token-symbol/token-symbol.cjs");require("../../utils/reactochart-compat.cjs");require("../status-elements/status-elements.cjs");require("../text-button/text-button.cjs");require("../loader/loader.cjs");require("../loading/loading.cjs");require("../loading-bar/loading-bar.cjs");require("react-markdown");require("remark-gfm");require("../navbar/navbar.cjs");require("../navbar/navbar-indicator-context.cjs");require("../app-bar/app-bar.cjs");require("../navitem/navitem.cjs");require("../simple-dropdown/simple-dropdown.cjs");require("../progress/progress.cjs");require("../pool-indicator-icon/pool-indicator-icon.cjs");require("../progress-bar/progress-bar.cjs");require("../radio-group/radio-group.cjs");require("../rounded-image/rounded-image.cjs");require("../search-bar/search-bar.cjs");require("../segmented-control/segmented-control.cjs");require("../select/select.cjs");require("../separate-line/separate-line.cjs");require("../separator/separator.cjs");require("../simple-accordion/simple-accordion.cjs");require("../simple-dropdown/simple-dropdown-menu-item.cjs");require("../slider/slider.cjs");require("../slider/slider-context.cjs");require("@radix-ui/react-slider");require("../spinner/spinner.cjs");require("../spinner-loader/spinner-loader.cjs");require("../split-list/split-list.cjs");require("../stat-badge/stat-badge.cjs");require("../status-dot/status-dot.cjs");require("../stepper/stepper.cjs");require("../switch/switch.cjs");require("../table/grid-table.cjs");require("../table/table.cjs");require("../table/grid-table-loader.cjs");require("../textarea/textarea.cjs");require("../theme-provider.cjs");require("../time-to-liquidation/time-to-liquidation.cjs");require("../tip-card/tip-card.cjs");require("../toggle/toggle.cjs");require("../typography/typography.cjs");require("../with-filter-button/with-filter-button.cjs");function k({toCopy:p,children:d,onCopySuccess:y,iconSize:r=14,icon:m,className:f,buttonClassName:x,successDuration:h=1500,trigger:i="button",tooltip:s}){const[q,c]=l.useState(!1),t=l.useRef(null),o=async()=>{try{await navigator.clipboard.writeText(p),t.current&&clearTimeout(t.current),c(!0),t.current=setTimeout(()=>{c(!1)},h),y?.()}catch(n){console.error("Failed to copy:",n)}},b=n=>{n.key==="Enter"&&o()},a=()=>e.jsxs("div",{className:u.cn("group flex items-center min-w-0",f),onClick:i==="root"?o:void 0,onKeyDown:i==="root"?b:void 0,role:i==="root"?"button":void 0,children:[e.jsx("span",{className:"truncate",children:d}),e.jsxs("button",{type:"button",onClick:i==="button"?o:void 0,className:u.cn("ml-1 cursor-pointer relative flex-shrink-0",x),style:{width:r,height:r},title:q?"Copied!":"Copy to clipboard",children:[e.jsx("span",{className:u.cn("absolute inset-0 flex items-center justify-center transition-all duration-200",q?"opacity-100 scale-100 text-green-500":"opacity-0 scale-50 text-green-500"),children:e.jsx(v.FaIcon,{icon:C.faCheck,style:{fontSize:r},className:"block"})}),e.jsx("span",{className:u.cn("absolute inset-0 flex items-center justify-center transition-all duration-200",q?"opacity-0 scale-50":"opacity-100 scale-100 text-gray-400 group-hover:text-white"),children:m??e.jsx(j.IconCopy,{size:r})})]})]});return s?e.jsx(w.SimpleTooltip,{placement:"top",triangle:!0,title:a(),children:s}):a()}exports.WithCopy=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),v=require("react"),w=require("../buttons/button/button.cjs"),y=require("../buttons/filter-button/filter-button.cjs");require("@gearbox-protocol/sdk");const B=require("../../utils/cn.cjs");require("sonner");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),v=require("react"),w=require("../buttons/button/button.cjs"),y=require("../buttons/filter-button/filter-button.cjs");require("@gearbox-protocol/sdk");const B=require("../../utils/cn.cjs");require("sonner");require("luxon");require("../../utils/z-index.cjs");function N(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const k=N(v),c=k.forwardRef(({children:e,title:r,onClick:t,onOpen:i,buttonVariant:l="outline",buttonSize:a="default",buttonLabel:u="Filter",showIcon:d,hideIcon:f,hasChecked:m,className:b,buttonClassName:h,onClearAll:o,buttonProps:s},x)=>{const j=t||i,p=d??!f,g=s?.color==="neutral"?"default":l,_=s?.size||a,q=e||r;return n.jsxs("div",{ref:x,"data-has-checked":m,className:B.cn("w-full flex items-start md:items-center justify-between gap-4 flex-col md:flex-row",b),children:[n.jsx("div",{className:"flex-1",children:q}),n.jsx("div",{className:"flex-shrink-0",children:n.jsxs("div",{className:"flex items-center gap-2 flex-row-reverse md:flex-row",children:[o&&n.jsx(w.Button,{variant:"ghost",size:"default",onClick:o,children:"Clear all"}),n.jsx(y.FilterButton,{variant:g,size:_,onClick:j,className:h,label:u,showIcon:p})]})})]})});c.displayName="WithFilterButton";exports.WithFilterButton=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("class-variance-authority");require("react");require("@gearbox-protocol/sdk");const i=require("../../utils/cn.cjs");require("sonner");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("class-variance-authority");require("react");require("@gearbox-protocol/sdk");const i=require("../../utils/cn.cjs");require("sonner");require("luxon");require("../../utils/z-index.cjs");const l=a.cva("",{variants:{size:{sm:"text-[14px] mb-[14px]",default:"text-body mb-[18px]",md:"text-lg mb-[22px]",lg:"text-[21px] mb-[22px]"}},defaultVariants:{size:"default"}});function n({title:r,children:t,size:s="default",className:u}){return e.jsxs("div",{className:i.cn("flex flex-col"),children:[e.jsx("div",{className:i.cn("text-foreground font-medium",l({size:s}),u),children:r}),t!==void 0&&e.jsx("div",{children:t})]})}exports.WithTitle=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const u=require("./use-debounce.cjs");require("@gearbox-protocol/sdk
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const u=require("./use-debounce.cjs");require("@gearbox-protocol/sdk");const o=e=>e();function n(e){return u.useDebounce(o,e)}exports.useDebounceCall=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@gearbox-protocol/sdk"),i=require("react");function y({assets:t,quotas:c,prices:u,liquidationThresholds:n,underlyingToken:o,debt:e,quotasInfo:a,allowZeroDebt:f=!1,tokensList:l}){return{hf:i.useMemo(()=>{try{return e===0n&&!f?0:s.CreditAccountData_Legacy.calcHealthFactor({assets:t,quotas:c,prices:u,liquidationThresholds:n,underlyingToken:o,debt:e,quotasInfo:a,tokensList:l})}catch(r){return typeof r=="object"&&r!==null&&"reason"in r&&r.reason==="overflow"?Number.MAX_SAFE_INTEGER:0}},[t,c,u,n,o,e,a,f,l])}}exports.useHF=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("@gearbox-protocol/sdk"),C=require("react"),e=require("./utils.cjs"),d=35;function R({xMin:t,xMax:i,yMin:s,yMax:u,xLabel:r,yLabel:n,assets:a,quotas:c,prices:L,liquidationThresholds:o,quotasInfo:E,underlyingTokenAddress:_,debt:l,tokensList:P}){return C.useMemo(()=>{const x=i-t,N=u-s,p=x/d,m=N/d,D=Array.from(Array(d)),I={...L};return D.flatMap((G,O)=>{const T=t+O*p,f=t+(O+1)*p;return r&&(I[r.address]=A.toBN(String((T+f)/2),A.PRICE_DECIMALS_POW)),D.map((F,S)=>{const X=s+S*m,h=s+(S+1)*m;return n&&(I[n.address]=A.toBN(String((X+h)/2),A.PRICE_DECIMALS_POW)),{x:T,xEnd:f,y:X,yEnd:h,value:A.CreditAccountData_Legacy.calcHealthFactor({assets:a,quotas:c,prices:I,liquidationThresholds:o,underlyingToken:_,debt:l,quotasInfo:E,tokensList:P})}})})},[t,i,s,u,r,n,a,c,L,o,_,l,E,P])}function U({prices:t}){const[i,s]=C.useState({}),u=C.useMemo(()=>({...t,...i}),[t,i]),r=C.useCallback((n,a)=>{s({...i,[a]:n})},[i]);return[u,r]}function v({assets:t,liquidationThresholds:i,quotas:s,quotasInfo:u,tokensList:r,prices:n}){const[a]=e.useFixedAssets({assets:t,liquidationThresholds:i,quotas:s,quotasInfo:u}),[c,L]=e.usePriceInNumber({asset:a[0],tokensList:r,prices:n}),[o,E]=e.usePriceInNumber({asset:a[1],tokensList:r,prices:n}),_=e.useAxis({currentPrice:c,token:L}),l=e.useAxis({currentPrice:o,token:E});return{xAxis:_,yAxis:l,currentPoint:[c||e.DEFAULT_AXIS_MAX/2,o||e.DEFAULT_AXIS_MAX/2],fixedBalances:a}}exports.CELL_BAD=e.CELL_BAD;exports.CELL_CURRENT=e.CELL_CURRENT;exports.CELL_GOOD=e.CELL_GOOD;exports.CELL_HOVERED=e.CELL_HOVERED;exports.CELL_LIQUIDATION=e.CELL_LIQUIDATION;exports.CELL_OK=e.CELL_OK;exports.DEFAULT_AXIS_MAX=e.DEFAULT_AXIS_MAX;exports.DEFAULT_AXIS_MIN=e.DEFAULT_AXIS_MIN;exports.formatAxisLabel=e.formatAxisLabel;exports.formatAxisTipLabel=e.formatAxisTipLabel;exports.formatAxisTipPrice=e.formatAxisTipPrice;exports.getCellClass=e.getCellClass;exports.isPointInCell=e.isPointInCell;exports.useAxis=e.useAxis;exports.useFixedAssets=e.useFixedAssets;exports.useIsAxisInRelativeUnits=e.useIsAxisInRelativeUnits;exports.useLiquidationGraphActivePrice=e.useLiquidationGraphActivePrice;exports.useLiquidationGraphCurrentActiveValue=e.useLiquidationGraphCurrentActiveValue;exports.usePriceInNumber=e.usePriceInNumber;exports.useWithLiquidationGraphActivePrices=e.useWithLiquidationGraphActivePrices;exports.useEditPriceManually=U;exports.useLiquidationGraphParams=v;exports.useLiquidationHeatmap=R;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@gearbox-protocol/sdk");require("react");const E=require("./bn-to-input-view.cjs");require("clsx");require("tailwind-merge");require("sonner");require("react/jsx-runtime");require("luxon");require("./z-index.cjs");const g=10000000000000000n;function _(e){return BigInt(e.toFixed(18).replace(".",""))}function $(e,r){const n=typeof e=="number"&&e<0||typeof e=="bigint"&&e<0n?"-":"",s=typeof e=="number"?_(Math.abs(e)):f.BigIntMath.abs(e),a=s<g&&s>0n,l=a?"0.01":f.formatBN(s,f.WAD_DECIMALS_POW,r),o=`${n}$${l}`;return a?`< ${o}`:o}const O=1e4;function T(e,r,u=!0){const n=typeof e=="number"?e:Number(e);return Number.isNaN(n)||n===void 0||n===null?"0":n===0?0:u&&n>O?n.toExponential(r):n.toFixed(r)}function h(e,r=2){return`${T(e,r)}%`}function F(e,r=2){const u=Number(e)/Number(f.PERCENTAGE_FACTOR);return`${T(u,r)}%`}const i={minimumFractionDigits:2,maximumFractionDigits:2,decimalPrecision:4,minDecimalThreshold:1,minExponentialThreshold:1e-4,maxExponentialThreshold:1e6,locale:"en-US"},S=({amount:e,format:r="full",maximumFractionDigits:u=i.maximumFractionDigits,minimumFractionDigits:n=i.minimumFractionDigits,decimalPrecision:s=i.decimalPrecision,minDecimalThreshold:a=i.minDecimalThreshold,minExponentialThreshold:l=i.minExponentialThreshold,maxExponentialThreshold:o=i.maxExponentialThreshold,locale:p=i.locale})=>{const c=typeof e=="bigint"?Number(E.bnToInputView(e,8)):e,t=Math.abs(c);if(r==="short"){const d=c<0?"-":"",m=(N,b)=>{const M=N>=100?0:u,A=N.toFixed(M).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"");return`${d}${A}${b}`};if(t>=1e9&&t<=o)return m(t/1e9,"B");if(t>=1e6&&t<=o)return m(t/1e6,"M");if(t>=1e3&&t<=o)return m(t/1e3,"K");if(t>o)return m(t/o,"M+")}return t>o&&r==="full"?`${(c/i.maxExponentialThreshold).toFixed(n)}M`:t<l&&t>0?c.toFixed(Math.max(10,u)):t<a&&t>0?c.toPrecision(s):c.toLocaleString(p,{minimumFractionDigits:n,maximumFractionDigits:u})};exports.DEFAULT_FORMAT_MONEY_CONSTANTS=i;exports.formatMoney=$;exports.formatMoneyAmount=S;exports.formatPercentAmount=T;exports.percentTemplate=h;exports.percentageTemplate=F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),a=require("@gearbox-protocol/sdk"),g=require("./format-money.cjs");function d(o,e=2){return m.jsx(m.Fragment,{children:g.percentTemplate(o,e)})}function u(o,e,s,t=" ",r){const{decimals:n=18}=e||{};let i=a.formatBN(o,n,s);const l=e?.title||e?.symbol||"undefined";if(r!==void 0&&i!=="-"){const f=t.length+l.length,c=r-f;c>0&&i.length>c&&(i=i.slice(0,c))}return i==="-"?i:`${i}${t}${l}`}function p(o,e,s=2){if(o===void 0)return"-";const t=o.toFixed(s),r=Math.abs(Number(t))>0?"":"< ",n=r?`${t.slice(0,t.length-1)}1`:t;return`${r}${n} ${e?.title}`}function T(o,e,s,t){const r=a.toBigInt(o||0),n=u(a.BigIntMath.abs(r),e,s,t);return n==="-"?n:`${r<0?"-":""}${n}`}function $(o,e,s,t=" "){const{decimals:r=18}=e||{},n=a.formatBN(o,r,s),i=e?.title||e?.symbol||"undefined";return n==="-"?n:`${n}${t}${i}`}exports.negativeTokenTemplate=T;exports.percentageTemplate=d;exports.tokenTemplate=u;exports.tokenTemplateNumber=p;exports.tokenTemplateString=$;
|
|
@@ -5,10 +5,9 @@ import * as c from "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as i } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
|
-
const
|
|
10
|
+
const u = o.Root, l = c.forwardRef(({ className: r, ...t }, e) => /* @__PURE__ */ a(
|
|
12
11
|
o.Item,
|
|
13
12
|
{
|
|
14
13
|
ref: e,
|
|
@@ -16,8 +15,8 @@ const v = o.Root, p = c.forwardRef(({ className: r, ...t }, e) => /* @__PURE__ *
|
|
|
16
15
|
...t
|
|
17
16
|
}
|
|
18
17
|
));
|
|
19
|
-
|
|
20
|
-
const
|
|
18
|
+
l.displayName = "AccordionItem";
|
|
19
|
+
const p = c.forwardRef(({ className: r, children: t, hideIcon: e = !1, ...s }, n) => /* @__PURE__ */ a(o.Header, { className: "flex", children: /* @__PURE__ */ d(
|
|
21
20
|
o.Trigger,
|
|
22
21
|
{
|
|
23
22
|
ref: n,
|
|
@@ -39,7 +38,7 @@ const l = c.forwardRef(({ className: r, children: t, hideIcon: e = !1, ...s }, n
|
|
|
39
38
|
]
|
|
40
39
|
}
|
|
41
40
|
) }));
|
|
42
|
-
|
|
41
|
+
p.displayName = o.Trigger.displayName;
|
|
43
42
|
const f = c.forwardRef(({ className: r, innerClassName: t, children: e, ...s }, n) => /* @__PURE__ */ a(
|
|
44
43
|
o.Content,
|
|
45
44
|
{
|
|
@@ -54,8 +53,8 @@ const f = c.forwardRef(({ className: r, innerClassName: t, children: e, ...s },
|
|
|
54
53
|
));
|
|
55
54
|
f.displayName = o.Content.displayName;
|
|
56
55
|
export {
|
|
57
|
-
|
|
56
|
+
u as Accordion,
|
|
58
57
|
f as AccordionContent,
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
l as AccordionItem,
|
|
59
|
+
p as AccordionTrigger
|
|
61
60
|
};
|
|
@@ -4,10 +4,9 @@ import "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";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
|
-
function
|
|
9
|
+
function N({
|
|
11
10
|
address: o = "",
|
|
12
11
|
short: p = !0,
|
|
13
12
|
startChars: t = 6,
|
|
@@ -20,5 +19,5 @@ function W({
|
|
|
20
19
|
return r && o ? /* @__PURE__ */ n(f, { toCopy: o, children: m }) : m;
|
|
21
20
|
}
|
|
22
21
|
export {
|
|
23
|
-
|
|
22
|
+
N as Address
|
|
24
23
|
};
|
|
@@ -7,7 +7,6 @@ import { FaIcon as F } from "../icons/fa-icon.js";
|
|
|
7
7
|
import "@gearbox-protocol/sdk";
|
|
8
8
|
import { cn as c } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
11
10
|
import "luxon";
|
|
12
11
|
import "../../utils/z-index.js";
|
|
13
12
|
function r({
|
|
@@ -10,11 +10,10 @@ import "../buttons/navigation-button/navigation-button.js";
|
|
|
10
10
|
import "@gearbox-protocol/sdk";
|
|
11
11
|
import { cn as r } from "../../utils/cn.js";
|
|
12
12
|
import "sonner";
|
|
13
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import { Z_INDEX as m } from "../../utils/z-index.js";
|
|
16
15
|
import "../buttons/tab-button/tab-button.js";
|
|
17
|
-
const
|
|
16
|
+
const _ = t.Root, h = t.Trigger, c = t.Portal, n = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ l(
|
|
18
17
|
t.Overlay,
|
|
19
18
|
{
|
|
20
19
|
className: r(
|
|
@@ -27,7 +26,7 @@ const h = t.Root, k = t.Trigger, p = t.Portal, n = i.forwardRef(({ className: e,
|
|
|
27
26
|
}
|
|
28
27
|
));
|
|
29
28
|
n.displayName = t.Overlay.displayName;
|
|
30
|
-
const
|
|
29
|
+
const p = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ d(c, { children: [
|
|
31
30
|
/* @__PURE__ */ l(n, {}),
|
|
32
31
|
/* @__PURE__ */ l(
|
|
33
32
|
t.Content,
|
|
@@ -42,7 +41,7 @@ const c = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ d(p, { chi
|
|
|
42
41
|
}
|
|
43
42
|
)
|
|
44
43
|
] }));
|
|
45
|
-
|
|
44
|
+
p.displayName = t.Content.displayName;
|
|
46
45
|
const f = ({
|
|
47
46
|
className: e,
|
|
48
47
|
...a
|
|
@@ -112,15 +111,15 @@ const D = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ l(
|
|
|
112
111
|
));
|
|
113
112
|
D.displayName = t.Cancel.displayName;
|
|
114
113
|
export {
|
|
115
|
-
|
|
114
|
+
_ as AlertDialog,
|
|
116
115
|
y as AlertDialogAction,
|
|
117
116
|
D as AlertDialogCancel,
|
|
118
|
-
|
|
117
|
+
p as AlertDialogContent,
|
|
119
118
|
A as AlertDialogDescription,
|
|
120
119
|
g as AlertDialogFooter,
|
|
121
120
|
f as AlertDialogHeader,
|
|
122
121
|
n as AlertDialogOverlay,
|
|
123
|
-
|
|
122
|
+
c as AlertDialogPortal,
|
|
124
123
|
N as AlertDialogTitle,
|
|
125
|
-
|
|
124
|
+
h as AlertDialogTrigger
|
|
126
125
|
};
|
|
@@ -6,7 +6,6 @@ import { FaIcon as x } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as t } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import { Z_INDEX as g } from "../../utils/z-index.js";
|
|
12
11
|
const w = p.forwardRef(
|
|
@@ -9,24 +9,23 @@ import "clsx";
|
|
|
9
9
|
import "tailwind-merge";
|
|
10
10
|
import "sonner";
|
|
11
11
|
import { percentTemplate as s } from "../../utils/format-money.js";
|
|
12
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
13
12
|
import "luxon";
|
|
14
13
|
import "../../utils/z-index.js";
|
|
15
|
-
function
|
|
14
|
+
function v({
|
|
16
15
|
apy: r,
|
|
17
|
-
tooltip:
|
|
18
|
-
naText:
|
|
16
|
+
tooltip: e = /* @__PURE__ */ t(l, { messageId: "components.APY.tip" }),
|
|
17
|
+
naText: o = "N/A"
|
|
19
18
|
}) {
|
|
20
|
-
const
|
|
21
|
-
return
|
|
19
|
+
const m = r !== null ? s(r) : o;
|
|
20
|
+
return e ? /* @__PURE__ */ t(
|
|
22
21
|
n,
|
|
23
22
|
{
|
|
24
23
|
placement: "bottom",
|
|
25
|
-
title: /* @__PURE__ */ t(p, { size: "sm", children:
|
|
26
|
-
children:
|
|
24
|
+
title: /* @__PURE__ */ t(p, { size: "sm", children: m }),
|
|
25
|
+
children: e
|
|
27
26
|
}
|
|
28
|
-
) : /* @__PURE__ */ t(i, { children:
|
|
27
|
+
) : /* @__PURE__ */ t(i, { children: m });
|
|
29
28
|
}
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
v as Apy
|
|
32
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import { Description as n } from "../description/description.js";
|
|
4
4
|
import { ShortString as h } from "../short-string/short-string.js";
|
|
@@ -8,7 +8,6 @@ import { VSpace as x } from "../vspace/vspace.js";
|
|
|
8
8
|
import "@gearbox-protocol/sdk";
|
|
9
9
|
import { cn as E } from "../../utils/cn.js";
|
|
10
10
|
import "sonner";
|
|
11
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
12
11
|
import "luxon";
|
|
13
12
|
import "../../utils/z-index.js";
|
|
14
13
|
const Z = {
|
|
@@ -25,7 +24,7 @@ const Z = {
|
|
|
25
24
|
({
|
|
26
25
|
token: o,
|
|
27
26
|
tokenLabel: N,
|
|
28
|
-
tokenDescription:
|
|
27
|
+
tokenDescription: t,
|
|
29
28
|
network: S,
|
|
30
29
|
chainId: u,
|
|
31
30
|
value: s,
|
|
@@ -43,7 +42,7 @@ const Z = {
|
|
|
43
42
|
height: y
|
|
44
43
|
}, A) => {
|
|
45
44
|
const i = N || o?.title, a = e === "md" ? "default" : e;
|
|
46
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ l(
|
|
47
46
|
G,
|
|
48
47
|
{
|
|
49
48
|
ref: A,
|
|
@@ -54,7 +53,7 @@ const Z = {
|
|
|
54
53
|
last: R,
|
|
55
54
|
height: y,
|
|
56
55
|
children: [
|
|
57
|
-
/* @__PURE__ */ r(p, { size: a, className: "text-left", children: /* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ r(p, { size: a, className: "text-left", children: /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
58
57
|
/* @__PURE__ */ r(
|
|
59
58
|
I,
|
|
60
59
|
{
|
|
@@ -64,20 +63,20 @@ const Z = {
|
|
|
64
63
|
network: S
|
|
65
64
|
}
|
|
66
65
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ l("div", { className: "flex-1 min-w-0", children: [
|
|
68
67
|
i && /* @__PURE__ */ r(h, { maxLength: b, children: i }),
|
|
69
|
-
i &&
|
|
70
|
-
|
|
68
|
+
i && t && /* @__PURE__ */ r(x, { height: g[c] }),
|
|
69
|
+
t && /* @__PURE__ */ r(n, { children: /* @__PURE__ */ r(
|
|
71
70
|
h,
|
|
72
71
|
{
|
|
73
72
|
maxLength: L,
|
|
74
73
|
showTooltip: !1,
|
|
75
|
-
children: String(
|
|
74
|
+
children: String(t)
|
|
76
75
|
}
|
|
77
76
|
) })
|
|
78
77
|
] })
|
|
79
78
|
] }) }),
|
|
80
|
-
!f && /* @__PURE__ */ r(p, { size: a, className: "text-right", children: /* @__PURE__ */
|
|
79
|
+
!f && /* @__PURE__ */ r(p, { size: a, className: "text-right", children: /* @__PURE__ */ l("div", { className: "w-full flex flex-col items-end justify-end", children: [
|
|
81
80
|
s,
|
|
82
81
|
s && m && /* @__PURE__ */ r(x, { height: g[c] }),
|
|
83
82
|
m && /* @__PURE__ */ r(n, { children: m })
|
|
@@ -10,7 +10,6 @@ import "../buttons/navigation-button/navigation-button.js";
|
|
|
10
10
|
import "@gearbox-protocol/sdk";
|
|
11
11
|
import { cn as g } from "../../utils/cn.js";
|
|
12
12
|
import "sonner";
|
|
13
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../utils/z-index.js";
|
|
16
15
|
import "../buttons/tab-button/tab-button.js";
|
|
@@ -268,9 +267,9 @@ function B({
|
|
|
268
267
|
)
|
|
269
268
|
] });
|
|
270
269
|
}
|
|
271
|
-
function
|
|
270
|
+
function $r(o) {
|
|
272
271
|
return S(o) ? /* @__PURE__ */ t(B, { ...o }) : /* @__PURE__ */ t($, { ...o });
|
|
273
272
|
}
|
|
274
273
|
export {
|
|
275
|
-
|
|
274
|
+
$r as AssetsListCell
|
|
276
275
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as p, jsxs as E } from "react/jsx-runtime";
|
|
2
|
-
import { PERCENTAGE_FACTOR as
|
|
2
|
+
import { PERCENTAGE_FACTOR as m, PERCENTAGE_DECIMALS as N } from "@gearbox-protocol/sdk";
|
|
3
3
|
import * as P from "react";
|
|
4
4
|
import { TooltipProvider as R, Tooltip as _, TooltipTrigger as v, TooltipContent as x } from "../tooltip/tooltip.js";
|
|
5
5
|
import { cn as g } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const C = (e) => e.reduce((n, c) => n + c.balanceInUSD, 0n), D = {
|
|
@@ -26,25 +25,25 @@ function L(e) {
|
|
|
26
25
|
return s + o / i * d;
|
|
27
26
|
});
|
|
28
27
|
}
|
|
29
|
-
function
|
|
28
|
+
function $({
|
|
30
29
|
assets: e,
|
|
31
30
|
labels: n,
|
|
32
31
|
className: c
|
|
33
32
|
}) {
|
|
34
33
|
const [b, h] = P.useMemo(() => {
|
|
35
|
-
const l = e.slice(0, 3), r = C(e),
|
|
34
|
+
const l = e.slice(0, 3), r = C(e), u = C(e.slice(3)), A = l.map(
|
|
36
35
|
(I) => r > 0 ? Number(
|
|
37
|
-
I.balanceInUSD *
|
|
38
|
-
) / Number(
|
|
39
|
-
), a = r > 0n ? Number(
|
|
36
|
+
I.balanceInUSD * m * N / r
|
|
37
|
+
) / Number(m) : Number(m)
|
|
38
|
+
), a = r > 0n ? Number(u * m * N / r) / Number(m) : 0, f = [...A, a], T = L(f);
|
|
40
39
|
return [T.slice(0, 3), T[3] || 0];
|
|
41
|
-
}, [e]), d = h > 0, i = n?.slice(3), t = i && i.length > 0 ? i.join(", ") : void 0, o = (l, r,
|
|
40
|
+
}, [e]), d = h > 0, i = n?.slice(3), t = i && i.length > 0 ? i.join(", ") : void 0, o = (l, r, u, A, a) => {
|
|
42
41
|
const f = /* @__PURE__ */ p(
|
|
43
42
|
"span",
|
|
44
43
|
{
|
|
45
44
|
className: g(
|
|
46
45
|
"relative inline-flex h-full",
|
|
47
|
-
|
|
46
|
+
u,
|
|
48
47
|
A ? "border-r-2 border-muted" : ""
|
|
49
48
|
),
|
|
50
49
|
style: { width: `${l}%` }
|
|
@@ -64,11 +63,11 @@ function z({
|
|
|
64
63
|
),
|
|
65
64
|
children: [
|
|
66
65
|
b.map(
|
|
67
|
-
(l, r,
|
|
66
|
+
(l, r, u) => o(
|
|
68
67
|
l,
|
|
69
68
|
r,
|
|
70
69
|
D[r] || F,
|
|
71
|
-
d || r !==
|
|
70
|
+
d || r !== u.length - 1,
|
|
72
71
|
n?.[r]
|
|
73
72
|
)
|
|
74
73
|
),
|
|
@@ -78,5 +77,5 @@ function z({
|
|
|
78
77
|
) });
|
|
79
78
|
}
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
$ as AssetsRatio
|
|
82
81
|
};
|
|
@@ -12,11 +12,10 @@ import "@gearbox-protocol/sdk";
|
|
|
12
12
|
import "clsx";
|
|
13
13
|
import "tailwind-merge";
|
|
14
14
|
import "sonner";
|
|
15
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
16
15
|
import "luxon";
|
|
17
16
|
import "../../utils/z-index.js";
|
|
18
17
|
import { TabButton as a } from "../buttons/tab-button/tab-button.js";
|
|
19
|
-
function
|
|
18
|
+
function R({
|
|
20
19
|
children: n,
|
|
21
20
|
owner: o,
|
|
22
21
|
hideConnectButton: m,
|
|
@@ -26,5 +25,5 @@ function T({
|
|
|
26
25
|
return u && r ? o && r?.toLowerCase() !== o.toLowerCase() ? /* @__PURE__ */ i(e, { ...t, disabled: !0, children: "You are not the author" }) : n : m ? null : /* @__PURE__ */ i(e, { ...t, onClick: () => p(!0), children: "Connect Wallet" });
|
|
27
26
|
}
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
R as ConnectRequired
|
|
30
29
|
};
|
|
@@ -13,23 +13,22 @@ import "clsx";
|
|
|
13
13
|
import "tailwind-merge";
|
|
14
14
|
import "sonner";
|
|
15
15
|
import { shortenHash as I } from "../../utils/format.js";
|
|
16
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
17
16
|
import "luxon";
|
|
18
17
|
import "../../utils/z-index.js";
|
|
19
18
|
import { TabButton as S } from "../buttons/tab-button/tab-button.js";
|
|
20
|
-
function
|
|
21
|
-
children:
|
|
22
|
-
owner:
|
|
19
|
+
function v({
|
|
20
|
+
children: m,
|
|
21
|
+
owner: n,
|
|
23
22
|
skipSignIn: a,
|
|
24
|
-
hideConnectButton:
|
|
23
|
+
hideConnectButton: s,
|
|
25
24
|
...t
|
|
26
25
|
}) {
|
|
27
|
-
const { setOpen:
|
|
28
|
-
return c || a ?
|
|
26
|
+
const { setOpen: o, openSIWE: p } = h(), { isConnected: u, address: d } = g(), { isRejected: l, isLoading: i, isSignedIn: c, data: f } = C(), r = Object.keys(t).length > 0 ? b : S;
|
|
27
|
+
return c || a ? n && f?.address?.toLowerCase() !== n.toLowerCase() ? /* @__PURE__ */ e(r, { ...t, disabled: !0, children: "You are not the author" }) : m : u && d ? l ? /* @__PURE__ */ e(
|
|
29
28
|
r,
|
|
30
29
|
{
|
|
31
30
|
...t,
|
|
32
|
-
onClick: () =>
|
|
31
|
+
onClick: () => o(!0),
|
|
33
32
|
disabled: i,
|
|
34
33
|
children: "Try Again"
|
|
35
34
|
}
|
|
@@ -37,12 +36,12 @@ function z({
|
|
|
37
36
|
r,
|
|
38
37
|
{
|
|
39
38
|
...t,
|
|
40
|
-
onClick: () =>
|
|
39
|
+
onClick: () => p(),
|
|
41
40
|
disabled: i,
|
|
42
|
-
children: i ? "Awaiting request..." : `Sign In as ${I(
|
|
41
|
+
children: i ? "Awaiting request..." : `Sign In as ${I(d)}`
|
|
43
42
|
}
|
|
44
|
-
) :
|
|
43
|
+
) : s ? null : /* @__PURE__ */ e(r, { ...t, onClick: () => o(!0), children: "Connect Wallet" });
|
|
45
44
|
}
|
|
46
45
|
export {
|
|
47
|
-
|
|
46
|
+
v as SignInRequired
|
|
48
47
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "@radix-ui/react-avatar";
|
|
3
|
-
import * as
|
|
3
|
+
import * as m from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as o } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
|
-
const
|
|
9
|
+
const s = m.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
11
10
|
a.Root,
|
|
12
11
|
{
|
|
13
12
|
ref: t,
|
|
@@ -18,8 +17,8 @@ const i = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ m(
|
|
|
18
17
|
...r
|
|
19
18
|
}
|
|
20
19
|
));
|
|
21
|
-
|
|
22
|
-
const
|
|
20
|
+
s.displayName = a.Root.displayName;
|
|
21
|
+
const i = m.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
23
22
|
a.Image,
|
|
24
23
|
{
|
|
25
24
|
ref: t,
|
|
@@ -27,8 +26,8 @@ const s = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ m(
|
|
|
27
26
|
...r
|
|
28
27
|
}
|
|
29
28
|
));
|
|
30
|
-
|
|
31
|
-
const f =
|
|
29
|
+
i.displayName = a.Image.displayName;
|
|
30
|
+
const f = m.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ l(
|
|
32
31
|
a.Fallback,
|
|
33
32
|
{
|
|
34
33
|
ref: t,
|
|
@@ -41,7 +40,7 @@ const f = l.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ m(
|
|
|
41
40
|
));
|
|
42
41
|
f.displayName = a.Fallback.displayName;
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
s as Avatar,
|
|
45
44
|
f as AvatarFallback,
|
|
46
|
-
|
|
45
|
+
i as AvatarImage
|
|
47
46
|
};
|
|
@@ -2,12 +2,11 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { cva as n } from "class-variance-authority";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
|
-
const
|
|
9
|
+
const i = n(
|
|
11
10
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-auto",
|
|
12
11
|
{
|
|
13
12
|
variants: {
|
|
@@ -23,10 +22,10 @@ const a = n(
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
);
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */ e("div", { className: i(
|
|
25
|
+
function b({ className: r, variant: t, ...o }) {
|
|
26
|
+
return /* @__PURE__ */ e("div", { className: a(i({ variant: t }), r), ...o });
|
|
28
27
|
}
|
|
29
28
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
b as Badge,
|
|
30
|
+
i as badgeVariants
|
|
32
31
|
};
|