@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,120 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
/**
|
|
3
|
-
* GridTableCellAssetProps — props for GridTableCellAsset component.
|
|
4
|
-
*/
|
|
5
|
-
interface GridTableCellAssetProps {
|
|
6
|
-
assetAddress: Address;
|
|
7
|
-
symbol: string;
|
|
8
|
-
comment?: string;
|
|
9
|
-
explorerUrl?: string;
|
|
10
|
-
iconSymbol?: string;
|
|
11
|
-
span?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "full" | "auto";
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* GridTableCellAsset — grid table cell component for displaying asset information.
|
|
15
|
-
*
|
|
16
|
-
* @usage
|
|
17
|
-
* Use GridTableCellAsset to display asset data in grid table cells:
|
|
18
|
-
* token symbols, asset addresses with icons, explorer links.
|
|
19
|
-
*
|
|
20
|
-
* Props:
|
|
21
|
-
* - `assetAddress` — asset contract address (required).
|
|
22
|
-
* - `symbol` — asset symbol/ticker (required).
|
|
23
|
-
* - `comment` — optional comment displayed next to symbol.
|
|
24
|
-
* - `explorerUrl` — optional explorer URL for external link button.
|
|
25
|
-
* - `iconSymbol` — optional symbol for icon extraction (used when icon doesn't match symbol, e.g., pool tokens).
|
|
26
|
-
* - `span` — number of columns to span (defaults to 1).
|
|
27
|
-
*
|
|
28
|
-
* Note: Displays token icon, symbol, optional comment, and optional explorer link in a grid cell.
|
|
29
|
-
*/
|
|
30
|
-
export declare function GridTableCellAsset({ assetAddress, symbol, iconSymbol, comment, explorerUrl, span, }: GridTableCellAssetProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
/**
|
|
32
|
-
* GridTableCellUpdatableProps — props for GridTableCellUpdatable component.
|
|
33
|
-
*/
|
|
34
|
-
export interface GridTableCellUpdatableProps {
|
|
35
|
-
oldValue?: string;
|
|
36
|
-
newValue: string;
|
|
37
|
-
onEdit?: () => void;
|
|
38
|
-
isEditable?: boolean;
|
|
39
|
-
className?: string;
|
|
40
|
-
customButton?: React.ReactNode;
|
|
41
|
-
align?: "left" | "right" | "center";
|
|
42
|
-
postfix?: string;
|
|
43
|
-
disabled?: boolean;
|
|
44
|
-
nowrap?: boolean;
|
|
45
|
-
span?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "full" | "auto";
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* GridTableCellUpdatable — grid table cell component for displaying editable values with old/new value comparison.
|
|
49
|
-
*
|
|
50
|
-
* @usage
|
|
51
|
-
* Use GridTableCellUpdatable to display values that can be edited in grid table cells:
|
|
52
|
-
* editable parameters, configurable settings, updatable data with change indication.
|
|
53
|
-
*
|
|
54
|
-
* Props:
|
|
55
|
-
* - `oldValue` — previous value displayed with strikethrough when different from newValue.
|
|
56
|
-
* - `newValue` — current/new value to display (required).
|
|
57
|
-
* - `onEdit` — callback function executed when edit button is clicked.
|
|
58
|
-
* - `isEditable` — if false, edit button is not shown (defaults to true).
|
|
59
|
-
* - `className` — additional CSS classes for styling.
|
|
60
|
-
* - `customButton` — custom React node to replace default edit button.
|
|
61
|
-
* - `align` — text alignment: "left", "right", or "center" (defaults to "right").
|
|
62
|
-
* - `postfix` — optional text displayed after the value.
|
|
63
|
-
* - `disabled` — if true, edit button is disabled.
|
|
64
|
-
* - `nowrap` — if true, prevents text wrapping.
|
|
65
|
-
* - `span` — number of columns to span (defaults to 1).
|
|
66
|
-
*
|
|
67
|
-
* Note: Uses UpdatedValue component internally to display old/new values with edit functionality.
|
|
68
|
-
*/
|
|
69
|
-
export declare function GridTableCellUpdatable({ oldValue, newValue, onEdit, isEditable, className, align, customButton, postfix, disabled, nowrap, span, }: GridTableCellUpdatableProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
-
/**
|
|
71
|
-
* GridTableEditableAction — action button configuration for GridTableEditable.
|
|
72
|
-
*/
|
|
73
|
-
export interface GridTableEditableAction {
|
|
74
|
-
text: string;
|
|
75
|
-
onClick: () => void;
|
|
76
|
-
loadingText?: string;
|
|
77
|
-
isLoading?: boolean;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* GridTableEditableProps — props for GridTableEditable component.
|
|
81
|
-
*/
|
|
82
|
-
interface GridTableEditableProps {
|
|
83
|
-
title: string;
|
|
84
|
-
onNew?: () => void;
|
|
85
|
-
newButtonText?: string;
|
|
86
|
-
isLoading?: boolean;
|
|
87
|
-
buttonLoadingText?: string;
|
|
88
|
-
actions?: GridTableEditableAction[];
|
|
89
|
-
children: React.ReactNode;
|
|
90
|
-
disabled?: boolean;
|
|
91
|
-
skipSignIn?: boolean;
|
|
92
|
-
cols?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* GridTableEditable — grid table component with header, action buttons, and editable content.
|
|
96
|
-
*
|
|
97
|
-
* @usage
|
|
98
|
-
* Use GridTableEditable to create grid tables with editable content and action buttons:
|
|
99
|
-
* data management tables, configuration tables, editable parameter lists with grid layout.
|
|
100
|
-
*
|
|
101
|
-
* Props:
|
|
102
|
-
* - `title` — table title displayed in header (required).
|
|
103
|
-
* - `onNew` — callback function for "New" button action.
|
|
104
|
-
* - `newButtonText` — text for "New" button (defaults to "New").
|
|
105
|
-
* - `isLoading` — if true, "New" button shows loading state.
|
|
106
|
-
* - `buttonLoadingText` — text shown in "New" button when loading (defaults to "Adding...").
|
|
107
|
-
* - `actions` — array of additional action buttons (GridTableEditableAction[]).
|
|
108
|
-
* - `children` — table content (GridTable rows/cells) (required).
|
|
109
|
-
* - `disabled` — if true, all action buttons are disabled (defaults to false).
|
|
110
|
-
* - `skipSignIn` — if true, skips sign-in requirement for actions (defaults to true).
|
|
111
|
-
* - `cols` — number of columns (1-12) or custom CSS grid template (defaults to 12).
|
|
112
|
-
*
|
|
113
|
-
* Note: Action buttons are wrapped in SignInRequired component and use TabButton for styling. Table is wrapped in rounded border container.
|
|
114
|
-
*
|
|
115
|
-
* Do NOT use GridTableEditable:
|
|
116
|
-
* - for read-only tables without editing capabilities (use regular GridTable component).
|
|
117
|
-
* - when you don't need action buttons or title (use regular GridTable component).
|
|
118
|
-
*/
|
|
119
|
-
export declare function GridTableEditable({ title, onNew, newButtonText, buttonLoadingText, isLoading, actions, children, disabled, skipSignIn, cols, }: GridTableEditableProps): import("react/jsx-runtime").JSX.Element;
|
|
120
|
-
export {};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
interface TableCellAssetProps {
|
|
3
|
-
assetAddress: Address;
|
|
4
|
-
symbol: string;
|
|
5
|
-
comment?: string;
|
|
6
|
-
explorerUrl?: string;
|
|
7
|
-
iconSymbol?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* TableCellAsset — table cell component for displaying asset information.
|
|
11
|
-
*
|
|
12
|
-
* @usage
|
|
13
|
-
* Use TableCellAsset to display asset data in table cells:
|
|
14
|
-
* token symbols, asset addresses, icons, explorer links.
|
|
15
|
-
*
|
|
16
|
-
* Props:
|
|
17
|
-
* - `assetAddress` — asset contract address (required).
|
|
18
|
-
* - `symbol` — asset symbol/ticker (required).
|
|
19
|
-
* - `comment` — optional comment displayed next to symbol.
|
|
20
|
-
* - `explorerUrl` — optional explorer URL for external link button.
|
|
21
|
-
* - `iconSymbol` — optional symbol for icon extraction (used when icon doesn't match symbol, e.g., pool tokens).
|
|
22
|
-
*/
|
|
23
|
-
export declare function TableCellAsset({ assetAddress, symbol, iconSymbol, comment, explorerUrl, }: TableCellAssetProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* TableCellUpdatable — table cell component for displaying editable values with old/new value comparison.
|
|
26
|
-
*
|
|
27
|
-
* @usage
|
|
28
|
-
* Use TableCellUpdatable to display values that can be edited in table cells:
|
|
29
|
-
* editable parameters, configurable settings, updatable data with change indication.
|
|
30
|
-
*
|
|
31
|
-
* Props:
|
|
32
|
-
* - `oldValue` — previous value displayed with strikethrough when different from newValue.
|
|
33
|
-
* - `newValue` — current/new value to display (required).
|
|
34
|
-
* - `onEdit` — callback function executed when edit button is clicked.
|
|
35
|
-
* - `isEditable` — if false, edit button is not shown (defaults to true).
|
|
36
|
-
* - `className` — additional CSS classes for styling.
|
|
37
|
-
* - `customButton` — custom React node to replace default edit button.
|
|
38
|
-
* - `align` — text alignment: "left", "right", or "center" (defaults to "right").
|
|
39
|
-
* - `postfix` — optional text displayed after the value.
|
|
40
|
-
* - `disabled` — if true, edit button is disabled.
|
|
41
|
-
* - `nowrap` — if true, prevents text wrapping.
|
|
42
|
-
*/
|
|
43
|
-
export interface TableCellUpdatableProps {
|
|
44
|
-
oldValue?: string;
|
|
45
|
-
newValue: string;
|
|
46
|
-
onEdit?: () => void;
|
|
47
|
-
isEditable?: boolean;
|
|
48
|
-
className?: string;
|
|
49
|
-
customButton?: React.ReactNode;
|
|
50
|
-
align?: "left" | "right" | "center";
|
|
51
|
-
postfix?: string;
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
nowrap?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export declare function TableCellUpdatable({ oldValue, newValue, onEdit, isEditable, className, align, customButton, postfix, disabled, nowrap, }: TableCellUpdatableProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
/**
|
|
57
|
-
* TableEditableAction — action button configuration for TableEditable.
|
|
58
|
-
*/
|
|
59
|
-
export interface TableEditableAction {
|
|
60
|
-
text: string;
|
|
61
|
-
onClick: () => void;
|
|
62
|
-
loadingText?: string;
|
|
63
|
-
isLoading?: boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* TableEditable — table component with header, action buttons, and editable content.
|
|
67
|
-
*
|
|
68
|
-
* @usage
|
|
69
|
-
* Use TableEditable to create tables with editable content and action buttons:
|
|
70
|
-
* data management tables, configuration tables, editable parameter lists.
|
|
71
|
-
*
|
|
72
|
-
* Props:
|
|
73
|
-
* - `title` — table title displayed in header (required).
|
|
74
|
-
* - `onNew` — callback function for "New" button action.
|
|
75
|
-
* - `newButtonText` — text for "New" button (defaults to "New").
|
|
76
|
-
* - `isLoading` — if true, "New" button shows loading state.
|
|
77
|
-
* - `buttonLoadingText` — text shown in "New" button when loading (defaults to "Adding...").
|
|
78
|
-
* - `actions` — array of additional action buttons (TableEditableAction[]).
|
|
79
|
-
* - `children` — table content (Table rows/cells) (required).
|
|
80
|
-
* - `disabled` — if true, all action buttons are disabled.
|
|
81
|
-
* - `skipSignIn` — if true, skips sign-in requirement for actions (defaults to true).
|
|
82
|
-
*
|
|
83
|
-
* Note: Action buttons are wrapped in SignInRequired component and use TabButton for styling.
|
|
84
|
-
*
|
|
85
|
-
* Do NOT use TableEditable:
|
|
86
|
-
* - for read-only tables without editing capabilities (use regular Table component).
|
|
87
|
-
* - when you don't need action buttons or title (use regular Table component).
|
|
88
|
-
*/
|
|
89
|
-
interface TableEditableProps {
|
|
90
|
-
title: string;
|
|
91
|
-
onNew?: () => void;
|
|
92
|
-
newButtonText?: string;
|
|
93
|
-
isLoading?: boolean;
|
|
94
|
-
buttonLoadingText?: string;
|
|
95
|
-
actions?: TableEditableAction[];
|
|
96
|
-
children: React.ReactNode;
|
|
97
|
-
disabled?: boolean;
|
|
98
|
-
skipSignIn?: boolean;
|
|
99
|
-
}
|
|
100
|
-
export declare function TableEditable({ title, onNew, newButtonText, buttonLoadingText, isLoading, actions, children, disabled, skipSignIn, }: TableEditableProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* GridTableLoaderProps — props for GridTableLoader component.
|
|
4
|
-
*/
|
|
5
|
-
interface GridTableLoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Number of columns to span (uses col-span-full by default)
|
|
8
|
-
*/
|
|
9
|
-
colSpan?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* GridTableLoader — loader component for infinite scroll in GridTable.
|
|
13
|
-
*
|
|
14
|
-
* @usage
|
|
15
|
-
* Use GridTableLoader to display loading state at the bottom of grid tables:
|
|
16
|
-
* infinite scroll loading indicators, table data fetching states.
|
|
17
|
-
*
|
|
18
|
-
* Props:
|
|
19
|
-
* - `colSpan` — number of columns to span (uses col-span-full by default).
|
|
20
|
-
*
|
|
21
|
-
* Note: Displays centered spinner at the bottom of the table while loading more data.
|
|
22
|
-
*/
|
|
23
|
-
declare const GridTableLoader: React.ForwardRefExoticComponent<GridTableLoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export { GridTableLoader };
|
|
25
|
-
export type { GridTableLoaderProps };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UpdatedValueProps — props for UpdatedValue component.
|
|
3
|
-
*/
|
|
4
|
-
interface UpdatedValueProps {
|
|
5
|
-
oldValue?: string | number;
|
|
6
|
-
newValue: string | number;
|
|
7
|
-
onEdit?: () => void;
|
|
8
|
-
isEditable?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
nowrap?: boolean;
|
|
11
|
-
customButton?: React.ReactNode;
|
|
12
|
-
postfix?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* UpdatedValue — component for displaying old and new values with edit functionality.
|
|
16
|
-
*
|
|
17
|
-
* @usage
|
|
18
|
-
* Use UpdatedValue to show value changes with visual indication:
|
|
19
|
-
* old value with strikethrough, new value, edit button for modifications.
|
|
20
|
-
*
|
|
21
|
-
* Props:
|
|
22
|
-
* - `oldValue` — previous value displayed with strikethrough when different from newValue.
|
|
23
|
-
* - `newValue` — current/new value to display (required).
|
|
24
|
-
* - `onEdit` — callback function executed when edit button is clicked.
|
|
25
|
-
* - `isEditable` — if false, edit button is not shown (defaults to true).
|
|
26
|
-
* - `disabled` — if true, edit button is disabled (defaults to false).
|
|
27
|
-
* - `nowrap` — if true, prevents text wrapping (defaults to false).
|
|
28
|
-
* - `customButton` — custom React node to replace default edit button.
|
|
29
|
-
* - `postfix` — optional text displayed after the value.
|
|
30
|
-
*
|
|
31
|
-
* Note: When oldValue differs from newValue, old value is shown with strikethrough and arrow (→) separator.
|
|
32
|
-
*/
|
|
33
|
-
export declare function UpdatedValue({ oldValue, newValue, onEdit, isEditable, customButton, postfix, disabled, nowrap, }: UpdatedValueProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Asset } from '@gearbox-protocol/sdk';
|
|
2
|
-
import { Cell } from 'reactochart/ColorHeatmap';
|
|
3
|
-
import { Address } from 'viem';
|
|
4
|
-
import { LiquidationThresholds, QuotasInfoList, TokenFullData } from '../../types/common';
|
|
5
|
-
import { AxisParams, Point } from './types';
|
|
6
|
-
export type { AxisOrder, AxisParams, Point as LiquidationPoint } from './types';
|
|
7
|
-
export type { Cell } from './utils';
|
|
8
|
-
export { CELL_BAD, CELL_CURRENT, CELL_GOOD, CELL_HOVERED, CELL_LIQUIDATION, CELL_OK, DEFAULT_AXIS_MAX, DEFAULT_AXIS_MIN, formatAxisLabel, formatAxisTipLabel, formatAxisTipPrice, getCellClass, isPointInCell, useAxis, useFixedAssets, useIsAxisInRelativeUnits, useLiquidationGraphActivePrice, useLiquidationGraphCurrentActiveValue, usePriceInNumber, useWithLiquidationGraphActivePrices, } from './utils';
|
|
9
|
-
interface UseLiquidationHeatmapProps {
|
|
10
|
-
xMin: number;
|
|
11
|
-
xMax: number;
|
|
12
|
-
yMin: number;
|
|
13
|
-
yMax: number;
|
|
14
|
-
xLabel?: TokenFullData;
|
|
15
|
-
yLabel?: TokenFullData;
|
|
16
|
-
assets: Array<Asset>;
|
|
17
|
-
quotas: Record<Address, Asset>;
|
|
18
|
-
prices: Record<Address, bigint>;
|
|
19
|
-
liquidationThresholds: Record<Address, bigint>;
|
|
20
|
-
underlyingTokenAddress: Address;
|
|
21
|
-
debt: bigint;
|
|
22
|
-
quotasInfo: QuotasInfoList;
|
|
23
|
-
tokensList: Record<Address, TokenFullData>;
|
|
24
|
-
}
|
|
25
|
-
export declare function useLiquidationHeatmap({ xMin, xMax, yMin, yMax, xLabel, yLabel, assets, quotas, prices, liquidationThresholds, quotasInfo, underlyingTokenAddress, debt, tokensList, }: UseLiquidationHeatmapProps): Cell[];
|
|
26
|
-
interface UseEditPriceManuallyProps {
|
|
27
|
-
prices: Record<Address, bigint>;
|
|
28
|
-
}
|
|
29
|
-
export declare function useEditPriceManually({ prices }: UseEditPriceManuallyProps): readonly [{}, (newPrice: bigint, token: Address) => void];
|
|
30
|
-
export interface UseLiquidationGraphParamsReturnType {
|
|
31
|
-
xAxis?: AxisParams;
|
|
32
|
-
yAxis?: AxisParams;
|
|
33
|
-
currentPoint: Point;
|
|
34
|
-
fixedBalances: Array<Asset>;
|
|
35
|
-
}
|
|
36
|
-
export interface UseLiquidationGraphParamsProps {
|
|
37
|
-
assets: Array<Asset>;
|
|
38
|
-
liquidationThresholds: LiquidationThresholds;
|
|
39
|
-
quotas: Record<Address, Asset>;
|
|
40
|
-
quotasInfo: QuotasInfoList;
|
|
41
|
-
tokensList: Record<Address, TokenFullData>;
|
|
42
|
-
prices: Record<Address, bigint>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Props type for Credit Session Details Liquidation Dialog
|
|
46
|
-
* Extends UseLiquidationGraphParamsProps with additional fields
|
|
47
|
-
*/
|
|
48
|
-
export type CreditSessionDetailsLiquidationDialogProps = Omit<UseLiquidationGraphParamsProps, "assets"> & {
|
|
49
|
-
assetsSorted: Array<Asset>;
|
|
50
|
-
underlyingToken: Address;
|
|
51
|
-
debt: bigint;
|
|
52
|
-
};
|
|
53
|
-
export declare function useLiquidationGraphParams({ assets, liquidationThresholds, quotas, quotasInfo, tokensList, prices, }: UseLiquidationGraphParamsProps): UseLiquidationGraphParamsReturnType;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TokenFullData } from '../../types/common';
|
|
2
|
-
export interface Coordinates {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
export type AxisOrder = "reverse" | "straight";
|
|
7
|
-
export interface AxisParams {
|
|
8
|
-
min: number;
|
|
9
|
-
max: number;
|
|
10
|
-
minHf: number;
|
|
11
|
-
label: TokenFullData;
|
|
12
|
-
order: AxisOrder;
|
|
13
|
-
nextOrder: () => void;
|
|
14
|
-
}
|
|
15
|
-
export type Point = [x: number, y: number];
|
|
16
|
-
export type LiquidationPoint = Point;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Asset } from '@gearbox-protocol/sdk';
|
|
2
|
-
import { Cell as ReactochartCell } from 'reactochart/ColorHeatmap';
|
|
3
|
-
import { Address } from 'viem';
|
|
4
|
-
import { LiquidationThresholds, QuotasInfoList, TokenFullData } from '../../types/common';
|
|
5
|
-
import { AxisOrder, AxisParams, Point } from './types';
|
|
6
|
-
export interface Cell extends ReactochartCell {
|
|
7
|
-
x: number;
|
|
8
|
-
xEnd: number;
|
|
9
|
-
y: number;
|
|
10
|
-
yEnd: number;
|
|
11
|
-
value: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const CELL_HOVERED = "rct-chart__heatmap-cell--hovered";
|
|
14
|
-
export declare const CELL_CURRENT = "rct-chart__heatmap-cell--current";
|
|
15
|
-
export declare const CELL_GOOD = "rct-chart__heatmap-cell--good";
|
|
16
|
-
export declare const CELL_OK = "rct-chart__heatmap-cell--ok";
|
|
17
|
-
export declare const CELL_BAD = "rct-chart__heatmap-cell--bad";
|
|
18
|
-
export declare const CELL_LIQUIDATION = "rct-chart__heatmap-cell--liquidation";
|
|
19
|
-
interface UseAxisProps {
|
|
20
|
-
currentPrice: number | undefined;
|
|
21
|
-
token: TokenFullData | undefined;
|
|
22
|
-
}
|
|
23
|
-
export declare const DEFAULT_AXIS_MIN = 0;
|
|
24
|
-
export declare const DEFAULT_AXIS_MAX = 1;
|
|
25
|
-
export declare function useAxis({ token, currentPrice, }: UseAxisProps): AxisParams | undefined;
|
|
26
|
-
interface UseFixedAssetsProps {
|
|
27
|
-
assets: Array<Asset>;
|
|
28
|
-
liquidationThresholds: LiquidationThresholds;
|
|
29
|
-
quotas: Record<Address, Asset>;
|
|
30
|
-
quotasInfo: QuotasInfoList;
|
|
31
|
-
at?: number;
|
|
32
|
-
length?: number;
|
|
33
|
-
}
|
|
34
|
-
export declare function useFixedAssets({ assets, liquidationThresholds, quotas, quotasInfo, at, length, }: UseFixedAssetsProps): [Asset[], Asset[]];
|
|
35
|
-
interface UsePriceInNumberProps {
|
|
36
|
-
asset: Asset | undefined;
|
|
37
|
-
tokensList: Record<Address, TokenFullData>;
|
|
38
|
-
prices: Record<Address, bigint>;
|
|
39
|
-
}
|
|
40
|
-
type UsePriceInNumberReturnType = [
|
|
41
|
-
price: number | undefined,
|
|
42
|
-
token: TokenFullData | undefined
|
|
43
|
-
];
|
|
44
|
-
export declare function usePriceInNumber({ asset, tokensList, prices, }: UsePriceInNumberProps): UsePriceInNumberReturnType;
|
|
45
|
-
export declare function useIsAxisInRelativeUnits(axis: TokenFullData | undefined, underlying: TokenFullData | undefined): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Format price value for liquidation graph tooltip
|
|
48
|
-
* Re-exports formatPrice from utils with liquidation-specific defaults
|
|
49
|
-
*/
|
|
50
|
-
export declare function formatAxisTipPrice(v: number): string;
|
|
51
|
-
export declare function formatAxisTipLabel(token: TokenFullData | undefined, underlyingToken: TokenFullData | undefined, order: AxisOrder | undefined): string;
|
|
52
|
-
export declare function formatAxisLabel(underlyingPrice: bigint | undefined, isRelative: boolean, order?: AxisOrder): (l?: number) => string;
|
|
53
|
-
export declare function useLiquidationGraphActivePrice(activePoint: number, underlyingPrice: bigint | undefined, isRelative: boolean, order?: AxisOrder): number;
|
|
54
|
-
export declare function useLiquidationGraphCurrentActiveValue(): {
|
|
55
|
-
activePoint: [number | undefined, number | undefined] | null;
|
|
56
|
-
handleMouseMove: ({ xValue, yValue, }: {
|
|
57
|
-
xValue: number | null;
|
|
58
|
-
yValue: number | null;
|
|
59
|
-
}) => void;
|
|
60
|
-
handleMouseLeave: () => void;
|
|
61
|
-
};
|
|
62
|
-
interface UseWithActivePricesProps {
|
|
63
|
-
xLabel: TokenFullData | undefined;
|
|
64
|
-
yLabel: TokenFullData | undefined;
|
|
65
|
-
activePoint: [number | undefined, number | undefined] | null;
|
|
66
|
-
prices: Record<Address, bigint>;
|
|
67
|
-
}
|
|
68
|
-
export declare function useWithLiquidationGraphActivePrices({ xLabel, yLabel, activePoint, prices, }: UseWithActivePricesProps): {};
|
|
69
|
-
export declare function isPointInCell(p: Point, c: Cell): boolean;
|
|
70
|
-
export declare function getCellClass(p: Cell, currentPoint: Point, activePointX?: number, activePointY?: number): string;
|
|
71
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { AmountInputTest } from '../components/base/amount-input/constants';
|
|
2
|
-
export { DetailedPageTitleTest } from '../components/base/detailed-page-title/constants';
|
|
3
|
-
export { DetailAsideWrapperTest, DetailsViewTest, } from '../components/base/details-view/constants';
|
|
4
|
-
export { HealthFactorBlockTest } from '../components/base/health-factor-block/constants';
|
|
5
|
-
export { HistoryChartTest } from '../components/base/history-chart/constants';
|
|
6
|
-
export { InfoListTest } from '../components/base/info-list/constants';
|
|
7
|
-
export { LeverageInputTest } from '../components/base/leverage-input/constants';
|
|
8
|
-
export { LiquidationPriceBlockTest } from '../components/base/liquidation-price-block/constants';
|
|
9
|
-
export { ManagePaneTest } from '../components/base/manage-pane/constants';
|
|
10
|
-
export { PageTitleTest } from '../components/base/page-title/constants';
|
|
11
|
-
export { ReviewButtonTest } from '../components/base/review-button/constants';
|
|
12
|
-
export { SectionHeadingTest } from '../components/base/section-heading/constants';
|
|
13
|
-
export { SegmentedTabsTest } from '../components/base/segmented-tabs/constants';
|
|
14
|
-
export { StackTest } from '../components/base/stack/constants';
|
|
15
|
-
export { StatBadgeTest } from '../components/base/stat-badge/constants';
|
|
16
|
-
export { StickyBarTest } from '../components/base/sticky-bar/constants';
|
|
17
|
-
export { TabberTest } from '../components/base/tabber/constants';
|
|
18
|
-
export { TimeToLiquidationBlockTest } from '../components/base/time-to-liquidation-block/constants';
|
|
19
|
-
export { TokenAmountTest } from '../components/base/token-amount/constants';
|
|
20
|
-
export { PositionShortLabelTest, ValueTest, } from '../components/base/values/constants';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automation-only constants: stable `data-testid` strings and related selectors.
|
|
3
|
-
*
|
|
4
|
-
* Downstream apps should prefer `import { … } from "@gearbox-protocol/ui-kit/test-ids"`
|
|
5
|
-
* (Node-safe, no React / charts) over importing from the main package entry when
|
|
6
|
-
* tests run outside a bundler.
|
|
7
|
-
*/
|
|
8
|
-
export * from './base';
|
|
9
|
-
export * from './notification-center';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Utility for extracting variants from CVA
|
|
5
|
-
*/
|
|
6
|
-
export type ExtractVariants<T> = T extends (...args: any[]) => any ? VariantProps<T> : never;
|
|
7
|
-
/**
|
|
8
|
-
* Common type for components with variants
|
|
9
|
-
*/
|
|
10
|
-
export type ComponentWithVariants<TElement extends React.ElementType, TVariants> = React.ComponentPropsWithoutRef<TElement> & TVariants;
|
|
11
|
-
/**
|
|
12
|
-
* Type for polymorphic components that can render as different elements
|
|
13
|
-
*/
|
|
14
|
-
export type PolymorphicComponentProps<TElement extends React.ElementType, TProps = {}> = TProps & Omit<React.ComponentPropsWithoutRef<TElement>, keyof TProps> & {
|
|
15
|
-
as?: TElement;
|
|
16
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Help sections for different parts of the application
|
|
3
|
-
*/
|
|
4
|
-
export type HelpSections = "creditDetails" | "creditWalletConnect" | "creditManage" | "creditList" | "poolList" | "poolSupply" | "poolWithdraw" | "creditSession" | "charts.poolsList" | "charts.poolDetails" | "charts.creditsList" | "charts.creditDetails";
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
declare module "reactochart/ColorHeatmap" {
|
|
2
|
-
import type { Component } from "react";
|
|
3
|
-
|
|
4
|
-
export interface Cell {
|
|
5
|
-
x: unknown;
|
|
6
|
-
y: unknown;
|
|
7
|
-
value: unknown;
|
|
8
|
-
xEnd?: unknown;
|
|
9
|
-
yEnd?: unknown;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface ColorHeatmapProps {
|
|
13
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
14
|
-
data?: any;
|
|
15
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
16
|
-
value?: (d: any) => number;
|
|
17
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
18
|
-
x?: (d: any) => number;
|
|
19
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
20
|
-
xEnd?: (d: any) => number;
|
|
21
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
22
|
-
y?: (d: any) => number;
|
|
23
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
24
|
-
yEnd?: (d: any) => number;
|
|
25
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
26
|
-
rectClassName?: string | ((d: any) => string);
|
|
27
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
28
|
-
rectStyle?: any;
|
|
29
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
class ColorHeatmap extends Component<ColorHeatmapProps> {}
|
|
34
|
-
export default ColorHeatmap;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare module "reactochart/XAxis" {
|
|
38
|
-
import type { Component } from "react";
|
|
39
|
-
|
|
40
|
-
interface XAxisProps {
|
|
41
|
-
showLine?: boolean;
|
|
42
|
-
title?: string;
|
|
43
|
-
titleAlign?: string;
|
|
44
|
-
tickCount?: number;
|
|
45
|
-
labelFormat?: (value: number) => string;
|
|
46
|
-
showLabels?: boolean;
|
|
47
|
-
showTicks?: boolean;
|
|
48
|
-
onMouseClickAxis?: () => void;
|
|
49
|
-
nice?: boolean;
|
|
50
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
51
|
-
[key: string]: any;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
class XAxis extends Component<XAxisProps> {}
|
|
55
|
-
export default XAxis;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
declare module "reactochart/XLine" {
|
|
59
|
-
import type { Component } from "react";
|
|
60
|
-
|
|
61
|
-
interface XLineProps {
|
|
62
|
-
value: number;
|
|
63
|
-
className?: string;
|
|
64
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
65
|
-
[key: string]: any;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
class XLine extends Component<XLineProps> {}
|
|
69
|
-
export default XLine;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
declare module "reactochart/XYPlot" {
|
|
73
|
-
import type { Component } from "react";
|
|
74
|
-
|
|
75
|
-
interface XYPlotProps {
|
|
76
|
-
width: number;
|
|
77
|
-
height: number;
|
|
78
|
-
xDomain?: [number, number];
|
|
79
|
-
yDomain?: [number, number];
|
|
80
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
81
|
-
onMouseMove?: (e: any) => void;
|
|
82
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
83
|
-
onMouseLeave?: (e: any) => void;
|
|
84
|
-
children?: React.ReactNode;
|
|
85
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
class XYPlot extends Component<XYPlotProps> {}
|
|
90
|
-
export default XYPlot;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
declare module "reactochart/YAxis" {
|
|
94
|
-
import type { Component } from "react";
|
|
95
|
-
|
|
96
|
-
interface YAxisProps {
|
|
97
|
-
showLine?: boolean;
|
|
98
|
-
title?: string;
|
|
99
|
-
titleAlign?: string;
|
|
100
|
-
tickCount?: number;
|
|
101
|
-
labelFormat?: (value: number) => string;
|
|
102
|
-
showLabels?: boolean;
|
|
103
|
-
showTicks?: boolean;
|
|
104
|
-
onMouseClickAxis?: () => void;
|
|
105
|
-
nice?: boolean;
|
|
106
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
107
|
-
[key: string]: any;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
class YAxis extends Component<YAxisProps> {}
|
|
111
|
-
export default YAxis;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare module "reactochart/YLine" {
|
|
115
|
-
import type { Component } from "react";
|
|
116
|
-
|
|
117
|
-
interface YLineProps {
|
|
118
|
-
value: number;
|
|
119
|
-
className?: string;
|
|
120
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
class YLine extends Component<YLineProps> {}
|
|
125
|
-
export default YLine;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
declare module "reactochart/ScatterPlot" {
|
|
129
|
-
import type { Component } from "react";
|
|
130
|
-
|
|
131
|
-
export interface Point {
|
|
132
|
-
x: unknown;
|
|
133
|
-
y: unknown;
|
|
134
|
-
[index: number]: unknown;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface ScatterPlotProps {
|
|
138
|
-
data?: Point[];
|
|
139
|
-
// biome-ignore lint/suspicious/noExplicitAny: third-party library types
|
|
140
|
-
[key: string]: any;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
class ScatterPlot extends Component<ScatterPlotProps> {}
|
|
144
|
-
export default ScatterPlot;
|
|
145
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as ColorHeatmapImport } from 'reactochart/ColorHeatmap';
|
|
2
|
-
import { default as XAxisImport } from 'reactochart/XAxis';
|
|
3
|
-
import { default as XLineImport } from 'reactochart/XLine';
|
|
4
|
-
import { default as XYPlotImport } from 'reactochart/XYPlot';
|
|
5
|
-
import { default as YAxisImport } from 'reactochart/YAxis';
|
|
6
|
-
import { default as YLineImport } from 'reactochart/YLine';
|
|
7
|
-
export declare const ColorHeatmap: typeof ColorHeatmapImport;
|
|
8
|
-
export declare const XAxis: typeof XAxisImport;
|
|
9
|
-
export declare const XLine: typeof XLineImport;
|
|
10
|
-
export declare const XYPlot: typeof XYPlotImport;
|
|
11
|
-
export declare const YAxis: typeof YAxisImport;
|
|
12
|
-
export declare const YLine: typeof YLineImport;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|