@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,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.DonutChart = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var d3 = _interopRequireWildcard(require("d3"));
|
|
10
|
-
var _DonutChart = require("./DonutChart.styles");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
-
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); } }
|
|
19
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
-
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); }
|
|
21
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
22
|
-
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); }; }
|
|
23
|
-
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); }
|
|
24
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
25
|
-
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; } }
|
|
26
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
27
|
-
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; }
|
|
28
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
29
|
-
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); }
|
|
30
|
-
var DonutChart = /*#__PURE__*/function (_PureComponent) {
|
|
31
|
-
_inherits(DonutChart, _PureComponent);
|
|
32
|
-
var _super = _createSuper(DonutChart);
|
|
33
|
-
function DonutChart() {
|
|
34
|
-
var _this;
|
|
35
|
-
_classCallCheck(this, DonutChart);
|
|
36
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
37
|
-
args[_key] = arguments[_key];
|
|
38
|
-
}
|
|
39
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
40
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
41
|
-
data: [],
|
|
42
|
-
key: 0
|
|
43
|
-
});
|
|
44
|
-
_defineProperty(_assertThisInitialized(_this), "createChart", function () {
|
|
45
|
-
if (!_this.chartEl) return;
|
|
46
|
-
var data = _this.state.data;
|
|
47
|
-
var width = 320;
|
|
48
|
-
var height = 320;
|
|
49
|
-
var pad = 10;
|
|
50
|
-
var thickness = 14;
|
|
51
|
-
var outerRadius = width / 2;
|
|
52
|
-
var innerRadius = outerRadius - thickness;
|
|
53
|
-
var padAngle = pad / (outerRadius - thickness / 2);
|
|
54
|
-
var customColors = data.map(function (item) {
|
|
55
|
-
return item.color;
|
|
56
|
-
});
|
|
57
|
-
var color = customColors[0] ? d3.scaleOrdinal(customColors) : d3.scaleOrdinal(d3.schemeCategory10);
|
|
58
|
-
var svg = d3.select(_this.chartEl).append('svg').attr('viewBox', "0 0 ".concat(width, " ").concat(height));
|
|
59
|
-
var chart = svg.append('g').attr('transform', "translate(".concat(width / 2, ", ").concat(height / 2, ")"));
|
|
60
|
-
var pie = d3.pie().value(function (d) {
|
|
61
|
-
return d.value;
|
|
62
|
-
}).sort(null).padAngle(padAngle);
|
|
63
|
-
var arc = d3.arc().outerRadius(outerRadius).innerRadius(innerRadius);
|
|
64
|
-
function arcTween(a) {
|
|
65
|
-
var interp = d3.interpolate(this._current, a);
|
|
66
|
-
this._current = interp(1);
|
|
67
|
-
return function (time) {
|
|
68
|
-
return arc(interp(time));
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function setD(d) {
|
|
72
|
-
this._current = d;
|
|
73
|
-
}
|
|
74
|
-
_this.drawDate = function (dataSet) {
|
|
75
|
-
// Join new data
|
|
76
|
-
var path = chart.selectAll('path').data(pie(dataSet));
|
|
77
|
-
|
|
78
|
-
// Update existing arcs
|
|
79
|
-
path.transition().ease(d3.easeQuadOut).duration(1000).attrTween('d', arcTween);
|
|
80
|
-
|
|
81
|
-
// Enter new arcs
|
|
82
|
-
path.enter().append('path').attr('fill', function (d, i) {
|
|
83
|
-
return color(i);
|
|
84
|
-
}).attr('d', arc).each(setD);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
// set init data
|
|
88
|
-
_this.drawDate(data.map(function (datum) {
|
|
89
|
-
return _objectSpread(_objectSpread({}, datum), {}, {
|
|
90
|
-
value: 0
|
|
91
|
-
});
|
|
92
|
-
}));
|
|
93
|
-
});
|
|
94
|
-
_defineProperty(_assertThisInitialized(_this), "drawChart", function () {
|
|
95
|
-
var data = _this.props.data;
|
|
96
|
-
_this.drawDate(data);
|
|
97
|
-
_this.drawn = true;
|
|
98
|
-
});
|
|
99
|
-
_defineProperty(_assertThisInitialized(_this), "onScroll", function (e) {
|
|
100
|
-
if (_this.drawn) return;
|
|
101
|
-
if (_this.chartEl.getBoundingClientRect().top < window.innerHeight) {
|
|
102
|
-
_this.drawChart();
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
return _this;
|
|
106
|
-
}
|
|
107
|
-
_createClass(DonutChart, [{
|
|
108
|
-
key: "componentDidMount",
|
|
109
|
-
value: function componentDidMount() {
|
|
110
|
-
var _this2 = this;
|
|
111
|
-
var data = this.props.data;
|
|
112
|
-
this.setState({
|
|
113
|
-
data: data
|
|
114
|
-
}, function () {
|
|
115
|
-
_this2.createChart();
|
|
116
|
-
window.addEventListener('scroll', _this2.onScroll);
|
|
117
|
-
_this2.onScroll();
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}, {
|
|
121
|
-
key: "componentDidUpdate",
|
|
122
|
-
value: function componentDidUpdate(prevProps) {
|
|
123
|
-
var _this3 = this;
|
|
124
|
-
var key = this.state.key;
|
|
125
|
-
var newData = this.props.data;
|
|
126
|
-
var prevData = prevProps.data;
|
|
127
|
-
if (newData && prevData && JSON.stringify(newData) !== JSON.stringify(prevData)) {
|
|
128
|
-
this.setState({
|
|
129
|
-
data: newData
|
|
130
|
-
}, function () {
|
|
131
|
-
_this3.drawn = false;
|
|
132
|
-
window.removeEventListener('scroll', _this3.onScroll);
|
|
133
|
-
_this3.setState({
|
|
134
|
-
key: key + 1
|
|
135
|
-
}, function () {
|
|
136
|
-
_this3.createChart();
|
|
137
|
-
window.addEventListener('scroll', _this3.onScroll);
|
|
138
|
-
_this3.onScroll();
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}, {
|
|
144
|
-
key: "componentWillUnmount",
|
|
145
|
-
value: function componentWillUnmount() {
|
|
146
|
-
window.removeEventListener('scroll', this.onScroll);
|
|
147
|
-
}
|
|
148
|
-
}, {
|
|
149
|
-
key: "render",
|
|
150
|
-
value: function render() {
|
|
151
|
-
var _this4 = this;
|
|
152
|
-
var _this$props = this.props,
|
|
153
|
-
children = _this$props.children,
|
|
154
|
-
center = _this$props.center;
|
|
155
|
-
var key = this.state.key;
|
|
156
|
-
return /*#__PURE__*/_react.default.createElement(_DonutChart.Chart, {
|
|
157
|
-
ref: function ref(el) {
|
|
158
|
-
_this4.chartEl = el;
|
|
159
|
-
},
|
|
160
|
-
center: center,
|
|
161
|
-
key: key
|
|
162
|
-
}, /*#__PURE__*/_react.default.createElement(_DonutChart.Content, null, children));
|
|
163
|
-
}
|
|
164
|
-
}]);
|
|
165
|
-
return DonutChart;
|
|
166
|
-
}(_react.PureComponent);
|
|
167
|
-
exports.DonutChart = DonutChart;
|
|
168
|
-
DonutChart.propTypes = {
|
|
169
|
-
children: _propTypes.default.node,
|
|
170
|
-
data: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
171
|
-
value: _propTypes.default.number.isRequired,
|
|
172
|
-
name: _propTypes.default.string,
|
|
173
|
-
color: _propTypes.default.string
|
|
174
|
-
})).isRequired,
|
|
175
|
-
center: _propTypes.default.bool
|
|
176
|
-
};
|
|
177
|
-
DonutChart.defaultProps = {
|
|
178
|
-
children: null,
|
|
179
|
-
center: false
|
|
180
|
-
};
|
|
181
|
-
var _default = DonutChart;
|
|
182
|
-
exports.default = _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// import React from 'react'
|
|
2
|
-
// import DonutChart from './DonutChart'
|
|
3
|
-
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
4
|
-
|
|
5
|
-
// export default {
|
|
6
|
-
// title: 'Components Library/DonutChart',
|
|
7
|
-
// component: DonutChart,
|
|
8
|
-
// argTypes: {
|
|
9
|
-
// children: { type: 'node', defaultValue: null },
|
|
10
|
-
// center: { type: 'boolean', defaultValue: false },
|
|
11
|
-
// data: {
|
|
12
|
-
// type: 'array',
|
|
13
|
-
// defaultValue: [{ value: '' }, { name: '' }, { color: '' }],
|
|
14
|
-
// required: true,
|
|
15
|
-
// },
|
|
16
|
-
// },
|
|
17
|
-
// }
|
|
18
|
-
|
|
19
|
-
// const Template = args => (
|
|
20
|
-
// <ComponentWrapper>
|
|
21
|
-
// <DonutChart {...args} />
|
|
22
|
-
// </ComponentWrapper>
|
|
23
|
-
// )
|
|
24
|
-
|
|
25
|
-
// export const DonutChartDefault = Template.bind({})
|
|
26
|
-
// DonutChartDefault.args = {
|
|
27
|
-
// children: null,
|
|
28
|
-
// data: [
|
|
29
|
-
// {
|
|
30
|
-
// value: 'A Value',
|
|
31
|
-
// name: 'A Name',
|
|
32
|
-
// color: 'blue',
|
|
33
|
-
// },
|
|
34
|
-
// ],
|
|
35
|
-
// center: true,
|
|
36
|
-
// }
|
|
37
|
-
|
|
38
|
-
// doublecheck
|
|
39
|
-
// cannot resolve d3
|
|
40
|
-
"use strict";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DonutChartValue = exports.DonutChartTrend = exports.DonutChartLabel = exports.DonutChartInfo = exports.Content = exports.Chart = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var Chart = _styledComponents.default.div.withConfig({
|
|
10
|
-
displayName: "DonutChartstyles__Chart",
|
|
11
|
-
componentId: "sc-mlj05j-0"
|
|
12
|
-
})(["position:relative;display:block;max-width:320px;& > svg{width:100%;height:auto;}", ""], function (props) {
|
|
13
|
-
return props.center && "\n margin: 0 auto;\n ";
|
|
14
|
-
});
|
|
15
|
-
exports.Chart = Chart;
|
|
16
|
-
var thickness = '14px';
|
|
17
|
-
var Content = _styledComponents.default.div.withConfig({
|
|
18
|
-
displayName: "DonutChartstyles__Content",
|
|
19
|
-
componentId: "sc-mlj05j-1"
|
|
20
|
-
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:", ";left:", ";right:", ";bottom:", ";text-align:center;"], thickness, thickness, thickness, thickness);
|
|
21
|
-
exports.Content = Content;
|
|
22
|
-
var DonutChartLabel = _styledComponents.default.p.withConfig({
|
|
23
|
-
displayName: "DonutChartstyles__DonutChartLabel",
|
|
24
|
-
componentId: "sc-mlj05j-2"
|
|
25
|
-
})(["font-family:'Open Sans';font-size:11px;line-height:16px;letter-spacing:2px;text-transform:uppercase;padding:4px 0;margin:0;", ""], function (props) {
|
|
26
|
-
return props.strong && "\n font-weight: bold;\n ";
|
|
27
|
-
});
|
|
28
|
-
exports.DonutChartLabel = DonutChartLabel;
|
|
29
|
-
var DonutChartValue = _styledComponents.default.h3.withConfig({
|
|
30
|
-
displayName: "DonutChartstyles__DonutChartValue",
|
|
31
|
-
componentId: "sc-mlj05j-3"
|
|
32
|
-
})(["font-family:'Open Sans';font-weight:300;font-size:", ";line-height:58px;letter-spacing:2.4px;margin:0;padding:7px 0;margin-bottom:7px;"], function (_ref) {
|
|
33
|
-
var fontSize = _ref.fontSize;
|
|
34
|
-
return fontSize ? "".concat(fontSize, "px") : '55px';
|
|
35
|
-
});
|
|
36
|
-
exports.DonutChartValue = DonutChartValue;
|
|
37
|
-
var DonutChartInfo = _styledComponents.default.p.withConfig({
|
|
38
|
-
displayName: "DonutChartstyles__DonutChartInfo",
|
|
39
|
-
componentId: "sc-mlj05j-4"
|
|
40
|
-
})(["font-family:'Open Sans';font-weight:300;font-size:22px;line-height:28px;letter-spacing:0.8px;margin:0;"]);
|
|
41
|
-
exports.DonutChartInfo = DonutChartInfo;
|
|
42
|
-
var DonutChartTrend = _styledComponents.default.span.withConfig({
|
|
43
|
-
displayName: "DonutChartstyles__DonutChartTrend",
|
|
44
|
-
componentId: "sc-mlj05j-5"
|
|
45
|
-
})(["display:inline-block;margin-left:8px;&:before{content:'\\f1fc';font-family:'Ionicons';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;-moz-osx-font-smoothing:grayscale;font-size:12px;line-height:12px;display:inline-block;vertical-align:middle;margin-top:-1px;width:12px;height:12px;margin-right:8px;}", " ", ""], function (props) {
|
|
46
|
-
return props.inc && "\n color: ".concat(props.theme.cProgressDone, ";\n\n &:before {\n content: '\\f3d8';\n }\n ");
|
|
47
|
-
}, function (props) {
|
|
48
|
-
return props.dec && "\n color: ".concat(props.theme.cWarning, ";\n\n &:before {\n content: '\\f3d0';\n }\n ");
|
|
49
|
-
});
|
|
50
|
-
exports.DonutChartTrend = DonutChartTrend;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.DoubleButtons = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _rwd = _interopRequireDefault(require("styles/rwd"));
|
|
9
|
-
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
10
|
-
var _templateObject;
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
var DoubleButtons = _styledComponents.default.div.withConfig({
|
|
14
|
-
displayName: "DoubleButtonstyles__DoubleButtons",
|
|
15
|
-
componentId: "sc-13b0zge-0"
|
|
16
|
-
})(["margin:-12px;", "{width:100%;margin:12px;}", ""], _Button.default, _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n\n \n ", " {\n width: auto;\n flex: 1;\n }\n "])), function (_ref) {
|
|
17
|
-
var column = _ref.column;
|
|
18
|
-
return column ? 'column' : 'row';
|
|
19
|
-
}, _Button.default));
|
|
20
|
-
exports.DoubleButtons = DoubleButtons;
|
|
21
|
-
var _default = DoubleButtons;
|
|
22
|
-
exports.default = _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ErrorMessage = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var ErrorMessage = _styledComponents.default.p.withConfig({
|
|
10
|
-
displayName: "ErrorMessagestyles__ErrorMessage",
|
|
11
|
-
componentId: "sc-1b3bbc3-0"
|
|
12
|
-
})(["color:#ee220d;font-size:12px;margin-top:20px;"]);
|
|
13
|
-
exports.ErrorMessage = ErrorMessage;
|
|
14
|
-
var _default = ErrorMessage; // unused component
|
|
15
|
-
exports.default = _default;
|
|
@@ -1,65 +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.FAQ = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var scrollToElement = _interopRequireWildcard(require("scroll-to-element"));
|
|
11
|
-
var _Text = _interopRequireDefault(require("components/Text/Text.styles"));
|
|
12
|
-
var _FAQ = require("./FAQ.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 FAQ = function FAQ(props) {
|
|
23
|
-
var items = props.items,
|
|
24
|
-
noScroll = props.noScroll;
|
|
25
|
-
var _useState = (0, _react.useState)(null),
|
|
26
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
-
activeIndex = _useState2[0],
|
|
28
|
-
setActiveIndex = _useState2[1];
|
|
29
|
-
var onTitleClick = function onTitleClick(e, index) {
|
|
30
|
-
e.persist();
|
|
31
|
-
var newActiveIndex = activeIndex === index ? null : index;
|
|
32
|
-
setActiveIndex(newActiveIndex);
|
|
33
|
-
if (!noScroll && newActiveIndex !== null) {
|
|
34
|
-
scrollToElement(e.target.parentElement, {
|
|
35
|
-
duration: 300,
|
|
36
|
-
offset: 20
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_FAQ.FaqItems, null, items.map(function (item, index) {
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(_FAQ.FaqItem, {
|
|
42
|
-
key: item.title
|
|
43
|
-
}, /*#__PURE__*/_react.default.createElement(_FAQ.FaqTitle, {
|
|
44
|
-
isActive: activeIndex === index,
|
|
45
|
-
onClick: function onClick(e) {
|
|
46
|
-
return onTitleClick(e, index);
|
|
47
|
-
}
|
|
48
|
-
}, item.title, /*#__PURE__*/_react.default.createElement(_FAQ.FaqDropdownIcon, null)), /*#__PURE__*/_react.default.createElement(_FAQ.FaqContent, {
|
|
49
|
-
isOpened: activeIndex === index
|
|
50
|
-
}, typeof item.content === 'string' ? /*#__PURE__*/_react.default.createElement(_FAQ.FaqText, null, item.content) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("ul", null, item.content.map(function (answer) {
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement("li", {
|
|
52
|
-
key: answer
|
|
53
|
-
}, answer);
|
|
54
|
-
}))))));
|
|
55
|
-
}));
|
|
56
|
-
};
|
|
57
|
-
exports.FAQ = FAQ;
|
|
58
|
-
FAQ.propTypes = {
|
|
59
|
-
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
60
|
-
title: _propTypes.default.string.isRequired,
|
|
61
|
-
content: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]).isRequired
|
|
62
|
-
})).isRequired
|
|
63
|
-
};
|
|
64
|
-
var _default = FAQ;
|
|
65
|
-
exports.default = _default;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.FAQExample = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _FAQ = require("./FAQ");
|
|
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/FAQ',
|
|
13
|
-
component: _FAQ.FAQ,
|
|
14
|
-
argTypes: {
|
|
15
|
-
// item: { type: 'string', defaultValue: 'FAQ Item' },
|
|
16
|
-
items: {
|
|
17
|
-
type: 'array of shapes',
|
|
18
|
-
required: true,
|
|
19
|
-
defaultValue: []
|
|
20
|
-
// title: { type: 'string', required: true, defaultValue: 'Default Title' },
|
|
21
|
-
// content: {
|
|
22
|
-
// type: 'string',
|
|
23
|
-
// required: true,
|
|
24
|
-
// defaultValue: 'Default Content',
|
|
25
|
-
// },
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
onTitleClick: {
|
|
29
|
-
action: 'titleClick',
|
|
30
|
-
type: 'function'
|
|
31
|
-
},
|
|
32
|
-
scrollToElement: {
|
|
33
|
-
action: 'scroll',
|
|
34
|
-
type: 'function'
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.default = _default;
|
|
39
|
-
var Template = function Template(args) {
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_FAQ.FAQ, args));
|
|
41
|
-
};
|
|
42
|
-
var FAQExample = Template.bind({});
|
|
43
|
-
exports.FAQExample = FAQExample;
|
|
44
|
-
FAQExample.args = {
|
|
45
|
-
items: [{
|
|
46
|
-
title: 'What kind of Ventures can be found on STOKR?',
|
|
47
|
-
content: 'You can find startups and small to medium sized companies led by motivated and qualified founders, committed to making a positive impact. Ventures are selected based on their business model and have various risk levels.'
|
|
48
|
-
}, {
|
|
49
|
-
title: 'What can I invest with?',
|
|
50
|
-
content: "Investors can invest via Bitcoin (BTC), Liquid Bitcoin (L-BTC), Ether (ETH) and stable coins such as Gemini Dollar (GUSD) and USD Tether (USDT). If you're not into cryptocurrencies, you can simply do a SEPA transfer and invest with Euro."
|
|
51
|
-
}, {
|
|
52
|
-
title: 'List that for me (only SUF)',
|
|
53
|
-
content: ['Bitcoin (BTC)', 'Liquid Bitcoin (L-BTC)', 'Ether (ETH)', 'stable coins such as Gemini Dollar (GUSD) and USD Tether (USDT)', "If you're not into cryptocurrencies, you can simply do a SEPA transfer and invest with Euro."]
|
|
54
|
-
}]
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// simple:
|
|
58
|
-
// export const FAQExample = () => (
|
|
59
|
-
// <ComponentWrapper>
|
|
60
|
-
// <FAQ
|
|
61
|
-
// items={[
|
|
62
|
-
// { title: 'example title', content: 'some content' },
|
|
63
|
-
// { title: 'example title 2', content: [1, 2, 3, 4, 5] },
|
|
64
|
-
// ]}
|
|
65
|
-
// />
|
|
66
|
-
// </ComponentWrapper>
|
|
67
|
-
// )
|
|
68
|
-
|
|
69
|
-
//doublecheck:
|
|
70
|
-
|
|
71
|
-
// state (activeIndex), mapping, shape, scroll, activeIndex
|
|
72
|
-
// actions not firing, maybe cause not props
|
|
73
|
-
// map over items (item,index)?
|
|
74
|
-
// cannot fill in own text (control) as title and content are part of items shape
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FaqTitle = exports.FaqText = exports.FaqItems = exports.FaqItem = exports.FaqDropdownIcon = exports.FaqContent = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _reactCollapse = require("react-collapse");
|
|
9
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var FaqItems = _styledComponents.default.div.withConfig({
|
|
12
|
-
displayName: "FAQstyles__FaqItems",
|
|
13
|
-
componentId: "sc-dtvahh-0"
|
|
14
|
-
})(["position:relative;"]);
|
|
15
|
-
exports.FaqItems = FaqItems;
|
|
16
|
-
var FaqItem = _styledComponents.default.div.withConfig({
|
|
17
|
-
displayName: "FAQstyles__FaqItem",
|
|
18
|
-
componentId: "sc-dtvahh-1"
|
|
19
|
-
})(["& + &{margin-top:30px;}"]);
|
|
20
|
-
exports.FaqItem = FaqItem;
|
|
21
|
-
var FaqTitle = _styledComponents.default.button.withConfig({
|
|
22
|
-
displayName: "FAQstyles__FaqTitle",
|
|
23
|
-
componentId: "sc-dtvahh-2"
|
|
24
|
-
})(["display:block;width:100%;position:relative;font-family:'Open Sans';font-weight:600;font-size:16px;line-height:24px;letter-spacing:0.4px;color:", ";padding:0;margin:0;outline:0;border:none;padding-right:30px;text-align:left;transition:color 0.2s;&:hover{color:inherit;}", ""], function (props) {
|
|
25
|
-
return _theme.default.cBlack;
|
|
26
|
-
}, function (props) {
|
|
27
|
-
return props.isActive && "\n ".concat(FaqDropdownIcon, " {\n transform: rotate(180deg);\n }\n ");
|
|
28
|
-
});
|
|
29
|
-
exports.FaqTitle = FaqTitle;
|
|
30
|
-
var FaqDropdownIcon = _styledComponents.default.i.attrs({
|
|
31
|
-
className: 'ion ion-ios-arrow-down'
|
|
32
|
-
}).withConfig({
|
|
33
|
-
displayName: "FAQstyles__FaqDropdownIcon",
|
|
34
|
-
componentId: "sc-dtvahh-3"
|
|
35
|
-
})(["width:14px;height:20px;font-size:20px;position:absolute;top:50%;right:0;margin-top:-10px;transform:rotate(0);transition:0.3s transform;"]);
|
|
36
|
-
exports.FaqDropdownIcon = FaqDropdownIcon;
|
|
37
|
-
var FaqContent = (0, _styledComponents.default)(_reactCollapse.Collapse).withConfig({
|
|
38
|
-
displayName: "FAQstyles__FaqContent",
|
|
39
|
-
componentId: "sc-dtvahh-4"
|
|
40
|
-
})(["opacity:0;transition:opacity 0.2s;", ""], function (props) {
|
|
41
|
-
return props.isOpened && "\n opacity: 1;\n ";
|
|
42
|
-
});
|
|
43
|
-
exports.FaqContent = FaqContent;
|
|
44
|
-
var FaqText = _styledComponents.default.div.withConfig({
|
|
45
|
-
displayName: "FAQstyles__FaqText",
|
|
46
|
-
componentId: "sc-dtvahh-5"
|
|
47
|
-
})(["padding:0;padding-top:30px;padding-bottom:10px;font-weight:300;font-size:16px;line-height:24px;letter-spacing:0.4px;"]);
|
|
48
|
-
exports.FaqText = FaqText;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Footer = void 0;
|
|
7
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _Grid = require("components/Grid/Grid.styles");
|
|
10
|
-
var _sicosLogo = _interopRequireDefault(require("./sicos-logo.svg"));
|
|
11
|
-
var _Footer = require("./Footer.styles");
|
|
12
|
-
var _lemonway = _interopRequireDefault(require("./lemonway.png"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
var Footer = function Footer(_ref) {
|
|
15
|
-
var color = _ref.color,
|
|
16
|
-
_ref$lemonwayLogo = _ref.lemonwayLogo,
|
|
17
|
-
lemonwayLogo = _ref$lemonwayLogo === void 0 ? _lemonway.default : _ref$lemonwayLogo,
|
|
18
|
-
_ref$hasSidebar = _ref.hasSidebar,
|
|
19
|
-
hasSidebar = _ref$hasSidebar === void 0 ? false : _ref$hasSidebar,
|
|
20
|
-
isSidebarExpanded = _ref.isSidebarExpanded;
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_Footer.StyledFooter, {
|
|
22
|
-
color: color,
|
|
23
|
-
isSidebarExpanded: isSidebarExpanded,
|
|
24
|
-
hasSidebar: hasSidebar
|
|
25
|
-
}, /*#__PURE__*/_react.default.createElement(_Grid.Wrapper, null, /*#__PURE__*/_react.default.createElement(_Footer.FooterInner, {
|
|
26
|
-
hasSidebar: hasSidebar
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(_Footer.PartnerWrap, null, /*#__PURE__*/_react.default.createElement(_Footer.Partner, null, "STOKR is a virtual asset service provider (VASP), ", /*#__PURE__*/_react.default.createElement("br", null), ' ', /*#__PURE__*/_react.default.createElement("a", {
|
|
28
|
-
href: "https://searchentities.apps.cssf.lu/search-entities/search?&st=advanced&entType=VAP&entDate=2020-08-01",
|
|
29
|
-
title: "registered",
|
|
30
|
-
target: "_blank",
|
|
31
|
-
rel: "noopener noreferrer",
|
|
32
|
-
style: {
|
|
33
|
-
textDecoration: 'underline',
|
|
34
|
-
color: 'white'
|
|
35
|
-
}
|
|
36
|
-
}, "registered"), ' ', "with the Luxembourg regulator CSSF.")), /*#__PURE__*/_react.default.createElement(_Footer.PoweredWrap, null, /*#__PURE__*/_react.default.createElement(_Footer.Powered, null, /*#__PURE__*/_react.default.createElement("div", null, "Partner of", ' ', /*#__PURE__*/_react.default.createElement("a", {
|
|
37
|
-
href: "http://www.lemonway.com/",
|
|
38
|
-
title: "Lemon Way - Payment Institution for the new economy",
|
|
39
|
-
target: "_blank",
|
|
40
|
-
rel: "noopener noreferrer",
|
|
41
|
-
style: {
|
|
42
|
-
color: 'white',
|
|
43
|
-
textDecoration: 'none'
|
|
44
|
-
}
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
46
|
-
style: {
|
|
47
|
-
verticalAlign: 'middle'
|
|
48
|
-
},
|
|
49
|
-
src: lemonwayLogo,
|
|
50
|
-
height: 20,
|
|
51
|
-
width: 20,
|
|
52
|
-
alt: "Lemonway logo"
|
|
53
|
-
}), ' ', "LEMONWAY"), ". A European payment institution ", /*#__PURE__*/_react.default.createElement("br", null), " accredited in France by the ACPR (CIB 16568).")), /*#__PURE__*/_react.default.createElement(_Footer.Copyright, null, "Copyright ", new Date().getFullYear(), " STOKR. All rights reserved.")))));
|
|
54
|
-
};
|
|
55
|
-
exports.Footer = Footer;
|
|
56
|
-
Footer.propTypes = {
|
|
57
|
-
color: _propTypes.default.oneOf(['primary', 'red']),
|
|
58
|
-
lemonwayLogo: _propTypes.default.string,
|
|
59
|
-
hasSidebar: _propTypes.default.bool,
|
|
60
|
-
isSidebarExpanded: _propTypes.default.bool
|
|
61
|
-
};
|
|
62
|
-
Footer.defaultProps = {
|
|
63
|
-
color: 'primary'
|
|
64
|
-
};
|
|
65
|
-
var _default = Footer;
|
|
66
|
-
exports.default = _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.FooterRedWithSidebar = exports.FooterRed = exports.FooterPrimary = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Footer = require("./Footer");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = {
|
|
11
|
-
title: 'Components Library/Footer',
|
|
12
|
-
component: _Footer.Footer,
|
|
13
|
-
argTypes: {
|
|
14
|
-
color: {
|
|
15
|
-
options: ['primary', 'red'],
|
|
16
|
-
control: {
|
|
17
|
-
type: ''
|
|
18
|
-
},
|
|
19
|
-
hasSidebar: {
|
|
20
|
-
type: 'boolean',
|
|
21
|
-
default: false
|
|
22
|
-
},
|
|
23
|
-
isSidebarExpanded: {
|
|
24
|
-
type: 'boolean',
|
|
25
|
-
default: false
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.default = _default;
|
|
31
|
-
var Template = function Template(args) {
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_Footer.Footer, args);
|
|
33
|
-
};
|
|
34
|
-
var FooterPrimary = Template.bind({});
|
|
35
|
-
exports.FooterPrimary = FooterPrimary;
|
|
36
|
-
FooterPrimary.args = {};
|
|
37
|
-
var FooterRed = Template.bind({});
|
|
38
|
-
exports.FooterRed = FooterRed;
|
|
39
|
-
FooterRed.args = {
|
|
40
|
-
color: 'red'
|
|
41
|
-
};
|
|
42
|
-
var FooterRedWithSidebar = Template.bind({});
|
|
43
|
-
exports.FooterRedWithSidebar = FooterRedWithSidebar;
|
|
44
|
-
FooterRedWithSidebar.args = {
|
|
45
|
-
color: 'red',
|
|
46
|
-
hasSidebar: true,
|
|
47
|
-
isSidebarExpanded: true
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// export const footerprimary = () => <Footer color="primary"></Footer>
|
|
51
|
-
// export const footerred = () => <Footer color="red"></Footer>
|
|
52
|
-
|
|
53
|
-
//doublecheck:
|
|
54
|
-
// padding missing for primary in Footer.styles
|