@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,119 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Icon as Icon$1 } from "../Icon/Icon.style.js";
|
|
3
|
+
import { ToDoTaskState } from "./ToDoList.js";
|
|
4
|
+
import { colors } from "../../styles/colors.js";
|
|
5
|
+
const Container = styled.div.withConfig({
|
|
6
|
+
shouldForwardProp: (props) => !["disabled", "link"].includes(props)
|
|
7
|
+
})`
|
|
8
|
+
display: flex;
|
|
9
|
+
height: 56px;
|
|
10
|
+
align-items: center;
|
|
11
|
+
|
|
12
|
+
${(props) => props.disabled && `
|
|
13
|
+
opacity:0.5;
|
|
14
|
+
cursor: context-menu;
|
|
15
|
+
`}
|
|
16
|
+
${(props) => props.link && `
|
|
17
|
+
cursor:pointer;
|
|
18
|
+
`}
|
|
19
|
+
`;
|
|
20
|
+
const Content = styled.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
`;
|
|
24
|
+
const TitleContainer = styled.div`
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
`;
|
|
28
|
+
const Title = styled.div.withConfig({
|
|
29
|
+
shouldForwardProp: (props) => !["state", "link"].includes(props)
|
|
30
|
+
})`
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
line-height: 24px;
|
|
34
|
+
letter-spacing: 0.6px;
|
|
35
|
+
text-align: left;
|
|
36
|
+
|
|
37
|
+
${(props) => (props.state === ToDoTaskState.IN_PROGRESS || props.state === ToDoTaskState.APPROVED || props.state === ToDoTaskState.NOT_AVAILABLE) && `
|
|
38
|
+
opacity: 0.3;
|
|
39
|
+
`}
|
|
40
|
+
|
|
41
|
+
${(props) => props.link && `
|
|
42
|
+
opacity: 1;
|
|
43
|
+
`}
|
|
44
|
+
`;
|
|
45
|
+
styled.div`
|
|
46
|
+
position: relative;
|
|
47
|
+
right: -5px;
|
|
48
|
+
width: 16px;
|
|
49
|
+
height: 16px;
|
|
50
|
+
color: #ffffff;
|
|
51
|
+
font-size: 11px;
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
line-height: 16px;
|
|
54
|
+
text-align: center;
|
|
55
|
+
background-color: #ee220d;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
padding-left: 0;
|
|
58
|
+
`;
|
|
59
|
+
const State = styled.p`
|
|
60
|
+
margin-top: 3px;
|
|
61
|
+
font-size: 11px;
|
|
62
|
+
line-height: 16px;
|
|
63
|
+
letter-spacing: 0.4px;
|
|
64
|
+
font-weight: 300;
|
|
65
|
+
text-align: left;
|
|
66
|
+
opacity: 0.6;
|
|
67
|
+
`;
|
|
68
|
+
const IconContainer = styled.div`
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
width: 23px;
|
|
71
|
+
text-align: center;
|
|
72
|
+
/* margin: auto 0 auto auto; */
|
|
73
|
+
|
|
74
|
+
margin-right: 10px;
|
|
75
|
+
position: relative;
|
|
76
|
+
top: -10px;
|
|
77
|
+
`;
|
|
78
|
+
styled.div`
|
|
79
|
+
max-width: 240px;
|
|
80
|
+
text-align: left;
|
|
81
|
+
`;
|
|
82
|
+
const Icon = styled(Icon$1).withConfig({
|
|
83
|
+
shouldForwardProp: (props) => !["state"].includes(props)
|
|
84
|
+
})`
|
|
85
|
+
font-size: 20px;
|
|
86
|
+
width: 18px;
|
|
87
|
+
text-align: center;
|
|
88
|
+
|
|
89
|
+
${(props) => props.state === ToDoTaskState.APPROVED && `
|
|
90
|
+
font-size: 13px;
|
|
91
|
+
color: ${colors.freshGreen};
|
|
92
|
+
`}
|
|
93
|
+
|
|
94
|
+
${(props) => props.state === ToDoTaskState.REJECTED && `
|
|
95
|
+
color: ${colors.orangishRed};
|
|
96
|
+
`}
|
|
97
|
+
|
|
98
|
+
${(props) => props.state === ToDoTaskState.IN_PROGRESS && `
|
|
99
|
+
opacity: 0.3;
|
|
100
|
+
`}
|
|
101
|
+
|
|
102
|
+
${(props) => props.state === ToDoTaskState.SKIPPED && `
|
|
103
|
+
font-size: 13px;
|
|
104
|
+
`}
|
|
105
|
+
|
|
106
|
+
${(props) => props.state === ToDoTaskState.NOT_AVAILABLE && `
|
|
107
|
+
font-size: 13px;
|
|
108
|
+
opacity: 0.3;
|
|
109
|
+
`}
|
|
110
|
+
`;
|
|
111
|
+
export {
|
|
112
|
+
Container,
|
|
113
|
+
Content,
|
|
114
|
+
Icon,
|
|
115
|
+
IconContainer,
|
|
116
|
+
State,
|
|
117
|
+
Title,
|
|
118
|
+
TitleContainer
|
|
119
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import stdin_default from "../BasicTable/BasicTable.js";
|
|
5
|
+
import { Container, Toggle, DetailsCollapse } from "./TransactionDetails.styles.js";
|
|
6
|
+
const TransactionDetails = (props) => {
|
|
7
|
+
const { data } = props;
|
|
8
|
+
const [showDetails, setShowDetails] = useState(false);
|
|
9
|
+
const toggleDetails = () => {
|
|
10
|
+
setShowDetails(!showDetails);
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
13
|
+
data.length > 0 ? /* @__PURE__ */ jsx(Toggle, { onClick: toggleDetails, children: showDetails ? "hide details" : "view details" }) : /* @__PURE__ */ jsx("br", {}),
|
|
14
|
+
/* @__PURE__ */ jsx(DetailsCollapse, { isOpened: showDetails, children: /* @__PURE__ */ jsx(stdin_default, { data }) })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
TransactionDetails.propTypes = {
|
|
18
|
+
data: PropTypes.arrayOf(
|
|
19
|
+
PropTypes.shape({
|
|
20
|
+
label: PropTypes.string,
|
|
21
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
22
|
+
})
|
|
23
|
+
).isRequired
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
TransactionDetails
|
|
27
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Collapse } from "react-collapse";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const Container = styled.div`
|
|
5
|
+
display: block;
|
|
6
|
+
position: relative;
|
|
7
|
+
text-align: center;
|
|
8
|
+
padding-top: 8px;
|
|
9
|
+
`;
|
|
10
|
+
const Toggle = styled.button`
|
|
11
|
+
display: inline-block;
|
|
12
|
+
font-size: 11px;
|
|
13
|
+
line-height: 16px;
|
|
14
|
+
color: ${() => theme.cGrey2};
|
|
15
|
+
transition: color 0.2s;
|
|
16
|
+
outline: 0;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
color: ${() => theme.cPrimary};
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
const DetailsCollapse = styled(Collapse).withConfig({
|
|
23
|
+
shouldForwardProp: (props) => !["isOpened"].includes(props)
|
|
24
|
+
})`
|
|
25
|
+
opacity: 0;
|
|
26
|
+
transition: opacity 0.2s;
|
|
27
|
+
margin-top: 12px;
|
|
28
|
+
|
|
29
|
+
${(props) => props.isOpened && `
|
|
30
|
+
opacity: 1;
|
|
31
|
+
border-bottom: 1px solid ${theme.cLightGrey};
|
|
32
|
+
`}
|
|
33
|
+
`;
|
|
34
|
+
export {
|
|
35
|
+
Container,
|
|
36
|
+
DetailsCollapse,
|
|
37
|
+
Toggle
|
|
38
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Container, Account, Name, Value, TransferIcon } from "./TransactionInfo.styles.js";
|
|
5
|
+
const TransactionInfo = ({
|
|
6
|
+
value1 = "",
|
|
7
|
+
unit1 = "",
|
|
8
|
+
name1 = "",
|
|
9
|
+
owner1 = "",
|
|
10
|
+
value2 = "",
|
|
11
|
+
unit2 = "",
|
|
12
|
+
name2 = "",
|
|
13
|
+
owner2 = "",
|
|
14
|
+
green = false,
|
|
15
|
+
red = false
|
|
16
|
+
}) => /* @__PURE__ */ jsxs(Container, { children: [
|
|
17
|
+
/* @__PURE__ */ jsxs(Account, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Name, { green, red, children: `${name1} ${owner1}` }),
|
|
19
|
+
/* @__PURE__ */ jsx(Value, { green, red, children: `${unit1} ${value1}` })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ jsx(TransferIcon, {}),
|
|
22
|
+
/* @__PURE__ */ jsxs(Account, { children: [
|
|
23
|
+
/* @__PURE__ */ jsx(Name, { green, red, children: `${name2} ${owner2}` }),
|
|
24
|
+
/* @__PURE__ */ jsx(Value, { green, red, children: `${unit2} ${value2}` })
|
|
25
|
+
] })
|
|
26
|
+
] });
|
|
27
|
+
TransactionInfo.propTypes = {
|
|
28
|
+
value1: PropTypes.string,
|
|
29
|
+
unit1: PropTypes.string,
|
|
30
|
+
name1: PropTypes.string,
|
|
31
|
+
owner1: PropTypes.string,
|
|
32
|
+
value2: PropTypes.string,
|
|
33
|
+
unit2: PropTypes.string,
|
|
34
|
+
name2: PropTypes.string,
|
|
35
|
+
owner2: PropTypes.string,
|
|
36
|
+
green: PropTypes.bool,
|
|
37
|
+
red: PropTypes.bool
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
TransactionInfo
|
|
41
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import { colors } from "../../styles/colors.js";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const Container = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
`;
|
|
8
|
+
const Account = styled.div``;
|
|
9
|
+
const TransferIcon = styled.div.attrs({
|
|
10
|
+
className: "ion"
|
|
11
|
+
})`
|
|
12
|
+
width: 16px;
|
|
13
|
+
height: 19px;
|
|
14
|
+
position: relative;
|
|
15
|
+
margin: auto;
|
|
16
|
+
|
|
17
|
+
&::before,
|
|
18
|
+
&::after {
|
|
19
|
+
font-size: 28px;
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::before {
|
|
25
|
+
content: '\f117';
|
|
26
|
+
color: ${() => theme.cSuccess};
|
|
27
|
+
top: -7px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&::after {
|
|
31
|
+
content: '\f119';
|
|
32
|
+
color: ${() => theme.cWarning};
|
|
33
|
+
top: 2px;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
const Value = styled.div.withConfig({
|
|
37
|
+
shouldForwardProp: (props) => !["green", "red"].includes(props)
|
|
38
|
+
})`
|
|
39
|
+
font-size: 22px;
|
|
40
|
+
font-weight: 300;
|
|
41
|
+
line-height: 28px;
|
|
42
|
+
letter-spacing: 0.8px;
|
|
43
|
+
|
|
44
|
+
${(props) => props.green && css`
|
|
45
|
+
color: ${colors.progressGreen};
|
|
46
|
+
`}
|
|
47
|
+
|
|
48
|
+
${(props) => props.red && css`
|
|
49
|
+
color: ${colors.orangishRed};
|
|
50
|
+
`}
|
|
51
|
+
`;
|
|
52
|
+
const Name = styled.div.withConfig({
|
|
53
|
+
shouldForwardProp: (props) => !["green", "red"].includes(props)
|
|
54
|
+
})`
|
|
55
|
+
font-size: 13px;
|
|
56
|
+
line-height: 16px;
|
|
57
|
+
letter-spacing: 0.4px;
|
|
58
|
+
font-style: italic;
|
|
59
|
+
margin-bottom: 3px;
|
|
60
|
+
|
|
61
|
+
${(props) => props.green && css`
|
|
62
|
+
color: ${colors.progressGreen};
|
|
63
|
+
`}
|
|
64
|
+
|
|
65
|
+
${(props) => props.red && css`
|
|
66
|
+
color: ${colors.orangishRed};
|
|
67
|
+
`}
|
|
68
|
+
`;
|
|
69
|
+
export {
|
|
70
|
+
Account,
|
|
71
|
+
Container,
|
|
72
|
+
Name,
|
|
73
|
+
TransferIcon,
|
|
74
|
+
Value
|
|
75
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Modal } from "../Modal/Modal.js";
|
|
5
|
+
import { Text } from "../Text/Text.styles.js";
|
|
6
|
+
import { Row, Column } from "../Grid/Grid.styles.js";
|
|
7
|
+
import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
|
|
8
|
+
import { FormField, FormError } from "../Form/Form.styles.js";
|
|
9
|
+
import { Button } from "../Button/Button.styles.js";
|
|
10
|
+
import { Formik } from "formik";
|
|
11
|
+
import * as Yup from "yup";
|
|
12
|
+
import stdin_default$2 from "../Form/Form.js";
|
|
13
|
+
import { Input } from "../Input/Input.js";
|
|
14
|
+
import { useCooldown } from "../../utils/customHooks.js";
|
|
15
|
+
import "../../styles/rwd.js";
|
|
16
|
+
import { ModalInner } from "../Modal/Modal.styles.js";
|
|
17
|
+
import "react-qr-code";
|
|
18
|
+
import "../CryptoAddress/CryptoAddress.js";
|
|
19
|
+
import "../StepController/StepController.js";
|
|
20
|
+
import "../StepController/StepControllerContext.js";
|
|
21
|
+
import "../Input/OtpInput.js";
|
|
22
|
+
import "../../context/AuthContext.js";
|
|
23
|
+
import stdin_default$1 from "../2FA/Sucess2FA.js";
|
|
24
|
+
import "js-cookie";
|
|
25
|
+
import "../../model/axios.js";
|
|
26
|
+
import "../Layout/Layout.js";
|
|
27
|
+
import "../LoginModal/LoginModal.js";
|
|
28
|
+
import "../ForgotPasswordModal/ForgotPasswordModal.js";
|
|
29
|
+
import "../2FA/main-flow.js";
|
|
30
|
+
import { emailRegex } from "../../constants/globalVariables.js";
|
|
31
|
+
const renderSuccessModal = (continueUrl) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
32
|
+
stdin_default$1,
|
|
33
|
+
{
|
|
34
|
+
onClick: () => {
|
|
35
|
+
window.open(continueUrl, "_self");
|
|
36
|
+
},
|
|
37
|
+
textRight: "We have successfully verified your email!"
|
|
38
|
+
}
|
|
39
|
+
) });
|
|
40
|
+
const RenderErrorModal = (props) => {
|
|
41
|
+
const { error, isActionLoading, popupError, onResend } = props;
|
|
42
|
+
const { isDisabled, secondsRemaining, startCooldown } = useCooldown(60);
|
|
43
|
+
const userEmail = error && error.email;
|
|
44
|
+
React__default.useEffect(() => {
|
|
45
|
+
if (error?.email && !isDisabled) {
|
|
46
|
+
startCooldown();
|
|
47
|
+
onResend({ email: error.email });
|
|
48
|
+
}
|
|
49
|
+
}, [error]);
|
|
50
|
+
const validationSchema = Yup.object().shape({
|
|
51
|
+
email: Yup.string().matches(emailRegex, "Oops, that's not a valid address").required("Oops, this can‘t be blank")
|
|
52
|
+
});
|
|
53
|
+
return /* @__PURE__ */ jsxs(Row, { children: [
|
|
54
|
+
/* @__PURE__ */ jsxs(Column, { part: 8, children: [
|
|
55
|
+
/* @__PURE__ */ jsx(ModalInner, { modalTop: true, children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
56
|
+
/* @__PURE__ */ jsx("h3", { children: "Oops..." }),
|
|
57
|
+
/* @__PURE__ */ jsx("p", { children: error?.message || "Something went wrong." })
|
|
58
|
+
] }) }),
|
|
59
|
+
/* @__PURE__ */ jsx(ModalInner, { modalBot: true })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsx(Column, { part: 8, children: /* @__PURE__ */ jsx(ModalInner, { children: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
62
|
+
Formik,
|
|
63
|
+
{
|
|
64
|
+
initialValues: {
|
|
65
|
+
email: userEmail || ""
|
|
66
|
+
},
|
|
67
|
+
validationSchema,
|
|
68
|
+
validateOnBlur: true,
|
|
69
|
+
validateOnChange: true,
|
|
70
|
+
onSubmit: (values) => {
|
|
71
|
+
startCooldown();
|
|
72
|
+
onResend(values);
|
|
73
|
+
},
|
|
74
|
+
children: ({ values, errors, touched, handleBlur, handleChange }) => {
|
|
75
|
+
const submitDisabled = !values.email || !!errors.email || isDisabled || isActionLoading === "resend";
|
|
76
|
+
return /* @__PURE__ */ jsxs(stdin_default$2, { children: [
|
|
77
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPadding: true, children: /* @__PURE__ */ jsxs(FormField, { children: [
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
|
+
Input,
|
|
80
|
+
{
|
|
81
|
+
id: "verify-email",
|
|
82
|
+
name: "email",
|
|
83
|
+
type: "email",
|
|
84
|
+
label: "Your email",
|
|
85
|
+
value: values.email,
|
|
86
|
+
onChange: handleChange,
|
|
87
|
+
onBlur: handleBlur,
|
|
88
|
+
error: !!errors.email,
|
|
89
|
+
touched: !!touched.email
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ jsx(FormError, { show: errors.email && touched.email, children: errors.email })
|
|
93
|
+
] }) }),
|
|
94
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { noPaddingBottom: true, noPaddingHorizontal: true, children: /* @__PURE__ */ jsx(Button, { type: "submit", id: "verify-email-submit-btn", disabled: submitDisabled, children: isActionLoading === "resend" ? "Resending email" : "Resend email" }) }),
|
|
95
|
+
/* @__PURE__ */ jsx(ComponentWrapper, { paddingVeticalHalf: true, noPaddingHorizontal: true, children: /* @__PURE__ */ jsx(FormError, { show: popupError.popup === "resend", children: popupError.message }) }),
|
|
96
|
+
isDisabled && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingVertical: true, noPaddingHorizontal: true, children: /* @__PURE__ */ jsx(FormError, { show: isDisabled, children: `You can try again in ${secondsRemaining} seconds` }) })
|
|
97
|
+
] });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
) }) }) })
|
|
101
|
+
] });
|
|
102
|
+
};
|
|
103
|
+
const VerifyEmailModal = ({ id, isModalOpen, onModalClose, continueUrl, isSuccess, ...props }) => {
|
|
104
|
+
return /* @__PURE__ */ jsx(
|
|
105
|
+
Modal,
|
|
106
|
+
{
|
|
107
|
+
isOpen: isModalOpen,
|
|
108
|
+
onClose: onModalClose,
|
|
109
|
+
id,
|
|
110
|
+
children: isSuccess ? renderSuccessModal(continueUrl) : RenderErrorModal(props)
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
};
|
|
114
|
+
VerifyEmailModal.propTypes = {
|
|
115
|
+
isModalOpen: PropTypes.bool.isRequired,
|
|
116
|
+
onModalClose: PropTypes.func.isRequired
|
|
117
|
+
};
|
|
118
|
+
var stdin_default = VerifyEmailModal;
|
|
119
|
+
export {
|
|
120
|
+
VerifyEmailModal,
|
|
121
|
+
stdin_default as default
|
|
122
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
import dropdown from "../../static/images/arrow-down-black.svg.js";
|
|
3
|
+
import { rwdMax } from "../../styles/rwd.js";
|
|
4
|
+
const Breakdown = styled.div.withConfig({
|
|
5
|
+
shouldForwardProp: (props) => ![
|
|
6
|
+
"fontSize",
|
|
7
|
+
"withWordWrap",
|
|
8
|
+
"is101",
|
|
9
|
+
"mobile",
|
|
10
|
+
"nomobile",
|
|
11
|
+
"withPadding",
|
|
12
|
+
"red",
|
|
13
|
+
"alignCenter",
|
|
14
|
+
"menuWithArrow",
|
|
15
|
+
"mobileMenu",
|
|
16
|
+
"asLink",
|
|
17
|
+
"withIcon",
|
|
18
|
+
"active"
|
|
19
|
+
].includes(props)
|
|
20
|
+
})`
|
|
21
|
+
text-transform: uppercase;
|
|
22
|
+
letter-spacing: 2.1px;
|
|
23
|
+
font-size: ${({ fontSize }) => fontSize ? `${fontSize}px` : "11px"};
|
|
24
|
+
white-space: ${({ withWordWrap }) => withWordWrap ? "unset" : "nowrap"};
|
|
25
|
+
line-height: 2.18;
|
|
26
|
+
color: inherit;
|
|
27
|
+
font-weight: bolder;
|
|
28
|
+
strong {
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
${({ is101 }) => is101 && css`
|
|
33
|
+
text-transform: unset;
|
|
34
|
+
`}
|
|
35
|
+
|
|
36
|
+
${({ mobile }) => mobile && css`
|
|
37
|
+
display: none;
|
|
38
|
+
|
|
39
|
+
${rwdMax.Mobile`
|
|
40
|
+
display: block;
|
|
41
|
+
`}
|
|
42
|
+
`}
|
|
43
|
+
|
|
44
|
+
${({ nomobile }) => nomobile && css`
|
|
45
|
+
display: block;
|
|
46
|
+
|
|
47
|
+
${rwdMax.Mobile`
|
|
48
|
+
display: none;
|
|
49
|
+
`}
|
|
50
|
+
`}
|
|
51
|
+
|
|
52
|
+
${(props) => props.withPadding && `
|
|
53
|
+
padding:18px 16px;
|
|
54
|
+
`}
|
|
55
|
+
${(props) => props.red && `
|
|
56
|
+
background: #D2200D;
|
|
57
|
+
color:white;
|
|
58
|
+
border-bottom: 1px solid #979797;
|
|
59
|
+
`}
|
|
60
|
+
|
|
61
|
+
${({ alignCenter }) => alignCenter && css`
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
`}
|
|
65
|
+
|
|
66
|
+
@media screen and (max-width: 991px) {
|
|
67
|
+
${({ menuWithArrow }) => menuWithArrow && css`
|
|
68
|
+
align-items: center;
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
`}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
${({ mobileMenu }) => mobileMenu && css`
|
|
75
|
+
display: flex;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
`}
|
|
80
|
+
${(props) => props.asLink && `
|
|
81
|
+
cursor:pointer;
|
|
82
|
+
&:hover {
|
|
83
|
+
opacity: .6;
|
|
84
|
+
}
|
|
85
|
+
`}
|
|
86
|
+
|
|
87
|
+
${(props) => props.withIcon && `
|
|
88
|
+
${rwdMax.Medium`
|
|
89
|
+
|
|
90
|
+
span {
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
position:relative;
|
|
94
|
+
|
|
95
|
+
&: before {
|
|
96
|
+
content: url(${dropdown});
|
|
97
|
+
position:absolute;
|
|
98
|
+
top: -4px;
|
|
99
|
+
right: -2em;
|
|
100
|
+
width:12px;
|
|
101
|
+
transition: transform 0.7s;
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
`}
|
|
109
|
+
`}
|
|
110
|
+
|
|
111
|
+
${(props) => props.active && `
|
|
112
|
+
${rwdMax.Medium`
|
|
113
|
+
|
|
114
|
+
&:before {
|
|
115
|
+
|
|
116
|
+
transform: rotate(180deg);
|
|
117
|
+
}
|
|
118
|
+
`}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
`}
|
|
122
|
+
`;
|
|
123
|
+
export {
|
|
124
|
+
Breakdown,
|
|
125
|
+
Breakdown as default
|
|
126
|
+
};
|