@stokr/components-library 3.0.16 → 3.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +187 -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/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 +89 -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 +224 -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/index.js +628 -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/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 +56 -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 +146 -146
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
import media from "../StokrLoader/media.js";
|
|
4
|
+
import theme from "../../styles/theme.js";
|
|
5
|
+
const CustomH1 = styled.h1.withConfig({
|
|
6
|
+
shouldForwardProp: (props) => !["extramargin"].includes(props)
|
|
7
|
+
})`
|
|
8
|
+
font-size: 34px;
|
|
9
|
+
font-weight: 800;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-stretch: normal;
|
|
12
|
+
line-height: 1.18;
|
|
13
|
+
letter-spacing: 0.8px;
|
|
14
|
+
text-transform: uppercase;
|
|
15
|
+
|
|
16
|
+
${(props) => props.extramargin && css`
|
|
17
|
+
margin-top: 2rem;
|
|
18
|
+
margin-bottom: 3rem;
|
|
19
|
+
`}
|
|
20
|
+
|
|
21
|
+
@media screen and (max-width: 767px) {
|
|
22
|
+
font-size: 22px;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
const BigH3Title = styled.h3`
|
|
26
|
+
font-size: 1.25rem;
|
|
27
|
+
font-weight: 900;
|
|
28
|
+
letter-spacing: normal;
|
|
29
|
+
line-height: 1.28571429em;
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
margin-bottom: 1rem;
|
|
32
|
+
position: relative;
|
|
33
|
+
|
|
34
|
+
${media.desktop`
|
|
35
|
+
top: -1px;
|
|
36
|
+
`};
|
|
37
|
+
`;
|
|
38
|
+
const Customh2 = styled.h3.withConfig({
|
|
39
|
+
shouldForwardProp: (props) => !["announcementcustomh2"].includes(props)
|
|
40
|
+
})`
|
|
41
|
+
font-size: 1.12rem;
|
|
42
|
+
font-weight: 900;
|
|
43
|
+
letter-spacing: normal;
|
|
44
|
+
text-transform: uppercase;
|
|
45
|
+
margin-bottom: 1rem;
|
|
46
|
+
|
|
47
|
+
${(props) => props.announcementcustomh2 && css`
|
|
48
|
+
margin-bottom: 3rem;
|
|
49
|
+
`}
|
|
50
|
+
|
|
51
|
+
${media.desktop`
|
|
52
|
+
font-size: 2rem;
|
|
53
|
+
`};
|
|
54
|
+
`;
|
|
55
|
+
const LandingPageTitle = styled.h2.withConfig({
|
|
56
|
+
shouldForwardProp: (props) => !["dark", "home", "announcementheading"].includes(props)
|
|
57
|
+
})`
|
|
58
|
+
display: block;
|
|
59
|
+
text-transform: uppercase;
|
|
60
|
+
font-weight: 800;
|
|
61
|
+
font-size: 2rem;
|
|
62
|
+
font-size: 34px !important;
|
|
63
|
+
|
|
64
|
+
line-height: 2.31rem;
|
|
65
|
+
letter-spacing: 0.06rem;
|
|
66
|
+
color: ${(props) => props.dark ? theme.cBlack : theme.cWhite};
|
|
67
|
+
margin: ${(props) => props.home ? "1rem 0 0" : "1rem 0 1.5rem"};
|
|
68
|
+
order: 2;
|
|
69
|
+
position: relative;
|
|
70
|
+
top: -13px;
|
|
71
|
+
|
|
72
|
+
br {
|
|
73
|
+
// display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
${(props) => props.announcementheading && css`
|
|
77
|
+
font-size: 22px !important;
|
|
78
|
+
`}
|
|
79
|
+
|
|
80
|
+
${media.tablet`
|
|
81
|
+
font-size: 3rem;
|
|
82
|
+
// line-height: 4rem;
|
|
83
|
+
line-height: 1;
|
|
84
|
+
top: -15px;
|
|
85
|
+
`};
|
|
86
|
+
|
|
87
|
+
${media.desktop`
|
|
88
|
+
font-size: 2.6rem;
|
|
89
|
+
margin: 0 0 2rem 0;
|
|
90
|
+
letter-spacing: 0.165rem;
|
|
91
|
+
line-height: 1;
|
|
92
|
+
order: 1;
|
|
93
|
+
top: 0;
|
|
94
|
+
|
|
95
|
+
br {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
}
|
|
98
|
+
`};
|
|
99
|
+
|
|
100
|
+
${media.large`
|
|
101
|
+
font-size: 2.68rem;
|
|
102
|
+
`};
|
|
103
|
+
|
|
104
|
+
${media.default`
|
|
105
|
+
font-size: 3.18rem;
|
|
106
|
+
`};
|
|
107
|
+
|
|
108
|
+
${media.widescreen`
|
|
109
|
+
font-size: 4.18rem;
|
|
110
|
+
`};
|
|
111
|
+
`;
|
|
112
|
+
const LandingPageTitleLink = styled(Link)`
|
|
113
|
+
color: #000;
|
|
114
|
+
display: flex;
|
|
115
|
+
order: 2;
|
|
116
|
+
transition: opacity 0.3s;
|
|
117
|
+
|
|
118
|
+
&:after {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover,
|
|
123
|
+
&:active {
|
|
124
|
+
color: #000;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
${media.desktop`
|
|
128
|
+
order: 1;
|
|
129
|
+
|
|
130
|
+
&:hover,
|
|
131
|
+
&:active {
|
|
132
|
+
color: #000;
|
|
133
|
+
opacity: 0.65;
|
|
134
|
+
}
|
|
135
|
+
`};
|
|
136
|
+
`;
|
|
137
|
+
const AnnouncementTitleMain = styled.span.withConfig({
|
|
138
|
+
shouldForwardProp: (props) => !["dark", "home", "annouvementheading"].includes(props)
|
|
139
|
+
})`
|
|
140
|
+
display: block;
|
|
141
|
+
text-transform: uppercase;
|
|
142
|
+
font-weight: 800;
|
|
143
|
+
font-size: 2rem;
|
|
144
|
+
font-size: 34px !important;
|
|
145
|
+
|
|
146
|
+
line-height: 2.31rem;
|
|
147
|
+
letter-spacing: 0.06rem;
|
|
148
|
+
color: ${(props) => props.dark ? theme.cBlack : theme.cWhite};
|
|
149
|
+
margin: ${(props) => props.home ? "1rem 0 0" : "1rem 0 1.5rem"};
|
|
150
|
+
order: 2;
|
|
151
|
+
position: relative;
|
|
152
|
+
top: -13px;
|
|
153
|
+
|
|
154
|
+
br {
|
|
155
|
+
// display: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
${(props) => props.announcementheading && css`
|
|
159
|
+
font-size: 22px !important;
|
|
160
|
+
`}
|
|
161
|
+
|
|
162
|
+
${media.tablet`
|
|
163
|
+
font-size: 3rem;
|
|
164
|
+
// line-height: 4rem;
|
|
165
|
+
line-height: 1;
|
|
166
|
+
top: -15px;
|
|
167
|
+
`};
|
|
168
|
+
|
|
169
|
+
${media.desktop`
|
|
170
|
+
font-size: 2.6rem;
|
|
171
|
+
margin: 0 0 2rem 0;
|
|
172
|
+
letter-spacing: 0.165rem;
|
|
173
|
+
line-height: 1;
|
|
174
|
+
order: 1;
|
|
175
|
+
top: 0;
|
|
176
|
+
|
|
177
|
+
br {
|
|
178
|
+
display: inline-block;
|
|
179
|
+
}
|
|
180
|
+
`};
|
|
181
|
+
|
|
182
|
+
${media.large`
|
|
183
|
+
font-size: 2.68rem;
|
|
184
|
+
`};
|
|
185
|
+
|
|
186
|
+
${media.default`
|
|
187
|
+
font-size: 3.18rem;
|
|
188
|
+
`};
|
|
189
|
+
|
|
190
|
+
${media.widescreen`
|
|
191
|
+
font-size: 4.18rem;
|
|
192
|
+
`};
|
|
193
|
+
`;
|
|
194
|
+
const CareersTitleMain = styled.span.withConfig({
|
|
195
|
+
shouldForwardProp: (props) => !["dark", "home", "annoucementheading"].includes(props)
|
|
196
|
+
})`
|
|
197
|
+
display: block;
|
|
198
|
+
text-transform: uppercase;
|
|
199
|
+
font-weight: 800;
|
|
200
|
+
font-size: 2rem;
|
|
201
|
+
font-size: 34px !important;
|
|
202
|
+
|
|
203
|
+
line-height: 2.31rem;
|
|
204
|
+
letter-spacing: 0.06rem;
|
|
205
|
+
color: ${(props) => props.dark ? theme.cBlack : theme.cWhite};
|
|
206
|
+
margin: ${(props) => props.home ? "1rem 0 0" : "1rem 0 1.5rem"};
|
|
207
|
+
order: 2;
|
|
208
|
+
position: relative;
|
|
209
|
+
top: -13px;
|
|
210
|
+
|
|
211
|
+
br {
|
|
212
|
+
// display: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
${(props) => props.announcementheading && css`
|
|
216
|
+
font-size: 22px !important;
|
|
217
|
+
`}
|
|
218
|
+
|
|
219
|
+
${media.tablet`
|
|
220
|
+
font-size: 3rem;
|
|
221
|
+
// line-height: 4rem;
|
|
222
|
+
line-height: 1;
|
|
223
|
+
top: -15px;
|
|
224
|
+
`};
|
|
225
|
+
|
|
226
|
+
${media.desktop`
|
|
227
|
+
font-size: 2.6rem;
|
|
228
|
+
margin: 0 0 2rem 0;
|
|
229
|
+
letter-spacing: 0.165rem;
|
|
230
|
+
line-height: 1;
|
|
231
|
+
order: 1;
|
|
232
|
+
top: 0;
|
|
233
|
+
|
|
234
|
+
br {
|
|
235
|
+
display: inline-block;
|
|
236
|
+
}
|
|
237
|
+
`};
|
|
238
|
+
|
|
239
|
+
${media.large`
|
|
240
|
+
font-size: 2.68rem;
|
|
241
|
+
`};
|
|
242
|
+
|
|
243
|
+
${media.default`
|
|
244
|
+
font-size: 3.18rem;
|
|
245
|
+
`};
|
|
246
|
+
|
|
247
|
+
${media.widescreen`
|
|
248
|
+
font-size: 4.18rem;
|
|
249
|
+
`};
|
|
250
|
+
`;
|
|
251
|
+
export {
|
|
252
|
+
AnnouncementTitleMain,
|
|
253
|
+
BigH3Title,
|
|
254
|
+
CareersTitleMain,
|
|
255
|
+
CustomH1,
|
|
256
|
+
Customh2,
|
|
257
|
+
LandingPageTitle,
|
|
258
|
+
LandingPageTitleLink
|
|
259
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PureComponent } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
const _Logo = class _Logo extends PureComponent {
|
|
5
|
+
render() {
|
|
6
|
+
const { width, height } = this.props;
|
|
7
|
+
return /* @__PURE__ */ jsx("svg", { width, height, viewBox: "0 0 70 17", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("g", { id: "Symbols", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx("g", { id: "Top-Nav-1024", transform: "translate(-32 -39)", fill: "#000", children: /* @__PURE__ */ jsx("g", { id: "Top-Nav", children: /* @__PURE__ */ jsx("g", { id: "Logo", transform: "translate(32 39)", children: /* @__PURE__ */ jsxs("g", { id: "Group", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(
|
|
9
|
+
"path",
|
|
10
|
+
{
|
|
11
|
+
d: "M66.555242,6.16782412 L66.555103,6.16782412 C66.5514882,8.76665019 63.0238681,8.50517947 62.2490512,8.50617204 L62.2490512,6.16782412 L62.2490512,6.16399565 L62.2490512,3.82564773 C63.0238681,3.8264985 66.5514882,3.56516958 66.555103,6.16399565 L66.555242,6.16399565 L66.555242,6.16583899 L66.555242,6.16782412 Z M66.8324688,10.6725221 C68.2988232,9.97857546 69.4256651,8.66257236 69.4256651,6.16640617 C69.4256651,1.35231059 65.2390406,0.921110786 62.4986109,0.896296591 C62.4767832,0.896013001 62.4546773,0.89572941 62.4329886,0.895587614 C62.3800179,0.895162228 62.3284376,0.895020433 62.2765793,0.895020433 C62.2468268,0.894878638 62.2162401,0.894736842 62.1867656,0.894736842 C62.1767554,0.894736842 62.1674404,0.894736842 62.1575692,0.894736842 C62.0823537,0.894736842 62.0092237,0.895162228 61.9367888,0.895445819 C61.9152391,0.895587614 61.8922991,0.895587614 61.8708884,0.89572941 C61.7910849,0.895162228 61.7125327,0.895020433 61.6353707,0.895020433 L61.6291144,0.895020433 C61.6168797,0.895020433 61.6054792,0.895162228 61.5933835,0.895162228 C61.5101043,0.895162228 61.4289105,0.895445819 61.349246,0.895871205 C61.2239796,0.896438387 61.1020499,0.897289159 60.9870717,0.897856341 L59.3784891,0.897856341 L59.3670886,0.897856341 L59.3670886,6.16640617 L59.3670886,11.434956 L59.3784891,11.434956 L59.3784891,17 L62.2490512,17 L62.2490512,11.4379337 C62.3834937,11.4377919 62.52169,11.4366575 62.6637791,11.4343888 C62.667533,11.4343888 62.6711478,11.4343888 62.6749016,11.434247 C62.8087879,11.4321201 62.9457329,11.4285752 63.0850415,11.4237542 C63.1061741,11.4229034 63.1273067,11.4220526 63.1485784,11.4212018 C63.420522,11.4109926 63.7008074,11.3941189 63.9856809,11.3681704 C64.0075086,11.366327 64.0287803,11.3653345 64.0506081,11.3632075 L66.8618042,17 L70,17 L66.8324688,10.6725221 Z",
|
|
12
|
+
id: "Fill-1"
|
|
13
|
+
}
|
|
14
|
+
),
|
|
15
|
+
/* @__PURE__ */ jsx(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M33.2278481,0 L33.2278481,3.25720306 C36.0908776,3.25720306 38.4199231,5.60917812 38.4199231,8.50007222 C38.4199231,11.3908219 36.0908776,13.7429414 33.2278481,13.7429414 C30.3649617,13.7429414 28.0357731,11.3908219 28.0357731,8.50007222 C28.0357731,8.49935 28.0359161,8.49877223 28.0359161,8.49805001 L24.8102696,8.49805001 C24.8102696,8.49877223 24.8101266,8.49935 24.8101266,8.50007222 C24.8101266,13.1944891 28.5789119,17 33.2278481,17 C37.8767843,17 41.6455696,13.1944891 41.6455696,8.50007222 C41.6455696,3.80551095 37.8767843,0 33.2278481,0",
|
|
19
|
+
id: "Fill-3"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M7.9484999,4.62134099 C7.11165312,3.50634299 6.25994933,2.94877176 5.39265303,2.94877176 C4.97033151,2.94877176 4.62494282,3.05710814 4.35633987,3.27334755 C4.08773691,3.48987586 3.95343543,3.73384938 3.95343543,4.00512367 C3.95343543,4.27668686 4.04919694,4.53337185 4.24130837,4.7753231 C4.50211507,5.09830995 5.28880107,5.79151832 6.60121924,6.85494821 C7.82905543,7.83806473 8.57352398,8.45789326 8.83462489,8.71457825 C9.4868623,9.34552932 9.94919477,9.94860182 10.2217694,10.5246625 C10.4941969,11.1004342 10.6305578,11.729363 10.6305578,12.4115933 C10.6305578,13.7395084 10.1510147,14.836017 9.1923699,15.7016968 C8.23343086,16.5672323 6.9833827,17 5.44193123,17 C4.23763089,17 3.1888143,16.7174587 2.29518727,16.1528095 C1.40170733,15.5878714 0.636497809,14.7003798 0,13.4899014 L2.70485826,11.9275463 C3.51831629,13.3578754 4.45445497,14.07304 5.51342139,14.07304 C6.06563142,14.07304 6.53002328,13.9192023 6.90600858,13.6109492 C7.28214098,13.302985 7.47013363,12.9472083 7.47013363,12.5436192 C7.47013363,12.1770089 7.3280359,11.8102541 7.04413463,11.4433549 C6.76008627,11.0766002 6.13476799,10.5154178 5.16773851,9.75980763 C3.32561647,8.32211167 2.13587894,7.21245826 1.59867303,6.43128075 C1.06146711,5.65010324 0.793011252,4.87065911 0.793011252,4.09323726 C0.793011252,2.97087238 1.23989832,2.00797866 2.13352536,1.20484497 C3.02700529,0.401566841 4.12980725,0 5.44148993,0 C6.28539747,0 7.08885276,0.186916364 7.85200289,0.561182438 C8.61530013,0.935159616 9.44170288,1.61753435 10.3316524,2.60787329 L10.6329114,2.91785978 L8.20930661,4.96541733 L7.9484999,4.62134099 Z",
|
|
26
|
+
id: "Fill-6"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
"polygon",
|
|
31
|
+
{
|
|
32
|
+
id: "Fill-9",
|
|
33
|
+
points: "55.2467797 0.894736842 51.7892146 0.894736842 47.8456016 6.2929407 47.1836838 7.18500654 47.1836838 0.894736842 44.3037975 0.894736842 44.3037975 17 47.1836838 17 47.1836838 8.95835969 47.8456016 9.97083315 52.4080366 17 55.8227848 17 50.0632911 8.21563333"
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
"polygon",
|
|
38
|
+
{
|
|
39
|
+
id: "Fill-11",
|
|
40
|
+
points: "13.2911392 3.82295361 16.2447257 3.82295361 16.2447257 17 19.1983122 17 19.1983122 3.82295361 22.1518987 3.82295361 22.1518987 0.894736842 13.2911392 0.894736842"
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] }) }) }) }) }) });
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
_Logo.propTypes = {
|
|
47
|
+
width: PropTypes.number,
|
|
48
|
+
height: PropTypes.number
|
|
49
|
+
};
|
|
50
|
+
_Logo.defaultProps = {
|
|
51
|
+
width: 70,
|
|
52
|
+
height: 17
|
|
53
|
+
};
|
|
54
|
+
let Logo = _Logo;
|
|
55
|
+
export {
|
|
56
|
+
Logo
|
|
57
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Text } from "../Text/Text.styles.js";
|
|
4
|
+
import { useNavigate } from "react-router-dom";
|
|
5
|
+
import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
|
|
6
|
+
import { TextButton } from "../TextLink/TextLink.styles.js";
|
|
7
|
+
import { Button } from "../Button/Button.styles.js";
|
|
8
|
+
const noop = () => {
|
|
9
|
+
};
|
|
10
|
+
const RegisterTaxIdComplete = ({ showBackButton, onClick = noop }) => {
|
|
11
|
+
let navigate = useNavigate();
|
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13
|
+
showBackButton && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingVertical: true, children: /* @__PURE__ */ jsx(TextButton, { onClick: () => navigate("/verify-identity"), children: "Back to verify identity" }) }),
|
|
14
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx("h1", { children: "Your Tax Id has been submitted" }),
|
|
16
|
+
/* @__PURE__ */ jsx("p", { children: "You have successfully submitted your Tax ID information. You will be ready to invest once you have completed all required steps on your checklist. Please continue!" })
|
|
17
|
+
] }) }),
|
|
18
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, children: /* @__PURE__ */ jsx(Button, { onClick, children: "Continue" }) })
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
var stdin_default = RegisterTaxIdComplete;
|
|
22
|
+
export {
|
|
23
|
+
stdin_default as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useRef } from "react";
|
|
3
|
+
import { Modal } from "../Modal/Modal.js";
|
|
4
|
+
import stdin_default$3 from "./register-taxid.js";
|
|
5
|
+
import stdin_default$1 from "../ComponentScroll/ComponentScroll.js";
|
|
6
|
+
import stdin_default$2 from "./complete.js";
|
|
7
|
+
import { ModalInner } from "../Modal/Modal.styles.js";
|
|
8
|
+
const RegisterTaxIdFlow = ({
|
|
9
|
+
showFlow,
|
|
10
|
+
setShowFlow,
|
|
11
|
+
showBackButton,
|
|
12
|
+
showSkipButton,
|
|
13
|
+
redirectUrl,
|
|
14
|
+
onComplete,
|
|
15
|
+
...props
|
|
16
|
+
}) => {
|
|
17
|
+
const [showComplete, setShowComplete] = useState(false);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (showComplete && onComplete) {
|
|
20
|
+
onComplete();
|
|
21
|
+
}
|
|
22
|
+
}, [showComplete]);
|
|
23
|
+
const scrollRef = useRef();
|
|
24
|
+
const handleScroll = (values, ref) => {
|
|
25
|
+
if (ref) {
|
|
26
|
+
scrollRef.current = ref;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ jsx(Modal, { fullscreen: true, isOpen: showFlow, onClose: () => setShowFlow(false), children: /* @__PURE__ */ jsx(ModalInner, { noPaddingHorizontal: true, children: /* @__PURE__ */ jsx(stdin_default$1, { handleScroll, fullHeight: true, children: showComplete ? /* @__PURE__ */ jsx(
|
|
30
|
+
stdin_default$2,
|
|
31
|
+
{
|
|
32
|
+
showBackButton,
|
|
33
|
+
onClick: () => {
|
|
34
|
+
setShowComplete(false);
|
|
35
|
+
setShowFlow(false);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
39
|
+
stdin_default$3,
|
|
40
|
+
{
|
|
41
|
+
setShowComplete,
|
|
42
|
+
showBackButton,
|
|
43
|
+
showSkipButton,
|
|
44
|
+
scrollRef,
|
|
45
|
+
redirectUrl,
|
|
46
|
+
...props
|
|
47
|
+
}
|
|
48
|
+
) }) }) }) });
|
|
49
|
+
};
|
|
50
|
+
var stdin_default = RegisterTaxIdFlow;
|
|
51
|
+
export {
|
|
52
|
+
stdin_default as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useContext, useState } from "react";
|
|
3
|
+
import { useNavigate } from "react-router-dom";
|
|
4
|
+
import { AuthContext } from "../../context/AuthContext.js";
|
|
5
|
+
import { Text } from "../Text/Text.styles.js";
|
|
6
|
+
import * as Yup from "yup";
|
|
7
|
+
import { Formik } from "formik";
|
|
8
|
+
import { Input } from "../Input/Input.js";
|
|
9
|
+
import stdin_default$1 from "../Form/Form.js";
|
|
10
|
+
import stdin_default$4 from "../ToDoList/ToDoListTask.js";
|
|
11
|
+
import { ToDoTaskState } from "../ToDoList/ToDoList.js";
|
|
12
|
+
import { iconsMap } from "../Icon/Icon.style.js";
|
|
13
|
+
import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
|
|
14
|
+
import { TextButton } from "../TextLink/TextLink.styles.js";
|
|
15
|
+
import { Button } from "../Button/Button.styles.js";
|
|
16
|
+
import stdin_default$2 from "../CryptoAddressWrapper/CryptoAddressWrapper.js";
|
|
17
|
+
import stdin_default$3 from "../RefreshButton/RefreshButton.js";
|
|
18
|
+
import { SectionTitle } from "../SectionTitle/SectionTitle.styles.js";
|
|
19
|
+
import stdin_default$5 from "../FAQ/FAQ.js";
|
|
20
|
+
import deleteRedirectCookieAndNavigate from "../../utils/delete-redirect-cookie-and-navigate.js";
|
|
21
|
+
import { FormField, FormError } from "../Form/Form.styles.js";
|
|
22
|
+
const noop = () => {
|
|
23
|
+
};
|
|
24
|
+
const defaultAdditionalTextHeader = /* @__PURE__ */ jsx(Fragment, {});
|
|
25
|
+
const defaultTextHeader = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx("h1", { children: "Provide your tax id" }),
|
|
27
|
+
/* @__PURE__ */ jsx("p", { children: "Some offers require you to provide your Tax ID before being able to invest in." })
|
|
28
|
+
] });
|
|
29
|
+
const defaultShowComplete = noop;
|
|
30
|
+
const defaultFaqItems = [
|
|
31
|
+
{
|
|
32
|
+
title: "Why do I need to provide my Tax ID?",
|
|
33
|
+
content: `We ask for the Tax ID when an offering may fall under speciific reporting requirements. For example the Common Reporting Standard requires investors to provide more information on their tax status.`
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: "How will my information be used?",
|
|
37
|
+
content: `Your tax information will be disclosed to the Luxembourg tax authorities annually for tax compliance purposes required by the Common Reporting Standard implementation.`
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "What if I'd like to do this later?",
|
|
41
|
+
content: "You can always skip this step and complete it at a later point in time. However, you will not be able to invest before doing so and being verified."
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
const RegisterTaxId = ({
|
|
45
|
+
setShowComplete = defaultShowComplete,
|
|
46
|
+
showBackButton,
|
|
47
|
+
showSkipButton,
|
|
48
|
+
scrollRef,
|
|
49
|
+
redirectUrl,
|
|
50
|
+
onContinueClick,
|
|
51
|
+
additionalTextHeader = defaultAdditionalTextHeader,
|
|
52
|
+
backButtonText = "Back to verify identity",
|
|
53
|
+
textHeader = defaultTextHeader,
|
|
54
|
+
textFieldLabel = "enter your tax id",
|
|
55
|
+
faqItems = defaultFaqItems
|
|
56
|
+
}) => {
|
|
57
|
+
let navigate = useNavigate();
|
|
58
|
+
const { user = {}, updateUser } = useContext(AuthContext);
|
|
59
|
+
const { taxId } = user;
|
|
60
|
+
const [isUpdatingUser, setIsUpdatingUser] = useState(false);
|
|
61
|
+
const [error, setError] = useState("");
|
|
62
|
+
const initialValues = {
|
|
63
|
+
taxId: ""
|
|
64
|
+
};
|
|
65
|
+
const validationSchema = Yup.object().shape({
|
|
66
|
+
taxId: Yup.string().required("Oops, this can‘t be blank")
|
|
67
|
+
});
|
|
68
|
+
const handleOnSubmit = async (e) => {
|
|
69
|
+
setIsUpdatingUser(true);
|
|
70
|
+
try {
|
|
71
|
+
await updateUser({
|
|
72
|
+
taxId: e.taxId
|
|
73
|
+
});
|
|
74
|
+
setShowComplete(true);
|
|
75
|
+
} catch (_error) {
|
|
76
|
+
setError("Something went wrong. Try again.");
|
|
77
|
+
setIsUpdatingUser(false);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const onRefreshClick = () => {
|
|
81
|
+
setError(false);
|
|
82
|
+
};
|
|
83
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
84
|
+
showBackButton ? /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingVertical: true, children: /* @__PURE__ */ jsx(TextButton, { onClick: () => navigate("/verify-identity"), children: backButtonText }) }) : /* @__PURE__ */ jsx("div", { style: { height: 14 } }),
|
|
85
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
86
|
+
textHeader && textHeader,
|
|
87
|
+
additionalTextHeader && additionalTextHeader
|
|
88
|
+
] }) }),
|
|
89
|
+
taxId && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, children: /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsx("p", { children: "You have successfully submitted your Tax ID information." }) }) }),
|
|
90
|
+
!isUpdatingUser && !error && !taxId && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingVertical: true, children: /* @__PURE__ */ jsx(Formik, { initialValues, validationSchema, onSubmit: handleOnSubmit, children: ({ values, errors, touched, handleChange, handleBlur }) => {
|
|
91
|
+
const submitDisabled = !values.taxId;
|
|
92
|
+
return /* @__PURE__ */ jsxs(stdin_default$1, { children: [
|
|
93
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPadding: true, children: /* @__PURE__ */ jsxs(FormField, { children: [
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
Input,
|
|
96
|
+
{
|
|
97
|
+
id: "tax-id",
|
|
98
|
+
name: "taxId",
|
|
99
|
+
type: "input",
|
|
100
|
+
label: textFieldLabel,
|
|
101
|
+
value: values.taxId,
|
|
102
|
+
onChange: handleChange,
|
|
103
|
+
onBlur: handleBlur,
|
|
104
|
+
error: !!errors.taxId,
|
|
105
|
+
touched: !!touched.taxId
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ jsx(FormError, { show: errors.taxId && touched.taxId, children: errors.taxId })
|
|
109
|
+
] }) }),
|
|
110
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
111
|
+
!taxId && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingBottom: true, noPaddingHorizontal: true, children: /* @__PURE__ */ jsx(
|
|
112
|
+
Button,
|
|
113
|
+
{
|
|
114
|
+
minWidth: "230px",
|
|
115
|
+
type: "submit",
|
|
116
|
+
id: "tax-id-submit-btn",
|
|
117
|
+
disabled: submitDisabled || isUpdatingUser || taxId,
|
|
118
|
+
children: "Submit"
|
|
119
|
+
}
|
|
120
|
+
) })
|
|
121
|
+
] });
|
|
122
|
+
} }) }),
|
|
123
|
+
(isUpdatingUser || error) && /* @__PURE__ */ jsx(ComponentWrapper, { borderTop: true, borderBottom: true, center: true, children: /* @__PURE__ */ jsx(
|
|
124
|
+
stdin_default$2,
|
|
125
|
+
{
|
|
126
|
+
noFailedIcon: true,
|
|
127
|
+
relative: true,
|
|
128
|
+
refresh: isUpdatingUser && "Please wait while we submit your Tax ID.",
|
|
129
|
+
failed: error
|
|
130
|
+
}
|
|
131
|
+
) }),
|
|
132
|
+
error && /* @__PURE__ */ jsx(ComponentWrapper, { center: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(stdin_default$3, { onClick: onRefreshClick, children: "TRY AGAIN" }) }),
|
|
133
|
+
taxId && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingVertical: true, children: /* @__PURE__ */ jsx(
|
|
134
|
+
stdin_default$4,
|
|
135
|
+
{
|
|
136
|
+
title: "Tax ID",
|
|
137
|
+
message: "You tax ID is submitted",
|
|
138
|
+
state: ToDoTaskState.APPROVED,
|
|
139
|
+
icon: iconsMap.check
|
|
140
|
+
}
|
|
141
|
+
) }),
|
|
142
|
+
showSkipButton && /* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsx(
|
|
143
|
+
TextButton,
|
|
144
|
+
{
|
|
145
|
+
onClick: () => {
|
|
146
|
+
if (redirectUrl) {
|
|
147
|
+
if (onContinueClick) {
|
|
148
|
+
onContinueClick();
|
|
149
|
+
} else {
|
|
150
|
+
deleteRedirectCookieAndNavigate();
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
navigate("/register-liquid-securities");
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
children: taxId ? "Continue" : "I'll do this later"
|
|
157
|
+
}
|
|
158
|
+
) }),
|
|
159
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingBottom: true, children: /* @__PURE__ */ jsx(SectionTitle, { children: "Frequently Asked Questions" }) }),
|
|
160
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { children: /* @__PURE__ */ jsx(stdin_default$5, { scrollRef, items: faqItems }) })
|
|
161
|
+
] });
|
|
162
|
+
};
|
|
163
|
+
var stdin_default = RegisterTaxId;
|
|
164
|
+
export {
|
|
165
|
+
stdin_default as default
|
|
166
|
+
};
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { initFirebase } from "./firebase-config.js";
|
|
2
|
+
import axiosInstance from "./model/axios.js";
|
|
3
|
+
import axiosInstance$1 from "./model/axiosPublic.js";
|
|
4
|
+
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_API_URL": "https://platform-api.stokr.info/api/v1", "VITE_BASE_URL_PUBLIC": "https://platform-api-no-auth.stokr.info/api/v1", "VITE_COOKIE_DOMAIN": "stokr.info", "VITE_FIREBASE_API_KEY": "AIzaSyBBp_3Romnfv--YpUuV0mJgDymvSp3oq0c", "VITE_FIREBASE_APP_ID": "1:568229412804:web:2391857e3e2a0b02346e91", "VITE_FIREBASE_AUTH_DOMAIN": "stokr-development-env.firebaseapp.com", "VITE_FIREBASE_MEASUREMENT_ID": "G-CP53SZVSMN", "VITE_FIREBASE_MESSAGING_SENDER_ID": "568229412804", "VITE_FIREBASE_PROJECT_ID": "stokr-development-env", "VITE_FIREBASE_STORAGE_BUCKET": "stokr-development-env.appspot.com", "VITE_MIXPANEL_TOKEN": "a7bb1e881f9b2600762fded84d8ce0ea", "VITE_PHOTO_API_URL": "https://platform-api.stokr.info/api/v1", "VITE_WEBSITE_DOMAIN": "stokr.info" };
|
|
5
|
+
const _overrides = {};
|
|
6
|
+
let _lastFirebaseConfig = null;
|
|
7
|
+
function configure(config = {}) {
|
|
8
|
+
Object.assign(_overrides, config);
|
|
9
|
+
if (config.apiUrl != null) {
|
|
10
|
+
axiosInstance.defaults.baseURL = config.apiUrl;
|
|
11
|
+
}
|
|
12
|
+
if (config.baseUrlPublic != null) {
|
|
13
|
+
axiosInstance$1.defaults.baseURL = config.baseUrlPublic;
|
|
14
|
+
}
|
|
15
|
+
if (config.firebase) {
|
|
16
|
+
_lastFirebaseConfig = config.firebase;
|
|
17
|
+
initFirebase(config.firebase);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function getLastFirebaseConfig() {
|
|
21
|
+
return _lastFirebaseConfig;
|
|
22
|
+
}
|
|
23
|
+
function env(name) {
|
|
24
|
+
try {
|
|
25
|
+
return __vite_import_meta_env__?.[name];
|
|
26
|
+
} catch {
|
|
27
|
+
return void 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function getConfig(key) {
|
|
31
|
+
const envMap = {
|
|
32
|
+
apiUrl: "VITE_API_URL",
|
|
33
|
+
baseUrlPublic: "VITE_BASE_URL_PUBLIC",
|
|
34
|
+
cookieDomain: "VITE_COOKIE_DOMAIN",
|
|
35
|
+
websiteDomain: "VITE_WEBSITE_DOMAIN",
|
|
36
|
+
photoApiUrl: "VITE_PHOTO_API_URL"
|
|
37
|
+
};
|
|
38
|
+
return _overrides[key] ?? env(envMap[key]);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
configure,
|
|
42
|
+
getConfig,
|
|
43
|
+
getLastFirebaseConfig
|
|
44
|
+
};
|