@stokr/components-library 0.6.6 → 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,91 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.DatePickerInputFilled = exports.DatePickerInputEmpty = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _DatePickerInput = require("./DatePickerInput");
9
- var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- // import { date } from '@storybook/addon-knobs'
12
- var _default = {
13
- title: 'Components Library/Inputs/Date Picker Input',
14
- component: _DatePickerInput.DatePickerInput,
15
- argTypes: {
16
- id: {
17
- type: 'string',
18
- required: true
19
- },
20
- name: {
21
- type: 'string',
22
- required: true
23
- },
24
- label: {
25
- type: 'string',
26
- defaultValue: ''
27
- },
28
- placeholder: {
29
- type: 'string',
30
- defaultValue: ''
31
- },
32
- value: {
33
- type: 'date',
34
- control: {
35
- type: 'object'
36
- },
37
- // control: { type: 'date' },
38
- required: true
39
- },
40
- //oneOf string, date, required,
41
- error: {
42
- type: 'boolean',
43
- defaultValue: false
44
- },
45
- touched: {
46
- type: 'boolean',
47
- defaultValue: false
48
- },
49
- dashboard: {
50
- type: 'boolean',
51
- defaultValue: false
52
- },
53
- checkLabel: {
54
- type: 'function'
55
- },
56
- onChange: {
57
- action: 'change',
58
- type: 'function',
59
- required: true
60
- },
61
- onBlur: {
62
- action: 'blur',
63
- type: 'function'
64
- },
65
- onFocus: {
66
- action: 'hasFocus',
67
- type: 'function'
68
- }
69
- }
70
- };
71
- exports.default = _default;
72
- var Template = function Template(args) {
73
- return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_DatePickerInput.DatePickerInput, args));
74
- };
75
- var DatePickerInputFilled = Template.bind({});
76
- exports.DatePickerInputFilled = DatePickerInputFilled;
77
- DatePickerInputFilled.args = {
78
- label: 'label date',
79
- value: '2022-1-4'
80
- };
81
- var DatePickerInputEmpty = Template.bind({});
82
- exports.DatePickerInputEmpty = DatePickerInputEmpty;
83
- DatePickerInputEmpty.args = {
84
- label: 'label date'
85
- };
86
-
87
- //doublecheck:
88
-
89
- //works fine if clicking on element itself to change date,
90
- //but changes to "value" in SB controls print UNIX timestamp
91
- //value: new Date(2022, 0, 1, 0, 4) also not working interactively
@@ -1,29 +0,0 @@
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.DatePickerOverlay = void 0;
8
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _theme = _interopRequireDefault(require("styles/theme"));
10
- var _templateObject;
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- 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); }
13
- 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; }
14
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
- var DatePickerOverlay = _styledComponents.default.div.withConfig({
16
- displayName: "DatePickerInputstyles__DatePickerOverlay",
17
- componentId: "sc-102qruz-0"
18
- })(["&&& > .DayPickerInput{display:block;position:relative;width:100%;}&&& > .DayPickerInput-OverlayWrapper{z-index:100;}&&& > .DayPickerInput > input{font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:13px 0;padding-bottom:7px;border-radius:0;box-shadow:none;outline:0;border:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s;&:focus,&:hover{box-shadow:none;border-top-color:transparent;border-bottom-color:", ";}&::placeholder{color:transparent;opacity:0;}}", ""], function (props) {
19
- return _theme.default.cGrey;
20
- }, function (props) {
21
- return _theme.default.cBlack;
22
- }, function (props) {
23
- return _theme.default.cPrimary;
24
- }, function (props) {
25
- return props.dashboard && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &&& > .DayPickerInput > input {\n border: 0;\n padding: 0;\n height: 22px;\n font-family: 'Open Sans';\n font-weight: 300;\n font-size: 14px;\n line-height: 22px;\n letter-spacing: 0.53px;\n text-transform: normal;\n color: ", ";\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n }\n "])), _theme.default.cBlack, _theme.default.cGrey2);
26
- });
27
- exports.DatePickerOverlay = DatePickerOverlay;
28
- var _default = DatePickerOverlay;
29
- exports.default = _default;
@@ -1,108 +0,0 @@
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.Input = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _Input = require("./Input.styles");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- 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); }
13
- 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; }
14
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
- 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."); }
16
- 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); }
17
- 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; }
18
- 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; } }
19
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
- var Input = function Input(props) {
21
- var type = props.type,
22
- id = props.id,
23
- name = props.name,
24
- label = props.label,
25
- placeholder = props.placeholder,
26
- value = props.value,
27
- error = props.error,
28
- touched = props.touched,
29
- readOnly = props.readOnly,
30
- inverted = props.inverted,
31
- dashboard = props.dashboard;
32
- var _useState = (0, _react.useState)(false),
33
- _useState2 = _slicedToArray(_useState, 2),
34
- labelUp = _useState2[0],
35
- setLabelUp = _useState2[1];
36
- var _useState3 = (0, _react.useState)(false),
37
- _useState4 = _slicedToArray(_useState3, 2),
38
- hasFocus = _useState4[0],
39
- setHasFocus = _useState4[1];
40
- (0, _react.useEffect)(function () {
41
- setLabelUp(hasFocus || !!value);
42
- }, [hasFocus, value]);
43
- var onFocus = function onFocus(e, field) {
44
- props.onFocus && props.onFocus(e, field);
45
- setHasFocus(true);
46
- };
47
- var onBlur = function onBlur(e, field) {
48
- if (props.onBlur) props.onBlur(e, field);
49
- setHasFocus(false);
50
- };
51
- var onChange = function onChange(e, field) {
52
- props.onChange && props.onChange(e, field);
53
- };
54
- return /*#__PURE__*/_react.default.createElement(_Input.Wrapper, {
55
- inverted: inverted
56
- }, label && /*#__PURE__*/_react.default.createElement(_Input.Label, {
57
- isUp: labelUp,
58
- active: hasFocus,
59
- error: error && touched,
60
- htmlFor: id
61
- }, label), /*#__PURE__*/_react.default.createElement(_Input.InputWrap, {
62
- error: error && touched,
63
- dashboard: dashboard
64
- }, /*#__PURE__*/_react.default.createElement("input", {
65
- type: type,
66
- id: id,
67
- name: name,
68
- value: value,
69
- onChange: onChange,
70
- onBlur: onBlur,
71
- onFocus: onFocus,
72
- readOnly: readOnly,
73
- placeholder: placeholder
74
- })));
75
- };
76
- exports.Input = Input;
77
- Input.propTypes = {
78
- type: _propTypes.default.string,
79
- id: _propTypes.default.string.isRequired,
80
- name: _propTypes.default.string.isRequired,
81
- label: _propTypes.default.string,
82
- placeholder: _propTypes.default.string,
83
- value: _propTypes.default.string,
84
- error: _propTypes.default.bool,
85
- touched: _propTypes.default.bool,
86
- onChange: _propTypes.default.func,
87
- onBlur: _propTypes.default.func,
88
- onFocus: _propTypes.default.func,
89
- readOnly: _propTypes.default.bool,
90
- inverted: _propTypes.default.bool,
91
- dashboard: _propTypes.default.bool
92
- };
93
- Input.defaultProps = {
94
- type: 'text',
95
- label: '',
96
- placeholder: '',
97
- value: '',
98
- error: false,
99
- touched: false,
100
- readOnly: false,
101
- inverted: false,
102
- dashboard: false,
103
- onChange: function onChange() {},
104
- onBlur: function onBlur() {},
105
- onFocus: function onFocus() {}
106
- };
107
- var _default = Input;
108
- exports.default = _default;
@@ -1,148 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.InputLabeled = exports.InputFilled = exports.InputFillInverted = exports.InputEmpty = void 0;
7
- var _addonViewport = require("@storybook/addon-viewport");
8
- var _react = _interopRequireDefault(require("react"));
9
- var _Input = require("./Input");
10
- var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- var _default = {
13
- title: 'Components Library/Inputs/Input',
14
- component: _Input.Input,
15
- argTypes: {
16
- type: {
17
- type: 'string'
18
- },
19
- id: {
20
- type: 'string',
21
- required: true
22
- },
23
- name: {
24
- type: 'string',
25
- required: true
26
- },
27
- label: {
28
- type: 'string',
29
- defaultValue: ''
30
- },
31
- placeholder: {
32
- type: 'string',
33
- defaultValue: ''
34
- },
35
- value: {
36
- type: 'string',
37
- defaultValue: ''
38
- },
39
- error: {
40
- type: 'boolean',
41
- defaultValue: false
42
- },
43
- touched: {
44
- type: 'boolean',
45
- defaultValue: false
46
- },
47
- readOnly: {
48
- type: 'boolean',
49
- defaultValue: false
50
- },
51
- inverted: {
52
- type: 'boolean',
53
- defaultValue: false
54
- },
55
- dashboard: {
56
- type: 'boolean',
57
- defaultValue: false
58
- },
59
- checkLabel: {
60
- type: 'function'
61
- },
62
- onChange: {
63
- action: 'change',
64
- type: 'function'
65
- },
66
- onBlur: {
67
- action: 'blur',
68
- type: 'function'
69
- },
70
- onFocus: {
71
- action: 'hasFocus',
72
- type: 'function'
73
- }
74
- },
75
- parameters: {
76
- viewport: {
77
- viewports: _addonViewport.INITIAL_VIEWPORTS,
78
- defaultViewport: 'resetviewport'
79
- }
80
- }
81
- };
82
- exports.default = _default;
83
- var Template = function Template(args) {
84
- return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_Input.Input, args));
85
- };
86
-
87
- //trying to integrate state:
88
- // const Template = args => {
89
- // const [value, setValue] = useState(args.value ?? '')
90
- // return (
91
- // <Input
92
- // {...args}
93
- // onChange={(...params) => {
94
- // args.onChange(...params)
95
- // setValue(...params)
96
- // }}
97
- // value={value}
98
- // />
99
- // }
100
-
101
- var InputLabeled = Template.bind({});
102
- exports.InputLabeled = InputLabeled;
103
- InputLabeled.args = {
104
- label: 'input description (label)'
105
- };
106
- InputLabeled.parameters = {
107
- backgrounds: {
108
- default: 'resetviewport'
109
- }
110
- };
111
- var InputFilled = Template.bind({});
112
- exports.InputFilled = InputFilled;
113
- InputFilled.args = {
114
- label: 'input description (label)',
115
- value: 'your text (value)'
116
- };
117
- InputFilled.parameters = {
118
- backgrounds: {
119
- default: 'resetviewport'
120
- }
121
- };
122
- var InputFillInverted = Template.bind({});
123
- exports.InputFillInverted = InputFillInverted;
124
- InputFillInverted.args = {
125
- type: 'text',
126
- label: 'input description (label) inverted',
127
- value: 'your text (value) inverted',
128
- inverted: true
129
- };
130
- InputFillInverted.parameters = {
131
- backgrounds: {
132
- default: 'grey'
133
- }
134
- };
135
- var InputEmpty = Template.bind({});
136
- exports.InputEmpty = InputEmpty;
137
- InputEmpty.args = {};
138
- InputEmpty.parameters = {
139
- backgrounds: {
140
- default: 'resetviewport'
141
- }
142
- };
143
-
144
- //doublecheck:
145
-
146
- // state?
147
- // make error true version?
148
- // why can I not fill in the input in storybook on page? not important?
@@ -1,53 +0,0 @@
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.Wrapper = exports.Label = exports.InputWrap = void 0;
8
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _theme = _interopRequireDefault(require("styles/theme"));
10
- var _templateObject, _templateObject2, _templateObject3;
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- 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); }
13
- 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; }
14
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
- var Wrapper = _styledComponents.default.div.withConfig({
16
- displayName: "Inputstyles__Wrapper",
17
- componentId: "sc-1osolkh-0"
18
- })(["position:relative;display:block;input:-webkit-autofill{border:none;border-bottom:1px solid #f0f0f0;box-shadow:0 0 0px 1000px #fff inset;transition:background-color 5000s ease-in-out 0s;}", ""], function (props) {
19
- return props.inverted && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " {\n color: ", ";\n opacity: 0.4;\n }\n ", " {\n & > input {\n color: ", ";\n border-bottom-color: ", ";\n\n &:focus,\n &:hover {\n border-bottom-color: rgba(255, 255, 255, 0.4);\n }\n }\n }\n "])), Label, _theme.default.cWhite, InputWrap, _theme.default.cWhite, _theme.default.cWhite);
20
- });
21
- exports.Wrapper = Wrapper;
22
- var Label = _styledComponents.default.label.withConfig({
23
- displayName: "Inputstyles__Label",
24
- componentId: "sc-1osolkh-1"
25
- })(["z-index:11;display:block;position:absolute;left:0;top:-2px;height:12px;font-size:11px;line-height:20px;letter-spacing:2px;text-transform:uppercase;color:", ";pointer-events:none;transform:translateY(15px);transition:transform .2s,font-size .2s;", " ", " ", ""], function (props) {
26
- return _theme.default.cBlack;
27
- }, function (props) {
28
- return props.isUp && "\n font-size: 10px;\n transform: translateY(0);\n ";
29
- }, function (props) {
30
- return props.active && "\n color: ".concat(_theme.default.cPrimary, ";\n ");
31
- }, function (props) {
32
- return props.error && "\n color: ".concat(_theme.default.cWarning, ";\n ");
33
- });
34
- exports.Label = Label;
35
- var InputWrap = _styledComponents.default.div.withConfig({
36
- displayName: "Inputstyles__InputWrap",
37
- componentId: "sc-1osolkh-2"
38
- })(["position:relative;& > input{z-index:0;font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:15px 0;padding-bottom:5px;box-shadow:none;border:0;outline:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s;&:focus,&:hover{border-top-color:transparent;border-bottom-color:", ";}&::placeholder{color:transparent;opacity:0;}}", " ", ""], function (props) {
39
- return _theme.default.cGrey;
40
- }, function (props) {
41
- return _theme.default.cBlack;
42
- }, function (props) {
43
- return _theme.default.cPrimary;
44
- }, function (props) {
45
- return props.disabled && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & > input {\n color: ", ";\n &:focus,\n &:hover {\n border-top-color: transparent;\n border-bottom-color: ", ";\n }\n }\n "])), function (props) {
46
- return _theme.default.cGrey2;
47
- }, function (props) {
48
- return _theme.default.cGrey;
49
- });
50
- }, function (props) {
51
- return props.dashboard && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n & > input {\n border: 0;\n padding: 0;\n height: 22px;\n font-family: 'Open Sans';\n font-weight: 300;\n font-size: 14px;\n line-height: 22px;\n letter-spacing: 0.53px;\n text-transform: normal;\n color: ", ";\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n }\n "])), _theme.default.cBlack, _theme.default.cGrey2);
52
- });
53
- exports.InputWrap = InputWrap;
@@ -1,151 +0,0 @@
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.PasswordStrength = exports.InputPassword = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _SvgIcons = require("components/SvgIcons");
11
- var _InfoIcon = _interopRequireDefault(require("components/InfoIcon/InfoIcon"));
12
- var _Input = require("./Input.styles");
13
- var _InputPassword = require("./InputPassword.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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
- 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."); }
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 _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; }
21
- 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; } }
22
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
- var PasswordStrength = {
24
- NONE: 'none',
25
- WEAK: 'Weak',
26
- MEDIUM: 'Average',
27
- STRONG: 'Excellent'
28
- };
29
- exports.PasswordStrength = PasswordStrength;
30
- var InputPassword = function InputPassword(props) {
31
- var label = props.label,
32
- id = props.id,
33
- name = props.name,
34
- value = props.value,
35
- error = props.error,
36
- touched = props.touched,
37
- info = props.info,
38
- showStrength = props.showStrength;
39
- var _useState = (0, _react.useState)(false),
40
- _useState2 = _slicedToArray(_useState, 2),
41
- isPasswordVisible = _useState2[0],
42
- setIsPasswordVisible = _useState2[1];
43
- var _useState3 = (0, _react.useState)(false),
44
- _useState4 = _slicedToArray(_useState3, 2),
45
- isCapslockOn = _useState4[0],
46
- setIsCapslockOn = _useState4[1];
47
- var _useState5 = (0, _react.useState)(!!value),
48
- _useState6 = _slicedToArray(_useState5, 2),
49
- labelUp = _useState6[0],
50
- setLabelUp = _useState6[1];
51
- var _useState7 = (0, _react.useState)(false),
52
- _useState8 = _slicedToArray(_useState7, 2),
53
- hasFocus = _useState8[0],
54
- setHasFocus = _useState8[1];
55
- (0, _react.useEffect)(function () {
56
- setLabelUp(hasFocus || !!value);
57
- }, [hasFocus, value]);
58
- var togglePasswordVisibility = function togglePasswordVisibility() {
59
- setIsPasswordVisible(!isPasswordVisible);
60
- };
61
- var handleCapslock = function handleCapslock(e) {
62
- setIsCapslockOn(e.getModifierState('CapsLock'));
63
- };
64
- var onFocus = function onFocus(e, field) {
65
- props.onFocus && props.onFocus(e, field);
66
- setHasFocus(true);
67
- };
68
- var onBlur = function onBlur(e, field) {
69
- if (props.onBlur) props.onBlur(e, field);
70
- setHasFocus(false);
71
- };
72
- var onChange = function onChange(e, field) {
73
- props.onChange && props.onChange(e, field);
74
- };
75
- var passwordStrengthFunction = function passwordStrengthFunction() {
76
- if (value.length === 0) {
77
- return PasswordStrength.NONE;
78
- }
79
- if (value.length < 6) {
80
- return PasswordStrength.WEAK;
81
- }
82
- if (value.length < 11) {
83
- return PasswordStrength.MEDIUM;
84
- }
85
- return PasswordStrength.STRONG;
86
- };
87
- var passwordStrength = passwordStrengthFunction();
88
- return /*#__PURE__*/_react.default.createElement(_Input.Wrapper, null, label && /*#__PURE__*/_react.default.createElement(_Input.Label, {
89
- isUp: labelUp,
90
- active: hasFocus,
91
- error: error && touched,
92
- htmlFor: id
93
- }, label), /*#__PURE__*/_react.default.createElement(_Input.InputWrap, {
94
- error: error && touched
95
- }, /*#__PURE__*/_react.default.createElement("input", {
96
- type: isPasswordVisible ? 'text' : 'password',
97
- id: id,
98
- name: name,
99
- value: value,
100
- onChange: onChange,
101
- onBlur: onBlur,
102
- onFocus: onFocus,
103
- onKeyUp: handleCapslock,
104
- onKeyDown: handleCapslock
105
- })), /*#__PURE__*/_react.default.createElement(_InputPassword.ShowPassword, {
106
- onClick: togglePasswordVisibility
107
- }, isPasswordVisible ? /*#__PURE__*/_react.default.createElement("i", {
108
- className: "ion ion-md-eye-off"
109
- }) : /*#__PURE__*/_react.default.createElement("i", {
110
- className: "ion ion-md-eye"
111
- })), /*#__PURE__*/_react.default.createElement(_InputPassword.BottomWrap, null, showStrength ? /*#__PURE__*/_react.default.createElement(_InputPassword.PasswordStrengthWrap, null, /*#__PURE__*/_react.default.createElement(_InputPassword.PasswordStrengthIndicators, {
112
- passwordStrength: passwordStrength
113
- }, /*#__PURE__*/_react.default.createElement(_InputPassword.PasswordStrengthIndicator, null), /*#__PURE__*/_react.default.createElement(_InputPassword.PasswordStrengthIndicator, null), /*#__PURE__*/_react.default.createElement(_InputPassword.PasswordStrengthIndicator, null)), info && /*#__PURE__*/_react.default.createElement(_InputPassword.InfoIconWrapper, null, /*#__PURE__*/_react.default.createElement(_InfoIcon.default, {
114
- position: "bottom",
115
- title: info,
116
- noMarginLeft: true
117
- })), /*#__PURE__*/_react.default.createElement(_InputPassword.PasswordStrengthText, {
118
- passwordStrength: passwordStrength
119
- }, passwordStrength !== PasswordStrength.NONE && passwordStrength)) : info && /*#__PURE__*/_react.default.createElement(_InputPassword.InfoIconWrapper, null, /*#__PURE__*/_react.default.createElement(_InfoIcon.default, {
120
- position: "bottom",
121
- title: info,
122
- noMarginLeft: true
123
- })), /*#__PURE__*/_react.default.createElement(_InputPassword.CapslockIndicator, null, isCapslockOn && /*#__PURE__*/_react.default.createElement(_SvgIcons.CapsLockSvg, null))));
124
- };
125
- exports.InputPassword = InputPassword;
126
- InputPassword.propTypes = {
127
- id: _propTypes.default.string.isRequired,
128
- name: _propTypes.default.string.isRequired,
129
- label: _propTypes.default.string,
130
- value: _propTypes.default.string,
131
- error: _propTypes.default.bool,
132
- touched: _propTypes.default.bool,
133
- onChange: _propTypes.default.func,
134
- onBlur: _propTypes.default.func,
135
- onFocus: _propTypes.default.func,
136
- info: _propTypes.default.string,
137
- showStrength: _propTypes.default.bool
138
- };
139
- InputPassword.defaultProps = {
140
- label: '',
141
- value: '',
142
- error: false,
143
- touched: false,
144
- onChange: function onChange() {},
145
- onBlur: function onBlur() {},
146
- onFocus: function onFocus() {},
147
- info: '',
148
- showStrength: false
149
- };
150
- var _default = InputPassword;
151
- exports.default = _default;
@@ -1,85 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.PasswordStrength = exports.PasswordFilled = exports.InputPasswordEmpty = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _InputPassword = require("./InputPassword");
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/Inputs/Input Password',
13
- component: _InputPassword.InputPassword,
14
- argTypes: {
15
- type: {
16
- type: 'string'
17
- },
18
- id: {
19
- type: 'string',
20
- required: true
21
- },
22
- name: {
23
- type: 'string',
24
- required: true
25
- },
26
- label: {
27
- type: 'string',
28
- defaultValue: ''
29
- },
30
- value: {
31
- type: 'string',
32
- defaultValue: ''
33
- },
34
- error: {
35
- type: 'boolean',
36
- defaultValue: false
37
- },
38
- touched: {
39
- type: 'boolean',
40
- defaultValue: false
41
- },
42
- onChange: {
43
- action: 'change',
44
- type: 'function'
45
- },
46
- onBlur: {
47
- action: 'blur',
48
- type: 'function'
49
- },
50
- onFocus: {
51
- action: 'hasFocus',
52
- type: 'function'
53
- },
54
- info: {
55
- type: 'string',
56
- defaultValue: ''
57
- },
58
- showStrength: {
59
- type: 'boolean',
60
- defaultValue: false
61
- }
62
- }
63
- };
64
- exports.default = _default;
65
- var Template = function Template(args) {
66
- return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_InputPassword.InputPassword, args));
67
- };
68
- var PasswordFilled = Template.bind({});
69
- exports.PasswordFilled = PasswordFilled;
70
- PasswordFilled.args = {
71
- label: 'input description (label) - PASSWORD',
72
- value: 'your password (value)'
73
- };
74
- var PasswordStrength = Template.bind({});
75
- exports.PasswordStrength = PasswordStrength;
76
- PasswordStrength.args = {
77
- label: 'input description (label) - PASSWORD',
78
- value: 'your password (value)',
79
- showStrength: true
80
- };
81
- var InputPasswordEmpty = Template.bind({});
82
- exports.InputPasswordEmpty = InputPasswordEmpty;
83
- InputPasswordEmpty.args = {
84
- label: 'input description (label) - PASSWORD'
85
- };