@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
|
@@ -5,9 +5,8 @@ import { Button as C } from "../button/button.js";
|
|
|
5
5
|
import { faCheck as x } from "@fortawesome/free-solid-svg-icons";
|
|
6
6
|
import { FaIcon as w } from "../../icons/fa-icon.js";
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
|
-
import { cn as
|
|
8
|
+
import { cn as a } 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
|
const N = {
|
|
@@ -23,7 +22,7 @@ const N = {
|
|
|
23
22
|
5: 20,
|
|
24
23
|
6: 24
|
|
25
24
|
}, j = r.forwardRef(
|
|
26
|
-
({ text: n, className: l, iconSize:
|
|
25
|
+
({ text: n, className: l, iconSize: i = "3.5", successDuration: p = 1500, ...m }, u) => {
|
|
27
26
|
const [e, s] = r.useState(!1), o = r.useRef(null), f = async () => {
|
|
28
27
|
try {
|
|
29
28
|
await navigator.clipboard.writeText(n), o.current && clearTimeout(o.current), s(!0), o.current = setTimeout(() => {
|
|
@@ -32,14 +31,14 @@ const N = {
|
|
|
32
31
|
} catch (d) {
|
|
33
32
|
console.error("Failed to copy:", d);
|
|
34
33
|
}
|
|
35
|
-
}, c = N[
|
|
34
|
+
}, c = N[i];
|
|
36
35
|
return /* @__PURE__ */ y(
|
|
37
36
|
C,
|
|
38
37
|
{
|
|
39
38
|
ref: u,
|
|
40
39
|
variant: "text",
|
|
41
40
|
size: "auto",
|
|
42
|
-
className:
|
|
41
|
+
className: a("p-1! border-0! relative", l),
|
|
43
42
|
onClick: f,
|
|
44
43
|
title: e ? "Copied!" : "Copy to clipboard",
|
|
45
44
|
...m,
|
|
@@ -47,7 +46,7 @@ const N = {
|
|
|
47
46
|
/* @__PURE__ */ t(
|
|
48
47
|
"span",
|
|
49
48
|
{
|
|
50
|
-
className:
|
|
49
|
+
className: a(
|
|
51
50
|
"absolute inset-0 flex items-center justify-center transition-all duration-200",
|
|
52
51
|
e ? "opacity-100 scale-100 text-green-500" : "opacity-0 scale-50 text-green-500"
|
|
53
52
|
),
|
|
@@ -57,11 +56,11 @@ const N = {
|
|
|
57
56
|
/* @__PURE__ */ t(
|
|
58
57
|
"span",
|
|
59
58
|
{
|
|
60
|
-
className:
|
|
59
|
+
className: a(
|
|
61
60
|
"flex items-center justify-center transition-all duration-200",
|
|
62
61
|
e ? "opacity-0 scale-50" : "opacity-100 scale-100"
|
|
63
62
|
),
|
|
64
|
-
children: /* @__PURE__ */ t(h, { size: b[
|
|
63
|
+
children: /* @__PURE__ */ t(h, { size: b[i], className: c })
|
|
65
64
|
}
|
|
66
65
|
)
|
|
67
66
|
]
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { IconExternal as
|
|
2
|
+
import { IconExternal as m } from "@gearbox-protocol/static";
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import { Button as s } from "../button/button.js";
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as r } 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 c = {
|
|
@@ -21,17 +20,17 @@ const c = {
|
|
|
21
20
|
5: 20,
|
|
22
21
|
6: 24
|
|
23
22
|
}, w = p.forwardRef(
|
|
24
|
-
({ url:
|
|
23
|
+
({ url: n, className: i, iconSize: o = "3.5", ...a }, e) => /* @__PURE__ */ t(
|
|
25
24
|
s,
|
|
26
25
|
{
|
|
27
|
-
ref:
|
|
26
|
+
ref: e,
|
|
28
27
|
variant: "text",
|
|
29
28
|
size: "auto",
|
|
30
|
-
className: r("p-1! border-0!",
|
|
31
|
-
onClick: () => window.open(
|
|
32
|
-
...
|
|
29
|
+
className: r("p-1! border-0!", i),
|
|
30
|
+
onClick: () => window.open(n, "_blank"),
|
|
31
|
+
...a,
|
|
33
32
|
children: /* @__PURE__ */ t(
|
|
34
|
-
|
|
33
|
+
m,
|
|
35
34
|
{
|
|
36
35
|
size: l[o],
|
|
37
36
|
className: r(c[o])
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { BaseLink as s } from "../../base-link/base-link.js";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as d } 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 m = a.forwardRef(({ href: o, text: r, isActive: e, ...t },
|
|
9
|
+
const m = a.forwardRef(({ href: o, text: r, isActive: e, ...t }, n) => /* @__PURE__ */ i(
|
|
11
10
|
s,
|
|
12
11
|
{
|
|
13
12
|
href: o,
|
|
14
|
-
ref:
|
|
13
|
+
ref: n,
|
|
15
14
|
className: d(
|
|
16
15
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 relative",
|
|
17
16
|
"text-decoration-none text-foreground hover:text-foreground hover:bg-secondary px-4 py-2",
|
|
@@ -3,10 +3,9 @@ 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
|
|
8
|
+
function b({
|
|
10
9
|
range: n,
|
|
11
10
|
rangeList: o,
|
|
12
11
|
setRange: i,
|
|
@@ -32,5 +31,5 @@ function f({
|
|
|
32
31
|
)) });
|
|
33
32
|
}
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
b as RangeButtons
|
|
36
35
|
};
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
3
|
import { faCaretDown as d } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
-
import { FaIcon as
|
|
4
|
+
import { FaIcon as c } from "../../icons/fa-icon.js";
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as p } 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
|
-
function
|
|
10
|
+
function v({
|
|
12
11
|
header: a,
|
|
13
|
-
children:
|
|
14
|
-
index:
|
|
15
|
-
isExpandable:
|
|
12
|
+
children: s,
|
|
13
|
+
index: i,
|
|
14
|
+
isExpandable: t = !0
|
|
16
15
|
}) {
|
|
17
|
-
const [r,
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
16
|
+
const [r, n] = m.useState(!1);
|
|
17
|
+
return /* @__PURE__ */ e("div", { className: "rounded bg-gray-900/50", children: [
|
|
18
|
+
/* @__PURE__ */ e(
|
|
20
19
|
"div",
|
|
21
20
|
{
|
|
22
|
-
className: `flex ${
|
|
21
|
+
className: `flex ${t ? "cursor-pointer" : ""} items-center gap-2 p-3`,
|
|
23
22
|
onClick: () => {
|
|
24
|
-
|
|
23
|
+
t && n(!r);
|
|
25
24
|
},
|
|
26
25
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", children: [
|
|
28
27
|
"#",
|
|
29
|
-
|
|
28
|
+
i
|
|
30
29
|
] }),
|
|
31
30
|
a,
|
|
32
31
|
/* @__PURE__ */ o(
|
|
33
|
-
|
|
32
|
+
c,
|
|
34
33
|
{
|
|
35
34
|
icon: d,
|
|
36
|
-
className:
|
|
35
|
+
className: p(
|
|
37
36
|
"ml-auto size-4 text-muted-foreground",
|
|
38
37
|
r ? "rotate-180" : "",
|
|
39
38
|
"transition-transform duration-200 ease-in-out"
|
|
@@ -43,9 +42,9 @@ function y({
|
|
|
43
42
|
]
|
|
44
43
|
}
|
|
45
44
|
),
|
|
46
|
-
r && /* @__PURE__ */ o("div", { className: "border-t border-gray-800 p-4 space-y-2", children:
|
|
45
|
+
r && /* @__PURE__ */ o("div", { className: "border-t border-gray-800 p-4 space-y-2", children: s })
|
|
47
46
|
] });
|
|
48
47
|
}
|
|
49
48
|
export {
|
|
50
|
-
|
|
49
|
+
v as ExpandablCall
|
|
51
50
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
3
|
import { faCaretDown as d } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import { FaIcon as c } from "../../icons/fa-icon.js";
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as n } 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 { Card as f, CardContent as p } from "../card/card.js";
|
|
12
|
-
function
|
|
11
|
+
function v({
|
|
13
12
|
header: i,
|
|
14
13
|
children: s,
|
|
15
14
|
alwaysExpanded: r = !1
|
|
16
15
|
}) {
|
|
17
|
-
const [t,
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
16
|
+
const [t, a] = m.useState(r);
|
|
17
|
+
return /* @__PURE__ */ o(f, { children: [
|
|
18
|
+
/* @__PURE__ */ o(
|
|
20
19
|
"div",
|
|
21
20
|
{
|
|
22
21
|
className: n(
|
|
@@ -25,11 +24,11 @@ function I({
|
|
|
25
24
|
t ? "" : "rounded-b-xl"
|
|
26
25
|
),
|
|
27
26
|
onClick: () => {
|
|
28
|
-
r ||
|
|
27
|
+
r || a(!t);
|
|
29
28
|
},
|
|
30
29
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
!r && /* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: i }),
|
|
31
|
+
!r && /* @__PURE__ */ e("span", { className: "text-muted-foreground transform transition-transform", children: /* @__PURE__ */ e(
|
|
33
32
|
c,
|
|
34
33
|
{
|
|
35
34
|
icon: d,
|
|
@@ -43,9 +42,9 @@ function I({
|
|
|
43
42
|
]
|
|
44
43
|
}
|
|
45
44
|
),
|
|
46
|
-
t && /* @__PURE__ */
|
|
45
|
+
t && /* @__PURE__ */ e(p, { className: "border-t border-input bg-gray-900/30", children: s })
|
|
47
46
|
] });
|
|
48
47
|
}
|
|
49
48
|
export {
|
|
50
|
-
|
|
49
|
+
v as ExpandableCard
|
|
51
50
|
};
|
|
@@ -4,7 +4,6 @@ import * as o from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as h } 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 "../accordion/accordion.js";
|
|
@@ -7,7 +7,6 @@ import { FaIcon as o } from "../icons/fa-icon.js";
|
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
8
|
import { cn as r } 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
|
const h = y("", {
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import { faCheck as f } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import { FaIcon as x } from "../icons/fa-icon.js";
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as t } 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 d = l.forwardRef(
|
|
12
|
-
({ className: n, children: s, checked:
|
|
11
|
+
({ className: n, children: s, checked: e, onCheckedChange: i, disabled: o, ...a }, m) => /* @__PURE__ */ c(
|
|
13
12
|
"label",
|
|
14
13
|
{
|
|
15
|
-
ref:
|
|
14
|
+
ref: m,
|
|
16
15
|
className: t(
|
|
17
16
|
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
|
|
18
17
|
"hover:bg-secondary",
|
|
19
18
|
o && "pointer-events-none opacity-50",
|
|
20
19
|
n
|
|
21
20
|
),
|
|
22
|
-
...
|
|
21
|
+
...a,
|
|
23
22
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ r(
|
|
25
24
|
"input",
|
|
26
25
|
{
|
|
27
26
|
type: "checkbox",
|
|
28
|
-
checked:
|
|
27
|
+
checked: e,
|
|
29
28
|
onChange: (p) => i?.(p.target.checked),
|
|
30
29
|
disabled: o,
|
|
31
30
|
className: "sr-only"
|
|
32
31
|
}
|
|
33
32
|
),
|
|
34
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ r(
|
|
35
34
|
"span",
|
|
36
35
|
{
|
|
37
36
|
className: t(
|
|
38
37
|
"absolute left-2 flex h-4 w-4 items-center justify-center rounded-[4px] border border-primary shadow transition-colors",
|
|
39
|
-
|
|
38
|
+
e && "bg-primary text-primary-foreground"
|
|
40
39
|
),
|
|
41
|
-
children:
|
|
40
|
+
children: e && /* @__PURE__ */ r(x, { icon: f, className: "size-3!" })
|
|
42
41
|
}
|
|
43
42
|
),
|
|
44
43
|
s
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as s } from "../../buttons/button/button.js";
|
|
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 c = {
|
|
@@ -18,17 +17,17 @@ const c = {
|
|
|
18
17
|
$size: t = "lg",
|
|
19
18
|
$width: r = "compact",
|
|
20
19
|
$color: o = "primary",
|
|
21
|
-
className:
|
|
22
|
-
...
|
|
20
|
+
className: e,
|
|
21
|
+
...i
|
|
23
22
|
}, m) => /* @__PURE__ */ a(
|
|
24
|
-
|
|
23
|
+
s,
|
|
25
24
|
{
|
|
26
25
|
ref: m,
|
|
27
26
|
size: t,
|
|
28
27
|
width: r,
|
|
29
28
|
variant: c[o],
|
|
30
|
-
className:
|
|
31
|
-
...
|
|
29
|
+
className: p("inline-block whitespace-normal", e),
|
|
30
|
+
...i
|
|
32
31
|
}
|
|
33
32
|
)
|
|
34
33
|
);
|
package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js
CHANGED
|
@@ -4,7 +4,6 @@ import { DialogContainer as d } from "../../dialog/dialog-container.js";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as c } 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 = f.forwardRef(
|
|
@@ -15,7 +15,6 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
15
15
|
import "clsx";
|
|
16
16
|
import "tailwind-merge";
|
|
17
17
|
import "sonner";
|
|
18
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
19
18
|
import "luxon";
|
|
20
19
|
import "../../../utils/z-index.js";
|
|
21
20
|
import "../../buttons/tab-button/tab-button.js";
|
|
@@ -3,7 +3,6 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as d } 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 { AllocationWheelTest as p } from "./constants.js";
|
|
@@ -20,13 +19,13 @@ const c = [
|
|
|
20
19
|
"stroke-chart-10",
|
|
21
20
|
"stroke-chart-11",
|
|
22
21
|
"stroke-chart-12"
|
|
23
|
-
], t = 20, o = 3.5, e = (t - o) / 2,
|
|
24
|
-
function
|
|
25
|
-
share:
|
|
22
|
+
], t = 20, o = 3.5, e = (t - o) / 2, h = 2 * Math.PI * e;
|
|
23
|
+
function I({
|
|
24
|
+
share: i,
|
|
26
25
|
colorIndex: l,
|
|
27
26
|
idle: n = !1
|
|
28
27
|
}) {
|
|
29
|
-
const s = Math.min(1, Math.max(0,
|
|
28
|
+
const s = Math.min(1, Math.max(0, i)), a = h * s, m = n ? "stroke-muted-foreground" : c[l % c.length];
|
|
30
29
|
return /* @__PURE__ */ k(
|
|
31
30
|
"svg",
|
|
32
31
|
{
|
|
@@ -59,7 +58,7 @@ function M({
|
|
|
59
58
|
fill: "none",
|
|
60
59
|
className: d(m),
|
|
61
60
|
strokeWidth: o,
|
|
62
|
-
strokeDasharray: `${a} ${
|
|
61
|
+
strokeDasharray: `${a} ${h - a}`
|
|
63
62
|
}
|
|
64
63
|
)
|
|
65
64
|
]
|
|
@@ -67,5 +66,5 @@ function M({
|
|
|
67
66
|
);
|
|
68
67
|
}
|
|
69
68
|
export {
|
|
70
|
-
|
|
69
|
+
I as AllocationWheel
|
|
71
70
|
};
|
|
@@ -8,7 +8,6 @@ import "react";
|
|
|
8
8
|
import "@gearbox-protocol/sdk/onchain";
|
|
9
9
|
import { cn as N } 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 { AllocationWheel as U } from "./allocation-wheel.js";
|
|
@@ -27,7 +26,7 @@ function p(o) {
|
|
|
27
26
|
function C(o) {
|
|
28
27
|
return o.valueUsd != null;
|
|
29
28
|
}
|
|
30
|
-
function
|
|
29
|
+
function B({
|
|
31
30
|
data: o,
|
|
32
31
|
children: u,
|
|
33
32
|
className: a
|
|
@@ -35,7 +34,7 @@ function E({
|
|
|
35
34
|
const s = o.slices.reduce(
|
|
36
35
|
(e, r) => e + p(r.amount),
|
|
37
36
|
0
|
|
38
|
-
),
|
|
37
|
+
), d = o.slices.some((e) => C(e.amount));
|
|
39
38
|
let f = 0;
|
|
40
39
|
const x = /* @__PURE__ */ t(
|
|
41
40
|
"div",
|
|
@@ -48,7 +47,7 @@ function E({
|
|
|
48
47
|
),
|
|
49
48
|
"data-testid": l.root,
|
|
50
49
|
children: o.slices.map((e, r) => {
|
|
51
|
-
const
|
|
50
|
+
const m = p(e.amount), h = s > 0 ? m / s : 0, n = e.kind === "idle", g = n ? 0 : f++, b = e.kind === "idle" ? "idle" : `${e.token.address}-${r}`, c = d && e.amount.valueUsd != null ? I(m) : void 0;
|
|
52
51
|
return /* @__PURE__ */ i(
|
|
53
52
|
"div",
|
|
54
53
|
{
|
|
@@ -65,7 +64,7 @@ function E({
|
|
|
65
64
|
) }) : /* @__PURE__ */ t(w, { token: e.token, size: 20 }),
|
|
66
65
|
/* @__PURE__ */ t("span", { className: "truncate text-sm leading-5 text-foreground", children: n ? "Idle" : e.token.symbol })
|
|
67
66
|
] }),
|
|
68
|
-
|
|
67
|
+
d && /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
69
68
|
c != null && /* @__PURE__ */ t("span", { className: "text-sm font-semibold leading-5 tabular-nums text-foreground", children: c }),
|
|
70
69
|
/* @__PURE__ */ t("span", { "data-testid": l.wheel, children: /* @__PURE__ */ t(
|
|
71
70
|
U,
|
|
@@ -98,5 +97,5 @@ function E({
|
|
|
98
97
|
);
|
|
99
98
|
}
|
|
100
99
|
export {
|
|
101
|
-
|
|
100
|
+
B as CollateralAllocationTooltip
|
|
102
101
|
};
|
|
@@ -9,7 +9,6 @@ import "react";
|
|
|
9
9
|
import "@gearbox-protocol/sdk/onchain";
|
|
10
10
|
import { cn as c } from "../../../utils/cn.js";
|
|
11
11
|
import "sonner";
|
|
12
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
13
12
|
import "luxon";
|
|
14
13
|
import "../../../utils/z-index.js";
|
|
15
14
|
import { notificationCenterTestIds as a } from "./constants.js";
|
|
@@ -67,7 +66,7 @@ function b({ row: t }) {
|
|
|
67
66
|
}
|
|
68
67
|
);
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function E({
|
|
71
70
|
open: t,
|
|
72
71
|
onOpenChange: s,
|
|
73
72
|
deferredRows: o,
|
|
@@ -204,5 +203,5 @@ function L({
|
|
|
204
203
|
);
|
|
205
204
|
}
|
|
206
205
|
export {
|
|
207
|
-
|
|
206
|
+
E as NotificationCenter
|
|
208
207
|
};
|
|
@@ -7,7 +7,6 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "tailwind-merge";
|
|
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 { GridTableRow as l, GridTableHead as r } from "../../table/grid-table.js";
|
|
@@ -16,7 +15,7 @@ import "../../table/table.js";
|
|
|
16
15
|
import { useIntlTyped as c, FormattedMessageTyped as a } from "../../typed-intl/index.js";
|
|
17
16
|
import { getSortForField as m } from "../../../hooks/use-filter.js";
|
|
18
17
|
import "../../breakpoint-provider.js";
|
|
19
|
-
function
|
|
18
|
+
function S({
|
|
20
19
|
sort: p
|
|
21
20
|
}) {
|
|
22
21
|
const o = c(), { state: s, set: t } = p;
|
|
@@ -72,5 +71,5 @@ function D({
|
|
|
72
71
|
] });
|
|
73
72
|
}
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
S as PoolAssetsTableHead
|
|
76
75
|
};
|
|
@@ -5,7 +5,6 @@ import "clsx";
|
|
|
5
5
|
import "tailwind-merge";
|
|
6
6
|
import "sonner";
|
|
7
7
|
import { formatMoney as C } 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 "../../points-icon/points-icon.js";
|
|
@@ -38,7 +37,7 @@ function j(i, t) {
|
|
|
38
37
|
function B(i, t) {
|
|
39
38
|
return t <= 0n || i <= 0n ? 0 : Number(i * 10000n / t) / 1e4;
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function he({
|
|
42
41
|
asset: i,
|
|
43
42
|
underlyingToken: t,
|
|
44
43
|
last: x,
|
|
@@ -144,5 +143,5 @@ function ue({
|
|
|
144
143
|
);
|
|
145
144
|
}
|
|
146
145
|
export {
|
|
147
|
-
|
|
146
|
+
he as PoolAssetsTableRow
|
|
148
147
|
};
|
|
@@ -7,7 +7,6 @@ import "@fortawesome/free-solid-svg-icons";
|
|
|
7
7
|
import "../../icons/fa-icon.js";
|
|
8
8
|
import "@gearbox-protocol/sdk/onchain";
|
|
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 "react-intl";
|
|
@@ -21,11 +20,11 @@ import { PoolAssetsTableTest as v } from "./constants.js";
|
|
|
21
20
|
import { PoolAssetsTableHead as w } from "./pool-assets-table-head.js";
|
|
22
21
|
import { PoolAssetsTableRow as A } from "./pool-assets-table-row.js";
|
|
23
22
|
const C = 680;
|
|
24
|
-
function
|
|
23
|
+
function U({
|
|
25
24
|
list: t,
|
|
26
25
|
sort: s,
|
|
27
|
-
underlyingToken:
|
|
28
|
-
explorerUrl:
|
|
26
|
+
underlyingToken: l,
|
|
27
|
+
explorerUrl: p
|
|
29
28
|
}) {
|
|
30
29
|
const a = u(), { ref: d, widthKey: m } = x(), i = m > 0 ? m < C : a, n = t.reduce((r, e) => r + e.used.value, 0n);
|
|
31
30
|
return /* @__PURE__ */ o(f, { ref: d, className: "overflow-hidden rounded-lg p-2", children: /* @__PURE__ */ c(
|
|
@@ -42,12 +41,12 @@ function q({
|
|
|
42
41
|
A,
|
|
43
42
|
{
|
|
44
43
|
asset: r,
|
|
45
|
-
underlyingToken:
|
|
44
|
+
underlyingToken: l,
|
|
46
45
|
last: e === t.length - 1,
|
|
47
46
|
isCompact: i,
|
|
48
47
|
totalUsed: n,
|
|
49
48
|
colorIndex: e,
|
|
50
|
-
explorerUrl:
|
|
49
|
+
explorerUrl: p
|
|
51
50
|
},
|
|
52
51
|
r.token.address
|
|
53
52
|
)) })
|
|
@@ -56,5 +55,5 @@ function q({
|
|
|
56
55
|
) });
|
|
57
56
|
}
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
U as PoolAssetsTable
|
|
60
59
|
};
|
package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js
CHANGED
|
@@ -8,7 +8,6 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
8
8
|
import { cn as h } from "../../../../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
10
|
import { formatMoney as k } from "../../../../../utils/format-money.js";
|
|
11
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
12
11
|
import "luxon";
|
|
13
12
|
import "../../../../../utils/z-index.js";
|
|
14
13
|
import { TransactionConfirmAmountFieldTest as N } from "./constants.js";
|
|
@@ -42,7 +41,7 @@ function S(o) {
|
|
|
42
41
|
secondaryAmount: { valueUSD: t?.valueUsd ?? void 0 }
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
|
-
function
|
|
44
|
+
function V(o) {
|
|
46
45
|
const {
|
|
47
46
|
label: t,
|
|
48
47
|
loading: l = !1,
|
|
@@ -83,6 +82,6 @@ function E(o) {
|
|
|
83
82
|
);
|
|
84
83
|
}
|
|
85
84
|
export {
|
|
86
|
-
|
|
85
|
+
V as TransactionConfirmAmountField,
|
|
87
86
|
S as resolveAmountSlots
|
|
88
87
|
};
|
|
@@ -10,7 +10,6 @@ import "react";
|
|
|
10
10
|
import "@gearbox-protocol/sdk/onchain";
|
|
11
11
|
import { cn as I } from "../../../../../utils/cn.js";
|
|
12
12
|
import "sonner";
|
|
13
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../../../../utils/z-index.js";
|
|
16
15
|
import { Modal as M } from "../../../../modal/modal.js";
|
|
@@ -21,7 +20,7 @@ import { VSpace as f } from "../../../../vspace/vspace.js";
|
|
|
21
20
|
import { ProgressStepper as V } from "../stepper/ProgressStepper.js";
|
|
22
21
|
import { computeTransactionConfirmDialogLayout as z } from "./computeTransactionConfirmDialogLayout.js";
|
|
23
22
|
import { TransactionConfirmDialogTest as m, transactionConfirmModalContainerVariants as E, transactionConfirmDialogShellVariants as R, transactionConfirmShellContentVariants as j, transactionConfirmPreviewScrollVariants as y } from "./constants.js";
|
|
24
|
-
function
|
|
23
|
+
function le(e) {
|
|
25
24
|
const {
|
|
26
25
|
mode: t,
|
|
27
26
|
open: c = !0,
|
|
@@ -148,5 +147,5 @@ function B(e, t) {
|
|
|
148
147
|
}
|
|
149
148
|
}
|
|
150
149
|
export {
|
|
151
|
-
|
|
150
|
+
le as TransactionConfirmShell
|
|
152
151
|
};
|