@stokr/components-library 0.6.7 → 0.6.8
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,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.learnMorePostPropTypes = exports.learnMoreCategoryPropTypes = exports.default = exports.LearnMore = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _reactRouterDom = require("react-router-dom");
|
|
10
|
+
var _reactCollapse = require("react-collapse");
|
|
11
|
+
var _TabsNav = _interopRequireDefault(require("../TabsNav/TabsNav"));
|
|
12
|
+
var _Grid = require("../Grid/Grid.styles");
|
|
13
|
+
var _ComponentScroll = _interopRequireDefault(require("../ComponentScroll/ComponentScroll"));
|
|
14
|
+
var _rwd = require("../../styles/rwd");
|
|
15
|
+
var _BackButton = _interopRequireDefault(require("../BackButton/BackButton"));
|
|
16
|
+
var _LearnMoreItem = _interopRequireDefault(require("./LearnMoreItem"));
|
|
17
|
+
var _LearnMore = require("./LearnMore.styles");
|
|
18
|
+
var _LearnMoreShared = require("./LearnMore.shared.styles");
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
+
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); }
|
|
21
|
+
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; }
|
|
22
|
+
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); }
|
|
23
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
|
+
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); } }
|
|
27
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
28
|
+
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); }
|
|
29
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
|
+
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); }; }
|
|
31
|
+
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); }
|
|
32
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
|
+
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; } }
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
|
+
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; }
|
|
36
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
37
|
+
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); }
|
|
38
|
+
var LearnMore = /*#__PURE__*/function (_PureComponent) {
|
|
39
|
+
_inherits(LearnMore, _PureComponent);
|
|
40
|
+
var _super = _createSuper(LearnMore);
|
|
41
|
+
function LearnMore() {
|
|
42
|
+
var _this;
|
|
43
|
+
_classCallCheck(this, LearnMore);
|
|
44
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45
|
+
args[_key] = arguments[_key];
|
|
46
|
+
}
|
|
47
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
48
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
49
|
+
openedTab: '',
|
|
50
|
+
isMobile: false,
|
|
51
|
+
isSidebarExpanded: false
|
|
52
|
+
});
|
|
53
|
+
_defineProperty(_assertThisInitialized(_this), "getActiveTab", function (tabId) {
|
|
54
|
+
var categories = _this.props.categories;
|
|
55
|
+
var activeTabObject = {};
|
|
56
|
+
categories.find(function (category) {
|
|
57
|
+
var subcategories = category.subcategories;
|
|
58
|
+
if (subcategories.length) {
|
|
59
|
+
activeTabObject = subcategories.find(function (subcategory) {
|
|
60
|
+
return subcategory.id === tabId;
|
|
61
|
+
});
|
|
62
|
+
if (activeTabObject) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (category.id === tabId) {
|
|
67
|
+
activeTabObject = category;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
});
|
|
72
|
+
return activeTabObject;
|
|
73
|
+
});
|
|
74
|
+
_defineProperty(_assertThisInitialized(_this), "setDefaultActiveTab", function () {
|
|
75
|
+
var activeCategory = _this.props.activeCategory;
|
|
76
|
+
_this.toggleTab(activeCategory);
|
|
77
|
+
});
|
|
78
|
+
_defineProperty(_assertThisInitialized(_this), "toggleTab", function (tabId) {
|
|
79
|
+
var openedTab = _this.state.openedTab;
|
|
80
|
+
if (openedTab === tabId) {
|
|
81
|
+
_this.setState({
|
|
82
|
+
openedTab: ''
|
|
83
|
+
});
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
_this.setState({
|
|
87
|
+
openedTab: tabId
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
_defineProperty(_assertThisInitialized(_this), "toggleSidebar", function () {
|
|
91
|
+
_this.setState(function (prevState) {
|
|
92
|
+
return {
|
|
93
|
+
isSidebarExpanded: !prevState.isSidebarExpanded
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
_defineProperty(_assertThisInitialized(_this), "onResize", function () {
|
|
98
|
+
clearTimeout(_this.timeout);
|
|
99
|
+
_this.timeout = setTimeout(_this.onResizeTimeout, 200);
|
|
100
|
+
});
|
|
101
|
+
_defineProperty(_assertThisInitialized(_this), "onResizeTimeout", function () {
|
|
102
|
+
_this.setState({
|
|
103
|
+
isMobile: _this.checkIsMobile()
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
_defineProperty(_assertThisInitialized(_this), "checkIsMobile", function () {
|
|
107
|
+
return !window.matchMedia((0, _rwd.getMedia)('Medium')).matches;
|
|
108
|
+
});
|
|
109
|
+
_defineProperty(_assertThisInitialized(_this), "navigateToSubcategory", function (subcategoryId) {
|
|
110
|
+
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
111
|
+
var _this$props = _this.props,
|
|
112
|
+
categories = _this$props.categories,
|
|
113
|
+
items = _this$props.items;
|
|
114
|
+
navigate("/learn-more/".concat(subcategoryId), {
|
|
115
|
+
state: {
|
|
116
|
+
learnMore: {
|
|
117
|
+
categories: categories,
|
|
118
|
+
items: items
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
return _this;
|
|
124
|
+
}
|
|
125
|
+
_createClass(LearnMore, [{
|
|
126
|
+
key: "componentDidMount",
|
|
127
|
+
value: function componentDidMount() {
|
|
128
|
+
this.setDefaultActiveTab();
|
|
129
|
+
window.addEventListener('resize', this.onResize);
|
|
130
|
+
this.onResizeTimeout();
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
key: "componentWillUnmount",
|
|
134
|
+
value: function componentWillUnmount() {
|
|
135
|
+
window.removeEventListener('resize', this.onResize);
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
key: "render",
|
|
139
|
+
value: function render() {
|
|
140
|
+
var _this2 = this;
|
|
141
|
+
var _this$props2 = this.props,
|
|
142
|
+
activeItem = _this$props2.activeItem,
|
|
143
|
+
items = _this$props2.items,
|
|
144
|
+
categories = _this$props2.categories,
|
|
145
|
+
onMarkComplete = _this$props2.onMarkComplete;
|
|
146
|
+
var _this$state = this.state,
|
|
147
|
+
openedTab = _this$state.openedTab,
|
|
148
|
+
isMobile = _this$state.isMobile,
|
|
149
|
+
isSidebarExpanded = _this$state.isSidebarExpanded;
|
|
150
|
+
var activeTabObject = this.getActiveTab(activeItem) || {};
|
|
151
|
+
var activeItemObject = items.find(function (post) {
|
|
152
|
+
return post.id === activeItem;
|
|
153
|
+
});
|
|
154
|
+
return /*#__PURE__*/_react.default.createElement(_LearnMore.Container, null, /*#__PURE__*/_react.default.createElement(_Grid.Row, {
|
|
155
|
+
nowrap: true
|
|
156
|
+
}, isMobile && /*#__PURE__*/_react.default.createElement(_LearnMore.MobileMenuToggler, {
|
|
157
|
+
isActive: isSidebarExpanded,
|
|
158
|
+
onClick: this.toggleSidebar
|
|
159
|
+
}, /*#__PURE__*/_react.default.createElement("span", null), /*#__PURE__*/_react.default.createElement("span", null), /*#__PURE__*/_react.default.createElement("span", null)), /*#__PURE__*/_react.default.createElement(_LearnMore.SidebarColumn, {
|
|
160
|
+
part: 6,
|
|
161
|
+
isExpanded: isSidebarExpanded
|
|
162
|
+
}, /*#__PURE__*/_react.default.createElement(_ComponentScroll.default, {
|
|
163
|
+
autoHeight: true,
|
|
164
|
+
autoHeightMin: "100vh",
|
|
165
|
+
autoHeightMax: "100vh"
|
|
166
|
+
}, /*#__PURE__*/_react.default.createElement(_LearnMore.TitleContainer, null, /*#__PURE__*/_react.default.createElement(_LearnMore.SidebarHeading, null, "INVESTING 101"), /*#__PURE__*/_react.default.createElement(_LearnMore.SidebarTitle, null, "LEARN MORE ABOUT INVESTING"), /*#__PURE__*/_react.default.createElement(_BackButton.default, {
|
|
167
|
+
to: "/"
|
|
168
|
+
}, "Back to previous page")), /*#__PURE__*/_react.default.createElement(_TabsNav.default, {
|
|
169
|
+
activeTab: activeItem
|
|
170
|
+
}, categories.map(function (category) {
|
|
171
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
|
|
172
|
+
key: category.id
|
|
173
|
+
}, /*#__PURE__*/_react.default.createElement(_LearnMore.TabNav, {
|
|
174
|
+
borderTop: true,
|
|
175
|
+
tabId: category.id,
|
|
176
|
+
isActive: category.subcategories.some(function (subcategory) {
|
|
177
|
+
return subcategory.id === activeItem;
|
|
178
|
+
}),
|
|
179
|
+
complete: category.complete,
|
|
180
|
+
onClick: function onClick() {
|
|
181
|
+
return _this2.toggleTab(category.id);
|
|
182
|
+
}
|
|
183
|
+
}, /*#__PURE__*/_react.default.createElement(_LearnMore.TabArrow, {
|
|
184
|
+
isActive: openedTab === category.id
|
|
185
|
+
}), category.title, /*#__PURE__*/_react.default.createElement(_LearnMoreShared.CompleteMarkTooltip, {
|
|
186
|
+
disabled: !category.tooltip,
|
|
187
|
+
position: "right center",
|
|
188
|
+
content: category.tooltip,
|
|
189
|
+
trigger: /*#__PURE__*/_react.default.createElement(_LearnMoreShared.CompleteMarkContainer, {
|
|
190
|
+
inProgress: category.inProgress,
|
|
191
|
+
complete: category.complete
|
|
192
|
+
}, /*#__PURE__*/_react.default.createElement(_LearnMoreShared.CompleteMark, null))
|
|
193
|
+
})), /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
194
|
+
isOpened: openedTab === category.id
|
|
195
|
+
}, category.subcategories.map(function (subcategory) {
|
|
196
|
+
return /*#__PURE__*/_react.default.createElement(_LearnMore.SubTabNav, {
|
|
197
|
+
key: subcategory.id,
|
|
198
|
+
tabId: subcategory.id,
|
|
199
|
+
isActive: activeItem === subcategory.id,
|
|
200
|
+
onClick: function onClick() {
|
|
201
|
+
return _this2.navigateToSubcategory(subcategory.id);
|
|
202
|
+
}
|
|
203
|
+
}, subcategory.title, /*#__PURE__*/_react.default.createElement(_LearnMoreShared.CompleteMarkTooltip, {
|
|
204
|
+
disabled: !subcategory.tooltip,
|
|
205
|
+
position: "right center",
|
|
206
|
+
content: subcategory.tooltip,
|
|
207
|
+
trigger: /*#__PURE__*/_react.default.createElement(_LearnMoreShared.CompleteMarkContainer, {
|
|
208
|
+
inProgress: subcategory.inProgress,
|
|
209
|
+
complete: subcategory.complete
|
|
210
|
+
}, /*#__PURE__*/_react.default.createElement(_LearnMoreShared.CompleteMark, null))
|
|
211
|
+
}));
|
|
212
|
+
})));
|
|
213
|
+
})))), /*#__PURE__*/_react.default.createElement(_LearnMore.ContentColumn, {
|
|
214
|
+
part: 16
|
|
215
|
+
}, activeItemObject && /*#__PURE__*/_react.default.createElement(_LearnMoreItem.default, {
|
|
216
|
+
postItem: activeItemObject,
|
|
217
|
+
activeTabObject: activeTabObject,
|
|
218
|
+
onMarkComplete: onMarkComplete
|
|
219
|
+
}))));
|
|
220
|
+
}
|
|
221
|
+
}]);
|
|
222
|
+
return LearnMore;
|
|
223
|
+
}(_react.PureComponent);
|
|
224
|
+
exports.LearnMore = LearnMore;
|
|
225
|
+
var learnMoreCategoryPropTypes = {
|
|
226
|
+
title: _propTypes.default.string.isRequired,
|
|
227
|
+
inProgress: _propTypes.default.bool,
|
|
228
|
+
complete: _propTypes.default.bool,
|
|
229
|
+
tooltip: _propTypes.default.node
|
|
230
|
+
};
|
|
231
|
+
exports.learnMoreCategoryPropTypes = learnMoreCategoryPropTypes;
|
|
232
|
+
var learnMorePostPropTypes = {
|
|
233
|
+
id: _propTypes.default.string.isRequired,
|
|
234
|
+
title: _propTypes.default.string.isRequired,
|
|
235
|
+
excerpt: _propTypes.default.string.isRequired,
|
|
236
|
+
content: _propTypes.default.string.isRequired,
|
|
237
|
+
postType: _propTypes.default.oneOf(['video', 'text']),
|
|
238
|
+
cover: _propTypes.default.string,
|
|
239
|
+
videoSrc: _propTypes.default.string
|
|
240
|
+
};
|
|
241
|
+
exports.learnMorePostPropTypes = learnMorePostPropTypes;
|
|
242
|
+
LearnMore.propTypes = {
|
|
243
|
+
items: _propTypes.default.arrayOf(_propTypes.default.shape(learnMorePostPropTypes)).isRequired,
|
|
244
|
+
categories: _propTypes.default.arrayOf(_propTypes.default.shape(_objectSpread(_objectSpread({}, learnMoreCategoryPropTypes), {}, {
|
|
245
|
+
subcategories: _propTypes.default.arrayOf(_propTypes.default.shape(learnMoreCategoryPropTypes))
|
|
246
|
+
}))).isRequired,
|
|
247
|
+
onMarkComplete: _propTypes.default.func,
|
|
248
|
+
activeCategory: _propTypes.default.string.isRequired,
|
|
249
|
+
activeItem: _propTypes.default.string.isRequired
|
|
250
|
+
};
|
|
251
|
+
LearnMore.defaultProps = {
|
|
252
|
+
onMarkComplete: function onMarkComplete() {}
|
|
253
|
+
};
|
|
254
|
+
var _default = LearnMore;
|
|
255
|
+
exports.default = _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.CompleteMarkTooltip = exports.CompleteMarkContainer = exports.CompleteMark = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _semanticUiReact = require("semantic-ui-react");
|
|
10
|
+
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
11
|
+
var _templateObject, _templateObject2;
|
|
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 CompleteMark = _styledComponents.default.i.attrs({
|
|
17
|
+
className: 'ion ion-md-checkmark'
|
|
18
|
+
}).withConfig({
|
|
19
|
+
displayName: "LearnMoresharedstyles__CompleteMark",
|
|
20
|
+
componentId: "sc-17qnhrh-0"
|
|
21
|
+
})(["margin:auto;"]);
|
|
22
|
+
exports.CompleteMark = CompleteMark;
|
|
23
|
+
var CompleteMarkContainer = _styledComponents.default.div.withConfig({
|
|
24
|
+
displayName: "LearnMoresharedstyles__CompleteMarkContainer",
|
|
25
|
+
componentId: "sc-17qnhrh-1"
|
|
26
|
+
})(["width:20px;height:20px;border-radius:50%;display:flex;border:1px dotted ", ";margin-left:auto;", "{display:none;}", " ", " ", ""], function (props) {
|
|
27
|
+
return _theme.default.cLightGrey;
|
|
28
|
+
}, CompleteMark, function (props) {
|
|
29
|
+
return props.inProgress && "\n border-style: solid;\n border-color: ".concat(_theme.default.cLighterGreen, ";\n ");
|
|
30
|
+
}, function (props) {
|
|
31
|
+
return props.complete && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-style: solid;\n border-color: ", ";\n background: ", ";\n\n ", " {\n display: block;\n color: ", ";\n }\n "])), _theme.default.cLighterGreen, _theme.default.cLighterGreen, CompleteMark, _theme.default.cDarkGreen);
|
|
32
|
+
}, function (props) {
|
|
33
|
+
return props.large && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 40px;\n height: 40px;\n\n ", " {\n font-size: 2em;\n }\n "])), CompleteMark);
|
|
34
|
+
});
|
|
35
|
+
exports.CompleteMarkContainer = CompleteMarkContainer;
|
|
36
|
+
var CompleteMarkTooltip = (0, _styledComponents.default)(_semanticUiReact.Popup).withConfig({
|
|
37
|
+
displayName: "LearnMoresharedstyles__CompleteMarkTooltip",
|
|
38
|
+
componentId: "sc-17qnhrh-2"
|
|
39
|
+
})(["margin-left:auto;padding-left:8px;"]);
|
|
40
|
+
exports.CompleteMarkTooltip = CompleteMarkTooltip;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.LearnMoreDefault = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _LearnMore = require("./LearnMore");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
11
|
+
var _default = {
|
|
12
|
+
title: 'Components Library/LearnMorePage/LearnMore',
|
|
13
|
+
component: _LearnMore.LearnMore,
|
|
14
|
+
argTypes: {
|
|
15
|
+
items: {
|
|
16
|
+
type: 'array of shape',
|
|
17
|
+
defaultValue: [],
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
categories: {
|
|
21
|
+
type: 'array of shape',
|
|
22
|
+
defaultValue: [],
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
subcategories: {
|
|
26
|
+
type: 'array of shape',
|
|
27
|
+
defaultValue: [],
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
onMarkComplete: {
|
|
31
|
+
type: 'function'
|
|
32
|
+
},
|
|
33
|
+
activeCategory: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
defaultValue: '',
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
activeItem: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
defaultValue: '',
|
|
41
|
+
required: true
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.default = _default;
|
|
46
|
+
var Template = function Template(args) {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_LearnMore.LearnMore, args);
|
|
48
|
+
};
|
|
49
|
+
var LearnMoreDefault = Template.bind({});
|
|
50
|
+
exports.LearnMoreDefault = LearnMoreDefault;
|
|
51
|
+
LearnMoreDefault.args = {};
|
|
@@ -0,0 +1,120 @@
|
|
|
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.TitleContainer = exports.TabTitle = exports.TabNav = exports.TabArrow = exports.SubTabNav = exports.SidebarTitle = exports.SidebarHeading = exports.SidebarColumn = exports.MobileMenuToggler = exports.ContentColumn = exports.Container = exports.Arrow = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
10
|
+
var _TabsNav = require("../TabsNav/TabsNav.styles");
|
|
11
|
+
var _rwd = _interopRequireDefault(require("../../styles/rwd"));
|
|
12
|
+
var _Grid = require("../Grid/Grid.styles");
|
|
13
|
+
var _BackButton = require("../BackButton/BackButton.styles");
|
|
14
|
+
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
15
|
+
var _spacing = _interopRequireDefault(require("../../styles/spacing"));
|
|
16
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "LearnMorestyles__Container",
|
|
23
|
+
componentId: "sc-1sdxbx5-0"
|
|
24
|
+
})(["width:100%;overflow:hidden;", "{padding:0 !important;}", "{border-bottom:none;}"], _TabsNav.TabsWrapper, _TabsNav.StyledTabs);
|
|
25
|
+
exports.Container = Container;
|
|
26
|
+
var TabArrow = _styledComponents.default.i.attrs({
|
|
27
|
+
className: 'ion ion-ios-arrow-forward'
|
|
28
|
+
}).withConfig({
|
|
29
|
+
displayName: "LearnMorestyles__TabArrow",
|
|
30
|
+
componentId: "sc-1sdxbx5-1"
|
|
31
|
+
})(["color:", ";margin-right:6px;transition:0.3s transform;", ""], function (props) {
|
|
32
|
+
return _theme.default.cWarning;
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return props.isActive === true && "\n transform: rotate(90deg);\n ";
|
|
35
|
+
});
|
|
36
|
+
exports.TabArrow = TabArrow;
|
|
37
|
+
var TitleContainer = (0, _styledComponents.default)(_ComponentWrapper.default).withConfig({
|
|
38
|
+
displayName: "LearnMorestyles__TitleContainer",
|
|
39
|
+
componentId: "sc-1sdxbx5-2"
|
|
40
|
+
})(["display:flex;flex-direction:column;", " ", " ", "{color:", ";text-transform:uppercase;}", "{color:", ";}"], _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 64px;\n "]))), _rwd.default.Large(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-right: 96px;\n "]))), _BackButton.StyledBackButton, function (props) {
|
|
41
|
+
return _theme.default.cPrimary;
|
|
42
|
+
}, _BackButton.BackButtonIcon, function (props) {
|
|
43
|
+
return _theme.default.cPrimary;
|
|
44
|
+
});
|
|
45
|
+
exports.TitleContainer = TitleContainer;
|
|
46
|
+
var TabTitle = _styledComponents.default.div.withConfig({
|
|
47
|
+
displayName: "LearnMorestyles__TabTitle",
|
|
48
|
+
componentId: "sc-1sdxbx5-3"
|
|
49
|
+
})(["padding:42px 36px;display:flex;justify-content:space-between;font-weight:700;text-transform:uppercase;position:relative;font-size:11px;line-height:20px;letter-spacing:0.6px;"]);
|
|
50
|
+
exports.TabTitle = TabTitle;
|
|
51
|
+
var Arrow = _styledComponents.default.i.attrs({
|
|
52
|
+
className: 'ion ion-ios-arrow-right'
|
|
53
|
+
}).withConfig({
|
|
54
|
+
displayName: "LearnMorestyles__Arrow",
|
|
55
|
+
componentId: "sc-1sdxbx5-4"
|
|
56
|
+
})(["&&&{position:absolute;top:50%;right:32px;transition:0.3s transform;transform:rotate(0);text-align:center;font-size:16px;line-height:16px;height:16px;margin-top:-8px;", "}"], function (props) {
|
|
57
|
+
return props.isOpened && "\n transform: rotate(-90deg);\n ";
|
|
58
|
+
});
|
|
59
|
+
exports.Arrow = Arrow;
|
|
60
|
+
var SubTabNav = (0, _styledComponents.default)(_ComponentWrapper.default).withConfig({
|
|
61
|
+
displayName: "LearnMorestyles__SubTabNav",
|
|
62
|
+
componentId: "sc-1sdxbx5-5"
|
|
63
|
+
})(["display:flex;align-items:center;font-size:10px;cursor:pointer;transition:0.3s background;background:", ";&::before{content:'';display:none;position:absolute;top:52px;bottom:-32px;right:42px;z-index:1;width:0;border-left:1px dotted ", ";transform:translateX(50%);", " ", "}&:last-child::before{display:none;}", ""], function (props) {
|
|
64
|
+
return _theme.default.cWhite;
|
|
65
|
+
}, function (props) {
|
|
66
|
+
return _theme.default.cLightGrey;
|
|
67
|
+
}, _rwd.default.Medium(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n "]))), _rwd.default.Large(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n right: 74px;\n "]))), function (props) {
|
|
68
|
+
return props.isActive && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-weight: 700;\n background: ", ";\n "])), _theme.default.cGrey);
|
|
69
|
+
});
|
|
70
|
+
exports.SubTabNav = SubTabNav;
|
|
71
|
+
var TabNav = (0, _styledComponents.default)(_ComponentWrapper.default).withConfig({
|
|
72
|
+
displayName: "LearnMorestyles__TabNav",
|
|
73
|
+
componentId: "sc-1sdxbx5-6"
|
|
74
|
+
})(["display:flex;align-items:center;font-size:12px;font-weight:700;letter-spacing:0.4px;text-transform:uppercase;cursor:pointer;&:last-child{border-bottom:1px solid ", ";}", " + div ", "::before{", "}"], function (props) {
|
|
75
|
+
return _theme.default.cLightGrey;
|
|
76
|
+
}, function (props) {
|
|
77
|
+
return props.isActive && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n &::before {\n content: '';\n width: 8px;\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n background: ", ";\n }\n "])), _theme.default.cWarning);
|
|
78
|
+
}, SubTabNav, function (props) {
|
|
79
|
+
return props.complete && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n border-color: ", ";\n border-left-style: solid;\n "])), _theme.default.cLighterGreen);
|
|
80
|
+
});
|
|
81
|
+
exports.TabNav = TabNav;
|
|
82
|
+
var SidebarColumn = (0, _styledComponents.default)(_Grid.Column).withConfig({
|
|
83
|
+
displayName: "LearnMorestyles__SidebarColumn",
|
|
84
|
+
componentId: "sc-1sdxbx5-7"
|
|
85
|
+
})(["max-width:300px;position:fixed;background:", ";z-index:10000;border-right:1px solid ", ";top:0;padding-top:48px;transition:0.3s transform;transform:translateX(-100%);", " ", " ", ""], function (props) {
|
|
86
|
+
return _theme.default.cWhite;
|
|
87
|
+
}, function (props) {
|
|
88
|
+
return _theme.default.cLightGrey;
|
|
89
|
+
}, function (props) {
|
|
90
|
+
return props.isExpanded && 'transform: translateX(0);';
|
|
91
|
+
}, _rwd.default.Medium(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n transform: translateX(0);\n max-width: 300px;\n padding-top: ", "px;\n "])), function (props) {
|
|
92
|
+
return _spacing.default.headerHeight;
|
|
93
|
+
}), _rwd.default.Large(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n max-width: 400px;\n "]))));
|
|
94
|
+
exports.SidebarColumn = SidebarColumn;
|
|
95
|
+
var ContentColumn = (0, _styledComponents.default)(_Grid.Column).withConfig({
|
|
96
|
+
displayName: "LearnMorestyles__ContentColumn",
|
|
97
|
+
componentId: "sc-1sdxbx5-8"
|
|
98
|
+
})(["", " ", ""], _rwd.default.Medium(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: 300px;\n "]))), _rwd.default.Large(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-left: 400px;\n "]))));
|
|
99
|
+
exports.ContentColumn = ContentColumn;
|
|
100
|
+
var SidebarTitle = _styledComponents.default.h3.withConfig({
|
|
101
|
+
displayName: "LearnMorestyles__SidebarTitle",
|
|
102
|
+
componentId: "sc-1sdxbx5-9"
|
|
103
|
+
})(["font-family:'Open Sans';font-size:20px;line-height:24px;font-weight:700;margin-bottom:20px;"]);
|
|
104
|
+
exports.SidebarTitle = SidebarTitle;
|
|
105
|
+
var SidebarHeading = _styledComponents.default.div.withConfig({
|
|
106
|
+
displayName: "LearnMorestyles__SidebarHeading",
|
|
107
|
+
componentId: "sc-1sdxbx5-10"
|
|
108
|
+
})(["font-size:12px;letter-spacing:0.4px;font-weight:600;margin-bottom:16px;"]);
|
|
109
|
+
exports.SidebarHeading = SidebarHeading;
|
|
110
|
+
var MobileMenuToggler = _styledComponents.default.div.withConfig({
|
|
111
|
+
displayName: "LearnMorestyles__MobileMenuToggler",
|
|
112
|
+
componentId: "sc-1sdxbx5-11"
|
|
113
|
+
})(["display:block;width:48px;height:48px;position:fixed;top:0;left:0;background:", ";z-index:10001;", " span{display:block;width:16px;height:2px;position:absolute;top:50%;left:50%;margin-top:-1px;margin-left:-8px;background-color:", ";transition:background-color 0.4s,transform 0.4s;&:nth-child(1){transform:translateY(-6px);}&:nth-child(3){transform:translateY(6px);}}", ""], function (props) {
|
|
114
|
+
return _theme.default.cWhite;
|
|
115
|
+
}, _rwd.default.Medium(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: none;\n "]))), function (props) {
|
|
116
|
+
return _theme.default.cText;
|
|
117
|
+
}, function (props) {
|
|
118
|
+
return props.isActive && "\n span {\n background-color: ".concat(_theme.default.cPrimary, ";\n\n &:nth-child(1) {\n transform: translateY(0) rotate(135deg);\n }\n\n &:nth-child(2) {\n transform: scaleX(0);\n }\n\n &:nth-child(3) {\n transform: translateY(0) rotate(-135deg);\n }\n }\n ");
|
|
119
|
+
});
|
|
120
|
+
exports.MobileMenuToggler = MobileMenuToggler;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.LearnMoreExampleObject = void 0;
|
|
7
|
+
var _whales = _interopRequireDefault(require("../../static/images/whales.png"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var LearnMoreExampleObject = {
|
|
10
|
+
categories: [{
|
|
11
|
+
id: 'category1',
|
|
12
|
+
title: 'Category 1',
|
|
13
|
+
inProgress: false,
|
|
14
|
+
complete: false,
|
|
15
|
+
tooltip: 'Example tooltip',
|
|
16
|
+
subcategories: [{
|
|
17
|
+
id: 'category11',
|
|
18
|
+
title: 'Category 1.1',
|
|
19
|
+
inProgress: false,
|
|
20
|
+
complete: false,
|
|
21
|
+
tooltip: 'Reading time: 2min'
|
|
22
|
+
}]
|
|
23
|
+
}, {
|
|
24
|
+
id: 'category2',
|
|
25
|
+
title: 'Category 2',
|
|
26
|
+
inProgress: true,
|
|
27
|
+
complete: false,
|
|
28
|
+
subcategories: [{
|
|
29
|
+
id: 'category21',
|
|
30
|
+
title: 'Category 2.1',
|
|
31
|
+
inProgress: true,
|
|
32
|
+
complete: false,
|
|
33
|
+
tooltip: 'Reading time: 2min'
|
|
34
|
+
}, {
|
|
35
|
+
id: 'category22',
|
|
36
|
+
title: 'Category 2.2',
|
|
37
|
+
inProgress: false,
|
|
38
|
+
complete: true
|
|
39
|
+
}]
|
|
40
|
+
}, {
|
|
41
|
+
id: 'category3',
|
|
42
|
+
title: 'Category 3',
|
|
43
|
+
inProgress: false,
|
|
44
|
+
complete: false,
|
|
45
|
+
subcategories: [{
|
|
46
|
+
id: 'category31',
|
|
47
|
+
title: 'Category 3.1',
|
|
48
|
+
inProgress: false,
|
|
49
|
+
complete: false,
|
|
50
|
+
tooltip: 'Reading time: 2min'
|
|
51
|
+
}]
|
|
52
|
+
}],
|
|
53
|
+
items: [{
|
|
54
|
+
id: 'category11',
|
|
55
|
+
title: 'Making invisible people visible again!',
|
|
56
|
+
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
57
|
+
content: '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>',
|
|
58
|
+
postType: 'video',
|
|
59
|
+
videoSrc: '',
|
|
60
|
+
cover: _whales.default
|
|
61
|
+
}, {
|
|
62
|
+
id: 'category21',
|
|
63
|
+
title: 'Get a 21 tast of token investing',
|
|
64
|
+
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
65
|
+
content: '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><h4>Lorem ipsum dolor</h4><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>',
|
|
66
|
+
postType: 'video',
|
|
67
|
+
videoSrc: '',
|
|
68
|
+
cover: _whales.default
|
|
69
|
+
}, {
|
|
70
|
+
id: 'category22',
|
|
71
|
+
title: 'Get a 22 tast of token investing',
|
|
72
|
+
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
73
|
+
content: "\n <h5>Our vision</h5>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <h5>Our vision list</h5>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <ul>\n <li>List item 1</li>\n <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et</li>\n </ul>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <img src=\"".concat(_whales.default, "\" alt=\"\" />\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n "),
|
|
74
|
+
postType: 'text',
|
|
75
|
+
cover: _whales.default
|
|
76
|
+
}, {
|
|
77
|
+
id: 'category31',
|
|
78
|
+
title: 'Get a 3 tast of token investing',
|
|
79
|
+
excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
80
|
+
content: "\n <h5>Our vision</h5>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <h5>Our vision list</h5>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <ul>\n <li>List item 1</li>\n <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et</li>\n </ul>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n <img src=\"".concat(_whales.default, "\" alt=\"\" />\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n "),
|
|
81
|
+
postType: 'text',
|
|
82
|
+
cover: _whales.default
|
|
83
|
+
}]
|
|
84
|
+
};
|
|
85
|
+
exports.LearnMoreExampleObject = LearnMoreExampleObject;
|
|
86
|
+
var _default = LearnMoreExampleObject;
|
|
87
|
+
exports.default = _default;
|