@stokr/components-library 3.0.16 → 3.0.17

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 (379) hide show
  1. package/README.md +261 -262
  2. package/dist/analytics/index.js +180 -0
  3. package/dist/api/auth.js +15 -0
  4. package/dist/api/fetchData.js +27 -0
  5. package/dist/api/fetchDataPublic.js +19 -0
  6. package/dist/auth/index.js +32 -0
  7. package/dist/components/2FA/Connect2FA.js +55 -0
  8. package/dist/components/2FA/EnterCode.js +63 -0
  9. package/dist/components/2FA/InstallAuthApp.js +64 -0
  10. package/dist/components/2FA/ResetCode.js +33 -0
  11. package/dist/components/2FA/Sucess2FA.js +51 -0
  12. package/dist/components/2FA/disable-2fa-flow.js +91 -0
  13. package/dist/components/2FA/enable-2fa-flow.js +137 -0
  14. package/dist/components/2FA/login-with-otp-flow.js +206 -0
  15. package/dist/components/2FA/main-flow.js +217 -0
  16. package/dist/components/AccountBalance/AccountBalance.js +35 -0
  17. package/dist/components/AccountBalance/AccountBalance.styles.js +48 -0
  18. package/dist/components/AdminDashboard/Table/ReactTable.js +266 -0
  19. package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +65 -0
  20. package/dist/components/AdminDashboard/Table/Table.js +123 -0
  21. package/dist/components/AdminDashboard/Table/Table.styles.js +263 -0
  22. package/dist/components/AgreementItem/AgreementItem.js +39 -0
  23. package/dist/components/AgreementItem/AgreementItem.styles.js +32 -0
  24. package/dist/components/BackButton/BackButton.js +34 -0
  25. package/dist/components/BackButton/BackButton.styles.js +123 -0
  26. package/dist/components/Background/Background.js +45 -0
  27. package/dist/components/Background/Background.styles.js +119 -0
  28. package/dist/components/BasicTable/BasicTable.js +25 -0
  29. package/dist/components/BasicTable/BasicTable.styles.js +76 -0
  30. package/dist/components/BlogPost/BlogPost.js +98 -0
  31. package/dist/components/BlogPost/BlogPost.styles.js +230 -0
  32. package/dist/components/Button/Button.styles.js +207 -0
  33. package/dist/components/ButtonContainer/ButtonContainer.styles.js +51 -0
  34. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +18 -0
  35. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +41 -0
  36. package/dist/components/Card/Card.styles.js +97 -0
  37. package/dist/components/ChartLegend/ChartLegend.js +62 -0
  38. package/dist/components/ChartLegend/ChartLegend.styles.js +133 -0
  39. package/dist/components/Checkbox/Checkbox.js +80 -0
  40. package/dist/components/Checkbox/Checkbox.styles.js +133 -0
  41. package/dist/components/Checklist/ChecklistCard.js +71 -0
  42. package/dist/components/Checklist/ChecklistCard.styles.js +82 -0
  43. package/dist/components/Chips/Chip.js +23 -0
  44. package/dist/components/Chips/Chip.styles.js +72 -0
  45. package/dist/components/Chips/ChipWrapper.js +50 -0
  46. package/dist/components/ComponentScroll/ComponentScroll.js +70 -0
  47. package/dist/components/ComponentScroll/ComponentScroll.styles.js +127 -0
  48. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +165 -0
  49. package/dist/components/ConfirmModal/ConfirmModal.js +187 -0
  50. package/dist/components/ConfirmModal/ConfirmModal.styles.js +44 -0
  51. package/dist/components/CryptoAddress/ComponentWrap.js +16 -0
  52. package/dist/components/CryptoAddress/CryptoAddress.js +151 -0
  53. package/dist/components/CryptoAddress/CryptoAddress.styles.js +443 -0
  54. package/dist/components/CryptoAddress/RadioWrap.js +47 -0
  55. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +34 -0
  56. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +125 -0
  57. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +25 -0
  58. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +111 -0
  59. package/dist/components/DoubleButton/DoubleButton.styles.js +27 -0
  60. package/dist/components/ErrorMessage/ErrorMessage.styles.js +9 -0
  61. package/dist/components/FAQ/FAQ.js +73 -0
  62. package/dist/components/FAQ/FAQ.styles.js +128 -0
  63. package/dist/components/Footer/Footer.js +55 -0
  64. package/dist/components/Footer/Footer.styles.js +256 -0
  65. package/dist/components/Footer/FooterLayout.js +145 -0
  66. package/dist/components/Footer/FooterMenu.js +100 -0
  67. package/dist/components/Footer/FooterMenu.styles.js +321 -0
  68. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +100 -0
  69. package/dist/components/Form/Form.js +21 -0
  70. package/dist/components/Form/Form.styles.js +72 -0
  71. package/dist/components/Grid/Grid.styles.js +212 -0
  72. package/dist/components/Header/Header.js +425 -0
  73. package/dist/components/Header/Header.styles.js +567 -0
  74. package/dist/components/HeroBlock/HeroVideoBlock.js +105 -0
  75. package/dist/components/Icon/Icon.style.js +92 -0
  76. package/dist/components/Icon/Icon2.js +12 -0
  77. package/dist/components/InfoIcon/InfoIcon.js +62 -0
  78. package/dist/components/InfoIcon/InfoIcon.styles.js +64 -0
  79. package/dist/components/Input/DatePickerInput.js +139 -0
  80. package/dist/components/Input/DatePickerInput.styles.js +165 -0
  81. package/dist/components/Input/Input.js +108 -0
  82. package/dist/components/Input/Input.styles.js +154 -0
  83. package/dist/components/Input/InputPassword.js +122 -0
  84. package/dist/components/Input/InputPassword.styles.js +166 -0
  85. package/dist/components/Input/InputUsername.js +92 -0
  86. package/dist/components/Input/InputWithButton.js +53 -0
  87. package/dist/components/Input/InputWithButton.styles.js +57 -0
  88. package/dist/components/Input/MultiSelect.js +306 -0
  89. package/dist/components/Input/OtpInput.js +70 -0
  90. package/dist/components/Input/RangeInput.js +80 -0
  91. package/dist/components/Input/RangeInput.styles.js +129 -0
  92. package/dist/components/Input/SearchInput.js +68 -0
  93. package/dist/components/Input/SearchInput.styles.js +92 -0
  94. package/dist/components/Input/Select.js +151 -0
  95. package/dist/components/Input/Select.styles.js +148 -0
  96. package/dist/components/Input/TableFilterDropdown.js +247 -0
  97. package/dist/components/Input/Textarea.js +51 -0
  98. package/dist/components/Input/Textarea.styles.js +62 -0
  99. package/dist/components/InvestCalculator/InvestCalculator.js +283 -0
  100. package/dist/components/InvestCalculator/InvestCalculator.styles.js +94 -0
  101. package/dist/components/InvestmentStat/InvestmentStat.js +24 -0
  102. package/dist/components/InvestmentStat/InvestmentStat.styles.js +62 -0
  103. package/dist/components/LatestUpdate/LatestUpdate.js +24 -0
  104. package/dist/components/LatestUpdate/LatestUpdate.styles.js +90 -0
  105. package/dist/components/Layout/Layout.js +69 -0
  106. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +32 -0
  107. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +208 -0
  108. package/dist/components/LearnMorePage/LearnMore.js +190 -0
  109. package/dist/components/LearnMorePage/LearnMore.propTypes.js +20 -0
  110. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +56 -0
  111. package/dist/components/LearnMorePage/LearnMore.styles.js +276 -0
  112. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +120 -0
  113. package/dist/components/LearnMorePage/LearnMoreItem.js +57 -0
  114. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +234 -0
  115. package/dist/components/LearnMoreSection/LearnMore.js +138 -0
  116. package/dist/components/LearnMoreSection/LearnMore.styles.js +147 -0
  117. package/dist/components/LearnMoreSection/LearnMoreItem.js +33 -0
  118. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +60 -0
  119. package/dist/components/LoginModal/LoginModal.js +142 -0
  120. package/dist/components/MainMenu/DynamicMainMenu.js +38 -0
  121. package/dist/components/MainMenu/MainMenu.js +210 -0
  122. package/dist/components/MainMenu/MainMenu.styles.js +362 -0
  123. package/dist/components/MenuNav/MenuNav.styles.js +66 -0
  124. package/dist/components/Modal/Modal.js +119 -0
  125. package/dist/components/Modal/Modal.styles.js +450 -0
  126. package/dist/components/Modal/NewVentureModal/NewVentureModal.js +262 -0
  127. package/dist/components/Modal/PaymentModal.js +149 -0
  128. package/dist/components/Modal/SideModal.js +89 -0
  129. package/dist/components/Modal/SideModal.styles.js +55 -0
  130. package/dist/components/Modal/SuccessModal/SuccessModal.js +170 -0
  131. package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +53 -0
  132. package/dist/components/MultiProgressBar/MultiProgressBar.js +30 -0
  133. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +105 -0
  134. package/dist/components/Newsletter/Newsletter.js +122 -0
  135. package/dist/components/Newsletter/Newsletter.styles.js +186 -0
  136. package/dist/components/NotificationCounter/NotificationCounter.styles.js +38 -0
  137. package/dist/components/Number/Number.js +50 -0
  138. package/dist/components/Number/Number.styles.js +23 -0
  139. package/dist/components/PageTransition/PageTransition.js +51 -0
  140. package/dist/components/Pagination/Pagination.js +58 -0
  141. package/dist/components/Pagination/Pagination.styles.js +59 -0
  142. package/dist/components/Pagination/PaginationControls.js +113 -0
  143. package/dist/components/Pagination/usePagination.js +40 -0
  144. package/dist/components/Payment/PaymentDetailsCard.js +224 -0
  145. package/dist/components/Payment/PaymentDisplay.js +199 -0
  146. package/dist/components/Payment/TimerComponent.js +92 -0
  147. package/dist/components/Process/Process.styles.js +84 -0
  148. package/dist/components/ProfileBadge/ProfileBadge.js +35 -0
  149. package/dist/components/ProfileBadge/ProfileBadge.styles.js +53 -0
  150. package/dist/components/ProfileBox/ProfileBox.js +27 -0
  151. package/dist/components/ProfileBox/ProfileBox.styles.js +67 -0
  152. package/dist/components/ProfileStat/ProfileStat.js +29 -0
  153. package/dist/components/ProfileStat/ProfileStat.styles.js +90 -0
  154. package/dist/components/QRCode/QRCode.js +51 -0
  155. package/dist/components/Radio/Radio.js +51 -0
  156. package/dist/components/Radio/Radio.styles.js +100 -0
  157. package/dist/components/RefreshButton/RefreshButton.js +21 -0
  158. package/dist/components/RefreshButton/RefreshButton.styles.js +64 -0
  159. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +65 -0
  160. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +20 -0
  161. package/dist/components/RegisterModal/RegisterModal.js +248 -0
  162. package/dist/components/RequestDataBox/RequestDataBox.js +21 -0
  163. package/dist/components/RequestDataBox/RequestDataBox.styles.js +43 -0
  164. package/dist/components/ResetConfirmModal/ResetConfirmModal.js +44 -0
  165. package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +41 -0
  166. package/dist/components/ResetPasswordModal/ResetPasswordModal.js +134 -0
  167. package/dist/components/SEO/SEO.js +66 -0
  168. package/dist/components/SectionTitle/SectionTitle.styles.js +26 -0
  169. package/dist/components/SideLine/SideLine.js +7 -0
  170. package/dist/components/SideLine/SideLine.styles.js +33 -0
  171. package/dist/components/Slider/Slider.js +31 -0
  172. package/dist/components/Slider/Slider.styles.js +120 -0
  173. package/dist/components/Snackbar/Snackbar.js +111 -0
  174. package/dist/components/Snackbar/Snackbar.styles.js +230 -0
  175. package/dist/components/Snackbar/SnackbarProvider.js +66 -0
  176. package/dist/components/Snackbar/useSnackbar.js +12 -0
  177. package/dist/components/SpanButton/SpanButton.styles.js +19 -0
  178. package/dist/components/StatusBadge/StatusBadge.styles.js +18 -0
  179. package/dist/components/StatusTag/StatusTag.js +105 -0
  180. package/dist/components/StatusTag/StatusTag.styles.js +88 -0
  181. package/dist/components/StepController/StepController.js +86 -0
  182. package/dist/components/StepController/StepController.styles.js +33 -0
  183. package/dist/components/StepController/StepControllerContext.js +65 -0
  184. package/dist/components/StepController/StepControllerProgress.js +37 -0
  185. package/dist/components/StepsProgress/StepIndicator.js +40 -0
  186. package/dist/components/StepsProgress/StepIndicator.styles.js +69 -0
  187. package/dist/components/StepsProgress/StepsProgress.js +67 -0
  188. package/dist/components/StepsProgress/StepsProgress.styles.js +105 -0
  189. package/dist/components/StokrLoader/StokrLoader.js +111 -0
  190. package/dist/components/StokrLoader/media.js +23 -0
  191. package/dist/components/SvgIcons/AdminBadgeSvg.js +27 -0
  192. package/dist/components/SvgIcons/CameraSvg.js +31 -0
  193. package/dist/components/SvgIcons/CapsLockSvg.js +36 -0
  194. package/dist/components/SvgIcons/DocumentBackSvg.js +20 -0
  195. package/dist/components/SvgIcons/DocumentSmallSvg.js +41 -0
  196. package/dist/components/SvgIcons/DocumentSvg.js +39 -0
  197. package/dist/components/SvgIcons/EthSvg.js +28 -0
  198. package/dist/components/SvgIcons/EurSvg.js +27 -0
  199. package/dist/components/SvgIcons/FaceScanIconSvg.js +17 -0
  200. package/dist/components/SvgIcons/FourSvg.js +7 -0
  201. package/dist/components/SvgIcons/Glassess.js +26 -0
  202. package/dist/components/SvgIcons/LogoSvg.js +17 -0
  203. package/dist/components/SvgIcons/OneSvg.js +10 -0
  204. package/dist/components/SvgIcons/PassportSvg.js +37 -0
  205. package/dist/components/SvgIcons/RefreshSvg.js +28 -0
  206. package/dist/components/SvgIcons/SocialFacebook.js +22 -0
  207. package/dist/components/SvgIcons/SocialInstagram.js +13 -0
  208. package/dist/components/SvgIcons/SocialLinkedIn.js +31 -0
  209. package/dist/components/SvgIcons/SocialMedium.js +21 -0
  210. package/dist/components/SvgIcons/SocialReddit.js +21 -0
  211. package/dist/components/SvgIcons/SocialTelegram.js +60 -0
  212. package/dist/components/SvgIcons/SocialTwitter.js +62 -0
  213. package/dist/components/SvgIcons/SocialYoutube.js +22 -0
  214. package/dist/components/SvgIcons/ThreeSvg.js +7 -0
  215. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +48 -0
  216. package/dist/components/SvgIcons/TwoSvg.js +10 -0
  217. package/dist/components/SvgIcons/UpdateDefaultSvg.js +12 -0
  218. package/dist/components/SvgIcons/UpdateHardSvg.js +10 -0
  219. package/dist/components/SvgIcons/UpdateSoftSvg.js +11 -0
  220. package/dist/components/SvgIcons/UploadSvg.js +12 -0
  221. package/dist/components/SvgIcons/VerifiedBadge.js +16 -0
  222. package/dist/components/Switch/Switch.js +63 -0
  223. package/dist/components/Switch/Switch.styles.js +126 -0
  224. package/dist/components/Tabs/Tabs.js +54 -0
  225. package/dist/components/Tabs/Tabs.styles.js +15 -0
  226. package/dist/components/TabsNav/TabNav.js +16 -0
  227. package/dist/components/TabsNav/TabsNav.js +30 -0
  228. package/dist/components/TabsNav/TabsNav.styles.js +103 -0
  229. package/dist/components/TeamOverview/TeamOverview.js +80 -0
  230. package/dist/components/TeamOverview/TeamOverview.styles.js +167 -0
  231. package/dist/components/TermsModal/TermsModal.js +145 -0
  232. package/dist/components/TermsModal/_styles.js +313 -0
  233. package/dist/components/Text/Text.styles.js +220 -0
  234. package/dist/components/TextLink/TextLink.styles.js +67 -0
  235. package/dist/components/Timeline/Timeline.js +44 -0
  236. package/dist/components/Timeline/Timeline.styles.js +147 -0
  237. package/dist/components/Timeline/TimelineStep.js +58 -0
  238. package/dist/components/ToDoList/ToDoList.js +172 -0
  239. package/dist/components/ToDoList/ToDoList.styles.js +122 -0
  240. package/dist/components/ToDoList/ToDoListTask.js +95 -0
  241. package/dist/components/ToDoList/ToDoListTask.styles.js +119 -0
  242. package/dist/components/TransactionDetails/TransactionDetails.js +27 -0
  243. package/dist/components/TransactionDetails/TransactionDetails.styles.js +38 -0
  244. package/dist/components/TransactionInfo/TransactionInfo.js +41 -0
  245. package/dist/components/TransactionInfo/TransactionInfo.styles.js +75 -0
  246. package/dist/components/VerifyEmailModal/VerifyEmailModal.js +122 -0
  247. package/dist/components/breakdown/Breakdown.js +126 -0
  248. package/dist/components/headerHo/HeaderHo.js +709 -0
  249. package/dist/components/icons/Arrow.js +38 -0
  250. package/dist/components/icons/ArrowSimple.js +34 -0
  251. package/dist/components/icons/Check.js +16 -0
  252. package/dist/components/icons/Facebook.js +10 -0
  253. package/dist/components/icons/Info.js +27 -0
  254. package/dist/components/icons/Instagram.js +10 -0
  255. package/dist/components/icons/LinkIcon.js +49 -0
  256. package/dist/components/icons/LinkedIn.js +13 -0
  257. package/dist/components/icons/Medium.js +13 -0
  258. package/dist/components/icons/Reddit.js +16 -0
  259. package/dist/components/icons/Share.js +31 -0
  260. package/dist/components/icons/Telegram.js +13 -0
  261. package/dist/components/icons/Twitter.js +10 -0
  262. package/dist/components/icons/X.js +10 -0
  263. package/dist/components/icons/Youtube.js +10 -0
  264. package/dist/components/icons/index.js +32 -0
  265. package/dist/components/landing-page/List.js +51 -0
  266. package/dist/components/landing-page/PageContent.js +65 -0
  267. package/dist/components/landing-page/PageText.js +171 -0
  268. package/dist/components/landing-page/PageTitle.js +259 -0
  269. package/dist/components/logo/Logo.js +57 -0
  270. package/dist/components/taxId/complete.js +24 -0
  271. package/dist/components/taxId/flow.js +53 -0
  272. package/dist/components/taxId/register-taxid.js +166 -0
  273. package/dist/config.js +44 -0
  274. package/dist/constants/globalVariables.js +87 -0
  275. package/dist/constants/style.js +48 -0
  276. package/dist/context/Auth.js +396 -0
  277. package/dist/context/AuthContext.js +781 -0
  278. package/dist/context/Checkbox/CheckboxContext.js +151 -0
  279. package/dist/firebase-config.js +73 -0
  280. package/dist/hooks/useNewVentureForm.js +262 -0
  281. package/dist/hooks/useTimer.js +89 -0
  282. package/dist/index.js +628 -25463
  283. package/dist/model/axios.js +10 -0
  284. package/dist/model/axiosPublic.js +9 -0
  285. package/dist/services/TimerService.js +80 -0
  286. package/dist/static/animations/checked.lottie.js +4 -0
  287. package/dist/static/animations/progress.lottie.js +4 -0
  288. package/dist/static/fonts/Ionicons/Ionicons.ttf.js +4 -0
  289. package/dist/static/fonts/Ionicons/Ionicons.woff.js +4 -0
  290. package/dist/static/fonts/Ionicons/Ionicons.woff2.js +4 -0
  291. package/dist/static/fonts/Ionicons/ionicons.min.css.js +4 -0
  292. package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf.js +4 -0
  293. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff.js +4 -0
  294. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2.js +4 -0
  295. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js +4 -0
  296. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff.js +4 -0
  297. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js +4 -0
  298. package/dist/static/fonts/OpenSans/OpenSans-Light.ttf.js +4 -0
  299. package/dist/static/fonts/OpenSans/OpenSans-Light.woff.js +4 -0
  300. package/dist/static/fonts/OpenSans/OpenSans-Light.woff2.js +4 -0
  301. package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf.js +4 -0
  302. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff.js +4 -0
  303. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2.js +4 -0
  304. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf.js +4 -0
  305. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff.js +4 -0
  306. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2.js +4 -0
  307. package/dist/static/fonts/icomoon/icomoon.eot.js +4 -0
  308. package/dist/static/fonts/icomoon/icomoon.svg.js +4 -0
  309. package/dist/static/fonts/icomoon/icomoon.ttf.js +4 -0
  310. package/dist/static/fonts/icomoon/icomoon.woff.js +4 -0
  311. package/dist/static/images/add-folder-icon.svg.js +5 -0
  312. package/dist/static/images/address-refreshing.gif.js +4 -0
  313. package/dist/static/images/arrow-down-black.svg.js +4 -0
  314. package/dist/static/images/avatar-placeholder.png.js +4 -0
  315. package/dist/static/images/background3.png.js +4 -0
  316. package/dist/static/images/bitcoin-logo.svg.js +4 -0
  317. package/dist/static/images/bmn2-logo.svg.js +4 -0
  318. package/dist/static/images/check-icon.svg.js +5 -0
  319. package/dist/static/images/checkmark-circle-icon.svg.js +5 -0
  320. package/dist/static/images/close-circle-icon.svg.js +5 -0
  321. package/dist/static/images/copy_icon.svg.js +5 -0
  322. package/dist/static/images/cross-icon.svg.js +5 -0
  323. package/dist/static/images/early-adopter.png.js +4 -0
  324. package/dist/static/images/eth_logo.svg.js +4 -0
  325. package/dist/static/images/filter-icon.svg.js +5 -0
  326. package/dist/static/images/google_auth.png.js +4 -0
  327. package/dist/static/images/graduation.png.js +4 -0
  328. package/dist/static/images/mangopay.svg.js +4 -0
  329. package/dist/static/images/numbers/number_eight.svg.js +5 -0
  330. package/dist/static/images/numbers/number_five.svg.js +5 -0
  331. package/dist/static/images/numbers/number_four.svg.js +5 -0
  332. package/dist/static/images/numbers/number_nine.svg.js +5 -0
  333. package/dist/static/images/numbers/number_one.svg.js +5 -0
  334. package/dist/static/images/numbers/number_seven.svg.js +5 -0
  335. package/dist/static/images/numbers/number_six.svg.js +5 -0
  336. package/dist/static/images/numbers/number_three.svg.js +5 -0
  337. package/dist/static/images/numbers/number_two.svg.js +5 -0
  338. package/dist/static/images/numbers/number_zero.svg.js +5 -0
  339. package/dist/static/images/process-waiting.gif.js +4 -0
  340. package/dist/static/images/search-icon.svg.js +5 -0
  341. package/dist/static/images/social/Facebook_Logo.png.js +4 -0
  342. package/dist/static/images/social/LI-In-Bug.png.js +4 -0
  343. package/dist/static/images/social/Telegram-Logo.png.js +4 -0
  344. package/dist/static/images/social/X-logo-black.png.js +4 -0
  345. package/dist/static/images/social/youtube_social_circle_red.png.js +4 -0
  346. package/dist/static/images/transfer-icon.svg.js +5 -0
  347. package/dist/static/images/usdc-logo.svg.js +4 -0
  348. package/dist/static/images/usdq-logo.png.js +4 -0
  349. package/dist/static/images/warning-filled.svg.js +5 -0
  350. package/dist/styles/colors.js +56 -0
  351. package/dist/styles/fonts.js +100 -0
  352. package/dist/styles/global.js +74 -0
  353. package/dist/styles/grid.js +11 -0
  354. package/dist/styles/ioniconsStyles.js +31 -0
  355. package/dist/styles/reactTippy.js +40 -0
  356. package/dist/styles/rwd.js +56 -0
  357. package/dist/styles/semanticUi.js +84 -0
  358. package/dist/styles/spacing.js +8 -0
  359. package/dist/styles/theme.js +34 -0
  360. package/dist/utils/check-sale-time-left.js +85 -0
  361. package/dist/utils/check-todo-status.js +11 -0
  362. package/dist/utils/checklistGenerator.js +195 -0
  363. package/dist/utils/copyToClipboard.js +92 -0
  364. package/dist/utils/customHooks.js +126 -0
  365. package/dist/utils/delete-redirect-cookie-and-navigate.js +12 -0
  366. package/dist/utils/fix-decimals.js +5 -0
  367. package/dist/utils/formatCurrencyValue.js +95 -0
  368. package/dist/utils/get-cookie-domain.js +10 -0
  369. package/dist/utils/get-short-address.js +4 -0
  370. package/dist/utils/isUSInvestor.js +6 -0
  371. package/dist/utils/km_ify.js +33 -0
  372. package/dist/utils/moment.js +26 -0
  373. package/dist/utils/redirect-url.js +5 -0
  374. package/dist/utils/saveAs.js +17 -0
  375. package/dist/utils/scrollUtils.js +63 -0
  376. package/dist/utils/set-redirect-cookie.js +16 -0
  377. package/dist/utils/transition.js +101 -0
  378. package/dist/utils/withRouter.js +24 -0
  379. package/package.json +146 -146
@@ -0,0 +1,276 @@
1
+ import styled, { css } from "styled-components";
2
+ import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
3
+ import { TabsWrapper, StyledTabs } from "../TabsNav/TabsNav.styles.js";
4
+ import rwd from "../../styles/rwd.js";
5
+ import { Column } from "../Grid/Grid.styles.js";
6
+ import { StyledBackButton, BackButtonIcon } from "../BackButton/BackButton.styles.js";
7
+ import theme from "../../styles/theme.js";
8
+ import spacing from "../../styles/spacing.js";
9
+ const Container = styled.div`
10
+ width: 100%;
11
+ overflow: hidden;
12
+
13
+ ${TabsWrapper} {
14
+ padding: 0 !important;
15
+ }
16
+
17
+ ${StyledTabs} {
18
+ border-bottom: none;
19
+ }
20
+ `;
21
+ const TabArrow = styled.i.withConfig({
22
+ shouldForwardProp: (props) => !["isActive"].includes(props)
23
+ }).attrs({
24
+ className: "ion ion-ios-arrow-forward"
25
+ })`
26
+ color: ${() => theme.cWarning};
27
+ margin-right: 6px;
28
+ transition: 0.3s transform;
29
+
30
+ ${(props) => props.isActive === true && `
31
+ transform: rotate(90deg);
32
+ `}
33
+ `;
34
+ const TitleContainer = styled(ComponentWrapper)`
35
+ display: flex;
36
+ flex-direction: column;
37
+
38
+ ${rwd.Medium`
39
+ padding: 64px;
40
+ `}
41
+
42
+ ${rwd.Large`
43
+ padding-right: 96px;
44
+ `}
45
+
46
+ ${StyledBackButton} {
47
+ color: ${() => theme.cPrimary};
48
+ text-transform: uppercase;
49
+ }
50
+
51
+ ${BackButtonIcon} {
52
+ color: ${() => theme.cPrimary};
53
+ }
54
+ `;
55
+ styled.div`
56
+ padding: 42px 36px;
57
+ display: flex;
58
+ justify-content: space-between;
59
+ font-weight: 700;
60
+ text-transform: uppercase;
61
+ position: relative;
62
+ font-size: 11px;
63
+ line-height: 20px;
64
+ letter-spacing: 0.6px;
65
+ `;
66
+ styled.i.withConfig({
67
+ shouldForwardProp: (props) => !["isOpened"].includes(props)
68
+ }).attrs({
69
+ className: "ion ion-ios-arrow-right"
70
+ })`
71
+ &&& {
72
+ position: absolute;
73
+ top: 50%;
74
+ right: 32px;
75
+ transition: 0.3s transform;
76
+ transform: rotate(0);
77
+ text-align: center;
78
+ font-size: 16px;
79
+ line-height: 16px;
80
+ height: 16px;
81
+ margin-top: -8px;
82
+
83
+ ${(props) => props.isOpened && `
84
+ transform: rotate(-90deg);
85
+ `}
86
+ }
87
+ `;
88
+ const SubTabNav = styled(ComponentWrapper).withConfig({
89
+ shouldForwardProp: (props) => !["isActive"].includes(props)
90
+ })`
91
+ display: flex;
92
+ align-items: center;
93
+ font-size: 10px;
94
+ cursor: pointer;
95
+ transition: 0.3s background;
96
+ background: ${() => theme.cWhite};
97
+
98
+ &::before {
99
+ content: '';
100
+ display: none;
101
+ position: absolute;
102
+ top: 52px;
103
+ bottom: -32px;
104
+ right: 42px;
105
+ z-index: 1;
106
+ width: 0;
107
+ border-left: 1px dotted ${() => theme.cLightGrey};
108
+ transform: translateX(50%);
109
+
110
+ ${rwd.Medium`
111
+ display: block;
112
+ `}
113
+
114
+ ${rwd.Large`
115
+ right: 74px;
116
+ `}
117
+ }
118
+
119
+ &:last-child::before {
120
+ display: none;
121
+ }
122
+
123
+ ${(props) => props.isActive && css`
124
+ font-weight: 700;
125
+ background: ${theme.cGrey};
126
+ `}
127
+ `;
128
+ const TabNav = styled(ComponentWrapper).withConfig({
129
+ shouldForwardProp: (props) => !["isActive", "complete"].includes(props)
130
+ })`
131
+ display: flex;
132
+ align-items: center;
133
+ font-size: 12px;
134
+ font-weight: 700;
135
+ letter-spacing: 0.4px;
136
+ text-transform: uppercase;
137
+ cursor: pointer;
138
+
139
+ &:last-child {
140
+ border-bottom: 1px solid ${() => theme.cLightGrey};
141
+ }
142
+
143
+ ${(props) => props.isActive && css`
144
+ &::before {
145
+ content: '';
146
+ width: 8px;
147
+ position: absolute;
148
+ left: 0;
149
+ top: 0;
150
+ bottom: 0;
151
+ background: ${theme.cWarning};
152
+ }
153
+ `}
154
+
155
+ + div ${SubTabNav}::before {
156
+ ${(props) => props.complete && css`
157
+ border-color: ${theme.cLighterGreen};
158
+ border-left-style: solid;
159
+ `}
160
+ }
161
+ `;
162
+ const SidebarColumn = styled(Column).withConfig({
163
+ shouldForwardProp: (props) => !["isExpanded"].includes(props)
164
+ })`
165
+ max-width: 300px;
166
+ position: fixed;
167
+ background: ${() => theme.cWhite};
168
+ z-index: 10000;
169
+ border-right: 1px solid ${() => theme.cLightGrey};
170
+ top: 0;
171
+ padding-top: 48px;
172
+ transition: 0.3s transform;
173
+ transform: translateX(-100%);
174
+ ${(props) => props.isExpanded && "transform: translateX(0);"}
175
+
176
+ ${rwd.Medium`
177
+ transform: translateX(0);
178
+ max-width: 300px;
179
+ padding-top: ${() => spacing.headerHeight}px;
180
+ `}
181
+
182
+ ${rwd.Large`
183
+ max-width: 400px;
184
+ `}
185
+ `;
186
+ const ContentColumn = styled(Column)`
187
+ ${rwd.Medium`
188
+ margin-left: 300px;
189
+ `}
190
+
191
+ ${rwd.Large`
192
+ margin-left: 400px;
193
+ `}
194
+ `;
195
+ const SidebarTitle = styled.h3`
196
+ font-family: 'Open Sans';
197
+ font-size: 20px;
198
+ line-height: 24px;
199
+ font-weight: 700;
200
+ margin-bottom: 20px;
201
+ `;
202
+ const SidebarHeading = styled.div`
203
+ font-size: 12px;
204
+ letter-spacing: 0.4px;
205
+ font-weight: 600;
206
+ margin-bottom: 16px;
207
+ `;
208
+ const MobileMenuToggler = styled.div.withConfig({
209
+ shouldForwardProp: (props) => !["isActive"].includes(props)
210
+ })`
211
+ display: block;
212
+ width: 48px;
213
+ height: 48px;
214
+ position: fixed;
215
+ top: 0;
216
+ left: 0;
217
+ background: ${() => theme.cWhite};
218
+ z-index: 10001;
219
+
220
+ ${rwd.Medium`
221
+ display: none;
222
+ `}
223
+
224
+ span {
225
+ display: block;
226
+ width: 16px;
227
+ height: 2px;
228
+ position: absolute;
229
+ top: 50%;
230
+ left: 50%;
231
+ margin-top: -1px;
232
+ margin-left: -8px;
233
+ background-color: ${() => theme.cText};
234
+ transition:
235
+ background-color 0.4s,
236
+ transform 0.4s;
237
+
238
+ &:nth-child(1) {
239
+ transform: translateY(-6px);
240
+ }
241
+
242
+ &:nth-child(3) {
243
+ transform: translateY(6px);
244
+ }
245
+ }
246
+
247
+ ${(props) => props.isActive && `
248
+ span {
249
+ background-color: ${theme.cPrimary};
250
+
251
+ &:nth-child(1) {
252
+ transform: translateY(0) rotate(135deg);
253
+ }
254
+
255
+ &:nth-child(2) {
256
+ transform: scaleX(0);
257
+ }
258
+
259
+ &:nth-child(3) {
260
+ transform: translateY(0) rotate(-135deg);
261
+ }
262
+ }
263
+ `}
264
+ `;
265
+ export {
266
+ Container,
267
+ ContentColumn,
268
+ MobileMenuToggler,
269
+ SidebarColumn,
270
+ SidebarHeading,
271
+ SidebarTitle,
272
+ SubTabNav,
273
+ TabArrow,
274
+ TabNav,
275
+ TitleContainer
276
+ };
@@ -0,0 +1,120 @@
1
+ import avatarPlaceholder from "../../static/images/avatar-placeholder.png.js";
2
+ const LearnMoreExampleObject = {
3
+ categories: [
4
+ {
5
+ id: "category1",
6
+ title: "Category 1",
7
+ inProgress: false,
8
+ complete: false,
9
+ tooltip: "Example tooltip",
10
+ subcategories: [
11
+ {
12
+ id: "category11",
13
+ title: "Category 1.1",
14
+ inProgress: false,
15
+ complete: false,
16
+ tooltip: "Reading time: 2min"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ id: "category2",
22
+ title: "Category 2",
23
+ inProgress: true,
24
+ complete: false,
25
+ subcategories: [
26
+ {
27
+ id: "category21",
28
+ title: "Category 2.1",
29
+ inProgress: true,
30
+ complete: false,
31
+ tooltip: "Reading time: 2min"
32
+ },
33
+ {
34
+ id: "category22",
35
+ title: "Category 2.2",
36
+ inProgress: false,
37
+ complete: true
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ id: "category3",
43
+ title: "Category 3",
44
+ inProgress: false,
45
+ complete: false,
46
+ subcategories: [
47
+ {
48
+ id: "category31",
49
+ title: "Category 3.1",
50
+ inProgress: false,
51
+ complete: false,
52
+ tooltip: "Reading time: 2min"
53
+ }
54
+ ]
55
+ }
56
+ ],
57
+ items: [
58
+ {
59
+ id: "category11",
60
+ title: "Making invisible people visible again!",
61
+ excerpt: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
62
+ content: "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>",
63
+ postType: "video",
64
+ videoSrc: "",
65
+ cover: avatarPlaceholder
66
+ },
67
+ {
68
+ id: "category21",
69
+ title: "Get a 21 tast of token investing",
70
+ excerpt: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
71
+ content: "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><h4>Lorem ipsum dolor</h4><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>",
72
+ postType: "video",
73
+ videoSrc: "",
74
+ cover: avatarPlaceholder
75
+ },
76
+ {
77
+ id: "category22",
78
+ title: "Get a 22 tast of token investing",
79
+ excerpt: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
80
+ content: `
81
+ <h5>Our vision</h5>
82
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
83
+ <h5>Our vision list</h5>
84
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
85
+ <ul>
86
+ <li>List item 1</li>
87
+ <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et</li>
88
+ </ul>
89
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
90
+ <img src="${avatarPlaceholder}" alt="" />
91
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
92
+ `,
93
+ postType: "text",
94
+ cover: avatarPlaceholder
95
+ },
96
+ {
97
+ id: "category31",
98
+ title: "Get a 3 tast of token investing",
99
+ excerpt: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
100
+ content: `
101
+ <h5>Our vision</h5>
102
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
103
+ <h5>Our vision list</h5>
104
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
105
+ <ul>
106
+ <li>List item 1</li>
107
+ <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et</li>
108
+ </ul>
109
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
110
+ <img src="${avatarPlaceholder}" alt="" />
111
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
112
+ `,
113
+ postType: "text",
114
+ cover: avatarPlaceholder
115
+ }
116
+ ]
117
+ };
118
+ export {
119
+ LearnMoreExampleObject
120
+ };
@@ -0,0 +1,57 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Fragment } from "react";
3
+ import PropTypes from "prop-types";
4
+ import DOMPurify from "dompurify";
5
+ import stdin_default$1 from "../Background/Background.js";
6
+ import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
7
+ import { Button } from "../Button/Button.styles.js";
8
+ import { learnMoreCategoryPropTypes, learnMorePostPropTypes } from "./LearnMore.propTypes.js";
9
+ import { ArticleWrapper, VideoCover, VideoPlay, VideoPlayIcon, VideoTitleRow, TitleText, CompleteWrapper, ContentText } from "./LearnMoreItem.styles.js";
10
+ import { CompleteMarkContainer, CompleteMark } from "./LearnMore.shared.styles.js";
11
+ const LearnMoreItem = ({ postItem, activeTabObject, onMarkComplete }) => /* @__PURE__ */ jsxs(ArticleWrapper, { postType: postItem.postType, children: [
12
+ postItem.postType === "video" && /* @__PURE__ */ jsxs(Fragment, { children: [
13
+ /* @__PURE__ */ jsx(VideoCover, { children: /* @__PURE__ */ jsx(stdin_default$1, { src: postItem.cover, children: /* @__PURE__ */ jsx(VideoPlay, { children: /* @__PURE__ */ jsx(VideoPlayIcon, {}) }) }) }),
14
+ /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingRight: true, noPaddingBottom: true, children: /* @__PURE__ */ jsxs(VideoTitleRow, { children: [
15
+ /* @__PURE__ */ jsx(TitleText, { postType: postItem.postType, children: /* @__PURE__ */ jsx("h3", { children: postItem.title }) }),
16
+ /* @__PURE__ */ jsxs(CompleteWrapper, { children: [
17
+ /* @__PURE__ */ jsx(
18
+ Button,
19
+ {
20
+ primary: !activeTabObject.complete,
21
+ secondary: activeTabObject.complete,
22
+ onClick: () => onMarkComplete(activeTabObject.id),
23
+ children: activeTabObject.complete ? "Watched" : "Mark as watched"
24
+ }
25
+ ),
26
+ /* @__PURE__ */ jsx(CompleteMarkContainer, { large: true, inProgress: activeTabObject.inProgress, complete: activeTabObject.complete, children: /* @__PURE__ */ jsx(CompleteMark, {}) })
27
+ ] })
28
+ ] }) }),
29
+ /* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsx(ContentText, { dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(postItem.content ?? "") } }) })
30
+ ] }),
31
+ postItem.postType === "text" && /* @__PURE__ */ jsxs(Fragment, { children: [
32
+ /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingRight: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(TitleText, { postType: postItem.postType, children: /* @__PURE__ */ jsx("h3", { children: postItem.title }) }) }),
33
+ /* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsx(ContentText, { dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(postItem.content ?? "") } }) }),
34
+ /* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsxs(CompleteWrapper, { center: true, children: [
35
+ /* @__PURE__ */ jsx(
36
+ Button,
37
+ {
38
+ primary: !activeTabObject.complete,
39
+ secondary: activeTabObject.complete,
40
+ onClick: () => onMarkComplete(activeTabObject.id),
41
+ children: activeTabObject.complete ? "Already Read" : "Mark as read"
42
+ }
43
+ ),
44
+ /* @__PURE__ */ jsx(CompleteMarkContainer, { large: true, inProgress: activeTabObject.inProgress, complete: activeTabObject.complete, children: /* @__PURE__ */ jsx(CompleteMark, {}) })
45
+ ] }) })
46
+ ] })
47
+ ] });
48
+ LearnMoreItem.propTypes = {
49
+ postItem: PropTypes.shape(learnMorePostPropTypes).isRequired,
50
+ activeTabObject: PropTypes.shape(learnMoreCategoryPropTypes).isRequired,
51
+ onMarkComplete: PropTypes.func.isRequired
52
+ };
53
+ var stdin_default = LearnMoreItem;
54
+ export {
55
+ LearnMoreItem,
56
+ stdin_default as default
57
+ };
@@ -0,0 +1,234 @@
1
+ import styled, { css } from "styled-components";
2
+ import { Text } from "../Text/Text.styles.js";
3
+ import rwd from "../../styles/rwd.js";
4
+ import { Button } from "../Button/Button.styles.js";
5
+ import { Container, Content } from "../Background/Background.styles.js";
6
+ import { CompleteMarkContainer } from "./LearnMore.shared.styles.js";
7
+ import theme from "../../styles/theme.js";
8
+ const ArticleWrapper = styled.div.withConfig({
9
+ shouldForwardProp: (props) => !["postType"].includes(props)
10
+ })`
11
+ padding: 32px;
12
+ position: relative;
13
+
14
+ ${rwd.Medium`
15
+ padding: 64px;
16
+ `}
17
+
18
+ ${rwd.XLarge`
19
+ padding: 128px;
20
+ `}
21
+
22
+ ${(props) => props.postType === "text" && css`
23
+ padding-right: 64px;
24
+
25
+ ${rwd.Large`
26
+ padding-right: 128px;
27
+ `}
28
+
29
+ ${rwd.XLarge`
30
+ padding-right: 224px;
31
+ `}
32
+ `}
33
+
34
+ &::before {
35
+ content: '';
36
+ position: absolute;
37
+ width: 1px;
38
+ background: ${() => theme.cGrey};
39
+
40
+ ${(props) => props.postType === "video" && css`
41
+ top: 32px;
42
+ left: 48px;
43
+ bottom: 0;
44
+
45
+ ${rwd.Medium`
46
+ top: 64px;
47
+ left: 64px;
48
+ `}
49
+
50
+ ${rwd.Large`
51
+ left: 96px;
52
+ `}
53
+
54
+ ${rwd.XLarge`
55
+ top: 128px;
56
+ left: 160px;
57
+ `}
58
+ `}
59
+
60
+ ${(props) => props.postType === "text" && css`
61
+ top: 0;
62
+ right: 48px;
63
+ bottom: 0;
64
+
65
+ ${rwd.Medium`
66
+ right: 32px;
67
+ `}
68
+
69
+ ${rwd.Large`
70
+ right: 96px;
71
+ `}
72
+
73
+ ${rwd.XLarge`
74
+ right: 192px;
75
+ `}
76
+ `}
77
+ }
78
+ `;
79
+ const VideoTitleRow = styled.div`
80
+ display: flex;
81
+ flex-direction: column;
82
+
83
+ ${rwd.XLarge`
84
+ align-items: center;
85
+ flex-direction: row;
86
+ `}
87
+ `;
88
+ const VideoCover = styled.div`
89
+ width: 100%;
90
+
91
+ ${Container} {
92
+ width: 100%;
93
+ padding-top: 56.25%;
94
+ }
95
+
96
+ ${Content} {
97
+ position: absolute;
98
+ top: 50%;
99
+ left: 50%;
100
+ width: auto;
101
+ transform: translateY(-50%) translateX(-50%);
102
+ }
103
+ `;
104
+ const VideoPlay = styled.div`
105
+ width: 48px;
106
+ height: 48px;
107
+ color: ${() => theme.cWhite};
108
+ background: ${() => theme.cWarning};
109
+ border-radius: 50%;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ transition: 0.3s background;
114
+
115
+ &:hover {
116
+ color: ${() => theme.cWhite};
117
+ background: ${() => theme.cWarningDark};
118
+ }
119
+ `;
120
+ const VideoPlayIcon = styled.i.attrs({
121
+ className: "ion ion-md-play"
122
+ })`
123
+ font-size: 16px;
124
+ `;
125
+ const TitleText = styled(Text).withConfig({
126
+ shouldForwardProp: (props) => !["postType"].includes(props)
127
+ })`
128
+ position: relative;
129
+
130
+ &::before {
131
+ content: '';
132
+ position: absolute;
133
+ width: 6px;
134
+ background: ${() => theme.cPrimary};
135
+ top: 0;
136
+ bottom: 0;
137
+
138
+ ${(props) => props.postType === "video" && css`
139
+ transform: translateX(1px);
140
+ left: -16px;
141
+
142
+ ${rwd.Medium`
143
+ left: -32px;
144
+ `}
145
+ `}
146
+
147
+ ${(props) => props.postType === "text" && css`
148
+ transform: translateX(-1px);
149
+ right: -16px;
150
+
151
+ ${rwd.Medium`
152
+ right: -32px;
153
+ `}
154
+ `}
155
+ }
156
+ `;
157
+ const CompleteWrapper = styled.div.withConfig({
158
+ shouldForwardProp: (props) => !["center"].includes(props)
159
+ })`
160
+ display: flex;
161
+ flex-shrink: 0;
162
+ margin-left: auto;
163
+ margin-top: 24px;
164
+
165
+ ${(props) => props.center && `
166
+ justify-content: center;
167
+ `}
168
+
169
+ ${rwd.XLarge`
170
+ margin-top: 0;
171
+ `}
172
+
173
+ ${CompleteMarkContainer} {
174
+ flex-shrink: 0;
175
+ margin-left: 16px;
176
+ }
177
+
178
+ ${Button} {
179
+ flex-shrink: 0;
180
+ }
181
+ `;
182
+ const ContentText = styled(Text)`
183
+ display: flex;
184
+ flex-direction: column;
185
+
186
+ h5 {
187
+ font-size: 16px;
188
+ letter-spacing: 0.4px;
189
+ font-weight: 600;
190
+ margin-bottom: 16px;
191
+ }
192
+
193
+ img {
194
+ max-width: 100%;
195
+ margin: 32px auto;
196
+ }
197
+
198
+ ul {
199
+ list-style: none;
200
+ padding: 0;
201
+ margin: 0;
202
+ }
203
+
204
+ li {
205
+ font-family: 'Open Sans';
206
+ font-weight: 300;
207
+ font-size: 16px;
208
+ line-height: 1.5em;
209
+ letter-spacing: 0.6px;
210
+ padding-left: 12px;
211
+ position: relative;
212
+
213
+ ${rwd.XLarge`
214
+ font-size: 20px;
215
+ `}
216
+
217
+ &::before {
218
+ position: absolute;
219
+ left: 0;
220
+ content: '•';
221
+ color: ${() => theme.cWarning};
222
+ }
223
+ }
224
+ `;
225
+ export {
226
+ ArticleWrapper,
227
+ CompleteWrapper,
228
+ ContentText,
229
+ TitleText,
230
+ VideoCover,
231
+ VideoPlay,
232
+ VideoPlayIcon,
233
+ VideoTitleRow
234
+ };