@gearbox-protocol/ui-kit 4.0.0-next.3 → 4.0.0-next.31
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/_virtual/index.cjs +1 -1
- 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 -0
- package/dist/cjs/components/badge/index.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -1
- package/dist/cjs/components/base/apy-breakdown-body/apy-breakdown-body.cjs +1 -0
- package/dist/cjs/components/base/apy-breakdown-body/index.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.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/health-factor-block/health-factor-block.cjs +1 -1
- package/dist/cjs/components/base/history-chart/history-chart.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/leverage-input/leverage-input.cjs +1 -1
- package/dist/cjs/components/base/leverage-preset-chips/constants.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/index.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -0
- package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -1
- package/dist/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/constants.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/page-title/index.cjs +1 -1
- package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/constants.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/constants.cjs +1 -0
- package/dist/cjs/components/base/position-assets/index.cjs +1 -0
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -0
- package/dist/cjs/components/base/review-button/constants.cjs +1 -1
- package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/base/section-heading/section-heading.cjs +1 -1
- package/dist/cjs/components/base/segmented-tabs/segmented-tabs.cjs +1 -1
- package/dist/cjs/components/base/side-card/side-card.cjs +1 -1
- package/dist/cjs/components/base/stack/stack.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/constants.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/constants.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
- package/dist/cjs/components/base/title-meta/constants.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/constants.cjs +1 -1
- package/dist/cjs/components/base/values/index.cjs +1 -1
- package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
- package/dist/cjs/components/base/values/points-value.cjs +1 -0
- package/dist/cjs/components/base/values/position-status-badge.cjs +1 -0
- package/dist/cjs/components/base/values/position-type-badge.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 -0
- package/dist/cjs/components/base-table/base-table.cjs +1 -0
- package/dist/cjs/components/base-table/constants.cjs +1 -0
- package/dist/cjs/components/base-table/index.cjs +1 -0
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/button/button.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/navigation-button/navigation-button.cjs +1 -1
- package/dist/cjs/components/buttons/range-buttons/range-buttons.cjs +1 -1
- package/dist/cjs/components/cards/card/card.cjs +1 -1
- package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-button/styled-button.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-dialog-container/styled-dialog-container.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/constants.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/index.cjs +1 -0
- 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/constants.cjs +1 -0
- package/dist/cjs/components/composites/pool-assets-table/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.cjs +1 -0
- 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/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-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-copy-button.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-description.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-footer.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-form.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-header.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-modal-container.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-overlay.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-title.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-separator.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-shortcut.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +1 -1
- package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
- package/dist/cjs/components/error-message/error-line-message.cjs +1 -1
- package/dist/cjs/components/error-message/error-message.cjs +1 -1
- package/dist/cjs/components/fadeout-loading/fadeout-loading.cjs +1 -1
- package/dist/cjs/components/filter/filter-block.cjs +1 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/filter/filter-chips.cjs +1 -1
- package/dist/cjs/components/filter/filter-dropdown-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-group.cjs +1 -1
- package/dist/cjs/components/filter/filter-label.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-modal.cjs +1 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-separator.cjs +1 -1
- package/dist/cjs/components/formatted-number/formatted-number.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/graph/formatters.cjs +1 -1
- package/dist/cjs/components/graph/graph-current-value.cjs +1 -1
- package/dist/cjs/components/graph/graph-tooltip.cjs +1 -1
- package/dist/cjs/components/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/graph/index.cjs +1 -1
- package/dist/cjs/components/graph/y-axis-scale.cjs +1 -0
- 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/hf-indicator/hf-indicator.cjs +1 -0
- package/dist/cjs/components/hf-indicator/index.cjs +1 -0
- 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/infinite-scroll/index.cjs +1 -0
- package/dist/cjs/components/infinite-scroll/infinite-scroll-wrapper.cjs +1 -0
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/components/label/label.cjs +1 -1
- package/dist/cjs/components/layout/app-footer/app-footer.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/name-cell/index.cjs +1 -0
- package/dist/cjs/components/name-cell/name-cell.cjs +1 -0
- 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/network-icon/network-indicator.cjs +1 -0
- package/dist/cjs/components/pool-points-indicator/pool-points-indicator.cjs +1 -1
- package/dist/cjs/components/radio-group/index.cjs +1 -0
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -0
- package/dist/cjs/components/rounded-image/rounded-image.cjs +1 -1
- package/dist/cjs/components/sdk-status-pill/constants.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/index.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/sdk-status-pill.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/sdk-status.cjs +1 -0
- 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/constants.cjs +1 -0
- package/dist/cjs/components/slider/index.cjs +1 -1
- package/dist/cjs/components/slider/slider-track.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/tab-control.cjs +1 -1
- package/dist/cjs/components/table/grid-loading-line.cjs +1 -1
- package/dist/cjs/components/table/table-sm.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/tabs/tabs.cjs +1 -1
- package/dist/cjs/components/text-button/text-button.cjs +1 -1
- package/dist/cjs/components/textarea/textarea.cjs +1 -1
- package/dist/cjs/components/tip-card/tip-card.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon.cjs +1 -1
- package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
- package/dist/cjs/components/token-template/token-template.cjs +1 -1
- package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -1
- package/dist/cjs/components/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/typography/typography.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/vspace/vspace.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/with-title/with-title.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/index.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
- package/dist/cjs/configs/tailwind-preset.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-observed-width-key.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3/node_modules/tailwind-scrollbar/src/index.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3/node_modules/tailwind-scrollbar/src/utilities.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/tailwindcss@4.3.3/node_modules/tailwindcss/dist/flatten-color-palette.cjs +1 -0
- package/dist/cjs/utils/bn-to-pretty-view.cjs +1 -1
- package/dist/cjs/utils/format-asset-amount.cjs +1 -1
- package/dist/cjs/utils/format-leverage.cjs +1 -0
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/format-slippage.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/leverage-presets.cjs +1 -0
- package/dist/cjs/utils/parse-input-to-bn.cjs +1 -1
- package/dist/cjs/utils/templates.cjs +1 -1
- package/dist/esm/_virtual/index.js +1 -1
- package/dist/esm/components/accordion/accordion.js +1 -1
- package/dist/esm/components/alert-badge/alert-badge.js +1 -1
- package/dist/esm/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/esm/components/alert-modal/alert-modal.js +1 -1
- package/dist/esm/components/app-bar/app-bar.js +1 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +162 -160
- package/dist/esm/components/badge/badge.js +15 -9
- package/dist/esm/components/badge/chip.js +47 -0
- package/dist/esm/components/badge/index.js +8 -3
- package/dist/esm/components/base/amount-input/token-select-panel.js +34 -38
- package/dist/esm/components/base/apy-breakdown-body/apy-breakdown-body.js +106 -0
- package/dist/esm/components/base/apy-breakdown-body/index.js +10 -0
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +5 -3
- package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +6 -6
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +27 -28
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +1 -1
- package/dist/esm/components/base/health-factor-block/health-factor-block.js +25 -25
- package/dist/esm/components/base/history-chart/history-chart.js +84 -42
- package/dist/esm/components/base/index.js +154 -140
- package/dist/esm/components/base/info-list/index.js +5 -4
- package/dist/esm/components/base/info-list/info-list.js +52 -27
- package/dist/esm/components/base/leverage-input/leverage-input.js +26 -30
- package/dist/esm/components/base/leverage-preset-chips/constants.js +7 -0
- package/dist/esm/components/base/leverage-preset-chips/index.js +6 -0
- package/dist/esm/components/base/leverage-preset-chips/leverage-preset-chips.js +39 -0
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +1 -1
- package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +33 -28
- package/dist/esm/components/base/manage-pane/constants.js +3 -2
- package/dist/esm/components/base/manage-pane/manage-pane.js +154 -113
- package/dist/esm/components/base/page-title/index.js +5 -4
- package/dist/esm/components/base/page-title/page-title.js +31 -23
- package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +5 -2
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +110 -47
- package/dist/esm/components/base/position-assets/constants.js +8 -0
- package/dist/esm/components/base/position-assets/index.js +6 -0
- package/dist/esm/components/base/position-assets/position-assets.js +96 -0
- package/dist/esm/components/base/review-button/constants.js +3 -2
- package/dist/esm/components/base/review-button/review-button.js +35 -22
- package/dist/esm/components/base/section-heading/section-heading.js +1 -1
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +1 -1
- package/dist/esm/components/base/side-card/side-card.js +1 -1
- package/dist/esm/components/base/stack/stack.js +1 -1
- package/dist/esm/components/base/stat-badge/constants.js +1 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +92 -48
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +1 -1
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +8 -3
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +158 -41
- package/dist/esm/components/base/tabber/tabber.js +67 -64
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +31 -31
- package/dist/esm/components/base/title-meta/constants.js +1 -0
- package/dist/esm/components/base/title-meta/title-meta.js +48 -28
- package/dist/esm/components/base/token-amount/token-amount.js +16 -15
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +1 -1
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +20 -16
- package/dist/esm/components/base/values/pnl-value.js +1 -1
- package/dist/esm/components/base/values/points-value.js +30 -0
- package/dist/esm/components/base/values/position-status-badge.js +26 -0
- package/dist/esm/components/base/values/position-type-badge.js +8 -7
- package/dist/esm/components/base/values/scalars.js +61 -35
- package/dist/esm/components/base-link/base-link.js +1 -1
- package/dist/esm/components/base-table/base-table-line.js +117 -0
- package/dist/esm/components/base-table/base-table.js +110 -0
- package/dist/esm/components/base-table/constants.js +12 -0
- package/dist/esm/components/base-table/index.js +9 -0
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/esm/components/buttons/back-button/back-button.js +1 -1
- package/dist/esm/components/buttons/button/button.js +1 -1
- package/dist/esm/components/buttons/copy-button/copy-button.js +1 -1
- package/dist/esm/components/buttons/external-button/external-button.js +1 -1
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +1 -1
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +1 -1
- package/dist/esm/components/cards/card/card.js +1 -1
- package/dist/esm/components/cards/expandable-call/expandable-call.js +1 -1
- package/dist/esm/components/cards/expandable-card/expandable-card.js +1 -1
- package/dist/esm/components/checkbox/checkbox-labeled.js +27 -21
- package/dist/esm/components/checkbox/checkbox.js +1 -1
- package/dist/esm/components/checkbox-item/checkbox-item.js +1 -1
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +1 -1
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +1 -1
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +27 -21
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +71 -0
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +102 -0
- package/dist/esm/components/collateral-allocation-tooltip/constants.js +12 -0
- package/dist/esm/components/collateral-allocation-tooltip/index.js +9 -0
- package/dist/esm/components/composites/index.js +31 -31
- package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
- package/dist/esm/components/composites/pool-assets-table/constants.js +9 -0
- package/dist/esm/components/composites/pool-assets-table/index.js +8 -6
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +52 -30
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +111 -78
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -26
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +51 -40
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +115 -60
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +10 -7
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +8 -10
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js +1 -0
- package/dist/esm/components/composites/tx-preview/confirm/index.js +24 -26
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +1 -1
- package/dist/esm/components/composites/tx-preview/index.js +24 -26
- package/dist/esm/components/compound-apy/compound-apy.js +91 -83
- package/dist/esm/components/confirm-menu/confirm-menu.js +1 -1
- package/dist/esm/components/detailed-apy/detailed-apy.js +1 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +1 -1
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +51 -42
- package/dist/esm/components/dialog/dialog-container.js +1 -1
- package/dist/esm/components/dialog/dialog-content.js +1 -1
- package/dist/esm/components/dialog/dialog-description.js +1 -1
- package/dist/esm/components/dialog/dialog-footer.js +1 -1
- package/dist/esm/components/dialog/dialog-form.js +1 -1
- package/dist/esm/components/dialog/dialog-header.js +1 -1
- package/dist/esm/components/dialog/dialog-modal-container.js +1 -1
- package/dist/esm/components/dialog/dialog-overlay.js +1 -1
- package/dist/esm/components/dialog/dialog-title.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +1 -1
- package/dist/esm/components/edit-input/edit-input.js +1 -1
- package/dist/esm/components/error-message/error-line-message.js +1 -1
- package/dist/esm/components/error-message/error-message.js +1 -1
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +1 -1
- package/dist/esm/components/filter/filter-block.js +1 -1
- package/dist/esm/components/filter/filter-checkbox-item.js +1 -1
- package/dist/esm/components/filter/filter-chip.js +2 -1
- package/dist/esm/components/filter/filter-chips.js +1 -1
- package/dist/esm/components/filter/filter-dropdown-item.js +1 -1
- package/dist/esm/components/filter/filter-group.js +1 -1
- package/dist/esm/components/filter/filter-label.js +1 -1
- package/dist/esm/components/filter/filter-modal-item.js +1 -1
- package/dist/esm/components/filter/filter-modal.js +1 -1
- package/dist/esm/components/filter/filter-radio-item.js +1 -1
- package/dist/esm/components/filter/filter-separator.js +1 -1
- package/dist/esm/components/formatted-number/formatted-number.js +1 -1
- package/dist/esm/components/graph/default-config.js +47 -25
- package/dist/esm/components/graph/formatters.js +127 -122
- package/dist/esm/components/graph/graph-current-value.js +11 -11
- package/dist/esm/components/graph/graph-tooltip.js +6 -6
- package/dist/esm/components/graph/graph-view.js +72 -88
- package/dist/esm/components/graph/graph.js +587 -536
- package/dist/esm/components/graph/index.js +32 -27
- package/dist/esm/components/graph/y-axis-scale.js +112 -0
- package/dist/esm/components/head-cell/head-cell.js +1 -1
- package/dist/esm/components/health-factor/health-factor.js +1 -1
- package/dist/esm/components/help-tip/help-tip.js +1 -1
- package/dist/esm/components/hf-indicator/hf-indicator.js +59 -0
- package/dist/esm/components/hf-indicator/index.js +4 -0
- package/dist/esm/components/icon-button/icon-button.js +1 -1
- package/dist/esm/components/icons/fa-icon.js +1 -1
- package/dist/esm/components/index.js +754 -699
- package/dist/esm/components/infinite-scroll/index.js +4 -0
- package/dist/esm/components/infinite-scroll/infinite-scroll-wrapper.js +30 -0
- package/dist/esm/components/input/input.js +1 -1
- package/dist/esm/components/label/label.js +1 -1
- package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
- package/dist/esm/components/link/link.js +1 -1
- package/dist/esm/components/loader/loader.js +1 -1
- package/dist/esm/components/loading-bar/loading-bar.js +1 -1
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/name-cell/index.js +4 -0
- package/dist/esm/components/name-cell/name-cell.js +35 -0
- package/dist/esm/components/navbar-logo/navbar-logo.js +1 -1
- package/dist/esm/components/network-icon/index.js +4 -2
- package/dist/esm/components/network-icon/network-indicator.js +82 -0
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +1 -1
- package/dist/esm/components/radio-group/index.js +5 -0
- package/dist/esm/components/radio-group/radio-group.js +57 -0
- package/dist/esm/components/rounded-image/rounded-image.js +1 -1
- package/dist/esm/components/sdk-status-pill/constants.js +8 -0
- package/dist/esm/components/sdk-status-pill/index.js +8 -0
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +59 -0
- package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
- package/dist/esm/components/search-line/search-line.js +1 -1
- package/dist/esm/components/segmented-control/segmented-control.js +1 -1
- package/dist/esm/components/select/select.js +1 -1
- package/dist/esm/components/separate-line/separate-line.js +1 -1
- package/dist/esm/components/short-string/short-string.js +1 -1
- package/dist/esm/components/simple-accordion/simple-accordion.js +1 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +1 -1
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +1 -1
- package/dist/esm/components/skeleton/skeleton-stack.js +1 -1
- package/dist/esm/components/skeleton/skeleton.js +1 -1
- package/dist/esm/components/slider/constants.js +6 -0
- package/dist/esm/components/slider/index.js +29 -26
- package/dist/esm/components/slider/slider-track.js +19 -17
- package/dist/esm/components/slider/slider-utils.js +37 -20
- package/dist/esm/components/slider/slider.js +54 -52
- package/dist/esm/components/spinner/spinner.js +1 -1
- package/dist/esm/components/spinner-loader/spinner-loader.js +1 -1
- package/dist/esm/components/split-list/split-list.js +1 -1
- package/dist/esm/components/status-dot/status-dot.js +1 -1
- package/dist/esm/components/status-elements/status-elements.js +1 -1
- package/dist/esm/components/tab-control/tab-control.js +1 -1
- package/dist/esm/components/table/grid-loading-line.js +1 -1
- package/dist/esm/components/table/table-sm.js +1 -1
- package/dist/esm/components/table/table.js +1 -1
- package/dist/esm/components/tabs/tabs.js +1 -1
- package/dist/esm/components/text-button/text-button.js +1 -1
- package/dist/esm/components/textarea/textarea.js +1 -1
- package/dist/esm/components/tip-card/tip-card.js +1 -1
- package/dist/esm/components/token-icon/token-icon.js +1 -1
- package/dist/esm/components/token-symbol/token-symbol.js +1 -1
- package/dist/esm/components/token-template/token-template.js +1 -1
- package/dist/esm/components/tooltip/simple-tooltip.js +57 -55
- package/dist/esm/components/tooltip/tooltip.js +1 -1
- package/dist/esm/components/trading-view/trading-view.js +213 -174
- package/dist/esm/components/typography/typography.js +1 -1
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +1 -1
- package/dist/esm/components/vspace/vspace.js +1 -1
- package/dist/esm/components/with-copy/with-copy.js +27 -21
- package/dist/esm/components/with-title/with-title.js +1 -1
- package/dist/esm/components/yield-breakdown-tooltip/index.js +2 -1
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +154 -192
- package/dist/esm/configs/tailwind-preset.js +13 -1
- package/dist/esm/hooks/index.js +20 -18
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +908 -843
- package/dist/esm/locale/en.json.js +39 -24
- package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/utilities.js +1 -1
- package/dist/esm/node_modules/.pnpm/tailwindcss@4.3.3/node_modules/tailwindcss/dist/flatten-color-palette.js +16 -0
- package/dist/esm/utils/bn-to-pretty-view.js +1 -1
- package/dist/esm/utils/format-asset-amount.js +1 -1
- package/dist/esm/utils/format-leverage.js +6 -0
- package/dist/esm/utils/format-money.js +59 -41
- package/dist/esm/utils/format-slippage.js +1 -1
- package/dist/esm/utils/index.js +91 -85
- package/dist/esm/utils/leverage-presets.js +13 -0
- package/dist/esm/utils/parse-input-to-bn.js +1 -1
- package/dist/esm/utils/templates.js +4 -4
- package/dist/globals.css +2 -2
- package/dist/types/components/alert-dialog/alert-dialog.d.ts +2 -2
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +4 -1
- package/dist/types/components/badge/badge.d.ts +3 -2
- package/dist/types/components/badge/chip.d.ts +22 -0
- package/dist/types/components/badge/index.d.ts +1 -0
- package/dist/types/components/base/amount-input/amount-input.d.ts +3 -2
- package/dist/types/components/base/amount-input/token-select-panel.d.ts +4 -3
- package/dist/types/components/base/apy-breakdown-body/apy-breakdown-body.d.ts +42 -0
- package/dist/types/components/base/apy-breakdown-body/index.d.ts +2 -0
- package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +1 -3
- package/dist/types/components/base/health-factor-block/health-factor-block.d.ts +6 -6
- package/dist/types/components/base/history-chart/history-chart.d.ts +33 -8
- package/dist/types/components/base/index.d.ts +2 -0
- package/dist/types/components/base/info-list/info-list.d.ts +7 -0
- package/dist/types/components/base/info-portal/info-portal.d.ts +1 -1
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +5 -3
- package/dist/types/components/base/leverage-preset-chips/constants.d.ts +4 -0
- package/dist/types/components/base/leverage-preset-chips/index.d.ts +2 -0
- package/dist/types/components/base/leverage-preset-chips/leverage-preset-chips.d.ts +13 -0
- package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +2 -2
- package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +6 -4
- package/dist/types/components/base/manage-pane/constants.d.ts +1 -0
- package/dist/types/components/base/manage-pane/manage-pane.d.ts +3 -1
- package/dist/types/components/base/page-title/page-title.d.ts +12 -6
- package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +3 -0
- package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +12 -9
- package/dist/types/components/base/position-assets/constants.d.ts +5 -0
- package/dist/types/components/base/position-assets/index.d.ts +2 -0
- package/dist/types/components/base/position-assets/position-assets.d.ts +55 -0
- package/dist/types/components/base/review-button/constants.d.ts +1 -0
- package/dist/types/components/base/review-button/review-button.d.ts +17 -3
- package/dist/types/components/base/stat-badge/constants.d.ts +1 -0
- package/dist/types/components/base/stat-badge/stat-badge.d.ts +11 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +6 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +45 -4
- package/dist/types/components/base/tabber/tabber.d.ts +2 -2
- package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +5 -6
- package/dist/types/components/base/title-meta/constants.d.ts +1 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +9 -1
- package/dist/types/components/base/token-amount/token-amount.d.ts +13 -2
- package/dist/types/components/base/values/constants.d.ts +1 -0
- package/dist/types/components/base/values/index.d.ts +2 -0
- package/dist/types/components/base/values/points-value.d.ts +11 -0
- package/dist/types/components/base/values/position-short-label.d.ts +1 -1
- package/dist/types/components/base/values/position-status-badge.d.ts +7 -0
- package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
- package/dist/types/components/base/values/scalars.d.ts +23 -2
- package/dist/types/components/base-table/base-table-line.d.ts +21 -0
- package/dist/types/components/base-table/base-table.d.ts +19 -0
- package/dist/types/components/base-table/constants.d.ts +8 -0
- package/dist/types/components/base-table/index.d.ts +3 -0
- package/dist/types/components/base-table/types.d.ts +37 -0
- package/dist/types/components/buttons/back-button/back-button.d.ts +1 -1
- package/dist/types/components/buttons/range-buttons/range-buttons.d.ts +1 -1
- package/dist/types/components/cards/danger-zone/danger-zone.d.ts +1 -1
- package/dist/types/components/cards/expandable-call/expandable-call.d.ts +1 -1
- package/dist/types/components/cards/expandable-card/expandable-card.d.ts +1 -1
- package/dist/types/components/collateral-allocation-tooltip/allocation-wheel.d.ts +10 -0
- package/dist/types/components/collateral-allocation-tooltip/collateral-allocation-tooltip.d.ts +23 -0
- package/dist/types/components/collateral-allocation-tooltip/constants.d.ts +8 -0
- package/dist/types/components/collateral-allocation-tooltip/index.d.ts +3 -0
- package/dist/types/components/composites/pool-assets-table/constants.d.ts +6 -0
- package/dist/types/components/composites/pool-assets-table/index.d.ts +1 -0
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-head.d.ts +1 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +10 -9
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +12 -21
- package/dist/types/components/composites/pool-assets-table/types.d.ts +4 -12
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +47 -14
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -19
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +2 -2
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts +98 -0
- package/dist/types/components/compound-apy/compound-apy.d.ts +14 -2
- package/dist/types/components/dialog/dialog-footer.d.ts +1 -1
- package/dist/types/components/dialog/dialog-header.d.ts +1 -1
- package/dist/types/components/dropdown-menu/dropdown-menu-shortcut.d.ts +1 -1
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/types/components/edit-input/edit-input.d.ts +1 -1
- package/dist/types/components/filter/filter-modal.d.ts +1 -1
- package/dist/types/components/formatted-number/formatted-number.d.ts +1 -1
- package/dist/types/components/graph/default-config.d.ts +23 -0
- package/dist/types/components/graph/formatters.d.ts +11 -2
- package/dist/types/components/graph/graph-view.d.ts +1 -1
- package/dist/types/components/graph/graph.d.ts +16 -4
- package/dist/types/components/graph/y-axis-scale.d.ts +48 -0
- package/dist/types/components/health-factor/health-factor.d.ts +1 -1
- package/dist/types/components/hf-indicator/hf-indicator.d.ts +17 -0
- package/dist/types/components/hf-indicator/index.d.ts +1 -0
- package/dist/types/components/icons/fa-icon.d.ts +1 -1
- package/dist/types/components/index.d.ts +7 -1
- package/dist/types/components/infinite-scroll/index.d.ts +1 -0
- package/dist/types/components/infinite-scroll/infinite-scroll-wrapper.d.ts +11 -0
- package/dist/types/components/layout/app-footer/app-footer.d.ts +9 -15
- package/dist/types/components/legal-agreement/legal-agreement-dialog.d.ts +2 -2
- package/dist/types/components/loading/loading.d.ts +1 -1
- package/dist/types/components/name-cell/index.d.ts +1 -0
- package/dist/types/components/name-cell/name-cell.d.ts +13 -0
- package/dist/types/components/navbar-logo/navbar-logo.d.ts +1 -1
- package/dist/types/components/navigation-context/navigation-context.d.ts +1 -1
- package/dist/types/components/network-icon/index.d.ts +1 -0
- package/dist/types/components/network-icon/network-icon.d.ts +1 -1
- package/dist/types/components/network-icon/network-indicator.d.ts +23 -0
- package/dist/types/components/pool-points-indicator/pool-points-indicator.d.ts +1 -1
- package/dist/types/components/radio-group/index.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +39 -0
- package/dist/types/components/sdk-status-pill/constants.d.ts +5 -0
- package/dist/types/components/sdk-status-pill/index.d.ts +3 -0
- package/dist/types/components/sdk-status-pill/sdk-status-pill.d.ts +27 -0
- package/dist/types/components/sdk-status-pill/sdk-status.d.ts +11 -0
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/short-string/short-string.d.ts +1 -1
- package/dist/types/components/simple-accordion/simple-accordion.d.ts +2 -2
- package/dist/types/components/simple-dropdown/simple-dropdown.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton.d.ts +1 -1
- package/dist/types/components/slider/constants.d.ts +3 -0
- package/dist/types/components/slider/index.d.ts +1 -0
- package/dist/types/components/slider/slider-context.d.ts +1 -1
- package/dist/types/components/slider/slider-mark.d.ts +1 -1
- package/dist/types/components/slider/slider-track.d.ts +1 -1
- package/dist/types/components/slider/slider-utils.d.ts +27 -0
- package/dist/types/components/status-elements/status-elements.d.ts +2 -2
- package/dist/types/components/tab-control/tab-control.d.ts +2 -2
- package/dist/types/components/table/grid-loading-line.d.ts +1 -1
- package/dist/types/components/table/table-loader.d.ts +1 -1
- package/dist/types/components/table/table-sm.d.ts +2 -2
- package/dist/types/components/theme-provider.d.ts +1 -1
- package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
- package/dist/types/components/token-template/token-template.d.ts +1 -1
- package/dist/types/components/tooltip/simple-tooltip.d.ts +1 -1
- package/dist/types/components/trading-view/trading-view.d.ts +19 -8
- package/dist/types/components/typed-intl/index.d.ts +1 -1
- package/dist/types/components/with-title/with-title.d.ts +1 -1
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +30 -10
- package/dist/types/configs/tailwind-preset.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/use-hf.d.ts +1 -1
- package/dist/types/hooks/use-observed-width-key.d.ts +8 -0
- package/dist/types/index.d.ts +8 -3
- package/dist/types/locale/en.json.d.ts +41 -24
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/format-leverage.d.ts +5 -0
- package/dist/types/utils/format-money.d.ts +11 -5
- package/dist/types/utils/index.d.ts +4 -2
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/dist/types/utils/network-icons.d.ts +1 -1
- package/package.json +23 -23
- package/src/styles/base.css +30 -0
- package/src/styles/theme.css +16 -0
- package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +0 -1
- package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +0 -1
- package/dist/cjs/components/block-sync-pill/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17/node_modules/tailwind-scrollbar/src/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17/node_modules/tailwind-scrollbar/src/utilities.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/tailwindcss@4.1.17/node_modules/tailwindcss/dist/flatten-color-palette.cjs +0 -3
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +0 -206
- package/dist/esm/components/block-sync-pill/block-sync-status.js +0 -12
- package/dist/esm/components/block-sync-pill/index.js +0 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -176
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/esm/node_modules/.pnpm/tailwindcss@4.1.17/node_modules/tailwindcss/dist/flatten-color-palette.js +0 -363
- package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +0 -35
- package/dist/types/components/block-sync-pill/block-sync-status.d.ts +0 -29
- package/dist/types/components/block-sync-pill/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +0 -17
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +0 -16
- package/dist/types/types/footer.d.ts +0 -51
- /package/dist/cjs/{types/footer.cjs → components/base-table/types.cjs} +0 -0
- /package/dist/cjs/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/helpers.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/variants.cjs +0 -0
- /package/dist/cjs/node_modules/.pnpm/{tailwindcss@4.1.17 → tailwindcss@4.3.3}/node_modules/tailwindcss/dist/plugin.cjs +0 -0
- /package/dist/esm/{types/footer.js → components/base-table/types.js} +0 -0
- /package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/helpers.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{tailwind-scrollbar@4.0.2_react@19.2.0_tailwindcss@4.1.17 → tailwind-scrollbar@4.0.2_react@19.2.8_tailwindcss@4.3.3}/node_modules/tailwind-scrollbar/src/variants.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{tailwindcss@4.1.17 → tailwindcss@4.3.3}/node_modules/tailwindcss/dist/plugin.js +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Stack as
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as s } from "../stack/stack.js";
|
|
3
3
|
import { TokenTemplate as a } from "../../token-template/token-template.js";
|
|
4
|
-
import { Typography as
|
|
5
|
-
import { formatMoney as
|
|
6
|
-
import { TokenAmountTest as
|
|
7
|
-
function
|
|
4
|
+
import { Typography as l } from "../../typography/typography.js";
|
|
5
|
+
import { formatMoney as p } from "../../../utils/format-money.js";
|
|
6
|
+
import { TokenAmountTest as n } from "./constants.js";
|
|
7
|
+
function v({
|
|
8
8
|
data: o,
|
|
9
|
-
token: e
|
|
9
|
+
token: e,
|
|
10
|
+
align: t = "end"
|
|
10
11
|
}) {
|
|
11
12
|
if (o === null)
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ r(
|
|
13
14
|
"span",
|
|
14
15
|
{
|
|
15
16
|
className: "text-secondary-foreground",
|
|
16
|
-
"data-testid":
|
|
17
|
+
"data-testid": n.root,
|
|
17
18
|
children: "—"
|
|
18
19
|
}
|
|
19
20
|
);
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */ i(
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
21
|
+
const m = e ?? o.token;
|
|
22
|
+
return /* @__PURE__ */ i(s, { gap: "xs", align: t, "data-testid": n.root, children: [
|
|
23
|
+
/* @__PURE__ */ r(a, { value: o.value, token: m }),
|
|
24
|
+
/* @__PURE__ */ r(l, { as: "span", variant: "caption", color: "secondary", children: o.valueUsd === null ? "—" : p(o.valueUsd) })
|
|
24
25
|
] });
|
|
25
26
|
}
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
v as TokenAmount,
|
|
29
|
+
n as TokenAmountTest
|
|
29
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { TokenSymbol as m } from "../../token-symbol/token-symbol.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "@gearbox-protocol/sdk";
|
|
4
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
5
5
|
import { cn as s } from "../../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
7
|
import "@gearbox-protocol/sdk/common-utils";
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import { PositionShortLabelTest as t, ValueTest as
|
|
2
|
-
import { PnlValue as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { PositionShortLabelTest as t, ValueTest as r } from "./constants.js";
|
|
2
|
+
import { PnlValue as i } from "./pnl-value.js";
|
|
3
|
+
import { PointsValue as p } from "./points-value.js";
|
|
4
|
+
import { PositionShortLabel as n } from "./position-short-label.js";
|
|
5
|
+
import { PositionStatusBadge as V } from "./position-status-badge.js";
|
|
6
|
+
import { PositionTypeBadge as m } from "./position-type-badge.js";
|
|
7
|
+
import { ApyValue as P, HealthFactorValue as g, LeverageValue as T, TokenBigint as b, UsdValue as d, UtilizationValue as h, bps as B } from "./scalars.js";
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
p as
|
|
9
|
+
P as ApyValue,
|
|
10
|
+
g as HealthFactorValue,
|
|
11
|
+
T as LeverageValue,
|
|
12
|
+
i as PnlValue,
|
|
13
|
+
p as PointsValue,
|
|
14
|
+
n as PositionShortLabel,
|
|
12
15
|
t as PositionShortLabelTest,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
V as PositionStatusBadge,
|
|
17
|
+
m as PositionTypeBadge,
|
|
18
|
+
b as TokenBigint,
|
|
19
|
+
d as UsdValue,
|
|
20
|
+
h as UtilizationValue,
|
|
21
|
+
r as ValueTest,
|
|
22
|
+
B as bps
|
|
19
23
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as n, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { PointsIcon as r } from "../../points-icon/points-icon.js";
|
|
3
|
+
import { pointProgramsOf as l } from "../../../utils/apy-breakdown.js";
|
|
4
|
+
import { ValueTest as a } from "./constants.js";
|
|
5
|
+
function c({
|
|
6
|
+
data: i
|
|
7
|
+
}) {
|
|
8
|
+
if (!i) return null;
|
|
9
|
+
const t = l(i);
|
|
10
|
+
return t.length === 0 ? null : /* @__PURE__ */ n(
|
|
11
|
+
"span",
|
|
12
|
+
{
|
|
13
|
+
className: "inline-flex flex-wrap items-center gap-1.5",
|
|
14
|
+
"data-testid": a.points,
|
|
15
|
+
children: t.map((e) => /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1", children: [
|
|
16
|
+
/* @__PURE__ */ n(
|
|
17
|
+
r,
|
|
18
|
+
{
|
|
19
|
+
reward: { name: e.name, type: e.id },
|
|
20
|
+
size: 16
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ n("span", { children: e.name })
|
|
24
|
+
] }, e.id))
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
c as PointsValue
|
|
30
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Badge as r } from "../../badge/badge.js";
|
|
3
|
+
import "../../badge/chip.js";
|
|
4
|
+
import { FormattedMessageTyped as o } from "../../typed-intl/index.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
7
|
+
import { cn as i } from "../../../utils/cn.js";
|
|
8
|
+
import "sonner";
|
|
9
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
10
|
+
import "luxon";
|
|
11
|
+
import "../../../utils/z-index.js";
|
|
12
|
+
const m = {
|
|
13
|
+
active: "shrink-0 border-transparent bg-emerald-500/15 font-medium text-emerald-400 hover:bg-emerald-500/15",
|
|
14
|
+
repaid: "shrink-0 border-transparent bg-muted font-medium text-muted-foreground hover:bg-muted"
|
|
15
|
+
}, a = {
|
|
16
|
+
active: "components.positionStatusBadge.active",
|
|
17
|
+
repaid: "components.positionStatusBadge.repaid"
|
|
18
|
+
};
|
|
19
|
+
function v({
|
|
20
|
+
data: t
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ e(r, { variant: "secondary", className: i(m[t]), children: /* @__PURE__ */ e(o, { messageId: a[t] }) });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
v as PositionStatusBadge
|
|
26
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Badge as r } from "../../badge/badge.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../badge/chip.js";
|
|
4
|
+
import { FormattedMessageTyped as i } from "../../typed-intl/index.js";
|
|
4
5
|
import "react";
|
|
5
|
-
import "@gearbox-protocol/sdk";
|
|
6
|
-
import { cn as
|
|
6
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
7
|
+
import { cn as n } from "../../../utils/cn.js";
|
|
7
8
|
import "sonner";
|
|
8
9
|
import "@gearbox-protocol/sdk/common-utils";
|
|
9
10
|
import "luxon";
|
|
@@ -17,7 +18,7 @@ const p = {
|
|
|
17
18
|
strategy: "components.positionTypeBadge.strategy",
|
|
18
19
|
liquidation: "components.positionTypeBadge.liquidation"
|
|
19
20
|
}, a = "text-[10px] leading-none px-1.5 py-0.5 rounded-md";
|
|
20
|
-
function
|
|
21
|
+
function x({
|
|
21
22
|
data: e,
|
|
22
23
|
size: t = "table"
|
|
23
24
|
}) {
|
|
@@ -25,14 +26,14 @@ function f({
|
|
|
25
26
|
r,
|
|
26
27
|
{
|
|
27
28
|
variant: "secondary",
|
|
28
|
-
className:
|
|
29
|
+
className: n(
|
|
29
30
|
p[e],
|
|
30
31
|
t === "aside" && a
|
|
31
32
|
),
|
|
32
|
-
children: /* @__PURE__ */ o(
|
|
33
|
+
children: /* @__PURE__ */ o(i, { messageId: m[e] })
|
|
33
34
|
}
|
|
34
35
|
);
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
x as PositionTypeBadge
|
|
38
39
|
};
|
|
@@ -1,62 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { formatUnits as u } from "viem";
|
|
3
|
+
import { CompoundAPY as p } from "../../compound-apy/compound-apy.js";
|
|
4
|
+
import { SimpleTooltip as a } from "../../tooltip/simple-tooltip.js";
|
|
5
|
+
import "../../tooltip/tooltip.js";
|
|
3
6
|
import "react";
|
|
4
|
-
import "@gearbox-protocol/sdk";
|
|
7
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
5
8
|
import { cn as c } from "../../../utils/cn.js";
|
|
6
9
|
import "sonner";
|
|
7
|
-
import {
|
|
10
|
+
import { formatAssetAmount as d } from "../../../utils/format-asset-amount.js";
|
|
11
|
+
import { formatLeverage as f } from "../../../utils/format-leverage.js";
|
|
12
|
+
import { formatPercentAmount as h, formatMoney as v } from "../../../utils/format-money.js";
|
|
8
13
|
import "@gearbox-protocol/sdk/common-utils";
|
|
9
14
|
import "luxon";
|
|
10
15
|
import "../../../utils/z-index.js";
|
|
11
|
-
import { ValueTest as
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */
|
|
16
|
+
import { ValueTest as i } from "./constants.js";
|
|
17
|
+
const x = "—";
|
|
18
|
+
function n() {
|
|
19
|
+
return /* @__PURE__ */ r("span", { "data-testid": i.placeholder, children: x });
|
|
15
20
|
}
|
|
16
|
-
function
|
|
17
|
-
return `${
|
|
21
|
+
function s(t) {
|
|
22
|
+
return `${h(t / 100, 2)}%`;
|
|
18
23
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
24
|
+
function H({
|
|
25
|
+
data: t,
|
|
26
|
+
tooltip: e = !0,
|
|
27
|
+
period: o
|
|
28
|
+
}) {
|
|
29
|
+
return t === void 0 ? /* @__PURE__ */ r(n, {}) : typeof t == "number" ? /* @__PURE__ */ r("span", { "data-testid": i.apy, children: s(t) }) : /* @__PURE__ */ r("span", { "data-testid": i.apy, children: /* @__PURE__ */ r(p, { apy: t, tooltip: e, period: o }) });
|
|
21
30
|
}
|
|
22
|
-
function
|
|
31
|
+
function N({
|
|
23
32
|
data: t
|
|
24
33
|
}) {
|
|
25
|
-
return t == null ? /* @__PURE__ */
|
|
34
|
+
return t == null ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r("span", { "data-testid": i.usd, children: v(t) });
|
|
26
35
|
}
|
|
27
|
-
function
|
|
36
|
+
function w({
|
|
28
37
|
data: t
|
|
29
38
|
}) {
|
|
30
|
-
return t === void 0 ? /* @__PURE__ */
|
|
39
|
+
return t === void 0 ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r("span", { "data-testid": i.leverage, children: `${f(t)}x` });
|
|
31
40
|
}
|
|
32
|
-
function
|
|
41
|
+
function D({
|
|
33
42
|
data: t
|
|
34
43
|
}) {
|
|
35
|
-
return t === void 0 ? /* @__PURE__ */
|
|
44
|
+
return t === void 0 ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r("span", { "data-testid": i.utilization, children: s(t) });
|
|
36
45
|
}
|
|
37
|
-
function
|
|
46
|
+
function M({
|
|
38
47
|
data: t
|
|
39
48
|
}) {
|
|
40
49
|
if (t === void 0)
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
const
|
|
43
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ r(n, {});
|
|
51
|
+
const e = t < 1e4 ? "text-destructive" : t < 11e3 ? "text-warning" : "text-success";
|
|
52
|
+
return /* @__PURE__ */ r("span", { "data-testid": i.healthFactor, className: c(e), children: (t / 1e4).toFixed(2) });
|
|
44
53
|
}
|
|
45
|
-
function
|
|
54
|
+
function O({
|
|
46
55
|
data: t,
|
|
47
|
-
token:
|
|
56
|
+
token: e,
|
|
57
|
+
showSymbol: o = !0
|
|
48
58
|
}) {
|
|
49
|
-
if (t === void 0 ||
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
const
|
|
52
|
-
return
|
|
59
|
+
if (t === void 0 || e === void 0)
|
|
60
|
+
return /* @__PURE__ */ r(n, {});
|
|
61
|
+
const l = u(t, e.decimals);
|
|
62
|
+
return (
|
|
63
|
+
// `title` also keeps the amount where a hover tooltip cannot reach:
|
|
64
|
+
// keyboard, touch, and the browser's own find — and keeps the symbol
|
|
65
|
+
// reachable there even when the row is the one printing it
|
|
66
|
+
/* @__PURE__ */ m("span", { "data-testid": i.tokenBigint, title: `${l} ${e.symbol}`, children: [
|
|
67
|
+
/* @__PURE__ */ r(
|
|
68
|
+
a,
|
|
69
|
+
{
|
|
70
|
+
placement: "top",
|
|
71
|
+
className: "break-all",
|
|
72
|
+
title: /* @__PURE__ */ r("span", { children: d(t, e.decimals) }),
|
|
73
|
+
children: /* @__PURE__ */ r("span", { children: l })
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
o && ` ${e.symbol}`
|
|
77
|
+
] })
|
|
78
|
+
);
|
|
53
79
|
}
|
|
54
80
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
81
|
+
H as ApyValue,
|
|
82
|
+
M as HealthFactorValue,
|
|
83
|
+
w as LeverageValue,
|
|
84
|
+
O as TokenBigint,
|
|
85
|
+
N as UsdValue,
|
|
86
|
+
D as UtilizationValue,
|
|
87
|
+
s as bps
|
|
62
88
|
};
|
|
@@ -3,7 +3,7 @@ import { Slot as b } from "@radix-ui/react-slot";
|
|
|
3
3
|
import { cva as k } from "class-variance-authority";
|
|
4
4
|
import * as y from "react";
|
|
5
5
|
import { useNavigationAdapter as N } from "../navigation-context/navigation-context.js";
|
|
6
|
-
import "@gearbox-protocol/sdk";
|
|
6
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as j } from "../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
9
|
import "@gearbox-protocol/sdk/common-utils";
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import "react-intl";
|
|
3
|
+
import "../buttons/button/button.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
6
|
+
import { cn as o } from "../../utils/cn.js";
|
|
7
|
+
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
|
+
import "luxon";
|
|
10
|
+
import "../../utils/z-index.js";
|
|
11
|
+
import { GridTableRow as h, GridTableCell as u } from "../table/grid-table.js";
|
|
12
|
+
import "../skeleton/skeleton.js";
|
|
13
|
+
import "../table/table.js";
|
|
14
|
+
import { Typography as G } from "../typography/typography.js";
|
|
15
|
+
import { useIsMedium as k, useIsMobile as z } from "../../hooks/use-media-query.js";
|
|
16
|
+
import { BaseTableLineTest as D } from "./constants.js";
|
|
17
|
+
const O = "min-w-0 max-w-full overflow-hidden", P = o(
|
|
18
|
+
"min-w-0 max-w-full self-stretch items-center overflow-x-clip py-2 pl-4",
|
|
19
|
+
"[&_span.truncate]:whitespace-normal",
|
|
20
|
+
"[&_div.overflow-hidden]:overflow-visible"
|
|
21
|
+
), S = "min-w-0 max-w-full overflow-visible whitespace-nowrap";
|
|
22
|
+
function v({
|
|
23
|
+
label: t,
|
|
24
|
+
children: r
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
27
|
+
/* @__PURE__ */ i(
|
|
28
|
+
G,
|
|
29
|
+
{
|
|
30
|
+
as: "span",
|
|
31
|
+
variant: "caption",
|
|
32
|
+
weight: "medium",
|
|
33
|
+
className: "uppercase text-muted-foreground",
|
|
34
|
+
children: t
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 text-sm", children: r })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
function te({
|
|
41
|
+
columns: t,
|
|
42
|
+
cells: r,
|
|
43
|
+
last: x,
|
|
44
|
+
href: b,
|
|
45
|
+
disabled: l = !1,
|
|
46
|
+
disabledStyle: g = !1,
|
|
47
|
+
accentClassName: C,
|
|
48
|
+
onRowClick: n,
|
|
49
|
+
"data-testid": N,
|
|
50
|
+
minHeightClassName: L = "min-h-[66px]"
|
|
51
|
+
}) {
|
|
52
|
+
const _ = k(), y = z(), m = t.filter((e) => e.mobile === "title"), d = m.length > 0 ? m : t.slice(0, 1), T = t.filter((e) => e.mobile === "badge"), B = new Set(d.map((e) => e.id)), p = t.filter(
|
|
53
|
+
(e) => !B.has(e.id) && (e.mobile ?? "stat") === "stat"
|
|
54
|
+
), j = t.filter((e) => e.mobile === "block"), c = {
|
|
55
|
+
last: x,
|
|
56
|
+
href: b,
|
|
57
|
+
noHover: l,
|
|
58
|
+
"data-disabled": l,
|
|
59
|
+
"data-testid": N ?? D.root,
|
|
60
|
+
onRowClick: l ? void 0 : n
|
|
61
|
+
}, f = o(
|
|
62
|
+
n && !l && "cursor-pointer",
|
|
63
|
+
g && "text-secondary-foreground!",
|
|
64
|
+
l && "cursor-not-allowed",
|
|
65
|
+
C
|
|
66
|
+
);
|
|
67
|
+
return y ? /* @__PURE__ */ i(h, { ...c, className: f, children: /* @__PURE__ */ a(
|
|
68
|
+
u,
|
|
69
|
+
{
|
|
70
|
+
span: "full",
|
|
71
|
+
size: "sm",
|
|
72
|
+
className: o(
|
|
73
|
+
"flex min-w-0 max-w-full flex-col items-start gap-3 overflow-x-clip py-3",
|
|
74
|
+
"[&_span.truncate]:whitespace-normal [&_div.overflow-hidden]:overflow-visible"
|
|
75
|
+
),
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [
|
|
78
|
+
d.map((e) => /* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: r[e.id] }, e.id)),
|
|
79
|
+
T.map((e) => /* @__PURE__ */ i("div", { children: r[e.id] }, e.id))
|
|
80
|
+
] }),
|
|
81
|
+
p.length > 0 && /* @__PURE__ */ i("div", { className: "grid w-full min-w-0 grid-cols-3 gap-x-2 gap-y-3 [&_*]:text-left [&_*]:justify-start", children: p.map((e) => /* @__PURE__ */ i(v, { label: e.title, children: r[e.id] }, e.id)) }),
|
|
82
|
+
j.map((e) => {
|
|
83
|
+
const s = r[e.id];
|
|
84
|
+
return s == null || s === !1 ? null : /* @__PURE__ */ i(v, { label: e.title, children: s }, e.id);
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
) }) : /* @__PURE__ */ i(
|
|
89
|
+
h,
|
|
90
|
+
{
|
|
91
|
+
...c,
|
|
92
|
+
className: o(L, f),
|
|
93
|
+
children: t.map((e, s) => {
|
|
94
|
+
const I = e.justify ?? "start", M = s === 0, w = s === t.length - 1, A = e.mobile === "badge", E = o(
|
|
95
|
+
M ? P : A ? S : O,
|
|
96
|
+
w && "pr-4",
|
|
97
|
+
e.cellClassName
|
|
98
|
+
);
|
|
99
|
+
return /* @__PURE__ */ i(
|
|
100
|
+
u,
|
|
101
|
+
{
|
|
102
|
+
size: "sm",
|
|
103
|
+
textAlign: I === "end" ? "right" : "left",
|
|
104
|
+
gapBefore: w ? _ ? "sm" : "md" : void 0,
|
|
105
|
+
className: E,
|
|
106
|
+
children: r[e.id] ?? /* @__PURE__ */ i("span", { className: "text-secondary-foreground", children: "—" })
|
|
107
|
+
},
|
|
108
|
+
e.id
|
|
109
|
+
);
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
te as BaseTableLine,
|
|
116
|
+
D as BaseTableLineTest
|
|
117
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsxs as T, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Children as p } from "react";
|
|
3
|
+
import { Guard as x } from "../guard/guard.js";
|
|
4
|
+
import { HeadCell as y } from "../head-cell/head-cell.js";
|
|
5
|
+
import "react-intl";
|
|
6
|
+
import "../buttons/button/button.js";
|
|
7
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
8
|
+
import { cn as n } from "../../utils/cn.js";
|
|
9
|
+
import "sonner";
|
|
10
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
11
|
+
import "luxon";
|
|
12
|
+
import "../../utils/z-index.js";
|
|
13
|
+
import { GridTable as C, GridTableHeader as j, GridTableRow as f, GridTableHead as H, GridTableBody as N, GridTableCell as S } from "../table/grid-table.js";
|
|
14
|
+
import "../skeleton/skeleton.js";
|
|
15
|
+
import "../table/table.js";
|
|
16
|
+
import { TableLoaderGuard as v } from "../table/table-loader-guard.js";
|
|
17
|
+
import { useIsMobile as z } from "../../hooks/use-media-query.js";
|
|
18
|
+
import { BaseTableTest as d } from "./constants.js";
|
|
19
|
+
function B({
|
|
20
|
+
message: i,
|
|
21
|
+
testId: o
|
|
22
|
+
}) {
|
|
23
|
+
return /* @__PURE__ */ t(f, { noHover: !0, last: !0, children: /* @__PURE__ */ t(
|
|
24
|
+
S,
|
|
25
|
+
{
|
|
26
|
+
span: "full",
|
|
27
|
+
size: "sm",
|
|
28
|
+
textAlign: "center",
|
|
29
|
+
className: "py-8",
|
|
30
|
+
"data-testid": o,
|
|
31
|
+
children: i
|
|
32
|
+
}
|
|
33
|
+
) });
|
|
34
|
+
}
|
|
35
|
+
function X({
|
|
36
|
+
columns: i,
|
|
37
|
+
isLoading: o,
|
|
38
|
+
emptyMessage: c,
|
|
39
|
+
sort: a,
|
|
40
|
+
rowHeight: h = "66px",
|
|
41
|
+
loaderRows: u = 5,
|
|
42
|
+
className: w,
|
|
43
|
+
wrapperClassName: b,
|
|
44
|
+
children: s
|
|
45
|
+
}) {
|
|
46
|
+
const l = z(), g = i.map((e) => e.track).join(" ");
|
|
47
|
+
return /* @__PURE__ */ T(
|
|
48
|
+
C,
|
|
49
|
+
{
|
|
50
|
+
cols: l ? "1fr" : g,
|
|
51
|
+
gap: 0,
|
|
52
|
+
size: "lg",
|
|
53
|
+
className: n("min-w-0 w-full", w),
|
|
54
|
+
wrapperClassName: b,
|
|
55
|
+
"data-testid": d.root,
|
|
56
|
+
children: [
|
|
57
|
+
!l && /* @__PURE__ */ t(j, { "data-testid": d.head, children: /* @__PURE__ */ t(f, { noHover: !0, height: "32px", children: i.map((e) => {
|
|
58
|
+
const m = e.justify ?? "start", r = e.sort, G = r && a ? a.getSortDirection(r.field) : void 0;
|
|
59
|
+
return /* @__PURE__ */ t(
|
|
60
|
+
H,
|
|
61
|
+
{
|
|
62
|
+
justify: m,
|
|
63
|
+
size: "sm",
|
|
64
|
+
className: n(
|
|
65
|
+
"min-w-0 whitespace-nowrap",
|
|
66
|
+
e.headClassName
|
|
67
|
+
),
|
|
68
|
+
children: r && a ? /* @__PURE__ */ t(
|
|
69
|
+
y,
|
|
70
|
+
{
|
|
71
|
+
arrowPosition: m === "end" ? "left" : "right",
|
|
72
|
+
title: e.title,
|
|
73
|
+
sortDirection: G,
|
|
74
|
+
sortField: r.label,
|
|
75
|
+
onSort: () => a.onSort(
|
|
76
|
+
r.field,
|
|
77
|
+
r.defaultDirection
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
) : e.title
|
|
81
|
+
},
|
|
82
|
+
e.id
|
|
83
|
+
);
|
|
84
|
+
}) }) }),
|
|
85
|
+
/* @__PURE__ */ t(
|
|
86
|
+
v,
|
|
87
|
+
{
|
|
88
|
+
showGuard: o,
|
|
89
|
+
rows: u,
|
|
90
|
+
columns: l ? 1 : i.length,
|
|
91
|
+
height: h,
|
|
92
|
+
cellClassName: "min-w-0 px-1 py-2 first:pl-4 last:pr-4",
|
|
93
|
+
children: !o && /* @__PURE__ */ t(
|
|
94
|
+
x,
|
|
95
|
+
{
|
|
96
|
+
showGuard: p.count(s) === 0,
|
|
97
|
+
guard: /* @__PURE__ */ t(B, { message: c, testId: d.empty }),
|
|
98
|
+
children: p.count(s) > 0 && /* @__PURE__ */ t(N, { children: s })
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
X as BaseTable,
|
|
109
|
+
d as BaseTableTest
|
|
110
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseTable as o } from "./base-table.js";
|
|
2
|
+
import { BaseTableLine as s } from "./base-table-line.js";
|
|
3
|
+
import { BaseTableLineTest as t, BaseTableTest as b } from "./constants.js";
|
|
4
|
+
export {
|
|
5
|
+
o as BaseTable,
|
|
6
|
+
s as BaseTableLine,
|
|
7
|
+
t as BaseTableLineTest,
|
|
8
|
+
b as BaseTableTest
|
|
9
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconExpand as x } from "@gearbox-protocol/static";
|
|
3
3
|
import { useNavigationAdapter as N } from "../navigation-context/navigation-context.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "@gearbox-protocol/sdk";
|
|
5
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as c } from "../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
8
|
import "@gearbox-protocol/sdk/common-utils";
|
|
@@ -3,7 +3,7 @@ import { cva as f } from "class-variance-authority";
|
|
|
3
3
|
import { faArrowLeft as u } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import { FaIcon as c } from "../../icons/fa-icon.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import "@gearbox-protocol/sdk";
|
|
6
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import { cn as p } from "../../../utils/cn.js";
|
|
8
8
|
import "sonner";
|
|
9
9
|
import "@gearbox-protocol/sdk/common-utils";
|
|
@@ -2,7 +2,7 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { Slot as c } from "@radix-ui/react-slot";
|
|
3
3
|
import { cva as x } from "class-variance-authority";
|
|
4
4
|
import * as y from "react";
|
|
5
|
-
import "@gearbox-protocol/sdk";
|
|
5
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as e } from "../../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
8
|
import "@gearbox-protocol/sdk/common-utils";
|
|
@@ -4,7 +4,7 @@ import * as r from "react";
|
|
|
4
4
|
import { Button as C } from "../button/button.js";
|
|
5
5
|
import { faCheck as x } from "@fortawesome/free-solid-svg-icons";
|
|
6
6
|
import { FaIcon as w } from "../../icons/fa-icon.js";
|
|
7
|
-
import "@gearbox-protocol/sdk";
|
|
7
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
8
8
|
import { cn as i } from "../../../utils/cn.js";
|
|
9
9
|
import "sonner";
|
|
10
10
|
import "@gearbox-protocol/sdk/common-utils";
|
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconExternal as e } from "@gearbox-protocol/static";
|
|
3
3
|
import * as p from "react";
|
|
4
4
|
import { Button as s } from "../button/button.js";
|
|
5
|
-
import "@gearbox-protocol/sdk";
|
|
5
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import { cn as r } from "../../../utils/cn.js";
|
|
7
7
|
import "sonner";
|
|
8
8
|
import "@gearbox-protocol/sdk/common-utils";
|