be-components 3.6.0 → 3.6.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 (315) hide show
  1. package/lib/commonjs/Checkout/components/AccountSummaryCard.js +52 -57
  2. package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
  3. package/lib/commonjs/Checkout/components/ItemSummaryCard.js +8 -11
  4. package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
  5. package/lib/commonjs/Checkout/components/OrderSummaryCard.js +21 -25
  6. package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
  7. package/lib/commonjs/Checkout/components/PayPalHtml.js +32 -0
  8. package/lib/commonjs/Checkout/components/PayPalHtml.js.map +1 -0
  9. package/lib/commonjs/Checkout/components/PayPalWebview.js +125 -0
  10. package/lib/commonjs/Checkout/components/PayPalWebview.js.map +1 -0
  11. package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +11 -15
  12. package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
  13. package/lib/commonjs/Checkout/index.js +92 -146
  14. package/lib/commonjs/Checkout/index.js.map +1 -1
  15. package/lib/commonjs/Components/Checkbox.js +7 -5
  16. package/lib/commonjs/Components/Checkbox.js.map +1 -1
  17. package/lib/commonjs/Components/Icons.js +9 -9
  18. package/lib/commonjs/Components/Icons.js.map +1 -1
  19. package/lib/commonjs/Components/Pagination.js +37 -0
  20. package/lib/commonjs/Components/Pagination.js.map +1 -0
  21. package/lib/commonjs/Wallet/components/ACHAddCard.js +233 -194
  22. package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
  23. package/lib/commonjs/Wallet/components/AccountCard.js +27 -28
  24. package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
  25. package/lib/commonjs/Wallet/components/AccountLimitManager.js +60 -95
  26. package/lib/commonjs/Wallet/components/AccountLimitManager.js.map +1 -1
  27. package/lib/commonjs/Wallet/components/AccountManager.js +209 -158
  28. package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
  29. package/lib/commonjs/Wallet/components/AccountSnoozeManager.js +53 -66
  30. package/lib/commonjs/Wallet/components/AccountSnoozeManager.js.map +1 -1
  31. package/lib/commonjs/Wallet/components/AddressCard.js +19 -17
  32. package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
  33. package/lib/commonjs/Wallet/components/AddressManager.js +64 -92
  34. package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
  35. package/lib/commonjs/Wallet/components/DepositCard.js +93 -99
  36. package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
  37. package/lib/commonjs/Wallet/components/FundAccountCard.js +106 -95
  38. package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
  39. package/lib/commonjs/Wallet/components/ItemOrderCard.js +26 -29
  40. package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -1
  41. package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +43 -46
  42. package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -1
  43. package/lib/commonjs/Wallet/components/LinkAccountManager.js +80 -106
  44. package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
  45. package/lib/commonjs/Wallet/components/ManageAccountCard.js +85 -60
  46. package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
  47. package/lib/commonjs/Wallet/components/ManualACHAdd.js +155 -151
  48. package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
  49. package/lib/commonjs/Wallet/components/ManualCardAdd.js +207 -204
  50. package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
  51. package/lib/commonjs/Wallet/components/MyBalance.js +73 -66
  52. package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
  53. package/lib/commonjs/Wallet/components/OrderManager.js +61 -58
  54. package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -1
  55. package/lib/commonjs/Wallet/components/RemoveAccount.js +22 -23
  56. package/lib/commonjs/Wallet/components/RemoveAccount.js.map +1 -1
  57. package/lib/commonjs/Wallet/components/WalletActionSelector.js +130 -133
  58. package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
  59. package/lib/commonjs/Wallet/components/WalletSettings.js +382 -547
  60. package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
  61. package/lib/commonjs/Wallet/components/WalletSetup.js +307 -289
  62. package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
  63. package/lib/commonjs/Wallet/components/WithdrawCard.js +91 -111
  64. package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
  65. package/lib/commonjs/Wallet/index.js +23 -24
  66. package/lib/commonjs/Wallet/index.js.map +1 -1
  67. package/lib/commonjs/constants/styles.js +1 -1
  68. package/lib/commonjs/constants/styles.js.map +1 -1
  69. package/lib/commonjs/constants/useColors.js +1 -1
  70. package/lib/commonjs/constants/useColors.js.map +1 -1
  71. package/lib/module/Checkout/components/AccountSummaryCard.js +25 -30
  72. package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
  73. package/lib/module/Checkout/components/ItemSummaryCard.js +4 -7
  74. package/lib/module/Checkout/components/ItemSummaryCard.js.map +1 -1
  75. package/lib/module/Checkout/components/OrderSummaryCard.js +9 -13
  76. package/lib/module/Checkout/components/OrderSummaryCard.js.map +1 -1
  77. package/lib/module/Checkout/components/PayPalHtml.js +25 -0
  78. package/lib/module/Checkout/components/PayPalHtml.js.map +1 -0
  79. package/lib/module/Checkout/components/PayPalWebview.js +118 -0
  80. package/lib/module/Checkout/components/PayPalWebview.js.map +1 -0
  81. package/lib/module/Checkout/components/ShippingSummaryCard.js +5 -9
  82. package/lib/module/Checkout/components/ShippingSummaryCard.js.map +1 -1
  83. package/lib/module/Checkout/index.js +58 -112
  84. package/lib/module/Checkout/index.js.map +1 -1
  85. package/lib/module/Components/Checkbox.js +6 -4
  86. package/lib/module/Components/Checkbox.js.map +1 -1
  87. package/lib/module/Components/Icons.js +10 -10
  88. package/lib/module/Components/Icons.js.map +1 -1
  89. package/lib/module/Components/Pagination.js +30 -0
  90. package/lib/module/Components/Pagination.js.map +1 -0
  91. package/lib/module/Wallet/components/ACHAddCard.js +233 -194
  92. package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
  93. package/lib/module/Wallet/components/AccountCard.js +23 -24
  94. package/lib/module/Wallet/components/AccountCard.js.map +1 -1
  95. package/lib/module/Wallet/components/AccountLimitManager.js +43 -77
  96. package/lib/module/Wallet/components/AccountLimitManager.js.map +1 -1
  97. package/lib/module/Wallet/components/AccountManager.js +206 -155
  98. package/lib/module/Wallet/components/AccountManager.js.map +1 -1
  99. package/lib/module/Wallet/components/AccountSnoozeManager.js +35 -48
  100. package/lib/module/Wallet/components/AccountSnoozeManager.js.map +1 -1
  101. package/lib/module/Wallet/components/AddressCard.js +14 -12
  102. package/lib/module/Wallet/components/AddressCard.js.map +1 -1
  103. package/lib/module/Wallet/components/AddressManager.js +29 -57
  104. package/lib/module/Wallet/components/AddressManager.js.map +1 -1
  105. package/lib/module/Wallet/components/DepositCard.js +62 -67
  106. package/lib/module/Wallet/components/DepositCard.js.map +1 -1
  107. package/lib/module/Wallet/components/FundAccountCard.js +71 -60
  108. package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
  109. package/lib/module/Wallet/components/ItemOrderCard.js +17 -20
  110. package/lib/module/Wallet/components/ItemOrderCard.js.map +1 -1
  111. package/lib/module/Wallet/components/ItemOrderDetailCard.js +28 -31
  112. package/lib/module/Wallet/components/ItemOrderDetailCard.js.map +1 -1
  113. package/lib/module/Wallet/components/LinkAccountManager.js +55 -81
  114. package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
  115. package/lib/module/Wallet/components/ManageAccountCard.js +80 -55
  116. package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
  117. package/lib/module/Wallet/components/ManualACHAdd.js +146 -141
  118. package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
  119. package/lib/module/Wallet/components/ManualCardAdd.js +204 -201
  120. package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
  121. package/lib/module/Wallet/components/MyBalance.js +45 -38
  122. package/lib/module/Wallet/components/MyBalance.js.map +1 -1
  123. package/lib/module/Wallet/components/OrderManager.js +59 -56
  124. package/lib/module/Wallet/components/OrderManager.js.map +1 -1
  125. package/lib/module/Wallet/components/RemoveAccount.js +16 -16
  126. package/lib/module/Wallet/components/RemoveAccount.js.map +1 -1
  127. package/lib/module/Wallet/components/WalletActionSelector.js +102 -104
  128. package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
  129. package/lib/module/Wallet/components/WalletSettings.js +381 -545
  130. package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
  131. package/lib/module/Wallet/components/WalletSetup.js +297 -279
  132. package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
  133. package/lib/module/Wallet/components/WithdrawCard.js +52 -71
  134. package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
  135. package/lib/module/Wallet/index.js +16 -17
  136. package/lib/module/Wallet/index.js.map +1 -1
  137. package/lib/module/constants/styles.js +1 -1
  138. package/lib/module/constants/styles.js.map +1 -1
  139. package/lib/module/constants/useColors.js +1 -1
  140. package/lib/module/constants/useColors.js.map +1 -1
  141. package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  142. package/lib/typescript/lib/commonjs/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
  143. package/lib/typescript/lib/commonjs/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
  144. package/lib/typescript/lib/commonjs/Checkout/components/PayPalHtml.d.ts +3 -0
  145. package/lib/typescript/lib/commonjs/Checkout/components/PayPalHtml.d.ts.map +1 -0
  146. package/lib/typescript/lib/commonjs/Checkout/components/PayPalWebview.d.ts +4 -0
  147. package/lib/typescript/lib/commonjs/Checkout/components/PayPalWebview.d.ts.map +1 -0
  148. package/lib/typescript/lib/commonjs/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
  149. package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
  150. package/lib/typescript/lib/commonjs/Components/Checkbox.d.ts.map +1 -1
  151. package/lib/typescript/lib/commonjs/Components/Pagination.d.ts +11 -0
  152. package/lib/typescript/lib/commonjs/Components/Pagination.d.ts.map +1 -0
  153. package/lib/typescript/lib/commonjs/Wallet/components/ACHAddCard.d.ts.map +1 -1
  154. package/lib/typescript/lib/commonjs/Wallet/components/AccountCard.d.ts.map +1 -1
  155. package/lib/typescript/lib/commonjs/Wallet/components/AccountLimitManager.d.ts.map +1 -1
  156. package/lib/typescript/lib/commonjs/Wallet/components/AccountManager.d.ts.map +1 -1
  157. package/lib/typescript/lib/commonjs/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
  158. package/lib/typescript/lib/commonjs/Wallet/components/AddressCard.d.ts.map +1 -1
  159. package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts.map +1 -1
  160. package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts.map +1 -1
  161. package/lib/typescript/lib/commonjs/Wallet/components/FundAccountCard.d.ts.map +1 -1
  162. package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderCard.d.ts.map +1 -1
  163. package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
  164. package/lib/typescript/lib/commonjs/Wallet/components/LinkAccountManager.d.ts.map +1 -1
  165. package/lib/typescript/lib/commonjs/Wallet/components/ManageAccountCard.d.ts.map +1 -1
  166. package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  167. package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  168. package/lib/typescript/lib/commonjs/Wallet/components/MyBalance.d.ts.map +1 -1
  169. package/lib/typescript/lib/commonjs/Wallet/components/OrderManager.d.ts.map +1 -1
  170. package/lib/typescript/lib/commonjs/Wallet/components/RemoveAccount.d.ts.map +1 -1
  171. package/lib/typescript/lib/commonjs/Wallet/components/WalletActionSelector.d.ts.map +1 -1
  172. package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts +1 -2
  173. package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts.map +1 -1
  174. package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
  175. package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts.map +1 -1
  176. package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
  177. package/lib/typescript/lib/commonjs/constants/styles.d.ts +1 -1
  178. package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts +1 -2
  179. package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  180. package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts +1 -2
  181. package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
  182. package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts +1 -2
  183. package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
  184. package/lib/typescript/lib/module/Checkout/components/PayPalHtml.d.ts +2 -0
  185. package/lib/typescript/lib/module/Checkout/components/PayPalHtml.d.ts.map +1 -0
  186. package/lib/typescript/lib/module/Checkout/components/PayPalWebview.d.ts +5 -0
  187. package/lib/typescript/lib/module/Checkout/components/PayPalWebview.d.ts.map +1 -0
  188. package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts +1 -2
  189. package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
  190. package/lib/typescript/lib/module/Checkout/index.d.ts +1 -2
  191. package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
  192. package/lib/typescript/lib/module/Components/Checkbox.d.ts +1 -2
  193. package/lib/typescript/lib/module/Components/Checkbox.d.ts.map +1 -1
  194. package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
  195. package/lib/typescript/lib/module/Components/Pagination.d.ts +11 -0
  196. package/lib/typescript/lib/module/Components/Pagination.d.ts.map +1 -0
  197. package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts +1 -2
  198. package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts.map +1 -1
  199. package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts +1 -2
  200. package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts.map +1 -1
  201. package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts +1 -2
  202. package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts.map +1 -1
  203. package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts +1 -2
  204. package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts.map +1 -1
  205. package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts +1 -2
  206. package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
  207. package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts +1 -2
  208. package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts.map +1 -1
  209. package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts +1 -2
  210. package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts.map +1 -1
  211. package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts +2 -2
  212. package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts.map +1 -1
  213. package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts +1 -2
  214. package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts.map +1 -1
  215. package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts +1 -2
  216. package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts.map +1 -1
  217. package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts +1 -2
  218. package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
  219. package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts +1 -2
  220. package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts.map +1 -1
  221. package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts +1 -2
  222. package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts.map +1 -1
  223. package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts +1 -2
  224. package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  225. package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts +1 -2
  226. package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  227. package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts +1 -2
  228. package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts.map +1 -1
  229. package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts +1 -2
  230. package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts.map +1 -1
  231. package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts +1 -2
  232. package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts.map +1 -1
  233. package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts +1 -2
  234. package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts.map +1 -1
  235. package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts +2 -4
  236. package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts.map +1 -1
  237. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +1 -2
  238. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
  239. package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts +2 -2
  240. package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts.map +1 -1
  241. package/lib/typescript/lib/module/Wallet/index.d.ts +1 -2
  242. package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
  243. package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  244. package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
  245. package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
  246. package/lib/typescript/src/Checkout/components/PayPalHtml.d.ts +2 -0
  247. package/lib/typescript/src/Checkout/components/PayPalHtml.d.ts.map +1 -0
  248. package/lib/typescript/src/Checkout/components/PayPalWebview.d.ts +4 -0
  249. package/lib/typescript/src/Checkout/components/PayPalWebview.d.ts.map +1 -0
  250. package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
  251. package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
  252. package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -1
  253. package/lib/typescript/src/Components/Pagination.d.ts +12 -0
  254. package/lib/typescript/src/Components/Pagination.d.ts.map +1 -0
  255. package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
  256. package/lib/typescript/src/Wallet/components/AccountCard.d.ts.map +1 -1
  257. package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts.map +1 -1
  258. package/lib/typescript/src/Wallet/components/AccountManager.d.ts.map +1 -1
  259. package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
  260. package/lib/typescript/src/Wallet/components/AddressCard.d.ts.map +1 -1
  261. package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
  262. package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
  263. package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
  264. package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts.map +1 -1
  265. package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
  266. package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
  267. package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
  268. package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  269. package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  270. package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
  271. package/lib/typescript/src/Wallet/components/OrderManager.d.ts.map +1 -1
  272. package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts.map +1 -1
  273. package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
  274. package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -1
  275. package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
  276. package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
  277. package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
  278. package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
  279. package/package.json +2 -1
  280. package/src/Checkout/components/AccountSummaryCard.tsx +25 -27
  281. package/src/Checkout/components/ItemSummaryCard.tsx +4 -6
  282. package/src/Checkout/components/OrderSummaryCard.tsx +9 -11
  283. package/src/Checkout/components/PayPalHtml.ts +26 -0
  284. package/src/Checkout/components/PayPalOrderCapture.tsx +1 -1
  285. package/src/Checkout/components/PayPalWebview.tsx +118 -0
  286. package/src/Checkout/components/ShippingSummaryCard.tsx +5 -8
  287. package/src/Checkout/index.tsx +68 -96
  288. package/src/Components/Checkbox.tsx +7 -6
  289. package/src/Components/Icons.tsx +10 -10
  290. package/src/Components/Pagination.tsx +33 -0
  291. package/src/Wallet/components/ACHAddCard.tsx +90 -60
  292. package/src/Wallet/components/AccountCard.tsx +22 -21
  293. package/src/Wallet/components/AccountLimitManager.tsx +36 -54
  294. package/src/Wallet/components/AccountManager.tsx +95 -61
  295. package/src/Wallet/components/AccountSnoozeManager.tsx +39 -37
  296. package/src/Wallet/components/AddressCard.tsx +11 -11
  297. package/src/Wallet/components/AddressManager.tsx +33 -44
  298. package/src/Wallet/components/DepositCard.tsx +55 -53
  299. package/src/Wallet/components/FundAccountCard.tsx +52 -51
  300. package/src/Wallet/components/ItemOrderCard.tsx +13 -12
  301. package/src/Wallet/components/ItemOrderDetailCard.tsx +23 -22
  302. package/src/Wallet/components/LinkAccountManager.tsx +49 -59
  303. package/src/Wallet/components/ManageAccountCard.tsx +78 -47
  304. package/src/Wallet/components/ManualACHAdd.tsx +99 -79
  305. package/src/Wallet/components/ManualCardAdd.tsx +119 -95
  306. package/src/Wallet/components/MyBalance.tsx +38 -40
  307. package/src/Wallet/components/OrderManager.tsx +47 -37
  308. package/src/Wallet/components/RemoveAccount.tsx +12 -15
  309. package/src/Wallet/components/WalletActionSelector.tsx +70 -69
  310. package/src/Wallet/components/WalletSettings.tsx +137 -139
  311. package/src/Wallet/components/WalletSetup.tsx +150 -135
  312. package/src/Wallet/components/WithdrawCard.tsx +56 -56
  313. package/src/Wallet/index.tsx +23 -22
  314. package/src/constants/styles.ts +1 -1
  315. package/src/constants/useColors.tsx +1 -1
@@ -1,10 +1,11 @@
1
1
 
2
2
  import React, { useState } from 'react';
3
- import { View, FlatList, ScrollView, TouchableOpacity, Image } from "react-native"
4
- import { Button, Icons, Text } from '../../Components';
5
- import Colors from '../../constants/colors';
3
+ import { FlatList, TouchableOpacity, Image } from "react-native"
4
+ import { Icons } from '../../Components';
6
5
  import type { AccountProps, MyPlayerProps, PlayerBalanceProps } from '../../types';
7
6
  import { WalletHelpers } from '../api';
7
+ import { Button, Text, View } from '../../Components/Themed';
8
+ import { useColors } from '../../constants/useColors';
8
9
 
9
10
  type WalletActionSelectorProps ={
10
11
  player:MyPlayerProps,
@@ -16,38 +17,41 @@ type WalletActionSelectorProps ={
16
17
  onStartWalkthrough:(walkthrough:any, account?:AccountProps) => void
17
18
  }
18
19
 
19
- const sections = [
20
- {
21
- section: 'accounts', label:'Account Actions', actions : [
22
- {
23
- action :'my_accounts', label: "View My Accounts", icon:<Icons.ListIcon color={Colors.brand.midnight} size={12}/>, description: 'Manage your connected accounts. Transact, snooze, set limits or remove an existing account.'
24
- },
25
- {
26
- action :'wallet_settings', label: "View My Settings", icon:<Icons.SettingsIcon color={Colors.brand.midnight} size={20}/>, description: 'View your current settings including your deposit and withdraw limits.'
27
- },
28
-
29
- ]
30
- },
31
- {
32
- section: 'transact', label:'Transact', actions : [
33
- {
34
- action :'order_history', label: "View Order History", icon:<Icons.TransactionIcon size={20} color={Colors.brand.midnight} />, description: 'View and manage past orders made on BettorEdge'
35
- },
36
- {
37
- action :'deposit', label: "Make A Deposit", icon:<Icons.DepositIcon size={20} color={Colors.brand.midnight} />, description: 'Fund your BettorEdge real-money balance by making a deposit from an existing account or new one.'
38
- },
39
- {
40
- action :'withdraw', label: "Make A Withdrawal", icon:<Icons.WithdrawIcon size={20} color={Colors.brand.midnight} />, description: 'Move funds from your BettorEdge real-money balance to a connected ACH account.'
41
- },
42
-
43
- ]
44
- }
45
- ]
20
+
46
21
 
47
22
  const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accounts, onClose, onActionSelect, onStartWalkthrough }: WalletActionSelectorProps) => {
23
+ const Colors = useColors();
48
24
  const [ show_steps, setShowSteps ] = useState(false);
49
25
  const [ width, setWidth ] = useState(0);
50
26
 
27
+ const sections = [
28
+ {
29
+ section: 'accounts', label:'Account Actions', actions : [
30
+ {
31
+ action :'my_accounts', label: "View My Accounts", icon:<Icons.ListIcon color={Colors.text.h1} size={12}/>, description: 'Manage your connected accounts. Transact, snooze, set limits or remove an existing account.'
32
+ },
33
+ {
34
+ action :'wallet_settings', label: "View My Settings", icon:<Icons.SettingsIcon color={Colors.text.h1} size={20}/>, description: 'View your current settings including your deposit and withdraw limits.'
35
+ },
36
+
37
+ ]
38
+ },
39
+ {
40
+ section: 'transact', label:'Transact', actions : [
41
+ {
42
+ action :'order_history', label: "View Order History", icon:<Icons.TransactionIcon size={20} color={Colors.text.h1} />, description: 'View and manage past orders made on BettorEdge'
43
+ },
44
+ {
45
+ action :'deposit', label: "Make A Deposit", icon:<Icons.DepositIcon size={20} color={Colors.text.h1} />, description: 'Fund your BettorEdge real-money balance by making a deposit from an existing account or new one.'
46
+ },
47
+ {
48
+ action :'withdraw', label: "Make A Withdrawal", icon:<Icons.WithdrawIcon size={20} color={Colors.text.h1} />, description: 'Move funds from your BettorEdge real-money balance to a connected ACH account.'
49
+ },
50
+
51
+ ]
52
+ }
53
+ ]
54
+
51
55
  const handleActionSelect = (action:any) => {
52
56
  switch(action.action){
53
57
  case 'deposit':
@@ -64,7 +68,7 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
64
68
 
65
69
  const renderActions = (data:{ item:any, index:number }) => {
66
70
  return (
67
- <TouchableOpacity style={{ padding:10, flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}
71
+ <Button style={{ padding:10, flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderBottomColor:Colors.borders.light }}
68
72
  onPress={() => handleActionSelect(data.item)}>
69
73
 
70
74
  <View style={{ flex:1, marginRight:10 }}>
@@ -72,19 +76,21 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
72
76
  {data.item.icon?
73
77
  data.item.icon
74
78
  :<></>}
75
- <Text style={{ marginLeft:5 }} size={16} color={Colors.brand.midnight} weight='bold'>{data.item.label}</Text>
79
+ <Text style={{ marginLeft:5 }} size={16} theme='h1'>{data.item.label}</Text>
76
80
  </View>
77
- <Text style={{ padding:5 }} size={14} color={Colors.brand.midnight} weight='regular'>{data.item.description}</Text>
81
+ <Text style={{ padding:5 }} size={14} theme='description'>{data.item.description}</Text>
78
82
  </View>
79
- <Icons.ChevronIcon direction='right' color={Colors.brand.midnight} size={12} />
80
- </TouchableOpacity>
83
+ <Icons.ChevronIcon direction='right' color={Colors.text.h1} size={12} />
84
+ </Button>
81
85
  )
82
86
  }
83
87
 
84
88
  const renderSections = (data: { item:any, index:number }) => {
85
89
  return (
86
- <View style={{ padding:5 }}>
87
- <Text size={16} color={Colors.brand.midnight} weight='regular'>{data.item.label.toUpperCase()}</Text>
90
+ <View style={{ marginTop:10 }}>
91
+ <View type='header' style={{ padding:15 }}>
92
+ <Text theme='h1'>{data.item.label.toUpperCase()}</Text>
93
+ </View>
88
94
  <View style={{ padding:5 }}>
89
95
  <FlatList
90
96
  key='actions'
@@ -99,7 +105,6 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
99
105
  }
100
106
 
101
107
  const handleStepSelect = (step:any, index:number) => {
102
- console.log(step)
103
108
  switch(step.step){
104
109
  case 'deposit':
105
110
  let default_account = accounts.find(a => a.default_account)
@@ -115,11 +120,11 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
115
120
  const renderSteps = (data: { item:any, index:number }) => {
116
121
  return (
117
122
  <TouchableOpacity
118
- style={{ margin:5, padding:10, flexDirection:'row', alignItems:'center', borderWidth:1, borderColor:Colors.shades.shade600, borderRadius:8 }}
123
+ style={{ margin:5, padding:10, flexDirection:'row', alignItems:'center', borderWidth:1, borderColor:Colors.borders.light, borderRadius:8 }}
119
124
  onPress={() => handleStepSelect(data.item, data.index)}>
120
- <Icons.CheckCirlceIcon size={14} color={data.item.complete?Colors.utility.success:Colors.brand.slate}/>
121
- <Text style={{ flex:1, marginLeft:10 }} size={14} color={Colors.brand.midnight}>{data.item.label}</Text>
122
- <Icons.ChevronIcon direction='right' size={8} color={Colors.brand.midnight} />
125
+ <Icons.CheckCirlceIcon size={14} color={data.item.complete?Colors.text.success:Colors.text.success}/>
126
+ <Text style={{ flex:1, marginLeft:10 }} theme='description'>{data.item.label}</Text>
127
+ <Icons.ChevronIcon direction='right' size={8} color={Colors.text.h1} />
123
128
  </TouchableOpacity>
124
129
  )
125
130
  }
@@ -131,48 +136,47 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
131
136
  const { width } = ev.nativeEvent.layout
132
137
  setWidth(width)
133
138
  }}>
134
- <View style={{ padding:10, flexDirection:'row', alignItems:'center' }}>
139
+ <View type='header' style={{ padding:10, flexDirection:'row', alignItems:'center' }}>
135
140
  <Image
136
141
  source={{ uri: player.profile_pic }}
137
142
  style={{ height:60, width:60, borderRadius:4 }}
138
143
  resizeMode='cover'
139
144
  />
140
- <View style={{ flex:1, marginLeft:5 }}>
141
- <Text size={20} color={Colors.brand.midnight} weight='bold'>Wallet Balances</Text>
142
- <View style={{ flexDirection:'row' }}>
143
- <View style={{ margin:3, backgroundColor:Colors.brand.cobalt, padding:5, borderRadius:8 }}>
144
- <Text size={14} color={Colors.shades.white} weight='bold'>${WalletHelpers.formatBalance(player_balance.balance)}</Text>
145
+ <View transparent style={{ flex:1, marginLeft:15 }}>
146
+ <Text size={20} theme='h1'>My Wallet Balances</Text>
147
+ <View transparent style={{ flexDirection:'row', marginTop:5 }}>
148
+ <View float style={{ margin:3, padding:8, borderRadius:8 }}>
149
+ <Text size={14} theme='h1'>${WalletHelpers.formatBalance(player_balance.balance)}</Text>
145
150
  </View>
146
- <View style={{ margin:3, backgroundColor:Colors.brand.cobalt, padding:5, borderRadius:8 }}>
147
- <Text size={14} color={Colors.shades.white} weight='bold'>P{WalletHelpers.formatBalance(player_balance.promo_balance)}</Text>
151
+ <View float style={{ margin:3, padding:8, borderRadius:8 }}>
152
+ <Text size={14} theme='h1'>P{WalletHelpers.formatBalance(player_balance.promo_balance)}</Text>
148
153
  </View>
149
- <View style={{ margin:3, backgroundColor:Colors.brand.cyan, padding:5, borderRadius:8 }}>
150
- <Text size={14} color={Colors.shades.white} weight='bold'>E{WalletHelpers.formatBalance(player_balance.free_market_balance)}</Text>
154
+ <View float style={{ margin:3, padding:8, borderRadius:8 }}>
155
+ <Text size={14} theme='h1'>E{WalletHelpers.formatBalance(player_balance.free_market_balance)}</Text>
151
156
  </View>
152
157
  </View>
153
158
  </View>
154
159
  </View>
155
- <ScrollView style={{ flex:1 }}>
156
-
160
+ <View style={{ flex:1 }}>
157
161
  {pct_complete < 1 ?
158
- <View style={{ backgroundColor:Colors.shades.white, padding:10 }}>
162
+ <View style={{ padding:10 }}>
159
163
  <View>
160
164
  <TouchableOpacity style={{ flexDirection:'row', alignItems:'center', padding:10 }} onPress={() => setShowSteps(!show_steps)}>
161
165
  <View style={{ flex:1, marginRight:10 }}>
162
- <Text color={Colors.brand.midnight} size={14} weight='bold'>Setup your wallet</Text>
163
- <Text style={{ marginTop:3 }} color={Colors.brand.slate} size={14} weight='regular'>Complete all the steps below to have full access to move funds in and out of BettorEdge</Text>
166
+ <Text theme='h1'>Setup your wallet</Text>
167
+ <Text style={{ marginTop:3 }} theme='description'>Complete all the steps below to have full access to move funds in and out of BettorEdge</Text>
164
168
  </View>
165
- <Icons.ChevronIcon direction={show_steps ? 'up' : 'down'} color={Colors.brand.midnight} size={10} />
169
+ <Icons.ChevronIcon direction={show_steps ? 'up' : 'down'} color={Colors.text.h1} size={10} />
166
170
  </TouchableOpacity>
167
171
  <View style={{ flexDirection:'row', justifyContent:'center', alignItems:'center', }}>
168
172
  <Text size={14} weight='bold'>{(pct_complete * 100).toFixed()}%</Text>
169
- <View style={{ marginLeft:20, height:10, width:width - 100, backgroundColor:Colors.brand.slate, borderRadius:15 }}>
170
- <View style={{ position:'absolute', top:0, left:0, bottom:0, width: (width-100)*pct_complete, backgroundColor:Colors.utility.success, borderRadius:15 }} />
173
+ <View style={{ marginLeft:20, height:10, width:width - 100, borderRadius:15 }}>
174
+ <View style={{ position:'absolute', top:0, left:0, bottom:0, width: (width-100)*pct_complete, backgroundColor:Colors.text.success, borderRadius:15 }} />
171
175
  </View>
172
176
  </View>
173
177
  </View>
174
178
  {show_steps ?
175
- <View style={{marginTop:5, borderTopWidth:1, borderColor:Colors.shades.shade600 }}>
179
+ <View style={{marginTop:5, borderTopWidth:1, borderColor:Colors.borders.light }}>
176
180
  <FlatList
177
181
  data={walkthrough_steps}
178
182
  renderItem={renderSteps}
@@ -182,7 +186,7 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
182
186
  :<></>}
183
187
  </View>
184
188
  :<></>}
185
- <View style={{ padding:10 }}>
189
+ <View type='body' style={{ marginTop:5 }}>
186
190
  <FlatList
187
191
  key={'wallet_sections'}
188
192
  data={sections}
@@ -190,18 +194,15 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
190
194
  keyExtractor={(item) => item.section}
191
195
  />
192
196
  </View>
193
- </ScrollView>
194
- <View nativeID='action_row' style={{ padding:20 }}>
197
+ </View>
198
+ <View nativeID='action_row' style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
195
199
  <Button
196
200
  title='CLOSE'
197
- title_color={Colors.brand.electric}
198
- borderWidth={1}
199
- borderColor={Colors.brand.electric}
200
- padding={15}
201
+ style={{ flex:1 }}
202
+ type='close'
201
203
  onPress={() => onClose()}
202
204
  />
203
205
  </View>
204
-
205
206
  </View>
206
207
  )
207
208
  }
@@ -1,9 +1,10 @@
1
1
  import React, { useState } from "react"
2
2
  import type { MyPlayerProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps } from '../../types';
3
- import { View, TouchableOpacity, ScrollView } from 'react-native';
4
- import { Button, Icons, Text } from '../../Components';
5
- import Colors from '../../constants/colors';
3
+ import { Toggle } from '../../Components';
6
4
  import { WalletHelpers } from '../api';
5
+ import { Button, Text, View } from "../../Components/Themed";
6
+ import { useColors } from "../../constants/useColors";
7
+ import { FlatList } from "react-native";
7
8
 
8
9
  type BEWalletProps = {
9
10
  player:MyPlayerProps,
@@ -17,200 +18,197 @@ type BEWalletProps = {
17
18
  onClose:() => void
18
19
  }
19
20
 
20
- const WalletSettings = ({ player, my_referral, deposit_limit, withdraw_limit, onPremium, onClose }:BEWalletProps) => {
21
+ const sections = ['header', 'toggle', 'deposit','withdraw','referral']
22
+ const WalletSettings = ({ player, my_referral, deposit_limit, withdraw_limit, onClose }:BEWalletProps) => {
21
23
  const [ active_tab, setActiveTab ] = useState('deposit');
22
-
24
+ const Colors = useColors();
23
25
  //const promo = useSelector((state:RootState) => state.wallet.promo, (left, right) => left?.promo_id == right?.promo_id);
24
26
  //const player_referral = useSelector((state:RootState) => state.wallet.player_referral, (left, right) => left?.last_update_datetime == right?.last_update_datetime);
25
27
 
26
28
  const { player_referral, promo } = my_referral
27
29
  //const tabs = ['referral','deposit','withdraw']
28
-
29
-
30
-
31
- if(!player){ return <></> }
32
- return (
33
- <View style={{ flex:1 }}>
34
- <View style={{ padding:20 }}>
35
- <Text size={26} color={Colors.brand.midnight} weight='bold'>WALLET SETTINGS</Text>
36
- <Text style={{ marginTop:10 }} size={16} color={Colors.brand.midnight} weight='regular'>Below are your overall wallet settings & configurations. These are set based on account type and past transaction history.</Text>
37
- </View>
38
- <View style={{ flexDirection: 'row', paddingLeft:10, paddingRight:10 }}>
39
- <TouchableOpacity
40
- style={{ flex:1, borderWidth:1,borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='deposit'?Colors.brand.midnight:undefined }}
41
- onPress={() => setActiveTab('deposit')}
42
- >
43
- <Text weight={active_tab == 'deposit'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='deposit'?Colors.shades.white:Colors.brand.midnight}>Deposit</Text>
44
- </TouchableOpacity>
45
- <TouchableOpacity
46
- style={{ flex:1, borderWidth:1, borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='withdraw'?Colors.brand.midnight:undefined }}
47
- onPress={() => setActiveTab('withdraw')}
48
- >
49
- <Text weight={active_tab == 'withdraw'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='withdraw'?Colors.shades.white:Colors.brand.midnight}>Withdraw</Text>
50
- </TouchableOpacity>
51
- <TouchableOpacity
52
- style={{ flex:1, borderWidth:1, borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='referral'?Colors.brand.midnight:undefined }}
53
- onPress={() => setActiveTab('referral')}
54
- >
55
- <Text weight={active_tab == 'referral'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='referral'?Colors.shades.white:Colors.brand.midnight}>Referral</Text>
56
- </TouchableOpacity>
57
- </View>
58
- <ScrollView nativeID="settings" style={{ flex:1, marginLeft:10, marginRight:10, borderRightWidth:1, borderLeftWidth:1, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
59
- {active_tab == 'deposit' ?
60
- <View>
61
- {deposit_limit ?
62
- <View nativeID="deposit_limit">
63
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10 }}>
64
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Deposit Settings</Text>
65
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Below are your current deposit limits. These may change based on historical transaction results.</Text>
30
+ console.log(active_tab)
31
+ console.log(deposit_limit)
32
+ const renderSections = (data:{item:string, index:number}) => {
33
+ switch(data.item){
34
+ case 'header':
35
+ return (
36
+ <View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
37
+ <View transparent style={{flex:1}}>
38
+ <Text size={20} theme='h1'>MY WALLET SETTINGS / LIMITS</Text>
39
+ <Text style={{ marginTop:5}} theme='description'>Below are your overall wallet settings & configurations. These are set based on account type and past transaction history</Text>
66
40
  </View>
67
- <View style={{ padding:10 }}>
68
-
69
- <View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
70
- <View style={{ flex:1 }}>
71
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>ACH Daily Limit</Text>
72
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The maximum deposit amount allowed per day from an ACH account</Text>
73
- </View>
74
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
75
- <Text size={14} color={Colors.brand.midnight} weight="bold">${deposit_limit.ach_daily_limit}</Text>
41
+ </View>
42
+ )
43
+ case 'toggle':
44
+ return (
45
+ <View style={{ padding:10 }}>
46
+ <Toggle
47
+ options={[
48
+ {key: 'deposit', label:'Deposit' },
49
+ {key: 'withdraw', label:'Withdraw' },
50
+ {key: 'referral', label:'Referral' }
51
+ ]}
52
+ selected_option={active_tab}
53
+ onSelectOption={(option) => setActiveTab(option)}
54
+ />
55
+ </View>
56
+ )
57
+ case 'deposit':
58
+ if(active_tab != 'deposit'){ return <></> }
59
+ if(!deposit_limit){ return <></> }
60
+ return (
61
+ <View nativeID="deposit_limit">
62
+ <View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
63
+ <View transparent style={{flex:1}}>
64
+ <Text theme='h1'>DEPOSIT SETTINGS</Text>
65
+ <Text style={{ marginTop:3}} theme='description'>Below are your current deposit limits. These may change based on historical transaction results.</Text>
76
66
  </View>
77
67
  </View>
78
- <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
79
- <View style={{ flex:1 }}>
80
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Card / Paypal Daily Limit</Text>
81
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The maximum deposit amount allowed per day from a card account</Text>
68
+ <View type='body' style={{ padding:10 }}>
69
+ <View type='row' style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
70
+ <View style={{ flex:1 }}>
71
+ <Text theme="h2">ACH Daily Limit</Text>
72
+ <Text style={{ marginTop:5 }} theme="description">The maximum deposit amount allowed per day from an ACH account</Text>
73
+ </View>
74
+ <View>
75
+ <Text theme="h2">${deposit_limit.ach_daily_limit}</Text>
76
+ </View>
82
77
  </View>
83
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
84
- <Text size={14} color={Colors.brand.midnight} weight="bold">${deposit_limit.card_daily_limit}</Text>
78
+ <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
79
+ <View style={{ flex:1 }}>
80
+ <Text theme="h2">Card / Paypal Daily Limit</Text>
81
+ <Text style={{ marginTop:5 }} theme="description">The maximum deposit amount allowed per day from a card account</Text>
82
+ </View>
83
+ <View>
84
+ <Text theme="h2">${deposit_limit.card_daily_limit}</Text>
85
+ </View>
85
86
  </View>
86
- </View>
87
- <View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
87
+ <View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
88
88
  <View style={{ flex:1 }}>
89
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Instant Deposit Limit</Text>
90
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The total amount of unsettled deposits that will be instantly added to your wallet. Any deposit over this amount will be held until it settles.</Text>
89
+ <Text theme="h2">Instant Deposit Limit</Text>
90
+ <Text style={{ marginTop:5 }} theme="description">The total amount of unsettled deposits that will be instantly added to your wallet. Any deposit over this amount will be held until it settles.</Text>
91
91
  </View>
92
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
93
- <Text size={14} color={Colors.brand.midnight} weight="bold">${deposit_limit.instant_limit}</Text>
92
+ <View>
93
+ <Text theme="h2">${deposit_limit.instant_limit}</Text>
94
94
  </View>
95
95
  </View>
96
- <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
96
+ <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
97
97
  <View style={{ flex:1 }}>
98
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Hold Days</Text>
99
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The number of days a deposit transaction will be held (not settled) before it can be withdrawn</Text>
98
+ <Text theme='h2'>Hold Days</Text>
99
+ <Text style={{ marginTop:5 }} theme="description">The number of days a deposit transaction will be held (not settled) before it can be withdrawn</Text>
100
100
  </View>
101
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
102
- <Text size={14} color={Colors.brand.midnight} weight="bold">{deposit_limit.hold_days}</Text>
101
+ <View>
102
+ <Text theme="h2">{deposit_limit.hold_days}</Text>
103
103
  </View>
104
104
  </View>
105
- <View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
105
+ <View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
106
106
  <View style={{ flex:1 }}>
107
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Instant Deposit Available</Text>
108
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Your instant deposit limit minus your unsettled deposits</Text>
107
+ <Text theme="h2">Instant Deposit Available</Text>
108
+ <Text style={{ marginTop:5 }} theme="description">Your instant deposit limit minus your unsettled deposits</Text>
109
109
  </View>
110
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
111
- <Text size={14} color={deposit_limit.instant_available > 0 ? Colors.utility.success : Colors.utility.error} weight="bold">${deposit_limit.instant_available.toFixed(2)}</Text>
110
+ <View>
111
+ <Text size={14} color={deposit_limit.instant_available > 0 ? Colors.text.success : Colors.text.error} weight="bold">${deposit_limit.instant_available.toFixed(2)}</Text>
112
112
  </View>
113
113
  </View>
114
114
  </View>
115
115
  </View>
116
- :<></>}
117
- </View>
118
- :active_tab == 'withdraw' ?
119
- <View>
120
- {withdraw_limit ?
116
+ )
117
+ case 'withdraw':
118
+ if(active_tab != 'withdraw' || !withdraw_limit){ return <></> }
119
+ return (
121
120
  <View nativeID="withdraw_settings">
122
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10 }}>
123
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Withdraw Settings</Text>
124
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Below are your current withdraw settings and limits. These may change based on historical transaction results.</Text>
125
- </View>
126
- <View style={{ padding:10 }}>
127
- <View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
121
+ <View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
122
+ <View transparent style={{flex:1}}>
123
+ <Text theme='h1'>WITHDRAW SETTINGS</Text>
124
+ <Text style={{ marginTop:3}} theme='description'>Below are your current withdraw settings and limits. These may change based on historical transaction results.</Text>
125
+ </View>
126
+ </View>
127
+ <View type='body' style={{ padding:10 }}>
128
+ <View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
128
129
  <View style={{ flex:1 }}>
129
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Weekly Withdraw Transaction Limit</Text>
130
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The number of withdraws allowed per rolling week.</Text>
130
+ <Text theme="h2">Weekly Withdraw Transaction Limit</Text>
131
+ <Text style={{ marginTop:5 }} theme="description">The number of withdraws allowed per rolling week.</Text>
131
132
  </View>
132
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
133
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.withdraws_per_week}</Text>
133
+ <View>
134
+ <Text theme="h2">{withdraw_limit.withdraws_per_week}</Text>
134
135
  </View>
135
136
  </View>
136
137
  {withdraw_limit?.week_withdraw_count ?
137
- <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
138
+ <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
138
139
  <View style={{ flex:1 }}>
139
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Withdraws Remaining</Text>
140
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Withdraw transaction limit minus the number of withdraws already processed in the last 7 days</Text>
140
+ <Text theme="h2">Withdraws Remaining</Text>
141
+ <Text style={{ marginTop:5 }} theme="description">Withdraw transaction limit minus the number of withdraws already processed in the last 7 days</Text>
141
142
  </View>
142
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
143
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.withdraws_per_week - withdraw_limit.week_withdraw_count}</Text>
143
+ <View>
144
+ <Text theme="h2">{withdraw_limit.withdraws_per_week - withdraw_limit.week_withdraw_count}</Text>
144
145
  </View>
145
146
  </View>
146
147
  :<></>}
147
- <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
148
+ <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
148
149
  <View style={{ flex:1 }}>
149
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>ACH Withdraw Daily Limit</Text>
150
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Maximum amount of withdraws that can be made per rolling 24 hours to an ACH account.</Text>
150
+ <Text theme="h2">ACH Withdraw Daily Limit</Text>
151
+ <Text style={{ marginTop:5 }} theme="description">Maximum amount of withdraws that can be made per rolling 24 hours to an ACH account.</Text>
151
152
  </View>
152
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
153
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.ach_daily_limit}</Text>
153
+ <View>
154
+ <Text theme="h2">{withdraw_limit.ach_daily_limit}</Text>
154
155
  </View>
155
156
  </View>
156
- <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
157
+ <View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
157
158
  <View style={{ flex:1 }}>
158
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Card Withdraw Daily Limit</Text>
159
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Maximum amount of withdraws that can be made per rolling 24 hours to a card account.</Text>
159
+ <Text theme="h2">Card Withdraw Daily Limit</Text>
160
+ <Text style={{ marginTop:5 }} theme="description">Maximum amount of withdraws that can be made per rolling 24 hours to a card account.</Text>
160
161
  </View>
161
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
162
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.card_daily_limit}</Text>
162
+ <View>
163
+ <Text theme="h2">{withdraw_limit.card_daily_limit}</Text>
163
164
  </View>
164
165
  </View>
165
166
  </View>
166
167
  </View>
167
- :<></>}
168
- </View>
169
- :active_tab == 'referral' ?
170
- <View>
171
- {player_referral && promo ?
168
+ )
169
+ case 'referral':
170
+ if(active_tab != 'referral' || !player_referral || !promo){ return <></> }
171
+ return (
172
172
  <View nativeID="referral_settings">
173
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10 }}>
174
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Referral Settings</Text>
175
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Below are your current referral settings. Share your code with others to earn cash from referrals.</Text>
173
+ <View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
174
+ <View transparent style={{flex:1}}>
175
+ <Text theme='h1'>REFERRAL SETTINGS</Text>
176
+ <Text style={{ marginTop:3}} theme='description'>Below are your current referral settings. Share your code with others to earn cash from referrals.</Text>
177
+ </View>
176
178
  </View>
177
179
  <View style={{ padding:10 }}>
178
- {false ?
179
- <TouchableOpacity style={{ flexDirection:'row', alignItems:'center', padding:10, borderRadius:8, backgroundColor:Colors.brand.electric }}>
180
- <Icons.ShareIcon color={Colors.shades.white} size={8}/>
181
- <Text style={{ marginLeft:5 }} size={10} color={Colors.shades.white} weight='regular'>Share Code</Text>
182
- </TouchableOpacity>
183
- :<></>}
184
- <View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
180
+ <View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
185
181
  <View style={{ flex:1 }}>
186
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>My Referral Code</Text>
187
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>{WalletHelpers.getReferralDescription(promo)}</Text>
182
+ <Text theme="h2">My Referral Code</Text>
183
+ <Text style={{ marginTop:5 }} theme="description">{WalletHelpers.getReferralDescription(promo)}</Text>
188
184
  </View>
189
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
190
- <Text size={14} color={Colors.brand.midnight} weight="bold">{player_referral.referral_code}</Text>
185
+ <View>
186
+ <Text theme="h2">{player_referral.referral_code}</Text>
191
187
  </View>
192
188
  </View>
193
189
  </View>
194
190
  </View>
195
- :<></>}
196
- </View>
197
- :<></>}
198
- </ScrollView>
199
- {false && player?.type == 'freemium' ?
200
- <View style={{ backgroundColor:Colors.shades.shade600, borderRadius:8, padding:10, margin:10 }}>
201
- <Text size={14} color={Colors.brand.midnight} weight='semibold' textAlign="center">Want better limits and higher referral awards?</Text>
202
- <TouchableOpacity style={{ marginTop:5, borderRadius:8, backgroundColor:Colors.incentive.gold, padding:15 }} onPress={() => {if(onPremium){ return onPremium() }}}>
203
- <Text size={14} color={Colors.shades.white} weight='bold' textAlign="center">VIEW PREMIUM</Text>
204
- </TouchableOpacity>
191
+ )
192
+ default: return <></>
193
+ }
194
+ }
195
+
196
+ if(!player){ return <></> }
197
+ return (
198
+ <View style={{ flex:1 }}>
199
+ <View style={{ flex:1 }}>
200
+ <FlatList
201
+ data={sections}
202
+ key={`setting_sections`}
203
+ renderItem={renderSections}
204
+ keyExtractor={(item) => item}
205
+ />
205
206
  </View>
206
- :<></>}
207
- <View style={{ padding:20 }}>
207
+ <View type='footer' style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
208
208
  <Button
209
209
  title='BACK'
210
- title_color={Colors.brand.electric}
211
- borderWidth={1}
212
- borderColor={Colors.brand.electric}
213
- padding={15}
210
+ type='close'
211
+ style={{ flex:1 }}
214
212
  onPress={() => onClose()}
215
213
  />
216
214
  </View>