@stokr/components-library 0.6.7 → 0.6.9
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/.vscode/settings.json +3 -0
- package/CHANGELOG.md +7 -0
- package/Dockerfile +20 -0
- package/build/asset-manifest.json +45 -0
- package/build/favicon.ico +0 -0
- package/build/index.html +1 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/build/static/css/main.e30a9d15.css +15 -0
- package/build/static/css/main.e30a9d15.css.map +1 -0
- package/build/static/js/main.3e5959c7.js +3 -0
- package/build/static/js/main.3e5959c7.js.LICENSE.txt +164 -0
- package/build/static/js/main.3e5959c7.js.map +1 -0
- 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 +21 -0
- 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 +47 -0
- 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 +1 -0
- package/build/static/media/slick.2630a3e3eab21c607e21.svg +14 -0
- 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 +9 -0
- package/devops/Dockerfile +20 -0
- package/devops/Jenkinsfile +56 -0
- package/devops/ansible/docker-stack-deploy.yml +32 -0
- package/devops/ansible/hosts.ini +7 -0
- package/devops/docker-compose.yml +25 -0
- package/dist/api/StokrWeb3.js +184 -0
- package/dist/api/fetchData.js +76 -0
- package/dist/api/fetchDataPublic.js +65 -0
- package/dist/components/AccountBalance/AccountBalance.js +53 -0
- package/dist/components/AccountBalance/AccountBalance.stories.js +88 -0
- package/dist/components/AccountBalance/AccountBalance.styles.js +40 -0
- package/dist/components/AdminDashboard/Table/Table.js +170 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +79 -0
- package/dist/components/AgreementItem/AgreementItem.js +51 -0
- package/dist/components/AgreementItem/AgreementItem.stories.js +109 -0
- package/dist/components/AgreementItem/AgreementItem.styles.js +35 -0
- package/dist/components/AnalyticGraphs/Analytic.js +781 -0
- package/dist/components/AnalyticGraphs/Analytic.styles.js +37 -0
- package/dist/components/BackButton/BackButton.js +32 -0
- package/dist/components/BackButton/BackButton.stories.js +35 -0
- package/dist/components/BackButton/BackButton.styles.js +76 -0
- package/dist/components/Background/Background.js +45 -0
- package/dist/components/Background/Background.stories.js +78 -0
- package/dist/components/Background/Background.styles.js +76 -0
- package/dist/components/BarChart/BarChart.js +304 -0
- package/dist/components/BarChart/BarChart.stories.js +47 -0
- package/dist/components/BarChart/BarChart.styles.js +33 -0
- package/dist/components/BarChartLegend/BarChartLegend.js +106 -0
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +26 -0
- package/dist/components/BasicTable/BasicTable.js +32 -0
- package/dist/components/BasicTable/BasicTable.stories.js +63 -0
- package/dist/components/BasicTable/BasicTable.styles.js +52 -0
- package/dist/components/Button/Button.stories.js +79 -0
- package/dist/components/Button/Button.styles.js +83 -0
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +18 -0
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +45 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +34 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +34 -0
- package/dist/components/ChartBox/ChartBox.js +44 -0
- package/dist/components/ChartBox/ChartBox.stories.js +20 -0
- package/dist/components/ChartBox/ChartBox.styles.js +33 -0
- package/dist/components/ChartBox/ChartBoxDistribution.js +30 -0
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +21 -0
- package/dist/components/ChartLegend/ChartLegend.js +62 -0
- package/dist/components/ChartLegend/ChartLegend.stories.js +87 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +64 -0
- package/dist/components/Checkbox/Checkbox.js +116 -0
- package/dist/components/Checkbox/Checkbox.stories.js +92 -0
- package/dist/components/Checkbox/Checkbox.styles.js +45 -0
- package/dist/components/Checklist/UserChecklist.js +284 -0
- package/dist/components/Checklist/UserChecklist.stories.js +143 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +100 -0
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +102 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +66 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +68 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +37 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +145 -0
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +173 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +186 -0
- package/dist/components/CryptoAddress/RadioWrap.js +49 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +54 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +74 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +67 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +40 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +59 -0
- package/dist/components/DonutChart/DonutChart.js +182 -0
- package/dist/components/DonutChart/DonutChart.stories.js +40 -0
- package/dist/components/DonutChart/DonutChart.styles.js +50 -0
- package/dist/components/DoubleButton/DoubleButton.styles.js +22 -0
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +15 -0
- package/dist/components/FAQ/FAQ.js +75 -0
- package/dist/components/FAQ/FAQ.stories.js +74 -0
- package/dist/components/FAQ/FAQ.styles.js +48 -0
- package/dist/components/Footer/Footer.js +66 -0
- package/dist/components/Footer/Footer.stories.js +54 -0
- package/dist/components/Footer/Footer.styles.js +74 -0
- package/dist/components/Footer/FooterLayout.js +125 -0
- package/dist/components/Footer/FooterLayout.stories.js +31 -0
- package/dist/components/Footer/FooterMenu.js +117 -0
- package/dist/components/Footer/FooterMenu.stories.js +121 -0
- package/dist/components/Footer/FooterMenu.styles.js +80 -0
- package/dist/components/Footer/index.js +27 -0
- package/dist/components/Footer/lemonway.png +0 -0
- package/dist/components/Footer/sicos-logo.svg +1 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +127 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +42 -0
- package/dist/components/Form/Form.js +68 -0
- package/dist/components/Form/Form.stories.js +35 -0
- package/dist/components/Form/Form.styles.js +59 -0
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +32 -0
- package/dist/components/Grid/Grid.styles.js +68 -0
- package/dist/components/Header/Header.js +457 -0
- package/dist/components/Header/Header.stories.js +190 -0
- package/dist/components/Header/Header.styles.js +182 -0
- package/dist/components/Icon/Icon.style.js +71 -0
- package/dist/components/InfoIcon/InfoIcon.js +50 -0
- package/dist/components/InfoIcon/InfoIcon.stories.js +52 -0
- package/dist/components/InfoIcon/InfoIcon.styles.js +31 -0
- package/dist/components/InfoPanel/InfoPanel.js +146 -0
- package/dist/components/Input/DatePickerInput.js +85 -0
- package/dist/components/Input/DatePickerInput.stories.js +91 -0
- package/dist/components/Input/DatePickerInput.styles.js +29 -0
- package/dist/components/Input/Input.js +108 -0
- package/dist/components/Input/Input.stories.js +148 -0
- package/dist/components/Input/Input.styles.js +53 -0
- package/dist/components/Input/InputPassword.js +151 -0
- package/dist/components/Input/InputPassword.stories.js +85 -0
- package/dist/components/Input/InputPassword.styles.js +80 -0
- package/dist/components/Input/RangeInput.js +60 -0
- package/dist/components/Input/RangeInput.stories.js +59 -0
- package/dist/components/Input/RangeInput.styles.js +53 -0
- package/dist/components/Input/Select.js +148 -0
- package/dist/components/Input/Select.stories.js +142 -0
- package/dist/components/Input/Select.styles.js +65 -0
- package/dist/components/InvestCalculator/InvestCalculator.js +367 -0
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +137 -0
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +66 -0
- package/dist/components/InvestmentStat/InvestmentStat.js +40 -0
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +56 -0
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +43 -0
- package/dist/components/KYCFlow/BasicInfo.js +489 -0
- package/dist/components/KYCFlow/Confirmation.js +51 -0
- package/dist/components/KYCFlow/DocumentFileUpload.js +276 -0
- package/dist/components/KYCFlow/DocumentScan.js +74 -0
- package/dist/components/KYCFlow/DocumentScanUpload.js +258 -0
- package/dist/components/KYCFlow/DocumentSelect.js +148 -0
- package/dist/components/KYCFlow/DocumentSuccess.js +64 -0
- package/dist/components/KYCFlow/DocumentUpload.js +54 -0
- package/dist/components/KYCFlow/DocumentVerificationType.js +161 -0
- package/dist/components/KYCFlow/FaceScan.js +55 -0
- package/dist/components/KYCFlow/FaceScanRecognition.js +60 -0
- package/dist/components/KYCFlow/FaceScanSuccess.js +59 -0
- package/dist/components/KYCFlow/Terms.js +142 -0
- package/dist/components/KYCFlow/_styles.js +160 -0
- package/dist/components/KYCFlow/index.js +97 -0
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +41 -0
- package/dist/components/LatestUpdate/LatestUpdate.js +51 -0
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +62 -0
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +71 -0
- package/dist/components/Layout/Layout-func-no-work.js +78 -0
- package/dist/components/Layout/Layout.js +103 -0
- package/dist/components/Layout/Layout.stories.js +67 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +47 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +70 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +43 -0
- package/dist/components/LearnMorePage/LearnMore.js +255 -0
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +40 -0
- package/dist/components/LearnMorePage/LearnMore.stories.js +51 -0
- package/dist/components/LearnMorePage/LearnMore.styles.js +120 -0
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +87 -0
- package/dist/components/LearnMorePage/LearnMoreItem.js +75 -0
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +65 -0
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +87 -0
- package/dist/components/LearnMoreSection/LearnMore.js +199 -0
- package/dist/components/LearnMoreSection/LearnMore.stories.js +33 -0
- package/dist/components/LearnMoreSection/LearnMore.styles.js +73 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.js +52 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +62 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +50 -0
- package/dist/components/LoginModal/LoginModal.js +163 -0
- package/dist/components/MainMenu/DynamicMainMenu.js +50 -0
- package/dist/components/MainMenu/MainMenu.js +262 -0
- package/dist/components/MainMenu/MainMenu.styles.js +124 -0
- package/dist/components/MatomoConnect/Matomo.js +485 -0
- package/dist/components/MatomoConnect/Matomo_fuckup.js +383 -0
- package/dist/components/MenuNav/MenuNav.styles.js +42 -0
- package/dist/components/Modal/Modal.js +135 -0
- package/dist/components/Modal/Modal.stories.js +82 -0
- package/dist/components/Modal/Modal.styles.js +140 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.js +48 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +72 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +41 -0
- package/dist/components/Newsletter/Newsletter.js +139 -0
- package/dist/components/Newsletter/Newsletter.stories.js +19 -0
- package/dist/components/Newsletter/Newsletter.styles.js +83 -0
- package/dist/components/NotificationContext/NotificationContext.js +173 -0
- package/dist/components/NotificationContext/NotificationContext.stories.js +33 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +22 -0
- package/dist/components/Number/Number.js +35 -0
- package/dist/components/Number/Number.stories.js +41 -0
- package/dist/components/Number/Number.styles.js +20 -0
- package/dist/components/PageTransition/PageTransition.js +57 -0
- package/dist/components/Process/Process.stories.js +47 -0
- package/dist/components/Process/Process.styles.js +33 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +53 -0
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +48 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +32 -0
- package/dist/components/ProfileBox/ProfileBox.js +39 -0
- package/dist/components/ProfileBox/ProfileBox.stories.js +38 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +49 -0
- package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +477 -0
- package/dist/components/ProfileHeader/ProfileHeader.js +330 -0
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +87 -0
- package/dist/components/ProfileStat/ProfileStat.js +42 -0
- package/dist/components/ProfileStat/ProfileStat.stories.js +71 -0
- package/dist/components/ProfileStat/ProfileStat.styles.js +42 -0
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +69 -0
- package/dist/components/ROI/ROI.js +312 -0
- package/dist/components/ROI/ROI.styles.js +63 -0
- package/dist/components/ROI/ROIChart.js +469 -0
- package/dist/components/ROI/ROIChart.styles.js +33 -0
- package/dist/components/ROI/ROIModal.js +91 -0
- package/dist/components/ROI/ROIScenarioBox.js +55 -0
- package/dist/components/ROI/ROIScenarioBox.styles.js +52 -0
- package/dist/components/Radio/Radio.js +68 -0
- package/dist/components/Radio/Radio.stories.js +76 -0
- package/dist/components/Radio/Radio.styles.js +31 -0
- package/dist/components/RefreshButton/RefreshButton.js +21 -0
- package/dist/components/RefreshButton/RefreshButton.stories.js +42 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +39 -0
- package/dist/components/RegisterAlgorand/AlgoAddressName.js +138 -0
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +444 -0
- package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +47 -0
- package/dist/components/RegisterAlgorand/AlgoSuccess.js +38 -0
- package/dist/components/RegisterAlgorand/Algorand.stories.js +78 -0
- package/dist/components/RegisterAlgorand/ChooseWallet.js +97 -0
- package/dist/components/RegisterAlgorand/SelectProject.js +90 -0
- package/dist/components/RegisterAlgorand/_styles.js +28 -0
- package/dist/components/RegisterAlgorand/flow.js +409 -0
- package/dist/components/RegisterAlgorand/flowWithMemo.js +410 -0
- package/dist/components/RegisterAlgorand/index.js +48 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +40 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +33 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +16 -0
- package/dist/components/RegisterEthereum/EthAddressLedger.js +226 -0
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +205 -0
- package/dist/components/RegisterEthereum/EthAddressName.js +135 -0
- package/dist/components/RegisterEthereum/EthConnectLedger.js +194 -0
- package/dist/components/RegisterEthereum/EthConnectMetamask.js +35 -0
- package/dist/components/RegisterEthereum/EthFinish.js +41 -0
- package/dist/components/RegisterEthereum/EthIntro.js +95 -0
- package/dist/components/RegisterEthereum/_styles.js +28 -0
- package/dist/components/RegisterEthereum/index.js +68 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +106 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +66 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +48 -0
- package/dist/components/RegisterLiquidSteps/complete.js +37 -0
- package/dist/components/RegisterLiquidSteps/flow.js +197 -0
- package/dist/components/RegisterLiquidSteps/index.js +52 -0
- package/dist/components/RegisterLiquidSteps/register-liquid.js +240 -0
- package/dist/components/RegisterModal/RegisterModal.js +180 -0
- package/dist/components/RegisterModal/RegisterModal.stories.js +46 -0
- package/dist/components/RequestDataBox/RequestDataBox.js +31 -0
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +40 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +31 -0
- package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +185 -0
- package/dist/components/RiskQuestionnaire/_styles.js +15 -0
- package/dist/components/SEO/SEO.js +71 -0
- package/dist/components/SEO/SEO.stories.js +64 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +15 -0
- package/dist/components/SideLine/SideLine.js +15 -0
- package/dist/components/SideLine/SideLine.stories.js +31 -0
- package/dist/components/SideLine/SideLine.styles.js +26 -0
- package/dist/components/SigningSubflow/SignSubAddressMetamask.js +137 -0
- package/dist/components/SigningSubflow/SignSubConnectLedger.js +150 -0
- package/dist/components/SigningSubflow/SignSubConnectMetamask.js +137 -0
- package/dist/components/SigningSubflow/SignSubIntro.js +54 -0
- package/dist/components/SigningSubflow/SignSubSendLedger.js +150 -0
- package/dist/components/SigningSubflow/SignSubSendMetamask.js +62 -0
- package/dist/components/SigningSubflow/SignSubTransactionLedger.js +161 -0
- package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +166 -0
- package/dist/components/SigningSubflow/_styles.js +45 -0
- package/dist/components/SigningSubflow/index.js +74 -0
- package/dist/components/Slider/Slider.js +50 -0
- package/dist/components/Slider/Slider.stories.js +72 -0
- package/dist/components/Slider/Slider.styles.js +23 -0
- package/dist/components/SpanButton/SpanButton.styles.js +15 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js +20 -0
- package/dist/components/StepController/StepController.js +111 -0
- package/dist/components/StepController/StepController.stories.js +63 -0
- package/dist/components/StepController/StepController.styles.js +26 -0
- package/dist/components/StepController/StepControllerContext.js +104 -0
- package/dist/components/StepController/StepControllerProgress.js +40 -0
- package/dist/components/StepController/StepControllerProgress.stories.js +52 -0
- package/dist/components/StepsProgress/StepsProgress.js +128 -0
- package/dist/components/StepsProgress/StepsProgress.stories.js +50 -0
- package/dist/components/StepsProgress/StepsProgress.styles.js +36 -0
- package/dist/components/StokrLoader/StokrLoader.js +32 -0
- package/dist/components/StokrLoader/media.js +27 -0
- package/dist/components/SvgIcons/AdminBadgeSvg.js +26 -0
- package/dist/components/SvgIcons/CameraSvg.js +36 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +31 -0
- package/dist/components/SvgIcons/DocumentBackSvg.js +35 -0
- package/dist/components/SvgIcons/DocumentSmallSvg.js +61 -0
- package/dist/components/SvgIcons/DocumentSvg.js +38 -0
- package/dist/components/SvgIcons/Early.js +24 -0
- package/dist/components/SvgIcons/EthSvg.js +40 -0
- package/dist/components/SvgIcons/EurSvg.js +26 -0
- package/dist/components/SvgIcons/FaceScanIconSvg.js +31 -0
- package/dist/components/SvgIcons/FourSvg.js +21 -0
- package/dist/components/SvgIcons/Glassess.js +29 -0
- package/dist/components/SvgIcons/LogoSvg.js +24 -0
- package/dist/components/SvgIcons/OneSvg.js +23 -0
- package/dist/components/SvgIcons/PassportSvg.js +56 -0
- package/dist/components/SvgIcons/RefreshSvg.js +27 -0
- package/dist/components/SvgIcons/SocialFacebook.js +25 -0
- package/dist/components/SvgIcons/SocialInstagram.js +26 -0
- package/dist/components/SvgIcons/SocialLinkedIn.js +25 -0
- package/dist/components/SvgIcons/SocialMedium.js +25 -0
- package/dist/components/SvgIcons/SocialReddit.js +25 -0
- package/dist/components/SvgIcons/SocialTelegram.js +25 -0
- package/dist/components/SvgIcons/SocialTwitter.js +25 -0
- package/dist/components/SvgIcons/SocialYoutube.js +25 -0
- package/dist/components/SvgIcons/ThreeSvg.js +20 -0
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +82 -0
- package/dist/components/SvgIcons/TwoSvg.js +23 -0
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +29 -0
- package/dist/components/SvgIcons/UpdateHardSvg.js +25 -0
- package/dist/components/SvgIcons/UpdateSoftSvg.js +27 -0
- package/dist/components/SvgIcons/UploadSvg.js +34 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +23 -0
- package/dist/components/SvgIcons/index.js +223 -0
- package/dist/components/Switch/Switch.js +70 -0
- package/dist/components/Switch/Switch.stories.js +86 -0
- package/dist/components/Switch/Switch.styles.js +47 -0
- package/dist/components/Tabs/Tabs.js +70 -0
- package/dist/components/Tabs/Tabs.stories.js +29 -0
- package/dist/components/Tabs/Tabs.styles.js +18 -0
- package/dist/components/TabsNav/TabNav.js +31 -0
- package/dist/components/TabsNav/TabNav.stories.js +44 -0
- package/dist/components/TabsNav/TabsNav.js +43 -0
- package/dist/components/TabsNav/TabsNav.stories.js +26 -0
- package/dist/components/TabsNav/TabsNav.styles.js +43 -0
- package/dist/components/TeamOverview/TeamOverview.js +125 -0
- package/dist/components/TeamOverview/TeamOverview.stories.js +80 -0
- package/dist/components/TeamOverview/TeamOverview.styles.js +81 -0
- package/dist/components/Text/Headline.js +29 -0
- package/dist/components/Text/Headline.stories.js +51 -0
- package/dist/components/Text/StyledText.js +19 -0
- package/dist/components/Text/Text.stories.js +71 -0
- package/dist/components/Text/Text.styles.js +40 -0
- package/dist/components/TextLink/TextLink.styles.js +30 -0
- package/dist/components/ToDoList/ToDoList.js +184 -0
- package/dist/components/ToDoList/ToDoList.stories.js +137 -0
- package/dist/components/ToDoList/ToDoList.styles.js +83 -0
- package/dist/components/ToDoList/ToDoListTask.js +118 -0
- package/dist/components/ToDoList/ToDoListTask.stories.js +72 -0
- package/dist/components/ToDoList/ToDoListTask.styles.js +74 -0
- package/dist/components/TransactionDetails/TransactionDetails.js +46 -0
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +59 -0
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +31 -0
- package/dist/components/TransactionInfo/TransactionInfo.js +58 -0
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +64 -0
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +54 -0
- package/dist/components/TwoFactorModal/TwoFactorModal.js +122 -0
- package/dist/components/breakdown/Breakdown.js +56 -0
- package/dist/components/breakdown/index.js +27 -0
- package/dist/components/context/Auth.js +207 -0
- package/dist/components/context/AuthContext.js +335 -0
- package/dist/components/icons/Arrow.js +70 -0
- package/dist/components/icons/Arrow.stories.js +49 -0
- package/dist/components/icons/ArrowSimple.js +59 -0
- package/dist/components/icons/ArrowSimple.stories.js +55 -0
- package/dist/components/icons/Check.js +43 -0
- package/dist/components/icons/Check.stories.js +25 -0
- package/dist/components/icons/Facebook.js +26 -0
- package/dist/components/icons/Facebook.stories.js +24 -0
- package/dist/components/icons/Info.js +55 -0
- package/dist/components/icons/Info.stories.js +19 -0
- package/dist/components/icons/Instagram.js +26 -0
- package/dist/components/icons/Instagram.stories.js +24 -0
- package/dist/components/icons/LinkIcon.js +34 -0
- package/dist/components/icons/LinkIcon.stories.js +24 -0
- package/dist/components/icons/LinkedIn.js +43 -0
- package/dist/components/icons/LinkedIn.stories.js +19 -0
- package/dist/components/icons/Medium.js +42 -0
- package/dist/components/icons/Medium.stories.js +19 -0
- package/dist/components/icons/Reddit.js +32 -0
- package/dist/components/icons/Reddit.stories.js +24 -0
- package/dist/components/icons/Share.js +62 -0
- package/dist/components/icons/Share.stories.js +19 -0
- package/dist/components/icons/Telegram.js +42 -0
- package/dist/components/icons/Telegram.stories.js +19 -0
- package/dist/components/icons/Twitter.js +26 -0
- package/dist/components/icons/Twitter.stories.js +24 -0
- package/dist/components/icons/X.js +26 -0
- package/dist/components/icons/X.stories.js +19 -0
- package/dist/components/icons/Youtube.js +26 -0
- package/dist/components/icons/Youtube.stories.js +24 -0
- package/dist/components/icons/index.js +170 -0
- package/dist/components/renderToBody/index.js +27 -0
- package/dist/components/renderToBody/renderToBody.js +68 -0
- package/dist/components/taxId/TaxId.stories.js +54 -0
- package/dist/components/taxId/complete.js +32 -0
- package/dist/components/taxId/flow.js +65 -0
- package/dist/components/taxId/index.js +27 -0
- package/dist/components/taxId/register-taxid.js +195 -0
- package/dist/components/video/Video.js +174 -0
- package/dist/components/video/Video.stories.js +56 -0
- package/dist/components/video/index.js +27 -0
- package/dist/constants/globalVariables.js +10 -0
- package/dist/constants/style.js +52 -0
- package/dist/index.js +1 -0
- package/dist/model/axios.js +18 -0
- package/dist/model/axiosPublic.js +18 -0
- package/dist/static/fonts/Ionicons/Ionicons.ttf +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff +0 -0
- package/dist/static/fonts/Ionicons/Ionicons.woff2 +0 -0
- package/dist/static/fonts/Ionicons/ionicons.min.css +13 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Light.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2 +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff +0 -0
- package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2 +0 -0
- package/dist/static/fonts/icomoon/icomoon.eot +0 -0
- package/dist/static/fonts/icomoon/icomoon.svg +47 -0
- package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
- package/dist/static/fonts/icomoon/icomoon.woff +0 -0
- package/dist/static/fonts/icomoon/selection.json +1 -0
- package/dist/static/fonts/icomoon/style.css +137 -0
- package/dist/static/images/1.svg +4 -0
- package/dist/static/images/2.svg +4 -0
- package/dist/static/images/3.svg +3 -0
- package/dist/static/images/4.svg +3 -0
- package/dist/static/images/Glassess.svg +5 -0
- package/dist/static/images/VerifiedBadge.svg +1 -0
- package/dist/static/images/address-refreshing.gif +0 -0
- package/dist/static/images/admin-badge.svg +3 -0
- package/dist/static/images/amazon-logo.png +0 -0
- package/dist/static/images/arrow-down-black.svg +21 -0
- package/dist/static/images/avatar-cog.png +0 -0
- package/dist/static/images/avatar-placeholder.png +0 -0
- package/dist/static/images/avatar.png +0 -0
- package/dist/static/images/background.png +0 -0
- package/dist/static/images/camera.svg +1 -0
- package/dist/static/images/caps-lock.svg +6 -0
- package/dist/static/images/covers/blockchain.png +0 -0
- package/dist/static/images/covers/country.jpg +0 -0
- package/dist/static/images/covers/ethereum.jpg +0 -0
- package/dist/static/images/covers/index.png +0 -0
- package/dist/static/images/covers/liquid.png +0 -0
- package/dist/static/images/covers/money.png +0 -0
- package/dist/static/images/covers/overview.jpg +0 -0
- package/dist/static/images/covers/risk-questionnaire.jpg +0 -0
- package/dist/static/images/covers/rocket.png +0 -0
- package/dist/static/images/covers/verify-identity.jpg +0 -0
- package/dist/static/images/covers/virtual-iban.jpg +0 -0
- package/dist/static/images/document-back.svg +1 -0
- package/dist/static/images/document-small.svg +1 -0
- package/dist/static/images/document.svg +1 -0
- package/dist/static/images/early-adopter.png +0 -0
- package/dist/static/images/early-adopter.svg +1 -0
- package/dist/static/images/eth.svg +10 -0
- package/dist/static/images/eur.svg +3 -0
- package/dist/static/images/face-scan-icon.svg +1 -0
- package/dist/static/images/favicon.png +0 -0
- package/dist/static/images/favicon.svg +57 -0
- package/dist/static/images/google-logo.png +0 -0
- package/dist/static/images/graduation.png +0 -0
- package/dist/static/images/hdd.png +0 -0
- package/dist/static/images/lemonway.png +0 -0
- package/dist/static/images/logo.svg +1 -0
- package/dist/static/images/member-item-picture.png +0 -0
- package/dist/static/images/one.jpg +0 -0
- package/dist/static/images/passport.svg +1 -0
- package/dist/static/images/process-waiting.gif +0 -0
- package/dist/static/images/profile-picture-placeholder.png +0 -0
- package/dist/static/images/profile-picture-placeholder.svg +1 -0
- package/dist/static/images/profile-picture.png +0 -0
- package/dist/static/images/refresh.svg +9 -0
- package/dist/static/images/shark.jpg +0 -0
- package/dist/static/images/sicos.png +0 -0
- package/dist/static/images/slider/1.jpg +0 -0
- package/dist/static/images/slider/2.jpg +0 -0
- package/dist/static/images/slider/3.jpg +0 -0
- package/dist/static/images/social/facebook.svg +3 -0
- package/dist/static/images/social/linkedin.svg +3 -0
- package/dist/static/images/social/medium.svg +3 -0
- package/dist/static/images/social/reddit.svg +3 -0
- package/dist/static/images/social/telegram.svg +3 -0
- package/dist/static/images/social/twitter.svg +3 -0
- package/dist/static/images/social/youtube.svg +3 -0
- package/dist/static/images/three.jpg +0 -0
- package/dist/static/images/two-sided-document.svg +26 -0
- package/dist/static/images/two.jpg +0 -0
- package/dist/static/images/upload.svg +1 -0
- package/dist/static/images/user-profile.png +0 -0
- package/dist/static/images/whales.png +0 -0
- package/dist/static/videos/Capybara-with-mandarin orange-on-head.mp4 +0 -0
- package/dist/styles/colors.js +55 -0
- package/dist/styles/fonts.js +34 -0
- package/dist/styles/global.js +19 -0
- package/dist/styles/grid.js +16 -0
- package/dist/styles/reactTippy.js +12 -0
- package/dist/styles/rwd.js +52 -0
- package/dist/styles/semanticUi.js +12 -0
- package/dist/styles/spacing.js +12 -0
- package/dist/styles/theme.js +43 -0
- package/dist/utils/allowed-countries-list.js +1375 -0
- package/dist/utils/breakpoint.js +19 -0
- package/dist/utils/countries-list.js +1008 -0
- package/dist/utils/customHooks.js +54 -0
- package/dist/utils/delete-redirect-cookie-and-navigate.js +20 -0
- package/dist/utils/fix-decimals.js +11 -0
- package/dist/utils/get-cookie-domain.js +16 -0
- package/dist/utils/get-short-address.js +10 -0
- package/dist/utils/lock-body.js +20 -0
- package/dist/utils/redirect-url.js +10 -0
- package/dist/utils/set-redirect-cookie.js +20 -0
- package/docker-compose.yml +25 -0
- package/package.json +77 -84
- package/storybook-static/favicon.ico +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TooltipBox = exports.TitleContainer = exports.Title = exports.State = exports.Notifications = exports.IconContainer = exports.Icon = exports.Content = exports.Container = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _Icon = _interopRequireDefault(require("../Icon/Icon.style"));
|
|
9
|
+
var _ToDoList = require("./ToDoList");
|
|
10
|
+
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
13
|
+
displayName: "ToDoListTaskstyles__Container",
|
|
14
|
+
componentId: "sc-lpyruk-0"
|
|
15
|
+
})(["display:flex;height:56px;align-items:center;", " ", ""], function (props) {
|
|
16
|
+
return props.disabled && "\n opacity:0.5;\n cursor: context-menu;\n ";
|
|
17
|
+
}, function (props) {
|
|
18
|
+
return props.link && "\n cursor:pointer;\n ";
|
|
19
|
+
});
|
|
20
|
+
exports.Container = Container;
|
|
21
|
+
var Content = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "ToDoListTaskstyles__Content",
|
|
23
|
+
componentId: "sc-lpyruk-1"
|
|
24
|
+
})(["display:flex;flex-direction:column;"]);
|
|
25
|
+
exports.Content = Content;
|
|
26
|
+
var TitleContainer = _styledComponents.default.div.withConfig({
|
|
27
|
+
displayName: "ToDoListTaskstyles__TitleContainer",
|
|
28
|
+
componentId: "sc-lpyruk-2"
|
|
29
|
+
})(["display:flex;align-items:center;"]);
|
|
30
|
+
exports.TitleContainer = TitleContainer;
|
|
31
|
+
var Title = _styledComponents.default.div.withConfig({
|
|
32
|
+
displayName: "ToDoListTaskstyles__Title",
|
|
33
|
+
componentId: "sc-lpyruk-3"
|
|
34
|
+
})(["font-size:16px;font-weight:600;line-height:24px;letter-spacing:0.6px;text-align:left;", " ", ""], function (props) {
|
|
35
|
+
return (props.state === _ToDoList.ToDoTaskState.IN_PROGRESS || props.state === _ToDoList.ToDoTaskState.APPROVED || props.state === _ToDoList.ToDoTaskState.NOT_AVAILABLE) && "\n opacity: 0.3;\n ";
|
|
36
|
+
}, function (props) {
|
|
37
|
+
return props.link && "\n opacity: 1;\n ";
|
|
38
|
+
});
|
|
39
|
+
exports.Title = Title;
|
|
40
|
+
var Notifications = _styledComponents.default.div.withConfig({
|
|
41
|
+
displayName: "ToDoListTaskstyles__Notifications",
|
|
42
|
+
componentId: "sc-lpyruk-4"
|
|
43
|
+
})(["position:relative;right:-5px;width:16px;height:16px;color:#ffffff;font-size:11px;font-weight:700;line-height:16px;text-align:center;background-color:#ee220d;border-radius:50%;padding-left:0;"]);
|
|
44
|
+
exports.Notifications = Notifications;
|
|
45
|
+
var State = _styledComponents.default.p.withConfig({
|
|
46
|
+
displayName: "ToDoListTaskstyles__State",
|
|
47
|
+
componentId: "sc-lpyruk-5"
|
|
48
|
+
})(["margin-top:3px;font-size:11px;line-height:16px;letter-spacing:0.4px;font-weight:300;text-align:left;opacity:0.6;"]);
|
|
49
|
+
exports.State = State;
|
|
50
|
+
var IconContainer = _styledComponents.default.div.withConfig({
|
|
51
|
+
displayName: "ToDoListTaskstyles__IconContainer",
|
|
52
|
+
componentId: "sc-lpyruk-6"
|
|
53
|
+
})(["flex-shrink:0;width:23px;text-align:center;margin-right:10px;position:relative;top:-10px;"]);
|
|
54
|
+
exports.IconContainer = IconContainer;
|
|
55
|
+
var TooltipBox = _styledComponents.default.div.withConfig({
|
|
56
|
+
displayName: "ToDoListTaskstyles__TooltipBox",
|
|
57
|
+
componentId: "sc-lpyruk-7"
|
|
58
|
+
})(["max-width:240px;text-align:left;"]);
|
|
59
|
+
exports.TooltipBox = TooltipBox;
|
|
60
|
+
var Icon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
61
|
+
displayName: "ToDoListTaskstyles__Icon",
|
|
62
|
+
componentId: "sc-lpyruk-8"
|
|
63
|
+
})(["font-size:20px;width:18px;text-align:center;", " ", " ", " ", " ", ""], function (props) {
|
|
64
|
+
return props.state === _ToDoList.ToDoTaskState.APPROVED && "\n font-size: 13px;\n color: ".concat(_colors.default.freshGreen, ";\n ");
|
|
65
|
+
}, function (props) {
|
|
66
|
+
return props.state === _ToDoList.ToDoTaskState.REJECTED && "\n color: ".concat(_colors.default.orangishRed, ";\n ");
|
|
67
|
+
}, function (props) {
|
|
68
|
+
return props.state === _ToDoList.ToDoTaskState.IN_PROGRESS && "\n opacity: 0.3;\n ";
|
|
69
|
+
}, function (props) {
|
|
70
|
+
return props.state === _ToDoList.ToDoTaskState.SKIPPED && "\n font-size: 13px;\n ";
|
|
71
|
+
}, function (props) {
|
|
72
|
+
return props.state === _ToDoList.ToDoTaskState.NOT_AVAILABLE && "\n font-size: 13px;\n opacity: 0.3;\n ";
|
|
73
|
+
});
|
|
74
|
+
exports.Icon = Icon;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.TransactionDetails = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _BasicTable = _interopRequireDefault(require("../BasicTable/BasicTable"));
|
|
11
|
+
var _TransactionDetails = require("./TransactionDetails.styles");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
+
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."); }
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
19
|
+
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; } }
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
var TransactionDetails = function TransactionDetails(props) {
|
|
22
|
+
var data = props.data;
|
|
23
|
+
var _useState = (0, _react.useState)(true),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
showDetails = _useState2[0],
|
|
26
|
+
setShowDetails = _useState2[1];
|
|
27
|
+
var toggleDetails = function toggleDetails() {
|
|
28
|
+
setShowDetails(!showDetails);
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_TransactionDetails.Container, null, data.length > 0 ? /*#__PURE__*/_react.default.createElement(_TransactionDetails.Toggle, {
|
|
31
|
+
onClick: toggleDetails
|
|
32
|
+
}, showDetails ? 'hide details' : 'view details') : /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_TransactionDetails.DetailsCollapse, {
|
|
33
|
+
isOpened: showDetails
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_BasicTable.default, {
|
|
35
|
+
data: data
|
|
36
|
+
})));
|
|
37
|
+
};
|
|
38
|
+
exports.TransactionDetails = TransactionDetails;
|
|
39
|
+
TransactionDetails.propTypes = {
|
|
40
|
+
data: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
41
|
+
label: _propTypes.default.string,
|
|
42
|
+
value: _propTypes.default.string.isRequired
|
|
43
|
+
})).isRequired
|
|
44
|
+
};
|
|
45
|
+
var _default = TransactionDetails;
|
|
46
|
+
exports.default = _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.TransactionDetails4 = exports.TransactionDetails1 = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _TransactionDetails = require("./TransactionDetails");
|
|
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/TransactionDetails',
|
|
13
|
+
component: _TransactionDetails.TransactionDetails,
|
|
14
|
+
argTypes: {
|
|
15
|
+
data: [{
|
|
16
|
+
label: {
|
|
17
|
+
type: 'string'
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
value: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
}],
|
|
25
|
+
required: true
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.default = _default;
|
|
29
|
+
var Template = function Template(args) {
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_TransactionDetails.TransactionDetails, args));
|
|
31
|
+
};
|
|
32
|
+
var TransactionDetails1 = Template.bind({});
|
|
33
|
+
exports.TransactionDetails1 = TransactionDetails1;
|
|
34
|
+
TransactionDetails1.args = {
|
|
35
|
+
data: [{
|
|
36
|
+
label: 'This is a Label',
|
|
37
|
+
value: 'This is a value'
|
|
38
|
+
}]
|
|
39
|
+
};
|
|
40
|
+
var TransactionDetails4 = Template.bind({});
|
|
41
|
+
exports.TransactionDetails4 = TransactionDetails4;
|
|
42
|
+
TransactionDetails4.args = {
|
|
43
|
+
data: [{
|
|
44
|
+
label: 'This is a Label',
|
|
45
|
+
value: 'This is a value'
|
|
46
|
+
}, {
|
|
47
|
+
label: 'This is a Label too',
|
|
48
|
+
value: 'This is a value too'
|
|
49
|
+
}, {
|
|
50
|
+
label: 'This is Label three',
|
|
51
|
+
value: 'This is value three'
|
|
52
|
+
}, {
|
|
53
|
+
label: 'This is Label four',
|
|
54
|
+
value: 'This is value four'
|
|
55
|
+
}]
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
//doublecheck:
|
|
59
|
+
// state?
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Toggle = exports.DetailsCollapse = exports.Container = 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 Container = _styledComponents.default.div.withConfig({
|
|
12
|
+
displayName: "TransactionDetailsstyles__Container",
|
|
13
|
+
componentId: "sc-yhycqf-0"
|
|
14
|
+
})(["display:block;position:relative;text-align:center;padding-top:8px;"]);
|
|
15
|
+
exports.Container = Container;
|
|
16
|
+
var Toggle = _styledComponents.default.button.withConfig({
|
|
17
|
+
displayName: "TransactionDetailsstyles__Toggle",
|
|
18
|
+
componentId: "sc-yhycqf-1"
|
|
19
|
+
})(["display:inline-block;font-size:11px;line-height:16px;color:", ";transition:color 0.2s;outline:0;&:hover{color:", ";}"], function (props) {
|
|
20
|
+
return _theme.default.cGrey2;
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return _theme.default.cPrimary;
|
|
23
|
+
});
|
|
24
|
+
exports.Toggle = Toggle;
|
|
25
|
+
var DetailsCollapse = (0, _styledComponents.default)(_reactCollapse.Collapse).withConfig({
|
|
26
|
+
displayName: "TransactionDetailsstyles__DetailsCollapse",
|
|
27
|
+
componentId: "sc-yhycqf-2"
|
|
28
|
+
})(["opacity:0;transition:opacity 0.2s;margin-top:12px;", ""], function (props) {
|
|
29
|
+
return props.isOpened && "\n opacity: 1;\n border-bottom: 1px solid ".concat(_theme.default.cLightGrey, ";\n ");
|
|
30
|
+
});
|
|
31
|
+
exports.DetailsCollapse = DetailsCollapse;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.TransactionInfo = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _TransactionInfo = require("./TransactionInfo.styles");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var TransactionInfo = function TransactionInfo(_ref) {
|
|
12
|
+
var value1 = _ref.value1,
|
|
13
|
+
unit1 = _ref.unit1,
|
|
14
|
+
name1 = _ref.name1,
|
|
15
|
+
owner1 = _ref.owner1,
|
|
16
|
+
value2 = _ref.value2,
|
|
17
|
+
unit2 = _ref.unit2,
|
|
18
|
+
name2 = _ref.name2,
|
|
19
|
+
owner2 = _ref.owner2,
|
|
20
|
+
green = _ref.green,
|
|
21
|
+
red = _ref.red;
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_TransactionInfo.Container, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.Account, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.Name, {
|
|
23
|
+
green: green,
|
|
24
|
+
red: red
|
|
25
|
+
}, "".concat(name1, " ").concat(owner1)), /*#__PURE__*/_react.default.createElement(_TransactionInfo.Value, {
|
|
26
|
+
green: green,
|
|
27
|
+
red: red
|
|
28
|
+
}, "".concat(unit1, " ").concat(value1))), /*#__PURE__*/_react.default.createElement(_TransactionInfo.TransferIcon, null), /*#__PURE__*/_react.default.createElement(_TransactionInfo.Account, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.Name, {
|
|
29
|
+
green: green,
|
|
30
|
+
red: red
|
|
31
|
+
}, "".concat(name2, " ").concat(owner2)), /*#__PURE__*/_react.default.createElement(_TransactionInfo.Value, {
|
|
32
|
+
green: green,
|
|
33
|
+
red: red
|
|
34
|
+
}, "".concat(unit2, " ").concat(value2))));
|
|
35
|
+
};
|
|
36
|
+
exports.TransactionInfo = TransactionInfo;
|
|
37
|
+
TransactionInfo.propTypes = {
|
|
38
|
+
value1: _propTypes.default.string,
|
|
39
|
+
unit1: _propTypes.default.string,
|
|
40
|
+
name1: _propTypes.default.string,
|
|
41
|
+
owner1: _propTypes.default.string,
|
|
42
|
+
value2: _propTypes.default.string,
|
|
43
|
+
unit2: _propTypes.default.string,
|
|
44
|
+
name2: _propTypes.default.string,
|
|
45
|
+
owner2: _propTypes.default.string
|
|
46
|
+
};
|
|
47
|
+
TransactionInfo.defaultProps = {
|
|
48
|
+
value1: '',
|
|
49
|
+
unit1: '',
|
|
50
|
+
name1: '',
|
|
51
|
+
owner1: '',
|
|
52
|
+
value2: '',
|
|
53
|
+
unit2: '',
|
|
54
|
+
name2: '',
|
|
55
|
+
owner2: ''
|
|
56
|
+
};
|
|
57
|
+
var _default = TransactionInfo;
|
|
58
|
+
exports.default = _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.TransactionInfoExample = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _TransactionInfo = require("./TransactionInfo");
|
|
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/TransactionInfo',
|
|
13
|
+
component: _TransactionInfo.TransactionInfo,
|
|
14
|
+
argTypes: {
|
|
15
|
+
value1: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
defaultValue: ''
|
|
18
|
+
},
|
|
19
|
+
unit1: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
defaultValue: ''
|
|
22
|
+
},
|
|
23
|
+
name1: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
defaultValue: ''
|
|
26
|
+
},
|
|
27
|
+
owner1: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
defaultValue: ''
|
|
30
|
+
},
|
|
31
|
+
value2: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
defaultValue: ''
|
|
34
|
+
},
|
|
35
|
+
unit2: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
defaultValue: ''
|
|
38
|
+
},
|
|
39
|
+
name2: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
defaultValue: ''
|
|
42
|
+
},
|
|
43
|
+
owner2: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
defaultValue: ''
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.default = _default;
|
|
50
|
+
var Template = function Template(args) {
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_TransactionInfo.TransactionInfo, args));
|
|
52
|
+
};
|
|
53
|
+
var TransactionInfoExample = Template.bind({});
|
|
54
|
+
exports.TransactionInfoExample = TransactionInfoExample;
|
|
55
|
+
TransactionInfoExample.args = {
|
|
56
|
+
value1: 'value 1',
|
|
57
|
+
unit1: 'unit 1',
|
|
58
|
+
name1: 'name 1',
|
|
59
|
+
owner1: 'owner 1',
|
|
60
|
+
value2: 'value 2',
|
|
61
|
+
unit2: 'unit 2',
|
|
62
|
+
name2: 'name 2',
|
|
63
|
+
owner2: 'owner 2'
|
|
64
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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.Value = exports.TransferIcon = exports.Name = exports.Container = exports.Account = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
10
|
+
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "TransactionInfostyles__Container",
|
|
18
|
+
componentId: "sc-8iuxfi-0"
|
|
19
|
+
})(["display:flex;align-items:center;"]);
|
|
20
|
+
exports.Container = Container;
|
|
21
|
+
var Account = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "TransactionInfostyles__Account",
|
|
23
|
+
componentId: "sc-8iuxfi-1"
|
|
24
|
+
})([""]);
|
|
25
|
+
exports.Account = Account;
|
|
26
|
+
var TransferIcon = _styledComponents.default.div.attrs({
|
|
27
|
+
className: 'ion'
|
|
28
|
+
}).withConfig({
|
|
29
|
+
displayName: "TransactionInfostyles__TransferIcon",
|
|
30
|
+
componentId: "sc-8iuxfi-2"
|
|
31
|
+
})(["width:16px;height:19px;position:relative;margin:auto;&::before,&::after{font-size:28px;position:absolute;left:0;}&::before{content:'\f117';color:", ";top:-7px;}&::after{content:'\f119';color:", ";top:2px;}"], function (props) {
|
|
32
|
+
return _theme.default.cSuccess;
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return _theme.default.cWarning;
|
|
35
|
+
});
|
|
36
|
+
exports.TransferIcon = TransferIcon;
|
|
37
|
+
var Value = _styledComponents.default.div.withConfig({
|
|
38
|
+
displayName: "TransactionInfostyles__Value",
|
|
39
|
+
componentId: "sc-8iuxfi-3"
|
|
40
|
+
})(["font-size:22px;font-weight:300;line-height:28px;letter-spacing:0.8px;", " ", ""], function (props) {
|
|
41
|
+
return props.green && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.progressGreen);
|
|
42
|
+
}, function (props) {
|
|
43
|
+
return props.red && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.orangishRed);
|
|
44
|
+
});
|
|
45
|
+
exports.Value = Value;
|
|
46
|
+
var Name = _styledComponents.default.div.withConfig({
|
|
47
|
+
displayName: "TransactionInfostyles__Name",
|
|
48
|
+
componentId: "sc-8iuxfi-4"
|
|
49
|
+
})(["font-size:13px;line-height:16px;letter-spacing:0.4px;font-style:italic;margin-bottom:3px;", " ", ""], function (props) {
|
|
50
|
+
return props.green && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.progressGreen);
|
|
51
|
+
}, function (props) {
|
|
52
|
+
return props.red && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n "])), _colors.default.orangishRed);
|
|
53
|
+
});
|
|
54
|
+
exports.Name = Name;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.TwoFactorModal = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _formik = require("formik");
|
|
10
|
+
var Yup = _interopRequireWildcard(require("yup"));
|
|
11
|
+
var _Modal = require("../Modal/Modal");
|
|
12
|
+
var _Form = _interopRequireWildcard(require("../Form/Form"));
|
|
13
|
+
var _Text = _interopRequireDefault(require("../Text/Text.styles"));
|
|
14
|
+
var _Input = _interopRequireDefault(require("../Input/Input"));
|
|
15
|
+
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
16
|
+
var _Grid = require("../Grid/Grid.styles");
|
|
17
|
+
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
function _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); }
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
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); } }
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
+
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); }
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
|
+
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); }; }
|
|
28
|
+
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); }
|
|
29
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
30
|
+
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; } }
|
|
31
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
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; }
|
|
33
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
34
|
+
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); }
|
|
35
|
+
var TwoFactorModal = /*#__PURE__*/function (_PureComponent) {
|
|
36
|
+
_inherits(TwoFactorModal, _PureComponent);
|
|
37
|
+
var _super = _createSuper(TwoFactorModal);
|
|
38
|
+
function TwoFactorModal() {
|
|
39
|
+
var _this;
|
|
40
|
+
_classCallCheck(this, TwoFactorModal);
|
|
41
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42
|
+
args[_key] = arguments[_key];
|
|
43
|
+
}
|
|
44
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
45
|
+
_defineProperty(_assertThisInitialized(_this), "initialValues", {
|
|
46
|
+
fa2code: ''
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(_assertThisInitialized(_this), "validationSchema", Yup.object().shape({
|
|
49
|
+
fa2code: Yup.string().required('Token is required')
|
|
50
|
+
}));
|
|
51
|
+
return _this;
|
|
52
|
+
}
|
|
53
|
+
_createClass(TwoFactorModal, [{
|
|
54
|
+
key: "render",
|
|
55
|
+
value: function render() {
|
|
56
|
+
var _this$props = this.props,
|
|
57
|
+
isModalOpen = _this$props.isModalOpen,
|
|
58
|
+
onModalClose = _this$props.onModalClose,
|
|
59
|
+
onFormSend = _this$props.onFormSend;
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
61
|
+
isOpen: isModalOpen,
|
|
62
|
+
onClose: onModalClose
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement(_Grid.Row, null, /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
64
|
+
part: 8
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, {
|
|
66
|
+
modalTop: true
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h3", null, "Two Factor Authentication"), /*#__PURE__*/_react.default.createElement("p", null, 'Please log in to engage in our community & invest in exciting opportunities.'))), /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, {
|
|
68
|
+
modalBot: true
|
|
69
|
+
})), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
70
|
+
part: 8
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_Modal.ModalInner, null, /*#__PURE__*/_react.default.createElement(_formik.Formik, {
|
|
72
|
+
initialValues: this.initialValues,
|
|
73
|
+
validationSchema: this.validationSchema,
|
|
74
|
+
onSubmit: onFormSend
|
|
75
|
+
}, function (_ref) {
|
|
76
|
+
var values = _ref.values,
|
|
77
|
+
errors = _ref.errors,
|
|
78
|
+
touched = _ref.touched,
|
|
79
|
+
handleBlur = _ref.handleBlur,
|
|
80
|
+
setFieldValue = _ref.setFieldValue,
|
|
81
|
+
setFieldTouched = _ref.setFieldTouched;
|
|
82
|
+
var onChangeWithTouch = function onChangeWithTouch(e) {
|
|
83
|
+
var field = e.target;
|
|
84
|
+
setFieldValue(field.name, field.value, false);
|
|
85
|
+
setFieldTouched(field.name);
|
|
86
|
+
};
|
|
87
|
+
var submitDisabled = !touched.fa2code || !!errors.fa2code;
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement(_Form.default, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
89
|
+
noPadding: true
|
|
90
|
+
}, /*#__PURE__*/_react.default.createElement(_Form.FormField, null, /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
91
|
+
id: "two-factor",
|
|
92
|
+
name: "fa2code",
|
|
93
|
+
type: "text",
|
|
94
|
+
label: "Token",
|
|
95
|
+
value: values.fa2code,
|
|
96
|
+
onChange: onChangeWithTouch,
|
|
97
|
+
onBlur: handleBlur,
|
|
98
|
+
error: !!errors.fa2code,
|
|
99
|
+
touched: !!touched.fa2code
|
|
100
|
+
}), /*#__PURE__*/_react.default.createElement(_Form.FormError, {
|
|
101
|
+
show: errors.fa2code && touched.fa2code
|
|
102
|
+
}, errors.fa2code))), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
103
|
+
noPaddingBottom: true,
|
|
104
|
+
noPaddingHorizontal: true
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
106
|
+
type: "submit",
|
|
107
|
+
fluid: true,
|
|
108
|
+
disabled: submitDisabled
|
|
109
|
+
}, "Login")));
|
|
110
|
+
})))));
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
return TwoFactorModal;
|
|
114
|
+
}(_react.PureComponent);
|
|
115
|
+
exports.TwoFactorModal = TwoFactorModal;
|
|
116
|
+
TwoFactorModal.propTypes = {
|
|
117
|
+
isModalOpen: _propTypes.default.bool.isRequired,
|
|
118
|
+
onModalClose: _propTypes.default.func.isRequired,
|
|
119
|
+
onFormSend: _propTypes.default.func.isRequired
|
|
120
|
+
};
|
|
121
|
+
var _default = TwoFactorModal;
|
|
122
|
+
exports.default = _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.Breakdown = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _arrowDownBlack = _interopRequireDefault(require("../../static/images/arrow-down-black.svg"));
|
|
10
|
+
var _rwd = _interopRequireWildcard(require("../../styles/rwd"));
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
+
var Breakdown = _styledComponents.default.div.withConfig({
|
|
17
|
+
displayName: "Breakdown",
|
|
18
|
+
componentId: "sc-1i2d0ys-0"
|
|
19
|
+
})(["text-transform:uppercase;letter-spacing:2.1px;font-size:", ";white-space:", ";line-height:2.18;color:inherit;font-weight:bolder;strong&{font-weight:bold;}", " ", " ", " ", " ", " ", " @media screen and (max-width:991px){", "}", " ", " ", " ", ""], function (_ref) {
|
|
20
|
+
var fontSize = _ref.fontSize;
|
|
21
|
+
return fontSize ? "".concat(fontSize, "px") : '11px';
|
|
22
|
+
}, function (_ref2) {
|
|
23
|
+
var withWordWrap = _ref2.withWordWrap;
|
|
24
|
+
return withWordWrap ? 'unset' : 'nowrap';
|
|
25
|
+
}, function (_ref3) {
|
|
26
|
+
var is101 = _ref3.is101;
|
|
27
|
+
return is101 && (0, _styledComponents.css)(["text-transform:unset;"]);
|
|
28
|
+
}, function (_ref4) {
|
|
29
|
+
var mobile = _ref4.mobile;
|
|
30
|
+
return mobile && (0, _styledComponents.css)(["display:none;", ""], _rwd.rwdMax.Mobile(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n "]))));
|
|
31
|
+
}, function (_ref5) {
|
|
32
|
+
var nomobile = _ref5.nomobile;
|
|
33
|
+
return nomobile && (0, _styledComponents.css)(["display:block;", ""], _rwd.rwdMax.Mobile(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: none;\n "]))));
|
|
34
|
+
}, function (props) {
|
|
35
|
+
return props.withPadding && "\n padding:18px 16px;\n ";
|
|
36
|
+
}, function (props) {
|
|
37
|
+
return props.red && "\n background: #D2200D;\n color:white;\n border-bottom: 1px solid #979797;\n ";
|
|
38
|
+
}, function (_ref6) {
|
|
39
|
+
var alignCenter = _ref6.alignCenter;
|
|
40
|
+
return alignCenter && (0, _styledComponents.css)(["display:flex;justify-content:center;"]);
|
|
41
|
+
}, function (_ref7) {
|
|
42
|
+
var menuWithArrow = _ref7.menuWithArrow;
|
|
43
|
+
return menuWithArrow && (0, _styledComponents.css)(["align-items:center;display:flex;justify-content:space-between;"]);
|
|
44
|
+
}, function (_ref8) {
|
|
45
|
+
var mobileMenu = _ref8.mobileMenu;
|
|
46
|
+
return mobileMenu && (0, _styledComponents.css)(["display:flex;justify-content:center;align-items:center;}"]);
|
|
47
|
+
}, function (props) {
|
|
48
|
+
return props.asLink && "\n cursor:pointer;\n &:hover {\n opacity: .6;\n }\n ";
|
|
49
|
+
}, function (props) {
|
|
50
|
+
return props.withIcon && "\n ".concat(_rwd.rwdMax.Medium(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\n span {\n\n\n position:relative;\n \n &: before {\n content: url(", ");\n position:absolute;\n top: -4px;\n right: -2em;\n width:12px;\n transition: transform 0.7s;\n\n }\n }\n\n \n \n "])), _arrowDownBlack.default), "\n ");
|
|
51
|
+
}, function (props) {
|
|
52
|
+
return props.active && "\n ".concat(_rwd.rwdMax.Medium(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\n &:before {\n \n transform: rotate(180deg);\n }\n "]))), "\n\n \n ");
|
|
53
|
+
});
|
|
54
|
+
exports.Breakdown = Breakdown;
|
|
55
|
+
var _default = Breakdown;
|
|
56
|
+
exports.default = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
var _exportNames = {};
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _Breakdown.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
var _Breakdown = _interopRequireWildcard(require("./Breakdown"));
|
|
15
|
+
Object.keys(_Breakdown).forEach(function (key) {
|
|
16
|
+
if (key === "default" || key === "__esModule") return;
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
18
|
+
if (key in exports && exports[key] === _Breakdown[key]) return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _Breakdown[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
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); }
|
|
27
|
+
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; }
|