@stokr/components-library 3.0.16 → 3.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +261 -262
- package/dist/analytics/index.js +180 -0
- package/dist/api/auth.js +15 -0
- package/dist/api/fetchData.js +27 -0
- package/dist/api/fetchDataPublic.js +19 -0
- package/dist/auth/index.js +32 -0
- package/dist/components/2FA/Connect2FA.js +55 -0
- package/dist/components/2FA/EnterCode.js +63 -0
- package/dist/components/2FA/InstallAuthApp.js +64 -0
- package/dist/components/2FA/ResetCode.js +33 -0
- package/dist/components/2FA/Sucess2FA.js +51 -0
- package/dist/components/2FA/disable-2fa-flow.js +91 -0
- package/dist/components/2FA/enable-2fa-flow.js +137 -0
- package/dist/components/2FA/login-with-otp-flow.js +206 -0
- package/dist/components/2FA/main-flow.js +217 -0
- package/dist/components/AccountBalance/AccountBalance.js +35 -0
- package/dist/components/AccountBalance/AccountBalance.styles.js +48 -0
- package/dist/components/AdminDashboard/Table/ReactTable.js +266 -0
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +65 -0
- package/dist/components/AdminDashboard/Table/Table.js +123 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +263 -0
- package/dist/components/AgreementItem/AgreementItem.js +39 -0
- package/dist/components/AgreementItem/AgreementItem.styles.js +32 -0
- package/dist/components/BackButton/BackButton.js +34 -0
- package/dist/components/BackButton/BackButton.styles.js +123 -0
- package/dist/components/Background/Background.js +45 -0
- package/dist/components/Background/Background.styles.js +119 -0
- package/dist/components/BasicTable/BasicTable.js +25 -0
- package/dist/components/BasicTable/BasicTable.styles.js +76 -0
- package/dist/components/BlogPost/BlogPost.js +98 -0
- package/dist/components/BlogPost/BlogPost.styles.js +230 -0
- package/dist/components/Button/Button.styles.js +207 -0
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +51 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +18 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +41 -0
- package/dist/components/Card/Card.styles.js +97 -0
- package/dist/components/ChartLegend/ChartLegend.js +62 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +133 -0
- package/dist/components/Checkbox/Checkbox.js +80 -0
- package/dist/components/Checkbox/Checkbox.styles.js +133 -0
- package/dist/components/Checklist/ChecklistCard.js +71 -0
- package/dist/components/Checklist/ChecklistCard.styles.js +82 -0
- package/dist/components/Chips/Chip.js +23 -0
- package/dist/components/Chips/Chip.styles.js +72 -0
- package/dist/components/Chips/ChipWrapper.js +50 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +70 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +127 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +165 -0
- package/dist/components/ConfirmModal/ConfirmModal.js +199 -0
- package/dist/components/ConfirmModal/ConfirmModal.styles.js +44 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +16 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +151 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +443 -0
- package/dist/components/CryptoAddress/RadioWrap.js +47 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +34 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +125 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +25 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +111 -0
- package/dist/components/DoubleButton/DoubleButton.styles.js +27 -0
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +9 -0
- package/dist/components/FAQ/FAQ.js +73 -0
- package/dist/components/FAQ/FAQ.styles.js +128 -0
- package/dist/components/Footer/Footer.js +55 -0
- package/dist/components/Footer/Footer.styles.js +256 -0
- package/dist/components/Footer/FooterLayout.js +145 -0
- package/dist/components/Footer/FooterMenu.js +100 -0
- package/dist/components/Footer/FooterMenu.styles.js +321 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +100 -0
- package/dist/components/Form/Form.js +21 -0
- package/dist/components/Form/Form.styles.js +72 -0
- package/dist/components/Grid/Grid.styles.js +212 -0
- package/dist/components/Header/Header.js +425 -0
- package/dist/components/Header/Header.styles.js +567 -0
- package/dist/components/HeroBlock/HeroVideoBlock.js +105 -0
- package/dist/components/Icon/Icon.style.js +92 -0
- package/dist/components/Icon/Icon2.js +12 -0
- package/dist/components/InfoBox/InfoBox.js +93 -0
- package/dist/components/InfoIcon/InfoIcon.js +62 -0
- package/dist/components/InfoIcon/InfoIcon.styles.js +64 -0
- package/dist/components/Input/DatePickerInput.js +139 -0
- package/dist/components/Input/DatePickerInput.styles.js +165 -0
- package/dist/components/Input/Input.js +108 -0
- package/dist/components/Input/Input.styles.js +154 -0
- package/dist/components/Input/InputPassword.js +122 -0
- package/dist/components/Input/InputPassword.styles.js +166 -0
- package/dist/components/Input/InputUsername.js +92 -0
- package/dist/components/Input/InputWithButton.js +53 -0
- package/dist/components/Input/InputWithButton.styles.js +57 -0
- package/dist/components/Input/MultiSelect.js +306 -0
- package/dist/components/Input/OtpInput.js +70 -0
- package/dist/components/Input/RangeInput.js +80 -0
- package/dist/components/Input/RangeInput.styles.js +129 -0
- package/dist/components/Input/SearchInput.js +68 -0
- package/dist/components/Input/SearchInput.styles.js +92 -0
- package/dist/components/Input/Select.js +151 -0
- package/dist/components/Input/Select.styles.js +148 -0
- package/dist/components/Input/TableFilterDropdown.js +247 -0
- package/dist/components/Input/Textarea.js +51 -0
- package/dist/components/Input/Textarea.styles.js +62 -0
- package/dist/components/InvestCalculator/InvestCalculator.js +283 -0
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +94 -0
- package/dist/components/InvestmentStat/InvestmentStat.js +24 -0
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +62 -0
- package/dist/components/LatestUpdate/LatestUpdate.js +24 -0
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +90 -0
- package/dist/components/Layout/Layout.js +69 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +32 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +208 -0
- package/dist/components/LearnMorePage/LearnMore.js +190 -0
- package/dist/components/LearnMorePage/LearnMore.propTypes.js +20 -0
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +56 -0
- package/dist/components/LearnMorePage/LearnMore.styles.js +276 -0
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +120 -0
- package/dist/components/LearnMorePage/LearnMoreItem.js +57 -0
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +234 -0
- package/dist/components/LearnMoreSection/LearnMore.js +138 -0
- package/dist/components/LearnMoreSection/LearnMore.styles.js +147 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.js +33 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +60 -0
- package/dist/components/LoginModal/LoginModal.js +142 -0
- package/dist/components/MainMenu/DynamicMainMenu.js +38 -0
- package/dist/components/MainMenu/MainMenu.js +210 -0
- package/dist/components/MainMenu/MainMenu.styles.js +362 -0
- package/dist/components/MenuNav/MenuNav.styles.js +66 -0
- package/dist/components/Modal/Modal.js +119 -0
- package/dist/components/Modal/Modal.styles.js +450 -0
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +262 -0
- package/dist/components/Modal/PaymentModal.js +149 -0
- package/dist/components/Modal/SideModal.js +134 -0
- package/dist/components/Modal/SideModal.styles.js +55 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.js +170 -0
- package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +53 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.js +30 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +105 -0
- package/dist/components/Newsletter/Newsletter.js +122 -0
- package/dist/components/Newsletter/Newsletter.styles.js +186 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +38 -0
- package/dist/components/Number/Number.js +50 -0
- package/dist/components/Number/Number.styles.js +23 -0
- package/dist/components/PageTransition/PageTransition.js +51 -0
- package/dist/components/Pagination/Pagination.js +58 -0
- package/dist/components/Pagination/Pagination.styles.js +59 -0
- package/dist/components/Pagination/PaginationControls.js +113 -0
- package/dist/components/Pagination/usePagination.js +40 -0
- package/dist/components/Payment/PaymentDetailsCard.js +359 -0
- package/dist/components/Payment/PaymentDisplay.js +199 -0
- package/dist/components/Payment/TimerComponent.js +92 -0
- package/dist/components/Process/Process.styles.js +84 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +35 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +53 -0
- package/dist/components/ProfileBox/ProfileBox.js +27 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +67 -0
- package/dist/components/ProfileStat/ProfileStat.js +29 -0
- package/dist/components/ProfileStat/ProfileStat.styles.js +90 -0
- package/dist/components/QRCode/QRCode.js +51 -0
- package/dist/components/Radio/Radio.js +51 -0
- package/dist/components/Radio/Radio.styles.js +100 -0
- package/dist/components/RefreshButton/RefreshButton.js +21 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +64 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +65 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +20 -0
- package/dist/components/RegisterModal/RegisterModal.js +248 -0
- package/dist/components/RequestDataBox/RequestDataBox.js +21 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +43 -0
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +44 -0
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +41 -0
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +134 -0
- package/dist/components/SEO/SEO.js +66 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +26 -0
- package/dist/components/SideLine/SideLine.js +7 -0
- package/dist/components/SideLine/SideLine.styles.js +33 -0
- package/dist/components/Slider/Slider.js +31 -0
- package/dist/components/Slider/Slider.styles.js +120 -0
- package/dist/components/Snackbar/Snackbar.js +111 -0
- package/dist/components/Snackbar/Snackbar.styles.js +230 -0
- package/dist/components/Snackbar/SnackbarProvider.js +66 -0
- package/dist/components/Snackbar/useSnackbar.js +12 -0
- package/dist/components/SpanButton/SpanButton.styles.js +19 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js +18 -0
- package/dist/components/StatusTag/StatusTag.js +105 -0
- package/dist/components/StatusTag/StatusTag.styles.js +88 -0
- package/dist/components/StepController/StepController.js +86 -0
- package/dist/components/StepController/StepController.styles.js +33 -0
- package/dist/components/StepController/StepControllerContext.js +65 -0
- package/dist/components/StepController/StepControllerProgress.js +37 -0
- package/dist/components/StepsProgress/StepIndicator.js +40 -0
- package/dist/components/StepsProgress/StepIndicator.styles.js +69 -0
- package/dist/components/StepsProgress/StepsProgress.js +67 -0
- package/dist/components/StepsProgress/StepsProgress.styles.js +105 -0
- package/dist/components/StokrLoader/StokrLoader.js +111 -0
- package/dist/components/StokrLoader/media.js +23 -0
- package/dist/components/SvgIcons/AdminBadgeSvg.js +27 -0
- package/dist/components/SvgIcons/CameraSvg.js +31 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +36 -0
- package/dist/components/SvgIcons/DocumentBackSvg.js +20 -0
- package/dist/components/SvgIcons/DocumentSmallSvg.js +41 -0
- package/dist/components/SvgIcons/DocumentSvg.js +39 -0
- package/dist/components/SvgIcons/EthSvg.js +28 -0
- package/dist/components/SvgIcons/EurSvg.js +27 -0
- package/dist/components/SvgIcons/FaceScanIconSvg.js +17 -0
- package/dist/components/SvgIcons/FourSvg.js +7 -0
- package/dist/components/SvgIcons/Glassess.js +26 -0
- package/dist/components/SvgIcons/LogoSvg.js +17 -0
- package/dist/components/SvgIcons/OneSvg.js +10 -0
- package/dist/components/SvgIcons/PassportSvg.js +37 -0
- package/dist/components/SvgIcons/RefreshSvg.js +28 -0
- package/dist/components/SvgIcons/SocialFacebook.js +22 -0
- package/dist/components/SvgIcons/SocialInstagram.js +13 -0
- package/dist/components/SvgIcons/SocialLinkedIn.js +31 -0
- package/dist/components/SvgIcons/SocialMedium.js +21 -0
- package/dist/components/SvgIcons/SocialReddit.js +21 -0
- package/dist/components/SvgIcons/SocialTelegram.js +60 -0
- package/dist/components/SvgIcons/SocialTwitter.js +62 -0
- package/dist/components/SvgIcons/SocialYoutube.js +22 -0
- package/dist/components/SvgIcons/ThreeSvg.js +7 -0
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +48 -0
- package/dist/components/SvgIcons/TwoSvg.js +10 -0
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +12 -0
- package/dist/components/SvgIcons/UpdateHardSvg.js +10 -0
- package/dist/components/SvgIcons/UpdateSoftSvg.js +11 -0
- package/dist/components/SvgIcons/UploadSvg.js +12 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +16 -0
- package/dist/components/Switch/Switch.js +63 -0
- package/dist/components/Switch/Switch.styles.js +126 -0
- package/dist/components/Tabs/Tabs.js +54 -0
- package/dist/components/Tabs/Tabs.styles.js +15 -0
- package/dist/components/TabsNav/TabNav.js +16 -0
- package/dist/components/TabsNav/TabsNav.js +30 -0
- package/dist/components/TabsNav/TabsNav.styles.js +103 -0
- package/dist/components/TeamOverview/TeamOverview.js +80 -0
- package/dist/components/TeamOverview/TeamOverview.styles.js +167 -0
- package/dist/components/TermsModal/TermsModal.js +145 -0
- package/dist/components/TermsModal/_styles.js +313 -0
- package/dist/components/Text/Text.styles.js +220 -0
- package/dist/components/TextLink/TextLink.styles.js +67 -0
- package/dist/components/Timeline/Timeline.js +44 -0
- package/dist/components/Timeline/Timeline.styles.js +147 -0
- package/dist/components/Timeline/TimelineStep.js +58 -0
- package/dist/components/ToDoList/ToDoList.js +172 -0
- package/dist/components/ToDoList/ToDoList.styles.js +122 -0
- package/dist/components/ToDoList/ToDoListTask.js +95 -0
- package/dist/components/ToDoList/ToDoListTask.styles.js +119 -0
- package/dist/components/TransactionDetails/TransactionDetails.js +27 -0
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +38 -0
- package/dist/components/TransactionInfo/TransactionInfo.js +41 -0
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +75 -0
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +122 -0
- package/dist/components/breakdown/Breakdown.js +126 -0
- package/dist/components/headerHo/HeaderHo.js +709 -0
- package/dist/components/icons/Arrow.js +38 -0
- package/dist/components/icons/ArrowSimple.js +34 -0
- package/dist/components/icons/Check.js +16 -0
- package/dist/components/icons/Facebook.js +10 -0
- package/dist/components/icons/Info.js +27 -0
- package/dist/components/icons/Instagram.js +10 -0
- package/dist/components/icons/LinkIcon.js +49 -0
- package/dist/components/icons/LinkedIn.js +13 -0
- package/dist/components/icons/Medium.js +13 -0
- package/dist/components/icons/Reddit.js +16 -0
- package/dist/components/icons/Share.js +31 -0
- package/dist/components/icons/Telegram.js +13 -0
- package/dist/components/icons/Twitter.js +10 -0
- package/dist/components/icons/X.js +10 -0
- package/dist/components/icons/Youtube.js +10 -0
- package/dist/components/icons/index.js +32 -0
- package/dist/components/landing-page/List.js +51 -0
- package/dist/components/landing-page/PageContent.js +65 -0
- package/dist/components/landing-page/PageText.js +171 -0
- package/dist/components/landing-page/PageTitle.js +259 -0
- package/dist/components/logo/Logo.js +57 -0
- package/dist/components/taxId/complete.js +24 -0
- package/dist/components/taxId/flow.js +53 -0
- package/dist/components/taxId/register-taxid.js +166 -0
- package/dist/config.js +44 -0
- package/dist/constants/globalVariables.js +87 -0
- package/dist/constants/style.js +48 -0
- package/dist/context/Auth.js +396 -0
- package/dist/context/AuthContext.js +781 -0
- package/dist/context/Checkbox/CheckboxContext.js +151 -0
- package/dist/firebase-config.js +73 -0
- package/dist/hooks/useNewVentureForm.js +262 -0
- package/dist/hooks/useTimer.js +89 -0
- package/dist/hooks/useTransactionPolling.js +100 -0
- package/dist/index.js +632 -25463
- package/dist/model/axios.js +10 -0
- package/dist/model/axiosPublic.js +9 -0
- package/dist/services/TimerService.js +80 -0
- package/dist/static/animations/checked.lottie.js +4 -0
- package/dist/static/animations/progress.lottie.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff.js +4 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2.js +4 -0
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff.js +4 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.eot.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.svg.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.ttf.js +4 -0
- package/dist/static/fonts/icomoon/icomoon.woff.js +4 -0
- package/dist/static/images/add-folder-icon.svg.js +5 -0
- package/dist/static/images/address-refreshing.gif.js +4 -0
- package/dist/static/images/arrow-down-black.svg.js +4 -0
- package/dist/static/images/avatar-placeholder.png.js +4 -0
- package/dist/static/images/background3.png.js +4 -0
- package/dist/static/images/bitcoin-logo.svg.js +4 -0
- package/dist/static/images/bmn2-logo.svg.js +4 -0
- package/dist/static/images/check-icon.svg.js +5 -0
- package/dist/static/images/checkmark-circle-icon.svg.js +5 -0
- package/dist/static/images/close-circle-icon.svg.js +5 -0
- package/dist/static/images/copy_icon.svg.js +5 -0
- package/dist/static/images/cross-icon.svg.js +5 -0
- package/dist/static/images/early-adopter.png.js +4 -0
- package/dist/static/images/eth_logo.svg.js +4 -0
- package/dist/static/images/external-link-icon.svg +3 -0
- package/dist/static/images/external-link-icon.svg.js +4 -0
- package/dist/static/images/filter-icon.svg.js +5 -0
- package/dist/static/images/google_auth.png.js +4 -0
- package/dist/static/images/graduation.png.js +4 -0
- package/dist/static/images/mangopay.svg.js +4 -0
- package/dist/static/images/numbers/number_eight.svg.js +5 -0
- package/dist/static/images/numbers/number_five.svg.js +5 -0
- package/dist/static/images/numbers/number_four.svg.js +5 -0
- package/dist/static/images/numbers/number_nine.svg.js +5 -0
- package/dist/static/images/numbers/number_one.svg.js +5 -0
- package/dist/static/images/numbers/number_seven.svg.js +5 -0
- package/dist/static/images/numbers/number_six.svg.js +5 -0
- package/dist/static/images/numbers/number_three.svg.js +5 -0
- package/dist/static/images/numbers/number_two.svg.js +5 -0
- package/dist/static/images/numbers/number_zero.svg.js +5 -0
- package/dist/static/images/process-waiting.gif.js +4 -0
- package/dist/static/images/search-icon.svg.js +5 -0
- package/dist/static/images/social/Facebook_Logo.png.js +4 -0
- package/dist/static/images/social/LI-In-Bug.png.js +4 -0
- package/dist/static/images/social/Telegram-Logo.png.js +4 -0
- package/dist/static/images/social/X-logo-black.png.js +4 -0
- package/dist/static/images/social/youtube_social_circle_red.png.js +4 -0
- package/dist/static/images/transfer-icon.svg.js +5 -0
- package/dist/static/images/usdc-logo.svg.js +4 -0
- package/dist/static/images/usdq-logo.png.js +4 -0
- package/dist/static/images/warning-filled.svg.js +5 -0
- package/dist/styles/colors.js +57 -0
- package/dist/styles/fonts.js +100 -0
- package/dist/styles/global.js +74 -0
- package/dist/styles/grid.js +11 -0
- package/dist/styles/ioniconsStyles.js +31 -0
- package/dist/styles/reactTippy.js +40 -0
- package/dist/styles/rwd.js +56 -0
- package/dist/styles/semanticUi.js +84 -0
- package/dist/styles/spacing.js +8 -0
- package/dist/styles/theme.js +34 -0
- package/dist/utils/check-sale-time-left.js +85 -0
- package/dist/utils/check-todo-status.js +11 -0
- package/dist/utils/checklistGenerator.js +195 -0
- package/dist/utils/copyToClipboard.js +92 -0
- package/dist/utils/customHooks.js +126 -0
- package/dist/utils/delete-redirect-cookie-and-navigate.js +12 -0
- package/dist/utils/fix-decimals.js +5 -0
- package/dist/utils/formatCurrencyValue.js +95 -0
- package/dist/utils/get-cookie-domain.js +10 -0
- package/dist/utils/get-short-address.js +4 -0
- package/dist/utils/isUSInvestor.js +6 -0
- package/dist/utils/km_ify.js +33 -0
- package/dist/utils/moment.js +26 -0
- package/dist/utils/redirect-url.js +5 -0
- package/dist/utils/saveAs.js +17 -0
- package/dist/utils/scrollUtils.js +63 -0
- package/dist/utils/set-redirect-cookie.js +16 -0
- package/dist/utils/transition.js +101 -0
- package/dist/utils/withRouter.js +24 -0
- package/package.json +11 -11
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { PureComponent } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Collapse } from "react-collapse";
|
|
5
|
+
import { StyledMainMenu, MainMenuContainer, MainMenuOptions, MainMenuOption, ExpandArrow, Settings, SettingsOptions, SettingsOption } from "./MainMenu.styles.js";
|
|
6
|
+
import { Button } from "../Button/Button.styles.js";
|
|
7
|
+
import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
|
|
8
|
+
import { platformDomain } from "../../constants/globalVariables.js";
|
|
9
|
+
import { withRouter } from "../../utils/withRouter.js";
|
|
10
|
+
class MainMenuClass extends PureComponent {
|
|
11
|
+
state = {
|
|
12
|
+
isSettingsActive: false,
|
|
13
|
+
isScrollDown: false,
|
|
14
|
+
lastScroll: 0,
|
|
15
|
+
overrideHeightNeeded: true
|
|
16
|
+
};
|
|
17
|
+
componentDidMount() {
|
|
18
|
+
}
|
|
19
|
+
componentWillUnmount() {
|
|
20
|
+
}
|
|
21
|
+
toggleSettings = () => {
|
|
22
|
+
this.setState((prevState) => ({
|
|
23
|
+
isSettingsActive: !prevState.isSettingsActive
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
// onScroll = () => {
|
|
27
|
+
// const { lastScroll, isScrollDown, overrideHeightNeeded } = this.state
|
|
28
|
+
// const { scrollY } = window
|
|
29
|
+
// const newScrollDown = scrollY > lastScroll
|
|
30
|
+
// const newState = {
|
|
31
|
+
// lastScroll: scrollY,
|
|
32
|
+
// }
|
|
33
|
+
// if (newScrollDown !== isScrollDown) {
|
|
34
|
+
// newState.isScrollDown = newScrollDown
|
|
35
|
+
// }
|
|
36
|
+
// if (overrideHeightNeeded) {
|
|
37
|
+
// newState.overrideHeightNeeded = false
|
|
38
|
+
// }
|
|
39
|
+
// this.setState(newState)
|
|
40
|
+
// }
|
|
41
|
+
setScrollUp = () => {
|
|
42
|
+
this.setState({
|
|
43
|
+
isScrollDown: false
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
checkActive = (url) => window.location.href.split("/").indexOf(url) > 0;
|
|
47
|
+
render() {
|
|
48
|
+
const { isSettingsActive, isScrollDown, overrideHeightNeeded } = this.state;
|
|
49
|
+
const {
|
|
50
|
+
isMenuActive,
|
|
51
|
+
user,
|
|
52
|
+
logoutUser,
|
|
53
|
+
admin: isAdmin = false,
|
|
54
|
+
platformUrlForUserMenu,
|
|
55
|
+
isVentureDashboard
|
|
56
|
+
} = this.props;
|
|
57
|
+
const spanStyleForMenu = {
|
|
58
|
+
letterSpacing: "1.5px",
|
|
59
|
+
cursor: "pointer"
|
|
60
|
+
};
|
|
61
|
+
const isUserLogged = !!user?._id || user?.uid;
|
|
62
|
+
return /* @__PURE__ */ jsxs(StyledMainMenu, { children: [
|
|
63
|
+
/* @__PURE__ */ jsx(IoniconsStyles, {}),
|
|
64
|
+
/* @__PURE__ */ jsx(Collapse, { isOpened: isMenuActive && isUserLogged, hasNestedCollapse: true, children: /* @__PURE__ */ jsxs(MainMenuContainer, { children: [
|
|
65
|
+
/* @__PURE__ */ jsxs(
|
|
66
|
+
Collapse,
|
|
67
|
+
{
|
|
68
|
+
isOpened: !isScrollDown || isVentureDashboard,
|
|
69
|
+
style: overrideHeightNeeded ? { height: "auto" } : {},
|
|
70
|
+
hasNestedCollapse: true,
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ jsxs(MainMenuOptions, { children: [
|
|
73
|
+
!isVentureDashboard && /* @__PURE__ */ jsx(
|
|
74
|
+
MainMenuOption,
|
|
75
|
+
{
|
|
76
|
+
as: "button",
|
|
77
|
+
type: "button",
|
|
78
|
+
button: true,
|
|
79
|
+
nameOption: true,
|
|
80
|
+
isVenture: isAdmin,
|
|
81
|
+
isDashboard: true,
|
|
82
|
+
onClick: () => {
|
|
83
|
+
isAdmin ? window.location.href = `https://admin.${platformDomain}` : window.location.href = `${platformUrlForUserMenu}/overview`;
|
|
84
|
+
},
|
|
85
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Dashboard" })
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
isAdmin ? /* @__PURE__ */ jsx(Fragment, { children: isVentureDashboard && /* @__PURE__ */ jsx(
|
|
89
|
+
MainMenuOption,
|
|
90
|
+
{
|
|
91
|
+
as: "button",
|
|
92
|
+
type: "button",
|
|
93
|
+
button: true,
|
|
94
|
+
onClick: () => {
|
|
95
|
+
this.props.navigate("/settings");
|
|
96
|
+
},
|
|
97
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Settings" })
|
|
98
|
+
}
|
|
99
|
+
) }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
100
|
+
MainMenuOption,
|
|
101
|
+
{
|
|
102
|
+
as: "button",
|
|
103
|
+
type: "button",
|
|
104
|
+
button: true,
|
|
105
|
+
isOpened: isSettingsActive,
|
|
106
|
+
onClick: this.toggleSettings,
|
|
107
|
+
isSettings: true,
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Settings" }),
|
|
110
|
+
/* @__PURE__ */ jsx(ExpandArrow, { isOpened: isSettingsActive })
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
) }),
|
|
114
|
+
/* @__PURE__ */ jsx(MainMenuOption, { children: /* @__PURE__ */ jsx(Button, { negative: true, onClick: () => logoutUser(), children: "log out" }) })
|
|
115
|
+
] }),
|
|
116
|
+
!isAdmin && /* @__PURE__ */ jsx(Settings, { children: /* @__PURE__ */ jsx(Collapse, { isOpened: isSettingsActive, children: /* @__PURE__ */ jsxs(SettingsOptions, { children: [
|
|
117
|
+
/* @__PURE__ */ jsx(
|
|
118
|
+
SettingsOption,
|
|
119
|
+
{
|
|
120
|
+
isActive: this.checkActive("profile-and-privacy"),
|
|
121
|
+
onClick: () => {
|
|
122
|
+
window.location.replace(`${platformUrlForUserMenu}/settings/profile-and-privacy`);
|
|
123
|
+
},
|
|
124
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Profile & Privacy" })
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
/* @__PURE__ */ jsx(
|
|
128
|
+
SettingsOption,
|
|
129
|
+
{
|
|
130
|
+
isActive: this.checkActive("liquid-address"),
|
|
131
|
+
onClick: () => {
|
|
132
|
+
window.location.replace(`${platformUrlForUserMenu}/settings/liquid-address`);
|
|
133
|
+
},
|
|
134
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Liquid Addresses" })
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ jsx(
|
|
138
|
+
SettingsOption,
|
|
139
|
+
{
|
|
140
|
+
isActive: this.checkActive("investment-eligibility"),
|
|
141
|
+
onClick: () => {
|
|
142
|
+
window.location.replace(`${platformUrlForUserMenu}/settings/investment-eligibility`);
|
|
143
|
+
},
|
|
144
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Investment eligibility" })
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
] }) }) })
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
!isAdmin && /* @__PURE__ */ jsx(Collapse, { isOpened: isScrollDown, hasNestedCollapse: true, children: /* @__PURE__ */ jsxs(SettingsOptions, { children: [
|
|
152
|
+
/* @__PURE__ */ jsx(
|
|
153
|
+
SettingsOption,
|
|
154
|
+
{
|
|
155
|
+
scrollDown: true,
|
|
156
|
+
isActive: this.checkActive("profile-and-privacy"),
|
|
157
|
+
onClick: () => {
|
|
158
|
+
window.location.replace(`${platformUrlForUserMenu}/settings/profile-and-privacy`);
|
|
159
|
+
},
|
|
160
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Profile & Privacy" })
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
SettingsOption,
|
|
165
|
+
{
|
|
166
|
+
scrollDown: true,
|
|
167
|
+
isActive: this.checkActive("liquid-address"),
|
|
168
|
+
onClick: () => {
|
|
169
|
+
window.location.replace(`${platformUrlForUserMenu}/settings/liquid-address`);
|
|
170
|
+
},
|
|
171
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Liquid Addresses" })
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ jsx(
|
|
175
|
+
SettingsOption,
|
|
176
|
+
{
|
|
177
|
+
scrollDown: true,
|
|
178
|
+
isActive: this.checkActive("investment-eligibility"),
|
|
179
|
+
onClick: () => {
|
|
180
|
+
window.location.replace(`${platformUrlForUserMenu}/settings/investment-eligibility`);
|
|
181
|
+
},
|
|
182
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "Investment eligiblity" })
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
/* @__PURE__ */ jsx(
|
|
186
|
+
SettingsOption,
|
|
187
|
+
{
|
|
188
|
+
scrollDown: true,
|
|
189
|
+
onClick: () => {
|
|
190
|
+
this.setScrollUp();
|
|
191
|
+
},
|
|
192
|
+
children: /* @__PURE__ */ jsx("span", { style: spanStyleForMenu, children: "More" })
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] }) })
|
|
196
|
+
] }) })
|
|
197
|
+
] });
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
MainMenuClass.propTypes = {
|
|
201
|
+
isMenuActive: PropTypes.bool.isRequired,
|
|
202
|
+
admin: PropTypes.bool
|
|
203
|
+
};
|
|
204
|
+
const MainMenu = withRouter(MainMenuClass);
|
|
205
|
+
var stdin_default = MainMenu;
|
|
206
|
+
export {
|
|
207
|
+
MainMenu,
|
|
208
|
+
MainMenuClass,
|
|
209
|
+
stdin_default as default
|
|
210
|
+
};
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import rwd from "../../styles/rwd.js";
|
|
3
|
+
const StyledMainMenu = styled.div.withConfig({
|
|
4
|
+
shouldForwardProp: (props) => !["admin"].includes(props)
|
|
5
|
+
})`
|
|
6
|
+
display: none;
|
|
7
|
+
z-index: 10;
|
|
8
|
+
background: white;
|
|
9
|
+
|
|
10
|
+
${rwd.Medium`
|
|
11
|
+
display: block;
|
|
12
|
+
width: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 100%;
|
|
15
|
+
left: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
margin-top: -1px;
|
|
18
|
+
border-bottom: 1px solid #e1e1e1;
|
|
19
|
+
// box-shadow: inset 0 -1px 0 0 #e1e1e1;
|
|
20
|
+
|
|
21
|
+
${(props) => props.admin && `
|
|
22
|
+
padding-left: 100px;
|
|
23
|
+
`}
|
|
24
|
+
`}
|
|
25
|
+
|
|
26
|
+
@media screen and (max-width: 991px) {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const MainMenuContainer = styled.div`
|
|
31
|
+
display: block;
|
|
32
|
+
background-color: ${(props) => props.theme.cWhite};
|
|
33
|
+
border-top: 1px solid #e1e1e1;
|
|
34
|
+
/* box-shadow: inset 0 -1px 0 0 #e1e1e1; */
|
|
35
|
+
`;
|
|
36
|
+
const MainMenuOptions = styled.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
height: 100%;
|
|
40
|
+
|
|
41
|
+
${rwd.Medium`
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
height: 92px;
|
|
44
|
+
`}
|
|
45
|
+
`;
|
|
46
|
+
const MainMenuOption = styled.div.withConfig({
|
|
47
|
+
shouldForwardProp: (props) => !["isSettings", "isDashboard", "isOpened", "isVenture", "nameOption", "noBorder", "button", ""].includes(props)
|
|
48
|
+
})`
|
|
49
|
+
background-color: white !important;
|
|
50
|
+
position: relative;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-basis: 33.3333%;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
width: 100%;
|
|
56
|
+
padding: 4px 16px;
|
|
57
|
+
outline: none;
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
${({ isSettings }) => isSettings && css`
|
|
64
|
+
border-right: none !important;
|
|
65
|
+
`}
|
|
66
|
+
|
|
67
|
+
& {
|
|
68
|
+
border-top: 1px solid #e1e1e1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
${rwd.Medium`
|
|
72
|
+
padding: 10px;
|
|
73
|
+
border-bottom: 1px solid #e1e1e1;
|
|
74
|
+
margin-bottom: -1px;
|
|
75
|
+
transition: border-bottom-color .2s;
|
|
76
|
+
|
|
77
|
+
& {
|
|
78
|
+
border-top: 0;
|
|
79
|
+
border-left: 1px solid #e1e1e1;
|
|
80
|
+
|
|
81
|
+
${({ isDashboard }) => isDashboard && css`
|
|
82
|
+
border-right: 0;
|
|
83
|
+
`}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
${(props) => props.isOpened && `
|
|
87
|
+
border-bottom-color: transparent;
|
|
88
|
+
`};
|
|
89
|
+
|
|
90
|
+
${({ isVenture }) => isVenture && css`
|
|
91
|
+
flex-basis: 66.6%;
|
|
92
|
+
`}
|
|
93
|
+
|
|
94
|
+
${(props) => props.nameOption && `
|
|
95
|
+
display: flex;
|
|
96
|
+
`}
|
|
97
|
+
|
|
98
|
+
`}
|
|
99
|
+
|
|
100
|
+
${(props) => props.nameOption && `
|
|
101
|
+
display: none;
|
|
102
|
+
`}
|
|
103
|
+
|
|
104
|
+
${rwd.Large`
|
|
105
|
+
|
|
106
|
+
${({ isVenture }) => isVenture && css`
|
|
107
|
+
flex-basis: 75.5%;
|
|
108
|
+
`}
|
|
109
|
+
|
|
110
|
+
${(props) => props.nameOption && `
|
|
111
|
+
display: flex;
|
|
112
|
+
`};
|
|
113
|
+
`}
|
|
114
|
+
|
|
115
|
+
${(props) => props.noBorder && `
|
|
116
|
+
border: none !important;
|
|
117
|
+
`}
|
|
118
|
+
|
|
119
|
+
${(props) => props.button && `
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
transition: color .2s;
|
|
122
|
+
outline: 0;
|
|
123
|
+
|
|
124
|
+
& > span {
|
|
125
|
+
display: inline-block;
|
|
126
|
+
vertical-align: middle;
|
|
127
|
+
text-transform: uppercase;
|
|
128
|
+
font-size: 11px;
|
|
129
|
+
line-height: 20px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&:hover {
|
|
133
|
+
color: ${props.theme.cPrimary};
|
|
134
|
+
}
|
|
135
|
+
`}
|
|
136
|
+
|
|
137
|
+
span {
|
|
138
|
+
-webkit-font-smoothing: antialiased;
|
|
139
|
+
-moz-osx-font-smoothing: grayscale;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
button {
|
|
143
|
+
color: #ee220d;
|
|
144
|
+
border-color: #ee220d;
|
|
145
|
+
background-color: white;
|
|
146
|
+
|
|
147
|
+
&:hover {
|
|
148
|
+
color: #be1b09;
|
|
149
|
+
border-color: #be1b09;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
styled.h3`
|
|
154
|
+
font-weight: 600;
|
|
155
|
+
font-size: 16px;
|
|
156
|
+
line-height: 24px;
|
|
157
|
+
text-transform: initial;
|
|
158
|
+
margin: 0;
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
color: initial;
|
|
162
|
+
}
|
|
163
|
+
`;
|
|
164
|
+
const ExpandArrow = styled.i.withConfig({
|
|
165
|
+
shouldForwardProp: (props) => !["isOpened"].includes(props)
|
|
166
|
+
}).attrs({
|
|
167
|
+
className: "ion ion-ios-arrow-down"
|
|
168
|
+
})`
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 50%;
|
|
171
|
+
right: 32px;
|
|
172
|
+
display: block;
|
|
173
|
+
margin-top: -8px;
|
|
174
|
+
transition: 0.3s transform;
|
|
175
|
+
transform: rotate(0);
|
|
176
|
+
text-align: center;
|
|
177
|
+
font-size: 16px;
|
|
178
|
+
line-height: 16px;
|
|
179
|
+
height: 16px;
|
|
180
|
+
|
|
181
|
+
${(props) => props.isOpened && `
|
|
182
|
+
transform: rotate(180deg);
|
|
183
|
+
`}
|
|
184
|
+
|
|
185
|
+
${rwd.Medium`
|
|
186
|
+
display: inline-block;
|
|
187
|
+
vertical-align: middle;
|
|
188
|
+
margin-left: 20px;
|
|
189
|
+
margin-top: 0;
|
|
190
|
+
position: relative;
|
|
191
|
+
top: 0;
|
|
192
|
+
right: auto;
|
|
193
|
+
`}
|
|
194
|
+
`;
|
|
195
|
+
const Settings = styled.div`
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
`;
|
|
198
|
+
const SettingsOptions = styled.div`
|
|
199
|
+
display: flex;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
height: 100%;
|
|
202
|
+
|
|
203
|
+
${rwd.Medium`
|
|
204
|
+
flex-wrap: wrap;
|
|
205
|
+
padding: 27px 64px;
|
|
206
|
+
flex-direction: row;
|
|
207
|
+
height: auto;
|
|
208
|
+
`}
|
|
209
|
+
|
|
210
|
+
button {
|
|
211
|
+
border: none;
|
|
212
|
+
-webkit-font-smoothing: antialiased;
|
|
213
|
+
-moz-osx-font-smoothing: grayscale;
|
|
214
|
+
padding: 0;
|
|
215
|
+
}
|
|
216
|
+
`;
|
|
217
|
+
const SettingsOption = styled.button.withConfig({
|
|
218
|
+
shouldForwardProp: (props) => !["back", "isActive", "scrollDown"].includes(props)
|
|
219
|
+
})`
|
|
220
|
+
position: relative;
|
|
221
|
+
flex-grow: 1;
|
|
222
|
+
cursor: pointer;
|
|
223
|
+
transition: font-weight 0.2s;
|
|
224
|
+
color: ${(props) => props.theme.cWhite};
|
|
225
|
+
background-color: ${(props) => props.theme.cWarning};
|
|
226
|
+
border-top: 1px solid ${(props) => props.theme.cWarningDark};
|
|
227
|
+
outline: 0;
|
|
228
|
+
|
|
229
|
+
${(props) => props.back && `
|
|
230
|
+
color: ${props.theme.cBlack};
|
|
231
|
+
background-color: transparent;
|
|
232
|
+
border-top: 0;
|
|
233
|
+
|
|
234
|
+
${props.isActive && `
|
|
235
|
+
color: ${props.theme.cBlack};
|
|
236
|
+
background-color: transparent;
|
|
237
|
+
`}
|
|
238
|
+
|
|
239
|
+
${rwd.Medium`
|
|
240
|
+
background-color: transparent;
|
|
241
|
+
|
|
242
|
+
${props.isActive && `
|
|
243
|
+
background-color: transparent;
|
|
244
|
+
`}
|
|
245
|
+
`}
|
|
246
|
+
`};
|
|
247
|
+
|
|
248
|
+
${rwd.Medium`
|
|
249
|
+
flex-grow: 0;
|
|
250
|
+
text-align: left;
|
|
251
|
+
flex-basis: 33.3333%;
|
|
252
|
+
color: ${(props) => props.theme.cBlack};
|
|
253
|
+
background-color: transparent;
|
|
254
|
+
border-top: 0;
|
|
255
|
+
`}
|
|
256
|
+
|
|
257
|
+
${rwd.Large`
|
|
258
|
+
flex-basis: 25%;
|
|
259
|
+
|
|
260
|
+
${(props) => props.scrollDown && `
|
|
261
|
+
flex-basis: 20%;
|
|
262
|
+
`}
|
|
263
|
+
`}
|
|
264
|
+
|
|
265
|
+
& > span {
|
|
266
|
+
position: relative;
|
|
267
|
+
display: inline-block;
|
|
268
|
+
font-size: 11px;
|
|
269
|
+
line-height: 20px;
|
|
270
|
+
text-transform: uppercase;
|
|
271
|
+
transition: font-weight 0.2s;
|
|
272
|
+
|
|
273
|
+
${rwd.Medium`
|
|
274
|
+
padding: 7px 0;
|
|
275
|
+
margin: 3px 0;
|
|
276
|
+
`}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
${(props) => props.isActive && `
|
|
280
|
+
background-color: ${props.theme.cPrimary};
|
|
281
|
+
|
|
282
|
+
& > span {
|
|
283
|
+
font-weight: bold;
|
|
284
|
+
}
|
|
285
|
+
`}
|
|
286
|
+
|
|
287
|
+
${rwd.Medium`
|
|
288
|
+
${(props) => props.isActive && `
|
|
289
|
+
background-color: transparent;
|
|
290
|
+
|
|
291
|
+
& > span {
|
|
292
|
+
&:before {
|
|
293
|
+
content: '';
|
|
294
|
+
display: block;
|
|
295
|
+
height: 4px;
|
|
296
|
+
width: 100%;
|
|
297
|
+
position: absolute;
|
|
298
|
+
bottom: 0;
|
|
299
|
+
left: 0;
|
|
300
|
+
background-color: ${props.theme.cPrimary};
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
`}
|
|
304
|
+
`}
|
|
305
|
+
|
|
306
|
+
&:hover {
|
|
307
|
+
& > span {
|
|
308
|
+
font-weight: bold;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
`;
|
|
312
|
+
styled.div.withConfig({
|
|
313
|
+
shouldForwardProp: (props) => !["isActive"].includes(props)
|
|
314
|
+
})`
|
|
315
|
+
display: block;
|
|
316
|
+
visibility: hidden;
|
|
317
|
+
opacity: 0;
|
|
318
|
+
z-index: 5;
|
|
319
|
+
position: absolute;
|
|
320
|
+
top: 64px;
|
|
321
|
+
left: 0;
|
|
322
|
+
width: 100%;
|
|
323
|
+
height: calc(100% - 64px);
|
|
324
|
+
background-color: ${(props) => props.theme.cWhite};
|
|
325
|
+
border-top: 1px solid #e1e1e1;
|
|
326
|
+
transition:
|
|
327
|
+
opacity 0.2s,
|
|
328
|
+
visibility 0.2s;
|
|
329
|
+
|
|
330
|
+
${(props) => props.isActive && `
|
|
331
|
+
visibility: visible;
|
|
332
|
+
opacity: 1;
|
|
333
|
+
`}
|
|
334
|
+
`;
|
|
335
|
+
styled.div`
|
|
336
|
+
position: relative;
|
|
337
|
+
top: -1px;
|
|
338
|
+
right: -5px;
|
|
339
|
+
width: 16px;
|
|
340
|
+
height: 16px;
|
|
341
|
+
color: #ffffff;
|
|
342
|
+
font-size: 11px;
|
|
343
|
+
font-weight: 700;
|
|
344
|
+
line-height: 16px;
|
|
345
|
+
text-align: center;
|
|
346
|
+
background-color: #ee220d;
|
|
347
|
+
border-radius: 50%;
|
|
348
|
+
|
|
349
|
+
@media screen and (max-width: 991px) {
|
|
350
|
+
display: none;
|
|
351
|
+
}
|
|
352
|
+
`;
|
|
353
|
+
export {
|
|
354
|
+
ExpandArrow,
|
|
355
|
+
MainMenuContainer,
|
|
356
|
+
MainMenuOption,
|
|
357
|
+
MainMenuOptions,
|
|
358
|
+
Settings,
|
|
359
|
+
SettingsOption,
|
|
360
|
+
SettingsOptions,
|
|
361
|
+
StyledMainMenu
|
|
362
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const MenuNav = styled.nav.withConfig({
|
|
3
|
+
shouldForwardProp: (props) => !["mobile"].includes(props)
|
|
4
|
+
})`
|
|
5
|
+
display: inline-block;
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
|
|
8
|
+
ul {
|
|
9
|
+
display: block;
|
|
10
|
+
list-style: none;
|
|
11
|
+
font-size: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
margin: 0 -18px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
li {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0 18px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
button,
|
|
24
|
+
a {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: block;
|
|
27
|
+
font-size: 11px;
|
|
28
|
+
line-height: 16px;
|
|
29
|
+
letter-spacing: 2px;
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
padding: 2px 0;
|
|
32
|
+
border: 0;
|
|
33
|
+
margin: 0;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
opacity: 0.68;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
${(props) => props.mobile && `
|
|
44
|
+
display: block;
|
|
45
|
+
|
|
46
|
+
ul {
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
li {
|
|
52
|
+
display: block;
|
|
53
|
+
text-align: center;
|
|
54
|
+
margin: 0;
|
|
55
|
+
padding: 18px 16px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
a {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
}
|
|
61
|
+
`}
|
|
62
|
+
`;
|
|
63
|
+
export {
|
|
64
|
+
MenuNav,
|
|
65
|
+
MenuNav as default
|
|
66
|
+
};
|