@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,67 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const styles = css`
|
|
5
|
+
background: #fff;
|
|
6
|
+
border: none;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
position: relative;
|
|
9
|
+
font-family: 'Open Sans';
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
font-size: 11px;
|
|
12
|
+
line-height: 14px;
|
|
13
|
+
text-transform: uppercase;
|
|
14
|
+
display: inline-block;
|
|
15
|
+
padding-left: 18px;
|
|
16
|
+
padding-right: 6px;
|
|
17
|
+
transition: padding 0.2s;
|
|
18
|
+
|
|
19
|
+
&:before {
|
|
20
|
+
content: '\\f3d1';
|
|
21
|
+
font-family: 'Ionicons';
|
|
22
|
+
speak: none;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
font-variant: normal;
|
|
26
|
+
text-transform: none;
|
|
27
|
+
text-rendering: auto;
|
|
28
|
+
-webkit-font-smoothing: antialiased;
|
|
29
|
+
-moz-osx-font-smoothing: grayscale;
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
line-height: 8px;
|
|
32
|
+
display: block;
|
|
33
|
+
width: 8px;
|
|
34
|
+
height: 8px;
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 50%;
|
|
37
|
+
left: 0;
|
|
38
|
+
margin-top: -4px;
|
|
39
|
+
color: ${() => theme.cWarning};
|
|
40
|
+
transform: ${(props) => props.reverse ? "rotate(180deg)" : "none"};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
padding-left: 24px;
|
|
45
|
+
padding-right: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
${(props) => props.disabled && css`
|
|
49
|
+
opacity: 0.5;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
`}
|
|
52
|
+
`;
|
|
53
|
+
const TextLink = styled(Link).withConfig({
|
|
54
|
+
shouldForwardProp: (props) => !["reverse", "disabled"].includes(props)
|
|
55
|
+
})`
|
|
56
|
+
${styles}
|
|
57
|
+
`;
|
|
58
|
+
const TextButton = styled.button.withConfig({
|
|
59
|
+
shouldForwardProp: (props) => !["reverse", "disabled"].includes(props)
|
|
60
|
+
})`
|
|
61
|
+
${styles}
|
|
62
|
+
`;
|
|
63
|
+
export {
|
|
64
|
+
TextButton,
|
|
65
|
+
TextLink,
|
|
66
|
+
TextLink as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { TimelineContainer } from "./Timeline.styles.js";
|
|
4
|
+
import { TimelineStep } from "./TimelineStep.js";
|
|
5
|
+
const Timeline = ({
|
|
6
|
+
steps = [],
|
|
7
|
+
maxWidth,
|
|
8
|
+
showInfoIcons = true,
|
|
9
|
+
infoIconPosition = "right",
|
|
10
|
+
// Style props
|
|
11
|
+
containerStyle,
|
|
12
|
+
className,
|
|
13
|
+
stepStyle,
|
|
14
|
+
iconStyle,
|
|
15
|
+
contentStyle
|
|
16
|
+
}) => {
|
|
17
|
+
return /* @__PURE__ */ jsx(TimelineContainer, { maxWidth, style: containerStyle, className, children: steps.map((step, index) => {
|
|
18
|
+
const isLast = index === steps.length - 1;
|
|
19
|
+
const nextStep = !isLast ? steps[index + 1] : null;
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
TimelineStep,
|
|
22
|
+
{
|
|
23
|
+
state: step.state || "inactive",
|
|
24
|
+
date: step.date,
|
|
25
|
+
title: step.title,
|
|
26
|
+
tooltip: step.tooltip,
|
|
27
|
+
caption: step.caption,
|
|
28
|
+
isLast,
|
|
29
|
+
nextState: nextStep?.state,
|
|
30
|
+
customIcon: step.customIcon,
|
|
31
|
+
showInfoIcon: showInfoIcons,
|
|
32
|
+
infoIconPosition,
|
|
33
|
+
stepStyle: step.stepStyle || stepStyle,
|
|
34
|
+
iconStyle: step.iconStyle || iconStyle,
|
|
35
|
+
contentStyle: step.contentStyle || contentStyle,
|
|
36
|
+
className: step.className
|
|
37
|
+
},
|
|
38
|
+
step.id || index
|
|
39
|
+
);
|
|
40
|
+
}) });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
Timeline
|
|
44
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import { colors } from "../../styles/colors.js";
|
|
3
|
+
const iconSize = 20;
|
|
4
|
+
const TimelineContainer = styled.div.withConfig({
|
|
5
|
+
shouldForwardProp: (props) => !["maxWidth"].includes(props)
|
|
6
|
+
})`
|
|
7
|
+
position: relative;
|
|
8
|
+
width: 100%;
|
|
9
|
+
max-width: ${(props) => props.maxWidth || "100%"};
|
|
10
|
+
`;
|
|
11
|
+
const TimelineStepWrapper = styled.div.withConfig({
|
|
12
|
+
shouldForwardProp: (props) => !["isLast"].includes(props)
|
|
13
|
+
})`
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
margin-bottom: ${(props) => props.isLast ? "0" : "10px"};
|
|
18
|
+
`;
|
|
19
|
+
const IconContainer = styled.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
min-width: 24px;
|
|
24
|
+
width: 24px;
|
|
25
|
+
margin-right: 16px;
|
|
26
|
+
align-self: stretch;
|
|
27
|
+
gap: 4px;
|
|
28
|
+
`;
|
|
29
|
+
const StepIcon = styled.div.withConfig({
|
|
30
|
+
shouldForwardProp: (props) => !["state"].includes(props)
|
|
31
|
+
})`
|
|
32
|
+
width: ${iconSize}px;
|
|
33
|
+
height: ${iconSize}px;
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
transition: all 0.2s ease;
|
|
39
|
+
|
|
40
|
+
${(props) => {
|
|
41
|
+
switch (props.state) {
|
|
42
|
+
case "completed":
|
|
43
|
+
return css`
|
|
44
|
+
background-color: ${colors.freshGreen};
|
|
45
|
+
color: ${colors.white};
|
|
46
|
+
`;
|
|
47
|
+
case "pending":
|
|
48
|
+
return css`
|
|
49
|
+
background-color: ${colors.warningOrange};
|
|
50
|
+
color: ${colors.white};
|
|
51
|
+
`;
|
|
52
|
+
case "failed":
|
|
53
|
+
case "cancelled":
|
|
54
|
+
return css`
|
|
55
|
+
background-color: ${colors.darkRed};
|
|
56
|
+
color: ${colors.white};
|
|
57
|
+
`;
|
|
58
|
+
case "inactive":
|
|
59
|
+
default:
|
|
60
|
+
return css`
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
border: 1.5px solid ${colors.lightGrey};
|
|
63
|
+
color: ${colors.grey2};
|
|
64
|
+
`;
|
|
65
|
+
}
|
|
66
|
+
}}
|
|
67
|
+
|
|
68
|
+
svg path {
|
|
69
|
+
stroke: ${colors.white};
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
const ConnectingLine = styled.div.withConfig({
|
|
73
|
+
shouldForwardProp: (props) => !["state"].includes(props)
|
|
74
|
+
})`
|
|
75
|
+
width: 2px;
|
|
76
|
+
flex: 1;
|
|
77
|
+
min-height: 10px;
|
|
78
|
+
align-self: center;
|
|
79
|
+
|
|
80
|
+
${(props) => {
|
|
81
|
+
const lineColor = props.state === "completed" ? colors.freshGreen : props.state === "pending" ? colors.warningOrange : props.state === "failed" || props.state === "cancelled" ? colors.darkRed : colors.lightGrey;
|
|
82
|
+
return css`
|
|
83
|
+
background-color: ${lineColor};
|
|
84
|
+
`;
|
|
85
|
+
}}
|
|
86
|
+
`;
|
|
87
|
+
const StepContent = styled.div`
|
|
88
|
+
flex: 1;
|
|
89
|
+
padding-bottom: 8px;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
gap: 4px;
|
|
93
|
+
`;
|
|
94
|
+
const StepHeader = styled.div`
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: 8px;
|
|
98
|
+
`;
|
|
99
|
+
const StepDate = styled.span`
|
|
100
|
+
color: ${colors.black};
|
|
101
|
+
font-size: 11px;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
text-transform: uppercase;
|
|
104
|
+
line-height: 15px;
|
|
105
|
+
letter-spacing: 2px;
|
|
106
|
+
word-wrap: break-word;
|
|
107
|
+
`;
|
|
108
|
+
const StepTitle = styled.span.withConfig({
|
|
109
|
+
shouldForwardProp: (props) => !["state"].includes(props)
|
|
110
|
+
})`
|
|
111
|
+
color: ${(props) => {
|
|
112
|
+
switch (props.state) {
|
|
113
|
+
case "inactive":
|
|
114
|
+
case "pending":
|
|
115
|
+
return colors.grey2;
|
|
116
|
+
default:
|
|
117
|
+
return colors.black;
|
|
118
|
+
}
|
|
119
|
+
}};
|
|
120
|
+
|
|
121
|
+
font-size: 16px;
|
|
122
|
+
font-weight: 600;
|
|
123
|
+
line-height: 24px;
|
|
124
|
+
letter-spacing: 0.6px;
|
|
125
|
+
word-wrap: break-word;
|
|
126
|
+
`;
|
|
127
|
+
const StepCaption = styled.div`
|
|
128
|
+
color: ${colors.grey2};
|
|
129
|
+
margin-top: 4px;
|
|
130
|
+
font-size: 12px;
|
|
131
|
+
font-weight: 400;
|
|
132
|
+
line-height: 18px;
|
|
133
|
+
letter-spacing: 0.6px;
|
|
134
|
+
word-wrap: break-word;
|
|
135
|
+
`;
|
|
136
|
+
export {
|
|
137
|
+
ConnectingLine,
|
|
138
|
+
IconContainer,
|
|
139
|
+
StepCaption,
|
|
140
|
+
StepContent,
|
|
141
|
+
StepDate,
|
|
142
|
+
StepHeader,
|
|
143
|
+
StepIcon,
|
|
144
|
+
StepTitle,
|
|
145
|
+
TimelineContainer,
|
|
146
|
+
TimelineStepWrapper
|
|
147
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Icon, iconsMap } from "../Icon/Icon.style.js";
|
|
4
|
+
import { InfoIcon } from "../InfoIcon/InfoIcon.js";
|
|
5
|
+
import { TimelineStepWrapper, IconContainer, StepIcon, ConnectingLine, StepContent, StepDate, StepHeader, StepTitle, StepCaption } from "./Timeline.styles.js";
|
|
6
|
+
import SvgCrossIcon from "../../static/images/cross-icon.svg.js";
|
|
7
|
+
import SvgCheckIcon from "../../static/images/check-icon.svg.js";
|
|
8
|
+
import { format } from "date-fns";
|
|
9
|
+
const TimelineStep = ({
|
|
10
|
+
state = "inactive",
|
|
11
|
+
date,
|
|
12
|
+
title,
|
|
13
|
+
tooltip,
|
|
14
|
+
caption,
|
|
15
|
+
isLast = false,
|
|
16
|
+
customIcon,
|
|
17
|
+
showInfoIcon = true,
|
|
18
|
+
infoIconPosition = "right",
|
|
19
|
+
// Style props
|
|
20
|
+
stepStyle,
|
|
21
|
+
iconStyle,
|
|
22
|
+
contentStyle,
|
|
23
|
+
className
|
|
24
|
+
}) => {
|
|
25
|
+
const getIcon = () => {
|
|
26
|
+
if (customIcon) return customIcon;
|
|
27
|
+
switch (state) {
|
|
28
|
+
case "completed":
|
|
29
|
+
return /* @__PURE__ */ jsx(SvgCheckIcon, { width: 12, height: 12 });
|
|
30
|
+
case "pending":
|
|
31
|
+
return /* @__PURE__ */ jsx(Icon, { icon: iconsMap.inProgress, size: 12, style: { marginLeft: 1 } });
|
|
32
|
+
case "failed":
|
|
33
|
+
case "cancelled":
|
|
34
|
+
return /* @__PURE__ */ jsx(SvgCrossIcon, { width: 8, height: 8 });
|
|
35
|
+
case "inactive":
|
|
36
|
+
default:
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const formattedDate = date ? format(new Date(date), "dd. MMM yyyy HH:mm") : null;
|
|
41
|
+
return /* @__PURE__ */ jsxs(TimelineStepWrapper, { isLast, style: stepStyle, className, children: [
|
|
42
|
+
/* @__PURE__ */ jsxs(IconContainer, { children: [
|
|
43
|
+
/* @__PURE__ */ jsx(StepIcon, { state, style: iconStyle, children: getIcon() }),
|
|
44
|
+
!isLast && /* @__PURE__ */ jsx(ConnectingLine, { state })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ jsxs(StepContent, { style: contentStyle, children: [
|
|
47
|
+
formattedDate && /* @__PURE__ */ jsx(StepDate, { children: formattedDate }),
|
|
48
|
+
/* @__PURE__ */ jsxs(StepHeader, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx(StepTitle, { state, children: title }),
|
|
50
|
+
showInfoIcon && tooltip && /* @__PURE__ */ jsx(InfoIcon, { title: tooltip, position: infoIconPosition, noMargin: true, containerStyle: { marginTop: 1 } })
|
|
51
|
+
] }),
|
|
52
|
+
caption && /* @__PURE__ */ jsx(StepCaption, { children: caption })
|
|
53
|
+
] })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
TimelineStep
|
|
58
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { iconsMap, TooltipIcon } from "../Icon/Icon.style.js";
|
|
5
|
+
import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
|
|
6
|
+
import { Container, TitleContainer, PendingCounter, Title, Subtitle } from "./ToDoList.styles.js";
|
|
7
|
+
import stdin_default from "./ToDoListTask.js";
|
|
8
|
+
import { Icon } from "./ToDoListTask.styles.js";
|
|
9
|
+
import { Tooltip } from "react-tippy";
|
|
10
|
+
const ToDoTaskState = {
|
|
11
|
+
REJECTED: "rejected",
|
|
12
|
+
DENIED: "rejected",
|
|
13
|
+
DRAFT: "draft",
|
|
14
|
+
IN_PROGRESS: "in_progress",
|
|
15
|
+
APPROVED: "approved",
|
|
16
|
+
SKIPPED: "skipped",
|
|
17
|
+
REAPPLY: "reapply",
|
|
18
|
+
NOT_AVAILABLE: "not_available"
|
|
19
|
+
};
|
|
20
|
+
const ToDoTaskMessage = {
|
|
21
|
+
[ToDoTaskState.REJECTED]: "Rejected. Please re-apply.",
|
|
22
|
+
[ToDoTaskState.DENIED]: "Rejected. Please re-apply.",
|
|
23
|
+
[ToDoTaskState.DRAFT]: "Draft",
|
|
24
|
+
[ToDoTaskState.IN_PROGRESS]: "In progress",
|
|
25
|
+
[ToDoTaskState.APPROVED]: "Verified",
|
|
26
|
+
[ToDoTaskState.SKIPPED]: "Skipped"
|
|
27
|
+
};
|
|
28
|
+
const ToDoModal = {
|
|
29
|
+
TAX_ID: "taxid"
|
|
30
|
+
};
|
|
31
|
+
const ToDoTaskIcons = {
|
|
32
|
+
[ToDoTaskState.REJECTED]: iconsMap.warning,
|
|
33
|
+
[ToDoTaskState.DENIED]: iconsMap.warning,
|
|
34
|
+
[ToDoTaskState.DRAFT]: iconsMap.edit,
|
|
35
|
+
[ToDoTaskState.IN_PROGRESS]: iconsMap.inProgress,
|
|
36
|
+
[ToDoTaskState.APPROVED]: iconsMap.check,
|
|
37
|
+
[ToDoTaskState.SKIPPED]: iconsMap.arrowRight,
|
|
38
|
+
[ToDoTaskState.NOT_AVAILABLE]: iconsMap.arrowRight
|
|
39
|
+
};
|
|
40
|
+
const ToDoList = ({
|
|
41
|
+
mandatoryTasks = [],
|
|
42
|
+
walletsTasks = [],
|
|
43
|
+
optionalTasks = [],
|
|
44
|
+
mandatoryTasksCount,
|
|
45
|
+
walletsTasksCount,
|
|
46
|
+
pendingTasksCount,
|
|
47
|
+
additionalTasks,
|
|
48
|
+
redirectCookie,
|
|
49
|
+
...props
|
|
50
|
+
}) => {
|
|
51
|
+
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
52
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, children: /* @__PURE__ */ jsxs(TitleContainer, { children: [
|
|
53
|
+
pendingTasksCount !== 0 ? /* @__PURE__ */ jsx(PendingCounter, { children: pendingTasksCount }) : /* @__PURE__ */ jsx(
|
|
54
|
+
Icon,
|
|
55
|
+
{
|
|
56
|
+
state: "approved",
|
|
57
|
+
checklist: true
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsx(Title, { children: "Checklist" })
|
|
61
|
+
] }) }),
|
|
62
|
+
mandatoryTasks.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
63
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, noPaddingBottom: true, noPaddingHorizontal: true, children: /* @__PURE__ */ jsxs(TitleContainer, { marginBottom: "10px", children: [
|
|
64
|
+
mandatoryTasksCount !== 0 ? /* @__PURE__ */ jsx(PendingCounter, { children: mandatoryTasksCount }) : /* @__PURE__ */ jsx(
|
|
65
|
+
Icon,
|
|
66
|
+
{
|
|
67
|
+
state: "approved",
|
|
68
|
+
checklist: true
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ jsx(Subtitle, { children: "Mandatory" })
|
|
72
|
+
] }) }),
|
|
73
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, noPaddingHorizontal: true, children: mandatoryTasks.map((task) => /* @__PURE__ */ jsx(
|
|
74
|
+
stdin_default,
|
|
75
|
+
{
|
|
76
|
+
title: task.title,
|
|
77
|
+
message: task.message || ToDoTaskMessage[task.state],
|
|
78
|
+
state: task.state,
|
|
79
|
+
icon: ToDoTaskIcons[task.state],
|
|
80
|
+
link: task.link,
|
|
81
|
+
tooltip: task.tooltip,
|
|
82
|
+
redirectCookie,
|
|
83
|
+
...props
|
|
84
|
+
},
|
|
85
|
+
task.title
|
|
86
|
+
)) })
|
|
87
|
+
] }),
|
|
88
|
+
walletsTasks.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
89
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, noPaddingBottom: true, noPaddingHorizontal: true, children: /* @__PURE__ */ jsxs(TitleContainer, { marginBottom: "10px", children: [
|
|
90
|
+
walletsTasksCount !== 0 ? /* @__PURE__ */ jsx(PendingCounter, { children: walletsTasksCount }) : /* @__PURE__ */ jsx(
|
|
91
|
+
Icon,
|
|
92
|
+
{
|
|
93
|
+
state: "approved",
|
|
94
|
+
checklist: true
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ jsx(Subtitle, { children: "Register Wallets" }),
|
|
98
|
+
/* @__PURE__ */ jsx(
|
|
99
|
+
Tooltip,
|
|
100
|
+
{
|
|
101
|
+
position: "right",
|
|
102
|
+
title: "Before you invest you must have registered the wallet that can hold your purchased securities. Click below and register it to proceed with your investment.",
|
|
103
|
+
theme: "light",
|
|
104
|
+
arrow: true,
|
|
105
|
+
duration: 200,
|
|
106
|
+
size: 40,
|
|
107
|
+
style: { cursor: "help", fontSize: 16 },
|
|
108
|
+
children: /* @__PURE__ */ jsx(TooltipIcon, { onClick: (e) => e.preventDefault() })
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] }) }),
|
|
112
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, noPaddingHorizontal: true, children: walletsTasks.map((task) => /* @__PURE__ */ jsx(
|
|
113
|
+
stdin_default,
|
|
114
|
+
{
|
|
115
|
+
title: task.title,
|
|
116
|
+
message: task.message || ToDoTaskMessage[task.state],
|
|
117
|
+
state: task.state,
|
|
118
|
+
icon: ToDoTaskIcons[task.state],
|
|
119
|
+
link: task.link,
|
|
120
|
+
disabled: task.disabled,
|
|
121
|
+
tooltip: task.tooltip,
|
|
122
|
+
openModal: task.openModal,
|
|
123
|
+
redirectCookie,
|
|
124
|
+
...props
|
|
125
|
+
},
|
|
126
|
+
task.title
|
|
127
|
+
)) })
|
|
128
|
+
] }),
|
|
129
|
+
optionalTasks.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, noPaddingBottom: true, noPaddingHorizontal: true, children: /* @__PURE__ */ jsx(TitleContainer, { marginBottom: "10px", children: /* @__PURE__ */ jsx(Subtitle, { marginLeft: "32px", children: "Optional" }) }) }),
|
|
131
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingTop: true, noPaddingHorizontal: true, children: optionalTasks.map((task) => /* @__PURE__ */ jsx(
|
|
132
|
+
stdin_default,
|
|
133
|
+
{
|
|
134
|
+
title: task.title,
|
|
135
|
+
message: task.message || ToDoTaskMessage[task.state],
|
|
136
|
+
state: task.state,
|
|
137
|
+
icon: ToDoTaskIcons[task.state],
|
|
138
|
+
link: task.link,
|
|
139
|
+
tooltip: task.tooltip,
|
|
140
|
+
redirectCookie,
|
|
141
|
+
openModal: task.openModal,
|
|
142
|
+
...props
|
|
143
|
+
},
|
|
144
|
+
task.title
|
|
145
|
+
)) })
|
|
146
|
+
] }),
|
|
147
|
+
additionalTasks && additionalTasks
|
|
148
|
+
] });
|
|
149
|
+
};
|
|
150
|
+
const taskListPropType = PropTypes.arrayOf(
|
|
151
|
+
PropTypes.shape({
|
|
152
|
+
title: PropTypes.string.isRequired,
|
|
153
|
+
// message: PropTypes.string.isRequired,
|
|
154
|
+
state: PropTypes.oneOf([...Object.values(ToDoTaskState)]).isRequired,
|
|
155
|
+
link: PropTypes.any,
|
|
156
|
+
tooltip: PropTypes.string
|
|
157
|
+
})
|
|
158
|
+
);
|
|
159
|
+
ToDoList.propTypes = {
|
|
160
|
+
mandatoryTasks: taskListPropType,
|
|
161
|
+
optionalTasks: taskListPropType,
|
|
162
|
+
successText: PropTypes.string,
|
|
163
|
+
additionalTasks: PropTypes.node,
|
|
164
|
+
mandatoryTasksCount: PropTypes.number,
|
|
165
|
+
walletsTasksCount: PropTypes.number
|
|
166
|
+
};
|
|
167
|
+
export {
|
|
168
|
+
ToDoList,
|
|
169
|
+
ToDoModal,
|
|
170
|
+
ToDoTaskMessage,
|
|
171
|
+
ToDoTaskState
|
|
172
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import rwd from "../../styles/rwd.js";
|
|
3
|
+
import { colors } from "../../styles/colors.js";
|
|
4
|
+
const Container = styled.div`
|
|
5
|
+
display: inline-block;
|
|
6
|
+
`;
|
|
7
|
+
const TitleContainer = styled.div.withConfig({
|
|
8
|
+
shouldForwardProp: (props) => !["marginBottom"].includes(props)
|
|
9
|
+
})`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
${({ marginBottom }) => marginBottom && css`
|
|
14
|
+
margin-bottom: ${marginBottom};
|
|
15
|
+
`}
|
|
16
|
+
`;
|
|
17
|
+
const Title = styled.div`
|
|
18
|
+
font-size: 22px;
|
|
19
|
+
font-weight: 800;
|
|
20
|
+
line-height: 28px;
|
|
21
|
+
letter-spacing: 0.8px;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
`;
|
|
24
|
+
const Subtitle = styled.div.withConfig({
|
|
25
|
+
shouldForwardProp: (props) => !["centerVertically", "marginLeft"].includes(props)
|
|
26
|
+
})`
|
|
27
|
+
font-size: 11px;
|
|
28
|
+
line-height: 24px;
|
|
29
|
+
letter-spacing: 2.06px;
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
// margin-bottom: 10px;
|
|
32
|
+
|
|
33
|
+
${({ centerVertically }) => centerVertically && css`
|
|
34
|
+
margin-bottom: 0;
|
|
35
|
+
`}
|
|
36
|
+
|
|
37
|
+
${({ marginLeft }) => marginLeft && css`
|
|
38
|
+
margin-left: ${marginLeft};
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
41
|
+
const PendingCounter = styled.span`
|
|
42
|
+
width: 16px;
|
|
43
|
+
height: 16px;
|
|
44
|
+
margin-left: 3px;
|
|
45
|
+
margin-right: 13px;
|
|
46
|
+
color: ${colors.white};
|
|
47
|
+
background: ${colors.orangishRed};
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
font-size: 9px;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
text-align: center;
|
|
52
|
+
line-height: 16px;
|
|
53
|
+
padding-left: 1px;
|
|
54
|
+
`;
|
|
55
|
+
styled.div`
|
|
56
|
+
padding: 28px 0;
|
|
57
|
+
`;
|
|
58
|
+
styled.div`
|
|
59
|
+
font-size: 11px;
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
line-height: 20px;
|
|
62
|
+
letter-spacing: 1.8px;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
padding-bottom: 14px;
|
|
65
|
+
margin-bottom: 16px;
|
|
66
|
+
text-align: left;
|
|
67
|
+
border-bottom: 1px solid ${colors.lightGrey};
|
|
68
|
+
`;
|
|
69
|
+
styled.div`
|
|
70
|
+
${rwd.Medium`
|
|
71
|
+
margin-top: auto;
|
|
72
|
+
`}
|
|
73
|
+
`;
|
|
74
|
+
styled.div`
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
align-items: center;
|
|
78
|
+
|
|
79
|
+
${rwd.Medium`
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
`}
|
|
82
|
+
`;
|
|
83
|
+
styled.div`
|
|
84
|
+
width: 102px;
|
|
85
|
+
height: 102px;
|
|
86
|
+
display: flex;
|
|
87
|
+
border: 1px dashed ${colors.blue};
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
margin-bottom: 16px;
|
|
91
|
+
|
|
92
|
+
${rwd.Medium`
|
|
93
|
+
margin-right: 26px;
|
|
94
|
+
margin-bottom: 0;
|
|
95
|
+
`}
|
|
96
|
+
`;
|
|
97
|
+
styled.i.withConfig({
|
|
98
|
+
shouldForwardProp: (props) => !["green"].includes(props)
|
|
99
|
+
}).attrs({
|
|
100
|
+
className: "ion ion-md-checkmark"
|
|
101
|
+
})`
|
|
102
|
+
width: 40px;
|
|
103
|
+
height: 40px;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
background: ${colors.blue};
|
|
108
|
+
color: ${colors.white};
|
|
109
|
+
font-size: 18px;
|
|
110
|
+
padding: 12px;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
margin: auto;
|
|
113
|
+
${(props) => props.green && `
|
|
114
|
+
background-color: ${colors.freshGreen};`}
|
|
115
|
+
`;
|
|
116
|
+
export {
|
|
117
|
+
Container,
|
|
118
|
+
PendingCounter,
|
|
119
|
+
Subtitle,
|
|
120
|
+
Title,
|
|
121
|
+
TitleContainer
|
|
122
|
+
};
|