@stokr/components-library 2.3.58-beta.6 → 2.3.58-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. package/dist/api/StokrWeb3.js +3 -3
  2. package/dist/api/auth.js +16 -53
  3. package/dist/api/fetchData.js +26 -66
  4. package/dist/api/fetchDataPublic.js +20 -57
  5. package/dist/components/2FA/Connect2FA.js +10 -11
  6. package/dist/components/2FA/EnterCode.js +32 -30
  7. package/dist/components/2FA/EnterCode.stories.js +4 -8
  8. package/dist/components/2FA/InstallAuthApp.js +8 -9
  9. package/dist/components/2FA/ResetCode.js +11 -12
  10. package/dist/components/2FA/Sucess2FA.js +12 -16
  11. package/dist/components/2FA/disable-2fa-flow.js +53 -104
  12. package/dist/components/2FA/disable-2fa-flow.stories.js +4 -8
  13. package/dist/components/2FA/enable-2fa-flow.js +73 -144
  14. package/dist/components/2FA/enable-2fa-flow.stories.js +4 -8
  15. package/dist/components/2FA/index.js +9 -9
  16. package/dist/components/2FA/login-with-otp-flow.js +126 -206
  17. package/dist/components/2FA/login-with-otp-flow.stories.js +4 -8
  18. package/dist/components/2FA/main-flow.js +70 -144
  19. package/dist/components/2FA/main-flow.stories.js +4 -8
  20. package/dist/components/AccountBalance/AccountBalance.js +14 -13
  21. package/dist/components/AccountBalance/AccountBalance.stories.js +6 -12
  22. package/dist/components/AccountBalance/AccountBalance.styles.js +9 -17
  23. package/dist/components/AdminDashboard/Table/ReactTable.js +77 -84
  24. package/dist/components/AdminDashboard/Table/ReactTable.stories.js +87 -63
  25. package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +24 -30
  26. package/dist/components/AdminDashboard/Table/Table.js +88 -123
  27. package/dist/components/AdminDashboard/Table/Table.styles.js +28 -90
  28. package/dist/components/AgreementItem/AgreementItem.js +10 -11
  29. package/dist/components/AgreementItem/AgreementItem.stories.js +5 -10
  30. package/dist/components/AgreementItem/AgreementItem.styles.js +8 -12
  31. package/dist/components/AnalyticGraphs/Analytic.js +504 -743
  32. package/dist/components/AnalyticGraphs/Analytic.styles.js +14 -26
  33. package/dist/components/BackButton/BackButton.js +9 -10
  34. package/dist/components/BackButton/BackButton.stories.js +4 -8
  35. package/dist/components/BackButton/BackButton.styles.js +13 -51
  36. package/dist/components/Background/Background.js +12 -11
  37. package/dist/components/Background/Background.stories.js +8 -14
  38. package/dist/components/Background/Background.styles.js +17 -33
  39. package/dist/components/BarChart/BarChart.js +138 -181
  40. package/dist/components/BarChart/BarChart.stories.js +5 -10
  41. package/dist/components/BarChart/BarChart.styles.js +8 -15
  42. package/dist/components/BarChartLegend/BarChartLegend.js +40 -67
  43. package/dist/components/BarChartLegend/BarChartLegend.styles.js +5 -10
  44. package/dist/components/BasicTable/BasicTable.js +12 -13
  45. package/dist/components/BasicTable/BasicTable.stories.js +5 -10
  46. package/dist/components/BasicTable/BasicTable.styles.js +11 -27
  47. package/dist/components/BlogPost/BlogPost.js +34 -53
  48. package/dist/components/BlogPost/BlogPost.stories.js +33 -46
  49. package/dist/components/BlogPost/BlogPost.styles.js +67 -59
  50. package/dist/components/Button/Button-stoDetails.js +150 -129
  51. package/dist/components/Button/Button.stories.js +27 -44
  52. package/dist/components/Button/Button.styles.js +24 -62
  53. package/dist/components/Button/GlareButton.js +61 -89
  54. package/dist/components/Button/GlareButton.stories.js +19 -29
  55. package/dist/components/ButtonContainer/ButtonContainer.styles.js +5 -10
  56. package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +4 -8
  57. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +9 -10
  58. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +8 -17
  59. package/dist/components/Card/Card.styles.js +14 -41
  60. package/dist/components/ChartBox/ChartBox.js +5 -8
  61. package/dist/components/ChartBox/ChartBox.stories.js +3 -6
  62. package/dist/components/ChartBox/ChartBox.styles.js +8 -14
  63. package/dist/components/ChartBox/ChartBoxDistribution.js +5 -8
  64. package/dist/components/ChartBox/ChartBoxDistribution.stories.js +3 -6
  65. package/dist/components/ChartLegend/ChartLegend.js +30 -46
  66. package/dist/components/ChartLegend/ChartLegend.stories.js +22 -28
  67. package/dist/components/ChartLegend/ChartLegend.styles.js +16 -41
  68. package/dist/components/Checkbox/Checkbox.js +32 -32
  69. package/dist/components/Checkbox/Checkbox.stories.js +5 -10
  70. package/dist/components/Checkbox/Checkbox.styles.js +10 -23
  71. package/dist/components/Checklist/ChecklistCard.js +33 -35
  72. package/dist/components/Checklist/ChecklistCard.stories.js +77 -100
  73. package/dist/components/Checklist/ChecklistCard.styles.js +12 -15
  74. package/dist/components/Chips/Chip.js +14 -13
  75. package/dist/components/Chips/Chip.stories.js +10 -19
  76. package/dist/components/Chips/Chip.styles.js +14 -14
  77. package/dist/components/Chips/ChipWrapper.js +23 -41
  78. package/dist/components/Chips/ChipsWrapper.stories.js +9 -17
  79. package/dist/components/ComponentScroll/ComponentScroll.js +25 -34
  80. package/dist/components/ComponentScroll/ComponentScroll.stories.js +16 -23
  81. package/dist/components/ComponentScroll/ComponentScroll.styles.js +22 -47
  82. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +7 -61
  83. package/dist/components/CryptoAddress/ComponentWrap.js +10 -11
  84. package/dist/components/CryptoAddress/CryptoAddress.js +51 -68
  85. package/dist/components/CryptoAddress/CryptoAddress.stories.js +7 -13
  86. package/dist/components/CryptoAddress/CryptoAddress.styles.js +55 -124
  87. package/dist/components/CryptoAddress/RadioWrap.js +9 -10
  88. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +24 -25
  89. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +5 -10
  90. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +12 -42
  91. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +10 -9
  92. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +16 -27
  93. package/dist/components/DonutChart/DonutChart.js +101 -130
  94. package/dist/components/DonutChart/DonutChart.stories.js +4 -8
  95. package/dist/components/DonutChart/DonutChart.styles.js +15 -27
  96. package/dist/components/DoubleButton/DoubleButton.styles.js +8 -8
  97. package/dist/components/ErrorMessage/ErrorMessage.styles.js +3 -5
  98. package/dist/components/FAQ/FAQ.js +29 -45
  99. package/dist/components/FAQ/FAQ.stories.js +4 -9
  100. package/dist/components/FAQ/FAQ.styles.js +23 -39
  101. package/dist/components/Footer/Footer.js +9 -10
  102. package/dist/components/Footer/Footer.stories.js +6 -12
  103. package/dist/components/Footer/Footer.styles.js +22 -46
  104. package/dist/components/Footer/FooterLayout.js +16 -20
  105. package/dist/components/Footer/FooterLayout.stories.js +4 -8
  106. package/dist/components/Footer/FooterMenu.js +61 -83
  107. package/dist/components/Footer/FooterMenu.stories.js +4 -8
  108. package/dist/components/Footer/FooterMenu.styles.js +16 -39
  109. package/dist/components/Footer/index.js +4 -4
  110. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +92 -114
  111. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +4 -8
  112. package/dist/components/Form/Form.js +15 -14
  113. package/dist/components/Form/Form.stories.js +4 -8
  114. package/dist/components/Form/Form.styles.js +16 -36
  115. package/dist/components/FullscreenCard/FullscreenCard.styles.js +7 -12
  116. package/dist/components/Grid/Grid.styles.js +17 -68
  117. package/dist/components/Header/Header.js +98 -163
  118. package/dist/components/Header/Header.stories.js +17 -28
  119. package/dist/components/Header/Header.styles.js +61 -124
  120. package/dist/components/HeroBlock/HeroVideoBlock.js +20 -25
  121. package/dist/components/Icon/Icon.style.js +10 -22
  122. package/dist/components/Icon/Icon2.js +11 -13
  123. package/dist/components/InfoIcon/InfoIcon.js +18 -17
  124. package/dist/components/InfoIcon/InfoIcon.stories.js +5 -10
  125. package/dist/components/InfoIcon/InfoIcon.styles.js +5 -21
  126. package/dist/components/InfoPanel/InfoPanel.js +26 -48
  127. package/dist/components/Input/DatePickerInput.js +21 -33
  128. package/dist/components/Input/DatePickerInput.stories.js +5 -10
  129. package/dist/components/Input/DatePickerInput.styles.js +5 -19
  130. package/dist/components/Input/Input.js +43 -51
  131. package/dist/components/Input/Input.stories.js +9 -16
  132. package/dist/components/Input/Input.styles.js +8 -43
  133. package/dist/components/Input/InputPassword.js +30 -50
  134. package/dist/components/Input/InputPassword.stories.js +6 -12
  135. package/dist/components/Input/InputPassword.styles.js +30 -57
  136. package/dist/components/Input/InputUsername.js +83 -102
  137. package/dist/components/Input/InputWithButton.js +20 -19
  138. package/dist/components/Input/InputWithButton.stories.js +5 -9
  139. package/dist/components/Input/InputWithButton.styles.js +7 -19
  140. package/dist/components/Input/OtpInput.js +27 -42
  141. package/dist/components/Input/OtpInput.stories.js +5 -11
  142. package/dist/components/Input/RangeInput.js +29 -25
  143. package/dist/components/Input/RangeInput.stories.js +4 -8
  144. package/dist/components/Input/RangeInput.styles.js +15 -42
  145. package/dist/components/Input/Select.js +68 -89
  146. package/dist/components/Input/Select.stories.js +6 -12
  147. package/dist/components/Input/Select.styles.js +12 -32
  148. package/dist/components/InvestCalculator/InvestCalculator.js +245 -243
  149. package/dist/components/InvestCalculator/InvestCalculator.stories.js +18 -21
  150. package/dist/components/InvestCalculator/InvestCalculator.styles.js +14 -33
  151. package/dist/components/InvestmentStat/InvestmentStat.js +11 -10
  152. package/dist/components/InvestmentStat/InvestmentStat.stories.js +5 -10
  153. package/dist/components/InvestmentStat/InvestmentStat.styles.js +12 -24
  154. package/dist/components/KYCFlow/BasicInfo.js +419 -460
  155. package/dist/components/KYCFlow/Confirmation.js +12 -17
  156. package/dist/components/KYCFlow/DocumentFileUpload.js +214 -227
  157. package/dist/components/KYCFlow/DocumentScan.js +16 -15
  158. package/dist/components/KYCFlow/DocumentScanUpload.js +203 -210
  159. package/dist/components/KYCFlow/DocumentSelect.js +87 -117
  160. package/dist/components/KYCFlow/DocumentSuccess.js +14 -15
  161. package/dist/components/KYCFlow/DocumentUpload.js +10 -11
  162. package/dist/components/KYCFlow/DocumentVerificationType.js +98 -128
  163. package/dist/components/KYCFlow/FaceScan.js +10 -11
  164. package/dist/components/KYCFlow/FaceScanRecognition.js +14 -13
  165. package/dist/components/KYCFlow/FaceScanSuccess.js +10 -13
  166. package/dist/components/KYCFlow/Terms.js +90 -113
  167. package/dist/components/KYCFlow/_styles.js +37 -86
  168. package/dist/components/KYCFlow/index.js +14 -14
  169. package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +7 -19
  170. package/dist/components/LatestUpdate/LatestUpdate.js +12 -11
  171. package/dist/components/LatestUpdate/LatestUpdate.stories.js +5 -10
  172. package/dist/components/LatestUpdate/LatestUpdate.styles.js +15 -28
  173. package/dist/components/Layout/Layout-func-no-work.js +24 -24
  174. package/dist/components/Layout/Layout.js +47 -68
  175. package/dist/components/Layout/Layout.stories.js +5 -12
  176. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +13 -12
  177. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +5 -10
  178. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +10 -22
  179. package/dist/components/LearnMorePage/LearnMore.js +134 -174
  180. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +7 -22
  181. package/dist/components/LearnMorePage/LearnMore.stories.js +4 -8
  182. package/dist/components/LearnMorePage/LearnMore.styles.js +24 -74
  183. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +3 -5
  184. package/dist/components/LearnMorePage/LearnMoreItem.js +11 -16
  185. package/dist/components/LearnMorePage/LearnMoreItem.stories.js +4 -8
  186. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +18 -54
  187. package/dist/components/LearnMoreSection/LearnMore.js +119 -158
  188. package/dist/components/LearnMoreSection/LearnMore.stories.js +4 -8
  189. package/dist/components/LearnMoreSection/LearnMore.styles.js +15 -41
  190. package/dist/components/LearnMoreSection/LearnMoreItem.js +14 -15
  191. package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +4 -8
  192. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +9 -23
  193. package/dist/components/LoginModal/LoginModal.js +35 -41
  194. package/dist/components/LoginModal/LoginModal.stories.js +8 -12
  195. package/dist/components/MainMenu/DynamicMainMenu.js +11 -14
  196. package/dist/components/MainMenu/MainMenu.js +157 -190
  197. package/dist/components/MainMenu/MainMenu.styles.js +48 -89
  198. package/dist/components/MatomoConnect/Matomo.js +201 -463
  199. package/dist/components/MenuNav/MenuNav.styles.js +5 -9
  200. package/dist/components/Modal/Modal.js +46 -48
  201. package/dist/components/Modal/Modal.stories.js +8 -16
  202. package/dist/components/Modal/Modal.styles.js +34 -96
  203. package/dist/components/Modal/NewVentureModal/NewVentureModal.js +69 -95
  204. package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +22 -43
  205. package/dist/components/Modal/PaymentModal.js +43 -54
  206. package/dist/components/Modal/PaymentModal.stories.js +4 -8
  207. package/dist/components/MultiProgressBar/MultiProgressBar.js +19 -23
  208. package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +6 -12
  209. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +9 -22
  210. package/dist/components/Newsletter/Newsletter.js +65 -100
  211. package/dist/components/Newsletter/Newsletter.stories.js +4 -8
  212. package/dist/components/Newsletter/Newsletter.styles.js +47 -44
  213. package/dist/components/NotificationContext/NotificationContext.js +93 -125
  214. package/dist/components/NotificationCounter/NotificationCounter.styles.js +4 -16
  215. package/dist/components/Number/Number.js +13 -10
  216. package/dist/components/Number/Number.stories.js +23 -41
  217. package/dist/components/Number/Number.styles.js +4 -10
  218. package/dist/components/PageTransition/PageTransition.js +16 -19
  219. package/dist/components/Pagination/Pagination.js +22 -25
  220. package/dist/components/Pagination/Pagination.stories.js +29 -36
  221. package/dist/components/Pagination/Pagination.styles.js +8 -15
  222. package/dist/components/Pagination/PaginationControls.js +32 -36
  223. package/dist/components/Pagination/PaginationControls.stories.js +33 -62
  224. package/dist/components/Pagination/usePagination.js +29 -37
  225. package/dist/components/Process/Process.stories.js +6 -12
  226. package/dist/components/Process/Process.styles.js +6 -16
  227. package/dist/components/ProfileBadge/ProfileBadge.js +12 -11
  228. package/dist/components/ProfileBadge/ProfileBadge.stories.js +5 -9
  229. package/dist/components/ProfileBadge/ProfileBadge.styles.js +13 -19
  230. package/dist/components/ProfileBox/ProfileBox.js +15 -17
  231. package/dist/components/ProfileBox/ProfileBox.stories.js +5 -9
  232. package/dist/components/ProfileBox/ProfileBox.styles.js +9 -21
  233. package/dist/components/ProfileHeader/ProfileHeader.js +163 -199
  234. package/dist/components/ProfileHeader/ProfileHeader.styles.js +24 -46
  235. package/dist/components/ProfileStat/ProfileStat.js +12 -11
  236. package/dist/components/ProfileStat/ProfileStat.stories.js +6 -12
  237. package/dist/components/ProfileStat/ProfileStat.styles.js +9 -23
  238. package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +20 -36
  239. package/dist/components/QRCode/QRCode.js +30 -30
  240. package/dist/components/QRCode/QRCode.stories.js +14 -26
  241. package/dist/components/ROI/ROI.js +225 -261
  242. package/dist/components/ROI/ROI.styles.js +13 -25
  243. package/dist/components/ROI/ROIChart.js +196 -303
  244. package/dist/components/ROI/ROIChart.styles.js +7 -11
  245. package/dist/components/ROI/ROIModal.js +13 -20
  246. package/dist/components/ROI/ROIParkingo.js +208 -244
  247. package/dist/components/ROI/ROIPixelmatic.js +209 -245
  248. package/dist/components/ROI/ROIScenarioBox.js +9 -8
  249. package/dist/components/ROI/ROIScenarioBox.styles.js +10 -33
  250. package/dist/components/Radio/Radio.js +19 -18
  251. package/dist/components/Radio/Radio.stories.js +4 -8
  252. package/dist/components/Radio/Radio.styles.js +5 -14
  253. package/dist/components/RefreshButton/RefreshButton.js +6 -5
  254. package/dist/components/RefreshButton/RefreshButton.stories.js +5 -10
  255. package/dist/components/RefreshButton/RefreshButton.styles.js +9 -24
  256. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +17 -18
  257. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +5 -9
  258. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +3 -4
  259. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +46 -70
  260. package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +10 -22
  261. package/dist/components/RegisterLiquidSteps/complete.js +4 -5
  262. package/dist/components/RegisterLiquidSteps/flow.js +53 -99
  263. package/dist/components/RegisterLiquidSteps/index.js +7 -22
  264. package/dist/components/RegisterLiquidSteps/register-liquid.js +62 -102
  265. package/dist/components/RegisterModal/RegisterModal.js +82 -118
  266. package/dist/components/RegisterModal/RegisterModal.stories.js +5 -9
  267. package/dist/components/RequestDataBox/RequestDataBox.js +9 -8
  268. package/dist/components/RequestDataBox/RequestDataBox.stories.js +4 -8
  269. package/dist/components/RequestDataBox/RequestDataBox.styles.js +7 -12
  270. package/dist/components/ResetConfirmModal/ResetConfirmModal.js +10 -11
  271. package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +3 -4
  272. package/dist/components/ResetPasswordModal/ResetPasswordModal.js +29 -28
  273. package/dist/components/SEO/SEO.js +11 -10
  274. package/dist/components/SEO/SEO.stories.js +4 -8
  275. package/dist/components/SectionTitle/SectionTitle.styles.js +3 -5
  276. package/dist/components/ShareButton/ShareButton.js +132 -145
  277. package/dist/components/SideLine/SideLine.js +3 -6
  278. package/dist/components/SideLine/SideLine.stories.js +3 -6
  279. package/dist/components/SideLine/SideLine.styles.js +6 -12
  280. package/dist/components/SigningSubflow/SignSubIntro.js +9 -8
  281. package/dist/components/SigningSubflow/_styles.js +9 -20
  282. package/dist/components/SigningSubflow/index.js +5 -5
  283. package/dist/components/Slider/Slider.js +16 -16
  284. package/dist/components/Slider/Slider.stories.js +5 -10
  285. package/dist/components/Slider/Slider.styles.js +5 -8
  286. package/dist/components/SpanButton/SpanButton.styles.js +3 -6
  287. package/dist/components/StatusBadge/StatusBadge.styles.js +4 -10
  288. package/dist/components/StepController/StepController.js +49 -74
  289. package/dist/components/StepController/StepController.stories.js +4 -8
  290. package/dist/components/StepController/StepController.styles.js +6 -12
  291. package/dist/components/StepController/StepControllerContext.js +46 -68
  292. package/dist/components/StepController/StepControllerProgress.js +16 -19
  293. package/dist/components/StepController/StepControllerProgress.stories.js +4 -8
  294. package/dist/components/StepsProgress/StepsProgress.js +44 -58
  295. package/dist/components/StepsProgress/StepsProgress.stories.js +33 -35
  296. package/dist/components/StepsProgress/StepsProgress.styles.js +7 -15
  297. package/dist/components/StokrLoader/StokrLoader.js +20 -23
  298. package/dist/components/StokrLoader/media.js +5 -7
  299. package/dist/components/SvgIcons/AdminBadgeSvg.js +16 -19
  300. package/dist/components/SvgIcons/CameraSvg.js +26 -29
  301. package/dist/components/SvgIcons/CapsLockSvg.js +21 -24
  302. package/dist/components/SvgIcons/DocumentBackSvg.js +25 -28
  303. package/dist/components/SvgIcons/DocumentSmallSvg.js +51 -54
  304. package/dist/components/SvgIcons/DocumentSvg.js +28 -31
  305. package/dist/components/SvgIcons/Early.js +14 -17
  306. package/dist/components/SvgIcons/EthSvg.js +30 -33
  307. package/dist/components/SvgIcons/EurSvg.js +16 -19
  308. package/dist/components/SvgIcons/FaceScanIconSvg.js +21 -24
  309. package/dist/components/SvgIcons/FourSvg.js +11 -14
  310. package/dist/components/SvgIcons/Glassess.js +19 -22
  311. package/dist/components/SvgIcons/LogoSvg.js +14 -17
  312. package/dist/components/SvgIcons/OneSvg.js +13 -16
  313. package/dist/components/SvgIcons/PassportSvg.js +46 -49
  314. package/dist/components/SvgIcons/RefreshSvg.js +17 -20
  315. package/dist/components/SvgIcons/SocialFacebook.js +20 -23
  316. package/dist/components/SvgIcons/SocialInstagram.js +11 -14
  317. package/dist/components/SvgIcons/SocialLinkedIn.js +25 -28
  318. package/dist/components/SvgIcons/SocialMedium.js +15 -18
  319. package/dist/components/SvgIcons/SocialReddit.js +15 -18
  320. package/dist/components/SvgIcons/SocialTelegram.js +49 -52
  321. package/dist/components/SvgIcons/SocialTwitter.js +44 -47
  322. package/dist/components/SvgIcons/SocialYoutube.js +15 -18
  323. package/dist/components/SvgIcons/ThreeSvg.js +10 -13
  324. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +72 -75
  325. package/dist/components/SvgIcons/TwoSvg.js +13 -16
  326. package/dist/components/SvgIcons/UpdateDefaultSvg.js +19 -22
  327. package/dist/components/SvgIcons/UpdateHardSvg.js +15 -18
  328. package/dist/components/SvgIcons/UpdateSoftSvg.js +17 -20
  329. package/dist/components/SvgIcons/UploadSvg.js +24 -27
  330. package/dist/components/SvgIcons/VerifiedBadge.js +13 -16
  331. package/dist/components/SvgIcons/index.js +32 -32
  332. package/dist/components/Switch/Switch.js +23 -37
  333. package/dist/components/Switch/Switch.stories.js +8 -14
  334. package/dist/components/Switch/Switch.styles.js +8 -33
  335. package/dist/components/Tabs/Tabs.js +19 -21
  336. package/dist/components/Tabs/Tabs.stories.js +4 -8
  337. package/dist/components/Tabs/Tabs.styles.js +4 -6
  338. package/dist/components/TabsNav/TabNav.js +14 -13
  339. package/dist/components/TabsNav/TabNav.stories.js +5 -10
  340. package/dist/components/TabsNav/TabsNav.js +14 -14
  341. package/dist/components/TabsNav/TabsNav.stories.js +4 -8
  342. package/dist/components/TabsNav/TabsNav.styles.js +10 -25
  343. package/dist/components/TeamOverview/TeamOverview.js +38 -84
  344. package/dist/components/TeamOverview/TeamOverview.stories.js +5 -10
  345. package/dist/components/TeamOverview/TeamOverview.styles.js +18 -35
  346. package/dist/components/TermsModal/TermsModal.js +49 -79
  347. package/dist/components/TermsModal/TermsModal.stories.js +4 -8
  348. package/dist/components/TermsModal/_styles.js +35 -100
  349. package/dist/components/Text/Headline.js +15 -14
  350. package/dist/components/Text/Headline.stories.js +4 -8
  351. package/dist/components/Text/StyledText.js +5 -8
  352. package/dist/components/Text/Text.stories.js +5 -10
  353. package/dist/components/Text/Text.styles.js +15 -37
  354. package/dist/components/TextLink/TextLink.styles.js +6 -17
  355. package/dist/components/ToDoList/ToDoList.js +76 -85
  356. package/dist/components/ToDoList/ToDoList.stories.js +7 -14
  357. package/dist/components/ToDoList/ToDoList.styles.js +34 -43
  358. package/dist/components/ToDoList/ToDoListTask.js +22 -35
  359. package/dist/components/ToDoList/ToDoListTask.stories.js +5 -10
  360. package/dist/components/ToDoList/ToDoListTask.styles.js +13 -40
  361. package/dist/components/TransactionDetails/TransactionDetails.js +9 -19
  362. package/dist/components/TransactionDetails/TransactionDetails.stories.js +5 -10
  363. package/dist/components/TransactionDetails/TransactionDetails.styles.js +6 -15
  364. package/dist/components/TransactionInfo/TransactionInfo.js +18 -17
  365. package/dist/components/TransactionInfo/TransactionInfo.stories.js +4 -8
  366. package/dist/components/TransactionInfo/TransactionInfo.styles.js +10 -31
  367. package/dist/components/TwoFactorModal/TwoFactorModal.js +72 -94
  368. package/dist/components/VerifyEmailModal/VerifyEmailModal.js +49 -48
  369. package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +6 -11
  370. package/dist/components/breakdown/Breakdown.js +38 -36
  371. package/dist/components/breakdown/index.js +3 -5
  372. package/dist/components/headerHo/HeaderHo.js +585 -769
  373. package/dist/components/headerHo/HeaderHo.stories.js +9 -13
  374. package/dist/components/headerHo/index.js +3 -5
  375. package/dist/components/icons/Arrow.js +43 -46
  376. package/dist/components/icons/Arrow.stories.js +7 -14
  377. package/dist/components/icons/ArrowSimple.js +32 -35
  378. package/dist/components/icons/ArrowSimple.stories.js +7 -14
  379. package/dist/components/icons/Check.js +28 -31
  380. package/dist/components/icons/Check.stories.js +3 -6
  381. package/dist/components/icons/Facebook.js +11 -14
  382. package/dist/components/icons/Facebook.stories.js +3 -6
  383. package/dist/components/icons/Info.js +40 -43
  384. package/dist/components/icons/Info.stories.js +3 -6
  385. package/dist/components/icons/Instagram.js +11 -14
  386. package/dist/components/icons/Instagram.stories.js +3 -6
  387. package/dist/components/icons/LinkIcon.js +19 -22
  388. package/dist/components/icons/LinkIcon.stories.js +3 -6
  389. package/dist/components/icons/LinkedIn.js +28 -31
  390. package/dist/components/icons/LinkedIn.stories.js +3 -6
  391. package/dist/components/icons/Medium.js +27 -30
  392. package/dist/components/icons/Medium.stories.js +3 -6
  393. package/dist/components/icons/Reddit.js +17 -20
  394. package/dist/components/icons/Reddit.stories.js +3 -6
  395. package/dist/components/icons/Share.js +47 -50
  396. package/dist/components/icons/Share.stories.js +3 -6
  397. package/dist/components/icons/Telegram.js +27 -30
  398. package/dist/components/icons/Telegram.stories.js +3 -6
  399. package/dist/components/icons/Twitter.js +11 -14
  400. package/dist/components/icons/Twitter.stories.js +3 -6
  401. package/dist/components/icons/X.js +11 -14
  402. package/dist/components/icons/X.stories.js +3 -6
  403. package/dist/components/icons/Youtube.js +11 -14
  404. package/dist/components/icons/Youtube.stories.js +3 -6
  405. package/dist/components/icons/index.js +15 -15
  406. package/dist/components/landing-page/List.js +3 -5
  407. package/dist/components/landing-page/PageContent.js +5 -7
  408. package/dist/components/landing-page/PageText.js +12 -16
  409. package/dist/components/landing-page/PageTitle.js +16 -47
  410. package/dist/components/logo/Logo.js +49 -71
  411. package/dist/components/logo/index.js +3 -5
  412. package/dist/components/renderToBody/index.js +3 -5
  413. package/dist/components/renderToBody/renderToBody.js +39 -60
  414. package/dist/components/taxId/TaxId.stories.js +11 -16
  415. package/dist/components/taxId/complete.js +9 -11
  416. package/dist/components/taxId/flow.js +22 -34
  417. package/dist/components/taxId/index.js +4 -4
  418. package/dist/components/taxId/register-taxid.js +54 -92
  419. package/dist/components/video/Video.js +69 -84
  420. package/dist/components/video/Video.stories.js +5 -9
  421. package/dist/components/video/index.js +3 -5
  422. package/dist/constants/globalVariables.js +10 -20
  423. package/dist/constants/style.js +23 -46
  424. package/dist/context/Auth.js +247 -340
  425. package/dist/context/AuthContext.js +545 -1023
  426. package/dist/context/Checkbox/CheckboxContext.js +65 -117
  427. package/dist/firebase-config.js +4 -6
  428. package/dist/hooks/useNewVentureForm.js +128 -193
  429. package/dist/hooks/useTimer.js +29 -51
  430. package/dist/index.js +134 -134
  431. package/dist/model/axios.js +4 -5
  432. package/dist/model/axiosPublic.js +4 -5
  433. package/dist/services/TimerService.js +70 -89
  434. package/dist/static/images/copy_icon.svg +4 -0
  435. package/dist/styles/colors.js +2 -4
  436. package/dist/styles/fonts.js +3 -4
  437. package/dist/styles/global.js +3 -4
  438. package/dist/styles/grid.js +4 -5
  439. package/dist/styles/reactTippy.js +3 -4
  440. package/dist/styles/rwd.js +12 -26
  441. package/dist/styles/semanticUi.js +3 -4
  442. package/dist/styles/spacing.js +2 -3
  443. package/dist/styles/theme.js +6 -9
  444. package/dist/utils/allowed-countries-list.js +2 -3
  445. package/dist/utils/analytics.js +32 -48
  446. package/dist/utils/check-sale-time-left.js +37 -39
  447. package/dist/utils/check-todo-status.js +3 -4
  448. package/dist/utils/checklistGenerator.js +46 -46
  449. package/dist/utils/copyToClipboard.js +65 -131
  450. package/dist/utils/countries-list.js +2 -3
  451. package/dist/utils/customHooks.js +40 -67
  452. package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
  453. package/dist/utils/fix-decimals.js +4 -5
  454. package/dist/utils/formatCurrencyValue.js +41 -52
  455. package/dist/utils/get-cookie-domain.js +3 -4
  456. package/dist/utils/get-short-address.js +1 -3
  457. package/dist/utils/isUSInvestor.js +2 -4
  458. package/dist/utils/km_ify.js +3 -3
  459. package/dist/utils/lock-body.js +3 -5
  460. package/dist/utils/moment.js +10 -12
  461. package/dist/utils/redirect-url.js +2 -3
  462. package/dist/utils/saveAs.js +5 -5
  463. package/dist/utils/scrollUtils.js +33 -36
  464. package/dist/utils/set-redirect-cookie.js +6 -7
  465. package/dist/utils/withRouter.js +6 -6
  466. package/package.json +134 -141
@@ -9,9 +9,9 @@ var _Button = _interopRequireDefault(require("./Button.styles"));
9
9
  var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
10
10
  var _ButtonContainer = require("../ButtonContainer/ButtonContainer.styles");
11
11
  var _global = _interopRequireDefault(require("../../styles/global"));
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
13
  // import { DoubleButtons } from '../DoubleButton/DoubleButton.styles'
14
- var _default = {
14
+ var _default = exports.default = {
15
15
  title: 'Components Library/Buttons/Button',
16
16
  component: _Button.default,
17
17
  argTypes: {
@@ -59,96 +59,79 @@ var _default = {
59
59
  }
60
60
  }
61
61
  };
62
- exports.default = _default;
63
- var Template = function Template(args) {
64
- 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(_ButtonContainer.ButtonContainer, null, /*#__PURE__*/_react.default.createElement(_Button.default, args, "Button"))));
65
- };
66
- var Primary = Template.bind({});
67
- exports.Primary = Primary;
62
+ const Template = args => /*#__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(_ButtonContainer.ButtonContainer, null, /*#__PURE__*/_react.default.createElement(_Button.default, args, "Button"))));
63
+ const Primary = exports.Primary = Template.bind({});
68
64
  Primary.args = {
69
65
  children: 'Primary Button'
70
66
  };
71
- var Secondary = Template.bind({});
72
- exports.Secondary = Secondary;
67
+ const Secondary = exports.Secondary = Template.bind({});
73
68
  Secondary.args = {
74
69
  children: 'Secondary Button',
75
70
  secondary: true
76
71
  };
77
- var Disabled = Template.bind({});
78
- exports.Disabled = Disabled;
72
+ const Disabled = exports.Disabled = Template.bind({});
79
73
  Disabled.args = {
80
74
  children: 'Disabled Button',
81
75
  disabled: true
82
76
  };
83
- var Negative = Template.bind({});
84
- exports.Negative = Negative;
77
+ const Negative = exports.Negative = Template.bind({});
85
78
  Negative.args = {
86
79
  children: 'Negative Button',
87
80
  negative: true
88
81
  };
89
- var Outline = Template.bind({});
90
- exports.Outline = Outline;
82
+ const Outline = exports.Outline = Template.bind({});
91
83
  Outline.args = {
92
84
  children: 'Outline Button',
93
85
  outline: true
94
86
  };
95
- var OutlineBlack = Template.bind({});
96
- exports.OutlineBlack = OutlineBlack;
87
+ const OutlineBlack = exports.OutlineBlack = Template.bind({});
97
88
  OutlineBlack.args = {
98
89
  children: 'Outline Black Button',
99
90
  outlineBlack: true
100
91
  };
101
- var OnlyText = Template.bind({});
102
- exports.OnlyText = OnlyText;
92
+ const OnlyText = exports.OnlyText = Template.bind({});
103
93
  OnlyText.args = {
104
94
  children: 'Text Only Button',
105
95
  onlyText: true
106
96
  };
107
- var Fluid = Template.bind({});
108
- exports.Fluid = Fluid;
97
+ const Fluid = exports.Fluid = Template.bind({});
109
98
  Fluid.args = {
110
99
  children: 'Fluid Width Button',
111
100
  fluid: true
112
101
  };
113
- var WithMinWidth = Template.bind({});
114
- exports.WithMinWidth = WithMinWidth;
102
+ const WithMinWidth = exports.WithMinWidth = Template.bind({});
115
103
  WithMinWidth.args = {
116
104
  children: 'Min Width Button',
117
105
  minWidth: '200px'
118
106
  };
119
- var Centered = Template.bind({});
120
- exports.Centered = Centered;
107
+ const Centered = exports.Centered = Template.bind({});
121
108
  Centered.args = {
122
109
  children: 'Centered Button',
123
110
  center: true
124
111
  };
125
- var WithMargin = Template.bind({});
126
- exports.WithMargin = WithMargin;
112
+ const WithMargin = exports.WithMargin = Template.bind({});
127
113
  WithMargin.args = {
128
114
  children: 'Button with Margin',
129
115
  marginTop: '20px',
130
116
  marginRight: '20px'
131
117
  };
132
- var WithBottomMargin = Template.bind({});
133
- exports.WithBottomMargin = WithBottomMargin;
118
+ const WithBottomMargin = exports.WithBottomMargin = Template.bind({});
134
119
  WithBottomMargin.args = {
135
120
  children: 'Button with Bottom Margin',
136
121
  withMarginBottom: true
137
122
  };
138
- var ButtonGroup = function ButtonGroup() {
139
- return /*#__PURE__*/_react.default.createElement("div", {
140
- style: {
141
- display: 'flex',
142
- gap: '10px'
143
- }
144
- }, /*#__PURE__*/_react.default.createElement(_Button.default, null, "Primary"), /*#__PURE__*/_react.default.createElement(_Button.default, {
145
- secondary: true
146
- }, "Secondary"), /*#__PURE__*/_react.default.createElement(_Button.default, {
147
- outlineBlack: true
148
- }, "Outline Black"), /*#__PURE__*/_react.default.createElement(_Button.default, {
149
- negative: true
150
- }, "Negative"));
151
- };
123
+ const ButtonGroup = () => /*#__PURE__*/_react.default.createElement("div", {
124
+ style: {
125
+ display: 'flex',
126
+ gap: '10px'
127
+ }
128
+ }, /*#__PURE__*/_react.default.createElement(_Button.default, null, "Primary"), /*#__PURE__*/_react.default.createElement(_Button.default, {
129
+ secondary: true
130
+ }, "Secondary"), /*#__PURE__*/_react.default.createElement(_Button.default, {
131
+ outlineBlack: true
132
+ }, "Outline Black"), /*#__PURE__*/_react.default.createElement(_Button.default, {
133
+ negative: true
134
+ }, "Negative"));
152
135
 
153
136
  // export const DoubleButton = args => (
154
137
  // <ComponentWrapper>
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
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
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -8,67 +7,31 @@ exports.default = exports.Button = void 0;
8
7
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
9
  var _theme = _interopRequireDefault(require("../../styles/theme"));
11
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
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 Button = _styledComponents.default.button.attrs(function (props) {
17
- return {
18
- type: props.type || 'button'
19
- };
20
- }).withConfig({
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
+ const Button = exports.Button = _styledComponents.default.button.attrs(props => ({
13
+ type: props.type || 'button'
14
+ })).withConfig({
21
15
  displayName: "Buttonstyles__Button",
22
16
  componentId: "sc-1bxw8qq-0"
23
- })(["display:inline-block;height:auto;min-height:40px;max-width:100%;background-color:", ";border:1px solid ", ";font-weight:bold;font-size:12px;line-height:16px;color:", ";text-transform:uppercase;text-align:center;letter-spacing:2px;border-radius:28px;padding:11px 32px;margin:0;outline:0;vertical-align:baseline;text-shadow:none;user-select:none;cursor:pointer;transition:color 0.2s,background-color 0.2s,border-color 0.2s;", " ", " ", " ", " ", " ", " &:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
24
- return _theme.default.cPrimary;
25
- }, function (props) {
26
- return _theme.default.cPrimary;
27
- }, function (props) {
28
- return _theme.default.cWhite;
29
- }, function (_ref) {
30
- var isUpdates = _ref.isUpdates,
31
- isCancel = _ref.isCancel;
32
- return isUpdates && isCancel && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 11px 0;\n margin-left: 32px;\n "])));
33
- }, function (_ref2) {
34
- var isUpdates = _ref2.isUpdates,
35
- isDone = _ref2.isDone;
36
- return isUpdates && isDone && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: 32px;\n\n @media screen and (max-width: 850px) {\n padding: 11px 20px;\n }\n "])));
37
- }, function (_ref3) {
38
- var withMarginBottom = _ref3.withMarginBottom;
39
- return withMarginBottom && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: 32px;\n "])));
40
- }, function (props) {
41
- return props.minWidth && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-width: ", ";\n "])), props.minWidth);
42
- }, function (props) {
43
- return props.fluid && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n width: 100%;\n padding: 11px 12px;\n "])));
44
- }, function (props) {
45
- return props.center && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: auto;\n margin-right: auto;\n "])));
46
- }, function (props) {
47
- return _theme.default.cPrimaryDark;
48
- }, function (props) {
49
- return _theme.default.cPrimaryDark;
50
- }, function (props) {
51
- return _theme.default.cWhite;
52
- }, function (props) {
53
- return props.secondary && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cWhite, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite);
54
- }, function (props) {
55
- return props.onlyText && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-color: transparent;\n background-color: transparent;\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: transparent;\n border-color: transparent;\n color: ", ";\n }\n "])), _theme.default.cBlack, _theme.default.cPrimary);
56
- }, function (props) {
57
- return props.disabled && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n opacity: 0.2;\n cursor: default;\n box-shadow: none !important;\n pointer-events: none !important;\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cBlack, _theme.default.cWhite, _theme.default.cBlack, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite);
58
- }, function (props) {
59
- return props.negative && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cWarning, _theme.default.cWhite, _theme.default.cWarning, _theme.default.cWhite, _theme.default.cWarningDark, _theme.default.cWarningDark);
60
- }, function (props) {
61
- return props.outline && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: transparent;\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWarning);
62
- }, function (props) {
63
- return props.outlineBlack && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.grey4, _theme.default.cWhite, _theme.default.cBlack, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite);
64
- }, function (props) {
65
- return props.marginTop && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-top: ", ";\n "])), props.marginTop);
66
- }, function (props) {
67
- return props.marginRight && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-right: ", ";\n "])), props.marginRight);
68
- }, function (props) {
69
- return props.isLoginMobile && "\n margin-bottom: 20px;\n width: 163.94px;\n ";
70
- });
71
- exports.Button = Button;
17
+ })(["display:inline-block;height:auto;min-height:40px;max-width:100%;background-color:", ";border:1px solid ", ";font-weight:bold;font-size:12px;line-height:16px;color:", ";text-transform:uppercase;text-align:center;letter-spacing:2px;border-radius:28px;padding:11px 32px;margin:0;outline:0;vertical-align:baseline;text-shadow:none;user-select:none;cursor:pointer;transition:color 0.2s,background-color 0.2s,border-color 0.2s;", " ", " ", " ", " ", " ", " &:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}", " ", " ", " ", " ", " ", " ", " ", " ", ""], props => _theme.default.cPrimary, props => _theme.default.cPrimary, props => _theme.default.cWhite, _ref => {
18
+ let {
19
+ isUpdates,
20
+ isCancel
21
+ } = _ref;
22
+ return isUpdates && isCancel && (0, _styledComponents.css)(["padding:11px 0;margin-left:32px;"]);
23
+ }, _ref2 => {
24
+ let {
25
+ isUpdates,
26
+ isDone
27
+ } = _ref2;
28
+ return isUpdates && isDone && (0, _styledComponents.css)(["margin-left:32px;@media screen and (max-width:850px){padding:11px 20px;}"]);
29
+ }, _ref3 => {
30
+ let {
31
+ withMarginBottom
32
+ } = _ref3;
33
+ return withMarginBottom && (0, _styledComponents.css)(["margin-bottom:32px;"]);
34
+ }, props => props.minWidth && (0, _styledComponents.css)(["min-width:", ";"], props.minWidth), props => props.fluid && (0, _styledComponents.css)(["display:block;width:100%;padding:11px 12px;"]), props => props.center && (0, _styledComponents.css)(["margin-left:auto;margin-right:auto;"]), props => _theme.default.cPrimaryDark, props => _theme.default.cPrimaryDark, props => _theme.default.cWhite, props => props.secondary && (0, _styledComponents.css)(["background-color:", ";color:", ";&:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}"], _theme.default.cWhite, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite), props => props.onlyText && (0, _styledComponents.css)(["border-color:transparent;background-color:transparent;color:", ";&:hover,&:focus,&:active{background-color:transparent;border-color:transparent;color:", ";}"], _theme.default.cBlack, _theme.default.cPrimary), props => props.disabled && (0, _styledComponents.css)(["border-color:", ";background-color:", ";color:", ";opacity:0.2;cursor:default;box-shadow:none !important;pointer-events:none !important;&:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}"], _theme.default.cBlack, _theme.default.cWhite, _theme.default.cBlack, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite), props => props.negative && (0, _styledComponents.css)(["border-color:", ";background-color:", ";color:", ";&:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}"], _theme.default.cWarning, _theme.default.cWhite, _theme.default.cWarning, _theme.default.cWhite, _theme.default.cWarningDark, _theme.default.cWarningDark), props => props.outline && (0, _styledComponents.css)(["border-color:", ";background-color:transparent;color:", ";&:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}"], _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWarning), props => props.outlineBlack && (0, _styledComponents.css)(["border-color:", ";background-color:", ";color:", ";&:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}"], _theme.default.grey4, _theme.default.cWhite, _theme.default.cBlack, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite), props => props.marginTop && (0, _styledComponents.css)(["margin-top:", ";"], props.marginTop), props => props.marginRight && (0, _styledComponents.css)(["margin-right:", ";"], props.marginRight), props => props.isLoginMobile && "\n margin-bottom: 20px;\n width: 163.94px;\n ");
72
35
  Button.propTypes = {
73
36
  secondary: _propTypes.default.bool,
74
37
  disabled: _propTypes.default.bool,
@@ -85,5 +48,4 @@ Button.defaultProps = {
85
48
  outline: false,
86
49
  outlineBlack: false
87
50
  };
88
- var _default = Button;
89
- exports.default = _default;
51
+ var _default = exports.default = Button;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
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
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -11,21 +10,14 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
10
  var _reactVisibilitySensor = _interopRequireDefault(require("react-visibility-sensor"));
12
11
  var _Button = _interopRequireDefault(require("./Button.styles"));
13
12
  var _colors = _interopRequireDefault(require("../../styles/colors"));
14
- var _excluded = ["children", "nowrap", "onClick", "disabled", "fullWidth", "disabledColor", "buttonId", "className", "backgroundColor", "textColor", "borderColor", "glareColorDark", "glareColorLight", "animationDuration"];
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- 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); }
17
- 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; }
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21
- 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); }
22
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
23
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
24
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
26
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
+ const _excluded = ["children", "nowrap", "onClick", "disabled", "fullWidth", "disabledColor", "buttonId", "className", "backgroundColor", "textColor", "borderColor", "glareColorDark", "glareColorLight", "animationDuration"];
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
18
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
27
19
  // Configuration for visual styling
28
- var config = {
20
+ const config = {
29
21
  colorDark: 'rgb(41, 112, 225)',
30
22
  colorLight: '#9bfcfd',
31
23
  colorFooter: _colors.default.blue,
@@ -35,91 +27,73 @@ var config = {
35
27
  };
36
28
 
37
29
  // Animation for the glare effect
38
- var createGlareAnimation = function createGlareAnimation() {
39
- var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 4;
30
+ const createGlareAnimation = function () {
31
+ let duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 4;
40
32
  return (0, _styledComponents.keyframes)(["0%{width:0;}50%{width:200%;}75%{opacity:1;}100%{width:400%;opacity:0;}"]);
41
33
  };
42
34
 
43
35
  // Styled components
44
- var ButtonWrapper = _styledComponents.default.div.withConfig({
36
+ const ButtonWrapper = _styledComponents.default.div.withConfig({
45
37
  displayName: "GlareButton__ButtonWrapper",
46
38
  componentId: "sc-1fjbp4c-0"
47
- })(["position:relative;display:inline-block;", " ", ""], function (_ref) {
48
- var nowrap = _ref.nowrap;
39
+ })(["position:relative;display:inline-block;", " ", ""], _ref => {
40
+ let {
41
+ nowrap
42
+ } = _ref;
49
43
  return !nowrap && (0, _styledComponents.css)(["display:block;position:absolute;top:0;left:50%;transform:translate3d(-50%,-50%,0);"]);
50
- }, function (_ref2) {
51
- var fullWidth = _ref2.fullWidth;
44
+ }, _ref2 => {
45
+ let {
46
+ fullWidth
47
+ } = _ref2;
52
48
  return fullWidth && (0, _styledComponents.css)(["width:100%;"]);
53
49
  });
54
- var StyledButton = (0, _styledComponents.default)(_Button.default).withConfig({
50
+ const StyledButton = (0, _styledComponents.default)(_Button.default).withConfig({
55
51
  displayName: "GlareButton__StyledButton",
56
52
  componentId: "sc-1fjbp4c-1"
57
- })(["position:relative;margin:", "px;background-color:", ";color:", ";border-color:", ";", " &:disabled{background-color:", " !important;color:rgba(255,255,255,0.5) !important;border-color:#555 !important;}"], config.padding, function (props) {
58
- return props.backgroundColor || 'inherit';
59
- }, function (props) {
60
- return props.textColor || 'inherit';
61
- }, function (props) {
62
- return props.borderColor || 'inherit';
63
- }, function (_ref3) {
64
- var fullWidth = _ref3.fullWidth;
53
+ })(["position:relative;margin:", "px;background-color:", ";color:", ";border-color:", ";", " &:disabled{background-color:", " !important;color:rgba(255,255,255,0.5) !important;border-color:#555 !important;}"], config.padding, props => props.backgroundColor || 'inherit', props => props.textColor || 'inherit', props => props.borderColor || 'inherit', _ref3 => {
54
+ let {
55
+ fullWidth
56
+ } = _ref3;
65
57
  return fullWidth && (0, _styledComponents.css)(["width:calc(100% - ", "px);"], config.padding * 2);
66
- }, function (props) {
67
- return props.disabledColor || '#333';
68
- });
69
- var ButtonGlare = _styledComponents.default.svg.withConfig({
58
+ }, props => props.disabledColor || '#333');
59
+ const ButtonGlare = _styledComponents.default.svg.withConfig({
70
60
  displayName: "GlareButton__ButtonGlare",
71
61
  componentId: "sc-1fjbp4c-2"
72
62
  })(["position:absolute;left:0;top:0;width:100%;height:100%;"]);
73
- var GlareShape = _styledComponents.default.rect.withConfig({
63
+ const GlareShape = _styledComponents.default.rect.withConfig({
74
64
  displayName: "GlareButton__GlareShape",
75
65
  componentId: "sc-1fjbp4c-3"
76
- })(["animation:", " ", "s linear infinite;"], function (props) {
77
- return createGlareAnimation(props.animationDuration);
78
- }, function (props) {
79
- return props.animationDuration || 4;
80
- });
81
- var GlareButton = function GlareButton(_ref4) {
82
- var children = _ref4.children,
83
- _ref4$nowrap = _ref4.nowrap,
84
- nowrap = _ref4$nowrap === void 0 ? false : _ref4$nowrap,
85
- onClick = _ref4.onClick,
86
- _ref4$disabled = _ref4.disabled,
87
- disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
88
- _ref4$fullWidth = _ref4.fullWidth,
89
- fullWidth = _ref4$fullWidth === void 0 ? false : _ref4$fullWidth,
90
- _ref4$disabledColor = _ref4.disabledColor,
91
- disabledColor = _ref4$disabledColor === void 0 ? '#333' : _ref4$disabledColor,
92
- _ref4$buttonId = _ref4.buttonId,
93
- buttonId = _ref4$buttonId === void 0 ? 'glare-button' : _ref4$buttonId,
94
- className = _ref4.className,
95
- backgroundColor = _ref4.backgroundColor,
96
- textColor = _ref4.textColor,
97
- borderColor = _ref4.borderColor,
98
- _ref4$glareColorDark = _ref4.glareColorDark,
99
- glareColorDark = _ref4$glareColorDark === void 0 ? config.colorDark : _ref4$glareColorDark,
100
- _ref4$glareColorLight = _ref4.glareColorLight,
101
- glareColorLight = _ref4$glareColorLight === void 0 ? config.colorLight : _ref4$glareColorLight,
102
- _ref4$animationDurati = _ref4.animationDuration,
103
- animationDuration = _ref4$animationDurati === void 0 ? 4 : _ref4$animationDurati,
66
+ })(["animation:", " ", "s linear infinite;"], props => createGlareAnimation(props.animationDuration), props => props.animationDuration || 4);
67
+ const GlareButton = _ref4 => {
68
+ let {
69
+ children,
70
+ nowrap = false,
71
+ onClick,
72
+ disabled = false,
73
+ fullWidth = false,
74
+ disabledColor = '#333',
75
+ buttonId = 'glare-button',
76
+ className,
77
+ backgroundColor,
78
+ textColor,
79
+ borderColor,
80
+ glareColorDark = config.colorDark,
81
+ glareColorLight = config.colorLight,
82
+ animationDuration = 4
83
+ } = _ref4,
104
84
  props = _objectWithoutProperties(_ref4, _excluded);
105
- var _useState = (0, _react.useState)(false),
106
- _useState2 = _slicedToArray(_useState, 2),
107
- isButtonVisible = _useState2[0],
108
- setIsButtonVisible = _useState2[1];
109
- var _useState3 = (0, _react.useState)({
110
- width: 295,
111
- height: config.baseHeight
112
- }),
113
- _useState4 = _slicedToArray(_useState3, 2),
114
- dimensions = _useState4[0],
115
- setDimensions = _useState4[1];
116
- var buttonRef = (0, _react.useRef)(null);
117
- var wrapperRef = (0, _react.useRef)(null);
118
- var observerRef = (0, _react.useRef)(null);
119
- var mediaQueryRef = (0, _react.useRef)(null);
85
+ const [isButtonVisible, setIsButtonVisible] = (0, _react.useState)(false);
86
+ const [dimensions, setDimensions] = (0, _react.useState)({
87
+ width: 295,
88
+ height: config.baseHeight
89
+ });
90
+ const buttonRef = (0, _react.useRef)(null);
91
+ const wrapperRef = (0, _react.useRef)(null);
92
+ const observerRef = (0, _react.useRef)(null);
93
+ const mediaQueryRef = (0, _react.useRef)(null);
120
94
 
121
95
  // Generate unique IDs for SVG elements
122
- var ids = (0, _react.useRef)({
96
+ const ids = (0, _react.useRef)({
123
97
  linearGradient: "gradient-".concat(Math.random().toString(32).substr(2)),
124
98
  fadeGradient: "fade-gradient-".concat(Math.random().toString(32).substr(2)),
125
99
  staticMask: "static-mask-".concat(Math.random().toString(32).substr(2)),
@@ -128,9 +102,9 @@ var GlareButton = function GlareButton(_ref4) {
128
102
  });
129
103
 
130
104
  // Update button dimensions when size changes
131
- var updateDimensions = function updateDimensions() {
105
+ const updateDimensions = () => {
132
106
  if (!buttonRef.current || !wrapperRef.current) return;
133
- var buttonRect = buttonRef.current.getBoundingClientRect();
107
+ const buttonRect = buttonRef.current.getBoundingClientRect();
134
108
  setDimensions({
135
109
  width: buttonRect.width + config.padding * 2,
136
110
  height: buttonRect.height + config.padding * 2
@@ -138,15 +112,15 @@ var GlareButton = function GlareButton(_ref4) {
138
112
  };
139
113
 
140
114
  // Handle visibility changes
141
- var handleButtonVisibility = function handleButtonVisibility(isVisible) {
115
+ const handleButtonVisibility = isVisible => {
142
116
  setIsButtonVisible(isVisible);
143
117
  };
144
118
 
145
119
  // Setup resize observers and media query listeners
146
- (0, _react.useEffect)(function () {
120
+ (0, _react.useEffect)(() => {
147
121
  // Media query for responsive design
148
122
  mediaQueryRef.current = window.matchMedia('(max-width: 768px)');
149
- var handleMediaChange = function handleMediaChange(event) {
123
+ const handleMediaChange = event => {
150
124
  setTimeout(updateDimensions, 400);
151
125
  };
152
126
  mediaQueryRef.current.addEventListener('change', handleMediaChange);
@@ -157,8 +131,7 @@ var GlareButton = function GlareButton(_ref4) {
157
131
  observerRef.current.observe(buttonRef.current);
158
132
  updateDimensions(); // Initial dimensions calculation
159
133
  }
160
-
161
- return function () {
134
+ return () => {
162
135
  mediaQueryRef.current.removeEventListener('change', handleMediaChange);
163
136
  if (observerRef.current) {
164
137
  observerRef.current.disconnect();
@@ -309,5 +282,4 @@ GlareButton.propTypes = {
309
282
  glareColorLight: _propTypes.default.string,
310
283
  animationDuration: _propTypes.default.number
311
284
  };
312
- var _default = GlareButton;
313
- exports.default = _default;
285
+ var _default = exports.default = GlareButton;
@@ -6,15 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = exports.SlowAnimation = exports.FullWidth = exports.FastAnimation = exports.Disabled = exports.Default = exports.CustomColors = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _GlareButton = _interopRequireDefault(require("./GlareButton"));
9
- var _addonActions = require("@storybook/addon-actions");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- 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); }
9
+ var _actions = require("storybook/actions");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
11
  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; }
13
12
  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; }
14
- 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; }
15
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
- 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); }
17
- var _default = {
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
+ var _default = exports.default = {
18
17
  title: 'Components Library/Buttons/GlareButton',
19
18
  component: _GlareButton.default,
20
19
  parameters: {
@@ -88,38 +87,31 @@ var _default = {
88
87
  }
89
88
  }
90
89
  };
91
- exports.default = _default;
92
- var Template = function Template(args) {
93
- return /*#__PURE__*/_react.default.createElement("div", {
94
- style: {
95
- margin: '50px',
96
- position: 'relative'
97
- }
98
- }, /*#__PURE__*/_react.default.createElement(_GlareButton.default, args));
99
- };
100
- var Default = Template.bind({});
101
- exports.Default = Default;
90
+ const Template = args => /*#__PURE__*/_react.default.createElement("div", {
91
+ style: {
92
+ margin: '50px',
93
+ position: 'relative'
94
+ }
95
+ }, /*#__PURE__*/_react.default.createElement(_GlareButton.default, args));
96
+ const Default = exports.Default = Template.bind({});
102
97
  Default.args = {
103
98
  children: 'Default Glare Button',
104
- onClick: (0, _addonActions.action)('button-clicked'),
99
+ onClick: (0, _actions.action)('button-clicked'),
105
100
  disabled: false,
106
101
  nowrap: false,
107
102
  fullWidth: false
108
103
  };
109
- var Disabled = Template.bind({});
110
- exports.Disabled = Disabled;
104
+ const Disabled = exports.Disabled = Template.bind({});
111
105
  Disabled.args = _objectSpread(_objectSpread({}, Default.args), {}, {
112
106
  children: 'Disabled Glare Button',
113
107
  disabled: true
114
108
  });
115
- var FullWidth = Template.bind({});
116
- exports.FullWidth = FullWidth;
109
+ const FullWidth = exports.FullWidth = Template.bind({});
117
110
  FullWidth.args = _objectSpread(_objectSpread({}, Default.args), {}, {
118
111
  children: 'Full Width Glare Button',
119
112
  fullWidth: true
120
113
  });
121
- var CustomColors = Template.bind({});
122
- exports.CustomColors = CustomColors;
114
+ const CustomColors = exports.CustomColors = Template.bind({});
123
115
  CustomColors.args = _objectSpread(_objectSpread({}, Default.args), {}, {
124
116
  children: 'Custom Colors',
125
117
  backgroundColor: '#6200ee',
@@ -128,14 +120,12 @@ CustomColors.args = _objectSpread(_objectSpread({}, Default.args), {}, {
128
120
  glareColorDark: '#e0aaff',
129
121
  glareColorLight: '#ffffff'
130
122
  });
131
- var SlowAnimation = Template.bind({});
132
- exports.SlowAnimation = SlowAnimation;
123
+ const SlowAnimation = exports.SlowAnimation = Template.bind({});
133
124
  SlowAnimation.args = _objectSpread(_objectSpread({}, Default.args), {}, {
134
125
  children: 'Slow Glare Effect',
135
126
  animationDuration: 8
136
127
  });
137
- var FastAnimation = Template.bind({});
138
- exports.FastAnimation = FastAnimation;
128
+ const FastAnimation = exports.FastAnimation = Template.bind({});
139
129
  FastAnimation.args = _objectSpread(_objectSpread({}, Default.args), {}, {
140
130
  children: 'Fast Glare Effect',
141
131
  animationDuration: 2
@@ -6,18 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = exports.ButtonGridContainer = exports.ButtonContainer = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _Button = _interopRequireDefault(require("../Button/Button.styles"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- var ButtonContainer = _styledComponents.default.div.withConfig({
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div.withConfig({
11
11
  displayName: "ButtonContainerstyles__ButtonContainer",
12
12
  componentId: "sc-1no5512-0"
13
- })(["align-items:center;display:flex;justify-content:center;", " ", "{min-width:150px;max-width:300px;}@media screen and (max-width:767px){flex-direction:column;", "{min-width:150px;max-width:400px;}}"], function (props) {
14
- return props.flexColumn && "\n flex-direction:column;\n ";
15
- }, _Button.default, _Button.default);
16
- exports.ButtonContainer = ButtonContainer;
17
- var ButtonGridContainer = _styledComponents.default.div.withConfig({
13
+ })(["align-items:center;display:flex;justify-content:center;", " ", "{min-width:150px;max-width:300px;}@media screen and (max-width:767px){flex-direction:column;", "{min-width:150px;max-width:400px;}}"], props => props.flexColumn && "\n flex-direction:column;\n ", _Button.default, _Button.default);
14
+ const ButtonGridContainer = exports.ButtonGridContainer = _styledComponents.default.div.withConfig({
18
15
  displayName: "ButtonContainerstyles__ButtonGridContainer",
19
16
  componentId: "sc-1no5512-1"
20
17
  })(["display:grid;grid-template-columns:repeat(2,1fr);gap:10px;justify-items:center;align-items:center;", "{min-width:150px;max-width:300px;width:100%;}@media screen and (max-width:767px){grid-template-columns:repeat(1,1fr);", "{max-width:400px;}}"], _Button.default, _Button.default);
21
- exports.ButtonGridContainer = ButtonGridContainer;
22
- var _default = ButtonContainer;
23
- exports.default = _default;
18
+ var _default = exports.default = ButtonContainer;