@gearbox-protocol/permissionless-ui 1.22.0-next.46 → 1.22.0-next.48
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/address/address.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/apy/apy.cjs +1 -1
- package/dist/cjs/components/arc-loader/arc-loader.cjs +1 -1
- package/dist/cjs/components/asset-line/asset-line.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/assets-ratio/assets-ratio.cjs +1 -1
- package/dist/cjs/components/auth/connect-required.cjs +1 -1
- package/dist/cjs/components/auth/signin-required.cjs +1 -1
- package/dist/cjs/components/avatar/avatar.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/base-link/base-link.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/button-checkbox/button-checkbox.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/card-grid/card-grid.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/carousel/carousel.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/colored-text/colored-text.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.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/credit-session-status/credit-session-status.cjs +1 -1
- package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
- package/dist/cjs/components/description/description.cjs +1 -1
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.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-label/dropdown-label.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/error-view/error-view.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.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/general-asset-list/general-asset-list.cjs +1 -1
- package/dist/cjs/components/general-select/general-select.cjs +1 -1
- package/dist/cjs/components/grid-td-cell/grid-td-cell.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-sections/help-sections.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/horizontal-indicator/horizontal-indicator.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/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/layout/block/block.cjs +1 -1
- package/dist/cjs/components/liquidation-price/liquidation-price.cjs +1 -1
- package/dist/cjs/components/loader-guard/loader-guard.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/navbar/navbar.cjs +1 -1
- package/dist/cjs/components/navbar-logo/navbar-logo.cjs +1 -1
- package/dist/cjs/components/navitem/navitem.cjs +1 -1
- package/dist/cjs/components/not-found/not-found.cjs +1 -1
- package/dist/cjs/components/options-list/options-list.cjs +1 -1
- package/dist/cjs/components/overflow/overflow.cjs +1 -1
- package/dist/cjs/components/overflow-container/overflow-container.cjs +1 -1
- package/dist/cjs/components/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/percent-indicator/percent-indicator.cjs +1 -1
- package/dist/cjs/components/pool-indicator-icon/pool-indicator-icon.cjs +1 -1
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/progress/progress.cjs +1 -1
- package/dist/cjs/components/progress-circle/progress-circle.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/row/row.cjs +1 -1
- package/dist/cjs/components/search-bar/search-bar.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/index.cjs +1 -0
- package/dist/cjs/components/separate-line/separate-line.cjs +1 -0
- package/dist/cjs/components/separator/separator.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/signatures/confirmation-item.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/slider-token/slider-token.cjs +1 -1
- package/dist/cjs/components/smart-number-input/balance-indicator.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/split-list/split-list.cjs +1 -1
- package/dist/cjs/components/stat-badge/stat-badge.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/status-triangle/status-triangle.cjs +1 -1
- package/dist/cjs/components/stepper/stepper.cjs +1 -1
- package/dist/cjs/components/styled-dropdown/styled-dropdown.cjs +1 -1
- package/dist/cjs/components/switch/switch.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/edit-button.cjs +1 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
- package/dist/cjs/components/table/editable-table.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/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.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/tokens-list-cell/tokens-list-cell.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/vertical-list/vertical-list.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/with-filter-button/with-filter-button.cjs +1 -1
- package/dist/cjs/components/with-title/with-title.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/ttl.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +6 -5
- package/dist/esm/components/address/address.js +3 -2
- package/dist/esm/components/alert-badge/alert-badge.js +1 -0
- package/dist/esm/components/alert-dialog/alert-dialog.js +4 -3
- package/dist/esm/components/apy/apy.js +14 -13
- package/dist/esm/components/arc-loader/arc-loader.js +8 -7
- package/dist/esm/components/asset-line/asset-line.js +8 -7
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +3 -2
- package/dist/esm/components/assets-ratio/assets-ratio.js +17 -16
- package/dist/esm/components/auth/connect-required.js +6 -5
- package/dist/esm/components/auth/signin-required.js +10 -9
- package/dist/esm/components/avatar/avatar.js +8 -7
- package/dist/esm/components/badge/badge.js +3 -2
- package/dist/esm/components/base-link/base-link.js +11 -10
- package/dist/esm/components/block-sync/block-sync.js +5 -2
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +3 -2
- package/dist/esm/components/button-checkbox/button-checkbox.js +8 -7
- package/dist/esm/components/buttons/back-button/back-button.js +8 -7
- package/dist/esm/components/buttons/button/button.js +1 -0
- package/dist/esm/components/buttons/copy-button/copy-button.js +1 -0
- package/dist/esm/components/buttons/external-button/external-button.js +1 -0
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +1 -0
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +3 -2
- package/dist/esm/components/card-grid/card-grid.js +9 -8
- package/dist/esm/components/cards/card/card.js +5 -4
- package/dist/esm/components/cards/expandable-call/expandable-call.js +7 -6
- package/dist/esm/components/cards/expandable-card/expandable-card.js +5 -4
- package/dist/esm/components/carousel/carousel.js +7 -6
- package/dist/esm/components/checkbox/checkbox-labeled.js +3 -0
- package/dist/esm/components/checkbox/checkbox.js +4 -3
- package/dist/esm/components/checkbox-item/checkbox-item.js +1 -0
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +5 -4
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +14 -13
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +3 -0
- package/dist/esm/components/colored-text/colored-text.js +5 -4
- package/dist/esm/components/complex-input/complex-input.js +5 -2
- package/dist/esm/components/compound-apy/compound-apy.js +10 -9
- package/dist/esm/components/confirm-menu/confirm-menu.js +8 -7
- package/dist/esm/components/credit-session-status/credit-session-status.js +7 -6
- package/dist/esm/components/currency-button/currency-button.js +3 -2
- package/dist/esm/components/description/description.js +5 -4
- package/dist/esm/components/detailed-apy/detailed-apy.js +11 -10
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +3 -2
- package/dist/esm/components/dialog/dialog-container.js +1 -0
- package/dist/esm/components/dialog/dialog-content.js +4 -3
- package/dist/esm/components/dialog/dialog-description.js +6 -5
- package/dist/esm/components/dialog/dialog-footer.js +8 -7
- package/dist/esm/components/dialog/dialog-form.js +3 -2
- package/dist/esm/components/dialog/dialog-header.js +1 -0
- package/dist/esm/components/dialog/dialog-modal-container.js +6 -5
- package/dist/esm/components/dialog/dialog-overlay.js +1 -0
- package/dist/esm/components/dialog/dialog-title.js +1 -0
- package/dist/esm/components/dropdown-label/dropdown-label.js +9 -8
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +6 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +4 -3
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -0
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +6 -5
- package/dist/esm/components/edit-input/edit-input.js +3 -2
- package/dist/esm/components/error-message/error-line-message.js +7 -6
- package/dist/esm/components/error-message/error-message.js +3 -2
- package/dist/esm/components/error-view/error-view.js +11 -10
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +8 -7
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +9 -8
- package/dist/esm/components/filter/filter-block.js +1 -0
- package/dist/esm/components/filter/filter-checkbox-item.js +4 -3
- package/dist/esm/components/filter/filter-chip.js +5 -4
- package/dist/esm/components/filter/filter-chips.js +9 -8
- package/dist/esm/components/filter/filter-dropdown-item.js +5 -4
- package/dist/esm/components/filter/filter-group.js +1 -0
- package/dist/esm/components/filter/filter-label.js +8 -7
- package/dist/esm/components/filter/filter-modal-item.js +5 -4
- package/dist/esm/components/filter/filter-modal.js +3 -2
- package/dist/esm/components/filter/filter-radio-item.js +4 -3
- package/dist/esm/components/filter/filter-separator.js +1 -0
- package/dist/esm/components/formatted-number/formatted-number.js +3 -2
- package/dist/esm/components/general-asset-list/general-asset-list.js +3 -2
- package/dist/esm/components/general-select/general-select.js +3 -2
- package/dist/esm/components/grid-td-cell/grid-td-cell.js +3 -2
- package/dist/esm/components/head-cell/head-cell.js +5 -4
- package/dist/esm/components/health-factor/health-factor.js +11 -10
- package/dist/esm/components/help-sections/help-sections.js +5 -4
- package/dist/esm/components/help-tip/help-tip.js +1 -0
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +1 -0
- package/dist/esm/components/icon-button/icon-button.js +4 -3
- package/dist/esm/components/icons/fa-icon.js +3 -2
- package/dist/esm/components/index.js +214 -210
- package/dist/esm/components/input/input.js +7 -6
- package/dist/esm/components/label/label.js +7 -6
- package/dist/esm/components/layout/block/block.js +7 -6
- package/dist/esm/components/liquidation-price/liquidation-price.js +5 -4
- package/dist/esm/components/loader-guard/loader-guard.js +9 -8
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +3 -2
- package/dist/esm/components/modal/modal.js +1 -0
- package/dist/esm/components/navbar/navbar.js +16 -15
- package/dist/esm/components/navbar-logo/navbar-logo.js +9 -8
- package/dist/esm/components/navitem/navitem.js +11 -10
- package/dist/esm/components/not-found/not-found.js +7 -6
- package/dist/esm/components/options-list/options-list.js +12 -11
- package/dist/esm/components/overflow/overflow.js +9 -8
- package/dist/esm/components/overflow-container/overflow-container.js +11 -10
- package/dist/esm/components/page-title/page-title.js +1 -0
- package/dist/esm/components/percent-indicator/percent-indicator.js +6 -5
- package/dist/esm/components/pool-indicator-icon/pool-indicator-icon.js +5 -4
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +8 -7
- package/dist/esm/components/progress/progress.js +8 -7
- package/dist/esm/components/progress-circle/progress-circle.js +11 -10
- package/dist/esm/components/radio-group/radio-group.js +6 -5
- package/dist/esm/components/rounded-image/rounded-image.js +6 -5
- package/dist/esm/components/row/row.js +7 -6
- package/dist/esm/components/search-bar/search-bar.js +9 -8
- package/dist/esm/components/search-line/search-line.js +8 -7
- package/dist/esm/components/segmented-control/segmented-control.js +1 -0
- package/dist/esm/components/select/select.js +4 -3
- package/dist/esm/components/separate-line/index.js +4 -0
- package/dist/esm/components/separate-line/separate-line.js +28 -0
- package/dist/esm/components/separator/separator.js +4 -3
- package/dist/esm/components/short-string/short-string.js +6 -5
- package/dist/esm/components/signatures/confirmation-item.js +11 -10
- package/dist/esm/components/skeleton/skeleton-stack.js +8 -7
- package/dist/esm/components/skeleton/skeleton.js +7 -6
- package/dist/esm/components/slider/slider.js +24 -23
- package/dist/esm/components/slider-token/slider-token.js +10 -9
- package/dist/esm/components/smart-number-input/balance-indicator.js +3 -2
- package/dist/esm/components/smart-number-input/smart-number-input.js +1 -0
- package/dist/esm/components/spinner/spinner.js +1 -0
- package/dist/esm/components/split-list/split-list.js +5 -4
- package/dist/esm/components/stat-badge/stat-badge.js +1 -0
- package/dist/esm/components/status-dot/status-dot.js +3 -2
- package/dist/esm/components/status-elements/status-elements.js +5 -4
- package/dist/esm/components/status-triangle/status-triangle.js +5 -4
- package/dist/esm/components/stepper/stepper.js +1 -0
- package/dist/esm/components/styled-dropdown/styled-dropdown.js +11 -10
- package/dist/esm/components/switch/switch.js +1 -0
- package/dist/esm/components/tab-control/tab-control.js +11 -10
- package/dist/esm/components/table/edit-button.js +3 -2
- package/dist/esm/components/table/editable-grid-table.js +7 -6
- package/dist/esm/components/table/editable-table.js +20 -19
- package/dist/esm/components/table/grid-loading-line.js +3 -2
- package/dist/esm/components/table/table-sm.js +8 -7
- package/dist/esm/components/table/table.js +13 -12
- package/dist/esm/components/tabs/tabs.js +11 -10
- package/dist/esm/components/text-button/text-button.js +14 -13
- package/dist/esm/components/textarea/textarea.js +3 -2
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +151 -37
- package/dist/esm/components/tip-card/tip-card.js +1 -0
- package/dist/esm/components/token-symbol/token-symbol.js +1 -0
- package/dist/esm/components/token-template/token-template.js +9 -8
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +10 -9
- package/dist/esm/components/tooltip/simple-tooltip.js +9 -8
- package/dist/esm/components/tooltip/tooltip.js +9 -8
- package/dist/esm/components/typography/typography.js +6 -5
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +6 -5
- package/dist/esm/components/vertical-list/vertical-list.js +13 -12
- package/dist/esm/components/with-copy/with-copy.js +3 -2
- package/dist/esm/components/with-filter-button/with-filter-button.js +5 -4
- package/dist/esm/components/with-title/with-title.js +9 -8
- package/dist/esm/index.js +346 -342
- package/dist/esm/utils/format-money.js +9 -8
- package/dist/esm/utils/index.js +18 -18
- package/dist/esm/utils/ttl.js +32 -33
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/separate-line/index.d.ts +1 -0
- package/dist/types/components/separate-line/separate-line.d.ts +28 -0
- package/dist/types/components/time-to-liquidation/time-to-liquidation.d.ts +18 -14
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/ttl.d.ts +13 -13
- package/package.json +1 -1
package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
3
|
import { DialogContainer as d } from "../../dialog/dialog-container.js";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as c } from "../../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
|
|
7
|
+
import "luxon";
|
|
8
|
+
const g = f.forwardRef(
|
|
8
9
|
({
|
|
9
10
|
$padding: o = "lg",
|
|
10
11
|
$width: r,
|
|
11
|
-
$minWidth:
|
|
12
|
-
$maxWidth:
|
|
12
|
+
$minWidth: t,
|
|
13
|
+
$maxWidth: e,
|
|
13
14
|
$minHeight: i,
|
|
14
|
-
$colorTheme:
|
|
15
|
-
className:
|
|
15
|
+
$colorTheme: m = "box",
|
|
16
|
+
className: a,
|
|
16
17
|
style: l,
|
|
17
18
|
...n
|
|
18
|
-
},
|
|
19
|
+
}, p) => /* @__PURE__ */ s(
|
|
19
20
|
d,
|
|
20
21
|
{
|
|
21
|
-
ref:
|
|
22
|
+
ref: p,
|
|
22
23
|
padding: o === "none" ? !1 : o === "lg" ? !0 : o,
|
|
23
|
-
colorTheme:
|
|
24
|
-
className: c(
|
|
24
|
+
colorTheme: m,
|
|
25
|
+
className: c(a),
|
|
25
26
|
...n,
|
|
26
27
|
style: {
|
|
27
28
|
...l,
|
|
28
29
|
width: r || void 0,
|
|
29
|
-
minWidth:
|
|
30
|
-
maxWidth:
|
|
30
|
+
minWidth: t || void 0,
|
|
31
|
+
maxWidth: e || void 0,
|
|
31
32
|
minHeight: i || void 0
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -8,6 +8,7 @@ import "@gearbox-protocol/sdk";
|
|
|
8
8
|
import "clsx";
|
|
9
9
|
import "tailwind-merge";
|
|
10
10
|
import "sonner";
|
|
11
|
+
import "luxon";
|
|
11
12
|
import "../../alert-badge/alert-badge.js";
|
|
12
13
|
import "../../alert-dialog/alert-dialog.js";
|
|
13
14
|
import "../../tooltip/simple-tooltip.js";
|
|
@@ -112,6 +113,7 @@ import { RoundedImage as d } from "../../rounded-image/rounded-image.js";
|
|
|
112
113
|
import "../../search-bar/search-bar.js";
|
|
113
114
|
import "../../segmented-control/segmented-control.js";
|
|
114
115
|
import "../../select/select.js";
|
|
116
|
+
import "../../separate-line/separate-line.js";
|
|
115
117
|
import "../../separator/separator.js";
|
|
116
118
|
import "../../slider/slider.js";
|
|
117
119
|
import "../../spinner/spinner.js";
|
|
@@ -125,6 +127,7 @@ import "../../table/table.js";
|
|
|
125
127
|
import "../../table/grid-table-loader.js";
|
|
126
128
|
import "../../textarea/textarea.js";
|
|
127
129
|
import "../../theme-provider.js";
|
|
130
|
+
import "../../time-to-liquidation/time-to-liquidation.js";
|
|
128
131
|
import "../../tip-card/tip-card.js";
|
|
129
132
|
import "../../typography/typography.js";
|
|
130
133
|
import "../../vertical-indicator/vertical-indicator.js";
|
|
@@ -4,6 +4,7 @@ import * as d from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as u } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "luxon";
|
|
7
8
|
const f = x("", {
|
|
8
9
|
variants: {
|
|
9
10
|
color: {
|
|
@@ -45,11 +46,11 @@ const f = x("", {
|
|
|
45
46
|
as: s = "span",
|
|
46
47
|
textTransform: i,
|
|
47
48
|
style: a,
|
|
48
|
-
...
|
|
49
|
-
},
|
|
49
|
+
...m
|
|
50
|
+
}, n) => /* @__PURE__ */ l(
|
|
50
51
|
s,
|
|
51
52
|
{
|
|
52
|
-
ref:
|
|
53
|
+
ref: n,
|
|
53
54
|
className: u(
|
|
54
55
|
f({
|
|
55
56
|
color: e,
|
|
@@ -62,7 +63,7 @@ const f = x("", {
|
|
|
62
63
|
textTransform: i,
|
|
63
64
|
...a
|
|
64
65
|
},
|
|
65
|
-
...
|
|
66
|
+
...m
|
|
66
67
|
}
|
|
67
68
|
)
|
|
68
69
|
);
|
|
@@ -7,6 +7,7 @@ import "@gearbox-protocol/sdk";
|
|
|
7
7
|
import { parseInputToBN as j } from "../../utils/parse-input-to-bn.js";
|
|
8
8
|
import { cn as k } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
+
import "luxon";
|
|
10
11
|
import "../accordion/accordion.js";
|
|
11
12
|
import "@gearbox-protocol/static";
|
|
12
13
|
import "@fortawesome/free-solid-svg-icons";
|
|
@@ -113,6 +114,7 @@ import "../rounded-image/rounded-image.js";
|
|
|
113
114
|
import "../search-bar/search-bar.js";
|
|
114
115
|
import "../segmented-control/segmented-control.js";
|
|
115
116
|
import "../select/select.js";
|
|
117
|
+
import "../separate-line/separate-line.js";
|
|
116
118
|
import "../separator/separator.js";
|
|
117
119
|
import "../slider/slider.js";
|
|
118
120
|
import { BalanceIndicator as P } from "../smart-number-input/balance-indicator.js";
|
|
@@ -128,12 +130,13 @@ import "../table/table.js";
|
|
|
128
130
|
import "../table/grid-table-loader.js";
|
|
129
131
|
import "../textarea/textarea.js";
|
|
130
132
|
import "../theme-provider.js";
|
|
133
|
+
import "../time-to-liquidation/time-to-liquidation.js";
|
|
131
134
|
import "../tip-card/tip-card.js";
|
|
132
135
|
import "../typography/typography.js";
|
|
133
136
|
import "../vertical-indicator/vertical-indicator.js";
|
|
134
137
|
import "../vertical-list/vertical-list.js";
|
|
135
138
|
import "../with-filter-button/with-filter-button.js";
|
|
136
|
-
function
|
|
139
|
+
function si({
|
|
137
140
|
titleProps: s,
|
|
138
141
|
inputProps: a,
|
|
139
142
|
balanceIndicatorProps: c
|
|
@@ -195,5 +198,5 @@ function ei({
|
|
|
195
198
|
);
|
|
196
199
|
}
|
|
197
200
|
export {
|
|
198
|
-
|
|
201
|
+
si as ComplexInput
|
|
199
202
|
};
|
|
@@ -11,10 +11,11 @@ import { cn as f } from "../../utils/cn.js";
|
|
|
11
11
|
import "sonner";
|
|
12
12
|
import { formatPercentAmount as r } from "../../utils/format-money.js";
|
|
13
13
|
import { getStatic as C } from "../../utils/static.js";
|
|
14
|
+
import "luxon";
|
|
14
15
|
function v(s) {
|
|
15
16
|
return s === "GEAR" ? { icon: C("/logo/logo_symbol.png") } : s;
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function J({
|
|
18
19
|
totalAPY: s,
|
|
19
20
|
totalAPYLoading: T,
|
|
20
21
|
baseAPY: h,
|
|
@@ -22,7 +23,7 @@ function H({
|
|
|
22
23
|
externalAPY: l,
|
|
23
24
|
tokensList: g,
|
|
24
25
|
decimals: a = 2,
|
|
25
|
-
className:
|
|
26
|
+
className: p
|
|
26
27
|
}) {
|
|
27
28
|
const o = u.useMemo(() => {
|
|
28
29
|
if (l)
|
|
@@ -30,7 +31,7 @@ function H({
|
|
|
30
31
|
...l,
|
|
31
32
|
value: l.value ?? l.apy ?? 0
|
|
32
33
|
};
|
|
33
|
-
}, [l]),
|
|
34
|
+
}, [l]), c = u.useMemo(() => y.filter((n) => (n.apy || 0) > 0), [y]), x = c.length > 0, d = o && o.totalValue > 0 && o.totalValue !== s, k = x || d || h.length > 1, I = u.useMemo(() => `${[
|
|
34
35
|
r(s, a),
|
|
35
36
|
...d ? [r(o.totalValue, a)] : []
|
|
36
37
|
].join("-")}%`, [s, d, o, a]);
|
|
@@ -40,12 +41,12 @@ function H({
|
|
|
40
41
|
{
|
|
41
42
|
className: f(
|
|
42
43
|
"font-medium animate-pulse bg-muted rounded w-16 h-4",
|
|
43
|
-
|
|
44
|
+
p
|
|
44
45
|
)
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
48
|
if (!k)
|
|
48
|
-
return /* @__PURE__ */ t("div", { className: f("font-medium",
|
|
49
|
+
return /* @__PURE__ */ t("div", { className: f("font-medium", p), children: [
|
|
49
50
|
r(s, a),
|
|
50
51
|
"%"
|
|
51
52
|
] });
|
|
@@ -63,7 +64,7 @@ function H({
|
|
|
63
64
|
{
|
|
64
65
|
className: f(
|
|
65
66
|
"inline-flex items-center gap-1.5 font-medium cursor-help",
|
|
66
|
-
|
|
67
|
+
p
|
|
67
68
|
),
|
|
68
69
|
children: [
|
|
69
70
|
I,
|
|
@@ -71,7 +72,7 @@ function H({
|
|
|
71
72
|
]
|
|
72
73
|
}
|
|
73
74
|
),
|
|
74
|
-
x && /* @__PURE__ */ e("div", { className: "flex gap-1 mt-1 justify-end", children:
|
|
75
|
+
x && /* @__PURE__ */ e("div", { className: "flex gap-1 mt-1 justify-end", children: c.map((n) => {
|
|
75
76
|
const m = g?.[n.rewardToken]?.symbol || n.rewardTokenSymbol;
|
|
76
77
|
return /* @__PURE__ */ e(
|
|
77
78
|
b,
|
|
@@ -109,7 +110,7 @@ function H({
|
|
|
109
110
|
},
|
|
110
111
|
`base-${n.type}-${n.apy}`
|
|
111
112
|
)),
|
|
112
|
-
|
|
113
|
+
c.map((n) => {
|
|
113
114
|
const m = g?.[n.rewardToken]?.symbol || n.rewardTokenSymbol;
|
|
114
115
|
return /* @__PURE__ */ t(
|
|
115
116
|
"div",
|
|
@@ -177,5 +178,5 @@ function H({
|
|
|
177
178
|
] }) });
|
|
178
179
|
}
|
|
179
180
|
export {
|
|
180
|
-
|
|
181
|
+
J as CompoundAPY
|
|
181
182
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { IconButton as m } from "../icon-button/icon-button.js";
|
|
3
3
|
import { faXmark as n } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import { FaIcon as s } from "../icons/fa-icon.js";
|
|
@@ -6,21 +6,22 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as l } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
-
|
|
9
|
+
import "luxon";
|
|
10
|
+
function N({ title: r, onClose: e, className: i }) {
|
|
10
11
|
return /* @__PURE__ */ t(
|
|
11
12
|
"div",
|
|
12
13
|
{
|
|
13
14
|
className: l("flex items-center justify-between w-full mb-4", i),
|
|
14
15
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ o("div", { className: "flex-1", children: /* @__PURE__ */ o("h2", { className: "text-lg font-semibold text-foreground", children: r }) }),
|
|
17
|
+
/* @__PURE__ */ o(
|
|
17
18
|
m,
|
|
18
19
|
{
|
|
19
20
|
variant: "ghost",
|
|
20
21
|
size: "sm",
|
|
21
|
-
onClick:
|
|
22
|
+
onClick: e,
|
|
22
23
|
"aria-label": "Close",
|
|
23
|
-
children: /* @__PURE__ */
|
|
24
|
+
children: /* @__PURE__ */ o(s, { icon: n, className: "size-5" })
|
|
24
25
|
}
|
|
25
26
|
)
|
|
26
27
|
]
|
|
@@ -28,5 +29,5 @@ function b({ title: o, onClose: r, className: i }) {
|
|
|
28
29
|
);
|
|
29
30
|
}
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
N as ConfirmMenu
|
|
32
33
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as r } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "luxon";
|
|
6
7
|
const o = {
|
|
7
8
|
active: "bg-green-500",
|
|
8
9
|
closed: "bg-gray-500",
|
|
@@ -11,18 +12,18 @@ const o = {
|
|
|
11
12
|
liquidateExpired: "bg-red-500",
|
|
12
13
|
liquidatePaused: "bg-red-500"
|
|
13
14
|
};
|
|
14
|
-
function
|
|
15
|
+
function u({
|
|
15
16
|
status: e,
|
|
16
|
-
className:
|
|
17
|
+
className: i
|
|
17
18
|
}) {
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ d(
|
|
19
20
|
"div",
|
|
20
21
|
{
|
|
21
22
|
className: r(
|
|
22
23
|
"inline-flex items-center gap-1.5 px-3 py-1.5",
|
|
23
24
|
"text-xs font-medium uppercase tracking-wider",
|
|
24
25
|
"bg-muted border border-border rounded-md",
|
|
25
|
-
|
|
26
|
+
i
|
|
26
27
|
),
|
|
27
28
|
children: [
|
|
28
29
|
/* @__PURE__ */ t("div", { className: r("w-2 h-2 rounded-full", o[e]) }),
|
|
@@ -32,5 +33,5 @@ function g({
|
|
|
32
33
|
);
|
|
33
34
|
}
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
u as CreditSessionStatus
|
|
36
37
|
};
|
|
@@ -6,6 +6,7 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as x } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "luxon";
|
|
9
10
|
const w = 13, N = u(
|
|
10
11
|
"flex flex-row items-center text-foreground cursor-[unset]",
|
|
11
12
|
{
|
|
@@ -37,7 +38,7 @@ const w = 13, N = u(
|
|
|
37
38
|
defaultVariants: { size: "md", active: !1 }
|
|
38
39
|
}
|
|
39
40
|
);
|
|
40
|
-
function
|
|
41
|
+
function T({
|
|
41
42
|
title: n,
|
|
42
43
|
maxLength: l = w,
|
|
43
44
|
token: m,
|
|
@@ -102,5 +103,5 @@ function M({
|
|
|
102
103
|
);
|
|
103
104
|
}
|
|
104
105
|
export {
|
|
105
|
-
|
|
106
|
+
T as CurrencyButton
|
|
106
107
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as m from "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as a } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
+
import "luxon";
|
|
6
7
|
import { Typography as c } from "../typography/typography.js";
|
|
7
|
-
const e =
|
|
8
|
+
const e = m.forwardRef(
|
|
8
9
|
({ className: r, as: o = "div", ...i }, t) => /* @__PURE__ */ p(
|
|
9
10
|
c,
|
|
10
11
|
{
|
|
11
12
|
ref: t,
|
|
12
|
-
className:
|
|
13
|
+
className: a(r),
|
|
13
14
|
variant: "caption",
|
|
14
15
|
color: "secondary",
|
|
15
16
|
as: o,
|
|
@@ -4,10 +4,11 @@ import "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as c } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "luxon";
|
|
7
8
|
import "../tooltip/simple-tooltip.js";
|
|
8
9
|
import { TooltipProvider as x, Tooltip as N, TooltipTrigger as g, TooltipContent as b } from "../tooltip/tooltip.js";
|
|
9
|
-
function
|
|
10
|
-
totalAPY:
|
|
10
|
+
function D({
|
|
11
|
+
totalAPY: t,
|
|
11
12
|
totalAPYLoading: p,
|
|
12
13
|
baseAPY: l,
|
|
13
14
|
extraAPY: a,
|
|
@@ -18,13 +19,13 @@ function C({
|
|
|
18
19
|
const h = l && l.length > 0 || a && a.length > 0;
|
|
19
20
|
if (p)
|
|
20
21
|
return /* @__PURE__ */ n(y, { className: c("h-4 w-12", o) });
|
|
21
|
-
const s = m ?? /* @__PURE__ */ n("span", { className: c("tabular-nums", o), children:
|
|
22
|
+
const s = m ?? /* @__PURE__ */ n("span", { className: c("tabular-nums", o), children: t !== void 0 ? `${t.toFixed(2)}%` : "N/A" });
|
|
22
23
|
return h ? /* @__PURE__ */ n(x, { children: /* @__PURE__ */ r(N, { children: [
|
|
23
24
|
/* @__PURE__ */ n(g, { asChild: !0, children: /* @__PURE__ */ n("span", { className: "cursor-help underline decoration-dotted underline-offset-2", children: s }) }),
|
|
24
25
|
/* @__PURE__ */ n(b, { className: "max-w-xs", children: /* @__PURE__ */ r("div", { className: "space-y-2 text-sm", children: [
|
|
25
26
|
l && l.length > 0 && /* @__PURE__ */ r("div", { children: [
|
|
26
27
|
/* @__PURE__ */ n("div", { className: "font-medium text-muted-foreground mb-1", children: "Base APY" }),
|
|
27
|
-
l.map((e,
|
|
28
|
+
l.map((e, d) => /* @__PURE__ */ r(
|
|
28
29
|
"div",
|
|
29
30
|
{
|
|
30
31
|
className: "flex justify-between gap-4",
|
|
@@ -36,12 +37,12 @@ function C({
|
|
|
36
37
|
] })
|
|
37
38
|
]
|
|
38
39
|
},
|
|
39
|
-
`base-${e.type ||
|
|
40
|
+
`base-${e.type || d}-${e.apy}`
|
|
40
41
|
))
|
|
41
42
|
] }),
|
|
42
43
|
a && a.length > 0 && /* @__PURE__ */ r("div", { children: [
|
|
43
44
|
/* @__PURE__ */ n("div", { className: "font-medium text-muted-foreground mb-1", children: "Extra Rewards" }),
|
|
44
|
-
a.map((e,
|
|
45
|
+
a.map((e, d) => {
|
|
45
46
|
const u = e.token && i ? i[e.token]?.symbol : e.token;
|
|
46
47
|
return /* @__PURE__ */ r(
|
|
47
48
|
"div",
|
|
@@ -55,14 +56,14 @@ function C({
|
|
|
55
56
|
] })
|
|
56
57
|
]
|
|
57
58
|
},
|
|
58
|
-
`extra-${e.token ||
|
|
59
|
+
`extra-${e.token || d}-${e.apy}`
|
|
59
60
|
);
|
|
60
61
|
})
|
|
61
62
|
] }),
|
|
62
|
-
|
|
63
|
+
t !== void 0 && /* @__PURE__ */ r("div", { className: "border-t pt-2 flex justify-between gap-4 font-medium", children: [
|
|
63
64
|
/* @__PURE__ */ n("span", { children: "Total" }),
|
|
64
65
|
/* @__PURE__ */ r("span", { className: "tabular-nums", children: [
|
|
65
|
-
|
|
66
|
+
t.toFixed(2),
|
|
66
67
|
"%"
|
|
67
68
|
] })
|
|
68
69
|
] })
|
|
@@ -70,5 +71,5 @@ function C({
|
|
|
70
71
|
] }) }) : /* @__PURE__ */ n(f, { children: s });
|
|
71
72
|
}
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
D as DetailedApy
|
|
74
75
|
};
|
|
@@ -19,7 +19,8 @@ import { TokenIcon as b } from "../token-icon/token-icon.js";
|
|
|
19
19
|
import "@gearbox-protocol/sdk";
|
|
20
20
|
import { cn as s } from "../../utils/cn.js";
|
|
21
21
|
import "sonner";
|
|
22
|
-
|
|
22
|
+
import "luxon";
|
|
23
|
+
function Q({
|
|
23
24
|
title: f,
|
|
24
25
|
token: c,
|
|
25
26
|
toCopy: i,
|
|
@@ -96,5 +97,5 @@ function O({
|
|
|
96
97
|
);
|
|
97
98
|
}
|
|
98
99
|
export {
|
|
99
|
-
|
|
100
|
+
Q as DetailedPageTitle
|
|
100
101
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "@radix-ui/react-dialog";
|
|
3
|
-
import * as
|
|
3
|
+
import * as d from "react";
|
|
4
4
|
import { faXmark as n } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
import { FaIcon as l } from "../icons/fa-icon.js";
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as m } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "luxon";
|
|
9
10
|
import { DialogPortal as p } from "./dialog.js";
|
|
10
11
|
import { DialogOverlay as c } from "./dialog-overlay.js";
|
|
11
|
-
const f =
|
|
12
|
+
const f = d.forwardRef(({ className: e, children: r, ...s }, i) => /* @__PURE__ */ t(p, { children: [
|
|
12
13
|
/* @__PURE__ */ o(c, {}),
|
|
13
14
|
/* @__PURE__ */ t(
|
|
14
15
|
a.Content,
|
|
15
16
|
{
|
|
16
|
-
ref:
|
|
17
|
+
ref: i,
|
|
17
18
|
className: m(
|
|
18
19
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-card p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[-10%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[-10%] rounded-lg",
|
|
19
20
|
e
|
|
@@ -2,17 +2,18 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "@radix-ui/react-dialog";
|
|
3
3
|
import * as e from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as p } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
-
|
|
7
|
+
import "luxon";
|
|
8
|
+
const a = e.forwardRef(({ className: i, ...r }, t) => /* @__PURE__ */ m(
|
|
8
9
|
o.Description,
|
|
9
10
|
{
|
|
10
11
|
ref: t,
|
|
11
|
-
className:
|
|
12
|
+
className: p("text-sm text-muted-foreground", i),
|
|
12
13
|
...r
|
|
13
14
|
}
|
|
14
15
|
));
|
|
15
|
-
|
|
16
|
+
a.displayName = o.Description.displayName;
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
a as DialogDescription
|
|
18
19
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as m } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
|
|
6
|
+
import "luxon";
|
|
7
|
+
const i = ({
|
|
7
8
|
className: o,
|
|
8
|
-
...
|
|
9
|
-
}) => /* @__PURE__ */
|
|
9
|
+
...r
|
|
10
|
+
}) => /* @__PURE__ */ e(
|
|
10
11
|
"div",
|
|
11
12
|
{
|
|
12
13
|
className: m(
|
|
13
14
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
14
15
|
o
|
|
15
16
|
),
|
|
16
|
-
...
|
|
17
|
+
...r
|
|
17
18
|
}
|
|
18
19
|
);
|
|
19
|
-
|
|
20
|
+
i.displayName = "DialogFooter";
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
i as DialogFooter
|
|
22
23
|
};
|
|
@@ -4,12 +4,13 @@ import "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as b } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "luxon";
|
|
7
8
|
import { Dialog as g } from "./dialog.js";
|
|
8
9
|
import { DialogContent as v } from "./dialog-content.js";
|
|
9
10
|
import { DialogFooter as D } from "./dialog-footer.js";
|
|
10
11
|
import { DialogHeader as w } from "./dialog-header.js";
|
|
11
12
|
import { DialogTitle as N } from "./dialog-title.js";
|
|
12
|
-
function
|
|
13
|
+
function G({
|
|
13
14
|
title: c,
|
|
14
15
|
isFormValid: s,
|
|
15
16
|
isLoading: l,
|
|
@@ -60,5 +61,5 @@ function E({
|
|
|
60
61
|
) });
|
|
61
62
|
}
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
G as DialogForm
|
|
64
65
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cva as f } from "class-variance-authority";
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as w } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "luxon";
|
|
7
8
|
import { Modal as g } from "../modal/modal.js";
|
|
8
9
|
import { DialogContainer as h } from "./dialog-container.js";
|
|
9
10
|
const u = f("", {
|
|
@@ -17,15 +18,15 @@ const u = f("", {
|
|
|
17
18
|
defaultVariants: {
|
|
18
19
|
width: "default"
|
|
19
20
|
}
|
|
20
|
-
}), x = c.forwardRef(({ show:
|
|
21
|
+
}), x = c.forwardRef(({ show: a, onClickOutside: r, modal: i, dialog: t, children: l }, m) => {
|
|
21
22
|
const {
|
|
22
23
|
className: d,
|
|
23
24
|
colorTheme: e = "modal",
|
|
24
25
|
padding: n = "xl",
|
|
25
26
|
width: s,
|
|
26
27
|
...p
|
|
27
|
-
} =
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
} = t || {};
|
|
29
|
+
return /* @__PURE__ */ o(g, { ...i, show: a, onClickOutside: r, children: /* @__PURE__ */ o(
|
|
29
30
|
h,
|
|
30
31
|
{
|
|
31
32
|
ref: m,
|
|
@@ -37,7 +38,7 @@ const u = f("", {
|
|
|
37
38
|
colorTheme: e,
|
|
38
39
|
padding: n,
|
|
39
40
|
...p,
|
|
40
|
-
children:
|
|
41
|
+
children: l
|
|
41
42
|
}
|
|
42
43
|
) });
|
|
43
44
|
});
|
|
@@ -5,12 +5,13 @@ import "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as e } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
|
|
8
|
+
import "luxon";
|
|
9
|
+
function N({
|
|
9
10
|
children: n,
|
|
10
|
-
label:
|
|
11
|
-
opened:
|
|
11
|
+
label: i,
|
|
12
|
+
opened: m,
|
|
12
13
|
size: t,
|
|
13
|
-
as:
|
|
14
|
+
as: a = "span",
|
|
14
15
|
onClick: o,
|
|
15
16
|
icon: s,
|
|
16
17
|
iconSize: p = 16,
|
|
@@ -18,7 +19,7 @@ function E({
|
|
|
18
19
|
}) {
|
|
19
20
|
const r = typeof t == "string" ? t === "sm" ? 14 : t === "default" ? 16 : t === "lg" ? 18 : 16 : t;
|
|
20
21
|
return /* @__PURE__ */ f(
|
|
21
|
-
|
|
22
|
+
a,
|
|
22
23
|
{
|
|
23
24
|
onClick: o,
|
|
24
25
|
className: e(
|
|
@@ -28,13 +29,13 @@ function E({
|
|
|
28
29
|
),
|
|
29
30
|
style: r ? { fontSize: r } : void 0,
|
|
30
31
|
children: [
|
|
31
|
-
|
|
32
|
+
i || n,
|
|
32
33
|
s ?? /* @__PURE__ */ c(
|
|
33
34
|
y,
|
|
34
35
|
{
|
|
35
36
|
icon: u,
|
|
36
37
|
style: { fontSize: p },
|
|
37
|
-
className: e("transition-transform",
|
|
38
|
+
className: e("transition-transform", m && "rotate-180")
|
|
38
39
|
}
|
|
39
40
|
)
|
|
40
41
|
]
|
|
@@ -42,5 +43,5 @@ function E({
|
|
|
42
43
|
);
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
N as DefaultDropdownLabel
|
|
46
47
|
};
|