@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.
Files changed (664) hide show
  1. package/README.md +287 -0
  2. package/dist/chunk-2QJXRRYP.mjs +37 -0
  3. package/dist/chunk-6NS7D73S.mjs +8811 -0
  4. package/dist/chunk-75IGOQ4N.mjs +3415 -0
  5. package/dist/chunk-C7T56TJR.mjs +748 -0
  6. package/dist/chunk-CGNDMLQL.mjs +3813 -0
  7. package/dist/chunk-DMKKNK76.mjs +3742 -0
  8. package/dist/chunk-I2WBGEWK.mjs +4512 -0
  9. package/dist/chunk-KHHFHXXD.mjs +1 -0
  10. package/dist/events.d.mts +1 -0
  11. package/dist/events.d.ts +1 -0
  12. package/dist/events.js +11414 -0
  13. package/dist/events.mjs +41 -0
  14. package/dist/index.d.mts +1 -0
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.js +25520 -0
  17. package/dist/index.mjs +978 -0
  18. package/dist/modals.d.mts +1 -0
  19. package/dist/modals.d.ts +1 -0
  20. package/dist/modals.js +7743 -0
  21. package/dist/modals.mjs +36 -0
  22. package/dist/pages.d.mts +1 -0
  23. package/dist/pages.d.ts +1 -0
  24. package/dist/pages.js +20230 -0
  25. package/dist/pages.mjs +33 -0
  26. package/dist/primitives.d.mts +1 -0
  27. package/dist/primitives.d.ts +1 -0
  28. package/dist/primitives.js +8599 -0
  29. package/dist/primitives.mjs +179 -0
  30. package/dist/styles.css +2 -0
  31. package/dist/tailwind.css +2 -0
  32. package/dist/trading.d.mts +1 -0
  33. package/dist/trading.d.ts +1 -0
  34. package/dist/trading.js +8658 -0
  35. package/dist/trading.mjs +49 -0
  36. package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +30 -0
  37. package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +30 -0
  38. package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +115 -0
  39. package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +115 -0
  40. package/dist/types/auth/connect-button-view/index.d.mts +7 -0
  41. package/dist/types/auth/connect-button-view/index.d.ts +7 -0
  42. package/dist/types/auth/index.d.mts +1 -0
  43. package/dist/types/auth/index.d.ts +1 -0
  44. package/dist/types/constants.d.mts +5 -0
  45. package/dist/types/constants.d.ts +5 -0
  46. package/dist/types/deposit/components/DepositQRCode.d.mts +12 -0
  47. package/dist/types/deposit/components/DepositQRCode.d.ts +12 -0
  48. package/dist/types/deposit/deposit-modal.constants.d.mts +10 -0
  49. package/dist/types/deposit/deposit-modal.constants.d.ts +10 -0
  50. package/dist/types/deposit/deposit-modal.types.d.mts +233 -0
  51. package/dist/types/deposit/deposit-modal.types.d.ts +233 -0
  52. package/dist/types/deposit/index.d.mts +22 -0
  53. package/dist/types/deposit/index.d.ts +22 -0
  54. package/dist/types/deposit/steps/card-deposit.d.mts +17 -0
  55. package/dist/types/deposit/steps/card-deposit.d.ts +17 -0
  56. package/dist/types/deposit/steps/card-payment-pending.d.mts +7 -0
  57. package/dist/types/deposit/steps/card-payment-pending.d.ts +7 -0
  58. package/dist/types/deposit/steps/card-provider.d.mts +14 -0
  59. package/dist/types/deposit/steps/card-provider.d.ts +14 -0
  60. package/dist/types/deposit/steps/card-purchase-success.d.mts +7 -0
  61. package/dist/types/deposit/steps/card-purchase-success.d.ts +7 -0
  62. package/dist/types/deposit/steps/card-widget.d.mts +6 -0
  63. package/dist/types/deposit/steps/card-widget.d.ts +6 -0
  64. package/dist/types/deposit/steps/crypto-transfer.d.mts +19 -0
  65. package/dist/types/deposit/steps/crypto-transfer.d.ts +19 -0
  66. package/dist/types/deposit/steps/deposit-method.d.mts +12 -0
  67. package/dist/types/deposit/steps/deposit-method.d.ts +12 -0
  68. package/dist/types/deposit/steps/venue-selection.d.mts +7 -0
  69. package/dist/types/deposit/steps/venue-selection.d.ts +7 -0
  70. package/dist/types/deposit/steps/wallet-form.d.mts +24 -0
  71. package/dist/types/deposit/steps/wallet-form.d.ts +24 -0
  72. package/dist/types/deposit/steps/wallet-processing.d.mts +7 -0
  73. package/dist/types/deposit/steps/wallet-processing.d.ts +7 -0
  74. package/dist/types/deposit/steps/wallet-success.d.mts +7 -0
  75. package/dist/types/deposit/steps/wallet-success.d.ts +7 -0
  76. package/dist/types/events/index.d.mts +5 -0
  77. package/dist/types/events/index.d.ts +5 -0
  78. package/dist/types/events/item/event-list-item.constants.d.mts +1 -0
  79. package/dist/types/events/item/event-list-item.constants.d.ts +1 -0
  80. package/dist/types/events/item/event-list-item.types.d.mts +71 -0
  81. package/dist/types/events/item/event-list-item.types.d.ts +71 -0
  82. package/dist/types/events/item/event-list-item.utils.d.mts +46 -0
  83. package/dist/types/events/item/event-list-item.utils.d.ts +46 -0
  84. package/dist/types/events/item/index.d.mts +6 -0
  85. package/dist/types/events/item/index.d.ts +6 -0
  86. package/dist/types/events/item-details/event-list-item-details-market-selector.d.mts +10 -0
  87. package/dist/types/events/item-details/event-list-item-details-market-selector.d.ts +10 -0
  88. package/dist/types/events/item-details/event-list-item-details.constants.d.mts +3 -0
  89. package/dist/types/events/item-details/event-list-item-details.constants.d.ts +3 -0
  90. package/dist/types/events/item-details/event-list-item-details.types.d.mts +116 -0
  91. package/dist/types/events/item-details/event-list-item-details.types.d.ts +116 -0
  92. package/dist/types/events/item-details/event-list-item-details.utils.d.mts +75 -0
  93. package/dist/types/events/item-details/event-list-item-details.utils.d.ts +75 -0
  94. package/dist/types/events/item-details/index.d.mts +8 -0
  95. package/dist/types/events/item-details/index.d.ts +8 -0
  96. package/dist/types/events/item-details/settlement-summary.d.mts +9 -0
  97. package/dist/types/events/item-details/settlement-summary.d.ts +9 -0
  98. package/dist/types/events/list/event-list-tabs.d.mts +44 -0
  99. package/dist/types/events/list/event-list-tabs.d.ts +44 -0
  100. package/dist/types/events/list/event-list.constants.d.mts +4 -0
  101. package/dist/types/events/list/event-list.constants.d.ts +4 -0
  102. package/dist/types/events/list/event-list.types.d.mts +48 -0
  103. package/dist/types/events/list/event-list.types.d.ts +48 -0
  104. package/dist/types/events/list/event-list.utils.d.mts +19 -0
  105. package/dist/types/events/list/event-list.utils.d.ts +19 -0
  106. package/dist/types/events/list/index.d.mts +6 -0
  107. package/dist/types/events/list/index.d.ts +6 -0
  108. package/dist/types/events/market-details/index.d.mts +12 -0
  109. package/dist/types/events/market-details/index.d.ts +12 -0
  110. package/dist/types/events/market-details/market-details-outcome-button.d.mts +13 -0
  111. package/dist/types/events/market-details/market-details-outcome-button.d.ts +13 -0
  112. package/dist/types/events/market-details/market-details.constants.d.mts +9 -0
  113. package/dist/types/events/market-details/market-details.constants.d.ts +9 -0
  114. package/dist/types/events/market-details/market-details.types.d.mts +143 -0
  115. package/dist/types/events/market-details/market-details.types.d.ts +143 -0
  116. package/dist/types/events/market-details/market-details.utils.d.mts +72 -0
  117. package/dist/types/events/market-details/market-details.utils.d.ts +72 -0
  118. package/dist/types/events/market-details/orderbook-aggregation.d.mts +30 -0
  119. package/dist/types/events/market-details/orderbook-aggregation.d.ts +30 -0
  120. package/dist/types/events/orderbook/index.d.mts +11 -0
  121. package/dist/types/events/orderbook/index.d.ts +11 -0
  122. package/dist/types/events/orderbook/orderbook-with-states.d.mts +35 -0
  123. package/dist/types/events/orderbook/orderbook-with-states.d.ts +35 -0
  124. package/dist/types/events/orderbook/orderbook.constants.d.mts +10 -0
  125. package/dist/types/events/orderbook/orderbook.constants.d.ts +10 -0
  126. package/dist/types/events/orderbook/orderbook.types.d.mts +65 -0
  127. package/dist/types/events/orderbook/orderbook.types.d.ts +65 -0
  128. package/dist/types/events/orderbook/orderbook.utils.d.mts +13 -0
  129. package/dist/types/events/orderbook/orderbook.utils.d.ts +13 -0
  130. package/dist/types/events/orderbook/use-center-orderbook-spread.d.mts +13 -0
  131. package/dist/types/events/orderbook/use-center-orderbook-spread.d.ts +13 -0
  132. package/dist/types/events/shared/chart-venue-selection.d.mts +20 -0
  133. package/dist/types/events/shared/chart-venue-selection.d.ts +20 -0
  134. package/dist/types/events/shared/event-trading-state.utils.d.mts +14 -0
  135. package/dist/types/events/shared/event-trading-state.utils.d.ts +14 -0
  136. package/dist/types/events/shared/venue-market-cluster.d.mts +11 -0
  137. package/dist/types/events/shared/venue-market-cluster.d.ts +11 -0
  138. package/dist/types/geo-block-banner/index.d.mts +12 -0
  139. package/dist/types/geo-block-banner/index.d.ts +12 -0
  140. package/dist/types/geo-block-modal/geo-block-modal.types.d.mts +13 -0
  141. package/dist/types/geo-block-modal/geo-block-modal.types.d.ts +13 -0
  142. package/dist/types/geo-block-modal/index.d.mts +6 -0
  143. package/dist/types/geo-block-modal/index.d.ts +6 -0
  144. package/dist/types/index.d.mts +10 -0
  145. package/dist/types/index.d.ts +10 -0
  146. package/dist/types/modals/index.d.mts +6 -0
  147. package/dist/types/modals/index.d.ts +6 -0
  148. package/dist/types/onboarding/index.d.mts +11 -0
  149. package/dist/types/onboarding/index.d.ts +11 -0
  150. package/dist/types/onboarding/onboarding-modal.constants.d.mts +10 -0
  151. package/dist/types/onboarding/onboarding-modal.constants.d.ts +10 -0
  152. package/dist/types/onboarding/onboarding-modal.types.d.mts +76 -0
  153. package/dist/types/onboarding/onboarding-modal.types.d.ts +76 -0
  154. package/dist/types/onboarding/steps/connect-accounts.d.mts +5 -0
  155. package/dist/types/onboarding/steps/connect-accounts.d.ts +5 -0
  156. package/dist/types/onboarding/steps/connect-kalshi-modal.d.mts +5 -0
  157. package/dist/types/onboarding/steps/connect-kalshi-modal.d.ts +5 -0
  158. package/dist/types/onboarding/steps/connect-onchain-modal.d.mts +5 -0
  159. package/dist/types/onboarding/steps/connect-onchain-modal.d.ts +5 -0
  160. package/dist/types/onboarding/steps/how-it-works.d.mts +5 -0
  161. package/dist/types/onboarding/steps/how-it-works.d.ts +5 -0
  162. package/dist/types/onboarding/steps/profile-setup.d.mts +5 -0
  163. package/dist/types/onboarding/steps/profile-setup.d.ts +5 -0
  164. package/dist/types/pages/event-market/event-market.types.d.mts +84 -0
  165. package/dist/types/pages/event-market/event-market.types.d.ts +84 -0
  166. package/dist/types/pages/event-market/event-market.utils.d.mts +14 -0
  167. package/dist/types/pages/event-market/event-market.utils.d.ts +14 -0
  168. package/dist/types/pages/event-market/index.d.mts +8 -0
  169. package/dist/types/pages/event-market/index.d.ts +8 -0
  170. package/dist/types/pages/home/home.constants.d.mts +6 -0
  171. package/dist/types/pages/home/home.constants.d.ts +6 -0
  172. package/dist/types/pages/home/home.types.d.mts +85 -0
  173. package/dist/types/pages/home/home.types.d.ts +85 -0
  174. package/dist/types/pages/home/home.utils.d.mts +7 -0
  175. package/dist/types/pages/home/home.utils.d.ts +7 -0
  176. package/dist/types/pages/home/index.d.mts +9 -0
  177. package/dist/types/pages/home/index.d.ts +9 -0
  178. package/dist/types/pages/home/use-home-page-modals.d.mts +32 -0
  179. package/dist/types/pages/home/use-home-page-modals.d.ts +32 -0
  180. package/dist/types/pages/home/use-scroll-restoration.d.mts +17 -0
  181. package/dist/types/pages/home/use-scroll-restoration.d.ts +17 -0
  182. package/dist/types/pages/index.d.mts +4 -0
  183. package/dist/types/pages/index.d.ts +4 -0
  184. package/dist/types/pages/user-profile/chain-display.d.mts +1 -0
  185. package/dist/types/pages/user-profile/chain-display.d.ts +1 -0
  186. package/dist/types/pages/user-profile/components/activity-row.d.mts +11 -0
  187. package/dist/types/pages/user-profile/components/activity-row.d.ts +11 -0
  188. package/dist/types/pages/user-profile/components/available-balance-card.d.mts +18 -0
  189. package/dist/types/pages/user-profile/components/available-balance-card.d.ts +18 -0
  190. package/dist/types/pages/user-profile/components/balance-display.d.mts +10 -0
  191. package/dist/types/pages/user-profile/components/balance-display.d.ts +10 -0
  192. package/dist/types/pages/user-profile/components/balances-card.d.mts +12 -0
  193. package/dist/types/pages/user-profile/components/balances-card.d.ts +12 -0
  194. package/dist/types/pages/user-profile/components/default-avatar.d.mts +8 -0
  195. package/dist/types/pages/user-profile/components/default-avatar.d.ts +8 -0
  196. package/dist/types/pages/user-profile/components/empty-state.d.mts +10 -0
  197. package/dist/types/pages/user-profile/components/empty-state.d.ts +10 -0
  198. package/dist/types/pages/user-profile/components/open-order-row.d.mts +12 -0
  199. package/dist/types/pages/user-profile/components/open-order-row.d.ts +12 -0
  200. package/dist/types/pages/user-profile/components/position-row.d.mts +15 -0
  201. package/dist/types/pages/user-profile/components/position-row.d.ts +15 -0
  202. package/dist/types/pages/user-profile/components/positions-activity.d.mts +51 -0
  203. package/dist/types/pages/user-profile/components/positions-activity.d.ts +51 -0
  204. package/dist/types/pages/user-profile/components/positions-value-card.d.mts +10 -0
  205. package/dist/types/pages/user-profile/components/positions-value-card.d.ts +10 -0
  206. package/dist/types/pages/user-profile/components/user-info-card.d.mts +15 -0
  207. package/dist/types/pages/user-profile/components/user-info-card.d.ts +15 -0
  208. package/dist/types/pages/user-profile/index.d.mts +10 -0
  209. package/dist/types/pages/user-profile/index.d.ts +10 -0
  210. package/dist/types/pages/user-profile/user-profile.constants.d.mts +9 -0
  211. package/dist/types/pages/user-profile/user-profile.constants.d.ts +9 -0
  212. package/dist/types/pages/user-profile/user-profile.types.d.mts +281 -0
  213. package/dist/types/pages/user-profile/user-profile.types.d.ts +281 -0
  214. package/dist/types/primitives/agg-logo/agg-logo.constants.d.mts +3 -0
  215. package/dist/types/primitives/agg-logo/agg-logo.constants.d.ts +3 -0
  216. package/dist/types/primitives/agg-logo/agg-logo.types.d.mts +2 -0
  217. package/dist/types/primitives/agg-logo/agg-logo.types.d.ts +2 -0
  218. package/dist/types/primitives/agg-logo/agg-logo.utils.d.mts +2 -0
  219. package/dist/types/primitives/agg-logo/agg-logo.utils.d.ts +2 -0
  220. package/dist/types/primitives/agg-logo/index.d.mts +7 -0
  221. package/dist/types/primitives/agg-logo/index.d.ts +7 -0
  222. package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.mts +1 -0
  223. package/dist/types/primitives/autocomplete-select/autocomplete-select.constants.d.ts +1 -0
  224. package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.mts +26 -0
  225. package/dist/types/primitives/autocomplete-select/autocomplete-select.types.d.ts +26 -0
  226. package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.mts +7 -0
  227. package/dist/types/primitives/autocomplete-select/autocomplete-select.utils.d.ts +7 -0
  228. package/dist/types/primitives/autocomplete-select/index.d.mts +7 -0
  229. package/dist/types/primitives/autocomplete-select/index.d.ts +7 -0
  230. package/dist/types/primitives/badge/badge.constants.d.mts +4 -0
  231. package/dist/types/primitives/badge/badge.constants.d.ts +4 -0
  232. package/dist/types/primitives/badge/badge.types.d.mts +27 -0
  233. package/dist/types/primitives/badge/badge.types.d.ts +27 -0
  234. package/dist/types/primitives/badge/badge.utils.d.mts +11 -0
  235. package/dist/types/primitives/badge/badge.utils.d.ts +11 -0
  236. package/dist/types/primitives/badge/index.d.mts +8 -0
  237. package/dist/types/primitives/badge/index.d.ts +8 -0
  238. package/dist/types/primitives/button/button.constants.d.mts +6 -0
  239. package/dist/types/primitives/button/button.constants.d.ts +6 -0
  240. package/dist/types/primitives/button/button.types.d.mts +18 -0
  241. package/dist/types/primitives/button/button.types.d.ts +18 -0
  242. package/dist/types/primitives/button/button.utils.d.mts +12 -0
  243. package/dist/types/primitives/button/button.utils.d.ts +12 -0
  244. package/dist/types/primitives/button/index.d.mts +7 -0
  245. package/dist/types/primitives/button/index.d.ts +7 -0
  246. package/dist/types/primitives/card/card.constants.d.mts +4 -0
  247. package/dist/types/primitives/card/card.constants.d.ts +4 -0
  248. package/dist/types/primitives/card/card.types.d.mts +8 -0
  249. package/dist/types/primitives/card/card.types.d.ts +8 -0
  250. package/dist/types/primitives/card/card.utils.d.mts +8 -0
  251. package/dist/types/primitives/card/card.utils.d.ts +8 -0
  252. package/dist/types/primitives/card/index.d.mts +6 -0
  253. package/dist/types/primitives/card/index.d.ts +6 -0
  254. package/dist/types/primitives/chart/chart-type-switch.constants.d.mts +2 -0
  255. package/dist/types/primitives/chart/chart-type-switch.constants.d.ts +2 -0
  256. package/dist/types/primitives/chart/chart-type-switch.d.mts +7 -0
  257. package/dist/types/primitives/chart/chart-type-switch.d.ts +7 -0
  258. package/dist/types/primitives/chart/chart-type-switch.types.d.mts +9 -0
  259. package/dist/types/primitives/chart/chart-type-switch.types.d.ts +9 -0
  260. package/dist/types/primitives/chart/chart-type-switch.utils.d.mts +13 -0
  261. package/dist/types/primitives/chart/chart-type-switch.utils.d.ts +13 -0
  262. package/dist/types/primitives/chart/chart.constants.d.mts +5 -0
  263. package/dist/types/primitives/chart/chart.constants.d.ts +5 -0
  264. package/dist/types/primitives/chart/chart.types.d.mts +59 -0
  265. package/dist/types/primitives/chart/chart.types.d.ts +59 -0
  266. package/dist/types/primitives/chart/chart.utils.d.mts +35 -0
  267. package/dist/types/primitives/chart/chart.utils.d.ts +35 -0
  268. package/dist/types/primitives/chart/index.d.mts +7 -0
  269. package/dist/types/primitives/chart/index.d.ts +7 -0
  270. package/dist/types/primitives/conditional-wrapper.d.mts +11 -0
  271. package/dist/types/primitives/conditional-wrapper.d.ts +11 -0
  272. package/dist/types/primitives/currency-input/currency-input.constants.d.mts +6 -0
  273. package/dist/types/primitives/currency-input/currency-input.constants.d.ts +6 -0
  274. package/dist/types/primitives/currency-input/currency-input.types.d.mts +36 -0
  275. package/dist/types/primitives/currency-input/currency-input.types.d.ts +36 -0
  276. package/dist/types/primitives/currency-input/currency-input.utils.d.mts +10 -0
  277. package/dist/types/primitives/currency-input/currency-input.utils.d.ts +10 -0
  278. package/dist/types/primitives/currency-input/index.d.mts +7 -0
  279. package/dist/types/primitives/currency-input/index.d.ts +7 -0
  280. package/dist/types/primitives/error-boundary/index.d.mts +24 -0
  281. package/dist/types/primitives/error-boundary/index.d.ts +24 -0
  282. package/dist/types/primitives/footer/agg-build-logo.d.mts +16 -0
  283. package/dist/types/primitives/footer/agg-build-logo.d.ts +16 -0
  284. package/dist/types/primitives/footer/footer.constants.d.mts +3 -0
  285. package/dist/types/primitives/footer/footer.constants.d.ts +3 -0
  286. package/dist/types/primitives/footer/footer.types.d.mts +25 -0
  287. package/dist/types/primitives/footer/footer.types.d.ts +25 -0
  288. package/dist/types/primitives/footer/index.d.mts +8 -0
  289. package/dist/types/primitives/footer/index.d.ts +8 -0
  290. package/dist/types/primitives/header/agg-logo.d.mts +2 -0
  291. package/dist/types/primitives/header/agg-logo.d.ts +2 -0
  292. package/dist/types/primitives/header/header.constants.d.mts +2 -0
  293. package/dist/types/primitives/header/header.constants.d.ts +2 -0
  294. package/dist/types/primitives/header/header.types.d.mts +42 -0
  295. package/dist/types/primitives/header/header.types.d.ts +42 -0
  296. package/dist/types/primitives/header/header.utils.d.mts +12 -0
  297. package/dist/types/primitives/header/header.utils.d.ts +12 -0
  298. package/dist/types/primitives/header/index.d.mts +8 -0
  299. package/dist/types/primitives/header/index.d.ts +8 -0
  300. package/dist/types/primitives/icon/icon.constants.d.mts +2 -0
  301. package/dist/types/primitives/icon/icon.constants.d.ts +2 -0
  302. package/dist/types/primitives/icon/icon.types.d.mts +12 -0
  303. package/dist/types/primitives/icon/icon.types.d.ts +12 -0
  304. package/dist/types/primitives/icon/icon.utils.d.mts +3 -0
  305. package/dist/types/primitives/icon/icon.utils.d.ts +3 -0
  306. package/dist/types/primitives/icon/index.d.mts +68 -0
  307. package/dist/types/primitives/icon/index.d.ts +68 -0
  308. package/dist/types/primitives/icon/registry.d.mts +286 -0
  309. package/dist/types/primitives/icon/registry.d.ts +286 -0
  310. package/dist/types/primitives/icon/svg/activity-chart.d.mts +5 -0
  311. package/dist/types/primitives/icon/svg/activity-chart.d.ts +5 -0
  312. package/dist/types/primitives/icon/svg/activity.d.mts +5 -0
  313. package/dist/types/primitives/icon/svg/activity.d.ts +5 -0
  314. package/dist/types/primitives/icon/svg/apple.d.mts +5 -0
  315. package/dist/types/primitives/icon/svg/apple.d.ts +5 -0
  316. package/dist/types/primitives/icon/svg/arbitrum.d.mts +5 -0
  317. package/dist/types/primitives/icon/svg/arbitrum.d.ts +5 -0
  318. package/dist/types/primitives/icon/svg/arrow-right.d.mts +5 -0
  319. package/dist/types/primitives/icon/svg/arrow-right.d.ts +5 -0
  320. package/dist/types/primitives/icon/svg/arrow-trend-up.d.mts +5 -0
  321. package/dist/types/primitives/icon/svg/arrow-trend-up.d.ts +5 -0
  322. package/dist/types/primitives/icon/svg/arrows-to-dot.d.mts +5 -0
  323. package/dist/types/primitives/icon/svg/arrows-to-dot.d.ts +5 -0
  324. package/dist/types/primitives/icon/svg/badge-check-thin.d.mts +5 -0
  325. package/dist/types/primitives/icon/svg/badge-check-thin.d.ts +5 -0
  326. package/dist/types/primitives/icon/svg/bank.d.mts +5 -0
  327. package/dist/types/primitives/icon/svg/bank.d.ts +5 -0
  328. package/dist/types/primitives/icon/svg/base.d.mts +5 -0
  329. package/dist/types/primitives/icon/svg/base.d.ts +5 -0
  330. package/dist/types/primitives/icon/svg/best-prices.d.mts +5 -0
  331. package/dist/types/primitives/icon/svg/best-prices.d.ts +5 -0
  332. package/dist/types/primitives/icon/svg/bnb.d.mts +5 -0
  333. package/dist/types/primitives/icon/svg/bnb.d.ts +5 -0
  334. package/dist/types/primitives/icon/svg/bolt.d.mts +5 -0
  335. package/dist/types/primitives/icon/svg/bolt.d.ts +5 -0
  336. package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +5 -0
  337. package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +5 -0
  338. package/dist/types/primitives/icon/svg/chart-line.d.mts +5 -0
  339. package/dist/types/primitives/icon/svg/chart-line.d.ts +5 -0
  340. package/dist/types/primitives/icon/svg/check-badge.d.mts +5 -0
  341. package/dist/types/primitives/icon/svg/check-badge.d.ts +5 -0
  342. package/dist/types/primitives/icon/svg/check-circle.d.mts +5 -0
  343. package/dist/types/primitives/icon/svg/check-circle.d.ts +5 -0
  344. package/dist/types/primitives/icon/svg/chevron-down-thin.d.mts +6 -0
  345. package/dist/types/primitives/icon/svg/chevron-down-thin.d.ts +6 -0
  346. package/dist/types/primitives/icon/svg/chevron-down.d.mts +5 -0
  347. package/dist/types/primitives/icon/svg/chevron-down.d.ts +5 -0
  348. package/dist/types/primitives/icon/svg/chevron-left.d.mts +5 -0
  349. package/dist/types/primitives/icon/svg/chevron-left.d.ts +5 -0
  350. package/dist/types/primitives/icon/svg/chevron-right.d.mts +5 -0
  351. package/dist/types/primitives/icon/svg/chevron-right.d.ts +5 -0
  352. package/dist/types/primitives/icon/svg/chevron-up.d.mts +5 -0
  353. package/dist/types/primitives/icon/svg/chevron-up.d.ts +5 -0
  354. package/dist/types/primitives/icon/svg/close.d.mts +5 -0
  355. package/dist/types/primitives/icon/svg/close.d.ts +5 -0
  356. package/dist/types/primitives/icon/svg/copy.d.mts +5 -0
  357. package/dist/types/primitives/icon/svg/copy.d.ts +5 -0
  358. package/dist/types/primitives/icon/svg/create-account.d.mts +5 -0
  359. package/dist/types/primitives/icon/svg/create-account.d.ts +5 -0
  360. package/dist/types/primitives/icon/svg/credit-card.d.mts +5 -0
  361. package/dist/types/primitives/icon/svg/credit-card.d.ts +5 -0
  362. package/dist/types/primitives/icon/svg/cross-circle.d.mts +5 -0
  363. package/dist/types/primitives/icon/svg/cross-circle.d.ts +5 -0
  364. package/dist/types/primitives/icon/svg/disconnect.d.mts +5 -0
  365. package/dist/types/primitives/icon/svg/disconnect.d.ts +5 -0
  366. package/dist/types/primitives/icon/svg/discord.d.mts +5 -0
  367. package/dist/types/primitives/icon/svg/discord.d.ts +5 -0
  368. package/dist/types/primitives/icon/svg/document.d.mts +5 -0
  369. package/dist/types/primitives/icon/svg/document.d.ts +5 -0
  370. package/dist/types/primitives/icon/svg/dots-horizontal.d.mts +5 -0
  371. package/dist/types/primitives/icon/svg/dots-horizontal.d.ts +5 -0
  372. package/dist/types/primitives/icon/svg/download.d.mts +5 -0
  373. package/dist/types/primitives/icon/svg/download.d.ts +5 -0
  374. package/dist/types/primitives/icon/svg/email.d.mts +5 -0
  375. package/dist/types/primitives/icon/svg/email.d.ts +5 -0
  376. package/dist/types/primitives/icon/svg/error-filled.d.mts +5 -0
  377. package/dist/types/primitives/icon/svg/error-filled.d.ts +5 -0
  378. package/dist/types/primitives/icon/svg/ethereum.d.mts +5 -0
  379. package/dist/types/primitives/icon/svg/ethereum.d.ts +5 -0
  380. package/dist/types/primitives/icon/svg/external-link.d.mts +5 -0
  381. package/dist/types/primitives/icon/svg/external-link.d.ts +5 -0
  382. package/dist/types/primitives/icon/svg/google.d.mts +5 -0
  383. package/dist/types/primitives/icon/svg/google.d.ts +5 -0
  384. package/dist/types/primitives/icon/svg/image.d.mts +5 -0
  385. package/dist/types/primitives/icon/svg/image.d.ts +5 -0
  386. package/dist/types/primitives/icon/svg/info.d.mts +5 -0
  387. package/dist/types/primitives/icon/svg/info.d.ts +5 -0
  388. package/dist/types/primitives/icon/svg/internet-security.d.mts +5 -0
  389. package/dist/types/primitives/icon/svg/internet-security.d.ts +5 -0
  390. package/dist/types/primitives/icon/svg/link-accounts.d.mts +5 -0
  391. package/dist/types/primitives/icon/svg/link-accounts.d.ts +5 -0
  392. package/dist/types/primitives/icon/svg/paper-plane.d.mts +5 -0
  393. package/dist/types/primitives/icon/svg/paper-plane.d.ts +5 -0
  394. package/dist/types/primitives/icon/svg/pencil.d.mts +5 -0
  395. package/dist/types/primitives/icon/svg/pencil.d.ts +5 -0
  396. package/dist/types/primitives/icon/svg/play-square.d.mts +5 -0
  397. package/dist/types/primitives/icon/svg/play-square.d.ts +5 -0
  398. package/dist/types/primitives/icon/svg/polygon.d.mts +5 -0
  399. package/dist/types/primitives/icon/svg/polygon.d.ts +5 -0
  400. package/dist/types/primitives/icon/svg/profile-about-tab.d.mts +6 -0
  401. package/dist/types/primitives/icon/svg/profile-about-tab.d.ts +6 -0
  402. package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.mts +6 -0
  403. package/dist/types/primitives/icon/svg/profile-accounts-wallets-tab.d.ts +6 -0
  404. package/dist/types/primitives/icon/svg/profile.d.mts +5 -0
  405. package/dist/types/primitives/icon/svg/profile.d.ts +5 -0
  406. package/dist/types/primitives/icon/svg/quotes-warning.d.mts +6 -0
  407. package/dist/types/primitives/icon/svg/quotes-warning.d.ts +6 -0
  408. package/dist/types/primitives/icon/svg/recenter.d.mts +5 -0
  409. package/dist/types/primitives/icon/svg/recenter.d.ts +5 -0
  410. package/dist/types/primitives/icon/svg/revenue-alt.d.mts +5 -0
  411. package/dist/types/primitives/icon/svg/revenue-alt.d.ts +5 -0
  412. package/dist/types/primitives/icon/svg/search.d.mts +5 -0
  413. package/dist/types/primitives/icon/svg/search.d.ts +5 -0
  414. package/dist/types/primitives/icon/svg/shield-trust.d.mts +5 -0
  415. package/dist/types/primitives/icon/svg/shield-trust.d.ts +5 -0
  416. package/dist/types/primitives/icon/svg/solana.d.mts +5 -0
  417. package/dist/types/primitives/icon/svg/solana.d.ts +5 -0
  418. package/dist/types/primitives/icon/svg/sparkles-filled.d.mts +5 -0
  419. package/dist/types/primitives/icon/svg/sparkles-filled.d.ts +5 -0
  420. package/dist/types/primitives/icon/svg/stay-in-control.d.mts +5 -0
  421. package/dist/types/primitives/icon/svg/stay-in-control.d.ts +5 -0
  422. package/dist/types/primitives/icon/svg/success-check.d.mts +5 -0
  423. package/dist/types/primitives/icon/svg/success-check.d.ts +5 -0
  424. package/dist/types/primitives/icon/svg/telegram.d.mts +5 -0
  425. package/dist/types/primitives/icon/svg/telegram.d.ts +5 -0
  426. package/dist/types/primitives/icon/svg/triangle-down.d.mts +5 -0
  427. package/dist/types/primitives/icon/svg/triangle-down.d.ts +5 -0
  428. package/dist/types/primitives/icon/svg/triangle-up-filled.d.mts +5 -0
  429. package/dist/types/primitives/icon/svg/triangle-up-filled.d.ts +5 -0
  430. package/dist/types/primitives/icon/svg/triangle-up.d.mts +5 -0
  431. package/dist/types/primitives/icon/svg/triangle-up.d.ts +5 -0
  432. package/dist/types/primitives/icon/svg/twitter.d.mts +5 -0
  433. package/dist/types/primitives/icon/svg/twitter.d.ts +5 -0
  434. package/dist/types/primitives/icon/svg/upload.d.mts +5 -0
  435. package/dist/types/primitives/icon/svg/upload.d.ts +5 -0
  436. package/dist/types/primitives/icon/svg/usdc.d.mts +5 -0
  437. package/dist/types/primitives/icon/svg/usdc.d.ts +5 -0
  438. package/dist/types/primitives/icon/svg/user-trust.d.mts +5 -0
  439. package/dist/types/primitives/icon/svg/user-trust.d.ts +5 -0
  440. package/dist/types/primitives/icon/svg/wallet-avatar.d.mts +5 -0
  441. package/dist/types/primitives/icon/svg/wallet-avatar.d.ts +5 -0
  442. package/dist/types/primitives/icon/svg/wallet-filled.d.mts +5 -0
  443. package/dist/types/primitives/icon/svg/wallet-filled.d.ts +5 -0
  444. package/dist/types/primitives/icon/svg/wallet.d.mts +5 -0
  445. package/dist/types/primitives/icon/svg/wallet.d.ts +5 -0
  446. package/dist/types/primitives/icon/svg/warning-filled.d.mts +5 -0
  447. package/dist/types/primitives/icon/svg/warning-filled.d.ts +5 -0
  448. package/dist/types/primitives/icon/svg/warning.d.mts +5 -0
  449. package/dist/types/primitives/icon/svg/warning.d.ts +5 -0
  450. package/dist/types/primitives/icon/types.d.mts +6 -0
  451. package/dist/types/primitives/icon/types.d.ts +6 -0
  452. package/dist/types/primitives/index.d.mts +25 -0
  453. package/dist/types/primitives/index.d.ts +25 -0
  454. package/dist/types/primitives/inline-alert/index.d.mts +7 -0
  455. package/dist/types/primitives/inline-alert/index.d.ts +7 -0
  456. package/dist/types/primitives/inline-alert/inline-alert.constants.d.mts +7 -0
  457. package/dist/types/primitives/inline-alert/inline-alert.constants.d.ts +7 -0
  458. package/dist/types/primitives/inline-alert/inline-alert.types.d.mts +24 -0
  459. package/dist/types/primitives/inline-alert/inline-alert.types.d.ts +24 -0
  460. package/dist/types/primitives/inline-alert/inline-alert.utils.d.mts +10 -0
  461. package/dist/types/primitives/inline-alert/inline-alert.utils.d.ts +10 -0
  462. package/dist/types/primitives/loading-icon/index.d.mts +7 -0
  463. package/dist/types/primitives/loading-icon/index.d.ts +7 -0
  464. package/dist/types/primitives/loading-icon/loading-icon.constants.d.mts +11 -0
  465. package/dist/types/primitives/loading-icon/loading-icon.constants.d.ts +11 -0
  466. package/dist/types/primitives/loading-icon/loading-icon.types.d.mts +15 -0
  467. package/dist/types/primitives/loading-icon/loading-icon.types.d.ts +15 -0
  468. package/dist/types/primitives/loading-icon/loading-icon.utils.d.mts +5 -0
  469. package/dist/types/primitives/loading-icon/loading-icon.utils.d.ts +5 -0
  470. package/dist/types/primitives/modal/index.d.mts +11 -0
  471. package/dist/types/primitives/modal/index.d.ts +11 -0
  472. package/dist/types/primitives/modal/modal.constants.d.mts +2 -0
  473. package/dist/types/primitives/modal/modal.constants.d.ts +2 -0
  474. package/dist/types/primitives/modal/modal.types.d.mts +78 -0
  475. package/dist/types/primitives/modal/modal.types.d.ts +78 -0
  476. package/dist/types/primitives/modal/modal.utils.d.mts +8 -0
  477. package/dist/types/primitives/modal/modal.utils.d.ts +8 -0
  478. package/dist/types/primitives/number-value.d.mts +12 -0
  479. package/dist/types/primitives/number-value.d.ts +12 -0
  480. package/dist/types/primitives/remote-image/index.d.mts +7 -0
  481. package/dist/types/primitives/remote-image/index.d.ts +7 -0
  482. package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
  483. package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
  484. package/dist/types/primitives/remote-image/remote-image.types.d.mts +28 -0
  485. package/dist/types/primitives/remote-image/remote-image.types.d.ts +28 -0
  486. package/dist/types/primitives/remote-image/remote-image.utils.d.mts +4 -0
  487. package/dist/types/primitives/remote-image/remote-image.utils.d.ts +4 -0
  488. package/dist/types/primitives/search/index.d.mts +7 -0
  489. package/dist/types/primitives/search/index.d.ts +7 -0
  490. package/dist/types/primitives/search/search-empty-icon.d.mts +5 -0
  491. package/dist/types/primitives/search/search-empty-icon.d.ts +5 -0
  492. package/dist/types/primitives/search/search.constants.d.mts +3 -0
  493. package/dist/types/primitives/search/search.constants.d.ts +3 -0
  494. package/dist/types/primitives/search/search.types.d.mts +57 -0
  495. package/dist/types/primitives/search/search.types.d.ts +57 -0
  496. package/dist/types/primitives/search/search.utils.d.mts +4 -0
  497. package/dist/types/primitives/search/search.utils.d.ts +4 -0
  498. package/dist/types/primitives/select/index.d.mts +7 -0
  499. package/dist/types/primitives/select/index.d.ts +7 -0
  500. package/dist/types/primitives/select/select.constants.d.mts +1 -0
  501. package/dist/types/primitives/select/select.constants.d.ts +1 -0
  502. package/dist/types/primitives/select/select.types.d.mts +25 -0
  503. package/dist/types/primitives/select/select.types.d.ts +25 -0
  504. package/dist/types/primitives/select/select.utils.d.mts +9 -0
  505. package/dist/types/primitives/select/select.utils.d.ts +9 -0
  506. package/dist/types/primitives/skeleton/index.d.mts +8 -0
  507. package/dist/types/primitives/skeleton/index.d.ts +8 -0
  508. package/dist/types/primitives/skeleton/skeleton-block.d.mts +8 -0
  509. package/dist/types/primitives/skeleton/skeleton-block.d.ts +8 -0
  510. package/dist/types/primitives/skeleton/skeleton.constants.d.mts +1 -0
  511. package/dist/types/primitives/skeleton/skeleton.constants.d.ts +1 -0
  512. package/dist/types/primitives/skeleton/skeleton.types.d.mts +27 -0
  513. package/dist/types/primitives/skeleton/skeleton.types.d.ts +27 -0
  514. package/dist/types/primitives/skeleton/skeleton.utils.d.mts +3 -0
  515. package/dist/types/primitives/skeleton/skeleton.utils.d.ts +3 -0
  516. package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.mts +5 -0
  517. package/dist/types/primitives/skeleton/views/event-list-item-details-skeleton-view.d.ts +5 -0
  518. package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.mts +9 -0
  519. package/dist/types/primitives/skeleton/views/event-list-item-skeleton-view.d.ts +9 -0
  520. package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.mts +5 -0
  521. package/dist/types/primitives/skeleton/views/event-list-skeleton-view.d.ts +5 -0
  522. package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.mts +12 -0
  523. package/dist/types/primitives/skeleton/views/market-details-skeleton-view.d.ts +12 -0
  524. package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.mts +5 -0
  525. package/dist/types/primitives/skeleton/views/place-order-skeleton-view.d.ts +5 -0
  526. package/dist/types/primitives/skeleton/views/search-skeleton-view.d.mts +5 -0
  527. package/dist/types/primitives/skeleton/views/search-skeleton-view.d.ts +5 -0
  528. package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.mts +5 -0
  529. package/dist/types/primitives/skeleton/views/settlement-skeleton-view.d.ts +5 -0
  530. package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.mts +5 -0
  531. package/dist/types/primitives/skeleton/views/user-profile-overview-skeleton-view.d.ts +5 -0
  532. package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.mts +5 -0
  533. package/dist/types/primitives/skeleton/views/user-profile-positions-activity-skeleton-view.d.ts +5 -0
  534. package/dist/types/primitives/state-message/index.d.mts +7 -0
  535. package/dist/types/primitives/state-message/index.d.ts +7 -0
  536. package/dist/types/primitives/state-message/state-message.constants.d.mts +1 -0
  537. package/dist/types/primitives/state-message/state-message.constants.d.ts +1 -0
  538. package/dist/types/primitives/state-message/state-message.types.d.mts +24 -0
  539. package/dist/types/primitives/state-message/state-message.types.d.ts +24 -0
  540. package/dist/types/primitives/state-message/state-message.utils.d.mts +4 -0
  541. package/dist/types/primitives/state-message/state-message.utils.d.ts +4 -0
  542. package/dist/types/primitives/switch-button/index.d.mts +7 -0
  543. package/dist/types/primitives/switch-button/index.d.ts +7 -0
  544. package/dist/types/primitives/switch-button/switch-button.constants.d.mts +5 -0
  545. package/dist/types/primitives/switch-button/switch-button.constants.d.ts +5 -0
  546. package/dist/types/primitives/switch-button/switch-button.types.d.mts +19 -0
  547. package/dist/types/primitives/switch-button/switch-button.types.d.ts +19 -0
  548. package/dist/types/primitives/switch-button/switch-button.utils.d.mts +7 -0
  549. package/dist/types/primitives/switch-button/switch-button.utils.d.ts +7 -0
  550. package/dist/types/primitives/tabs/index.d.mts +7 -0
  551. package/dist/types/primitives/tabs/index.d.ts +7 -0
  552. package/dist/types/primitives/tabs/tabs.constants.d.mts +1 -0
  553. package/dist/types/primitives/tabs/tabs.constants.d.ts +1 -0
  554. package/dist/types/primitives/tabs/tabs.types.d.mts +36 -0
  555. package/dist/types/primitives/tabs/tabs.types.d.ts +36 -0
  556. package/dist/types/primitives/tabs/tabs.utils.d.mts +15 -0
  557. package/dist/types/primitives/tabs/tabs.utils.d.ts +15 -0
  558. package/dist/types/primitives/tooltip/index.d.mts +7 -0
  559. package/dist/types/primitives/tooltip/index.d.ts +7 -0
  560. package/dist/types/primitives/tooltip/tooltip.constants.d.mts +3 -0
  561. package/dist/types/primitives/tooltip/tooltip.constants.d.ts +3 -0
  562. package/dist/types/primitives/tooltip/tooltip.types.d.mts +27 -0
  563. package/dist/types/primitives/tooltip/tooltip.types.d.ts +27 -0
  564. package/dist/types/primitives/tooltip/tooltip.utils.d.mts +7 -0
  565. package/dist/types/primitives/tooltip/tooltip.utils.d.ts +7 -0
  566. package/dist/types/primitives/typography/index.d.mts +8 -0
  567. package/dist/types/primitives/typography/index.d.ts +8 -0
  568. package/dist/types/primitives/typography/typography.constants.d.mts +3 -0
  569. package/dist/types/primitives/typography/typography.constants.d.ts +3 -0
  570. package/dist/types/primitives/typography/typography.types.d.mts +12 -0
  571. package/dist/types/primitives/typography/typography.types.d.ts +12 -0
  572. package/dist/types/primitives/typography/typography.utils.d.mts +6 -0
  573. package/dist/types/primitives/typography/typography.utils.d.ts +6 -0
  574. package/dist/types/primitives/venue-logo/index.d.mts +9 -0
  575. package/dist/types/primitives/venue-logo/index.d.ts +9 -0
  576. package/dist/types/primitives/venue-logo/logo-props.d.mts +10 -0
  577. package/dist/types/primitives/venue-logo/logo-props.d.ts +10 -0
  578. package/dist/types/primitives/venue-logo/svg/default-venue.d.mts +2 -0
  579. package/dist/types/primitives/venue-logo/svg/default-venue.d.ts +2 -0
  580. package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.mts +5 -0
  581. package/dist/types/primitives/venue-logo/svg/logo-hyperliquid.d.ts +5 -0
  582. package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.mts +5 -0
  583. package/dist/types/primitives/venue-logo/svg/logo-kalshi.d.ts +5 -0
  584. package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +5 -0
  585. package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +5 -0
  586. package/dist/types/primitives/venue-logo/svg/logo-myriad.d.mts +5 -0
  587. package/dist/types/primitives/venue-logo/svg/logo-myriad.d.ts +5 -0
  588. package/dist/types/primitives/venue-logo/svg/logo-opinion.d.mts +5 -0
  589. package/dist/types/primitives/venue-logo/svg/logo-opinion.d.ts +5 -0
  590. package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.mts +5 -0
  591. package/dist/types/primitives/venue-logo/svg/logo-polymarket.d.ts +5 -0
  592. package/dist/types/primitives/venue-logo/svg/logo-predict.d.mts +5 -0
  593. package/dist/types/primitives/venue-logo/svg/logo-predict.d.ts +5 -0
  594. package/dist/types/primitives/venue-logo/svg/logo-probable.d.mts +5 -0
  595. package/dist/types/primitives/venue-logo/svg/logo-probable.d.ts +5 -0
  596. package/dist/types/primitives/venue-logo/venue-logo.constants.d.mts +17 -0
  597. package/dist/types/primitives/venue-logo/venue-logo.constants.d.ts +17 -0
  598. package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +24 -0
  599. package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +24 -0
  600. package/dist/types/primitives/venue-logo/venue-logo.utils.d.mts +13 -0
  601. package/dist/types/primitives/venue-logo/venue-logo.utils.d.ts +13 -0
  602. package/dist/types/profile/index.d.mts +6 -0
  603. package/dist/types/profile/index.d.ts +6 -0
  604. package/dist/types/profile/profile-modal.constants.d.mts +17 -0
  605. package/dist/types/profile/profile-modal.constants.d.ts +17 -0
  606. package/dist/types/profile/profile-modal.types.d.mts +84 -0
  607. package/dist/types/profile/profile-modal.types.d.ts +84 -0
  608. package/dist/types/profile/tabs/about-tab.d.mts +18 -0
  609. package/dist/types/profile/tabs/about-tab.d.ts +18 -0
  610. package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +33 -0
  611. package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +33 -0
  612. package/dist/types/shared/constants.d.mts +33 -0
  613. package/dist/types/shared/constants.d.ts +33 -0
  614. package/dist/types/shared/deposit-modal-events.d.mts +4 -0
  615. package/dist/types/shared/deposit-modal-events.d.ts +4 -0
  616. package/dist/types/shared/query-error.d.mts +2 -0
  617. package/dist/types/shared/query-error.d.ts +2 -0
  618. package/dist/types/shared/types.d.mts +1 -0
  619. package/dist/types/shared/types.d.ts +1 -0
  620. package/dist/types/shared/utils.d.mts +15 -0
  621. package/dist/types/shared/utils.d.ts +15 -0
  622. package/dist/types/trading/index.d.mts +7 -0
  623. package/dist/types/trading/index.d.ts +7 -0
  624. package/dist/types/trading/place-order/index.d.mts +10 -0
  625. package/dist/types/trading/place-order/index.d.ts +10 -0
  626. package/dist/types/trading/place-order/index.place-order.constants.d.mts +18 -0
  627. package/dist/types/trading/place-order/index.place-order.constants.d.ts +18 -0
  628. package/dist/types/trading/place-order/index.place-order.failure.d.mts +14 -0
  629. package/dist/types/trading/place-order/index.place-order.failure.d.ts +14 -0
  630. package/dist/types/trading/place-order/index.place-order.success.d.mts +12 -0
  631. package/dist/types/trading/place-order/index.place-order.success.d.ts +12 -0
  632. package/dist/types/trading/place-order/index.place-order.types.d.mts +192 -0
  633. package/dist/types/trading/place-order/index.place-order.types.d.ts +192 -0
  634. package/dist/types/trading/place-order/index.place-order.utils.d.mts +100 -0
  635. package/dist/types/trading/place-order/index.place-order.utils.d.ts +100 -0
  636. package/dist/types/trading/settlement/index.d.mts +12 -0
  637. package/dist/types/trading/settlement/index.d.ts +12 -0
  638. package/dist/types/trading/settlement/settlement-details.d.mts +8 -0
  639. package/dist/types/trading/settlement/settlement-details.d.ts +8 -0
  640. package/dist/types/trading/settlement/settlement-details.utils.d.mts +7 -0
  641. package/dist/types/trading/settlement/settlement-details.utils.d.ts +7 -0
  642. package/dist/types/trading/trading-context/index.d.mts +2 -0
  643. package/dist/types/trading/trading-context/index.d.ts +2 -0
  644. package/dist/types/trading/types.d.mts +82 -0
  645. package/dist/types/trading/types.d.ts +82 -0
  646. package/dist/types/trading/use-kalshi-kyc-flow.d.mts +22 -0
  647. package/dist/types/trading/use-kalshi-kyc-flow.d.ts +22 -0
  648. package/dist/types/trading/utils.d.mts +16 -0
  649. package/dist/types/trading/utils.d.ts +16 -0
  650. package/dist/types/withdraw/index.d.mts +6 -0
  651. package/dist/types/withdraw/index.d.ts +6 -0
  652. package/dist/types/withdraw/steps/withdraw-amount.d.mts +17 -0
  653. package/dist/types/withdraw/steps/withdraw-amount.d.ts +17 -0
  654. package/dist/types/withdraw/steps/withdraw-method.d.mts +6 -0
  655. package/dist/types/withdraw/steps/withdraw-method.d.ts +6 -0
  656. package/dist/types/withdraw/steps/withdraw-provider.d.mts +10 -0
  657. package/dist/types/withdraw/steps/withdraw-provider.d.ts +10 -0
  658. package/dist/types/withdraw/steps/withdraw-success.d.mts +7 -0
  659. package/dist/types/withdraw/steps/withdraw-success.d.ts +7 -0
  660. package/dist/types/withdraw/withdraw-modal.constants.d.mts +5 -0
  661. package/dist/types/withdraw/withdraw-modal.constants.d.ts +5 -0
  662. package/dist/types/withdraw/withdraw-modal.types.d.mts +64 -0
  663. package/dist/types/withdraw/withdraw-modal.types.d.ts +64 -0
  664. package/package.json +128 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,978 @@
1
+ "use client";
2
+ import "./chunk-KHHFHXXD.mjs";
3
+ import {
4
+ ConditionalWrapper,
5
+ DefaultAvatar,
6
+ EventMarketPage,
7
+ HomePage,
8
+ USER_PROFILE_TAB_ACTIVITY,
9
+ USER_PROFILE_TAB_OPEN_ORDERS,
10
+ USER_PROFILE_TAB_POSITIONS,
11
+ UserProfilePage,
12
+ useHomePageModals
13
+ } from "./chunk-75IGOQ4N.mjs";
14
+ import {
15
+ EventList,
16
+ EventListItem,
17
+ EventListItemDetails,
18
+ MarketDetails,
19
+ MarketDetailsList,
20
+ Orderbook,
21
+ OrderbookWithStates,
22
+ SettlementSummary,
23
+ collectEligibleVenueOutcomeIds,
24
+ collectEligibleVenueOutcomes,
25
+ mergeVenueOutcomeOrderbooks,
26
+ orderbookRowLimitDefault,
27
+ useCenterOrderbookSpread
28
+ } from "./chunk-I2WBGEWK.mjs";
29
+ import {
30
+ CARD_NETWORK_OPTIONS,
31
+ ConnectAccountsStep,
32
+ ConnectKalshiModal,
33
+ ConnectOnchainModal,
34
+ DepositModal,
35
+ GeoBlockModal,
36
+ HowItWorksStep,
37
+ OnboardingModal,
38
+ ProfileModal,
39
+ ProfileSetupStep,
40
+ WithdrawModal,
41
+ clearPendingCardSession,
42
+ getPendingCardSession
43
+ } from "./chunk-DMKKNK76.mjs";
44
+ import {
45
+ DEPOSIT_MODAL_OPEN_EVENT,
46
+ PlaceOrder,
47
+ PlaceOrderFailureView,
48
+ PlaceOrderSuccessView,
49
+ Settlement,
50
+ SettlementDetails,
51
+ WITHDRAW_MODAL_OPEN_EVENT,
52
+ defaultSettlementDifferencesTitle,
53
+ defaultSettlementSectionLabel,
54
+ defaultTradingDisclaimer,
55
+ getTradingAveragePriceLabel,
56
+ getTradingBalanceLabel,
57
+ getTradingDateLabel,
58
+ getTradingPriceLabel,
59
+ getTradingSharesLabel,
60
+ getTradingSlippageLabel,
61
+ getTradingValueLabel,
62
+ getTradingVenueLabel,
63
+ mapVenueMarketsToSettlementSections,
64
+ parseAmount,
65
+ parseVenue,
66
+ requestAggDepositModalOpen,
67
+ requestAggWithdrawModalOpen
68
+ } from "./chunk-CGNDMLQL.mjs";
69
+ import {
70
+ formatProbabilityCents,
71
+ resolveOrderBookRows,
72
+ resolveUnifiedOrderBookEntries,
73
+ useEventTradingContext
74
+ } from "./chunk-C7T56TJR.mjs";
75
+ import {
76
+ GeoBlockBanner
77
+ } from "./chunk-2QJXRRYP.mjs";
78
+ import {
79
+ AGG_DEFAULT_URL,
80
+ AGG_DOCS_URL,
81
+ AGG_PRIVACY_POLICY_URL,
82
+ AGG_ROOT_CLASS_NAME,
83
+ AGG_TERMS_OF_SERVICE_URL,
84
+ ActivityChartIcon,
85
+ AggErrorBoundary,
86
+ AggLogo,
87
+ AppleIcon,
88
+ ArbitrumIcon,
89
+ ArrowRightIcon,
90
+ ArrowTrendUpIcon,
91
+ ArrowsToDotIcon,
92
+ AutocompleteSelect,
93
+ Badge,
94
+ BadgeCheckThinIcon,
95
+ BankIcon,
96
+ BaseIcon,
97
+ BestPricesIcon,
98
+ BnbIcon,
99
+ BoltIcon,
100
+ Button,
101
+ Card,
102
+ ChartCandlestickIcon,
103
+ ChartLineIcon,
104
+ CheckCircleIcon,
105
+ ChevronDownIcon,
106
+ ChevronLeftIcon,
107
+ ChevronRightIcon,
108
+ ChevronUpIcon,
109
+ CloseIcon,
110
+ CopyIcon,
111
+ CreateAccountIcon,
112
+ CreditCardIcon,
113
+ CurrencyInput,
114
+ DisconnectIcon,
115
+ DocumentIcon,
116
+ DotsHorizontalIcon,
117
+ DownloadIcon,
118
+ ErrorFilledIcon,
119
+ EthereumIcon,
120
+ ExternalLinkIcon,
121
+ Footer,
122
+ GoogleIcon,
123
+ Header,
124
+ Icon,
125
+ ImageIcon,
126
+ InfoIcon,
127
+ InlineAlert,
128
+ LineChart,
129
+ LinkAccountsIcon,
130
+ LoadingIcon,
131
+ Modal,
132
+ NumberValue,
133
+ PaperPlaneIcon,
134
+ PencilIcon,
135
+ PlaySquareIcon,
136
+ PolygonIcon,
137
+ ProfileIcon,
138
+ RemoteImage,
139
+ RevenueAltIcon,
140
+ Search,
141
+ SearchIcon,
142
+ Select,
143
+ ShieldTrustIcon,
144
+ Skeleton,
145
+ SolanaIcon,
146
+ SparklesFilledIcon,
147
+ StateMessage,
148
+ StayInControlIcon,
149
+ SuccessCheckIcon,
150
+ SwitchButton,
151
+ Tabs,
152
+ Tooltip,
153
+ TriangleDownIcon,
154
+ TriangleUpFilledIcon,
155
+ TriangleUpIcon,
156
+ Typography,
157
+ UploadIcon,
158
+ UsdcIcon,
159
+ UserTrustIcon,
160
+ VenueLogo,
161
+ WalletAvatarIcon,
162
+ WalletFilledIcon,
163
+ WalletIcon,
164
+ WarningFilledIcon,
165
+ WarningIcon,
166
+ __spreadProps,
167
+ __spreadValues,
168
+ badgeSizes,
169
+ cn,
170
+ formatAmountDisplay,
171
+ formatCompactUsd,
172
+ formatUsd,
173
+ getMotionClassName,
174
+ getScrollBehavior,
175
+ iconNames,
176
+ isTruthy,
177
+ isValidDateValue,
178
+ shortenAddress,
179
+ skeletonViews,
180
+ toDate,
181
+ typographyVariants,
182
+ venueLogoNames
183
+ } from "./chunk-6NS7D73S.mjs";
184
+
185
+ // src/auth/connect-button-view/index.tsx
186
+ import { optimizedImageUrl, useAggAuthContext, useLabels, useSdkUiConfig } from "@agg-build/hooks";
187
+ import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
188
+
189
+ // src/auth/connect-button-view/connect-button-view.constants.ts
190
+ var connectButtonContainerClassName = cn(
191
+ "inline-flex flex-col items-start gap-2 font-agg-sans max-w-full"
192
+ );
193
+ var authNoticeClassName = cn("text-agg-xs leading-agg-4 text-agg-muted-foreground");
194
+ var authErrorClassName = cn("text-agg-sm leading-agg-5 text-red-500");
195
+ var authModalContainerClassName = cn("max-w-[400px] rounded-[24px]");
196
+ var authModalBodyClassName = cn("px-8 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-6");
197
+ var authSectionClassName = cn("flex w-full flex-col gap-5");
198
+ var authSectionHeadingClassName = cn(
199
+ "text-center text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground"
200
+ );
201
+ var authMethodsListClassName = cn("flex w-full flex-col gap-6 pt-2");
202
+ var authInputFormClassName = cn("flex w-full flex-col gap-3");
203
+ var authInputFieldClassName = cn(
204
+ "h-10 w-full rounded-[4px] border border-agg-separator bg-agg-secondary px-4 text-agg-base leading-agg-6 text-agg-foreground outline-none",
205
+ "placeholder:text-agg-muted-foreground focus-visible:border-agg-primary-hover focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-[-1px] focus-visible:ring-offset-agg-secondary",
206
+ "disabled:cursor-not-allowed disabled:text-agg-muted-foreground"
207
+ );
208
+ var authPrimaryActionClassName = cn("h-10 w-full");
209
+ var authMethodGridClassName = cn(
210
+ "grid w-full gap-3 [grid-template-columns:repeat(auto-fit,minmax(60px,1fr))]",
211
+ "[&>*]:w-full [&>*]:mx-auto"
212
+ );
213
+ var authWalletMethodGridClassName = cn("flex w-full flex-col gap-2");
214
+ var authSocialButtonClassName = cn(
215
+ "cursor-pointer! hover:cursor-pointer hover:bg-agg-secondary-hover",
216
+ "flex h-[60px] items-center justify-center rounded-xl border border-agg-separator bg-agg-secondary text-agg-foreground",
217
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-0 focus-visible:ring-offset-agg-secondary",
218
+ "disabled:cursor-not-allowed disabled:text-agg-muted-foreground"
219
+ );
220
+ var authWalletButtonClassName = cn(
221
+ "cursor-pointer! hover:cursor-pointer hover:bg-agg-secondary-hover",
222
+ "flex h-12 items-center justify-center gap-2 rounded-agg-full border border-agg-separator bg-agg-secondary px-4 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground",
223
+ "hover:bg-agg-secondary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary-hover focus-visible:ring-offset-0 focus-visible:ring-offset-agg-secondary",
224
+ "disabled:cursor-not-allowed disabled:text-agg-muted-foreground"
225
+ );
226
+ var authWalletIconGroupClassName = cn("flex items-center justify-center -space-x-2");
227
+ var authHelperTextClassName = cn(
228
+ "text-center text-agg-xs leading-agg-4 text-agg-muted-foreground"
229
+ );
230
+ var authHelperLinkClassName = cn("underline underline-offset-2 decoration-current");
231
+ var authDividerClassName = cn("flex w-full items-center gap-3");
232
+ var authDividerLineClassName = cn("h-px flex-1 bg-agg-separator");
233
+ var authDividerLabelClassName = cn(
234
+ "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground"
235
+ );
236
+ var authLegalTextClassName = cn(
237
+ "text-center text-agg-xs leading-agg-4 text-agg-muted-foreground"
238
+ );
239
+ var connectedButtonsRowClassName = cn("inline-flex h-10 items-center gap-2 max-w-full");
240
+ var connectedBalanceChipClassName = cn(
241
+ "hidden md:inline-flex",
242
+ "h-10 items-center gap-4 rounded-agg-full border border-agg-separator bg-agg-secondary pl-[12px] pr-13 font-agg-sans"
243
+ );
244
+ var profileMenuContentClassName = cn(
245
+ "z-50 w-64 max-w-[calc(100vw-2rem)] overflow-hidden rounded-agg-xl font-agg-sans",
246
+ "border border-agg-separator bg-agg-secondary",
247
+ "shadow-agg-popover"
248
+ );
249
+ var profileMenuSectionClassName = cn("flex w-full flex-col gap-5 px-5 py-5");
250
+ var profileMenuSeparatorClassName = cn("h-px w-full bg-agg-separator");
251
+ var profileMenuActionItemClassName = cn(
252
+ "flex w-full items-center gap-3 px-5 py-4 font-agg-sans text-agg-sm leading-agg-5 text-agg-foreground",
253
+ "outline-none",
254
+ "hover:bg-agg-secondary-hover focus:bg-agg-secondary-hover"
255
+ );
256
+ var avatarRootClassName = cn(
257
+ "inline-flex size-6 shrink-0 items-center justify-center rounded-agg-full bg-agg-separator"
258
+ );
259
+ var avatarIconClassName = cn("h-[66%] w-[66%] text-agg-muted-foreground");
260
+
261
+ // src/auth/connect-button-view/index.tsx
262
+ import { jsx, jsxs } from "react/jsx-runtime";
263
+ var WalletAvatar = ({ className }) => {
264
+ const { isAuthenticated, user } = useAggAuthContext();
265
+ if (isAuthenticated && (user == null ? void 0 : user.avatarUrl)) {
266
+ return /* @__PURE__ */ jsx(
267
+ "img",
268
+ {
269
+ src: optimizedImageUrl(user.avatarUrl, 44),
270
+ alt: "Avatar",
271
+ className: cn(avatarRootClassName, className)
272
+ }
273
+ );
274
+ }
275
+ return /* @__PURE__ */ jsx(DefaultAvatar, { className: cn("size-6 shrink-0 rounded-full", className) });
276
+ };
277
+ var AuthMethodActionButton = ({
278
+ activeMethodId,
279
+ className,
280
+ disabled,
281
+ method,
282
+ onSelect,
283
+ renderLabel = true
284
+ }) => {
285
+ var _a;
286
+ const labels = useLabels();
287
+ const isMethodLoading = activeMethodId === method.id;
288
+ const isMethodDisabled = disabled || !method.isAvailable || activeMethodId !== null && !isMethodLoading;
289
+ return /* @__PURE__ */ jsxs(
290
+ "button",
291
+ {
292
+ type: "button",
293
+ className,
294
+ disabled: isMethodDisabled,
295
+ "aria-busy": isMethodLoading || void 0,
296
+ "aria-label": labels.auth.signInWithMethod(method.label),
297
+ onClick: () => onSelect(method.id),
298
+ children: [
299
+ isMethodLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : /* @__PURE__ */ jsx(
300
+ Icon,
301
+ {
302
+ name: (_a = method.iconName) != null ? _a : "profile",
303
+ size: "medium",
304
+ className: cn("!rounded-agg-lg", renderLabel ? void 0 : "h-6 w-6 text-agg-foreground"),
305
+ title: renderLabel ? void 0 : method.label
306
+ }
307
+ ),
308
+ renderLabel ? /* @__PURE__ */ jsx("span", { children: labels.auth.connect(method.label) }) : null
309
+ ]
310
+ }
311
+ );
312
+ };
313
+ var UnauthenticatedConnectView = ({
314
+ activeMethodId,
315
+ buttonProps,
316
+ challengeContent,
317
+ classNames,
318
+ disabled,
319
+ emailMethod,
320
+ emailError,
321
+ emailValue,
322
+ errorMessage,
323
+ isBusy,
324
+ isChooserOpen,
325
+ notice,
326
+ onChooserOpenChange,
327
+ onEmailChange,
328
+ onEmailSubmit,
329
+ onMethodSelect,
330
+ socialMethods,
331
+ walletMethods
332
+ }) => {
333
+ var _a, _b, _c, _d, _e;
334
+ const labels = useLabels();
335
+ const hasConfiguredMethods = emailMethod !== null || socialMethods.length > 0 || walletMethods.length > 0;
336
+ const showWalletDivider = walletMethods.length > 0 && (emailMethod !== null || socialMethods.length > 0);
337
+ return /* @__PURE__ */ jsxs("div", { className: cn(connectButtonContainerClassName, classNames == null ? void 0 : classNames.root), children: [
338
+ /* @__PURE__ */ jsx(
339
+ Button,
340
+ __spreadProps(__spreadValues({
341
+ variant: "primary",
342
+ size: "large",
343
+ className: classNames == null ? void 0 : classNames.connectButton,
344
+ onClick: () => onChooserOpenChange(true),
345
+ disabled: disabled || !hasConfiguredMethods,
346
+ "aria-label": labels.auth.connect()
347
+ }, buttonProps), {
348
+ children: labels.auth.connect()
349
+ })
350
+ ),
351
+ notice ? /* @__PURE__ */ jsx("p", { className: cn(authNoticeClassName, classNames == null ? void 0 : classNames.authNotice), children: notice }) : null,
352
+ /* @__PURE__ */ jsx(Modal, { open: isChooserOpen || !!challengeContent, onOpenChange: onChooserOpenChange, children: /* @__PURE__ */ jsxs(
353
+ Modal.Container,
354
+ {
355
+ maxWidth: "400px",
356
+ classNames: {
357
+ container: cn(authModalContainerClassName, classNames == null ? void 0 : classNames.authModalContent)
358
+ },
359
+ "aria-label": challengeContent ? "Security Check" : labels.auth.signIn,
360
+ children: [
361
+ /* @__PURE__ */ jsx(
362
+ Modal.Header,
363
+ {
364
+ title: challengeContent ? "Security Check" : labels.auth.signIn,
365
+ hideBorder: true,
366
+ classNames: {
367
+ container: "px-8 py-6",
368
+ title: "text-agg-2xl leading-agg-8",
369
+ titleContainer: "max-w-none"
370
+ }
371
+ }
372
+ ),
373
+ /* @__PURE__ */ jsx(Modal.Body, { classNames: { root: authModalBodyClassName }, children: challengeContent ? challengeContent : /* @__PURE__ */ jsxs("div", { className: authMethodsListClassName, children: [
374
+ emailMethod ? /* @__PURE__ */ jsxs(
375
+ "form",
376
+ {
377
+ className: authSectionClassName,
378
+ onSubmit: (event) => {
379
+ event.preventDefault();
380
+ onEmailSubmit();
381
+ },
382
+ children: [
383
+ /* @__PURE__ */ jsxs("div", { className: authInputFormClassName, children: [
384
+ /* @__PURE__ */ jsx(
385
+ "input",
386
+ {
387
+ id: "agg-auth-email",
388
+ type: "email",
389
+ value: emailValue,
390
+ onChange: (event) => onEmailChange(event.target.value),
391
+ placeholder: (_b = (_a = emailMethod.input) == null ? void 0 : _a.placeholder) != null ? _b : labels.auth.emailAddress,
392
+ className: cn(authInputFieldClassName, classNames == null ? void 0 : classNames.authFormField),
393
+ "aria-label": labels.auth.emailAddress,
394
+ disabled: disabled || isBusy || !emailMethod.isAvailable
395
+ }
396
+ ),
397
+ /* @__PURE__ */ jsx(
398
+ Button,
399
+ {
400
+ type: "submit",
401
+ variant: "secondary",
402
+ size: "large",
403
+ className: authPrimaryActionClassName,
404
+ isLoading: activeMethodId === emailMethod.id,
405
+ disabled: disabled || isBusy || !emailMethod.isAvailable,
406
+ children: (_d = (_c = emailMethod.input) == null ? void 0 : _c.submitLabel) != null ? _d : labels.auth.continue
407
+ }
408
+ )
409
+ ] }),
410
+ emailMethod.isAvailable && ((_e = emailMethod.input) == null ? void 0 : _e.helperText) ? /* @__PURE__ */ jsx("p", { className: cn(authNoticeClassName, classNames == null ? void 0 : classNames.authNotice), children: emailMethod.input.helperText }) : null,
411
+ !emailMethod.isAvailable ? /* @__PURE__ */ jsx(
412
+ InlineAlert,
413
+ {
414
+ tone: "warning",
415
+ variant: "surface",
416
+ message: labels.auth.emailUnavailable,
417
+ className: classNames == null ? void 0 : classNames.authError
418
+ }
419
+ ) : null,
420
+ emailError ? /* @__PURE__ */ jsx(
421
+ InlineAlert,
422
+ {
423
+ tone: "error",
424
+ message: emailError,
425
+ className: classNames == null ? void 0 : classNames.authError
426
+ }
427
+ ) : null
428
+ ]
429
+ }
430
+ ) : null,
431
+ socialMethods.length > 0 ? /* @__PURE__ */ jsxs("div", { className: authSectionClassName, children: [
432
+ /* @__PURE__ */ jsx("div", { className: cn(authMethodGridClassName, classNames == null ? void 0 : classNames.authMethodGrid), children: socialMethods.map((method) => /* @__PURE__ */ jsx(
433
+ AuthMethodActionButton,
434
+ {
435
+ activeMethodId,
436
+ className: cn(authSocialButtonClassName, classNames == null ? void 0 : classNames.authMethodButton),
437
+ disabled: disabled || isBusy,
438
+ method,
439
+ onSelect: onMethodSelect,
440
+ renderLabel: false
441
+ },
442
+ method.id
443
+ )) }),
444
+ /* @__PURE__ */ jsxs("p", { className: authHelperTextClassName, children: [
445
+ labels.auth.socialWalletNotice,
446
+ " ",
447
+ /* @__PURE__ */ jsx("span", { className: cn(authHelperLinkClassName, classNames == null ? void 0 : classNames.authHelperLink), children: labels.auth.learnMore })
448
+ ] })
449
+ ] }) : null,
450
+ showWalletDivider ? /* @__PURE__ */ jsxs("div", { className: authDividerClassName, children: [
451
+ /* @__PURE__ */ jsx("div", { className: authDividerLineClassName }),
452
+ /* @__PURE__ */ jsx("span", { className: authDividerLabelClassName, children: labels.auth.dividerOr }),
453
+ /* @__PURE__ */ jsx("div", { className: authDividerLineClassName })
454
+ ] }) : null,
455
+ walletMethods.length > 0 ? /* @__PURE__ */ jsx("div", { className: authSectionClassName, children: /* @__PURE__ */ jsx("div", { className: cn(authWalletMethodGridClassName, classNames == null ? void 0 : classNames.authMethodGrid), children: walletMethods.map((method) => /* @__PURE__ */ jsx(
456
+ AuthMethodActionButton,
457
+ {
458
+ activeMethodId,
459
+ className: cn(authWalletButtonClassName, classNames == null ? void 0 : classNames.authMethodButton),
460
+ disabled: disabled || isBusy,
461
+ method,
462
+ onSelect: onMethodSelect
463
+ },
464
+ method.id
465
+ )) }) }) : null,
466
+ /* @__PURE__ */ jsxs("p", { className: authLegalTextClassName, children: [
467
+ labels.auth.legalNoticePrefix,
468
+ " ",
469
+ /* @__PURE__ */ jsx(
470
+ "a",
471
+ {
472
+ className: cn(authHelperLinkClassName, classNames == null ? void 0 : classNames.authHelperLink),
473
+ href: AGG_TERMS_OF_SERVICE_URL,
474
+ target: "_blank",
475
+ rel: "noreferrer",
476
+ children: labels.auth.terms
477
+ }
478
+ ),
479
+ " ",
480
+ labels.auth.legalNoticeSeparator,
481
+ " ",
482
+ /* @__PURE__ */ jsx(
483
+ "a",
484
+ {
485
+ className: cn(authHelperLinkClassName, classNames == null ? void 0 : classNames.authHelperLink),
486
+ href: AGG_PRIVACY_POLICY_URL,
487
+ target: "_blank",
488
+ rel: "noreferrer",
489
+ children: labels.auth.privacyPolicy
490
+ }
491
+ ),
492
+ "."
493
+ ] }),
494
+ errorMessage ? /* @__PURE__ */ jsx(
495
+ InlineAlert,
496
+ {
497
+ tone: "error",
498
+ message: errorMessage,
499
+ className: classNames == null ? void 0 : classNames.authError
500
+ }
501
+ ) : null
502
+ ] }) })
503
+ ]
504
+ }
505
+ ) })
506
+ ] });
507
+ };
508
+ var AuthConnectButtonView = ({
509
+ activeMethodId,
510
+ addressLabel,
511
+ buttonProps,
512
+ challengeContent,
513
+ classNames,
514
+ disabled,
515
+ emailMethod,
516
+ emailError,
517
+ emailValue,
518
+ errorMessage,
519
+ isAuthenticated,
520
+ isBalanceLoading,
521
+ isBusy,
522
+ isChooserOpen,
523
+ isProfileMenuOpen,
524
+ notice,
525
+ onChooserOpenChange,
526
+ onDepositClick,
527
+ onDisconnectClick,
528
+ onEmailChange,
529
+ onEmailSubmit,
530
+ onMethodSelect,
531
+ onProfileCardClick,
532
+ onProfileClick,
533
+ onProfileMenuOpenChange,
534
+ socialMethods,
535
+ onWithdrawClick,
536
+ profileLabel,
537
+ totalBalance,
538
+ positionsBalance,
539
+ claimReadyCount = 0,
540
+ onClaimWinningsClick,
541
+ walletMethods,
542
+ isDepositBlocked = false
543
+ }) => {
544
+ var _a;
545
+ const labels = useLabels();
546
+ const {
547
+ general: { rootClassName },
548
+ features: { enableAnimations }
549
+ } = useSdkUiConfig();
550
+ const resolvedProfileLabel = profileLabel || labels.auth.myProfile;
551
+ const authLabelsWithClaim = labels.auth;
552
+ const resolveClaimTooltipLabel = (count) => {
553
+ var _a2, _b;
554
+ return (_b = (_a2 = authLabelsWithClaim.claimableWinningsTooltip) == null ? void 0 : _a2.call(authLabelsWithClaim, count)) != null ? _b : `${count} position${count === 1 ? "" : "s"} ready to claim`;
555
+ };
556
+ const resolveClaimBadgeAriaLabel = (count) => {
557
+ var _a2, _b;
558
+ return (_b = (_a2 = authLabelsWithClaim.claimableWinningsBadge) == null ? void 0 : _a2.call(authLabelsWithClaim, count)) != null ? _b : `${count} claimable winning${count === 1 ? "" : "s"}`;
559
+ };
560
+ const claimWinningsLabel = (_a = authLabelsWithClaim.claimWinnings) != null ? _a : "Claim Now";
561
+ const dropdownMenuItemClassName = cn(
562
+ "cursor-pointer",
563
+ profileMenuActionItemClassName,
564
+ enableAnimations ? "transition-colors" : null,
565
+ disabled ? "pointer-events-none opacity-50" : null,
566
+ classNames == null ? void 0 : classNames.profileMenuActionItem
567
+ );
568
+ if (!isAuthenticated) {
569
+ return /* @__PURE__ */ jsx(
570
+ UnauthenticatedConnectView,
571
+ {
572
+ activeMethodId,
573
+ buttonProps,
574
+ challengeContent,
575
+ classNames,
576
+ disabled,
577
+ emailMethod,
578
+ emailError,
579
+ emailValue,
580
+ errorMessage,
581
+ isBusy,
582
+ isChooserOpen,
583
+ notice,
584
+ onChooserOpenChange,
585
+ onEmailChange,
586
+ onEmailSubmit,
587
+ onMethodSelect,
588
+ socialMethods,
589
+ walletMethods
590
+ }
591
+ );
592
+ }
593
+ return /* @__PURE__ */ jsx("div", { className: cn(connectButtonContainerClassName, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ jsxs("div", { className: cn(connectedButtonsRowClassName, classNames == null ? void 0 : classNames.connectedRow), children: [
594
+ /* @__PURE__ */ jsxs("div", { className: cn(connectedBalanceChipClassName, classNames == null ? void 0 : classNames.balanceChip), children: [
595
+ /* @__PURE__ */ jsx("div", { className: "hidden lg:inline-flex", children: /* @__PURE__ */ jsx(
596
+ ConditionalWrapper,
597
+ {
598
+ condition: isDepositBlocked,
599
+ wrapper: (children) => /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }), children }),
600
+ children: /* @__PURE__ */ jsx(
601
+ Button,
602
+ __spreadProps(__spreadValues({
603
+ variant: "primary",
604
+ size: "small",
605
+ className: cn("h-6! px-3! text-agg-xs! leading-agg-4!", classNames == null ? void 0 : classNames.depositButton)
606
+ }, !isDepositBlocked ? { onClick: onDepositClick } : { disabled: true }), {
607
+ "aria-label": labels.auth.deposit,
608
+ children: labels.auth.deposit
609
+ })
610
+ )
611
+ }
612
+ ) }),
613
+ /* @__PURE__ */ jsx(
614
+ ConditionalWrapper,
615
+ {
616
+ condition: claimReadyCount > 0,
617
+ wrapper: (children) => /* @__PURE__ */ jsx(
618
+ Tooltip,
619
+ {
620
+ size: "medium",
621
+ content: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
622
+ /* @__PURE__ */ jsx("p", { children: resolveClaimTooltipLabel(claimReadyCount) }),
623
+ onClaimWinningsClick ? /* @__PURE__ */ jsxs(
624
+ "button",
625
+ {
626
+ type: "button",
627
+ className: "inline-flex cursor-pointer items-center gap-1.5 font-agg-bold text-agg-primary hover:text-agg-primary-hover",
628
+ onClick: onClaimWinningsClick,
629
+ children: [
630
+ claimWinningsLabel,
631
+ /* @__PURE__ */ jsx(
632
+ Icon,
633
+ {
634
+ name: "arrow-right",
635
+ size: "small",
636
+ className: "h-3.5 w-3.5 text-agg-primary",
637
+ "aria-hidden": true
638
+ }
639
+ )
640
+ ]
641
+ }
642
+ ) : null
643
+ ] }),
644
+ children
645
+ }
646
+ ),
647
+ children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
648
+ /* @__PURE__ */ jsx("span", { className: "h-3.5 w-3.5 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: /* @__PURE__ */ jsx(Icon, { name: "activity-chart", size: "small", className: "text-agg-muted-foreground" }) }),
649
+ /* @__PURE__ */ jsx("p", { className: cn("agg-type-label text-agg-foreground", classNames == null ? void 0 : classNames.positionsText), children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(positionsBalance) }),
650
+ claimReadyCount > 0 ? /* @__PURE__ */ jsx(
651
+ "span",
652
+ {
653
+ className: "inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-linear-to-r from-agg-primary to-agg-primary-hover text-[10px] leading-[14px] font-agg-bold text-white uppercase",
654
+ "aria-label": resolveClaimBadgeAriaLabel(claimReadyCount),
655
+ children: claimReadyCount
656
+ }
657
+ ) : null
658
+ ] })
659
+ }
660
+ ),
661
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
662
+ /* @__PURE__ */ jsx("span", { className: "h-3.5 w-3.5 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: /* @__PURE__ */ jsx(Icon, { name: "wallet-filled", size: "small", className: "text-agg-muted-foreground" }) }),
663
+ /* @__PURE__ */ jsx("p", { className: cn("agg-type-label text-agg-foreground", classNames == null ? void 0 : classNames.balanceText), children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingIcon, { size: "small" }) : formatUsd(totalBalance) })
664
+ ] })
665
+ ] }),
666
+ /* @__PURE__ */ jsxs(DropdownMenu.Root, { open: isProfileMenuOpen, onOpenChange: onProfileMenuOpenChange, children: [
667
+ /* @__PURE__ */ jsx(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
668
+ "button",
669
+ {
670
+ type: "button",
671
+ className: cn(
672
+ "ml-0 md:-ml-12 max-w-48",
673
+ "inline-flex h-10 items-center gap-3 rounded-agg-full border bg-agg-secondary pl-2 pr-3 font-agg-sans",
674
+ "cursor-pointer hover:bg-agg-secondary-hover",
675
+ "focus-visible:outline-none focus-visible:border-agg-primary",
676
+ isProfileMenuOpen ? "border-agg-primary" : "border-agg-separator",
677
+ enableAnimations ? "transition-colors" : null,
678
+ classNames == null ? void 0 : classNames.profileTrigger
679
+ ),
680
+ disabled,
681
+ "aria-label": labels.auth.walletMenuFor(resolvedProfileLabel),
682
+ children: [
683
+ /* @__PURE__ */ jsx(WalletAvatar, {}),
684
+ /* @__PURE__ */ jsx(
685
+ Typography,
686
+ {
687
+ variant: "body-strong",
688
+ className: cn("truncate whitespace-pre", classNames == null ? void 0 : classNames.profileTriggerLabel),
689
+ children: resolvedProfileLabel
690
+ }
691
+ ),
692
+ /* @__PURE__ */ jsx(
693
+ Icon,
694
+ {
695
+ name: isProfileMenuOpen ? "chevron-up" : "chevron-down",
696
+ size: "small",
697
+ className: "h-3.5 w-3.5 min-w-3.5 min-h-3.5 text-agg-foreground",
698
+ "aria-hidden": "true"
699
+ }
700
+ )
701
+ ]
702
+ }
703
+ ) }),
704
+ /* @__PURE__ */ jsx(DropdownMenu.Portal, { children: /* @__PURE__ */ jsxs(
705
+ DropdownMenu.Content,
706
+ {
707
+ className: cn(
708
+ AGG_ROOT_CLASS_NAME,
709
+ rootClassName,
710
+ profileMenuContentClassName,
711
+ classNames == null ? void 0 : classNames.profileMenuContent
712
+ ),
713
+ "data-agg-animations": enableAnimations ? "true" : "false",
714
+ sideOffset: 4,
715
+ align: "end",
716
+ children: [
717
+ /* @__PURE__ */ jsx(
718
+ "button",
719
+ {
720
+ type: "button",
721
+ className: cn(
722
+ profileMenuSectionClassName,
723
+ "cursor-pointer",
724
+ "hover:bg-agg-secondary-hover focus:bg-agg-secondary-hover",
725
+ enableAnimations ? "transition-colors" : null,
726
+ classNames == null ? void 0 : classNames.profileMenuSection
727
+ ),
728
+ onClick: onProfileCardClick,
729
+ disabled,
730
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-row items-start justify-start gap-3", children: [
731
+ /* @__PURE__ */ jsx(WalletAvatar, { className: "size-11" }),
732
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col items-start justify-start gap-0.5", children: [
733
+ /* @__PURE__ */ jsx("p", { className: "w-full truncate text-agg-lg font-agg-bold leading-agg-7 text-agg-foreground text-left", children: resolvedProfileLabel }),
734
+ addressLabel ? /* @__PURE__ */ jsx("p", { className: "w-full truncate text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground text-left", children: addressLabel }) : null
735
+ ] })
736
+ ] })
737
+ }
738
+ ),
739
+ /* @__PURE__ */ jsx(
740
+ "div",
741
+ {
742
+ className: cn(profileMenuSeparatorClassName, classNames == null ? void 0 : classNames.profileMenuSeparator)
743
+ }
744
+ ),
745
+ /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col py-2", children: [
746
+ /* @__PURE__ */ jsxs(
747
+ DropdownMenu.Item,
748
+ {
749
+ className: dropdownMenuItemClassName,
750
+ onSelect: onProfileClick,
751
+ disabled,
752
+ children: [
753
+ /* @__PURE__ */ jsx(Icon, { name: "profile", size: "small", className: "text-agg-foreground" }),
754
+ /* @__PURE__ */ jsx("span", { children: labels.auth.myProfile })
755
+ ]
756
+ }
757
+ ),
758
+ isDepositBlocked ? /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx("p", { className: "text-center", children: labels.auth.depositGeoBlocked }), children: /* @__PURE__ */ jsx("span", { className: "w-full", children: /* @__PURE__ */ jsxs(
759
+ DropdownMenu.Item,
760
+ {
761
+ className: cn(dropdownMenuItemClassName, "opacity-50 pointer-events-none"),
762
+ disabled: true,
763
+ children: [
764
+ /* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
765
+ /* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
766
+ ]
767
+ }
768
+ ) }) }) : /* @__PURE__ */ jsxs(
769
+ DropdownMenu.Item,
770
+ {
771
+ className: dropdownMenuItemClassName,
772
+ onSelect: onDepositClick,
773
+ disabled,
774
+ children: [
775
+ /* @__PURE__ */ jsx(Icon, { name: "download", size: "small", className: "text-agg-foreground" }),
776
+ /* @__PURE__ */ jsx("span", { children: labels.auth.deposit })
777
+ ]
778
+ }
779
+ ),
780
+ /* @__PURE__ */ jsxs(
781
+ DropdownMenu.Item,
782
+ {
783
+ className: dropdownMenuItemClassName,
784
+ onSelect: onWithdrawClick,
785
+ disabled,
786
+ children: [
787
+ /* @__PURE__ */ jsx(Icon, { name: "upload", size: "small", className: "text-agg-foreground" }),
788
+ /* @__PURE__ */ jsx("span", { children: labels.auth.withdraw })
789
+ ]
790
+ }
791
+ ),
792
+ /* @__PURE__ */ jsxs(
793
+ DropdownMenu.Item,
794
+ {
795
+ className: dropdownMenuItemClassName,
796
+ onSelect: onDisconnectClick,
797
+ disabled,
798
+ children: [
799
+ /* @__PURE__ */ jsx(Icon, { name: "disconnect", size: "small", className: "text-agg-foreground" }),
800
+ /* @__PURE__ */ jsx("span", { children: labels.auth.disconnect })
801
+ ]
802
+ }
803
+ )
804
+ ] })
805
+ ]
806
+ }
807
+ ) })
808
+ ] })
809
+ ] }) });
810
+ };
811
+ AuthConnectButtonView.displayName = "AuthConnectButtonView";
812
+ export {
813
+ AGG_DEFAULT_URL,
814
+ AGG_DOCS_URL,
815
+ AGG_PRIVACY_POLICY_URL,
816
+ AGG_ROOT_CLASS_NAME,
817
+ AGG_TERMS_OF_SERVICE_URL,
818
+ ActivityChartIcon,
819
+ AggErrorBoundary,
820
+ AggLogo,
821
+ AppleIcon,
822
+ ArbitrumIcon,
823
+ ArrowRightIcon,
824
+ ArrowTrendUpIcon,
825
+ ArrowsToDotIcon,
826
+ AuthConnectButtonView,
827
+ AutocompleteSelect,
828
+ Badge,
829
+ BadgeCheckThinIcon,
830
+ BankIcon,
831
+ BaseIcon,
832
+ BestPricesIcon,
833
+ BnbIcon,
834
+ BoltIcon,
835
+ Button,
836
+ CARD_NETWORK_OPTIONS,
837
+ Card,
838
+ ChartCandlestickIcon,
839
+ ChartLineIcon,
840
+ CheckCircleIcon,
841
+ ChevronDownIcon,
842
+ ChevronLeftIcon,
843
+ ChevronRightIcon,
844
+ ChevronUpIcon,
845
+ CloseIcon,
846
+ ConnectAccountsStep,
847
+ ConnectKalshiModal,
848
+ ConnectOnchainModal,
849
+ CopyIcon,
850
+ CreateAccountIcon,
851
+ CreditCardIcon,
852
+ CurrencyInput,
853
+ DEPOSIT_MODAL_OPEN_EVENT,
854
+ DepositModal,
855
+ DisconnectIcon,
856
+ DocumentIcon,
857
+ DotsHorizontalIcon,
858
+ DownloadIcon,
859
+ ErrorFilledIcon,
860
+ EthereumIcon,
861
+ EventList,
862
+ EventListItem,
863
+ EventListItemDetails,
864
+ EventMarketPage,
865
+ ExternalLinkIcon,
866
+ Footer,
867
+ GeoBlockBanner,
868
+ GeoBlockModal,
869
+ GoogleIcon,
870
+ Header,
871
+ HomePage,
872
+ HowItWorksStep,
873
+ Icon,
874
+ ImageIcon,
875
+ InfoIcon,
876
+ InlineAlert,
877
+ LineChart,
878
+ LinkAccountsIcon,
879
+ LoadingIcon,
880
+ MarketDetails,
881
+ MarketDetailsList,
882
+ Modal,
883
+ NumberValue,
884
+ OnboardingModal,
885
+ Orderbook,
886
+ OrderbookWithStates,
887
+ PaperPlaneIcon,
888
+ PencilIcon,
889
+ PlaceOrder,
890
+ PlaceOrderFailureView,
891
+ PlaceOrderSuccessView,
892
+ PlaySquareIcon,
893
+ PolygonIcon,
894
+ ProfileIcon,
895
+ ProfileModal,
896
+ ProfileSetupStep,
897
+ RemoteImage,
898
+ RevenueAltIcon,
899
+ Search,
900
+ SearchIcon,
901
+ Select,
902
+ Settlement,
903
+ SettlementDetails,
904
+ SettlementSummary,
905
+ ShieldTrustIcon,
906
+ Skeleton,
907
+ SolanaIcon,
908
+ SparklesFilledIcon,
909
+ StateMessage,
910
+ StayInControlIcon,
911
+ SuccessCheckIcon,
912
+ SwitchButton,
913
+ Tabs,
914
+ Tooltip,
915
+ TriangleDownIcon,
916
+ TriangleUpFilledIcon,
917
+ TriangleUpIcon,
918
+ Typography,
919
+ USER_PROFILE_TAB_ACTIVITY,
920
+ USER_PROFILE_TAB_OPEN_ORDERS,
921
+ USER_PROFILE_TAB_POSITIONS,
922
+ UploadIcon,
923
+ UsdcIcon,
924
+ UserProfilePage,
925
+ UserTrustIcon,
926
+ VenueLogo,
927
+ WITHDRAW_MODAL_OPEN_EVENT,
928
+ WalletAvatarIcon,
929
+ WalletFilledIcon,
930
+ WalletIcon,
931
+ WarningFilledIcon,
932
+ WarningIcon,
933
+ WithdrawModal,
934
+ AGG_ROOT_CLASS_NAME as aggRootClassName,
935
+ badgeSizes,
936
+ clearPendingCardSession,
937
+ cn,
938
+ collectEligibleVenueOutcomeIds,
939
+ collectEligibleVenueOutcomes,
940
+ defaultSettlementDifferencesTitle,
941
+ defaultSettlementSectionLabel,
942
+ defaultTradingDisclaimer,
943
+ formatAmountDisplay,
944
+ formatCompactUsd,
945
+ formatProbabilityCents,
946
+ formatUsd,
947
+ getMotionClassName,
948
+ getPendingCardSession,
949
+ getScrollBehavior,
950
+ getTradingAveragePriceLabel,
951
+ getTradingBalanceLabel,
952
+ getTradingDateLabel,
953
+ getTradingPriceLabel,
954
+ getTradingSharesLabel,
955
+ getTradingSlippageLabel,
956
+ getTradingValueLabel,
957
+ getTradingVenueLabel,
958
+ iconNames,
959
+ isTruthy,
960
+ isValidDateValue,
961
+ mapVenueMarketsToSettlementSections,
962
+ mergeVenueOutcomeOrderbooks,
963
+ orderbookRowLimitDefault,
964
+ parseAmount,
965
+ parseVenue,
966
+ requestAggDepositModalOpen,
967
+ requestAggWithdrawModalOpen,
968
+ resolveOrderBookRows,
969
+ resolveUnifiedOrderBookEntries,
970
+ shortenAddress,
971
+ skeletonViews,
972
+ toDate,
973
+ typographyVariants,
974
+ useCenterOrderbookSpread,
975
+ useEventTradingContext,
976
+ useHomePageModals,
977
+ venueLogoNames
978
+ };