@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.
- package/dist/api/StokrWeb3.js +3 -3
- package/dist/api/auth.js +16 -53
- package/dist/api/fetchData.js +26 -66
- package/dist/api/fetchDataPublic.js +20 -57
- package/dist/components/2FA/Connect2FA.js +10 -11
- package/dist/components/2FA/EnterCode.js +32 -30
- package/dist/components/2FA/EnterCode.stories.js +4 -8
- package/dist/components/2FA/InstallAuthApp.js +8 -9
- package/dist/components/2FA/ResetCode.js +11 -12
- package/dist/components/2FA/Sucess2FA.js +12 -16
- package/dist/components/2FA/disable-2fa-flow.js +53 -104
- package/dist/components/2FA/disable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/enable-2fa-flow.js +73 -144
- package/dist/components/2FA/enable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/index.js +9 -9
- package/dist/components/2FA/login-with-otp-flow.js +126 -206
- package/dist/components/2FA/login-with-otp-flow.stories.js +4 -8
- package/dist/components/2FA/main-flow.js +70 -144
- package/dist/components/2FA/main-flow.stories.js +4 -8
- package/dist/components/AccountBalance/AccountBalance.js +14 -13
- package/dist/components/AccountBalance/AccountBalance.stories.js +6 -12
- package/dist/components/AccountBalance/AccountBalance.styles.js +9 -17
- package/dist/components/AdminDashboard/Table/ReactTable.js +77 -84
- package/dist/components/AdminDashboard/Table/ReactTable.stories.js +87 -63
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +24 -30
- package/dist/components/AdminDashboard/Table/Table.js +88 -123
- package/dist/components/AdminDashboard/Table/Table.styles.js +28 -90
- package/dist/components/AgreementItem/AgreementItem.js +10 -11
- package/dist/components/AgreementItem/AgreementItem.stories.js +5 -10
- package/dist/components/AgreementItem/AgreementItem.styles.js +8 -12
- package/dist/components/AnalyticGraphs/Analytic.js +504 -743
- package/dist/components/AnalyticGraphs/Analytic.styles.js +14 -26
- package/dist/components/BackButton/BackButton.js +9 -10
- package/dist/components/BackButton/BackButton.stories.js +4 -8
- package/dist/components/BackButton/BackButton.styles.js +13 -51
- package/dist/components/Background/Background.js +12 -11
- package/dist/components/Background/Background.stories.js +8 -14
- package/dist/components/Background/Background.styles.js +17 -33
- package/dist/components/BarChart/BarChart.js +138 -181
- package/dist/components/BarChart/BarChart.stories.js +5 -10
- package/dist/components/BarChart/BarChart.styles.js +8 -15
- package/dist/components/BarChartLegend/BarChartLegend.js +40 -67
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +5 -10
- package/dist/components/BasicTable/BasicTable.js +12 -13
- package/dist/components/BasicTable/BasicTable.stories.js +5 -10
- package/dist/components/BasicTable/BasicTable.styles.js +11 -27
- package/dist/components/BlogPost/BlogPost.js +34 -53
- package/dist/components/BlogPost/BlogPost.stories.js +33 -46
- package/dist/components/BlogPost/BlogPost.styles.js +67 -59
- package/dist/components/Button/Button-stoDetails.js +150 -129
- package/dist/components/Button/Button.stories.js +27 -44
- package/dist/components/Button/Button.styles.js +24 -62
- package/dist/components/Button/GlareButton.js +61 -89
- package/dist/components/Button/GlareButton.stories.js +19 -29
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +5 -10
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +4 -8
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +9 -10
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +8 -17
- package/dist/components/Card/Card.styles.js +14 -41
- package/dist/components/ChartBox/ChartBox.js +5 -8
- package/dist/components/ChartBox/ChartBox.stories.js +3 -6
- package/dist/components/ChartBox/ChartBox.styles.js +8 -14
- package/dist/components/ChartBox/ChartBoxDistribution.js +5 -8
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +3 -6
- package/dist/components/ChartLegend/ChartLegend.js +30 -46
- package/dist/components/ChartLegend/ChartLegend.stories.js +22 -28
- package/dist/components/ChartLegend/ChartLegend.styles.js +16 -41
- package/dist/components/Checkbox/Checkbox.js +32 -32
- package/dist/components/Checkbox/Checkbox.stories.js +5 -10
- package/dist/components/Checkbox/Checkbox.styles.js +10 -23
- package/dist/components/Checklist/ChecklistCard.js +33 -35
- package/dist/components/Checklist/ChecklistCard.stories.js +77 -100
- package/dist/components/Checklist/ChecklistCard.styles.js +12 -15
- package/dist/components/Chips/Chip.js +14 -13
- package/dist/components/Chips/Chip.stories.js +10 -19
- package/dist/components/Chips/Chip.styles.js +14 -14
- package/dist/components/Chips/ChipWrapper.js +23 -41
- package/dist/components/Chips/ChipsWrapper.stories.js +9 -17
- package/dist/components/ComponentScroll/ComponentScroll.js +25 -34
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +16 -23
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +22 -47
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +7 -61
- package/dist/components/CryptoAddress/ComponentWrap.js +10 -11
- package/dist/components/CryptoAddress/CryptoAddress.js +51 -68
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +7 -13
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +55 -124
- package/dist/components/CryptoAddress/RadioWrap.js +9 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +24 -25
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +5 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +12 -42
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +10 -9
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +16 -27
- package/dist/components/DonutChart/DonutChart.js +101 -130
- package/dist/components/DonutChart/DonutChart.stories.js +4 -8
- package/dist/components/DonutChart/DonutChart.styles.js +15 -27
- package/dist/components/DoubleButton/DoubleButton.styles.js +8 -8
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +3 -5
- package/dist/components/FAQ/FAQ.js +29 -45
- package/dist/components/FAQ/FAQ.stories.js +4 -9
- package/dist/components/FAQ/FAQ.styles.js +23 -39
- package/dist/components/Footer/Footer.js +9 -10
- package/dist/components/Footer/Footer.stories.js +6 -12
- package/dist/components/Footer/Footer.styles.js +22 -46
- package/dist/components/Footer/FooterLayout.js +16 -20
- package/dist/components/Footer/FooterLayout.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.js +61 -83
- package/dist/components/Footer/FooterMenu.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.styles.js +16 -39
- package/dist/components/Footer/index.js +4 -4
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +92 -114
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +4 -8
- package/dist/components/Form/Form.js +15 -14
- package/dist/components/Form/Form.stories.js +4 -8
- package/dist/components/Form/Form.styles.js +16 -36
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +7 -12
- package/dist/components/Grid/Grid.styles.js +17 -68
- package/dist/components/Header/Header.js +98 -163
- package/dist/components/Header/Header.stories.js +17 -28
- package/dist/components/Header/Header.styles.js +61 -124
- package/dist/components/HeroBlock/HeroVideoBlock.js +20 -25
- package/dist/components/Icon/Icon.style.js +10 -22
- package/dist/components/Icon/Icon2.js +11 -13
- package/dist/components/InfoIcon/InfoIcon.js +18 -17
- package/dist/components/InfoIcon/InfoIcon.stories.js +5 -10
- package/dist/components/InfoIcon/InfoIcon.styles.js +5 -21
- package/dist/components/InfoPanel/InfoPanel.js +26 -48
- package/dist/components/Input/DatePickerInput.js +21 -33
- package/dist/components/Input/DatePickerInput.stories.js +5 -10
- package/dist/components/Input/DatePickerInput.styles.js +5 -19
- package/dist/components/Input/Input.js +43 -51
- package/dist/components/Input/Input.stories.js +9 -16
- package/dist/components/Input/Input.styles.js +8 -43
- package/dist/components/Input/InputPassword.js +30 -50
- package/dist/components/Input/InputPassword.stories.js +6 -12
- package/dist/components/Input/InputPassword.styles.js +30 -57
- package/dist/components/Input/InputUsername.js +83 -102
- package/dist/components/Input/InputWithButton.js +20 -19
- package/dist/components/Input/InputWithButton.stories.js +5 -9
- package/dist/components/Input/InputWithButton.styles.js +7 -19
- package/dist/components/Input/OtpInput.js +27 -42
- package/dist/components/Input/OtpInput.stories.js +5 -11
- package/dist/components/Input/RangeInput.js +29 -25
- package/dist/components/Input/RangeInput.stories.js +4 -8
- package/dist/components/Input/RangeInput.styles.js +15 -42
- package/dist/components/Input/Select.js +68 -89
- package/dist/components/Input/Select.stories.js +6 -12
- package/dist/components/Input/Select.styles.js +12 -32
- package/dist/components/InvestCalculator/InvestCalculator.js +245 -243
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +18 -21
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +14 -33
- package/dist/components/InvestmentStat/InvestmentStat.js +11 -10
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +5 -10
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +12 -24
- package/dist/components/KYCFlow/BasicInfo.js +419 -460
- package/dist/components/KYCFlow/Confirmation.js +12 -17
- package/dist/components/KYCFlow/DocumentFileUpload.js +214 -227
- package/dist/components/KYCFlow/DocumentScan.js +16 -15
- package/dist/components/KYCFlow/DocumentScanUpload.js +203 -210
- package/dist/components/KYCFlow/DocumentSelect.js +87 -117
- package/dist/components/KYCFlow/DocumentSuccess.js +14 -15
- package/dist/components/KYCFlow/DocumentUpload.js +10 -11
- package/dist/components/KYCFlow/DocumentVerificationType.js +98 -128
- package/dist/components/KYCFlow/FaceScan.js +10 -11
- package/dist/components/KYCFlow/FaceScanRecognition.js +14 -13
- package/dist/components/KYCFlow/FaceScanSuccess.js +10 -13
- package/dist/components/KYCFlow/Terms.js +90 -113
- package/dist/components/KYCFlow/_styles.js +37 -86
- package/dist/components/KYCFlow/index.js +14 -14
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +7 -19
- package/dist/components/LatestUpdate/LatestUpdate.js +12 -11
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +5 -10
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +15 -28
- package/dist/components/Layout/Layout-func-no-work.js +24 -24
- package/dist/components/Layout/Layout.js +47 -68
- package/dist/components/Layout/Layout.stories.js +5 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +13 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +5 -10
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +10 -22
- package/dist/components/LearnMorePage/LearnMore.js +134 -174
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +7 -22
- package/dist/components/LearnMorePage/LearnMore.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMore.styles.js +24 -74
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +3 -5
- package/dist/components/LearnMorePage/LearnMoreItem.js +11 -16
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +18 -54
- package/dist/components/LearnMoreSection/LearnMore.js +119 -158
- package/dist/components/LearnMoreSection/LearnMore.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMore.styles.js +15 -41
- package/dist/components/LearnMoreSection/LearnMoreItem.js +14 -15
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +9 -23
- package/dist/components/LoginModal/LoginModal.js +35 -41
- package/dist/components/LoginModal/LoginModal.stories.js +8 -12
- package/dist/components/MainMenu/DynamicMainMenu.js +11 -14
- package/dist/components/MainMenu/MainMenu.js +157 -190
- package/dist/components/MainMenu/MainMenu.styles.js +48 -89
- package/dist/components/MatomoConnect/Matomo.js +201 -463
- package/dist/components/MenuNav/MenuNav.styles.js +5 -9
- package/dist/components/Modal/Modal.js +46 -48
- package/dist/components/Modal/Modal.stories.js +8 -16
- package/dist/components/Modal/Modal.styles.js +34 -96
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +69 -95
- package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +22 -43
- package/dist/components/Modal/PaymentModal.js +43 -54
- package/dist/components/Modal/PaymentModal.stories.js +4 -8
- package/dist/components/MultiProgressBar/MultiProgressBar.js +19 -23
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +6 -12
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +9 -22
- package/dist/components/Newsletter/Newsletter.js +65 -100
- package/dist/components/Newsletter/Newsletter.stories.js +4 -8
- package/dist/components/Newsletter/Newsletter.styles.js +47 -44
- package/dist/components/NotificationContext/NotificationContext.js +93 -125
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +4 -16
- package/dist/components/Number/Number.js +13 -10
- package/dist/components/Number/Number.stories.js +23 -41
- package/dist/components/Number/Number.styles.js +4 -10
- package/dist/components/PageTransition/PageTransition.js +16 -19
- package/dist/components/Pagination/Pagination.js +22 -25
- package/dist/components/Pagination/Pagination.stories.js +29 -36
- package/dist/components/Pagination/Pagination.styles.js +8 -15
- package/dist/components/Pagination/PaginationControls.js +32 -36
- package/dist/components/Pagination/PaginationControls.stories.js +33 -62
- package/dist/components/Pagination/usePagination.js +29 -37
- package/dist/components/Process/Process.stories.js +6 -12
- package/dist/components/Process/Process.styles.js +6 -16
- package/dist/components/ProfileBadge/ProfileBadge.js +12 -11
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +5 -9
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +13 -19
- package/dist/components/ProfileBox/ProfileBox.js +15 -17
- package/dist/components/ProfileBox/ProfileBox.stories.js +5 -9
- package/dist/components/ProfileBox/ProfileBox.styles.js +9 -21
- package/dist/components/ProfileHeader/ProfileHeader.js +163 -199
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +24 -46
- package/dist/components/ProfileStat/ProfileStat.js +12 -11
- package/dist/components/ProfileStat/ProfileStat.stories.js +6 -12
- package/dist/components/ProfileStat/ProfileStat.styles.js +9 -23
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +20 -36
- package/dist/components/QRCode/QRCode.js +30 -30
- package/dist/components/QRCode/QRCode.stories.js +14 -26
- package/dist/components/ROI/ROI.js +225 -261
- package/dist/components/ROI/ROI.styles.js +13 -25
- package/dist/components/ROI/ROIChart.js +196 -303
- package/dist/components/ROI/ROIChart.styles.js +7 -11
- package/dist/components/ROI/ROIModal.js +13 -20
- package/dist/components/ROI/ROIParkingo.js +208 -244
- package/dist/components/ROI/ROIPixelmatic.js +209 -245
- package/dist/components/ROI/ROIScenarioBox.js +9 -8
- package/dist/components/ROI/ROIScenarioBox.styles.js +10 -33
- package/dist/components/Radio/Radio.js +19 -18
- package/dist/components/Radio/Radio.stories.js +4 -8
- package/dist/components/Radio/Radio.styles.js +5 -14
- package/dist/components/RefreshButton/RefreshButton.js +6 -5
- package/dist/components/RefreshButton/RefreshButton.stories.js +5 -10
- package/dist/components/RefreshButton/RefreshButton.styles.js +9 -24
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +17 -18
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +5 -9
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +3 -4
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +46 -70
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +10 -22
- package/dist/components/RegisterLiquidSteps/complete.js +4 -5
- package/dist/components/RegisterLiquidSteps/flow.js +53 -99
- package/dist/components/RegisterLiquidSteps/index.js +7 -22
- package/dist/components/RegisterLiquidSteps/register-liquid.js +62 -102
- package/dist/components/RegisterModal/RegisterModal.js +82 -118
- package/dist/components/RegisterModal/RegisterModal.stories.js +5 -9
- package/dist/components/RequestDataBox/RequestDataBox.js +9 -8
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +4 -8
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +7 -12
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +10 -11
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +3 -4
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +29 -28
- package/dist/components/SEO/SEO.js +11 -10
- package/dist/components/SEO/SEO.stories.js +4 -8
- package/dist/components/SectionTitle/SectionTitle.styles.js +3 -5
- package/dist/components/ShareButton/ShareButton.js +132 -145
- package/dist/components/SideLine/SideLine.js +3 -6
- package/dist/components/SideLine/SideLine.stories.js +3 -6
- package/dist/components/SideLine/SideLine.styles.js +6 -12
- package/dist/components/SigningSubflow/SignSubIntro.js +9 -8
- package/dist/components/SigningSubflow/_styles.js +9 -20
- package/dist/components/SigningSubflow/index.js +5 -5
- package/dist/components/Slider/Slider.js +16 -16
- package/dist/components/Slider/Slider.stories.js +5 -10
- package/dist/components/Slider/Slider.styles.js +5 -8
- package/dist/components/SpanButton/SpanButton.styles.js +3 -6
- package/dist/components/StatusBadge/StatusBadge.styles.js +4 -10
- package/dist/components/StepController/StepController.js +49 -74
- package/dist/components/StepController/StepController.stories.js +4 -8
- package/dist/components/StepController/StepController.styles.js +6 -12
- package/dist/components/StepController/StepControllerContext.js +46 -68
- package/dist/components/StepController/StepControllerProgress.js +16 -19
- package/dist/components/StepController/StepControllerProgress.stories.js +4 -8
- package/dist/components/StepsProgress/StepsProgress.js +44 -58
- package/dist/components/StepsProgress/StepsProgress.stories.js +33 -35
- package/dist/components/StepsProgress/StepsProgress.styles.js +7 -15
- package/dist/components/StokrLoader/StokrLoader.js +20 -23
- package/dist/components/StokrLoader/media.js +5 -7
- package/dist/components/SvgIcons/AdminBadgeSvg.js +16 -19
- package/dist/components/SvgIcons/CameraSvg.js +26 -29
- package/dist/components/SvgIcons/CapsLockSvg.js +21 -24
- package/dist/components/SvgIcons/DocumentBackSvg.js +25 -28
- package/dist/components/SvgIcons/DocumentSmallSvg.js +51 -54
- package/dist/components/SvgIcons/DocumentSvg.js +28 -31
- package/dist/components/SvgIcons/Early.js +14 -17
- package/dist/components/SvgIcons/EthSvg.js +30 -33
- package/dist/components/SvgIcons/EurSvg.js +16 -19
- package/dist/components/SvgIcons/FaceScanIconSvg.js +21 -24
- package/dist/components/SvgIcons/FourSvg.js +11 -14
- package/dist/components/SvgIcons/Glassess.js +19 -22
- package/dist/components/SvgIcons/LogoSvg.js +14 -17
- package/dist/components/SvgIcons/OneSvg.js +13 -16
- package/dist/components/SvgIcons/PassportSvg.js +46 -49
- package/dist/components/SvgIcons/RefreshSvg.js +17 -20
- package/dist/components/SvgIcons/SocialFacebook.js +20 -23
- package/dist/components/SvgIcons/SocialInstagram.js +11 -14
- package/dist/components/SvgIcons/SocialLinkedIn.js +25 -28
- package/dist/components/SvgIcons/SocialMedium.js +15 -18
- package/dist/components/SvgIcons/SocialReddit.js +15 -18
- package/dist/components/SvgIcons/SocialTelegram.js +49 -52
- package/dist/components/SvgIcons/SocialTwitter.js +44 -47
- package/dist/components/SvgIcons/SocialYoutube.js +15 -18
- package/dist/components/SvgIcons/ThreeSvg.js +10 -13
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +72 -75
- package/dist/components/SvgIcons/TwoSvg.js +13 -16
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +19 -22
- package/dist/components/SvgIcons/UpdateHardSvg.js +15 -18
- package/dist/components/SvgIcons/UpdateSoftSvg.js +17 -20
- package/dist/components/SvgIcons/UploadSvg.js +24 -27
- package/dist/components/SvgIcons/VerifiedBadge.js +13 -16
- package/dist/components/SvgIcons/index.js +32 -32
- package/dist/components/Switch/Switch.js +23 -37
- package/dist/components/Switch/Switch.stories.js +8 -14
- package/dist/components/Switch/Switch.styles.js +8 -33
- package/dist/components/Tabs/Tabs.js +19 -21
- package/dist/components/Tabs/Tabs.stories.js +4 -8
- package/dist/components/Tabs/Tabs.styles.js +4 -6
- package/dist/components/TabsNav/TabNav.js +14 -13
- package/dist/components/TabsNav/TabNav.stories.js +5 -10
- package/dist/components/TabsNav/TabsNav.js +14 -14
- package/dist/components/TabsNav/TabsNav.stories.js +4 -8
- package/dist/components/TabsNav/TabsNav.styles.js +10 -25
- package/dist/components/TeamOverview/TeamOverview.js +38 -84
- package/dist/components/TeamOverview/TeamOverview.stories.js +5 -10
- package/dist/components/TeamOverview/TeamOverview.styles.js +18 -35
- package/dist/components/TermsModal/TermsModal.js +49 -79
- package/dist/components/TermsModal/TermsModal.stories.js +4 -8
- package/dist/components/TermsModal/_styles.js +35 -100
- package/dist/components/Text/Headline.js +15 -14
- package/dist/components/Text/Headline.stories.js +4 -8
- package/dist/components/Text/StyledText.js +5 -8
- package/dist/components/Text/Text.stories.js +5 -10
- package/dist/components/Text/Text.styles.js +15 -37
- package/dist/components/TextLink/TextLink.styles.js +6 -17
- package/dist/components/ToDoList/ToDoList.js +76 -85
- package/dist/components/ToDoList/ToDoList.stories.js +7 -14
- package/dist/components/ToDoList/ToDoList.styles.js +34 -43
- package/dist/components/ToDoList/ToDoListTask.js +22 -35
- package/dist/components/ToDoList/ToDoListTask.stories.js +5 -10
- package/dist/components/ToDoList/ToDoListTask.styles.js +13 -40
- package/dist/components/TransactionDetails/TransactionDetails.js +9 -19
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +5 -10
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +6 -15
- package/dist/components/TransactionInfo/TransactionInfo.js +18 -17
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +4 -8
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +10 -31
- package/dist/components/TwoFactorModal/TwoFactorModal.js +72 -94
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +49 -48
- package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +6 -11
- package/dist/components/breakdown/Breakdown.js +38 -36
- package/dist/components/breakdown/index.js +3 -5
- package/dist/components/headerHo/HeaderHo.js +585 -769
- package/dist/components/headerHo/HeaderHo.stories.js +9 -13
- package/dist/components/headerHo/index.js +3 -5
- package/dist/components/icons/Arrow.js +43 -46
- package/dist/components/icons/Arrow.stories.js +7 -14
- package/dist/components/icons/ArrowSimple.js +32 -35
- package/dist/components/icons/ArrowSimple.stories.js +7 -14
- package/dist/components/icons/Check.js +28 -31
- package/dist/components/icons/Check.stories.js +3 -6
- package/dist/components/icons/Facebook.js +11 -14
- package/dist/components/icons/Facebook.stories.js +3 -6
- package/dist/components/icons/Info.js +40 -43
- package/dist/components/icons/Info.stories.js +3 -6
- package/dist/components/icons/Instagram.js +11 -14
- package/dist/components/icons/Instagram.stories.js +3 -6
- package/dist/components/icons/LinkIcon.js +19 -22
- package/dist/components/icons/LinkIcon.stories.js +3 -6
- package/dist/components/icons/LinkedIn.js +28 -31
- package/dist/components/icons/LinkedIn.stories.js +3 -6
- package/dist/components/icons/Medium.js +27 -30
- package/dist/components/icons/Medium.stories.js +3 -6
- package/dist/components/icons/Reddit.js +17 -20
- package/dist/components/icons/Reddit.stories.js +3 -6
- package/dist/components/icons/Share.js +47 -50
- package/dist/components/icons/Share.stories.js +3 -6
- package/dist/components/icons/Telegram.js +27 -30
- package/dist/components/icons/Telegram.stories.js +3 -6
- package/dist/components/icons/Twitter.js +11 -14
- package/dist/components/icons/Twitter.stories.js +3 -6
- package/dist/components/icons/X.js +11 -14
- package/dist/components/icons/X.stories.js +3 -6
- package/dist/components/icons/Youtube.js +11 -14
- package/dist/components/icons/Youtube.stories.js +3 -6
- package/dist/components/icons/index.js +15 -15
- package/dist/components/landing-page/List.js +3 -5
- package/dist/components/landing-page/PageContent.js +5 -7
- package/dist/components/landing-page/PageText.js +12 -16
- package/dist/components/landing-page/PageTitle.js +16 -47
- package/dist/components/logo/Logo.js +49 -71
- package/dist/components/logo/index.js +3 -5
- package/dist/components/renderToBody/index.js +3 -5
- package/dist/components/renderToBody/renderToBody.js +39 -60
- package/dist/components/taxId/TaxId.stories.js +11 -16
- package/dist/components/taxId/complete.js +9 -11
- package/dist/components/taxId/flow.js +22 -34
- package/dist/components/taxId/index.js +4 -4
- package/dist/components/taxId/register-taxid.js +54 -92
- package/dist/components/video/Video.js +69 -84
- package/dist/components/video/Video.stories.js +5 -9
- package/dist/components/video/index.js +3 -5
- package/dist/constants/globalVariables.js +10 -20
- package/dist/constants/style.js +23 -46
- package/dist/context/Auth.js +247 -340
- package/dist/context/AuthContext.js +545 -1023
- package/dist/context/Checkbox/CheckboxContext.js +65 -117
- package/dist/firebase-config.js +4 -6
- package/dist/hooks/useNewVentureForm.js +128 -193
- package/dist/hooks/useTimer.js +29 -51
- package/dist/index.js +134 -134
- package/dist/model/axios.js +4 -5
- package/dist/model/axiosPublic.js +4 -5
- package/dist/services/TimerService.js +70 -89
- package/dist/static/images/copy_icon.svg +4 -0
- package/dist/styles/colors.js +2 -4
- package/dist/styles/fonts.js +3 -4
- package/dist/styles/global.js +3 -4
- package/dist/styles/grid.js +4 -5
- package/dist/styles/reactTippy.js +3 -4
- package/dist/styles/rwd.js +12 -26
- package/dist/styles/semanticUi.js +3 -4
- package/dist/styles/spacing.js +2 -3
- package/dist/styles/theme.js +6 -9
- package/dist/utils/allowed-countries-list.js +2 -3
- package/dist/utils/analytics.js +32 -48
- package/dist/utils/check-sale-time-left.js +37 -39
- package/dist/utils/check-todo-status.js +3 -4
- package/dist/utils/checklistGenerator.js +46 -46
- package/dist/utils/copyToClipboard.js +65 -131
- package/dist/utils/countries-list.js +2 -3
- package/dist/utils/customHooks.js +40 -67
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/fix-decimals.js +4 -5
- package/dist/utils/formatCurrencyValue.js +41 -52
- package/dist/utils/get-cookie-domain.js +3 -4
- package/dist/utils/get-short-address.js +1 -3
- package/dist/utils/isUSInvestor.js +2 -4
- package/dist/utils/km_ify.js +3 -3
- package/dist/utils/lock-body.js +3 -5
- package/dist/utils/moment.js +10 -12
- package/dist/utils/redirect-url.js +2 -3
- package/dist/utils/saveAs.js +5 -5
- package/dist/utils/scrollUtils.js +33 -36
- package/dist/utils/set-redirect-cookie.js +6 -7
- package/dist/utils/withRouter.js +6 -6
- package/package.json +134 -141
|
@@ -7,31 +7,29 @@ exports.default = exports.MultiProgressBarPropTypes = exports.MultiProgressBar =
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _MultiProgressBar = require("./MultiProgressBar.styles");
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})), /*#__PURE__*/_react.default.createElement(_MultiProgressBar.FillProgress, {
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const MultiProgressBar = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
backParts,
|
|
14
|
+
fillParts,
|
|
15
|
+
fill
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_MultiProgressBar.Bar, null, /*#__PURE__*/_react.default.createElement(_MultiProgressBar.BackBar, null, backParts.map(part => /*#__PURE__*/_react.default.createElement(_MultiProgressBar.BarPart, {
|
|
18
|
+
key: part.label,
|
|
19
|
+
percent: part.value,
|
|
20
|
+
color: "back-".concat(part.label)
|
|
21
|
+
}))), /*#__PURE__*/_react.default.createElement(_MultiProgressBar.FillProgress, {
|
|
22
22
|
percent: fill
|
|
23
23
|
}, /*#__PURE__*/_react.default.createElement(_MultiProgressBar.FillBar, {
|
|
24
24
|
percent: fill
|
|
25
|
-
}, fillParts.map(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
}))));
|
|
25
|
+
}, fillParts.map(part => /*#__PURE__*/_react.default.createElement(_MultiProgressBar.BarPart, {
|
|
26
|
+
key: part.label,
|
|
27
|
+
percent: part.value,
|
|
28
|
+
color: "fill-".concat(part.label)
|
|
29
|
+
})))));
|
|
32
30
|
};
|
|
33
31
|
exports.MultiProgressBar = MultiProgressBar;
|
|
34
|
-
|
|
32
|
+
const MultiProgressBarPropTypes = exports.MultiProgressBarPropTypes = {
|
|
35
33
|
backParts: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
36
34
|
value: _propTypes.default.number.isRequired,
|
|
37
35
|
label: _propTypes.default.string.isRequired
|
|
@@ -42,7 +40,5 @@ var MultiProgressBarPropTypes = {
|
|
|
42
40
|
})).isRequired,
|
|
43
41
|
fill: _propTypes.default.number.isRequired
|
|
44
42
|
};
|
|
45
|
-
exports.MultiProgressBarPropTypes = MultiProgressBarPropTypes;
|
|
46
43
|
MultiProgressBar.propTypes = MultiProgressBarPropTypes;
|
|
47
|
-
var _default = MultiProgressBar;
|
|
48
|
-
exports.default = _default;
|
|
44
|
+
var _default = exports.default = MultiProgressBar;
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _MultiProgressBar = _interopRequireDefault(require("./MultiProgressBar"));
|
|
9
9
|
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
10
|
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
var _default = {
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
var _default = exports.default = {
|
|
13
13
|
title: 'Components Library/Multi Progress Bar',
|
|
14
14
|
component: _MultiProgressBar.default,
|
|
15
15
|
argTypes: {
|
|
@@ -37,20 +37,15 @@ var _default = {
|
|
|
37
37
|
}; // backpart: minumum fill
|
|
38
38
|
// fillparts: maximum fill
|
|
39
39
|
// fill: fill between min and max
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_MultiProgressBar.default, args)));
|
|
43
|
-
};
|
|
44
|
-
var MPBarMin30 = Template.bind({});
|
|
45
|
-
exports.MPBarMin30 = MPBarMin30;
|
|
40
|
+
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(_MultiProgressBar.default, args)));
|
|
41
|
+
const MPBarMin30 = exports.MPBarMin30 = Template.bind({});
|
|
46
42
|
MPBarMin30.args = {
|
|
47
43
|
backParts: [{
|
|
48
44
|
value: 30,
|
|
49
45
|
label: 'backparts - minumum fill'
|
|
50
46
|
}]
|
|
51
47
|
};
|
|
52
|
-
|
|
53
|
-
exports.MPBarMax70Fill65 = MPBarMax70Fill65;
|
|
48
|
+
const MPBarMax70Fill65 = exports.MPBarMax70Fill65 = Template.bind({});
|
|
54
49
|
MPBarMax70Fill65.args = {
|
|
55
50
|
fillParts: [{
|
|
56
51
|
value: 70,
|
|
@@ -58,8 +53,7 @@ MPBarMax70Fill65.args = {
|
|
|
58
53
|
}],
|
|
59
54
|
fill: 65
|
|
60
55
|
};
|
|
61
|
-
|
|
62
|
-
exports.MPBarAllparts = MPBarAllparts;
|
|
56
|
+
const MPBarAllparts = exports.MPBarAllparts = Template.bind({});
|
|
63
57
|
MPBarAllparts.args = {
|
|
64
58
|
backParts: [{
|
|
65
59
|
value: 7,
|
|
@@ -5,37 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.FillProgress = exports.FillBar = exports.BarPart = exports.Bar = exports.BackBar = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const Bar = exports.Bar = _styledComponents.default.div.withConfig({
|
|
10
10
|
displayName: "MultiProgressBarstyles__Bar",
|
|
11
11
|
componentId: "sc-1sn65pk-0"
|
|
12
12
|
})(["width:100%;position:relative;display:block;height:10px;background-color:#004bb7;border-radius:5px;overflow:hidden;"]);
|
|
13
|
-
exports.
|
|
14
|
-
var BackBar = _styledComponents.default.div.withConfig({
|
|
13
|
+
const BackBar = exports.BackBar = _styledComponents.default.div.withConfig({
|
|
15
14
|
displayName: "MultiProgressBarstyles__BackBar",
|
|
16
15
|
componentId: "sc-1sn65pk-1"
|
|
17
16
|
})(["z-index:0;position:absolute;top:0;left:0;display:block;width:100%;height:100%;border-radius:4px;overflow:hidden;"]);
|
|
18
|
-
exports.
|
|
19
|
-
var FillBar = _styledComponents.default.div.withConfig({
|
|
17
|
+
const FillBar = exports.FillBar = _styledComponents.default.div.withConfig({
|
|
20
18
|
displayName: "MultiProgressBarstyles__FillBar",
|
|
21
19
|
componentId: "sc-1sn65pk-2"
|
|
22
|
-
})(["z-index:1;position:absolute;top:0;left:0;display:block;width:100%;height:100%;border-radius:4px;overflow:hidden;transition:transform 0.3s;transform:translateX(100%);", ""],
|
|
23
|
-
|
|
24
|
-
});
|
|
25
|
-
exports.FillBar = FillBar;
|
|
26
|
-
var FillProgress = _styledComponents.default.div.withConfig({
|
|
20
|
+
})(["z-index:1;position:absolute;top:0;left:0;display:block;width:100%;height:100%;border-radius:4px;overflow:hidden;transition:transform 0.3s;transform:translateX(100%);", ""], props => props.percent && "\n transform: translateX(".concat(100 - props.percent, "%);\n "));
|
|
21
|
+
const FillProgress = exports.FillProgress = _styledComponents.default.div.withConfig({
|
|
27
22
|
displayName: "MultiProgressBarstyles__FillProgress",
|
|
28
23
|
componentId: "sc-1sn65pk-3"
|
|
29
|
-
})(["z-index:1;position:absolute;top:0;left:0;display:block;width:100%;height:100%;border-radius:4px;overflow:hidden;transition:transform 0.3s;transform:translateX(-100%);", ""],
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
exports.FillProgress = FillProgress;
|
|
33
|
-
var BarPart = _styledComponents.default.div.withConfig({
|
|
24
|
+
})(["z-index:1;position:absolute;top:0;left:0;display:block;width:100%;height:100%;border-radius:4px;overflow:hidden;transition:transform 0.3s;transform:translateX(-100%);", ""], props => props.percent && "\n transform: translateX(".concat(props.percent - 100, "%);\n "));
|
|
25
|
+
const BarPart = exports.BarPart = _styledComponents.default.div.withConfig({
|
|
34
26
|
displayName: "MultiProgressBarstyles__BarPart",
|
|
35
27
|
componentId: "sc-1sn65pk-4"
|
|
36
|
-
})(["display:block;height:100%;float:left;background-color:#000;transition:width 0.3s;", " ", ""],
|
|
37
|
-
return "\n width: ".concat(props.percent || 0, "%;\n ");
|
|
38
|
-
}, function (props) {
|
|
39
|
-
return props.color && "\n ".concat(props.color === 'back-empty' ? "\n background-color: transparent;\n " : '', "\n ").concat(props.color === 'back-minimum' ? "\n background-color: #4a90e2;\n " : '', "\n ").concat(props.color === 'back-disabled' ? "\n background-color: #4a90e2;\n background-image: repeating-linear-gradient(-45deg, #004bb7, #004bb7 2px, #4a90e2 2px, #4a90e2 5px);\n " : '', "\n ").concat(props.color === 'fill-empty' ? "\n background-color: transparent;\n " : '', "\n ").concat(props.color === 'fill-minimum' ? "\n background-color: #fff;\n " : '', "\n ").concat(props.color === 'fill-minimum-grey' ? "\n background-color: #e1e1e1;\n " : '', "\n ").concat(props.color === 'fill-bought' ? "\n background-color: #69bd53;\n background-image: linear-gradient(to left, #a9ef9c, #69bd53);\n " : '', "\n ");
|
|
40
|
-
});
|
|
41
|
-
exports.BarPart = BarPart;
|
|
28
|
+
})(["display:block;height:100%;float:left;background-color:#000;transition:width 0.3s;", " ", ""], props => "\n width: ".concat(props.percent || 0, "%;\n "), props => props.color && "\n ".concat(props.color === 'back-empty' ? "\n background-color: transparent;\n " : '', "\n ").concat(props.color === 'back-minimum' ? "\n background-color: #4a90e2;\n " : '', "\n ").concat(props.color === 'back-disabled' ? "\n background-color: #4a90e2;\n background-image: repeating-linear-gradient(-45deg, #004bb7, #004bb7 2px, #4a90e2 2px, #4a90e2 5px);\n " : '', "\n ").concat(props.color === 'fill-empty' ? "\n background-color: transparent;\n " : '', "\n ").concat(props.color === 'fill-minimum' ? "\n background-color: #fff;\n " : '', "\n ").concat(props.color === 'fill-minimum-grey' ? "\n background-color: #e1e1e1;\n " : '', "\n ").concat(props.color === 'fill-bought' ? "\n background-color: #69bd53;\n background-image: linear-gradient(to left, #a9ef9c, #69bd53);\n " : '', "\n "));
|
|
@@ -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,39 +7,28 @@ exports.default = void 0;
|
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
8
|
var _fetchDataPublic = _interopRequireDefault(require("../../api/fetchDataPublic"));
|
|
10
9
|
var _Newsletter = require("./Newsletter.styles");
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
15
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
16
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
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); }
|
|
17
12
|
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; }
|
|
18
13
|
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; }
|
|
19
|
-
function _defineProperty(
|
|
20
|
-
function _toPropertyKey(
|
|
21
|
-
function _toPrimitive(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
formData = _useState2[0],
|
|
38
|
-
setFormData = _useState2[1];
|
|
39
|
-
var validateForm = function validateForm() {
|
|
40
|
-
var name = formData.name,
|
|
41
|
-
email = formData.email;
|
|
42
|
-
var errorName = '';
|
|
43
|
-
var errorEmail = '';
|
|
14
|
+
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; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
16
|
+
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); }
|
|
17
|
+
const Newsletter = () => {
|
|
18
|
+
const [formData, setFormData] = (0, _react.useState)({
|
|
19
|
+
name: '',
|
|
20
|
+
email: '',
|
|
21
|
+
errorName: '',
|
|
22
|
+
errorEmail: '',
|
|
23
|
+
submitSuccess: false
|
|
24
|
+
});
|
|
25
|
+
const validateForm = () => {
|
|
26
|
+
const {
|
|
27
|
+
name,
|
|
28
|
+
email
|
|
29
|
+
} = formData;
|
|
30
|
+
let errorName = '';
|
|
31
|
+
let errorEmail = '';
|
|
44
32
|
if (!name) {
|
|
45
33
|
errorName = "Oops, this can't be blank";
|
|
46
34
|
}
|
|
@@ -49,75 +37,53 @@ var Newsletter = function Newsletter() {
|
|
|
49
37
|
} else if (!/.+@.+\..+/.test(email)) {
|
|
50
38
|
errorEmail = "Oops, that's not a valid address";
|
|
51
39
|
}
|
|
52
|
-
setFormData(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
});
|
|
40
|
+
setFormData(prev => _objectSpread(_objectSpread({}, prev), {}, {
|
|
41
|
+
errorName,
|
|
42
|
+
errorEmail
|
|
43
|
+
}));
|
|
58
44
|
return !errorName && !errorEmail;
|
|
59
45
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
name
|
|
63
|
-
value
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
68
|
-
var handleSubmit = /*#__PURE__*/function () {
|
|
69
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
70
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
71
|
-
while (1) switch (_context.prev = _context.next) {
|
|
72
|
-
case 0:
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
if (validateForm()) {
|
|
75
|
-
_context.next = 3;
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
return _context.abrupt("return");
|
|
79
|
-
case 3:
|
|
80
|
-
_context.prev = 3;
|
|
81
|
-
_context.next = 6;
|
|
82
|
-
return (0, _fetchDataPublic.default)('emails/subscribe', {
|
|
83
|
-
name: formData.name,
|
|
84
|
-
email: formData.email,
|
|
85
|
-
listName: 'newsletter'
|
|
86
|
-
});
|
|
87
|
-
case 6:
|
|
88
|
-
setFormData({
|
|
89
|
-
name: '',
|
|
90
|
-
email: '',
|
|
91
|
-
errorName: '',
|
|
92
|
-
errorEmail: '',
|
|
93
|
-
submitSuccess: true
|
|
94
|
-
});
|
|
95
|
-
setTimeout(function () {
|
|
96
|
-
setFormData(function (prev) {
|
|
97
|
-
return _objectSpread(_objectSpread({}, prev), {}, {
|
|
98
|
-
submitSuccess: false
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
}, 5000);
|
|
102
|
-
_context.next = 13;
|
|
103
|
-
break;
|
|
104
|
-
case 10:
|
|
105
|
-
_context.prev = 10;
|
|
106
|
-
_context.t0 = _context["catch"](3);
|
|
107
|
-
console.log("\n### ERROR ADDING SUBSCRIBER ###\n\n".concat(_context.t0));
|
|
108
|
-
case 13:
|
|
109
|
-
case "end":
|
|
110
|
-
return _context.stop();
|
|
111
|
-
}
|
|
112
|
-
}, _callee, null, [[3, 10]]);
|
|
46
|
+
const handleChange = e => {
|
|
47
|
+
const {
|
|
48
|
+
name,
|
|
49
|
+
value
|
|
50
|
+
} = e.target;
|
|
51
|
+
setFormData(prev => _objectSpread(_objectSpread({}, prev), {}, {
|
|
52
|
+
[name]: value
|
|
113
53
|
}));
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
54
|
+
};
|
|
55
|
+
const handleSubmit = async e => {
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
if (!validateForm()) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
await (0, _fetchDataPublic.default)('emails/subscribe', {
|
|
62
|
+
name: formData.name,
|
|
63
|
+
email: formData.email,
|
|
64
|
+
listName: 'newsletter'
|
|
65
|
+
});
|
|
66
|
+
setFormData({
|
|
67
|
+
name: '',
|
|
68
|
+
email: '',
|
|
69
|
+
errorName: '',
|
|
70
|
+
errorEmail: '',
|
|
71
|
+
submitSuccess: true
|
|
72
|
+
});
|
|
73
|
+
setTimeout(() => {
|
|
74
|
+
setFormData(prev => _objectSpread(_objectSpread({}, prev), {}, {
|
|
75
|
+
submitSuccess: false
|
|
76
|
+
}));
|
|
77
|
+
}, 5000);
|
|
78
|
+
} catch (e) {
|
|
79
|
+
console.log("\n### ERROR ADDING SUBSCRIBER ###\n\n".concat(e));
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const isFormValid = () => {
|
|
83
|
+
const {
|
|
84
|
+
name,
|
|
85
|
+
email
|
|
86
|
+
} = formData;
|
|
121
87
|
return name.trim() !== '' && email.trim() !== '' && /.+@.+\..+/.test(email);
|
|
122
88
|
};
|
|
123
89
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Newsletter.Subscribe, null, /*#__PURE__*/_react.default.createElement(_Newsletter.LayoutWrapper, {
|
|
@@ -152,5 +118,4 @@ var Newsletter = function Newsletter() {
|
|
|
152
118
|
disabled: !isFormValid()
|
|
153
119
|
}, formData.submitSuccess ? 'Success!' : 'Submit'))))));
|
|
154
120
|
};
|
|
155
|
-
var _default = Newsletter;
|
|
156
|
-
exports.default = _default;
|
|
121
|
+
var _default = exports.default = Newsletter;
|
|
@@ -7,14 +7,10 @@ exports.default = exports.NewsletterStokr = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Newsletter = _interopRequireDefault(require("./Newsletter"));
|
|
9
9
|
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
var _default = {
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var _default = exports.default = {
|
|
12
12
|
title: 'Components Library/Newsletter',
|
|
13
13
|
component: _Newsletter.default
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_Newsletter.default, args));
|
|
18
|
-
};
|
|
19
|
-
var NewsletterStokr = Template.bind({});
|
|
20
|
-
exports.NewsletterStokr = NewsletterStokr;
|
|
15
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_Newsletter.default, args));
|
|
16
|
+
const NewsletterStokr = exports.NewsletterStokr = Template.bind({});
|
|
@@ -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
|
});
|
|
@@ -9,75 +8,79 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
9
8
|
var _rwd = _interopRequireWildcard(require("../../styles/rwd"));
|
|
10
9
|
var sc = _interopRequireWildcard(require("../../constants/style"));
|
|
11
10
|
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div.withConfig({
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
|
+
const withMarginsCss = (0, _styledComponents.css)(["padding-left:", "px;padding-right:", "px;", " ", ""], sc.BASE_MARGIN * 2, sc.BASE_MARGIN * 2, _rwd.rwdMax.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 0 ", "px;\n "])), sc.BASE_MARGIN * 2), _rwd.rwdMax.Mobile(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 0 ", "px;\n "])), sc.BASE_MARGIN * 2));
|
|
16
|
+
const Container = exports.Container = _styledComponents.default.div.withConfig({
|
|
19
17
|
displayName: "Newsletterstyles__Container",
|
|
20
18
|
componentId: "sc-53m39a-0"
|
|
21
|
-
})(["", ";padding:", ";padding:", ";"],
|
|
22
|
-
|
|
19
|
+
})(["", ";padding:", ";padding:", ";"], _ref => {
|
|
20
|
+
let {
|
|
21
|
+
compact
|
|
22
|
+
} = _ref;
|
|
23
23
|
return !compact && withMarginsCss;
|
|
24
|
-
},
|
|
25
|
-
|
|
24
|
+
}, _ref2 => {
|
|
25
|
+
let {
|
|
26
|
+
isMobile
|
|
27
|
+
} = _ref2;
|
|
26
28
|
return isMobile && '52px 32px 56px !important';
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
+
}, _ref3 => {
|
|
30
|
+
let {
|
|
31
|
+
noPaddingHorizontal
|
|
32
|
+
} = _ref3;
|
|
29
33
|
return noPaddingHorizontal && '52px 0px 56px !important';
|
|
30
34
|
});
|
|
31
|
-
exports.
|
|
32
|
-
var LayoutWrapper = _styledComponents.default.div.withConfig({
|
|
35
|
+
const LayoutWrapper = exports.LayoutWrapper = _styledComponents.default.div.withConfig({
|
|
33
36
|
displayName: "Newsletterstyles__LayoutWrapper",
|
|
34
37
|
componentId: "sc-53m39a-1"
|
|
35
|
-
})(["display:flex;min-height:", ";flex-direction:column;position:relative;max-width:", "px;margin-left:auto;margin-right:auto;width:100%;", " ", " ", ""],
|
|
36
|
-
|
|
38
|
+
})(["display:flex;min-height:", ";flex-direction:column;position:relative;max-width:", "px;margin-left:auto;margin-right:auto;width:100%;", " ", " ", ""], _ref4 => {
|
|
39
|
+
let {
|
|
40
|
+
notFullHeight
|
|
41
|
+
} = _ref4;
|
|
37
42
|
return notFullHeight ? 'unset' : '100vh';
|
|
38
|
-
}, sc.MAX_WIDTH, _rwd.default.Large(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
}, sc.MAX_WIDTH, _rwd.default.Large(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-right: 1px solid ", ";\n border-left: 1px solid ", ";\n "])), sc.GRAY_BASE_HEX, sc.GRAY_BASE_HEX), _ref5 => {
|
|
44
|
+
let {
|
|
45
|
+
minimal
|
|
46
|
+
} = _ref5;
|
|
47
|
+
return minimal && (0, _styledComponents.css)(["min-height:0;"]);
|
|
48
|
+
}, _ref6 => {
|
|
49
|
+
let {
|
|
50
|
+
noBorder
|
|
51
|
+
} = _ref6;
|
|
52
|
+
return noBorder && (0, _styledComponents.css)(["border:none !important;"]);
|
|
44
53
|
});
|
|
45
|
-
exports.
|
|
46
|
-
var Subscribe = _styledComponents.default.div.withConfig({
|
|
54
|
+
const Subscribe = exports.Subscribe = _styledComponents.default.div.withConfig({
|
|
47
55
|
displayName: "Newsletterstyles__Subscribe",
|
|
48
56
|
componentId: "sc-53m39a-2"
|
|
49
|
-
})(["padding:72px 65px 68px;background-color:", ";", ""], sc.RED_BASE_HEX, _rwd.rwdMax.MLarge(
|
|
50
|
-
exports.
|
|
51
|
-
var SubscribeTitle = _styledComponents.default.h3.withConfig({
|
|
57
|
+
})(["padding:72px 65px 68px;background-color:", ";", ""], sc.RED_BASE_HEX, _rwd.rwdMax.MLarge(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 68px ", "px;\n "])), sc.BASE_MARGIN * 2));
|
|
58
|
+
const SubscribeTitle = exports.SubscribeTitle = _styledComponents.default.h3.withConfig({
|
|
52
59
|
displayName: "Newsletterstyles__SubscribeTitle",
|
|
53
60
|
componentId: "sc-53m39a-3"
|
|
54
61
|
})(["color:white;font-family:'Open Sans','Helvetica','Helvetica Neue',sans-serif;font-size:22px;font-weight:800;font-style:normal;font-stretch:normal;line-height:1.27;letter-spacing:0.8px;margin:0 0 60px;"]);
|
|
55
|
-
exports.
|
|
56
|
-
var SubscribeInputBox = _styledComponents.default.div.withConfig({
|
|
62
|
+
const SubscribeInputBox = exports.SubscribeInputBox = _styledComponents.default.div.withConfig({
|
|
57
63
|
displayName: "Newsletterstyles__SubscribeInputBox",
|
|
58
64
|
componentId: "sc-53m39a-4"
|
|
59
65
|
})(["display:flex;flex-direction:column;flex:1 0 auto;position:relative;"]);
|
|
60
|
-
exports.
|
|
61
|
-
var SubscribeInput = _styledComponents.default.input.withConfig({
|
|
66
|
+
const SubscribeInput = exports.SubscribeInput = _styledComponents.default.input.withConfig({
|
|
62
67
|
displayName: "Newsletterstyles__SubscribeInput",
|
|
63
68
|
componentId: "sc-53m39a-5"
|
|
64
|
-
})(["text-transform:initial;letter-spacing:2.1px;font-size:11px;white-space:nowrap;line-height:2.18;color:white;font-weight:400;flex:1 0 auto;margin-right:56px;padding:8px 0;background:transparent;border:none;border-bottom:1px solid rgba(255,255,255,0.2);outline:none;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{-webkit-text-fill-color:white !important;-webkit-box-shadow:0 0 0 30px ", " inset !important;transition:background-color 5000s ease-in-out 0s;caret-color:white !important;}", " &::-webkit-input-placeholder{color:white;text-transform:uppercase;}&::-moz-placeholder{color:white;text-transform:uppercase;}&::placeholder{color:white;text-transform:uppercase;}"], sc.RED_BASE_HEX, _rwd.rwdMax.MLarge(
|
|
65
|
-
exports.
|
|
66
|
-
var SubscribeInputError = _styledComponents.default.p.withConfig({
|
|
69
|
+
})(["text-transform:initial;letter-spacing:2.1px;font-size:11px;white-space:nowrap;line-height:2.18;color:white;font-weight:400;flex:1 0 auto;margin-right:56px;padding:8px 0;background:transparent;border:none;border-bottom:1px solid rgba(255,255,255,0.2);outline:none;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{-webkit-text-fill-color:white !important;-webkit-box-shadow:0 0 0 30px ", " inset !important;transition:background-color 5000s ease-in-out 0s;caret-color:white !important;}", " &::-webkit-input-placeholder{color:white;text-transform:uppercase;}&::-moz-placeholder{color:white;text-transform:uppercase;}&::placeholder{color:white;text-transform:uppercase;}"], sc.RED_BASE_HEX, _rwd.rwdMax.MLarge(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 0;\n display: block;\n width: 100%;\n margin-bottom: 36px;\n "]))));
|
|
70
|
+
const SubscribeInputError = exports.SubscribeInputError = _styledComponents.default.p.withConfig({
|
|
67
71
|
displayName: "Newsletterstyles__SubscribeInputError",
|
|
68
72
|
componentId: "sc-53m39a-6"
|
|
69
73
|
})(["color:white;font-size:9px;font-weight:400;letter-spacing:1.8px;margin:9px 0;position:absolute;text-transform:uppercase;top:39px;"]);
|
|
70
|
-
exports.
|
|
71
|
-
var SubscribeSubmit = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
74
|
+
const SubscribeSubmit = exports.SubscribeSubmit = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
72
75
|
displayName: "Newsletterstyles__SubscribeSubmit",
|
|
73
76
|
componentId: "sc-53m39a-7"
|
|
74
|
-
})(["padding-left:40px;padding-right:40px;background:", ";font-size:11px;display:flex;justify-content:center;width:136px;", " &&&&{border-color:white;color:white;&:hover{background:", ";color:", ";}&:active,&:focus{background:", ";color:", ";}}", ""], sc.RED_BASE_HEX, _rwd.rwdMax.MLarge(
|
|
75
|
-
|
|
77
|
+
})(["padding-left:40px;padding-right:40px;background:", ";font-size:11px;display:flex;justify-content:center;width:136px;", " &&&&{border-color:white;color:white;&:hover{background:", ";color:", ";}&:active,&:focus{background:", ";color:", ";}}", ""], sc.RED_BASE_HEX, _rwd.rwdMax.MLarge(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 0 auto 0;\n display: block;\n padding-left: 48px;\n padding-right: 48px;\n width: unset;\n "]))), sc.WHITE_HEX, sc.RED_BASE_HEX, sc.RED_BASE_HEX, sc.WHITE_HEX, _ref7 => {
|
|
78
|
+
let {
|
|
79
|
+
submitSuccess
|
|
80
|
+
} = _ref7;
|
|
76
81
|
return submitSuccess && "\n background: ".concat(sc.WHITE_HEX, " !important;\n color: ").concat(sc.RED_BASE_HEX, " !important;\n pointer-events: none;\n ");
|
|
77
82
|
});
|
|
78
|
-
exports.
|
|
79
|
-
var SubscribeForm = _styledComponents.default.form.withConfig({
|
|
83
|
+
const SubscribeForm = exports.SubscribeForm = _styledComponents.default.form.withConfig({
|
|
80
84
|
displayName: "Newsletterstyles__SubscribeForm",
|
|
81
85
|
componentId: "sc-53m39a-8"
|
|
82
|
-
})(["display:flex;", ""], _rwd.rwdMax.MLarge(
|
|
83
|
-
exports.SubscribeForm = SubscribeForm;
|
|
86
|
+
})(["display:flex;", ""], _rwd.rwdMax.MLarge(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([" display: block;\n "]))));
|