@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
|
@@ -3,10 +3,9 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as p } 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
|
-
import { StackTest as
|
|
8
|
+
import { StackTest as T } from "./constants.js";
|
|
10
9
|
const a = {
|
|
11
10
|
row: "flex-row",
|
|
12
11
|
col: "flex-col"
|
|
@@ -28,15 +27,15 @@ const a = {
|
|
|
28
27
|
end: "justify-end",
|
|
29
28
|
between: "justify-between"
|
|
30
29
|
};
|
|
31
|
-
function
|
|
30
|
+
function y({
|
|
32
31
|
direction: o = "col",
|
|
33
32
|
gap: r = "none",
|
|
34
33
|
align: t,
|
|
35
34
|
justify: e,
|
|
36
35
|
wrap: s = !1,
|
|
37
36
|
className: n,
|
|
38
|
-
children:
|
|
39
|
-
...
|
|
37
|
+
children: c,
|
|
38
|
+
...i
|
|
40
39
|
}) {
|
|
41
40
|
return /* @__PURE__ */ m(
|
|
42
41
|
"div",
|
|
@@ -50,12 +49,12 @@ function N({
|
|
|
50
49
|
s ? "flex-wrap" : void 0,
|
|
51
50
|
n
|
|
52
51
|
),
|
|
53
|
-
...
|
|
54
|
-
children:
|
|
52
|
+
...i,
|
|
53
|
+
children: c
|
|
55
54
|
}
|
|
56
55
|
);
|
|
57
56
|
}
|
|
58
57
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
y as Stack,
|
|
59
|
+
T as StackTest
|
|
61
60
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
1
|
+
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { Stack as p } from "../stack/stack.js";
|
|
3
3
|
import { useTitleText as x } from "../text/use-title-text.js";
|
|
4
4
|
import { faCaretDown as h, faCaretUp as S } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -8,7 +8,6 @@ import "react";
|
|
|
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
|
import { SimpleTooltip as b } from "../../tooltip/simple-tooltip.js";
|
|
@@ -35,17 +34,17 @@ function w({
|
|
|
35
34
|
delta: t,
|
|
36
35
|
size: i
|
|
37
36
|
}) {
|
|
38
|
-
const
|
|
37
|
+
const r = t.value > 0 ? "text-success" : t.value < 0 ? "text-destructive" : "text-muted-foreground", e = /* @__PURE__ */ a(
|
|
39
38
|
"span",
|
|
40
39
|
{
|
|
41
40
|
className: o(
|
|
42
41
|
"inline-flex items-center gap-0.5 font-medium",
|
|
43
42
|
d[i],
|
|
44
|
-
|
|
43
|
+
r
|
|
45
44
|
),
|
|
46
45
|
"data-testid": m.delta,
|
|
47
46
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ l(
|
|
49
48
|
v,
|
|
50
49
|
{
|
|
51
50
|
icon: t.value < 0 ? h : S,
|
|
@@ -56,19 +55,19 @@ function w({
|
|
|
56
55
|
]
|
|
57
56
|
}
|
|
58
57
|
);
|
|
59
|
-
return t.tooltip == null ? e : /* @__PURE__ */
|
|
58
|
+
return t.tooltip == null ? e : /* @__PURE__ */ l(b, { title: e, triggerClassName: "shrink-0", children: t.tooltip });
|
|
60
59
|
}
|
|
61
|
-
function
|
|
60
|
+
function H({
|
|
62
61
|
title: t,
|
|
63
62
|
value: i,
|
|
64
|
-
isLoading:
|
|
63
|
+
isLoading: r = !1,
|
|
65
64
|
size: e = "default",
|
|
66
65
|
delta: s,
|
|
67
66
|
action: n,
|
|
68
67
|
className: c,
|
|
69
68
|
testId: u
|
|
70
69
|
}) {
|
|
71
|
-
const f = x(), g = s != null && !
|
|
70
|
+
const f = x(), g = s != null && !r;
|
|
72
71
|
return /* @__PURE__ */ a(
|
|
73
72
|
"div",
|
|
74
73
|
{
|
|
@@ -87,7 +86,7 @@ function J({
|
|
|
87
86
|
T[e]
|
|
88
87
|
),
|
|
89
88
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ l(
|
|
91
90
|
"div",
|
|
92
91
|
{
|
|
93
92
|
className: o("font-medium text-muted-foreground", d[e]),
|
|
@@ -95,20 +94,20 @@ function J({
|
|
|
95
94
|
}
|
|
96
95
|
),
|
|
97
96
|
g || n != null ? /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
98
|
-
s != null && !
|
|
99
|
-
n != null ? /* @__PURE__ */
|
|
97
|
+
s != null && !r ? /* @__PURE__ */ l(w, { delta: s, size: e }) : null,
|
|
98
|
+
n != null ? /* @__PURE__ */ l("div", { className: "shrink-0", "data-testid": m.action, children: n }) : null
|
|
100
99
|
] }) : null
|
|
101
100
|
]
|
|
102
101
|
}
|
|
103
102
|
),
|
|
104
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ l(
|
|
105
104
|
"div",
|
|
106
105
|
{
|
|
107
106
|
className: o(
|
|
108
107
|
"text-left font-medium text-foreground",
|
|
109
108
|
_[e]
|
|
110
109
|
),
|
|
111
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ l(N, { width: 80, loading: r, children: /* @__PURE__ */ l(p, { gap: "xs", align: "start", className: "w-full items-start", children: i }) })
|
|
112
111
|
}
|
|
113
112
|
)
|
|
114
113
|
]
|
|
@@ -130,21 +129,21 @@ const E = {
|
|
|
130
129
|
default: "gap-4",
|
|
131
130
|
lg: "gap-6"
|
|
132
131
|
};
|
|
133
|
-
function
|
|
132
|
+
function J({
|
|
134
133
|
cols: t = 1,
|
|
135
134
|
colsLg: i,
|
|
136
|
-
gap:
|
|
135
|
+
gap: r = "default",
|
|
137
136
|
children: e,
|
|
138
137
|
className: s
|
|
139
138
|
}) {
|
|
140
|
-
return /* @__PURE__ */
|
|
139
|
+
return /* @__PURE__ */ l(
|
|
141
140
|
"div",
|
|
142
141
|
{
|
|
143
142
|
className: o(
|
|
144
143
|
"grid w-full",
|
|
145
144
|
E[t],
|
|
146
145
|
i ? G[i] : void 0,
|
|
147
|
-
D[
|
|
146
|
+
D[r],
|
|
148
147
|
s
|
|
149
148
|
),
|
|
150
149
|
"data-testid": m.grid,
|
|
@@ -153,7 +152,7 @@ function K({
|
|
|
153
152
|
);
|
|
154
153
|
}
|
|
155
154
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
H as StatBadge,
|
|
156
|
+
J as StatBadgeGrid,
|
|
158
157
|
m as StatBadgeTest
|
|
159
158
|
};
|
|
@@ -3,11 +3,10 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as p } 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
8
|
import { StickyBarTest as i } from "./constants.js";
|
|
10
|
-
function
|
|
9
|
+
function u({
|
|
11
10
|
children: t,
|
|
12
11
|
className: r,
|
|
13
12
|
testId: o = i.root
|
|
@@ -26,6 +25,6 @@ function f({
|
|
|
26
25
|
);
|
|
27
26
|
}
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
u as StickyBar,
|
|
30
29
|
i as StickyBarTest
|
|
31
30
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { TokenSymbol as m } from "../../token-symbol/token-symbol.js";
|
|
3
3
|
import "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
|
import { TokenPairSymbolTest as f } from "./constants.js";
|
|
11
|
-
function
|
|
10
|
+
function N({
|
|
12
11
|
collateral: o,
|
|
13
12
|
underlying: t,
|
|
14
13
|
size: e = 32,
|
|
15
14
|
offset: i = 10,
|
|
16
15
|
className: n
|
|
17
16
|
}) {
|
|
18
|
-
return !t && !o ? null : o ? t ? /* @__PURE__ */
|
|
17
|
+
return !t && !o ? null : o ? t ? /* @__PURE__ */ s(
|
|
19
18
|
"span",
|
|
20
19
|
{
|
|
21
|
-
className:
|
|
20
|
+
className: p("relative z-0 inline-flex shrink-0 self-center", n),
|
|
22
21
|
"data-testid": f.root,
|
|
23
22
|
children: [
|
|
24
23
|
/* @__PURE__ */ r("span", { className: "z-[1]", children: /* @__PURE__ */ r(m, { size: e, token: o }) }),
|
|
@@ -28,6 +27,6 @@ function S({
|
|
|
28
27
|
) : /* @__PURE__ */ r(m, { size: e, token: o }) : t ? /* @__PURE__ */ r(m, { size: e, token: t }) : null;
|
|
29
28
|
}
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
N as TokenPairSymbol,
|
|
32
31
|
f as TokenPairSymbolTest
|
|
33
32
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as i } 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
8
|
import { ValueTest as o } from "./constants.js";
|
|
10
|
-
function
|
|
9
|
+
function f({
|
|
11
10
|
data: e
|
|
12
11
|
}) {
|
|
13
12
|
const t = typeof e == "number" ? e : e?.total.valueUsd ?? null;
|
|
14
13
|
if (t === null)
|
|
15
14
|
return /* @__PURE__ */ r("span", { "data-testid": o.placeholder, children: "—" });
|
|
16
|
-
const
|
|
15
|
+
const s = t > 0 ? "+" : t < 0 ? "−" : "";
|
|
17
16
|
return /* @__PURE__ */ r(
|
|
18
17
|
"span",
|
|
19
18
|
{
|
|
20
19
|
"data-testid": o.pnl,
|
|
21
|
-
className:
|
|
22
|
-
children: `${
|
|
20
|
+
className: i(t > 0 && "text-success", t < 0 && "text-destructive"),
|
|
21
|
+
children: `${s}$${Math.abs(t).toFixed(2)}`
|
|
23
22
|
}
|
|
24
23
|
);
|
|
25
24
|
}
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
f as PnlValue
|
|
28
27
|
};
|
|
@@ -6,7 +6,6 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as i } from "../../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../../utils/z-index.js";
|
|
12
11
|
const m = {
|
|
@@ -16,11 +15,11 @@ const m = {
|
|
|
16
15
|
active: "components.positionStatusBadge.active",
|
|
17
16
|
repaid: "components.positionStatusBadge.repaid"
|
|
18
17
|
};
|
|
19
|
-
function
|
|
18
|
+
function b({
|
|
20
19
|
data: t
|
|
21
20
|
}) {
|
|
22
21
|
return /* @__PURE__ */ e(r, { variant: "secondary", className: i(m[t]), children: /* @__PURE__ */ e(o, { messageId: a[t] }) });
|
|
23
22
|
}
|
|
24
23
|
export {
|
|
25
|
-
|
|
24
|
+
b as PositionStatusBadge
|
|
26
25
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Badge as r } from "../../badge/badge.js";
|
|
3
3
|
import "../../badge/chip.js";
|
|
4
|
-
import { FormattedMessageTyped as
|
|
4
|
+
import { FormattedMessageTyped as n } from "../../typed-intl/index.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
|
-
import { cn as
|
|
7
|
+
import { cn as i } from "../../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../../utils/z-index.js";
|
|
12
11
|
const p = {
|
|
@@ -18,7 +17,7 @@ const p = {
|
|
|
18
17
|
strategy: "components.positionTypeBadge.strategy",
|
|
19
18
|
liquidation: "components.positionTypeBadge.liquidation"
|
|
20
19
|
}, a = "text-[10px] leading-none px-1.5 py-0.5 rounded-md";
|
|
21
|
-
function
|
|
20
|
+
function f({
|
|
22
21
|
data: e,
|
|
23
22
|
size: t = "table"
|
|
24
23
|
}) {
|
|
@@ -26,14 +25,14 @@ function x({
|
|
|
26
25
|
r,
|
|
27
26
|
{
|
|
28
27
|
variant: "secondary",
|
|
29
|
-
className:
|
|
28
|
+
className: i(
|
|
30
29
|
p[e],
|
|
31
30
|
t === "aside" && a
|
|
32
31
|
),
|
|
33
|
-
children: /* @__PURE__ */ o(
|
|
32
|
+
children: /* @__PURE__ */ o(n, { messageId: m[e] })
|
|
34
33
|
}
|
|
35
34
|
);
|
|
36
35
|
}
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
f as PositionTypeBadge
|
|
39
38
|
};
|
|
@@ -5,19 +5,18 @@ import "clsx";
|
|
|
5
5
|
import "tailwind-merge";
|
|
6
6
|
import "sonner";
|
|
7
7
|
import { formatPercentAmount as o } from "../../../utils/format-money.js";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../../utils/z-index.js";
|
|
11
10
|
import { ValueTest as i } from "./constants.js";
|
|
12
|
-
function
|
|
11
|
+
function e(r) {
|
|
13
12
|
return `${r > 0n ? "+" : ""}${o(Number(r) / 1e4, 2)}%`;
|
|
14
13
|
}
|
|
15
|
-
function
|
|
14
|
+
function I({
|
|
16
15
|
data: r
|
|
17
16
|
}) {
|
|
18
|
-
return r === void 0 ? /* @__PURE__ */ t("span", { "data-testid": i.placeholder, children: "—" }) : /* @__PURE__ */ t("span", { "data-testid": i.priceImpact, children:
|
|
17
|
+
return r === void 0 ? /* @__PURE__ */ t("span", { "data-testid": i.placeholder, children: "—" }) : /* @__PURE__ */ t("span", { "data-testid": i.priceImpact, children: e(r) });
|
|
19
18
|
}
|
|
20
19
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
I as PriceImpactValue,
|
|
21
|
+
e as priceImpact
|
|
23
22
|
};
|
|
@@ -10,7 +10,6 @@ import "sonner";
|
|
|
10
10
|
import { formatAssetAmount as d } from "../../../utils/format-asset-amount.js";
|
|
11
11
|
import { formatLeverage as f } from "../../../utils/format-leverage.js";
|
|
12
12
|
import { formatPercentAmount as h, formatMoney as v } from "../../../utils/format-money.js";
|
|
13
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../../utils/z-index.js";
|
|
16
15
|
import { ValueTest as i } from "./constants.js";
|
|
@@ -21,29 +20,29 @@ function n() {
|
|
|
21
20
|
function s(t) {
|
|
22
21
|
return `${h(t / 100, 2)}%`;
|
|
23
22
|
}
|
|
24
|
-
function
|
|
23
|
+
function E({
|
|
25
24
|
data: t,
|
|
26
25
|
tooltip: e = !0,
|
|
27
26
|
period: o
|
|
28
27
|
}) {
|
|
29
28
|
return t === void 0 ? /* @__PURE__ */ r(n, {}) : typeof t == "number" ? /* @__PURE__ */ r("span", { "data-testid": i.apy, children: s(t) }) : /* @__PURE__ */ r("span", { "data-testid": i.apy, children: /* @__PURE__ */ r(p, { apy: t, tooltip: e, period: o }) });
|
|
30
29
|
}
|
|
31
|
-
function
|
|
30
|
+
function H({
|
|
32
31
|
data: t
|
|
33
32
|
}) {
|
|
34
33
|
return t == null ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r("span", { "data-testid": i.usd, children: v(t) });
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function N({
|
|
37
36
|
data: t
|
|
38
37
|
}) {
|
|
39
38
|
return t === void 0 ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r("span", { "data-testid": i.leverage, children: `${f(t)}x` });
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function w({
|
|
42
41
|
data: t
|
|
43
42
|
}) {
|
|
44
43
|
return t === void 0 ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r("span", { "data-testid": i.utilization, children: s(t) });
|
|
45
44
|
}
|
|
46
|
-
function
|
|
45
|
+
function D({
|
|
47
46
|
data: t
|
|
48
47
|
}) {
|
|
49
48
|
if (t === void 0)
|
|
@@ -51,7 +50,7 @@ function M({
|
|
|
51
50
|
const e = t < 1e4 ? "text-destructive" : t < 11e3 ? "text-warning" : "text-success";
|
|
52
51
|
return /* @__PURE__ */ r("span", { "data-testid": i.healthFactor, className: c(e), children: (t / 1e4).toFixed(2) });
|
|
53
52
|
}
|
|
54
|
-
function
|
|
53
|
+
function M({
|
|
55
54
|
data: t,
|
|
56
55
|
token: e,
|
|
57
56
|
showSymbol: o = !0
|
|
@@ -78,11 +77,11 @@ function O({
|
|
|
78
77
|
);
|
|
79
78
|
}
|
|
80
79
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
E as ApyValue,
|
|
81
|
+
D as HealthFactorValue,
|
|
82
|
+
N as LeverageValue,
|
|
83
|
+
M as TokenBigint,
|
|
84
|
+
H as UsdValue,
|
|
85
|
+
w as UtilizationValue,
|
|
87
86
|
s as bps
|
|
88
87
|
};
|
|
@@ -6,7 +6,6 @@ import { useNavigationAdapter as N } from "../navigation-context/navigation-cont
|
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as j } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
12
11
|
const L = k("transition-colors", {
|
|
@@ -41,26 +40,26 @@ const L = k("transition-colors", {
|
|
|
41
40
|
href: e,
|
|
42
41
|
target: l,
|
|
43
42
|
rel: u,
|
|
44
|
-
asChild:
|
|
45
|
-
external:
|
|
43
|
+
asChild: f = !1,
|
|
44
|
+
external: m = !1,
|
|
46
45
|
size: c = "default",
|
|
47
46
|
variant: g = "default",
|
|
48
47
|
color: x = "default",
|
|
49
48
|
children: r,
|
|
50
49
|
...o
|
|
51
50
|
}, a) => {
|
|
52
|
-
const { Link:
|
|
53
|
-
if (
|
|
54
|
-
const
|
|
51
|
+
const { Link: v } = N(), t = m ? "_blank" : l, n = t === "_blank" ? "noopener noreferrer" : u, s = j(L({ size: c, variant: g, color: x }), d);
|
|
52
|
+
if (f) {
|
|
53
|
+
const p = {
|
|
55
54
|
href: e,
|
|
56
55
|
target: t,
|
|
57
56
|
rel: n,
|
|
58
57
|
...o
|
|
59
58
|
};
|
|
60
|
-
return /* @__PURE__ */ i(b, { ref: a, className: s, ...
|
|
59
|
+
return /* @__PURE__ */ i(b, { ref: a, className: s, ...p, children: r });
|
|
61
60
|
}
|
|
62
61
|
return e?.startsWith("/") ? /* @__PURE__ */ i(
|
|
63
|
-
|
|
62
|
+
v,
|
|
64
63
|
{
|
|
65
64
|
ref: a,
|
|
66
65
|
className: s,
|
|
@@ -5,7 +5,6 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as o } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
import { GridTableRow as h, GridTableCell as u } from "../table/grid-table.js";
|
|
@@ -37,7 +36,7 @@ function v({
|
|
|
37
36
|
/* @__PURE__ */ i("div", { className: "min-w-0 text-sm", children: r })
|
|
38
37
|
] });
|
|
39
38
|
}
|
|
40
|
-
function
|
|
39
|
+
function ie({
|
|
41
40
|
columns: t,
|
|
42
41
|
cells: r,
|
|
43
42
|
last: x,
|
|
@@ -112,6 +111,6 @@ function te({
|
|
|
112
111
|
);
|
|
113
112
|
}
|
|
114
113
|
export {
|
|
115
|
-
|
|
114
|
+
ie as BaseTableLine,
|
|
116
115
|
D as BaseTableLineTest
|
|
117
116
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsxs as T, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { Children as
|
|
2
|
+
import { Children as n } from "react";
|
|
3
3
|
import { Guard as x } from "../guard/guard.js";
|
|
4
4
|
import { HeadCell as y } from "../head-cell/head-cell.js";
|
|
5
5
|
import "react-intl";
|
|
6
6
|
import "../buttons/button/button.js";
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
|
-
import { cn as
|
|
8
|
+
import { cn as p } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
11
10
|
import "luxon";
|
|
12
11
|
import "../../utils/z-index.js";
|
|
13
12
|
import { GridTable as C, GridTableHeader as j, GridTableRow as f, GridTableHead as H, GridTableBody as N, GridTableCell as S } from "../table/grid-table.js";
|
|
@@ -32,7 +31,7 @@ function B({
|
|
|
32
31
|
}
|
|
33
32
|
) });
|
|
34
33
|
}
|
|
35
|
-
function
|
|
34
|
+
function W({
|
|
36
35
|
columns: i,
|
|
37
36
|
isLoading: o,
|
|
38
37
|
emptyMessage: c,
|
|
@@ -50,7 +49,7 @@ function X({
|
|
|
50
49
|
cols: l ? "1fr" : g,
|
|
51
50
|
gap: 0,
|
|
52
51
|
size: "lg",
|
|
53
|
-
className:
|
|
52
|
+
className: p("min-w-0 w-full", w),
|
|
54
53
|
wrapperClassName: b,
|
|
55
54
|
"data-testid": d.root,
|
|
56
55
|
children: [
|
|
@@ -61,7 +60,7 @@ function X({
|
|
|
61
60
|
{
|
|
62
61
|
justify: m,
|
|
63
62
|
size: "sm",
|
|
64
|
-
className:
|
|
63
|
+
className: p(
|
|
65
64
|
"min-w-0 whitespace-nowrap",
|
|
66
65
|
e.headClassName
|
|
67
66
|
),
|
|
@@ -93,9 +92,9 @@ function X({
|
|
|
93
92
|
children: !o && /* @__PURE__ */ t(
|
|
94
93
|
x,
|
|
95
94
|
{
|
|
96
|
-
showGuard:
|
|
95
|
+
showGuard: n.count(s) === 0,
|
|
97
96
|
guard: /* @__PURE__ */ t(B, { message: c, testId: d.empty }),
|
|
98
|
-
children:
|
|
97
|
+
children: n.count(s) > 0 && /* @__PURE__ */ t(N, { children: s })
|
|
99
98
|
}
|
|
100
99
|
)
|
|
101
100
|
}
|
|
@@ -105,6 +104,6 @@ function X({
|
|
|
105
104
|
);
|
|
106
105
|
}
|
|
107
106
|
export {
|
|
108
|
-
|
|
107
|
+
W as BaseTable,
|
|
109
108
|
d as BaseTableTest
|
|
110
109
|
};
|
|
@@ -5,11 +5,10 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as c } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
10
|
const u = "text-sm! transition-colors text-muted-foreground! hover:text-foreground!";
|
|
12
|
-
function
|
|
11
|
+
function R({
|
|
13
12
|
items: n,
|
|
14
13
|
onClick: d,
|
|
15
14
|
currentStep: m,
|
|
@@ -62,5 +61,5 @@ function T({
|
|
|
62
61
|
}) }) });
|
|
63
62
|
}
|
|
64
63
|
export {
|
|
65
|
-
|
|
64
|
+
R as BreadCrumbs
|
|
66
65
|
};
|
|
@@ -6,7 +6,6 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as p } from "../../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../../utils/z-index.js";
|
|
12
11
|
const x = f("flex items-center transition-colors", {
|
|
@@ -35,20 +34,20 @@ function l({
|
|
|
35
34
|
}) {
|
|
36
35
|
return /* @__PURE__ */ a("a", { href: t, className: r, onClick: o, children: e });
|
|
37
36
|
}
|
|
38
|
-
function
|
|
37
|
+
function L({
|
|
39
38
|
href: t,
|
|
40
39
|
text: r,
|
|
41
40
|
onClick: o,
|
|
42
41
|
className: e,
|
|
43
42
|
variant: i,
|
|
44
|
-
size:
|
|
45
|
-
LinkComponent:
|
|
43
|
+
size: n,
|
|
44
|
+
LinkComponent: m = l
|
|
46
45
|
}) {
|
|
47
46
|
return /* @__PURE__ */ s(
|
|
48
|
-
|
|
47
|
+
m,
|
|
49
48
|
{
|
|
50
49
|
href: t,
|
|
51
|
-
className: p(x({ variant: i, size:
|
|
50
|
+
className: p(x({ variant: i, size: n, className: e })),
|
|
52
51
|
onClick: o,
|
|
53
52
|
children: [
|
|
54
53
|
/* @__PURE__ */ a(c, { icon: u, className: "mr-2 size-4" }),
|
|
@@ -58,6 +57,6 @@ function N({
|
|
|
58
57
|
);
|
|
59
58
|
}
|
|
60
59
|
export {
|
|
61
|
-
|
|
60
|
+
L as BackButton,
|
|
62
61
|
x as backButtonVariants
|
|
63
62
|
};
|