@gearbox-protocol/permissionless-ui 1.22.0-next.4 → 1.22.0-next.40
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/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 +161 -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 +15 -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 +141 -0
- package/dist/esm/components/colored-text/colored-text.js +7 -7
- package/dist/esm/components/complex-input/complex-input.js +212 -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 +1 -1
- 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 +6 -6
- 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 +3 -2
- 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 +480 -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/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 +48 -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 +33 -26
- 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 +629 -613
- 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/formatted-number/formatted-number.d.ts +14 -4
- 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 +2 -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/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 +16 -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-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 +7 -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
|
@@ -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,16 @@
|
|
|
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
|
+
zone: HFZones;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* StatusBars — row of bars indicating health factor zone (1–3 filled).
|
|
15
|
+
*/
|
|
16
|
+
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;
|
|
@@ -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?: "primaryDashed" | "secondaryDashed" | "empty" | 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 };
|
|
@@ -1,40 +1,19 @@
|
|
|
1
1
|
import { TokenData } from '@gearbox-protocol/sdk';
|
|
2
|
+
import { ParseSmallNumberResult } from '../../utils';
|
|
2
3
|
import { negativeTokenTemplate, tokenTemplateString } from '../../utils/templates';
|
|
4
|
+
import { FormattedNumberStringProps } from '../formatted-number';
|
|
3
5
|
import type * as React from "react";
|
|
4
6
|
type PartialTokenData = Pick<TokenData, "title" | "decimals"> & {
|
|
5
7
|
symbol?: string;
|
|
6
8
|
};
|
|
7
|
-
export interface TokenTemplateProps {
|
|
8
|
-
/**
|
|
9
|
-
* Token amount in base units (bigint, string, number, or undefined)
|
|
10
|
-
*/
|
|
9
|
+
export interface TokenTemplateProps extends Omit<FormattedNumberStringProps, "value"> {
|
|
11
10
|
value: bigint | string | number | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Token data with title/symbol and decimals
|
|
14
|
-
*/
|
|
15
11
|
token: PartialTokenData | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Number of decimal places to display
|
|
18
|
-
*/
|
|
19
12
|
precision?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Symbol to use between amount and token name
|
|
22
|
-
* @default " "
|
|
23
|
-
*/
|
|
24
|
-
spaceSymbol?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Maximum length of the result string (truncates if exceeded)
|
|
27
|
-
*/
|
|
28
13
|
maxLength?: number;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*/
|
|
33
|
-
allowNegative?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Additional className for styling
|
|
36
|
-
*/
|
|
37
|
-
className?: string;
|
|
14
|
+
formatter?: (amount: bigint | string | number | undefined, decimals: number, precision?: number) => string | ParseSmallNumberResult;
|
|
15
|
+
noFormattedAmountValue?: React.ReactNode;
|
|
16
|
+
showSymbol?: boolean;
|
|
38
17
|
}
|
|
39
18
|
/**
|
|
40
19
|
* TokenTemplate — component for displaying token amounts with symbol.
|
|
@@ -72,5 +51,5 @@ export interface TokenTemplateProps {
|
|
|
72
51
|
* // Output: "-1.5 ETH"
|
|
73
52
|
* ```
|
|
74
53
|
*/
|
|
75
|
-
export declare function TokenTemplate({ value, token, precision,
|
|
54
|
+
export declare function TokenTemplate({ value, token, precision, formatter, noFormattedAmountValue, showSymbol, maxLength, ...rest }: TokenTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
76
55
|
export { tokenTemplateString, negativeTokenTemplate };
|