@gearbox-protocol/ui-kit 4.0.0-next.1 → 4.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/base/amount-input/amount-input.cjs +1 -1
- package/dist/cjs/components/base/amount-input/constants.cjs +1 -1
- package/dist/cjs/components/base/amount-input/index.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-button.cjs +1 -1
- package/dist/cjs/components/base/amount-input/token-select-panel.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/borrow-rate-block.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/constants.cjs +1 -0
- package/dist/cjs/components/base/borrow-rate-block/index.cjs +1 -0
- package/dist/cjs/components/base/chart-with-side-card/chart-with-side-card.cjs +1 -0
- package/dist/cjs/components/base/chart-with-side-card/constants.cjs +1 -0
- package/dist/cjs/components/base/chart-with-side-card/index.cjs +1 -0
- package/dist/cjs/components/base/details-view/details-view.cjs +1 -1
- package/dist/cjs/components/base/history-chart/history-chart.cjs +1 -1
- package/dist/cjs/components/base/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/constants.cjs +1 -1
- package/dist/cjs/components/base/info-list/index.cjs +1 -1
- package/dist/cjs/components/base/info-list/info-list.cjs +1 -1
- package/dist/cjs/components/base/leverage-input/leverage-input.cjs +1 -1
- package/dist/cjs/components/base/liquidation-params-table/constants.cjs +1 -0
- package/dist/cjs/components/base/liquidation-params-table/index.cjs +1 -0
- package/dist/cjs/components/base/liquidation-params-table/liquidation-params-table.cjs +1 -0
- package/dist/cjs/components/base/manage-pane/index.cjs +1 -1
- package/dist/cjs/components/base/manage-pane/manage-pane.cjs +1 -1
- package/dist/cjs/components/base/more-accordion/constants.cjs +1 -0
- package/dist/cjs/components/base/more-accordion/index.cjs +1 -0
- package/dist/cjs/components/base/more-accordion/more-accordion.cjs +1 -0
- package/dist/cjs/components/base/nested-info-stack/constants.cjs +1 -0
- package/dist/cjs/components/base/nested-info-stack/index.cjs +1 -0
- package/dist/cjs/components/base/nested-info-stack/nested-info-stack.cjs +1 -0
- package/dist/cjs/components/base/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/base/pool-apy-breakdown-card/constants.cjs +1 -0
- package/dist/cjs/components/base/pool-apy-breakdown-card/index.cjs +1 -0
- package/dist/cjs/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.cjs +1 -0
- package/dist/cjs/components/base/side-card/constants.cjs +1 -0
- package/dist/cjs/components/base/side-card/index.cjs +1 -0
- package/dist/cjs/components/base/side-card/side-card.cjs +1 -0
- package/dist/cjs/components/base/strategy-apy-breakdown-card/constants.cjs +1 -0
- package/dist/cjs/components/base/strategy-apy-breakdown-card/index.cjs +1 -0
- package/dist/cjs/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.cjs +1 -0
- package/dist/cjs/components/base/tabber/tabber.cjs +1 -1
- package/dist/cjs/components/base/title-meta/constants.cjs +1 -0
- package/dist/cjs/components/base/title-meta/index.cjs +1 -0
- package/dist/cjs/components/base/title-meta/title-meta.cjs +1 -0
- package/dist/cjs/components/base/token-amount/token-amount.cjs +1 -1
- package/dist/cjs/components/base/token-pair-symbol/constants.cjs +1 -0
- package/dist/cjs/components/base/token-pair-symbol/index.cjs +1 -0
- package/dist/cjs/components/base/token-pair-symbol/token-pair-symbol.cjs +1 -0
- package/dist/cjs/components/base/token-pair-title/constants.cjs +1 -0
- package/dist/cjs/components/base/token-pair-title/index.cjs +1 -0
- package/dist/cjs/components/base/token-pair-title/token-pair-title.cjs +1 -0
- package/dist/cjs/components/base/values/pnl-value.cjs +1 -1
- package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/composites/notification-center/notification-center.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-head.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table-row.cjs +1 -1
- package/dist/cjs/components/composites/pool-assets-table/pool-assets-table.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/index.cjs +1 -1
- package/dist/cjs/components/graph/graph-view.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/icons/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/index.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/table/index.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/hooks/index.cjs +1 -1
- package/dist/cjs/hooks/use-debounce-call.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locale/en.json.cjs +1 -1
- package/dist/esm/components/base/amount-input/amount-input.js +179 -147
- package/dist/esm/components/base/amount-input/constants.js +2 -0
- package/dist/esm/components/base/amount-input/index.js +5 -3
- package/dist/esm/components/base/amount-input/token-button.js +65 -35
- package/dist/esm/components/base/amount-input/token-select-panel.js +85 -0
- package/dist/esm/components/base/borrow-rate-block/borrow-rate-block.js +83 -0
- package/dist/esm/components/base/borrow-rate-block/constants.js +8 -0
- package/dist/esm/components/base/borrow-rate-block/index.js +6 -0
- package/dist/esm/components/base/chart-with-side-card/chart-with-side-card.js +36 -0
- package/dist/esm/components/base/chart-with-side-card/constants.js +8 -0
- package/dist/esm/components/base/chart-with-side-card/index.js +6 -0
- package/dist/esm/components/base/details-view/details-view.js +37 -32
- package/dist/esm/components/base/history-chart/history-chart.js +25 -21
- package/dist/esm/components/base/index.js +164 -116
- package/dist/esm/components/base/info-list/constants.js +1 -0
- package/dist/esm/components/base/info-list/index.js +5 -4
- package/dist/esm/components/base/info-list/info-list.js +44 -23
- package/dist/esm/components/base/leverage-input/leverage-input.js +53 -50
- package/dist/esm/components/base/liquidation-params-table/constants.js +6 -0
- package/dist/esm/components/base/liquidation-params-table/index.js +6 -0
- package/dist/esm/components/base/liquidation-params-table/liquidation-params-table.js +62 -0
- package/dist/esm/components/base/manage-pane/index.js +7 -6
- package/dist/esm/components/base/manage-pane/manage-pane.js +88 -67
- package/dist/esm/components/base/more-accordion/constants.js +7 -0
- package/dist/esm/components/base/more-accordion/index.js +6 -0
- package/dist/esm/components/base/more-accordion/more-accordion.js +51 -0
- package/dist/esm/components/base/nested-info-stack/constants.js +6 -0
- package/dist/esm/components/base/nested-info-stack/index.js +6 -0
- package/dist/esm/components/base/nested-info-stack/nested-info-stack.js +20 -0
- package/dist/esm/components/base/page-title/page-title.js +28 -22
- package/dist/esm/components/base/pool-apy-breakdown-card/constants.js +7 -0
- package/dist/esm/components/base/pool-apy-breakdown-card/index.js +6 -0
- package/dist/esm/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.js +65 -0
- package/dist/esm/components/base/side-card/constants.js +8 -0
- package/dist/esm/components/base/side-card/index.js +6 -0
- package/dist/esm/components/base/side-card/side-card.js +57 -0
- package/dist/esm/components/base/strategy-apy-breakdown-card/constants.js +7 -0
- package/dist/esm/components/base/strategy-apy-breakdown-card/index.js +6 -0
- package/dist/esm/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.js +51 -0
- package/dist/esm/components/base/tabber/tabber.js +83 -75
- package/dist/esm/components/base/title-meta/constants.js +8 -0
- package/dist/esm/components/base/title-meta/index.js +6 -0
- package/dist/esm/components/base/title-meta/title-meta.js +68 -0
- package/dist/esm/components/base/token-amount/token-amount.js +12 -12
- package/dist/esm/components/base/token-pair-symbol/constants.js +6 -0
- package/dist/esm/components/base/token-pair-symbol/index.js +6 -0
- package/dist/esm/components/base/token-pair-symbol/token-pair-symbol.js +33 -0
- package/dist/esm/components/base/token-pair-title/constants.js +6 -0
- package/dist/esm/components/base/token-pair-title/index.js +6 -0
- package/dist/esm/components/base/token-pair-title/token-pair-title.js +20 -0
- package/dist/esm/components/base/values/pnl-value.js +8 -8
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +19 -29
- package/dist/esm/components/checkbox/checkbox-labeled.js +16 -26
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +16 -26
- package/dist/esm/components/composites/notification-center/notification-center.js +1 -1
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-head.js +2 -3
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table-row.js +1 -1
- package/dist/esm/components/composites/pool-assets-table/pool-assets-table.js +6 -7
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.js +25 -35
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +1 -83
- package/dist/esm/components/explorer-links-dropdown/index.js +1 -4
- package/dist/esm/components/graph/graph-view.js +74 -74
- package/dist/esm/components/graph/graph.js +309 -308
- package/dist/esm/components/icons/index.js +29 -28
- package/dist/esm/components/index.js +701 -712
- package/dist/esm/components/layout/index.js +14 -33
- package/dist/esm/components/modal/modal.js +1 -1
- package/dist/esm/components/table/index.js +38 -52
- package/dist/esm/components/with-copy/with-copy.js +16 -26
- package/dist/esm/hooks/index.js +29 -54
- package/dist/esm/hooks/use-debounce-call.js +2 -3
- package/dist/esm/index.js +863 -900
- package/dist/esm/locale/en.json.js +24 -1
- package/dist/globals.css +1 -1
- package/dist/types/components/base/amount-input/amount-input.d.ts +13 -2
- package/dist/types/components/base/amount-input/constants.d.ts +2 -0
- package/dist/types/components/base/amount-input/index.d.ts +1 -0
- package/dist/types/components/base/amount-input/token-button.d.ts +14 -2
- package/dist/types/components/base/amount-input/token-select-panel.d.ts +17 -0
- package/dist/types/components/base/borrow-rate-block/borrow-rate-block.d.ts +16 -0
- package/dist/types/components/base/borrow-rate-block/constants.d.ts +5 -0
- package/dist/types/components/base/borrow-rate-block/index.d.ts +2 -0
- package/dist/types/components/base/chart-with-side-card/chart-with-side-card.d.ts +13 -0
- package/dist/types/components/base/chart-with-side-card/constants.d.ts +5 -0
- package/dist/types/components/base/chart-with-side-card/index.d.ts +2 -0
- package/dist/types/components/base/detailed-page-title/detailed-page-title.d.ts +2 -1
- package/dist/types/components/base/history-chart/history-chart.d.ts +8 -1
- package/dist/types/components/base/index.d.ts +11 -0
- package/dist/types/components/base/info-list/constants.d.ts +1 -0
- package/dist/types/components/base/info-list/info-list.d.ts +8 -1
- package/dist/types/components/base/leverage-input/leverage-input.d.ts +1 -1
- package/dist/types/components/base/liquidation-params-table/constants.d.ts +3 -0
- package/dist/types/components/base/liquidation-params-table/index.d.ts +2 -0
- package/dist/types/components/base/liquidation-params-table/liquidation-params-table.d.ts +12 -0
- package/dist/types/components/base/manage-pane/manage-pane.d.ts +7 -0
- package/dist/types/components/base/more-accordion/constants.d.ts +4 -0
- package/dist/types/components/base/more-accordion/index.d.ts +2 -0
- package/dist/types/components/base/more-accordion/more-accordion.d.ts +11 -0
- package/dist/types/components/base/nested-info-stack/constants.d.ts +3 -0
- package/dist/types/components/base/nested-info-stack/index.d.ts +2 -0
- package/dist/types/components/base/nested-info-stack/nested-info-stack.d.ts +10 -0
- package/dist/types/components/base/page-title/page-title.d.ts +6 -2
- package/dist/types/components/base/pool-apy-breakdown-card/constants.d.ts +4 -0
- package/dist/types/components/base/pool-apy-breakdown-card/index.d.ts +2 -0
- package/dist/types/components/base/pool-apy-breakdown-card/pool-apy-breakdown-card.d.ts +14 -0
- package/dist/types/components/base/side-card/constants.d.ts +5 -0
- package/dist/types/components/base/side-card/index.d.ts +2 -0
- package/dist/types/components/base/side-card/side-card.d.ts +16 -0
- package/dist/types/components/base/strategy-apy-breakdown-card/constants.d.ts +4 -0
- package/dist/types/components/base/strategy-apy-breakdown-card/index.d.ts +2 -0
- package/dist/types/components/base/strategy-apy-breakdown-card/strategy-apy-breakdown-card.d.ts +9 -0
- package/dist/types/components/base/tabber/tabber.d.ts +11 -2
- package/dist/types/components/base/title-meta/constants.d.ts +5 -0
- package/dist/types/components/base/title-meta/index.d.ts +2 -0
- package/dist/types/components/base/title-meta/title-meta.d.ts +15 -0
- package/dist/types/components/base/token-pair-symbol/constants.d.ts +3 -0
- package/dist/types/components/base/token-pair-symbol/index.d.ts +2 -0
- package/dist/types/components/base/token-pair-symbol/token-pair-symbol.d.ts +15 -0
- package/dist/types/components/base/token-pair-title/constants.d.ts +3 -0
- package/dist/types/components/base/token-pair-title/index.d.ts +2 -0
- package/dist/types/components/base/token-pair-title/token-pair-title.d.ts +11 -0
- package/dist/types/components/base/values/position-type-badge.d.ts +1 -1
- package/dist/types/components/base-link/base-link.d.ts +1 -1
- package/dist/types/components/buttons/button/button.d.ts +2 -2
- package/dist/types/components/checkbox/checkbox.d.ts +2 -2
- package/dist/types/components/composites/pool-assets-table/pool-assets-table.d.ts +4 -1
- package/dist/types/components/dialog/dialog-container.d.ts +3 -3
- package/dist/types/components/edit-input/edit-input.d.ts +1 -1
- package/dist/types/components/explorer-links-dropdown/explorer-links-dropdown.d.ts +6 -75
- package/dist/types/components/filter/variants.d.ts +1 -1
- package/dist/types/components/graph/graph-view.d.ts +1 -1
- package/dist/types/components/health-factor/health-factor.d.ts +2 -1
- package/dist/types/components/icons/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +0 -6
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/layout/index.d.ts +0 -7
- package/dist/types/components/skeleton/skeleton.d.ts +2 -2
- package/dist/types/components/status-dot/status-dot.d.ts +1 -1
- package/dist/types/components/table/index.d.ts +0 -5
- package/dist/types/components/text-button/text-button.d.ts +1 -1
- package/dist/types/components/tip-card/tip-card.d.ts +2 -2
- package/dist/types/components/token-symbol/token-symbol.d.ts +1 -1
- package/dist/types/components/vertical-indicator/vertical-indicator.d.ts +2 -2
- package/dist/types/components/with-title/with-title.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/locale/en.json.d.ts +30 -1
- package/dist/types/types/index.d.ts +0 -2
- package/package.json +3 -15
- package/dist/cjs/components/auth/connect-required.cjs +0 -1
- package/dist/cjs/components/auth/index.cjs +0 -1
- package/dist/cjs/components/auth/signin-required.cjs +0 -1
- package/dist/cjs/components/auth/wallet-ui-context.cjs +0 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +0 -1
- package/dist/cjs/components/block-sync/index.cjs +0 -1
- package/dist/cjs/components/image/image.cjs +0 -1
- package/dist/cjs/components/image/index.cjs +0 -1
- package/dist/cjs/components/layout/app-logo/app-logo.cjs +0 -1
- package/dist/cjs/components/layout/app-logo/index.cjs +0 -1
- package/dist/cjs/components/layout/block/block.cjs +0 -1
- package/dist/cjs/components/layout/block/index.cjs +0 -1
- package/dist/cjs/components/layout/footer/footer.cjs +0 -1
- package/dist/cjs/components/layout/footer/index.cjs +0 -1
- package/dist/cjs/components/layout/header/header.cjs +0 -1
- package/dist/cjs/components/layout/header/index.cjs +0 -1
- package/dist/cjs/components/layout/legal-disclaimer/index.cjs +0 -1
- package/dist/cjs/components/layout/legal-disclaimer/legal-disclaimer.cjs +0 -1
- package/dist/cjs/components/layout/page-layout/index.cjs +0 -1
- package/dist/cjs/components/layout/page-layout/page-layout.cjs +0 -1
- package/dist/cjs/components/layout/social-icons/index.cjs +0 -1
- package/dist/cjs/components/layout/social-icons/social-icons.cjs +0 -1
- package/dist/cjs/components/navbar/index.cjs +0 -1
- package/dist/cjs/components/navbar/navbar-indicator-context.cjs +0 -1
- package/dist/cjs/components/navbar/navbar-with-overflow.cjs +0 -1
- package/dist/cjs/components/navbar/navbar.cjs +0 -1
- package/dist/cjs/components/navitem/index.cjs +0 -1
- package/dist/cjs/components/navitem/navitem.cjs +0 -1
- package/dist/cjs/components/page-title/index.cjs +0 -1
- package/dist/cjs/components/page-title/page-title.cjs +0 -1
- package/dist/cjs/components/pool-apy-tooltip/apy-tooltip.cjs +0 -1
- package/dist/cjs/components/pool-apy-tooltip/index.cjs +0 -1
- package/dist/cjs/components/table/edit-button.cjs +0 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +0 -1
- package/dist/cjs/components/table/editable-table.cjs +0 -1
- package/dist/cjs/components/table/grid-table-loader.cjs +0 -1
- package/dist/cjs/components/table/updated-value.cjs +0 -1
- package/dist/cjs/hooks/use-liquidation/index.cjs +0 -1
- package/dist/cjs/hooks/use-liquidation/types.cjs +0 -1
- package/dist/cjs/hooks/use-liquidation/utils.cjs +0 -1
- package/dist/cjs/test-ids/base.cjs +0 -1
- package/dist/cjs/test-ids/index.cjs +0 -1
- package/dist/cjs/types/component-props.cjs +0 -1
- package/dist/cjs/types/help.cjs +0 -1
- package/dist/cjs/utils/reactochart-compat.cjs +0 -1
- package/dist/esm/components/auth/connect-required.js +0 -37
- package/dist/esm/components/auth/index.js +0 -9
- package/dist/esm/components/auth/signin-required.js +0 -55
- package/dist/esm/components/auth/wallet-ui-context.js +0 -13
- package/dist/esm/components/block-sync/block-sync.js +0 -208
- package/dist/esm/components/block-sync/index.js +0 -4
- package/dist/esm/components/image/image.js +0 -32
- package/dist/esm/components/image/index.js +0 -4
- package/dist/esm/components/layout/app-logo/app-logo.js +0 -99
- package/dist/esm/components/layout/app-logo/index.js +0 -5
- package/dist/esm/components/layout/block/block.js +0 -50
- package/dist/esm/components/layout/block/index.js +0 -4
- package/dist/esm/components/layout/footer/footer.js +0 -237
- package/dist/esm/components/layout/footer/index.js +0 -7
- package/dist/esm/components/layout/header/header.js +0 -93
- package/dist/esm/components/layout/header/index.js +0 -5
- package/dist/esm/components/layout/legal-disclaimer/index.js +0 -4
- package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +0 -46
- package/dist/esm/components/layout/page-layout/index.js +0 -4
- package/dist/esm/components/layout/page-layout/page-layout.js +0 -39
- package/dist/esm/components/layout/social-icons/index.js +0 -4
- package/dist/esm/components/layout/social-icons/social-icons.js +0 -61
- package/dist/esm/components/navbar/index.js +0 -11
- package/dist/esm/components/navbar/navbar-indicator-context.js +0 -46
- package/dist/esm/components/navbar/navbar-with-overflow.js +0 -181
- package/dist/esm/components/navbar/navbar.js +0 -99
- package/dist/esm/components/navitem/index.js +0 -5
- package/dist/esm/components/navitem/navitem.js +0 -124
- package/dist/esm/components/page-title/index.js +0 -6
- package/dist/esm/components/page-title/page-title.js +0 -120
- package/dist/esm/components/pool-apy-tooltip/apy-tooltip.js +0 -154
- package/dist/esm/components/pool-apy-tooltip/index.js +0 -4
- package/dist/esm/components/table/edit-button.js +0 -48
- package/dist/esm/components/table/editable-grid-table.js +0 -121
- package/dist/esm/components/table/editable-table.js +0 -108
- package/dist/esm/components/table/grid-table-loader.js +0 -22
- package/dist/esm/components/table/updated-value.js +0 -49
- package/dist/esm/hooks/use-liquidation/index.js +0 -138
- package/dist/esm/hooks/use-liquidation/types.js +0 -1
- package/dist/esm/hooks/use-liquidation/utils.js +0 -144
- package/dist/esm/test-ids/base.js +0 -44
- package/dist/esm/test-ids/index.js +0 -46
- package/dist/esm/types/component-props.js +0 -1
- package/dist/esm/types/help.js +0 -1
- package/dist/esm/utils/reactochart-compat.js +0 -18
- package/dist/types/components/auth/connect-required.d.ts +0 -32
- package/dist/types/components/auth/index.d.ts +0 -3
- package/dist/types/components/auth/signin-required.d.ts +0 -37
- package/dist/types/components/auth/wallet-ui-context.d.ts +0 -36
- package/dist/types/components/block-sync/block-sync.d.ts +0 -8
- package/dist/types/components/block-sync/index.d.ts +0 -1
- package/dist/types/components/image/image.d.ts +0 -35
- package/dist/types/components/image/index.d.ts +0 -1
- package/dist/types/components/layout/app-logo/app-logo.d.ts +0 -26
- package/dist/types/components/layout/app-logo/index.d.ts +0 -1
- package/dist/types/components/layout/block/block.d.ts +0 -23
- package/dist/types/components/layout/block/index.d.ts +0 -1
- package/dist/types/components/layout/footer/footer.d.ts +0 -53
- package/dist/types/components/layout/footer/index.d.ts +0 -1
- package/dist/types/components/layout/header/header.d.ts +0 -123
- package/dist/types/components/layout/header/index.d.ts +0 -1
- package/dist/types/components/layout/legal-disclaimer/index.d.ts +0 -1
- package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +0 -32
- package/dist/types/components/layout/page-layout/index.d.ts +0 -1
- package/dist/types/components/layout/page-layout/page-layout.d.ts +0 -41
- package/dist/types/components/layout/social-icons/index.d.ts +0 -1
- package/dist/types/components/layout/social-icons/social-icons.d.ts +0 -7
- package/dist/types/components/navbar/index.d.ts +0 -3
- package/dist/types/components/navbar/navbar-indicator-context.d.ts +0 -13
- package/dist/types/components/navbar/navbar-with-overflow.d.ts +0 -20
- package/dist/types/components/navbar/navbar.d.ts +0 -25
- package/dist/types/components/navitem/index.d.ts +0 -1
- package/dist/types/components/navitem/navitem.d.ts +0 -67
- package/dist/types/components/page-title/index.d.ts +0 -1
- package/dist/types/components/page-title/page-title.d.ts +0 -77
- package/dist/types/components/pool-apy-tooltip/apy-tooltip.d.ts +0 -20
- package/dist/types/components/pool-apy-tooltip/index.d.ts +0 -1
- package/dist/types/components/table/edit-button.d.ts +0 -51
- package/dist/types/components/table/editable-grid-table.d.ts +0 -120
- package/dist/types/components/table/editable-table.d.ts +0 -101
- package/dist/types/components/table/grid-table-loader.d.ts +0 -25
- package/dist/types/components/table/updated-value.d.ts +0 -34
- package/dist/types/hooks/use-liquidation/index.d.ts +0 -53
- package/dist/types/hooks/use-liquidation/types.d.ts +0 -16
- package/dist/types/hooks/use-liquidation/utils.d.ts +0 -71
- package/dist/types/test-ids/base.d.ts +0 -20
- package/dist/types/test-ids/index.d.ts +0 -9
- package/dist/types/types/component-props.d.ts +0 -16
- package/dist/types/types/help.d.ts +0 -4
- package/dist/types/types/reactochart.d.ts +0 -145
- package/dist/types/utils/reactochart-compat.d.ts +0 -12
- /package/dist/cjs/{test-ids/notification-center.cjs → components/composites/notification-center/constants.cjs} +0 -0
- /package/dist/esm/{test-ids/notification-center.js → components/composites/notification-center/constants.js} +0 -0
- /package/dist/types/{test-ids/notification-center.d.ts → components/composites/notification-center/constants.d.ts} +0 -0
|
@@ -1,32 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useIntlTyped as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { PageTitleTest as
|
|
5
|
-
function
|
|
6
|
-
return typeof t == "string"
|
|
1
|
+
import { jsxs as c, Fragment as d, jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { useIntlTyped as T } from "../../typed-intl/index.js";
|
|
3
|
+
import { Typography as x } from "../../typography/typography.js";
|
|
4
|
+
import { PageTitleTest as a } from "./constants.js";
|
|
5
|
+
function r(t) {
|
|
6
|
+
return typeof t == "string" || !!t && typeof t == "object" && "messageId" in t;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
function i(t, o) {
|
|
9
|
+
return o === void 0 ? "" : typeof o == "string" ? o : t.formatMessage(o);
|
|
10
|
+
}
|
|
11
|
+
function j({
|
|
12
|
+
title: t,
|
|
13
|
+
browserTitle: o,
|
|
14
|
+
head: s,
|
|
15
|
+
as: m = "h1",
|
|
16
|
+
className: f
|
|
14
17
|
}) {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
const e = T(), p = r(t) ? i(e, t) : t, n = i(
|
|
19
|
+
e,
|
|
20
|
+
o ?? (r(t) ? t : void 0)
|
|
21
|
+
);
|
|
22
|
+
return /* @__PURE__ */ c(d, { children: [
|
|
23
|
+
n ? s?.(n) : null,
|
|
18
24
|
/* @__PURE__ */ g(
|
|
19
|
-
|
|
25
|
+
x,
|
|
20
26
|
{
|
|
21
|
-
as:
|
|
22
|
-
className:
|
|
23
|
-
"data-testid":
|
|
24
|
-
children:
|
|
27
|
+
as: m,
|
|
28
|
+
className: f ?? "m-0 text-3xl leading-none font-medium",
|
|
29
|
+
"data-testid": a.root,
|
|
30
|
+
children: p
|
|
25
31
|
}
|
|
26
32
|
)
|
|
27
33
|
] });
|
|
28
34
|
}
|
|
29
35
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
j as PageTitle,
|
|
37
|
+
a as PageTitleTest
|
|
32
38
|
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { FormattedMessageTyped as d } from "../../typed-intl/index.js";
|
|
3
|
+
import { VerticalIndicator as i } from "../../vertical-indicator/vertical-indicator.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "@gearbox-protocol/sdk";
|
|
6
|
+
import "clsx";
|
|
7
|
+
import "tailwind-merge";
|
|
8
|
+
import "sonner";
|
|
9
|
+
import { percentTemplate as m } from "../../../utils/format-money.js";
|
|
10
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
11
|
+
import "luxon";
|
|
12
|
+
import "../../../utils/z-index.js";
|
|
13
|
+
import { SideCard as n } from "../side-card/side-card.js";
|
|
14
|
+
import { PoolApyBreakdownCardTest as p } from "./constants.js";
|
|
15
|
+
function t({
|
|
16
|
+
title: r,
|
|
17
|
+
value: e
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ o(
|
|
20
|
+
i,
|
|
21
|
+
{
|
|
22
|
+
size: "sm",
|
|
23
|
+
label: /* @__PURE__ */ o(d, { messageId: r }),
|
|
24
|
+
value: /* @__PURE__ */ o("span", { "data-testid": p.value, children: e === void 0 ? "—" : m(e / 100) })
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
function T({
|
|
29
|
+
data: r
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ a(
|
|
32
|
+
n,
|
|
33
|
+
{
|
|
34
|
+
title: "components.poolApyBreakdownCard.title",
|
|
35
|
+
testId: p.root,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
t,
|
|
39
|
+
{
|
|
40
|
+
title: "components.poolApyBreakdownCard.apy1d",
|
|
41
|
+
value: r?.apy1d
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ o(
|
|
45
|
+
t,
|
|
46
|
+
{
|
|
47
|
+
title: "components.poolApyBreakdownCard.apy7d",
|
|
48
|
+
value: r?.apy7d
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ o(
|
|
52
|
+
t,
|
|
53
|
+
{
|
|
54
|
+
title: "components.poolApyBreakdownCard.apy30d",
|
|
55
|
+
value: r?.apy30d
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
T as PoolApyBreakdownCard,
|
|
64
|
+
p as PoolApyBreakdownCardTest
|
|
65
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useTitleText as l } from "../text/use-title-text.js";
|
|
3
|
+
import { Typography as p } from "../../typography/typography.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "@gearbox-protocol/sdk";
|
|
6
|
+
import { cn as n } from "../../../utils/cn.js";
|
|
7
|
+
import "sonner";
|
|
8
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
9
|
+
import "luxon";
|
|
10
|
+
import "../../../utils/z-index.js";
|
|
11
|
+
import { SideCardTest as r } from "./constants.js";
|
|
12
|
+
function j({
|
|
13
|
+
title: o,
|
|
14
|
+
tip: i,
|
|
15
|
+
children: d,
|
|
16
|
+
className: a,
|
|
17
|
+
testId: m
|
|
18
|
+
}) {
|
|
19
|
+
const s = l();
|
|
20
|
+
return /* @__PURE__ */ t(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: n(
|
|
24
|
+
"@container flex w-full flex-col gap-4 rounded-lg border border-border bg-card p-4 sm:p-6",
|
|
25
|
+
a
|
|
26
|
+
),
|
|
27
|
+
"data-testid": m ?? r.root,
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-1.5", children: [
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
p,
|
|
32
|
+
{
|
|
33
|
+
as: "span",
|
|
34
|
+
variant: "body",
|
|
35
|
+
className: "m-0 text-base font-semibold leading-none text-card-foreground",
|
|
36
|
+
"data-testid": r.title,
|
|
37
|
+
children: s(o)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
i
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ e(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: "grid grid-cols-1 gap-4 @[24rem]:grid-cols-2 @[40rem]:grid-cols-3",
|
|
46
|
+
"data-testid": r.body,
|
|
47
|
+
children: d
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
j as SideCard,
|
|
56
|
+
r as SideCardTest
|
|
57
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { HelpTip as m } from "../../help-tip/help-tip.js";
|
|
3
|
+
import { FormattedMessageTyped as a } from "../../typed-intl/index.js";
|
|
4
|
+
import { VerticalIndicator as n } from "../../vertical-indicator/vertical-indicator.js";
|
|
5
|
+
import { SideCard as l } from "../side-card/side-card.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "@gearbox-protocol/sdk";
|
|
8
|
+
import "clsx";
|
|
9
|
+
import "tailwind-merge";
|
|
10
|
+
import "sonner";
|
|
11
|
+
import "@gearbox-protocol/sdk/common-utils";
|
|
12
|
+
import "luxon";
|
|
13
|
+
import "../../../utils/z-index.js";
|
|
14
|
+
import { ApyValue as o } from "../values/scalars.js";
|
|
15
|
+
import "../../badge/badge.js";
|
|
16
|
+
import { StrategyApyBreakdownCardTest as i } from "./constants.js";
|
|
17
|
+
function e({
|
|
18
|
+
title: t,
|
|
19
|
+
children: p
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ r(
|
|
22
|
+
n,
|
|
23
|
+
{
|
|
24
|
+
size: "sm",
|
|
25
|
+
"data-testid": i.row,
|
|
26
|
+
label: /* @__PURE__ */ r(a, { messageId: t }),
|
|
27
|
+
value: p
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function R({
|
|
32
|
+
data: t
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ d(
|
|
35
|
+
l,
|
|
36
|
+
{
|
|
37
|
+
title: "components.strategyApyBreakdownCard.title",
|
|
38
|
+
testId: i.root,
|
|
39
|
+
tip: /* @__PURE__ */ r(m, { iconSize: 14, placement: "top", children: /* @__PURE__ */ r(a, { messageId: "components.strategyApyBreakdownCard.formula" }) }),
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ r(e, { title: "components.strategyApyBreakdownCard.collateralApy", children: /* @__PURE__ */ r(o, { data: t.collateralApy }) }),
|
|
42
|
+
/* @__PURE__ */ r(e, { title: "components.strategyApyBreakdownCard.baseBorrowRate", children: /* @__PURE__ */ r(o, { data: t.borrowApy }) }),
|
|
43
|
+
/* @__PURE__ */ r(e, { title: "components.strategyApyBreakdownCard.additionalBorrowRate", children: /* @__PURE__ */ r(o, { data: t.additionalBorrowApy }) })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
R as StrategyApyBreakdownCard,
|
|
50
|
+
i as StrategyApyBreakdownCardTest
|
|
51
|
+
};
|
|
@@ -1,116 +1,124 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { SectionHeading as
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { StickyBar as
|
|
6
|
-
import { useTitleText as
|
|
7
|
-
import { TabItem as
|
|
8
|
-
import { TabberTest as
|
|
9
|
-
import { useDetailScrollSpy as
|
|
10
|
-
const
|
|
11
|
-
function
|
|
1
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as O, useContext as E, useMemo as x, Children as B, useRef as T, useEffect as q, isValidElement as N } from "react";
|
|
3
|
+
import { SectionHeading as D } from "../section-heading/section-heading.js";
|
|
4
|
+
import { Stack as f } from "../stack/stack.js";
|
|
5
|
+
import { StickyBar as F } from "../sticky-bar/sticky-bar.js";
|
|
6
|
+
import { useTitleText as R } from "../text/use-title-text.js";
|
|
7
|
+
import { TabItem as M, TabControl as P } from "../../tab-control/tab-control.js";
|
|
8
|
+
import { TabberTest as S } from "./constants.js";
|
|
9
|
+
import { useDetailScrollSpy as V } from "./use-detail-scroll-spy.js";
|
|
10
|
+
const j = O({});
|
|
11
|
+
function k({
|
|
12
12
|
id: e,
|
|
13
|
-
title:
|
|
14
|
-
heading:
|
|
15
|
-
actions:
|
|
16
|
-
children:
|
|
13
|
+
title: o,
|
|
14
|
+
heading: c = o,
|
|
15
|
+
actions: a,
|
|
16
|
+
children: m,
|
|
17
|
+
hideHeading: l = !1
|
|
17
18
|
}) {
|
|
18
|
-
const i =
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
const i = E(j), n = R(), s = !l;
|
|
20
|
+
return /* @__PURE__ */ r(
|
|
20
21
|
"section",
|
|
21
22
|
{
|
|
22
23
|
ref: i[e],
|
|
23
24
|
className: "scroll-mt-28",
|
|
24
25
|
"data-scroll-section": e,
|
|
25
|
-
"data-testid":
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
] }),
|
|
31
|
-
|
|
26
|
+
"data-testid": S.section,
|
|
27
|
+
children: /* @__PURE__ */ u(f, { gap: "md", children: [
|
|
28
|
+
s || a ? /* @__PURE__ */ u("div", { className: "flex items-center justify-between gap-3", children: [
|
|
29
|
+
s ? /* @__PURE__ */ r(D, { children: n(c) }) : /* @__PURE__ */ r("span", {}),
|
|
30
|
+
a
|
|
31
|
+
] }) : null,
|
|
32
|
+
m
|
|
32
33
|
] })
|
|
33
34
|
}
|
|
34
35
|
);
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
function
|
|
38
|
-
return
|
|
37
|
+
k.displayName = "TabberSection";
|
|
38
|
+
function g(e) {
|
|
39
|
+
return N(e) && e.type === k;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function W({
|
|
41
42
|
item: e,
|
|
42
|
-
...
|
|
43
|
+
...o
|
|
43
44
|
}) {
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
e && /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ u("div", { className: "flex items-stretch overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:h-0 [scrollbar-width:none]", children: [
|
|
46
|
+
/* @__PURE__ */ r("div", { className: "min-w-0 basis-0 grow pb-px", children: /* @__PURE__ */ r(P, { ...o, showBorder: !0 }) }),
|
|
47
|
+
e && /* @__PURE__ */ r("div", { className: "w-auto shrink-0 grow-0 basis-auto", children: e })
|
|
47
48
|
] });
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function z({
|
|
50
51
|
children: e,
|
|
51
|
-
observeKey:
|
|
52
|
-
initialSection:
|
|
53
|
-
testId:
|
|
52
|
+
observeKey: o,
|
|
53
|
+
initialSection: c,
|
|
54
|
+
testId: a,
|
|
55
|
+
mobileManagePane: m
|
|
54
56
|
}) {
|
|
55
|
-
const
|
|
56
|
-
() =>
|
|
57
|
+
const l = x(
|
|
58
|
+
() => B.toArray(e).filter(g),
|
|
57
59
|
[e]
|
|
58
|
-
), i =
|
|
60
|
+
), i = l.map((t) => t.props.id).join("|"), n = x(
|
|
59
61
|
() => i === "" ? [] : i.split("|"),
|
|
60
62
|
[i]
|
|
61
|
-
),
|
|
63
|
+
), s = T({}), d = x(() => {
|
|
62
64
|
const t = {
|
|
63
|
-
...
|
|
65
|
+
...s.current
|
|
64
66
|
};
|
|
65
|
-
for (const
|
|
66
|
-
t[
|
|
67
|
-
return
|
|
68
|
-
}, [n]),
|
|
69
|
-
|
|
67
|
+
for (const y of n)
|
|
68
|
+
t[y] === void 0 && (t[y] = { current: null });
|
|
69
|
+
return s.current = t, t;
|
|
70
|
+
}, [n]), A = R(), { activeSection: p, scrollToSection: b } = V(
|
|
71
|
+
d,
|
|
70
72
|
n,
|
|
71
|
-
|
|
72
|
-
),
|
|
73
|
-
|
|
74
|
-
if (
|
|
75
|
-
const t =
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
o
|
|
74
|
+
), h = T(!1), w = T(o);
|
|
75
|
+
q(() => {
|
|
76
|
+
if (o !== w.current && (w.current = o, h.current = !1), h.current || !o) return;
|
|
77
|
+
const t = c ?? n[0];
|
|
78
|
+
h.current = !0, !(t === void 0 || t === n[0]) && d[t] !== void 0 && requestAnimationFrame(() => {
|
|
79
|
+
b(t);
|
|
78
80
|
});
|
|
79
|
-
}, [
|
|
80
|
-
const
|
|
81
|
+
}, [o, c, b, n, d]);
|
|
82
|
+
const I = l.map((t) => ({
|
|
81
83
|
id: t.props.id,
|
|
82
|
-
item: /* @__PURE__ */
|
|
83
|
-
|
|
84
|
+
item: /* @__PURE__ */ r(
|
|
85
|
+
M,
|
|
84
86
|
{
|
|
85
|
-
selected:
|
|
86
|
-
label:
|
|
87
|
+
selected: p === t.props.id,
|
|
88
|
+
label: A(t.props.title)
|
|
87
89
|
}
|
|
88
90
|
)
|
|
89
|
-
}))
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
})), C = B.toArray(e), v = C.filter(
|
|
92
|
+
(t) => g(t) && t.props.beforeBar === !0
|
|
93
|
+
), H = C.filter(
|
|
94
|
+
(t) => !(g(t) && t.props.beforeBar === !0)
|
|
95
|
+
);
|
|
96
|
+
return /* @__PURE__ */ r(f, { gap: "lg", "data-testid": a ?? S.root, children: /* @__PURE__ */ u(j.Provider, { value: d, children: [
|
|
97
|
+
v.length > 0 ? /* @__PURE__ */ r(f, { gap: "xl", children: v }) : null,
|
|
98
|
+
m,
|
|
99
|
+
/* @__PURE__ */ r(F, { testId: S.bar, children: /* @__PURE__ */ r(
|
|
100
|
+
W,
|
|
93
101
|
{
|
|
94
102
|
state: {
|
|
95
|
-
id:
|
|
96
|
-
index: n.indexOf(
|
|
103
|
+
id: p,
|
|
104
|
+
index: n.indexOf(p),
|
|
97
105
|
handleTabChange: (t) => {
|
|
98
|
-
|
|
106
|
+
b(t);
|
|
99
107
|
}
|
|
100
108
|
},
|
|
101
|
-
tabs:
|
|
109
|
+
tabs: I,
|
|
102
110
|
item: null
|
|
103
111
|
}
|
|
104
112
|
) }),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
] });
|
|
113
|
+
/* @__PURE__ */ r(f, { gap: "xl", children: H })
|
|
114
|
+
] }) });
|
|
107
115
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
116
|
+
function $(e) {
|
|
117
|
+
return N(e) && e.type === z;
|
|
110
118
|
}
|
|
111
119
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
120
|
+
z as Tabber,
|
|
121
|
+
k as TabberSection,
|
|
122
|
+
S as TabberTest,
|
|
123
|
+
$ as isTabber
|
|
116
124
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Link as p } from "../../link/link.js";
|
|
3
|
+
import { NetworkIcon as g } from "../../network-icon/network-icon.js";
|
|
4
|
+
import { FormattedMessageTyped as f } from "../../typed-intl/index.js";
|
|
5
|
+
import { Typography as r } from "../../typography/typography.js";
|
|
6
|
+
import { Stack as o } from "../stack/stack.js";
|
|
7
|
+
import { TitleMetaTest as s } from "./constants.js";
|
|
8
|
+
function N({
|
|
9
|
+
network: a,
|
|
10
|
+
curatorName: e,
|
|
11
|
+
curatorLink: n,
|
|
12
|
+
onCuratorLinkClick: m,
|
|
13
|
+
testId: d = s.root,
|
|
14
|
+
networkTestId: c = s.network,
|
|
15
|
+
curatorTestId: l = s.curator
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ i(
|
|
18
|
+
o,
|
|
19
|
+
{
|
|
20
|
+
direction: "row",
|
|
21
|
+
align: "center",
|
|
22
|
+
gap: "md",
|
|
23
|
+
wrap: !0,
|
|
24
|
+
className: "text-sm text-foreground",
|
|
25
|
+
"data-testid": d,
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ i(
|
|
28
|
+
o,
|
|
29
|
+
{
|
|
30
|
+
direction: "row",
|
|
31
|
+
align: "center",
|
|
32
|
+
gap: "sm",
|
|
33
|
+
"data-testid": c,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ t(g, { network: a, size: 16 }),
|
|
36
|
+
/* @__PURE__ */ t(r, { as: "span", className: "text-sm text-foreground", children: a })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
e ? /* @__PURE__ */ t(
|
|
41
|
+
o,
|
|
42
|
+
{
|
|
43
|
+
direction: "row",
|
|
44
|
+
align: "center",
|
|
45
|
+
gap: "sm",
|
|
46
|
+
"data-testid": l,
|
|
47
|
+
children: n ? /* @__PURE__ */ t(
|
|
48
|
+
p,
|
|
49
|
+
{
|
|
50
|
+
className: "text-sm text-foreground",
|
|
51
|
+
href: n,
|
|
52
|
+
external: !0,
|
|
53
|
+
target: "_blank",
|
|
54
|
+
size: "sm",
|
|
55
|
+
onClick: m,
|
|
56
|
+
children: e
|
|
57
|
+
}
|
|
58
|
+
) : /* @__PURE__ */ t(r, { as: "span", className: "text-sm text-foreground", children: e })
|
|
59
|
+
}
|
|
60
|
+
) : /* @__PURE__ */ t(r, { as: "span", className: "text-sm text-foreground", children: /* @__PURE__ */ t(f, { messageId: "components.titleMeta.unknownCurator" }) })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
N as TitleMeta,
|
|
67
|
+
s as TitleMetaTest
|
|
68
|
+
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Stack as
|
|
3
|
-
import { TokenTemplate as
|
|
1
|
+
import { jsx as n, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as m } from "../stack/stack.js";
|
|
3
|
+
import { TokenTemplate as a } from "../../token-template/token-template.js";
|
|
4
4
|
import { Typography as s } from "../../typography/typography.js";
|
|
5
5
|
import { formatMoney as l } from "../../../utils/format-money.js";
|
|
6
|
-
import { TokenAmountTest as
|
|
6
|
+
import { TokenAmountTest as r } from "./constants.js";
|
|
7
7
|
function T({
|
|
8
8
|
data: o,
|
|
9
|
-
token:
|
|
9
|
+
token: e
|
|
10
10
|
}) {
|
|
11
11
|
if (o === null)
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ n(
|
|
13
13
|
"span",
|
|
14
14
|
{
|
|
15
15
|
className: "text-secondary-foreground",
|
|
16
|
-
"data-testid":
|
|
16
|
+
"data-testid": r.root,
|
|
17
17
|
children: "—"
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
20
|
+
const t = e ?? o.token;
|
|
21
|
+
return /* @__PURE__ */ i(m, { gap: "xs", align: "end", "data-testid": r.root, children: [
|
|
22
|
+
/* @__PURE__ */ n(a, { value: o.value, token: t }),
|
|
23
|
+
/* @__PURE__ */ n(s, { as: "span", variant: "caption", color: "secondary", children: o.valueUsd === null ? "—" : l(o.valueUsd) })
|
|
24
24
|
] });
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
T as TokenAmount,
|
|
28
|
-
|
|
28
|
+
r as TokenAmountTest
|
|
29
29
|
};
|