@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
|
@@ -9,7 +9,6 @@ import { TextButton as M } from "../text-button/text-button.js";
|
|
|
9
9
|
import "@gearbox-protocol/sdk/onchain";
|
|
10
10
|
import { cn as f } 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
|
const S = D("", {
|
|
@@ -30,9 +29,9 @@ const S = D("", {
|
|
|
30
29
|
md: "default",
|
|
31
30
|
lg: "lg"
|
|
32
31
|
};
|
|
33
|
-
function
|
|
34
|
-
label:
|
|
35
|
-
value:
|
|
32
|
+
function X({
|
|
33
|
+
label: c,
|
|
34
|
+
value: m,
|
|
36
35
|
onChange: d,
|
|
37
36
|
onSubmit: u,
|
|
38
37
|
onEditModeChange: p,
|
|
@@ -75,7 +74,7 @@ function Y({
|
|
|
75
74
|
L,
|
|
76
75
|
{
|
|
77
76
|
ref: n,
|
|
78
|
-
value:
|
|
77
|
+
value: m,
|
|
79
78
|
size: V[s],
|
|
80
79
|
colorTheme: x,
|
|
81
80
|
onChange: d,
|
|
@@ -114,12 +113,12 @@ function Y({
|
|
|
114
113
|
icon: /* @__PURE__ */ t(z, { size: 12, className: "mb-[3px] shrink-0", "aria-hidden": !0 }),
|
|
115
114
|
tabIndex: -1,
|
|
116
115
|
onClick: j,
|
|
117
|
-
children:
|
|
116
|
+
children: c
|
|
118
117
|
}
|
|
119
118
|
)
|
|
120
119
|
}
|
|
121
120
|
);
|
|
122
121
|
}
|
|
123
122
|
export {
|
|
124
|
-
|
|
123
|
+
X as EditInput
|
|
125
124
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsxs 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
|
-
function
|
|
8
|
+
function f({
|
|
10
9
|
err: t,
|
|
11
10
|
title: o,
|
|
12
|
-
className:
|
|
11
|
+
className: e
|
|
13
12
|
}) {
|
|
14
|
-
return /* @__PURE__ */ r("div", { className:
|
|
13
|
+
return /* @__PURE__ */ r("div", { className: i("text-destructive", e), children: [
|
|
15
14
|
/* @__PURE__ */ r("strong", { children: [
|
|
16
15
|
o ?? "Error",
|
|
17
16
|
":"
|
|
@@ -21,5 +20,5 @@ function g({
|
|
|
21
20
|
] });
|
|
22
21
|
}
|
|
23
22
|
export {
|
|
24
|
-
|
|
23
|
+
f as ErrorLineMessage
|
|
25
24
|
};
|
|
@@ -7,10 +7,9 @@ import "react";
|
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
8
|
import { cn as n } 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
|
-
function
|
|
12
|
+
function v({
|
|
14
13
|
err: t,
|
|
15
14
|
btnTitle: m,
|
|
16
15
|
onClick: o,
|
|
@@ -35,5 +34,5 @@ function y({
|
|
|
35
34
|
);
|
|
36
35
|
}
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
v as ErrorMessage
|
|
39
38
|
};
|
|
@@ -3,7 +3,6 @@ import * as s from "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as l } 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 { filterBlockVariants as c } from "./variants.js";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
3
|
+
import * as m from "react";
|
|
4
4
|
import { faCheck as n } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { FaIcon as l } 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 p =
|
|
11
|
+
const p = m.forwardRef(({ className: o, children: r, checked: a, ...i }, s) => /* @__PURE__ */ c(
|
|
13
12
|
t.CheckboxItem,
|
|
14
13
|
{
|
|
15
14
|
ref: s,
|
|
@@ -7,7 +7,6 @@ import { FaIcon as l } from "../icons/fa-icon.js";
|
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
8
|
import { cn as u } 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 d = m.forwardRef(
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as s } 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 { FilterChip as u } from "./filter-chip.js";
|
|
@@ -14,13 +13,13 @@ const c = d.forwardRef(
|
|
|
14
13
|
onRemoveFilter: t,
|
|
15
14
|
onClearAll: o,
|
|
16
15
|
showClearAll: n = !0,
|
|
17
|
-
...
|
|
18
|
-
},
|
|
16
|
+
...a
|
|
17
|
+
}, l) => r.length === 0 ? null : /* @__PURE__ */ p(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
|
-
ref:
|
|
20
|
+
ref: l,
|
|
22
21
|
className: s("flex flex-wrap items-center gap-2", m),
|
|
23
|
-
...
|
|
22
|
+
...a,
|
|
24
23
|
children: [
|
|
25
24
|
r.map((e) => /* @__PURE__ */ i(
|
|
26
25
|
u,
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as u } 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 x = d.forwardRef(
|
|
10
9
|
({
|
|
11
10
|
className: n,
|
|
12
11
|
inset: a,
|
|
13
|
-
title:
|
|
12
|
+
title: s,
|
|
14
13
|
decimals: f,
|
|
15
14
|
maxValue: h,
|
|
16
|
-
state:
|
|
15
|
+
state: e,
|
|
17
16
|
onSave: v,
|
|
18
|
-
onReset:
|
|
19
|
-
children:
|
|
17
|
+
onReset: t,
|
|
18
|
+
children: i,
|
|
20
19
|
...m
|
|
21
20
|
}, l) => {
|
|
22
|
-
const o =
|
|
23
|
-
return /* @__PURE__ */
|
|
21
|
+
const o = e != null;
|
|
22
|
+
return /* @__PURE__ */ p(
|
|
24
23
|
"div",
|
|
25
24
|
{
|
|
26
25
|
ref: l,
|
|
@@ -32,13 +31,13 @@ const x = d.forwardRef(
|
|
|
32
31
|
),
|
|
33
32
|
...m,
|
|
34
33
|
children: [
|
|
35
|
-
/* @__PURE__ */ r("span", { children:
|
|
36
|
-
o &&
|
|
34
|
+
/* @__PURE__ */ r("span", { children: s || i }),
|
|
35
|
+
o && t && /* @__PURE__ */ r(
|
|
37
36
|
"button",
|
|
38
37
|
{
|
|
39
38
|
type: "button",
|
|
40
|
-
onClick: (
|
|
41
|
-
|
|
39
|
+
onClick: (c) => {
|
|
40
|
+
c.stopPropagation(), t();
|
|
42
41
|
},
|
|
43
42
|
className: "text-xs text-muted-foreground hover:text-foreground",
|
|
44
43
|
children: "Reset"
|
|
@@ -4,7 +4,6 @@ import * as t 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 e = t.forwardRef(({ className: o, ...m }, p) => /* @__PURE__ */ i(r.Group, { ref: p, className: a(o), ...m }));
|
|
@@ -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 s = e.forwardRef(({ className: m, inset: r, ...t }, i) => /* @__PURE__ */ p(
|
|
@@ -3,7 +3,6 @@ import * as x from "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as g } 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 b = x.forwardRef(
|
|
@@ -17,13 +16,13 @@ const b = x.forwardRef(
|
|
|
17
16
|
onReset: o,
|
|
18
17
|
children: l,
|
|
19
18
|
onClick: p,
|
|
20
|
-
...
|
|
21
|
-
},
|
|
19
|
+
...u
|
|
20
|
+
}, m) => {
|
|
22
21
|
const r = e != null;
|
|
23
22
|
return /* @__PURE__ */ d(
|
|
24
23
|
"button",
|
|
25
24
|
{
|
|
26
|
-
ref:
|
|
25
|
+
ref: m,
|
|
27
26
|
type: "button",
|
|
28
27
|
"data-has-state": r,
|
|
29
28
|
className: g(
|
|
@@ -36,7 +35,7 @@ const b = x.forwardRef(
|
|
|
36
35
|
),
|
|
37
36
|
onClick: p || a,
|
|
38
37
|
disabled: t,
|
|
39
|
-
...
|
|
38
|
+
...u,
|
|
40
39
|
children: [
|
|
41
40
|
/* @__PURE__ */ n("span", { children: c || l }),
|
|
42
41
|
r && o && /* @__PURE__ */ n(
|
|
@@ -9,7 +9,6 @@ import "../buttons/navigation-button/navigation-button.js";
|
|
|
9
9
|
import "@gearbox-protocol/sdk/onchain";
|
|
10
10
|
import { cn as D } from "../../utils/cn.js";
|
|
11
11
|
import "sonner";
|
|
12
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
13
12
|
import { extractTextFromLabel as j, serializeValue as R } from "../../utils/react.js";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../utils/z-index.js";
|
|
@@ -34,7 +33,7 @@ import { useIntlTyped as ae } from "../typed-intl/index.js";
|
|
|
34
33
|
function d(m, o) {
|
|
35
34
|
return m ? Array.isArray(m) ? m.includes(o) : m.has(o) : !1;
|
|
36
35
|
}
|
|
37
|
-
function
|
|
36
|
+
function qe({
|
|
38
37
|
title: m,
|
|
39
38
|
state: o,
|
|
40
39
|
modalShow: f,
|
|
@@ -214,5 +213,5 @@ function Qe({
|
|
|
214
213
|
);
|
|
215
214
|
}
|
|
216
215
|
export {
|
|
217
|
-
|
|
216
|
+
qe as FilterModal
|
|
218
217
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as
|
|
4
|
-
import { faCircle as
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { faCircle as m } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { FaIcon as c } 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 d =
|
|
11
|
+
const d = n.forwardRef(({ className: o, children: r, ...i }, a) => /* @__PURE__ */ s(
|
|
13
12
|
t.RadioItem,
|
|
14
13
|
{
|
|
15
14
|
ref: a,
|
|
@@ -19,7 +18,7 @@ const d = m.forwardRef(({ className: o, children: r, ...i }, a) => /* @__PURE__
|
|
|
19
18
|
),
|
|
20
19
|
...i,
|
|
21
20
|
children: [
|
|
22
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(c, { icon:
|
|
21
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(c, { icon: m, className: "size-2 fill-current" }) }) }),
|
|
23
22
|
r
|
|
24
23
|
]
|
|
25
24
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
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 p from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as i } 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 e =
|
|
9
|
+
const e = p.forwardRef(({ className: o, ...m }, t) => /* @__PURE__ */ a(
|
|
11
10
|
r.Separator,
|
|
12
11
|
{
|
|
13
12
|
ref: t,
|
|
@@ -5,10 +5,9 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as u } 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 k({
|
|
12
11
|
value: t,
|
|
13
12
|
decimalPartLength: r = 4,
|
|
14
13
|
hideZerosIfMore: p = 3,
|
|
@@ -55,5 +54,5 @@ function x({ zeroPart: t, repeats: r }) {
|
|
|
55
54
|
] });
|
|
56
55
|
}
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
k as FormattedNumberString
|
|
59
58
|
};
|
|
@@ -8,10 +8,9 @@ import { TooltipProvider as y, Tooltip as b, TooltipTrigger as H, TooltipContent
|
|
|
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
|
-
function
|
|
13
|
+
function $({
|
|
15
14
|
title: l,
|
|
16
15
|
tip: r,
|
|
17
16
|
arrowPosition: i = "left",
|
|
@@ -21,7 +20,7 @@ function q({
|
|
|
21
20
|
onSort: t,
|
|
22
21
|
className: h
|
|
23
22
|
}) {
|
|
24
|
-
const [x,
|
|
23
|
+
const [x, a] = v.useState(!1), g = !!s || x, c = () => /* @__PURE__ */ e(
|
|
25
24
|
"span",
|
|
26
25
|
{
|
|
27
26
|
className: n(
|
|
@@ -30,7 +29,7 @@ function q({
|
|
|
30
29
|
),
|
|
31
30
|
children: s === "asc" ? /* @__PURE__ */ e(d, { icon: N, className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(d, { icon: T, className: "size-3 text-muted-foreground" })
|
|
32
31
|
}
|
|
33
|
-
),
|
|
32
|
+
), m = () => /* @__PURE__ */ o(
|
|
34
33
|
"button",
|
|
35
34
|
{
|
|
36
35
|
type: "button",
|
|
@@ -42,9 +41,9 @@ function q({
|
|
|
42
41
|
!t && "cursor-default"
|
|
43
42
|
),
|
|
44
43
|
children: [
|
|
45
|
-
t && i === "left" &&
|
|
44
|
+
t && i === "left" && c(),
|
|
46
45
|
l,
|
|
47
|
-
t && i === "right" &&
|
|
46
|
+
t && i === "right" && c()
|
|
48
47
|
]
|
|
49
48
|
}
|
|
50
49
|
), C = `Sort by ${f}`;
|
|
@@ -52,19 +51,19 @@ function q({
|
|
|
52
51
|
"div",
|
|
53
52
|
{
|
|
54
53
|
className: n("inline-flex items-center gap-1.5", h),
|
|
55
|
-
onPointerEnter: () =>
|
|
56
|
-
onPointerLeave: () =>
|
|
54
|
+
onPointerEnter: () => a(!0),
|
|
55
|
+
onPointerLeave: () => a(!1),
|
|
57
56
|
children: [
|
|
58
57
|
t ? /* @__PURE__ */ e(y, { children: /* @__PURE__ */ o(b, { children: [
|
|
59
|
-
/* @__PURE__ */ e(H, { asChild: !0, children:
|
|
58
|
+
/* @__PURE__ */ e(H, { asChild: !0, children: m() }),
|
|
60
59
|
/* @__PURE__ */ e(w, { children: u || C })
|
|
61
|
-
] }) }) :
|
|
60
|
+
] }) }) : m(),
|
|
62
61
|
r && /* @__PURE__ */ e(p, { children: r })
|
|
63
62
|
]
|
|
64
63
|
}
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function q({
|
|
68
67
|
title: l,
|
|
69
68
|
tip: r,
|
|
70
69
|
className: i
|
|
@@ -75,6 +74,6 @@ function B({
|
|
|
75
74
|
] });
|
|
76
75
|
}
|
|
77
76
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
$ as HeadCell,
|
|
78
|
+
q as SimpleHeadCell
|
|
80
79
|
};
|
|
@@ -4,7 +4,6 @@ import { cva as F } from "class-variance-authority";
|
|
|
4
4
|
import "react";
|
|
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 { StatusBars as N, HealthDot as g } from "../status-elements/status-elements.js";
|
|
@@ -26,7 +25,7 @@ const A = 15e3, D = 11e3, b = 10500, w = (t) => {
|
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
);
|
|
29
|
-
function
|
|
28
|
+
function P({
|
|
30
29
|
value: t,
|
|
31
30
|
debt: s,
|
|
32
31
|
decimals: c = 3,
|
|
@@ -61,6 +60,6 @@ function k({
|
|
|
61
60
|
export {
|
|
62
61
|
D as BAD_HF,
|
|
63
62
|
A as GOOD_HF,
|
|
64
|
-
|
|
63
|
+
P as HealthFactor,
|
|
65
64
|
w as getHFZones
|
|
66
65
|
};
|
|
@@ -5,7 +5,6 @@ import * as c from "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as s } 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 { SimpleTooltip as C } from "../tooltip/simple-tooltip.js";
|
|
@@ -54,8 +53,8 @@ const H = T("transition-colors", {
|
|
|
54
53
|
iconSize: i = 14,
|
|
55
54
|
iconColor: n = "gray-90",
|
|
56
55
|
iconHoverColor: p = "gray-110",
|
|
57
|
-
iconVariant:
|
|
58
|
-
onPointerEnter:
|
|
56
|
+
iconVariant: x = "question",
|
|
57
|
+
onPointerEnter: m,
|
|
59
58
|
...d
|
|
60
59
|
}, f) => {
|
|
61
60
|
const u = /* @__PURE__ */ e(
|
|
@@ -65,8 +64,8 @@ const H = T("transition-colors", {
|
|
|
65
64
|
iconSize: i,
|
|
66
65
|
iconColor: n,
|
|
67
66
|
iconHoverColor: p,
|
|
68
|
-
iconVariant:
|
|
69
|
-
onPointerEnter:
|
|
67
|
+
iconVariant: x,
|
|
68
|
+
onPointerEnter: m,
|
|
70
69
|
className: r,
|
|
71
70
|
...d
|
|
72
71
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { cva as
|
|
2
|
+
import { Slot as m } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
4
|
import * as f from "react";
|
|
5
5
|
import { BaseLink as g } from "../base-link/base-link.js";
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as h } 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 y =
|
|
11
|
+
const y = p(
|
|
13
12
|
"inline-flex items-center justify-center p-0 rounded-full transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-default disabled:pointer-events-none",
|
|
14
13
|
{
|
|
15
14
|
variants: {
|
|
@@ -33,10 +32,10 @@ const y = u(
|
|
|
33
32
|
linkProps: i,
|
|
34
33
|
asChild: c = !1,
|
|
35
34
|
disabled: a,
|
|
36
|
-
children:
|
|
35
|
+
children: u,
|
|
37
36
|
...s
|
|
38
37
|
}, l) => {
|
|
39
|
-
const e =
|
|
38
|
+
const e = u, n = h(
|
|
40
39
|
y({ buttonType: b, className: d }),
|
|
41
40
|
"flex items-center justify-center"
|
|
42
41
|
), o = {
|
|
@@ -54,7 +53,7 @@ const y = u(
|
|
|
54
53
|
children: e
|
|
55
54
|
}
|
|
56
55
|
) }) : c ? /* @__PURE__ */ r(
|
|
57
|
-
|
|
56
|
+
m,
|
|
58
57
|
{
|
|
59
58
|
ref: l,
|
|
60
59
|
className: n,
|
|
@@ -5,11 +5,10 @@ import "react";
|
|
|
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
|
i.autoAddCss = !1;
|
|
12
|
-
function
|
|
11
|
+
function k({ className: o, ...r }) {
|
|
13
12
|
return /* @__PURE__ */ m(
|
|
14
13
|
t,
|
|
15
14
|
{
|
|
@@ -19,5 +18,5 @@ function x({ className: o, ...r }) {
|
|
|
19
18
|
);
|
|
20
19
|
}
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
k as FaIcon
|
|
23
22
|
};
|
|
@@ -4,7 +4,6 @@ import * as R from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as e } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../utils/z-index.js";
|
|
10
9
|
import { useIconSlotWidths as S } from "./use-icon-slot-widths.js";
|
|
@@ -71,7 +70,7 @@ const z = T(
|
|
|
71
70
|
variant: "default"
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
),
|
|
73
|
+
), F = R.forwardRef(
|
|
75
74
|
({
|
|
76
75
|
hasError: o,
|
|
77
76
|
errorMessage: d,
|
|
@@ -158,6 +157,6 @@ const z = T(
|
|
|
158
157
|
}
|
|
159
158
|
);
|
|
160
159
|
export {
|
|
161
|
-
|
|
160
|
+
F as Input,
|
|
162
161
|
z as inputVariants
|
|
163
162
|
};
|
|
@@ -6,7 +6,6 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as h } 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 v = b(
|
|
@@ -26,39 +25,39 @@ function k({
|
|
|
26
25
|
className: i,
|
|
27
26
|
children: n,
|
|
28
27
|
href: c,
|
|
29
|
-
target:
|
|
28
|
+
target: l,
|
|
30
29
|
variant: e = "default",
|
|
31
|
-
size:
|
|
30
|
+
size: m = "default",
|
|
32
31
|
color: d = "main",
|
|
33
|
-
external:
|
|
32
|
+
external: t = !1,
|
|
34
33
|
asChild: f = !1,
|
|
35
34
|
...w
|
|
36
35
|
}) {
|
|
37
|
-
const
|
|
38
|
-
const
|
|
36
|
+
const s = t ? /* @__PURE__ */ r("span", { className: "icon-wrap -mt-px pl-1.5 leading-none", children: /* @__PURE__ */ r(x, { size: 14 }) }) : null, p = t && typeof n == "string" ? (() => {
|
|
37
|
+
const a = n.trimEnd().lastIndexOf(" "), u = a === -1 ? "" : n.slice(0, a + 1), _ = a === -1 ? n : n.slice(a + 1);
|
|
39
38
|
return /* @__PURE__ */ o("span", { className: "content-wrap", children: [
|
|
40
39
|
u,
|
|
41
40
|
/* @__PURE__ */ o("span", { className: "whitespace-nowrap", children: [
|
|
42
41
|
_,
|
|
43
|
-
|
|
42
|
+
s
|
|
44
43
|
] })
|
|
45
44
|
] });
|
|
46
45
|
})() : /* @__PURE__ */ o(g, { children: [
|
|
47
46
|
/* @__PURE__ */ r("span", { className: "content-wrap", children: n }),
|
|
48
|
-
|
|
47
|
+
s
|
|
49
48
|
] });
|
|
50
49
|
return /* @__PURE__ */ r(
|
|
51
50
|
N,
|
|
52
51
|
{
|
|
53
52
|
href: c,
|
|
54
|
-
target:
|
|
55
|
-
external:
|
|
53
|
+
target: l,
|
|
54
|
+
external: t,
|
|
56
55
|
variant: e,
|
|
57
|
-
size:
|
|
56
|
+
size: m,
|
|
58
57
|
color: d,
|
|
59
58
|
className: h(v({ variant: e }), i),
|
|
60
59
|
...w,
|
|
61
|
-
children: f ? /* @__PURE__ */ r("span", { children:
|
|
60
|
+
children: f ? /* @__PURE__ */ r("span", { children: p }) : p
|
|
62
61
|
}
|
|
63
62
|
);
|
|
64
63
|
}
|
|
@@ -5,7 +5,6 @@ import { FormattedMessageTyped as s } from "../typed-intl/index.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 n = a.forwardRef(function({ className: o }, i) {
|