@stokr/components-library 0.5.3 → 0.5.5

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 (433) hide show
  1. package/build/asset-manifest.json +9 -0
  2. package/build/favicon.ico +0 -0
  3. package/build/index.html +1 -0
  4. package/build/logo192.png +0 -0
  5. package/build/logo512.png +0 -0
  6. package/build/manifest.json +25 -0
  7. package/build/robots.txt +3 -0
  8. package/build/static/js/main.31d6cfe0.js +0 -0
  9. package/dist/AccountBalance/AccountBalance.js +43 -0
  10. package/dist/AccountBalance/AccountBalance.stories.js +75 -0
  11. package/dist/AccountBalance/AccountBalance.styles.js +38 -0
  12. package/dist/AdminDashboard/Table/Table.js +120 -0
  13. package/dist/AdminDashboard/Table/Table.styles.js +111 -0
  14. package/dist/AgreementItem/AgreementItem.js +38 -0
  15. package/dist/AgreementItem/AgreementItem.stories.js +98 -0
  16. package/dist/AgreementItem/AgreementItem.styles.js +31 -0
  17. package/dist/AnalyticGraphs/Analytic.js +528 -0
  18. package/dist/AnalyticGraphs/Analytic.styles.js +49 -0
  19. package/dist/BackButton/BackButton.js +22 -0
  20. package/dist/BackButton/BackButton.stories.js +24 -0
  21. package/dist/BackButton/BackButton.styles.js +110 -0
  22. package/dist/Background/Background.js +34 -0
  23. package/dist/Background/Background.stories.js +50 -0
  24. package/dist/Background/Background.styles.js +113 -0
  25. package/dist/BarChart/BarChart.js +258 -0
  26. package/dist/BarChart/BarChart.stories.js +46 -0
  27. package/dist/BarChart/BarChart.styles.js +93 -0
  28. package/dist/BarChartLegend/BarChartLegend.js +74 -0
  29. package/dist/BarChartLegend/BarChartLegend.styles.js +26 -0
  30. package/dist/BasicTable/BasicTable.js +20 -0
  31. package/dist/BasicTable/BasicTable.stories.js +51 -0
  32. package/dist/BasicTable/BasicTable.styles.js +64 -0
  33. package/dist/Button/Button.stories.js +63 -0
  34. package/dist/Button/Button.styles.js +180 -0
  35. package/dist/ButtonContainer/ButtonContainer.styles.js +25 -0
  36. package/dist/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +35 -0
  37. package/dist/CapitalRaisedSummary/CaptialRaisedSummary.js +23 -0
  38. package/dist/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +36 -0
  39. package/dist/ChartBox/ChartBox.js +34 -0
  40. package/dist/ChartBox/ChartBox.stories.js +9 -0
  41. package/dist/ChartBox/ChartBox.styles.js +50 -0
  42. package/dist/ChartBox/ChartBoxDistribution.js +20 -0
  43. package/dist/ChartBox/ChartBoxDistribution.stories.js +10 -0
  44. package/dist/ChartLegend/ChartLegend.js +37 -0
  45. package/dist/ChartLegend/ChartLegend.stories.js +74 -0
  46. package/dist/ChartLegend/ChartLegend.styles.js +67 -0
  47. package/dist/Checkbox/Checkbox.js +108 -0
  48. package/dist/Checkbox/Checkbox.stories.js +82 -0
  49. package/dist/Checkbox/Checkbox.styles.js +123 -0
  50. package/dist/Checklist/UserChecklist.js +247 -0
  51. package/dist/Checklist/UserChecklist.stories.js +115 -0
  52. package/dist/ComponentScroll/ComponentScroll.js +99 -0
  53. package/dist/ComponentScroll/ComponentScroll.stories.js +92 -0
  54. package/dist/ComponentScroll/ComponentScroll.styles.js +104 -0
  55. package/dist/ComponentWrapper/ComponentWrapper.styles.js +128 -0
  56. package/dist/CryptoAddress/ComponentWrap.js +24 -0
  57. package/dist/CryptoAddress/CryptoAddress.js +124 -0
  58. package/dist/CryptoAddress/CryptoAddress.stories.js +163 -0
  59. package/dist/CryptoAddress/CryptoAddress.styles.js +399 -0
  60. package/dist/CryptoAddress/RadioWrap.js +36 -0
  61. package/dist/CryptoAddressDetails/CryptoAddressDetails.js +42 -0
  62. package/dist/CryptoAddressDetails/CryptoAddressDetails.stories.js +65 -0
  63. package/dist/CryptoAddressDetails/CryptoAddressDetails.styles.js +114 -0
  64. package/dist/CryptoAddressWrapper/CryptoAddressWrapper.js +30 -0
  65. package/dist/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +98 -0
  66. package/dist/DonutChart/DonutChart.js +137 -0
  67. package/dist/DonutChart/DonutChart.stories.js +39 -0
  68. package/dist/DonutChart/DonutChart.styles.js +101 -0
  69. package/dist/DoubleButton/DoubleButton.styles.js +25 -0
  70. package/dist/ErrorMessage/ErrorMessage.styles.js +9 -0
  71. package/dist/FAQ/FAQ.js +40 -0
  72. package/dist/FAQ/FAQ.stories.js +63 -0
  73. package/dist/FAQ/FAQ.styles.js +69 -0
  74. package/dist/Footer/Footer.js +54 -0
  75. package/dist/Footer/Footer.stories.js +41 -0
  76. package/dist/Footer/Footer.styles.js +230 -0
  77. package/dist/Footer/FooterLayout.js +114 -0
  78. package/dist/Footer/FooterLayout.stories.js +20 -0
  79. package/dist/Footer/FooterMenu.js +83 -0
  80. package/dist/Footer/FooterMenu.stories.js +110 -0
  81. package/dist/Footer/FooterMenu.styles.js +274 -0
  82. package/dist/Footer/index.js +4 -0
  83. package/dist/{03f9f978feb2b015b6812ba10f689967.png → Footer/lemonway.png} +0 -0
  84. package/dist/Footer/sicos-logo.svg +1 -0
  85. package/dist/ForgotPasswordModal/ForgotPasswordModal.js +89 -0
  86. package/dist/ForgotPasswordModal/ForgotPasswordModal.stories.js +31 -0
  87. package/dist/Form/Form.js +38 -0
  88. package/dist/Form/Form.stories.js +24 -0
  89. package/dist/Form/Form.styles.js +66 -0
  90. package/dist/FullscreenCard/FullscreenCard.styles.js +36 -0
  91. package/dist/Grid/Grid.styles.js +109 -0
  92. package/dist/Header/Header.js +369 -0
  93. package/dist/Header/Header.stories.js +172 -0
  94. package/dist/Header/Header.styles.js +493 -0
  95. package/dist/Icon/Icon.style.js +75 -0
  96. package/dist/InfoIcon/InfoIcon.js +40 -0
  97. package/dist/InfoIcon/InfoIcon.stories.js +40 -0
  98. package/dist/InfoIcon/InfoIcon.styles.js +42 -0
  99. package/dist/InfoPanel/InfoPanel.js +115 -0
  100. package/dist/Input/DatePickerInput.js +64 -0
  101. package/dist/Input/DatePickerInput.stories.js +80 -0
  102. package/dist/Input/DatePickerInput.styles.js +67 -0
  103. package/dist/Input/Input.js +86 -0
  104. package/dist/Input/Input.stories.js +134 -0
  105. package/dist/Input/Input.styles.js +126 -0
  106. package/dist/Input/InputPassword.js +122 -0
  107. package/dist/Input/InputPassword.stories.js +72 -0
  108. package/dist/Input/InputPassword.styles.js +139 -0
  109. package/dist/Input/RangeInput.js +46 -0
  110. package/dist/Input/RangeInput.stories.js +48 -0
  111. package/dist/Input/RangeInput.styles.js +125 -0
  112. package/dist/Input/Select.js +130 -0
  113. package/dist/Input/Select.stories.js +129 -0
  114. package/dist/Input/Select.styles.js +143 -0
  115. package/dist/InvestCalculator/InvestCalculator.js +353 -0
  116. package/dist/InvestCalculator/InvestCalculator.stories.js +129 -0
  117. package/dist/InvestCalculator/InvestCalculator.styles.js +78 -0
  118. package/dist/InvestmentStat/InvestmentStat.js +33 -0
  119. package/dist/InvestmentStat/InvestmentStat.stories.js +44 -0
  120. package/dist/InvestmentStat/InvestmentStat.styles.js +53 -0
  121. package/dist/KYCFlow/BasicInfo.js +396 -0
  122. package/dist/KYCFlow/Confirmation.js +37 -0
  123. package/dist/KYCFlow/DocumentFileUpload.js +240 -0
  124. package/dist/KYCFlow/DocumentScan.js +66 -0
  125. package/dist/KYCFlow/DocumentScanUpload.js +228 -0
  126. package/dist/KYCFlow/DocumentSelect.js +101 -0
  127. package/dist/KYCFlow/DocumentSuccess.js +54 -0
  128. package/dist/KYCFlow/DocumentUpload.js +44 -0
  129. package/dist/KYCFlow/DocumentVerificationType.js +114 -0
  130. package/dist/KYCFlow/FaceScan.js +45 -0
  131. package/dist/KYCFlow/FaceScanRecognition.js +52 -0
  132. package/dist/KYCFlow/FaceScanSuccess.js +47 -0
  133. package/dist/KYCFlow/Terms.js +99 -0
  134. package/dist/KYCFlow/_styles.js +284 -0
  135. package/dist/KYCFlow/index.js +14 -0
  136. package/dist/KYCSelectBox/KYCSelectBox.styles.js +62 -0
  137. package/dist/LatestUpdate/LatestUpdate.js +35 -0
  138. package/dist/LatestUpdate/LatestUpdate.stories.js +51 -0
  139. package/dist/LatestUpdate/LatestUpdate.styles.js +77 -0
  140. package/dist/Layout/Layout-func-no-work.js +67 -0
  141. package/dist/Layout/Layout.js +68 -0
  142. package/dist/Layout/Layout.stories.js +55 -0
  143. package/dist/LearnMoreCarousel/LearnMoreCarousel.js +39 -0
  144. package/dist/LearnMoreCarousel/LearnMoreCarousel.stories.js +58 -0
  145. package/dist/LearnMoreCarousel/LearnMoreCarousel.styles.js +205 -0
  146. package/dist/LearnMorePage/LearnMore.js +199 -0
  147. package/dist/LearnMorePage/LearnMore.shared.styles.js +49 -0
  148. package/dist/LearnMorePage/LearnMore.stories.js +41 -0
  149. package/dist/LearnMorePage/LearnMore.styles.js +250 -0
  150. package/dist/LearnMorePage/LearnMoreExampleObject.js +102 -0
  151. package/dist/LearnMorePage/LearnMoreItem.js +59 -0
  152. package/dist/LearnMorePage/LearnMoreItem.stories.js +54 -0
  153. package/dist/LearnMorePage/LearnMoreItem.styles.js +218 -0
  154. package/dist/LearnMoreSection/LearnMore.js +144 -0
  155. package/dist/LearnMoreSection/LearnMore.stories.js +23 -0
  156. package/dist/LearnMoreSection/LearnMore.styles.js +134 -0
  157. package/dist/LearnMoreSection/LearnMoreItem.js +39 -0
  158. package/dist/LearnMoreSection/LearnMoreItem.stories.js +52 -0
  159. package/dist/LearnMoreSection/LearnMoreItem.styles.js +54 -0
  160. package/dist/LoginModal/LoginModal.js +125 -0
  161. package/dist/MainMenu/DynamicMainMenu.js +41 -0
  162. package/dist/MainMenu/MainMenu.js +207 -0
  163. package/dist/MainMenu/MainMenu.styles.js +361 -0
  164. package/dist/MatomoConnect/Matomo.js +221 -0
  165. package/dist/MatomoConnect/Matomo_fuckup.js +185 -0
  166. package/dist/MenuNav/MenuNav.styles.js +88 -0
  167. package/dist/Modal/Modal.js +71 -0
  168. package/dist/Modal/Modal.stories.js +67 -0
  169. package/dist/Modal/Modal.styles.js +407 -0
  170. package/dist/MultiProgressBar/MultiProgressBar.js +33 -0
  171. package/dist/MultiProgressBar/MultiProgressBar.stories.js +61 -0
  172. package/dist/MultiProgressBar/MultiProgressBar.styles.js +92 -0
  173. package/dist/Newsletter/Newsletter.js +106 -0
  174. package/dist/Newsletter/Newsletter.stories.js +8 -0
  175. package/dist/Newsletter/Newsletter.styles.js +173 -0
  176. package/dist/NotificationContext/NotificationContext.js +126 -0
  177. package/dist/NotificationContext/NotificationContext.stories.js +32 -0
  178. package/dist/NotificationCounter/NotificationCounter.styles.js +23 -0
  179. package/dist/Number/Number.js +25 -0
  180. package/dist/Number/Number.stories.js +18 -0
  181. package/dist/Number/Number.styles.js +21 -0
  182. package/dist/PageTransition/PageTransition.js +42 -0
  183. package/dist/Process/Process.stories.js +34 -0
  184. package/dist/Process/Process.styles.js +87 -0
  185. package/dist/ProfileBadge/ProfileBadge.js +46 -0
  186. package/dist/ProfileBadge/ProfileBadge.stories.js +37 -0
  187. package/dist/ProfileBadge/ProfileBadge.styles.js +47 -0
  188. package/dist/ProfileBox/ProfileBox.js +29 -0
  189. package/dist/ProfileBox/ProfileBox.stories.js +27 -0
  190. package/dist/ProfileBox/ProfileBox.styles.js +60 -0
  191. package/dist/ProfileHeader/ProfileHeader-CLb4.js +401 -0
  192. package/dist/ProfileHeader/ProfileHeader.js +268 -0
  193. package/dist/ProfileHeader/ProfileHeader.styles.js +114 -0
  194. package/dist/ProfileStat/ProfileStat.js +32 -0
  195. package/dist/ProfileStat/ProfileStat.stories.js +58 -0
  196. package/dist/ProfileStat/ProfileStat.styles.js +80 -0
  197. package/dist/ProofOfAddress/ProofOfAddress.styles.js +76 -0
  198. package/dist/ROI/ROI.js +261 -0
  199. package/dist/ROI/ROI.styles.js +71 -0
  200. package/dist/ROI/ROIChart.js +348 -0
  201. package/dist/ROI/ROIChart.styles.js +98 -0
  202. package/dist/ROI/ROIModal.js +74 -0
  203. package/dist/ROI/ROIScenarioBox.js +46 -0
  204. package/dist/ROI/ROIScenarioBox.styles.js +131 -0
  205. package/dist/Radio/Radio.js +58 -0
  206. package/dist/Radio/Radio.stories.js +65 -0
  207. package/dist/Radio/Radio.styles.js +93 -0
  208. package/dist/RefreshButton/RefreshButton.js +14 -0
  209. package/dist/RefreshButton/RefreshButton.stories.js +31 -0
  210. package/dist/RefreshButton/RefreshButton.styles.js +57 -0
  211. package/dist/RegisterAlgorand/AlgoAddressName.js +103 -0
  212. package/dist/RegisterAlgorand/AlgoAdressSelect.js +274 -0
  213. package/dist/RegisterAlgorand/AlgoConnectWallet.js +37 -0
  214. package/dist/RegisterAlgorand/AlgoSuccess.js +28 -0
  215. package/dist/RegisterAlgorand/Algorand.stories.js +63 -0
  216. package/dist/RegisterAlgorand/ChooseWallet.js +77 -0
  217. package/dist/RegisterAlgorand/SelectProject.js +77 -0
  218. package/dist/RegisterAlgorand/_styles.js +30 -0
  219. package/dist/RegisterAlgorand/flow.js +243 -0
  220. package/dist/RegisterAlgorand/flowWithMemo.js +244 -0
  221. package/dist/RegisterAlgorand/index.js +7 -0
  222. package/dist/RegisterConfirmModal/RegisterConfirmModal.js +30 -0
  223. package/dist/RegisterConfirmModal/RegisterConfirmModal.stories.js +22 -0
  224. package/dist/RegisterConfirmModal/RegisterConfirmModal.styles.js +19 -0
  225. package/dist/RegisterEthereum/EthAddressLedger.js +151 -0
  226. package/dist/RegisterEthereum/EthAddressMetamask.js +165 -0
  227. package/dist/RegisterEthereum/EthAddressName.js +101 -0
  228. package/dist/RegisterEthereum/EthConnectLedger.js +117 -0
  229. package/dist/RegisterEthereum/EthConnectMetamask.js +25 -0
  230. package/dist/RegisterEthereum/EthFinish.js +32 -0
  231. package/dist/RegisterEthereum/EthIntro.js +77 -0
  232. package/dist/RegisterEthereum/_styles.js +30 -0
  233. package/dist/RegisterEthereum/index.js +9 -0
  234. package/dist/RegisterLiquidSteps/RegisterLiquidSteps.js +75 -0
  235. package/dist/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +65 -0
  236. package/dist/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +69 -0
  237. package/dist/RegisterLiquidSteps/assets/nav_green.svg +31 -0
  238. package/dist/RegisterLiquidSteps/assets/video.mp4 +0 -0
  239. package/dist/RegisterLiquidSteps/assets/videothumbnail.jpg +0 -0
  240. package/dist/RegisterLiquidSteps/complete.js +29 -0
  241. package/dist/RegisterLiquidSteps/flow.js +141 -0
  242. package/dist/RegisterLiquidSteps/index.js +29 -0
  243. package/dist/RegisterLiquidSteps/register-liquid.js +197 -0
  244. package/dist/RegisterModal/RegisterModal.js +143 -0
  245. package/dist/RegisterModal/RegisterModal.stories.js +35 -0
  246. package/dist/RequestDataBox/RequestDataBox.js +21 -0
  247. package/dist/RequestDataBox/RequestDataBox.stories.js +29 -0
  248. package/dist/RequestDataBox/RequestDataBox.styles.js +40 -0
  249. package/dist/RiskQuestionnaire/RiskQuestionnaireContext.js +111 -0
  250. package/dist/RiskQuestionnaire/_styles.js +6 -0
  251. package/dist/SEO/SEO.js +63 -0
  252. package/dist/SEO/SEO.stories.js +53 -0
  253. package/dist/SectionTitle/SectionTitle.styles.js +23 -0
  254. package/dist/SideLine/SideLine.js +4 -0
  255. package/dist/SideLine/SideLine.stories.js +20 -0
  256. package/dist/SideLine/SideLine.styles.js +29 -0
  257. package/dist/SigningSubflow/SignSubAddressMetamask.js +105 -0
  258. package/dist/SigningSubflow/SignSubConnectLedger.js +114 -0
  259. package/dist/SigningSubflow/SignSubConnectMetamask.js +101 -0
  260. package/dist/SigningSubflow/SignSubIntro.js +45 -0
  261. package/dist/SigningSubflow/SignSubSendLedger.js +114 -0
  262. package/dist/SigningSubflow/SignSubSendMetamask.js +53 -0
  263. package/dist/SigningSubflow/SignSubTransactionLedger.js +125 -0
  264. package/dist/SigningSubflow/SignSubTransactionMetamask.js +130 -0
  265. package/dist/SigningSubflow/_styles.js +59 -0
  266. package/dist/SigningSubflow/index.js +9 -0
  267. package/dist/Slider/Slider.js +43 -0
  268. package/dist/Slider/Slider.stories.js +63 -0
  269. package/dist/Slider/Slider.styles.js +115 -0
  270. package/dist/SpanButton/SpanButton.styles.js +14 -0
  271. package/dist/StatusBadge/StatusBadge.styles.js +16 -0
  272. package/dist/StepController/StepController.js +73 -0
  273. package/dist/StepController/StepController.stories.js +52 -0
  274. package/dist/StepController/StepController.styles.js +27 -0
  275. package/dist/StepController/StepControllerContext.js +61 -0
  276. package/dist/StepController/StepControllerProgress.js +28 -0
  277. package/dist/StepController/StepControllerProgress.stories.js +41 -0
  278. package/dist/StepsProgress/StepsProgress.js +95 -0
  279. package/dist/StepsProgress/StepsProgress.stories.js +23 -0
  280. package/dist/StepsProgress/StepsProgress.styles.js +97 -0
  281. package/dist/StokrLoader/StokrLoader.js +60 -0
  282. package/dist/StokrLoader/media.js +22 -0
  283. package/dist/StokrLoader/stokr_loader_white_400x400.gif +0 -0
  284. package/dist/SvgIcons/AdminBadgeSvg.js +16 -0
  285. package/dist/SvgIcons/CameraSvg.js +26 -0
  286. package/dist/SvgIcons/CapsLockSvg.js +21 -0
  287. package/dist/SvgIcons/DocumentBackSvg.js +25 -0
  288. package/dist/SvgIcons/DocumentSmallSvg.js +51 -0
  289. package/dist/SvgIcons/DocumentSvg.js +28 -0
  290. package/dist/SvgIcons/Early.js +14 -0
  291. package/dist/SvgIcons/EthSvg.js +30 -0
  292. package/dist/SvgIcons/EurSvg.js +16 -0
  293. package/dist/SvgIcons/FaceScanIconSvg.js +21 -0
  294. package/dist/SvgIcons/FourSvg.js +11 -0
  295. package/dist/SvgIcons/Glassess.js +19 -0
  296. package/dist/SvgIcons/Icons_Badge.png +0 -0
  297. package/dist/SvgIcons/LogoSvg.js +14 -0
  298. package/dist/SvgIcons/OneSvg.js +13 -0
  299. package/dist/SvgIcons/PassportSvg.js +46 -0
  300. package/dist/SvgIcons/RefreshSvg.js +17 -0
  301. package/dist/SvgIcons/SocialFacebook.js +15 -0
  302. package/dist/SvgIcons/SocialInstagram.js +15 -0
  303. package/dist/SvgIcons/SocialLinkedIn.js +15 -0
  304. package/dist/SvgIcons/SocialMedium.js +15 -0
  305. package/dist/SvgIcons/SocialReddit.js +15 -0
  306. package/dist/SvgIcons/SocialTelegram.js +15 -0
  307. package/dist/SvgIcons/SocialTwitter.js +15 -0
  308. package/dist/SvgIcons/SocialYoutube.js +15 -0
  309. package/dist/SvgIcons/ThreeSvg.js +10 -0
  310. package/dist/SvgIcons/TwoSidedDocumentSvg.js +72 -0
  311. package/dist/SvgIcons/TwoSvg.js +13 -0
  312. package/dist/SvgIcons/UpdateDefaultSvg.js +19 -0
  313. package/dist/SvgIcons/UpdateHardSvg.js +15 -0
  314. package/dist/SvgIcons/UpdateSoftSvg.js +17 -0
  315. package/dist/SvgIcons/UploadSvg.js +24 -0
  316. package/dist/SvgIcons/VerifiedBadge.js +13 -0
  317. package/dist/SvgIcons/index.js +32 -0
  318. package/dist/Switch/Switch.js +45 -0
  319. package/dist/Switch/Switch.stories.js +73 -0
  320. package/dist/Switch/Switch.styles.js +105 -0
  321. package/dist/Tabs/Tabs.js +48 -0
  322. package/dist/Tabs/Tabs.stories.js +28 -0
  323. package/dist/Tabs/Tabs.styles.js +11 -0
  324. package/dist/TabsNav/TabNav.js +21 -0
  325. package/dist/TabsNav/TabNav.stories.js +32 -0
  326. package/dist/TabsNav/TabsNav.js +23 -0
  327. package/dist/TabsNav/TabsNav.stories.js +25 -0
  328. package/dist/TabsNav/TabsNav.styles.js +80 -0
  329. package/dist/TeamOverview/TeamOverview.js +69 -0
  330. package/dist/TeamOverview/TeamOverview.stories.js +68 -0
  331. package/dist/TeamOverview/TeamOverview.styles.js +152 -0
  332. package/dist/Text/Headline.js +34 -0
  333. package/dist/Text/Headline.stories.js +40 -0
  334. package/dist/Text/StyledText.js +30 -0
  335. package/dist/Text/Text.stories.js +59 -0
  336. package/dist/Text/Text.styles.js +166 -0
  337. package/dist/TextLink/TextLink.styles.js +50 -0
  338. package/dist/ToDoList/ToDoList.js +172 -0
  339. package/dist/ToDoList/ToDoList.stories.js +123 -0
  340. package/dist/ToDoList/ToDoList.styles.js +115 -0
  341. package/dist/ToDoList/ToDoListTask.js +96 -0
  342. package/dist/ToDoList/ToDoListTask.stories.js +60 -0
  343. package/dist/ToDoList/ToDoListTask.styles.js +104 -0
  344. package/dist/TransactionDetails/TransactionDetails.js +27 -0
  345. package/dist/TransactionDetails/TransactionDetails.stories.js +47 -0
  346. package/dist/TransactionDetails/TransactionDetails.styles.js +31 -0
  347. package/dist/TransactionInfo/TransactionInfo.js +48 -0
  348. package/dist/TransactionInfo/TransactionInfo.stories.js +53 -0
  349. package/dist/TransactionInfo/TransactionInfo.styles.js +64 -0
  350. package/dist/TwoFactorModal/TwoFactorModal.js +84 -0
  351. package/dist/breakdown/Breakdown.js +124 -0
  352. package/dist/breakdown/index.js +2 -0
  353. package/dist/context/Auth.js +133 -0
  354. package/dist/context/AuthContext.js +154 -0
  355. package/dist/icons/Arrow.js +62 -0
  356. package/dist/icons/Arrow.stories.js +37 -0
  357. package/dist/icons/ArrowSimple.js +51 -0
  358. package/dist/icons/ArrowSimple.stories.js +41 -0
  359. package/dist/icons/Check.js +29 -0
  360. package/dist/icons/Check.stories.js +14 -0
  361. package/dist/icons/Facebook.js +15 -0
  362. package/dist/icons/Facebook.stories.js +15 -0
  363. package/dist/icons/Info.js +41 -0
  364. package/dist/icons/Info.stories.js +8 -0
  365. package/dist/icons/Instagram.js +15 -0
  366. package/dist/icons/Instagram.stories.js +15 -0
  367. package/dist/icons/LinkIcon.js +23 -0
  368. package/dist/icons/LinkIcon.stories.js +15 -0
  369. package/dist/icons/LinkedIn.js +29 -0
  370. package/dist/icons/LinkedIn.stories.js +8 -0
  371. package/dist/icons/Medium.js +28 -0
  372. package/dist/icons/Medium.stories.js +8 -0
  373. package/dist/icons/Reddit.js +18 -0
  374. package/dist/icons/Reddit.stories.js +15 -0
  375. package/dist/icons/Share.js +48 -0
  376. package/dist/icons/Share.stories.js +8 -0
  377. package/dist/icons/Telegram.js +28 -0
  378. package/dist/icons/Telegram.stories.js +8 -0
  379. package/dist/icons/Twitter.js +15 -0
  380. package/dist/icons/Twitter.stories.js +15 -0
  381. package/dist/icons/X.js +15 -0
  382. package/dist/icons/X.stories.js +8 -0
  383. package/dist/icons/Youtube.js +15 -0
  384. package/dist/icons/Youtube.stories.js +15 -0
  385. package/dist/icons/index.js +15 -0
  386. package/dist/index.js +177 -1
  387. package/dist/renderToBody/index.js +2 -0
  388. package/dist/renderToBody/renderToBody.js +26 -0
  389. package/dist/taxId/TaxId.stories.js +31 -0
  390. package/dist/taxId/complete.js +21 -0
  391. package/dist/taxId/flow.js +31 -0
  392. package/dist/taxId/index.js +4 -0
  393. package/dist/taxId/register-taxid.js +156 -0
  394. package/dist/video/Video.js +274 -0
  395. package/dist/video/Video.stories.js +45 -0
  396. package/dist/video/img/play-btn.svg +1 -0
  397. package/dist/video/index.js +2 -0
  398. package/package.json +128 -133
  399. package/public/favicon.ico +0 -0
  400. package/public/index.html +43 -0
  401. package/public/logo192.png +0 -0
  402. package/public/logo512.png +0 -0
  403. package/public/manifest.json +25 -0
  404. package/public/robots.txt +3 -0
  405. package/dist/07233f511246c9825a0d58e5ab2641f3.svg +0 -47
  406. package/dist/08418fc6c324f51f7e56.svg +0 -1
  407. package/dist/14aa35d4e84aebef77cf00b421fc393a.gif +0 -0
  408. package/dist/179ef2df02cb0b68c9fd.woff2 +0 -0
  409. package/dist/21e493d43617de76dbc7.woff2 +0 -0
  410. package/dist/2640959b1f9381cde047.eot +0 -0
  411. package/dist/2ba2db4ff86a2663686a100e75b50ba9.png +0 -0
  412. package/dist/311956ded96d3fd2813d.woff2 +0 -0
  413. package/dist/39f5961b2d3eb4aa5bf5.woff +0 -0
  414. package/dist/3caa0d4f9b7d58668066.woff2 +0 -0
  415. package/dist/4a510354f2f82b59fced805a8e3fe2bf.svg +0 -1
  416. package/dist/4c3c428d0ce82f840710.woff +0 -0
  417. package/dist/4e528d6445ca1974c313.woff +0 -0
  418. package/dist/55053cc0a8e6482eca64.ttf +0 -0
  419. package/dist/643c37f102b41f7f90c3.woff2 +0 -0
  420. package/dist/76dd0ed9c3f137513fd4.svg +0 -1
  421. package/dist/81f3ef07b7952e249da1.woff +0 -0
  422. package/dist/98b7d3182f652f021bc3.ttf +0 -0
  423. package/dist/9bea22b57dc165ed4382.ttf +0 -0
  424. package/dist/9ec738fbb66068dc1ca7.woff +0 -0
  425. package/dist/a1d7666a48f976227722.ttf +0 -0
  426. package/dist/a750292d6a0b5a760679.woff +0 -0
  427. package/dist/b85a961d44cc55c58050cbf7c53dd505.png +0 -0
  428. package/dist/bcb6531cf820152b7538.ttf +0 -0
  429. package/dist/c6a4bc1bd034d6303053.woff +0 -0
  430. package/dist/cbfc24090ef8bacab132.woff2 +0 -0
  431. package/dist/d2b1865643b98c0e8b54.ttf +0 -0
  432. package/dist/d97d7385fe8771611848.ttf +0 -0
  433. package/dist/index.js.LICENSE.txt +0 -1
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+ import { TransactionInfo } from './TransactionInfo';
3
+ import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
4
+ export default {
5
+ title: 'Components Library/TransactionInfo',
6
+ component: TransactionInfo,
7
+ argTypes: {
8
+ value1: {
9
+ type: 'string',
10
+ defaultValue: ''
11
+ },
12
+ unit1: {
13
+ type: 'string',
14
+ defaultValue: ''
15
+ },
16
+ name1: {
17
+ type: 'string',
18
+ defaultValue: ''
19
+ },
20
+ owner1: {
21
+ type: 'string',
22
+ defaultValue: ''
23
+ },
24
+ value2: {
25
+ type: 'string',
26
+ defaultValue: ''
27
+ },
28
+ unit2: {
29
+ type: 'string',
30
+ defaultValue: ''
31
+ },
32
+ name2: {
33
+ type: 'string',
34
+ defaultValue: ''
35
+ },
36
+ owner2: {
37
+ type: 'string',
38
+ defaultValue: ''
39
+ }
40
+ }
41
+ };
42
+ const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(TransactionInfo, args));
43
+ export const TransactionInfoExample = Template.bind({});
44
+ TransactionInfoExample.args = {
45
+ value1: 'value 1',
46
+ unit1: 'unit 1',
47
+ name1: 'name 1',
48
+ owner1: 'owner 1',
49
+ value2: 'value 2',
50
+ unit2: 'unit 2',
51
+ name2: 'name 2',
52
+ owner2: 'owner 2'
53
+ };
@@ -0,0 +1,64 @@
1
+ import styled, { css } from 'styled-components/macro';
2
+ import colors from 'styles/colors';
3
+ import theme from 'styles/theme';
4
+ export const Container = styled.div`
5
+ display: flex;
6
+ align-items: center;
7
+ `;
8
+ export const Account = styled.div``;
9
+ export const TransferIcon = styled.div.attrs({
10
+ className: 'ion'
11
+ })`
12
+ width: 16px;
13
+ height: 19px;
14
+ position: relative;
15
+ margin: auto;
16
+
17
+ &::before,
18
+ &::after {
19
+ font-size: 28px;
20
+ position: absolute;
21
+ left: 0;
22
+ }
23
+
24
+ &::before {
25
+ content: '\f117';
26
+ color: ${props => theme.cSuccess};
27
+ top: -7px;
28
+ }
29
+
30
+ &::after {
31
+ content: '\f119';
32
+ color: ${props => theme.cWarning};
33
+ top: 2px;
34
+ }
35
+ `;
36
+ export const Value = styled.div`
37
+ font-size: 22px;
38
+ font-weight: 300;
39
+ line-height: 28px;
40
+ letter-spacing: 0.8px;
41
+
42
+ ${props => props.green && css`
43
+ color: ${colors.progressGreen};
44
+ `}
45
+
46
+ ${props => props.red && css`
47
+ color: ${colors.orangishRed};
48
+ `}
49
+ `;
50
+ export const Name = styled.div`
51
+ font-size: 13px;
52
+ line-height: 16px;
53
+ letter-spacing: 0.4px;
54
+ font-style: italic;
55
+ margin-bottom: 3px;
56
+
57
+ ${props => props.green && css`
58
+ color: ${colors.progressGreen};
59
+ `}
60
+
61
+ ${props => props.red && css`
62
+ color: ${colors.orangishRed};
63
+ `}
64
+ `;
@@ -0,0 +1,84 @@
1
+ import React, { PureComponent } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { Formik } from 'formik';
4
+ import * as Yup from 'yup';
5
+ import { Modal, ModalInner } from 'components/Modal/Modal';
6
+ import Form, { FormField, FormError } from 'components/Form/Form';
7
+ import Text from 'components/Text/Text.styles';
8
+ import Input from 'components/Input/Input';
9
+ import Button from 'components/Button/Button.styles';
10
+ import { Row, Column } from 'components/Grid/Grid.styles';
11
+ import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
12
+ export class TwoFactorModal extends PureComponent {
13
+ initialValues = {
14
+ fa2code: ''
15
+ };
16
+ validationSchema = Yup.object().shape({
17
+ fa2code: Yup.string().required('Token is required')
18
+ });
19
+ render() {
20
+ const {
21
+ isModalOpen,
22
+ onModalClose,
23
+ onFormSend
24
+ } = this.props;
25
+ return /*#__PURE__*/React.createElement(Modal, {
26
+ isOpen: isModalOpen,
27
+ onClose: onModalClose
28
+ }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Column, {
29
+ part: 8
30
+ }, /*#__PURE__*/React.createElement(ModalInner, {
31
+ modalTop: true
32
+ }, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("h3", null, "Two Factor Authentication"), /*#__PURE__*/React.createElement("p", null, 'Please log in to engage in our community & invest in exciting opportunities.'))), /*#__PURE__*/React.createElement(ModalInner, {
33
+ modalBot: true
34
+ })), /*#__PURE__*/React.createElement(Column, {
35
+ part: 8
36
+ }, /*#__PURE__*/React.createElement(ModalInner, null, /*#__PURE__*/React.createElement(Formik, {
37
+ initialValues: this.initialValues,
38
+ validationSchema: this.validationSchema,
39
+ onSubmit: onFormSend
40
+ }, ({
41
+ values,
42
+ errors,
43
+ touched,
44
+ handleBlur,
45
+ setFieldValue,
46
+ setFieldTouched
47
+ }) => {
48
+ const onChangeWithTouch = e => {
49
+ const field = e.target;
50
+ setFieldValue(field.name, field.value, false);
51
+ setFieldTouched(field.name);
52
+ };
53
+ const submitDisabled = !touched.fa2code || !!errors.fa2code;
54
+ return /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(ComponentWrapper, {
55
+ noPadding: true
56
+ }, /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(Input, {
57
+ id: "two-factor",
58
+ name: "fa2code",
59
+ type: "text",
60
+ label: "Token",
61
+ value: values.fa2code,
62
+ onChange: onChangeWithTouch,
63
+ onBlur: handleBlur,
64
+ error: !!errors.fa2code,
65
+ touched: !!touched.fa2code
66
+ }), /*#__PURE__*/React.createElement(FormError, {
67
+ show: errors.fa2code && touched.fa2code
68
+ }, errors.fa2code))), /*#__PURE__*/React.createElement(ComponentWrapper, {
69
+ noPaddingBottom: true,
70
+ noPaddingHorizontal: true
71
+ }, /*#__PURE__*/React.createElement(Button, {
72
+ type: "submit",
73
+ fluid: true,
74
+ disabled: submitDisabled
75
+ }, "Login")));
76
+ })))));
77
+ }
78
+ }
79
+ TwoFactorModal.propTypes = {
80
+ isModalOpen: PropTypes.bool.isRequired,
81
+ onModalClose: PropTypes.func.isRequired,
82
+ onFormSend: PropTypes.func.isRequired
83
+ };
84
+ export default TwoFactorModal;
@@ -0,0 +1,124 @@
1
+ /* */
2
+ import styled, { css } from 'styled-components';
3
+ import dropdown from 'static/images/arrow-down-black.svg';
4
+ import rwd, { rwdMax } from 'styles/rwd';
5
+ export const Breakdown = styled.div`
6
+ text-transform: uppercase;
7
+ letter-spacing: 2.1px;
8
+ font-size: ${({
9
+ fontSize
10
+ }) => fontSize ? `${fontSize}px` : '11px'};
11
+ white-space: ${({
12
+ withWordWrap
13
+ }) => withWordWrap ? 'unset' : 'nowrap'};
14
+ line-height: 2.18;
15
+ color: inherit;
16
+ font-weight: bolder;
17
+ strong& {
18
+ font-weight: bold;
19
+ }
20
+
21
+ ${({
22
+ is101
23
+ }) => is101 && css`
24
+ text-transform: unset;
25
+ `}
26
+
27
+ ${({
28
+ mobile
29
+ }) => mobile && css`
30
+ display: none;
31
+
32
+ ${rwdMax.Mobile`
33
+ display: block;
34
+ `}
35
+ `}
36
+
37
+ ${({
38
+ nomobile
39
+ }) => nomobile && css`
40
+ display: block;
41
+
42
+ ${rwdMax.Mobile`
43
+ display: none;
44
+ `}
45
+ `}
46
+
47
+ ${props => props.withPadding && `
48
+ padding:18px 16px;
49
+ `}
50
+ ${props => props.red && `
51
+ background: #D2200D;
52
+ color:white;
53
+ border-bottom: 1px solid #979797;
54
+ `}
55
+
56
+ ${({
57
+ alignCenter
58
+ }) => alignCenter && css`
59
+ display: flex;
60
+ justify-content: center;
61
+ `}
62
+
63
+ @media screen and (max-width: 991px) {
64
+ ${({
65
+ menuWithArrow
66
+ }) => menuWithArrow && css`
67
+ align-items: center;
68
+ display: flex;
69
+ justify-content: space-between;
70
+ `}
71
+ }
72
+
73
+ ${({
74
+ mobileMenu
75
+ }) => mobileMenu && css`
76
+ display: flex;
77
+ justify-content: center;
78
+ align-items: center;
79
+ }
80
+ `}
81
+ ${props => props.asLink && `
82
+ cursor:pointer;
83
+ &:hover {
84
+ opacity: .6;
85
+ }
86
+ `}
87
+
88
+ ${props => props.withIcon && `
89
+ ${rwdMax.Medium`
90
+
91
+ span {
92
+
93
+
94
+ position:relative;
95
+
96
+ &: before {
97
+ content: url(${dropdown});
98
+ position:absolute;
99
+ top: -4px;
100
+ right: -2em;
101
+ width:12px;
102
+ transition: transform 0.7s;
103
+
104
+ }
105
+ }
106
+
107
+
108
+
109
+ `}
110
+ `}
111
+
112
+ ${props => props.active && `
113
+ ${rwdMax.Medium`
114
+
115
+ &:before {
116
+
117
+ transform: rotate(180deg);
118
+ }
119
+ `}
120
+
121
+
122
+ `}
123
+ `;
124
+ export default Breakdown;
@@ -0,0 +1,2 @@
1
+ export * from './Breakdown';
2
+ export { default } from './Breakdown';
@@ -0,0 +1,133 @@
1
+ import axios from '../../model/axios';
2
+ import Cookies from 'js-cookie';
3
+ import getCookieDomain from '../../utils/get-cookie-domain';
4
+ class Auth {
5
+ static setAccessToken(token) {
6
+ this.logout();
7
+ const inOneHour = 1 / 24;
8
+ const cookieOptions = {
9
+ expires: inOneHour
10
+ };
11
+ if (process.env.NODE_ENV === 'production') {
12
+ cookieOptions.domain = getCookieDomain();
13
+ }
14
+ Cookies.set('STOKR_ACCESS_TOKEN', token, cookieOptions);
15
+ }
16
+ static getAccessToken() {
17
+ return Cookies.getJSON('STOKR_ACCESS_TOKEN');
18
+ }
19
+ static logout() {
20
+ const cookieDomain = {};
21
+ if (process.env.NODE_ENV === 'production') {
22
+ cookieDomain.domain = getCookieDomain();
23
+ }
24
+ Cookies.remove('STOKR_ACCESS_TOKEN', cookieDomain);
25
+ }
26
+ static login(data) {
27
+ return new Promise((resolve, reject) => {
28
+ axios.post(`auth/login`, data).then(response => {
29
+ axios.defaults.headers.common.Authorization = `Bearer ${response.data.access_token}`;
30
+ resolve(response.data);
31
+ }).catch(err => {
32
+ reject(err);
33
+ });
34
+ });
35
+ }
36
+ static twoFactor(data) {
37
+ return new Promise((resolve, reject) => {
38
+ axios.post(`auth/confirm2fa`, data).then(response => {
39
+ resolve(response.data);
40
+ }).catch(err => {
41
+ reject(err);
42
+ });
43
+ });
44
+ }
45
+ static activateUser() {
46
+ const isUsingQueryParam = window.location.href.includes('?token=');
47
+ let token;
48
+ if (isUsingQueryParam) {
49
+ token = window.location.href.split('activateUser?token=')[1].split('&')[0];
50
+ } else {
51
+ token = window.location.href.split('activateUser/')[1].split('/')[0];
52
+ }
53
+ return new Promise((resolve, reject) => {
54
+ axios.post(`auth/activate`, {
55
+ token
56
+ }).then(response => {
57
+ resolve(response.data);
58
+ }).catch(err => {
59
+ reject(err);
60
+ });
61
+ });
62
+ }
63
+ static getUser() {
64
+ return new Promise((resolve, reject) => {
65
+ axios.post(`user/get`).then(response => {
66
+ resolve(response.data);
67
+ }).catch(err => {
68
+ reject(err);
69
+ });
70
+ });
71
+ }
72
+ static checkPrivateInvestor(data) {
73
+ return new Promise((resolve, reject) => {
74
+ axios.post(`private-investor/check`, data).then(response => {
75
+ resolve(response.data);
76
+ }).catch(err => {
77
+ reject(err);
78
+ });
79
+ });
80
+ }
81
+ static updateUser(data) {
82
+ return new Promise((resolve, reject) => {
83
+ axios.post(`user/updateProfile`, data).then(response => {
84
+ resolve(response.data);
85
+ }).catch(err => {
86
+ reject(err);
87
+ });
88
+ });
89
+ }
90
+ static sendWelcomeEmail() {
91
+ return new Promise((resolve, reject) => {
92
+ axios.post(`user/welcomeEmail`).then(() => {
93
+ resolve();
94
+ }).catch(err => {
95
+ reject(err);
96
+ });
97
+ });
98
+ }
99
+ static resendActivationEmail(data) {
100
+ return new Promise((resolve, reject) => {
101
+ axios.post(`auth/forgotPass`, data).then(() => {
102
+ resolve();
103
+ }).catch(err => {
104
+ reject(err);
105
+ });
106
+ });
107
+ }
108
+ static uploaProofOfAddress(data, ip) {
109
+ return new Promise(async (resolve, reject) => {
110
+ axios.post(`https://kycdocs.stokr-staging.de/kyc/upload?ip=${ip}`, data, {
111
+ headers: {
112
+ 'Content-Type': 'multipart/form-data'
113
+ }
114
+ }).then(response => {
115
+ resolve(response.data);
116
+ }).catch(err => {
117
+ reject(err);
118
+ });
119
+ });
120
+ }
121
+ static validateGreenWalletId(id) {
122
+ return new Promise(async (resolve, reject) => {
123
+ axios.post(`greenwallet/validate-gaid`, {
124
+ gaid: id
125
+ }).then(response => {
126
+ resolve(response.data);
127
+ }).catch(err => {
128
+ reject(err);
129
+ });
130
+ });
131
+ }
132
+ }
133
+ export default Auth;
@@ -0,0 +1,154 @@
1
+ import React, { Component } from 'react';
2
+ import { navigate } from '@reach/router';
3
+ import PropTypes from 'prop-types';
4
+ import axios from '../../model/axios';
5
+ import Auth from './Auth';
6
+ export const AuthContext = /*#__PURE__*/React.createContext();
7
+ export class AuthProvider extends Component {
8
+ state = {
9
+ user: undefined,
10
+ isFetchingUser: true
11
+ };
12
+ componentDidMount() {
13
+ const isActivatingUser = window.location.href.includes('/activateUser');
14
+ const accessToken = Auth.getAccessToken();
15
+ if (isActivatingUser) {
16
+ this.activateUser();
17
+ } else if (accessToken) {
18
+ this.setUser(accessToken);
19
+ } else {
20
+ console.log('No access token');
21
+ window.location.href = `https://${process.env.REACT_APP_WEBSITE_DOMAIN}/login`;
22
+ }
23
+ }
24
+ activateUser = async () => {
25
+ try {
26
+ const {
27
+ user,
28
+ access_token
29
+ } = await Auth.activateUser();
30
+ axios.defaults.headers.common.Authorization = `Bearer ${access_token}`;
31
+ Auth.setAccessToken(access_token);
32
+ this.setState({
33
+ user,
34
+ isFetchingUser: false
35
+ });
36
+ } catch (error) {
37
+ console.log('Error activating user: ', error);
38
+ navigate('/oops', {
39
+ state: {
40
+ message: 'This activation token has expired.',
41
+ hasActivationTokenExpired: true
42
+ }
43
+ });
44
+ this.setState({
45
+ isFetchingUser: false
46
+ });
47
+ }
48
+ };
49
+ logoutUser = () => {
50
+ Auth.logout();
51
+ this.setState({
52
+ user: undefined
53
+ });
54
+ window.location.href = `https://${process.env.REACT_APP_WEBSITE_DOMAIN}`;
55
+ };
56
+ setUser = async accessToken => {
57
+ axios.defaults.headers.common.Authorization = `Bearer ${accessToken}`;
58
+ try {
59
+ const {
60
+ user
61
+ } = await Auth.getUser();
62
+ this.setState({
63
+ user,
64
+ isFetchingUser: false
65
+ });
66
+ } catch (error) {
67
+ navigate('/oops');
68
+ this.setState({
69
+ isFetchingUser: false
70
+ });
71
+ console.log(`Error fetching the user: ${error}`);
72
+ }
73
+ };
74
+ updateUser = async data => {
75
+ try {
76
+ const {
77
+ user
78
+ } = await Auth.updateUser(data);
79
+ this.setState({
80
+ user
81
+ });
82
+ } catch (error) {
83
+ console.log(`Error updating the user: ${error}`);
84
+ throw error;
85
+ }
86
+ };
87
+ checkIfPrivateInvestor = async data => {
88
+ try {
89
+ const result = await Auth.checkPrivateInvestor(data);
90
+ return result;
91
+ } catch (error) {
92
+ throw error;
93
+ }
94
+ };
95
+ resendActivationEmail = async data => {
96
+ try {
97
+ await Auth.resendActivationEmail(data);
98
+ } catch (error) {
99
+ console.log(`Error resending activation email: ${error}`);
100
+ throw error;
101
+ }
102
+ };
103
+ sendWelcomeEmail = async () => {
104
+ try {
105
+ await Auth.sendWelcomeEmail();
106
+ } catch (error) {
107
+ console.log(`Error sending welcome email: ${error}`);
108
+ // No need to throw error, let the app continue even if it fails
109
+ }
110
+ };
111
+
112
+ uploaProofOfAddress = async (data, ip) => {
113
+ try {
114
+ const user = await Auth.uploaProofOfAddress(data, ip);
115
+ this.setState({
116
+ user
117
+ });
118
+ } catch (error) {
119
+ console.log(`Error uploading proof of address: ${error}`);
120
+ throw error;
121
+ }
122
+ };
123
+ validateGreenWalletId = async id => {
124
+ try {
125
+ return Auth.validateGreenWalletId(id);
126
+ } catch (error) {
127
+ console.log(`Error validating Green Wallet ID: ${error}`);
128
+ throw error;
129
+ }
130
+ };
131
+ render() {
132
+ const {
133
+ children
134
+ } = this.props;
135
+ return /*#__PURE__*/React.createElement(AuthContext.Provider, {
136
+ value: {
137
+ ...this.state,
138
+ logoutUser: this.logoutUser,
139
+ setUser: this.setUser,
140
+ updateUser: this.updateUser,
141
+ checkIfPrivateInvestor: this.checkIfPrivateInvestor,
142
+ sendWelcomeEmail: this.sendWelcomeEmail,
143
+ resendActivationEmail: this.resendActivationEmail,
144
+ uploaProofOfAddress: this.uploaProofOfAddress,
145
+ validateGreenWalletId: this.validateGreenWalletId
146
+ }
147
+ }, children);
148
+ }
149
+ }
150
+ AuthProvider.propTypes = {
151
+ children: PropTypes.node.isRequired
152
+ };
153
+ export const AuthConsumer = AuthContext.Consumer;
154
+ //export default AuthProvider
@@ -0,0 +1,62 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React from 'react';
3
+ import styled, { css } from 'styled-components';
4
+ const iconDirection = ({
5
+ direction
6
+ }) => {
7
+ switch (direction) {
8
+ case 'right':
9
+ return css`
10
+ transform: rotate(90deg) scale(-1, 1);
11
+ `;
12
+ case 'left':
13
+ return css`
14
+ transform: rotate(-90deg);
15
+ `;
16
+ case 'bottom':
17
+ return css`
18
+ transform: rotate(180deg);
19
+ `;
20
+ case 'top':
21
+ default:
22
+ return css``;
23
+ }
24
+ };
25
+ const Icon = styled.svg`
26
+ ${iconDirection};
27
+ `;
28
+ export const Arrow = props => /*#__PURE__*/React.createElement(Icon, _extends({
29
+ width: "18",
30
+ height: "10",
31
+ viewBox: "0 0 18 10",
32
+ xmlns: "http://www.w3.org/2000/svg"
33
+ }, props), /*#__PURE__*/React.createElement("g", {
34
+ id: "STO-Pages",
35
+ fill: "none",
36
+ fillRule: "evenodd",
37
+ strokeLinecap: "round",
38
+ strokeLinejoin: "round"
39
+ }, /*#__PURE__*/React.createElement("g", {
40
+ id: "2.-Tablet-Pitch-Tab",
41
+ transform: "translate(-120 -5387)",
42
+ stroke: "#FFF",
43
+ strokeWidth: "1.5"
44
+ }, /*#__PURE__*/React.createElement("g", {
45
+ id: "Wrap-Up",
46
+ transform: "translate(0 5299)"
47
+ }, /*#__PURE__*/React.createElement("g", {
48
+ id: "Top",
49
+ transform: "translate(64 84)"
50
+ }, /*#__PURE__*/React.createElement("g", {
51
+ id: "Top-Icon",
52
+ transform: "translate(50 5)"
53
+ }, /*#__PURE__*/React.createElement("path", {
54
+ d: "M9.917,5.583 L7.25,8.25",
55
+ id: "Stroke-1",
56
+ transform: "matrix(0 -1 -1 0 15.5 15.5)"
57
+ }), /*#__PURE__*/React.createElement("polyline", {
58
+ id: "Stroke-3",
59
+ transform: "scale(1 -1) rotate(90 21.834 0)",
60
+ points: "13.5835 -1.4165 21.5835 6.5835 18.2505 9.9165"
61
+ })))))));
62
+ export default Arrow;