@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,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LegalReferences — interface for legal document URLs.
|
|
3
|
-
*/
|
|
4
|
-
export interface LegalReferences {
|
|
5
|
-
termsOfService: string;
|
|
6
|
-
privacyNotice: string;
|
|
7
|
-
riskDisclosure: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* LegalDisclaimer — component for displaying legal disclaimer text with links.
|
|
11
|
-
*
|
|
12
|
-
* @usage
|
|
13
|
-
* Use LegalDisclaimer to display legal information and required disclaimers:
|
|
14
|
-
* footer legal text, terms acceptance notices, risk disclosure statements.
|
|
15
|
-
*
|
|
16
|
-
* Props:
|
|
17
|
-
* - `hrefs` — object containing legal document URLs (required):
|
|
18
|
-
* - `termsOfService` — Terms of Service URL.
|
|
19
|
-
* - `privacyNotice` — Privacy Notice URL.
|
|
20
|
-
* - `riskDisclosure` — Risk Disclosure URL.
|
|
21
|
-
*
|
|
22
|
-
* Note: Displays formatted text with links to Terms of Service, Privacy Notice, and Risk Disclosure Statement.
|
|
23
|
-
* Text uses muted color and small size for footer placement.
|
|
24
|
-
*
|
|
25
|
-
* Do NOT use LegalDisclaimer:
|
|
26
|
-
* - for custom legal text (use appropriate text components with links).
|
|
27
|
-
* - when different disclaimer format is needed (use custom component).
|
|
28
|
-
*/
|
|
29
|
-
export declare function LegalDisclaimer({ hrefs, appName, }: {
|
|
30
|
-
appName?: string;
|
|
31
|
-
hrefs: LegalReferences;
|
|
32
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './page-layout';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
interface PageLayoutProps {
|
|
2
|
-
children: React.ReactNode;
|
|
3
|
-
title: string;
|
|
4
|
-
description?: JSX.Element;
|
|
5
|
-
icon?: JSX.Element;
|
|
6
|
-
backButton?: {
|
|
7
|
-
href: string;
|
|
8
|
-
text?: string;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
};
|
|
11
|
-
actionButton?: JSX.Element;
|
|
12
|
-
maxContainerWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
13
|
-
containerClassName?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* PageLayout — main layout component for application pages.
|
|
17
|
-
*
|
|
18
|
-
* @usage
|
|
19
|
-
* Use PageLayout as the root layout wrapper for application pages:
|
|
20
|
-
* page containers, content pages, detail pages, settings pages.
|
|
21
|
-
*
|
|
22
|
-
* Props:
|
|
23
|
-
* - `children` — page content (required).
|
|
24
|
-
* - `title` — page title displayed in header (required).
|
|
25
|
-
* - `description` — optional description element displayed below title.
|
|
26
|
-
* - `icon` — optional icon element displayed next to title.
|
|
27
|
-
* - `backButton` — optional back button configuration object:
|
|
28
|
-
* - `href` — destination URL for back navigation (required).
|
|
29
|
-
* - `text` — custom text label (defaults to "Back" if not provided).
|
|
30
|
-
* - `onClick` — optional callback function executed on click.
|
|
31
|
-
* - `actionButton` — optional action button element displayed next to title.
|
|
32
|
-
*
|
|
33
|
-
* Note: PageLayout provides full-screen layout with black background, padding, and overflow handling.
|
|
34
|
-
* BackButton is rendered when backButton prop is provided.
|
|
35
|
-
*
|
|
36
|
-
* Do NOT use PageLayout:
|
|
37
|
-
* - for modal dialogs or overlays (use Dialog component instead).
|
|
38
|
-
* - for nested page sections (use Card or other container components).
|
|
39
|
-
*/
|
|
40
|
-
export declare function PageLayout({ children, title, description, icon, backButton, actionButton, maxContainerWidth, containerClassName, }: PageLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './social-icons';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface SocialIconsProps {
|
|
2
|
-
twitterAddr?: string;
|
|
3
|
-
discordAddr?: string;
|
|
4
|
-
telegramAddr?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function SocialIcons({ twitterAddr, discordAddr, telegramAddr, className, }: SocialIconsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface NavbarIndicatorContextType {
|
|
3
|
-
registerItem: (id: string, element: HTMLElement) => void;
|
|
4
|
-
unregisterItem: (id: string) => void;
|
|
5
|
-
setActiveItem: (id: string) => void;
|
|
6
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
7
|
-
indicatorRef: React.RefObject<HTMLDivElement | null>;
|
|
8
|
-
}
|
|
9
|
-
export declare const NavbarIndicatorProvider: React.FC<{
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const useNavbarIndicator: () => NavbarIndicatorContextType | null;
|
|
13
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type * as React from "react";
|
|
2
|
-
export interface NavbarOverflowItem {
|
|
3
|
-
id: string;
|
|
4
|
-
label: React.ReactNode;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
}
|
|
8
|
-
export interface NavbarWithOverflowProps {
|
|
9
|
-
items: NavbarOverflowItem[];
|
|
10
|
-
moreLabel?: React.ReactNode;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* NavbarWithOverflow — renders nav items inline, moving items that don't fit
|
|
15
|
-
* into a "More" dropdown. Self-contained: measures its own wrapper width
|
|
16
|
-
* via ResizeObserver. When all items fit, they are centered (via parent flex).
|
|
17
|
-
*
|
|
18
|
-
* Use inside <Navbar> or any flex container.
|
|
19
|
-
*/
|
|
20
|
-
export declare function NavbarWithOverflow({ items, moreLabel, className, }: NavbarWithOverflowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const navbarVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "left" | "right" | "centered" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
-
sticky?: boolean | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
/**
|
|
9
|
-
* Navbar component props
|
|
10
|
-
*/
|
|
11
|
-
export interface NavbarProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof navbarVariants> {
|
|
12
|
-
/**
|
|
13
|
-
* Container class name for inner wrapper
|
|
14
|
-
*/
|
|
15
|
-
containerClassName?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Navbar component for application navigation
|
|
19
|
-
*/
|
|
20
|
-
declare const Navbar: React.ForwardRefExoticComponent<NavbarProps & React.RefAttributes<HTMLElement>>;
|
|
21
|
-
/**
|
|
22
|
-
* Navbar navigation wrapper component
|
|
23
|
-
*/
|
|
24
|
-
declare const NavbarNav: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
export { Navbar, NavbarNav, navbarVariants };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './navitem';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const navitemVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "tab" | "ghost" | "active" | "pill" | null | undefined;
|
|
5
|
-
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
/**
|
|
8
|
-
* NavItem component props
|
|
9
|
-
*/
|
|
10
|
-
export interface NavItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof navitemVariants> {
|
|
11
|
-
/**
|
|
12
|
-
* Renders the navitem as a child element using Radix Slot
|
|
13
|
-
* Useful for creating custom navigation elements or working with routing libraries
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* <NavItem asChild>
|
|
18
|
-
* <Link href="/path">Link</Link>
|
|
19
|
-
* </NavItem>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
asChild?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the navigation item is currently active
|
|
25
|
-
*/
|
|
26
|
-
active?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Optional icon to display before the label
|
|
29
|
-
*/
|
|
30
|
-
icon?: React.ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* Optional badge or indicator to display after the label
|
|
33
|
-
*/
|
|
34
|
-
badge?: React.ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* Indicates if this is an external link
|
|
37
|
-
*/
|
|
38
|
-
external?: boolean;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* NavItem component for navigation items
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```tsx
|
|
45
|
-
* // Basic usage
|
|
46
|
-
* <NavItem href="/dashboard">Dashboard</NavItem>
|
|
47
|
-
*
|
|
48
|
-
* // Active state
|
|
49
|
-
* <NavItem href="/settings" active>Settings</NavItem>
|
|
50
|
-
*
|
|
51
|
-
* // With icon
|
|
52
|
-
* <NavItem href="/profile" icon={<UserIcon />}>Profile</NavItem>
|
|
53
|
-
*
|
|
54
|
-
* // With badge
|
|
55
|
-
* <NavItem href="/notifications" badge={<Badge>3</Badge>}>Notifications</NavItem>
|
|
56
|
-
*
|
|
57
|
-
* // As a router link
|
|
58
|
-
* <NavItem asChild>
|
|
59
|
-
* <Link to="/dashboard">Dashboard</Link>
|
|
60
|
-
* </NavItem>
|
|
61
|
-
*
|
|
62
|
-
* // Tab variant
|
|
63
|
-
* <NavItem variant="tab" active>Overview</NavItem>
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
declare const NavItem: React.ForwardRefExoticComponent<NavItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
67
|
-
export { NavItem, navitemVariants };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './page-title';
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const pageTitleVariants: (props?: ({
|
|
4
|
-
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
5
|
-
variant?: "default" | "muted" | "primary" | "gradient" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare const pageTitleRootVariants: (props?: ({
|
|
8
|
-
spacing?: "default" | "sm" | "lg" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
export interface PageTitleProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof pageTitleVariants> {
|
|
11
|
-
/**
|
|
12
|
-
* Optional back button element to display before the title
|
|
13
|
-
*/
|
|
14
|
-
backButton?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Optional icon to display before the title
|
|
17
|
-
*/
|
|
18
|
-
icon?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Position of the actions (mobile-first base)
|
|
21
|
-
*/
|
|
22
|
-
actionsPosition?: "left" | "right";
|
|
23
|
-
/**
|
|
24
|
-
* Position of the actions from md breakpoint (≥768px). Overrides actionsPosition.
|
|
25
|
-
*/
|
|
26
|
-
actionsPositionMd?: "left" | "right";
|
|
27
|
-
/**
|
|
28
|
-
* Optional action buttons to display after the title
|
|
29
|
-
*/
|
|
30
|
-
actions?: React.ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* Spacing between elements
|
|
33
|
-
*/
|
|
34
|
-
spacing?: "sm" | "default" | "lg";
|
|
35
|
-
/**
|
|
36
|
-
* Optional subtitle or description
|
|
37
|
-
*/
|
|
38
|
-
subtitle?: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Whether to render as h1 or div
|
|
41
|
-
*/
|
|
42
|
-
as?: "h1" | "h2" | "h3" | "div";
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* PageTitle component for displaying page headers with optional back button, icon, and actions
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```tsx
|
|
49
|
-
* // Basic usage
|
|
50
|
-
* <PageTitle>Dashboard</PageTitle>
|
|
51
|
-
*
|
|
52
|
-
* // With back button
|
|
53
|
-
* <PageTitle backButton={<BackButton href="/home" />}>
|
|
54
|
-
* Settings
|
|
55
|
-
* </PageTitle>
|
|
56
|
-
*
|
|
57
|
-
* // With icon and actions
|
|
58
|
-
* <PageTitle
|
|
59
|
-
* icon={<UserIcon />}
|
|
60
|
-
* actions={<Button>Edit</Button>}
|
|
61
|
-
* >
|
|
62
|
-
* Profile
|
|
63
|
-
* </PageTitle>
|
|
64
|
-
*
|
|
65
|
-
* // With subtitle
|
|
66
|
-
* <PageTitle subtitle="Manage your account settings">
|
|
67
|
-
* Settings
|
|
68
|
-
* </PageTitle>
|
|
69
|
-
*
|
|
70
|
-
* // Different sizes and variants
|
|
71
|
-
* <PageTitle size="lg" variant="gradient">
|
|
72
|
-
* Welcome
|
|
73
|
-
* </PageTitle>
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
export declare const PageTitle: React.ForwardRefExoticComponent<PageTitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
-
export { pageTitleVariants, pageTitleRootVariants };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ApyBreakdown } from '@gearbox-protocol/sdk/model';
|
|
2
|
-
import type * as React from "react";
|
|
3
|
-
export interface ApyTooltipProps {
|
|
4
|
-
/**
|
|
5
|
-
* SDK `ApyBreakdown`. Display-only — organic base, token rewards, total,
|
|
6
|
-
* and points programs. No `tokensList`, 7D history, or external APY.
|
|
7
|
-
*/
|
|
8
|
-
apy: ApyBreakdown;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Tooltip for an SDK `ApyBreakdown` — organic base, token rewards, total,
|
|
14
|
-
* and points programs.
|
|
15
|
-
*
|
|
16
|
-
* Does not cover 1D/7D history, external APY, or rich point tip metadata
|
|
17
|
-
* (`duration`, `condition`, `tokenTitle`, preformatted `amount`). For those
|
|
18
|
-
* stay on the deprecated {@link PoolAPYTooltip}.
|
|
19
|
-
*/
|
|
20
|
-
export declare function ApyTooltip({ apy, children, className }: ApyTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './apy-tooltip';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '../buttons';
|
|
2
|
-
import type * as React from "react";
|
|
3
|
-
interface EditButtonProps extends Omit<ButtonProps, "variant" | "width"> {
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use children instead
|
|
6
|
-
*/
|
|
7
|
-
customButton?: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Width variant of the button
|
|
10
|
-
* - "default" — compact icon button
|
|
11
|
-
* - "wide" — full width button
|
|
12
|
-
*/
|
|
13
|
-
width?: "default" | "wide";
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use width="wide" instead
|
|
16
|
-
*/
|
|
17
|
-
$width?: "default" | "wide";
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* EditButton — button component for triggering edit actions.
|
|
21
|
-
*
|
|
22
|
-
* @usage
|
|
23
|
-
* Use EditButton to provide edit functionality in editable components:
|
|
24
|
-
* table cells, form fields, editable values.
|
|
25
|
-
*
|
|
26
|
-
* Props:
|
|
27
|
-
* - `onClick` — callback function executed when button is clicked.
|
|
28
|
-
* - `children` — custom content to replace default edit icon.
|
|
29
|
-
* - `width` — button width: "default" or "wide".
|
|
30
|
-
* - `disabled` — if true, button is disabled.
|
|
31
|
-
*
|
|
32
|
-
* Note: Uses ghost variant Button with Edit icon by default.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```tsx
|
|
36
|
-
* // Default icon button
|
|
37
|
-
* <EditButton onClick={handleEdit} />
|
|
38
|
-
*
|
|
39
|
-
* // With custom content
|
|
40
|
-
* <EditButton onClick={handleEdit}>
|
|
41
|
-
* Edit Item
|
|
42
|
-
* </EditButton>
|
|
43
|
-
*
|
|
44
|
-
* // Wide button
|
|
45
|
-
* <EditButton width="wide" onClick={handleEdit}>
|
|
46
|
-
* <span>Edit</span>
|
|
47
|
-
* </EditButton>
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function EditButton({ onClick, customButton, children, disabled, width, $width, className, style, ...props }: EditButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
-
export {};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
/**
|
|
3
|
-
* GridTableCellAssetProps — props for GridTableCellAsset component.
|
|
4
|
-
*/
|
|
5
|
-
interface GridTableCellAssetProps {
|
|
6
|
-
assetAddress: Address;
|
|
7
|
-
symbol: string;
|
|
8
|
-
comment?: string;
|
|
9
|
-
explorerUrl?: string;
|
|
10
|
-
iconSymbol?: string;
|
|
11
|
-
span?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "full" | "auto";
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* GridTableCellAsset — grid table cell component for displaying asset information.
|
|
15
|
-
*
|
|
16
|
-
* @usage
|
|
17
|
-
* Use GridTableCellAsset to display asset data in grid table cells:
|
|
18
|
-
* token symbols, asset addresses with icons, explorer links.
|
|
19
|
-
*
|
|
20
|
-
* Props:
|
|
21
|
-
* - `assetAddress` — asset contract address (required).
|
|
22
|
-
* - `symbol` — asset symbol/ticker (required).
|
|
23
|
-
* - `comment` — optional comment displayed next to symbol.
|
|
24
|
-
* - `explorerUrl` — optional explorer URL for external link button.
|
|
25
|
-
* - `iconSymbol` — optional symbol for icon extraction (used when icon doesn't match symbol, e.g., pool tokens).
|
|
26
|
-
* - `span` — number of columns to span (defaults to 1).
|
|
27
|
-
*
|
|
28
|
-
* Note: Displays token icon, symbol, optional comment, and optional explorer link in a grid cell.
|
|
29
|
-
*/
|
|
30
|
-
export declare function GridTableCellAsset({ assetAddress, symbol, iconSymbol, comment, explorerUrl, span, }: GridTableCellAssetProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
/**
|
|
32
|
-
* GridTableCellUpdatableProps — props for GridTableCellUpdatable component.
|
|
33
|
-
*/
|
|
34
|
-
export interface GridTableCellUpdatableProps {
|
|
35
|
-
oldValue?: string;
|
|
36
|
-
newValue: string;
|
|
37
|
-
onEdit?: () => void;
|
|
38
|
-
isEditable?: boolean;
|
|
39
|
-
className?: string;
|
|
40
|
-
customButton?: React.ReactNode;
|
|
41
|
-
align?: "left" | "right" | "center";
|
|
42
|
-
postfix?: string;
|
|
43
|
-
disabled?: boolean;
|
|
44
|
-
nowrap?: boolean;
|
|
45
|
-
span?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "full" | "auto";
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* GridTableCellUpdatable — grid table cell component for displaying editable values with old/new value comparison.
|
|
49
|
-
*
|
|
50
|
-
* @usage
|
|
51
|
-
* Use GridTableCellUpdatable to display values that can be edited in grid table cells:
|
|
52
|
-
* editable parameters, configurable settings, updatable data with change indication.
|
|
53
|
-
*
|
|
54
|
-
* Props:
|
|
55
|
-
* - `oldValue` — previous value displayed with strikethrough when different from newValue.
|
|
56
|
-
* - `newValue` — current/new value to display (required).
|
|
57
|
-
* - `onEdit` — callback function executed when edit button is clicked.
|
|
58
|
-
* - `isEditable` — if false, edit button is not shown (defaults to true).
|
|
59
|
-
* - `className` — additional CSS classes for styling.
|
|
60
|
-
* - `customButton` — custom React node to replace default edit button.
|
|
61
|
-
* - `align` — text alignment: "left", "right", or "center" (defaults to "right").
|
|
62
|
-
* - `postfix` — optional text displayed after the value.
|
|
63
|
-
* - `disabled` — if true, edit button is disabled.
|
|
64
|
-
* - `nowrap` — if true, prevents text wrapping.
|
|
65
|
-
* - `span` — number of columns to span (defaults to 1).
|
|
66
|
-
*
|
|
67
|
-
* Note: Uses UpdatedValue component internally to display old/new values with edit functionality.
|
|
68
|
-
*/
|
|
69
|
-
export declare function GridTableCellUpdatable({ oldValue, newValue, onEdit, isEditable, className, align, customButton, postfix, disabled, nowrap, span, }: GridTableCellUpdatableProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
-
/**
|
|
71
|
-
* GridTableEditableAction — action button configuration for GridTableEditable.
|
|
72
|
-
*/
|
|
73
|
-
export interface GridTableEditableAction {
|
|
74
|
-
text: string;
|
|
75
|
-
onClick: () => void;
|
|
76
|
-
loadingText?: string;
|
|
77
|
-
isLoading?: boolean;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* GridTableEditableProps — props for GridTableEditable component.
|
|
81
|
-
*/
|
|
82
|
-
interface GridTableEditableProps {
|
|
83
|
-
title: string;
|
|
84
|
-
onNew?: () => void;
|
|
85
|
-
newButtonText?: string;
|
|
86
|
-
isLoading?: boolean;
|
|
87
|
-
buttonLoadingText?: string;
|
|
88
|
-
actions?: GridTableEditableAction[];
|
|
89
|
-
children: React.ReactNode;
|
|
90
|
-
disabled?: boolean;
|
|
91
|
-
skipSignIn?: boolean;
|
|
92
|
-
cols?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* GridTableEditable — grid table component with header, action buttons, and editable content.
|
|
96
|
-
*
|
|
97
|
-
* @usage
|
|
98
|
-
* Use GridTableEditable to create grid tables with editable content and action buttons:
|
|
99
|
-
* data management tables, configuration tables, editable parameter lists with grid layout.
|
|
100
|
-
*
|
|
101
|
-
* Props:
|
|
102
|
-
* - `title` — table title displayed in header (required).
|
|
103
|
-
* - `onNew` — callback function for "New" button action.
|
|
104
|
-
* - `newButtonText` — text for "New" button (defaults to "New").
|
|
105
|
-
* - `isLoading` — if true, "New" button shows loading state.
|
|
106
|
-
* - `buttonLoadingText` — text shown in "New" button when loading (defaults to "Adding...").
|
|
107
|
-
* - `actions` — array of additional action buttons (GridTableEditableAction[]).
|
|
108
|
-
* - `children` — table content (GridTable rows/cells) (required).
|
|
109
|
-
* - `disabled` — if true, all action buttons are disabled (defaults to false).
|
|
110
|
-
* - `skipSignIn` — if true, skips sign-in requirement for actions (defaults to true).
|
|
111
|
-
* - `cols` — number of columns (1-12) or custom CSS grid template (defaults to 12).
|
|
112
|
-
*
|
|
113
|
-
* Note: Action buttons are wrapped in SignInRequired component and use TabButton for styling. Table is wrapped in rounded border container.
|
|
114
|
-
*
|
|
115
|
-
* Do NOT use GridTableEditable:
|
|
116
|
-
* - for read-only tables without editing capabilities (use regular GridTable component).
|
|
117
|
-
* - when you don't need action buttons or title (use regular GridTable component).
|
|
118
|
-
*/
|
|
119
|
-
export declare function GridTableEditable({ title, onNew, newButtonText, buttonLoadingText, isLoading, actions, children, disabled, skipSignIn, cols, }: GridTableEditableProps): import("react/jsx-runtime").JSX.Element;
|
|
120
|
-
export {};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
interface TableCellAssetProps {
|
|
3
|
-
assetAddress: Address;
|
|
4
|
-
symbol: string;
|
|
5
|
-
comment?: string;
|
|
6
|
-
explorerUrl?: string;
|
|
7
|
-
iconSymbol?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* TableCellAsset — table cell component for displaying asset information.
|
|
11
|
-
*
|
|
12
|
-
* @usage
|
|
13
|
-
* Use TableCellAsset to display asset data in table cells:
|
|
14
|
-
* token symbols, asset addresses, icons, explorer links.
|
|
15
|
-
*
|
|
16
|
-
* Props:
|
|
17
|
-
* - `assetAddress` — asset contract address (required).
|
|
18
|
-
* - `symbol` — asset symbol/ticker (required).
|
|
19
|
-
* - `comment` — optional comment displayed next to symbol.
|
|
20
|
-
* - `explorerUrl` — optional explorer URL for external link button.
|
|
21
|
-
* - `iconSymbol` — optional symbol for icon extraction (used when icon doesn't match symbol, e.g., pool tokens).
|
|
22
|
-
*/
|
|
23
|
-
export declare function TableCellAsset({ assetAddress, symbol, iconSymbol, comment, explorerUrl, }: TableCellAssetProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
/**
|
|
25
|
-
* TableCellUpdatable — table cell component for displaying editable values with old/new value comparison.
|
|
26
|
-
*
|
|
27
|
-
* @usage
|
|
28
|
-
* Use TableCellUpdatable to display values that can be edited in table cells:
|
|
29
|
-
* editable parameters, configurable settings, updatable data with change indication.
|
|
30
|
-
*
|
|
31
|
-
* Props:
|
|
32
|
-
* - `oldValue` — previous value displayed with strikethrough when different from newValue.
|
|
33
|
-
* - `newValue` — current/new value to display (required).
|
|
34
|
-
* - `onEdit` — callback function executed when edit button is clicked.
|
|
35
|
-
* - `isEditable` — if false, edit button is not shown (defaults to true).
|
|
36
|
-
* - `className` — additional CSS classes for styling.
|
|
37
|
-
* - `customButton` — custom React node to replace default edit button.
|
|
38
|
-
* - `align` — text alignment: "left", "right", or "center" (defaults to "right").
|
|
39
|
-
* - `postfix` — optional text displayed after the value.
|
|
40
|
-
* - `disabled` — if true, edit button is disabled.
|
|
41
|
-
* - `nowrap` — if true, prevents text wrapping.
|
|
42
|
-
*/
|
|
43
|
-
export interface TableCellUpdatableProps {
|
|
44
|
-
oldValue?: string;
|
|
45
|
-
newValue: string;
|
|
46
|
-
onEdit?: () => void;
|
|
47
|
-
isEditable?: boolean;
|
|
48
|
-
className?: string;
|
|
49
|
-
customButton?: React.ReactNode;
|
|
50
|
-
align?: "left" | "right" | "center";
|
|
51
|
-
postfix?: string;
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
nowrap?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export declare function TableCellUpdatable({ oldValue, newValue, onEdit, isEditable, className, align, customButton, postfix, disabled, nowrap, }: TableCellUpdatableProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
/**
|
|
57
|
-
* TableEditableAction — action button configuration for TableEditable.
|
|
58
|
-
*/
|
|
59
|
-
export interface TableEditableAction {
|
|
60
|
-
text: string;
|
|
61
|
-
onClick: () => void;
|
|
62
|
-
loadingText?: string;
|
|
63
|
-
isLoading?: boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* TableEditable — table component with header, action buttons, and editable content.
|
|
67
|
-
*
|
|
68
|
-
* @usage
|
|
69
|
-
* Use TableEditable to create tables with editable content and action buttons:
|
|
70
|
-
* data management tables, configuration tables, editable parameter lists.
|
|
71
|
-
*
|
|
72
|
-
* Props:
|
|
73
|
-
* - `title` — table title displayed in header (required).
|
|
74
|
-
* - `onNew` — callback function for "New" button action.
|
|
75
|
-
* - `newButtonText` — text for "New" button (defaults to "New").
|
|
76
|
-
* - `isLoading` — if true, "New" button shows loading state.
|
|
77
|
-
* - `buttonLoadingText` — text shown in "New" button when loading (defaults to "Adding...").
|
|
78
|
-
* - `actions` — array of additional action buttons (TableEditableAction[]).
|
|
79
|
-
* - `children` — table content (Table rows/cells) (required).
|
|
80
|
-
* - `disabled` — if true, all action buttons are disabled.
|
|
81
|
-
* - `skipSignIn` — if true, skips sign-in requirement for actions (defaults to true).
|
|
82
|
-
*
|
|
83
|
-
* Note: Action buttons are wrapped in SignInRequired component and use TabButton for styling.
|
|
84
|
-
*
|
|
85
|
-
* Do NOT use TableEditable:
|
|
86
|
-
* - for read-only tables without editing capabilities (use regular Table component).
|
|
87
|
-
* - when you don't need action buttons or title (use regular Table component).
|
|
88
|
-
*/
|
|
89
|
-
interface TableEditableProps {
|
|
90
|
-
title: string;
|
|
91
|
-
onNew?: () => void;
|
|
92
|
-
newButtonText?: string;
|
|
93
|
-
isLoading?: boolean;
|
|
94
|
-
buttonLoadingText?: string;
|
|
95
|
-
actions?: TableEditableAction[];
|
|
96
|
-
children: React.ReactNode;
|
|
97
|
-
disabled?: boolean;
|
|
98
|
-
skipSignIn?: boolean;
|
|
99
|
-
}
|
|
100
|
-
export declare function TableEditable({ title, onNew, newButtonText, buttonLoadingText, isLoading, actions, children, disabled, skipSignIn, }: TableEditableProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* GridTableLoaderProps — props for GridTableLoader component.
|
|
4
|
-
*/
|
|
5
|
-
interface GridTableLoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Number of columns to span (uses col-span-full by default)
|
|
8
|
-
*/
|
|
9
|
-
colSpan?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* GridTableLoader — loader component for infinite scroll in GridTable.
|
|
13
|
-
*
|
|
14
|
-
* @usage
|
|
15
|
-
* Use GridTableLoader to display loading state at the bottom of grid tables:
|
|
16
|
-
* infinite scroll loading indicators, table data fetching states.
|
|
17
|
-
*
|
|
18
|
-
* Props:
|
|
19
|
-
* - `colSpan` — number of columns to span (uses col-span-full by default).
|
|
20
|
-
*
|
|
21
|
-
* Note: Displays centered spinner at the bottom of the table while loading more data.
|
|
22
|
-
*/
|
|
23
|
-
declare const GridTableLoader: React.ForwardRefExoticComponent<GridTableLoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export { GridTableLoader };
|
|
25
|
-
export type { GridTableLoaderProps };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UpdatedValueProps — props for UpdatedValue component.
|
|
3
|
-
*/
|
|
4
|
-
interface UpdatedValueProps {
|
|
5
|
-
oldValue?: string | number;
|
|
6
|
-
newValue: string | number;
|
|
7
|
-
onEdit?: () => void;
|
|
8
|
-
isEditable?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
nowrap?: boolean;
|
|
11
|
-
customButton?: React.ReactNode;
|
|
12
|
-
postfix?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* UpdatedValue — component for displaying old and new values with edit functionality.
|
|
16
|
-
*
|
|
17
|
-
* @usage
|
|
18
|
-
* Use UpdatedValue to show value changes with visual indication:
|
|
19
|
-
* old value with strikethrough, new value, edit button for modifications.
|
|
20
|
-
*
|
|
21
|
-
* Props:
|
|
22
|
-
* - `oldValue` — previous value displayed with strikethrough when different from newValue.
|
|
23
|
-
* - `newValue` — current/new value to display (required).
|
|
24
|
-
* - `onEdit` — callback function executed when edit button is clicked.
|
|
25
|
-
* - `isEditable` — if false, edit button is not shown (defaults to true).
|
|
26
|
-
* - `disabled` — if true, edit button is disabled (defaults to false).
|
|
27
|
-
* - `nowrap` — if true, prevents text wrapping (defaults to false).
|
|
28
|
-
* - `customButton` — custom React node to replace default edit button.
|
|
29
|
-
* - `postfix` — optional text displayed after the value.
|
|
30
|
-
*
|
|
31
|
-
* Note: When oldValue differs from newValue, old value is shown with strikethrough and arrow (→) separator.
|
|
32
|
-
*/
|
|
33
|
-
export declare function UpdatedValue({ oldValue, newValue, onEdit, isEditable, customButton, postfix, disabled, nowrap, }: UpdatedValueProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export {};
|