@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
|
@@ -3,19 +3,18 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as u } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
|
-
function
|
|
8
|
+
function N({
|
|
10
9
|
value: l,
|
|
11
10
|
size: r = 40,
|
|
12
|
-
strokeWidth:
|
|
11
|
+
strokeWidth: t = 4,
|
|
13
12
|
indicatorColor: m = "hsl(var(--primary))",
|
|
14
13
|
trackColor: f = "hsl(var(--muted))",
|
|
15
14
|
className: h,
|
|
16
15
|
children: i
|
|
17
16
|
}) {
|
|
18
|
-
const o = Math.max(0, Math.min(100, l || 0)),
|
|
17
|
+
const o = Math.max(0, Math.min(100, l || 0)), e = r / 2, s = e - t / 2, c = 2 * Math.PI * s, p = (100 - o) * c / 100;
|
|
19
18
|
return /* @__PURE__ */ n(
|
|
20
19
|
"div",
|
|
21
20
|
{
|
|
@@ -38,23 +37,23 @@ function w({
|
|
|
38
37
|
/* @__PURE__ */ a(
|
|
39
38
|
"circle",
|
|
40
39
|
{
|
|
41
|
-
cx:
|
|
42
|
-
cy:
|
|
40
|
+
cx: e,
|
|
41
|
+
cy: e,
|
|
43
42
|
r: s,
|
|
44
43
|
fill: "transparent",
|
|
45
44
|
stroke: f,
|
|
46
|
-
strokeWidth:
|
|
45
|
+
strokeWidth: t
|
|
47
46
|
}
|
|
48
47
|
),
|
|
49
48
|
/* @__PURE__ */ a(
|
|
50
49
|
"circle",
|
|
51
50
|
{
|
|
52
|
-
cx:
|
|
53
|
-
cy:
|
|
51
|
+
cx: e,
|
|
52
|
+
cy: e,
|
|
54
53
|
r: s,
|
|
55
54
|
fill: "transparent",
|
|
56
55
|
stroke: m,
|
|
57
|
-
strokeWidth:
|
|
56
|
+
strokeWidth: t,
|
|
58
57
|
strokeDasharray: c,
|
|
59
58
|
strokeDashoffset: p,
|
|
60
59
|
strokeLinecap: "round",
|
|
@@ -70,5 +69,5 @@ function w({
|
|
|
70
69
|
);
|
|
71
70
|
}
|
|
72
71
|
export {
|
|
73
|
-
|
|
72
|
+
N as ProgressCircle
|
|
74
73
|
};
|
|
@@ -5,7 +5,6 @@ import * as c from "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as d } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
const g = s("w-full flex flex-col gap-4"), f = s(
|
|
@@ -4,7 +4,6 @@ import { useState as s, useRef as E, useEffect as j } from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as k } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import { getStatic as w } from "../../utils/static.js";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
@@ -3,7 +3,6 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as b } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
8
|
const v = {
|
|
@@ -20,7 +19,7 @@ const v = {
|
|
|
20
19
|
"space-around": "justify-around",
|
|
21
20
|
"space-evenly": "justify-evenly"
|
|
22
21
|
};
|
|
23
|
-
function
|
|
22
|
+
function N({
|
|
24
23
|
$align: n,
|
|
25
24
|
align: i,
|
|
26
25
|
$justify: r,
|
|
@@ -54,5 +53,5 @@ function R({
|
|
|
54
53
|
);
|
|
55
54
|
}
|
|
56
55
|
export {
|
|
57
|
-
|
|
56
|
+
N as Row
|
|
58
57
|
};
|
|
@@ -7,7 +7,6 @@ import { Input as V } from "../input/input.js";
|
|
|
7
7
|
import "@gearbox-protocol/sdk";
|
|
8
8
|
import { cn as i } 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
|
const z = l("relative w-full transition-all duration-200", {
|
|
@@ -60,7 +59,7 @@ const z = l("relative w-full transition-all duration-200", {
|
|
|
60
59
|
theme: "light"
|
|
61
60
|
}
|
|
62
61
|
});
|
|
63
|
-
function
|
|
62
|
+
function D({
|
|
64
63
|
onChange: c,
|
|
65
64
|
placeholder: m = "Search...",
|
|
66
65
|
className: u,
|
|
@@ -68,9 +67,9 @@ function E({
|
|
|
68
67
|
theme: d = "light",
|
|
69
68
|
value: t
|
|
70
69
|
}) {
|
|
71
|
-
const [
|
|
70
|
+
const [h, p] = n(""), [g, a] = n(!1), r = t !== void 0, o = r ? t : h, v = o !== "" || g, x = (N) => {
|
|
72
71
|
const s = N.target.value;
|
|
73
|
-
r ||
|
|
72
|
+
r || p(s), c(s);
|
|
74
73
|
};
|
|
75
74
|
return /* @__PURE__ */ e("div", { className: i(z({ size: f }), u), children: /* @__PURE__ */ y("div", { className: "relative", children: [
|
|
76
75
|
/* @__PURE__ */ e(
|
|
@@ -95,5 +94,5 @@ function E({
|
|
|
95
94
|
] }) });
|
|
96
95
|
}
|
|
97
96
|
export {
|
|
98
|
-
|
|
97
|
+
D as SearchBar
|
|
99
98
|
};
|
|
@@ -8,7 +8,6 @@ import { Input as V } from "../input/input.js";
|
|
|
8
8
|
import "@gearbox-protocol/sdk";
|
|
9
9
|
import { cn as f } 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 D = x("relative w-full transition-all duration-200", {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cva as u } from "class-variance-authority";
|
|
3
3
|
import * as g from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as m } 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 h = u(
|
|
@@ -27,9 +26,9 @@ const h = u(
|
|
|
27
26
|
},
|
|
28
27
|
defaultVariants: { size: "md" }
|
|
29
28
|
}), b = g.forwardRef(({ className: l, name: d, items: t, size: r = "md", ...n }, e) => {
|
|
30
|
-
const
|
|
29
|
+
const s = t.findIndex((a) => a.checked), i = s < 0 ? 0 : s, c = t.length;
|
|
31
30
|
return /* @__PURE__ */ p("div", { ref: e, className: m(h({ size: r }), l), ...n, children: [
|
|
32
|
-
t.map((a, f) => /* @__PURE__ */
|
|
31
|
+
t.map((a, f) => /* @__PURE__ */ o(
|
|
33
32
|
v,
|
|
34
33
|
{
|
|
35
34
|
...a,
|
|
@@ -37,7 +36,7 @@ const h = u(
|
|
|
37
36
|
},
|
|
38
37
|
typeof a.value == "string" ? a.value : f
|
|
39
38
|
)),
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ o(
|
|
41
40
|
"div",
|
|
42
41
|
{
|
|
43
42
|
className: m(
|
|
@@ -61,7 +60,7 @@ function v({
|
|
|
61
60
|
onSelect: n,
|
|
62
61
|
...e
|
|
63
62
|
}) {
|
|
64
|
-
const
|
|
63
|
+
const s = r ?? (n ? (i) => {
|
|
65
64
|
i.preventDefault(), n();
|
|
66
65
|
} : void 0);
|
|
67
66
|
return /* @__PURE__ */ p(
|
|
@@ -74,17 +73,17 @@ function v({
|
|
|
74
73
|
"data-checked": e.checked,
|
|
75
74
|
"data-disabled": e.disabled,
|
|
76
75
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ o(
|
|
78
77
|
"input",
|
|
79
78
|
{
|
|
80
79
|
type: "radio",
|
|
81
80
|
name: l,
|
|
82
81
|
className: "absolute h-0 w-0 cursor-pointer opacity-0",
|
|
83
82
|
...e,
|
|
84
|
-
onChange:
|
|
83
|
+
onChange: s
|
|
85
84
|
}
|
|
86
85
|
),
|
|
87
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ o("span", { className: "flex h-full grow shrink-0 basis-0 items-center justify-center px-2 py-1", children: d ?? t })
|
|
88
87
|
]
|
|
89
88
|
}
|
|
90
89
|
);
|
|
@@ -7,12 +7,11 @@ import { FaIcon as i } from "../icons/fa-icon.js";
|
|
|
7
7
|
import "@gearbox-protocol/sdk";
|
|
8
8
|
import { cn as s } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
11
10
|
import "luxon";
|
|
12
11
|
import { Z_INDEX as h } from "../../utils/z-index.js";
|
|
13
12
|
const x = (a) => /* @__PURE__ */ t(e.Root, { ...a });
|
|
14
13
|
x.displayName = "Select";
|
|
15
|
-
const
|
|
14
|
+
const P = e.Group, G = e.Value, N = g(
|
|
16
15
|
"group flex w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 bg-[rgb(40,40,40)] text-foreground cursor-pointer",
|
|
17
16
|
{
|
|
18
17
|
variants: {
|
|
@@ -143,13 +142,13 @@ I.displayName = e.Separator.displayName;
|
|
|
143
142
|
export {
|
|
144
143
|
x as Select,
|
|
145
144
|
S as SelectContent,
|
|
146
|
-
|
|
145
|
+
P as SelectGroup,
|
|
147
146
|
R as SelectItem,
|
|
148
147
|
v as SelectLabel,
|
|
149
148
|
f as SelectScrollDownButton,
|
|
150
149
|
p as SelectScrollUpButton,
|
|
151
150
|
I as SelectSeparator,
|
|
152
151
|
w as SelectTrigger,
|
|
153
|
-
|
|
152
|
+
G as SelectValue,
|
|
154
153
|
N as selectTriggerVariants
|
|
155
154
|
};
|
|
@@ -4,14 +4,13 @@ import * as e 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";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const s = e.forwardRef(
|
|
11
|
-
({ className: t, orientation: r = "horizontal", decorative: m = !0, ...
|
|
10
|
+
({ className: t, orientation: r = "horizontal", decorative: m = !0, ...a }, p) => /* @__PURE__ */ i(
|
|
12
11
|
o.Root,
|
|
13
12
|
{
|
|
14
|
-
ref:
|
|
13
|
+
ref: p,
|
|
15
14
|
decorative: m,
|
|
16
15
|
orientation: r,
|
|
17
16
|
className: l(
|
|
@@ -19,7 +18,7 @@ const s = e.forwardRef(
|
|
|
19
18
|
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
20
19
|
t
|
|
21
20
|
),
|
|
22
|
-
...
|
|
21
|
+
...a
|
|
23
22
|
}
|
|
24
23
|
)
|
|
25
24
|
);
|
|
@@ -5,19 +5,18 @@ 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";
|
|
9
8
|
import { isLongString as u, shortenString as S } from "../../utils/shorten-string.js";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
|
-
function
|
|
11
|
+
function k({
|
|
13
12
|
children: o,
|
|
14
13
|
maxLength: t,
|
|
15
14
|
showTooltip: m = !0,
|
|
16
15
|
className: i
|
|
17
16
|
}) {
|
|
18
|
-
const n = (
|
|
17
|
+
const n = (e, p) => p === "text-overflow" ? /* @__PURE__ */ r("span", { className: s("inline-block max-w-full truncate", i), children: e }) : /* @__PURE__ */ r("span", { className: i, children: S(e, p) });
|
|
19
18
|
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;
|
|
20
19
|
}
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
k as ShortString
|
|
23
22
|
};
|
|
@@ -11,12 +11,11 @@ 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";
|
|
15
14
|
import "luxon";
|
|
16
15
|
import "../../utils/z-index.js";
|
|
17
16
|
import "../buttons/tab-button/tab-button.js";
|
|
18
17
|
import { Identicon as a } from "./identicon.js";
|
|
19
|
-
function
|
|
18
|
+
function I({
|
|
20
19
|
confirmation: r,
|
|
21
20
|
note: o,
|
|
22
21
|
explorerUrl: i
|
|
@@ -35,5 +34,5 @@ function z({
|
|
|
35
34
|
] });
|
|
36
35
|
}
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
I as ConfirmationItem
|
|
39
38
|
};
|
|
@@ -5,7 +5,6 @@ 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";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
const h = "flex-wrap text-left bg-transparent border-0 [&[data-state=open]>[data-accordion-icon]]:rotate-180";
|
|
@@ -13,7 +13,6 @@ 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";
|
|
17
16
|
import "luxon";
|
|
18
17
|
import "../../utils/z-index.js";
|
|
19
18
|
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,12 +4,11 @@ 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";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import { Z_INDEX as y } from "../../utils/z-index.js";
|
|
10
9
|
function E({
|
|
11
|
-
children:
|
|
12
|
-
title:
|
|
10
|
+
children: f,
|
|
11
|
+
title: p,
|
|
13
12
|
asChild: a = !1,
|
|
14
13
|
placement: m = "bottom",
|
|
15
14
|
align: u = "start",
|
|
@@ -60,7 +59,7 @@ function E({
|
|
|
60
59
|
"inline-flex appearance-none border-0 bg-transparent p-0 text-inherit font-inherit cursor-pointer",
|
|
61
60
|
v
|
|
62
61
|
),
|
|
63
|
-
children:
|
|
62
|
+
children: p
|
|
64
63
|
}
|
|
65
64
|
),
|
|
66
65
|
/* @__PURE__ */ r(t.Portal, { children: /* @__PURE__ */ r(
|
|
@@ -77,7 +76,7 @@ function E({
|
|
|
77
76
|
},
|
|
78
77
|
onPointerDownOutside: o ? x : void 0,
|
|
79
78
|
onEscapeKeyDown: o ? () => e?.(!1) : void 0,
|
|
80
|
-
children:
|
|
79
|
+
children: f
|
|
81
80
|
}
|
|
82
81
|
) })
|
|
83
82
|
]
|
|
@@ -3,16 +3,15 @@ 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";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
|
-
import { Skeleton as
|
|
10
|
-
const
|
|
8
|
+
import { Skeleton as n } from "./skeleton.js";
|
|
9
|
+
const i = {
|
|
11
10
|
sm: "space-y-2",
|
|
12
11
|
md: "space-y-3",
|
|
13
12
|
lg: "space-y-4"
|
|
14
13
|
};
|
|
15
|
-
function
|
|
14
|
+
function S({
|
|
16
15
|
lines: o = 5,
|
|
17
16
|
className: t,
|
|
18
17
|
gap: e = "md"
|
|
@@ -21,8 +20,8 @@ function w({
|
|
|
21
20
|
() => Array.from({ length: o }, () => crypto.randomUUID()),
|
|
22
21
|
[o]
|
|
23
22
|
);
|
|
24
|
-
return /* @__PURE__ */ m("div", { className: r(
|
|
25
|
-
|
|
23
|
+
return /* @__PURE__ */ m("div", { className: r(i[e], t), children: p.map((s, a) => /* @__PURE__ */ m(
|
|
24
|
+
n,
|
|
26
25
|
{
|
|
27
26
|
className: r("h-4 w-full", a === o - 1 && "w-3/4")
|
|
28
27
|
},
|
|
@@ -30,5 +29,5 @@ function w({
|
|
|
30
29
|
)) });
|
|
31
30
|
}
|
|
32
31
|
export {
|
|
33
|
-
|
|
32
|
+
S as SkeletonStack
|
|
34
33
|
};
|
|
@@ -4,7 +4,6 @@ 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";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const c = f("animate-pulse rounded-md bg-muted", {
|
|
@@ -51,7 +50,7 @@ const c = f("animate-pulse rounded-md bg-muted", {
|
|
|
51
50
|
height: "md"
|
|
52
51
|
}
|
|
53
52
|
});
|
|
54
|
-
function
|
|
53
|
+
function $({
|
|
55
54
|
className: s,
|
|
56
55
|
variant: l,
|
|
57
56
|
speed: n,
|
|
@@ -87,6 +86,6 @@ function j({
|
|
|
87
86
|
);
|
|
88
87
|
}
|
|
89
88
|
export {
|
|
90
|
-
|
|
89
|
+
$ as Skeleton,
|
|
91
90
|
c as skeletonVariants
|
|
92
91
|
};
|
|
@@ -5,7 +5,6 @@ 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";
|
|
9
8
|
import { findClosestPoint as X, validateMinMax as Y } from "../../utils/math.js";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
@@ -6,14 +6,13 @@ 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";
|
|
10
9
|
import { validateMinMax as w } from "../../utils/math.js";
|
|
11
10
|
import "luxon";
|
|
12
11
|
import "../../utils/z-index.js";
|
|
13
12
|
import { SliderTokenLabel as X } from "./slider-token-label.js";
|
|
14
13
|
import { makeSliderTokenMarkerPoints as Y, mergeCloseMarkers as Z } from "./slider-token-utils.js";
|
|
15
14
|
const V = 7.5;
|
|
16
|
-
function
|
|
15
|
+
function ue({
|
|
17
16
|
from: p,
|
|
18
17
|
to: g,
|
|
19
18
|
step: I,
|
|
@@ -46,21 +45,21 @@ function pe({
|
|
|
46
45
|
f
|
|
47
46
|
),
|
|
48
47
|
[t, n, N, f]
|
|
49
|
-
),
|
|
48
|
+
), s = l(
|
|
50
49
|
() => Z(y, T),
|
|
51
50
|
[y, T]
|
|
52
51
|
), C = u(
|
|
53
52
|
(e) => {
|
|
54
|
-
if (
|
|
53
|
+
if (s.length === 0) {
|
|
55
54
|
m(w(e, t, n));
|
|
56
55
|
return;
|
|
57
56
|
}
|
|
58
|
-
const o =
|
|
59
|
-
(a,
|
|
57
|
+
const o = s.reduce(
|
|
58
|
+
(a, i) => Math.abs(i.point - e) < Math.abs(a.point - e) ? i : a
|
|
60
59
|
);
|
|
61
60
|
Math.abs(o.point - e) < M ? m(w(o.point, t, n)) : m(e);
|
|
62
61
|
},
|
|
63
|
-
[
|
|
62
|
+
[s, M, t, n, m]
|
|
64
63
|
), P = u(
|
|
65
64
|
(e) => {
|
|
66
65
|
e.length > 0 && C(e[0]);
|
|
@@ -80,11 +79,11 @@ function pe({
|
|
|
80
79
|
document.removeEventListener("pointermove", o), delete e.dataset.dragging;
|
|
81
80
|
};
|
|
82
81
|
document.addEventListener("pointermove", o, { once: !0 }), document.addEventListener("pointerup", a, { once: !0 });
|
|
83
|
-
}, []), G = l(() =>
|
|
84
|
-
const
|
|
82
|
+
}, []), G = l(() => s.map(({ point: e }, o, a) => {
|
|
83
|
+
const i = a[o + 1], k = a[o - 1], O = i ? Math.abs(e - i.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;
|
|
85
84
|
return { point: e, labelText: j, align: _ ? "top" : "bottom", hasLabel: !!j };
|
|
86
85
|
}), [
|
|
87
|
-
|
|
86
|
+
s,
|
|
88
87
|
f,
|
|
89
88
|
S,
|
|
90
89
|
b,
|
|
@@ -114,7 +113,7 @@ function pe({
|
|
|
114
113
|
onValueCommit: P,
|
|
115
114
|
children: [
|
|
116
115
|
/* @__PURE__ */ r(v.Track, { className: "relative h-1 w-full grow overflow-hidden rounded-full bg-gray-40 mx-[9px] cursor-pointer" }),
|
|
117
|
-
|
|
116
|
+
s.length > 0 && /* @__PURE__ */ r("div", { className: "absolute inset-0 pointer-events-none flex items-center", children: /* @__PURE__ */ r("div", { className: "relative w-full", children: s.map(({ point: e }) => /* @__PURE__ */ r(
|
|
118
117
|
Q,
|
|
119
118
|
{
|
|
120
119
|
value: e,
|
|
@@ -141,7 +140,7 @@ function pe({
|
|
|
141
140
|
}
|
|
142
141
|
),
|
|
143
142
|
/* @__PURE__ */ r("div", { className: "absolute inset-0 pointer-events-none", children: /* @__PURE__ */ r("div", { className: "relative w-full h-full", children: G.map(
|
|
144
|
-
({ point: e, labelText: o, align: a, hasLabel:
|
|
143
|
+
({ point: e, labelText: o, align: a, hasLabel: i }) => i && /* @__PURE__ */ r(
|
|
145
144
|
X,
|
|
146
145
|
{
|
|
147
146
|
point: e,
|
|
@@ -159,5 +158,5 @@ function pe({
|
|
|
159
158
|
) }) }) });
|
|
160
159
|
}
|
|
161
160
|
export {
|
|
162
|
-
|
|
161
|
+
ue as SliderToken
|
|
163
162
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, 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 a } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
const b = x("font-normal leading-[130%] text-foreground", {
|
|
@@ -18,35 +17,35 @@ const b = x("font-normal leading-[130%] text-foreground", {
|
|
|
18
17
|
},
|
|
19
18
|
defaultVariants: { size: "md" }
|
|
20
19
|
});
|
|
21
|
-
function
|
|
22
|
-
title:
|
|
20
|
+
function S({
|
|
21
|
+
title: m = "Balance",
|
|
23
22
|
className: i,
|
|
24
23
|
maxAmount: l,
|
|
25
24
|
token: c,
|
|
26
25
|
disabled: d,
|
|
27
26
|
maxButton: p = !0,
|
|
28
|
-
onMaxButtonClick:
|
|
27
|
+
onMaxButtonClick: r,
|
|
29
28
|
size: e = "sm"
|
|
30
29
|
}) {
|
|
31
30
|
const o = !d && p, n = /* @__PURE__ */ t(f, { value: l, token: c, showSymbol: !1 });
|
|
32
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ s(
|
|
33
32
|
"div",
|
|
34
33
|
{
|
|
35
|
-
className:
|
|
34
|
+
className: a("flex shrink-0 basis-auto items-center", i),
|
|
36
35
|
"data-testid": "balance-indicator",
|
|
37
36
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
37
|
+
/* @__PURE__ */ s("span", { className: a(b({ size: e })), children: [
|
|
38
|
+
m,
|
|
40
39
|
": ",
|
|
41
|
-
o && e === "sm" ? /* @__PURE__ */ t(u, { onClick:
|
|
40
|
+
o && e === "sm" ? /* @__PURE__ */ t(u, { onClick: r, children: n }) : n
|
|
42
41
|
] }),
|
|
43
42
|
o && e !== "sm" && /* @__PURE__ */ t("div", { className: "ml-2", children: /* @__PURE__ */ t(
|
|
44
43
|
"button",
|
|
45
44
|
{
|
|
46
45
|
type: "button",
|
|
47
|
-
onClick:
|
|
46
|
+
onClick: r,
|
|
48
47
|
"data-testid": "balance-max",
|
|
49
|
-
className:
|
|
48
|
+
className: a(
|
|
50
49
|
"rounded-[6px] border-0 py-[3px] px-1 text-[11px]! leading-[13px]!",
|
|
51
50
|
"text-center uppercase text-foreground",
|
|
52
51
|
"bg-gray-70 hover:bg-gray-90 transition-colors"
|
|
@@ -59,5 +58,5 @@ function V({
|
|
|
59
58
|
);
|
|
60
59
|
}
|
|
61
60
|
export {
|
|
62
|
-
|
|
61
|
+
S as BalanceIndicator
|
|
63
62
|
};
|
|
@@ -10,7 +10,6 @@ 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";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../utils/z-index.js";
|
|
16
15
|
import { BalanceIndicator as U } from "./balance-indicator.js";
|
|
@@ -4,7 +4,6 @@ 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";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import { Z_INDEX as d } from "../../utils/z-index.js";
|
|
10
9
|
const m = i.forwardRef(
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as d from "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as p } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
|
-
const s =
|
|
10
|
-
({ size: r = 40, speed: o = "1s", width: i = 4, className:
|
|
8
|
+
const s = d.forwardRef(
|
|
9
|
+
({ size: r = 40, speed: o = "1s", width: i = 4, className: e, style: t, ...a }, n) => /* @__PURE__ */ m(
|
|
11
10
|
"span",
|
|
12
11
|
{
|
|
13
12
|
ref: n,
|
|
14
|
-
className:
|
|
13
|
+
className: p(
|
|
15
14
|
"inline-block rounded-full border-solid border-gray-20 border-b-gray-110 animate-spin",
|
|
16
|
-
|
|
15
|
+
e
|
|
17
16
|
),
|
|
18
17
|
style: {
|
|
19
18
|
width: r,
|
|
20
19
|
height: r,
|
|
21
20
|
borderWidth: i,
|
|
22
21
|
animationDuration: o,
|
|
23
|
-
...
|
|
22
|
+
...t
|
|
24
23
|
},
|
|
25
24
|
...a
|
|
26
25
|
}
|