be-components 3.3.6 → 3.3.8

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 (555) hide show
  1. package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +27 -36
  2. package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
  3. package/lib/commonjs/Authenticator/Components/LoginForm.js +103 -124
  4. package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
  5. package/lib/commonjs/Authenticator/Components/StrategyForm.js +254 -347
  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 +53 -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 +21 -30
  118. package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
  119. package/lib/module/Authenticator/Components/LoginForm.js +61 -82
  120. package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
  121. package/lib/module/Authenticator/Components/StrategyForm.js +234 -326
  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 +35 -45
  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 +2 -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 +1 -2
  304. package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  305. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
  306. package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
  307. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
  308. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  309. package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
  310. package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
  311. package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
  312. package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
  313. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
  314. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  315. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
  316. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  317. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
  318. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
  319. package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
  320. package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  321. package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
  322. package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
  323. package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
  324. package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
  325. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
  326. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
  327. package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
  328. package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
  329. package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
  330. package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
  331. package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
  332. package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
  333. package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
  334. package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
  335. package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
  336. package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
  337. package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
  338. package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
  339. package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
  340. package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
  341. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
  342. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
  343. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
  344. package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
  345. package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +3 -3
  346. package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
  347. package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
  348. package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
  349. package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
  350. package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
  351. package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
  352. package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
  353. package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
  354. package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  355. package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
  356. package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
  357. package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
  358. package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  359. package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
  360. package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  361. package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
  362. package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  363. package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
  364. package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  365. package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
  366. package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  367. package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
  368. package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
  369. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
  370. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
  371. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
  372. package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  373. package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
  374. package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  375. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
  376. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  377. package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
  378. package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
  379. package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
  380. package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
  381. package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
  382. package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
  383. package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
  384. package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
  385. package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
  386. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
  387. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
  388. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
  389. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
  390. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
  391. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
  392. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
  393. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
  394. package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
  395. package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
  396. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
  397. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
  398. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
  399. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
  400. package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
  401. package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
  402. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
  403. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
  404. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
  405. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
  406. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
  407. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
  408. package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
  409. package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
  410. package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
  411. package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
  412. package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
  413. package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
  414. package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
  415. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
  416. package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
  417. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
  418. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  419. package/lib/typescript/src/Authenticator/index.d.ts +2 -2
  420. package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
  421. package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
  422. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  423. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
  424. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  425. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
  426. package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  427. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
  428. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
  429. package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
  430. package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
  431. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
  432. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
  433. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  434. package/lib/typescript/src/Components/Button.d.ts +2 -1
  435. package/lib/typescript/src/Components/Button.d.ts.map +1 -1
  436. package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
  437. package/lib/typescript/src/Components/Themed.d.ts +38 -0
  438. package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
  439. package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
  440. package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
  441. package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
  442. package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
  443. package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
  444. package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
  445. package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
  446. package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
  447. package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
  448. package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +2 -1
  449. package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
  450. package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
  451. package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
  452. package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
  453. package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
  454. package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
  455. package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
  456. package/lib/typescript/src/MarketComponents/index.d.ts +15 -7
  457. package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
  458. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  459. package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
  460. package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
  461. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  462. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  463. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  464. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  465. package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
  466. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
  467. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
  468. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  469. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  470. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  471. package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
  472. package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
  473. package/lib/typescript/src/Share/api/index.d.ts +1 -1
  474. package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
  475. package/lib/typescript/src/Share/index.d.ts.map +1 -1
  476. package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
  477. package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
  478. package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
  479. package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
  480. package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
  481. package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
  482. package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
  483. package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
  484. package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
  485. package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
  486. package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
  487. package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
  488. package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
  489. package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
  490. package/lib/typescript/src/Squares/index.d.ts.map +1 -1
  491. package/lib/typescript/src/constants/colors.d.ts +9 -0
  492. package/lib/typescript/src/constants/colors.d.ts.map +1 -1
  493. package/lib/typescript/src/constants/styles.d.ts +55 -1
  494. package/lib/typescript/src/constants/styles.d.ts.map +1 -1
  495. package/lib/typescript/src/constants/useColors.d.ts +57 -0
  496. package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
  497. package/package.json +2 -1
  498. package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +41 -41
  499. package/src/Authenticator/Components/LoginForm.tsx +54 -56
  500. package/src/Authenticator/Components/StrategyForm.tsx +138 -147
  501. package/src/Authenticator/index.tsx +16 -18
  502. package/src/Competition/components/AthleteMarketCard.tsx +19 -17
  503. package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
  504. package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
  505. package/src/Competition/components/CompetitionPlay.tsx +55 -48
  506. package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
  507. package/src/Competition/components/LeaderPicks.tsx +5 -5
  508. package/src/Competition/components/MarketsCard.tsx +14 -10
  509. package/src/Competition/components/TeamEventCard.tsx +24 -23
  510. package/src/Competition/components/WagerPickForm.tsx +35 -41
  511. package/src/Competition/index.tsx +162 -125
  512. package/src/Components/Button.tsx +50 -6
  513. package/src/Components/ConfirmationModal.tsx +13 -21
  514. package/src/Components/Themed.tsx +233 -0
  515. package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
  516. package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
  517. package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
  518. package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
  519. package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
  520. package/src/MarketComponents/components/MatchMarket/index.tsx +50 -59
  521. package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
  522. package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
  523. package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
  524. package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
  525. package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
  526. package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
  527. package/src/ProfileManager/Components/DOBManager.tsx +25 -30
  528. package/src/ProfileManager/Components/EmailManager.tsx +37 -45
  529. package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
  530. package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
  531. package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
  532. package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
  533. package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
  534. package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
  535. package/src/ProfileManager/Components/VouchCard.tsx +50 -59
  536. package/src/ProfileManager/index.tsx +16 -13
  537. package/src/Share/api/index.ts +9 -3
  538. package/src/Share/index.tsx +13 -12
  539. package/src/Squares/components/BidForm.tsx +85 -62
  540. package/src/Squares/components/BidToggle.tsx +8 -9
  541. package/src/Squares/components/BoardStats.tsx +28 -28
  542. package/src/Squares/components/EventCard.tsx +33 -31
  543. package/src/Squares/components/MySquaresCard.tsx +24 -23
  544. package/src/Squares/components/MyStatsCard.tsx +66 -68
  545. package/src/Squares/components/OfferForm.tsx +15 -15
  546. package/src/Squares/components/PrizeCard.tsx +21 -18
  547. package/src/Squares/components/ResultsCard.tsx +21 -18
  548. package/src/Squares/components/SquareOffersCard.tsx +12 -10
  549. package/src/Squares/components/SquareOwners.tsx +24 -23
  550. package/src/Squares/components/SquaresBoard.tsx +39 -42
  551. package/src/Squares/components/SquaresDetails.tsx +25 -24
  552. package/src/Squares/index.tsx +196 -144
  553. package/src/constants/colors.ts +55 -47
  554. package/src/constants/styles.ts +37 -1
  555. package/src/constants/useColors.tsx +131 -0
@@ -1,14 +1,16 @@
1
1
  import React, { useState } from 'react';
2
- import { View, TouchableOpacity } from "react-native"
3
- import { Button, Icons, Text, TextInput } from '../../Components';
2
+ import { Keyboard, TouchableOpacity } from "react-native"
3
+ import { Icons } from '../../Components';
4
4
  import Colors from '../../constants/colors';
5
5
  import { AuthenticateApi, AuthenticateHelpers } from '../api';
6
6
  import type { AuthenticatedProps } from '../api/types';
7
+ import { Text, View, Button, TextInput } from '../../Components/Themed';
8
+ import { useColors } from '../../constants/useColors';
7
9
 
8
10
 
9
11
  type LoginFormProps = {
10
12
  visible:boolean,
11
- width:number,
13
+ maxWidth?:number,
12
14
  onTryAuthenticate:(attribute:string, result:'success'|'fail') => void,
13
15
  onRegister: () => void,
14
16
  onAuthenticated: (auth_response:AuthenticatedProps) => void
@@ -16,7 +18,8 @@ type LoginFormProps = {
16
18
 
17
19
 
18
20
  const attribute_options = ['username', 'email', 'phone']
19
- const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthenticate }:LoginFormProps) => {
21
+ const LoginForm = ({ maxWidth, visible, onRegister, onAuthenticated, onTryAuthenticate }:LoginFormProps) => {
22
+ const C = useColors();
20
23
  const [ authenticated, setAuthenticated ] = useState(false);
21
24
  console.log(authenticated)
22
25
  const [ auth_check, setAuthCheck ] = useState<{
@@ -49,6 +52,7 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
49
52
 
50
53
  const handleAuthCheck = async() => {
51
54
  if(loading){ return } //No mashy mashy
55
+ Keyboard.dismiss();
52
56
  setAuthCheck({ ...auth_check, loading:true })
53
57
  const { result, message, verification_session_id, next } = await AuthenticateApi.authCheck(attribute, value);
54
58
  if(result == 'fail'){
@@ -68,6 +72,7 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
68
72
  }
69
73
 
70
74
  const handleForgot = async() => {
75
+ Keyboard.dismiss();
71
76
  const resp = await AuthenticateApi.authForgot(attribute, value)
72
77
  if(resp.result == 'fail'){
73
78
  setAuthCheckError(resp.message)
@@ -83,11 +88,10 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
83
88
  }
84
89
 
85
90
  const handleLogin = async() => {
91
+ Keyboard.dismiss();
86
92
  setLoginTry({ ...login_try, loading:true })
87
- console.log('trying login')
88
93
  const { result, player_id, new_player, message, access_token, refresh_token, expire_datetime } = await AuthenticateApi.authLogin(attribute, value, pass_token, verification_session_id)
89
- console.log('result')
90
- console.log(result)
94
+
91
95
  if(result == 'fail' || !access_token || !refresh_token || !player_id){
92
96
  setLoginTry({ ...login_try, error:message, loading:false })
93
97
  setHalted(true)
@@ -108,10 +112,10 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
108
112
 
109
113
  const getAttributeIcon = () => {
110
114
  switch(attribute){
111
- case 'email': return <Icons.EmailIcon size={20} color={Colors.brand.midnight}/>
112
- case 'phone': return <Icons.PhoneIcon size={20} color={Colors.brand.midnight} />
113
- case 'username': return <Icons.UserIcon size={20} color={Colors.brand.midnight} />
114
- default: return <Icons.UserIcon size={20} color={Colors.brand.midnight} />
115
+ case 'email': return <Icons.EmailIcon size={20} color={C.text.h1}/>
116
+ case 'phone': return <Icons.PhoneIcon size={20} color={C.text.h1} />
117
+ case 'username': return <Icons.UserIcon size={20} color={C.text.h1} />
118
+ default: return <Icons.UserIcon size={20} color={C.text.h1} />
115
119
  }
116
120
  }
117
121
 
@@ -121,29 +125,28 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
121
125
  if(!visible){ return <></> }
122
126
 
123
127
  return (
124
- <View style={{ flex:1, width }}>
128
+ <View style={{ flexGrow:1, maxWidth }}>
125
129
  {!login_try.visible ?
126
- <View style={{ flex:1 }}>
130
+ <View style={{ flexGrow:1 }}>
127
131
  <View style={{ padding:20 }}>
128
132
  <View>
129
- <Text size={18} color={Colors.brand.midnight} weight='bold'>Login Using My:</Text>
133
+ <Text theme='h1'>Login Using My:</Text>
130
134
  </View>
131
135
  <View nativeID='attribute_toggle' style={{ marginTop:10, flexDirection:'row', borderRadius:22, borderWidth:1, backgroundColor:Colors.shades.shade400, borderColor:Colors.shades.shade600 }}>
132
136
  {attribute_options.map((a,i) => {
133
137
  const selected = a == attribute ? true : false
134
138
  return (
135
139
  <Button
136
- style={{ flex:1 }}
137
140
  title={a.toUpperCase()}
138
- borderRadiusOverride={{
141
+ style={{
142
+ flex:1,
143
+ padding:15,
139
144
  borderTopLeftRadius: i == 0 ? 22 : 0,
140
145
  borderBottomLeftRadius: i == 0 ? 22 : 0,
141
146
  borderTopRightRadius: i == attribute_options.length -1 ? 22 : 0,
142
147
  borderBottomRightRadius: i == attribute_options.length -1 ? 22 : 0,
143
148
  }}
144
149
  title_color={selected ? Colors.shades.white : Colors.brand.electric}
145
- padding={15}
146
- title_weight={selected ? 'bold' : 'regular'}
147
150
  backgroundColor={selected ? Colors.brand.electric : 'transparent'}
148
151
  onPress={() => setAuthCheck({ attribute:a as 'username'|'email'|'phone', value: '', loading:false })}
149
152
  />
@@ -151,19 +154,20 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
151
154
  })}
152
155
  </View>
153
156
  </View>
154
- <View style={{ flex:1 }}>
155
- <View style={{ backgroundColor:Colors.shades.shade100, borderRadius:8, padding:30 }}>
157
+ <View style={{ flexGrow:1 }}>
158
+ <View style={{padding:30 }}>
156
159
  <View style={{ marginBottom:10 }}>
157
- <Text size={18} color={Colors.brand.midnight} weight='bold'>ENTER {attribute.toUpperCase()}</Text>
158
- <Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular'>Please enter your {attribute} to continue.</Text>
160
+ <Text theme='h1'>ENTER {attribute.toUpperCase()}</Text>
161
+ <Text style={{ marginTop:5 }} theme='h2'>Please enter your {attribute} to continue.</Text>
159
162
  </View>
160
- <View style={{ marginTop:5, flexDirection:'row', alignItems:'center', borderRadius:22, borderWidth:1, borderColor:Colors.shades.shade600 }}>
161
- <View style={{ paddingLeft:10, paddingRight:15 }}>
163
+ <View type='input' style={{ marginTop:5, flexDirection:'row', alignItems:'center' }}>
164
+ <View transparent style={{ paddingLeft:10, paddingRight:10 }}>
162
165
  {getAttributeIcon()}
163
166
  </View>
164
167
  <TextInput
165
168
  style={{ flex:1 }}
166
169
  value={value}
170
+ transparent
167
171
  placeholder={attribute.toUpperCase()}
168
172
  autoFocus={true}
169
173
  placeholderTextColor={Colors.brand.slate}
@@ -171,11 +175,11 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
171
175
  setAuthCheck({ ...auth_check, value: text })
172
176
  }}
173
177
  />
174
- <View style={{ padding:10 }}>
178
+ <View transparent style={{ padding:10 }}>
175
179
  { valid ?
176
- <Icons.CheckCirlceIcon color={Colors.utility.success} size={14} />
180
+ <Icons.CheckCirlceIcon color={C.text.success} size={14} />
177
181
  :
178
- <Icons.AlertIcon color={Colors.utility.warning} size={14} />
182
+ <Icons.AlertIcon color={C.text.warning} size={20} />
179
183
  }
180
184
  </View>
181
185
  </View>
@@ -187,23 +191,20 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
187
191
  :<></>}
188
192
  </View>
189
193
  </View>
190
- <View style={{ padding:20 }}>
194
+ <View type='footer' style={{ padding:10, paddingLeft:20, paddingRight:20 }}>
191
195
  <Button
192
196
  title='LOGIN'
193
197
  style={{ opacity:!valid||loading?0.5:1 }}
194
- title_color={Colors.shades.white}
195
198
  loading={loading}
196
- backgroundColor={Colors.brand.electric}
197
199
  disabled={!valid||loading}
198
- padding={15}
200
+ type='success'
199
201
  onPress={() => handleAuthCheck()}
200
202
  />
201
203
  </View>
202
- <View style={{ padding:15, backgroundColor:Colors.shades.shade100 }}>
204
+ <View style={{ padding:10 }}>
203
205
  <Button
204
206
  title='Are You New? Sign Up Here'
205
- title_color={Colors.brand.electric}
206
- backgroundColor='transparent'
207
+ type='text'
207
208
  onPress={() => onRegister()}
208
209
  />
209
210
  </View>
@@ -213,38 +214,39 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
213
214
  <View style={{ flex:1 }}>
214
215
  <View style={{ borderRadius:8, padding:30 }}>
215
216
  <View style={{ marginBottom:10 }}>
216
- <Text size={18} color={Colors.brand.midnight} weight='bold'>MY {attribute.toUpperCase()}</Text>
217
+ <Text theme='h1'>MY {attribute.toUpperCase()}</Text>
217
218
  </View>
218
- <View style={{ flexDirection:'row', alignItems:'center', borderRadius:22, borderWidth:1, borderColor:Colors.shades.shade600 }}>
219
- <View style={{ paddingLeft:10, paddingRight:15 }}>
219
+ <View type='input' style={{ flexDirection:'row', alignItems:'center' }}>
220
+ <View transparent style={{ paddingLeft:10, paddingRight:15 }}>
220
221
  {getAttributeIcon()}
221
222
  </View>
222
223
  <TextInput
223
224
  value={value}
225
+ transparent
224
226
  editable={false}
225
- style={{ flex:1, backgroundColor:Colors.shades.shade100 }}
227
+ style={{ flex:1 }}
226
228
  placeholderTextColor={Colors.brand.slate}
227
229
  onChangeText={() => console.log('')}
228
230
  />
229
- <View style={{ padding:10 }}>
230
- <Icons.CheckCirlceIcon color={Colors.utility.success} size={14} />
231
+ <View transparent style={{ padding:10 }}>
232
+ <Icons.CheckCirlceIcon color={C.text.success} size={14} />
231
233
  </View>
232
234
  </View>
233
235
  </View>
234
- <View style={{ borderRadius:8, padding:30, backgroundColor:Colors.shades.shade100 }}>
236
+ <View style={{ borderRadius:8, padding:30 }}>
235
237
  <View style={{ marginBottom:10 }}>
236
- <Text size={18} color={Colors.brand.midnight} weight='bold'>ENTER {type.toUpperCase()}</Text>
238
+ <Text theme='h1'>ENTER {type.toUpperCase()}</Text>
237
239
  {type == 'token' ?
238
- <Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular'>We sent a one-time token to {value}. Please enter it below.</Text>
240
+ <Text style={{ marginTop:5 }} theme='h2'>We sent a one-time token to {value}. Please enter it below.</Text>
239
241
  :
240
- <Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular'>Please enter the password associated with the {attribute} {value}.</Text>
242
+ <Text style={{ marginTop:5 }} theme='h2'>Please enter the password associated with the {attribute} {value}.</Text>
241
243
  }
242
244
  </View>
243
- <View style={{ flexDirection:'row', alignItems:'center', borderRadius:22, borderWidth:1, borderColor:Colors.shades.shade600 }}>
244
- <View style={{ paddingLeft:10, paddingRight:15 }}>
245
+ <View type='input' style={{ flexDirection:'row', alignItems:'center' }}>
246
+ <View transparent style={{ paddingLeft:10, paddingRight:15 }}>
245
247
  <Icons.LockClosedIcon
246
248
  size={20}
247
- color={Colors.brand.midnight}
249
+ color={C.text.h1}
248
250
  />
249
251
  </View>
250
252
  <TextInput
@@ -263,11 +265,11 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
263
265
  })
264
266
  }}
265
267
  />
266
- <View style={{ padding:10 }}>
268
+ <View transparent style={{ padding:10 }}>
267
269
  { login_valid ?
268
- <Icons.CheckCirlceIcon color={Colors.utility.success} size={14} />
270
+ <Icons.CheckCirlceIcon color={C.text.h1} size={14} />
269
271
  :
270
- <Icons.AlertIcon color={Colors.utility.warning} size={14} />
272
+ <Icons.AlertIcon color={C.text.warning} size={18} />
271
273
  }
272
274
  </View>
273
275
  </View>
@@ -284,10 +286,7 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
284
286
  title='BACK'
285
287
  style={{ marginRight:5, flex:1 }}
286
288
  title_color={Colors.brand.electric}
287
- backgroundColor={Colors.shades.white}
288
- borderWidth={1}
289
- borderColor={Colors.brand.electric}
290
- padding={15}
289
+ type='close'
291
290
  onPress={() => {
292
291
  setLoginTry({ ...login_try, pass_token: '', visible:false });
293
292
  }}
@@ -297,9 +296,8 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
297
296
  style={{ flex:3, opacity:!login_valid||loading?0.5:1 }}
298
297
  title_color={Colors.shades.white}
299
298
  loading={login_try.loading}
300
- backgroundColor={Colors.brand.electric}
299
+ type='success'
301
300
  disabled={!login_valid||loading}
302
- padding={15}
303
301
  onPress={() => handleLogin()}
304
302
  />
305
303
  </View>
@@ -1,23 +1,23 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { Button, Checkbox, Icons, Text, TextInput } from "../../Components";
3
- import Colors from "../../constants/colors";
2
+ import { Checkbox, Icons } from "../../Components";
3
+
4
4
  import type { AuthExecutionRequestProps, AuthStrategyIdentifierProps, AuthStrategyProps, AuthenticatedProps } from '../api/types';
5
5
  import { AuthenticateApi, AuthenticateHelpers } from '../api';
6
- import { Linking, TouchableOpacity, View , FlatList, Image } from 'react-native';
6
+ import { Linking, TouchableOpacity , FlatList } from 'react-native';
7
7
  import type { CompanyProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
8
- import { view_styles } from '../../constants/styles';
9
8
  import { ProfileHelpers } from '../../ProfileManager/api';
10
9
  import AuthStrategyIdentifier from './AuthStrategyIdentifier';
10
+ import { useColors } from '../../constants/useColors';
11
+ import { Text, View, Button, TextInput } from '../../Components/Themed';
11
12
 
12
13
  type StrategyFormProps = {
13
14
  visible:boolean,
14
15
  auth_strategy_id:string,
15
16
  strategy: { auth_strategy?:AuthStrategyProps, auth_strategy_identifiers:AuthStrategyIdentifierProps[] }
16
- width:number,
17
+ maxWidth?:number,
17
18
  company_id?:string,
18
19
  distinct_id:string,
19
20
  source:string,
20
- theme?:'full'|'mini',
21
21
  company?:CompanyProps,
22
22
  opt_in_url?:string,
23
23
  show_referral?:boolean,
@@ -26,10 +26,10 @@ type StrategyFormProps = {
26
26
  onAuthenticated: (auth_response:AuthenticatedProps) => void
27
27
  }
28
28
 
29
- const mini_steps = ['intro', 'execution', 'verify']
30
-
31
- const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, company_id, distinct_id, source, show_referral, referral_code, width, opt_in_url, onAuthenticated, onLogin }:StrategyFormProps) => {
29
+ //const mini_steps = ['intro', 'execution', 'verify']
32
30
 
31
+ const StrategyForm = ({ visible, strategy, auth_strategy_id, company_id, distinct_id, source, show_referral, referral_code, maxWidth, opt_in_url, onAuthenticated, onLogin }:StrategyFormProps) => {
32
+ const C = useColors();
33
33
  const [ action_loading, setActionLoading ] = useState(false);
34
34
  const [ active_view, setActiveView ] = useState('authenticate');
35
35
  const [ code_details, setCodeDetails ] = useState<{
@@ -37,9 +37,9 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
37
37
  promo?:PromoProps,
38
38
  referrer?:PublicPlayerProps
39
39
  }>({})
40
- const [ active_mini_index, setActiveMiniIndex ] = useState(0);
40
+ //const [ active_mini_index, setActiveMiniIndex ] = useState(0);
41
41
  const [ opted_in, setOptedIn ] = useState(true);
42
- const [ active_index, setActiveIndex ] = useState<number>(0)
42
+ //const [ active_index, setActiveIndex ] = useState<number>(0)
43
43
  const [ token, setToken ] = useState('');
44
44
  const [ verify_error, setVerifyError ] = useState<string|undefined>();
45
45
  const [ verify_attempt_allowed, setVeryAttemptAllowed ] = useState(true);
@@ -69,7 +69,7 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
69
69
  },[auth_strategy, referral_code])
70
70
 
71
71
  const setUpWizard = async(auth_strategy_id:string) => {
72
- console.log('setting up wizard!!')
72
+
73
73
  //Get auth strategy from server
74
74
  if(referral_code && show_referral){
75
75
  const code_response = await AuthenticateApi.getReferralByCode(referral_code)
@@ -94,17 +94,14 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
94
94
  }
95
95
 
96
96
  const verifyAuthStrategyIdentifier = async() => {
97
- console.log(`verifying strategy!`)
98
- console.log(authenticated)
97
+
99
98
  if(authenticated){ return }
100
99
  if(!verify_state){ return }
101
100
  if(action_loading){ return } //No mashy mashy
102
101
  if(!verify_attempt_allowed){ return }
103
102
  setVeryAttemptAllowed(false);
104
103
  setActionLoading(true);
105
- console.log('Submitting password!!!')
106
104
  const { result, player_id, access_token, refresh_token, expire_datetime } = await AuthenticateApi.verifyAuthStrategyIdentifier(verify_state.auth_strategy_identifier_id, verify_state.verification_session_id, token, distinct_id);
107
- console.log(result)
108
105
  if(result == 'fail' || !access_token || !refresh_token || !player_id || !auth_strategy_id){
109
106
  setVerifyError(`Invalid code / password. Please try again after 10 seconds`)
110
107
  setTimeout(() => {
@@ -128,7 +125,6 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
128
125
  }
129
126
 
130
127
  const executeAuthStrategy = async() => {
131
- console.log('exeuting strategy!!!')
132
128
  setActionLoading(true);
133
129
  const { result, verification_session_id, session_expire_datetime, auth_strategy_identifier_id, new_player } = await AuthenticateApi.executeAuthStrategy(auth_execution_request);
134
130
  if(result == 'fail'){
@@ -172,6 +168,127 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
172
168
  const strategy_valid = AuthenticateHelpers.isStrategyValid(auth_execution_request)
173
169
  if(!visible || !auth_strategy){ return <></> }
174
170
 
171
+
172
+ return (
173
+ <View style={{ maxWidth, flexGrow:1 }}>
174
+ {active_view == 'authenticate' ?
175
+ <View nativeID="sign_up" style={{ flexGrow:1 }}>
176
+ {show_referral && code_details.player_referral && code_details.promo ?
177
+ <View float style={{ margin:15, flexDirection:'row', borderRadius:8 }}>
178
+ <View transparent style={{ padding:10, justifyContent:'center' }}>
179
+ <Icons.GiftIcon size={40} color={C.text.gold} />
180
+ </View>
181
+ <View transparent style={{flex:1, backgroundColor:C.views.gold, padding:10, borderTopRightRadius:8, borderBottomRightRadius:8 }}>
182
+ <Text theme='h1'>@{code_details.referrer?.username} has a gift for you</Text>
183
+ <Text style={{ paddingTop:5 }} theme='h2'>{ProfileHelpers.getReferralDescription(code_details.promo)}</Text>
184
+ </View>
185
+ </View>
186
+ :<></>}
187
+ <View style={{ padding:20, flexGrow:1 }}>
188
+ <FlatList
189
+ data={auth_strategy_identifiers.sort((a,b) => a.priority - b.priority)}
190
+ renderItem={renderAuthStrategyIdentifiers}
191
+ keyExtractor={(item) => item.auth_strategy_identifier_id.toString()}
192
+ />
193
+ </View>
194
+ <View nativeID="action_row" type='footer' style={{ padding:10, paddingLeft:20, paddingRight:20 }}>
195
+ <Button
196
+ title={`Let's Go!`}
197
+ loading={action_loading}
198
+ style={{ opacity:strategy_valid && opted_in?1:0.5 }}
199
+ disabled={action_loading || !strategy_valid || !opted_in}
200
+ type='success'
201
+ onPress={() => {
202
+ executeAuthStrategy()
203
+ }}
204
+ />
205
+ </View>
206
+ {auth_strategy?.allow_login ?
207
+ <View style={{ padding:10 }}>
208
+ <Button
209
+ title='Already Signed Up? Login Here'
210
+ type='text'
211
+ onPress={() => onLogin()}
212
+ />
213
+ </View>
214
+ :<></>}
215
+ {active_view == 'authenticate' && opt_in_url ?
216
+ <View style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
217
+ <Checkbox
218
+ size={25}
219
+ checked={opted_in}
220
+ onSelect={(checked) => setOptedIn(checked)}
221
+ />
222
+ <Text style={{ marginLeft:15 }} theme='h2'>By continuing, you agree to the terms and conditions outlined
223
+ <TouchableOpacity onPress={() => Linking.openURL(opt_in_url) }>
224
+ <Text size={14} color={C.text.action} weight='bold'> here.</Text>
225
+ </TouchableOpacity>
226
+ </Text>
227
+ </View>
228
+ :<></>}
229
+ </View>
230
+
231
+ : active_view == 'verify' && verify_strategy_identifier ?
232
+
233
+ <View nativeID="sign_up" style={{ flex:1 }}>
234
+ <View style={{ flex:1, justifyContent:'center', alignItems:'center', padding:20 }}>
235
+ <Text theme='h1' size={20} textAlign="center">{verify_strategy_identifier.verify_label??'Enter Verification Code'}</Text>
236
+ <View type='input' style={{ marginTop:15 }}>
237
+ <TextInput
238
+ style={{ textAlign:'center', minWidth:200 }}
239
+ value={token}
240
+ transparent
241
+ placeholder='00000'
242
+ keyboardType='default'
243
+ autoFocus
244
+ textContentType={verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode'}
245
+ secureTextEntry={verify_strategy_identifier.secure_text_entry}
246
+ placeholderTextColor={C.text.description}
247
+ onChangeText={(text) => {
248
+ setToken(text);
249
+ }}
250
+ />
251
+ </View>
252
+ {verify_error ?
253
+ <Text style={{ marginTop:10 }} theme='warning'>{verify_error}</Text>
254
+ :<></>}
255
+ </View>
256
+ <View nativeID="action_row" style={{ flexDirection:'row', padding:10, paddingLeft:20, paddingRight:20 }}>
257
+ <Button
258
+ title={'BACK'}
259
+ loading={action_loading}
260
+ style={{ flex:1, marginRight:5 }}
261
+ type='close'
262
+ onPress={() => {
263
+ setActiveView('authenticate');
264
+ setVerifyState(undefined)
265
+ }}
266
+ />
267
+ <Button
268
+ title={verify_attempt_allowed && !action_loading? 'Verify': 'Retry in 10 seconds'}
269
+ loading={action_loading}
270
+ style={{ flex:3, opacity:token&&verify_attempt_allowed?1:0.5 }}
271
+ disabled={!token || action_loading || !verify_attempt_allowed}
272
+ type='success'
273
+ onPress={() => {
274
+ verifyAuthStrategyIdentifier()
275
+ }}
276
+ />
277
+ </View>
278
+ </View>
279
+
280
+ :<></>}
281
+ </View>
282
+ )
283
+ }
284
+
285
+ export default StrategyForm
286
+
287
+
288
+
289
+
290
+ /*
291
+
175
292
  if(theme == 'mini'){
176
293
  const active_mini_step = mini_steps[active_mini_index];
177
294
  const active_strategy_identifier = auth_strategy_identifiers[active_index]
@@ -179,9 +296,9 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
179
296
  const last_index = auth_strategy_identifiers.length - 1 == active_index ? true : false
180
297
  if(!auth_request || !active_mini_step){ return <></> }
181
298
  return (
182
- <View style={{ width }}>
299
+ <View style={{ maxWidth }}>
183
300
  {active_mini_step == 'intro' ?
184
- <View style={{ flex:1 }}>
301
+ <View style={{ }}>
185
302
  <View style={{ flexDirection:'row' }}>
186
303
  {company ?
187
304
  <View style={{ padding:10 }}>
@@ -296,7 +413,7 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
296
413
  </View>
297
414
  </View>
298
415
  : active_view == 'verify' && verify_strategy_identifier ?
299
- <View nativeID="sign_up" style={{ flex:1, maxWidth:600 }}>
416
+ <View nativeID="sign_up" style={{ maxWidth:600 }}>
300
417
  <View style={{ padding:10 }}>
301
418
  <Text size={18} color={Colors.brand.midnight} weight='semibold'>{verify_strategy_identifier.verify_label??'Enter Verification Code'}</Text>
302
419
  <View style={{ padding:10 }}>
@@ -357,130 +474,4 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
357
474
  )
358
475
  }
359
476
 
360
- return (
361
- <View style={{ width:width, flex:1 }}>
362
- {active_view == 'authenticate' ?
363
- <View nativeID="sign_up" style={{ flex:1 }}>
364
- {show_referral && code_details.player_referral && code_details.promo ?
365
- <View style={{ margin:15, flexDirection:'row', backgroundColor:Colors.shades.white, borderRadius:8, ...view_styles.float }}>
366
- <View style={{ padding:10, justifyContent:'center' }}>
367
- <Icons.GiftIcon size={40} color={Colors.incentive.gold} />
368
- </View>
369
- <View style={{flex:1, backgroundColor:Colors.incentive.gold_faded, padding:10 }}>
370
- <Text style={{ paddingBottom:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }} size={16} color={Colors.brand.midnight} weight='bold'>@{code_details.referrer?.username} has a gift for you</Text>
371
- <Text style={{ paddingTop:5 }} size={12} color={Colors.brand.midnight} weight='semibold'>{ProfileHelpers.getReferralDescription(code_details.promo)}</Text>
372
- </View>
373
- </View>
374
- :<></>}
375
- <View style={{ flex:1, padding:10 }}>
376
- <View style={{ padding:10 }}>
377
- <FlatList
378
- data={auth_strategy_identifiers.sort((a,b) => a.priority - b.priority)}
379
- renderItem={renderAuthStrategyIdentifiers}
380
- keyExtractor={(item) => item.auth_strategy_identifier_id.toString()}
381
- />
382
- </View>
383
- </View>
384
- <View nativeID="action_row" style={{ padding:10, paddingLeft:20, paddingRight:20 }}>
385
- <Button
386
- title={`Let's Go!`}
387
- loading={action_loading}
388
- style={{ opacity:strategy_valid && opted_in?1:0.5 }}
389
- disabled={action_loading || !strategy_valid || !opted_in}
390
- title_color={Colors.shades.white}
391
- backgroundColor={Colors.brand.electric}
392
- //borderRadius={8}
393
- padding={15}
394
- onPress={() => {
395
- executeAuthStrategy()
396
- }}
397
- />
398
- </View>
399
- {auth_strategy?.allow_login ?
400
- <View style={{ padding:10, backgroundColor:Colors.shades.shade100 }}>
401
- <Button
402
- title='Already Signed Up? Login Here'
403
- title_color={Colors.brand.electric}
404
- backgroundColor='transparent'
405
- onPress={() => onLogin()}
406
- />
407
- </View>
408
- :<></>}
409
- {active_view == 'authenticate' && opt_in_url ?
410
- <View style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
411
- <Checkbox
412
- size={25}
413
- checked={opted_in}
414
- onSelect={(checked) => setOptedIn(checked)}
415
- />
416
- <Text style={{ marginLeft:15 }} size={14} color={Colors.brand.midnight}>By continuing, you agree to the terms and conditions outlined
417
- <TouchableOpacity onPress={() => Linking.openURL(opt_in_url) }>
418
- <Text size={14} color={Colors.brand.electric} weight='bold'> here.</Text>
419
- </TouchableOpacity>
420
- </Text>
421
- </View>
422
- :<></>}
423
- </View>
424
-
425
- : active_view == 'verify' && verify_strategy_identifier ?
426
-
427
- <View nativeID="sign_up" style={{ flex:1 }}>
428
- <View style={{ flex:1, justifyContent:'center', alignItems:'center', padding:20 }}>
429
- <Text size={18} color={Colors.brand.midnight} weight='semibold' textAlign="center">{verify_strategy_identifier.verify_label??'Enter Verification Code'}</Text>
430
- <View style={{ padding:10 }}>
431
- <TextInput
432
- style={{ textAlign:'center', fontFamily:'barlow-bold', fontSize:14, borderWidth:1, borderColor:Colors.shades.shade600 }}
433
- value={token}
434
- keyboardType='default'
435
- autoFocus
436
- textContentType={verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode'}
437
- secureTextEntry={verify_strategy_identifier.secure_text_entry}
438
- placeholderTextColor={Colors.brand.slate}
439
- onChangeText={(text) => {
440
- setToken(text);
441
- }}
442
- />
443
- </View>
444
- {verify_error ?
445
- <Text style={{ marginTop:10 }} size={14} color={Colors.utility.warning}>{verify_error}</Text>
446
- :<></>}
447
- </View>
448
- <View nativeID="action_row" style={{ flexDirection:'row', padding:10, paddingLeft:20, paddingRight:20 }}>
449
- <Button
450
- title={'BACK'}
451
- loading={action_loading}
452
- style={{ flex:1, marginRight:5 }}
453
- //disabled={!token || action_loading || !verify_attempt_allowed}
454
- title_color={Colors.brand.electric}
455
- borderColor={Colors.brand.electric}
456
- borderWidth={1}
457
- //backgroundColor={Colors.utility.success}
458
- //borderRadius={8}
459
- padding={15}
460
- onPress={() => {
461
- setActiveView('authenticate');
462
- setVerifyState(undefined)
463
- }}
464
- />
465
- <Button
466
- title={verify_attempt_allowed && !action_loading? 'Verify': 'Retry in 10 seconds'}
467
- loading={action_loading}
468
- style={{ flex:3, opacity:token&&verify_attempt_allowed?1:0.5 }}
469
- disabled={!token || action_loading || !verify_attempt_allowed}
470
- title_color={Colors.shades.white}
471
- backgroundColor={Colors.utility.success}
472
- //borderRadius={8}
473
- padding={15}
474
- onPress={() => {
475
- verifyAuthStrategyIdentifier()
476
- }}
477
- />
478
- </View>
479
- </View>
480
-
481
- :<></>}
482
- </View>
483
- )
484
- }
485
-
486
- export default StrategyForm
477
+ */