@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,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const VerifiedBadge = () => /*#__PURE__*/React.createElement("svg", {
|
|
3
|
+
width: "90",
|
|
4
|
+
height: "30",
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
6
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
7
|
+
d: "M84.707 1H5.293A4.3 4.3 0 0 0 1 5.308v19.384A4.3 4.3 0 0 0 5.293 29h79.414A4.3 4.3 0 0 0 89 24.692V5.308A4.3 4.3 0 0 0 84.707 1zM87 24.818C87 26.023 86.036 27 84.846 27H5.154C3.964 27 3 26.023 3 24.818V5.182C3 3.977 3.964 3 5.154 3h79.692C86.036 3 87 3.977 87 5.182v19.636zM53 15c0 .552-.481 1-1.075 1h-40.85C10.481 16 10 15.552 10 15s.481-1 1.075-1h40.85c.594 0 1.075.448 1.075 1zm26.54-4.832c.473.316.602.953.29 1.428l-5.96 8.949c-.183.27-.482.439-.808.455-.307 0-.6-.136-.796-.372l-3.033-3.58a1.056 1.056 0 1 1 1.646-1.324l2.07 2.514 5.174-7.79a1.035 1.035 0 0 1 1.417-.28z",
|
|
8
|
+
fill: "#FFF",
|
|
9
|
+
fillRule: "nonzero",
|
|
10
|
+
stroke: "#EE220D",
|
|
11
|
+
strokeWidth: ".5"
|
|
12
|
+
}));
|
|
13
|
+
export default VerifiedBadge;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import LogoSvg from './LogoSvg';
|
|
2
|
+
import CapsLockSvg from './CapsLockSvg';
|
|
3
|
+
import EthSvg from './EthSvg';
|
|
4
|
+
import EurSvg from './EurSvg';
|
|
5
|
+
import DocumentSvg from './DocumentSvg';
|
|
6
|
+
import PassportSvg from './PassportSvg';
|
|
7
|
+
import TwoSidedDocumentSvg from './TwoSidedDocumentSvg';
|
|
8
|
+
import CameraSvg from './CameraSvg';
|
|
9
|
+
import UploadSvg from './UploadSvg';
|
|
10
|
+
import DocumentBackSvg from './DocumentBackSvg';
|
|
11
|
+
import DocumentSmallSvg from './DocumentSmallSvg';
|
|
12
|
+
import FaceScanIconSvg from './FaceScanIconSvg';
|
|
13
|
+
import RefreshSvg from './RefreshSvg';
|
|
14
|
+
import AdminBadgeSvg from './AdminBadgeSvg';
|
|
15
|
+
import OneSvg from './OneSvg';
|
|
16
|
+
import TwoSvg from './TwoSvg';
|
|
17
|
+
import ThreeSvg from './ThreeSvg';
|
|
18
|
+
import FourSvg from './FourSvg';
|
|
19
|
+
import Glassess from './Glassess';
|
|
20
|
+
import VerifiedBadge from './VerifiedBadge';
|
|
21
|
+
import SocialFacebook from './SocialFacebook';
|
|
22
|
+
import SocialInstagram from './SocialInstagram';
|
|
23
|
+
import SocialLinkedIn from './SocialLinkedIn';
|
|
24
|
+
import SocialMedium from './SocialMedium';
|
|
25
|
+
import SocialReddit from './SocialReddit';
|
|
26
|
+
import SocialTelegram from './SocialTelegram';
|
|
27
|
+
import SocialTwitter from './SocialTwitter';
|
|
28
|
+
import SocialYoutube from './SocialYoutube';
|
|
29
|
+
import UpdateDefaultSvg from './UpdateDefaultSvg';
|
|
30
|
+
import UpdateSoftSvg from './UpdateSoftSvg';
|
|
31
|
+
import UpdateHardSvg from './UpdateHardSvg';
|
|
32
|
+
export { LogoSvg, CapsLockSvg, EthSvg, EurSvg, DocumentSvg, PassportSvg, TwoSidedDocumentSvg, CameraSvg, UploadSvg, DocumentBackSvg, DocumentSmallSvg, FaceScanIconSvg, RefreshSvg, AdminBadgeSvg, OneSvg, TwoSvg, ThreeSvg, FourSvg, Glassess, VerifiedBadge, SocialFacebook, SocialInstagram, SocialLinkedIn, SocialMedium, SocialReddit, SocialTelegram, SocialTwitter, SocialYoutube, UpdateDefaultSvg, UpdateSoftSvg, UpdateHardSvg };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Container, Value, Indicator } from './Switch.styles';
|
|
4
|
+
export const Switch = props => {
|
|
5
|
+
const {
|
|
6
|
+
value1,
|
|
7
|
+
value2,
|
|
8
|
+
handleChange,
|
|
9
|
+
mobile,
|
|
10
|
+
dark
|
|
11
|
+
} = props;
|
|
12
|
+
const [value, setValue] = useState(props.value);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
handleChange(value);
|
|
15
|
+
}, [value]);
|
|
16
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
17
|
+
mobile: mobile
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Value, {
|
|
19
|
+
active: value === value1,
|
|
20
|
+
onClick: () => setValue(value1),
|
|
21
|
+
dark: dark
|
|
22
|
+
}, value1), /*#__PURE__*/React.createElement(Indicator, {
|
|
23
|
+
value1: value === value1,
|
|
24
|
+
value2: value === value2,
|
|
25
|
+
onClick: () => setValue(value === value1 ? value2 : value1),
|
|
26
|
+
dark: dark
|
|
27
|
+
}), /*#__PURE__*/React.createElement(Value, {
|
|
28
|
+
active: value === value2,
|
|
29
|
+
onClick: () => setValue(value2),
|
|
30
|
+
dark: dark
|
|
31
|
+
}, value2));
|
|
32
|
+
};
|
|
33
|
+
Switch.propTypes = {
|
|
34
|
+
value: PropTypes.string.isRequired,
|
|
35
|
+
value1: PropTypes.string.isRequired,
|
|
36
|
+
value2: PropTypes.string.isRequired,
|
|
37
|
+
handleChange: PropTypes.func.isRequired,
|
|
38
|
+
mobile: PropTypes.bool,
|
|
39
|
+
dark: PropTypes.bool
|
|
40
|
+
};
|
|
41
|
+
Switch.defaultProps = {
|
|
42
|
+
mobile: false,
|
|
43
|
+
dark: false
|
|
44
|
+
};
|
|
45
|
+
export default Switch;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Switch from './Switch';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components Library/Switch',
|
|
7
|
+
component: Switch,
|
|
8
|
+
argTypes: {
|
|
9
|
+
value: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
value1: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
value2: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
handleChange: {
|
|
22
|
+
type: 'function',
|
|
23
|
+
required: true,
|
|
24
|
+
action: 'handleChange'
|
|
25
|
+
},
|
|
26
|
+
mobile: {
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
defaultValue: false
|
|
29
|
+
},
|
|
30
|
+
dark: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
defaultValue: false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
parameters: {
|
|
36
|
+
viewport: {
|
|
37
|
+
viewports: INITIAL_VIEWPORTS,
|
|
38
|
+
defaultViewport: 'reset viewport'
|
|
39
|
+
},
|
|
40
|
+
backgrounds: {
|
|
41
|
+
default: ''
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(Switch, args));
|
|
46
|
+
export const SwitchDefault = Template.bind({});
|
|
47
|
+
SwitchDefault.args = {};
|
|
48
|
+
export const SwitchDark = Template.bind({});
|
|
49
|
+
SwitchDark.args = {
|
|
50
|
+
value: 'Initial Value',
|
|
51
|
+
value1: 'Click on Value 1',
|
|
52
|
+
value2: 'Click on Value 2',
|
|
53
|
+
dark: true
|
|
54
|
+
};
|
|
55
|
+
SwitchDark.parameters = {
|
|
56
|
+
backgrounds: {
|
|
57
|
+
default: 'black'
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export const SwitchMobile = Template.bind({});
|
|
61
|
+
SwitchMobile.args = {
|
|
62
|
+
value: 'Initial Value',
|
|
63
|
+
value1: 'Click on Value 1',
|
|
64
|
+
value2: 'Click on Value 2',
|
|
65
|
+
mobile: true
|
|
66
|
+
};
|
|
67
|
+
SwitchMobile.parameters = {
|
|
68
|
+
viewport: {
|
|
69
|
+
defaultViewport: 'iphonexsmax'
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
//now stories automatically changing to dark and mobile situatons
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import theme from 'styles/theme';
|
|
3
|
+
const switchWidth = 34;
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
display: inline-block;
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
position: relative;
|
|
8
|
+
font-size: 0;
|
|
9
|
+
text-align: center;
|
|
10
|
+
|
|
11
|
+
${props => props.mobile && `
|
|
12
|
+
display: block;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 18px 0;
|
|
15
|
+
`}
|
|
16
|
+
`;
|
|
17
|
+
export const Value = styled.div`
|
|
18
|
+
display: inline-block;
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
font-size: 11px;
|
|
21
|
+
line-height: 16px;
|
|
22
|
+
letter-spacing: 2px;
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
padding: 2px 0;
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
color: ${props => theme.cBlack};
|
|
27
|
+
transition: opacity 0.2s, color 0.2s;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
color: ${props => theme.cPrimary};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
${props => props.active && `
|
|
35
|
+
opacity: 1;
|
|
36
|
+
`}
|
|
37
|
+
|
|
38
|
+
${props => props.dark && `
|
|
39
|
+
color: ${theme.cPrimary};
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
color: ${theme.cBlack};
|
|
43
|
+
}
|
|
44
|
+
`};
|
|
45
|
+
`;
|
|
46
|
+
export const Indicator = styled.button`
|
|
47
|
+
display: inline-block;
|
|
48
|
+
vertical-align: middle;
|
|
49
|
+
width: ${switchWidth}px;
|
|
50
|
+
height: 16px;
|
|
51
|
+
border-radius: 8px;
|
|
52
|
+
background-color: ${props => theme.cGrey};
|
|
53
|
+
margin: 0 16px;
|
|
54
|
+
position: relative;
|
|
55
|
+
outline: 0;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
|
|
58
|
+
&:before {
|
|
59
|
+
content: '';
|
|
60
|
+
display: block;
|
|
61
|
+
width: 18px;
|
|
62
|
+
height: 18px;
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 50%;
|
|
65
|
+
left: 50%;
|
|
66
|
+
margin-top: -9px;
|
|
67
|
+
margin-left: -9px;
|
|
68
|
+
border-radius: 9px;
|
|
69
|
+
background-color: ${props => theme.cBlack};
|
|
70
|
+
transform: translateX(0);
|
|
71
|
+
transition: transform .2s, background-color .2s;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
&:before {
|
|
76
|
+
background-color: ${props => theme.cPrimary};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${props => props.dark && `
|
|
81
|
+
background-color: ${theme.cGrey2};
|
|
82
|
+
|
|
83
|
+
&:before {
|
|
84
|
+
background-color: ${theme.cPrimary};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
&:before {
|
|
89
|
+
background-color: ${theme.cBlack};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`}
|
|
93
|
+
|
|
94
|
+
${props => props.value1 && `
|
|
95
|
+
&:before {
|
|
96
|
+
transform: translateX(-${switchWidth / 2 - 8}px);
|
|
97
|
+
}
|
|
98
|
+
`}
|
|
99
|
+
|
|
100
|
+
${props => props.value2 && `
|
|
101
|
+
&:before {
|
|
102
|
+
transform: translateX(${switchWidth / 2 - 8}px);
|
|
103
|
+
}
|
|
104
|
+
`}
|
|
105
|
+
`;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { TransitionGroup, Transition } from 'react-transition-group';
|
|
4
|
+
import { StyledTabs, Tab } from './Tabs.styles';
|
|
5
|
+
export { Tab };
|
|
6
|
+
const timeout = 300;
|
|
7
|
+
const getTransitionStyles = {
|
|
8
|
+
entering: {
|
|
9
|
+
position: 'absolute',
|
|
10
|
+
opacity: 0
|
|
11
|
+
},
|
|
12
|
+
entered: {
|
|
13
|
+
transition: `opacity ${timeout}ms ease-in-out`,
|
|
14
|
+
opacity: 1
|
|
15
|
+
},
|
|
16
|
+
exiting: {
|
|
17
|
+
transition: `opacity ${timeout}ms ease-in-out`,
|
|
18
|
+
opacity: 0
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export const Tabs = ({
|
|
22
|
+
children,
|
|
23
|
+
activeTab
|
|
24
|
+
}) => /*#__PURE__*/React.createElement(TransitionGroup, {
|
|
25
|
+
component: StyledTabs
|
|
26
|
+
}, React.Children.map(children, child => {
|
|
27
|
+
if (child.props.tabId !== activeTab || ! /*#__PURE__*/React.isValidElement(child)) return null;
|
|
28
|
+
return /*#__PURE__*/React.createElement(Transition, {
|
|
29
|
+
key: child.props.tabId,
|
|
30
|
+
timeout: {
|
|
31
|
+
enter: timeout,
|
|
32
|
+
exit: timeout
|
|
33
|
+
}
|
|
34
|
+
}, status => /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
style: {
|
|
36
|
+
height: '100%',
|
|
37
|
+
...getTransitionStyles[status]
|
|
38
|
+
}
|
|
39
|
+
}, child));
|
|
40
|
+
}));
|
|
41
|
+
Tabs.propTypes = {
|
|
42
|
+
children: PropTypes.node.isRequired,
|
|
43
|
+
activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
44
|
+
};
|
|
45
|
+
Tabs.defaultProps = {
|
|
46
|
+
activeTab: 0
|
|
47
|
+
};
|
|
48
|
+
export default Tabs;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// import React from 'react'
|
|
2
|
+
// import Tabs from './Tabs'
|
|
3
|
+
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
4
|
+
// import Number from 'components/Number/Number'
|
|
5
|
+
|
|
6
|
+
// export default {
|
|
7
|
+
// title: 'Components Library/Tabs/Tabs',
|
|
8
|
+
// component: Tabs,
|
|
9
|
+
// argTypes: {
|
|
10
|
+
// children: { type: 'node', defaultValue: [], required: true },
|
|
11
|
+
// activeTab: { type: 'oneOf Number or String', defaultValue: 0 },
|
|
12
|
+
// },
|
|
13
|
+
// }
|
|
14
|
+
|
|
15
|
+
// const Template = args => (
|
|
16
|
+
// <ComponentWrapper>
|
|
17
|
+
// <Tabs {...args} />
|
|
18
|
+
// </ComponentWrapper>
|
|
19
|
+
// )
|
|
20
|
+
|
|
21
|
+
// export const TabsExample = Template.bind({})
|
|
22
|
+
// TabsExample.args = {
|
|
23
|
+
// children: [<Number />, <Number />, <Number />],
|
|
24
|
+
// activeTab: 3,
|
|
25
|
+
// }
|
|
26
|
+
|
|
27
|
+
// //doublecheck:
|
|
28
|
+
// // less visible than in TabNav ( activeTab not showing)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { StyledTab, LinkText } from './TabsNav.styles';
|
|
4
|
+
export const TabNav = ({
|
|
5
|
+
children,
|
|
6
|
+
isActive,
|
|
7
|
+
onClick
|
|
8
|
+
}) => /*#__PURE__*/React.createElement(StyledTab, {
|
|
9
|
+
onClick: onClick,
|
|
10
|
+
isActive: isActive
|
|
11
|
+
}, /*#__PURE__*/React.createElement(LinkText, null, children));
|
|
12
|
+
TabNav.propTypes = {
|
|
13
|
+
children: PropTypes.node.isRequired,
|
|
14
|
+
isActive: PropTypes.bool,
|
|
15
|
+
onClick: PropTypes.func
|
|
16
|
+
};
|
|
17
|
+
TabNav.defaultProps = {
|
|
18
|
+
isActive: false,
|
|
19
|
+
onClick: () => {}
|
|
20
|
+
};
|
|
21
|
+
export default TabNav;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Number from 'components/Number/Number';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TabNav } from './TabNav';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/Tabs/TabNav',
|
|
6
|
+
component: TabNav,
|
|
7
|
+
argTypes: {
|
|
8
|
+
children: {
|
|
9
|
+
type: 'node',
|
|
10
|
+
defaultValue: [],
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
isActive: {
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
defaultValue: false
|
|
16
|
+
},
|
|
17
|
+
onClick: {
|
|
18
|
+
type: 'function',
|
|
19
|
+
action: 'onClick'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const Template = args => /*#__PURE__*/React.createElement(TabNav, args);
|
|
24
|
+
export const TabNavActive = Template.bind({});
|
|
25
|
+
TabNavActive.args = {
|
|
26
|
+
children: [/*#__PURE__*/React.createElement(Number, null), /*#__PURE__*/React.createElement(Number, null), /*#__PURE__*/React.createElement(Number, null)],
|
|
27
|
+
isActive: true
|
|
28
|
+
};
|
|
29
|
+
export const TabNavInactive = Template.bind({});
|
|
30
|
+
TabNavInactive.args = {
|
|
31
|
+
children: [/*#__PURE__*/React.createElement(Number, null), /*#__PURE__*/React.createElement(Number, null), /*#__PURE__*/React.createElement(Number, null)]
|
|
32
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { StyledTabs, Scroll, TabsWrapper } from './TabsNav.styles';
|
|
4
|
+
import TabNav from './TabNav';
|
|
5
|
+
export { TabNav };
|
|
6
|
+
export const TabsNav = ({
|
|
7
|
+
children,
|
|
8
|
+
activeTab
|
|
9
|
+
}) => /*#__PURE__*/React.createElement(StyledTabs, null, /*#__PURE__*/React.createElement(Scroll, null, /*#__PURE__*/React.createElement(TabsWrapper, null, React.Children.map(children, child => {
|
|
10
|
+
if (! /*#__PURE__*/React.isValidElement(child)) return null;
|
|
11
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
12
|
+
...child.props,
|
|
13
|
+
isActive: child.props.tabId === activeTab
|
|
14
|
+
});
|
|
15
|
+
}))));
|
|
16
|
+
TabsNav.propTypes = {
|
|
17
|
+
children: PropTypes.node.isRequired,
|
|
18
|
+
activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
19
|
+
};
|
|
20
|
+
TabsNav.defaultProps = {
|
|
21
|
+
activeTab: 0
|
|
22
|
+
};
|
|
23
|
+
export default TabsNav;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// import React from 'react'
|
|
2
|
+
// import { TabsNav } from './TabsNav'
|
|
3
|
+
// import Number from 'components/Number/Number'
|
|
4
|
+
|
|
5
|
+
// export default {
|
|
6
|
+
// title: 'Components Library/Tabs/TabsNav',
|
|
7
|
+
// component: TabsNav,
|
|
8
|
+
// argTypes: {
|
|
9
|
+
// children: { type: 'node', defaultValue: [], required: true },
|
|
10
|
+
// activeTab: { type: 'array of numbers', defaultValue: [] },
|
|
11
|
+
|
|
12
|
+
// // handleItemClick: { type: 'function', action: 'handleItemClick' },
|
|
13
|
+
// },
|
|
14
|
+
// }
|
|
15
|
+
|
|
16
|
+
// const Template = args => <TabsNav {...args} />
|
|
17
|
+
|
|
18
|
+
// export const TabsNavExample = Template.bind({})
|
|
19
|
+
// TabsNavExample.args = {
|
|
20
|
+
// children: [<Number />, <Number />, <Number />],
|
|
21
|
+
// activeTab: [1],
|
|
22
|
+
// }
|
|
23
|
+
|
|
24
|
+
// //doublecheck:
|
|
25
|
+
// // less visible than in TabNav ( activeTab not showing)
|
|
@@ -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 StyledTabs = styled.div`
|
|
5
|
+
position: relative;
|
|
6
|
+
border-bottom: 1px solid ${props => theme.cLightGrey};
|
|
7
|
+
`;
|
|
8
|
+
export const Scroll = styled.div`
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
overflow-x: auto;
|
|
12
|
+
`;
|
|
13
|
+
export const TabsWrapper = styled.div`
|
|
14
|
+
position: relative;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
padding: 12px 0;
|
|
17
|
+
|
|
18
|
+
${rwd.Medium`
|
|
19
|
+
padding: 24px;
|
|
20
|
+
`}
|
|
21
|
+
`;
|
|
22
|
+
export const LinkText = styled.span`
|
|
23
|
+
display: block;
|
|
24
|
+
position: relative;
|
|
25
|
+
font-family: 'Open Sans';
|
|
26
|
+
font-size: 11px;
|
|
27
|
+
letter-spacing: 2px;
|
|
28
|
+
line-height: 20px;
|
|
29
|
+
text-transform: uppercase;
|
|
30
|
+
padding: 8px 0;
|
|
31
|
+
|
|
32
|
+
&:before {
|
|
33
|
+
content: '';
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 8px;
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 100%;
|
|
39
|
+
left: 0%;
|
|
40
|
+
transition: background-color 0.2s;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
export const StyledTab = styled.button`
|
|
44
|
+
display: inline-block;
|
|
45
|
+
position: relative;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
outline: none;
|
|
48
|
+
visibility: visible;
|
|
49
|
+
padding: 12px;
|
|
50
|
+
color: ${props => theme.cBlack};
|
|
51
|
+
transition: opacity 0.2s;
|
|
52
|
+
|
|
53
|
+
${rwd.Medium`
|
|
54
|
+
padding: 24px;
|
|
55
|
+
`}
|
|
56
|
+
|
|
57
|
+
${rwd.Large`
|
|
58
|
+
padding: 32px 40px;
|
|
59
|
+
`}
|
|
60
|
+
|
|
61
|
+
&:focus ,
|
|
62
|
+
&:hover {
|
|
63
|
+
opacity: 0.6;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${props => props.isActive && `
|
|
67
|
+
&:focus ,
|
|
68
|
+
&:hover {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
${LinkText} {
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
|
|
75
|
+
&:before {
|
|
76
|
+
background-color: ${theme.cPrimary}!important;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`}
|
|
80
|
+
`;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { AdminBadgeSvg } from 'components/SvgIcons';
|
|
4
|
+
import { Container, ImageWrapper, ContentWrapper, Avatar, Name, ContentGroup, SmallHeader, ProjectStats, ProjectStat, PersonPosition, PersonEmail, StatLabel, StatValue } from './TeamOverview.styles';
|
|
5
|
+
import avatarPlaceholder from 'static/images/avatar-placeholder.png';
|
|
6
|
+
export const TeamOverview = ({
|
|
7
|
+
name,
|
|
8
|
+
memberRole,
|
|
9
|
+
avatar,
|
|
10
|
+
position,
|
|
11
|
+
email,
|
|
12
|
+
projectName,
|
|
13
|
+
stats
|
|
14
|
+
}) => {
|
|
15
|
+
const [profilePicture, setProfilePicture] = useState(avatarPlaceholder);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const getPicture = async () => {
|
|
18
|
+
const picture = await getProfilePicture();
|
|
19
|
+
setProfilePicture(picture);
|
|
20
|
+
};
|
|
21
|
+
getPicture();
|
|
22
|
+
}, []);
|
|
23
|
+
const getProfilePicture = () => {
|
|
24
|
+
return new Promise(async (resolve, reject) => {
|
|
25
|
+
try {
|
|
26
|
+
const http = new XMLHttpRequest();
|
|
27
|
+
http.open('HEAD', avatar, false);
|
|
28
|
+
http.send();
|
|
29
|
+
// console.log(http);
|
|
30
|
+
|
|
31
|
+
if (http.status !== 404) {
|
|
32
|
+
resolve(avatar);
|
|
33
|
+
} else {
|
|
34
|
+
resolve(avatarPlaceholder);
|
|
35
|
+
}
|
|
36
|
+
} catch (error) {
|
|
37
|
+
reject(avatarPlaceholder);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ImageWrapper, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
42
|
+
src: profilePicture,
|
|
43
|
+
alt: "avatar"
|
|
44
|
+
})), /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement(ContentGroup, null, /*#__PURE__*/React.createElement(SmallHeader, null, memberRole === 'company_sa' && /*#__PURE__*/React.createElement(AdminBadgeSvg, null), /*#__PURE__*/React.createElement("span", null, memberRole)), /*#__PURE__*/React.createElement(Name, null, name), /*#__PURE__*/React.createElement(PersonPosition, null, position), /*#__PURE__*/React.createElement(PersonEmail, null, email)), /*#__PURE__*/React.createElement(ContentGroup, null, /*#__PURE__*/React.createElement(SmallHeader, null, /*#__PURE__*/React.createElement("span", null, "Project")), /*#__PURE__*/React.createElement(Name, null, projectName), stats && /*#__PURE__*/React.createElement(ProjectStats, null, stats.map(stat => /*#__PURE__*/React.createElement(ProjectStat, {
|
|
45
|
+
key: stat.name
|
|
46
|
+
}, /*#__PURE__*/React.createElement(StatLabel, null, stat.name), /*#__PURE__*/React.createElement(StatValue, null, stat.count)))))));
|
|
47
|
+
};
|
|
48
|
+
TeamOverview.propTypes = {
|
|
49
|
+
name: PropTypes.string,
|
|
50
|
+
memberRole: PropTypes.string,
|
|
51
|
+
avatar: PropTypes.string,
|
|
52
|
+
position: PropTypes.string,
|
|
53
|
+
email: PropTypes.string,
|
|
54
|
+
projectName: PropTypes.string,
|
|
55
|
+
stats: PropTypes.arrayOf(PropTypes.shape({
|
|
56
|
+
name: PropTypes.string,
|
|
57
|
+
count: PropTypes.number
|
|
58
|
+
}))
|
|
59
|
+
};
|
|
60
|
+
TeamOverview.defaultProps = {
|
|
61
|
+
stats: [],
|
|
62
|
+
name: '',
|
|
63
|
+
memberRole: '',
|
|
64
|
+
avatar: '',
|
|
65
|
+
position: '',
|
|
66
|
+
email: '',
|
|
67
|
+
projectName: ''
|
|
68
|
+
};
|
|
69
|
+
export default TeamOverview;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TeamOverview } from './TeamOverview';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/Team Overview',
|
|
6
|
+
component: TeamOverview,
|
|
7
|
+
argTypes: {
|
|
8
|
+
name: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
defaultValue: ''
|
|
11
|
+
},
|
|
12
|
+
memberrole: {
|
|
13
|
+
type: 'string'
|
|
14
|
+
},
|
|
15
|
+
avatar: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
defaultValue: ''
|
|
18
|
+
},
|
|
19
|
+
email: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
defaultValue: ''
|
|
22
|
+
},
|
|
23
|
+
position: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
defaultValue: ''
|
|
26
|
+
},
|
|
27
|
+
projectName: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
defaultValue: ''
|
|
30
|
+
},
|
|
31
|
+
stats: {
|
|
32
|
+
type: 'array of shape',
|
|
33
|
+
defaultValue: [{
|
|
34
|
+
name: ''
|
|
35
|
+
}, {
|
|
36
|
+
count: 0
|
|
37
|
+
}],
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(TeamOverview, args));
|
|
43
|
+
export const TeamOverviewExample = Template.bind({});
|
|
44
|
+
TeamOverviewExample.args = {
|
|
45
|
+
name: 'John Doe',
|
|
46
|
+
memberrole: 'Memberrole',
|
|
47
|
+
avatar: 'Avatar',
|
|
48
|
+
email: 'john@doe.com',
|
|
49
|
+
position: 'Chief',
|
|
50
|
+
projectName: 'Aquarius is Raising',
|
|
51
|
+
stats: [{
|
|
52
|
+
count: 15,
|
|
53
|
+
name: 'Stat Name'
|
|
54
|
+
}]
|
|
55
|
+
};
|
|
56
|
+
export const TeamOverviewOverview = Template.bind({});
|
|
57
|
+
TeamOverviewOverview.args = {
|
|
58
|
+
name: 'Name',
|
|
59
|
+
memberrole: 'Memberrole ',
|
|
60
|
+
avatar: 'Avatar',
|
|
61
|
+
email: 'Email',
|
|
62
|
+
position: 'Position',
|
|
63
|
+
projectName: 'Project Name',
|
|
64
|
+
stats: [{
|
|
65
|
+
count: 1,
|
|
66
|
+
name: 'Stat Name'
|
|
67
|
+
}]
|
|
68
|
+
};
|