@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,263 @@
|
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
const Container = styled.div`
|
|
3
|
+
position: relative;
|
|
4
|
+
`;
|
|
5
|
+
const HeadWrapper = styled.div`
|
|
6
|
+
z-index: 1;
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
background-color: ${(props) => props.theme.cWhite};
|
|
13
|
+
`;
|
|
14
|
+
const TableWrapper = styled.div`
|
|
15
|
+
z-index: 0;
|
|
16
|
+
position: relative;
|
|
17
|
+
display: block;
|
|
18
|
+
`;
|
|
19
|
+
const StyledTable = styled.div`
|
|
20
|
+
display: table;
|
|
21
|
+
min-width: 100%;
|
|
22
|
+
`;
|
|
23
|
+
const Row = styled.div`
|
|
24
|
+
display: table-row;
|
|
25
|
+
`;
|
|
26
|
+
const Column = styled.div.withConfig({
|
|
27
|
+
shouldForwardProp: (props) => !["colWidth", "minWidth", "maxWidth"].includes(props)
|
|
28
|
+
})`
|
|
29
|
+
display: table-cell;
|
|
30
|
+
text-align: ${(props) => props.align};
|
|
31
|
+
font-family: 'Open Sans';
|
|
32
|
+
|
|
33
|
+
${(props) => props.colWidth && `
|
|
34
|
+
width: ${props.colWidth}
|
|
35
|
+
min-width: ${props.colWidth}
|
|
36
|
+
`};
|
|
37
|
+
|
|
38
|
+
${(props) => props.minWidth && `
|
|
39
|
+
min-width: ${props.minWidth}
|
|
40
|
+
`};
|
|
41
|
+
|
|
42
|
+
${(props) => props.maxWidth && `
|
|
43
|
+
width: ${props.maxWidth}
|
|
44
|
+
max-width: ${props.maxWidth}
|
|
45
|
+
`};
|
|
46
|
+
`;
|
|
47
|
+
const Head = styled.div.withConfig({
|
|
48
|
+
shouldForwardProp: (props) => !["hidden"].includes(props)
|
|
49
|
+
})`
|
|
50
|
+
display: table-header-group;
|
|
51
|
+
|
|
52
|
+
${(props) => props.hidden && `
|
|
53
|
+
visibility: hidden;
|
|
54
|
+
`}
|
|
55
|
+
|
|
56
|
+
${Row} {
|
|
57
|
+
${Column} {
|
|
58
|
+
border-bottom: 1px solid ${(props) => props.theme.cLightGrey};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
${Column} {
|
|
63
|
+
color: ${(props) => props.theme.cProgress};
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
font-size: 11px;
|
|
66
|
+
line-height: 20px;
|
|
67
|
+
letter-spacing: 1.98px;
|
|
68
|
+
text-transform: uppercase;
|
|
69
|
+
vertical-align: middle;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
padding: 10px 10px;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
const Body = styled.div`
|
|
75
|
+
display: table-row-group;
|
|
76
|
+
|
|
77
|
+
${Row} {
|
|
78
|
+
/* ${Column}:last-of-type {
|
|
79
|
+
padding-right: 0;
|
|
80
|
+
} */
|
|
81
|
+
|
|
82
|
+
& + ${Row} {
|
|
83
|
+
${Column} {
|
|
84
|
+
border-top: 1px solid ${(props) => props.theme.cLightGrey};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* &:hover {
|
|
89
|
+
${Column} {
|
|
90
|
+
background-color: ${(props) => props.theme.cGrey};
|
|
91
|
+
}
|
|
92
|
+
} */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
${Column} {
|
|
96
|
+
color: ${(props) => props.theme.cBlack};
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
line-height: 20px;
|
|
100
|
+
vertical-align: middle;
|
|
101
|
+
padding: 26px 10px;
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
styled.div`
|
|
105
|
+
display: inline-block;
|
|
106
|
+
background-color: ${(props) => props.color};
|
|
107
|
+
color: ${(props) => props.theme.cWhite};
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
min-width: 40px;
|
|
110
|
+
line-height: 24px;
|
|
111
|
+
border-radius: 3px;
|
|
112
|
+
text-align: center;
|
|
113
|
+
`;
|
|
114
|
+
const TableDropdownIcon = styled.i.withConfig({
|
|
115
|
+
shouldForwardProp: (props) => !["isActive"].includes(props)
|
|
116
|
+
}).attrs({
|
|
117
|
+
className: "ion ion-ios-arrow-down"
|
|
118
|
+
})`
|
|
119
|
+
width: 14px;
|
|
120
|
+
height: 20px;
|
|
121
|
+
font-size: 20px;
|
|
122
|
+
margin-top: -10px;
|
|
123
|
+
transform: rotate(0);
|
|
124
|
+
transition: 0.3s transform;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
${(props) => props.isActive && `
|
|
127
|
+
transform: rotate(180deg);
|
|
128
|
+
`}
|
|
129
|
+
`;
|
|
130
|
+
const Styles = styled.div`
|
|
131
|
+
/* This is required to make the table full-width */
|
|
132
|
+
display: block;
|
|
133
|
+
max-width: 100%;
|
|
134
|
+
|
|
135
|
+
table {
|
|
136
|
+
th,
|
|
137
|
+
td {
|
|
138
|
+
/* The secret sauce */
|
|
139
|
+
/* Each cell should grow equally */
|
|
140
|
+
// width: 1%;
|
|
141
|
+
/* But "collapsed" cells should be as small as possible */
|
|
142
|
+
&.collapse {
|
|
143
|
+
width: 0.0000000001%;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
`;
|
|
148
|
+
const TableWrap = styled.div`
|
|
149
|
+
display: block;
|
|
150
|
+
max-width: 100%;
|
|
151
|
+
overflow-x: auto; //scroll;
|
|
152
|
+
overflow-y: hidden;
|
|
153
|
+
`;
|
|
154
|
+
const StyledTh = styled.th.withConfig({
|
|
155
|
+
shouldForwardProp: (props) => !["blue", "width", "minWidth", "maxWidth"].includes(props)
|
|
156
|
+
})`
|
|
157
|
+
text-transform: uppercase;
|
|
158
|
+
padding: 10px;
|
|
159
|
+
font-size: 11px;
|
|
160
|
+
letter-spacing: 1.6px;
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
background-color: white;
|
|
163
|
+
color: #000000de;
|
|
164
|
+
border-bottom: 1px solid #e1e1e1;
|
|
165
|
+
line-height: 20px;
|
|
166
|
+
|
|
167
|
+
${(props) => props.blue && `
|
|
168
|
+
background-color: #0050ca;
|
|
169
|
+
color: #ffffff;
|
|
170
|
+
border:none;
|
|
171
|
+
`}
|
|
172
|
+
|
|
173
|
+
${(props) => props.width && `
|
|
174
|
+
width: ${props.width};
|
|
175
|
+
min-width: ${props.width};
|
|
176
|
+
max-width: ${props.width};
|
|
177
|
+
`}
|
|
178
|
+
|
|
179
|
+
${(props) => props.minWidth && `
|
|
180
|
+
min-width: ${props.minWidth};
|
|
181
|
+
`}
|
|
182
|
+
|
|
183
|
+
${(props) => props.maxWidth && `
|
|
184
|
+
max-width: ${props.maxWidth};
|
|
185
|
+
`}
|
|
186
|
+
`;
|
|
187
|
+
const StyledTd = styled.td.withConfig({
|
|
188
|
+
shouldForwardProp: (props) => !["blue", "subTable", "width", "minWidth", "maxWidth"].includes(props)
|
|
189
|
+
})`
|
|
190
|
+
padding: 26px 15px;
|
|
191
|
+
border-bottom: 1px solid #e1e1e1;
|
|
192
|
+
font-size: 14px;
|
|
193
|
+
${(props) => props.blue && `
|
|
194
|
+
background-color: #004bb7;
|
|
195
|
+
color: #ffffff;
|
|
196
|
+
`}
|
|
197
|
+
|
|
198
|
+
${(props) => props.subTable && `
|
|
199
|
+
padding: 0;
|
|
200
|
+
&:last-child {
|
|
201
|
+
border-bottom: 0;
|
|
202
|
+
}
|
|
203
|
+
`}
|
|
204
|
+
|
|
205
|
+
${(props) => props.width && `
|
|
206
|
+
width: ${props.width};
|
|
207
|
+
min-width: ${props.width};
|
|
208
|
+
max-width: ${props.width};
|
|
209
|
+
`}
|
|
210
|
+
|
|
211
|
+
${(props) => props.minWidth && `
|
|
212
|
+
min-width: ${props.minWidth};
|
|
213
|
+
`}
|
|
214
|
+
|
|
215
|
+
${(props) => props.maxWidth && `
|
|
216
|
+
max-width: ${props.maxWidth};
|
|
217
|
+
`}
|
|
218
|
+
`;
|
|
219
|
+
const StyledTr = styled.tr.withConfig({
|
|
220
|
+
shouldForwardProp: (props) => !["customRowStyles", "rowIndex", "rowData", "customRowHoverStyles"].includes(props)
|
|
221
|
+
})`
|
|
222
|
+
${(props) => props.customRowStyles && css`
|
|
223
|
+
${props.customRowStyles(props.rowIndex, props.rowData)}
|
|
224
|
+
`}
|
|
225
|
+
|
|
226
|
+
${(props) => props.customRowHoverStyles && css`
|
|
227
|
+
&:hover,
|
|
228
|
+
&:focus,
|
|
229
|
+
&:active {
|
|
230
|
+
${props.customRowHoverStyles(props.rowIndex, props.rowData)}
|
|
231
|
+
}
|
|
232
|
+
`}
|
|
233
|
+
`;
|
|
234
|
+
const StyledReactTable = styled.table.withConfig({
|
|
235
|
+
shouldForwardProp: (props) => !["customTableStyles"].includes(props)
|
|
236
|
+
})`
|
|
237
|
+
width: 100%;
|
|
238
|
+
border-spacing: 0;
|
|
239
|
+
|
|
240
|
+
${(props) => props.customTableStyles && css`
|
|
241
|
+
${props.customTableStyles()}
|
|
242
|
+
`}
|
|
243
|
+
`;
|
|
244
|
+
StyledReactTable.Tr = StyledTr;
|
|
245
|
+
StyledReactTable.Th = StyledTh;
|
|
246
|
+
StyledReactTable.Td = StyledTd;
|
|
247
|
+
export {
|
|
248
|
+
Body,
|
|
249
|
+
Column,
|
|
250
|
+
Container,
|
|
251
|
+
Head,
|
|
252
|
+
HeadWrapper,
|
|
253
|
+
Row,
|
|
254
|
+
StyledReactTable,
|
|
255
|
+
StyledTable,
|
|
256
|
+
StyledTd,
|
|
257
|
+
StyledTh,
|
|
258
|
+
StyledTr,
|
|
259
|
+
Styles,
|
|
260
|
+
TableDropdownIcon,
|
|
261
|
+
TableWrap,
|
|
262
|
+
TableWrapper
|
|
263
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { InfoIcon } from "../InfoIcon/InfoIcon.js";
|
|
5
|
+
import { Text } from "../Text/Text.styles.js";
|
|
6
|
+
import stdin_default, { CheckboxPropTypes } from "../Checkbox/Checkbox.js";
|
|
7
|
+
import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
|
|
8
|
+
import { Container, InfoBox } from "./AgreementItem.styles.js";
|
|
9
|
+
const AgreementItem = ({ title = "", text, checkbox, info = "" }) => /* @__PURE__ */ jsxs(Container, { children: [
|
|
10
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
11
|
+
title && /* @__PURE__ */ jsx("h3", { children: title }),
|
|
12
|
+
text && /* @__PURE__ */ jsx("p", { children: text })
|
|
13
|
+
] }),
|
|
14
|
+
checkbox && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(
|
|
15
|
+
stdin_default,
|
|
16
|
+
{
|
|
17
|
+
id: checkbox.id,
|
|
18
|
+
name: checkbox.name || checkbox.id,
|
|
19
|
+
text: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
checkbox.text,
|
|
21
|
+
info && /* @__PURE__ */ jsx(InfoIcon, { position: "bottom", html: /* @__PURE__ */ jsx(InfoBox, { children: info }) })
|
|
22
|
+
] }),
|
|
23
|
+
value: checkbox.value,
|
|
24
|
+
checked: checkbox.checked,
|
|
25
|
+
onChange: checkbox.onChange,
|
|
26
|
+
onBlur: checkbox.onBlur,
|
|
27
|
+
onClick: checkbox.onClick
|
|
28
|
+
}
|
|
29
|
+
) })
|
|
30
|
+
] });
|
|
31
|
+
AgreementItem.propTypes = {
|
|
32
|
+
title: PropTypes.string,
|
|
33
|
+
text: PropTypes.string.isRequired,
|
|
34
|
+
info: PropTypes.string,
|
|
35
|
+
checkbox: PropTypes.shape(CheckboxPropTypes).isRequired
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
AgreementItem
|
|
39
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
const Container = styled.div`
|
|
3
|
+
display: block;
|
|
4
|
+
`;
|
|
5
|
+
styled.div`
|
|
6
|
+
padding: 6px 0;
|
|
7
|
+
`;
|
|
8
|
+
const InfoBox = styled.div`
|
|
9
|
+
max-width: 240px;
|
|
10
|
+
text-align: left;
|
|
11
|
+
`;
|
|
12
|
+
styled.a`
|
|
13
|
+
text-decoration: underline;
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
color: #0050ca !important;
|
|
17
|
+
opacity: 0.7;
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
styled.a`
|
|
22
|
+
text-decoration: underline;
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
opacity: 0.7;
|
|
26
|
+
text-decoration: underline;
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
export {
|
|
30
|
+
Container,
|
|
31
|
+
InfoBox
|
|
32
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { StyledBackButtonExternal, BackButtonIcon, StyledBackButton, StyledWindowBackButton } from "./BackButton.styles.js";
|
|
5
|
+
import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
|
|
6
|
+
const BackButton = ({ children, to, href }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
+
/* @__PURE__ */ jsx(IoniconsStyles, {}),
|
|
9
|
+
href ? /* @__PURE__ */ jsxs(StyledBackButtonExternal, { href, children: [
|
|
10
|
+
/* @__PURE__ */ jsx(BackButtonIcon, {}),
|
|
11
|
+
children
|
|
12
|
+
] }) : to ? /* @__PURE__ */ jsxs(StyledBackButton, { to, children: [
|
|
13
|
+
/* @__PURE__ */ jsx(BackButtonIcon, {}),
|
|
14
|
+
children
|
|
15
|
+
] }) : /* @__PURE__ */ jsxs(StyledWindowBackButton, { onClick: () => window.history.back(), children: [
|
|
16
|
+
/* @__PURE__ */ jsx(BackButtonIcon, {}),
|
|
17
|
+
children
|
|
18
|
+
] })
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
BackButton.propTypes = {
|
|
22
|
+
children: PropTypes.node.isRequired,
|
|
23
|
+
to: PropTypes.string,
|
|
24
|
+
href: PropTypes.string
|
|
25
|
+
};
|
|
26
|
+
var stdin_default = BackButton;
|
|
27
|
+
export {
|
|
28
|
+
BackButton,
|
|
29
|
+
BackButtonIcon,
|
|
30
|
+
StyledBackButton,
|
|
31
|
+
StyledBackButtonExternal,
|
|
32
|
+
StyledWindowBackButton,
|
|
33
|
+
stdin_default as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
import theme from "../../styles/theme.js";
|
|
4
|
+
const BackButtonIcon = styled.i.attrs({
|
|
5
|
+
className: "ion ion-ios-arrow-back"
|
|
6
|
+
})`
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 0;
|
|
10
|
+
color: ${() => theme.cBlack};
|
|
11
|
+
transform: translateX(0);
|
|
12
|
+
transition:
|
|
13
|
+
0.3s color,
|
|
14
|
+
0.3s transform;
|
|
15
|
+
`;
|
|
16
|
+
const ForwardButtonIcon = styled.i.attrs({
|
|
17
|
+
className: "ion ion-ios-arrow-forward"
|
|
18
|
+
})`
|
|
19
|
+
font-size: 16px;
|
|
20
|
+
position: absolute;
|
|
21
|
+
right: 0;
|
|
22
|
+
color: ${() => theme.cBlack};
|
|
23
|
+
transform: translateX(0);
|
|
24
|
+
transition:
|
|
25
|
+
0.3s color,
|
|
26
|
+
0.3s transform;
|
|
27
|
+
`;
|
|
28
|
+
const StyledBackButton = styled(Link)`
|
|
29
|
+
display: block;
|
|
30
|
+
font-size: 11px;
|
|
31
|
+
line-height: 16px;
|
|
32
|
+
letter-spacing: 2px;
|
|
33
|
+
color: ${() => theme.cBlack};
|
|
34
|
+
position: relative;
|
|
35
|
+
padding-left: 16px;
|
|
36
|
+
transition: 0.3s color;
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
color: ${() => theme.cPrimaryDark};
|
|
40
|
+
|
|
41
|
+
${BackButtonIcon} {
|
|
42
|
+
transform: translateX(-4px);
|
|
43
|
+
color: ${() => theme.cPrimaryDark};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const StyledBackButtonExternal = styled.a`
|
|
48
|
+
display: block;
|
|
49
|
+
font-size: 11px;
|
|
50
|
+
line-height: 16px;
|
|
51
|
+
letter-spacing: 2px;
|
|
52
|
+
color: ${() => theme.cBlack};
|
|
53
|
+
position: relative;
|
|
54
|
+
padding-left: 16px;
|
|
55
|
+
transition: 0.3s color;
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
color: ${() => theme.cPrimaryDark};
|
|
59
|
+
|
|
60
|
+
${BackButtonIcon} {
|
|
61
|
+
transform: translateX(-4px);
|
|
62
|
+
color: ${() => theme.cPrimaryDark};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
const StyledWindowBackButton = styled.span`
|
|
67
|
+
display: block;
|
|
68
|
+
font-size: 11px;
|
|
69
|
+
line-height: 16px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
letter-spacing: 2px;
|
|
72
|
+
color: ${() => theme.cBlack};
|
|
73
|
+
position: relative;
|
|
74
|
+
padding-left: 16px;
|
|
75
|
+
transition: 0.3s color;
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
color: ${() => theme.cPrimaryDark};
|
|
79
|
+
|
|
80
|
+
${BackButtonIcon} {
|
|
81
|
+
transform: translateX(-4px);
|
|
82
|
+
color: ${() => theme.cPrimaryDark};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
styled.div.withConfig({
|
|
87
|
+
shouldForwardProp: (props) => !["forward"].includes(props)
|
|
88
|
+
})`
|
|
89
|
+
display: block;
|
|
90
|
+
font-size: 11px;
|
|
91
|
+
line-height: 16px;
|
|
92
|
+
letter-spacing: 2px;
|
|
93
|
+
color: ${() => theme.cBlack};
|
|
94
|
+
position: relative;
|
|
95
|
+
padding-left: 16px;
|
|
96
|
+
transition: 0.3s color;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
|
|
99
|
+
${(props) => props.forward && `
|
|
100
|
+
padding-right: 16px;
|
|
101
|
+
`}
|
|
102
|
+
|
|
103
|
+
&:hover {
|
|
104
|
+
color: ${() => theme.cPrimaryDark};
|
|
105
|
+
|
|
106
|
+
${BackButtonIcon} {
|
|
107
|
+
transform: translateX(-4px);
|
|
108
|
+
color: ${() => theme.cPrimaryDark};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
${ForwardButtonIcon} {
|
|
112
|
+
transform: translateX(4px);
|
|
113
|
+
color: ${() => theme.cPrimaryDark};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
export {
|
|
118
|
+
BackButtonIcon,
|
|
119
|
+
ForwardButtonIcon,
|
|
120
|
+
StyledBackButton,
|
|
121
|
+
StyledBackButtonExternal,
|
|
122
|
+
StyledWindowBackButton
|
|
123
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Container, Wrap, Img, Caption, Content } from "./Background.styles.js";
|
|
5
|
+
const Background = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
caption = "",
|
|
8
|
+
children,
|
|
9
|
+
contain = false,
|
|
10
|
+
investmentOpportunities = false,
|
|
11
|
+
mobileRatio,
|
|
12
|
+
src,
|
|
13
|
+
withPadding = false
|
|
14
|
+
} = props;
|
|
15
|
+
const resolvedChildren = children ?? /* @__PURE__ */ jsx("div", {});
|
|
16
|
+
return /* @__PURE__ */ jsxs(Container, { mobileRatio, investmentOpportunities, children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Wrap, { children: /* @__PURE__ */ jsx(
|
|
18
|
+
Img,
|
|
19
|
+
{
|
|
20
|
+
src,
|
|
21
|
+
alt: "background",
|
|
22
|
+
contain,
|
|
23
|
+
withPadding,
|
|
24
|
+
investmentOpportunities
|
|
25
|
+
}
|
|
26
|
+
) }),
|
|
27
|
+
caption && /* @__PURE__ */ jsx(Caption, { withPadding, children: caption }),
|
|
28
|
+
/* @__PURE__ */ jsx(Content, { children: resolvedChildren })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
Background.propTypes = {
|
|
32
|
+
caption: PropTypes.string,
|
|
33
|
+
children: PropTypes.node,
|
|
34
|
+
contain: PropTypes.bool,
|
|
35
|
+
investmentOpportunities: PropTypes.bool,
|
|
36
|
+
mobileRatio: PropTypes.string,
|
|
37
|
+
// example: '16:9'
|
|
38
|
+
src: PropTypes.string.isRequired,
|
|
39
|
+
withPadding: PropTypes.bool
|
|
40
|
+
};
|
|
41
|
+
var stdin_default = Background;
|
|
42
|
+
export {
|
|
43
|
+
Background,
|
|
44
|
+
stdin_default as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import rwd from "../../styles/rwd.js";
|
|
3
|
+
const Container = styled.div.withConfig({
|
|
4
|
+
shouldForwardProp: (props) => !["mobileRatio", "investmentOpportunities"].includes(props)
|
|
5
|
+
})`
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
font-size: 0;
|
|
10
|
+
|
|
11
|
+
${(props) => {
|
|
12
|
+
if (!props.mobileRatio) return "";
|
|
13
|
+
const ratio = props.mobileRatio?.split(":");
|
|
14
|
+
const percent = 100 * ratio[1] / ratio[0];
|
|
15
|
+
return `
|
|
16
|
+
&:after {
|
|
17
|
+
z-index: 0;
|
|
18
|
+
content: '';
|
|
19
|
+
position: relative;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
vertical-align: top;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
padding-top: ${percent}%;
|
|
25
|
+
margin-left: -100%;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
}}
|
|
29
|
+
|
|
30
|
+
&:after {
|
|
31
|
+
${rwd.Medium`
|
|
32
|
+
display: none;
|
|
33
|
+
`}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
${(props) => props.investmentOpportunities && `
|
|
37
|
+
padding-top: 33% !important;
|
|
38
|
+
`}
|
|
39
|
+
`;
|
|
40
|
+
const Wrap = styled.div`
|
|
41
|
+
z-index: 1;
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
|
|
49
|
+
& > div {
|
|
50
|
+
height: 100%;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
const Caption = styled.div.withConfig({
|
|
54
|
+
shouldForwardProp: (props) => props !== "withPadding"
|
|
55
|
+
})`
|
|
56
|
+
font-size: 11px;
|
|
57
|
+
position: absolute;
|
|
58
|
+
bottom: -25px;
|
|
59
|
+
|
|
60
|
+
${(props) => props.withPadding && `
|
|
61
|
+
bottom: -12px;
|
|
62
|
+
`}
|
|
63
|
+
`;
|
|
64
|
+
const Img = styled.img.withConfig({
|
|
65
|
+
shouldForwardProp: (props) => !["contain", "withPadding", "investmentOpportunities"].includes(props)
|
|
66
|
+
})`
|
|
67
|
+
position: absolute;
|
|
68
|
+
width: 100%;
|
|
69
|
+
object-fit: cover;
|
|
70
|
+
object-position: center center;
|
|
71
|
+
top: 0;
|
|
72
|
+
left: 0;
|
|
73
|
+
height: 100%;
|
|
74
|
+
|
|
75
|
+
${(props) => props.investmentOpportunities && `
|
|
76
|
+
height: 100%;
|
|
77
|
+
`}
|
|
78
|
+
${(props) => props.withPadding && `
|
|
79
|
+
padding: 20px;
|
|
80
|
+
`}
|
|
81
|
+
${(props) => props.contain && `
|
|
82
|
+
object-fit:contain;
|
|
83
|
+
`}
|
|
84
|
+
`;
|
|
85
|
+
styled.video`
|
|
86
|
+
object-fit: cover;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
`;
|
|
90
|
+
styled.img`
|
|
91
|
+
/* Make video to at least 100% wide and tall */
|
|
92
|
+
min-width: 100%;
|
|
93
|
+
min-height: 100%;
|
|
94
|
+
|
|
95
|
+
/* Setting width & height to auto prevents the browser from stretching or squishing the video */
|
|
96
|
+
width: auto;
|
|
97
|
+
height: auto;
|
|
98
|
+
|
|
99
|
+
/* Center the video */
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 50%;
|
|
102
|
+
left: 50%;
|
|
103
|
+
transform: translate(-50%, -50%);
|
|
104
|
+
`;
|
|
105
|
+
const Content = styled.div`
|
|
106
|
+
z-index: 2;
|
|
107
|
+
position: relative;
|
|
108
|
+
display: inline-block;
|
|
109
|
+
vertical-align: top;
|
|
110
|
+
width: 100%;
|
|
111
|
+
font-size: 10px;
|
|
112
|
+
`;
|
|
113
|
+
export {
|
|
114
|
+
Caption,
|
|
115
|
+
Container,
|
|
116
|
+
Content,
|
|
117
|
+
Img,
|
|
118
|
+
Wrap
|
|
119
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Table, Row, Label, Value, Caption, LabelWarning } from "./BasicTable.styles.js";
|
|
5
|
+
const BasicTable = ({ data, filled, smallPadding }) => /* @__PURE__ */ jsx(Table, { filled, children: data.map((item, itemKey) => /* @__PURE__ */ jsxs(Row, { smallPadding, children: [
|
|
6
|
+
/* @__PURE__ */ jsx(Label, { children: item.label }),
|
|
7
|
+
/* @__PURE__ */ jsxs(Value, { children: [
|
|
8
|
+
item.value,
|
|
9
|
+
/* @__PURE__ */ jsx(Caption, { children: item.valueDescription })
|
|
10
|
+
] }),
|
|
11
|
+
item.labelwarning ? /* @__PURE__ */ jsx(LabelWarning, { children: item.labelwarning }) : ""
|
|
12
|
+
] }, `${item.label}-${itemKey.toString()}`)) });
|
|
13
|
+
BasicTable.propTypes = {
|
|
14
|
+
data: PropTypes.arrayOf(
|
|
15
|
+
PropTypes.shape({
|
|
16
|
+
label: PropTypes.string.isRequired,
|
|
17
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
|
|
18
|
+
})
|
|
19
|
+
).isRequired
|
|
20
|
+
};
|
|
21
|
+
var stdin_default = BasicTable;
|
|
22
|
+
export {
|
|
23
|
+
BasicTable,
|
|
24
|
+
stdin_default as default
|
|
25
|
+
};
|