@gearbox-protocol/ui-kit 4.0.0-next.1 → 4.0.0-next.10
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 +85 -41
- 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 +37 -43
- package/dist/esm/components/checkbox/checkbox-labeled.js +34 -40
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +33 -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 +34 -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 +20 -3
- 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 +10 -3
- 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 +3 -15
- 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,12 +1,15 @@
|
|
|
1
1
|
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { Address } from 'viem';
|
|
4
|
+
import { CollateralAllocation } from '../collateral-allocation-tooltip';
|
|
4
5
|
type Mode = "default" | "cascade";
|
|
5
6
|
interface CommonOptions {
|
|
6
7
|
mode?: Mode;
|
|
7
8
|
showIconTooltip?: boolean;
|
|
8
9
|
otherTooltip?: React.ReactNode;
|
|
9
10
|
onOtherClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
/** When set, hover on the cascade shows the allocation mix instead of per-icon symbols. */
|
|
12
|
+
allocation?: CollateralAllocation;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* Single asset cell props (new API)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
4
|
+
variant?: "default" | "success" | "warning" | "destructive" | "secondary" | "info" | "outline" | "neutral" | "danger" | "accent" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
/**
|
|
7
7
|
* Badge — component for displaying labels, tags, or status indicators.
|
|
@@ -15,6 +15,7 @@ declare const badgeVariants: (props?: ({
|
|
|
15
15
|
* - `secondary` — secondary badge with muted background.
|
|
16
16
|
* - `destructive` — destructive badge with red background for errors/warnings.
|
|
17
17
|
* - `outline` — outlined badge with border only.
|
|
18
|
+
* - `success` / `info` / `warning` / `danger` / `accent` / `neutral` — tinted chips.
|
|
18
19
|
*
|
|
19
20
|
* Note: Prefer using this component instead of native HTML div element for badges.
|
|
20
21
|
*
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export declare class ChipTest {
|
|
3
|
+
static root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class ChipsTest {
|
|
6
|
+
static root: string;
|
|
7
|
+
static chip: string;
|
|
8
|
+
}
|
|
9
|
+
export type ChipTone = "success" | "info" | "neutral" | "warning" | "danger" | "accent";
|
|
10
|
+
export interface ChipProps {
|
|
11
|
+
readonly children?: ReactNode;
|
|
12
|
+
readonly tone?: ChipTone;
|
|
13
|
+
readonly className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Tinted {@link Badge} for table/status chips. */
|
|
16
|
+
export declare function Chip({ children, tone, className, }: ChipProps): React.ReactElement;
|
|
17
|
+
export interface ChipsProps {
|
|
18
|
+
readonly children: ReactNode;
|
|
19
|
+
readonly className?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Horizontal row of {@link Chip} (or other badge nodes). */
|
|
22
|
+
export declare function Chips({ children, className }: ChipsProps): React.ReactElement;
|
|
@@ -2,7 +2,9 @@ import { Token } from '@gearbox-protocol/sdk/model';
|
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { TitleText } from '../text';
|
|
4
4
|
import { AmountInputTest } from './constants';
|
|
5
|
+
import { TokenButtonSize } from './token-button';
|
|
5
6
|
export { AmountInputTest };
|
|
7
|
+
export type AmountInputSize = TokenButtonSize;
|
|
6
8
|
export interface AmountInputProps {
|
|
7
9
|
readonly amount: bigint;
|
|
8
10
|
readonly onAmount: (amount: bigint) => void;
|
|
@@ -11,19 +13,28 @@ export interface AmountInputProps {
|
|
|
11
13
|
readonly tokens?: ReadonlyArray<Token>;
|
|
12
14
|
readonly onToken?: (token: Token) => void;
|
|
13
15
|
readonly balance?: bigint;
|
|
16
|
+
/** Wallet balances by token address — the picker's balance column. */
|
|
17
|
+
readonly balances?: Readonly<Record<string, bigint>>;
|
|
18
|
+
/** USD price per whole token by address — the picker's USD line. */
|
|
19
|
+
readonly usdPrices?: Readonly<Record<string, number>>;
|
|
14
20
|
/** Label above the field; defaults to the "Amount" locale string. */
|
|
15
21
|
readonly label?: TitleText;
|
|
16
22
|
/** Label of the balance row; defaults to the "Balance" locale string. */
|
|
17
23
|
readonly maxLabel?: TitleText;
|
|
18
24
|
/** USD price per one whole token; shows a USD equivalent when set. */
|
|
19
25
|
readonly usdPrice?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Field density. Defaults to `sm` on mobile and `md` otherwise — the
|
|
28
|
+
* reference `SmartNumberInput` sizes from agentic-rwa.
|
|
29
|
+
*/
|
|
30
|
+
readonly size?: AmountInputSize;
|
|
20
31
|
readonly disabled?: boolean;
|
|
21
32
|
readonly testId?: string;
|
|
22
33
|
}
|
|
23
34
|
/**
|
|
24
35
|
* The one amount field of a dialog: label row with balance and MAX, a large
|
|
25
|
-
* value input beside the token (icon + optional
|
|
36
|
+
* value input beside the token (icon + optional modal picker), and a USD
|
|
26
37
|
* equivalent. The reference `SmartNumberInput` markup on SDK-typed props —
|
|
27
38
|
* design only, `bigint` in / `bigint` out.
|
|
28
39
|
*/
|
|
29
|
-
export declare function AmountInput({ amount, onAmount, token, tokens, onToken, balance, label, maxLabel, usdPrice, disabled, testId, }: AmountInputProps): React.ReactElement;
|
|
40
|
+
export declare function AmountInput({ amount, onAmount, token, tokens, onToken, balance, balances, usdPrices, label, maxLabel, usdPrice, size, disabled, testId, }: AmountInputProps): React.ReactElement;
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { default as React } from 'react';
|
|
4
|
+
declare const blockVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "md" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type TokenButtonSize = NonNullable<VariantProps<typeof blockVariants>["size"]>;
|
|
3
8
|
export interface TokenButtonProps {
|
|
4
9
|
readonly token: Token | undefined;
|
|
5
10
|
/** When set and not disabled, the block is clickable and shows a chevron. */
|
|
6
11
|
readonly onClick?: () => void;
|
|
7
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Marks the block as a picker trigger (cursor + chevron) without a local
|
|
14
|
+
* click handler — for use inside a dropdown trigger that owns the toggle.
|
|
15
|
+
*/
|
|
16
|
+
readonly interactive?: boolean;
|
|
17
|
+
/** Rotates the chevron (picker open). */
|
|
8
18
|
readonly active?: boolean;
|
|
9
19
|
readonly disabled?: boolean;
|
|
20
|
+
readonly size?: TokenButtonSize;
|
|
10
21
|
}
|
|
11
22
|
/**
|
|
12
23
|
* Token display with icon and optional chevron — the trigger of the token
|
|
13
24
|
* picker. Internal to `AmountInput` (the reference `CurrencyButton`, retyped
|
|
14
25
|
* on the SDK `Token`).
|
|
15
26
|
*/
|
|
16
|
-
export declare function TokenButton({ token, onClick, active, disabled, }: TokenButtonProps): React.ReactElement;
|
|
27
|
+
export declare function TokenButton({ token, onClick, interactive, active, disabled, size, }: TokenButtonProps): React.ReactElement;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface TokenSelectPanelProps {
|
|
4
|
+
readonly tokens: ReadonlyArray<Token>;
|
|
5
|
+
/** Wallet balances by token address (either casing); shows a balance column. */
|
|
6
|
+
readonly balances?: Readonly<Record<string, bigint>>;
|
|
7
|
+
/** USD price per one whole token by address; shows a USD line under the balance. */
|
|
8
|
+
readonly usdPrices?: Readonly<Record<string, number>>;
|
|
9
|
+
readonly onSelect: (token: Token) => void;
|
|
10
|
+
readonly onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Token picker body of `AmountInput` — the reference `TokenSelectModal`
|
|
14
|
+
* (`ConfirmMenu` + name/balance rows) on SDK-typed props. Always rendered
|
|
15
|
+
* inside a `Modal`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function TokenSelectPanel({ tokens, balances, usdPrices, onSelect, onClose, }: TokenSelectPanelProps): React.ReactElement;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BorrowRateBreakdown, Bps } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { BorrowRateBlockTest } from './constants';
|
|
4
|
+
export { BorrowRateBlockTest };
|
|
5
|
+
/**
|
|
6
|
+
* The SDK's `borrowRate` breakdown, or a bare `Bps` when only the position's
|
|
7
|
+
* plain `borrowApy` is available (offchain mode: no breakdown to split into
|
|
8
|
+
* total / base). A caller never picks a field itself, so `total` and `base`
|
|
9
|
+
* can't drift out of sync the way threading two separately-extracted `Bps`
|
|
10
|
+
* numbers through two props invited.
|
|
11
|
+
*/
|
|
12
|
+
export type BorrowRateValue = BorrowRateBreakdown | Bps;
|
|
13
|
+
export interface BorrowRateBlockProps {
|
|
14
|
+
readonly data: BorrowRateValue | undefined;
|
|
15
|
+
readonly dataTo?: BorrowRateValue;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Borrow-rate row: total on the trigger, Base Rate from the SDK, Rates
|
|
19
|
+
* normalization as a dash until the SDK reports it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function BorrowRateBlock({ data, dataTo, }: BorrowRateBlockProps): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChartWithSideCardTest } from './constants';
|
|
3
|
+
export { ChartWithSideCardTest };
|
|
4
|
+
export interface ChartWithSideCardProps {
|
|
5
|
+
readonly chart: React.ReactNode;
|
|
6
|
+
readonly side: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Detail-page yield layout: chart on the left, a side card on the right.
|
|
10
|
+
* The card is one StatBadge column wide; if that would squeeze the chart
|
|
11
|
+
* below 40rem, the card wraps underneath at full width instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ChartWithSideCard({ chart, side, }: ChartWithSideCardProps): React.ReactElement;
|
|
@@ -6,10 +6,9 @@ import { DetailedPageTitleTest } from './constants';
|
|
|
6
6
|
export type DetailedPageTitleExplorerLink = ExplorerLink;
|
|
7
7
|
export { DetailedPageTitleTest };
|
|
8
8
|
export interface DetailedPageTitleProps {
|
|
9
|
-
|
|
9
|
+
/** Visible heading; a node (e.g. a token-pair title) renders as given. */
|
|
10
|
+
readonly title: PageTitleText | React.ReactNode;
|
|
10
11
|
readonly browserTitle?: PageTitleText;
|
|
11
|
-
/** Document-head hook forwarded to {@link PageTitle}. */
|
|
12
|
-
readonly head?: (browserTitle: string) => React.ReactNode;
|
|
13
12
|
/**
|
|
14
13
|
* Token whose icon heads the title. The model `Token` is enough — the icon
|
|
15
14
|
* is resolved from the symbol inside ui-kit.
|
|
@@ -28,4 +27,4 @@ export interface DetailedPageTitleProps {
|
|
|
28
27
|
readonly className?: string;
|
|
29
28
|
}
|
|
30
29
|
/** Detail screen heading: token icon + title + badges + copy/explorer actions. */
|
|
31
|
-
export declare function DetailedPageTitle({ title, browserTitle,
|
|
30
|
+
export declare function DetailedPageTitle({ title, browserTitle, token, icon, tokenIconSize, disabled, toCopy, explorerLinks, badges, actions, buttonsSlot, meta, actionsPosition, className, }: DetailedPageTitleProps): React.ReactElement;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { Bps } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { TitleText } from '../text';
|
|
3
4
|
import { HFZones } from '../../health-factor';
|
|
4
5
|
import { HealthFactorBlockTest } from './constants';
|
|
5
6
|
export { HealthFactorBlockTest };
|
|
6
7
|
export interface HealthFactorBlockProps {
|
|
7
|
-
/**
|
|
8
|
-
readonly
|
|
8
|
+
/** SDK `healthFactor` in basis points (e.g. 15000 = 1.5); omit to render "—". */
|
|
9
|
+
readonly healthFactor?: Bps;
|
|
9
10
|
/** Target HF after the operation; renders a from → to transition. */
|
|
10
|
-
readonly
|
|
11
|
+
readonly healthFactorTo?: Bps;
|
|
11
12
|
/** Debt in base units; a 0n debt renders "N/A". */
|
|
12
13
|
readonly debt: bigint;
|
|
13
14
|
/** Debt after the operation (defaults to `debt`). */
|
|
@@ -23,7 +24,6 @@ export interface HealthFactorBlockProps {
|
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* "Health factor" row of a preview: label + help tip on the left, the zone-
|
|
26
|
-
* colored HF (with optional from → to transition) on the right.
|
|
27
|
-
* the reference `HFBlock` markup on bare value props.
|
|
27
|
+
* colored HF (with optional from → to transition) on the right.
|
|
28
28
|
*/
|
|
29
|
-
export declare function HealthFactorBlock({
|
|
29
|
+
export declare function HealthFactorBlock({ healthFactor, healthFactorTo, debt, debtTo, zone, isLoading, title, tip, testId, }: HealthFactorBlockProps): React.ReactElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HistoryRange, HistorySeries } from '@gearbox-protocol/sdk/model';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { TitleText } from '../text';
|
|
3
4
|
import { PriceLineConfig, PriceZoneConfig } from '../../graph';
|
|
4
5
|
import { YMeasureUnits } from '../../graph/formatters';
|
|
5
6
|
import { HistoryChartTest } from './constants';
|
|
@@ -21,10 +22,26 @@ export interface HistoryChartProps {
|
|
|
21
22
|
readonly priceLines?: ReadonlyArray<PriceLineConfig>;
|
|
22
23
|
/** Shaded horizontal bands, e.g. a liquidation danger zone. */
|
|
23
24
|
readonly zones?: ReadonlyArray<PriceZoneConfig>;
|
|
25
|
+
/**
|
|
26
|
+
* Current-value overlay in the chart corner. Detail screens keep this off;
|
|
27
|
+
* defaults to `false`.
|
|
28
|
+
*/
|
|
29
|
+
readonly showCurrentValue?: boolean;
|
|
30
|
+
/** Y-axis floor when the series has data. */
|
|
31
|
+
readonly yScaleMin?: number;
|
|
32
|
+
/** Heading to the left of the range dropdown, above the chart frame. */
|
|
33
|
+
readonly title?: TitleText;
|
|
34
|
+
/** Controls to the left of the range dropdown (e.g. leverage chips). */
|
|
35
|
+
readonly trailing?: React.ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Force a second Y-axis. When omitted, the chart splits axes only if
|
|
38
|
+
* `yMeasureUnit` lists more than one distinct unit.
|
|
39
|
+
*/
|
|
40
|
+
readonly dualYAxis?: boolean;
|
|
24
41
|
}
|
|
25
42
|
/**
|
|
26
|
-
* Design-only history chart on the TradingView engine: range
|
|
27
|
-
* tooltips, optional reference lines and zones. Takes the SDK's
|
|
43
|
+
* Design-only history chart on the TradingView engine: range dropdown, legend
|
|
44
|
+
* below the frame, tooltips, optional reference lines and zones. Takes the SDK's
|
|
28
45
|
* `HistorySeries` as it comes — points are mapped 1:1, no fetching.
|
|
29
46
|
*/
|
|
30
|
-
export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, }: HistoryChartProps): React.ReactElement;
|
|
47
|
+
export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, showCurrentValue, yScaleMin, title, trailing, dualYAxis: dualYAxisProp, }: HistoryChartProps): React.ReactElement;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './amount-input';
|
|
2
|
+
export * from './borrow-rate-block';
|
|
3
|
+
export * from './chart-with-side-card';
|
|
2
4
|
export * from './detailed-page-title';
|
|
3
5
|
export * from './details-view';
|
|
4
6
|
export * from './health-factor-block';
|
|
@@ -6,18 +8,28 @@ export * from './history-chart';
|
|
|
6
8
|
export * from './info-list';
|
|
7
9
|
export * from './info-portal';
|
|
8
10
|
export * from './leverage-input';
|
|
11
|
+
export * from './leverage-preset-chips';
|
|
12
|
+
export * from './liquidation-params-table';
|
|
9
13
|
export * from './liquidation-price-block';
|
|
10
14
|
export * from './manage-pane';
|
|
15
|
+
export * from './more-accordion';
|
|
16
|
+
export * from './nested-info-stack';
|
|
11
17
|
export * from './page-title';
|
|
18
|
+
export * from './pool-apy-breakdown-card';
|
|
12
19
|
export * from './review-button';
|
|
13
20
|
export * from './section-heading';
|
|
14
21
|
export * from './segmented-tabs';
|
|
22
|
+
export * from './side-card';
|
|
15
23
|
export * from './spacing';
|
|
16
24
|
export * from './stack';
|
|
17
25
|
export * from './stat-badge';
|
|
18
26
|
export * from './sticky-bar';
|
|
27
|
+
export * from './strategy-apy-breakdown-card';
|
|
19
28
|
export * from './tabber';
|
|
20
29
|
export * from './text';
|
|
21
30
|
export * from './time-to-liquidation-block';
|
|
31
|
+
export * from './title-meta';
|
|
22
32
|
export * from './token-amount';
|
|
33
|
+
export * from './token-pair-symbol';
|
|
34
|
+
export * from './token-pair-title';
|
|
23
35
|
export * from './values';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApyBreakdown } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { TitleText } from '../text';
|
|
3
4
|
import { InfoListTest } from './constants';
|
|
@@ -11,9 +12,22 @@ export interface InfoLineProps {
|
|
|
11
12
|
readonly value: React.ReactNode;
|
|
12
13
|
/** Tooltip content behind the help icon next to the label. */
|
|
13
14
|
readonly tip?: React.ReactNode;
|
|
15
|
+
/** Caption under the value (right-aligned), e.g. "for 0.00 USDC". */
|
|
16
|
+
readonly valueDescription?: React.ReactNode;
|
|
14
17
|
/** New value after an arrow (value → valueTo); the old one is dimmed. */
|
|
15
18
|
readonly valueTo?: React.ReactNode;
|
|
16
19
|
readonly testId?: string;
|
|
17
20
|
}
|
|
18
21
|
/** One row of the list — the reference `VerticalIndicator` markup. */
|
|
19
|
-
export declare function InfoLine({ title, value, tip, valueTo, testId, }: InfoLineProps): React.ReactElement;
|
|
22
|
+
export declare function InfoLine({ title, value, tip, valueDescription, valueTo, testId, }: InfoLineProps): React.ReactElement;
|
|
23
|
+
export interface InfoSectionTitleProps {
|
|
24
|
+
readonly title: TitleText;
|
|
25
|
+
}
|
|
26
|
+
/** Uppercase section label inside an `InfoList` (e.g. debt limits). */
|
|
27
|
+
export declare function InfoSectionTitle({ title, }: InfoSectionTitleProps): React.ReactElement;
|
|
28
|
+
export interface PointsInfoLineProps {
|
|
29
|
+
readonly data: ApyBreakdown | undefined;
|
|
30
|
+
readonly title?: TitleText;
|
|
31
|
+
}
|
|
32
|
+
/** Points row that omits itself when the SDK breakdown has no programs. */
|
|
33
|
+
export declare function PointsInfoLine({ data, title, }: PointsInfoLineProps): React.ReactElement | null;
|
|
@@ -35,7 +35,7 @@ export interface LeverageInputProps {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Target leverage of a position, bounded by what the strategy allows.
|
|
38
|
-
* Title row carries an inline-editable value (
|
|
38
|
+
* Title row carries an inline-editable value (`N.NNx`) and an optional reset;
|
|
39
39
|
* the slider below can show risk bands via `colorIntervals`.
|
|
40
40
|
*/
|
|
41
|
-
export declare function LeverageInput({ value, onChange, max, min,
|
|
41
|
+
export declare function LeverageInput({ value, onChange, max, min, title, hint, reset, colorIntervals, colorIntervalLabel, size, }: LeverageInputProps): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LeveragePresetChipsTest } from './constants';
|
|
3
|
+
export { LeveragePresetChipsTest };
|
|
4
|
+
export interface LeveragePresetChipsProps {
|
|
5
|
+
readonly options: readonly number[];
|
|
6
|
+
readonly value?: number;
|
|
7
|
+
readonly onChange: (value: number) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Leverage step pills for the yield-chart toolbar. Selected leverage only
|
|
11
|
+
* drives the APY breakdown card, not the chart series.
|
|
12
|
+
*/
|
|
13
|
+
export declare function LeveragePresetChips({ options, value, onChange, }: LeveragePresetChipsProps): React.ReactElement | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StrategyOpportunity } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { LiquidationParamsTableTest } from './constants';
|
|
4
|
+
export { LiquidationParamsTableTest };
|
|
5
|
+
export interface LiquidationParamsTableProps {
|
|
6
|
+
readonly data: Pick<StrategyOpportunity, "liquidationThreshold" | "liquidationPremium" | "liquidationFee">;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Single-row liquidation parameters. Discount is premium + fee, a
|
|
10
|
+
* presentation of two SDK values.
|
|
11
|
+
*/
|
|
12
|
+
export declare function LiquidationParamsTable({ data, }: LiquidationParamsTableProps): React.ReactElement;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Token } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { TitleText } from '../text';
|
|
3
4
|
import { HFZones } from '../../health-factor';
|
|
@@ -11,8 +12,10 @@ export interface LiquidationPriceBlockProps {
|
|
|
11
12
|
readonly price?: bigint | null;
|
|
12
13
|
/** Price after the operation; renders a from → to transition. */
|
|
13
14
|
readonly priceTo?: bigint | null;
|
|
14
|
-
/**
|
|
15
|
-
readonly
|
|
15
|
+
/** Collateral token of the quoted pair. */
|
|
16
|
+
readonly collateral?: Token | null;
|
|
17
|
+
/** Underlying token of the quoted pair. */
|
|
18
|
+
readonly underlying?: Token;
|
|
16
19
|
/** Zone dot next to the price. */
|
|
17
20
|
readonly zone?: HFZones;
|
|
18
21
|
readonly isLoading?: boolean;
|
|
@@ -25,6 +28,5 @@ export interface LiquidationPriceBlockProps {
|
|
|
25
28
|
/**
|
|
26
29
|
* "Liquidation price" row of a preview: label + help tip, the formatted price
|
|
27
30
|
* (with optional from → to and zone dot), and the price pair underneath.
|
|
28
|
-
* Design only — the reference `LiquidationPriceBlock` markup on value props.
|
|
29
31
|
*/
|
|
30
|
-
export declare function LiquidationPriceBlock({ price, priceTo,
|
|
32
|
+
export declare function LiquidationPriceBlock({ price, priceTo, collateral, underlying, zone, isLoading, title, tip, testId, }: LiquidationPriceBlockProps): React.ReactElement;
|
|
@@ -20,6 +20,15 @@ export interface ManagePaneTabDropdownProps {
|
|
|
20
20
|
readonly items: ReadonlyArray<ManagePaneTabDropdownItem>;
|
|
21
21
|
}
|
|
22
22
|
export declare function ManagePaneTabDropdown(_props: ManagePaneTabDropdownProps): null;
|
|
23
|
+
export interface ManagePaneActionTabProps {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly title: TitleText;
|
|
26
|
+
/** Fires without changing the active tab (e.g. "My positions"). */
|
|
27
|
+
readonly onClick?: () => void;
|
|
28
|
+
/** When set, a click opens this content in a dialog instead of switching tabs. */
|
|
29
|
+
readonly children?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export declare function ManagePaneActionTab(_props: ManagePaneActionTabProps): null;
|
|
23
32
|
export interface ManagePaneProps {
|
|
24
33
|
readonly children: React.ReactNode;
|
|
25
34
|
/** Controlled active tab — the screen owns it (usually `?operation=`). */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TitleText } from '../text';
|
|
3
|
+
import { MoreAccordionTest } from './constants';
|
|
4
|
+
export { MoreAccordionTest };
|
|
5
|
+
export interface MoreAccordionProps {
|
|
6
|
+
readonly children: React.ReactNode;
|
|
7
|
+
readonly moreMessage?: TitleText;
|
|
8
|
+
readonly lessMessage?: TitleText;
|
|
9
|
+
}
|
|
10
|
+
/** Centered more/less disclosure over a `SimpleAccordion`. */
|
|
11
|
+
export declare function MoreAccordion({ children, moreMessage, lessMessage, }: MoreAccordionProps): React.ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NestedInfoStackTest } from './constants';
|
|
3
|
+
export { NestedInfoStackTest };
|
|
4
|
+
export interface NestedInfoStackProps {
|
|
5
|
+
readonly children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Nested compact-info rows: indent plus a 2px left rail.
|
|
9
|
+
*/
|
|
10
|
+
export declare function NestedInfoStack({ children, }: NestedInfoStackProps): React.ReactElement;
|
|
@@ -3,17 +3,27 @@ import { FormatMessageTypedProps } from '../../typed-intl';
|
|
|
3
3
|
import { PageTitleTest } from './constants';
|
|
4
4
|
export { PageTitleTest };
|
|
5
5
|
export type PageTitleText = FormatMessageTypedProps | string;
|
|
6
|
+
export interface PageHeadProviderProps {
|
|
7
|
+
readonly children: React.ReactNode;
|
|
8
|
+
/** Renders the document head for a resolved browser title (e.g. a Helmet node). */
|
|
9
|
+
readonly render: (browserTitle: string) => React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Optional document-head hook for {@link PageTitle}. Without a provider the
|
|
13
|
+
* visible heading still renders and `<head>` is left alone — ui-kit does not
|
|
14
|
+
* import a head library.
|
|
15
|
+
*/
|
|
16
|
+
export declare function PageHeadProvider({ children, render, }: PageHeadProviderProps): React.ReactElement;
|
|
6
17
|
export interface PageTitleProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly browserTitle?: PageTitleText;
|
|
18
|
+
/** Visible heading; a node (e.g. a token-pair title) renders as given. */
|
|
19
|
+
readonly title: PageTitleText | React.ReactNode;
|
|
10
20
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
21
|
+
* Browser tab title when it should differ from the visible heading.
|
|
22
|
+
* Required when {@link title} is a node — a node cannot become a string.
|
|
13
23
|
*/
|
|
14
|
-
readonly
|
|
24
|
+
readonly browserTitle?: PageTitleText;
|
|
15
25
|
readonly as?: "h1" | "h2" | "h3" | "span";
|
|
16
26
|
readonly className?: string;
|
|
17
27
|
}
|
|
18
28
|
/** The one visible page heading, plus an optional document-head hook. */
|
|
19
|
-
export declare function PageTitle({ title, browserTitle,
|
|
29
|
+
export declare function PageTitle({ title, browserTitle, as, className, }: PageTitleProps): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Bps } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { PoolApyBreakdownCardTest } from './constants';
|
|
4
|
+
export { PoolApyBreakdownCardTest };
|
|
5
|
+
export interface PoolApyBreakdownCardProps {
|
|
6
|
+
/** Organic and incentive APYs in basis points; a missing value renders a dash. */
|
|
7
|
+
readonly data?: {
|
|
8
|
+
readonly organicApy?: Bps;
|
|
9
|
+
readonly incentiveApy?: Bps;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/** Organic vs incentive APY next to the pool APY chart. Missing values render as dashes. */
|
|
13
|
+
export declare function PoolApyBreakdownCard({ data, }: PoolApyBreakdownCardProps): React.ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TitleText } from '../text';
|
|
3
|
+
import { SideCardTest } from './constants';
|
|
4
|
+
export { SideCardTest };
|
|
5
|
+
export interface SideCardProps {
|
|
6
|
+
readonly title: TitleText;
|
|
7
|
+
readonly tip?: React.ReactNode;
|
|
8
|
+
readonly children: React.ReactNode;
|
|
9
|
+
readonly className?: string;
|
|
10
|
+
readonly testId?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Card beside a chart: title row, optional tip. Body columns follow the
|
|
14
|
+
* card's own width — 3, then 2, then 1 as it gets narrower.
|
|
15
|
+
*/
|
|
16
|
+
export declare function SideCard({ title, tip, children, className, testId, }: SideCardProps): React.ReactElement;
|