@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,383 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _axiosMatomo = _interopRequireDefault(require("../../model/axios-matomo"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
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); }
|
|
10
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
11
|
-
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; }
|
|
12
|
-
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; }
|
|
13
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
15
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
-
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); } }
|
|
17
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
-
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; }
|
|
19
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
-
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); }
|
|
21
|
-
var Matomo = /*#__PURE__*/function () {
|
|
22
|
-
function Matomo() {
|
|
23
|
-
_classCallCheck(this, Matomo);
|
|
24
|
-
_defineProperty(this, "MATOMO_API_URL", process.env.NODE_ENV === 'production' ? '/matomoapi' : 'http://stokr.matomo.cloud');
|
|
25
|
-
_defineProperty(this, "MATOMO_SITE_ID", 2);
|
|
26
|
-
_defineProperty(this, "MATOMO_AUTH_TOKEN", 'c3989ca407e65354764eb16bfc0def79');
|
|
27
|
-
_defineProperty(this, "MATOMO_DEFAULT_PARAMS", {
|
|
28
|
-
module: 'API',
|
|
29
|
-
format: 'json',
|
|
30
|
-
token_auth: this.MATOMO_AUTH_TOKEN,
|
|
31
|
-
idSite: this.MATOMO_SITE_ID
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
_createClass(Matomo, [{
|
|
35
|
-
key: "LiveGetCounters",
|
|
36
|
-
value:
|
|
37
|
-
/**
|
|
38
|
-
* Get real time counters
|
|
39
|
-
* @param lastMinutes
|
|
40
|
-
*/
|
|
41
|
-
function () {
|
|
42
|
-
var _LiveGetCounters = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(lastMinutes, column) {
|
|
43
|
-
var _this = this;
|
|
44
|
-
var response;
|
|
45
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46
|
-
while (1) switch (_context.prev = _context.next) {
|
|
47
|
-
case 0:
|
|
48
|
-
_context.next = 2;
|
|
49
|
-
return new Promise(function (resolve) {
|
|
50
|
-
_axiosMatomo.default.get(_this.MATOMO_API_URL, {
|
|
51
|
-
params: _objectSpread(_objectSpread({}, _this.MATOMO_DEFAULT_PARAMS), {}, {
|
|
52
|
-
method: 'Live.getCounters',
|
|
53
|
-
lastMinutes: lastMinutes,
|
|
54
|
-
showColumns: column
|
|
55
|
-
})
|
|
56
|
-
}).then(function (response) {
|
|
57
|
-
resolve(parseInt(response.data[0][column]));
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
case 2:
|
|
61
|
-
response = _context.sent;
|
|
62
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
63
|
-
_context.next = 6;
|
|
64
|
-
return response;
|
|
65
|
-
case 6:
|
|
66
|
-
return _context.abrupt("return", _context.sent);
|
|
67
|
-
case 7:
|
|
68
|
-
case "end":
|
|
69
|
-
return _context.stop();
|
|
70
|
-
}
|
|
71
|
-
}, _callee);
|
|
72
|
-
}));
|
|
73
|
-
function LiveGetCounters(_x, _x2) {
|
|
74
|
-
return _LiveGetCounters.apply(this, arguments);
|
|
75
|
-
}
|
|
76
|
-
return LiveGetCounters;
|
|
77
|
-
}()
|
|
78
|
-
/**
|
|
79
|
-
* Get visits summary for date range
|
|
80
|
-
* @param range
|
|
81
|
-
*/
|
|
82
|
-
}, {
|
|
83
|
-
key: "GetVisitsSummary",
|
|
84
|
-
value: function () {
|
|
85
|
-
var _GetVisitsSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(period, date) {
|
|
86
|
-
var _this2 = this;
|
|
87
|
-
var response;
|
|
88
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
89
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
90
|
-
case 0:
|
|
91
|
-
_context2.next = 2;
|
|
92
|
-
return new Promise(function (resolve) {
|
|
93
|
-
_axiosMatomo.default.get(_this2.MATOMO_API_URL, {
|
|
94
|
-
params: _objectSpread(_objectSpread({}, _this2.MATOMO_DEFAULT_PARAMS), {}, {
|
|
95
|
-
method: 'VisitsSummary.get',
|
|
96
|
-
period: period,
|
|
97
|
-
date: date
|
|
98
|
-
})
|
|
99
|
-
}).then(function (response) {
|
|
100
|
-
resolve(response.data);
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
case 2:
|
|
104
|
-
response = _context2.sent;
|
|
105
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
106
|
-
_context2.next = 6;
|
|
107
|
-
return response;
|
|
108
|
-
case 6:
|
|
109
|
-
return _context2.abrupt("return", _context2.sent);
|
|
110
|
-
case 7:
|
|
111
|
-
case "end":
|
|
112
|
-
return _context2.stop();
|
|
113
|
-
}
|
|
114
|
-
}, _callee2);
|
|
115
|
-
}));
|
|
116
|
-
function GetVisitsSummary(_x3, _x4) {
|
|
117
|
-
return _GetVisitsSummary.apply(this, arguments);
|
|
118
|
-
}
|
|
119
|
-
return GetVisitsSummary;
|
|
120
|
-
}()
|
|
121
|
-
/**
|
|
122
|
-
* Get summary per country
|
|
123
|
-
* @param range
|
|
124
|
-
*/
|
|
125
|
-
}, {
|
|
126
|
-
key: "GetCountrySummary",
|
|
127
|
-
value: function () {
|
|
128
|
-
var _GetCountrySummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(period, date) {
|
|
129
|
-
var _this3 = this;
|
|
130
|
-
var response;
|
|
131
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
132
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
133
|
-
case 0:
|
|
134
|
-
_context3.next = 2;
|
|
135
|
-
return new Promise(function (resolve) {
|
|
136
|
-
_axiosMatomo.default.get(_this3.MATOMO_API_URL, {
|
|
137
|
-
params: _objectSpread(_objectSpread({}, _this3.MATOMO_DEFAULT_PARAMS), {}, {
|
|
138
|
-
method: 'UserCountry.getCountry',
|
|
139
|
-
period: period,
|
|
140
|
-
date: date
|
|
141
|
-
})
|
|
142
|
-
}).then(function (response) {
|
|
143
|
-
resolve(response.data);
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
case 2:
|
|
147
|
-
response = _context3.sent;
|
|
148
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
149
|
-
_context3.next = 6;
|
|
150
|
-
return response;
|
|
151
|
-
case 6:
|
|
152
|
-
return _context3.abrupt("return", _context3.sent);
|
|
153
|
-
case 7:
|
|
154
|
-
case "end":
|
|
155
|
-
return _context3.stop();
|
|
156
|
-
}
|
|
157
|
-
}, _callee3);
|
|
158
|
-
}));
|
|
159
|
-
function GetCountrySummary(_x5, _x6) {
|
|
160
|
-
return _GetCountrySummary.apply(this, arguments);
|
|
161
|
-
}
|
|
162
|
-
return GetCountrySummary;
|
|
163
|
-
}()
|
|
164
|
-
/**
|
|
165
|
-
* Get summary for social networks
|
|
166
|
-
* @param range
|
|
167
|
-
*/
|
|
168
|
-
}, {
|
|
169
|
-
key: "GetSocialSummary",
|
|
170
|
-
value: function () {
|
|
171
|
-
var _GetSocialSummary = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(period, date) {
|
|
172
|
-
var _this4 = this;
|
|
173
|
-
var response;
|
|
174
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
175
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
176
|
-
case 0:
|
|
177
|
-
_context4.next = 2;
|
|
178
|
-
return new Promise(function (resolve) {
|
|
179
|
-
_axiosMatomo.default.get(_this4.MATOMO_API_URL, {
|
|
180
|
-
params: _objectSpread(_objectSpread({}, _this4.MATOMO_DEFAULT_PARAMS), {}, {
|
|
181
|
-
method: 'Referrers.getSocials',
|
|
182
|
-
period: period,
|
|
183
|
-
date: date
|
|
184
|
-
})
|
|
185
|
-
}).then(function (response) {
|
|
186
|
-
resolve(response.data);
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
case 2:
|
|
190
|
-
response = _context4.sent;
|
|
191
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
192
|
-
_context4.next = 6;
|
|
193
|
-
return response;
|
|
194
|
-
case 6:
|
|
195
|
-
return _context4.abrupt("return", _context4.sent);
|
|
196
|
-
case 7:
|
|
197
|
-
case "end":
|
|
198
|
-
return _context4.stop();
|
|
199
|
-
}
|
|
200
|
-
}, _callee4);
|
|
201
|
-
}));
|
|
202
|
-
function GetSocialSummary(_x7, _x8) {
|
|
203
|
-
return _GetSocialSummary.apply(this, arguments);
|
|
204
|
-
}
|
|
205
|
-
return GetSocialSummary;
|
|
206
|
-
}()
|
|
207
|
-
/**
|
|
208
|
-
* Get summary for os families
|
|
209
|
-
* @param range
|
|
210
|
-
*/
|
|
211
|
-
}, {
|
|
212
|
-
key: "GetDeviceOsFamilies",
|
|
213
|
-
value: function () {
|
|
214
|
-
var _GetDeviceOsFamilies = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(period, date) {
|
|
215
|
-
var _this5 = this;
|
|
216
|
-
var response;
|
|
217
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
218
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
219
|
-
case 0:
|
|
220
|
-
_context5.next = 2;
|
|
221
|
-
return new Promise(function (resolve) {
|
|
222
|
-
_axiosMatomo.default.get(_this5.MATOMO_API_URL, {
|
|
223
|
-
params: _objectSpread(_objectSpread({}, _this5.MATOMO_DEFAULT_PARAMS), {}, {
|
|
224
|
-
method: 'DevicesDetection.getOsFamilies',
|
|
225
|
-
period: period,
|
|
226
|
-
date: date
|
|
227
|
-
})
|
|
228
|
-
}).then(function (response) {
|
|
229
|
-
resolve(response.data);
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
case 2:
|
|
233
|
-
response = _context5.sent;
|
|
234
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
235
|
-
_context5.next = 6;
|
|
236
|
-
return response;
|
|
237
|
-
case 6:
|
|
238
|
-
return _context5.abrupt("return", _context5.sent);
|
|
239
|
-
case 7:
|
|
240
|
-
case "end":
|
|
241
|
-
return _context5.stop();
|
|
242
|
-
}
|
|
243
|
-
}, _callee5);
|
|
244
|
-
}));
|
|
245
|
-
function GetDeviceOsFamilies(_x9, _x10) {
|
|
246
|
-
return _GetDeviceOsFamilies.apply(this, arguments);
|
|
247
|
-
}
|
|
248
|
-
return GetDeviceOsFamilies;
|
|
249
|
-
}()
|
|
250
|
-
/**
|
|
251
|
-
* Get summary for browsers
|
|
252
|
-
* @param range
|
|
253
|
-
*/
|
|
254
|
-
}, {
|
|
255
|
-
key: "GetDeviceBrowsers",
|
|
256
|
-
value: function () {
|
|
257
|
-
var _GetDeviceBrowsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(period, date) {
|
|
258
|
-
var _this6 = this;
|
|
259
|
-
var response;
|
|
260
|
-
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
261
|
-
while (1) switch (_context6.prev = _context6.next) {
|
|
262
|
-
case 0:
|
|
263
|
-
_context6.next = 2;
|
|
264
|
-
return new Promise(function (resolve) {
|
|
265
|
-
_axiosMatomo.default.get(_this6.MATOMO_API_URL, {
|
|
266
|
-
params: _objectSpread(_objectSpread({}, _this6.MATOMO_DEFAULT_PARAMS), {}, {
|
|
267
|
-
method: 'DevicesDetection.getBrowsers',
|
|
268
|
-
period: period,
|
|
269
|
-
date: date
|
|
270
|
-
})
|
|
271
|
-
}).then(function (response) {
|
|
272
|
-
resolve(response.data);
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
case 2:
|
|
276
|
-
response = _context6.sent;
|
|
277
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
278
|
-
_context6.next = 6;
|
|
279
|
-
return response;
|
|
280
|
-
case 6:
|
|
281
|
-
return _context6.abrupt("return", _context6.sent);
|
|
282
|
-
case 7:
|
|
283
|
-
case "end":
|
|
284
|
-
return _context6.stop();
|
|
285
|
-
}
|
|
286
|
-
}, _callee6);
|
|
287
|
-
}));
|
|
288
|
-
function GetDeviceBrowsers(_x11, _x12) {
|
|
289
|
-
return _GetDeviceBrowsers.apply(this, arguments);
|
|
290
|
-
}
|
|
291
|
-
return GetDeviceBrowsers;
|
|
292
|
-
}()
|
|
293
|
-
/**
|
|
294
|
-
* Get summary for browsers
|
|
295
|
-
* @param range
|
|
296
|
-
*/
|
|
297
|
-
}, {
|
|
298
|
-
key: "GetDeviceModels",
|
|
299
|
-
value: function () {
|
|
300
|
-
var _GetDeviceModels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(period, date) {
|
|
301
|
-
var _this7 = this;
|
|
302
|
-
var response;
|
|
303
|
-
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
304
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
305
|
-
case 0:
|
|
306
|
-
_context7.next = 2;
|
|
307
|
-
return new Promise(function (resolve) {
|
|
308
|
-
_axiosMatomo.default.get(_this7.MATOMO_API_URL, {
|
|
309
|
-
params: _objectSpread(_objectSpread({}, _this7.MATOMO_DEFAULT_PARAMS), {}, {
|
|
310
|
-
method: 'DevicesDetection.getModel',
|
|
311
|
-
period: period,
|
|
312
|
-
date: date
|
|
313
|
-
})
|
|
314
|
-
}).then(function (response) {
|
|
315
|
-
resolve(response.data);
|
|
316
|
-
});
|
|
317
|
-
});
|
|
318
|
-
case 2:
|
|
319
|
-
response = _context7.sent;
|
|
320
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
321
|
-
_context7.next = 6;
|
|
322
|
-
return response;
|
|
323
|
-
case 6:
|
|
324
|
-
return _context7.abrupt("return", _context7.sent);
|
|
325
|
-
case 7:
|
|
326
|
-
case "end":
|
|
327
|
-
return _context7.stop();
|
|
328
|
-
}
|
|
329
|
-
}, _callee7);
|
|
330
|
-
}));
|
|
331
|
-
function GetDeviceModels(_x13, _x14) {
|
|
332
|
-
return _GetDeviceModels.apply(this, arguments);
|
|
333
|
-
}
|
|
334
|
-
return GetDeviceModels;
|
|
335
|
-
}()
|
|
336
|
-
/**
|
|
337
|
-
* Get visit times per local time
|
|
338
|
-
* @param range
|
|
339
|
-
*/
|
|
340
|
-
}, {
|
|
341
|
-
key: "GetVisitTimePerLocalTime",
|
|
342
|
-
value: function () {
|
|
343
|
-
var _GetVisitTimePerLocalTime = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(period, date) {
|
|
344
|
-
var _this8 = this;
|
|
345
|
-
var response;
|
|
346
|
-
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
347
|
-
while (1) switch (_context8.prev = _context8.next) {
|
|
348
|
-
case 0:
|
|
349
|
-
_context8.next = 2;
|
|
350
|
-
return new Promise(function (resolve) {
|
|
351
|
-
_axiosMatomo.default.get(_this8.MATOMO_API_URL, {
|
|
352
|
-
params: _objectSpread(_objectSpread({}, _this8.MATOMO_DEFAULT_PARAMS), {}, {
|
|
353
|
-
method: 'VisitTime.getVisitInformationPerLocalTime ',
|
|
354
|
-
period: period,
|
|
355
|
-
date: date
|
|
356
|
-
})
|
|
357
|
-
}).then(function (response) {
|
|
358
|
-
resolve(response.data);
|
|
359
|
-
});
|
|
360
|
-
});
|
|
361
|
-
case 2:
|
|
362
|
-
response = _context8.sent;
|
|
363
|
-
axios.defaults.headers.common.Authorization = "Bearer ".concat(Auth.getAccessToken());
|
|
364
|
-
_context8.next = 6;
|
|
365
|
-
return response;
|
|
366
|
-
case 6:
|
|
367
|
-
return _context8.abrupt("return", _context8.sent);
|
|
368
|
-
case 7:
|
|
369
|
-
case "end":
|
|
370
|
-
return _context8.stop();
|
|
371
|
-
}
|
|
372
|
-
}, _callee8);
|
|
373
|
-
}));
|
|
374
|
-
function GetVisitTimePerLocalTime(_x15, _x16) {
|
|
375
|
-
return _GetVisitTimePerLocalTime.apply(this, arguments);
|
|
376
|
-
}
|
|
377
|
-
return GetVisitTimePerLocalTime;
|
|
378
|
-
}()
|
|
379
|
-
}]);
|
|
380
|
-
return Matomo;
|
|
381
|
-
}();
|
|
382
|
-
var _default = Matomo;
|
|
383
|
-
exports.default = _default;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.MenuNav = 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 MenuNav = _styledComponents.default.nav.withConfig({
|
|
11
|
-
displayName: "MenuNavstyles__MenuNav",
|
|
12
|
-
componentId: "sc-1v9gc1o-0"
|
|
13
|
-
})(["display:inline-block;vertical-align:middle;ul{display:block;list-style:none;font-size:0;padding:0;margin:0;margin:0 -18px;}li{display:inline-block;padding:0;margin:0 18px;}button,a{position:relative;display:block;font-size:11px;line-height:16px;letter-spacing:2px;text-transform:uppercase;padding:2px 0;border:0;margin:0;cursor:pointer;font-weight:500;&:hover{opacity:0.68;}}", ""], function (props) {
|
|
14
|
-
return props.mobile && "\n display: block;\n\n ul {\n margin: 0;\n padding: 0;\n }\n\n li {\n display: block;\n text-align: center;\n margin: 0;\n padding: 18px 16px;\n }\n\n a {\n display: inline-block;\n }\n ";
|
|
15
|
-
});
|
|
16
|
-
exports.MenuNav = MenuNav;
|
|
17
|
-
var _default = MenuNav; // Merging using IIS & ID Version - from button section (fake style prop to show difference):
|
|
18
|
-
// ${props =>
|
|
19
|
-
// props.styleIISandID
|
|
20
|
-
// ? ` &:hover {
|
|
21
|
-
// opacity: 0.68;
|
|
22
|
-
// }`
|
|
23
|
-
// : `&:before {
|
|
24
|
-
// content: '';
|
|
25
|
-
// display: block;
|
|
26
|
-
// height: 2px;
|
|
27
|
-
// width: 100%;
|
|
28
|
-
// position: absolute;
|
|
29
|
-
// top: 100%;
|
|
30
|
-
// left: 0;
|
|
31
|
-
// background-color: ${props => theme.cPrimary};
|
|
32
|
-
// opacity: 0;
|
|
33
|
-
// transform: translateY(8px);
|
|
34
|
-
// transition: opacity 0.2s, transform 0.2s;
|
|
35
|
-
// }
|
|
36
|
-
// &:hover {
|
|
37
|
-
// &:before {
|
|
38
|
-
// opacity: 1;
|
|
39
|
-
// transform: translateY(0);
|
|
40
|
-
// }
|
|
41
|
-
// }`}
|
|
42
|
-
exports.default = _default;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Modal = void 0;
|
|
7
|
-
Object.defineProperty(exports, "ModalBack", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _Modal.ModalBack;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "ModalClose", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _Modal.ModalClose;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "ModalInner", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _Modal.ModalInner;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "ModalInnerSmartContractAddress", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _Modal.ModalInnerSmartContractAddress;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "ModalInnerWithBorder", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _Modal.ModalInnerWithBorder;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "ModalLink", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function get() {
|
|
40
|
-
return _Modal.ModalLink;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "ModalLinkWrap", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return _Modal.ModalLinkWrap;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
var _react = _interopRequireDefault(require("react"));
|
|
50
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
51
|
-
var _reactTransitionGroup = require("react-transition-group");
|
|
52
|
-
var _reactPortal = require("react-portal");
|
|
53
|
-
var _Modal = require("./Modal.styles");
|
|
54
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
55
|
-
var timeout = 300;
|
|
56
|
-
var getTransitionStyles = {
|
|
57
|
-
entering: {
|
|
58
|
-
opacity: 0
|
|
59
|
-
},
|
|
60
|
-
entered: {
|
|
61
|
-
transition: "opacity ".concat(timeout, "ms ease-in-out"),
|
|
62
|
-
opacity: 1
|
|
63
|
-
},
|
|
64
|
-
exiting: {
|
|
65
|
-
transition: "opacity ".concat(timeout, "ms ease-in-out"),
|
|
66
|
-
opacity: 0
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
var Modal = function Modal(_ref) {
|
|
70
|
-
var children = _ref.children,
|
|
71
|
-
fullscreen = _ref.fullscreen,
|
|
72
|
-
kyc = _ref.kyc,
|
|
73
|
-
thin = _ref.thin,
|
|
74
|
-
isOpen = _ref.isOpen,
|
|
75
|
-
onClose = _ref.onClose,
|
|
76
|
-
className = _ref.className,
|
|
77
|
-
isRegisterEntity = _ref.isRegisterEntity;
|
|
78
|
-
return /*#__PURE__*/_react.default.createElement(_reactPortal.Portal, {
|
|
79
|
-
isOpened: isOpen
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.Transition, {
|
|
81
|
-
in: isOpen,
|
|
82
|
-
appear: true,
|
|
83
|
-
mountOnEnter: true,
|
|
84
|
-
unmountOnExit: true,
|
|
85
|
-
timeout: {
|
|
86
|
-
enter: timeout,
|
|
87
|
-
exit: timeout
|
|
88
|
-
}
|
|
89
|
-
}, function (status) {
|
|
90
|
-
return /*#__PURE__*/_react.default.createElement(_Modal.ModalRoot, {
|
|
91
|
-
className: className,
|
|
92
|
-
style: getTransitionStyles[status]
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.Dimmer, {
|
|
94
|
-
open: isOpen,
|
|
95
|
-
kyc: kyc,
|
|
96
|
-
closeOnDimmerClick: false,
|
|
97
|
-
onClose: onClose
|
|
98
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.Box, {
|
|
99
|
-
kyc: kyc,
|
|
100
|
-
fullscreen: fullscreen,
|
|
101
|
-
thin: thin,
|
|
102
|
-
isRegisterEntity: isRegisterEntity
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalClose, {
|
|
104
|
-
onClick: onClose
|
|
105
|
-
}), children)));
|
|
106
|
-
}));
|
|
107
|
-
};
|
|
108
|
-
exports.Modal = Modal;
|
|
109
|
-
Modal.propTypes = {
|
|
110
|
-
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]).isRequired,
|
|
111
|
-
className: _propTypes.default.string,
|
|
112
|
-
fullscreen: _propTypes.default.bool,
|
|
113
|
-
kyc: _propTypes.default.bool,
|
|
114
|
-
thin: _propTypes.default.bool,
|
|
115
|
-
isOpen: _propTypes.default.bool.isRequired,
|
|
116
|
-
onClose: _propTypes.default.func.isRequired
|
|
117
|
-
};
|
|
118
|
-
Modal.defaultProps = {
|
|
119
|
-
className: '',
|
|
120
|
-
fullscreen: false,
|
|
121
|
-
kyc: false,
|
|
122
|
-
thin: false
|
|
123
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ModalWithImgThin = exports.ModalWithImgKYC = exports.ModalWithImg = exports.ModalOpen = exports.ModalFullscreen = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Modal = require("./Modal");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _SvgIcons = require("components/SvgIcons");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var _default = {
|
|
13
|
-
title: 'Components Library/Modal',
|
|
14
|
-
component: _Modal.Modal,
|
|
15
|
-
argTypes: {
|
|
16
|
-
children: {
|
|
17
|
-
type: 'node / array of node',
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
className: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
defaultValue: ''
|
|
23
|
-
},
|
|
24
|
-
fullscreen: {
|
|
25
|
-
type: 'boolean',
|
|
26
|
-
defaultValue: false
|
|
27
|
-
},
|
|
28
|
-
kyc: {
|
|
29
|
-
type: 'boolean',
|
|
30
|
-
defaultValue: false
|
|
31
|
-
},
|
|
32
|
-
thin: {
|
|
33
|
-
type: 'boolean',
|
|
34
|
-
defaultValue: false
|
|
35
|
-
},
|
|
36
|
-
isOpen: {
|
|
37
|
-
type: 'boolean',
|
|
38
|
-
defaultValue: false
|
|
39
|
-
},
|
|
40
|
-
onClose: {
|
|
41
|
-
type: 'function',
|
|
42
|
-
action: 'onClose'
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.default = _default;
|
|
47
|
-
var Template = function Template(args) {
|
|
48
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_Modal.Modal, args));
|
|
49
|
-
};
|
|
50
|
-
var ModalOpen = Template.bind({});
|
|
51
|
-
exports.ModalOpen = ModalOpen;
|
|
52
|
-
ModalOpen.args = {
|
|
53
|
-
children: 'I am the Child Element',
|
|
54
|
-
isOpen: true
|
|
55
|
-
};
|
|
56
|
-
var ModalFullscreen = Template.bind({});
|
|
57
|
-
exports.ModalFullscreen = ModalFullscreen;
|
|
58
|
-
ModalFullscreen.args = {
|
|
59
|
-
children: 'I am the Child Element and I am Fullscreen',
|
|
60
|
-
isOpen: true,
|
|
61
|
-
fullscreen: true
|
|
62
|
-
};
|
|
63
|
-
var ModalWithImg = Template.bind({});
|
|
64
|
-
exports.ModalWithImg = ModalWithImg;
|
|
65
|
-
ModalWithImg.args = {
|
|
66
|
-
children: /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null),
|
|
67
|
-
isOpen: true
|
|
68
|
-
};
|
|
69
|
-
var ModalWithImgThin = Template.bind({});
|
|
70
|
-
exports.ModalWithImgThin = ModalWithImgThin;
|
|
71
|
-
ModalWithImgThin.args = {
|
|
72
|
-
children: /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null),
|
|
73
|
-
isOpen: true,
|
|
74
|
-
thin: true
|
|
75
|
-
};
|
|
76
|
-
var ModalWithImgKYC = Template.bind({});
|
|
77
|
-
exports.ModalWithImgKYC = ModalWithImgKYC;
|
|
78
|
-
ModalWithImgKYC.args = {
|
|
79
|
-
children: /*#__PURE__*/_react.default.createElement(_SvgIcons.TwoSvg, null),
|
|
80
|
-
isOpen: true,
|
|
81
|
-
kyc: true
|
|
82
|
-
};
|