@agg-build/ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +287 -0
- package/dist/chunk-2QJXRRYP.mjs +37 -0
- package/dist/chunk-6NS7D73S.mjs +8811 -0
- package/dist/chunk-75IGOQ4N.mjs +3415 -0
- package/dist/chunk-C7T56TJR.mjs +748 -0
- package/dist/chunk-CGNDMLQL.mjs +3813 -0
- package/dist/chunk-DMKKNK76.mjs +3742 -0
- package/dist/chunk-I2WBGEWK.mjs +4512 -0
- package/dist/chunk-KHHFHXXD.mjs +1 -0
- package/dist/events.d.mts +1 -0
- package/dist/events.d.ts +1 -0
- package/dist/events.js +11414 -0
- package/dist/events.mjs +41 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25520 -0
- package/dist/index.mjs +978 -0
- package/dist/modals.d.mts +1 -0
- package/dist/modals.d.ts +1 -0
- package/dist/modals.js +7743 -0
- package/dist/modals.mjs +36 -0
- package/dist/pages.d.mts +1 -0
- package/dist/pages.d.ts +1 -0
- package/dist/pages.js +20230 -0
- package/dist/pages.mjs +33 -0
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/primitives.js +8599 -0
- package/dist/primitives.mjs +179 -0
- package/dist/styles.css +2 -0
- package/dist/tailwind.css +2 -0
- package/dist/trading.d.mts +1 -0
- package/dist/trading.d.ts +1 -0
- package/dist/trading.js +8658 -0
- package/dist/trading.mjs +49 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +30 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +30 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +115 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +115 -0
- package/dist/types/auth/connect-button-view/index.d.mts +7 -0
- package/dist/types/auth/connect-button-view/index.d.ts +7 -0
- package/dist/types/auth/index.d.mts +1 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/constants.d.mts +5 -0
- package/dist/types/constants.d.ts +5 -0
- package/dist/types/deposit/components/DepositQRCode.d.mts +12 -0
- package/dist/types/deposit/components/DepositQRCode.d.ts +12 -0
- package/dist/types/deposit/deposit-modal.constants.d.mts +10 -0
- package/dist/types/deposit/deposit-modal.constants.d.ts +10 -0
- package/dist/types/deposit/deposit-modal.types.d.mts +233 -0
- package/dist/types/deposit/deposit-modal.types.d.ts +233 -0
- package/dist/types/deposit/index.d.mts +22 -0
- package/dist/types/deposit/index.d.ts +22 -0
- package/dist/types/deposit/steps/card-deposit.d.mts +17 -0
- package/dist/types/deposit/steps/card-deposit.d.ts +17 -0
- package/dist/types/deposit/steps/card-payment-pending.d.mts +7 -0
- package/dist/types/deposit/steps/card-payment-pending.d.ts +7 -0
- package/dist/types/deposit/steps/card-provider.d.mts +14 -0
- package/dist/types/deposit/steps/card-provider.d.ts +14 -0
- package/dist/types/deposit/steps/card-purchase-success.d.mts +7 -0
- package/dist/types/deposit/steps/card-purchase-success.d.ts +7 -0
- package/dist/types/deposit/steps/card-widget.d.mts +6 -0
- package/dist/types/deposit/steps/card-widget.d.ts +6 -0
- package/dist/types/deposit/steps/crypto-transfer.d.mts +19 -0
- package/dist/types/deposit/steps/crypto-transfer.d.ts +19 -0
- package/dist/types/deposit/steps/deposit-method.d.mts +12 -0
- package/dist/types/deposit/steps/deposit-method.d.ts +12 -0
- package/dist/types/deposit/steps/venue-selection.d.mts +7 -0
- package/dist/types/deposit/steps/venue-selection.d.ts +7 -0
- package/dist/types/deposit/steps/wallet-form.d.mts +24 -0
- package/dist/types/deposit/steps/wallet-form.d.ts +24 -0
- package/dist/types/deposit/steps/wallet-processing.d.mts +7 -0
- package/dist/types/deposit/steps/wallet-processing.d.ts +7 -0
- package/dist/types/deposit/steps/wallet-success.d.mts +7 -0
- package/dist/types/deposit/steps/wallet-success.d.ts +7 -0
- package/dist/types/events/index.d.mts +5 -0
- package/dist/types/events/index.d.ts +5 -0
- package/dist/types/events/item/event-list-item.constants.d.mts +1 -0
- package/dist/types/events/item/event-list-item.constants.d.ts +1 -0
- package/dist/types/events/item/event-list-item.types.d.mts +71 -0
- package/dist/types/events/item/event-list-item.types.d.ts +71 -0
- package/dist/types/events/item/event-list-item.utils.d.mts +46 -0
- package/dist/types/events/item/event-list-item.utils.d.ts +46 -0
- package/dist/types/events/item/index.d.mts +6 -0
- package/dist/types/events/item/index.d.ts +6 -0
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.mts +10 -0
- package/dist/types/events/item-details/event-list-item-details-market-selector.d.ts +10 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.mts +3 -0
- package/dist/types/events/item-details/event-list-item-details.constants.d.ts +3 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +116 -0
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +116 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.mts +75 -0
- package/dist/types/events/item-details/event-list-item-details.utils.d.ts +75 -0
- package/dist/types/events/item-details/index.d.mts +8 -0
- package/dist/types/events/item-details/index.d.ts +8 -0
- package/dist/types/events/item-details/settlement-summary.d.mts +9 -0
- package/dist/types/events/item-details/settlement-summary.d.ts +9 -0
- package/dist/types/events/list/event-list-tabs.d.mts +44 -0
- package/dist/types/events/list/event-list-tabs.d.ts +44 -0
- package/dist/types/events/list/event-list.constants.d.mts +4 -0
- package/dist/types/events/list/event-list.constants.d.ts +4 -0
- package/dist/types/events/list/event-list.types.d.mts +48 -0
- package/dist/types/events/list/event-list.types.d.ts +48 -0
- package/dist/types/events/list/event-list.utils.d.mts +19 -0
- package/dist/types/events/list/event-list.utils.d.ts +19 -0
- package/dist/types/events/list/index.d.mts +6 -0
- package/dist/types/events/list/index.d.ts +6 -0
- package/dist/types/events/market-details/index.d.mts +12 -0
- package/dist/types/events/market-details/index.d.ts +12 -0
- package/dist/types/events/market-details/market-details-outcome-button.d.mts +13 -0
- package/dist/types/events/market-details/market-details-outcome-button.d.ts +13 -0
- package/dist/types/events/market-details/market-details.constants.d.mts +9 -0
- package/dist/types/events/market-details/market-details.constants.d.ts +9 -0
- package/dist/types/events/market-details/market-details.types.d.mts +143 -0
- package/dist/types/events/market-details/market-details.types.d.ts +143 -0
- package/dist/types/events/market-details/market-details.utils.d.mts +72 -0
- package/dist/types/events/market-details/market-details.utils.d.ts +72 -0
- package/dist/types/events/market-details/orderbook-aggregation.d.mts +30 -0
- package/dist/types/events/market-details/orderbook-aggregation.d.ts +30 -0
- package/dist/types/events/orderbook/index.d.mts +11 -0
- package/dist/types/events/orderbook/index.d.ts +11 -0
- package/dist/types/events/orderbook/orderbook-with-states.d.mts +35 -0
- package/dist/types/events/orderbook/orderbook-with-states.d.ts +35 -0
- package/dist/types/events/orderbook/orderbook.constants.d.mts +10 -0
- package/dist/types/events/orderbook/orderbook.constants.d.ts +10 -0
- package/dist/types/events/orderbook/orderbook.types.d.mts +65 -0
- package/dist/types/events/orderbook/orderbook.types.d.ts +65 -0
- package/dist/types/events/orderbook/orderbook.utils.d.mts +13 -0
- package/dist/types/events/orderbook/orderbook.utils.d.ts +13 -0
- package/dist/types/events/orderbook/use-center-orderbook-spread.d.mts +13 -0
- package/dist/types/events/orderbook/use-center-orderbook-spread.d.ts +13 -0
- package/dist/types/events/shared/chart-venue-selection.d.mts +20 -0
- package/dist/types/events/shared/chart-venue-selection.d.ts +20 -0
- package/dist/types/events/shared/event-trading-state.utils.d.mts +14 -0
- package/dist/types/events/shared/event-trading-state.utils.d.ts +14 -0
- package/dist/types/events/shared/venue-market-cluster.d.mts +11 -0
- package/dist/types/events/shared/venue-market-cluster.d.ts +11 -0
- package/dist/types/geo-block-banner/index.d.mts +12 -0
- package/dist/types/geo-block-banner/index.d.ts +12 -0
- package/dist/types/geo-block-modal/geo-block-modal.types.d.mts +13 -0
- package/dist/types/geo-block-modal/geo-block-modal.types.d.ts +13 -0
- package/dist/types/geo-block-modal/index.d.mts +6 -0
- package/dist/types/geo-block-modal/index.d.ts +6 -0
- package/dist/types/index.d.mts +10 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/modals/index.d.mts +6 -0
- package/dist/types/modals/index.d.ts +6 -0
- package/dist/types/onboarding/index.d.mts +11 -0
- package/dist/types/onboarding/index.d.ts +11 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.mts +10 -0
- package/dist/types/onboarding/onboarding-modal.constants.d.ts +10 -0
- package/dist/types/onboarding/onboarding-modal.types.d.mts +76 -0
- package/dist/types/onboarding/onboarding-modal.types.d.ts +76 -0
- package/dist/types/onboarding/steps/connect-accounts.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-accounts.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-kalshi-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.mts +5 -0
- package/dist/types/onboarding/steps/connect-onchain-modal.d.ts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.mts +5 -0
- package/dist/types/onboarding/steps/how-it-works.d.ts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.mts +5 -0
- package/dist/types/onboarding/steps/profile-setup.d.ts +5 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +84 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +84 -0
- package/dist/types/pages/event-market/event-market.utils.d.mts +14 -0
- package/dist/types/pages/event-market/event-market.utils.d.ts +14 -0
- package/dist/types/pages/event-market/index.d.mts +8 -0
- package/dist/types/pages/event-market/index.d.ts +8 -0
- package/dist/types/pages/home/home.constants.d.mts +6 -0
- package/dist/types/pages/home/home.constants.d.ts +6 -0
- package/dist/types/pages/home/home.types.d.mts +85 -0
- package/dist/types/pages/home/home.types.d.ts +85 -0
- package/dist/types/pages/home/home.utils.d.mts +7 -0
- package/dist/types/pages/home/home.utils.d.ts +7 -0
- package/dist/types/pages/home/index.d.mts +9 -0
- package/dist/types/pages/home/index.d.ts +9 -0
- package/dist/types/pages/home/use-home-page-modals.d.mts +32 -0
- package/dist/types/pages/home/use-home-page-modals.d.ts +32 -0
- package/dist/types/pages/home/use-scroll-restoration.d.mts +17 -0
- package/dist/types/pages/home/use-scroll-restoration.d.ts +17 -0
- package/dist/types/pages/index.d.mts +4 -0
- package/dist/types/pages/index.d.ts +4 -0
- package/dist/types/pages/user-profile/chain-display.d.mts +1 -0
- package/dist/types/pages/user-profile/chain-display.d.ts +1 -0
- package/dist/types/pages/user-profile/components/activity-row.d.mts +11 -0
- package/dist/types/pages/user-profile/components/activity-row.d.ts +11 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +18 -0
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +18 -0
- package/dist/types/pages/user-profile/components/balance-display.d.mts +10 -0
- package/dist/types/pages/user-profile/components/balance-display.d.ts +10 -0
- package/dist/types/pages/user-profile/components/balances-card.d.mts +12 -0
- package/dist/types/pages/user-profile/components/balances-card.d.ts +12 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.mts +8 -0
- package/dist/types/pages/user-profile/components/default-avatar.d.ts +8 -0
- package/dist/types/pages/user-profile/components/empty-state.d.mts +10 -0
- package/dist/types/pages/user-profile/components/empty-state.d.ts +10 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.mts +12 -0
- package/dist/types/pages/user-profile/components/open-order-row.d.ts +12 -0
- package/dist/types/pages/user-profile/components/position-row.d.mts +15 -0
- package/dist/types/pages/user-profile/components/position-row.d.ts +15 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.mts +51 -0
- package/dist/types/pages/user-profile/components/positions-activity.d.ts +51 -0
- package/dist/types/pages/user-profile/components/positions-value-card.d.mts +10 -0
- package/dist/types/pages/user-profile/components/positions-value-card.d.ts +10 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +15 -0
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +15 -0
- package/dist/types/pages/user-profile/index.d.mts +10 -0
- package/dist/types/pages/user-profile/index.d.ts +10 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.mts +9 -0
- package/dist/types/pages/user-profile/user-profile.constants.d.ts +9 -0
- package/dist/types/pages/user-profile/user-profile.types.d.mts +281 -0
- package/dist/types/pages/user-profile/user-profile.types.d.ts +281 -0
- package/dist/types/primitives/agg-logo/agg-logo.constants.d.mts +3 -0
- package/dist/types/primitives/agg-logo/agg-logo.constants.d.ts +3 -0
- package/dist/types/primitives/agg-logo/agg-logo.types.d.mts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.types.d.ts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.mts +2 -0
- package/dist/types/primitives/agg-logo/agg-logo.utils.d.ts +2 -0
- package/dist/types/primitives/agg-logo/index.d.mts +7 -0
- package/dist/types/primitives/agg-logo/index.d.ts +7 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.mts +1 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.ts +1 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.mts +26 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.ts +26 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.mts +7 -0
- package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.ts +7 -0
- package/dist/types/primitives/autocomplete-select/index.d.mts +7 -0
- package/dist/types/primitives/autocomplete-select/index.d.ts +7 -0
- package/dist/types/primitives/badge/badge.constants.d.mts +4 -0
- package/dist/types/primitives/badge/badge.constants.d.ts +4 -0
- package/dist/types/primitives/badge/badge.types.d.mts +27 -0
- package/dist/types/primitives/badge/badge.types.d.ts +27 -0
- package/dist/types/primitives/badge/badge.utils.d.mts +11 -0
- package/dist/types/primitives/badge/badge.utils.d.ts +11 -0
- package/dist/types/primitives/badge/index.d.mts +8 -0
- package/dist/types/primitives/badge/index.d.ts +8 -0
- package/dist/types/primitives/button/button.constants.d.mts +6 -0
- package/dist/types/primitives/button/button.constants.d.ts +6 -0
- package/dist/types/primitives/button/button.types.d.mts +18 -0
- package/dist/types/primitives/button/button.types.d.ts +18 -0
- package/dist/types/primitives/button/button.utils.d.mts +12 -0
- package/dist/types/primitives/button/button.utils.d.ts +12 -0
- package/dist/types/primitives/button/index.d.mts +7 -0
- package/dist/types/primitives/button/index.d.ts +7 -0
- package/dist/types/primitives/card/card.constants.d.mts +4 -0
- package/dist/types/primitives/card/card.constants.d.ts +4 -0
- package/dist/types/primitives/card/card.types.d.mts +8 -0
- package/dist/types/primitives/card/card.types.d.ts +8 -0
- package/dist/types/primitives/card/card.utils.d.mts +8 -0
- package/dist/types/primitives/card/card.utils.d.ts +8 -0
- package/dist/types/primitives/card/index.d.mts +6 -0
- package/dist/types/primitives/card/index.d.ts +6 -0
- package/dist/types/primitives/chart/chart-type-switch.constants.d.mts +2 -0
- package/dist/types/primitives/chart/chart-type-switch.constants.d.ts +2 -0
- package/dist/types/primitives/chart/chart-type-switch.d.mts +7 -0
- package/dist/types/primitives/chart/chart-type-switch.d.ts +7 -0
- package/dist/types/primitives/chart/chart-type-switch.types.d.mts +9 -0
- package/dist/types/primitives/chart/chart-type-switch.types.d.ts +9 -0
- package/dist/types/primitives/chart/chart-type-switch.utils.d.mts +13 -0
- package/dist/types/primitives/chart/chart-type-switch.utils.d.ts +13 -0
- package/dist/types/primitives/chart/chart.constants.d.mts +5 -0
- package/dist/types/primitives/chart/chart.constants.d.ts +5 -0
- package/dist/types/primitives/chart/chart.types.d.mts +59 -0
- package/dist/types/primitives/chart/chart.types.d.ts +59 -0
- package/dist/types/primitives/chart/chart.utils.d.mts +35 -0
- package/dist/types/primitives/chart/chart.utils.d.ts +35 -0
- package/dist/types/primitives/chart/index.d.mts +7 -0
- package/dist/types/primitives/chart/index.d.ts +7 -0
- package/dist/types/primitives/conditional-wrapper.d.mts +11 -0
- package/dist/types/primitives/conditional-wrapper.d.ts +11 -0
- package/dist/types/primitives/currency-input/currency-input.constants.d.mts +6 -0
- package/dist/types/primitives/currency-input/currency-input.constants.d.ts +6 -0
- package/dist/types/primitives/currency-input/currency-input.types.d.mts +36 -0
- package/dist/types/primitives/currency-input/currency-input.types.d.ts +36 -0
- package/dist/types/primitives/currency-input/currency-input.utils.d.mts +10 -0
- package/dist/types/primitives/currency-input/currency-input.utils.d.ts +10 -0
- package/dist/types/primitives/currency-input/index.d.mts +7 -0
- package/dist/types/primitives/currency-input/index.d.ts +7 -0
- package/dist/types/primitives/error-boundary/index.d.mts +24 -0
- package/dist/types/primitives/error-boundary/index.d.ts +24 -0
- package/dist/types/primitives/footer/agg-build-logo.d.mts +16 -0
- package/dist/types/primitives/footer/agg-build-logo.d.ts +16 -0
- package/dist/types/primitives/footer/footer.constants.d.mts +3 -0
- package/dist/types/primitives/footer/footer.constants.d.ts +3 -0
- package/dist/types/primitives/footer/footer.types.d.mts +25 -0
- package/dist/types/primitives/footer/footer.types.d.ts +25 -0
- package/dist/types/primitives/footer/index.d.mts +8 -0
- package/dist/types/primitives/footer/index.d.ts +8 -0
- package/dist/types/primitives/header/agg-logo.d.mts +2 -0
- package/dist/types/primitives/header/agg-logo.d.ts +2 -0
- package/dist/types/primitives/header/header.constants.d.mts +2 -0
- package/dist/types/primitives/header/header.constants.d.ts +2 -0
- package/dist/types/primitives/header/header.types.d.mts +42 -0
- package/dist/types/primitives/header/header.types.d.ts +42 -0
- package/dist/types/primitives/header/header.utils.d.mts +12 -0
- package/dist/types/primitives/header/header.utils.d.ts +12 -0
- package/dist/types/primitives/header/index.d.mts +8 -0
- package/dist/types/primitives/header/index.d.ts +8 -0
- package/dist/types/primitives/icon/icon.constants.d.mts +2 -0
- package/dist/types/primitives/icon/icon.constants.d.ts +2 -0
- package/dist/types/primitives/icon/icon.types.d.mts +12 -0
- package/dist/types/primitives/icon/icon.types.d.ts +12 -0
- package/dist/types/primitives/icon/icon.utils.d.mts +3 -0
- package/dist/types/primitives/icon/icon.utils.d.ts +3 -0
- package/dist/types/primitives/icon/index.d.mts +68 -0
- package/dist/types/primitives/icon/index.d.ts +68 -0
- package/dist/types/primitives/icon/registry.d.mts +286 -0
- package/dist/types/primitives/icon/registry.d.ts +286 -0
- package/dist/types/primitives/icon/svg/activity-chart.d.mts +5 -0
- package/dist/types/primitives/icon/svg/activity-chart.d.ts +5 -0
- package/dist/types/primitives/icon/svg/activity.d.mts +5 -0
- package/dist/types/primitives/icon/svg/activity.d.ts +5 -0
- package/dist/types/primitives/icon/svg/apple.d.mts +5 -0
- package/dist/types/primitives/icon/svg/apple.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arbitrum.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arbitrum.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrow-right.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrow-right.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrow-trend-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.mts +5 -0
- package/dist/types/primitives/icon/svg/arrows-to-dot.d.ts +5 -0
- package/dist/types/primitives/icon/svg/badge-check-thin.d.mts +5 -0
- package/dist/types/primitives/icon/svg/badge-check-thin.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bank.d.ts +5 -0
- package/dist/types/primitives/icon/svg/base.d.mts +5 -0
- package/dist/types/primitives/icon/svg/base.d.ts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.mts +5 -0
- package/dist/types/primitives/icon/svg/best-prices.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bnb.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bnb.d.ts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/bolt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-badge.d.ts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.mts +5 -0
- package/dist/types/primitives/icon/svg/check-circle.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.mts +6 -0
- package/dist/types/primitives/icon/svg/chevron-down-thin.d.ts +6 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-left.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-right.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chevron-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/close.d.mts +5 -0
- package/dist/types/primitives/icon/svg/close.d.ts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.mts +5 -0
- package/dist/types/primitives/icon/svg/copy.d.ts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.mts +5 -0
- package/dist/types/primitives/icon/svg/create-account.d.ts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.mts +5 -0
- package/dist/types/primitives/icon/svg/credit-card.d.ts +5 -0
- package/dist/types/primitives/icon/svg/cross-circle.d.mts +5 -0
- package/dist/types/primitives/icon/svg/cross-circle.d.ts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.mts +5 -0
- package/dist/types/primitives/icon/svg/disconnect.d.ts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.mts +5 -0
- package/dist/types/primitives/icon/svg/discord.d.ts +5 -0
- package/dist/types/primitives/icon/svg/document.d.mts +5 -0
- package/dist/types/primitives/icon/svg/document.d.ts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.mts +5 -0
- package/dist/types/primitives/icon/svg/dots-horizontal.d.ts +5 -0
- package/dist/types/primitives/icon/svg/download.d.mts +5 -0
- package/dist/types/primitives/icon/svg/download.d.ts +5 -0
- package/dist/types/primitives/icon/svg/email.d.mts +5 -0
- package/dist/types/primitives/icon/svg/email.d.ts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.mts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.ts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.mts +5 -0
- package/dist/types/primitives/icon/svg/external-link.d.ts +5 -0
- package/dist/types/primitives/icon/svg/google.d.mts +5 -0
- package/dist/types/primitives/icon/svg/google.d.ts +5 -0
- package/dist/types/primitives/icon/svg/image.d.mts +5 -0
- package/dist/types/primitives/icon/svg/image.d.ts +5 -0
- package/dist/types/primitives/icon/svg/info.d.mts +5 -0
- package/dist/types/primitives/icon/svg/info.d.ts +5 -0
- package/dist/types/primitives/icon/svg/internet-security.d.mts +5 -0
- package/dist/types/primitives/icon/svg/internet-security.d.ts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.mts +5 -0
- package/dist/types/primitives/icon/svg/link-accounts.d.ts +5 -0
- package/dist/types/primitives/icon/svg/paper-plane.d.mts +5 -0
- package/dist/types/primitives/icon/svg/paper-plane.d.ts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.mts +5 -0
- package/dist/types/primitives/icon/svg/pencil.d.ts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.mts +5 -0
- package/dist/types/primitives/icon/svg/play-square.d.ts +5 -0
- package/dist/types/primitives/icon/svg/polygon.d.mts +5 -0
- package/dist/types/primitives/icon/svg/polygon.d.ts +5 -0
- package/dist/types/primitives/icon/svg/profile-about-tab.d.mts +6 -0
- package/dist/types/primitives/icon/svg/profile-about-tab.d.ts +6 -0
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.mts +6 -0
- package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.ts +6 -0
- package/dist/types/primitives/icon/svg/profile.d.mts +5 -0
- package/dist/types/primitives/icon/svg/profile.d.ts +5 -0
- package/dist/types/primitives/icon/svg/quotes-warning.d.mts +6 -0
- package/dist/types/primitives/icon/svg/quotes-warning.d.ts +6 -0
- package/dist/types/primitives/icon/svg/recenter.d.mts +5 -0
- package/dist/types/primitives/icon/svg/recenter.d.ts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.mts +5 -0
- package/dist/types/primitives/icon/svg/revenue-alt.d.ts +5 -0
- package/dist/types/primitives/icon/svg/search.d.mts +5 -0
- package/dist/types/primitives/icon/svg/search.d.ts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.mts +5 -0
- package/dist/types/primitives/icon/svg/shield-trust.d.ts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.mts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.ts +5 -0
- package/dist/types/primitives/icon/svg/sparkles-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/sparkles-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.mts +5 -0
- package/dist/types/primitives/icon/svg/stay-in-control.d.ts +5 -0
- package/dist/types/primitives/icon/svg/success-check.d.mts +5 -0
- package/dist/types/primitives/icon/svg/success-check.d.ts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.mts +5 -0
- package/dist/types/primitives/icon/svg/telegram.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-down.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.mts +5 -0
- package/dist/types/primitives/icon/svg/triangle-up.d.ts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.mts +5 -0
- package/dist/types/primitives/icon/svg/twitter.d.ts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.mts +5 -0
- package/dist/types/primitives/icon/svg/upload.d.ts +5 -0
- package/dist/types/primitives/icon/svg/usdc.d.mts +5 -0
- package/dist/types/primitives/icon/svg/usdc.d.ts +5 -0
- package/dist/types/primitives/icon/svg/user-trust.d.mts +5 -0
- package/dist/types/primitives/icon/svg/user-trust.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet-avatar.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.mts +5 -0
- package/dist/types/primitives/icon/svg/wallet.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.mts +5 -0
- package/dist/types/primitives/icon/svg/warning.d.ts +5 -0
- package/dist/types/primitives/icon/types.d.mts +6 -0
- package/dist/types/primitives/icon/types.d.ts +6 -0
- package/dist/types/primitives/index.d.mts +25 -0
- package/dist/types/primitives/index.d.ts +25 -0
- package/dist/types/primitives/inline-alert/index.d.mts +7 -0
- package/dist/types/primitives/inline-alert/index.d.ts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.constants.d.mts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.constants.d.ts +7 -0
- package/dist/types/primitives/inline-alert/inline-alert.types.d.mts +24 -0
- package/dist/types/primitives/inline-alert/inline-alert.types.d.ts +24 -0
- package/dist/types/primitives/inline-alert/inline-alert.utils.d.mts +10 -0
- package/dist/types/primitives/inline-alert/inline-alert.utils.d.ts +10 -0
- package/dist/types/primitives/loading-icon/index.d.mts +7 -0
- package/dist/types/primitives/loading-icon/index.d.ts +7 -0
- package/dist/types/primitives/loading-icon/loading-icon.constants.d.mts +11 -0
- package/dist/types/primitives/loading-icon/loading-icon.constants.d.ts +11 -0
- package/dist/types/primitives/loading-icon/loading-icon.types.d.mts +15 -0
- package/dist/types/primitives/loading-icon/loading-icon.types.d.ts +15 -0
- package/dist/types/primitives/loading-icon/loading-icon.utils.d.mts +5 -0
- package/dist/types/primitives/loading-icon/loading-icon.utils.d.ts +5 -0
- package/dist/types/primitives/modal/index.d.mts +11 -0
- package/dist/types/primitives/modal/index.d.ts +11 -0
- package/dist/types/primitives/modal/modal.constants.d.mts +2 -0
- package/dist/types/primitives/modal/modal.constants.d.ts +2 -0
- package/dist/types/primitives/modal/modal.types.d.mts +78 -0
- package/dist/types/primitives/modal/modal.types.d.ts +78 -0
- package/dist/types/primitives/modal/modal.utils.d.mts +8 -0
- package/dist/types/primitives/modal/modal.utils.d.ts +8 -0
- package/dist/types/primitives/number-value.d.mts +12 -0
- package/dist/types/primitives/number-value.d.ts +12 -0
- package/dist/types/primitives/remote-image/index.d.mts +7 -0
- package/dist/types/primitives/remote-image/index.d.ts +7 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.mts +28 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.ts +28 -0
- package/dist/types/primitives/remote-image/remote-image.utils.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.utils.d.ts +4 -0
- package/dist/types/primitives/search/index.d.mts +7 -0
- package/dist/types/primitives/search/index.d.ts +7 -0
- package/dist/types/primitives/search/search-empty-icon.d.mts +5 -0
- package/dist/types/primitives/search/search-empty-icon.d.ts +5 -0
- package/dist/types/primitives/search/search.constants.d.mts +3 -0
- package/dist/types/primitives/search/search.constants.d.ts +3 -0
- package/dist/types/primitives/search/search.types.d.mts +57 -0
- package/dist/types/primitives/search/search.types.d.ts +57 -0
- package/dist/types/primitives/search/search.utils.d.mts +4 -0
- package/dist/types/primitives/search/search.utils.d.ts +4 -0
- package/dist/types/primitives/select/index.d.mts +7 -0
- package/dist/types/primitives/select/index.d.ts +7 -0
- package/dist/types/primitives/select/select.constants.d.mts +1 -0
- package/dist/types/primitives/select/select.constants.d.ts +1 -0
- package/dist/types/primitives/select/select.types.d.mts +25 -0
- package/dist/types/primitives/select/select.types.d.ts +25 -0
- package/dist/types/primitives/select/select.utils.d.mts +9 -0
- package/dist/types/primitives/select/select.utils.d.ts +9 -0
- package/dist/types/primitives/skeleton/index.d.mts +8 -0
- package/dist/types/primitives/skeleton/index.d.ts +8 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.mts +8 -0
- package/dist/types/primitives/skeleton/skeleton-block.d.ts +8 -0
- package/dist/types/primitives/skeleton/skeleton.constants.d.mts +1 -0
- package/dist/types/primitives/skeleton/skeleton.constants.d.ts +1 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.mts +27 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.ts +27 -0
- package/dist/types/primitives/skeleton/skeleton.utils.d.mts +3 -0
- package/dist/types/primitives/skeleton/skeleton.utils.d.ts +3 -0
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.mts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.ts +9 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.mts +12 -0
- package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.ts +12 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.ts +5 -0
- package/dist/types/primitives/state-message/index.d.mts +7 -0
- package/dist/types/primitives/state-message/index.d.ts +7 -0
- package/dist/types/primitives/state-message/state-message.constants.d.mts +1 -0
- package/dist/types/primitives/state-message/state-message.constants.d.ts +1 -0
- package/dist/types/primitives/state-message/state-message.types.d.mts +24 -0
- package/dist/types/primitives/state-message/state-message.types.d.ts +24 -0
- package/dist/types/primitives/state-message/state-message.utils.d.mts +4 -0
- package/dist/types/primitives/state-message/state-message.utils.d.ts +4 -0
- package/dist/types/primitives/switch-button/index.d.mts +7 -0
- package/dist/types/primitives/switch-button/index.d.ts +7 -0
- package/dist/types/primitives/switch-button/switch-button.constants.d.mts +5 -0
- package/dist/types/primitives/switch-button/switch-button.constants.d.ts +5 -0
- package/dist/types/primitives/switch-button/switch-button.types.d.mts +19 -0
- package/dist/types/primitives/switch-button/switch-button.types.d.ts +19 -0
- package/dist/types/primitives/switch-button/switch-button.utils.d.mts +7 -0
- package/dist/types/primitives/switch-button/switch-button.utils.d.ts +7 -0
- package/dist/types/primitives/tabs/index.d.mts +7 -0
- package/dist/types/primitives/tabs/index.d.ts +7 -0
- package/dist/types/primitives/tabs/tabs.constants.d.mts +1 -0
- package/dist/types/primitives/tabs/tabs.constants.d.ts +1 -0
- package/dist/types/primitives/tabs/tabs.types.d.mts +36 -0
- package/dist/types/primitives/tabs/tabs.types.d.ts +36 -0
- package/dist/types/primitives/tabs/tabs.utils.d.mts +15 -0
- package/dist/types/primitives/tabs/tabs.utils.d.ts +15 -0
- package/dist/types/primitives/tooltip/index.d.mts +7 -0
- package/dist/types/primitives/tooltip/index.d.ts +7 -0
- package/dist/types/primitives/tooltip/tooltip.constants.d.mts +3 -0
- package/dist/types/primitives/tooltip/tooltip.constants.d.ts +3 -0
- package/dist/types/primitives/tooltip/tooltip.types.d.mts +27 -0
- package/dist/types/primitives/tooltip/tooltip.types.d.ts +27 -0
- package/dist/types/primitives/tooltip/tooltip.utils.d.mts +7 -0
- package/dist/types/primitives/tooltip/tooltip.utils.d.ts +7 -0
- package/dist/types/primitives/typography/index.d.mts +8 -0
- package/dist/types/primitives/typography/index.d.ts +8 -0
- package/dist/types/primitives/typography/typography.constants.d.mts +3 -0
- package/dist/types/primitives/typography/typography.constants.d.ts +3 -0
- package/dist/types/primitives/typography/typography.types.d.mts +12 -0
- package/dist/types/primitives/typography/typography.types.d.ts +12 -0
- package/dist/types/primitives/typography/typography.utils.d.mts +6 -0
- package/dist/types/primitives/typography/typography.utils.d.ts +6 -0
- package/dist/types/primitives/venue-logo/index.d.mts +9 -0
- package/dist/types/primitives/venue-logo/index.d.ts +9 -0
- package/dist/types/primitives/venue-logo/logo-props.d.mts +10 -0
- package/dist/types/primitives/venue-logo/logo-props.d.ts +10 -0
- package/dist/types/primitives/venue-logo/svg/default-venue.d.mts +2 -0
- package/dist/types/primitives/venue-logo/svg/default-venue.d.ts +2 -0
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-myriad.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-opinion.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-predict.d.ts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-probable.d.ts +5 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.mts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +17 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +24 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +24 -0
- package/dist/types/primitives/venue-logo/venue-logo.utils.d.mts +13 -0
- package/dist/types/primitives/venue-logo/venue-logo.utils.d.ts +13 -0
- package/dist/types/profile/index.d.mts +6 -0
- package/dist/types/profile/index.d.ts +6 -0
- package/dist/types/profile/profile-modal.constants.d.mts +17 -0
- package/dist/types/profile/profile-modal.constants.d.ts +17 -0
- package/dist/types/profile/profile-modal.types.d.mts +84 -0
- package/dist/types/profile/profile-modal.types.d.ts +84 -0
- package/dist/types/profile/tabs/about-tab.d.mts +18 -0
- package/dist/types/profile/tabs/about-tab.d.ts +18 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +33 -0
- package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +33 -0
- package/dist/types/shared/constants.d.mts +33 -0
- package/dist/types/shared/constants.d.ts +33 -0
- package/dist/types/shared/deposit-modal-events.d.mts +4 -0
- package/dist/types/shared/deposit-modal-events.d.ts +4 -0
- package/dist/types/shared/query-error.d.mts +2 -0
- package/dist/types/shared/query-error.d.ts +2 -0
- package/dist/types/shared/types.d.mts +1 -0
- package/dist/types/shared/types.d.ts +1 -0
- package/dist/types/shared/utils.d.mts +15 -0
- package/dist/types/shared/utils.d.ts +15 -0
- package/dist/types/trading/index.d.mts +7 -0
- package/dist/types/trading/index.d.ts +7 -0
- package/dist/types/trading/place-order/index.d.mts +10 -0
- package/dist/types/trading/place-order/index.d.ts +10 -0
- package/dist/types/trading/place-order/index.place-order.constants.d.mts +18 -0
- package/dist/types/trading/place-order/index.place-order.constants.d.ts +18 -0
- package/dist/types/trading/place-order/index.place-order.failure.d.mts +14 -0
- package/dist/types/trading/place-order/index.place-order.failure.d.ts +14 -0
- package/dist/types/trading/place-order/index.place-order.success.d.mts +12 -0
- package/dist/types/trading/place-order/index.place-order.success.d.ts +12 -0
- package/dist/types/trading/place-order/index.place-order.types.d.mts +192 -0
- package/dist/types/trading/place-order/index.place-order.types.d.ts +192 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.mts +100 -0
- package/dist/types/trading/place-order/index.place-order.utils.d.ts +100 -0
- package/dist/types/trading/settlement/index.d.mts +12 -0
- package/dist/types/trading/settlement/index.d.ts +12 -0
- package/dist/types/trading/settlement/settlement-details.d.mts +8 -0
- package/dist/types/trading/settlement/settlement-details.d.ts +8 -0
- package/dist/types/trading/settlement/settlement-details.utils.d.mts +7 -0
- package/dist/types/trading/settlement/settlement-details.utils.d.ts +7 -0
- package/dist/types/trading/trading-context/index.d.mts +2 -0
- package/dist/types/trading/trading-context/index.d.ts +2 -0
- package/dist/types/trading/types.d.mts +82 -0
- package/dist/types/trading/types.d.ts +82 -0
- package/dist/types/trading/use-kalshi-kyc-flow.d.mts +22 -0
- package/dist/types/trading/use-kalshi-kyc-flow.d.ts +22 -0
- package/dist/types/trading/utils.d.mts +16 -0
- package/dist/types/trading/utils.d.ts +16 -0
- package/dist/types/withdraw/index.d.mts +6 -0
- package/dist/types/withdraw/index.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.mts +17 -0
- package/dist/types/withdraw/steps/withdraw-amount.d.ts +17 -0
- package/dist/types/withdraw/steps/withdraw-method.d.mts +6 -0
- package/dist/types/withdraw/steps/withdraw-method.d.ts +6 -0
- package/dist/types/withdraw/steps/withdraw-provider.d.mts +10 -0
- package/dist/types/withdraw/steps/withdraw-provider.d.ts +10 -0
- package/dist/types/withdraw/steps/withdraw-success.d.mts +7 -0
- package/dist/types/withdraw/steps/withdraw-success.d.ts +7 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.mts +5 -0
- package/dist/types/withdraw/withdraw-modal.constants.d.ts +5 -0
- package/dist/types/withdraw/withdraw-modal.types.d.mts +64 -0
- package/dist/types/withdraw/withdraw-modal.types.d.ts +64 -0
- package/package.json +128 -0
package/dist/trading.mjs
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
PlaceOrder,
|
|
4
|
+
PlaceOrderFailureView,
|
|
5
|
+
PlaceOrderSuccessView,
|
|
6
|
+
Settlement,
|
|
7
|
+
SettlementDetails,
|
|
8
|
+
defaultSettlementDifferencesTitle,
|
|
9
|
+
defaultSettlementSectionLabel,
|
|
10
|
+
defaultTradingDisclaimer,
|
|
11
|
+
getTradingAveragePriceLabel,
|
|
12
|
+
getTradingBalanceLabel,
|
|
13
|
+
getTradingDateLabel,
|
|
14
|
+
getTradingPriceLabel,
|
|
15
|
+
getTradingSharesLabel,
|
|
16
|
+
getTradingSlippageLabel,
|
|
17
|
+
getTradingValueLabel,
|
|
18
|
+
getTradingVenueLabel,
|
|
19
|
+
mapVenueMarketsToSettlementSections,
|
|
20
|
+
parseAmount,
|
|
21
|
+
parseVenue
|
|
22
|
+
} from "./chunk-CGNDMLQL.mjs";
|
|
23
|
+
import {
|
|
24
|
+
useEventTradingContext
|
|
25
|
+
} from "./chunk-C7T56TJR.mjs";
|
|
26
|
+
import "./chunk-2QJXRRYP.mjs";
|
|
27
|
+
import "./chunk-6NS7D73S.mjs";
|
|
28
|
+
export {
|
|
29
|
+
PlaceOrder,
|
|
30
|
+
PlaceOrderFailureView,
|
|
31
|
+
PlaceOrderSuccessView,
|
|
32
|
+
Settlement,
|
|
33
|
+
SettlementDetails,
|
|
34
|
+
defaultSettlementDifferencesTitle,
|
|
35
|
+
defaultSettlementSectionLabel,
|
|
36
|
+
defaultTradingDisclaimer,
|
|
37
|
+
getTradingAveragePriceLabel,
|
|
38
|
+
getTradingBalanceLabel,
|
|
39
|
+
getTradingDateLabel,
|
|
40
|
+
getTradingPriceLabel,
|
|
41
|
+
getTradingSharesLabel,
|
|
42
|
+
getTradingSlippageLabel,
|
|
43
|
+
getTradingValueLabel,
|
|
44
|
+
getTradingVenueLabel,
|
|
45
|
+
mapVenueMarketsToSettlementSections,
|
|
46
|
+
parseAmount,
|
|
47
|
+
parseVenue,
|
|
48
|
+
useEventTradingContext
|
|
49
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const connectButtonContainerClassName: string;
|
|
2
|
+
export declare const authNoticeClassName: string;
|
|
3
|
+
export declare const authErrorClassName: string;
|
|
4
|
+
export declare const authModalContainerClassName: string;
|
|
5
|
+
export declare const authModalBodyClassName: string;
|
|
6
|
+
export declare const authSectionClassName: string;
|
|
7
|
+
export declare const authSectionHeadingClassName: string;
|
|
8
|
+
export declare const authMethodsListClassName: string;
|
|
9
|
+
export declare const authInputFormClassName: string;
|
|
10
|
+
export declare const authInputFieldClassName: string;
|
|
11
|
+
export declare const authPrimaryActionClassName: string;
|
|
12
|
+
export declare const authMethodGridClassName: string;
|
|
13
|
+
export declare const authWalletMethodGridClassName: string;
|
|
14
|
+
export declare const authSocialButtonClassName: string;
|
|
15
|
+
export declare const authWalletButtonClassName: string;
|
|
16
|
+
export declare const authWalletIconGroupClassName: string;
|
|
17
|
+
export declare const authHelperTextClassName: string;
|
|
18
|
+
export declare const authHelperLinkClassName: string;
|
|
19
|
+
export declare const authDividerClassName: string;
|
|
20
|
+
export declare const authDividerLineClassName: string;
|
|
21
|
+
export declare const authDividerLabelClassName: string;
|
|
22
|
+
export declare const authLegalTextClassName: string;
|
|
23
|
+
export declare const connectedButtonsRowClassName: string;
|
|
24
|
+
export declare const connectedBalanceChipClassName: string;
|
|
25
|
+
export declare const profileMenuContentClassName: string;
|
|
26
|
+
export declare const profileMenuSectionClassName: string;
|
|
27
|
+
export declare const profileMenuSeparatorClassName: string;
|
|
28
|
+
export declare const profileMenuActionItemClassName: string;
|
|
29
|
+
export declare const avatarRootClassName: string;
|
|
30
|
+
export declare const avatarIconClassName: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const connectButtonContainerClassName: string;
|
|
2
|
+
export declare const authNoticeClassName: string;
|
|
3
|
+
export declare const authErrorClassName: string;
|
|
4
|
+
export declare const authModalContainerClassName: string;
|
|
5
|
+
export declare const authModalBodyClassName: string;
|
|
6
|
+
export declare const authSectionClassName: string;
|
|
7
|
+
export declare const authSectionHeadingClassName: string;
|
|
8
|
+
export declare const authMethodsListClassName: string;
|
|
9
|
+
export declare const authInputFormClassName: string;
|
|
10
|
+
export declare const authInputFieldClassName: string;
|
|
11
|
+
export declare const authPrimaryActionClassName: string;
|
|
12
|
+
export declare const authMethodGridClassName: string;
|
|
13
|
+
export declare const authWalletMethodGridClassName: string;
|
|
14
|
+
export declare const authSocialButtonClassName: string;
|
|
15
|
+
export declare const authWalletButtonClassName: string;
|
|
16
|
+
export declare const authWalletIconGroupClassName: string;
|
|
17
|
+
export declare const authHelperTextClassName: string;
|
|
18
|
+
export declare const authHelperLinkClassName: string;
|
|
19
|
+
export declare const authDividerClassName: string;
|
|
20
|
+
export declare const authDividerLineClassName: string;
|
|
21
|
+
export declare const authDividerLabelClassName: string;
|
|
22
|
+
export declare const authLegalTextClassName: string;
|
|
23
|
+
export declare const connectedButtonsRowClassName: string;
|
|
24
|
+
export declare const connectedBalanceChipClassName: string;
|
|
25
|
+
export declare const profileMenuContentClassName: string;
|
|
26
|
+
export declare const profileMenuSectionClassName: string;
|
|
27
|
+
export declare const profileMenuSeparatorClassName: string;
|
|
28
|
+
export declare const profileMenuActionItemClassName: string;
|
|
29
|
+
export declare const avatarRootClassName: string;
|
|
30
|
+
export declare const avatarIconClassName: string;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { IconName } from "../../primitives/icon";
|
|
3
|
+
export type AuthConnectButtonViewMethodKind = "email" | "social" | "wallet";
|
|
4
|
+
export type AuthConnectButtonViewMethodChain = "ethereum" | "solana";
|
|
5
|
+
export type AuthConnectButtonViewClassNames = {
|
|
6
|
+
authError?: string;
|
|
7
|
+
authFormField?: string;
|
|
8
|
+
authHelperLink?: string;
|
|
9
|
+
authMethodButton?: string;
|
|
10
|
+
authMethodDescription?: string;
|
|
11
|
+
authMethodGrid?: string;
|
|
12
|
+
authModalContent?: string;
|
|
13
|
+
authNotice?: string;
|
|
14
|
+
authSectionHeading?: string;
|
|
15
|
+
balanceChip?: string;
|
|
16
|
+
balanceText?: string;
|
|
17
|
+
positionsText?: string;
|
|
18
|
+
connectButton?: string;
|
|
19
|
+
connectedRow?: string;
|
|
20
|
+
depositButton?: string;
|
|
21
|
+
profileMenuActionItem?: string;
|
|
22
|
+
profileMenuContent?: string;
|
|
23
|
+
profileMenuSection?: string;
|
|
24
|
+
profileMenuSeparator?: string;
|
|
25
|
+
profileTrigger?: string;
|
|
26
|
+
profileTriggerLabel?: string;
|
|
27
|
+
root?: string;
|
|
28
|
+
};
|
|
29
|
+
export type AuthConnectButtonViewButtonProps = Pick<ButtonHTMLAttributes<HTMLButtonElement>, "id" | "name" | "tabIndex" | "autoFocus" | "aria-describedby">;
|
|
30
|
+
export type AuthConnectButtonViewMethodInput = {
|
|
31
|
+
type: "email";
|
|
32
|
+
helperText?: string;
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
submitLabel?: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
export type AuthConnectButtonViewMethod = {
|
|
37
|
+
chain?: AuthConnectButtonViewMethodChain;
|
|
38
|
+
description: string;
|
|
39
|
+
iconName?: IconName;
|
|
40
|
+
id: string;
|
|
41
|
+
input?: AuthConnectButtonViewMethodInput;
|
|
42
|
+
isAvailable: boolean;
|
|
43
|
+
kind: AuthConnectButtonViewMethodKind;
|
|
44
|
+
label: string;
|
|
45
|
+
};
|
|
46
|
+
export type AuthConnectButtonViewProps = {
|
|
47
|
+
/** ID of the auth method currently selected in the chooser. */
|
|
48
|
+
activeMethodId: string | null;
|
|
49
|
+
/** Formatted wallet or account address shown in the connected state. */
|
|
50
|
+
addressLabel?: string;
|
|
51
|
+
/** Native props forwarded to the main connect button. */
|
|
52
|
+
buttonProps?: AuthConnectButtonViewButtonProps;
|
|
53
|
+
/** When set, the sign-in modal switches to a security-check screen showing this content. */
|
|
54
|
+
challengeContent?: ReactNode;
|
|
55
|
+
/** Class name overrides for auth view slots. */
|
|
56
|
+
classNames?: AuthConnectButtonViewClassNames;
|
|
57
|
+
/** Whether all auth controls should be disabled. */
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/** Email connection method configuration, when supported. */
|
|
60
|
+
emailMethod: AuthConnectButtonViewMethod | null;
|
|
61
|
+
/** Inline validation error shown for the email flow. */
|
|
62
|
+
emailError?: string | null;
|
|
63
|
+
/** Controlled email input value. */
|
|
64
|
+
emailValue: string;
|
|
65
|
+
/** General auth error message shown in the view. */
|
|
66
|
+
errorMessage?: string | null;
|
|
67
|
+
/** Whether the user is currently authenticated. */
|
|
68
|
+
isAuthenticated: boolean;
|
|
69
|
+
/** Whether balances are currently loading. */
|
|
70
|
+
isBalanceLoading: boolean;
|
|
71
|
+
/** Whether an auth-related async action is in progress. */
|
|
72
|
+
isBusy: boolean;
|
|
73
|
+
/** Controlled open state for the auth method chooser. */
|
|
74
|
+
isChooserOpen: boolean;
|
|
75
|
+
/** Controlled open state for the profile menu. */
|
|
76
|
+
isProfileMenuOpen: boolean;
|
|
77
|
+
/** Optional informational notice shown above the auth actions. */
|
|
78
|
+
notice?: string | null;
|
|
79
|
+
/** Called when the chooser open state changes. */
|
|
80
|
+
onChooserOpenChange: (open: boolean) => void;
|
|
81
|
+
/** Called when the deposit action is clicked. */
|
|
82
|
+
onDepositClick: () => void;
|
|
83
|
+
/** Called when the disconnect action is clicked. */
|
|
84
|
+
onDisconnectClick: () => void;
|
|
85
|
+
/** Called when the email input value changes. */
|
|
86
|
+
onEmailChange: (value: string) => void;
|
|
87
|
+
/** Called when the email auth form is submitted. */
|
|
88
|
+
onEmailSubmit: () => void;
|
|
89
|
+
/** Called when the user selects an auth method. */
|
|
90
|
+
onMethodSelect: (methodId: string) => void;
|
|
91
|
+
/** Called when the profile card itself is clicked. */
|
|
92
|
+
onProfileCardClick: () => void;
|
|
93
|
+
/** Called when the profile trigger is clicked. */
|
|
94
|
+
onProfileClick: () => void;
|
|
95
|
+
/** Called when the profile menu open state changes. */
|
|
96
|
+
onProfileMenuOpenChange: (open: boolean) => void;
|
|
97
|
+
/** Social auth methods rendered in the chooser. */
|
|
98
|
+
socialMethods: readonly AuthConnectButtonViewMethod[];
|
|
99
|
+
/** Called when the withdraw action is clicked. */
|
|
100
|
+
onWithdrawClick: () => void;
|
|
101
|
+
/** Label shown for the connected profile trigger. */
|
|
102
|
+
profileLabel?: string;
|
|
103
|
+
/** Aggregated total balance shown in the connected state. */
|
|
104
|
+
totalBalance: number;
|
|
105
|
+
/** Aggregated positions value shown in the connected state. */
|
|
106
|
+
positionsBalance: number;
|
|
107
|
+
/** Number of closed positions currently eligible to claim. */
|
|
108
|
+
claimReadyCount?: number;
|
|
109
|
+
/** Called when user clicks the claim-winnings action in the indicator tooltip. */
|
|
110
|
+
onClaimWinningsClick?: () => void;
|
|
111
|
+
/** Wallet auth methods rendered in the chooser. */
|
|
112
|
+
walletMethods: readonly AuthConnectButtonViewMethod[];
|
|
113
|
+
/** Whether deposits are blocked for the user's geo location. */
|
|
114
|
+
isDepositBlocked?: boolean;
|
|
115
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { IconName } from "../../primitives/icon";
|
|
3
|
+
export type AuthConnectButtonViewMethodKind = "email" | "social" | "wallet";
|
|
4
|
+
export type AuthConnectButtonViewMethodChain = "ethereum" | "solana";
|
|
5
|
+
export type AuthConnectButtonViewClassNames = {
|
|
6
|
+
authError?: string;
|
|
7
|
+
authFormField?: string;
|
|
8
|
+
authHelperLink?: string;
|
|
9
|
+
authMethodButton?: string;
|
|
10
|
+
authMethodDescription?: string;
|
|
11
|
+
authMethodGrid?: string;
|
|
12
|
+
authModalContent?: string;
|
|
13
|
+
authNotice?: string;
|
|
14
|
+
authSectionHeading?: string;
|
|
15
|
+
balanceChip?: string;
|
|
16
|
+
balanceText?: string;
|
|
17
|
+
positionsText?: string;
|
|
18
|
+
connectButton?: string;
|
|
19
|
+
connectedRow?: string;
|
|
20
|
+
depositButton?: string;
|
|
21
|
+
profileMenuActionItem?: string;
|
|
22
|
+
profileMenuContent?: string;
|
|
23
|
+
profileMenuSection?: string;
|
|
24
|
+
profileMenuSeparator?: string;
|
|
25
|
+
profileTrigger?: string;
|
|
26
|
+
profileTriggerLabel?: string;
|
|
27
|
+
root?: string;
|
|
28
|
+
};
|
|
29
|
+
export type AuthConnectButtonViewButtonProps = Pick<ButtonHTMLAttributes<HTMLButtonElement>, "id" | "name" | "tabIndex" | "autoFocus" | "aria-describedby">;
|
|
30
|
+
export type AuthConnectButtonViewMethodInput = {
|
|
31
|
+
type: "email";
|
|
32
|
+
helperText?: string;
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
submitLabel?: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
export type AuthConnectButtonViewMethod = {
|
|
37
|
+
chain?: AuthConnectButtonViewMethodChain;
|
|
38
|
+
description: string;
|
|
39
|
+
iconName?: IconName;
|
|
40
|
+
id: string;
|
|
41
|
+
input?: AuthConnectButtonViewMethodInput;
|
|
42
|
+
isAvailable: boolean;
|
|
43
|
+
kind: AuthConnectButtonViewMethodKind;
|
|
44
|
+
label: string;
|
|
45
|
+
};
|
|
46
|
+
export type AuthConnectButtonViewProps = {
|
|
47
|
+
/** ID of the auth method currently selected in the chooser. */
|
|
48
|
+
activeMethodId: string | null;
|
|
49
|
+
/** Formatted wallet or account address shown in the connected state. */
|
|
50
|
+
addressLabel?: string;
|
|
51
|
+
/** Native props forwarded to the main connect button. */
|
|
52
|
+
buttonProps?: AuthConnectButtonViewButtonProps;
|
|
53
|
+
/** When set, the sign-in modal switches to a security-check screen showing this content. */
|
|
54
|
+
challengeContent?: ReactNode;
|
|
55
|
+
/** Class name overrides for auth view slots. */
|
|
56
|
+
classNames?: AuthConnectButtonViewClassNames;
|
|
57
|
+
/** Whether all auth controls should be disabled. */
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/** Email connection method configuration, when supported. */
|
|
60
|
+
emailMethod: AuthConnectButtonViewMethod | null;
|
|
61
|
+
/** Inline validation error shown for the email flow. */
|
|
62
|
+
emailError?: string | null;
|
|
63
|
+
/** Controlled email input value. */
|
|
64
|
+
emailValue: string;
|
|
65
|
+
/** General auth error message shown in the view. */
|
|
66
|
+
errorMessage?: string | null;
|
|
67
|
+
/** Whether the user is currently authenticated. */
|
|
68
|
+
isAuthenticated: boolean;
|
|
69
|
+
/** Whether balances are currently loading. */
|
|
70
|
+
isBalanceLoading: boolean;
|
|
71
|
+
/** Whether an auth-related async action is in progress. */
|
|
72
|
+
isBusy: boolean;
|
|
73
|
+
/** Controlled open state for the auth method chooser. */
|
|
74
|
+
isChooserOpen: boolean;
|
|
75
|
+
/** Controlled open state for the profile menu. */
|
|
76
|
+
isProfileMenuOpen: boolean;
|
|
77
|
+
/** Optional informational notice shown above the auth actions. */
|
|
78
|
+
notice?: string | null;
|
|
79
|
+
/** Called when the chooser open state changes. */
|
|
80
|
+
onChooserOpenChange: (open: boolean) => void;
|
|
81
|
+
/** Called when the deposit action is clicked. */
|
|
82
|
+
onDepositClick: () => void;
|
|
83
|
+
/** Called when the disconnect action is clicked. */
|
|
84
|
+
onDisconnectClick: () => void;
|
|
85
|
+
/** Called when the email input value changes. */
|
|
86
|
+
onEmailChange: (value: string) => void;
|
|
87
|
+
/** Called when the email auth form is submitted. */
|
|
88
|
+
onEmailSubmit: () => void;
|
|
89
|
+
/** Called when the user selects an auth method. */
|
|
90
|
+
onMethodSelect: (methodId: string) => void;
|
|
91
|
+
/** Called when the profile card itself is clicked. */
|
|
92
|
+
onProfileCardClick: () => void;
|
|
93
|
+
/** Called when the profile trigger is clicked. */
|
|
94
|
+
onProfileClick: () => void;
|
|
95
|
+
/** Called when the profile menu open state changes. */
|
|
96
|
+
onProfileMenuOpenChange: (open: boolean) => void;
|
|
97
|
+
/** Social auth methods rendered in the chooser. */
|
|
98
|
+
socialMethods: readonly AuthConnectButtonViewMethod[];
|
|
99
|
+
/** Called when the withdraw action is clicked. */
|
|
100
|
+
onWithdrawClick: () => void;
|
|
101
|
+
/** Label shown for the connected profile trigger. */
|
|
102
|
+
profileLabel?: string;
|
|
103
|
+
/** Aggregated total balance shown in the connected state. */
|
|
104
|
+
totalBalance: number;
|
|
105
|
+
/** Aggregated positions value shown in the connected state. */
|
|
106
|
+
positionsBalance: number;
|
|
107
|
+
/** Number of closed positions currently eligible to claim. */
|
|
108
|
+
claimReadyCount?: number;
|
|
109
|
+
/** Called when user clicks the claim-winnings action in the indicator tooltip. */
|
|
110
|
+
onClaimWinningsClick?: () => void;
|
|
111
|
+
/** Wallet auth methods rendered in the chooser. */
|
|
112
|
+
walletMethods: readonly AuthConnectButtonViewMethod[];
|
|
113
|
+
/** Whether deposits are blocked for the user's geo location. */
|
|
114
|
+
isDepositBlocked?: boolean;
|
|
115
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { AuthConnectButtonViewProps } from "./connect-button-view.types";
|
|
3
|
+
export type { AuthConnectButtonViewButtonProps, AuthConnectButtonViewClassNames, AuthConnectButtonViewMethod, AuthConnectButtonViewMethodInput, AuthConnectButtonViewProps, } from "./connect-button-view.types";
|
|
4
|
+
export declare const AuthConnectButtonView: {
|
|
5
|
+
({ activeMethodId, addressLabel, buttonProps, challengeContent, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, isAuthenticated, isBalanceLoading, isBusy, isChooserOpen, isProfileMenuOpen, notice, onChooserOpenChange, onDepositClick, onDisconnectClick, onEmailChange, onEmailSubmit, onMethodSelect, onProfileCardClick, onProfileClick, onProfileMenuOpenChange, socialMethods, onWithdrawClick, profileLabel, totalBalance, positionsBalance, claimReadyCount, onClaimWinningsClick, walletMethods, isDepositBlocked, }: AuthConnectButtonViewProps): JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { AuthConnectButtonViewProps } from "./connect-button-view.types";
|
|
3
|
+
export type { AuthConnectButtonViewButtonProps, AuthConnectButtonViewClassNames, AuthConnectButtonViewMethod, AuthConnectButtonViewMethodInput, AuthConnectButtonViewProps, } from "./connect-button-view.types";
|
|
4
|
+
export declare const AuthConnectButtonView: {
|
|
5
|
+
({ activeMethodId, addressLabel, buttonProps, challengeContent, classNames, disabled, emailMethod, emailError, emailValue, errorMessage, isAuthenticated, isBalanceLoading, isBusy, isChooserOpen, isProfileMenuOpen, notice, onChooserOpenChange, onDepositClick, onDisconnectClick, onEmailChange, onEmailSubmit, onMethodSelect, onProfileCardClick, onProfileClick, onProfileMenuOpenChange, socialMethods, onWithdrawClick, profileLabel, totalBalance, positionsBalance, claimReadyCount, onClaimWinningsClick, walletMethods, isDepositBlocked, }: AuthConnectButtonViewProps): JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./connect-button-view";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./connect-button-view";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const AGG_ROOT_CLASS_NAME = "agg-root";
|
|
2
|
+
export declare const AGG_DEFAULT_URL = "https://build.agg.market";
|
|
3
|
+
export declare const AGG_TERMS_OF_SERVICE_URL = "https://build.agg.market/terms-and-conditions";
|
|
4
|
+
export declare const AGG_PRIVACY_POLICY_URL = "https://build.agg.market/privacy-policy";
|
|
5
|
+
export declare const AGG_DOCS_URL = "https://docs.agg.market";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const AGG_ROOT_CLASS_NAME = "agg-root";
|
|
2
|
+
export declare const AGG_DEFAULT_URL = "https://build.agg.market";
|
|
3
|
+
export declare const AGG_TERMS_OF_SERVICE_URL = "https://build.agg.market/terms-and-conditions";
|
|
4
|
+
export declare const AGG_PRIVACY_POLICY_URL = "https://build.agg.market/privacy-policy";
|
|
5
|
+
export declare const AGG_DOCS_URL = "https://docs.agg.market";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
export interface DepositQRCodeProps {
|
|
3
|
+
depositAddress: string;
|
|
4
|
+
networkLogoUrl: string;
|
|
5
|
+
/** Inline React node for the chain logo. Takes precedence over networkLogoUrl. */
|
|
6
|
+
networkLogo?: ReactNode;
|
|
7
|
+
size?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function DepositQRCode({ depositAddress, networkLogoUrl, networkLogo, size, }: DepositQRCodeProps): JSX.Element;
|
|
10
|
+
export declare namespace DepositQRCode {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from "react";
|
|
2
|
+
export interface DepositQRCodeProps {
|
|
3
|
+
depositAddress: string;
|
|
4
|
+
networkLogoUrl: string;
|
|
5
|
+
/** Inline React node for the chain logo. Takes precedence over networkLogoUrl. */
|
|
6
|
+
networkLogo?: ReactNode;
|
|
7
|
+
size?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function DepositQRCode({ depositAddress, networkLogoUrl, networkLogo, size, }: DepositQRCodeProps): JSX.Element;
|
|
10
|
+
export declare namespace DepositQRCode {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DepositSelectOption } from "./deposit-modal.types";
|
|
2
|
+
/**
|
|
3
|
+
* Display names for venue slugs.
|
|
4
|
+
* Re-uses the venue-logo labels as the single source of truth.
|
|
5
|
+
*/
|
|
6
|
+
export { venueLogoLabels as VENUE_DISPLAY_NAMES } from "../primitives/venue-logo/venue-logo.constants";
|
|
7
|
+
/** Default network options for the card deposit flow. */
|
|
8
|
+
export declare const CARD_NETWORK_OPTIONS: DepositSelectOption[];
|
|
9
|
+
/** Maps network slugs to ramp destination currency codes. */
|
|
10
|
+
export declare const NETWORK_TO_CURRENCY_CODE: Record<string, string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DepositSelectOption } from "./deposit-modal.types";
|
|
2
|
+
/**
|
|
3
|
+
* Display names for venue slugs.
|
|
4
|
+
* Re-uses the venue-logo labels as the single source of truth.
|
|
5
|
+
*/
|
|
6
|
+
export { venueLogoLabels as VENUE_DISPLAY_NAMES } from "../primitives/venue-logo/venue-logo.constants";
|
|
7
|
+
/** Default network options for the card deposit flow. */
|
|
8
|
+
export declare const CARD_NETWORK_OPTIONS: DepositSelectOption[];
|
|
9
|
+
/** Maps network slugs to ramp destination currency codes. */
|
|
10
|
+
export declare const NETWORK_TO_CURRENCY_CODE: Record<string, string>;
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
export interface VenueBalance {
|
|
2
|
+
venue: string;
|
|
3
|
+
balance: number;
|
|
4
|
+
shortfall?: number;
|
|
5
|
+
}
|
|
6
|
+
export type DepositMethod = "wallet" | "crypto" | "card";
|
|
7
|
+
export interface DepositFlowOption {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
highlighted?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface DepositSelectOption {
|
|
15
|
+
value: string;
|
|
16
|
+
label: string;
|
|
17
|
+
iconUrl?: string;
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export interface WalletProcessingStep {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
status: "complete" | "active" | "pending";
|
|
24
|
+
}
|
|
25
|
+
export type WalletTransactionStatus = "submitted" | "confirming" | "settled" | "error";
|
|
26
|
+
export interface WalletDepositSummary {
|
|
27
|
+
amountReceived: string;
|
|
28
|
+
network: string;
|
|
29
|
+
fromWallet: string;
|
|
30
|
+
gasFee: string;
|
|
31
|
+
}
|
|
32
|
+
/** Parameters passed to `onConfirmWalletDeposit`. */
|
|
33
|
+
export interface WalletDepositConfirmParams {
|
|
34
|
+
/** Resolved deposit address — EVM (0x…) or SVM (Base58) based on selected network. */
|
|
35
|
+
address: string;
|
|
36
|
+
amount: string;
|
|
37
|
+
chainId: number;
|
|
38
|
+
token: string;
|
|
39
|
+
}
|
|
40
|
+
/** Partner-provided wallet context. Network/token selection is managed internally. */
|
|
41
|
+
export interface WalletDepositFlowData {
|
|
42
|
+
/** Platform balance shown on the method-selection screen. */
|
|
43
|
+
balance: number;
|
|
44
|
+
/** Connected wallet label shown in the form header, e.g. "3XzH…ULM9". */
|
|
45
|
+
walletLabel: string;
|
|
46
|
+
/** Wallet's current fiat balance used for amount validation. */
|
|
47
|
+
walletBalance: number;
|
|
48
|
+
/** Whether the wallet balance is currently being fetched. */
|
|
49
|
+
isWalletBalanceLoading?: boolean;
|
|
50
|
+
/** Controlled amount string. */
|
|
51
|
+
amount: string;
|
|
52
|
+
/** Optional inline error shown on the wallet form. */
|
|
53
|
+
formErrorMessage?: string;
|
|
54
|
+
/** Visual tone for the inline wallet form error. */
|
|
55
|
+
formErrorTone?: "warning" | "error";
|
|
56
|
+
/** Optional estimate row shown below the amount input. */
|
|
57
|
+
estimatedReceive?: string;
|
|
58
|
+
feeEstimate?: string;
|
|
59
|
+
eta?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Processing steps shown during deposit.
|
|
62
|
+
* Defaults to the standard 2-step submit/confirmation flow when omitted.
|
|
63
|
+
*/
|
|
64
|
+
processingSteps?: WalletProcessingStep[];
|
|
65
|
+
/**
|
|
66
|
+
* Optional transaction status for driving the processing screen from a real
|
|
67
|
+
* wallet broadcast/confirmation flow. When omitted, the modal stays on the
|
|
68
|
+
* confirmation state until the caller updates the flow or closes the modal.
|
|
69
|
+
*/
|
|
70
|
+
transactionStatus?: WalletTransactionStatus;
|
|
71
|
+
/** Optional processing error copy shown when transactionStatus is "error". */
|
|
72
|
+
transactionErrorMessage?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Success summary shown on the final screen.
|
|
75
|
+
* Defaults are derived from the deposit context (amount, network, wallet label).
|
|
76
|
+
* Provide `gasFee` here once known from the transaction receipt.
|
|
77
|
+
*/
|
|
78
|
+
successSummary?: Partial<WalletDepositSummary>;
|
|
79
|
+
}
|
|
80
|
+
/** Optional config for the "Send crypto" tab. All fields have sensible defaults. */
|
|
81
|
+
export interface SendCryptoConfig {
|
|
82
|
+
minDeposit?: string;
|
|
83
|
+
feeEstimate?: string;
|
|
84
|
+
eta?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface CardProviderOption {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
quote: string;
|
|
90
|
+
fee: string;
|
|
91
|
+
badge?: "best" | "low-kyc";
|
|
92
|
+
highlighted?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface CardPurchaseSummary {
|
|
95
|
+
amountReceived: string;
|
|
96
|
+
network: string;
|
|
97
|
+
fees: string;
|
|
98
|
+
}
|
|
99
|
+
export interface CardFlowData {
|
|
100
|
+
amount: string;
|
|
101
|
+
currency: string;
|
|
102
|
+
tokenOptions: DepositSelectOption[];
|
|
103
|
+
/** Optional override list. Falls back to {@link CARD_NETWORK_OPTIONS}. */
|
|
104
|
+
networkOptions?: DepositSelectOption[];
|
|
105
|
+
selectedToken: string;
|
|
106
|
+
selectedNetwork: string;
|
|
107
|
+
providers: CardProviderOption[];
|
|
108
|
+
selectedProviderId?: string;
|
|
109
|
+
purchaseSummary: CardPurchaseSummary;
|
|
110
|
+
/** Minimum deposit amount in the selected currency. Shown as validation hint. */
|
|
111
|
+
minAmount?: number;
|
|
112
|
+
}
|
|
113
|
+
export interface DepositModalControlledProps {
|
|
114
|
+
open: boolean;
|
|
115
|
+
/** Called whenever the deposit modal open state changes. */
|
|
116
|
+
onOpenChange: (open: boolean) => void;
|
|
117
|
+
/** Controlled wallet-flow state used by the wallet deposit tab. */
|
|
118
|
+
walletFlow: WalletDepositFlowData;
|
|
119
|
+
/** Called when the wallet deposit amount changes. */
|
|
120
|
+
onWalletAmountChange: (amount: string) => void;
|
|
121
|
+
/** Called when the wallet flow should use the maximum available amount. */
|
|
122
|
+
onWalletMax: () => void;
|
|
123
|
+
/**
|
|
124
|
+
* Called when the user confirms a wallet deposit.
|
|
125
|
+
* Receives the resolved deposit address and amount so the caller can
|
|
126
|
+
* submit the on-chain transaction. Return a promise — the modal waits
|
|
127
|
+
* before advancing to the processing screen.
|
|
128
|
+
*/
|
|
129
|
+
onConfirmWalletDeposit?: (params: WalletDepositConfirmParams) => Promise<void> | void;
|
|
130
|
+
/** Called after the wallet deposit flow reaches its completion state. */
|
|
131
|
+
onDoneWalletDeposit?: () => void;
|
|
132
|
+
/**
|
|
133
|
+
* Fired whenever the wallet-flow network dropdown changes (including the
|
|
134
|
+
* initial auto-select). The parent can use this to read the on-chain
|
|
135
|
+
* balance for the selected chain and update `walletFlow.walletBalance`.
|
|
136
|
+
*/
|
|
137
|
+
onWalletNetworkChange?: (chainId: string) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Fired whenever the wallet-flow token dropdown changes (including the
|
|
140
|
+
* initial auto-select after a network switch). Use together with
|
|
141
|
+
* `onWalletNetworkChange` to read the on-chain balance for the
|
|
142
|
+
* selected token and update `walletFlow.walletBalance`.
|
|
143
|
+
*/
|
|
144
|
+
onWalletTokenChange?: (tokenSymbol: string) => void;
|
|
145
|
+
/**
|
|
146
|
+
* If provided, the wallet-flow network dropdown will prefer this chain
|
|
147
|
+
* on first render (e.g. pass the wallet's connected chainId so the
|
|
148
|
+
* dropdown and balance are in sync immediately).
|
|
149
|
+
*/
|
|
150
|
+
initialWalletChainId?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Set when exactly one external wallet kind is connected. When provided,
|
|
153
|
+
* the wallet flow filters its network options to chains compatible with
|
|
154
|
+
* that wallet (and hides the network selector if only one option remains).
|
|
155
|
+
* Leave undefined to show all chains.
|
|
156
|
+
*/
|
|
157
|
+
connectedWalletKind?: "evm" | "solana";
|
|
158
|
+
/** Static config for the "Send crypto" tab (min deposit, fee, ETA). */
|
|
159
|
+
sendCryptoConfig?: SendCryptoConfig;
|
|
160
|
+
/** Called after the send-crypto flow reaches its completion state. */
|
|
161
|
+
onDoneSendCrypto?: () => void;
|
|
162
|
+
/** Optional controlled state for the card deposit flow. */
|
|
163
|
+
cardFlow?: CardFlowData;
|
|
164
|
+
/** Called when the user selects a deposit method tab. */
|
|
165
|
+
onSelectDepositMethod?: (method: DepositMethod) => void;
|
|
166
|
+
/** Called when the card deposit flow continues after amount entry. */
|
|
167
|
+
onContinueCardDeposit?: (amount: number) => void;
|
|
168
|
+
/** Called after the crypto transfer flow completes. */
|
|
169
|
+
onDoneCryptoTransfer?: () => void;
|
|
170
|
+
/** Called when the card deposit amount changes. */
|
|
171
|
+
onCardAmountChange?: (amount: string) => void;
|
|
172
|
+
/** Called when the source fiat currency changes. */
|
|
173
|
+
onCardCurrencyChange?: (currency: string) => void;
|
|
174
|
+
/** Called when the destination token changes. */
|
|
175
|
+
onCardTokenChange?: (token: string) => void;
|
|
176
|
+
/** Called when the destination network changes. */
|
|
177
|
+
onCardNetworkChange?: (network: string) => void;
|
|
178
|
+
/** Called when the user selects a ramp provider. */
|
|
179
|
+
onSelectCardProvider?: (providerId: string) => void;
|
|
180
|
+
/** Called after the card purchase flow completes. */
|
|
181
|
+
onDoneCardPurchase?: () => void;
|
|
182
|
+
/**
|
|
183
|
+
* Optional side-effect hook fired when the user clicks "View Activity" on
|
|
184
|
+
* the payment-pending screen. The modal then redirects to `/profile?tab=activity`
|
|
185
|
+
* regardless. Use this for analytics or partner-side teardown.
|
|
186
|
+
*/
|
|
187
|
+
onViewActivity?: () => void;
|
|
188
|
+
/** URL to redirect the user to after the ramp widget transaction completes. */
|
|
189
|
+
cardRedirectUrl?: string;
|
|
190
|
+
/** Called when user clicks "Get Quotes". Should fetch ramp quotes and return CardProviderOption[]. */
|
|
191
|
+
onGetCardQuotes?: (params: {
|
|
192
|
+
/** Amount entered in the source fiat currency. */
|
|
193
|
+
sourceAmount: string;
|
|
194
|
+
/** ISO currency code for the fiat source amount. */
|
|
195
|
+
sourceCurrencyCode: string;
|
|
196
|
+
/** Destination token or currency code requested from providers. */
|
|
197
|
+
destinationCurrencyCode: string;
|
|
198
|
+
}) => Promise<CardProviderOption[]>;
|
|
199
|
+
/** Called when user selects a provider. Should create an ramp session and return the widget URL. */
|
|
200
|
+
onCreateCardSession?: (params: {
|
|
201
|
+
/** Identifier of the selected ramp provider. */
|
|
202
|
+
serviceProvider: string;
|
|
203
|
+
/** Amount entered in the source fiat currency. */
|
|
204
|
+
sourceAmount: string;
|
|
205
|
+
/** ISO currency code for the fiat source amount. */
|
|
206
|
+
sourceCurrencyCode: string;
|
|
207
|
+
/** Destination token or currency code requested from providers. */
|
|
208
|
+
destinationCurrencyCode: string;
|
|
209
|
+
/** Wallet address that should receive the purchased asset. */
|
|
210
|
+
walletAddress: string;
|
|
211
|
+
/** Optional redirect URL used after the provider flow completes. */
|
|
212
|
+
redirectUrl?: string;
|
|
213
|
+
}) => Promise<{
|
|
214
|
+
id: string;
|
|
215
|
+
widgetUrl: string;
|
|
216
|
+
serviceProviderWidgetUrl: string;
|
|
217
|
+
}>;
|
|
218
|
+
/** Poll card transaction status by session ID. Return the status string. */
|
|
219
|
+
onGetCardTransactionStatus?: (sessionId: string) => Promise<CardTransactionStatus>;
|
|
220
|
+
/**
|
|
221
|
+
* When set, the modal opens directly in the card success screen.
|
|
222
|
+
* Used to resume after a redirect from the payment provider.
|
|
223
|
+
*/
|
|
224
|
+
pendingCardPurchaseSummary?: CardPurchaseSummary | null;
|
|
225
|
+
}
|
|
226
|
+
export interface DepositModalSelfDrivenProps {
|
|
227
|
+
open: boolean;
|
|
228
|
+
onOpenChange: (open: boolean) => void;
|
|
229
|
+
}
|
|
230
|
+
export type DepositModalProps = DepositModalControlledProps | DepositModalSelfDrivenProps;
|
|
231
|
+
export interface CardTransactionStatus {
|
|
232
|
+
status: "pending" | "settling" | "settled" | "error" | "unknown";
|
|
233
|
+
}
|