@gearbox-protocol/ui-kit 4.0.0-next.2 → 4.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/badge/badge.cjs +1 -1
- package/dist/cjs/components/badge/chip.cjs +1 -0
- package/dist/cjs/components/badge/index.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -1
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -1
- package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -1
- package/dist/cjs/components/base/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/base/health-factor-block/health-factor-block.cjs +1 -1
- package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
- package/dist/cjs/components/base/leverage-preset-chips/constants.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/index.cjs +1 -0
- package/dist/cjs/components/base/leverage-preset-chips/leverage-preset-chips.cjs +1 -0
- package/dist/cjs/components/base/liquidation-price-block/liquidation-price-block.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/constants.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/page-title/index.cjs +1 -1
- package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/position-assets/constants.cjs +1 -0
- package/dist/cjs/components/base/position-assets/index.cjs +1 -0
- package/dist/cjs/components/base/position-assets/position-assets.cjs +1 -0
- package/dist/cjs/components/base/review-button/constants.cjs +1 -1
- package/dist/cjs/components/base/review-button/review-button.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/constants.cjs +1 -1
- package/dist/cjs/components/base/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -1
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -1
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/base/time-to-liquidation-block/time-to-liquidation-block.cjs +1 -1
- package/dist/cjs/components/base/title-meta/constants.cjs +1 -1
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -1
- package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
- package/dist/cjs/components/base/values/constants.cjs +1 -1
- package/dist/cjs/components/base/values/index.cjs +1 -1
- package/dist/cjs/components/base/values/points-value.cjs +1 -0
- package/dist/cjs/components/base/values/position-status-badge.cjs +1 -0
- package/dist/cjs/components/base/values/position-type-badge.cjs +1 -1
- package/dist/cjs/components/base/values/scalars.cjs +1 -1
- package/dist/cjs/components/base-table/base-table-line.cjs +1 -0
- package/dist/cjs/components/base-table/base-table.cjs +1 -0
- package/dist/cjs/components/base-table/constants.cjs +1 -0
- package/dist/cjs/components/base-table/index.cjs +1 -0
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/collateral-allocation-tooltip/allocation-wheel.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/collateral-allocation-tooltip.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/constants.cjs +1 -0
- package/dist/cjs/components/collateral-allocation-tooltip/index.cjs +1 -0
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/constants.cjs +1 -0
- package/dist/cjs/components/composites/pool-assets-table/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title-explorer-dropdown.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/graph/default-config.cjs +1 -1
- package/dist/cjs/components/graph/formatters.cjs +1 -1
- package/dist/cjs/components/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/hf-indicator/hf-indicator.cjs +1 -0
- package/dist/cjs/components/hf-indicator/index.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/infinite-scroll/index.cjs +1 -0
- package/dist/cjs/components/infinite-scroll/infinite-scroll-wrapper.cjs +1 -0
- package/dist/cjs/components/layout/app-footer/app-footer.cjs +1 -1
- package/dist/cjs/components/name-cell/index.cjs +1 -0
- package/dist/cjs/components/name-cell/name-cell.cjs +1 -0
- package/dist/cjs/components/network-icon/index.cjs +1 -1
- package/dist/cjs/components/network-icon/network-indicator.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/constants.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/index.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/sdk-status-pill.cjs +1 -0
- package/dist/cjs/components/sdk-status-pill/sdk-status.cjs +1 -0
- package/dist/cjs/components/trading-view/trading-view.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/components/yield-breakdown-tooltip/yield-breakdown-tooltip.cjs +1 -1
- package/dist/cjs/configs/tailwind-preset.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-observed-width-key.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/cjs/utils/format-leverage.cjs +1 -0
- package/dist/cjs/utils/format-money.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/leverage-presets.cjs +1 -0
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +161 -159
- package/dist/esm/components/badge/badge.js +14 -8
- package/dist/esm/components/badge/chip.js +47 -0
- package/dist/esm/components/badge/index.js +8 -3
- package/dist/esm/components/base/amount-input/token-select-panel.js +33 -37
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +32 -25
- package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +6 -6
- package/dist/esm/components/base/detailed-page-title/detailed-page-title.js +26 -27
- package/dist/esm/components/base/health-factor-block/health-factor-block.js +25 -25
- package/dist/esm/components/base/history-chart/history-chart.js +82 -41
- package/dist/esm/components/base/index.js +156 -141
- package/dist/esm/components/base/info-list/index.js +5 -4
- package/dist/esm/components/base/info-list/info-list.js +52 -27
- package/dist/esm/components/base/leverage-input/leverage-input.js +18 -20
- package/dist/esm/components/base/leverage-preset-chips/constants.js +7 -0
- package/dist/esm/components/base/leverage-preset-chips/index.js +6 -0
- package/dist/esm/components/base/leverage-preset-chips/leverage-preset-chips.js +39 -0
- package/dist/esm/components/base/liquidation-price-block/liquidation-price-block.js +33 -28
- package/dist/esm/components/base/manage-pane/constants.js +3 -2
- package/dist/esm/components/base/manage-pane/manage-pane.js +154 -113
- package/dist/esm/components/base/page-title/index.js +5 -4
- package/dist/esm/components/base/page-title/page-title.js +31 -23
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +23 -30
- package/dist/esm/components/base/position-assets/constants.js +8 -0
- package/dist/esm/components/base/position-assets/index.js +6 -0
- package/dist/esm/components/base/position-assets/position-assets.js +96 -0
- package/dist/esm/components/base/review-button/constants.js +3 -2
- package/dist/esm/components/base/review-button/review-button.js +35 -22
- package/dist/esm/components/base/stat-badge/constants.js +1 -0
- package/dist/esm/components/base/stat-badge/stat-badge.js +91 -47
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +8 -3
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +191 -29
- package/dist/esm/components/base/tabber/tabber.js +67 -64
- package/dist/esm/components/base/time-to-liquidation-block/time-to-liquidation-block.js +31 -31
- package/dist/esm/components/base/title-meta/constants.js +1 -0
- package/dist/esm/components/base/title-meta/title-meta.js +53 -33
- package/dist/esm/components/base/token-amount/token-amount.js +17 -16
- package/dist/esm/components/base/values/constants.js +1 -0
- package/dist/esm/components/base/values/index.js +18 -13
- package/dist/esm/components/base/values/points-value.js +30 -0
- package/dist/esm/components/base/values/position-status-badge.js +26 -0
- package/dist/esm/components/base/values/position-type-badge.js +7 -6
- package/dist/esm/components/base/values/scalars.js +58 -32
- package/dist/esm/components/base-table/base-table-line.js +117 -0
- package/dist/esm/components/base-table/base-table.js +110 -0
- package/dist/esm/components/base-table/constants.js +12 -0
- package/dist/esm/components/base-table/index.js +9 -0
- package/dist/esm/components/checkbox/checkbox-labeled.js +25 -20
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +25 -20
- package/dist/esm/components/collateral-allocation-tooltip/allocation-wheel.js +71 -0
- package/dist/esm/components/collateral-allocation-tooltip/collateral-allocation-tooltip.js +102 -0
- package/dist/esm/components/collateral-allocation-tooltip/constants.js +12 -0
- package/dist/esm/components/collateral-allocation-tooltip/index.js +9 -0
- package/dist/esm/components/composites/index.js +31 -31
- package/dist/esm/components/composites/pool-assets-table/constants.js +9 -0
- package/dist/esm/components/composites/pool-assets-table/index.js +8 -6
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +52 -30
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +111 -77
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +44 -26
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +50 -39
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +114 -59
- package/dist/esm/components/composites/tx-preview/confirm/dialog/constants.js +10 -7
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +8 -10
- package/dist/esm/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.js +1 -0
- package/dist/esm/components/composites/tx-preview/confirm/index.js +24 -26
- package/dist/esm/components/composites/tx-preview/index.js +24 -26
- package/dist/esm/components/compound-apy/compound-apy.js +88 -82
- package/dist/esm/components/detailed-page-title/detailed-page-title-explorer-dropdown.js +50 -41
- package/dist/esm/components/filter/filter-chip.js +1 -0
- package/dist/esm/components/graph/default-config.js +20 -18
- package/dist/esm/components/graph/formatters.js +62 -52
- package/dist/esm/components/graph/graph-view.js +72 -88
- package/dist/esm/components/graph/graph.js +459 -458
- package/dist/esm/components/hf-indicator/hf-indicator.js +59 -0
- package/dist/esm/components/hf-indicator/index.js +4 -0
- package/dist/esm/components/index.js +739 -695
- package/dist/esm/components/infinite-scroll/index.js +4 -0
- package/dist/esm/components/infinite-scroll/infinite-scroll-wrapper.js +30 -0
- package/dist/esm/components/layout/app-footer/app-footer.js +20 -23
- package/dist/esm/components/name-cell/index.js +4 -0
- package/dist/esm/components/name-cell/name-cell.js +35 -0
- package/dist/esm/components/network-icon/index.js +4 -2
- package/dist/esm/components/network-icon/network-indicator.js +82 -0
- package/dist/esm/components/sdk-status-pill/constants.js +8 -0
- package/dist/esm/components/sdk-status-pill/index.js +8 -0
- package/dist/esm/components/sdk-status-pill/sdk-status-pill.js +59 -0
- package/dist/esm/components/sdk-status-pill/sdk-status.js +6 -0
- package/dist/esm/components/trading-view/trading-view.js +193 -155
- package/dist/esm/components/with-copy/with-copy.js +25 -20
- package/dist/esm/components/yield-breakdown-tooltip/yield-breakdown-tooltip.js +114 -171
- package/dist/esm/configs/tailwind-preset.js +13 -1
- package/dist/esm/hooks/index.js +20 -18
- package/dist/esm/hooks/use-observed-width-key.js +24 -0
- package/dist/esm/index.js +896 -842
- package/dist/esm/locale/en.json.js +28 -25
- package/dist/esm/utils/format-leverage.js +6 -0
- package/dist/esm/utils/format-money.js +59 -41
- package/dist/esm/utils/index.js +91 -85
- package/dist/esm/utils/leverage-presets.js +13 -0
- package/dist/globals.css +1 -1
- package/dist/types/components/assets-list-cell/assets-list-cell.d.ts +3 -0
- package/dist/types/components/badge/badge.d.ts +2 -1
- package/dist/types/components/badge/chip.d.ts +22 -0
- package/dist/types/components/badge/index.d.ts +1 -0
- package/dist/types/components/base/amount-input/amount-input.d.ts +3 -2
- package/dist/types/components/base/amount-input/token-select-panel.d.ts +4 -3
- package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +10 -5
- package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +1 -3
- package/dist/types/components/base/health-factor-block/health-factor-block.d.ts +6 -6
- package/dist/types/components/base/history-chart/history-chart.d.ts +32 -8
- package/dist/types/components/base/index.d.ts +2 -0
- package/dist/types/components/base/info-list/info-list.d.ts +7 -0
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
- package/dist/types/components/base/leverage-preset-chips/constants.d.ts +4 -0
- package/dist/types/components/base/leverage-preset-chips/index.d.ts +2 -0
- package/dist/types/components/base/leverage-preset-chips/leverage-preset-chips.d.ts +13 -0
- package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +2 -2
- package/dist/types/components/base/liquidation-price-block/liquidation-price-block.d.ts +6 -4
- package/dist/types/components/base/manage-pane/constants.d.ts +1 -0
- package/dist/types/components/base/manage-pane/manage-pane.d.ts +3 -1
- package/dist/types/components/base/page-title/page-title.d.ts +12 -6
- package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +4 -5
- package/dist/types/components/base/position-assets/constants.d.ts +5 -0
- package/dist/types/components/base/position-assets/index.d.ts +2 -0
- package/dist/types/components/base/position-assets/position-assets.d.ts +55 -0
- package/dist/types/components/base/review-button/constants.d.ts +1 -0
- package/dist/types/components/base/review-button/review-button.d.ts +17 -3
- package/dist/types/components/base/stat-badge/constants.d.ts +1 -0
- package/dist/types/components/base/stat-badge/stat-badge.d.ts +11 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +6 -1
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +43 -4
- package/dist/types/components/base/tabber/tabber.d.ts +2 -2
- package/dist/types/components/base/time-to-liquidation-block/time-to-liquidation-block.d.ts +5 -6
- package/dist/types/components/base/title-meta/constants.d.ts +1 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +9 -1
- package/dist/types/components/base/token-amount/token-amount.d.ts +8 -2
- package/dist/types/components/base/values/constants.d.ts +1 -0
- package/dist/types/components/base/values/index.d.ts +3 -1
- package/dist/types/components/base/values/points-value.d.ts +11 -0
- package/dist/types/components/base/values/position-short-label.d.ts +1 -1
- package/dist/types/components/base/values/position-status-badge.d.ts +7 -0
- package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
- package/dist/types/components/base/values/scalars.d.ts +30 -2
- package/dist/types/components/base-table/base-table-line.d.ts +21 -0
- package/dist/types/components/base-table/base-table.d.ts +19 -0
- package/dist/types/components/base-table/constants.d.ts +8 -0
- package/dist/types/components/base-table/index.d.ts +3 -0
- package/dist/types/components/base-table/types.d.ts +37 -0
- package/dist/types/components/collateral-allocation-tooltip/allocation-wheel.d.ts +10 -0
- package/dist/types/components/collateral-allocation-tooltip/collateral-allocation-tooltip.d.ts +23 -0
- package/dist/types/components/collateral-allocation-tooltip/constants.d.ts +8 -0
- package/dist/types/components/collateral-allocation-tooltip/index.d.ts +3 -0
- package/dist/types/components/composites/pool-assets-table/constants.d.ts +6 -0
- package/dist/types/components/composites/pool-assets-table/index.d.ts +1 -0
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-head.d.ts +1 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table-row.d.ts +8 -8
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +7 -20
- package/dist/types/components/composites/pool-assets-table/types.d.ts +4 -12
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +47 -14
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +1 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +23 -19
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +2 -2
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmPhase.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts +98 -0
- package/dist/types/components/compound-apy/compound-apy.d.ts +12 -2
- package/dist/types/components/graph/formatters.d.ts +6 -1
- package/dist/types/components/graph/graph-view.d.ts +1 -1
- package/dist/types/components/graph/graph.d.ts +4 -0
- package/dist/types/components/hf-indicator/hf-indicator.d.ts +17 -0
- package/dist/types/components/hf-indicator/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +6 -1
- package/dist/types/components/infinite-scroll/index.d.ts +1 -0
- package/dist/types/components/infinite-scroll/infinite-scroll-wrapper.d.ts +11 -0
- package/dist/types/components/layout/app-footer/app-footer.d.ts +9 -15
- package/dist/types/components/name-cell/index.d.ts +1 -0
- package/dist/types/components/name-cell/name-cell.d.ts +13 -0
- package/dist/types/components/network-icon/index.d.ts +1 -0
- package/dist/types/components/network-icon/network-indicator.d.ts +23 -0
- package/dist/types/components/sdk-status-pill/constants.d.ts +5 -0
- package/dist/types/components/sdk-status-pill/index.d.ts +3 -0
- package/dist/types/components/sdk-status-pill/sdk-status-pill.d.ts +27 -0
- package/dist/types/components/sdk-status-pill/sdk-status.d.ts +11 -0
- package/dist/types/components/trading-view/trading-view.d.ts +14 -7
- package/dist/types/components/yield-breakdown-tooltip/yield-breakdown-tooltip.d.ts +8 -10
- package/dist/types/configs/tailwind-preset.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/use-observed-width-key.d.ts +8 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/locale/en.json.d.ts +28 -23
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/format-leverage.d.ts +5 -0
- package/dist/types/utils/format-money.d.ts +11 -5
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types/utils/leverage-presets.d.ts +7 -0
- package/package.json +6 -6
- package/src/styles/base.css +30 -0
- package/src/styles/theme.css +16 -0
- package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +0 -1
- package/dist/cjs/components/block-sync-pill/block-sync-status.cjs +0 -1
- package/dist/cjs/components/block-sync-pill/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +0 -1
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +0 -206
- package/dist/esm/components/block-sync-pill/block-sync-status.js +0 -12
- package/dist/esm/components/block-sync-pill/index.js +0 -4
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +0 -176
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +0 -54
- package/dist/types/components/block-sync-pill/block-sync-pill.d.ts +0 -35
- package/dist/types/components/block-sync-pill/block-sync-status.d.ts +0 -29
- package/dist/types/components/block-sync-pill/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +0 -17
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +0 -16
- package/dist/types/types/footer.d.ts +0 -51
- /package/dist/cjs/{types/footer.cjs → components/base-table/types.cjs} +0 -0
- /package/dist/esm/{types/footer.js → components/base-table/types.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { SimpleAccordion as
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { SimpleAccordion as l, SimpleAccordionItem as s } from "../../simple-accordion/simple-accordion.js";
|
|
3
3
|
import { TipCard as c } from "../../tip-card/tip-card.js";
|
|
4
|
-
import { FormattedMessageTyped as
|
|
4
|
+
import { FormattedMessageTyped as e } from "../../typed-intl/index.js";
|
|
5
5
|
import { Typography as d } from "../../typography/typography.js";
|
|
6
6
|
import { VSpace as f } from "../../vspace/vspace.js";
|
|
7
|
-
import { InfoList as
|
|
7
|
+
import { InfoList as b, InfoLine as i } from "../info-list/info-list.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "@gearbox-protocol/sdk";
|
|
10
10
|
import "clsx";
|
|
@@ -13,15 +13,22 @@ import "sonner";
|
|
|
13
13
|
import "@gearbox-protocol/sdk/common-utils";
|
|
14
14
|
import "luxon";
|
|
15
15
|
import "../../../utils/z-index.js";
|
|
16
|
-
import
|
|
16
|
+
import "../../points-icon/points-icon.js";
|
|
17
|
+
import { ApyValue as a } from "../values/scalars.js";
|
|
17
18
|
import "../../badge/badge.js";
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
import "../../badge/chip.js";
|
|
20
|
+
import { BorrowRateBlockTest as n } from "./constants.js";
|
|
21
|
+
function p(t) {
|
|
22
|
+
return typeof t == "number" ? t : t?.total;
|
|
23
|
+
}
|
|
24
|
+
function u(t) {
|
|
25
|
+
return typeof t == "number" ? t : t?.base;
|
|
26
|
+
}
|
|
27
|
+
function q({
|
|
28
|
+
data: t,
|
|
29
|
+
dataTo: r
|
|
23
30
|
}) {
|
|
24
|
-
return /* @__PURE__ */ o("div", { "data-testid":
|
|
31
|
+
return /* @__PURE__ */ o("div", { "data-testid": n.root, children: /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(
|
|
25
32
|
s,
|
|
26
33
|
{
|
|
27
34
|
value: "borrow-rate",
|
|
@@ -32,35 +39,35 @@ function L({
|
|
|
32
39
|
"div",
|
|
33
40
|
{
|
|
34
41
|
className: "min-w-0 flex-1 pr-1.5",
|
|
35
|
-
"data-testid":
|
|
42
|
+
"data-testid": n.trigger,
|
|
36
43
|
children: /* @__PURE__ */ o(
|
|
37
|
-
|
|
44
|
+
i,
|
|
38
45
|
{
|
|
39
46
|
title: "components.borrowRateBlock.label",
|
|
40
|
-
tip: /* @__PURE__ */ o(
|
|
41
|
-
value: /* @__PURE__ */ o(
|
|
42
|
-
valueTo:
|
|
47
|
+
tip: /* @__PURE__ */ o(e, { messageId: "components.borrowRateBlock.tip" }),
|
|
48
|
+
value: /* @__PURE__ */ o(a, { data: p(t) }),
|
|
49
|
+
valueTo: r !== void 0 ? /* @__PURE__ */ o(a, { data: p(r) }) : void 0
|
|
43
50
|
}
|
|
44
51
|
)
|
|
45
52
|
}
|
|
46
53
|
),
|
|
47
|
-
description: /* @__PURE__ */
|
|
54
|
+
description: /* @__PURE__ */ m("div", { "data-testid": n.details, children: [
|
|
48
55
|
/* @__PURE__ */ o(f, { size: 16 }),
|
|
49
|
-
/* @__PURE__ */ o(c, { backgroundColor: "transparent", textColor: "unset", children: /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */ o(d, { as: "span", variant: "caption", color: "secondary", children: /* @__PURE__ */ o(
|
|
56
|
+
/* @__PURE__ */ o(c, { backgroundColor: "transparent", textColor: "unset", children: /* @__PURE__ */ m(b, { children: [
|
|
57
|
+
/* @__PURE__ */ o(d, { as: "span", variant: "caption", color: "secondary", children: /* @__PURE__ */ o(e, { messageId: "components.borrowRateBlock.description" }) }),
|
|
51
58
|
/* @__PURE__ */ o(
|
|
52
|
-
|
|
59
|
+
i,
|
|
53
60
|
{
|
|
54
61
|
title: "components.borrowRateBlock.baseRate",
|
|
55
|
-
value: /* @__PURE__ */ o(
|
|
62
|
+
value: /* @__PURE__ */ o(a, { data: u(r ?? t) })
|
|
56
63
|
}
|
|
57
64
|
),
|
|
58
65
|
/* @__PURE__ */ o(
|
|
59
|
-
|
|
66
|
+
i,
|
|
60
67
|
{
|
|
61
68
|
title: "components.borrowRateBlock.normalization",
|
|
62
69
|
tip: /* @__PURE__ */ o(
|
|
63
|
-
|
|
70
|
+
e,
|
|
64
71
|
{
|
|
65
72
|
messageId: "components.borrowRateBlock.normalization.tip",
|
|
66
73
|
values: {
|
|
@@ -78,6 +85,6 @@ function L({
|
|
|
78
85
|
) }) });
|
|
79
86
|
}
|
|
80
87
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
q as BorrowRateBlock,
|
|
89
|
+
n as BorrowRateBlockTest
|
|
83
90
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { ChartWithSideCardTest as i } from "./constants.js";
|
|
3
3
|
function m({
|
|
4
|
-
chart:
|
|
4
|
+
chart: a,
|
|
5
5
|
side: t
|
|
6
6
|
}) {
|
|
7
7
|
return /* @__PURE__ */ e(
|
|
@@ -10,18 +10,18 @@ function m({
|
|
|
10
10
|
className: "flex w-full flex-wrap gap-4",
|
|
11
11
|
"data-testid": i.root,
|
|
12
12
|
children: [
|
|
13
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ r(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
16
|
className: "min-w-[min(100%,40rem)] grow-[999] basis-0",
|
|
17
17
|
"data-testid": i.chart,
|
|
18
|
-
children:
|
|
18
|
+
children: a
|
|
19
19
|
}
|
|
20
20
|
),
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
className: "min-w-
|
|
24
|
+
className: "min-w-[min(100%,300px)] grow-0 shrink-0 basis-[22.5rem]",
|
|
25
25
|
"data-testid": i.side,
|
|
26
26
|
children: t
|
|
27
27
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { PageTitle as
|
|
2
|
+
import { PageTitle as N } from "../page-title/page-title.js";
|
|
3
3
|
import { Stack as i } from "../stack/stack.js";
|
|
4
|
-
import { DetailedPageTitleCopyButton as
|
|
5
|
-
import { DetailedPageTitleExplorerDropdown as
|
|
6
|
-
import { TokenSymbol as
|
|
4
|
+
import { DetailedPageTitleCopyButton as j } from "../../detailed-page-title/detailed-page-title-copy-button.js";
|
|
5
|
+
import { DetailedPageTitleExplorerDropdown as x } from "../../detailed-page-title/detailed-page-title-explorer-dropdown.js";
|
|
6
|
+
import { TokenSymbol as y } from "../../token-symbol/token-symbol.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "@gearbox-protocol/sdk";
|
|
9
9
|
import { cn as m } from "../../../utils/cn.js";
|
|
@@ -12,33 +12,32 @@ import "@gearbox-protocol/sdk/common-utils";
|
|
|
12
12
|
import "luxon";
|
|
13
13
|
import "../../../utils/z-index.js";
|
|
14
14
|
import { DetailedPageTitleTest as s } from "./constants.js";
|
|
15
|
-
function
|
|
15
|
+
function K({
|
|
16
16
|
title: c,
|
|
17
17
|
browserTitle: p,
|
|
18
|
-
head: d,
|
|
19
18
|
token: n,
|
|
20
|
-
icon:
|
|
21
|
-
tokenIconSize:
|
|
22
|
-
disabled:
|
|
19
|
+
icon: d,
|
|
20
|
+
tokenIconSize: u = 32,
|
|
21
|
+
disabled: g = !1,
|
|
23
22
|
toCopy: l,
|
|
24
23
|
explorerLinks: t,
|
|
25
|
-
badges:
|
|
24
|
+
badges: f,
|
|
26
25
|
actions: a,
|
|
27
26
|
buttonsSlot: o,
|
|
28
|
-
meta:
|
|
29
|
-
actionsPosition:
|
|
30
|
-
className:
|
|
27
|
+
meta: w,
|
|
28
|
+
actionsPosition: h = "left",
|
|
29
|
+
className: T
|
|
31
30
|
}) {
|
|
32
|
-
const
|
|
31
|
+
const D = n ? /* @__PURE__ */ e(
|
|
33
32
|
"span",
|
|
34
33
|
{
|
|
35
34
|
className: m(
|
|
36
35
|
"inline-flex shrink-0 self-center",
|
|
37
|
-
|
|
36
|
+
g ? "grayscale" : void 0
|
|
38
37
|
),
|
|
39
|
-
children: /* @__PURE__ */ e(
|
|
38
|
+
children: /* @__PURE__ */ e(y, { size: u, token: n })
|
|
40
39
|
}
|
|
41
|
-
) :
|
|
40
|
+
) : d, P = o != null || a != null || l != null || t != null && t.length > 0 ? /* @__PURE__ */ r(
|
|
42
41
|
i,
|
|
43
42
|
{
|
|
44
43
|
direction: "row",
|
|
@@ -49,9 +48,9 @@ function M({
|
|
|
49
48
|
children: [
|
|
50
49
|
a,
|
|
51
50
|
o,
|
|
52
|
-
l != null ? /* @__PURE__ */ e(
|
|
51
|
+
l != null ? /* @__PURE__ */ e(j, { toCopy: l }) : null,
|
|
53
52
|
t != null && t.length > 0 ? /* @__PURE__ */ e(
|
|
54
|
-
|
|
53
|
+
x,
|
|
55
54
|
{
|
|
56
55
|
explorerLinks: [...t]
|
|
57
56
|
}
|
|
@@ -63,7 +62,7 @@ function M({
|
|
|
63
62
|
i,
|
|
64
63
|
{
|
|
65
64
|
gap: "sm",
|
|
66
|
-
className: m("min-w-0",
|
|
65
|
+
className: m("min-w-0", T),
|
|
67
66
|
"data-testid": s.root,
|
|
68
67
|
children: [
|
|
69
68
|
/* @__PURE__ */ r(
|
|
@@ -72,25 +71,25 @@ function M({
|
|
|
72
71
|
direction: "row",
|
|
73
72
|
align: "center",
|
|
74
73
|
gap: "sm",
|
|
75
|
-
justify:
|
|
74
|
+
justify: h === "right" ? "between" : "start",
|
|
76
75
|
wrap: !0,
|
|
77
76
|
className: "w-full",
|
|
78
77
|
children: [
|
|
79
78
|
/* @__PURE__ */ r(i, { direction: "row", align: "center", gap: "sm", wrap: !0, className: "min-w-0", children: [
|
|
80
|
-
|
|
81
|
-
/* @__PURE__ */ e(
|
|
82
|
-
|
|
79
|
+
D,
|
|
80
|
+
/* @__PURE__ */ e(N, { title: c, browserTitle: p }),
|
|
81
|
+
f
|
|
83
82
|
] }),
|
|
84
|
-
|
|
83
|
+
P
|
|
85
84
|
]
|
|
86
85
|
}
|
|
87
86
|
),
|
|
88
|
-
|
|
87
|
+
w
|
|
89
88
|
]
|
|
90
89
|
}
|
|
91
90
|
);
|
|
92
91
|
}
|
|
93
92
|
export {
|
|
94
|
-
|
|
93
|
+
K as DetailedPageTitle,
|
|
95
94
|
s as DetailedPageTitleTest
|
|
96
95
|
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useTitleText as
|
|
3
|
-
import { FadeoutLoading as
|
|
4
|
-
import { HealthFactor as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTitleText as h } from "../text/use-title-text.js";
|
|
3
|
+
import { FadeoutLoading as s } from "../../fadeout-loading/fadeout-loading.js";
|
|
4
|
+
import { HealthFactor as c } from "../../health-factor/health-factor.js";
|
|
5
5
|
import { FormattedMessageTyped as n } from "../../typed-intl/index.js";
|
|
6
|
-
import { VerticalIndicator as
|
|
7
|
-
import { HealthFactorBlockTest as
|
|
6
|
+
import { VerticalIndicator as g } from "../../vertical-indicator/vertical-indicator.js";
|
|
7
|
+
import { HealthFactorBlockTest as t } from "./constants.js";
|
|
8
8
|
function b({
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
healthFactor: e,
|
|
10
|
+
healthFactorTo: a,
|
|
11
11
|
debt: r,
|
|
12
12
|
debtTo: p,
|
|
13
|
-
zone:
|
|
14
|
-
isLoading:
|
|
13
|
+
zone: i,
|
|
14
|
+
isLoading: l,
|
|
15
15
|
title: d,
|
|
16
16
|
tip: u,
|
|
17
17
|
testId: v
|
|
18
18
|
}) {
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
const f = h(), m = a !== void 0;
|
|
20
|
+
return /* @__PURE__ */ o(
|
|
21
|
+
g,
|
|
22
22
|
{
|
|
23
23
|
align: "center",
|
|
24
24
|
dimPreviousValue: !1,
|
|
25
|
-
"data-testid": v ??
|
|
26
|
-
label: d !== void 0 ?
|
|
27
|
-
tip: u ?? /* @__PURE__ */
|
|
28
|
-
value: /* @__PURE__ */
|
|
29
|
-
|
|
25
|
+
"data-testid": v ?? t.root,
|
|
26
|
+
label: d !== void 0 ? f(d) : /* @__PURE__ */ o(n, { messageId: "components.healthFactorBlock.label" }),
|
|
27
|
+
tip: u ?? /* @__PURE__ */ o(n, { messageId: "components.healthFactorBlock.tip" }),
|
|
28
|
+
value: /* @__PURE__ */ o(s, { loading: l, children: e === void 0 ? /* @__PURE__ */ o("span", { "data-testid": t.value, children: "—" }) : /* @__PURE__ */ o(
|
|
29
|
+
c,
|
|
30
30
|
{
|
|
31
31
|
value: e,
|
|
32
32
|
debt: r,
|
|
33
|
-
zone:
|
|
34
|
-
"data-testid":
|
|
33
|
+
zone: m ? void 0 : i,
|
|
34
|
+
"data-testid": t.value
|
|
35
35
|
}
|
|
36
36
|
) }),
|
|
37
|
-
valueTo:
|
|
38
|
-
|
|
37
|
+
valueTo: m ? /* @__PURE__ */ o(s, { loading: l, children: /* @__PURE__ */ o(
|
|
38
|
+
c,
|
|
39
39
|
{
|
|
40
40
|
value: a,
|
|
41
41
|
debt: p ?? r,
|
|
42
|
-
zone:
|
|
43
|
-
"data-testid":
|
|
42
|
+
zone: i,
|
|
43
|
+
"data-testid": t.valueTo
|
|
44
44
|
}
|
|
45
45
|
) }) : void 0
|
|
46
46
|
}
|
|
@@ -48,5 +48,5 @@ function b({
|
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
50
50
|
b as HealthFactorBlock,
|
|
51
|
-
|
|
51
|
+
t as HealthFactorBlockTest
|
|
52
52
|
};
|
|
@@ -1,70 +1,111 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { CHART_RANGES as b } from "@gearbox-protocol/sdk/model";
|
|
2
3
|
import { useMemo as g } from "react";
|
|
4
|
+
import { useTitleText as w } from "../text/use-title-text.js";
|
|
3
5
|
import "@gearbox-protocol/static";
|
|
4
6
|
import "../../checkbox/checkbox.js";
|
|
5
7
|
import "../../checkbox/checkbox-labeled.js";
|
|
6
8
|
import "../../select/select.js";
|
|
7
|
-
import { TradingView as
|
|
8
|
-
import { useIntlTyped as
|
|
9
|
-
import { HistoryChartTest as
|
|
10
|
-
const
|
|
9
|
+
import { TradingView as D } from "../../trading-view/trading-view.js";
|
|
10
|
+
import { useIntlTyped as H } from "../../typed-intl/index.js";
|
|
11
|
+
import { HistoryChartTest as M } from "./constants.js";
|
|
12
|
+
const N = b, O = {
|
|
11
13
|
"1d": "1D",
|
|
12
|
-
"1w": "
|
|
14
|
+
"1w": "7D",
|
|
13
15
|
"1m": "1M",
|
|
14
16
|
"1y": "1Y",
|
|
15
17
|
max: "MAX"
|
|
16
18
|
};
|
|
17
|
-
function
|
|
19
|
+
function J({
|
|
18
20
|
data: t,
|
|
19
21
|
range: r,
|
|
20
|
-
onRange:
|
|
21
|
-
isLoading:
|
|
22
|
-
error:
|
|
23
|
-
yMeasureUnit:
|
|
24
|
-
height:
|
|
25
|
-
seriesTitles:
|
|
26
|
-
priceLines:
|
|
27
|
-
zones:
|
|
28
|
-
showCurrentValue:
|
|
29
|
-
yScaleMin:
|
|
22
|
+
onRange: s,
|
|
23
|
+
isLoading: v = !1,
|
|
24
|
+
error: S,
|
|
25
|
+
yMeasureUnit: a = "none",
|
|
26
|
+
height: x,
|
|
27
|
+
seriesTitles: c,
|
|
28
|
+
priceLines: f,
|
|
29
|
+
zones: u,
|
|
30
|
+
showCurrentValue: C = !1,
|
|
31
|
+
yScaleMin: I,
|
|
32
|
+
title: A,
|
|
33
|
+
trailing: R,
|
|
34
|
+
dualYAxis: E
|
|
30
35
|
}) {
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
const h = H(), G = w(), o = g(
|
|
37
|
+
() => Array.isArray(a) ? a : void 0,
|
|
38
|
+
[a]
|
|
39
|
+
), p = o != null && new Set(o).size > 1, d = E ?? p, l = o?.[0], L = g(() => {
|
|
40
|
+
const n = (i, e) => {
|
|
41
|
+
if (!d) return i;
|
|
42
|
+
if (p && o != null && l != null) {
|
|
43
|
+
const m = o[e] ?? l;
|
|
44
|
+
return {
|
|
45
|
+
...i,
|
|
46
|
+
priceScaleId: m === l ? "left" : "right"
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
...i,
|
|
51
|
+
priceScaleId: e === 0 ? "left" : "right"
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
if (t)
|
|
55
|
+
return (Array.isArray(t) ? t : [t]).map(
|
|
56
|
+
(e, m) => n(T(c)(e), m)
|
|
57
|
+
);
|
|
58
|
+
if (c)
|
|
59
|
+
return Object.entries(c).map(
|
|
60
|
+
([i, e], m) => n(
|
|
61
|
+
{
|
|
62
|
+
id: i,
|
|
63
|
+
title: e,
|
|
64
|
+
data: []
|
|
65
|
+
},
|
|
66
|
+
m
|
|
67
|
+
)
|
|
68
|
+
);
|
|
69
|
+
}, [t, c, p, d, l, o]);
|
|
70
|
+
return /* @__PURE__ */ y("div", { "data-testid": M.root, children: /* @__PURE__ */ y(
|
|
71
|
+
D,
|
|
34
72
|
{
|
|
35
|
-
data:
|
|
36
|
-
isLoading:
|
|
37
|
-
error:
|
|
38
|
-
emptyMessage:
|
|
73
|
+
data: L,
|
|
74
|
+
isLoading: v,
|
|
75
|
+
error: S ? h.formatMessage({ messageId: "components.historyChart.error" }) : void 0,
|
|
76
|
+
emptyMessage: h.formatMessage({
|
|
39
77
|
messageId: "components.historyChart.empty"
|
|
40
78
|
}),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
79
|
+
dualYAxis: d,
|
|
80
|
+
yMeasureUnit: a,
|
|
81
|
+
height: x,
|
|
82
|
+
rangeList: N.map((n) => ({
|
|
83
|
+
value: n,
|
|
84
|
+
label: O[n]
|
|
46
85
|
})),
|
|
47
86
|
range: r,
|
|
48
|
-
setRange:
|
|
49
|
-
priceLineOptions:
|
|
50
|
-
zoneOptions:
|
|
51
|
-
showCurrentValue:
|
|
52
|
-
yScaleMin:
|
|
53
|
-
disableZoom: !0
|
|
87
|
+
setRange: s,
|
|
88
|
+
priceLineOptions: f ? [...f] : void 0,
|
|
89
|
+
zoneOptions: u ? [...u] : void 0,
|
|
90
|
+
showCurrentValue: C,
|
|
91
|
+
yScaleMin: I,
|
|
92
|
+
disableZoom: !0,
|
|
93
|
+
title: A != null ? G(A) : void 0,
|
|
94
|
+
trailing: R
|
|
54
95
|
}
|
|
55
96
|
) });
|
|
56
97
|
}
|
|
57
|
-
function
|
|
98
|
+
function T(t) {
|
|
58
99
|
return (r) => ({
|
|
59
100
|
id: r.metric,
|
|
60
101
|
title: t?.[r.metric] ?? r.metric,
|
|
61
|
-
data: r.points.map((
|
|
62
|
-
time:
|
|
63
|
-
value:
|
|
102
|
+
data: r.points.map((s) => ({
|
|
103
|
+
time: s.timestamp,
|
|
104
|
+
value: s.value
|
|
64
105
|
}))
|
|
65
106
|
});
|
|
66
107
|
}
|
|
67
108
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
109
|
+
J as HistoryChart,
|
|
110
|
+
M as HistoryChartTest
|
|
70
111
|
};
|