@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,76 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import rwd from "../../styles/rwd.js";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const Table = styled.div.withConfig({
|
|
5
|
+
shouldForwardProp: (props) => !["filled"].includes(props)
|
|
6
|
+
})`
|
|
7
|
+
display: block;
|
|
8
|
+
border: 1px solid ${() => theme.cLightGrey};
|
|
9
|
+
${(props) => props.filled && `
|
|
10
|
+
background: #e1e1e1; //${() => theme.cLightGrey};
|
|
11
|
+
`}
|
|
12
|
+
`;
|
|
13
|
+
const Row = styled.div.withConfig({
|
|
14
|
+
shouldForwardProp: (props) => !["smallPadding"].includes(props)
|
|
15
|
+
})`
|
|
16
|
+
font-size: 11px;
|
|
17
|
+
line-height: 24px;
|
|
18
|
+
letter-spacing: 2.1px;
|
|
19
|
+
text-transform: uppercase;
|
|
20
|
+
padding: 16px 24px;
|
|
21
|
+
display: block;
|
|
22
|
+
|
|
23
|
+
${rwd.XLarge`
|
|
24
|
+
padding: 16px 46px;
|
|
25
|
+
`}
|
|
26
|
+
|
|
27
|
+
& + & {
|
|
28
|
+
border-top: 1px solid ${() => theme.cLightGrey};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:after {
|
|
32
|
+
content: '';
|
|
33
|
+
display: block;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 0;
|
|
36
|
+
clear: both;
|
|
37
|
+
}
|
|
38
|
+
${(props) => props.smallPadding && `
|
|
39
|
+
padding: 14px 6px;
|
|
40
|
+
`}
|
|
41
|
+
`;
|
|
42
|
+
const Label = styled.div`
|
|
43
|
+
float: left;
|
|
44
|
+
max-width: 50%;
|
|
45
|
+
text-align: start;
|
|
46
|
+
`;
|
|
47
|
+
const Value = styled.div`
|
|
48
|
+
float: right;
|
|
49
|
+
display: grid;
|
|
50
|
+
max-width: 50%;
|
|
51
|
+
`;
|
|
52
|
+
const LabelWarning = styled.div`
|
|
53
|
+
float: left;
|
|
54
|
+
text-align: left;
|
|
55
|
+
width: 100%;
|
|
56
|
+
color: #ee220d;
|
|
57
|
+
line-height: 16px;
|
|
58
|
+
`;
|
|
59
|
+
const Caption = styled.div`
|
|
60
|
+
text-transform: initial;
|
|
61
|
+
font-size: 11px;
|
|
62
|
+
float: right;
|
|
63
|
+
letter-spacing: 0.6px;
|
|
64
|
+
font-style: italic;
|
|
65
|
+
//position: absolute;
|
|
66
|
+
//right: 7px;
|
|
67
|
+
//bottom: 0px;
|
|
68
|
+
`;
|
|
69
|
+
export {
|
|
70
|
+
Caption,
|
|
71
|
+
Label,
|
|
72
|
+
LabelWarning,
|
|
73
|
+
Row,
|
|
74
|
+
Table,
|
|
75
|
+
Value
|
|
76
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Container, ImageWrapper, LoaderWrapper, LoaderImage, Image, Content, Category, TextWrapper, BottomRow, StyledButton } from "./BlogPost.styles.js";
|
|
5
|
+
import { Breakdown } from "../breakdown/Breakdown.js";
|
|
6
|
+
import { loaderGif } from "../StokrLoader/StokrLoader.js";
|
|
7
|
+
const BlogPost = ({
|
|
8
|
+
layout = "image-left",
|
|
9
|
+
category,
|
|
10
|
+
title,
|
|
11
|
+
description,
|
|
12
|
+
image,
|
|
13
|
+
date,
|
|
14
|
+
link,
|
|
15
|
+
onClick,
|
|
16
|
+
onContainerClick,
|
|
17
|
+
withHoverBg = false,
|
|
18
|
+
CTAText = "Read full",
|
|
19
|
+
offestViewport = 100,
|
|
20
|
+
...props
|
|
21
|
+
}) => {
|
|
22
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
23
|
+
const [imageLoaded, setImageLoaded] = useState(false);
|
|
24
|
+
const imageRef = useRef(null);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
const observer = new IntersectionObserver(
|
|
27
|
+
([entry]) => {
|
|
28
|
+
if (entry.isIntersecting) {
|
|
29
|
+
setIsVisible(true);
|
|
30
|
+
observer.disconnect();
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
rootMargin: `${offestViewport}px`
|
|
35
|
+
// Start loading image when it's 50px from viewport
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
if (imageRef.current) {
|
|
39
|
+
observer.observe(imageRef.current);
|
|
40
|
+
}
|
|
41
|
+
return () => {
|
|
42
|
+
observer.disconnect();
|
|
43
|
+
};
|
|
44
|
+
}, [offestViewport]);
|
|
45
|
+
const handleImageLoad = () => {
|
|
46
|
+
setImageLoaded(true);
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ jsxs(Container, { layout, ...props, withHoverBg, onClick: () => onContainerClick?.(), children: [
|
|
49
|
+
/* @__PURE__ */ jsxs(ImageWrapper, { layout, children: [
|
|
50
|
+
!imageLoaded && isVisible && /* @__PURE__ */ jsx(LoaderWrapper, { children: /* @__PURE__ */ jsx(LoaderImage, { src: loaderGif, alt: "Loading..." }) }),
|
|
51
|
+
/* @__PURE__ */ jsx(
|
|
52
|
+
Image,
|
|
53
|
+
{
|
|
54
|
+
ref: imageRef,
|
|
55
|
+
src: isVisible ? image : null,
|
|
56
|
+
"data-src": image,
|
|
57
|
+
alt: title,
|
|
58
|
+
loading: "lazy",
|
|
59
|
+
onLoad: handleImageLoad,
|
|
60
|
+
style: { opacity: imageLoaded ? 1 : 0 }
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ jsxs(Content, { layout, children: [
|
|
65
|
+
/* @__PURE__ */ jsx(Category, { category, children: category }),
|
|
66
|
+
/* @__PURE__ */ jsxs(TextWrapper, { children: [
|
|
67
|
+
/* @__PURE__ */ jsx("h3", { children: title }),
|
|
68
|
+
description && layout !== "image-fullscreen" && layout !== "image-cover" && /* @__PURE__ */ jsx("p", { children: description })
|
|
69
|
+
] }),
|
|
70
|
+
/* @__PURE__ */ jsxs(BottomRow, { children: [
|
|
71
|
+
date && /* @__PURE__ */ jsx(Breakdown, { children: date }),
|
|
72
|
+
/* @__PURE__ */ jsx(
|
|
73
|
+
StyledButton,
|
|
74
|
+
{
|
|
75
|
+
onClick: () => {
|
|
76
|
+
if (link && !onClick) window.location.href = link;
|
|
77
|
+
if (onClick) onClick();
|
|
78
|
+
},
|
|
79
|
+
children: CTAText
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] })
|
|
83
|
+
] })
|
|
84
|
+
] });
|
|
85
|
+
};
|
|
86
|
+
BlogPost.propTypes = {
|
|
87
|
+
layout: PropTypes.oneOf(["image-left", "image-right", "image-cover", "image-fullscreen"]),
|
|
88
|
+
category: PropTypes.string.isRequired,
|
|
89
|
+
title: PropTypes.string.isRequired,
|
|
90
|
+
description: PropTypes.string,
|
|
91
|
+
image: PropTypes.string.isRequired,
|
|
92
|
+
date: PropTypes.string,
|
|
93
|
+
link: PropTypes.string.isRequired,
|
|
94
|
+
withHoverBg: PropTypes.bool
|
|
95
|
+
};
|
|
96
|
+
export {
|
|
97
|
+
BlogPost
|
|
98
|
+
};
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import rwd from "../../styles/rwd.js";
|
|
2
|
+
import { Breakdown } from "../breakdown/Breakdown.js";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
import { Button } from "../Button/Button.styles.js";
|
|
5
|
+
import styled, { css } from "styled-components";
|
|
6
|
+
const Content = styled.div.withConfig({
|
|
7
|
+
shouldForwardProp: (props) => props !== "layout"
|
|
8
|
+
})`
|
|
9
|
+
flex: ${({ layout }) => layout === "image-cover" || layout === "image-fullscreen" ? "0" : "1"};
|
|
10
|
+
padding: ${({ layout }) => layout === "image-cover" || layout === "image-fullscreen" ? "16px" : "16px 0"};
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 12px;
|
|
14
|
+
word-break: break-word;
|
|
15
|
+
transition: all 0.3s ease;
|
|
16
|
+
position: ${({ layout }) => layout === "image-cover" || layout === "image-fullscreen" ? "absolute" : "relative"};
|
|
17
|
+
${({ layout }) => (layout === "image-cover" || layout === "image-fullscreen") && css`
|
|
18
|
+
bottom: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
color: ${theme.cWhite};
|
|
22
|
+
`}
|
|
23
|
+
|
|
24
|
+
${rwd.Medium`
|
|
25
|
+
gap: 24px;
|
|
26
|
+
padding: 24px;
|
|
27
|
+
|
|
28
|
+
${({ layout }) => layout === "image-left" && css`
|
|
29
|
+
padding-right: 0;
|
|
30
|
+
`};
|
|
31
|
+
|
|
32
|
+
${({ layout }) => layout === "image-right" && css`
|
|
33
|
+
padding-left: 0;
|
|
34
|
+
`};
|
|
35
|
+
|
|
36
|
+
`}
|
|
37
|
+
`;
|
|
38
|
+
const Container = styled.div.withConfig({
|
|
39
|
+
shouldForwardProp: (props) => !["withHoverBg", "layout"].includes(props)
|
|
40
|
+
})`
|
|
41
|
+
position: relative;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
background: ${theme.cWhite};
|
|
45
|
+
height: 100%;
|
|
46
|
+
min-height: 400px;
|
|
47
|
+
max-height: 540px;
|
|
48
|
+
transition: all 0.3s ease;
|
|
49
|
+
|
|
50
|
+
${rwd.Medium`
|
|
51
|
+
|
|
52
|
+
flex-direction: ${({ layout }) => layout === "image-cover" || layout === "image-fullscreen" ? "column" : layout === "image-right" ? "row-reverse" : "row"};
|
|
53
|
+
min-height: 500px;
|
|
54
|
+
|
|
55
|
+
${({ layout }) => layout === "image-fullscreen" && css`
|
|
56
|
+
grid-column: 1 / -1;
|
|
57
|
+
`}
|
|
58
|
+
`}
|
|
59
|
+
|
|
60
|
+
${rwd.XLarge`
|
|
61
|
+
min-height: 540px;
|
|
62
|
+
`}
|
|
63
|
+
|
|
64
|
+
${(props) => props.withHoverBg && `
|
|
65
|
+
@media (hover: hover) and (pointer: fine) {
|
|
66
|
+
cursor:pointer;
|
|
67
|
+
&:hover {
|
|
68
|
+
box-shadow: 0 0 0 10px #fafafa;
|
|
69
|
+
|
|
70
|
+
${(props.layout === "image-right" || props.layout === "image-left") && `
|
|
71
|
+
${Content} {
|
|
72
|
+
background-color: #fafafa;
|
|
73
|
+
}
|
|
74
|
+
`}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
`}
|
|
78
|
+
`;
|
|
79
|
+
const ImageWrapper = styled.div.withConfig({
|
|
80
|
+
shouldForwardProp: (props) => props !== "layout"
|
|
81
|
+
})`
|
|
82
|
+
position: relative;
|
|
83
|
+
flex: ${({ layout }) => layout === "image-cover" || layout === "image-fullscreen" ? "1" : "0 0 50%"};
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
|
|
86
|
+
${({ layout }) => (layout === "image-cover" || layout === "image-fullscreen") && css`
|
|
87
|
+
&:after {
|
|
88
|
+
content: '';
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 0;
|
|
91
|
+
left: 0;
|
|
92
|
+
right: 0;
|
|
93
|
+
bottom: 0;
|
|
94
|
+
background: rgba(0, 0, 0, 0.4);
|
|
95
|
+
transition: background 0.3s ease;
|
|
96
|
+
}
|
|
97
|
+
`}
|
|
98
|
+
`;
|
|
99
|
+
const Image = styled.img`
|
|
100
|
+
width: 100%;
|
|
101
|
+
height: 100%;
|
|
102
|
+
object-fit: cover;
|
|
103
|
+
transition: opacity 0.3s ease;
|
|
104
|
+
`;
|
|
105
|
+
const TextWrapper = styled.div`
|
|
106
|
+
flex: 1;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
// max-height: 70%;
|
|
111
|
+
|
|
112
|
+
h3 {
|
|
113
|
+
font-weight: 800;
|
|
114
|
+
font-size: 20px;
|
|
115
|
+
line-height: 30px;
|
|
116
|
+
letter-spacing: 1.41px;
|
|
117
|
+
text-transform: uppercase;
|
|
118
|
+
margin: 0;
|
|
119
|
+
display: -webkit-box;
|
|
120
|
+
-webkit-box-orient: vertical;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
word-break: break-word;
|
|
124
|
+
|
|
125
|
+
-webkit-line-clamp: 3;
|
|
126
|
+
|
|
127
|
+
${rwd.Mobile`
|
|
128
|
+
-webkit-line-clamp: 4;
|
|
129
|
+
`}
|
|
130
|
+
|
|
131
|
+
${rwd.Medium`
|
|
132
|
+
font-size: 22px;
|
|
133
|
+
-webkit-line-clamp: 6;
|
|
134
|
+
`}
|
|
135
|
+
|
|
136
|
+
${rwd.Large`
|
|
137
|
+
-webkit-line-clamp: 8;
|
|
138
|
+
`}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
p {
|
|
142
|
+
font-weight: 300;
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
line-height: 24px;
|
|
145
|
+
letter-spacing: 0.6px;
|
|
146
|
+
margin: 24px 0 0;
|
|
147
|
+
display: -webkit-box;
|
|
148
|
+
-webkit-line-clamp: 2;
|
|
149
|
+
-webkit-box-orient: vertical;
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
text-overflow: ellipsis;
|
|
152
|
+
-webkit-line-clamp: 2;
|
|
153
|
+
|
|
154
|
+
${rwd.Medium`
|
|
155
|
+
-webkit-line-clamp: 3;
|
|
156
|
+
|
|
157
|
+
`}
|
|
158
|
+
|
|
159
|
+
${rwd.XLarge`
|
|
160
|
+
-webkit-line-clamp: 4;
|
|
161
|
+
`}
|
|
162
|
+
}
|
|
163
|
+
`;
|
|
164
|
+
const BottomRow = styled.div`
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-wrap: wrap;
|
|
167
|
+
justify-content: space-between;
|
|
168
|
+
align-items: center;
|
|
169
|
+
margin-top: auto;
|
|
170
|
+
width: 100%;
|
|
171
|
+
gap: 12px;
|
|
172
|
+
`;
|
|
173
|
+
const Category = styled(Breakdown).withConfig({
|
|
174
|
+
shouldForwardProp: (props) => props !== "category"
|
|
175
|
+
})`
|
|
176
|
+
font-weight: 500 !important;
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
gap: 8px;
|
|
180
|
+
|
|
181
|
+
${({ category }) => category === "PODCAST" && css`
|
|
182
|
+
&::before {
|
|
183
|
+
content: '';
|
|
184
|
+
display: inline-block;
|
|
185
|
+
width: 0;
|
|
186
|
+
height: 0;
|
|
187
|
+
border-style: solid;
|
|
188
|
+
border-width: 6px 0 6px 8px;
|
|
189
|
+
border-color: transparent transparent transparent ${theme.cLightGrey};
|
|
190
|
+
}
|
|
191
|
+
`}
|
|
192
|
+
`;
|
|
193
|
+
const StyledButton = styled(Button)`
|
|
194
|
+
opacity: 0;
|
|
195
|
+
transition: opacity 0.3s ease;
|
|
196
|
+
|
|
197
|
+
/* Only use hover effects on non-touch devices */
|
|
198
|
+
@media (hover: hover) and (pointer: fine) {
|
|
199
|
+
${Container}:hover & {
|
|
200
|
+
opacity: 1;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
`;
|
|
204
|
+
const LoaderWrapper = styled.div`
|
|
205
|
+
position: absolute;
|
|
206
|
+
top: 0;
|
|
207
|
+
left: 0;
|
|
208
|
+
right: 0;
|
|
209
|
+
bottom: 0;
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
background: #fff;
|
|
214
|
+
`;
|
|
215
|
+
const LoaderImage = styled.img`
|
|
216
|
+
width: 100px;
|
|
217
|
+
height: 100px;
|
|
218
|
+
`;
|
|
219
|
+
export {
|
|
220
|
+
BottomRow,
|
|
221
|
+
Category,
|
|
222
|
+
Container,
|
|
223
|
+
Content,
|
|
224
|
+
Image,
|
|
225
|
+
ImageWrapper,
|
|
226
|
+
LoaderImage,
|
|
227
|
+
LoaderWrapper,
|
|
228
|
+
StyledButton,
|
|
229
|
+
TextWrapper
|
|
230
|
+
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const Button = styled.button.withConfig({
|
|
5
|
+
shouldForwardProp: (props) => ![
|
|
6
|
+
"isUpdates",
|
|
7
|
+
"isCancel",
|
|
8
|
+
"isDone",
|
|
9
|
+
"withMarginBottom",
|
|
10
|
+
"minWidth",
|
|
11
|
+
"fluid",
|
|
12
|
+
"center",
|
|
13
|
+
"secondary",
|
|
14
|
+
"onlyText",
|
|
15
|
+
"disabled",
|
|
16
|
+
"negative",
|
|
17
|
+
"outline",
|
|
18
|
+
"outlineBlack",
|
|
19
|
+
"marginTop",
|
|
20
|
+
"marginRight",
|
|
21
|
+
"isLoginMobile"
|
|
22
|
+
].includes(props)
|
|
23
|
+
}).attrs((props) => ({
|
|
24
|
+
type: props.type || "button"
|
|
25
|
+
}))`
|
|
26
|
+
display: inline-block;
|
|
27
|
+
height: auto;
|
|
28
|
+
min-height: 40px;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
background-color: ${() => theme.cPrimary};
|
|
31
|
+
border: 1px solid ${() => theme.cPrimary};
|
|
32
|
+
font-weight: bold;
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
line-height: 16px;
|
|
35
|
+
color: ${() => theme.cWhite};
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
text-align: center;
|
|
38
|
+
letter-spacing: 2px;
|
|
39
|
+
border-radius: 28px;
|
|
40
|
+
padding: 11px 32px;
|
|
41
|
+
margin: 0;
|
|
42
|
+
outline: 0;
|
|
43
|
+
vertical-align: baseline;
|
|
44
|
+
text-shadow: none;
|
|
45
|
+
user-select: none;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
transition:
|
|
48
|
+
color 0.2s,
|
|
49
|
+
background-color 0.2s,
|
|
50
|
+
border-color 0.2s;
|
|
51
|
+
|
|
52
|
+
//next 3 added from VD
|
|
53
|
+
${({ isUpdates, isCancel }) => isUpdates && isCancel && css`
|
|
54
|
+
padding: 11px 0;
|
|
55
|
+
margin-left: 32px;
|
|
56
|
+
`}
|
|
57
|
+
|
|
58
|
+
${({ isUpdates, isDone }) => isUpdates && isDone && css`
|
|
59
|
+
margin-left: 32px;
|
|
60
|
+
|
|
61
|
+
@media screen and (max-width: 850px) {
|
|
62
|
+
padding: 11px 20px;
|
|
63
|
+
}
|
|
64
|
+
`}
|
|
65
|
+
|
|
66
|
+
${({ withMarginBottom }) => withMarginBottom && css`
|
|
67
|
+
margin-bottom: 32px;
|
|
68
|
+
`}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
${(props) => props.minWidth && css`
|
|
72
|
+
min-width: ${props.minWidth};
|
|
73
|
+
`}
|
|
74
|
+
|
|
75
|
+
${(props) => props.fluid && css`
|
|
76
|
+
display: block;
|
|
77
|
+
width: 100%;
|
|
78
|
+
padding: 11px 12px;
|
|
79
|
+
`}
|
|
80
|
+
|
|
81
|
+
${(props) => props.center && css`
|
|
82
|
+
margin-left: auto;
|
|
83
|
+
margin-right: auto;
|
|
84
|
+
`}
|
|
85
|
+
|
|
86
|
+
&:hover,
|
|
87
|
+
&:focus,
|
|
88
|
+
&:active {
|
|
89
|
+
background-color: ${() => theme.cPrimaryDark};
|
|
90
|
+
border-color: ${() => theme.cPrimaryDark};
|
|
91
|
+
color: ${() => theme.cWhite};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
${(props) => props.secondary && css`
|
|
95
|
+
background-color: ${theme.cWhite};
|
|
96
|
+
color: ${theme.cPrimary};
|
|
97
|
+
|
|
98
|
+
&:hover,
|
|
99
|
+
&:focus,
|
|
100
|
+
&:active {
|
|
101
|
+
background-color: ${theme.cPrimary};
|
|
102
|
+
border-color: ${theme.cPrimary};
|
|
103
|
+
color: ${theme.cWhite};
|
|
104
|
+
}
|
|
105
|
+
`}
|
|
106
|
+
|
|
107
|
+
${(props) => props.onlyText && css`
|
|
108
|
+
border-color: transparent;
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
color: ${theme.cBlack};
|
|
111
|
+
|
|
112
|
+
&:hover,
|
|
113
|
+
&:focus,
|
|
114
|
+
&:active {
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
border-color: transparent;
|
|
117
|
+
color: ${theme.cPrimary};
|
|
118
|
+
}
|
|
119
|
+
`}
|
|
120
|
+
|
|
121
|
+
${(props) => props.disabled && css`
|
|
122
|
+
border-color: ${theme.cBlack};
|
|
123
|
+
background-color: ${theme.cWhite};
|
|
124
|
+
color: ${theme.cBlack};
|
|
125
|
+
opacity: 0.2;
|
|
126
|
+
cursor: default;
|
|
127
|
+
box-shadow: none !important;
|
|
128
|
+
pointer-events: none !important;
|
|
129
|
+
|
|
130
|
+
&:hover,
|
|
131
|
+
&:focus,
|
|
132
|
+
&:active {
|
|
133
|
+
background-color: ${theme.cPrimary};
|
|
134
|
+
border-color: ${theme.cPrimary};
|
|
135
|
+
color: ${theme.cWhite};
|
|
136
|
+
}
|
|
137
|
+
`}
|
|
138
|
+
|
|
139
|
+
${(props) => props.negative && css`
|
|
140
|
+
border-color: ${theme.cWarning};
|
|
141
|
+
background-color: ${theme.cWhite};
|
|
142
|
+
color: ${theme.cWarning};
|
|
143
|
+
|
|
144
|
+
&:hover,
|
|
145
|
+
&:focus,
|
|
146
|
+
&:active {
|
|
147
|
+
background-color: ${theme.cWhite};
|
|
148
|
+
border-color: ${theme.cWarningDark};
|
|
149
|
+
color: ${theme.cWarningDark};
|
|
150
|
+
}
|
|
151
|
+
`}
|
|
152
|
+
|
|
153
|
+
${(props) => props.outline && css`
|
|
154
|
+
border-color: ${theme.cWhite};
|
|
155
|
+
background-color: transparent;
|
|
156
|
+
color: ${theme.cWhite};
|
|
157
|
+
|
|
158
|
+
&:hover,
|
|
159
|
+
&:focus,
|
|
160
|
+
&:active {
|
|
161
|
+
background-color: ${theme.cWhite};
|
|
162
|
+
border-color: ${theme.cWhite};
|
|
163
|
+
color: ${theme.cWarning};
|
|
164
|
+
}
|
|
165
|
+
`}
|
|
166
|
+
|
|
167
|
+
${(props) => props.outlineBlack && css`
|
|
168
|
+
border-color: ${theme.grey4};
|
|
169
|
+
background-color: ${theme.cWhite};
|
|
170
|
+
color: ${theme.cBlack};
|
|
171
|
+
|
|
172
|
+
&:hover,
|
|
173
|
+
&:focus,
|
|
174
|
+
&:active {
|
|
175
|
+
background-color: ${theme.cPrimary};
|
|
176
|
+
border-color: ${theme.cPrimary};
|
|
177
|
+
color: ${theme.cWhite};
|
|
178
|
+
}
|
|
179
|
+
`}
|
|
180
|
+
|
|
181
|
+
//next 2 props added from SUF
|
|
182
|
+
|
|
183
|
+
${(props) => props.marginTop && css`
|
|
184
|
+
margin-top: ${props.marginTop};
|
|
185
|
+
`}
|
|
186
|
+
|
|
187
|
+
${(props) => props.marginRight && css`
|
|
188
|
+
margin-right: ${props.marginRight};
|
|
189
|
+
`}
|
|
190
|
+
|
|
191
|
+
${(props) => props.isLoginMobile && `
|
|
192
|
+
margin-bottom: 20px;
|
|
193
|
+
width: 163.94px;
|
|
194
|
+
`}
|
|
195
|
+
`;
|
|
196
|
+
Button.propTypes = {
|
|
197
|
+
secondary: PropTypes.bool,
|
|
198
|
+
disabled: PropTypes.bool,
|
|
199
|
+
negative: PropTypes.bool,
|
|
200
|
+
center: PropTypes.bool,
|
|
201
|
+
outline: PropTypes.bool,
|
|
202
|
+
outlineBlack: PropTypes.bool
|
|
203
|
+
};
|
|
204
|
+
export {
|
|
205
|
+
Button,
|
|
206
|
+
Button as default
|
|
207
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Button } from "../Button/Button.styles.js";
|
|
3
|
+
const ButtonContainer = styled.div.withConfig({
|
|
4
|
+
shouldForwardProp: (props) => !["flexColumn"].includes(props)
|
|
5
|
+
})`
|
|
6
|
+
align-items: center;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
${(props) => props.flexColumn && `
|
|
10
|
+
flex-direction:column;
|
|
11
|
+
`}
|
|
12
|
+
|
|
13
|
+
${Button} {
|
|
14
|
+
min-width: 150px;
|
|
15
|
+
max-width: 300px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media screen and (max-width: 767px) {
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
|
|
21
|
+
${Button} {
|
|
22
|
+
min-width: 150px;
|
|
23
|
+
max-width: 400px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
const ButtonGridContainer = styled.div`
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-template-columns: repeat(2, 1fr);
|
|
30
|
+
gap: 10px;
|
|
31
|
+
justify-items: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
|
|
34
|
+
${Button} {
|
|
35
|
+
min-width: 150px;
|
|
36
|
+
max-width: 300px;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media screen and (max-width: 767px) {
|
|
41
|
+
grid-template-columns: repeat(1, 1fr);
|
|
42
|
+
|
|
43
|
+
${Button} {
|
|
44
|
+
max-width: 400px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
export {
|
|
49
|
+
ButtonContainer,
|
|
50
|
+
ButtonGridContainer
|
|
51
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import CountUp from "react-countup";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
|
+
import stdin_default, { MultiProgressBarPropTypes } from "../MultiProgressBar/MultiProgressBar.js";
|
|
6
|
+
import { Wrapper, Title, Amount } from "./CaptialRaisedSummary.styles.js";
|
|
7
|
+
const CaptialRaisedSummary = ({ capital, multiProgressBar }) => /* @__PURE__ */ jsxs(Wrapper, { children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Title, { children: "CAPITAL RAISED" }),
|
|
9
|
+
/* @__PURE__ */ jsx(Amount, { children: /* @__PURE__ */ jsx(CountUp, { end: capital, prefix: "€ ", duration: 0.01, separator: "," }) }),
|
|
10
|
+
/* @__PURE__ */ jsx(stdin_default, { ...multiProgressBar })
|
|
11
|
+
] });
|
|
12
|
+
CaptialRaisedSummary.propTypes = {
|
|
13
|
+
capital: PropTypes.number.isRequired,
|
|
14
|
+
multiProgressBar: PropTypes.shape(MultiProgressBarPropTypes).isRequired
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
CaptialRaisedSummary
|
|
18
|
+
};
|