@gearbox-protocol/permissionless-ui 1.22.0-next.3 → 1.22.0-next.31
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/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/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/index.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/index.cjs +1 -0
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -0
- package/dist/cjs/components/client-adapters/styled-rounded-image/index.cjs +1 -0
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -0
- 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.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/dialog/index.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/general-asset-list/general-asset-list.cjs +1 -1
- package/dist/cjs/components/general-select/general-select.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-center-container/help-center-container.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/index.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/app-logo/app-logo.cjs +1 -1
- package/dist/cjs/components/layout/block/block.cjs +1 -1
- package/dist/cjs/components/layout/col/col.cjs +1 -1
- package/dist/cjs/components/layout/container/container.cjs +1 -1
- package/dist/cjs/components/layout/footer/footer.cjs +1 -1
- package/dist/cjs/components/layout/grid/grid.cjs +1 -1
- package/dist/cjs/components/layout/header/header.cjs +1 -1
- package/dist/cjs/components/layout/layout/layout.cjs +2 -2
- package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/modal/index.cjs +1 -0
- package/dist/cjs/components/modal/modal.cjs +1 -0
- 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/network-icon/network-icon.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/points-icon/points-icon.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-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/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/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/smart-number-input.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.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-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/grid-table.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/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon.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/tooltip.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/configs/tailwind-preset.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/bn-to-input-view.cjs +1 -1
- package/dist/cjs/utils/bn-to-pretty-view.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/format-slippage.cjs +1 -0
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/loading.cjs +1 -0
- package/dist/cjs/utils/network-icons.cjs +1 -1
- package/dist/cjs/utils/parse-input-to-bn.cjs +1 -1
- package/dist/cjs/utils/search-in-token.cjs +1 -1
- package/dist/cjs/utils/shorten-string.cjs +1 -1
- package/dist/cjs/utils/static.cjs +1 -0
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/cjs/utils/window.cjs +1 -1
- package/dist/cjs/utils/z-index.cjs +1 -0
- package/dist/esm/components/accordion/accordion.js +1 -1
- package/dist/esm/components/address/address.js +1 -1
- package/dist/esm/components/alert-badge/alert-badge.js +1 -1
- package/dist/esm/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/esm/components/apy/apy.js +1 -1
- package/dist/esm/components/arc-loader/arc-loader.js +1 -1
- package/dist/esm/components/asset-line/asset-line.js +1 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +100 -25
- package/dist/esm/components/auth/connect-required.js +1 -1
- package/dist/esm/components/auth/signin-required.js +1 -1
- package/dist/esm/components/avatar/avatar.js +1 -1
- package/dist/esm/components/badge/badge.js +1 -1
- package/dist/esm/components/base-link/base-link.js +1 -1
- package/dist/esm/components/block-sync/block-sync.js +162 -52
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/esm/components/button-checkbox/button-checkbox.js +1 -1
- package/dist/esm/components/buttons/back-button/back-button.js +1 -1
- package/dist/esm/components/buttons/button/button.js +23 -16
- package/dist/esm/components/buttons/copy-button/copy-button.js +1 -1
- package/dist/esm/components/buttons/external-button/external-button.js +1 -1
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +7 -7
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +1 -1
- package/dist/esm/components/card-grid/card-grid.js +1 -1
- package/dist/esm/components/cards/card/card.js +1 -1
- package/dist/esm/components/cards/expandable-call/expandable-call.js +1 -1
- package/dist/esm/components/cards/expandable-card/expandable-card.js +1 -1
- package/dist/esm/components/carousel/carousel.js +1 -1
- package/dist/esm/components/checkbox/checkbox-labeled.js +8 -2
- package/dist/esm/components/checkbox/checkbox.js +1 -1
- package/dist/esm/components/checkbox-item/checkbox-item.js +1 -1
- package/dist/esm/components/client-adapters/index.js +6 -2
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +24 -13
- package/dist/esm/components/client-adapters/styled-dialog-container/index.js +4 -0
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +39 -0
- package/dist/esm/components/client-adapters/styled-rounded-image/index.js +4 -0
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +136 -0
- package/dist/esm/components/colored-text/colored-text.js +1 -1
- package/dist/esm/components/complex-input/complex-input.js +5 -5
- package/dist/esm/components/compound-apy/compound-apy.js +1 -1
- package/dist/esm/components/confirm-menu/confirm-menu.js +1 -1
- package/dist/esm/components/credit-session-status/credit-session-status.js +1 -1
- package/dist/esm/components/currency-button/currency-button.js +1 -1
- package/dist/esm/components/description/description.js +17 -11
- package/dist/esm/components/detailed-apy/detailed-apy.js +1 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +1 -1
- package/dist/esm/components/dialog/dialog-container.js +56 -22
- package/dist/esm/components/dialog/dialog-content.js +1 -1
- package/dist/esm/components/dialog/dialog-description.js +1 -1
- package/dist/esm/components/dialog/dialog-footer.js +1 -1
- package/dist/esm/components/dialog/dialog-form.js +1 -1
- package/dist/esm/components/dialog/dialog-header.js +1 -1
- package/dist/esm/components/dialog/dialog-modal-container.js +39 -18
- package/dist/esm/components/dialog/dialog-overlay.js +1 -1
- package/dist/esm/components/dialog/dialog-title.js +1 -1
- package/dist/esm/components/dialog/index.js +18 -18
- package/dist/esm/components/dropdown-label/dropdown-label.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +1 -1
- package/dist/esm/components/edit-input/edit-input.js +1 -1
- package/dist/esm/components/error-message/error-line-message.js +1 -1
- package/dist/esm/components/error-message/error-message.js +1 -1
- package/dist/esm/components/error-view/error-view.js +1 -1
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +1 -1
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +1 -1
- package/dist/esm/components/filter/filter-block.js +1 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +1 -1
- package/dist/esm/components/filter/filter-chip.js +1 -1
- package/dist/esm/components/filter/filter-chips.js +1 -1
- package/dist/esm/components/filter/filter-dropdown-item.js +1 -1
- package/dist/esm/components/filter/filter-group.js +1 -1
- package/dist/esm/components/filter/filter-label.js +1 -1
- package/dist/esm/components/filter/filter-modal-item.js +1 -1
- package/dist/esm/components/filter/filter-modal.js +2 -2
- package/dist/esm/components/filter/filter-radio-item.js +1 -1
- package/dist/esm/components/filter/filter-separator.js +1 -1
- package/dist/esm/components/formatted-number/formatted-number.js +1 -1
- package/dist/esm/components/general-asset-list/general-asset-list.js +1 -1
- package/dist/esm/components/general-select/general-select.js +1 -1
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +6 -6
- package/dist/esm/components/head-cell/head-cell.js +1 -1
- package/dist/esm/components/health-factor/health-factor.js +1 -1
- package/dist/esm/components/help-center-container/help-center-container.js +41 -51
- package/dist/esm/components/help-sections/help-sections.js +1 -1
- package/dist/esm/components/help-tip/help-tip.js +1 -1
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +1 -1
- package/dist/esm/components/icon-button/icon-button.js +1 -1
- package/dist/esm/components/index.js +470 -466
- package/dist/esm/components/input/input.js +128 -40
- package/dist/esm/components/label/label.js +1 -1
- package/dist/esm/components/layout/app-logo/app-logo.js +8 -7
- package/dist/esm/components/layout/block/block.js +1 -1
- package/dist/esm/components/layout/col/col.js +4 -4
- package/dist/esm/components/layout/container/container.js +5 -5
- package/dist/esm/components/layout/footer/footer.js +4 -4
- package/dist/esm/components/layout/grid/grid.js +9 -9
- package/dist/esm/components/layout/header/header.js +23 -23
- package/dist/esm/components/layout/layout/layout.js +4 -4
- package/dist/esm/components/loader-guard/loader-guard.js +1 -1
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +1 -1
- package/dist/esm/components/modal/index.js +4 -0
- package/dist/esm/components/modal/modal.js +108 -0
- package/dist/esm/components/navbar/navbar.js +1 -1
- package/dist/esm/components/navbar-logo/navbar-logo.js +1 -1
- package/dist/esm/components/navitem/navitem.js +1 -1
- package/dist/esm/components/network-icon/network-icon.js +52 -31
- package/dist/esm/components/not-found/not-found.js +1 -1
- package/dist/esm/components/options-list/options-list.js +1 -1
- package/dist/esm/components/overflow/overflow.js +1 -1
- package/dist/esm/components/overflow-container/overflow-container.js +1 -1
- package/dist/esm/components/page-title/page-title.js +1 -1
- package/dist/esm/components/percent-indicator/percent-indicator.js +1 -1
- package/dist/esm/components/points-icon/points-icon.js +34 -37
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +72 -46
- package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +1 -1
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +1 -1
- package/dist/esm/components/progress/progress.js +1 -1
- package/dist/esm/components/progress-circle/progress-circle.js +1 -1
- package/dist/esm/components/radio-group/radio-group.js +1 -1
- package/dist/esm/components/rounded-image/rounded-image.js +60 -28
- package/dist/esm/components/row/row.js +1 -1
- package/dist/esm/components/search-bar/search-bar.js +1 -1
- package/dist/esm/components/search-line/search-line.js +1 -1
- package/dist/esm/components/segmented-control/segmented-control.js +1 -1
- package/dist/esm/components/select/select.js +1 -1
- package/dist/esm/components/separator/separator.js +1 -1
- package/dist/esm/components/short-string/short-string.js +19 -23
- package/dist/esm/components/signatures/confirmation-item.js +1 -1
- package/dist/esm/components/skeleton/skeleton-stack.js +1 -1
- package/dist/esm/components/skeleton/skeleton.js +1 -1
- package/dist/esm/components/slider/slider.js +1 -1
- package/dist/esm/components/slider-token/slider-token.js +1 -1
- package/dist/esm/components/smart-number-input/smart-number-input.js +1 -1
- package/dist/esm/components/spinner/spinner.js +1 -1
- package/dist/esm/components/split-list/split-list.js +1 -1
- package/dist/esm/components/stat-badge/stat-badge.js +1 -1
- package/dist/esm/components/status-dot/status-dot.js +12 -12
- package/dist/esm/components/status-triangle/status-triangle.js +1 -1
- package/dist/esm/components/stepper/stepper.js +1 -1
- package/dist/esm/components/styled-dropdown/styled-dropdown.js +1 -1
- package/dist/esm/components/switch/switch.js +1 -1
- package/dist/esm/components/tab-control/tab-control.js +1 -1
- package/dist/esm/components/table/edit-button.js +1 -1
- package/dist/esm/components/table/editable-grid-table.js +1 -1
- package/dist/esm/components/table/editable-table.js +1 -1
- package/dist/esm/components/table/grid-loading-line.js +1 -1
- package/dist/esm/components/table/grid-table.js +103 -84
- package/dist/esm/components/table/table-sm.js +10 -10
- package/dist/esm/components/table/table.js +5 -5
- package/dist/esm/components/tabs/tabs.js +1 -1
- package/dist/esm/components/text-button/text-button.js +99 -47
- package/dist/esm/components/textarea/textarea.js +1 -1
- package/dist/esm/components/tip-card/tip-card.js +89 -53
- package/dist/esm/components/token-icon/token-icon.js +45 -39
- package/dist/esm/components/token-symbol/token-symbol.js +99 -41
- package/dist/esm/components/token-template/token-template.js +1 -1
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +1 -1
- package/dist/esm/components/tooltip/tooltip.js +1 -1
- package/dist/esm/components/typography/typography.js +11 -8
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +1 -1
- package/dist/esm/components/vertical-list/vertical-list.js +40 -34
- package/dist/esm/components/with-copy/with-copy.js +1 -1
- package/dist/esm/components/with-filter-button/with-filter-button.js +1 -1
- package/dist/esm/components/with-title/with-title.js +1 -1
- package/dist/esm/configs/tailwind-preset.js +5 -3
- package/dist/esm/hooks/index.js +34 -36
- package/dist/esm/index.js +618 -608
- package/dist/esm/utils/bn-to-input-view.js +14 -14
- package/dist/esm/utils/bn-to-pretty-view.js +11 -3
- package/dist/esm/utils/format-money.js +13 -17
- package/dist/esm/utils/format-slippage.js +7 -0
- package/dist/esm/utils/index.js +79 -71
- package/dist/esm/utils/loading.js +22 -0
- package/dist/esm/utils/network-icons.js +4 -53
- package/dist/esm/utils/parse-input-to-bn.js +99 -17
- package/dist/esm/utils/search-in-token.js +8 -8
- package/dist/esm/utils/shorten-string.js +7 -3
- package/dist/esm/utils/static.js +6 -0
- package/dist/esm/utils/templates.js +8 -9
- package/dist/esm/utils/window.js +4 -3
- package/dist/esm/utils/z-index.js +7 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +70 -6
- package/dist/types/components/auth/connect-required.d.ts +2 -2
- package/dist/types/components/auth/signin-required.d.ts +2 -2
- package/dist/types/components/buttons/button/button.d.ts +1 -1
- package/dist/types/components/buttons/navigation-button/navigation-button.d.ts +1 -1
- package/dist/types/components/card-grid/card-grid.d.ts +4 -4
- package/dist/types/components/client-adapters/index.d.ts +2 -0
- package/dist/types/components/client-adapters/styled-button/styled-button.d.ts +2 -2
- package/dist/types/components/client-adapters/styled-dialog-container/index.d.ts +1 -0
- package/dist/types/components/client-adapters/styled-dialog-container/styled-dialog-container.d.ts +13 -0
- package/dist/types/components/client-adapters/styled-rounded-image/index.d.ts +1 -0
- package/dist/types/components/client-adapters/styled-rounded-image/styled-rounded-image.d.ts +9 -0
- package/dist/types/components/description/description.d.ts +5 -3
- package/dist/types/components/dialog/dialog-container.d.ts +8 -3
- package/dist/types/components/dialog/dialog-modal-container.d.ts +9 -3
- package/dist/types/components/dialog/dialog.d.ts +3 -3
- package/dist/types/components/dialog/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +9 -3
- package/dist/types/components/layout/col/col.d.ts +1 -1
- package/dist/types/components/layout/container/container.d.ts +1 -1
- package/dist/types/components/layout/footer/footer.d.ts +1 -1
- package/dist/types/components/layout/grid/grid.d.ts +1 -1
- package/dist/types/components/layout/header/header.d.ts +1 -1
- package/dist/types/components/layout/layout/layout.d.ts +1 -1
- package/dist/types/components/modal/index.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +33 -0
- package/dist/types/components/navbar/navbar-indicator-context.d.ts +1 -1
- package/dist/types/components/network-icon/network-icon.d.ts +8 -1
- package/dist/types/components/points-icon/points-icon.d.ts +2 -5
- package/dist/types/components/pool-apy-tooltip/pool-apy-tooltip.d.ts +27 -1
- package/dist/types/components/pool-points-indicator/pool-points-indicator.d.ts +1 -1
- package/dist/types/components/rounded-image/rounded-image.d.ts +19 -4
- package/dist/types/components/short-string/short-string.d.ts +4 -4
- package/dist/types/components/skeleton/skeleton.d.ts +1 -1
- package/dist/types/components/stat-badge/stat-badge.d.ts +1 -1
- package/dist/types/components/table/grid-table.d.ts +4 -0
- package/dist/types/components/text-button/text-button.d.ts +13 -24
- package/dist/types/components/theme-provider.d.ts +1 -1
- package/dist/types/components/tip-card/tip-card.d.ts +20 -40
- package/dist/types/components/token-icon/token-icon.d.ts +10 -4
- package/dist/types/components/token-symbol/token-symbol.d.ts +9 -4
- package/dist/types/components/typed-intl/index.d.ts +0 -2
- package/dist/types/components/typography/typography.d.ts +2 -2
- package/dist/types/components/vertical-list/vertical-list.d.ts +2 -5
- package/dist/types/components/with-copy/with-copy.d.ts +1 -1
- package/dist/types/configs/tailwind-preset.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/use-filter.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/component-props.d.ts +1 -1
- package/dist/types/types/footer.d.ts +1 -1
- package/dist/types/utils/bn-to-pretty-view.d.ts +2 -1
- package/dist/types/utils/format-money.d.ts +0 -15
- package/dist/types/utils/format-slippage.d.ts +15 -0
- package/dist/types/utils/index.d.ts +4 -1
- package/dist/types/utils/loading.d.ts +3 -0
- package/dist/types/utils/network-icons.d.ts +6 -33
- package/dist/types/utils/parse-input-to-bn.d.ts +13 -16
- package/dist/types/utils/shorten-string.d.ts +2 -1
- package/dist/types/utils/static.d.ts +3 -0
- package/dist/types/utils/templates.d.ts +1 -1
- package/dist/types/utils/window.d.ts +3 -1
- package/dist/types/utils/z-index.d.ts +8 -0
- package/package.json +9 -6
- package/src/styles/base.css +19 -8
- package/src/styles/theme.css +21 -0
- package/dist/cjs/components/dialog/dialog-modal.cjs +0 -1
- package/dist/cjs/hooks/use-pool-points-tips.cjs +0 -1
- package/dist/esm/components/dialog/dialog-modal.js +0 -70
- package/dist/esm/hooks/use-pool-points-tips.js +0 -17
- package/dist/types/components/dialog/dialog-modal.d.ts +0 -30
- package/dist/types/hooks/use-pool-points-tips.d.ts +0 -40
|
@@ -163,6 +163,7 @@ declare const GridTableRow: React.ForwardRefExoticComponent<GridTableRowProps &
|
|
|
163
163
|
declare const gridTableHeadVariants: (props?: ({
|
|
164
164
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
165
165
|
justify?: "center" | "start" | "end" | null | undefined;
|
|
166
|
+
gapBefore?: "none" | "sm" | "md" | null | undefined;
|
|
166
167
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
167
168
|
interface GridTableHeadProps extends ColProps, VariantProps<typeof gridTableHeadVariants> {
|
|
168
169
|
children?: React.ReactNode;
|
|
@@ -179,6 +180,7 @@ interface GridTableHeadProps extends ColProps, VariantProps<typeof gridTableHead
|
|
|
179
180
|
* - `span` — number of columns to span (defaults to 1).
|
|
180
181
|
* - `size` — cell size variant: "sm", "default", "lg" (defaults to "default").
|
|
181
182
|
* - `justify` — content alignment: "start", "center", "end" (defaults to "start").
|
|
183
|
+
* - `gapBefore` — extra left padding for visual separation ("sm" | "md" | "none"). Uses padding so hover covers the gap.
|
|
182
184
|
*
|
|
183
185
|
* Note: Automatically applies border, muted text color, and medium font weight.
|
|
184
186
|
*/
|
|
@@ -186,6 +188,7 @@ declare const GridTableHead: React.ForwardRefExoticComponent<GridTableHeadProps
|
|
|
186
188
|
declare const gridTableCellVariants: (props?: ({
|
|
187
189
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
188
190
|
textAlign?: "left" | "center" | "right" | null | undefined;
|
|
191
|
+
gapBefore?: "none" | "sm" | "md" | null | undefined;
|
|
189
192
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
190
193
|
interface GridTableCellProps extends ColProps, VariantProps<typeof gridTableCellVariants> {
|
|
191
194
|
children?: React.ReactNode;
|
|
@@ -202,6 +205,7 @@ interface GridTableCellProps extends ColProps, VariantProps<typeof gridTableCell
|
|
|
202
205
|
* - `span` — number of columns to span (defaults to 1).
|
|
203
206
|
* - `size` — cell size variant: "sm", "default", "lg" (defaults to "default").
|
|
204
207
|
* - `textAlign` — text alignment: "left", "center", "right".
|
|
208
|
+
* - `gapBefore` — extra left padding for visual separation ("sm" | "md" | "none"). Uses padding so hover covers the gap.
|
|
205
209
|
*
|
|
206
210
|
* Note: Automatically applies appropriate padding based on size variant.
|
|
207
211
|
*
|
|
@@ -1,44 +1,32 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare const textColorVariants: (props?: ({
|
|
4
|
+
buttonColor?: "empty" | "primaryDashed" | "secondaryDashed" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare const layoutVariants: (props?: ({
|
|
7
|
+
size?: "default" | "sm" | "lg" | "md" | null | undefined;
|
|
8
|
+
width?: "compact" | "wide" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export interface TextButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof textColorVariants> {
|
|
7
11
|
/**
|
|
8
12
|
* Icon element (new API)
|
|
9
13
|
*/
|
|
10
14
|
icon?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Size variant (legacy API with $ prefix)
|
|
13
|
-
*/
|
|
14
|
-
$size?: "sm" | "md" | "lg";
|
|
15
|
-
/**
|
|
16
|
-
* Size variant (new API)
|
|
17
|
-
*/
|
|
18
|
-
size?: "sm" | "md" | "lg";
|
|
19
|
-
/**
|
|
20
|
-
* Color variant (legacy API with $ prefix)
|
|
21
|
-
*/
|
|
22
|
-
$color?: "primary" | "secondary" | "muted" | "primaryDashed" | "secondaryDashed" | "empty";
|
|
23
|
-
/**
|
|
24
|
-
* Color variant (new API)
|
|
25
|
-
*/
|
|
26
|
-
color?: "primary" | "secondary" | "muted" | "primaryDashed" | "secondaryDashed" | "empty";
|
|
27
15
|
/**
|
|
28
16
|
* Element type to render as
|
|
29
17
|
*/
|
|
30
18
|
as?: "button" | "a" | "div" | "span";
|
|
31
19
|
}
|
|
32
20
|
/**
|
|
33
|
-
* TextButton — text-only button with underline
|
|
21
|
+
* TextButton — text-only button with optional dashed underline (matches interface TextButton)
|
|
34
22
|
*
|
|
35
23
|
* @example
|
|
36
24
|
* ```tsx
|
|
37
|
-
* <TextButton onClick={handleClick} color="
|
|
25
|
+
* <TextButton onClick={handleClick} color="primaryDashed">
|
|
38
26
|
* Click me
|
|
39
27
|
* </TextButton>
|
|
40
28
|
*
|
|
41
|
-
* <TextButton icon={<Icon />} size="sm" color="
|
|
29
|
+
* <TextButton icon={<Icon />} size="sm" color="secondaryDashed">
|
|
42
30
|
* Edit
|
|
43
31
|
* </TextButton>
|
|
44
32
|
* ```
|
|
@@ -46,3 +34,4 @@ export interface TextButtonProps extends React.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
46
34
|
export declare const TextButton: React.ForwardRefExoticComponent<TextButtonProps & {
|
|
47
35
|
children?: React.ReactNode | undefined;
|
|
48
36
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
export {};
|
|
@@ -1,60 +1,40 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const tipCardVariants: (props?: ({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
backgroundColor?: "transparent" | "dark" | "light" | "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | null | undefined;
|
|
5
|
+
textColor?: "unset" | "dark" | "light" | null | undefined;
|
|
6
|
+
borderColor?: "none" | "dark" | "light" | "gradient" | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly error: "bg-red-500";
|
|
12
|
-
readonly success: "bg-green-500";
|
|
13
|
-
readonly light: "bg-muted-foreground";
|
|
14
|
-
readonly primary: "bg-primary";
|
|
15
|
-
readonly alert: "bg-red-500";
|
|
16
|
-
};
|
|
17
|
-
type IndicatorColor = keyof typeof indicatorColors;
|
|
18
|
-
export interface TipCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tipCardVariants> {
|
|
19
|
-
/**
|
|
20
|
-
* Color variant of the tip card
|
|
21
|
-
*/
|
|
22
|
-
variant?: "default" | "info" | "warning" | "error" | "success" | "light";
|
|
23
|
-
/**
|
|
24
|
-
* Show colored indicator on the left side
|
|
25
|
-
*/
|
|
26
|
-
indicatorColor?: IndicatorColor;
|
|
27
|
-
/**
|
|
28
|
-
* Icon to display before content
|
|
29
|
-
*/
|
|
30
|
-
icon?: React.ReactNode;
|
|
8
|
+
declare const indicatorVariants: (props?: ({
|
|
9
|
+
attributeColor?: "success" | "warning" | "primary" | "alert" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
export interface TipCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tipCardVariants>, VariantProps<typeof indicatorVariants> {
|
|
31
12
|
}
|
|
32
13
|
/**
|
|
33
14
|
* TipCard — card component for displaying tips, warnings, and information.
|
|
34
15
|
*
|
|
35
16
|
* @usage
|
|
36
|
-
*
|
|
37
|
-
* -
|
|
38
|
-
* -
|
|
39
|
-
* -
|
|
40
|
-
* -
|
|
41
|
-
* - light: subtle information in muted style
|
|
17
|
+
* TipCard is a lightweight card container with optional styling variants:
|
|
18
|
+
* - `backgroundColor`: `transparent` | `light` | `dark`
|
|
19
|
+
* - `textColor`: `unset` | `light` | `dark`
|
|
20
|
+
* - `borderColor`: `light` | `dark` | `gradient` | `none`
|
|
21
|
+
* - `attributeColor`: adds a 4px left stripe (via `::after`): `warning` | `alert` | `success` | `primary`
|
|
42
22
|
*
|
|
43
23
|
* @example
|
|
44
24
|
* ```tsx
|
|
45
25
|
* // Basic usage
|
|
46
|
-
* <TipCard
|
|
47
|
-
* This is
|
|
26
|
+
* <TipCard borderColor="light" backgroundColor="dark" textColor="light">
|
|
27
|
+
* This is a tip card.
|
|
48
28
|
* </TipCard>
|
|
49
29
|
*
|
|
50
|
-
* //
|
|
51
|
-
* <TipCard
|
|
52
|
-
*
|
|
30
|
+
* // Gradient border
|
|
31
|
+
* <TipCard borderColor="gradient">
|
|
32
|
+
* This card has a gradient border.
|
|
53
33
|
* </TipCard>
|
|
54
34
|
*
|
|
55
|
-
* // With
|
|
56
|
-
* <TipCard
|
|
57
|
-
*
|
|
35
|
+
* // With attribute stripe (4px on the left)
|
|
36
|
+
* <TipCard attributeColor="warning">
|
|
37
|
+
* Warning: please review before proceeding.
|
|
58
38
|
* </TipCard>
|
|
59
39
|
* ```
|
|
60
40
|
*/
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RoundedImageProps } from '../rounded-image/rounded-image';
|
|
1
3
|
/**
|
|
2
4
|
* TokenIcon — component for displaying token/asset icons.
|
|
3
5
|
*
|
|
@@ -18,12 +20,16 @@
|
|
|
18
20
|
* - for address identifiers (use Identicon component).
|
|
19
21
|
* - for custom images or logos (use Image component).
|
|
20
22
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
type SymbolOrIcon = string | {
|
|
24
|
+
icon: string;
|
|
25
|
+
};
|
|
26
|
+
export interface TokenIconProps extends Omit<RoundedImageProps, "src" | "size"> {
|
|
27
|
+
symbol: SymbolOrIcon | undefined;
|
|
23
28
|
size?: number;
|
|
24
29
|
className?: string;
|
|
25
30
|
}
|
|
26
|
-
|
|
31
|
+
declare const TokenIcon: React.ForwardRefExoticComponent<TokenIconProps & React.RefAttributes<HTMLImageElement>>;
|
|
32
|
+
export { TokenIcon };
|
|
27
33
|
/**
|
|
28
34
|
* Preload token icons into browser cache.
|
|
29
35
|
* Call this function early in your app initialization with the list of token symbols.
|
|
@@ -37,4 +43,4 @@ export declare function TokenIcon({ symbol, size, className }: TokenIconProps):
|
|
|
37
43
|
* preloadTokenIcons(tokens);
|
|
38
44
|
* ```
|
|
39
45
|
*/
|
|
40
|
-
export declare function preloadTokenIcons(symbols:
|
|
46
|
+
export declare function preloadTokenIcons(symbols: SymbolOrIcon[]): void;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { NetworkType } from '@gearbox-protocol/sdk';
|
|
2
|
-
import
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
declare const tokenSymbolVariants: (props?: ({
|
|
5
|
+
marginSize?: "sm" | "lg" | "md" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
3
7
|
type PartialTokenData = {
|
|
4
8
|
symbol: string;
|
|
5
9
|
title?: string;
|
|
10
|
+
icon?: string;
|
|
6
11
|
};
|
|
7
|
-
export interface TokenSymbolProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
12
|
+
export interface TokenSymbolProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof tokenSymbolVariants> {
|
|
8
13
|
/**
|
|
9
14
|
* Token data object or symbol string
|
|
10
15
|
*/
|
|
@@ -67,5 +72,5 @@ export interface TokenSymbolProps extends Omit<React.HTMLAttributes<HTMLDivEleme
|
|
|
67
72
|
* <TokenSymbol token="WETH" showSymbol={true} />
|
|
68
73
|
* ```
|
|
69
74
|
*/
|
|
70
|
-
|
|
71
|
-
export {};
|
|
75
|
+
declare const TokenSymbol: React.ForwardRefExoticComponent<TokenSymbolProps & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
export { TokenSymbol };
|
|
@@ -6,8 +6,6 @@ export type Values = FormattedMessageProps["values"];
|
|
|
6
6
|
export type LocaleKeys = string;
|
|
7
7
|
export interface FormattedMessageTypedProps {
|
|
8
8
|
messageId: LocaleKeys;
|
|
9
|
-
/** @deprecated Use messageId instead */
|
|
10
|
-
id?: LocaleKeys;
|
|
11
9
|
values?: Values;
|
|
12
10
|
defaultMessage?: string;
|
|
13
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const typographyVariants: (props?: ({
|
|
4
|
-
variant?: "body" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bodySmall" | "overline" | null | undefined;
|
|
5
|
-
color?: "inherit" | "default" | "muted" | "success" | "warning" | "destructive" | "primary" | null | undefined;
|
|
4
|
+
variant?: "body" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bodySmall" | "overline" | "inherit" | null | undefined;
|
|
5
|
+
color?: "inherit" | "default" | "muted" | "success" | "warning" | "destructive" | "primary" | "secondary" | null | undefined;
|
|
6
6
|
weight?: "medium" | "inherit" | "normal" | "semibold" | "bold" | null | undefined;
|
|
7
7
|
align?: "inherit" | "left" | "center" | "right" | null | undefined;
|
|
8
8
|
leading?: "inherit" | "normal" | "tight" | "relaxed" | null | undefined;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const verticalListVariants: (props?: ({
|
|
4
|
-
|
|
4
|
+
rowGap?: "default" | "xs" | "md" | null | undefined;
|
|
5
5
|
divided?: boolean | null | undefined;
|
|
6
|
+
nested?: boolean | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
8
|
export interface VerticalListProps extends React.HTMLAttributes<HTMLUListElement>, VariantProps<typeof verticalListVariants> {
|
|
8
|
-
/**
|
|
9
|
-
* Gap between items
|
|
10
|
-
*/
|
|
11
|
-
gap?: "xs" | "sm" | "default" | "md" | "lg";
|
|
12
9
|
/**
|
|
13
10
|
* Show dividers between items
|
|
14
11
|
*/
|
|
@@ -6,11 +6,11 @@ export interface SelectFilterList<T> {
|
|
|
6
6
|
/**
|
|
7
7
|
* Hook for managing range filter state
|
|
8
8
|
*/
|
|
9
|
-
export declare function useRangeFilter(): readonly [FilterRange | null, import('
|
|
9
|
+
export declare function useRangeFilter(): readonly [FilterRange | null, import('react').Dispatch<import('react').SetStateAction<FilterRange | null>>, () => void];
|
|
10
10
|
/**
|
|
11
11
|
* Hook for managing select filter state
|
|
12
12
|
*/
|
|
13
|
-
export declare function useSelectFilter<T>(initialState?: SelectFilterList<T> | null): readonly [SelectFilterList<T> | null, import('
|
|
13
|
+
export declare function useSelectFilter<T>(initialState?: SelectFilterList<T> | null): readonly [SelectFilterList<T> | null, import('react').Dispatch<import('react').SetStateAction<SelectFilterList<T> | null>>, () => void];
|
|
14
14
|
type SortType = "desc" | "asc";
|
|
15
15
|
export interface FilterSortField<T> {
|
|
16
16
|
field: T;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './components/legal-agreement';
|
|
|
60
60
|
export * from './components/liquidation';
|
|
61
61
|
export * from './components/loader-guard';
|
|
62
62
|
export * from './components/markdown-viewer';
|
|
63
|
+
export * from './components/modal';
|
|
63
64
|
export * from './components/navbar';
|
|
64
65
|
export * from './components/navbar-logo';
|
|
65
66
|
export * from './components/navitem';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ParseSmallNumberResult } from './parse-input-to-bn';
|
|
1
2
|
/**
|
|
2
3
|
* Formats a BigInt value to a pretty human-readable string with locale formatting
|
|
3
4
|
*
|
|
@@ -12,4 +13,4 @@
|
|
|
12
13
|
* bnToPrettyView(1000000000000000000n, 18) // "1"
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
|
-
export declare function bnToPrettyView(
|
|
16
|
+
export declare function bnToPrettyView(number: bigint | undefined | string | number, decimals: number, precision?: number, allowNegative?: boolean): ParseSmallNumberResult;
|
|
@@ -84,18 +84,3 @@ export declare const SLIPPAGE_DECIMALS = 1000n;
|
|
|
84
84
|
* ```
|
|
85
85
|
*/
|
|
86
86
|
export declare function formatMoneyAmount(value: number | bigint | string, options?: number | Intl.NumberFormatOptions): string;
|
|
87
|
-
/**
|
|
88
|
-
* Formats a slippage value to percentage string
|
|
89
|
-
*
|
|
90
|
-
* @param slippage - The slippage value (e.g., 10 for 1%)
|
|
91
|
-
* @param precision - Number of decimal places (default: 1)
|
|
92
|
-
* @returns Formatted slippage string like "1.0%"
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```ts
|
|
96
|
-
* slippageTemplate(10) // "1.0%"
|
|
97
|
-
* slippageTemplate(5, 2) // "0.50%"
|
|
98
|
-
* slippageTemplate(undefined) // "-"
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
export declare function slippageTemplate(slippage?: number, precision?: number): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a slippage value to percentage string
|
|
3
|
+
*
|
|
4
|
+
* @param slippage - The slippage value (e.g., 10 for 1%)
|
|
5
|
+
* @param precision - Number of decimal places (default: 1)
|
|
6
|
+
* @returns Formatted slippage string like "1.0%"
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* slippageTemplate(10) // "1.0%"
|
|
11
|
+
* slippageTemplate(5, 2) // "0.50%"
|
|
12
|
+
* slippageTemplate(undefined) // "-"
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function slippageTemplate(slippage?: number, precision?: number): string;
|
|
@@ -7,9 +7,11 @@ export * from './colors';
|
|
|
7
7
|
export * from './copy';
|
|
8
8
|
export * from './format';
|
|
9
9
|
export * from './format-asset-amount';
|
|
10
|
-
export { formatMoney, formatMoney as formatMoneyAmount, formatPercentAmount, PERCENTAGE_FACTOR, percentageTemplate, percentTemplate, SLIPPAGE_DECIMALS,
|
|
10
|
+
export { formatMoney, formatMoney as formatMoneyAmount, formatPercentAmount, PERCENTAGE_FACTOR, percentageTemplate, percentTemplate, SLIPPAGE_DECIMALS, } from './format-money';
|
|
11
11
|
export { FORMAT_CONSTANTS, type FormatNumberOptions, formatNumberWithSuffix, formatPrice, getAdaptiveDecimals, isBelowDisplayThreshold, isEffectivelyZero, toSignificantDigits, } from './format-number';
|
|
12
|
+
export * from './format-slippage';
|
|
12
13
|
export * from './interface';
|
|
14
|
+
export * from './loading';
|
|
13
15
|
export * from './network-icons';
|
|
14
16
|
export * from './parse-input-to-bn';
|
|
15
17
|
export * from './plural';
|
|
@@ -23,3 +25,4 @@ export type { SortField as UtilsSortField, SortType } from './sort';
|
|
|
23
25
|
export * from './templates';
|
|
24
26
|
export * from './ttl';
|
|
25
27
|
export * from './window';
|
|
28
|
+
export * from './z-index';
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
+
import { NetworkType } from '@gearbox-protocol/sdk';
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* Known network icons type.
|
|
4
|
+
* Accepts any NetworkType from SDK plus "AllNetworks" and arbitrary strings
|
|
5
|
+
* for forward compatibility with new networks.
|
|
3
6
|
*/
|
|
4
|
-
export type
|
|
5
|
-
/**
|
|
6
|
-
* Alias for backward compatibility
|
|
7
|
-
*/
|
|
8
|
-
export type NetworkIcons = NetworkType;
|
|
9
|
-
/**
|
|
10
|
-
* Network configuration
|
|
11
|
-
*/
|
|
12
|
-
export interface NetworkConfig {
|
|
13
|
-
name: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
chainId: number;
|
|
16
|
-
}
|
|
7
|
+
export type NetworkIcons = NetworkType | "AllNetworks";
|
|
17
8
|
/**
|
|
18
9
|
* Get network icon path by network name
|
|
19
10
|
*
|
|
@@ -26,22 +17,4 @@ export interface NetworkConfig {
|
|
|
26
17
|
* getNetworkIcon("Unknown") // ""
|
|
27
18
|
* ```
|
|
28
19
|
*/
|
|
29
|
-
export declare function getNetworkIcon(network:
|
|
30
|
-
/**
|
|
31
|
-
* Get network name by chain ID
|
|
32
|
-
*
|
|
33
|
-
* @param chainId - Chain ID
|
|
34
|
-
* @returns Network name or undefined if not found
|
|
35
|
-
*/
|
|
36
|
-
export declare function getNetworkByChainId(chainId: number): string | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Get network config by name
|
|
39
|
-
*
|
|
40
|
-
* @param network - Network name
|
|
41
|
-
* @returns Network config or undefined if not found
|
|
42
|
-
*/
|
|
43
|
-
export declare function getNetworkConfig(network: NetworkType): NetworkConfig | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Get all available networks
|
|
46
|
-
*/
|
|
47
|
-
export declare function getAllNetworks(): NetworkConfig[];
|
|
20
|
+
export declare function getNetworkIcon(network: NetworkIcons): string;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare function parseInputToBN(input: string | undefined | null, decimals: number, allowNegative?: boolean): [bigint | null, string | null];
|
|
1
|
+
export declare function isPositiveFloat(val: string): boolean;
|
|
2
|
+
export type ParseOutput = [bigint | null, string | null];
|
|
3
|
+
export declare const parseInputToBN: (input: string, decimals: number, allowNegative?: boolean) => ParseOutput;
|
|
4
|
+
export interface SmallNumberParseResult {
|
|
5
|
+
integer: string;
|
|
6
|
+
repeat: number;
|
|
7
|
+
decimal: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export type ParseSmallNumberResult = SmallNumberParseResult | {
|
|
10
|
+
originalValue: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function parseSmallNumber(numStr: string): ParseSmallNumberResult;
|
|
13
|
+
export declare function bnToLiquidationPriceView(number: bigint, precision?: number): ParseSmallNumberResult;
|
|
@@ -12,4 +12,5 @@
|
|
|
12
12
|
* shortenString("A very long string", 10) // "A very lon..."
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export declare function shortenString(str: string, maxLength
|
|
15
|
+
export declare function shortenString(str: string, maxLength: number): string;
|
|
16
|
+
export declare function isLongString(str: string, maxLength: number): boolean;
|
|
@@ -38,7 +38,7 @@ type PartialTokenData = Pick<TokenData, "title" | "decimals"> & {
|
|
|
38
38
|
* // "1.00 Very..." (truncated to 10 chars)
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
export declare function tokenTemplate(value: bigint | string | number | undefined, token: PartialTokenData | undefined, precision?: number, spaceSymbol?: string, maxLength?: number):
|
|
41
|
+
export declare function tokenTemplate(value: bigint | string | number | undefined, token: PartialTokenData | undefined, precision?: number, spaceSymbol?: string, maxLength?: number): string;
|
|
42
42
|
/**
|
|
43
43
|
* Formats a token amount and returns it as a string with token title
|
|
44
44
|
* Use this when you need a formatted number string with token name (not a React element)
|
|
@@ -12,4 +12,6 @@
|
|
|
12
12
|
* openInNewWindow("https://example.com")
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
type Target = "_blank" | "_self" | "_parent" | "_top";
|
|
16
|
+
export declare function openInNewWindow(url: string, target?: Target, features?: string): void;
|
|
17
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/permissionless-ui",
|
|
3
|
-
"version": "1.22.0-next.
|
|
3
|
+
"version": "1.22.0-next.31",
|
|
4
4
|
"description": "Internal UI components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"react-markdown": "^9.0.3",
|
|
83
83
|
"react-markdown-math": "^1.0.2",
|
|
84
84
|
"react-slick": "^0.31.0",
|
|
85
|
-
"slick-carousel": "^1.8.1",
|
|
86
85
|
"remark-gfm": "^4.0.0",
|
|
86
|
+
"slick-carousel": "^1.8.1",
|
|
87
87
|
"sonner": "^2.0.7",
|
|
88
|
-
"tailwind-merge": "^
|
|
88
|
+
"tailwind-merge": "^3.4.0",
|
|
89
89
|
"tailwindcss-animate": "^1.0.7"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
@@ -105,6 +105,9 @@
|
|
|
105
105
|
"wagmi": "^2.0.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|
|
108
|
+
"connectkit": {
|
|
109
|
+
"optional": true
|
|
110
|
+
},
|
|
108
111
|
"next": {
|
|
109
112
|
"optional": true
|
|
110
113
|
},
|
|
@@ -124,7 +127,7 @@
|
|
|
124
127
|
"@commitlint/cli": "^20.1.0",
|
|
125
128
|
"@commitlint/config-conventional": "^20.0.0",
|
|
126
129
|
"@gearbox-protocol/biome-config": "^1.0.2",
|
|
127
|
-
"@gearbox-protocol/sdk": "
|
|
130
|
+
"@gearbox-protocol/sdk": "^12.6.7",
|
|
128
131
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
129
132
|
"@storybook/addon-a11y": "^10.0.8",
|
|
130
133
|
"@storybook/addon-docs": "^10.0.8",
|
|
@@ -136,9 +139,9 @@
|
|
|
136
139
|
"@tanstack/react-query": "^5.64.1",
|
|
137
140
|
"@types/cross-spawn": "^6.0.6",
|
|
138
141
|
"@types/luxon": "^3.4.2",
|
|
139
|
-
"@types/react-slick": "^0.23.13",
|
|
140
142
|
"@types/react": "^19.1.16",
|
|
141
143
|
"@types/react-dom": "^19.1.9",
|
|
144
|
+
"@types/react-slick": "^0.23.13",
|
|
142
145
|
"@vitejs/plugin-react": "^5.1.1",
|
|
143
146
|
"@vitest/browser-playwright": "^4.0.14",
|
|
144
147
|
"@vitest/coverage-v8": "^4.0.14",
|
|
@@ -165,7 +168,7 @@
|
|
|
165
168
|
"tailwind-scrollbar": "^4.0.2",
|
|
166
169
|
"tailwindcss": "^4.1.14",
|
|
167
170
|
"typescript": "^5.9.3",
|
|
168
|
-
"viem": "^2.
|
|
171
|
+
"viem": "^2.45.3",
|
|
169
172
|
"vite": "^6.3.5",
|
|
170
173
|
"vite-plugin-dts": "^4.5.4",
|
|
171
174
|
"vite-tsconfig-paths": "^5.1.4",
|