@gearbox-protocol/ui-kit 4.0.0-next.39 → 4.0.0-next.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/accordion/accordion.cjs +1 -1
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/alert-dialog/alert-dialog.cjs +1 -1
- package/dist/cjs/components/alert-modal/alert-modal.cjs +1 -1
- package/dist/cjs/components/app-bar/app-bar.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/badge/chip.cjs +1 -1
- package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -1
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/base/details-view/detail-aside/detail-aside-screen-layout.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -1
- package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/base/section-heading/section-heading.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
- package/dist/cjs/components/base/side-card/side-card.cjs +1 -1
- package/dist/cjs/components/base/stack/stack.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/base/sticky-bar/sticky-bar.cjs +1 -1
- package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -1
- package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
- package/dist/cjs/components/base/values/position-status-badge.cjs +1 -1
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -1
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -1
- package/dist/cjs/components/base-table/base-table.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -1
- package/dist/cjs/components/cards/card/card.cjs +1 -1
- package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -1
- package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/ProgressStepper.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-description.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-footer.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-form.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-header.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-overlay.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +1 -1
- package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
- package/dist/cjs/components/error-message/error-line-message.cjs +1 -1
- package/dist/cjs/components/error-message/error-message.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/filter/filter-block.cjs +1 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/filter/filter-chips.cjs +1 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-group.cjs +1 -1
- package/dist/cjs/components/filter/filter-label.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal.cjs +1 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-separator.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
- package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
- package/dist/cjs/components/health-factor/health-factor.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/icon-button/icon-button.cjs +1 -1
- package/dist/cjs/components/icons/fa-icon.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/label.cjs +1 -1
- package/dist/cjs/components/link/link.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loading-bar/loading-bar.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/network-icon/network-indicator.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -1
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
- package/dist/cjs/components/sdk-status-pill/sdk-status-pill.cjs +1 -1
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/segmented-control/segmented-control.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/separate-line/separate-line.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/simple-accordion/simple-accordion.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/simple-dropdown/simple-dropdown.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton-stack.cjs +1 -1
- package/dist/cjs/components/skeleton/skeleton.cjs +1 -1
- package/dist/cjs/components/slider/slider.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/spinner-loader/spinner-loader.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/cjs/components/status-dot/status-dot.cjs +1 -1
- package/dist/cjs/components/status-elements/status-elements.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/components/text-button/text-button.cjs +1 -1
- package/dist/cjs/components/textarea/textarea.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon.cjs +1 -1
- package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
- package/dist/cjs/components/token-template/token-template.cjs +1 -1
- package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/typography/typography.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/vspace/vspace.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/with-title/with-title.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +7 -8
- package/dist/esm/components/alert-badge/alert-badge.js +0 -1
- package/dist/esm/components/alert-dialog/alert-dialog.js +7 -8
- package/dist/esm/components/alert-modal/alert-modal.js +0 -1
- package/dist/esm/components/app-bar/app-bar.js +0 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +18 -19
- package/dist/esm/components/badge/badge.js +2 -3
- package/dist/esm/components/badge/chip.js +4 -5
- package/dist/esm/components/base/amount-input/amount-input.js +13 -14
- package/dist/esm/components/base/amount-input/token-select-panel.js +2 -3
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +2 -3
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +19 -20
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +10 -11
- package/dist/esm/components/base/info-list/info-list.js +6 -7
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +2 -3
- package/dist/esm/components/base/manage-pane/manage-pane.js +4 -5
- package/dist/esm/components/base/position-assets/position-assets.js +2 -3
- package/dist/esm/components/base/review-button/review-button.js +9 -10
- package/dist/esm/components/base/section-heading/section-heading.js +2 -3
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +11 -12
- package/dist/esm/components/base/side-card/side-card.js +15 -16
- package/dist/esm/components/base/stack/stack.js +8 -9
- package/dist/esm/components/base/stat-badge/stat-badge.js +19 -20
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +2 -3
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +6 -7
- package/dist/esm/components/base/values/pnl-value.js +6 -7
- package/dist/esm/components/base/values/position-status-badge.js +2 -3
- package/dist/esm/components/base/values/position-type-badge.js +6 -7
- package/dist/esm/components/base/values/price-impact-value.js +5 -6
- package/dist/esm/components/base/values/scalars.js +12 -13
- package/dist/esm/components/base-link/base-link.js +7 -8
- package/dist/esm/components/base-table/base-table-line.js +2 -3
- package/dist/esm/components/base-table/base-table.js +8 -9
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +2 -3
- package/dist/esm/components/buttons/back-button/back-button.js +6 -7
- package/dist/esm/components/buttons/button/button.js +0 -1
- package/dist/esm/components/buttons/copy-button/copy-button.js +7 -8
- package/dist/esm/components/buttons/external-button/external-button.js +7 -8
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +3 -4
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +2 -3
- package/dist/esm/components/cards/card/card.js +0 -1
- package/dist/esm/components/cards/expandable-call/expandable-call.js +19 -20
- package/dist/esm/components/cards/expandable-card/expandable-card.js +11 -12
- package/dist/esm/components/checkbox/checkbox-labeled.js +0 -1
- package/dist/esm/components/checkbox/checkbox.js +0 -1
- package/dist/esm/components/checkbox-item/checkbox-item.js +9 -10
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +7 -8
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +0 -1
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +0 -1
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +6 -7
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +5 -6
- package/dist/esm/components/composites/notification-center/notification-center.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +6 -7
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +2 -3
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +2 -3
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +2 -3
- package/dist/esm/components/compound-apy/compound-apy.js +26 -27
- package/dist/esm/components/confirm-menu/confirm-menu.js +5 -6
- package/dist/esm/components/detailed-apy/detailed-apy.js +8 -9
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +0 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +0 -1
- package/dist/esm/components/dialog/dialog-container.js +6 -7
- package/dist/esm/components/dialog/dialog-content.js +0 -1
- package/dist/esm/components/dialog/dialog-description.js +4 -5
- package/dist/esm/components/dialog/dialog-footer.js +0 -1
- package/dist/esm/components/dialog/dialog-form.js +11 -12
- package/dist/esm/components/dialog/dialog-header.js +4 -5
- package/dist/esm/components/dialog/dialog-modal-container.js +0 -1
- package/dist/esm/components/dialog/dialog-overlay.js +3 -4
- package/dist/esm/components/dialog/dialog-title.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +7 -8
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +0 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +7 -8
- package/dist/esm/components/edit-input/edit-input.js +6 -7
- package/dist/esm/components/error-message/error-line-message.js +5 -6
- package/dist/esm/components/error-message/error-message.js +2 -3
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +0 -1
- package/dist/esm/components/filter/filter-block.js +0 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +3 -4
- package/dist/esm/components/filter/filter-chip.js +0 -1
- package/dist/esm/components/filter/filter-chips.js +5 -6
- package/dist/esm/components/filter/filter-dropdown-item.js +11 -12
- package/dist/esm/components/filter/filter-group.js +0 -1
- package/dist/esm/components/filter/filter-label.js +0 -1
- package/dist/esm/components/filter/filter-modal-item.js +4 -5
- package/dist/esm/components/filter/filter-modal.js +2 -3
- package/dist/esm/components/filter/filter-radio-item.js +4 -5
- package/dist/esm/components/filter/filter-separator.js +3 -4
- package/dist/esm/components/formatted-number/formatted-number.js +2 -3
- package/dist/esm/components/head-cell/head-cell.js +12 -13
- package/dist/esm/components/health-factor/health-factor.js +2 -3
- package/dist/esm/components/help-tip/help-tip.js +4 -5
- package/dist/esm/components/icon-button/icon-button.js +6 -7
- package/dist/esm/components/icons/fa-icon.js +2 -3
- package/dist/esm/components/input/input.js +2 -3
- package/dist/esm/components/label/label.js +0 -1
- package/dist/esm/components/link/link.js +11 -12
- package/dist/esm/components/loader/loader.js +0 -1
- package/dist/esm/components/loading-bar/loading-bar.js +0 -1
- package/dist/esm/components/modal/modal.js +7 -8
- package/dist/esm/components/navbar-logo/navbar-logo.js +2 -3
- package/dist/esm/components/network-icon/network-indicator.js +6 -7
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +2 -3
- package/dist/esm/components/radio-group/radio-group.js +6 -7
- package/dist/esm/components/rounded-image/rounded-image.js +0 -1
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +5 -6
- package/dist/esm/components/search-line/search-line.js +0 -1
- package/dist/esm/components/segmented-control/segmented-control.js +6 -7
- package/dist/esm/components/select/select.js +3 -4
- package/dist/esm/components/separate-line/separate-line.js +0 -1
- package/dist/esm/components/short-string/short-string.js +3 -4
- package/dist/esm/components/simple-accordion/simple-accordion.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +0 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +4 -5
- package/dist/esm/components/skeleton/skeleton-stack.js +6 -7
- package/dist/esm/components/skeleton/skeleton.js +2 -3
- package/dist/esm/components/slider/slider.js +0 -1
- package/dist/esm/components/spinner/spinner.js +0 -1
- package/dist/esm/components/spinner-loader/spinner-loader.js +7 -8
- package/dist/esm/components/split-list/split-list.js +4 -5
- package/dist/esm/components/status-dot/status-dot.js +3 -4
- package/dist/esm/components/status-elements/status-elements.js +6 -7
- package/dist/esm/components/tab-control/tab-control.js +10 -11
- package/dist/esm/components/table/grid-loading-line.js +13 -14
- package/dist/esm/components/table/table-sm.js +20 -21
- package/dist/esm/components/table/table.js +0 -1
- package/dist/esm/components/tabs/tabs.js +6 -7
- package/dist/esm/components/text-button/text-button.js +9 -10
- package/dist/esm/components/textarea/textarea.js +0 -1
- package/dist/esm/components/tip-card/tip-card.js +4 -5
- package/dist/esm/components/token-icon/token-icon.js +11 -12
- package/dist/esm/components/token-symbol/token-symbol.js +0 -1
- package/dist/esm/components/token-template/token-template.js +8 -9
- package/dist/esm/components/tooltip/simple-tooltip.js +8 -9
- package/dist/esm/components/tooltip/tooltip.js +6 -7
- package/dist/esm/components/trading-view/trading-view.js +2 -3
- package/dist/esm/components/typography/typography.js +4 -5
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +6 -7
- package/dist/esm/components/vspace/vspace.js +7 -8
- package/dist/esm/components/with-copy/with-copy.js +2 -3
- package/dist/esm/components/with-title/with-title.js +7 -8
- package/dist/esm/hooks/index.js +18 -20
- package/dist/esm/hooks/use-debounce-call.js +5 -6
- package/dist/esm/index.js +162 -164
- package/dist/esm/utils/format-money.js +14 -15
- package/dist/esm/utils/templates.js +21 -22
- package/dist/types/components/token-icon/token-icon.d.ts +1 -2
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/utils/token-icon-source.d.ts +25 -1
- package/package.json +1 -1
- package/dist/cjs/hooks/use-hf.cjs +0 -1
- package/dist/esm/hooks/use-hf.js +0 -43
- package/dist/types/hooks/use-hf.d.ts +0 -17
|
@@ -4,7 +4,6 @@ import { useState as x, useEffect as q } from "react";
|
|
|
4
4
|
import { useTitleText as G } from "../text/use-title-text.js";
|
|
5
5
|
import { Modal as H } from "../../modal/modal.js";
|
|
6
6
|
import { useIntlTyped as J, FormattedMessageTyped as K } from "../../typed-intl/index.js";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import { useIsMobile as Q } from "../../../hooks/use-media-query.js";
|
|
9
8
|
import { bnToInputView as M } from "../../../utils/bn-to-input-view.js";
|
|
10
9
|
import { cn as R } from "../../../utils/cn.js";
|
|
@@ -44,12 +43,12 @@ const Y = g(
|
|
|
44
43
|
defaultVariants: { size: "md" }
|
|
45
44
|
}
|
|
46
45
|
);
|
|
47
|
-
function
|
|
46
|
+
function xe({
|
|
48
47
|
amount: t,
|
|
49
48
|
onAmount: s,
|
|
50
49
|
token: r,
|
|
51
50
|
tokens: n,
|
|
52
|
-
onToken:
|
|
51
|
+
onToken: a,
|
|
53
52
|
balance: u,
|
|
54
53
|
balances: B,
|
|
55
54
|
usdPrices: j,
|
|
@@ -57,7 +56,7 @@ function ge({
|
|
|
57
56
|
maxLabel: v,
|
|
58
57
|
usdPrice: b,
|
|
59
58
|
size: A,
|
|
60
|
-
disabled:
|
|
59
|
+
disabled: o = !1,
|
|
61
60
|
testId: D
|
|
62
61
|
}) {
|
|
63
62
|
const O = J(), y = G(), U = Q(), i = A ?? (U ? "sm" : "md"), l = r.decimals, [p, w] = x(
|
|
@@ -70,8 +69,8 @@ function ge({
|
|
|
70
69
|
const $ = (d) => {
|
|
71
70
|
const [F, V] = S(d.target.value, l);
|
|
72
71
|
F === null || V === null || (w(V), s(F));
|
|
73
|
-
}, I = !!(n && n.length > 1 &&
|
|
74
|
-
|
|
72
|
+
}, I = !!(n && n.length > 1 && a && !o), T = b !== void 0 ? ee(p, b) : null, E = (d) => {
|
|
73
|
+
a?.(d), f(!1);
|
|
75
74
|
}, C = () => f(!1);
|
|
76
75
|
return /* @__PURE__ */ c(L, { children: [
|
|
77
76
|
/* @__PURE__ */ c(
|
|
@@ -79,7 +78,7 @@ function ge({
|
|
|
79
78
|
{
|
|
80
79
|
"data-testid": D ?? m.root,
|
|
81
80
|
"data-active": P,
|
|
82
|
-
"data-disabled":
|
|
81
|
+
"data-disabled": o,
|
|
83
82
|
className: Y({ size: i }),
|
|
84
83
|
children: [
|
|
85
84
|
/* @__PURE__ */ c("div", { className: "mb-2 flex justify-between text-sm leading-[120%]", children: [
|
|
@@ -100,7 +99,7 @@ function ge({
|
|
|
100
99
|
title: v !== void 0 ? y(v) : void 0,
|
|
101
100
|
token: r,
|
|
102
101
|
balance: u,
|
|
103
|
-
disabled:
|
|
102
|
+
disabled: o,
|
|
104
103
|
onMax: () => s(u)
|
|
105
104
|
}
|
|
106
105
|
) : null
|
|
@@ -120,7 +119,7 @@ function ge({
|
|
|
120
119
|
onChange: $,
|
|
121
120
|
onFocus: () => z(!0),
|
|
122
121
|
onBlur: () => z(!1),
|
|
123
|
-
disabled:
|
|
122
|
+
disabled: o,
|
|
124
123
|
minLength: 1,
|
|
125
124
|
maxLength: 79,
|
|
126
125
|
title: O.formatMessage({
|
|
@@ -143,7 +142,7 @@ function ge({
|
|
|
143
142
|
{
|
|
144
143
|
token: r,
|
|
145
144
|
size: i,
|
|
146
|
-
disabled:
|
|
145
|
+
disabled: o
|
|
147
146
|
}
|
|
148
147
|
) })
|
|
149
148
|
] }),
|
|
@@ -182,19 +181,19 @@ function ee(t, s) {
|
|
|
182
181
|
if (!s) return null;
|
|
183
182
|
const r = Number.parseFloat(t.replace(",", ".") || "0");
|
|
184
183
|
if (!Number.isFinite(r) || r === 0) return null;
|
|
185
|
-
const n = r * s,
|
|
184
|
+
const n = r * s, a = Math.abs(n) < 100;
|
|
186
185
|
try {
|
|
187
186
|
return new Intl.NumberFormat("en-US", {
|
|
188
187
|
style: "currency",
|
|
189
188
|
currency: "USD",
|
|
190
|
-
minimumFractionDigits:
|
|
191
|
-
maximumFractionDigits:
|
|
189
|
+
minimumFractionDigits: a ? 2 : 0,
|
|
190
|
+
maximumFractionDigits: a ? 2 : 0
|
|
192
191
|
}).format(n);
|
|
193
192
|
} catch {
|
|
194
193
|
return "$0";
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
export {
|
|
198
|
-
|
|
197
|
+
xe as AmountInput,
|
|
199
198
|
m as AmountInputTest
|
|
200
199
|
};
|
|
@@ -12,14 +12,13 @@ import "tailwind-merge";
|
|
|
12
12
|
import "sonner";
|
|
13
13
|
import { formatAssetAmount as w } from "../../../utils/format-asset-amount.js";
|
|
14
14
|
import { formatMoney as T } from "../../../utils/format-money.js";
|
|
15
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
16
15
|
import "luxon";
|
|
17
16
|
import "../../../utils/z-index.js";
|
|
18
17
|
import "../../table/table.js";
|
|
19
18
|
import { TokenSymbol as y } from "../../token-symbol/token-symbol.js";
|
|
20
19
|
import { FormattedMessageTyped as N } from "../../typed-intl/index.js";
|
|
21
20
|
import { AmountInputTest as s } from "./constants.js";
|
|
22
|
-
function
|
|
21
|
+
function K({
|
|
23
22
|
tokens: i,
|
|
24
23
|
balances: d,
|
|
25
24
|
usdPrices: n,
|
|
@@ -77,5 +76,5 @@ function L({
|
|
|
77
76
|
);
|
|
78
77
|
}
|
|
79
78
|
export {
|
|
80
|
-
|
|
79
|
+
K as TokenSelectPanel
|
|
81
80
|
};
|
|
@@ -10,7 +10,6 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
10
10
|
import "clsx";
|
|
11
11
|
import "tailwind-merge";
|
|
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 "../../points-icon/points-icon.js";
|
|
@@ -24,7 +23,7 @@ function p(t) {
|
|
|
24
23
|
function u(t) {
|
|
25
24
|
return typeof t == "number" ? t : t?.base;
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function _({
|
|
28
27
|
data: t,
|
|
29
28
|
dataTo: r
|
|
30
29
|
}) {
|
|
@@ -85,6 +84,6 @@ function q({
|
|
|
85
84
|
) }) });
|
|
86
85
|
}
|
|
87
86
|
export {
|
|
88
|
-
|
|
87
|
+
_ as BorrowRateBlock,
|
|
89
88
|
n as BorrowRateBlockTest
|
|
90
89
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { PageTitle as N } from "../page-title/page-title.js";
|
|
3
|
-
import { Stack as
|
|
3
|
+
import { Stack as r } from "../stack/stack.js";
|
|
4
4
|
import { DetailedPageTitleCopyButton as j } from "../../detailed-page-title/detailed-page-title-copy-button.js";
|
|
5
5
|
import { DetailedPageTitleExplorerDropdown as x } from "../../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
6
6
|
import { TokenSymbol as y } from "../../token-symbol/token-symbol.js";
|
|
@@ -8,19 +8,18 @@ import "react";
|
|
|
8
8
|
import "@gearbox-protocol/sdk/onchain";
|
|
9
9
|
import { cn as m } 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 { DetailedPageTitleTest as s } from "./constants.js";
|
|
15
|
-
function
|
|
14
|
+
function J({
|
|
16
15
|
title: c,
|
|
17
16
|
browserTitle: p,
|
|
18
17
|
token: n,
|
|
19
18
|
icon: d,
|
|
20
19
|
tokenIconSize: u = 32,
|
|
21
20
|
disabled: g = !1,
|
|
22
|
-
toCopy:
|
|
23
|
-
explorerLinks:
|
|
21
|
+
toCopy: i,
|
|
22
|
+
explorerLinks: e,
|
|
24
23
|
badges: f,
|
|
25
24
|
actions: a,
|
|
26
25
|
buttonsSlot: o,
|
|
@@ -28,17 +27,17 @@ function K({
|
|
|
28
27
|
actionsPosition: h = "left",
|
|
29
28
|
className: T
|
|
30
29
|
}) {
|
|
31
|
-
const D = n ? /* @__PURE__ */
|
|
30
|
+
const D = n ? /* @__PURE__ */ t(
|
|
32
31
|
"span",
|
|
33
32
|
{
|
|
34
33
|
className: m(
|
|
35
34
|
"inline-flex shrink-0 self-center",
|
|
36
35
|
g ? "grayscale" : void 0
|
|
37
36
|
),
|
|
38
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ t(y, { size: u, token: n })
|
|
39
38
|
}
|
|
40
|
-
) : d, P = o != null || a != null ||
|
|
41
|
-
|
|
39
|
+
) : d, P = o != null || a != null || i != null || e != null && e.length > 0 ? /* @__PURE__ */ l(
|
|
40
|
+
r,
|
|
42
41
|
{
|
|
43
42
|
direction: "row",
|
|
44
43
|
align: "center",
|
|
@@ -48,25 +47,25 @@ function K({
|
|
|
48
47
|
children: [
|
|
49
48
|
a,
|
|
50
49
|
o,
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
i != null ? /* @__PURE__ */ t(j, { toCopy: i }) : null,
|
|
51
|
+
e != null && e.length > 0 ? /* @__PURE__ */ t(
|
|
53
52
|
x,
|
|
54
53
|
{
|
|
55
|
-
explorerLinks: [...
|
|
54
|
+
explorerLinks: [...e]
|
|
56
55
|
}
|
|
57
56
|
) : null
|
|
58
57
|
]
|
|
59
58
|
}
|
|
60
59
|
) : null;
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
|
|
60
|
+
return /* @__PURE__ */ l(
|
|
61
|
+
r,
|
|
63
62
|
{
|
|
64
63
|
gap: "sm",
|
|
65
64
|
className: m("min-w-0", T),
|
|
66
65
|
"data-testid": s.root,
|
|
67
66
|
children: [
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
67
|
+
/* @__PURE__ */ l(
|
|
68
|
+
r,
|
|
70
69
|
{
|
|
71
70
|
direction: "row",
|
|
72
71
|
align: "center",
|
|
@@ -75,9 +74,9 @@ function K({
|
|
|
75
74
|
wrap: !0,
|
|
76
75
|
className: "w-full",
|
|
77
76
|
children: [
|
|
78
|
-
/* @__PURE__ */ r
|
|
77
|
+
/* @__PURE__ */ l(r, { direction: "row", align: "center", gap: "sm", wrap: !0, className: "min-w-0", children: [
|
|
79
78
|
D,
|
|
80
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ t(N, { title: c, browserTitle: p }),
|
|
81
80
|
f
|
|
82
81
|
] }),
|
|
83
82
|
P
|
|
@@ -90,6 +89,6 @@ function K({
|
|
|
90
89
|
);
|
|
91
90
|
}
|
|
92
91
|
export {
|
|
93
|
-
|
|
92
|
+
J as DetailedPageTitle,
|
|
94
93
|
s as DetailedPageTitleTest
|
|
95
94
|
};
|
|
@@ -4,39 +4,38 @@ import "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as o } from "../../../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
8
7
|
import "luxon";
|
|
9
8
|
import "../../../../utils/z-index.js";
|
|
10
9
|
import { DETAIL_MAIN_ASIDE_CLASS_NAME as d, DETAIL_MAIN_ASIDE_LAYOUT_CLASS_NAME as c } from "./constants.js";
|
|
11
10
|
import { DetailAsideScope as _ } from "./detail-aside-scope.js";
|
|
12
11
|
import { DetailAsideWrapper as f } from "./detail-aside-wrapper.js";
|
|
13
|
-
function
|
|
14
|
-
children:
|
|
12
|
+
function h({
|
|
13
|
+
children: e,
|
|
15
14
|
aside: r,
|
|
16
|
-
mainRef:
|
|
15
|
+
mainRef: t,
|
|
17
16
|
asidePosition: m,
|
|
18
17
|
centeredMain: a,
|
|
19
|
-
className:
|
|
20
|
-
asideClassName:
|
|
18
|
+
className: A,
|
|
19
|
+
asideClassName: p,
|
|
21
20
|
mainClassName: s
|
|
22
21
|
}) {
|
|
23
22
|
const l = r != null ? /* @__PURE__ */ i(f, { children: r }) : null;
|
|
24
23
|
return /* @__PURE__ */ i(_, { children: /* @__PURE__ */ i(
|
|
25
24
|
n,
|
|
26
25
|
{
|
|
27
|
-
className: o(c,
|
|
28
|
-
asideClassName: o(d,
|
|
26
|
+
className: o(c, A),
|
|
27
|
+
asideClassName: o(d, p),
|
|
29
28
|
mainClassName: s,
|
|
30
|
-
mainRef:
|
|
29
|
+
mainRef: t,
|
|
31
30
|
aside: l,
|
|
32
31
|
asidePosition: m,
|
|
33
32
|
centeredMain: a,
|
|
34
33
|
variant: "detail",
|
|
35
34
|
stickyAside: !1,
|
|
36
|
-
children:
|
|
35
|
+
children: e
|
|
37
36
|
}
|
|
38
37
|
) });
|
|
39
38
|
}
|
|
40
39
|
export {
|
|
41
|
-
|
|
40
|
+
h as DetailAsideScreenLayout
|
|
42
41
|
};
|
|
@@ -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 { PointsValue as l } from "../values/points-value.js";
|
|
@@ -22,7 +21,7 @@ import "../../badge/chip.js";
|
|
|
22
21
|
import { Typography as u } from "../../typography/typography.js";
|
|
23
22
|
import { VerticalIndicator as d } from "../../vertical-indicator/vertical-indicator.js";
|
|
24
23
|
import { InfoListTest as i } from "./constants.js";
|
|
25
|
-
function
|
|
24
|
+
function F({
|
|
26
25
|
children: t
|
|
27
26
|
}) {
|
|
28
27
|
return /* @__PURE__ */ r(c, { gap: "sm", "data-testid": i.root, children: t });
|
|
@@ -50,7 +49,7 @@ function g({
|
|
|
50
49
|
}
|
|
51
50
|
);
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function G({
|
|
54
53
|
title: t
|
|
55
54
|
}) {
|
|
56
55
|
const o = n();
|
|
@@ -67,7 +66,7 @@ function H({
|
|
|
67
66
|
}
|
|
68
67
|
);
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function H({
|
|
71
70
|
data: t,
|
|
72
71
|
title: o = "components.yieldBreakdown.points"
|
|
73
72
|
}) {
|
|
@@ -75,8 +74,8 @@ function J({
|
|
|
75
74
|
}
|
|
76
75
|
export {
|
|
77
76
|
g as InfoLine,
|
|
78
|
-
|
|
77
|
+
F as InfoList,
|
|
79
78
|
i as InfoListTest,
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
G as InfoSectionTitle,
|
|
80
|
+
H as PointsInfoLine
|
|
82
81
|
};
|
|
@@ -6,7 +6,6 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "tailwind-merge";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../../utils/z-index.js";
|
|
12
11
|
import "../../table/grid-table.js";
|
|
@@ -17,7 +16,7 @@ import { LiquidationParamsTableTest as u } from "./constants.js";
|
|
|
17
16
|
function a(o) {
|
|
18
17
|
return o / 100;
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function L({
|
|
21
20
|
data: o
|
|
22
21
|
}) {
|
|
23
22
|
const n = a(o.liquidationPremium), l = a(o.liquidationFee);
|
|
@@ -57,6 +56,6 @@ function z({
|
|
|
57
56
|
);
|
|
58
57
|
}
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
L as LiquidationParamsTable,
|
|
61
60
|
u as LiquidationParamsTableTest
|
|
62
61
|
};
|
|
@@ -18,7 +18,6 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "tailwind-merge";
|
|
20
20
|
import "sonner";
|
|
21
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
22
21
|
import "luxon";
|
|
23
22
|
import "../../../utils/z-index.js";
|
|
24
23
|
import "../../dialog/dialog-header.js";
|
|
@@ -50,7 +49,7 @@ function R(o) {
|
|
|
50
49
|
function W(o) {
|
|
51
50
|
return f(o) && o.type === K;
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function xt({
|
|
54
53
|
children: o,
|
|
55
54
|
activeTab: g,
|
|
56
55
|
onTabChange: M,
|
|
@@ -166,15 +165,15 @@ function Et({
|
|
|
166
165
|
) : null
|
|
167
166
|
] });
|
|
168
167
|
}
|
|
169
|
-
function
|
|
168
|
+
function Et({
|
|
170
169
|
children: o
|
|
171
170
|
}) {
|
|
172
171
|
return /* @__PURE__ */ n(e, { gap: "sm", "data-testid": i.message, children: o });
|
|
173
172
|
}
|
|
174
173
|
export {
|
|
175
|
-
|
|
174
|
+
xt as ManagePane,
|
|
176
175
|
K as ManagePaneActionTab,
|
|
177
|
-
|
|
176
|
+
Et as ManagePaneMessage,
|
|
178
177
|
H as ManagePaneTab,
|
|
179
178
|
J as ManagePaneTabDropdown,
|
|
180
179
|
i as ManagePaneTest
|
|
@@ -5,7 +5,6 @@ import "@gearbox-protocol/sdk/onchain";
|
|
|
5
5
|
import "clsx";
|
|
6
6
|
import "tailwind-merge";
|
|
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 "../../points-icon/points-icon.js";
|
|
@@ -18,7 +17,7 @@ import { TokenSymbol as u } from "../../token-symbol/token-symbol.js";
|
|
|
18
17
|
import { Typography as k } from "../../typography/typography.js";
|
|
19
18
|
import { PositionAssetsTest as c } from "./constants.js";
|
|
20
19
|
const v = 1, g = 20;
|
|
21
|
-
function
|
|
20
|
+
function X({
|
|
22
21
|
assets: s,
|
|
23
22
|
to: e,
|
|
24
23
|
empty: a,
|
|
@@ -90,7 +89,7 @@ function x(s, e) {
|
|
|
90
89
|
return s === void 0 ? e : s === null || e === null ? null : Math.max(s, e);
|
|
91
90
|
}
|
|
92
91
|
export {
|
|
93
|
-
|
|
92
|
+
X as PositionAssets,
|
|
94
93
|
c as PositionAssetsTest,
|
|
95
94
|
y as visibleAssets
|
|
96
95
|
};
|
|
@@ -2,16 +2,15 @@ import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { Stack as n } from "../stack/stack.js";
|
|
3
3
|
import { Button as d } from "../../buttons/button/button.js";
|
|
4
4
|
import { TipCard as l } from "../../tip-card/tip-card.js";
|
|
5
|
-
import { FormattedMessageTyped as
|
|
5
|
+
import { FormattedMessageTyped as e } from "../../typed-intl/index.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "@gearbox-protocol/sdk/onchain";
|
|
8
8
|
import { cn as c } 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
|
-
import { ReviewButtonTest as
|
|
14
|
-
function
|
|
12
|
+
import { ReviewButtonTest as r } from "./constants.js";
|
|
13
|
+
function N({
|
|
15
14
|
disabled: m,
|
|
16
15
|
error: o,
|
|
17
16
|
tip: i,
|
|
@@ -25,8 +24,8 @@ function R({
|
|
|
25
24
|
textColor: "light",
|
|
26
25
|
attributeColor: "alert",
|
|
27
26
|
className: "w-full",
|
|
28
|
-
"data-testid":
|
|
29
|
-
children: /* @__PURE__ */ t(
|
|
27
|
+
"data-testid": r.tip,
|
|
28
|
+
children: /* @__PURE__ */ t(e, { ...i })
|
|
30
29
|
}
|
|
31
30
|
) : null,
|
|
32
31
|
/* @__PURE__ */ t(
|
|
@@ -34,16 +33,16 @@ function R({
|
|
|
34
33
|
{
|
|
35
34
|
disabled: m,
|
|
36
35
|
onClick: a,
|
|
37
|
-
"data-testid":
|
|
36
|
+
"data-testid": r.root,
|
|
38
37
|
className: c(
|
|
39
38
|
o && "h-auto min-h-[40px] whitespace-normal text-center"
|
|
40
39
|
),
|
|
41
|
-
children: o ? /* @__PURE__ */ t("span", { "data-testid":
|
|
40
|
+
children: o ? /* @__PURE__ */ t("span", { "data-testid": r.error, children: /* @__PURE__ */ t(e, { messageId: o }) }) : /* @__PURE__ */ t(e, { messageId: s })
|
|
42
41
|
}
|
|
43
42
|
)
|
|
44
43
|
] });
|
|
45
44
|
}
|
|
46
45
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
N as ReviewButton,
|
|
47
|
+
r as ReviewButtonTest
|
|
49
48
|
};
|
|
@@ -3,11 +3,10 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
4
|
import { cn as m } 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 { SectionHeadingTest as r } from "./constants.js";
|
|
10
|
-
function
|
|
9
|
+
function x({
|
|
11
10
|
children: t,
|
|
12
11
|
className: o
|
|
13
12
|
}) {
|
|
@@ -21,6 +20,6 @@ function g({
|
|
|
21
20
|
);
|
|
22
21
|
}
|
|
23
22
|
export {
|
|
24
|
-
|
|
23
|
+
x as SectionHeading,
|
|
25
24
|
r as SectionHeadingTest
|
|
26
25
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Link as S } from "react-router-dom";
|
|
3
3
|
import { Stack as v } from "../stack/stack.js";
|
|
4
|
-
import { Button as
|
|
4
|
+
import { Button as m } from "../../buttons/button/button.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as y } 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
|
import { SegmentedTabsTest as C } from "./constants.js";
|
|
13
12
|
const N = "bg-gray-30 border-gray-30 hover:bg-gray-40 hover:border-gray-40";
|
|
14
|
-
function
|
|
13
|
+
function z({
|
|
15
14
|
items: a,
|
|
16
15
|
activeTab: s,
|
|
17
|
-
onTabChange:
|
|
18
|
-
getTestId:
|
|
16
|
+
onTabChange: c,
|
|
17
|
+
getTestId: p,
|
|
19
18
|
className: d,
|
|
20
19
|
buttonClassName: u,
|
|
21
20
|
testId: g
|
|
@@ -31,21 +30,21 @@ function D({
|
|
|
31
30
|
const o = s === t, h = y(
|
|
32
31
|
u,
|
|
33
32
|
o ? void 0 : N
|
|
34
|
-
),
|
|
33
|
+
), n = {
|
|
35
34
|
size: "md",
|
|
36
35
|
variant: o ? "neutral" : "ghost",
|
|
37
36
|
className: h,
|
|
38
37
|
disabled: l,
|
|
39
|
-
"data-testid": b ??
|
|
38
|
+
"data-testid": b ?? p?.(t),
|
|
40
39
|
"aria-current": o ? "step" : void 0
|
|
41
40
|
};
|
|
42
|
-
return i ? /* @__PURE__ */ r(
|
|
43
|
-
|
|
41
|
+
return i ? /* @__PURE__ */ r(m, { ...n, asChild: !0, children: /* @__PURE__ */ r(S, { to: i, children: e }) }, t) : /* @__PURE__ */ r(
|
|
42
|
+
m,
|
|
44
43
|
{
|
|
45
|
-
...
|
|
44
|
+
...n,
|
|
46
45
|
type: "button",
|
|
47
46
|
onClick: () => {
|
|
48
|
-
T?.(),
|
|
47
|
+
T?.(), c?.(t, f);
|
|
49
48
|
},
|
|
50
49
|
children: e
|
|
51
50
|
},
|
|
@@ -57,6 +56,6 @@ function D({
|
|
|
57
56
|
}
|
|
58
57
|
export {
|
|
59
58
|
N as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
60
|
-
|
|
59
|
+
z as SegmentedTabs,
|
|
61
60
|
C as SegmentedTabsTest
|
|
62
61
|
};
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useTitleText as l } from "../text/use-title-text.js";
|
|
3
|
-
import { Typography as
|
|
3
|
+
import { Typography as n } from "../../typography/typography.js";
|
|
4
4
|
import "react";
|
|
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
10
|
import { SideCardTest as r } from "./constants.js";
|
|
12
|
-
function
|
|
11
|
+
function T({
|
|
13
12
|
title: o,
|
|
14
13
|
tip: i,
|
|
15
14
|
children: d,
|
|
16
15
|
className: a,
|
|
17
|
-
testId:
|
|
16
|
+
testId: s
|
|
18
17
|
}) {
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
18
|
+
const m = l();
|
|
19
|
+
return /* @__PURE__ */ e(
|
|
21
20
|
"div",
|
|
22
21
|
{
|
|
23
|
-
className:
|
|
22
|
+
className: p(
|
|
24
23
|
"@container flex w-full flex-col gap-4 rounded-lg border border-border bg-card p-4 sm:p-6",
|
|
25
24
|
a
|
|
26
25
|
),
|
|
27
|
-
"data-testid":
|
|
26
|
+
"data-testid": s ?? r.root,
|
|
28
27
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
28
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-1.5", children: [
|
|
29
|
+
/* @__PURE__ */ t(
|
|
30
|
+
n,
|
|
32
31
|
{
|
|
33
32
|
as: "span",
|
|
34
33
|
variant: "body",
|
|
35
34
|
className: "m-0 text-base font-semibold leading-none text-card-foreground",
|
|
36
35
|
"data-testid": r.title,
|
|
37
|
-
children:
|
|
36
|
+
children: m(o)
|
|
38
37
|
}
|
|
39
38
|
),
|
|
40
39
|
i
|
|
41
40
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ t(
|
|
43
42
|
"div",
|
|
44
43
|
{
|
|
45
44
|
className: "grid grid-cols-1 gap-4 @[24rem]:grid-cols-2 @[40rem]:grid-cols-3",
|
|
@@ -52,6 +51,6 @@ function j({
|
|
|
52
51
|
);
|
|
53
52
|
}
|
|
54
53
|
export {
|
|
55
|
-
|
|
54
|
+
T as SideCard,
|
|
56
55
|
r as SideCardTest
|
|
57
56
|
};
|