@gearbox-protocol/permissionless-ui 1.27.0 → 2.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/accordion/accordion.cjs +1 -1
- package/dist/cjs/components/address/address.cjs +1 -1
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
- package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/apy/apy.cjs +1 -1
- package/dist/cjs/components/arc-loader/arc-loader.cjs +1 -1
- package/dist/cjs/components/asset-line/asset-line.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/assets-ratio/assets-ratio.cjs +1 -1
- package/dist/cjs/components/auth/connect-required.cjs +1 -1
- package/dist/cjs/components/auth/signin-required.cjs +1 -1
- package/dist/cjs/components/avatar/avatar.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/button-checkbox/button-checkbox.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -1
- package/dist/cjs/components/card-grid/card-grid.cjs +1 -1
- package/dist/cjs/components/cards/card/card.cjs +1 -1
- package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/colored-text/colored-text.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
- package/dist/cjs/components/credit-session-status/credit-session-status.cjs +1 -1
- package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
- package/dist/cjs/components/description/description.cjs +1 -1
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-description.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-footer.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-form.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-header.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-overlay.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
- package/dist/cjs/components/dropdown-label/dropdown-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +1 -1
- package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
- package/dist/cjs/components/error-message/error-line-message.cjs +1 -1
- package/dist/cjs/components/error-message/error-message.cjs +1 -1
- package/dist/cjs/components/error-view/error-view.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/filter/filter-block.cjs +1 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/filter/filter-chips.cjs +1 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-group.cjs +1 -1
- package/dist/cjs/components/filter/filter-label.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal.cjs +1 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-separator.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
- package/dist/cjs/components/grid-td-cell/grid-td-cell.cjs +1 -1
- package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
- package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
- package/dist/cjs/components/help-sections/help-sections.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/horizontal-indicator/horizontal-indicator.cjs +1 -1
- package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
- package/dist/cjs/components/icons/fa-icon.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/label.cjs +1 -1
- package/dist/cjs/components/layout/block/block.cjs +1 -1
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-assets-table/liquidation-assets-table.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.cjs +1 -1
- package/dist/cjs/components/liquidation-price/liquidation-price.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar/navbar-with-overflow.cjs +1 -1
- package/dist/cjs/components/navbar/navbar.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/navitem/navitem.cjs +1 -1
- package/dist/cjs/components/not-found/not-found.cjs +1 -1
- package/dist/cjs/components/options-list/options-list.cjs +1 -1
- package/dist/cjs/components/overflow/overflow.cjs +1 -1
- package/dist/cjs/components/overflow-container/overflow-container.cjs +1 -1
- package/dist/cjs/components/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/percent-indicator/percent-indicator.cjs +1 -1
- package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
- package/dist/cjs/components/pool-indicator-icon/pool-indicator-icon.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/progress/progress.cjs +1 -1
- package/dist/cjs/components/progress-bar/progress-bar.cjs +1 -1
- package/dist/cjs/components/progress-circle/progress-circle.cjs +1 -1
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -1
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
- package/dist/cjs/components/row/row.cjs +1 -1
- package/dist/cjs/components/search-bar/search-bar.cjs +1 -1
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/separate-line/separate-line.cjs +1 -1
- package/dist/cjs/components/separator/separator.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/signatures/confirmation-item.cjs +1 -1
- package/dist/cjs/components/simple-accordion/simple-accordion.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton-stack.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton.cjs +1 -1
- package/dist/cjs/components/slider/slider.cjs +1 -1
- package/dist/cjs/components/slider-token/slider-token.cjs +1 -1
- package/dist/cjs/components/smart-number-input/balance-indicator.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/spinner-loader/spinner-loader.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/cjs/components/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/status-dot/status-dot.cjs +1 -1
- package/dist/cjs/components/status-elements/status-elements.cjs +1 -1
- package/dist/cjs/components/status-triangle/status-triangle.cjs +1 -1
- package/dist/cjs/components/stepper/stepper.cjs +1 -1
- package/dist/cjs/components/styled-dropdown/styled-dropdown.cjs +1 -1
- package/dist/cjs/components/switch/switch.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/edit-button.cjs +1 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
- package/dist/cjs/components/table/editable-table.cjs +1 -1
- package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/components/text-button/text-button.cjs +1 -1
- package/dist/cjs/components/textarea/textarea.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/toggle/toggle.cjs +1 -1
- package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
- package/dist/cjs/components/token-template/token-template.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/typography/typography.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/vertical-list/vertical-list.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/with-filter-button/with-filter-button.cjs +1 -1
- package/dist/cjs/components/with-title/with-title.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/hooks/use-hf.cjs +1 -1
- package/dist/cjs/hooks/use-liquidation/index.cjs +1 -1
- package/dist/cjs/types/common.cjs +1 -0
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +8 -7
- package/dist/esm/components/address/address.js +3 -2
- package/dist/esm/components/alert-badge/alert-badge.js +1 -0
- package/dist/esm/components/alert-dialog/alert-dialog.js +8 -7
- package/dist/esm/components/alert-modal/alert-modal.js +1 -0
- package/dist/esm/components/app-bar/app-bar.js +1 -0
- package/dist/esm/components/apy/apy.js +10 -9
- package/dist/esm/components/arc-loader/arc-loader.js +1 -0
- package/dist/esm/components/asset-line/asset-line.js +10 -9
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +3 -2
- package/dist/esm/components/assets-ratio/assets-ratio.js +12 -11
- package/dist/esm/components/auth/connect-required.js +3 -2
- package/dist/esm/components/auth/signin-required.js +12 -11
- package/dist/esm/components/avatar/avatar.js +10 -9
- package/dist/esm/components/badge/badge.js +7 -6
- package/dist/esm/components/base-link/base-link.js +8 -7
- package/dist/esm/components/block-sync/block-sync.js +3 -2
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +3 -2
- package/dist/esm/components/button-checkbox/button-checkbox.js +16 -13
- package/dist/esm/components/buttons/back-button/back-button.js +7 -6
- package/dist/esm/components/buttons/button/button.js +5 -4
- package/dist/esm/components/buttons/copy-button/copy-button.js +8 -7
- package/dist/esm/components/buttons/external-button/external-button.js +8 -7
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +4 -3
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +3 -2
- package/dist/esm/components/card-grid/card-grid.js +5 -4
- package/dist/esm/components/cards/card/card.js +1 -0
- package/dist/esm/components/cards/expandable-call/expandable-call.js +20 -19
- package/dist/esm/components/cards/expandable-card/expandable-card.js +12 -11
- package/dist/esm/components/carousel/carousel.js +15 -14
- package/dist/esm/components/checkbox/checkbox-labeled.js +1 -0
- package/dist/esm/components/checkbox/checkbox.js +1 -0
- package/dist/esm/components/checkbox-item/checkbox-item.js +10 -9
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +5 -4
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +1 -0
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +1 -0
- package/dist/esm/components/colored-text/colored-text.js +1 -0
- package/dist/esm/components/complex-input/complex-input.js +3 -2
- package/dist/esm/components/compound-apy/compound-apy.js +3 -2
- package/dist/esm/components/confirm-menu/confirm-menu.js +4 -3
- package/dist/esm/components/credit-session-status/credit-session-status.js +3 -2
- package/dist/esm/components/currency-button/currency-button.js +10 -9
- package/dist/esm/components/description/description.js +1 -0
- package/dist/esm/components/detailed-apy/detailed-apy.js +9 -8
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +1 -0
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +1 -0
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +1 -0
- package/dist/esm/components/dialog/dialog-container.js +7 -6
- package/dist/esm/components/dialog/dialog-content.js +1 -0
- package/dist/esm/components/dialog/dialog-description.js +5 -4
- package/dist/esm/components/dialog/dialog-footer.js +1 -0
- package/dist/esm/components/dialog/dialog-form.js +12 -11
- package/dist/esm/components/dialog/dialog-header.js +5 -4
- package/dist/esm/components/dialog/dialog-modal-container.js +1 -0
- package/dist/esm/components/dialog/dialog-overlay.js +4 -3
- package/dist/esm/components/dialog/dialog-title.js +1 -0
- package/dist/esm/components/dropdown-label/dropdown-label.js +7 -6
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +5 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +8 -7
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +8 -7
- package/dist/esm/components/edit-input/edit-input.js +7 -6
- package/dist/esm/components/error-message/error-line-message.js +6 -5
- package/dist/esm/components/error-message/error-message.js +3 -2
- package/dist/esm/components/error-view/error-view.js +3 -2
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +3 -2
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +1 -0
- package/dist/esm/components/filter/filter-block.js +1 -0
- package/dist/esm/components/filter/filter-checkbox-item.js +4 -3
- package/dist/esm/components/filter/filter-chip.js +9 -8
- package/dist/esm/components/filter/filter-chips.js +6 -5
- package/dist/esm/components/filter/filter-dropdown-item.js +12 -11
- package/dist/esm/components/filter/filter-group.js +1 -0
- package/dist/esm/components/filter/filter-label.js +1 -0
- package/dist/esm/components/filter/filter-modal-item.js +5 -4
- package/dist/esm/components/filter/filter-modal.js +3 -2
- package/dist/esm/components/filter/filter-radio-item.js +5 -4
- package/dist/esm/components/filter/filter-separator.js +4 -3
- package/dist/esm/components/formatted-number/formatted-number.js +3 -2
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +3 -2
- package/dist/esm/components/head-cell/head-cell.js +13 -12
- package/dist/esm/components/health-factor/health-factor.js +7 -6
- package/dist/esm/components/help-sections/help-sections.js +8 -7
- package/dist/esm/components/help-tip/help-tip.js +5 -4
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +3 -2
- package/dist/esm/components/icon-button/icon-button.js +7 -6
- package/dist/esm/components/icons/fa-icon.js +3 -2
- package/dist/esm/components/input/input.js +3 -2
- package/dist/esm/components/label/label.js +1 -0
- package/dist/esm/components/layout/block/block.js +3 -2
- package/dist/esm/components/link/link.js +14 -13
- package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js +6 -5
- package/dist/esm/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.js +18 -17
- package/dist/esm/components/liquidation-price/liquidation-price.js +3 -2
- package/dist/esm/components/loader/loader.js +1 -0
- package/dist/esm/components/loader-guard/loader-guard.js +3 -2
- package/dist/esm/components/loading-bar/loading-bar.js +1 -0
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +3 -2
- package/dist/esm/components/modal/modal.js +8 -7
- package/dist/esm/components/navbar/navbar-with-overflow.js +3 -2
- package/dist/esm/components/navbar/navbar.js +22 -21
- package/dist/esm/components/navbar-logo/navbar-logo.js +3 -2
- package/dist/esm/components/navitem/navitem.js +1 -0
- package/dist/esm/components/not-found/not-found.js +3 -2
- package/dist/esm/components/options-list/options-list.js +5 -4
- package/dist/esm/components/overflow/overflow.js +9 -8
- package/dist/esm/components/overflow-container/overflow-container.js +3 -2
- package/dist/esm/components/page-title/page-title.js +6 -5
- package/dist/esm/components/percent-indicator/percent-indicator.js +3 -2
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +3 -2
- package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +6 -5
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +3 -2
- package/dist/esm/components/progress/progress.js +6 -5
- package/dist/esm/components/progress-bar/progress-bar.js +17 -16
- package/dist/esm/components/progress-circle/progress-circle.js +11 -10
- package/dist/esm/components/radio-group/radio-group.js +1 -0
- package/dist/esm/components/rounded-image/rounded-image.js +1 -0
- package/dist/esm/components/row/row.js +3 -2
- package/dist/esm/components/search-bar/search-bar.js +5 -4
- package/dist/esm/components/search-line/search-line.js +1 -0
- package/dist/esm/components/segmented-control/segmented-control.js +9 -8
- package/dist/esm/components/select/select.js +4 -3
- package/dist/esm/components/separate-line/separate-line.js +1 -0
- package/dist/esm/components/separator/separator.js +4 -3
- package/dist/esm/components/short-string/short-string.js +4 -3
- package/dist/esm/components/signatures/confirmation-item.js +3 -2
- package/dist/esm/components/simple-accordion/simple-accordion.js +1 -0
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +1 -0
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +5 -4
- package/dist/esm/components/skeleton/skeleton-stack.js +7 -6
- package/dist/esm/components/skeleton/skeleton.js +3 -2
- package/dist/esm/components/slider/slider.js +1 -0
- package/dist/esm/components/slider-token/slider-token.js +13 -12
- package/dist/esm/components/smart-number-input/balance-indicator.js +14 -13
- package/dist/esm/components/smart-number-input/smart-number-input.js +1 -0
- package/dist/esm/components/spinner/spinner.js +1 -0
- package/dist/esm/components/spinner-loader/spinner-loader.js +8 -7
- package/dist/esm/components/split-list/split-list.js +5 -4
- package/dist/esm/components/stat-badge/stat-badge.js +10 -9
- package/dist/esm/components/status-dot/status-dot.js +4 -3
- package/dist/esm/components/status-elements/status-elements.js +7 -6
- package/dist/esm/components/status-triangle/status-triangle.js +6 -5
- package/dist/esm/components/stepper/stepper.js +21 -20
- package/dist/esm/components/styled-dropdown/styled-dropdown.js +3 -2
- package/dist/esm/components/switch/switch.js +8 -7
- package/dist/esm/components/tab-control/tab-control.js +37 -36
- package/dist/esm/components/table/edit-button.js +3 -2
- package/dist/esm/components/table/editable-grid-table.js +36 -35
- package/dist/esm/components/table/editable-table.js +17 -16
- package/dist/esm/components/table/grid-loading-line.js +14 -13
- package/dist/esm/components/table/table-sm.js +21 -20
- package/dist/esm/components/table/table.js +1 -0
- package/dist/esm/components/tabs/tabs.js +7 -6
- package/dist/esm/components/text-button/text-button.js +10 -9
- package/dist/esm/components/textarea/textarea.js +1 -0
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +1 -0
- package/dist/esm/components/tip-card/tip-card.js +5 -4
- package/dist/esm/components/toggle/toggle.js +1 -0
- package/dist/esm/components/token-symbol/token-symbol.js +5 -4
- package/dist/esm/components/token-template/token-template.js +6 -5
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +3 -2
- package/dist/esm/components/tooltip/simple-tooltip.js +1 -0
- package/dist/esm/components/tooltip/tooltip.js +7 -6
- package/dist/esm/components/trading-view/trading-view.js +3 -2
- package/dist/esm/components/typography/typography.js +5 -4
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +1 -0
- package/dist/esm/components/vertical-list/vertical-list.js +9 -8
- package/dist/esm/components/with-copy/with-copy.js +3 -2
- package/dist/esm/components/with-filter-button/with-filter-button.js +1 -0
- package/dist/esm/components/with-title/with-title.js +8 -7
- package/dist/esm/hooks/use-debounce-call.js +6 -5
- package/dist/esm/hooks/use-hf.js +22 -22
- package/dist/esm/hooks/use-liquidation/index.js +66 -65
- package/dist/esm/types/common.js +1 -0
- package/dist/esm/utils/format-money.js +18 -17
- package/dist/esm/utils/templates.js +21 -20
- package/dist/types/components/asset-line/asset-line.d.ts +4 -3
- package/dist/types/components/compound-apy/compound-apy.d.ts +3 -4
- package/dist/types/components/credit-session-status/credit-session-status.d.ts +1 -1
- package/dist/types/components/currency-button/currency-button.d.ts +2 -2
- package/dist/types/components/detailed-apy/detailed-apy.d.ts +5 -5
- package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +2 -2
- package/dist/types/components/liquidation/liquidation-assets-table/liquidation-assets-table.d.ts +2 -2
- package/dist/types/components/liquidation/liquidation-graph/liquidation-graph.d.ts +5 -4
- package/dist/types/components/liquidation/liquidation-graph-tip/liquidation-graph-tip.d.ts +2 -2
- package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +3 -3
- package/dist/types/components/slider-token/slider-token.d.ts +2 -2
- package/dist/types/components/smart-number-input/balance-indicator.d.ts +2 -2
- package/dist/types/components/smart-number-input/smart-number-input.d.ts +2 -10
- package/dist/types/components/token-symbol/token-symbol.d.ts +2 -6
- package/dist/types/components/token-template/token-template.d.ts +2 -2
- package/dist/types/components/tokens-list-cell/tokens-list-cell.d.ts +2 -2
- package/dist/types/hooks/use-hf.d.ts +4 -3
- package/dist/types/hooks/use-liquidation/index.d.ts +9 -8
- package/dist/types/hooks/use-liquidation/types.d.ts +2 -2
- package/dist/types/hooks/use-liquidation/utils.d.ts +11 -10
- package/dist/types/types/common.d.ts +23 -0
- package/dist/types/utils/interface.d.ts +0 -9
- package/dist/types/utils/search-in-token.d.ts +4 -4
- package/dist/types/utils/templates.d.ts +8 -8
- package/package.json +7 -7
|
@@ -7,6 +7,7 @@ import "@gearbox-protocol/sdk";
|
|
|
7
7
|
import { parseInputToBN as j } from "../../utils/parse-input-to-bn.js";
|
|
8
8
|
import { cn as L } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
10
11
|
import "luxon";
|
|
11
12
|
import "../../utils/z-index.js";
|
|
12
13
|
import "../accordion/accordion.js";
|
|
@@ -160,7 +161,7 @@ import "../tip-card/tip-card.js";
|
|
|
160
161
|
import "../toggle/toggle.js";
|
|
161
162
|
import "../typography/typography.js";
|
|
162
163
|
import "../with-filter-button/with-filter-button.js";
|
|
163
|
-
function
|
|
164
|
+
function Ai({
|
|
164
165
|
titleProps: s,
|
|
165
166
|
inputProps: a,
|
|
166
167
|
balanceIndicatorProps: c
|
|
@@ -223,5 +224,5 @@ function yi({
|
|
|
223
224
|
);
|
|
224
225
|
}
|
|
225
226
|
export {
|
|
226
|
-
|
|
227
|
+
Ai as ComplexInput
|
|
227
228
|
};
|
|
@@ -13,6 +13,7 @@ import "@gearbox-protocol/sdk";
|
|
|
13
13
|
import "clsx";
|
|
14
14
|
import "tailwind-merge";
|
|
15
15
|
import "sonner";
|
|
16
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
16
17
|
import "luxon";
|
|
17
18
|
import "../../utils/z-index.js";
|
|
18
19
|
import "../alert-badge/alert-badge.js";
|
|
@@ -165,7 +166,7 @@ function C(i, p) {
|
|
|
165
166
|
const e = i?.symbol || p;
|
|
166
167
|
return e === "GEAR" ? { icon: j("/logo/logo_symbol.png") } : L(i) || e;
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
+
function Wr({
|
|
169
170
|
totalAPY: i,
|
|
170
171
|
totalAPYLoading: p,
|
|
171
172
|
baseAPY: e,
|
|
@@ -267,6 +268,6 @@ function Or({
|
|
|
267
268
|
) : b();
|
|
268
269
|
}
|
|
269
270
|
export {
|
|
270
|
-
|
|
271
|
+
Wr as CompoundAPY,
|
|
271
272
|
C as getRewardTokenSymbol
|
|
272
273
|
};
|
|
@@ -6,16 +6,17 @@ import { FaIcon as c } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as i } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
const f = a.forwardRef(
|
|
12
|
-
({ title: o, onClose: e, className:
|
|
13
|
+
({ title: o, onClose: e, className: m }, n) => /* @__PURE__ */ l(
|
|
13
14
|
"div",
|
|
14
15
|
{
|
|
15
|
-
ref:
|
|
16
|
+
ref: n,
|
|
16
17
|
className: i(
|
|
17
18
|
"flex flex-nowrap items-center w-full max-w-full shrink-0 basis-full",
|
|
18
|
-
|
|
19
|
+
m
|
|
19
20
|
),
|
|
20
21
|
children: [
|
|
21
22
|
/* @__PURE__ */ r("div", { className: "flex min-w-0 grow shrink-0 basis-[0%] flex-nowrap", children: /* @__PURE__ */ r(
|
|
@@ -3,6 +3,7 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as r } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
9
|
const o = {
|
|
@@ -13,7 +14,7 @@ const o = {
|
|
|
13
14
|
liquidateExpired: "bg-red-500",
|
|
14
15
|
liquidatePaused: "bg-red-500"
|
|
15
16
|
};
|
|
16
|
-
function
|
|
17
|
+
function l({
|
|
17
18
|
status: e,
|
|
18
19
|
className: i
|
|
19
20
|
}) {
|
|
@@ -34,5 +35,5 @@ function c({
|
|
|
34
35
|
);
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
l as CreditSessionStatus
|
|
38
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as b, jsx as
|
|
1
|
+
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { IconExpand as g } from "@gearbox-protocol/static";
|
|
3
3
|
import { cva as u } from "class-variance-authority";
|
|
4
4
|
import { TokenSymbol as k } from "../token-symbol/token-symbol.js";
|
|
@@ -6,6 +6,7 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as x } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
const w = 13, N = u(
|
|
@@ -39,12 +40,12 @@ const w = 13, N = u(
|
|
|
39
40
|
defaultVariants: { size: "md", active: !1 }
|
|
40
41
|
}
|
|
41
42
|
);
|
|
42
|
-
function
|
|
43
|
+
function G({
|
|
43
44
|
title: o,
|
|
44
45
|
maxLength: l = w,
|
|
45
46
|
token: m,
|
|
46
47
|
disabled: d,
|
|
47
|
-
showSelectDialog:
|
|
48
|
+
showSelectDialog: r,
|
|
48
49
|
size: n,
|
|
49
50
|
active: f = !1,
|
|
50
51
|
chainId: v,
|
|
@@ -52,7 +53,7 @@ function h({
|
|
|
52
53
|
className: z,
|
|
53
54
|
children: c
|
|
54
55
|
}) {
|
|
55
|
-
const s = !d &&
|
|
56
|
+
const s = !d && r ? r : void 0, t = !!(r && !d), a = n === "xs" ? "sm" : n ?? "md", p = V[a];
|
|
56
57
|
return (
|
|
57
58
|
// biome-ignore lint/a11y/noStaticElementInteractions: A uses div (CurrencyBlock); role + keyboard for a11y
|
|
58
59
|
/* @__PURE__ */ b(
|
|
@@ -74,7 +75,7 @@ function h({
|
|
|
74
75
|
z
|
|
75
76
|
),
|
|
76
77
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ e(
|
|
78
79
|
k,
|
|
79
80
|
{
|
|
80
81
|
title: o,
|
|
@@ -87,15 +88,15 @@ function h({
|
|
|
87
88
|
network: y
|
|
88
89
|
}
|
|
89
90
|
),
|
|
90
|
-
!m && (c ?? o) ? /* @__PURE__ */
|
|
91
|
-
|
|
91
|
+
!m && (c ?? o) ? /* @__PURE__ */ e("span", { className: "text-muted-foreground truncate", children: c ?? o }) : null,
|
|
92
|
+
r && /* @__PURE__ */ e(
|
|
92
93
|
"span",
|
|
93
94
|
{
|
|
94
95
|
className: x(
|
|
95
96
|
"expand-wrap",
|
|
96
97
|
B({ size: a, active: f })
|
|
97
98
|
),
|
|
98
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ e(g, { size: p.arrow })
|
|
99
100
|
}
|
|
100
101
|
)
|
|
101
102
|
]
|
|
@@ -104,5 +105,5 @@ function h({
|
|
|
104
105
|
);
|
|
105
106
|
}
|
|
106
107
|
export {
|
|
107
|
-
|
|
108
|
+
G as CurrencyButton
|
|
108
109
|
};
|
|
@@ -3,6 +3,7 @@ import * as m from "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as a } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
9
|
import { Typography as c } from "../typography/typography.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as y, useMemo as
|
|
2
|
+
import { forwardRef as y, useMemo as i } from "react";
|
|
3
3
|
import { RoundedImage as u } from "../rounded-image/rounded-image.js";
|
|
4
4
|
import { Skeleton as g } from "../skeleton/skeleton.js";
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "tailwind-merge";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import { percentTemplate as
|
|
9
|
+
import { percentTemplate as l } from "../../utils/format-money.js";
|
|
10
10
|
import { getStatic as c } from "../../utils/static.js";
|
|
11
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
11
12
|
import "luxon";
|
|
12
13
|
import "../../utils/z-index.js";
|
|
13
14
|
function h({
|
|
@@ -30,7 +31,7 @@ function h({
|
|
|
30
31
|
);
|
|
31
32
|
}
|
|
32
33
|
const d = y(({ poolAPY: t, extraAPY: n, tokensList: a }, o) => /* @__PURE__ */ r("div", { ref: o, className: "inline-block", children: n.length > 0 && /* @__PURE__ */ r("span", { className: "text-xs", children: /* @__PURE__ */ m("span", { className: "flex items-start text-secondary-foreground font-normal", children: [
|
|
33
|
-
|
|
34
|
+
l(t),
|
|
34
35
|
" +",
|
|
35
36
|
/* @__PURE__ */ r("span", { className: "flex flex-col items-end flex-wrap", children: n.map((e) => {
|
|
36
37
|
const s = e.apy || 0;
|
|
@@ -39,7 +40,7 @@ const d = y(({ poolAPY: t, extraAPY: n, tokensList: a }, o) => /* @__PURE__ */ r
|
|
|
39
40
|
{
|
|
40
41
|
children: [
|
|
41
42
|
/* @__PURE__ */ r(h, { reward: e, tokensList: a }),
|
|
42
|
-
|
|
43
|
+
l(s)
|
|
43
44
|
]
|
|
44
45
|
},
|
|
45
46
|
`${e.token}-${e.rewardToken}-${e.apy}-${e.endTimestamp}`
|
|
@@ -47,17 +48,17 @@ const d = y(({ poolAPY: t, extraAPY: n, tokensList: a }, o) => /* @__PURE__ */ r
|
|
|
47
48
|
}) })
|
|
48
49
|
] }) }) }));
|
|
49
50
|
d.displayName = "ApyParts";
|
|
50
|
-
function
|
|
51
|
+
function v({
|
|
51
52
|
totalAPY: t,
|
|
52
53
|
totalAPYLoading: n,
|
|
53
54
|
baseAPY: a,
|
|
54
55
|
extraAPY: o,
|
|
55
56
|
tokensList: e
|
|
56
57
|
}) {
|
|
57
|
-
const s =
|
|
58
|
+
const s = i(
|
|
58
59
|
() => a.reduce((p, x) => p + x.apy, 0),
|
|
59
60
|
[a]
|
|
60
|
-
), f =
|
|
61
|
+
), f = i(() => o.filter((p) => (p.apy || 0) > 0), [o]);
|
|
61
62
|
return /* @__PURE__ */ r(g, { width: 80, loading: n, children: t >= 1e-3 && /* @__PURE__ */ r(
|
|
62
63
|
d,
|
|
63
64
|
{
|
|
@@ -68,6 +69,6 @@ function j({
|
|
|
68
69
|
) });
|
|
69
70
|
}
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
v as DetailedApy,
|
|
72
73
|
h as PoolRewardsIcon
|
|
73
74
|
};
|
|
@@ -11,6 +11,7 @@ import { useIsMobile as h } from "../../hooks/use-media-query.js";
|
|
|
11
11
|
import "@gearbox-protocol/sdk";
|
|
12
12
|
import { cn as s } from "../../utils/cn.js";
|
|
13
13
|
import "sonner";
|
|
14
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
14
15
|
import "luxon";
|
|
15
16
|
import "../../utils/z-index.js";
|
|
16
17
|
const I = r.forwardRef(function({ toCopy: t, className: n }, c) {
|
|
@@ -9,6 +9,7 @@ import { useIsMobile as u } from "../../hooks/use-media-query.js";
|
|
|
9
9
|
import "@gearbox-protocol/sdk";
|
|
10
10
|
import { cn as h } from "../../utils/cn.js";
|
|
11
11
|
import "sonner";
|
|
12
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
12
13
|
import "luxon";
|
|
13
14
|
import "../../utils/z-index.js";
|
|
14
15
|
const x = a.forwardRef(function({ explorerLinks: o, className: i, title: l }, n) {
|
|
@@ -5,6 +5,7 @@ import { TokenIcon as D } from "../token-icon/token-icon.js";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as m } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
8
9
|
import "luxon";
|
|
9
10
|
import "../../utils/z-index.js";
|
|
10
11
|
import "../accordion/accordion.js";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cva as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cva as n } from "class-variance-authority";
|
|
3
|
+
import * as s from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as p } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
const x =
|
|
10
|
+
const x = n("", {
|
|
10
11
|
variants: {
|
|
11
12
|
padding: {
|
|
12
13
|
md: "p-5",
|
|
@@ -38,7 +39,7 @@ const x = s("", {
|
|
|
38
39
|
colorTheme: "default",
|
|
39
40
|
maxWidth: "full"
|
|
40
41
|
}
|
|
41
|
-
}), f =
|
|
42
|
+
}), f = s.forwardRef(
|
|
42
43
|
({
|
|
43
44
|
maxWidth: r = "full",
|
|
44
45
|
padding: a = !0,
|
|
@@ -47,7 +48,7 @@ const x = s("", {
|
|
|
47
48
|
className: d,
|
|
48
49
|
children: t,
|
|
49
50
|
...l
|
|
50
|
-
}, m) => /* @__PURE__ */
|
|
51
|
+
}, m) => /* @__PURE__ */ i(
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
53
54
|
ref: m,
|
|
@@ -6,6 +6,7 @@ import { FaIcon as l } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as m } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import { Z_INDEX as p } from "../../utils/z-index.js";
|
|
11
12
|
import { DialogPortal as c } from "./dialog.js";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-dialog";
|
|
3
|
-
import * as
|
|
3
|
+
import * as p from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as e } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
const a =
|
|
10
|
+
const a = p.forwardRef(({ className: i, ...r }, t) => /* @__PURE__ */ m(
|
|
10
11
|
o.Description,
|
|
11
12
|
{
|
|
12
13
|
ref: t,
|
|
13
|
-
className:
|
|
14
|
+
className: e("text-sm text-muted-foreground", i),
|
|
14
15
|
...r
|
|
15
16
|
}
|
|
16
17
|
));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { Button as
|
|
2
|
+
import { Button as n } from "../buttons/button/button.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as b } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
import { Dialog as g } from "./dialog.js";
|
|
@@ -11,11 +12,11 @@ import { DialogContent as v } from "./dialog-content.js";
|
|
|
11
12
|
import { DialogFooter as D } from "./dialog-footer.js";
|
|
12
13
|
import { DialogHeader as w } from "./dialog-header.js";
|
|
13
14
|
import { DialogTitle as N } from "./dialog-title.js";
|
|
14
|
-
function
|
|
15
|
+
function J({
|
|
15
16
|
title: c,
|
|
16
|
-
isFormValid:
|
|
17
|
+
isFormValid: p,
|
|
17
18
|
isLoading: l,
|
|
18
|
-
saveButtonText:
|
|
19
|
+
saveButtonText: s = "Save changes",
|
|
19
20
|
loadingText: f = "Saving...",
|
|
20
21
|
onCancel: t,
|
|
21
22
|
onSubmit: d,
|
|
@@ -28,15 +29,15 @@ function I({
|
|
|
28
29
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
30
|
aiHelpDisabled: H
|
|
30
31
|
}) {
|
|
31
|
-
const x = (
|
|
32
|
-
|
|
32
|
+
const x = (m) => {
|
|
33
|
+
m.preventDefault(), d(m);
|
|
33
34
|
}, a = /* @__PURE__ */ e(
|
|
34
|
-
|
|
35
|
+
n,
|
|
35
36
|
{
|
|
36
|
-
disabled: !
|
|
37
|
+
disabled: !p || l,
|
|
37
38
|
type: "submit",
|
|
38
39
|
variant: r,
|
|
39
|
-
children: l ? f :
|
|
40
|
+
children: l ? f : s
|
|
40
41
|
}
|
|
41
42
|
);
|
|
42
43
|
return /* @__PURE__ */ e(g, { open: !0, onOpenChange: t, children: /* @__PURE__ */ e(
|
|
@@ -53,7 +54,7 @@ function I({
|
|
|
53
54
|
/* @__PURE__ */ e(D, { className: "w-full mt-8", children: /* @__PURE__ */ i("div", { className: "flex items-center w-full justify-between", children: [
|
|
54
55
|
/* @__PURE__ */ e("div", { className: "flex items-center space-x-2" }),
|
|
55
56
|
/* @__PURE__ */ i("div", { className: "flex items-center space-x-2", children: [
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(n, { type: "button", variant: "outline", onClick: t, children: "Cancel" }),
|
|
57
58
|
o ? /* @__PURE__ */ e(o, { variant: r, children: a }) : a
|
|
58
59
|
] })
|
|
59
60
|
] }) })
|
|
@@ -62,5 +63,5 @@ function I({
|
|
|
62
63
|
) });
|
|
63
64
|
}
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
J as DialogForm
|
|
66
67
|
};
|
|
@@ -3,19 +3,20 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as r } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
6
7
|
import "luxon";
|
|
7
8
|
import "../../utils/z-index.js";
|
|
8
9
|
const m = ({
|
|
9
|
-
className:
|
|
10
|
-
...
|
|
10
|
+
className: t,
|
|
11
|
+
...e
|
|
11
12
|
}) => /* @__PURE__ */ o(
|
|
12
13
|
"div",
|
|
13
14
|
{
|
|
14
15
|
className: r(
|
|
15
16
|
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
16
|
-
|
|
17
|
+
t
|
|
17
18
|
),
|
|
18
|
-
...
|
|
19
|
+
...e
|
|
19
20
|
}
|
|
20
21
|
);
|
|
21
22
|
m.displayName = "DialogHeader";
|
|
@@ -4,6 +4,7 @@ import * as c from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as w } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
import { Modal as g } from "../modal/modal.js";
|
|
@@ -4,18 +4,19 @@ import * as r 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";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import { Z_INDEX as s } from "../../utils/z-index.js";
|
|
9
|
-
const p = r.forwardRef(({ className: t, ...
|
|
10
|
+
const p = r.forwardRef(({ className: t, ...o }, e) => /* @__PURE__ */ i(
|
|
10
11
|
a.Overlay,
|
|
11
12
|
{
|
|
12
|
-
ref:
|
|
13
|
+
ref: e,
|
|
13
14
|
className: m(
|
|
14
15
|
s.MODAL,
|
|
15
16
|
"fixed inset-0 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
16
17
|
t
|
|
17
18
|
),
|
|
18
|
-
...
|
|
19
|
+
...o
|
|
19
20
|
}
|
|
20
21
|
));
|
|
21
22
|
p.displayName = a.Overlay.displayName;
|
|
@@ -4,6 +4,7 @@ import * as e from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
10
|
const p = e.forwardRef(({ className: t, ...i }, r) => /* @__PURE__ */ m(
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as y, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { faCaretDown as b } from "@fortawesome/free-solid-svg-icons";
|
|
3
3
|
import { FaIcon as h } from "../icons/fa-icon.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as n } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
8
9
|
import "luxon";
|
|
9
10
|
import "../../utils/z-index.js";
|
|
10
11
|
const s = {
|
|
@@ -19,7 +20,7 @@ const s = {
|
|
|
19
20
|
default: "py-[13px] pr-3 pl-4 text-sm leading-[17px] rounded-xl",
|
|
20
21
|
lg: "py-[13px] pr-3 pl-4 text-lg leading-[17px] rounded-xl"
|
|
21
22
|
};
|
|
22
|
-
function
|
|
23
|
+
function C({
|
|
23
24
|
children: i,
|
|
24
25
|
label: p,
|
|
25
26
|
opened: g,
|
|
@@ -31,14 +32,14 @@ function A({
|
|
|
31
32
|
iconSize: u = 16,
|
|
32
33
|
className: c
|
|
33
34
|
}) {
|
|
34
|
-
const o = typeof r == "string" && r in l,
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
const o = typeof r == "string" && r in l, m = typeof e == "string" && e in s, d = o ? void 0 : typeof r == "string" ? r === "sm" ? 14 : r === "default" ? 16 : r === "lg" ? 18 : 16 : r;
|
|
36
|
+
return /* @__PURE__ */ y(
|
|
36
37
|
f,
|
|
37
38
|
{
|
|
38
39
|
onClick: t,
|
|
39
40
|
className: n(
|
|
40
41
|
"inline-flex items-center cursor-pointer transition-colors",
|
|
41
|
-
|
|
42
|
+
m ? [
|
|
42
43
|
"w-full justify-between border-0 text-foreground",
|
|
43
44
|
s[e],
|
|
44
45
|
o && l[r]
|
|
@@ -63,5 +64,5 @@ function A({
|
|
|
63
64
|
);
|
|
64
65
|
}
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
C as DefaultDropdownLabel
|
|
67
68
|
};
|
|
@@ -6,6 +6,7 @@ import { FaIcon as p } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as f } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
12
|
const u = d.forwardRef(
|
|
@@ -2,17 +2,18 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import * as i from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as m } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
|
-
import { Z_INDEX as
|
|
9
|
+
import { Z_INDEX as n } from "../../utils/z-index.js";
|
|
9
10
|
const s = i.forwardRef(({ className: e, sideOffset: a = 4, ...r }, d) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
|
10
11
|
o.Content,
|
|
11
12
|
{
|
|
12
13
|
ref: d,
|
|
13
14
|
sideOffset: a,
|
|
14
|
-
className:
|
|
15
|
-
|
|
15
|
+
className: m(
|
|
16
|
+
n.DROPDOWN,
|
|
16
17
|
"min-w-32 overflow-hidden rounded-lg border border-border bg-gray-40 p-1 text-popover-foreground shadow-lg",
|
|
17
18
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
18
19
|
e
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
const m = n.forwardRef(({ className: e, inset: r, ...t },
|
|
10
|
+
const m = n.forwardRef(({ className: e, inset: r, ...t }, i) => /* @__PURE__ */ s(
|
|
10
11
|
o.Item,
|
|
11
12
|
{
|
|
12
|
-
ref:
|
|
13
|
+
ref: i,
|
|
13
14
|
className: a(
|
|
14
15
|
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-3! [&>svg]:shrink-0",
|
|
15
16
|
r && "pl-8",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as e from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as a } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
7
8
|
import "luxon";
|
|
8
9
|
import "../../utils/z-index.js";
|
|
9
|
-
const s =
|
|
10
|
+
const s = e.forwardRef(({ className: m, inset: r, ...p }, t) => /* @__PURE__ */ i(
|
|
10
11
|
o.Label,
|
|
11
12
|
{
|
|
12
13
|
ref: t,
|
|
@@ -6,17 +6,18 @@ import { FaIcon as c } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as d } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
10
11
|
import "../../utils/z-index.js";
|
|
11
|
-
const l = s.forwardRef(({ className: t, children: r, ...
|
|
12
|
+
const l = s.forwardRef(({ className: t, children: r, ...i }, a) => /* @__PURE__ */ n(
|
|
12
13
|
o.RadioItem,
|
|
13
14
|
{
|
|
14
|
-
ref:
|
|
15
|
+
ref: a,
|
|
15
16
|
className: d(
|
|
16
17
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
17
18
|
t
|
|
18
19
|
),
|
|
19
|
-
...
|
|
20
|
+
...i,
|
|
20
21
|
children: [
|
|
21
22
|
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(c, { icon: m, className: "size-2 fill-current" }) }) }),
|
|
22
23
|
r
|