@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,3 +1,4 @@
|
|
|
1
|
+
import { TokenAmount } from '@gearbox-protocol/sdk/model';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
import { TokenTemplateProps } from '../../../../token-template';
|
|
@@ -5,25 +6,57 @@ declare const rootVariants: (props?: ({
|
|
|
5
6
|
position?: "first" | "last" | "inBetween" | "solo" | null | undefined;
|
|
6
7
|
size?: "sm" | "md" | null | undefined;
|
|
7
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
|
|
9
|
+
type PrimarySlot = {
|
|
10
|
+
readonly value: TokenTemplateProps["value"];
|
|
11
|
+
readonly token?: TokenTemplateProps["token"];
|
|
12
|
+
} | {
|
|
13
|
+
node: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
type SecondarySlot = {
|
|
16
|
+
readonly valueUSD?: bigint | number;
|
|
17
|
+
} | {
|
|
18
|
+
node: React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Either hand over the SDK's {@link TokenAmount} whole, or fill the two slots
|
|
22
|
+
* yourself. The slot form stays for the `node` escape hatch and for callers
|
|
23
|
+
* that have no `TokenAmount` to give.
|
|
24
|
+
*/
|
|
25
|
+
type AmountSource = {
|
|
26
|
+
/**
|
|
27
|
+
* Value, token and the USD caption all read off one SDK amount.
|
|
28
|
+
* `null` means unavailable and renders like any other absent value.
|
|
29
|
+
*/
|
|
30
|
+
readonly amount: TokenAmount | null;
|
|
31
|
+
readonly primaryAmount?: undefined;
|
|
32
|
+
readonly secondaryAmount?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
readonly amount?: undefined;
|
|
35
|
+
readonly primaryAmount: PrimarySlot;
|
|
36
|
+
readonly secondaryAmount?: SecondarySlot;
|
|
37
|
+
};
|
|
38
|
+
export type TransactionConfirmAmountFieldProps = VariantProps<typeof rootVariants> & AmountSource & {
|
|
9
39
|
readonly label: React.ReactNode;
|
|
10
|
-
readonly primaryAmount: {
|
|
11
|
-
readonly value: TokenTemplateProps["value"];
|
|
12
|
-
readonly token?: TokenTemplateProps["token"];
|
|
13
|
-
} | {
|
|
14
|
-
node: React.ReactNode;
|
|
15
|
-
};
|
|
16
|
-
readonly secondaryAmount?: {
|
|
17
|
-
readonly valueUSD?: bigint | number;
|
|
18
|
-
} | {
|
|
19
|
-
node: React.ReactNode;
|
|
20
|
-
};
|
|
21
40
|
readonly loading?: boolean;
|
|
22
41
|
readonly maxLength?: number;
|
|
23
42
|
readonly approximate?: {
|
|
24
43
|
isApproximate?: boolean;
|
|
25
44
|
approximateSymbol?: string;
|
|
26
45
|
};
|
|
27
|
-
}
|
|
28
|
-
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* One SDK amount already carries all three things the field shows: the number,
|
|
49
|
+
* its token and the dollar value. Callers used to take it apart and hand the
|
|
50
|
+
* pieces back through two props; passing `amount` lets them stop.
|
|
51
|
+
*
|
|
52
|
+
* Takes the whole prop union so the slot form is picked by the discriminant
|
|
53
|
+
* rather than by a cast — `amount` is `TokenAmount | null`, never `undefined`,
|
|
54
|
+
* so a caller holding `TokenAmount | undefined` has to say `?? null` and
|
|
55
|
+
* cannot land here with nothing at all.
|
|
56
|
+
*/
|
|
57
|
+
export declare function resolveAmountSlots(source: AmountSource): {
|
|
58
|
+
readonly primaryAmount: PrimarySlot;
|
|
59
|
+
readonly secondaryAmount: SecondarySlot | undefined;
|
|
60
|
+
};
|
|
61
|
+
export declare function TransactionConfirmAmountField(props: TransactionConfirmAmountFieldProps): React.ReactElement;
|
|
29
62
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
|
-
export
|
|
2
|
+
export { TransactionConfirmAmountField, type TransactionConfirmAmountFieldProps, } from './TransactionConfirmAmountField';
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
-
export interface TransactionConfirmShellProps {
|
|
5
|
-
readonly phase?: TransactionConfirmPhase;
|
|
6
|
-
readonly header?: React.ReactNode;
|
|
7
|
-
readonly preview: React.ReactNode;
|
|
8
|
-
readonly previewLoading?: boolean;
|
|
9
|
-
readonly previewError?: Error | null;
|
|
10
|
-
readonly previewErrorTitle?: string;
|
|
11
|
-
readonly previewClassName?: string;
|
|
12
|
-
readonly execution: React.ReactNode;
|
|
13
|
-
readonly progressSteps?: ReadonlyArray<TransactionExecutionStepView>;
|
|
14
|
-
readonly renderProgressStepLabel?: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
15
|
-
readonly result?: React.ReactNode;
|
|
16
|
-
readonly className?: string;
|
|
17
|
-
readonly "data-testid"?: string;
|
|
18
|
-
}
|
|
2
|
+
import { TransactionConfirmShellProps } from './transactionConfirmShellTypes';
|
|
19
3
|
/**
|
|
4
|
+
* The one card every transaction confirmation renders, on every surface.
|
|
20
5
|
*
|
|
21
|
-
*
|
|
6
|
+
* Callers describe *what the card shows* (`body`) and *how it is framed*
|
|
7
|
+
* (`mode`); everything else is decided here. This replaces the former
|
|
8
|
+
* `TransactionConfirmPageView` / `TransactionConfirmModalView` pair, which
|
|
9
|
+
* differed only in the frame yet each restated the whole prop list.
|
|
10
|
+
*
|
|
11
|
+
* Two traps from that pair are closed here rather than left to callers.
|
|
12
|
+
*
|
|
13
|
+
* The modal's height clamp is composed with `className` instead of being
|
|
14
|
+
* replaced by it, so a caller adding a class no longer drops the viewport
|
|
15
|
+
* clamp and the flex context the scrollable preview depends on by accident.
|
|
16
|
+
* `cn` is tailwind-merge, so a utility deliberately targeting the same
|
|
17
|
+
* property still wins — though arbitrary-property syntax such as
|
|
18
|
+
* `[max-height:50vh]` sits in a different group and will not displace it.
|
|
19
|
+
*
|
|
20
|
+
* And a `placeholder` or `error` body pins the phase to `confirm`, so those
|
|
21
|
+
* two can never be asked for a result view they were never given. Note the
|
|
22
|
+
* limit of that guarantee: a `ready` body driven to a terminal phase without a
|
|
23
|
+
* `result` still draws a header and nothing else, exactly as the views it
|
|
24
|
+
* replaces did. Requiring both halves of `result` is what keeps the promise
|
|
25
|
+
* whole once a caller opts into one.
|
|
22
26
|
*/
|
|
23
|
-
export declare function TransactionConfirmShell(
|
|
27
|
+
export declare function TransactionConfirmShell(props: TransactionConfirmShellProps): React.ReactElement | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './computeTransactionConfirmDialogLayout';
|
|
2
2
|
export * from './constants';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './TransactionConfirmPageView';
|
|
3
|
+
export * from './TransactionConfirmShell';
|
|
5
4
|
export * from './transactionConfirmPhase';
|
|
5
|
+
export * from './transactionConfirmShellTypes';
|
package/dist/types/components/composites/tx-preview/confirm/dialog/transactionConfirmShellTypes.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ProgressStepperStep } from '../stepper/ProgressStepper';
|
|
3
|
+
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
+
/**
|
|
5
|
+
* How the card is framed. The body is identical in both: `page` drops the card
|
|
6
|
+
* into page flow, `dialog` puts the same card inside a modal.
|
|
7
|
+
*/
|
|
8
|
+
export type TransactionConfirmShellMode = "page" | "dialog";
|
|
9
|
+
/**
|
|
10
|
+
* Pre-labelled, ready-to-render steps. The slot no longer restricts step ids
|
|
11
|
+
* to the execution union: session-plan steppers (agreement/approve/confirm
|
|
12
|
+
* plus a delayed request/complete tail) carry their own ids and labels, and
|
|
13
|
+
* visibility is the caller's decision — omit the slot to hide the stepper.
|
|
14
|
+
*/
|
|
15
|
+
export type TransactionConfirmShellStepper = ReadonlyArray<ProgressStepperStep>;
|
|
16
|
+
/**
|
|
17
|
+
* Shown instead of preview and execution once the phase is terminal.
|
|
18
|
+
*
|
|
19
|
+
* Both halves are required on purpose: supplying `result` at all is the
|
|
20
|
+
* caller's promise that either terminal phase can be rendered. A flow that
|
|
21
|
+
* cannot fail says so with an explicit `failure: null` rather than by omission,
|
|
22
|
+
* which would leave `phase: "failure"` with nothing to draw.
|
|
23
|
+
*/
|
|
24
|
+
export interface TransactionConfirmShellResult {
|
|
25
|
+
readonly success: React.ReactNode;
|
|
26
|
+
readonly failure: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* What the card is showing.
|
|
30
|
+
*
|
|
31
|
+
* A discriminated union rather than a handful of loose flags: a caller cannot
|
|
32
|
+
* ask for a preview and an error at once, and does not have to spell out the
|
|
33
|
+
* props that mean "nothing here". `placeholder` and `error` also pin the card
|
|
34
|
+
* to the `confirm` phase, so neither can ask for a result view it did not
|
|
35
|
+
* supply — the failure mode that produced an empty card before.
|
|
36
|
+
*/
|
|
37
|
+
export type TransactionConfirmShellBody =
|
|
38
|
+
/**
|
|
39
|
+
* Nothing to show yet: a spinner and a caption, drawn here so no consumer
|
|
40
|
+
* has to assemble one. Distinct from `ready`'s `previewLoading`, which is a
|
|
41
|
+
* skeleton over a preview that already exists.
|
|
42
|
+
*/
|
|
43
|
+
{
|
|
44
|
+
readonly kind: "loading";
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: "error";
|
|
47
|
+
/**
|
|
48
|
+
* Required: the discriminant already says the card failed, so the object
|
|
49
|
+
* has to be there. A caller holding `Error | null` picks this body only
|
|
50
|
+
* once it has one, and `placeholder` or `ready` while it does not.
|
|
51
|
+
*/
|
|
52
|
+
readonly error: Error;
|
|
53
|
+
/** Heading above the error line. Defaults to this library's own copy. */
|
|
54
|
+
readonly title?: string;
|
|
55
|
+
} | {
|
|
56
|
+
readonly kind: "ready";
|
|
57
|
+
readonly preview: React.ReactNode;
|
|
58
|
+
readonly execution?: React.ReactNode;
|
|
59
|
+
readonly stepper?: TransactionConfirmShellStepper;
|
|
60
|
+
readonly result?: TransactionConfirmShellResult;
|
|
61
|
+
/** This library's skeleton over the preview slot, for a live refetch. */
|
|
62
|
+
readonly previewLoading?: boolean;
|
|
63
|
+
};
|
|
64
|
+
interface TransactionConfirmShellBase {
|
|
65
|
+
readonly phase?: TransactionConfirmPhase;
|
|
66
|
+
readonly title: React.ReactNode;
|
|
67
|
+
readonly titleAddon?: React.ReactNode;
|
|
68
|
+
/** Drop the addon once the phase is terminal. */
|
|
69
|
+
readonly hideTitleAddonOnResult?: boolean;
|
|
70
|
+
readonly body: TransactionConfirmShellBody;
|
|
71
|
+
/** Merged onto the outer card; it never replaces the frame's own classes. */
|
|
72
|
+
readonly className?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The scrollable preview column. Defaults to
|
|
75
|
+
* {@link transactionConfirmPreviewScrollVariants}; compose with it rather
|
|
76
|
+
* than replacing it, so later changes to the base still carry over.
|
|
77
|
+
*/
|
|
78
|
+
readonly previewClassName?: string;
|
|
79
|
+
/** Outer card. The inner content keeps {@link TransactionConfirmDialogTest.root}. */
|
|
80
|
+
readonly "data-testid"?: string;
|
|
81
|
+
readonly shellTestId?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface TransactionConfirmShellProps extends TransactionConfirmShellBase {
|
|
84
|
+
readonly mode: TransactionConfirmShellMode;
|
|
85
|
+
/** `dialog` only: the modal renders nothing while closed. Ignored on `page`. */
|
|
86
|
+
readonly open?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Omit to hide the close control — that is how a surface without one, such
|
|
89
|
+
* as a verification page, opts out. A `dialog` without it cannot be
|
|
90
|
+
* dismissed, so pass one unless that is genuinely what you want.
|
|
91
|
+
*
|
|
92
|
+
* `mode` is deliberately a plain field rather than a discriminant that would
|
|
93
|
+
* make this required for dialogs: consumers carry the mode in a variable and
|
|
94
|
+
* a union would force every one of them to branch at the call site.
|
|
95
|
+
*/
|
|
96
|
+
readonly onClose?: () => void;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const dialogContainerVariants: (props?: ({
|
|
4
|
-
padding?: boolean | "
|
|
5
|
-
colorTheme?: "default" | "modal" | "
|
|
6
|
-
maxWidth?: "full" | "sm" | "
|
|
4
|
+
padding?: boolean | "md" | "xl" | null | undefined;
|
|
5
|
+
colorTheme?: "default" | "modal" | "transparent" | "box" | null | undefined;
|
|
6
|
+
maxWidth?: "full" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
7
7
|
sticky?: boolean | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export interface DialogContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dialogContainerVariants> {
|
|
@@ -3,7 +3,7 @@ import { Input } from '../input';
|
|
|
3
3
|
import { TextButton } from '../text-button';
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
declare const editLabelHeightVariants: (props?: ({
|
|
6
|
-
labelHeight?: "
|
|
6
|
+
labelHeight?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
type Variants = VariantProps<typeof editLabelHeightVariants>;
|
|
9
9
|
export interface EditInputProps extends Omit<React.ComponentProps<typeof Input>, "onChange" | "label" | "size"> {
|
|
@@ -1,82 +1,13 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import type * as React from "react";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* One explorer destination. The consumer builds the URL — kit does not map
|
|
4
|
+
* chain IDs to explorers.
|
|
4
5
|
*/
|
|
5
6
|
export interface ExplorerLink {
|
|
6
|
-
/**
|
|
7
|
-
* Display name for the explorer
|
|
8
|
-
*/
|
|
7
|
+
/** Display name for the explorer. */
|
|
9
8
|
name: string;
|
|
10
|
-
/**
|
|
11
|
-
* URL to the explorer
|
|
12
|
-
*/
|
|
9
|
+
/** Full URL to open. */
|
|
13
10
|
url: string;
|
|
14
|
-
/**
|
|
15
|
-
* Optional icon
|
|
16
|
-
*/
|
|
11
|
+
/** Optional icon. */
|
|
17
12
|
icon?: React.ReactNode;
|
|
18
13
|
}
|
|
19
|
-
export interface ExplorerLinksDropdownProps {
|
|
20
|
-
/**
|
|
21
|
-
* Custom explorer links (overrides chain-based detection)
|
|
22
|
-
*/
|
|
23
|
-
explorerLinks?: ExplorerLink[];
|
|
24
|
-
/**
|
|
25
|
-
* Whether the dropdown is open (controlled)
|
|
26
|
-
*/
|
|
27
|
-
opened?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Alignment of the dropdown
|
|
30
|
-
*/
|
|
31
|
-
opens?: "left" | "right";
|
|
32
|
-
/**
|
|
33
|
-
* Callback when dropdown closes
|
|
34
|
-
*/
|
|
35
|
-
onClose?: () => void;
|
|
36
|
-
/**
|
|
37
|
-
* Trigger element
|
|
38
|
-
*/
|
|
39
|
-
title?: React.ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* Address to link to
|
|
42
|
-
*/
|
|
43
|
-
address?: `0x${string}`;
|
|
44
|
-
/**
|
|
45
|
-
* Transaction hash to link to
|
|
46
|
-
*/
|
|
47
|
-
txHash?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Chain ID for explorer detection
|
|
50
|
-
* @default 1
|
|
51
|
-
*/
|
|
52
|
-
chainId?: number;
|
|
53
|
-
/**
|
|
54
|
-
* Additional CSS class
|
|
55
|
-
*/
|
|
56
|
-
className?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Children (alternative trigger)
|
|
59
|
-
*/
|
|
60
|
-
children?: React.ReactNode;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* ExplorerLinksDropdown — dropdown with links to various block explorers
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```tsx
|
|
67
|
-
* // For an address
|
|
68
|
-
* <ExplorerLinksDropdown
|
|
69
|
-
* address="0x..."
|
|
70
|
-
* chainId={1}
|
|
71
|
-
* title={<Button variant="ghost">View on Explorer</Button>}
|
|
72
|
-
* />
|
|
73
|
-
*
|
|
74
|
-
* // For a transaction
|
|
75
|
-
* <ExplorerLinksDropdown
|
|
76
|
-
* txHash="0x..."
|
|
77
|
-
* chainId={42161}
|
|
78
|
-
* title="View Transaction"
|
|
79
|
-
* />
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
export declare function ExplorerLinksDropdown({ explorerLinks, opened, opens, onClose, title, address, txHash, chainId, className, children, }: ExplorerLinksDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const filterBlockVariants: (props?: ({
|
|
2
|
-
variant?: "default" | "
|
|
2
|
+
variant?: "default" | "outlined" | "ghost" | "elevated" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -22,13 +22,18 @@ export interface AdaptiveYAxisFormatterOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
yScaleMin?: number;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Compact unit on an already-formatted axis tick. Generic `"token"` / `"none"`
|
|
27
|
+
* stay bare so charts without a real unit don't render a placeholder.
|
|
28
|
+
*/
|
|
29
|
+
export declare function withYAxisUnit(label: string, unit: YMeasureUnits): string;
|
|
25
30
|
/**
|
|
26
31
|
* Creates an adaptive Y-axis formatter that determines precision dynamically
|
|
27
32
|
* based on visible range to ensure unique labels on the axis.
|
|
28
33
|
* Data point values (like current price label) are shown with full precision.
|
|
29
34
|
* Returns both the formatter and update functions.
|
|
30
35
|
*/
|
|
31
|
-
export declare function createAdaptiveYAxisFormatter(initialValues: number[],
|
|
36
|
+
export declare function createAdaptiveYAxisFormatter(initialValues: number[], unit: YMeasureUnits, options?: AdaptiveYAxisFormatterOptions): {
|
|
32
37
|
formatter: (price: number) => string;
|
|
33
38
|
tickmarksFormatter: (prices: number[]) => string[];
|
|
34
39
|
updateVisibleRange: (visibleValues: number[]) => void;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import { GraphProps } from './graph';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const graphViewVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "
|
|
5
|
+
variant?: "default" | "outlined" | "ghost" | "elevated" | "plain" | null | undefined;
|
|
6
6
|
size?: "full" | "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
7
7
|
padding?: "none" | "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -30,6 +30,10 @@ export type VerticalLineOptions = Partial<{
|
|
|
30
30
|
width: number;
|
|
31
31
|
labelBackgroundColor: string;
|
|
32
32
|
labelTextColor: string;
|
|
33
|
+
/**
|
|
34
|
+
* Time-axis (bottom) badge. Independent of the top overlay, which renders
|
|
35
|
+
* whenever `labelText`, `value`, or `tooltipText` is set.
|
|
36
|
+
*/
|
|
33
37
|
showLabel: boolean;
|
|
34
38
|
/**
|
|
35
39
|
* Text shown only on hover of the line's badge (not rendered inline). Use it
|
|
@@ -25,7 +25,8 @@ export interface HealthFactorProps extends React.HTMLAttributes<HTMLSpanElement>
|
|
|
25
25
|
zoneType?: "color" | "bars" | "dot";
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* HealthFactor —
|
|
28
|
+
* HealthFactor — primitive under {@link HealthFactorBlock} (zones / bars / dot).
|
|
29
|
+
* Screens and tables use {@link HealthFactorValue} (`data: Bps`).
|
|
29
30
|
*
|
|
30
31
|
* @usage
|
|
31
32
|
* Use for account/collateral health: value in basis points, zero debt shows "N/A".
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface HFIndicatorProps {
|
|
3
|
+
readonly value?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Concentric rings around a health-factor value. Presentation only.
|
|
7
|
+
*/
|
|
8
|
+
export declare function HFIndicator({ value, }: HFIndicatorProps): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hf-indicator';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { faArrowDown, faArrowLeft, faArrowRight, faArrowsUpDown, faArrowUp, faBars, faBolt, faCaretDown, faCaretLeft, faCaretRight, faCaretUp, faCheck, faChevronLeft, faChevronRight, faCircle, faCircleCheck, faCircleExclamation, faCirclePlus, faCircleQuestion, faCloud, faCog, faCreditCard, faEllipsisVertical, faEnvelope, faKeyboard, faLifeRing, faMagnifyingGlass, faMessage, faPlus, faRightFromBracket, faTrash, faTriangleExclamation, faUser, faUserPlus, faUsers, faWallet, faXmark, } from '@fortawesome/free-solid-svg-icons';
|
|
1
|
+
export { faArrowDown, faArrowLeft, faArrowRight, faArrowsUpDown, faArrowUp, faBars, faBolt, faCaretDown, faCaretLeft, faCaretRight, faCaretUp, faCheck, faChevronDown, faChevronLeft, faChevronRight, faCircle, faCircleCheck, faCircleExclamation, faCirclePlus, faCircleQuestion, faCloud, faCog, faCreditCard, faEllipsisVertical, faEnvelope, faKeyboard, faLifeRing, faMagnifyingGlass, faMessage, faPlus, faRightFromBracket, faTrash, faTriangleExclamation, faUser, faUserPlus, faUsers, faWallet, faXmark, } from '@fortawesome/free-solid-svg-icons';
|
|
2
2
|
export { FaIcon } from './fa-icon';
|
|
@@ -3,11 +3,10 @@ export * from './alert-badge';
|
|
|
3
3
|
export * from './alert-dialog';
|
|
4
4
|
export * from './alert-modal';
|
|
5
5
|
export * from './assets-list-cell';
|
|
6
|
-
export * from './auth';
|
|
7
6
|
export * from './badge';
|
|
8
7
|
export * from './base';
|
|
9
8
|
export * from './base-link';
|
|
10
|
-
export * from './
|
|
9
|
+
export * from './base-table';
|
|
11
10
|
export * from './block-sync-pill';
|
|
12
11
|
export * from './breadcrumbs';
|
|
13
12
|
export * from './breakpoint-provider';
|
|
@@ -16,6 +15,7 @@ export * from './cards';
|
|
|
16
15
|
export * from './checkbox';
|
|
17
16
|
export * from './checkbox-item';
|
|
18
17
|
export * from './client-adapters';
|
|
18
|
+
export * from './collateral-allocation-tooltip';
|
|
19
19
|
export * from './composites';
|
|
20
20
|
export * from './compound-apy';
|
|
21
21
|
export * from './confirm-menu';
|
|
@@ -35,9 +35,10 @@ export * from './guard';
|
|
|
35
35
|
export * from './head-cell';
|
|
36
36
|
export * from './health-factor';
|
|
37
37
|
export * from './help-tip';
|
|
38
|
+
export * from './hf-indicator';
|
|
38
39
|
export * from './icon-button';
|
|
39
40
|
export * from './icons';
|
|
40
|
-
export * from './
|
|
41
|
+
export * from './infinite-scroll';
|
|
41
42
|
export * from './input';
|
|
42
43
|
export * from './label';
|
|
43
44
|
export * from './layout';
|
|
@@ -47,12 +48,10 @@ export * from './loader';
|
|
|
47
48
|
export * from './loading';
|
|
48
49
|
export * from './loading-bar';
|
|
49
50
|
export * from './modal';
|
|
50
|
-
export * from './
|
|
51
|
+
export * from './name-cell';
|
|
51
52
|
export * from './navbar-logo';
|
|
52
53
|
export * from './navigation-context';
|
|
53
|
-
export * from './navitem';
|
|
54
54
|
export * from './points-icon';
|
|
55
|
-
export * from './pool-apy-tooltip';
|
|
56
55
|
export * from './pool-points-indicator';
|
|
57
56
|
export * from './rounded-image';
|
|
58
57
|
export * from './rwa-feature';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './infinite-scroll-wrapper';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
export interface InfiniteScrollWrapperProps {
|
|
3
|
+
readonly dataLength: number;
|
|
4
|
+
readonly hasMore: boolean;
|
|
5
|
+
readonly onNextLoad: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* List footer that asks for the next page. Presentation only: the caller
|
|
9
|
+
* owns paging state and `onNextLoad`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function InfiniteScrollWrapper({ hasMore, dataLength, children, onNextLoad, }: PropsWithChildren<InfiniteScrollWrapperProps>): React.ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const inputVariants: (props?: ({
|
|
4
|
-
size?: "default" | "
|
|
4
|
+
size?: "default" | "sm" | "lg" | "xs" | null | undefined;
|
|
5
5
|
colorTheme?: "outlined" | "filledDark" | "filledLight" | null | undefined;
|
|
6
6
|
variant?: "default" | "success" | "error" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
export * from './app-footer';
|
|
2
2
|
export * from './app-header';
|
|
3
|
-
export * from './app-logo';
|
|
4
|
-
export * from './block';
|
|
5
3
|
export * from './col';
|
|
6
4
|
export * from './container';
|
|
7
|
-
export * from './footer';
|
|
8
5
|
export * from './grid';
|
|
9
|
-
export * from './header';
|
|
10
6
|
export * from './layout';
|
|
11
|
-
export * from './legal-disclaimer';
|
|
12
7
|
export * from './main-aside-layout';
|
|
13
|
-
export * from './page-layout';
|
|
14
|
-
export * from './social-icons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './name-cell';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export interface NameCellProps {
|
|
3
|
+
readonly title: ReactNode;
|
|
4
|
+
readonly subtitle?: ReactNode;
|
|
5
|
+
readonly chips?: ReactNode;
|
|
6
|
+
readonly caption?: ReactNode;
|
|
7
|
+
readonly leading?: ReactNode;
|
|
8
|
+
readonly disabledStyle?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Table-name layout: optional leading slot, title + chips, subtitle, caption.
|
|
12
|
+
*/
|
|
13
|
+
export declare function NameCell({ title, subtitle, chips, caption, leading, disabledStyle, }: NameCellProps): React.ReactElement;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ButtonProps } from '../buttons';
|
|
2
|
+
import { NetworkIcons } from '../../utils/network-icons';
|
|
3
|
+
type IndicatorSize = "sm" | "md" | "default" | "lg";
|
|
4
|
+
export interface NetworkIndicatorProps extends Omit<ButtonProps, "size" | "children"> {
|
|
5
|
+
network: NetworkIcons | undefined;
|
|
6
|
+
chainId: number | undefined;
|
|
7
|
+
size?: IndicatorSize;
|
|
8
|
+
iconSize?: number;
|
|
9
|
+
chevronSize?: number;
|
|
10
|
+
showTitle?: boolean;
|
|
11
|
+
opened: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* When true, button appears enabled and shows chevron even without onClick.
|
|
14
|
+
* Useful when the component is used as a dropdown trigger that handles clicks externally.
|
|
15
|
+
* Defaults to true when onClick is provided.
|
|
16
|
+
*/
|
|
17
|
+
interactive?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Network picker trigger: optional "Network:" label, icon, and chevron.
|
|
21
|
+
*/
|
|
22
|
+
export declare const NetworkIndicator: import('react').ForwardRefExoticComponent<NetworkIndicatorProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export {};
|
|
@@ -3,8 +3,8 @@ import type * as React from "react";
|
|
|
3
3
|
declare const skeletonVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "lighter" | "darker" | null | undefined;
|
|
5
5
|
speed?: "default" | "fast" | "slow" | null | undefined;
|
|
6
|
-
width?: "full" | "
|
|
7
|
-
height?: "
|
|
6
|
+
width?: "full" | "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3/4" | "1/2" | "1/3" | "1/4" | null | undefined;
|
|
7
|
+
height?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
type WidthPreset = NonNullable<VariantProps<typeof skeletonVariants>["width"]>;
|
|
10
10
|
type HeightPreset = NonNullable<VariantProps<typeof skeletonVariants>["height"]>;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const statusDotVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "muted" | "success" | "warning" | "primary" | "alert" | "secondary" | null | undefined;
|
|
5
|
-
size?: "default" | "
|
|
5
|
+
size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface StatusDotProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statusDotVariants> {
|
|
8
8
|
/**
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
export * from './edit-button';
|
|
2
|
-
export * from './editable-grid-table';
|
|
3
|
-
export * from './editable-table';
|
|
4
1
|
export * from './grid-error-line';
|
|
5
2
|
export * from './grid-loading-line';
|
|
6
3
|
export * from './grid-table';
|
|
7
|
-
export * from './grid-table-loader';
|
|
8
4
|
export * from './table';
|
|
9
5
|
export * from './table-loader';
|
|
10
6
|
export * from './table-loader-guard';
|
|
11
7
|
export * from './table-sm';
|
|
12
|
-
export * from './updated-value';
|
|
@@ -4,7 +4,7 @@ declare const textColorVariants: (props?: ({
|
|
|
4
4
|
buttonColor?: "empty" | "primaryDashed" | "secondaryDashed" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare const layoutVariants: (props?: ({
|
|
7
|
-
size?: "default" | "sm" | "
|
|
7
|
+
size?: "default" | "sm" | "md" | "lg" | null | undefined;
|
|
8
8
|
width?: "compact" | "wide" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
export interface TextButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof layoutVariants>, VariantProps<typeof textColorVariants> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const tipCardVariants: (props?: ({
|
|
4
|
-
backgroundColor?: "
|
|
5
|
-
textColor?: "
|
|
4
|
+
backgroundColor?: "dark" | "transparent" | "light" | "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray-100" | "gray-110" | null | undefined;
|
|
5
|
+
textColor?: "dark" | "unset" | "light" | null | undefined;
|
|
6
6
|
borderColor?: "none" | "dark" | "light" | "gradient" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
declare const indicatorVariants: (props?: ({
|