@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,12 @@
|
|
|
1
|
+
import type { UserProfileOpenOrder } from "../user-profile.types";
|
|
2
|
+
type OpenOrderRowProps = {
|
|
3
|
+
order: UserProfileOpenOrder;
|
|
4
|
+
onClick?: (order: UserProfileOpenOrder) => void;
|
|
5
|
+
onCancel?: (order: UserProfileOpenOrder) => void;
|
|
6
|
+
isCancelling?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const OpenOrderRow: {
|
|
9
|
+
({ order, onClick, onCancel, isCancelling, }: OpenOrderRowProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UserProfilePosition } from "../user-profile.types";
|
|
2
|
+
type PositionRowVariant = "active" | "closed";
|
|
3
|
+
type PositionRowProps = {
|
|
4
|
+
position: UserProfilePosition;
|
|
5
|
+
variant?: PositionRowVariant;
|
|
6
|
+
href?: string;
|
|
7
|
+
onClick?: (position: UserProfilePosition) => void;
|
|
8
|
+
onClaim?: (position: UserProfilePosition) => Promise<void> | void;
|
|
9
|
+
isClaiming?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const PositionRow: {
|
|
12
|
+
({ position, variant, href, onClick, onClaim, isClaiming, }: PositionRowProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UserProfilePosition } from "../user-profile.types";
|
|
2
|
+
type PositionRowVariant = "active" | "closed";
|
|
3
|
+
type PositionRowProps = {
|
|
4
|
+
position: UserProfilePosition;
|
|
5
|
+
variant?: PositionRowVariant;
|
|
6
|
+
href?: string;
|
|
7
|
+
onClick?: (position: UserProfilePosition) => void;
|
|
8
|
+
onClaim?: (position: UserProfilePosition) => Promise<void> | void;
|
|
9
|
+
isClaiming?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const PositionRow: {
|
|
12
|
+
({ position, variant, href, onClick, onClaim, isClaiming, }: PositionRowProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type UserProfileTabValue } from "../user-profile.constants";
|
|
2
|
+
import type { UserProfileActivity, UserProfileCancelOrderHandler, UserProfileOpenOrder, UserProfilePosition, UserProfilePositionFilter } from "../user-profile.types";
|
|
3
|
+
type PositionsActivityProps = {
|
|
4
|
+
activePositions?: UserProfilePosition[];
|
|
5
|
+
closedPositions?: UserProfilePosition[];
|
|
6
|
+
openOrders?: UserProfileOpenOrder[];
|
|
7
|
+
activities?: UserProfileActivity[];
|
|
8
|
+
onPositionClick?: (position: UserProfilePosition) => void;
|
|
9
|
+
getPositionHref?: (position: UserProfilePosition) => string | undefined;
|
|
10
|
+
onClaim?: (position: UserProfilePosition) => Promise<void> | void;
|
|
11
|
+
claimingPositionKeys?: Record<string, boolean>;
|
|
12
|
+
onActivityClick?: (activity: UserProfileActivity) => void;
|
|
13
|
+
getActivityHref?: (activity: UserProfileActivity) => string | undefined;
|
|
14
|
+
onOpenOrderClick?: (order: UserProfileOpenOrder) => void;
|
|
15
|
+
onCancelOrder?: UserProfileCancelOrderHandler;
|
|
16
|
+
cancellingOrderIds?: Record<string, boolean>;
|
|
17
|
+
isLoadingPositions?: boolean;
|
|
18
|
+
isLoadingActivities?: boolean;
|
|
19
|
+
isLoadingOpenOrders?: boolean;
|
|
20
|
+
positionsError?: boolean;
|
|
21
|
+
activitiesError?: boolean;
|
|
22
|
+
openOrdersError?: boolean;
|
|
23
|
+
hasMoreActivePositions?: boolean;
|
|
24
|
+
isLoadingMoreActivePositions?: boolean;
|
|
25
|
+
onLoadMoreActivePositions?: () => void;
|
|
26
|
+
hasMoreClosedPositions?: boolean;
|
|
27
|
+
isLoadingMoreClosedPositions?: boolean;
|
|
28
|
+
onLoadMoreClosedPositions?: () => void;
|
|
29
|
+
onPositionFilterChange?: (filter: "active" | "closed") => void;
|
|
30
|
+
hasMoreActivities?: boolean;
|
|
31
|
+
isLoadingMoreActivities?: boolean;
|
|
32
|
+
onLoadMoreActivities?: () => void;
|
|
33
|
+
hasMoreOpenOrders?: boolean;
|
|
34
|
+
isLoadingMoreOpenOrders?: boolean;
|
|
35
|
+
onLoadMoreOpenOrders?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Active tab. When provided, the component is controlled — `onTabChange` is
|
|
38
|
+
* invoked on click but the source of truth is the host (typically URL state).
|
|
39
|
+
* When omitted, the component manages its own tab state, defaulting to "positions".
|
|
40
|
+
*/
|
|
41
|
+
tab?: UserProfileTabValue;
|
|
42
|
+
onTabChange?: (tab: UserProfileTabValue) => void;
|
|
43
|
+
/** Initial active/closed segmented filter for the positions tab (defaults to "active"). */
|
|
44
|
+
initialPositionFilter?: UserProfilePositionFilter;
|
|
45
|
+
className?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const PositionsActivity: {
|
|
48
|
+
({ activePositions, closedPositions, activities, onPositionClick, getPositionHref, onClaim, claimingPositionKeys, onActivityClick, getActivityHref, isLoadingPositions, isLoadingActivities, positionsError, activitiesError, hasMoreActivePositions, isLoadingMoreActivePositions, onLoadMoreActivePositions, hasMoreClosedPositions, isLoadingMoreClosedPositions, onLoadMoreClosedPositions, onPositionFilterChange, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, tab, onTabChange, initialPositionFilter, className, }: PositionsActivityProps): JSX.Element;
|
|
49
|
+
displayName: string;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type UserProfileTabValue } from "../user-profile.constants";
|
|
2
|
+
import type { UserProfileActivity, UserProfileCancelOrderHandler, UserProfileOpenOrder, UserProfilePosition, UserProfilePositionFilter } from "../user-profile.types";
|
|
3
|
+
type PositionsActivityProps = {
|
|
4
|
+
activePositions?: UserProfilePosition[];
|
|
5
|
+
closedPositions?: UserProfilePosition[];
|
|
6
|
+
openOrders?: UserProfileOpenOrder[];
|
|
7
|
+
activities?: UserProfileActivity[];
|
|
8
|
+
onPositionClick?: (position: UserProfilePosition) => void;
|
|
9
|
+
getPositionHref?: (position: UserProfilePosition) => string | undefined;
|
|
10
|
+
onClaim?: (position: UserProfilePosition) => Promise<void> | void;
|
|
11
|
+
claimingPositionKeys?: Record<string, boolean>;
|
|
12
|
+
onActivityClick?: (activity: UserProfileActivity) => void;
|
|
13
|
+
getActivityHref?: (activity: UserProfileActivity) => string | undefined;
|
|
14
|
+
onOpenOrderClick?: (order: UserProfileOpenOrder) => void;
|
|
15
|
+
onCancelOrder?: UserProfileCancelOrderHandler;
|
|
16
|
+
cancellingOrderIds?: Record<string, boolean>;
|
|
17
|
+
isLoadingPositions?: boolean;
|
|
18
|
+
isLoadingActivities?: boolean;
|
|
19
|
+
isLoadingOpenOrders?: boolean;
|
|
20
|
+
positionsError?: boolean;
|
|
21
|
+
activitiesError?: boolean;
|
|
22
|
+
openOrdersError?: boolean;
|
|
23
|
+
hasMoreActivePositions?: boolean;
|
|
24
|
+
isLoadingMoreActivePositions?: boolean;
|
|
25
|
+
onLoadMoreActivePositions?: () => void;
|
|
26
|
+
hasMoreClosedPositions?: boolean;
|
|
27
|
+
isLoadingMoreClosedPositions?: boolean;
|
|
28
|
+
onLoadMoreClosedPositions?: () => void;
|
|
29
|
+
onPositionFilterChange?: (filter: "active" | "closed") => void;
|
|
30
|
+
hasMoreActivities?: boolean;
|
|
31
|
+
isLoadingMoreActivities?: boolean;
|
|
32
|
+
onLoadMoreActivities?: () => void;
|
|
33
|
+
hasMoreOpenOrders?: boolean;
|
|
34
|
+
isLoadingMoreOpenOrders?: boolean;
|
|
35
|
+
onLoadMoreOpenOrders?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Active tab. When provided, the component is controlled — `onTabChange` is
|
|
38
|
+
* invoked on click but the source of truth is the host (typically URL state).
|
|
39
|
+
* When omitted, the component manages its own tab state, defaulting to "positions".
|
|
40
|
+
*/
|
|
41
|
+
tab?: UserProfileTabValue;
|
|
42
|
+
onTabChange?: (tab: UserProfileTabValue) => void;
|
|
43
|
+
/** Initial active/closed segmented filter for the positions tab (defaults to "active"). */
|
|
44
|
+
initialPositionFilter?: UserProfilePositionFilter;
|
|
45
|
+
className?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const PositionsActivity: {
|
|
48
|
+
({ activePositions, closedPositions, activities, onPositionClick, getPositionHref, onClaim, claimingPositionKeys, onActivityClick, getActivityHref, isLoadingPositions, isLoadingActivities, positionsError, activitiesError, hasMoreActivePositions, isLoadingMoreActivePositions, onLoadMoreActivePositions, hasMoreClosedPositions, isLoadingMoreClosedPositions, onLoadMoreClosedPositions, onPositionFilterChange, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, tab, onTabChange, initialPositionFilter, className, }: PositionsActivityProps): JSX.Element;
|
|
49
|
+
displayName: string;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PositionsValueCardProps = {
|
|
2
|
+
label?: string;
|
|
3
|
+
valueLabel: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const PositionsValueCard: {
|
|
7
|
+
({ label, valueLabel, className, }: PositionsValueCardProps): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PositionsValueCardProps = {
|
|
2
|
+
label?: string;
|
|
3
|
+
valueLabel: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const PositionsValueCard: {
|
|
7
|
+
({ label, valueLabel, className, }: PositionsValueCardProps): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UserProfileInfo } from "../user-profile.types";
|
|
2
|
+
type UserInfoCardProps = {
|
|
3
|
+
user: UserProfileInfo;
|
|
4
|
+
onEditProfile?: () => void;
|
|
5
|
+
onDeposit?: () => void;
|
|
6
|
+
onWithdraw?: () => void;
|
|
7
|
+
/** Whether deposits are blocked for the user's geo location. */
|
|
8
|
+
isDepositBlocked?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const UserInfoCard: {
|
|
12
|
+
({ user, onEditProfile, onDeposit, onWithdraw, isDepositBlocked, className, }: UserInfoCardProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UserProfileInfo } from "../user-profile.types";
|
|
2
|
+
type UserInfoCardProps = {
|
|
3
|
+
user: UserProfileInfo;
|
|
4
|
+
onEditProfile?: () => void;
|
|
5
|
+
onDeposit?: () => void;
|
|
6
|
+
onWithdraw?: () => void;
|
|
7
|
+
/** Whether deposits are blocked for the user's geo location. */
|
|
8
|
+
isDepositBlocked?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const UserInfoCard: {
|
|
12
|
+
({ user, onEditProfile, onDeposit, onWithdraw, isDepositBlocked, className, }: UserInfoCardProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UserProfilePageProps } from "./user-profile.types";
|
|
2
|
+
export type { UserProfileActivity, UserProfileBalance, UserProfileConnectedExchange, UserProfileConnectedWallet, UserProfileInfo, UserProfilePageClassNames, UserProfilePageProps, UserProfilePosition, UserProfilePositionFilter, UserProfilePositionVenueShare, UserProfileSocialLink, UserProfileVenueBalance, } from "./user-profile.types";
|
|
3
|
+
export { USER_PROFILE_TAB_ACTIVITY, USER_PROFILE_TAB_OPEN_ORDERS, USER_PROFILE_TAB_POSITIONS, } from "./user-profile.constants";
|
|
4
|
+
export type { UserProfileTabValue } from "./user-profile.constants";
|
|
5
|
+
export declare const UserProfilePage: {
|
|
6
|
+
({ user, balanceChainsOverride, venueBalances: _venueBalances, balance, activePositions, closedPositions, activities, onEditProfile, onDeposit, onWithdraw, openOrders, initialPositionFilter, tab, onTabChange, onPositionClick, getPositionHref, onClaim, claimingPositionKeys, onActivityClick, getActivityHref, onOpenOrderClick, onCancelOrder, cancellingOrderIds, isLoadingPositions, isLoadingActivities, isLoadingOpenOrders, positionsError, activitiesError, openOrdersError, hasMoreActivePositions, isLoadingMoreActivePositions, onLoadMoreActivePositions, hasMoreClosedPositions, isLoadingMoreClosedPositions, onLoadMoreClosedPositions, onPositionFilterChange: onPositionFilterChangeProp, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, hasMoreOpenOrders, isLoadingMoreOpenOrders, onLoadMoreOpenOrders, classNames, onError, }: UserProfilePageProps & {
|
|
7
|
+
onError?: (error: Error) => void;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { UserProfilePageProps } from "./user-profile.types";
|
|
2
|
+
export type { UserProfileActivity, UserProfileBalance, UserProfileConnectedExchange, UserProfileConnectedWallet, UserProfileInfo, UserProfilePageClassNames, UserProfilePageProps, UserProfilePosition, UserProfilePositionFilter, UserProfilePositionVenueShare, UserProfileSocialLink, UserProfileVenueBalance, } from "./user-profile.types";
|
|
3
|
+
export { USER_PROFILE_TAB_ACTIVITY, USER_PROFILE_TAB_OPEN_ORDERS, USER_PROFILE_TAB_POSITIONS, } from "./user-profile.constants";
|
|
4
|
+
export type { UserProfileTabValue } from "./user-profile.constants";
|
|
5
|
+
export declare const UserProfilePage: {
|
|
6
|
+
({ user, balanceChainsOverride, venueBalances: _venueBalances, balance, activePositions, closedPositions, activities, onEditProfile, onDeposit, onWithdraw, openOrders, initialPositionFilter, tab, onTabChange, onPositionClick, getPositionHref, onClaim, claimingPositionKeys, onActivityClick, getActivityHref, onOpenOrderClick, onCancelOrder, cancellingOrderIds, isLoadingPositions, isLoadingActivities, isLoadingOpenOrders, positionsError, activitiesError, openOrdersError, hasMoreActivePositions, isLoadingMoreActivePositions, onLoadMoreActivePositions, hasMoreClosedPositions, isLoadingMoreClosedPositions, onLoadMoreClosedPositions, onPositionFilterChange: onPositionFilterChangeProp, hasMoreActivities, isLoadingMoreActivities, onLoadMoreActivities, hasMoreOpenOrders, isLoadingMoreOpenOrders, onLoadMoreOpenOrders, classNames, onError, }: UserProfilePageProps & {
|
|
7
|
+
onError?: (error: Error) => void;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UserProfilePositionFilter } from "./user-profile.types";
|
|
2
|
+
export declare const USER_PROFILE_TAB_POSITIONS: "positions";
|
|
3
|
+
export declare const USER_PROFILE_TAB_OPEN_ORDERS: "open-orders";
|
|
4
|
+
export declare const USER_PROFILE_TAB_ACTIVITY: "activity";
|
|
5
|
+
export type UserProfileTabValue = typeof USER_PROFILE_TAB_POSITIONS | typeof USER_PROFILE_TAB_OPEN_ORDERS | typeof USER_PROFILE_TAB_ACTIVITY;
|
|
6
|
+
export declare const USER_PROFILE_POSITION_FILTERS: {
|
|
7
|
+
value: UserProfilePositionFilter;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UserProfilePositionFilter } from "./user-profile.types";
|
|
2
|
+
export declare const USER_PROFILE_TAB_POSITIONS: "positions";
|
|
3
|
+
export declare const USER_PROFILE_TAB_OPEN_ORDERS: "open-orders";
|
|
4
|
+
export declare const USER_PROFILE_TAB_ACTIVITY: "activity";
|
|
5
|
+
export type UserProfileTabValue = typeof USER_PROFILE_TAB_POSITIONS | typeof USER_PROFILE_TAB_OPEN_ORDERS | typeof USER_PROFILE_TAB_ACTIVITY;
|
|
6
|
+
export declare const USER_PROFILE_POSITION_FILTERS: {
|
|
7
|
+
value: UserProfilePositionFilter;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import type { VenueLogoName } from "../../primitives/venue-logo/venue-logo.types";
|
|
2
|
+
import type { UserProfileTabValue } from "./user-profile.constants";
|
|
3
|
+
export interface UserProfileSocialLink {
|
|
4
|
+
platform: "twitter" | "discord" | "telegram";
|
|
5
|
+
handle?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface UserProfileConnectedExchange {
|
|
8
|
+
venue: VenueLogoName;
|
|
9
|
+
}
|
|
10
|
+
export interface UserProfileConnectedWallet {
|
|
11
|
+
/** Chain identifier, e.g. "evm" or "solana" */
|
|
12
|
+
chain: string;
|
|
13
|
+
/** Shortened wallet address, e.g. "0xec57...f8460" */
|
|
14
|
+
displayAddress: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UserProfileInfo {
|
|
17
|
+
/** Display name */
|
|
18
|
+
username: string;
|
|
19
|
+
/** Avatar image URL; falls back to default SVG when absent */
|
|
20
|
+
avatarUrl?: string | null;
|
|
21
|
+
/** Social handles shown as icons beside the username */
|
|
22
|
+
socialLinks?: UserProfileSocialLink[];
|
|
23
|
+
/** Connected exchanges displayed as overlapping venue logos */
|
|
24
|
+
connectedExchanges?: UserProfileConnectedExchange[];
|
|
25
|
+
/** Connected wallets with chain icons (Ethereum for EVM, Solana for Solana) */
|
|
26
|
+
connectedWallets?: UserProfileConnectedWallet[];
|
|
27
|
+
/** Shortened wallet address displayed next to exchange logos, e.g. "0x82b1E...CeDB0" */
|
|
28
|
+
displayAddress?: string;
|
|
29
|
+
/** Primary social handle displayed in connected accounts section, e.g. "CryptoPapay" */
|
|
30
|
+
socialHandle?: string;
|
|
31
|
+
/** Venue logo displayed next to the socialHandle */
|
|
32
|
+
socialHandleVenue?: VenueLogoName;
|
|
33
|
+
}
|
|
34
|
+
export interface UserProfileVenueBalance {
|
|
35
|
+
chain: string;
|
|
36
|
+
accountCount?: number;
|
|
37
|
+
/** Balance formatted as a string, e.g. "$1,234.56" */
|
|
38
|
+
balanceLabel: string;
|
|
39
|
+
}
|
|
40
|
+
export interface UserProfileBalance {
|
|
41
|
+
/** Formatted total value, e.g. "$103,456.00" */
|
|
42
|
+
totalLabel: string;
|
|
43
|
+
/** Formatted change value, e.g. "+$1,234.56" (deprecated; optional) */
|
|
44
|
+
changeLabel?: string;
|
|
45
|
+
/** Formatted change percentage, e.g. "+12.3%" (deprecated; optional) */
|
|
46
|
+
changePercentLabel?: string;
|
|
47
|
+
/** True when the change is positive (green), false when negative (deprecated; optional) */
|
|
48
|
+
isPositive?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/** One venue line under the outcome pill (API `venueBreakdown` entry). */
|
|
51
|
+
export interface UserProfilePositionVenueShare {
|
|
52
|
+
venue: VenueLogoName;
|
|
53
|
+
/** Localized shares string, e.g. "103.4 shares" */
|
|
54
|
+
sharesLabel: string;
|
|
55
|
+
}
|
|
56
|
+
export interface UserProfilePosition {
|
|
57
|
+
id: string;
|
|
58
|
+
/** Event ID used for deep-link navigation to event details. */
|
|
59
|
+
eventId?: string;
|
|
60
|
+
/** Market ID used to preselect a market on the event details page. */
|
|
61
|
+
marketId?: string;
|
|
62
|
+
/** Market thumbnail image URL */
|
|
63
|
+
thumbnailSrc: string;
|
|
64
|
+
/** Market title */
|
|
65
|
+
title: string;
|
|
66
|
+
/** Outcome name for the pill only, e.g. "Yes" (no price). */
|
|
67
|
+
outcomeLabel: string;
|
|
68
|
+
/** Per-venue position sizes with logos below the pill. */
|
|
69
|
+
venueShareBreakdown: UserProfilePositionVenueShare[];
|
|
70
|
+
/** Average price, e.g. "29¢" */
|
|
71
|
+
averageLabel: string;
|
|
72
|
+
/** Current price, e.g. "25¢" */
|
|
73
|
+
currentLabel: string;
|
|
74
|
+
/** Total value, e.g. "$25.86" */
|
|
75
|
+
valueLabel: string;
|
|
76
|
+
/** P&L label, e.g. "-$4.14 (-13.79%)" */
|
|
77
|
+
pnlLabel: string;
|
|
78
|
+
/** True when P&L is positive */
|
|
79
|
+
isPnlPositive: boolean;
|
|
80
|
+
/** Bucket the backend placed this row in. */
|
|
81
|
+
status: "active" | "closed";
|
|
82
|
+
/** Raw VenueMarket.status for the primary market in the group. */
|
|
83
|
+
marketStatus: "unopened" | "paused" | "open" | "closed" | "resolved";
|
|
84
|
+
/** Aggregated winner across sibling outcomes; null until any venue resolves. */
|
|
85
|
+
winner: boolean | null;
|
|
86
|
+
/** Earliest non-null resolutionDate across sibling markets, ISO. */
|
|
87
|
+
resolutionDate: string | null;
|
|
88
|
+
/** Closed-table total traded label, e.g. "$310.11". */
|
|
89
|
+
closedTotalTradedLabel?: string;
|
|
90
|
+
/** Closed-table amount won label, e.g. "$469.95". */
|
|
91
|
+
closedAmountWonLabel?: string;
|
|
92
|
+
/** Closed-table return label, e.g. "+51.54%". */
|
|
93
|
+
closedReturnLabel?: string;
|
|
94
|
+
/** Redeem state used by the closed-table Claim column. */
|
|
95
|
+
closedClaimStatus?: "eligible" | "pending" | "redeemed" | "ineligible";
|
|
96
|
+
/** Winning outcome ids used to redeem closed winning positions. */
|
|
97
|
+
winningOutcomeIds?: string[];
|
|
98
|
+
}
|
|
99
|
+
export type UserProfileActivityKind = "trade" | "withdrawal" | "deposit" | "bridge" | "user_op";
|
|
100
|
+
export interface UserProfileTradeActivity {
|
|
101
|
+
kind: "trade";
|
|
102
|
+
id: string;
|
|
103
|
+
/** Event ID used for deep-link navigation when available. */
|
|
104
|
+
eventId?: string;
|
|
105
|
+
/** Market ID used to preselect the market on event details when available. */
|
|
106
|
+
marketId?: string;
|
|
107
|
+
/** Whether the activity failed and should render in a degraded state. */
|
|
108
|
+
isFailed?: boolean;
|
|
109
|
+
/** Whether the row should use error-colored text because the activity has an error. */
|
|
110
|
+
hasError?: boolean;
|
|
111
|
+
/** Activity type, e.g. "Buy", "Sell" */
|
|
112
|
+
type: string;
|
|
113
|
+
/** Market thumbnail image URL */
|
|
114
|
+
thumbnailSrc: string;
|
|
115
|
+
/** Market title */
|
|
116
|
+
title: string;
|
|
117
|
+
/** Venue logo for the market */
|
|
118
|
+
venue: VenueLogoName;
|
|
119
|
+
/** Outcome label, e.g. "Yes 29¢" */
|
|
120
|
+
outcomeLabel: string;
|
|
121
|
+
/** Number of shares, e.g. "103.4 shares" */
|
|
122
|
+
sharesLabel: string;
|
|
123
|
+
/** Amount label, e.g. "$100.00" */
|
|
124
|
+
amountLabel: string;
|
|
125
|
+
/** Time label, e.g. "3d ago" */
|
|
126
|
+
timeLabel: string;
|
|
127
|
+
}
|
|
128
|
+
/** Non-trade activity row: withdrawal / deposit / bridge / user_op. */
|
|
129
|
+
export interface UserProfileTransferActivity {
|
|
130
|
+
kind: "withdrawal" | "deposit" | "bridge" | "user_op";
|
|
131
|
+
id: string;
|
|
132
|
+
/** Whether the activity failed and should render in a degraded state. */
|
|
133
|
+
isFailed?: boolean;
|
|
134
|
+
/** Whether the row should use error-colored text because the activity has an error. */
|
|
135
|
+
hasError?: boolean;
|
|
136
|
+
/** Header label, e.g. "Withdraw", "Deposit", "Bridge", "Wallet op". */
|
|
137
|
+
type: string;
|
|
138
|
+
/** Title, e.g. "Withdraw USDC". */
|
|
139
|
+
title: string;
|
|
140
|
+
/** Subtitle line, e.g. "to 0xab…cd · base". */
|
|
141
|
+
subtitleLabel: string;
|
|
142
|
+
/** Right-side amount, e.g. "-100 USDC". May be empty. */
|
|
143
|
+
amountLabel: string;
|
|
144
|
+
/** Time label, e.g. "3d ago". */
|
|
145
|
+
timeLabel: string;
|
|
146
|
+
/** Deposit source — determines the icon in the thumbnail square. Only set when kind is "deposit". */
|
|
147
|
+
depositSource?: "wallet" | "crypto" | "card";
|
|
148
|
+
/** Chain ID for chain-aware deposit icons. */
|
|
149
|
+
chainId?: string | number;
|
|
150
|
+
}
|
|
151
|
+
export type UserProfileActivity = UserProfileTradeActivity | UserProfileTransferActivity;
|
|
152
|
+
export interface UserProfileOpenOrder {
|
|
153
|
+
id: string;
|
|
154
|
+
/** Market thumbnail image URL */
|
|
155
|
+
thumbnailSrc: string;
|
|
156
|
+
/** Market title */
|
|
157
|
+
title: string;
|
|
158
|
+
/** Outcome name for the pill, e.g. "Yes" */
|
|
159
|
+
outcomeLabel: string;
|
|
160
|
+
/** Venue logo for the market */
|
|
161
|
+
venue: VenueLogoName;
|
|
162
|
+
/** Filled-out-of-total label, e.g. "0/150" */
|
|
163
|
+
filledLabel: string;
|
|
164
|
+
/** Total notional label, e.g. "$25.86" */
|
|
165
|
+
valueLabel: string;
|
|
166
|
+
/** Raw order status from API (used to gate Cancel availability). */
|
|
167
|
+
status: string;
|
|
168
|
+
/** DAG run ID; present once the order has been picked up by the processing queue. */
|
|
169
|
+
dagRunId?: string | null;
|
|
170
|
+
}
|
|
171
|
+
export type UserProfilePositionFilter = "active" | "closed";
|
|
172
|
+
export type UserProfilePageClassNames = Partial<{
|
|
173
|
+
root: string;
|
|
174
|
+
topRow: string;
|
|
175
|
+
leftColumn: string;
|
|
176
|
+
rightColumn: string;
|
|
177
|
+
userInfoCard: string;
|
|
178
|
+
balanceDisplay: string;
|
|
179
|
+
balancesCard: string;
|
|
180
|
+
positionsActivity: string;
|
|
181
|
+
}>;
|
|
182
|
+
export type UserProfileCancelOrderHandler = (order: UserProfileOpenOrder) => void;
|
|
183
|
+
export interface UserProfilePageProps {
|
|
184
|
+
/** User information. When omitted, page resolves current authenticated user via hooks. */
|
|
185
|
+
user?: UserProfileInfo;
|
|
186
|
+
/** Override for balances-by-network tooltip in storybook/demos; when omitted, hooks are used. */
|
|
187
|
+
balanceChainsOverride?: Array<{
|
|
188
|
+
/** Stable key for the balance chain row. */
|
|
189
|
+
key: string;
|
|
190
|
+
/** User-facing label for the chain. */
|
|
191
|
+
label: string;
|
|
192
|
+
/** Numeric balance value shown for the chain. */
|
|
193
|
+
balance: number;
|
|
194
|
+
/** Number of connected accounts contributing to this chain balance. */
|
|
195
|
+
accountCount: number;
|
|
196
|
+
/**
|
|
197
|
+
* Optional venues that hold this chain's balance (renders venue logos in tooltip).
|
|
198
|
+
* Unknown values are ignored at render time.
|
|
199
|
+
*/
|
|
200
|
+
venues?: string[];
|
|
201
|
+
}>;
|
|
202
|
+
/** Venue balances shown in the sidebar card */
|
|
203
|
+
venueBalances?: UserProfileVenueBalance[];
|
|
204
|
+
/** Consolidated Balance / P&L data */
|
|
205
|
+
balance?: UserProfileBalance;
|
|
206
|
+
/** Active-tab positions (size > threshold && market not resolved). */
|
|
207
|
+
activePositions?: UserProfilePosition[];
|
|
208
|
+
/** Closed-tab positions (sold, resolved, dust). */
|
|
209
|
+
closedPositions?: UserProfilePosition[];
|
|
210
|
+
/** Initial positions filter selection. */
|
|
211
|
+
initialPositionFilter?: UserProfilePositionFilter;
|
|
212
|
+
/**
|
|
213
|
+
* Active tab — controlled. Pair with `onTabChange` so the host (e.g. router /
|
|
214
|
+
* URL state) drives the selected tab. Defaults to "positions" when omitted.
|
|
215
|
+
*/
|
|
216
|
+
tab?: UserProfileTabValue;
|
|
217
|
+
/** Fires when the user clicks a tab. Use to reflect the change in your URL. */
|
|
218
|
+
onTabChange?: (tab: UserProfileTabValue) => void;
|
|
219
|
+
/** Open orders (resting / partially filled) */
|
|
220
|
+
openOrders?: UserProfileOpenOrder[];
|
|
221
|
+
/** Activity items */
|
|
222
|
+
activities?: UserProfileActivity[];
|
|
223
|
+
/** Called when the user clicks "Edit" on the user info card */
|
|
224
|
+
onEditProfile?: () => void;
|
|
225
|
+
/** Called when the user clicks "Deposit" */
|
|
226
|
+
onDeposit?: () => void;
|
|
227
|
+
/** Called when the user clicks "Withdraw" */
|
|
228
|
+
onWithdraw?: () => void;
|
|
229
|
+
/** Called when a position row is clicked */
|
|
230
|
+
onPositionClick?: (position: UserProfilePosition) => void;
|
|
231
|
+
/** Optional href for a position row (enables ctrl/cmd/middle-click to open in a new tab). */
|
|
232
|
+
getPositionHref?: (position: UserProfilePosition) => string | undefined;
|
|
233
|
+
/** Called when the user claims a closed winning position. */
|
|
234
|
+
onClaim?: (position: UserProfilePosition) => Promise<void> | void;
|
|
235
|
+
/** Map of claim key (marketId or position id) to loading state while claim is in-flight. */
|
|
236
|
+
claimingPositionKeys?: Record<string, boolean>;
|
|
237
|
+
/** Called when an activity row is clicked */
|
|
238
|
+
onActivityClick?: (activity: UserProfileActivity) => void;
|
|
239
|
+
/** Optional href for an activity row (enables ctrl/cmd/middle-click to open in a new tab). */
|
|
240
|
+
getActivityHref?: (activity: UserProfileActivity) => string | undefined;
|
|
241
|
+
/** Called when an open-order row is clicked */
|
|
242
|
+
onOpenOrderClick?: (order: UserProfileOpenOrder) => void;
|
|
243
|
+
/** Called when the user clicks Cancel on an open order. */
|
|
244
|
+
onCancelOrder?: UserProfileCancelOrderHandler;
|
|
245
|
+
/** Map of orderId → true while a cancel request is in-flight. */
|
|
246
|
+
cancellingOrderIds?: Record<string, boolean>;
|
|
247
|
+
/** Whether to show loading state on the currently-visible positions tab. */
|
|
248
|
+
isLoadingPositions?: boolean;
|
|
249
|
+
/** Whether the activity tab content is currently loading. */
|
|
250
|
+
isLoadingActivities?: boolean;
|
|
251
|
+
isLoadingOpenOrders?: boolean;
|
|
252
|
+
/** Whether to show error state on the currently-visible positions tab. */
|
|
253
|
+
positionsError?: boolean;
|
|
254
|
+
/** Whether the activity tab should render its error state. */
|
|
255
|
+
activitiesError?: boolean;
|
|
256
|
+
openOrdersError?: boolean;
|
|
257
|
+
/** Active-tab pagination */
|
|
258
|
+
hasMoreActivePositions?: boolean;
|
|
259
|
+
isLoadingMoreActivePositions?: boolean;
|
|
260
|
+
onLoadMoreActivePositions?: () => void;
|
|
261
|
+
/** Closed-tab pagination */
|
|
262
|
+
hasMoreClosedPositions?: boolean;
|
|
263
|
+
isLoadingMoreClosedPositions?: boolean;
|
|
264
|
+
onLoadMoreClosedPositions?: () => void;
|
|
265
|
+
/** Called when the user switches between Active and Closed filter pills. */
|
|
266
|
+
onPositionFilterChange?: (filter: "active" | "closed") => void;
|
|
267
|
+
/** Whether there are more activity items to fetch in connected mode. */
|
|
268
|
+
hasMoreActivities?: boolean;
|
|
269
|
+
/** Loading state for activity pagination. */
|
|
270
|
+
isLoadingMoreActivities?: boolean;
|
|
271
|
+
/** Cursor pagination handler for activity. */
|
|
272
|
+
onLoadMoreActivities?: () => void;
|
|
273
|
+
/** Whether there are more open orders to fetch in connected mode. */
|
|
274
|
+
hasMoreOpenOrders?: boolean;
|
|
275
|
+
/** Loading state for open-orders pagination. */
|
|
276
|
+
isLoadingMoreOpenOrders?: boolean;
|
|
277
|
+
/** Cursor pagination handler for open orders. */
|
|
278
|
+
onLoadMoreOpenOrders?: () => void;
|
|
279
|
+
/** Custom class names for sub-sections */
|
|
280
|
+
classNames?: UserProfilePageClassNames;
|
|
281
|
+
}
|