@gearbox-protocol/ui-kit 4.0.0-next.1 → 4.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/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/constants.cjs +1 -1
- package/dist/cjs/components/base/amount-input/index.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-button.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/constants.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/index.cjs +1 -0
- package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -0
- package/dist/cjs/components/base/chart-with-side-card/constants.cjs +1 -0
- package/dist/cjs/components/base/chart-with-side-card/index.cjs +1 -0
- package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/base/details-view/details-view.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/constants.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/constants.cjs +1 -0
- package/dist/cjs/components/base/liquidation-params-table/index.cjs +1 -0
- package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -0
- 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/index.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/more-accordion/constants.cjs +1 -0
- package/dist/cjs/components/base/more-accordion/index.cjs +1 -0
- package/dist/cjs/components/base/more-accordion/more-accordion.cjs +1 -0
- package/dist/cjs/components/base/nested-info-stack/constants.cjs +1 -0
- package/dist/cjs/components/base/nested-info-stack/index.cjs +1 -0
- package/dist/cjs/components/base/nested-info-stack/nested-info-stack.cjs +1 -0
- 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 -0
- package/dist/cjs/components/base/pool-apy-breakdown-card/index.cjs +1 -0
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -0
- package/dist/cjs/components/base/side-card/constants.cjs +1 -0
- package/dist/cjs/components/base/side-card/index.cjs +1 -0
- package/dist/cjs/components/base/side-card/side-card.cjs +1 -0
- package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -0
- package/dist/cjs/components/base/strategy-apy-breakdown-card/index.cjs +1 -0
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -0
- 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 -0
- package/dist/cjs/components/base/title-meta/index.cjs +1 -0
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -0
- package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
- package/dist/cjs/components/base/token-pair-symbol/constants.cjs +1 -0
- package/dist/cjs/components/base/token-pair-symbol/index.cjs +1 -0
- package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -0
- package/dist/cjs/components/base/token-pair-title/constants.cjs +1 -0
- package/dist/cjs/components/base/token-pair-title/index.cjs +1 -0
- package/dist/cjs/components/base/token-pair-title/token-pair-title.cjs +1 -0
- 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-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/block-sync-pill/block-sync-pill.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.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/index.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/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/graph/formatters.cjs +1 -1
- package/dist/cjs/components/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/graph.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/icons/index.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/layout/index.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/network-icon/index.cjs +1 -1
- package/dist/cjs/components/network-icon/network-indicator.cjs +1 -0
- package/dist/cjs/components/table/index.cjs +1 -1
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.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/utils/format-leverage.cjs +1 -0
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/leverage-presets.cjs +1 -0
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +161 -159
- package/dist/esm/components/badge/badge.js +14 -8
- 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/amount-input.js +179 -147
- package/dist/esm/components/base/amount-input/constants.js +2 -0
- package/dist/esm/components/base/amount-input/index.js +5 -3
- package/dist/esm/components/base/amount-input/token-button.js +65 -35
- package/dist/esm/components/base/amount-input/token-select-panel.js +85 -0
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +90 -0
- package/dist/esm/components/base/borrow-rate-block/constants.js +8 -0
- package/dist/esm/components/base/borrow-rate-block/index.js +6 -0
- package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +36 -0
- package/dist/esm/components/base/chart-with-side-card/constants.js +8 -0
- package/dist/esm/components/base/chart-with-side-card/index.js +6 -0
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +26 -27
- package/dist/esm/components/base/details-view/details-view.js +37 -32
- package/dist/esm/components/base/health-factor-block/health-factor-block.js +25 -25
- package/dist/esm/components/base/history-chart/history-chart.js +83 -38
- package/dist/esm/components/base/index.js +175 -116
- package/dist/esm/components/base/info-list/constants.js +1 -0
- package/dist/esm/components/base/info-list/index.js +4 -2
- package/dist/esm/components/base/info-list/info-list.js +66 -21
- package/dist/esm/components/base/leverage-input/leverage-input.js +54 -53
- 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/constants.js +6 -0
- package/dist/esm/components/base/liquidation-params-table/index.js +6 -0
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +62 -0
- 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/index.js +7 -6
- package/dist/esm/components/base/manage-pane/manage-pane.js +162 -100
- package/dist/esm/components/base/more-accordion/constants.js +7 -0
- package/dist/esm/components/base/more-accordion/index.js +6 -0
- package/dist/esm/components/base/more-accordion/more-accordion.js +51 -0
- package/dist/esm/components/base/nested-info-stack/constants.js +6 -0
- package/dist/esm/components/base/nested-info-stack/index.js +6 -0
- package/dist/esm/components/base/nested-info-stack/nested-info-stack.js +20 -0
- package/dist/esm/components/base/page-title/index.js +5 -4
- package/dist/esm/components/base/page-title/page-title.js +37 -23
- package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +7 -0
- package/dist/esm/components/base/pool-apy-breakdown-card/index.js +6 -0
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +58 -0
- package/dist/esm/components/base/side-card/constants.js +8 -0
- package/dist/esm/components/base/side-card/index.js +6 -0
- package/dist/esm/components/base/side-card/side-card.js +57 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +18 -9
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +8 -0
- package/dist/esm/components/base/strategy-apy-breakdown-card/index.js +6 -0
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +214 -0
- package/dist/esm/components/base/tabber/tabber.js +83 -75
- 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 +9 -0
- package/dist/esm/components/base/title-meta/index.js +6 -0
- package/dist/esm/components/base/title-meta/title-meta.js +88 -0
- package/dist/esm/components/base/token-amount/token-amount.js +13 -12
- package/dist/esm/components/base/token-pair-symbol/constants.js +6 -0
- package/dist/esm/components/base/token-pair-symbol/index.js +6 -0
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +33 -0
- package/dist/esm/components/base/token-pair-title/constants.js +6 -0
- package/dist/esm/components/base/token-pair-title/index.js +6 -0
- package/dist/esm/components/base/token-pair-title/token-pair-title.js +20 -0
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +18 -13
- package/dist/esm/components/base/values/pnl-value.js +8 -8
- 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 +7 -6
- package/dist/esm/components/base/values/scalars.js +29 -27
- 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/block-sync-pill/block-sync-pill.js +38 -43
- package/dist/esm/components/checkbox/checkbox-labeled.js +35 -40
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +34 -39
- 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 -31
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +111 -77
- 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 +50 -39
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +114 -59
- 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/index.js +24 -26
- package/dist/esm/components/composites/tx-preview/index.js +24 -26
- package/dist/esm/components/compound-apy/compound-apy.js +85 -80
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +50 -41
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +1 -83
- package/dist/esm/components/explorer-links-dropdown/index.js +1 -4
- package/dist/esm/components/filter/filter-chip.js +1 -0
- package/dist/esm/components/graph/default-config.js +20 -18
- package/dist/esm/components/graph/formatters.js +62 -52
- package/dist/esm/components/graph/graph-view.js +85 -101
- package/dist/esm/components/graph/graph.js +492 -490
- package/dist/esm/components/hf-indicator/hf-indicator.js +33 -0
- package/dist/esm/components/hf-indicator/index.js +4 -0
- package/dist/esm/components/icons/index.js +29 -28
- package/dist/esm/components/index.js +737 -712
- 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/layout/index.js +14 -33
- 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/network-icon/index.js +4 -2
- package/dist/esm/components/network-icon/network-indicator.js +82 -0
- package/dist/esm/components/table/index.js +38 -52
- package/dist/esm/components/trading-view/trading-view.js +193 -155
- package/dist/esm/components/with-copy/with-copy.js +35 -40
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +112 -169
- package/dist/esm/configs/tailwind-preset.js +13 -1
- package/dist/esm/hooks/index.js +32 -55
- package/dist/esm/hooks/use-debounce-call.js +2 -3
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +909 -900
- package/dist/esm/locale/en.json.js +40 -11
- package/dist/esm/utils/format-leverage.js +6 -0
- package/dist/esm/utils/format-money.js +59 -41
- package/dist/esm/utils/index.js +91 -85
- package/dist/esm/utils/leverage-presets.js +13 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +3 -0
- package/dist/types/components/badge/badge.d.ts +2 -1
- 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 +13 -2
- package/dist/types/components/base/amount-input/constants.d.ts +2 -0
- package/dist/types/components/base/amount-input/index.d.ts +1 -0
- package/dist/types/components/base/amount-input/token-button.d.ts +14 -2
- package/dist/types/components/base/amount-input/token-select-panel.d.ts +17 -0
- package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +21 -0
- package/dist/types/components/base/borrow-rate-block/constants.d.ts +5 -0
- package/dist/types/components/base/borrow-rate-block/index.d.ts +2 -0
- package/dist/types/components/base/chart-with-side-card/chart-with-side-card.d.ts +13 -0
- package/dist/types/components/base/chart-with-side-card/constants.d.ts +5 -0
- package/dist/types/components/base/chart-with-side-card/index.d.ts +2 -0
- package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +3 -4
- 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 +39 -8
- package/dist/types/components/base/index.d.ts +12 -0
- package/dist/types/components/base/info-list/constants.d.ts +1 -0
- package/dist/types/components/base/info-list/info-list.d.ts +15 -1
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +2 -2
- 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/constants.d.ts +3 -0
- package/dist/types/components/base/liquidation-params-table/index.d.ts +2 -0
- package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +12 -0
- 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 +9 -0
- package/dist/types/components/base/more-accordion/constants.d.ts +4 -0
- package/dist/types/components/base/more-accordion/index.d.ts +2 -0
- package/dist/types/components/base/more-accordion/more-accordion.d.ts +11 -0
- package/dist/types/components/base/nested-info-stack/constants.d.ts +3 -0
- package/dist/types/components/base/nested-info-stack/index.d.ts +2 -0
- package/dist/types/components/base/nested-info-stack/nested-info-stack.d.ts +10 -0
- package/dist/types/components/base/page-title/page-title.d.ts +17 -7
- package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +4 -0
- package/dist/types/components/base/pool-apy-breakdown-card/index.d.ts +2 -0
- package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +13 -0
- package/dist/types/components/base/side-card/constants.d.ts +5 -0
- package/dist/types/components/base/side-card/index.d.ts +2 -0
- package/dist/types/components/base/side-card/side-card.d.ts +16 -0
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +5 -0
- package/dist/types/components/base/strategy-apy-breakdown-card/index.d.ts +2 -0
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +17 -0
- package/dist/types/components/base/tabber/tabber.d.ts +11 -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 +6 -0
- package/dist/types/components/base/title-meta/index.d.ts +2 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +23 -0
- package/dist/types/components/base/token-amount/token-amount.d.ts +8 -2
- package/dist/types/components/base/token-pair-symbol/constants.d.ts +3 -0
- package/dist/types/components/base/token-pair-symbol/index.d.ts +2 -0
- package/dist/types/components/base/token-pair-symbol/token-pair-symbol.d.ts +15 -0
- package/dist/types/components/base/token-pair-title/constants.d.ts +3 -0
- package/dist/types/components/base/token-pair-title/index.d.ts +2 -0
- package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +11 -0
- package/dist/types/components/base/values/constants.d.ts +1 -0
- package/dist/types/components/base/values/index.d.ts +3 -1
- 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 +2 -2
- package/dist/types/components/base/values/scalars.d.ts +9 -0
- package/dist/types/components/base-link/base-link.d.ts +1 -1
- 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/button/button.d.ts +2 -2
- package/dist/types/components/checkbox/checkbox.d.ts +2 -2
- 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 +8 -8
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +7 -17
- 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/dialog/dialog-container.d.ts +3 -3
- package/dist/types/components/edit-input/edit-input.d.ts +1 -1
- package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +6 -75
- package/dist/types/components/filter/variants.d.ts +1 -1
- package/dist/types/components/graph/formatters.d.ts +6 -1
- package/dist/types/components/graph/graph-view.d.ts +1 -1
- package/dist/types/components/graph/graph.d.ts +4 -0
- package/dist/types/components/health-factor/health-factor.d.ts +2 -1
- package/dist/types/components/hf-indicator/hf-indicator.d.ts +8 -0
- package/dist/types/components/hf-indicator/index.d.ts +1 -0
- package/dist/types/components/icons/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +5 -6
- 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/input/input.d.ts +1 -1
- package/dist/types/components/layout/index.d.ts +0 -7
- 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/network-icon/index.d.ts +1 -0
- package/dist/types/components/network-icon/network-indicator.d.ts +23 -0
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/status-dot/status-dot.d.ts +1 -1
- package/dist/types/components/table/index.d.ts +0 -5
- package/dist/types/components/text-button/text-button.d.ts +1 -1
- package/dist/types/components/tip-card/tip-card.d.ts +2 -2
- package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
- package/dist/types/components/trading-view/trading-view.d.ts +14 -7
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +2 -2
- package/dist/types/components/with-title/with-title.d.ts +1 -1
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +6 -8
- 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 +6 -7
- package/dist/types/locale/en.json.d.ts +49 -11
- package/dist/types/types/index.d.ts +0 -2
- 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 +3 -1
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/package.json +5 -17
- package/src/styles/base.css +30 -0
- package/src/styles/theme.css +16 -0
- package/dist/cjs/components/auth/connect-required.cjs +0 -1
- package/dist/cjs/components/auth/index.cjs +0 -1
- package/dist/cjs/components/auth/signin-required.cjs +0 -1
- package/dist/cjs/components/auth/wallet-ui-context.cjs +0 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +0 -1
- package/dist/cjs/components/block-sync/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/components/image/image.cjs +0 -1
- package/dist/cjs/components/image/index.cjs +0 -1
- package/dist/cjs/components/layout/app-logo/app-logo.cjs +0 -1
- package/dist/cjs/components/layout/app-logo/index.cjs +0 -1
- package/dist/cjs/components/layout/block/block.cjs +0 -1
- package/dist/cjs/components/layout/block/index.cjs +0 -1
- package/dist/cjs/components/layout/footer/footer.cjs +0 -1
- package/dist/cjs/components/layout/footer/index.cjs +0 -1
- package/dist/cjs/components/layout/header/header.cjs +0 -1
- package/dist/cjs/components/layout/header/index.cjs +0 -1
- package/dist/cjs/components/layout/legal-disclaimer/index.cjs +0 -1
- package/dist/cjs/components/layout/legal-disclaimer/legal-disclaimer.cjs +0 -1
- package/dist/cjs/components/layout/page-layout/index.cjs +0 -1
- package/dist/cjs/components/layout/page-layout/page-layout.cjs +0 -1
- package/dist/cjs/components/layout/social-icons/index.cjs +0 -1
- package/dist/cjs/components/layout/social-icons/social-icons.cjs +0 -1
- package/dist/cjs/components/navbar/index.cjs +0 -1
- package/dist/cjs/components/navbar/navbar-indicator-context.cjs +0 -1
- package/dist/cjs/components/navbar/navbar-with-overflow.cjs +0 -1
- package/dist/cjs/components/navbar/navbar.cjs +0 -1
- package/dist/cjs/components/navitem/index.cjs +0 -1
- package/dist/cjs/components/navitem/navitem.cjs +0 -1
- package/dist/cjs/components/page-title/index.cjs +0 -1
- package/dist/cjs/components/page-title/page-title.cjs +0 -1
- package/dist/cjs/components/pool-apy-tooltip/apy-tooltip.cjs +0 -1
- package/dist/cjs/components/pool-apy-tooltip/index.cjs +0 -1
- package/dist/cjs/components/table/edit-button.cjs +0 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +0 -1
- package/dist/cjs/components/table/editable-table.cjs +0 -1
- package/dist/cjs/components/table/grid-table-loader.cjs +0 -1
- package/dist/cjs/components/table/updated-value.cjs +0 -1
- package/dist/cjs/hooks/use-liquidation/index.cjs +0 -1
- package/dist/cjs/hooks/use-liquidation/utils.cjs +0 -1
- package/dist/cjs/test-ids/base.cjs +0 -1
- package/dist/cjs/test-ids/index.cjs +0 -1
- package/dist/cjs/types/help.cjs +0 -1
- package/dist/cjs/utils/reactochart-compat.cjs +0 -1
- package/dist/esm/components/auth/connect-required.js +0 -37
- package/dist/esm/components/auth/index.js +0 -9
- package/dist/esm/components/auth/signin-required.js +0 -55
- package/dist/esm/components/auth/wallet-ui-context.js +0 -13
- package/dist/esm/components/block-sync/block-sync.js +0 -208
- package/dist/esm/components/block-sync/index.js +0 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -186
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/esm/components/image/image.js +0 -32
- package/dist/esm/components/image/index.js +0 -4
- package/dist/esm/components/layout/app-logo/app-logo.js +0 -99
- package/dist/esm/components/layout/app-logo/index.js +0 -5
- package/dist/esm/components/layout/block/block.js +0 -50
- package/dist/esm/components/layout/block/index.js +0 -4
- package/dist/esm/components/layout/footer/footer.js +0 -237
- package/dist/esm/components/layout/footer/index.js +0 -7
- package/dist/esm/components/layout/header/header.js +0 -93
- package/dist/esm/components/layout/header/index.js +0 -5
- package/dist/esm/components/layout/legal-disclaimer/index.js +0 -4
- package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +0 -46
- package/dist/esm/components/layout/page-layout/index.js +0 -4
- package/dist/esm/components/layout/page-layout/page-layout.js +0 -39
- package/dist/esm/components/layout/social-icons/index.js +0 -4
- package/dist/esm/components/layout/social-icons/social-icons.js +0 -61
- package/dist/esm/components/navbar/index.js +0 -11
- package/dist/esm/components/navbar/navbar-indicator-context.js +0 -46
- package/dist/esm/components/navbar/navbar-with-overflow.js +0 -181
- package/dist/esm/components/navbar/navbar.js +0 -99
- package/dist/esm/components/navitem/index.js +0 -5
- package/dist/esm/components/navitem/navitem.js +0 -124
- package/dist/esm/components/page-title/index.js +0 -6
- package/dist/esm/components/page-title/page-title.js +0 -120
- package/dist/esm/components/pool-apy-tooltip/apy-tooltip.js +0 -154
- package/dist/esm/components/pool-apy-tooltip/index.js +0 -4
- package/dist/esm/components/table/edit-button.js +0 -48
- package/dist/esm/components/table/editable-grid-table.js +0 -121
- package/dist/esm/components/table/editable-table.js +0 -108
- package/dist/esm/components/table/grid-table-loader.js +0 -22
- package/dist/esm/components/table/updated-value.js +0 -49
- package/dist/esm/hooks/use-liquidation/index.js +0 -138
- package/dist/esm/hooks/use-liquidation/utils.js +0 -144
- package/dist/esm/test-ids/base.js +0 -44
- package/dist/esm/test-ids/index.js +0 -46
- package/dist/esm/types/help.js +0 -1
- package/dist/esm/utils/reactochart-compat.js +0 -18
- package/dist/types/components/auth/connect-required.d.ts +0 -32
- package/dist/types/components/auth/index.d.ts +0 -3
- package/dist/types/components/auth/signin-required.d.ts +0 -37
- package/dist/types/components/auth/wallet-ui-context.d.ts +0 -36
- package/dist/types/components/block-sync/block-sync.d.ts +0 -8
- package/dist/types/components/block-sync/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/components/image/image.d.ts +0 -35
- package/dist/types/components/image/index.d.ts +0 -1
- package/dist/types/components/layout/app-logo/app-logo.d.ts +0 -26
- package/dist/types/components/layout/app-logo/index.d.ts +0 -1
- package/dist/types/components/layout/block/block.d.ts +0 -23
- package/dist/types/components/layout/block/index.d.ts +0 -1
- package/dist/types/components/layout/footer/footer.d.ts +0 -53
- package/dist/types/components/layout/footer/index.d.ts +0 -1
- package/dist/types/components/layout/header/header.d.ts +0 -123
- package/dist/types/components/layout/header/index.d.ts +0 -1
- package/dist/types/components/layout/legal-disclaimer/index.d.ts +0 -1
- package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +0 -32
- package/dist/types/components/layout/page-layout/index.d.ts +0 -1
- package/dist/types/components/layout/page-layout/page-layout.d.ts +0 -41
- package/dist/types/components/layout/social-icons/index.d.ts +0 -1
- package/dist/types/components/layout/social-icons/social-icons.d.ts +0 -7
- package/dist/types/components/navbar/index.d.ts +0 -3
- package/dist/types/components/navbar/navbar-indicator-context.d.ts +0 -13
- package/dist/types/components/navbar/navbar-with-overflow.d.ts +0 -20
- package/dist/types/components/navbar/navbar.d.ts +0 -25
- package/dist/types/components/navitem/index.d.ts +0 -1
- package/dist/types/components/navitem/navitem.d.ts +0 -67
- package/dist/types/components/page-title/index.d.ts +0 -1
- package/dist/types/components/page-title/page-title.d.ts +0 -77
- package/dist/types/components/pool-apy-tooltip/apy-tooltip.d.ts +0 -20
- package/dist/types/components/pool-apy-tooltip/index.d.ts +0 -1
- package/dist/types/components/table/edit-button.d.ts +0 -51
- package/dist/types/components/table/editable-grid-table.d.ts +0 -120
- package/dist/types/components/table/editable-table.d.ts +0 -101
- package/dist/types/components/table/grid-table-loader.d.ts +0 -25
- package/dist/types/components/table/updated-value.d.ts +0 -34
- package/dist/types/hooks/use-liquidation/index.d.ts +0 -53
- package/dist/types/hooks/use-liquidation/types.d.ts +0 -16
- package/dist/types/hooks/use-liquidation/utils.d.ts +0 -71
- package/dist/types/test-ids/base.d.ts +0 -20
- package/dist/types/test-ids/index.d.ts +0 -9
- package/dist/types/types/component-props.d.ts +0 -16
- package/dist/types/types/help.d.ts +0 -4
- package/dist/types/types/reactochart.d.ts +0 -145
- package/dist/types/utils/reactochart-compat.d.ts +0 -12
- /package/dist/cjs/{hooks/use-liquidation → components/base-table}/types.cjs +0 -0
- /package/dist/cjs/{test-ids/notification-center.cjs → components/composites/notification-center/constants.cjs} +0 -0
- /package/dist/cjs/{types/component-props.cjs → components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.cjs} +0 -0
- /package/dist/esm/{hooks/use-liquidation → components/base-table}/types.js +0 -0
- /package/dist/esm/{test-ids/notification-center.js → components/composites/notification-center/constants.js} +0 -0
- /package/dist/esm/{types/component-props.js → components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js} +0 -0
- /package/dist/types/{test-ids/notification-center.d.ts → components/composites/notification-center/constants.d.ts} +0 -0
|
@@ -1,118 +1,177 @@
|
|
|
1
|
-
import { AmountInput as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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 {
|
|
1
|
+
import { AmountInput as r } from "./amount-input/amount-input.js";
|
|
2
|
+
import { TokenSelectPanel as a } from "./amount-input/token-select-panel.js";
|
|
3
|
+
import { BorrowRateBlock as p } from "./borrow-rate-block/borrow-rate-block.js";
|
|
4
|
+
import { BorrowRateBlockTest as f } from "./borrow-rate-block/constants.js";
|
|
5
|
+
import { ChartWithSideCard as x } from "./chart-with-side-card/chart-with-side-card.js";
|
|
6
|
+
import { ChartWithSideCardTest as s } from "./chart-with-side-card/constants.js";
|
|
7
|
+
import { DetailedPageTitle as d } from "./detailed-page-title/detailed-page-title.js";
|
|
8
|
+
import { AsideAlignAnchor as S } from "./details-view/detail-aside/detail-aside-scope.js";
|
|
9
|
+
import { DetailAsideScreenLayout as g } from "./details-view/detail-aside/detail-aside-screen-layout.js";
|
|
10
|
+
import { DetailsView as k, DetailsViewLeftPane as B, DetailsViewManagePane as A } from "./details-view/details-view.js";
|
|
11
|
+
import { HealthFactorBlockTest as L } from "./health-factor-block/constants.js";
|
|
12
|
+
import { HealthFactorBlock as y } from "./health-factor-block/health-factor-block.js";
|
|
13
|
+
import { HistoryChart as h } from "./history-chart/history-chart.js";
|
|
14
|
+
import { InfoLine as M, InfoList as V, InfoSectionTitle as D, PointsInfoLine as H } from "./info-list/info-list.js";
|
|
15
|
+
import { InfoPortalOut as E, InfoPortalProvider as q } from "./info-portal/info-portal.js";
|
|
16
|
+
import { LeverageInput as N } from "./leverage-input/leverage-input.js";
|
|
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 se, 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 ce } from "./pool-apy-breakdown-card/pool-apy-breakdown-card.js";
|
|
31
|
+
import { ReviewButton as ue } from "./review-button/review-button.js";
|
|
32
|
+
import { SectionHeading as Be } from "./section-heading/section-heading.js";
|
|
33
|
+
import { SEGMENTED_TABS_INACTIVE_BUTTON_CLASS as be, SegmentedTabs as Le } from "./segmented-tabs/segmented-tabs.js";
|
|
34
|
+
import { SideCardTest as ye } from "./side-card/constants.js";
|
|
35
|
+
import { SideCard as he } from "./side-card/side-card.js";
|
|
36
|
+
import { SPACE_HEIGHT as Me, SPACE_PX as Ve } from "./spacing.js";
|
|
37
|
+
import { Stack as He } from "./stack/stack.js";
|
|
38
|
+
import { StatBadge as Ee, StatBadgeGrid as qe } from "./stat-badge/stat-badge.js";
|
|
39
|
+
import { StickyBar as Ne } from "./sticky-bar/sticky-bar.js";
|
|
40
|
+
import { StrategyApyBreakdownCardTest as Fe } from "./strategy-apy-breakdown-card/constants.js";
|
|
41
|
+
import { StrategyApyBreakdownCard as Ue } from "./strategy-apy-breakdown-card/strategy-apy-breakdown-card.js";
|
|
42
|
+
import { Tabber as We, TabberSection as ze, isTabber as Xe } from "./tabber/tabber.js";
|
|
43
|
+
import { useDetailScrollSpy as Je } from "./tabber/use-detail-scroll-spy.js";
|
|
44
|
+
import { useTitleText as Qe } from "./text/use-title-text.js";
|
|
45
|
+
import { TimeToLiquidationBlockTest as Ze } from "./time-to-liquidation-block/constants.js";
|
|
46
|
+
import { TimeToLiquidationBlock as eo } from "./time-to-liquidation-block/time-to-liquidation-block.js";
|
|
47
|
+
import { TitleMetaTest as ro } from "./title-meta/constants.js";
|
|
48
|
+
import { TitleMeta as ao } from "./title-meta/title-meta.js";
|
|
49
|
+
import { TokenAmount as po } from "./token-amount/token-amount.js";
|
|
50
|
+
import { TokenPairSymbolTest as fo } from "./token-pair-symbol/constants.js";
|
|
51
|
+
import { TokenPairSymbol as xo } from "./token-pair-symbol/token-pair-symbol.js";
|
|
52
|
+
import { TokenPairTitleTest as so } from "./token-pair-title/constants.js";
|
|
53
|
+
import { TokenPairTitle as Po } from "./token-pair-title/token-pair-title.js";
|
|
54
|
+
import { PositionShortLabelTest as co, ValueTest as go } from "./values/constants.js";
|
|
55
|
+
import { PnlValue as ko } from "./values/pnl-value.js";
|
|
56
|
+
import { PointsValue as Ao } from "./values/points-value.js";
|
|
57
|
+
import { PositionShortLabel as Lo } from "./values/position-short-label.js";
|
|
58
|
+
import { PositionStatusBadge as yo } from "./values/position-status-badge.js";
|
|
59
|
+
import { PositionTypeBadge as ho } from "./values/position-type-badge.js";
|
|
60
|
+
import { ApyValue as Mo, HealthFactorValue as Vo, LeverageValue as Do, TokenBigint as Ho, UsdValue as vo, UtilizationValue as Eo, bps as qo } from "./values/scalars.js";
|
|
61
|
+
import { AmountInputTest as No } from "./amount-input/constants.js";
|
|
62
|
+
import { DetailedPageTitleTest as Fo } from "./detailed-page-title/constants.js";
|
|
63
|
+
import { DetailsViewTest as Uo } from "./details-view/constants.js";
|
|
64
|
+
import { HistoryChartTest as Wo } from "./history-chart/constants.js";
|
|
65
|
+
import { InfoListTest as Xo } from "./info-list/constants.js";
|
|
66
|
+
import { LeverageInputTest as Jo } from "./leverage-input/constants.js";
|
|
67
|
+
import { ManagePaneTest as Qo } from "./manage-pane/constants.js";
|
|
68
|
+
import { PageTitleTest as Zo } from "./page-title/constants.js";
|
|
69
|
+
import { ReviewButtonTest as er } from "./review-button/constants.js";
|
|
70
|
+
import { SectionHeadingTest as rr } from "./section-heading/constants.js";
|
|
71
|
+
import { SegmentedTabsTest as ar } from "./segmented-tabs/constants.js";
|
|
72
|
+
import { StackTest as pr } from "./stack/constants.js";
|
|
73
|
+
import { StatBadgeTest as fr } from "./stat-badge/constants.js";
|
|
74
|
+
import { StickyBarTest as xr } from "./sticky-bar/constants.js";
|
|
75
|
+
import { TabberTest as sr } from "./tabber/constants.js";
|
|
76
|
+
import { TokenAmountTest as dr } from "./token-amount/constants.js";
|
|
50
77
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
V as
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
78
|
+
r as AmountInput,
|
|
79
|
+
No as AmountInputTest,
|
|
80
|
+
Mo as ApyValue,
|
|
81
|
+
S as AsideAlignAnchor,
|
|
82
|
+
p as BorrowRateBlock,
|
|
83
|
+
f as BorrowRateBlockTest,
|
|
84
|
+
x as ChartWithSideCard,
|
|
85
|
+
s as ChartWithSideCardTest,
|
|
86
|
+
g as DetailAsideScreenLayout,
|
|
87
|
+
d as DetailedPageTitle,
|
|
88
|
+
Fo as DetailedPageTitleTest,
|
|
89
|
+
k as DetailsView,
|
|
90
|
+
B as DetailsViewLeftPane,
|
|
91
|
+
A as DetailsViewManagePane,
|
|
92
|
+
Uo as DetailsViewTest,
|
|
93
|
+
y as HealthFactorBlock,
|
|
94
|
+
L as HealthFactorBlockTest,
|
|
95
|
+
Vo as HealthFactorValue,
|
|
96
|
+
h as HistoryChart,
|
|
97
|
+
Wo as HistoryChartTest,
|
|
98
|
+
M as InfoLine,
|
|
99
|
+
V as InfoList,
|
|
100
|
+
Xo as InfoListTest,
|
|
101
|
+
E as InfoPortalOut,
|
|
102
|
+
q as InfoPortalProvider,
|
|
103
|
+
D as InfoSectionTitle,
|
|
104
|
+
N as LeverageInput,
|
|
105
|
+
Jo as LeverageInputTest,
|
|
106
|
+
U as LeveragePresetChips,
|
|
107
|
+
F as LeveragePresetChipsTest,
|
|
108
|
+
Do as LeverageValue,
|
|
109
|
+
X as LiquidationParamsTable,
|
|
110
|
+
W as LiquidationParamsTableTest,
|
|
111
|
+
Q as LiquidationPriceBlock,
|
|
112
|
+
J as LiquidationPriceBlockTest,
|
|
113
|
+
Z as ManagePane,
|
|
114
|
+
$ as ManagePaneActionTab,
|
|
115
|
+
ee as ManagePaneMessage,
|
|
116
|
+
oe as ManagePaneTab,
|
|
117
|
+
re as ManagePaneTabDropdown,
|
|
118
|
+
Qo as ManagePaneTest,
|
|
119
|
+
pe as MoreAccordion,
|
|
120
|
+
ae as MoreAccordionTest,
|
|
121
|
+
xe as NestedInfoStack,
|
|
122
|
+
fe as NestedInfoStackTest,
|
|
123
|
+
se as PageHeadProvider,
|
|
124
|
+
le as PageTitle,
|
|
125
|
+
Zo as PageTitleTest,
|
|
126
|
+
ko as PnlValue,
|
|
127
|
+
H as PointsInfoLine,
|
|
128
|
+
Ao as PointsValue,
|
|
129
|
+
ce as PoolApyBreakdownCard,
|
|
130
|
+
Pe as PoolApyBreakdownCardTest,
|
|
131
|
+
Lo as PositionShortLabel,
|
|
132
|
+
co as PositionShortLabelTest,
|
|
133
|
+
yo as PositionStatusBadge,
|
|
134
|
+
ho as PositionTypeBadge,
|
|
135
|
+
ue as ReviewButton,
|
|
136
|
+
er as ReviewButtonTest,
|
|
137
|
+
be as SEGMENTED_TABS_INACTIVE_BUTTON_CLASS,
|
|
138
|
+
Me as SPACE_HEIGHT,
|
|
139
|
+
Ve as SPACE_PX,
|
|
140
|
+
Be as SectionHeading,
|
|
141
|
+
rr as SectionHeadingTest,
|
|
142
|
+
Le as SegmentedTabs,
|
|
143
|
+
ar as SegmentedTabsTest,
|
|
144
|
+
he as SideCard,
|
|
145
|
+
ye as SideCardTest,
|
|
146
|
+
He as Stack,
|
|
147
|
+
pr as StackTest,
|
|
148
|
+
Ee as StatBadge,
|
|
149
|
+
qe as StatBadgeGrid,
|
|
150
|
+
fr as StatBadgeTest,
|
|
151
|
+
Ne as StickyBar,
|
|
152
|
+
xr as StickyBarTest,
|
|
153
|
+
Ue as StrategyApyBreakdownCard,
|
|
154
|
+
Fe as StrategyApyBreakdownCardTest,
|
|
155
|
+
We as Tabber,
|
|
156
|
+
ze as TabberSection,
|
|
157
|
+
sr as TabberTest,
|
|
158
|
+
eo as TimeToLiquidationBlock,
|
|
159
|
+
Ze as TimeToLiquidationBlockTest,
|
|
160
|
+
ao as TitleMeta,
|
|
161
|
+
ro as TitleMetaTest,
|
|
162
|
+
po as TokenAmount,
|
|
163
|
+
dr as TokenAmountTest,
|
|
164
|
+
Ho as TokenBigint,
|
|
165
|
+
xo as TokenPairSymbol,
|
|
166
|
+
fo as TokenPairSymbolTest,
|
|
167
|
+
Po as TokenPairTitle,
|
|
168
|
+
so as TokenPairTitleTest,
|
|
169
|
+
a as TokenSelectPanel,
|
|
170
|
+
vo as UsdValue,
|
|
171
|
+
Eo as UtilizationValue,
|
|
172
|
+
go as ValueTest,
|
|
173
|
+
qo as bps,
|
|
174
|
+
Xe as isTabber,
|
|
175
|
+
Je as useDetailScrollSpy,
|
|
176
|
+
Qe as useTitleText
|
|
118
177
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { InfoLine as t, InfoList as e } from "./info-list.js";
|
|
1
|
+
import { InfoLine as t, InfoList as e, InfoSectionTitle as f, PointsInfoLine as i } from "./info-list.js";
|
|
2
2
|
import { InfoListTest as r } from "./constants.js";
|
|
3
3
|
export {
|
|
4
4
|
t as InfoLine,
|
|
5
5
|
e as InfoList,
|
|
6
|
-
r as InfoListTest
|
|
6
|
+
r as InfoListTest,
|
|
7
|
+
f as InfoSectionTitle,
|
|
8
|
+
i as PointsInfoLine
|
|
7
9
|
};
|
|
@@ -1,36 +1,81 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Stack as
|
|
3
|
-
import { useTitleText as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as c } from "../stack/stack.js";
|
|
3
|
+
import { useTitleText as n } from "../text/use-title-text.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { pointProgramsOf as f } from "../../../utils/apy-breakdown.js";
|
|
6
|
+
import "@gearbox-protocol/sdk";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "tailwind-merge";
|
|
9
|
+
import "sonner";
|
|
10
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
11
|
+
import "luxon";
|
|
12
|
+
import "../../../utils/z-index.js";
|
|
13
|
+
import { PointsValue as l } from "../values/points-value.js";
|
|
14
|
+
import "../../points-icon/points-icon.js";
|
|
15
|
+
import "../../token-icon/token-icon.js";
|
|
16
|
+
import "../../tooltip/simple-tooltip.js";
|
|
17
|
+
import "../../tooltip/tooltip.js";
|
|
18
|
+
import "react-intl";
|
|
19
|
+
import "../../badge/badge.js";
|
|
20
|
+
import "../../badge/chip.js";
|
|
21
|
+
import { Typography as u } from "../../typography/typography.js";
|
|
22
|
+
import { VerticalIndicator as d } from "../../vertical-indicator/vertical-indicator.js";
|
|
23
|
+
import { InfoListTest as i } from "./constants.js";
|
|
24
|
+
function F({
|
|
7
25
|
children: t
|
|
8
26
|
}) {
|
|
9
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ r(c, { gap: "sm", "data-testid": i.root, children: t });
|
|
10
28
|
}
|
|
11
|
-
function
|
|
29
|
+
function g({
|
|
12
30
|
title: t,
|
|
13
|
-
value:
|
|
31
|
+
value: o,
|
|
14
32
|
tip: e,
|
|
15
|
-
|
|
16
|
-
|
|
33
|
+
valueDescription: m,
|
|
34
|
+
valueTo: p,
|
|
35
|
+
testId: s
|
|
17
36
|
}) {
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
37
|
+
const a = n();
|
|
38
|
+
return /* @__PURE__ */ r(
|
|
39
|
+
d,
|
|
21
40
|
{
|
|
22
|
-
label:
|
|
41
|
+
label: a(t),
|
|
23
42
|
tip: e,
|
|
24
|
-
value:
|
|
25
|
-
valueTo:
|
|
43
|
+
value: o,
|
|
44
|
+
valueTo: p,
|
|
45
|
+
valueDescription: m,
|
|
26
46
|
size: "sm",
|
|
27
47
|
align: "center",
|
|
28
|
-
"data-testid":
|
|
48
|
+
"data-testid": s ?? i.line
|
|
29
49
|
}
|
|
30
50
|
);
|
|
31
51
|
}
|
|
52
|
+
function G({
|
|
53
|
+
title: t
|
|
54
|
+
}) {
|
|
55
|
+
const o = n();
|
|
56
|
+
return /* @__PURE__ */ r(
|
|
57
|
+
u,
|
|
58
|
+
{
|
|
59
|
+
as: "span",
|
|
60
|
+
color: "secondary",
|
|
61
|
+
weight: "bold",
|
|
62
|
+
variant: "caption",
|
|
63
|
+
className: "tracking-[0.55px] uppercase",
|
|
64
|
+
"data-testid": i.sectionTitle,
|
|
65
|
+
children: o(t)
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function H({
|
|
70
|
+
data: t,
|
|
71
|
+
title: o = "components.yieldBreakdown.points"
|
|
72
|
+
}) {
|
|
73
|
+
return !t || f(t).length === 0 ? null : /* @__PURE__ */ r(g, { title: o, value: /* @__PURE__ */ r(l, { data: t }) });
|
|
74
|
+
}
|
|
32
75
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
76
|
+
g as InfoLine,
|
|
77
|
+
F as InfoList,
|
|
78
|
+
i as InfoListTest,
|
|
79
|
+
G as InfoSectionTitle,
|
|
80
|
+
H as PointsInfoLine
|
|
36
81
|
};
|
|
@@ -1,82 +1,86 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Stack as
|
|
4
|
-
import { useTitleText as
|
|
5
|
-
import { EditInput as
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as I } from "react";
|
|
3
|
+
import { Stack as x } from "../stack/stack.js";
|
|
4
|
+
import { useTitleText as y } from "../text/use-title-text.js";
|
|
5
|
+
import { EditInput as j } from "../../edit-input/edit-input.js";
|
|
6
6
|
import { Slider as F } from "../../slider/slider.js";
|
|
7
7
|
import "../../slider/slider-context.js";
|
|
8
|
-
import { TextButton as
|
|
9
|
-
import { SimpleTooltip as
|
|
8
|
+
import { TextButton as O } from "../../text-button/text-button.js";
|
|
9
|
+
import { SimpleTooltip as R } from "../../tooltip/simple-tooltip.js";
|
|
10
10
|
import "../../tooltip/tooltip.js";
|
|
11
|
-
import { FormattedMessageTyped as
|
|
12
|
-
import { WithTitle as
|
|
11
|
+
import { useIntlTyped as B, FormattedMessageTyped as T } from "../../typed-intl/index.js";
|
|
12
|
+
import { WithTitle as D } from "../../with-title/with-title.js";
|
|
13
|
+
import { formatLeverage as b } from "../../../utils/format-leverage.js";
|
|
13
14
|
import { LeverageInputTest as i } from "./constants.js";
|
|
14
|
-
const o = 100,
|
|
15
|
-
function
|
|
16
|
-
value:
|
|
15
|
+
const o = 100, P = 10;
|
|
16
|
+
function ee({
|
|
17
|
+
value: n,
|
|
17
18
|
onChange: s,
|
|
18
|
-
max:
|
|
19
|
-
min:
|
|
20
|
-
step: w = 0.1,
|
|
19
|
+
max: r,
|
|
20
|
+
min: l = 1,
|
|
21
21
|
title: c,
|
|
22
22
|
hint: d,
|
|
23
23
|
reset: a,
|
|
24
|
-
colorIntervals:
|
|
25
|
-
colorIntervalLabel:
|
|
26
|
-
size:
|
|
24
|
+
colorIntervals: w,
|
|
25
|
+
colorIntervalLabel: N,
|
|
26
|
+
size: S = "sm"
|
|
27
27
|
}) {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
const E = B(), C = y(), p = w ?? [
|
|
29
|
+
{ start: l, end: r, color: "additionalSuccess" }
|
|
30
|
+
], L = N ?? (p.length > 0 ? E.formatMessage({
|
|
31
|
+
messageId: "components.leverageInput.available"
|
|
32
|
+
}) : void 0), [M, u] = I(void 0), [f, g] = I(""), h = M ?? n, v = (e) => {
|
|
33
|
+
s(_(e, l, r)), u(void 0);
|
|
34
|
+
}, k = () => {
|
|
35
|
+
const e = Number.parseFloat(f.replace(",", "."));
|
|
36
|
+
Number.isFinite(e) && v(e);
|
|
37
|
+
}, V = p.map((e) => ({
|
|
34
38
|
...e,
|
|
35
39
|
start: e.start * o,
|
|
36
40
|
end: e.end * o
|
|
37
41
|
}));
|
|
38
42
|
return /* @__PURE__ */ t("div", { "data-testid": i.root, children: /* @__PURE__ */ t(
|
|
39
|
-
|
|
43
|
+
D,
|
|
40
44
|
{
|
|
41
|
-
size:
|
|
42
|
-
title: /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
c !== void 0 ?
|
|
45
|
+
size: S,
|
|
46
|
+
title: /* @__PURE__ */ m(x, { direction: "row", align: "center", justify: "between", gap: "sm", children: [
|
|
47
|
+
/* @__PURE__ */ m("span", { className: "font-normal", children: [
|
|
48
|
+
c !== void 0 ? C(c) : /* @__PURE__ */ t(T, { messageId: "components.leverageInput.label" }),
|
|
45
49
|
d ? /* @__PURE__ */ t("span", { className: "text-muted-foreground ml-1", children: d }) : null
|
|
46
50
|
] }),
|
|
47
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ m(x, { direction: "row", align: "center", gap: "sm", children: [
|
|
48
52
|
/* @__PURE__ */ t("div", { className: "flex w-[90px] flex-row flex-nowrap items-center", children: /* @__PURE__ */ t(
|
|
49
|
-
|
|
53
|
+
j,
|
|
50
54
|
{
|
|
51
|
-
value:
|
|
55
|
+
value: f,
|
|
52
56
|
placeholder: "0",
|
|
53
|
-
label:
|
|
57
|
+
label: `${b(h)}x`,
|
|
54
58
|
textButtonProps: {
|
|
55
59
|
className: "inline-flex items-center whitespace-nowrap"
|
|
56
60
|
},
|
|
57
61
|
"data-testid": i.value,
|
|
58
62
|
onEditModeChange: (e) => {
|
|
59
|
-
e &&
|
|
63
|
+
e && g(b(n));
|
|
60
64
|
},
|
|
61
|
-
onChange: (e) =>
|
|
62
|
-
onSubmit:
|
|
65
|
+
onChange: (e) => g(e.target.value),
|
|
66
|
+
onSubmit: k
|
|
63
67
|
}
|
|
64
68
|
) }),
|
|
65
69
|
a ? /* @__PURE__ */ t(
|
|
66
|
-
|
|
70
|
+
R,
|
|
67
71
|
{
|
|
68
72
|
placement: "top",
|
|
69
73
|
triangle: !1,
|
|
70
74
|
triggerClassName: "inline-flex shrink-0",
|
|
71
75
|
title: /* @__PURE__ */ t(
|
|
72
|
-
|
|
76
|
+
O,
|
|
73
77
|
{
|
|
74
78
|
buttonColor: "secondaryDashed",
|
|
75
79
|
size: "sm",
|
|
76
80
|
className: "max-w-full truncate",
|
|
77
81
|
onClick: a.onClick,
|
|
78
82
|
"data-testid": a.testId ?? i.reset,
|
|
79
|
-
children: /* @__PURE__ */ t(
|
|
83
|
+
children: /* @__PURE__ */ t(T, { messageId: "components.leverageInput.reset" })
|
|
80
84
|
}
|
|
81
85
|
),
|
|
82
86
|
children: a.tooltip
|
|
@@ -87,28 +91,25 @@ function Q({
|
|
|
87
91
|
children: /* @__PURE__ */ t(
|
|
88
92
|
F,
|
|
89
93
|
{
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
94
|
+
from: l * o,
|
|
95
|
+
to: r * o,
|
|
92
96
|
precision: o,
|
|
93
|
-
value:
|
|
94
|
-
colorIntervals:
|
|
95
|
-
colorIntervalLabel:
|
|
96
|
-
markerStep:
|
|
97
|
+
value: h * o,
|
|
98
|
+
colorIntervals: V,
|
|
99
|
+
colorIntervalLabel: L,
|
|
100
|
+
markerStep: r > P ? 200 : 100,
|
|
97
101
|
"data-testid": i.slider,
|
|
98
|
-
onChangeValue: (e) =>
|
|
99
|
-
onSubmitValue: (e) =>
|
|
102
|
+
onChangeValue: (e) => u(e / o),
|
|
103
|
+
onSubmitValue: (e) => v(e / o)
|
|
100
104
|
}
|
|
101
105
|
)
|
|
102
106
|
}
|
|
103
107
|
) });
|
|
104
108
|
}
|
|
105
|
-
function
|
|
106
|
-
return Math.min(Math.max(
|
|
107
|
-
}
|
|
108
|
-
function T(r) {
|
|
109
|
-
return (Math.round(r * 100) / 100).toFixed(2).replace(/\.?0+$/, "");
|
|
109
|
+
function _(n, s, r) {
|
|
110
|
+
return Math.min(Math.max(n, s), r);
|
|
110
111
|
}
|
|
111
112
|
export {
|
|
112
|
-
|
|
113
|
+
ee as LeverageInput,
|
|
113
114
|
i as LeverageInputTest
|
|
114
115
|
};
|