@gearbox-protocol/ui-kit 4.0.0-next.39 → 4.0.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/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
- package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/badge/chip.cjs +1 -1
- package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -1
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/base/details-view/detail-aside/detail-aside-screen-layout.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -1
- package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/base/section-heading/section-heading.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
- package/dist/cjs/components/base/side-card/side-card.cjs +1 -1
- package/dist/cjs/components/base/stack/stack.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/base/sticky-bar/sticky-bar.cjs +1 -1
- package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -1
- package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
- package/dist/cjs/components/base/values/position-status-badge.cjs +1 -1
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -1
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -1
- package/dist/cjs/components/base-table/base-table.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -1
- package/dist/cjs/components/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/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -1
- package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/ProgressStepper.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/detailed-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-description.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-footer.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-form.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-header.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-overlay.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
- package/dist/cjs/components/dropdown-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/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/head-cell/head-cell.cjs +1 -1
- package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
- package/dist/cjs/components/icons/fa-icon.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/label.cjs +1 -1
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/network-icon/network-indicator.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.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/sdk-status-pill/sdk-status-pill.cjs +1 -1
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/separate-line/separate-line.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/simple-accordion/simple-accordion.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton-stack.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton.cjs +1 -1
- package/dist/cjs/components/slider/slider.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/spinner-loader/spinner-loader.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/cjs/components/status-dot/status-dot.cjs +1 -1
- package/dist/cjs/components/status-elements/status-elements.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/components/text-button/text-button.cjs +1 -1
- package/dist/cjs/components/textarea/textarea.cjs +1 -1
- package/dist/cjs/components/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/tooltip/simple-tooltip.cjs +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/typography/typography.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/vspace/vspace.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.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/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +7 -8
- package/dist/esm/components/alert-badge/alert-badge.js +0 -1
- package/dist/esm/components/alert-dialog/alert-dialog.js +7 -8
- package/dist/esm/components/alert-modal/alert-modal.js +0 -1
- package/dist/esm/components/app-bar/app-bar.js +0 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +18 -19
- package/dist/esm/components/badge/badge.js +2 -3
- package/dist/esm/components/badge/chip.js +4 -5
- package/dist/esm/components/base/amount-input/amount-input.js +13 -14
- package/dist/esm/components/base/amount-input/token-select-panel.js +2 -3
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +2 -3
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +19 -20
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +10 -11
- package/dist/esm/components/base/info-list/info-list.js +6 -7
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +2 -3
- package/dist/esm/components/base/manage-pane/manage-pane.js +4 -5
- package/dist/esm/components/base/position-assets/position-assets.js +2 -3
- package/dist/esm/components/base/review-button/review-button.js +9 -10
- package/dist/esm/components/base/section-heading/section-heading.js +2 -3
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +11 -12
- package/dist/esm/components/base/side-card/side-card.js +15 -16
- package/dist/esm/components/base/stack/stack.js +8 -9
- package/dist/esm/components/base/stat-badge/stat-badge.js +19 -20
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +2 -3
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +6 -7
- package/dist/esm/components/base/values/pnl-value.js +6 -7
- package/dist/esm/components/base/values/position-status-badge.js +2 -3
- package/dist/esm/components/base/values/position-type-badge.js +6 -7
- package/dist/esm/components/base/values/price-impact-value.js +5 -6
- package/dist/esm/components/base/values/scalars.js +12 -13
- package/dist/esm/components/base-link/base-link.js +7 -8
- package/dist/esm/components/base-table/base-table-line.js +2 -3
- package/dist/esm/components/base-table/base-table.js +8 -9
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +2 -3
- package/dist/esm/components/buttons/back-button/back-button.js +6 -7
- package/dist/esm/components/buttons/button/button.js +0 -1
- package/dist/esm/components/buttons/copy-button/copy-button.js +7 -8
- package/dist/esm/components/buttons/external-button/external-button.js +7 -8
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +3 -4
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +2 -3
- package/dist/esm/components/cards/card/card.js +0 -1
- package/dist/esm/components/cards/expandable-call/expandable-call.js +19 -20
- package/dist/esm/components/cards/expandable-card/expandable-card.js +11 -12
- package/dist/esm/components/checkbox/checkbox-labeled.js +0 -1
- package/dist/esm/components/checkbox/checkbox.js +0 -1
- package/dist/esm/components/checkbox-item/checkbox-item.js +9 -10
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +7 -8
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +0 -1
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +0 -1
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +6 -7
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +5 -6
- package/dist/esm/components/composites/notification-center/notification-center.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +6 -7
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +2 -3
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +2 -3
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +2 -3
- package/dist/esm/components/compound-apy/compound-apy.js +26 -27
- package/dist/esm/components/confirm-menu/confirm-menu.js +5 -6
- package/dist/esm/components/detailed-apy/detailed-apy.js +8 -9
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +0 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +0 -1
- package/dist/esm/components/dialog/dialog-container.js +6 -7
- package/dist/esm/components/dialog/dialog-content.js +0 -1
- package/dist/esm/components/dialog/dialog-description.js +4 -5
- package/dist/esm/components/dialog/dialog-footer.js +0 -1
- package/dist/esm/components/dialog/dialog-form.js +11 -12
- package/dist/esm/components/dialog/dialog-header.js +4 -5
- package/dist/esm/components/dialog/dialog-modal-container.js +0 -1
- package/dist/esm/components/dialog/dialog-overlay.js +3 -4
- package/dist/esm/components/dialog/dialog-title.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +7 -8
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +7 -8
- package/dist/esm/components/edit-input/edit-input.js +6 -7
- package/dist/esm/components/error-message/error-line-message.js +5 -6
- package/dist/esm/components/error-message/error-message.js +2 -3
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +0 -1
- package/dist/esm/components/filter/filter-block.js +0 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +3 -4
- package/dist/esm/components/filter/filter-chip.js +0 -1
- package/dist/esm/components/filter/filter-chips.js +5 -6
- package/dist/esm/components/filter/filter-dropdown-item.js +11 -12
- package/dist/esm/components/filter/filter-group.js +0 -1
- package/dist/esm/components/filter/filter-label.js +0 -1
- package/dist/esm/components/filter/filter-modal-item.js +4 -5
- package/dist/esm/components/filter/filter-modal.js +2 -3
- package/dist/esm/components/filter/filter-radio-item.js +4 -5
- package/dist/esm/components/filter/filter-separator.js +3 -4
- package/dist/esm/components/formatted-number/formatted-number.js +2 -3
- package/dist/esm/components/head-cell/head-cell.js +12 -13
- package/dist/esm/components/health-factor/health-factor.js +2 -3
- package/dist/esm/components/help-tip/help-tip.js +4 -5
- package/dist/esm/components/icon-button/icon-button.js +6 -7
- package/dist/esm/components/icons/fa-icon.js +2 -3
- package/dist/esm/components/input/input.js +2 -3
- package/dist/esm/components/label/label.js +0 -1
- package/dist/esm/components/link/link.js +11 -12
- package/dist/esm/components/loader/loader.js +0 -1
- package/dist/esm/components/loading-bar/loading-bar.js +0 -1
- package/dist/esm/components/modal/modal.js +7 -8
- package/dist/esm/components/navbar-logo/navbar-logo.js +2 -3
- package/dist/esm/components/network-icon/network-indicator.js +6 -7
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +2 -3
- package/dist/esm/components/radio-group/radio-group.js +6 -7
- package/dist/esm/components/rounded-image/rounded-image.js +0 -1
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +5 -6
- package/dist/esm/components/search-line/search-line.js +0 -1
- package/dist/esm/components/segmented-control/segmented-control.js +6 -7
- package/dist/esm/components/select/select.js +3 -4
- package/dist/esm/components/separate-line/separate-line.js +0 -1
- package/dist/esm/components/short-string/short-string.js +3 -4
- package/dist/esm/components/simple-accordion/simple-accordion.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +4 -5
- package/dist/esm/components/skeleton/skeleton-stack.js +6 -7
- package/dist/esm/components/skeleton/skeleton.js +2 -3
- package/dist/esm/components/slider/slider.js +0 -1
- package/dist/esm/components/spinner/spinner.js +0 -1
- package/dist/esm/components/spinner-loader/spinner-loader.js +7 -8
- package/dist/esm/components/split-list/split-list.js +4 -5
- package/dist/esm/components/status-dot/status-dot.js +3 -4
- package/dist/esm/components/status-elements/status-elements.js +6 -7
- package/dist/esm/components/tab-control/tab-control.js +10 -11
- package/dist/esm/components/table/grid-loading-line.js +13 -14
- package/dist/esm/components/table/table-sm.js +20 -21
- package/dist/esm/components/table/table.js +0 -1
- package/dist/esm/components/tabs/tabs.js +6 -7
- package/dist/esm/components/text-button/text-button.js +9 -10
- package/dist/esm/components/textarea/textarea.js +0 -1
- package/dist/esm/components/tip-card/tip-card.js +4 -5
- package/dist/esm/components/token-icon/token-icon.js +11 -12
- package/dist/esm/components/token-symbol/token-symbol.js +0 -1
- package/dist/esm/components/token-template/token-template.js +8 -9
- package/dist/esm/components/tooltip/simple-tooltip.js +8 -9
- package/dist/esm/components/tooltip/tooltip.js +6 -7
- package/dist/esm/components/trading-view/trading-view.js +2 -3
- package/dist/esm/components/typography/typography.js +4 -5
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +6 -7
- package/dist/esm/components/vspace/vspace.js +7 -8
- package/dist/esm/components/with-copy/with-copy.js +2 -3
- package/dist/esm/components/with-title/with-title.js +7 -8
- package/dist/esm/hooks/index.js +18 -20
- package/dist/esm/hooks/use-debounce-call.js +5 -6
- package/dist/esm/index.js +162 -164
- package/dist/esm/utils/format-money.js +14 -15
- package/dist/esm/utils/templates.js +21 -22
- package/dist/types/components/token-icon/token-icon.d.ts +1 -2
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/utils/token-icon-source.d.ts +25 -1
- package/package.json +1 -1
- package/dist/cjs/hooks/use-hf.cjs +0 -1
- package/dist/esm/hooks/use-hf.js +0 -43
- package/dist/types/hooks/use-hf.d.ts +0 -17
package/dist/esm/index.js
CHANGED
|
@@ -262,61 +262,60 @@ import { useControllableState as aT } from "./hooks/use-controllable-state.js";
|
|
|
262
262
|
import { useDebounce as nT } from "./hooks/use-debounce.js";
|
|
263
263
|
import { useDebounceCall as mT } from "./hooks/use-debounce-call.js";
|
|
264
264
|
import { getSortForField as fT, getSortForFields as sT, nextMultiSortState as xT, useFilterAllSelected as TT, useMultiSort as dT, useRangeFilter as gT, useSelectFilter as cT, useSort as uT } from "./hooks/use-filter.js";
|
|
265
|
-
import {
|
|
266
|
-
import {
|
|
267
|
-
import {
|
|
268
|
-
import {
|
|
269
|
-
import {
|
|
270
|
-
import {
|
|
271
|
-
import {
|
|
272
|
-
import {
|
|
273
|
-
import {
|
|
274
|
-
import {
|
|
275
|
-
import {
|
|
276
|
-
import {
|
|
277
|
-
import {
|
|
278
|
-
import {
|
|
279
|
-
import {
|
|
280
|
-
import {
|
|
281
|
-
import {
|
|
282
|
-
import {
|
|
283
|
-
import {
|
|
284
|
-
import {
|
|
285
|
-
import {
|
|
286
|
-
import {
|
|
287
|
-
import {
|
|
288
|
-
import {
|
|
289
|
-
import {
|
|
290
|
-
import {
|
|
291
|
-
import {
|
|
292
|
-
import {
|
|
293
|
-
import {
|
|
294
|
-
import {
|
|
295
|
-
import {
|
|
296
|
-
import {
|
|
297
|
-
import {
|
|
298
|
-
import {
|
|
299
|
-
import {
|
|
300
|
-
import {
|
|
301
|
-
import {
|
|
302
|
-
import {
|
|
303
|
-
import {
|
|
304
|
-
import {
|
|
305
|
-
import {
|
|
306
|
-
import {
|
|
307
|
-
import {
|
|
308
|
-
import {
|
|
309
|
-
import {
|
|
310
|
-
import {
|
|
311
|
-
import {
|
|
312
|
-
import {
|
|
313
|
-
import {
|
|
314
|
-
import {
|
|
315
|
-
import {
|
|
316
|
-
import {
|
|
317
|
-
import {
|
|
318
|
-
import {
|
|
319
|
-
import { BaseTableLineTest as Sc, BaseTableTest as Cc } from "./components/base-table/constants.js";
|
|
265
|
+
import { useIsDesktop as CT, useIsExtraSmall as AT, useIsMedium as bT, useIsMobile as PT, useIsTablet as DT, useMediaQuery as LT } from "./hooks/use-media-query.js";
|
|
266
|
+
import { useObservedWidthKey as IT } from "./hooks/use-observed-width-key.js";
|
|
267
|
+
import { useOpenedState as kT } from "./hooks/use-opened-state.js";
|
|
268
|
+
import { usePrevious as wT } from "./hooks/use-previous.js";
|
|
269
|
+
import { useSmartNumberInput as MT } from "./hooks/use-smart-number-input.js";
|
|
270
|
+
import { default as RT } from "./locale/en.json.js";
|
|
271
|
+
import { generateId as yT, useFormFieldIds as vT } from "./utils/a11y.js";
|
|
272
|
+
import { pointProgramsOf as NT, positiveTokenRewardsOf as GT, tokenRewardsOf as OT, totalApyOf as WT } from "./utils/apy-breakdown.js";
|
|
273
|
+
import { bnToInputView as XT } from "./utils/bn-to-input-view.js";
|
|
274
|
+
import { bnToPrettyView as qT } from "./utils/bn-to-pretty-view.js";
|
|
275
|
+
import { bpsToPercent as zT } from "./utils/bps.js";
|
|
276
|
+
import { cn as QT } from "./utils/cn.js";
|
|
277
|
+
import { generateColorsFromBase as JT, getCSSVariable as $T, hexToRgba as ed, hslToHex as od, resolveCSSColor as rd } from "./utils/colors.js";
|
|
278
|
+
import { copyToClipboard as ad } from "./utils/copy.js";
|
|
279
|
+
import { convertPercent as nd, formatBytecodeSize as pd, formatBytecodeVersion as md, formatTimestamp as ld, shortenHash as fd, significantTrunc as sd } from "./utils/format.js";
|
|
280
|
+
import { formatAssetAmount as Td } from "./utils/format-asset-amount.js";
|
|
281
|
+
import { formatLeverage as gd } from "./utils/format-leverage.js";
|
|
282
|
+
import { formatCompactPercent as ud, formatMoney as Sd, formatMoneyAmount as Cd, formatPercentAmount as Ad, percentTemplate as bd, percentageTemplate as Pd } from "./utils/format-money.js";
|
|
283
|
+
import { FORMAT_CONSTANTS as Ld, formatNumberWithSuffix as Bd, formatPrice as Id, getAdaptiveDecimals as hd, isBelowDisplayThreshold as kd, isEffectivelyZero as Vd, toSignificantDigits as wd } from "./utils/format-number.js";
|
|
284
|
+
import { slippageTemplate as Md } from "./utils/format-slippage.js";
|
|
285
|
+
import { formatChipLeverage as Rd, leveragePresets as _d } from "./utils/leverage-presets.js";
|
|
286
|
+
import { allLoaded as vd, loadingProgress as Hd, round5 as Nd } from "./utils/loading.js";
|
|
287
|
+
import { decimalsToStep as Od, findClosestPoint as Wd, formatWithDecimals as Ud, formatWithoutDecimals as Xd, splitInterval as Zd, validateMinMax as qd } from "./utils/math.js";
|
|
288
|
+
import { getNetworkIcon as zd } from "./utils/network-icons.js";
|
|
289
|
+
import { bnToLiquidationPriceView as Qd, isPositiveFloat as jd, parseInputToBN as Jd, parseSmallNumber as $d } from "./utils/parse-input-to-bn.js";
|
|
290
|
+
import { pluralize as og, selectPluralString as rg } from "./utils/plural.js";
|
|
291
|
+
import { getAvailableRanges as ag } from "./utils/ranges.js";
|
|
292
|
+
import { extractTextFromLabel as ng, serializeValue as pg } from "./utils/react.js";
|
|
293
|
+
import { searchInString as lg } from "./utils/search.js";
|
|
294
|
+
import { createTokenSearchFilter as sg, searchInToken as xg } from "./utils/search-in-token.js";
|
|
295
|
+
import { shortSHA as dg } from "./utils/short-sha.js";
|
|
296
|
+
import { isLongString as cg, shortenString as ug } from "./utils/shorten-string.js";
|
|
297
|
+
import { negativeTokenTemplate as Cg, tokenTemplate as Ag, tokenTemplateNumber as bg, tokenTemplateString as Pg } from "./utils/templates.js";
|
|
298
|
+
import { getTokenIcon as Lg, parseShareTokenUnderlying as Bg } from "./utils/token-icon-source.js";
|
|
299
|
+
import { TTL_CONSTANTS as hg, getTTLZones as kg, ttlFromTimestamp as Vg, ttlLeft as wg, ttlLeftHuman as Fg } from "./utils/ttl.js";
|
|
300
|
+
import { openInNewWindow as Eg } from "./utils/window.js";
|
|
301
|
+
import { Z_INDEX as _g, Z_INDEX_VALUES as yg } from "./utils/z-index.js";
|
|
302
|
+
import { AmountInputTest as Hg } from "./components/base/amount-input/constants.js";
|
|
303
|
+
import { DetailedPageTitleTest as Gg } from "./components/base/detailed-page-title/constants.js";
|
|
304
|
+
import { DetailsViewTest as Wg } from "./components/base/details-view/constants.js";
|
|
305
|
+
import { HistoryChartTest as Xg } from "./components/base/history-chart/constants.js";
|
|
306
|
+
import { InfoListTest as qg } from "./components/base/info-list/constants.js";
|
|
307
|
+
import { LeverageInputTest as zg } from "./components/base/leverage-input/constants.js";
|
|
308
|
+
import { ManagePaneTest as Qg } from "./components/base/manage-pane/constants.js";
|
|
309
|
+
import { PageTitleTest as Jg } from "./components/base/page-title/constants.js";
|
|
310
|
+
import { ReviewButtonTest as ec } from "./components/base/review-button/constants.js";
|
|
311
|
+
import { SectionHeadingTest as rc } from "./components/base/section-heading/constants.js";
|
|
312
|
+
import { SegmentedTabsTest as ac } from "./components/base/segmented-tabs/constants.js";
|
|
313
|
+
import { StackTest as nc } from "./components/base/stack/constants.js";
|
|
314
|
+
import { StatBadgeTest as mc } from "./components/base/stat-badge/constants.js";
|
|
315
|
+
import { StickyBarTest as fc } from "./components/base/sticky-bar/constants.js";
|
|
316
|
+
import { TabberTest as xc } from "./components/base/tabber/constants.js";
|
|
317
|
+
import { TokenAmountTest as dc } from "./components/base/token-amount/constants.js";
|
|
318
|
+
import { BaseTableLineTest as cc, BaseTableTest as uc } from "./components/base-table/constants.js";
|
|
320
319
|
export {
|
|
321
320
|
In as AXIS_EDGE_LABEL_PADDING_PX,
|
|
322
321
|
hn as AXIS_FONT_SIZE,
|
|
@@ -343,7 +342,7 @@ export {
|
|
|
343
342
|
yt as AllocationWheel,
|
|
344
343
|
Gt as AllocationWheelTest,
|
|
345
344
|
r as AmountInput,
|
|
346
|
-
|
|
345
|
+
Hg as AmountInputTest,
|
|
347
346
|
Tr as AppBar,
|
|
348
347
|
dr as AppBarCenter,
|
|
349
348
|
gr as AppBarCenterContent,
|
|
@@ -366,8 +365,8 @@ export {
|
|
|
366
365
|
Er as BaseLink,
|
|
367
366
|
_r as BaseTable,
|
|
368
367
|
vr as BaseTableLine,
|
|
369
|
-
|
|
370
|
-
|
|
368
|
+
cc as BaseTableLineTest,
|
|
369
|
+
uc as BaseTableTest,
|
|
371
370
|
Hm as BlockedRegionDialog,
|
|
372
371
|
n as BorrowRateBlock,
|
|
373
372
|
m as BorrowRateBlockTest,
|
|
@@ -408,11 +407,11 @@ export {
|
|
|
408
407
|
d as DetailedPageTitle,
|
|
409
408
|
Wa as DetailedPageTitleCopyButton,
|
|
410
409
|
Xa as DetailedPageTitleExplorerDropdown,
|
|
411
|
-
|
|
410
|
+
Gg as DetailedPageTitleTest,
|
|
412
411
|
A as DetailsView,
|
|
413
412
|
b as DetailsViewLeftPane,
|
|
414
413
|
P as DetailsViewManagePane,
|
|
415
|
-
|
|
414
|
+
Wg as DetailsViewTest,
|
|
416
415
|
za as Dialog,
|
|
417
416
|
Ja as DialogContainer,
|
|
418
417
|
ei as DialogContent,
|
|
@@ -442,13 +441,13 @@ export {
|
|
|
442
441
|
Ui as DropdownMenuSubTrigger,
|
|
443
442
|
Bi as DropdownMenuTrigger,
|
|
444
443
|
Zi as EditInput,
|
|
445
|
-
|
|
444
|
+
RT as EnglishLocale,
|
|
446
445
|
Ki as ErrorLineMessage,
|
|
447
446
|
Yi as ErrorMessage,
|
|
448
447
|
Pt as ExpandablCall,
|
|
449
448
|
Lt as ExpandableCard,
|
|
450
449
|
tt as ExternalButton,
|
|
451
|
-
|
|
450
|
+
Ld as FORMAT_CONSTANTS,
|
|
452
451
|
fm as FaIcon,
|
|
453
452
|
ji as FadeoutLoading,
|
|
454
453
|
$i as FilterBlock,
|
|
@@ -495,12 +494,12 @@ export {
|
|
|
495
494
|
cp as HelpTip,
|
|
496
495
|
up as HelpTipIcon,
|
|
497
496
|
k as HistoryChart,
|
|
498
|
-
|
|
497
|
+
Xg as HistoryChartTest,
|
|
499
498
|
Pp as IconButton,
|
|
500
499
|
xm as InfiniteScrollWrapper,
|
|
501
500
|
w as InfoLine,
|
|
502
501
|
F as InfoList,
|
|
503
|
-
|
|
502
|
+
qg as InfoListTest,
|
|
504
503
|
_ as InfoPortalOut,
|
|
505
504
|
y as InfoPortalProvider,
|
|
506
505
|
M as InfoSectionTitle,
|
|
@@ -514,7 +513,7 @@ export {
|
|
|
514
513
|
Um as LegalAgreementPanel,
|
|
515
514
|
Xm as LegalAgreementPanelTest,
|
|
516
515
|
H as LeverageInput,
|
|
517
|
-
|
|
516
|
+
zg as LeverageInputTest,
|
|
518
517
|
W as LeveragePresetChips,
|
|
519
518
|
G as LeveragePresetChipsTest,
|
|
520
519
|
No as LeverageValue,
|
|
@@ -532,7 +531,7 @@ export {
|
|
|
532
531
|
ee as ManagePaneMessage,
|
|
533
532
|
oe as ManagePaneTab,
|
|
534
533
|
re as ManagePaneTabDropdown,
|
|
535
|
-
|
|
534
|
+
Qg as ManagePaneTest,
|
|
536
535
|
qa as Modal,
|
|
537
536
|
ne as MoreAccordion,
|
|
538
537
|
ae as MoreAccordionTest,
|
|
@@ -548,7 +547,7 @@ export {
|
|
|
548
547
|
ci as OneFieldDialog,
|
|
549
548
|
xe as PageHeadProvider,
|
|
550
549
|
Te as PageTitle,
|
|
551
|
-
|
|
550
|
+
Jg as PageTitleTest,
|
|
552
551
|
Lo as PnlValue,
|
|
553
552
|
Dl as PointsIcon,
|
|
554
553
|
E as PointsInfoLine,
|
|
@@ -577,7 +576,7 @@ export {
|
|
|
577
576
|
kl as RadioGroupItem,
|
|
578
577
|
lt as RangeButtons,
|
|
579
578
|
De as ReviewButton,
|
|
580
|
-
|
|
579
|
+
ec as ReviewButtonTest,
|
|
581
580
|
wl as RoundedImage,
|
|
582
581
|
he as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
583
582
|
Re as SPACE_HEIGHT,
|
|
@@ -586,10 +585,10 @@ export {
|
|
|
586
585
|
vl as SdkStatusPillTest,
|
|
587
586
|
Ul as SearchLine,
|
|
588
587
|
Be as SectionHeading,
|
|
589
|
-
|
|
588
|
+
rc as SectionHeadingTest,
|
|
590
589
|
zl as SegmentedControl,
|
|
591
590
|
ke as SegmentedTabs,
|
|
592
|
-
|
|
591
|
+
ac as SegmentedTabsTest,
|
|
593
592
|
jl as Select,
|
|
594
593
|
Jl as SelectContent,
|
|
595
594
|
$l as SelectGroup,
|
|
@@ -623,14 +622,14 @@ export {
|
|
|
623
622
|
Yf as SpinnerOverlay,
|
|
624
623
|
$f as SplitList,
|
|
625
624
|
ve as Stack,
|
|
626
|
-
|
|
625
|
+
nc as StackTest,
|
|
627
626
|
Ne as StatBadge,
|
|
628
627
|
Ge as StatBadgeGrid,
|
|
629
|
-
|
|
628
|
+
mc as StatBadgeTest,
|
|
630
629
|
is as StatusBars,
|
|
631
630
|
os as StatusDot,
|
|
632
631
|
We as StickyBar,
|
|
633
|
-
|
|
632
|
+
fc as StickyBarTest,
|
|
634
633
|
qe as StrategyApyBreakdownCard,
|
|
635
634
|
Xe as StrategyApyBreakdownCardTest,
|
|
636
635
|
wt as StyledButton,
|
|
@@ -639,13 +638,13 @@ export {
|
|
|
639
638
|
Of as THEME_COLOR_MAP,
|
|
640
639
|
Wf as THUMB_HALF,
|
|
641
640
|
Uf as THUMB_SIZE,
|
|
642
|
-
|
|
641
|
+
hg as TTL_CONSTANTS,
|
|
643
642
|
st as TabButton,
|
|
644
643
|
ps as TabControl,
|
|
645
644
|
ms as TabItem,
|
|
646
645
|
ze as Tabber,
|
|
647
646
|
Ye as TabberSection,
|
|
648
|
-
|
|
647
|
+
xc as TabberTest,
|
|
649
648
|
Ms as Table,
|
|
650
649
|
Es as TableBody,
|
|
651
650
|
Rs as TableCaption,
|
|
@@ -674,7 +673,7 @@ export {
|
|
|
674
673
|
mo as TitleMeta,
|
|
675
674
|
no as TitleMetaTest,
|
|
676
675
|
fo as TokenAmount,
|
|
677
|
-
|
|
676
|
+
dc as TokenAmountTest,
|
|
678
677
|
Go as TokenBigint,
|
|
679
678
|
Tx as TokenIcon,
|
|
680
679
|
go as TokenPairSymbol,
|
|
@@ -714,26 +713,26 @@ export {
|
|
|
714
713
|
Xl as WithSearchLine,
|
|
715
714
|
Xx as WithTitle,
|
|
716
715
|
Kx as YieldBreakdownTooltip,
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
_g as Z_INDEX,
|
|
717
|
+
yg as Z_INDEX_VALUES,
|
|
719
718
|
jo as alertBadgeVariants,
|
|
720
|
-
|
|
719
|
+
vd as allLoaded,
|
|
721
720
|
Qr as backButtonVariants,
|
|
722
721
|
Ir as badgeVariants,
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
722
|
+
XT as bnToInputView,
|
|
723
|
+
Qd as bnToLiquidationPriceView,
|
|
724
|
+
qT as bnToPrettyView,
|
|
726
725
|
Uo as bps,
|
|
727
|
-
|
|
726
|
+
zT as bpsToPercent,
|
|
728
727
|
$r as buttonVariants,
|
|
729
|
-
|
|
728
|
+
QT as cn,
|
|
730
729
|
aa as computeTransactionConfirmDialogLayout,
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
730
|
+
nd as convertPercent,
|
|
731
|
+
ad as copyToClipboard,
|
|
732
|
+
sg as createTokenSearchFilter,
|
|
733
|
+
Od as decimalsToStep,
|
|
735
734
|
Yx as designTokens,
|
|
736
|
-
|
|
735
|
+
ng as extractTextFromLabel,
|
|
737
736
|
Bp as faArrowDown,
|
|
738
737
|
Ip as faArrowLeft,
|
|
739
738
|
hp as faArrowRight,
|
|
@@ -773,39 +772,39 @@ export {
|
|
|
773
772
|
pm as faWallet,
|
|
774
773
|
mm as faXmark,
|
|
775
774
|
Pn as filterBlockVariants,
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
775
|
+
Wd as findClosestPoint,
|
|
776
|
+
Td as formatAssetAmount,
|
|
777
|
+
pd as formatBytecodeSize,
|
|
778
|
+
md as formatBytecodeVersion,
|
|
779
|
+
Rd as formatChipLeverage,
|
|
780
|
+
ud as formatCompactPercent,
|
|
781
|
+
gd as formatLeverage,
|
|
782
|
+
Sd as formatMoney,
|
|
783
|
+
Cd as formatMoneyAmount,
|
|
784
|
+
Bd as formatNumberWithSuffix,
|
|
785
|
+
Ad as formatPercentAmount,
|
|
786
|
+
Id as formatPrice,
|
|
787
|
+
ld as formatTimestamp,
|
|
788
|
+
Ud as formatWithDecimals,
|
|
789
|
+
Xd as formatWithoutDecimals,
|
|
790
|
+
JT as generateColorsFromBase,
|
|
791
|
+
yT as generateId,
|
|
792
|
+
hd as getAdaptiveDecimals,
|
|
793
|
+
ag as getAvailableRanges,
|
|
795
794
|
Zr as getBreakpointState,
|
|
796
|
-
|
|
795
|
+
$T as getCSSVariable,
|
|
797
796
|
Rn as getDefaultOptions,
|
|
798
797
|
_n as getDefaultSeries,
|
|
799
798
|
yn as getDefaultVerticalLine,
|
|
800
799
|
dp as getHFZones,
|
|
801
800
|
Xf as getIntervalBounds,
|
|
802
|
-
|
|
801
|
+
zd as getNetworkIcon,
|
|
803
802
|
Zn as getSeriesColorPalette,
|
|
804
803
|
fT as getSortForField,
|
|
805
804
|
sT as getSortForFields,
|
|
806
|
-
|
|
805
|
+
kg as getTTLZones,
|
|
807
806
|
Zf as getThumbInBoundsOffset,
|
|
808
|
-
|
|
807
|
+
Lg as getTokenIcon,
|
|
809
808
|
qn as getVerticalLineLabelStyle,
|
|
810
809
|
Kn as getVerticalLineTooltipContent,
|
|
811
810
|
Hn as getXFormatter,
|
|
@@ -815,15 +814,15 @@ export {
|
|
|
815
814
|
hs as gridTableCellVariants,
|
|
816
815
|
ks as gridTableHeadVariants,
|
|
817
816
|
Vs as gridTableVariants,
|
|
818
|
-
|
|
819
|
-
|
|
817
|
+
ed as hexToRgba,
|
|
818
|
+
od as hslToHex,
|
|
820
819
|
Dp as iconButtonVariants,
|
|
821
820
|
gm as inputVariants,
|
|
822
821
|
jx as interactiveVariants,
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
822
|
+
kd as isBelowDisplayThreshold,
|
|
823
|
+
Vd as isEffectivelyZero,
|
|
824
|
+
cg as isLongString,
|
|
825
|
+
jd as isPositiveFloat,
|
|
827
826
|
Qe as isTabber,
|
|
828
827
|
Sm as labelVariants,
|
|
829
828
|
qm as legalAgreementAwaitingDescriptionVariants,
|
|
@@ -837,45 +836,45 @@ export {
|
|
|
837
836
|
el as legalAgreementPanelNotificationVariants,
|
|
838
837
|
ol as legalAgreementPanelRootVariants,
|
|
839
838
|
rl as legalAgreementPanelV2BannerVariants,
|
|
840
|
-
|
|
841
|
-
|
|
839
|
+
_d as leveragePresets,
|
|
840
|
+
Hd as loadingProgress,
|
|
842
841
|
vf as makeMarkerPoints,
|
|
843
|
-
|
|
842
|
+
Cg as negativeTokenTemplate,
|
|
844
843
|
xT as nextMultiSortState,
|
|
845
|
-
|
|
844
|
+
Eg as openInNewWindow,
|
|
846
845
|
Jx as paddingVariants,
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
846
|
+
Jd as parseInputToBN,
|
|
847
|
+
Bg as parseShareTokenUnderlying,
|
|
848
|
+
$d as parseSmallNumber,
|
|
849
|
+
bd as percentTemplate,
|
|
850
|
+
Pd as percentageTemplate,
|
|
851
|
+
og as pluralize,
|
|
852
|
+
NT as pointProgramsOf,
|
|
853
|
+
GT as positiveTokenRewardsOf,
|
|
855
854
|
dx as preloadTokenIcons,
|
|
856
855
|
_o as priceImpact,
|
|
857
|
-
|
|
856
|
+
rd as resolveCSSColor,
|
|
858
857
|
qf as resolveColor,
|
|
859
858
|
Hf as resolveSnap,
|
|
860
|
-
|
|
859
|
+
Nd as round5,
|
|
861
860
|
Nl as sdkStatusDotVariant,
|
|
862
|
-
|
|
863
|
-
|
|
861
|
+
lg as searchInString,
|
|
862
|
+
xg as searchInToken,
|
|
864
863
|
Zl as searchLineInputVariants,
|
|
865
864
|
ql as searchLineVariants,
|
|
866
865
|
Yl as segmentedControlVariants,
|
|
867
|
-
|
|
866
|
+
rg as selectPluralString,
|
|
868
867
|
mf as selectTriggerVariants,
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
868
|
+
pg as serializeValue,
|
|
869
|
+
dg as shortSHA,
|
|
870
|
+
fd as shortenHash,
|
|
871
|
+
ug as shortenString,
|
|
873
872
|
Ea as shouldShowTransactionProgressStepper,
|
|
874
|
-
|
|
873
|
+
sd as significantTrunc,
|
|
875
874
|
$x as sizeVariants,
|
|
876
875
|
Pf as skeletonVariants,
|
|
877
|
-
|
|
878
|
-
|
|
876
|
+
Md as slippageTemplate,
|
|
877
|
+
Zd as splitInterval,
|
|
879
878
|
eT as stateVariants,
|
|
880
879
|
rs as statusDotVariants,
|
|
881
880
|
qr as subscribeBreakpoints,
|
|
@@ -884,19 +883,19 @@ export {
|
|
|
884
883
|
Ws as tableVariants,
|
|
885
884
|
ix as textareaVariants,
|
|
886
885
|
sx as tipCardVariants,
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
886
|
+
wd as toSignificantDigits,
|
|
887
|
+
OT as tokenRewardsOf,
|
|
888
|
+
Ag as tokenTemplate,
|
|
889
|
+
bg as tokenTemplateNumber,
|
|
890
|
+
Pg as tokenTemplateString,
|
|
891
|
+
WT as totalApyOf,
|
|
893
892
|
pa as transactionConfirmDialogShellVariants,
|
|
894
893
|
ma as transactionConfirmModalContainerVariants,
|
|
895
894
|
la as transactionConfirmPreviewScrollVariants,
|
|
896
895
|
fa as transactionConfirmShellContentVariants,
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
896
|
+
Vg as ttlFromTimestamp,
|
|
897
|
+
wg as ttlLeft,
|
|
898
|
+
Fg as ttlLeftHuman,
|
|
900
899
|
_x as typographyVariants,
|
|
901
900
|
Kr as useBreakpointContext,
|
|
902
901
|
rT as useCheckboxSelect,
|
|
@@ -905,32 +904,31 @@ export {
|
|
|
905
904
|
mT as useDebounceCall,
|
|
906
905
|
Je as useDetailScrollSpy,
|
|
907
906
|
TT as useFilterAllSelected,
|
|
908
|
-
|
|
907
|
+
vT as useFormFieldIds,
|
|
909
908
|
rp as useGraphAside,
|
|
910
|
-
CT as useHF,
|
|
911
909
|
ls as useHashTabs,
|
|
912
910
|
Mx as useIntlTyped,
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
911
|
+
CT as useIsDesktop,
|
|
912
|
+
AT as useIsExtraSmall,
|
|
913
|
+
bT as useIsMedium,
|
|
914
|
+
PT as useIsMobile,
|
|
915
|
+
DT as useIsTablet,
|
|
916
|
+
LT as useMediaQuery,
|
|
919
917
|
dT as useMultiSort,
|
|
920
918
|
ul as useNavigationAdapter,
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
919
|
+
IT as useObservedWidthKey,
|
|
920
|
+
kT as useOpenedState,
|
|
921
|
+
wT as usePrevious,
|
|
924
922
|
gT as useRangeFilter,
|
|
925
923
|
fs as useSectionTab,
|
|
926
924
|
cT as useSelectFilter,
|
|
927
925
|
Ff as useSliderContext,
|
|
928
|
-
|
|
926
|
+
MT as useSmartNumberInput,
|
|
929
927
|
uT as useSort,
|
|
930
928
|
ss as useTabControl,
|
|
931
929
|
mx as useTheme,
|
|
932
930
|
eo as useTitleText,
|
|
933
931
|
Nf as validateMarkerPoints,
|
|
934
|
-
|
|
932
|
+
qd as validateMinMax,
|
|
935
933
|
Hx as verticalIndicatorVariants
|
|
936
934
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BigIntMath as b } from "@gearbox-protocol/sdk/
|
|
2
|
-
import { formatBN as g, WAD_DECIMALS_POW as h, PERCENTAGE_FACTOR as E } from "@gearbox-protocol/sdk/onchain";
|
|
1
|
+
import { BigIntMath as b, formatBN as g, WAD_DECIMALS_POW as h, PERCENTAGE_FACTOR as E } from "@gearbox-protocol/sdk/onchain";
|
|
3
2
|
import "react";
|
|
4
3
|
import { bnToInputView as x } from "./bn-to-input-view.js";
|
|
5
4
|
import "clsx";
|
|
@@ -12,8 +11,8 @@ const A = 10000000000000000n;
|
|
|
12
11
|
function F(t) {
|
|
13
12
|
return BigInt(t.toFixed(18).replace(".", ""));
|
|
14
13
|
}
|
|
15
|
-
function
|
|
16
|
-
const r = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "",
|
|
14
|
+
function K(t, e) {
|
|
15
|
+
const r = typeof t == "number" && t < 0 || typeof t == "bigint" && t < 0n ? "-" : "", s = typeof t == "number" ? F(Math.abs(t)) : b.abs(t), u = s < A && s > 0n, a = u ? "0.01" : g(s, h, e), o = `${r}$${a}`;
|
|
17
16
|
return u ? `< ${o}` : o;
|
|
18
17
|
}
|
|
19
18
|
const C = 1e3, P = [
|
|
@@ -38,10 +37,10 @@ function D(t, e, i = !0) {
|
|
|
38
37
|
const r = typeof t == "number" ? t : Number(t);
|
|
39
38
|
return Number.isNaN(r) || r === void 0 || r === null ? "0" : r === 0 ? 0 : i && Math.abs(r) >= C ? `${r < 0 ? "-" : ""}${d(Math.abs(r), e)}` : r.toFixed(e);
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function V(t, e = 2) {
|
|
42
41
|
return B(t, e);
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function W(t, e = 2) {
|
|
45
44
|
const i = Number(t) / Number(E);
|
|
46
45
|
return `${D(i, e)}%`;
|
|
47
46
|
}
|
|
@@ -53,20 +52,20 @@ const c = {
|
|
|
53
52
|
minExponentialThreshold: 1e-4,
|
|
54
53
|
maxExponentialThreshold: 1e6,
|
|
55
54
|
locale: "en-US"
|
|
56
|
-
},
|
|
55
|
+
}, w = ({
|
|
57
56
|
amount: t,
|
|
58
57
|
format: e = "full",
|
|
59
58
|
maximumFractionDigits: i = c.maximumFractionDigits,
|
|
60
59
|
minimumFractionDigits: r = c.minimumFractionDigits,
|
|
61
|
-
decimalPrecision:
|
|
60
|
+
decimalPrecision: s = c.decimalPrecision,
|
|
62
61
|
minDecimalThreshold: u = c.minDecimalThreshold,
|
|
63
62
|
minExponentialThreshold: a = c.minExponentialThreshold,
|
|
64
63
|
maxExponentialThreshold: o = c.maxExponentialThreshold,
|
|
65
64
|
locale: l = c.locale
|
|
66
65
|
}) => {
|
|
67
|
-
const
|
|
66
|
+
const f = typeof t == "bigint" ? Number(x(t, 8)) : t, n = Math.abs(f);
|
|
68
67
|
if (e === "short") {
|
|
69
|
-
const T =
|
|
68
|
+
const T = f < 0 ? "-" : "", m = (p, N) => {
|
|
70
69
|
const $ = p >= 100 ? 0 : i, M = p.toFixed($).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
|
|
71
70
|
return `${T}${M}${N}`;
|
|
72
71
|
};
|
|
@@ -79,7 +78,7 @@ const c = {
|
|
|
79
78
|
if (n > o)
|
|
80
79
|
return m(n / o, "M+");
|
|
81
80
|
}
|
|
82
|
-
return n > o && e === "full" ? `${(
|
|
81
|
+
return n > o && e === "full" ? `${(f / c.maxExponentialThreshold).toFixed(r)}M` : n < a && n > 0 ? f.toFixed(Math.max(10, i)) : n < u && n > 0 ? f.toPrecision(s) : f.toLocaleString(l, {
|
|
83
82
|
minimumFractionDigits: r,
|
|
84
83
|
maximumFractionDigits: i
|
|
85
84
|
});
|
|
@@ -87,9 +86,9 @@ const c = {
|
|
|
87
86
|
export {
|
|
88
87
|
c as DEFAULT_FORMAT_MONEY_CONSTANTS,
|
|
89
88
|
B as formatCompactPercent,
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
K as formatMoney,
|
|
90
|
+
w as formatMoneyAmount,
|
|
92
91
|
D as formatPercentAmount,
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
V as percentTemplate,
|
|
93
|
+
W as percentageTemplate
|
|
95
94
|
};
|