@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,75 @@
|
|
|
1
|
+
import type { ChartTimeRange, MarketChartCandle, MarketChartData, ScaledCandlePoint, Venue, VenueMarket, VenueMarketOutcome } from "@agg-build/hooks";
|
|
2
|
+
import type { LineChartPoint } from "../../primitives/chart";
|
|
3
|
+
export type OutcomeByVenue = {
|
|
4
|
+
venue: VenueMarket["venue"];
|
|
5
|
+
market: VenueMarket;
|
|
6
|
+
outcome: VenueMarketOutcome;
|
|
7
|
+
};
|
|
8
|
+
export type OutcomeSelectorItem = {
|
|
9
|
+
key: string;
|
|
10
|
+
label: string;
|
|
11
|
+
displayLabel: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const sortOutcomeSelectorOutcomes: (outcomes: VenueMarketOutcome[]) => VenueMarketOutcome[];
|
|
14
|
+
export declare const isDateLikeLabel: (value: string) => boolean;
|
|
15
|
+
export declare const formatDateLabel: (value: string) => string;
|
|
16
|
+
export declare const formatXAxisDateLabel: (timestamp: number) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the time window for the given range in seconds.
|
|
19
|
+
*
|
|
20
|
+
* @param range The time range.
|
|
21
|
+
* @returns The time window.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getTimeWindowByRange: (range: ChartTimeRange) => {
|
|
24
|
+
startTs: number;
|
|
25
|
+
endTs: number;
|
|
26
|
+
intervalMinutes: number;
|
|
27
|
+
};
|
|
28
|
+
export declare const resolveOutcomeLabels: (venueMarkets: VenueMarket[]) => string[];
|
|
29
|
+
export declare const resolveOutcomeSelectorItems: (venueMarkets: VenueMarket[]) => OutcomeSelectorItem[];
|
|
30
|
+
export declare const resolveDefaultOutcomeLabel: (outcomeLabels: string[]) => string | undefined;
|
|
31
|
+
export declare const matchOutcomeByLabel: (outcome: VenueMarketOutcome, selectedOutcomeLabel: string) => boolean;
|
|
32
|
+
export declare const resolveOutcomesByVenue: (venueMarkets: VenueMarket[], selectedOutcomeLabel: string) => OutcomeByVenue[];
|
|
33
|
+
export declare const resolveOutcomePercentValue: (outcome: VenueMarketOutcome) => number | undefined;
|
|
34
|
+
export declare const buildPriceHistoryGroups: (selectedOutcomes: OutcomeByVenue[], fallbackMarketId?: string) => Array<{
|
|
35
|
+
venue: Venue;
|
|
36
|
+
venueMarketOutcomeIds: string[];
|
|
37
|
+
}>;
|
|
38
|
+
export declare const resolveSeriesColor: (venue: VenueMarket["venue"] | string, index: number, isDarkTheme?: boolean) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Convert scaled candle points (from useLiveCandleOverlay) to LineChartPoint[].
|
|
41
|
+
* Maps candle close → line chart value. Used as a fallback when orderbook history
|
|
42
|
+
* is unavailable but candlestick data exists.
|
|
43
|
+
*/
|
|
44
|
+
export declare const scaledCandlesToLineChartPoints: (candles: ScaledCandlePoint[]) => LineChartPoint[];
|
|
45
|
+
export declare const resolveCanonicalMarketId: (venueMarkets: Array<Pick<VenueMarket, "marketId">>, fallbackMarketId?: string | null) => string | undefined;
|
|
46
|
+
export declare const toChartDisplayValue: (value: number | undefined, transformProbability: (value: number) => number) => number | undefined;
|
|
47
|
+
export declare const marketChartCandleToLineChartPoint: (candle: MarketChartCandle, transformProbability: (value: number) => number) => LineChartPoint;
|
|
48
|
+
export declare const marketChartCandleToScaledCandlePoint: (candle: MarketChartCandle, transformProbability: (value: number) => number) => ScaledCandlePoint;
|
|
49
|
+
export declare const resolveMarketChartVenueSeries: ({ chartData, transformProbability, }: {
|
|
50
|
+
chartData: MarketChartData | null | undefined;
|
|
51
|
+
transformProbability: (value: number) => number;
|
|
52
|
+
}) => Array<{
|
|
53
|
+
venue: string;
|
|
54
|
+
points: LineChartPoint[];
|
|
55
|
+
}>;
|
|
56
|
+
export declare const aggregateMarketChartCandles: (candles: MarketChartCandle[]) => MarketChartCandle[];
|
|
57
|
+
export declare const resolveMarketChartDisplaySeries: ({ chartData, selectedVenue, transformProbability, }: {
|
|
58
|
+
chartData: MarketChartData | null | undefined;
|
|
59
|
+
selectedVenue?: string | null;
|
|
60
|
+
transformProbability: (value: number) => number;
|
|
61
|
+
}) => Array<{
|
|
62
|
+
venue: string;
|
|
63
|
+
points: LineChartPoint[];
|
|
64
|
+
}>;
|
|
65
|
+
export declare const clampProbability: (value: number) => number;
|
|
66
|
+
export declare const resolveAverageProbability: (values: Array<number | undefined>) => number | undefined;
|
|
67
|
+
export declare const resolveMarketChartLiveState: ({ chartData, selectedVenue, transformProbability, }: {
|
|
68
|
+
chartData: MarketChartData | null | undefined;
|
|
69
|
+
selectedVenue?: string | null;
|
|
70
|
+
transformProbability: (value: number) => number;
|
|
71
|
+
}) => {
|
|
72
|
+
liveCandle: ScaledCandlePoint | null;
|
|
73
|
+
lineValue: number | undefined;
|
|
74
|
+
live: boolean;
|
|
75
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EventListItemDetailsProps } from "./event-list-item-details.types";
|
|
2
|
+
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
3
|
+
export { SettlementSummary } from "./settlement-summary";
|
|
4
|
+
export type { SettlementSummaryProps } from "./settlement-summary";
|
|
5
|
+
export declare const EventListItemDetails: {
|
|
6
|
+
(props: EventListItemDetailsProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EventListItemDetailsProps } from "./event-list-item-details.types";
|
|
2
|
+
export type { EventListItemDetailsClassNames, EventListItemDetailsEvent, EventListItemDetailsProps, EventListItemDetailsStat, EventListItemDetailsTimeRange, EventListItemDetailsWithEventIdProps, } from "./event-list-item-details.types";
|
|
3
|
+
export { SettlementSummary } from "./settlement-summary";
|
|
4
|
+
export type { SettlementSummaryProps } from "./settlement-summary";
|
|
5
|
+
export declare const EventListItemDetails: {
|
|
6
|
+
(props: EventListItemDetailsProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type SettlementSummaryProps = {
|
|
2
|
+
content: string | null | undefined;
|
|
3
|
+
onToggle?: (expanded: boolean) => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SettlementSummary: {
|
|
7
|
+
({ content, onToggle, className, }: SettlementSummaryProps): JSX.Element | null;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type SettlementSummaryProps = {
|
|
2
|
+
content: string | null | undefined;
|
|
3
|
+
onToggle?: (expanded: boolean) => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SettlementSummary: {
|
|
7
|
+
({ content, onToggle, className, }: SettlementSummaryProps): JSX.Element | null;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type MutableRefObject } from "react";
|
|
2
|
+
import { type TabsOverflowBehavior } from "../../primitives/tabs";
|
|
3
|
+
import type { EventListTab, EventListTabValue } from "./event-list.types";
|
|
4
|
+
export type EventListTabsProps = {
|
|
5
|
+
/** Override the canonical tab list. Disabled-venue filtering is still applied. */
|
|
6
|
+
tabs?: EventListTab[];
|
|
7
|
+
/** Currently selected tab value. */
|
|
8
|
+
activeTab: EventListTabValue;
|
|
9
|
+
/** Called when the active tab changes (including auto-fallback when the active tab disappears). */
|
|
10
|
+
onTabChange: (value: EventListTabValue) => void;
|
|
11
|
+
/** Accessible label forwarded to the underlying Tabs primitive. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
/** Custom class name applied to the Tabs root. */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Behavior used when tabs overflow horizontally. */
|
|
16
|
+
overflowBehavior?: TabsOverflowBehavior;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Returns the canonical event list tabs, filtered by the partner's `disabledVenues`.
|
|
20
|
+
* Use when a parent needs to read tab metadata (e.g., to derive `venues` /
|
|
21
|
+
* `matchStatus` for a query) and still wants the same list rendered by `EventListTabs`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const useEventListTabs: (tabs?: EventListTab[]) => EventListTab[];
|
|
24
|
+
/**
|
|
25
|
+
* Canonical event list tab control. Renders the same tab list, icons,
|
|
26
|
+
* ordering, and active styling everywhere event list tabs appear.
|
|
27
|
+
*/
|
|
28
|
+
export declare const EventListTabs: {
|
|
29
|
+
({ tabs, activeTab, onTabChange, ariaLabel, className, overflowBehavior, }: EventListTabsProps): JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
export type EventListTabsHeaderOverflowResult<THeader extends HTMLElement, TTitle extends HTMLElement> = {
|
|
33
|
+
headerRef: MutableRefObject<THeader | null>;
|
|
34
|
+
titleRef: MutableRefObject<TTitle | null>;
|
|
35
|
+
shouldUseSelectOverflow: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Detects when the title + tabs row no longer fits and returns
|
|
39
|
+
* `shouldUseSelectOverflow` so the consumer can switch the canonical
|
|
40
|
+
* `EventListTabs` to its select fallback. Wire `headerRef` to the row
|
|
41
|
+
* element and `titleRef` to the title element. Pass `recomputeOn` (e.g.
|
|
42
|
+
* the resolved tab list) to re-measure when tab content changes.
|
|
43
|
+
*/
|
|
44
|
+
export declare const useEventListTabsHeaderOverflow: <THeader extends HTMLElement = HTMLElement, TTitle extends HTMLElement = HTMLElement>(recomputeOn?: unknown) => EventListTabsHeaderOverflowResult<THeader, TTitle>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type MutableRefObject } from "react";
|
|
2
|
+
import { type TabsOverflowBehavior } from "../../primitives/tabs";
|
|
3
|
+
import type { EventListTab, EventListTabValue } from "./event-list.types";
|
|
4
|
+
export type EventListTabsProps = {
|
|
5
|
+
/** Override the canonical tab list. Disabled-venue filtering is still applied. */
|
|
6
|
+
tabs?: EventListTab[];
|
|
7
|
+
/** Currently selected tab value. */
|
|
8
|
+
activeTab: EventListTabValue;
|
|
9
|
+
/** Called when the active tab changes (including auto-fallback when the active tab disappears). */
|
|
10
|
+
onTabChange: (value: EventListTabValue) => void;
|
|
11
|
+
/** Accessible label forwarded to the underlying Tabs primitive. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
/** Custom class name applied to the Tabs root. */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Behavior used when tabs overflow horizontally. */
|
|
16
|
+
overflowBehavior?: TabsOverflowBehavior;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Returns the canonical event list tabs, filtered by the partner's `disabledVenues`.
|
|
20
|
+
* Use when a parent needs to read tab metadata (e.g., to derive `venues` /
|
|
21
|
+
* `matchStatus` for a query) and still wants the same list rendered by `EventListTabs`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const useEventListTabs: (tabs?: EventListTab[]) => EventListTab[];
|
|
24
|
+
/**
|
|
25
|
+
* Canonical event list tab control. Renders the same tab list, icons,
|
|
26
|
+
* ordering, and active styling everywhere event list tabs appear.
|
|
27
|
+
*/
|
|
28
|
+
export declare const EventListTabs: {
|
|
29
|
+
({ tabs, activeTab, onTabChange, ariaLabel, className, overflowBehavior, }: EventListTabsProps): JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
export type EventListTabsHeaderOverflowResult<THeader extends HTMLElement, TTitle extends HTMLElement> = {
|
|
33
|
+
headerRef: MutableRefObject<THeader | null>;
|
|
34
|
+
titleRef: MutableRefObject<TTitle | null>;
|
|
35
|
+
shouldUseSelectOverflow: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Detects when the title + tabs row no longer fits and returns
|
|
39
|
+
* `shouldUseSelectOverflow` so the consumer can switch the canonical
|
|
40
|
+
* `EventListTabs` to its select fallback. Wire `headerRef` to the row
|
|
41
|
+
* element and `titleRef` to the title element. Pass `recomputeOn` (e.g.
|
|
42
|
+
* the resolved tab list) to re-measure when tab content changes.
|
|
43
|
+
*/
|
|
44
|
+
export declare const useEventListTabsHeaderOverflow: <THeader extends HTMLElement = HTMLElement, TTitle extends HTMLElement = HTMLElement>(recomputeOn?: unknown) => EventListTabsHeaderOverflowResult<THeader, TTitle>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { UseVenueEventsOptions } from "@agg-build/hooks";
|
|
2
|
+
import type { MatchStatus, Venue } from "@agg-build/sdk";
|
|
3
|
+
import type { MutableRefObject } from "react";
|
|
4
|
+
import type { IconName } from "../../primitives/icon";
|
|
5
|
+
import type { VenueLogoName } from "../../primitives/venue-logo";
|
|
6
|
+
import type { VenueEventWithMarkets, VenueMarket, VenueMarketOutcome } from "../item";
|
|
7
|
+
export type EventListTabValue = "matched" | `${Venue}` | (string & {});
|
|
8
|
+
/** Exposes EventList internal state for snapshot capture by parent components. */
|
|
9
|
+
export type EventListStateRef = {
|
|
10
|
+
venueTab: EventListTabValue;
|
|
11
|
+
loadedPageCount: number;
|
|
12
|
+
};
|
|
13
|
+
export type EventListTab = {
|
|
14
|
+
value: EventListTabValue;
|
|
15
|
+
label: string;
|
|
16
|
+
iconName?: IconName;
|
|
17
|
+
venueLogo?: VenueLogoName;
|
|
18
|
+
venues?: UseVenueEventsOptions["venues"];
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
isComingSoon?: boolean;
|
|
21
|
+
matchStatus?: MatchStatus[];
|
|
22
|
+
};
|
|
23
|
+
export type EventListProps = {
|
|
24
|
+
/** Section title displayed above the event list. */
|
|
25
|
+
title: string;
|
|
26
|
+
/** Maximum number of events requested per page. */
|
|
27
|
+
limit?: number;
|
|
28
|
+
/** Max number of cards shown before truncation or progressive reveal. */
|
|
29
|
+
maxVisibleItems?: number;
|
|
30
|
+
/** Search phrase forwarded to the events query. */
|
|
31
|
+
search?: UseVenueEventsOptions["search"];
|
|
32
|
+
/** Category filters applied to the events query. */
|
|
33
|
+
categoryIds?: UseVenueEventsOptions["categoryIds"];
|
|
34
|
+
/** Called when an event card body is clicked. */
|
|
35
|
+
onEventClick?: (event?: VenueEventWithMarkets) => void;
|
|
36
|
+
/** Called when an outcome price badge is clicked. Use to navigate to the event with a preselected market and outcome. */
|
|
37
|
+
onMarketClick?: (event: VenueEventWithMarkets, market: VenueMarket, outcome: VenueMarketOutcome) => void;
|
|
38
|
+
/** Returns an href for each market outcome badge, enabling native browser link behavior (cmd/ctrl-click → new tab). */
|
|
39
|
+
getMarketHref?: (event: VenueEventWithMarkets, market: VenueMarket, outcome: VenueMarketOutcome) => string;
|
|
40
|
+
/** Returns an href for each event card, enabling native browser link behaviors (cmd/ctrl-click → new tab). */
|
|
41
|
+
getEventHref?: (event: VenueEventWithMarkets) => string;
|
|
42
|
+
/** Venue tab value to restore on mount (from navigation snapshot). */
|
|
43
|
+
initialVenueTab?: EventListTabValue;
|
|
44
|
+
/** Number of infinite query pages to eagerly prefetch on mount (from navigation snapshot). */
|
|
45
|
+
initialLoadedPageCount?: number;
|
|
46
|
+
/** Ref that EventList writes its internal state to, so parents can read it for snapshot capture. */
|
|
47
|
+
stateRef?: MutableRefObject<EventListStateRef | null>;
|
|
48
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { UseVenueEventsOptions } from "@agg-build/hooks";
|
|
2
|
+
import type { MatchStatus, Venue } from "@agg-build/sdk";
|
|
3
|
+
import type { MutableRefObject } from "react";
|
|
4
|
+
import type { IconName } from "../../primitives/icon";
|
|
5
|
+
import type { VenueLogoName } from "../../primitives/venue-logo";
|
|
6
|
+
import type { VenueEventWithMarkets, VenueMarket, VenueMarketOutcome } from "../item";
|
|
7
|
+
export type EventListTabValue = "matched" | `${Venue}` | (string & {});
|
|
8
|
+
/** Exposes EventList internal state for snapshot capture by parent components. */
|
|
9
|
+
export type EventListStateRef = {
|
|
10
|
+
venueTab: EventListTabValue;
|
|
11
|
+
loadedPageCount: number;
|
|
12
|
+
};
|
|
13
|
+
export type EventListTab = {
|
|
14
|
+
value: EventListTabValue;
|
|
15
|
+
label: string;
|
|
16
|
+
iconName?: IconName;
|
|
17
|
+
venueLogo?: VenueLogoName;
|
|
18
|
+
venues?: UseVenueEventsOptions["venues"];
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
isComingSoon?: boolean;
|
|
21
|
+
matchStatus?: MatchStatus[];
|
|
22
|
+
};
|
|
23
|
+
export type EventListProps = {
|
|
24
|
+
/** Section title displayed above the event list. */
|
|
25
|
+
title: string;
|
|
26
|
+
/** Maximum number of events requested per page. */
|
|
27
|
+
limit?: number;
|
|
28
|
+
/** Max number of cards shown before truncation or progressive reveal. */
|
|
29
|
+
maxVisibleItems?: number;
|
|
30
|
+
/** Search phrase forwarded to the events query. */
|
|
31
|
+
search?: UseVenueEventsOptions["search"];
|
|
32
|
+
/** Category filters applied to the events query. */
|
|
33
|
+
categoryIds?: UseVenueEventsOptions["categoryIds"];
|
|
34
|
+
/** Called when an event card body is clicked. */
|
|
35
|
+
onEventClick?: (event?: VenueEventWithMarkets) => void;
|
|
36
|
+
/** Called when an outcome price badge is clicked. Use to navigate to the event with a preselected market and outcome. */
|
|
37
|
+
onMarketClick?: (event: VenueEventWithMarkets, market: VenueMarket, outcome: VenueMarketOutcome) => void;
|
|
38
|
+
/** Returns an href for each market outcome badge, enabling native browser link behavior (cmd/ctrl-click → new tab). */
|
|
39
|
+
getMarketHref?: (event: VenueEventWithMarkets, market: VenueMarket, outcome: VenueMarketOutcome) => string;
|
|
40
|
+
/** Returns an href for each event card, enabling native browser link behaviors (cmd/ctrl-click → new tab). */
|
|
41
|
+
getEventHref?: (event: VenueEventWithMarkets) => string;
|
|
42
|
+
/** Venue tab value to restore on mount (from navigation snapshot). */
|
|
43
|
+
initialVenueTab?: EventListTabValue;
|
|
44
|
+
/** Number of infinite query pages to eagerly prefetch on mount (from navigation snapshot). */
|
|
45
|
+
initialLoadedPageCount?: number;
|
|
46
|
+
/** Ref that EventList writes its internal state to, so parents can read it for snapshot capture. */
|
|
47
|
+
stateRef?: MutableRefObject<EventListStateRef | null>;
|
|
48
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type UseVenueEventsOptions, type VenueMarket } from "@agg-build/hooks";
|
|
2
|
+
import type { EventListItemEvent, VenueEventWithMarkets } from "../item/event-list-item.types";
|
|
3
|
+
import type { EventListTab, EventListTabValue } from "./event-list.types";
|
|
4
|
+
/** Filter out events that are not open or have no open venue markets. */
|
|
5
|
+
export declare const filterOpenEvents: (events: VenueEventWithMarkets[]) => VenueEventWithMarkets[];
|
|
6
|
+
export declare const sortEventsByVolumeDesc: (events: VenueEventWithMarkets[]) => VenueEventWithMarkets[];
|
|
7
|
+
export type EventLifecycleGroup = {
|
|
8
|
+
open: VenueEventWithMarkets[];
|
|
9
|
+
upcoming: VenueEventWithMarkets[];
|
|
10
|
+
resolved: VenueEventWithMarkets[];
|
|
11
|
+
};
|
|
12
|
+
export declare const splitEventsByLifecycle: (events: VenueEventWithMarkets[]) => EventLifecycleGroup;
|
|
13
|
+
export declare const mapEventToEventListItemEvent: (event: VenueEventWithMarkets) => EventListItemEvent | null;
|
|
14
|
+
export declare const filterEventsByTabValue: (events: VenueEventWithMarkets[], _tabValue: EventListTabValue) => VenueEventWithMarkets[];
|
|
15
|
+
/** Filter markets to only those with status "open" or undefined (treated as open). */
|
|
16
|
+
export declare const filterOpenMarkets: (markets: VenueMarket[]) => VenueMarket[];
|
|
17
|
+
/** Sort markets by YES odds descending, preserving input order for ties and missing values. */
|
|
18
|
+
export declare const sortMarketsByYesOddsDesc: (markets: VenueMarket[]) => VenueMarket[];
|
|
19
|
+
export declare const resolveTabVenus: (tab: EventListTab | undefined, visibleVenues?: readonly string[]) => UseVenueEventsOptions["venues"] | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type UseVenueEventsOptions, type VenueMarket } from "@agg-build/hooks";
|
|
2
|
+
import type { EventListItemEvent, VenueEventWithMarkets } from "../item/event-list-item.types";
|
|
3
|
+
import type { EventListTab, EventListTabValue } from "./event-list.types";
|
|
4
|
+
/** Filter out events that are not open or have no open venue markets. */
|
|
5
|
+
export declare const filterOpenEvents: (events: VenueEventWithMarkets[]) => VenueEventWithMarkets[];
|
|
6
|
+
export declare const sortEventsByVolumeDesc: (events: VenueEventWithMarkets[]) => VenueEventWithMarkets[];
|
|
7
|
+
export type EventLifecycleGroup = {
|
|
8
|
+
open: VenueEventWithMarkets[];
|
|
9
|
+
upcoming: VenueEventWithMarkets[];
|
|
10
|
+
resolved: VenueEventWithMarkets[];
|
|
11
|
+
};
|
|
12
|
+
export declare const splitEventsByLifecycle: (events: VenueEventWithMarkets[]) => EventLifecycleGroup;
|
|
13
|
+
export declare const mapEventToEventListItemEvent: (event: VenueEventWithMarkets) => EventListItemEvent | null;
|
|
14
|
+
export declare const filterEventsByTabValue: (events: VenueEventWithMarkets[], _tabValue: EventListTabValue) => VenueEventWithMarkets[];
|
|
15
|
+
/** Filter markets to only those with status "open" or undefined (treated as open). */
|
|
16
|
+
export declare const filterOpenMarkets: (markets: VenueMarket[]) => VenueMarket[];
|
|
17
|
+
/** Sort markets by YES odds descending, preserving input order for ties and missing values. */
|
|
18
|
+
export declare const sortMarketsByYesOddsDesc: (markets: VenueMarket[]) => VenueMarket[];
|
|
19
|
+
export declare const resolveTabVenus: (tab: EventListTab | undefined, visibleVenues?: readonly string[]) => UseVenueEventsOptions["venues"] | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventListProps } from "./event-list.types";
|
|
2
|
+
export type { EventListProps, EventListStateRef } from "./event-list.types";
|
|
3
|
+
export declare const EventList: {
|
|
4
|
+
({ title, limit, maxVisibleItems, search, categoryIds, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventListProps } from "./event-list.types";
|
|
2
|
+
export type { EventListProps, EventListStateRef } from "./event-list.types";
|
|
3
|
+
export declare const EventList: {
|
|
4
|
+
({ title, limit, maxVisibleItems, search, categoryIds, onEventClick, onMarketClick, getMarketHref, getEventHref, initialVenueTab, initialLoadedPageCount, stateRef, }: EventListProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MarketDetailsListProps, MarketDetailsProps } from "./market-details.types";
|
|
2
|
+
export type { MarketDetailsClassNames, MarketDetailsContentProps, MarketDetailsListProps, MarketDetailsMetaRow, MarketDetailsOrderBookRow, MarketDetailsProps, MarketDetailsTab, } from "./market-details.types";
|
|
3
|
+
export { collectEligibleVenueOutcomeIds, collectEligibleVenueOutcomes, mergeVenueOutcomeOrderbooks, } from "./orderbook-aggregation";
|
|
4
|
+
export type { AggregatedOrderbookRows, EligibleVenueOutcome } from "./orderbook-aggregation";
|
|
5
|
+
export declare const MarketDetails: {
|
|
6
|
+
({ isOpened, ...props }: MarketDetailsProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const MarketDetailsList: {
|
|
10
|
+
({ eventId, markets: providedMarkets, eventTradingState, onClick, onExpandedMarketChange, defaultTab, classNames, live, }: MarketDetailsListProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MarketDetailsListProps, MarketDetailsProps } from "./market-details.types";
|
|
2
|
+
export type { MarketDetailsClassNames, MarketDetailsContentProps, MarketDetailsListProps, MarketDetailsMetaRow, MarketDetailsOrderBookRow, MarketDetailsProps, MarketDetailsTab, } from "./market-details.types";
|
|
3
|
+
export { collectEligibleVenueOutcomeIds, collectEligibleVenueOutcomes, mergeVenueOutcomeOrderbooks, } from "./orderbook-aggregation";
|
|
4
|
+
export type { AggregatedOrderbookRows, EligibleVenueOutcome } from "./orderbook-aggregation";
|
|
5
|
+
export declare const MarketDetails: {
|
|
6
|
+
({ isOpened, ...props }: MarketDetailsProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const MarketDetailsList: {
|
|
10
|
+
({ eventId, markets: providedMarkets, eventTradingState, onClick, onExpandedMarketChange, defaultTab, classNames, live, }: MarketDetailsListProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MarketDetailsHeaderOutcomeItem } from "./market-details.types";
|
|
2
|
+
type MarketDetailsOutcomeButtonProps = {
|
|
3
|
+
ariaControls?: string;
|
|
4
|
+
enableAnimations: boolean;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
item: MarketDetailsHeaderOutcomeItem;
|
|
7
|
+
onSelect: (label: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const MarketDetailsOutcomeButton: {
|
|
10
|
+
({ ariaControls, enableAnimations, isSelected, item, onSelect, }: MarketDetailsOutcomeButtonProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MarketDetailsHeaderOutcomeItem } from "./market-details.types";
|
|
2
|
+
type MarketDetailsOutcomeButtonProps = {
|
|
3
|
+
ariaControls?: string;
|
|
4
|
+
enableAnimations: boolean;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
item: MarketDetailsHeaderOutcomeItem;
|
|
7
|
+
onSelect: (label: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const MarketDetailsOutcomeButton: {
|
|
10
|
+
({ ariaControls, enableAnimations, isSelected, item, onSelect, }: MarketDetailsOutcomeButtonProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AggUiLabels } from "@agg-build/hooks";
|
|
2
|
+
import type { MarketDetailsTab } from "./market-details.types";
|
|
3
|
+
export declare const marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg border border-agg-separator bg-agg-secondary text-agg-foreground shadow-none hover:shadow-none";
|
|
4
|
+
export declare const getMarketDetailsTabs: (labels: AggUiLabels) => {
|
|
5
|
+
value: MarketDetailsTab;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const marketDetailsDefaultIsOpened = false;
|
|
9
|
+
export declare const orderBookRowLimitDefault = 4;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AggUiLabels } from "@agg-build/hooks";
|
|
2
|
+
import type { MarketDetailsTab } from "./market-details.types";
|
|
3
|
+
export declare const marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg border border-agg-separator bg-agg-secondary text-agg-foreground shadow-none hover:shadow-none";
|
|
4
|
+
export declare const getMarketDetailsTabs: (labels: AggUiLabels) => {
|
|
5
|
+
value: MarketDetailsTab;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const marketDetailsDefaultIsOpened = false;
|
|
9
|
+
export declare const orderBookRowLimitDefault = 4;
|
|
@@ -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
|
+
};
|