@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,223 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "AdminBadgeSvg", {
7
- enumerable: true,
8
- get: function get() {
9
- return _AdminBadgeSvg.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "CameraSvg", {
13
- enumerable: true,
14
- get: function get() {
15
- return _CameraSvg.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "CapsLockSvg", {
19
- enumerable: true,
20
- get: function get() {
21
- return _CapsLockSvg.default;
22
- }
23
- });
24
- Object.defineProperty(exports, "DocumentBackSvg", {
25
- enumerable: true,
26
- get: function get() {
27
- return _DocumentBackSvg.default;
28
- }
29
- });
30
- Object.defineProperty(exports, "DocumentSmallSvg", {
31
- enumerable: true,
32
- get: function get() {
33
- return _DocumentSmallSvg.default;
34
- }
35
- });
36
- Object.defineProperty(exports, "DocumentSvg", {
37
- enumerable: true,
38
- get: function get() {
39
- return _DocumentSvg.default;
40
- }
41
- });
42
- Object.defineProperty(exports, "EthSvg", {
43
- enumerable: true,
44
- get: function get() {
45
- return _EthSvg.default;
46
- }
47
- });
48
- Object.defineProperty(exports, "EurSvg", {
49
- enumerable: true,
50
- get: function get() {
51
- return _EurSvg.default;
52
- }
53
- });
54
- Object.defineProperty(exports, "FaceScanIconSvg", {
55
- enumerable: true,
56
- get: function get() {
57
- return _FaceScanIconSvg.default;
58
- }
59
- });
60
- Object.defineProperty(exports, "FourSvg", {
61
- enumerable: true,
62
- get: function get() {
63
- return _FourSvg.default;
64
- }
65
- });
66
- Object.defineProperty(exports, "Glassess", {
67
- enumerable: true,
68
- get: function get() {
69
- return _Glassess.default;
70
- }
71
- });
72
- Object.defineProperty(exports, "LogoSvg", {
73
- enumerable: true,
74
- get: function get() {
75
- return _LogoSvg.default;
76
- }
77
- });
78
- Object.defineProperty(exports, "OneSvg", {
79
- enumerable: true,
80
- get: function get() {
81
- return _OneSvg.default;
82
- }
83
- });
84
- Object.defineProperty(exports, "PassportSvg", {
85
- enumerable: true,
86
- get: function get() {
87
- return _PassportSvg.default;
88
- }
89
- });
90
- Object.defineProperty(exports, "RefreshSvg", {
91
- enumerable: true,
92
- get: function get() {
93
- return _RefreshSvg.default;
94
- }
95
- });
96
- Object.defineProperty(exports, "SocialFacebook", {
97
- enumerable: true,
98
- get: function get() {
99
- return _SocialFacebook.default;
100
- }
101
- });
102
- Object.defineProperty(exports, "SocialInstagram", {
103
- enumerable: true,
104
- get: function get() {
105
- return _SocialInstagram.default;
106
- }
107
- });
108
- Object.defineProperty(exports, "SocialLinkedIn", {
109
- enumerable: true,
110
- get: function get() {
111
- return _SocialLinkedIn.default;
112
- }
113
- });
114
- Object.defineProperty(exports, "SocialMedium", {
115
- enumerable: true,
116
- get: function get() {
117
- return _SocialMedium.default;
118
- }
119
- });
120
- Object.defineProperty(exports, "SocialReddit", {
121
- enumerable: true,
122
- get: function get() {
123
- return _SocialReddit.default;
124
- }
125
- });
126
- Object.defineProperty(exports, "SocialTelegram", {
127
- enumerable: true,
128
- get: function get() {
129
- return _SocialTelegram.default;
130
- }
131
- });
132
- Object.defineProperty(exports, "SocialTwitter", {
133
- enumerable: true,
134
- get: function get() {
135
- return _SocialTwitter.default;
136
- }
137
- });
138
- Object.defineProperty(exports, "SocialYoutube", {
139
- enumerable: true,
140
- get: function get() {
141
- return _SocialYoutube.default;
142
- }
143
- });
144
- Object.defineProperty(exports, "ThreeSvg", {
145
- enumerable: true,
146
- get: function get() {
147
- return _ThreeSvg.default;
148
- }
149
- });
150
- Object.defineProperty(exports, "TwoSidedDocumentSvg", {
151
- enumerable: true,
152
- get: function get() {
153
- return _TwoSidedDocumentSvg.default;
154
- }
155
- });
156
- Object.defineProperty(exports, "TwoSvg", {
157
- enumerable: true,
158
- get: function get() {
159
- return _TwoSvg.default;
160
- }
161
- });
162
- Object.defineProperty(exports, "UpdateDefaultSvg", {
163
- enumerable: true,
164
- get: function get() {
165
- return _UpdateDefaultSvg.default;
166
- }
167
- });
168
- Object.defineProperty(exports, "UpdateHardSvg", {
169
- enumerable: true,
170
- get: function get() {
171
- return _UpdateHardSvg.default;
172
- }
173
- });
174
- Object.defineProperty(exports, "UpdateSoftSvg", {
175
- enumerable: true,
176
- get: function get() {
177
- return _UpdateSoftSvg.default;
178
- }
179
- });
180
- Object.defineProperty(exports, "UploadSvg", {
181
- enumerable: true,
182
- get: function get() {
183
- return _UploadSvg.default;
184
- }
185
- });
186
- Object.defineProperty(exports, "VerifiedBadge", {
187
- enumerable: true,
188
- get: function get() {
189
- return _VerifiedBadge.default;
190
- }
191
- });
192
- var _LogoSvg = _interopRequireDefault(require("./LogoSvg"));
193
- var _CapsLockSvg = _interopRequireDefault(require("./CapsLockSvg"));
194
- var _EthSvg = _interopRequireDefault(require("./EthSvg"));
195
- var _EurSvg = _interopRequireDefault(require("./EurSvg"));
196
- var _DocumentSvg = _interopRequireDefault(require("./DocumentSvg"));
197
- var _PassportSvg = _interopRequireDefault(require("./PassportSvg"));
198
- var _TwoSidedDocumentSvg = _interopRequireDefault(require("./TwoSidedDocumentSvg"));
199
- var _CameraSvg = _interopRequireDefault(require("./CameraSvg"));
200
- var _UploadSvg = _interopRequireDefault(require("./UploadSvg"));
201
- var _DocumentBackSvg = _interopRequireDefault(require("./DocumentBackSvg"));
202
- var _DocumentSmallSvg = _interopRequireDefault(require("./DocumentSmallSvg"));
203
- var _FaceScanIconSvg = _interopRequireDefault(require("./FaceScanIconSvg"));
204
- var _RefreshSvg = _interopRequireDefault(require("./RefreshSvg"));
205
- var _AdminBadgeSvg = _interopRequireDefault(require("./AdminBadgeSvg"));
206
- var _OneSvg = _interopRequireDefault(require("./OneSvg"));
207
- var _TwoSvg = _interopRequireDefault(require("./TwoSvg"));
208
- var _ThreeSvg = _interopRequireDefault(require("./ThreeSvg"));
209
- var _FourSvg = _interopRequireDefault(require("./FourSvg"));
210
- var _Glassess = _interopRequireDefault(require("./Glassess"));
211
- var _VerifiedBadge = _interopRequireDefault(require("./VerifiedBadge"));
212
- var _SocialFacebook = _interopRequireDefault(require("./SocialFacebook"));
213
- var _SocialInstagram = _interopRequireDefault(require("./SocialInstagram"));
214
- var _SocialLinkedIn = _interopRequireDefault(require("./SocialLinkedIn"));
215
- var _SocialMedium = _interopRequireDefault(require("./SocialMedium"));
216
- var _SocialReddit = _interopRequireDefault(require("./SocialReddit"));
217
- var _SocialTelegram = _interopRequireDefault(require("./SocialTelegram"));
218
- var _SocialTwitter = _interopRequireDefault(require("./SocialTwitter"));
219
- var _SocialYoutube = _interopRequireDefault(require("./SocialYoutube"));
220
- var _UpdateDefaultSvg = _interopRequireDefault(require("./UpdateDefaultSvg"));
221
- var _UpdateSoftSvg = _interopRequireDefault(require("./UpdateSoftSvg"));
222
- var _UpdateHardSvg = _interopRequireDefault(require("./UpdateHardSvg"));
223
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,70 +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.Switch = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _Switch = require("./Switch.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 Switch = function Switch(props) {
21
- var value1 = props.value1,
22
- value2 = props.value2,
23
- handleChange = props.handleChange,
24
- mobile = props.mobile,
25
- dark = props.dark;
26
- var _useState = (0, _react.useState)(props.value),
27
- _useState2 = _slicedToArray(_useState, 2),
28
- value = _useState2[0],
29
- setValue = _useState2[1];
30
- (0, _react.useEffect)(function () {
31
- handleChange(value);
32
- }, [value]);
33
- return /*#__PURE__*/_react.default.createElement(_Switch.Container, {
34
- mobile: mobile
35
- }, /*#__PURE__*/_react.default.createElement(_Switch.Value, {
36
- active: value === value1,
37
- onClick: function onClick() {
38
- return setValue(value1);
39
- },
40
- dark: dark
41
- }, value1), /*#__PURE__*/_react.default.createElement(_Switch.Indicator, {
42
- value1: value === value1,
43
- value2: value === value2,
44
- onClick: function onClick() {
45
- return setValue(value === value1 ? value2 : value1);
46
- },
47
- dark: dark
48
- }), /*#__PURE__*/_react.default.createElement(_Switch.Value, {
49
- active: value === value2,
50
- onClick: function onClick() {
51
- return setValue(value2);
52
- },
53
- dark: dark
54
- }, value2));
55
- };
56
- exports.Switch = Switch;
57
- Switch.propTypes = {
58
- value: _propTypes.default.string.isRequired,
59
- value1: _propTypes.default.string.isRequired,
60
- value2: _propTypes.default.string.isRequired,
61
- handleChange: _propTypes.default.func.isRequired,
62
- mobile: _propTypes.default.bool,
63
- dark: _propTypes.default.bool
64
- };
65
- Switch.defaultProps = {
66
- mobile: false,
67
- dark: false
68
- };
69
- var _default = Switch;
70
- exports.default = _default;
@@ -1,86 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.SwitchMobile = exports.SwitchDefault = exports.SwitchDark = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _Switch = _interopRequireDefault(require("./Switch"));
9
- var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
- var _addonViewport = require("@storybook/addon-viewport");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- var _default = {
13
- title: 'Components Library/Switch',
14
- component: _Switch.default,
15
- argTypes: {
16
- value: {
17
- type: 'string',
18
- required: true
19
- },
20
- value1: {
21
- type: 'string',
22
- required: true
23
- },
24
- value2: {
25
- type: 'string',
26
- required: true
27
- },
28
- handleChange: {
29
- type: 'function',
30
- required: true,
31
- action: 'handleChange'
32
- },
33
- mobile: {
34
- type: 'boolean',
35
- defaultValue: false
36
- },
37
- dark: {
38
- type: 'boolean',
39
- defaultValue: false
40
- }
41
- },
42
- parameters: {
43
- viewport: {
44
- viewports: _addonViewport.INITIAL_VIEWPORTS,
45
- defaultViewport: 'reset viewport'
46
- },
47
- backgrounds: {
48
- default: ''
49
- }
50
- }
51
- };
52
- exports.default = _default;
53
- var Template = function Template(args) {
54
- return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_Switch.default, args));
55
- };
56
- var SwitchDefault = Template.bind({});
57
- exports.SwitchDefault = SwitchDefault;
58
- SwitchDefault.args = {};
59
- var SwitchDark = Template.bind({});
60
- exports.SwitchDark = SwitchDark;
61
- SwitchDark.args = {
62
- value: 'Initial Value',
63
- value1: 'Click on Value 1',
64
- value2: 'Click on Value 2',
65
- dark: true
66
- };
67
- SwitchDark.parameters = {
68
- backgrounds: {
69
- default: 'black'
70
- }
71
- };
72
- var SwitchMobile = Template.bind({});
73
- exports.SwitchMobile = SwitchMobile;
74
- SwitchMobile.args = {
75
- value: 'Initial Value',
76
- value1: 'Click on Value 1',
77
- value2: 'Click on Value 2',
78
- mobile: true
79
- };
80
- SwitchMobile.parameters = {
81
- viewport: {
82
- defaultViewport: 'iphonexsmax'
83
- }
84
- };
85
-
86
- //now stories automatically changing to dark and mobile situatons
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Value = exports.Indicator = exports.Container = void 0;
7
- var _styledComponents = _interopRequireDefault(require("styled-components"));
8
- var _theme = _interopRequireDefault(require("styles/theme"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- var switchWidth = 34;
11
- var Container = _styledComponents.default.div.withConfig({
12
- displayName: "Switchstyles__Container",
13
- componentId: "sc-1tkcx5j-0"
14
- })(["display:inline-block;vertical-align:middle;position:relative;font-size:0;text-align:center;", ""], function (props) {
15
- return props.mobile && "\n display: block;\n margin: 0;\n padding: 18px 0;\n ";
16
- });
17
- exports.Container = Container;
18
- var Value = _styledComponents.default.div.withConfig({
19
- displayName: "Switchstyles__Value",
20
- componentId: "sc-1tkcx5j-1"
21
- })(["display:inline-block;vertical-align:middle;font-size:11px;line-height:16px;letter-spacing:2px;text-transform:uppercase;padding:2px 0;opacity:0.5;color:", ";transition:opacity 0.2s,color 0.2s;cursor:pointer;&:hover{color:", ";}", " ", ";"], function (props) {
22
- return _theme.default.cBlack;
23
- }, function (props) {
24
- return _theme.default.cPrimary;
25
- }, function (props) {
26
- return props.active && "\n opacity: 1;\n ";
27
- }, function (props) {
28
- return props.dark && "\n color: ".concat(_theme.default.cPrimary, ";\n\n &:hover {\n color: ").concat(_theme.default.cBlack, ";\n }\n ");
29
- });
30
- exports.Value = Value;
31
- var Indicator = _styledComponents.default.button.withConfig({
32
- displayName: "Switchstyles__Indicator",
33
- componentId: "sc-1tkcx5j-2"
34
- })(["display:inline-block;vertical-align:middle;width:", "px;height:16px;border-radius:8px;background-color:", ";margin:0 16px;position:relative;outline:0;cursor:pointer;&:before{content:'';display:block;width:18px;height:18px;position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;border-radius:9px;background-color:", ";transform:translateX(0);transition:transform .2s,background-color .2s;}&:hover{&:before{background-color:", ";}}", " ", " ", ""], switchWidth, function (props) {
35
- return _theme.default.cGrey;
36
- }, function (props) {
37
- return _theme.default.cBlack;
38
- }, function (props) {
39
- return _theme.default.cPrimary;
40
- }, function (props) {
41
- return props.dark && "\n background-color: ".concat(_theme.default.cGrey2, ";\n\n &:before {\n background-color: ").concat(_theme.default.cPrimary, ";\n }\n\n &:hover {\n &:before {\n background-color: ").concat(_theme.default.cBlack, ";\n }\n }\n ");
42
- }, function (props) {
43
- return props.value1 && "\n &:before {\n transform: translateX(-".concat(switchWidth / 2 - 8, "px);\n }\n ");
44
- }, function (props) {
45
- return props.value2 && "\n &:before {\n transform: translateX(".concat(switchWidth / 2 - 8, "px);\n }\n ");
46
- });
47
- exports.Indicator = Indicator;
@@ -1,70 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Tab", {
7
- enumerable: true,
8
- get: function get() {
9
- return _Tabs.Tab;
10
- }
11
- });
12
- exports.default = exports.Tabs = void 0;
13
- var _react = _interopRequireDefault(require("react"));
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
- var _reactTransitionGroup = require("react-transition-group");
16
- var _Tabs = require("./Tabs.styles");
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
- 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); }
19
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
- 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; }
22
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
23
- 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); }
24
- var timeout = 300;
25
- var getTransitionStyles = {
26
- entering: {
27
- position: 'absolute',
28
- opacity: 0
29
- },
30
- entered: {
31
- transition: "opacity ".concat(timeout, "ms ease-in-out"),
32
- opacity: 1
33
- },
34
- exiting: {
35
- transition: "opacity ".concat(timeout, "ms ease-in-out"),
36
- opacity: 0
37
- }
38
- };
39
- var Tabs = function Tabs(_ref) {
40
- var children = _ref.children,
41
- activeTab = _ref.activeTab;
42
- return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.TransitionGroup, {
43
- component: _Tabs.StyledTabs
44
- }, _react.default.Children.map(children, function (child) {
45
- if (child.props.tabId !== activeTab || ! /*#__PURE__*/_react.default.isValidElement(child)) return null;
46
- return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.Transition, {
47
- key: child.props.tabId,
48
- timeout: {
49
- enter: timeout,
50
- exit: timeout
51
- }
52
- }, function (status) {
53
- return /*#__PURE__*/_react.default.createElement("div", {
54
- style: _objectSpread({
55
- height: '100%'
56
- }, getTransitionStyles[status])
57
- }, child);
58
- });
59
- }));
60
- };
61
- exports.Tabs = Tabs;
62
- Tabs.propTypes = {
63
- children: _propTypes.default.node.isRequired,
64
- activeTab: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
65
- };
66
- Tabs.defaultProps = {
67
- activeTab: 0
68
- };
69
- var _default = Tabs;
70
- exports.default = _default;
@@ -1,29 +0,0 @@
1
- // import React from 'react'
2
- // import Tabs from './Tabs'
3
- // import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
4
- // import { Number } from 'index'
5
-
6
- // export default {
7
- // title: 'Components Library/Tabs/Tabs',
8
- // component: Tabs,
9
- // argTypes: {
10
- // children: { type: 'node', defaultValue: [], required: true },
11
- // activeTab: { type: 'oneOf Number or String', defaultValue: 0 },
12
- // },
13
- // }
14
-
15
- // const Template = args => (
16
- // <ComponentWrapper>
17
- // <Tabs {...args} />
18
- // </ComponentWrapper>
19
- // )
20
-
21
- // export const TabsExample = Template.bind({})
22
- // TabsExample.args = {
23
- // children: [<Number />, <Number />, <Number />],
24
- // activeTab: 3,
25
- // }
26
-
27
- // //doublecheck:
28
- // // less visible than in TabNav ( activeTab not showing)
29
- "use strict";
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Tab = exports.StyledTabs = void 0;
7
- var _styledComponents = _interopRequireDefault(require("styled-components"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- var StyledTabs = _styledComponents.default.div.withConfig({
10
- displayName: "Tabsstyles__StyledTabs",
11
- componentId: "sc-gc1wc-0"
12
- })(["position:relative;width:100%;"]);
13
- exports.StyledTabs = StyledTabs;
14
- var Tab = _styledComponents.default.div.withConfig({
15
- displayName: "Tabsstyles__Tab",
16
- componentId: "sc-gc1wc-1"
17
- })(["position:relative;top:0;left:0;width:100%;"]);
18
- exports.Tab = Tab;
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.TabNav = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _TabsNav = require("./TabsNav.styles");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- var TabNav = function TabNav(_ref) {
12
- var children = _ref.children,
13
- isActive = _ref.isActive,
14
- onClick = _ref.onClick;
15
- return /*#__PURE__*/_react.default.createElement(_TabsNav.StyledTab, {
16
- onClick: onClick,
17
- isActive: isActive
18
- }, /*#__PURE__*/_react.default.createElement(_TabsNav.LinkText, null, children));
19
- };
20
- exports.TabNav = TabNav;
21
- TabNav.propTypes = {
22
- children: _propTypes.default.node.isRequired,
23
- isActive: _propTypes.default.bool,
24
- onClick: _propTypes.default.func
25
- };
26
- TabNav.defaultProps = {
27
- isActive: false,
28
- onClick: function onClick() {}
29
- };
30
- var _default = TabNav;
31
- exports.default = _default;
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.TabNavInactive = exports.TabNavActive = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _TabNav = require("./TabNav");
9
- var _index = require("index");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- var _default = {
12
- title: 'Components Library/Tabs/TabNav',
13
- component: _TabNav.TabNav,
14
- argTypes: {
15
- children: {
16
- type: 'node',
17
- defaultValue: [],
18
- required: true
19
- },
20
- isActive: {
21
- type: 'boolean',
22
- defaultValue: false
23
- },
24
- onClick: {
25
- type: 'function',
26
- action: 'onClick'
27
- }
28
- }
29
- };
30
- exports.default = _default;
31
- var Template = function Template(args) {
32
- return /*#__PURE__*/_react.default.createElement(_TabNav.TabNav, args);
33
- };
34
- var TabNavActive = Template.bind({});
35
- exports.TabNavActive = TabNavActive;
36
- TabNavActive.args = {
37
- children: [/*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null)],
38
- isActive: true
39
- };
40
- var TabNavInactive = Template.bind({});
41
- exports.TabNavInactive = TabNavInactive;
42
- TabNavInactive.args = {
43
- children: [/*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null)]
44
- };
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "TabNav", {
7
- enumerable: true,
8
- get: function get() {
9
- return _TabNav.default;
10
- }
11
- });
12
- exports.default = exports.TabsNav = void 0;
13
- var _react = _interopRequireDefault(require("react"));
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
- var _TabsNav = require("./TabsNav.styles");
16
- var _TabNav = _interopRequireDefault(require("./TabNav"));
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
- 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); }
19
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
- 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; }
22
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
23
- 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); }
24
- var TabsNav = function TabsNav(_ref) {
25
- var children = _ref.children,
26
- activeTab = _ref.activeTab;
27
- return /*#__PURE__*/_react.default.createElement(_TabsNav.StyledTabs, null, /*#__PURE__*/_react.default.createElement(_TabsNav.Scroll, null, /*#__PURE__*/_react.default.createElement(_TabsNav.TabsWrapper, null, _react.default.Children.map(children, function (child) {
28
- if (! /*#__PURE__*/_react.default.isValidElement(child)) return null;
29
- return /*#__PURE__*/_react.default.cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {
30
- isActive: child.props.tabId === activeTab
31
- }));
32
- }))));
33
- };
34
- exports.TabsNav = TabsNav;
35
- TabsNav.propTypes = {
36
- children: _propTypes.default.node.isRequired,
37
- activeTab: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
38
- };
39
- TabsNav.defaultProps = {
40
- activeTab: 0
41
- };
42
- var _default = TabsNav;
43
- exports.default = _default;