@stokr/components-library 1.0.8 → 1.1.0

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 (522) hide show
  1. package/dist/api/StokrWeb3.js +184 -0
  2. package/dist/api/fetchData.js +76 -0
  3. package/dist/api/fetchDataPublic.js +65 -0
  4. package/dist/components/AccountBalance/AccountBalance.js +53 -0
  5. package/dist/components/AccountBalance/AccountBalance.stories.js +89 -0
  6. package/dist/components/AccountBalance/AccountBalance.styles.js +40 -0
  7. package/dist/components/AdminDashboard/Table/Table.js +170 -0
  8. package/dist/components/AdminDashboard/Table/Table.styles.js +79 -0
  9. package/dist/components/AgreementItem/AgreementItem.js +51 -0
  10. package/dist/components/AgreementItem/AgreementItem.stories.js +110 -0
  11. package/dist/components/AgreementItem/AgreementItem.styles.js +35 -0
  12. package/dist/components/AnalyticGraphs/Analytic.js +781 -0
  13. package/dist/components/AnalyticGraphs/Analytic.styles.js +37 -0
  14. package/dist/components/BackButton/BackButton.js +32 -0
  15. package/dist/components/BackButton/BackButton.stories.js +36 -0
  16. package/dist/components/BackButton/BackButton.styles.js +76 -0
  17. package/dist/components/Background/Background.js +45 -0
  18. package/dist/components/Background/Background.stories.js +79 -0
  19. package/dist/components/Background/Background.styles.js +76 -0
  20. package/dist/components/BarChart/BarChart.js +306 -0
  21. package/dist/components/BarChart/BarChart.stories.js +71 -0
  22. package/dist/components/BarChart/BarChart.styles.js +33 -0
  23. package/dist/components/BarChartLegend/BarChartLegend.js +106 -0
  24. package/dist/components/BarChartLegend/BarChartLegend.styles.js +26 -0
  25. package/dist/components/BasicTable/BasicTable.js +32 -0
  26. package/dist/components/BasicTable/BasicTable.stories.js +64 -0
  27. package/dist/components/BasicTable/BasicTable.styles.js +52 -0
  28. package/dist/components/Button/Button.stories.js +80 -0
  29. package/dist/components/Button/Button.styles.js +83 -0
  30. package/dist/components/ButtonContainer/ButtonContainer.styles.js +18 -0
  31. package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +46 -0
  32. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +34 -0
  33. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +34 -0
  34. package/dist/components/ChartBox/ChartBox.js +44 -0
  35. package/dist/components/ChartBox/ChartBox.stories.js +20 -0
  36. package/dist/components/ChartBox/ChartBox.styles.js +33 -0
  37. package/dist/components/ChartBox/ChartBoxDistribution.js +30 -0
  38. package/dist/components/ChartBox/ChartBoxDistribution.stories.js +21 -0
  39. package/dist/components/ChartLegend/ChartLegend.js +62 -0
  40. package/dist/components/ChartLegend/ChartLegend.stories.js +88 -0
  41. package/dist/components/ChartLegend/ChartLegend.styles.js +64 -0
  42. package/dist/components/Checkbox/Checkbox.js +116 -0
  43. package/dist/components/Checkbox/Checkbox.stories.js +93 -0
  44. package/dist/components/Checkbox/Checkbox.styles.js +45 -0
  45. package/dist/components/Checklist/UserChecklist.js +298 -0
  46. package/dist/components/Checklist/UserChecklist.stories.js +352 -0
  47. package/dist/components/ComponentScroll/ComponentScroll.js +100 -0
  48. package/dist/components/ComponentScroll/ComponentScroll.stories.js +102 -0
  49. package/dist/components/ComponentScroll/ComponentScroll.styles.js +66 -0
  50. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +68 -0
  51. package/dist/components/CryptoAddress/ComponentWrap.js +37 -0
  52. package/dist/components/CryptoAddress/CryptoAddress.js +187 -0
  53. package/dist/components/CryptoAddress/CryptoAddress.stories.js +211 -0
  54. package/dist/components/CryptoAddress/CryptoAddress.styles.js +191 -0
  55. package/dist/components/CryptoAddress/RadioWrap.js +56 -0
  56. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +54 -0
  57. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +75 -0
  58. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +67 -0
  59. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +40 -0
  60. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +59 -0
  61. package/dist/components/DonutChart/DonutChart.js +182 -0
  62. package/dist/components/DonutChart/DonutChart.stories.js +58 -0
  63. package/dist/components/DonutChart/DonutChart.styles.js +50 -0
  64. package/dist/components/DoubleButton/DoubleButton.styles.js +22 -0
  65. package/dist/components/ErrorMessage/ErrorMessage.styles.js +15 -0
  66. package/dist/components/FAQ/FAQ.js +75 -0
  67. package/dist/components/FAQ/FAQ.stories.js +75 -0
  68. package/dist/components/FAQ/FAQ.styles.js +48 -0
  69. package/dist/components/Footer/Footer.js +66 -0
  70. package/dist/components/Footer/Footer.stories.js +55 -0
  71. package/dist/components/Footer/Footer.styles.js +74 -0
  72. package/dist/components/Footer/FooterLayout.js +119 -0
  73. package/dist/components/Footer/FooterLayout.stories.js +32 -0
  74. package/dist/components/Footer/FooterMenu.js +117 -0
  75. package/dist/components/Footer/FooterMenu.stories.js +122 -0
  76. package/dist/components/Footer/FooterMenu.styles.js +80 -0
  77. package/dist/components/Footer/index.js +27 -0
  78. package/dist/components/Footer/sicos-logo.svg +1 -0
  79. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +127 -0
  80. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +43 -0
  81. package/dist/components/Form/Form.js +68 -0
  82. package/dist/components/Form/Form.stories.js +36 -0
  83. package/dist/components/Form/Form.styles.js +59 -0
  84. package/dist/components/FullscreenCard/FullscreenCard.styles.js +32 -0
  85. package/dist/components/Grid/Grid.styles.js +68 -0
  86. package/dist/components/Header/Header.js +461 -0
  87. package/dist/components/Header/Header.stories.js +223 -0
  88. package/dist/components/Header/Header.styles.js +182 -0
  89. package/dist/components/Icon/Icon.style.js +71 -0
  90. package/dist/components/InfoIcon/InfoIcon.js +50 -0
  91. package/dist/components/InfoIcon/InfoIcon.stories.js +53 -0
  92. package/dist/components/InfoIcon/InfoIcon.styles.js +31 -0
  93. package/dist/components/InfoPanel/InfoPanel.js +146 -0
  94. package/dist/components/Input/DatePickerInput.js +85 -0
  95. package/dist/components/Input/DatePickerInput.stories.js +92 -0
  96. package/dist/components/Input/DatePickerInput.styles.js +29 -0
  97. package/dist/components/Input/Input.js +125 -0
  98. package/dist/components/Input/Input.stories.js +149 -0
  99. package/dist/components/Input/Input.styles.js +53 -0
  100. package/dist/components/Input/InputPassword.js +151 -0
  101. package/dist/components/Input/InputPassword.stories.js +86 -0
  102. package/dist/components/Input/InputPassword.styles.js +80 -0
  103. package/dist/components/Input/RangeInput.js +97 -0
  104. package/dist/components/Input/RangeInput.stories.js +62 -0
  105. package/dist/components/Input/RangeInput.styles.js +53 -0
  106. package/dist/components/Input/Select.js +148 -0
  107. package/dist/components/Input/Select.stories.js +143 -0
  108. package/dist/components/Input/Select.styles.js +65 -0
  109. package/dist/components/InvestCalculator/InvestCalculator.js +367 -0
  110. package/dist/components/InvestCalculator/InvestCalculator.stories.js +138 -0
  111. package/dist/components/InvestCalculator/InvestCalculator.styles.js +66 -0
  112. package/dist/components/InvestmentStat/InvestmentStat.js +40 -0
  113. package/dist/components/InvestmentStat/InvestmentStat.stories.js +57 -0
  114. package/dist/components/InvestmentStat/InvestmentStat.styles.js +43 -0
  115. package/dist/components/KYCFlow/BasicInfo.js +489 -0
  116. package/dist/components/KYCFlow/Confirmation.js +51 -0
  117. package/dist/components/KYCFlow/DocumentFileUpload.js +276 -0
  118. package/dist/components/KYCFlow/DocumentScan.js +74 -0
  119. package/dist/components/KYCFlow/DocumentScanUpload.js +258 -0
  120. package/dist/components/KYCFlow/DocumentSelect.js +148 -0
  121. package/dist/components/KYCFlow/DocumentSuccess.js +64 -0
  122. package/dist/components/KYCFlow/DocumentUpload.js +54 -0
  123. package/dist/components/KYCFlow/DocumentVerificationType.js +161 -0
  124. package/dist/components/KYCFlow/FaceScan.js +55 -0
  125. package/dist/components/KYCFlow/FaceScanRecognition.js +60 -0
  126. package/dist/components/KYCFlow/FaceScanSuccess.js +59 -0
  127. package/dist/components/KYCFlow/Terms.js +142 -0
  128. package/dist/components/KYCFlow/_styles.js +160 -0
  129. package/dist/components/KYCFlow/index.js +97 -0
  130. package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +41 -0
  131. package/dist/components/LatestUpdate/LatestUpdate.js +51 -0
  132. package/dist/components/LatestUpdate/LatestUpdate.stories.js +63 -0
  133. package/dist/components/LatestUpdate/LatestUpdate.styles.js +71 -0
  134. package/dist/components/Layout/Layout-func-no-work.js +78 -0
  135. package/dist/components/Layout/Layout.js +103 -0
  136. package/dist/components/Layout/Layout.stories.js +67 -0
  137. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +47 -0
  138. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +71 -0
  139. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +43 -0
  140. package/dist/components/LearnMorePage/LearnMore.js +255 -0
  141. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +40 -0
  142. package/dist/components/LearnMorePage/LearnMore.stories.js +52 -0
  143. package/dist/components/LearnMorePage/LearnMore.styles.js +120 -0
  144. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +87 -0
  145. package/dist/components/LearnMorePage/LearnMoreItem.js +75 -0
  146. package/dist/components/LearnMorePage/LearnMoreItem.stories.js +66 -0
  147. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +87 -0
  148. package/dist/components/LearnMoreSection/LearnMore.js +199 -0
  149. package/dist/components/LearnMoreSection/LearnMore.stories.js +34 -0
  150. package/dist/components/LearnMoreSection/LearnMore.styles.js +73 -0
  151. package/dist/components/LearnMoreSection/LearnMoreItem.js +52 -0
  152. package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +63 -0
  153. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +50 -0
  154. package/dist/components/LoginModal/LoginModal.js +182 -0
  155. package/dist/components/LoginModal/LoginModal.stories.js +70 -0
  156. package/dist/components/MainMenu/DynamicMainMenu.js +51 -0
  157. package/dist/components/MainMenu/MainMenu.js +261 -0
  158. package/dist/components/MainMenu/MainMenu.styles.js +125 -0
  159. package/dist/components/MatomoConnect/Matomo.js +490 -0
  160. package/dist/components/MatomoConnect/Matomo_fuckup.js +387 -0
  161. package/dist/components/MenuNav/MenuNav.styles.js +42 -0
  162. package/dist/components/Modal/Modal.js +139 -0
  163. package/dist/components/Modal/Modal.stories.js +83 -0
  164. package/dist/components/Modal/Modal.styles.js +142 -0
  165. package/dist/components/MultiProgressBar/MultiProgressBar.js +48 -0
  166. package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +73 -0
  167. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +41 -0
  168. package/dist/components/Newsletter/Newsletter.js +162 -0
  169. package/dist/components/Newsletter/Newsletter.stories.js +20 -0
  170. package/dist/components/Newsletter/Newsletter.styles.js +83 -0
  171. package/dist/components/NotificationContext/NotificationContext.js +173 -0
  172. package/dist/components/NotificationContext/NotificationContext.stories.js +33 -0
  173. package/dist/components/NotificationCounter/NotificationCounter.styles.js +26 -0
  174. package/dist/components/Number/Number.js +35 -0
  175. package/dist/components/Number/Number.stories.js +41 -0
  176. package/dist/components/Number/Number.styles.js +20 -0
  177. package/dist/components/PageTransition/PageTransition.js +57 -0
  178. package/dist/components/Process/Process.stories.js +48 -0
  179. package/dist/components/Process/Process.styles.js +33 -0
  180. package/dist/components/ProfileBadge/ProfileBadge.js +53 -0
  181. package/dist/components/ProfileBadge/ProfileBadge.stories.js +49 -0
  182. package/dist/components/ProfileBadge/ProfileBadge.styles.js +32 -0
  183. package/dist/components/ProfileBox/ProfileBox.js +39 -0
  184. package/dist/components/ProfileBox/ProfileBox.stories.js +39 -0
  185. package/dist/components/ProfileBox/ProfileBox.styles.js +49 -0
  186. package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +477 -0
  187. package/dist/components/ProfileHeader/ProfileHeader.js +313 -0
  188. package/dist/components/ProfileHeader/ProfileHeader.styles.js +87 -0
  189. package/dist/components/ProfileStat/ProfileStat.js +42 -0
  190. package/dist/components/ProfileStat/ProfileStat.stories.js +72 -0
  191. package/dist/components/ProfileStat/ProfileStat.styles.js +42 -0
  192. package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +69 -0
  193. package/dist/components/ROI/ROI.js +312 -0
  194. package/dist/components/ROI/ROI.styles.js +63 -0
  195. package/dist/components/ROI/ROIChart.js +469 -0
  196. package/dist/components/ROI/ROIChart.styles.js +33 -0
  197. package/dist/components/ROI/ROIModal.js +91 -0
  198. package/dist/components/ROI/ROIScenarioBox.js +55 -0
  199. package/dist/components/ROI/ROIScenarioBox.styles.js +52 -0
  200. package/dist/components/Radio/Radio.js +68 -0
  201. package/dist/components/Radio/Radio.stories.js +77 -0
  202. package/dist/components/Radio/Radio.styles.js +31 -0
  203. package/dist/components/RefreshButton/RefreshButton.js +21 -0
  204. package/dist/components/RefreshButton/RefreshButton.stories.js +43 -0
  205. package/dist/components/RefreshButton/RefreshButton.styles.js +39 -0
  206. package/dist/components/RegisterAlgorand/AlgoAddressName.js +138 -0
  207. package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +444 -0
  208. package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +47 -0
  209. package/dist/components/RegisterAlgorand/AlgoSuccess.js +38 -0
  210. package/dist/components/RegisterAlgorand/Algorand.stories.js +80 -0
  211. package/dist/components/RegisterAlgorand/ChooseWallet.js +97 -0
  212. package/dist/components/RegisterAlgorand/SelectProject.js +90 -0
  213. package/dist/components/RegisterAlgorand/_styles.js +28 -0
  214. package/dist/components/RegisterAlgorand/flow.js +409 -0
  215. package/dist/components/RegisterAlgorand/flowWithMemo.js +410 -0
  216. package/dist/components/RegisterAlgorand/index.js +48 -0
  217. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +40 -0
  218. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +34 -0
  219. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +16 -0
  220. package/dist/components/RegisterEthereum/EthAddressLedger.js +226 -0
  221. package/dist/components/RegisterEthereum/EthAddressMetamask.js +204 -0
  222. package/dist/components/RegisterEthereum/EthAddressName.js +135 -0
  223. package/dist/components/RegisterEthereum/EthConnectLedger.js +194 -0
  224. package/dist/components/RegisterEthereum/EthConnectMetamask.js +35 -0
  225. package/dist/components/RegisterEthereum/EthFinish.js +41 -0
  226. package/dist/components/RegisterEthereum/EthIntro.js +95 -0
  227. package/dist/components/RegisterEthereum/_styles.js +28 -0
  228. package/dist/components/RegisterEthereum/index.js +68 -0
  229. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +106 -0
  230. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +66 -0
  231. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +48 -0
  232. package/dist/components/RegisterLiquidSteps/complete.js +37 -0
  233. package/dist/components/RegisterLiquidSteps/flow.js +197 -0
  234. package/dist/components/RegisterLiquidSteps/index.js +52 -0
  235. package/dist/components/RegisterLiquidSteps/register-liquid.js +240 -0
  236. package/dist/components/RegisterModal/RegisterModal.js +180 -0
  237. package/dist/components/RegisterModal/RegisterModal.stories.js +47 -0
  238. package/dist/components/RequestDataBox/RequestDataBox.js +31 -0
  239. package/dist/components/RequestDataBox/RequestDataBox.stories.js +41 -0
  240. package/dist/components/RequestDataBox/RequestDataBox.styles.js +31 -0
  241. package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +185 -0
  242. package/dist/components/RiskQuestionnaire/_styles.js +15 -0
  243. package/dist/components/SEO/SEO.js +71 -0
  244. package/dist/components/SEO/SEO.stories.js +64 -0
  245. package/dist/components/SectionTitle/SectionTitle.styles.js +15 -0
  246. package/dist/components/SideLine/SideLine.js +15 -0
  247. package/dist/components/SideLine/SideLine.stories.js +31 -0
  248. package/dist/components/SideLine/SideLine.styles.js +26 -0
  249. package/dist/components/SigningSubflow/SignSubAddressMetamask.js +137 -0
  250. package/dist/components/SigningSubflow/SignSubConnectLedger.js +150 -0
  251. package/dist/components/SigningSubflow/SignSubConnectMetamask.js +137 -0
  252. package/dist/components/SigningSubflow/SignSubIntro.js +54 -0
  253. package/dist/components/SigningSubflow/SignSubSendLedger.js +150 -0
  254. package/dist/components/SigningSubflow/SignSubSendMetamask.js +62 -0
  255. package/dist/components/SigningSubflow/SignSubTransactionLedger.js +161 -0
  256. package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +166 -0
  257. package/dist/components/SigningSubflow/_styles.js +45 -0
  258. package/dist/components/SigningSubflow/index.js +74 -0
  259. package/dist/components/Slider/Slider.js +50 -0
  260. package/dist/components/Slider/Slider.stories.js +73 -0
  261. package/dist/components/Slider/Slider.styles.js +23 -0
  262. package/dist/components/SpanButton/SpanButton.styles.js +15 -0
  263. package/dist/components/StatusBadge/StatusBadge.styles.js +20 -0
  264. package/dist/components/StepController/StepController.js +111 -0
  265. package/dist/components/StepController/StepController.stories.js +64 -0
  266. package/dist/components/StepController/StepController.styles.js +26 -0
  267. package/dist/components/StepController/StepControllerContext.js +104 -0
  268. package/dist/components/StepController/StepControllerProgress.js +40 -0
  269. package/dist/components/StepController/StepControllerProgress.stories.js +53 -0
  270. package/dist/components/StepsProgress/StepsProgress.js +146 -0
  271. package/dist/components/StepsProgress/StepsProgress.stories.js +51 -0
  272. package/dist/components/StepsProgress/StepsProgress.styles.js +36 -0
  273. package/dist/components/StokrLoader/StokrLoader.js +32 -0
  274. package/dist/components/StokrLoader/media.js +27 -0
  275. package/dist/components/SvgIcons/AdminBadgeSvg.js +26 -0
  276. package/dist/components/SvgIcons/CameraSvg.js +36 -0
  277. package/dist/components/SvgIcons/CapsLockSvg.js +31 -0
  278. package/dist/components/SvgIcons/DocumentBackSvg.js +35 -0
  279. package/dist/components/SvgIcons/DocumentSmallSvg.js +61 -0
  280. package/dist/components/SvgIcons/DocumentSvg.js +38 -0
  281. package/dist/components/SvgIcons/Early.js +24 -0
  282. package/dist/components/SvgIcons/EthSvg.js +40 -0
  283. package/dist/components/SvgIcons/EurSvg.js +26 -0
  284. package/dist/components/SvgIcons/FaceScanIconSvg.js +31 -0
  285. package/dist/components/SvgIcons/FourSvg.js +21 -0
  286. package/dist/components/SvgIcons/Glassess.js +29 -0
  287. package/dist/components/SvgIcons/LogoSvg.js +24 -0
  288. package/dist/components/SvgIcons/OneSvg.js +23 -0
  289. package/dist/components/SvgIcons/PassportSvg.js +56 -0
  290. package/dist/components/SvgIcons/RefreshSvg.js +27 -0
  291. package/dist/components/SvgIcons/SocialFacebook.js +25 -0
  292. package/dist/components/SvgIcons/SocialInstagram.js +26 -0
  293. package/dist/components/SvgIcons/SocialLinkedIn.js +25 -0
  294. package/dist/components/SvgIcons/SocialMedium.js +25 -0
  295. package/dist/components/SvgIcons/SocialReddit.js +25 -0
  296. package/dist/components/SvgIcons/SocialTelegram.js +25 -0
  297. package/dist/components/SvgIcons/SocialTwitter.js +28 -0
  298. package/dist/components/SvgIcons/SocialYoutube.js +25 -0
  299. package/dist/components/SvgIcons/ThreeSvg.js +20 -0
  300. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +82 -0
  301. package/dist/components/SvgIcons/TwoSvg.js +23 -0
  302. package/dist/components/SvgIcons/UpdateDefaultSvg.js +29 -0
  303. package/dist/components/SvgIcons/UpdateHardSvg.js +25 -0
  304. package/dist/components/SvgIcons/UpdateSoftSvg.js +27 -0
  305. package/dist/components/SvgIcons/UploadSvg.js +34 -0
  306. package/dist/components/SvgIcons/VerifiedBadge.js +23 -0
  307. package/dist/components/SvgIcons/index.js +223 -0
  308. package/dist/components/Switch/Switch.js +70 -0
  309. package/dist/components/Switch/Switch.stories.js +87 -0
  310. package/dist/components/Switch/Switch.styles.js +47 -0
  311. package/dist/components/Tabs/Tabs.js +70 -0
  312. package/dist/components/Tabs/Tabs.stories.js +40 -0
  313. package/dist/components/Tabs/Tabs.styles.js +18 -0
  314. package/dist/components/TabsNav/TabNav.js +31 -0
  315. package/dist/components/TabsNav/TabNav.stories.js +45 -0
  316. package/dist/components/TabsNav/TabsNav.js +43 -0
  317. package/dist/components/TabsNav/TabsNav.stories.js +41 -0
  318. package/dist/components/TabsNav/TabsNav.styles.js +43 -0
  319. package/dist/components/TeamOverview/TeamOverview.js +125 -0
  320. package/dist/components/TeamOverview/TeamOverview.stories.js +81 -0
  321. package/dist/components/TeamOverview/TeamOverview.styles.js +81 -0
  322. package/dist/components/Text/Headline.js +29 -0
  323. package/dist/components/Text/Headline.stories.js +52 -0
  324. package/dist/components/Text/StyledText.js +19 -0
  325. package/dist/components/Text/Text.stories.js +75 -0
  326. package/dist/components/Text/Text.styles.js +40 -0
  327. package/dist/components/TextLink/TextLink.styles.js +30 -0
  328. package/dist/components/ToDoList/ToDoList.js +189 -0
  329. package/dist/components/ToDoList/ToDoList.stories.js +138 -0
  330. package/dist/components/ToDoList/ToDoList.styles.js +83 -0
  331. package/dist/components/ToDoList/ToDoListTask.js +120 -0
  332. package/dist/components/ToDoList/ToDoListTask.stories.js +73 -0
  333. package/dist/components/ToDoList/ToDoListTask.styles.js +74 -0
  334. package/dist/components/TransactionDetails/TransactionDetails.js +46 -0
  335. package/dist/components/TransactionDetails/TransactionDetails.stories.js +60 -0
  336. package/dist/components/TransactionDetails/TransactionDetails.styles.js +31 -0
  337. package/dist/components/TransactionInfo/TransactionInfo.js +58 -0
  338. package/dist/components/TransactionInfo/TransactionInfo.stories.js +65 -0
  339. package/dist/components/TransactionInfo/TransactionInfo.styles.js +54 -0
  340. package/dist/components/TwoFactorModal/TwoFactorModal.js +122 -0
  341. package/dist/components/breakdown/Breakdown.js +57 -0
  342. package/dist/components/breakdown/index.js +27 -0
  343. package/dist/components/context/Auth.js +207 -0
  344. package/dist/components/context/AuthContext.js +334 -0
  345. package/dist/components/icons/Arrow.js +70 -0
  346. package/dist/components/icons/Arrow.stories.js +49 -0
  347. package/dist/components/icons/ArrowSimple.js +59 -0
  348. package/dist/components/icons/ArrowSimple.stories.js +55 -0
  349. package/dist/components/icons/Check.js +43 -0
  350. package/dist/components/icons/Check.stories.js +25 -0
  351. package/dist/components/icons/Facebook.js +26 -0
  352. package/dist/components/icons/Facebook.stories.js +24 -0
  353. package/dist/components/icons/Info.js +55 -0
  354. package/dist/components/icons/Info.stories.js +19 -0
  355. package/dist/components/icons/Instagram.js +26 -0
  356. package/dist/components/icons/Instagram.stories.js +24 -0
  357. package/dist/components/icons/LinkIcon.js +34 -0
  358. package/dist/components/icons/LinkIcon.stories.js +24 -0
  359. package/dist/components/icons/LinkedIn.js +43 -0
  360. package/dist/components/icons/LinkedIn.stories.js +19 -0
  361. package/dist/components/icons/Medium.js +42 -0
  362. package/dist/components/icons/Medium.stories.js +19 -0
  363. package/dist/components/icons/Reddit.js +32 -0
  364. package/dist/components/icons/Reddit.stories.js +24 -0
  365. package/dist/components/icons/Share.js +62 -0
  366. package/dist/components/icons/Share.stories.js +19 -0
  367. package/dist/components/icons/Telegram.js +42 -0
  368. package/dist/components/icons/Telegram.stories.js +19 -0
  369. package/dist/components/icons/Twitter.js +26 -0
  370. package/dist/components/icons/Twitter.stories.js +24 -0
  371. package/dist/components/icons/X.js +26 -0
  372. package/dist/components/icons/X.stories.js +19 -0
  373. package/dist/components/icons/Youtube.js +26 -0
  374. package/dist/components/icons/Youtube.stories.js +24 -0
  375. package/dist/components/icons/index.js +170 -0
  376. package/dist/components/renderToBody/index.js +27 -0
  377. package/dist/components/renderToBody/renderToBody.js +68 -0
  378. package/dist/components/taxId/TaxId.stories.js +56 -0
  379. package/dist/components/taxId/complete.js +32 -0
  380. package/dist/components/taxId/flow.js +71 -0
  381. package/dist/components/taxId/index.js +27 -0
  382. package/dist/components/taxId/register-taxid.js +203 -0
  383. package/dist/components/video/Video.js +174 -0
  384. package/dist/components/video/Video.stories.js +56 -0
  385. package/dist/components/video/index.js +27 -0
  386. package/dist/constants/globalVariables.js +16 -0
  387. package/dist/constants/style.js +52 -0
  388. package/dist/index.js +1050 -2
  389. package/dist/model/axios.js +18 -0
  390. package/dist/model/axiosPublic.js +18 -0
  391. package/dist/static/fonts/Ionicons/ionicons.min.css +13 -0
  392. package/dist/static/fonts/icomoon/selection.json +1 -0
  393. package/dist/static/fonts/icomoon/style.css +137 -0
  394. package/dist/static/images/1.svg +4 -0
  395. package/dist/static/images/2.svg +4 -0
  396. package/dist/static/images/3.svg +3 -0
  397. package/dist/static/images/4.svg +3 -0
  398. package/dist/static/images/Glassess.svg +5 -0
  399. package/dist/static/images/VerifiedBadge.svg +1 -0
  400. package/dist/static/images/admin-badge.svg +3 -0
  401. package/dist/static/images/amazon-logo.png +0 -0
  402. package/dist/static/images/arrow-down-black.svg +21 -0
  403. package/dist/static/images/avatar-cog.png +0 -0
  404. package/dist/static/images/avatar.png +0 -0
  405. package/dist/static/images/background.png +0 -0
  406. package/dist/static/images/camera.svg +1 -0
  407. package/dist/static/images/caps-lock.svg +6 -0
  408. package/dist/static/images/covers/blockchain.png +0 -0
  409. package/dist/static/images/covers/country.jpg +0 -0
  410. package/dist/static/images/covers/ethereum.jpg +0 -0
  411. package/dist/static/images/covers/index.png +0 -0
  412. package/dist/static/images/covers/liquid.png +0 -0
  413. package/dist/static/images/covers/money.png +0 -0
  414. package/dist/static/images/covers/overview.jpg +0 -0
  415. package/dist/static/images/covers/risk-questionnaire.jpg +0 -0
  416. package/dist/static/images/covers/rocket.png +0 -0
  417. package/dist/static/images/covers/verify-identity.jpg +0 -0
  418. package/dist/static/images/covers/virtual-iban.jpg +0 -0
  419. package/dist/static/images/document-back.svg +1 -0
  420. package/dist/static/images/document-small.svg +1 -0
  421. package/dist/static/images/document.svg +1 -0
  422. package/dist/static/images/early-adopter.png +0 -0
  423. package/dist/static/images/early-adopter.svg +1 -0
  424. package/dist/static/images/eth.svg +10 -0
  425. package/dist/static/images/eur.svg +3 -0
  426. package/dist/static/images/face-scan-icon.svg +1 -0
  427. package/dist/static/images/favicon.png +0 -0
  428. package/dist/static/images/favicon.svg +57 -0
  429. package/dist/static/images/google-logo.png +0 -0
  430. package/dist/static/images/graduation.png +0 -0
  431. package/dist/static/images/hdd.png +0 -0
  432. package/dist/static/images/lemonway.png +0 -0
  433. package/dist/static/images/logo.svg +1 -0
  434. package/dist/static/images/member-item-picture.png +0 -0
  435. package/dist/static/images/one.jpg +0 -0
  436. package/dist/static/images/passport.svg +1 -0
  437. package/dist/static/images/process-waiting.gif +0 -0
  438. package/dist/static/images/profile-picture-placeholder.png +0 -0
  439. package/dist/static/images/profile-picture-placeholder.svg +1 -0
  440. package/dist/static/images/profile-picture.png +0 -0
  441. package/dist/static/images/refresh.svg +9 -0
  442. package/dist/static/images/shark.jpg +0 -0
  443. package/dist/static/images/sicos.png +0 -0
  444. package/dist/static/images/slider/1.jpg +0 -0
  445. package/dist/static/images/slider/2.jpg +0 -0
  446. package/dist/static/images/slider/3.jpg +0 -0
  447. package/dist/static/images/social/facebook.svg +3 -0
  448. package/dist/static/images/social/linkedin.svg +3 -0
  449. package/dist/static/images/social/medium.svg +3 -0
  450. package/dist/static/images/social/reddit.svg +3 -0
  451. package/dist/static/images/social/telegram.svg +3 -0
  452. package/dist/static/images/social/twitter.svg +3 -0
  453. package/dist/static/images/social/youtube.svg +3 -0
  454. package/dist/static/images/three.jpg +0 -0
  455. package/dist/static/images/two-sided-document.svg +26 -0
  456. package/dist/static/images/two.jpg +0 -0
  457. package/dist/static/images/upload.svg +1 -0
  458. package/dist/static/images/user-profile.png +0 -0
  459. package/dist/static/videos/Capybara-with-mandarin orange-on-head.mp4 +0 -0
  460. package/dist/styles/colors.js +55 -0
  461. package/dist/styles/fonts.js +34 -0
  462. package/dist/styles/global.js +18 -0
  463. package/dist/styles/grid.js +16 -0
  464. package/dist/styles/reactTippy.js +12 -0
  465. package/dist/styles/rwd.js +52 -0
  466. package/dist/styles/semanticUi.js +12 -0
  467. package/dist/styles/spacing.js +12 -0
  468. package/dist/styles/theme.js +43 -0
  469. package/dist/utils/allowed-countries-list.js +1375 -0
  470. package/dist/utils/breakpoint.js +19 -0
  471. package/dist/utils/countries-list.js +1008 -0
  472. package/dist/utils/customHooks.js +54 -0
  473. package/dist/utils/delete-redirect-cookie-and-navigate.js +20 -0
  474. package/dist/utils/fix-decimals.js +11 -0
  475. package/dist/utils/get-cookie-domain.js +16 -0
  476. package/dist/utils/get-short-address.js +10 -0
  477. package/dist/utils/km_ify.js +38 -0
  478. package/dist/utils/lock-body.js +20 -0
  479. package/dist/utils/redirect-url.js +10 -0
  480. package/dist/utils/set-redirect-cookie.js +20 -0
  481. package/dist/utils/withRouter.js +20 -0
  482. package/package.json +84 -89
  483. package/.vscode/settings.json +0 -3
  484. package/CHANGELOG.md +0 -7
  485. package/Dockerfile +0 -20
  486. package/buildpushndeploy.sh +0 -9
  487. package/devops/Dockerfile +0 -20
  488. package/devops/Jenkinsfile +0 -56
  489. package/devops/ansible/docker-stack-deploy.yml +0 -32
  490. package/devops/ansible/hosts.ini +0 -7
  491. package/devops/docker-compose.yml +0 -25
  492. package/dist/08418fc6c324f51f7e56.svg +0 -1
  493. package/dist/76dd0ed9c3f137513fd4.svg +0 -1
  494. package/dist/index.js.LICENSE.txt +0 -1
  495. package/docker-compose.yml +0 -25
  496. package/storybook-static/favicon.ico +0 -0
  497. /package/dist/{03f9f978feb2b015b6812ba10f689967.png → components/Footer/lemonway.png} +0 -0
  498. /package/dist/{98b7d3182f652f021bc3.ttf → static/fonts/Ionicons/Ionicons.ttf} +0 -0
  499. /package/dist/{4e528d6445ca1974c313.woff → static/fonts/Ionicons/Ionicons.woff} +0 -0
  500. /package/dist/{643c37f102b41f7f90c3.woff2 → static/fonts/Ionicons/Ionicons.woff2} +0 -0
  501. /package/dist/{9bea22b57dc165ed4382.ttf → static/fonts/OpenSans/OpenSans-Bold.ttf} +0 -0
  502. /package/dist/{a750292d6a0b5a760679.woff → static/fonts/OpenSans/OpenSans-Bold.woff} +0 -0
  503. /package/dist/{cbfc24090ef8bacab132.woff2 → static/fonts/OpenSans/OpenSans-Bold.woff2} +0 -0
  504. /package/dist/{bcb6531cf820152b7538.ttf → static/fonts/OpenSans/OpenSans-ExtraBold.ttf} +0 -0
  505. /package/dist/{81f3ef07b7952e249da1.woff → static/fonts/OpenSans/OpenSans-ExtraBold.woff} +0 -0
  506. /package/dist/{21e493d43617de76dbc7.woff2 → static/fonts/OpenSans/OpenSans-ExtraBold.woff2} +0 -0
  507. /package/dist/{55053cc0a8e6482eca64.ttf → static/fonts/OpenSans/OpenSans-Light.ttf} +0 -0
  508. /package/dist/{c6a4bc1bd034d6303053.woff → static/fonts/OpenSans/OpenSans-Light.woff} +0 -0
  509. /package/dist/{179ef2df02cb0b68c9fd.woff2 → static/fonts/OpenSans/OpenSans-Light.woff2} +0 -0
  510. /package/dist/{d97d7385fe8771611848.ttf → static/fonts/OpenSans/OpenSans-Regular.ttf} +0 -0
  511. /package/dist/{9ec738fbb66068dc1ca7.woff → static/fonts/OpenSans/OpenSans-Regular.woff} +0 -0
  512. /package/dist/{3caa0d4f9b7d58668066.woff2 → static/fonts/OpenSans/OpenSans-Regular.woff2} +0 -0
  513. /package/dist/{d2b1865643b98c0e8b54.ttf → static/fonts/OpenSans/OpenSans-SemiBold.ttf} +0 -0
  514. /package/dist/{39f5961b2d3eb4aa5bf5.woff → static/fonts/OpenSans/OpenSans-SemiBold.woff} +0 -0
  515. /package/dist/{311956ded96d3fd2813d.woff2 → static/fonts/OpenSans/OpenSans-SemiBold.woff2} +0 -0
  516. /package/dist/{2640959b1f9381cde047.eot → static/fonts/icomoon/icomoon.eot} +0 -0
  517. /package/dist/{07233f511246c9825a0d58e5ab2641f3.svg → static/fonts/icomoon/icomoon.svg} +0 -0
  518. /package/dist/{a1d7666a48f976227722.ttf → static/fonts/icomoon/icomoon.ttf} +0 -0
  519. /package/dist/{4c3c428d0ce82f840710.woff → static/fonts/icomoon/icomoon.woff} +0 -0
  520. /package/dist/{14aa35d4e84aebef77cf00b421fc393a.gif → static/images/address-refreshing.gif} +0 -0
  521. /package/dist/{2ba2db4ff86a2663686a100e75b50ba9.png → static/images/avatar-placeholder.png} +0 -0
  522. /package/dist/{b85a961d44cc55c58050cbf7c53dd505.png → static/images/whales.png} +0 -0
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.NotificationProvider = exports.NotificationConsumer = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _socket = _interopRequireDefault(require("socket.io-client"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ 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); }
12
+ 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; }
13
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
14
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
15
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
18
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
19
+ 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; }
20
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
22
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
26
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
28
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
30
+ 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; }
31
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
32
+ 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); }
33
+ var NotificationContext = /*#__PURE__*/_react.default.createContext();
34
+ var NotificationProvider = /*#__PURE__*/function (_Component) {
35
+ _inherits(NotificationProvider, _Component);
36
+ var _super = _createSuper(NotificationProvider);
37
+ function NotificationProvider() {
38
+ var _this;
39
+ _classCallCheck(this, NotificationProvider);
40
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
41
+ args[_key] = arguments[_key];
42
+ }
43
+ _this = _super.call.apply(_super, [this].concat(args));
44
+ _defineProperty(_assertThisInitialized(_this), "socket", {});
45
+ _defineProperty(_assertThisInitialized(_this), "projectSocket", {});
46
+ _defineProperty(_assertThisInitialized(_this), "state", {
47
+ notifications: [],
48
+ projectNotifications: []
49
+ });
50
+ _defineProperty(_assertThisInitialized(_this), "connectToSocket", function () {
51
+ var userId = _this.props.userId;
52
+ _this.socket = (0, _socket.default)(process.env.REACT_APP_NOTIFICATION_API_URL, {
53
+ path: '/notification'
54
+ });
55
+ _this.setSocketEvents();
56
+ _this.setState({
57
+ notifications: []
58
+ }, function () {
59
+ _this.socket.emit('login_to_socket', {
60
+ userId: userId
61
+ });
62
+ });
63
+ });
64
+ _defineProperty(_assertThisInitialized(_this), "connectToProjectSocket", function () {
65
+ var projectId = _this.props.projectId;
66
+ _this.projectSocket = (0, _socket.default)(process.env.REACT_APP_NOTIFICATION_API_URL, {
67
+ path: '/notification'
68
+ });
69
+ _this.setProjectSocketEvents();
70
+ _this.setState({
71
+ projectNotifications: []
72
+ }, function () {
73
+ _this.projectSocket.emit('login_to_socket', {
74
+ userId: projectId
75
+ });
76
+ });
77
+ });
78
+ _defineProperty(_assertThisInitialized(_this), "setSocketEvents", function () {
79
+ _this.socket.on('has_error', _this.onHasError);
80
+ _this.socket.on('notification', _this.onNotification);
81
+ });
82
+ _defineProperty(_assertThisInitialized(_this), "setProjectSocketEvents", function () {
83
+ _this.projectSocket.on('has_error', _this.onHasError);
84
+ _this.projectSocket.on('notification', _this.onProjectNotification);
85
+ });
86
+ _defineProperty(_assertThisInitialized(_this), "onHasError", function (data) {
87
+ console.warn(data);
88
+ });
89
+ _defineProperty(_assertThisInitialized(_this), "onNotification", function (notification) {
90
+ _this.setState(function (prevState) {
91
+ return {
92
+ notifications: [notification].concat(_toConsumableArray(prevState.notifications))
93
+ };
94
+ });
95
+ });
96
+ _defineProperty(_assertThisInitialized(_this), "onProjectNotification", function (notification) {
97
+ _this.setState(function (prevState) {
98
+ return {
99
+ projectNotifications: [notification].concat(_toConsumableArray(prevState.projectNotifications))
100
+ };
101
+ });
102
+ });
103
+ _defineProperty(_assertThisInitialized(_this), "markAsRead", function (userNotificationId) {
104
+ var notifications = _this.state.notifications;
105
+ _this.socket.emit('mark_as_read', {
106
+ userNotificationId: userNotificationId
107
+ });
108
+ _this.setState({
109
+ notifications: notifications.filter(function (notificationItem) {
110
+ return notificationItem._id !== userNotificationId;
111
+ })
112
+ });
113
+ });
114
+ return _this;
115
+ }
116
+ _createClass(NotificationProvider, [{
117
+ key: "componentDidMount",
118
+ value: function componentDidMount() {
119
+ var _this$props = this.props,
120
+ userId = _this$props.userId,
121
+ projectId = _this$props.projectId;
122
+ if (userId !== '') {
123
+ //this.connectToSocket();
124
+ }
125
+ if (projectId !== '') {
126
+ //this.connectToProjectSocket();
127
+ }
128
+ }
129
+ }, {
130
+ key: "componentDidUpdate",
131
+ value: function componentDidUpdate(prevProps) {
132
+ var _this$props2 = this.props,
133
+ userId = _this$props2.userId,
134
+ projectId = _this$props2.projectId;
135
+ if (prevProps.userId === '' && userId !== '') {
136
+ //this.connectToSocket()
137
+ }
138
+ if (prevProps.projectId === '' && projectId !== '') {
139
+ this.connectToProjectSocket();
140
+ }
141
+ }
142
+ }, {
143
+ key: "render",
144
+ value: function render() {
145
+ var children = this.props.children;
146
+ var _this$state = this.state,
147
+ notifications = _this$state.notifications,
148
+ projectNotifications = _this$state.projectNotifications;
149
+ return /*#__PURE__*/_react.default.createElement(NotificationContext.Provider, {
150
+ value: {
151
+ notifications: notifications.filter(function (notification) {
152
+ return !notification.isRead;
153
+ }),
154
+ projectNotifications: projectNotifications,
155
+ markAsRead: this.markAsRead
156
+ }
157
+ }, children);
158
+ }
159
+ }]);
160
+ return NotificationProvider;
161
+ }(_react.Component);
162
+ exports.NotificationProvider = NotificationProvider;
163
+ NotificationProvider.propTypes = {
164
+ children: _propTypes.default.node.isRequired,
165
+ userId: _propTypes.default.string,
166
+ projectId: _propTypes.default.string
167
+ };
168
+ NotificationProvider.defaultProps = {
169
+ userId: '',
170
+ projectId: ''
171
+ };
172
+ var NotificationConsumer = NotificationContext.Consumer;
173
+ exports.NotificationConsumer = NotificationConsumer;
@@ -0,0 +1,33 @@
1
+ // import React from 'react'
2
+ // import { NotificationProvider } from './NotificationContext'
3
+ // import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
4
+
5
+ // export default {
6
+ // title: 'Components Library/NotificationContext',
7
+ // component: NotificationProvider,
8
+ // argTypes: {
9
+ // children: { type: 'node', required: true },
10
+ // userId: { type: 'string', defaultValue: '' },
11
+ // projectId: { type: 'string', defaultValue: '' },
12
+ // },
13
+ // }
14
+
15
+ // const Template = args => (
16
+ // <ComponentWrapper>
17
+ // <NotificationProvider {...args} />
18
+ // </ComponentWrapper>
19
+ // )
20
+
21
+ // export const NotificationContextDefault = Template.bind({})
22
+ // NotificationContextDefault.args = {}
23
+
24
+ // export const NotificationContextFull = Template.bind({})
25
+ // NotificationContextFull.args = {
26
+ // children: 'Children, Node',
27
+ // userId: 'User ID',
28
+ // projectId: 'Project ID',
29
+ // }
30
+
31
+ // doublecheck:
32
+ // Storybookgoes bust, cannot resolve socket.io
33
+ "use strict";
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.NotificationCounter = 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 NotificationCounter = _styledComponents.default.span.withConfig({
11
+ displayName: "NotificationCounterstyles__NotificationCounter",
12
+ componentId: "sc-1pf66l9-0"
13
+ })(["display:inline-block;vertical-align:middle;color:", ";background-color:", ";border-radius:50%;min-width:16px;height:16px;font-size:11px;font-weight:600;line-height:16px;text-align:center;", " ", " ", ""], function (props) {
14
+ return _theme.default.cWhite;
15
+ }, function (props) {
16
+ return _theme.default.cWarning;
17
+ }, function (props) {
18
+ return props.avatar && "\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n ";
19
+ }, function (props) {
20
+ return props.mobile && "\n position: absolute;\n top: 5px;\n right: 5px;\n z-index: 1;\n ";
21
+ }, function (props) {
22
+ return props.mobileMenu && "\n margin:0 5px;\n ";
23
+ });
24
+ exports.NotificationCounter = NotificationCounter;
25
+ var _default = NotificationCounter;
26
+ exports.default = _default;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Number = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _SvgIcons = require("../SvgIcons");
10
+ var _Number = require("./Number.styles");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ var getIcon = function getIcon(number) {
13
+ switch (number) {
14
+ case 1:
15
+ return /*#__PURE__*/_react.default.createElement(_SvgIcons.OneSvg, null);
16
+ case 2:
17
+ return /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null);
18
+ case 3:
19
+ return /*#__PURE__*/_react.default.createElement(_SvgIcons.ThreeSvg, null);
20
+ case 4:
21
+ return /*#__PURE__*/_react.default.createElement(_SvgIcons.FourSvg, null);
22
+ default:
23
+ return null;
24
+ }
25
+ };
26
+ var Number = function Number(_ref) {
27
+ var number = _ref.number;
28
+ return /*#__PURE__*/_react.default.createElement(_Number.Container, null, getIcon(number));
29
+ };
30
+ exports.Number = Number;
31
+ Number.propTypes = {
32
+ number: _propTypes.default.number.isRequired
33
+ };
34
+ var _default = Number;
35
+ exports.default = _default;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.number = exports.default = exports.NumberTwo = exports.NumberThree = exports.NumberOne = exports.NumberFour = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _SvgIcons = require("../SvgIcons");
9
+ var _Number = require("./Number");
10
+ var _Number2 = require("./Number.styles");
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ var _default = {
13
+ title: 'Components Library/Number',
14
+ component: _Number.Number
15
+ };
16
+ exports.default = _default;
17
+ var number = function number() {
18
+ return /*#__PURE__*/_react.default.createElement(_Number.Number, null);
19
+ };
20
+ exports.number = number;
21
+ var NumberOne = function NumberOne() {
22
+ return /*#__PURE__*/_react.default.createElement(_Number2.Container, null, /*#__PURE__*/_react.default.createElement(_SvgIcons.OneSvg, null));
23
+ };
24
+ exports.NumberOne = NumberOne;
25
+ var NumberTwo = function NumberTwo() {
26
+ return /*#__PURE__*/_react.default.createElement(_Number2.Container, null, /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null));
27
+ };
28
+ exports.NumberTwo = NumberTwo;
29
+ var NumberThree = function NumberThree() {
30
+ return /*#__PURE__*/_react.default.createElement(_Number2.Container, null, /*#__PURE__*/_react.default.createElement(_SvgIcons.ThreeSvg, null));
31
+ };
32
+ exports.NumberThree = NumberThree;
33
+ var NumberFour = function NumberFour() {
34
+ return /*#__PURE__*/_react.default.createElement(_Number2.Container, null, /*#__PURE__*/_react.default.createElement(_SvgIcons.FourSvg, null));
35
+ };
36
+
37
+ // doublecheck:
38
+
39
+ //what about blue option?
40
+ //could write this with argType cases/number
41
+ exports.NumberFour = NumberFour;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = 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 Container = _styledComponents.default.div.withConfig({
11
+ displayName: "Numberstyles__Container",
12
+ componentId: "sc-1g8h8k-0"
13
+ })(["display:inline-block;vertical-align:top;width:24px;height:24px;padding:4px;background-color:", ";font-size:0;text-align:center;margin-right:12px;& > svg{display:inline-block;height:16px;width:auto;fill:", ";}"], function (props) {
14
+ return _theme.default.cWarning;
15
+ }, function (props) {
16
+ return _theme.default.cWhite;
17
+ });
18
+ exports.Container = Container;
19
+ var _default = Container;
20
+ exports.default = _default;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.PageTransition = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _reactTransitionGroup = require("react-transition-group");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ 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); }
12
+ 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; }
13
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
14
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
+ 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; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ 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); }
19
+ var timeout = 300;
20
+ var getTransitionStyles = {
21
+ entering: {
22
+ position: 'absolute',
23
+ opacity: 0
24
+ },
25
+ entered: {
26
+ transition: "opacity ".concat(timeout, "ms ease-in-out"),
27
+ opacity: 1
28
+ },
29
+ exiting: {
30
+ transition: "opacity ".concat(timeout, "ms ease-in-out"),
31
+ opacity: 0
32
+ }
33
+ };
34
+ var PageTransition = function PageTransition(props) {
35
+ var children = props.children,
36
+ location = props.location;
37
+ return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.TransitionGroup, null, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.Transition, {
38
+ key: location.pathname,
39
+ timeout: {
40
+ enter: timeout,
41
+ exit: timeout
42
+ }
43
+ }, function (status) {
44
+ return /*#__PURE__*/_react.default.createElement("div", {
45
+ style: _objectSpread({}, getTransitionStyles[status])
46
+ }, children);
47
+ })), /*#__PURE__*/_react.default.createElement("div", {
48
+ id: "modalPortal"
49
+ }));
50
+ };
51
+ exports.PageTransition = PageTransition;
52
+ PageTransition.propTypes = {
53
+ children: _propTypes.default.node.isRequired,
54
+ location: _propTypes.default.instanceOf(Object).isRequired
55
+ };
56
+ var _default = PageTransition;
57
+ exports.default = _default;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.ProcessWaiting = exports.ProcessSuccess = exports.ProcessFailed = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _Process = _interopRequireDefault(require("./Process.styles"));
9
+ var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
+ var _global = _interopRequireDefault(require("../../styles/global"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ var _default = {
13
+ title: 'Components Library/Process',
14
+ component: _Process.default,
15
+ argTypes: {
16
+ waiting: {
17
+ type: 'boolean',
18
+ defaultValue: false
19
+ },
20
+ success: {
21
+ type: 'boolean',
22
+ defaultValue: false
23
+ },
24
+ failed: {
25
+ type: 'boolean',
26
+ defaultValue: false
27
+ }
28
+ }
29
+ };
30
+ exports.default = _default;
31
+ var Template = function Template(args) {
32
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_Process.default, args)));
33
+ };
34
+ var ProcessWaiting = Template.bind({});
35
+ exports.ProcessWaiting = ProcessWaiting;
36
+ ProcessWaiting.args = {
37
+ waiting: true
38
+ };
39
+ var ProcessSuccess = Template.bind({});
40
+ exports.ProcessSuccess = ProcessSuccess;
41
+ ProcessSuccess.args = {
42
+ success: true
43
+ };
44
+ var ProcessFailed = Template.bind({});
45
+ exports.ProcessFailed = ProcessFailed;
46
+ ProcessFailed.args = {
47
+ failed: true
48
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Process = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _rwd = _interopRequireDefault(require("../../styles/rwd"));
9
+ var _theme = _interopRequireDefault(require("../../styles/theme"));
10
+ var _processWaiting = _interopRequireDefault(require("../../static/images/process-waiting.gif"));
11
+ var _templateObject, _templateObject2;
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
+ var Process = _styledComponents.default.div.withConfig({
15
+ displayName: "Processstyles__Process",
16
+ componentId: "sc-dvfica-0"
17
+ })(["display:block;position:relative;font-size:11px;line-height:16px;text-transform:uppercase;padding-right:26px;color:", ";opacity:0.3;", " &:before{content:'';font-family:'Ionicons';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:19px;line-height:16px;display:block;width:16px;height:16px;position:absolute;top:50%;right:0;margin-top:-8px;", "}", " ", " ", ""], function (props) {
18
+ return _theme.default.cPrimary;
19
+ }, _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 14px;\n line-height: 20px;\n "]))), _rwd.default.Medium(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 24px;\n line-height: 20px;\n width: 20px;\n height: 20px;\n margin-top: -10px;\n "]))), function (props) {
20
+ return props.waiting && "\n opacity: 1;\n\n &:before {\n content: '';\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: cover;\n background-image: url(".concat(_processWaiting.default, ");\n }\n ");
21
+ }, function (props) {
22
+ return props.success && "\n opacity: 1;\n\n &:before {\n content: '\\f14a';\n color: ".concat(_theme.default.cProgressDone, ";\n }\n ");
23
+ }, function (props) {
24
+ return props.failed && "\n opacity: 1;\n color: ".concat(_theme.default.cWarning, ";\n\n &:before {\n content: '\\f14e';\n }\n ");
25
+ });
26
+ exports.Process = Process;
27
+ var _default = Process; //left out of Merge, font-weight and p below only from IIS
28
+ // font-weight: bold;
29
+ // p {
30
+ // text-transform: initial;
31
+ // font-weight: initial;
32
+ // }
33
+ exports.default = _default;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.ProfileBadge = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _earlyAdopter = _interopRequireDefault(require("../../static/images/early-adopter.png"));
11
+ var _graduation = _interopRequireDefault(require("../../static/images/graduation.png"));
12
+ var _ProfileBadge = require("./ProfileBadge.styles");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ var Badge = _styledComponents.default.img.withConfig({
15
+ displayName: "ProfileBadge__Badge",
16
+ componentId: "sc-3y9ipg-0"
17
+ })(["height:100px;@media screen and (max-width:1023px){height:80px;}"]);
18
+ var GetBadge = function GetBadge(badge) {
19
+ if (badge === 'Graduation') {
20
+ return _graduation.default;
21
+ } else {
22
+ return _earlyAdopter.default;
23
+ }
24
+ };
25
+ var ProfileBadge = function ProfileBadge(_ref) {
26
+ var title = _ref.title,
27
+ icon = _ref.icon,
28
+ withIcon = _ref.withIcon,
29
+ color = _ref.color,
30
+ centerVertically = _ref.centerVertically;
31
+ return /*#__PURE__*/_react.default.createElement(_ProfileBadge.Wrapper, {
32
+ color: color
33
+ }, /*#__PURE__*/_react.default.createElement(_ProfileBadge.Title, {
34
+ centerVertically: centerVertically
35
+ }, title), icon, withIcon && /*#__PURE__*/_react.default.createElement(Badge, {
36
+ src: GetBadge(title),
37
+ alt: title + ' badge'
38
+ }));
39
+ };
40
+ exports.ProfileBadge = ProfileBadge;
41
+ ProfileBadge.propTypes = {
42
+ title: _propTypes.default.string.isRequired,
43
+ icon: _propTypes.default.node,
44
+ withIcon: _propTypes.default.bool,
45
+ color: _propTypes.default.string
46
+ };
47
+ ProfileBadge.defaultProps = {
48
+ icon: undefined,
49
+ withIcon: undefined,
50
+ color: 'white'
51
+ };
52
+ var _default = ProfileBadge;
53
+ exports.default = _default;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.ProfileBadgeWithIcon = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _addonViewport = require("@storybook/addon-viewport");
9
+ var _ProfileBadge = require("./ProfileBadge");
10
+ var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
11
+ var _global = _interopRequireDefault(require("../../styles/global"));
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ var _default = {
14
+ title: 'Components Library/Profile Badge',
15
+ component: _ProfileBadge.ProfileBadge,
16
+ argTypes: {
17
+ title: {
18
+ type: 'string',
19
+ required: true
20
+ },
21
+ icon: {
22
+ type: 'node',
23
+ defaultValue: undefined
24
+ },
25
+ color: {
26
+ type: 'string',
27
+ defaultValue: 'white'
28
+ },
29
+ withIcon: {
30
+ type: 'boolean',
31
+ defaultValue: undefined
32
+ }
33
+ },
34
+ parameters: {
35
+ backgrounds: {
36
+ default: 'grey'
37
+ }
38
+ }
39
+ };
40
+ exports.default = _default;
41
+ var Template = function Template(args) {
42
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_ProfileBadge.ProfileBadge, args)));
43
+ };
44
+ var ProfileBadgeWithIcon = Template.bind({});
45
+ exports.ProfileBadgeWithIcon = ProfileBadgeWithIcon;
46
+ ProfileBadgeWithIcon.args = {
47
+ title: 'A Title',
48
+ withIcon: true
49
+ };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.Wrapper = exports.Title = void 0;
8
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
+ var _rwd = _interopRequireDefault(require("../../styles/rwd"));
10
+ var _theme = _interopRequireDefault(require("../../styles/theme"));
11
+ var _templateObject, _templateObject2;
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
+ var Wrapper = _styledComponents.default.div.withConfig({
17
+ displayName: "ProfileBadgestyles__Wrapper",
18
+ componentId: "sc-191tkgo-0"
19
+ })(["display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;flex-grow:1;padding:32px;", " ", " ", ""], _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 12px;\n "]))), function (props) {
20
+ return props.color === 'white' && "\n color: ".concat(_theme.default.cBlack, ";\n background-color: ").concat(_theme.default.cWhite, ";\n\n svg {\n stroke: ").concat(_theme.default.cBlack, ";\n }\n ");
21
+ }, function (props) {
22
+ return props.color === 'red' && "\n color: ".concat(_theme.default.cWhite, ";\n background-color: ").concat(_theme.default.cWarning, ";\n\n svg {\n stroke: ").concat(_theme.default.cWhite, ";\n }\n ");
23
+ });
24
+ exports.Wrapper = Wrapper;
25
+ var Title = _styledComponents.default.div.withConfig({
26
+ displayName: "ProfileBadgestyles__Title",
27
+ componentId: "sc-191tkgo-1"
28
+ })(["font-size:11px;line-height:24px;letter-spacing:2.06px;text-transform:uppercase;margin-bottom:20px;", ""], function (_ref) {
29
+ var centerVertically = _ref.centerVertically;
30
+ return centerVertically && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 0;\n "])));
31
+ });
32
+ exports.Title = Title;