@gearbox-protocol/ui-kit 4.0.0-next.1 → 4.0.0-next.3
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/index.cjs +1 -1
- package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
- package/dist/cjs/components/base/values/scalars.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 +88 -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 +165 -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/index.js +8 -7
- package/dist/esm/components/base/values/pnl-value.js +8 -8
- package/dist/esm/components/base/values/scalars.js +27 -26
- 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 +14 -13
- 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 +699 -709
- 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 +864 -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 +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 +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/index.d.ts +1 -1
- package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
- 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/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-row.d.ts +1 -1
- 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
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { formatBN as E, toBN as f, PRICE_DECIMALS_POW as c, PERCENTAGE_FACTOR as C } from "@gearbox-protocol/sdk";
|
|
2
|
-
import { useState as p, useCallback as I, useMemo as i } from "react";
|
|
3
|
-
import { bnToInputView as m } from "../../utils/bn-to-input-view.js";
|
|
4
|
-
import { formatPrice as M } from "../../utils/format-number.js";
|
|
5
|
-
const b = "rct-chart__heatmap-cell--hovered", D = "rct-chart__heatmap-cell--current", N = "rct-chart__heatmap-cell--good", S = "rct-chart__heatmap-cell--ok", O = "rct-chart__heatmap-cell--bad", g = "rct-chart__heatmap-cell--liquidation", k = 0, W = 1;
|
|
6
|
-
function $({
|
|
7
|
-
token: t,
|
|
8
|
-
currentPrice: r
|
|
9
|
-
}) {
|
|
10
|
-
const [n, o] = p("straight"), e = I(() => {
|
|
11
|
-
o(n === "straight" ? "reverse" : "straight");
|
|
12
|
-
}, [n]), s = i(() => r !== void 0 ? {
|
|
13
|
-
min: 0,
|
|
14
|
-
max: r * 1.5,
|
|
15
|
-
minHf: Number(C)
|
|
16
|
-
} : void 0, [r]);
|
|
17
|
-
return i(() => s !== void 0 && t !== void 0 ? {
|
|
18
|
-
...s,
|
|
19
|
-
label: t,
|
|
20
|
-
nextOrder: e,
|
|
21
|
-
order: n
|
|
22
|
-
} : void 0, [s, t, e, n]);
|
|
23
|
-
}
|
|
24
|
-
function w({
|
|
25
|
-
assets: t,
|
|
26
|
-
liquidationThresholds: r,
|
|
27
|
-
quotas: n,
|
|
28
|
-
quotasInfo: o,
|
|
29
|
-
at: e = 0,
|
|
30
|
-
length: s = 2
|
|
31
|
-
}) {
|
|
32
|
-
return i(() => {
|
|
33
|
-
const l = [...t].filter((d) => {
|
|
34
|
-
const _ = r[d.token] || 0n, h = o[d.token], L = n[d.token]?.balance || 0n;
|
|
35
|
-
return h ? h.isActive ? _ > 0 && L > 0 : !1 : _ > 0;
|
|
36
|
-
});
|
|
37
|
-
return [l.splice(e, s), l];
|
|
38
|
-
}, [t, r, n, o, e, s]);
|
|
39
|
-
}
|
|
40
|
-
const A = "0x0000000000000000000000000000000000000000";
|
|
41
|
-
function z({
|
|
42
|
-
asset: t,
|
|
43
|
-
tokensList: r,
|
|
44
|
-
prices: n
|
|
45
|
-
}) {
|
|
46
|
-
return i(() => {
|
|
47
|
-
const e = n[t?.token || A], s = r[t?.token || A];
|
|
48
|
-
return [e ? Number(m(e, 8)) : void 0, s];
|
|
49
|
-
}, [t, r, n]);
|
|
50
|
-
}
|
|
51
|
-
function K(t, r) {
|
|
52
|
-
return i(() => !!t && !!r && t.address !== r.address, [t, r]);
|
|
53
|
-
}
|
|
54
|
-
const x = 2, T = 6;
|
|
55
|
-
function F(t) {
|
|
56
|
-
return M(t, x, T);
|
|
57
|
-
}
|
|
58
|
-
function Q(t, r, n) {
|
|
59
|
-
const [o, e] = n === "straight" ? [t, r] : [r, t];
|
|
60
|
-
return t ? [
|
|
61
|
-
...o ? [o.title] : [],
|
|
62
|
-
...e && o && e.address !== o.address ? [e.title] : []
|
|
63
|
-
].join("/") : "";
|
|
64
|
-
}
|
|
65
|
-
function V(t, r, n = "straight") {
|
|
66
|
-
return (o = 0) => r && t ? F(
|
|
67
|
-
n === "straight" ? a(o, t) : a(t, o)
|
|
68
|
-
) : `$${E(
|
|
69
|
-
f(String(o), c),
|
|
70
|
-
c,
|
|
71
|
-
1
|
|
72
|
-
)}`;
|
|
73
|
-
}
|
|
74
|
-
function a(t, r) {
|
|
75
|
-
const n = typeof t == "bigint" ? Number(m(t, c)) : t, o = typeof r == "bigint" ? Number(m(r, c)) : r;
|
|
76
|
-
return n / o;
|
|
77
|
-
}
|
|
78
|
-
function Y(t, r, n, o = "straight") {
|
|
79
|
-
return i(() => r && n ? o === "straight" ? a(t, r) : a(r, t) : t, [t, r, o, n]);
|
|
80
|
-
}
|
|
81
|
-
function Z() {
|
|
82
|
-
const [t, r] = p(null);
|
|
83
|
-
return {
|
|
84
|
-
activePoint: t,
|
|
85
|
-
handleMouseMove: ({
|
|
86
|
-
xValue: e,
|
|
87
|
-
yValue: s
|
|
88
|
-
}) => {
|
|
89
|
-
r([
|
|
90
|
-
e === null ? void 0 : e,
|
|
91
|
-
s === null ? void 0 : s
|
|
92
|
-
]);
|
|
93
|
-
},
|
|
94
|
-
handleMouseLeave: () => {
|
|
95
|
-
r(null);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function J({
|
|
100
|
-
xLabel: t,
|
|
101
|
-
yLabel: r,
|
|
102
|
-
activePoint: n,
|
|
103
|
-
prices: o
|
|
104
|
-
}) {
|
|
105
|
-
const [e, s] = n || [];
|
|
106
|
-
return i(() => ({
|
|
107
|
-
...o,
|
|
108
|
-
...t && e ? { [t.address]: f(String(e), c) } : {},
|
|
109
|
-
...r && s ? { [r.address]: f(String(s), c) } : {}
|
|
110
|
-
}), [o, t, r, e, s]);
|
|
111
|
-
}
|
|
112
|
-
function v(t, r) {
|
|
113
|
-
return t[0] >= r.x && t[0] <= r.xEnd && t[1] >= r.y && t[1] <= r.yEnd;
|
|
114
|
-
}
|
|
115
|
-
const H = 15e3, R = 11e3, G = 10500;
|
|
116
|
-
function B(t) {
|
|
117
|
-
return t >= H ? "good" : t > R ? "medium" : t > G ? "bad" : t > C ? "critical" : "liquidation";
|
|
118
|
-
}
|
|
119
|
-
function y(t, r, n, o) {
|
|
120
|
-
const e = [], s = B(t.value), u = v(r, t);
|
|
121
|
-
return (n !== void 0 && o !== void 0 ? v([n, o], t) : !1) && e.push(b), u ? e.push(D) : s === "good" ? e.push(N) : s === "medium" ? e.push(S) : s === "bad" || s === "critical" ? e.push(O) : e.push(g), e.join(" ");
|
|
122
|
-
}
|
|
123
|
-
export {
|
|
124
|
-
O as CELL_BAD,
|
|
125
|
-
D as CELL_CURRENT,
|
|
126
|
-
N as CELL_GOOD,
|
|
127
|
-
b as CELL_HOVERED,
|
|
128
|
-
g as CELL_LIQUIDATION,
|
|
129
|
-
S as CELL_OK,
|
|
130
|
-
W as DEFAULT_AXIS_MAX,
|
|
131
|
-
k as DEFAULT_AXIS_MIN,
|
|
132
|
-
V as formatAxisLabel,
|
|
133
|
-
Q as formatAxisTipLabel,
|
|
134
|
-
F as formatAxisTipPrice,
|
|
135
|
-
y as getCellClass,
|
|
136
|
-
v as isPointInCell,
|
|
137
|
-
$ as useAxis,
|
|
138
|
-
w as useFixedAssets,
|
|
139
|
-
K as useIsAxisInRelativeUnits,
|
|
140
|
-
Y as useLiquidationGraphActivePrice,
|
|
141
|
-
Z as useLiquidationGraphCurrentActiveValue,
|
|
142
|
-
z as usePriceInNumber,
|
|
143
|
-
J as useWithLiquidationGraphActivePrices
|
|
144
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AmountInputTest as o } from "../components/base/amount-input/constants.js";
|
|
2
|
-
import { DetailedPageTitleTest as T } from "../components/base/detailed-page-title/constants.js";
|
|
3
|
-
import { DetailAsideWrapperTest as a, DetailsViewTest as m } from "../components/base/details-view/constants.js";
|
|
4
|
-
import { HealthFactorBlockTest as i } from "../components/base/health-factor-block/constants.js";
|
|
5
|
-
import { HistoryChartTest as x } from "../components/base/history-chart/constants.js";
|
|
6
|
-
import { InfoListTest as l } from "../components/base/info-list/constants.js";
|
|
7
|
-
import { LeverageInputTest as u } from "../components/base/leverage-input/constants.js";
|
|
8
|
-
import { LiquidationPriceBlockTest as g } from "../components/base/liquidation-price-block/constants.js";
|
|
9
|
-
import { ManagePaneTest as B } from "../components/base/manage-pane/constants.js";
|
|
10
|
-
import { PageTitleTest as L } from "../components/base/page-title/constants.js";
|
|
11
|
-
import { ReviewButtonTest as b } from "../components/base/review-button/constants.js";
|
|
12
|
-
import { SectionHeadingTest as A } from "../components/base/section-heading/constants.js";
|
|
13
|
-
import { SegmentedTabsTest as H } from "../components/base/segmented-tabs/constants.js";
|
|
14
|
-
import { StackTest as q } from "../components/base/stack/constants.js";
|
|
15
|
-
import { StatBadgeTest as w } from "../components/base/stat-badge/constants.js";
|
|
16
|
-
import { StickyBarTest as V } from "../components/base/sticky-bar/constants.js";
|
|
17
|
-
import { TabberTest as F } from "../components/base/tabber/constants.js";
|
|
18
|
-
import { TimeToLiquidationBlockTest as R } from "../components/base/time-to-liquidation-block/constants.js";
|
|
19
|
-
import { TokenAmountTest as j } from "../components/base/token-amount/constants.js";
|
|
20
|
-
import { PositionShortLabelTest as E, ValueTest as G } from "../components/base/values/constants.js";
|
|
21
|
-
export {
|
|
22
|
-
o as AmountInputTest,
|
|
23
|
-
a as DetailAsideWrapperTest,
|
|
24
|
-
T as DetailedPageTitleTest,
|
|
25
|
-
m as DetailsViewTest,
|
|
26
|
-
i as HealthFactorBlockTest,
|
|
27
|
-
x as HistoryChartTest,
|
|
28
|
-
l as InfoListTest,
|
|
29
|
-
u as LeverageInputTest,
|
|
30
|
-
g as LiquidationPriceBlockTest,
|
|
31
|
-
B as ManagePaneTest,
|
|
32
|
-
L as PageTitleTest,
|
|
33
|
-
E as PositionShortLabelTest,
|
|
34
|
-
b as ReviewButtonTest,
|
|
35
|
-
A as SectionHeadingTest,
|
|
36
|
-
H as SegmentedTabsTest,
|
|
37
|
-
q as StackTest,
|
|
38
|
-
w as StatBadgeTest,
|
|
39
|
-
V as StickyBarTest,
|
|
40
|
-
F as TabberTest,
|
|
41
|
-
R as TimeToLiquidationBlockTest,
|
|
42
|
-
j as TokenAmountTest,
|
|
43
|
-
G as ValueTest
|
|
44
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AmountInputTest as o } from "../components/base/amount-input/constants.js";
|
|
2
|
-
import { DetailedPageTitleTest as s } from "../components/base/detailed-page-title/constants.js";
|
|
3
|
-
import { DetailAsideWrapperTest as i, DetailsViewTest as a } from "../components/base/details-view/constants.js";
|
|
4
|
-
import { HealthFactorBlockTest as p } from "../components/base/health-factor-block/constants.js";
|
|
5
|
-
import { HistoryChartTest as x } from "../components/base/history-chart/constants.js";
|
|
6
|
-
import { InfoListTest as l } from "../components/base/info-list/constants.js";
|
|
7
|
-
import { LeverageInputTest as d } from "../components/base/leverage-input/constants.js";
|
|
8
|
-
import { LiquidationPriceBlockTest as g } from "../components/base/liquidation-price-block/constants.js";
|
|
9
|
-
import { ManagePaneTest as B } from "../components/base/manage-pane/constants.js";
|
|
10
|
-
import { PageTitleTest as L } from "../components/base/page-title/constants.js";
|
|
11
|
-
import { ReviewButtonTest as b } from "../components/base/review-button/constants.js";
|
|
12
|
-
import { SectionHeadingTest as h } from "../components/base/section-heading/constants.js";
|
|
13
|
-
import { SegmentedTabsTest as D } from "../components/base/segmented-tabs/constants.js";
|
|
14
|
-
import { StackTest as q } from "../components/base/stack/constants.js";
|
|
15
|
-
import { StatBadgeTest as w } from "../components/base/stat-badge/constants.js";
|
|
16
|
-
import { StickyBarTest as C } from "../components/base/sticky-bar/constants.js";
|
|
17
|
-
import { TabberTest as F } from "../components/base/tabber/constants.js";
|
|
18
|
-
import { TimeToLiquidationBlockTest as R } from "../components/base/time-to-liquidation-block/constants.js";
|
|
19
|
-
import { TokenAmountTest as j } from "../components/base/token-amount/constants.js";
|
|
20
|
-
import { PositionShortLabelTest as E, ValueTest as G } from "../components/base/values/constants.js";
|
|
21
|
-
import { notificationCenterTestIds as K } from "./notification-center.js";
|
|
22
|
-
export {
|
|
23
|
-
o as AmountInputTest,
|
|
24
|
-
i as DetailAsideWrapperTest,
|
|
25
|
-
s as DetailedPageTitleTest,
|
|
26
|
-
a as DetailsViewTest,
|
|
27
|
-
p as HealthFactorBlockTest,
|
|
28
|
-
x as HistoryChartTest,
|
|
29
|
-
l as InfoListTest,
|
|
30
|
-
d as LeverageInputTest,
|
|
31
|
-
g as LiquidationPriceBlockTest,
|
|
32
|
-
B as ManagePaneTest,
|
|
33
|
-
L as PageTitleTest,
|
|
34
|
-
E as PositionShortLabelTest,
|
|
35
|
-
b as ReviewButtonTest,
|
|
36
|
-
h as SectionHeadingTest,
|
|
37
|
-
D as SegmentedTabsTest,
|
|
38
|
-
q as StackTest,
|
|
39
|
-
w as StatBadgeTest,
|
|
40
|
-
C as StickyBarTest,
|
|
41
|
-
F as TabberTest,
|
|
42
|
-
R as TimeToLiquidationBlockTest,
|
|
43
|
-
j as TokenAmountTest,
|
|
44
|
-
G as ValueTest,
|
|
45
|
-
K as notificationCenterTestIds
|
|
46
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/esm/types/help.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import r from "reactochart/ColorHeatmap";
|
|
2
|
-
import m from "reactochart/XAxis";
|
|
3
|
-
import i from "reactochart/XLine";
|
|
4
|
-
import p from "reactochart/XYPlot";
|
|
5
|
-
import n from "reactochart/YAxis";
|
|
6
|
-
import e from "reactochart/YLine";
|
|
7
|
-
function o(t) {
|
|
8
|
-
return t.default || t;
|
|
9
|
-
}
|
|
10
|
-
const X = o(r), Y = o(m), x = o(i), u = o(p), A = o(n), L = o(e);
|
|
11
|
-
export {
|
|
12
|
-
X as ColorHeatmap,
|
|
13
|
-
Y as XAxis,
|
|
14
|
-
x as XLine,
|
|
15
|
-
u as XYPlot,
|
|
16
|
-
A as YAxis,
|
|
17
|
-
L as YLine
|
|
18
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { TabButtonProps } from '../buttons';
|
|
4
|
-
/**
|
|
5
|
-
* ConnectRequired — component that requires a connected wallet to display content.
|
|
6
|
-
*
|
|
7
|
-
* @usage
|
|
8
|
-
* Use ConnectRequired to protect content that requires a wallet connection:
|
|
9
|
-
* action buttons, editable content, owner-specific features.
|
|
10
|
-
*
|
|
11
|
-
* Props:
|
|
12
|
-
* - `owner` — optional address that must match connected address to display content.
|
|
13
|
-
* - `children` — content displayed when connected (required).
|
|
14
|
-
* - All Button props are supported (variant, size, className, onClick, etc.).
|
|
15
|
-
*
|
|
16
|
-
* Behavior:
|
|
17
|
-
* - If user is connected: renders children (or "You are not the author" if owner mismatch).
|
|
18
|
-
* - If wallet not connected: shows "Connect Wallet" button that calls `openConnectModal` from {@link WalletUIProvider}.
|
|
19
|
-
*
|
|
20
|
-
* When no {@link WalletUIProvider} is mounted, the gate is skipped and `children` are rendered (graceful degradation).
|
|
21
|
-
*
|
|
22
|
-
* Note: Uses TabButton by default, but switches to Button if custom props are provided.
|
|
23
|
-
*
|
|
24
|
-
* Do NOT use ConnectRequired:
|
|
25
|
-
* - for public content that does not require a wallet (render content directly).
|
|
26
|
-
*/
|
|
27
|
-
export interface ConnectRequiredProps extends TabButtonProps {
|
|
28
|
-
owner?: Address;
|
|
29
|
-
children: ReactNode;
|
|
30
|
-
hideConnectButton?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare function ConnectRequired({ children, owner, hideConnectButton, ...customProps }: ConnectRequiredProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { TabButtonProps } from '../buttons';
|
|
4
|
-
/**
|
|
5
|
-
* SignInRequired — component that requires SIWE authentication to display content.
|
|
6
|
-
*
|
|
7
|
-
* @usage
|
|
8
|
-
* Use SignInRequired to protect content that requires authentication:
|
|
9
|
-
* action buttons, editable content, owner-specific features, authenticated actions.
|
|
10
|
-
*
|
|
11
|
-
* Props:
|
|
12
|
-
* - `owner` — optional address that must match signed-in address to display content.
|
|
13
|
-
* - `children` — content displayed when authenticated (required).
|
|
14
|
-
* - `skipSignIn` — if true, skips authentication requirement (defaults to false).
|
|
15
|
-
* - All Button props are supported (variant, size, className, onClick, etc.).
|
|
16
|
-
*
|
|
17
|
-
* Behavior:
|
|
18
|
-
* - If `skipSignIn={true}` or user is signed in: renders children (or "You are not the author" if owner mismatch).
|
|
19
|
-
* - If wallet connected but not signed in: shows "Sign In as {address}" or "Try Again".
|
|
20
|
-
* - If wallet not connected: shows "Connect Wallet".
|
|
21
|
-
*
|
|
22
|
-
* Requires {@link WalletUIProvider} with SIWE state (e.g. {@link ConnectKitWalletAdapter} from
|
|
23
|
-
* `@gearbox-protocol/ui-kit/connectkit`). Without a provider, the sign-in gate is skipped and `children`
|
|
24
|
-
* are rendered (graceful degradation).
|
|
25
|
-
*
|
|
26
|
-
* Note: Uses TabButton by default, but switches to Button if custom props are provided.
|
|
27
|
-
*
|
|
28
|
-
* Do NOT use SignInRequired:
|
|
29
|
-
* - for public content that does not require authentication (render content directly).
|
|
30
|
-
*/
|
|
31
|
-
export interface SignInRequiredProps extends TabButtonProps {
|
|
32
|
-
owner?: Address;
|
|
33
|
-
children: ReactNode;
|
|
34
|
-
skipSignIn?: boolean;
|
|
35
|
-
hideConnectButton?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export declare function SignInRequired({ children, owner, skipSignIn, hideConnectButton, ...customProps }: SignInRequiredProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* SIWE-related state exposed by a wallet UI adapter (e.g. ConnectKit).
|
|
4
|
-
*/
|
|
5
|
-
export interface WalletUISIWEState {
|
|
6
|
-
isSignedIn: boolean;
|
|
7
|
-
isRejected: boolean;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
data: {
|
|
10
|
-
address?: string;
|
|
11
|
-
} | null;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Values provided by {@link WalletUIProvider} so auth helpers work without importing ConnectKit.
|
|
15
|
-
*/
|
|
16
|
-
export interface WalletUIContextValue {
|
|
17
|
-
openConnectModal: () => void;
|
|
18
|
-
openSIWE?: () => void;
|
|
19
|
-
siwe?: WalletUISIWEState;
|
|
20
|
-
}
|
|
21
|
-
export interface WalletUIProviderProps {
|
|
22
|
-
value: WalletUIContextValue;
|
|
23
|
-
children?: ReactNode;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Supplies wallet modal + optional SIWE actions for {@link ConnectRequired}, {@link SignInRequired},
|
|
27
|
-
* and editable tables that use them.
|
|
28
|
-
*
|
|
29
|
-
* Use {@link ConnectKitWalletAdapter} from `@gearbox-protocol/ui-kit/connectkit` when using ConnectKit,
|
|
30
|
-
* or provide your own `value` (e.g. RainbowKit `useConnectModal`).
|
|
31
|
-
*/
|
|
32
|
-
export declare function WalletUIProvider({ value, children }: WalletUIProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
/**
|
|
34
|
-
* Returns the wallet UI adapter value, or `null` when no {@link WalletUIProvider} is mounted.
|
|
35
|
-
*/
|
|
36
|
-
export declare function useWalletUI(): WalletUIContextValue | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BlockSyncProps } from '../../types/footer';
|
|
2
|
-
import type * as React from "react";
|
|
3
|
-
/**
|
|
4
|
-
* BlockSync component - displays network synchronization status
|
|
5
|
-
* Shows a colored indicator that reflects the time since last block update
|
|
6
|
-
* On hover, displays detailed information about synced blocks for each chain
|
|
7
|
-
*/
|
|
8
|
-
export declare function BlockSync({ blockByChain, explorerAddresses, networkById, }: BlockSyncProps): React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './block-sync';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Image — universal image component that works in any React framework.
|
|
3
|
-
*
|
|
4
|
-
* @usage
|
|
5
|
-
* Use Image for displaying images in a framework-agnostic way:
|
|
6
|
-
* logos, icons, asset images, general images.
|
|
7
|
-
*
|
|
8
|
-
* Props:
|
|
9
|
-
* - `src` — image source URL (required).
|
|
10
|
-
* - `alt` — alternative text for accessibility (required).
|
|
11
|
-
* - `width` — image width in pixels (required).
|
|
12
|
-
* - `height` — image height in pixels (required).
|
|
13
|
-
* - `onError` — callback when image fails to load (optional).
|
|
14
|
-
* - `onLoad` — callback when image successfully loads (optional).
|
|
15
|
-
* - `className` — additional CSS classes (optional).
|
|
16
|
-
* - `loading` — loading behavior: "lazy" | "eager" (defaults to "lazy").
|
|
17
|
-
*
|
|
18
|
-
* Note: Uses native HTML img element with optimized loading attributes.
|
|
19
|
-
* Works in any React framework (CRA, Vite, Next.js, Remix, etc.).
|
|
20
|
-
*
|
|
21
|
-
* Do NOT use Image:
|
|
22
|
-
* - when you need Next.js-specific image optimization (use next/image directly).
|
|
23
|
-
* - for background images (use CSS background-image instead).
|
|
24
|
-
*/
|
|
25
|
-
export interface ImageProps {
|
|
26
|
-
src: string;
|
|
27
|
-
alt: string;
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
onError?: () => void;
|
|
31
|
-
onLoad?: () => void;
|
|
32
|
-
className?: string;
|
|
33
|
-
loading?: "lazy" | "eager";
|
|
34
|
-
}
|
|
35
|
-
export declare function Image({ src, alt, width, height, onError, onLoad, className, loading, }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './image';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AppLogo — application logo component with Gearbox Protocol logo and app name.
|
|
3
|
-
*
|
|
4
|
-
* @usage
|
|
5
|
-
* Use AppLogo to display application branding:
|
|
6
|
-
* header logo, footer logo, page branding.
|
|
7
|
-
*
|
|
8
|
-
* Props:
|
|
9
|
-
* - `appName` — application name displayed next to logo (required).
|
|
10
|
-
* - `size` — logo size: "default" or "small" (defaults to "default").
|
|
11
|
-
*
|
|
12
|
-
* Note: Uses Gearbox Protocol logo from static CDN. Logo size and text size adjust based on size prop.
|
|
13
|
-
* Works with any React framework (not tied to Next.js).
|
|
14
|
-
*
|
|
15
|
-
* Do NOT use AppLogo:
|
|
16
|
-
* - for custom logos or branding (use Image component with custom logo).
|
|
17
|
-
* - when you need different logo styling (use Image component with appropriate styling).
|
|
18
|
-
*/
|
|
19
|
-
export declare function AppLogo({ appName, size, }: {
|
|
20
|
-
appName?: string;
|
|
21
|
-
size?: "default" | "small";
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare function AppLogoLink({ appName, className, }: {
|
|
24
|
-
appName?: string;
|
|
25
|
-
className?: string;
|
|
26
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './app-logo';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type * as React from "react";
|
|
2
|
-
export type BlockMargins = "none" | "sm" | "md" | "lg";
|
|
3
|
-
export type JustifyContent = "flex-start" | "center" | "flex-end" | "between";
|
|
4
|
-
export type AlignItems = "flex-start" | "center" | "flex-end" | "stretch";
|
|
5
|
-
export interface BlockProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/** Bottom margin */
|
|
7
|
-
margin?: BlockMargins;
|
|
8
|
-
/** Horizontal alignment (justify-content) */
|
|
9
|
-
justify?: JustifyContent;
|
|
10
|
-
/** Vertical alignment (align-items) */
|
|
11
|
-
align?: AlignItems;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Block — a flexbox container with configurable margin, justify, and align
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <Block margin="md" justify="center" align="center">
|
|
19
|
-
* <div>Content</div>
|
|
20
|
-
* </Block>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function Block({ children, margin, justify, align, className, ...props }: BlockProps): React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './block';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { BlockSyncProps } from '../../../types/footer';
|
|
2
|
-
import { LegalReferences } from '../legal-disclaimer';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
export interface FooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
-
logo?: React.ReactNode;
|
|
6
|
-
copyright?: React.ReactNode;
|
|
7
|
-
social?: React.ReactNode;
|
|
8
|
-
version?: string;
|
|
9
|
-
secondaryInfo?: React.ReactNode;
|
|
10
|
-
legalLinks?: React.ReactNode;
|
|
11
|
-
containerClassName?: string;
|
|
12
|
-
mobileExtraContent?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Footer component
|
|
16
|
-
* Two-column layout with logo/copyright on left, social/info on right
|
|
17
|
-
* Responsive design with mobile adaptations
|
|
18
|
-
*/
|
|
19
|
-
export declare const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLElement>>;
|
|
20
|
-
/**
|
|
21
|
-
* FooterLink — link component for footer navigation.
|
|
22
|
-
*/
|
|
23
|
-
interface FooterLinkProps {
|
|
24
|
-
href: string;
|
|
25
|
-
text: string;
|
|
26
|
-
external?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare function FooterLink({ href, text, external }: FooterLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
/**
|
|
30
|
-
* FooterLinkSection — section component for grouping footer links.
|
|
31
|
-
*/
|
|
32
|
-
export declare function FooterLinkSection({ title, links, }: {
|
|
33
|
-
title: string;
|
|
34
|
-
links: FooterLinkProps[];
|
|
35
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export interface GearboxFooterProps {
|
|
37
|
-
appName?: string;
|
|
38
|
-
legalAppName?: string;
|
|
39
|
-
legalReferences?: LegalReferences;
|
|
40
|
-
legalContent?: React.ReactNode;
|
|
41
|
-
className?: string;
|
|
42
|
-
version?: string;
|
|
43
|
-
discordAddr?: string;
|
|
44
|
-
landingAddr?: string;
|
|
45
|
-
twitterAddr?: string;
|
|
46
|
-
telegramAddr?: string;
|
|
47
|
-
blockSyncProps?: BlockSyncProps;
|
|
48
|
-
onPress?: () => void;
|
|
49
|
-
showLegalLinks?: boolean;
|
|
50
|
-
showDeveloperLinks?: boolean;
|
|
51
|
-
}
|
|
52
|
-
export declare function GearboxFooter({ appName, legalAppName, legalReferences, legalContent, className, version, discordAddr, landingAddr, twitterAddr, telegramAddr, blockSyncProps, onPress, showLegalLinks, showDeveloperLinks, }: GearboxFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './footer';
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface MobileMenuContextValue {
|
|
3
|
-
closeMobileMenu: () => void;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Hook to access mobile menu control functions
|
|
7
|
-
* Use this hook inside mobileMenuContent to close the menu on navigation
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* function MobileNav() {
|
|
12
|
-
* const { closeMobileMenu } = useMobileMenu();
|
|
13
|
-
*
|
|
14
|
-
* return (
|
|
15
|
-
* <nav>
|
|
16
|
-
* <a href="/" onClick={closeMobileMenu}>Home</a>
|
|
17
|
-
* </nav>
|
|
18
|
-
* );
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useMobileMenu(): MobileMenuContextValue;
|
|
23
|
-
export interface HeaderProps extends React.HTMLAttributes<HTMLElement> {
|
|
24
|
-
/**
|
|
25
|
-
* Navigation content (shown on desktop, hidden on mobile unless specified)
|
|
26
|
-
*/
|
|
27
|
-
navigation?: React.ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Logo or brand content
|
|
30
|
-
*/
|
|
31
|
-
logo?: React.ReactNode;
|
|
32
|
-
/**
|
|
33
|
-
* Action buttons or elements (e.g., Sign In, Sign Up)
|
|
34
|
-
*/
|
|
35
|
-
actions?: React.ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the header should be fixed to the top of the viewport
|
|
38
|
-
*/
|
|
39
|
-
fixed?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the header should stick to the top when scrolling
|
|
42
|
-
*/
|
|
43
|
-
sticky?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Additional className for the inner container
|
|
46
|
-
*/
|
|
47
|
-
containerClassName?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Custom content for mobile menu (optional)
|
|
50
|
-
* If not provided, the desktop navigation will be used
|
|
51
|
-
*/
|
|
52
|
-
mobileMenuContent?: React.ReactNode;
|
|
53
|
-
/**
|
|
54
|
-
* Controlled open state of the mobile menu.
|
|
55
|
-
* When provided together with onMobileMenuOpenChange, the menu is controlled from outside.
|
|
56
|
-
*/
|
|
57
|
-
mobileMenuOpen?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Called when the mobile menu open state should change.
|
|
60
|
-
* Use with mobileMenuOpen for controlled mode (e.g. to close from a parent or sync with route).
|
|
61
|
-
*/
|
|
62
|
-
onMobileMenuOpenChange?: (open: boolean) => void;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Header component with support for navigation, logo, and actions
|
|
66
|
-
* Follows responsive design practices with automatic mobile menu support
|
|
67
|
-
*
|
|
68
|
-
* @usage
|
|
69
|
-
* Use Header as the main application header:
|
|
70
|
-
* top navigation bar, app logo, navigation menu, wallet connection button.
|
|
71
|
-
*
|
|
72
|
-
* Note: Header is sticky at the top with z-50. Navigation is hidden on mobile (md:flex).
|
|
73
|
-
* Uses NavigationButton components for navigation items.
|
|
74
|
-
*
|
|
75
|
-
* Do NOT use Header:
|
|
76
|
-
* - for page-specific headers.
|
|
77
|
-
* - for section headers within content (use CardHeader or h2/h3 elements).
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```tsx
|
|
81
|
-
* <Header
|
|
82
|
-
* logo={<div>MyApp</div>}
|
|
83
|
-
* navigation={
|
|
84
|
-
* <nav className="flex gap-4">
|
|
85
|
-
* <NavItem href="/" active>Home</NavItem>
|
|
86
|
-
* <NavItem href="/about">About</NavItem>
|
|
87
|
-
* </nav>
|
|
88
|
-
* }
|
|
89
|
-
* actions={
|
|
90
|
-
* <>
|
|
91
|
-
* <Button variant="ghost">Sign In</Button>
|
|
92
|
-
* <Button>Sign Up</Button>
|
|
93
|
-
* </>
|
|
94
|
-
* }
|
|
95
|
-
* />
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* @example With custom mobile menu
|
|
99
|
-
* ```tsx
|
|
100
|
-
* <Header
|
|
101
|
-
* logo={<div>MyApp</div>}
|
|
102
|
-
* navigation={<DesktopNav />}
|
|
103
|
-
* mobileMenuContent={
|
|
104
|
-
* <nav className="flex flex-col gap-2">
|
|
105
|
-
* <a href="/" className="px-4 py-3">Home</a>
|
|
106
|
-
* <a href="/about" className="px-4 py-3">About</a>
|
|
107
|
-
* </nav>
|
|
108
|
-
* }
|
|
109
|
-
* />
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @example Controlled mobile menu (open/close from outside)
|
|
113
|
-
* ```tsx
|
|
114
|
-
* const [mobileOpen, setMobileOpen] = useState(false);
|
|
115
|
-
* <Header
|
|
116
|
-
* mobileMenuContent={<MobileNav />}
|
|
117
|
-
* mobileMenuOpen={mobileOpen}
|
|
118
|
-
* onMobileMenuOpenChange={setMobileOpen}
|
|
119
|
-
* />
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLElement>>;
|
|
123
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './header';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './legal-disclaimer';
|