@stokr/components-library 3.0.16 → 3.0.18
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/README.md +261 -262
- package/dist/analytics/index.js +180 -0
- package/dist/api/auth.js +15 -0
- package/dist/api/fetchData.js +27 -0
- package/dist/api/fetchDataPublic.js +19 -0
- package/dist/auth/index.js +32 -0
- package/dist/components/2FA/Connect2FA.js +55 -0
- package/dist/components/2FA/EnterCode.js +63 -0
- package/dist/components/2FA/InstallAuthApp.js +64 -0
- package/dist/components/2FA/ResetCode.js +33 -0
- package/dist/components/2FA/Sucess2FA.js +51 -0
- package/dist/components/2FA/disable-2fa-flow.js +91 -0
- package/dist/components/2FA/enable-2fa-flow.js +137 -0
- package/dist/components/2FA/login-with-otp-flow.js +206 -0
- package/dist/components/2FA/main-flow.js +217 -0
- package/dist/components/AccountBalance/AccountBalance.js +35 -0
- package/dist/components/AccountBalance/AccountBalance.styles.js +48 -0
- package/dist/components/AdminDashboard/Table/ReactTable.js +266 -0
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +65 -0
- package/dist/components/AdminDashboard/Table/Table.js +123 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +263 -0
- package/dist/components/AgreementItem/AgreementItem.js +39 -0
- package/dist/components/AgreementItem/AgreementItem.styles.js +32 -0
- package/dist/components/BackButton/BackButton.js +34 -0
- package/dist/components/BackButton/BackButton.styles.js +123 -0
- package/dist/components/Background/Background.js +45 -0
- package/dist/components/Background/Background.styles.js +119 -0
- package/dist/components/BasicTable/BasicTable.js +25 -0
- package/dist/components/BasicTable/BasicTable.styles.js +76 -0
- package/dist/components/BlogPost/BlogPost.js +98 -0
- package/dist/components/BlogPost/BlogPost.styles.js +230 -0
- package/dist/components/Button/Button.styles.js +207 -0
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +51 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +18 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +41 -0
- package/dist/components/Card/Card.styles.js +97 -0
- package/dist/components/ChartLegend/ChartLegend.js +62 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +133 -0
- package/dist/components/Checkbox/Checkbox.js +80 -0
- package/dist/components/Checkbox/Checkbox.styles.js +133 -0
- package/dist/components/Checklist/ChecklistCard.js +71 -0
- package/dist/components/Checklist/ChecklistCard.styles.js +82 -0
- package/dist/components/Chips/Chip.js +23 -0
- package/dist/components/Chips/Chip.styles.js +72 -0
- package/dist/components/Chips/ChipWrapper.js +50 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +70 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +127 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +165 -0
- package/dist/components/ConfirmModal/ConfirmModal.js +199 -0
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +44 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +16 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +151 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +443 -0
- package/dist/components/CryptoAddress/RadioWrap.js +47 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +34 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +125 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +25 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +111 -0
- package/dist/components/DoubleButton/DoubleButton.styles.js +27 -0
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +9 -0
- package/dist/components/FAQ/FAQ.js +73 -0
- package/dist/components/FAQ/FAQ.styles.js +128 -0
- package/dist/components/Footer/Footer.js +55 -0
- package/dist/components/Footer/Footer.styles.js +256 -0
- package/dist/components/Footer/FooterLayout.js +145 -0
- package/dist/components/Footer/FooterMenu.js +100 -0
- package/dist/components/Footer/FooterMenu.styles.js +321 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +100 -0
- package/dist/components/Form/Form.js +21 -0
- package/dist/components/Form/Form.styles.js +72 -0
- package/dist/components/Grid/Grid.styles.js +212 -0
- package/dist/components/Header/Header.js +425 -0
- package/dist/components/Header/Header.styles.js +567 -0
- package/dist/components/HeroBlock/HeroVideoBlock.js +105 -0
- package/dist/components/Icon/Icon.style.js +92 -0
- package/dist/components/Icon/Icon2.js +12 -0
- package/dist/components/InfoBox/InfoBox.js +93 -0
- package/dist/components/InfoIcon/InfoIcon.js +62 -0
- package/dist/components/InfoIcon/InfoIcon.styles.js +64 -0
- package/dist/components/Input/DatePickerInput.js +139 -0
- package/dist/components/Input/DatePickerInput.styles.js +165 -0
- package/dist/components/Input/Input.js +108 -0
- package/dist/components/Input/Input.styles.js +154 -0
- package/dist/components/Input/InputPassword.js +122 -0
- package/dist/components/Input/InputPassword.styles.js +166 -0
- package/dist/components/Input/InputUsername.js +92 -0
- package/dist/components/Input/InputWithButton.js +53 -0
- package/dist/components/Input/InputWithButton.styles.js +57 -0
- package/dist/components/Input/MultiSelect.js +306 -0
- package/dist/components/Input/OtpInput.js +70 -0
- package/dist/components/Input/RangeInput.js +80 -0
- package/dist/components/Input/RangeInput.styles.js +129 -0
- package/dist/components/Input/SearchInput.js +68 -0
- package/dist/components/Input/SearchInput.styles.js +92 -0
- package/dist/components/Input/Select.js +151 -0
- package/dist/components/Input/Select.styles.js +148 -0
- package/dist/components/Input/TableFilterDropdown.js +247 -0
- package/dist/components/Input/Textarea.js +51 -0
- package/dist/components/Input/Textarea.styles.js +62 -0
- package/dist/components/InvestCalculator/InvestCalculator.js +283 -0
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +94 -0
- package/dist/components/InvestmentStat/InvestmentStat.js +24 -0
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +62 -0
- package/dist/components/LatestUpdate/LatestUpdate.js +24 -0
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +90 -0
- package/dist/components/Layout/Layout.js +69 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +32 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +208 -0
- package/dist/components/LearnMorePage/LearnMore.js +190 -0
- package/dist/components/LearnMorePage/LearnMore.propTypes.js +20 -0
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +56 -0
- package/dist/components/LearnMorePage/LearnMore.styles.js +276 -0
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +120 -0
- package/dist/components/LearnMorePage/LearnMoreItem.js +57 -0
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +234 -0
- package/dist/components/LearnMoreSection/LearnMore.js +138 -0
- package/dist/components/LearnMoreSection/LearnMore.styles.js +147 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.js +33 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +60 -0
- package/dist/components/LoginModal/LoginModal.js +142 -0
- package/dist/components/MainMenu/DynamicMainMenu.js +38 -0
- package/dist/components/MainMenu/MainMenu.js +210 -0
- package/dist/components/MainMenu/MainMenu.styles.js +362 -0
- package/dist/components/MenuNav/MenuNav.styles.js +66 -0
- package/dist/components/Modal/Modal.js +119 -0
- package/dist/components/Modal/Modal.styles.js +450 -0
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +262 -0
- package/dist/components/Modal/PaymentModal.js +149 -0
- package/dist/components/Modal/SideModal.js +134 -0
- package/dist/components/Modal/SideModal.styles.js +55 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.js +170 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +53 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.js +30 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +105 -0
- package/dist/components/Newsletter/Newsletter.js +122 -0
- package/dist/components/Newsletter/Newsletter.styles.js +186 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +38 -0
- package/dist/components/Number/Number.js +50 -0
- package/dist/components/Number/Number.styles.js +23 -0
- package/dist/components/PageTransition/PageTransition.js +51 -0
- package/dist/components/Pagination/Pagination.js +58 -0
- package/dist/components/Pagination/Pagination.styles.js +59 -0
- package/dist/components/Pagination/PaginationControls.js +113 -0
- package/dist/components/Pagination/usePagination.js +40 -0
- package/dist/components/Payment/PaymentDetailsCard.js +359 -0
- package/dist/components/Payment/PaymentDisplay.js +199 -0
- package/dist/components/Payment/TimerComponent.js +92 -0
- package/dist/components/Process/Process.styles.js +84 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +35 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +53 -0
- package/dist/components/ProfileBox/ProfileBox.js +27 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +67 -0
- package/dist/components/ProfileStat/ProfileStat.js +29 -0
- package/dist/components/ProfileStat/ProfileStat.styles.js +90 -0
- package/dist/components/QRCode/QRCode.js +51 -0
- package/dist/components/Radio/Radio.js +51 -0
- package/dist/components/Radio/Radio.styles.js +100 -0
- package/dist/components/RefreshButton/RefreshButton.js +21 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +64 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +65 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +20 -0
- package/dist/components/RegisterModal/RegisterModal.js +248 -0
- package/dist/components/RequestDataBox/RequestDataBox.js +21 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +43 -0
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +44 -0
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +41 -0
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +134 -0
- package/dist/components/SEO/SEO.js +66 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +26 -0
- package/dist/components/SideLine/SideLine.js +7 -0
- package/dist/components/SideLine/SideLine.styles.js +33 -0
- package/dist/components/Slider/Slider.js +31 -0
- package/dist/components/Slider/Slider.styles.js +120 -0
- package/dist/components/Snackbar/Snackbar.js +111 -0
- package/dist/components/Snackbar/Snackbar.styles.js +230 -0
- package/dist/components/Snackbar/SnackbarProvider.js +66 -0
- package/dist/components/Snackbar/useSnackbar.js +12 -0
- package/dist/components/SpanButton/SpanButton.styles.js +19 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js +18 -0
- package/dist/components/StatusTag/StatusTag.js +105 -0
- package/dist/components/StatusTag/StatusTag.styles.js +88 -0
- package/dist/components/StepController/StepController.js +86 -0
- package/dist/components/StepController/StepController.styles.js +33 -0
- package/dist/components/StepController/StepControllerContext.js +65 -0
- package/dist/components/StepController/StepControllerProgress.js +37 -0
- package/dist/components/StepsProgress/StepIndicator.js +40 -0
- package/dist/components/StepsProgress/StepIndicator.styles.js +69 -0
- package/dist/components/StepsProgress/StepsProgress.js +67 -0
- package/dist/components/StepsProgress/StepsProgress.styles.js +105 -0
- package/dist/components/StokrLoader/StokrLoader.js +111 -0
- package/dist/components/StokrLoader/media.js +23 -0
- package/dist/components/SvgIcons/AdminBadgeSvg.js +27 -0
- package/dist/components/SvgIcons/CameraSvg.js +31 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +36 -0
- package/dist/components/SvgIcons/DocumentBackSvg.js +20 -0
- package/dist/components/SvgIcons/DocumentSmallSvg.js +41 -0
- package/dist/components/SvgIcons/DocumentSvg.js +39 -0
- package/dist/components/SvgIcons/EthSvg.js +28 -0
- package/dist/components/SvgIcons/EurSvg.js +27 -0
- package/dist/components/SvgIcons/FaceScanIconSvg.js +17 -0
- package/dist/components/SvgIcons/FourSvg.js +7 -0
- package/dist/components/SvgIcons/Glassess.js +26 -0
- package/dist/components/SvgIcons/LogoSvg.js +17 -0
- package/dist/components/SvgIcons/OneSvg.js +10 -0
- package/dist/components/SvgIcons/PassportSvg.js +37 -0
- package/dist/components/SvgIcons/RefreshSvg.js +28 -0
- package/dist/components/SvgIcons/SocialFacebook.js +22 -0
- package/dist/components/SvgIcons/SocialInstagram.js +13 -0
- package/dist/components/SvgIcons/SocialLinkedIn.js +31 -0
- package/dist/components/SvgIcons/SocialMedium.js +21 -0
- package/dist/components/SvgIcons/SocialReddit.js +21 -0
- package/dist/components/SvgIcons/SocialTelegram.js +60 -0
- package/dist/components/SvgIcons/SocialTwitter.js +62 -0
- package/dist/components/SvgIcons/SocialYoutube.js +22 -0
- package/dist/components/SvgIcons/ThreeSvg.js +7 -0
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +48 -0
- package/dist/components/SvgIcons/TwoSvg.js +10 -0
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +12 -0
- package/dist/components/SvgIcons/UpdateHardSvg.js +10 -0
- package/dist/components/SvgIcons/UpdateSoftSvg.js +11 -0
- package/dist/components/SvgIcons/UploadSvg.js +12 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +16 -0
- package/dist/components/Switch/Switch.js +63 -0
- package/dist/components/Switch/Switch.styles.js +126 -0
- package/dist/components/Tabs/Tabs.js +54 -0
- package/dist/components/Tabs/Tabs.styles.js +15 -0
- package/dist/components/TabsNav/TabNav.js +16 -0
- package/dist/components/TabsNav/TabsNav.js +30 -0
- package/dist/components/TabsNav/TabsNav.styles.js +103 -0
- package/dist/components/TeamOverview/TeamOverview.js +80 -0
- package/dist/components/TeamOverview/TeamOverview.styles.js +167 -0
- package/dist/components/TermsModal/TermsModal.js +145 -0
- package/dist/components/TermsModal/_styles.js +313 -0
- package/dist/components/Text/Text.styles.js +220 -0
- package/dist/components/TextLink/TextLink.styles.js +67 -0
- package/dist/components/Timeline/Timeline.js +44 -0
- package/dist/components/Timeline/Timeline.styles.js +147 -0
- package/dist/components/Timeline/TimelineStep.js +58 -0
- package/dist/components/ToDoList/ToDoList.js +172 -0
- package/dist/components/ToDoList/ToDoList.styles.js +122 -0
- package/dist/components/ToDoList/ToDoListTask.js +95 -0
- package/dist/components/ToDoList/ToDoListTask.styles.js +119 -0
- package/dist/components/TransactionDetails/TransactionDetails.js +27 -0
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +38 -0
- package/dist/components/TransactionInfo/TransactionInfo.js +41 -0
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +75 -0
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +122 -0
- package/dist/components/breakdown/Breakdown.js +126 -0
- package/dist/components/headerHo/HeaderHo.js +709 -0
- package/dist/components/icons/Arrow.js +38 -0
- package/dist/components/icons/ArrowSimple.js +34 -0
- package/dist/components/icons/Check.js +16 -0
- package/dist/components/icons/Facebook.js +10 -0
- package/dist/components/icons/Info.js +27 -0
- package/dist/components/icons/Instagram.js +10 -0
- package/dist/components/icons/LinkIcon.js +49 -0
- package/dist/components/icons/LinkedIn.js +13 -0
- package/dist/components/icons/Medium.js +13 -0
- package/dist/components/icons/Reddit.js +16 -0
- package/dist/components/icons/Share.js +31 -0
- package/dist/components/icons/Telegram.js +13 -0
- package/dist/components/icons/Twitter.js +10 -0
- package/dist/components/icons/X.js +10 -0
- package/dist/components/icons/Youtube.js +10 -0
- package/dist/components/icons/index.js +32 -0
- package/dist/components/landing-page/List.js +51 -0
- package/dist/components/landing-page/PageContent.js +65 -0
- package/dist/components/landing-page/PageText.js +171 -0
- package/dist/components/landing-page/PageTitle.js +259 -0
- package/dist/components/logo/Logo.js +57 -0
- package/dist/components/taxId/complete.js +24 -0
- package/dist/components/taxId/flow.js +53 -0
- package/dist/components/taxId/register-taxid.js +166 -0
- package/dist/config.js +44 -0
- package/dist/constants/globalVariables.js +87 -0
- package/dist/constants/style.js +48 -0
- package/dist/context/Auth.js +396 -0
- package/dist/context/AuthContext.js +781 -0
- package/dist/context/Checkbox/CheckboxContext.js +151 -0
- package/dist/firebase-config.js +73 -0
- package/dist/hooks/useNewVentureForm.js +262 -0
- package/dist/hooks/useTimer.js +89 -0
- package/dist/hooks/useTransactionPolling.js +100 -0
- package/dist/index.js +632 -25463
- package/dist/model/axios.js +10 -0
- package/dist/model/axiosPublic.js +9 -0
- package/dist/services/TimerService.js +80 -0
- package/dist/static/animations/checked.lottie.js +4 -0
- package/dist/static/animations/progress.lottie.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2.js +4 -0
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.eot.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.svg.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.ttf.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.woff.js +4 -0
- package/dist/static/images/add-folder-icon.svg.js +5 -0
- package/dist/static/images/address-refreshing.gif.js +4 -0
- package/dist/static/images/arrow-down-black.svg.js +4 -0
- package/dist/static/images/avatar-placeholder.png.js +4 -0
- package/dist/static/images/background3.png.js +4 -0
- package/dist/static/images/bitcoin-logo.svg.js +4 -0
- package/dist/static/images/bmn2-logo.svg.js +4 -0
- package/dist/static/images/check-icon.svg.js +5 -0
- package/dist/static/images/checkmark-circle-icon.svg.js +5 -0
- package/dist/static/images/close-circle-icon.svg.js +5 -0
- package/dist/static/images/copy_icon.svg.js +5 -0
- package/dist/static/images/cross-icon.svg.js +5 -0
- package/dist/static/images/early-adopter.png.js +4 -0
- package/dist/static/images/eth_logo.svg.js +4 -0
- package/dist/static/images/external-link-icon.svg +3 -0
- package/dist/static/images/external-link-icon.svg.js +4 -0
- package/dist/static/images/filter-icon.svg.js +5 -0
- package/dist/static/images/google_auth.png.js +4 -0
- package/dist/static/images/graduation.png.js +4 -0
- package/dist/static/images/mangopay.svg.js +4 -0
- package/dist/static/images/numbers/number_eight.svg.js +5 -0
- package/dist/static/images/numbers/number_five.svg.js +5 -0
- package/dist/static/images/numbers/number_four.svg.js +5 -0
- package/dist/static/images/numbers/number_nine.svg.js +5 -0
- package/dist/static/images/numbers/number_one.svg.js +5 -0
- package/dist/static/images/numbers/number_seven.svg.js +5 -0
- package/dist/static/images/numbers/number_six.svg.js +5 -0
- package/dist/static/images/numbers/number_three.svg.js +5 -0
- package/dist/static/images/numbers/number_two.svg.js +5 -0
- package/dist/static/images/numbers/number_zero.svg.js +5 -0
- package/dist/static/images/process-waiting.gif.js +4 -0
- package/dist/static/images/search-icon.svg.js +5 -0
- package/dist/static/images/social/Facebook_Logo.png.js +4 -0
- package/dist/static/images/social/LI-In-Bug.png.js +4 -0
- package/dist/static/images/social/Telegram-Logo.png.js +4 -0
- package/dist/static/images/social/X-logo-black.png.js +4 -0
- package/dist/static/images/social/youtube_social_circle_red.png.js +4 -0
- package/dist/static/images/transfer-icon.svg.js +5 -0
- package/dist/static/images/usdc-logo.svg.js +4 -0
- package/dist/static/images/usdq-logo.png.js +4 -0
- package/dist/static/images/warning-filled.svg.js +5 -0
- package/dist/styles/colors.js +57 -0
- package/dist/styles/fonts.js +100 -0
- package/dist/styles/global.js +74 -0
- package/dist/styles/grid.js +11 -0
- package/dist/styles/ioniconsStyles.js +31 -0
- package/dist/styles/reactTippy.js +40 -0
- package/dist/styles/rwd.js +56 -0
- package/dist/styles/semanticUi.js +84 -0
- package/dist/styles/spacing.js +8 -0
- package/dist/styles/theme.js +34 -0
- package/dist/utils/check-sale-time-left.js +85 -0
- package/dist/utils/check-todo-status.js +11 -0
- package/dist/utils/checklistGenerator.js +195 -0
- package/dist/utils/copyToClipboard.js +92 -0
- package/dist/utils/customHooks.js +126 -0
- package/dist/utils/delete-redirect-cookie-and-navigate.js +12 -0
- package/dist/utils/fix-decimals.js +5 -0
- package/dist/utils/formatCurrencyValue.js +95 -0
- package/dist/utils/get-cookie-domain.js +10 -0
- package/dist/utils/get-short-address.js +4 -0
- package/dist/utils/isUSInvestor.js +6 -0
- package/dist/utils/km_ify.js +33 -0
- package/dist/utils/moment.js +26 -0
- package/dist/utils/redirect-url.js +5 -0
- package/dist/utils/saveAs.js +17 -0
- package/dist/utils/scrollUtils.js +63 -0
- package/dist/utils/set-redirect-cookie.js +16 -0
- package/dist/utils/transition.js +101 -0
- package/dist/utils/withRouter.js +24 -0
- package/package.json +11 -11
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
|
+
import { DotLottieReact } from "@lottiefiles/dotlottie-react";
|
|
6
|
+
import { Modal } from "../Modal.js";
|
|
7
|
+
import { SuccessModalContent, AnimationContainer, Title, Subtitle, ContentWrapper } from "./SuccessModal.styles.js";
|
|
8
|
+
import successAnimation from "../../../static/animations/checked.lottie.js";
|
|
9
|
+
import progressAnimation from "../../../static/animations/progress.lottie.js";
|
|
10
|
+
const variantConfig = {
|
|
11
|
+
success: {
|
|
12
|
+
animation: successAnimation,
|
|
13
|
+
segment: [0, 50],
|
|
14
|
+
loop: false
|
|
15
|
+
},
|
|
16
|
+
progress: {
|
|
17
|
+
animation: progressAnimation,
|
|
18
|
+
segment: null,
|
|
19
|
+
loop: false
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const SuccessModalComponent = ({
|
|
23
|
+
isOpen,
|
|
24
|
+
onClose,
|
|
25
|
+
variant = "success",
|
|
26
|
+
title,
|
|
27
|
+
subtitle,
|
|
28
|
+
content,
|
|
29
|
+
animationSrc,
|
|
30
|
+
loop,
|
|
31
|
+
autoplay = true,
|
|
32
|
+
segment,
|
|
33
|
+
speed = 1,
|
|
34
|
+
modalProps = {},
|
|
35
|
+
maxWidth = "800px"
|
|
36
|
+
}) => {
|
|
37
|
+
const config = variantConfig[variant] || variantConfig.success;
|
|
38
|
+
const animationSource = animationSrc || config.animation;
|
|
39
|
+
const animationLoop = loop !== void 0 ? loop : config.loop;
|
|
40
|
+
const animationSegment = segment || config.segment;
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!isOpen) return;
|
|
43
|
+
const handleKeyDown = (e) => {
|
|
44
|
+
if (e.key === "Escape") {
|
|
45
|
+
onClose?.();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
49
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
50
|
+
}, [isOpen, onClose]);
|
|
51
|
+
return /* @__PURE__ */ jsx(
|
|
52
|
+
Modal,
|
|
53
|
+
{
|
|
54
|
+
isOpen,
|
|
55
|
+
onClose,
|
|
56
|
+
maxHeight: "90vh",
|
|
57
|
+
boxStyles: { minHeight: "unset" },
|
|
58
|
+
maxWidth,
|
|
59
|
+
...modalProps,
|
|
60
|
+
children: /* @__PURE__ */ jsxs(SuccessModalContent, { children: [
|
|
61
|
+
/* @__PURE__ */ jsx(AnimationContainer, { children: /* @__PURE__ */ jsx(
|
|
62
|
+
DotLottieReact,
|
|
63
|
+
{
|
|
64
|
+
src: animationSource,
|
|
65
|
+
loop: animationLoop,
|
|
66
|
+
autoplay,
|
|
67
|
+
speed,
|
|
68
|
+
segment: animationSegment,
|
|
69
|
+
style: { width: "100%", height: "100%" }
|
|
70
|
+
}
|
|
71
|
+
) }),
|
|
72
|
+
title && /* @__PURE__ */ jsx(Title, { children: title }),
|
|
73
|
+
subtitle && /* @__PURE__ */ jsx(Subtitle, { children: subtitle }),
|
|
74
|
+
content && /* @__PURE__ */ jsx(ContentWrapper, { children: content })
|
|
75
|
+
] })
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
SuccessModalComponent.propTypes = {
|
|
80
|
+
isOpen: PropTypes.bool.isRequired,
|
|
81
|
+
onClose: PropTypes.func.isRequired,
|
|
82
|
+
variant: PropTypes.oneOf(["success", "progress"]),
|
|
83
|
+
title: PropTypes.node,
|
|
84
|
+
subtitle: PropTypes.node,
|
|
85
|
+
content: PropTypes.node,
|
|
86
|
+
animationSrc: PropTypes.string,
|
|
87
|
+
loop: PropTypes.bool,
|
|
88
|
+
autoplay: PropTypes.bool,
|
|
89
|
+
segment: PropTypes.arrayOf(PropTypes.number),
|
|
90
|
+
speed: PropTypes.number,
|
|
91
|
+
modalProps: PropTypes.object,
|
|
92
|
+
maxWidth: PropTypes.string
|
|
93
|
+
};
|
|
94
|
+
let successContainer = null;
|
|
95
|
+
let successRoot = null;
|
|
96
|
+
const showSuccess = (options = {}) => {
|
|
97
|
+
const {
|
|
98
|
+
variant = "success",
|
|
99
|
+
title = "",
|
|
100
|
+
subtitle = "",
|
|
101
|
+
content = null,
|
|
102
|
+
animationSrc = null,
|
|
103
|
+
loop,
|
|
104
|
+
autoplay = true,
|
|
105
|
+
segment,
|
|
106
|
+
speed = 1,
|
|
107
|
+
autoClose = 0,
|
|
108
|
+
modalProps = {},
|
|
109
|
+
maxWidth = "800px"
|
|
110
|
+
} = options;
|
|
111
|
+
return new Promise((resolve) => {
|
|
112
|
+
if (!successContainer) {
|
|
113
|
+
successContainer = document.createElement("div");
|
|
114
|
+
successContainer.id = "success-modal-root";
|
|
115
|
+
document.body.appendChild(successContainer);
|
|
116
|
+
successRoot = createRoot(successContainer);
|
|
117
|
+
}
|
|
118
|
+
let isClosed = false;
|
|
119
|
+
const handleClose = () => {
|
|
120
|
+
if (isClosed) return;
|
|
121
|
+
isClosed = true;
|
|
122
|
+
renderModal(false);
|
|
123
|
+
setTimeout(() => {
|
|
124
|
+
renderModal(null);
|
|
125
|
+
resolve();
|
|
126
|
+
}, 350);
|
|
127
|
+
};
|
|
128
|
+
const renderModal = (isOpen) => {
|
|
129
|
+
if (isOpen === null) {
|
|
130
|
+
successRoot.render(null);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
successRoot.render(
|
|
134
|
+
/* @__PURE__ */ jsx(
|
|
135
|
+
SuccessModalComponent,
|
|
136
|
+
{
|
|
137
|
+
isOpen,
|
|
138
|
+
onClose: handleClose,
|
|
139
|
+
variant,
|
|
140
|
+
title,
|
|
141
|
+
subtitle,
|
|
142
|
+
content,
|
|
143
|
+
animationSrc,
|
|
144
|
+
loop,
|
|
145
|
+
autoplay,
|
|
146
|
+
segment,
|
|
147
|
+
speed,
|
|
148
|
+
modalProps,
|
|
149
|
+
maxWidth
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
);
|
|
153
|
+
};
|
|
154
|
+
renderModal(true);
|
|
155
|
+
if (autoClose > 0) {
|
|
156
|
+
setTimeout(() => {
|
|
157
|
+
handleClose();
|
|
158
|
+
}, autoClose);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
const showProgress = (options = {}) => {
|
|
163
|
+
return showSuccess({ ...options, variant: "progress" });
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
SuccessModalComponent as SuccessModal,
|
|
167
|
+
SuccessModalComponent,
|
|
168
|
+
showProgress,
|
|
169
|
+
showSuccess
|
|
170
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { colors } from "../../../styles/colors.js";
|
|
3
|
+
const SuccessModalContent = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
text-align: center;
|
|
8
|
+
padding: 40px 24px;
|
|
9
|
+
max-height: calc(90vh - 60px); /* Account for modal padding/close button */
|
|
10
|
+
overflow-y: auto;
|
|
11
|
+
`;
|
|
12
|
+
const AnimationContainer = styled.div`
|
|
13
|
+
width: 80px;
|
|
14
|
+
height: 80px;
|
|
15
|
+
min-height: 80px;
|
|
16
|
+
margin-bottom: 12px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
font-family: 'Open Sans';
|
|
22
|
+
`;
|
|
23
|
+
const Title = styled.h2`
|
|
24
|
+
margin: 0 0 16px 0;
|
|
25
|
+
font-size: 22px;
|
|
26
|
+
font-weight: 800;
|
|
27
|
+
color: ${colors.black};
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
letter-spacing: 0.8px;
|
|
30
|
+
line-height: 28px;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
font-family: 'Open Sans';
|
|
33
|
+
`;
|
|
34
|
+
const Subtitle = styled.p`
|
|
35
|
+
margin: 0 0 24px 0;
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
font-weight: 300;
|
|
38
|
+
line-height: 24px;
|
|
39
|
+
letter-spacing: 0.6px;
|
|
40
|
+
max-width: 550px;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
`;
|
|
43
|
+
const ContentWrapper = styled.div`
|
|
44
|
+
width: 100%;
|
|
45
|
+
margin-top: 8px;
|
|
46
|
+
`;
|
|
47
|
+
export {
|
|
48
|
+
AnimationContainer,
|
|
49
|
+
ContentWrapper,
|
|
50
|
+
Subtitle,
|
|
51
|
+
SuccessModalContent,
|
|
52
|
+
Title
|
|
53
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Bar, BackBar, BarPart, FillProgress, FillBar } from "./MultiProgressBar.styles.js";
|
|
5
|
+
const MultiProgressBar = ({ backParts, fillParts, fill }) => /* @__PURE__ */ jsxs(Bar, { children: [
|
|
6
|
+
/* @__PURE__ */ jsx(BackBar, { children: backParts?.map((part) => /* @__PURE__ */ jsx(BarPart, { percent: part.value, color: `back-${part.label}` }, part.label)) }),
|
|
7
|
+
/* @__PURE__ */ jsx(FillProgress, { percent: fill, children: /* @__PURE__ */ jsx(FillBar, { percent: fill, children: fillParts?.map((part) => /* @__PURE__ */ jsx(BarPart, { percent: part.value, color: `fill-${part.label}` }, part.label)) }) })
|
|
8
|
+
] });
|
|
9
|
+
const MultiProgressBarPropTypes = {
|
|
10
|
+
backParts: PropTypes.arrayOf(
|
|
11
|
+
PropTypes.shape({
|
|
12
|
+
value: PropTypes.number.isRequired,
|
|
13
|
+
label: PropTypes.string.isRequired
|
|
14
|
+
})
|
|
15
|
+
).isRequired,
|
|
16
|
+
fillParts: PropTypes.arrayOf(
|
|
17
|
+
PropTypes.shape({
|
|
18
|
+
value: PropTypes.number.isRequired,
|
|
19
|
+
label: PropTypes.string.isRequired
|
|
20
|
+
})
|
|
21
|
+
).isRequired,
|
|
22
|
+
fill: PropTypes.number.isRequired
|
|
23
|
+
};
|
|
24
|
+
MultiProgressBar.propTypes = MultiProgressBarPropTypes;
|
|
25
|
+
var stdin_default = MultiProgressBar;
|
|
26
|
+
export {
|
|
27
|
+
MultiProgressBar,
|
|
28
|
+
MultiProgressBarPropTypes,
|
|
29
|
+
stdin_default as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const Bar = styled.div`
|
|
3
|
+
width: 100%;
|
|
4
|
+
position: relative;
|
|
5
|
+
display: block;
|
|
6
|
+
height: 10px;
|
|
7
|
+
background-color: #004bb7;
|
|
8
|
+
border-radius: 5px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
`;
|
|
11
|
+
const BackBar = styled.div`
|
|
12
|
+
z-index: 0;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
display: block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
`;
|
|
22
|
+
const FillBar = styled.div.withConfig({
|
|
23
|
+
shouldForwardProp: (props) => props !== "percent"
|
|
24
|
+
})`
|
|
25
|
+
z-index: 1;
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
display: block;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
transition: transform 0.3s;
|
|
35
|
+
transform: translateX(100%);
|
|
36
|
+
|
|
37
|
+
${(props) => props.percent && `
|
|
38
|
+
transform: translateX(${100 - props.percent}%);
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
41
|
+
const FillProgress = styled.div.withConfig({
|
|
42
|
+
shouldForwardProp: (props) => props !== "percent"
|
|
43
|
+
})`
|
|
44
|
+
z-index: 1;
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
display: block;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
border-radius: 4px;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
transition: transform 0.3s;
|
|
54
|
+
transform: translateX(-100%);
|
|
55
|
+
|
|
56
|
+
${(props) => props.percent && `
|
|
57
|
+
transform: translateX(${props.percent - 100}%);
|
|
58
|
+
`}
|
|
59
|
+
`;
|
|
60
|
+
const BarPart = styled.div.withConfig({
|
|
61
|
+
shouldForwardProp: (props) => !["percent", "color"].includes(props)
|
|
62
|
+
})`
|
|
63
|
+
display: block;
|
|
64
|
+
height: 100%;
|
|
65
|
+
float: left;
|
|
66
|
+
background-color: #000;
|
|
67
|
+
transition: width 0.3s;
|
|
68
|
+
|
|
69
|
+
${(props) => `
|
|
70
|
+
width: ${props.percent || 0}%;
|
|
71
|
+
`}
|
|
72
|
+
|
|
73
|
+
${(props) => props.color && `
|
|
74
|
+
${props.color === "back-empty" ? `
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
` : ""}
|
|
77
|
+
${props.color === "back-minimum" ? `
|
|
78
|
+
background-color: #4a90e2;
|
|
79
|
+
` : ""}
|
|
80
|
+
${props.color === "back-disabled" ? `
|
|
81
|
+
background-color: #4a90e2;
|
|
82
|
+
background-image: repeating-linear-gradient(-45deg, #004bb7, #004bb7 2px, #4a90e2 2px, #4a90e2 5px);
|
|
83
|
+
` : ""}
|
|
84
|
+
${props.color === "fill-empty" ? `
|
|
85
|
+
background-color: transparent;
|
|
86
|
+
` : ""}
|
|
87
|
+
${props.color === "fill-minimum" ? `
|
|
88
|
+
background-color: #fff;
|
|
89
|
+
` : ""}
|
|
90
|
+
${props.color === "fill-minimum-grey" ? `
|
|
91
|
+
background-color: #e1e1e1;
|
|
92
|
+
` : ""}
|
|
93
|
+
${props.color === "fill-bought" ? `
|
|
94
|
+
background-color: #69bd53;
|
|
95
|
+
background-image: linear-gradient(to left, #a9ef9c, #69bd53);
|
|
96
|
+
` : ""}
|
|
97
|
+
`}
|
|
98
|
+
`;
|
|
99
|
+
export {
|
|
100
|
+
BackBar,
|
|
101
|
+
Bar,
|
|
102
|
+
BarPart,
|
|
103
|
+
FillBar,
|
|
104
|
+
FillProgress
|
|
105
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import fetchDataPublic from "../../api/fetchDataPublic.js";
|
|
4
|
+
import { Subscribe, LayoutWrapper, Container, SubscribeTitle, SubscribeForm, SubscribeInputBox, SubscribeInput, SubscribeInputError, SubscribeSubmit } from "./Newsletter.styles.js";
|
|
5
|
+
const Newsletter = () => {
|
|
6
|
+
const [formData, setFormData] = useState({
|
|
7
|
+
name: "",
|
|
8
|
+
email: "",
|
|
9
|
+
errorName: "",
|
|
10
|
+
errorEmail: "",
|
|
11
|
+
submitSuccess: false
|
|
12
|
+
});
|
|
13
|
+
const validateForm = () => {
|
|
14
|
+
const { name, email } = formData;
|
|
15
|
+
let errorName = "";
|
|
16
|
+
let errorEmail = "";
|
|
17
|
+
if (!name) {
|
|
18
|
+
errorName = "Oops, this can't be blank";
|
|
19
|
+
}
|
|
20
|
+
if (!email) {
|
|
21
|
+
errorEmail = "Oops, this can't be blank";
|
|
22
|
+
} else if (!/.+@.+\..+/.test(email)) {
|
|
23
|
+
errorEmail = "Oops, that's not a valid address";
|
|
24
|
+
}
|
|
25
|
+
setFormData((prev) => ({
|
|
26
|
+
...prev,
|
|
27
|
+
errorName,
|
|
28
|
+
errorEmail
|
|
29
|
+
}));
|
|
30
|
+
return !errorName && !errorEmail;
|
|
31
|
+
};
|
|
32
|
+
const handleChange = (e) => {
|
|
33
|
+
const { name, value } = e.target;
|
|
34
|
+
setFormData((prev) => ({
|
|
35
|
+
...prev,
|
|
36
|
+
[name]: value
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
const handleSubmit = async (e) => {
|
|
40
|
+
e.preventDefault();
|
|
41
|
+
if (!validateForm()) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
try {
|
|
45
|
+
await fetchDataPublic("emails/subscribe", {
|
|
46
|
+
name: formData.name,
|
|
47
|
+
email: formData.email,
|
|
48
|
+
listName: "newsletter"
|
|
49
|
+
});
|
|
50
|
+
setFormData({
|
|
51
|
+
name: "",
|
|
52
|
+
email: "",
|
|
53
|
+
errorName: "",
|
|
54
|
+
errorEmail: "",
|
|
55
|
+
submitSuccess: true
|
|
56
|
+
});
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
setFormData((prev) => ({
|
|
59
|
+
...prev,
|
|
60
|
+
submitSuccess: false
|
|
61
|
+
}));
|
|
62
|
+
}, 5e3);
|
|
63
|
+
} catch (_error) {
|
|
64
|
+
console.log(`
|
|
65
|
+
### ERROR ADDING SUBSCRIBER ###
|
|
66
|
+
|
|
67
|
+
${e}`);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const isFormValid = () => {
|
|
71
|
+
const { name, email } = formData;
|
|
72
|
+
return name.trim() !== "" && email.trim() !== "" && /.+@.+\..+/.test(email);
|
|
73
|
+
};
|
|
74
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Subscribe, { children: /* @__PURE__ */ jsx(LayoutWrapper, { noBorder: true, minimal: true, children: /* @__PURE__ */ jsxs(Container, { compact: true, children: [
|
|
75
|
+
/* @__PURE__ */ jsx(SubscribeTitle, { as: "h3", children: "SIGN UP FOR THE STOKR NEWSLETTER" }),
|
|
76
|
+
/* @__PURE__ */ jsxs(SubscribeForm, { onSubmit: handleSubmit, id: "newsletter-form", children: [
|
|
77
|
+
/* @__PURE__ */ jsxs(SubscribeInputBox, { children: [
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
|
+
SubscribeInput,
|
|
80
|
+
{
|
|
81
|
+
name: "name",
|
|
82
|
+
type: "text",
|
|
83
|
+
placeholder: "Your Name",
|
|
84
|
+
value: formData.name,
|
|
85
|
+
onChange: handleChange,
|
|
86
|
+
"data-id": "newsletter-name-input"
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
formData.errorName && /* @__PURE__ */ jsx(SubscribeInputError, { children: formData.errorName })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ jsxs(SubscribeInputBox, { children: [
|
|
92
|
+
/* @__PURE__ */ jsx(
|
|
93
|
+
SubscribeInput,
|
|
94
|
+
{
|
|
95
|
+
name: "email",
|
|
96
|
+
type: "email",
|
|
97
|
+
placeholder: "Your Email",
|
|
98
|
+
value: formData.email,
|
|
99
|
+
onChange: handleChange,
|
|
100
|
+
"data-id": "newsletter-email-input"
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
formData.errorEmail && /* @__PURE__ */ jsx(SubscribeInputError, { children: formData.errorEmail })
|
|
104
|
+
] }),
|
|
105
|
+
/* @__PURE__ */ jsx(
|
|
106
|
+
SubscribeSubmit,
|
|
107
|
+
{
|
|
108
|
+
submitSuccess: formData.submitSuccess,
|
|
109
|
+
id: "newsletter-button-submit",
|
|
110
|
+
type: "submit",
|
|
111
|
+
disabled: !isFormValid(),
|
|
112
|
+
children: formData.submitSuccess ? "Success!" : "Submit"
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
] })
|
|
116
|
+
] }) }) }) });
|
|
117
|
+
};
|
|
118
|
+
var stdin_default = Newsletter;
|
|
119
|
+
export {
|
|
120
|
+
Newsletter,
|
|
121
|
+
stdin_default as default
|
|
122
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import rwd, { rwdMax } from "../../styles/rwd.js";
|
|
3
|
+
import { BASE_MARGIN, MAX_WIDTH, GRAY_BASE_HEX, RED_BASE_HEX, WHITE_HEX } from "../../constants/style.js";
|
|
4
|
+
import { Button } from "../Button/Button.styles.js";
|
|
5
|
+
const withMarginsCss = css`
|
|
6
|
+
padding-left: ${BASE_MARGIN * 2}px;
|
|
7
|
+
padding-right: ${BASE_MARGIN * 2}px;
|
|
8
|
+
|
|
9
|
+
${rwdMax.Medium`
|
|
10
|
+
padding: 0 ${BASE_MARGIN * 2}px;
|
|
11
|
+
`}
|
|
12
|
+
${rwdMax.Mobile`
|
|
13
|
+
padding: 0 ${BASE_MARGIN * 2}px;
|
|
14
|
+
`}
|
|
15
|
+
`;
|
|
16
|
+
const Container = styled.div.withConfig({
|
|
17
|
+
shouldForwardProp: (props) => !["compact", "isMobile", "noPaddingHorizontal"].includes(props)
|
|
18
|
+
})`
|
|
19
|
+
${({ compact }) => !compact && withMarginsCss};
|
|
20
|
+
padding: ${({ isMobile }) => isMobile && "52px 32px 56px !important"};
|
|
21
|
+
padding: ${({ noPaddingHorizontal }) => noPaddingHorizontal && "52px 0px 56px !important"};
|
|
22
|
+
`;
|
|
23
|
+
const LayoutWrapper = styled.div.withConfig({
|
|
24
|
+
shouldForwardProp: (props) => !["notFullHeight", "minimal", "noBorder"].includes(props)
|
|
25
|
+
})`
|
|
26
|
+
display: flex;
|
|
27
|
+
min-height: ${({ notFullHeight }) => notFullHeight ? "unset" : "100vh"};
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
position: relative;
|
|
30
|
+
max-width: ${MAX_WIDTH}px;
|
|
31
|
+
margin-left: auto;
|
|
32
|
+
margin-right: auto;
|
|
33
|
+
width: 100%;
|
|
34
|
+
|
|
35
|
+
${rwd.Large`
|
|
36
|
+
border-right: 1px solid ${GRAY_BASE_HEX};
|
|
37
|
+
border-left: 1px solid ${GRAY_BASE_HEX};
|
|
38
|
+
`}
|
|
39
|
+
|
|
40
|
+
${({ minimal }) => minimal && css`
|
|
41
|
+
min-height: 0;
|
|
42
|
+
`}
|
|
43
|
+
${({ noBorder }) => noBorder && css`
|
|
44
|
+
border: none !important;
|
|
45
|
+
`}
|
|
46
|
+
`;
|
|
47
|
+
const Subscribe = styled.div`
|
|
48
|
+
padding: 72px 65px 68px;
|
|
49
|
+
background-color: ${RED_BASE_HEX};
|
|
50
|
+
|
|
51
|
+
${rwdMax.MLarge`
|
|
52
|
+
padding: 68px ${BASE_MARGIN * 2}px;
|
|
53
|
+
`}
|
|
54
|
+
`;
|
|
55
|
+
const SubscribeTitle = styled.h3`
|
|
56
|
+
color: white;
|
|
57
|
+
font-family: 'Open Sans', 'Helvetica', 'Helvetica Neue', sans-serif;
|
|
58
|
+
font-size: 22px;
|
|
59
|
+
font-weight: 800;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-stretch: normal;
|
|
62
|
+
line-height: 1.27;
|
|
63
|
+
letter-spacing: 0.8px;
|
|
64
|
+
margin: 0 0 60px;
|
|
65
|
+
`;
|
|
66
|
+
const SubscribeInputBox = styled.div`
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
flex: 1 0 auto;
|
|
70
|
+
position: relative;
|
|
71
|
+
`;
|
|
72
|
+
const SubscribeInput = styled.input`
|
|
73
|
+
text-transform: initial;
|
|
74
|
+
letter-spacing: 2.1px;
|
|
75
|
+
font-size: 11px;
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
line-height: 2.18;
|
|
78
|
+
color: white;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
flex: 1 0 auto;
|
|
81
|
+
margin-right: 56px;
|
|
82
|
+
padding: 8px 0;
|
|
83
|
+
background: transparent;
|
|
84
|
+
border: none;
|
|
85
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
86
|
+
outline: none;
|
|
87
|
+
|
|
88
|
+
/* Override browser autofill styles */
|
|
89
|
+
&:-webkit-autofill,
|
|
90
|
+
&:-webkit-autofill:hover,
|
|
91
|
+
&:-webkit-autofill:focus,
|
|
92
|
+
&:-webkit-autofill:active {
|
|
93
|
+
-webkit-text-fill-color: white !important;
|
|
94
|
+
-webkit-box-shadow: 0 0 0 30px ${RED_BASE_HEX} inset !important;
|
|
95
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
96
|
+
caret-color: white !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
${rwdMax.MLarge`
|
|
100
|
+
margin-right: 0;
|
|
101
|
+
display: block;
|
|
102
|
+
width: 100%;
|
|
103
|
+
margin-bottom: 36px;
|
|
104
|
+
`}
|
|
105
|
+
|
|
106
|
+
&::-webkit-input-placeholder {
|
|
107
|
+
color: white;
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
}
|
|
110
|
+
&::-moz-placeholder {
|
|
111
|
+
color: white;
|
|
112
|
+
text-transform: uppercase;
|
|
113
|
+
}
|
|
114
|
+
&::placeholder {
|
|
115
|
+
color: white;
|
|
116
|
+
text-transform: uppercase;
|
|
117
|
+
}
|
|
118
|
+
`;
|
|
119
|
+
const SubscribeInputError = styled.p`
|
|
120
|
+
color: white;
|
|
121
|
+
font-size: 9px;
|
|
122
|
+
font-weight: 400;
|
|
123
|
+
letter-spacing: 1.8px;
|
|
124
|
+
margin: 9px 0;
|
|
125
|
+
position: absolute;
|
|
126
|
+
text-transform: uppercase;
|
|
127
|
+
top: 39px;
|
|
128
|
+
`;
|
|
129
|
+
const SubscribeSubmit = styled(Button).withConfig({
|
|
130
|
+
shouldForwardProp: (props) => !["submitSuccess"].includes(props)
|
|
131
|
+
})`
|
|
132
|
+
padding-left: 40px;
|
|
133
|
+
padding-right: 40px;
|
|
134
|
+
background: ${RED_BASE_HEX};
|
|
135
|
+
font-size: 11px;
|
|
136
|
+
display: flex;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
width: 136px; /* Fixed value so both states keep same width */
|
|
139
|
+
|
|
140
|
+
${rwdMax.MLarge`
|
|
141
|
+
margin: 0 auto 0;
|
|
142
|
+
display: block;
|
|
143
|
+
padding-left: 48px;
|
|
144
|
+
padding-right: 48px;
|
|
145
|
+
width: unset;
|
|
146
|
+
`}
|
|
147
|
+
|
|
148
|
+
&&&& {
|
|
149
|
+
border-color: white;
|
|
150
|
+
color: white;
|
|
151
|
+
|
|
152
|
+
&:hover {
|
|
153
|
+
background: ${WHITE_HEX};
|
|
154
|
+
color: ${RED_BASE_HEX};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:active,
|
|
158
|
+
&:focus {
|
|
159
|
+
background: ${RED_BASE_HEX};
|
|
160
|
+
color: ${WHITE_HEX};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
${({ submitSuccess }) => submitSuccess && `
|
|
165
|
+
background: ${WHITE_HEX} !important;
|
|
166
|
+
color: ${RED_BASE_HEX} !important;
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
`}
|
|
169
|
+
`;
|
|
170
|
+
const SubscribeForm = styled.form`
|
|
171
|
+
display: flex;
|
|
172
|
+
|
|
173
|
+
${rwdMax.MLarge` display: block;
|
|
174
|
+
`}
|
|
175
|
+
`;
|
|
176
|
+
export {
|
|
177
|
+
Container,
|
|
178
|
+
LayoutWrapper,
|
|
179
|
+
Subscribe,
|
|
180
|
+
SubscribeForm,
|
|
181
|
+
SubscribeInput,
|
|
182
|
+
SubscribeInputBox,
|
|
183
|
+
SubscribeInputError,
|
|
184
|
+
SubscribeSubmit,
|
|
185
|
+
SubscribeTitle
|
|
186
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import theme from "../../styles/theme.js";
|
|
3
|
+
const NotificationCounter = styled.span.withConfig({
|
|
4
|
+
shouldForwardProp: (props) => !["avatar", "mobile", "mobileMenu"].includes(props)
|
|
5
|
+
})`
|
|
6
|
+
display: inline-block;
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
color: ${() => theme.cWhite};
|
|
9
|
+
background-color: ${() => theme.cWarning};
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
min-width: 16px;
|
|
12
|
+
height: 16px;
|
|
13
|
+
font-size: 11px;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
line-height: 16px;
|
|
16
|
+
text-align: center;
|
|
17
|
+
|
|
18
|
+
${(props) => props.avatar && `
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
`}
|
|
24
|
+
|
|
25
|
+
${(props) => props.mobile && `
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 5px;
|
|
28
|
+
right: 5px;
|
|
29
|
+
z-index: 1;
|
|
30
|
+
`}
|
|
31
|
+
${(props) => props.mobileMenu && `
|
|
32
|
+
margin:0 5px;
|
|
33
|
+
`}
|
|
34
|
+
`;
|
|
35
|
+
export {
|
|
36
|
+
NotificationCounter,
|
|
37
|
+
NotificationCounter as default
|
|
38
|
+
};
|