@stokr/components-library 0.5.4 → 0.5.6
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 +23 -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 +73 -0
- package/dist/LearnMorePage/LearnMoreItem.stories.js +54 -0
- package/dist/LearnMorePage/LearnMoreItem.styles.js +218 -0
- package/dist/LearnMoreSection/LearnMore.js +158 -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 +29 -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 +61 -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 +29 -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/react-scripts +0 -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,98 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import rwd from 'styles/rwd';
|
|
3
|
+
import loader from 'static/images/address-refreshing.gif';
|
|
4
|
+
import theme from 'styles/theme';
|
|
5
|
+
export const Container = styled.div`
|
|
6
|
+
position: relative;
|
|
7
|
+
display: block;
|
|
8
|
+
`;
|
|
9
|
+
export const Address = styled.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
visibility: visible;
|
|
12
|
+
opacity: 1;
|
|
13
|
+
|
|
14
|
+
${props => props.isHidden && `
|
|
15
|
+
visibility: hidden;
|
|
16
|
+
opacity: 0;
|
|
17
|
+
`}
|
|
18
|
+
`;
|
|
19
|
+
export const InfoBoxWrapper = styled.div`
|
|
20
|
+
z-index: 1;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
display: block;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
font-size: 0;
|
|
28
|
+
|
|
29
|
+
&:after {
|
|
30
|
+
content: '';
|
|
31
|
+
display: inline-block;
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// concerning merge: relative is added from SUF
|
|
38
|
+
${({
|
|
39
|
+
relative
|
|
40
|
+
}) => relative && `
|
|
41
|
+
position: relative;
|
|
42
|
+
`}
|
|
43
|
+
`;
|
|
44
|
+
export const InfoBox = styled.div`
|
|
45
|
+
display: inline-block;
|
|
46
|
+
vertical-align: middle;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
|
|
49
|
+
${props => props.refresh && `
|
|
50
|
+
color: ${theme.cPrimary};
|
|
51
|
+
`};
|
|
52
|
+
|
|
53
|
+
${props => props.failed && `
|
|
54
|
+
color: ${theme.cWarning};
|
|
55
|
+
`};
|
|
56
|
+
`;
|
|
57
|
+
export const Loader = styled.div`
|
|
58
|
+
display: inline-block;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
width: 40px;
|
|
61
|
+
height: 40px;
|
|
62
|
+
margin: 0 auto;
|
|
63
|
+
margin-right: -40px;
|
|
64
|
+
background-repeat: no-repeat;
|
|
65
|
+
background-position: 50% 50%;
|
|
66
|
+
background-size: cover;
|
|
67
|
+
background-image: url(${loader});
|
|
68
|
+
`;
|
|
69
|
+
export const FailedIcon = styled.i.attrs({
|
|
70
|
+
className: 'ion ion-ios-close-circle'
|
|
71
|
+
})`
|
|
72
|
+
display: inline-block !important;
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
width: 40px;
|
|
75
|
+
height: 40px;
|
|
76
|
+
margin-right: -40px;
|
|
77
|
+
|
|
78
|
+
&:before {
|
|
79
|
+
display: block;
|
|
80
|
+
font-size: 48px;
|
|
81
|
+
line-height: 40px;
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
export const Text = styled.div`
|
|
86
|
+
display: inline-block;
|
|
87
|
+
vertical-align: middle;
|
|
88
|
+
font-weight: 300;
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
line-height: 1.5em;
|
|
91
|
+
letter-spacing: 0.6px;
|
|
92
|
+
padding-left: 60px;
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
|
|
95
|
+
${rwd.XLarge`
|
|
96
|
+
font-size: 20px;
|
|
97
|
+
`}
|
|
98
|
+
`;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import * as d3 from 'd3';
|
|
4
|
+
import { Chart, Content } from './DonutChart.styles';
|
|
5
|
+
export class DonutChart extends PureComponent {
|
|
6
|
+
state = {
|
|
7
|
+
data: [],
|
|
8
|
+
key: 0
|
|
9
|
+
};
|
|
10
|
+
componentDidMount() {
|
|
11
|
+
const {
|
|
12
|
+
data
|
|
13
|
+
} = this.props;
|
|
14
|
+
this.setState({
|
|
15
|
+
data
|
|
16
|
+
}, () => {
|
|
17
|
+
this.createChart();
|
|
18
|
+
window.addEventListener('scroll', this.onScroll);
|
|
19
|
+
this.onScroll();
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
componentDidUpdate(prevProps) {
|
|
23
|
+
const {
|
|
24
|
+
key
|
|
25
|
+
} = this.state;
|
|
26
|
+
const {
|
|
27
|
+
data: newData
|
|
28
|
+
} = this.props;
|
|
29
|
+
const {
|
|
30
|
+
data: prevData
|
|
31
|
+
} = prevProps;
|
|
32
|
+
if (newData && prevData && JSON.stringify(newData) !== JSON.stringify(prevData)) {
|
|
33
|
+
this.setState({
|
|
34
|
+
data: newData
|
|
35
|
+
}, () => {
|
|
36
|
+
this.drawn = false;
|
|
37
|
+
window.removeEventListener('scroll', this.onScroll);
|
|
38
|
+
this.setState({
|
|
39
|
+
key: key + 1
|
|
40
|
+
}, () => {
|
|
41
|
+
this.createChart();
|
|
42
|
+
window.addEventListener('scroll', this.onScroll);
|
|
43
|
+
this.onScroll();
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
componentWillUnmount() {
|
|
49
|
+
window.removeEventListener('scroll', this.onScroll);
|
|
50
|
+
}
|
|
51
|
+
createChart = () => {
|
|
52
|
+
if (!this.chartEl) return;
|
|
53
|
+
const {
|
|
54
|
+
data
|
|
55
|
+
} = this.state;
|
|
56
|
+
const width = 320;
|
|
57
|
+
const height = 320;
|
|
58
|
+
const pad = 10;
|
|
59
|
+
const thickness = 14;
|
|
60
|
+
const outerRadius = width / 2;
|
|
61
|
+
const innerRadius = outerRadius - thickness;
|
|
62
|
+
const padAngle = pad / (outerRadius - thickness / 2);
|
|
63
|
+
const customColors = data.map(item => item.color);
|
|
64
|
+
const color = customColors[0] ? d3.scaleOrdinal(customColors) : d3.scaleOrdinal(d3.schemeCategory10);
|
|
65
|
+
const svg = d3.select(this.chartEl).append('svg').attr('viewBox', `0 0 ${width} ${height}`);
|
|
66
|
+
const chart = svg.append('g').attr('transform', `translate(${width / 2}, ${height / 2})`);
|
|
67
|
+
const pie = d3.pie().value(d => d.value).sort(null).padAngle(padAngle);
|
|
68
|
+
const arc = d3.arc().outerRadius(outerRadius).innerRadius(innerRadius);
|
|
69
|
+
function arcTween(a) {
|
|
70
|
+
const interp = d3.interpolate(this._current, a);
|
|
71
|
+
this._current = interp(1);
|
|
72
|
+
return time => arc(interp(time));
|
|
73
|
+
}
|
|
74
|
+
function setD(d) {
|
|
75
|
+
this._current = d;
|
|
76
|
+
}
|
|
77
|
+
this.drawDate = dataSet => {
|
|
78
|
+
// Join new data
|
|
79
|
+
const path = chart.selectAll('path').data(pie(dataSet));
|
|
80
|
+
|
|
81
|
+
// Update existing arcs
|
|
82
|
+
path.transition().ease(d3.easeQuadOut).duration(1000).attrTween('d', arcTween);
|
|
83
|
+
|
|
84
|
+
// Enter new arcs
|
|
85
|
+
path.enter().append('path').attr('fill', (d, i) => color(i)).attr('d', arc).each(setD);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// set init data
|
|
89
|
+
this.drawDate(data.map(datum => ({
|
|
90
|
+
...datum,
|
|
91
|
+
value: 0
|
|
92
|
+
})));
|
|
93
|
+
};
|
|
94
|
+
drawChart = () => {
|
|
95
|
+
const {
|
|
96
|
+
data
|
|
97
|
+
} = this.props;
|
|
98
|
+
this.drawDate(data);
|
|
99
|
+
this.drawn = true;
|
|
100
|
+
};
|
|
101
|
+
onScroll = e => {
|
|
102
|
+
if (this.drawn) return;
|
|
103
|
+
if (this.chartEl.getBoundingClientRect().top < window.innerHeight) {
|
|
104
|
+
this.drawChart();
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
render() {
|
|
108
|
+
const {
|
|
109
|
+
children,
|
|
110
|
+
center
|
|
111
|
+
} = this.props;
|
|
112
|
+
const {
|
|
113
|
+
key
|
|
114
|
+
} = this.state;
|
|
115
|
+
return /*#__PURE__*/React.createElement(Chart, {
|
|
116
|
+
ref: el => {
|
|
117
|
+
this.chartEl = el;
|
|
118
|
+
},
|
|
119
|
+
center: center,
|
|
120
|
+
key: key
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Content, null, children));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
DonutChart.propTypes = {
|
|
125
|
+
children: PropTypes.node,
|
|
126
|
+
data: PropTypes.arrayOf(PropTypes.shape({
|
|
127
|
+
value: PropTypes.number.isRequired,
|
|
128
|
+
name: PropTypes.string,
|
|
129
|
+
color: PropTypes.string
|
|
130
|
+
})).isRequired,
|
|
131
|
+
center: PropTypes.bool
|
|
132
|
+
};
|
|
133
|
+
DonutChart.defaultProps = {
|
|
134
|
+
children: null,
|
|
135
|
+
center: false
|
|
136
|
+
};
|
|
137
|
+
export default DonutChart;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// import React from 'react'
|
|
2
|
+
// import DonutChart from './DonutChart'
|
|
3
|
+
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
4
|
+
|
|
5
|
+
// export default {
|
|
6
|
+
// title: 'Components Library/DonutChart',
|
|
7
|
+
// component: DonutChart,
|
|
8
|
+
// argTypes: {
|
|
9
|
+
// children: { type: 'node', defaultValue: null },
|
|
10
|
+
// center: { type: 'boolean', defaultValue: false },
|
|
11
|
+
// data: {
|
|
12
|
+
// type: 'array',
|
|
13
|
+
// defaultValue: [{ value: '' }, { name: '' }, { color: '' }],
|
|
14
|
+
// required: true,
|
|
15
|
+
// },
|
|
16
|
+
// },
|
|
17
|
+
// }
|
|
18
|
+
|
|
19
|
+
// const Template = args => (
|
|
20
|
+
// <ComponentWrapper>
|
|
21
|
+
// <DonutChart {...args} />
|
|
22
|
+
// </ComponentWrapper>
|
|
23
|
+
// )
|
|
24
|
+
|
|
25
|
+
// export const DonutChartDefault = Template.bind({})
|
|
26
|
+
// DonutChartDefault.args = {
|
|
27
|
+
// children: null,
|
|
28
|
+
// data: [
|
|
29
|
+
// {
|
|
30
|
+
// value: 'A Value',
|
|
31
|
+
// name: 'A Name',
|
|
32
|
+
// color: 'blue',
|
|
33
|
+
// },
|
|
34
|
+
// ],
|
|
35
|
+
// center: true,
|
|
36
|
+
// }
|
|
37
|
+
|
|
38
|
+
// doublecheck
|
|
39
|
+
// cannot resolve d3
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
export const Chart = styled.div`
|
|
3
|
+
position: relative;
|
|
4
|
+
display: block;
|
|
5
|
+
max-width: 320px;
|
|
6
|
+
|
|
7
|
+
& > svg {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
${props => props.center && `
|
|
13
|
+
margin: 0 auto;
|
|
14
|
+
`}
|
|
15
|
+
`;
|
|
16
|
+
const thickness = '14px';
|
|
17
|
+
export const Content = styled.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: ${thickness};
|
|
24
|
+
left: ${thickness};
|
|
25
|
+
right: ${thickness};
|
|
26
|
+
bottom: ${thickness};
|
|
27
|
+
text-align: center;
|
|
28
|
+
`;
|
|
29
|
+
export const DonutChartLabel = styled.p`
|
|
30
|
+
font-family: 'Open Sans';
|
|
31
|
+
font-size: 11px;
|
|
32
|
+
line-height: 16px;
|
|
33
|
+
letter-spacing: 2px;
|
|
34
|
+
text-transform: uppercase;
|
|
35
|
+
padding: 4px 0;
|
|
36
|
+
margin: 0;
|
|
37
|
+
|
|
38
|
+
${props => props.strong && `
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
`}
|
|
41
|
+
`;
|
|
42
|
+
export const DonutChartValue = styled.h3`
|
|
43
|
+
font-family: 'Open Sans';
|
|
44
|
+
font-weight: 300;
|
|
45
|
+
font-size: ${({
|
|
46
|
+
fontSize
|
|
47
|
+
}) => fontSize ? `${fontSize}px` : '55px'};
|
|
48
|
+
line-height: 58px;
|
|
49
|
+
letter-spacing: 2.4px;
|
|
50
|
+
margin: 0;
|
|
51
|
+
padding: 7px 0;
|
|
52
|
+
margin-bottom: 7px;
|
|
53
|
+
`;
|
|
54
|
+
export const DonutChartInfo = styled.p`
|
|
55
|
+
font-family: 'Open Sans';
|
|
56
|
+
font-weight: 300;
|
|
57
|
+
font-size: 22px;
|
|
58
|
+
line-height: 28px;
|
|
59
|
+
letter-spacing: 0.8px;
|
|
60
|
+
margin: 0;
|
|
61
|
+
`;
|
|
62
|
+
export const DonutChartTrend = styled.span`
|
|
63
|
+
display: inline-block;
|
|
64
|
+
margin-left: 8px;
|
|
65
|
+
|
|
66
|
+
&:before {
|
|
67
|
+
content: '\\f1fc';
|
|
68
|
+
font-family: 'Ionicons';
|
|
69
|
+
speak: none;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: normal;
|
|
72
|
+
font-variant: normal;
|
|
73
|
+
text-transform: none;
|
|
74
|
+
text-rendering: auto;
|
|
75
|
+
-moz-osx-font-smoothing: grayscale;
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
line-height: 12px;
|
|
78
|
+
display: inline-block;
|
|
79
|
+
vertical-align: middle;
|
|
80
|
+
margin-top: -1px;
|
|
81
|
+
width: 12px;
|
|
82
|
+
height: 12px;
|
|
83
|
+
margin-right: 8px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
${props => props.inc && `
|
|
87
|
+
color: ${props.theme.cProgressDone};
|
|
88
|
+
|
|
89
|
+
&:before {
|
|
90
|
+
content: '\\f3d8';
|
|
91
|
+
}
|
|
92
|
+
`}
|
|
93
|
+
|
|
94
|
+
${props => props.dec && `
|
|
95
|
+
color: ${props.theme.cWarning};
|
|
96
|
+
|
|
97
|
+
&:before {
|
|
98
|
+
content: '\\f3d0';
|
|
99
|
+
}
|
|
100
|
+
`}
|
|
101
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import rwd from 'styles/rwd';
|
|
3
|
+
import Button from 'components/Button/Button.styles';
|
|
4
|
+
export const DoubleButtons = styled.div`
|
|
5
|
+
margin: -12px;
|
|
6
|
+
|
|
7
|
+
${Button} {
|
|
8
|
+
width: 100%;
|
|
9
|
+
margin: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
${rwd.Medium`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: ${({
|
|
15
|
+
column
|
|
16
|
+
}) => column ? 'column' : 'row'};
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
${Button} {
|
|
20
|
+
width: auto;
|
|
21
|
+
flex: 1;
|
|
22
|
+
}
|
|
23
|
+
`}
|
|
24
|
+
`;
|
|
25
|
+
export default DoubleButtons;
|
package/dist/FAQ/FAQ.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import * as scrollToElement from 'scroll-to-element';
|
|
4
|
+
import Text from 'components/Text/Text.styles';
|
|
5
|
+
import { FaqItems, FaqItem, FaqTitle, FaqContent, FaqText, FaqDropdownIcon } from './FAQ.styles';
|
|
6
|
+
export const FAQ = props => {
|
|
7
|
+
const {
|
|
8
|
+
items,
|
|
9
|
+
noScroll
|
|
10
|
+
} = props;
|
|
11
|
+
const [activeIndex, setActiveIndex] = useState(null);
|
|
12
|
+
const onTitleClick = (e, index) => {
|
|
13
|
+
e.persist();
|
|
14
|
+
const newActiveIndex = activeIndex === index ? null : index;
|
|
15
|
+
setActiveIndex(newActiveIndex);
|
|
16
|
+
if (!noScroll && newActiveIndex !== null) {
|
|
17
|
+
scrollToElement(e.target.parentElement, {
|
|
18
|
+
duration: 300,
|
|
19
|
+
offset: 20
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return /*#__PURE__*/React.createElement(FaqItems, null, items.map((item, index) => /*#__PURE__*/React.createElement(FaqItem, {
|
|
24
|
+
key: item.title
|
|
25
|
+
}, /*#__PURE__*/React.createElement(FaqTitle, {
|
|
26
|
+
isActive: activeIndex === index,
|
|
27
|
+
onClick: e => onTitleClick(e, index)
|
|
28
|
+
}, item.title, /*#__PURE__*/React.createElement(FaqDropdownIcon, null)), /*#__PURE__*/React.createElement(FaqContent, {
|
|
29
|
+
isOpened: activeIndex === index
|
|
30
|
+
}, typeof item.content === 'string' ? /*#__PURE__*/React.createElement(FaqText, null, item.content) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("ul", null, item.content.map(answer => /*#__PURE__*/React.createElement("li", {
|
|
31
|
+
key: answer
|
|
32
|
+
}, answer)))))))));
|
|
33
|
+
};
|
|
34
|
+
FAQ.propTypes = {
|
|
35
|
+
items: PropTypes.arrayOf(PropTypes.shape({
|
|
36
|
+
title: PropTypes.string.isRequired,
|
|
37
|
+
content: PropTypes.oneOfType([PropTypes.string, PropTypes.array]).isRequired
|
|
38
|
+
})).isRequired
|
|
39
|
+
};
|
|
40
|
+
export default FAQ;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FAQ } from './FAQ';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/FAQ',
|
|
6
|
+
component: FAQ,
|
|
7
|
+
argTypes: {
|
|
8
|
+
// item: { type: 'string', defaultValue: 'FAQ Item' },
|
|
9
|
+
items: {
|
|
10
|
+
type: 'array of shapes',
|
|
11
|
+
required: true,
|
|
12
|
+
defaultValue: []
|
|
13
|
+
// title: { type: 'string', required: true, defaultValue: 'Default Title' },
|
|
14
|
+
// content: {
|
|
15
|
+
// type: 'string',
|
|
16
|
+
// required: true,
|
|
17
|
+
// defaultValue: 'Default Content',
|
|
18
|
+
// },
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
onTitleClick: {
|
|
22
|
+
action: 'titleClick',
|
|
23
|
+
type: 'function'
|
|
24
|
+
},
|
|
25
|
+
scrollToElement: {
|
|
26
|
+
action: 'scroll',
|
|
27
|
+
type: 'function'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(FAQ, args));
|
|
32
|
+
export const FAQExample = Template.bind({});
|
|
33
|
+
FAQExample.args = {
|
|
34
|
+
items: [{
|
|
35
|
+
title: 'What kind of Ventures can be found on STOKR?',
|
|
36
|
+
content: 'You can find startups and small to medium sized companies led by motivated and qualified founders, committed to making a positive impact. Ventures are selected based on their business model and have various risk levels.'
|
|
37
|
+
}, {
|
|
38
|
+
title: 'What can I invest with?',
|
|
39
|
+
content: "Investors can invest via Bitcoin (BTC), Liquid Bitcoin (L-BTC), Ether (ETH) and stable coins such as Gemini Dollar (GUSD) and USD Tether (USDT). If you're not into cryptocurrencies, you can simply do a SEPA transfer and invest with Euro."
|
|
40
|
+
}, {
|
|
41
|
+
title: 'List that for me (only SUF)',
|
|
42
|
+
content: ['Bitcoin (BTC)', 'Liquid Bitcoin (L-BTC)', 'Ether (ETH)', 'stable coins such as Gemini Dollar (GUSD) and USD Tether (USDT)', "If you're not into cryptocurrencies, you can simply do a SEPA transfer and invest with Euro."]
|
|
43
|
+
}]
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// simple:
|
|
47
|
+
// export const FAQExample = () => (
|
|
48
|
+
// <ComponentWrapper>
|
|
49
|
+
// <FAQ
|
|
50
|
+
// items={[
|
|
51
|
+
// { title: 'example title', content: 'some content' },
|
|
52
|
+
// { title: 'example title 2', content: [1, 2, 3, 4, 5] },
|
|
53
|
+
// ]}
|
|
54
|
+
// />
|
|
55
|
+
// </ComponentWrapper>
|
|
56
|
+
// )
|
|
57
|
+
|
|
58
|
+
//doublecheck:
|
|
59
|
+
|
|
60
|
+
// state (activeIndex), mapping, shape, scroll, activeIndex
|
|
61
|
+
// actions not firing, maybe cause not props
|
|
62
|
+
// map over items (item,index)?
|
|
63
|
+
// cannot fill in own text (control) as title and content are part of items shape
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import { Collapse } from 'react-collapse';
|
|
3
|
+
import theme from 'styles/theme';
|
|
4
|
+
export const FaqItems = styled.div`
|
|
5
|
+
position: relative;
|
|
6
|
+
`;
|
|
7
|
+
export const FaqItem = styled.div`
|
|
8
|
+
& + & {
|
|
9
|
+
margin-top: 30px;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
export const FaqTitle = styled.button`
|
|
13
|
+
display: block;
|
|
14
|
+
width: 100%;
|
|
15
|
+
position: relative;
|
|
16
|
+
font-family: 'Open Sans';
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
letter-spacing: 0.4px;
|
|
21
|
+
color: ${props => theme.cBlack};
|
|
22
|
+
padding: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
outline: 0;
|
|
25
|
+
border: none;
|
|
26
|
+
padding-right: 30px;
|
|
27
|
+
text-align: left;
|
|
28
|
+
transition: color 0.2s;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
color: inherit;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
${props => props.isActive && `
|
|
35
|
+
${FaqDropdownIcon} {
|
|
36
|
+
transform: rotate(180deg);
|
|
37
|
+
}
|
|
38
|
+
`}
|
|
39
|
+
`;
|
|
40
|
+
export const FaqDropdownIcon = styled.i.attrs({
|
|
41
|
+
className: 'ion ion-ios-arrow-down'
|
|
42
|
+
})`
|
|
43
|
+
width: 14px;
|
|
44
|
+
height: 20px;
|
|
45
|
+
font-size: 20px;
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 50%;
|
|
48
|
+
right: 0;
|
|
49
|
+
margin-top: -10px;
|
|
50
|
+
transform: rotate(0);
|
|
51
|
+
transition: 0.3s transform;
|
|
52
|
+
`;
|
|
53
|
+
export const FaqContent = styled(Collapse)`
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transition: opacity 0.2s;
|
|
56
|
+
|
|
57
|
+
${props => props.isOpened && `
|
|
58
|
+
opacity: 1;
|
|
59
|
+
`}
|
|
60
|
+
`;
|
|
61
|
+
export const FaqText = styled.div`
|
|
62
|
+
padding: 0;
|
|
63
|
+
padding-top: 30px;
|
|
64
|
+
padding-bottom: 10px;
|
|
65
|
+
font-weight: 300;
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
line-height: 24px;
|
|
68
|
+
letter-spacing: 0.4px;
|
|
69
|
+
`;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Wrapper } from 'components/Grid/Grid.styles';
|
|
4
|
+
import SicosLogo from './sicos-logo.svg';
|
|
5
|
+
import { StyledFooter, FooterInner, PartnerWrap, PoweredWrap, Copyright, Partner, Powered } from './Footer.styles';
|
|
6
|
+
import LemonwayLogo from './lemonway.png';
|
|
7
|
+
export const Footer = ({
|
|
8
|
+
color,
|
|
9
|
+
lemonwayLogo = LemonwayLogo,
|
|
10
|
+
hasSidebar = false,
|
|
11
|
+
isSidebarExpanded
|
|
12
|
+
}) => /*#__PURE__*/React.createElement(StyledFooter, {
|
|
13
|
+
color: color,
|
|
14
|
+
isSidebarExpanded: isSidebarExpanded,
|
|
15
|
+
hasSidebar: hasSidebar
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(FooterInner, {
|
|
17
|
+
hasSidebar: hasSidebar
|
|
18
|
+
}, /*#__PURE__*/React.createElement(PartnerWrap, null, /*#__PURE__*/React.createElement(Partner, null, "STOKR is a virtual asset service provider (VASP), ", /*#__PURE__*/React.createElement("br", null), ' ', /*#__PURE__*/React.createElement("a", {
|
|
19
|
+
href: "https://searchentities.apps.cssf.lu/search-entities/search?&st=advanced&entType=VAP&entDate=2020-08-01",
|
|
20
|
+
title: "registered",
|
|
21
|
+
target: "_blank",
|
|
22
|
+
rel: "noopener noreferrer",
|
|
23
|
+
style: {
|
|
24
|
+
textDecoration: 'underline',
|
|
25
|
+
color: 'white'
|
|
26
|
+
}
|
|
27
|
+
}, "registered"), ' ', "with the Luxembourg regulator CSSF.")), /*#__PURE__*/React.createElement(PoweredWrap, null, /*#__PURE__*/React.createElement(Powered, null, /*#__PURE__*/React.createElement("div", null, "Partner of", ' ', /*#__PURE__*/React.createElement("a", {
|
|
28
|
+
href: "http://www.lemonway.com/",
|
|
29
|
+
title: "Lemon Way - Payment Institution for the new economy",
|
|
30
|
+
target: "_blank",
|
|
31
|
+
rel: "noopener noreferrer",
|
|
32
|
+
style: {
|
|
33
|
+
color: 'white',
|
|
34
|
+
textDecoration: 'none'
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
37
|
+
style: {
|
|
38
|
+
verticalAlign: 'middle'
|
|
39
|
+
},
|
|
40
|
+
src: lemonwayLogo,
|
|
41
|
+
height: 20,
|
|
42
|
+
width: 20,
|
|
43
|
+
alt: "Lemonway logo"
|
|
44
|
+
}), ' ', "LEMONWAY"), ". A European payment institution ", /*#__PURE__*/React.createElement("br", null), " accredited in France by the ACPR (CIB 16568).")), /*#__PURE__*/React.createElement(Copyright, null, "Copyright ", new Date().getFullYear(), " STOKR. All rights reserved.")))));
|
|
45
|
+
Footer.propTypes = {
|
|
46
|
+
color: PropTypes.oneOf(['primary', 'red']),
|
|
47
|
+
lemonwayLogo: PropTypes.string,
|
|
48
|
+
hasSidebar: PropTypes.bool,
|
|
49
|
+
isSidebarExpanded: PropTypes.bool
|
|
50
|
+
};
|
|
51
|
+
Footer.defaultProps = {
|
|
52
|
+
color: 'primary'
|
|
53
|
+
};
|
|
54
|
+
export default Footer;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Footer } from './Footer';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components Library/Footer',
|
|
5
|
+
component: Footer,
|
|
6
|
+
argTypes: {
|
|
7
|
+
color: {
|
|
8
|
+
options: ['primary', 'red'],
|
|
9
|
+
control: {
|
|
10
|
+
type: ''
|
|
11
|
+
},
|
|
12
|
+
hasSidebar: {
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
isSidebarExpanded: {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
default: false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const Template = args => /*#__PURE__*/React.createElement(Footer, args);
|
|
24
|
+
export const FooterPrimary = Template.bind({});
|
|
25
|
+
FooterPrimary.args = {};
|
|
26
|
+
export const FooterRed = Template.bind({});
|
|
27
|
+
FooterRed.args = {
|
|
28
|
+
color: 'red'
|
|
29
|
+
};
|
|
30
|
+
export const FooterRedWithSidebar = Template.bind({});
|
|
31
|
+
FooterRedWithSidebar.args = {
|
|
32
|
+
color: 'red',
|
|
33
|
+
hasSidebar: true,
|
|
34
|
+
isSidebarExpanded: true
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// export const footerprimary = () => <Footer color="primary"></Footer>
|
|
38
|
+
// export const footerred = () => <Footer color="red"></Footer>
|
|
39
|
+
|
|
40
|
+
//doublecheck:
|
|
41
|
+
// padding missing for primary in Footer.styles
|