@gearbox-protocol/permissionless-ui 1.22.0-next.4 → 1.22.0-next.41
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/filter-button/filter-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 +3 -3
- 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/complex-input/index.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/icons/fa-icon.cjs +1 -0
- package/dist/cjs/components/icons/index.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/input/use-icon-slot-widths.cjs +1 -0
- 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/legal-agreement/legal-agreement-dialog.cjs +1 -1
- package/dist/cjs/components/liquidation-price/index.cjs +1 -0
- package/dist/cjs/components/liquidation-price/liquidation-price.cjs +1 -0
- 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/signatures/vertical-timeline.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-elements/index.cjs +1 -0
- package/dist/cjs/components/status-elements/status-elements.cjs +1 -0
- 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/sortable-head-cell.cjs +1 -1
- package/dist/cjs/components/table/table-loader.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/index.cjs +1 -1
- package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -0
- package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/components/trading-view/graph-dropdown.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/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -0
- package/dist/cjs/locale/index.cjs +1 -0
- 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 +25 -19
- package/dist/esm/components/address/address.js +1 -1
- package/dist/esm/components/alert-badge/alert-badge.js +75 -61
- package/dist/esm/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/esm/components/apy/apy.js +4 -3
- 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 +101 -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 +163 -49
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +19 -13
- package/dist/esm/components/button-checkbox/button-checkbox.js +29 -22
- package/dist/esm/components/buttons/back-button/back-button.js +11 -10
- package/dist/esm/components/buttons/button/button.js +3 -1
- package/dist/esm/components/buttons/copy-button/copy-button.js +29 -21
- package/dist/esm/components/buttons/external-button/external-button.js +23 -11
- package/dist/esm/components/buttons/filter-button/filter-button.js +12 -12
- 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 +12 -10
- package/dist/esm/components/cards/expandable-card/expandable-card.js +21 -19
- package/dist/esm/components/carousel/carousel.js +31 -30
- package/dist/esm/components/checkbox/checkbox-labeled.js +17 -4
- package/dist/esm/components/checkbox/checkbox.js +21 -20
- package/dist/esm/components/checkbox-item/checkbox-item.js +8 -7
- package/dist/esm/components/client-adapters/index.js +6 -2
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +21 -11
- 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 +143 -0
- package/dist/esm/components/colored-text/colored-text.js +7 -7
- package/dist/esm/components/complex-input/complex-input.js +214 -56
- package/dist/esm/components/complex-input/index.js +3 -2
- package/dist/esm/components/compound-apy/compound-apy.js +88 -111
- package/dist/esm/components/confirm-menu/confirm-menu.js +14 -13
- package/dist/esm/components/credit-session-status/credit-session-status.js +1 -1
- package/dist/esm/components/currency-button/currency-button.js +12 -12
- package/dist/esm/components/description/description.js +17 -11
- package/dist/esm/components/detailed-apy/detailed-apy.js +15 -14
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +24 -22
- package/dist/esm/components/dialog/dialog-container.js +56 -22
- package/dist/esm/components/dialog/dialog-content.js +12 -11
- 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 +17 -15
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +15 -14
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +5 -5
- 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 +11 -10
- 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 +2 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +7 -7
- package/dist/esm/components/edit-input/edit-input.js +112 -86
- 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 +8 -8
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +13 -13
- package/dist/esm/components/filter/filter-block.js +1 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +10 -9
- package/dist/esm/components/filter/filter-chip.js +17 -16
- 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 +10 -9
- package/dist/esm/components/filter/filter-separator.js +1 -1
- package/dist/esm/components/formatted-number/formatted-number.js +42 -9
- 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 +34 -32
- package/dist/esm/components/health-factor/health-factor.js +54 -43
- 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 +114 -64
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +11 -10
- package/dist/esm/components/icon-button/icon-button.js +1 -1
- package/dist/esm/components/icons/fa-icon.js +20 -0
- package/dist/esm/components/icons/index.js +42 -0
- package/dist/esm/components/index.js +482 -470
- package/dist/esm/components/input/input.js +134 -40
- package/dist/esm/components/input/use-icon-slot-widths.js +41 -0
- 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 +39 -38
- package/dist/esm/components/layout/layout/layout.js +4 -4
- package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +54 -46
- package/dist/esm/components/liquidation-price/index.js +4 -0
- package/dist/esm/components/liquidation-price/liquidation-price.js +43 -0
- 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 +39 -39
- 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 +73 -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 +22 -15
- 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 +21 -20
- package/dist/esm/components/search-line/search-line.js +43 -35
- package/dist/esm/components/segmented-control/segmented-control.js +1 -1
- package/dist/esm/components/select/select.js +47 -40
- package/dist/esm/components/separator/separator.js +1 -1
- package/dist/esm/components/short-string/short-string.js +16 -23
- package/dist/esm/components/signatures/confirmation-item.js +1 -1
- package/dist/esm/components/signatures/vertical-timeline.js +24 -23
- 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 +53 -52
- package/dist/esm/components/spinner/spinner.js +21 -20
- package/dist/esm/components/split-list/split-list.js +1 -1
- package/dist/esm/components/stat-badge/stat-badge.js +2 -1
- package/dist/esm/components/status-dot/status-dot.js +12 -12
- package/dist/esm/components/status-elements/index.js +5 -0
- package/dist/esm/components/status-elements/status-elements.js +66 -0
- package/dist/esm/components/status-triangle/status-triangle.js +1 -1
- package/dist/esm/components/stepper/stepper.js +26 -25
- 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 +9 -9
- package/dist/esm/components/table/editable-grid-table.js +5 -5
- package/dist/esm/components/table/editable-table.js +1 -1
- package/dist/esm/components/table/grid-loading-line.js +19 -13
- package/dist/esm/components/table/grid-table.js +110 -91
- package/dist/esm/components/table/sortable-head-cell.js +12 -11
- package/dist/esm/components/table/table-loader.js +12 -10
- package/dist/esm/components/table/table-sm.js +10 -10
- package/dist/esm/components/table/table.js +43 -40
- 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 +96 -41
- package/dist/esm/components/token-template/token-template.js +23 -15
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +23 -22
- package/dist/esm/components/tooltip/index.js +6 -4
- package/dist/esm/components/tooltip/simple-tooltip.js +129 -0
- package/dist/esm/components/tooltip/tooltip.js +1 -1
- package/dist/esm/components/trading-view/graph-dropdown.js +45 -37
- package/dist/esm/components/typography/typography.js +11 -8
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +83 -76
- package/dist/esm/components/vertical-list/vertical-list.js +40 -34
- package/dist/esm/components/with-copy/with-copy.js +31 -22
- package/dist/esm/components/with-filter-button/with-filter-button.js +1 -1
- package/dist/esm/components/with-title/with-title.js +28 -15
- package/dist/esm/hooks/index.js +34 -36
- package/dist/esm/index.js +633 -615
- package/dist/esm/locale/en.json.js +54 -0
- package/dist/esm/locale/index.js +4 -0
- 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 +68 -44
- package/dist/esm/utils/format-slippage.js +7 -0
- package/dist/esm/utils/index.js +74 -68
- 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/alert-badge/alert-badge.d.ts +7 -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 +5 -5
- package/dist/types/components/client-adapters/index.d.ts +2 -0
- package/dist/types/components/client-adapters/styled-button/styled-button.d.ts +1 -1
- 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/colored-text/colored-text.d.ts +1 -1
- package/dist/types/components/complex-input/complex-input.d.ts +10 -14
- package/dist/types/components/compound-apy/compound-apy.d.ts +1 -1
- 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/edit-input/edit-input.d.ts +25 -40
- package/dist/types/components/fadeout-loading/fadeout-loading.d.ts +5 -13
- package/dist/types/components/formatted-number/formatted-number.d.ts +14 -4
- package/dist/types/components/health-factor/health-factor.d.ts +16 -35
- package/dist/types/components/help-tip/help-tip.d.ts +33 -44
- package/dist/types/components/icons/fa-icon.d.ts +2 -0
- package/dist/types/components/icons/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/input/input.d.ts +9 -4
- package/dist/types/components/input/use-icon-slot-widths.d.ts +12 -0
- 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/liquidation-price/index.d.ts +1 -0
- package/dist/types/components/liquidation-price/liquidation-price.d.ts +41 -0
- 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 +11 -4
- 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/segmented-control/segmented-control.d.ts +1 -1
- package/dist/types/components/short-string/short-string.d.ts +4 -4
- package/dist/types/components/skeleton/skeleton.d.ts +3 -3
- package/dist/types/components/stat-badge/stat-badge.d.ts +1 -1
- package/dist/types/components/status-dot/status-dot.d.ts +1 -1
- package/dist/types/components/status-elements/index.d.ts +1 -0
- package/dist/types/components/status-elements/status-elements.d.ts +26 -0
- package/dist/types/components/table/grid-loading-line.d.ts +12 -1
- package/dist/types/components/table/grid-table.d.ts +4 -0
- package/dist/types/components/table/table-loader.d.ts +5 -1
- 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/token-template/token-template.d.ts +7 -28
- package/dist/types/components/tooltip/index.d.ts +1 -0
- package/dist/types/components/tooltip/simple-tooltip.d.ts +84 -0
- package/dist/types/components/typed-intl/index.d.ts +1 -3
- package/dist/types/components/typography/typography.d.ts +2 -2
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +24 -51
- 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/components/with-title/with-title.d.ts +6 -6
- 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 +8 -1
- package/dist/types/locale/en.json.d.ts +68 -0
- package/dist/types/locale/index.d.ts +10 -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 +21 -39
- 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 +13 -7
- package/src/styles/base.css +20 -13
- package/src/styles/theme.css +19 -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
|
@@ -1,48 +1,36 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
declare const iconColorVariants: (props?: ({
|
|
4
|
+
iconColor?: "muted" | "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | "foreground" | null | undefined;
|
|
5
|
+
iconHoverColor?: "muted" | "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | "foreground" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface HelpTipProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "title"> {
|
|
8
|
+
/** Tooltip popup content (what appears when hovering the icon). */
|
|
6
9
|
children: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Max width of the tooltip
|
|
9
|
-
*/
|
|
10
|
+
/** Maximum width of the tooltip panel. */
|
|
10
11
|
maxWidth?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Min width of the tooltip
|
|
13
|
-
*/
|
|
12
|
+
/** Minimum width of the tooltip panel. */
|
|
14
13
|
minWidth?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Delay before showing tooltip (ms)
|
|
17
|
-
* @default 200
|
|
18
|
-
*/
|
|
14
|
+
/** Delay before showing tooltip (ms). @default 200 */
|
|
19
15
|
delayShow?: number;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
delayHide?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Tooltip placement
|
|
27
|
-
* @default "bottom"
|
|
28
|
-
*/
|
|
29
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
30
|
-
/**
|
|
31
|
-
* Size of the help icon
|
|
32
|
-
* @default 14
|
|
33
|
-
*/
|
|
16
|
+
/** Tooltip placement relative to the icon. @default "bottom" */
|
|
17
|
+
placement?: "top" | "right" | "bottom" | "left";
|
|
18
|
+
/** Size of the help icon in pixels. @default 14 */
|
|
34
19
|
iconSize?: number;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
/** Icon color variant (default gray-90). Theme-aware: dark → gray-40, light → gray-80. */
|
|
21
|
+
iconColor?: "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | "muted" | "foreground";
|
|
22
|
+
/** Icon color on hover (default gray-110). Theme-aware: dark → gray-70, light → gray-100. */
|
|
23
|
+
iconHoverColor?: "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | "muted" | "foreground";
|
|
24
|
+
/** Icon type: question circle or info. @default "question" */
|
|
25
|
+
iconVariant?: "question" | "info";
|
|
26
|
+
/** Called when the icon (trigger) is hovered. */
|
|
27
|
+
onPointerEnter?: React.PointerEventHandler<HTMLSpanElement>;
|
|
40
28
|
}
|
|
41
29
|
/**
|
|
42
|
-
* HelpTip —
|
|
30
|
+
* HelpTip — contextual help trigger: icon opens a tooltip with explanation text.
|
|
43
31
|
*
|
|
44
32
|
* @usage
|
|
45
|
-
* Use
|
|
33
|
+
* Use next to labels or terms to show extra context on hover:
|
|
46
34
|
* field hints, term definitions, feature explanations.
|
|
47
35
|
*
|
|
48
36
|
* @example
|
|
@@ -57,19 +45,20 @@ export interface HelpTipProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
57
45
|
* ```
|
|
58
46
|
*/
|
|
59
47
|
declare const HelpTip: React.ForwardRefExoticComponent<HelpTipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*/
|
|
63
|
-
export interface HelpTipIconProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
64
|
-
/**
|
|
65
|
-
* Size of the icon
|
|
66
|
-
* @default 14
|
|
67
|
-
*/
|
|
48
|
+
export interface HelpTipIconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color">, VariantProps<typeof iconColorVariants> {
|
|
49
|
+
/** Size of the icon in pixels. @default 14 */
|
|
68
50
|
iconSize?: number;
|
|
51
|
+
/** Icon type: question circle or info. @default "question" */
|
|
52
|
+
iconVariant?: "question" | "info";
|
|
69
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* HelpTipIcon — standalone help icon (gray-90 default, gray-110 on hover).
|
|
56
|
+
* Use with a custom tooltip or when you only need the icon.
|
|
57
|
+
*/
|
|
70
58
|
declare const HelpTipIcon: React.ForwardRefExoticComponent<HelpTipIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
71
59
|
/**
|
|
72
|
-
* TipWrap — wrapper for
|
|
60
|
+
* TipWrap — wrapper for spacing the help tip inline with text (e.g. after a label).
|
|
61
|
+
* Matches A: margin-left 6px, inline-block, line-height 0.
|
|
73
62
|
*/
|
|
74
63
|
declare const TipWrap: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
75
64
|
export { HelpTip, HelpTipIcon, TipWrap };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { faArrowDown, faArrowLeft, faArrowRight, faArrowsUpDown, faArrowUp, faBars, faBolt, faCaretDown, faCaretLeft, faCaretRight, faCaretUp, faCheck, faChevronLeft, faChevronRight, faCircle, faCircleCheck, faCircleExclamation, faCirclePlus, faCircleQuestion, faCloud, faCog, faCreditCard, faEllipsisVertical, faEnvelope, faKeyboard, faLifeRing, faMagnifyingGlass, faMessage, faPlus, faRightFromBracket, faTrash, faTriangleExclamation, faUser, faUserPlus, faUsers, faWallet, faXmark, } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
export { FaIcon } from './fa-icon';
|
|
@@ -62,8 +62,10 @@ export * from './label';
|
|
|
62
62
|
export * from './layout';
|
|
63
63
|
export * from './legal-agreement';
|
|
64
64
|
export * from './liquidation';
|
|
65
|
+
export * from './liquidation-price';
|
|
65
66
|
export * from './loader-guard';
|
|
66
67
|
export * from './markdown-viewer';
|
|
68
|
+
export * from './modal';
|
|
67
69
|
export * from './navbar';
|
|
68
70
|
export * from './navbar-logo';
|
|
69
71
|
export * from './navitem';
|
|
@@ -97,6 +99,7 @@ export * from './spinner';
|
|
|
97
99
|
export * from './split-list';
|
|
98
100
|
export * from './stat-badge';
|
|
99
101
|
export * from './status-dot';
|
|
102
|
+
export * from './status-elements';
|
|
100
103
|
export * from './status-triangle';
|
|
101
104
|
export * from './stepper';
|
|
102
105
|
export * from './styled-dropdown';
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
declare const inputVariants: (props?: ({
|
|
4
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
4
|
+
size?: "default" | "xs" | "sm" | "lg" | null | undefined;
|
|
5
|
+
colorTheme?: "outlined" | "filledDark" | "filledLight" | null | undefined;
|
|
5
6
|
variant?: "default" | "success" | "error" | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
8
|
/**
|
|
8
9
|
* InputProps — props for Input component.
|
|
9
10
|
*/
|
|
10
|
-
interface InputProps extends Omit<React.ComponentProps<"input">, "size">, VariantProps<typeof inputVariants> {
|
|
11
|
+
export interface InputProps extends Omit<React.ComponentProps<"input">, "size">, VariantProps<typeof inputVariants> {
|
|
12
|
+
startingIcon?: React.ReactNode;
|
|
13
|
+
onStartingIconClick?: () => void;
|
|
14
|
+
endingIcon?: React.ReactNode;
|
|
15
|
+
onEndingIconClick?: () => void;
|
|
11
16
|
hasError?: boolean;
|
|
12
17
|
errorMessage?: string;
|
|
13
18
|
}
|
|
@@ -40,5 +45,5 @@ interface InputProps extends Omit<React.ComponentProps<"input">, "size">, Varian
|
|
|
40
45
|
* <Input size="sm" type="email" />
|
|
41
46
|
* ```
|
|
42
47
|
*/
|
|
43
|
-
export declare
|
|
48
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
44
49
|
export { inputVariants };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Returns callback refs and measured widths for two icon slot elements.
|
|
4
|
+
* Use the widths (with fallback) to set input padding so it matches the icon button width.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useIconSlotWidths(): {
|
|
7
|
+
startSlotWidth: number | null;
|
|
8
|
+
endSlotWidth: number | null;
|
|
9
|
+
setStartRef: (el: HTMLButtonElement | null) => void;
|
|
10
|
+
setEndRef: (el: HTMLButtonElement | null) => void;
|
|
11
|
+
inputPaddingStyle: (hasStart: boolean, hasEnd: boolean) => React.CSSProperties;
|
|
12
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as React } from '../../../../node_modules/.pnpm/react@19.2.0/node_modules/react';
|
|
2
1
|
import { LegalReferences } from '../legal-disclaimer';
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
export interface FooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
4
|
logo?: React.ReactNode;
|
|
5
5
|
copyright?: React.ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './liquidation-price';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HFZones } from '..';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export type LiquidationPriceType = {
|
|
4
|
+
type: "text";
|
|
5
|
+
} | {
|
|
6
|
+
type: "redirect";
|
|
7
|
+
to: string;
|
|
8
|
+
} | {
|
|
9
|
+
type: "graph";
|
|
10
|
+
props: {
|
|
11
|
+
onShow: () => void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export interface LiquidationPriceProps {
|
|
15
|
+
/**
|
|
16
|
+
* Liquidation price (bigint or number)
|
|
17
|
+
*/
|
|
18
|
+
liquidationPrice?: bigint | number;
|
|
19
|
+
/**
|
|
20
|
+
* How to render when price is 0 / N/A: text, redirect link, or button that opens graph
|
|
21
|
+
*/
|
|
22
|
+
type?: LiquidationPriceType;
|
|
23
|
+
/**
|
|
24
|
+
* Health factor zone for optional dot or bars indicator
|
|
25
|
+
*/
|
|
26
|
+
hfZone?: HFZones;
|
|
27
|
+
/**
|
|
28
|
+
* Indicator style when hfZone is set: dot (right) or bars (left)
|
|
29
|
+
*/
|
|
30
|
+
zoneType?: "dot" | "bars";
|
|
31
|
+
/**
|
|
32
|
+
* Label for "check" link/button when type is redirect or graph (e.g. i18n "Check")
|
|
33
|
+
*/
|
|
34
|
+
checkLabel?: React.ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* LiquidationPrice — displays liquidation price with optional HF zone indicator.
|
|
39
|
+
* Matches interface LiquidationPrice structure.
|
|
40
|
+
*/
|
|
41
|
+
export declare function LiquidationPrice({ liquidationPrice, type, hfZone, zoneType, checkLabel, className, }: LiquidationPriceProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modal';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const dialogModalVariants: (props?: ({
|
|
4
|
+
colorTheme?: "default" | "dark" | "dark-transparent" | null | undefined;
|
|
5
|
+
backdrop?: "default" | "success" | "failure" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface ModalProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dialogModalVariants> {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to show the dialog container
|
|
10
|
+
* When false, renders null
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
show?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback when clicking outside the container (on the overlay)
|
|
16
|
+
* Only works when used as a modal overlay
|
|
17
|
+
*/
|
|
18
|
+
onClickOutside?: () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Modal component for responsive content width within dialogs
|
|
22
|
+
* Follows the same pattern as Container from layout/container
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* // With show/hide control
|
|
27
|
+
* <Modal show={isOpen} onClickOutside={handleClose}>
|
|
28
|
+
* <Content />
|
|
29
|
+
* </Modal>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
export { Modal };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from '
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
interface NavbarIndicatorContextType {
|
|
3
3
|
registerItem: (id: string, element: HTMLElement) => void;
|
|
4
4
|
unregisterItem: (id: string) => void;
|
|
@@ -8,14 +8,21 @@
|
|
|
8
8
|
* Props:
|
|
9
9
|
* - `network` — network name (required).
|
|
10
10
|
* - `size` — icon size in pixels (defaults to 20).
|
|
11
|
+
* - `isTest` — whether this is a test network (shows test badge).
|
|
12
|
+
* - `suffixSize` — size of the test badge (defaults to 12).
|
|
13
|
+
* - `showTooltip` — whether to show a tooltip with the network name.
|
|
14
|
+
* - `rounded` — whether to clip the icon to a circle.
|
|
11
15
|
*
|
|
12
|
-
*
|
|
13
|
-
* Automatically falls back to default
|
|
14
|
-
* Icon displays in its original shape (not clipped).
|
|
16
|
+
* Internally uses `RoundedImage` for image loading, retry and fallback logic.
|
|
17
|
+
* Automatically falls back to a default "all networks" icon when loading fails.
|
|
15
18
|
*/
|
|
16
19
|
export interface NetworkIconProps {
|
|
17
20
|
network: string | undefined;
|
|
18
21
|
size?: number;
|
|
22
|
+
isTest?: boolean;
|
|
23
|
+
suffixSize?: number;
|
|
24
|
+
showTooltip?: boolean;
|
|
25
|
+
rounded?: boolean;
|
|
19
26
|
className?: string;
|
|
20
27
|
}
|
|
21
|
-
export declare function NetworkIcon({ network, size, className, }: NetworkIconProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function NetworkIcon({ network, size, isTest, suffixSize, showTooltip, rounded, className, }: NetworkIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RoundedImageProps } from '../rounded-image/rounded-image';
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
export interface PointsReward {
|
|
3
4
|
/**
|
|
@@ -9,7 +10,7 @@ export interface PointsReward {
|
|
|
9
10
|
*/
|
|
10
11
|
type: string;
|
|
11
12
|
}
|
|
12
|
-
export interface PointsIconProps extends React.HTMLAttributes<HTMLImageElement> {
|
|
13
|
+
export interface PointsIconProps extends React.HTMLAttributes<HTMLImageElement>, Omit<RoundedImageProps, "size" | "src" | "alt"> {
|
|
13
14
|
/**
|
|
14
15
|
* Reward information with name and type
|
|
15
16
|
*/
|
|
@@ -22,10 +23,6 @@ export interface PointsIconProps extends React.HTMLAttributes<HTMLImageElement>
|
|
|
22
23
|
* Base URL for static assets (defaults to Gearbox static CDN)
|
|
23
24
|
*/
|
|
24
25
|
staticBaseUrl?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Whether to apply rounded corners (circle)
|
|
27
|
-
*/
|
|
28
|
-
rounded?: boolean;
|
|
29
26
|
}
|
|
30
27
|
/**
|
|
31
28
|
* PointsIcon — component for displaying reward/points program icons.
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Pool points tip for displaying points/rewards info
|
|
4
|
+
*/
|
|
5
|
+
export interface PoolAPYPointsTip {
|
|
6
|
+
reward?: {
|
|
7
|
+
duration?: string;
|
|
8
|
+
condition?: string;
|
|
9
|
+
};
|
|
10
|
+
amount: string;
|
|
11
|
+
name: string;
|
|
12
|
+
tokenTitle?: string;
|
|
13
|
+
fullTip: string;
|
|
14
|
+
}
|
|
2
15
|
export interface PoolAPYTooltipProps {
|
|
3
16
|
/**
|
|
4
17
|
* Trigger element
|
|
@@ -35,6 +48,10 @@ export interface PoolAPYTooltipProps {
|
|
|
35
48
|
apy: number;
|
|
36
49
|
token?: string;
|
|
37
50
|
}>;
|
|
51
|
+
/**
|
|
52
|
+
* Pool points data
|
|
53
|
+
*/
|
|
54
|
+
points?: Array<PoolAPYPointsTip>;
|
|
38
55
|
/**
|
|
39
56
|
* APY 7 days ago (for comparison)
|
|
40
57
|
*/
|
|
@@ -42,6 +59,15 @@ export interface PoolAPYTooltipProps {
|
|
|
42
59
|
value?: number;
|
|
43
60
|
loading?: boolean;
|
|
44
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* External APY data
|
|
64
|
+
*/
|
|
65
|
+
externalAPY?: {
|
|
66
|
+
totalValue: number;
|
|
67
|
+
apy: number;
|
|
68
|
+
name: string;
|
|
69
|
+
tooltip: string;
|
|
70
|
+
};
|
|
45
71
|
/**
|
|
46
72
|
* Tokens list for displaying token names
|
|
47
73
|
*/
|
|
@@ -56,4 +82,4 @@ export interface PoolAPYTooltipProps {
|
|
|
56
82
|
/**
|
|
57
83
|
* PoolAPYTooltip — a tooltip showing pool APY breakdown
|
|
58
84
|
*/
|
|
59
|
-
export declare function PoolAPYTooltip({ children, totalAPY, extraAPYTotal, loading7DAgo, loading, baseAPY, extraAPY, apy7DAgo, tokensList, className, }: PoolAPYTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
export declare function PoolAPYTooltip({ children, totalAPY, extraAPYTotal, loading7DAgo, loading, baseAPY, extraAPY, points, apy7DAgo, externalAPY, tokensList, className, }: PoolAPYTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from '
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
export type PoolPointsColor = "primary" | "secondary" | "green" | "blue" | "yellow";
|
|
3
3
|
export interface PoolPointsIndicatorProps {
|
|
4
4
|
/**
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface RoundedImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface RoundedImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "onError"> {
|
|
3
3
|
/**
|
|
4
4
|
* Size of the image in pixels
|
|
5
5
|
*/
|
|
6
|
-
size
|
|
6
|
+
size: number;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to apply rounded corners (circle)
|
|
9
|
+
*/
|
|
10
|
+
rounded?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Default icon to display if the image fails to load
|
|
13
|
+
*/
|
|
14
|
+
defaultIcon?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Image fit behavior
|
|
17
|
+
* - "contain" — show full image without cropping (best for icons)
|
|
18
|
+
* - "cover" — fill bounds, may crop (best for photos/avatars)
|
|
19
|
+
*/
|
|
20
|
+
fit?: "contain" | "cover";
|
|
7
21
|
}
|
|
8
22
|
/**
|
|
9
23
|
* RoundedImage — a circular image component
|
|
10
24
|
*/
|
|
11
|
-
|
|
25
|
+
declare const RoundedImage: React.ForwardRefExoticComponent<RoundedImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
26
|
+
export { RoundedImage };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const segmentedControlVariants: (props?: ({
|
|
4
|
-
size?: "default" | "
|
|
4
|
+
size?: "default" | "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
5
5
|
fullWidth?: boolean | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
/**
|
|
@@ -3,10 +3,10 @@ import type * as React from "react";
|
|
|
3
3
|
* ShortStringProps — props for ShortString component.
|
|
4
4
|
*/
|
|
5
5
|
export interface ShortStringProps {
|
|
6
|
-
children:
|
|
7
|
-
maxLength?: number;
|
|
8
|
-
className?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
maxLength?: number | "text-overflow";
|
|
9
8
|
showTooltip?: boolean;
|
|
9
|
+
className?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* ShortString — component for truncating text with tooltip showing full content.
|
|
@@ -36,4 +36,4 @@ export interface ShortStringProps {
|
|
|
36
36
|
* </ShortString>
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
export declare function ShortString({ children, maxLength,
|
|
39
|
+
export declare function ShortString({ children, maxLength, showTooltip, className, }: ShortStringProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -2,9 +2,9 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
declare const skeletonVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "lighter" | "darker" | null | undefined;
|
|
5
|
-
speed?: "default" | "
|
|
6
|
-
width?: "full" | "sm" | "lg" | "
|
|
7
|
-
height?: "
|
|
5
|
+
speed?: "default" | "fast" | "slow" | null | undefined;
|
|
6
|
+
width?: "full" | "xs" | "sm" | "lg" | "xl" | "2xl" | "md" | "3/4" | "1/2" | "1/3" | "1/4" | null | undefined;
|
|
7
|
+
height?: "xs" | "sm" | "lg" | "xl" | "2xl" | "md" | "3xl" | "4xl" | "5xl" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
type WidthPreset = NonNullable<VariantProps<typeof skeletonVariants>["width"]>;
|
|
10
10
|
type HeightPreset = NonNullable<VariantProps<typeof skeletonVariants>["height"]>;
|
|
@@ -135,7 +135,7 @@ export interface StatBadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
135
135
|
*/
|
|
136
136
|
export declare const StatBadge: React.ForwardRefExoticComponent<StatBadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
137
137
|
declare const statBadgeGridVariants: (props?: ({
|
|
138
|
-
cols?: 2 | 1 | 3 |
|
|
138
|
+
cols?: 2 | 1 | 3 | 4 | 5 | 6 | null | undefined;
|
|
139
139
|
gap?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
140
140
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
141
141
|
export interface StatBadgeGridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statBadgeGridVariants> {
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const statusDotVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "muted" | "success" | "warning" | "primary" | "alert" | "secondary" | null | undefined;
|
|
5
|
-
size?: "default" | "
|
|
5
|
+
size?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface StatusDotProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statusDotVariants> {
|
|
8
8
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './status-elements';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HFZones } from '..';
|
|
2
|
+
export interface AccountHealthDotProps {
|
|
3
|
+
zone: HFZones;
|
|
4
|
+
size?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* HealthDot — colored dot indicating health factor zone.
|
|
8
|
+
*/
|
|
9
|
+
export declare function HealthDot({ zone, size }: AccountHealthDotProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export interface StatusBarsProps {
|
|
11
|
+
/** Health factor zone; determines how many bars are filled (1–3) and their color. */
|
|
12
|
+
zone: HFZones;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* StatusBars — row of 3 small bars indicating health factor zone (1–3 filled, rest gray).
|
|
16
|
+
*
|
|
17
|
+
* @usage
|
|
18
|
+
* Use next to health factor or TTL to show zone at a glance.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <StatusBars zone="good" />
|
|
23
|
+
* <StatusBars zone="bad" />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function StatusBars({ zone }: StatusBarsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,6 +13,15 @@ export interface GridLoadingLineProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
13
13
|
* @default 6
|
|
14
14
|
*/
|
|
15
15
|
columns?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Custom class name for each cell
|
|
18
|
+
*/
|
|
19
|
+
cellClassName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether this is the last row (hides bottom border)
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
last?: boolean;
|
|
16
25
|
}
|
|
17
26
|
/**
|
|
18
27
|
* GridLoadingLine — loading skeleton row component for grid tables.
|
|
@@ -24,6 +33,8 @@ export interface GridLoadingLineProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
24
33
|
* Props:
|
|
25
34
|
* - `height` — height of the loading line (defaults to "70px").
|
|
26
35
|
* - `columns` — number of skeleton columns to show (defaults to 6).
|
|
36
|
+
* - `cellClassName` — custom class name for each cell.
|
|
37
|
+
* - `last` — whether this is the last row (hides bottom border).
|
|
27
38
|
*
|
|
28
39
|
* Note: Displays multiple skeleton cells matching the table structure with borders and padding.
|
|
29
40
|
*
|
|
@@ -33,4 +44,4 @@ export interface GridLoadingLineProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
33
44
|
* <GridLoadingLine /> // Uses defaults
|
|
34
45
|
* ```
|
|
35
46
|
*/
|
|
36
|
-
export declare function GridLoadingLine({ height, columns, className, ...props }: GridLoadingLineProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare function GridLoadingLine({ height, columns, cellClassName, last, className, ...props }: GridLoadingLineProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
*
|
|
@@ -18,6 +18,10 @@ export interface TableLoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
18
18
|
* @default 5
|
|
19
19
|
*/
|
|
20
20
|
rows?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Custom class name for each cell in loading lines
|
|
23
|
+
*/
|
|
24
|
+
cellClassName?: string;
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
27
|
* TableLoader — loading skeleton component for tables.
|
|
@@ -43,4 +47,4 @@ export interface TableLoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
43
47
|
* </GridTable>
|
|
44
48
|
* ```
|
|
45
49
|
*/
|
|
46
|
-
export declare function TableLoader({ height, columns, rows, className, ...props }: TableLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare function TableLoader({ height, columns, rows, cellClassName, className, ...props }: TableLoaderProps): import("react/jsx-runtime").JSX.Element;
|