@stokr/components-library 0.6.6 → 0.6.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/package.json +84 -77
- package/.vscode/settings.json +0 -3
- package/CHANGELOG.md +0 -7
- package/Dockerfile +0 -20
- package/build/asset-manifest.json +0 -45
- package/build/favicon.ico +0 -0
- package/build/index.html +0 -1
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- package/build/static/css/main.e30a9d15.css +0 -15
- package/build/static/css/main.e30a9d15.css.map +0 -1
- package/build/static/js/main.8c250652.js +0 -3
- package/build/static/js/main.8c250652.js.LICENSE.txt +0 -158
- package/build/static/js/main.8c250652.js.map +0 -1
- package/build/static/media/Ionicons.4e528d6445ca1974c313.woff +0 -0
- package/build/static/media/Ionicons.643c37f102b41f7f90c3.woff2 +0 -0
- package/build/static/media/Ionicons.98b7d3182f652f021bc3.ttf +0 -0
- package/build/static/media/OpenSans-Bold.9bea22b57dc165ed4382.ttf +0 -0
- package/build/static/media/OpenSans-Bold.a750292d6a0b5a760679.woff +0 -0
- package/build/static/media/OpenSans-Bold.cbfc24090ef8bacab132.woff2 +0 -0
- package/build/static/media/OpenSans-ExtraBold.21e493d43617de76dbc7.woff2 +0 -0
- package/build/static/media/OpenSans-ExtraBold.81f3ef07b7952e249da1.woff +0 -0
- package/build/static/media/OpenSans-ExtraBold.bcb6531cf820152b7538.ttf +0 -0
- package/build/static/media/OpenSans-Light.179ef2df02cb0b68c9fd.woff2 +0 -0
- package/build/static/media/OpenSans-Light.55053cc0a8e6482eca64.ttf +0 -0
- package/build/static/media/OpenSans-Light.c6a4bc1bd034d6303053.woff +0 -0
- package/build/static/media/OpenSans-Regular.3caa0d4f9b7d58668066.woff2 +0 -0
- package/build/static/media/OpenSans-Regular.9ec738fbb66068dc1ca7.woff +0 -0
- package/build/static/media/OpenSans-Regular.d97d7385fe8771611848.ttf +0 -0
- package/build/static/media/OpenSans-SemiBold.311956ded96d3fd2813d.woff2 +0 -0
- package/build/static/media/OpenSans-SemiBold.39f5961b2d3eb4aa5bf5.woff +0 -0
- package/build/static/media/OpenSans-SemiBold.d2b1865643b98c0e8b54.ttf +0 -0
- package/build/static/media/address-refreshing.5fbb0cc56c384480118a.gif +0 -0
- package/build/static/media/arrow-down-black.fe92da3ac6ed16b45bf57713df82cea2.svg +0 -21
- package/build/static/media/avatar-placeholder.488a33b3f080a43e0d43.png +0 -0
- package/build/static/media/icomoon.2640959b1f9381cde047.eot +0 -0
- package/build/static/media/icomoon.35bce49b15feeae93572c36a08feecd9.svg +0 -47
- package/build/static/media/icomoon.4c3c428d0ce82f840710.woff +0 -0
- package/build/static/media/icomoon.a1d7666a48f976227722.ttf +0 -0
- package/build/static/media/lemonway.33e88c3a49e7ac73e3a9.png +0 -0
- package/build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg +0 -1
- package/build/static/media/slick.2630a3e3eab21c607e21.svg +0 -14
- package/build/static/media/slick.295183786cd8a1389865.woff +0 -0
- package/build/static/media/slick.a4e97f5a2a64f0ab1323.eot +0 -0
- package/build/static/media/slick.c94f7671dcc99dce43e2.ttf +0 -0
- package/build/static/media/whales.7a1e9453670d08b8b76a.png +0 -0
- package/buildpushndeploy.sh +0 -9
- package/devops/Dockerfile +0 -20
- package/devops/Jenkinsfile +0 -56
- package/devops/ansible/docker-stack-deploy.yml +0 -32
- package/devops/ansible/hosts.ini +0 -7
- package/devops/docker-compose.yml +0 -25
- package/dist/api/StokrWeb3.js +0 -184
- package/dist/api/fetchData.js +0 -76
- package/dist/api/fetchDataPublic.js +0 -65
- package/dist/components/AccountBalance/AccountBalance.js +0 -53
- package/dist/components/AccountBalance/AccountBalance.stories.js +0 -88
- package/dist/components/AccountBalance/AccountBalance.styles.js +0 -40
- package/dist/components/AdminDashboard/Table/Table.js +0 -170
- package/dist/components/AdminDashboard/Table/Table.styles.js +0 -79
- package/dist/components/AgreementItem/AgreementItem.js +0 -51
- package/dist/components/AgreementItem/AgreementItem.stories.js +0 -109
- package/dist/components/AgreementItem/AgreementItem.styles.js +0 -35
- package/dist/components/AnalyticGraphs/Analytic.js +0 -781
- package/dist/components/AnalyticGraphs/Analytic.styles.js +0 -37
- package/dist/components/BackButton/BackButton.js +0 -32
- package/dist/components/BackButton/BackButton.stories.js +0 -35
- package/dist/components/BackButton/BackButton.styles.js +0 -76
- package/dist/components/Background/Background.js +0 -41
- package/dist/components/Background/Background.stories.js +0 -62
- package/dist/components/Background/Background.styles.js +0 -69
- package/dist/components/BarChart/BarChart.js +0 -304
- package/dist/components/BarChart/BarChart.stories.js +0 -47
- package/dist/components/BarChart/BarChart.styles.js +0 -33
- package/dist/components/BarChartLegend/BarChartLegend.js +0 -106
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +0 -26
- package/dist/components/BasicTable/BasicTable.js +0 -32
- package/dist/components/BasicTable/BasicTable.stories.js +0 -63
- package/dist/components/BasicTable/BasicTable.styles.js +0 -52
- package/dist/components/Button/Button.stories.js +0 -79
- package/dist/components/Button/Button.styles.js +0 -83
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +0 -18
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -45
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +0 -34
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +0 -34
- package/dist/components/ChartBox/ChartBox.js +0 -44
- package/dist/components/ChartBox/ChartBox.stories.js +0 -20
- package/dist/components/ChartBox/ChartBox.styles.js +0 -33
- package/dist/components/ChartBox/ChartBoxDistribution.js +0 -30
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +0 -21
- package/dist/components/ChartLegend/ChartLegend.js +0 -62
- package/dist/components/ChartLegend/ChartLegend.stories.js +0 -87
- package/dist/components/ChartLegend/ChartLegend.styles.js +0 -64
- package/dist/components/Checkbox/Checkbox.js +0 -116
- package/dist/components/Checkbox/Checkbox.stories.js +0 -92
- package/dist/components/Checkbox/Checkbox.styles.js +0 -45
- package/dist/components/Checklist/UserChecklist.js +0 -274
- package/dist/components/Checklist/UserChecklist.stories.js +0 -126
- package/dist/components/ComponentScroll/ComponentScroll.js +0 -138
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +0 -102
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +0 -66
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +0 -68
- package/dist/components/CryptoAddress/ComponentWrap.js +0 -37
- package/dist/components/CryptoAddress/CryptoAddress.js +0 -145
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +0 -173
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +0 -186
- package/dist/components/CryptoAddress/RadioWrap.js +0 -49
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +0 -54
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -74
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +0 -67
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +0 -40
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +0 -59
- package/dist/components/DonutChart/DonutChart.js +0 -182
- package/dist/components/DonutChart/DonutChart.stories.js +0 -40
- package/dist/components/DonutChart/DonutChart.styles.js +0 -50
- package/dist/components/DoubleButton/DoubleButton.styles.js +0 -22
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +0 -15
- package/dist/components/FAQ/FAQ.js +0 -65
- package/dist/components/FAQ/FAQ.stories.js +0 -74
- package/dist/components/FAQ/FAQ.styles.js +0 -48
- package/dist/components/Footer/Footer.js +0 -66
- package/dist/components/Footer/Footer.stories.js +0 -54
- package/dist/components/Footer/Footer.styles.js +0 -74
- package/dist/components/Footer/FooterLayout.js +0 -129
- package/dist/components/Footer/FooterLayout.stories.js +0 -31
- package/dist/components/Footer/FooterMenu.js +0 -117
- package/dist/components/Footer/FooterMenu.stories.js +0 -121
- package/dist/components/Footer/FooterMenu.styles.js +0 -80
- package/dist/components/Footer/index.js +0 -27
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +0 -127
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -42
- package/dist/components/Form/Form.js +0 -68
- package/dist/components/Form/Form.stories.js +0 -35
- package/dist/components/Form/Form.styles.js +0 -59
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +0 -32
- package/dist/components/Grid/Grid.styles.js +0 -68
- package/dist/components/Header/Header.js +0 -452
- package/dist/components/Header/Header.stories.js +0 -188
- package/dist/components/Header/Header.styles.js +0 -180
- package/dist/components/Icon/Icon.style.js +0 -71
- package/dist/components/InfoIcon/InfoIcon.js +0 -50
- package/dist/components/InfoIcon/InfoIcon.stories.js +0 -52
- package/dist/components/InfoIcon/InfoIcon.styles.js +0 -31
- package/dist/components/InfoPanel/InfoPanel.js +0 -146
- package/dist/components/Input/DatePickerInput.js +0 -85
- package/dist/components/Input/DatePickerInput.stories.js +0 -91
- package/dist/components/Input/DatePickerInput.styles.js +0 -29
- package/dist/components/Input/Input.js +0 -108
- package/dist/components/Input/Input.stories.js +0 -148
- package/dist/components/Input/Input.styles.js +0 -53
- package/dist/components/Input/InputPassword.js +0 -151
- package/dist/components/Input/InputPassword.stories.js +0 -85
- package/dist/components/Input/InputPassword.styles.js +0 -80
- package/dist/components/Input/RangeInput.js +0 -60
- package/dist/components/Input/RangeInput.stories.js +0 -59
- package/dist/components/Input/RangeInput.styles.js +0 -53
- package/dist/components/Input/Select.js +0 -148
- package/dist/components/Input/Select.stories.js +0 -142
- package/dist/components/Input/Select.styles.js +0 -65
- package/dist/components/InvestCalculator/InvestCalculator.js +0 -367
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +0 -137
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +0 -66
- package/dist/components/InvestmentStat/InvestmentStat.js +0 -40
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +0 -56
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +0 -43
- package/dist/components/KYCFlow/BasicInfo.js +0 -489
- package/dist/components/KYCFlow/Confirmation.js +0 -51
- package/dist/components/KYCFlow/DocumentFileUpload.js +0 -276
- package/dist/components/KYCFlow/DocumentScan.js +0 -74
- package/dist/components/KYCFlow/DocumentScanUpload.js +0 -258
- package/dist/components/KYCFlow/DocumentSelect.js +0 -148
- package/dist/components/KYCFlow/DocumentSuccess.js +0 -64
- package/dist/components/KYCFlow/DocumentUpload.js +0 -54
- package/dist/components/KYCFlow/DocumentVerificationType.js +0 -161
- package/dist/components/KYCFlow/FaceScan.js +0 -55
- package/dist/components/KYCFlow/FaceScanRecognition.js +0 -60
- package/dist/components/KYCFlow/FaceScanSuccess.js +0 -59
- package/dist/components/KYCFlow/Terms.js +0 -142
- package/dist/components/KYCFlow/_styles.js +0 -160
- package/dist/components/KYCFlow/index.js +0 -97
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +0 -41
- package/dist/components/LatestUpdate/LatestUpdate.js +0 -51
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +0 -62
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +0 -71
- package/dist/components/Layout/Layout-func-no-work.js +0 -78
- package/dist/components/Layout/Layout.js +0 -103
- package/dist/components/Layout/Layout.stories.js +0 -67
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +0 -47
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -70
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +0 -43
- package/dist/components/LearnMorePage/LearnMore.js +0 -255
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +0 -40
- package/dist/components/LearnMorePage/LearnMore.stories.js +0 -51
- package/dist/components/LearnMorePage/LearnMore.styles.js +0 -120
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +0 -87
- package/dist/components/LearnMorePage/LearnMoreItem.js +0 -75
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +0 -65
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +0 -87
- package/dist/components/LearnMoreSection/LearnMore.js +0 -199
- package/dist/components/LearnMoreSection/LearnMore.stories.js +0 -33
- package/dist/components/LearnMoreSection/LearnMore.styles.js +0 -73
- package/dist/components/LearnMoreSection/LearnMoreItem.js +0 -52
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +0 -62
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +0 -50
- package/dist/components/LoginModal/LoginModal.js +0 -163
- package/dist/components/MainMenu/DynamicMainMenu.js +0 -50
- package/dist/components/MainMenu/MainMenu.js +0 -262
- package/dist/components/MainMenu/MainMenu.styles.js +0 -124
- package/dist/components/MatomoConnect/Matomo.js +0 -485
- package/dist/components/MatomoConnect/Matomo_fuckup.js +0 -383
- package/dist/components/MenuNav/MenuNav.styles.js +0 -42
- package/dist/components/Modal/Modal.js +0 -123
- package/dist/components/Modal/Modal.stories.js +0 -82
- package/dist/components/Modal/Modal.styles.js +0 -140
- package/dist/components/MultiProgressBar/MultiProgressBar.js +0 -48
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +0 -72
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +0 -41
- package/dist/components/Newsletter/Newsletter.js +0 -139
- package/dist/components/Newsletter/Newsletter.stories.js +0 -19
- package/dist/components/Newsletter/Newsletter.styles.js +0 -83
- package/dist/components/NotificationContext/NotificationContext.js +0 -173
- package/dist/components/NotificationContext/NotificationContext.stories.js +0 -33
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +0 -22
- package/dist/components/Number/Number.js +0 -35
- package/dist/components/Number/Number.stories.js +0 -41
- package/dist/components/Number/Number.styles.js +0 -20
- package/dist/components/PageTransition/PageTransition.js +0 -57
- package/dist/components/Process/Process.stories.js +0 -47
- package/dist/components/Process/Process.styles.js +0 -33
- package/dist/components/ProfileBadge/ProfileBadge.js +0 -53
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +0 -48
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +0 -32
- package/dist/components/ProfileBox/ProfileBox.js +0 -39
- package/dist/components/ProfileBox/ProfileBox.stories.js +0 -38
- package/dist/components/ProfileBox/ProfileBox.styles.js +0 -49
- package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +0 -477
- package/dist/components/ProfileHeader/ProfileHeader.js +0 -330
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +0 -87
- package/dist/components/ProfileStat/ProfileStat.js +0 -42
- package/dist/components/ProfileStat/ProfileStat.stories.js +0 -71
- package/dist/components/ProfileStat/ProfileStat.styles.js +0 -42
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +0 -69
- package/dist/components/ROI/ROI.js +0 -312
- package/dist/components/ROI/ROI.styles.js +0 -63
- package/dist/components/ROI/ROIChart.js +0 -469
- package/dist/components/ROI/ROIChart.styles.js +0 -33
- package/dist/components/ROI/ROIModal.js +0 -91
- package/dist/components/ROI/ROIScenarioBox.js +0 -55
- package/dist/components/ROI/ROIScenarioBox.styles.js +0 -52
- package/dist/components/Radio/Radio.js +0 -68
- package/dist/components/Radio/Radio.stories.js +0 -76
- package/dist/components/Radio/Radio.styles.js +0 -31
- package/dist/components/RefreshButton/RefreshButton.js +0 -21
- package/dist/components/RefreshButton/RefreshButton.stories.js +0 -41
- package/dist/components/RefreshButton/RefreshButton.styles.js +0 -39
- package/dist/components/RegisterAlgorand/AlgoAddressName.js +0 -138
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +0 -444
- package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +0 -47
- package/dist/components/RegisterAlgorand/AlgoSuccess.js +0 -38
- package/dist/components/RegisterAlgorand/Algorand.stories.js +0 -78
- package/dist/components/RegisterAlgorand/ChooseWallet.js +0 -97
- package/dist/components/RegisterAlgorand/SelectProject.js +0 -90
- package/dist/components/RegisterAlgorand/_styles.js +0 -28
- package/dist/components/RegisterAlgorand/flow.js +0 -409
- package/dist/components/RegisterAlgorand/flowWithMemo.js +0 -410
- package/dist/components/RegisterAlgorand/index.js +0 -48
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +0 -40
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -33
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +0 -16
- package/dist/components/RegisterEthereum/EthAddressLedger.js +0 -215
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +0 -205
- package/dist/components/RegisterEthereum/EthAddressName.js +0 -135
- package/dist/components/RegisterEthereum/EthConnectLedger.js +0 -194
- package/dist/components/RegisterEthereum/EthConnectMetamask.js +0 -35
- package/dist/components/RegisterEthereum/EthFinish.js +0 -41
- package/dist/components/RegisterEthereum/EthIntro.js +0 -95
- package/dist/components/RegisterEthereum/_styles.js +0 -28
- package/dist/components/RegisterEthereum/index.js +0 -68
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +0 -106
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +0 -66
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +0 -48
- package/dist/components/RegisterLiquidSteps/complete.js +0 -37
- package/dist/components/RegisterLiquidSteps/flow.js +0 -197
- package/dist/components/RegisterLiquidSteps/index.js +0 -52
- package/dist/components/RegisterLiquidSteps/register-liquid.js +0 -240
- package/dist/components/RegisterModal/RegisterModal.js +0 -180
- package/dist/components/RegisterModal/RegisterModal.stories.js +0 -46
- package/dist/components/RequestDataBox/RequestDataBox.js +0 -31
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +0 -40
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +0 -31
- package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -185
- package/dist/components/RiskQuestionnaire/_styles.js +0 -15
- package/dist/components/SEO/SEO.js +0 -71
- package/dist/components/SEO/SEO.stories.js +0 -64
- package/dist/components/SectionTitle/SectionTitle.styles.js +0 -15
- package/dist/components/SideLine/SideLine.js +0 -15
- package/dist/components/SideLine/SideLine.stories.js +0 -31
- package/dist/components/SideLine/SideLine.styles.js +0 -26
- package/dist/components/SigningSubflow/SignSubAddressMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubConnectLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubConnectMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubIntro.js +0 -54
- package/dist/components/SigningSubflow/SignSubSendLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubSendMetamask.js +0 -62
- package/dist/components/SigningSubflow/SignSubTransactionLedger.js +0 -161
- package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +0 -166
- package/dist/components/SigningSubflow/_styles.js +0 -45
- package/dist/components/SigningSubflow/index.js +0 -74
- package/dist/components/Slider/Slider.js +0 -50
- package/dist/components/Slider/Slider.stories.js +0 -72
- package/dist/components/Slider/Slider.styles.js +0 -23
- package/dist/components/SpanButton/SpanButton.styles.js +0 -15
- package/dist/components/StatusBadge/StatusBadge.styles.js +0 -20
- package/dist/components/StepController/StepController.js +0 -111
- package/dist/components/StepController/StepController.stories.js +0 -63
- package/dist/components/StepController/StepController.styles.js +0 -26
- package/dist/components/StepController/StepControllerContext.js +0 -104
- package/dist/components/StepController/StepControllerProgress.js +0 -40
- package/dist/components/StepController/StepControllerProgress.stories.js +0 -52
- package/dist/components/StepsProgress/StepsProgress.js +0 -127
- package/dist/components/StepsProgress/StepsProgress.stories.js +0 -50
- package/dist/components/StepsProgress/StepsProgress.styles.js +0 -36
- package/dist/components/StokrLoader/StokrLoader.js +0 -32
- package/dist/components/StokrLoader/media.js +0 -27
- package/dist/components/SvgIcons/AdminBadgeSvg.js +0 -26
- package/dist/components/SvgIcons/CameraSvg.js +0 -36
- package/dist/components/SvgIcons/CapsLockSvg.js +0 -31
- package/dist/components/SvgIcons/DocumentBackSvg.js +0 -35
- package/dist/components/SvgIcons/DocumentSmallSvg.js +0 -61
- package/dist/components/SvgIcons/DocumentSvg.js +0 -38
- package/dist/components/SvgIcons/Early.js +0 -24
- package/dist/components/SvgIcons/EthSvg.js +0 -40
- package/dist/components/SvgIcons/EurSvg.js +0 -26
- package/dist/components/SvgIcons/FaceScanIconSvg.js +0 -31
- package/dist/components/SvgIcons/FourSvg.js +0 -21
- package/dist/components/SvgIcons/Glassess.js +0 -29
- package/dist/components/SvgIcons/LogoSvg.js +0 -24
- package/dist/components/SvgIcons/OneSvg.js +0 -23
- package/dist/components/SvgIcons/PassportSvg.js +0 -56
- package/dist/components/SvgIcons/RefreshSvg.js +0 -27
- package/dist/components/SvgIcons/SocialFacebook.js +0 -25
- package/dist/components/SvgIcons/SocialInstagram.js +0 -26
- package/dist/components/SvgIcons/SocialLinkedIn.js +0 -25
- package/dist/components/SvgIcons/SocialMedium.js +0 -25
- package/dist/components/SvgIcons/SocialReddit.js +0 -25
- package/dist/components/SvgIcons/SocialTelegram.js +0 -25
- package/dist/components/SvgIcons/SocialTwitter.js +0 -25
- package/dist/components/SvgIcons/SocialYoutube.js +0 -25
- package/dist/components/SvgIcons/ThreeSvg.js +0 -20
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +0 -82
- package/dist/components/SvgIcons/TwoSvg.js +0 -23
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +0 -29
- package/dist/components/SvgIcons/UpdateHardSvg.js +0 -25
- package/dist/components/SvgIcons/UpdateSoftSvg.js +0 -27
- package/dist/components/SvgIcons/UploadSvg.js +0 -34
- package/dist/components/SvgIcons/VerifiedBadge.js +0 -23
- package/dist/components/SvgIcons/index.js +0 -223
- package/dist/components/Switch/Switch.js +0 -70
- package/dist/components/Switch/Switch.stories.js +0 -86
- package/dist/components/Switch/Switch.styles.js +0 -47
- package/dist/components/Tabs/Tabs.js +0 -70
- package/dist/components/Tabs/Tabs.stories.js +0 -29
- package/dist/components/Tabs/Tabs.styles.js +0 -18
- package/dist/components/TabsNav/TabNav.js +0 -31
- package/dist/components/TabsNav/TabNav.stories.js +0 -44
- package/dist/components/TabsNav/TabsNav.js +0 -43
- package/dist/components/TabsNav/TabsNav.stories.js +0 -26
- package/dist/components/TabsNav/TabsNav.styles.js +0 -43
- package/dist/components/TeamOverview/TeamOverview.js +0 -125
- package/dist/components/TeamOverview/TeamOverview.stories.js +0 -80
- package/dist/components/TeamOverview/TeamOverview.styles.js +0 -81
- package/dist/components/Text/Headline.js +0 -29
- package/dist/components/Text/Headline.stories.js +0 -51
- package/dist/components/Text/StyledText.js +0 -19
- package/dist/components/Text/Text.stories.js +0 -71
- package/dist/components/Text/Text.styles.js +0 -40
- package/dist/components/TextLink/TextLink.styles.js +0 -30
- package/dist/components/ToDoList/ToDoList.js +0 -184
- package/dist/components/ToDoList/ToDoList.stories.js +0 -137
- package/dist/components/ToDoList/ToDoList.styles.js +0 -83
- package/dist/components/ToDoList/ToDoListTask.js +0 -118
- package/dist/components/ToDoList/ToDoListTask.stories.js +0 -72
- package/dist/components/ToDoList/ToDoListTask.styles.js +0 -74
- package/dist/components/TransactionDetails/TransactionDetails.js +0 -46
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +0 -59
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +0 -31
- package/dist/components/TransactionInfo/TransactionInfo.js +0 -58
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +0 -64
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +0 -54
- package/dist/components/TwoFactorModal/TwoFactorModal.js +0 -122
- package/dist/components/breakdown/Breakdown.js +0 -56
- package/dist/components/breakdown/index.js +0 -27
- package/dist/components/context/Auth.js +0 -207
- package/dist/components/context/AuthContext.js +0 -335
- package/dist/components/icons/Arrow.js +0 -70
- package/dist/components/icons/Arrow.stories.js +0 -49
- package/dist/components/icons/ArrowSimple.js +0 -59
- package/dist/components/icons/ArrowSimple.stories.js +0 -55
- package/dist/components/icons/Check.js +0 -43
- package/dist/components/icons/Check.stories.js +0 -25
- package/dist/components/icons/Facebook.js +0 -26
- package/dist/components/icons/Facebook.stories.js +0 -24
- package/dist/components/icons/Info.js +0 -55
- package/dist/components/icons/Info.stories.js +0 -19
- package/dist/components/icons/Instagram.js +0 -26
- package/dist/components/icons/Instagram.stories.js +0 -24
- package/dist/components/icons/LinkIcon.js +0 -34
- package/dist/components/icons/LinkIcon.stories.js +0 -24
- package/dist/components/icons/LinkedIn.js +0 -43
- package/dist/components/icons/LinkedIn.stories.js +0 -19
- package/dist/components/icons/Medium.js +0 -42
- package/dist/components/icons/Medium.stories.js +0 -19
- package/dist/components/icons/Reddit.js +0 -32
- package/dist/components/icons/Reddit.stories.js +0 -24
- package/dist/components/icons/Share.js +0 -62
- package/dist/components/icons/Share.stories.js +0 -19
- package/dist/components/icons/Telegram.js +0 -42
- package/dist/components/icons/Telegram.stories.js +0 -19
- package/dist/components/icons/Twitter.js +0 -26
- package/dist/components/icons/Twitter.stories.js +0 -24
- package/dist/components/icons/X.js +0 -26
- package/dist/components/icons/X.stories.js +0 -19
- package/dist/components/icons/Youtube.js +0 -26
- package/dist/components/icons/Youtube.stories.js +0 -24
- package/dist/components/icons/index.js +0 -170
- package/dist/components/renderToBody/index.js +0 -27
- package/dist/components/renderToBody/renderToBody.js +0 -68
- package/dist/components/taxId/TaxId.stories.js +0 -42
- package/dist/components/taxId/complete.js +0 -32
- package/dist/components/taxId/flow.js +0 -52
- package/dist/components/taxId/index.js +0 -27
- package/dist/components/taxId/register-taxid.js +0 -186
- package/dist/components/video/Video.js +0 -174
- package/dist/components/video/Video.stories.js +0 -56
- package/dist/components/video/index.js +0 -27
- package/dist/constants/style.js +0 -52
- package/dist/index.js +0 -1
- package/dist/model/axios.js +0 -18
- package/dist/model/axiosPublic.js +0 -18
- package/dist/styles/colors.js +0 -55
- package/dist/styles/fonts.js +0 -34
- package/dist/styles/global.js +0 -19
- package/dist/styles/grid.js +0 -16
- package/dist/styles/reactTippy.js +0 -12
- package/dist/styles/rwd.js +0 -52
- package/dist/styles/semanticUi.js +0 -12
- package/dist/styles/spacing.js +0 -12
- package/dist/styles/theme.js +0 -43
- package/dist/utils/allowed-countries-list.js +0 -1375
- package/dist/utils/breakpoint.js +0 -19
- package/dist/utils/countries-list.js +0 -1008
- package/dist/utils/customHooks.js +0 -52
- package/dist/utils/delete-redirect-cookie-and-navigate.js +0 -20
- package/dist/utils/fix-decimals.js +0 -11
- package/dist/utils/get-cookie-domain.js +0 -16
- package/dist/utils/get-short-address.js +0 -10
- package/dist/utils/lock-body.js +0 -20
- package/dist/utils/redirect-url.js +0 -10
- package/dist/utils/set-redirect-cookie.js +0 -20
- package/docker-compose.yml +0 -25
- package/storybook-static/favicon.ico +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.LearnMoreItemVideo = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _LearnMoreItem = require("./LearnMoreItem");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
11
|
-
var _default = {
|
|
12
|
-
title: 'Components Library/LearnMoreSection/LearnMoreItem',
|
|
13
|
-
component: _LearnMoreItem.LearnMoreItem,
|
|
14
|
-
argTypes: {
|
|
15
|
-
title: {
|
|
16
|
-
type: 'string',
|
|
17
|
-
defaultValue: '',
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
content: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
defaultValue: '',
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
link: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
defaultValue: '',
|
|
28
|
-
required: true
|
|
29
|
-
},
|
|
30
|
-
coverSrc: {
|
|
31
|
-
type: 'string',
|
|
32
|
-
defaultValue: '',
|
|
33
|
-
required: true
|
|
34
|
-
},
|
|
35
|
-
postType: {
|
|
36
|
-
type: 'string',
|
|
37
|
-
defaultValue: '',
|
|
38
|
-
required: true
|
|
39
|
-
},
|
|
40
|
-
onClick: {
|
|
41
|
-
type: 'function',
|
|
42
|
-
action: 'onClick navigate to link'
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.default = _default;
|
|
47
|
-
var Template = function Template(args) {
|
|
48
|
-
return /*#__PURE__*/_react.default.createElement(_LearnMoreItem.LearnMoreItem, args);
|
|
49
|
-
};
|
|
50
|
-
var LearnMoreItemVideo = Template.bind({});
|
|
51
|
-
exports.LearnMoreItemVideo = LearnMoreItemVideo;
|
|
52
|
-
LearnMoreItemVideo.args = {
|
|
53
|
-
title: 'A Title',
|
|
54
|
-
content: 'Some Content',
|
|
55
|
-
link: 'www.link.com',
|
|
56
|
-
coverSrc: 'https://www.videoconverterfactory.com/glossary/imgs/video.jpg',
|
|
57
|
-
postType: 'video'
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// doublecheck:
|
|
61
|
-
// add video to coverSrc
|
|
62
|
-
//ad version with text to coverSrc
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Title = exports.PlayIcon = exports.Play = exports.Cover = exports.Content = exports.Container = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
var _Background = require("components/Background/Background.styles");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var Container = _styledComponents.default.div.withConfig({
|
|
12
|
-
displayName: "LearnMoreItemstyles__Container",
|
|
13
|
-
componentId: "sc-mqjc7z-0"
|
|
14
|
-
})(["height:100%;"]);
|
|
15
|
-
exports.Container = Container;
|
|
16
|
-
var Cover = _styledComponents.default.div.withConfig({
|
|
17
|
-
displayName: "LearnMoreItemstyles__Cover",
|
|
18
|
-
componentId: "sc-mqjc7z-1"
|
|
19
|
-
})(["width:100%;", "{width:100%;padding-top:56.25%;}", "{position:absolute;top:50%;left:50%;width:auto;transform:translateY(-50%) translateX(-50%);}"], _Background.Container, _Background.Content);
|
|
20
|
-
exports.Cover = Cover;
|
|
21
|
-
var Play = (0, _styledComponents.default)(_reactRouterDom.Link).withConfig({
|
|
22
|
-
displayName: "LearnMoreItemstyles__Play",
|
|
23
|
-
componentId: "sc-mqjc7z-2"
|
|
24
|
-
})(["width:48px;height:48px;color:", ";background:", ";border-radius:50%;display:flex;align-items:center;justify-content:center;transition:0.3s background;&:hover{color:", ";background:", ";}"], function (props) {
|
|
25
|
-
return props.theme.cWhite;
|
|
26
|
-
}, function (props) {
|
|
27
|
-
return props.theme.cWarning;
|
|
28
|
-
}, function (props) {
|
|
29
|
-
return props.theme.cWhite;
|
|
30
|
-
}, function (props) {
|
|
31
|
-
return props.theme.cWarningDark;
|
|
32
|
-
});
|
|
33
|
-
exports.Play = Play;
|
|
34
|
-
var PlayIcon = _styledComponents.default.i.attrs({
|
|
35
|
-
className: 'ion ion-md-play'
|
|
36
|
-
}).withConfig({
|
|
37
|
-
displayName: "LearnMoreItemstyles__PlayIcon",
|
|
38
|
-
componentId: "sc-mqjc7z-3"
|
|
39
|
-
})(["font-size:16px;"]);
|
|
40
|
-
exports.PlayIcon = PlayIcon;
|
|
41
|
-
var Title = _styledComponents.default.div.withConfig({
|
|
42
|
-
displayName: "LearnMoreItemstyles__Title",
|
|
43
|
-
componentId: "sc-mqjc7z-4"
|
|
44
|
-
})(["font-size:16px;font-weight:600;"]);
|
|
45
|
-
exports.Title = Title;
|
|
46
|
-
var Content = _styledComponents.default.div.withConfig({
|
|
47
|
-
displayName: "LearnMoreItemstyles__Content",
|
|
48
|
-
componentId: "sc-mqjc7z-5"
|
|
49
|
-
})(["font-size:16px;font-weight:300;line-height:1.5;letter-spacing:0.6px;min-height:100px;"]);
|
|
50
|
-
exports.Content = Content;
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.LoginModal = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _reactRouterDom = require("react-router-dom");
|
|
10
|
-
var _formik = require("formik");
|
|
11
|
-
var Yup = _interopRequireWildcard(require("yup"));
|
|
12
|
-
var _Modal = require("components/Modal/Modal");
|
|
13
|
-
var _Form = _interopRequireWildcard(require("components/Form/Form"));
|
|
14
|
-
var _Text = _interopRequireDefault(require("components/Text/Text.styles"));
|
|
15
|
-
var _Input = _interopRequireDefault(require("components/Input/Input"));
|
|
16
|
-
var _InputPassword = _interopRequireDefault(require("components/Input/InputPassword"));
|
|
17
|
-
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
18
|
-
var _TextLink = _interopRequireDefault(require("components/TextLink/TextLink.styles"));
|
|
19
|
-
var _Grid = require("components/Grid/Grid.styles");
|
|
20
|
-
var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
|
|
21
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
25
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
27
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
28
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
32
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
34
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
36
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
37
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
38
|
-
var LoginModal = /*#__PURE__*/function (_PureComponent) {
|
|
39
|
-
_inherits(LoginModal, _PureComponent);
|
|
40
|
-
var _super = _createSuper(LoginModal);
|
|
41
|
-
function LoginModal() {
|
|
42
|
-
var _this;
|
|
43
|
-
_classCallCheck(this, LoginModal);
|
|
44
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45
|
-
args[_key] = arguments[_key];
|
|
46
|
-
}
|
|
47
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
48
|
-
_defineProperty(_assertThisInitialized(_this), "initialValues", {
|
|
49
|
-
email: '',
|
|
50
|
-
password: ''
|
|
51
|
-
});
|
|
52
|
-
_defineProperty(_assertThisInitialized(_this), "validationSchema", Yup.object().shape({
|
|
53
|
-
email: Yup.string().email('Email is not valid').required('Email is required'),
|
|
54
|
-
password: Yup.string().required('Password is required')
|
|
55
|
-
}));
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
_createClass(LoginModal, [{
|
|
59
|
-
key: "render",
|
|
60
|
-
value: function render() {
|
|
61
|
-
var _this$props = this.props,
|
|
62
|
-
isModalOpen = _this$props.isModalOpen,
|
|
63
|
-
onModalClose = _this$props.onModalClose,
|
|
64
|
-
onFormSend = _this$props.onFormSend,
|
|
65
|
-
onModalSwitch = _this$props.onModalSwitch,
|
|
66
|
-
onForgotPassword = _this$props.onForgotPassword;
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
68
|
-
isOpen: isModalOpen,
|
|
69
|
-
onClose: onModalClose
|
|
70
|
-
}, /*#__PURE__*/_react.default.createElement(_Grid.Row, null, /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
71
|
-
part: 8
|
|
72
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, {
|
|
73
|
-
modalTop: true
|
|
74
|
-
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h3", null, "Log in"), /*#__PURE__*/_react.default.createElement("p", null, 'Please log in to engage in our community & invest in exciting opportunities.'))), /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, {
|
|
75
|
-
modalBot: true
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalLinkWrap, null, "Don't have an account yet? ", /*#__PURE__*/_react.default.createElement(_Modal.ModalLink, {
|
|
77
|
-
as: "button",
|
|
78
|
-
onClick: onModalSwitch
|
|
79
|
-
}, "Sign up")))), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
80
|
-
part: 8
|
|
81
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, null, /*#__PURE__*/_react.default.createElement(_formik.Formik, {
|
|
82
|
-
initialValues: this.initialValues,
|
|
83
|
-
validationSchema: this.validationSchema,
|
|
84
|
-
onSubmit: onFormSend
|
|
85
|
-
}, function (_ref) {
|
|
86
|
-
var values = _ref.values,
|
|
87
|
-
errors = _ref.errors,
|
|
88
|
-
touched = _ref.touched,
|
|
89
|
-
handleChange = _ref.handleChange,
|
|
90
|
-
handleBlur = _ref.handleBlur,
|
|
91
|
-
setFieldValue = _ref.setFieldValue,
|
|
92
|
-
setFieldTouched = _ref.setFieldTouched;
|
|
93
|
-
var onChangeWithTouch = function onChangeWithTouch(e) {
|
|
94
|
-
var field = e.target;
|
|
95
|
-
setFieldValue(field.name, field.value, false);
|
|
96
|
-
setFieldTouched(field.name);
|
|
97
|
-
};
|
|
98
|
-
var submitDisabled = !touched.email || !touched.password || !!errors.email || !!errors.password;
|
|
99
|
-
return /*#__PURE__*/_react.default.createElement(_Form.default, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
100
|
-
noPadding: true
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement(_Form.FormField, null, /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
102
|
-
id: "sign-up-email",
|
|
103
|
-
name: "email",
|
|
104
|
-
type: "email",
|
|
105
|
-
label: "Your email",
|
|
106
|
-
value: values.email,
|
|
107
|
-
onChange: handleChange,
|
|
108
|
-
onBlur: handleBlur,
|
|
109
|
-
error: !!errors.email,
|
|
110
|
-
touched: !!touched.email
|
|
111
|
-
}), /*#__PURE__*/_react.default.createElement(_Form.FormError, {
|
|
112
|
-
show: errors.email && touched.email
|
|
113
|
-
}, errors.email))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
114
|
-
noPaddingBottom: true,
|
|
115
|
-
noPaddingHorizontal: true
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement(_Form.FormField, null, /*#__PURE__*/_react.default.createElement(_InputPassword.default, {
|
|
117
|
-
id: "sign-up-password",
|
|
118
|
-
name: "password",
|
|
119
|
-
type: "password",
|
|
120
|
-
label: "Password",
|
|
121
|
-
value: values.password,
|
|
122
|
-
onChange: onChangeWithTouch,
|
|
123
|
-
onBlur: handleBlur,
|
|
124
|
-
error: !!errors.password,
|
|
125
|
-
touched: !!touched.password
|
|
126
|
-
}), /*#__PURE__*/_react.default.createElement(_Form.FormError, {
|
|
127
|
-
show: errors.password && touched.password
|
|
128
|
-
}, errors.password))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
129
|
-
noPaddingBottom: true,
|
|
130
|
-
noPaddingHorizontal: true
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
132
|
-
type: "submit",
|
|
133
|
-
fluid: true,
|
|
134
|
-
disabled: submitDisabled
|
|
135
|
-
}, "Login")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
136
|
-
noPaddingBottom: true,
|
|
137
|
-
noPaddingHorizontal: true
|
|
138
|
-
}, /*#__PURE__*/_react.default.createElement(_TextLink.default, {
|
|
139
|
-
as: "button",
|
|
140
|
-
onClick: onForgotPassword
|
|
141
|
-
}, "Forgot password?")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
142
|
-
noPaddingBottom: true,
|
|
143
|
-
noPaddingHorizontal: true
|
|
144
|
-
}, /*#__PURE__*/_react.default.createElement(_Form.FormInfo, {
|
|
145
|
-
center: true
|
|
146
|
-
}, 'By signing up for STOKR, you agree to our ', /*#__PURE__*/_react.default.createElement(_reactRouterDom.Link, {
|
|
147
|
-
to: "#"
|
|
148
|
-
}, "Terms of Service."))));
|
|
149
|
-
})))));
|
|
150
|
-
}
|
|
151
|
-
}]);
|
|
152
|
-
return LoginModal;
|
|
153
|
-
}(_react.PureComponent);
|
|
154
|
-
exports.LoginModal = LoginModal;
|
|
155
|
-
LoginModal.propTypes = {
|
|
156
|
-
isModalOpen: _propTypes.default.bool.isRequired,
|
|
157
|
-
onModalClose: _propTypes.default.func.isRequired,
|
|
158
|
-
onFormSend: _propTypes.default.func.isRequired,
|
|
159
|
-
onModalSwitch: _propTypes.default.func.isRequired,
|
|
160
|
-
onForgotPassword: _propTypes.default.func.isRequired
|
|
161
|
-
};
|
|
162
|
-
var _default = LoginModal;
|
|
163
|
-
exports.default = _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _reactCollapse = require("react-collapse");
|
|
11
|
-
var _MainMenu = require("./MainMenu.styles");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
//import ReactDOM from 'react-dom'
|
|
16
|
-
|
|
17
|
-
var DynamicMainMenu = function DynamicMainMenu(props) {
|
|
18
|
-
var spanStyleForMenu = {
|
|
19
|
-
letterSpacing: '2px',
|
|
20
|
-
cursor: 'pointer'
|
|
21
|
-
};
|
|
22
|
-
var options = props.options,
|
|
23
|
-
isMenuActive = props.isMenuActive;
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_MainMenu.StyledMainMenu, null, /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
25
|
-
isOpened: isMenuActive
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuContainer, null, /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOptions, null, options.map(function (item) {
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOption, {
|
|
28
|
-
as: "button",
|
|
29
|
-
button: true,
|
|
30
|
-
onClick: item.onClick,
|
|
31
|
-
noBorder: true
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
33
|
-
style: spanStyleForMenu
|
|
34
|
-
}, item.name));
|
|
35
|
-
})))));
|
|
36
|
-
};
|
|
37
|
-
var optionsShape = _propTypes.default.shape({
|
|
38
|
-
name: _propTypes.default.string.isRequired,
|
|
39
|
-
onClick: _propTypes.default.func.isRequired
|
|
40
|
-
});
|
|
41
|
-
DynamicMainMenu.propTypes = {
|
|
42
|
-
isMenuActive: _propTypes.default.bool.isRequired,
|
|
43
|
-
options: optionsShape
|
|
44
|
-
};
|
|
45
|
-
DynamicMainMenu.defaultProps = {
|
|
46
|
-
isMenuActive: false,
|
|
47
|
-
options: []
|
|
48
|
-
};
|
|
49
|
-
var _default = DynamicMainMenu;
|
|
50
|
-
exports.default = _default;
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _reactCollapse = require("react-collapse");
|
|
10
|
-
var _MainMenu = require("./MainMenu.styles");
|
|
11
|
-
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
12
|
-
var _Header = require("components/Header/Header");
|
|
13
|
-
var _reactRouterDom = require("react-router-dom");
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
18
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
24
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
25
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
30
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
31
|
-
var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
32
|
-
_inherits(MainMenu, _PureComponent);
|
|
33
|
-
var _super = _createSuper(MainMenu);
|
|
34
|
-
function MainMenu() {
|
|
35
|
-
var _this;
|
|
36
|
-
_classCallCheck(this, MainMenu);
|
|
37
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
-
args[_key] = arguments[_key];
|
|
39
|
-
}
|
|
40
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
41
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
42
|
-
isSettingsActive: false,
|
|
43
|
-
isScrollDown: false,
|
|
44
|
-
lastScroll: 0,
|
|
45
|
-
overrideHeightNeeded: true
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(_assertThisInitialized(_this), "toggleSettings", function () {
|
|
48
|
-
_this.setState(function (prevState) {
|
|
49
|
-
return {
|
|
50
|
-
isSettingsActive: !prevState.isSettingsActive
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
_defineProperty(_assertThisInitialized(_this), "onScroll", function () {
|
|
55
|
-
var _this$state = _this.state,
|
|
56
|
-
lastScroll = _this$state.lastScroll,
|
|
57
|
-
isScrollDown = _this$state.isScrollDown,
|
|
58
|
-
overrideHeightNeeded = _this$state.overrideHeightNeeded;
|
|
59
|
-
var _window = window,
|
|
60
|
-
scrollY = _window.scrollY;
|
|
61
|
-
var newScrollDown = scrollY > lastScroll;
|
|
62
|
-
var newState = {
|
|
63
|
-
lastScroll: scrollY
|
|
64
|
-
};
|
|
65
|
-
if (newScrollDown !== isScrollDown) {
|
|
66
|
-
newState.isScrollDown = newScrollDown;
|
|
67
|
-
}
|
|
68
|
-
if (overrideHeightNeeded) {
|
|
69
|
-
newState.overrideHeightNeeded = false;
|
|
70
|
-
}
|
|
71
|
-
_this.setState(newState);
|
|
72
|
-
});
|
|
73
|
-
_defineProperty(_assertThisInitialized(_this), "setScrollUp", function () {
|
|
74
|
-
_this.setState({
|
|
75
|
-
isScrollDown: false
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
_defineProperty(_assertThisInitialized(_this), "checkActive", function (url) {
|
|
79
|
-
return window.location.href.split('/').indexOf(url) > 0;
|
|
80
|
-
});
|
|
81
|
-
return _this;
|
|
82
|
-
}
|
|
83
|
-
_createClass(MainMenu, [{
|
|
84
|
-
key: "componentDidMount",
|
|
85
|
-
value: function componentDidMount() {
|
|
86
|
-
window.addEventListener('scroll', this.onScroll, true);
|
|
87
|
-
}
|
|
88
|
-
}, {
|
|
89
|
-
key: "componentWillUnmount",
|
|
90
|
-
value: function componentWillUnmount() {
|
|
91
|
-
window.removeEventListener('scroll', this.onScroll, true);
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
|
-
key: "render",
|
|
95
|
-
value: function render() {
|
|
96
|
-
var _this2 = this;
|
|
97
|
-
var _this$state2 = this.state,
|
|
98
|
-
isSettingsActive = _this$state2.isSettingsActive,
|
|
99
|
-
isScrollDown = _this$state2.isScrollDown,
|
|
100
|
-
overrideHeightNeeded = _this$state2.overrideHeightNeeded;
|
|
101
|
-
var _this$props = this.props,
|
|
102
|
-
isMenuActive = _this$props.isMenuActive,
|
|
103
|
-
user = _this$props.user,
|
|
104
|
-
_this$props$notificat = _this$props.notifications,
|
|
105
|
-
notifications = _this$props$notificat === void 0 ? 0 : _this$props$notificat,
|
|
106
|
-
logoutUser = _this$props.logoutUser,
|
|
107
|
-
isAdmin = _this$props.isAdmin,
|
|
108
|
-
platformUrlForUserMenu = _this$props.platformUrlForUserMenu,
|
|
109
|
-
isVentureDashboard = _this$props.isVentureDashboard;
|
|
110
|
-
var spanStyleForMenu = {
|
|
111
|
-
letterSpacing: '1.5px',
|
|
112
|
-
cursor: 'pointer'
|
|
113
|
-
};
|
|
114
|
-
var isUserLogged = !!user._id;
|
|
115
|
-
return /*#__PURE__*/_react.default.createElement(_MainMenu.StyledMainMenu, null, /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
116
|
-
isOpened: isMenuActive && isUserLogged,
|
|
117
|
-
hasNestedCollapse: true
|
|
118
|
-
}, /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuContainer, null, /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
119
|
-
isOpened: !isScrollDown,
|
|
120
|
-
style: overrideHeightNeeded ? {
|
|
121
|
-
height: 'auto'
|
|
122
|
-
} : {},
|
|
123
|
-
hasNestedCollapse: true
|
|
124
|
-
}, /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOptions, null, !isVentureDashboard && /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOption, {
|
|
125
|
-
nameOption: true,
|
|
126
|
-
isVenture: isAdmin
|
|
127
|
-
}, /*#__PURE__*/_react.default.createElement(_MainMenu.UserName, {
|
|
128
|
-
style: spanStyleForMenu,
|
|
129
|
-
onClick: function onClick() {
|
|
130
|
-
return isAdmin ? window.location.href = "https://admin.".concat(_Header.platformDomain) : window.location.href = "".concat(platformUrlForUserMenu, "/settings/profile-and-privacy");
|
|
131
|
-
}
|
|
132
|
-
}, user.username ? user.username : user.email)), isAdmin ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isVentureDashboard ? /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOption, {
|
|
133
|
-
as: "button",
|
|
134
|
-
button: true,
|
|
135
|
-
onClick: function onClick() {
|
|
136
|
-
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
137
|
-
navigate('/settings');
|
|
138
|
-
}
|
|
139
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
140
|
-
style: spanStyleForMenu
|
|
141
|
-
}, "Settings")) : /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOption, {
|
|
142
|
-
isDashboard: true,
|
|
143
|
-
isVenture: true,
|
|
144
|
-
as: "button",
|
|
145
|
-
button: true,
|
|
146
|
-
onClick: function onClick() {
|
|
147
|
-
return window.location.replace("https://admin.".concat(_Header.platformDomain));
|
|
148
|
-
}
|
|
149
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
150
|
-
style: spanStyleForMenu
|
|
151
|
-
}, "Dashboard"))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOption, {
|
|
152
|
-
isDashboard: true,
|
|
153
|
-
as: "button",
|
|
154
|
-
button: true,
|
|
155
|
-
onClick: function onClick() {
|
|
156
|
-
return notifications > 0 ? window.location.href = "".concat(platformUrlForUserMenu, "/checklist") : window.location.href = "".concat(platformUrlForUserMenu, "/");
|
|
157
|
-
}
|
|
158
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
159
|
-
style: spanStyleForMenu
|
|
160
|
-
}, "Dashboard"), notifications > 0 && /*#__PURE__*/_react.default.createElement(_MainMenu.Notifications, null, notifications)), /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOption, {
|
|
161
|
-
as: "button",
|
|
162
|
-
button: true,
|
|
163
|
-
isOpened: isSettingsActive,
|
|
164
|
-
onClick: this.toggleSettings,
|
|
165
|
-
isSettings: true
|
|
166
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
167
|
-
style: spanStyleForMenu
|
|
168
|
-
}, "Settings"), /*#__PURE__*/_react.default.createElement(_MainMenu.ExpandArrow, {
|
|
169
|
-
isOpened: isSettingsActive
|
|
170
|
-
}))), /*#__PURE__*/_react.default.createElement(_MainMenu.MainMenuOption, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
171
|
-
negative: true,
|
|
172
|
-
onClick: function onClick() {
|
|
173
|
-
return logoutUser();
|
|
174
|
-
}
|
|
175
|
-
}, "log out"))), !isAdmin && /*#__PURE__*/_react.default.createElement(_MainMenu.Settings, null, /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
176
|
-
isOpened: isSettingsActive
|
|
177
|
-
}, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOptions, null, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
178
|
-
isActive: this.checkActive('profile-and-privacy'),
|
|
179
|
-
onClick: function onClick() {
|
|
180
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/profile-and-privacy"));
|
|
181
|
-
}
|
|
182
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
183
|
-
style: spanStyleForMenu
|
|
184
|
-
}, "Profile & Privacy")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
185
|
-
isActive: this.checkActive('ethereum-address'),
|
|
186
|
-
onClick: function onClick() {
|
|
187
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
188
|
-
}
|
|
189
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
190
|
-
style: spanStyleForMenu
|
|
191
|
-
}, "Ethereum Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
192
|
-
isActive: this.checkActive('liquid-address'),
|
|
193
|
-
onClick: function onClick() {
|
|
194
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/liquid-address"));
|
|
195
|
-
}
|
|
196
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
197
|
-
style: spanStyleForMenu
|
|
198
|
-
}, "Liquid Securities Account")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
199
|
-
isActive: this.checkActive('algorand-address'),
|
|
200
|
-
onClick: function onClick() {
|
|
201
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/algorand-address"));
|
|
202
|
-
}
|
|
203
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
204
|
-
style: spanStyleForMenu
|
|
205
|
-
}, "Algorand Addresses")))))), !isAdmin && /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
206
|
-
isOpened: isScrollDown,
|
|
207
|
-
hasNestedCollapse: true
|
|
208
|
-
}, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOptions, null, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
209
|
-
scrollDown: true,
|
|
210
|
-
isActive: this.checkActive('profile-and-privacy'),
|
|
211
|
-
onClick: function onClick() {
|
|
212
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/profile-and-privacy"));
|
|
213
|
-
}
|
|
214
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
215
|
-
style: spanStyleForMenu
|
|
216
|
-
}, "Profile & Privacy")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
217
|
-
scrollDown: true,
|
|
218
|
-
isActive: this.checkActive('ethereum-address'),
|
|
219
|
-
onClick: function onClick() {
|
|
220
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
221
|
-
}
|
|
222
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
223
|
-
style: spanStyleForMenu
|
|
224
|
-
}, "Ethereum Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
225
|
-
scrollDown: true,
|
|
226
|
-
isActive: this.checkActive('liquid-address'),
|
|
227
|
-
onClick: function onClick() {
|
|
228
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/liquid-address"));
|
|
229
|
-
}
|
|
230
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
231
|
-
style: spanStyleForMenu
|
|
232
|
-
}, "Liquid Securities Account")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
233
|
-
scrollDown: true,
|
|
234
|
-
isActive: this.checkActive('algorand-address'),
|
|
235
|
-
onClick: function onClick() {
|
|
236
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/algorand-address"));
|
|
237
|
-
}
|
|
238
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
239
|
-
style: spanStyleForMenu
|
|
240
|
-
}, "Algorand Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
241
|
-
scrollDown: true,
|
|
242
|
-
onClick: function onClick() {
|
|
243
|
-
_this2.setScrollUp();
|
|
244
|
-
}
|
|
245
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
246
|
-
style: spanStyleForMenu
|
|
247
|
-
}, "More")))))));
|
|
248
|
-
}
|
|
249
|
-
}]);
|
|
250
|
-
return MainMenu;
|
|
251
|
-
}(_react.PureComponent);
|
|
252
|
-
MainMenu.propTypes = {
|
|
253
|
-
isMenuActive: _propTypes.default.bool.isRequired,
|
|
254
|
-
admin: _propTypes.default.bool,
|
|
255
|
-
userName: _propTypes.default.string
|
|
256
|
-
};
|
|
257
|
-
MainMenu.defaultProps = {
|
|
258
|
-
admin: false,
|
|
259
|
-
userName: ''
|
|
260
|
-
};
|
|
261
|
-
var _default = MainMenu;
|
|
262
|
-
exports.default = _default;
|