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,9 +1,9 @@
1
1
  import React from 'react';
2
- import { View, TouchableOpacity, Image, ScrollView } from 'react-native';
2
+ import { FlatList, Image } from 'react-native';
3
3
  import type { AccountProps, MyPlayerProps } from '../../types';
4
- import { Button, Icons, Text } from '../../Components';
5
- import Colors from '../../constants/colors';
6
- import { button_styles } from '../../constants/styles';
4
+ import { Icons } from '../../Components';
5
+ import { useColors } from '../../constants/useColors';
6
+ import { Button, Text, View } from '../../Components/Themed';
7
7
 
8
8
  type AccountAddProps = {
9
9
  player:MyPlayerProps,
@@ -14,89 +14,119 @@ type AccountAddProps = {
14
14
  onClose: () => void,
15
15
  onNext: (account:AccountProps) => void,
16
16
  }
17
-
17
+ const ach_add_sections = ['header', 'sub_header', 'link','manual']
18
18
  const ACHAddCard = ({ accounts, onClose, onNext, onManualACH, onLinkACH }:AccountAddProps) => {
19
- //const [ loading, setLoading ] = useState(false);
20
- //const [ add_type, setAddType ] = useState('manual');
19
+ const Colors = useColors();
21
20
  const manual_account = accounts.find(a => a.ach_detail && a.ach_detail.ach_type == 'manual');
22
21
  const ibt_account = accounts.find(a => a.ach_detail && a.ach_detail.ach_type == 'ibf' && !a.ibt_placeholder);
23
22
 
24
- return (
25
- <View style={{ flex:1 }}>
26
- <View style={{ padding:20 }}>
27
- <Text size={26} color={Colors.brand.midnight} weight='bold'>GET ACCESS TO YOUR WINNINGS</Text>
28
- <Text style={{ marginTop:10 }} size={16} color={Colors.brand.midnight} weight='regular'>At BettorEdge - we celebrate withdraws! In order to move funds out of your BettorEdge account, you will need to add an eligible bank account.</Text>
29
- </View>
30
- <ScrollView style={{ flex:1, padding:20 }}>
31
- <Text style={{ marginBottom:20 }} size={18} color={Colors.brand.midnight} weight='bold'>ACH ACCOUNT OPTIONS</Text>
32
- <View style={{ padding:20, backgroundColor:Colors.shades.shade600, borderRadius:8 }}>
33
- <View style={{ flexDirection:'row' }}>
34
- <Icons.PlaidIcon size={35}/>
35
- <View style={{ flex:1, marginLeft:10 }}>
36
- <Text size={14} color={Colors.brand.midnight} weight='bold'>Link your account using PLAID</Text>
37
- <Text style={{ marginTop:3 }} size={12} color={Colors.brand.midnight} weight='regular'>When you link an account you get access to both instant deposits and instant withdraws.</Text>
38
- </View>
23
+ const renderSections = (data:{item:string,index:number}) => {
24
+ switch(data.item){
25
+ case 'header':
26
+ return (
27
+ <View style={{ padding:20 }}>
28
+ <Text theme='h1'>GET ACCESS TO YOUR WINNINGS</Text>
29
+ <Text style={{ marginTop:5 }} theme='description'>At BettorEdge - we celebrate withdraws! In order to move funds out of your BettorEdge account, you will need to add an eligible bank account.</Text>
30
+ </View>
31
+ )
32
+ case 'sub_header':
33
+ return (
34
+ <View style={{ padding:20 }}>
35
+ <Text theme='h1'>ADD ACH ACCOUNT OPTIONS</Text>
39
36
  </View>
40
- {!ibt_account ?
41
- <TouchableOpacity style={{ marginTop:20, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30, backgroundColor:Colors.shades.white }}
42
- onPress={() => onLinkACH()}>
43
- <View style={{ height:50, width:110, borderRadius:100, justifyContent:'center', alignItems:'center', borderWidth:1, borderColor:Colors.brand.cobalt }}>
44
- <Image
45
- source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1695821528/1630344814441_wjq98b.png' }}
46
- style={{ width:50, height:30 }}
47
- resizeMode='cover'
48
- />
37
+ )
38
+ case 'link':
39
+ return (
40
+ <View float style={{ padding:20, borderRadius:8 }}>
41
+ <View transparent style={{ flexDirection:'row' }}>
42
+ <View float style={{ backgroundColor:Colors.text.white, borderRadius:100, height:50, width:50, justifyContent:'center', alignItems:'center' }}>
43
+ <Icons.PlaidIcon size={30}/>
44
+ </View>
45
+ <View transparent style={{ flex:1, marginLeft:10 }}>
46
+ <Text size={14} theme='h1'>Link your account using PLAID</Text>
47
+ <Text style={{ marginTop:3 }} size={12} theme='description'>When you link an account you get access to both instant deposits and instant withdraws.</Text>
48
+ </View>
49
49
  </View>
50
- <View style={{ flex:1 }}>
51
- <Text size={14} color={Colors.brand.cobalt} textAlign='center' weight='bold'>LINK ACH ACCOUNT</Text>
50
+ {!ibt_account ?
51
+ <Button float style={{ marginTop:20, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30 }}
52
+ onPress={() => onLinkACH()}>
53
+ <View transparent style={{ height:50, width:110, borderRadius:100, justifyContent:'center', alignItems:'center', borderWidth:1, borderColor:Colors.borders.light }}>
54
+ <Image
55
+ source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1695821528/1630344814441_wjq98b.png' }}
56
+ style={{ width:50, height:30 }}
57
+ resizeMode='cover'
58
+ />
59
+ </View>
60
+ <View transparent style={{ flex:1, marginLeft:10 }}>
61
+ <Text size={14} theme='h1' weight='bold'>LINK ACH ACCOUNT</Text>
62
+ </View>
63
+ </Button>
64
+ :
65
+ <View transparent style={{ position:'absolute', top:5, right:5, bottom:0}}>
66
+ <Icons.TransactionSuccessIcon size={45}/>
52
67
  </View>
53
- </TouchableOpacity>
54
- :
55
- <View style={{ position:'absolute', top:5, right:5, bottom:0}}>
56
- <Icons.TransactionSuccessIcon size={45}/>
68
+ }
57
69
  </View>
58
- }
59
- </View>
60
- <View style={{ marginTop:20, padding:20, backgroundColor:Colors.shades.shade600, borderRadius:8 }}>
61
- <View style={{ flexDirection:'row' }}>
62
- <Icons.BankIcon color={Colors.brand.midnight} size={34}/>
63
- <View style={{ flex:1, marginLeft:10 }}>
64
- <Text size={14} color={Colors.brand.midnight} weight='bold'>Manually add an account</Text>
65
- <Text style={{ marginTop:3 }} size={12} color={Colors.brand.midnight} weight='regular'>Verify the account in 1-3 business days and start transacting.</Text>
70
+ )
71
+ case 'manual':
72
+ return (
73
+ <View float style={{ marginTop:20, padding:20, borderRadius:8 }}>
74
+ <View transparent style={{ flexDirection:'row' }}>
75
+ <View float style={{ height:50, width:50, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
76
+ <Icons.BankIcon color={Colors.text.h1} size={30}/>
77
+ </View>
78
+ <View transparent style={{ flex:1, marginLeft:10 }}>
79
+ <Text size={14} theme='h1'>Manually add an account</Text>
80
+ <Text style={{ marginTop:3 }} size={12} theme='description'>Verify the account in 1-3 business days and start transacting.</Text>
66
81
  </View>
67
82
 
68
83
  </View>
69
84
  {!manual_account ?
70
- <TouchableOpacity style={{ marginTop:20, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30, backgroundColor:Colors.brand.midnight }}
85
+ <Button float style={{ marginTop:20, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30 }}
71
86
  onPress={() => onManualACH()}>
72
- <View style={{ height:50, width:50, borderRadius:100, justifyContent:'center', alignItems:'center', backgroundColor:Colors.shades.white }}>
73
- <Icons.BankIcon size={22} color={Colors.brand.midnight} />
87
+ <View float style={{ height:50, width:50, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
88
+ <Icons.BankIcon size={22} color={Colors.text.h1} />
74
89
  </View>
75
- <View style={{ flex:1 }}>
76
- <Text size={14} color={Colors.shades.white} textAlign='center' weight='bold'>ADD MANUAL ACH ACCOUNT</Text>
90
+ <View transparent style={{ flex:1, marginLeft:10 }}>
91
+ <Text size={14} theme='h1'>ADD MANUAL ACH ACCOUNT</Text>
77
92
  </View>
78
- </TouchableOpacity>
93
+ </Button>
79
94
  :
80
- <View style={{ position:'absolute', top:5, right:5, bottom:0, alignItems:'flex-end'}}>
95
+ <View transparent style={{ position:'absolute', top:5, right:5, bottom:0, alignItems:'flex-end'}}>
81
96
  <Icons.TransactionSuccessIcon size={45}/>
82
97
  {manual_account?.status == 'verify' ?
83
- <View style={{ marginTop:-10, marginRight:20, padding:10, borderRadius:8, backgroundColor:Colors.highlights.highlight200 }}>
84
- <Text size={14} color={Colors.brand.midnight}>Manual ACH account is pending verification</Text>
98
+ <View transparent style={{ marginTop:-10, marginRight:20, padding:10, borderRadius:8 }}>
99
+ <Text size={14} theme='description'>Manual ACH account is pending verification</Text>
85
100
  </View>
86
101
  :<></>}
87
102
  </View>
88
103
  }
89
104
  </View>
90
- </ScrollView>
105
+ )
106
+ default: return <></>
107
+ }
108
+ }
109
+
110
+ return (
111
+ <View style={{ flex:1 }}>
112
+ <FlatList
113
+ data={ach_add_sections}
114
+ key={'ach_add_sections'}
115
+ keyExtractor={(item) => item}
116
+ renderItem={renderSections}
117
+ />
118
+
119
+
91
120
  <View nativeID='action_row' style={{ flexDirection:'row', justifyContent:'space-between', padding:10 }}>
92
121
  <Button
93
122
  title={!ibt_account && !manual_account ? 'DO THIS LATER' : 'All Set!'}
94
- title_color={!ibt_account && !manual_account ? Colors.utility.error: Colors.utility.success}
123
+ title_color={!ibt_account && !manual_account ? Colors.text.error: Colors.text.success}
95
124
  backgroundColor='transparent'
96
125
  onPress={() => onClose()}
97
126
  />
98
- <TouchableOpacity
99
- style={manual_account || ibt_account ? button_styles.wizard_valid : button_styles.wizard_invalid}
127
+ <Button
128
+ float
129
+ style={{ borderRadius:100, height:50, width:50, justifyContent:'center', alignItems:'center' }}
100
130
  onPress={() => {
101
131
  if(ibt_account) { return onNext(ibt_account) }
102
132
  if(manual_account){ return onNext(manual_account) }
@@ -104,8 +134,8 @@ const ACHAddCard = ({ accounts, onClose, onNext, onManualACH, onLinkACH }:Accoun
104
134
  }}
105
135
  disabled={manual_account || ibt_account ? false : true}
106
136
  >
107
- <Icons.ChevronIcon size={20} direction='right' color={Colors.brand.midnight}/>
108
- </TouchableOpacity>
137
+ <Icons.ChevronIcon size={20} direction='right' color={Colors.text.h1}/>
138
+ </Button>
109
139
  </View>
110
140
  </View>
111
141
  )
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { View, TouchableOpacity } from "react-native";
3
2
  import type { AccountProps } from '../../types';
4
- import { Icons, Text } from '../../Components';
5
- import Colors from '../../constants/colors';
6
- import { view_styles } from '../../constants/styles';
3
+ import { Icons } from '../../Components';
7
4
  import moment from 'moment-mini';
5
+ import { Button, Text, View } from '../../Components/Themed';
6
+ import { useColors } from '../../constants/useColors';
8
7
 
9
8
  type AccountCardProps = {
10
9
  account:AccountProps,
@@ -13,12 +12,13 @@ type AccountCardProps = {
13
12
  }
14
13
 
15
14
  const AccountCard = ({ account, hide_status, onSelectAccount }: AccountCardProps) => {
15
+ const Colors = useColors();
16
16
 
17
17
  const getIcon = () => {
18
18
  switch(account.account_type){
19
19
  case 'ach':
20
- if(account.ach_detail?.payment_provider == 'nuvei'){ return <Icons.BankInstantIcon size={28} color={Colors.brand.midnight}/> }
21
- return <Icons.BankIcon size={28} color={Colors.utility.success} />
20
+ if(account.ach_detail?.payment_provider == 'nuvei'){ return <Icons.BankInstantIcon size={28} color={Colors.text.h1}/> }
21
+ return <Icons.BankIcon size={28} color={Colors.text.success} />
22
22
  case 'card':
23
23
  return renderCardIcon(account.card_detail?.card_brand)
24
24
  case 'paypal':
@@ -39,17 +39,17 @@ const AccountCard = ({ account, hide_status, onSelectAccount }: AccountCardProps
39
39
  case 'discover':
40
40
  return <Icons.DiscoverCardIcon size={28} />
41
41
  default:
42
- return <Icons.CreditCardIcon size={22} color={Colors.brand.midnight}/>
42
+ return <Icons.CreditCardIcon size={22} color={Colors.text.h1}/>
43
43
  }
44
44
  }
45
45
 
46
46
  const getStatusColor = () => {
47
47
  switch(account.status){
48
- case 'active': return Colors.utility.success
49
- case 'inactive': return Colors.utility.error
50
- case 'suspended': return Colors.utility.warning
51
- case 'verify': return Colors.utility.warning
52
- default: return Colors.brand.midnight
48
+ case 'active': return Colors.text.success
49
+ case 'inactive': return Colors.text.error
50
+ case 'suspended': return Colors.text.warning
51
+ case 'verify': return Colors.text.warning
52
+ default: return Colors.text.h1
53
53
  }
54
54
  }
55
55
 
@@ -69,25 +69,26 @@ const AccountCard = ({ account, hide_status, onSelectAccount }: AccountCardProps
69
69
  }
70
70
 
71
71
  return (
72
- <TouchableOpacity
73
- style={{ borderRadius:8, backgroundColor:Colors.shades.white, ...view_styles.float }}
72
+ <Button
73
+ style={{ padding:10 }}
74
+ float
74
75
  onPress={() => onSelectAccount(account)}
75
76
  >
76
- <View style={{ padding:10, flexDirection:'row' }}>
77
- <View style={{ marginRight:10, justifyContent:'center', alignItems:'center' }}>
77
+ <View transparent style={{ flexDirection:'row' }}>
78
+ <View transparent style={{ marginRight:10, justifyContent:'center', alignItems:'center' }}>
78
79
  {getIcon()}
79
80
  </View>
80
- <View style={{ flex:1 }}>
81
- <Text size={16} color={Colors.brand.midnight} weight='bold'>{account.account_label}</Text>
82
- <Text style={{ marginTop:4 }} size={14} color={Colors.brand.midnight} weight='regular'>{getDescriptionLabel()}</Text>
81
+ <View transparent style={{ flex:1 }}>
82
+ <Text theme='h1'>{account.account_label}</Text>
83
+ <Text style={{ marginTop:4 }} theme='description'>{getDescriptionLabel()}</Text>
83
84
  </View>
84
85
  {!hide_status ?
85
- <View>
86
+ <View transparent>
86
87
  <Text size={12} color={getStatusColor()} weight='bold'>{account.status.toUpperCase()}</Text>
87
88
  </View>
88
89
  :<></>}
89
90
  </View>
90
- </TouchableOpacity>
91
+ </Button>
91
92
  )
92
93
  }
93
94
 
@@ -1,9 +1,10 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { FlatList, TouchableOpacity, View, ScrollView } from 'react-native';
2
+ import { FlatList } from 'react-native';
3
3
  import type { AccountLimitProps, AccountProps } from '../../types';
4
4
  import { WalletApi, WalletHelpers } from '../api';
5
- import { Button, Icons, Text } from '../../Components';
6
- import Colors from '../../constants/colors';
5
+ import { Icons, Toggle } from '../../Components';
6
+ import { useColors } from '../../constants/useColors';
7
+ import { Button, Text, View } from '../../Components/Themed';
7
8
 
8
9
  const limit_amount_options = [ 50, 100, 250, 500, 1000]
9
10
  const frequency_options = ['Daily', 'Weekly', 'Monthly']
@@ -15,8 +16,8 @@ type AccountLimitManagerProps = {
15
16
  }
16
17
 
17
18
  const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitManagerProps ) => {
19
+ const Colors = useColors();
18
20
  const [ loading, setLoading ] = useState(false);
19
- const [ freq_width, setFreqWidth ] = useState(0);
20
21
  const [ disclaimer, setDisclaimer ] = useState(false);
21
22
  const [ dropdown_visible, setDropdownVisible ] = useState(false);
22
23
  const [ active_frequency, setActiveFrequency ] = useState('Daily')
@@ -102,41 +103,34 @@ const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitMana
102
103
  const renderOptions = (data: { item:number, index:number }) => {
103
104
  //const selected = data.item == active_amount ? true : false
104
105
  return (
105
- <TouchableOpacity style={{ padding:10 }} onPress={() => {
106
+ <Button style={{ padding:10, borderBottomWidth:1, borderColor:Colors.borders.light }} onPress={() => {
106
107
  setActiveAmount(data.item);
107
108
  setDropdownVisible(false);
108
109
  }}>
109
- <Text color={Colors.brand.midnight} weight='semibold' size={14}>${data.item}</Text>
110
- </TouchableOpacity>
110
+ <Text theme='h2'>${data.item}</Text>
111
+ </Button>
111
112
  )
112
113
  }
113
114
 
114
- const renderFrequencies = (data: {item:string, index:number}) => {
115
- const selected = data.item == active_frequency ? true : false
116
- return (
117
- <TouchableOpacity style={{ width:freq_width/3, backgroundColor:selected?Colors.shades.white:'transparent', borderRadius:4, padding:10 }} onPress={() => setActiveFrequency(data.item)}>
118
- <Text size={14} color={Colors.brand.midnight} weight={selected?'bold':'regular'} textAlign='center'>{data.item}</Text>
119
- </TouchableOpacity>
120
- )
121
- }
122
115
  const valid = active_amount && active_frequency ? true : false
123
116
  return (
124
117
  <View style={{ flex:1 }}>
125
118
  <View style={{ padding:20 }}>
126
- <Text size={30} color={Colors.brand.midnight} weight='bold'>{account_limit?.status == 'active'?'Update Deposit Limits':'Deposit Limits'}</Text>
127
- <Text style={{ marginTop:15 }} size={16} color={Colors.brand.midnight} weight='regular'>Set your own limit for depositing.</Text>
119
+ <Text size={30} theme='h1'>{account_limit?.status == 'active'?'Update Deposit Limits':'Deposit Limits'}</Text>
120
+ <Text style={{ marginTop:15 }} size={16} theme='description'>Set your own limit for depositing.</Text>
128
121
  </View>
129
- <ScrollView style={{ flex:1 }}>
122
+ <View style={{ flex:1 }}>
130
123
  <View style={{padding:16}}>
131
- <Text size={16} color={Colors.brand.cobalt} weight='semibold'>Amount</Text>
132
- <TouchableOpacity
124
+ <Text size={16} theme='h2'>Amount</Text>
125
+ <Button
126
+ float
133
127
  onPress={() => setDropdownVisible(!dropdown_visible)}
134
- style={{marginTop:8, flexDirection:'row', alignItems:'center', justifyContent:'space-between', padding:15, backgroundColor:Colors.shades.shade100}}>
135
- <Text color={Colors.brand.cobalt} size={14} weight='semibold'>{active_amount?`$${active_amount}`:'Select Limit'}</Text>
136
- <Icons.ChevronIcon direction='down' color={Colors.brand.cobalt} size={8} />
137
- </TouchableOpacity>
128
+ style={{marginTop:8, flexDirection:'row', alignItems:'center', justifyContent:'space-between', padding:15 }}>
129
+ <Text theme='h2'>{active_amount?`$${active_amount}`:'Select Limit'}</Text>
130
+ <Icons.ChevronIcon direction='down' color={Colors.text.h1} size={8} />
131
+ </Button>
138
132
  {dropdown_visible ?
139
- <View style={{ borderBottomRightRadius:8, borderBottomLeftRadius:8, padding:10, borderWidth:1, borderTopWidth:1, borderColor:Colors.shades.shade600 }}>
133
+ <View style={{ borderBottomRightRadius:8, borderBottomLeftRadius:8, padding:10, borderWidth:1, borderTopWidth:1, borderColor:Colors.borders.light }}>
140
134
  <FlatList
141
135
  data={limit_amount_options}
142
136
  renderItem={renderOptions}
@@ -145,53 +139,43 @@ const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitMana
145
139
  :<></>}
146
140
  </View>
147
141
  <View style={{ padding:16 }}>
148
- <Text size={16} color={Colors.brand.cobalt} weight='semibold'>Frequency</Text>
149
- <View style={{ marginTop:8, backgroundColor: '#e9e9e9', padding:2, borderRadius:4 }} onLayout={(ev) => {
150
- setFreqWidth(ev.nativeEvent.layout.width)
151
- }}>
152
- <FlatList
153
- data={frequency_options}
154
- renderItem={renderFrequencies}
155
- horizontal
156
- showsHorizontalScrollIndicator={false}
157
- />
158
- </View>
142
+ <Text style={{ marginBottom:10 }} size={16} theme='h2'>Frequency</Text>
143
+ <Toggle
144
+ options={frequency_options.map(o => { return { key: o, label:o } })}
145
+ selected_option={active_frequency}
146
+ onSelectOption={(option) => setActiveFrequency(option)}
147
+ />
159
148
  </View>
160
149
  {account_limit?.status == 'active' ?
161
- <View style={{ margin:10, borderRadius:8, backgroundColor:Colors.shades.shade600, padding:10 }}>
162
- <Text size={14} color={Colors.brand.midnight} weight='semibold' textAlign='center'>There is an active limit on this account of ${account_limit.limit_amount} every {account_limit.limit_days} days</Text>
150
+ <View style={{ margin:10, borderRadius:8, backgroundColor:Colors.borders.light, padding:10 }}>
151
+ <Text size={14} theme='h2' textAlign='center'>There is an active limit on this account of ${account_limit.limit_amount} every {account_limit.limit_days} days</Text>
163
152
  <Button
164
153
  style={{ marginTop:10 }}
165
154
  title='REMOVE'
166
- title_color={Colors.shades.white}
167
- padding={15}
168
- backgroundColor={Colors.utility.error}
155
+ type='error'
169
156
  onPress={() => handleRemoveAccountLimit()}
170
157
  />
171
158
  </View>
172
159
  :<></>}
173
- </ScrollView>
160
+ </View>
174
161
 
175
162
  { valid ?
176
163
  <View nativeID='limit_disclaimer' style={{ margin:10 }}>
177
- <TouchableOpacity style={{ flexDirection:'row', padding:5 }} onPress={() => setDisclaimer(!disclaimer)}>
178
- <View style={{ justifyContent:'center', marginRight:10, alignItems:'center', height:25, width:25, borderRadius:4, backgroundColor: disclaimer ? Colors.brand.midnight : 'transparent', borderWidth:1, borderColor:Colors.brand.midnight }}>
164
+ <Button style={{ flexDirection:'row', padding:5 }} onPress={() => setDisclaimer(!disclaimer)}>
165
+ <View style={{ justifyContent:'center', marginRight:10, alignItems:'center', height:25, width:25, borderRadius:4, backgroundColor: disclaimer ? Colors.text.h1 : 'transparent', borderWidth:1, borderColor:Colors.text.h1 }}>
179
166
  {disclaimer ?
180
- <Icons.CheckIcon color={Colors.shades.white} size={14} />
167
+ <Icons.CheckIcon color={Colors.text.h1} size={14} />
181
168
  :<></>}
182
169
  </View>
183
- <Text size={14} color={Colors.brand.midnight} weight='regular'>I confirm I would like to the my deposit limit to {active_amount}, and deposit frequency to {active_frequency}</Text>
184
- </TouchableOpacity>
170
+ <Text size={14} theme='description'>I confirm I would like to the my deposit limit to {active_amount}, and deposit frequency to {active_frequency}</Text>
171
+ </Button>
185
172
  </View>
186
173
  :<></>}
187
174
  <View nativeID='action_row' style={{ flexDirection:'row', padding:20 }}>
188
175
  <Button
189
176
  style={{ flex:1, marginRight:5, opacity: 1 }}
190
177
  title={'CLOSE'}
191
- title_color={Colors.brand.electric}
192
- borderColor={Colors.brand.electric}
193
- borderWidth={1}
194
- padding={15}
178
+ type='close'
195
179
  onPress={() => onCancel()}
196
180
  />
197
181
  <Button
@@ -199,9 +183,7 @@ const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitMana
199
183
  title={'SAVE LIMIT'}
200
184
  disabled={!valid||!disclaimer}
201
185
  loading={loading}
202
- title_color={Colors.shades.white}
203
- backgroundColor={Colors.brand.electric}
204
- padding={15}
186
+ type='success'
205
187
  onPress={() => handleSetLimit()}
206
188
  />
207
189
  </View>