@agg-market/ui 4.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-DCORNTCY.mjs → chunk-JE3Z52FD.mjs} +85 -64
- 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} +5128 -5274
- package/dist/events.mjs +17 -0
- package/dist/index.d.mts +1 -78
- package/dist/index.d.ts +1 -78
- package/dist/index.js +8738 -8534
- package/dist/index.mjs +68 -167
- 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/pages.js +7928 -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} +2980 -3153
- package/dist/{icon.mjs → primitives.mjs} +56 -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} +1907 -1394
- 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/types/primitives/state-message/index.d.mts +15 -0
- package/dist/types/primitives/state-message/index.d.ts +15 -0
- 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-DkGlbmXq.d.ts → types/trading/types.d.mts} +35 -38
- package/dist/{types-DkGlbmXq.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 +35 -273
- 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-3QLOUBDJ.mjs +0 -483
- package/dist/chunk-3W7NBJLU.mjs +0 -371
- 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-ERGNR6UQ.mjs +0 -67
- package/dist/chunk-FO263M3V.mjs +0 -10
- package/dist/chunk-FO2QCB4Z.mjs +0 -35
- package/dist/chunk-GJ4U5NCE.mjs +0 -134
- package/dist/chunk-GNSPZ53C.mjs +0 -991
- package/dist/chunk-HOXTJ742.mjs +0 -146
- package/dist/chunk-JNH64AKR.mjs +0 -720
- package/dist/chunk-K6IJ4WBM.mjs +0 -67
- package/dist/chunk-KAGYJ4XT.mjs +0 -126
- package/dist/chunk-LA3FBBSJ.mjs +0 -311
- package/dist/chunk-LCZKSITC.mjs +0 -162
- package/dist/chunk-M4RJHRFT.mjs +0 -445
- package/dist/chunk-MBHTXNHX.mjs +0 -289
- package/dist/chunk-MJHKBCXQ.mjs +0 -379
- package/dist/chunk-NDG43KGL.mjs +0 -44
- package/dist/chunk-NH2G3POM.mjs +0 -470
- package/dist/chunk-OBCHURW5.mjs +0 -64
- package/dist/chunk-OH56VUYK.mjs +0 -321
- package/dist/chunk-OJVTGNIF.mjs +0 -230
- package/dist/chunk-P2PJBO5C.mjs +0 -280
- package/dist/chunk-PORVP72S.mjs +0 -277
- package/dist/chunk-QLMVKLNJ.mjs +0 -669
- package/dist/chunk-QM7CGMFG.mjs +0 -156
- package/dist/chunk-S3H63TQ5.mjs +0 -537
- 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 -2254
- package/dist/event-list-item-details.mjs +0 -19
- 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 -2600
- package/dist/event-list-item.mjs +0 -17
- 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 -3578
- package/dist/event-list.mjs +0 -20
- 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 -28
- 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 -3842
- package/dist/home-page.mjs +0 -21
- 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 -21
- 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.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 -1954
- package/dist/search.mjs +0 -12
- 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/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
|
@@ -56,17 +56,116 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
56
56
|
));
|
|
57
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
58
|
|
|
59
|
-
// src/trading/
|
|
60
|
-
var
|
|
61
|
-
__export(
|
|
62
|
-
PlaceOrder: () => PlaceOrder
|
|
59
|
+
// src/trading/index.ts
|
|
60
|
+
var trading_exports = {};
|
|
61
|
+
__export(trading_exports, {
|
|
62
|
+
PlaceOrder: () => PlaceOrder,
|
|
63
|
+
Settlement: () => Settlement,
|
|
64
|
+
defaultSettlementDifferencesTitle: () => defaultSettlementDifferencesTitle,
|
|
65
|
+
defaultSettlementSectionLabel: () => defaultSettlementSectionLabel,
|
|
66
|
+
defaultTradingDisclaimer: () => defaultTradingDisclaimer,
|
|
67
|
+
getTradingAveragePriceLabel: () => getTradingAveragePriceLabel,
|
|
68
|
+
getTradingBalanceLabel: () => getTradingBalanceLabel,
|
|
69
|
+
getTradingDateLabel: () => getTradingDateLabel,
|
|
70
|
+
getTradingPriceLabel: () => getTradingPriceLabel,
|
|
71
|
+
getTradingSharesLabel: () => getTradingSharesLabel,
|
|
72
|
+
getTradingSlippageLabel: () => getTradingSlippageLabel,
|
|
73
|
+
getTradingValueLabel: () => getTradingValueLabel,
|
|
74
|
+
getTradingVenueLabel: () => getTradingVenueLabel,
|
|
75
|
+
placeOrderMetricSchema: () => placeOrderMetricSchema,
|
|
76
|
+
placeOrderOutcomeSchema: () => placeOrderOutcomeSchema,
|
|
77
|
+
placeOrderResultSchema: () => placeOrderResultSchema,
|
|
78
|
+
placeOrderResultToneSchema: () => placeOrderResultToneSchema,
|
|
79
|
+
placeOrderRoutingRowSchema: () => placeOrderRoutingRowSchema,
|
|
80
|
+
placeOrderRoutingSchema: () => placeOrderRoutingSchema,
|
|
81
|
+
placeOrderRoutingToneSchema: () => placeOrderRoutingToneSchema,
|
|
82
|
+
placeOrderStatusPlacementSchema: () => placeOrderStatusPlacementSchema,
|
|
83
|
+
placeOrderStatusSchema: () => placeOrderStatusSchema,
|
|
84
|
+
placeOrderStatusToneSchema: () => placeOrderStatusToneSchema,
|
|
85
|
+
placeOrderTabSchema: () => placeOrderTabSchema,
|
|
86
|
+
placeOrderViewModelSchema: () => placeOrderViewModelSchema,
|
|
87
|
+
settlementVenueSchema: () => settlementVenueSchema,
|
|
88
|
+
settlementViewModelSchema: () => settlementViewModelSchema,
|
|
89
|
+
tradingVenueSchema: () => tradingVenueSchema
|
|
90
|
+
});
|
|
91
|
+
module.exports = __toCommonJS(trading_exports);
|
|
92
|
+
|
|
93
|
+
// src/trading/types.ts
|
|
94
|
+
var import_zod = require("zod");
|
|
95
|
+
var tradingVenueSchema = import_zod.z.enum(["polymarket", "kalshi", "opinion", "probable"]);
|
|
96
|
+
var settlementVenueSchema = import_zod.z.object({
|
|
97
|
+
venue: tradingVenueSchema,
|
|
98
|
+
label: import_zod.z.string().optional(),
|
|
99
|
+
description: import_zod.z.string().min(1),
|
|
100
|
+
showMoreLabel: import_zod.z.string().optional()
|
|
101
|
+
});
|
|
102
|
+
var settlementViewModelSchema = import_zod.z.object({
|
|
103
|
+
sectionLabel: import_zod.z.string().min(1),
|
|
104
|
+
question: import_zod.z.string().min(1),
|
|
105
|
+
differencesTitle: import_zod.z.string().min(1),
|
|
106
|
+
differences: import_zod.z.array(import_zod.z.string().min(1)).min(1),
|
|
107
|
+
venues: import_zod.z.array(settlementVenueSchema).min(1),
|
|
108
|
+
defaultExpandedVenue: tradingVenueSchema.nullable().optional()
|
|
109
|
+
});
|
|
110
|
+
var placeOrderTabSchema = import_zod.z.enum(["buy", "sell"]);
|
|
111
|
+
var placeOrderStatusToneSchema = import_zod.z.enum(["warning", "error"]);
|
|
112
|
+
var placeOrderStatusPlacementSchema = import_zod.z.enum(["above-action", "below-action"]);
|
|
113
|
+
var placeOrderRoutingToneSchema = import_zod.z.enum(["default", "highlighted"]);
|
|
114
|
+
var placeOrderResultToneSchema = import_zod.z.enum(["default", "success"]);
|
|
115
|
+
var placeOrderOutcomeSchema = import_zod.z.object({
|
|
116
|
+
id: import_zod.z.string().min(1),
|
|
117
|
+
label: import_zod.z.string().min(1),
|
|
118
|
+
priceLabel: import_zod.z.string().min(1)
|
|
119
|
+
});
|
|
120
|
+
var placeOrderMetricSchema = import_zod.z.object({
|
|
121
|
+
label: import_zod.z.string().min(1),
|
|
122
|
+
hint: import_zod.z.string().min(1),
|
|
123
|
+
value: import_zod.z.string().min(1)
|
|
124
|
+
});
|
|
125
|
+
var placeOrderRoutingRowSchema = import_zod.z.object({
|
|
126
|
+
venue: tradingVenueSchema,
|
|
127
|
+
label: import_zod.z.string().min(1),
|
|
128
|
+
priceLabel: import_zod.z.string().min(1)
|
|
129
|
+
});
|
|
130
|
+
var placeOrderRoutingSchema = import_zod.z.object({
|
|
131
|
+
tone: placeOrderRoutingToneSchema,
|
|
132
|
+
rows: import_zod.z.array(placeOrderRoutingRowSchema).min(1),
|
|
133
|
+
helperLabel: import_zod.z.string().min(1),
|
|
134
|
+
highlightLabel: import_zod.z.string().optional()
|
|
135
|
+
});
|
|
136
|
+
var placeOrderResultSchema = import_zod.z.object({
|
|
137
|
+
label: import_zod.z.string().min(1),
|
|
138
|
+
hint: import_zod.z.string().min(1),
|
|
139
|
+
value: import_zod.z.string().min(1),
|
|
140
|
+
tone: placeOrderResultToneSchema
|
|
141
|
+
});
|
|
142
|
+
var placeOrderStatusSchema = import_zod.z.object({
|
|
143
|
+
tone: placeOrderStatusToneSchema,
|
|
144
|
+
message: import_zod.z.string().min(1),
|
|
145
|
+
actionLabel: import_zod.z.string().optional(),
|
|
146
|
+
placement: placeOrderStatusPlacementSchema
|
|
147
|
+
});
|
|
148
|
+
var placeOrderViewModelSchema = import_zod.z.object({
|
|
149
|
+
title: import_zod.z.string().min(1),
|
|
150
|
+
marketDate: import_zod.z.union([import_zod.z.string(), import_zod.z.date()]),
|
|
151
|
+
marketImageUrl: import_zod.z.string().url().optional(),
|
|
152
|
+
activeTab: placeOrderTabSchema,
|
|
153
|
+
buyLabel: import_zod.z.string().min(1),
|
|
154
|
+
sellLabel: import_zod.z.string().min(1),
|
|
155
|
+
outcomes: import_zod.z.array(placeOrderOutcomeSchema).min(2),
|
|
156
|
+
selectedOutcomeId: import_zod.z.string().min(1),
|
|
157
|
+
primaryMetric: placeOrderMetricSchema,
|
|
158
|
+
routing: placeOrderRoutingSchema,
|
|
159
|
+
result: placeOrderResultSchema,
|
|
160
|
+
actionLabel: import_zod.z.string().min(1),
|
|
161
|
+
disclaimer: import_zod.z.string().min(1),
|
|
162
|
+
isDismissible: import_zod.z.boolean().optional(),
|
|
163
|
+
status: placeOrderStatusSchema.optional()
|
|
63
164
|
});
|
|
64
|
-
module.exports = __toCommonJS(place_order_exports);
|
|
65
|
-
var import_react3 = require("react");
|
|
66
|
-
var import_hooks13 = require("@agg-market/hooks");
|
|
67
165
|
|
|
68
|
-
// src/
|
|
166
|
+
// src/trading/utils.ts
|
|
69
167
|
var import_hooks = require("@agg-market/hooks");
|
|
168
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
70
169
|
|
|
71
170
|
// src/shared/utils.ts
|
|
72
171
|
var cn = (...values) => values.filter(Boolean).join(" ");
|
|
@@ -78,130 +177,73 @@ var getMotionClassName = (enabled, ...values) => {
|
|
|
78
177
|
var getScrollBehavior = (enabled) => {
|
|
79
178
|
return enabled ? "smooth" : "auto";
|
|
80
179
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
180
|
+
var formatUsd = (value) => {
|
|
181
|
+
if (!Number.isFinite(value))
|
|
182
|
+
return "$0";
|
|
183
|
+
return value.toLocaleString("en-US", {
|
|
184
|
+
style: "currency",
|
|
185
|
+
currency: "USD",
|
|
186
|
+
minimumFractionDigits: 0,
|
|
187
|
+
maximumFractionDigits: 2
|
|
188
|
+
});
|
|
87
189
|
};
|
|
88
190
|
|
|
89
|
-
// src/
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
191
|
+
// src/trading/utils.ts
|
|
192
|
+
var defaultLabels = (0, import_hooks.resolveAggUiLabels)("en-US");
|
|
193
|
+
var defaultSettlementSectionLabel = defaultLabels.trading.settlementSection;
|
|
194
|
+
var defaultSettlementDifferencesTitle = defaultLabels.trading.settlementDifferencesTitle;
|
|
195
|
+
var defaultTradingDisclaimer = defaultLabels.trading.disclaimer;
|
|
196
|
+
var getTradingDateLabel = (value) => {
|
|
197
|
+
const parsedValue = (0, import_dayjs.default)(value);
|
|
198
|
+
if (!parsedValue.isValid()) {
|
|
199
|
+
return typeof value === "string" ? value : "";
|
|
200
|
+
}
|
|
201
|
+
return parsedValue.format("MMM D, YYYY");
|
|
94
202
|
};
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
203
|
+
var getTradingVenueLabel = (venue, label) => {
|
|
204
|
+
if (label)
|
|
205
|
+
return label;
|
|
206
|
+
return defaultLabels.venues[venue];
|
|
99
207
|
};
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
208
|
+
var getTradingValueLabel = ({
|
|
209
|
+
amount,
|
|
210
|
+
minimumFractionDigits = 0,
|
|
211
|
+
maximumFractionDigits = 2
|
|
212
|
+
}) => {
|
|
213
|
+
return amount.toLocaleString("en-US", {
|
|
214
|
+
style: "currency",
|
|
215
|
+
currency: "USD",
|
|
216
|
+
minimumFractionDigits,
|
|
217
|
+
maximumFractionDigits
|
|
218
|
+
});
|
|
104
219
|
};
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
"bg-agg-primary text-agg-on-primary",
|
|
108
|
-
"hover:bg-agg-primary-hover",
|
|
109
|
-
"disabled:bg-agg-separator disabled:text-agg-on-primary",
|
|
110
|
-
"focus-visible:ring-agg-primary-hover"
|
|
111
|
-
),
|
|
112
|
-
secondary: cn(
|
|
113
|
-
"border border-agg-separator bg-agg-secondary text-agg-foreground",
|
|
114
|
-
"hover:bg-agg-secondary-hover",
|
|
115
|
-
"disabled:bg-agg-secondary disabled:text-agg-muted-foreground disabled:border-agg-separator",
|
|
116
|
-
"focus-visible:ring-agg-separator"
|
|
117
|
-
),
|
|
118
|
-
tertiary: cn(
|
|
119
|
-
"bg-transparent text-agg-primary",
|
|
120
|
-
"hover:text-agg-primary-hover",
|
|
121
|
-
"disabled:bg-transparent disabled:text-agg-muted-foreground",
|
|
122
|
-
"focus-visible:ring-agg-separator",
|
|
123
|
-
"px-0! py-0! h-fit!"
|
|
124
|
-
)
|
|
220
|
+
var getTradingPriceLabel = (value) => {
|
|
221
|
+
return `${Math.round(value * 100)}\xA2`;
|
|
125
222
|
};
|
|
126
|
-
var
|
|
127
|
-
|
|
128
|
-
"inline-flex items-center justify-center rounded-agg-full font-agg-sans font-agg-bold text-center",
|
|
129
|
-
"whitespace-nowrap",
|
|
130
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary"
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
// src/primitives/button/index.tsx
|
|
134
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
135
|
-
var Button = (_a) => {
|
|
136
|
-
var _b = _a, {
|
|
137
|
-
children,
|
|
138
|
-
variant = "primary",
|
|
139
|
-
size = "medium",
|
|
140
|
-
isLoading = false,
|
|
141
|
-
disabled,
|
|
142
|
-
prefix,
|
|
143
|
-
suffix,
|
|
144
|
-
type = "button",
|
|
145
|
-
className,
|
|
146
|
-
"aria-label": ariaLabel
|
|
147
|
-
} = _b, other = __objRest(_b, [
|
|
148
|
-
"children",
|
|
149
|
-
"variant",
|
|
150
|
-
"size",
|
|
151
|
-
"isLoading",
|
|
152
|
-
"disabled",
|
|
153
|
-
"prefix",
|
|
154
|
-
"suffix",
|
|
155
|
-
"type",
|
|
156
|
-
"className",
|
|
157
|
-
"aria-label"
|
|
158
|
-
]);
|
|
159
|
-
const { enableAnimations } = (0, import_hooks.useSdkUiConfig)();
|
|
160
|
-
const isDisabled = disabled || isLoading;
|
|
161
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
162
|
-
"button",
|
|
163
|
-
__spreadProps(__spreadValues({
|
|
164
|
-
type,
|
|
165
|
-
className: cn(
|
|
166
|
-
"group/agg-button",
|
|
167
|
-
baseButtonClasses,
|
|
168
|
-
getMotionClassName(enableAnimations, "transition-colors duration-200 ease-in-out"),
|
|
169
|
-
sizeClasses[size],
|
|
170
|
-
iconSlotClasses[size],
|
|
171
|
-
variantClasses[variant],
|
|
172
|
-
className
|
|
173
|
-
),
|
|
174
|
-
disabled: isDisabled,
|
|
175
|
-
"aria-busy": isLoading,
|
|
176
|
-
"aria-label": ariaLabel
|
|
177
|
-
}, other), {
|
|
178
|
-
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
179
|
-
"span",
|
|
180
|
-
{
|
|
181
|
-
className: cn(
|
|
182
|
-
"inline-block rounded-agg-full border-2 border-current border-r-transparent",
|
|
183
|
-
getMotionClassName(enableAnimations, "animate-spin"),
|
|
184
|
-
iconSizeClasses2[size]
|
|
185
|
-
),
|
|
186
|
-
"aria-hidden": "true"
|
|
187
|
-
}
|
|
188
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
189
|
-
prefix != null ? prefix : null,
|
|
190
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children }),
|
|
191
|
-
suffix != null ? suffix : null
|
|
192
|
-
] })
|
|
193
|
-
})
|
|
194
|
-
);
|
|
223
|
+
var getTradingAveragePriceLabel = (value) => {
|
|
224
|
+
return defaultLabels.trading.averagePrice(value);
|
|
195
225
|
};
|
|
196
|
-
|
|
226
|
+
var getTradingBalanceLabel = (value) => {
|
|
227
|
+
return defaultLabels.trading.balance(formatUsd(value));
|
|
228
|
+
};
|
|
229
|
+
var getTradingSharesLabel = (value) => {
|
|
230
|
+
return defaultLabels.trading.shares(value);
|
|
231
|
+
};
|
|
232
|
+
var getTradingSlippageLabel = (value) => {
|
|
233
|
+
return defaultLabels.trading.slippage(value);
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
// src/trading/settlement/index.tsx
|
|
237
|
+
var import_react = require("react");
|
|
238
|
+
var import_hooks10 = require("@agg-market/hooks");
|
|
197
239
|
|
|
198
240
|
// src/primitives/card/index.tsx
|
|
199
241
|
var import_hooks2 = require("@agg-market/hooks");
|
|
200
|
-
var
|
|
242
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
201
243
|
var Card = (_a) => {
|
|
202
244
|
var _b = _a, { className, onClick } = _b, props = __objRest(_b, ["className", "onClick"]);
|
|
203
245
|
const { enableAnimations } = (0, import_hooks2.useSdkUiConfig)();
|
|
204
|
-
return /* @__PURE__ */ (0,
|
|
246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
205
247
|
"div",
|
|
206
248
|
__spreadValues(__spreadValues({
|
|
207
249
|
className: cn(
|
|
@@ -227,10 +269,10 @@ var getIconA11yProps = (title) => ({
|
|
|
227
269
|
});
|
|
228
270
|
|
|
229
271
|
// src/primitives/icon/svg/arrow-trend-up.tsx
|
|
230
|
-
var
|
|
272
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
231
273
|
var ArrowTrendUpIcon = (_a) => {
|
|
232
274
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
233
|
-
return /* @__PURE__ */ (0,
|
|
275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
234
276
|
"svg",
|
|
235
277
|
__spreadProps(__spreadValues(__spreadValues({
|
|
236
278
|
viewBox: "0 0 16 16",
|
|
@@ -238,8 +280,8 @@ var ArrowTrendUpIcon = (_a) => {
|
|
|
238
280
|
fill: "none"
|
|
239
281
|
}, getIconA11yProps(title)), props), {
|
|
240
282
|
children: [
|
|
241
|
-
title ? /* @__PURE__ */ (0,
|
|
242
|
-
/* @__PURE__ */ (0,
|
|
283
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("title", { children: title }) : null,
|
|
284
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
243
285
|
"path",
|
|
244
286
|
{
|
|
245
287
|
d: "M2 11.5L6.5 7L9.5 10L14 5.5",
|
|
@@ -249,7 +291,7 @@ var ArrowTrendUpIcon = (_a) => {
|
|
|
249
291
|
strokeLinejoin: "round"
|
|
250
292
|
}
|
|
251
293
|
),
|
|
252
|
-
/* @__PURE__ */ (0,
|
|
294
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
253
295
|
"path",
|
|
254
296
|
{
|
|
255
297
|
d: "M10.5 5.5H14V9",
|
|
@@ -266,10 +308,10 @@ var ArrowTrendUpIcon = (_a) => {
|
|
|
266
308
|
ArrowTrendUpIcon.displayName = "ArrowTrendUpIcon";
|
|
267
309
|
|
|
268
310
|
// src/primitives/icon/svg/arrows-to-dot.tsx
|
|
269
|
-
var
|
|
311
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
270
312
|
var ArrowsToDotIcon = (_a) => {
|
|
271
313
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
272
|
-
return /* @__PURE__ */ (0,
|
|
314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
273
315
|
"svg",
|
|
274
316
|
__spreadProps(__spreadValues(__spreadValues({
|
|
275
317
|
viewBox: "0 0 16 16",
|
|
@@ -277,8 +319,8 @@ var ArrowsToDotIcon = (_a) => {
|
|
|
277
319
|
fill: "none"
|
|
278
320
|
}, getIconA11yProps(title)), props), {
|
|
279
321
|
children: [
|
|
280
|
-
title ? /* @__PURE__ */ (0,
|
|
281
|
-
/* @__PURE__ */ (0,
|
|
322
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("title", { children: title }) : null,
|
|
323
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
282
324
|
"path",
|
|
283
325
|
{
|
|
284
326
|
d: "M8 6.66667C8.73667 6.66667 9.33333 7.26333 9.33333 8C9.33333 8.73667 8.73667 9.33333 8 9.33333C7.26333 9.33333 6.66667 8.73667 6.66667 8C6.66667 7.26333 7.26333 6.66667 8 6.66667ZM5.27867 7.05733L3.39267 5.17133C3.132 4.91067 2.71067 4.91067 2.45 5.17133C2.18933 5.432 2.18933 5.854 2.45 6.114L3.67467 7.33333H0.666667C0.298 7.33333 0 7.632 0 8C0 8.368 0.298 8.66667 0.666667 8.66667H3.662L2.44867 9.88667C2.18867 10.148 2.19 10.5693 2.45133 10.8293C2.71267 11.0893 3.13467 11.088 3.394 10.8267L5.27933 8.93133C5.79467 8.41467 5.79467 7.574 5.27933 7.05667L5.27867 7.05733ZM7.068 5.278C7.56133 5.79267 8.45 5.79267 8.94267 5.278L10.828 3.392C11.0887 3.13133 11.0887 2.70933 10.828 2.44933C10.5673 2.18867 10.146 2.18867 9.88533 2.44933L8.66667 3.674V0.666667C8.66667 0.298667 8.36867 0 8 0C7.63133 0 7.33333 0.298667 7.33333 0.666667V3.662L6.11333 2.44867C5.852 2.18867 5.43067 2.19 5.17067 2.45133C4.91067 2.71267 4.912 3.13467 5.17333 3.394L7.068 5.278ZM8.94267 10.7213C8.42667 10.2053 7.58533 10.2053 7.06867 10.72L5.17267 12.606C4.91133 12.866 4.91 13.2873 5.17 13.5487C5.42933 13.8093 5.85067 13.8113 6.11267 13.5513L7.33267 12.3307V15.3333C7.33267 15.702 7.63067 16 7.99933 16C8.368 16 8.666 15.702 8.666 15.3333V12.3307L9.88467 13.55C10.1453 13.8107 10.5667 13.8107 10.8273 13.55C11.088 13.2893 11.088 12.868 10.8273 12.6073L8.94267 10.7213ZM15.3333 7.33333H12.3307L13.55 6.114C13.8107 5.854 13.8107 5.432 13.55 5.17133C13.2893 4.91067 12.868 4.91067 12.6073 5.17133L10.7213 7.05733C10.2053 7.574 10.2047 8.41467 10.72 8.93133L12.606 10.8273C12.866 11.088 13.2873 11.09 13.5487 10.83C13.81 10.57 13.8113 10.1487 13.5513 9.88733L12.3307 8.66733H15.3333C15.702 8.66733 16 8.36867 16 8.00067C16 7.63267 15.702 7.334 15.3333 7.334V7.33333Z",
|
|
@@ -292,10 +334,10 @@ var ArrowsToDotIcon = (_a) => {
|
|
|
292
334
|
ArrowsToDotIcon.displayName = "ArrowsToDotIcon";
|
|
293
335
|
|
|
294
336
|
// src/primitives/icon/svg/bank.tsx
|
|
295
|
-
var
|
|
337
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
296
338
|
var BankIcon = (_a) => {
|
|
297
339
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
298
|
-
return /* @__PURE__ */ (0,
|
|
340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
299
341
|
"svg",
|
|
300
342
|
__spreadProps(__spreadValues(__spreadValues({
|
|
301
343
|
viewBox: "0 0 24 24",
|
|
@@ -303,8 +345,8 @@ var BankIcon = (_a) => {
|
|
|
303
345
|
fill: "none"
|
|
304
346
|
}, getIconA11yProps(title)), props), {
|
|
305
347
|
children: [
|
|
306
|
-
title ? /* @__PURE__ */ (0,
|
|
307
|
-
/* @__PURE__ */ (0,
|
|
348
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("title", { children: title }) : null,
|
|
349
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
308
350
|
"path",
|
|
309
351
|
{
|
|
310
352
|
d: "M23 22H1C0.448 22 0 22.448 0 23C0 23.552 0.448 24 1 24H23C23.552 24 24 23.552 24 23C24 22.448 23.552 22 23 22ZM2 21H4V11H2V21ZM6 21H8V11H6V21ZM10 21H14V11H10V21ZM16 21H18V11H16V21ZM20 21H22V11H20V21ZM12 0.334C11.826 0.123 11.569 0 11.297 0H12.703C12.431 0 12.174 0.123 12 0.334ZM0.392 8.613C0.144 9.02 0 9.495 0 10C0 10 0 10 1 10H23C24 10 24 10 24 10C24 9.495 23.856 9.02 23.608 8.613L13.406 0.668C13.016 0.244 12.528 0 12 0C11.472 0 10.984 0.244 10.594 0.668L0.392 8.613ZM12 2.156L21.445 9H2.555L12 2.156ZM12 5C10.895 5 10 5.895 10 7C10 8.105 10.895 9 12 9C13.105 9 14 8.105 14 7C14 5.895 13.105 5 12 5ZM12 8C11.448 8 11 7.552 11 7C11 6.448 11.448 6 12 6C12.552 6 13 6.448 13 7C13 7.552 12.552 8 12 8Z",
|
|
@@ -318,10 +360,10 @@ var BankIcon = (_a) => {
|
|
|
318
360
|
BankIcon.displayName = "BankIcon";
|
|
319
361
|
|
|
320
362
|
// src/primitives/icon/svg/best-prices.tsx
|
|
321
|
-
var
|
|
363
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
322
364
|
var BestPricesIcon = (_a) => {
|
|
323
365
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
324
|
-
return /* @__PURE__ */ (0,
|
|
366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
325
367
|
"svg",
|
|
326
368
|
__spreadProps(__spreadValues(__spreadValues({
|
|
327
369
|
width: "28",
|
|
@@ -332,15 +374,15 @@ var BestPricesIcon = (_a) => {
|
|
|
332
374
|
className
|
|
333
375
|
}, getIconA11yProps(title)), props), {
|
|
334
376
|
children: [
|
|
335
|
-
title ? /* @__PURE__ */ (0,
|
|
336
|
-
/* @__PURE__ */ (0,
|
|
377
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("title", { children: title }) : null,
|
|
378
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("g", { clipPath: "url(#clip0_best_prices)", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
337
379
|
"path",
|
|
338
380
|
{
|
|
339
381
|
d: "M12.8333 27.4167C12.8333 27.7387 12.572 28 12.25 28H5.25C2.3555 28 0 25.6445 0 22.75V5.25117C0 2.35667 2.35433 0 5.25 0H18.0833C20.9778 0 23.3333 2.35433 23.3333 5.24883V8.74883C23.3333 9.07083 23.0732 9.33217 22.75 9.33217C22.4268 9.33217 22.1667 9.07083 22.1667 8.74883V5.24883C22.1667 2.99717 20.3338 1.1655 18.0833 1.1655H5.25C2.99833 1.1655 1.16667 2.99833 1.16667 5.25V22.7488C1.16667 25.0005 2.9995 26.8322 5.25 26.8322H12.25C12.572 26.8322 12.8333 27.0947 12.8333 27.4167ZM27.8297 27.8297C27.7153 27.944 27.566 28 27.4167 28C27.2673 28 27.118 27.9428 27.0037 27.8297L23.0102 23.8362C21.6837 24.9748 19.964 25.6667 18.0822 25.6667C13.9008 25.6667 10.4988 22.2647 10.4988 18.0833C10.4988 13.902 13.9008 10.5 18.0822 10.5C22.2635 10.5 25.6655 13.902 25.6655 18.0833C25.6655 19.964 24.9725 21.6837 23.835 23.0113L27.8285 27.0048C28.056 27.2323 28.0572 27.6022 27.8297 27.8297ZM24.5 18.0833C24.5 14.546 21.6218 11.6667 18.0833 11.6667C14.5448 11.6667 11.6667 14.546 11.6667 18.0833C11.6667 21.6207 14.5448 24.5 18.0833 24.5C21.6218 24.5 24.5 21.6207 24.5 18.0833ZM7.58333 5.83333H5.25C4.928 5.83333 4.66667 6.09467 4.66667 6.41667C4.66667 6.73867 4.928 7 5.25 7H7.58333C7.90533 7 8.16667 6.73867 8.16667 6.41667C8.16667 6.09467 7.90533 5.83333 7.58333 5.83333ZM7.58333 17.5H5.25C4.928 17.5 4.66667 17.7613 4.66667 18.0833C4.66667 18.4053 4.928 18.6667 5.25 18.6667H7.58333C7.90533 18.6667 8.16667 18.4053 8.16667 18.0833C8.16667 17.7613 7.90533 17.5 7.58333 17.5ZM11.0833 5.83333C10.7613 5.83333 10.5 6.09467 10.5 6.41667C10.5 6.73867 10.7613 7 11.0833 7H18.0833C18.4053 7 18.6667 6.73867 18.6667 6.41667C18.6667 6.09467 18.4053 5.83333 18.0833 5.83333H11.0833ZM7.58333 11.6667H5.25C4.928 11.6667 4.66667 11.928 4.66667 12.25C4.66667 12.572 4.928 12.8333 5.25 12.8333H7.58333C7.90533 12.8333 8.16667 12.572 8.16667 12.25C8.16667 11.928 7.90533 11.6667 7.58333 11.6667ZM21.1668 16.4862L18.0098 19.5405C17.6167 19.9255 16.9762 19.9302 16.583 19.5452L14.9928 17.976C14.7642 17.7497 14.3943 17.752 14.168 17.9807C13.9417 18.2105 13.944 18.5803 14.1738 18.8055L15.7652 20.377C16.1875 20.79 16.7417 20.9965 17.2958 20.9965C17.85 20.9965 18.4053 20.7888 18.8253 20.3747L21.9788 17.325C22.2098 17.101 22.2168 16.7312 21.9928 16.5002C21.77 16.2692 21.399 16.2645 21.1668 16.4862Z",
|
|
340
382
|
fill: "currentColor"
|
|
341
383
|
}
|
|
342
384
|
) }),
|
|
343
|
-
/* @__PURE__ */ (0,
|
|
385
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("clipPath", { id: "clip0_best_prices", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
344
386
|
]
|
|
345
387
|
})
|
|
346
388
|
);
|
|
@@ -348,10 +390,10 @@ var BestPricesIcon = (_a) => {
|
|
|
348
390
|
BestPricesIcon.displayName = "BestPricesIcon";
|
|
349
391
|
|
|
350
392
|
// src/primitives/icon/svg/bolt.tsx
|
|
351
|
-
var
|
|
393
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
352
394
|
var BoltIcon = (_a) => {
|
|
353
395
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
354
|
-
return /* @__PURE__ */ (0,
|
|
396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
355
397
|
"svg",
|
|
356
398
|
__spreadProps(__spreadValues(__spreadValues({
|
|
357
399
|
viewBox: "0 0 24 24",
|
|
@@ -359,15 +401,15 @@ var BoltIcon = (_a) => {
|
|
|
359
401
|
fill: "none"
|
|
360
402
|
}, getIconA11yProps(title)), props), {
|
|
361
403
|
children: [
|
|
362
|
-
title ? /* @__PURE__ */ (0,
|
|
363
|
-
/* @__PURE__ */ (0,
|
|
404
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("title", { children: title }) : null,
|
|
405
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("g", { clipPath: "url(#bolt-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
364
406
|
"path",
|
|
365
407
|
{
|
|
366
408
|
d: "M11.7372 24C11.4922 24 11.2432 23.946 11.0022 23.835C10.2162 23.472 9.83423 22.637 10.0722 21.805L11.8272 16H6.50123C5.70223 16 4.97023 15.632 4.49423 14.99C4.01823 14.348 3.87723 13.541 4.10823 12.776L7.13023 1.788C7.45523 0.714 8.41723 0 9.52623 0H13.8992C14.5872 0 15.2322 0.338 15.6242 0.903C16.0162 1.468 16.1062 2.191 15.8652 2.835L13.7052 9H17.5002C18.4422 9 19.2682 9.497 19.7092 10.33C20.1502 11.163 20.0982 12.124 19.5692 12.904L13.1592 23.216C12.8202 23.725 12.2912 24 11.7372 24ZM9.52723 1C8.86123 1 8.28423 1.428 8.09123 2.066L5.06923 13.054C4.92723 13.525 5.01123 14.009 5.29723 14.394C5.58323 14.779 6.02223 15 6.50223 15H12.5012C12.6592 15 12.8082 15.075 12.9022 15.202C12.9962 15.329 13.0252 15.493 12.9792 15.644L11.0322 22.086C10.9102 22.514 11.1532 22.802 11.4232 22.926C11.6922 23.05 12.0692 23.05 12.3192 22.673L18.7312 12.358C19.0592 11.874 19.0912 11.297 18.8262 10.797C18.5612 10.297 18.0662 9.999 17.5002 9.999H13.0002C12.8382 9.999 12.6862 9.92 12.5922 9.788C12.4982 9.656 12.4742 9.487 12.5282 9.333L14.9252 2.493C15.0572 2.14 15.0112 1.772 14.8022 1.472C14.5942 1.171 14.2642 0.999 13.8992 0.999H9.52623L9.52723 1Z",
|
|
367
409
|
fill: "currentColor"
|
|
368
410
|
}
|
|
369
411
|
) }),
|
|
370
|
-
/* @__PURE__ */ (0,
|
|
412
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("clipPath", { id: "bolt-clip", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
371
413
|
]
|
|
372
414
|
})
|
|
373
415
|
);
|
|
@@ -375,10 +417,10 @@ var BoltIcon = (_a) => {
|
|
|
375
417
|
BoltIcon.displayName = "BoltIcon";
|
|
376
418
|
|
|
377
419
|
// src/primitives/icon/svg/check-circle.tsx
|
|
378
|
-
var
|
|
420
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
379
421
|
var CheckCircleIcon = (_a) => {
|
|
380
422
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
381
|
-
return /* @__PURE__ */ (0,
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
382
424
|
"svg",
|
|
383
425
|
__spreadProps(__spreadValues(__spreadValues({
|
|
384
426
|
width: "24",
|
|
@@ -389,15 +431,15 @@ var CheckCircleIcon = (_a) => {
|
|
|
389
431
|
className
|
|
390
432
|
}, getIconA11yProps(title)), props), {
|
|
391
433
|
children: [
|
|
392
|
-
title ? /* @__PURE__ */ (0,
|
|
393
|
-
/* @__PURE__ */ (0,
|
|
434
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("title", { children: title }) : null,
|
|
435
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("g", { clipPath: "url(#clip0_check_circle)", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
394
436
|
"path",
|
|
395
437
|
{
|
|
396
438
|
d: "M12 0C5.383 0 0 5.383 0 12C0 18.617 5.383 24 12 24C18.617 24 24 18.617 24 12C24 5.383 18.617 0 12 0ZM18.2 10.512L13.774 14.857C12.991 15.625 11.983 16.008 10.974 16.008C9.976 16.008 8.978 15.632 8.198 14.879L6.299 13.012C5.905 12.625 5.9 11.992 6.287 11.598C6.673 11.203 7.308 11.198 7.701 11.586L9.594 13.447C10.37 14.197 11.595 14.193 12.375 13.429L16.8 9.085C17.193 8.697 17.824 8.704 18.214 9.098C18.601 9.492 18.595 10.125 18.2 10.512Z",
|
|
397
439
|
fill: "currentColor"
|
|
398
440
|
}
|
|
399
441
|
) }),
|
|
400
|
-
/* @__PURE__ */ (0,
|
|
442
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("clipPath", { id: "clip0_check_circle", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
401
443
|
]
|
|
402
444
|
})
|
|
403
445
|
);
|
|
@@ -405,10 +447,10 @@ var CheckCircleIcon = (_a) => {
|
|
|
405
447
|
CheckCircleIcon.displayName = "CheckCircleIcon";
|
|
406
448
|
|
|
407
449
|
// src/primitives/icon/svg/chevron-down.tsx
|
|
408
|
-
var
|
|
450
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
409
451
|
var ChevronDownIcon = (_a) => {
|
|
410
452
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
411
|
-
return /* @__PURE__ */ (0,
|
|
453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
412
454
|
"svg",
|
|
413
455
|
__spreadProps(__spreadValues(__spreadValues({
|
|
414
456
|
viewBox: "0 0 14 14",
|
|
@@ -416,8 +458,8 @@ var ChevronDownIcon = (_a) => {
|
|
|
416
458
|
fill: "none"
|
|
417
459
|
}, getIconA11yProps(title)), props), {
|
|
418
460
|
children: [
|
|
419
|
-
title ? /* @__PURE__ */ (0,
|
|
420
|
-
/* @__PURE__ */ (0,
|
|
461
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("title", { children: title }) : null,
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
421
463
|
"path",
|
|
422
464
|
{
|
|
423
465
|
d: "M3.25 5.25L7 9L10.75 5.25",
|
|
@@ -434,10 +476,10 @@ var ChevronDownIcon = (_a) => {
|
|
|
434
476
|
ChevronDownIcon.displayName = "ChevronDownIcon";
|
|
435
477
|
|
|
436
478
|
// src/primitives/icon/svg/chevron-left.tsx
|
|
437
|
-
var
|
|
479
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
438
480
|
var ChevronLeftIcon = (_a) => {
|
|
439
481
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
440
|
-
return /* @__PURE__ */ (0,
|
|
482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
441
483
|
"svg",
|
|
442
484
|
__spreadProps(__spreadValues(__spreadValues({
|
|
443
485
|
viewBox: "0 0 24 24",
|
|
@@ -445,8 +487,8 @@ var ChevronLeftIcon = (_a) => {
|
|
|
445
487
|
fill: "none"
|
|
446
488
|
}, getIconA11yProps(title)), props), {
|
|
447
489
|
children: [
|
|
448
|
-
title ? /* @__PURE__ */ (0,
|
|
449
|
-
/* @__PURE__ */ (0,
|
|
490
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("title", { children: title }) : null,
|
|
491
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
450
492
|
"path",
|
|
451
493
|
{
|
|
452
494
|
d: "M10.5999 12.6786C10.5061 12.5856 10.4317 12.475 10.381 12.3531C10.3302 12.2313 10.3041 12.1006 10.3041 11.9686C10.3041 11.8366 10.3302 11.7058 10.381 11.584C10.4317 11.4621 10.5061 11.3515 10.5999 11.2586L15.1899 6.67857C15.2836 6.5856 15.358 6.475 15.4088 6.35314C15.4595 6.23128 15.4857 6.10058 15.4857 5.96857C15.4857 5.83655 15.4595 5.70585 15.4088 5.58399C15.358 5.46213 15.2836 5.35153 15.1899 5.25857C15.0025 5.07231 14.749 4.96777 14.4849 4.96777C14.2207 4.96777 13.9672 5.07231 13.7799 5.25857L9.18986 9.84857C8.62806 10.4111 8.3125 11.1736 8.3125 11.9686C8.3125 12.7636 8.62806 13.5261 9.18986 14.0886L13.7799 18.6786C13.9661 18.8633 14.2175 18.9675 14.4799 18.9686C14.6115 18.9693 14.7419 18.9441 14.8638 18.8943C14.9856 18.8446 15.0964 18.7712 15.1899 18.6786C15.2836 18.5856 15.358 18.475 15.4088 18.3531C15.4595 18.2313 15.4857 18.1006 15.4857 17.9686C15.4857 17.8366 15.4595 17.7058 15.4088 17.584C15.358 17.4621 15.2836 17.3515 15.1899 17.2586L10.5999 12.6786Z",
|
|
@@ -460,10 +502,10 @@ var ChevronLeftIcon = (_a) => {
|
|
|
460
502
|
ChevronLeftIcon.displayName = "ChevronLeftIcon";
|
|
461
503
|
|
|
462
504
|
// src/primitives/icon/svg/chevron-right.tsx
|
|
463
|
-
var
|
|
505
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
464
506
|
var ChevronRightIcon = (_a) => {
|
|
465
507
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
466
|
-
return /* @__PURE__ */ (0,
|
|
508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
467
509
|
"svg",
|
|
468
510
|
__spreadProps(__spreadValues(__spreadValues({
|
|
469
511
|
viewBox: "0 0 16 16",
|
|
@@ -471,8 +513,8 @@ var ChevronRightIcon = (_a) => {
|
|
|
471
513
|
fill: "none"
|
|
472
514
|
}, getIconA11yProps(title)), props), {
|
|
473
515
|
children: [
|
|
474
|
-
title ? /* @__PURE__ */ (0,
|
|
475
|
-
/* @__PURE__ */ (0,
|
|
516
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("title", { children: title }) : null,
|
|
517
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
476
518
|
"path",
|
|
477
519
|
{
|
|
478
520
|
d: "M10.2665 6.56563L7.20654 3.50563C7.08163 3.38146 6.91266 3.31177 6.73653 3.31177C6.56041 3.31177 6.39144 3.38146 6.26653 3.50563C6.20405 3.5676 6.15445 3.64134 6.12061 3.72258C6.08676 3.80382 6.06934 3.89095 6.06934 3.97896C6.06934 4.06697 6.08676 4.15411 6.12061 4.23535C6.15445 4.31659 6.20405 4.39032 6.26653 4.4523L9.3332 7.50563C9.39569 7.5676 9.44528 7.64134 9.47913 7.72258C9.51298 7.80382 9.5304 7.89095 9.5304 7.97896C9.5304 8.06697 9.51298 8.15411 9.47913 8.23535C9.44528 8.31659 9.39569 8.39032 9.3332 8.4523L6.26653 11.5056C6.141 11.6303 6.07012 11.7997 6.0695 11.9766C6.06887 12.1535 6.13855 12.3234 6.2632 12.449C6.38785 12.5745 6.55727 12.6454 6.73418 12.646C6.91109 12.6466 7.081 12.5769 7.20654 12.4523L10.2665 9.3923C10.6411 9.0173 10.8514 8.50896 10.8514 7.97896C10.8514 7.44896 10.6411 6.94063 10.2665 6.56563Z",
|
|
@@ -486,10 +528,10 @@ var ChevronRightIcon = (_a) => {
|
|
|
486
528
|
ChevronRightIcon.displayName = "ChevronRightIcon";
|
|
487
529
|
|
|
488
530
|
// src/primitives/icon/svg/chevron-up.tsx
|
|
489
|
-
var
|
|
531
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
490
532
|
var ChevronUpIcon = (_a) => {
|
|
491
533
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
492
|
-
return /* @__PURE__ */ (0,
|
|
534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
493
535
|
"svg",
|
|
494
536
|
__spreadProps(__spreadValues(__spreadValues({
|
|
495
537
|
viewBox: "0 0 14 14",
|
|
@@ -497,8 +539,8 @@ var ChevronUpIcon = (_a) => {
|
|
|
497
539
|
fill: "none"
|
|
498
540
|
}, getIconA11yProps(title)), props), {
|
|
499
541
|
children: [
|
|
500
|
-
title ? /* @__PURE__ */ (0,
|
|
501
|
-
/* @__PURE__ */ (0,
|
|
542
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("title", { children: title }) : null,
|
|
543
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
502
544
|
"path",
|
|
503
545
|
{
|
|
504
546
|
d: "M3.25 8.75L7 5L10.75 8.75",
|
|
@@ -515,10 +557,10 @@ var ChevronUpIcon = (_a) => {
|
|
|
515
557
|
ChevronUpIcon.displayName = "ChevronUpIcon";
|
|
516
558
|
|
|
517
559
|
// src/primitives/icon/svg/close.tsx
|
|
518
|
-
var
|
|
560
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
519
561
|
var CloseIcon = (_a) => {
|
|
520
562
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
521
|
-
return /* @__PURE__ */ (0,
|
|
563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
522
564
|
"svg",
|
|
523
565
|
__spreadProps(__spreadValues(__spreadValues({
|
|
524
566
|
width: "16",
|
|
@@ -529,8 +571,8 @@ var CloseIcon = (_a) => {
|
|
|
529
571
|
className
|
|
530
572
|
}, getIconA11yProps(title)), props), {
|
|
531
573
|
children: [
|
|
532
|
-
title ? /* @__PURE__ */ (0,
|
|
533
|
-
/* @__PURE__ */ (0,
|
|
574
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("title", { children: title }) : null,
|
|
575
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
534
576
|
"path",
|
|
535
577
|
{
|
|
536
578
|
d: "M12 4L4 12M4 4l8 8",
|
|
@@ -547,10 +589,10 @@ var CloseIcon = (_a) => {
|
|
|
547
589
|
CloseIcon.displayName = "CloseIcon";
|
|
548
590
|
|
|
549
591
|
// src/primitives/icon/svg/copy.tsx
|
|
550
|
-
var
|
|
592
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
551
593
|
var CopyIcon = (_a) => {
|
|
552
594
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
553
|
-
return /* @__PURE__ */ (0,
|
|
595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
554
596
|
"svg",
|
|
555
597
|
__spreadProps(__spreadValues(__spreadValues({
|
|
556
598
|
viewBox: "0 0 16 16",
|
|
@@ -558,15 +600,15 @@ var CopyIcon = (_a) => {
|
|
|
558
600
|
fill: "none"
|
|
559
601
|
}, getIconA11yProps(title)), props), {
|
|
560
602
|
children: [
|
|
561
|
-
title ? /* @__PURE__ */ (0,
|
|
562
|
-
/* @__PURE__ */ (0,
|
|
603
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("title", { children: title }) : null,
|
|
604
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("g", { clipPath: "url(#clip0_copy)", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
563
605
|
"path",
|
|
564
606
|
{
|
|
565
607
|
d: "M10 13.3333H3.33333C2.4496 13.3323 1.60237 12.9807 0.97748 12.3559C0.352588 11.731 0.00105857 10.8837 0 10L0 3.33333C0.00105857 2.4496 0.352588 1.60237 0.97748 0.97748C1.60237 0.352588 2.4496 0.00105857 3.33333 0L10 0C10.8837 0.00105857 11.731 0.352588 12.3559 0.97748C12.9807 1.60237 13.3323 2.4496 13.3333 3.33333V10C13.3323 10.8837 12.9807 11.731 12.3559 12.3559C11.731 12.9807 10.8837 13.3323 10 13.3333ZM3.33333 1.33333C2.8029 1.33333 2.29419 1.54405 1.91912 1.91912C1.54405 2.29419 1.33333 2.8029 1.33333 3.33333V10C1.33333 10.5304 1.54405 11.0391 1.91912 11.4142C2.29419 11.7893 2.8029 12 3.33333 12H10C10.5304 12 11.0391 11.7893 11.4142 11.4142C11.7893 11.0391 12 10.5304 12 10V3.33333C12 2.8029 11.7893 2.29419 11.4142 1.91912C11.0391 1.54405 10.5304 1.33333 10 1.33333H3.33333ZM16 12.6667V4C16 3.82319 15.9298 3.65362 15.8047 3.5286C15.6797 3.40357 15.5101 3.33333 15.3333 3.33333C15.1565 3.33333 14.987 3.40357 14.8619 3.5286C14.7369 3.65362 14.6667 3.82319 14.6667 4V12.6667C14.6667 13.1971 14.456 13.7058 14.0809 14.0809C13.7058 14.456 13.1971 14.6667 12.6667 14.6667H4C3.82319 14.6667 3.65362 14.7369 3.5286 14.8619C3.40357 14.987 3.33333 15.1565 3.33333 15.3333C3.33333 15.5101 3.40357 15.6797 3.5286 15.8047C3.65362 15.9298 3.82319 16 4 16H12.6667C13.5504 15.9989 14.3976 15.6474 15.0225 15.0225C15.6474 14.3976 15.9989 13.5504 16 12.6667Z",
|
|
566
608
|
fill: "currentColor"
|
|
567
609
|
}
|
|
568
610
|
) }),
|
|
569
|
-
/* @__PURE__ */ (0,
|
|
611
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("clipPath", { id: "clip0_copy", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
570
612
|
]
|
|
571
613
|
})
|
|
572
614
|
);
|
|
@@ -574,10 +616,10 @@ var CopyIcon = (_a) => {
|
|
|
574
616
|
CopyIcon.displayName = "CopyIcon";
|
|
575
617
|
|
|
576
618
|
// src/primitives/icon/svg/create-account.tsx
|
|
577
|
-
var
|
|
619
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
578
620
|
var CreateAccountIcon = (_a) => {
|
|
579
621
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
580
|
-
return /* @__PURE__ */ (0,
|
|
622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
581
623
|
"svg",
|
|
582
624
|
__spreadProps(__spreadValues(__spreadValues({
|
|
583
625
|
width: "28",
|
|
@@ -588,15 +630,15 @@ var CreateAccountIcon = (_a) => {
|
|
|
588
630
|
className
|
|
589
631
|
}, getIconA11yProps(title)), props), {
|
|
590
632
|
children: [
|
|
591
|
-
title ? /* @__PURE__ */ (0,
|
|
592
|
-
/* @__PURE__ */ (0,
|
|
633
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("title", { children: title }) : null,
|
|
634
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("g", { clipPath: "url(#clip0_create_account)", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
593
635
|
"path",
|
|
594
636
|
{
|
|
595
637
|
d: "M22.1667 4.66667V0.583333C22.1667 0.261333 22.428 0 22.75 0C23.072 0 23.3333 0.261333 23.3333 0.583333V4.66667H27.4167C27.7387 4.66667 28 4.928 28 5.25C28 5.572 27.7387 5.83333 27.4167 5.83333H23.3333V9.91667C23.3333 10.2387 23.072 10.5 22.75 10.5C22.428 10.5 22.1667 10.2387 22.1667 9.91667V5.83333H18.0833C17.7613 5.83333 17.5 5.572 17.5 5.25C17.5 4.928 17.7613 4.66667 18.0833 4.66667H22.1667ZM18.6667 11.6667C18.6667 14.2403 16.5737 16.3333 14 16.3333C11.4263 16.3333 9.33333 14.2403 9.33333 11.6667C9.33333 9.093 11.4263 7 14 7C16.5737 7 18.6667 9.093 18.6667 11.6667ZM17.5 11.6667C17.5 9.737 15.9297 8.16667 14 8.16667C12.0703 8.16667 10.5 9.737 10.5 11.6667C10.5 13.5963 12.0703 15.1667 14 15.1667C15.9297 15.1667 17.5 13.5963 17.5 11.6667ZM27.3922 9.90617C27.7958 11.2292 28 12.6058 28 14C28 21.7198 21.7198 28 14 28C6.28017 28 0 21.7198 0 14C0 6.28017 6.28017 0 14 0C15.4548 0 16.8898 0.221667 18.2607 0.660333C18.5675 0.758333 18.7367 1.08617 18.6387 1.393C18.5395 1.69983 18.2105 1.87017 17.9048 1.771C16.6483 1.36967 15.3335 1.1655 13.9988 1.1655C6.92417 1.16667 1.16667 6.92417 1.16667 14C1.16667 18.5197 3.521 22.4933 7.063 24.78C7.5005 21.3383 10.4417 18.6667 14 18.6667C17.5583 18.6667 20.4995 21.3383 20.937 24.78C24.4778 22.4933 26.8333 18.5197 26.8333 14C26.8333 12.7213 26.6467 11.459 26.2757 10.2468C26.1823 9.93883 26.355 9.61217 26.6642 9.51883C26.9722 9.422 27.2977 9.59933 27.3922 9.90617ZM14 26.8333C16.0918 26.8333 18.0623 26.32 19.8088 25.4287C19.6805 22.3253 17.1348 19.8333 14 19.8333C10.8652 19.8333 8.31833 22.3242 8.19117 25.4287C9.93767 26.32 11.9082 26.8333 14 26.8333Z",
|
|
596
638
|
fill: "currentColor"
|
|
597
639
|
}
|
|
598
640
|
) }),
|
|
599
|
-
/* @__PURE__ */ (0,
|
|
641
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("clipPath", { id: "clip0_create_account", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
600
642
|
]
|
|
601
643
|
})
|
|
602
644
|
);
|
|
@@ -604,10 +646,10 @@ var CreateAccountIcon = (_a) => {
|
|
|
604
646
|
CreateAccountIcon.displayName = "CreateAccountIcon";
|
|
605
647
|
|
|
606
648
|
// src/primitives/icon/svg/credit-card.tsx
|
|
607
|
-
var
|
|
649
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
608
650
|
var CreditCardIcon = (_a) => {
|
|
609
651
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
610
|
-
return /* @__PURE__ */ (0,
|
|
652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
611
653
|
"svg",
|
|
612
654
|
__spreadProps(__spreadValues(__spreadValues({
|
|
613
655
|
viewBox: "0 0 24 24",
|
|
@@ -615,8 +657,8 @@ var CreditCardIcon = (_a) => {
|
|
|
615
657
|
fill: "none"
|
|
616
658
|
}, getIconA11yProps(title)), props), {
|
|
617
659
|
children: [
|
|
618
|
-
title ? /* @__PURE__ */ (0,
|
|
619
|
-
/* @__PURE__ */ (0,
|
|
660
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("title", { children: title }) : null,
|
|
661
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
620
662
|
"path",
|
|
621
663
|
{
|
|
622
664
|
d: "M19.5 3H4.5C2.019 3 0 5.019 0 7.5V16.5C0 18.981 2.019 21 4.5 21H19.5C21.981 21 24 18.981 24 16.5V7.5C24 5.019 21.981 3 19.5 3ZM1 8H23V10H1V8ZM4.5 4H19.5C21.258 4 22.704 5.308 22.949 7H1.051C1.296 5.308 2.742 4 4.5 4ZM19.5 20H4.5C2.57 20 1 18.43 1 16.5V11H23V16.5C23 18.43 21.43 20 19.5 20ZM5 14C3.897 14 3 14.897 3 16C3 17.103 3.897 18 5 18C6.103 18 7 17.103 7 16C7 14.897 6.103 14 5 14ZM5 17C4.449 17 4 16.552 4 16C4 15.448 4.449 15 5 15C5.551 15 6 15.448 6 16C6 16.552 5.551 17 5 17Z",
|
|
@@ -630,10 +672,10 @@ var CreditCardIcon = (_a) => {
|
|
|
630
672
|
CreditCardIcon.displayName = "CreditCardIcon";
|
|
631
673
|
|
|
632
674
|
// src/primitives/icon/svg/disconnect.tsx
|
|
633
|
-
var
|
|
675
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
634
676
|
var DisconnectIcon = (_a) => {
|
|
635
677
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
636
|
-
return /* @__PURE__ */ (0,
|
|
678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
637
679
|
"svg",
|
|
638
680
|
__spreadProps(__spreadValues(__spreadValues({
|
|
639
681
|
viewBox: "0 0 16 16",
|
|
@@ -641,8 +683,8 @@ var DisconnectIcon = (_a) => {
|
|
|
641
683
|
fill: "none"
|
|
642
684
|
}, getIconA11yProps(title)), props), {
|
|
643
685
|
children: [
|
|
644
|
-
title ? /* @__PURE__ */ (0,
|
|
645
|
-
/* @__PURE__ */ (0,
|
|
686
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("title", { children: title }) : null,
|
|
687
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
646
688
|
"path",
|
|
647
689
|
{
|
|
648
690
|
d: "M6.5 3H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h2.5",
|
|
@@ -651,7 +693,7 @@ var DisconnectIcon = (_a) => {
|
|
|
651
693
|
strokeLinecap: "round"
|
|
652
694
|
}
|
|
653
695
|
),
|
|
654
|
-
/* @__PURE__ */ (0,
|
|
696
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
655
697
|
"path",
|
|
656
698
|
{
|
|
657
699
|
d: "M9.5 5.5 12 8m0 0-2.5 2.5M12 8H6",
|
|
@@ -668,10 +710,10 @@ var DisconnectIcon = (_a) => {
|
|
|
668
710
|
DisconnectIcon.displayName = "DisconnectIcon";
|
|
669
711
|
|
|
670
712
|
// src/primitives/icon/svg/dots-horizontal.tsx
|
|
671
|
-
var
|
|
713
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
672
714
|
var DotsHorizontalIcon = (_a) => {
|
|
673
715
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
674
|
-
return /* @__PURE__ */ (0,
|
|
716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
675
717
|
"svg",
|
|
676
718
|
__spreadProps(__spreadValues(__spreadValues({
|
|
677
719
|
viewBox: "0 0 16 16",
|
|
@@ -679,10 +721,10 @@ var DotsHorizontalIcon = (_a) => {
|
|
|
679
721
|
fill: "none"
|
|
680
722
|
}, getIconA11yProps(title)), props), {
|
|
681
723
|
children: [
|
|
682
|
-
title ? /* @__PURE__ */ (0,
|
|
683
|
-
/* @__PURE__ */ (0,
|
|
684
|
-
/* @__PURE__ */ (0,
|
|
685
|
-
/* @__PURE__ */ (0,
|
|
724
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("title", { children: title }) : null,
|
|
725
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("circle", { cx: "3.5", cy: "8", r: "1.25", fill: "currentColor" }),
|
|
726
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("circle", { cx: "8", cy: "8", r: "1.25", fill: "currentColor" }),
|
|
727
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("circle", { cx: "12.5", cy: "8", r: "1.25", fill: "currentColor" })
|
|
686
728
|
]
|
|
687
729
|
})
|
|
688
730
|
);
|
|
@@ -690,10 +732,10 @@ var DotsHorizontalIcon = (_a) => {
|
|
|
690
732
|
DotsHorizontalIcon.displayName = "DotsHorizontalIcon";
|
|
691
733
|
|
|
692
734
|
// src/primitives/icon/svg/document.tsx
|
|
693
|
-
var
|
|
735
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
694
736
|
var DocumentIcon = (_a) => {
|
|
695
737
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
696
|
-
return /* @__PURE__ */ (0,
|
|
738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
697
739
|
"svg",
|
|
698
740
|
__spreadProps(__spreadValues(__spreadValues({
|
|
699
741
|
viewBox: "0 0 16 16",
|
|
@@ -701,15 +743,15 @@ var DocumentIcon = (_a) => {
|
|
|
701
743
|
fill: "none"
|
|
702
744
|
}, getIconA11yProps(title)), props), {
|
|
703
745
|
children: [
|
|
704
|
-
title ? /* @__PURE__ */ (0,
|
|
705
|
-
/* @__PURE__ */ (0,
|
|
746
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("title", { children: title }) : null,
|
|
747
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("g", { clipPath: "url(#document-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
706
748
|
"path",
|
|
707
749
|
{
|
|
708
750
|
d: "M11.3335 9.33335C11.3335 9.51016 11.2633 9.67973 11.1382 9.80475C11.0132 9.92978 10.8436 10 10.6668 10H5.3335C5.15669 10 4.98712 9.92978 4.86209 9.80475C4.73707 9.67973 4.66683 9.51016 4.66683 9.33335C4.66683 9.15654 4.73707 8.98697 4.86209 8.86194C4.98712 8.73692 5.15669 8.66668 5.3335 8.66668H10.6668C10.8436 8.66668 11.0132 8.73692 11.1382 8.86194C11.2633 8.98697 11.3335 9.15654 11.3335 9.33335ZM8.66683 11.3333H5.3335C5.15669 11.3333 4.98712 11.4036 4.86209 11.5286C4.73707 11.6536 4.66683 11.8232 4.66683 12C4.66683 12.1768 4.73707 12.3464 4.86209 12.4714C4.98712 12.5964 5.15669 12.6667 5.3335 12.6667H8.66683C8.84364 12.6667 9.01321 12.5964 9.13823 12.4714C9.26326 12.3464 9.3335 12.1768 9.3335 12C9.3335 11.8232 9.26326 11.6536 9.13823 11.5286C9.01321 11.4036 8.84364 11.3333 8.66683 11.3333ZM14.6668 6.99002V12.6667C14.6658 13.5504 14.3142 14.3976 13.6894 15.0225C13.0645 15.6474 12.2172 15.999 11.3335 16H4.66683C3.7831 15.999 2.93587 15.6474 2.31098 15.0225C1.68608 14.3976 1.33455 13.5504 1.3335 12.6667V3.33335C1.33455 2.44962 1.68608 1.60239 2.31098 0.977495C2.93587 0.352603 3.7831 0.00107394 4.66683 1.53658e-05H7.67683C8.28991 -0.00156258 8.89722 0.118407 9.46365 0.352988C10.0301 0.587569 10.5444 0.932107 10.9768 1.36668L13.2995 3.69068C13.7343 4.12284 14.0791 4.63699 14.3138 5.20333C14.5485 5.76968 14.6685 6.37696 14.6668 6.99002ZM10.0342 2.30935C9.82435 2.10612 9.58879 1.9313 9.3335 1.78935V4.66668C9.3335 4.84349 9.40373 5.01306 9.52876 5.13809C9.65378 5.26311 9.82335 5.33335 10.0002 5.33335H12.8775C12.7355 5.07814 12.5604 4.84278 12.3568 4.63335L10.0342 2.30935ZM13.3335 6.99002C13.3335 6.88002 13.3122 6.77468 13.3022 6.66668H10.0002C9.46973 6.66668 8.96102 6.45597 8.58595 6.0809C8.21088 5.70582 8.00016 5.19711 8.00016 4.66668V1.36468C7.89216 1.35468 7.78616 1.33335 7.67683 1.33335H4.66683C4.1364 1.33335 3.62769 1.54406 3.25262 1.91914C2.87754 2.29421 2.66683 2.80292 2.66683 3.33335V12.6667C2.66683 13.1971 2.87754 13.7058 3.25262 14.0809C3.62769 14.456 4.1364 14.6667 4.66683 14.6667H11.3335C11.8639 14.6667 12.3726 14.456 12.7477 14.0809C13.1228 13.7058 13.3335 13.1971 13.3335 12.6667V6.99002Z",
|
|
709
751
|
fill: "currentColor"
|
|
710
752
|
}
|
|
711
753
|
) }),
|
|
712
|
-
/* @__PURE__ */ (0,
|
|
754
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("clipPath", { id: "document-clip", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
713
755
|
]
|
|
714
756
|
})
|
|
715
757
|
);
|
|
@@ -717,10 +759,10 @@ var DocumentIcon = (_a) => {
|
|
|
717
759
|
DocumentIcon.displayName = "DocumentIcon";
|
|
718
760
|
|
|
719
761
|
// src/primitives/icon/svg/download.tsx
|
|
720
|
-
var
|
|
762
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
721
763
|
var DownloadIcon = (_a) => {
|
|
722
764
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
723
|
-
return /* @__PURE__ */ (0,
|
|
765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
724
766
|
"svg",
|
|
725
767
|
__spreadProps(__spreadValues(__spreadValues({
|
|
726
768
|
viewBox: "0 0 16 16",
|
|
@@ -728,8 +770,8 @@ var DownloadIcon = (_a) => {
|
|
|
728
770
|
fill: "none"
|
|
729
771
|
}, getIconA11yProps(title)), props), {
|
|
730
772
|
children: [
|
|
731
|
-
title ? /* @__PURE__ */ (0,
|
|
732
|
-
/* @__PURE__ */ (0,
|
|
773
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("title", { children: title }) : null,
|
|
774
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
733
775
|
"path",
|
|
734
776
|
{
|
|
735
777
|
d: "M8 2.5v7m0 0 2.5-2.5M8 9.5 5.5 7",
|
|
@@ -739,7 +781,7 @@ var DownloadIcon = (_a) => {
|
|
|
739
781
|
strokeLinejoin: "round"
|
|
740
782
|
}
|
|
741
783
|
),
|
|
742
|
-
/* @__PURE__ */ (0,
|
|
784
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M2.5 12.5h11", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
743
785
|
]
|
|
744
786
|
})
|
|
745
787
|
);
|
|
@@ -747,10 +789,10 @@ var DownloadIcon = (_a) => {
|
|
|
747
789
|
DownloadIcon.displayName = "DownloadIcon";
|
|
748
790
|
|
|
749
791
|
// src/primitives/icon/svg/external-link.tsx
|
|
750
|
-
var
|
|
792
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
751
793
|
var ExternalLinkIcon = (_a) => {
|
|
752
794
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
753
|
-
return /* @__PURE__ */ (0,
|
|
795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
754
796
|
"svg",
|
|
755
797
|
__spreadProps(__spreadValues(__spreadValues({
|
|
756
798
|
viewBox: "0 0 14 14",
|
|
@@ -758,15 +800,15 @@ var ExternalLinkIcon = (_a) => {
|
|
|
758
800
|
fill: "none"
|
|
759
801
|
}, getIconA11yProps(title)), props), {
|
|
760
802
|
children: [
|
|
761
|
-
title ? /* @__PURE__ */ (0,
|
|
762
|
-
/* @__PURE__ */ (0,
|
|
803
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("title", { children: title }) : null,
|
|
804
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("g", { clipPath: "url(#clip0_422_235)", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
763
805
|
"path",
|
|
764
806
|
{
|
|
765
807
|
d: "M11.6667 6.41667V11.0833C11.6667 12.6916 10.3582 14 8.75 14H2.91667C1.30842 14 0 12.6916 0 11.0833V5.25C0 3.64175 1.30842 2.33333 2.91667 2.33333H7.58333C7.90533 2.33333 8.16667 2.59467 8.16667 2.91667C8.16667 3.23867 7.90533 3.5 7.58333 3.5H2.91667C1.95183 3.5 1.16667 4.28517 1.16667 5.25V11.0833C1.16667 12.0482 1.95183 12.8333 2.91667 12.8333H8.75C9.71483 12.8333 10.5 12.0482 10.5 11.0833V6.41667C10.5 6.09467 10.7613 5.83333 11.0833 5.83333C11.4053 5.83333 11.6667 6.09467 11.6667 6.41667ZM12.25 0H8.16667C7.84467 0 7.58333 0.261333 7.58333 0.583333C7.58333 0.905333 7.84467 1.16667 8.16667 1.16667H12.0085L4.83758 8.33758C4.6095 8.56567 4.6095 8.93433 4.83758 9.16242C4.95133 9.27617 5.10067 9.33333 5.25 9.33333C5.39933 9.33333 5.54867 9.27617 5.66242 9.16242L12.8333 1.9915V5.83333C12.8333 6.15533 13.0947 6.41667 13.4167 6.41667C13.7387 6.41667 14 6.15533 14 5.83333V1.75C14 0.785167 13.2148 0 12.25 0Z",
|
|
766
808
|
fill: "currentColor"
|
|
767
809
|
}
|
|
768
810
|
) }),
|
|
769
|
-
/* @__PURE__ */ (0,
|
|
811
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("clipPath", { id: "clip0_422_235", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
770
812
|
]
|
|
771
813
|
})
|
|
772
814
|
);
|
|
@@ -774,10 +816,10 @@ var ExternalLinkIcon = (_a) => {
|
|
|
774
816
|
ExternalLinkIcon.displayName = "ExternalLinkIcon";
|
|
775
817
|
|
|
776
818
|
// src/primitives/icon/svg/info.tsx
|
|
777
|
-
var
|
|
819
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
778
820
|
var InfoIcon = (_a) => {
|
|
779
821
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
780
|
-
return /* @__PURE__ */ (0,
|
|
822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
781
823
|
"svg",
|
|
782
824
|
__spreadProps(__spreadValues(__spreadValues({
|
|
783
825
|
viewBox: "0 0 12 12",
|
|
@@ -785,23 +827,23 @@ var InfoIcon = (_a) => {
|
|
|
785
827
|
fill: "none"
|
|
786
828
|
}, getIconA11yProps(title)), props), {
|
|
787
829
|
children: [
|
|
788
|
-
title ? /* @__PURE__ */ (0,
|
|
789
|
-
/* @__PURE__ */ (0,
|
|
790
|
-
/* @__PURE__ */ (0,
|
|
830
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("title", { children: title }) : null,
|
|
831
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("g", { clipPath: "url(#info_clip)", children: [
|
|
832
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
791
833
|
"path",
|
|
792
834
|
{
|
|
793
835
|
d: "M6 0C4.81331 0 3.65328 0.351894 2.66658 1.01118C1.67989 1.67047 0.910851 2.60754 0.456726 3.7039C0.00259972 4.80026 -0.11622 6.00666 0.115291 7.17054C0.346802 8.33443 0.918247 9.40353 1.75736 10.2426C2.59648 11.0818 3.66558 11.6532 4.82946 11.8847C5.99335 12.1162 7.19975 11.9974 8.2961 11.5433C9.39246 11.0892 10.3295 10.3201 10.9888 9.33342C11.6481 8.34673 12 7.18669 12 6C11.9983 4.40923 11.3656 2.88411 10.2407 1.75926C9.1159 0.634414 7.59077 0.00172054 6 0ZM6 11C5.0111 11 4.0444 10.7068 3.22215 10.1573C2.39991 9.60794 1.75904 8.82705 1.38061 7.91342C1.00217 6.99979 0.90315 5.99445 1.09608 5.02455C1.289 4.05464 1.76521 3.16373 2.46447 2.46447C3.16373 1.7652 4.05465 1.289 5.02455 1.09607C5.99446 0.903148 6.99979 1.00216 7.91342 1.3806C8.82705 1.75904 9.60794 2.3999 10.1574 3.22215C10.7068 4.04439 11 5.01109 11 6C10.9985 7.32564 10.4713 8.59656 9.53393 9.53393C8.59656 10.4713 7.32564 10.9985 6 11Z",
|
|
794
836
|
fill: "currentColor"
|
|
795
837
|
}
|
|
796
838
|
),
|
|
797
|
-
/* @__PURE__ */ (0,
|
|
839
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
798
840
|
"path",
|
|
799
841
|
{
|
|
800
842
|
d: "M6 5H5.5C5.36739 5 5.24021 5.05268 5.14645 5.14645C5.05268 5.24021 5 5.36739 5 5.5C5 5.63261 5.05268 5.75979 5.14645 5.85355C5.24021 5.94732 5.36739 6 5.5 6H6V9C6 9.13261 6.05268 9.25979 6.14645 9.35355C6.24021 9.44732 6.36739 9.5 6.5 9.5C6.63261 9.5 6.75979 9.44732 6.85355 9.35355C6.94732 9.25979 7 9.13261 7 9V6C7 5.73478 6.89464 5.48043 6.70711 5.29289C6.51957 5.10536 6.26522 5 6 5Z",
|
|
801
843
|
fill: "currentColor"
|
|
802
844
|
}
|
|
803
845
|
),
|
|
804
|
-
/* @__PURE__ */ (0,
|
|
846
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
805
847
|
"path",
|
|
806
848
|
{
|
|
807
849
|
d: "M6 4C6.41421 4 6.75 3.66421 6.75 3.25C6.75 2.83579 6.41421 2.5 6 2.5C5.58579 2.5 5.25 2.83579 5.25 3.25C5.25 3.66421 5.58579 4 6 4Z",
|
|
@@ -809,18 +851,25 @@ var InfoIcon = (_a) => {
|
|
|
809
851
|
}
|
|
810
852
|
)
|
|
811
853
|
] }),
|
|
812
|
-
/* @__PURE__ */ (0,
|
|
854
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("clipPath", { id: "info_clip", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("rect", { width: "12", height: "12", fill: "white" }) }) })
|
|
813
855
|
]
|
|
814
856
|
})
|
|
815
857
|
);
|
|
816
858
|
};
|
|
817
859
|
InfoIcon.displayName = "InfoIcon";
|
|
818
860
|
|
|
861
|
+
// src/primitives/icon/icon.constants.ts
|
|
862
|
+
var iconSizeClasses = {
|
|
863
|
+
small: "h-4 w-4",
|
|
864
|
+
medium: "h-6 w-6",
|
|
865
|
+
large: "h-8 w-8"
|
|
866
|
+
};
|
|
867
|
+
|
|
819
868
|
// src/primitives/icon/svg/check-badge.tsx
|
|
820
|
-
var
|
|
869
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
821
870
|
var CheckBadgeIcon = (_a) => {
|
|
822
871
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
823
|
-
return /* @__PURE__ */ (0,
|
|
872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
824
873
|
"svg",
|
|
825
874
|
__spreadProps(__spreadValues(__spreadValues({
|
|
826
875
|
viewBox: "0 0 16 16",
|
|
@@ -828,15 +877,15 @@ var CheckBadgeIcon = (_a) => {
|
|
|
828
877
|
fill: "none"
|
|
829
878
|
}, getIconA11yProps(title)), props), {
|
|
830
879
|
children: [
|
|
831
|
-
title ? /* @__PURE__ */ (0,
|
|
832
|
-
/* @__PURE__ */ (0,
|
|
880
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("title", { children: title }) : null,
|
|
881
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("g", { clipPath: "url(#check-badge-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
833
882
|
"path",
|
|
834
883
|
{
|
|
835
884
|
d: "M15.4173 6.57883L13.9833 5.14283V3.9975C13.9833 2.89683 13.0886 2.00083 11.9893 2.00083H10.8453L9.4113 0.5655C8.6573 -0.1885 7.34397 -0.1885 6.59063 0.5655L5.15663 2.00083H4.01263C2.91263 2.00083 2.01863 2.89617 2.01863 3.9975V5.14283L0.583965 6.57883C-0.192702 7.3575 -0.192702 8.6235 0.583965 9.40217L2.01796 10.8382V11.9835C2.01796 13.0842 2.91263 13.9802 4.01196 13.9802H5.15596L6.58997 15.4155C6.96663 15.7922 7.46797 16.0002 8.00063 16.0002C8.5333 16.0002 9.03397 15.7922 9.41063 15.4155L10.8446 13.9802H11.9886C13.0886 13.9802 13.9826 13.0848 13.9826 11.9835V10.8382L15.4173 9.40217C16.194 8.6235 16.194 7.3575 15.4173 6.57883ZM12.136 6.8075L8.76663 10.1375C8.3573 10.5442 7.81797 10.7482 7.2793 10.7482C6.74063 10.7482 6.20396 10.5448 5.7933 10.1395L4.06063 8.4735C3.7993 8.21417 3.79663 7.79283 4.05596 7.53083C4.31596 7.27017 4.73663 7.26683 4.9993 7.52617L6.7313 9.1915C7.0333 9.49083 7.52463 9.4915 7.8273 9.1915L11.1973 5.86083C11.46 5.60083 11.8813 5.6035 12.1406 5.8655C12.4 6.1275 12.3973 6.54817 12.136 6.8075Z",
|
|
836
885
|
fill: "currentColor"
|
|
837
886
|
}
|
|
838
887
|
) }),
|
|
839
|
-
/* @__PURE__ */ (0,
|
|
888
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("clipPath", { id: "check-badge-clip", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
840
889
|
]
|
|
841
890
|
})
|
|
842
891
|
);
|
|
@@ -844,10 +893,10 @@ var CheckBadgeIcon = (_a) => {
|
|
|
844
893
|
CheckBadgeIcon.displayName = "CheckBadgeIcon";
|
|
845
894
|
|
|
846
895
|
// src/primitives/icon/svg/discord.tsx
|
|
847
|
-
var
|
|
896
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
848
897
|
var DiscordIcon = (_a) => {
|
|
849
898
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
850
|
-
return /* @__PURE__ */ (0,
|
|
899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
851
900
|
"svg",
|
|
852
901
|
__spreadProps(__spreadValues(__spreadValues({
|
|
853
902
|
viewBox: "0 0 20 20",
|
|
@@ -855,8 +904,8 @@ var DiscordIcon = (_a) => {
|
|
|
855
904
|
fill: "none"
|
|
856
905
|
}, getIconA11yProps(title)), props), {
|
|
857
906
|
children: [
|
|
858
|
-
title ? /* @__PURE__ */ (0,
|
|
859
|
-
/* @__PURE__ */ (0,
|
|
907
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("title", { children: title }) : null,
|
|
908
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
860
909
|
"path",
|
|
861
910
|
{
|
|
862
911
|
d: "M16.3546 4.49236C15.1858 3.95607 13.9329 3.56111 12.6227 3.33499C12.599 3.3304 12.5754 3.34186 12.5624 3.36325C12.4012 3.64973 12.2224 4.02406 12.0979 4.31742C10.6884 4.10657 9.28659 4.10657 7.90615 4.31742C7.78162 4.01719 7.59598 3.64973 7.43479 3.36325C7.42181 3.34186 7.39812 3.33117 7.37444 3.33499C6.06504 3.56035 4.81218 3.95531 3.64258 4.49236C3.63265 4.49618 3.62348 4.50382 3.61813 4.51298C1.24151 8.06379 0.589865 11.5275 0.909193 14.9484C0.910721 14.9653 0.919888 14.9813 0.932875 14.9912C2.50125 16.1433 4.01997 16.8423 5.51119 17.3052C5.53487 17.3128 5.56008 17.3037 5.57536 17.2838C5.9283 16.8025 6.24228 16.2945 6.51195 15.7605C6.52799 15.7292 6.51271 15.6918 6.47986 15.6795C5.98101 15.4901 5.5066 15.2594 5.04976 14.9981C5.01386 14.9767 5.0108 14.9255 5.04365 14.9003C5.13991 14.8285 5.23617 14.7536 5.32784 14.678C5.34465 14.6643 5.36756 14.6612 5.38743 14.6704C8.38819 16.0401 11.6365 16.0401 14.6013 14.6704C14.6212 14.6612 14.6441 14.6635 14.6617 14.678C14.7534 14.7536 14.8496 14.8293 14.9466 14.9011C14.9803 14.9255 14.978 14.9775 14.9413 14.9989C14.4845 15.2655 14.01 15.4916 13.5104 15.6795C13.4776 15.6918 13.4638 15.73 13.4791 15.7613C13.7541 16.2945 14.0689 16.8025 14.4149 17.2838C14.4295 17.3044 14.4554 17.3128 14.4791 17.306C15.9772 16.8423 17.4967 16.1433 19.0643 14.992C19.078 14.9821 19.0865 14.9668 19.088 14.95C19.4699 10.995 18.4478 7.55959 16.3775 4.51451C16.3737 4.50382 16.3645 4.49618 16.3546 4.49236ZM6.96038 12.8659C6.05664 12.8659 5.31256 12.0363 5.31256 11.018C5.31256 9.99962 6.04213 9.16998 6.96038 9.16998C7.88552 9.16998 8.62272 10.0065 8.60821 11.018C8.60821 12.0371 7.87788 12.8659 6.96038 12.8659ZM13.0528 12.8659C12.1498 12.8659 11.405 12.0363 11.405 11.018C11.405 9.99962 12.1346 9.16998 13.0528 9.16998C13.978 9.16998 14.7152 10.0065 14.7007 11.018C14.7007 12.0371 13.978 12.8659 13.0528 12.8659Z",
|
|
@@ -870,10 +919,10 @@ var DiscordIcon = (_a) => {
|
|
|
870
919
|
DiscordIcon.displayName = "DiscordIcon";
|
|
871
920
|
|
|
872
921
|
// src/primitives/icon/svg/email.tsx
|
|
873
|
-
var
|
|
922
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
874
923
|
var EmailIcon = (_a) => {
|
|
875
924
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
876
|
-
return /* @__PURE__ */ (0,
|
|
925
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
877
926
|
"svg",
|
|
878
927
|
__spreadProps(__spreadValues(__spreadValues({
|
|
879
928
|
viewBox: "0 0 20 20",
|
|
@@ -881,8 +930,8 @@ var EmailIcon = (_a) => {
|
|
|
881
930
|
fill: "none"
|
|
882
931
|
}, getIconA11yProps(title)), props), {
|
|
883
932
|
children: [
|
|
884
|
-
title ? /* @__PURE__ */ (0,
|
|
885
|
-
/* @__PURE__ */ (0,
|
|
933
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("title", { children: title }) : null,
|
|
934
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
886
935
|
"path",
|
|
887
936
|
{
|
|
888
937
|
d: "M3.33333 3.33398H16.6667C17.5833 3.33398 18.3333 4.08398 18.3333 5.00065V15.0007C18.3333 15.9173 17.5833 16.6673 16.6667 16.6673H3.33333C2.41667 16.6673 1.66667 15.9173 1.66667 15.0007V5.00065C1.66667 4.08398 2.41667 3.33398 3.33333 3.33398Z",
|
|
@@ -892,7 +941,7 @@ var EmailIcon = (_a) => {
|
|
|
892
941
|
strokeLinejoin: "round"
|
|
893
942
|
}
|
|
894
943
|
),
|
|
895
|
-
/* @__PURE__ */ (0,
|
|
944
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
896
945
|
"path",
|
|
897
946
|
{
|
|
898
947
|
d: "M18.3333 5L10 10.8333L1.66667 5",
|
|
@@ -909,10 +958,10 @@ var EmailIcon = (_a) => {
|
|
|
909
958
|
EmailIcon.displayName = "EmailIcon";
|
|
910
959
|
|
|
911
960
|
// src/primitives/icon/svg/link-accounts.tsx
|
|
912
|
-
var
|
|
961
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
913
962
|
var LinkAccountsIcon = (_a) => {
|
|
914
963
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
915
|
-
return /* @__PURE__ */ (0,
|
|
964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
916
965
|
"svg",
|
|
917
966
|
__spreadProps(__spreadValues(__spreadValues({
|
|
918
967
|
width: "28",
|
|
@@ -923,15 +972,15 @@ var LinkAccountsIcon = (_a) => {
|
|
|
923
972
|
className
|
|
924
973
|
}, getIconA11yProps(title)), props), {
|
|
925
974
|
children: [
|
|
926
|
-
title ? /* @__PURE__ */ (0,
|
|
927
|
-
/* @__PURE__ */ (0,
|
|
975
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("title", { children: title }) : null,
|
|
976
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("g", { clipPath: "url(#clip0_link_accounts)", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
928
977
|
"path",
|
|
929
978
|
{
|
|
930
979
|
d: "M28 18.0835C28 22.2648 24.598 25.6668 20.4167 25.6668H14.5833C10.402 25.6668 7 22.2648 7 18.0835C7 13.9022 10.402 10.5002 14.5833 10.5002H16.9167C17.2387 10.5002 17.5 10.7615 17.5 11.0835C17.5 11.4055 17.2387 11.6668 16.9167 11.6668H14.5833C11.0448 11.6668 8.16667 14.5462 8.16667 18.0835C8.16667 21.6208 11.0448 24.5002 14.5833 24.5002H20.4167C23.9552 24.5002 26.8333 21.6208 26.8333 18.0835C26.8333 15.7992 25.6037 13.67 23.625 12.5243C23.3462 12.3633 23.2505 12.0063 23.4127 11.7275C23.5725 11.4487 23.9283 11.3507 24.2095 11.514C26.5475 12.8662 28.0012 15.3827 28.0012 18.0823L28 18.0835ZM4.375 15.476C2.39517 14.3315 1.16667 12.2012 1.16667 9.91683C1.16667 6.3795 4.04483 3.50016 7.58333 3.50016H13.4167C16.9552 3.50016 19.8333 6.3795 19.8333 9.91683C19.8333 13.4542 16.9552 16.3335 13.4167 16.3335H11.0833C10.7613 16.3335 10.5 16.5948 10.5 16.9168C10.5 17.2388 10.7613 17.5002 11.0833 17.5002H13.4167C17.598 17.5002 21 14.0982 21 9.91683C21 5.7355 17.598 2.3335 13.4167 2.3335H7.58333C3.402 2.3335 0 5.7355 0 9.91683C0 12.6153 1.4525 15.133 3.79167 16.4852C4.0705 16.6462 4.4275 16.5517 4.5885 16.2717C4.75067 15.994 4.655 15.6358 4.37617 15.4748L4.375 15.476Z",
|
|
931
980
|
fill: "currentColor"
|
|
932
981
|
}
|
|
933
982
|
) }),
|
|
934
|
-
/* @__PURE__ */ (0,
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("clipPath", { id: "clip0_link_accounts", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
935
984
|
]
|
|
936
985
|
})
|
|
937
986
|
);
|
|
@@ -939,10 +988,10 @@ var LinkAccountsIcon = (_a) => {
|
|
|
939
988
|
LinkAccountsIcon.displayName = "LinkAccountsIcon";
|
|
940
989
|
|
|
941
990
|
// src/primitives/icon/svg/pencil.tsx
|
|
942
|
-
var
|
|
991
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
943
992
|
var PencilIcon = (_a) => {
|
|
944
993
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
945
|
-
return /* @__PURE__ */ (0,
|
|
994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
946
995
|
"svg",
|
|
947
996
|
__spreadProps(__spreadValues(__spreadValues({
|
|
948
997
|
viewBox: "0 0 16 16",
|
|
@@ -950,15 +999,15 @@ var PencilIcon = (_a) => {
|
|
|
950
999
|
fill: "none"
|
|
951
1000
|
}, getIconA11yProps(title)), props), {
|
|
952
1001
|
children: [
|
|
953
|
-
title ? /* @__PURE__ */ (0,
|
|
954
|
-
/* @__PURE__ */ (0,
|
|
1002
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("title", { children: title }) : null,
|
|
1003
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("g", { clipPath: "url(#pencil_clip)", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
955
1004
|
"path",
|
|
956
1005
|
{
|
|
957
1006
|
d: "M15.2353 0.706709C14.7821 0.254173 14.1678 0 13.5273 0C12.8869 0 12.2726 0.254173 11.8193 0.706709L0.976677 11.5494C0.666178 11.8581 0.419985 12.2254 0.252342 12.6299C0.0846994 13.0344 -0.00106532 13.4682 9.98748e-06 13.906V15.2747C9.98748e-06 15.4515 0.0702479 15.6211 0.195272 15.7461C0.320296 15.8711 0.489866 15.9414 0.666677 15.9414H2.03534C2.47318 15.9426 2.90692 15.857 3.31145 15.6895C3.71597 15.5219 4.08325 15.2758 4.39201 14.9654L15.2353 4.12204C15.6877 3.66884 15.9417 3.05469 15.9417 2.41438C15.9417 1.77406 15.6877 1.15991 15.2353 0.706709ZM3.44934 14.0227C3.07335 14.3962 2.56532 14.6065 2.03534 14.608H1.33334V13.906C1.33267 13.6433 1.38411 13.3831 1.4847 13.1403C1.58529 12.8976 1.73302 12.6773 1.91934 12.492L10.148 4.26338L11.6813 5.79671L3.44934 14.0227ZM14.292 3.17938L12.6213 4.85071L11.088 3.32071L12.7593 1.64938C12.86 1.54891 12.9795 1.46927 13.111 1.41498C13.2424 1.3607 13.3833 1.33284 13.5255 1.33299C13.6678 1.33314 13.8086 1.36131 13.9399 1.41588C14.0712 1.47045 14.1905 1.55036 14.291 1.65104C14.3915 1.75172 14.4711 1.8712 14.5254 2.00266C14.5797 2.13413 14.6076 2.27499 14.6074 2.41722C14.6072 2.55945 14.5791 2.70025 14.5245 2.8316C14.4699 2.96294 14.39 3.08225 14.2893 3.18271L14.292 3.17938Z",
|
|
958
1007
|
fill: "currentColor"
|
|
959
1008
|
}
|
|
960
1009
|
) }),
|
|
961
|
-
/* @__PURE__ */ (0,
|
|
1010
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("clipPath", { id: "pencil_clip", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
962
1011
|
]
|
|
963
1012
|
})
|
|
964
1013
|
);
|
|
@@ -966,10 +1015,10 @@ var PencilIcon = (_a) => {
|
|
|
966
1015
|
PencilIcon.displayName = "PencilIcon";
|
|
967
1016
|
|
|
968
1017
|
// src/primitives/icon/svg/play-square.tsx
|
|
969
|
-
var
|
|
1018
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
970
1019
|
var PlaySquareIcon = (_a) => {
|
|
971
1020
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
972
|
-
return /* @__PURE__ */ (0,
|
|
1021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
973
1022
|
"svg",
|
|
974
1023
|
__spreadProps(__spreadValues(__spreadValues({
|
|
975
1024
|
viewBox: "0 0 16 16",
|
|
@@ -977,15 +1026,15 @@ var PlaySquareIcon = (_a) => {
|
|
|
977
1026
|
fill: "none"
|
|
978
1027
|
}, getIconA11yProps(title)), props), {
|
|
979
1028
|
children: [
|
|
980
|
-
title ? /* @__PURE__ */ (0,
|
|
981
|
-
/* @__PURE__ */ (0,
|
|
1029
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("title", { children: title }) : null,
|
|
1030
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("g", { clipPath: "url(#play-square-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
982
1031
|
"path",
|
|
983
1032
|
{
|
|
984
1033
|
d: "M12.6667 16H3.33333C2.4496 15.9989 1.60237 15.6474 0.97748 15.0225C0.352588 14.3976 0.00105857 13.5504 0 12.6667L0 3.33333C0.00105857 2.4496 0.352588 1.60237 0.97748 0.97748C1.60237 0.352588 2.4496 0.00105857 3.33333 0L12.6667 0C13.5504 0.00105857 14.3976 0.352588 15.0225 0.97748C15.6474 1.60237 15.9989 2.4496 16 3.33333V12.6667C15.9989 13.5504 15.6474 14.3976 15.0225 15.0225C14.3976 15.6474 13.5504 15.9989 12.6667 16ZM3.33333 1.33333C2.8029 1.33333 2.29419 1.54405 1.91912 1.91912C1.54405 2.29419 1.33333 2.8029 1.33333 3.33333V12.6667C1.33333 13.1971 1.54405 13.7058 1.91912 14.0809C2.29419 14.456 2.8029 14.6667 3.33333 14.6667H12.6667C13.1971 14.6667 13.7058 14.456 14.0809 14.0809C14.456 13.7058 14.6667 13.1971 14.6667 12.6667V3.33333C14.6667 2.8029 14.456 2.29419 14.0809 1.91912C13.7058 1.54405 13.1971 1.33333 12.6667 1.33333H3.33333ZM6.228 11.3367C5.95008 11.3357 5.67734 11.2615 5.43733 11.1213C5.20023 10.9856 5.00344 10.7894 4.86709 10.5526C4.73074 10.3159 4.65973 10.0472 4.66133 9.774V6.226C4.66111 5.95276 4.73274 5.68427 4.86905 5.44746C5.00537 5.21066 5.20156 5.01386 5.43794 4.87683C5.67433 4.73979 5.9426 4.66733 6.21584 4.66672C6.48907 4.6661 6.75767 4.73736 6.99467 4.87333L10.5133 6.63C10.7577 6.76194 10.9624 6.95685 11.1062 7.19452C11.2499 7.4322 11.3274 7.70399 11.3308 7.98172C11.3341 8.25946 11.2631 8.53303 11.1251 8.77408C10.9871 9.01514 10.7872 9.2149 10.546 9.35267L6.962 11.144C6.73847 11.2715 6.48533 11.3379 6.228 11.3367ZM6.21133 6.00333C6.17459 6.00332 6.13849 6.01298 6.10667 6.03133C6.07209 6.05056 6.0434 6.07884 6.02367 6.11313C6.00394 6.14743 5.99391 6.18644 5.99467 6.226V9.774C5.99489 9.81297 6.00525 9.85121 6.02473 9.88497C6.0442 9.91872 6.07212 9.94683 6.10574 9.96653C6.13936 9.98624 6.17753 9.99686 6.2165 9.99735C6.25547 9.99784 6.29389 9.98818 6.328 9.96933L9.912 8.17733C9.93869 8.15646 9.95992 8.12941 9.97385 8.09852C9.98779 8.06764 9.99401 8.03383 9.992 8C9.99284 7.96035 9.98277 7.92123 9.96291 7.8869C9.94304 7.85258 9.91413 7.82436 9.87933 7.80533L6.36333 6.04867C6.31749 6.02054 6.26509 6.00492 6.21133 6.00333Z",
|
|
985
1034
|
fill: "currentColor"
|
|
986
1035
|
}
|
|
987
1036
|
) }),
|
|
988
|
-
/* @__PURE__ */ (0,
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("clipPath", { id: "play-square-clip", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
989
1038
|
]
|
|
990
1039
|
})
|
|
991
1040
|
);
|
|
@@ -993,10 +1042,10 @@ var PlaySquareIcon = (_a) => {
|
|
|
993
1042
|
PlaySquareIcon.displayName = "PlaySquareIcon";
|
|
994
1043
|
|
|
995
1044
|
// src/primitives/icon/svg/profile.tsx
|
|
996
|
-
var
|
|
1045
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
997
1046
|
var ProfileIcon = (_a) => {
|
|
998
1047
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
999
|
-
return /* @__PURE__ */ (0,
|
|
1048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1000
1049
|
"svg",
|
|
1001
1050
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1002
1051
|
viewBox: "0 0 21 28",
|
|
@@ -1004,8 +1053,8 @@ var ProfileIcon = (_a) => {
|
|
|
1004
1053
|
fill: "none"
|
|
1005
1054
|
}, getIconA11yProps(title)), props), {
|
|
1006
1055
|
children: [
|
|
1007
|
-
title ? /* @__PURE__ */ (0,
|
|
1008
|
-
/* @__PURE__ */ (0,
|
|
1056
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("title", { children: title }) : null,
|
|
1057
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1009
1058
|
"path",
|
|
1010
1059
|
{
|
|
1011
1060
|
d: "M10.5 14C14.3605 14 17.5 10.8605 17.5 7C17.5 3.1395 14.3605 0 10.5 0C6.6395 0 3.5 3.1395 3.5 7C3.5 10.8605 6.6395 14 10.5 14ZM10.5 1.16667C13.7165 1.16667 16.3333 3.7835 16.3333 7C16.3333 10.2165 13.7165 12.8333 10.5 12.8333C7.2835 12.8333 4.66667 10.2165 4.66667 7C4.66667 3.7835 7.2835 1.16667 10.5 1.16667ZM21 26.8333V27.4167C21 27.7387 20.7387 28 20.4167 28C20.0947 28 19.8333 27.7387 19.8333 27.4167V26.8333C19.8333 21.6872 15.6462 17.5 10.5 17.5C5.35383 17.5 1.16667 21.6872 1.16667 26.8333V27.4167C1.16667 27.7387 0.905333 28 0.583333 28C0.261333 28 0 27.7387 0 27.4167V26.8333C0 21.0443 4.711 16.3333 10.5 16.3333C16.289 16.3333 21 21.0443 21 26.8333Z",
|
|
@@ -1019,10 +1068,10 @@ var ProfileIcon = (_a) => {
|
|
|
1019
1068
|
ProfileIcon.displayName = "ProfileIcon";
|
|
1020
1069
|
|
|
1021
1070
|
// src/primitives/icon/svg/revenue-alt.tsx
|
|
1022
|
-
var
|
|
1071
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1023
1072
|
var RevenueAltIcon = (_a) => {
|
|
1024
1073
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1025
|
-
return /* @__PURE__ */ (0,
|
|
1074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1026
1075
|
"svg",
|
|
1027
1076
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1028
1077
|
viewBox: "0 0 20 20",
|
|
@@ -1030,8 +1079,8 @@ var RevenueAltIcon = (_a) => {
|
|
|
1030
1079
|
fill: "none"
|
|
1031
1080
|
}, getIconA11yProps(title)), props), {
|
|
1032
1081
|
children: [
|
|
1033
|
-
title ? /* @__PURE__ */ (0,
|
|
1034
|
-
/* @__PURE__ */ (0,
|
|
1082
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("title", { children: title }) : null,
|
|
1083
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1035
1084
|
"path",
|
|
1036
1085
|
{
|
|
1037
1086
|
d: "M3 14V6M3 6L1.5 7.5M3 6L4.5 7.5M17 6V14M17 14L15.5 12.5M17 14L18.5 12.5",
|
|
@@ -1041,7 +1090,7 @@ var RevenueAltIcon = (_a) => {
|
|
|
1041
1090
|
strokeLinejoin: "round"
|
|
1042
1091
|
}
|
|
1043
1092
|
),
|
|
1044
|
-
/* @__PURE__ */ (0,
|
|
1093
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1045
1094
|
"path",
|
|
1046
1095
|
{
|
|
1047
1096
|
d: "M10 5.5V14.5M12.5 7.4C12.5 6.55 11.38 5.86 10 5.86C8.62 5.86 7.5 6.55 7.5 7.4C7.5 8.25 8.62 8.94 10 8.94C11.38 8.94 12.5 9.63 12.5 10.48C12.5 11.33 11.38 12.02 10 12.02C8.62 12.02 7.5 11.33 7.5 10.48",
|
|
@@ -1058,10 +1107,10 @@ var RevenueAltIcon = (_a) => {
|
|
|
1058
1107
|
RevenueAltIcon.displayName = "RevenueAltIcon";
|
|
1059
1108
|
|
|
1060
1109
|
// src/primitives/icon/svg/search.tsx
|
|
1061
|
-
var
|
|
1110
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1062
1111
|
var SearchIcon = (_a) => {
|
|
1063
1112
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1064
|
-
return /* @__PURE__ */ (0,
|
|
1113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1065
1114
|
"svg",
|
|
1066
1115
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1067
1116
|
viewBox: "0 0 16 16",
|
|
@@ -1070,8 +1119,8 @@ var SearchIcon = (_a) => {
|
|
|
1070
1119
|
className
|
|
1071
1120
|
}, getIconA11yProps(title)), props), {
|
|
1072
1121
|
children: [
|
|
1073
|
-
title ? /* @__PURE__ */ (0,
|
|
1074
|
-
/* @__PURE__ */ (0,
|
|
1122
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("title", { children: title }) : null,
|
|
1123
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1075
1124
|
"path",
|
|
1076
1125
|
{
|
|
1077
1126
|
d: "M7.3335 12.3333C10.0949 12.3333 12.3335 10.0947 12.3335 7.33329C12.3335 4.57187 10.0949 2.33329 7.3335 2.33329C4.57208 2.33329 2.3335 4.57187 2.3335 7.33329C2.3335 10.0947 4.57208 12.3333 7.3335 12.3333Z",
|
|
@@ -1081,7 +1130,7 @@ var SearchIcon = (_a) => {
|
|
|
1081
1130
|
strokeLinejoin: "round"
|
|
1082
1131
|
}
|
|
1083
1132
|
),
|
|
1084
|
-
/* @__PURE__ */ (0,
|
|
1133
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1085
1134
|
"path",
|
|
1086
1135
|
{
|
|
1087
1136
|
d: "M13.6668 13.6666L11.1667 11.1666",
|
|
@@ -1098,10 +1147,10 @@ var SearchIcon = (_a) => {
|
|
|
1098
1147
|
SearchIcon.displayName = "SearchIcon";
|
|
1099
1148
|
|
|
1100
1149
|
// src/primitives/icon/svg/shield-trust.tsx
|
|
1101
|
-
var
|
|
1150
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1102
1151
|
var ShieldTrustIcon = (_a) => {
|
|
1103
1152
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1104
|
-
return /* @__PURE__ */ (0,
|
|
1153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
1105
1154
|
"svg",
|
|
1106
1155
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1107
1156
|
viewBox: "0 0 16 16",
|
|
@@ -1109,15 +1158,15 @@ var ShieldTrustIcon = (_a) => {
|
|
|
1109
1158
|
fill: "none"
|
|
1110
1159
|
}, getIconA11yProps(title)), props), {
|
|
1111
1160
|
children: [
|
|
1112
|
-
title ? /* @__PURE__ */ (0,
|
|
1113
|
-
/* @__PURE__ */ (0,
|
|
1161
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("title", { children: title }) : null,
|
|
1162
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1114
1163
|
"path",
|
|
1115
1164
|
{
|
|
1116
1165
|
d: "M8 1.25L13.5 3.25V7.08C13.5 10.09 11.62 12.74 8 14.75C4.38 12.74 2.5 10.09 2.5 7.08V3.25L8 1.25Z",
|
|
1117
1166
|
fill: "currentColor"
|
|
1118
1167
|
}
|
|
1119
1168
|
),
|
|
1120
|
-
/* @__PURE__ */ (0,
|
|
1169
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1121
1170
|
"path",
|
|
1122
1171
|
{
|
|
1123
1172
|
d: "M5.5 8.2L7.2 9.9L10.8 6.3",
|
|
@@ -1134,10 +1183,10 @@ var ShieldTrustIcon = (_a) => {
|
|
|
1134
1183
|
ShieldTrustIcon.displayName = "ShieldTrustIcon";
|
|
1135
1184
|
|
|
1136
1185
|
// src/primitives/icon/svg/stay-in-control.tsx
|
|
1137
|
-
var
|
|
1186
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1138
1187
|
var StayInControlIcon = (_a) => {
|
|
1139
1188
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1140
|
-
return /* @__PURE__ */ (0,
|
|
1189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1141
1190
|
"svg",
|
|
1142
1191
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1143
1192
|
width: "28",
|
|
@@ -1148,16 +1197,16 @@ var StayInControlIcon = (_a) => {
|
|
|
1148
1197
|
className
|
|
1149
1198
|
}, getIconA11yProps(title)), props), {
|
|
1150
1199
|
children: [
|
|
1151
|
-
title ? /* @__PURE__ */ (0,
|
|
1152
|
-
/* @__PURE__ */ (0,
|
|
1153
|
-
/* @__PURE__ */ (0,
|
|
1200
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("title", { children: title }) : null,
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
|
|
1202
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1154
1203
|
"path",
|
|
1155
1204
|
{
|
|
1156
1205
|
d: "M14 27.9406C13.9102 27.9406 13.8215 27.9196 13.7387 27.8788L13.2428 27.6314C10.6832 26.3504 2.32983 21.5753 2.32983 13.8648L2.33217 7.62776C2.33217 5.36093 3.77767 3.35776 5.93017 2.64493L13.8168 0.0292617C13.9358 -0.010405 14.0653 -0.010405 14.1832 0.0292617L22.0687 2.64376C24.2212 3.35776 25.6667 5.36093 25.6667 7.6266L25.6632 13.8636C25.6632 22.6113 17.2958 26.6584 14.7315 27.6909L14.217 27.8974C14.147 27.9254 14.0723 27.9394 13.9988 27.9394L14 27.9406ZM14 1.19826L6.29767 3.7521C4.6235 4.30743 3.5 5.86493 3.5 7.62776L3.49767 13.8648C3.49767 20.9056 11.3563 25.3844 13.7655 26.5884L14.0268 26.7191L14.2975 26.6106C16.6903 25.6481 24.4977 21.8833 24.4977 13.8659L24.5012 7.62893C24.5012 5.8661 23.3765 4.3086 21.7035 3.75326L14 1.19826Z",
|
|
1157
1206
|
fill: "currentColor"
|
|
1158
1207
|
}
|
|
1159
1208
|
),
|
|
1160
|
-
/* @__PURE__ */ (0,
|
|
1209
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1161
1210
|
"path",
|
|
1162
1211
|
{
|
|
1163
1212
|
d: "M12.8112 17.5001C12.0633 17.5001 11.3155 17.2154 10.7462 16.6461L7.18083 13.2569C6.94749 13.0352 6.93816 12.6654 7.15983 12.4321C7.38149 12.1999 7.75016 12.1894 7.98466 12.4111L11.5605 15.8107C12.2535 16.5026 13.363 16.5037 14.0455 15.8212L20.5928 9.49791C20.8262 9.27508 21.196 9.28208 21.4177 9.51308C21.6417 9.74408 21.6358 10.1139 21.4037 10.3379L14.8622 16.6542C14.2987 17.2177 13.5543 17.5012 12.81 17.5012L12.8112 17.5001Z",
|
|
@@ -1165,7 +1214,7 @@ var StayInControlIcon = (_a) => {
|
|
|
1165
1214
|
}
|
|
1166
1215
|
)
|
|
1167
1216
|
] }),
|
|
1168
|
-
/* @__PURE__ */ (0,
|
|
1217
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
1169
1218
|
]
|
|
1170
1219
|
})
|
|
1171
1220
|
);
|
|
@@ -1173,10 +1222,10 @@ var StayInControlIcon = (_a) => {
|
|
|
1173
1222
|
StayInControlIcon.displayName = "StayInControlIcon";
|
|
1174
1223
|
|
|
1175
1224
|
// src/primitives/icon/svg/telegram.tsx
|
|
1176
|
-
var
|
|
1225
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1177
1226
|
var TelegramIcon = (_a) => {
|
|
1178
1227
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1179
|
-
return /* @__PURE__ */ (0,
|
|
1228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
1180
1229
|
"svg",
|
|
1181
1230
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1182
1231
|
viewBox: "0 0 20 20",
|
|
@@ -1184,8 +1233,8 @@ var TelegramIcon = (_a) => {
|
|
|
1184
1233
|
fill: "none"
|
|
1185
1234
|
}, getIconA11yProps(title)), props), {
|
|
1186
1235
|
children: [
|
|
1187
|
-
title ? /* @__PURE__ */ (0,
|
|
1188
|
-
/* @__PURE__ */ (0,
|
|
1236
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("title", { children: title }) : null,
|
|
1237
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1189
1238
|
"path",
|
|
1190
1239
|
{
|
|
1191
1240
|
fillRule: "evenodd",
|
|
@@ -1194,7 +1243,7 @@ var TelegramIcon = (_a) => {
|
|
|
1194
1243
|
fill: "currentColor"
|
|
1195
1244
|
}
|
|
1196
1245
|
) }),
|
|
1197
|
-
/* @__PURE__ */ (0,
|
|
1246
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
1198
1247
|
]
|
|
1199
1248
|
})
|
|
1200
1249
|
);
|
|
@@ -1202,10 +1251,10 @@ var TelegramIcon = (_a) => {
|
|
|
1202
1251
|
TelegramIcon.displayName = "TelegramIcon";
|
|
1203
1252
|
|
|
1204
1253
|
// src/primitives/icon/svg/triangle-down.tsx
|
|
1205
|
-
var
|
|
1254
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1206
1255
|
var TriangleDownIcon = (_a) => {
|
|
1207
1256
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1208
|
-
return /* @__PURE__ */ (0,
|
|
1257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1209
1258
|
"svg",
|
|
1210
1259
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1211
1260
|
viewBox: "0 0 8 8",
|
|
@@ -1213,16 +1262,16 @@ var TriangleDownIcon = (_a) => {
|
|
|
1213
1262
|
fill: "none"
|
|
1214
1263
|
}, getIconA11yProps(title)), props), {
|
|
1215
1264
|
children: [
|
|
1216
|
-
title ? /* @__PURE__ */ (0,
|
|
1217
|
-
/* @__PURE__ */ (0,
|
|
1218
|
-
/* @__PURE__ */ (0,
|
|
1265
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("title", { children: title }) : null,
|
|
1266
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
|
|
1267
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1219
1268
|
"path",
|
|
1220
1269
|
{
|
|
1221
1270
|
d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
|
|
1222
1271
|
fill: "currentColor"
|
|
1223
1272
|
}
|
|
1224
1273
|
),
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1274
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1226
1275
|
"path",
|
|
1227
1276
|
{
|
|
1228
1277
|
d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
|
|
@@ -1230,7 +1279,7 @@ var TriangleDownIcon = (_a) => {
|
|
|
1230
1279
|
}
|
|
1231
1280
|
)
|
|
1232
1281
|
] }),
|
|
1233
|
-
/* @__PURE__ */ (0,
|
|
1282
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
1234
1283
|
]
|
|
1235
1284
|
})
|
|
1236
1285
|
);
|
|
@@ -1238,10 +1287,10 @@ var TriangleDownIcon = (_a) => {
|
|
|
1238
1287
|
TriangleDownIcon.displayName = "TriangleDownIcon";
|
|
1239
1288
|
|
|
1240
1289
|
// src/primitives/icon/svg/triangle-up-filled.tsx
|
|
1241
|
-
var
|
|
1290
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1242
1291
|
var TriangleUpFilledIcon = (_a) => {
|
|
1243
1292
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1244
|
-
return /* @__PURE__ */ (0,
|
|
1293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1245
1294
|
"svg",
|
|
1246
1295
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1247
1296
|
viewBox: "0 0 8 8",
|
|
@@ -1249,8 +1298,8 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
1249
1298
|
fill: "none"
|
|
1250
1299
|
}, getIconA11yProps(title)), props), {
|
|
1251
1300
|
children: [
|
|
1252
|
-
title ? /* @__PURE__ */ (0,
|
|
1253
|
-
/* @__PURE__ */ (0,
|
|
1301
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("title", { children: title }) : null,
|
|
1302
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1254
1303
|
"path",
|
|
1255
1304
|
{
|
|
1256
1305
|
d: "M6.67873 8.00001H1.3214C1.09613 8.00053 0.874481 7.94332 0.677605 7.83384C0.480728 7.72435 0.315192 7.56625 0.196788 7.3746C0.0783848 7.18296 0.0110649 6.96417 0.00125164 6.73911C-0.0085616 6.51405 0.0394592 6.29023 0.140732 6.08901L2.81973 0.729677C2.92186 0.523193 3.0766 0.347273 3.26837 0.219641C3.46014 0.0920097 3.68216 0.0171748 3.91207 0.00267686C4.17147 -0.013831 4.43 0.0462826 4.6555 0.175542C4.88101 0.3048 5.06354 0.497501 5.1804 0.729677L7.8594 6.08901C7.96008 6.2903 8.00764 6.51398 7.99756 6.73881C7.98748 6.96365 7.92009 7.18218 7.8018 7.37365C7.68351 7.56512 7.51823 7.72317 7.32167 7.83279C7.12511 7.94242 6.90379 7.99998 6.67873 8.00001Z",
|
|
@@ -1264,10 +1313,10 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
1264
1313
|
TriangleUpFilledIcon.displayName = "TriangleUpFilledIcon";
|
|
1265
1314
|
|
|
1266
1315
|
// src/primitives/icon/svg/triangle-up.tsx
|
|
1267
|
-
var
|
|
1316
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1268
1317
|
var TriangleUpIcon = (_a) => {
|
|
1269
1318
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1270
|
-
return /* @__PURE__ */ (0,
|
|
1319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
1271
1320
|
"svg",
|
|
1272
1321
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1273
1322
|
viewBox: "0 0 8 8",
|
|
@@ -1275,16 +1324,16 @@ var TriangleUpIcon = (_a) => {
|
|
|
1275
1324
|
fill: "none"
|
|
1276
1325
|
}, getIconA11yProps(title)), props), {
|
|
1277
1326
|
children: [
|
|
1278
|
-
title ? /* @__PURE__ */ (0,
|
|
1279
|
-
/* @__PURE__ */ (0,
|
|
1280
|
-
/* @__PURE__ */ (0,
|
|
1327
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("title", { children: title }) : null,
|
|
1328
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
|
|
1329
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1281
1330
|
"path",
|
|
1282
1331
|
{
|
|
1283
1332
|
d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
|
|
1284
1333
|
fill: "currentColor"
|
|
1285
1334
|
}
|
|
1286
1335
|
),
|
|
1287
|
-
/* @__PURE__ */ (0,
|
|
1336
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1288
1337
|
"path",
|
|
1289
1338
|
{
|
|
1290
1339
|
d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
|
|
@@ -1292,7 +1341,7 @@ var TriangleUpIcon = (_a) => {
|
|
|
1292
1341
|
}
|
|
1293
1342
|
)
|
|
1294
1343
|
] }),
|
|
1295
|
-
/* @__PURE__ */ (0,
|
|
1344
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
1296
1345
|
]
|
|
1297
1346
|
})
|
|
1298
1347
|
);
|
|
@@ -1300,10 +1349,10 @@ var TriangleUpIcon = (_a) => {
|
|
|
1300
1349
|
TriangleUpIcon.displayName = "TriangleUpIcon";
|
|
1301
1350
|
|
|
1302
1351
|
// src/primitives/icon/svg/twitter.tsx
|
|
1303
|
-
var
|
|
1352
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1304
1353
|
var TwitterIcon = (_a) => {
|
|
1305
1354
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1306
|
-
return /* @__PURE__ */ (0,
|
|
1355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1307
1356
|
"svg",
|
|
1308
1357
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1309
1358
|
viewBox: "0 0 20 20",
|
|
@@ -1311,8 +1360,8 @@ var TwitterIcon = (_a) => {
|
|
|
1311
1360
|
fill: "none"
|
|
1312
1361
|
}, getIconA11yProps(title)), props), {
|
|
1313
1362
|
children: [
|
|
1314
|
-
title ? /* @__PURE__ */ (0,
|
|
1315
|
-
/* @__PURE__ */ (0,
|
|
1363
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("title", { children: title }) : null,
|
|
1364
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1316
1365
|
"path",
|
|
1317
1366
|
{
|
|
1318
1367
|
d: "M15.2708 1.66602H18.0834L11.9402 8.68539L19.1666 18.2386H13.51L9.07638 12.446L4.00874 18.2386H1.19152L7.76096 10.7288L0.833252 1.66602H6.63346L10.637 6.96053L15.2708 1.66602ZM14.283 16.5573H15.8406L5.78478 3.25949H4.11186L14.283 16.5573Z",
|
|
@@ -1326,10 +1375,10 @@ var TwitterIcon = (_a) => {
|
|
|
1326
1375
|
TwitterIcon.displayName = "TwitterIcon";
|
|
1327
1376
|
|
|
1328
1377
|
// src/primitives/icon/svg/upload.tsx
|
|
1329
|
-
var
|
|
1378
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1330
1379
|
var UploadIcon = (_a) => {
|
|
1331
1380
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1332
|
-
return /* @__PURE__ */ (0,
|
|
1381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
1333
1382
|
"svg",
|
|
1334
1383
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1335
1384
|
viewBox: "0 0 16 16",
|
|
@@ -1337,8 +1386,8 @@ var UploadIcon = (_a) => {
|
|
|
1337
1386
|
fill: "none"
|
|
1338
1387
|
}, getIconA11yProps(title)), props), {
|
|
1339
1388
|
children: [
|
|
1340
|
-
title ? /* @__PURE__ */ (0,
|
|
1341
|
-
/* @__PURE__ */ (0,
|
|
1389
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("title", { children: title }) : null,
|
|
1390
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1342
1391
|
"path",
|
|
1343
1392
|
{
|
|
1344
1393
|
d: "M8 13.5v-7m0 0 2.5 2.5M8 6.5 5.5 9",
|
|
@@ -1348,7 +1397,7 @@ var UploadIcon = (_a) => {
|
|
|
1348
1397
|
strokeLinejoin: "round"
|
|
1349
1398
|
}
|
|
1350
1399
|
),
|
|
1351
|
-
/* @__PURE__ */ (0,
|
|
1400
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M2.5 3.5h11", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
1352
1401
|
]
|
|
1353
1402
|
})
|
|
1354
1403
|
);
|
|
@@ -1356,10 +1405,10 @@ var UploadIcon = (_a) => {
|
|
|
1356
1405
|
UploadIcon.displayName = "UploadIcon";
|
|
1357
1406
|
|
|
1358
1407
|
// src/primitives/icon/svg/wallet-avatar.tsx
|
|
1359
|
-
var
|
|
1408
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1360
1409
|
function WalletAvatarIcon(_a) {
|
|
1361
1410
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1362
|
-
return /* @__PURE__ */ (0,
|
|
1411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
1363
1412
|
"svg",
|
|
1364
1413
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1365
1414
|
fill: "none",
|
|
@@ -1367,9 +1416,9 @@ function WalletAvatarIcon(_a) {
|
|
|
1367
1416
|
viewBox: "0 0 16 16"
|
|
1368
1417
|
}, getIconA11yProps(title)), props), {
|
|
1369
1418
|
children: [
|
|
1370
|
-
title ? /* @__PURE__ */ (0,
|
|
1371
|
-
/* @__PURE__ */ (0,
|
|
1372
|
-
/* @__PURE__ */ (0,
|
|
1419
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("title", { children: title }) : null,
|
|
1420
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
|
|
1421
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
|
|
1373
1422
|
]
|
|
1374
1423
|
})
|
|
1375
1424
|
);
|
|
@@ -1377,10 +1426,10 @@ function WalletAvatarIcon(_a) {
|
|
|
1377
1426
|
WalletAvatarIcon.displayName = "WalletAvatarIcon";
|
|
1378
1427
|
|
|
1379
1428
|
// src/primitives/icon/svg/wallet.tsx
|
|
1380
|
-
var
|
|
1429
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1381
1430
|
var WalletIcon = (_a) => {
|
|
1382
1431
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1383
|
-
return /* @__PURE__ */ (0,
|
|
1432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
1384
1433
|
"svg",
|
|
1385
1434
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1386
1435
|
viewBox: "0 0 24 24",
|
|
@@ -1388,8 +1437,8 @@ var WalletIcon = (_a) => {
|
|
|
1388
1437
|
fill: "none"
|
|
1389
1438
|
}, getIconA11yProps(title)), props), {
|
|
1390
1439
|
children: [
|
|
1391
|
-
title ? /* @__PURE__ */ (0,
|
|
1392
|
-
/* @__PURE__ */ (0,
|
|
1440
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("title", { children: title }) : null,
|
|
1441
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1393
1442
|
"path",
|
|
1394
1443
|
{
|
|
1395
1444
|
d: "M19.5 6H5.25C4.836 6 4.5 5.664 4.5 5.25C4.5 4.836 4.836 4.5 5.25 4.5H19.5C19.914 4.5 20.25 4.164 20.25 3.75C20.25 2.508 19.242 1.5 18 1.5H4.5C2.843 1.5 1.5 2.843 1.5 4.5V19.5C1.5 21.157 2.843 22.5 4.5 22.5H19.5C21.157 22.5 22.5 21.157 22.5 19.5V9C22.5 7.343 21.157 6 19.5 6ZM2.5 4.5C2.5 3.395 3.395 2.5 4.5 2.5H18C18.552 2.5 19.026 2.834 19.199 3.318C19.176 3.312 19.153 3.5 18 3.5H5.25C4.284 3.5 3.5 4.284 3.5 5.25C3.5 5.388 3.519 5.522 3.555 5.649C2.936 5.369 2.5 4.972 2.5 4.5ZM21.5 19.5C21.5 20.605 20.605 21.5 19.5 21.5H4.5C3.395 21.5 2.5 20.605 2.5 19.5V7.04C3.09 7.336 3.771 7 5.25 7H19.5C20.605 7 21.5 7.895 21.5 9V12H18C16.343 12 15 13.343 15 15C15 16.657 16.343 18 18 18H21.5V19.5ZM21.5 17H18C16.895 17 16 16.105 16 15C16 13.895 16.895 13 18 13H21.5V17ZM18 15.75C18.414 15.75 18.75 15.414 18.75 15C18.75 14.586 18.414 14.25 18 14.25C17.586 14.25 17.25 14.586 17.25 15C17.25 15.414 17.586 15.75 18 15.75Z",
|
|
@@ -1403,10 +1452,10 @@ var WalletIcon = (_a) => {
|
|
|
1403
1452
|
WalletIcon.displayName = "WalletIcon";
|
|
1404
1453
|
|
|
1405
1454
|
// src/primitives/icon/svg/warning-filled.tsx
|
|
1406
|
-
var
|
|
1455
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1407
1456
|
var WarningFilledIcon = (_a) => {
|
|
1408
1457
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1409
|
-
return /* @__PURE__ */ (0,
|
|
1458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
1410
1459
|
"svg",
|
|
1411
1460
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1412
1461
|
viewBox: "0 0 16 16",
|
|
@@ -1414,8 +1463,8 @@ var WarningFilledIcon = (_a) => {
|
|
|
1414
1463
|
fill: "none"
|
|
1415
1464
|
}, getIconA11yProps(title)), props), {
|
|
1416
1465
|
children: [
|
|
1417
|
-
title ? /* @__PURE__ */ (0,
|
|
1418
|
-
/* @__PURE__ */ (0,
|
|
1466
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("title", { children: title }) : null,
|
|
1467
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
1419
1468
|
"path",
|
|
1420
1469
|
{
|
|
1421
1470
|
d: "M15.3869 10.22L10.0002 1.71332C9.5469 1.05999 8.79356 0.666656 8.00023 0.666656C7.20689 0.666656 6.45356 1.05332 5.98023 1.73332L0.620227 10.2067C-0.0597729 11.18 -0.18644 12.3467 0.286894 13.2467C0.75356 14.1467 1.73356 14.66 2.96023 14.66H13.0402C14.2736 14.66 15.2469 14.1467 15.7136 13.2467C16.1802 12.3467 16.0536 11.1867 15.3869 10.22ZM7.33356 4.66666C7.33356 4.29999 7.63356 3.99999 8.00023 3.99999C8.36689 3.99999 8.66689 4.29999 8.66689 4.66666V8.66666C8.66689 9.03332 8.36689 9.33332 8.00023 9.33332C7.63356 9.33332 7.33356 9.03332 7.33356 8.66666V4.66666ZM8.00023 12.6667C7.44689 12.6667 7.00023 12.22 7.00023 11.6667C7.00023 11.1133 7.44689 10.6667 8.00023 10.6667C8.55356 10.6667 9.00023 11.1133 9.00023 11.6667C9.00023 12.22 8.55356 12.6667 8.00023 12.6667Z",
|
|
@@ -1429,10 +1478,10 @@ var WarningFilledIcon = (_a) => {
|
|
|
1429
1478
|
WarningFilledIcon.displayName = "WarningFilledIcon";
|
|
1430
1479
|
|
|
1431
1480
|
// src/primitives/icon/svg/warning.tsx
|
|
1432
|
-
var
|
|
1481
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1433
1482
|
var WarningIcon = (_a) => {
|
|
1434
1483
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1435
|
-
return /* @__PURE__ */ (0,
|
|
1484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
1436
1485
|
"svg",
|
|
1437
1486
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1438
1487
|
width: "14",
|
|
@@ -1443,15 +1492,15 @@ var WarningIcon = (_a) => {
|
|
|
1443
1492
|
className
|
|
1444
1493
|
}, getIconA11yProps(title)), props), {
|
|
1445
1494
|
children: [
|
|
1446
|
-
title ? /* @__PURE__ */ (0,
|
|
1447
|
-
/* @__PURE__ */ (0,
|
|
1495
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("title", { children: title }) : null,
|
|
1496
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("g", { clipPath: "url(#clip0_warning)", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1448
1497
|
"path",
|
|
1449
1498
|
{
|
|
1450
1499
|
d: "M6.41665 8.16675V4.66675C6.41665 4.34591 6.67915 4.08341 6.99998 4.08341C7.32082 4.08341 7.58332 4.34591 7.58332 4.66675V8.16675C7.58332 8.48758 7.32082 8.75008 6.99998 8.75008C6.67915 8.75008 6.41665 8.48758 6.41665 8.16675ZM6.99998 9.33341C6.51582 9.33341 6.12498 9.72425 6.12498 10.2084C6.12498 10.6926 6.51582 11.0834 6.99998 11.0834C7.48415 11.0834 7.87498 10.6926 7.87498 10.2084C7.87498 9.72425 7.48415 9.33341 6.99998 9.33341ZM13.755 12.1801C13.3467 12.9676 12.4892 13.4167 11.4158 13.4167H2.58998C1.51082 13.4167 0.659151 12.9676 0.250818 12.1801C-0.163348 11.3867 -0.0466818 10.3717 0.542485 9.52008L5.23248 2.10008C5.64665 1.50508 6.29998 1.16675 6.99998 1.16675C7.69999 1.16675 8.35332 1.50508 8.74998 2.08258L13.4633 9.53175C14.0525 10.3834 14.1633 11.3926 13.7492 12.1801H13.755ZM12.5008 10.1851C12.5008 10.1851 12.4892 10.1734 12.4892 10.1617L7.78165 2.72425C7.61248 2.48508 7.32082 2.33341 6.99998 2.33341C6.67915 2.33341 6.38749 2.48508 6.20665 2.74758L1.51082 10.1617C1.14915 10.6751 1.06748 11.2351 1.27748 11.6376C1.48165 12.0342 1.94832 12.2501 2.58415 12.2501H11.4042C12.04 12.2501 12.5067 12.0342 12.7108 11.6376C12.9208 11.2351 12.8392 10.6751 12.495 10.1851H12.5008Z",
|
|
1451
1500
|
fill: "currentColor"
|
|
1452
1501
|
}
|
|
1453
1502
|
) }),
|
|
1454
|
-
/* @__PURE__ */ (0,
|
|
1503
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("clipPath", { id: "clip0_warning", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
1455
1504
|
]
|
|
1456
1505
|
})
|
|
1457
1506
|
);
|
|
@@ -1514,7 +1563,7 @@ var resolveIconStyle = (color, style) => {
|
|
|
1514
1563
|
};
|
|
1515
1564
|
|
|
1516
1565
|
// src/primitives/icon/index.tsx
|
|
1517
|
-
var
|
|
1566
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1518
1567
|
var Icon = (_a) => {
|
|
1519
1568
|
var _b = _a, {
|
|
1520
1569
|
name,
|
|
@@ -1532,7 +1581,7 @@ var Icon = (_a) => {
|
|
|
1532
1581
|
const Component = iconRegistry[name];
|
|
1533
1582
|
const resolvedStyle = resolveIconStyle(color, style);
|
|
1534
1583
|
const resolvedClassName = cn(iconSizeClasses[size], className);
|
|
1535
|
-
return /* @__PURE__ */ (0,
|
|
1584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1536
1585
|
Component,
|
|
1537
1586
|
__spreadValues({
|
|
1538
1587
|
color,
|
|
@@ -1548,10 +1597,10 @@ var import_hooks5 = require("@agg-market/hooks");
|
|
|
1548
1597
|
|
|
1549
1598
|
// src/primitives/skeleton/skeleton-block.tsx
|
|
1550
1599
|
var import_hooks3 = require("@agg-market/hooks");
|
|
1551
|
-
var
|
|
1600
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1552
1601
|
var SkeletonBlock = ({ className }) => {
|
|
1553
1602
|
const { enableAnimations } = (0, import_hooks3.useSdkUiConfig)();
|
|
1554
|
-
return /* @__PURE__ */ (0,
|
|
1603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1555
1604
|
"div",
|
|
1556
1605
|
{
|
|
1557
1606
|
"aria-hidden": true,
|
|
@@ -1572,7 +1621,7 @@ var import_hooks4 = require("@agg-market/hooks");
|
|
|
1572
1621
|
var baseCardClassName = "gap-3 overflow-hidden p-5 w-full";
|
|
1573
1622
|
|
|
1574
1623
|
// src/primitives/skeleton/views/event-list-item-skeleton-view.tsx
|
|
1575
|
-
var
|
|
1624
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1576
1625
|
var EventListItemSkeletonView = ({
|
|
1577
1626
|
className,
|
|
1578
1627
|
ariaLabel,
|
|
@@ -1580,7 +1629,7 @@ var EventListItemSkeletonView = ({
|
|
|
1580
1629
|
}) => {
|
|
1581
1630
|
const labels = (0, import_hooks4.useLabels)();
|
|
1582
1631
|
const outcomeTitleWidths = ["w-40", "w-[200px]"];
|
|
1583
|
-
return /* @__PURE__ */ (0,
|
|
1632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
1584
1633
|
Card,
|
|
1585
1634
|
{
|
|
1586
1635
|
className: cn("group/agg-skeleton", baseCardClassName, className),
|
|
@@ -1589,23 +1638,23 @@ var EventListItemSkeletonView = ({
|
|
|
1589
1638
|
"aria-busy": isStandalone || void 0,
|
|
1590
1639
|
"aria-hidden": isStandalone ? void 0 : true,
|
|
1591
1640
|
children: [
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1593
|
-
/* @__PURE__ */ (0,
|
|
1594
|
-
/* @__PURE__ */ (0,
|
|
1641
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
|
|
1642
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
|
|
1643
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
|
|
1595
1644
|
] }),
|
|
1596
|
-
/* @__PURE__ */ (0,
|
|
1597
|
-
/* @__PURE__ */ (0,
|
|
1598
|
-
/* @__PURE__ */ (0,
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col gap-3", children: outcomeTitleWidths.map((outcomeTitleWidth, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: cn("h-5 rounded-agg-sm", outcomeTitleWidth) }),
|
|
1647
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
|
|
1599
1648
|
] }, index)) }),
|
|
1600
|
-
/* @__PURE__ */ (0,
|
|
1601
|
-
/* @__PURE__ */ (0,
|
|
1602
|
-
/* @__PURE__ */ (0,
|
|
1603
|
-
/* @__PURE__ */ (0,
|
|
1604
|
-
/* @__PURE__ */ (0,
|
|
1605
|
-
/* @__PURE__ */ (0,
|
|
1649
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between gap-5 text-agg-muted-foreground", children: [
|
|
1650
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1651
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" }),
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
1653
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" }),
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" })
|
|
1606
1655
|
] })
|
|
1607
1656
|
] }),
|
|
1608
|
-
/* @__PURE__ */ (0,
|
|
1657
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
|
|
1609
1658
|
] })
|
|
1610
1659
|
]
|
|
1611
1660
|
}
|
|
@@ -1614,10 +1663,10 @@ var EventListItemSkeletonView = ({
|
|
|
1614
1663
|
EventListItemSkeletonView.displayName = "EventListItemSkeletonView";
|
|
1615
1664
|
|
|
1616
1665
|
// src/primitives/skeleton/views/event-list-skeleton-view.tsx
|
|
1617
|
-
var
|
|
1666
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1618
1667
|
var EventListSkeletonView = ({ className, ariaLabel }) => {
|
|
1619
1668
|
const labels = (0, import_hooks5.useLabels)();
|
|
1620
|
-
return /* @__PURE__ */ (0,
|
|
1669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
1621
1670
|
"section",
|
|
1622
1671
|
{
|
|
1623
1672
|
className: cn("group/agg-skeleton", "flex w-full flex-col gap-5", className),
|
|
@@ -1625,11 +1674,11 @@ var EventListSkeletonView = ({ className, ariaLabel }) => {
|
|
|
1625
1674
|
"aria-label": ariaLabel != null ? ariaLabel : labels.eventList.loading("events"),
|
|
1626
1675
|
"aria-busy": true,
|
|
1627
1676
|
children: [
|
|
1628
|
-
/* @__PURE__ */ (0,
|
|
1629
|
-
/* @__PURE__ */ (0,
|
|
1630
|
-
/* @__PURE__ */ (0,
|
|
1677
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("header", { className: "flex w-full flex-col items-start justify-between gap-3 md:flex-row md:flex-nowrap md:items-center md:gap-5", children: [
|
|
1678
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-7 w-[120px] rounded-agg-md" }),
|
|
1679
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-8 w-full rounded-agg-md md:w-[400px]" })
|
|
1631
1680
|
] }),
|
|
1632
|
-
/* @__PURE__ */ (0,
|
|
1681
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "grid grid-cols-1 gap-5 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1633
1682
|
EventListItemSkeletonView,
|
|
1634
1683
|
{
|
|
1635
1684
|
isStandalone: false,
|
|
@@ -1650,13 +1699,13 @@ var import_hooks6 = require("@agg-market/hooks");
|
|
|
1650
1699
|
var detailsBaseCardClassName = "w-full overflow-hidden gap-6 p-5 md:gap-8 md:p-10";
|
|
1651
1700
|
|
|
1652
1701
|
// src/primitives/skeleton/views/event-list-item-details-skeleton-view.tsx
|
|
1653
|
-
var
|
|
1702
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1654
1703
|
var EventListItemDetailsSkeletonView = ({
|
|
1655
1704
|
className,
|
|
1656
1705
|
ariaLabel
|
|
1657
1706
|
}) => {
|
|
1658
1707
|
const labels = (0, import_hooks6.useLabels)();
|
|
1659
|
-
return /* @__PURE__ */ (0,
|
|
1708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
1660
1709
|
Card,
|
|
1661
1710
|
{
|
|
1662
1711
|
className: cn("group/agg-skeleton", detailsBaseCardClassName, className),
|
|
@@ -1664,24 +1713,24 @@ var EventListItemDetailsSkeletonView = ({
|
|
|
1664
1713
|
"aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.loading,
|
|
1665
1714
|
"aria-busy": true,
|
|
1666
1715
|
children: [
|
|
1667
|
-
/* @__PURE__ */ (0,
|
|
1668
|
-
/* @__PURE__ */ (0,
|
|
1669
|
-
/* @__PURE__ */ (0,
|
|
1716
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
|
|
1717
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
|
|
1718
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
|
|
1670
1719
|
] }),
|
|
1671
|
-
/* @__PURE__ */ (0,
|
|
1672
|
-
/* @__PURE__ */ (0,
|
|
1673
|
-
/* @__PURE__ */ (0,
|
|
1674
|
-
/* @__PURE__ */ (0,
|
|
1675
|
-
/* @__PURE__ */ (0,
|
|
1676
|
-
/* @__PURE__ */ (0,
|
|
1720
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-4 md:gap-6", children: [
|
|
1721
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
|
|
1722
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex max-w-full gap-2 overflow-hidden", children: [
|
|
1723
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
|
|
1724
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
|
|
1725
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
|
|
1677
1726
|
] }),
|
|
1678
|
-
/* @__PURE__ */ (0,
|
|
1727
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-full max-w-[221px] rounded-agg-full md:w-[221px]" })
|
|
1679
1728
|
] }),
|
|
1680
|
-
/* @__PURE__ */ (0,
|
|
1681
|
-
/* @__PURE__ */ (0,
|
|
1682
|
-
/* @__PURE__ */ (0,
|
|
1683
|
-
/* @__PURE__ */ (0,
|
|
1684
|
-
/* @__PURE__ */ (0,
|
|
1729
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
|
|
1730
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-[220px] w-full rounded-agg-xl md:h-[240px]" }),
|
|
1731
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
1732
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-[59px] rounded-agg-sm" }),
|
|
1733
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
|
|
1685
1734
|
] })
|
|
1686
1735
|
] })
|
|
1687
1736
|
] })
|
|
@@ -1698,7 +1747,7 @@ var import_hooks7 = require("@agg-market/hooks");
|
|
|
1698
1747
|
var marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg border border-agg-separator bg-agg-secondary text-agg-foreground shadow-none hover:shadow-none";
|
|
1699
1748
|
|
|
1700
1749
|
// src/primitives/skeleton/views/market-details-skeleton-view.tsx
|
|
1701
|
-
var
|
|
1750
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1702
1751
|
var orderBookAskBarWidths = [
|
|
1703
1752
|
"w-[52px] md:w-[240px]",
|
|
1704
1753
|
"w-[48px] md:w-[200px]",
|
|
@@ -1712,30 +1761,30 @@ var orderBookBidBarWidths = [
|
|
|
1712
1761
|
"w-[52px] md:w-[240px]"
|
|
1713
1762
|
];
|
|
1714
1763
|
var MarketDetailsHeaderSkeleton = () => {
|
|
1715
|
-
return /* @__PURE__ */ (0,
|
|
1716
|
-
/* @__PURE__ */ (0,
|
|
1717
|
-
/* @__PURE__ */ (0,
|
|
1718
|
-
/* @__PURE__ */ (0,
|
|
1719
|
-
/* @__PURE__ */ (0,
|
|
1720
|
-
/* @__PURE__ */ (0,
|
|
1764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-3 px-4 py-3 md:px-5", children: [
|
|
1765
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:min-w-52 md:gap-4", children: [
|
|
1766
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
|
|
1767
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
|
|
1768
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-[132px] rounded-agg-sm" }),
|
|
1769
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-[141px] rounded-agg-sm" })
|
|
1721
1770
|
] })
|
|
1722
1771
|
] }),
|
|
1723
|
-
/* @__PURE__ */ (0,
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1725
|
-
/* @__PURE__ */ (0,
|
|
1726
|
-
/* @__PURE__ */ (0,
|
|
1772
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-[60px] rounded-agg-md" }),
|
|
1773
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full gap-2 md:w-auto", children: [
|
|
1774
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[135px]" }),
|
|
1775
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[131px]" })
|
|
1727
1776
|
] })
|
|
1728
1777
|
] });
|
|
1729
1778
|
};
|
|
1730
1779
|
var MarketDetailsTabsSkeleton = () => {
|
|
1731
|
-
return /* @__PURE__ */ (0,
|
|
1732
|
-
/* @__PURE__ */ (0,
|
|
1733
|
-
/* @__PURE__ */ (0,
|
|
1734
|
-
/* @__PURE__ */ (0,
|
|
1780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-14 items-end px-4 md:px-5", children: [
|
|
1781
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col items-end justify-end rounded-t-agg-lg", children: [
|
|
1782
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }) }),
|
|
1783
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
|
|
1735
1784
|
] }),
|
|
1736
|
-
/* @__PURE__ */ (0,
|
|
1737
|
-
/* @__PURE__ */ (0,
|
|
1738
|
-
/* @__PURE__ */ (0,
|
|
1785
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col justify-center", children: [
|
|
1786
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-12 rounded-agg-sm" }) }),
|
|
1787
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-[3px] w-full" })
|
|
1739
1788
|
] })
|
|
1740
1789
|
] });
|
|
1741
1790
|
};
|
|
@@ -1743,30 +1792,30 @@ var MarketDetailsOrderBookRows = ({
|
|
|
1743
1792
|
side,
|
|
1744
1793
|
barWidths
|
|
1745
1794
|
}) => {
|
|
1746
|
-
return /* @__PURE__ */ (0,
|
|
1747
|
-
/* @__PURE__ */ (0,
|
|
1748
|
-
/* @__PURE__ */ (0,
|
|
1749
|
-
/* @__PURE__ */ (0,
|
|
1750
|
-
/* @__PURE__ */ (0,
|
|
1795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex flex-col gap-2", children: barWidths.map((barWidthClassName, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1796
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2 md:grid-cols-[88px_1fr_1fr_minmax(120px,220px)] md:gap-6", children: [
|
|
1797
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-1 md:gap-3", children: [
|
|
1798
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
|
|
1799
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
|
|
1751
1800
|
] }),
|
|
1752
|
-
/* @__PURE__ */ (0,
|
|
1753
|
-
/* @__PURE__ */ (0,
|
|
1754
|
-
/* @__PURE__ */ (0,
|
|
1801
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
|
|
1802
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
|
|
1803
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: cn("h-2 rounded-agg-full", barWidthClassName) }) })
|
|
1755
1804
|
] }),
|
|
1756
|
-
index < barWidths.length - 1 ? /* @__PURE__ */ (0,
|
|
1805
|
+
index < barWidths.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }) : null
|
|
1757
1806
|
] }, `${side}-row-${index}`)) });
|
|
1758
1807
|
};
|
|
1759
1808
|
var MarketDetailsOderbookSkeleton = ({
|
|
1760
1809
|
className
|
|
1761
1810
|
}) => {
|
|
1762
|
-
return /* @__PURE__ */ (0,
|
|
1763
|
-
/* @__PURE__ */ (0,
|
|
1764
|
-
/* @__PURE__ */ (0,
|
|
1765
|
-
/* @__PURE__ */ (0,
|
|
1811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-col gap-5", className), children: [
|
|
1812
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1813
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
|
|
1814
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOrderBookRows, { side: "ask", barWidths: orderBookAskBarWidths })
|
|
1766
1815
|
] }),
|
|
1767
|
-
/* @__PURE__ */ (0,
|
|
1768
|
-
/* @__PURE__ */ (0,
|
|
1769
|
-
/* @__PURE__ */ (0,
|
|
1816
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1817
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
|
|
1818
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOrderBookRows, { side: "bid", barWidths: orderBookBidBarWidths })
|
|
1770
1819
|
] })
|
|
1771
1820
|
] });
|
|
1772
1821
|
};
|
|
@@ -1776,7 +1825,7 @@ var MarketDetailsSkeletonView = ({
|
|
|
1776
1825
|
isDetailed
|
|
1777
1826
|
}) => {
|
|
1778
1827
|
const labels = (0, import_hooks7.useLabels)();
|
|
1779
|
-
return /* @__PURE__ */ (0,
|
|
1828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
1780
1829
|
Card,
|
|
1781
1830
|
{
|
|
1782
1831
|
className: cn("group/agg-skeleton", marketDetailsBaseCardClassName, className),
|
|
@@ -1784,12 +1833,12 @@ var MarketDetailsSkeletonView = ({
|
|
|
1784
1833
|
"aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.loading,
|
|
1785
1834
|
"aria-busy": true,
|
|
1786
1835
|
children: [
|
|
1787
|
-
/* @__PURE__ */ (0,
|
|
1788
|
-
isDetailed ? /* @__PURE__ */ (0,
|
|
1789
|
-
/* @__PURE__ */ (0,
|
|
1790
|
-
/* @__PURE__ */ (0,
|
|
1791
|
-
/* @__PURE__ */ (0,
|
|
1792
|
-
/* @__PURE__ */ (0,
|
|
1836
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsHeaderSkeleton, {}),
|
|
1837
|
+
isDetailed ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
1838
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
1839
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsTabsSkeleton, {}),
|
|
1840
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
1841
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOderbookSkeleton, { className: "p-5" })
|
|
1793
1842
|
] }) : null
|
|
1794
1843
|
]
|
|
1795
1844
|
}
|
|
@@ -1798,62 +1847,62 @@ var MarketDetailsSkeletonView = ({
|
|
|
1798
1847
|
MarketDetailsSkeletonView.displayName = "MarketDetailsSkeletonView";
|
|
1799
1848
|
|
|
1800
1849
|
// src/primitives/skeleton/views/place-order-skeleton-view.tsx
|
|
1801
|
-
var
|
|
1850
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1802
1851
|
var placeOrderCardClassName = "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
|
|
1803
1852
|
var TabsSkeletonBar = () => {
|
|
1804
|
-
return /* @__PURE__ */ (0,
|
|
1805
|
-
/* @__PURE__ */ (0,
|
|
1806
|
-
/* @__PURE__ */ (0,
|
|
1807
|
-
/* @__PURE__ */ (0,
|
|
1853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full items-end border-b border-agg-border", children: [
|
|
1854
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col rounded-t-agg-lg", children: [
|
|
1855
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "px-5 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-10 rounded-agg-sm" }) }),
|
|
1856
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
|
|
1808
1857
|
] }),
|
|
1809
|
-
/* @__PURE__ */ (0,
|
|
1810
|
-
/* @__PURE__ */ (0,
|
|
1811
|
-
/* @__PURE__ */ (0,
|
|
1858
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col", children: [
|
|
1859
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "px-5 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-10 rounded-agg-sm" }) }),
|
|
1860
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-[3px] w-full" })
|
|
1812
1861
|
] })
|
|
1813
1862
|
] });
|
|
1814
1863
|
};
|
|
1815
1864
|
var ContentBody = () => {
|
|
1816
|
-
return /* @__PURE__ */ (0,
|
|
1817
|
-
/* @__PURE__ */ (0,
|
|
1818
|
-
/* @__PURE__ */ (0,
|
|
1819
|
-
/* @__PURE__ */ (0,
|
|
1820
|
-
/* @__PURE__ */ (0,
|
|
1821
|
-
/* @__PURE__ */ (0,
|
|
1822
|
-
/* @__PURE__ */ (0,
|
|
1865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cn("flex flex-col gap-6 p-5"), children: [
|
|
1866
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
1868
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-12 shrink-0 rounded-agg-lg" }),
|
|
1869
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
1870
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[92%] max-w-[240px] rounded-agg-sm" }),
|
|
1871
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[64%] max-w-[160px] rounded-agg-sm" })
|
|
1823
1872
|
] })
|
|
1824
1873
|
] }),
|
|
1825
|
-
/* @__PURE__ */ (0,
|
|
1826
|
-
/* @__PURE__ */ (0,
|
|
1874
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-[92px] rounded-agg-sm" }),
|
|
1875
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TabsSkeletonBar, {})
|
|
1827
1876
|
] }),
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1830
|
-
/* @__PURE__ */ (0,
|
|
1831
|
-
/* @__PURE__ */ (0,
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
1878
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full gap-2", children: [
|
|
1879
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" }),
|
|
1880
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" })
|
|
1832
1881
|
] }),
|
|
1833
|
-
/* @__PURE__ */ (0,
|
|
1834
|
-
/* @__PURE__ */ (0,
|
|
1835
|
-
/* @__PURE__ */ (0,
|
|
1836
|
-
/* @__PURE__ */ (0,
|
|
1882
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
1883
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1884
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[63px] rounded-agg-sm" }),
|
|
1885
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[118px] rounded-agg-sm" })
|
|
1837
1886
|
] }),
|
|
1838
|
-
/* @__PURE__ */ (0,
|
|
1887
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: cn("text-agg-3xl font-agg-bold leading-agg-9 text-agg-separator"), children: "$0" })
|
|
1839
1888
|
] })
|
|
1840
1889
|
] }),
|
|
1841
|
-
/* @__PURE__ */ (0,
|
|
1842
|
-
/* @__PURE__ */ (0,
|
|
1890
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }),
|
|
1891
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[240px] self-center rounded-agg-sm" })
|
|
1843
1892
|
] });
|
|
1844
1893
|
};
|
|
1845
1894
|
var PlaceOrderSkeletonView = ({
|
|
1846
1895
|
className,
|
|
1847
1896
|
ariaLabel
|
|
1848
1897
|
}) => {
|
|
1849
|
-
return /* @__PURE__ */ (0,
|
|
1898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
1850
1899
|
"div",
|
|
1851
1900
|
{
|
|
1852
1901
|
className: cn("group/agg-skeleton", "w-full", className),
|
|
1853
1902
|
role: "status",
|
|
1854
1903
|
"aria-label": ariaLabel != null ? ariaLabel : "Loading place order",
|
|
1855
1904
|
"aria-busy": true,
|
|
1856
|
-
children: /* @__PURE__ */ (0,
|
|
1905
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Card, { className: cn(placeOrderCardClassName, "w-full"), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ContentBody, {}) }) })
|
|
1857
1906
|
}
|
|
1858
1907
|
);
|
|
1859
1908
|
};
|
|
@@ -1861,13 +1910,13 @@ PlaceOrderSkeletonView.displayName = "PlaceOrderSkeletonView";
|
|
|
1861
1910
|
|
|
1862
1911
|
// src/primitives/skeleton/views/settlement-skeleton-view.tsx
|
|
1863
1912
|
var import_hooks8 = require("@agg-market/hooks");
|
|
1864
|
-
var
|
|
1913
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1865
1914
|
var SettlementSkeletonView = ({
|
|
1866
1915
|
className,
|
|
1867
1916
|
ariaLabel
|
|
1868
1917
|
}) => {
|
|
1869
1918
|
const labels = (0, import_hooks8.useLabels)();
|
|
1870
|
-
return /* @__PURE__ */ (0,
|
|
1919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
1871
1920
|
Card,
|
|
1872
1921
|
{
|
|
1873
1922
|
className: cn(
|
|
@@ -1879,26 +1928,26 @@ var SettlementSkeletonView = ({
|
|
|
1879
1928
|
"aria-label": ariaLabel != null ? ariaLabel : labels.trading.settlementLoading,
|
|
1880
1929
|
"aria-busy": true,
|
|
1881
1930
|
children: [
|
|
1882
|
-
/* @__PURE__ */ (0,
|
|
1883
|
-
/* @__PURE__ */ (0,
|
|
1884
|
-
/* @__PURE__ */ (0,
|
|
1931
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full items-center justify-between gap-4", children: [
|
|
1932
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[81px] rounded-agg-sm" }),
|
|
1933
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-[240px] rounded-agg-sm" })
|
|
1885
1934
|
] }),
|
|
1886
|
-
/* @__PURE__ */ (0,
|
|
1887
|
-
/* @__PURE__ */ (0,
|
|
1888
|
-
/* @__PURE__ */ (0,
|
|
1889
|
-
/* @__PURE__ */ (0,
|
|
1890
|
-
/* @__PURE__ */ (0,
|
|
1935
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
|
|
1936
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[200px] rounded-agg-sm" }),
|
|
1937
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1938
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[320px] rounded-agg-sm" }),
|
|
1939
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[280px] rounded-agg-sm" })
|
|
1891
1940
|
] })
|
|
1892
1941
|
] }),
|
|
1893
|
-
/* @__PURE__ */ (0,
|
|
1894
|
-
/* @__PURE__ */ (0,
|
|
1895
|
-
/* @__PURE__ */ (0,
|
|
1896
|
-
/* @__PURE__ */ (0,
|
|
1897
|
-
/* @__PURE__ */ (0,
|
|
1942
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
1943
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
|
|
1944
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1945
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
|
|
1946
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" })
|
|
1898
1947
|
] }),
|
|
1899
|
-
/* @__PURE__ */ (0,
|
|
1900
|
-
/* @__PURE__ */ (0,
|
|
1901
|
-
/* @__PURE__ */ (0,
|
|
1948
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1949
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
|
|
1950
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
|
|
1902
1951
|
] })
|
|
1903
1952
|
] })
|
|
1904
1953
|
]
|
|
@@ -1919,989 +1968,1426 @@ var skeletonViews = {
|
|
|
1919
1968
|
};
|
|
1920
1969
|
|
|
1921
1970
|
// src/primitives/skeleton/index.tsx
|
|
1922
|
-
var
|
|
1971
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1923
1972
|
var Skeleton = ({ view, className, ariaLabel }) => {
|
|
1924
1973
|
if (view === skeletonViews.eventListItem) {
|
|
1925
|
-
return /* @__PURE__ */ (0,
|
|
1974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EventListItemSkeletonView, { className, ariaLabel, isStandalone: true });
|
|
1926
1975
|
}
|
|
1927
1976
|
if (view === skeletonViews.eventListItemDetails) {
|
|
1928
|
-
return /* @__PURE__ */ (0,
|
|
1977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EventListItemDetailsSkeletonView, { className, ariaLabel });
|
|
1929
1978
|
}
|
|
1930
1979
|
if (view === skeletonViews.marketDetailsMinified) {
|
|
1931
|
-
return /* @__PURE__ */ (0,
|
|
1980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(MarketDetailsSkeletonView, { className, ariaLabel, isDetailed: false });
|
|
1932
1981
|
}
|
|
1933
1982
|
if (view === skeletonViews.marketDetailsDetailed) {
|
|
1934
|
-
return /* @__PURE__ */ (0,
|
|
1983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(MarketDetailsSkeletonView, { className, ariaLabel, isDetailed: true });
|
|
1935
1984
|
}
|
|
1936
1985
|
if (view === skeletonViews.settlement) {
|
|
1937
|
-
return /* @__PURE__ */ (0,
|
|
1986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SettlementSkeletonView, { className, ariaLabel });
|
|
1938
1987
|
}
|
|
1939
1988
|
if (view === skeletonViews.placeOrder) {
|
|
1940
|
-
return /* @__PURE__ */ (0,
|
|
1989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(PlaceOrderSkeletonView, { className, ariaLabel });
|
|
1941
1990
|
}
|
|
1942
|
-
return /* @__PURE__ */ (0,
|
|
1991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EventListSkeletonView, { className, ariaLabel });
|
|
1943
1992
|
};
|
|
1944
1993
|
Skeleton.displayName = "Skeleton";
|
|
1945
1994
|
|
|
1946
|
-
// src/primitives/
|
|
1947
|
-
var import_react2 = require("react");
|
|
1948
|
-
var import_hooks10 = require("@agg-market/hooks");
|
|
1949
|
-
|
|
1950
|
-
// src/primitives/select/index.tsx
|
|
1951
|
-
var import_react = require("react");
|
|
1995
|
+
// src/primitives/venue-logo/index.tsx
|
|
1952
1996
|
var import_hooks9 = require("@agg-market/hooks");
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
disabled = false
|
|
1997
|
+
|
|
1998
|
+
// src/primitives/venue-logo/logo-props.ts
|
|
1999
|
+
var DEFAULT_MONOCHROME_COLOR = "currentColor";
|
|
2000
|
+
var resolveLogoPrimaryColor = ({
|
|
2001
|
+
brandColor,
|
|
2002
|
+
isColor = true,
|
|
2003
|
+
color
|
|
1961
2004
|
}) => {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
"select",
|
|
1997
|
-
{
|
|
1998
|
-
"aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
|
|
1999
|
-
className: cn(
|
|
2000
|
-
"w-full appearance-none rounded-agg-md border border-agg-separator bg-agg-secondary px-4 py-2 pr-10 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground outline-none",
|
|
2001
|
-
getMotionClassName(
|
|
2002
|
-
enableAnimations,
|
|
2003
|
-
"transition-[border-color,box-shadow] duration-200 ease-in-out"
|
|
2004
|
-
),
|
|
2005
|
-
"focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
|
|
2006
|
-
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
2007
|
-
),
|
|
2008
|
-
disabled: isDisabled,
|
|
2009
|
-
value,
|
|
2010
|
-
onChange: (event) => onChange(event.target.value),
|
|
2011
|
-
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("option", { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
2012
|
-
}
|
|
2013
|
-
),
|
|
2014
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) })
|
|
2015
|
-
] });
|
|
2016
|
-
}
|
|
2017
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2018
|
-
"div",
|
|
2019
|
-
{
|
|
2020
|
-
ref: containerRef,
|
|
2021
|
-
className: cn("group/agg-select", "relative inline-flex w-full", className),
|
|
2005
|
+
if (typeof color === "string" && color.trim())
|
|
2006
|
+
return color;
|
|
2007
|
+
if (!isColor)
|
|
2008
|
+
return DEFAULT_MONOCHROME_COLOR;
|
|
2009
|
+
return brandColor;
|
|
2010
|
+
};
|
|
2011
|
+
|
|
2012
|
+
// src/primitives/venue-logo/svg/logo-kalshi.tsx
|
|
2013
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2014
|
+
var KALSHI_GREEN = "#18C590";
|
|
2015
|
+
var LogoKalshiIcon = (_a) => {
|
|
2016
|
+
var _b = _a, {
|
|
2017
|
+
title,
|
|
2018
|
+
className,
|
|
2019
|
+
isColor = true,
|
|
2020
|
+
color
|
|
2021
|
+
} = _b, props = __objRest(_b, [
|
|
2022
|
+
"title",
|
|
2023
|
+
"className",
|
|
2024
|
+
"isColor",
|
|
2025
|
+
"color"
|
|
2026
|
+
]);
|
|
2027
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
2028
|
+
brandColor: KALSHI_GREEN,
|
|
2029
|
+
isColor,
|
|
2030
|
+
color
|
|
2031
|
+
});
|
|
2032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2033
|
+
"svg",
|
|
2034
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
2035
|
+
viewBox: "0 0 100 100",
|
|
2036
|
+
className,
|
|
2037
|
+
fill: "none"
|
|
2038
|
+
}, getIconA11yProps(title)), props), {
|
|
2022
2039
|
children: [
|
|
2023
|
-
/* @__PURE__ */ (0,
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
type: "button",
|
|
2027
|
-
"aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
|
|
2028
|
-
"aria-expanded": isOpen,
|
|
2029
|
-
"aria-haspopup": "listbox",
|
|
2030
|
-
disabled: isDisabled,
|
|
2031
|
-
className: cn(
|
|
2032
|
-
"w-full rounded-agg-md border border-agg-separator bg-agg-secondary px-4 py-2 pr-10 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground outline-none",
|
|
2033
|
-
"flex items-center gap-2 text-left",
|
|
2034
|
-
getMotionClassName(
|
|
2035
|
-
enableAnimations,
|
|
2036
|
-
"transition-[border-color,box-shadow] duration-200 ease-in-out"
|
|
2037
|
-
),
|
|
2038
|
-
"focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
|
|
2039
|
-
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
2040
|
-
),
|
|
2041
|
-
onClick: () => setIsOpen((prev) => !prev),
|
|
2042
|
-
children: [
|
|
2043
|
-
(selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2044
|
-
"img",
|
|
2045
|
-
{
|
|
2046
|
-
src: selectedItem.iconUrl,
|
|
2047
|
-
alt: "",
|
|
2048
|
-
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
2049
|
-
}
|
|
2050
|
-
) : null,
|
|
2051
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
|
|
2052
|
-
]
|
|
2053
|
-
}
|
|
2054
|
-
),
|
|
2055
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) }),
|
|
2056
|
-
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2057
|
-
"div",
|
|
2040
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("title", { children: title }) : null,
|
|
2041
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2042
|
+
"path",
|
|
2058
2043
|
{
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
className: "absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
|
|
2062
|
-
children: items.map((item) => {
|
|
2063
|
-
const isSelected = item.value === value;
|
|
2064
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2065
|
-
"button",
|
|
2066
|
-
{
|
|
2067
|
-
type: "button",
|
|
2068
|
-
role: "option",
|
|
2069
|
-
"aria-selected": isSelected,
|
|
2070
|
-
disabled: item.disabled,
|
|
2071
|
-
className: cn(
|
|
2072
|
-
"flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
|
|
2073
|
-
"hover:bg-agg-secondary-hover focus-visible:bg-agg-secondary-hover",
|
|
2074
|
-
isSelected ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground",
|
|
2075
|
-
item.disabled && "cursor-not-allowed opacity-60"
|
|
2076
|
-
),
|
|
2077
|
-
onClick: () => {
|
|
2078
|
-
if (!item.disabled) {
|
|
2079
|
-
onChange(item.value);
|
|
2080
|
-
close();
|
|
2081
|
-
}
|
|
2082
|
-
},
|
|
2083
|
-
children: [
|
|
2084
|
-
item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2085
|
-
"img",
|
|
2086
|
-
{
|
|
2087
|
-
src: item.iconUrl,
|
|
2088
|
-
alt: "",
|
|
2089
|
-
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
2090
|
-
}
|
|
2091
|
-
) : null,
|
|
2092
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "truncate", children: item.label })
|
|
2093
|
-
]
|
|
2094
|
-
},
|
|
2095
|
-
item.value
|
|
2096
|
-
);
|
|
2097
|
-
})
|
|
2044
|
+
d: "M54.9798 47.579L79.4249 85.9995H58.2273L38.2531 52.9344V85.9995H20.4189V13.9995H38.2531V45.4356L59.6547 13.9995H78.7119L54.9798 47.579Z",
|
|
2045
|
+
fill: primaryColor
|
|
2098
2046
|
}
|
|
2099
|
-
)
|
|
2047
|
+
)
|
|
2100
2048
|
]
|
|
2101
|
-
}
|
|
2049
|
+
})
|
|
2102
2050
|
);
|
|
2103
2051
|
};
|
|
2104
|
-
|
|
2052
|
+
LogoKalshiIcon.displayName = "LogoKalshiIcon";
|
|
2105
2053
|
|
|
2106
|
-
// src/primitives/
|
|
2107
|
-
var
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2054
|
+
// src/primitives/venue-logo/svg/logo-opinion.tsx
|
|
2055
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2056
|
+
var OPINION_BLACK = "#000000";
|
|
2057
|
+
var LogoOpinionIcon = (_a) => {
|
|
2058
|
+
var _b = _a, {
|
|
2059
|
+
title,
|
|
2060
|
+
className,
|
|
2061
|
+
isColor = true,
|
|
2062
|
+
color
|
|
2063
|
+
} = _b, props = __objRest(_b, [
|
|
2064
|
+
"title",
|
|
2065
|
+
"className",
|
|
2066
|
+
"isColor",
|
|
2067
|
+
"color"
|
|
2068
|
+
]);
|
|
2069
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
2070
|
+
brandColor: OPINION_BLACK,
|
|
2071
|
+
isColor,
|
|
2072
|
+
color
|
|
2073
|
+
});
|
|
2074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2075
|
+
"svg",
|
|
2076
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
2077
|
+
viewBox: "0 0 100 100",
|
|
2078
|
+
className,
|
|
2079
|
+
fill: "none"
|
|
2080
|
+
}, getIconA11yProps(title)), props), {
|
|
2081
|
+
children: [
|
|
2082
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("title", { children: title }) : null,
|
|
2083
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2084
|
+
"path",
|
|
2085
|
+
{
|
|
2086
|
+
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",
|
|
2087
|
+
fill: primaryColor
|
|
2088
|
+
}
|
|
2089
|
+
)
|
|
2090
|
+
]
|
|
2091
|
+
})
|
|
2092
|
+
);
|
|
2128
2093
|
};
|
|
2094
|
+
LogoOpinionIcon.displayName = "LogoOpinionIcon";
|
|
2129
2095
|
|
|
2130
|
-
// src/primitives/
|
|
2096
|
+
// src/primitives/venue-logo/svg/logo-polymarket.tsx
|
|
2131
2097
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2132
|
-
var
|
|
2133
|
-
var
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
"
|
|
2143
|
-
"
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2098
|
+
var POLYMARKET_BLUE = "#2E5CFF";
|
|
2099
|
+
var LogoPolymarketIcon = (_a) => {
|
|
2100
|
+
var _b = _a, {
|
|
2101
|
+
title,
|
|
2102
|
+
className,
|
|
2103
|
+
isColor = true,
|
|
2104
|
+
color
|
|
2105
|
+
} = _b, props = __objRest(_b, [
|
|
2106
|
+
"title",
|
|
2107
|
+
"className",
|
|
2108
|
+
"isColor",
|
|
2109
|
+
"color"
|
|
2110
|
+
]);
|
|
2111
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
2112
|
+
brandColor: POLYMARKET_BLUE,
|
|
2113
|
+
isColor,
|
|
2114
|
+
color
|
|
2115
|
+
});
|
|
2116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
2117
|
+
"svg",
|
|
2118
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
2119
|
+
viewBox: "0 0 100 100",
|
|
2120
|
+
className,
|
|
2121
|
+
fill: "none"
|
|
2122
|
+
}, getIconA11yProps(title)), props), {
|
|
2123
|
+
children: [
|
|
2124
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("title", { children: title }) : null,
|
|
2125
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2126
|
+
"path",
|
|
2127
|
+
{
|
|
2128
|
+
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",
|
|
2129
|
+
fill: primaryColor
|
|
2130
|
+
}
|
|
2131
|
+
)
|
|
2132
|
+
]
|
|
2133
|
+
})
|
|
2158
2134
|
);
|
|
2159
2135
|
};
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2136
|
+
LogoPolymarketIcon.displayName = "LogoPolymarketIcon";
|
|
2137
|
+
|
|
2138
|
+
// src/primitives/venue-logo/svg/logo-probable.tsx
|
|
2139
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2140
|
+
var PROBABLE_ORANGE = "#F05923";
|
|
2141
|
+
var LogoProbableIcon = (_a) => {
|
|
2142
|
+
var _b = _a, {
|
|
2143
|
+
title,
|
|
2144
|
+
className,
|
|
2145
|
+
isColor = true,
|
|
2146
|
+
color
|
|
2147
|
+
} = _b, props = __objRest(_b, [
|
|
2148
|
+
"title",
|
|
2149
|
+
"className",
|
|
2150
|
+
"isColor",
|
|
2151
|
+
"color"
|
|
2152
|
+
]);
|
|
2153
|
+
const primaryColor = resolveLogoPrimaryColor({
|
|
2154
|
+
brandColor: PROBABLE_ORANGE,
|
|
2155
|
+
isColor,
|
|
2156
|
+
color
|
|
2157
|
+
});
|
|
2158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
2159
|
+
"svg",
|
|
2160
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
2161
|
+
viewBox: "0 0 100 100",
|
|
2162
|
+
className,
|
|
2163
|
+
fill: "none"
|
|
2164
|
+
}, getIconA11yProps(title)), props), {
|
|
2165
|
+
children: [
|
|
2166
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("title", { children: title }) : null,
|
|
2167
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2168
|
+
"path",
|
|
2169
|
+
{
|
|
2170
|
+
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",
|
|
2171
|
+
fill: primaryColor
|
|
2172
|
+
}
|
|
2173
|
+
),
|
|
2174
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M90.9329 15.4546V30.4546H8.90234V15.4546H90.9329Z", fill: primaryColor }),
|
|
2175
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2176
|
+
"path",
|
|
2177
|
+
{
|
|
2178
|
+
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",
|
|
2179
|
+
fill: primaryColor
|
|
2180
|
+
}
|
|
2181
|
+
)
|
|
2182
|
+
]
|
|
2183
|
+
})
|
|
2184
|
+
);
|
|
2185
|
+
};
|
|
2186
|
+
LogoProbableIcon.displayName = "LogoProbableIcon";
|
|
2187
|
+
|
|
2188
|
+
// src/primitives/venue-logo/venue-logo.constants.ts
|
|
2189
|
+
var venueLogoRegistry = {
|
|
2190
|
+
kalshi: LogoKalshiIcon,
|
|
2191
|
+
polymarket: LogoPolymarketIcon,
|
|
2192
|
+
opinion: LogoOpinionIcon,
|
|
2193
|
+
probable: LogoProbableIcon
|
|
2194
|
+
};
|
|
2195
|
+
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
2196
|
+
var venueLogoUrlRegistry = {
|
|
2197
|
+
kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
2198
|
+
polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
2199
|
+
opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
2200
|
+
probable: `${VENUE_LOGO_BASE_URL}/probable.png`
|
|
2201
|
+
};
|
|
2202
|
+
var venueLogoNames = Object.keys(venueLogoRegistry);
|
|
2203
|
+
var sizeClasses = {
|
|
2204
|
+
small: "h-4 w-4",
|
|
2205
|
+
medium: "h-6 w-6",
|
|
2206
|
+
large: "h-8 w-8"
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2209
|
+
// src/primitives/venue-logo/index.tsx
|
|
2210
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2211
|
+
var VenueLogo = ({
|
|
2212
|
+
venue,
|
|
2213
|
+
variant = "icon",
|
|
2214
|
+
isColor = true,
|
|
2215
|
+
isMonochromatic = false,
|
|
2216
|
+
color,
|
|
2217
|
+
size = "medium",
|
|
2168
2218
|
className,
|
|
2169
|
-
|
|
2219
|
+
ariaLabel,
|
|
2220
|
+
title
|
|
2221
|
+
}) => {
|
|
2222
|
+
const labels = (0, import_hooks9.useLabels)();
|
|
2223
|
+
const sizeClass = sizeClasses[size];
|
|
2224
|
+
const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
|
|
2225
|
+
if (variant === "logo") {
|
|
2226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2227
|
+
"img",
|
|
2228
|
+
{
|
|
2229
|
+
src: venueLogoUrlRegistry[venue],
|
|
2230
|
+
alt: resolvedLabel,
|
|
2231
|
+
title,
|
|
2232
|
+
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
2233
|
+
}
|
|
2234
|
+
);
|
|
2235
|
+
}
|
|
2236
|
+
const Component = venueLogoRegistry[venue];
|
|
2237
|
+
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
2238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2239
|
+
Component,
|
|
2240
|
+
{
|
|
2241
|
+
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
2242
|
+
isColor: resolvedIsColor,
|
|
2243
|
+
color,
|
|
2244
|
+
"aria-label": resolvedLabel,
|
|
2245
|
+
title
|
|
2246
|
+
}
|
|
2247
|
+
);
|
|
2248
|
+
};
|
|
2249
|
+
VenueLogo.displayName = "VenueLogo";
|
|
2250
|
+
|
|
2251
|
+
// src/trading/settlement/index.tsx
|
|
2252
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2253
|
+
var getSettlementHeaderClassName = () => {
|
|
2254
|
+
return "flex items-center justify-between gap-4";
|
|
2255
|
+
};
|
|
2256
|
+
var Settlement = ({
|
|
2257
|
+
sectionLabel = defaultSettlementSectionLabel,
|
|
2258
|
+
question,
|
|
2259
|
+
differencesTitle = defaultSettlementDifferencesTitle,
|
|
2260
|
+
differences,
|
|
2261
|
+
venues,
|
|
2262
|
+
defaultExpandedVenue,
|
|
2263
|
+
expandedVenue,
|
|
2264
|
+
isLoading = false,
|
|
2265
|
+
onExpandedVenueChange,
|
|
2266
|
+
onShowMore,
|
|
2267
|
+
className
|
|
2170
2268
|
}) => {
|
|
2269
|
+
var _a, _b;
|
|
2171
2270
|
const labels = (0, import_hooks10.useLabels)();
|
|
2172
2271
|
const { enableAnimations } = (0, import_hooks10.useSdkUiConfig)();
|
|
2173
|
-
const
|
|
2174
|
-
const
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
const
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
const [isDraggingTabs, setIsDraggingTabs] = (0, import_react2.useState)(false);
|
|
2186
|
-
const [activeUnderlineStyle, setActiveUnderlineStyle] = (0, import_react2.useState)({
|
|
2187
|
-
transform: "translateX(0px)",
|
|
2188
|
-
width: 0,
|
|
2189
|
-
opacity: 0
|
|
2190
|
-
});
|
|
2191
|
-
const [scrollAffordanceState, setScrollAffordanceState] = (0, import_react2.useState)({
|
|
2192
|
-
showStart: false,
|
|
2193
|
-
showEnd: false
|
|
2194
|
-
});
|
|
2195
|
-
const tabListRef = (0, import_react2.useRef)(null);
|
|
2196
|
-
const isBarVariant = variant === "bar";
|
|
2197
|
-
const resolvedOverflowBehavior = (0, import_react2.useMemo)(() => {
|
|
2198
|
-
if (overflowBehavior)
|
|
2199
|
-
return overflowBehavior;
|
|
2200
|
-
if (!isBarVariant)
|
|
2201
|
-
return "scroll";
|
|
2202
|
-
return isMobileViewport ? "select" : "scroll";
|
|
2203
|
-
}, [isBarVariant, isMobileViewport, overflowBehavior]);
|
|
2204
|
-
const shouldUseOverflowScroll = resolvedOverflowBehavior === "scroll";
|
|
2205
|
-
const shouldUseOverflowSelect = resolvedOverflowBehavior === "select";
|
|
2206
|
-
(0, import_react2.useEffect)(() => {
|
|
2207
|
-
if (typeof window === "undefined")
|
|
2208
|
-
return;
|
|
2209
|
-
const mediaQueryList = window.matchMedia(mobileTabsMediaQuery);
|
|
2210
|
-
const handleMediaQueryChange = (event) => {
|
|
2211
|
-
setIsMobileViewport(event.matches);
|
|
2212
|
-
};
|
|
2213
|
-
handleMediaQueryChange(mediaQueryList);
|
|
2214
|
-
if (typeof mediaQueryList.addEventListener === "function") {
|
|
2215
|
-
mediaQueryList.addEventListener("change", handleMediaQueryChange);
|
|
2216
|
-
return () => {
|
|
2217
|
-
mediaQueryList.removeEventListener("change", handleMediaQueryChange);
|
|
2218
|
-
};
|
|
2219
|
-
}
|
|
2220
|
-
mediaQueryList.addListener(handleMediaQueryChange);
|
|
2221
|
-
return () => {
|
|
2222
|
-
mediaQueryList.removeListener(handleMediaQueryChange);
|
|
2223
|
-
};
|
|
2224
|
-
}, []);
|
|
2225
|
-
const updateScrollAffordances = (0, import_react2.useCallback)(() => {
|
|
2226
|
-
if (!shouldUseOverflowScroll) {
|
|
2227
|
-
setScrollAffordanceState({
|
|
2228
|
-
showStart: false,
|
|
2229
|
-
showEnd: false
|
|
2230
|
-
});
|
|
2272
|
+
const resolvedSectionLabel = sectionLabel === defaultSettlementSectionLabel ? labels.trading.settlementSection : sectionLabel;
|
|
2273
|
+
const resolvedDifferencesTitle = differencesTitle === defaultSettlementDifferencesTitle ? labels.trading.settlementDifferencesTitle : differencesTitle;
|
|
2274
|
+
const [internalExpandedVenue, setInternalExpandedVenue] = (0, import_react.useState)(
|
|
2275
|
+
(_b = defaultExpandedVenue != null ? defaultExpandedVenue : (_a = venues[0]) == null ? void 0 : _a.venue) != null ? _b : null
|
|
2276
|
+
);
|
|
2277
|
+
const [expandedDescriptionByVenue, setExpandedDescriptionByVenue] = (0, import_react.useState)({});
|
|
2278
|
+
const [overflowingDescriptionByVenue, setOverflowingDescriptionByVenue] = (0, import_react.useState)({});
|
|
2279
|
+
const [collapsedDescriptionByVenue, setCollapsedDescriptionByVenue] = (0, import_react.useState)({});
|
|
2280
|
+
const descriptionWrapperRefs = (0, import_react.useRef)(/* @__PURE__ */ new Map());
|
|
2281
|
+
const descriptionMeasureRefs = (0, import_react.useRef)(/* @__PURE__ */ new Map());
|
|
2282
|
+
(0, import_react.useEffect)(() => {
|
|
2283
|
+
if (expandedVenue === void 0)
|
|
2231
2284
|
return;
|
|
2285
|
+
setInternalExpandedVenue(expandedVenue);
|
|
2286
|
+
}, [expandedVenue]);
|
|
2287
|
+
const resolvedExpandedVenue = expandedVenue === void 0 ? internalExpandedVenue : expandedVenue;
|
|
2288
|
+
const handleVenueClick = (venue) => {
|
|
2289
|
+
const nextVenue = resolvedExpandedVenue === venue ? null : venue;
|
|
2290
|
+
if (expandedVenue === void 0) {
|
|
2291
|
+
setInternalExpandedVenue(nextVenue);
|
|
2232
2292
|
}
|
|
2233
|
-
|
|
2234
|
-
if (!tabListElement)
|
|
2235
|
-
return;
|
|
2236
|
-
const maxScrollLeft = tabListElement.scrollWidth - tabListElement.clientWidth;
|
|
2237
|
-
setScrollAffordanceState({
|
|
2238
|
-
showStart: tabListElement.scrollLeft > 4,
|
|
2239
|
-
showEnd: maxScrollLeft - tabListElement.scrollLeft > 4
|
|
2240
|
-
});
|
|
2241
|
-
}, [shouldUseOverflowScroll]);
|
|
2242
|
-
const renderedItems = items;
|
|
2243
|
-
const selectItems = (0, import_react2.useMemo)(() => {
|
|
2244
|
-
return items.map((item) => ({
|
|
2245
|
-
value: item.value,
|
|
2246
|
-
label: item.label,
|
|
2247
|
-
disabled: item.disabled
|
|
2248
|
-
}));
|
|
2249
|
-
}, [items]);
|
|
2250
|
-
const isSelectDisabled = !items.some((item) => !item.disabled);
|
|
2251
|
-
const handleSelect = (nextValue) => {
|
|
2252
|
-
if (nextValue === value)
|
|
2253
|
-
return;
|
|
2254
|
-
onChange(nextValue);
|
|
2255
|
-
};
|
|
2256
|
-
const handleMoveFocus = (index) => {
|
|
2257
|
-
var _a;
|
|
2258
|
-
if (index < 0)
|
|
2259
|
-
return;
|
|
2260
|
-
const nextItem = renderedItems[index];
|
|
2261
|
-
if (!nextItem)
|
|
2262
|
-
return;
|
|
2263
|
-
handleSelect(nextItem.value);
|
|
2264
|
-
(_a = buttonRefs.current[index]) == null ? void 0 : _a.focus();
|
|
2293
|
+
onExpandedVenueChange == null ? void 0 : onExpandedVenueChange(nextVenue);
|
|
2265
2294
|
};
|
|
2266
|
-
const
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
handleMoveFocus(findNextEnabledIndex(renderedItems, index, 1));
|
|
2295
|
+
const handleDescriptionWrapperRef = (0, import_react.useCallback)(
|
|
2296
|
+
(venue, element) => {
|
|
2297
|
+
if (!element) {
|
|
2298
|
+
descriptionWrapperRefs.current.delete(venue);
|
|
2271
2299
|
return;
|
|
2272
2300
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2301
|
+
descriptionWrapperRefs.current.set(venue, element);
|
|
2302
|
+
},
|
|
2303
|
+
[]
|
|
2304
|
+
);
|
|
2305
|
+
const handleDescriptionMeasureRef = (0, import_react.useCallback)(
|
|
2306
|
+
(venue, element) => {
|
|
2307
|
+
if (!element) {
|
|
2308
|
+
descriptionMeasureRefs.current.delete(venue);
|
|
2276
2309
|
return;
|
|
2277
2310
|
}
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2311
|
+
descriptionMeasureRefs.current.set(venue, element);
|
|
2312
|
+
},
|
|
2313
|
+
[]
|
|
2314
|
+
);
|
|
2315
|
+
const updateDescriptionLayout = (0, import_react.useCallback)(
|
|
2316
|
+
(venue, description, showMoreLabel) => {
|
|
2317
|
+
const descriptionWrapperElement = descriptionWrapperRefs.current.get(venue);
|
|
2318
|
+
const descriptionMeasureElement = descriptionMeasureRefs.current.get(venue);
|
|
2319
|
+
if (!descriptionWrapperElement || !descriptionMeasureElement)
|
|
2281
2320
|
return;
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
event == null ? void 0 : event.preventDefault();
|
|
2285
|
-
handleMoveFocus(findEdgeEnabledIndex(renderedItems, -1));
|
|
2321
|
+
const wrapperWidth = descriptionWrapperElement.clientWidth;
|
|
2322
|
+
if (wrapperWidth <= 0)
|
|
2286
2323
|
return;
|
|
2287
|
-
|
|
2288
|
-
|
|
2324
|
+
const computedStyles = window.getComputedStyle(descriptionWrapperElement);
|
|
2325
|
+
const parsedLineHeight = Number.parseFloat(computedStyles.lineHeight);
|
|
2326
|
+
const lineHeight = Number.isFinite(parsedLineHeight) ? parsedLineHeight : 20;
|
|
2327
|
+
const maxHeight = lineHeight * 2 + 1;
|
|
2328
|
+
descriptionMeasureElement.style.width = `${wrapperWidth}px`;
|
|
2329
|
+
const getHeight = (value) => {
|
|
2330
|
+
descriptionMeasureElement.textContent = value;
|
|
2331
|
+
return descriptionMeasureElement.scrollHeight;
|
|
2332
|
+
};
|
|
2333
|
+
const fullHeight = getHeight(description);
|
|
2334
|
+
if (fullHeight <= maxHeight) {
|
|
2335
|
+
setOverflowingDescriptionByVenue((currentState) => {
|
|
2336
|
+
if (currentState[venue] === false)
|
|
2337
|
+
return currentState;
|
|
2338
|
+
return __spreadProps(__spreadValues({}, currentState), {
|
|
2339
|
+
[venue]: false
|
|
2340
|
+
});
|
|
2341
|
+
});
|
|
2342
|
+
setCollapsedDescriptionByVenue((currentState) => {
|
|
2343
|
+
if (currentState[venue] === description)
|
|
2344
|
+
return currentState;
|
|
2345
|
+
return __spreadProps(__spreadValues({}, currentState), {
|
|
2346
|
+
[venue]: description
|
|
2347
|
+
});
|
|
2348
|
+
});
|
|
2289
2349
|
return;
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2350
|
+
}
|
|
2351
|
+
const suffix = `... ${showMoreLabel}`;
|
|
2352
|
+
let left = 0;
|
|
2353
|
+
let right = description.length;
|
|
2354
|
+
let bestLength = 0;
|
|
2355
|
+
while (left <= right) {
|
|
2356
|
+
const middle = Math.floor((left + right) / 2);
|
|
2357
|
+
const candidate = description.slice(0, middle).trimEnd();
|
|
2358
|
+
const candidateHeight = getHeight(`${candidate}${suffix}`);
|
|
2359
|
+
if (candidateHeight <= maxHeight) {
|
|
2360
|
+
bestLength = middle;
|
|
2361
|
+
left = middle + 1;
|
|
2362
|
+
continue;
|
|
2363
|
+
}
|
|
2364
|
+
right = middle - 1;
|
|
2365
|
+
}
|
|
2366
|
+
const collapsedDescription = description.slice(0, bestLength).trimEnd();
|
|
2367
|
+
setOverflowingDescriptionByVenue((currentState) => {
|
|
2368
|
+
if (currentState[venue] === true)
|
|
2369
|
+
return currentState;
|
|
2370
|
+
return __spreadProps(__spreadValues({}, currentState), {
|
|
2371
|
+
[venue]: true
|
|
2372
|
+
});
|
|
2373
|
+
});
|
|
2374
|
+
setCollapsedDescriptionByVenue((currentState) => {
|
|
2375
|
+
if (currentState[venue] === collapsedDescription)
|
|
2376
|
+
return currentState;
|
|
2377
|
+
return __spreadProps(__spreadValues({}, currentState), {
|
|
2378
|
+
[venue]: collapsedDescription
|
|
2379
|
+
});
|
|
2380
|
+
});
|
|
2381
|
+
},
|
|
2382
|
+
[]
|
|
2302
2383
|
);
|
|
2303
|
-
|
|
2304
|
-
if (
|
|
2384
|
+
(0, import_react.useEffect)(() => {
|
|
2385
|
+
if (typeof window === "undefined")
|
|
2305
2386
|
return;
|
|
2306
|
-
|
|
2307
|
-
if (tabListElement.scrollWidth <= tabListElement.clientWidth)
|
|
2387
|
+
if (!resolvedExpandedVenue)
|
|
2308
2388
|
return;
|
|
2309
|
-
if (
|
|
2389
|
+
if (expandedDescriptionByVenue[resolvedExpandedVenue])
|
|
2310
2390
|
return;
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
};
|
|
2314
|
-
const handleTabListPointerDown = (event) => {
|
|
2315
|
-
if (!shouldUseOverflowScroll)
|
|
2391
|
+
const expandedVenueItem = venues.find((venueItem) => venueItem.venue === resolvedExpandedVenue);
|
|
2392
|
+
if (!expandedVenueItem)
|
|
2316
2393
|
return;
|
|
2317
|
-
|
|
2394
|
+
const frameId = window.requestAnimationFrame(() => {
|
|
2395
|
+
var _a2;
|
|
2396
|
+
updateDescriptionLayout(
|
|
2397
|
+
resolvedExpandedVenue,
|
|
2398
|
+
expandedVenueItem.description,
|
|
2399
|
+
(_a2 = expandedVenueItem.showMoreLabel) != null ? _a2 : "Show more"
|
|
2400
|
+
);
|
|
2401
|
+
});
|
|
2402
|
+
return () => {
|
|
2403
|
+
window.cancelAnimationFrame(frameId);
|
|
2404
|
+
};
|
|
2405
|
+
}, [expandedDescriptionByVenue, resolvedExpandedVenue, updateDescriptionLayout, venues]);
|
|
2406
|
+
(0, import_react.useEffect)(() => {
|
|
2407
|
+
if (!resolvedExpandedVenue)
|
|
2318
2408
|
return;
|
|
2319
|
-
if (
|
|
2409
|
+
if (expandedDescriptionByVenue[resolvedExpandedVenue])
|
|
2320
2410
|
return;
|
|
2321
|
-
|
|
2322
|
-
if (!tabListElement)
|
|
2411
|
+
if (typeof ResizeObserver === "undefined")
|
|
2323
2412
|
return;
|
|
2324
|
-
|
|
2413
|
+
const expandedVenueItem = venues.find((venueItem) => venueItem.venue === resolvedExpandedVenue);
|
|
2414
|
+
if (!expandedVenueItem)
|
|
2325
2415
|
return;
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
isDragging: false,
|
|
2329
|
-
pointerId: event.pointerId,
|
|
2330
|
-
startClientX: event.clientX,
|
|
2331
|
-
startClientY: event.clientY,
|
|
2332
|
-
startScrollLeft: tabListElement.scrollLeft
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
|
-
const handleTabListPointerMove = (event) => {
|
|
2336
|
-
if (!shouldUseOverflowScroll)
|
|
2337
|
-
return;
|
|
2338
|
-
const dragState = dragStateRef.current;
|
|
2339
|
-
const tabListElement = tabListRef.current;
|
|
2340
|
-
if (!dragState.isPointerDown)
|
|
2341
|
-
return;
|
|
2342
|
-
if (dragState.pointerId !== event.pointerId)
|
|
2343
|
-
return;
|
|
2344
|
-
if (!tabListElement)
|
|
2345
|
-
return;
|
|
2346
|
-
const deltaX = event.clientX - dragState.startClientX;
|
|
2347
|
-
const deltaY = event.clientY - dragState.startClientY;
|
|
2348
|
-
const horizontalDistance = Math.abs(deltaX);
|
|
2349
|
-
const verticalDistance = Math.abs(deltaY);
|
|
2350
|
-
const hasExceededDragThreshold = horizontalDistance > 10 && horizontalDistance > verticalDistance;
|
|
2351
|
-
if (hasExceededDragThreshold && !dragState.isDragging) {
|
|
2352
|
-
dragState.isDragging = true;
|
|
2353
|
-
setIsDraggingTabs(true);
|
|
2354
|
-
tabListElement.setPointerCapture(event.pointerId);
|
|
2355
|
-
}
|
|
2356
|
-
if (!dragState.isDragging)
|
|
2357
|
-
return;
|
|
2358
|
-
event.preventDefault();
|
|
2359
|
-
tabListElement.scrollLeft = dragState.startScrollLeft - deltaX;
|
|
2360
|
-
};
|
|
2361
|
-
const handleEndTabListDrag = (event) => {
|
|
2362
|
-
const dragState = dragStateRef.current;
|
|
2363
|
-
const tabListElement = tabListRef.current;
|
|
2364
|
-
if (!dragState.isPointerDown)
|
|
2365
|
-
return;
|
|
2366
|
-
if (dragState.pointerId !== event.pointerId)
|
|
2367
|
-
return;
|
|
2368
|
-
if (tabListElement == null ? void 0 : tabListElement.hasPointerCapture(event.pointerId)) {
|
|
2369
|
-
tabListElement.releasePointerCapture(event.pointerId);
|
|
2370
|
-
}
|
|
2371
|
-
if (dragState.isDragging) {
|
|
2372
|
-
suppressClickRef.current = true;
|
|
2373
|
-
window.setTimeout(() => {
|
|
2374
|
-
suppressClickRef.current = false;
|
|
2375
|
-
}, 0);
|
|
2376
|
-
}
|
|
2377
|
-
dragStateRef.current = {
|
|
2378
|
-
isPointerDown: false,
|
|
2379
|
-
isDragging: false,
|
|
2380
|
-
pointerId: null,
|
|
2381
|
-
startClientX: 0,
|
|
2382
|
-
startClientY: 0,
|
|
2383
|
-
startScrollLeft: 0
|
|
2384
|
-
};
|
|
2385
|
-
setIsDraggingTabs(false);
|
|
2386
|
-
};
|
|
2387
|
-
const handleTabListClickCapture = (event) => {
|
|
2388
|
-
if (!suppressClickRef.current)
|
|
2389
|
-
return;
|
|
2390
|
-
event == null ? void 0 : event.preventDefault();
|
|
2391
|
-
event == null ? void 0 : event.stopPropagation();
|
|
2392
|
-
suppressClickRef.current = false;
|
|
2393
|
-
};
|
|
2394
|
-
const updateActiveUnderline = (0, import_react2.useCallback)(() => {
|
|
2395
|
-
if (isBarVariant) {
|
|
2396
|
-
setActiveUnderlineStyle({
|
|
2397
|
-
transform: "translateX(0px)",
|
|
2398
|
-
width: 0,
|
|
2399
|
-
opacity: 0
|
|
2400
|
-
});
|
|
2401
|
-
return;
|
|
2402
|
-
}
|
|
2403
|
-
const activeIndex = renderedItems.findIndex((item) => item.value === value);
|
|
2404
|
-
const activeButton = activeIndex >= 0 ? buttonRefs.current[activeIndex] : null;
|
|
2405
|
-
if (!activeButton || !tabListRef.current) {
|
|
2406
|
-
setActiveUnderlineStyle((currentStyle) => __spreadProps(__spreadValues({}, currentStyle), {
|
|
2407
|
-
opacity: 0
|
|
2408
|
-
}));
|
|
2409
|
-
return;
|
|
2410
|
-
}
|
|
2411
|
-
setActiveUnderlineStyle({
|
|
2412
|
-
transform: `translateX(${activeButton.offsetLeft}px)`,
|
|
2413
|
-
width: activeButton.offsetWidth,
|
|
2414
|
-
opacity: 1
|
|
2415
|
-
});
|
|
2416
|
-
}, [isBarVariant, renderedItems, value]);
|
|
2417
|
-
(0, import_react2.useLayoutEffect)(() => {
|
|
2418
|
-
updateActiveUnderline();
|
|
2419
|
-
}, [updateActiveUnderline]);
|
|
2420
|
-
(0, import_react2.useEffect)(() => {
|
|
2421
|
-
if (isBarVariant || !shouldUseOverflowScroll)
|
|
2422
|
-
return;
|
|
2423
|
-
const tabListElement = tabListRef.current;
|
|
2424
|
-
if (!tabListElement)
|
|
2425
|
-
return;
|
|
2426
|
-
const handleScroll = () => {
|
|
2427
|
-
updateActiveUnderline();
|
|
2428
|
-
updateScrollAffordances();
|
|
2429
|
-
};
|
|
2430
|
-
tabListElement.addEventListener("scroll", handleScroll, { passive: true });
|
|
2431
|
-
updateScrollAffordances();
|
|
2432
|
-
return () => {
|
|
2433
|
-
tabListElement.removeEventListener("scroll", handleScroll);
|
|
2434
|
-
};
|
|
2435
|
-
}, [isBarVariant, shouldUseOverflowScroll, updateActiveUnderline, updateScrollAffordances]);
|
|
2436
|
-
(0, import_react2.useEffect)(() => {
|
|
2437
|
-
if (!shouldUseOverflowScroll)
|
|
2438
|
-
return;
|
|
2439
|
-
updateScrollAffordances();
|
|
2440
|
-
}, [renderedItems, shouldUseOverflowScroll, updateScrollAffordances, value]);
|
|
2441
|
-
(0, import_react2.useEffect)(() => {
|
|
2442
|
-
if (isBarVariant && !shouldUseOverflowScroll)
|
|
2443
|
-
return;
|
|
2444
|
-
if (typeof ResizeObserver === "undefined")
|
|
2445
|
-
return;
|
|
2446
|
-
const tabListElement = tabListRef.current;
|
|
2447
|
-
if (!tabListElement)
|
|
2416
|
+
const descriptionWrapperElement = descriptionWrapperRefs.current.get(resolvedExpandedVenue);
|
|
2417
|
+
if (!descriptionWrapperElement)
|
|
2448
2418
|
return;
|
|
2449
2419
|
const resizeObserver = new ResizeObserver(() => {
|
|
2450
|
-
|
|
2451
|
-
|
|
2420
|
+
var _a2;
|
|
2421
|
+
updateDescriptionLayout(
|
|
2422
|
+
resolvedExpandedVenue,
|
|
2423
|
+
expandedVenueItem.description,
|
|
2424
|
+
(_a2 = expandedVenueItem.showMoreLabel) != null ? _a2 : "Show more"
|
|
2425
|
+
);
|
|
2452
2426
|
});
|
|
2453
|
-
resizeObserver.observe(
|
|
2427
|
+
resizeObserver.observe(descriptionWrapperElement);
|
|
2454
2428
|
return () => {
|
|
2455
2429
|
resizeObserver.disconnect();
|
|
2456
2430
|
};
|
|
2457
|
-
}, [
|
|
2458
|
-
(
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
return
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
if (!activeButton)
|
|
2467
|
-
return;
|
|
2468
|
-
if (tabListElement.scrollWidth - tabListElement.clientWidth <= 1)
|
|
2469
|
-
return;
|
|
2470
|
-
const currentScrollLeft = tabListElement.scrollLeft;
|
|
2471
|
-
const currentScrollRight = currentScrollLeft + tabListElement.clientWidth;
|
|
2472
|
-
const activeButtonLeft = activeButton.offsetLeft;
|
|
2473
|
-
const activeButtonRight = activeButtonLeft + activeButton.offsetWidth;
|
|
2474
|
-
let nextScrollLeft = currentScrollLeft;
|
|
2475
|
-
if (activeButtonLeft < currentScrollLeft) {
|
|
2476
|
-
nextScrollLeft = activeButtonLeft;
|
|
2477
|
-
} else if (activeButtonRight > currentScrollRight) {
|
|
2478
|
-
nextScrollLeft = activeButtonRight - tabListElement.clientWidth;
|
|
2479
|
-
}
|
|
2480
|
-
if (Math.abs(nextScrollLeft - currentScrollLeft) < 1)
|
|
2481
|
-
return;
|
|
2482
|
-
tabListElement.scrollTo({
|
|
2483
|
-
left: Math.max(0, nextScrollLeft),
|
|
2484
|
-
behavior: getScrollBehavior(enableAnimations)
|
|
2431
|
+
}, [expandedDescriptionByVenue, resolvedExpandedVenue, updateDescriptionLayout, venues]);
|
|
2432
|
+
const handleDescriptionShowMoreClick = (event, venue) => {
|
|
2433
|
+
event == null ? void 0 : event.stopPropagation();
|
|
2434
|
+
setExpandedDescriptionByVenue((currentState) => {
|
|
2435
|
+
if (currentState[venue])
|
|
2436
|
+
return currentState;
|
|
2437
|
+
return __spreadProps(__spreadValues({}, currentState), {
|
|
2438
|
+
[venue]: true
|
|
2439
|
+
});
|
|
2485
2440
|
});
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2441
|
+
onShowMore == null ? void 0 : onShowMore(venue);
|
|
2442
|
+
};
|
|
2443
|
+
if (isLoading) {
|
|
2444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2445
|
+
Skeleton,
|
|
2490
2446
|
{
|
|
2491
|
-
ariaLabel,
|
|
2492
|
-
className
|
|
2493
|
-
|
|
2494
|
-
items: selectItems,
|
|
2495
|
-
onChange: handleSelect,
|
|
2496
|
-
value
|
|
2447
|
+
ariaLabel: labels.trading.settlementLoading,
|
|
2448
|
+
className,
|
|
2449
|
+
view: skeletonViews.settlement
|
|
2497
2450
|
}
|
|
2498
|
-
)
|
|
2451
|
+
);
|
|
2499
2452
|
}
|
|
2500
|
-
return /* @__PURE__ */ (0,
|
|
2501
|
-
|
|
2453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
2454
|
+
Card,
|
|
2502
2455
|
{
|
|
2503
2456
|
className: cn(
|
|
2504
|
-
"
|
|
2505
|
-
|
|
2506
|
-
"inline-flex",
|
|
2507
|
-
className,
|
|
2508
|
-
classNames == null ? void 0 : classNames.root
|
|
2457
|
+
"flex flex-col w-full gap-5 rounded-agg-xl border border-agg-separator bg-agg-secondary p-5 shadow-none hover:shadow-none",
|
|
2458
|
+
className
|
|
2509
2459
|
),
|
|
2510
2460
|
children: [
|
|
2511
|
-
/* @__PURE__ */ (0,
|
|
2512
|
-
"
|
|
2513
|
-
{
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2461
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: getSettlementHeaderClassName(), children: [
|
|
2462
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-agg-xs font-agg-bold leading-agg-4 uppercase text-agg-muted-foreground", children: resolvedSectionLabel }),
|
|
2463
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: question })
|
|
2464
|
+
] }),
|
|
2465
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
2466
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: resolvedDifferencesTitle }),
|
|
2467
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: "list-disc pl-5 text-agg-sm leading-agg-5 text-agg-foreground", children: differences.map((difference) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { children: difference }, difference)) })
|
|
2468
|
+
] }),
|
|
2469
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
2470
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => {
|
|
2471
|
+
var _a2, _b2;
|
|
2472
|
+
const venueLabel = getTradingVenueLabel(venue.venue, venue.label);
|
|
2473
|
+
const isExpanded = resolvedExpandedVenue === venue.venue;
|
|
2474
|
+
const isDescriptionExpanded = !!expandedDescriptionByVenue[venue.venue];
|
|
2475
|
+
const isDescriptionOverflowing = !!overflowingDescriptionByVenue[venue.venue];
|
|
2476
|
+
const shouldShowDescriptionCta = isExpanded && isDescriptionOverflowing && !isDescriptionExpanded;
|
|
2477
|
+
const resolvedShowMoreLabel = (_a2 = venue.showMoreLabel) != null ? _a2 : "Show more";
|
|
2478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col", children: [
|
|
2479
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
2480
|
+
"button",
|
|
2481
|
+
{
|
|
2482
|
+
type: "button",
|
|
2483
|
+
className: cn(
|
|
2484
|
+
"flex items-center gap-2 text-left",
|
|
2485
|
+
"cursor-pointer disabled:cursor-not-allowed hover:opacity-50",
|
|
2486
|
+
getMotionClassName(
|
|
2487
|
+
enableAnimations,
|
|
2488
|
+
"transition-[opacity,color] duration-200 ease-in-out"
|
|
2489
|
+
)
|
|
2490
|
+
),
|
|
2491
|
+
"aria-expanded": isExpanded,
|
|
2492
|
+
"aria-label": labels.trading.settlementDetailsAria(venueLabel),
|
|
2493
|
+
onClick: () => handleVenueClick(venue.venue),
|
|
2494
|
+
children: [
|
|
2495
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2496
|
+
VenueLogo,
|
|
2497
|
+
{
|
|
2498
|
+
venue: venue.venue,
|
|
2499
|
+
size: "small",
|
|
2500
|
+
ariaLabel: venueLabel
|
|
2501
|
+
}
|
|
2502
|
+
),
|
|
2503
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2504
|
+
"span",
|
|
2505
|
+
{
|
|
2506
|
+
className: cn(
|
|
2507
|
+
"text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground",
|
|
2508
|
+
isExpanded ? "text-agg-primary" : "text-agg-foreground"
|
|
2509
|
+
),
|
|
2510
|
+
children: venueLabel
|
|
2511
|
+
}
|
|
2512
|
+
),
|
|
2513
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2514
|
+
Icon,
|
|
2515
|
+
{
|
|
2516
|
+
name: isExpanded ? "chevron-up" : "chevron-down",
|
|
2517
|
+
size: "small",
|
|
2518
|
+
className: "text-agg-foreground",
|
|
2519
|
+
color: "currentColor"
|
|
2520
|
+
}
|
|
2521
|
+
)
|
|
2522
|
+
]
|
|
2523
|
+
}
|
|
2524
|
+
),
|
|
2525
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2526
|
+
"div",
|
|
2527
|
+
{
|
|
2528
|
+
"aria-hidden": !isExpanded,
|
|
2529
|
+
className: cn(
|
|
2530
|
+
"grid overflow-hidden",
|
|
2531
|
+
isExpanded ? "mt-2 grid-rows-[1fr] opacity-100" : "mt-0 grid-rows-[0fr] opacity-0",
|
|
2532
|
+
!isExpanded && "pointer-events-none",
|
|
2533
|
+
getMotionClassName(
|
|
2534
|
+
enableAnimations,
|
|
2535
|
+
"transition-[grid-template-rows,opacity,margin-top] duration-300 ease-in-out"
|
|
2536
|
+
)
|
|
2537
|
+
),
|
|
2538
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
2539
|
+
"div",
|
|
2529
2540
|
{
|
|
2530
|
-
ref: (
|
|
2531
|
-
|
|
2532
|
-
},
|
|
2533
|
-
type: "button",
|
|
2534
|
-
role: "tab",
|
|
2535
|
-
tabIndex: isActive ? 0 : -1,
|
|
2536
|
-
"aria-selected": isActive,
|
|
2537
|
-
"aria-label": item.label,
|
|
2538
|
-
disabled: item.disabled,
|
|
2539
|
-
onClick: (e) => {
|
|
2540
|
-
e.preventDefault();
|
|
2541
|
-
e.stopPropagation();
|
|
2542
|
-
handleSelect(item.value);
|
|
2543
|
-
},
|
|
2544
|
-
onKeyDown: (event) => handleKeyDown(event, index),
|
|
2545
|
-
className: cn(
|
|
2546
|
-
getTabButtonClassName({
|
|
2547
|
-
enableAnimations,
|
|
2548
|
-
isBarVariant,
|
|
2549
|
-
isActive,
|
|
2550
|
-
isDisabled: !!item.disabled,
|
|
2551
|
-
size
|
|
2552
|
-
}),
|
|
2553
|
-
shouldUseOverflowScroll && !isBarVariant && "snap-start"
|
|
2554
|
-
),
|
|
2541
|
+
ref: (element) => handleDescriptionWrapperRef(venue.venue, element),
|
|
2542
|
+
className: "relative min-h-0",
|
|
2555
2543
|
children: [
|
|
2556
|
-
|
|
2557
|
-
|
|
2544
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("p", { className: "min-h-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
2545
|
+
isDescriptionExpanded || !isDescriptionOverflowing ? venue.description : (_b2 = collapsedDescriptionByVenue[venue.venue]) != null ? _b2 : venue.description,
|
|
2546
|
+
shouldShowDescriptionCta ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
2547
|
+
"... ",
|
|
2548
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2549
|
+
"button",
|
|
2550
|
+
{
|
|
2551
|
+
type: "button",
|
|
2552
|
+
tabIndex: isExpanded ? 0 : -1,
|
|
2553
|
+
className: cn(
|
|
2554
|
+
"cursor-pointer disabled:cursor-not-allowed",
|
|
2555
|
+
"text-agg-sm leading-agg-5 text-agg-foreground underline-offset-2 hover:underline hover:font-agg-bold",
|
|
2556
|
+
getMotionClassName(
|
|
2557
|
+
enableAnimations,
|
|
2558
|
+
"transition-[text-decoration] duration-200 ease-in-out"
|
|
2559
|
+
)
|
|
2560
|
+
),
|
|
2561
|
+
"aria-label": labels.trading.settlementShowMoreAria(
|
|
2562
|
+
resolvedShowMoreLabel,
|
|
2563
|
+
venueLabel
|
|
2564
|
+
),
|
|
2565
|
+
onClick: (event) => handleDescriptionShowMoreClick(event, venue.venue),
|
|
2566
|
+
children: resolvedShowMoreLabel
|
|
2567
|
+
}
|
|
2568
|
+
)
|
|
2569
|
+
] }) : null
|
|
2570
|
+
] }),
|
|
2571
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2572
|
+
"p",
|
|
2558
2573
|
{
|
|
2574
|
+
ref: (element) => handleDescriptionMeasureRef(venue.venue, element),
|
|
2559
2575
|
"aria-hidden": true,
|
|
2560
|
-
className:
|
|
2561
|
-
"pointer-events-none absolute inset-px origin-bottom rounded-[2px] bg-agg-secondary-hover",
|
|
2562
|
-
getMotionClassName(
|
|
2563
|
-
enableAnimations,
|
|
2564
|
-
"transition-[transform,opacity] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none"
|
|
2565
|
-
),
|
|
2566
|
-
isActive ? "scale-y-100 opacity-100" : "scale-y-0 opacity-0"
|
|
2567
|
-
)
|
|
2576
|
+
className: "pointer-events-none invisible fixed top-0 left-0 -z-10 whitespace-normal text-agg-sm leading-agg-5"
|
|
2568
2577
|
}
|
|
2569
|
-
)
|
|
2570
|
-
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "relative z-10 inline-flex shrink-0 items-center justify-center", children: item.icon }) : null,
|
|
2571
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "relative z-10 truncate whitespace-nowrap [&::first-letter]:uppercase", children: item.label })
|
|
2578
|
+
)
|
|
2572
2579
|
]
|
|
2573
|
-
}
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
{
|
|
2580
|
-
"aria-hidden": true,
|
|
2581
|
-
className: cn(
|
|
2582
|
-
"pointer-events-none absolute bottom-0 left-0 rounded-t-agg-sm bg-agg-primary",
|
|
2583
|
-
getMotionClassName(
|
|
2584
|
-
enableAnimations,
|
|
2585
|
-
"transition-[transform,width,opacity] duration-300 ease-in-out"
|
|
2586
|
-
),
|
|
2587
|
-
"h-[3px]"
|
|
2588
|
-
),
|
|
2589
|
-
style: activeUnderlineStyle
|
|
2590
|
-
}
|
|
2591
|
-
) : null
|
|
2592
|
-
]
|
|
2593
|
-
}
|
|
2594
|
-
),
|
|
2595
|
-
shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
|
|
2596
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2597
|
-
"span",
|
|
2598
|
-
{
|
|
2599
|
-
"aria-hidden": true,
|
|
2600
|
-
className: cn(
|
|
2601
|
-
"pointer-events-none absolute top-0 bottom-0 left-8 z-10 w-12 md:w-18 bg-linear-to-r from-agg-secondary via-agg-secondary to-transparent",
|
|
2602
|
-
getMotionClassName(enableAnimations, "transition-opacity duration-200"),
|
|
2603
|
-
scrollAffordanceState.showStart ? "opacity-100" : "opacity-0"
|
|
2604
|
-
)
|
|
2605
|
-
}
|
|
2606
|
-
),
|
|
2607
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2608
|
-
"span",
|
|
2609
|
-
{
|
|
2610
|
-
"aria-hidden": true,
|
|
2611
|
-
className: cn(
|
|
2612
|
-
"pointer-events-none absolute top-0 right-8 bottom-0 z-10 w-12 md:w-18 bg-linear-to-l from-agg-secondary via-agg-secondary to-transparent",
|
|
2613
|
-
getMotionClassName(enableAnimations, "transition-opacity duration-200"),
|
|
2614
|
-
scrollAffordanceState.showEnd ? "opacity-100" : "opacity-0"
|
|
2615
|
-
)
|
|
2616
|
-
}
|
|
2617
|
-
)
|
|
2618
|
-
] }) : null
|
|
2580
|
+
}
|
|
2581
|
+
)
|
|
2582
|
+
}
|
|
2583
|
+
)
|
|
2584
|
+
] }, venue.venue);
|
|
2585
|
+
}) })
|
|
2619
2586
|
]
|
|
2620
2587
|
}
|
|
2621
2588
|
);
|
|
2622
2589
|
};
|
|
2623
|
-
|
|
2590
|
+
Settlement.displayName = "Settlement";
|
|
2624
2591
|
|
|
2625
|
-
// src/
|
|
2592
|
+
// src/trading/place-order/index.tsx
|
|
2593
|
+
var import_react4 = require("react");
|
|
2594
|
+
var import_hooks14 = require("@agg-market/hooks");
|
|
2595
|
+
|
|
2596
|
+
// src/primitives/button/index.tsx
|
|
2626
2597
|
var import_hooks11 = require("@agg-market/hooks");
|
|
2627
2598
|
|
|
2628
|
-
// src/primitives/
|
|
2629
|
-
var
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
color
|
|
2634
|
-
}) => {
|
|
2635
|
-
if (typeof color === "string" && color.trim())
|
|
2636
|
-
return color;
|
|
2637
|
-
if (!isColor)
|
|
2638
|
-
return DEFAULT_MONOCHROME_COLOR;
|
|
2639
|
-
return brandColor;
|
|
2599
|
+
// src/primitives/button/button.constants.ts
|
|
2600
|
+
var sizeClasses2 = {
|
|
2601
|
+
small: cn("h-8 px-4 gap-1.5", "text-agg-sm leading-agg-5"),
|
|
2602
|
+
medium: cn("h-9 px-5 gap-1.5", "text-agg-sm leading-agg-5"),
|
|
2603
|
+
large: cn("h-10 px-6 gap-2", "text-agg-base leading-agg-6")
|
|
2640
2604
|
};
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
var LogoKalshiIcon = (_a) => {
|
|
2646
|
-
var _b = _a, {
|
|
2647
|
-
title,
|
|
2648
|
-
className,
|
|
2649
|
-
isColor = true,
|
|
2650
|
-
color
|
|
2651
|
-
} = _b, props = __objRest(_b, [
|
|
2652
|
-
"title",
|
|
2653
|
-
"className",
|
|
2654
|
-
"isColor",
|
|
2655
|
-
"color"
|
|
2656
|
-
]);
|
|
2657
|
-
const primaryColor = resolveLogoPrimaryColor({
|
|
2658
|
-
brandColor: KALSHI_GREEN,
|
|
2659
|
-
isColor,
|
|
2660
|
-
color
|
|
2661
|
-
});
|
|
2662
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
2663
|
-
"svg",
|
|
2664
|
-
__spreadProps(__spreadValues(__spreadValues({
|
|
2665
|
-
viewBox: "0 0 100 100",
|
|
2666
|
-
className,
|
|
2667
|
-
fill: "none"
|
|
2668
|
-
}, getIconA11yProps(title)), props), {
|
|
2669
|
-
children: [
|
|
2670
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("title", { children: title }) : null,
|
|
2671
|
-
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2672
|
-
"path",
|
|
2673
|
-
{
|
|
2674
|
-
d: "M54.9798 47.579L79.4249 85.9995H58.2273L38.2531 52.9344V85.9995H20.4189V13.9995H38.2531V45.4356L59.6547 13.9995H78.7119L54.9798 47.579Z",
|
|
2675
|
-
fill: primaryColor
|
|
2676
|
-
}
|
|
2677
|
-
)
|
|
2678
|
-
]
|
|
2679
|
-
})
|
|
2680
|
-
);
|
|
2605
|
+
var iconSizeClasses2 = {
|
|
2606
|
+
small: iconSizeClasses.small,
|
|
2607
|
+
medium: iconSizeClasses.small,
|
|
2608
|
+
large: iconSizeClasses.small
|
|
2681
2609
|
};
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
var OPINION_BLACK = "#000000";
|
|
2687
|
-
var LogoOpinionIcon = (_a) => {
|
|
2688
|
-
var _b = _a, {
|
|
2689
|
-
title,
|
|
2690
|
-
className,
|
|
2691
|
-
isColor = true,
|
|
2692
|
-
color
|
|
2693
|
-
} = _b, props = __objRest(_b, [
|
|
2694
|
-
"title",
|
|
2695
|
-
"className",
|
|
2696
|
-
"isColor",
|
|
2697
|
-
"color"
|
|
2698
|
-
]);
|
|
2699
|
-
const primaryColor = resolveLogoPrimaryColor({
|
|
2700
|
-
brandColor: OPINION_BLACK,
|
|
2701
|
-
isColor,
|
|
2702
|
-
color
|
|
2703
|
-
});
|
|
2704
|
-
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
2705
|
-
"svg",
|
|
2706
|
-
__spreadProps(__spreadValues(__spreadValues({
|
|
2707
|
-
viewBox: "0 0 100 100",
|
|
2708
|
-
className,
|
|
2709
|
-
fill: "none"
|
|
2710
|
-
}, getIconA11yProps(title)), props), {
|
|
2711
|
-
children: [
|
|
2712
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("title", { children: title }) : null,
|
|
2713
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2714
|
-
"path",
|
|
2715
|
-
{
|
|
2716
|
-
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",
|
|
2717
|
-
fill: primaryColor
|
|
2718
|
-
}
|
|
2719
|
-
)
|
|
2720
|
-
]
|
|
2721
|
-
})
|
|
2722
|
-
);
|
|
2610
|
+
var iconSlotClasses = {
|
|
2611
|
+
small: "[&_svg]:h-4 [&_svg]:w-4",
|
|
2612
|
+
medium: "[&_svg]:h-4 [&_svg]:w-4",
|
|
2613
|
+
large: "[&_svg]:h-4 [&_svg]:w-4"
|
|
2723
2614
|
};
|
|
2724
|
-
|
|
2615
|
+
var variantClasses = {
|
|
2616
|
+
primary: cn(
|
|
2617
|
+
"bg-agg-primary text-agg-on-primary",
|
|
2618
|
+
"hover:bg-agg-primary-hover",
|
|
2619
|
+
"disabled:bg-agg-separator disabled:text-agg-on-primary",
|
|
2620
|
+
"focus-visible:ring-agg-primary-hover"
|
|
2621
|
+
),
|
|
2622
|
+
secondary: cn(
|
|
2623
|
+
"border border-agg-separator bg-agg-secondary text-agg-foreground",
|
|
2624
|
+
"hover:bg-agg-secondary-hover",
|
|
2625
|
+
"disabled:bg-agg-secondary disabled:text-agg-muted-foreground disabled:border-agg-separator",
|
|
2626
|
+
"focus-visible:ring-agg-separator"
|
|
2627
|
+
),
|
|
2628
|
+
tertiary: cn(
|
|
2629
|
+
"bg-transparent text-agg-primary",
|
|
2630
|
+
"hover:text-agg-primary-hover",
|
|
2631
|
+
"disabled:bg-transparent disabled:text-agg-muted-foreground",
|
|
2632
|
+
"focus-visible:ring-agg-separator",
|
|
2633
|
+
"px-0! py-0! h-fit!"
|
|
2634
|
+
)
|
|
2635
|
+
};
|
|
2636
|
+
var baseButtonClasses = cn(
|
|
2637
|
+
"cursor-pointer disabled:cursor-not-allowed",
|
|
2638
|
+
"inline-flex items-center justify-center rounded-agg-full font-agg-sans font-agg-bold text-center",
|
|
2639
|
+
"whitespace-nowrap",
|
|
2640
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary"
|
|
2641
|
+
);
|
|
2725
2642
|
|
|
2726
|
-
// src/primitives/
|
|
2727
|
-
var
|
|
2728
|
-
var
|
|
2729
|
-
var LogoPolymarketIcon = (_a) => {
|
|
2643
|
+
// src/primitives/button/index.tsx
|
|
2644
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2645
|
+
var Button = (_a) => {
|
|
2730
2646
|
var _b = _a, {
|
|
2731
|
-
|
|
2647
|
+
children,
|
|
2648
|
+
variant = "primary",
|
|
2649
|
+
size = "medium",
|
|
2650
|
+
isLoading = false,
|
|
2651
|
+
disabled,
|
|
2652
|
+
prefix,
|
|
2653
|
+
suffix,
|
|
2654
|
+
type = "button",
|
|
2732
2655
|
className,
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
"
|
|
2656
|
+
"aria-label": ariaLabel
|
|
2657
|
+
} = _b, other = __objRest(_b, [
|
|
2658
|
+
"children",
|
|
2659
|
+
"variant",
|
|
2660
|
+
"size",
|
|
2661
|
+
"isLoading",
|
|
2662
|
+
"disabled",
|
|
2663
|
+
"prefix",
|
|
2664
|
+
"suffix",
|
|
2665
|
+
"type",
|
|
2737
2666
|
"className",
|
|
2738
|
-
"
|
|
2739
|
-
"color"
|
|
2667
|
+
"aria-label"
|
|
2740
2668
|
]);
|
|
2741
|
-
const
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2669
|
+
const { enableAnimations } = (0, import_hooks11.useSdkUiConfig)();
|
|
2670
|
+
const isDisabled = disabled || isLoading;
|
|
2671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2672
|
+
"button",
|
|
2673
|
+
__spreadProps(__spreadValues({
|
|
2674
|
+
type,
|
|
2675
|
+
className: cn(
|
|
2676
|
+
"group/agg-button",
|
|
2677
|
+
baseButtonClasses,
|
|
2678
|
+
getMotionClassName(enableAnimations, "transition-colors duration-200 ease-in-out"),
|
|
2679
|
+
sizeClasses2[size],
|
|
2680
|
+
iconSlotClasses[size],
|
|
2681
|
+
variantClasses[variant],
|
|
2682
|
+
className
|
|
2683
|
+
),
|
|
2684
|
+
disabled: isDisabled,
|
|
2685
|
+
"aria-busy": isLoading,
|
|
2686
|
+
"aria-label": ariaLabel
|
|
2687
|
+
}, other), {
|
|
2688
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2689
|
+
"span",
|
|
2690
|
+
{
|
|
2691
|
+
className: cn(
|
|
2692
|
+
"inline-block rounded-agg-full border-2 border-current border-r-transparent",
|
|
2693
|
+
getMotionClassName(enableAnimations, "animate-spin"),
|
|
2694
|
+
iconSizeClasses2[size]
|
|
2695
|
+
),
|
|
2696
|
+
"aria-hidden": "true"
|
|
2697
|
+
}
|
|
2698
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
2699
|
+
prefix != null ? prefix : null,
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children }),
|
|
2701
|
+
suffix != null ? suffix : null
|
|
2702
|
+
] })
|
|
2763
2703
|
})
|
|
2764
2704
|
);
|
|
2765
2705
|
};
|
|
2766
|
-
|
|
2706
|
+
Button.displayName = "Button";
|
|
2767
2707
|
|
|
2768
|
-
// src/primitives/
|
|
2769
|
-
var
|
|
2770
|
-
var
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2708
|
+
// src/primitives/tabs/index.tsx
|
|
2709
|
+
var import_react3 = require("react");
|
|
2710
|
+
var import_hooks13 = require("@agg-market/hooks");
|
|
2711
|
+
|
|
2712
|
+
// src/primitives/select/index.tsx
|
|
2713
|
+
var import_react2 = require("react");
|
|
2714
|
+
var import_hooks12 = require("@agg-market/hooks");
|
|
2715
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2716
|
+
var Select = ({
|
|
2717
|
+
items,
|
|
2718
|
+
value,
|
|
2719
|
+
onChange,
|
|
2720
|
+
ariaLabel,
|
|
2721
|
+
className,
|
|
2722
|
+
disabled = false
|
|
2723
|
+
}) => {
|
|
2724
|
+
var _a;
|
|
2725
|
+
const labels = (0, import_hooks12.useLabels)();
|
|
2726
|
+
const { enableAnimations } = (0, import_hooks12.useSdkUiConfig)();
|
|
2727
|
+
const hasEnabledItems = items.some((item) => !item.disabled);
|
|
2728
|
+
const hasAnyIcon = items.some((item) => item.iconUrl);
|
|
2729
|
+
const [isOpen, setIsOpen] = (0, import_react2.useState)(false);
|
|
2730
|
+
const containerRef = (0, import_react2.useRef)(null);
|
|
2731
|
+
const close = (0, import_react2.useCallback)(() => setIsOpen(false), []);
|
|
2732
|
+
(0, import_react2.useEffect)(() => {
|
|
2733
|
+
if (!isOpen)
|
|
2734
|
+
return;
|
|
2735
|
+
const handlePointerDown = (e) => {
|
|
2736
|
+
if (containerRef.current && !containerRef.current.contains(e == null ? void 0 : e.target)) {
|
|
2737
|
+
close();
|
|
2738
|
+
}
|
|
2739
|
+
};
|
|
2740
|
+
document.addEventListener("mousedown", handlePointerDown);
|
|
2741
|
+
return () => document.removeEventListener("mousedown", handlePointerDown);
|
|
2742
|
+
}, [isOpen, close]);
|
|
2743
|
+
(0, import_react2.useEffect)(() => {
|
|
2744
|
+
if (!isOpen)
|
|
2745
|
+
return;
|
|
2746
|
+
const handleKey = (e) => {
|
|
2747
|
+
if ((e == null ? void 0 : e.key) === "Escape")
|
|
2748
|
+
close();
|
|
2749
|
+
};
|
|
2750
|
+
document.addEventListener("keydown", handleKey);
|
|
2751
|
+
return () => document.removeEventListener("keydown", handleKey);
|
|
2752
|
+
}, [isOpen, close]);
|
|
2753
|
+
const isDisabled = disabled || !hasEnabledItems;
|
|
2754
|
+
const selectedItem = items.find((item) => item.value === value);
|
|
2755
|
+
if (!hasAnyIcon) {
|
|
2756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { className: cn("group/agg-select", "relative inline-flex w-full", className), children: [
|
|
2757
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2758
|
+
"select",
|
|
2759
|
+
{
|
|
2760
|
+
"aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
|
|
2761
|
+
className: cn(
|
|
2762
|
+
"w-full appearance-none rounded-agg-md border border-agg-separator bg-agg-secondary px-4 py-2 pr-10 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground outline-none",
|
|
2763
|
+
getMotionClassName(
|
|
2764
|
+
enableAnimations,
|
|
2765
|
+
"transition-[border-color,box-shadow] duration-200 ease-in-out"
|
|
2766
|
+
),
|
|
2767
|
+
"focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
|
|
2768
|
+
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
2769
|
+
),
|
|
2770
|
+
disabled: isDisabled,
|
|
2771
|
+
value,
|
|
2772
|
+
onChange: (event) => onChange(event.target.value),
|
|
2773
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("option", { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
2774
|
+
}
|
|
2775
|
+
),
|
|
2776
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) })
|
|
2777
|
+
] });
|
|
2778
|
+
}
|
|
2779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
2780
|
+
"div",
|
|
2781
|
+
{
|
|
2782
|
+
ref: containerRef,
|
|
2783
|
+
className: cn("group/agg-select", "relative inline-flex w-full", className),
|
|
2784
|
+
children: [
|
|
2785
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
2786
|
+
"button",
|
|
2787
|
+
{
|
|
2788
|
+
type: "button",
|
|
2789
|
+
"aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
|
|
2790
|
+
"aria-expanded": isOpen,
|
|
2791
|
+
"aria-haspopup": "listbox",
|
|
2792
|
+
disabled: isDisabled,
|
|
2793
|
+
className: cn(
|
|
2794
|
+
"w-full rounded-agg-md border border-agg-separator bg-agg-secondary px-4 py-2 pr-10 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground outline-none",
|
|
2795
|
+
"flex items-center gap-2 text-left",
|
|
2796
|
+
getMotionClassName(
|
|
2797
|
+
enableAnimations,
|
|
2798
|
+
"transition-[border-color,box-shadow] duration-200 ease-in-out"
|
|
2799
|
+
),
|
|
2800
|
+
"focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
|
|
2801
|
+
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
2802
|
+
),
|
|
2803
|
+
onClick: () => setIsOpen((prev) => !prev),
|
|
2804
|
+
children: [
|
|
2805
|
+
(selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2806
|
+
"img",
|
|
2807
|
+
{
|
|
2808
|
+
src: selectedItem.iconUrl,
|
|
2809
|
+
alt: "",
|
|
2810
|
+
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
2811
|
+
}
|
|
2812
|
+
) : null,
|
|
2813
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
|
|
2814
|
+
]
|
|
2815
|
+
}
|
|
2816
|
+
),
|
|
2817
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) }),
|
|
2818
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2819
|
+
"div",
|
|
2820
|
+
{
|
|
2821
|
+
role: "listbox",
|
|
2822
|
+
"aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
|
|
2823
|
+
className: "absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
|
|
2824
|
+
children: items.map((item) => {
|
|
2825
|
+
const isSelected = item.value === value;
|
|
2826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
2827
|
+
"button",
|
|
2828
|
+
{
|
|
2829
|
+
type: "button",
|
|
2830
|
+
role: "option",
|
|
2831
|
+
"aria-selected": isSelected,
|
|
2832
|
+
disabled: item.disabled,
|
|
2833
|
+
className: cn(
|
|
2834
|
+
"flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
|
|
2835
|
+
"hover:bg-agg-secondary-hover focus-visible:bg-agg-secondary-hover",
|
|
2836
|
+
isSelected ? "font-agg-bold text-agg-primary" : "font-agg-normal text-agg-foreground",
|
|
2837
|
+
item.disabled && "cursor-not-allowed opacity-60"
|
|
2838
|
+
),
|
|
2839
|
+
onClick: () => {
|
|
2840
|
+
if (!item.disabled) {
|
|
2841
|
+
onChange(item.value);
|
|
2842
|
+
close();
|
|
2843
|
+
}
|
|
2844
|
+
},
|
|
2845
|
+
children: [
|
|
2846
|
+
item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2847
|
+
"img",
|
|
2848
|
+
{
|
|
2849
|
+
src: item.iconUrl,
|
|
2850
|
+
alt: "",
|
|
2851
|
+
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
2852
|
+
}
|
|
2853
|
+
) : null,
|
|
2854
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "truncate", children: item.label })
|
|
2855
|
+
]
|
|
2856
|
+
},
|
|
2857
|
+
item.value
|
|
2858
|
+
);
|
|
2859
|
+
})
|
|
2860
|
+
}
|
|
2861
|
+
) : null
|
|
2862
|
+
]
|
|
2863
|
+
}
|
|
2864
|
+
);
|
|
2865
|
+
};
|
|
2866
|
+
Select.displayName = "Select";
|
|
2867
|
+
|
|
2868
|
+
// src/primitives/tabs/tabs.utils.ts
|
|
2869
|
+
var findNextEnabledIndex = (items, startIndex, direction) => {
|
|
2870
|
+
var _a;
|
|
2871
|
+
if (items.length === 0)
|
|
2872
|
+
return -1;
|
|
2873
|
+
for (let step = 1; step <= items.length; step += 1) {
|
|
2874
|
+
const nextIndex = (startIndex + direction * step + items.length) % items.length;
|
|
2875
|
+
if (!((_a = items[nextIndex]) == null ? void 0 : _a.disabled))
|
|
2876
|
+
return nextIndex;
|
|
2877
|
+
}
|
|
2878
|
+
return -1;
|
|
2879
|
+
};
|
|
2880
|
+
var findEdgeEnabledIndex = (items, direction) => {
|
|
2881
|
+
var _a;
|
|
2882
|
+
if (direction === 1) {
|
|
2883
|
+
return items.findIndex((item) => !item.disabled);
|
|
2884
|
+
}
|
|
2885
|
+
for (let index = items.length - 1; index >= 0; index -= 1) {
|
|
2886
|
+
if (!((_a = items[index]) == null ? void 0 : _a.disabled))
|
|
2887
|
+
return index;
|
|
2888
|
+
}
|
|
2889
|
+
return -1;
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
// src/primitives/tabs/index.tsx
|
|
2893
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2894
|
+
var mobileTabsMediaQuery = "(max-width: 512px)";
|
|
2895
|
+
var getTabButtonClassName = ({
|
|
2896
|
+
enableAnimations,
|
|
2897
|
+
isBarVariant,
|
|
2898
|
+
isActive,
|
|
2899
|
+
isDisabled,
|
|
2900
|
+
size
|
|
2901
|
+
}) => {
|
|
2902
|
+
const isSmall = size === "s";
|
|
2903
|
+
return cn(
|
|
2904
|
+
"cursor-pointer disabled:cursor-not-allowed",
|
|
2905
|
+
"relative inline-flex h-full shrink-0 items-center justify-center gap-2 font-agg-sans",
|
|
2906
|
+
isBarVariant ? "hover:text-agg-foreground hover:bg-agg-secondary-hover" : "hover:text-agg-foreground hover:font-bold",
|
|
2907
|
+
getMotionClassName(
|
|
2908
|
+
enableAnimations,
|
|
2909
|
+
"transition-[colors] duration-300 ease-in-out motion-reduce:transition-none"
|
|
2910
|
+
),
|
|
2911
|
+
isBarVariant ? cn(
|
|
2912
|
+
"min-w-20 overflow-hidden border-r border-agg-separator last:border-r-0",
|
|
2913
|
+
isSmall ? "px-3 text-agg-sm leading-agg-5" : "px-4 text-agg-base leading-agg-6"
|
|
2914
|
+
) : cn(isSmall ? "px-4 text-agg-sm leading-agg-5" : "px-5 text-agg-base leading-agg-6"),
|
|
2915
|
+
isBarVariant && isActive && "font-agg-bold text-agg-primary",
|
|
2916
|
+
isBarVariant && !isActive && "font-agg-normal text-agg-foreground",
|
|
2917
|
+
!isBarVariant && isActive && "font-agg-bold text-agg-primary",
|
|
2918
|
+
!isBarVariant && !isActive && "font-agg-normal text-agg-foreground",
|
|
2919
|
+
isDisabled && "cursor-not-allowed opacity-60"
|
|
2920
|
+
);
|
|
2921
|
+
};
|
|
2922
|
+
var Tabs = ({
|
|
2923
|
+
items,
|
|
2924
|
+
value,
|
|
2925
|
+
onChange,
|
|
2926
|
+
variant = "bar",
|
|
2927
|
+
size = "m",
|
|
2928
|
+
overflowBehavior,
|
|
2929
|
+
ariaLabel,
|
|
2930
|
+
className,
|
|
2931
|
+
classNames
|
|
2932
|
+
}) => {
|
|
2933
|
+
const labels = (0, import_hooks13.useLabels)();
|
|
2934
|
+
const { enableAnimations } = (0, import_hooks13.useSdkUiConfig)();
|
|
2935
|
+
const buttonRefs = (0, import_react3.useRef)([]);
|
|
2936
|
+
const dragStateRef = (0, import_react3.useRef)({
|
|
2937
|
+
isPointerDown: false,
|
|
2938
|
+
isDragging: false,
|
|
2939
|
+
pointerId: null,
|
|
2940
|
+
startClientX: 0,
|
|
2941
|
+
startClientY: 0,
|
|
2942
|
+
startScrollLeft: 0
|
|
2787
2943
|
});
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2944
|
+
const suppressClickRef = (0, import_react3.useRef)(false);
|
|
2945
|
+
const resolvedAriaLabel = ariaLabel != null ? ariaLabel : labels.common.tabsAria;
|
|
2946
|
+
const [isMobileViewport, setIsMobileViewport] = (0, import_react3.useState)(false);
|
|
2947
|
+
const [isDraggingTabs, setIsDraggingTabs] = (0, import_react3.useState)(false);
|
|
2948
|
+
const [activeUnderlineStyle, setActiveUnderlineStyle] = (0, import_react3.useState)({
|
|
2949
|
+
transform: "translateX(0px)",
|
|
2950
|
+
width: 0,
|
|
2951
|
+
opacity: 0
|
|
2952
|
+
});
|
|
2953
|
+
const [scrollAffordanceState, setScrollAffordanceState] = (0, import_react3.useState)({
|
|
2954
|
+
showStart: false,
|
|
2955
|
+
showEnd: false
|
|
2956
|
+
});
|
|
2957
|
+
const tabListRef = (0, import_react3.useRef)(null);
|
|
2958
|
+
const isBarVariant = variant === "bar";
|
|
2959
|
+
const resolvedOverflowBehavior = (0, import_react3.useMemo)(() => {
|
|
2960
|
+
if (overflowBehavior)
|
|
2961
|
+
return overflowBehavior;
|
|
2962
|
+
if (!isBarVariant)
|
|
2963
|
+
return "scroll";
|
|
2964
|
+
return isMobileViewport ? "select" : "scroll";
|
|
2965
|
+
}, [isBarVariant, isMobileViewport, overflowBehavior]);
|
|
2966
|
+
const shouldUseOverflowScroll = resolvedOverflowBehavior === "scroll";
|
|
2967
|
+
const shouldUseOverflowSelect = resolvedOverflowBehavior === "select";
|
|
2968
|
+
(0, import_react3.useEffect)(() => {
|
|
2969
|
+
if (typeof window === "undefined")
|
|
2970
|
+
return;
|
|
2971
|
+
const mediaQueryList = window.matchMedia(mobileTabsMediaQuery);
|
|
2972
|
+
const handleMediaQueryChange = (event) => {
|
|
2973
|
+
setIsMobileViewport(event.matches);
|
|
2974
|
+
};
|
|
2975
|
+
handleMediaQueryChange(mediaQueryList);
|
|
2976
|
+
if (typeof mediaQueryList.addEventListener === "function") {
|
|
2977
|
+
mediaQueryList.addEventListener("change", handleMediaQueryChange);
|
|
2978
|
+
return () => {
|
|
2979
|
+
mediaQueryList.removeEventListener("change", handleMediaQueryChange);
|
|
2980
|
+
};
|
|
2981
|
+
}
|
|
2982
|
+
mediaQueryList.addListener(handleMediaQueryChange);
|
|
2983
|
+
return () => {
|
|
2984
|
+
mediaQueryList.removeListener(handleMediaQueryChange);
|
|
2985
|
+
};
|
|
2986
|
+
}, []);
|
|
2987
|
+
const updateScrollAffordances = (0, import_react3.useCallback)(() => {
|
|
2988
|
+
if (!shouldUseOverflowScroll) {
|
|
2989
|
+
setScrollAffordanceState({
|
|
2990
|
+
showStart: false,
|
|
2991
|
+
showEnd: false
|
|
2992
|
+
});
|
|
2993
|
+
return;
|
|
2994
|
+
}
|
|
2995
|
+
const tabListElement = tabListRef.current;
|
|
2996
|
+
if (!tabListElement)
|
|
2997
|
+
return;
|
|
2998
|
+
const maxScrollLeft = tabListElement.scrollWidth - tabListElement.clientWidth;
|
|
2999
|
+
setScrollAffordanceState({
|
|
3000
|
+
showStart: tabListElement.scrollLeft > 4,
|
|
3001
|
+
showEnd: maxScrollLeft - tabListElement.scrollLeft > 4
|
|
3002
|
+
});
|
|
3003
|
+
}, [shouldUseOverflowScroll]);
|
|
3004
|
+
const renderedItems = items;
|
|
3005
|
+
const selectItems = (0, import_react3.useMemo)(() => {
|
|
3006
|
+
return items.map((item) => ({
|
|
3007
|
+
value: item.value,
|
|
3008
|
+
label: item.label,
|
|
3009
|
+
disabled: item.disabled
|
|
3010
|
+
}));
|
|
3011
|
+
}, [items]);
|
|
3012
|
+
const isSelectDisabled = !items.some((item) => !item.disabled);
|
|
3013
|
+
const handleSelect = (nextValue) => {
|
|
3014
|
+
if (nextValue === value)
|
|
3015
|
+
return;
|
|
3016
|
+
onChange(nextValue);
|
|
3017
|
+
};
|
|
3018
|
+
const handleMoveFocus = (index) => {
|
|
3019
|
+
var _a;
|
|
3020
|
+
if (index < 0)
|
|
3021
|
+
return;
|
|
3022
|
+
const nextItem = renderedItems[index];
|
|
3023
|
+
if (!nextItem)
|
|
3024
|
+
return;
|
|
3025
|
+
handleSelect(nextItem.value);
|
|
3026
|
+
(_a = buttonRefs.current[index]) == null ? void 0 : _a.focus();
|
|
3027
|
+
};
|
|
3028
|
+
const handleKeyDown = (event, index) => {
|
|
3029
|
+
switch (event == null ? void 0 : event.key) {
|
|
3030
|
+
case "ArrowRight": {
|
|
3031
|
+
event == null ? void 0 : event.preventDefault();
|
|
3032
|
+
handleMoveFocus(findNextEnabledIndex(renderedItems, index, 1));
|
|
3033
|
+
return;
|
|
3034
|
+
}
|
|
3035
|
+
case "ArrowLeft": {
|
|
3036
|
+
event == null ? void 0 : event.preventDefault();
|
|
3037
|
+
handleMoveFocus(findNextEnabledIndex(renderedItems, index, -1));
|
|
3038
|
+
return;
|
|
3039
|
+
}
|
|
3040
|
+
case "Home": {
|
|
3041
|
+
event == null ? void 0 : event.preventDefault();
|
|
3042
|
+
handleMoveFocus(findEdgeEnabledIndex(renderedItems, 1));
|
|
3043
|
+
return;
|
|
3044
|
+
}
|
|
3045
|
+
case "End": {
|
|
3046
|
+
event == null ? void 0 : event.preventDefault();
|
|
3047
|
+
handleMoveFocus(findEdgeEnabledIndex(renderedItems, -1));
|
|
3048
|
+
return;
|
|
3049
|
+
}
|
|
3050
|
+
default:
|
|
3051
|
+
return;
|
|
3052
|
+
}
|
|
3053
|
+
};
|
|
3054
|
+
const tabListClassName = cn(
|
|
3055
|
+
"inline-flex items-stretch bg-agg-secondary",
|
|
3056
|
+
shouldUseOverflowScroll ? cn(
|
|
3057
|
+
"overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3058
|
+
getMotionClassName(enableAnimations, "scroll-smooth")
|
|
3059
|
+
) : "overflow-x-auto",
|
|
3060
|
+
isBarVariant ? "h-8 rounded-agg-sm border border-agg-separator" : "h-12 border-b border-agg-separator -mb-[1px]",
|
|
3061
|
+
shouldUseOverflowScroll && "select-none",
|
|
3062
|
+
shouldUseOverflowScroll && !isBarVariant && "snap-x snap-mandatory",
|
|
3063
|
+
shouldUseOverflowScroll && (isDraggingTabs ? "cursor-grabbing" : "cursor-grab")
|
|
3064
|
+
);
|
|
3065
|
+
const handleTabListWheel = (event) => {
|
|
3066
|
+
if (!shouldUseOverflowScroll)
|
|
3067
|
+
return;
|
|
3068
|
+
const tabListElement = event.currentTarget;
|
|
3069
|
+
if (tabListElement.scrollWidth <= tabListElement.clientWidth)
|
|
3070
|
+
return;
|
|
3071
|
+
if (Math.abs(event.deltaX) > Math.abs(event.deltaY))
|
|
3072
|
+
return;
|
|
3073
|
+
event.preventDefault();
|
|
3074
|
+
tabListElement.scrollLeft += event.deltaY;
|
|
3075
|
+
};
|
|
3076
|
+
const handleTabListPointerDown = (event) => {
|
|
3077
|
+
if (!shouldUseOverflowScroll)
|
|
3078
|
+
return;
|
|
3079
|
+
if (event.pointerType !== "mouse")
|
|
3080
|
+
return;
|
|
3081
|
+
if (event.button !== 0)
|
|
3082
|
+
return;
|
|
3083
|
+
const tabListElement = tabListRef.current;
|
|
3084
|
+
if (!tabListElement)
|
|
3085
|
+
return;
|
|
3086
|
+
if (tabListElement.scrollWidth <= tabListElement.clientWidth)
|
|
3087
|
+
return;
|
|
3088
|
+
dragStateRef.current = {
|
|
3089
|
+
isPointerDown: true,
|
|
3090
|
+
isDragging: false,
|
|
3091
|
+
pointerId: event.pointerId,
|
|
3092
|
+
startClientX: event.clientX,
|
|
3093
|
+
startClientY: event.clientY,
|
|
3094
|
+
startScrollLeft: tabListElement.scrollLeft
|
|
3095
|
+
};
|
|
3096
|
+
};
|
|
3097
|
+
const handleTabListPointerMove = (event) => {
|
|
3098
|
+
if (!shouldUseOverflowScroll)
|
|
3099
|
+
return;
|
|
3100
|
+
const dragState = dragStateRef.current;
|
|
3101
|
+
const tabListElement = tabListRef.current;
|
|
3102
|
+
if (!dragState.isPointerDown)
|
|
3103
|
+
return;
|
|
3104
|
+
if (dragState.pointerId !== event.pointerId)
|
|
3105
|
+
return;
|
|
3106
|
+
if (!tabListElement)
|
|
3107
|
+
return;
|
|
3108
|
+
const deltaX = event.clientX - dragState.startClientX;
|
|
3109
|
+
const deltaY = event.clientY - dragState.startClientY;
|
|
3110
|
+
const horizontalDistance = Math.abs(deltaX);
|
|
3111
|
+
const verticalDistance = Math.abs(deltaY);
|
|
3112
|
+
const hasExceededDragThreshold = horizontalDistance > 10 && horizontalDistance > verticalDistance;
|
|
3113
|
+
if (hasExceededDragThreshold && !dragState.isDragging) {
|
|
3114
|
+
dragState.isDragging = true;
|
|
3115
|
+
setIsDraggingTabs(true);
|
|
3116
|
+
tabListElement.setPointerCapture(event.pointerId);
|
|
3117
|
+
}
|
|
3118
|
+
if (!dragState.isDragging)
|
|
3119
|
+
return;
|
|
3120
|
+
event.preventDefault();
|
|
3121
|
+
tabListElement.scrollLeft = dragState.startScrollLeft - deltaX;
|
|
3122
|
+
};
|
|
3123
|
+
const handleEndTabListDrag = (event) => {
|
|
3124
|
+
const dragState = dragStateRef.current;
|
|
3125
|
+
const tabListElement = tabListRef.current;
|
|
3126
|
+
if (!dragState.isPointerDown)
|
|
3127
|
+
return;
|
|
3128
|
+
if (dragState.pointerId !== event.pointerId)
|
|
3129
|
+
return;
|
|
3130
|
+
if (tabListElement == null ? void 0 : tabListElement.hasPointerCapture(event.pointerId)) {
|
|
3131
|
+
tabListElement.releasePointerCapture(event.pointerId);
|
|
3132
|
+
}
|
|
3133
|
+
if (dragState.isDragging) {
|
|
3134
|
+
suppressClickRef.current = true;
|
|
3135
|
+
window.setTimeout(() => {
|
|
3136
|
+
suppressClickRef.current = false;
|
|
3137
|
+
}, 0);
|
|
3138
|
+
}
|
|
3139
|
+
dragStateRef.current = {
|
|
3140
|
+
isPointerDown: false,
|
|
3141
|
+
isDragging: false,
|
|
3142
|
+
pointerId: null,
|
|
3143
|
+
startClientX: 0,
|
|
3144
|
+
startClientY: 0,
|
|
3145
|
+
startScrollLeft: 0
|
|
3146
|
+
};
|
|
3147
|
+
setIsDraggingTabs(false);
|
|
3148
|
+
};
|
|
3149
|
+
const handleTabListClickCapture = (event) => {
|
|
3150
|
+
if (!suppressClickRef.current)
|
|
3151
|
+
return;
|
|
3152
|
+
event == null ? void 0 : event.preventDefault();
|
|
3153
|
+
event == null ? void 0 : event.stopPropagation();
|
|
3154
|
+
suppressClickRef.current = false;
|
|
3155
|
+
};
|
|
3156
|
+
const updateActiveUnderline = (0, import_react3.useCallback)(() => {
|
|
3157
|
+
if (isBarVariant) {
|
|
3158
|
+
setActiveUnderlineStyle({
|
|
3159
|
+
transform: "translateX(0px)",
|
|
3160
|
+
width: 0,
|
|
3161
|
+
opacity: 0
|
|
3162
|
+
});
|
|
3163
|
+
return;
|
|
3164
|
+
}
|
|
3165
|
+
const activeIndex = renderedItems.findIndex((item) => item.value === value);
|
|
3166
|
+
const activeButton = activeIndex >= 0 ? buttonRefs.current[activeIndex] : null;
|
|
3167
|
+
if (!activeButton || !tabListRef.current) {
|
|
3168
|
+
setActiveUnderlineStyle((currentStyle) => __spreadProps(__spreadValues({}, currentStyle), {
|
|
3169
|
+
opacity: 0
|
|
3170
|
+
}));
|
|
3171
|
+
return;
|
|
3172
|
+
}
|
|
3173
|
+
setActiveUnderlineStyle({
|
|
3174
|
+
transform: `translateX(${activeButton.offsetLeft}px)`,
|
|
3175
|
+
width: activeButton.offsetWidth,
|
|
3176
|
+
opacity: 1
|
|
3177
|
+
});
|
|
3178
|
+
}, [isBarVariant, renderedItems, value]);
|
|
3179
|
+
(0, import_react3.useLayoutEffect)(() => {
|
|
3180
|
+
updateActiveUnderline();
|
|
3181
|
+
}, [updateActiveUnderline]);
|
|
3182
|
+
(0, import_react3.useEffect)(() => {
|
|
3183
|
+
if (isBarVariant || !shouldUseOverflowScroll)
|
|
3184
|
+
return;
|
|
3185
|
+
const tabListElement = tabListRef.current;
|
|
3186
|
+
if (!tabListElement)
|
|
3187
|
+
return;
|
|
3188
|
+
const handleScroll = () => {
|
|
3189
|
+
updateActiveUnderline();
|
|
3190
|
+
updateScrollAffordances();
|
|
3191
|
+
};
|
|
3192
|
+
tabListElement.addEventListener("scroll", handleScroll, { passive: true });
|
|
3193
|
+
updateScrollAffordances();
|
|
3194
|
+
return () => {
|
|
3195
|
+
tabListElement.removeEventListener("scroll", handleScroll);
|
|
3196
|
+
};
|
|
3197
|
+
}, [isBarVariant, shouldUseOverflowScroll, updateActiveUnderline, updateScrollAffordances]);
|
|
3198
|
+
(0, import_react3.useEffect)(() => {
|
|
3199
|
+
if (!shouldUseOverflowScroll)
|
|
3200
|
+
return;
|
|
3201
|
+
updateScrollAffordances();
|
|
3202
|
+
}, [renderedItems, shouldUseOverflowScroll, updateScrollAffordances, value]);
|
|
3203
|
+
(0, import_react3.useEffect)(() => {
|
|
3204
|
+
if (isBarVariant && !shouldUseOverflowScroll)
|
|
3205
|
+
return;
|
|
3206
|
+
if (typeof ResizeObserver === "undefined")
|
|
3207
|
+
return;
|
|
3208
|
+
const tabListElement = tabListRef.current;
|
|
3209
|
+
if (!tabListElement)
|
|
3210
|
+
return;
|
|
3211
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
3212
|
+
updateActiveUnderline();
|
|
3213
|
+
updateScrollAffordances();
|
|
3214
|
+
});
|
|
3215
|
+
resizeObserver.observe(tabListElement);
|
|
3216
|
+
return () => {
|
|
3217
|
+
resizeObserver.disconnect();
|
|
3218
|
+
};
|
|
3219
|
+
}, [isBarVariant, shouldUseOverflowScroll, updateActiveUnderline, updateScrollAffordances]);
|
|
3220
|
+
(0, import_react3.useEffect)(() => {
|
|
3221
|
+
if (!shouldUseOverflowScroll)
|
|
3222
|
+
return;
|
|
3223
|
+
const tabListElement = tabListRef.current;
|
|
3224
|
+
if (!tabListElement)
|
|
3225
|
+
return;
|
|
3226
|
+
const activeIndex = renderedItems.findIndex((item) => item.value === value);
|
|
3227
|
+
const activeButton = activeIndex >= 0 ? buttonRefs.current[activeIndex] : null;
|
|
3228
|
+
if (!activeButton)
|
|
3229
|
+
return;
|
|
3230
|
+
if (tabListElement.scrollWidth - tabListElement.clientWidth <= 1)
|
|
3231
|
+
return;
|
|
3232
|
+
const currentScrollLeft = tabListElement.scrollLeft;
|
|
3233
|
+
const currentScrollRight = currentScrollLeft + tabListElement.clientWidth;
|
|
3234
|
+
const activeButtonLeft = activeButton.offsetLeft;
|
|
3235
|
+
const activeButtonRight = activeButtonLeft + activeButton.offsetWidth;
|
|
3236
|
+
let nextScrollLeft = currentScrollLeft;
|
|
3237
|
+
if (activeButtonLeft < currentScrollLeft) {
|
|
3238
|
+
nextScrollLeft = activeButtonLeft;
|
|
3239
|
+
} else if (activeButtonRight > currentScrollRight) {
|
|
3240
|
+
nextScrollLeft = activeButtonRight - tabListElement.clientWidth;
|
|
3241
|
+
}
|
|
3242
|
+
if (Math.abs(nextScrollLeft - currentScrollLeft) < 1)
|
|
3243
|
+
return;
|
|
3244
|
+
tabListElement.scrollTo({
|
|
3245
|
+
left: Math.max(0, nextScrollLeft),
|
|
3246
|
+
behavior: getScrollBehavior(enableAnimations)
|
|
3247
|
+
});
|
|
3248
|
+
}, [enableAnimations, renderedItems, shouldUseOverflowScroll, value]);
|
|
3249
|
+
if (shouldUseOverflowSelect) {
|
|
3250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: cn("w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3251
|
+
Select,
|
|
3252
|
+
{
|
|
3253
|
+
ariaLabel,
|
|
3254
|
+
className: "w-full",
|
|
3255
|
+
disabled: isSelectDisabled,
|
|
3256
|
+
items: selectItems,
|
|
3257
|
+
onChange: handleSelect,
|
|
3258
|
+
value
|
|
3259
|
+
}
|
|
3260
|
+
) });
|
|
3261
|
+
}
|
|
3262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
3263
|
+
"div",
|
|
3264
|
+
{
|
|
3265
|
+
className: cn(
|
|
3266
|
+
"group/agg-tabs",
|
|
3267
|
+
"relative max-w-full items-stretch font-agg-sans bg-agg-secondary",
|
|
3268
|
+
"inline-flex",
|
|
3269
|
+
className,
|
|
3270
|
+
classNames == null ? void 0 : classNames.root
|
|
3271
|
+
),
|
|
2795
3272
|
children: [
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
"path",
|
|
3273
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
3274
|
+
"div",
|
|
2799
3275
|
{
|
|
2800
|
-
|
|
2801
|
-
|
|
3276
|
+
ref: tabListRef,
|
|
3277
|
+
role: "tablist",
|
|
3278
|
+
"aria-label": resolvedAriaLabel,
|
|
3279
|
+
className: cn("relative", tabListClassName, classNames == null ? void 0 : classNames.tabList),
|
|
3280
|
+
onClickCapture: handleTabListClickCapture,
|
|
3281
|
+
onPointerCancel: handleEndTabListDrag,
|
|
3282
|
+
onPointerDown: handleTabListPointerDown,
|
|
3283
|
+
onPointerMove: handleTabListPointerMove,
|
|
3284
|
+
onPointerUp: handleEndTabListDrag,
|
|
3285
|
+
onWheel: handleTabListWheel,
|
|
3286
|
+
children: [
|
|
3287
|
+
renderedItems.map((item, index) => {
|
|
3288
|
+
const isActive = item.value === value;
|
|
3289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
3290
|
+
"button",
|
|
3291
|
+
{
|
|
3292
|
+
ref: (buttonElement) => {
|
|
3293
|
+
buttonRefs.current[index] = buttonElement;
|
|
3294
|
+
},
|
|
3295
|
+
type: "button",
|
|
3296
|
+
role: "tab",
|
|
3297
|
+
tabIndex: isActive ? 0 : -1,
|
|
3298
|
+
"aria-selected": isActive,
|
|
3299
|
+
"aria-label": item.label,
|
|
3300
|
+
disabled: item.disabled,
|
|
3301
|
+
onClick: (e) => {
|
|
3302
|
+
e.preventDefault();
|
|
3303
|
+
e.stopPropagation();
|
|
3304
|
+
handleSelect(item.value);
|
|
3305
|
+
},
|
|
3306
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
3307
|
+
className: cn(
|
|
3308
|
+
getTabButtonClassName({
|
|
3309
|
+
enableAnimations,
|
|
3310
|
+
isBarVariant,
|
|
3311
|
+
isActive,
|
|
3312
|
+
isDisabled: !!item.disabled,
|
|
3313
|
+
size
|
|
3314
|
+
}),
|
|
3315
|
+
shouldUseOverflowScroll && !isBarVariant && "snap-start"
|
|
3316
|
+
),
|
|
3317
|
+
children: [
|
|
3318
|
+
isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3319
|
+
"span",
|
|
3320
|
+
{
|
|
3321
|
+
"aria-hidden": true,
|
|
3322
|
+
className: cn(
|
|
3323
|
+
"pointer-events-none absolute inset-px origin-bottom rounded-[2px] bg-agg-secondary-hover",
|
|
3324
|
+
getMotionClassName(
|
|
3325
|
+
enableAnimations,
|
|
3326
|
+
"transition-[transform,opacity] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none"
|
|
3327
|
+
),
|
|
3328
|
+
isActive ? "scale-y-100 opacity-100" : "scale-y-0 opacity-0"
|
|
3329
|
+
)
|
|
3330
|
+
}
|
|
3331
|
+
) }) : null,
|
|
3332
|
+
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "relative z-10 inline-flex shrink-0 items-center justify-center", children: item.icon }) : null,
|
|
3333
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "relative z-10 truncate whitespace-nowrap [&::first-letter]:uppercase", children: item.label })
|
|
3334
|
+
]
|
|
3335
|
+
},
|
|
3336
|
+
item.value
|
|
3337
|
+
);
|
|
3338
|
+
}),
|
|
3339
|
+
!isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3340
|
+
"span",
|
|
3341
|
+
{
|
|
3342
|
+
"aria-hidden": true,
|
|
3343
|
+
className: cn(
|
|
3344
|
+
"pointer-events-none absolute bottom-0 left-0 rounded-t-agg-sm bg-agg-primary",
|
|
3345
|
+
getMotionClassName(
|
|
3346
|
+
enableAnimations,
|
|
3347
|
+
"transition-[transform,width,opacity] duration-300 ease-in-out"
|
|
3348
|
+
),
|
|
3349
|
+
"h-[3px]"
|
|
3350
|
+
),
|
|
3351
|
+
style: activeUnderlineStyle
|
|
3352
|
+
}
|
|
3353
|
+
) : null
|
|
3354
|
+
]
|
|
2802
3355
|
}
|
|
2803
3356
|
),
|
|
2804
|
-
/* @__PURE__ */ (0,
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
3357
|
+
shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
3358
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3359
|
+
"span",
|
|
3360
|
+
{
|
|
3361
|
+
"aria-hidden": true,
|
|
3362
|
+
className: cn(
|
|
3363
|
+
"pointer-events-none absolute top-0 bottom-0 left-8 z-10 w-12 md:w-18 bg-linear-to-r from-agg-secondary via-agg-secondary to-transparent",
|
|
3364
|
+
getMotionClassName(enableAnimations, "transition-opacity duration-200"),
|
|
3365
|
+
scrollAffordanceState.showStart ? "opacity-100" : "opacity-0"
|
|
3366
|
+
)
|
|
3367
|
+
}
|
|
3368
|
+
),
|
|
3369
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3370
|
+
"span",
|
|
3371
|
+
{
|
|
3372
|
+
"aria-hidden": true,
|
|
3373
|
+
className: cn(
|
|
3374
|
+
"pointer-events-none absolute top-0 right-8 bottom-0 z-10 w-12 md:w-18 bg-linear-to-l from-agg-secondary via-agg-secondary to-transparent",
|
|
3375
|
+
getMotionClassName(enableAnimations, "transition-opacity duration-200"),
|
|
3376
|
+
scrollAffordanceState.showEnd ? "opacity-100" : "opacity-0"
|
|
3377
|
+
)
|
|
3378
|
+
}
|
|
3379
|
+
)
|
|
3380
|
+
] }) : null
|
|
2812
3381
|
]
|
|
2813
|
-
})
|
|
2814
|
-
);
|
|
2815
|
-
};
|
|
2816
|
-
LogoProbableIcon.displayName = "LogoProbableIcon";
|
|
2817
|
-
|
|
2818
|
-
// src/primitives/venue-logo/venue-logo.constants.ts
|
|
2819
|
-
var venueLogoRegistry = {
|
|
2820
|
-
kalshi: LogoKalshiIcon,
|
|
2821
|
-
polymarket: LogoPolymarketIcon,
|
|
2822
|
-
opinion: LogoOpinionIcon,
|
|
2823
|
-
probable: LogoProbableIcon
|
|
2824
|
-
};
|
|
2825
|
-
var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
|
|
2826
|
-
var venueLogoUrlRegistry = {
|
|
2827
|
-
kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
|
|
2828
|
-
polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
|
|
2829
|
-
opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
|
|
2830
|
-
probable: `${VENUE_LOGO_BASE_URL}/probable.png`
|
|
2831
|
-
};
|
|
2832
|
-
var venueLogoNames = Object.keys(venueLogoRegistry);
|
|
2833
|
-
var sizeClasses2 = {
|
|
2834
|
-
small: "h-4 w-4",
|
|
2835
|
-
medium: "h-6 w-6",
|
|
2836
|
-
large: "h-8 w-8"
|
|
2837
|
-
};
|
|
2838
|
-
|
|
2839
|
-
// src/primitives/venue-logo/index.tsx
|
|
2840
|
-
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2841
|
-
var VenueLogo = ({
|
|
2842
|
-
venue,
|
|
2843
|
-
variant = "icon",
|
|
2844
|
-
isColor = true,
|
|
2845
|
-
isMonochromatic = false,
|
|
2846
|
-
color,
|
|
2847
|
-
size = "medium",
|
|
2848
|
-
className,
|
|
2849
|
-
ariaLabel,
|
|
2850
|
-
title
|
|
2851
|
-
}) => {
|
|
2852
|
-
const labels = (0, import_hooks11.useLabels)();
|
|
2853
|
-
const sizeClass = sizeClasses2[size];
|
|
2854
|
-
const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
|
|
2855
|
-
if (variant === "logo") {
|
|
2856
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2857
|
-
"img",
|
|
2858
|
-
{
|
|
2859
|
-
src: venueLogoUrlRegistry[venue],
|
|
2860
|
-
alt: resolvedLabel,
|
|
2861
|
-
title,
|
|
2862
|
-
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
2863
|
-
}
|
|
2864
|
-
);
|
|
2865
|
-
}
|
|
2866
|
-
const Component = venueLogoRegistry[venue];
|
|
2867
|
-
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
2868
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2869
|
-
Component,
|
|
2870
|
-
{
|
|
2871
|
-
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
2872
|
-
isColor: resolvedIsColor,
|
|
2873
|
-
color,
|
|
2874
|
-
"aria-label": resolvedLabel,
|
|
2875
|
-
title
|
|
2876
3382
|
}
|
|
2877
3383
|
);
|
|
2878
3384
|
};
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
// src/trading/utils.ts
|
|
2882
|
-
var import_hooks12 = require("@agg-market/hooks");
|
|
2883
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
2884
|
-
var defaultLabels = (0, import_hooks12.resolveAggUiLabels)("en-US");
|
|
2885
|
-
var defaultSettlementSectionLabel = defaultLabels.trading.settlementSection;
|
|
2886
|
-
var defaultSettlementDifferencesTitle = defaultLabels.trading.settlementDifferencesTitle;
|
|
2887
|
-
var defaultTradingDisclaimer = defaultLabels.trading.disclaimer;
|
|
2888
|
-
var getTradingDateLabel = (value) => {
|
|
2889
|
-
const parsedValue = (0, import_dayjs.default)(value);
|
|
2890
|
-
if (!parsedValue.isValid()) {
|
|
2891
|
-
return typeof value === "string" ? value : "";
|
|
2892
|
-
}
|
|
2893
|
-
return parsedValue.format("MMM D, YYYY");
|
|
2894
|
-
};
|
|
2895
|
-
var getTradingVenueLabel = (venue, label) => {
|
|
2896
|
-
if (label)
|
|
2897
|
-
return label;
|
|
2898
|
-
return defaultLabels.venues[venue];
|
|
2899
|
-
};
|
|
3385
|
+
Tabs.displayName = "Tabs";
|
|
2900
3386
|
|
|
2901
3387
|
// src/trading/place-order/index.tsx
|
|
2902
|
-
var
|
|
3388
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2903
3389
|
var WarningFilledIcon2 = ({ className }) => {
|
|
2904
|
-
return /* @__PURE__ */ (0,
|
|
3390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
2905
3391
|
"svg",
|
|
2906
3392
|
{
|
|
2907
3393
|
viewBox: "0 0 16 16",
|
|
@@ -2909,15 +3395,15 @@ var WarningFilledIcon2 = ({ className }) => {
|
|
|
2909
3395
|
className: cn("text-agg-warning", className),
|
|
2910
3396
|
"aria-hidden": "true",
|
|
2911
3397
|
children: [
|
|
2912
|
-
/* @__PURE__ */ (0,
|
|
2913
|
-
/* @__PURE__ */ (0,
|
|
2914
|
-
/* @__PURE__ */ (0,
|
|
3398
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { d: "M8 1.33301L15.3333 14.6663H0.666656L8 1.33301Z", fill: "currentColor" }),
|
|
3399
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { d: "M8 5.33301V8.66634", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
3400
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("circle", { cx: "8", cy: "11.1667", r: "0.833333", fill: "white" })
|
|
2915
3401
|
]
|
|
2916
3402
|
}
|
|
2917
3403
|
);
|
|
2918
3404
|
};
|
|
2919
3405
|
var ErrorFilledIcon = ({ className }) => {
|
|
2920
|
-
return /* @__PURE__ */ (0,
|
|
3406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
2921
3407
|
"svg",
|
|
2922
3408
|
{
|
|
2923
3409
|
viewBox: "0 0 16 16",
|
|
@@ -2925,9 +3411,9 @@ var ErrorFilledIcon = ({ className }) => {
|
|
|
2925
3411
|
className: cn("text-agg-error", className),
|
|
2926
3412
|
"aria-hidden": "true",
|
|
2927
3413
|
children: [
|
|
2928
|
-
/* @__PURE__ */ (0,
|
|
2929
|
-
/* @__PURE__ */ (0,
|
|
2930
|
-
/* @__PURE__ */ (0,
|
|
3414
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("circle", { cx: "8", cy: "8", r: "8", fill: "currentColor" }),
|
|
3415
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { d: "M8 4.16699V8.50033", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
3416
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("circle", { cx: "8", cy: "11.167", r: "0.833333", fill: "white" })
|
|
2931
3417
|
]
|
|
2932
3418
|
}
|
|
2933
3419
|
);
|
|
@@ -2974,17 +3460,17 @@ var getStatusContent = ({
|
|
|
2974
3460
|
if (!status || status.placement !== placement)
|
|
2975
3461
|
return null;
|
|
2976
3462
|
if (status.tone === "warning") {
|
|
2977
|
-
return /* @__PURE__ */ (0,
|
|
2978
|
-
/* @__PURE__ */ (0,
|
|
2979
|
-
/* @__PURE__ */ (0,
|
|
3463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center justify-center gap-2", children: [
|
|
3464
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(WarningFilledIcon2, { className: "h-4 w-4 shrink-0" }),
|
|
3465
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
|
|
2980
3466
|
] });
|
|
2981
3467
|
}
|
|
2982
|
-
return /* @__PURE__ */ (0,
|
|
2983
|
-
/* @__PURE__ */ (0,
|
|
2984
|
-
/* @__PURE__ */ (0,
|
|
2985
|
-
/* @__PURE__ */ (0,
|
|
3468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center gap-3 rounded-agg-lg bg-agg-status-error-surface px-3 py-2.5", children: [
|
|
3469
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
3470
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ErrorFilledIcon, { className: "h-4 w-4 shrink-0" }),
|
|
3471
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "min-w-0 flex-1 text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
|
|
2986
3472
|
] }),
|
|
2987
|
-
status.actionLabel ? /* @__PURE__ */ (0,
|
|
3473
|
+
status.actionLabel ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2988
3474
|
"button",
|
|
2989
3475
|
{
|
|
2990
3476
|
type: "button",
|
|
@@ -3022,11 +3508,11 @@ var PlaceOrder = ({
|
|
|
3022
3508
|
onStatusAction,
|
|
3023
3509
|
onTabChange
|
|
3024
3510
|
}) => {
|
|
3025
|
-
const { enableAnimations } = (0,
|
|
3026
|
-
const labels = (0,
|
|
3511
|
+
const { enableAnimations } = (0, import_hooks14.useSdkUiConfig)();
|
|
3512
|
+
const labels = (0, import_hooks14.useLabels)();
|
|
3027
3513
|
const resolvedDisclaimer = disclaimer === defaultTradingDisclaimer ? labels.trading.disclaimer : disclaimer;
|
|
3028
3514
|
if (isLoading) {
|
|
3029
|
-
return /* @__PURE__ */ (0,
|
|
3515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3030
3516
|
Skeleton,
|
|
3031
3517
|
{
|
|
3032
3518
|
ariaLabel: labels.common.loading,
|
|
@@ -3035,19 +3521,19 @@ var PlaceOrder = ({
|
|
|
3035
3521
|
}
|
|
3036
3522
|
);
|
|
3037
3523
|
}
|
|
3038
|
-
const [internalTab, setInternalTab] = (0,
|
|
3039
|
-
const [internalOutcomeId, setInternalOutcomeId] = (0,
|
|
3040
|
-
(0,
|
|
3524
|
+
const [internalTab, setInternalTab] = (0, import_react4.useState)(activeTab);
|
|
3525
|
+
const [internalOutcomeId, setInternalOutcomeId] = (0, import_react4.useState)(selectedOutcomeId);
|
|
3526
|
+
(0, import_react4.useEffect)(() => {
|
|
3041
3527
|
setInternalTab(activeTab);
|
|
3042
3528
|
}, [activeTab]);
|
|
3043
|
-
(0,
|
|
3529
|
+
(0, import_react4.useEffect)(() => {
|
|
3044
3530
|
setInternalOutcomeId(selectedOutcomeId);
|
|
3045
3531
|
}, [selectedOutcomeId]);
|
|
3046
3532
|
const resolvedTab = onTabChange ? activeTab : internalTab;
|
|
3047
3533
|
const resolvedOutcomeId = onOutcomeChange ? selectedOutcomeId : internalOutcomeId;
|
|
3048
3534
|
const hasHighlightedRouting = routing.tone === "highlighted";
|
|
3049
3535
|
const dateLabel = getTradingDateLabel(marketDate);
|
|
3050
|
-
const tabItems = (0,
|
|
3536
|
+
const tabItems = (0, import_react4.useMemo)(() => {
|
|
3051
3537
|
return [
|
|
3052
3538
|
{ value: "buy", label: buyLabel },
|
|
3053
3539
|
{ value: "sell", label: sellLabel }
|
|
@@ -3065,7 +3551,7 @@ var PlaceOrder = ({
|
|
|
3065
3551
|
}
|
|
3066
3552
|
onOutcomeChange == null ? void 0 : onOutcomeChange(nextOutcomeId);
|
|
3067
3553
|
};
|
|
3068
|
-
const actionButton = /* @__PURE__ */ (0,
|
|
3554
|
+
const actionButton = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3069
3555
|
Button,
|
|
3070
3556
|
{
|
|
3071
3557
|
size: "large",
|
|
@@ -3077,11 +3563,11 @@ var PlaceOrder = ({
|
|
|
3077
3563
|
children: actionLabel
|
|
3078
3564
|
}
|
|
3079
3565
|
);
|
|
3080
|
-
const contentBody = /* @__PURE__ */ (0,
|
|
3081
|
-
/* @__PURE__ */ (0,
|
|
3082
|
-
/* @__PURE__ */ (0,
|
|
3083
|
-
/* @__PURE__ */ (0,
|
|
3084
|
-
marketImageUrl ? /* @__PURE__ */ (0,
|
|
3566
|
+
const contentBody = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-6 p-5", children: [
|
|
3567
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
3568
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
|
|
3569
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
3570
|
+
marketImageUrl ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3085
3571
|
"img",
|
|
3086
3572
|
{
|
|
3087
3573
|
src: marketImageUrl,
|
|
@@ -3089,16 +3575,16 @@ var PlaceOrder = ({
|
|
|
3089
3575
|
className: "h-12 w-12 shrink-0 rounded-agg-lg object-cover"
|
|
3090
3576
|
}
|
|
3091
3577
|
) : null,
|
|
3092
|
-
/* @__PURE__ */ (0,
|
|
3578
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "min-w-0 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: title })
|
|
3093
3579
|
] }),
|
|
3094
|
-
isDismissible ? /* @__PURE__ */ (0,
|
|
3580
|
+
isDismissible ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3095
3581
|
"button",
|
|
3096
3582
|
{
|
|
3097
3583
|
type: "button",
|
|
3098
3584
|
"aria-label": labels.common.close,
|
|
3099
3585
|
className: "shrink-0 text-agg-foreground",
|
|
3100
3586
|
onClick: onClose,
|
|
3101
|
-
children: /* @__PURE__ */ (0,
|
|
3587
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3102
3588
|
Icon,
|
|
3103
3589
|
{
|
|
3104
3590
|
name: "close",
|
|
@@ -3110,9 +3596,9 @@ var PlaceOrder = ({
|
|
|
3110
3596
|
}
|
|
3111
3597
|
) : null
|
|
3112
3598
|
] }),
|
|
3113
|
-
/* @__PURE__ */ (0,
|
|
3599
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: dateLabel })
|
|
3114
3600
|
] }),
|
|
3115
|
-
/* @__PURE__ */ (0,
|
|
3601
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3116
3602
|
Tabs,
|
|
3117
3603
|
{
|
|
3118
3604
|
ariaLabel: labels.common.tabsAria,
|
|
@@ -3128,11 +3614,11 @@ var PlaceOrder = ({
|
|
|
3128
3614
|
}
|
|
3129
3615
|
}
|
|
3130
3616
|
),
|
|
3131
|
-
/* @__PURE__ */ (0,
|
|
3132
|
-
/* @__PURE__ */ (0,
|
|
3617
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
3618
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex w-full gap-2", children: outcomes.map((outcome, index) => {
|
|
3133
3619
|
const isActive = outcome.id === resolvedOutcomeId;
|
|
3134
3620
|
const isPositive = resolveIsPositiveOutcome(outcome, index);
|
|
3135
|
-
return /* @__PURE__ */ (0,
|
|
3621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3136
3622
|
"button",
|
|
3137
3623
|
{
|
|
3138
3624
|
type: "button",
|
|
@@ -3149,16 +3635,16 @@ var PlaceOrder = ({
|
|
|
3149
3635
|
outcome.id
|
|
3150
3636
|
);
|
|
3151
3637
|
}) }),
|
|
3152
|
-
/* @__PURE__ */ (0,
|
|
3153
|
-
/* @__PURE__ */ (0,
|
|
3154
|
-
/* @__PURE__ */ (0,
|
|
3155
|
-
/* @__PURE__ */ (0,
|
|
3638
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
3639
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col", children: [
|
|
3640
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: primaryMetric.label }),
|
|
3641
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: primaryMetric.hint })
|
|
3156
3642
|
] }),
|
|
3157
|
-
/* @__PURE__ */ (0,
|
|
3643
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-3xl font-agg-bold leading-agg-9 text-agg-foreground", children: primaryMetric.value })
|
|
3158
3644
|
] })
|
|
3159
3645
|
] }),
|
|
3160
|
-
/* @__PURE__ */ (0,
|
|
3161
|
-
/* @__PURE__ */ (0,
|
|
3646
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
3647
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
3162
3648
|
"div",
|
|
3163
3649
|
{
|
|
3164
3650
|
className: cn(
|
|
@@ -3166,7 +3652,7 @@ var PlaceOrder = ({
|
|
|
3166
3652
|
getRoutingCardClassName(hasHighlightedRouting)
|
|
3167
3653
|
),
|
|
3168
3654
|
children: [
|
|
3169
|
-
/* @__PURE__ */ (0,
|
|
3655
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3170
3656
|
"div",
|
|
3171
3657
|
{
|
|
3172
3658
|
className: cn(
|
|
@@ -3175,11 +3661,11 @@ var PlaceOrder = ({
|
|
|
3175
3661
|
)
|
|
3176
3662
|
}
|
|
3177
3663
|
),
|
|
3178
|
-
/* @__PURE__ */ (0,
|
|
3179
|
-
routing.rows.map((row, index) => /* @__PURE__ */ (0,
|
|
3180
|
-
/* @__PURE__ */ (0,
|
|
3181
|
-
/* @__PURE__ */ (0,
|
|
3182
|
-
/* @__PURE__ */ (0,
|
|
3664
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "relative flex flex-col gap-3", children: [
|
|
3665
|
+
routing.rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
3666
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
3667
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
3668
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3183
3669
|
VenueLogo,
|
|
3184
3670
|
{
|
|
3185
3671
|
venue: row.venue,
|
|
@@ -3187,11 +3673,11 @@ var PlaceOrder = ({
|
|
|
3187
3673
|
ariaLabel: getTradingVenueLabel(row.venue)
|
|
3188
3674
|
}
|
|
3189
3675
|
),
|
|
3190
|
-
/* @__PURE__ */ (0,
|
|
3676
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "truncate text-agg-base leading-agg-6 text-agg-foreground", children: row.label })
|
|
3191
3677
|
] }),
|
|
3192
|
-
/* @__PURE__ */ (0,
|
|
3678
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "shrink-0 text-agg-base leading-agg-6 text-agg-foreground", children: row.priceLabel })
|
|
3193
3679
|
] }),
|
|
3194
|
-
index < routing.rows.length - 1 ? /* @__PURE__ */ (0,
|
|
3680
|
+
index < routing.rows.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3195
3681
|
"div",
|
|
3196
3682
|
{
|
|
3197
3683
|
className: cn(
|
|
@@ -3201,19 +3687,19 @@ var PlaceOrder = ({
|
|
|
3201
3687
|
}
|
|
3202
3688
|
) : null
|
|
3203
3689
|
] }, `${row.venue}-${row.label}`)),
|
|
3204
|
-
routing.highlightLabel ? /* @__PURE__ */ (0,
|
|
3690
|
+
routing.highlightLabel ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-center text-agg-sm font-agg-bold leading-agg-5 uppercase text-agg-trade-highlight-accent", children: routing.highlightLabel }) : null
|
|
3205
3691
|
] })
|
|
3206
3692
|
]
|
|
3207
3693
|
}
|
|
3208
3694
|
),
|
|
3209
|
-
/* @__PURE__ */ (0,
|
|
3695
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: routing.helperLabel })
|
|
3210
3696
|
] }),
|
|
3211
|
-
/* @__PURE__ */ (0,
|
|
3212
|
-
/* @__PURE__ */ (0,
|
|
3213
|
-
/* @__PURE__ */ (0,
|
|
3214
|
-
/* @__PURE__ */ (0,
|
|
3697
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
3698
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col", children: [
|
|
3699
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: result.label }),
|
|
3700
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: result.hint })
|
|
3215
3701
|
] }),
|
|
3216
|
-
/* @__PURE__ */ (0,
|
|
3702
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3217
3703
|
"p",
|
|
3218
3704
|
{
|
|
3219
3705
|
className: cn(
|
|
@@ -3224,7 +3710,7 @@ var PlaceOrder = ({
|
|
|
3224
3710
|
}
|
|
3225
3711
|
)
|
|
3226
3712
|
] }),
|
|
3227
|
-
/* @__PURE__ */ (0,
|
|
3713
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
3228
3714
|
getStatusContent({
|
|
3229
3715
|
placement: "above-action",
|
|
3230
3716
|
status,
|
|
@@ -3237,12 +3723,39 @@ var PlaceOrder = ({
|
|
|
3237
3723
|
onStatusAction
|
|
3238
3724
|
})
|
|
3239
3725
|
] }),
|
|
3240
|
-
/* @__PURE__ */ (0,
|
|
3726
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-center text-agg-xs leading-agg-4 text-agg-muted-foreground", children: resolvedDisclaimer })
|
|
3241
3727
|
] });
|
|
3242
|
-
return /* @__PURE__ */ (0,
|
|
3728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card, { className: cn(getPlaceOrderContainerClassName(), className), children: contentBody });
|
|
3243
3729
|
};
|
|
3244
3730
|
PlaceOrder.displayName = "PlaceOrder";
|
|
3245
3731
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3246
3732
|
0 && (module.exports = {
|
|
3247
|
-
PlaceOrder
|
|
3733
|
+
PlaceOrder,
|
|
3734
|
+
Settlement,
|
|
3735
|
+
defaultSettlementDifferencesTitle,
|
|
3736
|
+
defaultSettlementSectionLabel,
|
|
3737
|
+
defaultTradingDisclaimer,
|
|
3738
|
+
getTradingAveragePriceLabel,
|
|
3739
|
+
getTradingBalanceLabel,
|
|
3740
|
+
getTradingDateLabel,
|
|
3741
|
+
getTradingPriceLabel,
|
|
3742
|
+
getTradingSharesLabel,
|
|
3743
|
+
getTradingSlippageLabel,
|
|
3744
|
+
getTradingValueLabel,
|
|
3745
|
+
getTradingVenueLabel,
|
|
3746
|
+
placeOrderMetricSchema,
|
|
3747
|
+
placeOrderOutcomeSchema,
|
|
3748
|
+
placeOrderResultSchema,
|
|
3749
|
+
placeOrderResultToneSchema,
|
|
3750
|
+
placeOrderRoutingRowSchema,
|
|
3751
|
+
placeOrderRoutingSchema,
|
|
3752
|
+
placeOrderRoutingToneSchema,
|
|
3753
|
+
placeOrderStatusPlacementSchema,
|
|
3754
|
+
placeOrderStatusSchema,
|
|
3755
|
+
placeOrderStatusToneSchema,
|
|
3756
|
+
placeOrderTabSchema,
|
|
3757
|
+
placeOrderViewModelSchema,
|
|
3758
|
+
settlementVenueSchema,
|
|
3759
|
+
settlementViewModelSchema,
|
|
3760
|
+
tradingVenueSchema
|
|
3248
3761
|
});
|