@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
|
@@ -5,23 +5,24 @@ import { useMemo as v } from "react";
|
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as x } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
|
|
8
|
+
import "luxon";
|
|
9
|
+
function A(e) {
|
|
9
10
|
return {
|
|
10
|
-
start:
|
|
11
|
-
end:
|
|
11
|
+
start: e.start ?? e.from ?? 0,
|
|
12
|
+
end: e.end ?? e.to ?? 0
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
|
-
function E(
|
|
15
|
+
function E(e, a) {
|
|
15
16
|
if (a)
|
|
16
17
|
for (const o of a) {
|
|
17
18
|
const { start: c, end: f } = A(o);
|
|
18
|
-
if (
|
|
19
|
+
if (e >= c && e <= f)
|
|
19
20
|
return o.color;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
const G = D.forwardRef(
|
|
23
24
|
({
|
|
24
|
-
className:
|
|
25
|
+
className: e,
|
|
25
26
|
variant: a = "default",
|
|
26
27
|
// New API
|
|
27
28
|
value: o,
|
|
@@ -42,19 +43,19 @@ const G = D.forwardRef(
|
|
|
42
43
|
const n = f ?? M ?? 0, s = k ?? V ?? 100, N = Array.isArray(u) ? u[0] : u, B = R ?? (N ? 10 ** -N : 1), m = v(() => {
|
|
43
44
|
if (Array.isArray(o)) return o;
|
|
44
45
|
if (typeof o == "number") return [o];
|
|
45
|
-
}, [o]), F = (
|
|
46
|
-
c?.(
|
|
47
|
-
}, K = (
|
|
48
|
-
w &&
|
|
46
|
+
}, [o]), F = (r) => {
|
|
47
|
+
c?.(r), y && r.length > 0 && y(r[0]);
|
|
48
|
+
}, K = (r) => {
|
|
49
|
+
w && r.length > 0 && w(r[0]);
|
|
49
50
|
}, P = m?.[0] ?? 0, S = E(P, p), C = (m ?? [0]).length, _ = v(
|
|
50
|
-
() => Array.from({ length: C }, (
|
|
51
|
+
() => Array.from({ length: C }, (r, t) => `thumb-${t}`),
|
|
51
52
|
[C]
|
|
52
53
|
), h = v(() => {
|
|
53
54
|
if (!d) return;
|
|
54
|
-
const
|
|
55
|
+
const r = [];
|
|
55
56
|
for (let t = n; t <= s; t += d)
|
|
56
|
-
|
|
57
|
-
return
|
|
57
|
+
r.push(t);
|
|
58
|
+
return r;
|
|
58
59
|
}, [n, s, d]);
|
|
59
60
|
return /* @__PURE__ */ g("div", { className: "relative w-full", children: [
|
|
60
61
|
/* @__PURE__ */ g(
|
|
@@ -63,7 +64,7 @@ const G = D.forwardRef(
|
|
|
63
64
|
ref: T,
|
|
64
65
|
className: x(
|
|
65
66
|
"relative flex w-full touch-none select-none items-center",
|
|
66
|
-
|
|
67
|
+
e
|
|
67
68
|
),
|
|
68
69
|
min: n,
|
|
69
70
|
max: s,
|
|
@@ -74,8 +75,8 @@ const G = D.forwardRef(
|
|
|
74
75
|
...j,
|
|
75
76
|
children: [
|
|
76
77
|
/* @__PURE__ */ g(l.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: [
|
|
77
|
-
p?.map((
|
|
78
|
-
const { start: b, end: $ } = A(
|
|
78
|
+
p?.map((r, t) => {
|
|
79
|
+
const { start: b, end: $ } = A(r), q = (b - n) / (s - n) * 100, z = ($ - b) / (s - n) * 100;
|
|
79
80
|
return /* @__PURE__ */ i(
|
|
80
81
|
"div",
|
|
81
82
|
{
|
|
@@ -83,7 +84,7 @@ const G = D.forwardRef(
|
|
|
83
84
|
style: {
|
|
84
85
|
left: `${q}%`,
|
|
85
86
|
width: `${z}%`,
|
|
86
|
-
backgroundColor:
|
|
87
|
+
backgroundColor: r.color ?? "var(--primary)",
|
|
87
88
|
opacity: 0.3
|
|
88
89
|
}
|
|
89
90
|
},
|
|
@@ -100,25 +101,25 @@ const G = D.forwardRef(
|
|
|
100
101
|
}
|
|
101
102
|
)
|
|
102
103
|
] }),
|
|
103
|
-
_.map((
|
|
104
|
+
_.map((r) => /* @__PURE__ */ i(
|
|
104
105
|
l.Thumb,
|
|
105
106
|
{
|
|
106
107
|
className: "block h-5 w-5 rounded-full border-2 border-primary bg-background shadow-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-grab active:cursor-grabbing hover:bg-accent"
|
|
107
108
|
},
|
|
108
|
-
|
|
109
|
+
r
|
|
109
110
|
))
|
|
110
111
|
]
|
|
111
112
|
}
|
|
112
113
|
),
|
|
113
|
-
h && h.length > 0 && /* @__PURE__ */ i("div", { className: "relative w-full h-2 mt-1", children: h.map((
|
|
114
|
-
const t = (
|
|
114
|
+
h && h.length > 0 && /* @__PURE__ */ i("div", { className: "relative w-full h-2 mt-1", children: h.map((r) => {
|
|
115
|
+
const t = (r - n) / (s - n) * 100;
|
|
115
116
|
return /* @__PURE__ */ i(
|
|
116
117
|
"div",
|
|
117
118
|
{
|
|
118
119
|
className: "absolute w-0.5 h-1 bg-muted-foreground/50",
|
|
119
120
|
style: { left: `${t}%` }
|
|
120
121
|
},
|
|
121
|
-
`mark-${
|
|
122
|
+
`mark-${r}`
|
|
122
123
|
);
|
|
123
124
|
}) })
|
|
124
125
|
] });
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Slider as b } from "../slider/slider.js";
|
|
3
3
|
import { TokenSymbol as v } from "../token-symbol/token-symbol.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@gearbox-protocol/sdk";
|
|
6
6
|
import { cn as N } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
|
-
|
|
8
|
+
import "luxon";
|
|
9
|
+
function F({
|
|
9
10
|
from: s = 0,
|
|
10
11
|
to: r = 100,
|
|
11
|
-
value:
|
|
12
|
+
value: l = 0,
|
|
12
13
|
token: c,
|
|
13
14
|
step: p = 1,
|
|
14
15
|
setValue: h,
|
|
@@ -30,11 +31,11 @@ function z({
|
|
|
30
31
|
}
|
|
31
32
|
h?.(n);
|
|
32
33
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
c && /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ m("div", { className: N("space-y-2", u), children: [
|
|
35
|
+
c && /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
|
|
35
36
|
/* @__PURE__ */ o(v, { token: c, size: 20, showSymbol: !0 }),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
37
|
+
/* @__PURE__ */ m("span", { className: "text-sm text-muted-foreground", children: [
|
|
38
|
+
l.toFixed(2),
|
|
38
39
|
"%"
|
|
39
40
|
] })
|
|
40
41
|
] }),
|
|
@@ -44,7 +45,7 @@ function z({
|
|
|
44
45
|
min: s,
|
|
45
46
|
max: r,
|
|
46
47
|
step: p,
|
|
47
|
-
value: [
|
|
48
|
+
value: [l],
|
|
48
49
|
onValueChange: d
|
|
49
50
|
}
|
|
50
51
|
),
|
|
@@ -64,5 +65,5 @@ function z({
|
|
|
64
65
|
] });
|
|
65
66
|
}
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
F as SliderToken
|
|
68
69
|
};
|
|
@@ -6,6 +6,7 @@ import "react";
|
|
|
6
6
|
import "@gearbox-protocol/sdk";
|
|
7
7
|
import { cn as a } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
|
+
import "luxon";
|
|
9
10
|
const b = x("font-normal leading-[130%] text-foreground", {
|
|
10
11
|
variants: {
|
|
11
12
|
size: {
|
|
@@ -15,7 +16,7 @@ const b = x("font-normal leading-[130%] text-foreground", {
|
|
|
15
16
|
},
|
|
16
17
|
defaultVariants: { size: "md" }
|
|
17
18
|
});
|
|
18
|
-
function
|
|
19
|
+
function w({
|
|
19
20
|
title: m = "Balance",
|
|
20
21
|
className: i,
|
|
21
22
|
maxAmount: l,
|
|
@@ -56,5 +57,5 @@ function j({
|
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
w as BalanceIndicator
|
|
60
61
|
};
|
|
@@ -10,6 +10,7 @@ import "@gearbox-protocol/sdk";
|
|
|
10
10
|
import { parseInputToBN as Q } from "../../utils/parse-input-to-bn.js";
|
|
11
11
|
import { cn as x } from "../../utils/cn.js";
|
|
12
12
|
import "sonner";
|
|
13
|
+
import "luxon";
|
|
13
14
|
import { BalanceIndicator as U } from "./balance-indicator.js";
|
|
14
15
|
const W = u(
|
|
15
16
|
"relative w-full text-foreground bg-gray-20 border border-gray-30 transition-[background-color] duration-100 ease-linear [&:hover]:bg-gray-30 [&:hover]:border-gray-40 data-[active=true]:bg-gray-30 data-[active=true]:outline data-[active=true]:outline-2 data-[active=true]:outline-primary data-[active=true]:outline-offset-[-2px] data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[disabled=true]:cursor-not-allowed",
|
|
@@ -4,6 +4,7 @@ import * as t from "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as m } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "luxon";
|
|
7
8
|
const u = c(
|
|
8
9
|
[
|
|
9
10
|
/* layout */
|
|
@@ -23,7 +24,7 @@ const u = c(
|
|
|
23
24
|
defaultVariants: { colSize: "equal" }
|
|
24
25
|
}
|
|
25
26
|
), b = t.forwardRef(
|
|
26
|
-
({ children: i, colSize:
|
|
27
|
+
({ children: i, colSize: e = !0, className: l }, s) => {
|
|
27
28
|
const n = t.Children.toArray(i).filter(Boolean);
|
|
28
29
|
return /* @__PURE__ */ a(
|
|
29
30
|
"div",
|
|
@@ -34,15 +35,15 @@ const u = c(
|
|
|
34
35
|
"items-stretch",
|
|
35
36
|
l
|
|
36
37
|
),
|
|
37
|
-
children: n.map((
|
|
38
|
-
const f = typeof
|
|
38
|
+
children: n.map((r, o) => {
|
|
39
|
+
const f = typeof e == "function" ? e(o) : e, p = t.isValidElement(r) && r.key != null ? r.key : `split-item-${o}`;
|
|
39
40
|
return /* @__PURE__ */ a(
|
|
40
41
|
"div",
|
|
41
42
|
{
|
|
42
43
|
className: u({
|
|
43
44
|
colSize: f === "auto" ? "auto" : "equal"
|
|
44
45
|
}),
|
|
45
|
-
children:
|
|
46
|
+
children: r
|
|
46
47
|
},
|
|
47
48
|
p
|
|
48
49
|
);
|
|
@@ -7,6 +7,7 @@ import { TooltipProvider as B, Tooltip as V, TooltipTrigger as T, TooltipContent
|
|
|
7
7
|
import "@gearbox-protocol/sdk";
|
|
8
8
|
import { cn as a } from "../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
|
+
import "luxon";
|
|
10
11
|
const y = l(
|
|
11
12
|
"w-full h-full rounded-lg border transition-colors",
|
|
12
13
|
{
|
|
@@ -4,6 +4,7 @@ import * as n 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 d = m("rounded-full shrink-0", {
|
|
8
9
|
variants: {
|
|
9
10
|
variant: {
|
|
@@ -28,12 +29,12 @@ const d = m("rounded-full shrink-0", {
|
|
|
28
29
|
size: "sm"
|
|
29
30
|
}
|
|
30
31
|
}), c = n.forwardRef(
|
|
31
|
-
({ className: t, variant:
|
|
32
|
+
({ className: t, variant: r, size: a, pulse: s, ...e }, i) => /* @__PURE__ */ o(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
34
35
|
ref: i,
|
|
35
36
|
className: u(
|
|
36
|
-
d({ variant:
|
|
37
|
+
d({ variant: r, size: a }),
|
|
37
38
|
s && "animate-pulse",
|
|
38
39
|
t
|
|
39
40
|
),
|
|
@@ -4,6 +4,7 @@ import "react";
|
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as o } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "luxon";
|
|
7
8
|
const d = {
|
|
8
9
|
good: "bg-success",
|
|
9
10
|
medium: "bg-warning",
|
|
@@ -11,7 +12,7 @@ const d = {
|
|
|
11
12
|
critical: "bg-destructive",
|
|
12
13
|
liquidation: "bg-liquidation"
|
|
13
14
|
};
|
|
14
|
-
function
|
|
15
|
+
function B({ zone: i, size: t = 8 }) {
|
|
15
16
|
return /* @__PURE__ */ a(
|
|
16
17
|
"div",
|
|
17
18
|
{
|
|
@@ -50,7 +51,7 @@ const l = {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
);
|
|
53
|
-
function
|
|
54
|
+
function q({ zone: i }) {
|
|
54
55
|
const t = l[i], e = m[i], n = Array.from({ length: g }, (s, r) => {
|
|
55
56
|
const c = r < t;
|
|
56
57
|
return {
|
|
@@ -61,6 +62,6 @@ function B({ zone: i }) {
|
|
|
61
62
|
return /* @__PURE__ */ a("div", { className: o("flex flex-wrap gap-0.5 w-2"), "aria-hidden": !0, children: n.map(({ key: s, color: r }) => /* @__PURE__ */ a("div", { className: b({ color: r }) }, s)) });
|
|
62
63
|
}
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
B as HealthDot,
|
|
66
|
+
q as StatusBars
|
|
66
67
|
};
|
|
@@ -3,19 +3,20 @@ import "react";
|
|
|
3
3
|
import "@gearbox-protocol/sdk";
|
|
4
4
|
import { cn as d } from "../../utils/cn.js";
|
|
5
5
|
import "sonner";
|
|
6
|
-
|
|
6
|
+
import "luxon";
|
|
7
|
+
const m = {
|
|
7
8
|
xs: 4,
|
|
8
9
|
sm: 5,
|
|
9
10
|
md: 6,
|
|
10
11
|
lg: 8
|
|
11
12
|
};
|
|
12
|
-
function
|
|
13
|
+
function u({
|
|
13
14
|
isNegative: i,
|
|
14
15
|
$isNegative: o,
|
|
15
16
|
size: t = 5,
|
|
16
17
|
className: n
|
|
17
18
|
}) {
|
|
18
|
-
const e = i ?? o ?? !1, r = typeof t == "string" ?
|
|
19
|
+
const e = i ?? o ?? !1, r = typeof t == "string" ? m[t] || 5 : t, s = r - 1;
|
|
19
20
|
return /* @__PURE__ */ a(
|
|
20
21
|
"div",
|
|
21
22
|
{
|
|
@@ -33,5 +34,5 @@ function x({
|
|
|
33
34
|
);
|
|
34
35
|
}
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
u as StatusTriangle
|
|
37
38
|
};
|
|
@@ -13,13 +13,14 @@ import "react";
|
|
|
13
13
|
import "@gearbox-protocol/sdk";
|
|
14
14
|
import { cn as c } from "../../utils/cn.js";
|
|
15
15
|
import "sonner";
|
|
16
|
-
|
|
16
|
+
import "luxon";
|
|
17
|
+
function V({
|
|
17
18
|
children: g,
|
|
18
19
|
open: u,
|
|
19
20
|
onOpenChange: h,
|
|
20
21
|
trigger: b,
|
|
21
22
|
label: y,
|
|
22
|
-
items:
|
|
23
|
+
items: a,
|
|
23
24
|
onSelect: f,
|
|
24
25
|
theme: x = "default",
|
|
25
26
|
size: w = "md",
|
|
@@ -31,7 +32,7 @@ function U({
|
|
|
31
32
|
triggerClassName: C,
|
|
32
33
|
onClickAnalytics: M
|
|
33
34
|
}) {
|
|
34
|
-
const
|
|
35
|
+
const p = b || y, s = {
|
|
35
36
|
xs: "text-xs px-1.5 py-0.5",
|
|
36
37
|
sm: "text-sm px-2 py-1",
|
|
37
38
|
md: "text-sm px-3 py-1.5",
|
|
@@ -47,7 +48,7 @@ function U({
|
|
|
47
48
|
if (N) {
|
|
48
49
|
const { icon: r } = t;
|
|
49
50
|
if (!r) return null;
|
|
50
|
-
const [o, n, , ,
|
|
51
|
+
const [o, n, , , i] = r;
|
|
51
52
|
return /* @__PURE__ */ e(
|
|
52
53
|
"svg",
|
|
53
54
|
{
|
|
@@ -55,25 +56,25 @@ function U({
|
|
|
55
56
|
className: "inline-block fill-current",
|
|
56
57
|
style: { width: l || 12, height: l || 12 },
|
|
57
58
|
viewBox: `0 0 ${o} ${n}`,
|
|
58
|
-
children: /* @__PURE__ */ e("path", { d: Array.isArray(
|
|
59
|
+
children: /* @__PURE__ */ e("path", { d: Array.isArray(i) ? i[0] : i })
|
|
59
60
|
}
|
|
60
61
|
);
|
|
61
62
|
}
|
|
62
63
|
return t;
|
|
63
64
|
};
|
|
64
65
|
return /* @__PURE__ */ m(I, { open: u, onOpenChange: h, children: [
|
|
65
|
-
|
|
66
|
+
p && /* @__PURE__ */ e($, { asChild: !0, children: /* @__PURE__ */ m(
|
|
66
67
|
"button",
|
|
67
68
|
{
|
|
68
69
|
type: "button",
|
|
69
70
|
className: c(
|
|
70
71
|
"inline-flex items-center gap-1 rounded transition-colors",
|
|
71
|
-
|
|
72
|
+
s[w] || s.md,
|
|
72
73
|
d[x] || d.default,
|
|
73
74
|
C
|
|
74
75
|
),
|
|
75
76
|
children: [
|
|
76
|
-
|
|
77
|
+
p,
|
|
77
78
|
j()
|
|
78
79
|
]
|
|
79
80
|
}
|
|
@@ -84,7 +85,7 @@ function U({
|
|
|
84
85
|
align: v,
|
|
85
86
|
side: D,
|
|
86
87
|
className: c("min-w-[8rem]", k),
|
|
87
|
-
children:
|
|
88
|
+
children: a ? a.map((r, o) => {
|
|
88
89
|
const n = typeof r.value == "string" || typeof r.value == "number" ? r.value : `item-${o}`;
|
|
89
90
|
return /* @__PURE__ */ e(
|
|
90
91
|
B,
|
|
@@ -102,5 +103,5 @@ function U({
|
|
|
102
103
|
] });
|
|
103
104
|
}
|
|
104
105
|
export {
|
|
105
|
-
|
|
106
|
+
V as StyledDropdown
|
|
106
107
|
};
|
|
@@ -4,6 +4,7 @@ import { useLocation as U, useNavigate as N } from "react-router-dom";
|
|
|
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
|
function $(r) {
|
|
8
9
|
if (!r) return null;
|
|
9
10
|
const { width: t = 0, height: o = 0 } = r?.getBoundingClientRect() || {}, i = r?.offsetTop || 0, s = r?.offsetLeft || 0;
|
|
@@ -32,7 +33,7 @@ function L(r, t, o) {
|
|
|
32
33
|
};
|
|
33
34
|
}, [t]), s;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function B({
|
|
36
37
|
tabs: r,
|
|
37
38
|
state: t,
|
|
38
39
|
variant: o = "auto",
|
|
@@ -92,7 +93,7 @@ function q({
|
|
|
92
93
|
}
|
|
93
94
|
) });
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function F({
|
|
96
97
|
icon: r,
|
|
97
98
|
label: t,
|
|
98
99
|
selected: o,
|
|
@@ -124,13 +125,13 @@ function B({
|
|
|
124
125
|
!!s && /* @__PURE__ */ f("div", { className: "ml-1.5", children: /* @__PURE__ */ f("div", { className: "px-2.5 py-0.5 text-[11px] leading-[150%] font-normal bg-muted rounded-[19px]", children: s }) })
|
|
125
126
|
] });
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function I(r, t = 0) {
|
|
128
129
|
const [o, i] = v(r), [s, c] = v(t), d = m((l, e) => {
|
|
129
130
|
i(l), c(e);
|
|
130
131
|
}, []);
|
|
131
132
|
return { id: o, index: s, handleTabChange: d };
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function M(r) {
|
|
134
135
|
const { hash: t } = U(), o = N(), i = w(
|
|
135
136
|
() => r.reduce(
|
|
136
137
|
(e, n, a) => (e[n.id] = { id: n.id, index: a }, e),
|
|
@@ -149,7 +150,7 @@ function I(r) {
|
|
|
149
150
|
handleTabChange: l
|
|
150
151
|
};
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
+
function A({
|
|
153
154
|
defaultTabs: r,
|
|
154
155
|
pathRoot: t,
|
|
155
156
|
selectedSection: o
|
|
@@ -169,9 +170,9 @@ function M({
|
|
|
169
170
|
return { id: d, index: l, handleTabChange: c };
|
|
170
171
|
}
|
|
171
172
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
B as TabControl,
|
|
174
|
+
F as TabItem,
|
|
175
|
+
M as useHashTabs,
|
|
176
|
+
A as useSectionTab,
|
|
177
|
+
I as useTabControl
|
|
177
178
|
};
|
|
@@ -10,8 +10,9 @@ import "react";
|
|
|
10
10
|
import "@gearbox-protocol/sdk";
|
|
11
11
|
import { cn as r } from "../../utils/cn.js";
|
|
12
12
|
import "sonner";
|
|
13
|
+
import "luxon";
|
|
13
14
|
import "../buttons/tab-button/tab-button.js";
|
|
14
|
-
function
|
|
15
|
+
function W({
|
|
15
16
|
onClick: m,
|
|
16
17
|
customButton: p,
|
|
17
18
|
children: e,
|
|
@@ -41,5 +42,5 @@ function P({
|
|
|
41
42
|
) });
|
|
42
43
|
}
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
W as EditButton
|
|
45
46
|
};
|
|
@@ -13,13 +13,14 @@ import "@gearbox-protocol/sdk";
|
|
|
13
13
|
import "clsx";
|
|
14
14
|
import "tailwind-merge";
|
|
15
15
|
import "sonner";
|
|
16
|
+
import "luxon";
|
|
16
17
|
import { TabButton as u } from "../buttons/tab-button/tab-button.js";
|
|
17
18
|
import { SignInRequired as b } from "../auth/signin-required.js";
|
|
18
19
|
import "viem/siwe";
|
|
19
20
|
import { TokenIcon as v } from "../token-icon/token-icon.js";
|
|
20
21
|
import { GridTableCell as h, GridTable as N } from "./grid-table.js";
|
|
21
22
|
import { UpdatedValue as C } from "./updated-value.js";
|
|
22
|
-
function
|
|
23
|
+
function J({
|
|
23
24
|
assetAddress: o,
|
|
24
25
|
symbol: i,
|
|
25
26
|
iconSymbol: s,
|
|
@@ -49,7 +50,7 @@ function H({
|
|
|
49
50
|
] })
|
|
50
51
|
] }) });
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function K({
|
|
53
54
|
oldValue: o,
|
|
54
55
|
newValue: i,
|
|
55
56
|
onEdit: s,
|
|
@@ -81,7 +82,7 @@ function J({
|
|
|
81
82
|
}
|
|
82
83
|
) }) });
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function M({
|
|
85
86
|
title: o,
|
|
86
87
|
onNew: i,
|
|
87
88
|
newButtonText: s = "New",
|
|
@@ -113,7 +114,7 @@ function K({
|
|
|
113
114
|
] });
|
|
114
115
|
}
|
|
115
116
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
J as GridTableCellAsset,
|
|
118
|
+
K as GridTableCellUpdatable,
|
|
119
|
+
M as GridTableEditable
|
|
119
120
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import "connectkit";
|
|
3
3
|
import "wagmi";
|
|
4
4
|
import "../buttons/back-button/back-button.js";
|
|
@@ -12,34 +12,35 @@ import "@gearbox-protocol/sdk";
|
|
|
12
12
|
import "clsx";
|
|
13
13
|
import "tailwind-merge";
|
|
14
14
|
import "sonner";
|
|
15
|
+
import "luxon";
|
|
15
16
|
import { TabButton as f } from "../buttons/tab-button/tab-button.js";
|
|
16
17
|
import { SignInRequired as x } from "../auth/signin-required.js";
|
|
17
18
|
import "viem/siwe";
|
|
18
19
|
import { TokenIcon as b } from "../token-icon/token-icon.js";
|
|
19
20
|
import { TableCell as u, Table as g } from "./table.js";
|
|
20
21
|
import { UpdatedValue as v } from "./updated-value.js";
|
|
21
|
-
function
|
|
22
|
-
assetAddress:
|
|
22
|
+
function G({
|
|
23
|
+
assetAddress: n,
|
|
23
24
|
symbol: t,
|
|
24
25
|
iconSymbol: s,
|
|
25
26
|
comment: l,
|
|
26
27
|
explorerUrl: i
|
|
27
28
|
}) {
|
|
28
|
-
return /* @__PURE__ */ e(u, { children: /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ e(u, { children: /* @__PURE__ */ m("div", { className: "flex items-center gap-3", children: [
|
|
29
30
|
/* @__PURE__ */ e(b, { symbol: s ?? t, size: 24 }),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ m("div", { className: "flex items-center gap-1", children: [
|
|
31
32
|
/* @__PURE__ */ e("div", { className: "font-medium", children: t }),
|
|
32
|
-
l && /* @__PURE__ */
|
|
33
|
+
l && /* @__PURE__ */ m("div", { className: "text-md text-muted-foreground", children: [
|
|
33
34
|
"(",
|
|
34
35
|
l,
|
|
35
36
|
")"
|
|
36
37
|
] }),
|
|
37
|
-
i && /* @__PURE__ */ e(h, { url: `${i}/address/${
|
|
38
|
+
i && /* @__PURE__ */ e(h, { url: `${i}/address/${n}` })
|
|
38
39
|
] })
|
|
39
40
|
] }) });
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
oldValue:
|
|
42
|
+
function H({
|
|
43
|
+
oldValue: n,
|
|
43
44
|
newValue: t,
|
|
44
45
|
onEdit: s,
|
|
45
46
|
isEditable: l = !0,
|
|
@@ -58,7 +59,7 @@ function G({
|
|
|
58
59
|
return /* @__PURE__ */ e(u, { className: i, children: /* @__PURE__ */ e("div", { className: `flex ${p} w-full text-${d}`, children: /* @__PURE__ */ e(
|
|
59
60
|
v,
|
|
60
61
|
{
|
|
61
|
-
oldValue:
|
|
62
|
+
oldValue: n,
|
|
62
63
|
newValue: t,
|
|
63
64
|
onEdit: s,
|
|
64
65
|
isEditable: l,
|
|
@@ -69,8 +70,8 @@ function G({
|
|
|
69
70
|
}
|
|
70
71
|
) }) });
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
title:
|
|
73
|
+
function J({
|
|
74
|
+
title: n,
|
|
74
75
|
onNew: t,
|
|
75
76
|
newButtonText: s = "New",
|
|
76
77
|
buttonLoadingText: l = "Adding...",
|
|
@@ -80,10 +81,10 @@ function H({
|
|
|
80
81
|
disabled: a = !1,
|
|
81
82
|
skipSignIn: c = !0
|
|
82
83
|
}) {
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */ e("h2", { className: "text-2xl font-bold", children:
|
|
86
|
-
/* @__PURE__ */ e(x, { skipSignIn: c, variant: "pink", size: "sm", children: /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ m("div", { className: "space-y-4", children: [
|
|
85
|
+
/* @__PURE__ */ m("div", { className: "flex justify-between items-center", children: [
|
|
86
|
+
/* @__PURE__ */ e("h2", { className: "text-2xl font-bold", children: n }),
|
|
87
|
+
/* @__PURE__ */ e(x, { skipSignIn: c, variant: "pink", size: "sm", children: /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
|
|
87
88
|
t && /* @__PURE__ */ e(f, { onClick: t, disabled: i || a, children: i ? l : s }),
|
|
88
89
|
d?.map((r, p) => /* @__PURE__ */ e(
|
|
89
90
|
f,
|
|
@@ -100,7 +101,7 @@ function H({
|
|
|
100
101
|
] });
|
|
101
102
|
}
|
|
102
103
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
G as TableCellAsset,
|
|
105
|
+
H as TableCellUpdatable,
|
|
106
|
+
J as TableEditable
|
|
106
107
|
};
|