@gearbox-protocol/ui-kit 4.0.0-next.48 → 4.0.0-next.49
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/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/details-view/index.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/index.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/more-accordion/more-accordion.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/position-assets/index.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/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/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -1
- package/dist/cjs/components/base/token-amount/token-amount.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/index.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/index.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-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/cards/index.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/client-adapters/index.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/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/index.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/amounts/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/ProgressStepper.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/index.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-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-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.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/index.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/index.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/graph/formatters.cjs +1 -1
- package/dist/cjs/components/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/index.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/icons/index.cjs +1 -1
- package/dist/cjs/components/index.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/legal-agreement/legal-agreement-dialog.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-panel.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/index.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/rwa-styles/index.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/index.cjs +1 -1
- package/dist/cjs/components/slider/slider-utils.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/index.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/grid-table.cjs +1 -1
- package/dist/cjs/components/table/index.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/theme-provider.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/token-icon/index.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/index.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/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/configs/index.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/hooks/use-filter.cjs +1 -1
- package/dist/cjs/hooks/use-media-query.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/colors.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/format-number.cjs +1 -1
- package/dist/cjs/utils/format.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/loading.cjs +1 -1
- package/dist/cjs/utils/math.cjs +1 -1
- package/dist/cjs/utils/ranges.cjs +1 -1
- package/dist/cjs/utils/ranges.spec.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/cjs/utils/ttl.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +2 -3
- package/dist/esm/components/alert-badge/alert-badge.js +15 -16
- package/dist/esm/components/alert-dialog/alert-dialog.js +4 -7
- package/dist/esm/components/alert-modal/alert-modal.js +9 -12
- package/dist/esm/components/app-bar/app-bar.js +0 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +22 -25
- package/dist/esm/components/badge/badge.js +2 -4
- package/dist/esm/components/badge/chip.js +9 -11
- package/dist/esm/components/base/amount-input/token-select-panel.js +4 -5
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +2 -4
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +6 -8
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-scope.js +1 -1
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +16 -18
- package/dist/esm/components/base/details-view/index.js +11 -9
- package/dist/esm/components/base/index.js +158 -164
- package/dist/esm/components/base/info-list/index.js +4 -5
- package/dist/esm/components/base/info-list/info-list.js +27 -47
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +3 -4
- package/dist/esm/components/base/manage-pane/manage-pane.js +4 -5
- package/dist/esm/components/base/more-accordion/more-accordion.js +4 -4
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +29 -30
- package/dist/esm/components/base/position-assets/index.js +3 -2
- package/dist/esm/components/base/position-assets/position-assets.js +27 -28
- package/dist/esm/components/base/review-button/review-button.js +10 -12
- package/dist/esm/components/base/section-heading/section-heading.js +2 -4
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +9 -11
- package/dist/esm/components/base/stack/stack.js +13 -14
- package/dist/esm/components/base/stat-badge/stat-badge.js +21 -22
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +2 -4
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +37 -38
- package/dist/esm/components/base/title-meta/title-meta.js +2 -3
- package/dist/esm/components/base/token-amount/token-amount.js +3 -4
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +9 -11
- package/dist/esm/components/base/values/pnl-value.js +14 -16
- package/dist/esm/components/base/values/position-status-badge.js +5 -7
- package/dist/esm/components/base/values/position-type-badge.js +6 -8
- package/dist/esm/components/base/values/price-impact-value.js +5 -7
- package/dist/esm/components/base/values/scalars.js +16 -18
- package/dist/esm/components/base-link/base-link.js +0 -1
- package/dist/esm/components/base-table/base-table-line.js +14 -13
- package/dist/esm/components/base-table/base-table.js +32 -31
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +8 -10
- package/dist/esm/components/buttons/back-button/back-button.js +17 -19
- package/dist/esm/components/buttons/button/button.js +4 -5
- package/dist/esm/components/buttons/copy-button/copy-button.js +6 -7
- package/dist/esm/components/buttons/external-button/external-button.js +4 -5
- package/dist/esm/components/buttons/index.js +5 -11
- package/dist/esm/components/buttons/range-buttons/index.js +1 -4
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +1 -35
- package/dist/esm/components/cards/card/card.js +6 -7
- package/dist/esm/components/cards/expandable-card/expandable-card.js +6 -7
- package/dist/esm/components/cards/index.js +2 -4
- package/dist/esm/components/checkbox/checkbox-labeled.js +3 -26
- package/dist/esm/components/checkbox/checkbox.js +7 -8
- package/dist/esm/components/client-adapters/index.js +4 -6
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +12 -13
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +4 -5
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +10 -12
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +13 -15
- package/dist/esm/components/composites/index.js +17 -19
- package/dist/esm/components/composites/notification-center/notification-center.js +21 -23
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +15 -16
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +20 -21
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +3 -4
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +18 -20
- package/dist/esm/components/composites/tx-preview/confirm/amounts/constants.js +1 -5
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +4 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +34 -39
- package/dist/esm/components/composites/tx-preview/confirm/index.js +18 -20
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +19 -21
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +1 -3
- package/dist/esm/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.js +1 -6
- package/dist/esm/components/composites/tx-preview/index.js +18 -20
- package/dist/esm/components/compound-apy/compound-apy.js +2 -3
- package/dist/esm/components/confirm-menu/confirm-menu.js +6 -7
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +6 -7
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +0 -1
- package/dist/esm/components/dialog/dialog-container.js +4 -5
- package/dist/esm/components/dialog/dialog-content.js +4 -5
- package/dist/esm/components/dialog/dialog-description.js +0 -1
- package/dist/esm/components/dialog/dialog-footer.js +9 -11
- package/dist/esm/components/dialog/dialog-form.js +2 -4
- package/dist/esm/components/dialog/dialog-header.js +0 -2
- package/dist/esm/components/dialog/dialog-modal-container.js +3 -4
- package/dist/esm/components/dialog/dialog-overlay.js +3 -4
- package/dist/esm/components/dialog/dialog-title.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +3 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +8 -9
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +6 -7
- package/dist/esm/components/dropdown-menu/dropdown-menu.js +8 -11
- package/dist/esm/components/dropdown-menu/index.js +9 -24
- package/dist/esm/components/edit-input/edit-input.js +8 -9
- package/dist/esm/components/error-message/error-line-message.js +8 -10
- package/dist/esm/components/error-message/index.js +1 -3
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +3 -4
- package/dist/esm/components/formatted-number/formatted-number.js +2 -4
- package/dist/esm/components/graph/default-config.js +24 -78
- package/dist/esm/components/graph/formatters.js +91 -135
- package/dist/esm/components/graph/graph-view.js +76 -91
- package/dist/esm/components/graph/graph.js +2 -2
- package/dist/esm/components/graph/index.js +28 -29
- package/dist/esm/components/head-cell/head-cell.js +13 -14
- package/dist/esm/components/health-factor/health-factor.js +4 -6
- package/dist/esm/components/help-tip/help-tip.js +7 -8
- package/dist/esm/components/icon-button/icon-button.js +8 -9
- package/dist/esm/components/icons/fa-icon.js +2 -4
- package/dist/esm/components/icons/index.js +2 -41
- package/dist/esm/components/index.js +632 -747
- package/dist/esm/components/input/input.js +2 -3
- package/dist/esm/components/label/label.js +0 -1
- package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +12 -12
- package/dist/esm/components/legal-agreement/legal-agreement-panel.js +6 -6
- package/dist/esm/components/link/link.js +13 -15
- package/dist/esm/components/loader/loader.js +4 -5
- package/dist/esm/components/loading-bar/loading-bar.js +3 -4
- package/dist/esm/components/modal/modal.js +0 -1
- package/dist/esm/components/navbar-logo/navbar-logo.js +8 -10
- package/dist/esm/components/network-icon/index.js +2 -4
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +19 -21
- package/dist/esm/components/radio-group/radio-group.js +5 -6
- package/dist/esm/components/rounded-image/rounded-image.js +4 -5
- package/dist/esm/components/rwa-styles/index.js +2 -3
- package/dist/esm/components/search-line/search-line.js +5 -6
- package/dist/esm/components/segmented-control/segmented-control.js +0 -1
- package/dist/esm/components/select/select.js +7 -8
- package/dist/esm/components/separate-line/separate-line.js +0 -1
- package/dist/esm/components/short-string/short-string.js +5 -7
- package/dist/esm/components/simple-accordion/simple-accordion.js +9 -11
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +4 -11
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +6 -7
- package/dist/esm/components/skeleton/skeleton-stack.js +6 -7
- package/dist/esm/components/skeleton/skeleton.js +10 -12
- package/dist/esm/components/slider/index.js +10 -12
- package/dist/esm/components/slider/slider-utils.js +18 -20
- 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 +6 -7
- package/dist/esm/components/split-list/split-list.js +0 -1
- package/dist/esm/components/status-dot/status-dot.js +0 -1
- package/dist/esm/components/status-elements/status-elements.js +8 -10
- package/dist/esm/components/tab-control/index.js +3 -6
- package/dist/esm/components/tab-control/tab-control.js +53 -102
- package/dist/esm/components/table/grid-loading-line.js +6 -7
- package/dist/esm/components/table/grid-table.js +46 -49
- package/dist/esm/components/table/index.js +23 -28
- package/dist/esm/components/table/table-sm.js +16 -18
- package/dist/esm/components/table/table.js +1 -5
- package/dist/esm/components/tabs/tabs.js +8 -9
- package/dist/esm/components/text-button/text-button.js +0 -1
- package/dist/esm/components/textarea/textarea.js +0 -1
- package/dist/esm/components/theme-provider.js +19 -26
- package/dist/esm/components/tip-card/tip-card.js +0 -1
- package/dist/esm/components/token-icon/index.js +2 -3
- package/dist/esm/components/token-icon/token-icon.js +67 -79
- package/dist/esm/components/token-symbol/token-symbol.js +4 -5
- package/dist/esm/components/token-template/index.js +4 -2
- package/dist/esm/components/token-template/token-template.js +17 -20
- package/dist/esm/components/tooltip/simple-tooltip.js +0 -1
- package/dist/esm/components/tooltip/tooltip.js +4 -5
- package/dist/esm/components/typography/typography.js +4 -5
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +9 -10
- package/dist/esm/components/vspace/vspace.js +6 -8
- package/dist/esm/components/with-copy/with-copy.js +11 -34
- package/dist/esm/components/with-title/with-title.js +10 -12
- package/dist/esm/configs/index.js +4 -11
- package/dist/esm/hooks/index.js +18 -32
- package/dist/esm/hooks/use-debounce-call.js +1 -1
- package/dist/esm/hooks/use-filter.js +25 -61
- package/dist/esm/hooks/use-media-query.js +27 -41
- package/dist/esm/index.js +746 -916
- package/dist/esm/utils/colors.js +22 -34
- package/dist/esm/utils/format-money.js +29 -68
- package/dist/esm/utils/format-number.js +26 -30
- package/dist/esm/utils/format.js +7 -28
- package/dist/esm/utils/index.js +77 -111
- package/dist/esm/utils/loading.js +6 -13
- package/dist/esm/utils/math.js +22 -31
- package/dist/esm/utils/ranges.js +1 -24
- package/dist/esm/utils/ranges.spec.js +1 -188
- package/dist/esm/utils/templates.js +5 -38
- package/dist/esm/utils/ttl.js +11 -36
- package/dist/globals.css +1 -1
- package/dist/types/components/alert-badge/alert-badge.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/base/apy-breakdown-body/index.d.ts +2 -2
- package/dist/types/components/base/details-view/index.d.ts +2 -2
- package/dist/types/components/base/index.d.ts +0 -2
- package/dist/types/components/base/info-list/info-list.d.ts +0 -5
- package/dist/types/components/base/position-assets/index.d.ts +2 -2
- package/dist/types/components/base/values/index.d.ts +9 -9
- package/dist/types/components/base-table/base-table-line.d.ts +1 -1
- package/dist/types/components/base-table/base-table.d.ts +2 -2
- package/dist/types/components/buttons/back-button/back-button.d.ts +1 -1
- package/dist/types/components/buttons/button/button.d.ts +2 -2
- package/dist/types/components/buttons/index.d.ts +0 -2
- package/dist/types/components/buttons/range-buttons/range-buttons.d.ts +0 -32
- package/dist/types/components/cards/card/card.d.ts +2 -2
- package/dist/types/components/cards/index.d.ts +0 -1
- package/dist/types/components/checkbox/checkbox.d.ts +2 -2
- package/dist/types/components/client-adapters/index.d.ts +0 -1
- package/dist/types/components/composites/pool-assets-table/types.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/amounts/constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/stepper/transactionExecutionStepTypes.d.ts +0 -9
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +1 -4
- package/dist/types/components/dropdown-menu/index.d.ts +0 -6
- package/dist/types/components/error-message/index.d.ts +0 -1
- package/dist/types/components/graph/default-config.d.ts +0 -2
- package/dist/types/components/graph/formatters.d.ts +0 -2
- package/dist/types/components/graph/graph-view.d.ts +0 -32
- package/dist/types/components/graph/index.d.ts +3 -3
- package/dist/types/components/head-cell/head-cell.d.ts +2 -1
- package/dist/types/components/head-cell/index.d.ts +1 -1
- package/dist/types/components/help-tip/help-tip.d.ts +4 -4
- package/dist/types/components/icon-button/icon-button.d.ts +0 -8
- package/dist/types/components/icons/index.d.ts +1 -2
- package/dist/types/components/index.d.ts +0 -3
- package/dist/types/components/label/label.d.ts +2 -2
- package/dist/types/components/legal-agreement/index.d.ts +5 -5
- package/dist/types/components/legal-agreement/legal-agreement-theme.d.ts +0 -2
- package/dist/types/components/navigation-context/index.d.ts +1 -1
- package/dist/types/components/navigation-context/navigation-context.d.ts +0 -8
- package/dist/types/components/network-icon/index.d.ts +0 -2
- package/dist/types/components/points-icon/index.d.ts +1 -1
- package/dist/types/components/points-icon/points-icon.d.ts +0 -5
- package/dist/types/components/radio-group/radio-group.d.ts +2 -2
- package/dist/types/components/rwa-styles/index.d.ts +0 -1
- package/dist/types/components/search-line/search-line.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +3 -3
- package/dist/types/components/separate-line/index.d.ts +1 -1
- package/dist/types/components/slider/index.d.ts +1 -1
- package/dist/types/components/slider/slider-utils.d.ts +1 -3
- package/dist/types/components/spinner/spinner.d.ts +2 -2
- package/dist/types/components/status-dot/status-dot.d.ts +1 -1
- package/dist/types/components/tab-control/tab-control.d.ts +0 -12
- package/dist/types/components/table/grid-table.d.ts +5 -7
- package/dist/types/components/table/table.d.ts +1 -46
- package/dist/types/components/theme-provider.d.ts +0 -13
- package/dist/types/components/tip-card/index.d.ts +1 -1
- package/dist/types/components/tip-card/tip-card.d.ts +1 -1
- package/dist/types/components/token-icon/index.d.ts +1 -1
- package/dist/types/components/token-icon/token-icon.d.ts +0 -14
- package/dist/types/components/token-template/index.d.ts +1 -1
- package/dist/types/components/token-template/token-template.d.ts +2 -2
- package/dist/types/components/typography/typography.d.ts +3 -3
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +3 -3
- package/dist/types/configs/index.d.ts +0 -2
- package/dist/types/hooks/index.d.ts +0 -4
- package/dist/types/hooks/use-filter.d.ts +1 -38
- package/dist/types/hooks/use-media-query.d.ts +0 -8
- package/dist/types/index.d.ts +2 -9
- package/dist/types/utils/colors.d.ts +0 -6
- package/dist/types/utils/format-money.d.ts +0 -1
- package/dist/types/utils/format-number.d.ts +2 -5
- package/dist/types/utils/format.d.ts +0 -4
- package/dist/types/utils/index.d.ts +3 -12
- package/dist/types/utils/loading.d.ts +0 -1
- package/dist/types/utils/math.d.ts +0 -3
- package/dist/types/utils/ranges.d.ts +0 -23
- package/dist/types/utils/templates.d.ts +0 -77
- package/dist/types/utils/ttl.d.ts +0 -37
- package/package.json +1 -1
- package/dist/cjs/components/base/side-card/constants.cjs +0 -1
- package/dist/cjs/components/base/side-card/index.cjs +0 -1
- package/dist/cjs/components/base/side-card/side-card.cjs +0 -1
- package/dist/cjs/components/base/token-pair-title/constants.cjs +0 -1
- package/dist/cjs/components/base/token-pair-title/index.cjs +0 -1
- package/dist/cjs/components/base/token-pair-title/token-pair-title.cjs +0 -1
- package/dist/cjs/components/buttons/filter-button/filter-button.cjs +0 -1
- package/dist/cjs/components/buttons/filter-button/index.cjs +0 -1
- package/dist/cjs/components/buttons/navigation-button/index.cjs +0 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +0 -1
- package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +0 -1
- package/dist/cjs/components/cards/expandable-call/index.cjs +0 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +0 -1
- package/dist/cjs/components/checkbox-item/index.cjs +0 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/index.cjs +0 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +0 -1
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +0 -1
- package/dist/cjs/components/detailed-apy/index.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +0 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +0 -1
- package/dist/cjs/components/error-message/error-message.cjs +0 -1
- package/dist/cjs/components/filter/filter-block.cjs +0 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-chip.cjs +0 -1
- package/dist/cjs/components/filter/filter-chips.cjs +0 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-group.cjs +0 -1
- package/dist/cjs/components/filter/filter-label.cjs +0 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-modal.cjs +0 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +0 -1
- package/dist/cjs/components/filter/filter-separator.cjs +0 -1
- package/dist/cjs/components/filter/index.cjs +0 -1
- package/dist/cjs/components/filter/interface.cjs +0 -1
- package/dist/cjs/components/filter/variants.cjs +0 -1
- package/dist/cjs/components/network-icon/network-indicator.cjs +0 -1
- package/dist/cjs/configs/design-tokens.cjs +0 -1
- package/dist/cjs/configs/variants.cjs +0 -1
- package/dist/cjs/hooks/use-checkbox-select.cjs +0 -1
- package/dist/cjs/hooks/use-controllable-state.cjs +0 -1
- package/dist/cjs/hooks/use-opened-state.cjs +0 -1
- package/dist/cjs/hooks/use-smart-number-input.cjs +0 -1
- package/dist/cjs/utils/a11y.cjs +0 -1
- package/dist/cjs/utils/copy.cjs +0 -1
- package/dist/cjs/utils/interface.cjs +0 -1
- package/dist/cjs/utils/plural.cjs +0 -1
- package/dist/cjs/utils/react.cjs +0 -1
- package/dist/cjs/utils/search-in-token.cjs +0 -1
- package/dist/cjs/utils/search.cjs +0 -1
- package/dist/cjs/utils/short-sha.cjs +0 -1
- package/dist/cjs/utils/sort.cjs +0 -1
- package/dist/esm/components/base/side-card/constants.js +0 -8
- package/dist/esm/components/base/side-card/index.js +0 -6
- package/dist/esm/components/base/side-card/side-card.js +0 -56
- package/dist/esm/components/base/token-pair-title/constants.js +0 -6
- package/dist/esm/components/base/token-pair-title/index.js +0 -6
- package/dist/esm/components/base/token-pair-title/token-pair-title.js +0 -20
- package/dist/esm/components/buttons/filter-button/filter-button.js +0 -32
- package/dist/esm/components/buttons/filter-button/index.js +0 -4
- package/dist/esm/components/buttons/navigation-button/index.js +0 -4
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +0 -27
- package/dist/esm/components/cards/expandable-call/expandable-call.js +0 -50
- package/dist/esm/components/cards/expandable-call/index.js +0 -4
- package/dist/esm/components/checkbox-item/checkbox-item.js +0 -51
- package/dist/esm/components/checkbox-item/index.js +0 -4
- package/dist/esm/components/client-adapters/styled-rounded-image/index.js +0 -4
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +0 -150
- package/dist/esm/components/detailed-apy/detailed-apy.js +0 -73
- package/dist/esm/components/detailed-apy/index.js +0 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +0 -34
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +0 -29
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +0 -20
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +0 -21
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +0 -24
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +0 -29
- package/dist/esm/components/error-message/error-message.js +0 -38
- package/dist/esm/components/filter/filter-block.js +0 -25
- package/dist/esm/components/filter/filter-checkbox-item.js +0 -30
- package/dist/esm/components/filter/filter-chip.js +0 -43
- package/dist/esm/components/filter/filter-chips.js +0 -49
- package/dist/esm/components/filter/filter-dropdown-item.js +0 -54
- package/dist/esm/components/filter/filter-group.js +0 -13
- package/dist/esm/components/filter/filter-label.js +0 -24
- package/dist/esm/components/filter/filter-modal-item.js +0 -60
- package/dist/esm/components/filter/filter-modal.js +0 -217
- package/dist/esm/components/filter/filter-radio-item.js +0 -29
- package/dist/esm/components/filter/filter-separator.js +0 -20
- package/dist/esm/components/filter/index.js +0 -26
- package/dist/esm/components/filter/interface.js +0 -1
- package/dist/esm/components/filter/variants.js +0 -17
- package/dist/esm/components/network-icon/network-indicator.js +0 -81
- package/dist/esm/configs/design-tokens.js +0 -85
- package/dist/esm/configs/variants.js +0 -28
- package/dist/esm/hooks/use-checkbox-select.js +0 -74
- package/dist/esm/hooks/use-controllable-state.js +0 -18
- package/dist/esm/hooks/use-opened-state.js +0 -20
- package/dist/esm/hooks/use-smart-number-input.js +0 -10
- package/dist/esm/utils/a11y.js +0 -12
- package/dist/esm/utils/copy.js +0 -10
- package/dist/esm/utils/interface.js +0 -1
- package/dist/esm/utils/plural.js +0 -11
- package/dist/esm/utils/react.js +0 -44
- package/dist/esm/utils/search-in-token.js +0 -14
- package/dist/esm/utils/search.js +0 -6
- package/dist/esm/utils/short-sha.js +0 -4
- package/dist/esm/utils/sort.js +0 -1
- package/dist/types/components/base/side-card/constants.d.ts +0 -5
- package/dist/types/components/base/side-card/index.d.ts +0 -2
- package/dist/types/components/base/side-card/side-card.d.ts +0 -16
- package/dist/types/components/base/token-pair-title/constants.d.ts +0 -3
- package/dist/types/components/base/token-pair-title/index.d.ts +0 -2
- package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +0 -11
- package/dist/types/components/buttons/filter-button/filter-button.d.ts +0 -52
- package/dist/types/components/buttons/filter-button/index.d.ts +0 -1
- package/dist/types/components/buttons/navigation-button/index.d.ts +0 -1
- package/dist/types/components/buttons/navigation-button/navigation-button.d.ts +0 -26
- package/dist/types/components/cards/expandable-call/expandable-call.d.ts +0 -28
- package/dist/types/components/cards/expandable-call/index.d.ts +0 -1
- package/dist/types/components/checkbox-item/checkbox-item.d.ts +0 -56
- package/dist/types/components/checkbox-item/index.d.ts +0 -1
- package/dist/types/components/client-adapters/styled-rounded-image/index.d.ts +0 -1
- package/dist/types/components/client-adapters/styled-rounded-image/styled-rounded-image.d.ts +0 -9
- package/dist/types/components/detailed-apy/detailed-apy.d.ts +0 -40
- package/dist/types/components/detailed-apy/index.d.ts +0 -1
- package/dist/types/components/dropdown-menu/dropdown-menu-checkbox-item.d.ts +0 -22
- package/dist/types/components/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -4
- package/dist/types/components/dropdown-menu/dropdown-menu-separator.d.ts +0 -4
- package/dist/types/components/dropdown-menu/dropdown-menu-shortcut.d.ts +0 -6
- package/dist/types/components/dropdown-menu/dropdown-menu-sub-content.d.ts +0 -4
- package/dist/types/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +0 -6
- package/dist/types/components/error-message/error-message.d.ts +0 -22
- package/dist/types/components/filter/filter-block.d.ts +0 -39
- package/dist/types/components/filter/filter-checkbox-item.d.ts +0 -23
- package/dist/types/components/filter/filter-chip.d.ts +0 -34
- package/dist/types/components/filter/filter-chips.d.ts +0 -42
- package/dist/types/components/filter/filter-dropdown-item.d.ts +0 -62
- package/dist/types/components/filter/filter-group.d.ts +0 -22
- package/dist/types/components/filter/filter-label.d.ts +0 -21
- package/dist/types/components/filter/filter-modal-item.d.ts +0 -55
- package/dist/types/components/filter/filter-modal.d.ts +0 -123
- package/dist/types/components/filter/filter-radio-item.d.ts +0 -19
- package/dist/types/components/filter/filter-separator.d.ts +0 -22
- package/dist/types/components/filter/index.d.ts +0 -109
- package/dist/types/components/filter/interface.d.ts +0 -24
- package/dist/types/components/filter/variants.d.ts +0 -3
- package/dist/types/components/network-icon/network-indicator.d.ts +0 -23
- package/dist/types/configs/design-tokens.d.ts +0 -73
- package/dist/types/configs/variants.d.ts +0 -28
- package/dist/types/hooks/use-checkbox-select.d.ts +0 -101
- package/dist/types/hooks/use-controllable-state.d.ts +0 -24
- package/dist/types/hooks/use-opened-state.d.ts +0 -71
- package/dist/types/hooks/use-smart-number-input.d.ts +0 -1
- package/dist/types/utils/a11y.d.ts +0 -24
- package/dist/types/utils/copy.d.ts +0 -4
- package/dist/types/utils/interface.d.ts +0 -24
- package/dist/types/utils/plural.d.ts +0 -36
- package/dist/types/utils/react.d.ts +0 -31
- package/dist/types/utils/search-in-token.d.ts +0 -43
- package/dist/types/utils/search.d.ts +0 -15
- package/dist/types/utils/short-sha.d.ts +0 -9
- package/dist/types/utils/sort.d.ts +0 -5
|
@@ -2,32 +2,27 @@ import { jsx as r, jsxs as l, Fragment as v } from "react/jsx-runtime";
|
|
|
2
2
|
import { StyledDialogContainer as S } from "../../../../client-adapters/styled-dialog-container/styled-dialog-container.js";
|
|
3
3
|
import { ConfirmMenu as k } from "../../../../confirm-menu/confirm-menu.js";
|
|
4
4
|
import { ErrorLineMessage as T } from "../../../../error-message/error-line-message.js";
|
|
5
|
-
import "
|
|
6
|
-
import "../../../../
|
|
7
|
-
import "../../../../
|
|
8
|
-
import { useIntlTyped as
|
|
9
|
-
import "
|
|
5
|
+
import { Modal as N } from "../../../../modal/modal.js";
|
|
6
|
+
import { SkeletonStack as P } from "../../../../skeleton/skeleton-stack.js";
|
|
7
|
+
import { Spinner as I } from "../../../../spinner/spinner.js";
|
|
8
|
+
import { useIntlTyped as M, FormattedMessageTyped as L } from "../../../../typed-intl/index.js";
|
|
9
|
+
import { Typography as A } from "../../../../typography/typography.js";
|
|
10
|
+
import { VSpace as p } from "../../../../vspace/vspace.js";
|
|
10
11
|
import "@gearbox-protocol/sdk/onchain";
|
|
11
|
-
import { cn as
|
|
12
|
-
import "sonner";
|
|
12
|
+
import { cn as D } from "../../../../../utils/cn.js";
|
|
13
13
|
import "luxon";
|
|
14
14
|
import "../../../../../utils/z-index.js";
|
|
15
|
-
import { Modal as M } from "../../../../modal/modal.js";
|
|
16
|
-
import { SkeletonStack as L } from "../../../../skeleton/skeleton-stack.js";
|
|
17
|
-
import { Spinner as A } from "../../../../spinner/spinner.js";
|
|
18
|
-
import { Typography as D } from "../../../../typography/typography.js";
|
|
19
|
-
import { VSpace as f } from "../../../../vspace/vspace.js";
|
|
20
15
|
import { ProgressStepper as V } from "../stepper/ProgressStepper.js";
|
|
21
16
|
import { computeTransactionConfirmDialogLayout as z } from "./computeTransactionConfirmDialogLayout.js";
|
|
22
|
-
import { TransactionConfirmDialogTest as
|
|
23
|
-
function
|
|
17
|
+
import { TransactionConfirmDialogTest as c, transactionConfirmModalContainerVariants as E, transactionConfirmDialogShellVariants as R, transactionConfirmShellContentVariants as j, transactionConfirmPreviewScrollVariants as y } from "./constants.js";
|
|
18
|
+
function ie(e) {
|
|
24
19
|
const {
|
|
25
20
|
mode: t,
|
|
26
|
-
open:
|
|
27
|
-
phase:
|
|
21
|
+
open: d = !0,
|
|
22
|
+
phase: m = "confirm",
|
|
28
23
|
onClose: a,
|
|
29
24
|
title: n,
|
|
30
|
-
titleAddon:
|
|
25
|
+
titleAddon: u,
|
|
31
26
|
hideTitleAddonOnResult: i = !0,
|
|
32
27
|
body: o,
|
|
33
28
|
className: s,
|
|
@@ -35,11 +30,11 @@ function le(e) {
|
|
|
35
30
|
"data-testid": w,
|
|
36
31
|
shellTestId: x
|
|
37
32
|
} = e;
|
|
38
|
-
if (t === "dialog" && !
|
|
39
|
-
const
|
|
33
|
+
if (t === "dialog" && !d) return null;
|
|
34
|
+
const f = o.kind === "ready" ? m : "confirm", C = f !== "confirm" && f !== "awaiting_receipt" && i ? void 0 : u, h = /* @__PURE__ */ r(
|
|
40
35
|
S,
|
|
41
36
|
{
|
|
42
|
-
className:
|
|
37
|
+
className: D(
|
|
43
38
|
R(),
|
|
44
39
|
t === "dialog" ? E() : null,
|
|
45
40
|
s
|
|
@@ -49,9 +44,9 @@ function le(e) {
|
|
|
49
44
|
O,
|
|
50
45
|
{
|
|
51
46
|
body: o,
|
|
52
|
-
phase:
|
|
47
|
+
phase: f,
|
|
53
48
|
previewClassName: g,
|
|
54
|
-
testId: x ??
|
|
49
|
+
testId: x ?? c.root,
|
|
55
50
|
header: /* @__PURE__ */ r(
|
|
56
51
|
k,
|
|
57
52
|
{
|
|
@@ -64,29 +59,29 @@ function le(e) {
|
|
|
64
59
|
)
|
|
65
60
|
}
|
|
66
61
|
);
|
|
67
|
-
return t === "page" ? h : /* @__PURE__ */ r(
|
|
62
|
+
return t === "page" ? h : /* @__PURE__ */ r(N, { show: !0, onClickOutside: a, zIndexLayer: "MODAL", children: h });
|
|
68
63
|
}
|
|
69
64
|
function O({
|
|
70
65
|
body: e,
|
|
71
66
|
phase: t,
|
|
72
|
-
previewClassName:
|
|
73
|
-
testId:
|
|
67
|
+
previewClassName: d,
|
|
68
|
+
testId: m,
|
|
74
69
|
header: a
|
|
75
70
|
}) {
|
|
76
|
-
const n = e.kind === "ready" ? e.stepper : void 0,
|
|
71
|
+
const n = e.kind === "ready" ? e.stepper : void 0, u = !!(n && n.length > 0), i = z(t, u), o = e.kind === "ready" ? B(e, t) : void 0, s = e.kind === "ready" ? e.execution : void 0;
|
|
77
72
|
return /* @__PURE__ */ l(
|
|
78
73
|
"div",
|
|
79
74
|
{
|
|
80
75
|
className: j(),
|
|
81
|
-
"data-testid":
|
|
76
|
+
"data-testid": m,
|
|
82
77
|
children: [
|
|
83
78
|
/* @__PURE__ */ r("div", { className: "shrink-0", children: a }),
|
|
84
|
-
/* @__PURE__ */ r(
|
|
79
|
+
/* @__PURE__ */ r(p, { size: "sm" }),
|
|
85
80
|
i.showResult && o ? /* @__PURE__ */ r(
|
|
86
81
|
"div",
|
|
87
82
|
{
|
|
88
83
|
className: "flex min-h-0 flex-1 flex-col",
|
|
89
|
-
"data-testid":
|
|
84
|
+
"data-testid": c.result,
|
|
90
85
|
children: o
|
|
91
86
|
}
|
|
92
87
|
) : null,
|
|
@@ -94,27 +89,27 @@ function O({
|
|
|
94
89
|
i.showPreview ? /* @__PURE__ */ r(
|
|
95
90
|
"div",
|
|
96
91
|
{
|
|
97
|
-
className:
|
|
92
|
+
className: d ?? y(),
|
|
98
93
|
children: /* @__PURE__ */ r(F, { body: e })
|
|
99
94
|
}
|
|
100
95
|
) : null,
|
|
101
|
-
i.showPreview && i.showExecution && s ? /* @__PURE__ */ r(
|
|
96
|
+
i.showPreview && i.showExecution && s ? /* @__PURE__ */ r(p, { size: "md" }) : null,
|
|
102
97
|
i.showExecution && s ? /* @__PURE__ */ r(
|
|
103
98
|
"div",
|
|
104
99
|
{
|
|
105
100
|
className: "min-w-0 w-full shrink-0",
|
|
106
|
-
"data-testid":
|
|
101
|
+
"data-testid": c.execution,
|
|
107
102
|
children: s
|
|
108
103
|
}
|
|
109
104
|
) : null
|
|
110
105
|
] }),
|
|
111
106
|
i.showProgressStepper && n ? /* @__PURE__ */ l(v, { children: [
|
|
112
|
-
/* @__PURE__ */ r(
|
|
107
|
+
/* @__PURE__ */ r(p, { size: "md" }),
|
|
113
108
|
/* @__PURE__ */ r(
|
|
114
109
|
"div",
|
|
115
110
|
{
|
|
116
111
|
className: "shrink-0",
|
|
117
|
-
"data-testid":
|
|
112
|
+
"data-testid": c.progress,
|
|
118
113
|
children: /* @__PURE__ */ r(V, { tone: "muted", steps: n })
|
|
119
114
|
}
|
|
120
115
|
)
|
|
@@ -126,10 +121,10 @@ function O({
|
|
|
126
121
|
function F({
|
|
127
122
|
body: e
|
|
128
123
|
}) {
|
|
129
|
-
const t =
|
|
124
|
+
const t = M();
|
|
130
125
|
return e.kind === "loading" ? /* @__PURE__ */ l("div", { className: "flex flex-col items-center justify-center gap-3 py-8", children: [
|
|
131
|
-
/* @__PURE__ */ r(
|
|
132
|
-
/* @__PURE__ */ r(
|
|
126
|
+
/* @__PURE__ */ r(I, {}),
|
|
127
|
+
/* @__PURE__ */ r(A, { variant: "bodySmall", color: "muted", as: "p", children: /* @__PURE__ */ r(L, { messageId: "components.transactionConfirm.previewLoading" }) })
|
|
133
128
|
] }) : e.kind === "error" ? /* @__PURE__ */ r(
|
|
134
129
|
T,
|
|
135
130
|
{
|
|
@@ -138,7 +133,7 @@ function F({
|
|
|
138
133
|
messageId: "components.transactionConfirm.previewErrorTitle"
|
|
139
134
|
})
|
|
140
135
|
}
|
|
141
|
-
) : e.previewLoading ? /* @__PURE__ */ r(
|
|
136
|
+
) : e.previewLoading ? /* @__PURE__ */ r(P, { lines: 3 }) : /* @__PURE__ */ r(v, { children: e.preview });
|
|
142
137
|
}
|
|
143
138
|
function B(e, t) {
|
|
144
139
|
if (e.result) {
|
|
@@ -147,5 +142,5 @@ function B(e, t) {
|
|
|
147
142
|
}
|
|
148
143
|
}
|
|
149
144
|
export {
|
|
150
|
-
|
|
145
|
+
ie as TransactionConfirmShell
|
|
151
146
|
};
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import { TransactionConfirmAmountFieldTest as n
|
|
2
|
-
import { TransactionConfirmAmountField as e } from "./amounts/TransactionConfirmAmountField.js";
|
|
1
|
+
import { TransactionConfirmAmountFieldTest as n } from "./amounts/constants.js";
|
|
2
|
+
import { TransactionConfirmAmountField as a, resolveAmountSlots as e } from "./amounts/TransactionConfirmAmountField.js";
|
|
3
3
|
import { computeTransactionConfirmDialogLayout as s } from "./dialog/computeTransactionConfirmDialogLayout.js";
|
|
4
|
-
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as l, transactionConfirmShellContentVariants as
|
|
4
|
+
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as l, transactionConfirmShellContentVariants as C } from "./dialog/constants.js";
|
|
5
5
|
import { TransactionConfirmShell as u } from "./dialog/TransactionConfirmShell.js";
|
|
6
6
|
import { TransactionConfirmExecuteButton as S } from "./execution/TransactionConfirmExecuteButton.js";
|
|
7
|
-
import { TransactionConfirmExecuteButtonTest as g, TransactionConfirmFailureResultTest as
|
|
8
|
-
import { TransactionConfirmFailureResult as
|
|
9
|
-
import { TransactionConfirmSuccessIcon as
|
|
10
|
-
import { TransactionConfirmSuccessResult as
|
|
11
|
-
import { TransactionConfirmTxHashRow as
|
|
7
|
+
import { TransactionConfirmExecuteButtonTest as g, TransactionConfirmFailureResultTest as h, TransactionConfirmSuccessResultTest as F, TransactionConfirmTxHashRowTest as V } from "./result/constants.js";
|
|
8
|
+
import { TransactionConfirmFailureResult as w } from "./result/TransactionConfirmFailureResult.js";
|
|
9
|
+
import { TransactionConfirmSuccessIcon as D } from "./result/TransactionConfirmSuccessIcon.js";
|
|
10
|
+
import { TransactionConfirmSuccessResult as v } from "./result/TransactionConfirmSuccessResult.js";
|
|
11
|
+
import { TransactionConfirmTxHashRow as E } from "./result/TransactionConfirmTxHashRow.js";
|
|
12
12
|
import { ProgressStepperTest as y } from "./stepper/constants.js";
|
|
13
13
|
import { ProgressStepper as L } from "./stepper/ProgressStepper.js";
|
|
14
|
-
import { shouldShowTransactionProgressStepper as b } from "./stepper/transactionExecutionStepTypes.js";
|
|
15
14
|
export {
|
|
16
15
|
L as ProgressStepper,
|
|
17
16
|
y as ProgressStepperTest,
|
|
18
|
-
|
|
17
|
+
a as TransactionConfirmAmountField,
|
|
19
18
|
n as TransactionConfirmAmountFieldTest,
|
|
20
|
-
t as TransactionConfirmAmountPairTest,
|
|
21
19
|
f as TransactionConfirmDialogTest,
|
|
22
20
|
S as TransactionConfirmExecuteButton,
|
|
23
21
|
g as TransactionConfirmExecuteButtonTest,
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
w as TransactionConfirmFailureResult,
|
|
23
|
+
h as TransactionConfirmFailureResultTest,
|
|
26
24
|
u as TransactionConfirmShell,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
D as TransactionConfirmSuccessIcon,
|
|
26
|
+
v as TransactionConfirmSuccessResult,
|
|
27
|
+
F as TransactionConfirmSuccessResultTest,
|
|
28
|
+
E as TransactionConfirmTxHashRow,
|
|
29
|
+
V as TransactionConfirmTxHashRowTest,
|
|
32
30
|
s as computeTransactionConfirmDialogLayout,
|
|
33
|
-
|
|
31
|
+
e as resolveAmountSlots,
|
|
34
32
|
c as transactionConfirmDialogShellVariants,
|
|
35
33
|
T as transactionConfirmModalContainerVariants,
|
|
36
34
|
l as transactionConfirmPreviewScrollVariants,
|
|
37
|
-
|
|
35
|
+
C as transactionConfirmShellContentVariants
|
|
38
36
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import "react";
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
3
2
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
|
-
import { cn as
|
|
5
|
-
import "sonner";
|
|
3
|
+
import { cn as s } from "../../../../../utils/cn.js";
|
|
6
4
|
import "luxon";
|
|
7
5
|
import "../../../../../utils/z-index.js";
|
|
8
|
-
import { ProgressStepperTest as
|
|
9
|
-
function
|
|
6
|
+
import { ProgressStepperTest as x } from "./constants.js";
|
|
7
|
+
function p({
|
|
10
8
|
status: r,
|
|
11
9
|
tone: n
|
|
12
10
|
}) {
|
|
@@ -14,7 +12,7 @@ function x({
|
|
|
14
12
|
return /* @__PURE__ */ t(
|
|
15
13
|
"span",
|
|
16
14
|
{
|
|
17
|
-
className:
|
|
15
|
+
className: s(
|
|
18
16
|
"relative z-10 block size-[9px] shrink-0 rounded-full",
|
|
19
17
|
// Reached steps (done + current) are solid so the dot matches the
|
|
20
18
|
// "reached" connector running into it; only upcoming stays hollow.
|
|
@@ -27,7 +25,7 @@ function x({
|
|
|
27
25
|
);
|
|
28
26
|
}
|
|
29
27
|
function d(r, n, a) {
|
|
30
|
-
return
|
|
28
|
+
return s(
|
|
31
29
|
"h-px min-w-0 flex-1",
|
|
32
30
|
r ? a === "muted" ? "bg-gray-50" : "bg-foreground" : n ? "border-t border-dashed border-gray-50" : "bg-gray-50"
|
|
33
31
|
);
|
|
@@ -35,7 +33,7 @@ function d(r, n, a) {
|
|
|
35
33
|
function h(r) {
|
|
36
34
|
return r === "completed" || r === "active";
|
|
37
35
|
}
|
|
38
|
-
function
|
|
36
|
+
function S({
|
|
39
37
|
steps: r,
|
|
40
38
|
tone: n = "foreground",
|
|
41
39
|
className: a
|
|
@@ -43,18 +41,18 @@ function D({
|
|
|
43
41
|
return /* @__PURE__ */ t(
|
|
44
42
|
"ol",
|
|
45
43
|
{
|
|
46
|
-
className:
|
|
47
|
-
"data-testid":
|
|
48
|
-
children: r.map((e,
|
|
49
|
-
const m =
|
|
50
|
-
return /* @__PURE__ */
|
|
44
|
+
className: s("m-0 flex w-full list-none p-0", a),
|
|
45
|
+
"data-testid": x.root,
|
|
46
|
+
children: r.map((e, o) => {
|
|
47
|
+
const m = o === 0, u = o === r.length - 1, i = e.status === "active", c = r[o + 1], f = h(e.status), g = e.status === "completed" || e.status === "active" && !!c?.connectorMarker;
|
|
48
|
+
return /* @__PURE__ */ l(
|
|
51
49
|
"li",
|
|
52
50
|
{
|
|
53
51
|
className: "flex min-w-0 flex-1 flex-col items-center",
|
|
54
|
-
"aria-current":
|
|
52
|
+
"aria-current": i ? "step" : void 0,
|
|
55
53
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
m ? /* @__PURE__ */ t("span", { className: "min-w-0 flex-1", "aria-hidden": !0 }) : /* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ l("div", { className: "flex w-full items-center", children: [
|
|
55
|
+
m ? /* @__PURE__ */ t("span", { className: "min-w-0 flex-1", "aria-hidden": !0 }) : /* @__PURE__ */ l("span", { className: "relative flex min-w-0 flex-1 items-center", children: [
|
|
58
56
|
/* @__PURE__ */ t(
|
|
59
57
|
"span",
|
|
60
58
|
{
|
|
@@ -68,7 +66,7 @@ function D({
|
|
|
68
66
|
),
|
|
69
67
|
e.connectorMarker ? /* @__PURE__ */ t("span", { className: "-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-0 z-10 flex items-center", children: e.connectorMarker }) : null
|
|
70
68
|
] }),
|
|
71
|
-
/* @__PURE__ */ t(
|
|
69
|
+
/* @__PURE__ */ t(p, { status: e.status, tone: n }),
|
|
72
70
|
u ? /* @__PURE__ */ t("span", { className: "min-w-0 flex-1", "aria-hidden": !0 }) : /* @__PURE__ */ t(
|
|
73
71
|
"span",
|
|
74
72
|
{
|
|
@@ -84,9 +82,9 @@ function D({
|
|
|
84
82
|
/* @__PURE__ */ t(
|
|
85
83
|
"span",
|
|
86
84
|
{
|
|
87
|
-
className:
|
|
85
|
+
className: s(
|
|
88
86
|
"mt-3 max-w-full truncate px-1 text-center text-xs leading-snug",
|
|
89
|
-
|
|
87
|
+
i ? "font-medium text-foreground" : "font-normal text-secondary-foreground"
|
|
90
88
|
),
|
|
91
89
|
children: e.label
|
|
92
90
|
}
|
|
@@ -100,5 +98,5 @@ function D({
|
|
|
100
98
|
);
|
|
101
99
|
}
|
|
102
100
|
export {
|
|
103
|
-
|
|
101
|
+
S as ProgressStepper
|
|
104
102
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ProgressStepperTest as o } from "./constants.js";
|
|
2
2
|
import { ProgressStepper as s } from "./ProgressStepper.js";
|
|
3
|
-
import { shouldShowTransactionProgressStepper as S } from "./transactionExecutionStepTypes.js";
|
|
4
3
|
export {
|
|
5
4
|
s as ProgressStepper,
|
|
6
|
-
o as ProgressStepperTest
|
|
7
|
-
S as shouldShowTransactionProgressStepper
|
|
5
|
+
o as ProgressStepperTest
|
|
8
6
|
};
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import { TransactionConfirmAmountFieldTest as n
|
|
2
|
-
import { TransactionConfirmAmountField as e } from "./confirm/amounts/TransactionConfirmAmountField.js";
|
|
1
|
+
import { TransactionConfirmAmountFieldTest as n } from "./confirm/amounts/constants.js";
|
|
2
|
+
import { TransactionConfirmAmountField as a, resolveAmountSlots as e } from "./confirm/amounts/TransactionConfirmAmountField.js";
|
|
3
3
|
import { computeTransactionConfirmDialogLayout as s } from "./confirm/dialog/computeTransactionConfirmDialogLayout.js";
|
|
4
|
-
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as l, transactionConfirmShellContentVariants as
|
|
4
|
+
import { TransactionConfirmDialogTest as f, transactionConfirmDialogShellVariants as c, transactionConfirmModalContainerVariants as T, transactionConfirmPreviewScrollVariants as l, transactionConfirmShellContentVariants as C } from "./confirm/dialog/constants.js";
|
|
5
5
|
import { TransactionConfirmShell as u } from "./confirm/dialog/TransactionConfirmShell.js";
|
|
6
6
|
import { TransactionConfirmExecuteButton as S } from "./confirm/execution/TransactionConfirmExecuteButton.js";
|
|
7
|
-
import { TransactionConfirmExecuteButtonTest as g, TransactionConfirmFailureResultTest as
|
|
8
|
-
import { TransactionConfirmFailureResult as
|
|
9
|
-
import { TransactionConfirmSuccessIcon as
|
|
10
|
-
import { TransactionConfirmSuccessResult as
|
|
11
|
-
import { TransactionConfirmTxHashRow as
|
|
7
|
+
import { TransactionConfirmExecuteButtonTest as g, TransactionConfirmFailureResultTest as h, TransactionConfirmSuccessResultTest as F, TransactionConfirmTxHashRowTest as V } from "./confirm/result/constants.js";
|
|
8
|
+
import { TransactionConfirmFailureResult as w } from "./confirm/result/TransactionConfirmFailureResult.js";
|
|
9
|
+
import { TransactionConfirmSuccessIcon as D } from "./confirm/result/TransactionConfirmSuccessIcon.js";
|
|
10
|
+
import { TransactionConfirmSuccessResult as v } from "./confirm/result/TransactionConfirmSuccessResult.js";
|
|
11
|
+
import { TransactionConfirmTxHashRow as E } from "./confirm/result/TransactionConfirmTxHashRow.js";
|
|
12
12
|
import { ProgressStepperTest as y } from "./confirm/stepper/constants.js";
|
|
13
13
|
import { ProgressStepper as L } from "./confirm/stepper/ProgressStepper.js";
|
|
14
|
-
import { shouldShowTransactionProgressStepper as b } from "./confirm/stepper/transactionExecutionStepTypes.js";
|
|
15
14
|
export {
|
|
16
15
|
L as ProgressStepper,
|
|
17
16
|
y as ProgressStepperTest,
|
|
18
|
-
|
|
17
|
+
a as TransactionConfirmAmountField,
|
|
19
18
|
n as TransactionConfirmAmountFieldTest,
|
|
20
|
-
t as TransactionConfirmAmountPairTest,
|
|
21
19
|
f as TransactionConfirmDialogTest,
|
|
22
20
|
S as TransactionConfirmExecuteButton,
|
|
23
21
|
g as TransactionConfirmExecuteButtonTest,
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
w as TransactionConfirmFailureResult,
|
|
23
|
+
h as TransactionConfirmFailureResultTest,
|
|
26
24
|
u as TransactionConfirmShell,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
D as TransactionConfirmSuccessIcon,
|
|
26
|
+
v as TransactionConfirmSuccessResult,
|
|
27
|
+
F as TransactionConfirmSuccessResultTest,
|
|
28
|
+
E as TransactionConfirmTxHashRow,
|
|
29
|
+
V as TransactionConfirmTxHashRowTest,
|
|
32
30
|
s as computeTransactionConfirmDialogLayout,
|
|
33
|
-
|
|
31
|
+
e as resolveAmountSlots,
|
|
34
32
|
c as transactionConfirmDialogShellVariants,
|
|
35
33
|
T as transactionConfirmModalContainerVariants,
|
|
36
34
|
l as transactionConfirmPreviewScrollVariants,
|
|
37
|
-
|
|
35
|
+
C as transactionConfirmShellContentVariants
|
|
38
36
|
};
|
|
@@ -5,7 +5,6 @@ import { totalApyOf as C, positiveTokenRewardsOf as I, pointProgramsOf as k } fr
|
|
|
5
5
|
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { bpsToPercent as P } from "../../utils/bps.js";
|
|
7
7
|
import { cn as A } from "../../utils/cn.js";
|
|
8
|
-
import "sonner";
|
|
9
8
|
import { formatCompactPercent as O } from "../../utils/format-money.js";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../utils/z-index.js";
|
|
@@ -71,7 +70,7 @@ function N() {
|
|
|
71
70
|
function p(t) {
|
|
72
71
|
return t == null ? !1 : I(t).length > 0 || k(t).length > 0;
|
|
73
72
|
}
|
|
74
|
-
function
|
|
73
|
+
function R({
|
|
75
74
|
apy: t,
|
|
76
75
|
maxLeverage: m,
|
|
77
76
|
collateralApy: e,
|
|
@@ -106,5 +105,5 @@ function W({
|
|
|
106
105
|
) : s();
|
|
107
106
|
}
|
|
108
107
|
export {
|
|
109
|
-
|
|
108
|
+
R as CompoundAPY
|
|
110
109
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { faXmark as s } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { IconButton as c } from "../icon-button/icon-button.js";
|
|
5
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
|
-
import "sonner";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import "../../utils/z-index.js";
|
|
11
|
-
const p =
|
|
10
|
+
const p = t.forwardRef(
|
|
12
11
|
({ title: m, titleAddon: i, onClose: e, className: o }, a) => /* @__PURE__ */ n(
|
|
13
12
|
"div",
|
|
14
13
|
{
|
|
@@ -32,13 +31,13 @@ const p = s.forwardRef(
|
|
|
32
31
|
i ? /* @__PURE__ */ r("div", { className: "shrink-0", children: i }) : null
|
|
33
32
|
] }),
|
|
34
33
|
e ? /* @__PURE__ */ r("div", { className: "shrink-0 pl-2", children: /* @__PURE__ */ r(
|
|
35
|
-
|
|
34
|
+
c,
|
|
36
35
|
{
|
|
37
36
|
buttonType: "hollow",
|
|
38
37
|
size: 30,
|
|
39
38
|
onClick: e,
|
|
40
39
|
"aria-label": "Close",
|
|
41
|
-
children: /* @__PURE__ */ r(f, { icon:
|
|
40
|
+
children: /* @__PURE__ */ r(f, { icon: s, className: "size-5" })
|
|
42
41
|
}
|
|
43
42
|
) }) : null
|
|
44
43
|
]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { faCheck as d } from "@fortawesome/free-solid-svg-icons";
|
|
3
|
+
import { IconCopy as y } from "@gearbox-protocol/static";
|
|
3
4
|
import * as r from "react";
|
|
4
|
-
import { IconButton as
|
|
5
|
-
import { faCheck as x } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { IconButton as x } from "../icon-button/icon-button.js";
|
|
6
6
|
import { FaIcon as C } from "../icons/fa-icon.js";
|
|
7
7
|
import { SimpleTooltip as T } from "../tooltip/simple-tooltip.js";
|
|
8
8
|
import "../tooltip/tooltip.js";
|
|
@@ -10,7 +10,6 @@ import { FormattedMessageTyped as g } from "../typed-intl/index.js";
|
|
|
10
10
|
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
|
-
import "sonner";
|
|
14
13
|
import "luxon";
|
|
15
14
|
import "../../utils/z-index.js";
|
|
16
15
|
const I = r.forwardRef(function({ toCopy: t, className: n }, c) {
|
|
@@ -28,7 +27,7 @@ const I = r.forwardRef(function({ toCopy: t, className: n }, c) {
|
|
|
28
27
|
T,
|
|
29
28
|
{
|
|
30
29
|
title: /* @__PURE__ */ f(
|
|
31
|
-
|
|
30
|
+
x,
|
|
32
31
|
{
|
|
33
32
|
ref: c,
|
|
34
33
|
buttonType: "outlined",
|
|
@@ -44,7 +43,7 @@ const I = r.forwardRef(function({ toCopy: t, className: n }, c) {
|
|
|
44
43
|
"absolute inset-0 flex items-center justify-center transition-all duration-200",
|
|
45
44
|
o ? "opacity-100 scale-100 text-success" : "opacity-0 scale-50 text-foreground"
|
|
46
45
|
),
|
|
47
|
-
children: /* @__PURE__ */ e(C, { icon:
|
|
46
|
+
children: /* @__PURE__ */ e(C, { icon: d, className: "size-4" })
|
|
48
47
|
}
|
|
49
48
|
),
|
|
50
49
|
/* @__PURE__ */ e(
|
|
@@ -54,7 +53,7 @@ const I = r.forwardRef(function({ toCopy: t, className: n }, c) {
|
|
|
54
53
|
"flex items-center justify-center transition-all duration-200 text-foreground",
|
|
55
54
|
o ? "opacity-0 scale-50" : "opacity-100 scale-100"
|
|
56
55
|
),
|
|
57
|
-
children: /* @__PURE__ */ e(
|
|
56
|
+
children: /* @__PURE__ */ e(y, { size: 15 })
|
|
58
57
|
}
|
|
59
58
|
)
|
|
60
59
|
]
|
|
@@ -11,7 +11,6 @@ import { FormattedMessageTyped as h } from "../typed-intl/index.js";
|
|
|
11
11
|
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
|
-
import "sonner";
|
|
15
14
|
import "luxon";
|
|
16
15
|
import "../../utils/z-index.js";
|
|
17
16
|
const D = s.forwardRef(function({ explorerLinks: r, className: i, title: m }, n) {
|
|
@@ -3,7 +3,6 @@ import { cva as s } from "class-variance-authority";
|
|
|
3
3
|
import * as i from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as p } from "../../utils/cn.js";
|
|
6
|
-
import "sonner";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
8
|
const x = s("", {
|
|
@@ -45,8 +44,8 @@ const x = s("", {
|
|
|
45
44
|
colorTheme: e = "default",
|
|
46
45
|
sticky: o = !1,
|
|
47
46
|
className: d,
|
|
48
|
-
children:
|
|
49
|
-
...
|
|
47
|
+
children: l,
|
|
48
|
+
...t
|
|
50
49
|
}, m) => /* @__PURE__ */ n(
|
|
51
50
|
"div",
|
|
52
51
|
{
|
|
@@ -57,8 +56,8 @@ const x = s("", {
|
|
|
57
56
|
x({ padding: a, colorTheme: e, maxWidth: r, sticky: o }),
|
|
58
57
|
d
|
|
59
58
|
),
|
|
60
|
-
...
|
|
61
|
-
children:
|
|
59
|
+
...t,
|
|
60
|
+
children: l
|
|
62
61
|
}
|
|
63
62
|
)
|
|
64
63
|
);
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { faXmark as d } from "@fortawesome/free-solid-svg-icons";
|
|
2
3
|
import * as a from "@radix-ui/react-dialog";
|
|
3
|
-
import * as
|
|
4
|
-
import { faXmark as n } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
+
import * as n from "react";
|
|
5
5
|
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
|
-
import "sonner";
|
|
9
8
|
import "luxon";
|
|
10
9
|
import { Z_INDEX as p } from "../../utils/z-index.js";
|
|
11
10
|
import { DialogPortal as c } from "./dialog.js";
|
|
12
11
|
import { DialogOverlay as f } from "./dialog-overlay.js";
|
|
13
|
-
const u =
|
|
12
|
+
const u = n.forwardRef(({ className: e, children: r, ...s }, i) => /* @__PURE__ */ t(c, { children: [
|
|
14
13
|
/* @__PURE__ */ o(f, {}),
|
|
15
14
|
/* @__PURE__ */ t(
|
|
16
15
|
a.Content,
|
|
@@ -25,7 +24,7 @@ const u = d.forwardRef(({ className: e, children: r, ...s }, i) => /* @__PURE__
|
|
|
25
24
|
children: [
|
|
26
25
|
r,
|
|
27
26
|
/* @__PURE__ */ t(a.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:cursor-not-allowed disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground cursor-pointer hover:text-foreground", children: [
|
|
28
|
-
/* @__PURE__ */ o(l, { icon:
|
|
27
|
+
/* @__PURE__ */ o(l, { icon: d, className: "size-4" }),
|
|
29
28
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
30
29
|
] })
|
|
31
30
|
]
|
|
@@ -3,7 +3,6 @@ import * as o from "@radix-ui/react-dialog";
|
|
|
3
3
|
import * as e from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as p } from "../../utils/cn.js";
|
|
6
|
-
import "sonner";
|
|
7
6
|
import "luxon";
|
|
8
7
|
import "../../utils/z-index.js";
|
|
9
8
|
const a = e.forwardRef(({ className: i, ...r }, t) => /* @__PURE__ */ m(
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "react";
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
2
|
import "@gearbox-protocol/sdk/onchain";
|
|
4
|
-
import { cn as
|
|
5
|
-
import "sonner";
|
|
3
|
+
import { cn as m } from "../../utils/cn.js";
|
|
6
4
|
import "luxon";
|
|
7
5
|
import "../../utils/z-index.js";
|
|
8
|
-
const
|
|
6
|
+
const s = ({
|
|
9
7
|
className: o,
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */
|
|
8
|
+
...e
|
|
9
|
+
}) => /* @__PURE__ */ r(
|
|
12
10
|
"div",
|
|
13
11
|
{
|
|
14
|
-
className:
|
|
12
|
+
className: m(
|
|
15
13
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
16
14
|
o
|
|
17
15
|
),
|
|
18
|
-
...
|
|
16
|
+
...e
|
|
19
17
|
}
|
|
20
18
|
);
|
|
21
|
-
|
|
19
|
+
s.displayName = "DialogFooter";
|
|
22
20
|
export {
|
|
23
|
-
|
|
21
|
+
s as DialogFooter
|
|
24
22
|
};
|