@agg-market/ui 5.0.0 → 7.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 +42 -27
- package/dist/chunk-6I474QXG.mjs +2736 -0
- package/dist/chunk-AVHMI47G.mjs +2409 -0
- package/dist/chunk-BXW3VIKV.mjs +90 -0
- package/dist/{chunk-5K7VXAYM.mjs → chunk-EEQPPN7N.mjs} +2 -4
- package/dist/chunk-EERL6BZF.mjs +997 -0
- package/dist/chunk-KQKLLL4D.mjs +730 -0
- package/dist/chunk-KZOQW6NT.mjs +0 -0
- package/dist/chunk-L5U7RGJV.mjs +1211 -0
- package/dist/{connect-button.js → chunk-MUB7NYWZ.mjs} +1039 -876
- package/dist/chunk-OAJBTVZT.mjs +119 -0
- package/dist/{chunk-QDMHLRDY.mjs → chunk-OVQVAUAI.mjs} +167 -40
- package/dist/chunk-ZYUJ7YEJ.mjs +645 -0
- package/dist/events.d.mts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/{event-market-page.js → events.js} +5552 -5315
- package/dist/events.mjs +16 -0
- package/dist/index.d.mts +1 -79
- package/dist/index.d.ts +1 -79
- package/dist/index.js +9186 -8374
- package/dist/index.mjs +644 -170
- package/dist/modals.d.mts +1 -0
- package/dist/modals.d.ts +1 -0
- package/dist/{onboarding-modal.js → modals.js} +3472 -1335
- package/dist/modals.mjs +24 -0
- package/dist/pages.d.mts +1 -0
- package/dist/pages.d.ts +1 -0
- package/dist/pages.js +8590 -0
- package/dist/pages.mjs +16 -0
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/{market-details.js → primitives.js} +3914 -3741
- package/dist/{icon.mjs → primitives.mjs} +70 -9
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.d.mts +1 -0
- package/dist/trading.d.ts +1 -0
- package/dist/{place-order.js → trading.js} +2404 -1409
- package/dist/trading.mjs +65 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +31 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +31 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +83 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +83 -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 +1 -0
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/deposit/deposit-modal.constants.d.mts +9 -0
- package/dist/types/deposit/deposit-modal.constants.d.ts +9 -0
- package/dist/{deposit-modal.d.mts → types/deposit/deposit-modal.types.d.mts} +3 -10
- package/dist/{deposit-modal.d.ts → types/deposit/deposit-modal.types.d.ts} +3 -10
- package/dist/types/deposit/index.d.mts +6 -0
- package/dist/types/deposit/index.d.ts +6 -0
- package/dist/types/deposit/steps/card-deposit.d.mts +7 -0
- package/dist/types/deposit/steps/card-deposit.d.ts +7 -0
- package/dist/types/deposit/steps/crypto-transfer.d.mts +7 -0
- package/dist/types/deposit/steps/crypto-transfer.d.ts +7 -0
- package/dist/types/deposit/steps/deposit-method.d.mts +7 -0
- package/dist/types/deposit/steps/deposit-method.d.ts +7 -0
- package/dist/types/deposit/steps/kalshi-deposit.d.mts +5 -0
- package/dist/types/deposit/steps/kalshi-deposit.d.ts +5 -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/events/index.d.mts +4 -0
- package/dist/types/events/index.d.ts +4 -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 +46 -0
- package/dist/types/events/item/event-list-item.types.d.ts +46 -0
- package/dist/types/events/item/event-list-item.utils.d.mts +23 -0
- package/dist/types/events/item/event-list-item.utils.d.ts +23 -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.constants.d.mts +10 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.ts +10 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +53 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +53 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.mts +26 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.ts +26 -0
- package/dist/types/events/item-details/index.d.mts +6 -0
- package/dist/types/events/item-details/index.d.ts +6 -0
- package/dist/types/events/list/event-list.constants.d.mts +3 -0
- package/dist/types/events/list/event-list.constants.d.ts +3 -0
- package/dist/types/events/list/event-list.types.d.mts +21 -0
- package/dist/types/events/list/event-list.types.d.ts +21 -0
- package/dist/types/events/list/event-list.utils.d.mts +6 -0
- package/dist/types/events/list/event-list.utils.d.ts +6 -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 +6 -0
- package/dist/types/events/market-details/index.d.ts +6 -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 +63 -0
- package/dist/types/events/market-details/market-details.types.d.ts +63 -0
- package/dist/types/events/market-details/market-details.utils.d.mts +46 -0
- package/dist/types/events/market-details/market-details.utils.d.ts +46 -0
- package/dist/types/index.d.mts +9 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/modals/index.d.mts +4 -0
- package/dist/types/modals/index.d.ts +4 -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 +55 -0
- package/dist/types/onboarding/onboarding-modal.types.d.ts +55 -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 +42 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +42 -0
- package/dist/types/pages/event-market/index.d.mts +6 -0
- package/dist/types/pages/event-market/index.d.ts +6 -0
- package/dist/types/pages/home/home.constants.d.mts +8 -0
- package/dist/types/pages/home/home.constants.d.ts +8 -0
- package/dist/{home-page.d.ts → types/pages/home/home.types.d.mts} +8 -18
- package/dist/{home-page.d.mts → types/pages/home/home.types.d.ts} +8 -18
- package/dist/types/pages/home/home.utils.d.mts +3 -0
- package/dist/types/pages/home/home.utils.d.ts +3 -0
- package/dist/types/pages/home/index.d.mts +6 -0
- package/dist/types/pages/home/index.d.ts +6 -0
- package/dist/types/pages/index.d.mts +3 -0
- package/dist/types/pages/index.d.ts +3 -0
- package/dist/types/pages/user-profile/components/activity-row.d.mts +10 -0
- package/dist/types/pages/user-profile/components/activity-row.d.ts +10 -0
- package/dist/types/pages/user-profile/components/balance-display.d.mts +12 -0
- package/dist/types/pages/user-profile/components/balance-display.d.ts +12 -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/position-row.d.mts +10 -0
- package/dist/types/pages/user-profile/components/position-row.d.ts +10 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +14 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +14 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +11 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +11 -0
- package/dist/types/pages/user-profile/index.d.mts +6 -0
- package/dist/types/pages/user-profile/index.d.ts +6 -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/{user-profile-page.d.ts → types/pages/user-profile/user-profile.types.d.mts} +12 -22
- package/dist/{user-profile-page.d.mts → types/pages/user-profile/user-profile.types.d.ts} +12 -22
- 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 +18 -0
- package/dist/types/primitives/badge/badge.types.d.ts +18 -0
- package/dist/types/primitives/badge/index.d.mts +7 -0
- package/dist/types/primitives/badge/index.d.ts +7 -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 +12 -0
- package/dist/types/primitives/button/button.types.d.ts +12 -0
- package/dist/types/primitives/button/index.d.mts +6 -0
- package/dist/types/primitives/button/index.d.ts +6 -0
- package/dist/types/primitives/card/card.types.d.mts +3 -0
- package/dist/types/primitives/card/card.types.d.ts +3 -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.d.mts +10 -0
- package/dist/types/primitives/chart/chart-type-switch.d.ts +10 -0
- package/dist/{chart.d.mts → types/primitives/chart/index.d.mts} +14 -11
- package/dist/{chart.d.ts → types/primitives/chart/index.d.ts} +14 -11
- package/dist/types/primitives/hello-world.d.mts +4 -0
- package/dist/types/primitives/hello-world.d.ts +4 -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 +9 -0
- package/dist/types/primitives/icon/icon.types.d.ts +9 -0
- package/dist/types/primitives/icon/icon.utils.d.mts +2 -0
- package/dist/types/primitives/icon/icon.utils.d.ts +2 -0
- package/dist/types/primitives/icon/index.d.mts +53 -0
- package/dist/types/primitives/icon/index.d.ts +53 -0
- package/dist/types/primitives/icon/registry.d.mts +194 -0
- package/dist/types/primitives/icon/registry.d.ts +194 -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/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/bank.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bank.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/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.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/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/info.d.mts +5 -0
- package/dist/types/primitives/icon/svg/info.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/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/profile.d.mts +5 -0
- package/dist/types/primitives/icon/svg/profile.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/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/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/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.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 +5 -0
- package/dist/types/primitives/icon/types.d.ts +5 -0
- package/dist/types/primitives/index.d.mts +18 -0
- package/dist/types/primitives/index.d.ts +18 -0
- package/dist/types/primitives/inline-alert/index.d.mts +16 -0
- package/dist/types/primitives/inline-alert/index.d.ts +16 -0
- package/dist/types/primitives/loading-icon/index.d.mts +11 -0
- package/dist/types/primitives/loading-icon/index.d.ts +11 -0
- package/dist/types/primitives/modal/index.d.mts +10 -0
- package/dist/types/primitives/modal/index.d.ts +10 -0
- package/dist/types/primitives/modal/modal.types.d.mts +54 -0
- package/dist/types/primitives/modal/modal.types.d.ts +54 -0
- package/dist/{number-value.d.mts → types/primitives/number-value.d.mts} +3 -5
- package/dist/{number-value.d.ts → types/primitives/number-value.d.ts} +3 -5
- package/dist/types/primitives/search/index.d.mts +6 -0
- package/dist/types/primitives/search/index.d.ts +6 -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.types.d.mts +96 -0
- package/dist/types/primitives/search/search.types.d.ts +96 -0
- package/dist/{select.d.mts → types/primitives/select/index.d.mts} +3 -5
- package/dist/{select.d.ts → types/primitives/select/index.d.ts} +3 -5
- package/dist/types/primitives/skeleton/index.d.mts +7 -0
- package/dist/types/primitives/skeleton/index.d.ts +7 -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/{skeleton.d.mts → types/primitives/skeleton/skeleton.types.d.mts} +6 -9
- package/dist/{skeleton.d.ts → types/primitives/skeleton/skeleton.types.d.ts} +6 -9
- 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/settlement-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +5 -0
- package/dist/{state-message.d.mts → types/primitives/state-message/index.d.mts} +2 -3
- package/dist/{state-message.d.ts → types/primitives/state-message/index.d.ts} +2 -3
- package/dist/{switch-button.d.mts → types/primitives/switch-button/index.d.mts} +4 -7
- package/dist/{switch-button.d.ts → types/primitives/switch-button/index.d.ts} +4 -7
- package/dist/types/primitives/tabs/index.d.mts +6 -0
- package/dist/types/primitives/tabs/index.d.ts +6 -0
- package/dist/types/primitives/tabs/tabs.types.d.mts +24 -0
- package/dist/types/primitives/tabs/tabs.types.d.ts +24 -0
- package/dist/types/primitives/tabs/tabs.utils.d.mts +14 -0
- package/dist/types/primitives/tabs/tabs.utils.d.ts +14 -0
- package/dist/types/primitives/typography/index.d.mts +7 -0
- package/dist/types/primitives/typography/index.d.ts +7 -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 +8 -0
- package/dist/types/primitives/typography/typography.types.d.ts +8 -0
- package/dist/types/primitives/venue-logo/index.d.mts +8 -0
- package/dist/types/primitives/venue-logo/index.d.ts +8 -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/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-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-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 +9 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +9 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +17 -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/{profile-modal.d.mts → types/profile/profile-modal.types.d.mts} +4 -11
- package/dist/{profile-modal.d.ts → types/profile/profile-modal.types.d.ts} +4 -11
- package/dist/types/profile/tabs/about-tab.d.mts +16 -0
- package/dist/types/profile/tabs/about-tab.d.ts +16 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +18 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +18 -0
- package/dist/types/shared/constants.d.mts +23 -0
- package/dist/types/shared/constants.d.ts +23 -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 +4 -0
- package/dist/types/trading/index.d.ts +4 -0
- package/dist/{place-order.d.ts → types/trading/place-order/index.d.mts} +3 -7
- package/dist/{place-order.d.mts → types/trading/place-order/index.d.ts} +3 -7
- package/dist/{settlement.d.ts → types/trading/settlement/index.d.mts} +3 -7
- package/dist/{settlement.d.mts → types/trading/settlement/index.d.ts} +3 -7
- package/dist/{types-BImwqY4o.d.ts → types/trading/types.d.mts} +61 -64
- package/dist/{types-BImwqY4o.d.mts → types/trading/types.d.ts} +61 -64
- 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/kalshi-withdraw.d.mts +5 -0
- package/dist/types/withdraw/steps/kalshi-withdraw.d.ts +5 -0
- package/dist/types/withdraw/steps/venue-selection.d.mts +6 -0
- package/dist/types/withdraw/steps/venue-selection.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +8 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +8 -0
- package/dist/types/withdraw/steps/withdraw-method.d.mts +7 -0
- package/dist/types/withdraw/steps/withdraw-method.d.ts +7 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.mts +9 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.ts +9 -0
- package/dist/{withdraw-modal.d.mts → types/withdraw/withdraw-modal.types.d.mts} +3 -10
- package/dist/{withdraw-modal.d.ts → types/withdraw/withdraw-modal.types.d.ts} +3 -10
- package/package.json +29 -291
- package/dist/badge.d.mts +0 -28
- package/dist/badge.d.ts +0 -28
- package/dist/badge.js +0 -110
- package/dist/badge.mjs +0 -9
- package/dist/button.d.mts +0 -20
- package/dist/button.d.ts +0 -20
- package/dist/button.js +0 -183
- package/dist/button.mjs +0 -8
- package/dist/card.d.mts +0 -10
- package/dist/card.d.ts +0 -10
- package/dist/card.js +0 -88
- package/dist/card.mjs +0 -7
- package/dist/chart.js +0 -438
- package/dist/chart.mjs +0 -8
- package/dist/chunk-34IRJYSU.mjs +0 -146
- package/dist/chunk-3QLOUBDJ.mjs +0 -483
- package/dist/chunk-3W7NBJLU.mjs +0 -371
- package/dist/chunk-4343LYSH.mjs +0 -45
- package/dist/chunk-4S3I6X7F.mjs +0 -855
- package/dist/chunk-4VUDTWH7.mjs +0 -42
- package/dist/chunk-5ADMXO3Y.mjs +0 -456
- package/dist/chunk-6JG6I5AY.mjs +0 -654
- package/dist/chunk-BNDFQPHF.mjs +0 -9
- package/dist/chunk-CTYJVVHJ.mjs +0 -334
- package/dist/chunk-DHBHKIJR.mjs +0 -1049
- package/dist/chunk-ERGNR6UQ.mjs +0 -67
- package/dist/chunk-FO263M3V.mjs +0 -10
- package/dist/chunk-FO2QCB4Z.mjs +0 -35
- package/dist/chunk-GFBF2J3Y.mjs +0 -328
- package/dist/chunk-GJ4U5NCE.mjs +0 -134
- package/dist/chunk-IGPNIM2B.mjs +0 -83
- package/dist/chunk-K6IJ4WBM.mjs +0 -67
- package/dist/chunk-KAGYJ4XT.mjs +0 -126
- package/dist/chunk-KIYMVWL4.mjs +0 -280
- package/dist/chunk-LCZKSITC.mjs +0 -162
- package/dist/chunk-M4RJHRFT.mjs +0 -445
- package/dist/chunk-MJHKBCXQ.mjs +0 -379
- package/dist/chunk-MKVGQ7AS.mjs +0 -168
- package/dist/chunk-NDG43KGL.mjs +0 -44
- package/dist/chunk-NH2G3POM.mjs +0 -470
- package/dist/chunk-OBCHURW5.mjs +0 -64
- package/dist/chunk-OJVTGNIF.mjs +0 -230
- package/dist/chunk-PORVP72S.mjs +0 -277
- package/dist/chunk-PZTHM6WG.mjs +0 -1340
- package/dist/chunk-Q6DGDBPV.mjs +0 -774
- package/dist/chunk-QLMVKLNJ.mjs +0 -669
- package/dist/chunk-S3H63TQ5.mjs +0 -537
- package/dist/chunk-T7TATHPD.mjs +0 -313
- package/dist/chunk-XUCS575S.mjs +0 -65
- package/dist/chunk-YJA5VQW6.mjs +0 -167
- package/dist/chunk-ZFMCCBP6.mjs +0 -25
- package/dist/connect-button.d.mts +0 -40
- package/dist/connect-button.d.ts +0 -40
- package/dist/connect-button.mjs +0 -14
- package/dist/deposit-modal.js +0 -2801
- package/dist/deposit-modal.mjs +0 -15
- package/dist/event-list-item-details.d.mts +0 -11
- package/dist/event-list-item-details.d.ts +0 -11
- package/dist/event-list-item-details.js +0 -3711
- package/dist/event-list-item-details.mjs +0 -23
- package/dist/event-list-item-details.types-CMbXOrT-.d.ts +0 -53
- package/dist/event-list-item-details.types-DekJKeMD.d.mts +0 -53
- package/dist/event-list-item.d.mts +0 -10
- package/dist/event-list-item.d.ts +0 -10
- package/dist/event-list-item.js +0 -2821
- package/dist/event-list-item.mjs +0 -20
- package/dist/event-list-item.types-Y6IeJ4e4.d.mts +0 -46
- package/dist/event-list-item.types-Y6IeJ4e4.d.ts +0 -46
- package/dist/event-list.d.mts +0 -9
- package/dist/event-list.d.ts +0 -9
- package/dist/event-list.js +0 -3802
- package/dist/event-list.mjs +0 -23
- package/dist/event-list.types-CkAAUqwW.d.mts +0 -13
- package/dist/event-list.types-CkAAUqwW.d.ts +0 -13
- package/dist/event-market-page.d.mts +0 -52
- package/dist/event-market-page.d.ts +0 -52
- package/dist/event-market-page.mjs +0 -30
- package/dist/hello-world.d.mts +0 -8
- package/dist/hello-world.d.ts +0 -8
- package/dist/hello-world.js +0 -92
- package/dist/hello-world.mjs +0 -8
- package/dist/home-page.js +0 -4066
- package/dist/home-page.mjs +0 -24
- package/dist/icon.d.mts +0 -193
- package/dist/icon.d.ts +0 -193
- package/dist/icon.js +0 -1465
- package/dist/loading-icon.d.mts +0 -14
- package/dist/loading-icon.d.ts +0 -14
- package/dist/loading-icon.js +0 -112
- package/dist/loading-icon.mjs +0 -8
- package/dist/market-details.d.mts +0 -73
- package/dist/market-details.d.ts +0 -73
- package/dist/market-details.mjs +0 -24
- package/dist/modal.d.mts +0 -66
- package/dist/modal.d.ts +0 -66
- package/dist/modal.js +0 -321
- package/dist/modal.mjs +0 -9
- package/dist/number-value.js +0 -67
- package/dist/number-value.mjs +0 -7
- package/dist/onboarding-modal.d.mts +0 -88
- package/dist/onboarding-modal.d.ts +0 -88
- package/dist/onboarding-modal.mjs +0 -24
- package/dist/place-order.mjs +0 -18
- package/dist/profile-modal.js +0 -2447
- package/dist/profile-modal.mjs +0 -14
- package/dist/registry-DfSCFAdC.d.mts +0 -178
- package/dist/registry-DfSCFAdC.d.ts +0 -178
- package/dist/search.d.mts +0 -51
- package/dist/search.d.ts +0 -51
- package/dist/search.js +0 -1957
- package/dist/search.mjs +0 -13
- package/dist/select.js +0 -1552
- package/dist/select.mjs +0 -11
- package/dist/settlement.js +0 -2445
- package/dist/settlement.mjs +0 -15
- package/dist/skeleton.js +0 -490
- package/dist/skeleton.mjs +0 -10
- package/dist/state-message.js +0 -1629
- package/dist/state-message.mjs +0 -14
- package/dist/switch-button.js +0 -191
- package/dist/switch-button.mjs +0 -7
- package/dist/tabs.d.mts +0 -31
- package/dist/tabs.d.ts +0 -31
- package/dist/tabs.js +0 -2078
- package/dist/tabs.mjs +0 -12
- package/dist/types-BVj9ky9P.d.mts +0 -3
- package/dist/types-BVj9ky9P.d.ts +0 -3
- package/dist/typography.d.mts +0 -18
- package/dist/typography.d.ts +0 -18
- package/dist/typography.js +0 -93
- package/dist/typography.mjs +0 -9
- package/dist/user-profile-page.js +0 -3081
- package/dist/user-profile-page.mjs +0 -15
- package/dist/venue-logo.d.mts +0 -13
- package/dist/venue-logo.d.ts +0 -13
- package/dist/venue-logo.js +0 -323
- package/dist/venue-logo.mjs +0 -10
- package/dist/venue-logo.types-CGUc22ly.d.mts +0 -19
- package/dist/venue-logo.types-Dqr39S1-.d.ts +0 -19
- package/dist/withdraw-modal.js +0 -2449
- package/dist/withdraw-modal.mjs +0 -14
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
|
|
3
|
-
type SwitchButtonOption<Value extends string = string> = {
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type SwitchButtonOption<Value extends string = string> = {
|
|
4
3
|
value: Value;
|
|
5
4
|
label: ReactNode;
|
|
6
5
|
ariaLabel?: string;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
};
|
|
9
|
-
type SwitchButtonProps<Value extends string = string> = {
|
|
8
|
+
export type SwitchButtonProps<Value extends string = string> = {
|
|
10
9
|
options: SwitchButtonOption<Value>[];
|
|
11
10
|
value: Value;
|
|
12
11
|
onValueChange: (value: Value) => void;
|
|
13
12
|
ariaLabel: string;
|
|
14
13
|
className?: string;
|
|
15
14
|
};
|
|
16
|
-
declare const SwitchButton: {
|
|
15
|
+
export declare const SwitchButton: {
|
|
17
16
|
<Value extends string>({ options, value, onValueChange, ariaLabel, className, }: SwitchButtonProps<Value>): JSX.Element | null;
|
|
18
17
|
displayName: string;
|
|
19
18
|
};
|
|
20
|
-
|
|
21
|
-
export { SwitchButton, type SwitchButtonOption, type SwitchButtonProps };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
|
|
3
|
-
type SwitchButtonOption<Value extends string = string> = {
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type SwitchButtonOption<Value extends string = string> = {
|
|
4
3
|
value: Value;
|
|
5
4
|
label: ReactNode;
|
|
6
5
|
ariaLabel?: string;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
};
|
|
9
|
-
type SwitchButtonProps<Value extends string = string> = {
|
|
8
|
+
export type SwitchButtonProps<Value extends string = string> = {
|
|
10
9
|
options: SwitchButtonOption<Value>[];
|
|
11
10
|
value: Value;
|
|
12
11
|
onValueChange: (value: Value) => void;
|
|
13
12
|
ariaLabel: string;
|
|
14
13
|
className?: string;
|
|
15
14
|
};
|
|
16
|
-
declare const SwitchButton: {
|
|
15
|
+
export declare const SwitchButton: {
|
|
17
16
|
<Value extends string>({ options, value, onValueChange, ariaLabel, className, }: SwitchButtonProps<Value>): JSX.Element | null;
|
|
18
17
|
displayName: string;
|
|
19
18
|
};
|
|
20
|
-
|
|
21
|
-
export { SwitchButton, type SwitchButtonOption, type SwitchButtonProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TabsProps } from "./tabs.types";
|
|
2
|
+
export type { TabsClassNames, TabsItem, TabsOverflowBehavior, TabsProps, TabsSize, TabsVariant, } from "./tabs.types";
|
|
3
|
+
export declare const Tabs: {
|
|
4
|
+
<TValue extends string = string>({ items, value, onChange, variant, size, overflowBehavior, ariaLabel, className, classNames, }: TabsProps<TValue>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TabsProps } from "./tabs.types";
|
|
2
|
+
export type { TabsClassNames, TabsItem, TabsOverflowBehavior, TabsProps, TabsSize, TabsVariant, } from "./tabs.types";
|
|
3
|
+
export declare const Tabs: {
|
|
4
|
+
<TValue extends string = string>({ items, value, onChange, variant, size, overflowBehavior, ariaLabel, className, classNames, }: TabsProps<TValue>): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type TabsItem<TValue extends string = string> = {
|
|
2
|
+
value: TValue;
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type TabsVariant = "bar" | "underline";
|
|
8
|
+
export type TabsOverflowBehavior = "scroll" | "select";
|
|
9
|
+
export type TabsSize = "s" | "m";
|
|
10
|
+
export type TabsClassNames = {
|
|
11
|
+
root?: string;
|
|
12
|
+
tabList?: string;
|
|
13
|
+
};
|
|
14
|
+
export type TabsProps<TValue extends string = string> = {
|
|
15
|
+
items: TabsItem<TValue>[];
|
|
16
|
+
value: TValue;
|
|
17
|
+
onChange: (value: TValue) => void;
|
|
18
|
+
variant?: TabsVariant;
|
|
19
|
+
size?: TabsSize;
|
|
20
|
+
overflowBehavior?: TabsOverflowBehavior;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
classNames?: TabsClassNames;
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type TabsItem<TValue extends string = string> = {
|
|
2
|
+
value: TValue;
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type TabsVariant = "bar" | "underline";
|
|
8
|
+
export type TabsOverflowBehavior = "scroll" | "select";
|
|
9
|
+
export type TabsSize = "s" | "m";
|
|
10
|
+
export type TabsClassNames = {
|
|
11
|
+
root?: string;
|
|
12
|
+
tabList?: string;
|
|
13
|
+
};
|
|
14
|
+
export type TabsProps<TValue extends string = string> = {
|
|
15
|
+
items: TabsItem<TValue>[];
|
|
16
|
+
value: TValue;
|
|
17
|
+
onChange: (value: TValue) => void;
|
|
18
|
+
variant?: TabsVariant;
|
|
19
|
+
size?: TabsSize;
|
|
20
|
+
overflowBehavior?: TabsOverflowBehavior;
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
classNames?: TabsClassNames;
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TabsItem } from "./tabs.types";
|
|
2
|
+
export declare const findNextEnabledIndex: <TValue extends string = string>(items: TabsItem<TValue>[], startIndex: number, direction: 1 | -1) => number;
|
|
3
|
+
export declare const findEdgeEnabledIndex: <TValue extends string = string>(items: TabsItem<TValue>[], direction: 1 | -1) => number;
|
|
4
|
+
export type TabsOverflowLayout<TValue extends string = string> = {
|
|
5
|
+
visibleItems: TabsItem<TValue>[];
|
|
6
|
+
hiddenItems: TabsItem<TValue>[];
|
|
7
|
+
};
|
|
8
|
+
export declare const resolveTabsOverflowLayout: <TValue extends string = string>({ items, value, containerWidth, moreButtonWidth, itemWidthByValue, }: {
|
|
9
|
+
items: TabsItem<TValue>[];
|
|
10
|
+
value: TValue;
|
|
11
|
+
containerWidth: number;
|
|
12
|
+
moreButtonWidth: number;
|
|
13
|
+
itemWidthByValue: Map<TValue, number>;
|
|
14
|
+
}) => TabsOverflowLayout<TValue>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TabsItem } from "./tabs.types";
|
|
2
|
+
export declare const findNextEnabledIndex: <TValue extends string = string>(items: TabsItem<TValue>[], startIndex: number, direction: 1 | -1) => number;
|
|
3
|
+
export declare const findEdgeEnabledIndex: <TValue extends string = string>(items: TabsItem<TValue>[], direction: 1 | -1) => number;
|
|
4
|
+
export type TabsOverflowLayout<TValue extends string = string> = {
|
|
5
|
+
visibleItems: TabsItem<TValue>[];
|
|
6
|
+
hiddenItems: TabsItem<TValue>[];
|
|
7
|
+
};
|
|
8
|
+
export declare const resolveTabsOverflowLayout: <TValue extends string = string>({ items, value, containerWidth, moreButtonWidth, itemWidthByValue, }: {
|
|
9
|
+
items: TabsItem<TValue>[];
|
|
10
|
+
value: TValue;
|
|
11
|
+
containerWidth: number;
|
|
12
|
+
moreButtonWidth: number;
|
|
13
|
+
itemWidthByValue: Map<TValue, number>;
|
|
14
|
+
}) => TabsOverflowLayout<TValue>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TypographyProps } from "./typography.types";
|
|
2
|
+
export type { TypographyProps, TypographyVariant } from "./typography.types";
|
|
3
|
+
export { typographyVariants } from "./typography.constants";
|
|
4
|
+
export declare const Typography: {
|
|
5
|
+
({ as: Component, variant, className, children, }: TypographyProps): JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TypographyProps } from "./typography.types";
|
|
2
|
+
export type { TypographyProps, TypographyVariant } from "./typography.types";
|
|
3
|
+
export { typographyVariants } from "./typography.constants";
|
|
4
|
+
export declare const Typography: {
|
|
5
|
+
({ as: Component, variant, className, children, }: TypographyProps): JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type TypographyVariant = "display" | "heading" | "title" | "title-strong" | "body-large" | "body-large-strong" | "body" | "body-strong" | "label" | "label-strong" | "label-caps" | "caption" | "caption-strong" | "caption-caps" | "overline";
|
|
3
|
+
export type TypographyProps = {
|
|
4
|
+
as?: keyof JSX.IntrinsicElements;
|
|
5
|
+
variant?: TypographyVariant;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type TypographyVariant = "display" | "heading" | "title" | "title-strong" | "body-large" | "body-large-strong" | "body" | "body-strong" | "label" | "label-strong" | "label-caps" | "caption" | "caption-strong" | "caption-caps" | "overline";
|
|
3
|
+
export type TypographyProps = {
|
|
4
|
+
as?: keyof JSX.IntrinsicElements;
|
|
5
|
+
variant?: TypographyVariant;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { venueLogoNames } from "./venue-logo.constants";
|
|
2
|
+
import type { VenueLogoProps } from "./venue-logo.types";
|
|
3
|
+
export { venueLogoNames };
|
|
4
|
+
export type { VenueLogoName, VenueLogoVariant, VenueLogoProps } from "./venue-logo.types";
|
|
5
|
+
export declare const VenueLogo: {
|
|
6
|
+
({ venue, variant, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { venueLogoNames } from "./venue-logo.constants";
|
|
2
|
+
import type { VenueLogoProps } from "./venue-logo.types";
|
|
3
|
+
export { venueLogoNames };
|
|
4
|
+
export type { VenueLogoName, VenueLogoVariant, VenueLogoProps } from "./venue-logo.types";
|
|
5
|
+
export declare const VenueLogo: {
|
|
6
|
+
({ venue, variant, isColor, isMonochromatic, color, size, className, ariaLabel, title, }: VenueLogoProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../icon/types";
|
|
2
|
+
export type LogoIconProps = IconSvgProps & {
|
|
3
|
+
isColor?: boolean;
|
|
4
|
+
color?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const resolveLogoPrimaryColor: ({ brandColor, isColor, color, }: {
|
|
7
|
+
brandColor: string;
|
|
8
|
+
isColor?: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
}) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../icon/types";
|
|
2
|
+
export type LogoIconProps = IconSvgProps & {
|
|
3
|
+
isColor?: boolean;
|
|
4
|
+
color?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const resolveLogoPrimaryColor: ({ brandColor, isColor, color, }: {
|
|
7
|
+
brandColor: string;
|
|
8
|
+
isColor?: boolean;
|
|
9
|
+
color?: string;
|
|
10
|
+
}) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LogoIconProps } from "./logo-props";
|
|
2
|
+
import type { VenueLogoName, VenueLogoProps } from "./venue-logo.types";
|
|
3
|
+
type VenueLogoComponent = (props: LogoIconProps) => JSX.Element;
|
|
4
|
+
export declare const venueLogoRegistry: Record<VenueLogoName, VenueLogoComponent>;
|
|
5
|
+
export declare const venueLogoUrlRegistry: Record<VenueLogoName, string>;
|
|
6
|
+
export declare const venueLogoLabels: Record<VenueLogoName, string>;
|
|
7
|
+
export declare const venueLogoNames: VenueLogoName[];
|
|
8
|
+
export declare const sizeClasses: Record<NonNullable<VenueLogoProps["size"]>, string>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LogoIconProps } from "./logo-props";
|
|
2
|
+
import type { VenueLogoName, VenueLogoProps } from "./venue-logo.types";
|
|
3
|
+
type VenueLogoComponent = (props: LogoIconProps) => JSX.Element;
|
|
4
|
+
export declare const venueLogoRegistry: Record<VenueLogoName, VenueLogoComponent>;
|
|
5
|
+
export declare const venueLogoUrlRegistry: Record<VenueLogoName, string>;
|
|
6
|
+
export declare const venueLogoLabels: Record<VenueLogoName, string>;
|
|
7
|
+
export declare const venueLogoNames: VenueLogoName[];
|
|
8
|
+
export declare const sizeClasses: Record<NonNullable<VenueLogoProps["size"]>, string>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VenueMarket } from "@agg-market/hooks";
|
|
2
|
+
import type { AvailableSizes } from "../../shared/types";
|
|
3
|
+
type AdditionalVenue = "probable";
|
|
4
|
+
export type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
|
|
5
|
+
export type VenueLogoVariant = "icon" | "logo";
|
|
6
|
+
export type VenueLogoProps = {
|
|
7
|
+
venue: VenueLogoName;
|
|
8
|
+
variant?: VenueLogoVariant;
|
|
9
|
+
isColor?: boolean;
|
|
10
|
+
isMonochromatic?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
size?: AvailableSizes;
|
|
13
|
+
className?: string;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VenueMarket } from "@agg-market/hooks";
|
|
2
|
+
import type { AvailableSizes } from "../../shared/types";
|
|
3
|
+
type AdditionalVenue = "probable";
|
|
4
|
+
export type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
|
|
5
|
+
export type VenueLogoVariant = "icon" | "logo";
|
|
6
|
+
export type VenueLogoProps = {
|
|
7
|
+
venue: VenueLogoName;
|
|
8
|
+
variant?: VenueLogoVariant;
|
|
9
|
+
isColor?: boolean;
|
|
10
|
+
isMonochromatic?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
size?: AvailableSizes;
|
|
13
|
+
className?: string;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProfileModalProps } from "./profile-modal.types";
|
|
2
|
+
export type { ProfileModalProps, ExchangeAccount, SocialAccountInfo, SocialAccountState, } from "./profile-modal.types";
|
|
3
|
+
export declare const ProfileModal: {
|
|
4
|
+
({ open, onOpenChange, username, avatarPreview, onSave, onDeleteProfile, exchanges, socialAccounts, email, onDisconnectExchange, onConnectTwitter, onDisconnectTwitter, onConnectDiscord, onDisconnectDiscord, onConnectTelegram, onDisconnectTelegram, onConnectEmail, }: ProfileModalProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProfileModalProps } from "./profile-modal.types";
|
|
2
|
+
export type { ProfileModalProps, ExchangeAccount, SocialAccountInfo, SocialAccountState, } from "./profile-modal.types";
|
|
3
|
+
export declare const ProfileModal: {
|
|
4
|
+
({ open, onOpenChange, username, avatarPreview, onSave, onDeleteProfile, exchanges, socialAccounts, email, onDisconnectExchange, onConnectTwitter, onDisconnectTwitter, onConnectDiscord, onDisconnectDiscord, onConnectTelegram, onDisconnectTelegram, onConnectEmail, }: ProfileModalProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IconName } from "../primitives/icon/registry";
|
|
2
|
+
export declare const PROFILE_TAB_KEYS: {
|
|
3
|
+
readonly ABOUT: "about";
|
|
4
|
+
readonly ACCOUNTS_WALLETS: "accounts-wallets";
|
|
5
|
+
};
|
|
6
|
+
export type ProfileTabKey = (typeof PROFILE_TAB_KEYS)[keyof typeof PROFILE_TAB_KEYS];
|
|
7
|
+
export interface ProfileTabItem {
|
|
8
|
+
value: ProfileTabKey;
|
|
9
|
+
label: string;
|
|
10
|
+
icon: IconName;
|
|
11
|
+
}
|
|
12
|
+
export declare const PROFILE_TAB_ITEMS: ProfileTabItem[];
|
|
13
|
+
/**
|
|
14
|
+
* Display names for venue slugs.
|
|
15
|
+
* Re-uses the venue-logo labels as the single source of truth.
|
|
16
|
+
*/
|
|
17
|
+
export { venueLogoLabels as VENUE_DISPLAY_NAMES } from "../primitives/venue-logo/venue-logo.constants";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IconName } from "../primitives/icon/registry";
|
|
2
|
+
export declare const PROFILE_TAB_KEYS: {
|
|
3
|
+
readonly ABOUT: "about";
|
|
4
|
+
readonly ACCOUNTS_WALLETS: "accounts-wallets";
|
|
5
|
+
};
|
|
6
|
+
export type ProfileTabKey = (typeof PROFILE_TAB_KEYS)[keyof typeof PROFILE_TAB_KEYS];
|
|
7
|
+
export interface ProfileTabItem {
|
|
8
|
+
value: ProfileTabKey;
|
|
9
|
+
label: string;
|
|
10
|
+
icon: IconName;
|
|
11
|
+
}
|
|
12
|
+
export declare const PROFILE_TAB_ITEMS: ProfileTabItem[];
|
|
13
|
+
/**
|
|
14
|
+
* Display names for venue slugs.
|
|
15
|
+
* Re-uses the venue-logo labels as the single source of truth.
|
|
16
|
+
*/
|
|
17
|
+
export { venueLogoLabels as VENUE_DISPLAY_NAMES } from "../primitives/venue-logo/venue-logo.constants";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** A connected exchange account (venue). */
|
|
2
|
-
interface ExchangeAccount {
|
|
2
|
+
export interface ExchangeAccount {
|
|
3
3
|
/** Venue slug, e.g. "polymarket", "kalshi" */
|
|
4
4
|
venue: string;
|
|
5
5
|
/** Display label, e.g. a truncated wallet address or username */
|
|
@@ -8,18 +8,18 @@ interface ExchangeAccount {
|
|
|
8
8
|
verified?: boolean;
|
|
9
9
|
}
|
|
10
10
|
/** Connection state for a single social account. */
|
|
11
|
-
interface SocialAccountInfo {
|
|
11
|
+
export interface SocialAccountInfo {
|
|
12
12
|
connected: boolean;
|
|
13
13
|
/** Display handle, e.g. "@john" */
|
|
14
14
|
handle?: string;
|
|
15
15
|
}
|
|
16
16
|
/** Social account connection states. */
|
|
17
|
-
interface SocialAccountState {
|
|
17
|
+
export interface SocialAccountState {
|
|
18
18
|
twitter?: SocialAccountInfo;
|
|
19
19
|
discord?: SocialAccountInfo;
|
|
20
20
|
telegram?: SocialAccountInfo;
|
|
21
21
|
}
|
|
22
|
-
interface ProfileModalProps {
|
|
22
|
+
export interface ProfileModalProps {
|
|
23
23
|
open: boolean;
|
|
24
24
|
onOpenChange: (open: boolean) => void;
|
|
25
25
|
/** Current username (pre-fills the input) */
|
|
@@ -57,10 +57,3 @@ interface ProfileModalProps {
|
|
|
57
57
|
/** Called when user clicks "Connect" on Email */
|
|
58
58
|
onConnectEmail?: () => void;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
declare const ProfileModal: {
|
|
62
|
-
({ open, onOpenChange, username, avatarPreview, onSave, onDeleteProfile, exchanges, socialAccounts, email, onDisconnectExchange, onConnectTwitter, onDisconnectTwitter, onConnectDiscord, onDisconnectDiscord, onConnectTelegram, onDisconnectTelegram, onConnectEmail, }: ProfileModalProps): JSX.Element;
|
|
63
|
-
displayName: string;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export { type ExchangeAccount, ProfileModal, type ProfileModalProps, type SocialAccountInfo, type SocialAccountState };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** A connected exchange account (venue). */
|
|
2
|
-
interface ExchangeAccount {
|
|
2
|
+
export interface ExchangeAccount {
|
|
3
3
|
/** Venue slug, e.g. "polymarket", "kalshi" */
|
|
4
4
|
venue: string;
|
|
5
5
|
/** Display label, e.g. a truncated wallet address or username */
|
|
@@ -8,18 +8,18 @@ interface ExchangeAccount {
|
|
|
8
8
|
verified?: boolean;
|
|
9
9
|
}
|
|
10
10
|
/** Connection state for a single social account. */
|
|
11
|
-
interface SocialAccountInfo {
|
|
11
|
+
export interface SocialAccountInfo {
|
|
12
12
|
connected: boolean;
|
|
13
13
|
/** Display handle, e.g. "@john" */
|
|
14
14
|
handle?: string;
|
|
15
15
|
}
|
|
16
16
|
/** Social account connection states. */
|
|
17
|
-
interface SocialAccountState {
|
|
17
|
+
export interface SocialAccountState {
|
|
18
18
|
twitter?: SocialAccountInfo;
|
|
19
19
|
discord?: SocialAccountInfo;
|
|
20
20
|
telegram?: SocialAccountInfo;
|
|
21
21
|
}
|
|
22
|
-
interface ProfileModalProps {
|
|
22
|
+
export interface ProfileModalProps {
|
|
23
23
|
open: boolean;
|
|
24
24
|
onOpenChange: (open: boolean) => void;
|
|
25
25
|
/** Current username (pre-fills the input) */
|
|
@@ -57,10 +57,3 @@ interface ProfileModalProps {
|
|
|
57
57
|
/** Called when user clicks "Connect" on Email */
|
|
58
58
|
onConnectEmail?: () => void;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
declare const ProfileModal: {
|
|
62
|
-
({ open, onOpenChange, username, avatarPreview, onSave, onDeleteProfile, exchanges, socialAccounts, email, onDisconnectExchange, onConnectTwitter, onDisconnectTwitter, onConnectDiscord, onDisconnectDiscord, onConnectTelegram, onDisconnectTelegram, onConnectEmail, }: ProfileModalProps): JSX.Element;
|
|
63
|
-
displayName: string;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export { type ExchangeAccount, ProfileModal, type ProfileModalProps, type SocialAccountInfo, type SocialAccountState };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface AboutTabProps {
|
|
2
|
+
username?: string | null;
|
|
3
|
+
avatarPreview?: string | null;
|
|
4
|
+
onDeleteProfile: () => void;
|
|
5
|
+
/** Controlled draft username – lifted to the parent so the footer Save can read it */
|
|
6
|
+
draftUsername: string;
|
|
7
|
+
onDraftUsernameChange: (value: string) => void;
|
|
8
|
+
/** Controlled draft avatar – lifted to the parent so the footer Save can read it */
|
|
9
|
+
draftAvatarFile?: File;
|
|
10
|
+
onDraftAvatarChange: (file: File | undefined, preview: string | undefined) => void;
|
|
11
|
+
draftAvatarPreview?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const AboutTab: {
|
|
14
|
+
({ avatarPreview, onDeleteProfile, draftUsername, onDraftUsernameChange, onDraftAvatarChange, draftAvatarPreview, }: AboutTabProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface AboutTabProps {
|
|
2
|
+
username?: string | null;
|
|
3
|
+
avatarPreview?: string | null;
|
|
4
|
+
onDeleteProfile: () => void;
|
|
5
|
+
/** Controlled draft username – lifted to the parent so the footer Save can read it */
|
|
6
|
+
draftUsername: string;
|
|
7
|
+
onDraftUsernameChange: (value: string) => void;
|
|
8
|
+
/** Controlled draft avatar – lifted to the parent so the footer Save can read it */
|
|
9
|
+
draftAvatarFile?: File;
|
|
10
|
+
onDraftAvatarChange: (file: File | undefined, preview: string | undefined) => void;
|
|
11
|
+
draftAvatarPreview?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const AboutTab: {
|
|
14
|
+
({ avatarPreview, onDeleteProfile, draftUsername, onDraftUsernameChange, onDraftAvatarChange, draftAvatarPreview, }: AboutTabProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExchangeAccount, SocialAccountState } from "../profile-modal.types";
|
|
2
|
+
export interface AccountsWalletsTabProps {
|
|
3
|
+
exchanges: ExchangeAccount[];
|
|
4
|
+
socialAccounts?: SocialAccountState;
|
|
5
|
+
email?: string | null;
|
|
6
|
+
onDisconnectExchange: (venue: string) => void;
|
|
7
|
+
onConnectTwitter?: () => void;
|
|
8
|
+
onDisconnectTwitter?: () => void;
|
|
9
|
+
onConnectDiscord?: () => void;
|
|
10
|
+
onDisconnectDiscord?: () => void;
|
|
11
|
+
onConnectTelegram?: () => void;
|
|
12
|
+
onDisconnectTelegram?: () => void;
|
|
13
|
+
onConnectEmail?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const AccountsWalletsTab: {
|
|
16
|
+
({ exchanges, socialAccounts, email, onDisconnectExchange, onConnectTwitter, onDisconnectTwitter, onConnectDiscord, onDisconnectDiscord, onConnectTelegram, onDisconnectTelegram, onConnectEmail, }: AccountsWalletsTabProps): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExchangeAccount, SocialAccountState } from "../profile-modal.types";
|
|
2
|
+
export interface AccountsWalletsTabProps {
|
|
3
|
+
exchanges: ExchangeAccount[];
|
|
4
|
+
socialAccounts?: SocialAccountState;
|
|
5
|
+
email?: string | null;
|
|
6
|
+
onDisconnectExchange: (venue: string) => void;
|
|
7
|
+
onConnectTwitter?: () => void;
|
|
8
|
+
onDisconnectTwitter?: () => void;
|
|
9
|
+
onConnectDiscord?: () => void;
|
|
10
|
+
onDisconnectDiscord?: () => void;
|
|
11
|
+
onConnectTelegram?: () => void;
|
|
12
|
+
onDisconnectTelegram?: () => void;
|
|
13
|
+
onConnectEmail?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const AccountsWalletsTab: {
|
|
16
|
+
({ exchanges, socialAccounts, email, onDisconnectExchange, onConnectTwitter, onDisconnectTwitter, onConnectDiscord, onDisconnectDiscord, onConnectTelegram, onDisconnectTelegram, onConnectEmail, }: AccountsWalletsTabProps): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Static config for a token supported on a particular network. */
|
|
2
|
+
export interface TokenConfig {
|
|
3
|
+
/** Unique identifier used as the select value (e.g. "USDC"). */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Human-readable label shown in dropdowns. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** URL of the token icon/logo. */
|
|
8
|
+
iconUrl: string;
|
|
9
|
+
}
|
|
10
|
+
/** Static config for a blockchain network. */
|
|
11
|
+
export interface NetworkConfig {
|
|
12
|
+
/** Unique identifier used as the select value (e.g. "polygon"). */
|
|
13
|
+
value: string;
|
|
14
|
+
/** Human-readable label shown in dropdowns. */
|
|
15
|
+
label: string;
|
|
16
|
+
/** URL of the colored chain icon. */
|
|
17
|
+
iconUrl: string;
|
|
18
|
+
/** Tokens supported for deposits/withdrawals on this network. */
|
|
19
|
+
tokens: TokenConfig[];
|
|
20
|
+
}
|
|
21
|
+
export declare const SUPPORTED_NETWORKS: NetworkConfig[];
|
|
22
|
+
/** Return the supported tokens for a given network value. */
|
|
23
|
+
export declare const getTokensForNetwork: (networkValue: string) => TokenConfig[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Static config for a token supported on a particular network. */
|
|
2
|
+
export interface TokenConfig {
|
|
3
|
+
/** Unique identifier used as the select value (e.g. "USDC"). */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Human-readable label shown in dropdowns. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** URL of the token icon/logo. */
|
|
8
|
+
iconUrl: string;
|
|
9
|
+
}
|
|
10
|
+
/** Static config for a blockchain network. */
|
|
11
|
+
export interface NetworkConfig {
|
|
12
|
+
/** Unique identifier used as the select value (e.g. "polygon"). */
|
|
13
|
+
value: string;
|
|
14
|
+
/** Human-readable label shown in dropdowns. */
|
|
15
|
+
label: string;
|
|
16
|
+
/** URL of the colored chain icon. */
|
|
17
|
+
iconUrl: string;
|
|
18
|
+
/** Tokens supported for deposits/withdrawals on this network. */
|
|
19
|
+
tokens: TokenConfig[];
|
|
20
|
+
}
|
|
21
|
+
export declare const SUPPORTED_NETWORKS: NetworkConfig[];
|
|
22
|
+
/** Return the supported tokens for a given network value. */
|
|
23
|
+
export declare const getTokensForNetwork: (networkValue: string) => TokenConfig[];
|