@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,7 +3,6 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as o } 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 { ProgressStepperTest as p } from "./constants.js";
|
|
@@ -36,7 +35,7 @@ function d(r, n, a) {
|
|
|
36
35
|
function h(r) {
|
|
37
36
|
return r === "completed" || r === "active";
|
|
38
37
|
}
|
|
39
|
-
function
|
|
38
|
+
function D({
|
|
40
39
|
steps: r,
|
|
41
40
|
tone: n = "foreground",
|
|
42
41
|
className: a
|
|
@@ -101,5 +100,5 @@ function F({
|
|
|
101
100
|
);
|
|
102
101
|
}
|
|
103
102
|
export {
|
|
104
|
-
|
|
103
|
+
D as ProgressStepper
|
|
105
104
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { useId as x } from "react";
|
|
3
3
|
import { YieldBreakdownTooltip as v } from "../yield-breakdown-tooltip/yield-breakdown-tooltip.js";
|
|
4
4
|
import { totalApyOf as C, positiveTokenRewardsOf as I, pointProgramsOf as k } from "../../utils/apy-breakdown.js";
|
|
@@ -7,13 +7,12 @@ import { bpsToPercent as P } from "../../utils/bps.js";
|
|
|
7
7
|
import { cn as A } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
9
|
import { formatCompactPercent as O } from "../../utils/format-money.js";
|
|
10
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
11
10
|
import "luxon";
|
|
12
11
|
import "../../utils/z-index.js";
|
|
13
12
|
const l = 14;
|
|
14
13
|
function F() {
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */
|
|
14
|
+
const e = `additional-incentives-${x().replace(/:/g, "")}`;
|
|
15
|
+
return /* @__PURE__ */ n(
|
|
17
16
|
"svg",
|
|
18
17
|
{
|
|
19
18
|
width: l,
|
|
@@ -25,15 +24,15 @@ function F() {
|
|
|
25
24
|
role: "img",
|
|
26
25
|
"aria-label": "Incentives",
|
|
27
26
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ t("title", { children: "Incentives" }),
|
|
28
|
+
/* @__PURE__ */ t(
|
|
30
29
|
"path",
|
|
31
30
|
{
|
|
32
31
|
d: "M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14Z",
|
|
33
|
-
fill: `url(#${
|
|
32
|
+
fill: `url(#${e})`
|
|
34
33
|
}
|
|
35
34
|
),
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ t(
|
|
37
36
|
"path",
|
|
38
37
|
{
|
|
39
38
|
d: "M7 3.75V10.25M3.75 7H10.25",
|
|
@@ -42,18 +41,18 @@ function F() {
|
|
|
42
41
|
strokeLinecap: "round"
|
|
43
42
|
}
|
|
44
43
|
),
|
|
45
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ n(
|
|
46
45
|
"linearGradient",
|
|
47
46
|
{
|
|
48
|
-
id:
|
|
47
|
+
id: e,
|
|
49
48
|
x1: "0",
|
|
50
49
|
y1: "7",
|
|
51
50
|
x2: "14",
|
|
52
51
|
y2: "7",
|
|
53
52
|
gradientUnits: "userSpaceOnUse",
|
|
54
53
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ t("stop", { stopColor: "#FF2D8D" }),
|
|
55
|
+
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#FF6C20" })
|
|
57
56
|
]
|
|
58
57
|
}
|
|
59
58
|
) })
|
|
@@ -61,13 +60,13 @@ function F() {
|
|
|
61
60
|
}
|
|
62
61
|
);
|
|
63
62
|
}
|
|
64
|
-
function c(
|
|
65
|
-
return
|
|
63
|
+
function c(e) {
|
|
64
|
+
return e == null ? !1 : I(e).length > 0 || k(e).length > 0;
|
|
66
65
|
}
|
|
67
|
-
function
|
|
68
|
-
apy:
|
|
66
|
+
function U({
|
|
67
|
+
apy: e,
|
|
69
68
|
maxLeverage: p,
|
|
70
|
-
collateralApy:
|
|
69
|
+
collateralApy: r,
|
|
71
70
|
borrowApy: d,
|
|
72
71
|
quotaRate: a,
|
|
73
72
|
decimals: m = 2,
|
|
@@ -75,21 +74,21 @@ function Z({
|
|
|
75
74
|
period: h,
|
|
76
75
|
className: o
|
|
77
76
|
}) {
|
|
78
|
-
if (!
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
const i = C(
|
|
77
|
+
if (!e)
|
|
78
|
+
return /* @__PURE__ */ t("span", { className: "text-secondary-foreground", children: "—" });
|
|
79
|
+
const i = C(e), u = c(e) || c(r), g = f && i >= 1, s = () => {
|
|
81
80
|
const w = O(P(i), m);
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
u ? /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ n("div", { className: A("inline-flex items-center gap-1.5", o), children: [
|
|
82
|
+
/* @__PURE__ */ t("span", { className: "inline-flex items-center", children: w }),
|
|
83
|
+
u ? /* @__PURE__ */ t(F, {}) : null
|
|
85
84
|
] });
|
|
86
85
|
};
|
|
87
|
-
return g ? /* @__PURE__ */
|
|
86
|
+
return g ? /* @__PURE__ */ t(
|
|
88
87
|
v,
|
|
89
88
|
{
|
|
90
|
-
supplyApy:
|
|
89
|
+
supplyApy: e,
|
|
91
90
|
maxLeverage: p,
|
|
92
|
-
collateralApy:
|
|
91
|
+
collateralApy: r,
|
|
93
92
|
borrowApy: d,
|
|
94
93
|
quotaRate: a,
|
|
95
94
|
period: h,
|
|
@@ -99,5 +98,5 @@ function Z({
|
|
|
99
98
|
) : s();
|
|
100
99
|
}
|
|
101
100
|
export {
|
|
102
|
-
|
|
101
|
+
U as CompoundAPY
|
|
103
102
|
};
|
|
@@ -2,14 +2,13 @@ import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { IconButton as t } from "../icon-button/icon-button.js";
|
|
4
4
|
import { faXmark as c } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
-
import { FaIcon as
|
|
5
|
+
import { FaIcon as f } from "../icons/fa-icon.js";
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as l } 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
|
-
const
|
|
11
|
+
const p = s.forwardRef(
|
|
13
12
|
({ title: m, titleAddon: i, onClose: e, className: o }, a) => /* @__PURE__ */ n(
|
|
14
13
|
"div",
|
|
15
14
|
{
|
|
@@ -39,14 +38,14 @@ const f = s.forwardRef(
|
|
|
39
38
|
size: 30,
|
|
40
39
|
onClick: e,
|
|
41
40
|
"aria-label": "Close",
|
|
42
|
-
children: /* @__PURE__ */ r(
|
|
41
|
+
children: /* @__PURE__ */ r(f, { icon: c, className: "size-5" })
|
|
43
42
|
}
|
|
44
43
|
) }) : null
|
|
45
44
|
]
|
|
46
45
|
}
|
|
47
46
|
)
|
|
48
47
|
);
|
|
49
|
-
|
|
48
|
+
p.displayName = "ConfirmMenu";
|
|
50
49
|
export {
|
|
51
|
-
|
|
50
|
+
p as ConfirmMenu
|
|
52
51
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as y, useMemo as
|
|
2
|
+
import { forwardRef as y, useMemo as l } from "react";
|
|
3
3
|
import { RoundedImage as u } from "../rounded-image/rounded-image.js";
|
|
4
4
|
import { Skeleton as g } from "../skeleton/skeleton.js";
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "tailwind-merge";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import { percentTemplate as
|
|
9
|
+
import { percentTemplate as i } from "../../utils/format-money.js";
|
|
10
10
|
import { getStatic as c } from "../../utils/static.js";
|
|
11
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
12
11
|
import "luxon";
|
|
13
12
|
import "../../utils/z-index.js";
|
|
14
13
|
function h({
|
|
@@ -31,7 +30,7 @@ function h({
|
|
|
31
30
|
);
|
|
32
31
|
}
|
|
33
32
|
const d = y(({ poolAPY: t, extraAPY: n, tokensList: a }, o) => /* @__PURE__ */ r("div", { ref: o, className: "inline-block", children: n.length > 0 && /* @__PURE__ */ r("span", { className: "text-xs", children: /* @__PURE__ */ m("span", { className: "flex items-start text-secondary-foreground font-normal", children: [
|
|
34
|
-
|
|
33
|
+
i(t),
|
|
35
34
|
" +",
|
|
36
35
|
/* @__PURE__ */ r("span", { className: "flex flex-col items-end flex-wrap", children: n.map((e) => {
|
|
37
36
|
const s = e.apy || 0;
|
|
@@ -40,7 +39,7 @@ const d = y(({ poolAPY: t, extraAPY: n, tokensList: a }, o) => /* @__PURE__ */ r
|
|
|
40
39
|
{
|
|
41
40
|
children: [
|
|
42
41
|
/* @__PURE__ */ r(h, { reward: e, tokensList: a }),
|
|
43
|
-
|
|
42
|
+
i(s)
|
|
44
43
|
]
|
|
45
44
|
},
|
|
46
45
|
`${e.token}-${e.rewardToken}-${e.apy}-${e.endTimestamp}`
|
|
@@ -48,17 +47,17 @@ const d = y(({ poolAPY: t, extraAPY: n, tokensList: a }, o) => /* @__PURE__ */ r
|
|
|
48
47
|
}) })
|
|
49
48
|
] }) }) }));
|
|
50
49
|
d.displayName = "ApyParts";
|
|
51
|
-
function
|
|
50
|
+
function j({
|
|
52
51
|
totalAPY: t,
|
|
53
52
|
totalAPYLoading: n,
|
|
54
53
|
baseAPY: a,
|
|
55
54
|
extraAPY: o,
|
|
56
55
|
tokensList: e
|
|
57
56
|
}) {
|
|
58
|
-
const s =
|
|
57
|
+
const s = l(
|
|
59
58
|
() => a.reduce((p, x) => p + x.apy, 0),
|
|
60
59
|
[a]
|
|
61
|
-
), f =
|
|
60
|
+
), f = l(() => o.filter((p) => (p.apy || 0) > 0), [o]);
|
|
62
61
|
return /* @__PURE__ */ r(g, { width: 80, loading: n, children: t >= 1e-3 && /* @__PURE__ */ r(
|
|
63
62
|
d,
|
|
64
63
|
{
|
|
@@ -69,6 +68,6 @@ function v({
|
|
|
69
68
|
) });
|
|
70
69
|
}
|
|
71
70
|
export {
|
|
72
|
-
|
|
71
|
+
j as DetailedApy,
|
|
73
72
|
h as PoolRewardsIcon
|
|
74
73
|
};
|
|
@@ -11,7 +11,6 @@ import { useIsMobile as h } from "../../hooks/use-media-query.js";
|
|
|
11
11
|
import "@gearbox-protocol/sdk/onchain";
|
|
12
12
|
import { cn as s } from "../../utils/cn.js";
|
|
13
13
|
import "sonner";
|
|
14
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
15
14
|
import "luxon";
|
|
16
15
|
import "../../utils/z-index.js";
|
|
17
16
|
const I = r.forwardRef(function({ toCopy: t, className: n }, c) {
|
|
@@ -12,7 +12,6 @@ import { useIsMobile as x } from "../../hooks/use-media-query.js";
|
|
|
12
12
|
import "@gearbox-protocol/sdk/onchain";
|
|
13
13
|
import { cn as g } from "../../utils/cn.js";
|
|
14
14
|
import "sonner";
|
|
15
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
16
15
|
import "luxon";
|
|
17
16
|
import "../../utils/z-index.js";
|
|
18
17
|
const D = s.forwardRef(function({ explorerLinks: r, className: i, title: m }, n) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cva as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { cva as s } from "class-variance-authority";
|
|
3
|
+
import * as i from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
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
|
-
const x =
|
|
9
|
+
const x = s("", {
|
|
11
10
|
variants: {
|
|
12
11
|
padding: {
|
|
13
12
|
md: "p-5",
|
|
@@ -39,7 +38,7 @@ const x = n("", {
|
|
|
39
38
|
colorTheme: "default",
|
|
40
39
|
maxWidth: "full"
|
|
41
40
|
}
|
|
42
|
-
}), f =
|
|
41
|
+
}), f = i.forwardRef(
|
|
43
42
|
({
|
|
44
43
|
maxWidth: r = "full",
|
|
45
44
|
padding: a = !0,
|
|
@@ -48,7 +47,7 @@ const x = n("", {
|
|
|
48
47
|
className: d,
|
|
49
48
|
children: t,
|
|
50
49
|
...l
|
|
51
|
-
}, m) => /* @__PURE__ */
|
|
50
|
+
}, m) => /* @__PURE__ */ n(
|
|
52
51
|
"div",
|
|
53
52
|
{
|
|
54
53
|
ref: m,
|
|
@@ -6,7 +6,6 @@ import { FaIcon as l } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as m } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import { Z_INDEX as p } from "../../utils/z-index.js";
|
|
12
11
|
import { DialogPortal as c } from "./dialog.js";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-dialog";
|
|
3
|
-
import * as
|
|
3
|
+
import * as e 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
|
-
const a =
|
|
9
|
+
const a = e.forwardRef(({ className: i, ...r }, t) => /* @__PURE__ */ m(
|
|
11
10
|
o.Description,
|
|
12
11
|
{
|
|
13
12
|
ref: t,
|
|
14
|
-
className:
|
|
13
|
+
className: p("text-sm text-muted-foreground", i),
|
|
15
14
|
...r
|
|
16
15
|
}
|
|
17
16
|
));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { Button as
|
|
2
|
+
import { Button as m } from "../buttons/button/button.js";
|
|
3
3
|
import "react";
|
|
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
|
import { Dialog as g } from "./dialog.js";
|
|
@@ -12,11 +11,11 @@ import { DialogContent as v } from "./dialog-content.js";
|
|
|
12
11
|
import { DialogFooter as D } from "./dialog-footer.js";
|
|
13
12
|
import { DialogHeader as w } from "./dialog-header.js";
|
|
14
13
|
import { DialogTitle as N } from "./dialog-title.js";
|
|
15
|
-
function
|
|
14
|
+
function I({
|
|
16
15
|
title: c,
|
|
17
|
-
isFormValid:
|
|
16
|
+
isFormValid: s,
|
|
18
17
|
isLoading: l,
|
|
19
|
-
saveButtonText:
|
|
18
|
+
saveButtonText: p = "Save changes",
|
|
20
19
|
loadingText: f = "Saving...",
|
|
21
20
|
onCancel: t,
|
|
22
21
|
onSubmit: d,
|
|
@@ -29,15 +28,15 @@ function J({
|
|
|
29
28
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
29
|
aiHelpDisabled: H
|
|
31
30
|
}) {
|
|
32
|
-
const x = (
|
|
33
|
-
|
|
31
|
+
const x = (n) => {
|
|
32
|
+
n.preventDefault(), d(n);
|
|
34
33
|
}, a = /* @__PURE__ */ e(
|
|
35
|
-
|
|
34
|
+
m,
|
|
36
35
|
{
|
|
37
|
-
disabled: !
|
|
36
|
+
disabled: !s || l,
|
|
38
37
|
type: "submit",
|
|
39
38
|
variant: r,
|
|
40
|
-
children: l ? f :
|
|
39
|
+
children: l ? f : p
|
|
41
40
|
}
|
|
42
41
|
);
|
|
43
42
|
return /* @__PURE__ */ e(g, { open: !0, onOpenChange: t, children: /* @__PURE__ */ e(
|
|
@@ -54,7 +53,7 @@ function J({
|
|
|
54
53
|
/* @__PURE__ */ e(D, { className: "w-full mt-8", children: /* @__PURE__ */ i("div", { className: "flex items-center w-full justify-between", children: [
|
|
55
54
|
/* @__PURE__ */ e("div", { className: "flex items-center space-x-2" }),
|
|
56
55
|
/* @__PURE__ */ i("div", { className: "flex items-center space-x-2", children: [
|
|
57
|
-
/* @__PURE__ */ e(
|
|
56
|
+
/* @__PURE__ */ e(m, { type: "button", variant: "outline", onClick: t, children: "Cancel" }),
|
|
58
57
|
o ? /* @__PURE__ */ e(o, { variant: r, children: a }) : a
|
|
59
58
|
] })
|
|
60
59
|
] }) })
|
|
@@ -63,5 +62,5 @@ function J({
|
|
|
63
62
|
) });
|
|
64
63
|
}
|
|
65
64
|
export {
|
|
66
|
-
|
|
65
|
+
I as DialogForm
|
|
67
66
|
};
|
|
@@ -3,20 +3,19 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as r } 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
|
const m = ({
|
|
10
|
-
className:
|
|
11
|
-
...
|
|
9
|
+
className: e,
|
|
10
|
+
...t
|
|
12
11
|
}) => /* @__PURE__ */ o(
|
|
13
12
|
"div",
|
|
14
13
|
{
|
|
15
14
|
className: r(
|
|
16
15
|
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
17
|
-
|
|
16
|
+
e
|
|
18
17
|
),
|
|
19
|
-
...
|
|
18
|
+
...t
|
|
20
19
|
}
|
|
21
20
|
);
|
|
22
21
|
m.displayName = "DialogHeader";
|
|
@@ -4,7 +4,6 @@ import * as c from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as w } 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 { Modal as g } from "../modal/modal.js";
|
|
@@ -4,19 +4,18 @@ import * as r 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 p = r.forwardRef(({ className: t, ...
|
|
9
|
+
const p = r.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ i(
|
|
11
10
|
a.Overlay,
|
|
12
11
|
{
|
|
13
|
-
ref:
|
|
12
|
+
ref: o,
|
|
14
13
|
className: m(
|
|
15
14
|
s.MODAL,
|
|
16
15
|
"fixed inset-0 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
17
16
|
t
|
|
18
17
|
),
|
|
19
|
-
...
|
|
18
|
+
...e
|
|
20
19
|
}
|
|
21
20
|
));
|
|
22
21
|
p.displayName = a.Overlay.displayName;
|
|
@@ -4,7 +4,6 @@ import * as e from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as a } 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 = e.forwardRef(({ className: t, ...i }, r) => /* @__PURE__ */ m(
|
|
@@ -6,7 +6,6 @@ import { FaIcon as p } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as f } 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 u = d.forwardRef(
|
|
@@ -2,18 +2,17 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import * as i from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as n } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
|
-
import { Z_INDEX as
|
|
8
|
+
import { Z_INDEX as m } from "../../utils/z-index.js";
|
|
10
9
|
const s = i.forwardRef(({ className: e, sideOffset: a = 4, ...r }, d) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
|
11
10
|
o.Content,
|
|
12
11
|
{
|
|
13
12
|
ref: d,
|
|
14
13
|
sideOffset: a,
|
|
15
|
-
className:
|
|
16
|
-
|
|
14
|
+
className: n(
|
|
15
|
+
m.DROPDOWN,
|
|
17
16
|
"min-w-32 overflow-hidden rounded-lg border border-border bg-gray-40 p-1 text-popover-foreground shadow-lg",
|
|
18
17
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
19
18
|
e
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as a } 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 = n.forwardRef(({ className: e, inset: r, ...t },
|
|
9
|
+
const m = n.forwardRef(({ className: e, inset: r, ...t }, s) => /* @__PURE__ */ i(
|
|
11
10
|
o.Item,
|
|
12
11
|
{
|
|
13
|
-
ref:
|
|
12
|
+
ref: s,
|
|
14
13
|
className: a(
|
|
15
14
|
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:text-foreground hover:bg-secondary focus-visible:outline-none focus:bg-secondary focus:text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-3! [&>svg]:shrink-0",
|
|
16
15
|
r && "pl-8",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as i from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as a } 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 s =
|
|
9
|
+
const s = i.forwardRef(({ className: m, inset: r, ...p }, t) => /* @__PURE__ */ e(
|
|
11
10
|
o.Label,
|
|
12
11
|
{
|
|
13
12
|
ref: t,
|
|
@@ -6,18 +6,17 @@ import { FaIcon as c } from "../icons/fa-icon.js";
|
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as d } 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
|
-
const l = s.forwardRef(({ className: t, children: r, ...
|
|
11
|
+
const l = s.forwardRef(({ className: t, children: r, ...a }, i) => /* @__PURE__ */ n(
|
|
13
12
|
o.RadioItem,
|
|
14
13
|
{
|
|
15
|
-
ref:
|
|
14
|
+
ref: i,
|
|
16
15
|
className: d(
|
|
17
16
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
18
17
|
t
|
|
19
18
|
),
|
|
20
|
-
...
|
|
19
|
+
...a,
|
|
21
20
|
children: [
|
|
22
21
|
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(o.ItemIndicator, { children: /* @__PURE__ */ e(c, { icon: m, className: "size-2 fill-current" }) }) }),
|
|
23
22
|
r
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as t from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
|
-
import { cn as
|
|
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
|
-
const
|
|
9
|
+
const i = t.forwardRef(({ className: o, ...m }, p) => /* @__PURE__ */ a(
|
|
11
10
|
r.Separator,
|
|
12
11
|
{
|
|
13
12
|
ref: p,
|
|
14
|
-
className:
|
|
13
|
+
className: e("-mx-1 my-1 h-px bg-muted", o),
|
|
15
14
|
...m
|
|
16
15
|
}
|
|
17
16
|
));
|
|
18
|
-
|
|
17
|
+
i.displayName = r.Separator.displayName;
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
i as DropdownMenuSeparator
|
|
21
20
|
};
|
|
@@ -4,7 +4,6 @@ import * as i from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as r } 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 m } from "../../utils/z-index.js";
|
|
10
9
|
const n = i.forwardRef(({ className: o, ...e }, a) => /* @__PURE__ */ d(
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { IconExpand as
|
|
1
|
+
import { jsxs as n, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { IconExpand as a } from "@gearbox-protocol/static";
|
|
3
3
|
import * as e from "@radix-ui/react-dropdown-menu";
|
|
4
|
-
import * as
|
|
4
|
+
import * as p from "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
|
-
const g =
|
|
10
|
+
const g = p.forwardRef(({ className: r, inset: o, children: s, ...t }, i) => /* @__PURE__ */ n(
|
|
12
11
|
e.SubTrigger,
|
|
13
12
|
{
|
|
14
13
|
ref: i,
|
|
@@ -17,10 +16,10 @@ const g = a.forwardRef(({ className: r, inset: o, children: t, ...s }, i) => /*
|
|
|
17
16
|
o && "pl-8",
|
|
18
17
|
r
|
|
19
18
|
),
|
|
20
|
-
...
|
|
19
|
+
...t,
|
|
21
20
|
children: [
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */
|
|
21
|
+
s,
|
|
22
|
+
/* @__PURE__ */ m(a, { size: 16, className: "ml-auto [&_svg]:size-4" })
|
|
24
23
|
]
|
|
25
24
|
}
|
|
26
25
|
));
|