@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,180 +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.UserName = exports.UserButton = exports.UserAvatar = exports.UserAccount = exports.StyledSubMenu = exports.StyledHeader = exports.SignupButton = exports.SidebarToggle = exports.QuickNavWrap = exports.ProgressWrap = exports.MobileMenuToggler = exports.MobileMenuPart = exports.MobileMenuItem = exports.MobileMenu = exports.MainNavWrap = exports.Logo = exports.LoginButton = exports.HeaderQuickNav = exports.HeaderMainNav = exports.HeaderInner = exports.HamburgerIcon = exports.CTAContainer = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _rwd = _interopRequireWildcard(require("styles/rwd"));
|
|
10
|
-
var _colors = _interopRequireDefault(require("styles/colors"));
|
|
11
|
-
var _spacing = _interopRequireDefault(require("styles/spacing"));
|
|
12
|
-
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
13
|
-
var sc = _interopRequireWildcard(require("constants/style"));
|
|
14
|
-
var _FooterMenu = require("components/Footer/FooterMenu.styles");
|
|
15
|
-
var _Icon = _interopRequireWildcard(require("components/Icon/Icon.style"));
|
|
16
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
17
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
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); }
|
|
19
|
-
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; }
|
|
20
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
|
-
var StyledSubMenu = _styledComponents.default.div.withConfig({
|
|
22
|
-
displayName: "Headerstyles__StyledSubMenu",
|
|
23
|
-
componentId: "sc-hifrdy-0"
|
|
24
|
-
})(["position:relative;"]);
|
|
25
|
-
exports.StyledSubMenu = StyledSubMenu;
|
|
26
|
-
var StyledHeader = _styledComponents.default.header.withConfig({
|
|
27
|
-
displayName: "Headerstyles__StyledHeader",
|
|
28
|
-
componentId: "sc-hifrdy-1"
|
|
29
|
-
})(["z-index:20;position:relative;color:", ";border-bottom:1px solid rgb(237,237,237);", ""], _colors.default.black, _rwd.default.MLarge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: ", "px;\n background-color: ", ";\n box-shadow: inset 0 -1px 0 0 ", ";\n "])), _spacing.default.headerHeight, _colors.default.white, _colors.default.lightGrey));
|
|
30
|
-
exports.StyledHeader = StyledHeader;
|
|
31
|
-
var HeaderInner = _styledComponents.default.div.withConfig({
|
|
32
|
-
displayName: "Headerstyles__HeaderInner",
|
|
33
|
-
componentId: "sc-hifrdy-2"
|
|
34
|
-
})(["position:relative;padding:24px;", " ", ""], function (props) {
|
|
35
|
-
return props.withSidebar && "\n left: 64px;\n transition: 0.3s width;\n ";
|
|
36
|
-
}, _rwd.default.MLarge(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n padding: 28px 32px;\n align-items: center;\n height: 100%;\n\n ", "\n "])), function (props) {
|
|
37
|
-
return props.withSidebar && "\n width:100%;\n left:0;\n ";
|
|
38
|
-
}));
|
|
39
|
-
exports.HeaderInner = HeaderInner;
|
|
40
|
-
var MainNavWrap = _styledComponents.default.div.withConfig({
|
|
41
|
-
displayName: "Headerstyles__MainNavWrap",
|
|
42
|
-
componentId: "sc-hifrdy-3"
|
|
43
|
-
})(["z-index:2;position:relative;font-size:0;", ""], _rwd.default.MLarge(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-grow: ", ";\n width: ", ";\n\n", "\n\n ", "\n"])), function (_ref) {
|
|
44
|
-
var isFixedWidth = _ref.isFixedWidth;
|
|
45
|
-
return !isFixedWidth && 1;
|
|
46
|
-
}, function (_ref2) {
|
|
47
|
-
var isFixedWidth = _ref2.isFixedWidth;
|
|
48
|
-
return isFixedWidth && '200px';
|
|
49
|
-
}, function (props) {
|
|
50
|
-
return props.noProgress && "\n flex-grow: 3;\n ";
|
|
51
|
-
}, function (props) {
|
|
52
|
-
return props.hasProgress && "\n width:33.3%;\n ";
|
|
53
|
-
}));
|
|
54
|
-
exports.MainNavWrap = MainNavWrap;
|
|
55
|
-
var SidebarToggle = _styledComponents.default.div.withConfig({
|
|
56
|
-
displayName: "Headerstyles__SidebarToggle",
|
|
57
|
-
componentId: "sc-hifrdy-4"
|
|
58
|
-
})(["width:64px;height:100%;background:", ";transition:0.3s width;flex-shrink:0;display:flex;position:absolute;cursor:pointer;z-index:10;", " ", ""], _colors.default.rustyRed, _rwd.default.MLarge(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n width: 100px;\n "]))), function (props) {
|
|
59
|
-
return props.isSidebarExpanded && _rwd.default.MLarge(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 300px;\n "])));
|
|
60
|
-
});
|
|
61
|
-
exports.SidebarToggle = SidebarToggle;
|
|
62
|
-
var HamburgerIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
63
|
-
displayName: "Headerstyles__HamburgerIcon",
|
|
64
|
-
componentId: "sc-hifrdy-5"
|
|
65
|
-
})(["display:block;width:18px;height:18px;position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;font-size:18px;line-height:18px;color:", ";&:before{content:'", "';}", ""], _colors.default.white, _Icon.iconsMap.hamburger, _rwd.default.MLarge(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n left: 50px;\n "]))));
|
|
66
|
-
exports.HamburgerIcon = HamburgerIcon;
|
|
67
|
-
var ProgressWrap = _styledComponents.default.div.withConfig({
|
|
68
|
-
displayName: "Headerstyles__ProgressWrap",
|
|
69
|
-
componentId: "sc-hifrdy-6"
|
|
70
|
-
})(["z-index:0;position:relative;text-align:center;margin-top:24px;", ""], _rwd.default.MLarge(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex-grow: 2;\n margin-top: 0;\n\n \n\n "]))));
|
|
71
|
-
exports.ProgressWrap = ProgressWrap;
|
|
72
|
-
var QuickNavWrap = _styledComponents.default.div.withConfig({
|
|
73
|
-
displayName: "Headerstyles__QuickNavWrap",
|
|
74
|
-
componentId: "sc-hifrdy-7"
|
|
75
|
-
})(["z-index:2;position:absolute;top:0;right:0;height:100%;", ""], _rwd.default.MLarge(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n position: relative;\n right: auto;\n flex-grow: ", ";\n width: ", ";\n text-align: right;\n\n ", "\n "])), function (_ref3) {
|
|
76
|
-
var isFixedWidth = _ref3.isFixedWidth;
|
|
77
|
-
return !isFixedWidth && 1;
|
|
78
|
-
}, function (_ref4) {
|
|
79
|
-
var isFixedWidth = _ref4.isFixedWidth;
|
|
80
|
-
return isFixedWidth && '200px';
|
|
81
|
-
}, function (props) {
|
|
82
|
-
return props.hasProgress && "\n width:33.3%;\n ";
|
|
83
|
-
}));
|
|
84
|
-
exports.QuickNavWrap = QuickNavWrap;
|
|
85
|
-
var Logo = _styledComponents.default.div.withConfig({
|
|
86
|
-
displayName: "Headerstyles__Logo",
|
|
87
|
-
componentId: "sc-hifrdy-8"
|
|
88
|
-
})(["display:inline-block;vertical-align:middle;color:", ";transition:color 0.4s;", " a{display:block;transition:opacity 0.2s;&:hover{opacity:0.5;}}img{display:block;height:16px;width:auto;}svg{display:block;height:16px;width:auto;fill:currentColor;}", ""], _colors.default.black, function (props) {
|
|
89
|
-
return props.isHighlight && "\n color: ".concat(_colors.default.blue, ";\n ");
|
|
90
|
-
}, _rwd.default.MLarge(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-left: 0;\n margin-right: 42px;\n "]))));
|
|
91
|
-
exports.Logo = Logo;
|
|
92
|
-
var HeaderMainNav = _styledComponents.default.div.withConfig({
|
|
93
|
-
displayName: "Headerstyles__HeaderMainNav",
|
|
94
|
-
componentId: "sc-hifrdy-9"
|
|
95
|
-
})(["display:none;", " button{text-transform:uppercase;}"], _rwd.default.MLarge(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: inline-block;\n "]))));
|
|
96
|
-
exports.HeaderMainNav = HeaderMainNav;
|
|
97
|
-
var HeaderQuickNav = _styledComponents.default.div.withConfig({
|
|
98
|
-
displayName: "Headerstyles__HeaderQuickNav",
|
|
99
|
-
componentId: "sc-hifrdy-10"
|
|
100
|
-
})(["display:none;", " button{text-transform:uppercase;", "}"], _rwd.default.MLarge(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: inline-block;\n\n & > * {\n margin-left: 32px;\n\n &:first-child {\n margin-left: 0;\n }\n }\n\n ", "\n "])), function (props) {
|
|
101
|
-
return !props.isUserLogged && "\n display: flex;\n align-items: center;\n justify-content: flex-end;\n ";
|
|
102
|
-
}), _rwd.default.MLarge(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n vertical-align: middle;\n "]))));
|
|
103
|
-
exports.HeaderQuickNav = HeaderQuickNav;
|
|
104
|
-
var MobileMenuToggler = _styledComponents.default.button.withConfig({
|
|
105
|
-
displayName: "Headerstyles__MobileMenuToggler",
|
|
106
|
-
componentId: "sc-hifrdy-11"
|
|
107
|
-
})(["display:block;width:32px;height:32px;position:absolute;top:16px;right:16px;outline:none;cursor:pointer;border:none;background-color:inherit;", " ", " span{display:block;width:16px;height:2px;position:absolute;top:50%;left:50%;margin-top:-1px;margin-left:-8px;background-color:", ";transition:background-color 0.4s,transform 0.4s;&:nth-child(1){transform:translateY(-6px);}&:nth-child(3){transform:translateY(6px);}}", ""], function (props) {
|
|
108
|
-
return props.withSidebar && "\n right:-15px;\n ";
|
|
109
|
-
}, _rwd.default.MLarge(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: none;\n "]))), _colors.default.black, function (props) {
|
|
110
|
-
return props.isActive && "\n span {\n background-color: ".concat(_colors.default.blue, ";\n\n &:nth-child(1) {\n transform: translateY(0) rotate(135deg);\n }\n\n &:nth-child(2) {\n transform: scaleX(0);\n }\n\n &:nth-child(3) {\n transform: translateY(0) rotate(-135deg);\n }\n }\n ");
|
|
111
|
-
});
|
|
112
|
-
exports.MobileMenuToggler = MobileMenuToggler;
|
|
113
|
-
var MobileMenu = _styledComponents.default.nav.withConfig({
|
|
114
|
-
displayName: "Headerstyles__MobileMenu",
|
|
115
|
-
componentId: "sc-hifrdy-12"
|
|
116
|
-
})(["z-index:1;position:absolute;top:65px;left:0;display:flex;flex-direction:column;width:100%;min-height:calc(100vh - 65px);background-color:", ";padding:0;text-align:center;opacity:0;visibility:hidden;transition:opacity 0.4s,visibility 0.4s;height:calc(100vh - 65px);overflow:scroll;", " ", " ", " button{text-transform:uppercase;}"], _colors.default.white, function (props) {
|
|
117
|
-
return props.isActive && "\n opacity: 1;\n visibility: visible;\n ";
|
|
118
|
-
}, function (props) {
|
|
119
|
-
return props.withSidebar && "\n width:180%;\n left:-64px;\n ";
|
|
120
|
-
}, _rwd.default.MLarge(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: none;\n "]))));
|
|
121
|
-
exports.MobileMenu = MobileMenu;
|
|
122
|
-
var MobileMenuItem = _styledComponents.default.li.withConfig({
|
|
123
|
-
displayName: "Headerstyles__MobileMenuItem",
|
|
124
|
-
componentId: "sc-hifrdy-13"
|
|
125
|
-
})(["align-items:center;display:flex !important;justify-content:center;", ""], function (props) {
|
|
126
|
-
return props.red && "\n background: #D2200D;\n color:white;\n border-bottom: 1px solid #979797;\n ";
|
|
127
|
-
});
|
|
128
|
-
exports.MobileMenuItem = MobileMenuItem;
|
|
129
|
-
var MobileMenuPart = _styledComponents.default.div.withConfig({
|
|
130
|
-
displayName: "Headerstyles__MobileMenuPart",
|
|
131
|
-
componentId: "sc-hifrdy-14"
|
|
132
|
-
})(["", " ", " ", " ", " ", ""], function (props) {
|
|
133
|
-
return props.withPadding && "\n padding: 30px 0;\n\n @media screen and (max-width: 320px) {\n padding: 15px 0;\n }\n ";
|
|
134
|
-
}, function (props) {
|
|
135
|
-
return props.grow && "\n flex-grow: ".concat(props.grow, ";\n ");
|
|
136
|
-
}, function (props) {
|
|
137
|
-
return props.flexColumn && "\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n button {\n margin: 10px 0;\n }\n ";
|
|
138
|
-
}, function (props) {
|
|
139
|
-
return props.noPaddingTop && "\n padding-top: 0;\n ";
|
|
140
|
-
}, function (props) {
|
|
141
|
-
return props.borderTop && "\n border-top: 1px solid ".concat(_colors.default.lightGrey, ";\n ");
|
|
142
|
-
});
|
|
143
|
-
exports.MobileMenuPart = MobileMenuPart;
|
|
144
|
-
var UserAccount = _styledComponents.default.div.withConfig({
|
|
145
|
-
displayName: "Headerstyles__UserAccount",
|
|
146
|
-
componentId: "sc-hifrdy-15"
|
|
147
|
-
})(["z-index:1;position:relative;display:inline-block;vertical-align:middle;", ""], _rwd.default.MLarge(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin: -4px 0;\n margin-left: 32px;\n "]))));
|
|
148
|
-
exports.UserAccount = UserAccount;
|
|
149
|
-
var UserButton = _styledComponents.default.button.withConfig({
|
|
150
|
-
displayName: "Headerstyles__UserButton",
|
|
151
|
-
componentId: "sc-hifrdy-16"
|
|
152
|
-
})(["display:inline-block;vertical-align:middle;width:48px;height:48px;border-radius:24px;overflow:hidden;background-color:", ";opacity:1;transition:opacity 0.2s;outline:none;cursor:pointer;box-shadow:none;border:none;background-color:buttonface;"], _colors.default.grey2);
|
|
153
|
-
exports.UserButton = UserButton;
|
|
154
|
-
var UserAvatar = _styledComponents.default.img.withConfig({
|
|
155
|
-
displayName: "Headerstyles__UserAvatar",
|
|
156
|
-
componentId: "sc-hifrdy-17"
|
|
157
|
-
})(["display:block;width:100%;height:100%;object-fit:cover;object-position:center center;"]);
|
|
158
|
-
exports.UserAvatar = UserAvatar;
|
|
159
|
-
var UserName = _styledComponents.default.div.withConfig({
|
|
160
|
-
displayName: "Headerstyles__UserName",
|
|
161
|
-
componentId: "sc-hifrdy-18"
|
|
162
|
-
})(["z-index:0;position:relative;display:block;padding-top:36px;padding-bottom:20px;font-weight:600;font-size:16px;line-height:24px;background-color:", ";color:", ";margin-top:-24px;"], _colors.default.orangishRed, _colors.default.white);
|
|
163
|
-
exports.UserName = UserName;
|
|
164
|
-
var LoginButton = _styledComponents.default.span.withConfig({
|
|
165
|
-
displayName: "Headerstyles__LoginButton",
|
|
166
|
-
componentId: "sc-hifrdy-19"
|
|
167
|
-
})(["cursor:pointer;margin-right:24px;display:none;&:hover{opacity:0.6;}@media screen and (min-width:992px){display:block;}"]);
|
|
168
|
-
exports.LoginButton = LoginButton;
|
|
169
|
-
var SignupButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
170
|
-
displayName: "Headerstyles__SignupButton",
|
|
171
|
-
componentId: "sc-hifrdy-20"
|
|
172
|
-
})(["padding-right:32px !important;color:", " !important;&:hover{background:", ";}", ""], sc.WHITE_HEX, sc.BLUE_BASE_RELEASED_HEX, function (props) {
|
|
173
|
-
return props.isMobile && "\n margin: 0;\n width: 163.94px;\n ";
|
|
174
|
-
});
|
|
175
|
-
exports.SignupButton = SignupButton;
|
|
176
|
-
var CTAContainer = _styledComponents.default.div.withConfig({
|
|
177
|
-
displayName: "Headerstyles__CTAContainer",
|
|
178
|
-
componentId: "sc-hifrdy-21"
|
|
179
|
-
})(["align-items:center;border-top:1px solid ", ";display:flex;flex-direction:column;justify-content:center;padding:56px 0;width:100%;span{color:1px solid ", ";font-size:10px;letter-spacing:2.1px;margin-bottom:14px;}div{display:flex;flex-wrap:wrap;}", " ", "{display:flex;justify-content:center;background:transparent;margin:12px;svg{fill:rgb(32,32,32);height:18px !important;width:18px !important;}}"], sc.GRAY_BASE_HEX, sc.GRAY_BASE_HEX, _rwd.rwdMax.Medium(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n div{\n width: 192px; /* Fit exactly 3 icons */\n }\n "]))), _FooterMenu.SocialLink);
|
|
180
|
-
exports.CTAContainer = CTAContainer;
|
|
@@ -1,71 +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.iconsMap = exports.default = exports.TooltipIcon = exports.Icon = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _templateObject;
|
|
10
|
-
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); }
|
|
11
|
-
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; }
|
|
12
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
var iconsMap = {
|
|
14
|
-
expand: '\\e923',
|
|
15
|
-
shrink: '\\e924',
|
|
16
|
-
emoji: '\\e922',
|
|
17
|
-
arrowDown: '\\e900',
|
|
18
|
-
arrowLeft: '\\e901',
|
|
19
|
-
arrowRight: '\\e902',
|
|
20
|
-
arrowUp: '\\e903',
|
|
21
|
-
heart: '\\e904',
|
|
22
|
-
heartFill: '\\e921',
|
|
23
|
-
lock: '\\e905',
|
|
24
|
-
menu: '\\e906',
|
|
25
|
-
pen: '\\e907',
|
|
26
|
-
star: '\\e908',
|
|
27
|
-
trash: '\\e909',
|
|
28
|
-
unread: '\\e90a',
|
|
29
|
-
user: '\\e90b',
|
|
30
|
-
edit: '\\e90c',
|
|
31
|
-
check: '\\e90d',
|
|
32
|
-
inProgress: '\\e90e',
|
|
33
|
-
warning: '\\e90f',
|
|
34
|
-
logout: '\\e910',
|
|
35
|
-
tokenHolder: '\\e911',
|
|
36
|
-
teams: '\\e912',
|
|
37
|
-
tokenSales: '\\e913',
|
|
38
|
-
analytics: '\\e914',
|
|
39
|
-
updates: '\\e915',
|
|
40
|
-
overview: '\\e916',
|
|
41
|
-
comments: '\\e917',
|
|
42
|
-
hamburger: '\\e918',
|
|
43
|
-
share: '\\e919',
|
|
44
|
-
facebook: '\\e91a',
|
|
45
|
-
linkedin: '\\e91b',
|
|
46
|
-
medium: '\\e91c',
|
|
47
|
-
reddit: '\\e91d',
|
|
48
|
-
telegram: '\\e91e',
|
|
49
|
-
twitter: '\\e91f',
|
|
50
|
-
youtube: '\\e920'
|
|
51
|
-
};
|
|
52
|
-
exports.iconsMap = iconsMap;
|
|
53
|
-
var TooltipIcon = _styledComponents.default.i.attrs({
|
|
54
|
-
className: 'ion ion-md-information-circle'
|
|
55
|
-
}).withConfig({
|
|
56
|
-
displayName: "Iconstyle__TooltipIcon",
|
|
57
|
-
componentId: "sc-1v2m4hs-0"
|
|
58
|
-
})(["position:relative;left:-0.4px;font-size:18px;opacity:0.2;transform:rotateY(180deg);margin:0 14px;"]);
|
|
59
|
-
exports.TooltipIcon = TooltipIcon;
|
|
60
|
-
var Icon = _styledComponents.default.i.withConfig({
|
|
61
|
-
displayName: "Iconstyle__Icon",
|
|
62
|
-
componentId: "sc-1v2m4hs-1"
|
|
63
|
-
})(["font-family:'icomoon' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;&::before{content:\"", "\";}", ""], function (props) {
|
|
64
|
-
return props.icon;
|
|
65
|
-
}, function (_ref) {
|
|
66
|
-
var checklist = _ref.checklist;
|
|
67
|
-
return checklist && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: 3px;\n margin-right: 11px;\n "])));
|
|
68
|
-
});
|
|
69
|
-
exports.Icon = Icon;
|
|
70
|
-
var _default = Icon;
|
|
71
|
-
exports.default = _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.InfoIcon = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _reactTippy = require("react-tippy");
|
|
10
|
-
var _InfoIcon = require("./InfoIcon.styles");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var InfoIcon = function InfoIcon(_ref) {
|
|
13
|
-
var title = _ref.title,
|
|
14
|
-
html = _ref.html,
|
|
15
|
-
position = _ref.position,
|
|
16
|
-
noMargin = _ref.noMargin,
|
|
17
|
-
noMarginLeft = _ref.noMarginLeft,
|
|
18
|
-
noMarginRight = _ref.noMarginRight;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_InfoIcon.Container, {
|
|
20
|
-
noMargin: noMargin,
|
|
21
|
-
noMarginLeft: noMarginLeft,
|
|
22
|
-
noMarginRight: noMarginRight
|
|
23
|
-
}, /*#__PURE__*/_react.default.createElement(_reactTippy.Tooltip, {
|
|
24
|
-
position: position,
|
|
25
|
-
title: title,
|
|
26
|
-
html: html,
|
|
27
|
-
theme: "light",
|
|
28
|
-
arrow: true,
|
|
29
|
-
duration: 200
|
|
30
|
-
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.Icon, null)));
|
|
31
|
-
};
|
|
32
|
-
exports.InfoIcon = InfoIcon;
|
|
33
|
-
InfoIcon.propTypes = {
|
|
34
|
-
title: _propTypes.default.string,
|
|
35
|
-
html: _propTypes.default.node,
|
|
36
|
-
position: _propTypes.default.oneOf(['top', 'bottom', 'left', 'right']),
|
|
37
|
-
noMargin: _propTypes.default.bool,
|
|
38
|
-
noMarginLeft: _propTypes.default.bool,
|
|
39
|
-
noMarginRight: _propTypes.default.bool
|
|
40
|
-
};
|
|
41
|
-
InfoIcon.defaultProps = {
|
|
42
|
-
title: null,
|
|
43
|
-
html: null,
|
|
44
|
-
position: 'bottom',
|
|
45
|
-
noMargin: false,
|
|
46
|
-
noMarginLeft: false,
|
|
47
|
-
noMarginRight: false
|
|
48
|
-
};
|
|
49
|
-
var _default = InfoIcon;
|
|
50
|
-
exports.default = _default;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.InfoIconTop = exports.InfoIconBottom = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _InfoIcon = require("./InfoIcon");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var _default = {
|
|
12
|
-
title: 'Components Library/Icons/Info Icon',
|
|
13
|
-
component: _InfoIcon.InfoIcon,
|
|
14
|
-
argTypes: {
|
|
15
|
-
title: {
|
|
16
|
-
type: 'string',
|
|
17
|
-
defaultValue: 'default is null/ add some title'
|
|
18
|
-
},
|
|
19
|
-
html: {
|
|
20
|
-
type: 'node',
|
|
21
|
-
defaultValue: 'default is null/ add some html'
|
|
22
|
-
},
|
|
23
|
-
position: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
defaultValue: 'bottom'
|
|
26
|
-
},
|
|
27
|
-
noMargin: {
|
|
28
|
-
type: 'boolean',
|
|
29
|
-
defaultValue: false
|
|
30
|
-
},
|
|
31
|
-
noMarginLeft: {
|
|
32
|
-
type: 'boolean',
|
|
33
|
-
defaultValue: false
|
|
34
|
-
},
|
|
35
|
-
noMarginRight: {
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
defaultValue: false
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.default = _default;
|
|
42
|
-
var Template = function Template(args) {
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, args));
|
|
44
|
-
};
|
|
45
|
-
var InfoIconBottom = Template.bind({});
|
|
46
|
-
exports.InfoIconBottom = InfoIconBottom;
|
|
47
|
-
InfoIconBottom.args = {};
|
|
48
|
-
var InfoIconTop = Template.bind({});
|
|
49
|
-
exports.InfoIconTop = InfoIconTop;
|
|
50
|
-
InfoIconTop.args = {
|
|
51
|
-
position: 'top'
|
|
52
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Icon = exports.Container = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var Container = _styledComponents.default.div.withConfig({
|
|
11
|
-
displayName: "InfoIconstyles__Container",
|
|
12
|
-
componentId: "sc-d3sdn3-0"
|
|
13
|
-
})(["display:inline-block;vertical-align:middle;margin:0 12px;font-size:0;line-height:0;", " ", " ", " & > div{position:relative;display:inline-block!important;}"], function (props) {
|
|
14
|
-
return props.noMargin && "\n margin: 0;\n ";
|
|
15
|
-
}, function (props) {
|
|
16
|
-
return props.noMarginLeft && "\n margin-left: 0;\n ";
|
|
17
|
-
}, function (props) {
|
|
18
|
-
return props.noMarginRight && "\n margin-right: 0;\n ";
|
|
19
|
-
});
|
|
20
|
-
exports.Container = Container;
|
|
21
|
-
var Icon = _styledComponents.default.i.attrs({
|
|
22
|
-
className: 'ion ion-md-information-circle'
|
|
23
|
-
}).withConfig({
|
|
24
|
-
displayName: "InfoIconstyles__Icon",
|
|
25
|
-
componentId: "sc-d3sdn3-1"
|
|
26
|
-
})(["position:relative;left:-0.4px;display:inline-block;vertical-align:middle;font-size:16px;line-height:16px;vertical-align:middle;color:", ";transition:color 0.2s;&:hover{color:", ";}"], function (props) {
|
|
27
|
-
return _theme.default.cGrey2;
|
|
28
|
-
}, function (props) {
|
|
29
|
-
return _theme.default.cPrimary;
|
|
30
|
-
});
|
|
31
|
-
exports.Icon = Icon;
|
|
@@ -1,146 +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.ImagesCarousel = ImagesCarousel;
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _Slider = _interopRequireDefault(require("components/Slider/Slider"));
|
|
11
|
-
var _Slider2 = require("components/Slider/Slider.styles");
|
|
12
|
-
var _CaptialRaisedSummary = _interopRequireDefault(require("components/CapitalRaisedSummary/CaptialRaisedSummary"));
|
|
13
|
-
var _Grid = require("components/Grid/Grid.styles");
|
|
14
|
-
var _InvestmentStat = _interopRequireDefault(require("components/InvestmentStat/InvestmentStat"));
|
|
15
|
-
var _parseBlockContent = _interopRequireDefault(require("utils/parseBlockContent"));
|
|
16
|
-
var _ProjectContext = require("context/Project/ProjectContext");
|
|
17
|
-
var _video = require("components/video");
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
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); }
|
|
20
|
-
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; }
|
|
21
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
-
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; }
|
|
24
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
25
|
-
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); }
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
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."); }
|
|
28
|
-
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); }
|
|
29
|
-
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; }
|
|
30
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
31
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
32
|
-
function ImagesCarousel(params) {
|
|
33
|
-
var _useState = (0, _react.useState)(false),
|
|
34
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
35
|
-
shouldRenderPage = _useState2[0],
|
|
36
|
-
setShouldRenderPage = _useState2[1];
|
|
37
|
-
var _useState3 = (0, _react.useState)([]),
|
|
38
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
39
|
-
carouselItems = _useState4[0],
|
|
40
|
-
setCarouselItems = _useState4[1];
|
|
41
|
-
// const [venture, setVenture] = useState({})
|
|
42
|
-
var _useContext = (0, _react.useContext)(_ProjectContext.ProjectContext),
|
|
43
|
-
project = _useContext.project;
|
|
44
|
-
var _useState5 = (0, _react.useState)(false),
|
|
45
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
46
|
-
isVideoOpen = _useState6[0],
|
|
47
|
-
setIsVideoOpen = _useState6[1];
|
|
48
|
-
var _useState7 = (0, _react.useState)(''),
|
|
49
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
50
|
-
videoUri = _useState8[0],
|
|
51
|
-
setVideoUri = _useState8[1];
|
|
52
|
-
(0, _react.useEffect)(function () {
|
|
53
|
-
var carouselFiles = generateCarouselItems(project.blocks.media);
|
|
54
|
-
setCarouselItems(carouselFiles);
|
|
55
|
-
setShouldRenderPage(true);
|
|
56
|
-
}, []);
|
|
57
|
-
var generateCarouselItems = function generateCarouselItems(media) {
|
|
58
|
-
var mediaParsed = (0, _parseBlockContent.default)(media);
|
|
59
|
-
var carouselFiles = [];
|
|
60
|
-
var tempObj = {};
|
|
61
|
-
|
|
62
|
-
// Find only carousel items
|
|
63
|
-
Object.keys(mediaParsed).forEach(function (key) {
|
|
64
|
-
if (key.includes('carouselFiles')) {
|
|
65
|
-
var index = key.split('carouselFiles_')[1].split('_')[0];
|
|
66
|
-
|
|
67
|
-
// Group video and its thumbnail
|
|
68
|
-
if (key.includes('videoThumbnail')) {
|
|
69
|
-
tempObj[index] = _objectSpread(_objectSpread({}, tempObj[index]), {}, {
|
|
70
|
-
videoThumbnail: mediaParsed[key]
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
tempObj[index] = _objectSpread(_objectSpread({}, tempObj[index]), mediaParsed[key]);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
Object.keys(tempObj).forEach(function (key) {
|
|
78
|
-
carouselFiles.push(tempObj[key]);
|
|
79
|
-
});
|
|
80
|
-
return carouselFiles;
|
|
81
|
-
};
|
|
82
|
-
var openVideo = function openVideo(videoUri) {
|
|
83
|
-
setIsVideoOpen(true);
|
|
84
|
-
setVideoUri(videoUri);
|
|
85
|
-
};
|
|
86
|
-
var closeVideo = function closeVideo() {
|
|
87
|
-
setIsVideoOpen(false);
|
|
88
|
-
setVideoUri();
|
|
89
|
-
};
|
|
90
|
-
return shouldRenderPage ? /*#__PURE__*/_react.default.createElement(_Grid.Row, null, /*#__PURE__*/_react.default.createElement(_video.Video, {
|
|
91
|
-
src: videoUri,
|
|
92
|
-
isVideoOpen: true,
|
|
93
|
-
noPlayButton: true,
|
|
94
|
-
play: isVideoOpen,
|
|
95
|
-
onClose: closeVideo
|
|
96
|
-
}), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
97
|
-
part: 2,
|
|
98
|
-
full: 3
|
|
99
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider.default, {
|
|
100
|
-
dots: true
|
|
101
|
-
}, carouselItems.map(function (item) {
|
|
102
|
-
if (item.type === 'image') {
|
|
103
|
-
return /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlideWrapper, {
|
|
104
|
-
key: item.uri
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlide, {
|
|
106
|
-
src: item.uri,
|
|
107
|
-
alt: ""
|
|
108
|
-
}));
|
|
109
|
-
} else if (item.type === 'video') {
|
|
110
|
-
return /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlideWrapper, {
|
|
111
|
-
key: item.uri
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlide, {
|
|
113
|
-
src: item.videoThumbnail.uri,
|
|
114
|
-
alt: ""
|
|
115
|
-
}), /*#__PURE__*/_react.default.createElement(_video.PlayButton, {
|
|
116
|
-
onClick: function onClick() {
|
|
117
|
-
return openVideo(item.uri);
|
|
118
|
-
}
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
120
|
-
alt: "Play video",
|
|
121
|
-
src: require('components/video/img/play-btn.svg')
|
|
122
|
-
})));
|
|
123
|
-
}
|
|
124
|
-
})), /*#__PURE__*/_react.default.createElement(_CaptialRaisedSummary.default, {
|
|
125
|
-
capital: project.totalSold,
|
|
126
|
-
multiProgressBar: project.multiProgressBar
|
|
127
|
-
})), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
128
|
-
part: 1,
|
|
129
|
-
full: 3
|
|
130
|
-
}, /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
131
|
-
content: project.sharePercentage,
|
|
132
|
-
title: project.name === 'aquarius' ? 'Target return' : project.shareType,
|
|
133
|
-
tooltip: project.name === 'aquarius' ? 'The target yield per annum in accordance with the Offering Memorandum. Please read carefully the Offering Memorandum before investing' : project.name === 'mazzanti' ? 'The Securities represent the right to 50% of the sale proceeds for the sale of 1 (one) Millecavalli R car (minus any taxes).' : project.name === 'blockstream-mining' ? 'The percentage represents all Bitcoins mined over a period of 36 months in accordance with the Terms and Conditions. Please carefully read the Terms and Conditions before investing.' : "The percentage of the venture\u2019s future ".concat(project.name === 'infinite-fleet' ? 'profits' : 'revenues', " to be distributed in accordance with the Offering Terms. Please carefully read the Offering Terms and Offering Document\n before investing."),
|
|
134
|
-
borderTop: true
|
|
135
|
-
}), /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
136
|
-
content: project.name === 'aquarius' ? 'OPEN-ENDED' : project.name === 'infinite-fleet' ? 'TBD' : project.daysLeft,
|
|
137
|
-
title: project.name === 'aquarius' ? 'fund typ' : project.daysLeftText,
|
|
138
|
-
borderTop: true
|
|
139
|
-
}), /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
140
|
-
content: project.name === 'aquarius' ? 'PROFESSIONAL' : project.investmentCount.toString(),
|
|
141
|
-
title: "Investors",
|
|
142
|
-
primaryBg: true
|
|
143
|
-
}))) : '';
|
|
144
|
-
}
|
|
145
|
-
var _default = ImagesCarousel;
|
|
146
|
-
exports.default = _default;
|
|
@@ -1,85 +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 = exports.DatePickerInput = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _reactDayPicker = require("react-day-picker");
|
|
11
|
-
var _Input = require("./Input.styles");
|
|
12
|
-
var _DatePickerInput = require("./DatePickerInput.styles");
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
-
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."); }
|
|
18
|
-
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); }
|
|
19
|
-
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; }
|
|
20
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
21
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
-
var DatePickerInput = function DatePickerInput(props) {
|
|
23
|
-
var id = props.id,
|
|
24
|
-
name = props.name,
|
|
25
|
-
label = props.label,
|
|
26
|
-
placeholder = props.placeholder,
|
|
27
|
-
value = props.value,
|
|
28
|
-
error = props.error,
|
|
29
|
-
touched = props.touched,
|
|
30
|
-
dashboard = props.dashboard;
|
|
31
|
-
var _useState = (0, _react.useState)(false),
|
|
32
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
-
labelUp = _useState2[0],
|
|
34
|
-
setLabelUp = _useState2[1];
|
|
35
|
-
(0, _react.useEffect)(function () {
|
|
36
|
-
checkLabel(false);
|
|
37
|
-
}, []);
|
|
38
|
-
var onChange = function onChange(value) {
|
|
39
|
-
props.onChange && props.onChange(null, {
|
|
40
|
-
name: name,
|
|
41
|
-
value: value
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
var checkLabel = function checkLabel(focus) {
|
|
45
|
-
setLabelUp(focus || !!value);
|
|
46
|
-
};
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement(_Input.Wrapper, null, label && /*#__PURE__*/_react.default.createElement(_Input.Label, {
|
|
48
|
-
isUp: labelUp,
|
|
49
|
-
error: error && touched,
|
|
50
|
-
htmlFor: id
|
|
51
|
-
}, label), /*#__PURE__*/_react.default.createElement(_DatePickerInput.DatePickerOverlay, {
|
|
52
|
-
onClick: function onClick() {
|
|
53
|
-
return checkLabel(true);
|
|
54
|
-
},
|
|
55
|
-
dashboard: dashboard
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(_reactDayPicker.DayPicker, {
|
|
57
|
-
id: id,
|
|
58
|
-
name: name,
|
|
59
|
-
value: value,
|
|
60
|
-
placeholder: placeholder,
|
|
61
|
-
onDayChange: onChange,
|
|
62
|
-
error: error
|
|
63
|
-
})));
|
|
64
|
-
};
|
|
65
|
-
exports.DatePickerInput = DatePickerInput;
|
|
66
|
-
DatePickerInput.propTypes = {
|
|
67
|
-
id: _propTypes.default.string.isRequired,
|
|
68
|
-
name: _propTypes.default.string.isRequired,
|
|
69
|
-
label: _propTypes.default.string,
|
|
70
|
-
placeholder: _propTypes.default.string,
|
|
71
|
-
error: _propTypes.default.bool,
|
|
72
|
-
touched: _propTypes.default.bool,
|
|
73
|
-
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.instanceOf(Date)]).isRequired,
|
|
74
|
-
onChange: _propTypes.default.func.isRequired,
|
|
75
|
-
dashboard: _propTypes.default.bool
|
|
76
|
-
};
|
|
77
|
-
DatePickerInput.defaultProps = {
|
|
78
|
-
label: '',
|
|
79
|
-
placeholder: '',
|
|
80
|
-
error: false,
|
|
81
|
-
touched: false,
|
|
82
|
-
dashboard: false
|
|
83
|
-
};
|
|
84
|
-
var _default = DatePickerInput;
|
|
85
|
-
exports.default = _default;
|