@stokr/components-library 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +9 -0
- package/build/favicon.ico +0 -0
- package/build/index.html +1 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/build/static/js/main.31d6cfe0.js +0 -0
- package/dist/AccountBalance/AccountBalance.js +43 -0
- package/dist/AccountBalance/AccountBalance.stories.js +75 -0
- package/dist/AccountBalance/AccountBalance.styles.js +38 -0
- package/dist/AdminDashboard/Table/Table.js +120 -0
- package/dist/AdminDashboard/Table/Table.styles.js +111 -0
- package/dist/AgreementItem/AgreementItem.js +38 -0
- package/dist/AgreementItem/AgreementItem.stories.js +98 -0
- package/dist/AgreementItem/AgreementItem.styles.js +31 -0
- package/dist/AnalyticGraphs/Analytic.js +528 -0
- package/dist/AnalyticGraphs/Analytic.styles.js +49 -0
- package/dist/BackButton/BackButton.js +22 -0
- package/dist/BackButton/BackButton.stories.js +24 -0
- package/dist/BackButton/BackButton.styles.js +110 -0
- package/dist/Background/Background.js +34 -0
- package/dist/Background/Background.stories.js +50 -0
- package/dist/Background/Background.styles.js +113 -0
- package/dist/BarChart/BarChart.js +258 -0
- package/dist/BarChart/BarChart.stories.js +46 -0
- package/dist/BarChart/BarChart.styles.js +93 -0
- package/dist/BarChartLegend/BarChartLegend.js +74 -0
- package/dist/BarChartLegend/BarChartLegend.styles.js +26 -0
- package/dist/BasicTable/BasicTable.js +20 -0
- package/dist/BasicTable/BasicTable.stories.js +51 -0
- package/dist/BasicTable/BasicTable.styles.js +64 -0
- package/dist/Button/Button.stories.js +63 -0
- package/dist/Button/Button.styles.js +180 -0
- package/dist/ButtonContainer/ButtonContainer.styles.js +25 -0
- package/dist/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +35 -0
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.js +23 -0
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +36 -0
- package/dist/ChartBox/ChartBox.js +34 -0
- package/dist/ChartBox/ChartBox.stories.js +9 -0
- package/dist/ChartBox/ChartBox.styles.js +50 -0
- package/dist/ChartBox/ChartBoxDistribution.js +20 -0
- package/dist/ChartBox/ChartBoxDistribution.stories.js +10 -0
- package/dist/ChartLegend/ChartLegend.js +37 -0
- package/dist/ChartLegend/ChartLegend.stories.js +74 -0
- package/dist/ChartLegend/ChartLegend.styles.js +67 -0
- package/dist/Checkbox/Checkbox.js +108 -0
- package/dist/Checkbox/Checkbox.stories.js +82 -0
- package/dist/Checkbox/Checkbox.styles.js +123 -0
- package/dist/Checklist/UserChecklist.js +247 -0
- package/dist/Checklist/UserChecklist.stories.js +115 -0
- package/dist/ComponentScroll/ComponentScroll.js +99 -0
- package/dist/ComponentScroll/ComponentScroll.stories.js +92 -0
- package/dist/ComponentScroll/ComponentScroll.styles.js +104 -0
- package/dist/ComponentWrapper/ComponentWrapper.styles.js +128 -0
- package/dist/CryptoAddress/ComponentWrap.js +24 -0
- package/dist/CryptoAddress/CryptoAddress.js +124 -0
- package/dist/CryptoAddress/CryptoAddress.stories.js +163 -0
- package/dist/CryptoAddress/CryptoAddress.styles.js +399 -0
- package/dist/CryptoAddress/RadioWrap.js +36 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.js +42 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.stories.js +65 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.styles.js +114 -0
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.js +30 -0
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +98 -0
- package/dist/DonutChart/DonutChart.js +137 -0
- package/dist/DonutChart/DonutChart.stories.js +39 -0
- package/dist/DonutChart/DonutChart.styles.js +101 -0
- package/dist/DoubleButton/DoubleButton.styles.js +25 -0
- package/dist/ErrorMessage/ErrorMessage.styles.js +9 -0
- package/dist/FAQ/FAQ.js +40 -0
- package/dist/FAQ/FAQ.stories.js +63 -0
- package/dist/FAQ/FAQ.styles.js +69 -0
- package/dist/Footer/Footer.js +54 -0
- package/dist/Footer/Footer.stories.js +41 -0
- package/dist/Footer/Footer.styles.js +230 -0
- package/dist/Footer/FooterLayout.js +114 -0
- package/dist/Footer/FooterLayout.stories.js +20 -0
- package/dist/Footer/FooterMenu.js +83 -0
- package/dist/Footer/FooterMenu.stories.js +110 -0
- package/dist/Footer/FooterMenu.styles.js +274 -0
- package/dist/Footer/index.js +4 -0
- package/dist/{03f9f978feb2b015b6812ba10f689967.png → Footer/lemonway.png} +0 -0
- package/dist/Footer/sicos-logo.svg +1 -0
- package/dist/ForgotPasswordModal/ForgotPasswordModal.js +89 -0
- package/dist/ForgotPasswordModal/ForgotPasswordModal.stories.js +31 -0
- package/dist/Form/Form.js +38 -0
- package/dist/Form/Form.stories.js +24 -0
- package/dist/Form/Form.styles.js +66 -0
- package/dist/FullscreenCard/FullscreenCard.styles.js +36 -0
- package/dist/Grid/Grid.styles.js +109 -0
- package/dist/Header/Header.js +369 -0
- package/dist/Header/Header.stories.js +172 -0
- package/dist/Header/Header.styles.js +493 -0
- package/dist/Icon/Icon.style.js +75 -0
- package/dist/InfoIcon/InfoIcon.js +40 -0
- package/dist/InfoIcon/InfoIcon.stories.js +40 -0
- package/dist/InfoIcon/InfoIcon.styles.js +42 -0
- package/dist/InfoPanel/InfoPanel.js +115 -0
- package/dist/Input/DatePickerInput.js +64 -0
- package/dist/Input/DatePickerInput.stories.js +80 -0
- package/dist/Input/DatePickerInput.styles.js +67 -0
- package/dist/Input/Input.js +86 -0
- package/dist/Input/Input.stories.js +134 -0
- package/dist/Input/Input.styles.js +126 -0
- package/dist/Input/InputPassword.js +122 -0
- package/dist/Input/InputPassword.stories.js +72 -0
- package/dist/Input/InputPassword.styles.js +139 -0
- package/dist/Input/RangeInput.js +46 -0
- package/dist/Input/RangeInput.stories.js +48 -0
- package/dist/Input/RangeInput.styles.js +125 -0
- package/dist/Input/Select.js +130 -0
- package/dist/Input/Select.stories.js +129 -0
- package/dist/Input/Select.styles.js +143 -0
- package/dist/InvestCalculator/InvestCalculator.js +353 -0
- package/dist/InvestCalculator/InvestCalculator.stories.js +129 -0
- package/dist/InvestCalculator/InvestCalculator.styles.js +78 -0
- package/dist/InvestmentStat/InvestmentStat.js +33 -0
- package/dist/InvestmentStat/InvestmentStat.stories.js +44 -0
- package/dist/InvestmentStat/InvestmentStat.styles.js +53 -0
- package/dist/KYCFlow/BasicInfo.js +396 -0
- package/dist/KYCFlow/Confirmation.js +37 -0
- package/dist/KYCFlow/DocumentFileUpload.js +240 -0
- package/dist/KYCFlow/DocumentScan.js +66 -0
- package/dist/KYCFlow/DocumentScanUpload.js +228 -0
- package/dist/KYCFlow/DocumentSelect.js +101 -0
- package/dist/KYCFlow/DocumentSuccess.js +54 -0
- package/dist/KYCFlow/DocumentUpload.js +44 -0
- package/dist/KYCFlow/DocumentVerificationType.js +114 -0
- package/dist/KYCFlow/FaceScan.js +45 -0
- package/dist/KYCFlow/FaceScanRecognition.js +52 -0
- package/dist/KYCFlow/FaceScanSuccess.js +47 -0
- package/dist/KYCFlow/Terms.js +99 -0
- package/dist/KYCFlow/_styles.js +284 -0
- package/dist/KYCFlow/index.js +14 -0
- package/dist/KYCSelectBox/KYCSelectBox.styles.js +62 -0
- package/dist/LatestUpdate/LatestUpdate.js +35 -0
- package/dist/LatestUpdate/LatestUpdate.stories.js +51 -0
- package/dist/LatestUpdate/LatestUpdate.styles.js +77 -0
- package/dist/Layout/Layout-func-no-work.js +67 -0
- package/dist/Layout/Layout.js +68 -0
- package/dist/Layout/Layout.stories.js +55 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.js +39 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.stories.js +58 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.styles.js +205 -0
- package/dist/LearnMorePage/LearnMore.js +199 -0
- package/dist/LearnMorePage/LearnMore.shared.styles.js +49 -0
- package/dist/LearnMorePage/LearnMore.stories.js +41 -0
- package/dist/LearnMorePage/LearnMore.styles.js +250 -0
- package/dist/LearnMorePage/LearnMoreExampleObject.js +102 -0
- package/dist/LearnMorePage/LearnMoreItem.js +59 -0
- package/dist/LearnMorePage/LearnMoreItem.stories.js +54 -0
- package/dist/LearnMorePage/LearnMoreItem.styles.js +218 -0
- package/dist/LearnMoreSection/LearnMore.js +144 -0
- package/dist/LearnMoreSection/LearnMore.stories.js +23 -0
- package/dist/LearnMoreSection/LearnMore.styles.js +134 -0
- package/dist/LearnMoreSection/LearnMoreItem.js +39 -0
- package/dist/LearnMoreSection/LearnMoreItem.stories.js +52 -0
- package/dist/LearnMoreSection/LearnMoreItem.styles.js +54 -0
- package/dist/LoginModal/LoginModal.js +125 -0
- package/dist/MainMenu/DynamicMainMenu.js +41 -0
- package/dist/MainMenu/MainMenu.js +207 -0
- package/dist/MainMenu/MainMenu.styles.js +361 -0
- package/dist/MatomoConnect/Matomo.js +221 -0
- package/dist/MatomoConnect/Matomo_fuckup.js +185 -0
- package/dist/MenuNav/MenuNav.styles.js +88 -0
- package/dist/Modal/Modal.js +71 -0
- package/dist/Modal/Modal.stories.js +67 -0
- package/dist/Modal/Modal.styles.js +407 -0
- package/dist/MultiProgressBar/MultiProgressBar.js +33 -0
- package/dist/MultiProgressBar/MultiProgressBar.stories.js +61 -0
- package/dist/MultiProgressBar/MultiProgressBar.styles.js +92 -0
- package/dist/Newsletter/Newsletter.js +106 -0
- package/dist/Newsletter/Newsletter.stories.js +8 -0
- package/dist/Newsletter/Newsletter.styles.js +173 -0
- package/dist/NotificationContext/NotificationContext.js +126 -0
- package/dist/NotificationContext/NotificationContext.stories.js +32 -0
- package/dist/NotificationCounter/NotificationCounter.styles.js +23 -0
- package/dist/Number/Number.js +25 -0
- package/dist/Number/Number.stories.js +18 -0
- package/dist/Number/Number.styles.js +21 -0
- package/dist/PageTransition/PageTransition.js +42 -0
- package/dist/Process/Process.stories.js +34 -0
- package/dist/Process/Process.styles.js +87 -0
- package/dist/ProfileBadge/ProfileBadge.js +46 -0
- package/dist/ProfileBadge/ProfileBadge.stories.js +37 -0
- package/dist/ProfileBadge/ProfileBadge.styles.js +47 -0
- package/dist/ProfileBox/ProfileBox.js +29 -0
- package/dist/ProfileBox/ProfileBox.stories.js +27 -0
- package/dist/ProfileBox/ProfileBox.styles.js +60 -0
- package/dist/ProfileHeader/ProfileHeader-CLb4.js +401 -0
- package/dist/ProfileHeader/ProfileHeader.js +268 -0
- package/dist/ProfileHeader/ProfileHeader.styles.js +114 -0
- package/dist/ProfileStat/ProfileStat.js +32 -0
- package/dist/ProfileStat/ProfileStat.stories.js +58 -0
- package/dist/ProfileStat/ProfileStat.styles.js +80 -0
- package/dist/ProofOfAddress/ProofOfAddress.styles.js +76 -0
- package/dist/ROI/ROI.js +261 -0
- package/dist/ROI/ROI.styles.js +71 -0
- package/dist/ROI/ROIChart.js +348 -0
- package/dist/ROI/ROIChart.styles.js +98 -0
- package/dist/ROI/ROIModal.js +74 -0
- package/dist/ROI/ROIScenarioBox.js +46 -0
- package/dist/ROI/ROIScenarioBox.styles.js +131 -0
- package/dist/Radio/Radio.js +58 -0
- package/dist/Radio/Radio.stories.js +65 -0
- package/dist/Radio/Radio.styles.js +93 -0
- package/dist/RefreshButton/RefreshButton.js +14 -0
- package/dist/RefreshButton/RefreshButton.stories.js +31 -0
- package/dist/RefreshButton/RefreshButton.styles.js +57 -0
- package/dist/RegisterAlgorand/AlgoAddressName.js +103 -0
- package/dist/RegisterAlgorand/AlgoAdressSelect.js +274 -0
- package/dist/RegisterAlgorand/AlgoConnectWallet.js +37 -0
- package/dist/RegisterAlgorand/AlgoSuccess.js +28 -0
- package/dist/RegisterAlgorand/Algorand.stories.js +63 -0
- package/dist/RegisterAlgorand/ChooseWallet.js +77 -0
- package/dist/RegisterAlgorand/SelectProject.js +77 -0
- package/dist/RegisterAlgorand/_styles.js +30 -0
- package/dist/RegisterAlgorand/flow.js +243 -0
- package/dist/RegisterAlgorand/flowWithMemo.js +244 -0
- package/dist/RegisterAlgorand/index.js +7 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.js +30 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.stories.js +22 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.styles.js +19 -0
- package/dist/RegisterEthereum/EthAddressLedger.js +151 -0
- package/dist/RegisterEthereum/EthAddressMetamask.js +165 -0
- package/dist/RegisterEthereum/EthAddressName.js +101 -0
- package/dist/RegisterEthereum/EthConnectLedger.js +117 -0
- package/dist/RegisterEthereum/EthConnectMetamask.js +25 -0
- package/dist/RegisterEthereum/EthFinish.js +32 -0
- package/dist/RegisterEthereum/EthIntro.js +77 -0
- package/dist/RegisterEthereum/_styles.js +30 -0
- package/dist/RegisterEthereum/index.js +9 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.js +75 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +65 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +69 -0
- package/dist/RegisterLiquidSteps/assets/nav_green.svg +31 -0
- package/dist/RegisterLiquidSteps/assets/video.mp4 +0 -0
- package/dist/RegisterLiquidSteps/assets/videothumbnail.jpg +0 -0
- package/dist/RegisterLiquidSteps/complete.js +29 -0
- package/dist/RegisterLiquidSteps/flow.js +141 -0
- package/dist/RegisterLiquidSteps/index.js +29 -0
- package/dist/RegisterLiquidSteps/register-liquid.js +197 -0
- package/dist/RegisterModal/RegisterModal.js +143 -0
- package/dist/RegisterModal/RegisterModal.stories.js +35 -0
- package/dist/RequestDataBox/RequestDataBox.js +21 -0
- package/dist/RequestDataBox/RequestDataBox.stories.js +29 -0
- package/dist/RequestDataBox/RequestDataBox.styles.js +40 -0
- package/dist/RiskQuestionnaire/RiskQuestionnaireContext.js +111 -0
- package/dist/RiskQuestionnaire/_styles.js +6 -0
- package/dist/SEO/SEO.js +63 -0
- package/dist/SEO/SEO.stories.js +53 -0
- package/dist/SectionTitle/SectionTitle.styles.js +23 -0
- package/dist/SideLine/SideLine.js +4 -0
- package/dist/SideLine/SideLine.stories.js +20 -0
- package/dist/SideLine/SideLine.styles.js +29 -0
- package/dist/SigningSubflow/SignSubAddressMetamask.js +105 -0
- package/dist/SigningSubflow/SignSubConnectLedger.js +114 -0
- package/dist/SigningSubflow/SignSubConnectMetamask.js +101 -0
- package/dist/SigningSubflow/SignSubIntro.js +45 -0
- package/dist/SigningSubflow/SignSubSendLedger.js +114 -0
- package/dist/SigningSubflow/SignSubSendMetamask.js +53 -0
- package/dist/SigningSubflow/SignSubTransactionLedger.js +125 -0
- package/dist/SigningSubflow/SignSubTransactionMetamask.js +130 -0
- package/dist/SigningSubflow/_styles.js +59 -0
- package/dist/SigningSubflow/index.js +9 -0
- package/dist/Slider/Slider.js +43 -0
- package/dist/Slider/Slider.stories.js +63 -0
- package/dist/Slider/Slider.styles.js +115 -0
- package/dist/SpanButton/SpanButton.styles.js +14 -0
- package/dist/StatusBadge/StatusBadge.styles.js +16 -0
- package/dist/StepController/StepController.js +73 -0
- package/dist/StepController/StepController.stories.js +52 -0
- package/dist/StepController/StepController.styles.js +27 -0
- package/dist/StepController/StepControllerContext.js +61 -0
- package/dist/StepController/StepControllerProgress.js +28 -0
- package/dist/StepController/StepControllerProgress.stories.js +41 -0
- package/dist/StepsProgress/StepsProgress.js +95 -0
- package/dist/StepsProgress/StepsProgress.stories.js +23 -0
- package/dist/StepsProgress/StepsProgress.styles.js +97 -0
- package/dist/StokrLoader/StokrLoader.js +60 -0
- package/dist/StokrLoader/media.js +22 -0
- package/dist/StokrLoader/stokr_loader_white_400x400.gif +0 -0
- package/dist/SvgIcons/AdminBadgeSvg.js +16 -0
- package/dist/SvgIcons/CameraSvg.js +26 -0
- package/dist/SvgIcons/CapsLockSvg.js +21 -0
- package/dist/SvgIcons/DocumentBackSvg.js +25 -0
- package/dist/SvgIcons/DocumentSmallSvg.js +51 -0
- package/dist/SvgIcons/DocumentSvg.js +28 -0
- package/dist/SvgIcons/Early.js +14 -0
- package/dist/SvgIcons/EthSvg.js +30 -0
- package/dist/SvgIcons/EurSvg.js +16 -0
- package/dist/SvgIcons/FaceScanIconSvg.js +21 -0
- package/dist/SvgIcons/FourSvg.js +11 -0
- package/dist/SvgIcons/Glassess.js +19 -0
- package/dist/SvgIcons/Icons_Badge.png +0 -0
- package/dist/SvgIcons/LogoSvg.js +14 -0
- package/dist/SvgIcons/OneSvg.js +13 -0
- package/dist/SvgIcons/PassportSvg.js +46 -0
- package/dist/SvgIcons/RefreshSvg.js +17 -0
- package/dist/SvgIcons/SocialFacebook.js +15 -0
- package/dist/SvgIcons/SocialInstagram.js +15 -0
- package/dist/SvgIcons/SocialLinkedIn.js +15 -0
- package/dist/SvgIcons/SocialMedium.js +15 -0
- package/dist/SvgIcons/SocialReddit.js +15 -0
- package/dist/SvgIcons/SocialTelegram.js +15 -0
- package/dist/SvgIcons/SocialTwitter.js +15 -0
- package/dist/SvgIcons/SocialYoutube.js +15 -0
- package/dist/SvgIcons/ThreeSvg.js +10 -0
- package/dist/SvgIcons/TwoSidedDocumentSvg.js +72 -0
- package/dist/SvgIcons/TwoSvg.js +13 -0
- package/dist/SvgIcons/UpdateDefaultSvg.js +19 -0
- package/dist/SvgIcons/UpdateHardSvg.js +15 -0
- package/dist/SvgIcons/UpdateSoftSvg.js +17 -0
- package/dist/SvgIcons/UploadSvg.js +24 -0
- package/dist/SvgIcons/VerifiedBadge.js +13 -0
- package/dist/SvgIcons/index.js +32 -0
- package/dist/Switch/Switch.js +45 -0
- package/dist/Switch/Switch.stories.js +73 -0
- package/dist/Switch/Switch.styles.js +105 -0
- package/dist/Tabs/Tabs.js +48 -0
- package/dist/Tabs/Tabs.stories.js +28 -0
- package/dist/Tabs/Tabs.styles.js +11 -0
- package/dist/TabsNav/TabNav.js +21 -0
- package/dist/TabsNav/TabNav.stories.js +32 -0
- package/dist/TabsNav/TabsNav.js +23 -0
- package/dist/TabsNav/TabsNav.stories.js +25 -0
- package/dist/TabsNav/TabsNav.styles.js +80 -0
- package/dist/TeamOverview/TeamOverview.js +69 -0
- package/dist/TeamOverview/TeamOverview.stories.js +68 -0
- package/dist/TeamOverview/TeamOverview.styles.js +152 -0
- package/dist/Text/Headline.js +34 -0
- package/dist/Text/Headline.stories.js +40 -0
- package/dist/Text/StyledText.js +30 -0
- package/dist/Text/Text.stories.js +59 -0
- package/dist/Text/Text.styles.js +166 -0
- package/dist/TextLink/TextLink.styles.js +50 -0
- package/dist/ToDoList/ToDoList.js +172 -0
- package/dist/ToDoList/ToDoList.stories.js +123 -0
- package/dist/ToDoList/ToDoList.styles.js +115 -0
- package/dist/ToDoList/ToDoListTask.js +96 -0
- package/dist/ToDoList/ToDoListTask.stories.js +60 -0
- package/dist/ToDoList/ToDoListTask.styles.js +104 -0
- package/dist/TransactionDetails/TransactionDetails.js +27 -0
- package/dist/TransactionDetails/TransactionDetails.stories.js +47 -0
- package/dist/TransactionDetails/TransactionDetails.styles.js +31 -0
- package/dist/TransactionInfo/TransactionInfo.js +48 -0
- package/dist/TransactionInfo/TransactionInfo.stories.js +53 -0
- package/dist/TransactionInfo/TransactionInfo.styles.js +64 -0
- package/dist/TwoFactorModal/TwoFactorModal.js +84 -0
- package/dist/breakdown/Breakdown.js +124 -0
- package/dist/breakdown/index.js +2 -0
- package/dist/context/Auth.js +133 -0
- package/dist/context/AuthContext.js +154 -0
- package/dist/icons/Arrow.js +62 -0
- package/dist/icons/Arrow.stories.js +37 -0
- package/dist/icons/ArrowSimple.js +51 -0
- package/dist/icons/ArrowSimple.stories.js +41 -0
- package/dist/icons/Check.js +29 -0
- package/dist/icons/Check.stories.js +14 -0
- package/dist/icons/Facebook.js +15 -0
- package/dist/icons/Facebook.stories.js +15 -0
- package/dist/icons/Info.js +41 -0
- package/dist/icons/Info.stories.js +8 -0
- package/dist/icons/Instagram.js +15 -0
- package/dist/icons/Instagram.stories.js +15 -0
- package/dist/icons/LinkIcon.js +23 -0
- package/dist/icons/LinkIcon.stories.js +15 -0
- package/dist/icons/LinkedIn.js +29 -0
- package/dist/icons/LinkedIn.stories.js +8 -0
- package/dist/icons/Medium.js +28 -0
- package/dist/icons/Medium.stories.js +8 -0
- package/dist/icons/Reddit.js +18 -0
- package/dist/icons/Reddit.stories.js +15 -0
- package/dist/icons/Share.js +48 -0
- package/dist/icons/Share.stories.js +8 -0
- package/dist/icons/Telegram.js +28 -0
- package/dist/icons/Telegram.stories.js +8 -0
- package/dist/icons/Twitter.js +15 -0
- package/dist/icons/Twitter.stories.js +15 -0
- package/dist/icons/X.js +15 -0
- package/dist/icons/X.stories.js +8 -0
- package/dist/icons/Youtube.js +15 -0
- package/dist/icons/Youtube.stories.js +15 -0
- package/dist/icons/index.js +15 -0
- package/dist/index.js +177 -1
- package/dist/renderToBody/index.js +2 -0
- package/dist/renderToBody/renderToBody.js +26 -0
- package/dist/taxId/TaxId.stories.js +31 -0
- package/dist/taxId/complete.js +21 -0
- package/dist/taxId/flow.js +31 -0
- package/dist/taxId/index.js +4 -0
- package/dist/taxId/register-taxid.js +156 -0
- package/dist/video/Video.js +274 -0
- package/dist/video/Video.stories.js +45 -0
- package/dist/video/img/play-btn.svg +1 -0
- package/dist/video/index.js +2 -0
- package/package.json +128 -133
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/dist/07233f511246c9825a0d58e5ab2641f3.svg +0 -47
- package/dist/08418fc6c324f51f7e56.svg +0 -1
- package/dist/14aa35d4e84aebef77cf00b421fc393a.gif +0 -0
- package/dist/179ef2df02cb0b68c9fd.woff2 +0 -0
- package/dist/21e493d43617de76dbc7.woff2 +0 -0
- package/dist/2640959b1f9381cde047.eot +0 -0
- package/dist/2ba2db4ff86a2663686a100e75b50ba9.png +0 -0
- package/dist/311956ded96d3fd2813d.woff2 +0 -0
- package/dist/39f5961b2d3eb4aa5bf5.woff +0 -0
- package/dist/3caa0d4f9b7d58668066.woff2 +0 -0
- package/dist/4a510354f2f82b59fced805a8e3fe2bf.svg +0 -1
- package/dist/4c3c428d0ce82f840710.woff +0 -0
- package/dist/4e528d6445ca1974c313.woff +0 -0
- package/dist/55053cc0a8e6482eca64.ttf +0 -0
- package/dist/643c37f102b41f7f90c3.woff2 +0 -0
- package/dist/76dd0ed9c3f137513fd4.svg +0 -1
- package/dist/81f3ef07b7952e249da1.woff +0 -0
- package/dist/98b7d3182f652f021bc3.ttf +0 -0
- package/dist/9bea22b57dc165ed4382.ttf +0 -0
- package/dist/9ec738fbb66068dc1ca7.woff +0 -0
- package/dist/a1d7666a48f976227722.ttf +0 -0
- package/dist/a750292d6a0b5a760679.woff +0 -0
- package/dist/b85a961d44cc55c58050cbf7c53dd505.png +0 -0
- package/dist/bcb6531cf820152b7538.ttf +0 -0
- package/dist/c6a4bc1bd034d6303053.woff +0 -0
- package/dist/cbfc24090ef8bacab132.woff2 +0 -0
- package/dist/d2b1865643b98c0e8b54.ttf +0 -0
- package/dist/d97d7385fe8771611848.ttf +0 -0
- package/dist/index.js.LICENSE.txt +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import * as d3 from 'd3';
|
|
4
|
+
import { Container, Bar, Label } from './BarChartLegend.styles';
|
|
5
|
+
const gradients = {
|
|
6
|
+
default: {
|
|
7
|
+
start: '#0050ca',
|
|
8
|
+
end: '#0050ca'
|
|
9
|
+
},
|
|
10
|
+
red: {
|
|
11
|
+
start: '#f24f45',
|
|
12
|
+
end: '#ee220d'
|
|
13
|
+
},
|
|
14
|
+
blue: {
|
|
15
|
+
start: '#6a97e0',
|
|
16
|
+
end: '#0050ca'
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export class BarChartLegend extends PureComponent {
|
|
20
|
+
componentDidMount() {
|
|
21
|
+
this.createChart();
|
|
22
|
+
}
|
|
23
|
+
createChart = () => {
|
|
24
|
+
if (!this.barEl) return;
|
|
25
|
+
const {
|
|
26
|
+
id,
|
|
27
|
+
colorTheme
|
|
28
|
+
} = this.props;
|
|
29
|
+
const width = 50;
|
|
30
|
+
const thickness = 6;
|
|
31
|
+
const radius = thickness / 2;
|
|
32
|
+
this.svg = d3.select(this.barEl).append('svg').attr('width', width).attr('height', thickness);
|
|
33
|
+
this.defs = this.svg.append('defs');
|
|
34
|
+
|
|
35
|
+
// #region gradient
|
|
36
|
+
this.gradient = this.defs.append('linearGradient').attr('id', `${id}-barChartLegend-gradient`).attr('x1', '0%').attr('x2', '100%').attr('y1', '50%').attr('y2', '50%');
|
|
37
|
+
this.gradient.append('stop').attr('class', 'start').attr('offset', '0%').attr('stop-color', gradients[colorTheme].start).attr('stop-opacity', 1);
|
|
38
|
+
this.gradient.append('stop').attr('class', 'end').attr('offset', '100%').attr('stop-color', gradients[colorTheme].end).attr('stop-opacity', 1);
|
|
39
|
+
// #endregion gradient
|
|
40
|
+
|
|
41
|
+
// #region bars
|
|
42
|
+
this.bar = this.svg.append('path').attr('class', 'bar').style('fill', `url(#${id}-barChartLegend-gradient)`).attr('d', item => `
|
|
43
|
+
M 0 0
|
|
44
|
+
A ${radius} ${radius} 0 0 1 ${radius} ${-radius}
|
|
45
|
+
H ${width - radius}
|
|
46
|
+
A ${radius} ${radius} 0 0 1 ${width} 0
|
|
47
|
+
A ${radius} ${radius} 0 0 1 ${width - radius} ${radius}
|
|
48
|
+
H ${radius}
|
|
49
|
+
A ${radius} ${radius} 0 0 1 0 0
|
|
50
|
+
Z
|
|
51
|
+
`).attr('transform', `translate(0, ${radius})`);
|
|
52
|
+
// #endregion bars
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
render() {
|
|
56
|
+
const {
|
|
57
|
+
label
|
|
58
|
+
} = this.props;
|
|
59
|
+
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Bar, {
|
|
60
|
+
ref: el => {
|
|
61
|
+
this.barEl = el;
|
|
62
|
+
}
|
|
63
|
+
}), /*#__PURE__*/React.createElement(Label, null, label));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
BarChartLegend.propTypes = {
|
|
67
|
+
id: PropTypes.string.isRequired,
|
|
68
|
+
label: PropTypes.string.isRequired,
|
|
69
|
+
colorTheme: PropTypes.oneOf(['default', 'red', 'blue'])
|
|
70
|
+
};
|
|
71
|
+
BarChartLegend.defaultProps = {
|
|
72
|
+
colorTheme: 'default'
|
|
73
|
+
};
|
|
74
|
+
export default BarChartLegend;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import theme from 'styles/theme';
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
position: relative;
|
|
5
|
+
font-size: 0;
|
|
6
|
+
padding: 2px 0;
|
|
7
|
+
`;
|
|
8
|
+
export const Bar = styled.div`
|
|
9
|
+
z-index: 1;
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
width: 50px;
|
|
14
|
+
margin-right: -50px;
|
|
15
|
+
`;
|
|
16
|
+
export const Label = styled.div`
|
|
17
|
+
z-index: 0;
|
|
18
|
+
position: relative;
|
|
19
|
+
display: inline-block;
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
padding-left: 70px;
|
|
22
|
+
max-width: 100%;
|
|
23
|
+
color: ${props => theme.cGrey2};
|
|
24
|
+
font-size: 11px;
|
|
25
|
+
line-height: 16px;
|
|
26
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Table, Row, Label, Value, LabelWarning, Caption } from './BasicTable.styles';
|
|
4
|
+
export const BasicTable = ({
|
|
5
|
+
data,
|
|
6
|
+
filled,
|
|
7
|
+
smallPadding
|
|
8
|
+
}) => /*#__PURE__*/React.createElement(Table, {
|
|
9
|
+
filled: filled
|
|
10
|
+
}, data.map((item, itemKey) => /*#__PURE__*/React.createElement(Row, {
|
|
11
|
+
key: item.label,
|
|
12
|
+
smallPadding: smallPadding
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Label, null, item.label), /*#__PURE__*/React.createElement(Value, null, item.value, /*#__PURE__*/React.createElement(Caption, null, item.valueDescription)), item.labelwarning ? /*#__PURE__*/React.createElement(LabelWarning, null, item.labelwarning) : '')));
|
|
14
|
+
BasicTable.propTypes = {
|
|
15
|
+
data: PropTypes.arrayOf(PropTypes.shape({
|
|
16
|
+
label: PropTypes.string.isRequired,
|
|
17
|
+
value: PropTypes.string.isRequired
|
|
18
|
+
})).isRequired
|
|
19
|
+
};
|
|
20
|
+
export default BasicTable;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import BasicTable from './BasicTable';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/Basic Table',
|
|
6
|
+
component: BasicTable,
|
|
7
|
+
argTypes: {
|
|
8
|
+
data: {
|
|
9
|
+
type: 'array of shape with two strings',
|
|
10
|
+
required: true,
|
|
11
|
+
defaultValue: [{
|
|
12
|
+
lable: ''
|
|
13
|
+
}]
|
|
14
|
+
},
|
|
15
|
+
filled: {
|
|
16
|
+
defaultValue: ''
|
|
17
|
+
},
|
|
18
|
+
smallPadding: {
|
|
19
|
+
defaultValue: ''
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(BasicTable, args));
|
|
24
|
+
export const BasicTableExample = Template.bind({});
|
|
25
|
+
BasicTableExample.args = {
|
|
26
|
+
data: [{
|
|
27
|
+
lable: 'table lable',
|
|
28
|
+
value: 'a value'
|
|
29
|
+
}]
|
|
30
|
+
};
|
|
31
|
+
export const BasicTableSeveral = Template.bind({});
|
|
32
|
+
BasicTableSeveral.args = {
|
|
33
|
+
data: [{
|
|
34
|
+
lable: 'table lable',
|
|
35
|
+
value: 'a value'
|
|
36
|
+
}, {
|
|
37
|
+
lable: 'table lable 1',
|
|
38
|
+
value: 'another value'
|
|
39
|
+
}, {
|
|
40
|
+
lable: 'table lable 2',
|
|
41
|
+
value: 'and another'
|
|
42
|
+
}, {
|
|
43
|
+
lable: 'table lable 3',
|
|
44
|
+
value: 'value'
|
|
45
|
+
}]
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
//doublecheck:
|
|
49
|
+
// why is lable not showing?
|
|
50
|
+
// took out {value:''} from default data array
|
|
51
|
+
// because since merge it includes a caption component that breaks SB
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import rwd from 'styles/rwd';
|
|
3
|
+
import theme from 'styles/theme';
|
|
4
|
+
export const Table = styled.div`
|
|
5
|
+
display: block;
|
|
6
|
+
border: 1px solid ${props => theme.cLightGrey};
|
|
7
|
+
${props => props.filled && `
|
|
8
|
+
background: #e1e1e1; //${props => theme.cLightGrey};
|
|
9
|
+
`}
|
|
10
|
+
`;
|
|
11
|
+
export const Row = styled.div`
|
|
12
|
+
font-size: 11px;
|
|
13
|
+
line-height: 24px;
|
|
14
|
+
letter-spacing: 2.1px;
|
|
15
|
+
text-transform: uppercase;
|
|
16
|
+
padding: 16px 24px;
|
|
17
|
+
display: block;
|
|
18
|
+
|
|
19
|
+
${rwd.XLarge`
|
|
20
|
+
padding: 16px 46px;
|
|
21
|
+
`}
|
|
22
|
+
|
|
23
|
+
& + & {
|
|
24
|
+
border-top: 1px solid ${props => theme.cLightGrey};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:after {
|
|
28
|
+
content: '';
|
|
29
|
+
display: block;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 0;
|
|
32
|
+
clear: both;
|
|
33
|
+
}
|
|
34
|
+
${props => props.smallPadding && `
|
|
35
|
+
padding: 14px 6px;
|
|
36
|
+
`}
|
|
37
|
+
`;
|
|
38
|
+
export const Label = styled.div`
|
|
39
|
+
float: left;
|
|
40
|
+
max-width: 50%;
|
|
41
|
+
text-align: start;
|
|
42
|
+
`;
|
|
43
|
+
export const Value = styled.div`
|
|
44
|
+
float: right;
|
|
45
|
+
display: grid;
|
|
46
|
+
max-width: 50%;
|
|
47
|
+
`;
|
|
48
|
+
export const LabelWarning = styled.div`
|
|
49
|
+
float: left;
|
|
50
|
+
text-align: left;
|
|
51
|
+
width: 100%;
|
|
52
|
+
color: #ee220d;
|
|
53
|
+
line-height: 16px;
|
|
54
|
+
`;
|
|
55
|
+
export const Caption = styled.div`
|
|
56
|
+
text-transform: initial;
|
|
57
|
+
font-size: 11px;
|
|
58
|
+
float: right;
|
|
59
|
+
letter-spacing: 0.6px;
|
|
60
|
+
font-style: italic;
|
|
61
|
+
//position: absolute;
|
|
62
|
+
//right: 7px;
|
|
63
|
+
//bottom: 0px;
|
|
64
|
+
`;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Button from 'components/Button/Button.styles';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
import { ButtonContainer } from '../ButtonContainer/ButtonContainer.styles';
|
|
5
|
+
// import { DoubleButtons } from '../DoubleButton/DoubleButton.styles'
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components Library/Buttons/Button',
|
|
9
|
+
component: Button,
|
|
10
|
+
argTypes: {
|
|
11
|
+
secondary: {
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
defaultValue: false
|
|
14
|
+
},
|
|
15
|
+
disabled: {
|
|
16
|
+
type: 'boolean',
|
|
17
|
+
defaultValue: false
|
|
18
|
+
},
|
|
19
|
+
negative: {
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
defaultValue: false
|
|
22
|
+
},
|
|
23
|
+
center: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
defaultValue: false
|
|
26
|
+
}
|
|
27
|
+
// outLine: { type: 'boolean', defaultValue: false },
|
|
28
|
+
// marginTop: { type: 'boolean', defaultValue: false },
|
|
29
|
+
// marginRight: { type: 'boolean', defaultValue: false },
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(ButtonContainer, null, /*#__PURE__*/React.createElement(Button, args, "Button")));
|
|
34
|
+
export const ButtonDefault = Template.bind({});
|
|
35
|
+
ButtonDefault.args = {};
|
|
36
|
+
export const ButtonSecondary = Template.bind({});
|
|
37
|
+
ButtonSecondary.args = {
|
|
38
|
+
secondary: true
|
|
39
|
+
};
|
|
40
|
+
export const ButtonDisabled = Template.bind({});
|
|
41
|
+
ButtonDisabled.args = {
|
|
42
|
+
disabled: true
|
|
43
|
+
};
|
|
44
|
+
export const ButtonNegative = Template.bind({});
|
|
45
|
+
ButtonNegative.args = {
|
|
46
|
+
negative: true
|
|
47
|
+
};
|
|
48
|
+
export const ButtonCenter = Template.bind({});
|
|
49
|
+
ButtonCenter.args = {
|
|
50
|
+
center: true
|
|
51
|
+
};
|
|
52
|
+
export const ButtonLong = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(ButtonContainer, null, /*#__PURE__*/React.createElement(Button, args, "Much Longer Button Label")));
|
|
53
|
+
|
|
54
|
+
// export const DoubleButton = args => (
|
|
55
|
+
// <ComponentWrapper>
|
|
56
|
+
// <DoubleButtons />
|
|
57
|
+
// </ComponentWrapper>
|
|
58
|
+
// )
|
|
59
|
+
|
|
60
|
+
// doublecheck:
|
|
61
|
+
//other props mentioned in Button.styles that are not in propTypes:
|
|
62
|
+
//type, minWidth, fluid, onlyText, outLine, marginTop, isUpdates, isDone..
|
|
63
|
+
// Doublebuttons not showing, cannot find use
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components/macro';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import theme from 'styles/theme';
|
|
4
|
+
export const Button = styled.button.attrs(props => ({
|
|
5
|
+
type: props.type || 'button'
|
|
6
|
+
}))`
|
|
7
|
+
display: inline-block;
|
|
8
|
+
height: auto;
|
|
9
|
+
min-height: 40px;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
background-color: ${props => theme.cPrimary};
|
|
12
|
+
border: 1px solid ${props => theme.cPrimary};
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
line-height: 16px;
|
|
16
|
+
color: ${props => theme.cWhite};
|
|
17
|
+
text-transform: uppercase;
|
|
18
|
+
text-align: center;
|
|
19
|
+
letter-spacing: 2px;
|
|
20
|
+
border-radius: 28px;
|
|
21
|
+
padding: 11px 32px;
|
|
22
|
+
margin: 0;
|
|
23
|
+
outline: 0;
|
|
24
|
+
vertical-align: baseline;
|
|
25
|
+
text-shadow: none;
|
|
26
|
+
user-select: none;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
transition: color .2s, background-color .2s, border-color .2s;
|
|
29
|
+
|
|
30
|
+
//next 3 added from VD
|
|
31
|
+
${({
|
|
32
|
+
isUpdates,
|
|
33
|
+
isCancel
|
|
34
|
+
}) => isUpdates && isCancel && css`
|
|
35
|
+
padding: 11px 0;
|
|
36
|
+
margin-left: 32px;
|
|
37
|
+
`}
|
|
38
|
+
|
|
39
|
+
${({
|
|
40
|
+
isUpdates,
|
|
41
|
+
isDone
|
|
42
|
+
}) => isUpdates && isDone && css`
|
|
43
|
+
margin-left: 32px;
|
|
44
|
+
|
|
45
|
+
@media screen and (max-width: 850px) {
|
|
46
|
+
padding: 11px 20px;
|
|
47
|
+
}
|
|
48
|
+
`}
|
|
49
|
+
|
|
50
|
+
${({
|
|
51
|
+
withMarginBottom
|
|
52
|
+
}) => withMarginBottom && css`
|
|
53
|
+
margin-bottom: 32px;
|
|
54
|
+
`}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
${props => props.minWidth && css`
|
|
58
|
+
min-width: ${props.minWidth};
|
|
59
|
+
`}
|
|
60
|
+
|
|
61
|
+
${props => props.fluid && css`
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
padding: 11px 12px;
|
|
65
|
+
`}
|
|
66
|
+
|
|
67
|
+
${props => props.center && css`
|
|
68
|
+
margin-left: auto;
|
|
69
|
+
margin-right: auto;
|
|
70
|
+
`}
|
|
71
|
+
|
|
72
|
+
&:hover,
|
|
73
|
+
&:focus,
|
|
74
|
+
&:active {
|
|
75
|
+
background-color: ${props => theme.cPrimaryDark};
|
|
76
|
+
border-color: ${props => theme.cPrimaryDark};
|
|
77
|
+
color: ${props => theme.cWhite};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${props => props.secondary && css`
|
|
81
|
+
background-color: ${theme.cWhite};
|
|
82
|
+
color: ${theme.cPrimary};
|
|
83
|
+
|
|
84
|
+
&:hover,
|
|
85
|
+
&:focus,
|
|
86
|
+
&:active {
|
|
87
|
+
background-color: ${theme.cPrimary};
|
|
88
|
+
border-color: ${theme.cPrimary};
|
|
89
|
+
color: ${theme.cWhite};
|
|
90
|
+
}
|
|
91
|
+
`}
|
|
92
|
+
|
|
93
|
+
${props => props.onlyText && css`
|
|
94
|
+
border-color: transparent;
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
color: ${theme.cBlack};
|
|
97
|
+
|
|
98
|
+
&:hover,
|
|
99
|
+
&:focus,
|
|
100
|
+
&:active {
|
|
101
|
+
background-color: transparent;
|
|
102
|
+
border-color: transparent;
|
|
103
|
+
color: ${theme.cPrimary};
|
|
104
|
+
}
|
|
105
|
+
`}
|
|
106
|
+
|
|
107
|
+
${props => props.disabled && css`
|
|
108
|
+
border-color: ${theme.cBlack};
|
|
109
|
+
background-color: ${theme.cWhite};
|
|
110
|
+
color: ${theme.cBlack};
|
|
111
|
+
opacity: 0.2;
|
|
112
|
+
cursor: default;
|
|
113
|
+
box-shadow: none !important;
|
|
114
|
+
pointer-events: none !important;
|
|
115
|
+
|
|
116
|
+
&:hover,
|
|
117
|
+
&:focus,
|
|
118
|
+
&:active {
|
|
119
|
+
background-color: ${theme.cPrimary};
|
|
120
|
+
border-color: ${theme.cPrimary};
|
|
121
|
+
color: ${theme.cWhite};
|
|
122
|
+
}
|
|
123
|
+
`}
|
|
124
|
+
|
|
125
|
+
${props => props.negative && css`
|
|
126
|
+
border-color: ${theme.cWarning};
|
|
127
|
+
background-color: ${theme.cWhite};
|
|
128
|
+
color: ${theme.cWarning};
|
|
129
|
+
|
|
130
|
+
&:hover,
|
|
131
|
+
&:focus,
|
|
132
|
+
&:active {
|
|
133
|
+
background-color: ${theme.cWhite};
|
|
134
|
+
border-color: ${theme.cWarningDark};
|
|
135
|
+
color: ${theme.cWarningDark};
|
|
136
|
+
}
|
|
137
|
+
`}
|
|
138
|
+
|
|
139
|
+
${props => props.outline && css`
|
|
140
|
+
border-color: ${theme.cWhite};
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
color: ${theme.cWhite};
|
|
143
|
+
|
|
144
|
+
&:hover,
|
|
145
|
+
&:focus,
|
|
146
|
+
&:active {
|
|
147
|
+
background-color: ${theme.cWhite};
|
|
148
|
+
border-color: ${theme.cWhite};
|
|
149
|
+
color: ${theme.cWarning};
|
|
150
|
+
}
|
|
151
|
+
`}
|
|
152
|
+
|
|
153
|
+
//next 2 props added from SUF
|
|
154
|
+
|
|
155
|
+
${props => props.marginTop && css`
|
|
156
|
+
margin-top: ${props.marginTop};
|
|
157
|
+
`}
|
|
158
|
+
|
|
159
|
+
${props => props.marginRight && css`
|
|
160
|
+
margin-right: ${props.marginRight};
|
|
161
|
+
`}
|
|
162
|
+
|
|
163
|
+
${props => props.isLoginMobile && `
|
|
164
|
+
margin-bottom: 20px;
|
|
165
|
+
width: 163.94px;
|
|
166
|
+
`}
|
|
167
|
+
`;
|
|
168
|
+
Button.propTypes = {
|
|
169
|
+
secondary: PropTypes.bool,
|
|
170
|
+
disabled: PropTypes.bool,
|
|
171
|
+
negative: PropTypes.bool,
|
|
172
|
+
center: PropTypes.bool
|
|
173
|
+
};
|
|
174
|
+
Button.defaultProps = {
|
|
175
|
+
secondary: false,
|
|
176
|
+
disabled: false,
|
|
177
|
+
negative: false,
|
|
178
|
+
center: false
|
|
179
|
+
};
|
|
180
|
+
export default Button;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import Button from 'components/Button/Button.styles';
|
|
3
|
+
export const ButtonContainer = styled.div`
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
${props => props.flexColumn && `
|
|
8
|
+
flex-direction:column;
|
|
9
|
+
`}
|
|
10
|
+
|
|
11
|
+
${Button} {
|
|
12
|
+
min-width: 150px;
|
|
13
|
+
max-width: 300px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media screen and (max-width: 767px) {
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
|
|
19
|
+
${Button} {
|
|
20
|
+
min-width: 150px;
|
|
21
|
+
max-width: 400px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
export default ButtonContainer;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CaptialRaisedSummary from './CaptialRaisedSummary';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
// import Checkbox, { CheckboxPropTypes } from 'components/Checkbox/Checkbox'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components Library/Capital Raised Summary',
|
|
8
|
+
component: CaptialRaisedSummary,
|
|
9
|
+
argTypes: {
|
|
10
|
+
capital: {
|
|
11
|
+
type: 'number',
|
|
12
|
+
defaultValue: 0,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
multiProgressBar: {
|
|
16
|
+
type: 'shape',
|
|
17
|
+
defaultValue: {}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(CaptialRaisedSummary, args));
|
|
22
|
+
export const CapitalRaisedSum = Template.bind({});
|
|
23
|
+
CapitalRaisedSum.args = {
|
|
24
|
+
capital: 150,
|
|
25
|
+
multiProgressBar: {
|
|
26
|
+
backParts: [{
|
|
27
|
+
value: 7,
|
|
28
|
+
label: 'backparts - minumum fill'
|
|
29
|
+
}],
|
|
30
|
+
fillParts: [{
|
|
31
|
+
value: 60,
|
|
32
|
+
label: 'fillparts - maximum fill'
|
|
33
|
+
}]
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CountUp from 'react-countup';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import MultiProgressBar, { MultiProgressBarPropTypes } from 'components/MultiProgressBar/MultiProgressBar';
|
|
5
|
+
import { Wrapper, Title, Amount } from './CaptialRaisedSummary.styles';
|
|
6
|
+
export const CaptialRaisedSummary = ({
|
|
7
|
+
capital,
|
|
8
|
+
multiProgressBar
|
|
9
|
+
}) => /*#__PURE__*/React.createElement(Wrapper, null, /*#__PURE__*/React.createElement(Title, null, "CAPITAL RAISED"), /*#__PURE__*/React.createElement(Amount, null, /*#__PURE__*/React.createElement(CountUp, {
|
|
10
|
+
end: capital,
|
|
11
|
+
prefix: "\u20AC ",
|
|
12
|
+
duration: 0.01,
|
|
13
|
+
separator: ","
|
|
14
|
+
})), /*#__PURE__*/React.createElement(MultiProgressBar, multiProgressBar));
|
|
15
|
+
CaptialRaisedSummary.propTypes = {
|
|
16
|
+
capital: PropTypes.number.isRequired,
|
|
17
|
+
multiProgressBar: PropTypes.shape(MultiProgressBarPropTypes).isRequired
|
|
18
|
+
};
|
|
19
|
+
export default CaptialRaisedSummary;
|
|
20
|
+
|
|
21
|
+
//MERGE:
|
|
22
|
+
//check IIS for better logic, yet unmerged
|
|
23
|
+
//only IIS is used, so replace, but context is unresolved
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
3
|
+
import rwd from 'styles/rwd';
|
|
4
|
+
import theme from 'styles/theme';
|
|
5
|
+
export const Wrapper = styled(ComponentWrapper)`
|
|
6
|
+
background: ${props => theme.cPrimary};
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
height: 100%;
|
|
11
|
+
margin-top: -1px;
|
|
12
|
+
`;
|
|
13
|
+
export const Title = styled.div`
|
|
14
|
+
font-size: 11px;
|
|
15
|
+
line-height: 20px;
|
|
16
|
+
letter-spacing: 2px;
|
|
17
|
+
margin-bottom: 14px;
|
|
18
|
+
color: ${props => theme.cWhite};
|
|
19
|
+
`;
|
|
20
|
+
export const Amount = styled.div`
|
|
21
|
+
font-size: 34px;
|
|
22
|
+
line-height: 40px;
|
|
23
|
+
font-weight: 300;
|
|
24
|
+
margin-bottom: 20px;
|
|
25
|
+
letter-spacing: 2px;
|
|
26
|
+
color: ${props => theme.cWhite};
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
|
|
29
|
+
${rwd.Medium`
|
|
30
|
+
font-size: 28px;
|
|
31
|
+
`}
|
|
32
|
+
|
|
33
|
+
${rwd.Large`
|
|
34
|
+
font-size: 34px;
|
|
35
|
+
`}
|
|
36
|
+
`;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
// import Select from "components/Input/Select";
|
|
4
|
+
// import DonutChart from "components/DonutChart/DonutChart";
|
|
5
|
+
// import {
|
|
6
|
+
// DonutChartLabel,
|
|
7
|
+
// DonutChartValue,
|
|
8
|
+
// DonutChartInfo,
|
|
9
|
+
// DonutChartTrend
|
|
10
|
+
// } from "components/DonutChart/DonutChart.styles";
|
|
11
|
+
// import ChartLegend from "components/ChartLegend/ChartLegend";
|
|
12
|
+
// import from "components//";
|
|
13
|
+
|
|
14
|
+
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
15
|
+
import Text from 'components/Text/Text.styles';
|
|
16
|
+
import { Container } from './ChartBox.styles';
|
|
17
|
+
// import { Container, Chart, Legend, SelectWrapper } from "./ChartBox.styles";
|
|
18
|
+
|
|
19
|
+
// const example = (
|
|
20
|
+
// <
|
|
21
|
+
// data={[
|
|
22
|
+
// { label: "Token balance", value: "TYK 300" },
|
|
23
|
+
// { label: "Token price", value: "€ 2.50" },
|
|
24
|
+
// { label: "Token value", value: "€ 750" },
|
|
25
|
+
// { label: "Distributions", value: "€ 150" },
|
|
26
|
+
// { label: "ROI", value: "20.0%" }
|
|
27
|
+
// ]}
|
|
28
|
+
// />
|
|
29
|
+
// );
|
|
30
|
+
|
|
31
|
+
export const ChartBox = () => /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ComponentWrapper, {
|
|
32
|
+
center: true
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement("h4", null, "No Investments yet..."))));
|
|
34
|
+
export default ChartBox;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartBox } from './ChartBox';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components Library/Chart Box/Chart Box',
|
|
5
|
+
component: ChartBox
|
|
6
|
+
};
|
|
7
|
+
export const chartBoxEmpty = () => /*#__PURE__*/React.createElement(ChartBox, null);
|
|
8
|
+
|
|
9
|
+
//ChartBox the component is pretty much commented out
|