@agg-market/ui 5.0.0 → 6.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 +26 -26
- package/dist/auth.d.mts +1 -0
- package/dist/auth.d.ts +1 -0
- package/dist/{connect-button.js → auth.js} +6 -4
- package/dist/auth.mjs +8 -0
- package/dist/chunk-2ICOSP7N.mjs +1211 -0
- package/dist/chunk-5ZKPBMRK.mjs +2411 -0
- package/dist/{chunk-5K7VXAYM.mjs → chunk-ADGL6RFX.mjs} +2 -4
- package/dist/chunk-BXW3VIKV.mjs +90 -0
- package/dist/{chart.js → chunk-CN7GI2RJ.mjs} +250 -103
- package/dist/chunk-G6YKGVQR.mjs +769 -0
- package/dist/{chunk-PZTHM6WG.mjs → chunk-HI4EEDN5.mjs} +897 -357
- package/dist/{chunk-5ADMXO3Y.mjs → chunk-INRG3D4M.mjs} +5 -11
- package/dist/{chunk-QDMHLRDY.mjs → chunk-JE3Z52FD.mjs} +90 -38
- package/dist/chunk-KZOQW6NT.mjs +0 -0
- package/dist/chunk-LMOJKJOY.mjs +2616 -0
- package/dist/{chunk-YJA5VQW6.mjs → chunk-MHCHR65A.mjs} +2 -4
- package/dist/{chunk-IGPNIM2B.mjs → chunk-PASXFYKQ.mjs} +2 -4
- package/dist/chunk-UBBOLLOS.mjs +999 -0
- package/dist/events.d.mts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/{event-market-page.js → events.js} +4579 -4935
- package/dist/events.mjs +17 -0
- package/dist/index.d.mts +1 -79
- package/dist/index.d.ts +1 -79
- package/dist/index.js +6839 -6839
- package/dist/index.mjs +66 -170
- package/dist/modals.d.mts +1 -0
- package/dist/modals.d.ts +1 -0
- package/dist/{deposit-modal.js → modals.js} +1771 -6
- package/dist/modals.mjs +25 -0
- package/dist/pages.d.mts +1 -0
- package/dist/pages.d.ts +1 -0
- package/dist/{home-page.js → pages.js} +3868 -6
- 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} +3302 -3729
- package/dist/{icon.mjs → primitives.mjs} +56 -9
- package/dist/trading.d.mts +1 -0
- package/dist/trading.d.ts +1 -0
- package/dist/{event-list.js → trading.js} +1426 -1467
- package/dist/trading.mjs +65 -0
- package/dist/types/auth/connect-button/connect-button.constants.d.mts +10 -0
- package/dist/types/auth/connect-button/connect-button.constants.d.ts +10 -0
- package/dist/{connect-button.d.mts → types/auth/connect-button/connect-button.types.d.mts} +5 -12
- package/dist/{connect-button.d.ts → types/auth/connect-button/connect-button.types.d.ts} +5 -12
- package/dist/types/auth/connect-button/index.d.mts +7 -0
- package/dist/types/auth/connect-button/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/{chart.d.mts → types/primitives/chart/index.d.mts} +7 -10
- package/dist/{chart.d.ts → types/primitives/chart/index.d.ts} +7 -10
- 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 +46 -0
- package/dist/types/primitives/icon/index.d.ts +46 -0
- package/dist/types/primitives/icon/registry.d.mts +166 -0
- package/dist/types/primitives/icon/registry.d.ts +166 -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/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/external-link.d.mts +5 -0
- package/dist/types/primitives/icon/svg/external-link.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/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 +17 -0
- package/dist/types/primitives/index.d.ts +17 -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-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} +35 -38
- package/dist/{types-BImwqY4o.d.mts → types/trading/types.d.ts} +35 -38
- 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 +33 -283
- 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.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-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-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-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-ZFMCCBP6.mjs +0 -25
- package/dist/connect-button.mjs +0 -14
- 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.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.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.js +0 -2836
- package/dist/onboarding-modal.mjs +0 -24
- package/dist/place-order.js +0 -3248
- 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
package/dist/chunk-OJVTGNIF.mjs
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SwitchButton
|
|
3
|
-
} from "./chunk-LCZKSITC.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__spreadProps,
|
|
6
|
-
__spreadValues,
|
|
7
|
-
cn
|
|
8
|
-
} from "./chunk-GJ4U5NCE.mjs";
|
|
9
|
-
|
|
10
|
-
// src/primitives/chart/index.tsx
|
|
11
|
-
import dayjs from "dayjs";
|
|
12
|
-
import { useLabels, useSdkUiConfig } from "@agg-market/hooks";
|
|
13
|
-
import { useEffect, useMemo, useState } from "react";
|
|
14
|
-
import { Liveline } from "liveline";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var normalizeSeries = (series) => {
|
|
17
|
-
return series.map((seriesItem) => {
|
|
18
|
-
const pointsByTime = /* @__PURE__ */ new Map();
|
|
19
|
-
seriesItem.points.forEach((point) => {
|
|
20
|
-
if (!Number.isFinite(point.time) || !Number.isFinite(point.value)) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
pointsByTime.set(Math.floor(point.time), point.value);
|
|
24
|
-
});
|
|
25
|
-
const sortedPoints = [...pointsByTime.entries()].sort((left, right) => left[0] - right[0]).map(([time, value]) => ({
|
|
26
|
-
time,
|
|
27
|
-
value
|
|
28
|
-
}));
|
|
29
|
-
return __spreadProps(__spreadValues({}, seriesItem), {
|
|
30
|
-
points: sortedPoints
|
|
31
|
-
});
|
|
32
|
-
}).filter((seriesItem) => seriesItem.points.length > 0);
|
|
33
|
-
};
|
|
34
|
-
var defaultValueFormatter = (value) => {
|
|
35
|
-
return `${Math.round(value)}%`;
|
|
36
|
-
};
|
|
37
|
-
var resolveTimeFormatter = (windowSeconds) => {
|
|
38
|
-
return (timestamp) => {
|
|
39
|
-
if (!Number.isFinite(timestamp))
|
|
40
|
-
return "";
|
|
41
|
-
if (windowSeconds <= 48 * 60 * 60) {
|
|
42
|
-
return dayjs.unix(timestamp).format("HH:mm");
|
|
43
|
-
}
|
|
44
|
-
if (windowSeconds <= 14 * 24 * 60 * 60) {
|
|
45
|
-
return dayjs.unix(timestamp).format("MMM D HH:mm");
|
|
46
|
-
}
|
|
47
|
-
return dayjs.unix(timestamp).format("MMM D");
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
var toLivelinePoints = (points) => {
|
|
51
|
-
return points.map((point) => ({
|
|
52
|
-
time: point.time,
|
|
53
|
-
value: point.value
|
|
54
|
-
}));
|
|
55
|
-
};
|
|
56
|
-
var resolveWindowSeconds = (normalizedSeries) => {
|
|
57
|
-
const timestamps = normalizedSeries.flatMap(
|
|
58
|
-
(seriesItem) => seriesItem.points.map((point) => point.time)
|
|
59
|
-
);
|
|
60
|
-
if (timestamps.length <= 1)
|
|
61
|
-
return 30;
|
|
62
|
-
const minTimestamp = Math.min(...timestamps);
|
|
63
|
-
const maxTimestamp = Math.max(...timestamps);
|
|
64
|
-
const span = maxTimestamp - minTimestamp;
|
|
65
|
-
if (!Number.isFinite(span) || span <= 0)
|
|
66
|
-
return 30;
|
|
67
|
-
return Math.max(1, Math.floor(span));
|
|
68
|
-
};
|
|
69
|
-
var resolveLatestValue = (points) => {
|
|
70
|
-
const latestPoint = points[points.length - 1];
|
|
71
|
-
if (!latestPoint)
|
|
72
|
-
return 0;
|
|
73
|
-
return latestPoint.value;
|
|
74
|
-
};
|
|
75
|
-
var resolveActiveSeriesId = (series, activeSeriesId) => {
|
|
76
|
-
var _a, _b;
|
|
77
|
-
if (activeSeriesId) {
|
|
78
|
-
const matchingSeries = series.find((seriesItem) => seriesItem.id === activeSeriesId);
|
|
79
|
-
if (matchingSeries) {
|
|
80
|
-
return matchingSeries.id;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return (_b = (_a = series[0]) == null ? void 0 : _a.id) != null ? _b : "";
|
|
84
|
-
};
|
|
85
|
-
var formatDefaultSeriesLabel = (seriesItem) => {
|
|
86
|
-
return seriesItem.id.charAt(0).toUpperCase() + seriesItem.id.slice(1);
|
|
87
|
-
};
|
|
88
|
-
var renderDefaultSeriesControls = ({
|
|
89
|
-
series,
|
|
90
|
-
activeSeriesId,
|
|
91
|
-
handleSeriesChange,
|
|
92
|
-
defaultSeriesSwitchClassName,
|
|
93
|
-
seriesSwitchAriaLabel,
|
|
94
|
-
formatSeriesOptionAriaLabel
|
|
95
|
-
}) => {
|
|
96
|
-
return /* @__PURE__ */ jsx(
|
|
97
|
-
SwitchButton,
|
|
98
|
-
{
|
|
99
|
-
ariaLabel: seriesSwitchAriaLabel,
|
|
100
|
-
className: defaultSeriesSwitchClassName,
|
|
101
|
-
options: series.map((seriesItem) => ({
|
|
102
|
-
value: seriesItem.id,
|
|
103
|
-
label: formatDefaultSeriesLabel(seriesItem),
|
|
104
|
-
ariaLabel: formatSeriesOptionAriaLabel(formatDefaultSeriesLabel(seriesItem))
|
|
105
|
-
})),
|
|
106
|
-
value: activeSeriesId,
|
|
107
|
-
onValueChange: handleSeriesChange
|
|
108
|
-
}
|
|
109
|
-
);
|
|
110
|
-
};
|
|
111
|
-
var resolveSelectedSeries = (series, activeSeriesId) => {
|
|
112
|
-
const availableSeriesIds = new Set(series.map((seriesItem) => seriesItem.id));
|
|
113
|
-
if (!availableSeriesIds.has(activeSeriesId)) {
|
|
114
|
-
return series[0];
|
|
115
|
-
}
|
|
116
|
-
return series.find((seriesItem) => seriesItem.id === activeSeriesId);
|
|
117
|
-
};
|
|
118
|
-
var LineChart = ({
|
|
119
|
-
series,
|
|
120
|
-
height = 280,
|
|
121
|
-
width,
|
|
122
|
-
classNames,
|
|
123
|
-
isLoading = false,
|
|
124
|
-
showSeriesControls = true,
|
|
125
|
-
renderSeriesControls
|
|
126
|
-
}) => {
|
|
127
|
-
var _a, _b;
|
|
128
|
-
const labels = useLabels();
|
|
129
|
-
const { theme } = useSdkUiConfig();
|
|
130
|
-
const normalizedSeries = useMemo(() => {
|
|
131
|
-
return normalizeSeries(series);
|
|
132
|
-
}, [series]);
|
|
133
|
-
const [activeSeriesId, setActiveSeriesId] = useState(
|
|
134
|
-
() => resolveActiveSeriesId(normalizedSeries, null)
|
|
135
|
-
);
|
|
136
|
-
useEffect(() => {
|
|
137
|
-
setActiveSeriesId(
|
|
138
|
-
(currentActiveSeriesId) => resolveActiveSeriesId(normalizedSeries, currentActiveSeriesId)
|
|
139
|
-
);
|
|
140
|
-
}, [normalizedSeries]);
|
|
141
|
-
const livelineTheme = theme;
|
|
142
|
-
const handleSeriesChange = (seriesId) => {
|
|
143
|
-
setActiveSeriesId(seriesId);
|
|
144
|
-
};
|
|
145
|
-
const primarySeries = useMemo(() => {
|
|
146
|
-
return resolveSelectedSeries(normalizedSeries, activeSeriesId);
|
|
147
|
-
}, [activeSeriesId, normalizedSeries]);
|
|
148
|
-
const primaryData = useMemo(() => {
|
|
149
|
-
if (!primarySeries) {
|
|
150
|
-
return [];
|
|
151
|
-
}
|
|
152
|
-
return toLivelinePoints(primarySeries.points);
|
|
153
|
-
}, [primarySeries]);
|
|
154
|
-
const primaryValue = useMemo(() => {
|
|
155
|
-
if (!primarySeries) {
|
|
156
|
-
return 0;
|
|
157
|
-
}
|
|
158
|
-
return resolveLatestValue(primarySeries.points);
|
|
159
|
-
}, [primarySeries]);
|
|
160
|
-
const livelineSeries = useMemo(() => {
|
|
161
|
-
return normalizedSeries.map((seriesItem) => ({
|
|
162
|
-
id: seriesItem.id,
|
|
163
|
-
color: seriesItem.color,
|
|
164
|
-
data: toLivelinePoints(seriesItem.points),
|
|
165
|
-
value: resolveLatestValue(seriesItem.points)
|
|
166
|
-
}));
|
|
167
|
-
}, [normalizedSeries]);
|
|
168
|
-
const windowSeconds = useMemo(() => {
|
|
169
|
-
return resolveWindowSeconds(normalizedSeries);
|
|
170
|
-
}, [normalizedSeries]);
|
|
171
|
-
const timeFormatter = useMemo(() => {
|
|
172
|
-
return resolveTimeFormatter(windowSeconds);
|
|
173
|
-
}, [windowSeconds]);
|
|
174
|
-
const seriesControls = showSeriesControls && normalizedSeries.length > 0 ? (_a = renderSeriesControls == null ? void 0 : renderSeriesControls({
|
|
175
|
-
series: normalizedSeries,
|
|
176
|
-
activeSeriesId,
|
|
177
|
-
handleSeriesChange
|
|
178
|
-
})) != null ? _a : normalizedSeries.length > 1 ? renderDefaultSeriesControls({
|
|
179
|
-
series: normalizedSeries,
|
|
180
|
-
activeSeriesId,
|
|
181
|
-
handleSeriesChange,
|
|
182
|
-
defaultSeriesSwitchClassName: classNames == null ? void 0 : classNames.defaultSeriesSwitch,
|
|
183
|
-
seriesSwitchAriaLabel: labels.common.lineChartSeriesSwitchAria,
|
|
184
|
-
formatSeriesOptionAriaLabel: labels.common.lineChartSeriesOptionAria
|
|
185
|
-
}) : null : null;
|
|
186
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("group/agg-chart", "w-full", classNames == null ? void 0 : classNames.root), style: { width }, children: [
|
|
187
|
-
!isLoading && seriesControls ? /* @__PURE__ */ jsx("div", { className: cn("mb-3", classNames == null ? void 0 : classNames.controls), children: seriesControls }) : null,
|
|
188
|
-
/* @__PURE__ */ jsx(
|
|
189
|
-
"div",
|
|
190
|
-
{
|
|
191
|
-
className: cn(
|
|
192
|
-
"overflow-hidden [&>div:not(.agg-livechart):first-of-type]:hidden!",
|
|
193
|
-
classNames == null ? void 0 : classNames.chartViewport
|
|
194
|
-
),
|
|
195
|
-
style: { height },
|
|
196
|
-
role: "img",
|
|
197
|
-
"aria-label": labels.common.lineChartAria,
|
|
198
|
-
children: /* @__PURE__ */ jsx(
|
|
199
|
-
Liveline,
|
|
200
|
-
{
|
|
201
|
-
className: cn("h-full w-full agg-livechart", classNames == null ? void 0 : classNames.liveline),
|
|
202
|
-
data: primaryData,
|
|
203
|
-
value: primaryValue,
|
|
204
|
-
series: livelineSeries,
|
|
205
|
-
color: (_b = primarySeries == null ? void 0 : primarySeries.color) != null ? _b : "var(--agg-color-primary)",
|
|
206
|
-
theme: livelineTheme,
|
|
207
|
-
grid: true,
|
|
208
|
-
momentum: false,
|
|
209
|
-
pulse: false,
|
|
210
|
-
window: windowSeconds,
|
|
211
|
-
formatValue: defaultValueFormatter,
|
|
212
|
-
formatTime: timeFormatter,
|
|
213
|
-
padding: {
|
|
214
|
-
top: 12,
|
|
215
|
-
right: 80,
|
|
216
|
-
bottom: 28,
|
|
217
|
-
left: 12
|
|
218
|
-
},
|
|
219
|
-
loading: isLoading
|
|
220
|
-
}
|
|
221
|
-
)
|
|
222
|
-
}
|
|
223
|
-
)
|
|
224
|
-
] });
|
|
225
|
-
};
|
|
226
|
-
LineChart.displayName = "LineChart";
|
|
227
|
-
|
|
228
|
-
export {
|
|
229
|
-
LineChart
|
|
230
|
-
};
|
package/dist/chunk-PORVP72S.mjs
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getIconA11yProps
|
|
3
|
-
} from "./chunk-BNDFQPHF.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__objRest,
|
|
6
|
-
__spreadProps,
|
|
7
|
-
__spreadValues,
|
|
8
|
-
cn
|
|
9
|
-
} from "./chunk-GJ4U5NCE.mjs";
|
|
10
|
-
|
|
11
|
-
// src/primitives/venue-logo/index.tsx
|
|
12
|
-
import { useLabels } from "@agg-market/hooks";
|
|
13
|
-
|
|
14
|
-
// src/primitives/venue-logo/logo-props.ts
|
|
15
|
-
var DEFAULT_MONOCHROME_COLOR = "currentColor";
|
|
16
|
-
var resolveLogoPrimaryColor = ({
|
|
17
|
-
brandColor,
|
|
18
|
-
isColor = true,
|
|
19
|
-
color
|
|
20
|
-
}) => {
|
|
21
|
-
if (typeof color === "string" && color.trim())
|
|
22
|
-
return color;
|
|
23
|
-
if (!isColor)
|
|
24
|
-
return DEFAULT_MONOCHROME_COLOR;
|
|
25
|
-
return brandColor;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// src/primitives/venue-logo/svg/logo-kalshi.tsx
|
|
29
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
-
var KALSHI_GREEN = "#18C590";
|
|
31
|
-
var LogoKalshiIcon = (_a) => {
|
|
32
|
-
var _b = _a, {
|
|
33
|
-
title,
|
|
34
|
-
className,
|
|
35
|
-
isColor = true,
|
|
36
|
-
color
|
|
37
|
-
} = _b, props = __objRest(_b, [
|
|
38
|
-
"title",
|
|
39
|
-
"className",
|
|
40
|
-
"isColor",
|
|
41
|
-
"color"
|
|
42
|
-
]);
|
|
43
|
-
const primaryColor = resolveLogoPrimaryColor({
|
|
44
|
-
brandColor: KALSHI_GREEN,
|
|
45
|
-
isColor,
|
|
46
|
-
color
|
|
47
|
-
});
|
|
48
|
-
return /* @__PURE__ */ jsxs(
|
|
49
|
-
"svg",
|
|
50
|
-
__spreadProps(__spreadValues(__spreadValues({
|
|
51
|
-
viewBox: "0 0 100 100",
|
|
52
|
-
className,
|
|
53
|
-
fill: "none"
|
|
54
|
-
}, getIconA11yProps(title)), props), {
|
|
55
|
-
children: [
|
|
56
|
-
title ? /* @__PURE__ */ jsx("title", { children: title }) : null,
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
"path",
|
|
59
|
-
{
|
|
60
|
-
d: "M54.9798 47.579L79.4249 85.9995H58.2273L38.2531 52.9344V85.9995H20.4189V13.9995H38.2531V45.4356L59.6547 13.9995H78.7119L54.9798 47.579Z",
|
|
61
|
-
fill: primaryColor
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
]
|
|
65
|
-
})
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
LogoKalshiIcon.displayName = "LogoKalshiIcon";
|
|
69
|
-
|
|
70
|
-
// src/primitives/venue-logo/svg/logo-opinion.tsx
|
|
71
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
72
|
-
var OPINION_BLACK = "#000000";
|
|
73
|
-
var LogoOpinionIcon = (_a) => {
|
|
74
|
-
var _b = _a, {
|
|
75
|
-
title,
|
|
76
|
-
className,
|
|
77
|
-
isColor = true,
|
|
78
|
-
color
|
|
79
|
-
} = _b, props = __objRest(_b, [
|
|
80
|
-
"title",
|
|
81
|
-
"className",
|
|
82
|
-
"isColor",
|
|
83
|
-
"color"
|
|
84
|
-
]);
|
|
85
|
-
const primaryColor = resolveLogoPrimaryColor({
|
|
86
|
-
brandColor: OPINION_BLACK,
|
|
87
|
-
isColor,
|
|
88
|
-
color
|
|
89
|
-
});
|
|
90
|
-
return /* @__PURE__ */ jsxs2(
|
|
91
|
-
"svg",
|
|
92
|
-
__spreadProps(__spreadValues(__spreadValues({
|
|
93
|
-
viewBox: "0 0 100 100",
|
|
94
|
-
className,
|
|
95
|
-
fill: "none"
|
|
96
|
-
}, getIconA11yProps(title)), props), {
|
|
97
|
-
children: [
|
|
98
|
-
title ? /* @__PURE__ */ jsx2("title", { children: title }) : null,
|
|
99
|
-
/* @__PURE__ */ jsx2(
|
|
100
|
-
"path",
|
|
101
|
-
{
|
|
102
|
-
d: "M51.8239 68.4603L56.9659 68.0094L58.8049 89.0576C61.1459 88.5314 63.4349 87.7952 65.6437 86.8578V68.1879H71.9955V83.4385C74.6496 81.6828 77.0863 79.619 79.2548 77.2898L80.0716 67.958L85.516 68.433C88.6185 62.4381 90.156 55.7558 89.9858 49.0072C89.8154 42.2584 87.9429 35.6623 84.542 29.8316L84.3394 32.1494L77.9876 31.5927L78.8042 22.2668C76.7468 20.1288 74.4594 18.225 71.9835 16.5902V31.9164H65.6317V13.1739C62.9224 12.0205 60.0929 11.173 57.1957 10.6473L59.0317 31.6441L53.8897 32.0949L51.9599 10.0482C51.3128 10.0179 50.6593 9.99976 50.006 9.99976C47.4581 9.99976 44.9161 10.2419 42.414 10.723L46.0438 31.3899L42.1297 32.0798L38.5304 11.6701C35.1755 12.6725 31.9677 14.1143 28.9905 15.9578L33.0435 31.0873L29.9705 31.9134L26.2018 17.8369C23.2938 19.9923 20.6902 22.5308 18.4615 25.3835L20.4246 30.7787L18.1833 31.5956L16.7707 27.7134C14.5111 31.0771 12.7772 34.7657 11.6287 38.652L12.2639 38.4221L20.4306 60.8471L18.1893 61.6641L10.8877 41.5963C9.21542 49.4012 9.91256 57.528 12.8896 64.9338C15.8667 72.3395 20.9879 78.6865 27.5961 83.1601L23.8031 68.9989L26.8762 68.1728L31.5162 85.4991C34.6952 87.1593 38.0844 88.3808 41.5914 89.1303L38.0132 68.7296L41.9301 68.0397L45.7684 89.8262C47.1811 89.9757 48.6007 90.0505 50.0212 90.0502C51.2583 90.0502 52.4863 89.9926 53.6963 89.8807L51.8239 68.4603ZM80.1017 37.8985L86.4385 38.4524L84.3605 62.2299L78.0087 61.6761L80.1017 37.8985ZM65.6528 38.1315H72.0046V61.9969H65.6528V38.1315ZM56.975 37.9501L59.053 61.7277L53.911 62.1785L51.8299 38.4009L56.975 37.9501ZM29.9976 62.003L23.8243 38.9486L26.8974 38.1255L33.0707 61.1649L29.9976 62.003ZM42.157 62.1603L38.0132 38.658L41.9301 37.9683L46.0709 61.4674L42.157 62.1603Z",
|
|
103
|
-
fill: primaryColor
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
]
|
|
107
|
-
})
|
|
108
|
-
);
|
|
109
|
-
};
|
|
110
|
-
LogoOpinionIcon.displayName = "LogoOpinionIcon";
|
|
111
|
-
|
|
112
|
-
// src/primitives/venue-logo/svg/logo-polymarket.tsx
|
|
113
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
114
|
-
var POLYMARKET_BLUE = "#2E5CFF";
|
|
115
|
-
var LogoPolymarketIcon = (_a) => {
|
|
116
|
-
var _b = _a, {
|
|
117
|
-
title,
|
|
118
|
-
className,
|
|
119
|
-
isColor = true,
|
|
120
|
-
color
|
|
121
|
-
} = _b, props = __objRest(_b, [
|
|
122
|
-
"title",
|
|
123
|
-
"className",
|
|
124
|
-
"isColor",
|
|
125
|
-
"color"
|
|
126
|
-
]);
|
|
127
|
-
const primaryColor = resolveLogoPrimaryColor({
|
|
128
|
-
brandColor: POLYMARKET_BLUE,
|
|
129
|
-
isColor,
|
|
130
|
-
color
|
|
131
|
-
});
|
|
132
|
-
return /* @__PURE__ */ jsxs3(
|
|
133
|
-
"svg",
|
|
134
|
-
__spreadProps(__spreadValues(__spreadValues({
|
|
135
|
-
viewBox: "0 0 100 100",
|
|
136
|
-
className,
|
|
137
|
-
fill: "none"
|
|
138
|
-
}, getIconA11yProps(title)), props), {
|
|
139
|
-
children: [
|
|
140
|
-
title ? /* @__PURE__ */ jsx3("title", { children: title }) : null,
|
|
141
|
-
/* @__PURE__ */ jsx3(
|
|
142
|
-
"path",
|
|
143
|
-
{
|
|
144
|
-
d: "M81.0904 84.2882C81.0904 87.9246 81.0904 89.7428 79.901 90.644C78.7119 91.5456 76.9613 91.0542 73.4603 90.0717L17.1975 74.2838C15.0881 73.6919 14.0332 73.3959 13.4233 72.5913C12.8135 71.7866 12.8135 70.6911 12.8135 68.5002V31.4998C12.8135 29.309 12.8135 28.2134 13.4233 27.4088C14.0332 26.6042 15.0881 26.3081 17.1975 25.7163L73.4603 9.92806C76.9613 8.94572 78.7119 8.45448 79.901 9.35587C81.0904 10.2573 81.0904 12.0755 81.0904 15.7119V84.2882ZM26.8451 69.1363L73.4308 82.2104V56.0637L26.8451 69.1363ZM20.4723 63.0711L67.0487 50L20.4723 36.929V63.0711ZM26.8446 30.8638L73.4308 43.9366V17.7896L26.8446 30.8638Z",
|
|
145
|
-
fill: primaryColor
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
]
|
|
149
|
-
})
|
|
150
|
-
);
|
|
151
|
-
};
|
|
152
|
-
LogoPolymarketIcon.displayName = "LogoPolymarketIcon";
|
|
153
|
-
|
|
154
|
-
// src/primitives/venue-logo/svg/logo-probable.tsx
|
|
155
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
156
|
-
var PROBABLE_ORANGE = "#F05923";
|
|
157
|
-
var LogoProbableIcon = (_a) => {
|
|
158
|
-
var _b = _a, {
|
|
159
|
-
title,
|
|
160
|
-
className,
|
|
161
|
-
isColor = true,
|
|
162
|
-
color
|
|
163
|
-
} = _b, props = __objRest(_b, [
|
|
164
|
-
"title",
|
|
165
|
-
"className",
|
|
166
|
-
"isColor",
|
|
167
|
-
"color"
|
|
168
|
-
]);
|
|
169
|
-
const primaryColor = resolveLogoPrimaryColor({
|
|
170
|
-
brandColor: PROBABLE_ORANGE,
|
|
171
|
-
isColor,
|
|
172
|
-
color
|
|
173
|
-
});
|
|
174
|
-
return /* @__PURE__ */ jsxs4(
|
|
175
|
-
"svg",
|
|
176
|
-
__spreadProps(__spreadValues(__spreadValues({
|
|
177
|
-
viewBox: "0 0 100 100",
|
|
178
|
-
className,
|
|
179
|
-
fill: "none"
|
|
180
|
-
}, getIconA11yProps(title)), props), {
|
|
181
|
-
children: [
|
|
182
|
-
title ? /* @__PURE__ */ jsx4("title", { children: title }) : null,
|
|
183
|
-
/* @__PURE__ */ jsx4(
|
|
184
|
-
"path",
|
|
185
|
-
{
|
|
186
|
-
d: "M75.625 59.3489C75.6247 53.7323 71.0719 49.1792 65.4551 49.179H33.9209C28.3039 49.179 23.7503 53.7321 23.75 59.3489C23.75 64.9659 28.3038 69.5198 33.9209 69.5198H65.4551C71.0719 69.5195 75.625 64.9658 75.625 59.3489ZM90.625 59.3489C90.625 73.2501 79.3562 84.5195 65.4551 84.5198H33.9209C20.0196 84.5198 8.75 73.2502 8.75 59.3489C8.75026 45.4477 20.0198 34.179 33.9209 34.179H65.4551C79.3559 34.1792 90.6247 45.4478 90.625 59.3489Z",
|
|
187
|
-
fill: primaryColor
|
|
188
|
-
}
|
|
189
|
-
),
|
|
190
|
-
/* @__PURE__ */ jsx4("path", { d: "M90.9329 15.4546V30.4546H8.90234V15.4546H90.9329Z", fill: primaryColor }),
|
|
191
|
-
/* @__PURE__ */ jsx4(
|
|
192
|
-
"path",
|
|
193
|
-
{
|
|
194
|
-
d: "M64.5742 51.3496C68.9894 51.3496 72.5742 54.9344 72.5742 59.3496C72.5742 63.7648 68.9894 67.3496 64.5742 67.3496C60.159 67.3496 56.5742 63.7648 56.5742 59.3496C56.5742 54.9344 60.159 51.3496 64.5742 51.3496Z",
|
|
195
|
-
fill: primaryColor
|
|
196
|
-
}
|
|
197
|
-
)
|
|
198
|
-
]
|
|
199
|
-
})
|
|
200
|
-
);
|
|
201
|
-
};
|
|
202
|
-
LogoProbableIcon.displayName = "LogoProbableIcon";
|
|
203
|
-
|
|
204
|
-
// src/primitives/venue-logo/venue-logo.constants.ts
|
|
205
|
-
var venueLogoRegistry = {
|
|
206
|
-
kalshi: LogoKalshiIcon,
|
|
207
|
-
polymarket: LogoPolymarketIcon,
|
|
208
|
-
opinion: LogoOpinionIcon,
|
|
209
|
-
probable: LogoProbableIcon
|
|
210
|
-
};
|
|
211
|
-
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
212
|
-
var venueLogoUrlRegistry = {
|
|
213
|
-
kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
214
|
-
polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
215
|
-
opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
216
|
-
probable: `${VENUE_LOGO_BASE_URL}/probable.png`
|
|
217
|
-
};
|
|
218
|
-
var venueLogoLabels = {
|
|
219
|
-
kalshi: "Kalshi",
|
|
220
|
-
polymarket: "Polymarket",
|
|
221
|
-
opinion: "Opinion",
|
|
222
|
-
probable: "Probable"
|
|
223
|
-
};
|
|
224
|
-
var venueLogoNames = Object.keys(venueLogoRegistry);
|
|
225
|
-
var sizeClasses = {
|
|
226
|
-
small: "h-4 w-4",
|
|
227
|
-
medium: "h-6 w-6",
|
|
228
|
-
large: "h-8 w-8"
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
// src/primitives/venue-logo/index.tsx
|
|
232
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
233
|
-
var VenueLogo = ({
|
|
234
|
-
venue,
|
|
235
|
-
variant = "icon",
|
|
236
|
-
isColor = true,
|
|
237
|
-
isMonochromatic = false,
|
|
238
|
-
color,
|
|
239
|
-
size = "medium",
|
|
240
|
-
className,
|
|
241
|
-
ariaLabel,
|
|
242
|
-
title
|
|
243
|
-
}) => {
|
|
244
|
-
const labels = useLabels();
|
|
245
|
-
const sizeClass = sizeClasses[size];
|
|
246
|
-
const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
|
|
247
|
-
if (variant === "logo") {
|
|
248
|
-
return /* @__PURE__ */ jsx5(
|
|
249
|
-
"img",
|
|
250
|
-
{
|
|
251
|
-
src: venueLogoUrlRegistry[venue],
|
|
252
|
-
alt: resolvedLabel,
|
|
253
|
-
title,
|
|
254
|
-
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
255
|
-
}
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
const Component = venueLogoRegistry[venue];
|
|
259
|
-
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
260
|
-
return /* @__PURE__ */ jsx5(
|
|
261
|
-
Component,
|
|
262
|
-
{
|
|
263
|
-
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
264
|
-
isColor: resolvedIsColor,
|
|
265
|
-
color,
|
|
266
|
-
"aria-label": resolvedLabel,
|
|
267
|
-
title
|
|
268
|
-
}
|
|
269
|
-
);
|
|
270
|
-
};
|
|
271
|
-
VenueLogo.displayName = "VenueLogo";
|
|
272
|
-
|
|
273
|
-
export {
|
|
274
|
-
venueLogoLabels,
|
|
275
|
-
venueLogoNames,
|
|
276
|
-
VenueLogo
|
|
277
|
-
};
|