@gearbox-protocol/ui-kit 4.0.0-next.4 → 4.0.0-next.41
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/amount-input.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/history-chart/history-chart.cjs +1 -1
- package/dist/cjs/components/base/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/manage-pane/manage-pane.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/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/position-status-badge.cjs +1 -0
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base/values/price-impact-value.cjs +1 -0
- 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-debounce-call.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-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 +8 -9
- package/dist/esm/components/alert-badge/alert-badge.js +1 -2
- package/dist/esm/components/alert-dialog/alert-dialog.js +8 -9
- package/dist/esm/components/alert-modal/alert-modal.js +1 -2
- package/dist/esm/components/app-bar/app-bar.js +1 -2
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +162 -161
- package/dist/esm/components/badge/badge.js +15 -10
- package/dist/esm/components/badge/chip.js +46 -0
- package/dist/esm/components/badge/index.js +8 -3
- package/dist/esm/components/base/amount-input/amount-input.js +13 -14
- package/dist/esm/components/base/amount-input/token-select-panel.js +34 -39
- 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 +2 -2
- 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 +20 -21
- package/dist/esm/components/base/details-view/detail-aside/detail-aside-screen-layout.js +11 -12
- package/dist/esm/components/base/history-chart/history-chart.js +84 -42
- package/dist/esm/components/base/index.js +155 -142
- package/dist/esm/components/base/info-list/info-list.js +10 -11
- package/dist/esm/components/base/leverage-input/leverage-input.js +11 -13
- 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 +3 -4
- package/dist/esm/components/base/manage-pane/manage-pane.js +5 -6
- 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 +95 -0
- package/dist/esm/components/base/review-button/constants.js +3 -2
- package/dist/esm/components/base/review-button/review-button.js +31 -19
- package/dist/esm/components/base/section-heading/section-heading.js +3 -4
- package/dist/esm/components/base/segmented-tabs/segmented-tabs.js +12 -13
- package/dist/esm/components/base/side-card/side-card.js +16 -17
- package/dist/esm/components/base/stack/stack.js +9 -10
- package/dist/esm/components/base/stat-badge/constants.js +1 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +88 -54
- package/dist/esm/components/base/sticky-bar/sticky-bar.js +3 -4
- 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 +198 -42
- package/dist/esm/components/base/tabber/tabber.js +67 -64
- 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 +11 -11
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +7 -8
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +17 -12
- package/dist/esm/components/base/values/pnl-value.js +14 -14
- package/dist/esm/components/base/values/position-status-badge.js +25 -0
- package/dist/esm/components/base/values/position-type-badge.js +2 -2
- package/dist/esm/components/base/values/price-impact-value.js +22 -0
- package/dist/esm/components/base/values/scalars.js +60 -36
- package/dist/esm/components/base-link/base-link.js +8 -9
- package/dist/esm/components/base-table/base-table-line.js +116 -0
- package/dist/esm/components/base-table/base-table.js +109 -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 +3 -4
- package/dist/esm/components/buttons/back-button/back-button.js +7 -8
- package/dist/esm/components/buttons/button/button.js +1 -2
- package/dist/esm/components/buttons/copy-button/copy-button.js +8 -9
- package/dist/esm/components/buttons/external-button/external-button.js +8 -9
- package/dist/esm/components/buttons/navigation-button/navigation-button.js +4 -5
- package/dist/esm/components/buttons/range-buttons/range-buttons.js +3 -4
- package/dist/esm/components/cards/card/card.js +1 -2
- package/dist/esm/components/cards/expandable-call/expandable-call.js +20 -21
- package/dist/esm/components/cards/expandable-card/expandable-card.js +12 -13
- package/dist/esm/components/checkbox/checkbox-labeled.js +13 -9
- package/dist/esm/components/checkbox/checkbox.js +1 -2
- package/dist/esm/components/checkbox-item/checkbox-item.js +10 -11
- package/dist/esm/components/client-adapters/styled-button/styled-button.js +8 -9
- package/dist/esm/components/client-adapters/styled-dialog-container/styled-dialog-container.js +1 -2
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +13 -9
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +70 -0
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +101 -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 +3 -4
- 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 -31
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +110 -79
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -27
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +51 -41
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +115 -61
- 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 +3 -4
- package/dist/esm/components/composites/tx-preview/index.js +24 -26
- package/dist/esm/components/compound-apy/compound-apy.js +88 -81
- package/dist/esm/components/confirm-menu/confirm-menu.js +6 -7
- package/dist/esm/components/detailed-apy/detailed-apy.js +9 -10
- package/dist/esm/components/detailed-page-title/detailed-page-title-copy-button.js +1 -2
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +51 -43
- package/dist/esm/components/dialog/dialog-container.js +7 -8
- package/dist/esm/components/dialog/dialog-content.js +1 -2
- package/dist/esm/components/dialog/dialog-description.js +5 -6
- package/dist/esm/components/dialog/dialog-footer.js +1 -2
- package/dist/esm/components/dialog/dialog-form.js +12 -13
- package/dist/esm/components/dialog/dialog-header.js +5 -6
- package/dist/esm/components/dialog/dialog-modal-container.js +1 -2
- package/dist/esm/components/dialog/dialog-overlay.js +4 -5
- package/dist/esm/components/dialog/dialog-title.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +5 -6
- package/dist/esm/components/dropdown-menu/dropdown-menu-item.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-label.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +4 -5
- package/dist/esm/components/dropdown-menu/dropdown-menu-separator.js +8 -9
- package/dist/esm/components/dropdown-menu/dropdown-menu-shortcut.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -2
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +8 -9
- package/dist/esm/components/edit-input/edit-input.js +7 -8
- package/dist/esm/components/error-message/error-line-message.js +6 -7
- package/dist/esm/components/error-message/error-message.js +3 -4
- package/dist/esm/components/fadeout-loading/fadeout-loading.js +1 -2
- package/dist/esm/components/filter/filter-block.js +1 -2
- package/dist/esm/components/filter/filter-checkbox-item.js +4 -5
- package/dist/esm/components/filter/filter-chip.js +2 -2
- package/dist/esm/components/filter/filter-chips.js +6 -7
- package/dist/esm/components/filter/filter-dropdown-item.js +12 -13
- package/dist/esm/components/filter/filter-group.js +1 -2
- package/dist/esm/components/filter/filter-label.js +1 -2
- package/dist/esm/components/filter/filter-modal-item.js +5 -6
- package/dist/esm/components/filter/filter-modal.js +3 -4
- package/dist/esm/components/filter/filter-radio-item.js +5 -6
- package/dist/esm/components/filter/filter-separator.js +4 -5
- package/dist/esm/components/formatted-number/formatted-number.js +3 -4
- 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 +32 -31
- package/dist/esm/components/graph/graph.js +646 -555
- 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 +13 -14
- package/dist/esm/components/health-factor/health-factor.js +3 -4
- package/dist/esm/components/help-tip/help-tip.js +5 -6
- 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 +7 -8
- package/dist/esm/components/icons/fa-icon.js +3 -4
- package/dist/esm/components/index.js +757 -703
- 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 +3 -4
- package/dist/esm/components/label/label.js +1 -2
- package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
- package/dist/esm/components/link/link.js +12 -13
- package/dist/esm/components/loader/loader.js +1 -2
- package/dist/esm/components/loading-bar/loading-bar.js +1 -2
- package/dist/esm/components/modal/modal.js +8 -9
- 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 +3 -4
- package/dist/esm/components/network-icon/index.js +4 -2
- package/dist/esm/components/network-icon/network-indicator.js +81 -0
- package/dist/esm/components/pool-points-indicator/pool-points-indicator.js +3 -4
- package/dist/esm/components/radio-group/index.js +5 -0
- package/dist/esm/components/radio-group/radio-group.js +56 -0
- package/dist/esm/components/rounded-image/rounded-image.js +1 -2
- 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 +58 -0
- package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
- package/dist/esm/components/search-line/search-line.js +1 -2
- package/dist/esm/components/segmented-control/segmented-control.js +7 -8
- package/dist/esm/components/select/select.js +4 -5
- package/dist/esm/components/separate-line/separate-line.js +1 -2
- package/dist/esm/components/short-string/short-string.js +4 -5
- package/dist/esm/components/simple-accordion/simple-accordion.js +1 -2
- package/dist/esm/components/simple-dropdown/simple-dropdown-menu-item.js +1 -2
- package/dist/esm/components/simple-dropdown/simple-dropdown.js +5 -6
- package/dist/esm/components/skeleton/skeleton-stack.js +7 -8
- package/dist/esm/components/skeleton/skeleton.js +3 -4
- 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 -53
- package/dist/esm/components/spinner/spinner.js +1 -2
- package/dist/esm/components/spinner-loader/spinner-loader.js +8 -9
- package/dist/esm/components/split-list/split-list.js +5 -6
- package/dist/esm/components/status-dot/status-dot.js +4 -5
- package/dist/esm/components/status-elements/status-elements.js +7 -8
- package/dist/esm/components/tab-control/tab-control.js +40 -35
- package/dist/esm/components/table/grid-loading-line.js +14 -15
- package/dist/esm/components/table/table-sm.js +21 -22
- package/dist/esm/components/table/table.js +1 -2
- package/dist/esm/components/tabs/tabs.js +7 -8
- package/dist/esm/components/text-button/text-button.js +10 -11
- package/dist/esm/components/textarea/textarea.js +1 -2
- package/dist/esm/components/tip-card/tip-card.js +5 -6
- package/dist/esm/components/token-icon/token-icon.js +12 -13
- package/dist/esm/components/token-symbol/token-symbol.js +1 -2
- package/dist/esm/components/token-template/token-template.js +9 -10
- package/dist/esm/components/tooltip/simple-tooltip.js +52 -51
- package/dist/esm/components/tooltip/tooltip.js +7 -8
- package/dist/esm/components/trading-view/trading-view.js +219 -179
- package/dist/esm/components/typography/typography.js +5 -6
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +7 -8
- package/dist/esm/components/vspace/vspace.js +8 -9
- package/dist/esm/components/with-copy/with-copy.js +13 -9
- package/dist/esm/components/with-title/with-title.js +8 -9
- 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 +23 -23
- package/dist/esm/hooks/use-debounce-call.js +5 -6
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +909 -849
- package/dist/esm/locale/en.json.js +62 -47
- 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-money.js +55 -38
- package/dist/esm/utils/format-slippage.js +1 -1
- package/dist/esm/utils/index.js +87 -83
- 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 +20 -21
- 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/history-chart/history-chart.d.ts +33 -8
- package/dist/types/components/base/index.d.ts +2 -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/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 +40 -4
- package/dist/types/components/base/tabber/tabber.d.ts +2 -2
- 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 +6 -1
- 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/pnl-value.d.ts +8 -2
- 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/price-impact-value.d.ts +25 -0
- 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 +30 -5
- package/dist/types/components/graph/index.d.ts +1 -1
- 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-icon/token-icon.d.ts +1 -2
- 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 +26 -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 -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 +64 -47
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/format-money.d.ts +11 -5
- package/dist/types/utils/index.d.ts +3 -2
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/dist/types/utils/network-icons.d.ts +1 -1
- package/dist/types/utils/token-icon-source.d.ts +25 -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/hooks/use-hf.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 -207
- 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 -177
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/esm/hooks/use-hf.js +0 -43
- 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/hooks/use-hf.d.ts +0 -17
- 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
|
@@ -3,169 +3,182 @@ import { TokenSelectPanel as a } from "./amount-input/token-select-panel.js";
|
|
|
3
3
|
import { BorrowRateBlock as p } from "./borrow-rate-block/borrow-rate-block.js";
|
|
4
4
|
import { BorrowRateBlockTest as f } from "./borrow-rate-block/constants.js";
|
|
5
5
|
import { ChartWithSideCard as x } from "./chart-with-side-card/chart-with-side-card.js";
|
|
6
|
-
import { ChartWithSideCardTest as
|
|
6
|
+
import { ChartWithSideCardTest as T } from "./chart-with-side-card/constants.js";
|
|
7
7
|
import { DetailedPageTitle as d } from "./detailed-page-title/detailed-page-title.js";
|
|
8
|
-
import { AsideAlignAnchor as
|
|
8
|
+
import { AsideAlignAnchor as c } from "./details-view/detail-aside/detail-aside-scope.js";
|
|
9
9
|
import { DetailAsideScreenLayout as g } from "./details-view/detail-aside/detail-aside-screen-layout.js";
|
|
10
10
|
import { DetailsView as k, DetailsViewLeftPane as B, DetailsViewManagePane as A } from "./details-view/details-view.js";
|
|
11
11
|
import { HealthFactorBlockTest as L } from "./health-factor-block/constants.js";
|
|
12
|
-
import { HealthFactorBlock as
|
|
13
|
-
import { HistoryChart as
|
|
14
|
-
import { InfoLine as
|
|
12
|
+
import { HealthFactorBlock as I } from "./health-factor-block/health-factor-block.js";
|
|
13
|
+
import { HistoryChart as h } from "./history-chart/history-chart.js";
|
|
14
|
+
import { InfoLine as w, InfoList as M, InfoSectionTitle as D, PointsInfoLine as H } from "./info-list/info-list.js";
|
|
15
15
|
import { InfoPortalOut as E, InfoPortalProvider as q } from "./info-portal/info-portal.js";
|
|
16
16
|
import { LeverageInput as N } from "./leverage-input/leverage-input.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
17
|
+
import { LeveragePresetChipsTest as F } from "./leverage-preset-chips/constants.js";
|
|
18
|
+
import { LeveragePresetChips as U } from "./leverage-preset-chips/leverage-preset-chips.js";
|
|
19
|
+
import { LiquidationParamsTableTest as W } from "./liquidation-params-table/constants.js";
|
|
20
|
+
import { LiquidationParamsTable as X } from "./liquidation-params-table/liquidation-params-table.js";
|
|
21
|
+
import { LiquidationPriceBlockTest as J } from "./liquidation-price-block/constants.js";
|
|
22
|
+
import { LiquidationPriceBlock as Q } from "./liquidation-price-block/liquidation-price-block.js";
|
|
23
|
+
import { ManagePane as Z, ManagePaneActionTab as $, ManagePaneMessage as ee, ManagePaneTab as oe, ManagePaneTabDropdown as re } from "./manage-pane/manage-pane.js";
|
|
24
|
+
import { MoreAccordionTest as ae } from "./more-accordion/constants.js";
|
|
25
|
+
import { MoreAccordion as pe } from "./more-accordion/more-accordion.js";
|
|
26
|
+
import { NestedInfoStackTest as fe } from "./nested-info-stack/constants.js";
|
|
27
|
+
import { NestedInfoStack as xe } from "./nested-info-stack/nested-info-stack.js";
|
|
28
|
+
import { PageHeadProvider as Te, PageTitle as le } from "./page-title/page-title.js";
|
|
29
|
+
import { PoolApyBreakdownCardTest as Pe } from "./pool-apy-breakdown-card/constants.js";
|
|
30
|
+
import { PoolApyBreakdownCard as Se } from "./pool-apy-breakdown-card/pool-apy-breakdown-card.js";
|
|
31
|
+
import { PositionAssetsTest as ue } from "./position-assets/constants.js";
|
|
32
|
+
import { PositionAssets as Be } from "./position-assets/position-assets.js";
|
|
33
|
+
import { ReviewButton as be } from "./review-button/review-button.js";
|
|
34
|
+
import { SectionHeading as Ce } from "./section-heading/section-heading.js";
|
|
35
|
+
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as ye, SegmentedTabs as he } from "./segmented-tabs/segmented-tabs.js";
|
|
36
|
+
import { SideCardTest as we } from "./side-card/constants.js";
|
|
37
|
+
import { SideCard as De } from "./side-card/side-card.js";
|
|
38
|
+
import { SPACE_HEIGHT as ve, SPACE_PX as Ee } from "./spacing.js";
|
|
39
|
+
import { Stack as _e } from "./stack/stack.js";
|
|
40
|
+
import { StatBadge as Re, StatBadgeGrid as Fe } from "./stat-badge/stat-badge.js";
|
|
41
|
+
import { StickyBar as Ue } from "./sticky-bar/sticky-bar.js";
|
|
42
|
+
import { StrategyApyBreakdownCardTest as We } from "./strategy-apy-breakdown-card/constants.js";
|
|
43
|
+
import { StrategyApyBreakdownCard as Xe } from "./strategy-apy-breakdown-card/strategy-apy-breakdown-card.js";
|
|
44
|
+
import { Tabber as Je, TabberSection as Ke, isTabber as Qe } from "./tabber/tabber.js";
|
|
45
|
+
import { useDetailScrollSpy as Ze } from "./tabber/use-detail-scroll-spy.js";
|
|
46
|
+
import { useTitleText as eo } from "./text/use-title-text.js";
|
|
47
|
+
import { TimeToLiquidationBlockTest as ro } from "./time-to-liquidation-block/constants.js";
|
|
48
|
+
import { TimeToLiquidationBlock as ao } from "./time-to-liquidation-block/time-to-liquidation-block.js";
|
|
49
|
+
import { TitleMetaTest as po } from "./title-meta/constants.js";
|
|
50
|
+
import { TitleMeta as fo } from "./title-meta/title-meta.js";
|
|
51
|
+
import { TokenAmount as xo } from "./token-amount/token-amount.js";
|
|
52
|
+
import { TokenPairSymbolTest as To } from "./token-pair-symbol/constants.js";
|
|
53
|
+
import { TokenPairSymbol as Po } from "./token-pair-symbol/token-pair-symbol.js";
|
|
54
|
+
import { TokenPairTitleTest as So } from "./token-pair-title/constants.js";
|
|
55
|
+
import { TokenPairTitle as uo } from "./token-pair-title/token-pair-title.js";
|
|
56
|
+
import { PositionShortLabelTest as Bo, ValueTest as Ao } from "./values/constants.js";
|
|
57
|
+
import { PnlValue as Lo } from "./values/pnl-value.js";
|
|
58
|
+
import { PointsValue as Io } from "./values/points-value.js";
|
|
59
|
+
import { PositionShortLabel as ho } from "./values/position-short-label.js";
|
|
60
|
+
import { PositionStatusBadge as wo } from "./values/position-status-badge.js";
|
|
61
|
+
import { PositionTypeBadge as Do } from "./values/position-type-badge.js";
|
|
62
|
+
import { PriceImpactValue as vo, priceImpact as Eo } from "./values/price-impact-value.js";
|
|
63
|
+
import { ApyValue as _o, HealthFactorValue as No, LeverageValue as Ro, TokenBigint as Fo, UsdValue as Go, UtilizationValue as Uo, bps as Oo } from "./values/scalars.js";
|
|
64
|
+
import { AmountInputTest as zo } from "./amount-input/constants.js";
|
|
65
|
+
import { DetailedPageTitleTest as jo } from "./detailed-page-title/constants.js";
|
|
66
|
+
import { DetailsViewTest as Ko } from "./details-view/constants.js";
|
|
67
|
+
import { HistoryChartTest as Yo } from "./history-chart/constants.js";
|
|
68
|
+
import { InfoListTest as $o } from "./info-list/constants.js";
|
|
69
|
+
import { LeverageInputTest as or } from "./leverage-input/constants.js";
|
|
70
|
+
import { ManagePaneTest as tr } from "./manage-pane/constants.js";
|
|
71
|
+
import { PageTitleTest as ir } from "./page-title/constants.js";
|
|
72
|
+
import { ReviewButtonTest as mr } from "./review-button/constants.js";
|
|
73
|
+
import { SectionHeadingTest as nr } from "./section-heading/constants.js";
|
|
74
|
+
import { SegmentedTabsTest as sr } from "./segmented-tabs/constants.js";
|
|
75
|
+
import { StackTest as lr } from "./stack/constants.js";
|
|
76
|
+
import { StatBadgeTest as Pr } from "./stat-badge/constants.js";
|
|
77
|
+
import { StickyBarTest as Sr } from "./sticky-bar/constants.js";
|
|
78
|
+
import { TabberTest as ur } from "./tabber/constants.js";
|
|
79
|
+
import { TokenAmountTest as Br } from "./token-amount/constants.js";
|
|
74
80
|
export {
|
|
75
81
|
r as AmountInput,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
zo as AmountInputTest,
|
|
83
|
+
_o as ApyValue,
|
|
84
|
+
c as AsideAlignAnchor,
|
|
79
85
|
p as BorrowRateBlock,
|
|
80
86
|
f as BorrowRateBlockTest,
|
|
81
87
|
x as ChartWithSideCard,
|
|
82
|
-
|
|
88
|
+
T as ChartWithSideCardTest,
|
|
83
89
|
g as DetailAsideScreenLayout,
|
|
84
90
|
d as DetailedPageTitle,
|
|
85
|
-
|
|
91
|
+
jo as DetailedPageTitleTest,
|
|
86
92
|
k as DetailsView,
|
|
87
93
|
B as DetailsViewLeftPane,
|
|
88
94
|
A as DetailsViewManagePane,
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
Ko as DetailsViewTest,
|
|
96
|
+
I as HealthFactorBlock,
|
|
91
97
|
L as HealthFactorBlockTest,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
No as HealthFactorValue,
|
|
99
|
+
h as HistoryChart,
|
|
100
|
+
Yo as HistoryChartTest,
|
|
101
|
+
w as InfoLine,
|
|
102
|
+
M as InfoList,
|
|
103
|
+
$o as InfoListTest,
|
|
98
104
|
E as InfoPortalOut,
|
|
99
105
|
q as InfoPortalProvider,
|
|
100
106
|
D as InfoSectionTitle,
|
|
101
107
|
N as LeverageInput,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
X as
|
|
107
|
-
W as
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
re as
|
|
115
|
-
|
|
116
|
-
pe as
|
|
117
|
-
ae as
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
108
|
+
or as LeverageInputTest,
|
|
109
|
+
U as LeveragePresetChips,
|
|
110
|
+
F as LeveragePresetChipsTest,
|
|
111
|
+
Ro as LeverageValue,
|
|
112
|
+
X as LiquidationParamsTable,
|
|
113
|
+
W as LiquidationParamsTableTest,
|
|
114
|
+
Q as LiquidationPriceBlock,
|
|
115
|
+
J as LiquidationPriceBlockTest,
|
|
116
|
+
Z as ManagePane,
|
|
117
|
+
$ as ManagePaneActionTab,
|
|
118
|
+
ee as ManagePaneMessage,
|
|
119
|
+
oe as ManagePaneTab,
|
|
120
|
+
re as ManagePaneTabDropdown,
|
|
121
|
+
tr as ManagePaneTest,
|
|
122
|
+
pe as MoreAccordion,
|
|
123
|
+
ae as MoreAccordionTest,
|
|
124
|
+
xe as NestedInfoStack,
|
|
125
|
+
fe as NestedInfoStackTest,
|
|
126
|
+
Te as PageHeadProvider,
|
|
127
|
+
le as PageTitle,
|
|
128
|
+
ir as PageTitleTest,
|
|
129
|
+
Lo as PnlValue,
|
|
122
130
|
H as PointsInfoLine,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
Je as
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
po as
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
131
|
+
Io as PointsValue,
|
|
132
|
+
Se as PoolApyBreakdownCard,
|
|
133
|
+
Pe as PoolApyBreakdownCardTest,
|
|
134
|
+
Be as PositionAssets,
|
|
135
|
+
ue as PositionAssetsTest,
|
|
136
|
+
ho as PositionShortLabel,
|
|
137
|
+
Bo as PositionShortLabelTest,
|
|
138
|
+
wo as PositionStatusBadge,
|
|
139
|
+
Do as PositionTypeBadge,
|
|
140
|
+
vo as PriceImpactValue,
|
|
141
|
+
be as ReviewButton,
|
|
142
|
+
mr as ReviewButtonTest,
|
|
143
|
+
ye as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
144
|
+
ve as SPACE_HEIGHT,
|
|
145
|
+
Ee as SPACE_PX,
|
|
146
|
+
Ce as SectionHeading,
|
|
147
|
+
nr as SectionHeadingTest,
|
|
148
|
+
he as SegmentedTabs,
|
|
149
|
+
sr as SegmentedTabsTest,
|
|
150
|
+
De as SideCard,
|
|
151
|
+
we as SideCardTest,
|
|
152
|
+
_e as Stack,
|
|
153
|
+
lr as StackTest,
|
|
154
|
+
Re as StatBadge,
|
|
155
|
+
Fe as StatBadgeGrid,
|
|
156
|
+
Pr as StatBadgeTest,
|
|
157
|
+
Ue as StickyBar,
|
|
158
|
+
Sr as StickyBarTest,
|
|
159
|
+
Xe as StrategyApyBreakdownCard,
|
|
160
|
+
We as StrategyApyBreakdownCardTest,
|
|
161
|
+
Je as Tabber,
|
|
162
|
+
Ke as TabberSection,
|
|
163
|
+
ur as TabberTest,
|
|
164
|
+
ao as TimeToLiquidationBlock,
|
|
165
|
+
ro as TimeToLiquidationBlockTest,
|
|
166
|
+
fo as TitleMeta,
|
|
167
|
+
po as TitleMetaTest,
|
|
168
|
+
xo as TokenAmount,
|
|
169
|
+
Br as TokenAmountTest,
|
|
170
|
+
Fo as TokenBigint,
|
|
171
|
+
Po as TokenPairSymbol,
|
|
172
|
+
To as TokenPairSymbolTest,
|
|
173
|
+
uo as TokenPairTitle,
|
|
174
|
+
So as TokenPairTitleTest,
|
|
163
175
|
a as TokenSelectPanel,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
176
|
+
Go as UsdValue,
|
|
177
|
+
Uo as UtilizationValue,
|
|
178
|
+
Ao as ValueTest,
|
|
179
|
+
Oo as bps,
|
|
180
|
+
Qe as isTabber,
|
|
181
|
+
Eo as priceImpact,
|
|
182
|
+
Ze as useDetailScrollSpy,
|
|
183
|
+
eo as useTitleText
|
|
171
184
|
};
|
|
@@ -3,26 +3,25 @@ import { Stack as c } from "../stack/stack.js";
|
|
|
3
3
|
import { useTitleText as n } from "../text/use-title-text.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { pointProgramsOf as f } from "../../../utils/apy-breakdown.js";
|
|
6
|
-
import "@gearbox-protocol/sdk";
|
|
6
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "tailwind-merge";
|
|
9
9
|
import "sonner";
|
|
10
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
11
10
|
import "luxon";
|
|
12
11
|
import "../../../utils/z-index.js";
|
|
13
12
|
import { PointsValue as l } from "../values/points-value.js";
|
|
13
|
+
import "viem";
|
|
14
14
|
import "../../points-icon/points-icon.js";
|
|
15
15
|
import "../../token-icon/token-icon.js";
|
|
16
|
-
import "
|
|
17
|
-
import "../../icons/fa-icon.js";
|
|
16
|
+
import "react-intl";
|
|
18
17
|
import "../../tooltip/simple-tooltip.js";
|
|
19
18
|
import "../../tooltip/tooltip.js";
|
|
20
|
-
import "react-intl";
|
|
21
19
|
import "../../badge/badge.js";
|
|
20
|
+
import "../../badge/chip.js";
|
|
22
21
|
import { Typography as u } from "../../typography/typography.js";
|
|
23
22
|
import { VerticalIndicator as d } from "../../vertical-indicator/vertical-indicator.js";
|
|
24
23
|
import { InfoListTest as i } from "./constants.js";
|
|
25
|
-
function
|
|
24
|
+
function F({
|
|
26
25
|
children: t
|
|
27
26
|
}) {
|
|
28
27
|
return /* @__PURE__ */ r(c, { gap: "sm", "data-testid": i.root, children: t });
|
|
@@ -50,7 +49,7 @@ function g({
|
|
|
50
49
|
}
|
|
51
50
|
);
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function G({
|
|
54
53
|
title: t
|
|
55
54
|
}) {
|
|
56
55
|
const o = n();
|
|
@@ -67,7 +66,7 @@ function H({
|
|
|
67
66
|
}
|
|
68
67
|
);
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function H({
|
|
71
70
|
data: t,
|
|
72
71
|
title: o = "components.yieldBreakdown.points"
|
|
73
72
|
}) {
|
|
@@ -75,8 +74,8 @@ function J({
|
|
|
75
74
|
}
|
|
76
75
|
export {
|
|
77
76
|
g as InfoLine,
|
|
78
|
-
|
|
77
|
+
F as InfoList,
|
|
79
78
|
i as InfoListTest,
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
G as InfoSectionTitle,
|
|
80
|
+
H as PointsInfoLine
|
|
82
81
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as I } from "react";
|
|
3
3
|
import { Stack as x } from "../stack/stack.js";
|
|
4
4
|
import { useTitleText as y } from "../text/use-title-text.js";
|
|
@@ -17,20 +17,18 @@ function ee({
|
|
|
17
17
|
value: n,
|
|
18
18
|
onChange: s,
|
|
19
19
|
max: r,
|
|
20
|
-
min:
|
|
20
|
+
min: m = 1,
|
|
21
21
|
title: c,
|
|
22
22
|
hint: d,
|
|
23
23
|
reset: a,
|
|
24
24
|
colorIntervals: w,
|
|
25
25
|
colorIntervalLabel: N,
|
|
26
|
-
size:
|
|
26
|
+
size: E = "sm"
|
|
27
27
|
}) {
|
|
28
|
-
const
|
|
29
|
-
{ start: l, end: r, color: "additionalSuccess" }
|
|
30
|
-
], L = N ?? (p.length > 0 ? E.formatMessage({
|
|
28
|
+
const S = B(), C = y(), p = w ?? [], L = N ?? (p.length > 0 ? S.formatMessage({
|
|
31
29
|
messageId: "components.leverageInput.available"
|
|
32
30
|
}) : void 0), [M, u] = I(void 0), [f, g] = I(""), h = M ?? n, v = (e) => {
|
|
33
|
-
s(_(e,
|
|
31
|
+
s(_(e, m, r)), u(void 0);
|
|
34
32
|
}, k = () => {
|
|
35
33
|
const e = Number.parseFloat(f.replace(",", "."));
|
|
36
34
|
Number.isFinite(e) && v(e);
|
|
@@ -42,19 +40,19 @@ function ee({
|
|
|
42
40
|
return /* @__PURE__ */ t("div", { "data-testid": i.root, children: /* @__PURE__ */ t(
|
|
43
41
|
D,
|
|
44
42
|
{
|
|
45
|
-
size:
|
|
46
|
-
title: /* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
43
|
+
size: E,
|
|
44
|
+
title: /* @__PURE__ */ l(x, { direction: "row", align: "center", justify: "between", gap: "sm", children: [
|
|
45
|
+
/* @__PURE__ */ l("span", { className: "font-normal", children: [
|
|
48
46
|
c !== void 0 ? C(c) : /* @__PURE__ */ t(T, { messageId: "components.leverageInput.label" }),
|
|
49
47
|
d ? /* @__PURE__ */ t("span", { className: "text-muted-foreground ml-1", children: d }) : null
|
|
50
48
|
] }),
|
|
51
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ l(x, { direction: "row", align: "center", gap: "sm", children: [
|
|
52
50
|
/* @__PURE__ */ t("div", { className: "flex w-[90px] flex-row flex-nowrap items-center", children: /* @__PURE__ */ t(
|
|
53
51
|
j,
|
|
54
52
|
{
|
|
55
53
|
value: f,
|
|
56
54
|
placeholder: "0",
|
|
57
|
-
label:
|
|
55
|
+
label: `${b(h)}x`,
|
|
58
56
|
textButtonProps: {
|
|
59
57
|
className: "inline-flex items-center whitespace-nowrap"
|
|
60
58
|
},
|
|
@@ -91,7 +89,7 @@ function ee({
|
|
|
91
89
|
children: /* @__PURE__ */ t(
|
|
92
90
|
F,
|
|
93
91
|
{
|
|
94
|
-
from:
|
|
92
|
+
from: m * o,
|
|
95
93
|
to: r * o,
|
|
96
94
|
precision: o,
|
|
97
95
|
value: h * o,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as n, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { SegmentedTabs as g } from "../segmented-tabs/segmented-tabs.js";
|
|
3
|
+
import { FormattedMessageTyped as d } from "../../typed-intl/index.js";
|
|
4
|
+
import { formatChipLeverage as l } from "../../../utils/leverage-presets.js";
|
|
5
|
+
import { LeveragePresetChipsTest as s } from "./constants.js";
|
|
6
|
+
function u({
|
|
7
|
+
options: e,
|
|
8
|
+
value: r,
|
|
9
|
+
onChange: a
|
|
10
|
+
}) {
|
|
11
|
+
if (e.length === 0) return null;
|
|
12
|
+
const i = r != null && e.includes(r) ? String(r) : String(e[e.length - 1]);
|
|
13
|
+
return /* @__PURE__ */ n(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: "flex items-center gap-2",
|
|
17
|
+
"data-testid": s.root,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ m("span", { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ m(d, { messageId: "components.leveragePresetChips.label" }) }),
|
|
20
|
+
/* @__PURE__ */ m(
|
|
21
|
+
g,
|
|
22
|
+
{
|
|
23
|
+
items: e.map((t) => ({
|
|
24
|
+
id: String(t),
|
|
25
|
+
item: `${l(t)}×`,
|
|
26
|
+
testId: s.chip
|
|
27
|
+
})),
|
|
28
|
+
activeTab: i,
|
|
29
|
+
onTabChange: (t) => a(Number(t))
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
u as LeveragePresetChips,
|
|
38
|
+
s as LeveragePresetChipsTest
|
|
39
|
+
};
|
|
@@ -2,11 +2,10 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import "react-intl";
|
|
3
3
|
import "../../buttons/button/button.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "@gearbox-protocol/sdk";
|
|
5
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import "tailwind-merge";
|
|
8
8
|
import "sonner";
|
|
9
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
10
9
|
import "luxon";
|
|
11
10
|
import "../../../utils/z-index.js";
|
|
12
11
|
import "../../table/grid-table.js";
|
|
@@ -17,7 +16,7 @@ import { LiquidationParamsTableTest as u } from "./constants.js";
|
|
|
17
16
|
function a(o) {
|
|
18
17
|
return o / 100;
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function L({
|
|
21
20
|
data: o
|
|
22
21
|
}) {
|
|
23
22
|
const n = a(o.liquidationPremium), l = a(o.liquidationFee);
|
|
@@ -57,6 +56,6 @@ function z({
|
|
|
57
56
|
);
|
|
58
57
|
}
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
L as LiquidationParamsTable,
|
|
61
60
|
u as LiquidationParamsTableTest
|
|
62
61
|
};
|
|
@@ -14,11 +14,10 @@ import "../../dialog/dialog-container.js";
|
|
|
14
14
|
import "../../dialog/dialog-content.js";
|
|
15
15
|
import "../../dialog/dialog-description.js";
|
|
16
16
|
import "../../dialog/dialog-footer.js";
|
|
17
|
-
import "@gearbox-protocol/sdk";
|
|
17
|
+
import "@gearbox-protocol/sdk/onchain";
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "tailwind-merge";
|
|
20
20
|
import "sonner";
|
|
21
|
-
import "@gearbox-protocol/sdk/common-utils";
|
|
22
21
|
import "luxon";
|
|
23
22
|
import "../../../utils/z-index.js";
|
|
24
23
|
import "../../dialog/dialog-header.js";
|
|
@@ -50,7 +49,7 @@ function R(o) {
|
|
|
50
49
|
function W(o) {
|
|
51
50
|
return f(o) && o.type === K;
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function xt({
|
|
54
53
|
children: o,
|
|
55
54
|
activeTab: g,
|
|
56
55
|
onTabChange: M,
|
|
@@ -166,15 +165,15 @@ function Et({
|
|
|
166
165
|
) : null
|
|
167
166
|
] });
|
|
168
167
|
}
|
|
169
|
-
function
|
|
168
|
+
function Et({
|
|
170
169
|
children: o
|
|
171
170
|
}) {
|
|
172
171
|
return /* @__PURE__ */ n(e, { gap: "sm", "data-testid": i.message, children: o });
|
|
173
172
|
}
|
|
174
173
|
export {
|
|
175
|
-
|
|
174
|
+
xt as ManagePane,
|
|
176
175
|
K as ManagePaneActionTab,
|
|
177
|
-
|
|
176
|
+
Et as ManagePaneMessage,
|
|
178
177
|
H as ManagePaneTab,
|
|
179
178
|
J as ManagePaneTabDropdown,
|
|
180
179
|
i as ManagePaneTest
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
class
|
|
1
|
+
class o {
|
|
2
2
|
static root = "pool-apy-breakdown-card-root";
|
|
3
|
+
static net = "pool-apy-breakdown-card-net";
|
|
3
4
|
static value = "pool-apy-breakdown-card-value";
|
|
5
|
+
static reward = "pool-apy-breakdown-card-reward";
|
|
6
|
+
static points = "pool-apy-breakdown-card-points";
|
|
4
7
|
}
|
|
5
8
|
export {
|
|
6
|
-
|
|
9
|
+
o as PoolApyBreakdownCardTest
|
|
7
10
|
};
|