@gearbox-protocol/ui-kit 4.0.0-next.2 → 4.0.0-next.21
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/token-select-panel.cjs +1 -1
- 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/health-factor-block/health-factor-block.cjs +1 -1
- package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
- package/dist/cjs/components/base/leverage-preset-chips/constants.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/index.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -0
- package/dist/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/constants.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/page-title/index.cjs +1 -1
- package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/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/stat-badge/constants.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
- package/dist/cjs/components/base/title-meta/constants.cjs +1 -1
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -1
- package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
- package/dist/cjs/components/base/values/constants.cjs +1 -1
- package/dist/cjs/components/base/values/index.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/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/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/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/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/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/app-footer/app-footer.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/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/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-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/token-select-panel.js +33 -37
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +32 -25
- 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 +26 -27
- package/dist/esm/components/base/health-factor-block/health-factor-block.js +25 -25
- package/dist/esm/components/base/history-chart/history-chart.js +82 -41
- package/dist/esm/components/base/index.js +156 -141
- package/dist/esm/components/base/info-list/index.js +5 -4
- package/dist/esm/components/base/info-list/info-list.js +52 -27
- package/dist/esm/components/base/leverage-input/leverage-input.js +18 -20
- 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-price-block/liquidation-price-block.js +33 -28
- package/dist/esm/components/base/manage-pane/constants.js +3 -2
- package/dist/esm/components/base/manage-pane/manage-pane.js +154 -113
- package/dist/esm/components/base/page-title/index.js +5 -4
- package/dist/esm/components/base/page-title/page-title.js +31 -23
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +23 -30
- package/dist/esm/components/base/position-assets/constants.js +8 -0
- package/dist/esm/components/base/position-assets/index.js +6 -0
- package/dist/esm/components/base/position-assets/position-assets.js +96 -0
- package/dist/esm/components/base/review-button/constants.js +3 -2
- package/dist/esm/components/base/review-button/review-button.js +35 -22
- package/dist/esm/components/base/stat-badge/constants.js +1 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +91 -47
- 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 +191 -29
- package/dist/esm/components/base/tabber/tabber.js +67 -64
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +31 -31
- package/dist/esm/components/base/title-meta/constants.js +1 -0
- package/dist/esm/components/base/title-meta/title-meta.js +53 -33
- package/dist/esm/components/base/token-amount/token-amount.js +17 -16
- 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/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 +58 -32
- 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/checkbox/checkbox-labeled.js +25 -20
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +25 -20
- 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/pool-assets-table/constants.js +9 -0
- package/dist/esm/components/composites/pool-assets-table/index.js +8 -6
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +52 -30
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +111 -77
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -26
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +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/dialog/transactionConfirmShellTypes.js +1 -0
- 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 +88 -82
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +50 -41
- 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 +72 -88
- package/dist/esm/components/graph/graph.js +459 -458
- 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/index.js +739 -695
- 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/app-footer/app-footer.js +20 -23
- 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/sdk-status-pill/constants.js +8 -0
- package/dist/esm/components/sdk-status-pill/index.js +8 -0
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +59 -0
- package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
- package/dist/esm/components/trading-view/trading-view.js +193 -155
- package/dist/esm/components/with-copy/with-copy.js +25 -20
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +114 -171
- package/dist/esm/configs/tailwind-preset.js +13 -1
- package/dist/esm/hooks/index.js +20 -18
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +896 -842
- package/dist/esm/locale/en.json.js +28 -25
- 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 +3 -2
- package/dist/types/components/base/amount-input/token-select-panel.d.ts +4 -3
- package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +10 -5
- package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +1 -3
- package/dist/types/components/base/health-factor-block/health-factor-block.d.ts +6 -6
- package/dist/types/components/base/history-chart/history-chart.d.ts +32 -8
- package/dist/types/components/base/index.d.ts +2 -0
- package/dist/types/components/base/info-list/info-list.d.ts +7 -0
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
- package/dist/types/components/base/leverage-preset-chips/constants.d.ts +4 -0
- package/dist/types/components/base/leverage-preset-chips/index.d.ts +2 -0
- package/dist/types/components/base/leverage-preset-chips/leverage-preset-chips.d.ts +13 -0
- package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +2 -2
- package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +6 -4
- package/dist/types/components/base/manage-pane/constants.d.ts +1 -0
- package/dist/types/components/base/manage-pane/manage-pane.d.ts +3 -1
- package/dist/types/components/base/page-title/page-title.d.ts +12 -6
- package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +4 -5
- 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 +43 -4
- package/dist/types/components/base/tabber/tabber.d.ts +2 -2
- package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +5 -6
- package/dist/types/components/base/title-meta/constants.d.ts +1 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +9 -1
- package/dist/types/components/base/token-amount/token-amount.d.ts +8 -2
- 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 +1 -1
- package/dist/types/components/base/values/scalars.d.ts +30 -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/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 -20
- 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 +12 -2
- 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/hf-indicator/hf-indicator.d.ts +17 -0
- package/dist/types/components/hf-indicator/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +6 -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/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/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/trading-view/trading-view.d.ts +14 -7
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +8 -10
- package/dist/types/configs/tailwind-preset.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/use-observed-width-key.d.ts +8 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/locale/en.json.d.ts +28 -23
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/format-leverage.d.ts +5 -0
- package/dist/types/utils/format-money.d.ts +11 -5
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/package.json +6 -6
- 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/esm/components/block-sync-pill/block-sync-pill.js +0 -206
- package/dist/esm/components/block-sync-pill/block-sync-status.js +0 -12
- package/dist/esm/components/block-sync-pill/index.js +0 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -176
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +0 -35
- package/dist/types/components/block-sync-pill/block-sync-status.d.ts +0 -29
- package/dist/types/components/block-sync-pill/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +0 -17
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +0 -16
- package/dist/types/types/footer.d.ts +0 -51
- /package/dist/cjs/{types/footer.cjs → components/base-table/types.cjs} +0 -0
- /package/dist/esm/{types/footer.js → components/base-table/types.js} +0 -0
package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ProgressStepperStep } from '../stepper/ProgressStepper';
|
|
3
|
+
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
+
/**
|
|
5
|
+
* How the card is framed. The body is identical in both: `page` drops the card
|
|
6
|
+
* into page flow, `dialog` puts the same card inside a modal.
|
|
7
|
+
*/
|
|
8
|
+
export type TransactionConfirmShellMode = "page" | "dialog";
|
|
9
|
+
/**
|
|
10
|
+
* Pre-labelled, ready-to-render steps. The slot no longer restricts step ids
|
|
11
|
+
* to the execution union: session-plan steppers (agreement/approve/confirm
|
|
12
|
+
* plus a delayed request/complete tail) carry their own ids and labels, and
|
|
13
|
+
* visibility is the caller's decision — omit the slot to hide the stepper.
|
|
14
|
+
*/
|
|
15
|
+
export type TransactionConfirmShellStepper = ReadonlyArray<ProgressStepperStep>;
|
|
16
|
+
/**
|
|
17
|
+
* Shown instead of preview and execution once the phase is terminal.
|
|
18
|
+
*
|
|
19
|
+
* Both halves are required on purpose: supplying `result` at all is the
|
|
20
|
+
* caller's promise that either terminal phase can be rendered. A flow that
|
|
21
|
+
* cannot fail says so with an explicit `failure: null` rather than by omission,
|
|
22
|
+
* which would leave `phase: "failure"` with nothing to draw.
|
|
23
|
+
*/
|
|
24
|
+
export interface TransactionConfirmShellResult {
|
|
25
|
+
readonly success: React.ReactNode;
|
|
26
|
+
readonly failure: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* What the card is showing.
|
|
30
|
+
*
|
|
31
|
+
* A discriminated union rather than a handful of loose flags: a caller cannot
|
|
32
|
+
* ask for a preview and an error at once, and does not have to spell out the
|
|
33
|
+
* props that mean "nothing here". `placeholder` and `error` also pin the card
|
|
34
|
+
* to the `confirm` phase, so neither can ask for a result view it did not
|
|
35
|
+
* supply — the failure mode that produced an empty card before.
|
|
36
|
+
*/
|
|
37
|
+
export type TransactionConfirmShellBody =
|
|
38
|
+
/**
|
|
39
|
+
* Nothing to show yet: a spinner and a caption, drawn here so no consumer
|
|
40
|
+
* has to assemble one. Distinct from `ready`'s `previewLoading`, which is a
|
|
41
|
+
* skeleton over a preview that already exists.
|
|
42
|
+
*/
|
|
43
|
+
{
|
|
44
|
+
readonly kind: "loading";
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: "error";
|
|
47
|
+
/**
|
|
48
|
+
* Required: the discriminant already says the card failed, so the object
|
|
49
|
+
* has to be there. A caller holding `Error | null` picks this body only
|
|
50
|
+
* once it has one, and `placeholder` or `ready` while it does not.
|
|
51
|
+
*/
|
|
52
|
+
readonly error: Error;
|
|
53
|
+
/** Heading above the error line. Defaults to this library's own copy. */
|
|
54
|
+
readonly title?: string;
|
|
55
|
+
} | {
|
|
56
|
+
readonly kind: "ready";
|
|
57
|
+
readonly preview: React.ReactNode;
|
|
58
|
+
readonly execution?: React.ReactNode;
|
|
59
|
+
readonly stepper?: TransactionConfirmShellStepper;
|
|
60
|
+
readonly result?: TransactionConfirmShellResult;
|
|
61
|
+
/** This library's skeleton over the preview slot, for a live refetch. */
|
|
62
|
+
readonly previewLoading?: boolean;
|
|
63
|
+
};
|
|
64
|
+
interface TransactionConfirmShellBase {
|
|
65
|
+
readonly phase?: TransactionConfirmPhase;
|
|
66
|
+
readonly title: React.ReactNode;
|
|
67
|
+
readonly titleAddon?: React.ReactNode;
|
|
68
|
+
/** Drop the addon once the phase is terminal. */
|
|
69
|
+
readonly hideTitleAddonOnResult?: boolean;
|
|
70
|
+
readonly body: TransactionConfirmShellBody;
|
|
71
|
+
/** Merged onto the outer card; it never replaces the frame's own classes. */
|
|
72
|
+
readonly className?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The scrollable preview column. Defaults to
|
|
75
|
+
* {@link transactionConfirmPreviewScrollVariants}; compose with it rather
|
|
76
|
+
* than replacing it, so later changes to the base still carry over.
|
|
77
|
+
*/
|
|
78
|
+
readonly previewClassName?: string;
|
|
79
|
+
/** Outer card. The inner content keeps {@link TransactionConfirmDialogTest.root}. */
|
|
80
|
+
readonly "data-testid"?: string;
|
|
81
|
+
readonly shellTestId?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface TransactionConfirmShellProps extends TransactionConfirmShellBase {
|
|
84
|
+
readonly mode: TransactionConfirmShellMode;
|
|
85
|
+
/** `dialog` only: the modal renders nothing while closed. Ignored on `page`. */
|
|
86
|
+
readonly open?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Omit to hide the close control — that is how a surface without one, such
|
|
89
|
+
* as a verification page, opts out. A `dialog` without it cannot be
|
|
90
|
+
* dismissed, so pass one unless that is genuinely what you want.
|
|
91
|
+
*
|
|
92
|
+
* `mode` is deliberately a plain field rather than a discriminant that would
|
|
93
|
+
* make this required for dialogs: consumers carry the mode in a variable and
|
|
94
|
+
* a union would force every one of them to branch at the call site.
|
|
95
|
+
*/
|
|
96
|
+
readonly onClose?: () => void;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -17,12 +17,22 @@ export interface CompoundAPYProps {
|
|
|
17
17
|
/** Strategy base borrow cost in bps. */
|
|
18
18
|
borrowApy?: Bps;
|
|
19
19
|
/** Strategy additional (quota) borrow cost in bps. */
|
|
20
|
-
|
|
20
|
+
quotaRate?: Bps;
|
|
21
21
|
/**
|
|
22
22
|
* Number of decimal places for the total APY string.
|
|
23
23
|
* @default 2
|
|
24
24
|
*/
|
|
25
25
|
decimals?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the figure carries the yield breakdown on hover.
|
|
28
|
+
*
|
|
29
|
+
* Off where the number is already explained — a badge that states one rate
|
|
30
|
+
* and stops, or a figure something else already wraps in a tooltip of its
|
|
31
|
+
* own. The incentives icon stays either way; only the hover goes.
|
|
32
|
+
*
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
tooltip?: boolean;
|
|
26
36
|
className?: string;
|
|
27
37
|
}
|
|
28
38
|
/**
|
|
@@ -31,4 +41,4 @@ export interface CompoundAPYProps {
|
|
|
31
41
|
* No `tokensList`, no external APY, no 7D history, no "soon" points state.
|
|
32
42
|
* For the legacy percent-based API see {@link CompoundAPYLegacy}.
|
|
33
43
|
*/
|
|
34
|
-
export declare function CompoundAPY({ apy, maxLeverage, collateralApy, borrowApy,
|
|
44
|
+
export declare function CompoundAPY({ apy, maxLeverage, collateralApy, borrowApy, quotaRate, decimals, tooltip, className, }: CompoundAPYProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,13 +22,18 @@ export interface AdaptiveYAxisFormatterOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
yScaleMin?: number;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Compact unit on an already-formatted axis tick. Generic `"token"` / `"none"`
|
|
27
|
+
* stay bare so charts without a real unit don't render a placeholder.
|
|
28
|
+
*/
|
|
29
|
+
export declare function withYAxisUnit(label: string, unit: YMeasureUnits): string;
|
|
25
30
|
/**
|
|
26
31
|
* Creates an adaptive Y-axis formatter that determines precision dynamically
|
|
27
32
|
* based on visible range to ensure unique labels on the axis.
|
|
28
33
|
* Data point values (like current price label) are shown with full precision.
|
|
29
34
|
* Returns both the formatter and update functions.
|
|
30
35
|
*/
|
|
31
|
-
export declare function createAdaptiveYAxisFormatter(initialValues: number[],
|
|
36
|
+
export declare function createAdaptiveYAxisFormatter(initialValues: number[], unit: YMeasureUnits, options?: AdaptiveYAxisFormatterOptions): {
|
|
32
37
|
formatter: (price: number) => string;
|
|
33
38
|
tickmarksFormatter: (prices: number[]) => string[];
|
|
34
39
|
updateVisibleRange: (visibleValues: number[]) => void;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import { GraphProps } from './graph';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const graphViewVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "outlined" | "ghost" | "elevated" | null | undefined;
|
|
5
|
+
variant?: "default" | "outlined" | "ghost" | "elevated" | "plain" | null | undefined;
|
|
6
6
|
size?: "full" | "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
7
7
|
padding?: "none" | "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -30,6 +30,10 @@ export type VerticalLineOptions = Partial<{
|
|
|
30
30
|
width: number;
|
|
31
31
|
labelBackgroundColor: string;
|
|
32
32
|
labelTextColor: string;
|
|
33
|
+
/**
|
|
34
|
+
* Time-axis (bottom) badge. Independent of the top overlay, which renders
|
|
35
|
+
* whenever `labelText`, `value`, or `tooltipText` is set.
|
|
36
|
+
*/
|
|
33
37
|
showLabel: boolean;
|
|
34
38
|
/**
|
|
35
39
|
* Text shown only on hover of the line's badge (not rendered inline). Use it
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type HFIndicatorSize = "sm" | "md";
|
|
3
|
+
export interface HFIndicatorProps {
|
|
4
|
+
/** Pre-formatted health factor, e.g. `"1.05"`. */
|
|
5
|
+
readonly value: string;
|
|
6
|
+
/** `md` stands alone on a screen; `sm` fits a one-row banner. */
|
|
7
|
+
readonly size?: HFIndicatorSize;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Concentric rings around a health-factor value. Presentation only: the number
|
|
11
|
+
* arrives formatted, and the colour does not follow it — every caller so far
|
|
12
|
+
* renders this because the factor is already low.
|
|
13
|
+
*
|
|
14
|
+
* The box is the outermost ring, so the component occupies exactly what it
|
|
15
|
+
* paints and a caller can place it like any other block.
|
|
16
|
+
*/
|
|
17
|
+
export declare function HFIndicator({ value, size, }: HFIndicatorProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hf-indicator';
|
|
@@ -6,7 +6,7 @@ export * from './assets-list-cell';
|
|
|
6
6
|
export * from './badge';
|
|
7
7
|
export * from './base';
|
|
8
8
|
export * from './base-link';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './base-table';
|
|
10
10
|
export * from './breadcrumbs';
|
|
11
11
|
export * from './breakpoint-provider';
|
|
12
12
|
export * from './buttons';
|
|
@@ -14,6 +14,7 @@ export * from './cards';
|
|
|
14
14
|
export * from './checkbox';
|
|
15
15
|
export * from './checkbox-item';
|
|
16
16
|
export * from './client-adapters';
|
|
17
|
+
export * from './collateral-allocation-tooltip';
|
|
17
18
|
export * from './composites';
|
|
18
19
|
export * from './compound-apy';
|
|
19
20
|
export * from './confirm-menu';
|
|
@@ -33,8 +34,10 @@ export * from './guard';
|
|
|
33
34
|
export * from './head-cell';
|
|
34
35
|
export * from './health-factor';
|
|
35
36
|
export * from './help-tip';
|
|
37
|
+
export * from './hf-indicator';
|
|
36
38
|
export * from './icon-button';
|
|
37
39
|
export * from './icons';
|
|
40
|
+
export * from './infinite-scroll';
|
|
38
41
|
export * from './input';
|
|
39
42
|
export * from './label';
|
|
40
43
|
export * from './layout';
|
|
@@ -44,6 +47,7 @@ export * from './loader';
|
|
|
44
47
|
export * from './loading';
|
|
45
48
|
export * from './loading-bar';
|
|
46
49
|
export * from './modal';
|
|
50
|
+
export * from './name-cell';
|
|
47
51
|
export * from './navbar-logo';
|
|
48
52
|
export * from './navigation-context';
|
|
49
53
|
export * from './points-icon';
|
|
@@ -51,6 +55,7 @@ export * from './pool-points-indicator';
|
|
|
51
55
|
export * from './rounded-image';
|
|
52
56
|
export * from './rwa-feature';
|
|
53
57
|
export * from './rwa-styles';
|
|
58
|
+
export * from './sdk-status-pill';
|
|
54
59
|
export * from './search-line';
|
|
55
60
|
export * from './segmented-control';
|
|
56
61
|
export * from './select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './infinite-scroll-wrapper';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
export interface InfiniteScrollWrapperProps {
|
|
3
|
+
readonly dataLength: number;
|
|
4
|
+
readonly hasMore: boolean;
|
|
5
|
+
readonly onNextLoad: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* List footer that asks for the next page. Presentation only: the caller
|
|
9
|
+
* owns paging state and `onNextLoad`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function InfiniteScrollWrapper({ hasMore, dataLength, children, onNextLoad, }: PropsWithChildren<InfiniteScrollWrapperProps>): React.ReactElement;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BlockSyncProps } from '../../../types/footer';
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
/**
|
|
4
3
|
* A single legal/navigation link rendered in {@link AppFooter}.
|
|
@@ -30,20 +29,14 @@ export interface AppFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
30
29
|
*/
|
|
31
30
|
year?: number;
|
|
32
31
|
/**
|
|
33
|
-
*
|
|
32
|
+
* Slot between the copyright and the links — typically a
|
|
33
|
+
* {@link SyncStatusPill}. The footer knows nothing about what goes in it.
|
|
34
|
+
*
|
|
35
|
+
* A slot rather than sync-specific props: the footer used to accept a fixed
|
|
36
|
+
* `blockSyncProps` shape and render its own pill from it, which made every
|
|
37
|
+
* change to the indicator a change to the footer's API.
|
|
34
38
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Label rendered inside the status pill. Defaults to `Status`.
|
|
38
|
-
*/
|
|
39
|
-
statusLabel?: React.ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* When provided, the status pill becomes a live network-synchronization
|
|
42
|
-
* indicator ({@link BlockSyncPill}): the dot color reflects the time since
|
|
43
|
-
* the last block update and hovering reveals per-chain block details.
|
|
44
|
-
* Without it, a static green status pill is rendered.
|
|
45
|
-
*/
|
|
46
|
-
blockSyncProps?: BlockSyncProps;
|
|
39
|
+
status?: React.ReactNode;
|
|
47
40
|
}
|
|
48
41
|
/**
|
|
49
42
|
* AppFooter — minimal, Hyperliquid-style footer used by the Gearbox App
|
|
@@ -56,7 +49,8 @@ export interface AppFooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
56
49
|
* @example
|
|
57
50
|
* ```tsx
|
|
58
51
|
* <AppFooter />
|
|
59
|
-
* <AppFooter links={myLinks} copyright="© Acme, 2026"
|
|
52
|
+
* <AppFooter links={myLinks} copyright="© Acme, 2026" />
|
|
53
|
+
* <AppFooter status={<SyncStatusPill {...syncProps} />} />
|
|
60
54
|
* ```
|
|
61
55
|
*/
|
|
62
56
|
export declare const AppFooter: React.ForwardRefExoticComponent<AppFooterProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './name-cell';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export interface NameCellProps {
|
|
3
|
+
readonly title: ReactNode;
|
|
4
|
+
readonly subtitle?: ReactNode;
|
|
5
|
+
readonly chips?: ReactNode;
|
|
6
|
+
readonly caption?: ReactNode;
|
|
7
|
+
readonly leading?: ReactNode;
|
|
8
|
+
readonly disabledStyle?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Table-name layout: optional leading slot, title + chips, subtitle, caption.
|
|
12
|
+
*/
|
|
13
|
+
export declare function NameCell({ title, subtitle, chips, caption, leading, disabledStyle, }: NameCellProps): React.ReactElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ButtonProps } from '../buttons';
|
|
2
|
+
import { NetworkIcons } from '../../utils/network-icons';
|
|
3
|
+
type IndicatorSize = "sm" | "md" | "default" | "lg";
|
|
4
|
+
export interface NetworkIndicatorProps extends Omit<ButtonProps, "size" | "children"> {
|
|
5
|
+
network: NetworkIcons | undefined;
|
|
6
|
+
chainId: number | undefined;
|
|
7
|
+
size?: IndicatorSize;
|
|
8
|
+
iconSize?: number;
|
|
9
|
+
chevronSize?: number;
|
|
10
|
+
showTitle?: boolean;
|
|
11
|
+
opened: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* When true, button appears enabled and shows chevron even without onClick.
|
|
14
|
+
* Useful when the component is used as a dropdown trigger that handles clicks externally.
|
|
15
|
+
* Defaults to true when onClick is provided.
|
|
16
|
+
*/
|
|
17
|
+
interactive?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Network picker trigger: optional "Network:" label, icon, and chevron.
|
|
21
|
+
*/
|
|
22
|
+
export declare const NetworkIndicator: import('react').ForwardRefExoticComponent<NetworkIndicatorProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SdkAttachStatus } from './sdk-status';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export interface SdkStatusPillProps {
|
|
4
|
+
/** Where the SDK is in its attach lifecycle. */
|
|
5
|
+
status: SdkAttachStatus;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* SdkStatusPill — whether the SDK is connected, as one dot in an app footer.
|
|
9
|
+
*
|
|
10
|
+
* Deliberately narrow: it reports the **SDK's attach lifecycle** and nothing
|
|
11
|
+
* else. It is not a data-freshness indicator — it will not go grey because a
|
|
12
|
+
* chain lagged or the backend failed, and it says nothing about what is on
|
|
13
|
+
* screen. Screens surface their own failures.
|
|
14
|
+
*
|
|
15
|
+
* Two constraints, both product decisions:
|
|
16
|
+
*
|
|
17
|
+
* - **The palette is green and muted grey only**, never red or amber. See
|
|
18
|
+
* {@link sdkStatusDotVariant}.
|
|
19
|
+
* - **No visible label**, so the tooltip carries the wording and is mirrored
|
|
20
|
+
* into `aria-label` — a screen reader cannot see the colour.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <AppFooter status={<SdkStatusPill status={attach.status} />} />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function SdkStatusPill({ status, }: SdkStatusPillProps): React.ReactElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Where the SDK is in its attach lifecycle. */
|
|
2
|
+
export type SdkAttachStatus = "loading" | "error" | "ready";
|
|
3
|
+
/** Dot variants this indicator is allowed to use. */
|
|
4
|
+
export type SdkStatusDotVariant = "success" | "default";
|
|
5
|
+
/**
|
|
6
|
+
* The palette rule, as a function rather than a comment: green once the SDK is
|
|
7
|
+
* usable, muted grey otherwise. Never `alert` or `warning` — an alarming dot in
|
|
8
|
+
* permanent view teaches people to ignore it, and the screens surface their own
|
|
9
|
+
* failures. Exported so the rule is pinned by a test rather than by review.
|
|
10
|
+
*/
|
|
11
|
+
export declare function sdkStatusDotVariant(status: SdkAttachStatus): SdkStatusDotVariant;
|
|
@@ -37,11 +37,11 @@ export interface GraphData {
|
|
|
37
37
|
/**
|
|
38
38
|
* TradingView component props
|
|
39
39
|
*/
|
|
40
|
-
export interface TradingViewProps<T extends string = string> extends Omit<GraphViewWithDataProps, "series" | "loading" | "toolbar" | "size" | "showLegend" | "onUnselectSeries" | "yMeasureUnit" | "currentValueDecimals" | "data"> {
|
|
40
|
+
export interface TradingViewProps<T extends string = string, TRange extends string = string> extends Omit<GraphViewWithDataProps, "series" | "loading" | "toolbar" | "size" | "showLegend" | "onUnselectSeries" | "yMeasureUnit" | "currentValueDecimals" | "data" | "title"> {
|
|
41
41
|
/** Graph data - single or array of series */
|
|
42
42
|
data: GraphData | Array<GraphData> | undefined;
|
|
43
43
|
/** Y-axis unit for single or multiple series */
|
|
44
|
-
yMeasureUnit?: YMeasureUnits |
|
|
44
|
+
yMeasureUnit?: YMeasureUnits | ReadonlyArray<YMeasureUnits>;
|
|
45
45
|
/** Chart height in pixels */
|
|
46
46
|
height?: number;
|
|
47
47
|
/** Default selected graph item(s) */
|
|
@@ -53,11 +53,11 @@ export interface TradingViewProps<T extends string = string> extends Omit<GraphV
|
|
|
53
53
|
/** Enable multiple graph selection */
|
|
54
54
|
isMultipleSelect?: boolean;
|
|
55
55
|
/** Available time range options */
|
|
56
|
-
rangeList: RangeButtonsProps<
|
|
56
|
+
rangeList: RangeButtonsProps<TRange>["rangeList"];
|
|
57
57
|
/** Currently selected time range */
|
|
58
|
-
range:
|
|
58
|
+
range: TRange;
|
|
59
59
|
/** Callback to change selected range */
|
|
60
|
-
setRange: (range:
|
|
60
|
+
setRange: (range: TRange) => void;
|
|
61
61
|
/** Callback when expand button is clicked */
|
|
62
62
|
onGraphExpanded?: () => void;
|
|
63
63
|
/** Whether graph is currently expanded */
|
|
@@ -110,11 +110,18 @@ export interface TradingViewProps<T extends string = string> extends Omit<GraphV
|
|
|
110
110
|
seriesColorPersistenceKey?: string;
|
|
111
111
|
/**
|
|
112
112
|
* When true, all user-initiated zoom and pan interactions are disabled.
|
|
113
|
-
* The time range can only be changed via the range
|
|
113
|
+
* The time range can only be changed via the range dropdown.
|
|
114
114
|
* Disables: mouse-wheel zoom, pinch zoom, axis drag, axis double-click reset,
|
|
115
115
|
* and scroll/drag panning.
|
|
116
116
|
*/
|
|
117
117
|
disableZoom?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Controls rendered to the left of the range dropdown (e.g. leverage chips).
|
|
120
|
+
* A divider is shown between this slot and the dropdown when both are present.
|
|
121
|
+
*/
|
|
122
|
+
trailing?: React.ReactNode;
|
|
123
|
+
/** Heading to the left of the chart controls, outside the chart frame. */
|
|
124
|
+
title?: React.ReactNode;
|
|
118
125
|
}
|
|
119
126
|
/**
|
|
120
127
|
* TradingView — comprehensive charting component with graph selection and time range controls.
|
|
@@ -171,4 +178,4 @@ export interface TradingViewProps<T extends string = string> extends Omit<GraphV
|
|
|
171
178
|
* />
|
|
172
179
|
* ```
|
|
173
180
|
*/
|
|
174
|
-
export declare function TradingView<T extends string = string>({ data, yMeasureUnit, height, defaultGraph, onGraphSelected, graphs, isMultipleSelect, range, rangeList, setRange, onGraphExpanded, isGraphExpanded, onUnselectSeries, graphsWithNoData, loadingGraphs, isLoading: isLoadingProp, noDataMessage, currentValueDecimals, containerClassName, useSharedPriceScale, showCurrentValue, yScaleMin, yScaleMinMultiple, seriesColorPersistenceKey, ...restProps }: TradingViewProps<T>): React.ReactElement;
|
|
181
|
+
export declare function TradingView<T extends string = string, TRange extends string = string>({ data, yMeasureUnit, height, defaultGraph, onGraphSelected, graphs, isMultipleSelect, range, rangeList, setRange, onGraphExpanded, isGraphExpanded, onUnselectSeries, graphsWithNoData, loadingGraphs, isLoading: isLoadingProp, noDataMessage, currentValueDecimals, containerClassName, useSharedPriceScale, showCurrentValue, yScaleMin, yScaleMinMultiple, seriesColorPersistenceKey, title, trailing, ...restProps }: TradingViewProps<T, TRange>): React.ReactElement;
|
|
@@ -8,25 +8,23 @@ export interface YieldBreakdownTooltipProps {
|
|
|
8
8
|
supplyApy: ApyBreakdown;
|
|
9
9
|
/**
|
|
10
10
|
* Strategy-only plain leverage multiplier (e.g. `13.6` for 13.6x). When set,
|
|
11
|
-
* the header
|
|
11
|
+
* the header is "Net APY at Nx Leverage" and a Borrow Rate row is shown.
|
|
12
12
|
*/
|
|
13
13
|
maxLeverage?: Leverage;
|
|
14
14
|
/**
|
|
15
|
-
* Strategy collateral yield used for
|
|
16
|
-
* {@link supplyApy} when omitted.
|
|
15
|
+
* Strategy collateral yield used for Collateral / Incentive rows. Falls back
|
|
16
|
+
* to {@link supplyApy} when omitted.
|
|
17
17
|
*/
|
|
18
18
|
collateralApy?: ApyBreakdown;
|
|
19
19
|
/** Strategy base borrow cost in bps (shown as a negative rate). */
|
|
20
20
|
borrowApy?: Bps;
|
|
21
|
-
/** Strategy
|
|
22
|
-
|
|
21
|
+
/** Strategy quota rate in bps, at 1x (folded into Borrow Rate). */
|
|
22
|
+
quotaRate?: Bps;
|
|
23
23
|
children?: React.ReactNode;
|
|
24
24
|
className?: string;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* `
|
|
29
|
-
*
|
|
30
|
-
* Visuals follow Figma «Yield Details Surface» (400px card, always expanded).
|
|
27
|
+
* Earn APY tooltip — strategy (`Net APY at Nx Leverage`) and pool
|
|
28
|
+
* (`Overall APY`) layouts from SDK `ApyBreakdown`.
|
|
31
29
|
*/
|
|
32
|
-
export declare function YieldBreakdownTooltip({ supplyApy, maxLeverage, collateralApy, borrowApy,
|
|
30
|
+
export declare function YieldBreakdownTooltip({ supplyApy, maxLeverage, collateralApy, borrowApy, quotaRate, children, className, }: YieldBreakdownTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -63,9 +63,14 @@ export declare const preset: {
|
|
|
63
63
|
"success-foreground": string;
|
|
64
64
|
"success-hover": string;
|
|
65
65
|
warning: string;
|
|
66
|
+
info: {
|
|
67
|
+
DEFAULT: string;
|
|
68
|
+
foreground: string;
|
|
69
|
+
};
|
|
66
70
|
liquidation: string;
|
|
67
71
|
"liquidation-line": string;
|
|
68
72
|
border: string;
|
|
73
|
+
divider: string;
|
|
69
74
|
input: string;
|
|
70
75
|
ring: string;
|
|
71
76
|
"text-secondary": string;
|
|
@@ -91,6 +96,13 @@ export declare const preset: {
|
|
|
91
96
|
"3": string;
|
|
92
97
|
"4": string;
|
|
93
98
|
"5": string;
|
|
99
|
+
"6": string;
|
|
100
|
+
"7": string;
|
|
101
|
+
"8": string;
|
|
102
|
+
"9": string;
|
|
103
|
+
"10": string;
|
|
104
|
+
"11": string;
|
|
105
|
+
"12": string;
|
|
94
106
|
};
|
|
95
107
|
};
|
|
96
108
|
fontFamily: {
|
|
@@ -5,6 +5,7 @@ export * from './use-debounce-call';
|
|
|
5
5
|
export * from './use-filter';
|
|
6
6
|
export * from './use-hf';
|
|
7
7
|
export * from './use-media-query';
|
|
8
|
+
export * from './use-observed-width-key';
|
|
8
9
|
export * from './use-opened-state';
|
|
9
10
|
export * from './use-previous';
|
|
10
11
|
export * from './use-smart-number-input';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks the rounded CSS-pixel width of an element via ResizeObserver.
|
|
3
|
+
* Useful when a layout should collapse by container width, not viewport.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useObservedWidthKey<T extends HTMLElement>(): {
|
|
6
|
+
ref: import('react').RefObject<T | null>;
|
|
7
|
+
widthKey: number;
|
|
8
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,13 +8,14 @@ export * from './components/app-bar';
|
|
|
8
8
|
export * from './components/assets-list-cell';
|
|
9
9
|
export * from './components/badge';
|
|
10
10
|
export * from './components/base-link';
|
|
11
|
-
export * from './components/
|
|
11
|
+
export * from './components/base-table';
|
|
12
12
|
export * from './components/breadcrumbs';
|
|
13
13
|
export * from './components/breakpoint-provider';
|
|
14
14
|
export * from './components/buttons';
|
|
15
15
|
export * from './components/cards';
|
|
16
16
|
export * from './components/checkbox';
|
|
17
17
|
export * from './components/client-adapters';
|
|
18
|
+
export * from './components/collateral-allocation-tooltip';
|
|
18
19
|
export * from './components/composites';
|
|
19
20
|
export * from './components/compound-apy';
|
|
20
21
|
export * from './components/confirm-menu';
|
|
@@ -34,8 +35,10 @@ export * from './components/guard';
|
|
|
34
35
|
export * from './components/head-cell';
|
|
35
36
|
export * from './components/health-factor';
|
|
36
37
|
export * from './components/help-tip';
|
|
38
|
+
export * from './components/hf-indicator';
|
|
37
39
|
export * from './components/icon-button';
|
|
38
40
|
export * from './components/icons';
|
|
41
|
+
export * from './components/infinite-scroll';
|
|
39
42
|
export * from './components/input';
|
|
40
43
|
export * from './components/label';
|
|
41
44
|
export * from './components/layout';
|
|
@@ -45,6 +48,7 @@ export * from './components/loader';
|
|
|
45
48
|
export * from './components/loading';
|
|
46
49
|
export * from './components/loading-bar';
|
|
47
50
|
export * from './components/modal';
|
|
51
|
+
export * from './components/name-cell';
|
|
48
52
|
export * from './components/navbar-logo';
|
|
49
53
|
export * from './components/navigation-context';
|
|
50
54
|
export * from './components/network-icon';
|
|
@@ -53,6 +57,7 @@ export * from './components/pool-points-indicator';
|
|
|
53
57
|
export * from './components/rounded-image';
|
|
54
58
|
export * from './components/rwa-feature';
|
|
55
59
|
export * from './components/rwa-styles';
|
|
60
|
+
export * from './components/sdk-status-pill';
|
|
56
61
|
export * from './components/search-line';
|
|
57
62
|
export * from './components/segmented-control';
|
|
58
63
|
export * from './components/select';
|
|
@@ -91,12 +96,11 @@ export * from './configs/variants';
|
|
|
91
96
|
export * from './hooks';
|
|
92
97
|
export type { LocaleKeys } from './locale';
|
|
93
98
|
export * from './locale';
|
|
94
|
-
export type { BlockSyncProps } from './types/footer';
|
|
95
99
|
export { EnglishLocale };
|
|
96
100
|
export * from './utils';
|
|
97
101
|
export * from './utils/a11y';
|
|
98
102
|
export { cn } from './utils/cn';
|
|
99
103
|
export * from './utils/copy';
|
|
100
104
|
export * from './utils/format';
|
|
101
|
-
export { formatMoney, formatPercentAmount, percentageTemplate, percentTemplate, } from './utils/format-money';
|
|
105
|
+
export { formatCompactPercent, formatMoney, formatPercentAmount, percentageTemplate, percentTemplate, } from './utils/format-money';
|
|
102
106
|
export * from './utils/templates';
|