@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
|
@@ -4,7 +4,6 @@ import { useNavigationAdapter as C } from "../navigation-context/navigation-cont
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as b } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
function S(n) {
|
|
@@ -35,7 +34,7 @@ function U(n, r, s) {
|
|
|
35
34
|
};
|
|
36
35
|
}, [r]), o;
|
|
37
36
|
}
|
|
38
|
-
function
|
|
37
|
+
function A({
|
|
39
38
|
className: n,
|
|
40
39
|
tabs: r,
|
|
41
40
|
state: s,
|
|
@@ -103,7 +102,7 @@ function B({
|
|
|
103
102
|
}
|
|
104
103
|
) });
|
|
105
104
|
}
|
|
106
|
-
function
|
|
105
|
+
function B({
|
|
107
106
|
icon: n,
|
|
108
107
|
label: r,
|
|
109
108
|
selected: s,
|
|
@@ -136,13 +135,13 @@ function F({
|
|
|
136
135
|
!!o && /* @__PURE__ */ f("div", { className: "ml-1.5", children: /* @__PURE__ */ f("div", { className: "py-0.5 px-[9px] text-[11px] leading-[150%] font-normal bg-gray-50 rounded-[19px]", children: o }) })
|
|
137
136
|
] });
|
|
138
137
|
}
|
|
139
|
-
function
|
|
138
|
+
function F(n, r = 0) {
|
|
140
139
|
const [s, i] = v(n), [o, u] = v(r), l = m((c, e) => {
|
|
141
140
|
i(c), u(e);
|
|
142
141
|
}, []);
|
|
143
142
|
return { id: s, index: o, handleTabChange: l };
|
|
144
143
|
}
|
|
145
|
-
function
|
|
144
|
+
function I(n) {
|
|
146
145
|
const { useLocation: r, useNavigate: s } = C(), { hash: i } = r(), o = s(), u = w(
|
|
147
146
|
() => n.reduce(
|
|
148
147
|
(t, a, h) => (t[a.id] = { id: a.id, index: h }, t),
|
|
@@ -161,7 +160,7 @@ function M(n) {
|
|
|
161
160
|
handleTabChange: d
|
|
162
161
|
};
|
|
163
162
|
}
|
|
164
|
-
function
|
|
163
|
+
function M({
|
|
165
164
|
defaultTabs: n,
|
|
166
165
|
pathRoot: r,
|
|
167
166
|
selectedSection: s
|
|
@@ -181,9 +180,9 @@ function D({
|
|
|
181
180
|
return { id: c, index: e, handleTabChange: l };
|
|
182
181
|
}
|
|
183
182
|
export {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
183
|
+
A as TabControl,
|
|
184
|
+
B as TabItem,
|
|
185
|
+
I as useHashTabs,
|
|
186
|
+
M as useSectionTab,
|
|
187
|
+
F as useTabControl
|
|
189
188
|
};
|
|
@@ -2,41 +2,40 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { Skeleton as l } from "../skeleton/skeleton.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as t } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
|
-
function
|
|
11
|
-
height:
|
|
12
|
-
columns:
|
|
9
|
+
function u({
|
|
10
|
+
height: e = "70px",
|
|
11
|
+
columns: i = 6,
|
|
13
12
|
cellClassName: o,
|
|
14
13
|
last: m,
|
|
15
14
|
className: n,
|
|
16
|
-
...
|
|
15
|
+
...d
|
|
17
16
|
}) {
|
|
18
17
|
return /* @__PURE__ */ r(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
|
-
className:
|
|
22
|
-
style: { minHeight:
|
|
23
|
-
...
|
|
24
|
-
children: Array.from({ length:
|
|
20
|
+
className: t("contents", n),
|
|
21
|
+
style: { minHeight: e },
|
|
22
|
+
...d,
|
|
23
|
+
children: Array.from({ length: i }, (s, p) => /* @__PURE__ */ r(
|
|
25
24
|
"div",
|
|
26
25
|
{
|
|
27
|
-
className:
|
|
26
|
+
className: t(
|
|
28
27
|
"flex items-center",
|
|
29
28
|
!m && "border-b border-border",
|
|
30
29
|
o || "p-4"
|
|
31
30
|
),
|
|
32
|
-
style: { minHeight:
|
|
31
|
+
style: { minHeight: e },
|
|
33
32
|
children: /* @__PURE__ */ r(l, { width: "full", height: "md" })
|
|
34
33
|
},
|
|
35
|
-
`${
|
|
34
|
+
`${p}-${i}`
|
|
36
35
|
))
|
|
37
36
|
}
|
|
38
37
|
);
|
|
39
38
|
}
|
|
40
39
|
export {
|
|
41
|
-
|
|
40
|
+
u as GridLoadingLine
|
|
42
41
|
};
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as t } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
|
-
function
|
|
10
|
-
title:
|
|
11
|
-
className:
|
|
12
|
-
children:
|
|
13
|
-
...
|
|
8
|
+
function j({
|
|
9
|
+
title: s,
|
|
10
|
+
className: e,
|
|
11
|
+
children: o,
|
|
12
|
+
...l
|
|
14
13
|
}) {
|
|
15
|
-
return /* @__PURE__ */ i("div", { className: t("flex flex-col gap-1",
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ i("div", { className: t("flex flex-col gap-1", e), ...l, children: [
|
|
15
|
+
s && /* @__PURE__ */ r("div", { className: "text-xs text-muted-foreground font-medium uppercase", children: s }),
|
|
16
|
+
/* @__PURE__ */ r("div", { className: "text-sm", children: o })
|
|
18
17
|
] });
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
title:
|
|
22
|
-
columnsXs:
|
|
23
|
-
columnsSm:
|
|
24
|
-
columnsMd:
|
|
19
|
+
function y({
|
|
20
|
+
title: s,
|
|
21
|
+
columnsXs: e = 1,
|
|
22
|
+
columnsSm: o,
|
|
23
|
+
columnsMd: l,
|
|
25
24
|
columns: a,
|
|
26
25
|
className: n,
|
|
27
26
|
children: p,
|
|
28
27
|
...x
|
|
29
28
|
}) {
|
|
30
|
-
const
|
|
29
|
+
const m = e, c = o ?? m, d = l ?? c, g = a ?? d;
|
|
31
30
|
return /* @__PURE__ */ i(
|
|
32
31
|
"div",
|
|
33
32
|
{
|
|
@@ -37,13 +36,13 @@ function L({
|
|
|
37
36
|
),
|
|
38
37
|
...x,
|
|
39
38
|
children: [
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */
|
|
39
|
+
s && /* @__PURE__ */ r("div", { className: "font-medium mb-2", children: s }),
|
|
40
|
+
/* @__PURE__ */ r(
|
|
42
41
|
"div",
|
|
43
42
|
{
|
|
44
43
|
className: "grid gap-2 md:gap-4 table-sm-grid",
|
|
45
44
|
style: {
|
|
46
|
-
"--grid-cols-xs":
|
|
45
|
+
"--grid-cols-xs": m,
|
|
47
46
|
"--grid-cols-sm": c,
|
|
48
47
|
"--grid-cols-md": d,
|
|
49
48
|
"--grid-cols-lg": g
|
|
@@ -56,6 +55,6 @@ function L({
|
|
|
56
55
|
);
|
|
57
56
|
}
|
|
58
57
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
j as TableCellSm,
|
|
59
|
+
y as TableLineSm
|
|
61
60
|
};
|
|
@@ -8,7 +8,6 @@ import { TooltipProvider as N, Tooltip as v, TooltipTrigger as w, TooltipContent
|
|
|
8
8
|
import "@gearbox-protocol/sdk/onchain";
|
|
9
9
|
import { cn as o } from "../../utils/cn.js";
|
|
10
10
|
import "sonner";
|
|
11
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
12
11
|
import "luxon";
|
|
13
12
|
import "../../utils/z-index.js";
|
|
14
13
|
const C = d("w-full caption-bottom", {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "@radix-ui/react-tabs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as i from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as s } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
|
-
const
|
|
9
|
+
const u = e.Root, n = i.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ a(
|
|
11
10
|
e.List,
|
|
12
11
|
{
|
|
13
12
|
ref: o,
|
|
@@ -19,7 +18,7 @@ const v = e.Root, n = a.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ *
|
|
|
19
18
|
}
|
|
20
19
|
));
|
|
21
20
|
n.displayName = e.List.displayName;
|
|
22
|
-
const d =
|
|
21
|
+
const d = i.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ a(
|
|
23
22
|
e.Trigger,
|
|
24
23
|
{
|
|
25
24
|
ref: o,
|
|
@@ -31,7 +30,7 @@ const d = a.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ i(
|
|
|
31
30
|
}
|
|
32
31
|
));
|
|
33
32
|
d.displayName = e.Trigger.displayName;
|
|
34
|
-
const f =
|
|
33
|
+
const f = i.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ a(
|
|
35
34
|
e.Content,
|
|
36
35
|
{
|
|
37
36
|
ref: o,
|
|
@@ -44,7 +43,7 @@ const f = a.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ i(
|
|
|
44
43
|
));
|
|
45
44
|
f.displayName = e.Content.displayName;
|
|
46
45
|
export {
|
|
47
|
-
|
|
46
|
+
u as Tabs,
|
|
48
47
|
f as TabsContent,
|
|
49
48
|
n as TabsList,
|
|
50
49
|
d as TabsTrigger
|
|
@@ -4,7 +4,6 @@ import * as g from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as o } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const f = n("", {
|
|
@@ -57,14 +56,14 @@ const f = n("", {
|
|
|
57
56
|
className: b,
|
|
58
57
|
disabled: r,
|
|
59
58
|
...d
|
|
60
|
-
},
|
|
61
|
-
const
|
|
59
|
+
}, c) => {
|
|
60
|
+
const i = a === "a", p = o(
|
|
62
61
|
"group inline-block p-0 leading-[100%] font-normal bg-transparent border-none cursor-pointer transition-colors",
|
|
63
62
|
w({ size: h, width: x }),
|
|
64
|
-
!
|
|
63
|
+
!i && f({ buttonColor: t }),
|
|
65
64
|
r && "text-gray-110 cursor-default [&_svg]:text-gray-110",
|
|
66
65
|
b
|
|
67
|
-
), l =
|
|
66
|
+
), l = i ? o(f({ buttonColor: t }), r && "text-gray-110") : null, u = /* @__PURE__ */ v(D, { children: [
|
|
68
67
|
/* @__PURE__ */ e(
|
|
69
68
|
"span",
|
|
70
69
|
{
|
|
@@ -86,21 +85,21 @@ const f = n("", {
|
|
|
86
85
|
children: s
|
|
87
86
|
}
|
|
88
87
|
)
|
|
89
|
-
] }),
|
|
88
|
+
] }), m = l ? /* @__PURE__ */ e("span", { className: l, children: u }) : u;
|
|
90
89
|
return a === "button" ? /* @__PURE__ */ e(
|
|
91
90
|
"button",
|
|
92
91
|
{
|
|
93
|
-
ref:
|
|
92
|
+
ref: c,
|
|
94
93
|
type: "button",
|
|
95
94
|
className: p,
|
|
96
95
|
disabled: r,
|
|
97
96
|
...d,
|
|
98
|
-
children:
|
|
97
|
+
children: m
|
|
99
98
|
}
|
|
100
99
|
) : g.createElement(
|
|
101
100
|
a,
|
|
102
|
-
{ ref:
|
|
103
|
-
|
|
101
|
+
{ ref: c, className: p, ...d },
|
|
102
|
+
m
|
|
104
103
|
);
|
|
105
104
|
}
|
|
106
105
|
);
|
|
@@ -4,7 +4,6 @@ import * as f from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as e } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const p = t("rounded-lg p-5 text-sm", {
|
|
@@ -75,8 +74,8 @@ const p = t("rounded-lg p-5 text-sm", {
|
|
|
75
74
|
backgroundColor: a,
|
|
76
75
|
borderColor: n = a === "dark" ? "dark" : "light",
|
|
77
76
|
attributeColor: r,
|
|
78
|
-
children:
|
|
79
|
-
...
|
|
77
|
+
children: b,
|
|
78
|
+
...i
|
|
80
79
|
}, d) => /* @__PURE__ */ s(
|
|
81
80
|
"div",
|
|
82
81
|
{
|
|
@@ -90,7 +89,7 @@ const p = t("rounded-lg p-5 text-sm", {
|
|
|
90
89
|
}),
|
|
91
90
|
o
|
|
92
91
|
),
|
|
93
|
-
...
|
|
92
|
+
...i,
|
|
94
93
|
children: [
|
|
95
94
|
r && /* @__PURE__ */ l(
|
|
96
95
|
"div",
|
|
@@ -102,7 +101,7 @@ const p = t("rounded-lg p-5 text-sm", {
|
|
|
102
101
|
)
|
|
103
102
|
}
|
|
104
103
|
),
|
|
105
|
-
|
|
104
|
+
b
|
|
106
105
|
]
|
|
107
106
|
}
|
|
108
107
|
)
|
|
@@ -3,12 +3,11 @@ import N from "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as T } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
7
6
|
import { getStatic as g } from "../../utils/static.js";
|
|
8
7
|
import { getTokenIcon as w } from "../../utils/token-icon-source.js";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
|
-
import { RoundedImage as
|
|
10
|
+
import { RoundedImage as m } from "../rounded-image/rounded-image.js";
|
|
12
11
|
const s = g("/tokens/default.svg");
|
|
13
12
|
function U(t) {
|
|
14
13
|
return t.replace("/", "").replace(" ", "").replace("-f", "").replace("-", "_").toLowerCase();
|
|
@@ -47,13 +46,13 @@ const D = N.forwardRef(function({
|
|
|
47
46
|
rounded: a = !1,
|
|
48
47
|
className: l,
|
|
49
48
|
...f
|
|
50
|
-
},
|
|
49
|
+
}, u) {
|
|
51
50
|
const i = v(o, e);
|
|
52
51
|
if (I(i))
|
|
53
52
|
return /* @__PURE__ */ r(
|
|
54
53
|
S,
|
|
55
54
|
{
|
|
56
|
-
ref:
|
|
55
|
+
ref: u,
|
|
57
56
|
composite: i,
|
|
58
57
|
size: n,
|
|
59
58
|
fit: c,
|
|
@@ -63,9 +62,9 @@ const D = N.forwardRef(function({
|
|
|
63
62
|
);
|
|
64
63
|
const p = C(i);
|
|
65
64
|
return /* @__PURE__ */ r(
|
|
66
|
-
|
|
65
|
+
m,
|
|
67
66
|
{
|
|
68
|
-
ref:
|
|
67
|
+
ref: u,
|
|
69
68
|
className: l,
|
|
70
69
|
src: p,
|
|
71
70
|
alt: "",
|
|
@@ -78,13 +77,13 @@ const D = N.forwardRef(function({
|
|
|
78
77
|
}
|
|
79
78
|
);
|
|
80
79
|
}), S = N.forwardRef(function({ composite: o, size: e, fit: n, rounded: c, className: a }, l) {
|
|
81
|
-
const { preset: f, layers:
|
|
80
|
+
const { preset: f, layers: u, scaleFactor: i = L } = o, [p, b] = u, h = k(p), x = k(b), d = Math.round(e * i);
|
|
82
81
|
let y;
|
|
83
82
|
switch (f) {
|
|
84
83
|
case "centered_foreground":
|
|
85
84
|
y = /* @__PURE__ */ R(_, { children: [
|
|
86
85
|
/* @__PURE__ */ r(
|
|
87
|
-
|
|
86
|
+
m,
|
|
88
87
|
{
|
|
89
88
|
className: "absolute inset-0",
|
|
90
89
|
style: { zIndex: 0 },
|
|
@@ -107,7 +106,7 @@ const D = N.forwardRef(function({
|
|
|
107
106
|
height: d
|
|
108
107
|
},
|
|
109
108
|
children: /* @__PURE__ */ r(
|
|
110
|
-
|
|
109
|
+
m,
|
|
111
110
|
{
|
|
112
111
|
src: x,
|
|
113
112
|
alt: "foreground",
|
|
@@ -122,7 +121,7 @@ const D = N.forwardRef(function({
|
|
|
122
121
|
break;
|
|
123
122
|
default:
|
|
124
123
|
return console.error("Unknown TokenIcon composite preset", f), /* @__PURE__ */ r(
|
|
125
|
-
|
|
124
|
+
m,
|
|
126
125
|
{
|
|
127
126
|
src: h,
|
|
128
127
|
alt: "error",
|
|
@@ -144,7 +143,7 @@ const D = N.forwardRef(function({
|
|
|
144
143
|
});
|
|
145
144
|
S.displayName = "TokenIconComposite";
|
|
146
145
|
D.displayName = "TokenIcon";
|
|
147
|
-
function
|
|
146
|
+
function J(t) {
|
|
148
147
|
for (const o of t)
|
|
149
148
|
for (const e of F(o)) {
|
|
150
149
|
const n = new window.Image();
|
|
@@ -153,5 +152,5 @@ function K(t) {
|
|
|
153
152
|
}
|
|
154
153
|
export {
|
|
155
154
|
D as TokenIcon,
|
|
156
|
-
|
|
155
|
+
J as preloadTokenIcons
|
|
157
156
|
};
|
|
@@ -9,7 +9,6 @@ import "../tooltip/tooltip.js";
|
|
|
9
9
|
import "@gearbox-protocol/sdk/onchain";
|
|
10
10
|
import { cn as y } from "../../utils/cn.js";
|
|
11
11
|
import "sonner";
|
|
12
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
13
12
|
import { getNetworkIcon as I } from "../../utils/network-icons.js";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../utils/z-index.js";
|
|
@@ -5,23 +5,22 @@ import "clsx";
|
|
|
5
5
|
import "tailwind-merge";
|
|
6
6
|
import "sonner";
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
|
-
import "
|
|
9
|
-
import { negativeTokenTemplate as q, tokenTemplateString as z } from "../../utils/templates.js";
|
|
8
|
+
import { negativeTokenTemplate as V, tokenTemplateString as q } from "../../utils/templates.js";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
import { FormattedNumberString as g } from "../formatted-number/formatted-number.js";
|
|
13
12
|
import { ShortString as x } from "../short-string/short-string.js";
|
|
14
|
-
function
|
|
13
|
+
function I({
|
|
15
14
|
value: r,
|
|
16
|
-
token:
|
|
17
|
-
precision:
|
|
15
|
+
token: e,
|
|
16
|
+
precision: m,
|
|
18
17
|
formatter: i = d,
|
|
19
18
|
noFormattedAmountValue: n = "-",
|
|
20
19
|
showSymbol: p = !0,
|
|
21
20
|
maxLength: a = 1 / 0,
|
|
22
21
|
...l
|
|
23
22
|
}) {
|
|
24
|
-
const { decimals: s = 18, title: f, symbol: c } =
|
|
23
|
+
const { decimals: s = 18, title: f, symbol: c } = e || {}, t = i(r, s, m), u = t === n;
|
|
25
24
|
return /* @__PURE__ */ T("span", { children: [
|
|
26
25
|
/* @__PURE__ */ o(g, { value: t, ...l }),
|
|
27
26
|
" ",
|
|
@@ -29,7 +28,7 @@ function N({
|
|
|
29
28
|
] });
|
|
30
29
|
}
|
|
31
30
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
I as TokenTemplate,
|
|
32
|
+
V as negativeTokenTemplate,
|
|
33
|
+
q as tokenTemplateString
|
|
35
34
|
};
|
|
@@ -4,7 +4,6 @@ import * as e from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as k } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import { Z_INDEX as F } from "../../utils/z-index.js";
|
|
10
9
|
const A = e.createContext({ lockParent: () => {
|
|
@@ -26,7 +25,7 @@ function Q({
|
|
|
26
25
|
triggerClassName: w,
|
|
27
26
|
useTitleAsTrigger: B = !1
|
|
28
27
|
}) {
|
|
29
|
-
const [M, $] = e.useState(!1), [y, R] = e.useState(!1), f = e.useRef(null),
|
|
28
|
+
const [M, $] = e.useState(!1), [y, R] = e.useState(!1), f = e.useRef(null), i = e.useRef(null), p = x !== void 0, c = p ? x : M, o = e.useCallback(
|
|
30
29
|
(t) => {
|
|
31
30
|
p ? P?.(t) : $(t);
|
|
32
31
|
},
|
|
@@ -39,10 +38,10 @@ function Q({
|
|
|
39
38
|
[]
|
|
40
39
|
), T = e.useRef(!1);
|
|
41
40
|
T.current = y;
|
|
42
|
-
const
|
|
41
|
+
const l = e.useRef(
|
|
43
42
|
null
|
|
44
43
|
), u = e.useCallback(() => {
|
|
45
|
-
|
|
44
|
+
l.current !== null && (clearTimeout(l.current), l.current = null);
|
|
46
45
|
}, []), G = e.useCallback(
|
|
47
46
|
(t) => {
|
|
48
47
|
if (n !== "click") {
|
|
@@ -50,8 +49,8 @@ function Q({
|
|
|
50
49
|
u(), o(!0), s.lockParent();
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
l.current = setTimeout(() => {
|
|
53
|
+
l.current = null, !T.current && (o(!1), s.unlockParent());
|
|
55
54
|
}, 100);
|
|
56
55
|
}
|
|
57
56
|
},
|
|
@@ -73,7 +72,7 @@ function Q({
|
|
|
73
72
|
if (n !== "click" || !c) return;
|
|
74
73
|
const t = (m) => {
|
|
75
74
|
const L = m.target;
|
|
76
|
-
f.current && !f.current.contains(L) &&
|
|
75
|
+
f.current && !f.current.contains(L) && i.current && !i.current.contains(L) && o(!1);
|
|
77
76
|
}, N = (m) => {
|
|
78
77
|
m.key === "Escape" && o(!1);
|
|
79
78
|
};
|
|
@@ -100,7 +99,7 @@ function Q({
|
|
|
100
99
|
/* @__PURE__ */ r(a.Trigger, { asChild: !0, children: B ? d : n === "click" ? /* @__PURE__ */ r(
|
|
101
100
|
"button",
|
|
102
101
|
{
|
|
103
|
-
ref:
|
|
102
|
+
ref: i,
|
|
104
103
|
type: "button",
|
|
105
104
|
onClick: V,
|
|
106
105
|
onKeyDown: X,
|
|
@@ -113,7 +112,7 @@ function Q({
|
|
|
113
112
|
) : /* @__PURE__ */ r(
|
|
114
113
|
"span",
|
|
115
114
|
{
|
|
116
|
-
ref:
|
|
115
|
+
ref: i,
|
|
117
116
|
className: k("inline-flex", w),
|
|
118
117
|
children: d
|
|
119
118
|
}
|
|
@@ -4,10 +4,9 @@ import * as a from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as m } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import { Z_INDEX as s } from "../../utils/z-index.js";
|
|
10
|
-
const
|
|
9
|
+
const b = o.Provider, v = o.Root, x = o.Trigger, n = a.forwardRef(({ className: e, sideOffset: r = 4, ...i }, d) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
|
11
10
|
o.Content,
|
|
12
11
|
{
|
|
13
12
|
ref: d,
|
|
@@ -20,10 +19,10 @@ const v = o.Provider, x = o.Root, h = o.Trigger, p = a.forwardRef(({ className:
|
|
|
20
19
|
...i
|
|
21
20
|
}
|
|
22
21
|
) }));
|
|
23
|
-
|
|
22
|
+
n.displayName = o.Content.displayName;
|
|
24
23
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
v as Tooltip,
|
|
25
|
+
n as TooltipContent,
|
|
26
|
+
b as TooltipProvider,
|
|
27
|
+
x as TooltipTrigger
|
|
29
28
|
};
|
|
@@ -5,7 +5,6 @@ import { SectionHeading as he } from "../base/section-heading/section-heading.js
|
|
|
5
5
|
import { useIsMobile as ve } from "../../hooks/use-media-query.js";
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as pe } from "../../utils/cn.js";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
import { DEFAULT_SERIES_COLORS as T, getSeriesColorPalette as xe, GraphLegend as ge } from "../graph/graph.js";
|
|
@@ -84,7 +83,7 @@ function X(t, r) {
|
|
|
84
83
|
c.set(n, p);
|
|
85
84
|
Oe(t, c);
|
|
86
85
|
}
|
|
87
|
-
function
|
|
86
|
+
function Ze({
|
|
88
87
|
data: t,
|
|
89
88
|
yMeasureUnit: r,
|
|
90
89
|
height: c = 306,
|
|
@@ -300,5 +299,5 @@ function De({
|
|
|
300
299
|
);
|
|
301
300
|
}
|
|
302
301
|
export {
|
|
303
|
-
|
|
302
|
+
Ze as TradingView
|
|
304
303
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { cva as x } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as c from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as p } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
const g = x("", {
|
|
@@ -76,7 +75,7 @@ const g = x("", {
|
|
|
76
75
|
caption: "span",
|
|
77
76
|
overline: "span",
|
|
78
77
|
inherit: "span"
|
|
79
|
-
}, u =
|
|
78
|
+
}, u = c.forwardRef(
|
|
80
79
|
({
|
|
81
80
|
className: e,
|
|
82
81
|
variant: t = "inherit",
|
|
@@ -93,7 +92,7 @@ const g = x("", {
|
|
|
93
92
|
d,
|
|
94
93
|
{
|
|
95
94
|
ref: m,
|
|
96
|
-
className:
|
|
95
|
+
className: p(
|
|
97
96
|
g({
|
|
98
97
|
variant: t,
|
|
99
98
|
color: i,
|