@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,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.ChartContainer = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
9
|
+
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var colorTheme = function colorTheme(props) {
|
|
12
|
+
return {
|
|
13
|
+
blue: {
|
|
14
|
+
primary: _theme.default.cPrimary,
|
|
15
|
+
dark: _theme.default.cPrimaryDark
|
|
16
|
+
},
|
|
17
|
+
red: {
|
|
18
|
+
primary: _theme.default.cWarning,
|
|
19
|
+
dark: _theme.default.cWarningDark
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
var ChartContainer = (0, _styledComponents.default)(_ComponentWrapper.default).withConfig({
|
|
24
|
+
displayName: "Analyticstyles__ChartContainer",
|
|
25
|
+
componentId: "sc-wgv3ti-0"
|
|
26
|
+
})([".slick-arrow{width:64px;height:48px;background:", ";z-index:10;transition:0.3s ease background;margin-top:10px;&:hover,&:focus{background:", ";&::before{color:", " !important;}}}.slick-arrow.slick-prev{top:auto;left:auto;bottom:0;right:64px;transform:translateY(100%);}.slick-arrow.slick-next{top:auto;left:auto;bottom:0;right:0;transform:translateY(100%);border-left:1px solid ", ";}"], function (props) {
|
|
27
|
+
return colorTheme(props)[props.colorTheme].primary;
|
|
28
|
+
}, function (props) {
|
|
29
|
+
return colorTheme(props)[props.colorTheme].dark;
|
|
30
|
+
}, function (props) {
|
|
31
|
+
return _theme.default.cWhite;
|
|
32
|
+
}, function (props) {
|
|
33
|
+
return colorTheme(props)[props.colorTheme].dark;
|
|
34
|
+
});
|
|
35
|
+
exports.ChartContainer = ChartContainer;
|
|
36
|
+
var _default = ChartContainer;
|
|
37
|
+
exports.default = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.BackButton = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _BackButton = require("./BackButton.styles");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var BackButton = function BackButton(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
to = _ref.to,
|
|
14
|
+
href = _ref.href;
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, href ? /*#__PURE__*/_react.default.createElement(_BackButton.StyledBackButtonExternal, {
|
|
16
|
+
href: href
|
|
17
|
+
}, /*#__PURE__*/_react.default.createElement(_BackButton.BackButtonIcon, null), children) : to ? /*#__PURE__*/_react.default.createElement(_BackButton.StyledBackButton, {
|
|
18
|
+
to: to
|
|
19
|
+
}, /*#__PURE__*/_react.default.createElement(_BackButton.BackButtonIcon, null), children) : /*#__PURE__*/_react.default.createElement(_BackButton.StyledWindowBackButton, {
|
|
20
|
+
onClick: function onClick() {
|
|
21
|
+
return window.history.back();
|
|
22
|
+
}
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_BackButton.BackButtonIcon, null), children));
|
|
24
|
+
};
|
|
25
|
+
exports.BackButton = BackButton;
|
|
26
|
+
BackButton.propTypes = {
|
|
27
|
+
children: _propTypes.default.node.isRequired,
|
|
28
|
+
to: _propTypes.default.string,
|
|
29
|
+
href: _propTypes.default.string
|
|
30
|
+
};
|
|
31
|
+
var _default = BackButton;
|
|
32
|
+
exports.default = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.BackButtonDefault = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _BackButton = require("./BackButton");
|
|
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/Buttons/BackButton',
|
|
13
|
+
component: _BackButton.BackButton,
|
|
14
|
+
argTypes: {
|
|
15
|
+
children: {
|
|
16
|
+
type: 'node',
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
to: {
|
|
20
|
+
type: 'string'
|
|
21
|
+
},
|
|
22
|
+
href: {
|
|
23
|
+
type: 'string'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.default = _default;
|
|
28
|
+
var Template = function Template(args) {
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_BackButton.BackButton, args));
|
|
30
|
+
};
|
|
31
|
+
var BackButtonDefault = Template.bind({});
|
|
32
|
+
exports.BackButtonDefault = BackButtonDefault;
|
|
33
|
+
BackButtonDefault.args = {};
|
|
34
|
+
|
|
35
|
+
//back button by default links to any page visited before
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledWindowBackButton = exports.StyledBackButtonExternal = exports.StyledBackButtonClick = exports.StyledBackButton = exports.ForwardButtonIcon = exports.BackButtonIcon = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _reactRouterDom = require("react-router-dom");
|
|
9
|
+
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var BackButtonIcon = _styledComponents.default.i.attrs({
|
|
12
|
+
className: 'ion ion-ios-arrow-back'
|
|
13
|
+
}).withConfig({
|
|
14
|
+
displayName: "BackButtonstyles__BackButtonIcon",
|
|
15
|
+
componentId: "sc-1uhreks-0"
|
|
16
|
+
})(["font-size:16px;position:absolute;left:0;color:", ";transform:translateX(0);transition:0.3s color,0.3s transform;"], function (props) {
|
|
17
|
+
return _theme.default.cBlack;
|
|
18
|
+
});
|
|
19
|
+
exports.BackButtonIcon = BackButtonIcon;
|
|
20
|
+
var ForwardButtonIcon = _styledComponents.default.i.attrs({
|
|
21
|
+
className: 'ion ion-ios-arrow-forward'
|
|
22
|
+
}).withConfig({
|
|
23
|
+
displayName: "BackButtonstyles__ForwardButtonIcon",
|
|
24
|
+
componentId: "sc-1uhreks-1"
|
|
25
|
+
})(["font-size:16px;position:absolute;right:0;color:", ";transform:translateX(0);transition:0.3s color,0.3s transform;"], function (props) {
|
|
26
|
+
return _theme.default.cBlack;
|
|
27
|
+
});
|
|
28
|
+
exports.ForwardButtonIcon = ForwardButtonIcon;
|
|
29
|
+
var StyledBackButton = (0, _styledComponents.default)(_reactRouterDom.Link).withConfig({
|
|
30
|
+
displayName: "BackButtonstyles__StyledBackButton",
|
|
31
|
+
componentId: "sc-1uhreks-2"
|
|
32
|
+
})(["display:block;font-size:11px;line-height:16px;letter-spacing:2px;color:", ";position:relative;padding-left:16px;transition:0.3s color;&:hover{color:", ";", "{transform:translateX(-4px);color:", ";}}"], function (props) {
|
|
33
|
+
return _theme.default.cBlack;
|
|
34
|
+
}, function (props) {
|
|
35
|
+
return _theme.default.cPrimaryDark;
|
|
36
|
+
}, BackButtonIcon, function (props) {
|
|
37
|
+
return _theme.default.cPrimaryDark;
|
|
38
|
+
});
|
|
39
|
+
exports.StyledBackButton = StyledBackButton;
|
|
40
|
+
var StyledBackButtonExternal = _styledComponents.default.a.withConfig({
|
|
41
|
+
displayName: "BackButtonstyles__StyledBackButtonExternal",
|
|
42
|
+
componentId: "sc-1uhreks-3"
|
|
43
|
+
})(["display:block;font-size:11px;line-height:16px;letter-spacing:2px;color:", ";position:relative;padding-left:16px;transition:0.3s color;&:hover{color:", ";", "{transform:translateX(-4px);color:", ";}}"], function (props) {
|
|
44
|
+
return _theme.default.cBlack;
|
|
45
|
+
}, function (props) {
|
|
46
|
+
return _theme.default.cPrimaryDark;
|
|
47
|
+
}, BackButtonIcon, function (props) {
|
|
48
|
+
return _theme.default.cPrimaryDark;
|
|
49
|
+
});
|
|
50
|
+
exports.StyledBackButtonExternal = StyledBackButtonExternal;
|
|
51
|
+
var StyledWindowBackButton = _styledComponents.default.span.withConfig({
|
|
52
|
+
displayName: "BackButtonstyles__StyledWindowBackButton",
|
|
53
|
+
componentId: "sc-1uhreks-4"
|
|
54
|
+
})(["display:block;font-size:11px;line-height:16px;cursor:pointer;letter-spacing:2px;color:", ";position:relative;padding-left:16px;transition:0.3s color;&:hover{color:", ";", "{transform:translateX(-4px);color:", ";}}"], function (props) {
|
|
55
|
+
return _theme.default.cBlack;
|
|
56
|
+
}, function (props) {
|
|
57
|
+
return _theme.default.cPrimaryDark;
|
|
58
|
+
}, BackButtonIcon, function (props) {
|
|
59
|
+
return _theme.default.cPrimaryDark;
|
|
60
|
+
});
|
|
61
|
+
exports.StyledWindowBackButton = StyledWindowBackButton;
|
|
62
|
+
var StyledBackButtonClick = _styledComponents.default.div.withConfig({
|
|
63
|
+
displayName: "BackButtonstyles__StyledBackButtonClick",
|
|
64
|
+
componentId: "sc-1uhreks-5"
|
|
65
|
+
})(["display:block;font-size:11px;line-height:16px;letter-spacing:2px;color:", ";position:relative;padding-left:16px;transition:0.3s color;cursor:pointer;", " &:hover{color:", ";", "{transform:translateX(-4px);color:", ";}", "{transform:translateX(4px);color:", ";}}"], function (props) {
|
|
66
|
+
return _theme.default.cBlack;
|
|
67
|
+
}, function (props) {
|
|
68
|
+
return props.forward && "\n padding-right: 16px;\n ";
|
|
69
|
+
}, function (props) {
|
|
70
|
+
return _theme.default.cPrimaryDark;
|
|
71
|
+
}, BackButtonIcon, function (props) {
|
|
72
|
+
return _theme.default.cPrimaryDark;
|
|
73
|
+
}, ForwardButtonIcon, function (props) {
|
|
74
|
+
return _theme.default.cPrimaryDark;
|
|
75
|
+
});
|
|
76
|
+
exports.StyledBackButtonClick = StyledBackButtonClick;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Background = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _Background = require("./Background.styles");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var Background = function Background(props) {
|
|
12
|
+
var children = props.children,
|
|
13
|
+
src = props.src,
|
|
14
|
+
mobileRatio = props.mobileRatio,
|
|
15
|
+
investmentOpportunities = props.investmentOpportunities,
|
|
16
|
+
withPadding = props.withPadding,
|
|
17
|
+
contain = props.contain,
|
|
18
|
+
caption = props.caption;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_Background.Container, {
|
|
20
|
+
mobileRatio: mobileRatio,
|
|
21
|
+
investmentOpportunities: investmentOpportunities
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement(_Background.Wrap, null, /*#__PURE__*/_react.default.createElement(_Background.Img, {
|
|
23
|
+
src: src,
|
|
24
|
+
alt: "background",
|
|
25
|
+
contain: contain,
|
|
26
|
+
withPadding: withPadding,
|
|
27
|
+
investmentOpportunities: investmentOpportunities
|
|
28
|
+
})), caption && /*#__PURE__*/_react.default.createElement(_Background.Caption, {
|
|
29
|
+
withPadding: withPadding
|
|
30
|
+
}, caption), /*#__PURE__*/_react.default.createElement(_Background.Content, null, children));
|
|
31
|
+
};
|
|
32
|
+
exports.Background = Background;
|
|
33
|
+
Background.propTypes = {
|
|
34
|
+
src: _propTypes.default.string.isRequired,
|
|
35
|
+
mobileRatio: _propTypes.default.string,
|
|
36
|
+
// example: '16:9'
|
|
37
|
+
children: _propTypes.default.node,
|
|
38
|
+
caption: _propTypes.default.string
|
|
39
|
+
};
|
|
40
|
+
Background.defaultProps = {
|
|
41
|
+
mobileRatio: '',
|
|
42
|
+
children: /*#__PURE__*/_react.default.createElement("div", null)
|
|
43
|
+
};
|
|
44
|
+
var _default = Background;
|
|
45
|
+
exports.default = _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.BackgroundMobile2 = exports.BackgroundMobile = exports.BackgroundDefault = void 0;
|
|
7
|
+
var _addonViewport = require("@storybook/addon-viewport");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Background = require("./Background");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var _default = {
|
|
12
|
+
title: 'Components Library/Background',
|
|
13
|
+
component: _Background.Background,
|
|
14
|
+
argTypes: {
|
|
15
|
+
src: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
required: true,
|
|
18
|
+
defaultValue: 'https://www.cookingclassy.com/wp-content/uploads/2014/06/chocolate-chip-cookie-16.jpg'
|
|
19
|
+
},
|
|
20
|
+
mobileRatio: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
defaultValue: ''
|
|
23
|
+
},
|
|
24
|
+
children: {
|
|
25
|
+
type: 'node',
|
|
26
|
+
defaultValue: /*#__PURE__*/_react.default.createElement("div", null)
|
|
27
|
+
},
|
|
28
|
+
investmentOpportunities: {
|
|
29
|
+
type: 'node'
|
|
30
|
+
},
|
|
31
|
+
caption: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
defaultValue: ''
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
parameters: {
|
|
37
|
+
viewport: {
|
|
38
|
+
viewports: _addonViewport.INITIAL_VIEWPORTS,
|
|
39
|
+
defaultViewport: ''
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.default = _default;
|
|
44
|
+
var Template = function Template(args) {
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_Background.Background, args, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
|
|
46
|
+
};
|
|
47
|
+
var BackgroundDefault = Template.bind({});
|
|
48
|
+
exports.BackgroundDefault = BackgroundDefault;
|
|
49
|
+
BackgroundDefault.args = {};
|
|
50
|
+
BackgroundDefault.parameters = {
|
|
51
|
+
viewport: {
|
|
52
|
+
defaultViewport: 'reset viewport'
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var BackgroundMobile = Template.bind({});
|
|
56
|
+
exports.BackgroundMobile = BackgroundMobile;
|
|
57
|
+
BackgroundMobile.args = {
|
|
58
|
+
mobileRatio: '16:9',
|
|
59
|
+
children: /*#__PURE__*/_react.default.createElement("div", null)
|
|
60
|
+
};
|
|
61
|
+
BackgroundMobile.parameters = {
|
|
62
|
+
viewport: {
|
|
63
|
+
defaultViewport: 'iphonex'
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var BackgroundMobile2 = Template.bind({});
|
|
67
|
+
exports.BackgroundMobile2 = BackgroundMobile2;
|
|
68
|
+
BackgroundMobile2.args = {
|
|
69
|
+
mobileRatio: '16:9',
|
|
70
|
+
contain: true,
|
|
71
|
+
withPadding: true,
|
|
72
|
+
caption: 'AMP ID at the top right of your SideSwap wallet.'
|
|
73
|
+
};
|
|
74
|
+
BackgroundMobile2.parameters = {
|
|
75
|
+
viewport: {
|
|
76
|
+
defaultViewport: 'iphonex'
|
|
77
|
+
}
|
|
78
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Wrap = exports.Video = exports.Img = exports.Image = exports.Content = exports.Container = exports.Caption = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _rwd = _interopRequireDefault(require("../../styles/rwd"));
|
|
9
|
+
var _templateObject;
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
13
|
+
displayName: "Backgroundstyles__Container",
|
|
14
|
+
componentId: "sc-1pfq4ec-0"
|
|
15
|
+
})(["position:relative;width:100%;height:100%;font-size:0;", " &:after{", "}", ""], function (props) {
|
|
16
|
+
if (!props.mobileRatio) return '';
|
|
17
|
+
var ratio = props.mobileRatio.split(':');
|
|
18
|
+
var percent = 100 * ratio[1] / ratio[0];
|
|
19
|
+
return "\n &:after {\n z-index: 0;\n content: '';\n position: relative;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n height: 100%;\n padding-top: ".concat(percent, "%;\n margin-left: -100%;\n }\n ");
|
|
20
|
+
}, _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n "]))), function (props) {
|
|
21
|
+
return props.investmentOpportunities && "\n padding-top: 33% !important;\n ";
|
|
22
|
+
});
|
|
23
|
+
exports.Container = Container;
|
|
24
|
+
var Wrap = _styledComponents.default.div.withConfig({
|
|
25
|
+
displayName: "Backgroundstyles__Wrap",
|
|
26
|
+
componentId: "sc-1pfq4ec-1"
|
|
27
|
+
})(["z-index:1;position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;& > div{height:100%;}"]);
|
|
28
|
+
|
|
29
|
+
// // Concerning MERGE:
|
|
30
|
+
// // differences from Img SUF below, left out of merge. Visually gave extra padding to background
|
|
31
|
+
// const Img
|
|
32
|
+
// export const Img = styled.img`
|
|
33
|
+
// top: 50%;
|
|
34
|
+
// left: 50%;
|
|
35
|
+
// height: auto;
|
|
36
|
+
// padding: 20px;
|
|
37
|
+
// transform: translate(-50%, -50%);
|
|
38
|
+
// // same as others:
|
|
39
|
+
// position: absolute;
|
|
40
|
+
// width: 100%;
|
|
41
|
+
// object-fit: cover;
|
|
42
|
+
// object-position: center center;
|
|
43
|
+
exports.Wrap = Wrap;
|
|
44
|
+
var Caption = _styledComponents.default.div.withConfig({
|
|
45
|
+
displayName: "Backgroundstyles__Caption",
|
|
46
|
+
componentId: "sc-1pfq4ec-2"
|
|
47
|
+
})(["font-size:11px;position:absolute;bottom:-25px;", ""], function (props) {
|
|
48
|
+
return props.withPadding && "\n bottom: -12px;\n ";
|
|
49
|
+
});
|
|
50
|
+
exports.Caption = Caption;
|
|
51
|
+
var Img = _styledComponents.default.img.withConfig({
|
|
52
|
+
displayName: "Backgroundstyles__Img",
|
|
53
|
+
componentId: "sc-1pfq4ec-3"
|
|
54
|
+
})(["position:absolute;width:100%;object-fit:cover;object-position:center center;top:0;left:0;height:100%;", " ", " ", ""], function (props) {
|
|
55
|
+
return props.investmentOpportunities && "\n height: 100%;\n ";
|
|
56
|
+
}, function (props) {
|
|
57
|
+
return props.withPadding && "\n padding: 20px;\n ";
|
|
58
|
+
}, function (props) {
|
|
59
|
+
return props.contain && "\n object-fit:contain;\n ";
|
|
60
|
+
});
|
|
61
|
+
exports.Img = Img;
|
|
62
|
+
var Video = _styledComponents.default.video.withConfig({
|
|
63
|
+
displayName: "Backgroundstyles__Video",
|
|
64
|
+
componentId: "sc-1pfq4ec-4"
|
|
65
|
+
})(["object-fit:cover;width:100%;height:100%;"]);
|
|
66
|
+
exports.Video = Video;
|
|
67
|
+
var Image = _styledComponents.default.img.withConfig({
|
|
68
|
+
displayName: "Backgroundstyles__Image",
|
|
69
|
+
componentId: "sc-1pfq4ec-5"
|
|
70
|
+
})(["min-width:100%;min-height:100%;width:auto;height:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);"]);
|
|
71
|
+
exports.Image = Image;
|
|
72
|
+
var Content = _styledComponents.default.div.withConfig({
|
|
73
|
+
displayName: "Backgroundstyles__Content",
|
|
74
|
+
componentId: "sc-1pfq4ec-6"
|
|
75
|
+
})(["z-index:2;position:relative;display:inline-block;vertical-align:top;width:100%;font-size:10px;"]);
|
|
76
|
+
exports.Content = Content;
|