@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,12 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const UploadSvg = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "40.812", height: "49.5", children: /* @__PURE__ */ jsxs("g", { fill: "none", stroke: "#9b9b9b", strokeMiterlimit: "10", strokeWidth: "4", children: [
|
|
4
|
+
/* @__PURE__ */ jsx("path", { "data-name": "Stroke 1", d: "M7.764 30.15l-6.35 6.35" }),
|
|
5
|
+
/* @__PURE__ */ jsx("path", { "data-name": "Stroke 3", d: "M39.398 36.5L20.35 17.452l-7.936 7.937" }),
|
|
6
|
+
/* @__PURE__ */ jsx("path", { "data-name": "Stroke 5", d: "M20.914 17.532V49.5" }),
|
|
7
|
+
/* @__PURE__ */ jsx("path", { "data-name": "Stroke 8", d: "M39.514 2h-38.1" })
|
|
8
|
+
] }) });
|
|
9
|
+
var stdin_default = UploadSvg;
|
|
10
|
+
export {
|
|
11
|
+
stdin_default as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const VerifiedBadge = () => /* @__PURE__ */ jsx("svg", { width: "90", height: "30", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M84.707 1H5.293A4.3 4.3 0 0 0 1 5.308v19.384A4.3 4.3 0 0 0 5.293 29h79.414A4.3 4.3 0 0 0 89 24.692V5.308A4.3 4.3 0 0 0 84.707 1zM87 24.818C87 26.023 86.036 27 84.846 27H5.154C3.964 27 3 26.023 3 24.818V5.182C3 3.977 3.964 3 5.154 3h79.692C86.036 3 87 3.977 87 5.182v19.636zM53 15c0 .552-.481 1-1.075 1h-40.85C10.481 16 10 15.552 10 15s.481-1 1.075-1h40.85c.594 0 1.075.448 1.075 1zm26.54-4.832c.473.316.602.953.29 1.428l-5.96 8.949c-.183.27-.482.439-.808.455-.307 0-.6-.136-.796-.372l-3.033-3.58a1.056 1.056 0 1 1 1.646-1.324l2.07 2.514 5.174-7.79a1.035 1.035 0 0 1 1.417-.28z",
|
|
7
|
+
fill: "#FFF",
|
|
8
|
+
fillRule: "nonzero",
|
|
9
|
+
stroke: "#EE220D",
|
|
10
|
+
strokeWidth: ".5"
|
|
11
|
+
}
|
|
12
|
+
) });
|
|
13
|
+
var stdin_default = VerifiedBadge;
|
|
14
|
+
export {
|
|
15
|
+
stdin_default as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Container, Value, Indicator } from "./Switch.styles.js";
|
|
5
|
+
const Switch = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
value1,
|
|
8
|
+
value2,
|
|
9
|
+
handleChange,
|
|
10
|
+
mobile = false,
|
|
11
|
+
dark = false,
|
|
12
|
+
revertToPrevious,
|
|
13
|
+
value1Color,
|
|
14
|
+
value2Color,
|
|
15
|
+
hideValues = false,
|
|
16
|
+
indicatorStyle
|
|
17
|
+
} = props;
|
|
18
|
+
const [value, setValue] = useState();
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
setValue(props.value);
|
|
21
|
+
}, [props.value]);
|
|
22
|
+
const onIndicatorClick = () => {
|
|
23
|
+
let valueToSet = value === value1 ? value2 : value1;
|
|
24
|
+
setValue(valueToSet);
|
|
25
|
+
handleChange(valueToSet);
|
|
26
|
+
if (revertToPrevious) {
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
setValue(value);
|
|
29
|
+
}, 1e3);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ jsxs(Container, { mobile, children: [
|
|
33
|
+
!hideValues && /* @__PURE__ */ jsx(Value, { active: value === value1, onClick: () => setValue(value1), dark, children: value1 }),
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
Indicator,
|
|
36
|
+
{
|
|
37
|
+
value1: value === value1,
|
|
38
|
+
value2: value === value2,
|
|
39
|
+
onClick: onIndicatorClick,
|
|
40
|
+
dark,
|
|
41
|
+
style: indicatorStyle,
|
|
42
|
+
value1Color,
|
|
43
|
+
value2Color
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
!hideValues && /* @__PURE__ */ jsx(Value, { active: value === value2, onClick: () => setValue(value2), dark, children: value2 })
|
|
47
|
+
] });
|
|
48
|
+
};
|
|
49
|
+
Switch.propTypes = {
|
|
50
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
51
|
+
value1: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
52
|
+
value2: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
53
|
+
handleChange: PropTypes.func.isRequired,
|
|
54
|
+
mobile: PropTypes.bool,
|
|
55
|
+
dark: PropTypes.bool,
|
|
56
|
+
hideValues: PropTypes.bool,
|
|
57
|
+
indicatorStyle: PropTypes.object
|
|
58
|
+
};
|
|
59
|
+
var stdin_default = Switch;
|
|
60
|
+
export {
|
|
61
|
+
Switch,
|
|
62
|
+
stdin_default as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import theme from "../../styles/theme.js";
|
|
3
|
+
const switchWidth = 34;
|
|
4
|
+
const Container = styled.div.withConfig({
|
|
5
|
+
shouldForwardProp: (props) => !["mobile"].includes(props)
|
|
6
|
+
})`
|
|
7
|
+
display: inline-block;
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
position: relative;
|
|
10
|
+
font-size: 0;
|
|
11
|
+
text-align: center;
|
|
12
|
+
|
|
13
|
+
${(props) => props.mobile && `
|
|
14
|
+
display: block;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 18px 0;
|
|
17
|
+
`}
|
|
18
|
+
`;
|
|
19
|
+
const Value = styled.button.withConfig({
|
|
20
|
+
shouldForwardProp: (props) => !["active", "dark"].includes(props)
|
|
21
|
+
})`
|
|
22
|
+
display: inline-block;
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
font-size: 11px;
|
|
25
|
+
line-height: 16px;
|
|
26
|
+
letter-spacing: 2px;
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
padding: 2px 0;
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
color: ${() => theme.cBlack};
|
|
31
|
+
transition:
|
|
32
|
+
opacity 0.2s,
|
|
33
|
+
color 0.2s;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
color: ${() => theme.cPrimary};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
${(props) => props.active && `
|
|
41
|
+
opacity: 1;
|
|
42
|
+
`}
|
|
43
|
+
|
|
44
|
+
${(props) => props.dark && `
|
|
45
|
+
color: ${theme.cPrimary};
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
color: ${theme.cBlack};
|
|
49
|
+
}
|
|
50
|
+
`};
|
|
51
|
+
`;
|
|
52
|
+
const Indicator = styled.div.withConfig({
|
|
53
|
+
shouldForwardProp: (props) => !["dark", "value1", "value1Color", "value2", "value2Color"].includes(props)
|
|
54
|
+
})`
|
|
55
|
+
display: inline-block;
|
|
56
|
+
vertical-align: middle;
|
|
57
|
+
width: ${switchWidth}px;
|
|
58
|
+
height: 16px;
|
|
59
|
+
border-radius: 8px;
|
|
60
|
+
background-color: ${() => theme.cGrey};
|
|
61
|
+
margin: 0 16px;
|
|
62
|
+
position: relative;
|
|
63
|
+
outline: 0;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
|
|
66
|
+
&:before {
|
|
67
|
+
content: '';
|
|
68
|
+
display: block;
|
|
69
|
+
width: 18px;
|
|
70
|
+
height: 18px;
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 50%;
|
|
73
|
+
left: 50%;
|
|
74
|
+
margin-top: -9px;
|
|
75
|
+
margin-left: -9px;
|
|
76
|
+
border-radius: 9px;
|
|
77
|
+
background-color: ${() => theme.cBlack};
|
|
78
|
+
transform: translateX(0);
|
|
79
|
+
transition:
|
|
80
|
+
transform 0.2s,
|
|
81
|
+
background-color 0.2s;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:hover {
|
|
85
|
+
&:before {
|
|
86
|
+
background-color: ${() => theme.cPrimary};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
${(props) => props.dark && `
|
|
91
|
+
background-color: ${theme.cGrey2};
|
|
92
|
+
|
|
93
|
+
&:before {
|
|
94
|
+
background-color: ${theme.cPrimary};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
&:before {
|
|
99
|
+
background-color: ${theme.cBlack};
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
`}
|
|
103
|
+
|
|
104
|
+
${(props) => props.value1 && `
|
|
105
|
+
&:before {
|
|
106
|
+
transform: translateX(-${switchWidth / 2 - 8}px);
|
|
107
|
+
}
|
|
108
|
+
${props.value1Color && `
|
|
109
|
+
background-color: ${props.value1Color};
|
|
110
|
+
`}
|
|
111
|
+
`}
|
|
112
|
+
|
|
113
|
+
${(props) => props.value2 && `
|
|
114
|
+
&:before {
|
|
115
|
+
transform: translateX(${switchWidth / 2 - 8}px);
|
|
116
|
+
}
|
|
117
|
+
${props.value2Color && `
|
|
118
|
+
background-color: ${props.value2Color};
|
|
119
|
+
`}
|
|
120
|
+
`}
|
|
121
|
+
`;
|
|
122
|
+
export {
|
|
123
|
+
Container,
|
|
124
|
+
Indicator,
|
|
125
|
+
Value
|
|
126
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { TransitionGroup, Transition } from "../../utils/transition.js";
|
|
5
|
+
import { StyledTabs } from "./Tabs.styles.js";
|
|
6
|
+
import { Tab } from "./Tabs.styles.js";
|
|
7
|
+
const timeout = 300;
|
|
8
|
+
const getTransitionStyles = {
|
|
9
|
+
entering: {
|
|
10
|
+
position: "absolute",
|
|
11
|
+
opacity: 0
|
|
12
|
+
},
|
|
13
|
+
entered: {
|
|
14
|
+
transition: `opacity ${timeout}ms ease-in-out`,
|
|
15
|
+
opacity: 1
|
|
16
|
+
},
|
|
17
|
+
exiting: {
|
|
18
|
+
transition: `opacity ${timeout}ms ease-in-out`,
|
|
19
|
+
opacity: 0
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const Tabs = ({ children, activeTab = 0 }) => /* @__PURE__ */ jsx(TransitionGroup, { component: StyledTabs, children: React__default.Children.map(children, (child) => {
|
|
23
|
+
if (child.props.tabId !== activeTab || !React__default.isValidElement(child)) return null;
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
Transition,
|
|
26
|
+
{
|
|
27
|
+
timeout: {
|
|
28
|
+
enter: timeout,
|
|
29
|
+
exit: timeout
|
|
30
|
+
},
|
|
31
|
+
children: (status) => /* @__PURE__ */ jsx(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
style: {
|
|
35
|
+
height: "100%",
|
|
36
|
+
...getTransitionStyles[status]
|
|
37
|
+
},
|
|
38
|
+
children: child
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
},
|
|
42
|
+
child.props.tabId
|
|
43
|
+
);
|
|
44
|
+
}) });
|
|
45
|
+
Tabs.propTypes = {
|
|
46
|
+
children: PropTypes.node.isRequired,
|
|
47
|
+
activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
48
|
+
};
|
|
49
|
+
var stdin_default = Tabs;
|
|
50
|
+
export {
|
|
51
|
+
Tab,
|
|
52
|
+
Tabs,
|
|
53
|
+
stdin_default as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { StyledTab, LinkText } from "./TabsNav.styles.js";
|
|
5
|
+
const TabNav = ({ children, isActive = false, onClick = () => {
|
|
6
|
+
}, customStyles, ...props }) => /* @__PURE__ */ jsx(StyledTab, { onClick, isActive, customStyles, ...props, children: /* @__PURE__ */ jsx(LinkText, { children }) });
|
|
7
|
+
TabNav.propTypes = {
|
|
8
|
+
children: PropTypes.node.isRequired,
|
|
9
|
+
isActive: PropTypes.bool,
|
|
10
|
+
onClick: PropTypes.func
|
|
11
|
+
};
|
|
12
|
+
var stdin_default = TabNav;
|
|
13
|
+
export {
|
|
14
|
+
TabNav,
|
|
15
|
+
stdin_default as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import { default as default2 } from "./TabNav.js";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
|
+
import { StyledTabs, Scroll, TabsWrapper } from "./TabsNav.styles.js";
|
|
6
|
+
import { LinkText, StyledTab } from "./TabsNav.styles.js";
|
|
7
|
+
const TabsNav = ({ children, activeTab = 0, noBorderBottom, noWrapperPadding }) => /* @__PURE__ */ jsx(StyledTabs, { noBorderBottom, children: /* @__PURE__ */ jsx(Scroll, { children: /* @__PURE__ */ jsx(TabsWrapper, { noWrapperPadding, children: React__default.Children.map(children, (child) => {
|
|
8
|
+
if (!React__default.isValidElement(child)) return null;
|
|
9
|
+
return React__default.createElement(child, {
|
|
10
|
+
...child.props,
|
|
11
|
+
isActive: child.props.tabId === activeTab
|
|
12
|
+
});
|
|
13
|
+
}) }) }) });
|
|
14
|
+
TabsNav.propTypes = {
|
|
15
|
+
children: PropTypes.node.isRequired,
|
|
16
|
+
activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
17
|
+
noBorderBottom: PropTypes.bool,
|
|
18
|
+
noWrapperPadding: PropTypes.bool
|
|
19
|
+
};
|
|
20
|
+
var stdin_default = TabsNav;
|
|
21
|
+
export {
|
|
22
|
+
LinkText,
|
|
23
|
+
Scroll,
|
|
24
|
+
StyledTab,
|
|
25
|
+
StyledTabs,
|
|
26
|
+
default2 as TabNav,
|
|
27
|
+
TabsNav,
|
|
28
|
+
TabsWrapper,
|
|
29
|
+
stdin_default as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import rwd from "../../styles/rwd.js";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const StyledTabs = styled.div.withConfig({
|
|
5
|
+
shouldForwardProp: (props) => !["noBorderBottom"].includes(props)
|
|
6
|
+
})`
|
|
7
|
+
position: relative;
|
|
8
|
+
border-bottom: 1px solid ${theme.cLightGrey};
|
|
9
|
+
|
|
10
|
+
${(props) => props.noBorderBottom && `
|
|
11
|
+
border-bottom: none;
|
|
12
|
+
`}
|
|
13
|
+
`;
|
|
14
|
+
const Scroll = styled.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
overflow-x: auto;
|
|
18
|
+
`;
|
|
19
|
+
const TabsWrapper = styled.div.withConfig({
|
|
20
|
+
shouldForwardProp: (props) => !["noWrapperPadding"].includes(props)
|
|
21
|
+
})`
|
|
22
|
+
position: relative;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
padding: 12px 0;
|
|
25
|
+
|
|
26
|
+
${rwd.Medium`
|
|
27
|
+
padding: 24px;
|
|
28
|
+
`}
|
|
29
|
+
|
|
30
|
+
${(props) => props.noWrapperPadding && `
|
|
31
|
+
padding: 0 !important;
|
|
32
|
+
`}
|
|
33
|
+
`;
|
|
34
|
+
const LinkText = styled.span`
|
|
35
|
+
display: block;
|
|
36
|
+
position: relative;
|
|
37
|
+
font-family: 'Open Sans';
|
|
38
|
+
font-size: 11px;
|
|
39
|
+
letter-spacing: 2px;
|
|
40
|
+
line-height: 20px;
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
padding: 8px 0;
|
|
43
|
+
|
|
44
|
+
&:before {
|
|
45
|
+
content: '';
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 8px;
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 100%;
|
|
51
|
+
left: 0%;
|
|
52
|
+
transition: background-color 0.2s;
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
const StyledTab = styled.button.withConfig({
|
|
56
|
+
shouldForwardProp: (props) => !["isActive", "customStyles"].includes(props)
|
|
57
|
+
})`
|
|
58
|
+
display: inline-block;
|
|
59
|
+
position: relative;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
outline: none;
|
|
62
|
+
visibility: visible;
|
|
63
|
+
padding: 12px;
|
|
64
|
+
color: ${() => theme.cBlack};
|
|
65
|
+
transition: opacity 0.2s;
|
|
66
|
+
|
|
67
|
+
${rwd.Medium`
|
|
68
|
+
padding: 24px;
|
|
69
|
+
`}
|
|
70
|
+
|
|
71
|
+
${rwd.Large`
|
|
72
|
+
padding: 32px 40px;
|
|
73
|
+
`}
|
|
74
|
+
|
|
75
|
+
&:focus ,
|
|
76
|
+
&:hover {
|
|
77
|
+
opacity: 0.6;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${(props) => props.isActive && `
|
|
81
|
+
&:focus ,
|
|
82
|
+
&:hover {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
${LinkText} {
|
|
87
|
+
font-weight: bold;
|
|
88
|
+
|
|
89
|
+
&:before {
|
|
90
|
+
background-color: ${theme.cPrimary}!important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`}
|
|
94
|
+
|
|
95
|
+
${(props) => props.customStyles}
|
|
96
|
+
`;
|
|
97
|
+
export {
|
|
98
|
+
LinkText,
|
|
99
|
+
Scroll,
|
|
100
|
+
StyledTab,
|
|
101
|
+
StyledTabs,
|
|
102
|
+
TabsWrapper
|
|
103
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import stdin_default from "../SvgIcons/AdminBadgeSvg.js";
|
|
5
|
+
import "../SvgIcons/SocialInstagram.js";
|
|
6
|
+
import { Container, ImageWrapper, Avatar, ContentWrapper, ContentGroup, SmallHeader, Name, PersonPosition, PersonEmail, ProjectStats, ProjectStat, StatLabel, StatValue } from "./TeamOverview.styles.js";
|
|
7
|
+
import avatarPlaceholder from "../../static/images/avatar-placeholder.png.js";
|
|
8
|
+
const TeamOverview = ({
|
|
9
|
+
name = "",
|
|
10
|
+
memberRole = "",
|
|
11
|
+
avatar = "",
|
|
12
|
+
position = "",
|
|
13
|
+
email = "",
|
|
14
|
+
projectName = "",
|
|
15
|
+
stats = []
|
|
16
|
+
}) => {
|
|
17
|
+
const [profilePicture, setProfilePicture] = useState(avatarPlaceholder);
|
|
18
|
+
const getProfilePicture = () => {
|
|
19
|
+
return new Promise((resolve, reject) => {
|
|
20
|
+
try {
|
|
21
|
+
const http = new XMLHttpRequest();
|
|
22
|
+
http.open("HEAD", avatar, false);
|
|
23
|
+
http.send();
|
|
24
|
+
if (http.status !== 404) {
|
|
25
|
+
resolve(avatar);
|
|
26
|
+
} else {
|
|
27
|
+
resolve(avatarPlaceholder);
|
|
28
|
+
}
|
|
29
|
+
} catch (_error) {
|
|
30
|
+
reject(avatarPlaceholder);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const getPicture = async () => {
|
|
36
|
+
const picture = await getProfilePicture();
|
|
37
|
+
setProfilePicture(picture);
|
|
38
|
+
};
|
|
39
|
+
getPicture();
|
|
40
|
+
}, []);
|
|
41
|
+
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
42
|
+
/* @__PURE__ */ jsx(ImageWrapper, { children: /* @__PURE__ */ jsx(Avatar, { src: profilePicture, alt: "avatar" }) }),
|
|
43
|
+
/* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
|
44
|
+
/* @__PURE__ */ jsxs(ContentGroup, { children: [
|
|
45
|
+
/* @__PURE__ */ jsxs(SmallHeader, { children: [
|
|
46
|
+
memberRole === "company_sa" && /* @__PURE__ */ jsx(stdin_default, {}),
|
|
47
|
+
/* @__PURE__ */ jsx("span", { children: memberRole })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ jsx(Name, { children: name }),
|
|
50
|
+
/* @__PURE__ */ jsx(PersonPosition, { children: position }),
|
|
51
|
+
/* @__PURE__ */ jsx(PersonEmail, { children: email })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ jsxs(ContentGroup, { children: [
|
|
54
|
+
/* @__PURE__ */ jsx(SmallHeader, { children: /* @__PURE__ */ jsx("span", { children: "Project" }) }),
|
|
55
|
+
/* @__PURE__ */ jsx(Name, { children: projectName }),
|
|
56
|
+
stats && /* @__PURE__ */ jsx(ProjectStats, { children: stats.map((stat) => /* @__PURE__ */ jsxs(ProjectStat, { children: [
|
|
57
|
+
/* @__PURE__ */ jsx(StatLabel, { children: stat.name }),
|
|
58
|
+
/* @__PURE__ */ jsx(StatValue, { children: stat.count })
|
|
59
|
+
] }, stat.name)) })
|
|
60
|
+
] })
|
|
61
|
+
] })
|
|
62
|
+
] });
|
|
63
|
+
};
|
|
64
|
+
TeamOverview.propTypes = {
|
|
65
|
+
name: PropTypes.string,
|
|
66
|
+
memberRole: PropTypes.string,
|
|
67
|
+
avatar: PropTypes.string,
|
|
68
|
+
position: PropTypes.string,
|
|
69
|
+
email: PropTypes.string,
|
|
70
|
+
projectName: PropTypes.string,
|
|
71
|
+
stats: PropTypes.arrayOf(
|
|
72
|
+
PropTypes.shape({
|
|
73
|
+
name: PropTypes.string,
|
|
74
|
+
count: PropTypes.number
|
|
75
|
+
})
|
|
76
|
+
)
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
TeamOverview
|
|
80
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import rwd from "../../styles/rwd.js";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const Container = styled.div`
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
font-size: 0;
|
|
8
|
+
|
|
9
|
+
@media screen and (min-width: 768px) and (max-width: 1000px) {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
const ImageWrapper = styled.div`
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
display: block;
|
|
17
|
+
margin: 0 auto;
|
|
18
|
+
width: 160px;
|
|
19
|
+
height: 160px;
|
|
20
|
+
border-radius: 80px;
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
border: 1px solid rgb(225, 225, 225);
|
|
23
|
+
|
|
24
|
+
${rwd.Medium`
|
|
25
|
+
z-index: 1;
|
|
26
|
+
position: relative;
|
|
27
|
+
display: inline-block;
|
|
28
|
+
vertical-align: top;
|
|
29
|
+
margin: 0;
|
|
30
|
+
margin-right: -160px;
|
|
31
|
+
`}
|
|
32
|
+
|
|
33
|
+
@media screen and (min-width: 768px) and (max-width: 1000px) {
|
|
34
|
+
margin: 0 auto;
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
const Avatar = styled.img`
|
|
38
|
+
display: block;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
object-fit: cover;
|
|
42
|
+
object-position: center center;
|
|
43
|
+
`;
|
|
44
|
+
const ContentWrapper = styled.div`
|
|
45
|
+
display: block;
|
|
46
|
+
width: 100%;
|
|
47
|
+
|
|
48
|
+
${rwd.Medium`
|
|
49
|
+
z-index: 0;
|
|
50
|
+
position: relative;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
vertical-align: top;
|
|
53
|
+
padding-left: 160px;
|
|
54
|
+
`}
|
|
55
|
+
|
|
56
|
+
@media screen and (min-width: 768px) and (max-width: 900px) {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media screen and (min-width: 768px) and (max-width: 1000px) {
|
|
62
|
+
padding-left: 0;
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
const Name = styled.h3`
|
|
66
|
+
position: relative;
|
|
67
|
+
font-family: 'Open Sans';
|
|
68
|
+
font-weight: 800;
|
|
69
|
+
font-size: 28px;
|
|
70
|
+
line-height: 36px;
|
|
71
|
+
letter-spacing: 1.2px;
|
|
72
|
+
margin: 0;
|
|
73
|
+
text-transform: uppercase;
|
|
74
|
+
margin-top: 4px;
|
|
75
|
+
`;
|
|
76
|
+
const ContentGroup = styled.div`
|
|
77
|
+
display: block;
|
|
78
|
+
padding-top: 32px;
|
|
79
|
+
|
|
80
|
+
${rwd.Medium`
|
|
81
|
+
display: inline-block;
|
|
82
|
+
vertical-align: top;
|
|
83
|
+
width: 50%;
|
|
84
|
+
padding-top: 0;
|
|
85
|
+
padding-left: 50px;
|
|
86
|
+
`}
|
|
87
|
+
|
|
88
|
+
@media screen and (min-width: 768px) and (max-width: 900px) {
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media screen and (min-width: 768px) and (max-width: 1000px) {
|
|
93
|
+
margin-top: 32px;
|
|
94
|
+
padding-left: 0;
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
97
|
+
const SmallHeader = styled.div`
|
|
98
|
+
display: block;
|
|
99
|
+
|
|
100
|
+
svg {
|
|
101
|
+
display: inline-block;
|
|
102
|
+
vertical-align: middle;
|
|
103
|
+
fill: ${() => theme.cPrimary};
|
|
104
|
+
margin: -4px 0;
|
|
105
|
+
margin-right: 12px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
span {
|
|
109
|
+
display: inline-block;
|
|
110
|
+
vertical-align: middle;
|
|
111
|
+
font-size: 11px;
|
|
112
|
+
line-height: 16px;
|
|
113
|
+
text-transform: uppercase;
|
|
114
|
+
padding: 4px 0;
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
const ProjectStats = styled.div`
|
|
118
|
+
display: block;
|
|
119
|
+
position: relative;
|
|
120
|
+
margin-top: 25px;
|
|
121
|
+
`;
|
|
122
|
+
const ProjectStat = styled.div`
|
|
123
|
+
display: inline-block;
|
|
124
|
+
vertical-align: top;
|
|
125
|
+
width: 50%;
|
|
126
|
+
`;
|
|
127
|
+
const StatLabel = styled.div`
|
|
128
|
+
font-size: 11px;
|
|
129
|
+
line-height: 16px;
|
|
130
|
+
text-transform: uppercase;
|
|
131
|
+
padding: 4px 0;
|
|
132
|
+
`;
|
|
133
|
+
const StatValue = styled.div`
|
|
134
|
+
font-weight: 300;
|
|
135
|
+
font-size: 16px;
|
|
136
|
+
line-height: 16px;
|
|
137
|
+
margin-top: 4px;
|
|
138
|
+
`;
|
|
139
|
+
const PersonPosition = styled.div`
|
|
140
|
+
font-weight: bold;
|
|
141
|
+
font-size: 16px;
|
|
142
|
+
line-height: 24px;
|
|
143
|
+
text-transform: uppercase;
|
|
144
|
+
color: ${() => theme.cPrimary};
|
|
145
|
+
margin-top: 15px;
|
|
146
|
+
`;
|
|
147
|
+
const PersonEmail = styled.div`
|
|
148
|
+
font-weight: 300;
|
|
149
|
+
font-size: 14px;
|
|
150
|
+
line-height: 24px;
|
|
151
|
+
margin-top: 20px;
|
|
152
|
+
`;
|
|
153
|
+
export {
|
|
154
|
+
Avatar,
|
|
155
|
+
Container,
|
|
156
|
+
ContentGroup,
|
|
157
|
+
ContentWrapper,
|
|
158
|
+
ImageWrapper,
|
|
159
|
+
Name,
|
|
160
|
+
PersonEmail,
|
|
161
|
+
PersonPosition,
|
|
162
|
+
ProjectStat,
|
|
163
|
+
ProjectStats,
|
|
164
|
+
SmallHeader,
|
|
165
|
+
StatLabel,
|
|
166
|
+
StatValue
|
|
167
|
+
};
|