@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
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Icon,
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-MUB7NYWZ.mjs";
|
|
5
|
+
|
|
6
|
+
// src/primitives/inline-alert/index.tsx
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
var toneIconName = {
|
|
9
|
+
error: "error-filled",
|
|
10
|
+
warning: "warning-filled"
|
|
11
|
+
};
|
|
12
|
+
var toneIconClassName = {
|
|
13
|
+
error: "text-agg-error",
|
|
14
|
+
warning: "text-agg-warning"
|
|
15
|
+
};
|
|
16
|
+
var surfaceClassNames = {
|
|
17
|
+
error: "rounded-agg-lg bg-agg-status-error-surface px-3 py-2.5",
|
|
18
|
+
warning: "rounded-agg-lg border border-agg-separator bg-agg-secondary-hover px-3 py-2.5"
|
|
19
|
+
};
|
|
20
|
+
var liveRegionConfig = {
|
|
21
|
+
error: {
|
|
22
|
+
role: "alert",
|
|
23
|
+
ariaLive: "assertive"
|
|
24
|
+
},
|
|
25
|
+
warning: {
|
|
26
|
+
role: "status",
|
|
27
|
+
ariaLive: "polite"
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var resolveVariant = ({
|
|
31
|
+
tone,
|
|
32
|
+
variant
|
|
33
|
+
}) => {
|
|
34
|
+
if (variant)
|
|
35
|
+
return variant;
|
|
36
|
+
return tone === "error" ? "surface" : "plain";
|
|
37
|
+
};
|
|
38
|
+
var InlineAlert = ({
|
|
39
|
+
tone = "error",
|
|
40
|
+
variant,
|
|
41
|
+
title,
|
|
42
|
+
message,
|
|
43
|
+
actionLabel,
|
|
44
|
+
onAction,
|
|
45
|
+
className,
|
|
46
|
+
"aria-label": ariaLabel
|
|
47
|
+
}) => {
|
|
48
|
+
const resolvedVariant = resolveVariant({
|
|
49
|
+
tone,
|
|
50
|
+
variant
|
|
51
|
+
});
|
|
52
|
+
const hasAction = !!actionLabel && !!onAction;
|
|
53
|
+
const { ariaLive, role } = liveRegionConfig[tone];
|
|
54
|
+
return /* @__PURE__ */ jsxs(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: cn(
|
|
58
|
+
"flex w-full gap-3",
|
|
59
|
+
resolvedVariant === "plain" ? "items-center justify-center" : "items-start",
|
|
60
|
+
resolvedVariant === "surface" ? surfaceClassNames[tone] : null,
|
|
61
|
+
className
|
|
62
|
+
),
|
|
63
|
+
role,
|
|
64
|
+
"aria-live": ariaLive,
|
|
65
|
+
"aria-label": ariaLabel,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
Icon,
|
|
69
|
+
{
|
|
70
|
+
name: toneIconName[tone],
|
|
71
|
+
className: cn("h-4 w-4 shrink-0", toneIconClassName[tone]),
|
|
72
|
+
"aria-hidden": "true"
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsx(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: cn(
|
|
79
|
+
"min-w-0",
|
|
80
|
+
resolvedVariant === "plain" && !hasAction ? "flex-none text-center" : "flex-1"
|
|
81
|
+
),
|
|
82
|
+
children: /* @__PURE__ */ jsxs(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
className: cn(
|
|
86
|
+
"flex flex-col",
|
|
87
|
+
title ? "gap-1" : null,
|
|
88
|
+
resolvedVariant === "plain" && !hasAction ? "items-center" : null
|
|
89
|
+
),
|
|
90
|
+
children: [
|
|
91
|
+
title ? /* @__PURE__ */ jsx("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: title }) : null,
|
|
92
|
+
/* @__PURE__ */ jsx("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: message })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
hasAction ? /* @__PURE__ */ jsx(
|
|
99
|
+
"button",
|
|
100
|
+
{
|
|
101
|
+
type: "button",
|
|
102
|
+
className: cn(
|
|
103
|
+
"shrink-0 text-agg-sm font-agg-bold leading-agg-5 text-agg-primary",
|
|
104
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary"
|
|
105
|
+
),
|
|
106
|
+
"aria-label": actionLabel,
|
|
107
|
+
onClick: onAction,
|
|
108
|
+
children: actionLabel
|
|
109
|
+
}
|
|
110
|
+
) : null
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
InlineAlert.displayName = "InlineAlert";
|
|
116
|
+
|
|
117
|
+
export {
|
|
118
|
+
InlineAlert
|
|
119
|
+
};
|
|
@@ -1,22 +1,146 @@
|
|
|
1
1
|
import {
|
|
2
|
-
SearchEmptyIcon
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
VenueLogo
|
|
6
|
-
} from "./chunk-PORVP72S.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Icon
|
|
9
|
-
} from "./chunk-PZTHM6WG.mjs";
|
|
2
|
+
SearchEmptyIcon,
|
|
3
|
+
Typography
|
|
4
|
+
} from "./chunk-ZYUJ7YEJ.mjs";
|
|
10
5
|
import {
|
|
6
|
+
Icon,
|
|
7
|
+
VenueLogo,
|
|
11
8
|
__spreadProps,
|
|
12
9
|
__spreadValues,
|
|
13
10
|
cn,
|
|
14
|
-
getMotionClassName
|
|
15
|
-
|
|
11
|
+
getMotionClassName,
|
|
12
|
+
iconSizeClasses
|
|
13
|
+
} from "./chunk-MUB7NYWZ.mjs";
|
|
16
14
|
|
|
17
|
-
// src/primitives/
|
|
18
|
-
import {
|
|
15
|
+
// src/primitives/hello-world.tsx
|
|
16
|
+
import { useHello } from "@agg-market/hooks";
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
function HelloWorld() {
|
|
19
|
+
const { data, error, isLoading } = useHello();
|
|
20
|
+
if (isLoading) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Typography, { variant: "body", children: "Loading..." });
|
|
22
|
+
}
|
|
23
|
+
if (error) {
|
|
24
|
+
return /* @__PURE__ */ jsxs(Typography, { variant: "body", children: [
|
|
25
|
+
"Error: ",
|
|
26
|
+
error.message
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
return /* @__PURE__ */ jsx(Typography, { variant: "body", children: data == null ? void 0 : data.message });
|
|
30
|
+
}
|
|
31
|
+
HelloWorld.displayName = "HelloWorld";
|
|
32
|
+
|
|
33
|
+
// src/primitives/loading-icon/index.tsx
|
|
19
34
|
import { useLabels, useSdkUiConfig } from "@agg-market/hooks";
|
|
35
|
+
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
36
|
+
var LoadingIcon = ({
|
|
37
|
+
size = "medium",
|
|
38
|
+
className,
|
|
39
|
+
ariaLabel
|
|
40
|
+
}) => {
|
|
41
|
+
const labels = useLabels();
|
|
42
|
+
const { enableAnimations } = useSdkUiConfig();
|
|
43
|
+
return /* @__PURE__ */ jsx2(
|
|
44
|
+
"span",
|
|
45
|
+
{
|
|
46
|
+
role: "status",
|
|
47
|
+
"aria-label": ariaLabel != null ? ariaLabel : labels.common.loading,
|
|
48
|
+
className: cn(
|
|
49
|
+
"group/agg-loading-icon",
|
|
50
|
+
"inline-grid place-items-center text-agg-primary will-change-transform",
|
|
51
|
+
className
|
|
52
|
+
),
|
|
53
|
+
children: /* @__PURE__ */ jsx2("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 44 44", className: cn("block", iconSizeClasses[size]), children: /* @__PURE__ */ jsxs2("g", { children: [
|
|
54
|
+
enableAnimations ? /* @__PURE__ */ jsx2(
|
|
55
|
+
"animateTransform",
|
|
56
|
+
{
|
|
57
|
+
attributeName: "transform",
|
|
58
|
+
attributeType: "XML",
|
|
59
|
+
type: "rotate",
|
|
60
|
+
from: "0 22 22",
|
|
61
|
+
to: "360 22 22",
|
|
62
|
+
dur: "1.4s",
|
|
63
|
+
repeatCount: "indefinite"
|
|
64
|
+
}
|
|
65
|
+
) : null,
|
|
66
|
+
/* @__PURE__ */ jsx2(
|
|
67
|
+
"circle",
|
|
68
|
+
{
|
|
69
|
+
cx: "22",
|
|
70
|
+
cy: "22",
|
|
71
|
+
r: "16",
|
|
72
|
+
fill: "none",
|
|
73
|
+
stroke: "currentColor",
|
|
74
|
+
strokeWidth: "6",
|
|
75
|
+
strokeLinecap: "round",
|
|
76
|
+
strokeDasharray: "60 100",
|
|
77
|
+
strokeDashoffset: "0",
|
|
78
|
+
children: enableAnimations ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
79
|
+
/* @__PURE__ */ jsx2(
|
|
80
|
+
"animate",
|
|
81
|
+
{
|
|
82
|
+
attributeName: "stroke-dasharray",
|
|
83
|
+
values: "1 100;60 100;1 100",
|
|
84
|
+
dur: "1.2s",
|
|
85
|
+
repeatCount: "indefinite"
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ jsx2(
|
|
89
|
+
"animate",
|
|
90
|
+
{
|
|
91
|
+
attributeName: "stroke-dashoffset",
|
|
92
|
+
values: "0;-25;-100",
|
|
93
|
+
dur: "1.2s",
|
|
94
|
+
repeatCount: "indefinite"
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] }) : null
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }) }) })
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
LoadingIcon.displayName = "LoadingIcon";
|
|
105
|
+
|
|
106
|
+
// src/primitives/number-value.tsx
|
|
107
|
+
import { useMemo } from "react";
|
|
108
|
+
import { useSdkUiConfig as useSdkUiConfig2 } from "@agg-market/hooks";
|
|
109
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
110
|
+
var NumberValue = ({
|
|
111
|
+
value,
|
|
112
|
+
format = "number",
|
|
113
|
+
fallback = "\u2014",
|
|
114
|
+
className,
|
|
115
|
+
ariaLabel
|
|
116
|
+
}) => {
|
|
117
|
+
const config = useSdkUiConfig2();
|
|
118
|
+
const formatted = useMemo(() => {
|
|
119
|
+
if (value == null)
|
|
120
|
+
return fallback;
|
|
121
|
+
if (format === "date") {
|
|
122
|
+
if (value instanceof Date)
|
|
123
|
+
return config.formatDate(value);
|
|
124
|
+
return fallback;
|
|
125
|
+
}
|
|
126
|
+
if (typeof value !== "number")
|
|
127
|
+
return fallback;
|
|
128
|
+
if (format === "percent")
|
|
129
|
+
return config.formatPercent(value);
|
|
130
|
+
if (format === "currency")
|
|
131
|
+
return config.formatCurrency(value);
|
|
132
|
+
if (format === "compactCurrency") {
|
|
133
|
+
return config.formatCompactCurrency(value);
|
|
134
|
+
}
|
|
135
|
+
return config.formatNumber(value);
|
|
136
|
+
}, [config, fallback, format, value]);
|
|
137
|
+
return /* @__PURE__ */ jsx3("span", { className: cn("font-agg-sans", className), "aria-label": ariaLabel, children: formatted });
|
|
138
|
+
};
|
|
139
|
+
NumberValue.displayName = "NumberValue";
|
|
140
|
+
|
|
141
|
+
// src/primitives/search/index.tsx
|
|
142
|
+
import { useMemo as useMemo2 } from "react";
|
|
143
|
+
import { useLabels as useLabels2, useSdkUiConfig as useSdkUiConfig3 } from "@agg-market/hooks";
|
|
20
144
|
|
|
21
145
|
// src/primitives/search/search.types.ts
|
|
22
146
|
import { z } from "zod";
|
|
@@ -42,7 +166,7 @@ var searchResultItemSchema = z.object({
|
|
|
42
166
|
var searchResultItemsSchema = z.array(searchResultItemSchema);
|
|
43
167
|
|
|
44
168
|
// src/primitives/search/index.tsx
|
|
45
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
169
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
46
170
|
var SearchResultRow = ({
|
|
47
171
|
item,
|
|
48
172
|
resultAria,
|
|
@@ -53,7 +177,7 @@ var SearchResultRow = ({
|
|
|
53
177
|
const handleResultClick = () => {
|
|
54
178
|
onSelect == null ? void 0 : onSelect(item);
|
|
55
179
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
180
|
+
return /* @__PURE__ */ jsxs3(
|
|
57
181
|
"button",
|
|
58
182
|
{
|
|
59
183
|
type: "button",
|
|
@@ -69,8 +193,8 @@ var SearchResultRow = ({
|
|
|
69
193
|
onClick: handleResultClick,
|
|
70
194
|
"aria-label": resultAria(item.title),
|
|
71
195
|
children: [
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
197
|
+
/* @__PURE__ */ jsx4(
|
|
74
198
|
"img",
|
|
75
199
|
{
|
|
76
200
|
src: item.thumbnailSrc,
|
|
@@ -81,7 +205,7 @@ var SearchResultRow = ({
|
|
|
81
205
|
)
|
|
82
206
|
}
|
|
83
207
|
),
|
|
84
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ jsx4(
|
|
85
209
|
"p",
|
|
86
210
|
{
|
|
87
211
|
className: cn(
|
|
@@ -92,10 +216,10 @@ var SearchResultRow = ({
|
|
|
92
216
|
}
|
|
93
217
|
)
|
|
94
218
|
] }),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ jsxs3("div", { className: cn("flex w-[200px] shrink-0 items-center gap-2", classNames == null ? void 0 : classNames.resultMeta), children: [
|
|
220
|
+
/* @__PURE__ */ jsx4(VenueLogo, { venue: item.venue, size: "small" }),
|
|
221
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-1 items-baseline gap-2", children: [
|
|
222
|
+
/* @__PURE__ */ jsx4(
|
|
99
223
|
"p",
|
|
100
224
|
{
|
|
101
225
|
className: cn(
|
|
@@ -105,7 +229,7 @@ var SearchResultRow = ({
|
|
|
105
229
|
children: item.valueLabel
|
|
106
230
|
}
|
|
107
231
|
),
|
|
108
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ jsx4(
|
|
109
233
|
"p",
|
|
110
234
|
{
|
|
111
235
|
className: cn(
|
|
@@ -117,7 +241,7 @@ var SearchResultRow = ({
|
|
|
117
241
|
)
|
|
118
242
|
] })
|
|
119
243
|
] }),
|
|
120
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ jsx4(
|
|
121
245
|
Icon,
|
|
122
246
|
{
|
|
123
247
|
name: "chevron-right",
|
|
@@ -145,9 +269,9 @@ var Search = ({
|
|
|
145
269
|
classNames,
|
|
146
270
|
inputProps
|
|
147
271
|
}) => {
|
|
148
|
-
const labels =
|
|
149
|
-
const { enableAnimations } =
|
|
150
|
-
const validatedResults =
|
|
272
|
+
const labels = useLabels2();
|
|
273
|
+
const { enableAnimations } = useSdkUiConfig3();
|
|
274
|
+
const validatedResults = useMemo2(() => {
|
|
151
275
|
return getValidatedResults(results);
|
|
152
276
|
}, [results]);
|
|
153
277
|
const hasSearchValue = value.trim().length > 0;
|
|
@@ -158,8 +282,8 @@ var Search = ({
|
|
|
158
282
|
const handleInputChange = (event) => {
|
|
159
283
|
onValueChange(event.target.value);
|
|
160
284
|
};
|
|
161
|
-
return /* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */
|
|
285
|
+
return /* @__PURE__ */ jsxs3("div", { className: cn("group/agg-search", "flex w-full flex-col gap-1", classNames == null ? void 0 : classNames.root), children: [
|
|
286
|
+
/* @__PURE__ */ jsx4("label", { className: "w-full", children: /* @__PURE__ */ jsxs3(
|
|
163
287
|
"div",
|
|
164
288
|
{
|
|
165
289
|
className: cn(
|
|
@@ -173,7 +297,7 @@ var Search = ({
|
|
|
173
297
|
classNames == null ? void 0 : classNames.inputContainer
|
|
174
298
|
),
|
|
175
299
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ jsx4(
|
|
177
301
|
Icon,
|
|
178
302
|
{
|
|
179
303
|
name: "search",
|
|
@@ -181,7 +305,7 @@ var Search = ({
|
|
|
181
305
|
className: cn("text-agg-muted-foreground", classNames == null ? void 0 : classNames.searchIcon)
|
|
182
306
|
}
|
|
183
307
|
),
|
|
184
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ jsx4(
|
|
185
309
|
"input",
|
|
186
310
|
__spreadProps(__spreadValues({}, inputProps), {
|
|
187
311
|
type: "text",
|
|
@@ -202,25 +326,25 @@ var Search = ({
|
|
|
202
326
|
]
|
|
203
327
|
}
|
|
204
328
|
) }),
|
|
205
|
-
shouldRenderResults ? /* @__PURE__ */
|
|
329
|
+
shouldRenderResults ? /* @__PURE__ */ jsx4(
|
|
206
330
|
"div",
|
|
207
331
|
{
|
|
208
332
|
className: cn(
|
|
209
333
|
"w-full overflow-hidden rounded-agg-xl border border-agg-separator bg-agg-secondary py-2 shadow-[0px_8px_16px_0px_rgba(0,0,0,0.1)]",
|
|
210
334
|
classNames == null ? void 0 : classNames.dropdown
|
|
211
335
|
),
|
|
212
|
-
children: /* @__PURE__ */
|
|
336
|
+
children: /* @__PURE__ */ jsx4(
|
|
213
337
|
"ul",
|
|
214
338
|
{
|
|
215
339
|
className: cn("m-0 flex list-none flex-col p-0", classNames == null ? void 0 : classNames.resultsList),
|
|
216
340
|
role: "listbox",
|
|
217
341
|
"aria-label": labels.search.resultsAria,
|
|
218
|
-
children: validatedResults.map((item, index) => /* @__PURE__ */
|
|
342
|
+
children: validatedResults.map((item, index) => /* @__PURE__ */ jsx4(
|
|
219
343
|
"li",
|
|
220
344
|
{
|
|
221
345
|
role: "presentation",
|
|
222
346
|
className: cn(index > 0 && "border-t border-agg-separator", classNames == null ? void 0 : classNames.resultItem),
|
|
223
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ jsx4(
|
|
224
348
|
SearchResultRow,
|
|
225
349
|
{
|
|
226
350
|
item,
|
|
@@ -236,29 +360,29 @@ var Search = ({
|
|
|
236
360
|
)
|
|
237
361
|
}
|
|
238
362
|
) : null,
|
|
239
|
-
shouldRenderNoResults ? /* @__PURE__ */
|
|
363
|
+
shouldRenderNoResults ? /* @__PURE__ */ jsx4(
|
|
240
364
|
"div",
|
|
241
365
|
{
|
|
242
366
|
className: cn(
|
|
243
367
|
"w-full overflow-hidden rounded-agg-xl border border-agg-separator bg-agg-secondary py-10 shadow-[0px_8px_16px_0px_rgba(0,0,0,0.1)]",
|
|
244
368
|
classNames == null ? void 0 : classNames.emptyState
|
|
245
369
|
),
|
|
246
|
-
children: /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ jsxs3(
|
|
247
371
|
"div",
|
|
248
372
|
{
|
|
249
373
|
className: cn("flex flex-col items-center gap-5", classNames == null ? void 0 : classNames.emptyStateContent),
|
|
250
374
|
role: "status",
|
|
251
375
|
"aria-live": "polite",
|
|
252
376
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ jsx4(
|
|
254
378
|
SearchEmptyIcon,
|
|
255
379
|
{
|
|
256
380
|
className: cn("h-10 w-10 text-agg-muted-foreground", classNames == null ? void 0 : classNames.emptyStateIcon),
|
|
257
381
|
"aria-hidden": true
|
|
258
382
|
}
|
|
259
383
|
),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-1 text-center", children: [
|
|
385
|
+
/* @__PURE__ */ jsx4(
|
|
262
386
|
"p",
|
|
263
387
|
{
|
|
264
388
|
className: cn(
|
|
@@ -268,7 +392,7 @@ var Search = ({
|
|
|
268
392
|
children: labels.search.noResultsTitle
|
|
269
393
|
}
|
|
270
394
|
),
|
|
271
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ jsx4(
|
|
272
396
|
"p",
|
|
273
397
|
{
|
|
274
398
|
className: cn(
|
|
@@ -289,5 +413,8 @@ var Search = ({
|
|
|
289
413
|
Search.displayName = "Search";
|
|
290
414
|
|
|
291
415
|
export {
|
|
416
|
+
HelloWorld,
|
|
417
|
+
LoadingIcon,
|
|
418
|
+
NumberValue,
|
|
292
419
|
Search
|
|
293
420
|
};
|