@stokr/components-library 0.6.5 → 0.6.7

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 (463) hide show
  1. package/package.json +84 -77
  2. package/.vscode/settings.json +0 -3
  3. package/CHANGELOG.md +0 -7
  4. package/Dockerfile +0 -20
  5. package/build/asset-manifest.json +0 -45
  6. package/build/favicon.ico +0 -0
  7. package/build/index.html +0 -1
  8. package/build/logo192.png +0 -0
  9. package/build/logo512.png +0 -0
  10. package/build/manifest.json +0 -25
  11. package/build/robots.txt +0 -3
  12. package/build/static/css/main.e30a9d15.css +0 -15
  13. package/build/static/css/main.e30a9d15.css.map +0 -1
  14. package/build/static/js/main.8c250652.js +0 -3
  15. package/build/static/js/main.8c250652.js.LICENSE.txt +0 -158
  16. package/build/static/js/main.8c250652.js.map +0 -1
  17. package/build/static/media/Ionicons.4e528d6445ca1974c313.woff +0 -0
  18. package/build/static/media/Ionicons.643c37f102b41f7f90c3.woff2 +0 -0
  19. package/build/static/media/Ionicons.98b7d3182f652f021bc3.ttf +0 -0
  20. package/build/static/media/OpenSans-Bold.9bea22b57dc165ed4382.ttf +0 -0
  21. package/build/static/media/OpenSans-Bold.a750292d6a0b5a760679.woff +0 -0
  22. package/build/static/media/OpenSans-Bold.cbfc24090ef8bacab132.woff2 +0 -0
  23. package/build/static/media/OpenSans-ExtraBold.21e493d43617de76dbc7.woff2 +0 -0
  24. package/build/static/media/OpenSans-ExtraBold.81f3ef07b7952e249da1.woff +0 -0
  25. package/build/static/media/OpenSans-ExtraBold.bcb6531cf820152b7538.ttf +0 -0
  26. package/build/static/media/OpenSans-Light.179ef2df02cb0b68c9fd.woff2 +0 -0
  27. package/build/static/media/OpenSans-Light.55053cc0a8e6482eca64.ttf +0 -0
  28. package/build/static/media/OpenSans-Light.c6a4bc1bd034d6303053.woff +0 -0
  29. package/build/static/media/OpenSans-Regular.3caa0d4f9b7d58668066.woff2 +0 -0
  30. package/build/static/media/OpenSans-Regular.9ec738fbb66068dc1ca7.woff +0 -0
  31. package/build/static/media/OpenSans-Regular.d97d7385fe8771611848.ttf +0 -0
  32. package/build/static/media/OpenSans-SemiBold.311956ded96d3fd2813d.woff2 +0 -0
  33. package/build/static/media/OpenSans-SemiBold.39f5961b2d3eb4aa5bf5.woff +0 -0
  34. package/build/static/media/OpenSans-SemiBold.d2b1865643b98c0e8b54.ttf +0 -0
  35. package/build/static/media/address-refreshing.5fbb0cc56c384480118a.gif +0 -0
  36. package/build/static/media/arrow-down-black.fe92da3ac6ed16b45bf57713df82cea2.svg +0 -21
  37. package/build/static/media/avatar-placeholder.488a33b3f080a43e0d43.png +0 -0
  38. package/build/static/media/icomoon.2640959b1f9381cde047.eot +0 -0
  39. package/build/static/media/icomoon.35bce49b15feeae93572c36a08feecd9.svg +0 -47
  40. package/build/static/media/icomoon.4c3c428d0ce82f840710.woff +0 -0
  41. package/build/static/media/icomoon.a1d7666a48f976227722.ttf +0 -0
  42. package/build/static/media/lemonway.33e88c3a49e7ac73e3a9.png +0 -0
  43. package/build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg +0 -1
  44. package/build/static/media/slick.2630a3e3eab21c607e21.svg +0 -14
  45. package/build/static/media/slick.295183786cd8a1389865.woff +0 -0
  46. package/build/static/media/slick.a4e97f5a2a64f0ab1323.eot +0 -0
  47. package/build/static/media/slick.c94f7671dcc99dce43e2.ttf +0 -0
  48. package/build/static/media/whales.7a1e9453670d08b8b76a.png +0 -0
  49. package/buildpushndeploy.sh +0 -9
  50. package/devops/Dockerfile +0 -20
  51. package/devops/Jenkinsfile +0 -56
  52. package/devops/ansible/docker-stack-deploy.yml +0 -32
  53. package/devops/ansible/hosts.ini +0 -7
  54. package/devops/docker-compose.yml +0 -25
  55. package/dist/api/StokrWeb3.js +0 -184
  56. package/dist/api/fetchData.js +0 -76
  57. package/dist/api/fetchDataPublic.js +0 -65
  58. package/dist/components/AccountBalance/AccountBalance.js +0 -53
  59. package/dist/components/AccountBalance/AccountBalance.stories.js +0 -88
  60. package/dist/components/AccountBalance/AccountBalance.styles.js +0 -40
  61. package/dist/components/AdminDashboard/Table/Table.js +0 -170
  62. package/dist/components/AdminDashboard/Table/Table.styles.js +0 -79
  63. package/dist/components/AgreementItem/AgreementItem.js +0 -51
  64. package/dist/components/AgreementItem/AgreementItem.stories.js +0 -109
  65. package/dist/components/AgreementItem/AgreementItem.styles.js +0 -35
  66. package/dist/components/AnalyticGraphs/Analytic.js +0 -781
  67. package/dist/components/AnalyticGraphs/Analytic.styles.js +0 -37
  68. package/dist/components/BackButton/BackButton.js +0 -32
  69. package/dist/components/BackButton/BackButton.stories.js +0 -35
  70. package/dist/components/BackButton/BackButton.styles.js +0 -76
  71. package/dist/components/Background/Background.js +0 -41
  72. package/dist/components/Background/Background.stories.js +0 -62
  73. package/dist/components/Background/Background.styles.js +0 -69
  74. package/dist/components/BarChart/BarChart.js +0 -304
  75. package/dist/components/BarChart/BarChart.stories.js +0 -47
  76. package/dist/components/BarChart/BarChart.styles.js +0 -33
  77. package/dist/components/BarChartLegend/BarChartLegend.js +0 -106
  78. package/dist/components/BarChartLegend/BarChartLegend.styles.js +0 -26
  79. package/dist/components/BasicTable/BasicTable.js +0 -32
  80. package/dist/components/BasicTable/BasicTable.stories.js +0 -63
  81. package/dist/components/BasicTable/BasicTable.styles.js +0 -52
  82. package/dist/components/Button/Button.stories.js +0 -79
  83. package/dist/components/Button/Button.styles.js +0 -83
  84. package/dist/components/ButtonContainer/ButtonContainer.styles.js +0 -18
  85. package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -45
  86. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +0 -34
  87. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +0 -34
  88. package/dist/components/ChartBox/ChartBox.js +0 -44
  89. package/dist/components/ChartBox/ChartBox.stories.js +0 -20
  90. package/dist/components/ChartBox/ChartBox.styles.js +0 -33
  91. package/dist/components/ChartBox/ChartBoxDistribution.js +0 -30
  92. package/dist/components/ChartBox/ChartBoxDistribution.stories.js +0 -21
  93. package/dist/components/ChartLegend/ChartLegend.js +0 -62
  94. package/dist/components/ChartLegend/ChartLegend.stories.js +0 -87
  95. package/dist/components/ChartLegend/ChartLegend.styles.js +0 -64
  96. package/dist/components/Checkbox/Checkbox.js +0 -116
  97. package/dist/components/Checkbox/Checkbox.stories.js +0 -92
  98. package/dist/components/Checkbox/Checkbox.styles.js +0 -45
  99. package/dist/components/Checklist/UserChecklist.js +0 -274
  100. package/dist/components/Checklist/UserChecklist.stories.js +0 -126
  101. package/dist/components/ComponentScroll/ComponentScroll.js +0 -138
  102. package/dist/components/ComponentScroll/ComponentScroll.stories.js +0 -102
  103. package/dist/components/ComponentScroll/ComponentScroll.styles.js +0 -66
  104. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +0 -68
  105. package/dist/components/CryptoAddress/ComponentWrap.js +0 -37
  106. package/dist/components/CryptoAddress/CryptoAddress.js +0 -145
  107. package/dist/components/CryptoAddress/CryptoAddress.stories.js +0 -173
  108. package/dist/components/CryptoAddress/CryptoAddress.styles.js +0 -186
  109. package/dist/components/CryptoAddress/RadioWrap.js +0 -49
  110. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +0 -54
  111. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -74
  112. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +0 -67
  113. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +0 -40
  114. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +0 -59
  115. package/dist/components/DonutChart/DonutChart.js +0 -182
  116. package/dist/components/DonutChart/DonutChart.stories.js +0 -40
  117. package/dist/components/DonutChart/DonutChart.styles.js +0 -50
  118. package/dist/components/DoubleButton/DoubleButton.styles.js +0 -22
  119. package/dist/components/ErrorMessage/ErrorMessage.styles.js +0 -15
  120. package/dist/components/FAQ/FAQ.js +0 -65
  121. package/dist/components/FAQ/FAQ.stories.js +0 -74
  122. package/dist/components/FAQ/FAQ.styles.js +0 -48
  123. package/dist/components/Footer/Footer.js +0 -66
  124. package/dist/components/Footer/Footer.stories.js +0 -54
  125. package/dist/components/Footer/Footer.styles.js +0 -74
  126. package/dist/components/Footer/FooterLayout.js +0 -129
  127. package/dist/components/Footer/FooterLayout.stories.js +0 -31
  128. package/dist/components/Footer/FooterMenu.js +0 -117
  129. package/dist/components/Footer/FooterMenu.stories.js +0 -121
  130. package/dist/components/Footer/FooterMenu.styles.js +0 -80
  131. package/dist/components/Footer/index.js +0 -27
  132. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +0 -127
  133. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -42
  134. package/dist/components/Form/Form.js +0 -68
  135. package/dist/components/Form/Form.stories.js +0 -35
  136. package/dist/components/Form/Form.styles.js +0 -59
  137. package/dist/components/FullscreenCard/FullscreenCard.styles.js +0 -32
  138. package/dist/components/Grid/Grid.styles.js +0 -68
  139. package/dist/components/Header/Header.js +0 -452
  140. package/dist/components/Header/Header.stories.js +0 -188
  141. package/dist/components/Header/Header.styles.js +0 -180
  142. package/dist/components/Icon/Icon.style.js +0 -71
  143. package/dist/components/InfoIcon/InfoIcon.js +0 -50
  144. package/dist/components/InfoIcon/InfoIcon.stories.js +0 -52
  145. package/dist/components/InfoIcon/InfoIcon.styles.js +0 -31
  146. package/dist/components/InfoPanel/InfoPanel.js +0 -146
  147. package/dist/components/Input/DatePickerInput.js +0 -85
  148. package/dist/components/Input/DatePickerInput.stories.js +0 -91
  149. package/dist/components/Input/DatePickerInput.styles.js +0 -29
  150. package/dist/components/Input/Input.js +0 -108
  151. package/dist/components/Input/Input.stories.js +0 -148
  152. package/dist/components/Input/Input.styles.js +0 -53
  153. package/dist/components/Input/InputPassword.js +0 -151
  154. package/dist/components/Input/InputPassword.stories.js +0 -85
  155. package/dist/components/Input/InputPassword.styles.js +0 -80
  156. package/dist/components/Input/RangeInput.js +0 -60
  157. package/dist/components/Input/RangeInput.stories.js +0 -59
  158. package/dist/components/Input/RangeInput.styles.js +0 -53
  159. package/dist/components/Input/Select.js +0 -148
  160. package/dist/components/Input/Select.stories.js +0 -142
  161. package/dist/components/Input/Select.styles.js +0 -65
  162. package/dist/components/InvestCalculator/InvestCalculator.js +0 -367
  163. package/dist/components/InvestCalculator/InvestCalculator.stories.js +0 -137
  164. package/dist/components/InvestCalculator/InvestCalculator.styles.js +0 -66
  165. package/dist/components/InvestmentStat/InvestmentStat.js +0 -40
  166. package/dist/components/InvestmentStat/InvestmentStat.stories.js +0 -56
  167. package/dist/components/InvestmentStat/InvestmentStat.styles.js +0 -43
  168. package/dist/components/KYCFlow/BasicInfo.js +0 -489
  169. package/dist/components/KYCFlow/Confirmation.js +0 -51
  170. package/dist/components/KYCFlow/DocumentFileUpload.js +0 -276
  171. package/dist/components/KYCFlow/DocumentScan.js +0 -74
  172. package/dist/components/KYCFlow/DocumentScanUpload.js +0 -258
  173. package/dist/components/KYCFlow/DocumentSelect.js +0 -148
  174. package/dist/components/KYCFlow/DocumentSuccess.js +0 -64
  175. package/dist/components/KYCFlow/DocumentUpload.js +0 -54
  176. package/dist/components/KYCFlow/DocumentVerificationType.js +0 -161
  177. package/dist/components/KYCFlow/FaceScan.js +0 -55
  178. package/dist/components/KYCFlow/FaceScanRecognition.js +0 -60
  179. package/dist/components/KYCFlow/FaceScanSuccess.js +0 -59
  180. package/dist/components/KYCFlow/Terms.js +0 -142
  181. package/dist/components/KYCFlow/_styles.js +0 -160
  182. package/dist/components/KYCFlow/index.js +0 -97
  183. package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +0 -41
  184. package/dist/components/LatestUpdate/LatestUpdate.js +0 -51
  185. package/dist/components/LatestUpdate/LatestUpdate.stories.js +0 -62
  186. package/dist/components/LatestUpdate/LatestUpdate.styles.js +0 -71
  187. package/dist/components/Layout/Layout-func-no-work.js +0 -78
  188. package/dist/components/Layout/Layout.js +0 -103
  189. package/dist/components/Layout/Layout.stories.js +0 -67
  190. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +0 -47
  191. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -70
  192. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +0 -43
  193. package/dist/components/LearnMorePage/LearnMore.js +0 -255
  194. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +0 -40
  195. package/dist/components/LearnMorePage/LearnMore.stories.js +0 -51
  196. package/dist/components/LearnMorePage/LearnMore.styles.js +0 -120
  197. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +0 -87
  198. package/dist/components/LearnMorePage/LearnMoreItem.js +0 -75
  199. package/dist/components/LearnMorePage/LearnMoreItem.stories.js +0 -65
  200. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +0 -87
  201. package/dist/components/LearnMoreSection/LearnMore.js +0 -199
  202. package/dist/components/LearnMoreSection/LearnMore.stories.js +0 -33
  203. package/dist/components/LearnMoreSection/LearnMore.styles.js +0 -73
  204. package/dist/components/LearnMoreSection/LearnMoreItem.js +0 -52
  205. package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +0 -62
  206. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +0 -50
  207. package/dist/components/LoginModal/LoginModal.js +0 -163
  208. package/dist/components/MainMenu/DynamicMainMenu.js +0 -50
  209. package/dist/components/MainMenu/MainMenu.js +0 -262
  210. package/dist/components/MainMenu/MainMenu.styles.js +0 -124
  211. package/dist/components/MatomoConnect/Matomo.js +0 -485
  212. package/dist/components/MatomoConnect/Matomo_fuckup.js +0 -383
  213. package/dist/components/MenuNav/MenuNav.styles.js +0 -42
  214. package/dist/components/Modal/Modal.js +0 -123
  215. package/dist/components/Modal/Modal.stories.js +0 -82
  216. package/dist/components/Modal/Modal.styles.js +0 -140
  217. package/dist/components/MultiProgressBar/MultiProgressBar.js +0 -48
  218. package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +0 -72
  219. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +0 -41
  220. package/dist/components/Newsletter/Newsletter.js +0 -139
  221. package/dist/components/Newsletter/Newsletter.stories.js +0 -19
  222. package/dist/components/Newsletter/Newsletter.styles.js +0 -83
  223. package/dist/components/NotificationContext/NotificationContext.js +0 -173
  224. package/dist/components/NotificationContext/NotificationContext.stories.js +0 -33
  225. package/dist/components/NotificationCounter/NotificationCounter.styles.js +0 -22
  226. package/dist/components/Number/Number.js +0 -35
  227. package/dist/components/Number/Number.stories.js +0 -41
  228. package/dist/components/Number/Number.styles.js +0 -20
  229. package/dist/components/PageTransition/PageTransition.js +0 -57
  230. package/dist/components/Process/Process.stories.js +0 -47
  231. package/dist/components/Process/Process.styles.js +0 -33
  232. package/dist/components/ProfileBadge/ProfileBadge.js +0 -53
  233. package/dist/components/ProfileBadge/ProfileBadge.stories.js +0 -48
  234. package/dist/components/ProfileBadge/ProfileBadge.styles.js +0 -32
  235. package/dist/components/ProfileBox/ProfileBox.js +0 -39
  236. package/dist/components/ProfileBox/ProfileBox.stories.js +0 -38
  237. package/dist/components/ProfileBox/ProfileBox.styles.js +0 -49
  238. package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +0 -477
  239. package/dist/components/ProfileHeader/ProfileHeader.js +0 -330
  240. package/dist/components/ProfileHeader/ProfileHeader.styles.js +0 -87
  241. package/dist/components/ProfileStat/ProfileStat.js +0 -42
  242. package/dist/components/ProfileStat/ProfileStat.stories.js +0 -71
  243. package/dist/components/ProfileStat/ProfileStat.styles.js +0 -42
  244. package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +0 -69
  245. package/dist/components/ROI/ROI.js +0 -312
  246. package/dist/components/ROI/ROI.styles.js +0 -63
  247. package/dist/components/ROI/ROIChart.js +0 -469
  248. package/dist/components/ROI/ROIChart.styles.js +0 -33
  249. package/dist/components/ROI/ROIModal.js +0 -91
  250. package/dist/components/ROI/ROIScenarioBox.js +0 -55
  251. package/dist/components/ROI/ROIScenarioBox.styles.js +0 -52
  252. package/dist/components/Radio/Radio.js +0 -68
  253. package/dist/components/Radio/Radio.stories.js +0 -76
  254. package/dist/components/Radio/Radio.styles.js +0 -31
  255. package/dist/components/RefreshButton/RefreshButton.js +0 -21
  256. package/dist/components/RefreshButton/RefreshButton.stories.js +0 -41
  257. package/dist/components/RefreshButton/RefreshButton.styles.js +0 -39
  258. package/dist/components/RegisterAlgorand/AlgoAddressName.js +0 -138
  259. package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +0 -444
  260. package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +0 -47
  261. package/dist/components/RegisterAlgorand/AlgoSuccess.js +0 -38
  262. package/dist/components/RegisterAlgorand/Algorand.stories.js +0 -78
  263. package/dist/components/RegisterAlgorand/ChooseWallet.js +0 -97
  264. package/dist/components/RegisterAlgorand/SelectProject.js +0 -90
  265. package/dist/components/RegisterAlgorand/_styles.js +0 -28
  266. package/dist/components/RegisterAlgorand/flow.js +0 -409
  267. package/dist/components/RegisterAlgorand/flowWithMemo.js +0 -410
  268. package/dist/components/RegisterAlgorand/index.js +0 -48
  269. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +0 -40
  270. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -33
  271. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +0 -16
  272. package/dist/components/RegisterEthereum/EthAddressLedger.js +0 -215
  273. package/dist/components/RegisterEthereum/EthAddressMetamask.js +0 -205
  274. package/dist/components/RegisterEthereum/EthAddressName.js +0 -135
  275. package/dist/components/RegisterEthereum/EthConnectLedger.js +0 -194
  276. package/dist/components/RegisterEthereum/EthConnectMetamask.js +0 -35
  277. package/dist/components/RegisterEthereum/EthFinish.js +0 -41
  278. package/dist/components/RegisterEthereum/EthIntro.js +0 -95
  279. package/dist/components/RegisterEthereum/_styles.js +0 -28
  280. package/dist/components/RegisterEthereum/index.js +0 -68
  281. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +0 -106
  282. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +0 -66
  283. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +0 -48
  284. package/dist/components/RegisterLiquidSteps/complete.js +0 -37
  285. package/dist/components/RegisterLiquidSteps/flow.js +0 -197
  286. package/dist/components/RegisterLiquidSteps/index.js +0 -52
  287. package/dist/components/RegisterLiquidSteps/register-liquid.js +0 -240
  288. package/dist/components/RegisterModal/RegisterModal.js +0 -180
  289. package/dist/components/RegisterModal/RegisterModal.stories.js +0 -46
  290. package/dist/components/RequestDataBox/RequestDataBox.js +0 -31
  291. package/dist/components/RequestDataBox/RequestDataBox.stories.js +0 -40
  292. package/dist/components/RequestDataBox/RequestDataBox.styles.js +0 -31
  293. package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -185
  294. package/dist/components/RiskQuestionnaire/_styles.js +0 -15
  295. package/dist/components/SEO/SEO.js +0 -71
  296. package/dist/components/SEO/SEO.stories.js +0 -64
  297. package/dist/components/SectionTitle/SectionTitle.styles.js +0 -15
  298. package/dist/components/SideLine/SideLine.js +0 -15
  299. package/dist/components/SideLine/SideLine.stories.js +0 -31
  300. package/dist/components/SideLine/SideLine.styles.js +0 -26
  301. package/dist/components/SigningSubflow/SignSubAddressMetamask.js +0 -137
  302. package/dist/components/SigningSubflow/SignSubConnectLedger.js +0 -150
  303. package/dist/components/SigningSubflow/SignSubConnectMetamask.js +0 -137
  304. package/dist/components/SigningSubflow/SignSubIntro.js +0 -54
  305. package/dist/components/SigningSubflow/SignSubSendLedger.js +0 -150
  306. package/dist/components/SigningSubflow/SignSubSendMetamask.js +0 -62
  307. package/dist/components/SigningSubflow/SignSubTransactionLedger.js +0 -161
  308. package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +0 -166
  309. package/dist/components/SigningSubflow/_styles.js +0 -45
  310. package/dist/components/SigningSubflow/index.js +0 -74
  311. package/dist/components/Slider/Slider.js +0 -50
  312. package/dist/components/Slider/Slider.stories.js +0 -72
  313. package/dist/components/Slider/Slider.styles.js +0 -23
  314. package/dist/components/SpanButton/SpanButton.styles.js +0 -15
  315. package/dist/components/StatusBadge/StatusBadge.styles.js +0 -20
  316. package/dist/components/StepController/StepController.js +0 -111
  317. package/dist/components/StepController/StepController.stories.js +0 -63
  318. package/dist/components/StepController/StepController.styles.js +0 -26
  319. package/dist/components/StepController/StepControllerContext.js +0 -104
  320. package/dist/components/StepController/StepControllerProgress.js +0 -40
  321. package/dist/components/StepController/StepControllerProgress.stories.js +0 -52
  322. package/dist/components/StepsProgress/StepsProgress.js +0 -127
  323. package/dist/components/StepsProgress/StepsProgress.stories.js +0 -50
  324. package/dist/components/StepsProgress/StepsProgress.styles.js +0 -36
  325. package/dist/components/StokrLoader/StokrLoader.js +0 -32
  326. package/dist/components/StokrLoader/media.js +0 -27
  327. package/dist/components/SvgIcons/AdminBadgeSvg.js +0 -26
  328. package/dist/components/SvgIcons/CameraSvg.js +0 -36
  329. package/dist/components/SvgIcons/CapsLockSvg.js +0 -31
  330. package/dist/components/SvgIcons/DocumentBackSvg.js +0 -35
  331. package/dist/components/SvgIcons/DocumentSmallSvg.js +0 -61
  332. package/dist/components/SvgIcons/DocumentSvg.js +0 -38
  333. package/dist/components/SvgIcons/Early.js +0 -24
  334. package/dist/components/SvgIcons/EthSvg.js +0 -40
  335. package/dist/components/SvgIcons/EurSvg.js +0 -26
  336. package/dist/components/SvgIcons/FaceScanIconSvg.js +0 -31
  337. package/dist/components/SvgIcons/FourSvg.js +0 -21
  338. package/dist/components/SvgIcons/Glassess.js +0 -29
  339. package/dist/components/SvgIcons/LogoSvg.js +0 -24
  340. package/dist/components/SvgIcons/OneSvg.js +0 -23
  341. package/dist/components/SvgIcons/PassportSvg.js +0 -56
  342. package/dist/components/SvgIcons/RefreshSvg.js +0 -27
  343. package/dist/components/SvgIcons/SocialFacebook.js +0 -25
  344. package/dist/components/SvgIcons/SocialInstagram.js +0 -26
  345. package/dist/components/SvgIcons/SocialLinkedIn.js +0 -25
  346. package/dist/components/SvgIcons/SocialMedium.js +0 -25
  347. package/dist/components/SvgIcons/SocialReddit.js +0 -25
  348. package/dist/components/SvgIcons/SocialTelegram.js +0 -25
  349. package/dist/components/SvgIcons/SocialTwitter.js +0 -25
  350. package/dist/components/SvgIcons/SocialYoutube.js +0 -25
  351. package/dist/components/SvgIcons/ThreeSvg.js +0 -20
  352. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +0 -82
  353. package/dist/components/SvgIcons/TwoSvg.js +0 -23
  354. package/dist/components/SvgIcons/UpdateDefaultSvg.js +0 -29
  355. package/dist/components/SvgIcons/UpdateHardSvg.js +0 -25
  356. package/dist/components/SvgIcons/UpdateSoftSvg.js +0 -27
  357. package/dist/components/SvgIcons/UploadSvg.js +0 -34
  358. package/dist/components/SvgIcons/VerifiedBadge.js +0 -23
  359. package/dist/components/SvgIcons/index.js +0 -223
  360. package/dist/components/Switch/Switch.js +0 -70
  361. package/dist/components/Switch/Switch.stories.js +0 -86
  362. package/dist/components/Switch/Switch.styles.js +0 -47
  363. package/dist/components/Tabs/Tabs.js +0 -70
  364. package/dist/components/Tabs/Tabs.stories.js +0 -29
  365. package/dist/components/Tabs/Tabs.styles.js +0 -18
  366. package/dist/components/TabsNav/TabNav.js +0 -31
  367. package/dist/components/TabsNav/TabNav.stories.js +0 -44
  368. package/dist/components/TabsNav/TabsNav.js +0 -43
  369. package/dist/components/TabsNav/TabsNav.stories.js +0 -26
  370. package/dist/components/TabsNav/TabsNav.styles.js +0 -43
  371. package/dist/components/TeamOverview/TeamOverview.js +0 -125
  372. package/dist/components/TeamOverview/TeamOverview.stories.js +0 -80
  373. package/dist/components/TeamOverview/TeamOverview.styles.js +0 -81
  374. package/dist/components/Text/Headline.js +0 -29
  375. package/dist/components/Text/Headline.stories.js +0 -51
  376. package/dist/components/Text/StyledText.js +0 -19
  377. package/dist/components/Text/Text.stories.js +0 -71
  378. package/dist/components/Text/Text.styles.js +0 -40
  379. package/dist/components/TextLink/TextLink.styles.js +0 -30
  380. package/dist/components/ToDoList/ToDoList.js +0 -184
  381. package/dist/components/ToDoList/ToDoList.stories.js +0 -137
  382. package/dist/components/ToDoList/ToDoList.styles.js +0 -83
  383. package/dist/components/ToDoList/ToDoListTask.js +0 -118
  384. package/dist/components/ToDoList/ToDoListTask.stories.js +0 -72
  385. package/dist/components/ToDoList/ToDoListTask.styles.js +0 -74
  386. package/dist/components/TransactionDetails/TransactionDetails.js +0 -46
  387. package/dist/components/TransactionDetails/TransactionDetails.stories.js +0 -59
  388. package/dist/components/TransactionDetails/TransactionDetails.styles.js +0 -31
  389. package/dist/components/TransactionInfo/TransactionInfo.js +0 -58
  390. package/dist/components/TransactionInfo/TransactionInfo.stories.js +0 -64
  391. package/dist/components/TransactionInfo/TransactionInfo.styles.js +0 -54
  392. package/dist/components/TwoFactorModal/TwoFactorModal.js +0 -122
  393. package/dist/components/breakdown/Breakdown.js +0 -56
  394. package/dist/components/breakdown/index.js +0 -27
  395. package/dist/components/context/Auth.js +0 -207
  396. package/dist/components/context/AuthContext.js +0 -335
  397. package/dist/components/icons/Arrow.js +0 -70
  398. package/dist/components/icons/Arrow.stories.js +0 -49
  399. package/dist/components/icons/ArrowSimple.js +0 -59
  400. package/dist/components/icons/ArrowSimple.stories.js +0 -55
  401. package/dist/components/icons/Check.js +0 -43
  402. package/dist/components/icons/Check.stories.js +0 -25
  403. package/dist/components/icons/Facebook.js +0 -26
  404. package/dist/components/icons/Facebook.stories.js +0 -24
  405. package/dist/components/icons/Info.js +0 -55
  406. package/dist/components/icons/Info.stories.js +0 -19
  407. package/dist/components/icons/Instagram.js +0 -26
  408. package/dist/components/icons/Instagram.stories.js +0 -24
  409. package/dist/components/icons/LinkIcon.js +0 -34
  410. package/dist/components/icons/LinkIcon.stories.js +0 -24
  411. package/dist/components/icons/LinkedIn.js +0 -43
  412. package/dist/components/icons/LinkedIn.stories.js +0 -19
  413. package/dist/components/icons/Medium.js +0 -42
  414. package/dist/components/icons/Medium.stories.js +0 -19
  415. package/dist/components/icons/Reddit.js +0 -32
  416. package/dist/components/icons/Reddit.stories.js +0 -24
  417. package/dist/components/icons/Share.js +0 -62
  418. package/dist/components/icons/Share.stories.js +0 -19
  419. package/dist/components/icons/Telegram.js +0 -42
  420. package/dist/components/icons/Telegram.stories.js +0 -19
  421. package/dist/components/icons/Twitter.js +0 -26
  422. package/dist/components/icons/Twitter.stories.js +0 -24
  423. package/dist/components/icons/X.js +0 -26
  424. package/dist/components/icons/X.stories.js +0 -19
  425. package/dist/components/icons/Youtube.js +0 -26
  426. package/dist/components/icons/Youtube.stories.js +0 -24
  427. package/dist/components/icons/index.js +0 -170
  428. package/dist/components/renderToBody/index.js +0 -27
  429. package/dist/components/renderToBody/renderToBody.js +0 -68
  430. package/dist/components/taxId/TaxId.stories.js +0 -42
  431. package/dist/components/taxId/complete.js +0 -32
  432. package/dist/components/taxId/flow.js +0 -52
  433. package/dist/components/taxId/index.js +0 -27
  434. package/dist/components/taxId/register-taxid.js +0 -186
  435. package/dist/components/video/Video.js +0 -174
  436. package/dist/components/video/Video.stories.js +0 -56
  437. package/dist/components/video/index.js +0 -27
  438. package/dist/constants/style.js +0 -52
  439. package/dist/index.js +0 -1
  440. package/dist/model/axios.js +0 -18
  441. package/dist/model/axiosPublic.js +0 -18
  442. package/dist/styles/colors.js +0 -55
  443. package/dist/styles/fonts.js +0 -34
  444. package/dist/styles/global.js +0 -19
  445. package/dist/styles/grid.js +0 -16
  446. package/dist/styles/reactTippy.js +0 -12
  447. package/dist/styles/rwd.js +0 -52
  448. package/dist/styles/semanticUi.js +0 -12
  449. package/dist/styles/spacing.js +0 -12
  450. package/dist/styles/theme.js +0 -43
  451. package/dist/utils/allowed-countries-list.js +0 -1375
  452. package/dist/utils/breakpoint.js +0 -19
  453. package/dist/utils/countries-list.js +0 -1008
  454. package/dist/utils/customHooks.js +0 -52
  455. package/dist/utils/delete-redirect-cookie-and-navigate.js +0 -20
  456. package/dist/utils/fix-decimals.js +0 -11
  457. package/dist/utils/get-cookie-domain.js +0 -16
  458. package/dist/utils/get-short-address.js +0 -10
  459. package/dist/utils/lock-body.js +0 -20
  460. package/dist/utils/redirect-url.js +0 -10
  461. package/dist/utils/set-redirect-cookie.js +0 -20
  462. package/docker-compose.yml +0 -25
  463. package/storybook-static/favicon.ico +0 -0
@@ -1,469 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.ROIChart = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var d3 = _interopRequireWildcard(require("d3"));
10
- var _reactTippy = require("react-tippy");
11
- var _BarChartLegend = _interopRequireDefault(require("components/BarChartLegend/BarChartLegend"));
12
- var _rwd = require("styles/rwd");
13
- var _ROIChart = require("./ROIChart.styles");
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- 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); }
16
- 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; }
17
- 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); }
18
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
- 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); } }
20
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
- 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); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
- 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); }; }
24
- 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); }
25
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
- 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; } }
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
- 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; }
29
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
30
- 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); }
31
- var gradients = {
32
- red: {
33
- start: '#f24f45',
34
- end: '#ee220d'
35
- },
36
- blue: {
37
- start: '#6a97e0',
38
- end: '#0050ca'
39
- }
40
- };
41
- var ROIChart = /*#__PURE__*/function (_PureComponent) {
42
- _inherits(ROIChart, _PureComponent);
43
- var _super = _createSuper(ROIChart);
44
- function ROIChart() {
45
- var _this;
46
- _classCallCheck(this, ROIChart);
47
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48
- args[_key] = arguments[_key];
49
- }
50
- _this = _super.call.apply(_super, [this].concat(args));
51
- _defineProperty(_assertThisInitialized(_this), "transitionDuration", 800);
52
- _defineProperty(_assertThisInitialized(_this), "transitionDatumDelay", 100);
53
- _defineProperty(_assertThisInitialized(_this), "state", {
54
- tooltipOpen: false,
55
- dataIndex: 0
56
- });
57
- _defineProperty(_assertThisInitialized(_this), "checkIsMobile", function () {
58
- return !window.matchMedia((0, _rwd.getMedia)('Medium')).matches;
59
- });
60
- _defineProperty(_assertThisInitialized(_this), "onResize", function () {
61
- clearTimeout(_this.resizeTimeout);
62
- _this.resizeTimeout = setTimeout(_this.onResizeTimeout, 200);
63
- });
64
- _defineProperty(_assertThisInitialized(_this), "onResizeTimeout", function () {
65
- _this.updateChart(true);
66
- });
67
- _defineProperty(_assertThisInitialized(_this), "onScroll", function (e) {
68
- if (_this.drawn) return;
69
- if (_this.chartEl.getBoundingClientRect().top < window.innerHeight) {
70
- _this.initialDrawChart();
71
- }
72
- });
73
- _defineProperty(_assertThisInitialized(_this), "initialDrawChart", function () {
74
- _this.updateChart();
75
- _this.drawn = true;
76
- });
77
- _defineProperty(_assertThisInitialized(_this), "createChart", function () {
78
- if (!_this.chartEl) return;
79
- var _this$props = _this.props,
80
- id = _this$props.id,
81
- data = _this$props.data;
82
- var dataIndex = _this.state.dataIndex;
83
- var tooltip = data[dataIndex] && !!data[dataIndex].tooltip;
84
- var wrapperWidth = _this.chartEl.offsetWidth;
85
- var wrapperHeight = 320;
86
- var margin = {
87
- top: 20,
88
- left: 0,
89
- right: 40,
90
- bottom: 30
91
- };
92
- var width = wrapperWidth - (margin.left + margin.right);
93
- var height = wrapperHeight - (margin.top + margin.bottom);
94
- var thickness = 6;
95
- var hThickness = thickness / 2;
96
- var minBarHeight = 12;
97
- _this.hThickness = hThickness;
98
-
99
- // #region x scale
100
- var xScale = _this.getXScale(data, width);
101
- // #endregion x scale
102
-
103
- // #region y scale
104
- var yScale = _this.getYScale(data, height);
105
- // #endregion y scale
106
-
107
- _this.svg = d3.select(_this.chartEl).append('svg').attr('width', wrapperWidth).attr('height', wrapperHeight);
108
- _this.chart = _this.svg.append('g').attr('transform', "translate(".concat(margin.left, ", ").concat(margin.top, ")"));
109
- _this.defs = _this.svg.append('defs');
110
-
111
- // #region gradient
112
- _this.redGradient = _this.defs.append('linearGradient').attr('id', "".concat(id, "-barChart-redgradient")).attr('x1', '50%').attr('x2', '50%').attr('y1', '100%').attr('y2', '0%');
113
- _this.redGradient.append('stop').attr('class', 'start').attr('offset', '0%').attr('stop-color', gradients.red.start).attr('stop-opacity', 1);
114
- _this.redGradient.append('stop').attr('class', 'end').attr('offset', '100%').attr('stop-color', gradients.red.end).attr('stop-opacity', 1);
115
- _this.blueGradient = _this.defs.append('linearGradient').attr('id', "".concat(id, "-barChart-bluegradient")).attr('x1', '50%').attr('x2', '50%').attr('y1', '100%').attr('y2', '0%');
116
- _this.blueGradient.append('stop').attr('class', 'start').attr('offset', '0%').attr('stop-color', gradients.blue.start).attr('stop-opacity', 1);
117
- _this.blueGradient.append('stop').attr('class', 'end').attr('offset', '100%').attr('stop-color', gradients.blue.end).attr('stop-opacity', 1);
118
- // #endregion gradient
119
-
120
- // #region x axis
121
- _this.xAxis = _this.chart.append('g').attr('class', 'axisX').attr('transform', "translate(0, ".concat(yScale(0), ")")).call(d3.axisBottom(xScale).tickPadding(height - yScale(0) + minBarHeight));
122
- // #endregion x axis
123
-
124
- // #region y axis
125
- _this.yAxis = _this.chart.append('g').attr('class', 'axisY').attr('transform', "translate(".concat(width, ", 0)")).call(d3.axisRight().scale(yScale).ticks(4));
126
- // #endregion y axis
127
-
128
- // #region grid x axis
129
- _this.xGrid = _this.chart.append('g').attr('class', 'gridX').attr('transform', "translate(0, ".concat(height, ")")).call(d3.axisBottom().scale(xScale).tickSize(-height, 0, 0).tickFormat(''));
130
- // #endregion grid x axis
131
-
132
- // #region grid y axis
133
- _this.yGrid = _this.chart.append('g').attr('class', 'gridY').attr('transform', "translate(".concat(width, ", 0)")).call(d3.axisRight().scale(yScale).tickSize(-width, 0, 0).ticks(4).tickFormat(''));
134
- // #endregion grid y axis
135
-
136
- // #region bar measures functions
137
- var gainBarY = function gainBarY(d) {
138
- return d.gain < 0 ? yScale(0) : yScale(d.gain) - minBarHeight;
139
- };
140
- var gainBarHeight = function gainBarHeight(d) {
141
- return Math.abs(yScale(0) - yScale(d.gain)) + minBarHeight;
142
- };
143
- var profitBarY = function profitBarY(d) {
144
- return d.profit < 0 ? yScale(0) + gainBarHeight(d) : yScale(d.profit) - minBarHeight * 2;
145
- };
146
- var profitBarHeight = function profitBarHeight(d) {
147
- return Math.abs(yScale(d.gain) - yScale(d.profit)) + minBarHeight;
148
- };
149
-
150
- // #endregion bar measures functions
151
-
152
- // #region bars
153
- var chartContext = _assertThisInitialized(_this);
154
- var barGroups = _this.chart.selectAll('.stackedBar').data(data).enter().append('g').attr('class', 'stackedBar').attr('transform', "translate(".concat(-hThickness, ", 0)"))
155
- // end series create
156
- .each(function bindContext(d, i) {
157
- d3.select(this).node().chartContext = chartContext;
158
- d3.select(this).node().xScale = xScale;
159
- }).on('mouseenter', tooltip ? _this.onMouseEnter : function () {}).on('mouseleave', tooltip ? _this.onMouseLeave : function () {});
160
-
161
- // #region gainBar
162
- barGroups.append('rect').attr('class', 'stackedBar__gain').attr('fill', "url(#".concat(id, "-barChart-bluegradient)")).attr('x', function (d, i) {
163
- return xScale(d.year);
164
- }).attr('y', gainBarY).attr('height', gainBarHeight).attr('width', 6);
165
- // #endregion gainBar
166
-
167
- // #region profitBar
168
- barGroups.append('rect').attr('class', 'stackedBar__profit').attr('fill', "url(#".concat(id, "-barChart-redgradient)")).attr('x', function (d, i) {
169
- return xScale(d.year);
170
- }).attr('y', profitBarY).attr('height', profitBarHeight).attr('width', 6);
171
- // #endregion profitBar
172
-
173
- barGroups.append('text').attr('class', 'stackedBar__gainText').attr('fill', '#fff').attr('x', function (d, i) {
174
- return xScale(d.year) + xScale.bandwidth() / 2;
175
- }).attr('y', gainBarY).text(function (d) {
176
- return "\u20AC ".concat(d.gain);
177
- }).attr('opacity', 0);
178
- barGroups.append('text').attr('class', 'stackedBar__profitText').attr('fill', '#fff').attr('x', function (d, i) {
179
- return xScale(d.year) + xScale.bandwidth() / 2;
180
- }).attr('y', profitBarY).text(function (d) {
181
- return "\u20AC ".concat(d.profit);
182
- }).attr('opacity', 0);
183
- // #endregion bars
184
- });
185
- _defineProperty(_assertThisInitialized(_this), "getXScale", function (data, width) {
186
- return d3.scaleBand().range([0, width]).domain(data.map(function (datum) {
187
- return datum.year;
188
- })).padding(0.2);
189
- });
190
- _defineProperty(_assertThisInitialized(_this), "getYScale", function (data, height) {
191
- return d3.scaleLinear().range([height, 0]).domain([Math.min(d3.min(data, function (datum) {
192
- return datum.gain + datum.profit;
193
- }), 0), Math.max(d3.max(data, function (datum) {
194
- return datum.gain + datum.profit;
195
- }), Math.abs(d3.min(data, function (datum) {
196
- return datum.gain + datum.profit;
197
- })))]);
198
- });
199
- _defineProperty(_assertThisInitialized(_this), "setTooltip", function (opened, dataIndex) {
200
- var newState = {
201
- tooltipOpen: opened
202
- };
203
- if (dataIndex !== undefined) newState.dataIndex = dataIndex;
204
- _this.setState(newState);
205
- });
206
- _defineProperty(_assertThisInitialized(_this), "onMouseEnter", function onMouseEnter(d, i) {
207
- var chartRect = this.chartContext.chartEl.getBoundingClientRect();
208
- var barRect = this.getBoundingClientRect();
209
- var y = barRect.y - chartRect.y;
210
- var x = this.xScale(d.year) + this.xScale.bandwidth() / 2;
211
- if (this.chartContext.tooltipEl) {
212
- this.chartContext.tooltipEl.style.left = "".concat(x, "px");
213
- this.chartContext.tooltipEl.style.top = "".concat(y, "px");
214
- }
215
- this.chartContext.setTooltip(true, i);
216
- if (this.chartContext.checkIsMobile()) {
217
- return;
218
- }
219
- var barGroup = d3.select(this);
220
- var shift = Math.min(this.xScale.bandwidth(), 100);
221
- barGroup.transition().duration(300).attr('transform', "translate(".concat(-shift / 2, ", 0)"));
222
- var gainBar = barGroup.select('.stackedBar__gain');
223
- var profitBar = barGroup.select('.stackedBar__profit');
224
- var gainText = barGroup.select('.stackedBar__gainText');
225
- var profitText = barGroup.select('.stackedBar__profitText');
226
- var gainTextWidth = gainText.node().getBoundingClientRect().width;
227
- var profitTextWidth = profitText.node().getBoundingClientRect().width;
228
- gainBar.transition().duration(300).attr('width', shift);
229
- profitBar.transition().duration(300).attr('width', shift);
230
- gainText.attr('transform', "translate(".concat(shift / 2 - gainTextWidth / 2, ", 0)")).transition().duration(300).delay(200).attr('opacity', 1);
231
- profitText.attr('transform', "translate(".concat(shift / 2 - profitTextWidth / 2, ", 0)")).transition().duration(300).delay(200).attr('opacity', 1);
232
- });
233
- _defineProperty(_assertThisInitialized(_this), "onMouseLeave", function onMouseLeave(d, i) {
234
- var width = 6;
235
- this.chartContext.setTooltip(false);
236
- if (this.chartContext.checkIsMobile()) {
237
- return;
238
- }
239
- var barGroup = d3.select(this);
240
- barGroup.transition().duration(300).delay(200).attr('transform', "translate(".concat(-width / 2, ", 0)"));
241
- barGroup.select('.stackedBar__gain').transition().duration(300).delay(200).attr('width', width);
242
- barGroup.select('.stackedBar__profit').transition().duration(300).delay(200).attr('width', width);
243
- barGroup.select('.stackedBar__gainText').transition().duration(300).attr('opacity', 0);
244
- barGroup.select('.stackedBar__profitText').transition().duration(300).attr('opacity', 0);
245
- });
246
- _defineProperty(_assertThisInitialized(_this), "updateChart", function (resizeUpdate) {
247
- if (!_this.chartEl) return;
248
- var _this$props2 = _this.props,
249
- data = _this$props2.data,
250
- id = _this$props2.id;
251
- var dataIndex = _this.state.dataIndex;
252
- var tooltip = data[dataIndex] && !!data[dataIndex].tooltip;
253
- var duration = _this.transitionDuration;
254
- var delay = _this.transitionDatumDelay;
255
- var wrapperWidth = _this.chartEl.offsetWidth;
256
- var wrapperHeight = 320;
257
- var margin = {
258
- top: 20,
259
- left: 0,
260
- right: 40,
261
- bottom: 30
262
- };
263
- var width = wrapperWidth - (margin.left + margin.right);
264
- var height = wrapperHeight - (margin.top + margin.bottom);
265
- var thickness = 6;
266
- var hThickness = thickness / 2;
267
- var minBarHeight = 12;
268
- var textOffsetTop = 3;
269
- // #region x scale
270
- var xScale = _this.getXScale(data, width);
271
- // #endregion x scale
272
-
273
- // #region y scale
274
- var yScale = _this.getYScale(data, height);
275
- // #endregion y scale
276
- // #region root svg
277
- _this.svg.transition().duration(duration).attr('width', wrapperWidth).attr('height', wrapperHeight);
278
- // #endregion root svg
279
-
280
- // #region grid x axis
281
- _this.xGrid.transition().duration(duration).attr('transform', "translate(0, ".concat(height, ")")).call(d3.axisBottom().scale(xScale).tickSize(-height, 0, 0).tickFormat(''));
282
- // #endregion grid x axis
283
-
284
- // #region grid y axis
285
- _this.yGrid.transition().duration(duration).attr('transform', "translate(".concat(width, ", 0)")).call(d3.axisRight().scale(yScale).tickSize(-width, 0, 0).ticks(4).tickFormat(''));
286
- // #endregion grid y axis
287
-
288
- // #region x axis
289
- _this.xAxis.transition().delay(function () {
290
- return resizeUpdate ? 0 : delay;
291
- }).duration(duration).attr('transform', "translate(0, ".concat(yScale(0), ")")).call(d3.axisBottom().scale(xScale).tickPadding(height - yScale(0) + minBarHeight));
292
- // #endregion x axis
293
-
294
- // #region y axis
295
- _this.yAxis.transition().duration(duration).attr('transform', "translate(".concat(width, ", 0)")).call(d3.axisRight().scale(yScale).ticks(4));
296
- // #endregion y axis
297
-
298
- // #region bar measures functions
299
- var gainBarY = function gainBarY(d) {
300
- return d.gain < 0 ? yScale(0) : yScale(d.gain) - minBarHeight;
301
- };
302
- var gainBarHeight = function gainBarHeight(d) {
303
- return Math.abs(yScale(0) - yScale(d.gain)) + minBarHeight;
304
- };
305
- var profitBarY = function profitBarY(d) {
306
- return d.profit < 0 ? yScale(0) + gainBarHeight(d) : yScale(d.profit) - minBarHeight * 2;
307
- };
308
- var profitBarHeight = function profitBarHeight(d) {
309
- return Math.abs(yScale(d.gain) - yScale(d.profit)) + minBarHeight;
310
- };
311
-
312
- // #endregion bar measures functions
313
-
314
- var chartContext = _assertThisInitialized(_this);
315
- // #region bars
316
- var barGroups = _this.chart.selectAll('.stackedBar').data(data);
317
- barGroups.each(function bindContext(d, i) {
318
- d3.select(this).node().chartContext = chartContext;
319
- d3.select(this).node().xScale = xScale;
320
- });
321
- var barGroupsEnter = barGroups.enter().append('g').attr('class', 'stackedBar').attr('transform', "translate(".concat(-hThickness, ", 0)")).each(function bindContext(d, i) {
322
- d3.select(this).node().chartContext = chartContext;
323
- d3.select(this).node().xScale = xScale;
324
- }).on('mouseenter', tooltip ? _this.onMouseEnter : function () {}).on('mouseleave', tooltip ? _this.onMouseLeave : function () {});
325
-
326
- // #region gainBar
327
- barGroupsEnter.append('rect').attr('class', 'stackedBar__gain').attr('fill', "url(#".concat(id, "-barChart-bluegradient)")).attr('x', function (d, i) {
328
- return xScale(d.year) + xScale.bandwidth() / 2;
329
- }).attr('y', yScale(0)).attr('height', 0).attr('width', 6).transition().delay(function () {
330
- return delay * 4;
331
- }).duration(duration).attr('y', gainBarY).attr('height', gainBarHeight);
332
- // #endregion gainBar
333
-
334
- // #region profitBar
335
- barGroupsEnter.append('rect').attr('class', 'stackedBar__profit').attr('fill', "url(#".concat(id, "-barChart-redgradient)")).attr('x', function (d, i) {
336
- return xScale(d.year) + xScale.bandwidth() / 2;
337
- }).attr('y', yScale(0)).attr('height', 0).attr('width', 6).transition().delay(function () {
338
- return delay * 4;
339
- }).duration(duration).attr('y', profitBarY).attr('height', profitBarHeight);
340
-
341
- // #endregion profitBar
342
-
343
- barGroupsEnter.append('text').attr('class', 'stackedBar__gainText').attr('fill', '#fff').attr('x', function (d, i) {
344
- return xScale(d.year) + xScale.bandwidth() / 2;
345
- }).attr('y', function (d) {
346
- return gainBarY(d) + gainBarHeight(d) / 2 + textOffsetTop;
347
- }).text(function (d) {
348
- return "\u20AC ".concat(d.gain);
349
- }).attr('opacity', 0);
350
- barGroupsEnter.append('text').attr('class', 'stackedBar__profitText').attr('fill', '#fff').attr('x', function (d, i) {
351
- return xScale(d.year) + xScale.bandwidth() / 2;
352
- }).attr('y', function (d) {
353
- return profitBarY(d) + profitBarHeight(d) / 2 + textOffsetTop;
354
- }).text(function (d) {
355
- return "\u20AC ".concat(d.profit);
356
- }).attr('opacity', 0);
357
-
358
- // #endregion bars
359
-
360
- barGroups.select('.stackedBar__gain').attr('width', 6).transition().delay(function () {
361
- return resizeUpdate ? 0 : delay;
362
- }).duration(duration).attr('x', function (d, i) {
363
- return xScale(d.year) + xScale.bandwidth() / 2;
364
- }).attr('y', gainBarY).attr('height', gainBarHeight);
365
- barGroups.select('.stackedBar__profit').attr('width', 6).transition().delay(function () {
366
- return resizeUpdate ? 0 : delay;
367
- }).duration(duration).attr('x', function (d, i) {
368
- return xScale(d.year) + xScale.bandwidth() / 2;
369
- }).attr('y', profitBarY).attr('height', profitBarHeight);
370
- barGroups.select('.stackedBar__gainText').attr('x', function (d, i) {
371
- return xScale(d.year) + xScale.bandwidth() / 2;
372
- }).attr('y', function (d) {
373
- return gainBarY(d) + gainBarHeight(d) / 2 + textOffsetTop;
374
- }).text(function (d) {
375
- return "\u20AC ".concat(d.gain);
376
- });
377
- barGroups.select('.stackedBar__profitText').attr('x', function (d, i) {
378
- return xScale(d.year) + xScale.bandwidth() / 2;
379
- }).attr('y', function (d) {
380
- return profitBarY(d) + profitBarHeight(d) / 2 + textOffsetTop;
381
- }).text(function (d) {
382
- return "\u20AC ".concat(d.profit);
383
- });
384
- barGroups.exit().remove();
385
- });
386
- return _this;
387
- }
388
- _createClass(ROIChart, [{
389
- key: "componentDidMount",
390
- value: function componentDidMount() {
391
- this.createChart();
392
- window.addEventListener('resize', this.onResize);
393
- window.addEventListener('scroll', this.onScroll);
394
- this.onScroll();
395
- }
396
- }, {
397
- key: "componentDidUpdate",
398
- value: function componentDidUpdate(prevProps) {
399
- var data = this.props.data;
400
- var hasDataLengthChange = prevProps.data.length !== data.length;
401
- if (hasDataLengthChange) {
402
- this.updateChart();
403
- return;
404
- }
405
- var hasDataChange = prevProps.data.some(function (datum, index) {
406
- return datum.profit !== data[index].profit;
407
- });
408
- if (hasDataChange) {
409
- this.updateChart();
410
- }
411
- }
412
- }, {
413
- key: "componentWillUnmount",
414
- value: function componentWillUnmount() {
415
- clearTimeout(this.resizeTimeout);
416
- window.removeEventListener('resize', this.onResize);
417
- window.removeEventListener('scroll', this.onScroll);
418
- }
419
- }, {
420
- key: "render",
421
- value: function render() {
422
- var _this2 = this;
423
- var _this$state = this.state,
424
- tooltipOpen = _this$state.tooltipOpen,
425
- dataIndex = _this$state.dataIndex;
426
- var data = this.props.data;
427
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_ROIChart.Chart, {
428
- ref: function ref(el) {
429
- _this2.chartEl = el;
430
- }
431
- }, data[dataIndex] && data[dataIndex].tooltip && /*#__PURE__*/_react.default.createElement(_ROIChart.TooltipWrapper, {
432
- ref: function ref(el) {
433
- _this2.tooltipEl = el;
434
- }
435
- }, /*#__PURE__*/_react.default.createElement(_reactTippy.Tooltip, {
436
- open: tooltipOpen,
437
- position: "top",
438
- animation: "fade",
439
- html: data[dataIndex].tooltip,
440
- theme: "light",
441
- arrow: true,
442
- duration: 200
443
- }))), /*#__PURE__*/_react.default.createElement(_ROIChart.LegendWrapper, {
444
- noPaddingHorizontal: true
445
- }, /*#__PURE__*/_react.default.createElement(_BarChartLegend.default, {
446
- id: "roi-profit",
447
- label: "Cumulative profit payouts",
448
- colorTheme: "blue"
449
- }), /*#__PURE__*/_react.default.createElement(_BarChartLegend.default, {
450
- id: "roi-gain",
451
- label: "Gain on price",
452
- colorTheme: "red"
453
- })));
454
- }
455
- }]);
456
- return ROIChart;
457
- }(_react.PureComponent);
458
- exports.ROIChart = ROIChart;
459
- ROIChart.propTypes = {
460
- id: _propTypes.default.string.isRequired,
461
- data: _propTypes.default.arrayOf(_propTypes.default.shape({
462
- year: _propTypes.default.string.isRequired,
463
- profit: _propTypes.default.number.isRequired,
464
- gain: _propTypes.default.number.isRequired,
465
- tooltip: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node])
466
- })).isRequired
467
- };
468
- var _default = ROIChart;
469
- exports.default = _default;
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TooltipWrapper = exports.LegendWrapper = exports.Chart = exports.BarChartTooltip = void 0;
7
- var _styledComponents = _interopRequireDefault(require("styled-components"));
8
- var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
9
- var _BarChartLegend = require("components/BarChartLegend/BarChartLegend.styles");
10
- var _rwd = _interopRequireDefault(require("styles/rwd"));
11
- var _templateObject;
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
- var Chart = _styledComponents.default.div.withConfig({
15
- displayName: "ROIChartstyles__Chart",
16
- componentId: "sc-wdm5e-0"
17
- })(["position:relative;display:block;width:100%;height:auto;.axisX,.axisY{& > path{stroke:#e1e1e1;}.tick{text{font-weight:600;font-size:14px;fill:#9b9b9b;}line{stroke:none;}}}.axisY{display:none;& > path{stroke:none;}}.gridX,.gridY{display:none;& > path{stroke:none;}}.gridX{.tick line{stroke:none;}}.gridY{.tick line{stroke:#dfe5f1;}}.stackedBar__gainText,.stackedBar__profitText{font-weight:bold;}"]);
18
- exports.Chart = Chart;
19
- var TooltipWrapper = _styledComponents.default.div.withConfig({
20
- displayName: "ROIChartstyles__TooltipWrapper",
21
- componentId: "sc-wdm5e-1"
22
- })(["text-align:left;position:absolute;top:0;left:0;pointer-events:none;"]);
23
- exports.TooltipWrapper = TooltipWrapper;
24
- var BarChartTooltip = _styledComponents.default.div.withConfig({
25
- displayName: "ROIChartstyles__BarChartTooltip",
26
- componentId: "sc-wdm5e-2"
27
- })(["font-size:10px;min-width:40px;& > h3{font-weight:400;font-family:'Open Sans';font-size:16px;margin:0;padding:0;}& > p{color:#79ca65;font-family:'Open Sans';font-size:11px;text-transform:uppercase;}"]);
28
- exports.BarChartTooltip = BarChartTooltip;
29
- var LegendWrapper = (0, _styledComponents.default)(_ComponentWrapper.default).withConfig({
30
- displayName: "ROIChartstyles__LegendWrapper",
31
- componentId: "sc-wdm5e-3"
32
- })(["", ""], _rwd.default.Large(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " {\n display: inline-block;\n \n + ", " {\n padding-left: 32px;\n }\n }\n "])), _BarChartLegend.Container, _BarChartLegend.Container));
33
- exports.LegendWrapper = LegendWrapper;
@@ -1,91 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _Modal = require("components/Modal/Modal");
10
- var _Text = _interopRequireDefault(require("components/Text/Text.styles"));
11
- var _Grid = require("components/Grid/Grid.styles");
12
- var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
13
- var _ComponentScroll = _interopRequireDefault(require("components/ComponentScroll/ComponentScroll"));
14
- var _Table = _interopRequireDefault(require("components/AdminDashboard/Table/Table"));
15
- var _ROI = require("./ROI.styles");
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
18
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
- 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); }
20
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
21
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
22
- 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; }
23
- var ROIModal = function ROIModal(_ref) {
24
- var isModalOpen = _ref.isModalOpen,
25
- onModalClose = _ref.onModalClose;
26
- return /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
27
- isOpen: isModalOpen,
28
- onClose: onModalClose
29
- }, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, null, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h3", null, "COMPANY RELATED METRICS")), /*#__PURE__*/_react.default.createElement(_ComponentScroll.default, {
30
- offset: -32,
31
- autoHeight: true,
32
- autoHeightMin: 200,
33
- autoHeightMax: 400
34
- }, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
35
- noPaddingHorizontal: true
36
- }, /*#__PURE__*/_react.default.createElement(_ROI.Label, null, "INDUSTRY AVERAGE"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemsRow, null, /*#__PURE__*/_react.default.createElement(_Grid.Column, {
37
- part: 1,
38
- full: 3
39
- }, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContainer, null, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemTitle, null, "PROCE-TO-EARNING RATIO"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContent, null, "3.00"))), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
40
- part: 1,
41
- full: 3
42
- }, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContainer, null, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemTitle, null, "RETURN ON EQUITY (ROE)"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContent, null, "\u20AC 200,000"))))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
43
- noPaddingHorizontal: true
44
- }, /*#__PURE__*/_react.default.createElement(_ROI.Label, null, "COMPANY DATA"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemsRow, null, /*#__PURE__*/_react.default.createElement(_Grid.Column, {
45
- part: 1,
46
- full: 3
47
- }, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContainer, null, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemTitle, null, "COMPANY VALUATION"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContent, null, "\u20AC 300,000"))), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
48
- part: 1,
49
- full: 3
50
- }, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContainer, null, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemTitle, null, "SHARE OF TOKEN SUPPLY SOLD DURING STO"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContent, null, "\u20AC 200,000"))), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
51
- part: 1,
52
- full: 3
53
- }, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContainer, null, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemTitle, null, "INITIAL TOKEN PRICE"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContent, null, "\u20AC 1.00"))), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
54
- part: 1,
55
- full: 3
56
- }, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContainer, null, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemTitle, null, "Revenue share RATE"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContent, null, "66.7%"))), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
57
- part: 1,
58
- full: 3
59
- }, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContainer, null, /*#__PURE__*/_react.default.createElement(_ROI.ROIItemTitle, null, "Revenue share PER TOKEN"), /*#__PURE__*/_react.default.createElement(_ROI.ROIItemContent, null, "0.000333%"))))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
60
- noPaddingHorizontal: true
61
- }, /*#__PURE__*/_react.default.createElement(_Table.default, {
62
- columns: [{
63
- key: 'period',
64
- label: 'PERIOD',
65
- width: '24%'
66
- }, {
67
- key: 'profit_payout',
68
- label: 'PROFIT PAYOUT RATIO',
69
- width: '36%'
70
- }, {
71
- key: 'earnings',
72
- label: 'COMPANY EARNINGS FORECAST (MLN)',
73
- width: '40%'
74
- }],
75
- data: _toConsumableArray(Array(10).fill({})).map(function (_, index) {
76
- return {
77
- id: index,
78
- period: "YEAR ".concat(index + 1),
79
- profit_payout: "".concat(4 * (index + 1), "%"),
80
- earnings: "\u20AC ".concat(Number(0.01 * 0.4 * (index + 1)).toFixed(2))
81
- };
82
- }),
83
- noScroll: true
84
- })))));
85
- };
86
- ROIModal.propTypes = {
87
- isModalOpen: _propTypes.default.bool.isRequired,
88
- onModalClose: _propTypes.default.func.isRequired
89
- };
90
- var _default = ROIModal;
91
- exports.default = _default;
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _reactTippy = require("react-tippy");
10
- var _ROIScenarioBox = require("./ROIScenarioBox.styles");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- var ROIScenarioBox = function ROIScenarioBox(_ref) {
13
- var title = _ref.title,
14
- subtitle = _ref.subtitle,
15
- tooltip = _ref.tooltip,
16
- radio = _ref.radio;
17
- return /*#__PURE__*/_react.default.createElement(_ROIScenarioBox.Wrap, null, /*#__PURE__*/_react.default.createElement("input", {
18
- type: "radio",
19
- id: radio.id,
20
- name: radio.name || radio.id,
21
- value: radio.value,
22
- checked: radio.checked,
23
- disabled: radio.disabled,
24
- onChange: radio.onChange,
25
- onBlur: radio.onBlur
26
- }), /*#__PURE__*/_react.default.createElement("label", {
27
- htmlFor: radio.id
28
- }, /*#__PURE__*/_react.default.createElement(_reactTippy.Tooltip, {
29
- position: "right",
30
- title: tooltip,
31
- theme: "light",
32
- arrow: true,
33
- duration: 200
34
- }, /*#__PURE__*/_react.default.createElement(_ROIScenarioBox.Container, null, /*#__PURE__*/_react.default.createElement(_ROIScenarioBox.Title, null, title), /*#__PURE__*/_react.default.createElement(_ROIScenarioBox.Subtitle, null, subtitle), /*#__PURE__*/_react.default.createElement(_ROIScenarioBox.CheckMark, null)))));
35
- };
36
- ROIScenarioBox.propTypes = {
37
- title: _propTypes.default.string.isRequired,
38
- subtitle: _propTypes.default.string,
39
- tooltip: _propTypes.default.string,
40
- radio: _propTypes.default.shape({
41
- id: _propTypes.default.string.isRequired,
42
- name: _propTypes.default.string,
43
- value: _propTypes.default.string,
44
- checked: _propTypes.default.bool,
45
- onChange: _propTypes.default.func,
46
- onBlur: _propTypes.default.func,
47
- hide: _propTypes.default.bool
48
- }).isRequired
49
- };
50
- ROIScenarioBox.defaultProps = {
51
- subtitle: '',
52
- tooltip: ''
53
- };
54
- var _default = ROIScenarioBox;
55
- exports.default = _default;