@stokr/components-library 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +9 -0
- package/build/favicon.ico +0 -0
- package/build/index.html +1 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/build/static/js/main.31d6cfe0.js +0 -0
- package/dist/AccountBalance/AccountBalance.js +43 -0
- package/dist/AccountBalance/AccountBalance.stories.js +75 -0
- package/dist/AccountBalance/AccountBalance.styles.js +38 -0
- package/dist/AdminDashboard/Table/Table.js +120 -0
- package/dist/AdminDashboard/Table/Table.styles.js +111 -0
- package/dist/AgreementItem/AgreementItem.js +38 -0
- package/dist/AgreementItem/AgreementItem.stories.js +98 -0
- package/dist/AgreementItem/AgreementItem.styles.js +31 -0
- package/dist/AnalyticGraphs/Analytic.js +528 -0
- package/dist/AnalyticGraphs/Analytic.styles.js +49 -0
- package/dist/BackButton/BackButton.js +22 -0
- package/dist/BackButton/BackButton.stories.js +24 -0
- package/dist/BackButton/BackButton.styles.js +110 -0
- package/dist/Background/Background.js +34 -0
- package/dist/Background/Background.stories.js +50 -0
- package/dist/Background/Background.styles.js +113 -0
- package/dist/BarChart/BarChart.js +258 -0
- package/dist/BarChart/BarChart.stories.js +46 -0
- package/dist/BarChart/BarChart.styles.js +93 -0
- package/dist/BarChartLegend/BarChartLegend.js +74 -0
- package/dist/BarChartLegend/BarChartLegend.styles.js +26 -0
- package/dist/BasicTable/BasicTable.js +20 -0
- package/dist/BasicTable/BasicTable.stories.js +51 -0
- package/dist/BasicTable/BasicTable.styles.js +64 -0
- package/dist/Button/Button.stories.js +63 -0
- package/dist/Button/Button.styles.js +180 -0
- package/dist/ButtonContainer/ButtonContainer.styles.js +25 -0
- package/dist/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +35 -0
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.js +23 -0
- package/dist/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +36 -0
- package/dist/ChartBox/ChartBox.js +34 -0
- package/dist/ChartBox/ChartBox.stories.js +9 -0
- package/dist/ChartBox/ChartBox.styles.js +50 -0
- package/dist/ChartBox/ChartBoxDistribution.js +20 -0
- package/dist/ChartBox/ChartBoxDistribution.stories.js +10 -0
- package/dist/ChartLegend/ChartLegend.js +37 -0
- package/dist/ChartLegend/ChartLegend.stories.js +74 -0
- package/dist/ChartLegend/ChartLegend.styles.js +67 -0
- package/dist/Checkbox/Checkbox.js +108 -0
- package/dist/Checkbox/Checkbox.stories.js +82 -0
- package/dist/Checkbox/Checkbox.styles.js +123 -0
- package/dist/Checklist/UserChecklist.js +247 -0
- package/dist/Checklist/UserChecklist.stories.js +115 -0
- package/dist/ComponentScroll/ComponentScroll.js +99 -0
- package/dist/ComponentScroll/ComponentScroll.stories.js +92 -0
- package/dist/ComponentScroll/ComponentScroll.styles.js +104 -0
- package/dist/ComponentWrapper/ComponentWrapper.styles.js +128 -0
- package/dist/CryptoAddress/ComponentWrap.js +24 -0
- package/dist/CryptoAddress/CryptoAddress.js +124 -0
- package/dist/CryptoAddress/CryptoAddress.stories.js +163 -0
- package/dist/CryptoAddress/CryptoAddress.styles.js +399 -0
- package/dist/CryptoAddress/RadioWrap.js +36 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.js +42 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.stories.js +65 -0
- package/dist/CryptoAddressDetails/CryptoAddressDetails.styles.js +114 -0
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.js +30 -0
- package/dist/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +98 -0
- package/dist/DonutChart/DonutChart.js +137 -0
- package/dist/DonutChart/DonutChart.stories.js +39 -0
- package/dist/DonutChart/DonutChart.styles.js +101 -0
- package/dist/DoubleButton/DoubleButton.styles.js +25 -0
- package/dist/ErrorMessage/ErrorMessage.styles.js +9 -0
- package/dist/FAQ/FAQ.js +40 -0
- package/dist/FAQ/FAQ.stories.js +63 -0
- package/dist/FAQ/FAQ.styles.js +69 -0
- package/dist/Footer/Footer.js +54 -0
- package/dist/Footer/Footer.stories.js +41 -0
- package/dist/Footer/Footer.styles.js +230 -0
- package/dist/Footer/FooterLayout.js +114 -0
- package/dist/Footer/FooterLayout.stories.js +20 -0
- package/dist/Footer/FooterMenu.js +83 -0
- package/dist/Footer/FooterMenu.stories.js +110 -0
- package/dist/Footer/FooterMenu.styles.js +274 -0
- package/dist/Footer/index.js +4 -0
- package/dist/{03f9f978feb2b015b6812ba10f689967.png → Footer/lemonway.png} +0 -0
- package/dist/Footer/sicos-logo.svg +1 -0
- package/dist/ForgotPasswordModal/ForgotPasswordModal.js +89 -0
- package/dist/ForgotPasswordModal/ForgotPasswordModal.stories.js +31 -0
- package/dist/Form/Form.js +38 -0
- package/dist/Form/Form.stories.js +24 -0
- package/dist/Form/Form.styles.js +66 -0
- package/dist/FullscreenCard/FullscreenCard.styles.js +36 -0
- package/dist/Grid/Grid.styles.js +109 -0
- package/dist/Header/Header.js +369 -0
- package/dist/Header/Header.stories.js +172 -0
- package/dist/Header/Header.styles.js +493 -0
- package/dist/Icon/Icon.style.js +75 -0
- package/dist/InfoIcon/InfoIcon.js +40 -0
- package/dist/InfoIcon/InfoIcon.stories.js +40 -0
- package/dist/InfoIcon/InfoIcon.styles.js +42 -0
- package/dist/InfoPanel/InfoPanel.js +115 -0
- package/dist/Input/DatePickerInput.js +64 -0
- package/dist/Input/DatePickerInput.stories.js +80 -0
- package/dist/Input/DatePickerInput.styles.js +67 -0
- package/dist/Input/Input.js +86 -0
- package/dist/Input/Input.stories.js +134 -0
- package/dist/Input/Input.styles.js +126 -0
- package/dist/Input/InputPassword.js +122 -0
- package/dist/Input/InputPassword.stories.js +72 -0
- package/dist/Input/InputPassword.styles.js +139 -0
- package/dist/Input/RangeInput.js +46 -0
- package/dist/Input/RangeInput.stories.js +48 -0
- package/dist/Input/RangeInput.styles.js +125 -0
- package/dist/Input/Select.js +130 -0
- package/dist/Input/Select.stories.js +129 -0
- package/dist/Input/Select.styles.js +143 -0
- package/dist/InvestCalculator/InvestCalculator.js +353 -0
- package/dist/InvestCalculator/InvestCalculator.stories.js +129 -0
- package/dist/InvestCalculator/InvestCalculator.styles.js +78 -0
- package/dist/InvestmentStat/InvestmentStat.js +33 -0
- package/dist/InvestmentStat/InvestmentStat.stories.js +44 -0
- package/dist/InvestmentStat/InvestmentStat.styles.js +53 -0
- package/dist/KYCFlow/BasicInfo.js +396 -0
- package/dist/KYCFlow/Confirmation.js +37 -0
- package/dist/KYCFlow/DocumentFileUpload.js +240 -0
- package/dist/KYCFlow/DocumentScan.js +66 -0
- package/dist/KYCFlow/DocumentScanUpload.js +228 -0
- package/dist/KYCFlow/DocumentSelect.js +101 -0
- package/dist/KYCFlow/DocumentSuccess.js +54 -0
- package/dist/KYCFlow/DocumentUpload.js +44 -0
- package/dist/KYCFlow/DocumentVerificationType.js +114 -0
- package/dist/KYCFlow/FaceScan.js +45 -0
- package/dist/KYCFlow/FaceScanRecognition.js +52 -0
- package/dist/KYCFlow/FaceScanSuccess.js +47 -0
- package/dist/KYCFlow/Terms.js +99 -0
- package/dist/KYCFlow/_styles.js +284 -0
- package/dist/KYCFlow/index.js +14 -0
- package/dist/KYCSelectBox/KYCSelectBox.styles.js +62 -0
- package/dist/LatestUpdate/LatestUpdate.js +35 -0
- package/dist/LatestUpdate/LatestUpdate.stories.js +51 -0
- package/dist/LatestUpdate/LatestUpdate.styles.js +77 -0
- package/dist/Layout/Layout-func-no-work.js +67 -0
- package/dist/Layout/Layout.js +68 -0
- package/dist/Layout/Layout.stories.js +55 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.js +39 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.stories.js +58 -0
- package/dist/LearnMoreCarousel/LearnMoreCarousel.styles.js +205 -0
- package/dist/LearnMorePage/LearnMore.js +199 -0
- package/dist/LearnMorePage/LearnMore.shared.styles.js +49 -0
- package/dist/LearnMorePage/LearnMore.stories.js +41 -0
- package/dist/LearnMorePage/LearnMore.styles.js +250 -0
- package/dist/LearnMorePage/LearnMoreExampleObject.js +102 -0
- package/dist/LearnMorePage/LearnMoreItem.js +59 -0
- package/dist/LearnMorePage/LearnMoreItem.stories.js +54 -0
- package/dist/LearnMorePage/LearnMoreItem.styles.js +218 -0
- package/dist/LearnMoreSection/LearnMore.js +144 -0
- package/dist/LearnMoreSection/LearnMore.stories.js +23 -0
- package/dist/LearnMoreSection/LearnMore.styles.js +134 -0
- package/dist/LearnMoreSection/LearnMoreItem.js +39 -0
- package/dist/LearnMoreSection/LearnMoreItem.stories.js +52 -0
- package/dist/LearnMoreSection/LearnMoreItem.styles.js +54 -0
- package/dist/LoginModal/LoginModal.js +125 -0
- package/dist/MainMenu/DynamicMainMenu.js +41 -0
- package/dist/MainMenu/MainMenu.js +207 -0
- package/dist/MainMenu/MainMenu.styles.js +361 -0
- package/dist/MatomoConnect/Matomo.js +221 -0
- package/dist/MatomoConnect/Matomo_fuckup.js +185 -0
- package/dist/MenuNav/MenuNav.styles.js +88 -0
- package/dist/Modal/Modal.js +71 -0
- package/dist/Modal/Modal.stories.js +67 -0
- package/dist/Modal/Modal.styles.js +407 -0
- package/dist/MultiProgressBar/MultiProgressBar.js +33 -0
- package/dist/MultiProgressBar/MultiProgressBar.stories.js +61 -0
- package/dist/MultiProgressBar/MultiProgressBar.styles.js +92 -0
- package/dist/Newsletter/Newsletter.js +106 -0
- package/dist/Newsletter/Newsletter.stories.js +8 -0
- package/dist/Newsletter/Newsletter.styles.js +173 -0
- package/dist/NotificationContext/NotificationContext.js +126 -0
- package/dist/NotificationContext/NotificationContext.stories.js +32 -0
- package/dist/NotificationCounter/NotificationCounter.styles.js +23 -0
- package/dist/Number/Number.js +25 -0
- package/dist/Number/Number.stories.js +18 -0
- package/dist/Number/Number.styles.js +21 -0
- package/dist/PageTransition/PageTransition.js +42 -0
- package/dist/Process/Process.stories.js +34 -0
- package/dist/Process/Process.styles.js +87 -0
- package/dist/ProfileBadge/ProfileBadge.js +46 -0
- package/dist/ProfileBadge/ProfileBadge.stories.js +37 -0
- package/dist/ProfileBadge/ProfileBadge.styles.js +47 -0
- package/dist/ProfileBox/ProfileBox.js +29 -0
- package/dist/ProfileBox/ProfileBox.stories.js +27 -0
- package/dist/ProfileBox/ProfileBox.styles.js +60 -0
- package/dist/ProfileHeader/ProfileHeader-CLb4.js +401 -0
- package/dist/ProfileHeader/ProfileHeader.js +268 -0
- package/dist/ProfileHeader/ProfileHeader.styles.js +114 -0
- package/dist/ProfileStat/ProfileStat.js +32 -0
- package/dist/ProfileStat/ProfileStat.stories.js +58 -0
- package/dist/ProfileStat/ProfileStat.styles.js +80 -0
- package/dist/ProofOfAddress/ProofOfAddress.styles.js +76 -0
- package/dist/ROI/ROI.js +261 -0
- package/dist/ROI/ROI.styles.js +71 -0
- package/dist/ROI/ROIChart.js +348 -0
- package/dist/ROI/ROIChart.styles.js +98 -0
- package/dist/ROI/ROIModal.js +74 -0
- package/dist/ROI/ROIScenarioBox.js +46 -0
- package/dist/ROI/ROIScenarioBox.styles.js +131 -0
- package/dist/Radio/Radio.js +58 -0
- package/dist/Radio/Radio.stories.js +65 -0
- package/dist/Radio/Radio.styles.js +93 -0
- package/dist/RefreshButton/RefreshButton.js +14 -0
- package/dist/RefreshButton/RefreshButton.stories.js +31 -0
- package/dist/RefreshButton/RefreshButton.styles.js +57 -0
- package/dist/RegisterAlgorand/AlgoAddressName.js +103 -0
- package/dist/RegisterAlgorand/AlgoAdressSelect.js +274 -0
- package/dist/RegisterAlgorand/AlgoConnectWallet.js +37 -0
- package/dist/RegisterAlgorand/AlgoSuccess.js +28 -0
- package/dist/RegisterAlgorand/Algorand.stories.js +63 -0
- package/dist/RegisterAlgorand/ChooseWallet.js +77 -0
- package/dist/RegisterAlgorand/SelectProject.js +77 -0
- package/dist/RegisterAlgorand/_styles.js +30 -0
- package/dist/RegisterAlgorand/flow.js +243 -0
- package/dist/RegisterAlgorand/flowWithMemo.js +244 -0
- package/dist/RegisterAlgorand/index.js +7 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.js +30 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.stories.js +22 -0
- package/dist/RegisterConfirmModal/RegisterConfirmModal.styles.js +19 -0
- package/dist/RegisterEthereum/EthAddressLedger.js +151 -0
- package/dist/RegisterEthereum/EthAddressMetamask.js +165 -0
- package/dist/RegisterEthereum/EthAddressName.js +101 -0
- package/dist/RegisterEthereum/EthConnectLedger.js +117 -0
- package/dist/RegisterEthereum/EthConnectMetamask.js +25 -0
- package/dist/RegisterEthereum/EthFinish.js +32 -0
- package/dist/RegisterEthereum/EthIntro.js +77 -0
- package/dist/RegisterEthereum/_styles.js +30 -0
- package/dist/RegisterEthereum/index.js +9 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.js +75 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +65 -0
- package/dist/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +69 -0
- package/dist/RegisterLiquidSteps/assets/nav_green.svg +31 -0
- package/dist/RegisterLiquidSteps/assets/video.mp4 +0 -0
- package/dist/RegisterLiquidSteps/assets/videothumbnail.jpg +0 -0
- package/dist/RegisterLiquidSteps/complete.js +29 -0
- package/dist/RegisterLiquidSteps/flow.js +141 -0
- package/dist/RegisterLiquidSteps/index.js +29 -0
- package/dist/RegisterLiquidSteps/register-liquid.js +197 -0
- package/dist/RegisterModal/RegisterModal.js +143 -0
- package/dist/RegisterModal/RegisterModal.stories.js +35 -0
- package/dist/RequestDataBox/RequestDataBox.js +21 -0
- package/dist/RequestDataBox/RequestDataBox.stories.js +29 -0
- package/dist/RequestDataBox/RequestDataBox.styles.js +40 -0
- package/dist/RiskQuestionnaire/RiskQuestionnaireContext.js +111 -0
- package/dist/RiskQuestionnaire/_styles.js +6 -0
- package/dist/SEO/SEO.js +63 -0
- package/dist/SEO/SEO.stories.js +53 -0
- package/dist/SectionTitle/SectionTitle.styles.js +23 -0
- package/dist/SideLine/SideLine.js +4 -0
- package/dist/SideLine/SideLine.stories.js +20 -0
- package/dist/SideLine/SideLine.styles.js +29 -0
- package/dist/SigningSubflow/SignSubAddressMetamask.js +105 -0
- package/dist/SigningSubflow/SignSubConnectLedger.js +114 -0
- package/dist/SigningSubflow/SignSubConnectMetamask.js +101 -0
- package/dist/SigningSubflow/SignSubIntro.js +45 -0
- package/dist/SigningSubflow/SignSubSendLedger.js +114 -0
- package/dist/SigningSubflow/SignSubSendMetamask.js +53 -0
- package/dist/SigningSubflow/SignSubTransactionLedger.js +125 -0
- package/dist/SigningSubflow/SignSubTransactionMetamask.js +130 -0
- package/dist/SigningSubflow/_styles.js +59 -0
- package/dist/SigningSubflow/index.js +9 -0
- package/dist/Slider/Slider.js +43 -0
- package/dist/Slider/Slider.stories.js +63 -0
- package/dist/Slider/Slider.styles.js +115 -0
- package/dist/SpanButton/SpanButton.styles.js +14 -0
- package/dist/StatusBadge/StatusBadge.styles.js +16 -0
- package/dist/StepController/StepController.js +73 -0
- package/dist/StepController/StepController.stories.js +52 -0
- package/dist/StepController/StepController.styles.js +27 -0
- package/dist/StepController/StepControllerContext.js +61 -0
- package/dist/StepController/StepControllerProgress.js +28 -0
- package/dist/StepController/StepControllerProgress.stories.js +41 -0
- package/dist/StepsProgress/StepsProgress.js +95 -0
- package/dist/StepsProgress/StepsProgress.stories.js +23 -0
- package/dist/StepsProgress/StepsProgress.styles.js +97 -0
- package/dist/StokrLoader/StokrLoader.js +60 -0
- package/dist/StokrLoader/media.js +22 -0
- package/dist/StokrLoader/stokr_loader_white_400x400.gif +0 -0
- package/dist/SvgIcons/AdminBadgeSvg.js +16 -0
- package/dist/SvgIcons/CameraSvg.js +26 -0
- package/dist/SvgIcons/CapsLockSvg.js +21 -0
- package/dist/SvgIcons/DocumentBackSvg.js +25 -0
- package/dist/SvgIcons/DocumentSmallSvg.js +51 -0
- package/dist/SvgIcons/DocumentSvg.js +28 -0
- package/dist/SvgIcons/Early.js +14 -0
- package/dist/SvgIcons/EthSvg.js +30 -0
- package/dist/SvgIcons/EurSvg.js +16 -0
- package/dist/SvgIcons/FaceScanIconSvg.js +21 -0
- package/dist/SvgIcons/FourSvg.js +11 -0
- package/dist/SvgIcons/Glassess.js +19 -0
- package/dist/SvgIcons/Icons_Badge.png +0 -0
- package/dist/SvgIcons/LogoSvg.js +14 -0
- package/dist/SvgIcons/OneSvg.js +13 -0
- package/dist/SvgIcons/PassportSvg.js +46 -0
- package/dist/SvgIcons/RefreshSvg.js +17 -0
- package/dist/SvgIcons/SocialFacebook.js +15 -0
- package/dist/SvgIcons/SocialInstagram.js +15 -0
- package/dist/SvgIcons/SocialLinkedIn.js +15 -0
- package/dist/SvgIcons/SocialMedium.js +15 -0
- package/dist/SvgIcons/SocialReddit.js +15 -0
- package/dist/SvgIcons/SocialTelegram.js +15 -0
- package/dist/SvgIcons/SocialTwitter.js +15 -0
- package/dist/SvgIcons/SocialYoutube.js +15 -0
- package/dist/SvgIcons/ThreeSvg.js +10 -0
- package/dist/SvgIcons/TwoSidedDocumentSvg.js +72 -0
- package/dist/SvgIcons/TwoSvg.js +13 -0
- package/dist/SvgIcons/UpdateDefaultSvg.js +19 -0
- package/dist/SvgIcons/UpdateHardSvg.js +15 -0
- package/dist/SvgIcons/UpdateSoftSvg.js +17 -0
- package/dist/SvgIcons/UploadSvg.js +24 -0
- package/dist/SvgIcons/VerifiedBadge.js +13 -0
- package/dist/SvgIcons/index.js +32 -0
- package/dist/Switch/Switch.js +45 -0
- package/dist/Switch/Switch.stories.js +73 -0
- package/dist/Switch/Switch.styles.js +105 -0
- package/dist/Tabs/Tabs.js +48 -0
- package/dist/Tabs/Tabs.stories.js +28 -0
- package/dist/Tabs/Tabs.styles.js +11 -0
- package/dist/TabsNav/TabNav.js +21 -0
- package/dist/TabsNav/TabNav.stories.js +32 -0
- package/dist/TabsNav/TabsNav.js +23 -0
- package/dist/TabsNav/TabsNav.stories.js +25 -0
- package/dist/TabsNav/TabsNav.styles.js +80 -0
- package/dist/TeamOverview/TeamOverview.js +69 -0
- package/dist/TeamOverview/TeamOverview.stories.js +68 -0
- package/dist/TeamOverview/TeamOverview.styles.js +152 -0
- package/dist/Text/Headline.js +34 -0
- package/dist/Text/Headline.stories.js +40 -0
- package/dist/Text/StyledText.js +30 -0
- package/dist/Text/Text.stories.js +59 -0
- package/dist/Text/Text.styles.js +166 -0
- package/dist/TextLink/TextLink.styles.js +50 -0
- package/dist/ToDoList/ToDoList.js +172 -0
- package/dist/ToDoList/ToDoList.stories.js +123 -0
- package/dist/ToDoList/ToDoList.styles.js +115 -0
- package/dist/ToDoList/ToDoListTask.js +96 -0
- package/dist/ToDoList/ToDoListTask.stories.js +60 -0
- package/dist/ToDoList/ToDoListTask.styles.js +104 -0
- package/dist/TransactionDetails/TransactionDetails.js +27 -0
- package/dist/TransactionDetails/TransactionDetails.stories.js +47 -0
- package/dist/TransactionDetails/TransactionDetails.styles.js +31 -0
- package/dist/TransactionInfo/TransactionInfo.js +48 -0
- package/dist/TransactionInfo/TransactionInfo.stories.js +53 -0
- package/dist/TransactionInfo/TransactionInfo.styles.js +64 -0
- package/dist/TwoFactorModal/TwoFactorModal.js +84 -0
- package/dist/breakdown/Breakdown.js +124 -0
- package/dist/breakdown/index.js +2 -0
- package/dist/context/Auth.js +133 -0
- package/dist/context/AuthContext.js +154 -0
- package/dist/icons/Arrow.js +62 -0
- package/dist/icons/Arrow.stories.js +37 -0
- package/dist/icons/ArrowSimple.js +51 -0
- package/dist/icons/ArrowSimple.stories.js +41 -0
- package/dist/icons/Check.js +29 -0
- package/dist/icons/Check.stories.js +14 -0
- package/dist/icons/Facebook.js +15 -0
- package/dist/icons/Facebook.stories.js +15 -0
- package/dist/icons/Info.js +41 -0
- package/dist/icons/Info.stories.js +8 -0
- package/dist/icons/Instagram.js +15 -0
- package/dist/icons/Instagram.stories.js +15 -0
- package/dist/icons/LinkIcon.js +23 -0
- package/dist/icons/LinkIcon.stories.js +15 -0
- package/dist/icons/LinkedIn.js +29 -0
- package/dist/icons/LinkedIn.stories.js +8 -0
- package/dist/icons/Medium.js +28 -0
- package/dist/icons/Medium.stories.js +8 -0
- package/dist/icons/Reddit.js +18 -0
- package/dist/icons/Reddit.stories.js +15 -0
- package/dist/icons/Share.js +48 -0
- package/dist/icons/Share.stories.js +8 -0
- package/dist/icons/Telegram.js +28 -0
- package/dist/icons/Telegram.stories.js +8 -0
- package/dist/icons/Twitter.js +15 -0
- package/dist/icons/Twitter.stories.js +15 -0
- package/dist/icons/X.js +15 -0
- package/dist/icons/X.stories.js +8 -0
- package/dist/icons/Youtube.js +15 -0
- package/dist/icons/Youtube.stories.js +15 -0
- package/dist/icons/index.js +15 -0
- package/dist/index.js +177 -1
- package/dist/renderToBody/index.js +2 -0
- package/dist/renderToBody/renderToBody.js +26 -0
- package/dist/taxId/TaxId.stories.js +31 -0
- package/dist/taxId/complete.js +21 -0
- package/dist/taxId/flow.js +31 -0
- package/dist/taxId/index.js +4 -0
- package/dist/taxId/register-taxid.js +156 -0
- package/dist/video/Video.js +274 -0
- package/dist/video/Video.stories.js +45 -0
- package/dist/video/img/play-btn.svg +1 -0
- package/dist/video/index.js +2 -0
- package/package.json +128 -133
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/dist/07233f511246c9825a0d58e5ab2641f3.svg +0 -47
- package/dist/08418fc6c324f51f7e56.svg +0 -1
- package/dist/14aa35d4e84aebef77cf00b421fc393a.gif +0 -0
- package/dist/179ef2df02cb0b68c9fd.woff2 +0 -0
- package/dist/21e493d43617de76dbc7.woff2 +0 -0
- package/dist/2640959b1f9381cde047.eot +0 -0
- package/dist/2ba2db4ff86a2663686a100e75b50ba9.png +0 -0
- package/dist/311956ded96d3fd2813d.woff2 +0 -0
- package/dist/39f5961b2d3eb4aa5bf5.woff +0 -0
- package/dist/3caa0d4f9b7d58668066.woff2 +0 -0
- package/dist/4a510354f2f82b59fced805a8e3fe2bf.svg +0 -1
- package/dist/4c3c428d0ce82f840710.woff +0 -0
- package/dist/4e528d6445ca1974c313.woff +0 -0
- package/dist/55053cc0a8e6482eca64.ttf +0 -0
- package/dist/643c37f102b41f7f90c3.woff2 +0 -0
- package/dist/76dd0ed9c3f137513fd4.svg +0 -1
- package/dist/81f3ef07b7952e249da1.woff +0 -0
- package/dist/98b7d3182f652f021bc3.ttf +0 -0
- package/dist/9bea22b57dc165ed4382.ttf +0 -0
- package/dist/9ec738fbb66068dc1ca7.woff +0 -0
- package/dist/a1d7666a48f976227722.ttf +0 -0
- package/dist/a750292d6a0b5a760679.woff +0 -0
- package/dist/b85a961d44cc55c58050cbf7c53dd505.png +0 -0
- package/dist/bcb6531cf820152b7538.ttf +0 -0
- package/dist/c6a4bc1bd034d6303053.woff +0 -0
- package/dist/cbfc24090ef8bacab132.woff2 +0 -0
- package/dist/d2b1865643b98c0e8b54.ttf +0 -0
- package/dist/d97d7385fe8771611848.ttf +0 -0
- package/dist/index.js.LICENSE.txt +0 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ToDoList from './ToDoList';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/ToDoList/ToDoList',
|
|
6
|
+
component: ToDoList,
|
|
7
|
+
argTypes: {
|
|
8
|
+
title: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
defaultValue: 'To do List'
|
|
11
|
+
},
|
|
12
|
+
subtitle: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
defaultValue: '',
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
mandatoryTasks: {
|
|
18
|
+
type: 'array',
|
|
19
|
+
defaultValue: [{
|
|
20
|
+
title: ''
|
|
21
|
+
}, {
|
|
22
|
+
state: ''
|
|
23
|
+
}, {
|
|
24
|
+
link: ''
|
|
25
|
+
}, {
|
|
26
|
+
tooltip: ''
|
|
27
|
+
}]
|
|
28
|
+
},
|
|
29
|
+
optionalTasks: {
|
|
30
|
+
type: 'array',
|
|
31
|
+
defaultValue: [{
|
|
32
|
+
title: ''
|
|
33
|
+
}, {
|
|
34
|
+
state: ''
|
|
35
|
+
}, {
|
|
36
|
+
link: ''
|
|
37
|
+
}, {
|
|
38
|
+
tooltip: ''
|
|
39
|
+
}]
|
|
40
|
+
},
|
|
41
|
+
successText: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
defaultValue: ''
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(ToDoList, args));
|
|
48
|
+
export const ToDoListMixedOverview = Template.bind({});
|
|
49
|
+
ToDoListMixedOverview.args = {
|
|
50
|
+
subtitle: 'subtitle',
|
|
51
|
+
mandatoryTasks: [{
|
|
52
|
+
title: 'Title of an Mandatory Task - In Progress',
|
|
53
|
+
state: 'in_progress',
|
|
54
|
+
link: 'www.madatorylink.com',
|
|
55
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
56
|
+
}, {
|
|
57
|
+
title: 'Title of an Mandatory Task - Rejected',
|
|
58
|
+
state: 'rejected',
|
|
59
|
+
link: 'www.madatorylink.com',
|
|
60
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
61
|
+
}, {
|
|
62
|
+
title: 'Title of an Mandatory Task - Approved',
|
|
63
|
+
state: 'approved',
|
|
64
|
+
link: 'www.madatorylink.com',
|
|
65
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
66
|
+
}, {
|
|
67
|
+
title: 'Title of an Mandatory Task - Skipped',
|
|
68
|
+
state: 'skipped',
|
|
69
|
+
link: 'www.madatorylink.com',
|
|
70
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
71
|
+
}, {
|
|
72
|
+
title: 'Title of an Mandatory Task - Reapply',
|
|
73
|
+
state: 'reapply',
|
|
74
|
+
link: 'www.madatorylink.com',
|
|
75
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
76
|
+
}, {
|
|
77
|
+
title: 'Title of an Mandatory Task - Not Available',
|
|
78
|
+
state: 'not_available',
|
|
79
|
+
link: 'www.madatorylink.com',
|
|
80
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
81
|
+
}],
|
|
82
|
+
optionalTasks: [{
|
|
83
|
+
title: 'Title of an Optional Task - Draft',
|
|
84
|
+
state: 'draft',
|
|
85
|
+
link: 'www.optionallink.com',
|
|
86
|
+
tooltip: 'a tooltip for Optional Task'
|
|
87
|
+
}]
|
|
88
|
+
};
|
|
89
|
+
export const ToDoListApproved = Template.bind({});
|
|
90
|
+
ToDoListApproved.args = {
|
|
91
|
+
subtitle: 'subtitle',
|
|
92
|
+
mandatoryTasks: [{
|
|
93
|
+
title: 'Title of an Mandatory Task - Approved',
|
|
94
|
+
state: 'approved',
|
|
95
|
+
link: 'www.madatorylink.com',
|
|
96
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
97
|
+
}]
|
|
98
|
+
};
|
|
99
|
+
export const ToDoListRejected = Template.bind({});
|
|
100
|
+
ToDoListRejected.args = {
|
|
101
|
+
subtitle: 'subtitle',
|
|
102
|
+
mandatoryTasks: [{
|
|
103
|
+
title: 'Title of an Mandatory Task - Rejected',
|
|
104
|
+
state: 'rejected',
|
|
105
|
+
link: 'www.madatorylink.com',
|
|
106
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
107
|
+
}]
|
|
108
|
+
};
|
|
109
|
+
export const ToDoListSkipped2 = Template.bind({});
|
|
110
|
+
ToDoListSkipped2.args = {
|
|
111
|
+
subtitle: 'subtitle',
|
|
112
|
+
mandatoryTasks: [{
|
|
113
|
+
title: 'Title of an Mandatory Task - Skipped',
|
|
114
|
+
state: 'skipped',
|
|
115
|
+
link: 'www.madatorylink.com',
|
|
116
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
117
|
+
}, {
|
|
118
|
+
title: 'Title of an Mandatory Task - Skipped 2',
|
|
119
|
+
state: 'skipped',
|
|
120
|
+
link: 'www.madatorylink.com',
|
|
121
|
+
tooltip: 'a tooltip for Mandatory Task'
|
|
122
|
+
}]
|
|
123
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components/macro';
|
|
2
|
+
import rwd from 'styles/rwd';
|
|
3
|
+
import colors from 'styles/colors';
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
display: inline-block;
|
|
6
|
+
`;
|
|
7
|
+
export const TitleContainer = styled.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
|
|
11
|
+
${({
|
|
12
|
+
marginBottom
|
|
13
|
+
}) => marginBottom && css`
|
|
14
|
+
margin-bottom: ${marginBottom};
|
|
15
|
+
`}
|
|
16
|
+
`;
|
|
17
|
+
export const Title = styled.div`
|
|
18
|
+
font-size: 22px;
|
|
19
|
+
font-weight: 800;
|
|
20
|
+
line-height: 28px;
|
|
21
|
+
letter-spacing: 0.8px;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
`;
|
|
24
|
+
export const Subtitle = styled.div`
|
|
25
|
+
font-size: 11px;
|
|
26
|
+
line-height: 24px;
|
|
27
|
+
letter-spacing: 2.06px;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
// margin-bottom: 10px;
|
|
30
|
+
|
|
31
|
+
${({
|
|
32
|
+
centerVertically
|
|
33
|
+
}) => centerVertically && css`
|
|
34
|
+
margin-bottom: 0;
|
|
35
|
+
`}
|
|
36
|
+
|
|
37
|
+
${({
|
|
38
|
+
marginLeft
|
|
39
|
+
}) => marginLeft && css`
|
|
40
|
+
margin-left: ${marginLeft};
|
|
41
|
+
`}
|
|
42
|
+
`;
|
|
43
|
+
export const PendingCounter = styled.span`
|
|
44
|
+
width: 16px;
|
|
45
|
+
height: 16px;
|
|
46
|
+
margin-left: 3px;
|
|
47
|
+
margin-right: 13px;
|
|
48
|
+
color: ${colors.white};
|
|
49
|
+
background: ${colors.orangishRed};
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
font-size: 9px;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
text-align: center;
|
|
54
|
+
line-height: 16px;
|
|
55
|
+
padding-left: 1px;
|
|
56
|
+
`;
|
|
57
|
+
export const Section = styled.div`
|
|
58
|
+
padding: 28px 0;
|
|
59
|
+
`;
|
|
60
|
+
export const SectionTitle = styled.div`
|
|
61
|
+
font-size: 11px;
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
line-height: 20px;
|
|
64
|
+
letter-spacing: 1.8px;
|
|
65
|
+
text-transform: uppercase;
|
|
66
|
+
padding-bottom: 14px;
|
|
67
|
+
margin-bottom: 16px;
|
|
68
|
+
text-align: left;
|
|
69
|
+
border-bottom: 1px solid ${colors.grey};
|
|
70
|
+
`;
|
|
71
|
+
export const Button = styled.div`
|
|
72
|
+
${rwd.Medium`
|
|
73
|
+
margin-top: auto;
|
|
74
|
+
`}
|
|
75
|
+
`;
|
|
76
|
+
export const AllDoneContainer = styled.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
|
|
81
|
+
${rwd.Medium`
|
|
82
|
+
flex-direction: row;
|
|
83
|
+
`}
|
|
84
|
+
`;
|
|
85
|
+
export const AllDoneIconContainer = styled.div`
|
|
86
|
+
width: 102px;
|
|
87
|
+
height: 102px;
|
|
88
|
+
display: flex;
|
|
89
|
+
border: 1px dashed ${colors.blue};
|
|
90
|
+
border-radius: 50%;
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
margin-bottom: 16px;
|
|
93
|
+
|
|
94
|
+
${rwd.Medium`
|
|
95
|
+
margin-right: 26px;
|
|
96
|
+
margin-bottom: 0;
|
|
97
|
+
`}
|
|
98
|
+
`;
|
|
99
|
+
export const AllDoneIcon = styled.i.attrs({
|
|
100
|
+
className: 'ion ion-md-checkmark'
|
|
101
|
+
})`
|
|
102
|
+
width: 40px;
|
|
103
|
+
height: 40px;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
background: ${colors.blue};
|
|
108
|
+
color: ${colors.white};
|
|
109
|
+
font-size: 18px;
|
|
110
|
+
padding: 12px;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
margin: auto;
|
|
113
|
+
${props => props.green && `
|
|
114
|
+
background-color: ${colors.freshGreen};`}
|
|
115
|
+
`;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Link } from '@reach/router';
|
|
4
|
+
import { Tooltip } from 'react-tippy';
|
|
5
|
+
import { Container, Content, Title, State, Icon, IconContainer, TitleContainer, Notifications } from './ToDoListTask.styles';
|
|
6
|
+
import { TooltipIcon } from 'components/Icon/Icon.style';
|
|
7
|
+
import { AlgoAddressFlowPage } from 'components/RegisterAlgorand';
|
|
8
|
+
import setRedirectCookie from 'utils/set-redirect-cookie';
|
|
9
|
+
import { AuthProvider } from 'components/context/AuthContext';
|
|
10
|
+
import { ToDoModal } from './ToDoList';
|
|
11
|
+
import { RegisterTaxIdFlow } from 'components/taxId';
|
|
12
|
+
export const ToDoTask = ({
|
|
13
|
+
title,
|
|
14
|
+
message,
|
|
15
|
+
state,
|
|
16
|
+
icon,
|
|
17
|
+
link,
|
|
18
|
+
tooltip,
|
|
19
|
+
notificationCount,
|
|
20
|
+
disabled,
|
|
21
|
+
openModal,
|
|
22
|
+
redirectCookie = false
|
|
23
|
+
}) => {
|
|
24
|
+
const [modalOpen, setmodalOpen] = React.useState(false);
|
|
25
|
+
const handleOpenModal = () => {
|
|
26
|
+
if (openModal) {
|
|
27
|
+
setmodalOpen(true);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, link || openModal ? /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
onClick: () => {
|
|
32
|
+
if (redirectCookie) {
|
|
33
|
+
const pathToRedirect = window.location.pathname === '/' ? 'checklist' : '';
|
|
34
|
+
setRedirectCookie(pathToRedirect);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
38
|
+
href: link
|
|
39
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
40
|
+
disabled: disabled,
|
|
41
|
+
link: openModal,
|
|
42
|
+
onClick: handleOpenModal
|
|
43
|
+
}, /*#__PURE__*/React.createElement(IconContainer, null, /*#__PURE__*/React.createElement(Icon, {
|
|
44
|
+
icon: icon,
|
|
45
|
+
state: state
|
|
46
|
+
})), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(TitleContainer, null, /*#__PURE__*/React.createElement(Title, {
|
|
47
|
+
link: link || openModal,
|
|
48
|
+
state: state
|
|
49
|
+
}, title), tooltip && /*#__PURE__*/React.createElement(Tooltip, {
|
|
50
|
+
position: "top",
|
|
51
|
+
title: tooltip,
|
|
52
|
+
theme: "light",
|
|
53
|
+
arrow: true,
|
|
54
|
+
duration: 200
|
|
55
|
+
}, /*#__PURE__*/React.createElement(TooltipIcon, {
|
|
56
|
+
onClick: e => e.preventDefault()
|
|
57
|
+
}))), message ? /*#__PURE__*/React.createElement(State, null, message) : '')))) : /*#__PURE__*/React.createElement(Container, {
|
|
58
|
+
disabled: disabled
|
|
59
|
+
}, /*#__PURE__*/React.createElement(IconContainer, null, /*#__PURE__*/React.createElement(Icon, {
|
|
60
|
+
icon: icon,
|
|
61
|
+
state: state
|
|
62
|
+
})), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(TitleContainer, null, /*#__PURE__*/React.createElement(Title, {
|
|
63
|
+
state: state
|
|
64
|
+
}, title), tooltip && /*#__PURE__*/React.createElement(Tooltip, {
|
|
65
|
+
position: "top",
|
|
66
|
+
title: tooltip,
|
|
67
|
+
theme: "light",
|
|
68
|
+
arrow: true,
|
|
69
|
+
duration: 200
|
|
70
|
+
}, /*#__PURE__*/React.createElement(TooltipIcon, {
|
|
71
|
+
onClick: e => e.preventDefault()
|
|
72
|
+
}))), message ? /*#__PURE__*/React.createElement(State, null, message) : '')), modalOpen && /*#__PURE__*/React.createElement(AuthProvider, null, openModal === ToDoModal.ALGO && /*#__PURE__*/React.createElement(AlgoAddressFlowPage, {
|
|
73
|
+
showFlow: modalOpen,
|
|
74
|
+
setShowFlow: setmodalOpen
|
|
75
|
+
// setShowPending={setShowPending}
|
|
76
|
+
,
|
|
77
|
+
withSuccessPage: true
|
|
78
|
+
}), openModal === ToDoModal.TAX_ID && /*#__PURE__*/React.createElement(RegisterTaxIdFlow, {
|
|
79
|
+
showFlow: modalOpen,
|
|
80
|
+
setShowFlow: setmodalOpen
|
|
81
|
+
})));
|
|
82
|
+
};
|
|
83
|
+
ToDoTask.propTypes = {
|
|
84
|
+
title: PropTypes.string.isRequired,
|
|
85
|
+
message: PropTypes.string.isRequired,
|
|
86
|
+
state: PropTypes.string.isRequired,
|
|
87
|
+
icon: PropTypes.string.isRequired,
|
|
88
|
+
link: PropTypes.any,
|
|
89
|
+
tooltip: PropTypes.string,
|
|
90
|
+
notificationCount: PropTypes.string
|
|
91
|
+
};
|
|
92
|
+
ToDoTask.defaultProps = {
|
|
93
|
+
tooltip: '',
|
|
94
|
+
link: undefined
|
|
95
|
+
};
|
|
96
|
+
export default ToDoTask;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ToDoListTask from './ToDoListTask';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/ToDoList/ToDoListTask',
|
|
6
|
+
component: ToDoListTask,
|
|
7
|
+
argTypes: {
|
|
8
|
+
title: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
defaultValue: '',
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
message: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
defaultValue: '',
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
state: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
defaultValue: '',
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
icon: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
defaultValue: '',
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
link: {
|
|
29
|
+
type: 'any',
|
|
30
|
+
defaultValue: undefined
|
|
31
|
+
},
|
|
32
|
+
tooltip: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
defaultValue: ''
|
|
35
|
+
},
|
|
36
|
+
notificationCount: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
defaultValue: ''
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(ToDoListTask, args));
|
|
43
|
+
export const ToDoListTaskReal = Template.bind({});
|
|
44
|
+
ToDoListTaskReal.args = {
|
|
45
|
+
title: 'Risk Questionaire',
|
|
46
|
+
message: 'You have read and understood the risks',
|
|
47
|
+
link: 'www.link.com',
|
|
48
|
+
state: 'approved',
|
|
49
|
+
tooltip: 'a tool tip for you',
|
|
50
|
+
notificationCount: '5'
|
|
51
|
+
};
|
|
52
|
+
export const ToDoListTaskOverview = Template.bind({});
|
|
53
|
+
ToDoListTaskOverview.args = {
|
|
54
|
+
title: 'Task Title',
|
|
55
|
+
message: 'Task Message',
|
|
56
|
+
icon: 'Icon',
|
|
57
|
+
link: 'www.link.com',
|
|
58
|
+
tooltip: 'a tool-tip for you',
|
|
59
|
+
notificationCount: '5'
|
|
60
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import BaseIcon from 'components/Icon/Icon.style';
|
|
3
|
+
import { ToDoTaskState } from './ToDoList';
|
|
4
|
+
import colors from 'styles/colors';
|
|
5
|
+
export const Container = styled.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
height: 56px;
|
|
8
|
+
align-items: center;
|
|
9
|
+
|
|
10
|
+
${props => props.disabled && `
|
|
11
|
+
opacity:0.5;
|
|
12
|
+
cursor: context-menu;
|
|
13
|
+
`}
|
|
14
|
+
${props => props.link && `
|
|
15
|
+
cursor:pointer;
|
|
16
|
+
`}
|
|
17
|
+
`;
|
|
18
|
+
export const Content = styled.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
`;
|
|
22
|
+
export const TitleContainer = styled.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
`;
|
|
26
|
+
export const Title = styled.div`
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
line-height: 24px;
|
|
30
|
+
letter-spacing: 0.6px;
|
|
31
|
+
text-align: left;
|
|
32
|
+
|
|
33
|
+
${props => (props.state === ToDoTaskState.IN_PROGRESS || props.state === ToDoTaskState.APPROVED || props.state === ToDoTaskState.NOT_AVAILABLE) && `
|
|
34
|
+
opacity: 0.3;
|
|
35
|
+
`}
|
|
36
|
+
|
|
37
|
+
${props => props.link && `
|
|
38
|
+
opacity: 1;
|
|
39
|
+
`}
|
|
40
|
+
`;
|
|
41
|
+
export const Notifications = styled.div`
|
|
42
|
+
position: relative;
|
|
43
|
+
right: -5px;
|
|
44
|
+
width: 16px;
|
|
45
|
+
height: 16px;
|
|
46
|
+
color: #ffffff;
|
|
47
|
+
font-size: 11px;
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
line-height: 16px;
|
|
50
|
+
text-align: center;
|
|
51
|
+
background-color: #ee220d;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
padding-left: 0;
|
|
54
|
+
`;
|
|
55
|
+
export const State = styled.p`
|
|
56
|
+
margin-top: 3px;
|
|
57
|
+
font-size: 11px;
|
|
58
|
+
line-height: 16px;
|
|
59
|
+
letter-spacing: 0.4px;
|
|
60
|
+
font-weight: 300;
|
|
61
|
+
text-align: left;
|
|
62
|
+
opacity: 0.6;
|
|
63
|
+
`;
|
|
64
|
+
export const IconContainer = styled.div`
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
width: 23px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
/* margin: auto 0 auto auto; */
|
|
69
|
+
|
|
70
|
+
margin-right: 10px;
|
|
71
|
+
position: relative;
|
|
72
|
+
top: -10px;
|
|
73
|
+
`;
|
|
74
|
+
export const TooltipBox = styled.div`
|
|
75
|
+
max-width: 240px;
|
|
76
|
+
text-align: left;
|
|
77
|
+
`;
|
|
78
|
+
export const Icon = styled(BaseIcon)`
|
|
79
|
+
font-size: 20px;
|
|
80
|
+
width: 18px;
|
|
81
|
+
text-align: center;
|
|
82
|
+
|
|
83
|
+
${props => props.state === ToDoTaskState.APPROVED && `
|
|
84
|
+
font-size: 13px;
|
|
85
|
+
color: ${colors.freshGreen};
|
|
86
|
+
`}
|
|
87
|
+
|
|
88
|
+
${props => props.state === ToDoTaskState.REJECTED && `
|
|
89
|
+
color: ${colors.orangishRed};
|
|
90
|
+
`}
|
|
91
|
+
|
|
92
|
+
${props => props.state === ToDoTaskState.IN_PROGRESS && `
|
|
93
|
+
opacity: 0.3;
|
|
94
|
+
`}
|
|
95
|
+
|
|
96
|
+
${props => props.state === ToDoTaskState.SKIPPED && `
|
|
97
|
+
font-size: 13px;
|
|
98
|
+
`}
|
|
99
|
+
|
|
100
|
+
${props => props.state === ToDoTaskState.NOT_AVAILABLE && `
|
|
101
|
+
font-size: 13px;
|
|
102
|
+
opacity: 0.3;
|
|
103
|
+
`}
|
|
104
|
+
`;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import BasicTable from 'components/BasicTable/BasicTable';
|
|
4
|
+
import { Container, Toggle, DetailsCollapse } from './TransactionDetails.styles';
|
|
5
|
+
export const TransactionDetails = props => {
|
|
6
|
+
const {
|
|
7
|
+
data
|
|
8
|
+
} = props;
|
|
9
|
+
const [showDetails, setShowDetails] = useState(true);
|
|
10
|
+
const toggleDetails = () => {
|
|
11
|
+
setShowDetails(!showDetails);
|
|
12
|
+
};
|
|
13
|
+
return /*#__PURE__*/React.createElement(Container, null, data.length > 0 ? /*#__PURE__*/React.createElement(Toggle, {
|
|
14
|
+
onClick: toggleDetails
|
|
15
|
+
}, showDetails ? 'hide details' : 'view details') : /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(DetailsCollapse, {
|
|
16
|
+
isOpened: showDetails
|
|
17
|
+
}, /*#__PURE__*/React.createElement(BasicTable, {
|
|
18
|
+
data: data
|
|
19
|
+
})));
|
|
20
|
+
};
|
|
21
|
+
TransactionDetails.propTypes = {
|
|
22
|
+
data: PropTypes.arrayOf(PropTypes.shape({
|
|
23
|
+
label: PropTypes.string,
|
|
24
|
+
value: PropTypes.string.isRequired
|
|
25
|
+
})).isRequired
|
|
26
|
+
};
|
|
27
|
+
export default TransactionDetails;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TransactionDetails } from './TransactionDetails';
|
|
3
|
+
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components Library/TransactionDetails',
|
|
6
|
+
component: TransactionDetails,
|
|
7
|
+
argTypes: {
|
|
8
|
+
data: [{
|
|
9
|
+
label: {
|
|
10
|
+
type: 'string'
|
|
11
|
+
}
|
|
12
|
+
}, {
|
|
13
|
+
value: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
required: true
|
|
16
|
+
}
|
|
17
|
+
}],
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const Template = args => /*#__PURE__*/React.createElement(ComponentWrapper, null, /*#__PURE__*/React.createElement(TransactionDetails, args));
|
|
22
|
+
export const TransactionDetails1 = Template.bind({});
|
|
23
|
+
TransactionDetails1.args = {
|
|
24
|
+
data: [{
|
|
25
|
+
label: 'This is a Label',
|
|
26
|
+
value: 'This is a value'
|
|
27
|
+
}]
|
|
28
|
+
};
|
|
29
|
+
export const TransactionDetails4 = Template.bind({});
|
|
30
|
+
TransactionDetails4.args = {
|
|
31
|
+
data: [{
|
|
32
|
+
label: 'This is a Label',
|
|
33
|
+
value: 'This is a value'
|
|
34
|
+
}, {
|
|
35
|
+
label: 'This is a Label too',
|
|
36
|
+
value: 'This is a value too'
|
|
37
|
+
}, {
|
|
38
|
+
label: 'This is Label three',
|
|
39
|
+
value: 'This is value three'
|
|
40
|
+
}, {
|
|
41
|
+
label: 'This is Label four',
|
|
42
|
+
value: 'This is value four'
|
|
43
|
+
}]
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//doublecheck:
|
|
47
|
+
// state?
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import styled from 'styled-components/macro';
|
|
2
|
+
import { Collapse } from 'react-collapse';
|
|
3
|
+
import theme from 'styles/theme';
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
display: block;
|
|
6
|
+
position: relative;
|
|
7
|
+
text-align: center;
|
|
8
|
+
padding-top: 8px;
|
|
9
|
+
`;
|
|
10
|
+
export const Toggle = styled.button`
|
|
11
|
+
display: inline-block;
|
|
12
|
+
font-size: 11px;
|
|
13
|
+
line-height: 16px;
|
|
14
|
+
color: ${props => theme.cGrey2};
|
|
15
|
+
transition: color 0.2s;
|
|
16
|
+
outline: 0;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
color: ${props => theme.cPrimary};
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
export const DetailsCollapse = styled(Collapse)`
|
|
23
|
+
opacity: 0;
|
|
24
|
+
transition: opacity 0.2s;
|
|
25
|
+
margin-top: 12px;
|
|
26
|
+
|
|
27
|
+
${props => props.isOpened && `
|
|
28
|
+
opacity: 1;
|
|
29
|
+
border-bottom: 1px solid ${theme.cLightGrey};
|
|
30
|
+
`}
|
|
31
|
+
`;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Container, Account, TransferIcon, Value, Name } from './TransactionInfo.styles';
|
|
4
|
+
export const TransactionInfo = ({
|
|
5
|
+
value1,
|
|
6
|
+
unit1,
|
|
7
|
+
name1,
|
|
8
|
+
owner1,
|
|
9
|
+
value2,
|
|
10
|
+
unit2,
|
|
11
|
+
name2,
|
|
12
|
+
owner2,
|
|
13
|
+
green,
|
|
14
|
+
red
|
|
15
|
+
}) => /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Account, null, /*#__PURE__*/React.createElement(Name, {
|
|
16
|
+
green: green,
|
|
17
|
+
red: red
|
|
18
|
+
}, `${name1} ${owner1}`), /*#__PURE__*/React.createElement(Value, {
|
|
19
|
+
green: green,
|
|
20
|
+
red: red
|
|
21
|
+
}, `${unit1} ${value1}`)), /*#__PURE__*/React.createElement(TransferIcon, null), /*#__PURE__*/React.createElement(Account, null, /*#__PURE__*/React.createElement(Name, {
|
|
22
|
+
green: green,
|
|
23
|
+
red: red
|
|
24
|
+
}, `${name2} ${owner2}`), /*#__PURE__*/React.createElement(Value, {
|
|
25
|
+
green: green,
|
|
26
|
+
red: red
|
|
27
|
+
}, `${unit2} ${value2}`)));
|
|
28
|
+
TransactionInfo.propTypes = {
|
|
29
|
+
value1: PropTypes.string,
|
|
30
|
+
unit1: PropTypes.string,
|
|
31
|
+
name1: PropTypes.string,
|
|
32
|
+
owner1: PropTypes.string,
|
|
33
|
+
value2: PropTypes.string,
|
|
34
|
+
unit2: PropTypes.string,
|
|
35
|
+
name2: PropTypes.string,
|
|
36
|
+
owner2: PropTypes.string
|
|
37
|
+
};
|
|
38
|
+
TransactionInfo.defaultProps = {
|
|
39
|
+
value1: '',
|
|
40
|
+
unit1: '',
|
|
41
|
+
name1: '',
|
|
42
|
+
owner1: '',
|
|
43
|
+
value2: '',
|
|
44
|
+
unit2: '',
|
|
45
|
+
name2: '',
|
|
46
|
+
owner2: ''
|
|
47
|
+
};
|
|
48
|
+
export default TransactionInfo;
|