@stokr/components-library 2.3.58-beta.6 → 2.3.58-beta.7
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/dist/api/StokrWeb3.js +3 -3
- package/dist/api/auth.js +16 -53
- package/dist/api/fetchData.js +26 -66
- package/dist/api/fetchDataPublic.js +20 -57
- package/dist/components/2FA/Connect2FA.js +10 -11
- package/dist/components/2FA/EnterCode.js +32 -30
- package/dist/components/2FA/EnterCode.stories.js +4 -8
- package/dist/components/2FA/InstallAuthApp.js +8 -9
- package/dist/components/2FA/ResetCode.js +11 -12
- package/dist/components/2FA/Sucess2FA.js +12 -16
- package/dist/components/2FA/disable-2fa-flow.js +53 -104
- package/dist/components/2FA/disable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/enable-2fa-flow.js +73 -144
- package/dist/components/2FA/enable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/index.js +9 -9
- package/dist/components/2FA/login-with-otp-flow.js +126 -206
- package/dist/components/2FA/login-with-otp-flow.stories.js +4 -8
- package/dist/components/2FA/main-flow.js +70 -144
- package/dist/components/2FA/main-flow.stories.js +4 -8
- package/dist/components/AccountBalance/AccountBalance.js +14 -13
- package/dist/components/AccountBalance/AccountBalance.stories.js +6 -12
- package/dist/components/AccountBalance/AccountBalance.styles.js +9 -17
- package/dist/components/AdminDashboard/Table/ReactTable.js +77 -84
- package/dist/components/AdminDashboard/Table/ReactTable.stories.js +87 -63
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +24 -30
- package/dist/components/AdminDashboard/Table/Table.js +88 -123
- package/dist/components/AdminDashboard/Table/Table.styles.js +28 -90
- package/dist/components/AgreementItem/AgreementItem.js +10 -11
- package/dist/components/AgreementItem/AgreementItem.stories.js +5 -10
- package/dist/components/AgreementItem/AgreementItem.styles.js +8 -12
- package/dist/components/AnalyticGraphs/Analytic.js +504 -743
- package/dist/components/AnalyticGraphs/Analytic.styles.js +14 -26
- package/dist/components/BackButton/BackButton.js +9 -10
- package/dist/components/BackButton/BackButton.stories.js +4 -8
- package/dist/components/BackButton/BackButton.styles.js +13 -51
- package/dist/components/Background/Background.js +12 -11
- package/dist/components/Background/Background.stories.js +8 -14
- package/dist/components/Background/Background.styles.js +17 -33
- package/dist/components/BarChart/BarChart.js +138 -181
- package/dist/components/BarChart/BarChart.stories.js +5 -10
- package/dist/components/BarChart/BarChart.styles.js +8 -15
- package/dist/components/BarChartLegend/BarChartLegend.js +40 -67
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +5 -10
- package/dist/components/BasicTable/BasicTable.js +12 -13
- package/dist/components/BasicTable/BasicTable.stories.js +5 -10
- package/dist/components/BasicTable/BasicTable.styles.js +11 -27
- package/dist/components/BlogPost/BlogPost.js +34 -53
- package/dist/components/BlogPost/BlogPost.stories.js +33 -46
- package/dist/components/BlogPost/BlogPost.styles.js +67 -59
- package/dist/components/Button/Button-stoDetails.js +150 -129
- package/dist/components/Button/Button.stories.js +27 -44
- package/dist/components/Button/Button.styles.js +24 -62
- package/dist/components/Button/GlareButton.js +61 -89
- package/dist/components/Button/GlareButton.stories.js +19 -29
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +5 -10
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +4 -8
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +9 -10
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +8 -17
- package/dist/components/Card/Card.styles.js +14 -41
- package/dist/components/ChartBox/ChartBox.js +5 -8
- package/dist/components/ChartBox/ChartBox.stories.js +3 -6
- package/dist/components/ChartBox/ChartBox.styles.js +8 -14
- package/dist/components/ChartBox/ChartBoxDistribution.js +5 -8
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +3 -6
- package/dist/components/ChartLegend/ChartLegend.js +30 -46
- package/dist/components/ChartLegend/ChartLegend.stories.js +22 -28
- package/dist/components/ChartLegend/ChartLegend.styles.js +16 -41
- package/dist/components/Checkbox/Checkbox.js +32 -32
- package/dist/components/Checkbox/Checkbox.stories.js +5 -10
- package/dist/components/Checkbox/Checkbox.styles.js +10 -23
- package/dist/components/Checklist/ChecklistCard.js +33 -35
- package/dist/components/Checklist/ChecklistCard.stories.js +77 -100
- package/dist/components/Checklist/ChecklistCard.styles.js +12 -15
- package/dist/components/Chips/Chip.js +14 -13
- package/dist/components/Chips/Chip.stories.js +10 -19
- package/dist/components/Chips/Chip.styles.js +14 -14
- package/dist/components/Chips/ChipWrapper.js +23 -41
- package/dist/components/Chips/ChipsWrapper.stories.js +9 -17
- package/dist/components/ComponentScroll/ComponentScroll.js +25 -34
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +16 -23
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +22 -47
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +7 -61
- package/dist/components/CryptoAddress/ComponentWrap.js +10 -11
- package/dist/components/CryptoAddress/CryptoAddress.js +51 -68
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +7 -13
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +55 -124
- package/dist/components/CryptoAddress/RadioWrap.js +9 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +24 -25
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +5 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +12 -42
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +10 -9
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +16 -27
- package/dist/components/DonutChart/DonutChart.js +101 -130
- package/dist/components/DonutChart/DonutChart.stories.js +4 -8
- package/dist/components/DonutChart/DonutChart.styles.js +15 -27
- package/dist/components/DoubleButton/DoubleButton.styles.js +8 -8
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +3 -5
- package/dist/components/FAQ/FAQ.js +29 -45
- package/dist/components/FAQ/FAQ.stories.js +4 -9
- package/dist/components/FAQ/FAQ.styles.js +23 -39
- package/dist/components/Footer/Footer.js +9 -10
- package/dist/components/Footer/Footer.stories.js +6 -12
- package/dist/components/Footer/Footer.styles.js +22 -46
- package/dist/components/Footer/FooterLayout.js +16 -20
- package/dist/components/Footer/FooterLayout.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.js +61 -83
- package/dist/components/Footer/FooterMenu.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.styles.js +16 -39
- package/dist/components/Footer/index.js +4 -4
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +92 -114
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +4 -8
- package/dist/components/Form/Form.js +15 -14
- package/dist/components/Form/Form.stories.js +4 -8
- package/dist/components/Form/Form.styles.js +16 -36
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +7 -12
- package/dist/components/Grid/Grid.styles.js +17 -68
- package/dist/components/Header/Header.js +98 -163
- package/dist/components/Header/Header.stories.js +17 -28
- package/dist/components/Header/Header.styles.js +61 -124
- package/dist/components/HeroBlock/HeroVideoBlock.js +20 -25
- package/dist/components/Icon/Icon.style.js +10 -22
- package/dist/components/Icon/Icon2.js +11 -13
- package/dist/components/InfoIcon/InfoIcon.js +18 -17
- package/dist/components/InfoIcon/InfoIcon.stories.js +5 -10
- package/dist/components/InfoIcon/InfoIcon.styles.js +5 -21
- package/dist/components/InfoPanel/InfoPanel.js +26 -48
- package/dist/components/Input/DatePickerInput.js +21 -33
- package/dist/components/Input/DatePickerInput.stories.js +5 -10
- package/dist/components/Input/DatePickerInput.styles.js +5 -19
- package/dist/components/Input/Input.js +43 -51
- package/dist/components/Input/Input.stories.js +9 -16
- package/dist/components/Input/Input.styles.js +8 -43
- package/dist/components/Input/InputPassword.js +30 -50
- package/dist/components/Input/InputPassword.stories.js +6 -12
- package/dist/components/Input/InputPassword.styles.js +30 -57
- package/dist/components/Input/InputUsername.js +83 -102
- package/dist/components/Input/InputWithButton.js +20 -19
- package/dist/components/Input/InputWithButton.stories.js +5 -9
- package/dist/components/Input/InputWithButton.styles.js +7 -19
- package/dist/components/Input/OtpInput.js +27 -42
- package/dist/components/Input/OtpInput.stories.js +5 -11
- package/dist/components/Input/RangeInput.js +29 -25
- package/dist/components/Input/RangeInput.stories.js +4 -8
- package/dist/components/Input/RangeInput.styles.js +15 -42
- package/dist/components/Input/Select.js +68 -89
- package/dist/components/Input/Select.stories.js +6 -12
- package/dist/components/Input/Select.styles.js +12 -32
- package/dist/components/InvestCalculator/InvestCalculator.js +245 -243
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +18 -21
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +14 -33
- package/dist/components/InvestmentStat/InvestmentStat.js +11 -10
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +5 -10
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +12 -24
- package/dist/components/KYCFlow/BasicInfo.js +419 -460
- package/dist/components/KYCFlow/Confirmation.js +12 -17
- package/dist/components/KYCFlow/DocumentFileUpload.js +214 -227
- package/dist/components/KYCFlow/DocumentScan.js +16 -15
- package/dist/components/KYCFlow/DocumentScanUpload.js +203 -210
- package/dist/components/KYCFlow/DocumentSelect.js +87 -117
- package/dist/components/KYCFlow/DocumentSuccess.js +14 -15
- package/dist/components/KYCFlow/DocumentUpload.js +10 -11
- package/dist/components/KYCFlow/DocumentVerificationType.js +98 -128
- package/dist/components/KYCFlow/FaceScan.js +10 -11
- package/dist/components/KYCFlow/FaceScanRecognition.js +14 -13
- package/dist/components/KYCFlow/FaceScanSuccess.js +10 -13
- package/dist/components/KYCFlow/Terms.js +90 -113
- package/dist/components/KYCFlow/_styles.js +37 -86
- package/dist/components/KYCFlow/index.js +14 -14
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +7 -19
- package/dist/components/LatestUpdate/LatestUpdate.js +12 -11
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +5 -10
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +15 -28
- package/dist/components/Layout/Layout-func-no-work.js +24 -24
- package/dist/components/Layout/Layout.js +47 -68
- package/dist/components/Layout/Layout.stories.js +5 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +13 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +5 -10
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +10 -22
- package/dist/components/LearnMorePage/LearnMore.js +134 -174
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +7 -22
- package/dist/components/LearnMorePage/LearnMore.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMore.styles.js +24 -74
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +3 -5
- package/dist/components/LearnMorePage/LearnMoreItem.js +11 -16
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +18 -54
- package/dist/components/LearnMoreSection/LearnMore.js +119 -158
- package/dist/components/LearnMoreSection/LearnMore.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMore.styles.js +15 -41
- package/dist/components/LearnMoreSection/LearnMoreItem.js +14 -15
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +9 -23
- package/dist/components/LoginModal/LoginModal.js +35 -41
- package/dist/components/LoginModal/LoginModal.stories.js +8 -12
- package/dist/components/MainMenu/DynamicMainMenu.js +11 -14
- package/dist/components/MainMenu/MainMenu.js +157 -190
- package/dist/components/MainMenu/MainMenu.styles.js +48 -89
- package/dist/components/MatomoConnect/Matomo.js +201 -463
- package/dist/components/MenuNav/MenuNav.styles.js +5 -9
- package/dist/components/Modal/Modal.js +46 -48
- package/dist/components/Modal/Modal.stories.js +8 -16
- package/dist/components/Modal/Modal.styles.js +34 -96
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +69 -95
- package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +22 -43
- package/dist/components/Modal/PaymentModal.js +43 -54
- package/dist/components/Modal/PaymentModal.stories.js +4 -8
- package/dist/components/MultiProgressBar/MultiProgressBar.js +19 -23
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +6 -12
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +9 -22
- package/dist/components/Newsletter/Newsletter.js +65 -100
- package/dist/components/Newsletter/Newsletter.stories.js +4 -8
- package/dist/components/Newsletter/Newsletter.styles.js +47 -44
- package/dist/components/NotificationContext/NotificationContext.js +93 -125
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +4 -16
- package/dist/components/Number/Number.js +13 -10
- package/dist/components/Number/Number.stories.js +23 -41
- package/dist/components/Number/Number.styles.js +4 -10
- package/dist/components/PageTransition/PageTransition.js +16 -19
- package/dist/components/Pagination/Pagination.js +22 -25
- package/dist/components/Pagination/Pagination.stories.js +29 -36
- package/dist/components/Pagination/Pagination.styles.js +8 -15
- package/dist/components/Pagination/PaginationControls.js +32 -36
- package/dist/components/Pagination/PaginationControls.stories.js +33 -62
- package/dist/components/Pagination/usePagination.js +29 -37
- package/dist/components/Process/Process.stories.js +6 -12
- package/dist/components/Process/Process.styles.js +6 -16
- package/dist/components/ProfileBadge/ProfileBadge.js +12 -11
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +5 -9
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +13 -19
- package/dist/components/ProfileBox/ProfileBox.js +15 -17
- package/dist/components/ProfileBox/ProfileBox.stories.js +5 -9
- package/dist/components/ProfileBox/ProfileBox.styles.js +9 -21
- package/dist/components/ProfileHeader/ProfileHeader.js +163 -199
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +24 -46
- package/dist/components/ProfileStat/ProfileStat.js +12 -11
- package/dist/components/ProfileStat/ProfileStat.stories.js +6 -12
- package/dist/components/ProfileStat/ProfileStat.styles.js +9 -23
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +20 -36
- package/dist/components/QRCode/QRCode.js +30 -30
- package/dist/components/QRCode/QRCode.stories.js +14 -26
- package/dist/components/ROI/ROI.js +225 -261
- package/dist/components/ROI/ROI.styles.js +13 -25
- package/dist/components/ROI/ROIChart.js +196 -303
- package/dist/components/ROI/ROIChart.styles.js +7 -11
- package/dist/components/ROI/ROIModal.js +13 -20
- package/dist/components/ROI/ROIParkingo.js +208 -244
- package/dist/components/ROI/ROIPixelmatic.js +209 -245
- package/dist/components/ROI/ROIScenarioBox.js +9 -8
- package/dist/components/ROI/ROIScenarioBox.styles.js +10 -33
- package/dist/components/Radio/Radio.js +19 -18
- package/dist/components/Radio/Radio.stories.js +4 -8
- package/dist/components/Radio/Radio.styles.js +5 -14
- package/dist/components/RefreshButton/RefreshButton.js +6 -5
- package/dist/components/RefreshButton/RefreshButton.stories.js +5 -10
- package/dist/components/RefreshButton/RefreshButton.styles.js +9 -24
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +17 -18
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +5 -9
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +3 -4
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +46 -70
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +10 -22
- package/dist/components/RegisterLiquidSteps/complete.js +4 -5
- package/dist/components/RegisterLiquidSteps/flow.js +53 -99
- package/dist/components/RegisterLiquidSteps/index.js +7 -22
- package/dist/components/RegisterLiquidSteps/register-liquid.js +62 -102
- package/dist/components/RegisterModal/RegisterModal.js +82 -118
- package/dist/components/RegisterModal/RegisterModal.stories.js +5 -9
- package/dist/components/RequestDataBox/RequestDataBox.js +9 -8
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +4 -8
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +7 -12
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +10 -11
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +3 -4
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +29 -28
- package/dist/components/SEO/SEO.js +11 -10
- package/dist/components/SEO/SEO.stories.js +4 -8
- package/dist/components/SectionTitle/SectionTitle.styles.js +3 -5
- package/dist/components/ShareButton/ShareButton.js +132 -145
- package/dist/components/SideLine/SideLine.js +3 -6
- package/dist/components/SideLine/SideLine.stories.js +3 -6
- package/dist/components/SideLine/SideLine.styles.js +6 -12
- package/dist/components/SigningSubflow/SignSubIntro.js +9 -8
- package/dist/components/SigningSubflow/_styles.js +9 -20
- package/dist/components/SigningSubflow/index.js +5 -5
- package/dist/components/Slider/Slider.js +16 -16
- package/dist/components/Slider/Slider.stories.js +5 -10
- package/dist/components/Slider/Slider.styles.js +5 -8
- package/dist/components/SpanButton/SpanButton.styles.js +3 -6
- package/dist/components/StatusBadge/StatusBadge.styles.js +4 -10
- package/dist/components/StepController/StepController.js +49 -74
- package/dist/components/StepController/StepController.stories.js +4 -8
- package/dist/components/StepController/StepController.styles.js +6 -12
- package/dist/components/StepController/StepControllerContext.js +46 -68
- package/dist/components/StepController/StepControllerProgress.js +16 -19
- package/dist/components/StepController/StepControllerProgress.stories.js +4 -8
- package/dist/components/StepsProgress/StepsProgress.js +44 -58
- package/dist/components/StepsProgress/StepsProgress.stories.js +33 -35
- package/dist/components/StepsProgress/StepsProgress.styles.js +7 -15
- package/dist/components/StokrLoader/StokrLoader.js +20 -23
- package/dist/components/StokrLoader/media.js +5 -7
- package/dist/components/SvgIcons/AdminBadgeSvg.js +16 -19
- package/dist/components/SvgIcons/CameraSvg.js +26 -29
- package/dist/components/SvgIcons/CapsLockSvg.js +21 -24
- package/dist/components/SvgIcons/DocumentBackSvg.js +25 -28
- package/dist/components/SvgIcons/DocumentSmallSvg.js +51 -54
- package/dist/components/SvgIcons/DocumentSvg.js +28 -31
- package/dist/components/SvgIcons/Early.js +14 -17
- package/dist/components/SvgIcons/EthSvg.js +30 -33
- package/dist/components/SvgIcons/EurSvg.js +16 -19
- package/dist/components/SvgIcons/FaceScanIconSvg.js +21 -24
- package/dist/components/SvgIcons/FourSvg.js +11 -14
- package/dist/components/SvgIcons/Glassess.js +19 -22
- package/dist/components/SvgIcons/LogoSvg.js +14 -17
- package/dist/components/SvgIcons/OneSvg.js +13 -16
- package/dist/components/SvgIcons/PassportSvg.js +46 -49
- package/dist/components/SvgIcons/RefreshSvg.js +17 -20
- package/dist/components/SvgIcons/SocialFacebook.js +20 -23
- package/dist/components/SvgIcons/SocialInstagram.js +11 -14
- package/dist/components/SvgIcons/SocialLinkedIn.js +25 -28
- package/dist/components/SvgIcons/SocialMedium.js +15 -18
- package/dist/components/SvgIcons/SocialReddit.js +15 -18
- package/dist/components/SvgIcons/SocialTelegram.js +49 -52
- package/dist/components/SvgIcons/SocialTwitter.js +44 -47
- package/dist/components/SvgIcons/SocialYoutube.js +15 -18
- package/dist/components/SvgIcons/ThreeSvg.js +10 -13
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +72 -75
- package/dist/components/SvgIcons/TwoSvg.js +13 -16
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +19 -22
- package/dist/components/SvgIcons/UpdateHardSvg.js +15 -18
- package/dist/components/SvgIcons/UpdateSoftSvg.js +17 -20
- package/dist/components/SvgIcons/UploadSvg.js +24 -27
- package/dist/components/SvgIcons/VerifiedBadge.js +13 -16
- package/dist/components/SvgIcons/index.js +32 -32
- package/dist/components/Switch/Switch.js +23 -37
- package/dist/components/Switch/Switch.stories.js +8 -14
- package/dist/components/Switch/Switch.styles.js +8 -33
- package/dist/components/Tabs/Tabs.js +19 -21
- package/dist/components/Tabs/Tabs.stories.js +4 -8
- package/dist/components/Tabs/Tabs.styles.js +4 -6
- package/dist/components/TabsNav/TabNav.js +14 -13
- package/dist/components/TabsNav/TabNav.stories.js +5 -10
- package/dist/components/TabsNav/TabsNav.js +14 -14
- package/dist/components/TabsNav/TabsNav.stories.js +4 -8
- package/dist/components/TabsNav/TabsNav.styles.js +10 -25
- package/dist/components/TeamOverview/TeamOverview.js +38 -84
- package/dist/components/TeamOverview/TeamOverview.stories.js +5 -10
- package/dist/components/TeamOverview/TeamOverview.styles.js +18 -35
- package/dist/components/TermsModal/TermsModal.js +49 -79
- package/dist/components/TermsModal/TermsModal.stories.js +4 -8
- package/dist/components/TermsModal/_styles.js +35 -100
- package/dist/components/Text/Headline.js +15 -14
- package/dist/components/Text/Headline.stories.js +4 -8
- package/dist/components/Text/StyledText.js +5 -8
- package/dist/components/Text/Text.stories.js +5 -10
- package/dist/components/Text/Text.styles.js +15 -37
- package/dist/components/TextLink/TextLink.styles.js +6 -17
- package/dist/components/ToDoList/ToDoList.js +76 -85
- package/dist/components/ToDoList/ToDoList.stories.js +7 -14
- package/dist/components/ToDoList/ToDoList.styles.js +34 -43
- package/dist/components/ToDoList/ToDoListTask.js +22 -35
- package/dist/components/ToDoList/ToDoListTask.stories.js +5 -10
- package/dist/components/ToDoList/ToDoListTask.styles.js +13 -40
- package/dist/components/TransactionDetails/TransactionDetails.js +9 -19
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +5 -10
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +6 -15
- package/dist/components/TransactionInfo/TransactionInfo.js +18 -17
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +4 -8
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +10 -31
- package/dist/components/TwoFactorModal/TwoFactorModal.js +72 -94
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +49 -48
- package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +6 -11
- package/dist/components/breakdown/Breakdown.js +38 -36
- package/dist/components/breakdown/index.js +3 -5
- package/dist/components/headerHo/HeaderHo.js +585 -769
- package/dist/components/headerHo/HeaderHo.stories.js +9 -13
- package/dist/components/headerHo/index.js +3 -5
- package/dist/components/icons/Arrow.js +43 -46
- package/dist/components/icons/Arrow.stories.js +7 -14
- package/dist/components/icons/ArrowSimple.js +32 -35
- package/dist/components/icons/ArrowSimple.stories.js +7 -14
- package/dist/components/icons/Check.js +28 -31
- package/dist/components/icons/Check.stories.js +3 -6
- package/dist/components/icons/Facebook.js +11 -14
- package/dist/components/icons/Facebook.stories.js +3 -6
- package/dist/components/icons/Info.js +40 -43
- package/dist/components/icons/Info.stories.js +3 -6
- package/dist/components/icons/Instagram.js +11 -14
- package/dist/components/icons/Instagram.stories.js +3 -6
- package/dist/components/icons/LinkIcon.js +19 -22
- package/dist/components/icons/LinkIcon.stories.js +3 -6
- package/dist/components/icons/LinkedIn.js +28 -31
- package/dist/components/icons/LinkedIn.stories.js +3 -6
- package/dist/components/icons/Medium.js +27 -30
- package/dist/components/icons/Medium.stories.js +3 -6
- package/dist/components/icons/Reddit.js +17 -20
- package/dist/components/icons/Reddit.stories.js +3 -6
- package/dist/components/icons/Share.js +47 -50
- package/dist/components/icons/Share.stories.js +3 -6
- package/dist/components/icons/Telegram.js +27 -30
- package/dist/components/icons/Telegram.stories.js +3 -6
- package/dist/components/icons/Twitter.js +11 -14
- package/dist/components/icons/Twitter.stories.js +3 -6
- package/dist/components/icons/X.js +11 -14
- package/dist/components/icons/X.stories.js +3 -6
- package/dist/components/icons/Youtube.js +11 -14
- package/dist/components/icons/Youtube.stories.js +3 -6
- package/dist/components/icons/index.js +15 -15
- package/dist/components/landing-page/List.js +3 -5
- package/dist/components/landing-page/PageContent.js +5 -7
- package/dist/components/landing-page/PageText.js +12 -16
- package/dist/components/landing-page/PageTitle.js +16 -47
- package/dist/components/logo/Logo.js +49 -71
- package/dist/components/logo/index.js +3 -5
- package/dist/components/renderToBody/index.js +3 -5
- package/dist/components/renderToBody/renderToBody.js +39 -60
- package/dist/components/taxId/TaxId.stories.js +11 -16
- package/dist/components/taxId/complete.js +9 -11
- package/dist/components/taxId/flow.js +22 -34
- package/dist/components/taxId/index.js +4 -4
- package/dist/components/taxId/register-taxid.js +54 -92
- package/dist/components/video/Video.js +69 -84
- package/dist/components/video/Video.stories.js +5 -9
- package/dist/components/video/index.js +3 -5
- package/dist/constants/globalVariables.js +10 -20
- package/dist/constants/style.js +23 -46
- package/dist/context/Auth.js +247 -340
- package/dist/context/AuthContext.js +545 -1023
- package/dist/context/Checkbox/CheckboxContext.js +65 -117
- package/dist/firebase-config.js +4 -6
- package/dist/hooks/useNewVentureForm.js +128 -193
- package/dist/hooks/useTimer.js +29 -51
- package/dist/index.js +134 -134
- package/dist/model/axios.js +4 -5
- package/dist/model/axiosPublic.js +4 -5
- package/dist/services/TimerService.js +70 -89
- package/dist/static/images/copy_icon.svg +4 -0
- package/dist/styles/colors.js +2 -4
- package/dist/styles/fonts.js +3 -4
- package/dist/styles/global.js +3 -4
- package/dist/styles/grid.js +4 -5
- package/dist/styles/reactTippy.js +3 -4
- package/dist/styles/rwd.js +12 -26
- package/dist/styles/semanticUi.js +3 -4
- package/dist/styles/spacing.js +2 -3
- package/dist/styles/theme.js +6 -9
- package/dist/utils/allowed-countries-list.js +2 -3
- package/dist/utils/analytics.js +32 -48
- package/dist/utils/check-sale-time-left.js +37 -39
- package/dist/utils/check-todo-status.js +3 -4
- package/dist/utils/checklistGenerator.js +46 -46
- package/dist/utils/copyToClipboard.js +65 -131
- package/dist/utils/countries-list.js +2 -3
- package/dist/utils/customHooks.js +40 -67
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/fix-decimals.js +4 -5
- package/dist/utils/formatCurrencyValue.js +41 -52
- package/dist/utils/get-cookie-domain.js +3 -4
- package/dist/utils/get-short-address.js +1 -3
- package/dist/utils/isUSInvestor.js +2 -4
- package/dist/utils/km_ify.js +3 -3
- package/dist/utils/lock-body.js +3 -5
- package/dist/utils/moment.js +10 -12
- package/dist/utils/redirect-url.js +2 -3
- package/dist/utils/saveAs.js +5 -5
- package/dist/utils/scrollUtils.js +33 -36
- package/dist/utils/set-redirect-cookie.js +6 -7
- package/dist/utils/withRouter.js +6 -6
- package/package.json +134 -141
|
@@ -10,86 +10,35 @@ var _rwd = _interopRequireDefault(require("../../styles/rwd"));
|
|
|
10
10
|
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
11
11
|
var _spacing = _interopRequireDefault(require("../../styles/spacing"));
|
|
12
12
|
var _templateObject, _templateObject2;
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function _taggedTemplateLiteral(
|
|
15
|
-
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
|
+
const Wrapper = exports.Wrapper = _styledComponents.default.div.withConfig({
|
|
16
16
|
displayName: "Gridstyles__Wrapper",
|
|
17
17
|
componentId: "sc-1jreazl-0"
|
|
18
|
-
})(["height:100%;", ""],
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
exports.Wrapper = Wrapper;
|
|
22
|
-
var Row = _styledComponents.default.div.withConfig({
|
|
18
|
+
})(["height:100%;", ""], props => props.flex && "\n display:flex;\n ");
|
|
19
|
+
const Row = exports.Row = _styledComponents.default.div.withConfig({
|
|
23
20
|
displayName: "Gridstyles__Row",
|
|
24
21
|
componentId: "sc-1jreazl-1"
|
|
25
|
-
})(["display:flex;flex-wrap:wrap;text-align:left;", " ", " ", " ", " ", " ", " ", " ", " height:", ";"],
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, function (props) {
|
|
30
|
-
return props.spaceBetween && "\n justify-content: space-between;\n ";
|
|
31
|
-
}, function (props) {
|
|
32
|
-
return props.stretch && "\n height: 100%;\n align-items: stretch;\n ";
|
|
33
|
-
}, function (props) {
|
|
34
|
-
return props.dashboard && "\n margin: -16px;\n ";
|
|
35
|
-
}, function (props) {
|
|
36
|
-
return props.nowrap && "\n flex-wrap: nowrap;\n ";
|
|
37
|
-
}, function (props) {
|
|
38
|
-
return props.fullWidth && "\n width: 100%;\n ";
|
|
39
|
-
}, _rwd.default.MLarge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n "])), function (props) {
|
|
40
|
-
return props.main && "\n z-index: 0;\n min-height: calc(100vh - ".concat(_spacing.default.footerHeight, "px);\n padding-top: ").concat(_spacing.default.headerHeight, "px;\n ");
|
|
41
|
-
}), function (_ref) {
|
|
42
|
-
var isConfirmModal = _ref.isConfirmModal;
|
|
22
|
+
})(["display:flex;flex-wrap:wrap;text-align:left;", " ", " ", " ", " ", " ", " ", " ", " height:", ";"], props => props.center && "\n justify-content: center;\n ", props => props.right && "\n justify-content: right;\n ", props => props.spaceBetween && "\n justify-content: space-between;\n ", props => props.stretch && "\n height: 100%;\n align-items: stretch;\n ", props => props.dashboard && "\n margin: -16px;\n ", props => props.nowrap && "\n flex-wrap: nowrap;\n ", props => props.fullWidth && "\n width: 100%;\n ", _rwd.default.MLarge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n "])), props => props.main && "\n z-index: 0;\n min-height: calc(100vh - ".concat(_spacing.default.footerHeight, "px);\n padding-top: ").concat(_spacing.default.headerHeight, "px;\n ")), _ref => {
|
|
23
|
+
let {
|
|
24
|
+
isConfirmModal
|
|
25
|
+
} = _ref;
|
|
43
26
|
return isConfirmModal && '400px';
|
|
44
27
|
}); // ID has padding-top as 85px instead of headerHeight (which is set to 96px)
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
|
|
29
|
+
const Column = exports.Column = _styledComponents.default.div.withConfig({
|
|
47
30
|
displayName: "Gridstyles__Column",
|
|
48
31
|
componentId: "sc-1jreazl-2"
|
|
49
|
-
})(["display:flex;flex-direction:column;width:100%;", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""],
|
|
50
|
-
|
|
51
|
-
}, function (props) {
|
|
52
|
-
return props.textAlignHopper && "\n > div:last-child {\n text-align:right;\n }\n\n @media screen and (max-width: 767px) {\n > div:last-child {\n text-align:left;\n }\n }\n\n @media screen and (max-width: 500px) {\n > div > div {\n justify-content: left;\n margin-top: 1rem;\n }\n }\n\n ";
|
|
53
|
-
}, function (props) {
|
|
54
|
-
return props.center && "\n justify-content: center;\n ";
|
|
55
|
-
}, function (props) {
|
|
56
|
-
return props.alignCenter && "\n align-items: center;\n ";
|
|
57
|
-
}, function (props) {
|
|
58
|
-
return props.alignRight && "\n text-align: right;\n align-items: center;\n ";
|
|
59
|
-
}, function (props) {
|
|
60
|
-
return props.spaceBetween && "\n justify-content: space-between;\n ";
|
|
61
|
-
}, function (props) {
|
|
62
|
-
return props.flexEnd && "\n justify-content: flex-end;\n ";
|
|
63
|
-
}, function (props) {
|
|
64
|
-
return props.mainRelative && "\n padding: 18px 0 28px;\n ";
|
|
65
|
-
}, function (props) {
|
|
66
|
-
return props.isConfirmModal && "\n justify-content: center;\n overflow: hidden;\n\n @media screen and (max-width: 767px) {\n height: 100vh;\n }\n ";
|
|
67
|
-
}, _rwd.default.Medium(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n "])), function (props) {
|
|
68
|
-
return props.part && "\n width: ".concat((0, _grid.default)(props.part, props.full), ";\n ");
|
|
69
|
-
}, function (props) {
|
|
70
|
-
return props.mainFixed && "\n position: fixed;\n top: ".concat(_spacing.default.headerHeight, "px;\n left: 0;\n height: calc(100% - ").concat(_spacing.default.headerHeight, "px);\n ");
|
|
71
|
-
}, function (props) {
|
|
72
|
-
return props.mainRelative && "\n position: relative;\n margin-left: ".concat((0, _grid.default)((props.full || 16) - props.part, props.full), ";\n border-left: 1px solid ").concat(_theme.default.cLightGrey, ";\n //padding: 54px 0 42px;\n ");
|
|
73
|
-
}, function (props) {
|
|
74
|
-
return props.withBorder && "\n border-left: 1px solid ".concat(_theme.default.cLightGrey, ";\n ");
|
|
75
|
-
}));
|
|
76
|
-
exports.Column = Column;
|
|
77
|
-
var PageWrapper = _styledComponents.default.div.withConfig({
|
|
32
|
+
})(["display:flex;flex-direction:column;width:100%;", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], props => props.halfWidth && "\n width: 50%;\n\n @media screen and (max-width: 500px) {\n width: 100%;\n }\n\n ", props => props.textAlignHopper && "\n > div:last-child {\n text-align:right;\n }\n\n @media screen and (max-width: 767px) {\n > div:last-child {\n text-align:left;\n }\n }\n\n @media screen and (max-width: 500px) {\n > div > div {\n justify-content: left;\n margin-top: 1rem;\n }\n }\n\n ", props => props.center && "\n justify-content: center;\n ", props => props.alignCenter && "\n align-items: center;\n ", props => props.alignRight && "\n text-align: right;\n align-items: center;\n ", props => props.spaceBetween && "\n justify-content: space-between;\n ", props => props.flexEnd && "\n justify-content: flex-end;\n ", props => props.mainRelative && "\n padding: 18px 0 28px;\n ", props => props.isConfirmModal && "\n justify-content: center;\n overflow: hidden;\n\n @media screen and (max-width: 767px) {\n height: 100vh;\n }\n ", _rwd.default.Medium(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n "])), props => props.part && "\n width: ".concat((0, _grid.default)(props.part, props.full), ";\n "), props => props.mainFixed && "\n position: fixed;\n top: ".concat(_spacing.default.headerHeight, "px;\n left: 0;\n height: calc(100% - ").concat(_spacing.default.headerHeight, "px);\n "), props => props.mainRelative && "\n position: relative;\n margin-left: ".concat((0, _grid.default)((props.full || 16) - props.part, props.full), ";\n border-left: 1px solid ").concat(_theme.default.cLightGrey, ";\n //padding: 54px 0 42px;\n "), props => props.withBorder && "\n border-left: 1px solid ".concat(_theme.default.cLightGrey, ";\n ")));
|
|
33
|
+
const PageWrapper = exports.PageWrapper = _styledComponents.default.div.withConfig({
|
|
78
34
|
displayName: "Gridstyles__PageWrapper",
|
|
79
35
|
componentId: "sc-1jreazl-3"
|
|
80
36
|
})(["min-height:100vh;display:flex;flex-direction:column;", "{flex-grow:1;}"], Row);
|
|
81
|
-
exports.
|
|
82
|
-
var FlexContainer = _styledComponents.default.div.withConfig({
|
|
37
|
+
const FlexContainer = exports.FlexContainer = _styledComponents.default.div.withConfig({
|
|
83
38
|
displayName: "Gridstyles__FlexContainer",
|
|
84
39
|
componentId: "sc-1jreazl-4"
|
|
85
|
-
})(["display:flex;", ""],
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
exports.FlexContainer = FlexContainer;
|
|
89
|
-
var FlexGrid = _styledComponents.default.div.withConfig({
|
|
40
|
+
})(["display:flex;", ""], props => props.itemsCenter && "align-items:center;");
|
|
41
|
+
const FlexGrid = exports.FlexGrid = _styledComponents.default.div.withConfig({
|
|
90
42
|
displayName: "Gridstyles__FlexGrid",
|
|
91
43
|
componentId: "sc-1jreazl-5"
|
|
92
|
-
})(["display:flex;flex-wrap:wrap;", ""],
|
|
93
|
-
return props.borderBottom && "\n border-bottom: 1px solid #e1e1e1;\n ";
|
|
94
|
-
});
|
|
95
|
-
exports.FlexGrid = FlexGrid;
|
|
44
|
+
})(["display:flex;flex-wrap:wrap;", ""], props => props.borderBottom && "\n border-bottom: 1px solid #e1e1e1;\n ");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -26,73 +25,57 @@ var _Grid = require("../Grid/Grid.styles");
|
|
|
26
25
|
var _FooterLayout = require("../Footer/FooterLayout");
|
|
27
26
|
var _globalVariables = require("../../constants/globalVariables");
|
|
28
27
|
var _rwd = require("../../styles/rwd");
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(
|
|
31
|
-
function
|
|
32
|
-
function
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
36
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
37
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
38
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
39
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
40
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } //import { Wrapper } from '../Input/Input.styles'
|
|
41
|
-
var productMenuItems = [{
|
|
28
|
+
const _excluded = ["activeMenu", "activateMenu", "user", "userPhoto", "logoutUser", "onLoginClick", "onSignUpClick", "useRelativePathForMenu", "useRelativePathForUserMenu", "progress", "withSidebar", "isSidebarExpanded", "sidebarHandler", "signupFlow", "noFixedPosition", "withoutLoginSignupButton"]; //import { Wrapper } from '../Input/Input.styles'
|
|
29
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
31
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
32
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
33
|
+
const productMenuItems = [{
|
|
42
34
|
name: 'End-to-End Tokenization',
|
|
43
|
-
onClick:
|
|
44
|
-
return window.location.href = "".concat(_globalVariables.platformURL, "/solutions/asset-tokenization");
|
|
45
|
-
},
|
|
35
|
+
onClick: () => window.location.href = "".concat(_globalVariables.platformURL, "/solutions/asset-tokenization"),
|
|
46
36
|
link: '/solutions/asset-tokenization'
|
|
47
37
|
}, {
|
|
48
38
|
name: 'Tokenization-as-a-Service',
|
|
49
|
-
onClick:
|
|
50
|
-
return window.location.href = "".concat(_globalVariables.platformURL, "/solutions/tokenization-as-service");
|
|
51
|
-
},
|
|
39
|
+
onClick: () => window.location.href = "".concat(_globalVariables.platformURL, "/solutions/tokenization-as-service"),
|
|
52
40
|
link: '/solutions/tokenization-as-service'
|
|
53
41
|
}];
|
|
54
|
-
|
|
42
|
+
const mediaMenuItems = [{
|
|
55
43
|
name: 'Press Releases',
|
|
56
|
-
onClick:
|
|
57
|
-
return window.location.href = "".concat(_globalVariables.platformURL, "/press-releases");
|
|
58
|
-
},
|
|
44
|
+
onClick: () => window.location.href = "".concat(_globalVariables.platformURL, "/press-releases"),
|
|
59
45
|
link: '/press-releases'
|
|
60
46
|
}, {
|
|
61
47
|
name: 'Stoke Post',
|
|
62
|
-
onClick:
|
|
63
|
-
return window.location.href = "".concat(_globalVariables.platformURL, "/stoke-post");
|
|
64
|
-
},
|
|
48
|
+
onClick: () => window.location.href = "".concat(_globalVariables.platformURL, "/stoke-post"),
|
|
65
49
|
link: '/stoke-post'
|
|
66
50
|
}];
|
|
67
|
-
|
|
51
|
+
const investorMenuItems = [{
|
|
68
52
|
title: 'Dashboard',
|
|
69
53
|
link: '/checklist'
|
|
70
54
|
}];
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
avatar: avatar
|
|
55
|
+
const UserAvatarComponent = _ref => {
|
|
56
|
+
let {
|
|
57
|
+
avatar
|
|
58
|
+
} = _ref;
|
|
59
|
+
const [photo, setphoto] = (0, _react.useState)(_avatarPlaceholder.default);
|
|
60
|
+
const prevProps = (0, _customHooks.usePrevious)({
|
|
61
|
+
avatar
|
|
79
62
|
});
|
|
80
|
-
(0, _react.useEffect)(
|
|
63
|
+
(0, _react.useEffect)(() => {
|
|
81
64
|
checkUserPhoto(avatar);
|
|
82
65
|
}, []);
|
|
83
|
-
(0, _react.useEffect)(
|
|
66
|
+
(0, _react.useEffect)(() => {
|
|
84
67
|
if (avatar != (prevProps === null || prevProps === void 0 ? void 0 : prevProps.avatar)) {
|
|
85
68
|
checkUserPhoto(avatar);
|
|
86
69
|
}
|
|
87
|
-
return
|
|
70
|
+
return () => {
|
|
88
71
|
if (prevProps != null) {
|
|
89
72
|
prevProps.avatar = avatar;
|
|
90
73
|
}
|
|
91
74
|
};
|
|
92
75
|
}, [avatar]);
|
|
93
|
-
|
|
76
|
+
const checkUserPhoto = avatar => {
|
|
94
77
|
try {
|
|
95
|
-
|
|
78
|
+
const http = new XMLHttpRequest();
|
|
96
79
|
http.open('HEAD', avatar, true);
|
|
97
80
|
http.send();
|
|
98
81
|
if (http.status !== 404) {
|
|
@@ -106,15 +89,14 @@ var UserAvatarComponent = function UserAvatarComponent(_ref) {
|
|
|
106
89
|
src: photo
|
|
107
90
|
});
|
|
108
91
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
subMenuItems =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
platformURL = _ref2$platformURL === void 0 ? '' : _ref2$platformURL;
|
|
92
|
+
const RenderSubMenu = _ref2 => {
|
|
93
|
+
let {
|
|
94
|
+
title,
|
|
95
|
+
isActive,
|
|
96
|
+
subMenuItems = [],
|
|
97
|
+
onClick = () => {},
|
|
98
|
+
platformURL = ''
|
|
99
|
+
} = _ref2;
|
|
118
100
|
return /*#__PURE__*/_react.default.createElement(_Header.MobileMenuWrapper, {
|
|
119
101
|
onClick: onClick
|
|
120
102
|
}, /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement(_Header.StyledSubMenu, null, /*#__PURE__*/_react.default.createElement("a", null, title), /*#__PURE__*/_react.default.createElement(_FooterMenu.ArrowDown, {
|
|
@@ -126,68 +108,44 @@ var RenderSubMenu = function RenderSubMenu(_ref2) {
|
|
|
126
108
|
}
|
|
127
109
|
}))), /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
128
110
|
isOpened: isActive
|
|
129
|
-
}, subMenuItems.map(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}, item.name));
|
|
136
|
-
})));
|
|
111
|
+
}, subMenuItems.map(item => /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, {
|
|
112
|
+
key: item.name,
|
|
113
|
+
red: true
|
|
114
|
+
}, /*#__PURE__*/_react.default.createElement(_Header.MobileMenuLink, {
|
|
115
|
+
href: platformURL + item.link
|
|
116
|
+
}, item.name)))));
|
|
137
117
|
};
|
|
138
118
|
|
|
139
119
|
//social links to render in mobile menu
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
_ref3$useRelativePath2 = _ref3.useRelativePathForUserMenu,
|
|
161
|
-
useRelativePathForUserMenu = _ref3$useRelativePath2 === void 0 ? false : _ref3$useRelativePath2,
|
|
162
|
-
_ref3$progress = _ref3.progress,
|
|
163
|
-
progress = _ref3$progress === void 0 ? null : _ref3$progress,
|
|
164
|
-
_ref3$withSidebar = _ref3.withSidebar,
|
|
165
|
-
withSidebar = _ref3$withSidebar === void 0 ? false : _ref3$withSidebar,
|
|
166
|
-
_ref3$isSidebarExpand = _ref3.isSidebarExpanded,
|
|
167
|
-
isSidebarExpanded = _ref3$isSidebarExpand === void 0 ? false : _ref3$isSidebarExpand,
|
|
168
|
-
_ref3$sidebarHandler = _ref3.sidebarHandler,
|
|
169
|
-
sidebarHandler = _ref3$sidebarHandler === void 0 ? function () {} : _ref3$sidebarHandler,
|
|
170
|
-
_ref3$signupFlow = _ref3.signupFlow,
|
|
171
|
-
signupFlow = _ref3$signupFlow === void 0 ? false : _ref3$signupFlow,
|
|
172
|
-
_ref3$noFixedPosition = _ref3.noFixedPosition,
|
|
173
|
-
noFixedPosition = _ref3$noFixedPosition === void 0 ? false : _ref3$noFixedPosition,
|
|
174
|
-
_ref3$withoutLoginSig = _ref3.withoutLoginSignupButton,
|
|
175
|
-
withoutLoginSignupButton = _ref3$withoutLoginSig === void 0 ? false : _ref3$withoutLoginSig,
|
|
120
|
+
const socialLinks = (_FooterLayout.footerGroups === null || _FooterLayout.footerGroups === void 0 ? void 0 : _FooterLayout.footerGroups.filter(group => group.social)[0].items) || [];
|
|
121
|
+
const Header = _ref3 => {
|
|
122
|
+
let {
|
|
123
|
+
activeMenu = null,
|
|
124
|
+
activateMenu = () => {},
|
|
125
|
+
user = {},
|
|
126
|
+
userPhoto = _avatarPlaceholder.default,
|
|
127
|
+
logoutUser = () => {},
|
|
128
|
+
onLoginClick = () => {},
|
|
129
|
+
onSignUpClick = () => {},
|
|
130
|
+
useRelativePathForMenu = false,
|
|
131
|
+
useRelativePathForUserMenu = false,
|
|
132
|
+
progress = null,
|
|
133
|
+
withSidebar = false,
|
|
134
|
+
isSidebarExpanded = false,
|
|
135
|
+
sidebarHandler = () => {},
|
|
136
|
+
signupFlow = false,
|
|
137
|
+
noFixedPosition = false,
|
|
138
|
+
withoutLoginSignupButton = false
|
|
139
|
+
} = _ref3,
|
|
176
140
|
props = _objectWithoutProperties(_ref3, _excluded);
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
var _useState5 = (0, _react.useState)(null),
|
|
182
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
183
|
-
currentActiveSubMenu = _useState6[0],
|
|
184
|
-
setcurrentActiveSubMenu = _useState6[1];
|
|
185
|
-
var prevAmount = (0, _customHooks.usePrevious)({
|
|
186
|
-
activeMenu: activeMenu
|
|
141
|
+
const [currentActiveMenu, setcurrentActiveMenu] = (0, _react.useState)(null);
|
|
142
|
+
const [currentActiveSubMenu, setcurrentActiveSubMenu] = (0, _react.useState)(null);
|
|
143
|
+
const prevAmount = (0, _customHooks.usePrevious)({
|
|
144
|
+
activeMenu
|
|
187
145
|
});
|
|
188
|
-
|
|
189
|
-
(0, _react.useEffect)(
|
|
190
|
-
return
|
|
146
|
+
const isMobile = (0, _customHooks.useMobileView)(_rwd.sizes.MLarge);
|
|
147
|
+
(0, _react.useEffect)(() => {
|
|
148
|
+
return () => {
|
|
191
149
|
// Cleanup on unmount
|
|
192
150
|
document.body.style.overflow = 'unset';
|
|
193
151
|
document.body.style.position = 'relative';
|
|
@@ -195,7 +153,7 @@ var Header = function Header(_ref3) {
|
|
|
195
153
|
document.documentElement.style.overflowY = 'unset';
|
|
196
154
|
};
|
|
197
155
|
}, []);
|
|
198
|
-
(0, _react.useEffect)(
|
|
156
|
+
(0, _react.useEffect)(() => {
|
|
199
157
|
//this is used when clicked outside the header
|
|
200
158
|
if ((prevAmount === null || prevAmount === void 0 ? void 0 : prevAmount.activeMenu) !== activeMenu) {
|
|
201
159
|
if (activeMenu !== null) {
|
|
@@ -203,18 +161,18 @@ var Header = function Header(_ref3) {
|
|
|
203
161
|
activateMenu();
|
|
204
162
|
}
|
|
205
163
|
}
|
|
206
|
-
return
|
|
164
|
+
return () => {
|
|
207
165
|
if (prevAmount != null) {
|
|
208
166
|
prevAmount.activeMenu = activeMenu;
|
|
209
167
|
}
|
|
210
168
|
};
|
|
211
169
|
}, [activeMenu, activateMenu]);
|
|
212
|
-
|
|
213
|
-
|
|
170
|
+
const toggleMenu = function (type) {
|
|
171
|
+
let mobile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
214
172
|
if (activeMenu === false) {
|
|
215
173
|
setcurrentActiveMenu(null);
|
|
216
174
|
}
|
|
217
|
-
|
|
175
|
+
const newActiveMenu = currentActiveMenu === type ? null : type;
|
|
218
176
|
if (isMobile) {
|
|
219
177
|
if (newActiveMenu) {
|
|
220
178
|
document.body.style.overflowY = 'hidden';
|
|
@@ -234,13 +192,13 @@ var Header = function Header(_ref3) {
|
|
|
234
192
|
}
|
|
235
193
|
activateMenu();
|
|
236
194
|
};
|
|
237
|
-
|
|
238
|
-
|
|
195
|
+
const userType = user && user.user_type;
|
|
196
|
+
const isAdmin = userType === 'company_pa' || userType === 'company_sa' || userType === 'sa';
|
|
239
197
|
|
|
240
198
|
//currently we have sidebar only in venture dashboard
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
199
|
+
const isVentureDashboard = withSidebar;
|
|
200
|
+
const newPlatformUrl = useRelativePathForMenu ? '' : _globalVariables.platformURL;
|
|
201
|
+
const newPlatformUrlForUserMenu = useRelativePathForUserMenu ? '' : "https://dashboard.".concat(_globalVariables.platformDomain);
|
|
244
202
|
return /*#__PURE__*/_react.default.createElement(_Header.StyledHeader, {
|
|
245
203
|
noFixedPosition: noFixedPosition
|
|
246
204
|
}, /*#__PURE__*/_react.default.createElement(_Grid.Wrapper, {
|
|
@@ -261,14 +219,10 @@ var Header = function Header(_ref3) {
|
|
|
261
219
|
href: newPlatformUrl + '/featured-assets',
|
|
262
220
|
"data-cy": "invest-nav-link"
|
|
263
221
|
}, "Invest")), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("a", {
|
|
264
|
-
onClick:
|
|
265
|
-
return toggleMenu('products');
|
|
266
|
-
},
|
|
222
|
+
onClick: () => toggleMenu('products'),
|
|
267
223
|
"data-cy": "products-nav-link"
|
|
268
224
|
}, "Solutions")), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("a", {
|
|
269
|
-
onClick:
|
|
270
|
-
return toggleMenu('media');
|
|
271
|
-
},
|
|
225
|
+
onClick: () => toggleMenu('media'),
|
|
272
226
|
"data-cy": "media-nav-link"
|
|
273
227
|
}, "Media")), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("a", {
|
|
274
228
|
href: newPlatformUrl + '/team',
|
|
@@ -283,9 +237,7 @@ var Header = function Header(_ref3) {
|
|
|
283
237
|
hasProgress: progress
|
|
284
238
|
}, /*#__PURE__*/_react.default.createElement(_Header.MobileMenuToggler, {
|
|
285
239
|
isActive: currentActiveMenu === 'main',
|
|
286
|
-
onClick:
|
|
287
|
-
return toggleMenu('main');
|
|
288
|
-
},
|
|
240
|
+
onClick: () => toggleMenu('main'),
|
|
289
241
|
withSidebar: withSidebar
|
|
290
242
|
}, /*#__PURE__*/_react.default.createElement("span", null), /*#__PURE__*/_react.default.createElement("span", null), /*#__PURE__*/_react.default.createElement("span", null)), isMobile && (0, _checkTodoStatus.default)(user) > 0 && !signupFlow && /*#__PURE__*/_react.default.createElement(_NotificationCounter.default, {
|
|
291
243
|
mobile: true,
|
|
@@ -297,14 +249,12 @@ var Header = function Header(_ref3) {
|
|
|
297
249
|
}, "Log Out") : /*#__PURE__*/_react.default.createElement(_Grid.FlexContainer, {
|
|
298
250
|
itemsCenter: true
|
|
299
251
|
}, /*#__PURE__*/_react.default.createElement(_breakdown.default, null, /*#__PURE__*/_react.default.createElement(_Header.LoginButton, {
|
|
300
|
-
onClick:
|
|
252
|
+
onClick: () => {
|
|
301
253
|
isAdmin ? window.location.href = 'https://admin.' + _globalVariables.platformDomain : window.location.href = "".concat(newPlatformUrlForUserMenu, "/overview");
|
|
302
254
|
},
|
|
303
255
|
"data-cy": "dashboard-nav-link"
|
|
304
256
|
}, "Dashboard")), /*#__PURE__*/_react.default.createElement(_Header.UserAccount, null, /*#__PURE__*/_react.default.createElement(_Header.UserButton, {
|
|
305
|
-
onClick:
|
|
306
|
-
return toggleMenu('main');
|
|
307
|
-
}
|
|
257
|
+
onClick: () => toggleMenu('main')
|
|
308
258
|
}, /*#__PURE__*/_react.default.createElement(UserAvatarComponent, {
|
|
309
259
|
avatar: userPhoto
|
|
310
260
|
})), (0, _checkTodoStatus.default)(user) > 0 && /*#__PURE__*/_react.default.createElement(_NotificationCounter.default, {
|
|
@@ -330,7 +280,7 @@ var Header = function Header(_ref3) {
|
|
|
330
280
|
isActive: currentActiveSubMenu === 'products',
|
|
331
281
|
subMenuItems: productMenuItems,
|
|
332
282
|
platformURL: newPlatformUrl,
|
|
333
|
-
onClick:
|
|
283
|
+
onClick: () => {
|
|
334
284
|
toggleMenu('products', true);
|
|
335
285
|
}
|
|
336
286
|
}), /*#__PURE__*/_react.default.createElement(RenderSubMenu, {
|
|
@@ -338,7 +288,7 @@ var Header = function Header(_ref3) {
|
|
|
338
288
|
isActive: currentActiveSubMenu === 'media',
|
|
339
289
|
subMenuItems: mediaMenuItems,
|
|
340
290
|
platformURL: newPlatformUrl,
|
|
341
|
-
onClick:
|
|
291
|
+
onClick: () => {
|
|
342
292
|
toggleMenu('media', true);
|
|
343
293
|
}
|
|
344
294
|
}), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement(_Header.MobileMenuLink, {
|
|
@@ -353,31 +303,21 @@ var Header = function Header(_ref3) {
|
|
|
353
303
|
href: '/settings'
|
|
354
304
|
}, "Settings")) : /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
355
305
|
href: 'https://admin.' + _globalVariables.platformDomain,
|
|
356
|
-
onClick:
|
|
357
|
-
return toggleMenu('main');
|
|
358
|
-
}
|
|
306
|
+
onClick: () => toggleMenu('main')
|
|
359
307
|
}, "Dashboard"))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
360
308
|
href: "".concat(newPlatformUrlForUserMenu, "/overview"),
|
|
361
|
-
onClick:
|
|
362
|
-
return toggleMenu('main');
|
|
363
|
-
}
|
|
309
|
+
onClick: () => toggleMenu('main')
|
|
364
310
|
}, "Dashboard"), (0, _checkTodoStatus.default)(user) > 0 && /*#__PURE__*/_react.default.createElement(_NotificationCounter.default, {
|
|
365
311
|
mobileMenu: true
|
|
366
312
|
}, (0, _checkTodoStatus.default)(user))), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
367
313
|
href: "".concat(newPlatformUrlForUserMenu, "/settings/profile-and-privacy"),
|
|
368
|
-
onClick:
|
|
369
|
-
return toggleMenu('main');
|
|
370
|
-
}
|
|
314
|
+
onClick: () => toggleMenu('main')
|
|
371
315
|
}, "Profile and Privacy")), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
372
316
|
href: "".concat(newPlatformUrlForUserMenu, "/settings/liquid-address"),
|
|
373
|
-
onClick:
|
|
374
|
-
return toggleMenu('main');
|
|
375
|
-
}
|
|
317
|
+
onClick: () => toggleMenu('main')
|
|
376
318
|
}, "Liquid Addresses")), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
377
319
|
href: "".concat(newPlatformUrlForUserMenu, "/settings/investment-eligibility"),
|
|
378
|
-
onClick:
|
|
379
|
-
return toggleMenu('main');
|
|
380
|
-
}
|
|
320
|
+
onClick: () => toggleMenu('main')
|
|
381
321
|
}, "Investment eligibility")))))), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuPart, {
|
|
382
322
|
withPadding: true,
|
|
383
323
|
flexColumnt: true,
|
|
@@ -387,9 +327,7 @@ var Header = function Header(_ref3) {
|
|
|
387
327
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
388
328
|
minWidth: "160px",
|
|
389
329
|
secondary: true,
|
|
390
|
-
onClick:
|
|
391
|
-
return logoutUser();
|
|
392
|
-
}
|
|
330
|
+
onClick: () => logoutUser()
|
|
393
331
|
}, "log out"))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, withoutLoginSignupButton ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_breakdown.default, {
|
|
394
332
|
alignCenter: true
|
|
395
333
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
@@ -407,15 +345,13 @@ var Header = function Header(_ref3) {
|
|
|
407
345
|
isMobile: true
|
|
408
346
|
}, "Sign Up"))), socialLinks.length > 0 && /*#__PURE__*/_react.default.createElement(_Header.CTAContainer, null, /*#__PURE__*/_react.default.createElement("span", null, "FOLLOW US"), /*#__PURE__*/_react.default.createElement(_Header.SocialLinksContainer, {
|
|
409
347
|
isHeader: true
|
|
410
|
-
}, socialLinks.map(
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}, _FooterMenu2.socialSvg[item.name]);
|
|
418
|
-
}))))), /*#__PURE__*/_react.default.createElement(_DynamicMainMenu.default, {
|
|
348
|
+
}, socialLinks.map(item => /*#__PURE__*/_react.default.createElement(_FooterMenu.SocialLink, {
|
|
349
|
+
key: item.name,
|
|
350
|
+
href: item.url,
|
|
351
|
+
icon: item.name,
|
|
352
|
+
target: "_blank",
|
|
353
|
+
rel: "noopener noreferrer"
|
|
354
|
+
}, _FooterMenu2.socialSvg[item.name])))))), /*#__PURE__*/_react.default.createElement(_DynamicMainMenu.default, {
|
|
419
355
|
isMenuActive: currentActiveMenu === 'products',
|
|
420
356
|
options: productMenuItems
|
|
421
357
|
}), /*#__PURE__*/_react.default.createElement(_DynamicMainMenu.default, {
|
|
@@ -458,8 +394,7 @@ Header.propTypes = {
|
|
|
458
394
|
Header.defaultProps = {
|
|
459
395
|
progress: null,
|
|
460
396
|
signupFlow: false,
|
|
461
|
-
loginHandler:
|
|
462
|
-
signupHandler:
|
|
397
|
+
loginHandler: () => {},
|
|
398
|
+
signupHandler: () => {}
|
|
463
399
|
};
|
|
464
|
-
var _default = Header;
|
|
465
|
-
exports.default = _default;
|
|
400
|
+
var _default = exports.default = Header;
|