be-components 4.2.0 → 4.2.2

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 (283) hide show
  1. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +12 -23
  2. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
  3. package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +191 -100
  4. package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
  5. package/lib/commonjs/Competition/components/WagerPickForm.js +8 -2
  6. package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
  7. package/lib/commonjs/Competition/index.js +49 -9
  8. package/lib/commonjs/Competition/index.js.map +1 -1
  9. package/lib/commonjs/Components/ConfirmationModal.js +11 -3
  10. package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
  11. package/lib/commonjs/Components/SearchBox.js +3 -1
  12. package/lib/commonjs/Components/SearchBox.js.map +1 -1
  13. package/lib/commonjs/MarketComponents/components/ContestOrderStatsCard.js +2 -0
  14. package/lib/commonjs/MarketComponents/components/ContestOrderStatsCard.js.map +1 -1
  15. package/lib/commonjs/MarketMaker/components/Contest.js +39 -41
  16. package/lib/commonjs/MarketMaker/components/Contest.js.map +1 -1
  17. package/lib/commonjs/MarketMaker/components/ContestSelector.js +48 -30
  18. package/lib/commonjs/MarketMaker/components/ContestSelector.js.map +1 -1
  19. package/lib/commonjs/MarketMaker/components/Dashboard.js +14 -73
  20. package/lib/commonjs/MarketMaker/components/Dashboard.js.map +1 -1
  21. package/lib/commonjs/MarketMaker/components/FundOwnershipList.js +27 -30
  22. package/lib/commonjs/MarketMaker/components/FundOwnershipList.js.map +1 -1
  23. package/lib/commonjs/MarketMaker/components/FundSelector.js +30 -33
  24. package/lib/commonjs/MarketMaker/components/FundSelector.js.map +1 -1
  25. package/lib/commonjs/MarketMaker/components/FundingRequestList.js +28 -41
  26. package/lib/commonjs/MarketMaker/components/FundingRequestList.js.map +1 -1
  27. package/lib/commonjs/MarketMaker/components/ManageFundForm.js +1 -1
  28. package/lib/commonjs/MarketMaker/components/ManageFundForm.js.map +1 -1
  29. package/lib/commonjs/MarketMaker/components/MarketSelector.js +26 -24
  30. package/lib/commonjs/MarketMaker/components/MarketSelector.js.map +1 -1
  31. package/lib/commonjs/MarketMaker/components/OrderForm.js +7 -4
  32. package/lib/commonjs/MarketMaker/components/OrderForm.js.map +1 -1
  33. package/lib/commonjs/MarketMaker/index.js +301 -227
  34. package/lib/commonjs/MarketMaker/index.js.map +1 -1
  35. package/lib/commonjs/Poll/components/CampaignHeader.js +20 -15
  36. package/lib/commonjs/Poll/components/CampaignHeader.js.map +1 -1
  37. package/lib/commonjs/Poll/components/CampaignLeaderboard.js +77 -75
  38. package/lib/commonjs/Poll/components/CampaignLeaderboard.js.map +1 -1
  39. package/lib/commonjs/Poll/components/CampaignProgressBar.js +21 -20
  40. package/lib/commonjs/Poll/components/CampaignProgressBar.js.map +1 -1
  41. package/lib/commonjs/Poll/components/CampaignResult.js +21 -19
  42. package/lib/commonjs/Poll/components/CampaignResult.js.map +1 -1
  43. package/lib/commonjs/Poll/components/PollCard.js +240 -218
  44. package/lib/commonjs/Poll/components/PollCard.js.map +1 -1
  45. package/lib/commonjs/Poll/components/PollOptionCard.js +28 -25
  46. package/lib/commonjs/Poll/components/PollOptionCard.js.map +1 -1
  47. package/lib/commonjs/Poll/components/PollQuestionsSection.js +25 -19
  48. package/lib/commonjs/Poll/components/PollQuestionsSection.js.map +1 -1
  49. package/lib/commonjs/Poll/components/PollSelectCard.js +48 -45
  50. package/lib/commonjs/Poll/components/PollSelectCard.js.map +1 -1
  51. package/lib/commonjs/Poll/index.js +97 -93
  52. package/lib/commonjs/Poll/index.js.map +1 -1
  53. package/lib/commonjs/Squares/index.js +28 -9
  54. package/lib/commonjs/Squares/index.js.map +1 -1
  55. package/lib/module/Competition/components/CompetitionLeaderboard.js +12 -23
  56. package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
  57. package/lib/module/Competition/components/EnterCompetitionPrompt.js +191 -100
  58. package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
  59. package/lib/module/Competition/components/WagerPickForm.js +8 -2
  60. package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
  61. package/lib/module/Competition/index.js +49 -9
  62. package/lib/module/Competition/index.js.map +1 -1
  63. package/lib/module/Components/ConfirmationModal.js +11 -3
  64. package/lib/module/Components/ConfirmationModal.js.map +1 -1
  65. package/lib/module/Components/SearchBox.js +3 -1
  66. package/lib/module/Components/SearchBox.js.map +1 -1
  67. package/lib/module/MarketComponents/components/ContestOrderStatsCard.js +2 -0
  68. package/lib/module/MarketComponents/components/ContestOrderStatsCard.js.map +1 -1
  69. package/lib/module/MarketMaker/components/Contest.js +21 -24
  70. package/lib/module/MarketMaker/components/Contest.js.map +1 -1
  71. package/lib/module/MarketMaker/components/ContestSelector.js +43 -25
  72. package/lib/module/MarketMaker/components/ContestSelector.js.map +1 -1
  73. package/lib/module/MarketMaker/components/Dashboard.js +9 -66
  74. package/lib/module/MarketMaker/components/Dashboard.js.map +1 -1
  75. package/lib/module/MarketMaker/components/FundOwnershipList.js +19 -22
  76. package/lib/module/MarketMaker/components/FundOwnershipList.js.map +1 -1
  77. package/lib/module/MarketMaker/components/FundSelector.js +24 -27
  78. package/lib/module/MarketMaker/components/FundSelector.js.map +1 -1
  79. package/lib/module/MarketMaker/components/FundingRequestList.js +18 -31
  80. package/lib/module/MarketMaker/components/FundingRequestList.js.map +1 -1
  81. package/lib/module/MarketMaker/components/ManageFundForm.js +1 -1
  82. package/lib/module/MarketMaker/components/ManageFundForm.js.map +1 -1
  83. package/lib/module/MarketMaker/components/MarketSelector.js +19 -17
  84. package/lib/module/MarketMaker/components/MarketSelector.js.map +1 -1
  85. package/lib/module/MarketMaker/components/OrderForm.js +7 -4
  86. package/lib/module/MarketMaker/components/OrderForm.js.map +1 -1
  87. package/lib/module/MarketMaker/index.js +298 -223
  88. package/lib/module/MarketMaker/index.js.map +1 -1
  89. package/lib/module/Poll/components/CampaignHeader.js +19 -14
  90. package/lib/module/Poll/components/CampaignHeader.js.map +1 -1
  91. package/lib/module/Poll/components/CampaignLeaderboard.js +59 -57
  92. package/lib/module/Poll/components/CampaignLeaderboard.js.map +1 -1
  93. package/lib/module/Poll/components/CampaignProgressBar.js +17 -15
  94. package/lib/module/Poll/components/CampaignProgressBar.js.map +1 -1
  95. package/lib/module/Poll/components/CampaignResult.js +17 -15
  96. package/lib/module/Poll/components/CampaignResult.js.map +1 -1
  97. package/lib/module/Poll/components/PollCard.js +238 -216
  98. package/lib/module/Poll/components/PollCard.js.map +1 -1
  99. package/lib/module/Poll/components/PollOptionCard.js +24 -20
  100. package/lib/module/Poll/components/PollOptionCard.js.map +1 -1
  101. package/lib/module/Poll/components/PollQuestionsSection.js +21 -15
  102. package/lib/module/Poll/components/PollQuestionsSection.js.map +1 -1
  103. package/lib/module/Poll/components/PollSelectCard.js +33 -30
  104. package/lib/module/Poll/components/PollSelectCard.js.map +1 -1
  105. package/lib/module/Poll/index.js +97 -92
  106. package/lib/module/Poll/index.js.map +1 -1
  107. package/lib/module/Squares/index.js +28 -9
  108. package/lib/module/Squares/index.js.map +1 -1
  109. package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  110. package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts +2 -1
  111. package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  112. package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +3 -1
  113. package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
  114. package/lib/typescript/lib/commonjs/Competition/index.d.ts +2 -1
  115. package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
  116. package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts +2 -1
  117. package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
  118. package/lib/typescript/lib/commonjs/Components/SearchBox.d.ts +2 -1
  119. package/lib/typescript/lib/commonjs/Components/SearchBox.d.ts.map +1 -1
  120. package/lib/typescript/lib/commonjs/MarketComponents/components/ContestOrderStatsCard.d.ts +2 -1
  121. package/lib/typescript/lib/commonjs/MarketComponents/components/ContestOrderStatsCard.d.ts.map +1 -1
  122. package/lib/typescript/lib/commonjs/MarketMaker/components/Contest.d.ts.map +1 -1
  123. package/lib/typescript/lib/commonjs/MarketMaker/components/ContestSelector.d.ts +1 -2
  124. package/lib/typescript/lib/commonjs/MarketMaker/components/ContestSelector.d.ts.map +1 -1
  125. package/lib/typescript/lib/commonjs/MarketMaker/components/Dashboard.d.ts +1 -2
  126. package/lib/typescript/lib/commonjs/MarketMaker/components/Dashboard.d.ts.map +1 -1
  127. package/lib/typescript/lib/commonjs/MarketMaker/components/FundOwnershipList.d.ts.map +1 -1
  128. package/lib/typescript/lib/commonjs/MarketMaker/components/FundSelector.d.ts +1 -2
  129. package/lib/typescript/lib/commonjs/MarketMaker/components/FundSelector.d.ts.map +1 -1
  130. package/lib/typescript/lib/commonjs/MarketMaker/components/FundingRequestList.d.ts.map +1 -1
  131. package/lib/typescript/lib/commonjs/MarketMaker/components/MarketSelector.d.ts +1 -2
  132. package/lib/typescript/lib/commonjs/MarketMaker/components/MarketSelector.d.ts.map +1 -1
  133. package/lib/typescript/lib/commonjs/MarketMaker/components/OrderForm.d.ts.map +1 -1
  134. package/lib/typescript/lib/commonjs/MarketMaker/index.d.ts.map +1 -1
  135. package/lib/typescript/lib/commonjs/Poll/components/CampaignHeader.d.ts.map +1 -1
  136. package/lib/typescript/lib/commonjs/Poll/components/CampaignLeaderboard.d.ts +1 -2
  137. package/lib/typescript/lib/commonjs/Poll/components/CampaignLeaderboard.d.ts.map +1 -1
  138. package/lib/typescript/lib/commonjs/Poll/components/CampaignProgressBar.d.ts.map +1 -1
  139. package/lib/typescript/lib/commonjs/Poll/components/CampaignResult.d.ts.map +1 -1
  140. package/lib/typescript/lib/commonjs/Poll/components/PollCard.d.ts +2 -1
  141. package/lib/typescript/lib/commonjs/Poll/components/PollCard.d.ts.map +1 -1
  142. package/lib/typescript/lib/commonjs/Poll/components/PollOptionCard.d.ts.map +1 -1
  143. package/lib/typescript/lib/commonjs/Poll/components/PollQuestionsSection.d.ts.map +1 -1
  144. package/lib/typescript/lib/commonjs/Poll/components/PollSelectCard.d.ts +1 -2
  145. package/lib/typescript/lib/commonjs/Poll/components/PollSelectCard.d.ts.map +1 -1
  146. package/lib/typescript/lib/commonjs/Poll/index.d.ts +1 -2
  147. package/lib/typescript/lib/commonjs/Poll/index.d.ts.map +1 -1
  148. package/lib/typescript/lib/commonjs/Squares/index.d.ts +2 -1
  149. package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
  150. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  151. package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +2 -1
  152. package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  153. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +3 -1
  154. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
  155. package/lib/typescript/lib/module/Competition/index.d.ts +2 -1
  156. package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
  157. package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts +2 -1
  158. package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
  159. package/lib/typescript/lib/module/Components/SearchBox.d.ts +2 -1
  160. package/lib/typescript/lib/module/Components/SearchBox.d.ts.map +1 -1
  161. package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
  162. package/lib/typescript/lib/module/MarketComponents/components/ContestOrderStatsCard.d.ts +2 -1
  163. package/lib/typescript/lib/module/MarketComponents/components/ContestOrderStatsCard.d.ts.map +1 -1
  164. package/lib/typescript/lib/module/MarketMaker/components/Contest.d.ts +1 -2
  165. package/lib/typescript/lib/module/MarketMaker/components/Contest.d.ts.map +1 -1
  166. package/lib/typescript/lib/module/MarketMaker/components/ContestSelector.d.ts +2 -4
  167. package/lib/typescript/lib/module/MarketMaker/components/ContestSelector.d.ts.map +1 -1
  168. package/lib/typescript/lib/module/MarketMaker/components/Dashboard.d.ts +2 -4
  169. package/lib/typescript/lib/module/MarketMaker/components/Dashboard.d.ts.map +1 -1
  170. package/lib/typescript/lib/module/MarketMaker/components/FundOwnershipList.d.ts +1 -2
  171. package/lib/typescript/lib/module/MarketMaker/components/FundOwnershipList.d.ts.map +1 -1
  172. package/lib/typescript/lib/module/MarketMaker/components/FundSelector.d.ts +2 -4
  173. package/lib/typescript/lib/module/MarketMaker/components/FundSelector.d.ts.map +1 -1
  174. package/lib/typescript/lib/module/MarketMaker/components/FundingRequestList.d.ts +1 -2
  175. package/lib/typescript/lib/module/MarketMaker/components/FundingRequestList.d.ts.map +1 -1
  176. package/lib/typescript/lib/module/MarketMaker/components/MarketSelector.d.ts +2 -4
  177. package/lib/typescript/lib/module/MarketMaker/components/MarketSelector.d.ts.map +1 -1
  178. package/lib/typescript/lib/module/MarketMaker/components/OrderForm.d.ts.map +1 -1
  179. package/lib/typescript/lib/module/MarketMaker/index.d.ts +1 -2
  180. package/lib/typescript/lib/module/MarketMaker/index.d.ts.map +1 -1
  181. package/lib/typescript/lib/module/Poll/components/CampaignHeader.d.ts +1 -2
  182. package/lib/typescript/lib/module/Poll/components/CampaignHeader.d.ts.map +1 -1
  183. package/lib/typescript/lib/module/Poll/components/CampaignLeaderboard.d.ts +2 -4
  184. package/lib/typescript/lib/module/Poll/components/CampaignLeaderboard.d.ts.map +1 -1
  185. package/lib/typescript/lib/module/Poll/components/CampaignProgressBar.d.ts +1 -2
  186. package/lib/typescript/lib/module/Poll/components/CampaignProgressBar.d.ts.map +1 -1
  187. package/lib/typescript/lib/module/Poll/components/CampaignResult.d.ts +1 -2
  188. package/lib/typescript/lib/module/Poll/components/CampaignResult.d.ts.map +1 -1
  189. package/lib/typescript/lib/module/Poll/components/PollCard.d.ts +3 -5
  190. package/lib/typescript/lib/module/Poll/components/PollCard.d.ts.map +1 -1
  191. package/lib/typescript/lib/module/Poll/components/PollOptionCard.d.ts +1 -2
  192. package/lib/typescript/lib/module/Poll/components/PollOptionCard.d.ts.map +1 -1
  193. package/lib/typescript/lib/module/Poll/components/PollQuestionsSection.d.ts +1 -2
  194. package/lib/typescript/lib/module/Poll/components/PollQuestionsSection.d.ts.map +1 -1
  195. package/lib/typescript/lib/module/Poll/components/PollSelectCard.d.ts +2 -4
  196. package/lib/typescript/lib/module/Poll/components/PollSelectCard.d.ts.map +1 -1
  197. package/lib/typescript/lib/module/Poll/index.d.ts +2 -4
  198. package/lib/typescript/lib/module/Poll/index.d.ts.map +1 -1
  199. package/lib/typescript/lib/module/Squares/index.d.ts +2 -1
  200. package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
  201. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  202. package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts +2 -1
  203. package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
  204. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +3 -1
  205. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
  206. package/lib/typescript/src/Competition/index.d.ts +2 -1
  207. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  208. package/lib/typescript/src/Components/ConfirmationModal.d.ts +2 -1
  209. package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
  210. package/lib/typescript/src/Components/SearchBox.d.ts +2 -1
  211. package/lib/typescript/src/Components/SearchBox.d.ts.map +1 -1
  212. package/lib/typescript/src/MarketComponents/components/ContestOrderStatsCard.d.ts +2 -1
  213. package/lib/typescript/src/MarketComponents/components/ContestOrderStatsCard.d.ts.map +1 -1
  214. package/lib/typescript/src/MarketMaker/components/Contest.d.ts.map +1 -1
  215. package/lib/typescript/src/MarketMaker/components/ContestSelector.d.ts +1 -1
  216. package/lib/typescript/src/MarketMaker/components/ContestSelector.d.ts.map +1 -1
  217. package/lib/typescript/src/MarketMaker/components/Dashboard.d.ts +1 -1
  218. package/lib/typescript/src/MarketMaker/components/Dashboard.d.ts.map +1 -1
  219. package/lib/typescript/src/MarketMaker/components/FundOwnershipList.d.ts.map +1 -1
  220. package/lib/typescript/src/MarketMaker/components/FundSelector.d.ts +1 -2
  221. package/lib/typescript/src/MarketMaker/components/FundSelector.d.ts.map +1 -1
  222. package/lib/typescript/src/MarketMaker/components/FundingRequestList.d.ts.map +1 -1
  223. package/lib/typescript/src/MarketMaker/components/ManageFundForm.d.ts +1 -1
  224. package/lib/typescript/src/MarketMaker/components/ManageFundForm.d.ts.map +1 -1
  225. package/lib/typescript/src/MarketMaker/components/MarketSelector.d.ts +1 -2
  226. package/lib/typescript/src/MarketMaker/components/MarketSelector.d.ts.map +1 -1
  227. package/lib/typescript/src/MarketMaker/components/OrderForm.d.ts +1 -1
  228. package/lib/typescript/src/MarketMaker/components/OrderForm.d.ts.map +1 -1
  229. package/lib/typescript/src/MarketMaker/index.d.ts.map +1 -1
  230. package/lib/typescript/src/Poll/components/CampaignHeader.d.ts.map +1 -1
  231. package/lib/typescript/src/Poll/components/CampaignLeaderboard.d.ts +1 -2
  232. package/lib/typescript/src/Poll/components/CampaignLeaderboard.d.ts.map +1 -1
  233. package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts.map +1 -1
  234. package/lib/typescript/src/Poll/components/CampaignResult.d.ts.map +1 -1
  235. package/lib/typescript/src/Poll/components/PollCard.d.ts +3 -2
  236. package/lib/typescript/src/Poll/components/PollCard.d.ts.map +1 -1
  237. package/lib/typescript/src/Poll/components/PollOptionCard.d.ts.map +1 -1
  238. package/lib/typescript/src/Poll/components/PollQuestionsSection.d.ts.map +1 -1
  239. package/lib/typescript/src/Poll/components/PollSelectCard.d.ts +1 -1
  240. package/lib/typescript/src/Poll/components/PollSelectCard.d.ts.map +1 -1
  241. package/lib/typescript/src/Poll/index.d.ts +1 -2
  242. package/lib/typescript/src/Poll/index.d.ts.map +1 -1
  243. package/lib/typescript/src/Squares/index.d.ts +2 -1
  244. package/lib/typescript/src/Squares/index.d.ts.map +1 -1
  245. package/package.json +1 -1
  246. package/src/Competition/components/CompetitionLeaderboard.tsx +10 -21
  247. package/src/Competition/components/EnterCompetitionPrompt.tsx +98 -59
  248. package/src/Competition/components/WagerPickForm.tsx +4 -2
  249. package/src/Competition/index.tsx +33 -25
  250. package/src/Components/ConfirmationModal.tsx +5 -4
  251. package/src/Components/SearchBox.tsx +4 -2
  252. package/src/MarketComponents/components/ContestOrderStatsCard.tsx +3 -1
  253. package/src/MarketMaker/components/Contest.tsx +21 -21
  254. package/src/MarketMaker/components/ContestSelector.tsx +31 -22
  255. package/src/MarketMaker/components/Dashboard.tsx +9 -24
  256. package/src/MarketMaker/components/FundOwnershipList.tsx +13 -15
  257. package/src/MarketMaker/components/FundSelector.tsx +21 -23
  258. package/src/MarketMaker/components/FundingRequestList.tsx +14 -20
  259. package/src/MarketMaker/components/ManageFundForm.tsx +2 -2
  260. package/src/MarketMaker/components/MarketSelector.tsx +14 -16
  261. package/src/MarketMaker/components/OrderForm.tsx +6 -5
  262. package/src/MarketMaker/index.tsx +166 -94
  263. package/src/Poll/components/CampaignHeader.tsx +13 -12
  264. package/src/Poll/components/CampaignLeaderboard.tsx +41 -52
  265. package/src/Poll/components/CampaignProgressBar.tsx +17 -15
  266. package/src/Poll/components/CampaignResult.tsx +13 -13
  267. package/src/Poll/components/PollCard.tsx +129 -118
  268. package/src/Poll/components/PollOptionCard.tsx +20 -21
  269. package/src/Poll/components/PollQuestionsSection.tsx +15 -14
  270. package/src/Poll/components/PollSelectCard.tsx +47 -48
  271. package/src/Poll/index.tsx +83 -73
  272. package/src/Squares/index.tsx +29 -19
  273. package/lib/commonjs/Poll/components/CampaignPlay.js +0 -472
  274. package/lib/commonjs/Poll/components/CampaignPlay.js.map +0 -1
  275. package/lib/module/Poll/components/CampaignPlay.js +0 -463
  276. package/lib/module/Poll/components/CampaignPlay.js.map +0 -1
  277. package/lib/typescript/lib/commonjs/Poll/components/CampaignPlay.d.ts +0 -12
  278. package/lib/typescript/lib/commonjs/Poll/components/CampaignPlay.d.ts.map +0 -1
  279. package/lib/typescript/lib/module/Poll/components/CampaignPlay.d.ts +0 -13
  280. package/lib/typescript/lib/module/Poll/components/CampaignPlay.d.ts.map +0 -1
  281. package/lib/typescript/src/Poll/components/CampaignPlay.d.ts +0 -14
  282. package/lib/typescript/src/Poll/components/CampaignPlay.d.ts.map +0 -1
  283. package/src/Poll/components/CampaignPlay.tsx +0 -335
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { TouchableOpacity, View } from "react-native"
3
2
  import type { PollCampaignProps, PollOptionProps, PollProps, PollResponseProps } from "../../types"
4
- import Colors from "../../constants/colors"
5
- import { Icons, Text } from "../../Components"
3
+ import { Icons } from "../../Components"
4
+ import { useColors } from '../../constants/useColors';
5
+ import { Button, Text, View } from '../../Components/Themed';
6
6
 
7
7
  type PollSelectCardProps = {
8
8
  selected?:boolean,
@@ -15,29 +15,28 @@ type PollSelectCardProps = {
15
15
  onSelect:(poll:PollProps) => void
16
16
  }
17
17
 
18
- const PollSelectCard = ({ poll, disabled, selected, poll_campaign, poll_response, show_response, response_option, onSelect }:PollSelectCardProps) => {
19
-
18
+ const PollSelectCard = ({ poll, disabled, poll_campaign, poll_response, show_response, response_option, onSelect }:PollSelectCardProps) => {
19
+ const Colors = useColors();
20
20
  const getResultColor = () => {
21
21
  switch(poll_response?.result_ind){
22
- case 'win': return Colors.utility.success
23
- case 'lose': return Colors.utility.error
24
- case 'draw': return Colors.utility.warning
25
- default: return Colors.brand.slate
22
+ case 'win': return Colors.text.success
23
+ case 'lose': return Colors.text.error
24
+ case 'draw': return Colors.text.warning
25
+ default: return Colors.text.h1
26
26
  }
27
27
  }
28
28
 
29
29
  const getStatusColor = () => {
30
30
  switch(poll.status) {
31
- case 'closed': return Colors.highlights.highlight300Faded
32
- case 'active': return Colors.highlights.highlight400Faded
33
- default: return Colors.highlights.highlight500Faded
31
+ case 'closed': return Colors.absolutes.highlights.highlight300Faded
32
+ case 'active': return Colors.absolutes.highlights.highlight400Faded
33
+ default: return Colors.absolutes.highlights.highlight500Faded
34
34
  }
35
35
  }
36
36
 
37
37
 
38
38
  const getResultIcon = () => {
39
39
  let color = getResultColor()
40
- console.log(poll_response)
41
40
  switch(poll_response?.result_ind){
42
41
  case 'win':
43
42
  return <Icons.CheckIcon color={color} size={16} />
@@ -56,51 +55,51 @@ const PollSelectCard = ({ poll, disabled, selected, poll_campaign, poll_response
56
55
  //let color = getResultColor()
57
56
  switch(poll.status){
58
57
  case 'closed':
59
- return <Icons.LockClosedIcon color={Colors.brand.midnight} size={14} />
58
+ return <Icons.LockClosedIcon color={Colors.text.h1} size={14} />
60
59
  case 'active':
61
- return <Icons.InProgressIcon color={Colors.brand.midnight} size={14} />
60
+ return <Icons.InProgressIcon color={Colors.text.h1} size={14} />
62
61
  default:
63
- return <Icons.PausedIcon color={Colors.brand.midnight} size={14} />
62
+ return <Icons.PausedIcon color={Colors.text.h1} size={14} />
64
63
  }
65
64
  }
66
65
 
67
66
  return (
68
- <TouchableOpacity disabled={disabled} style={{ padding:10, borderRadius:22, backgroundColor:selected?Colors.highlights.highlight500Faded:undefined, flexDirection:'row' }} onPress={() => onSelect(poll)}>
69
- <View style={{ height:20, width:20, borderRadius:100, backgroundColor:Colors.shades.white, marginRight:10, justifyContent:'center' }}>
70
- <Text size={12} color={Colors.brand.midnight} weight='bold' textAlign='center'>{poll.priority}</Text>
71
- </View>
72
- <View style={{ flex:1 }}>
73
- {poll_campaign.campaign_type == 'trivia' && !poll_response && poll.status != 'closed' ?
74
- <Text size={14} color={Colors.brand.midnight} weight='bold'>{poll.hidden_clue?`Hint: ${poll.hidden_clue}`:`Question Hidden`}</Text>
75
- :
76
- <Text size={14} color={Colors.brand.midnight} weight='bold'>{poll.poll_question}</Text>
77
- }
78
- {poll.status == 'closed' || show_response ?
79
- <View style={{ marginTop:10, flexDirection:'row' }}>
80
- {response_option && poll.poll_type == 'select' ?
81
- <Text style={{ flex:1 }} size={12} color={Colors.brand.slate}>My Answer: <Text size={12} color={Colors.brand.midnight} weight='semibold'>{response_option.option_name}</Text></Text>
82
- : response_option && poll.poll_type == 'input' ?
83
- <Text style={{ flex:1 }} size={12} color={Colors.brand.slate}>My Answer: <Text size={12} color={Colors.brand.midnight} weight='semibold'>{poll_response?.input_value}</Text></Text>
84
- :poll.status == 'closed' || poll_response?.timed_out ?
85
- <Text style={{ flex:1 }} size={12} color={Colors.brand.midnight} weight='light'>TIMED OUT</Text>
86
- :<></>}
87
- <View style={{ marginLeft:5 }}>
88
- {getResultIcon()}
89
- </View>
67
+ <Button transparent disabled={disabled} style={{ padding:10, borderRadius:22, flexDirection:'row' }} onPress={() => onSelect(poll)}>
68
+ <View transparent style={{ height:20, width:20, borderRadius:100, marginRight:10, justifyContent:'center' }}>
69
+ <Text size={12} color={Colors.text.h1} weight='bold' textAlign='center'>{poll.priority}</Text>
90
70
  </View>
91
- :
92
- <View style={{flexDirection:'row', alignItems:'center'}}>
93
- <Text style={{ flex:1 }} size={12} color={Colors.brand.midnight} weight='light'>{poll.poll_type == 'select' ? 'Multiple Choice': 'Type Answer'}</Text>
94
- <View style={{ flexDirection:'row', alignItems:'center', padding:10, backgroundColor:getStatusColor(), borderRadius:22 }}>
95
- {getStatusIcon()}
96
- {poll.seconds_allowed && poll.status != 'closed' ?
97
- <Text style={{ marginLeft:5 }} size={12} color={Colors.brand.midnight} weight='bold'>{poll.seconds_allowed} Sec</Text>
71
+ <View transparent style={{ flex:1 }}>
72
+ {poll_campaign.campaign_type == 'trivia' && !poll_response && poll.status != 'closed' ?
73
+ <Text size={14} color={Colors.text.h1} weight='bold'>{poll.hidden_clue?`Hint: ${poll.hidden_clue}`:`Question Hidden`}</Text>
74
+ :
75
+ <Text size={14} color={Colors.text.h1} weight='bold'>{poll.poll_question}</Text>
76
+ }
77
+ {poll.status == 'closed' || show_response ?
78
+ <View transparent style={{ marginTop:10, flexDirection:'row' }}>
79
+ {response_option && poll.poll_type == 'select' ?
80
+ <Text style={{ flex:1 }} size={12} color={Colors.text.h1}>My Answer: <Text size={12} color={Colors.text.h1} theme='h2'>{response_option.option_name}</Text></Text>
81
+ : response_option && poll.poll_type == 'input' ?
82
+ <Text style={{ flex:1 }} size={12} color={Colors.text.h1}>My Answer: <Text size={12} color={Colors.text.h1} theme='h2'>{poll_response?.input_value}</Text></Text>
83
+ :poll.status == 'closed' || poll_response?.timed_out ?
84
+ <Text style={{ flex:1 }} size={12} color={Colors.text.h1} weight='light'>TIMED OUT</Text>
98
85
  :<></>}
86
+ <View style={{ marginLeft:5 }}>
87
+ {getResultIcon()}
88
+ </View>
99
89
  </View>
90
+ :
91
+ <View transparent style={{flexDirection:'row', alignItems:'center'}}>
92
+ <Text style={{ flex:1 }} size={12} color={Colors.text.h1} weight='light'>{poll.poll_type == 'select' ? 'Multiple Choice': 'Type Answer'}</Text>
93
+ <View transparent style={{ flexDirection:'row', alignItems:'center', padding:10, backgroundColor:getStatusColor(), borderRadius:22 }}>
94
+ {getStatusIcon()}
95
+ {poll.seconds_allowed && poll.status != 'closed' ?
96
+ <Text style={{ marginLeft:5 }} size={12} color={Colors.text.h1} weight='bold'>{poll.seconds_allowed} Sec</Text>
97
+ :<></>}
98
+ </View>
99
+ </View>
100
+ }
100
101
  </View>
101
- }
102
- </View>
103
- </TouchableOpacity>
102
+ </Button>
104
103
  )
105
104
  }
106
105
 
@@ -1,33 +1,31 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { PollApi, PollCampaignApi, PollResponseApi } from './api';
3
- import { View, ScrollView, ActivityIndicator } from 'react-native';
3
+ import { FlatList, Modal, useWindowDimensions, Alert } from 'react-native';
4
4
  import type { BEEventProps, PollCampaignGoalProps, PollCampaignProps, PollOptionProps, PollProps, PollResponseProps } from '../types';
5
- import Colors from '../constants/colors';
6
5
  import CampaignHeader from './components/CampaignHeader';
7
6
  import CampaignProgressBar from './components/CampaignProgressBar';
8
7
  import PollQuestionsSection from './components/PollQuestionsSection';
9
- import { Spring } from '../Components';
10
- //import PollCard from './components/PollCard';
11
8
  import CampaignResult from './components/CampaignResult';
12
9
  import CampaignLeaderboard from './components/CampaignLeaderboard';
13
10
  import PollCard from './components/PollCard';
14
11
  import SocketManager from '../Socket';
12
+ import { View } from '../Components/Themed';
15
13
 
16
14
  type PollCampaignModuleProps = {
17
15
  poll_campaign_id:string,
18
16
  poll_id?:string,
19
17
  player_id?:string,
20
18
  distinct_id:string,
21
- height:number,
22
19
  onEvent?:(be_event:BEEventProps) => void,
23
20
  onRequestAuthenticate: (auth_strategy_id?:string, company_id?:string) => void,
24
21
  onSharePollCampaign: (poll_campaign:PollCampaignProps) => void,
25
22
  onComplete:() => void
26
23
  }
27
- const PollCampaign = ({ height, distinct_id, poll_campaign_id, player_id, onRequestAuthenticate }: PollCampaignModuleProps ) => {
24
+
25
+ const sections = ['header', 'progress', 'results','questions']
26
+ const PollCampaign = ({ distinct_id, poll_campaign_id, player_id, onRequestAuthenticate }: PollCampaignModuleProps ) => {
28
27
  const [ needs_reload, setNeedsReload ] = useState(false);
29
28
  const [ socket_polls, setSocketPolls ] = useState<PollProps[]>([]);
30
- //const [ socket_poll_options, setSocketPollOptions ] = useState<PollOptionProps[]>([]);
31
29
  const [ socket_campaign, setSocketCampaign ] = useState<PollCampaignProps|undefined>(undefined);
32
30
  const [ module_data, setModuleData ] = useState<{
33
31
  loading: boolean,
@@ -49,10 +47,10 @@ const PollCampaign = ({ height, distinct_id, poll_campaign_id, player_id, onRequ
49
47
  poll_responses: []
50
48
  });
51
49
  const { poll_responses, action_loading } = my_data;
52
- const { poll_campaign, polls, active_poll_id } = module_data;
50
+ const { loading, poll_campaign, polls, active_poll_id } = module_data;
53
51
  const active_response = poll_responses.find(r => r.poll_id == active_poll_id);
54
- const active_polls = polls.filter(p => p.status != 'inactive').sort((a,b) => a.priority - b.priority);
55
-
52
+ const active_polls = polls.filter(p => !['inactive'].includes(p.status)).sort((a,b) => a.priority - b.priority);
53
+ const { width } = useWindowDimensions();
56
54
  useEffect(() => {
57
55
  PollCampaignApi.setEnvironment();
58
56
  getDataFromServer();
@@ -75,7 +73,6 @@ const PollCampaign = ({ height, distinct_id, poll_campaign_id, player_id, onRequ
75
73
  },[socket_campaign]);
76
74
 
77
75
  const getDataFromServer = async() => {
78
- console.log('RELOADING DATA!!!')
79
76
  setModuleData({ ...module_data, loading:true });
80
77
  const pc = await PollCampaignApi.getPollCampaignById(poll_campaign_id);
81
78
  const ps_resp = await PollApi.getPollsByCampaignId(poll_campaign_id);
@@ -122,89 +119,102 @@ const PollCampaign = ({ height, distinct_id, poll_campaign_id, player_id, onRequ
122
119
  setModuleData({ ...module_data, active_poll_id: new_poll.poll_id })
123
120
  }
124
121
 
125
- if(!poll_campaign){
126
- return (
127
- <View style={{ flex:1 }}>
128
- <ActivityIndicator
129
- style={{ padding:20, alignSelf:'center' }}
130
- size='large'
131
- color={Colors.brand.midnight}
132
- />
133
- </View>
134
- )
135
- }
136
-
137
- return (
138
- <View style={{ backgroundColor:Colors.shades.white, height }}>
139
- <CampaignHeader
140
- poll_campaign={poll_campaign}
141
- onSharePollCampaign={(pc) => console.log(pc)}
142
- />
143
- <ScrollView style={{ flex:1 }}>
144
- <View style={{ backgroundColor:Colors.shades.shade100 }}>
145
- <CampaignProgressBar
146
- poll_campaign={poll_campaign}
147
- polls={active_polls}
148
- active_poll='0'
149
- onPollSelect={(p) => console.log(p)}
150
- poll_responses={poll_responses}
151
- />
152
- </View>
153
- <View nativeID='leaderboard'>
154
- <CampaignResult
122
+ const renderSections = (data:{ item:string, index:number }) => {
123
+ switch(data.item){
124
+ case 'header':
125
+ if(!poll_campaign){ return <></> }
126
+ return (
127
+ <CampaignHeader
155
128
  poll_campaign={poll_campaign}
156
- onShowFullLeaderboard={() => setFullLeaderboard(true)}
129
+ onSharePollCampaign={(pc) => console.log(pc)}
157
130
  />
158
- </View>
159
- <View nativeID='poll_questions'>
131
+ )
132
+ case 'progress':
133
+ if(!poll_campaign){ return <></> }
134
+ return (
135
+ <View type='header' style={{ padding:10 }}>
136
+ <CampaignProgressBar
137
+ poll_campaign={poll_campaign}
138
+ polls={active_polls}
139
+ active_poll={active_poll_id ?? '0'}
140
+ onPollSelect={(p) => console.log(p)}
141
+ poll_responses={poll_responses}
142
+ />
143
+ </View>
144
+ )
145
+ case 'results':
146
+ if(!poll_campaign){ return <></> }
147
+ return (
148
+ <View style={{ padding:10 }}>
149
+ <CampaignResult
150
+ poll_campaign={poll_campaign}
151
+ onShowFullLeaderboard={() => setFullLeaderboard(true)}
152
+ />
153
+ </View>
154
+ )
155
+ case 'questions':
156
+ if(!poll_campaign){ return <></> }
157
+ return (
158
+ <View style={{ padding:10 }}>
160
159
  <PollQuestionsSection
161
160
  poll_campaign={poll_campaign}
162
161
  polls={active_polls}
163
162
  poll_responses={poll_responses}
164
163
  onSelectPoll={(p) => {
165
164
  if(!player_id){ return onRequestAuthenticate(poll_campaign.auth_strategy_id, poll_campaign.company_id) }
166
- if(p.status == 'paused'){ return alert('This question is currently paused. Please open when it becomes active') }
165
+ if(['paused','pending','inactive'].includes(p.status)){ return Alert.alert('This question is not active. Please open when it becomes active') }
167
166
  setModuleData({ ...module_data, active_poll_id: p.poll_id })
168
167
  }}
169
168
  />
170
- </View>
171
- </ScrollView>
172
- {active_poll_id ?
173
- <View style={{ position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'flex-end', backgroundColor:Colors.shades.black_faded }}>
174
- <Spring
175
- slide='vertical'
176
- to={0}
177
- from={500}
178
- style={{ maxHeight:height }}
169
+ </View>
170
+ )
171
+ default: return <></>
172
+ }
173
+ }
174
+
175
+
176
+
177
+ return (
178
+ <View style={{ flex:1 }}>
179
+ <FlatList
180
+ data={sections}
181
+ refreshing={loading}
182
+ onRefresh={() => getDataFromServer()}
183
+ key='poll_sections'
184
+ keyExtractor={item => item}
185
+ renderItem={renderSections}
186
+ />
187
+ <Modal
188
+ style={{ flex:1 }}
189
+ animationType='slide'
190
+ transparent
191
+ visible={active_poll_id ? true : false}
179
192
  >
193
+ <View type='blur' style={{ flex:1, justifyContent:'flex-end', padding:12 }}>
180
194
  <PollCard
181
195
  poll_id={active_poll_id}
182
196
  action_loading={action_loading}
183
197
  poll_response={active_response}
198
+ width={width}
184
199
  onSkip={() => handleNext()}
185
200
  onCancel={() => setModuleData({ ...module_data, active_poll_id: undefined })}
186
201
  onResponse={(response) => handleSubmitResponse(response)}
187
202
  onShowAuthenticate={() => console.log('authenticate!!')}
188
203
  />
189
- </Spring>
190
- </View>
191
- :<></>}
192
- {full_leaderboard ?
193
- <View style={{ position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'flex-end', backgroundColor:Colors.shades.black_faded }}>
194
- <Spring
195
- slide='vertical'
196
- to={0}
197
- from={500}
198
- style={{ maxHeight:height }}
199
- >
200
- <CampaignLeaderboard
201
- height={height}
202
- poll_campaign={poll_campaign}
203
- view_mode='full'
204
- onClose={() => setFullLeaderboard(false)}
205
- />
206
- </Spring>
207
- </View>
204
+ </View>
205
+ </Modal>
206
+ {full_leaderboard && poll_campaign ?
207
+ <Modal
208
+ transparent
209
+ visible={full_leaderboard?true:false}
210
+ style={{ flex:1 }}
211
+ >
212
+ <CampaignLeaderboard
213
+ poll_campaign={poll_campaign}
214
+ view_mode='full'
215
+ onClose={() => setFullLeaderboard(false)}
216
+ />
217
+ </Modal>
208
218
  :<></>}
209
219
  <SocketManager
210
220
  onConnect={() => {
@@ -23,6 +23,7 @@ import { useColors } from "../constants/useColors";
23
23
  type SquaresModuleProps = {
24
24
  player_id?:string,
25
25
  distinct_id:string,
26
+ view_mode:'desktop'|'mobile',
26
27
  sq_comp_id:string,
27
28
  insets?: { top:number, bottom:number },
28
29
  onRequestAuthenticate: (auth_strategy_id?:string) => void,
@@ -33,7 +34,7 @@ type SquaresModuleProps = {
33
34
 
34
35
  const squares_sections = ['header', 'toggle', 'event', 'board', 'board_stats', 'my_stats', 'results', 'my_squares', 'winners','hidden_prizes','details', 'owners']
35
36
 
36
- const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAuthenticate, onShareCompetition, onPlayerSelect }:SquaresModuleProps) => {
37
+ const SquaresModule = ({ sq_comp_id, view_mode, insets, player_id, distinct_id, onRequestAuthenticate, onShareCompetition, onPlayerSelect }:SquaresModuleProps) => {
37
38
  const C = useColors();
38
39
  const [ active_tab, setActiveTab ] = useState('board');
39
40
  const [ needs_reload, setNeedsReload ] = useState(false);
@@ -354,7 +355,7 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
354
355
  )
355
356
  case 'toggle':
356
357
  return (
357
- <View style={{ padding:8 }}>
358
+ <View style={{ padding:8, width:view_mode == 'desktop'?800: undefined, alignSelf:view_mode == 'desktop'?'center':undefined }}>
358
359
  <Toggle
359
360
  options={toggle_options}
360
361
  active_toggle_color={C.text.action}
@@ -377,13 +378,14 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
377
378
  case 'board_stats':
378
379
  if(!squares_competition){ return <></> }
379
380
  return (
380
- <BoardStats
381
- hidden={active_tab == 'stats' ? false : true}
382
- disable_collapse
383
- squares_competition={squares_competition}
384
- squares={squares}
385
- player_squares={player_squares}
386
- />
381
+ <BoardStats
382
+ hidden={active_tab == 'stats' ? false : true}
383
+ disable_collapse
384
+ squares_competition={squares_competition}
385
+ squares={squares}
386
+ player_squares={player_squares}
387
+ />
388
+
387
389
  )
388
390
  case 'my_stats':
389
391
  if(!squares_competition){ return <></> }
@@ -421,6 +423,8 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
421
423
  )
422
424
  case 'hidden_prizes':
423
425
  return (
426
+ <View style={{ padding:10 }}>
427
+
424
428
  <PrizeCard
425
429
  square_prizes={square_prizes}
426
430
  squares={squares}
@@ -429,6 +433,7 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
429
433
  players={players}
430
434
  event={event}
431
435
  />
436
+ </View>
432
437
  )
433
438
  case 'details':
434
439
  if(!squares_competition){ return <></> }
@@ -440,6 +445,7 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
440
445
  squares_payout_type={squares_payout_type}
441
446
  squares_type={squares_type}
442
447
  />
448
+
443
449
  )
444
450
  case 'owners':
445
451
  return (
@@ -453,7 +459,7 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
453
459
  case 'board':
454
460
  if(!squares_competition){ return <></> }
455
461
  return (
456
- <View style={{ paddingBottom:20 }}>
462
+ <View style={{ alignItems:view_mode == 'desktop' ? 'center': undefined }}>
457
463
  <SquaresBoard
458
464
  player_id={player_id}
459
465
  hidden={active_tab == 'board' ? false : true}
@@ -476,6 +482,8 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
476
482
  case 'my_squares':
477
483
  if(my_squares.length == 0){ return <></> }
478
484
  return (
485
+ <View style={{ padding:10 }}>
486
+
479
487
  <MySquaresCard
480
488
  player_squares={my_squares}
481
489
  hidden={active_tab == 'my_squares' ? false : true}
@@ -488,6 +496,7 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
488
496
  comp_status={comp_status}
489
497
  onSquareOffer={handleSquareOffer}
490
498
  />
499
+ </View>
491
500
  )
492
501
  default: return <></>
493
502
  }
@@ -507,13 +516,12 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
507
516
  const { width, height } = ev.nativeEvent.layout
508
517
  setModuleSize({ width, height })
509
518
  }}>
510
- <FlatList
511
- key='squares_section'
512
- data={squares_sections}
513
- renderItem={renderSections}
514
- keyExtractor={(item) => item}
515
- />
516
-
519
+ <FlatList
520
+ key='squares_section'
521
+ data={squares_sections}
522
+ renderItem={renderSections}
523
+ keyExtractor={(item) => item}
524
+ />
517
525
  {square_offers.length > 0 ?
518
526
  <SquareOffersCard
519
527
  player_squares={player_squares}
@@ -552,9 +560,10 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
552
560
  <Modal
553
561
  transparent
554
562
  visible={bid_form_expanded}
555
- animationType='slide'
563
+ animationType={view_mode=='desktop' ? 'fade' : 'slide'}
556
564
  >
557
- <View type='blur' style={{ flex:1, justifyContent:'flex-end', paddingBottom:insets?.bottom }}>
565
+ <View type='blur' style={view_mode=='desktop'?{ flex:1, justifyContent:'center', alignItems:'center' }:{ flex:1, justifyContent:'flex-end', paddingBottom:insets?.bottom }}>
566
+ <View style={view_mode=='desktop'?{ width:500 }:undefined}>
558
567
  <BidForm
559
568
  player_id={player_id}
560
569
  player_balance={player_balance}
@@ -576,6 +585,7 @@ const SquaresModule = ({ sq_comp_id, insets, player_id, distinct_id, onRequestAu
576
585
  onSubmitBid={(promo_balance) => handleSubmitBid(promo_balance)}
577
586
  />
578
587
  </View>
588
+ </View>
579
589
  </Modal>
580
590
  <Modal
581
591
  transparent