@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,268 @@
|
|
|
1
|
+
import React, { PureComponent, Fragment } from 'react';
|
|
2
|
+
import { Collapse } from 'react-collapse';
|
|
3
|
+
import { navigate } from '@reach/router';
|
|
4
|
+
import ProfileBox from 'components/ProfileBox/ProfileBox';
|
|
5
|
+
import ProfileBadge from 'components/ProfileBadge/ProfileBadge';
|
|
6
|
+
import ProfileStat from 'components/ProfileStat/ProfileStat';
|
|
7
|
+
import ExpandButton from 'components/ExpandButton/ExpandButton';
|
|
8
|
+
import NotificationsCarousel from 'components/NotificationsCarousel/NotificationsCarousel';
|
|
9
|
+
import ToDoList, { ToDoTaskState
|
|
10
|
+
// ToDoTaskMessage,
|
|
11
|
+
} from 'components/ToDoList/ToDoList';
|
|
12
|
+
import Tabs, { Tab } from 'components/Tabs/Tabs';
|
|
13
|
+
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
14
|
+
import { VerifiedBadge } from 'components/SvgIcons';
|
|
15
|
+
import { DisplayOnBreakpoint } from 'styles/rwd';
|
|
16
|
+
import { AuthConsumer } from 'context/AuthContext/AuthContext';
|
|
17
|
+
import { EventDBConsumer } from 'context/EventDBContext/EventDBContext';
|
|
18
|
+
import { NotificationConsumer } from 'context/NotificationContext/NotificationContext';
|
|
19
|
+
import { Container, Main, AvatarBox, InfoBox, InfoInner, Badges, Badge, Stats, Stat, Togglers, Toggler, TabsContainer } from './ProfileHeader.styles';
|
|
20
|
+
import hexToTimestamp from 'utils/hex-to-timestamp';
|
|
21
|
+
import { BigNumber } from 'bignumber.js';
|
|
22
|
+
import avatarPlaceholder from 'static/images/avatar-placeholder.png';
|
|
23
|
+
import fetchData from 'api/fetch-data';
|
|
24
|
+
import UserChecklist from 'components/Checklist/UserChecklist';
|
|
25
|
+
class UserAvatarComponent extends React.Component {
|
|
26
|
+
state = {
|
|
27
|
+
finalAvatar: undefined
|
|
28
|
+
};
|
|
29
|
+
componentDidMount() {
|
|
30
|
+
const {
|
|
31
|
+
avatar
|
|
32
|
+
} = this.props;
|
|
33
|
+
this.checkUserPhoto(avatar);
|
|
34
|
+
}
|
|
35
|
+
componentDidUpdate(prevProps) {
|
|
36
|
+
const {
|
|
37
|
+
avatar
|
|
38
|
+
} = this.props;
|
|
39
|
+
if (!avatar && avatar !== prevProps.avatar) {
|
|
40
|
+
this.setState({
|
|
41
|
+
finalAvatar: undefined
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (avatar !== prevProps.avatar) {
|
|
45
|
+
this.checkUserPhoto(avatar);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
checkUserPhoto = avatar => {
|
|
49
|
+
try {
|
|
50
|
+
const http = new XMLHttpRequest();
|
|
51
|
+
http.open('HEAD', avatar, true);
|
|
52
|
+
http.send();
|
|
53
|
+
if (http.status !== 404) {
|
|
54
|
+
this.setState({
|
|
55
|
+
finalAvatar: avatar
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
} catch (error) {
|
|
59
|
+
console.log('error: ', error);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
render() {
|
|
63
|
+
const {
|
|
64
|
+
finalAvatar
|
|
65
|
+
} = this.state;
|
|
66
|
+
const {
|
|
67
|
+
authUser
|
|
68
|
+
} = this.props;
|
|
69
|
+
return /*#__PURE__*/React.createElement(ProfileBox, {
|
|
70
|
+
name: authUser.username ? authUser.username : authUser.email,
|
|
71
|
+
pictureSrc: finalAvatar || avatarPlaceholder,
|
|
72
|
+
handleEdit: () => navigate('/settings/profile-and-privacy')
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function NotificationTab({
|
|
77
|
+
isMobile,
|
|
78
|
+
notifications,
|
|
79
|
+
authUser
|
|
80
|
+
}) {
|
|
81
|
+
return /*#__PURE__*/React.createElement(NotificationsCarousel, {
|
|
82
|
+
dots: true,
|
|
83
|
+
isMobile: isMobile,
|
|
84
|
+
notifications: notifications,
|
|
85
|
+
authUser: authUser
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
const PANEL = {
|
|
89
|
+
NOTIFICATIONS: 'notifications',
|
|
90
|
+
TODOS: 'todos'
|
|
91
|
+
};
|
|
92
|
+
export class ProfileHeader extends PureComponent {
|
|
93
|
+
constructor(props) {
|
|
94
|
+
super(props);
|
|
95
|
+
this.tabScroll = /*#__PURE__*/React.createRef();
|
|
96
|
+
this.state = {
|
|
97
|
+
extendedPanel: null,
|
|
98
|
+
ether: 0,
|
|
99
|
+
euro: 0,
|
|
100
|
+
shouldRenderPage: false,
|
|
101
|
+
additionalDocsTodoList: [],
|
|
102
|
+
mandatoryTasksCount: 0,
|
|
103
|
+
walletsTasksCount: 0,
|
|
104
|
+
isFromAllowedCountry: undefined
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
async componentDidMount() {
|
|
108
|
+
const {
|
|
109
|
+
isChecklist,
|
|
110
|
+
user
|
|
111
|
+
} = this.props;
|
|
112
|
+
isChecklist && this.togglePanel(PANEL.TODOS);
|
|
113
|
+
!isChecklist && this.togglePanel(PANEL.NOTIFICATIONS);
|
|
114
|
+
this.generateTodos(user);
|
|
115
|
+
}
|
|
116
|
+
setOptionalTasks = todos => {
|
|
117
|
+
this.setState({
|
|
118
|
+
optionalTodoList: todos
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
setAdditionalDocs = todos => {
|
|
122
|
+
this.setState({
|
|
123
|
+
additionalDocsTodoList: todos
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
togglePanel = panelId => {
|
|
127
|
+
const {
|
|
128
|
+
extendedPanel
|
|
129
|
+
} = this.state;
|
|
130
|
+
this.setState({
|
|
131
|
+
extendedPanel: extendedPanel !== panelId ? panelId : null
|
|
132
|
+
});
|
|
133
|
+
const tabsNavOffsetTop = this.tabScroll.current.offsetTop;
|
|
134
|
+
let scrollToPosition = tabsNavOffsetTop + 1;
|
|
135
|
+
window.scrollTo({
|
|
136
|
+
top: scrollToPosition,
|
|
137
|
+
behavior: 'smooth'
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
render() {
|
|
141
|
+
const {
|
|
142
|
+
extendedPanel,
|
|
143
|
+
mandatoryTasksCount,
|
|
144
|
+
walletsTasksCount,
|
|
145
|
+
isFromAllowedCountry
|
|
146
|
+
} = this.state;
|
|
147
|
+
const badge = this.props.user.badge ? this.props.user.badge : 'Early Adopter';
|
|
148
|
+
return /*#__PURE__*/React.createElement(AuthConsumer, null, ({
|
|
149
|
+
authUser,
|
|
150
|
+
avatar
|
|
151
|
+
}) => /*#__PURE__*/React.createElement(EventDBConsumer, null, ({
|
|
152
|
+
totalInvestment,
|
|
153
|
+
dollarInEuro
|
|
154
|
+
}) => /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(NotificationConsumer, null, ({
|
|
155
|
+
notifications,
|
|
156
|
+
toggleIsRead,
|
|
157
|
+
unreadNotificationsCount
|
|
158
|
+
}) => /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(AvatarBox, null, /*#__PURE__*/React.createElement(UserAvatarComponent, {
|
|
159
|
+
authUser: authUser,
|
|
160
|
+
avatar: avatar
|
|
161
|
+
})), /*#__PURE__*/React.createElement(InfoBox, null, /*#__PURE__*/React.createElement(InfoInner, null, /*#__PURE__*/React.createElement(Badges, null, /*#__PURE__*/React.createElement(Badge, {
|
|
162
|
+
onClick: () => {
|
|
163
|
+
this.setState({
|
|
164
|
+
extendedPanel: PANEL.TODOS
|
|
165
|
+
});
|
|
166
|
+
const tabsNavOffsetTop = this.tabScroll.current.offsetTop;
|
|
167
|
+
let scrollToPosition = tabsNavOffsetTop + 1;
|
|
168
|
+
if (window.innerWidth < 768) {
|
|
169
|
+
scrollToPosition = tabsNavOffsetTop;
|
|
170
|
+
}
|
|
171
|
+
window.scrollTo({
|
|
172
|
+
top: scrollToPosition,
|
|
173
|
+
behavior: 'smooth'
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
isClickable: true
|
|
177
|
+
}, /*#__PURE__*/React.createElement(ProfileBadge, {
|
|
178
|
+
title: mandatoryTasksCount + walletsTasksCount === 0 && isFromAllowedCountry ? 'READY TO INVEST' : 'NOT READY TO INVEST',
|
|
179
|
+
icon: mandatoryTasksCount + walletsTasksCount === 0 && /*#__PURE__*/React.createElement(VerifiedBadge, null),
|
|
180
|
+
color: "red"
|
|
181
|
+
})), /*#__PURE__*/React.createElement(Badge, {
|
|
182
|
+
borderBottom: true
|
|
183
|
+
}, /*#__PURE__*/React.createElement(ProfileBadge, {
|
|
184
|
+
title: badge,
|
|
185
|
+
withIcon: true
|
|
186
|
+
}))), /*#__PURE__*/React.createElement(Stats, null, /*#__PURE__*/React.createElement(Stat, null, /*#__PURE__*/React.createElement(ProfileStat, {
|
|
187
|
+
label: "Total Investment",
|
|
188
|
+
unit: "\u20AC",
|
|
189
|
+
value: isFinite(totalInvestment) ? totalInvestment.toFixed(2) : '',
|
|
190
|
+
eqUnit: "$",
|
|
191
|
+
eqValue: isFinite(totalInvestment) ? (totalInvestment / dollarInEuro).toFixed(2) : ''
|
|
192
|
+
})))), /*#__PURE__*/React.createElement(Togglers, null, /*#__PURE__*/React.createElement(Toggler, null, /*#__PURE__*/React.createElement(ExpandButton, {
|
|
193
|
+
greenCounter: true,
|
|
194
|
+
title: "Notifications",
|
|
195
|
+
counter: unreadNotificationsCount,
|
|
196
|
+
isOpened: extendedPanel === PANEL.NOTIFICATIONS,
|
|
197
|
+
onClick: () => {
|
|
198
|
+
this.togglePanel(PANEL.NOTIFICATIONS);
|
|
199
|
+
}
|
|
200
|
+
}), /*#__PURE__*/React.createElement(DisplayOnBreakpoint, {
|
|
201
|
+
down: true,
|
|
202
|
+
breakpoint: "Medium"
|
|
203
|
+
}, /*#__PURE__*/React.createElement(Collapse, {
|
|
204
|
+
isOpened: extendedPanel === PANEL.NOTIFICATIONS
|
|
205
|
+
}, /*#__PURE__*/React.createElement(NotificationTab, {
|
|
206
|
+
isMobile: true,
|
|
207
|
+
notifications: notifications,
|
|
208
|
+
authUser: authUser
|
|
209
|
+
})))), /*#__PURE__*/React.createElement(Toggler, {
|
|
210
|
+
ref: this.tabScroll
|
|
211
|
+
}, /*#__PURE__*/React.createElement(ExpandButton, {
|
|
212
|
+
title: "Checklist",
|
|
213
|
+
counter: mandatoryTasksCount + walletsTasksCount,
|
|
214
|
+
isOpened: extendedPanel === PANEL.TODOS,
|
|
215
|
+
onClick: () => {
|
|
216
|
+
this.togglePanel(PANEL.TODOS);
|
|
217
|
+
}
|
|
218
|
+
}), /*#__PURE__*/React.createElement(DisplayOnBreakpoint, {
|
|
219
|
+
down: true,
|
|
220
|
+
breakpoint: "Medium"
|
|
221
|
+
}, /*#__PURE__*/React.createElement(Collapse, {
|
|
222
|
+
isOpened: extendedPanel === PANEL.TODOS
|
|
223
|
+
}, /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(UserChecklist, {
|
|
224
|
+
user: this.props.user
|
|
225
|
+
// redirectCookie
|
|
226
|
+
//additionalTasks={<AdditionalTask />}
|
|
227
|
+
// getTasksCount={taskCount => {
|
|
228
|
+
// this.setState({
|
|
229
|
+
// mandatoryTasksCount:
|
|
230
|
+
// taskCount.mandatoryTasksCount,
|
|
231
|
+
// walletsTasksCount:
|
|
232
|
+
// taskCount.walletTasksCount,
|
|
233
|
+
// })
|
|
234
|
+
// }}
|
|
235
|
+
})))))))), /*#__PURE__*/React.createElement(DisplayOnBreakpoint, {
|
|
236
|
+
up: true,
|
|
237
|
+
breakpoint: "Medium"
|
|
238
|
+
}, /*#__PURE__*/React.createElement(TabsContainer, null, /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
239
|
+
noPadding: true,
|
|
240
|
+
borderBottom: true
|
|
241
|
+
}, /*#__PURE__*/React.createElement(Collapse, {
|
|
242
|
+
isOpened: extendedPanel !== null
|
|
243
|
+
}, /*#__PURE__*/React.createElement(Tabs, {
|
|
244
|
+
activeTab: extendedPanel
|
|
245
|
+
}, /*#__PURE__*/React.createElement(Tab, {
|
|
246
|
+
tabId: PANEL.NOTIFICATIONS
|
|
247
|
+
}, /*#__PURE__*/React.createElement(NotificationTab, {
|
|
248
|
+
notifications: notifications,
|
|
249
|
+
authUser: authUser
|
|
250
|
+
})), /*#__PURE__*/React.createElement(Tab, {
|
|
251
|
+
tabId: PANEL.TODOS
|
|
252
|
+
}, /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(UserChecklist, {
|
|
253
|
+
user: this.props.user
|
|
254
|
+
// redirectCookie
|
|
255
|
+
//additionalTasks={<AdditionalTask />}
|
|
256
|
+
// getTasksCount={taskCount => {
|
|
257
|
+
// this.setState({
|
|
258
|
+
// mandatoryTasksCount:
|
|
259
|
+
// taskCount.mandatoryTasksCount,
|
|
260
|
+
// walletsTasksCount:
|
|
261
|
+
// taskCount.walletTasksCount,
|
|
262
|
+
// })
|
|
263
|
+
// }}
|
|
264
|
+
})))))))))))));
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export default ProfileHeader;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import rwd from 'styles/rwd';
|
|
3
|
+
import theme from 'styles/theme';
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
position: relative;
|
|
6
|
+
display: block;
|
|
7
|
+
`;
|
|
8
|
+
export const Main = styled.div`
|
|
9
|
+
position: relative;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
display: block;
|
|
12
|
+
|
|
13
|
+
${rwd.Medium`
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
`}
|
|
17
|
+
`;
|
|
18
|
+
export const AvatarBox = styled.div`
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
${rwd.Medium`
|
|
22
|
+
width: 31%;
|
|
23
|
+
`}
|
|
24
|
+
`;
|
|
25
|
+
export const InfoBox = styled.div`
|
|
26
|
+
width: 100%;
|
|
27
|
+
|
|
28
|
+
${rwd.Medium`
|
|
29
|
+
width: 69%;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
`}
|
|
33
|
+
`;
|
|
34
|
+
export const InfoInner = styled.div`
|
|
35
|
+
${rwd.Medium`
|
|
36
|
+
flex-grow: 1;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
41
|
+
export const Badges = styled.div`
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: row;
|
|
44
|
+
|
|
45
|
+
${rwd.Medium`
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
`}
|
|
48
|
+
|
|
49
|
+
${rwd.Large`
|
|
50
|
+
width: 27.6%;
|
|
51
|
+
`}
|
|
52
|
+
`;
|
|
53
|
+
export const Badge = styled.div`
|
|
54
|
+
flex-grow: 1;
|
|
55
|
+
display: flex;
|
|
56
|
+
cursor: ${({
|
|
57
|
+
isClickable
|
|
58
|
+
}) => isClickable && 'pointer'};
|
|
59
|
+
|
|
60
|
+
${rwd.Medium`
|
|
61
|
+
flex-grow: 1;
|
|
62
|
+
height: 50%;
|
|
63
|
+
`}
|
|
64
|
+
|
|
65
|
+
${props => props.borderTop && `
|
|
66
|
+
border-top: 1px solid ${theme.cLightGrey};
|
|
67
|
+
`};
|
|
68
|
+
|
|
69
|
+
${props => props.borderBottom && `
|
|
70
|
+
border-bottom: 1px solid ${theme.cLightGrey};
|
|
71
|
+
`};
|
|
72
|
+
`;
|
|
73
|
+
export const Stats = styled.div`
|
|
74
|
+
${rwd.Medium`
|
|
75
|
+
flex-grow: 1;
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
`}
|
|
79
|
+
`;
|
|
80
|
+
export const Stat = styled.div`
|
|
81
|
+
flex-grow: 1;
|
|
82
|
+
display: flex;
|
|
83
|
+
|
|
84
|
+
${rwd.Medium`
|
|
85
|
+
flex-grow: 1;
|
|
86
|
+
height: 50%;
|
|
87
|
+
`}
|
|
88
|
+
|
|
89
|
+
${props => props.borderTop && `
|
|
90
|
+
border-top: 1px solid ${theme.cPrimaryDark};
|
|
91
|
+
`};
|
|
92
|
+
|
|
93
|
+
${props => props.borderBottom && `
|
|
94
|
+
border-bottom: 1px solid ${theme.cPrimaryDark};
|
|
95
|
+
`};
|
|
96
|
+
`;
|
|
97
|
+
export const Togglers = styled.div`
|
|
98
|
+
${rwd.Medium`
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: row;
|
|
101
|
+
border-right: 64px solid ${props => theme.cWarning};
|
|
102
|
+
`}
|
|
103
|
+
`;
|
|
104
|
+
export const Toggler = styled.div`
|
|
105
|
+
${rwd.Medium`
|
|
106
|
+
flex-grow: 1;
|
|
107
|
+
border-left: 1px solid ${props => theme.cLightGrey};
|
|
108
|
+
`}
|
|
109
|
+
`;
|
|
110
|
+
export const TabsContainer = styled.div`
|
|
111
|
+
position: relative;
|
|
112
|
+
z-index: 0;
|
|
113
|
+
margin-top: -1px;
|
|
114
|
+
`;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Wrapper, Label, Value, Equal } from './ProfileStat.styles';
|
|
4
|
+
const lineBreaker = {
|
|
5
|
+
wordBreak: 'break-all'
|
|
6
|
+
};
|
|
7
|
+
export const ProfileStat = ({
|
|
8
|
+
label,
|
|
9
|
+
unit,
|
|
10
|
+
value,
|
|
11
|
+
eqUnit,
|
|
12
|
+
eqValue,
|
|
13
|
+
withBorder
|
|
14
|
+
}) => /*#__PURE__*/React.createElement(Wrapper, {
|
|
15
|
+
withBorder: withBorder
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
17
|
+
withBorder: withBorder
|
|
18
|
+
}, label), /*#__PURE__*/React.createElement(Value, {
|
|
19
|
+
style: lineBreaker
|
|
20
|
+
}, unit && /*#__PURE__*/React.createElement("span", null, unit), value), eqValue && eqUnit ? /*#__PURE__*/React.createElement(Equal, null, '= ', eqUnit && /*#__PURE__*/React.createElement("span", null, eqUnit), eqValue) : '');
|
|
21
|
+
ProfileStat.propTypes = {
|
|
22
|
+
label: PropTypes.string.isRequired,
|
|
23
|
+
unit: PropTypes.string,
|
|
24
|
+
value: PropTypes.string.isRequired,
|
|
25
|
+
eqUnit: PropTypes.string,
|
|
26
|
+
eqValue: PropTypes.string.isRequired
|
|
27
|
+
};
|
|
28
|
+
ProfileStat.defaultProps = {
|
|
29
|
+
unit: '',
|
|
30
|
+
eqUnit: ''
|
|
31
|
+
};
|
|
32
|
+
export default ProfileStat;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProfileStat } from './ProfileStat';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/Profile Stat',
|
|
6
|
+
component: ProfileStat,
|
|
7
|
+
argTypes: {
|
|
8
|
+
label: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
value: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
unit: {
|
|
17
|
+
type: 'string'
|
|
18
|
+
},
|
|
19
|
+
eqUnit: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
defaultValue: ''
|
|
22
|
+
},
|
|
23
|
+
eqValue: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
defaultValue: ''
|
|
26
|
+
},
|
|
27
|
+
withBorder: {
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
defaultValue: false
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(ProfileStat, args));
|
|
34
|
+
export const ProfileStatExample = Template.bind({});
|
|
35
|
+
ProfileStatExample.args = {
|
|
36
|
+
label: 'A Label',
|
|
37
|
+
value: '44',
|
|
38
|
+
unit: '$',
|
|
39
|
+
eqUnit: '€',
|
|
40
|
+
eqValue: '37,50'
|
|
41
|
+
};
|
|
42
|
+
export const ProfileStatBorderID = Template.bind({});
|
|
43
|
+
ProfileStatBorderID.args = {
|
|
44
|
+
label: 'A Label',
|
|
45
|
+
value: '44',
|
|
46
|
+
unit: '$',
|
|
47
|
+
eqUnit: '€',
|
|
48
|
+
eqValue: '37,50',
|
|
49
|
+
withBorder: true
|
|
50
|
+
};
|
|
51
|
+
export const ProfileStatOverview = Template.bind({});
|
|
52
|
+
ProfileStatOverview.args = {
|
|
53
|
+
label: 'A Label',
|
|
54
|
+
value: 'Value',
|
|
55
|
+
unit: 'Unit',
|
|
56
|
+
eqUnit: 'eq-Unit',
|
|
57
|
+
eqValue: 'eq-Value'
|
|
58
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import rwd from 'styles/rwd';
|
|
3
|
+
import theme from 'styles/theme';
|
|
4
|
+
export const Wrapper = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
text-align: center;
|
|
9
|
+
flex-grow: 1;
|
|
10
|
+
background-color: ${props => theme.cPrimary};
|
|
11
|
+
color: ${props => theme.cWhite};
|
|
12
|
+
padding: 32px;
|
|
13
|
+
|
|
14
|
+
${props => props.withBorder && `
|
|
15
|
+
box-shadow: inset 0 0.4px 0 0 #313131;
|
|
16
|
+
`}
|
|
17
|
+
|
|
18
|
+
${rwd.Medium`
|
|
19
|
+
padding: 12px 32px;
|
|
20
|
+
text-align: left;
|
|
21
|
+
`}
|
|
22
|
+
|
|
23
|
+
${rwd.Large`
|
|
24
|
+
padding: 12px 64px;
|
|
25
|
+
text-align: left;
|
|
26
|
+
`}
|
|
27
|
+
|
|
28
|
+
@media screen and (max-width: 768px) {
|
|
29
|
+
max-width: 100vw;
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
export const Label = styled.div`
|
|
33
|
+
font-size: 11px;
|
|
34
|
+
line-height: 2.18;
|
|
35
|
+
letter-spacing: 2.1px;
|
|
36
|
+
text-transform: uppercase;
|
|
37
|
+
margin-bottom: 10px;
|
|
38
|
+
|
|
39
|
+
${props => props.withBorder && `
|
|
40
|
+
color: #88fa51;
|
|
41
|
+
`}
|
|
42
|
+
`;
|
|
43
|
+
export const Value = styled.div`
|
|
44
|
+
font-weight: 300;
|
|
45
|
+
font-size: 32px;
|
|
46
|
+
line-height: 36px;
|
|
47
|
+
letter-spacing: 2.43px;
|
|
48
|
+
text-transform: uppercase;
|
|
49
|
+
|
|
50
|
+
& > span {
|
|
51
|
+
&:after {
|
|
52
|
+
content: ' ';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${rwd.Medium`
|
|
57
|
+
font-size: 44px;
|
|
58
|
+
line-height: 48px;
|
|
59
|
+
`}
|
|
60
|
+
|
|
61
|
+
${rwd.Large`
|
|
62
|
+
font-size: 55px;
|
|
63
|
+
line-height: 58px;
|
|
64
|
+
`}
|
|
65
|
+
`;
|
|
66
|
+
export const Equal = styled.div`
|
|
67
|
+
font-size: 11px;
|
|
68
|
+
line-height: 2.18;
|
|
69
|
+
letter-spacing: 2.1px;
|
|
70
|
+
text-transform: uppercase;
|
|
71
|
+
margin-top: 10px;
|
|
72
|
+
color: ${props => theme.cLighterGreen};
|
|
73
|
+
overflow-wrap: break-word;
|
|
74
|
+
|
|
75
|
+
& > span {
|
|
76
|
+
&:after {
|
|
77
|
+
content: ' ';
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import Icon, { iconsMap } from 'components/Icon/Icon.style';
|
|
2
|
+
import styled, { css } from 'styled-components/macro';
|
|
3
|
+
import Button from 'components/Button/Button.styles';
|
|
4
|
+
import theme from 'styles/theme';
|
|
5
|
+
export const CTABox = styled.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
|
|
9
|
+
${Button} {
|
|
10
|
+
width: 240px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
span {
|
|
14
|
+
font-size: 11px;
|
|
15
|
+
position: relative;
|
|
16
|
+
top: -2px;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
export const FileInput = styled.input.attrs(props => ({
|
|
20
|
+
type: 'file',
|
|
21
|
+
...props
|
|
22
|
+
}))`
|
|
23
|
+
visibility: hidden;
|
|
24
|
+
position: absolute;
|
|
25
|
+
width: 0.1px;
|
|
26
|
+
height: 0.1px;
|
|
27
|
+
z-index: -1;
|
|
28
|
+
`;
|
|
29
|
+
export const FileInputWrapper = styled(Button).attrs({
|
|
30
|
+
as: 'label',
|
|
31
|
+
type: undefined
|
|
32
|
+
})`
|
|
33
|
+
position: relative;
|
|
34
|
+
word-break: break-all;
|
|
35
|
+
margin: 0;
|
|
36
|
+
`;
|
|
37
|
+
export const FileInputRemove = styled(Icon).attrs({
|
|
38
|
+
icon: iconsMap.trash
|
|
39
|
+
})`
|
|
40
|
+
/* position: absolute; */
|
|
41
|
+
/* top: 50%; */
|
|
42
|
+
margin-right: 10px;
|
|
43
|
+
right: 0px;
|
|
44
|
+
/* transform: translateY(-50%); */
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
transition: 0.3s color;
|
|
48
|
+
color: ${props => theme.cWarning};
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
border: 1px solid ${props => theme.cLightGrey};
|
|
51
|
+
padding: 10px;
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
color: ${props => theme.cPrimary};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
${({
|
|
58
|
+
disabled
|
|
59
|
+
}) => disabled && css`
|
|
60
|
+
pointer-events: none !important;
|
|
61
|
+
opacity: 0.2;
|
|
62
|
+
cursor: default;
|
|
63
|
+
`}
|
|
64
|
+
`;
|
|
65
|
+
export const FileInputList = styled.ul`
|
|
66
|
+
list-style-type: none;
|
|
67
|
+
padding: 0;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
width: 100%;
|
|
70
|
+
`;
|
|
71
|
+
export const FileInputItem = styled.li`
|
|
72
|
+
padding: 0 46px 0 8px;
|
|
73
|
+
margin-right: 8px;
|
|
74
|
+
position: relative;
|
|
75
|
+
word-break: break-all;
|
|
76
|
+
`;
|