be-components 3.3.5 → 3.3.7

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 (554) hide show
  1. package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +21 -28
  2. package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
  3. package/lib/commonjs/Authenticator/Components/LoginForm.js +93 -109
  4. package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
  5. package/lib/commonjs/Authenticator/Components/StrategyForm.js +246 -342
  6. package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
  7. package/lib/commonjs/Authenticator/index.js +22 -32
  8. package/lib/commonjs/Authenticator/index.js.map +1 -1
  9. package/lib/commonjs/Competition/components/AthleteMarketCard.js +39 -26
  10. package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
  11. package/lib/commonjs/Competition/components/CompetitionInfoCard.js +115 -175
  12. package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
  13. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +97 -95
  14. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
  15. package/lib/commonjs/Competition/components/CompetitionPlay.js +99 -113
  16. package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
  17. package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +56 -75
  18. package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
  19. package/lib/commonjs/Competition/components/LeaderPicks.js +4 -4
  20. package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
  21. package/lib/commonjs/Competition/components/MarketsCard.js +22 -12
  22. package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
  23. package/lib/commonjs/Competition/components/TeamEventCard.js +46 -37
  24. package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
  25. package/lib/commonjs/Competition/components/WagerPickForm.js +73 -85
  26. package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
  27. package/lib/commonjs/Competition/index.js +236 -216
  28. package/lib/commonjs/Competition/index.js.map +1 -1
  29. package/lib/commonjs/Components/Button.js +49 -6
  30. package/lib/commonjs/Components/Button.js.map +1 -1
  31. package/lib/commonjs/Components/ConfirmationModal.js +29 -29
  32. package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
  33. package/lib/commonjs/Components/Themed.js +281 -0
  34. package/lib/commonjs/Components/Themed.js.map +1 -0
  35. package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +43 -52
  36. package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
  37. package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +50 -61
  38. package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
  39. package/lib/commonjs/MarketComponents/components/EventMarket/index.js +48 -54
  40. package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
  41. package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +2 -3
  42. package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
  43. package/lib/commonjs/MarketComponents/components/MarketButton/index.js +22 -22
  44. package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
  45. package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +65 -63
  46. package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
  47. package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +239 -220
  48. package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
  49. package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +48 -57
  50. package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
  51. package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +203 -131
  52. package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
  53. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +49 -55
  54. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  55. package/lib/commonjs/ProfileManager/Components/BasicStatus.js +55 -88
  56. package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
  57. package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +94 -121
  58. package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
  59. package/lib/commonjs/ProfileManager/Components/DOBManager.js +42 -46
  60. package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
  61. package/lib/commonjs/ProfileManager/Components/EmailManager.js +66 -86
  62. package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
  63. package/lib/commonjs/ProfileManager/Components/PasswordManager.js +60 -78
  64. package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
  65. package/lib/commonjs/ProfileManager/Components/PhoneManager.js +62 -81
  66. package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
  67. package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +19 -27
  68. package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
  69. package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +31 -48
  70. package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
  71. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +69 -92
  72. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
  73. package/lib/commonjs/ProfileManager/Components/SettingsManager.js +63 -65
  74. package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
  75. package/lib/commonjs/ProfileManager/Components/VouchCard.js +106 -132
  76. package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
  77. package/lib/commonjs/ProfileManager/index.js +29 -31
  78. package/lib/commonjs/ProfileManager/index.js.map +1 -1
  79. package/lib/commonjs/Share/api/index.js +13 -6
  80. package/lib/commonjs/Share/api/index.js.map +1 -1
  81. package/lib/commonjs/Share/index.js +11 -11
  82. package/lib/commonjs/Share/index.js.map +1 -1
  83. package/lib/commonjs/Squares/components/BidForm.js +142 -120
  84. package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
  85. package/lib/commonjs/Squares/components/BidToggle.js +10 -11
  86. package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
  87. package/lib/commonjs/Squares/components/BoardStats.js +63 -47
  88. package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
  89. package/lib/commonjs/Squares/components/EventCard.js +48 -29
  90. package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
  91. package/lib/commonjs/Squares/components/MySquaresCard.js +48 -31
  92. package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
  93. package/lib/commonjs/Squares/components/MyStatsCard.js +155 -121
  94. package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
  95. package/lib/commonjs/Squares/components/OfferForm.js +32 -32
  96. package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
  97. package/lib/commonjs/Squares/components/PrizeCard.js +44 -35
  98. package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
  99. package/lib/commonjs/Squares/components/ResultsCard.js +37 -24
  100. package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
  101. package/lib/commonjs/Squares/components/SquareOffersCard.js +20 -13
  102. package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
  103. package/lib/commonjs/Squares/components/SquareOwners.js +44 -38
  104. package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
  105. package/lib/commonjs/Squares/components/SquaresBoard.js +77 -59
  106. package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
  107. package/lib/commonjs/Squares/components/SquaresDetails.js +46 -36
  108. package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
  109. package/lib/commonjs/Squares/index.js +207 -150
  110. package/lib/commonjs/Squares/index.js.map +1 -1
  111. package/lib/commonjs/constants/colors.js +18 -3
  112. package/lib/commonjs/constants/colors.js.map +1 -1
  113. package/lib/commonjs/constants/styles.js +72 -2
  114. package/lib/commonjs/constants/styles.js.map +1 -1
  115. package/lib/commonjs/constants/useColors.js +153 -0
  116. package/lib/commonjs/constants/useColors.js.map +1 -0
  117. package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +19 -26
  118. package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
  119. package/lib/module/Authenticator/Components/LoginForm.js +54 -70
  120. package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
  121. package/lib/module/Authenticator/Components/StrategyForm.js +227 -322
  122. package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
  123. package/lib/module/Authenticator/index.js +16 -26
  124. package/lib/module/Authenticator/index.js.map +1 -1
  125. package/lib/module/Competition/components/AthleteMarketCard.js +28 -15
  126. package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
  127. package/lib/module/Competition/components/CompetitionInfoCard.js +82 -141
  128. package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
  129. package/lib/module/Competition/components/CompetitionLeaderboard.js +68 -66
  130. package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
  131. package/lib/module/Competition/components/CompetitionPlay.js +65 -79
  132. package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
  133. package/lib/module/Competition/components/EnterCompetitionPrompt.js +35 -54
  134. package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
  135. package/lib/module/Competition/components/LeaderPicks.js +4 -4
  136. package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
  137. package/lib/module/Competition/components/MarketsCard.js +15 -5
  138. package/lib/module/Competition/components/MarketsCard.js.map +1 -1
  139. package/lib/module/Competition/components/TeamEventCard.js +24 -15
  140. package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
  141. package/lib/module/Competition/components/WagerPickForm.js +44 -56
  142. package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
  143. package/lib/module/Competition/index.js +215 -195
  144. package/lib/module/Competition/index.js.map +1 -1
  145. package/lib/module/Components/Button.js +49 -6
  146. package/lib/module/Components/Button.js.map +1 -1
  147. package/lib/module/Components/ConfirmationModal.js +21 -21
  148. package/lib/module/Components/ConfirmationModal.js.map +1 -1
  149. package/lib/module/Components/Themed.js +269 -0
  150. package/lib/module/Components/Themed.js.map +1 -0
  151. package/lib/module/MarketComponents/components/AthleteMarket/index.js +29 -38
  152. package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
  153. package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +36 -47
  154. package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
  155. package/lib/module/MarketComponents/components/EventMarket/index.js +35 -41
  156. package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
  157. package/lib/module/MarketComponents/components/MarketButton/api/index.js +2 -3
  158. package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -1
  159. package/lib/module/MarketComponents/components/MarketButton/index.js +17 -17
  160. package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -1
  161. package/lib/module/MarketComponents/components/MatchMarket/index.js +50 -48
  162. package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
  163. package/lib/module/MarketComponents/components/TeamEventMarket/index.js +176 -157
  164. package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
  165. package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +34 -43
  166. package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
  167. package/lib/module/MarketComponents/components/TournamentMarket/index.js +172 -100
  168. package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
  169. package/lib/module/ProfileManager/Components/BasicInfoManager.js +28 -34
  170. package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  171. package/lib/module/ProfileManager/Components/BasicStatus.js +28 -61
  172. package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
  173. package/lib/module/ProfileManager/Components/CodeRedeem.js +55 -81
  174. package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
  175. package/lib/module/ProfileManager/Components/DOBManager.js +27 -31
  176. package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
  177. package/lib/module/ProfileManager/Components/EmailManager.js +42 -61
  178. package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
  179. package/lib/module/ProfileManager/Components/PasswordManager.js +36 -54
  180. package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
  181. package/lib/module/ProfileManager/Components/PhoneManager.js +37 -56
  182. package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
  183. package/lib/module/ProfileManager/Components/ProfilePicManager.js +10 -18
  184. package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
  185. package/lib/module/ProfileManager/Components/ProfileWelcome.js +21 -38
  186. package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
  187. package/lib/module/ProfileManager/Components/ProfileWizard.js +42 -65
  188. package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
  189. package/lib/module/ProfileManager/Components/SettingsManager.js +45 -47
  190. package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
  191. package/lib/module/ProfileManager/Components/VouchCard.js +69 -95
  192. package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
  193. package/lib/module/ProfileManager/index.js +18 -20
  194. package/lib/module/ProfileManager/index.js.map +1 -1
  195. package/lib/module/Share/api/index.js +11 -6
  196. package/lib/module/Share/api/index.js.map +1 -1
  197. package/lib/module/Share/index.js +13 -13
  198. package/lib/module/Share/index.js.map +1 -1
  199. package/lib/module/Squares/components/BidForm.js +138 -116
  200. package/lib/module/Squares/components/BidForm.js.map +1 -1
  201. package/lib/module/Squares/components/BidToggle.js +6 -7
  202. package/lib/module/Squares/components/BidToggle.js.map +1 -1
  203. package/lib/module/Squares/components/BoardStats.js +44 -27
  204. package/lib/module/Squares/components/BoardStats.js.map +1 -1
  205. package/lib/module/Squares/components/EventCard.js +34 -15
  206. package/lib/module/Squares/components/EventCard.js.map +1 -1
  207. package/lib/module/Squares/components/MySquaresCard.js +36 -19
  208. package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
  209. package/lib/module/Squares/components/MyStatsCard.js +98 -64
  210. package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
  211. package/lib/module/Squares/components/OfferForm.js +12 -12
  212. package/lib/module/Squares/components/OfferForm.js.map +1 -1
  213. package/lib/module/Squares/components/PrizeCard.js +25 -16
  214. package/lib/module/Squares/components/PrizeCard.js.map +1 -1
  215. package/lib/module/Squares/components/ResultsCard.js +27 -14
  216. package/lib/module/Squares/components/ResultsCard.js.map +1 -1
  217. package/lib/module/Squares/components/SquareOffersCard.js +16 -9
  218. package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
  219. package/lib/module/Squares/components/SquareOwners.js +35 -28
  220. package/lib/module/Squares/components/SquareOwners.js.map +1 -1
  221. package/lib/module/Squares/components/SquaresBoard.js +52 -34
  222. package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
  223. package/lib/module/Squares/components/SquaresDetails.js +30 -19
  224. package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
  225. package/lib/module/Squares/index.js +206 -149
  226. package/lib/module/Squares/index.js.map +1 -1
  227. package/lib/module/constants/colors.js +18 -3
  228. package/lib/module/constants/colors.js.map +1 -1
  229. package/lib/module/constants/styles.js +71 -1
  230. package/lib/module/constants/styles.js.map +1 -1
  231. package/lib/module/constants/useColors.js +145 -0
  232. package/lib/module/constants/useColors.js.map +1 -0
  233. package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  234. package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -2
  235. package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
  236. package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -4
  237. package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  238. package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -2
  239. package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
  240. package/lib/typescript/lib/commonjs/Competition/components/AthleteMarketCard.d.ts.map +1 -1
  241. package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  242. package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +1 -3
  243. package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  244. package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
  245. package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  246. package/lib/typescript/lib/commonjs/Competition/components/MarketsCard.d.ts.map +1 -1
  247. package/lib/typescript/lib/commonjs/Competition/components/TeamEventCard.d.ts.map +1 -1
  248. package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +1 -2
  249. package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
  250. package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
  251. package/lib/typescript/lib/commonjs/Components/Button.d.ts +2 -1
  252. package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
  253. package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
  254. package/lib/typescript/lib/commonjs/Components/Themed.d.ts +6 -0
  255. package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -0
  256. package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -2
  257. package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
  258. package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts +2 -2
  259. package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
  260. package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts +1 -1
  261. package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
  262. package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts +5 -1
  263. package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
  264. package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -2
  265. package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
  266. package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
  267. package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
  268. package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  269. package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
  270. package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  271. package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  272. package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  273. package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  274. package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  275. package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
  276. package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
  277. package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
  278. package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  279. package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  280. package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  281. package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +1 -2
  282. package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
  283. package/lib/typescript/lib/commonjs/Share/api/index.d.ts +1 -1
  284. package/lib/typescript/lib/commonjs/Share/api/index.d.ts.map +1 -1
  285. package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
  286. package/lib/typescript/lib/commonjs/Squares/components/BidToggle.d.ts.map +1 -1
  287. package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
  288. package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
  289. package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
  290. package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +1 -2
  291. package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
  292. package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
  293. package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
  294. package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
  295. package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
  296. package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
  297. package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
  298. package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
  299. package/lib/typescript/lib/commonjs/constants/colors.d.ts +9 -0
  300. package/lib/typescript/lib/commonjs/constants/styles.d.ts +95 -8
  301. package/lib/typescript/lib/commonjs/constants/useColors.d.ts +58 -0
  302. package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -0
  303. package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  304. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
  305. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
  306. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
  307. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  308. package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
  309. package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
  310. package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
  311. package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
  312. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
  313. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  314. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
  315. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  316. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
  317. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
  318. package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
  319. package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  320. package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
  321. package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
  322. package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
  323. package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
  324. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
  325. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
  326. package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
  327. package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
  328. package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
  329. package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
  330. package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
  331. package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
  332. package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
  333. package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
  334. package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
  335. package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
  336. package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
  337. package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
  338. package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
  339. package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
  340. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
  341. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
  342. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
  343. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
  344. package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +6 -3
  345. package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
  346. package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
  347. package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
  348. package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
  349. package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
  350. package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
  351. package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
  352. package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
  353. package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  354. package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
  355. package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
  356. package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
  357. package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  358. package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
  359. package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  360. package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
  361. package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  362. package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
  363. package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  364. package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
  365. package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  366. package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
  367. package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
  368. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
  369. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
  370. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
  371. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  372. package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
  373. package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  374. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
  375. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  376. package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
  377. package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
  378. package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
  379. package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
  380. package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
  381. package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
  382. package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
  383. package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
  384. package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
  385. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
  386. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
  387. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
  388. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
  389. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
  390. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
  391. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
  392. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
  393. package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
  394. package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
  395. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
  396. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
  397. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
  398. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
  399. package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
  400. package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
  401. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
  402. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
  403. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
  404. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
  405. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
  406. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
  407. package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
  408. package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
  409. package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
  410. package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
  411. package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
  412. package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
  413. package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  414. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
  415. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
  416. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
  417. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  418. package/lib/typescript/src/Authenticator/index.d.ts +2 -2
  419. package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
  420. package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
  421. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  422. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
  423. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  424. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
  425. package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  426. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
  427. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
  428. package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
  429. package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
  430. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
  431. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
  432. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  433. package/lib/typescript/src/Components/Button.d.ts +2 -1
  434. package/lib/typescript/src/Components/Button.d.ts.map +1 -1
  435. package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
  436. package/lib/typescript/src/Components/Themed.d.ts +38 -0
  437. package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
  438. package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
  439. package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
  440. package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
  441. package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
  442. package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
  443. package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
  444. package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
  445. package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
  446. package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
  447. package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +5 -1
  448. package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
  449. package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
  450. package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
  451. package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
  452. package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
  453. package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
  454. package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
  455. package/lib/typescript/src/MarketComponents/index.d.ts +18 -7
  456. package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
  457. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  458. package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
  459. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  460. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  461. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  462. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  463. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  464. package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
  465. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
  466. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
  467. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  468. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  469. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  470. package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
  471. package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
  472. package/lib/typescript/src/Share/api/index.d.ts +1 -1
  473. package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
  474. package/lib/typescript/src/Share/index.d.ts.map +1 -1
  475. package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
  476. package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
  477. package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
  478. package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
  479. package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
  480. package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
  481. package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
  482. package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
  483. package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
  484. package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
  485. package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
  486. package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
  487. package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
  488. package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
  489. package/lib/typescript/src/Squares/index.d.ts.map +1 -1
  490. package/lib/typescript/src/constants/colors.d.ts +9 -0
  491. package/lib/typescript/src/constants/colors.d.ts.map +1 -1
  492. package/lib/typescript/src/constants/styles.d.ts +55 -1
  493. package/lib/typescript/src/constants/styles.d.ts.map +1 -1
  494. package/lib/typescript/src/constants/useColors.d.ts +57 -0
  495. package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
  496. package/package.json +2 -1
  497. package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +40 -40
  498. package/src/Authenticator/Components/LoginForm.tsx +50 -54
  499. package/src/Authenticator/Components/StrategyForm.tsx +135 -147
  500. package/src/Authenticator/index.tsx +16 -18
  501. package/src/Competition/components/AthleteMarketCard.tsx +19 -17
  502. package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
  503. package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
  504. package/src/Competition/components/CompetitionPlay.tsx +55 -48
  505. package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
  506. package/src/Competition/components/LeaderPicks.tsx +5 -5
  507. package/src/Competition/components/MarketsCard.tsx +14 -10
  508. package/src/Competition/components/TeamEventCard.tsx +24 -23
  509. package/src/Competition/components/WagerPickForm.tsx +35 -41
  510. package/src/Competition/index.tsx +162 -125
  511. package/src/Components/Button.tsx +50 -6
  512. package/src/Components/ConfirmationModal.tsx +13 -21
  513. package/src/Components/Themed.tsx +233 -0
  514. package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
  515. package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
  516. package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
  517. package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
  518. package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
  519. package/src/MarketComponents/components/MatchMarket/index.tsx +54 -57
  520. package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
  521. package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
  522. package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
  523. package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
  524. package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
  525. package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
  526. package/src/ProfileManager/Components/DOBManager.tsx +25 -30
  527. package/src/ProfileManager/Components/EmailManager.tsx +37 -45
  528. package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
  529. package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
  530. package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
  531. package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
  532. package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
  533. package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
  534. package/src/ProfileManager/Components/VouchCard.tsx +50 -59
  535. package/src/ProfileManager/index.tsx +16 -13
  536. package/src/Share/api/index.ts +9 -3
  537. package/src/Share/index.tsx +13 -12
  538. package/src/Squares/components/BidForm.tsx +85 -62
  539. package/src/Squares/components/BidToggle.tsx +8 -9
  540. package/src/Squares/components/BoardStats.tsx +28 -28
  541. package/src/Squares/components/EventCard.tsx +33 -31
  542. package/src/Squares/components/MySquaresCard.tsx +24 -23
  543. package/src/Squares/components/MyStatsCard.tsx +66 -68
  544. package/src/Squares/components/OfferForm.tsx +15 -15
  545. package/src/Squares/components/PrizeCard.tsx +21 -18
  546. package/src/Squares/components/ResultsCard.tsx +21 -18
  547. package/src/Squares/components/SquareOffersCard.tsx +12 -10
  548. package/src/Squares/components/SquareOwners.tsx +24 -23
  549. package/src/Squares/components/SquaresBoard.tsx +39 -42
  550. package/src/Squares/components/SquaresDetails.tsx +25 -24
  551. package/src/Squares/index.tsx +196 -144
  552. package/src/constants/colors.ts +55 -47
  553. package/src/constants/styles.ts +37 -1
  554. package/src/constants/useColors.tsx +131 -0
@@ -1,8 +1,8 @@
1
1
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
2
- import { View, Image, FlatList, TouchableOpacity, ActivityIndicator, ScrollView, StyleSheet } from 'react-native';
2
+ import { Image, FlatList, ActivityIndicator, ScrollView } from 'react-native';
3
3
  import type { AthleteProps, BEEventProps, BestAvailableOrderProps, CompanyProps, CompetitionProps, EventOrderStatProps, EventProps, LeagueProps, MarketProps, MarketSideOptionProps, OrderProps, PodcastProps, SquaresCompetitionProps, TradeProps } from '../../../types';
4
4
  import { view_styles } from '../../../constants/styles';
5
- import { Button, Icons, LinearDiagnal, Text } from '../../../Components';
5
+ import { Icons, LinearDiagnal } from '../../../Components';
6
6
  import {TeamEventMarketHelpers} from './api';
7
7
  import MarketButton from '../../components/MarketButton';
8
8
  import Colors from '../../../constants/colors';
@@ -15,6 +15,8 @@ import { LinearGradient } from 'expo-linear-gradient';
15
15
  import { useIsInViewport } from '../../../Components/ViewportObserver';
16
16
  import ContestStatsCard from '../ContestStats';
17
17
  import PodcastCard from '../PodcastCard';
18
+ import { Button, Text, View } from '../../../Components/Themed';
19
+ import { useColors } from '../../../constants/useColors';
18
20
 
19
21
  type TeamEventMarketProps = {
20
22
  event:EventProps,
@@ -24,6 +26,7 @@ type TeamEventMarketProps = {
24
26
  competitions?:CompetitionProps[],
25
27
  show_id?:string,
26
28
  hide_liquidity?:boolean,
29
+ float?:boolean,
27
30
  hot_markets_direction?:'vertical'|'horizontal'
28
31
  show_podcasts?:boolean,
29
32
  squares_competitions?:SquaresCompetitionProps[],
@@ -47,11 +50,9 @@ type TeamEventMarketProps = {
47
50
  onActivate?:(event_id:string, event_type:string) => void
48
51
  activate_loading?:boolean
49
52
  }
50
- const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onView, onViewAdditionalMarkets, onTradeLongPress, onActivate, onEvent, onShare, onPodcastSelect }:TeamEventMarketProps) => {
51
- let set_style = { ...styles.container_style }
52
- if(style){
53
- set_style = style
54
- }
53
+ const TeamEventMarket = ({ event, league, float, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onView, onViewAdditionalMarkets, onTradeLongPress, onActivate, onEvent, onShare, onPodcastSelect }:TeamEventMarketProps) => {
54
+ const C = useColors();
55
+
55
56
  const [ market_width, setMarketWidth ] = useState(180);
56
57
  const [ expanded_data, setExpandedData ] = useState<{
57
58
  expanded:boolean,
@@ -155,39 +156,45 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
155
156
 
156
157
  const renderCompetitions = (data:{ item:CompetitionProps, index: number }) => {
157
158
  return (
158
- <TouchableOpacity style={{ ...view_styles.body_row, padding:10, borderBottomWidth:1, borderColor:Colors.shades.shade600 }} onPress={() => {
159
- setCompetitionsExpanded(false);
160
- onCompetitionSelect(data.item.competition_id)
161
- }}>
159
+ <Button
160
+ type='text'
161
+ style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderColor:C.borders.light }}
162
+ onPress={() => {
163
+ setCompetitionsExpanded(false);
164
+ onCompetitionSelect(data.item.competition_id)
165
+ }}>
162
166
  <Image
163
167
  source={{ uri: data.item.image?.url }}
164
168
  style={{ height:25, width:25 }}
165
169
  resizeMode='cover'
166
170
  />
167
- <View style={{ flex:1, marginLeft:10 }}>
168
- <Text theme='header_2'>{data.item.competition_name}</Text>
171
+ <View transparent style={{ flex:1, marginLeft:10 }}>
172
+ <Text theme='description'>{data.item.competition_name}</Text>
169
173
  </View>
170
- <Icons.ChevronIcon direction='right' size={10} color={Colors.brand.midnight} />
171
- </TouchableOpacity>
174
+ <Icons.ChevronIcon direction='right' size={10} color={C.text.h1} />
175
+ </Button>
172
176
  )
173
177
  }
174
178
 
175
179
  const renderSquaresCompetitions = (data:{ item:SquaresCompetitionProps, index: number }) => {
176
180
  return (
177
- <TouchableOpacity style={{ ...view_styles.body_row, padding:10, borderBottomWidth:1, borderColor:Colors.shades.shade600 }} onPress={() => {
178
- setSquaresExpanded(false);
179
- onSquaresSelect(data.item.sq_comp_id)
180
- }}>
181
+ <Button
182
+ type='text'
183
+ style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderColor:C.borders.light }}
184
+ onPress={() => {
185
+ setCompetitionsExpanded(false);
186
+ onSquaresSelect(data.item.sq_comp_id)
187
+ }}>
181
188
  <Image
182
189
  source={{ uri: data.item.image?.url }}
183
190
  style={{ height:25, width:25 }}
184
191
  resizeMode='cover'
185
192
  />
186
- <View style={{ flex:1, marginLeft:10 }}>
187
- <Text theme='header_2'>{data.item.sq_comp_name}</Text>
193
+ <View transparent style={{ flex:1, marginLeft:10 }}>
194
+ <Text theme='description'>{data.item.sq_comp_name}</Text>
188
195
  </View>
189
- <Icons.ChevronIcon direction='right' size={10} color={Colors.brand.midnight} />
190
- </TouchableOpacity>
196
+ <Icons.ChevronIcon direction='right' size={10} color={C.text.h1} />
197
+ </Button>
191
198
  )
192
199
  }
193
200
 
@@ -201,7 +208,7 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
201
208
  }
202
209
  if(!trade){ return <></> }
203
210
  return (
204
- <View key={`${event.event_id}_${data.item.side}`} style={{ margin:2, width:primary_width, height:50 }}>
211
+ <View transparent key={`${event.event_id}_${data.item.side}`} style={{ margin:2, width:primary_width, height:50 }}>
205
212
  <MarketButton
206
213
  side_option={data.item}
207
214
  market={data.market}
@@ -222,8 +229,8 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
222
229
 
223
230
  const renderMarketHeaders = useCallback((data:{ item:MarketProps, index:number }) => {
224
231
  return (
225
- <View style={{ width:primary_width, marginLeft:2, marginRight:2 }}>
226
- <Text size={12} color={Colors.brand.midnight} textAlign='center'>{data.item.type.toUpperCase()}</Text>
232
+ <View transparent style={{ width:primary_width, marginLeft:2, marginRight:2 }}>
233
+ <Text size={12} color={C.text.h1} textAlign='center'>{data.item.type.toUpperCase()}</Text>
227
234
  </View>
228
235
  )
229
236
  },[primary_markets.length, primary_width])
@@ -253,11 +260,12 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
253
260
  const athlete_trades = latest_trades.filter(t => t.market_type == 'FOR_MONEY' && t.market_id == data.item.market_id && t.side_type == 'athlete' && t.side_id == data.item.side_id);
254
261
  const athlete_orders = best_available_orders.filter(t => t.market_id == data.item.market_id && t.side_type == 'athlete' && t.side_id == data.item.side_id);
255
262
  return (
256
- <View style={{ flexGrow:1 }}>
263
+ <View transparent style={{ flexGrow:1 }}>
257
264
  <AthleteMarket
258
265
  event={event}
259
266
  event_type='team'
260
267
  athlete={athlete}
268
+ float
261
269
  direction={hot_markets_direction=='vertical' ? 'horizontal' : 'vertical'}
262
270
  show_grades={show_grades}
263
271
  market={market}
@@ -276,10 +284,11 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
276
284
  const event_trades = latest_trades.filter(t => t.market_type == 'FOR_MONEY' && t.market_id == data.item.market_id);
277
285
  const event_orders = best_available_orders.filter(t => t.market_id == data.item.market_id);
278
286
  return (
279
- <View>
287
+ <View transparent style={{ flexGrow:1 }}>
280
288
  <EventMarket
281
289
  event={event}
282
290
  market={market}
291
+ float
283
292
  direction={hot_markets_direction=='vertical' ? 'horizontal' : 'vertical'}
284
293
  hide_liquidity={hide_liquidity}
285
294
  onTradeLongPress={onTradeLongPress}
@@ -300,7 +309,7 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
300
309
  const renderPrimaryMarkets = useCallback((data:{ item:MarketProps, index:number }) => {
301
310
  const is_locked = MarketComponentHelpers.isEventMarketLocked(event, data.item.market_id);
302
311
  return (
303
- <View>
312
+ <View transparent>
304
313
  <FlatList
305
314
  key={`${event.event_id}_side_options`}
306
315
  scrollEnabled={false}
@@ -322,9 +331,9 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
322
331
  const { non_primary_markets, available } = useMemo(() => TeamEventMarketHelpers.sortNonPrimaryMarkets(TeamEventMarketHelpers.getNonPrimaryMarkets(event, markets), event_order_stats, latest_trades),[])
323
332
 
324
333
  return (
325
- <View ref={ref} style={set_style}>
334
+ <View float={float} style={[style]}>
326
335
  {sponsor ?
327
- <LinearGradient style={{ marginTop:-1, marginLeft:-1, marginRight:-1, padding:10, flexDirection:'row', alignItems:'center', borderTopRightRadius:8, borderTopLeftRadius:8 }} start={{x: 0, y: 0}} end={{x: 1, y: 0}} colors={[sponsor.brand_primary ?? Colors.brand.midnight, sponsor.brand_secondary ?? Colors.brand.cyan]}>
336
+ <LinearGradient style={{ marginTop:-1, marginLeft:-1, marginRight:-1, padding:10, flexDirection:'row', alignItems:'center', borderTopRightRadius:8, borderTopLeftRadius:8 }} start={{x: 0, y: 0}} end={{x: 1, y: 0}} colors={[sponsor.brand_primary ?? C.text.h1, sponsor.brand_secondary ?? C.text.h1]}>
328
337
  <View style={{ height:30, width:30, borderRadius:4, backgroundColor:Colors.shades.white }}>
329
338
  <Image
330
339
  source={{ uri: sponsor.company_image?.url }}
@@ -359,14 +368,14 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
359
368
  />
360
369
  :<></>}
361
370
  {onShare ?
362
- <TouchableOpacity style={{ marginLeft:10 }} onPress={() => onShare(event)}>
363
- <Icons.ShareIcon size={14} color={Colors.brand.electric} />
364
- </TouchableOpacity>
371
+ <Button type='text' style={{ marginLeft:10 }} onPress={() => onShare(event)}>
372
+ <Icons.ShareIcon size={14} color={C.text.action} />
373
+ </Button>
365
374
  :<></>}
366
375
  </LinearGradient>
367
376
  :
368
- <View nativeID='event_header_data' style={{ flexDirection:'row', alignItems:'center', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
369
- <View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
377
+ <View transparent nativeID='event_header_data' style={{ flexDirection:'row', alignItems:'center', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:C.borders.light }}>
378
+ <View transparent style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
370
379
  {league ?
371
380
  <Image
372
381
  source={{ uri: league.league_image }}
@@ -375,99 +384,106 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
375
384
  />
376
385
  :<></>}
377
386
  {show_id ?
378
- <Text style={{ marginLeft:2, marginRight:3 }} size={12} color={Colors.brand.midnight} weight='semibold' selectable>{event.event_id} </Text>
387
+ <Text style={{ marginLeft:2, marginRight:3 }} theme='description' selectable>{event.event_id} </Text>
379
388
  :<></>}
380
389
  {event.event_sub_title ?
381
- <Text size={12} color={Colors.brand.midnight} weight='semibold'>{event.event_sub_title}</Text>
390
+ <Text size={12} theme='description'>{event.event_sub_title}</Text>
382
391
  :<></>}
383
392
  </View>
384
393
  <View style={{ flexDirection:'row', alignItems:'center' }}>
385
- <Icons.TVIcon size={10} color={Colors.brand.midnight} />
386
- <Text style={{ marginLeft:8 }} size={12} color={Colors.brand.midnight} weight='semibold'>{event.info?.broadcast?.network}</Text>
394
+ <Icons.TVIcon size={16} color={C.text.h1} />
395
+ <Text style={{ marginLeft:8 }} theme='description'>{event.info?.broadcast?.network}</Text>
387
396
  </View>
388
397
  {onActivate && event_status != 'closed' ?
389
398
  <Button
390
399
  title={event_status == 'active' ? 'Refresh' : 'Activate'}
391
- style={{ opacity: activate_loading ? 0.5 : 1, marginLeft:5 }}
400
+ style={{ opacity: activate_loading ? 0.5 : 1, marginLeft:5, padding:10 }}
392
401
  disabled={activate_loading}
393
402
  loading={activate_loading}
394
- title_color={Colors.shades.white}
395
- backgroundColor={Colors.utility.success}
403
+ type='success'
396
404
  onPress={() => onActivate(event.event_id, 'team')}
397
405
  />
398
406
  :<></>}
399
407
  {onShare ?
400
- <TouchableOpacity style={{ marginLeft:10 }} onPress={() => onShare(event)}>
401
- <Icons.ShareIcon size={14} color={Colors.brand.electric} />
402
- </TouchableOpacity>
408
+ <Button type='text' style={{ marginLeft:10 }} onPress={() => onShare(event)}>
409
+ <Icons.ShareIcon size={14} color={C.text.action} />
410
+ </Button>
403
411
  :<></>}
404
412
  </View>
405
413
  }
406
- <View nativeID='primary_markets' style={{ flexDirection:'row' }}>
407
- <View nativeID='team_details' style={{ flex:1, padding:5, paddingRight:0 }}>
408
- <TouchableOpacity style={{ flexDirection:'row', alignItems:'center', marginTop:5, marginBottom:5, marginLeft:10 }} onPress={() => setShowStats(!show_stats)}>
414
+ <View transparent nativeID='primary_markets' style={{ flexDirection:'row' }}>
415
+ <View transparent nativeID='team_details' style={{ flex:1, padding:5, paddingRight:0 }}>
416
+ <View transparent style={{ flexDirection:'row', alignItems:'center', marginTop:5, marginBottom:5, marginLeft:10 }}>
409
417
  {show_stats ?
410
418
  <Button
411
419
  title='X'
412
- title_size={10}
413
- padding={0}
414
- style={{ marginRight:5 }}
415
- disabled={true}
420
+ style={{ marginRight:5, padding:10 }}
421
+ type='error'
416
422
  title_color={Colors.utility.error}
417
- onPress={() => console.log('')}
423
+ onPress={() => setShowStats(!show_stats)}
418
424
  />
419
425
  :<></>}
420
426
  {!show_stats ?
421
- <View style={{ marginRight:5, height:10, width:10, borderRadius:100, backgroundColor:event_status=='active'?Colors.utility.success:event_status=='inactive'?Colors.brand.electric:Colors.utility.error }} />
427
+ <View style={{ marginRight:5, height:10, width:10, borderRadius:100, backgroundColor:event_status=='active'?C.text.success:event_status=='inactive'?C.text.action:C.text.error }} />
422
428
  :<></>}
423
429
 
424
- <Text size={12} color={show_stats ? Colors.utility.error : Colors.brand.electric}>{show_stats ? 'Hide Boxscore': `${TeamEventMarketHelpers.getTimeDetail(event)}`}</Text>
425
- </TouchableOpacity>
426
- <TouchableOpacity disabled={!onTeamSelect} style={{ ...view_styles.body_row, minHeight:48 }} onPress={() => onTeamSelect ? onTeamSelect(event.away_team_id) : console.log('')}>
430
+ <Text size={12} color={show_stats ? C.text.error : C.text.action}>{show_stats ? 'Hide Boxscore': `${TeamEventMarketHelpers.getTimeDetail(event)}`}</Text>
431
+ </View>
432
+ <Button
433
+ disabled={!onTeamSelect}
434
+ style={{ ...view_styles.body_row, minHeight:48 }}
435
+ type='text'
436
+ onPress={() => onTeamSelect ? onTeamSelect(event.away_team_id) : console.log('')}
437
+ >
427
438
  <Image
428
439
  source={{ uri: event.away.image?.url }}
429
440
  style={{ height:30, width:30 }}
430
441
  resizeMode='cover'
431
442
  />
432
- <View style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
443
+ <View transparent style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
433
444
  {event.away.rank ?
434
- <Text style={{ marginRight:3 }} size={12} color={Colors.brand.cyan} weight='semibold'>{event.away.rank}</Text>
445
+ <Text style={{ marginRight:3 }} size={12} color={C.text.highlight} weight='semibold'>{event.away.rank}</Text>
435
446
  :<></>}
436
- <View style={{ flex:1, marginRight:5 }}>
437
- <Text theme='header_2'>{event.away.market_name} {event.away.name}</Text>
447
+ <View transparent style={{ flex:1, marginRight:5 }}>
448
+ <Text theme='h2'>{event.away.market_name} {event.away.name}</Text>
438
449
  {event.away_sub_title ?
439
- <Text style={{ marginTop:3 }} theme='body_2'>{event.away_sub_title}</Text>
450
+ <Text style={{ marginTop:3 }} theme='description'>{event.away_sub_title}</Text>
440
451
  :<></>}
441
452
  </View>
442
- <Text theme='body'>{event.away_team_score}</Text>
453
+ <Text theme='description'>{event.away_team_score}</Text>
443
454
  </View>
444
- </TouchableOpacity>
445
- <TouchableOpacity disabled={!onTeamSelect} style={{ ...view_styles.body_row, minHeight:48 }} onPress={() => onTeamSelect ? onTeamSelect(event.home_team_id) : console.log('')}>
455
+ </Button>
456
+ <Button
457
+ disabled={!onTeamSelect}
458
+ style={{ ...view_styles.body_row, minHeight:48 }}
459
+ type='text'
460
+ onPress={() => onTeamSelect ? onTeamSelect(event.home_team_id) : console.log('')}
461
+ >
446
462
  <Image
447
463
  source={{ uri: event.home.image?.url }}
448
464
  style={{ height:30, width:30 }}
449
465
  resizeMode='cover'
450
466
  />
451
- <View style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
467
+ <View transparent style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
452
468
  {event.home.rank ?
453
- <Text style={{ marginRight:3 }} size={12} color={Colors.brand.cyan} weight='semibold'>{event.home.rank}</Text>
469
+ <Text style={{ marginRight:3 }} size={12} color={C.text.highlight} weight='semibold'>{event.home.rank}</Text>
454
470
  :<></>}
455
- <View style={{ flex:1, marginRight:5 }}>
456
- <Text theme='header_2'>{event.home.market_name} {event.home.name}</Text>
471
+ <View transparent style={{ flex:1, marginRight:5 }}>
472
+ <Text theme='h2'>{event.home.market_name} {event.home.name}</Text>
457
473
  {event.home_sub_title ?
458
- <Text style={{ marginTop:3 }} theme='body_2'>{event.home_sub_title}</Text>
474
+ <Text style={{ marginTop:3 }} theme='description'>{event.home_sub_title}</Text>
459
475
  :<></>}
460
476
  </View>
461
- <Text theme='body'>{event.home_team_score}</Text>
477
+ <Text theme='description'>{event.home_team_score}</Text>
462
478
  </View>
463
- </TouchableOpacity>
479
+ </Button>
464
480
  </View>
465
481
  {event_status == 'active' ?
466
- <View nativeID='primary_market_details' style={{ padding:5, flex:1 }} onLayout={(ev) => {
482
+ <View transparent nativeID='primary_market_details' style={{ padding:5, flex:1 }} onLayout={(ev) => {
467
483
  const { width } = ev.nativeEvent.layout
468
484
  setMarketWidth(width);
469
485
  }}>
470
- <View style={{ marginTop:5, marginBottom:5 }}>
486
+ <View transparent style={{ marginTop:5, marginBottom:5 }}>
471
487
  <FlatList
472
488
  key={`${event.event_id}_market_headers`}
473
489
  data={primary_markets}
@@ -487,70 +503,84 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
487
503
  />
488
504
  </View>
489
505
  :
490
- <TouchableOpacity disabled={!onActivate ? true: false} style={{ flex:0.5, padding:10, justifyContent:'center', alignItems:'center' }} onPress={() => onActivate ? onActivate(event.event_id, 'team') : console.log('')}>
491
- <Icons.MarketClosedIcon size={60} color={Colors.brand.midnight} />
492
- </TouchableOpacity>
506
+ <Button
507
+ disabled={!onActivate ? true: false}
508
+ style={{ flex:0.5, justifyContent:'center', alignItems:'center' }}
509
+ type='text'
510
+ transparent
511
+ onPress={() => onActivate ? onActivate(event.event_id, 'team') : console.log('')}
512
+ >
513
+ <Icons.MarketClosedIcon size={60} color={C.text.h1} />
514
+ </Button>
493
515
  }
494
516
  </View>
495
517
  {event_status == 'active' ?
496
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, flexDirection:'row', alignItems:'center', flexWrap:'wrap', borderBottomLeftRadius:8, borderBottomRightRadius:8 }}>
518
+ <View type='footer' style={{ padding:10, flexDirection:'row', alignItems:'center', flexWrap:'wrap', borderBottomLeftRadius:8, borderBottomRightRadius:8 }}>
497
519
  {!hide_liquidity ?
498
- <TouchableOpacity style={{ flex:1, flexDirection:'row', minWidth:115 }} onPress={() => {
520
+ <Button
521
+ style={{ flex:1, flexDirection:'row', minWidth:115, padding:0 }}
522
+ type='text'
523
+
524
+ onPress={() => {
499
525
  if(!primary_markets[0]){ return }
500
526
  onView({ event_id: event.event_id, event_type:'team', market_id: primary_markets[0].market_id });
501
527
  }}>
502
- <View style={{ backgroundColor:Colors.shades.white, height:30, width:30, borderRadius:100, justifyContent:'center', alignItems:'center', ...view_styles.float }}>
503
- <Icons.LiquidityIcon color={Colors.brand.midnight} size={30}/>
528
+ <View transparent float style={{ height:30, width:30, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
529
+ <Icons.LiquidityIcon color={C.text.h1} size={30}/>
504
530
  </View>
505
- <View style={{ marginLeft:5 }}>
506
- <Text theme='body_2'>Liquidity</Text>
507
- <Text size={12} color={Colors.brand.electric} weight='semibold'>${liquidity.toFixed()} {open_order_count} Orders</Text>
531
+ <View transparent style={{ marginLeft:5 }}>
532
+ <Text theme='description'>Liquidity</Text>
533
+ <Text size={12} style={{ marginTop:3 }} color={C.text.highlight} weight='semibold'>${liquidity.toFixed()} {open_order_count} Orders</Text>
508
534
  </View>
509
- </TouchableOpacity>
535
+ </Button>
510
536
  :<></>}
511
537
  {squares_competitions && squares_competitions.length > 0 ?
512
- <TouchableOpacity
513
- style={{ marginRight:5, flexDirection:'row', alignItems:'center', padding:10, borderRadius:22, backgroundColor:Colors.highlights.highlight100, ...view_styles.float }}
538
+ <Button
539
+ float
540
+ type='squares'
541
+ style={{ marginRight:5, flexDirection:'row', alignItems:'center', padding:10, borderRadius:22 }}
514
542
  onPress={() => handleSelectSquares()}>
515
- <Icons.SquaresIcon size={18} color={Colors.shades.white} />
516
- <Text style={{ marginLeft:5 }} size={14} color={Colors.shades.white} weight='semibold'>Squares</Text>
517
- </TouchableOpacity>
543
+ <Icons.SquaresIcon size={18} color={C.text.white} />
544
+ <Text style={{ marginLeft:5 }} size={14} color={C.text.white} weight='semibold'>Squares</Text>
545
+ </Button>
518
546
  :<></>}
519
547
  {competitions && competitions.length > 0 ?
520
- <TouchableOpacity
521
- style={{ marginRight:5, flexDirection:'row', alignItems:'center', padding:10, borderRadius:22, backgroundColor:Colors.highlights.highlight500, ...view_styles.float }}
548
+ <Button
549
+ float
550
+ type='competition'
551
+ style={{ marginRight:5, flexDirection:'row', alignItems:'center', padding:10, borderRadius:22 }}
522
552
  onPress={() => handleSelectCompetition()}>
523
- <Icons.PickEmIcon size={14} color={Colors.shades.white} />
524
- <Text style={{ marginLeft:5 }} size={14} color={Colors.shades.white} weight='semibold'>MultiPick</Text>
525
- </TouchableOpacity>
553
+ <Icons.PickEmIcon size={14} color={C.text.white} />
554
+ <Text style={{ marginLeft:5 }} size={14} color={C.text.white} weight='semibold'>MultiPick</Text>
555
+ </Button>
526
556
  :<></>}
527
557
  {non_primary_markets.length > 0 ?
528
- <TouchableOpacity style={{ height:35, width:35, justifyContent:'center', borderRadius:100, alignItems:'center', backgroundColor:Colors.shades.white, ...view_styles.float }} onPress={() => expandedEvent()}>
529
- <Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={Colors.brand.midnight} />
530
- </TouchableOpacity>
558
+ <Button
559
+ float
560
+ style={{ height:35, width:35, justifyContent:'center', borderRadius:100, alignItems:'center' }}
561
+ onPress={() => expandedEvent()}
562
+ >
563
+ <Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={C.text.h1} />
564
+ </Button>
531
565
  :available ?
532
566
  <Button
533
567
  title='MORE'
534
- title_color={Colors.shades.white}
535
- backgroundColor={Colors.brand.electric}
568
+ type='info'
536
569
  onPress={() => onViewAdditionalMarkets(event.event_id, 'team')}
537
570
  />
538
571
  :<></>}
539
572
  {competitions && competitions_expanded ?
540
- <View style={{ position:'absolute', bottom:0, right:0, ...view_styles.section, minWidth:300, maxHeight:220 }}>
541
- <TouchableOpacity style={{ ...view_styles.section_header, padding:15, paddingRight:10, backgroundColor:Colors.highlights.highlight500 }} onPress={() => setCompetitionsExpanded(false)}>
542
- <Icons.PickEmIcon size={16} color={Colors.shades.white} />
543
- <Text style={{ flex:1, marginLeft:10 }} size={16} weight='bold' color={Colors.shades.white}>Select Competition</Text>
573
+ <View float style={{ position:'absolute', bottom:0, right:0, justifyContent:'flex-end', maxHeight:230, minWidth:300 }}>
574
+ <View type='header' style={{ flexDirection:'row', alignItems:'center', padding:5 }}>
575
+ <Icons.PickEmIcon size={16} color={C.text.h1} />
576
+ <Text style={{ flex:1, marginLeft:10 }} theme='h2'>Select Competition</Text>
544
577
  <Button
545
578
  title='X'
546
- backgroundColor='transparent'
547
- title_color={Colors.utility.error}
548
- disabled
549
- title_size={16}
550
- padding={0}
551
- onPress={() => console.log('')}
579
+ style={{ padding:10, borderRadius:100 }}
580
+ type='error'
581
+ onPress={() => setCompetitionsExpanded(false)}
552
582
  />
553
- </TouchableOpacity>
583
+ </View>
554
584
  <ScrollView style={{flex:1}}>
555
585
  <FlatList
556
586
  data={competitions}
@@ -561,20 +591,17 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
561
591
  </View>
562
592
  :<></>}
563
593
  {squares_competitions && squares_expanded ?
564
- <View style={{ position:'absolute', bottom:0, right:0, ...view_styles.section, minWidth:300, maxHeight:220 }}>
565
- <TouchableOpacity style={{ ...view_styles.section_header, padding:15, paddingRight:10, backgroundColor:Colors.highlights.highlight100 }} onPress={() => setSquaresExpanded(false)}>
566
- <Icons.SquaresIcon size={16} color={Colors.shades.white} />
567
- <Text style={{ flex:1, marginLeft:10 }} size={16} weight='bold' color={Colors.shades.white}>Select Squares Competition</Text>
594
+ <View float style={{ position:'absolute', bottom:0, right:0, justifyContent:'flex-end', maxHeight:230, minWidth:300 }}>
595
+ <View type='header' style={{ flexDirection:'row', alignItems:'center', padding:5 }}>
596
+ <Icons.PickEmIcon size={16} color={C.text.h1} />
597
+ <Text style={{ flex:1, marginLeft:10 }} theme='h2'>Select Squares</Text>
568
598
  <Button
569
599
  title='X'
570
- backgroundColor='transparent'
571
- title_color={Colors.utility.error}
572
- disabled
573
- title_size={16}
574
- padding={0}
575
- onPress={() => console.log('')}
600
+ style={{ padding:10, borderRadius:100 }}
601
+ type='error'
602
+ onPress={() => setSquaresExpanded(false)}
576
603
  />
577
- </TouchableOpacity>
604
+ </View>
578
605
  <ScrollView style={{flex:1}}>
579
606
  <FlatList
580
607
  data={squares_competitions}
@@ -587,9 +614,9 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
587
614
  </View>
588
615
  :<></>}
589
616
  {expanded ?
590
- <View>
591
- <View style={{ flexDirection:'row', alignItems:'center' }}>
592
- <View style={{ flexGrow:1 }}>
617
+ <View transparent>
618
+ <View transparent style={{ flexDirection:'row', alignItems:'center' }}>
619
+ <View transparent style={{ flexGrow:1 }}>
593
620
  <LinearDiagnal label_size={12} label={'Hot Markets'} left_color={Colors.utility.warning} right_color={Colors.utility.error}/>
594
621
  </View>
595
622
  {loading ?
@@ -597,14 +624,12 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
597
624
  :
598
625
  <Button
599
626
  title='SEE ALL'
600
- padding={15}
601
- backgroundColor='transparent'
602
- title_color={Colors.brand.electric}
627
+ type='text'
603
628
  onPress={() => onViewAdditionalMarkets(event.event_id, 'team')}
604
629
  />
605
630
  }
606
631
  </View>
607
- <View>
632
+ <View transparent>
608
633
  <FlatList
609
634
  data={non_primary_markets}
610
635
  renderItem={renderNonPrimaryMarkets}
@@ -614,12 +639,12 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
614
639
  />
615
640
  </View>
616
641
  {podcasts.length > 0 ?
617
- <View style={{ flexDirection:'row', marginTop:10, borderBottomRightRadius:8, borderBottomLeftRadius:8, backgroundColor:Colors.shades.shade100 }}>
618
- <View style={{ padding:5, paddingRight:20, paddingLeft:20, justifyContent:'center', backgroundColor:Colors.brand.midnight, borderBottomLeftRadius:8 }}>
619
- <Icons.HeadphoneIcon size={36} color={Colors.shades.white} />
642
+ <View type='footer' style={{ flexDirection:'row', marginTop:10, borderBottomRightRadius:8, borderBottomLeftRadius:8 }}>
643
+ <View transparent style={{ padding:5, paddingRight:20, paddingLeft:20, justifyContent:'center', borderBottomLeftRadius:8 }}>
644
+ <Icons.HeadphoneIcon size={36} color={C.text.h1} />
620
645
  </View>
621
- <View style={{ flex:1, padding:5 }}>
622
- <Text style={{ marginBottom:3 }} size={14} weight='semibold' color={Colors.brand.midnight}>Need Help? Checkout these podcasts!</Text>
646
+ <View transparent style={{ flex:1, padding:5 }}>
647
+ <Text style={{ marginBottom:3 }} theme='h2'>Need Help? Checkout these podcasts!</Text>
623
648
  <FlatList
624
649
  key={`${event.event_id}:pods`}
625
650
  data={podcasts}
@@ -645,10 +670,6 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
645
670
  }
646
671
 
647
672
 
648
- const styles = StyleSheet.create({
649
- container_style: { ...view_styles.section, borderWidth:1, borderColor:Colors.shades.shade600 }
650
- })
651
-
652
673
 
653
674
  export default React.memo(TeamEventMarket, (left, right) => {
654
675
  if(JSON.stringify(left) != JSON.stringify(right)){ return false }