@agg-build/ui 1.0.0
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/README.md +287 -0
- package/dist/chunk-2QJXRRYP.mjs +37 -0
- package/dist/chunk-6NS7D73S.mjs +8811 -0
- package/dist/chunk-75IGOQ4N.mjs +3415 -0
- package/dist/chunk-C7T56TJR.mjs +748 -0
- package/dist/chunk-CGNDMLQL.mjs +3813 -0
- package/dist/chunk-DMKKNK76.mjs +3742 -0
- package/dist/chunk-I2WBGEWK.mjs +4512 -0
- package/dist/chunk-KHHFHXXD.mjs +1 -0
- package/dist/events.d.mts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/events.js +11414 -0
- package/dist/events.mjs +41 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25520 -0
- package/dist/index.mjs +978 -0
- package/dist/modals.d.mts +1 -0
- package/dist/modals.d.ts +1 -0
- package/dist/modals.js +7743 -0
- package/dist/modals.mjs +36 -0
- package/dist/pages.d.mts +1 -0
- package/dist/pages.d.ts +1 -0
- package/dist/pages.js +20230 -0
- package/dist/pages.mjs +33 -0
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/primitives.js +8599 -0
- package/dist/primitives.mjs +179 -0
- package/dist/styles.css +2 -0
- package/dist/tailwind.css +2 -0
- package/dist/trading.d.mts +1 -0
- package/dist/trading.d.ts +1 -0
- package/dist/trading.js +8658 -0
- package/dist/trading.mjs +49 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +30 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +30 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +115 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +115 -0
- package/dist/types/auth/connect-button-view/index.d.mts +7 -0
- package/dist/types/auth/connect-button-view/index.d.ts +7 -0
- package/dist/types/auth/index.d.mts +1 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/constants.d.mts +5 -0
- package/dist/types/constants.d.ts +5 -0
- package/dist/types/deposit/components/DepositQRCode.d.mts +12 -0
- package/dist/types/deposit/components/DepositQRCode.d.ts +12 -0
- package/dist/types/deposit/deposit-modal.constants.d.mts +10 -0
- package/dist/types/deposit/deposit-modal.constants.d.ts +10 -0
- package/dist/types/deposit/deposit-modal.types.d.mts +233 -0
- package/dist/types/deposit/deposit-modal.types.d.ts +233 -0
- package/dist/types/deposit/index.d.mts +22 -0
- package/dist/types/deposit/index.d.ts +22 -0
- package/dist/types/deposit/steps/card-deposit.d.mts +17 -0
- package/dist/types/deposit/steps/card-deposit.d.ts +17 -0
- package/dist/types/deposit/steps/card-payment-pending.d.mts +7 -0
- package/dist/types/deposit/steps/card-payment-pending.d.ts +7 -0
- package/dist/types/deposit/steps/card-provider.d.mts +14 -0
- package/dist/types/deposit/steps/card-provider.d.ts +14 -0
- package/dist/types/deposit/steps/card-purchase-success.d.mts +7 -0
- package/dist/types/deposit/steps/card-purchase-success.d.ts +7 -0
- package/dist/types/deposit/steps/card-widget.d.mts +6 -0
- package/dist/types/deposit/steps/card-widget.d.ts +6 -0
- package/dist/types/deposit/steps/crypto-transfer.d.mts +19 -0
- package/dist/types/deposit/steps/crypto-transfer.d.ts +19 -0
- package/dist/types/deposit/steps/deposit-method.d.mts +12 -0
- package/dist/types/deposit/steps/deposit-method.d.ts +12 -0
- package/dist/types/deposit/steps/venue-selection.d.mts +7 -0
- package/dist/types/deposit/steps/venue-selection.d.ts +7 -0
- package/dist/types/deposit/steps/wallet-form.d.mts +24 -0
- package/dist/types/deposit/steps/wallet-form.d.ts +24 -0
- package/dist/types/deposit/steps/wallet-processing.d.mts +7 -0
- package/dist/types/deposit/steps/wallet-processing.d.ts +7 -0
- package/dist/types/deposit/steps/wallet-success.d.mts +7 -0
- package/dist/types/deposit/steps/wallet-success.d.ts +7 -0
- package/dist/types/events/index.d.mts +5 -0
- package/dist/types/events/index.d.ts +5 -0
- package/dist/types/events/item/event-list-item.constants.d.mts +1 -0
- package/dist/types/events/item/event-list-item.constants.d.ts +1 -0
- package/dist/types/events/item/event-list-item.types.d.mts +71 -0
- package/dist/types/events/item/event-list-item.types.d.ts +71 -0
- package/dist/types/events/item/event-list-item.utils.d.mts +46 -0
- package/dist/types/events/item/event-list-item.utils.d.ts +46 -0
- package/dist/types/events/item/index.d.mts +6 -0
- package/dist/types/events/item/index.d.ts +6 -0
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.mts +10 -0
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.ts +10 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.mts +3 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.ts +3 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +116 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +116 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.mts +75 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.ts +75 -0
- package/dist/types/events/item-details/index.d.mts +8 -0
- package/dist/types/events/item-details/index.d.ts +8 -0
- package/dist/types/events/item-details/settlement-summary.d.mts +9 -0
- package/dist/types/events/item-details/settlement-summary.d.ts +9 -0
- package/dist/types/events/list/event-list-tabs.d.mts +44 -0
- package/dist/types/events/list/event-list-tabs.d.ts +44 -0
- package/dist/types/events/list/event-list.constants.d.mts +4 -0
- package/dist/types/events/list/event-list.constants.d.ts +4 -0
- package/dist/types/events/list/event-list.types.d.mts +48 -0
- package/dist/types/events/list/event-list.types.d.ts +48 -0
- package/dist/types/events/list/event-list.utils.d.mts +19 -0
- package/dist/types/events/list/event-list.utils.d.ts +19 -0
- package/dist/types/events/list/index.d.mts +6 -0
- package/dist/types/events/list/index.d.ts +6 -0
- package/dist/types/events/market-details/index.d.mts +12 -0
- package/dist/types/events/market-details/index.d.ts +12 -0
- package/dist/types/events/market-details/market-details-outcome-button.d.mts +13 -0
- package/dist/types/events/market-details/market-details-outcome-button.d.ts +13 -0
- package/dist/types/events/market-details/market-details.constants.d.mts +9 -0
- package/dist/types/events/market-details/market-details.constants.d.ts +9 -0
- package/dist/types/events/market-details/market-details.types.d.mts +143 -0
- package/dist/types/events/market-details/market-details.types.d.ts +143 -0
- package/dist/types/events/market-details/market-details.utils.d.mts +72 -0
- package/dist/types/events/market-details/market-details.utils.d.ts +72 -0
- package/dist/types/events/market-details/orderbook-aggregation.d.mts +30 -0
- package/dist/types/events/market-details/orderbook-aggregation.d.ts +30 -0
- package/dist/types/events/orderbook/index.d.mts +11 -0
- package/dist/types/events/orderbook/index.d.ts +11 -0
- package/dist/types/events/orderbook/orderbook-with-states.d.mts +35 -0
- package/dist/types/events/orderbook/orderbook-with-states.d.ts +35 -0
- package/dist/types/events/orderbook/orderbook.constants.d.mts +10 -0
- package/dist/types/events/orderbook/orderbook.constants.d.ts +10 -0
- package/dist/types/events/orderbook/orderbook.types.d.mts +65 -0
- package/dist/types/events/orderbook/orderbook.types.d.ts +65 -0
- package/dist/types/events/orderbook/orderbook.utils.d.mts +13 -0
- package/dist/types/events/orderbook/orderbook.utils.d.ts +13 -0
- package/dist/types/events/orderbook/use-center-orderbook-spread.d.mts +13 -0
- package/dist/types/events/orderbook/use-center-orderbook-spread.d.ts +13 -0
- package/dist/types/events/shared/chart-venue-selection.d.mts +20 -0
- package/dist/types/events/shared/chart-venue-selection.d.ts +20 -0
- package/dist/types/events/shared/event-trading-state.utils.d.mts +14 -0
- package/dist/types/events/shared/event-trading-state.utils.d.ts +14 -0
- package/dist/types/events/shared/venue-market-cluster.d.mts +11 -0
- package/dist/types/events/shared/venue-market-cluster.d.ts +11 -0
- package/dist/types/geo-block-banner/index.d.mts +12 -0
- package/dist/types/geo-block-banner/index.d.ts +12 -0
- package/dist/types/geo-block-modal/geo-block-modal.types.d.mts +13 -0
- package/dist/types/geo-block-modal/geo-block-modal.types.d.ts +13 -0
- package/dist/types/geo-block-modal/index.d.mts +6 -0
- package/dist/types/geo-block-modal/index.d.ts +6 -0
- package/dist/types/index.d.mts +10 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/modals/index.d.mts +6 -0
- package/dist/types/modals/index.d.ts +6 -0
- package/dist/types/onboarding/index.d.mts +11 -0
- package/dist/types/onboarding/index.d.ts +11 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.mts +10 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.ts +10 -0
- package/dist/types/onboarding/onboarding-modal.types.d.mts +76 -0
- package/dist/types/onboarding/onboarding-modal.types.d.ts +76 -0
- package/dist/types/onboarding/steps/connect-accounts.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-accounts.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.mts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.ts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.mts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.ts +5 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +84 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +84 -0
- package/dist/types/pages/event-market/event-market.utils.d.mts +14 -0
- package/dist/types/pages/event-market/event-market.utils.d.ts +14 -0
- package/dist/types/pages/event-market/index.d.mts +8 -0
- package/dist/types/pages/event-market/index.d.ts +8 -0
- package/dist/types/pages/home/home.constants.d.mts +6 -0
- package/dist/types/pages/home/home.constants.d.ts +6 -0
- package/dist/types/pages/home/home.types.d.mts +85 -0
- package/dist/types/pages/home/home.types.d.ts +85 -0
- package/dist/types/pages/home/home.utils.d.mts +7 -0
- package/dist/types/pages/home/home.utils.d.ts +7 -0
- package/dist/types/pages/home/index.d.mts +9 -0
- package/dist/types/pages/home/index.d.ts +9 -0
- package/dist/types/pages/home/use-home-page-modals.d.mts +32 -0
- package/dist/types/pages/home/use-home-page-modals.d.ts +32 -0
- package/dist/types/pages/home/use-scroll-restoration.d.mts +17 -0
- package/dist/types/pages/home/use-scroll-restoration.d.ts +17 -0
- package/dist/types/pages/index.d.mts +4 -0
- package/dist/types/pages/index.d.ts +4 -0
- package/dist/types/pages/user-profile/chain-display.d.mts +1 -0
- package/dist/types/pages/user-profile/chain-display.d.ts +1 -0
- package/dist/types/pages/user-profile/components/activity-row.d.mts +11 -0
- package/dist/types/pages/user-profile/components/activity-row.d.ts +11 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +18 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +18 -0
- package/dist/types/pages/user-profile/components/balance-display.d.mts +10 -0
- package/dist/types/pages/user-profile/components/balance-display.d.ts +10 -0
- package/dist/types/pages/user-profile/components/balances-card.d.mts +12 -0
- package/dist/types/pages/user-profile/components/balances-card.d.ts +12 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.mts +8 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.ts +8 -0
- package/dist/types/pages/user-profile/components/empty-state.d.mts +10 -0
- package/dist/types/pages/user-profile/components/empty-state.d.ts +10 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.mts +12 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.ts +12 -0
- package/dist/types/pages/user-profile/components/position-row.d.mts +15 -0
- package/dist/types/pages/user-profile/components/position-row.d.ts +15 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +51 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +51 -0
- package/dist/types/pages/user-profile/components/positions-value-card.d.mts +10 -0
- package/dist/types/pages/user-profile/components/positions-value-card.d.ts +10 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +15 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +15 -0
- package/dist/types/pages/user-profile/index.d.mts +10 -0
- package/dist/types/pages/user-profile/index.d.ts +10 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.mts +9 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.ts +9 -0
- package/dist/types/pages/user-profile/user-profile.types.d.mts +281 -0
- package/dist/types/pages/user-profile/user-profile.types.d.ts +281 -0
- package/dist/types/primitives/agg-logo/agg-logo.constants.d.mts +3 -0
- package/dist/types/primitives/agg-logo/agg-logo.constants.d.ts +3 -0
- package/dist/types/primitives/agg-logo/agg-logo.types.d.mts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.types.d.ts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.mts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.ts +2 -0
- package/dist/types/primitives/agg-logo/index.d.mts +7 -0
- package/dist/types/primitives/agg-logo/index.d.ts +7 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.mts +1 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.ts +1 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.mts +26 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.ts +26 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.mts +7 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.ts +7 -0
- package/dist/types/primitives/autocomplete-select/index.d.mts +7 -0
- package/dist/types/primitives/autocomplete-select/index.d.ts +7 -0
- package/dist/types/primitives/badge/badge.constants.d.mts +4 -0
- package/dist/types/primitives/badge/badge.constants.d.ts +4 -0
- package/dist/types/primitives/badge/badge.types.d.mts +27 -0
- package/dist/types/primitives/badge/badge.types.d.ts +27 -0
- package/dist/types/primitives/badge/badge.utils.d.mts +11 -0
- package/dist/types/primitives/badge/badge.utils.d.ts +11 -0
- package/dist/types/primitives/badge/index.d.mts +8 -0
- package/dist/types/primitives/badge/index.d.ts +8 -0
- package/dist/types/primitives/button/button.constants.d.mts +6 -0
- package/dist/types/primitives/button/button.constants.d.ts +6 -0
- package/dist/types/primitives/button/button.types.d.mts +18 -0
- package/dist/types/primitives/button/button.types.d.ts +18 -0
- package/dist/types/primitives/button/button.utils.d.mts +12 -0
- package/dist/types/primitives/button/button.utils.d.ts +12 -0
- package/dist/types/primitives/button/index.d.mts +7 -0
- package/dist/types/primitives/button/index.d.ts +7 -0
- package/dist/types/primitives/card/card.constants.d.mts +4 -0
- package/dist/types/primitives/card/card.constants.d.ts +4 -0
- package/dist/types/primitives/card/card.types.d.mts +8 -0
- package/dist/types/primitives/card/card.types.d.ts +8 -0
- package/dist/types/primitives/card/card.utils.d.mts +8 -0
- package/dist/types/primitives/card/card.utils.d.ts +8 -0
- package/dist/types/primitives/card/index.d.mts +6 -0
- package/dist/types/primitives/card/index.d.ts +6 -0
- package/dist/types/primitives/chart/chart-type-switch.constants.d.mts +2 -0
- package/dist/types/primitives/chart/chart-type-switch.constants.d.ts +2 -0
- package/dist/types/primitives/chart/chart-type-switch.d.mts +7 -0
- package/dist/types/primitives/chart/chart-type-switch.d.ts +7 -0
- package/dist/types/primitives/chart/chart-type-switch.types.d.mts +9 -0
- package/dist/types/primitives/chart/chart-type-switch.types.d.ts +9 -0
- package/dist/types/primitives/chart/chart-type-switch.utils.d.mts +13 -0
- package/dist/types/primitives/chart/chart-type-switch.utils.d.ts +13 -0
- package/dist/types/primitives/chart/chart.constants.d.mts +5 -0
- package/dist/types/primitives/chart/chart.constants.d.ts +5 -0
- package/dist/types/primitives/chart/chart.types.d.mts +59 -0
- package/dist/types/primitives/chart/chart.types.d.ts +59 -0
- package/dist/types/primitives/chart/chart.utils.d.mts +35 -0
- package/dist/types/primitives/chart/chart.utils.d.ts +35 -0
- package/dist/types/primitives/chart/index.d.mts +7 -0
- package/dist/types/primitives/chart/index.d.ts +7 -0
- package/dist/types/primitives/conditional-wrapper.d.mts +11 -0
- package/dist/types/primitives/conditional-wrapper.d.ts +11 -0
- package/dist/types/primitives/currency-input/currency-input.constants.d.mts +6 -0
- package/dist/types/primitives/currency-input/currency-input.constants.d.ts +6 -0
- package/dist/types/primitives/currency-input/currency-input.types.d.mts +36 -0
- package/dist/types/primitives/currency-input/currency-input.types.d.ts +36 -0
- package/dist/types/primitives/currency-input/currency-input.utils.d.mts +10 -0
- package/dist/types/primitives/currency-input/currency-input.utils.d.ts +10 -0
- package/dist/types/primitives/currency-input/index.d.mts +7 -0
- package/dist/types/primitives/currency-input/index.d.ts +7 -0
- package/dist/types/primitives/error-boundary/index.d.mts +24 -0
- package/dist/types/primitives/error-boundary/index.d.ts +24 -0
- package/dist/types/primitives/footer/agg-build-logo.d.mts +16 -0
- package/dist/types/primitives/footer/agg-build-logo.d.ts +16 -0
- package/dist/types/primitives/footer/footer.constants.d.mts +3 -0
- package/dist/types/primitives/footer/footer.constants.d.ts +3 -0
- package/dist/types/primitives/footer/footer.types.d.mts +25 -0
- package/dist/types/primitives/footer/footer.types.d.ts +25 -0
- package/dist/types/primitives/footer/index.d.mts +8 -0
- package/dist/types/primitives/footer/index.d.ts +8 -0
- package/dist/types/primitives/header/agg-logo.d.mts +2 -0
- package/dist/types/primitives/header/agg-logo.d.ts +2 -0
- package/dist/types/primitives/header/header.constants.d.mts +2 -0
- package/dist/types/primitives/header/header.constants.d.ts +2 -0
- package/dist/types/primitives/header/header.types.d.mts +42 -0
- package/dist/types/primitives/header/header.types.d.ts +42 -0
- package/dist/types/primitives/header/header.utils.d.mts +12 -0
- package/dist/types/primitives/header/header.utils.d.ts +12 -0
- package/dist/types/primitives/header/index.d.mts +8 -0
- package/dist/types/primitives/header/index.d.ts +8 -0
- package/dist/types/primitives/icon/icon.constants.d.mts +2 -0
- package/dist/types/primitives/icon/icon.constants.d.ts +2 -0
- package/dist/types/primitives/icon/icon.types.d.mts +12 -0
- package/dist/types/primitives/icon/icon.types.d.ts +12 -0
- package/dist/types/primitives/icon/icon.utils.d.mts +3 -0
- package/dist/types/primitives/icon/icon.utils.d.ts +3 -0
- package/dist/types/primitives/icon/index.d.mts +68 -0
- package/dist/types/primitives/icon/index.d.ts +68 -0
- package/dist/types/primitives/icon/registry.d.mts +286 -0
- package/dist/types/primitives/icon/registry.d.ts +286 -0
- package/dist/types/primitives/icon/svg/activity-chart.d.mts +5 -0
- package/dist/types/primitives/icon/svg/activity-chart.d.ts +5 -0
- package/dist/types/primitives/icon/svg/activity.d.mts +5 -0
- package/dist/types/primitives/icon/svg/activity.d.ts +5 -0
- package/dist/types/primitives/icon/svg/apple.d.mts +5 -0
- package/dist/types/primitives/icon/svg/apple.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arbitrum.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arbitrum.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrow-right.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrow-right.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.ts +5 -0
- package/dist/types/primitives/icon/svg/badge-check-thin.d.mts +5 -0
- package/dist/types/primitives/icon/svg/badge-check-thin.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.ts +5 -0
- package/dist/types/primitives/icon/svg/base.d.mts +5 -0
- package/dist/types/primitives/icon/svg/base.d.ts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.mts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bnb.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bnb.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.mts +6 -0
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.ts +6 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/close.d.mts +5 -0
- package/dist/types/primitives/icon/svg/close.d.ts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.mts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.ts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.mts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.ts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.mts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.ts +5 -0
- package/dist/types/primitives/icon/svg/cross-circle.d.mts +5 -0
- package/dist/types/primitives/icon/svg/cross-circle.d.ts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.mts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.ts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.mts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.ts +5 -0
- package/dist/types/primitives/icon/svg/document.d.mts +5 -0
- package/dist/types/primitives/icon/svg/document.d.ts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.mts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.ts +5 -0
- package/dist/types/primitives/icon/svg/download.d.mts +5 -0
- package/dist/types/primitives/icon/svg/download.d.ts +5 -0
- package/dist/types/primitives/icon/svg/email.d.mts +5 -0
- package/dist/types/primitives/icon/svg/email.d.ts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.mts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.ts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.mts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.ts +5 -0
- package/dist/types/primitives/icon/svg/google.d.mts +5 -0
- package/dist/types/primitives/icon/svg/google.d.ts +5 -0
- package/dist/types/primitives/icon/svg/image.d.mts +5 -0
- package/dist/types/primitives/icon/svg/image.d.ts +5 -0
- package/dist/types/primitives/icon/svg/info.d.mts +5 -0
- package/dist/types/primitives/icon/svg/info.d.ts +5 -0
- package/dist/types/primitives/icon/svg/internet-security.d.mts +5 -0
- package/dist/types/primitives/icon/svg/internet-security.d.ts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.mts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.ts +5 -0
- package/dist/types/primitives/icon/svg/paper-plane.d.mts +5 -0
- package/dist/types/primitives/icon/svg/paper-plane.d.ts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.mts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.ts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.mts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.ts +5 -0
- package/dist/types/primitives/icon/svg/polygon.d.mts +5 -0
- package/dist/types/primitives/icon/svg/polygon.d.ts +5 -0
- package/dist/types/primitives/icon/svg/profile-about-tab.d.mts +6 -0
- package/dist/types/primitives/icon/svg/profile-about-tab.d.ts +6 -0
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.mts +6 -0
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.ts +6 -0
- package/dist/types/primitives/icon/svg/profile.d.mts +5 -0
- package/dist/types/primitives/icon/svg/profile.d.ts +5 -0
- package/dist/types/primitives/icon/svg/quotes-warning.d.mts +6 -0
- package/dist/types/primitives/icon/svg/quotes-warning.d.ts +6 -0
- package/dist/types/primitives/icon/svg/recenter.d.mts +5 -0
- package/dist/types/primitives/icon/svg/recenter.d.ts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/search.d.mts +5 -0
- package/dist/types/primitives/icon/svg/search.d.ts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.mts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.ts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.mts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.ts +5 -0
- package/dist/types/primitives/icon/svg/sparkles-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/sparkles-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.mts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.ts +5 -0
- package/dist/types/primitives/icon/svg/success-check.d.mts +5 -0
- package/dist/types/primitives/icon/svg/success-check.d.ts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.mts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.mts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.ts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.mts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.ts +5 -0
- package/dist/types/primitives/icon/svg/usdc.d.mts +5 -0
- package/dist/types/primitives/icon/svg/usdc.d.ts +5 -0
- package/dist/types/primitives/icon/svg/user-trust.d.mts +5 -0
- package/dist/types/primitives/icon/svg/user-trust.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.ts +5 -0
- package/dist/types/primitives/icon/types.d.mts +6 -0
- package/dist/types/primitives/icon/types.d.ts +6 -0
- package/dist/types/primitives/index.d.mts +25 -0
- package/dist/types/primitives/index.d.ts +25 -0
- package/dist/types/primitives/inline-alert/index.d.mts +7 -0
- package/dist/types/primitives/inline-alert/index.d.ts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.constants.d.mts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.constants.d.ts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.types.d.mts +24 -0
- package/dist/types/primitives/inline-alert/inline-alert.types.d.ts +24 -0
- package/dist/types/primitives/inline-alert/inline-alert.utils.d.mts +10 -0
- package/dist/types/primitives/inline-alert/inline-alert.utils.d.ts +10 -0
- package/dist/types/primitives/loading-icon/index.d.mts +7 -0
- package/dist/types/primitives/loading-icon/index.d.ts +7 -0
- package/dist/types/primitives/loading-icon/loading-icon.constants.d.mts +11 -0
- package/dist/types/primitives/loading-icon/loading-icon.constants.d.ts +11 -0
- package/dist/types/primitives/loading-icon/loading-icon.types.d.mts +15 -0
- package/dist/types/primitives/loading-icon/loading-icon.types.d.ts +15 -0
- package/dist/types/primitives/loading-icon/loading-icon.utils.d.mts +5 -0
- package/dist/types/primitives/loading-icon/loading-icon.utils.d.ts +5 -0
- package/dist/types/primitives/modal/index.d.mts +11 -0
- package/dist/types/primitives/modal/index.d.ts +11 -0
- package/dist/types/primitives/modal/modal.constants.d.mts +2 -0
- package/dist/types/primitives/modal/modal.constants.d.ts +2 -0
- package/dist/types/primitives/modal/modal.types.d.mts +78 -0
- package/dist/types/primitives/modal/modal.types.d.ts +78 -0
- package/dist/types/primitives/modal/modal.utils.d.mts +8 -0
- package/dist/types/primitives/modal/modal.utils.d.ts +8 -0
- package/dist/types/primitives/number-value.d.mts +12 -0
- package/dist/types/primitives/number-value.d.ts +12 -0
- package/dist/types/primitives/remote-image/index.d.mts +7 -0
- package/dist/types/primitives/remote-image/index.d.ts +7 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.mts +28 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.ts +28 -0
- package/dist/types/primitives/remote-image/remote-image.utils.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.utils.d.ts +4 -0
- package/dist/types/primitives/search/index.d.mts +7 -0
- package/dist/types/primitives/search/index.d.ts +7 -0
- package/dist/types/primitives/search/search-empty-icon.d.mts +5 -0
- package/dist/types/primitives/search/search-empty-icon.d.ts +5 -0
- package/dist/types/primitives/search/search.constants.d.mts +3 -0
- package/dist/types/primitives/search/search.constants.d.ts +3 -0
- package/dist/types/primitives/search/search.types.d.mts +57 -0
- package/dist/types/primitives/search/search.types.d.ts +57 -0
- package/dist/types/primitives/search/search.utils.d.mts +4 -0
- package/dist/types/primitives/search/search.utils.d.ts +4 -0
- package/dist/types/primitives/select/index.d.mts +7 -0
- package/dist/types/primitives/select/index.d.ts +7 -0
- package/dist/types/primitives/select/select.constants.d.mts +1 -0
- package/dist/types/primitives/select/select.constants.d.ts +1 -0
- package/dist/types/primitives/select/select.types.d.mts +25 -0
- package/dist/types/primitives/select/select.types.d.ts +25 -0
- package/dist/types/primitives/select/select.utils.d.mts +9 -0
- package/dist/types/primitives/select/select.utils.d.ts +9 -0
- package/dist/types/primitives/skeleton/index.d.mts +8 -0
- package/dist/types/primitives/skeleton/index.d.ts +8 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.mts +8 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.ts +8 -0
- package/dist/types/primitives/skeleton/skeleton.constants.d.mts +1 -0
- package/dist/types/primitives/skeleton/skeleton.constants.d.ts +1 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.mts +27 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.ts +27 -0
- package/dist/types/primitives/skeleton/skeleton.utils.d.mts +3 -0
- package/dist/types/primitives/skeleton/skeleton.utils.d.ts +3 -0
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.mts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.ts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.mts +12 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.ts +12 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/state-message/index.d.mts +7 -0
- package/dist/types/primitives/state-message/index.d.ts +7 -0
- package/dist/types/primitives/state-message/state-message.constants.d.mts +1 -0
- package/dist/types/primitives/state-message/state-message.constants.d.ts +1 -0
- package/dist/types/primitives/state-message/state-message.types.d.mts +24 -0
- package/dist/types/primitives/state-message/state-message.types.d.ts +24 -0
- package/dist/types/primitives/state-message/state-message.utils.d.mts +4 -0
- package/dist/types/primitives/state-message/state-message.utils.d.ts +4 -0
- package/dist/types/primitives/switch-button/index.d.mts +7 -0
- package/dist/types/primitives/switch-button/index.d.ts +7 -0
- package/dist/types/primitives/switch-button/switch-button.constants.d.mts +5 -0
- package/dist/types/primitives/switch-button/switch-button.constants.d.ts +5 -0
- package/dist/types/primitives/switch-button/switch-button.types.d.mts +19 -0
- package/dist/types/primitives/switch-button/switch-button.types.d.ts +19 -0
- package/dist/types/primitives/switch-button/switch-button.utils.d.mts +7 -0
- package/dist/types/primitives/switch-button/switch-button.utils.d.ts +7 -0
- package/dist/types/primitives/tabs/index.d.mts +7 -0
- package/dist/types/primitives/tabs/index.d.ts +7 -0
- package/dist/types/primitives/tabs/tabs.constants.d.mts +1 -0
- package/dist/types/primitives/tabs/tabs.constants.d.ts +1 -0
- package/dist/types/primitives/tabs/tabs.types.d.mts +36 -0
- package/dist/types/primitives/tabs/tabs.types.d.ts +36 -0
- package/dist/types/primitives/tabs/tabs.utils.d.mts +15 -0
- package/dist/types/primitives/tabs/tabs.utils.d.ts +15 -0
- package/dist/types/primitives/tooltip/index.d.mts +7 -0
- package/dist/types/primitives/tooltip/index.d.ts +7 -0
- package/dist/types/primitives/tooltip/tooltip.constants.d.mts +3 -0
- package/dist/types/primitives/tooltip/tooltip.constants.d.ts +3 -0
- package/dist/types/primitives/tooltip/tooltip.types.d.mts +27 -0
- package/dist/types/primitives/tooltip/tooltip.types.d.ts +27 -0
- package/dist/types/primitives/tooltip/tooltip.utils.d.mts +7 -0
- package/dist/types/primitives/tooltip/tooltip.utils.d.ts +7 -0
- package/dist/types/primitives/typography/index.d.mts +8 -0
- package/dist/types/primitives/typography/index.d.ts +8 -0
- package/dist/types/primitives/typography/typography.constants.d.mts +3 -0
- package/dist/types/primitives/typography/typography.constants.d.ts +3 -0
- package/dist/types/primitives/typography/typography.types.d.mts +12 -0
- package/dist/types/primitives/typography/typography.types.d.ts +12 -0
- package/dist/types/primitives/typography/typography.utils.d.mts +6 -0
- package/dist/types/primitives/typography/typography.utils.d.ts +6 -0
- package/dist/types/primitives/venue-logo/index.d.mts +9 -0
- package/dist/types/primitives/venue-logo/index.d.ts +9 -0
- package/dist/types/primitives/venue-logo/logo-props.d.mts +10 -0
- package/dist/types/primitives/venue-logo/logo-props.d.ts +10 -0
- package/dist/types/primitives/venue-logo/svg/default-venue.d.mts +2 -0
- package/dist/types/primitives/venue-logo/svg/default-venue.d.ts +2 -0
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.ts +5 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.mts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +24 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +24 -0
- package/dist/types/primitives/venue-logo/venue-logo.utils.d.mts +13 -0
- package/dist/types/primitives/venue-logo/venue-logo.utils.d.ts +13 -0
- package/dist/types/profile/index.d.mts +6 -0
- package/dist/types/profile/index.d.ts +6 -0
- package/dist/types/profile/profile-modal.constants.d.mts +17 -0
- package/dist/types/profile/profile-modal.constants.d.ts +17 -0
- package/dist/types/profile/profile-modal.types.d.mts +84 -0
- package/dist/types/profile/profile-modal.types.d.ts +84 -0
- package/dist/types/profile/tabs/about-tab.d.mts +18 -0
- package/dist/types/profile/tabs/about-tab.d.ts +18 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +33 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +33 -0
- package/dist/types/shared/constants.d.mts +33 -0
- package/dist/types/shared/constants.d.ts +33 -0
- package/dist/types/shared/deposit-modal-events.d.mts +4 -0
- package/dist/types/shared/deposit-modal-events.d.ts +4 -0
- package/dist/types/shared/query-error.d.mts +2 -0
- package/dist/types/shared/query-error.d.ts +2 -0
- package/dist/types/shared/types.d.mts +1 -0
- package/dist/types/shared/types.d.ts +1 -0
- package/dist/types/shared/utils.d.mts +15 -0
- package/dist/types/shared/utils.d.ts +15 -0
- package/dist/types/trading/index.d.mts +7 -0
- package/dist/types/trading/index.d.ts +7 -0
- package/dist/types/trading/place-order/index.d.mts +10 -0
- package/dist/types/trading/place-order/index.d.ts +10 -0
- package/dist/types/trading/place-order/index.place-order.constants.d.mts +18 -0
- package/dist/types/trading/place-order/index.place-order.constants.d.ts +18 -0
- package/dist/types/trading/place-order/index.place-order.failure.d.mts +14 -0
- package/dist/types/trading/place-order/index.place-order.failure.d.ts +14 -0
- package/dist/types/trading/place-order/index.place-order.success.d.mts +12 -0
- package/dist/types/trading/place-order/index.place-order.success.d.ts +12 -0
- package/dist/types/trading/place-order/index.place-order.types.d.mts +192 -0
- package/dist/types/trading/place-order/index.place-order.types.d.ts +192 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +100 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +100 -0
- package/dist/types/trading/settlement/index.d.mts +12 -0
- package/dist/types/trading/settlement/index.d.ts +12 -0
- package/dist/types/trading/settlement/settlement-details.d.mts +8 -0
- package/dist/types/trading/settlement/settlement-details.d.ts +8 -0
- package/dist/types/trading/settlement/settlement-details.utils.d.mts +7 -0
- package/dist/types/trading/settlement/settlement-details.utils.d.ts +7 -0
- package/dist/types/trading/trading-context/index.d.mts +2 -0
- package/dist/types/trading/trading-context/index.d.ts +2 -0
- package/dist/types/trading/types.d.mts +82 -0
- package/dist/types/trading/types.d.ts +82 -0
- package/dist/types/trading/use-kalshi-kyc-flow.d.mts +22 -0
- package/dist/types/trading/use-kalshi-kyc-flow.d.ts +22 -0
- package/dist/types/trading/utils.d.mts +16 -0
- package/dist/types/trading/utils.d.ts +16 -0
- package/dist/types/withdraw/index.d.mts +6 -0
- package/dist/types/withdraw/index.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +17 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +17 -0
- package/dist/types/withdraw/steps/withdraw-method.d.mts +6 -0
- package/dist/types/withdraw/steps/withdraw-method.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-provider.d.mts +10 -0
- package/dist/types/withdraw/steps/withdraw-provider.d.ts +10 -0
- package/dist/types/withdraw/steps/withdraw-success.d.mts +7 -0
- package/dist/types/withdraw/steps/withdraw-success.d.ts +7 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.mts +5 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.ts +5 -0
- package/dist/types/withdraw/withdraw-modal.types.d.mts +64 -0
- package/dist/types/withdraw/withdraw-modal.types.d.ts +64 -0
- package/package.json +128 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { EventTradingState, VenueMarket } from "@agg-build/hooks";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { VenueLogoName } from "../../primitives/venue-logo/venue-logo.types";
|
|
4
|
+
export type MarketDetailsTab = "order-book" | "graph" | "other";
|
|
5
|
+
export type MarketDetailsClassNames = Partial<{
|
|
6
|
+
root: string;
|
|
7
|
+
header: string;
|
|
8
|
+
tabs: string;
|
|
9
|
+
content: string;
|
|
10
|
+
orderBook: string;
|
|
11
|
+
graph: string;
|
|
12
|
+
footer: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type MarketDetailsBaseProps = {
|
|
15
|
+
/** Market ID used to fetch or match the active market details. */
|
|
16
|
+
marketId?: string;
|
|
17
|
+
/** Title shown in the market details header. */
|
|
18
|
+
title?: string;
|
|
19
|
+
/** Optional image shown alongside the market header content. */
|
|
20
|
+
image?: string | null;
|
|
21
|
+
/** Whether the accordion item should start opened. */
|
|
22
|
+
defaultIsOpened?: boolean;
|
|
23
|
+
/** Controlled open state for the market details accordion item. */
|
|
24
|
+
isOpened?: boolean;
|
|
25
|
+
/** Called when the market details accordion is opened. */
|
|
26
|
+
onOpenChange?: (marketId: string) => void;
|
|
27
|
+
/** Called when the market details surface is clicked. */
|
|
28
|
+
onClick?: (market?: VenueMarket) => void;
|
|
29
|
+
/** Default tab shown when the details open. */
|
|
30
|
+
defaultTab?: MarketDetailsTab;
|
|
31
|
+
/** Default outcome label used for order book and graph context. */
|
|
32
|
+
defaultOutcomeLabel?: string;
|
|
33
|
+
/** Number of order book rows to show per side. */
|
|
34
|
+
orderBookDepth?: number;
|
|
35
|
+
/** Accessible label applied to the market details surface. */
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/** Class name overrides for market details layout slots. */
|
|
38
|
+
classNames?: MarketDetailsClassNames;
|
|
39
|
+
/** Custom content rendered in the "other" tab. */
|
|
40
|
+
otherContent?: React.ReactNode;
|
|
41
|
+
/** Whether the market details should render a loading state. */
|
|
42
|
+
isLoading?: boolean;
|
|
43
|
+
/** Override live WS subscriptions for chart and orderbook hooks.
|
|
44
|
+
* Set to `false` when a parent component already manages subscriptions
|
|
45
|
+
* (e.g. useEventOrderbookData on the event page).
|
|
46
|
+
* Defaults to the global `enableLiveUpdates` feature flag. */
|
|
47
|
+
live?: boolean;
|
|
48
|
+
};
|
|
49
|
+
export type MarketDetailsLoadingProps = MarketDetailsBaseProps & {
|
|
50
|
+
/** Forces the market details component into its loading state. */
|
|
51
|
+
isLoading: true;
|
|
52
|
+
/** Prevents passing prefetched markets while loading. */
|
|
53
|
+
venueMarkets?: never;
|
|
54
|
+
/** Legacy event prop is not supported in loading mode. */
|
|
55
|
+
event?: never;
|
|
56
|
+
/** Optional event ID used to fetch market details while loading. */
|
|
57
|
+
eventId?: string;
|
|
58
|
+
};
|
|
59
|
+
export type MarketDetailsWithMarketsProps = MarketDetailsBaseProps & {
|
|
60
|
+
/** Venue markets to display. Replaces the old event-based data source. */
|
|
61
|
+
venueMarkets: VenueMarket[];
|
|
62
|
+
/** Legacy event prop is intentionally unsupported. */
|
|
63
|
+
event?: never;
|
|
64
|
+
/** Prevents mixing prefetched markets with event ID fetching. */
|
|
65
|
+
eventId?: never;
|
|
66
|
+
/** Marks the market details component as loaded. */
|
|
67
|
+
isLoading?: false;
|
|
68
|
+
/**
|
|
69
|
+
* Optional REST midpoints keyed by outcome id. Used as a fallback when the
|
|
70
|
+
* live (WebSocket) cache has no data for an outcome — typically because the
|
|
71
|
+
* card is not the selected market and therefore isn't on the WS feed.
|
|
72
|
+
*/
|
|
73
|
+
midpointsFallback?: Map<string, number>;
|
|
74
|
+
};
|
|
75
|
+
export type MarketDetailsProps = MarketDetailsLoadingProps | MarketDetailsWithMarketsProps;
|
|
76
|
+
export type MarketDetailsContentProps = MarketDetailsBaseProps & {
|
|
77
|
+
/** Prefetched venue markets rendered by the content component. */
|
|
78
|
+
venueMarkets: VenueMarket[];
|
|
79
|
+
/** See MarketDetailsWithMarketsProps.midpointsFallback. */
|
|
80
|
+
midpointsFallback?: Map<string, number>;
|
|
81
|
+
};
|
|
82
|
+
export type MarketDetailsListClassNames = Partial<{
|
|
83
|
+
root: string;
|
|
84
|
+
item: string;
|
|
85
|
+
}>;
|
|
86
|
+
export type MarketDetailsListProps = {
|
|
87
|
+
/** Venue event ID to fetch all markets for. */
|
|
88
|
+
eventId?: string;
|
|
89
|
+
/** Prefetched markets to render instead of fetching by event ID. */
|
|
90
|
+
markets?: VenueMarket[];
|
|
91
|
+
/** Shared event-level trading state passed from the page when already derived. */
|
|
92
|
+
eventTradingState?: EventTradingState;
|
|
93
|
+
/** Called when the expanded market changes. */
|
|
94
|
+
onExpandedMarketChange?: (marketId: string | null) => void;
|
|
95
|
+
/** Called when a market is clicked. */
|
|
96
|
+
onClick?: (market: VenueMarket) => void;
|
|
97
|
+
/** Default tab to display. */
|
|
98
|
+
defaultTab?: MarketDetailsTab;
|
|
99
|
+
/** Class names for the market details list. */
|
|
100
|
+
classNames?: MarketDetailsListClassNames;
|
|
101
|
+
/** Override live WS subscriptions for child MarketDetails.
|
|
102
|
+
* Set to `false` when a parent manages subscriptions centrally. */
|
|
103
|
+
live?: boolean;
|
|
104
|
+
};
|
|
105
|
+
export type MarketDetailsOrderBookTone = "positive" | "negative";
|
|
106
|
+
export type MarketDetailsOutcomeTone = MarketDetailsOrderBookTone;
|
|
107
|
+
export type MarketDetailsHeaderOutcomeItem = {
|
|
108
|
+
id: string;
|
|
109
|
+
label: string;
|
|
110
|
+
probability: number | undefined;
|
|
111
|
+
tone: MarketDetailsOutcomeTone;
|
|
112
|
+
venue: VenueLogoName;
|
|
113
|
+
};
|
|
114
|
+
export type MarketDetailsOrderBookRow = {
|
|
115
|
+
id: string;
|
|
116
|
+
venues: VenueLogoName[];
|
|
117
|
+
price: number;
|
|
118
|
+
size: number;
|
|
119
|
+
total: number;
|
|
120
|
+
tone: MarketDetailsOrderBookTone;
|
|
121
|
+
barScale: number;
|
|
122
|
+
venueBreakdown?: Partial<Record<VenueLogoName, number>>;
|
|
123
|
+
sourceOutcomeIds?: string[];
|
|
124
|
+
};
|
|
125
|
+
export type MarketDetailsMetaRow = {
|
|
126
|
+
label: string;
|
|
127
|
+
value: string;
|
|
128
|
+
};
|
|
129
|
+
export type UnifiedOrderBookEntry = {
|
|
130
|
+
kind: "ask";
|
|
131
|
+
row: MarketDetailsOrderBookRow;
|
|
132
|
+
cumulativeDepth: number;
|
|
133
|
+
unifiedBarScale: number;
|
|
134
|
+
} | {
|
|
135
|
+
kind: "bid";
|
|
136
|
+
row: MarketDetailsOrderBookRow;
|
|
137
|
+
cumulativeDepth: number;
|
|
138
|
+
unifiedBarScale: number;
|
|
139
|
+
} | {
|
|
140
|
+
kind: "spread";
|
|
141
|
+
midPrice: number | null;
|
|
142
|
+
spread: number | null;
|
|
143
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { AggUiLabels, MarketOrderbookData, VenueMarket } from "@agg-build/hooks";
|
|
2
|
+
import { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveCanonicalMarketId, resolveMarketChartDisplaySeries, resolveMarketChartLiveState, resolveMarketChartVenueSeries, resolveOutcomesByVenue, resolveSeriesColor, scaledCandlesToLineChartPoints } from "../item-details/event-list-item-details.utils";
|
|
3
|
+
import { resolveOutcomeTitle } from "../item/event-list-item.utils";
|
|
4
|
+
import type { OrderbookRowData } from "../orderbook/orderbook.types";
|
|
5
|
+
import type { MarketDetailsHeaderOutcomeItem, MarketDetailsMetaRow, MarketDetailsOrderBookTone, MarketDetailsTab } from "./market-details.types";
|
|
6
|
+
export { formatProbabilityCents, resolveOrderBookRows, resolveUnifiedOrderBookEntries, } from "../orderbook/orderbook.utils";
|
|
7
|
+
/**
|
|
8
|
+
* Converts aggregated orderbook data (from `useMarketOrderbook`) into presentational
|
|
9
|
+
* `OrderbookRowData[]` for the `Orderbook` component.
|
|
10
|
+
*
|
|
11
|
+
* Each `AggregatedOrderbookLevel` has a `venues` map (venue → size). We keep all
|
|
12
|
+
* contributing venues so the row can display multiple logos.
|
|
13
|
+
*/
|
|
14
|
+
export declare const resolveAggregatedOrderBookRows: ({ orderbookData, side, }: {
|
|
15
|
+
orderbookData: MarketOrderbookData | null | undefined;
|
|
16
|
+
side: "asks" | "bids";
|
|
17
|
+
}) => OrderbookRowData[];
|
|
18
|
+
export declare const resolveInitialTab: (defaultTab: MarketDetailsTab | undefined) => MarketDetailsTab;
|
|
19
|
+
export type ResolvedMarket = {
|
|
20
|
+
id: string;
|
|
21
|
+
venueMarkets: VenueMarket[];
|
|
22
|
+
volume: number | null | undefined;
|
|
23
|
+
status?: string;
|
|
24
|
+
startDate?: string | null;
|
|
25
|
+
endDate?: string | null;
|
|
26
|
+
creationDate?: string | null;
|
|
27
|
+
question: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Build a ResolvedMarket from a flat array of venue markets.
|
|
31
|
+
* When `marketId` is provided, resolves the full logical match cluster for that market.
|
|
32
|
+
* When `marketId` is omitted, uses all provided markets.
|
|
33
|
+
*/
|
|
34
|
+
export declare const resolveMarketFromVenueMarkets: (venueMarkets: VenueMarket[], marketId: string | undefined) => ResolvedMarket | undefined;
|
|
35
|
+
export declare const resolveDisplayOutcomeLabels: (labels: string[]) => string[];
|
|
36
|
+
export declare const resolveInitialOutcomeLabel: (labels: string[], defaultOutcomeLabel: string | undefined) => string | undefined;
|
|
37
|
+
export declare const resolveScopedSelectedOutcome: ({ venueMarkets, selectedOutcomeId, defaultOutcomeLabel, }: {
|
|
38
|
+
venueMarkets: VenueMarket[];
|
|
39
|
+
selectedOutcomeId: string | null | undefined;
|
|
40
|
+
defaultOutcomeLabel: string | undefined;
|
|
41
|
+
}) => {
|
|
42
|
+
outcomeId: string | null;
|
|
43
|
+
outcomeLabel: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
export declare const resolveAverageProbabilityByLabel: (venueMarkets: VenueMarket[], labels: string[]) => Map<string, number | undefined>;
|
|
46
|
+
export declare const formatProbabilityPercent: (value: number | null | undefined, formatPercent?: (value: number) => string) => string;
|
|
47
|
+
export declare const resolveOutcomeTone: (label: string, index: number) => MarketDetailsOrderBookTone;
|
|
48
|
+
export declare const resolveHeaderOutcomeItems: (venueMarkets: VenueMarket[]) => MarketDetailsHeaderOutcomeItem[];
|
|
49
|
+
export declare const resolveSubtitle: ({ venueMarkets, volume, formatCompactCurrency, labels, }: {
|
|
50
|
+
venueMarkets: VenueMarket[];
|
|
51
|
+
volume: number | undefined;
|
|
52
|
+
formatCompactCurrency: (value: number) => string;
|
|
53
|
+
labels: AggUiLabels;
|
|
54
|
+
}) => string;
|
|
55
|
+
export declare const resolveOtherTabRows: (market: ResolvedMarket, labels: AggUiLabels) => MarketDetailsMetaRow[];
|
|
56
|
+
export declare const buildMarketDetailsModel: ({ venueMarkets, marketId, title, image, formatCompactCurrency, labels, }: {
|
|
57
|
+
venueMarkets: VenueMarket[];
|
|
58
|
+
marketId: string | undefined;
|
|
59
|
+
title: string | undefined;
|
|
60
|
+
image: string | null | undefined;
|
|
61
|
+
formatCompactCurrency: (value: number) => string;
|
|
62
|
+
labels: AggUiLabels;
|
|
63
|
+
}) => {
|
|
64
|
+
market: ResolvedMarket;
|
|
65
|
+
primaryVenueMarket: VenueMarket;
|
|
66
|
+
title: string;
|
|
67
|
+
image: string | undefined;
|
|
68
|
+
subtitle: string;
|
|
69
|
+
outcomeLabels: string[];
|
|
70
|
+
probabilityByLabel: Map<string, number | undefined>;
|
|
71
|
+
} | undefined;
|
|
72
|
+
export { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveCanonicalMarketId, resolveMarketChartDisplaySeries, resolveMarketChartLiveState, resolveMarketChartVenueSeries, resolveOutcomesByVenue, resolveOutcomeTitle, resolveSeriesColor, scaledCandlesToLineChartPoints, };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { AggUiLabels, MarketOrderbookData, VenueMarket } from "@agg-build/hooks";
|
|
2
|
+
import { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveCanonicalMarketId, resolveMarketChartDisplaySeries, resolveMarketChartLiveState, resolveMarketChartVenueSeries, resolveOutcomesByVenue, resolveSeriesColor, scaledCandlesToLineChartPoints } from "../item-details/event-list-item-details.utils";
|
|
3
|
+
import { resolveOutcomeTitle } from "../item/event-list-item.utils";
|
|
4
|
+
import type { OrderbookRowData } from "../orderbook/orderbook.types";
|
|
5
|
+
import type { MarketDetailsHeaderOutcomeItem, MarketDetailsMetaRow, MarketDetailsOrderBookTone, MarketDetailsTab } from "./market-details.types";
|
|
6
|
+
export { formatProbabilityCents, resolveOrderBookRows, resolveUnifiedOrderBookEntries, } from "../orderbook/orderbook.utils";
|
|
7
|
+
/**
|
|
8
|
+
* Converts aggregated orderbook data (from `useMarketOrderbook`) into presentational
|
|
9
|
+
* `OrderbookRowData[]` for the `Orderbook` component.
|
|
10
|
+
*
|
|
11
|
+
* Each `AggregatedOrderbookLevel` has a `venues` map (venue → size). We keep all
|
|
12
|
+
* contributing venues so the row can display multiple logos.
|
|
13
|
+
*/
|
|
14
|
+
export declare const resolveAggregatedOrderBookRows: ({ orderbookData, side, }: {
|
|
15
|
+
orderbookData: MarketOrderbookData | null | undefined;
|
|
16
|
+
side: "asks" | "bids";
|
|
17
|
+
}) => OrderbookRowData[];
|
|
18
|
+
export declare const resolveInitialTab: (defaultTab: MarketDetailsTab | undefined) => MarketDetailsTab;
|
|
19
|
+
export type ResolvedMarket = {
|
|
20
|
+
id: string;
|
|
21
|
+
venueMarkets: VenueMarket[];
|
|
22
|
+
volume: number | null | undefined;
|
|
23
|
+
status?: string;
|
|
24
|
+
startDate?: string | null;
|
|
25
|
+
endDate?: string | null;
|
|
26
|
+
creationDate?: string | null;
|
|
27
|
+
question: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Build a ResolvedMarket from a flat array of venue markets.
|
|
31
|
+
* When `marketId` is provided, resolves the full logical match cluster for that market.
|
|
32
|
+
* When `marketId` is omitted, uses all provided markets.
|
|
33
|
+
*/
|
|
34
|
+
export declare const resolveMarketFromVenueMarkets: (venueMarkets: VenueMarket[], marketId: string | undefined) => ResolvedMarket | undefined;
|
|
35
|
+
export declare const resolveDisplayOutcomeLabels: (labels: string[]) => string[];
|
|
36
|
+
export declare const resolveInitialOutcomeLabel: (labels: string[], defaultOutcomeLabel: string | undefined) => string | undefined;
|
|
37
|
+
export declare const resolveScopedSelectedOutcome: ({ venueMarkets, selectedOutcomeId, defaultOutcomeLabel, }: {
|
|
38
|
+
venueMarkets: VenueMarket[];
|
|
39
|
+
selectedOutcomeId: string | null | undefined;
|
|
40
|
+
defaultOutcomeLabel: string | undefined;
|
|
41
|
+
}) => {
|
|
42
|
+
outcomeId: string | null;
|
|
43
|
+
outcomeLabel: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
export declare const resolveAverageProbabilityByLabel: (venueMarkets: VenueMarket[], labels: string[]) => Map<string, number | undefined>;
|
|
46
|
+
export declare const formatProbabilityPercent: (value: number | null | undefined, formatPercent?: (value: number) => string) => string;
|
|
47
|
+
export declare const resolveOutcomeTone: (label: string, index: number) => MarketDetailsOrderBookTone;
|
|
48
|
+
export declare const resolveHeaderOutcomeItems: (venueMarkets: VenueMarket[]) => MarketDetailsHeaderOutcomeItem[];
|
|
49
|
+
export declare const resolveSubtitle: ({ venueMarkets, volume, formatCompactCurrency, labels, }: {
|
|
50
|
+
venueMarkets: VenueMarket[];
|
|
51
|
+
volume: number | undefined;
|
|
52
|
+
formatCompactCurrency: (value: number) => string;
|
|
53
|
+
labels: AggUiLabels;
|
|
54
|
+
}) => string;
|
|
55
|
+
export declare const resolveOtherTabRows: (market: ResolvedMarket, labels: AggUiLabels) => MarketDetailsMetaRow[];
|
|
56
|
+
export declare const buildMarketDetailsModel: ({ venueMarkets, marketId, title, image, formatCompactCurrency, labels, }: {
|
|
57
|
+
venueMarkets: VenueMarket[];
|
|
58
|
+
marketId: string | undefined;
|
|
59
|
+
title: string | undefined;
|
|
60
|
+
image: string | null | undefined;
|
|
61
|
+
formatCompactCurrency: (value: number) => string;
|
|
62
|
+
labels: AggUiLabels;
|
|
63
|
+
}) => {
|
|
64
|
+
market: ResolvedMarket;
|
|
65
|
+
primaryVenueMarket: VenueMarket;
|
|
66
|
+
title: string;
|
|
67
|
+
image: string | undefined;
|
|
68
|
+
subtitle: string;
|
|
69
|
+
outcomeLabels: string[];
|
|
70
|
+
probabilityByLabel: Map<string, number | undefined>;
|
|
71
|
+
} | undefined;
|
|
72
|
+
export { buildPriceHistoryGroups, formatXAxisDateLabel, getTimeWindowByRange, resolveCanonicalMarketId, resolveMarketChartDisplaySeries, resolveMarketChartLiveState, resolveMarketChartVenueSeries, resolveOutcomesByVenue, resolveOutcomeTitle, resolveSeriesColor, scaledCandlesToLineChartPoints, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type MarketOrderbookData, type VenueMarket, type VenueMarketOutcome } from "@agg-build/hooks";
|
|
2
|
+
import type { OrderbookRowData } from "../orderbook";
|
|
3
|
+
export type EligibleVenueOutcome = {
|
|
4
|
+
venue: VenueMarket["venue"];
|
|
5
|
+
market: VenueMarket;
|
|
6
|
+
outcome: VenueMarketOutcome;
|
|
7
|
+
outcomeId: string;
|
|
8
|
+
semanticLabel: string;
|
|
9
|
+
};
|
|
10
|
+
export type AggregatedOrderbookRows = {
|
|
11
|
+
askRows: OrderbookRowData[];
|
|
12
|
+
bidRows: OrderbookRowData[];
|
|
13
|
+
midpoint: number | null;
|
|
14
|
+
spread: number | null;
|
|
15
|
+
hasNoOrderBook: boolean;
|
|
16
|
+
includedOutcomeIds: string[];
|
|
17
|
+
missingOutcomeIds: string[];
|
|
18
|
+
};
|
|
19
|
+
export declare const collectEligibleVenueOutcomes: ({ venueMarkets, selectedOutcomeLabel, }: {
|
|
20
|
+
venueMarkets: VenueMarket[];
|
|
21
|
+
selectedOutcomeLabel: string | null | undefined;
|
|
22
|
+
}) => EligibleVenueOutcome[];
|
|
23
|
+
export declare const collectEligibleVenueOutcomeIds: ({ venueMarkets, selectedOutcomeLabel, }: {
|
|
24
|
+
venueMarkets: VenueMarket[];
|
|
25
|
+
selectedOutcomeLabel: string | null | undefined;
|
|
26
|
+
}) => string[];
|
|
27
|
+
export declare const mergeVenueOutcomeOrderbooks: ({ eligibleOutcomes, orderbooksByOutcomeId, }: {
|
|
28
|
+
eligibleOutcomes: EligibleVenueOutcome[];
|
|
29
|
+
orderbooksByOutcomeId: Record<string, MarketOrderbookData | null | undefined>;
|
|
30
|
+
}) => AggregatedOrderbookRows;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type MarketOrderbookData, type VenueMarket, type VenueMarketOutcome } from "@agg-build/hooks";
|
|
2
|
+
import type { OrderbookRowData } from "../orderbook";
|
|
3
|
+
export type EligibleVenueOutcome = {
|
|
4
|
+
venue: VenueMarket["venue"];
|
|
5
|
+
market: VenueMarket;
|
|
6
|
+
outcome: VenueMarketOutcome;
|
|
7
|
+
outcomeId: string;
|
|
8
|
+
semanticLabel: string;
|
|
9
|
+
};
|
|
10
|
+
export type AggregatedOrderbookRows = {
|
|
11
|
+
askRows: OrderbookRowData[];
|
|
12
|
+
bidRows: OrderbookRowData[];
|
|
13
|
+
midpoint: number | null;
|
|
14
|
+
spread: number | null;
|
|
15
|
+
hasNoOrderBook: boolean;
|
|
16
|
+
includedOutcomeIds: string[];
|
|
17
|
+
missingOutcomeIds: string[];
|
|
18
|
+
};
|
|
19
|
+
export declare const collectEligibleVenueOutcomes: ({ venueMarkets, selectedOutcomeLabel, }: {
|
|
20
|
+
venueMarkets: VenueMarket[];
|
|
21
|
+
selectedOutcomeLabel: string | null | undefined;
|
|
22
|
+
}) => EligibleVenueOutcome[];
|
|
23
|
+
export declare const collectEligibleVenueOutcomeIds: ({ venueMarkets, selectedOutcomeLabel, }: {
|
|
24
|
+
venueMarkets: VenueMarket[];
|
|
25
|
+
selectedOutcomeLabel: string | null | undefined;
|
|
26
|
+
}) => string[];
|
|
27
|
+
export declare const mergeVenueOutcomeOrderbooks: ({ eligibleOutcomes, orderbooksByOutcomeId, }: {
|
|
28
|
+
eligibleOutcomes: EligibleVenueOutcome[];
|
|
29
|
+
orderbooksByOutcomeId: Record<string, MarketOrderbookData | null | undefined>;
|
|
30
|
+
}) => AggregatedOrderbookRows;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OrderbookProps } from "./orderbook.types";
|
|
2
|
+
export type { OrderbookEntry, OrderbookLabels, OrderbookProps, OrderbookRowData, OrderbookTone, } from "./orderbook.types";
|
|
3
|
+
export { formatProbabilityCents, resolveOrderBookRows, resolveUnifiedOrderBookEntries, } from "./orderbook.utils";
|
|
4
|
+
export { orderbookRowLimitDefault } from "./orderbook.constants";
|
|
5
|
+
export { useCenterOrderbookSpread, type UseCenterOrderbookSpreadOptions, } from "./use-center-orderbook-spread";
|
|
6
|
+
export { OrderbookWithStates } from "./orderbook-with-states";
|
|
7
|
+
export type { OrderbookState, OrderbookWithStatesProps } from "./orderbook-with-states";
|
|
8
|
+
export declare const Orderbook: {
|
|
9
|
+
({ entries, formatNumber, formatCurrency, visibleRows, enableAnimations, marketId, snapshotKey, outcomeId, labels: labelsProp, className, }: OrderbookProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OrderbookProps } from "./orderbook.types";
|
|
2
|
+
export type { OrderbookEntry, OrderbookLabels, OrderbookProps, OrderbookRowData, OrderbookTone, } from "./orderbook.types";
|
|
3
|
+
export { formatProbabilityCents, resolveOrderBookRows, resolveUnifiedOrderBookEntries, } from "./orderbook.utils";
|
|
4
|
+
export { orderbookRowLimitDefault } from "./orderbook.constants";
|
|
5
|
+
export { useCenterOrderbookSpread, type UseCenterOrderbookSpreadOptions, } from "./use-center-orderbook-spread";
|
|
6
|
+
export { OrderbookWithStates } from "./orderbook-with-states";
|
|
7
|
+
export type { OrderbookState, OrderbookWithStatesProps } from "./orderbook-with-states";
|
|
8
|
+
export declare const Orderbook: {
|
|
9
|
+
({ entries, formatNumber, formatCurrency, visibleRows, enableAnimations, marketId, snapshotKey, outcomeId, labels: labelsProp, className, }: OrderbookProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { OrderbookProps } from "./index";
|
|
3
|
+
export type OrderbookState = {
|
|
4
|
+
kind: "loading";
|
|
5
|
+
} | {
|
|
6
|
+
kind: "error";
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
onRetry?: () => void;
|
|
10
|
+
} | {
|
|
11
|
+
kind: "resolved";
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
} | {
|
|
15
|
+
kind: "empty";
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "disabled";
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
icon?: React.ReactElement;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "data";
|
|
25
|
+
};
|
|
26
|
+
export type OrderbookWithStatesProps = OrderbookProps & {
|
|
27
|
+
/** Current state of the orderbook. Determines which view to render. */
|
|
28
|
+
state: OrderbookState;
|
|
29
|
+
/** Optional className for the wrapper div. */
|
|
30
|
+
wrapperClassName?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const OrderbookWithStates: {
|
|
33
|
+
({ state, wrapperClassName, ...orderbookProps }: OrderbookWithStatesProps): JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { OrderbookProps } from "./index";
|
|
3
|
+
export type OrderbookState = {
|
|
4
|
+
kind: "loading";
|
|
5
|
+
} | {
|
|
6
|
+
kind: "error";
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
onRetry?: () => void;
|
|
10
|
+
} | {
|
|
11
|
+
kind: "resolved";
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
} | {
|
|
15
|
+
kind: "empty";
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "disabled";
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
icon?: React.ReactElement;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "data";
|
|
25
|
+
};
|
|
26
|
+
export type OrderbookWithStatesProps = OrderbookProps & {
|
|
27
|
+
/** Current state of the orderbook. Determines which view to render. */
|
|
28
|
+
state: OrderbookState;
|
|
29
|
+
/** Optional className for the wrapper div. */
|
|
30
|
+
wrapperClassName?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const OrderbookWithStates: {
|
|
33
|
+
({ state, wrapperClassName, ...orderbookProps }: OrderbookWithStatesProps): JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OrderbookLabels } from "./orderbook.types";
|
|
2
|
+
export declare const orderbookRowLimitDefault = 4;
|
|
3
|
+
export declare const orderbookRowHeightPx = 36;
|
|
4
|
+
export declare const orderbookDividerHeightPx = 0;
|
|
5
|
+
export declare const orderbookRowGapPx = 0;
|
|
6
|
+
export declare const orderbookSpreadRowHeightPx = 36;
|
|
7
|
+
export declare const orderbookHeaderHeightPx = 36;
|
|
8
|
+
/** Maximum number of venue logos displayed per row before showing "+N". */
|
|
9
|
+
export declare const orderbookMaxVisibleVenues = 2;
|
|
10
|
+
export declare const orderbookDefaultLabels: OrderbookLabels;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OrderbookLabels } from "./orderbook.types";
|
|
2
|
+
export declare const orderbookRowLimitDefault = 4;
|
|
3
|
+
export declare const orderbookRowHeightPx = 36;
|
|
4
|
+
export declare const orderbookDividerHeightPx = 0;
|
|
5
|
+
export declare const orderbookRowGapPx = 0;
|
|
6
|
+
export declare const orderbookSpreadRowHeightPx = 36;
|
|
7
|
+
export declare const orderbookHeaderHeightPx = 36;
|
|
8
|
+
/** Maximum number of venue logos displayed per row before showing "+N". */
|
|
9
|
+
export declare const orderbookMaxVisibleVenues = 2;
|
|
10
|
+
export declare const orderbookDefaultLabels: OrderbookLabels;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { VenueLogoName } from "../../primitives/venue-logo/venue-logo.types";
|
|
2
|
+
export type OrderbookTone = "positive" | "negative";
|
|
3
|
+
export type OrderbookRowData = {
|
|
4
|
+
id: string;
|
|
5
|
+
venue: VenueLogoName;
|
|
6
|
+
/** All venues with orders at this price level (for multi-venue display). */
|
|
7
|
+
venues?: VenueLogoName[];
|
|
8
|
+
price: number;
|
|
9
|
+
size: number;
|
|
10
|
+
total: number;
|
|
11
|
+
tone: OrderbookTone;
|
|
12
|
+
barScale: number;
|
|
13
|
+
venueBreakdown?: Partial<Record<VenueLogoName, number>>;
|
|
14
|
+
sourceOutcomeIds?: string[];
|
|
15
|
+
};
|
|
16
|
+
export type OrderbookEntry = {
|
|
17
|
+
kind: "ask";
|
|
18
|
+
row: OrderbookRowData;
|
|
19
|
+
cumulativeDepth: number;
|
|
20
|
+
unifiedBarScale: number;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "bid";
|
|
23
|
+
row: OrderbookRowData;
|
|
24
|
+
cumulativeDepth: number;
|
|
25
|
+
unifiedBarScale: number;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "spread";
|
|
28
|
+
midPrice: number | null;
|
|
29
|
+
spread: number | null;
|
|
30
|
+
};
|
|
31
|
+
export type OrderbookLabels = {
|
|
32
|
+
midPrice: string;
|
|
33
|
+
spread: string;
|
|
34
|
+
/** Column header for the depth bar column (e.g. "Trade Yes"). */
|
|
35
|
+
tradeOutcome?: string;
|
|
36
|
+
price?: string;
|
|
37
|
+
shares?: string;
|
|
38
|
+
total?: string;
|
|
39
|
+
asks?: string;
|
|
40
|
+
bids?: string;
|
|
41
|
+
/** Prefix for the "Last" label in the spread row (e.g. "Yes"). */
|
|
42
|
+
lastOutcome?: string;
|
|
43
|
+
};
|
|
44
|
+
export type OrderbookProps = {
|
|
45
|
+
/** Pre-resolved unified entries (asks + spread + bids). */
|
|
46
|
+
entries: OrderbookEntry[];
|
|
47
|
+
/** Format a numeric quantity for display (e.g. size column). */
|
|
48
|
+
formatNumber: (value: number) => string;
|
|
49
|
+
/** Format a currency value for display (e.g. total column). */
|
|
50
|
+
formatCurrency: (value: number) => string;
|
|
51
|
+
/** Number of visible rows per side (asks/bids). Controls container height. Default: 4. */
|
|
52
|
+
visibleRows?: number;
|
|
53
|
+
/** Enable CSS transition animations on bar widths. Default: true. */
|
|
54
|
+
enableAnimations?: boolean;
|
|
55
|
+
/** Market identifier -- when this changes, the book re-centers the spread on first render. */
|
|
56
|
+
marketId?: string | null;
|
|
57
|
+
/** Snapshot identity metadata retained for compatibility. Snapshot updates do not auto-recenter. */
|
|
58
|
+
snapshotKey?: string | number | null;
|
|
59
|
+
/** Legacy alias for marketId. */
|
|
60
|
+
outcomeId?: string | null;
|
|
61
|
+
/** Labels for the orderbook. All fields are optional and default to English. */
|
|
62
|
+
labels?: Partial<OrderbookLabels>;
|
|
63
|
+
/** Optional className for the root element. */
|
|
64
|
+
className?: string;
|
|
65
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { VenueLogoName } from "../../primitives/venue-logo/venue-logo.types";
|
|
2
|
+
export type OrderbookTone = "positive" | "negative";
|
|
3
|
+
export type OrderbookRowData = {
|
|
4
|
+
id: string;
|
|
5
|
+
venue: VenueLogoName;
|
|
6
|
+
/** All venues with orders at this price level (for multi-venue display). */
|
|
7
|
+
venues?: VenueLogoName[];
|
|
8
|
+
price: number;
|
|
9
|
+
size: number;
|
|
10
|
+
total: number;
|
|
11
|
+
tone: OrderbookTone;
|
|
12
|
+
barScale: number;
|
|
13
|
+
venueBreakdown?: Partial<Record<VenueLogoName, number>>;
|
|
14
|
+
sourceOutcomeIds?: string[];
|
|
15
|
+
};
|
|
16
|
+
export type OrderbookEntry = {
|
|
17
|
+
kind: "ask";
|
|
18
|
+
row: OrderbookRowData;
|
|
19
|
+
cumulativeDepth: number;
|
|
20
|
+
unifiedBarScale: number;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "bid";
|
|
23
|
+
row: OrderbookRowData;
|
|
24
|
+
cumulativeDepth: number;
|
|
25
|
+
unifiedBarScale: number;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "spread";
|
|
28
|
+
midPrice: number | null;
|
|
29
|
+
spread: number | null;
|
|
30
|
+
};
|
|
31
|
+
export type OrderbookLabels = {
|
|
32
|
+
midPrice: string;
|
|
33
|
+
spread: string;
|
|
34
|
+
/** Column header for the depth bar column (e.g. "Trade Yes"). */
|
|
35
|
+
tradeOutcome?: string;
|
|
36
|
+
price?: string;
|
|
37
|
+
shares?: string;
|
|
38
|
+
total?: string;
|
|
39
|
+
asks?: string;
|
|
40
|
+
bids?: string;
|
|
41
|
+
/** Prefix for the "Last" label in the spread row (e.g. "Yes"). */
|
|
42
|
+
lastOutcome?: string;
|
|
43
|
+
};
|
|
44
|
+
export type OrderbookProps = {
|
|
45
|
+
/** Pre-resolved unified entries (asks + spread + bids). */
|
|
46
|
+
entries: OrderbookEntry[];
|
|
47
|
+
/** Format a numeric quantity for display (e.g. size column). */
|
|
48
|
+
formatNumber: (value: number) => string;
|
|
49
|
+
/** Format a currency value for display (e.g. total column). */
|
|
50
|
+
formatCurrency: (value: number) => string;
|
|
51
|
+
/** Number of visible rows per side (asks/bids). Controls container height. Default: 4. */
|
|
52
|
+
visibleRows?: number;
|
|
53
|
+
/** Enable CSS transition animations on bar widths. Default: true. */
|
|
54
|
+
enableAnimations?: boolean;
|
|
55
|
+
/** Market identifier -- when this changes, the book re-centers the spread on first render. */
|
|
56
|
+
marketId?: string | null;
|
|
57
|
+
/** Snapshot identity metadata retained for compatibility. Snapshot updates do not auto-recenter. */
|
|
58
|
+
snapshotKey?: string | number | null;
|
|
59
|
+
/** Legacy alias for marketId. */
|
|
60
|
+
outcomeId?: string | null;
|
|
61
|
+
/** Labels for the orderbook. All fields are optional and default to English. */
|
|
62
|
+
labels?: Partial<OrderbookLabels>;
|
|
63
|
+
/** Optional className for the root element. */
|
|
64
|
+
className?: string;
|
|
65
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OrderbookResult } from "@agg-build/hooks";
|
|
2
|
+
import type { OrderbookEntry, OrderbookRowData } from "./orderbook.types";
|
|
3
|
+
export declare const formatProbabilityCents: (value: number | null | undefined) => string;
|
|
4
|
+
export declare const resolveOrderBookRows: ({ data, side, }: {
|
|
5
|
+
data: OrderbookResult[] | undefined;
|
|
6
|
+
side: "asks" | "bids";
|
|
7
|
+
}) => OrderbookRowData[];
|
|
8
|
+
export declare const resolveUnifiedOrderBookEntries: ({ askRows, bidRows, midPrice, spread, }: {
|
|
9
|
+
askRows: OrderbookRowData[];
|
|
10
|
+
bidRows: OrderbookRowData[];
|
|
11
|
+
midPrice: number | null;
|
|
12
|
+
spread: number | null;
|
|
13
|
+
}) => OrderbookEntry[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OrderbookResult } from "@agg-build/hooks";
|
|
2
|
+
import type { OrderbookEntry, OrderbookRowData } from "./orderbook.types";
|
|
3
|
+
export declare const formatProbabilityCents: (value: number | null | undefined) => string;
|
|
4
|
+
export declare const resolveOrderBookRows: ({ data, side, }: {
|
|
5
|
+
data: OrderbookResult[] | undefined;
|
|
6
|
+
side: "asks" | "bids";
|
|
7
|
+
}) => OrderbookRowData[];
|
|
8
|
+
export declare const resolveUnifiedOrderBookEntries: ({ askRows, bidRows, midPrice, spread, }: {
|
|
9
|
+
askRows: OrderbookRowData[];
|
|
10
|
+
bidRows: OrderbookRowData[];
|
|
11
|
+
midPrice: number | null;
|
|
12
|
+
spread: number | null;
|
|
13
|
+
}) => OrderbookEntry[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export type UseCenterOrderbookSpreadOptions = {
|
|
3
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
spreadRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
marketId?: string | null;
|
|
6
|
+
snapshotKey?: string | number | null;
|
|
7
|
+
rowCount: number;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type UseCenterOrderbookSpreadReturn = {
|
|
11
|
+
recenter: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const useCenterOrderbookSpread: ({ containerRef, spreadRef, marketId, snapshotKey: _snapshotKey, rowCount, enabled, }: UseCenterOrderbookSpreadOptions) => UseCenterOrderbookSpreadReturn;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export type UseCenterOrderbookSpreadOptions = {
|
|
3
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
spreadRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
marketId?: string | null;
|
|
6
|
+
snapshotKey?: string | number | null;
|
|
7
|
+
rowCount: number;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type UseCenterOrderbookSpreadReturn = {
|
|
11
|
+
recenter: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const useCenterOrderbookSpread: ({ containerRef, spreadRef, marketId, snapshotKey: _snapshotKey, rowCount, enabled, }: UseCenterOrderbookSpreadOptions) => UseCenterOrderbookSpreadReturn;
|