@stokr/components-library 0.5.4 → 0.5.5
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/build/asset-manifest.json +9 -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/js/main.31d6cfe0.js +0 -0
- package/dist/AccountBalance/AccountBalance.js +43 -0
- package/dist/AccountBalance/AccountBalance.stories.js +75 -0
- package/dist/AccountBalance/AccountBalance.styles.js +38 -0
- package/dist/AdminDashboard/Table/Table.js +120 -0
- package/dist/AdminDashboard/Table/Table.styles.js +111 -0
- package/dist/AgreementItem/AgreementItem.js +38 -0
- package/dist/AgreementItem/AgreementItem.stories.js +98 -0
- package/dist/AgreementItem/AgreementItem.styles.js +31 -0
- package/dist/AnalyticGraphs/Analytic.js +528 -0
- package/dist/AnalyticGraphs/Analytic.styles.js +49 -0
- package/dist/BackButton/BackButton.js +22 -0
- package/dist/BackButton/BackButton.stories.js +24 -0
- package/dist/BackButton/BackButton.styles.js +110 -0
- package/dist/Background/Background.js +34 -0
- package/dist/Background/Background.stories.js +50 -0
- package/dist/Background/Background.styles.js +113 -0
- package/dist/BarChart/BarChart.js +258 -0
- package/dist/BarChart/BarChart.stories.js +46 -0
- package/dist/BarChart/BarChart.styles.js +93 -0
- package/dist/BarChartLegend/BarChartLegend.js +74 -0
- package/dist/BarChartLegend/BarChartLegend.styles.js +26 -0
- package/dist/BasicTable/BasicTable.js +20 -0
- package/dist/BasicTable/BasicTable.stories.js +51 -0
- package/dist/BasicTable/BasicTable.styles.js +64 -0
- package/dist/Button/Button.stories.js +63 -0
- package/dist/Button/Button.styles.js +180 -0
- package/dist/ButtonContainer/ButtonContainer.styles.js +25 -0
- package/dist/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +35 -0
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.js +23 -0
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +36 -0
- package/dist/ChartBox/ChartBox.js +34 -0
- package/dist/ChartBox/ChartBox.stories.js +9 -0
- package/dist/ChartBox/ChartBox.styles.js +50 -0
- package/dist/ChartBox/ChartBoxDistribution.js +20 -0
- package/dist/ChartBox/ChartBoxDistribution.stories.js +10 -0
- package/dist/ChartLegend/ChartLegend.js +37 -0
- package/dist/ChartLegend/ChartLegend.stories.js +74 -0
- package/dist/ChartLegend/ChartLegend.styles.js +67 -0
- package/dist/Checkbox/Checkbox.js +108 -0
- package/dist/Checkbox/Checkbox.stories.js +82 -0
- package/dist/Checkbox/Checkbox.styles.js +123 -0
- package/dist/Checklist/UserChecklist.js +247 -0
- package/dist/Checklist/UserChecklist.stories.js +115 -0
- package/dist/ComponentScroll/ComponentScroll.js +99 -0
- package/dist/ComponentScroll/ComponentScroll.stories.js +92 -0
- package/dist/ComponentScroll/ComponentScroll.styles.js +104 -0
- package/dist/ComponentWrapper/ComponentWrapper.styles.js +128 -0
- package/dist/CryptoAddress/ComponentWrap.js +24 -0
- package/dist/CryptoAddress/CryptoAddress.js +124 -0
- package/dist/CryptoAddress/CryptoAddress.stories.js +163 -0
- package/dist/CryptoAddress/CryptoAddress.styles.js +399 -0
- package/dist/CryptoAddress/RadioWrap.js +36 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.js +42 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.stories.js +65 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.styles.js +114 -0
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.js +30 -0
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +98 -0
- package/dist/DonutChart/DonutChart.js +137 -0
- package/dist/DonutChart/DonutChart.stories.js +39 -0
- package/dist/DonutChart/DonutChart.styles.js +101 -0
- package/dist/DoubleButton/DoubleButton.styles.js +25 -0
- package/dist/ErrorMessage/ErrorMessage.styles.js +9 -0
- package/dist/FAQ/FAQ.js +40 -0
- package/dist/FAQ/FAQ.stories.js +63 -0
- package/dist/FAQ/FAQ.styles.js +69 -0
- package/dist/Footer/Footer.js +54 -0
- package/dist/Footer/Footer.stories.js +41 -0
- package/dist/Footer/Footer.styles.js +230 -0
- package/dist/Footer/FooterLayout.js +114 -0
- package/dist/Footer/FooterLayout.stories.js +20 -0
- package/dist/Footer/FooterMenu.js +83 -0
- package/dist/Footer/FooterMenu.stories.js +110 -0
- package/dist/Footer/FooterMenu.styles.js +274 -0
- package/dist/Footer/index.js +4 -0
- package/dist/{03f9f978feb2b015b6812ba10f689967.png → Footer/lemonway.png} +0 -0
- package/dist/Footer/sicos-logo.svg +1 -0
- package/dist/ForgotPasswordModal/ForgotPasswordModal.js +89 -0
- package/dist/ForgotPasswordModal/ForgotPasswordModal.stories.js +31 -0
- package/dist/Form/Form.js +38 -0
- package/dist/Form/Form.stories.js +24 -0
- package/dist/Form/Form.styles.js +66 -0
- package/dist/FullscreenCard/FullscreenCard.styles.js +36 -0
- package/dist/Grid/Grid.styles.js +109 -0
- package/dist/Header/Header.js +369 -0
- package/dist/Header/Header.stories.js +172 -0
- package/dist/Header/Header.styles.js +493 -0
- package/dist/Icon/Icon.style.js +75 -0
- package/dist/InfoIcon/InfoIcon.js +40 -0
- package/dist/InfoIcon/InfoIcon.stories.js +40 -0
- package/dist/InfoIcon/InfoIcon.styles.js +42 -0
- package/dist/InfoPanel/InfoPanel.js +115 -0
- package/dist/Input/DatePickerInput.js +64 -0
- package/dist/Input/DatePickerInput.stories.js +80 -0
- package/dist/Input/DatePickerInput.styles.js +67 -0
- package/dist/Input/Input.js +86 -0
- package/dist/Input/Input.stories.js +134 -0
- package/dist/Input/Input.styles.js +126 -0
- package/dist/Input/InputPassword.js +122 -0
- package/dist/Input/InputPassword.stories.js +72 -0
- package/dist/Input/InputPassword.styles.js +139 -0
- package/dist/Input/RangeInput.js +46 -0
- package/dist/Input/RangeInput.stories.js +48 -0
- package/dist/Input/RangeInput.styles.js +125 -0
- package/dist/Input/Select.js +130 -0
- package/dist/Input/Select.stories.js +129 -0
- package/dist/Input/Select.styles.js +143 -0
- package/dist/InvestCalculator/InvestCalculator.js +353 -0
- package/dist/InvestCalculator/InvestCalculator.stories.js +129 -0
- package/dist/InvestCalculator/InvestCalculator.styles.js +78 -0
- package/dist/InvestmentStat/InvestmentStat.js +33 -0
- package/dist/InvestmentStat/InvestmentStat.stories.js +44 -0
- package/dist/InvestmentStat/InvestmentStat.styles.js +53 -0
- package/dist/KYCFlow/BasicInfo.js +396 -0
- package/dist/KYCFlow/Confirmation.js +37 -0
- package/dist/KYCFlow/DocumentFileUpload.js +240 -0
- package/dist/KYCFlow/DocumentScan.js +66 -0
- package/dist/KYCFlow/DocumentScanUpload.js +228 -0
- package/dist/KYCFlow/DocumentSelect.js +101 -0
- package/dist/KYCFlow/DocumentSuccess.js +54 -0
- package/dist/KYCFlow/DocumentUpload.js +44 -0
- package/dist/KYCFlow/DocumentVerificationType.js +114 -0
- package/dist/KYCFlow/FaceScan.js +45 -0
- package/dist/KYCFlow/FaceScanRecognition.js +52 -0
- package/dist/KYCFlow/FaceScanSuccess.js +47 -0
- package/dist/KYCFlow/Terms.js +99 -0
- package/dist/KYCFlow/_styles.js +284 -0
- package/dist/KYCFlow/index.js +14 -0
- package/dist/KYCSelectBox/KYCSelectBox.styles.js +62 -0
- package/dist/LatestUpdate/LatestUpdate.js +35 -0
- package/dist/LatestUpdate/LatestUpdate.stories.js +51 -0
- package/dist/LatestUpdate/LatestUpdate.styles.js +77 -0
- package/dist/Layout/Layout-func-no-work.js +67 -0
- package/dist/Layout/Layout.js +68 -0
- package/dist/Layout/Layout.stories.js +55 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.js +39 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.stories.js +58 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.styles.js +205 -0
- package/dist/LearnMorePage/LearnMore.js +199 -0
- package/dist/LearnMorePage/LearnMore.shared.styles.js +49 -0
- package/dist/LearnMorePage/LearnMore.stories.js +41 -0
- package/dist/LearnMorePage/LearnMore.styles.js +250 -0
- package/dist/LearnMorePage/LearnMoreExampleObject.js +102 -0
- package/dist/LearnMorePage/LearnMoreItem.js +59 -0
- package/dist/LearnMorePage/LearnMoreItem.stories.js +54 -0
- package/dist/LearnMorePage/LearnMoreItem.styles.js +218 -0
- package/dist/LearnMoreSection/LearnMore.js +144 -0
- package/dist/LearnMoreSection/LearnMore.stories.js +23 -0
- package/dist/LearnMoreSection/LearnMore.styles.js +134 -0
- package/dist/LearnMoreSection/LearnMoreItem.js +39 -0
- package/dist/LearnMoreSection/LearnMoreItem.stories.js +52 -0
- package/dist/LearnMoreSection/LearnMoreItem.styles.js +54 -0
- package/dist/LoginModal/LoginModal.js +125 -0
- package/dist/MainMenu/DynamicMainMenu.js +41 -0
- package/dist/MainMenu/MainMenu.js +207 -0
- package/dist/MainMenu/MainMenu.styles.js +361 -0
- package/dist/MatomoConnect/Matomo.js +221 -0
- package/dist/MatomoConnect/Matomo_fuckup.js +185 -0
- package/dist/MenuNav/MenuNav.styles.js +88 -0
- package/dist/Modal/Modal.js +71 -0
- package/dist/Modal/Modal.stories.js +67 -0
- package/dist/Modal/Modal.styles.js +407 -0
- package/dist/MultiProgressBar/MultiProgressBar.js +33 -0
- package/dist/MultiProgressBar/MultiProgressBar.stories.js +61 -0
- package/dist/MultiProgressBar/MultiProgressBar.styles.js +92 -0
- package/dist/Newsletter/Newsletter.js +106 -0
- package/dist/Newsletter/Newsletter.stories.js +8 -0
- package/dist/Newsletter/Newsletter.styles.js +173 -0
- package/dist/NotificationContext/NotificationContext.js +126 -0
- package/dist/NotificationContext/NotificationContext.stories.js +32 -0
- package/dist/NotificationCounter/NotificationCounter.styles.js +23 -0
- package/dist/Number/Number.js +25 -0
- package/dist/Number/Number.stories.js +18 -0
- package/dist/Number/Number.styles.js +21 -0
- package/dist/PageTransition/PageTransition.js +42 -0
- package/dist/Process/Process.stories.js +34 -0
- package/dist/Process/Process.styles.js +87 -0
- package/dist/ProfileBadge/ProfileBadge.js +46 -0
- package/dist/ProfileBadge/ProfileBadge.stories.js +37 -0
- package/dist/ProfileBadge/ProfileBadge.styles.js +47 -0
- package/dist/ProfileBox/ProfileBox.js +29 -0
- package/dist/ProfileBox/ProfileBox.stories.js +27 -0
- package/dist/ProfileBox/ProfileBox.styles.js +60 -0
- package/dist/ProfileHeader/ProfileHeader-CLb4.js +401 -0
- package/dist/ProfileHeader/ProfileHeader.js +268 -0
- package/dist/ProfileHeader/ProfileHeader.styles.js +114 -0
- package/dist/ProfileStat/ProfileStat.js +32 -0
- package/dist/ProfileStat/ProfileStat.stories.js +58 -0
- package/dist/ProfileStat/ProfileStat.styles.js +80 -0
- package/dist/ProofOfAddress/ProofOfAddress.styles.js +76 -0
- package/dist/ROI/ROI.js +261 -0
- package/dist/ROI/ROI.styles.js +71 -0
- package/dist/ROI/ROIChart.js +348 -0
- package/dist/ROI/ROIChart.styles.js +98 -0
- package/dist/ROI/ROIModal.js +74 -0
- package/dist/ROI/ROIScenarioBox.js +46 -0
- package/dist/ROI/ROIScenarioBox.styles.js +131 -0
- package/dist/Radio/Radio.js +58 -0
- package/dist/Radio/Radio.stories.js +65 -0
- package/dist/Radio/Radio.styles.js +93 -0
- package/dist/RefreshButton/RefreshButton.js +14 -0
- package/dist/RefreshButton/RefreshButton.stories.js +31 -0
- package/dist/RefreshButton/RefreshButton.styles.js +57 -0
- package/dist/RegisterAlgorand/AlgoAddressName.js +103 -0
- package/dist/RegisterAlgorand/AlgoAdressSelect.js +274 -0
- package/dist/RegisterAlgorand/AlgoConnectWallet.js +37 -0
- package/dist/RegisterAlgorand/AlgoSuccess.js +28 -0
- package/dist/RegisterAlgorand/Algorand.stories.js +63 -0
- package/dist/RegisterAlgorand/ChooseWallet.js +77 -0
- package/dist/RegisterAlgorand/SelectProject.js +77 -0
- package/dist/RegisterAlgorand/_styles.js +30 -0
- package/dist/RegisterAlgorand/flow.js +243 -0
- package/dist/RegisterAlgorand/flowWithMemo.js +244 -0
- package/dist/RegisterAlgorand/index.js +7 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.js +30 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.stories.js +22 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.styles.js +19 -0
- package/dist/RegisterEthereum/EthAddressLedger.js +151 -0
- package/dist/RegisterEthereum/EthAddressMetamask.js +165 -0
- package/dist/RegisterEthereum/EthAddressName.js +101 -0
- package/dist/RegisterEthereum/EthConnectLedger.js +117 -0
- package/dist/RegisterEthereum/EthConnectMetamask.js +25 -0
- package/dist/RegisterEthereum/EthFinish.js +32 -0
- package/dist/RegisterEthereum/EthIntro.js +77 -0
- package/dist/RegisterEthereum/_styles.js +30 -0
- package/dist/RegisterEthereum/index.js +9 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.js +75 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +65 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +69 -0
- package/dist/RegisterLiquidSteps/assets/nav_green.svg +31 -0
- package/dist/RegisterLiquidSteps/assets/video.mp4 +0 -0
- package/dist/RegisterLiquidSteps/assets/videothumbnail.jpg +0 -0
- package/dist/RegisterLiquidSteps/complete.js +29 -0
- package/dist/RegisterLiquidSteps/flow.js +141 -0
- package/dist/RegisterLiquidSteps/index.js +29 -0
- package/dist/RegisterLiquidSteps/register-liquid.js +197 -0
- package/dist/RegisterModal/RegisterModal.js +143 -0
- package/dist/RegisterModal/RegisterModal.stories.js +35 -0
- package/dist/RequestDataBox/RequestDataBox.js +21 -0
- package/dist/RequestDataBox/RequestDataBox.stories.js +29 -0
- package/dist/RequestDataBox/RequestDataBox.styles.js +40 -0
- package/dist/RiskQuestionnaire/RiskQuestionnaireContext.js +111 -0
- package/dist/RiskQuestionnaire/_styles.js +6 -0
- package/dist/SEO/SEO.js +63 -0
- package/dist/SEO/SEO.stories.js +53 -0
- package/dist/SectionTitle/SectionTitle.styles.js +23 -0
- package/dist/SideLine/SideLine.js +4 -0
- package/dist/SideLine/SideLine.stories.js +20 -0
- package/dist/SideLine/SideLine.styles.js +29 -0
- package/dist/SigningSubflow/SignSubAddressMetamask.js +105 -0
- package/dist/SigningSubflow/SignSubConnectLedger.js +114 -0
- package/dist/SigningSubflow/SignSubConnectMetamask.js +101 -0
- package/dist/SigningSubflow/SignSubIntro.js +45 -0
- package/dist/SigningSubflow/SignSubSendLedger.js +114 -0
- package/dist/SigningSubflow/SignSubSendMetamask.js +53 -0
- package/dist/SigningSubflow/SignSubTransactionLedger.js +125 -0
- package/dist/SigningSubflow/SignSubTransactionMetamask.js +130 -0
- package/dist/SigningSubflow/_styles.js +59 -0
- package/dist/SigningSubflow/index.js +9 -0
- package/dist/Slider/Slider.js +43 -0
- package/dist/Slider/Slider.stories.js +63 -0
- package/dist/Slider/Slider.styles.js +115 -0
- package/dist/SpanButton/SpanButton.styles.js +14 -0
- package/dist/StatusBadge/StatusBadge.styles.js +16 -0
- package/dist/StepController/StepController.js +73 -0
- package/dist/StepController/StepController.stories.js +52 -0
- package/dist/StepController/StepController.styles.js +27 -0
- package/dist/StepController/StepControllerContext.js +61 -0
- package/dist/StepController/StepControllerProgress.js +28 -0
- package/dist/StepController/StepControllerProgress.stories.js +41 -0
- package/dist/StepsProgress/StepsProgress.js +95 -0
- package/dist/StepsProgress/StepsProgress.stories.js +23 -0
- package/dist/StepsProgress/StepsProgress.styles.js +97 -0
- package/dist/StokrLoader/StokrLoader.js +60 -0
- package/dist/StokrLoader/media.js +22 -0
- package/dist/StokrLoader/stokr_loader_white_400x400.gif +0 -0
- package/dist/SvgIcons/AdminBadgeSvg.js +16 -0
- package/dist/SvgIcons/CameraSvg.js +26 -0
- package/dist/SvgIcons/CapsLockSvg.js +21 -0
- package/dist/SvgIcons/DocumentBackSvg.js +25 -0
- package/dist/SvgIcons/DocumentSmallSvg.js +51 -0
- package/dist/SvgIcons/DocumentSvg.js +28 -0
- package/dist/SvgIcons/Early.js +14 -0
- package/dist/SvgIcons/EthSvg.js +30 -0
- package/dist/SvgIcons/EurSvg.js +16 -0
- package/dist/SvgIcons/FaceScanIconSvg.js +21 -0
- package/dist/SvgIcons/FourSvg.js +11 -0
- package/dist/SvgIcons/Glassess.js +19 -0
- package/dist/SvgIcons/Icons_Badge.png +0 -0
- package/dist/SvgIcons/LogoSvg.js +14 -0
- package/dist/SvgIcons/OneSvg.js +13 -0
- package/dist/SvgIcons/PassportSvg.js +46 -0
- package/dist/SvgIcons/RefreshSvg.js +17 -0
- package/dist/SvgIcons/SocialFacebook.js +15 -0
- package/dist/SvgIcons/SocialInstagram.js +15 -0
- package/dist/SvgIcons/SocialLinkedIn.js +15 -0
- package/dist/SvgIcons/SocialMedium.js +15 -0
- package/dist/SvgIcons/SocialReddit.js +15 -0
- package/dist/SvgIcons/SocialTelegram.js +15 -0
- package/dist/SvgIcons/SocialTwitter.js +15 -0
- package/dist/SvgIcons/SocialYoutube.js +15 -0
- package/dist/SvgIcons/ThreeSvg.js +10 -0
- package/dist/SvgIcons/TwoSidedDocumentSvg.js +72 -0
- package/dist/SvgIcons/TwoSvg.js +13 -0
- package/dist/SvgIcons/UpdateDefaultSvg.js +19 -0
- package/dist/SvgIcons/UpdateHardSvg.js +15 -0
- package/dist/SvgIcons/UpdateSoftSvg.js +17 -0
- package/dist/SvgIcons/UploadSvg.js +24 -0
- package/dist/SvgIcons/VerifiedBadge.js +13 -0
- package/dist/SvgIcons/index.js +32 -0
- package/dist/Switch/Switch.js +45 -0
- package/dist/Switch/Switch.stories.js +73 -0
- package/dist/Switch/Switch.styles.js +105 -0
- package/dist/Tabs/Tabs.js +48 -0
- package/dist/Tabs/Tabs.stories.js +28 -0
- package/dist/Tabs/Tabs.styles.js +11 -0
- package/dist/TabsNav/TabNav.js +21 -0
- package/dist/TabsNav/TabNav.stories.js +32 -0
- package/dist/TabsNav/TabsNav.js +23 -0
- package/dist/TabsNav/TabsNav.stories.js +25 -0
- package/dist/TabsNav/TabsNav.styles.js +80 -0
- package/dist/TeamOverview/TeamOverview.js +69 -0
- package/dist/TeamOverview/TeamOverview.stories.js +68 -0
- package/dist/TeamOverview/TeamOverview.styles.js +152 -0
- package/dist/Text/Headline.js +34 -0
- package/dist/Text/Headline.stories.js +40 -0
- package/dist/Text/StyledText.js +30 -0
- package/dist/Text/Text.stories.js +59 -0
- package/dist/Text/Text.styles.js +166 -0
- package/dist/TextLink/TextLink.styles.js +50 -0
- package/dist/ToDoList/ToDoList.js +172 -0
- package/dist/ToDoList/ToDoList.stories.js +123 -0
- package/dist/ToDoList/ToDoList.styles.js +115 -0
- package/dist/ToDoList/ToDoListTask.js +96 -0
- package/dist/ToDoList/ToDoListTask.stories.js +60 -0
- package/dist/ToDoList/ToDoListTask.styles.js +104 -0
- package/dist/TransactionDetails/TransactionDetails.js +27 -0
- package/dist/TransactionDetails/TransactionDetails.stories.js +47 -0
- package/dist/TransactionDetails/TransactionDetails.styles.js +31 -0
- package/dist/TransactionInfo/TransactionInfo.js +48 -0
- package/dist/TransactionInfo/TransactionInfo.stories.js +53 -0
- package/dist/TransactionInfo/TransactionInfo.styles.js +64 -0
- package/dist/TwoFactorModal/TwoFactorModal.js +84 -0
- package/dist/breakdown/Breakdown.js +124 -0
- package/dist/breakdown/index.js +2 -0
- package/dist/context/Auth.js +133 -0
- package/dist/context/AuthContext.js +154 -0
- package/dist/icons/Arrow.js +62 -0
- package/dist/icons/Arrow.stories.js +37 -0
- package/dist/icons/ArrowSimple.js +51 -0
- package/dist/icons/ArrowSimple.stories.js +41 -0
- package/dist/icons/Check.js +29 -0
- package/dist/icons/Check.stories.js +14 -0
- package/dist/icons/Facebook.js +15 -0
- package/dist/icons/Facebook.stories.js +15 -0
- package/dist/icons/Info.js +41 -0
- package/dist/icons/Info.stories.js +8 -0
- package/dist/icons/Instagram.js +15 -0
- package/dist/icons/Instagram.stories.js +15 -0
- package/dist/icons/LinkIcon.js +23 -0
- package/dist/icons/LinkIcon.stories.js +15 -0
- package/dist/icons/LinkedIn.js +29 -0
- package/dist/icons/LinkedIn.stories.js +8 -0
- package/dist/icons/Medium.js +28 -0
- package/dist/icons/Medium.stories.js +8 -0
- package/dist/icons/Reddit.js +18 -0
- package/dist/icons/Reddit.stories.js +15 -0
- package/dist/icons/Share.js +48 -0
- package/dist/icons/Share.stories.js +8 -0
- package/dist/icons/Telegram.js +28 -0
- package/dist/icons/Telegram.stories.js +8 -0
- package/dist/icons/Twitter.js +15 -0
- package/dist/icons/Twitter.stories.js +15 -0
- package/dist/icons/X.js +15 -0
- package/dist/icons/X.stories.js +8 -0
- package/dist/icons/Youtube.js +15 -0
- package/dist/icons/Youtube.stories.js +15 -0
- package/dist/icons/index.js +15 -0
- package/dist/index.js +177 -1
- package/dist/renderToBody/index.js +2 -0
- package/dist/renderToBody/renderToBody.js +26 -0
- package/dist/taxId/TaxId.stories.js +31 -0
- package/dist/taxId/complete.js +21 -0
- package/dist/taxId/flow.js +31 -0
- package/dist/taxId/index.js +4 -0
- package/dist/taxId/register-taxid.js +156 -0
- package/dist/video/Video.js +274 -0
- package/dist/video/Video.stories.js +45 -0
- package/dist/video/img/play-btn.svg +1 -0
- package/dist/video/index.js +2 -0
- package/package.json +128 -133
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/dist/07233f511246c9825a0d58e5ab2641f3.svg +0 -47
- package/dist/08418fc6c324f51f7e56.svg +0 -1
- package/dist/14aa35d4e84aebef77cf00b421fc393a.gif +0 -0
- package/dist/179ef2df02cb0b68c9fd.woff2 +0 -0
- package/dist/21e493d43617de76dbc7.woff2 +0 -0
- package/dist/2640959b1f9381cde047.eot +0 -0
- package/dist/2ba2db4ff86a2663686a100e75b50ba9.png +0 -0
- package/dist/311956ded96d3fd2813d.woff2 +0 -0
- package/dist/39f5961b2d3eb4aa5bf5.woff +0 -0
- package/dist/3caa0d4f9b7d58668066.woff2 +0 -0
- package/dist/4a510354f2f82b59fced805a8e3fe2bf.svg +0 -1
- package/dist/4c3c428d0ce82f840710.woff +0 -0
- package/dist/4e528d6445ca1974c313.woff +0 -0
- package/dist/55053cc0a8e6482eca64.ttf +0 -0
- package/dist/643c37f102b41f7f90c3.woff2 +0 -0
- package/dist/76dd0ed9c3f137513fd4.svg +0 -1
- package/dist/81f3ef07b7952e249da1.woff +0 -0
- package/dist/98b7d3182f652f021bc3.ttf +0 -0
- package/dist/9bea22b57dc165ed4382.ttf +0 -0
- package/dist/9ec738fbb66068dc1ca7.woff +0 -0
- package/dist/a1d7666a48f976227722.ttf +0 -0
- package/dist/a750292d6a0b5a760679.woff +0 -0
- package/dist/b85a961d44cc55c58050cbf7c53dd505.png +0 -0
- package/dist/bcb6531cf820152b7538.ttf +0 -0
- package/dist/c6a4bc1bd034d6303053.woff +0 -0
- package/dist/cbfc24090ef8bacab132.woff2 +0 -0
- package/dist/d2b1865643b98c0e8b54.ttf +0 -0
- package/dist/d97d7385fe8771611848.ttf +0 -0
- package/dist/index.js.LICENSE.txt +0 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import React, { useContext, useState } from 'react';
|
|
2
|
+
import { navigate } from '@reach/router';
|
|
3
|
+
import styled from 'styled-components/macro';
|
|
4
|
+
import { AuthContext } from 'components/AuthConnect/AuthContext';
|
|
5
|
+
import Background from 'components/Background/Background';
|
|
6
|
+
import Text from 'components/Text/Text.styles';
|
|
7
|
+
import Button from 'components/Button/Button.styles';
|
|
8
|
+
import { TextButton } from 'components/TextLink/TextLink.styles';
|
|
9
|
+
import { SpanButton } from 'components/SpanButton/SpanButton.styles';
|
|
10
|
+
import FAQ from 'components/FAQ/FAQ';
|
|
11
|
+
import * as Yup from 'yup';
|
|
12
|
+
import { Formik } from 'formik';
|
|
13
|
+
import Input from 'components/Input/Input';
|
|
14
|
+
import Form, { FormField, FormError } from 'components/Form/Form';
|
|
15
|
+
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
16
|
+
import CryptoAddressWrapper from 'components/CryptoAddressWrapper/CryptoAddressWrapper';
|
|
17
|
+
import RefreshButton from 'components/RefreshButton/RefreshButton';
|
|
18
|
+
import SectionTitle from 'components/SectionTitle/SectionTitle.styles';
|
|
19
|
+
import RegisterLiquidSteps from 'components/RegisterLiquidSteps/RegisterLiquidSteps';
|
|
20
|
+
// import SectionTitle from 'components/SectionTitle/SectionTitle.styles'
|
|
21
|
+
import { Row, Column } from 'components/Grid/Grid.styles';
|
|
22
|
+
import backgroundImage from 'static/images/covers/liquid.png';
|
|
23
|
+
import ToDoTask from 'components/ToDoList/ToDoListTask';
|
|
24
|
+
import { ToDoTaskState } from 'components/ToDoList/ToDoList';
|
|
25
|
+
import { iconsMap } from 'components/Icon/Icon.style';
|
|
26
|
+
import { Video } from 'components/video';
|
|
27
|
+
import deleteRedirectCookieAndNavigate from 'utils/delete-redirect-cookie-and-navigate';
|
|
28
|
+
const LiquidDescription = styled.div`
|
|
29
|
+
li {
|
|
30
|
+
font-size: 20px !important;
|
|
31
|
+
line-height: 1.5em;
|
|
32
|
+
|
|
33
|
+
img {
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
padding-bottom: 2px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
const RegisterLiquid = ({
|
|
40
|
+
setIsModalOpen,
|
|
41
|
+
setShowComplete
|
|
42
|
+
}) => {
|
|
43
|
+
const {
|
|
44
|
+
user
|
|
45
|
+
} = useContext(AuthContext);
|
|
46
|
+
const {
|
|
47
|
+
entity_name,
|
|
48
|
+
liquid_network = {}
|
|
49
|
+
} = user;
|
|
50
|
+
const [isVideoOpen, setIsVideoOpen] = useState(false);
|
|
51
|
+
const {
|
|
52
|
+
updateUser,
|
|
53
|
+
validateGreenWalletId
|
|
54
|
+
} = useContext(AuthContext);
|
|
55
|
+
const [isUpdatingUser, setIsUpdatingUser] = useState(false);
|
|
56
|
+
const [error, setError] = useState('');
|
|
57
|
+
const initialValues = {
|
|
58
|
+
liquidId: ''
|
|
59
|
+
};
|
|
60
|
+
const validationSchema = Yup.object().shape({
|
|
61
|
+
liquidId: Yup.string().required('Oops, this can‘t be blank')
|
|
62
|
+
});
|
|
63
|
+
const handleOnSubmit = async e => {
|
|
64
|
+
setIsUpdatingUser(true);
|
|
65
|
+
const id = e.liquidId;
|
|
66
|
+
try {
|
|
67
|
+
const {
|
|
68
|
+
valid
|
|
69
|
+
} = await validateGreenWalletId(id);
|
|
70
|
+
if (!valid) {
|
|
71
|
+
setError("This ID is incorrect. Please make sure your AMP ID starts with the letters 'GA'. (Pictured left)");
|
|
72
|
+
setIsUpdatingUser(false);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
await updateUser({
|
|
76
|
+
liquid_network: {
|
|
77
|
+
GAID: e.liquidId
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
setShowComplete(true);
|
|
81
|
+
} catch (error) {
|
|
82
|
+
setError('Something went wrong. Try again.');
|
|
83
|
+
setIsUpdatingUser(false);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const onRefreshClick = () => {
|
|
87
|
+
setError(false);
|
|
88
|
+
};
|
|
89
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
90
|
+
main: true
|
|
91
|
+
}, /*#__PURE__*/React.createElement(Column, {
|
|
92
|
+
part: 8,
|
|
93
|
+
mainFixed: true
|
|
94
|
+
}, /*#__PURE__*/React.createElement(Background, {
|
|
95
|
+
src: backgroundImage,
|
|
96
|
+
mobileRatio: "16:9"
|
|
97
|
+
})), /*#__PURE__*/React.createElement(Column, {
|
|
98
|
+
part: 8,
|
|
99
|
+
mainRelative: true
|
|
100
|
+
}, /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(LiquidDescription, null, /*#__PURE__*/React.createElement("h1", null, "REGISTER LIQUID SECURITIES ACCOUNT")))), liquid_network.GAID && /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("p", null, "You have successfully registered your Liquid Securities Account."))), !liquid_network.GAID && /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(RegisterLiquidSteps, {
|
|
101
|
+
noScroll: true
|
|
102
|
+
})), !liquid_network.GAID && /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("p", null, "You can also check our step by step guide video", ' ', /*#__PURE__*/React.createElement(SpanButton, {
|
|
103
|
+
onlyText: true,
|
|
104
|
+
onClick: () => setIsVideoOpen(true),
|
|
105
|
+
style: {
|
|
106
|
+
color: 'inherit'
|
|
107
|
+
},
|
|
108
|
+
urlLink: true
|
|
109
|
+
}, "here"), "."), /*#__PURE__*/React.createElement(Video, {
|
|
110
|
+
src: require('./assets/video.mp4'),
|
|
111
|
+
isVideoOpen: true,
|
|
112
|
+
noPlayButton: true,
|
|
113
|
+
play: isVideoOpen,
|
|
114
|
+
onClose: () => setIsVideoOpen(false)
|
|
115
|
+
}))), !isUpdatingUser && !error && !liquid_network.GAID && /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(Formik, {
|
|
116
|
+
initialValues: initialValues,
|
|
117
|
+
validationSchema: validationSchema,
|
|
118
|
+
onSubmit: handleOnSubmit
|
|
119
|
+
}, ({
|
|
120
|
+
values,
|
|
121
|
+
errors,
|
|
122
|
+
touched,
|
|
123
|
+
handleChange,
|
|
124
|
+
handleBlur
|
|
125
|
+
}) => {
|
|
126
|
+
const submitDisabled = !values.liquidId;
|
|
127
|
+
return /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
128
|
+
noPadding: true
|
|
129
|
+
}, /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(Input, {
|
|
130
|
+
id: "liquid-id",
|
|
131
|
+
name: "liquidId",
|
|
132
|
+
type: "input",
|
|
133
|
+
label: "AMP ID",
|
|
134
|
+
value: values.liquidId,
|
|
135
|
+
onChange: handleChange,
|
|
136
|
+
onBlur: handleBlur,
|
|
137
|
+
error: !!errors.liquidId,
|
|
138
|
+
touched: !!touched.liquidId
|
|
139
|
+
}), /*#__PURE__*/React.createElement(FormError, {
|
|
140
|
+
show: errors.liquidId && touched.liquidId
|
|
141
|
+
}, errors.liquidId))), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
142
|
+
noPaddingBottom: true,
|
|
143
|
+
noPaddingHorizontal: true,
|
|
144
|
+
center: true
|
|
145
|
+
}), !liquid_network.GAID && /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
146
|
+
noPaddingTop: true
|
|
147
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
148
|
+
minWidth: "230px",
|
|
149
|
+
type: "submit",
|
|
150
|
+
disabled: submitDisabled || isUpdatingUser || liquid_network.GAID
|
|
151
|
+
}, "REGISTER")));
|
|
152
|
+
})), (isUpdatingUser || error) && /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
153
|
+
borderTop: true,
|
|
154
|
+
borderBottom: true,
|
|
155
|
+
center: true
|
|
156
|
+
}, /*#__PURE__*/React.createElement(CryptoAddressWrapper, {
|
|
157
|
+
noFailedIcon: true,
|
|
158
|
+
relative: true,
|
|
159
|
+
refresh: isUpdatingUser && 'Please wait while we verify your AMP ID.',
|
|
160
|
+
failed: error
|
|
161
|
+
})), error && /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
162
|
+
center: true
|
|
163
|
+
}, /*#__PURE__*/React.createElement(RefreshButton, {
|
|
164
|
+
onClick: onRefreshClick
|
|
165
|
+
}, "TRY AGAIN")), liquid_network.GAID && /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
166
|
+
noPaddingTop: true
|
|
167
|
+
}, /*#__PURE__*/React.createElement(ToDoTask, {
|
|
168
|
+
title: "Liquid Securities Account",
|
|
169
|
+
message: "Your address is whitelisted",
|
|
170
|
+
state: ToDoTaskState.APPROVED,
|
|
171
|
+
icon: iconsMap.check
|
|
172
|
+
})), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
173
|
+
noPaddingTop: true
|
|
174
|
+
}, /*#__PURE__*/React.createElement(TextButton, {
|
|
175
|
+
onClick: () => {
|
|
176
|
+
deleteRedirectCookieAndNavigate();
|
|
177
|
+
}
|
|
178
|
+
}, liquid_network.GAID ? 'Continue' : "I'll do this later")), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
179
|
+
noPaddingBottom: true
|
|
180
|
+
}, /*#__PURE__*/React.createElement(SectionTitle, null, "Frequently Asked Questions")), /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(FAQ, {
|
|
181
|
+
items: [{
|
|
182
|
+
title: "I don't have an AMP ID, what now?",
|
|
183
|
+
content: "You can install the 'Green: Bitcoin Wallet' and create an AMP Wallet in minutes. Please follow the steps as explained above."
|
|
184
|
+
}]
|
|
185
|
+
})), /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(FAQ, {
|
|
186
|
+
items: [{
|
|
187
|
+
title: 'What is Liquid anyhow?',
|
|
188
|
+
content: "Liquid is a blockchain used by STOKR. It's how your investments and assets are stored."
|
|
189
|
+
}]
|
|
190
|
+
})), /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(FAQ, {
|
|
191
|
+
items: [{
|
|
192
|
+
title: "What if I'd like to do this later?",
|
|
193
|
+
content: 'You can always skip this step and complete it from the Checklist in your Investor Dashboard at a later point in time. However, you will not be able to invest before doing so.'
|
|
194
|
+
}]
|
|
195
|
+
}))));
|
|
196
|
+
};
|
|
197
|
+
export default RegisterLiquid;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Link } from '@reach/router';
|
|
4
|
+
import { Formik } from 'formik';
|
|
5
|
+
import * as Yup from 'yup';
|
|
6
|
+
import { Modal, ModalInner, ModalLinkWrap, ModalLink } from 'components/Modal/Modal';
|
|
7
|
+
import Form, { FormField, FormInfo, FormError } from 'components/Form/Form';
|
|
8
|
+
import Text from 'components/Text/Text.styles';
|
|
9
|
+
import Input from 'components/Input/Input';
|
|
10
|
+
import InputPassword from 'components/Input/InputPassword';
|
|
11
|
+
import Checkbox from 'components/Checkbox/Checkbox';
|
|
12
|
+
import Button from 'components/Button/Button.styles';
|
|
13
|
+
import { Row, Column } from 'components/Grid/Grid.styles';
|
|
14
|
+
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
15
|
+
export class RegisterModal extends PureComponent {
|
|
16
|
+
initialValues = {
|
|
17
|
+
email: '',
|
|
18
|
+
password: '',
|
|
19
|
+
newsletter: false
|
|
20
|
+
};
|
|
21
|
+
validationSchema = Yup.object().shape({
|
|
22
|
+
email: Yup.string().email('Email is not valid').required('Email is required'),
|
|
23
|
+
password: Yup.string().required('Password is required'),
|
|
24
|
+
newsletter: Yup.bool() // .oneOf([true], 'Newsletter accept is required'),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
const {
|
|
29
|
+
isModalOpen,
|
|
30
|
+
onModalClose,
|
|
31
|
+
onFormSend,
|
|
32
|
+
onModalSwitch
|
|
33
|
+
} = this.props;
|
|
34
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
35
|
+
isOpen: isModalOpen,
|
|
36
|
+
onClose: onModalClose
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Column, {
|
|
38
|
+
part: 8
|
|
39
|
+
}, /*#__PURE__*/React.createElement(ModalInner, {
|
|
40
|
+
modalTop: true
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("h3", null, "Start investing today"), /*#__PURE__*/React.createElement("p", null, "Create a free STOKR account to invest in exciting startups."))), /*#__PURE__*/React.createElement(ModalInner, {
|
|
42
|
+
modalBot: true
|
|
43
|
+
}, /*#__PURE__*/React.createElement(ModalLinkWrap, null, "Already have an account?", ' ', /*#__PURE__*/React.createElement(ModalLink, {
|
|
44
|
+
as: "button",
|
|
45
|
+
onClick: onModalSwitch
|
|
46
|
+
}, "Log in")))), /*#__PURE__*/React.createElement(Column, {
|
|
47
|
+
part: 8
|
|
48
|
+
}, /*#__PURE__*/React.createElement(ModalInner, null, /*#__PURE__*/React.createElement(Formik, {
|
|
49
|
+
initialValues: this.initialValues,
|
|
50
|
+
validationSchema: this.validationSchema,
|
|
51
|
+
onSubmit: onFormSend
|
|
52
|
+
}, ({
|
|
53
|
+
values,
|
|
54
|
+
errors,
|
|
55
|
+
touched,
|
|
56
|
+
handleChange,
|
|
57
|
+
handleBlur,
|
|
58
|
+
setFieldValue,
|
|
59
|
+
setFieldTouched
|
|
60
|
+
}) => {
|
|
61
|
+
const onChangeWithTouch = e => {
|
|
62
|
+
const field = e.target;
|
|
63
|
+
setFieldValue(field.name, field.value, false);
|
|
64
|
+
setFieldTouched(field.name);
|
|
65
|
+
};
|
|
66
|
+
const submitDisabled = !touched.email || !touched.password || !!errors.email || !!errors.password;
|
|
67
|
+
return /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
68
|
+
noPadding: true
|
|
69
|
+
}, /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(Input, {
|
|
70
|
+
id: "sign-up-email",
|
|
71
|
+
name: "email",
|
|
72
|
+
type: "email",
|
|
73
|
+
label: "Your email",
|
|
74
|
+
value: values.email,
|
|
75
|
+
onChange: handleChange,
|
|
76
|
+
onBlur: handleBlur,
|
|
77
|
+
error: !!errors.email,
|
|
78
|
+
touched: !!touched.email
|
|
79
|
+
}), /*#__PURE__*/React.createElement(FormError, {
|
|
80
|
+
show: errors.email && touched.email
|
|
81
|
+
}, errors.email))), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
82
|
+
noPaddingBottom: true,
|
|
83
|
+
noPaddingHorizontal: true
|
|
84
|
+
}, /*#__PURE__*/React.createElement(FormInfo, null, "Your email will never be shared and is only visible to you.")), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
85
|
+
noPaddingBottom: true,
|
|
86
|
+
noPaddingHorizontal: true
|
|
87
|
+
}, /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(InputPassword, {
|
|
88
|
+
id: "sign-up-password",
|
|
89
|
+
name: "password",
|
|
90
|
+
type: "password",
|
|
91
|
+
label: "Password",
|
|
92
|
+
value: values.password,
|
|
93
|
+
onChange: onChangeWithTouch,
|
|
94
|
+
onBlur: handleBlur,
|
|
95
|
+
error: !!errors.password,
|
|
96
|
+
touched: !!touched.password,
|
|
97
|
+
info: "Password input popup",
|
|
98
|
+
showStrength: true
|
|
99
|
+
}), /*#__PURE__*/React.createElement(FormError, {
|
|
100
|
+
show: errors.password && touched.password
|
|
101
|
+
}, errors.password))), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
102
|
+
noPaddingBottom: true,
|
|
103
|
+
noPaddingHorizontal: true
|
|
104
|
+
}, /*#__PURE__*/React.createElement(FormInfo, null, "2 factor authentication can be set up later from your account settings")), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
105
|
+
noPaddingBottom: true,
|
|
106
|
+
noPaddingHorizontal: true
|
|
107
|
+
}, /*#__PURE__*/React.createElement(FormField, null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
108
|
+
id: "sign-up-newsletter",
|
|
109
|
+
name: "newsletter",
|
|
110
|
+
text: "I wish to receive news and updates from STOKR",
|
|
111
|
+
value: "yes",
|
|
112
|
+
checked: !!values.newsletter,
|
|
113
|
+
onChange: handleChange,
|
|
114
|
+
onBlur: handleBlur,
|
|
115
|
+
error: !!errors.newsletter,
|
|
116
|
+
touched: !!touched.newsletter
|
|
117
|
+
}), /*#__PURE__*/React.createElement(FormError, {
|
|
118
|
+
show: errors.newsletter && touched.newsletter
|
|
119
|
+
}, errors.newsletter))), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
120
|
+
noPaddingBottom: true,
|
|
121
|
+
noPaddingHorizontal: true
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
123
|
+
type: "submit",
|
|
124
|
+
fluid: true,
|
|
125
|
+
disabled: submitDisabled
|
|
126
|
+
}, "Create account")), /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
127
|
+
noPaddingBottom: true,
|
|
128
|
+
noPaddingHorizontal: true
|
|
129
|
+
}, /*#__PURE__*/React.createElement(FormInfo, {
|
|
130
|
+
center: true
|
|
131
|
+
}, 'By signing up for STOKR, you agree to our ', /*#__PURE__*/React.createElement(Link, {
|
|
132
|
+
to: "#"
|
|
133
|
+
}, "Terms of Service."))));
|
|
134
|
+
})))));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
RegisterModal.propTypes = {
|
|
138
|
+
isModalOpen: PropTypes.bool.isRequired,
|
|
139
|
+
onModalClose: PropTypes.func.isRequired,
|
|
140
|
+
onFormSend: PropTypes.func.isRequired,
|
|
141
|
+
onModalSwitch: PropTypes.func.isRequired
|
|
142
|
+
};
|
|
143
|
+
export default RegisterModal;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RegisterModal } from './RegisterModal';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/Register Modal',
|
|
6
|
+
component: RegisterModal,
|
|
7
|
+
argTypes: {
|
|
8
|
+
isModalOpen: {
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
defaultValue: true,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
onModalClose: {
|
|
14
|
+
type: 'function',
|
|
15
|
+
action: 'onModalClose',
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
onFormSend: {
|
|
19
|
+
type: 'function',
|
|
20
|
+
action: 'onFormSend',
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
onModalSwitch: {
|
|
24
|
+
type: 'function',
|
|
25
|
+
action: 'onModalSwitch',
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(RegisterModal, args));
|
|
31
|
+
export const RegisterModalDefault = Template.bind({});
|
|
32
|
+
RegisterModalDefault.args = {};
|
|
33
|
+
|
|
34
|
+
//doublecheck:
|
|
35
|
+
// here story input works, why not on other inputs?
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import Button from 'components/Button/Button.styles';
|
|
4
|
+
import { Box, Title, Subtitle } from './RequestDataBox.styles';
|
|
5
|
+
export const RequestDataBox = ({
|
|
6
|
+
title,
|
|
7
|
+
subtitle,
|
|
8
|
+
onClick
|
|
9
|
+
}) => /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Title, null, title), /*#__PURE__*/React.createElement(Subtitle, null, subtitle)), /*#__PURE__*/React.createElement(Button, {
|
|
10
|
+
minWidth: "240px",
|
|
11
|
+
onClick: onClick
|
|
12
|
+
}, title));
|
|
13
|
+
RequestDataBox.propTypes = {
|
|
14
|
+
title: PropTypes.string.isRequired,
|
|
15
|
+
subtitle: PropTypes.string.isRequired,
|
|
16
|
+
onClick: PropTypes.func
|
|
17
|
+
};
|
|
18
|
+
RequestDataBox.defaultProps = {
|
|
19
|
+
onClick: () => {}
|
|
20
|
+
};
|
|
21
|
+
export default RequestDataBox;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import RequestDataBox from './RequestDataBox';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/RequestDataBox',
|
|
6
|
+
component: RequestDataBox,
|
|
7
|
+
argTypes: {
|
|
8
|
+
title: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
defaultValue: '',
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
subtitle: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
defaultValue: '',
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
onClick: {
|
|
19
|
+
type: 'function',
|
|
20
|
+
action: 'onClick'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(RequestDataBox, args));
|
|
25
|
+
export const RequestDataBoxExample = Template.bind({});
|
|
26
|
+
RequestDataBoxExample.args = {
|
|
27
|
+
title: 'A Title',
|
|
28
|
+
subtitle: 'A Subtitle'
|
|
29
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import rwd from 'styles/rwd';
|
|
3
|
+
import theme from 'styles/theme';
|
|
4
|
+
export const Box = styled.div`
|
|
5
|
+
border: 1px solid ${props => theme.cLightGrey};
|
|
6
|
+
padding: 20px 24px;
|
|
7
|
+
|
|
8
|
+
& > div {
|
|
9
|
+
margin-bottom: 12px;
|
|
10
|
+
|
|
11
|
+
${rwd.Medium`
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
`}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
${rwd.Medium`
|
|
17
|
+
padding: 36px 48px;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
`}
|
|
21
|
+
|
|
22
|
+
& + & {
|
|
23
|
+
border-top: none;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
export const Title = styled.div`
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
line-height: 24px;
|
|
30
|
+
margin-bottom: 2px;
|
|
31
|
+
letter-spacing: 0.6px;
|
|
32
|
+
`;
|
|
33
|
+
export const Subtitle = styled.div`
|
|
34
|
+
font-size: 9px;
|
|
35
|
+
font-style: italic;
|
|
36
|
+
line-height: 16px;
|
|
37
|
+
letter-spacing: 0.4px;
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
//merge: font-style: italic added from VD
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import axios from '../../model/axios';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
export const RiskQuestionnaireContext = /*#__PURE__*/React.createContext();
|
|
5
|
+
export class RiskQuestionnaireProvider extends Component {
|
|
6
|
+
state = {
|
|
7
|
+
waiting: true,
|
|
8
|
+
error: null,
|
|
9
|
+
questionnaire: null,
|
|
10
|
+
success: false,
|
|
11
|
+
id: null
|
|
12
|
+
};
|
|
13
|
+
componentDidMount() {
|
|
14
|
+
this.getData();
|
|
15
|
+
}
|
|
16
|
+
getData = async () => {
|
|
17
|
+
try {
|
|
18
|
+
const result = await axios({
|
|
19
|
+
method: 'POST',
|
|
20
|
+
url: `compilance/risk-questionnaire`
|
|
21
|
+
});
|
|
22
|
+
this.onGetDataSuccess(result.data);
|
|
23
|
+
} catch (error) {
|
|
24
|
+
console.log(`Error fetching risk questionnaire: ${error}`);
|
|
25
|
+
this.onGetDataError(error.message);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
sendData = questionnaire => {
|
|
29
|
+
this.setState({
|
|
30
|
+
waiting: true,
|
|
31
|
+
error: null,
|
|
32
|
+
success: false
|
|
33
|
+
});
|
|
34
|
+
const {
|
|
35
|
+
updateUser
|
|
36
|
+
} = this.props;
|
|
37
|
+
return new Promise(async (resolve, reject) => {
|
|
38
|
+
try {
|
|
39
|
+
await axios({
|
|
40
|
+
method: 'POST',
|
|
41
|
+
url: `compilance/user-risk-compilance/create`,
|
|
42
|
+
data: {
|
|
43
|
+
riskQuestionnaireId: questionnaire._id
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
await updateUser({
|
|
47
|
+
is_risk_questionnaire_finished: true
|
|
48
|
+
});
|
|
49
|
+
resolve();
|
|
50
|
+
} catch (error) {
|
|
51
|
+
console.log(`Error setting user risk questionnaire status: ${error}`);
|
|
52
|
+
this.onSendDataError('Something went wrong. Please try again.');
|
|
53
|
+
reject(error);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
onGetDataSuccess = data => {
|
|
58
|
+
const {
|
|
59
|
+
updateSteps
|
|
60
|
+
} = this.props;
|
|
61
|
+
updateSteps(data.questionSet);
|
|
62
|
+
this.setState({
|
|
63
|
+
waiting: false,
|
|
64
|
+
questionnaire: data,
|
|
65
|
+
id: data._id
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
onGetDataError = error => {
|
|
69
|
+
this.setState({
|
|
70
|
+
waiting: false,
|
|
71
|
+
error
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
onSendDataSuccess = () => {
|
|
75
|
+
this.setState({
|
|
76
|
+
waiting: false,
|
|
77
|
+
success: true
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
onSendDataError = error => {
|
|
81
|
+
this.setState({
|
|
82
|
+
waiting: false,
|
|
83
|
+
error
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
render() {
|
|
87
|
+
const {
|
|
88
|
+
children
|
|
89
|
+
} = this.props;
|
|
90
|
+
const {
|
|
91
|
+
waiting,
|
|
92
|
+
error,
|
|
93
|
+
questionnaire,
|
|
94
|
+
success
|
|
95
|
+
} = this.state;
|
|
96
|
+
return /*#__PURE__*/React.createElement(RiskQuestionnaireContext.Provider, {
|
|
97
|
+
value: {
|
|
98
|
+
waiting,
|
|
99
|
+
error,
|
|
100
|
+
questionnaire,
|
|
101
|
+
sendQuestionnaire: this.sendData.bind(this, questionnaire),
|
|
102
|
+
success
|
|
103
|
+
}
|
|
104
|
+
}, children);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
RiskQuestionnaireProvider.propTypes = {
|
|
108
|
+
children: PropTypes.node.isRequired,
|
|
109
|
+
updateSteps: PropTypes.func.isRequired
|
|
110
|
+
};
|
|
111
|
+
export const RiskQuestionnaireConsumer = RiskQuestionnaireContext.Consumer;
|
package/dist/SEO/SEO.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import Helmet from 'react-helmet';
|
|
4
|
+
export function SEO({
|
|
5
|
+
description,
|
|
6
|
+
lang,
|
|
7
|
+
meta,
|
|
8
|
+
keywords,
|
|
9
|
+
title,
|
|
10
|
+
author
|
|
11
|
+
}) {
|
|
12
|
+
return /*#__PURE__*/React.createElement(Helmet, {
|
|
13
|
+
htmlAttributes: {
|
|
14
|
+
lang
|
|
15
|
+
},
|
|
16
|
+
title: title,
|
|
17
|
+
titleTemplate: "STOKR \u2022 %s",
|
|
18
|
+
meta: [{
|
|
19
|
+
name: 'description',
|
|
20
|
+
content: description
|
|
21
|
+
}, {
|
|
22
|
+
property: 'og:title',
|
|
23
|
+
content: title
|
|
24
|
+
}, {
|
|
25
|
+
property: 'og:description',
|
|
26
|
+
content: description
|
|
27
|
+
}, {
|
|
28
|
+
property: 'og:type',
|
|
29
|
+
content: 'website'
|
|
30
|
+
}, {
|
|
31
|
+
name: 'twitter:card',
|
|
32
|
+
content: 'summary'
|
|
33
|
+
}, {
|
|
34
|
+
name: 'twitter:creator',
|
|
35
|
+
content: author
|
|
36
|
+
}, {
|
|
37
|
+
name: 'twitter:title',
|
|
38
|
+
content: title
|
|
39
|
+
}, {
|
|
40
|
+
name: 'twitter:description',
|
|
41
|
+
content: description
|
|
42
|
+
}].concat(keywords.length > 0 ? {
|
|
43
|
+
name: 'keywords',
|
|
44
|
+
content: keywords.join(', ')
|
|
45
|
+
} : []).concat(meta)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
SEO.defaultProps = {
|
|
49
|
+
lang: 'en',
|
|
50
|
+
meta: [],
|
|
51
|
+
keywords: [],
|
|
52
|
+
description: '',
|
|
53
|
+
author: ''
|
|
54
|
+
};
|
|
55
|
+
SEO.propTypes = {
|
|
56
|
+
description: PropTypes.string,
|
|
57
|
+
lang: PropTypes.string,
|
|
58
|
+
meta: PropTypes.instanceOf(Array),
|
|
59
|
+
keywords: PropTypes.arrayOf(PropTypes.string),
|
|
60
|
+
title: PropTypes.string.isRequired,
|
|
61
|
+
author: PropTypes.string
|
|
62
|
+
};
|
|
63
|
+
export default SEO;
|