@gearbox-protocol/ui-kit 4.0.0-next.1 → 4.0.0-next.2
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/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/details-view/details-view.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/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/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/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/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/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/pnl-value.cjs +1 -1
- 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/composites/notification-center/notification-center.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/dialog/TransactionConfirmModalView.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/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/icons/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/index.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/table/index.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- 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 +83 -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/details-view/details-view.js +37 -32
- package/dist/esm/components/base/history-chart/history-chart.js +25 -21
- package/dist/esm/components/base/index.js +164 -116
- package/dist/esm/components/base/info-list/constants.js +1 -0
- package/dist/esm/components/base/info-list/index.js +5 -4
- package/dist/esm/components/base/info-list/info-list.js +44 -23
- package/dist/esm/components/base/leverage-input/leverage-input.js +53 -50
- 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/manage-pane/index.js +7 -6
- package/dist/esm/components/base/manage-pane/manage-pane.js +88 -67
- 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/page-title.js +28 -22
- 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 +65 -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/strategy-apy-breakdown-card/constants.js +7 -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 +51 -0
- package/dist/esm/components/base/tabber/tabber.js +83 -75
- package/dist/esm/components/base/title-meta/constants.js +8 -0
- package/dist/esm/components/base/title-meta/index.js +6 -0
- package/dist/esm/components/base/title-meta/title-meta.js +68 -0
- package/dist/esm/components/base/token-amount/token-amount.js +12 -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/pnl-value.js +8 -8
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +19 -29
- package/dist/esm/components/checkbox/checkbox-labeled.js +16 -26
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +16 -26
- package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +1 -1
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +6 -7
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +25 -35
- 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/graph/graph-view.js +74 -74
- package/dist/esm/components/graph/graph.js +309 -308
- package/dist/esm/components/icons/index.js +29 -28
- package/dist/esm/components/index.js +701 -712
- package/dist/esm/components/layout/index.js +14 -33
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/table/index.js +38 -52
- package/dist/esm/components/with-copy/with-copy.js +16 -26
- package/dist/esm/hooks/index.js +29 -54
- package/dist/esm/hooks/use-debounce-call.js +2 -3
- package/dist/esm/index.js +863 -900
- package/dist/esm/locale/en.json.js +24 -1
- package/dist/globals.css +1 -1
- 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 +16 -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 +2 -1
- package/dist/types/components/base/history-chart/history-chart.d.ts +8 -1
- package/dist/types/components/base/index.d.ts +11 -0
- package/dist/types/components/base/info-list/constants.d.ts +1 -0
- package/dist/types/components/base/info-list/info-list.d.ts +8 -1
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
- 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/manage-pane/manage-pane.d.ts +7 -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 +6 -2
- 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 +14 -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 +4 -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 +9 -0
- package/dist/types/components/base/tabber/tabber.d.ts +11 -2
- package/dist/types/components/base/title-meta/constants.d.ts +5 -0
- package/dist/types/components/base/title-meta/index.d.ts +2 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +15 -0
- 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/position-type-badge.d.ts +1 -1
- package/dist/types/components/base-link/base-link.d.ts +1 -1
- 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/composites/pool-assets-table/pool-assets-table.d.ts +4 -1
- 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/graph-view.d.ts +1 -1
- package/dist/types/components/health-factor/health-factor.d.ts +2 -1
- package/dist/types/components/icons/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +0 -6
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/layout/index.d.ts +0 -7
- 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/vertical-indicator/vertical-indicator.d.ts +2 -2
- package/dist/types/components/with-title/with-title.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/locale/en.json.d.ts +30 -1
- package/dist/types/types/index.d.ts +0 -2
- package/package.json +3 -15
- 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/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/types.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/component-props.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/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/types.js +0 -1
- 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/component-props.js +0 -1
- 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/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/{test-ids/notification-center.cjs → components/composites/notification-center/constants.cjs} +0 -0
- /package/dist/esm/{test-ids/notification-center.js → components/composites/notification-center/constants.js} +0 -0
- /package/dist/types/{test-ids/notification-center.d.ts → components/composites/notification-center/constants.d.ts} +0 -0
|
@@ -2,7 +2,9 @@ import { Token } from '@gearbox-protocol/sdk/model';
|
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { TitleText } from '../text';
|
|
4
4
|
import { AmountInputTest } from './constants';
|
|
5
|
+
import { TokenButtonSize } from './token-button';
|
|
5
6
|
export { AmountInputTest };
|
|
7
|
+
export type AmountInputSize = TokenButtonSize;
|
|
6
8
|
export interface AmountInputProps {
|
|
7
9
|
readonly amount: bigint;
|
|
8
10
|
readonly onAmount: (amount: bigint) => void;
|
|
@@ -11,19 +13,28 @@ export interface AmountInputProps {
|
|
|
11
13
|
readonly tokens?: ReadonlyArray<Token>;
|
|
12
14
|
readonly onToken?: (token: Token) => void;
|
|
13
15
|
readonly balance?: bigint;
|
|
16
|
+
/** Wallet balances by token address — the picker's balance column. */
|
|
17
|
+
readonly balances?: Readonly<Record<string, bigint>>;
|
|
18
|
+
/** USD price per whole token by address — the picker's USD line. */
|
|
19
|
+
readonly usdPrices?: Readonly<Record<string, number>>;
|
|
14
20
|
/** Label above the field; defaults to the "Amount" locale string. */
|
|
15
21
|
readonly label?: TitleText;
|
|
16
22
|
/** Label of the balance row; defaults to the "Balance" locale string. */
|
|
17
23
|
readonly maxLabel?: TitleText;
|
|
18
24
|
/** USD price per one whole token; shows a USD equivalent when set. */
|
|
19
25
|
readonly usdPrice?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Field density. Defaults to `sm` on mobile and `md` otherwise — the
|
|
28
|
+
* reference `SmartNumberInput` sizes from agentic-rwa.
|
|
29
|
+
*/
|
|
30
|
+
readonly size?: AmountInputSize;
|
|
20
31
|
readonly disabled?: boolean;
|
|
21
32
|
readonly testId?: string;
|
|
22
33
|
}
|
|
23
34
|
/**
|
|
24
35
|
* The one amount field of a dialog: label row with balance and MAX, a large
|
|
25
|
-
* value input beside the token (icon + optional
|
|
36
|
+
* value input beside the token (icon + optional modal picker), and a USD
|
|
26
37
|
* equivalent. The reference `SmartNumberInput` markup on SDK-typed props —
|
|
27
38
|
* design only, `bigint` in / `bigint` out.
|
|
28
39
|
*/
|
|
29
|
-
export declare function AmountInput({ amount, onAmount, token, tokens, onToken, balance, label, maxLabel, usdPrice, disabled, testId, }: AmountInputProps): React.ReactElement;
|
|
40
|
+
export declare function AmountInput({ amount, onAmount, token, tokens, onToken, balance, balances, usdPrices, label, maxLabel, usdPrice, size, disabled, testId, }: AmountInputProps): React.ReactElement;
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { default as React } from 'react';
|
|
4
|
+
declare const blockVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "md" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type TokenButtonSize = NonNullable<VariantProps<typeof blockVariants>["size"]>;
|
|
3
8
|
export interface TokenButtonProps {
|
|
4
9
|
readonly token: Token | undefined;
|
|
5
10
|
/** When set and not disabled, the block is clickable and shows a chevron. */
|
|
6
11
|
readonly onClick?: () => void;
|
|
7
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Marks the block as a picker trigger (cursor + chevron) without a local
|
|
14
|
+
* click handler — for use inside a dropdown trigger that owns the toggle.
|
|
15
|
+
*/
|
|
16
|
+
readonly interactive?: boolean;
|
|
17
|
+
/** Rotates the chevron (picker open). */
|
|
8
18
|
readonly active?: boolean;
|
|
9
19
|
readonly disabled?: boolean;
|
|
20
|
+
readonly size?: TokenButtonSize;
|
|
10
21
|
}
|
|
11
22
|
/**
|
|
12
23
|
* Token display with icon and optional chevron — the trigger of the token
|
|
13
24
|
* picker. Internal to `AmountInput` (the reference `CurrencyButton`, retyped
|
|
14
25
|
* on the SDK `Token`).
|
|
15
26
|
*/
|
|
16
|
-
export declare function TokenButton({ token, onClick, active, disabled, }: TokenButtonProps): React.ReactElement;
|
|
27
|
+
export declare function TokenButton({ token, onClick, interactive, active, disabled, size, }: TokenButtonProps): React.ReactElement;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Token } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface TokenSelectPanelProps {
|
|
4
|
+
readonly tokens: ReadonlyArray<Token>;
|
|
5
|
+
/** Wallet balances by token address (either casing); shows a balance column. */
|
|
6
|
+
readonly balances?: Readonly<Record<string, bigint>>;
|
|
7
|
+
/** USD price per one whole token by address; shows a USD line under the balance. */
|
|
8
|
+
readonly usdPrices?: Readonly<Record<string, number>>;
|
|
9
|
+
readonly onSelect: (token: Token) => void;
|
|
10
|
+
readonly onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Token picker body of `AmountInput` — the reference `TokenSelectModal`
|
|
14
|
+
* (`ConfirmMenu` + name/balance rows) on SDK-typed props. Always rendered
|
|
15
|
+
* inside a `Modal`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function TokenSelectPanel({ tokens, balances, usdPrices, onSelect, onClose, }: TokenSelectPanelProps): React.ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApyBreakdown, Bps } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { BorrowRateBlockTest } from './constants';
|
|
4
|
+
export { BorrowRateBlockTest };
|
|
5
|
+
export type BorrowRateValue = ApyBreakdown | Bps;
|
|
6
|
+
export interface BorrowRateBlockProps {
|
|
7
|
+
readonly data: BorrowRateValue | undefined;
|
|
8
|
+
readonly dataTo?: BorrowRateValue;
|
|
9
|
+
/** SDK `borrowRate.base`; omit when the breakdown is missing. */
|
|
10
|
+
readonly base?: BorrowRateValue;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Borrow-rate row: total on the trigger, Base Rate from the SDK, Rates
|
|
14
|
+
* normalization as a dash until the SDK reports it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function BorrowRateBlock({ data, dataTo, base, }: BorrowRateBlockProps): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChartWithSideCardTest } from './constants';
|
|
3
|
+
export { ChartWithSideCardTest };
|
|
4
|
+
export interface ChartWithSideCardProps {
|
|
5
|
+
readonly chart: React.ReactNode;
|
|
6
|
+
readonly side: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Detail-page yield layout: chart on the left, a side card on the right.
|
|
10
|
+
* The card is one StatBadge column wide; if that would squeeze the chart
|
|
11
|
+
* below 40rem, the card wraps underneath at full width instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ChartWithSideCard({ chart, side, }: ChartWithSideCardProps): React.ReactElement;
|
|
@@ -6,7 +6,8 @@ import { DetailedPageTitleTest } from './constants';
|
|
|
6
6
|
export type DetailedPageTitleExplorerLink = ExplorerLink;
|
|
7
7
|
export { DetailedPageTitleTest };
|
|
8
8
|
export interface DetailedPageTitleProps {
|
|
9
|
-
|
|
9
|
+
/** Visible heading; a node (e.g. a token-pair title) renders as given. */
|
|
10
|
+
readonly title: PageTitleText | React.ReactNode;
|
|
10
11
|
readonly browserTitle?: PageTitleText;
|
|
11
12
|
/** Document-head hook forwarded to {@link PageTitle}. */
|
|
12
13
|
readonly head?: (browserTitle: string) => React.ReactNode;
|
|
@@ -21,10 +21,17 @@ export interface HistoryChartProps {
|
|
|
21
21
|
readonly priceLines?: ReadonlyArray<PriceLineConfig>;
|
|
22
22
|
/** Shaded horizontal bands, e.g. a liquidation danger zone. */
|
|
23
23
|
readonly zones?: ReadonlyArray<PriceZoneConfig>;
|
|
24
|
+
/**
|
|
25
|
+
* Current-value overlay in the chart corner. Detail screens keep this off;
|
|
26
|
+
* defaults to `false`.
|
|
27
|
+
*/
|
|
28
|
+
readonly showCurrentValue?: boolean;
|
|
29
|
+
/** Y-axis floor when the series has data. */
|
|
30
|
+
readonly yScaleMin?: number;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Design-only history chart on the TradingView engine: range buttons, legend,
|
|
27
34
|
* tooltips, optional reference lines and zones. Takes the SDK's
|
|
28
35
|
* `HistorySeries` as it comes — points are mapped 1:1, no fetching.
|
|
29
36
|
*/
|
|
30
|
-
export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, }: HistoryChartProps): React.ReactElement;
|
|
37
|
+
export declare function HistoryChart({ data, range, onRange, isLoading, error, yMeasureUnit, height, seriesTitles, priceLines, zones, showCurrentValue, yScaleMin, }: HistoryChartProps): React.ReactElement;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './amount-input';
|
|
2
|
+
export * from './borrow-rate-block';
|
|
3
|
+
export * from './chart-with-side-card';
|
|
2
4
|
export * from './detailed-page-title';
|
|
3
5
|
export * from './details-view';
|
|
4
6
|
export * from './health-factor-block';
|
|
@@ -6,18 +8,27 @@ export * from './history-chart';
|
|
|
6
8
|
export * from './info-list';
|
|
7
9
|
export * from './info-portal';
|
|
8
10
|
export * from './leverage-input';
|
|
11
|
+
export * from './liquidation-params-table';
|
|
9
12
|
export * from './liquidation-price-block';
|
|
10
13
|
export * from './manage-pane';
|
|
14
|
+
export * from './more-accordion';
|
|
15
|
+
export * from './nested-info-stack';
|
|
11
16
|
export * from './page-title';
|
|
17
|
+
export * from './pool-apy-breakdown-card';
|
|
12
18
|
export * from './review-button';
|
|
13
19
|
export * from './section-heading';
|
|
14
20
|
export * from './segmented-tabs';
|
|
21
|
+
export * from './side-card';
|
|
15
22
|
export * from './spacing';
|
|
16
23
|
export * from './stack';
|
|
17
24
|
export * from './stat-badge';
|
|
18
25
|
export * from './sticky-bar';
|
|
26
|
+
export * from './strategy-apy-breakdown-card';
|
|
19
27
|
export * from './tabber';
|
|
20
28
|
export * from './text';
|
|
21
29
|
export * from './time-to-liquidation-block';
|
|
30
|
+
export * from './title-meta';
|
|
22
31
|
export * from './token-amount';
|
|
32
|
+
export * from './token-pair-symbol';
|
|
33
|
+
export * from './token-pair-title';
|
|
23
34
|
export * from './values';
|
|
@@ -11,9 +11,16 @@ export interface InfoLineProps {
|
|
|
11
11
|
readonly value: React.ReactNode;
|
|
12
12
|
/** Tooltip content behind the help icon next to the label. */
|
|
13
13
|
readonly tip?: React.ReactNode;
|
|
14
|
+
/** Caption under the value (right-aligned), e.g. "for 0.00 USDC". */
|
|
15
|
+
readonly valueDescription?: React.ReactNode;
|
|
14
16
|
/** New value after an arrow (value → valueTo); the old one is dimmed. */
|
|
15
17
|
readonly valueTo?: React.ReactNode;
|
|
16
18
|
readonly testId?: string;
|
|
17
19
|
}
|
|
18
20
|
/** One row of the list — the reference `VerticalIndicator` markup. */
|
|
19
|
-
export declare function InfoLine({ title, value, tip, valueTo, testId, }: InfoLineProps): React.ReactElement;
|
|
21
|
+
export declare function InfoLine({ title, value, tip, valueDescription, valueTo, testId, }: InfoLineProps): React.ReactElement;
|
|
22
|
+
export interface InfoSectionTitleProps {
|
|
23
|
+
readonly title: TitleText;
|
|
24
|
+
}
|
|
25
|
+
/** Uppercase section label inside an `InfoList` (e.g. debt limits). */
|
|
26
|
+
export declare function InfoSectionTitle({ title, }: InfoSectionTitleProps): React.ReactElement;
|
|
@@ -38,4 +38,4 @@ export interface LeverageInputProps {
|
|
|
38
38
|
* Title row carries an inline-editable value (`×N.NN`) and an optional reset;
|
|
39
39
|
* the slider below can show risk bands via `colorIntervals`.
|
|
40
40
|
*/
|
|
41
|
-
export declare function LeverageInput({ value, onChange, max, min,
|
|
41
|
+
export declare function LeverageInput({ value, onChange, max, min, title, hint, reset, colorIntervals, colorIntervalLabel, size, }: LeverageInputProps): React.ReactElement;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StrategyOpportunity } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { LiquidationParamsTableTest } from './constants';
|
|
4
|
+
export { LiquidationParamsTableTest };
|
|
5
|
+
export interface LiquidationParamsTableProps {
|
|
6
|
+
readonly data: Pick<StrategyOpportunity, "liquidationThreshold" | "liquidationPremium" | "liquidationFee">;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Single-row liquidation parameters. Penalty is premium + fee, a presentation
|
|
10
|
+
* of two SDK values.
|
|
11
|
+
*/
|
|
12
|
+
export declare function LiquidationParamsTable({ data, }: LiquidationParamsTableProps): React.ReactElement;
|
|
@@ -20,6 +20,13 @@ export interface ManagePaneTabDropdownProps {
|
|
|
20
20
|
readonly items: ReadonlyArray<ManagePaneTabDropdownItem>;
|
|
21
21
|
}
|
|
22
22
|
export declare function ManagePaneTabDropdown(_props: ManagePaneTabDropdownProps): null;
|
|
23
|
+
export interface ManagePaneActionTabProps {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly title: TitleText;
|
|
26
|
+
/** Fires without changing the active tab (e.g. "My positions"). */
|
|
27
|
+
readonly onClick: () => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function ManagePaneActionTab(_props: ManagePaneActionTabProps): null;
|
|
23
30
|
export interface ManagePaneProps {
|
|
24
31
|
readonly children: React.ReactNode;
|
|
25
32
|
/** Controlled active tab — the screen owns it (usually `?operation=`). */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TitleText } from '../text';
|
|
3
|
+
import { MoreAccordionTest } from './constants';
|
|
4
|
+
export { MoreAccordionTest };
|
|
5
|
+
export interface MoreAccordionProps {
|
|
6
|
+
readonly children: React.ReactNode;
|
|
7
|
+
readonly moreMessage?: TitleText;
|
|
8
|
+
readonly lessMessage?: TitleText;
|
|
9
|
+
}
|
|
10
|
+
/** Centered more/less disclosure over a `SimpleAccordion`. */
|
|
11
|
+
export declare function MoreAccordion({ children, moreMessage, lessMessage, }: MoreAccordionProps): React.ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NestedInfoStackTest } from './constants';
|
|
3
|
+
export { NestedInfoStackTest };
|
|
4
|
+
export interface NestedInfoStackProps {
|
|
5
|
+
readonly children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Nested compact-info rows: indent plus a 2px left rail.
|
|
9
|
+
*/
|
|
10
|
+
export declare function NestedInfoStack({ children, }: NestedInfoStackProps): React.ReactElement;
|
|
@@ -4,8 +4,12 @@ import { PageTitleTest } from './constants';
|
|
|
4
4
|
export { PageTitleTest };
|
|
5
5
|
export type PageTitleText = FormatMessageTypedProps | string;
|
|
6
6
|
export interface PageTitleProps {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/** Visible heading; a node (e.g. a token-pair title) renders as given. */
|
|
8
|
+
readonly title: PageTitleText | React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Browser tab title when it should differ from the visible heading.
|
|
11
|
+
* Required when {@link title} is a node — a node cannot become a string.
|
|
12
|
+
*/
|
|
9
13
|
readonly browserTitle?: PageTitleText;
|
|
10
14
|
/**
|
|
11
15
|
* Renders the document head for the resolved browser title (e.g. a Helmet
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Bps } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { PoolApyBreakdownCardTest } from './constants';
|
|
4
|
+
export { PoolApyBreakdownCardTest };
|
|
5
|
+
export interface PoolApyBreakdownCardProps {
|
|
6
|
+
/** Trailing average APYs in basis points; a missing window renders a dash. */
|
|
7
|
+
readonly data?: {
|
|
8
|
+
readonly apy1d?: Bps;
|
|
9
|
+
readonly apy7d?: Bps;
|
|
10
|
+
readonly apy30d?: Bps;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Trailing APY windows next to the yield chart. Missing windows render as dashes. */
|
|
14
|
+
export declare function PoolApyBreakdownCard({ data, }: PoolApyBreakdownCardProps): React.ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TitleText } from '../text';
|
|
3
|
+
import { SideCardTest } from './constants';
|
|
4
|
+
export { SideCardTest };
|
|
5
|
+
export interface SideCardProps {
|
|
6
|
+
readonly title: TitleText;
|
|
7
|
+
readonly tip?: React.ReactNode;
|
|
8
|
+
readonly children: React.ReactNode;
|
|
9
|
+
readonly className?: string;
|
|
10
|
+
readonly testId?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Card beside a chart: title row, optional tip. Body columns follow the
|
|
14
|
+
* card's own width — 3, then 2, then 1 as it gets narrower.
|
|
15
|
+
*/
|
|
16
|
+
export declare function SideCard({ title, tip, children, className, testId, }: SideCardProps): React.ReactElement;
|
package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StrategyOpportunity } from '@gearbox-protocol/sdk/model';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { StrategyApyBreakdownCardTest } from './constants';
|
|
4
|
+
export { StrategyApyBreakdownCardTest };
|
|
5
|
+
export interface StrategyApyBreakdownCardProps {
|
|
6
|
+
readonly data: StrategyOpportunity;
|
|
7
|
+
}
|
|
8
|
+
/** APY terms next to the strategy yield chart — collateral and borrow rates. */
|
|
9
|
+
export declare function StrategyApyBreakdownCard({ data, }: StrategyApyBreakdownCardProps): React.ReactElement;
|
|
@@ -9,8 +9,15 @@ export interface TabberSectionProps {
|
|
|
9
9
|
readonly heading?: TitleText;
|
|
10
10
|
readonly actions?: React.ReactNode;
|
|
11
11
|
readonly children?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Render this section above the sticky tab bar (overview badges). The tab
|
|
14
|
+
* still appears in the bar and scroll-spy still tracks the section.
|
|
15
|
+
*/
|
|
16
|
+
readonly beforeBar?: boolean;
|
|
17
|
+
/** Skip the in-section h2 — overview has badges, not a heading. */
|
|
18
|
+
readonly hideHeading?: boolean;
|
|
12
19
|
}
|
|
13
|
-
export declare function TabberSection({ id, title, heading, actions, children, }: TabberSectionProps): React.ReactElement;
|
|
20
|
+
export declare function TabberSection({ id, title, heading, actions, children, hideHeading, }: TabberSectionProps): React.ReactElement;
|
|
14
21
|
export declare namespace TabberSection {
|
|
15
22
|
var displayName: string;
|
|
16
23
|
}
|
|
@@ -19,6 +26,8 @@ export interface TabberProps {
|
|
|
19
26
|
readonly observeKey?: string;
|
|
20
27
|
readonly initialSection?: string;
|
|
21
28
|
readonly testId?: string;
|
|
29
|
+
/** Injected by {@link DetailsViewLeftPane} on narrow screens. */
|
|
30
|
+
readonly mobileManagePane?: React.ReactNode;
|
|
22
31
|
}
|
|
23
|
-
export declare function Tabber({ children, observeKey, initialSection, testId, }: TabberProps): React.ReactElement;
|
|
32
|
+
export declare function Tabber({ children, observeKey, initialSection, testId, mobileManagePane, }: TabberProps): React.ReactElement;
|
|
24
33
|
export declare function isTabber(node: React.ReactNode): boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NetworkIcons } from '../../../utils/network-icons';
|
|
3
|
+
import { TitleMetaTest } from './constants';
|
|
4
|
+
export { TitleMetaTest };
|
|
5
|
+
export interface TitleMetaProps {
|
|
6
|
+
readonly network: NetworkIcons;
|
|
7
|
+
readonly curatorName: string | undefined;
|
|
8
|
+
readonly curatorLink: string | undefined;
|
|
9
|
+
readonly onCuratorLinkClick?: () => void;
|
|
10
|
+
readonly testId?: string;
|
|
11
|
+
readonly networkTestId?: string;
|
|
12
|
+
readonly curatorTestId?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Network + curator row under a detail-page title. */
|
|
15
|
+
export declare function TitleMeta({ network, curatorName, curatorLink, onCuratorLinkClick, testId, networkTestId, curatorTestId, }: TitleMetaProps): React.ReactElement;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TokenSymbolProps } from '../../token-symbol';
|
|
3
|
+
import { TokenPairSymbolTest } from './constants';
|
|
4
|
+
export { TokenPairSymbolTest };
|
|
5
|
+
export interface TokenPairSymbolProps {
|
|
6
|
+
/** Collateral / strategy token (left). */
|
|
7
|
+
readonly collateral: TokenSymbolProps["token"] | undefined;
|
|
8
|
+
/** Debt / underlying token (right). */
|
|
9
|
+
readonly underlying: TokenSymbolProps["token"] | undefined;
|
|
10
|
+
readonly size?: number;
|
|
11
|
+
readonly offset?: number;
|
|
12
|
+
readonly className?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Two token icons overlapping: collateral in front, underlying behind. */
|
|
15
|
+
export declare function TokenPairSymbol({ collateral, underlying, size, offset, className, }: TokenPairSymbolProps): React.ReactElement | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TokenPairTitleTest } from './constants';
|
|
3
|
+
export { TokenPairTitleTest };
|
|
4
|
+
export interface TokenPairTitleProps {
|
|
5
|
+
/** Collateral / strategy side of the title. */
|
|
6
|
+
readonly name: React.ReactNode;
|
|
7
|
+
/** Debt side symbol; hidden when undefined. */
|
|
8
|
+
readonly debtSymbol?: string;
|
|
9
|
+
}
|
|
10
|
+
/** "Collateral / debt" title: names separated by a muted slash. */
|
|
11
|
+
export declare function TokenPairTitle({ name, debtSymbol, }: TokenPairTitleProps): React.ReactElement;
|
|
@@ -3,7 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
export interface PositionTypeBadgeProps {
|
|
4
4
|
/** The SDK's `Position.kind`. */
|
|
5
5
|
readonly data: PositionKind;
|
|
6
|
-
readonly size?: "table" | "aside";
|
|
6
|
+
readonly size?: "table" | "aside" | "title";
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Colored kind label of a position row: "Lender" / "Strategy" / "Liquidation".
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const linkVariants: (props?: ({
|
|
4
|
-
size?: "default" | "unset" | "
|
|
4
|
+
size?: "default" | "unset" | "sm" | "xs" | null | undefined;
|
|
5
5
|
variant?: "default" | "unset" | "underlined" | null | undefined;
|
|
6
6
|
color?: "main" | "default" | "secondary" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "text" | "default" | "success" | "destructive" | "
|
|
5
|
-
size?: "auto" | "default" | "icon" | "
|
|
4
|
+
variant?: "link" | "text" | "default" | "success" | "destructive" | "blue" | "pink" | "white" | "secondary" | "ghost" | "outline" | "neutral" | "pink-outline" | "blue-outline" | null | undefined;
|
|
5
|
+
size?: "auto" | "default" | "icon" | "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
6
6
|
width?: "compact" | "wide" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
/**
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const checkboxVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "md" | "lg" | null | undefined;
|
|
6
6
|
color?: "primary" | "secondary" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & VariantProps<typeof checkboxVariants>;
|
|
@@ -25,7 +25,7 @@ export type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimit
|
|
|
25
25
|
* - for toggle switches (use Switch component if available).
|
|
26
26
|
*/
|
|
27
27
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
28
|
-
size?: "
|
|
28
|
+
size?: "md" | "lg" | null | undefined;
|
|
29
29
|
color?: "primary" | "secondary" | null | undefined;
|
|
30
30
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
31
31
|
export { Checkbox };
|
|
@@ -17,7 +17,10 @@ export interface PoolAssetsTableProps {
|
|
|
17
17
|
readonly underlyingToken: TokenData;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Legacy GridTable of pool asset quotas (`TokenData` field props).
|
|
21
|
+
* Canonical consumer table is client-v3 `PoolsAssetsTable` (`data: PoolOpportunityDetail`).
|
|
22
|
+
* Do not add a third table in this pass — next-stage `table/` absorbs this.
|
|
23
|
+
*
|
|
21
24
|
* On viewports below the mobile breakpoint the header is hidden and each row
|
|
22
25
|
* uses the compact `TableLineSm` layout.
|
|
23
26
|
*/
|
|
@@ -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> {
|