@stokr/components-library 0.6.7 → 0.6.9

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 (560) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/CHANGELOG.md +7 -0
  3. package/Dockerfile +20 -0
  4. package/build/asset-manifest.json +45 -0
  5. package/build/favicon.ico +0 -0
  6. package/build/index.html +1 -0
  7. package/build/logo192.png +0 -0
  8. package/build/logo512.png +0 -0
  9. package/build/manifest.json +25 -0
  10. package/build/robots.txt +3 -0
  11. package/build/static/css/main.e30a9d15.css +15 -0
  12. package/build/static/css/main.e30a9d15.css.map +1 -0
  13. package/build/static/js/main.3e5959c7.js +3 -0
  14. package/build/static/js/main.3e5959c7.js.LICENSE.txt +164 -0
  15. package/build/static/js/main.3e5959c7.js.map +1 -0
  16. package/build/static/media/Ionicons.4e528d6445ca1974c313.woff +0 -0
  17. package/build/static/media/Ionicons.643c37f102b41f7f90c3.woff2 +0 -0
  18. package/build/static/media/Ionicons.98b7d3182f652f021bc3.ttf +0 -0
  19. package/build/static/media/OpenSans-Bold.9bea22b57dc165ed4382.ttf +0 -0
  20. package/build/static/media/OpenSans-Bold.a750292d6a0b5a760679.woff +0 -0
  21. package/build/static/media/OpenSans-Bold.cbfc24090ef8bacab132.woff2 +0 -0
  22. package/build/static/media/OpenSans-ExtraBold.21e493d43617de76dbc7.woff2 +0 -0
  23. package/build/static/media/OpenSans-ExtraBold.81f3ef07b7952e249da1.woff +0 -0
  24. package/build/static/media/OpenSans-ExtraBold.bcb6531cf820152b7538.ttf +0 -0
  25. package/build/static/media/OpenSans-Light.179ef2df02cb0b68c9fd.woff2 +0 -0
  26. package/build/static/media/OpenSans-Light.55053cc0a8e6482eca64.ttf +0 -0
  27. package/build/static/media/OpenSans-Light.c6a4bc1bd034d6303053.woff +0 -0
  28. package/build/static/media/OpenSans-Regular.3caa0d4f9b7d58668066.woff2 +0 -0
  29. package/build/static/media/OpenSans-Regular.9ec738fbb66068dc1ca7.woff +0 -0
  30. package/build/static/media/OpenSans-Regular.d97d7385fe8771611848.ttf +0 -0
  31. package/build/static/media/OpenSans-SemiBold.311956ded96d3fd2813d.woff2 +0 -0
  32. package/build/static/media/OpenSans-SemiBold.39f5961b2d3eb4aa5bf5.woff +0 -0
  33. package/build/static/media/OpenSans-SemiBold.d2b1865643b98c0e8b54.ttf +0 -0
  34. package/build/static/media/address-refreshing.5fbb0cc56c384480118a.gif +0 -0
  35. package/build/static/media/arrow-down-black.fe92da3ac6ed16b45bf57713df82cea2.svg +21 -0
  36. package/build/static/media/avatar-placeholder.488a33b3f080a43e0d43.png +0 -0
  37. package/build/static/media/icomoon.2640959b1f9381cde047.eot +0 -0
  38. package/build/static/media/icomoon.35bce49b15feeae93572c36a08feecd9.svg +47 -0
  39. package/build/static/media/icomoon.4c3c428d0ce82f840710.woff +0 -0
  40. package/build/static/media/icomoon.a1d7666a48f976227722.ttf +0 -0
  41. package/build/static/media/lemonway.33e88c3a49e7ac73e3a9.png +0 -0
  42. package/build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg +1 -0
  43. package/build/static/media/slick.2630a3e3eab21c607e21.svg +14 -0
  44. package/build/static/media/slick.295183786cd8a1389865.woff +0 -0
  45. package/build/static/media/slick.a4e97f5a2a64f0ab1323.eot +0 -0
  46. package/build/static/media/slick.c94f7671dcc99dce43e2.ttf +0 -0
  47. package/build/static/media/whales.7a1e9453670d08b8b76a.png +0 -0
  48. package/buildpushndeploy.sh +9 -0
  49. package/devops/Dockerfile +20 -0
  50. package/devops/Jenkinsfile +56 -0
  51. package/devops/ansible/docker-stack-deploy.yml +32 -0
  52. package/devops/ansible/hosts.ini +7 -0
  53. package/devops/docker-compose.yml +25 -0
  54. package/dist/api/StokrWeb3.js +184 -0
  55. package/dist/api/fetchData.js +76 -0
  56. package/dist/api/fetchDataPublic.js +65 -0
  57. package/dist/components/AccountBalance/AccountBalance.js +53 -0
  58. package/dist/components/AccountBalance/AccountBalance.stories.js +88 -0
  59. package/dist/components/AccountBalance/AccountBalance.styles.js +40 -0
  60. package/dist/components/AdminDashboard/Table/Table.js +170 -0
  61. package/dist/components/AdminDashboard/Table/Table.styles.js +79 -0
  62. package/dist/components/AgreementItem/AgreementItem.js +51 -0
  63. package/dist/components/AgreementItem/AgreementItem.stories.js +109 -0
  64. package/dist/components/AgreementItem/AgreementItem.styles.js +35 -0
  65. package/dist/components/AnalyticGraphs/Analytic.js +781 -0
  66. package/dist/components/AnalyticGraphs/Analytic.styles.js +37 -0
  67. package/dist/components/BackButton/BackButton.js +32 -0
  68. package/dist/components/BackButton/BackButton.stories.js +35 -0
  69. package/dist/components/BackButton/BackButton.styles.js +76 -0
  70. package/dist/components/Background/Background.js +45 -0
  71. package/dist/components/Background/Background.stories.js +78 -0
  72. package/dist/components/Background/Background.styles.js +76 -0
  73. package/dist/components/BarChart/BarChart.js +304 -0
  74. package/dist/components/BarChart/BarChart.stories.js +47 -0
  75. package/dist/components/BarChart/BarChart.styles.js +33 -0
  76. package/dist/components/BarChartLegend/BarChartLegend.js +106 -0
  77. package/dist/components/BarChartLegend/BarChartLegend.styles.js +26 -0
  78. package/dist/components/BasicTable/BasicTable.js +32 -0
  79. package/dist/components/BasicTable/BasicTable.stories.js +63 -0
  80. package/dist/components/BasicTable/BasicTable.styles.js +52 -0
  81. package/dist/components/Button/Button.stories.js +79 -0
  82. package/dist/components/Button/Button.styles.js +83 -0
  83. package/dist/components/ButtonContainer/ButtonContainer.styles.js +18 -0
  84. package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +45 -0
  85. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +34 -0
  86. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +34 -0
  87. package/dist/components/ChartBox/ChartBox.js +44 -0
  88. package/dist/components/ChartBox/ChartBox.stories.js +20 -0
  89. package/dist/components/ChartBox/ChartBox.styles.js +33 -0
  90. package/dist/components/ChartBox/ChartBoxDistribution.js +30 -0
  91. package/dist/components/ChartBox/ChartBoxDistribution.stories.js +21 -0
  92. package/dist/components/ChartLegend/ChartLegend.js +62 -0
  93. package/dist/components/ChartLegend/ChartLegend.stories.js +87 -0
  94. package/dist/components/ChartLegend/ChartLegend.styles.js +64 -0
  95. package/dist/components/Checkbox/Checkbox.js +116 -0
  96. package/dist/components/Checkbox/Checkbox.stories.js +92 -0
  97. package/dist/components/Checkbox/Checkbox.styles.js +45 -0
  98. package/dist/components/Checklist/UserChecklist.js +284 -0
  99. package/dist/components/Checklist/UserChecklist.stories.js +143 -0
  100. package/dist/components/ComponentScroll/ComponentScroll.js +100 -0
  101. package/dist/components/ComponentScroll/ComponentScroll.stories.js +102 -0
  102. package/dist/components/ComponentScroll/ComponentScroll.styles.js +66 -0
  103. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +68 -0
  104. package/dist/components/CryptoAddress/ComponentWrap.js +37 -0
  105. package/dist/components/CryptoAddress/CryptoAddress.js +145 -0
  106. package/dist/components/CryptoAddress/CryptoAddress.stories.js +173 -0
  107. package/dist/components/CryptoAddress/CryptoAddress.styles.js +186 -0
  108. package/dist/components/CryptoAddress/RadioWrap.js +49 -0
  109. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +54 -0
  110. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +74 -0
  111. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +67 -0
  112. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +40 -0
  113. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +59 -0
  114. package/dist/components/DonutChart/DonutChart.js +182 -0
  115. package/dist/components/DonutChart/DonutChart.stories.js +40 -0
  116. package/dist/components/DonutChart/DonutChart.styles.js +50 -0
  117. package/dist/components/DoubleButton/DoubleButton.styles.js +22 -0
  118. package/dist/components/ErrorMessage/ErrorMessage.styles.js +15 -0
  119. package/dist/components/FAQ/FAQ.js +75 -0
  120. package/dist/components/FAQ/FAQ.stories.js +74 -0
  121. package/dist/components/FAQ/FAQ.styles.js +48 -0
  122. package/dist/components/Footer/Footer.js +66 -0
  123. package/dist/components/Footer/Footer.stories.js +54 -0
  124. package/dist/components/Footer/Footer.styles.js +74 -0
  125. package/dist/components/Footer/FooterLayout.js +125 -0
  126. package/dist/components/Footer/FooterLayout.stories.js +31 -0
  127. package/dist/components/Footer/FooterMenu.js +117 -0
  128. package/dist/components/Footer/FooterMenu.stories.js +121 -0
  129. package/dist/components/Footer/FooterMenu.styles.js +80 -0
  130. package/dist/components/Footer/index.js +27 -0
  131. package/dist/components/Footer/lemonway.png +0 -0
  132. package/dist/components/Footer/sicos-logo.svg +1 -0
  133. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +127 -0
  134. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +42 -0
  135. package/dist/components/Form/Form.js +68 -0
  136. package/dist/components/Form/Form.stories.js +35 -0
  137. package/dist/components/Form/Form.styles.js +59 -0
  138. package/dist/components/FullscreenCard/FullscreenCard.styles.js +32 -0
  139. package/dist/components/Grid/Grid.styles.js +68 -0
  140. package/dist/components/Header/Header.js +457 -0
  141. package/dist/components/Header/Header.stories.js +190 -0
  142. package/dist/components/Header/Header.styles.js +182 -0
  143. package/dist/components/Icon/Icon.style.js +71 -0
  144. package/dist/components/InfoIcon/InfoIcon.js +50 -0
  145. package/dist/components/InfoIcon/InfoIcon.stories.js +52 -0
  146. package/dist/components/InfoIcon/InfoIcon.styles.js +31 -0
  147. package/dist/components/InfoPanel/InfoPanel.js +146 -0
  148. package/dist/components/Input/DatePickerInput.js +85 -0
  149. package/dist/components/Input/DatePickerInput.stories.js +91 -0
  150. package/dist/components/Input/DatePickerInput.styles.js +29 -0
  151. package/dist/components/Input/Input.js +108 -0
  152. package/dist/components/Input/Input.stories.js +148 -0
  153. package/dist/components/Input/Input.styles.js +53 -0
  154. package/dist/components/Input/InputPassword.js +151 -0
  155. package/dist/components/Input/InputPassword.stories.js +85 -0
  156. package/dist/components/Input/InputPassword.styles.js +80 -0
  157. package/dist/components/Input/RangeInput.js +60 -0
  158. package/dist/components/Input/RangeInput.stories.js +59 -0
  159. package/dist/components/Input/RangeInput.styles.js +53 -0
  160. package/dist/components/Input/Select.js +148 -0
  161. package/dist/components/Input/Select.stories.js +142 -0
  162. package/dist/components/Input/Select.styles.js +65 -0
  163. package/dist/components/InvestCalculator/InvestCalculator.js +367 -0
  164. package/dist/components/InvestCalculator/InvestCalculator.stories.js +137 -0
  165. package/dist/components/InvestCalculator/InvestCalculator.styles.js +66 -0
  166. package/dist/components/InvestmentStat/InvestmentStat.js +40 -0
  167. package/dist/components/InvestmentStat/InvestmentStat.stories.js +56 -0
  168. package/dist/components/InvestmentStat/InvestmentStat.styles.js +43 -0
  169. package/dist/components/KYCFlow/BasicInfo.js +489 -0
  170. package/dist/components/KYCFlow/Confirmation.js +51 -0
  171. package/dist/components/KYCFlow/DocumentFileUpload.js +276 -0
  172. package/dist/components/KYCFlow/DocumentScan.js +74 -0
  173. package/dist/components/KYCFlow/DocumentScanUpload.js +258 -0
  174. package/dist/components/KYCFlow/DocumentSelect.js +148 -0
  175. package/dist/components/KYCFlow/DocumentSuccess.js +64 -0
  176. package/dist/components/KYCFlow/DocumentUpload.js +54 -0
  177. package/dist/components/KYCFlow/DocumentVerificationType.js +161 -0
  178. package/dist/components/KYCFlow/FaceScan.js +55 -0
  179. package/dist/components/KYCFlow/FaceScanRecognition.js +60 -0
  180. package/dist/components/KYCFlow/FaceScanSuccess.js +59 -0
  181. package/dist/components/KYCFlow/Terms.js +142 -0
  182. package/dist/components/KYCFlow/_styles.js +160 -0
  183. package/dist/components/KYCFlow/index.js +97 -0
  184. package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +41 -0
  185. package/dist/components/LatestUpdate/LatestUpdate.js +51 -0
  186. package/dist/components/LatestUpdate/LatestUpdate.stories.js +62 -0
  187. package/dist/components/LatestUpdate/LatestUpdate.styles.js +71 -0
  188. package/dist/components/Layout/Layout-func-no-work.js +78 -0
  189. package/dist/components/Layout/Layout.js +103 -0
  190. package/dist/components/Layout/Layout.stories.js +67 -0
  191. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +47 -0
  192. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +70 -0
  193. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +43 -0
  194. package/dist/components/LearnMorePage/LearnMore.js +255 -0
  195. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +40 -0
  196. package/dist/components/LearnMorePage/LearnMore.stories.js +51 -0
  197. package/dist/components/LearnMorePage/LearnMore.styles.js +120 -0
  198. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +87 -0
  199. package/dist/components/LearnMorePage/LearnMoreItem.js +75 -0
  200. package/dist/components/LearnMorePage/LearnMoreItem.stories.js +65 -0
  201. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +87 -0
  202. package/dist/components/LearnMoreSection/LearnMore.js +199 -0
  203. package/dist/components/LearnMoreSection/LearnMore.stories.js +33 -0
  204. package/dist/components/LearnMoreSection/LearnMore.styles.js +73 -0
  205. package/dist/components/LearnMoreSection/LearnMoreItem.js +52 -0
  206. package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +62 -0
  207. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +50 -0
  208. package/dist/components/LoginModal/LoginModal.js +163 -0
  209. package/dist/components/MainMenu/DynamicMainMenu.js +50 -0
  210. package/dist/components/MainMenu/MainMenu.js +262 -0
  211. package/dist/components/MainMenu/MainMenu.styles.js +124 -0
  212. package/dist/components/MatomoConnect/Matomo.js +485 -0
  213. package/dist/components/MatomoConnect/Matomo_fuckup.js +383 -0
  214. package/dist/components/MenuNav/MenuNav.styles.js +42 -0
  215. package/dist/components/Modal/Modal.js +135 -0
  216. package/dist/components/Modal/Modal.stories.js +82 -0
  217. package/dist/components/Modal/Modal.styles.js +140 -0
  218. package/dist/components/MultiProgressBar/MultiProgressBar.js +48 -0
  219. package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +72 -0
  220. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +41 -0
  221. package/dist/components/Newsletter/Newsletter.js +139 -0
  222. package/dist/components/Newsletter/Newsletter.stories.js +19 -0
  223. package/dist/components/Newsletter/Newsletter.styles.js +83 -0
  224. package/dist/components/NotificationContext/NotificationContext.js +173 -0
  225. package/dist/components/NotificationContext/NotificationContext.stories.js +33 -0
  226. package/dist/components/NotificationCounter/NotificationCounter.styles.js +22 -0
  227. package/dist/components/Number/Number.js +35 -0
  228. package/dist/components/Number/Number.stories.js +41 -0
  229. package/dist/components/Number/Number.styles.js +20 -0
  230. package/dist/components/PageTransition/PageTransition.js +57 -0
  231. package/dist/components/Process/Process.stories.js +47 -0
  232. package/dist/components/Process/Process.styles.js +33 -0
  233. package/dist/components/ProfileBadge/ProfileBadge.js +53 -0
  234. package/dist/components/ProfileBadge/ProfileBadge.stories.js +48 -0
  235. package/dist/components/ProfileBadge/ProfileBadge.styles.js +32 -0
  236. package/dist/components/ProfileBox/ProfileBox.js +39 -0
  237. package/dist/components/ProfileBox/ProfileBox.stories.js +38 -0
  238. package/dist/components/ProfileBox/ProfileBox.styles.js +49 -0
  239. package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +477 -0
  240. package/dist/components/ProfileHeader/ProfileHeader.js +330 -0
  241. package/dist/components/ProfileHeader/ProfileHeader.styles.js +87 -0
  242. package/dist/components/ProfileStat/ProfileStat.js +42 -0
  243. package/dist/components/ProfileStat/ProfileStat.stories.js +71 -0
  244. package/dist/components/ProfileStat/ProfileStat.styles.js +42 -0
  245. package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +69 -0
  246. package/dist/components/ROI/ROI.js +312 -0
  247. package/dist/components/ROI/ROI.styles.js +63 -0
  248. package/dist/components/ROI/ROIChart.js +469 -0
  249. package/dist/components/ROI/ROIChart.styles.js +33 -0
  250. package/dist/components/ROI/ROIModal.js +91 -0
  251. package/dist/components/ROI/ROIScenarioBox.js +55 -0
  252. package/dist/components/ROI/ROIScenarioBox.styles.js +52 -0
  253. package/dist/components/Radio/Radio.js +68 -0
  254. package/dist/components/Radio/Radio.stories.js +76 -0
  255. package/dist/components/Radio/Radio.styles.js +31 -0
  256. package/dist/components/RefreshButton/RefreshButton.js +21 -0
  257. package/dist/components/RefreshButton/RefreshButton.stories.js +42 -0
  258. package/dist/components/RefreshButton/RefreshButton.styles.js +39 -0
  259. package/dist/components/RegisterAlgorand/AlgoAddressName.js +138 -0
  260. package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +444 -0
  261. package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +47 -0
  262. package/dist/components/RegisterAlgorand/AlgoSuccess.js +38 -0
  263. package/dist/components/RegisterAlgorand/Algorand.stories.js +78 -0
  264. package/dist/components/RegisterAlgorand/ChooseWallet.js +97 -0
  265. package/dist/components/RegisterAlgorand/SelectProject.js +90 -0
  266. package/dist/components/RegisterAlgorand/_styles.js +28 -0
  267. package/dist/components/RegisterAlgorand/flow.js +409 -0
  268. package/dist/components/RegisterAlgorand/flowWithMemo.js +410 -0
  269. package/dist/components/RegisterAlgorand/index.js +48 -0
  270. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +40 -0
  271. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +33 -0
  272. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +16 -0
  273. package/dist/components/RegisterEthereum/EthAddressLedger.js +226 -0
  274. package/dist/components/RegisterEthereum/EthAddressMetamask.js +205 -0
  275. package/dist/components/RegisterEthereum/EthAddressName.js +135 -0
  276. package/dist/components/RegisterEthereum/EthConnectLedger.js +194 -0
  277. package/dist/components/RegisterEthereum/EthConnectMetamask.js +35 -0
  278. package/dist/components/RegisterEthereum/EthFinish.js +41 -0
  279. package/dist/components/RegisterEthereum/EthIntro.js +95 -0
  280. package/dist/components/RegisterEthereum/_styles.js +28 -0
  281. package/dist/components/RegisterEthereum/index.js +68 -0
  282. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +106 -0
  283. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +66 -0
  284. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +48 -0
  285. package/dist/components/RegisterLiquidSteps/complete.js +37 -0
  286. package/dist/components/RegisterLiquidSteps/flow.js +197 -0
  287. package/dist/components/RegisterLiquidSteps/index.js +52 -0
  288. package/dist/components/RegisterLiquidSteps/register-liquid.js +240 -0
  289. package/dist/components/RegisterModal/RegisterModal.js +180 -0
  290. package/dist/components/RegisterModal/RegisterModal.stories.js +46 -0
  291. package/dist/components/RequestDataBox/RequestDataBox.js +31 -0
  292. package/dist/components/RequestDataBox/RequestDataBox.stories.js +40 -0
  293. package/dist/components/RequestDataBox/RequestDataBox.styles.js +31 -0
  294. package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +185 -0
  295. package/dist/components/RiskQuestionnaire/_styles.js +15 -0
  296. package/dist/components/SEO/SEO.js +71 -0
  297. package/dist/components/SEO/SEO.stories.js +64 -0
  298. package/dist/components/SectionTitle/SectionTitle.styles.js +15 -0
  299. package/dist/components/SideLine/SideLine.js +15 -0
  300. package/dist/components/SideLine/SideLine.stories.js +31 -0
  301. package/dist/components/SideLine/SideLine.styles.js +26 -0
  302. package/dist/components/SigningSubflow/SignSubAddressMetamask.js +137 -0
  303. package/dist/components/SigningSubflow/SignSubConnectLedger.js +150 -0
  304. package/dist/components/SigningSubflow/SignSubConnectMetamask.js +137 -0
  305. package/dist/components/SigningSubflow/SignSubIntro.js +54 -0
  306. package/dist/components/SigningSubflow/SignSubSendLedger.js +150 -0
  307. package/dist/components/SigningSubflow/SignSubSendMetamask.js +62 -0
  308. package/dist/components/SigningSubflow/SignSubTransactionLedger.js +161 -0
  309. package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +166 -0
  310. package/dist/components/SigningSubflow/_styles.js +45 -0
  311. package/dist/components/SigningSubflow/index.js +74 -0
  312. package/dist/components/Slider/Slider.js +50 -0
  313. package/dist/components/Slider/Slider.stories.js +72 -0
  314. package/dist/components/Slider/Slider.styles.js +23 -0
  315. package/dist/components/SpanButton/SpanButton.styles.js +15 -0
  316. package/dist/components/StatusBadge/StatusBadge.styles.js +20 -0
  317. package/dist/components/StepController/StepController.js +111 -0
  318. package/dist/components/StepController/StepController.stories.js +63 -0
  319. package/dist/components/StepController/StepController.styles.js +26 -0
  320. package/dist/components/StepController/StepControllerContext.js +104 -0
  321. package/dist/components/StepController/StepControllerProgress.js +40 -0
  322. package/dist/components/StepController/StepControllerProgress.stories.js +52 -0
  323. package/dist/components/StepsProgress/StepsProgress.js +128 -0
  324. package/dist/components/StepsProgress/StepsProgress.stories.js +50 -0
  325. package/dist/components/StepsProgress/StepsProgress.styles.js +36 -0
  326. package/dist/components/StokrLoader/StokrLoader.js +32 -0
  327. package/dist/components/StokrLoader/media.js +27 -0
  328. package/dist/components/SvgIcons/AdminBadgeSvg.js +26 -0
  329. package/dist/components/SvgIcons/CameraSvg.js +36 -0
  330. package/dist/components/SvgIcons/CapsLockSvg.js +31 -0
  331. package/dist/components/SvgIcons/DocumentBackSvg.js +35 -0
  332. package/dist/components/SvgIcons/DocumentSmallSvg.js +61 -0
  333. package/dist/components/SvgIcons/DocumentSvg.js +38 -0
  334. package/dist/components/SvgIcons/Early.js +24 -0
  335. package/dist/components/SvgIcons/EthSvg.js +40 -0
  336. package/dist/components/SvgIcons/EurSvg.js +26 -0
  337. package/dist/components/SvgIcons/FaceScanIconSvg.js +31 -0
  338. package/dist/components/SvgIcons/FourSvg.js +21 -0
  339. package/dist/components/SvgIcons/Glassess.js +29 -0
  340. package/dist/components/SvgIcons/LogoSvg.js +24 -0
  341. package/dist/components/SvgIcons/OneSvg.js +23 -0
  342. package/dist/components/SvgIcons/PassportSvg.js +56 -0
  343. package/dist/components/SvgIcons/RefreshSvg.js +27 -0
  344. package/dist/components/SvgIcons/SocialFacebook.js +25 -0
  345. package/dist/components/SvgIcons/SocialInstagram.js +26 -0
  346. package/dist/components/SvgIcons/SocialLinkedIn.js +25 -0
  347. package/dist/components/SvgIcons/SocialMedium.js +25 -0
  348. package/dist/components/SvgIcons/SocialReddit.js +25 -0
  349. package/dist/components/SvgIcons/SocialTelegram.js +25 -0
  350. package/dist/components/SvgIcons/SocialTwitter.js +25 -0
  351. package/dist/components/SvgIcons/SocialYoutube.js +25 -0
  352. package/dist/components/SvgIcons/ThreeSvg.js +20 -0
  353. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +82 -0
  354. package/dist/components/SvgIcons/TwoSvg.js +23 -0
  355. package/dist/components/SvgIcons/UpdateDefaultSvg.js +29 -0
  356. package/dist/components/SvgIcons/UpdateHardSvg.js +25 -0
  357. package/dist/components/SvgIcons/UpdateSoftSvg.js +27 -0
  358. package/dist/components/SvgIcons/UploadSvg.js +34 -0
  359. package/dist/components/SvgIcons/VerifiedBadge.js +23 -0
  360. package/dist/components/SvgIcons/index.js +223 -0
  361. package/dist/components/Switch/Switch.js +70 -0
  362. package/dist/components/Switch/Switch.stories.js +86 -0
  363. package/dist/components/Switch/Switch.styles.js +47 -0
  364. package/dist/components/Tabs/Tabs.js +70 -0
  365. package/dist/components/Tabs/Tabs.stories.js +29 -0
  366. package/dist/components/Tabs/Tabs.styles.js +18 -0
  367. package/dist/components/TabsNav/TabNav.js +31 -0
  368. package/dist/components/TabsNav/TabNav.stories.js +44 -0
  369. package/dist/components/TabsNav/TabsNav.js +43 -0
  370. package/dist/components/TabsNav/TabsNav.stories.js +26 -0
  371. package/dist/components/TabsNav/TabsNav.styles.js +43 -0
  372. package/dist/components/TeamOverview/TeamOverview.js +125 -0
  373. package/dist/components/TeamOverview/TeamOverview.stories.js +80 -0
  374. package/dist/components/TeamOverview/TeamOverview.styles.js +81 -0
  375. package/dist/components/Text/Headline.js +29 -0
  376. package/dist/components/Text/Headline.stories.js +51 -0
  377. package/dist/components/Text/StyledText.js +19 -0
  378. package/dist/components/Text/Text.stories.js +71 -0
  379. package/dist/components/Text/Text.styles.js +40 -0
  380. package/dist/components/TextLink/TextLink.styles.js +30 -0
  381. package/dist/components/ToDoList/ToDoList.js +184 -0
  382. package/dist/components/ToDoList/ToDoList.stories.js +137 -0
  383. package/dist/components/ToDoList/ToDoList.styles.js +83 -0
  384. package/dist/components/ToDoList/ToDoListTask.js +118 -0
  385. package/dist/components/ToDoList/ToDoListTask.stories.js +72 -0
  386. package/dist/components/ToDoList/ToDoListTask.styles.js +74 -0
  387. package/dist/components/TransactionDetails/TransactionDetails.js +46 -0
  388. package/dist/components/TransactionDetails/TransactionDetails.stories.js +59 -0
  389. package/dist/components/TransactionDetails/TransactionDetails.styles.js +31 -0
  390. package/dist/components/TransactionInfo/TransactionInfo.js +58 -0
  391. package/dist/components/TransactionInfo/TransactionInfo.stories.js +64 -0
  392. package/dist/components/TransactionInfo/TransactionInfo.styles.js +54 -0
  393. package/dist/components/TwoFactorModal/TwoFactorModal.js +122 -0
  394. package/dist/components/breakdown/Breakdown.js +56 -0
  395. package/dist/components/breakdown/index.js +27 -0
  396. package/dist/components/context/Auth.js +207 -0
  397. package/dist/components/context/AuthContext.js +335 -0
  398. package/dist/components/icons/Arrow.js +70 -0
  399. package/dist/components/icons/Arrow.stories.js +49 -0
  400. package/dist/components/icons/ArrowSimple.js +59 -0
  401. package/dist/components/icons/ArrowSimple.stories.js +55 -0
  402. package/dist/components/icons/Check.js +43 -0
  403. package/dist/components/icons/Check.stories.js +25 -0
  404. package/dist/components/icons/Facebook.js +26 -0
  405. package/dist/components/icons/Facebook.stories.js +24 -0
  406. package/dist/components/icons/Info.js +55 -0
  407. package/dist/components/icons/Info.stories.js +19 -0
  408. package/dist/components/icons/Instagram.js +26 -0
  409. package/dist/components/icons/Instagram.stories.js +24 -0
  410. package/dist/components/icons/LinkIcon.js +34 -0
  411. package/dist/components/icons/LinkIcon.stories.js +24 -0
  412. package/dist/components/icons/LinkedIn.js +43 -0
  413. package/dist/components/icons/LinkedIn.stories.js +19 -0
  414. package/dist/components/icons/Medium.js +42 -0
  415. package/dist/components/icons/Medium.stories.js +19 -0
  416. package/dist/components/icons/Reddit.js +32 -0
  417. package/dist/components/icons/Reddit.stories.js +24 -0
  418. package/dist/components/icons/Share.js +62 -0
  419. package/dist/components/icons/Share.stories.js +19 -0
  420. package/dist/components/icons/Telegram.js +42 -0
  421. package/dist/components/icons/Telegram.stories.js +19 -0
  422. package/dist/components/icons/Twitter.js +26 -0
  423. package/dist/components/icons/Twitter.stories.js +24 -0
  424. package/dist/components/icons/X.js +26 -0
  425. package/dist/components/icons/X.stories.js +19 -0
  426. package/dist/components/icons/Youtube.js +26 -0
  427. package/dist/components/icons/Youtube.stories.js +24 -0
  428. package/dist/components/icons/index.js +170 -0
  429. package/dist/components/renderToBody/index.js +27 -0
  430. package/dist/components/renderToBody/renderToBody.js +68 -0
  431. package/dist/components/taxId/TaxId.stories.js +54 -0
  432. package/dist/components/taxId/complete.js +32 -0
  433. package/dist/components/taxId/flow.js +65 -0
  434. package/dist/components/taxId/index.js +27 -0
  435. package/dist/components/taxId/register-taxid.js +195 -0
  436. package/dist/components/video/Video.js +174 -0
  437. package/dist/components/video/Video.stories.js +56 -0
  438. package/dist/components/video/index.js +27 -0
  439. package/dist/constants/globalVariables.js +10 -0
  440. package/dist/constants/style.js +52 -0
  441. package/dist/index.js +1 -0
  442. package/dist/model/axios.js +18 -0
  443. package/dist/model/axiosPublic.js +18 -0
  444. package/dist/static/fonts/Ionicons/Ionicons.ttf +0 -0
  445. package/dist/static/fonts/Ionicons/Ionicons.woff +0 -0
  446. package/dist/static/fonts/Ionicons/Ionicons.woff2 +0 -0
  447. package/dist/static/fonts/Ionicons/ionicons.min.css +13 -0
  448. package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
  449. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff +0 -0
  450. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2 +0 -0
  451. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf +0 -0
  452. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff +0 -0
  453. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2 +0 -0
  454. package/dist/static/fonts/OpenSans/OpenSans-Light.ttf +0 -0
  455. package/dist/static/fonts/OpenSans/OpenSans-Light.woff +0 -0
  456. package/dist/static/fonts/OpenSans/OpenSans-Light.woff2 +0 -0
  457. package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
  458. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff +0 -0
  459. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2 +0 -0
  460. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf +0 -0
  461. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff +0 -0
  462. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2 +0 -0
  463. package/dist/static/fonts/icomoon/icomoon.eot +0 -0
  464. package/dist/static/fonts/icomoon/icomoon.svg +47 -0
  465. package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
  466. package/dist/static/fonts/icomoon/icomoon.woff +0 -0
  467. package/dist/static/fonts/icomoon/selection.json +1 -0
  468. package/dist/static/fonts/icomoon/style.css +137 -0
  469. package/dist/static/images/1.svg +4 -0
  470. package/dist/static/images/2.svg +4 -0
  471. package/dist/static/images/3.svg +3 -0
  472. package/dist/static/images/4.svg +3 -0
  473. package/dist/static/images/Glassess.svg +5 -0
  474. package/dist/static/images/VerifiedBadge.svg +1 -0
  475. package/dist/static/images/address-refreshing.gif +0 -0
  476. package/dist/static/images/admin-badge.svg +3 -0
  477. package/dist/static/images/amazon-logo.png +0 -0
  478. package/dist/static/images/arrow-down-black.svg +21 -0
  479. package/dist/static/images/avatar-cog.png +0 -0
  480. package/dist/static/images/avatar-placeholder.png +0 -0
  481. package/dist/static/images/avatar.png +0 -0
  482. package/dist/static/images/background.png +0 -0
  483. package/dist/static/images/camera.svg +1 -0
  484. package/dist/static/images/caps-lock.svg +6 -0
  485. package/dist/static/images/covers/blockchain.png +0 -0
  486. package/dist/static/images/covers/country.jpg +0 -0
  487. package/dist/static/images/covers/ethereum.jpg +0 -0
  488. package/dist/static/images/covers/index.png +0 -0
  489. package/dist/static/images/covers/liquid.png +0 -0
  490. package/dist/static/images/covers/money.png +0 -0
  491. package/dist/static/images/covers/overview.jpg +0 -0
  492. package/dist/static/images/covers/risk-questionnaire.jpg +0 -0
  493. package/dist/static/images/covers/rocket.png +0 -0
  494. package/dist/static/images/covers/verify-identity.jpg +0 -0
  495. package/dist/static/images/covers/virtual-iban.jpg +0 -0
  496. package/dist/static/images/document-back.svg +1 -0
  497. package/dist/static/images/document-small.svg +1 -0
  498. package/dist/static/images/document.svg +1 -0
  499. package/dist/static/images/early-adopter.png +0 -0
  500. package/dist/static/images/early-adopter.svg +1 -0
  501. package/dist/static/images/eth.svg +10 -0
  502. package/dist/static/images/eur.svg +3 -0
  503. package/dist/static/images/face-scan-icon.svg +1 -0
  504. package/dist/static/images/favicon.png +0 -0
  505. package/dist/static/images/favicon.svg +57 -0
  506. package/dist/static/images/google-logo.png +0 -0
  507. package/dist/static/images/graduation.png +0 -0
  508. package/dist/static/images/hdd.png +0 -0
  509. package/dist/static/images/lemonway.png +0 -0
  510. package/dist/static/images/logo.svg +1 -0
  511. package/dist/static/images/member-item-picture.png +0 -0
  512. package/dist/static/images/one.jpg +0 -0
  513. package/dist/static/images/passport.svg +1 -0
  514. package/dist/static/images/process-waiting.gif +0 -0
  515. package/dist/static/images/profile-picture-placeholder.png +0 -0
  516. package/dist/static/images/profile-picture-placeholder.svg +1 -0
  517. package/dist/static/images/profile-picture.png +0 -0
  518. package/dist/static/images/refresh.svg +9 -0
  519. package/dist/static/images/shark.jpg +0 -0
  520. package/dist/static/images/sicos.png +0 -0
  521. package/dist/static/images/slider/1.jpg +0 -0
  522. package/dist/static/images/slider/2.jpg +0 -0
  523. package/dist/static/images/slider/3.jpg +0 -0
  524. package/dist/static/images/social/facebook.svg +3 -0
  525. package/dist/static/images/social/linkedin.svg +3 -0
  526. package/dist/static/images/social/medium.svg +3 -0
  527. package/dist/static/images/social/reddit.svg +3 -0
  528. package/dist/static/images/social/telegram.svg +3 -0
  529. package/dist/static/images/social/twitter.svg +3 -0
  530. package/dist/static/images/social/youtube.svg +3 -0
  531. package/dist/static/images/three.jpg +0 -0
  532. package/dist/static/images/two-sided-document.svg +26 -0
  533. package/dist/static/images/two.jpg +0 -0
  534. package/dist/static/images/upload.svg +1 -0
  535. package/dist/static/images/user-profile.png +0 -0
  536. package/dist/static/images/whales.png +0 -0
  537. package/dist/static/videos/Capybara-with-mandarin orange-on-head.mp4 +0 -0
  538. package/dist/styles/colors.js +55 -0
  539. package/dist/styles/fonts.js +34 -0
  540. package/dist/styles/global.js +19 -0
  541. package/dist/styles/grid.js +16 -0
  542. package/dist/styles/reactTippy.js +12 -0
  543. package/dist/styles/rwd.js +52 -0
  544. package/dist/styles/semanticUi.js +12 -0
  545. package/dist/styles/spacing.js +12 -0
  546. package/dist/styles/theme.js +43 -0
  547. package/dist/utils/allowed-countries-list.js +1375 -0
  548. package/dist/utils/breakpoint.js +19 -0
  549. package/dist/utils/countries-list.js +1008 -0
  550. package/dist/utils/customHooks.js +54 -0
  551. package/dist/utils/delete-redirect-cookie-and-navigate.js +20 -0
  552. package/dist/utils/fix-decimals.js +11 -0
  553. package/dist/utils/get-cookie-domain.js +16 -0
  554. package/dist/utils/get-short-address.js +10 -0
  555. package/dist/utils/lock-body.js +20 -0
  556. package/dist/utils/redirect-url.js +10 -0
  557. package/dist/utils/set-redirect-cookie.js +20 -0
  558. package/docker-compose.yml +25 -0
  559. package/package.json +77 -84
  560. package/storybook-static/favicon.ico +0 -0
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TooltipBox = exports.TitleContainer = exports.Title = exports.State = exports.Notifications = exports.IconContainer = exports.Icon = exports.Content = exports.Container = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _Icon = _interopRequireDefault(require("../Icon/Icon.style"));
9
+ var _ToDoList = require("./ToDoList");
10
+ var _colors = _interopRequireDefault(require("../../styles/colors"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ var Container = _styledComponents.default.div.withConfig({
13
+ displayName: "ToDoListTaskstyles__Container",
14
+ componentId: "sc-lpyruk-0"
15
+ })(["display:flex;height:56px;align-items:center;", " ", ""], function (props) {
16
+ return props.disabled && "\n opacity:0.5;\n cursor: context-menu;\n ";
17
+ }, function (props) {
18
+ return props.link && "\n cursor:pointer;\n ";
19
+ });
20
+ exports.Container = Container;
21
+ var Content = _styledComponents.default.div.withConfig({
22
+ displayName: "ToDoListTaskstyles__Content",
23
+ componentId: "sc-lpyruk-1"
24
+ })(["display:flex;flex-direction:column;"]);
25
+ exports.Content = Content;
26
+ var TitleContainer = _styledComponents.default.div.withConfig({
27
+ displayName: "ToDoListTaskstyles__TitleContainer",
28
+ componentId: "sc-lpyruk-2"
29
+ })(["display:flex;align-items:center;"]);
30
+ exports.TitleContainer = TitleContainer;
31
+ var Title = _styledComponents.default.div.withConfig({
32
+ displayName: "ToDoListTaskstyles__Title",
33
+ componentId: "sc-lpyruk-3"
34
+ })(["font-size:16px;font-weight:600;line-height:24px;letter-spacing:0.6px;text-align:left;", " ", ""], function (props) {
35
+ return (props.state === _ToDoList.ToDoTaskState.IN_PROGRESS || props.state === _ToDoList.ToDoTaskState.APPROVED || props.state === _ToDoList.ToDoTaskState.NOT_AVAILABLE) && "\n opacity: 0.3;\n ";
36
+ }, function (props) {
37
+ return props.link && "\n opacity: 1;\n ";
38
+ });
39
+ exports.Title = Title;
40
+ var Notifications = _styledComponents.default.div.withConfig({
41
+ displayName: "ToDoListTaskstyles__Notifications",
42
+ componentId: "sc-lpyruk-4"
43
+ })(["position:relative;right:-5px;width:16px;height:16px;color:#ffffff;font-size:11px;font-weight:700;line-height:16px;text-align:center;background-color:#ee220d;border-radius:50%;padding-left:0;"]);
44
+ exports.Notifications = Notifications;
45
+ var State = _styledComponents.default.p.withConfig({
46
+ displayName: "ToDoListTaskstyles__State",
47
+ componentId: "sc-lpyruk-5"
48
+ })(["margin-top:3px;font-size:11px;line-height:16px;letter-spacing:0.4px;font-weight:300;text-align:left;opacity:0.6;"]);
49
+ exports.State = State;
50
+ var IconContainer = _styledComponents.default.div.withConfig({
51
+ displayName: "ToDoListTaskstyles__IconContainer",
52
+ componentId: "sc-lpyruk-6"
53
+ })(["flex-shrink:0;width:23px;text-align:center;margin-right:10px;position:relative;top:-10px;"]);
54
+ exports.IconContainer = IconContainer;
55
+ var TooltipBox = _styledComponents.default.div.withConfig({
56
+ displayName: "ToDoListTaskstyles__TooltipBox",
57
+ componentId: "sc-lpyruk-7"
58
+ })(["max-width:240px;text-align:left;"]);
59
+ exports.TooltipBox = TooltipBox;
60
+ var Icon = (0, _styledComponents.default)(_Icon.default).withConfig({
61
+ displayName: "ToDoListTaskstyles__Icon",
62
+ componentId: "sc-lpyruk-8"
63
+ })(["font-size:20px;width:18px;text-align:center;", " ", " ", " ", " ", ""], function (props) {
64
+ return props.state === _ToDoList.ToDoTaskState.APPROVED && "\n font-size: 13px;\n color: ".concat(_colors.default.freshGreen, ";\n ");
65
+ }, function (props) {
66
+ return props.state === _ToDoList.ToDoTaskState.REJECTED && "\n color: ".concat(_colors.default.orangishRed, ";\n ");
67
+ }, function (props) {
68
+ return props.state === _ToDoList.ToDoTaskState.IN_PROGRESS && "\n opacity: 0.3;\n ";
69
+ }, function (props) {
70
+ return props.state === _ToDoList.ToDoTaskState.SKIPPED && "\n font-size: 13px;\n ";
71
+ }, function (props) {
72
+ return props.state === _ToDoList.ToDoTaskState.NOT_AVAILABLE && "\n font-size: 13px;\n opacity: 0.3;\n ";
73
+ });
74
+ exports.Icon = Icon;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = exports.TransactionDetails = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _BasicTable = _interopRequireDefault(require("../BasicTable/BasicTable"));
11
+ var _TransactionDetails = require("./TransactionDetails.styles");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
18
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
19
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+ var TransactionDetails = function TransactionDetails(props) {
22
+ var data = props.data;
23
+ var _useState = (0, _react.useState)(true),
24
+ _useState2 = _slicedToArray(_useState, 2),
25
+ showDetails = _useState2[0],
26
+ setShowDetails = _useState2[1];
27
+ var toggleDetails = function toggleDetails() {
28
+ setShowDetails(!showDetails);
29
+ };
30
+ return /*#__PURE__*/_react.default.createElement(_TransactionDetails.Container, null, data.length > 0 ? /*#__PURE__*/_react.default.createElement(_TransactionDetails.Toggle, {
31
+ onClick: toggleDetails
32
+ }, showDetails ? 'hide details' : 'view details') : /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_TransactionDetails.DetailsCollapse, {
33
+ isOpened: showDetails
34
+ }, /*#__PURE__*/_react.default.createElement(_BasicTable.default, {
35
+ data: data
36
+ })));
37
+ };
38
+ exports.TransactionDetails = TransactionDetails;
39
+ TransactionDetails.propTypes = {
40
+ data: _propTypes.default.arrayOf(_propTypes.default.shape({
41
+ label: _propTypes.default.string,
42
+ value: _propTypes.default.string.isRequired
43
+ })).isRequired
44
+ };
45
+ var _default = TransactionDetails;
46
+ exports.default = _default;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.TransactionDetails4 = exports.TransactionDetails1 = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _TransactionDetails = require("./TransactionDetails");
9
+ var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ var _default = {
12
+ title: 'Components Library/TransactionDetails',
13
+ component: _TransactionDetails.TransactionDetails,
14
+ argTypes: {
15
+ data: [{
16
+ label: {
17
+ type: 'string'
18
+ }
19
+ }, {
20
+ value: {
21
+ type: 'string',
22
+ required: true
23
+ }
24
+ }],
25
+ required: true
26
+ }
27
+ };
28
+ exports.default = _default;
29
+ var Template = function Template(args) {
30
+ return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_TransactionDetails.TransactionDetails, args));
31
+ };
32
+ var TransactionDetails1 = Template.bind({});
33
+ exports.TransactionDetails1 = TransactionDetails1;
34
+ TransactionDetails1.args = {
35
+ data: [{
36
+ label: 'This is a Label',
37
+ value: 'This is a value'
38
+ }]
39
+ };
40
+ var TransactionDetails4 = Template.bind({});
41
+ exports.TransactionDetails4 = TransactionDetails4;
42
+ TransactionDetails4.args = {
43
+ data: [{
44
+ label: 'This is a Label',
45
+ value: 'This is a value'
46
+ }, {
47
+ label: 'This is a Label too',
48
+ value: 'This is a value too'
49
+ }, {
50
+ label: 'This is Label three',
51
+ value: 'This is value three'
52
+ }, {
53
+ label: 'This is Label four',
54
+ value: 'This is value four'
55
+ }]
56
+ };
57
+
58
+ //doublecheck:
59
+ // state?
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Toggle = exports.DetailsCollapse = exports.Container = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _reactCollapse = require("react-collapse");
9
+ var _theme = _interopRequireDefault(require("../../styles/theme"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ var Container = _styledComponents.default.div.withConfig({
12
+ displayName: "TransactionDetailsstyles__Container",
13
+ componentId: "sc-yhycqf-0"
14
+ })(["display:block;position:relative;text-align:center;padding-top:8px;"]);
15
+ exports.Container = Container;
16
+ var Toggle = _styledComponents.default.button.withConfig({
17
+ displayName: "TransactionDetailsstyles__Toggle",
18
+ componentId: "sc-yhycqf-1"
19
+ })(["display:inline-block;font-size:11px;line-height:16px;color:", ";transition:color 0.2s;outline:0;&:hover{color:", ";}"], function (props) {
20
+ return _theme.default.cGrey2;
21
+ }, function (props) {
22
+ return _theme.default.cPrimary;
23
+ });
24
+ exports.Toggle = Toggle;
25
+ var DetailsCollapse = (0, _styledComponents.default)(_reactCollapse.Collapse).withConfig({
26
+ displayName: "TransactionDetailsstyles__DetailsCollapse",
27
+ componentId: "sc-yhycqf-2"
28
+ })(["opacity:0;transition:opacity 0.2s;margin-top:12px;", ""], function (props) {
29
+ return props.isOpened && "\n opacity: 1;\n border-bottom: 1px solid ".concat(_theme.default.cLightGrey, ";\n ");
30
+ });
31
+ exports.DetailsCollapse = DetailsCollapse;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.TransactionInfo = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _TransactionInfo = require("./TransactionInfo.styles");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ var TransactionInfo = function TransactionInfo(_ref) {
12
+ var value1 = _ref.value1,
13
+ unit1 = _ref.unit1,
14
+ name1 = _ref.name1,
15
+ owner1 = _ref.owner1,
16
+ value2 = _ref.value2,
17
+ unit2 = _ref.unit2,
18
+ name2 = _ref.name2,
19
+ owner2 = _ref.owner2,
20
+ green = _ref.green,
21
+ red = _ref.red;
22
+ return /*#__PURE__*/_react.default.createElement(_TransactionInfo.Container, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.Account, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.Name, {
23
+ green: green,
24
+ red: red
25
+ }, "".concat(name1, " ").concat(owner1)), /*#__PURE__*/_react.default.createElement(_TransactionInfo.Value, {
26
+ green: green,
27
+ red: red
28
+ }, "".concat(unit1, " ").concat(value1))), /*#__PURE__*/_react.default.createElement(_TransactionInfo.TransferIcon, null), /*#__PURE__*/_react.default.createElement(_TransactionInfo.Account, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.Name, {
29
+ green: green,
30
+ red: red
31
+ }, "".concat(name2, " ").concat(owner2)), /*#__PURE__*/_react.default.createElement(_TransactionInfo.Value, {
32
+ green: green,
33
+ red: red
34
+ }, "".concat(unit2, " ").concat(value2))));
35
+ };
36
+ exports.TransactionInfo = TransactionInfo;
37
+ TransactionInfo.propTypes = {
38
+ value1: _propTypes.default.string,
39
+ unit1: _propTypes.default.string,
40
+ name1: _propTypes.default.string,
41
+ owner1: _propTypes.default.string,
42
+ value2: _propTypes.default.string,
43
+ unit2: _propTypes.default.string,
44
+ name2: _propTypes.default.string,
45
+ owner2: _propTypes.default.string
46
+ };
47
+ TransactionInfo.defaultProps = {
48
+ value1: '',
49
+ unit1: '',
50
+ name1: '',
51
+ owner1: '',
52
+ value2: '',
53
+ unit2: '',
54
+ name2: '',
55
+ owner2: ''
56
+ };
57
+ var _default = TransactionInfo;
58
+ exports.default = _default;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.TransactionInfoExample = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _TransactionInfo = require("./TransactionInfo");
9
+ var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ var _default = {
12
+ title: 'Components Library/TransactionInfo',
13
+ component: _TransactionInfo.TransactionInfo,
14
+ argTypes: {
15
+ value1: {
16
+ type: 'string',
17
+ defaultValue: ''
18
+ },
19
+ unit1: {
20
+ type: 'string',
21
+ defaultValue: ''
22
+ },
23
+ name1: {
24
+ type: 'string',
25
+ defaultValue: ''
26
+ },
27
+ owner1: {
28
+ type: 'string',
29
+ defaultValue: ''
30
+ },
31
+ value2: {
32
+ type: 'string',
33
+ defaultValue: ''
34
+ },
35
+ unit2: {
36
+ type: 'string',
37
+ defaultValue: ''
38
+ },
39
+ name2: {
40
+ type: 'string',
41
+ defaultValue: ''
42
+ },
43
+ owner2: {
44
+ type: 'string',
45
+ defaultValue: ''
46
+ }
47
+ }
48
+ };
49
+ exports.default = _default;
50
+ var Template = function Template(args) {
51
+ return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.TransactionInfo, args));
52
+ };
53
+ var TransactionInfoExample = Template.bind({});
54
+ exports.TransactionInfoExample = TransactionInfoExample;
55
+ TransactionInfoExample.args = {
56
+ value1: 'value 1',
57
+ unit1: 'unit 1',
58
+ name1: 'name 1',
59
+ owner1: 'owner 1',
60
+ value2: 'value 2',
61
+ unit2: 'unit 2',
62
+ name2: 'name 2',
63
+ owner2: 'owner 2'
64
+ };
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.Value = exports.TransferIcon = exports.Name = exports.Container = exports.Account = void 0;
8
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
+ var _colors = _interopRequireDefault(require("../../styles/colors"));
10
+ var _theme = _interopRequireDefault(require("../../styles/theme"));
11
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
+ var Container = _styledComponents.default.div.withConfig({
17
+ displayName: "TransactionInfostyles__Container",
18
+ componentId: "sc-8iuxfi-0"
19
+ })(["display:flex;align-items:center;"]);
20
+ exports.Container = Container;
21
+ var Account = _styledComponents.default.div.withConfig({
22
+ displayName: "TransactionInfostyles__Account",
23
+ componentId: "sc-8iuxfi-1"
24
+ })([""]);
25
+ exports.Account = Account;
26
+ var TransferIcon = _styledComponents.default.div.attrs({
27
+ className: 'ion'
28
+ }).withConfig({
29
+ displayName: "TransactionInfostyles__TransferIcon",
30
+ componentId: "sc-8iuxfi-2"
31
+ })(["width:16px;height:19px;position:relative;margin:auto;&::before,&::after{font-size:28px;position:absolute;left:0;}&::before{content:'\f117';color:", ";top:-7px;}&::after{content:'\f119';color:", ";top:2px;}"], function (props) {
32
+ return _theme.default.cSuccess;
33
+ }, function (props) {
34
+ return _theme.default.cWarning;
35
+ });
36
+ exports.TransferIcon = TransferIcon;
37
+ var Value = _styledComponents.default.div.withConfig({
38
+ displayName: "TransactionInfostyles__Value",
39
+ componentId: "sc-8iuxfi-3"
40
+ })(["font-size:22px;font-weight:300;line-height:28px;letter-spacing:0.8px;", " ", ""], function (props) {
41
+ return props.green && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.progressGreen);
42
+ }, function (props) {
43
+ return props.red && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.orangishRed);
44
+ });
45
+ exports.Value = Value;
46
+ var Name = _styledComponents.default.div.withConfig({
47
+ displayName: "TransactionInfostyles__Name",
48
+ componentId: "sc-8iuxfi-4"
49
+ })(["font-size:13px;line-height:16px;letter-spacing:0.4px;font-style:italic;margin-bottom:3px;", " ", ""], function (props) {
50
+ return props.green && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.progressGreen);
51
+ }, function (props) {
52
+ return props.red && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.orangishRed);
53
+ });
54
+ exports.Name = Name;
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.TwoFactorModal = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _formik = require("formik");
10
+ var Yup = _interopRequireWildcard(require("yup"));
11
+ var _Modal = require("../Modal/Modal");
12
+ var _Form = _interopRequireWildcard(require("../Form/Form"));
13
+ var _Text = _interopRequireDefault(require("../Text/Text.styles"));
14
+ var _Input = _interopRequireDefault(require("../Input/Input"));
15
+ var _Button = _interopRequireDefault(require("../Button/Button.styles"));
16
+ var _Grid = require("../Grid/Grid.styles");
17
+ var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
22
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
28
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
29
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
30
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
32
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
34
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
35
+ var TwoFactorModal = /*#__PURE__*/function (_PureComponent) {
36
+ _inherits(TwoFactorModal, _PureComponent);
37
+ var _super = _createSuper(TwoFactorModal);
38
+ function TwoFactorModal() {
39
+ var _this;
40
+ _classCallCheck(this, TwoFactorModal);
41
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
42
+ args[_key] = arguments[_key];
43
+ }
44
+ _this = _super.call.apply(_super, [this].concat(args));
45
+ _defineProperty(_assertThisInitialized(_this), "initialValues", {
46
+ fa2code: ''
47
+ });
48
+ _defineProperty(_assertThisInitialized(_this), "validationSchema", Yup.object().shape({
49
+ fa2code: Yup.string().required('Token is required')
50
+ }));
51
+ return _this;
52
+ }
53
+ _createClass(TwoFactorModal, [{
54
+ key: "render",
55
+ value: function render() {
56
+ var _this$props = this.props,
57
+ isModalOpen = _this$props.isModalOpen,
58
+ onModalClose = _this$props.onModalClose,
59
+ onFormSend = _this$props.onFormSend;
60
+ return /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
61
+ isOpen: isModalOpen,
62
+ onClose: onModalClose
63
+ }, /*#__PURE__*/_react.default.createElement(_Grid.Row, null, /*#__PURE__*/_react.default.createElement(_Grid.Column, {
64
+ part: 8
65
+ }, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, {
66
+ modalTop: true
67
+ }, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h3", null, "Two Factor Authentication"), /*#__PURE__*/_react.default.createElement("p", null, 'Please log in to engage in our community & invest in exciting opportunities.'))), /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, {
68
+ modalBot: true
69
+ })), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
70
+ part: 8
71
+ }, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, null, /*#__PURE__*/_react.default.createElement(_formik.Formik, {
72
+ initialValues: this.initialValues,
73
+ validationSchema: this.validationSchema,
74
+ onSubmit: onFormSend
75
+ }, function (_ref) {
76
+ var values = _ref.values,
77
+ errors = _ref.errors,
78
+ touched = _ref.touched,
79
+ handleBlur = _ref.handleBlur,
80
+ setFieldValue = _ref.setFieldValue,
81
+ setFieldTouched = _ref.setFieldTouched;
82
+ var onChangeWithTouch = function onChangeWithTouch(e) {
83
+ var field = e.target;
84
+ setFieldValue(field.name, field.value, false);
85
+ setFieldTouched(field.name);
86
+ };
87
+ var submitDisabled = !touched.fa2code || !!errors.fa2code;
88
+ return /*#__PURE__*/_react.default.createElement(_Form.default, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
89
+ noPadding: true
90
+ }, /*#__PURE__*/_react.default.createElement(_Form.FormField, null, /*#__PURE__*/_react.default.createElement(_Input.default, {
91
+ id: "two-factor",
92
+ name: "fa2code",
93
+ type: "text",
94
+ label: "Token",
95
+ value: values.fa2code,
96
+ onChange: onChangeWithTouch,
97
+ onBlur: handleBlur,
98
+ error: !!errors.fa2code,
99
+ touched: !!touched.fa2code
100
+ }), /*#__PURE__*/_react.default.createElement(_Form.FormError, {
101
+ show: errors.fa2code && touched.fa2code
102
+ }, errors.fa2code))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
103
+ noPaddingBottom: true,
104
+ noPaddingHorizontal: true
105
+ }, /*#__PURE__*/_react.default.createElement(_Button.default, {
106
+ type: "submit",
107
+ fluid: true,
108
+ disabled: submitDisabled
109
+ }, "Login")));
110
+ })))));
111
+ }
112
+ }]);
113
+ return TwoFactorModal;
114
+ }(_react.PureComponent);
115
+ exports.TwoFactorModal = TwoFactorModal;
116
+ TwoFactorModal.propTypes = {
117
+ isModalOpen: _propTypes.default.bool.isRequired,
118
+ onModalClose: _propTypes.default.func.isRequired,
119
+ onFormSend: _propTypes.default.func.isRequired
120
+ };
121
+ var _default = TwoFactorModal;
122
+ exports.default = _default;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = exports.Breakdown = void 0;
8
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
+ var _arrowDownBlack = _interopRequireDefault(require("../../static/images/arrow-down-black.svg"));
10
+ var _rwd = _interopRequireWildcard(require("../../styles/rwd"));
11
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
+ var Breakdown = _styledComponents.default.div.withConfig({
17
+ displayName: "Breakdown",
18
+ componentId: "sc-1i2d0ys-0"
19
+ })(["text-transform:uppercase;letter-spacing:2.1px;font-size:", ";white-space:", ";line-height:2.18;color:inherit;font-weight:bolder;strong&{font-weight:bold;}", " ", " ", " ", " ", " ", " @media screen and (max-width:991px){", "}", " ", " ", " ", ""], function (_ref) {
20
+ var fontSize = _ref.fontSize;
21
+ return fontSize ? "".concat(fontSize, "px") : '11px';
22
+ }, function (_ref2) {
23
+ var withWordWrap = _ref2.withWordWrap;
24
+ return withWordWrap ? 'unset' : 'nowrap';
25
+ }, function (_ref3) {
26
+ var is101 = _ref3.is101;
27
+ return is101 && (0, _styledComponents.css)(["text-transform:unset;"]);
28
+ }, function (_ref4) {
29
+ var mobile = _ref4.mobile;
30
+ return mobile && (0, _styledComponents.css)(["display:none;", ""], _rwd.rwdMax.Mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n "]))));
31
+ }, function (_ref5) {
32
+ var nomobile = _ref5.nomobile;
33
+ return nomobile && (0, _styledComponents.css)(["display:block;", ""], _rwd.rwdMax.Mobile(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: none;\n "]))));
34
+ }, function (props) {
35
+ return props.withPadding && "\n padding:18px 16px;\n ";
36
+ }, function (props) {
37
+ return props.red && "\n background: #D2200D;\n color:white;\n border-bottom: 1px solid #979797;\n ";
38
+ }, function (_ref6) {
39
+ var alignCenter = _ref6.alignCenter;
40
+ return alignCenter && (0, _styledComponents.css)(["display:flex;justify-content:center;"]);
41
+ }, function (_ref7) {
42
+ var menuWithArrow = _ref7.menuWithArrow;
43
+ return menuWithArrow && (0, _styledComponents.css)(["align-items:center;display:flex;justify-content:space-between;"]);
44
+ }, function (_ref8) {
45
+ var mobileMenu = _ref8.mobileMenu;
46
+ return mobileMenu && (0, _styledComponents.css)(["display:flex;justify-content:center;align-items:center;}"]);
47
+ }, function (props) {
48
+ return props.asLink && "\n cursor:pointer;\n &:hover {\n opacity: .6;\n }\n ";
49
+ }, function (props) {
50
+ return props.withIcon && "\n ".concat(_rwd.rwdMax.Medium(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\n span {\n\n\n position:relative;\n \n &: before {\n content: url(", ");\n position:absolute;\n top: -4px;\n right: -2em;\n width:12px;\n transition: transform 0.7s;\n\n }\n }\n\n \n \n "])), _arrowDownBlack.default), "\n ");
51
+ }, function (props) {
52
+ return props.active && "\n ".concat(_rwd.rwdMax.Medium(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\n &:before {\n \n transform: rotate(180deg);\n }\n "]))), "\n\n \n ");
53
+ });
54
+ exports.Breakdown = Breakdown;
55
+ var _default = Breakdown;
56
+ exports.default = _default;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ var _exportNames = {};
8
+ Object.defineProperty(exports, "default", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _Breakdown.default;
12
+ }
13
+ });
14
+ var _Breakdown = _interopRequireWildcard(require("./Breakdown"));
15
+ Object.keys(_Breakdown).forEach(function (key) {
16
+ if (key === "default" || key === "__esModule") return;
17
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
18
+ if (key in exports && exports[key] === _Breakdown[key]) return;
19
+ Object.defineProperty(exports, key, {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _Breakdown[key];
23
+ }
24
+ });
25
+ });
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }