@stokr/components-library 1.0.8 → 1.1.0
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/dist/api/StokrWeb3.js +184 -0
- package/dist/api/fetchData.js +76 -0
- package/dist/api/fetchDataPublic.js +65 -0
- package/dist/components/AccountBalance/AccountBalance.js +53 -0
- package/dist/components/AccountBalance/AccountBalance.stories.js +89 -0
- package/dist/components/AccountBalance/AccountBalance.styles.js +40 -0
- package/dist/components/AdminDashboard/Table/Table.js +170 -0
- package/dist/components/AdminDashboard/Table/Table.styles.js +79 -0
- package/dist/components/AgreementItem/AgreementItem.js +51 -0
- package/dist/components/AgreementItem/AgreementItem.stories.js +110 -0
- package/dist/components/AgreementItem/AgreementItem.styles.js +35 -0
- package/dist/components/AnalyticGraphs/Analytic.js +781 -0
- package/dist/components/AnalyticGraphs/Analytic.styles.js +37 -0
- package/dist/components/BackButton/BackButton.js +32 -0
- package/dist/components/BackButton/BackButton.stories.js +36 -0
- package/dist/components/BackButton/BackButton.styles.js +76 -0
- package/dist/components/Background/Background.js +45 -0
- package/dist/components/Background/Background.stories.js +79 -0
- package/dist/components/Background/Background.styles.js +76 -0
- package/dist/components/BarChart/BarChart.js +306 -0
- package/dist/components/BarChart/BarChart.stories.js +71 -0
- package/dist/components/BarChart/BarChart.styles.js +33 -0
- package/dist/components/BarChartLegend/BarChartLegend.js +106 -0
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +26 -0
- package/dist/components/BasicTable/BasicTable.js +32 -0
- package/dist/components/BasicTable/BasicTable.stories.js +64 -0
- package/dist/components/BasicTable/BasicTable.styles.js +52 -0
- package/dist/components/Button/Button.stories.js +80 -0
- package/dist/components/Button/Button.styles.js +83 -0
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +18 -0
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +46 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +34 -0
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +34 -0
- package/dist/components/ChartBox/ChartBox.js +44 -0
- package/dist/components/ChartBox/ChartBox.stories.js +20 -0
- package/dist/components/ChartBox/ChartBox.styles.js +33 -0
- package/dist/components/ChartBox/ChartBoxDistribution.js +30 -0
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +21 -0
- package/dist/components/ChartLegend/ChartLegend.js +62 -0
- package/dist/components/ChartLegend/ChartLegend.stories.js +88 -0
- package/dist/components/ChartLegend/ChartLegend.styles.js +64 -0
- package/dist/components/Checkbox/Checkbox.js +116 -0
- package/dist/components/Checkbox/Checkbox.stories.js +93 -0
- package/dist/components/Checkbox/Checkbox.styles.js +45 -0
- package/dist/components/Checklist/UserChecklist.js +298 -0
- package/dist/components/Checklist/UserChecklist.stories.js +352 -0
- package/dist/components/ComponentScroll/ComponentScroll.js +100 -0
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +102 -0
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +66 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +68 -0
- package/dist/components/CryptoAddress/ComponentWrap.js +37 -0
- package/dist/components/CryptoAddress/CryptoAddress.js +187 -0
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +211 -0
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +191 -0
- package/dist/components/CryptoAddress/RadioWrap.js +56 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +54 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +75 -0
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +67 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +40 -0
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +59 -0
- package/dist/components/DonutChart/DonutChart.js +182 -0
- package/dist/components/DonutChart/DonutChart.stories.js +58 -0
- package/dist/components/DonutChart/DonutChart.styles.js +50 -0
- package/dist/components/DoubleButton/DoubleButton.styles.js +22 -0
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +15 -0
- package/dist/components/FAQ/FAQ.js +75 -0
- package/dist/components/FAQ/FAQ.stories.js +75 -0
- package/dist/components/FAQ/FAQ.styles.js +48 -0
- package/dist/components/Footer/Footer.js +66 -0
- package/dist/components/Footer/Footer.stories.js +55 -0
- package/dist/components/Footer/Footer.styles.js +74 -0
- package/dist/components/Footer/FooterLayout.js +119 -0
- package/dist/components/Footer/FooterLayout.stories.js +32 -0
- package/dist/components/Footer/FooterMenu.js +117 -0
- package/dist/components/Footer/FooterMenu.stories.js +122 -0
- package/dist/components/Footer/FooterMenu.styles.js +80 -0
- package/dist/components/Footer/index.js +27 -0
- package/dist/components/Footer/sicos-logo.svg +1 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +127 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +43 -0
- package/dist/components/Form/Form.js +68 -0
- package/dist/components/Form/Form.stories.js +36 -0
- package/dist/components/Form/Form.styles.js +59 -0
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +32 -0
- package/dist/components/Grid/Grid.styles.js +68 -0
- package/dist/components/Header/Header.js +461 -0
- package/dist/components/Header/Header.stories.js +223 -0
- package/dist/components/Header/Header.styles.js +182 -0
- package/dist/components/Icon/Icon.style.js +71 -0
- package/dist/components/InfoIcon/InfoIcon.js +50 -0
- package/dist/components/InfoIcon/InfoIcon.stories.js +53 -0
- package/dist/components/InfoIcon/InfoIcon.styles.js +31 -0
- package/dist/components/InfoPanel/InfoPanel.js +146 -0
- package/dist/components/Input/DatePickerInput.js +85 -0
- package/dist/components/Input/DatePickerInput.stories.js +92 -0
- package/dist/components/Input/DatePickerInput.styles.js +29 -0
- package/dist/components/Input/Input.js +125 -0
- package/dist/components/Input/Input.stories.js +149 -0
- package/dist/components/Input/Input.styles.js +53 -0
- package/dist/components/Input/InputPassword.js +151 -0
- package/dist/components/Input/InputPassword.stories.js +86 -0
- package/dist/components/Input/InputPassword.styles.js +80 -0
- package/dist/components/Input/RangeInput.js +97 -0
- package/dist/components/Input/RangeInput.stories.js +62 -0
- package/dist/components/Input/RangeInput.styles.js +53 -0
- package/dist/components/Input/Select.js +148 -0
- package/dist/components/Input/Select.stories.js +143 -0
- package/dist/components/Input/Select.styles.js +65 -0
- package/dist/components/InvestCalculator/InvestCalculator.js +367 -0
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +138 -0
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +66 -0
- package/dist/components/InvestmentStat/InvestmentStat.js +40 -0
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +57 -0
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +43 -0
- package/dist/components/KYCFlow/BasicInfo.js +489 -0
- package/dist/components/KYCFlow/Confirmation.js +51 -0
- package/dist/components/KYCFlow/DocumentFileUpload.js +276 -0
- package/dist/components/KYCFlow/DocumentScan.js +74 -0
- package/dist/components/KYCFlow/DocumentScanUpload.js +258 -0
- package/dist/components/KYCFlow/DocumentSelect.js +148 -0
- package/dist/components/KYCFlow/DocumentSuccess.js +64 -0
- package/dist/components/KYCFlow/DocumentUpload.js +54 -0
- package/dist/components/KYCFlow/DocumentVerificationType.js +161 -0
- package/dist/components/KYCFlow/FaceScan.js +55 -0
- package/dist/components/KYCFlow/FaceScanRecognition.js +60 -0
- package/dist/components/KYCFlow/FaceScanSuccess.js +59 -0
- package/dist/components/KYCFlow/Terms.js +142 -0
- package/dist/components/KYCFlow/_styles.js +160 -0
- package/dist/components/KYCFlow/index.js +97 -0
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +41 -0
- package/dist/components/LatestUpdate/LatestUpdate.js +51 -0
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +63 -0
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +71 -0
- package/dist/components/Layout/Layout-func-no-work.js +78 -0
- package/dist/components/Layout/Layout.js +103 -0
- package/dist/components/Layout/Layout.stories.js +67 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +47 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +71 -0
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +43 -0
- package/dist/components/LearnMorePage/LearnMore.js +255 -0
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +40 -0
- package/dist/components/LearnMorePage/LearnMore.stories.js +52 -0
- package/dist/components/LearnMorePage/LearnMore.styles.js +120 -0
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +87 -0
- package/dist/components/LearnMorePage/LearnMoreItem.js +75 -0
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +66 -0
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +87 -0
- package/dist/components/LearnMoreSection/LearnMore.js +199 -0
- package/dist/components/LearnMoreSection/LearnMore.stories.js +34 -0
- package/dist/components/LearnMoreSection/LearnMore.styles.js +73 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.js +52 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +63 -0
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +50 -0
- package/dist/components/LoginModal/LoginModal.js +182 -0
- package/dist/components/LoginModal/LoginModal.stories.js +70 -0
- package/dist/components/MainMenu/DynamicMainMenu.js +51 -0
- package/dist/components/MainMenu/MainMenu.js +261 -0
- package/dist/components/MainMenu/MainMenu.styles.js +125 -0
- package/dist/components/MatomoConnect/Matomo.js +490 -0
- package/dist/components/MatomoConnect/Matomo_fuckup.js +387 -0
- package/dist/components/MenuNav/MenuNav.styles.js +42 -0
- package/dist/components/Modal/Modal.js +139 -0
- package/dist/components/Modal/Modal.stories.js +83 -0
- package/dist/components/Modal/Modal.styles.js +142 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.js +48 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +73 -0
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +41 -0
- package/dist/components/Newsletter/Newsletter.js +162 -0
- package/dist/components/Newsletter/Newsletter.stories.js +20 -0
- package/dist/components/Newsletter/Newsletter.styles.js +83 -0
- package/dist/components/NotificationContext/NotificationContext.js +173 -0
- package/dist/components/NotificationContext/NotificationContext.stories.js +33 -0
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +26 -0
- package/dist/components/Number/Number.js +35 -0
- package/dist/components/Number/Number.stories.js +41 -0
- package/dist/components/Number/Number.styles.js +20 -0
- package/dist/components/PageTransition/PageTransition.js +57 -0
- package/dist/components/Process/Process.stories.js +48 -0
- package/dist/components/Process/Process.styles.js +33 -0
- package/dist/components/ProfileBadge/ProfileBadge.js +53 -0
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +49 -0
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +32 -0
- package/dist/components/ProfileBox/ProfileBox.js +39 -0
- package/dist/components/ProfileBox/ProfileBox.stories.js +39 -0
- package/dist/components/ProfileBox/ProfileBox.styles.js +49 -0
- package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +477 -0
- package/dist/components/ProfileHeader/ProfileHeader.js +313 -0
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +87 -0
- package/dist/components/ProfileStat/ProfileStat.js +42 -0
- package/dist/components/ProfileStat/ProfileStat.stories.js +72 -0
- package/dist/components/ProfileStat/ProfileStat.styles.js +42 -0
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +69 -0
- package/dist/components/ROI/ROI.js +312 -0
- package/dist/components/ROI/ROI.styles.js +63 -0
- package/dist/components/ROI/ROIChart.js +469 -0
- package/dist/components/ROI/ROIChart.styles.js +33 -0
- package/dist/components/ROI/ROIModal.js +91 -0
- package/dist/components/ROI/ROIScenarioBox.js +55 -0
- package/dist/components/ROI/ROIScenarioBox.styles.js +52 -0
- package/dist/components/Radio/Radio.js +68 -0
- package/dist/components/Radio/Radio.stories.js +77 -0
- package/dist/components/Radio/Radio.styles.js +31 -0
- package/dist/components/RefreshButton/RefreshButton.js +21 -0
- package/dist/components/RefreshButton/RefreshButton.stories.js +43 -0
- package/dist/components/RefreshButton/RefreshButton.styles.js +39 -0
- package/dist/components/RegisterAlgorand/AlgoAddressName.js +138 -0
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +444 -0
- package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +47 -0
- package/dist/components/RegisterAlgorand/AlgoSuccess.js +38 -0
- package/dist/components/RegisterAlgorand/Algorand.stories.js +80 -0
- package/dist/components/RegisterAlgorand/ChooseWallet.js +97 -0
- package/dist/components/RegisterAlgorand/SelectProject.js +90 -0
- package/dist/components/RegisterAlgorand/_styles.js +28 -0
- package/dist/components/RegisterAlgorand/flow.js +409 -0
- package/dist/components/RegisterAlgorand/flowWithMemo.js +410 -0
- package/dist/components/RegisterAlgorand/index.js +48 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +40 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +34 -0
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +16 -0
- package/dist/components/RegisterEthereum/EthAddressLedger.js +226 -0
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +204 -0
- package/dist/components/RegisterEthereum/EthAddressName.js +135 -0
- package/dist/components/RegisterEthereum/EthConnectLedger.js +194 -0
- package/dist/components/RegisterEthereum/EthConnectMetamask.js +35 -0
- package/dist/components/RegisterEthereum/EthFinish.js +41 -0
- package/dist/components/RegisterEthereum/EthIntro.js +95 -0
- package/dist/components/RegisterEthereum/_styles.js +28 -0
- package/dist/components/RegisterEthereum/index.js +68 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +106 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +66 -0
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +48 -0
- package/dist/components/RegisterLiquidSteps/complete.js +37 -0
- package/dist/components/RegisterLiquidSteps/flow.js +197 -0
- package/dist/components/RegisterLiquidSteps/index.js +52 -0
- package/dist/components/RegisterLiquidSteps/register-liquid.js +240 -0
- package/dist/components/RegisterModal/RegisterModal.js +180 -0
- package/dist/components/RegisterModal/RegisterModal.stories.js +47 -0
- package/dist/components/RequestDataBox/RequestDataBox.js +31 -0
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +41 -0
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +31 -0
- package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +185 -0
- package/dist/components/RiskQuestionnaire/_styles.js +15 -0
- package/dist/components/SEO/SEO.js +71 -0
- package/dist/components/SEO/SEO.stories.js +64 -0
- package/dist/components/SectionTitle/SectionTitle.styles.js +15 -0
- package/dist/components/SideLine/SideLine.js +15 -0
- package/dist/components/SideLine/SideLine.stories.js +31 -0
- package/dist/components/SideLine/SideLine.styles.js +26 -0
- package/dist/components/SigningSubflow/SignSubAddressMetamask.js +137 -0
- package/dist/components/SigningSubflow/SignSubConnectLedger.js +150 -0
- package/dist/components/SigningSubflow/SignSubConnectMetamask.js +137 -0
- package/dist/components/SigningSubflow/SignSubIntro.js +54 -0
- package/dist/components/SigningSubflow/SignSubSendLedger.js +150 -0
- package/dist/components/SigningSubflow/SignSubSendMetamask.js +62 -0
- package/dist/components/SigningSubflow/SignSubTransactionLedger.js +161 -0
- package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +166 -0
- package/dist/components/SigningSubflow/_styles.js +45 -0
- package/dist/components/SigningSubflow/index.js +74 -0
- package/dist/components/Slider/Slider.js +50 -0
- package/dist/components/Slider/Slider.stories.js +73 -0
- package/dist/components/Slider/Slider.styles.js +23 -0
- package/dist/components/SpanButton/SpanButton.styles.js +15 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js +20 -0
- package/dist/components/StepController/StepController.js +111 -0
- package/dist/components/StepController/StepController.stories.js +64 -0
- package/dist/components/StepController/StepController.styles.js +26 -0
- package/dist/components/StepController/StepControllerContext.js +104 -0
- package/dist/components/StepController/StepControllerProgress.js +40 -0
- package/dist/components/StepController/StepControllerProgress.stories.js +53 -0
- package/dist/components/StepsProgress/StepsProgress.js +146 -0
- package/dist/components/StepsProgress/StepsProgress.stories.js +51 -0
- package/dist/components/StepsProgress/StepsProgress.styles.js +36 -0
- package/dist/components/StokrLoader/StokrLoader.js +32 -0
- package/dist/components/StokrLoader/media.js +27 -0
- package/dist/components/SvgIcons/AdminBadgeSvg.js +26 -0
- package/dist/components/SvgIcons/CameraSvg.js +36 -0
- package/dist/components/SvgIcons/CapsLockSvg.js +31 -0
- package/dist/components/SvgIcons/DocumentBackSvg.js +35 -0
- package/dist/components/SvgIcons/DocumentSmallSvg.js +61 -0
- package/dist/components/SvgIcons/DocumentSvg.js +38 -0
- package/dist/components/SvgIcons/Early.js +24 -0
- package/dist/components/SvgIcons/EthSvg.js +40 -0
- package/dist/components/SvgIcons/EurSvg.js +26 -0
- package/dist/components/SvgIcons/FaceScanIconSvg.js +31 -0
- package/dist/components/SvgIcons/FourSvg.js +21 -0
- package/dist/components/SvgIcons/Glassess.js +29 -0
- package/dist/components/SvgIcons/LogoSvg.js +24 -0
- package/dist/components/SvgIcons/OneSvg.js +23 -0
- package/dist/components/SvgIcons/PassportSvg.js +56 -0
- package/dist/components/SvgIcons/RefreshSvg.js +27 -0
- package/dist/components/SvgIcons/SocialFacebook.js +25 -0
- package/dist/components/SvgIcons/SocialInstagram.js +26 -0
- package/dist/components/SvgIcons/SocialLinkedIn.js +25 -0
- package/dist/components/SvgIcons/SocialMedium.js +25 -0
- package/dist/components/SvgIcons/SocialReddit.js +25 -0
- package/dist/components/SvgIcons/SocialTelegram.js +25 -0
- package/dist/components/SvgIcons/SocialTwitter.js +28 -0
- package/dist/components/SvgIcons/SocialYoutube.js +25 -0
- package/dist/components/SvgIcons/ThreeSvg.js +20 -0
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +82 -0
- package/dist/components/SvgIcons/TwoSvg.js +23 -0
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +29 -0
- package/dist/components/SvgIcons/UpdateHardSvg.js +25 -0
- package/dist/components/SvgIcons/UpdateSoftSvg.js +27 -0
- package/dist/components/SvgIcons/UploadSvg.js +34 -0
- package/dist/components/SvgIcons/VerifiedBadge.js +23 -0
- package/dist/components/SvgIcons/index.js +223 -0
- package/dist/components/Switch/Switch.js +70 -0
- package/dist/components/Switch/Switch.stories.js +87 -0
- package/dist/components/Switch/Switch.styles.js +47 -0
- package/dist/components/Tabs/Tabs.js +70 -0
- package/dist/components/Tabs/Tabs.stories.js +40 -0
- package/dist/components/Tabs/Tabs.styles.js +18 -0
- package/dist/components/TabsNav/TabNav.js +31 -0
- package/dist/components/TabsNav/TabNav.stories.js +45 -0
- package/dist/components/TabsNav/TabsNav.js +43 -0
- package/dist/components/TabsNav/TabsNav.stories.js +41 -0
- package/dist/components/TabsNav/TabsNav.styles.js +43 -0
- package/dist/components/TeamOverview/TeamOverview.js +125 -0
- package/dist/components/TeamOverview/TeamOverview.stories.js +81 -0
- package/dist/components/TeamOverview/TeamOverview.styles.js +81 -0
- package/dist/components/Text/Headline.js +29 -0
- package/dist/components/Text/Headline.stories.js +52 -0
- package/dist/components/Text/StyledText.js +19 -0
- package/dist/components/Text/Text.stories.js +75 -0
- package/dist/components/Text/Text.styles.js +40 -0
- package/dist/components/TextLink/TextLink.styles.js +30 -0
- package/dist/components/ToDoList/ToDoList.js +189 -0
- package/dist/components/ToDoList/ToDoList.stories.js +138 -0
- package/dist/components/ToDoList/ToDoList.styles.js +83 -0
- package/dist/components/ToDoList/ToDoListTask.js +120 -0
- package/dist/components/ToDoList/ToDoListTask.stories.js +73 -0
- package/dist/components/ToDoList/ToDoListTask.styles.js +74 -0
- package/dist/components/TransactionDetails/TransactionDetails.js +46 -0
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +60 -0
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +31 -0
- package/dist/components/TransactionInfo/TransactionInfo.js +58 -0
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +65 -0
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +54 -0
- package/dist/components/TwoFactorModal/TwoFactorModal.js +122 -0
- package/dist/components/breakdown/Breakdown.js +57 -0
- package/dist/components/breakdown/index.js +27 -0
- package/dist/components/context/Auth.js +207 -0
- package/dist/components/context/AuthContext.js +334 -0
- package/dist/components/icons/Arrow.js +70 -0
- package/dist/components/icons/Arrow.stories.js +49 -0
- package/dist/components/icons/ArrowSimple.js +59 -0
- package/dist/components/icons/ArrowSimple.stories.js +55 -0
- package/dist/components/icons/Check.js +43 -0
- package/dist/components/icons/Check.stories.js +25 -0
- package/dist/components/icons/Facebook.js +26 -0
- package/dist/components/icons/Facebook.stories.js +24 -0
- package/dist/components/icons/Info.js +55 -0
- package/dist/components/icons/Info.stories.js +19 -0
- package/dist/components/icons/Instagram.js +26 -0
- package/dist/components/icons/Instagram.stories.js +24 -0
- package/dist/components/icons/LinkIcon.js +34 -0
- package/dist/components/icons/LinkIcon.stories.js +24 -0
- package/dist/components/icons/LinkedIn.js +43 -0
- package/dist/components/icons/LinkedIn.stories.js +19 -0
- package/dist/components/icons/Medium.js +42 -0
- package/dist/components/icons/Medium.stories.js +19 -0
- package/dist/components/icons/Reddit.js +32 -0
- package/dist/components/icons/Reddit.stories.js +24 -0
- package/dist/components/icons/Share.js +62 -0
- package/dist/components/icons/Share.stories.js +19 -0
- package/dist/components/icons/Telegram.js +42 -0
- package/dist/components/icons/Telegram.stories.js +19 -0
- package/dist/components/icons/Twitter.js +26 -0
- package/dist/components/icons/Twitter.stories.js +24 -0
- package/dist/components/icons/X.js +26 -0
- package/dist/components/icons/X.stories.js +19 -0
- package/dist/components/icons/Youtube.js +26 -0
- package/dist/components/icons/Youtube.stories.js +24 -0
- package/dist/components/icons/index.js +170 -0
- package/dist/components/renderToBody/index.js +27 -0
- package/dist/components/renderToBody/renderToBody.js +68 -0
- package/dist/components/taxId/TaxId.stories.js +56 -0
- package/dist/components/taxId/complete.js +32 -0
- package/dist/components/taxId/flow.js +71 -0
- package/dist/components/taxId/index.js +27 -0
- package/dist/components/taxId/register-taxid.js +203 -0
- package/dist/components/video/Video.js +174 -0
- package/dist/components/video/Video.stories.js +56 -0
- package/dist/components/video/index.js +27 -0
- package/dist/constants/globalVariables.js +16 -0
- package/dist/constants/style.js +52 -0
- package/dist/index.js +1050 -2
- package/dist/model/axios.js +18 -0
- package/dist/model/axiosPublic.js +18 -0
- package/dist/static/fonts/Ionicons/ionicons.min.css +13 -0
- package/dist/static/fonts/icomoon/selection.json +1 -0
- package/dist/static/fonts/icomoon/style.css +137 -0
- package/dist/static/images/1.svg +4 -0
- package/dist/static/images/2.svg +4 -0
- package/dist/static/images/3.svg +3 -0
- package/dist/static/images/4.svg +3 -0
- package/dist/static/images/Glassess.svg +5 -0
- package/dist/static/images/VerifiedBadge.svg +1 -0
- package/dist/static/images/admin-badge.svg +3 -0
- package/dist/static/images/amazon-logo.png +0 -0
- package/dist/static/images/arrow-down-black.svg +21 -0
- package/dist/static/images/avatar-cog.png +0 -0
- package/dist/static/images/avatar.png +0 -0
- package/dist/static/images/background.png +0 -0
- package/dist/static/images/camera.svg +1 -0
- package/dist/static/images/caps-lock.svg +6 -0
- package/dist/static/images/covers/blockchain.png +0 -0
- package/dist/static/images/covers/country.jpg +0 -0
- package/dist/static/images/covers/ethereum.jpg +0 -0
- package/dist/static/images/covers/index.png +0 -0
- package/dist/static/images/covers/liquid.png +0 -0
- package/dist/static/images/covers/money.png +0 -0
- package/dist/static/images/covers/overview.jpg +0 -0
- package/dist/static/images/covers/risk-questionnaire.jpg +0 -0
- package/dist/static/images/covers/rocket.png +0 -0
- package/dist/static/images/covers/verify-identity.jpg +0 -0
- package/dist/static/images/covers/virtual-iban.jpg +0 -0
- package/dist/static/images/document-back.svg +1 -0
- package/dist/static/images/document-small.svg +1 -0
- package/dist/static/images/document.svg +1 -0
- package/dist/static/images/early-adopter.png +0 -0
- package/dist/static/images/early-adopter.svg +1 -0
- package/dist/static/images/eth.svg +10 -0
- package/dist/static/images/eur.svg +3 -0
- package/dist/static/images/face-scan-icon.svg +1 -0
- package/dist/static/images/favicon.png +0 -0
- package/dist/static/images/favicon.svg +57 -0
- package/dist/static/images/google-logo.png +0 -0
- package/dist/static/images/graduation.png +0 -0
- package/dist/static/images/hdd.png +0 -0
- package/dist/static/images/lemonway.png +0 -0
- package/dist/static/images/logo.svg +1 -0
- package/dist/static/images/member-item-picture.png +0 -0
- package/dist/static/images/one.jpg +0 -0
- package/dist/static/images/passport.svg +1 -0
- package/dist/static/images/process-waiting.gif +0 -0
- package/dist/static/images/profile-picture-placeholder.png +0 -0
- package/dist/static/images/profile-picture-placeholder.svg +1 -0
- package/dist/static/images/profile-picture.png +0 -0
- package/dist/static/images/refresh.svg +9 -0
- package/dist/static/images/shark.jpg +0 -0
- package/dist/static/images/sicos.png +0 -0
- package/dist/static/images/slider/1.jpg +0 -0
- package/dist/static/images/slider/2.jpg +0 -0
- package/dist/static/images/slider/3.jpg +0 -0
- package/dist/static/images/social/facebook.svg +3 -0
- package/dist/static/images/social/linkedin.svg +3 -0
- package/dist/static/images/social/medium.svg +3 -0
- package/dist/static/images/social/reddit.svg +3 -0
- package/dist/static/images/social/telegram.svg +3 -0
- package/dist/static/images/social/twitter.svg +3 -0
- package/dist/static/images/social/youtube.svg +3 -0
- package/dist/static/images/three.jpg +0 -0
- package/dist/static/images/two-sided-document.svg +26 -0
- package/dist/static/images/two.jpg +0 -0
- package/dist/static/images/upload.svg +1 -0
- package/dist/static/images/user-profile.png +0 -0
- package/dist/static/videos/Capybara-with-mandarin orange-on-head.mp4 +0 -0
- package/dist/styles/colors.js +55 -0
- package/dist/styles/fonts.js +34 -0
- package/dist/styles/global.js +18 -0
- package/dist/styles/grid.js +16 -0
- package/dist/styles/reactTippy.js +12 -0
- package/dist/styles/rwd.js +52 -0
- package/dist/styles/semanticUi.js +12 -0
- package/dist/styles/spacing.js +12 -0
- package/dist/styles/theme.js +43 -0
- package/dist/utils/allowed-countries-list.js +1375 -0
- package/dist/utils/breakpoint.js +19 -0
- package/dist/utils/countries-list.js +1008 -0
- package/dist/utils/customHooks.js +54 -0
- package/dist/utils/delete-redirect-cookie-and-navigate.js +20 -0
- package/dist/utils/fix-decimals.js +11 -0
- package/dist/utils/get-cookie-domain.js +16 -0
- package/dist/utils/get-short-address.js +10 -0
- package/dist/utils/km_ify.js +38 -0
- package/dist/utils/lock-body.js +20 -0
- package/dist/utils/redirect-url.js +10 -0
- package/dist/utils/set-redirect-cookie.js +20 -0
- package/dist/utils/withRouter.js +20 -0
- package/package.json +84 -89
- package/.vscode/settings.json +0 -3
- package/CHANGELOG.md +0 -7
- package/Dockerfile +0 -20
- package/buildpushndeploy.sh +0 -9
- package/devops/Dockerfile +0 -20
- package/devops/Jenkinsfile +0 -56
- package/devops/ansible/docker-stack-deploy.yml +0 -32
- package/devops/ansible/hosts.ini +0 -7
- package/devops/docker-compose.yml +0 -25
- package/dist/08418fc6c324f51f7e56.svg +0 -1
- package/dist/76dd0ed9c3f137513fd4.svg +0 -1
- package/dist/index.js.LICENSE.txt +0 -1
- package/docker-compose.yml +0 -25
- package/storybook-static/favicon.ico +0 -0
- /package/dist/{03f9f978feb2b015b6812ba10f689967.png → components/Footer/lemonway.png} +0 -0
- /package/dist/{98b7d3182f652f021bc3.ttf → static/fonts/Ionicons/Ionicons.ttf} +0 -0
- /package/dist/{4e528d6445ca1974c313.woff → static/fonts/Ionicons/Ionicons.woff} +0 -0
- /package/dist/{643c37f102b41f7f90c3.woff2 → static/fonts/Ionicons/Ionicons.woff2} +0 -0
- /package/dist/{9bea22b57dc165ed4382.ttf → static/fonts/OpenSans/OpenSans-Bold.ttf} +0 -0
- /package/dist/{a750292d6a0b5a760679.woff → static/fonts/OpenSans/OpenSans-Bold.woff} +0 -0
- /package/dist/{cbfc24090ef8bacab132.woff2 → static/fonts/OpenSans/OpenSans-Bold.woff2} +0 -0
- /package/dist/{bcb6531cf820152b7538.ttf → static/fonts/OpenSans/OpenSans-ExtraBold.ttf} +0 -0
- /package/dist/{81f3ef07b7952e249da1.woff → static/fonts/OpenSans/OpenSans-ExtraBold.woff} +0 -0
- /package/dist/{21e493d43617de76dbc7.woff2 → static/fonts/OpenSans/OpenSans-ExtraBold.woff2} +0 -0
- /package/dist/{55053cc0a8e6482eca64.ttf → static/fonts/OpenSans/OpenSans-Light.ttf} +0 -0
- /package/dist/{c6a4bc1bd034d6303053.woff → static/fonts/OpenSans/OpenSans-Light.woff} +0 -0
- /package/dist/{179ef2df02cb0b68c9fd.woff2 → static/fonts/OpenSans/OpenSans-Light.woff2} +0 -0
- /package/dist/{d97d7385fe8771611848.ttf → static/fonts/OpenSans/OpenSans-Regular.ttf} +0 -0
- /package/dist/{9ec738fbb66068dc1ca7.woff → static/fonts/OpenSans/OpenSans-Regular.woff} +0 -0
- /package/dist/{3caa0d4f9b7d58668066.woff2 → static/fonts/OpenSans/OpenSans-Regular.woff2} +0 -0
- /package/dist/{d2b1865643b98c0e8b54.ttf → static/fonts/OpenSans/OpenSans-SemiBold.ttf} +0 -0
- /package/dist/{39f5961b2d3eb4aa5bf5.woff → static/fonts/OpenSans/OpenSans-SemiBold.woff} +0 -0
- /package/dist/{311956ded96d3fd2813d.woff2 → static/fonts/OpenSans/OpenSans-SemiBold.woff2} +0 -0
- /package/dist/{2640959b1f9381cde047.eot → static/fonts/icomoon/icomoon.eot} +0 -0
- /package/dist/{07233f511246c9825a0d58e5ab2641f3.svg → static/fonts/icomoon/icomoon.svg} +0 -0
- /package/dist/{a1d7666a48f976227722.ttf → static/fonts/icomoon/icomoon.ttf} +0 -0
- /package/dist/{4c3c428d0ce82f840710.woff → static/fonts/icomoon/icomoon.woff} +0 -0
- /package/dist/{14aa35d4e84aebef77cf00b421fc393a.gif → static/images/address-refreshing.gif} +0 -0
- /package/dist/{2ba2db4ff86a2663686a100e75b50ba9.png → static/images/avatar-placeholder.png} +0 -0
- /package/dist/{b85a961d44cc55c58050cbf7c53dd505.png → static/images/whales.png} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useMobileView = void 0;
|
|
8
|
+
exports.usePrevious = usePrevious;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _rwd = _interopRequireWildcard(require("../styles/rwd"));
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
15
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
17
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
18
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
|
+
var useMobileView = function useMobileView() {
|
|
20
|
+
var breakpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _rwd.sizes.Medium;
|
|
21
|
+
var breakpointNumber = breakpoint.match(/\d/g);
|
|
22
|
+
breakpointNumber = breakpointNumber.join('');
|
|
23
|
+
var _React$useState = _react.default.useState(window.innerWidth <= breakpointNumber),
|
|
24
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
25
|
+
isMobile = _React$useState2[0],
|
|
26
|
+
setisMobile = _React$useState2[1];
|
|
27
|
+
var timeout = _react.default.useRef();
|
|
28
|
+
_react.default.useEffect(function () {
|
|
29
|
+
window.addEventListener('resize', onResize);
|
|
30
|
+
onResizeTimeout();
|
|
31
|
+
return function () {
|
|
32
|
+
window.removeEventListener('resize', onResize);
|
|
33
|
+
};
|
|
34
|
+
}, []);
|
|
35
|
+
var onResize = function onResize() {
|
|
36
|
+
clearTimeout(timeout.current);
|
|
37
|
+
timeout.current = setTimeout(onResizeTimeout, 100);
|
|
38
|
+
};
|
|
39
|
+
var onResizeTimeout = function onResizeTimeout() {
|
|
40
|
+
setisMobile(checkIsMobile());
|
|
41
|
+
};
|
|
42
|
+
var checkIsMobile = function checkIsMobile() {
|
|
43
|
+
return window.innerWidth <= breakpointNumber;
|
|
44
|
+
};
|
|
45
|
+
return isMobile;
|
|
46
|
+
};
|
|
47
|
+
exports.useMobileView = useMobileView;
|
|
48
|
+
function usePrevious(value) {
|
|
49
|
+
var ref = (0, _react.useRef)();
|
|
50
|
+
(0, _react.useEffect)(function () {
|
|
51
|
+
ref.current = value;
|
|
52
|
+
});
|
|
53
|
+
return ref.current;
|
|
54
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
8
|
+
var _getCookieDomain = _interopRequireDefault(require("./get-cookie-domain"));
|
|
9
|
+
var _redirectUrl = _interopRequireDefault(require("./redirect-url"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var _default = function _default() {
|
|
12
|
+
var cookieDomain = {};
|
|
13
|
+
if (process.env.NODE_ENV === 'production') {
|
|
14
|
+
cookieDomain.domain = (0, _getCookieDomain.default)();
|
|
15
|
+
}
|
|
16
|
+
_jsCookie.default.remove('STOKR_INVESTOR_DASHBOARD_REDIRECT', cookieDomain);
|
|
17
|
+
_jsCookie.default.remove('STOKR_INVEST_IN_STO_REDIRECT', cookieDomain);
|
|
18
|
+
window.location.href = _redirectUrl.default;
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
// Convert to float; fix decimals; convert to string; return
|
|
8
|
+
var _default = function _default(value, decimals) {
|
|
9
|
+
return parseFloat(value).toFixed(decimals).toString();
|
|
10
|
+
};
|
|
11
|
+
exports.default = _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = function _default() {
|
|
8
|
+
var cookieDomain = {};
|
|
9
|
+
|
|
10
|
+
// Cookie for deployed app
|
|
11
|
+
if (process.env.NODE_ENV === 'production') {
|
|
12
|
+
cookieDomain.domain = process.env.REACT_APP_COOKIE_DOMAIN;
|
|
13
|
+
}
|
|
14
|
+
return cookieDomain;
|
|
15
|
+
};
|
|
16
|
+
exports.default = _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = function _default(address) {
|
|
8
|
+
return "".concat(address.slice(0, 6), "[...]").concat(address.slice(-4));
|
|
9
|
+
};
|
|
10
|
+
exports.default = _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.km_ify = void 0;
|
|
7
|
+
var km_ify = function km_ify(input) {
|
|
8
|
+
if (input >= 1000000) {
|
|
9
|
+
input /= 1000000;
|
|
10
|
+
if (input % 10 !== 0) {
|
|
11
|
+
input = truncateDecimals(input, 1);
|
|
12
|
+
}
|
|
13
|
+
input += 'M';
|
|
14
|
+
}
|
|
15
|
+
if (input >= 1000) {
|
|
16
|
+
input /= 1000;
|
|
17
|
+
if (input % 10 !== 0) {
|
|
18
|
+
input = truncateDecimals(input, 1);
|
|
19
|
+
}
|
|
20
|
+
input += 'K';
|
|
21
|
+
}
|
|
22
|
+
return input;
|
|
23
|
+
};
|
|
24
|
+
exports.km_ify = km_ify;
|
|
25
|
+
var truncateDecimals = function truncateDecimals(number, digits) {
|
|
26
|
+
var re = new RegExp('(\\d+\\.\\d{' + digits + '})(\\d)'),
|
|
27
|
+
m = number.toString().match(re);
|
|
28
|
+
return m ? parseFloat(m[1]) : number.valueOf();
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
//how the number should appear - SKR-870
|
|
32
|
+
// 1-999 just the number
|
|
33
|
+
// 1000 1K
|
|
34
|
+
// 1001 - <1100 1K
|
|
35
|
+
// 1100 - <1200 1.1K
|
|
36
|
+
// 999900 -999999 999.9K
|
|
37
|
+
// 1000000 - <1100000 1M
|
|
38
|
+
// 1100000 -<1200000 1.1M
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
// Hook
|
|
9
|
+
function _default() {
|
|
10
|
+
(0, _react.useLayoutEffect)(function () {
|
|
11
|
+
// Get original body overflow
|
|
12
|
+
var originalStyle = window.getComputedStyle(document.body).overflow;
|
|
13
|
+
// Prevent scrolling on mount
|
|
14
|
+
document.body.style.overflow = 'hidden';
|
|
15
|
+
// Re-enable scrolling when component unmounts
|
|
16
|
+
return function () {
|
|
17
|
+
return document.body.style.overflow = originalStyle;
|
|
18
|
+
};
|
|
19
|
+
}, []); // Empty array ensures effect is only run on mount and unmount
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var _default = _jsCookie.default.get('STOKR_INVESTOR_DASHBOARD_REDIRECT') || _jsCookie.default.get('STOKR_INVEST_IN_STO_REDIRECT');
|
|
10
|
+
exports.default = _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var _default = function _default() {
|
|
10
|
+
var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
11
|
+
var inOneHour = 1 / 24;
|
|
12
|
+
var cookieOptions = {
|
|
13
|
+
expires: inOneHour
|
|
14
|
+
};
|
|
15
|
+
if (process.env.NODE_ENV === 'production') {
|
|
16
|
+
cookieOptions.domain = process.env.REACT_APP_COOKIE_DOMAIN;
|
|
17
|
+
}
|
|
18
|
+
_jsCookie.default.set('STOKR_INVESTOR_DASHBOARD_REDIRECT', "".concat(window.location.href).concat(path), cookieOptions);
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.withRouter = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactRouterDom = require("react-router-dom");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
|
+
var withRouter = function withRouter(Component) {
|
|
12
|
+
var Wrapper = function Wrapper(props) {
|
|
13
|
+
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(Component, _extends({
|
|
15
|
+
navigate: navigate
|
|
16
|
+
}, props));
|
|
17
|
+
};
|
|
18
|
+
return Wrapper;
|
|
19
|
+
};
|
|
20
|
+
exports.withRouter = withRouter;
|
package/package.json
CHANGED
|
@@ -1,118 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
6
11
|
"repository": {
|
|
7
12
|
"type": "git",
|
|
8
13
|
"url": "http://46.101.229.186:3000/stokr/components-library"
|
|
9
14
|
},
|
|
10
|
-
"author": "
|
|
15
|
+
"author": "Bilal Hodzic <bilal@stokr.io>",
|
|
11
16
|
"license": "MIT",
|
|
12
17
|
"scripts": {
|
|
13
|
-
"build": "
|
|
14
|
-
"build-storybook": "
|
|
15
|
-
"build-storybook-docs": "
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
+
"build": "react-app-rewired build",
|
|
19
|
+
"build-storybook": "storybook build",
|
|
20
|
+
"build-storybook-docs": "storybook build -s public --docs",
|
|
21
|
+
"build:dist": "cross-env BABEL_ENV=production babel src -d dist",
|
|
22
|
+
"test": "react-app-rewired test",
|
|
18
23
|
"prepare": "npm run build",
|
|
19
|
-
"storybook": "
|
|
24
|
+
"storybook": "storybook dev -p 6006",
|
|
20
25
|
"start": "npm run storybook",
|
|
21
26
|
"chromatic": "CHROMATIC_APP_CODE=7kzdke5umep chromatic",
|
|
22
27
|
"release": "auto shipit",
|
|
23
28
|
"pub": "rm -rf ./dist && npm publish --access public",
|
|
24
|
-
"
|
|
29
|
+
"start:script": "react-scripts start"
|
|
25
30
|
},
|
|
26
31
|
"dependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@fortawesome/
|
|
29
|
-
"@fortawesome/
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"crypto-browserify": "^3.12.0",
|
|
42
|
-
"formik": "^2.2.8",
|
|
43
|
-
"js-cookie": "^2.2.1",
|
|
32
|
+
"@fortawesome/fontawesome-svg-core": "^6.3.0",
|
|
33
|
+
"@fortawesome/free-solid-svg-icons": "^6.3.0",
|
|
34
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
35
|
+
"@randlabs/myalgo-connect": "^1.4.2",
|
|
36
|
+
"algosdk": "^2.1.0",
|
|
37
|
+
"axios": "^1.5.0",
|
|
38
|
+
"bignumber.js": "^9.1.1",
|
|
39
|
+
"cross-env": "^7.0.3",
|
|
40
|
+
"d3": "^7.8.3",
|
|
41
|
+
"date-fns": "^2.29.3",
|
|
42
|
+
"fomantic-ui-css": "^2.9.2",
|
|
43
|
+
"formik": "^2.2.9",
|
|
44
|
+
"formik-persist": "^1.1.0",
|
|
45
|
+
"js-cookie": "^3.0.5",
|
|
44
46
|
"mobile-detect": "^1.4.5",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"react": "^
|
|
48
|
-
"react-collapse": "^5.1.
|
|
49
|
-
"react-copy-to-clipboard": "^5.0
|
|
50
|
-
"react-countup": "^4.
|
|
51
|
-
"react-custom-scrollbars": "^4.
|
|
52
|
-
"react-day-picker": "^
|
|
53
|
-
"react-device-detect": "^2.
|
|
54
|
-
"react-dom": "^
|
|
47
|
+
"prop-types": "^15.8.1",
|
|
48
|
+
"react": "^18.2.0",
|
|
49
|
+
"react-app-rewired": "^2.2.1",
|
|
50
|
+
"react-collapse": "^5.1.1",
|
|
51
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
52
|
+
"react-countup": "^6.4.1",
|
|
53
|
+
"react-custom-scrollbars-2": "^4.5.0",
|
|
54
|
+
"react-day-picker": "^8.5.1",
|
|
55
|
+
"react-device-detect": "^2.2.3",
|
|
56
|
+
"react-dom": "^18.2.0",
|
|
55
57
|
"react-helmet": "^6.1.0",
|
|
56
|
-
"react-portal": "^4.2.
|
|
57
|
-
"react-
|
|
58
|
-
"react-
|
|
58
|
+
"react-portal": "^4.2.2",
|
|
59
|
+
"react-range": "^1.8.14",
|
|
60
|
+
"react-router": "^6.8.1",
|
|
61
|
+
"react-router-dom": "^6.8.1",
|
|
62
|
+
"react-scripts": "5.0.1",
|
|
63
|
+
"react-select": "^5.7.0",
|
|
64
|
+
"react-slick": "^0.29.0",
|
|
59
65
|
"react-tippy": "^1.4.0",
|
|
66
|
+
"react-transition-group": "^4.4.5",
|
|
60
67
|
"scroll-to-element": "^2.0.3",
|
|
61
|
-
"semantic-ui-
|
|
62
|
-
"semantic-ui-react": "^2.0.3",
|
|
68
|
+
"semantic-ui-react": "^2.1.4",
|
|
63
69
|
"slick-carousel": "^1.8.1",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"styled-components": "^5.3.0",
|
|
67
|
-
"webpack-cli": "^3.3.12",
|
|
68
|
-
"webpack-node-externals": "^1.7.2",
|
|
69
|
-
"yup": "^0.32.9"
|
|
70
|
+
"styled-components": "^6.0.7",
|
|
71
|
+
"yup": "^1.0.0"
|
|
70
72
|
},
|
|
71
73
|
"devDependencies": {
|
|
72
|
-
"@babel/cli": "^7.
|
|
73
|
-
"@babel/core": "^7.
|
|
74
|
-
"@babel/plugin-proposal-
|
|
75
|
-
"@babel/preset-env": "^7.
|
|
76
|
-
"@babel/preset-react": "^7.
|
|
77
|
-
"@storybook/addon-
|
|
78
|
-
"@storybook/addon-
|
|
79
|
-
"@storybook/addon-
|
|
80
|
-
"@storybook/addon-
|
|
81
|
-
"@storybook/addon-
|
|
82
|
-
"@storybook/
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/
|
|
85
|
-
"@storybook/
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"auto": "^10.37.4",
|
|
91
|
-
"babel-core": "^6.26.3",
|
|
92
|
-
"babel-eslint": "^10.1.0",
|
|
93
|
-
"babel-jest": "^28.1.3",
|
|
94
|
-
"babel-loader": "^8.2.2",
|
|
95
|
-
"babel-plugin-styled-components": "^2.0.7",
|
|
96
|
-
"cross-env": "^7.0.3",
|
|
97
|
-
"eslint": "^8.21.0",
|
|
98
|
-
"eslint-config-react-app": "^7.0.1",
|
|
99
|
-
"eslint-plugin-flowtype": "^8.0.3",
|
|
100
|
-
"eslint-plugin-import": "^2.23.3",
|
|
101
|
-
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
102
|
-
"eslint-plugin-react": "^7.23.2",
|
|
103
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
104
|
-
"eslint-plugin-storybook": "^0.6.3",
|
|
105
|
-
"jest": "^28.1.3",
|
|
106
|
-
"prettier": "^2.7.1",
|
|
107
|
-
"storybook-chromatic": "^4.0.2",
|
|
108
|
-
"styled-components.macro": "^1.0.0",
|
|
109
|
-
"webpack": "^5.74.0"
|
|
110
|
-
},
|
|
111
|
-
"browser": {
|
|
112
|
-
"[module-name]": false
|
|
74
|
+
"@babel/cli": "^7.20.7",
|
|
75
|
+
"@babel/core": "^7.20.12",
|
|
76
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
77
|
+
"@babel/preset-env": "^7.20.2",
|
|
78
|
+
"@babel/preset-react": "^7.18.6",
|
|
79
|
+
"@storybook/addon-actions": "^7.4.0",
|
|
80
|
+
"@storybook/addon-essentials": "^7.4.0",
|
|
81
|
+
"@storybook/addon-interactions": "^7.4.0",
|
|
82
|
+
"@storybook/addon-links": "^7.4.0",
|
|
83
|
+
"@storybook/addon-viewport": "^7.4.0",
|
|
84
|
+
"@storybook/preset-create-react-app": "^7.4.0",
|
|
85
|
+
"@storybook/react": "^7.4.0",
|
|
86
|
+
"@storybook/react-webpack5": "^7.4.0",
|
|
87
|
+
"@storybook/testing-library": "^0.2.0",
|
|
88
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
89
|
+
"prettier": "^3.0.3",
|
|
90
|
+
"storybook": "^7.4.0",
|
|
91
|
+
"styled-components.macro": "^1.0.0"
|
|
113
92
|
},
|
|
114
93
|
"eslintConfig": {
|
|
115
|
-
"extends":
|
|
94
|
+
"extends": [
|
|
95
|
+
"react-app",
|
|
96
|
+
"react-app/jest"
|
|
97
|
+
],
|
|
98
|
+
"overrides": [
|
|
99
|
+
{
|
|
100
|
+
"files": [
|
|
101
|
+
"**/*.stories.*"
|
|
102
|
+
],
|
|
103
|
+
"rules": {
|
|
104
|
+
"import/no-anonymous-default-export": "off"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
]
|
|
116
108
|
},
|
|
117
109
|
"browserslist": {
|
|
118
110
|
"production": [
|
|
@@ -126,6 +118,9 @@
|
|
|
126
118
|
"last 1 safari version"
|
|
127
119
|
]
|
|
128
120
|
},
|
|
121
|
+
"browser": {
|
|
122
|
+
"[module-name]": false
|
|
123
|
+
},
|
|
129
124
|
"bugs": {
|
|
130
125
|
"url": "https://github.com/stokr-io/components-library/issues"
|
|
131
126
|
},
|
package/.vscode/settings.json
DELETED
package/CHANGELOG.md
DELETED
package/Dockerfile
DELETED
package/buildpushndeploy.sh
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
docker build -t reg.stokr.info/stokr/components-library .
|
|
3
|
-
|
|
4
|
-
docker push reg.stokr.info/stokr/components-library
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
docker stack deploy -c docker-compose.yml components-library --with-registry-auth
|
|
8
|
-
|
|
9
|
-
docker service logs -f components-library_components-library
|
package/devops/Dockerfile
DELETED
package/devops/Jenkinsfile
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/* groovylint-disable DuplicateStringLiteral, NoDef, SpaceAroundMapEntryColon, UnnecessaryGString */
|
|
2
|
-
pipeline {
|
|
3
|
-
agent any
|
|
4
|
-
environment {
|
|
5
|
-
PROJECT_NAME='stokr'
|
|
6
|
-
DOMAIN='components-library'
|
|
7
|
-
STACK='components-library'
|
|
8
|
-
DOCKER_REGISTRY='https://reg.stokr.info'
|
|
9
|
-
CONTAINER='stokr/components-library'
|
|
10
|
-
VERSION="1.${BUILD_NUMBER}"
|
|
11
|
-
}
|
|
12
|
-
stages {
|
|
13
|
-
stage('Build Image') {
|
|
14
|
-
options {
|
|
15
|
-
retry(3)
|
|
16
|
-
}
|
|
17
|
-
steps {
|
|
18
|
-
retry(3) {
|
|
19
|
-
script {
|
|
20
|
-
docker.withRegistry("${DOCKER_REGISTRY}", 'stokr-development-docker-reg') {
|
|
21
|
-
def img = docker.build("${CONTAINER}:${VERSION}", "-f devops/Dockerfile .")
|
|
22
|
-
img.push()
|
|
23
|
-
sh "docker rmi ${img.id}"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
stage('Deploy Stack') {
|
|
30
|
-
steps {
|
|
31
|
-
withCredentials([
|
|
32
|
-
usernamePassword(
|
|
33
|
-
credentialsId: 'stokr-development-docker-reg',
|
|
34
|
-
usernameVariable: 'DOCKER_USER',
|
|
35
|
-
passwordVariable: 'DOCKER_PASSWORD'
|
|
36
|
-
)
|
|
37
|
-
]) {
|
|
38
|
-
ansiblePlaybook(
|
|
39
|
-
playbook: 'devops/ansible/docker-stack-deploy.yml',
|
|
40
|
-
inventory: 'devops/ansible/hosts.ini',
|
|
41
|
-
credentialsId: 'stokr-dev-user-development-swarm',
|
|
42
|
-
extraVars: [
|
|
43
|
-
DOMAIN: "${env.DOMAIN}",
|
|
44
|
-
PROJECT: "${env.PROJECT_NAME}",
|
|
45
|
-
STACK: "${env.STACK}",
|
|
46
|
-
VERSION: "${env.VERSION}",
|
|
47
|
-
DOCKER_REGISTRY: [value: "${env.DOCKER_REGISTRY}", hidden: true],
|
|
48
|
-
DOCKER_USER: [value: "${env.DOCKER_USER}", hidden: true],
|
|
49
|
-
DOCKER_PASSWORD: [value: "${env.DOCKER_PASSWORD}", hidden: true]
|
|
50
|
-
]
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- hosts: dev-node01
|
|
3
|
-
any_errors_fatal: true
|
|
4
|
-
|
|
5
|
-
tasks:
|
|
6
|
-
- name: Create project directory
|
|
7
|
-
file: path=/home/stokr_dev0/jenkins/{{ PROJECT }}/{{ DOMAIN }} state=directory
|
|
8
|
-
tags: docker-swarm-deploy
|
|
9
|
-
|
|
10
|
-
- name: Copy Docker Stack File
|
|
11
|
-
copy:
|
|
12
|
-
src: ../docker-compose.yml
|
|
13
|
-
dest: /home/stokr_dev0/jenkins/{{ PROJECT }}/{{ DOMAIN }}/docker-compose.yml
|
|
14
|
-
mode: u=rw,g=r,o=r
|
|
15
|
-
tags: docker-swarm-deploy
|
|
16
|
-
|
|
17
|
-
- name: Replace Placeholders Version
|
|
18
|
-
shell: >
|
|
19
|
-
sed -i -e 's/IMAGEVERSION/{{ VERSION }}/g' docker-compose.yml
|
|
20
|
-
args:
|
|
21
|
-
chdir: "/home/stokr_dev0/jenkins/{{ PROJECT }}/{{ DOMAIN }}/"
|
|
22
|
-
tags: docker-swarm-deploy
|
|
23
|
-
|
|
24
|
-
- name: Login to registry
|
|
25
|
-
shell: >
|
|
26
|
-
docker login -u {{ DOCKER_USER }} -p {{ DOCKER_PASSWORD }} {{ DOCKER_REGISTRY }}
|
|
27
|
-
tags: docker-swarm-deploy
|
|
28
|
-
|
|
29
|
-
- name: Deploy Docker Stack
|
|
30
|
-
shell: >
|
|
31
|
-
docker stack deploy -c /home/stokr_dev0/jenkins/{{ PROJECT }}/{{ DOMAIN }}/docker-compose.yml {{ STACK }} --with-registry-auth
|
|
32
|
-
tags: docker-swarm-deploy
|
package/devops/ansible/hosts.ini
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
version: '3.4'
|
|
2
|
-
|
|
3
|
-
networks:
|
|
4
|
-
internal-net-l1:
|
|
5
|
-
external: true
|
|
6
|
-
services:
|
|
7
|
-
components-library:
|
|
8
|
-
image: reg.stokr.info/stokr/components-library:IMAGEVERSION
|
|
9
|
-
networks:
|
|
10
|
-
- internal-net-l1
|
|
11
|
-
deploy:
|
|
12
|
-
mode: replicated
|
|
13
|
-
replicas: 1
|
|
14
|
-
# placement:
|
|
15
|
-
# constraints:
|
|
16
|
-
# - node.hostname == node0
|
|
17
|
-
labels:
|
|
18
|
-
- "traefik.enable=true"
|
|
19
|
-
- "traefik.http.routers.components-library.rule=Host(`storybook.stokr.info`)"
|
|
20
|
-
- "traefik.http.routers.components-library.entrypoints=httpsEntryPoint"
|
|
21
|
-
- "traefik.http.routers.components-library.tls=true"
|
|
22
|
-
# # #### applying the custome middelware to the route, vip.
|
|
23
|
-
#- "traefik.http.routers.components-library.middlewares=customeSecurityHeaders@file, hsts-header@file"
|
|
24
|
-
- "traefik.http.services.components-library.loadbalancer.server.port=9009"
|
|
25
|
-
- "traefik.docker.network=internal-net-l1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = __webpack_public_path__ + "07233f511246c9825a0d58e5ab2641f3.svg";
|