@stokr/components-library 1.0.9 → 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,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.HeaderWitouthUser = exports.HeaderWithUser = exports.HeaderWithSidebar = exports.HeaderWithProgressSignup = exports.HeaderWithProgress = exports.HeaderWithAdminUser = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
9
|
+
var _reactRouterDom = require("react-router-dom");
|
|
10
|
+
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
// import Avatar from '../../static/images/avatar.png'
|
|
19
|
+
var _default = {
|
|
20
|
+
title: 'Components Library/Header',
|
|
21
|
+
component: _Header.default,
|
|
22
|
+
argTypes: {
|
|
23
|
+
user: {
|
|
24
|
+
name: '',
|
|
25
|
+
country: '',
|
|
26
|
+
kyc_status: '',
|
|
27
|
+
KYCDocuments: '',
|
|
28
|
+
entity_name: '',
|
|
29
|
+
investor_eth_addresses: [],
|
|
30
|
+
is_risk_questionnaire_finished: true
|
|
31
|
+
},
|
|
32
|
+
progress: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
defaultValue: null
|
|
35
|
+
},
|
|
36
|
+
signupFlow: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
defaultValue: false
|
|
39
|
+
},
|
|
40
|
+
withSidebar: {
|
|
41
|
+
type: 'boolean',
|
|
42
|
+
defaultValue: false
|
|
43
|
+
},
|
|
44
|
+
isSidebarExpanded: {
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
defaultValue: false
|
|
47
|
+
},
|
|
48
|
+
loginHandler: {
|
|
49
|
+
type: 'function',
|
|
50
|
+
action: 'loginHandler'
|
|
51
|
+
},
|
|
52
|
+
signupHandler: {
|
|
53
|
+
type: 'function',
|
|
54
|
+
action: 'signupHandler'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.default = _default;
|
|
59
|
+
var Template = function Template(args) {
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_Header.default, args)));
|
|
61
|
+
};
|
|
62
|
+
var userDev = {
|
|
63
|
+
_id: '61851acd5b9a890013297b12',
|
|
64
|
+
email: 'user-dev@email.com',
|
|
65
|
+
user_type: 'investor',
|
|
66
|
+
name: 'bilal',
|
|
67
|
+
lastname: 'dev',
|
|
68
|
+
username: 'user-dev',
|
|
69
|
+
entity_name: '',
|
|
70
|
+
active: true,
|
|
71
|
+
country: 'Germany',
|
|
72
|
+
is_risk_questionnaire_finished: false,
|
|
73
|
+
kyc_status: 'Accepted',
|
|
74
|
+
investor_algo_addresses: [{
|
|
75
|
+
name: 'another test',
|
|
76
|
+
address: 'TVNC3QHY5LXKBMX7RGJG3B25EJPW73V5WMMEMUB33V2HEPEA2H77UPOYTQ',
|
|
77
|
+
whitelistedAssets: ['20918100']
|
|
78
|
+
}, {
|
|
79
|
+
name: 'my algo test',
|
|
80
|
+
address: 'YFQD2RZIIZQSO67F6MG3DJVXLMF2QU4EKGBPVXVIF3XTLKGWUZ36WMG56A',
|
|
81
|
+
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
82
|
+
}, {
|
|
83
|
+
name: 'test algosigner',
|
|
84
|
+
address: 'Y4UGMCSV3B43Y7QAM2VUVPETDDO5JVHDRB3ZC5MBF2VTUTCP4X437A65JU',
|
|
85
|
+
whitelistedAssets: ['20918100', '20013569', '92363258']
|
|
86
|
+
}, {
|
|
87
|
+
name: 'test new address',
|
|
88
|
+
address: 'B36KBEDYKBUSEMNRITZFFE7VINEPMP5MJTNUCRM5S5AP6GNWMWW4B5PEQI',
|
|
89
|
+
whitelistedAssets: ['20918100', '92363258']
|
|
90
|
+
}, {
|
|
91
|
+
address: 'E3Q6B5Q7JHFCEWBGGXJGEMXVAL6MSJBUHCGURZRMASRTJFDD6RQTJHPF4A',
|
|
92
|
+
whitelistedAssets: ['20918100', '20013569']
|
|
93
|
+
}, {
|
|
94
|
+
name: 'test 30/05',
|
|
95
|
+
address: 'RTQWXHRWZCBT5FF474T4DTL3VRVHERY3Q6LWLMPP24IXNOYIXBDQXJ2Z6M',
|
|
96
|
+
whitelistedAssets: ['20918100']
|
|
97
|
+
}, {
|
|
98
|
+
name: 'test info 01/06',
|
|
99
|
+
address: 'U4EIZEMPRGC77P6HJSFCLWYE4NUMNILU5DBZCKV44QMJ3TQOADRETVVAZU',
|
|
100
|
+
whitelistedAssets: ['20918100', '92363258']
|
|
101
|
+
}],
|
|
102
|
+
wallets: [{
|
|
103
|
+
_id: '641dd681b08b7543f433af1e',
|
|
104
|
+
userId: '61851acd5b9a890013297b12',
|
|
105
|
+
type: 'liquid',
|
|
106
|
+
address: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
107
|
+
name: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
108
|
+
createdAt: '2021-11-19T16:19:33.390Z',
|
|
109
|
+
isPrimary: true
|
|
110
|
+
}, {
|
|
111
|
+
_id: '641dd681b08b7543f433af1f',
|
|
112
|
+
userId: '61851acd5b9a890013297b12',
|
|
113
|
+
type: 'liquid',
|
|
114
|
+
address: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
115
|
+
assetIds: ['2812e39a-ad94-4368-9db4-9d98c1c00f38'],
|
|
116
|
+
liquidAccount: 'infinite-fleet',
|
|
117
|
+
registered_user: 6020,
|
|
118
|
+
name: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
119
|
+
createdAt: '2021-11-19T16:19:33.390Z',
|
|
120
|
+
isPrimary: true
|
|
121
|
+
}, {
|
|
122
|
+
_id: '641dd681b08b7543f433af20',
|
|
123
|
+
userId: '61851acd5b9a890013297b12',
|
|
124
|
+
type: 'liquid',
|
|
125
|
+
address: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
126
|
+
assetIds: ['35c3c8ed-59a3-4a87-9612-b48236aeab3b'],
|
|
127
|
+
liquidAccount: 'blockstream',
|
|
128
|
+
registered_user: 273,
|
|
129
|
+
name: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
130
|
+
createdAt: '2021-11-19T16:19:33.390Z',
|
|
131
|
+
isPrimary: true
|
|
132
|
+
}],
|
|
133
|
+
liquid_network: {
|
|
134
|
+
GAID: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
135
|
+
dt: '2021-11-19T16:19:33.390Z',
|
|
136
|
+
'2812e39a-ad94-4368-9db4-9d98c1c00f38': {
|
|
137
|
+
id: 6020,
|
|
138
|
+
GAID: 'GA2wpGUWe8uDz9VEdNXJ5v17UwD25f',
|
|
139
|
+
is_company: false,
|
|
140
|
+
name: '61851acd5b9a890013297b12',
|
|
141
|
+
categories: [3],
|
|
142
|
+
creator: 22,
|
|
143
|
+
whitelisted_gaids: ['GA2wpGUWe8uDz9VEdNXJ5v17UwD25f']
|
|
144
|
+
},
|
|
145
|
+
whitelisted_gaids: ['GA2wpGUWe8uDz9VEdNXJ5v17UwD25f', 'GA2skwb5v5nKaaAKNd61knuRJC47Jr', 'GA2skwb5v5nKaaAKNd61knuRJC47Jr'],
|
|
146
|
+
'35c3c8ed-59a3-4a87-9612-b48236aeab3b': {
|
|
147
|
+
id: 273,
|
|
148
|
+
GAID: 'GA2skwb5v5nKaaAKNd61knuRJC47Jr',
|
|
149
|
+
is_company: false,
|
|
150
|
+
name: '61851acd5b9a890013297b12',
|
|
151
|
+
categories: [24],
|
|
152
|
+
creator: 62,
|
|
153
|
+
whitelisted_gaids: ['GA2skwb5v5nKaaAKNd61knuRJC47Jr']
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
pass_reset: '',
|
|
157
|
+
taxId: '4355',
|
|
158
|
+
countryObj: {
|
|
159
|
+
_id: '630e0361b8d1fb0007929bc4',
|
|
160
|
+
name: 'Germany',
|
|
161
|
+
ISO2: 'DE',
|
|
162
|
+
ISO3: 'DEU',
|
|
163
|
+
isAllowed: true,
|
|
164
|
+
SEPA: true,
|
|
165
|
+
'infinite-fleet': true,
|
|
166
|
+
'la-boulangerie': true
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
var HeaderWithUser = Template.bind({});
|
|
170
|
+
exports.HeaderWithUser = HeaderWithUser;
|
|
171
|
+
HeaderWithUser.args = {
|
|
172
|
+
user: userDev
|
|
173
|
+
};
|
|
174
|
+
var HeaderWithAdminUser = Template.bind({});
|
|
175
|
+
exports.HeaderWithAdminUser = HeaderWithAdminUser;
|
|
176
|
+
HeaderWithAdminUser.args = {
|
|
177
|
+
user: _objectSpread(_objectSpread({}, userDev), {}, {
|
|
178
|
+
user_type: 'company_sa'
|
|
179
|
+
})
|
|
180
|
+
};
|
|
181
|
+
var HeaderWitouthUser = Template.bind({});
|
|
182
|
+
exports.HeaderWitouthUser = HeaderWitouthUser;
|
|
183
|
+
HeaderWitouthUser.args = {
|
|
184
|
+
user: {}
|
|
185
|
+
};
|
|
186
|
+
var HeaderWithProgress = Template.bind({});
|
|
187
|
+
exports.HeaderWithProgress = HeaderWithProgress;
|
|
188
|
+
HeaderWithProgress.args = {
|
|
189
|
+
user: userDev,
|
|
190
|
+
progress: {
|
|
191
|
+
items: [{
|
|
192
|
+
id: 'select-address',
|
|
193
|
+
handleClick: function handleClick() {}
|
|
194
|
+
}, {
|
|
195
|
+
id: 'order-tokens',
|
|
196
|
+
handleClick: function handleClick() {}
|
|
197
|
+
}, {
|
|
198
|
+
id: 'confirm',
|
|
199
|
+
handleClick: function handleClick() {}
|
|
200
|
+
}],
|
|
201
|
+
doneIndex: 1,
|
|
202
|
+
activeIndex: 2
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
var HeaderWithProgressSignup = Template.bind({});
|
|
206
|
+
exports.HeaderWithProgressSignup = HeaderWithProgressSignup;
|
|
207
|
+
HeaderWithProgressSignup.args = {
|
|
208
|
+
user: _objectSpread(_objectSpread({}, userDev), {}, {
|
|
209
|
+
kyc_status: 'Rejected'
|
|
210
|
+
}),
|
|
211
|
+
progress: {},
|
|
212
|
+
signupFlow: true
|
|
213
|
+
};
|
|
214
|
+
var HeaderWithSidebar = Template.bind({});
|
|
215
|
+
exports.HeaderWithSidebar = HeaderWithSidebar;
|
|
216
|
+
HeaderWithSidebar.args = {
|
|
217
|
+
user: _objectSpread(_objectSpread({}, userDev), {}, {
|
|
218
|
+
user_type: 'company_sa'
|
|
219
|
+
}),
|
|
220
|
+
// progress: {},
|
|
221
|
+
withSidebar: true,
|
|
222
|
+
isSidebarExpanded: true
|
|
223
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
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.UserName = exports.UserButton = exports.UserAvatar = exports.UserAccount = exports.StyledSubMenu = exports.StyledHeader = exports.SignupButton = exports.SidebarToggle = exports.QuickNavWrap = exports.ProgressWrap = exports.MobileMenuToggler = exports.MobileMenuPart = exports.MobileMenuItem = exports.MobileMenu = exports.MainNavWrap = exports.Logo = exports.LoginButton = exports.HeaderQuickNav = exports.HeaderMainNav = exports.HeaderInner = exports.HamburgerIcon = exports.CTAContainer = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _rwd = _interopRequireWildcard(require("../../styles/rwd"));
|
|
10
|
+
var _colors = _interopRequireDefault(require("../../styles/colors"));
|
|
11
|
+
var _spacing = _interopRequireDefault(require("../../styles/spacing"));
|
|
12
|
+
var _Button = _interopRequireDefault(require("../Button/Button.styles"));
|
|
13
|
+
var sc = _interopRequireWildcard(require("../../constants/style"));
|
|
14
|
+
var _FooterMenu = require("../Footer/FooterMenu.styles");
|
|
15
|
+
var _Icon = _interopRequireWildcard(require("../Icon/Icon.style"));
|
|
16
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
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); }
|
|
19
|
+
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; }
|
|
20
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
|
+
var StyledSubMenu = _styledComponents.default.div.withConfig({
|
|
22
|
+
displayName: "Headerstyles__StyledSubMenu",
|
|
23
|
+
componentId: "sc-hifrdy-0"
|
|
24
|
+
})(["position:relative;"]);
|
|
25
|
+
exports.StyledSubMenu = StyledSubMenu;
|
|
26
|
+
var StyledHeader = _styledComponents.default.header.withConfig({
|
|
27
|
+
displayName: "Headerstyles__StyledHeader",
|
|
28
|
+
componentId: "sc-hifrdy-1"
|
|
29
|
+
})(["z-index:20;position:relative;color:", ";border-bottom:1px solid rgb(237,237,237);", ""], _colors.default.black, _rwd.default.MLarge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: ", "px;\n background-color: ", ";\n box-shadow: inset 0 -1px 0 0 ", ";\n\n ", "\n "])), _spacing.default.headerHeight, _colors.default.white, _colors.default.lightGrey, function (props) {
|
|
30
|
+
return props.noFixedPosition && "\n position:initial;\n ";
|
|
31
|
+
}));
|
|
32
|
+
exports.StyledHeader = StyledHeader;
|
|
33
|
+
var HeaderInner = _styledComponents.default.div.withConfig({
|
|
34
|
+
displayName: "Headerstyles__HeaderInner",
|
|
35
|
+
componentId: "sc-hifrdy-2"
|
|
36
|
+
})(["position:relative;padding:24px;", " ", ""], function (props) {
|
|
37
|
+
return props.withSidebar && "\n left: 64px;\n transition: 0.3s width;\n ";
|
|
38
|
+
}, _rwd.default.MLarge(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n padding: 28px 32px;\n align-items: center;\n height: 100%;\n\n ", "\n "])), function (props) {
|
|
39
|
+
return props.withSidebar && "\n width:100%;\n left:0;\n ";
|
|
40
|
+
}));
|
|
41
|
+
exports.HeaderInner = HeaderInner;
|
|
42
|
+
var MainNavWrap = _styledComponents.default.div.withConfig({
|
|
43
|
+
displayName: "Headerstyles__MainNavWrap",
|
|
44
|
+
componentId: "sc-hifrdy-3"
|
|
45
|
+
})(["z-index:2;position:relative;font-size:0;", ""], _rwd.default.MLarge(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-grow: ", ";\n width: ", ";\n\n", "\n\n ", "\n"])), function (_ref) {
|
|
46
|
+
var isFixedWidth = _ref.isFixedWidth;
|
|
47
|
+
return !isFixedWidth && 1;
|
|
48
|
+
}, function (_ref2) {
|
|
49
|
+
var isFixedWidth = _ref2.isFixedWidth;
|
|
50
|
+
return isFixedWidth && '200px';
|
|
51
|
+
}, function (props) {
|
|
52
|
+
return props.noProgress && "\n flex-grow: 3;\n ";
|
|
53
|
+
}, function (props) {
|
|
54
|
+
return props.hasProgress && "\n width:33.3%;\n ";
|
|
55
|
+
}));
|
|
56
|
+
exports.MainNavWrap = MainNavWrap;
|
|
57
|
+
var SidebarToggle = _styledComponents.default.div.withConfig({
|
|
58
|
+
displayName: "Headerstyles__SidebarToggle",
|
|
59
|
+
componentId: "sc-hifrdy-4"
|
|
60
|
+
})(["width:64px;height:100%;background:", ";transition:0.3s width;flex-shrink:0;display:flex;position:absolute;cursor:pointer;z-index:10;", " ", ""], _colors.default.rustyRed, _rwd.default.MLarge(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n width: 100px;\n "]))), function (props) {
|
|
61
|
+
return props.isSidebarExpanded && _rwd.default.MLarge(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 300px;\n "])));
|
|
62
|
+
});
|
|
63
|
+
exports.SidebarToggle = SidebarToggle;
|
|
64
|
+
var HamburgerIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
65
|
+
displayName: "Headerstyles__HamburgerIcon",
|
|
66
|
+
componentId: "sc-hifrdy-5"
|
|
67
|
+
})(["display:block;width:18px;height:18px;position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;font-size:18px;line-height:18px;color:", ";&:before{content:'", "';}", ""], _colors.default.white, _Icon.iconsMap.hamburger, _rwd.default.MLarge(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n left: 50px;\n "]))));
|
|
68
|
+
exports.HamburgerIcon = HamburgerIcon;
|
|
69
|
+
var ProgressWrap = _styledComponents.default.div.withConfig({
|
|
70
|
+
displayName: "Headerstyles__ProgressWrap",
|
|
71
|
+
componentId: "sc-hifrdy-6"
|
|
72
|
+
})(["z-index:0;position:relative;text-align:center;margin-top:24px;", ""], _rwd.default.MLarge(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex-grow: 2;\n margin-top: 0;\n\n \n\n "]))));
|
|
73
|
+
exports.ProgressWrap = ProgressWrap;
|
|
74
|
+
var QuickNavWrap = _styledComponents.default.div.withConfig({
|
|
75
|
+
displayName: "Headerstyles__QuickNavWrap",
|
|
76
|
+
componentId: "sc-hifrdy-7"
|
|
77
|
+
})(["z-index:2;position:absolute;top:0;right:0;height:100%;", ""], _rwd.default.MLarge(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n position: relative;\n right: auto;\n flex-grow: ", ";\n width: ", ";\n text-align: right;\n\n ", "\n "])), function (_ref3) {
|
|
78
|
+
var isFixedWidth = _ref3.isFixedWidth;
|
|
79
|
+
return !isFixedWidth && 1;
|
|
80
|
+
}, function (_ref4) {
|
|
81
|
+
var isFixedWidth = _ref4.isFixedWidth;
|
|
82
|
+
return isFixedWidth && '200px';
|
|
83
|
+
}, function (props) {
|
|
84
|
+
return props.hasProgress && "\n width:33.3%;\n ";
|
|
85
|
+
}));
|
|
86
|
+
exports.QuickNavWrap = QuickNavWrap;
|
|
87
|
+
var Logo = _styledComponents.default.div.withConfig({
|
|
88
|
+
displayName: "Headerstyles__Logo",
|
|
89
|
+
componentId: "sc-hifrdy-8"
|
|
90
|
+
})(["display:inline-block;vertical-align:middle;color:", ";transition:color 0.4s;", " a{display:block;transition:opacity 0.2s;&:hover{opacity:0.5;}}img{display:block;height:16px;width:auto;}svg{display:block;height:16px;width:auto;fill:currentColor;}", ""], _colors.default.black, function (props) {
|
|
91
|
+
return props.isHighlight && "\n color: ".concat(_colors.default.blue, ";\n ");
|
|
92
|
+
}, _rwd.default.MLarge(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-left: 0;\n margin-right: 42px;\n "]))));
|
|
93
|
+
exports.Logo = Logo;
|
|
94
|
+
var HeaderMainNav = _styledComponents.default.div.withConfig({
|
|
95
|
+
displayName: "Headerstyles__HeaderMainNav",
|
|
96
|
+
componentId: "sc-hifrdy-9"
|
|
97
|
+
})(["display:none;", " button{text-transform:uppercase;}"], _rwd.default.MLarge(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: inline-block;\n "]))));
|
|
98
|
+
exports.HeaderMainNav = HeaderMainNav;
|
|
99
|
+
var HeaderQuickNav = _styledComponents.default.div.withConfig({
|
|
100
|
+
displayName: "Headerstyles__HeaderQuickNav",
|
|
101
|
+
componentId: "sc-hifrdy-10"
|
|
102
|
+
})(["display:none;", " button{text-transform:uppercase;", "}"], _rwd.default.MLarge(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: inline-block;\n\n & > * {\n margin-left: 32px;\n\n &:first-child {\n margin-left: 0;\n }\n }\n\n ", "\n "])), function (props) {
|
|
103
|
+
return !props.isUserLogged && "\n display: flex;\n align-items: center;\n justify-content: flex-end;\n ";
|
|
104
|
+
}), _rwd.default.MLarge(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n vertical-align: middle;\n "]))));
|
|
105
|
+
exports.HeaderQuickNav = HeaderQuickNav;
|
|
106
|
+
var MobileMenuToggler = _styledComponents.default.button.withConfig({
|
|
107
|
+
displayName: "Headerstyles__MobileMenuToggler",
|
|
108
|
+
componentId: "sc-hifrdy-11"
|
|
109
|
+
})(["display:block;width:32px;height:32px;position:absolute;top:16px;right:16px;outline:none;cursor:pointer;border:none;background-color:inherit;", " ", " span{display:block;width:16px;height:2px;position:absolute;top:50%;left:50%;margin-top:-1px;margin-left:-8px;background-color:", ";transition:background-color 0.4s,transform 0.4s;&:nth-child(1){transform:translateY(-6px);}&:nth-child(3){transform:translateY(6px);}}", ""], function (props) {
|
|
110
|
+
return props.withSidebar && "\n right:-15px;\n ";
|
|
111
|
+
}, _rwd.default.MLarge(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: none;\n "]))), _colors.default.black, function (props) {
|
|
112
|
+
return props.isActive && "\n span {\n background-color: ".concat(_colors.default.blue, ";\n\n &:nth-child(1) {\n transform: translateY(0) rotate(135deg);\n }\n\n &:nth-child(2) {\n transform: scaleX(0);\n }\n\n &:nth-child(3) {\n transform: translateY(0) rotate(-135deg);\n }\n }\n ");
|
|
113
|
+
});
|
|
114
|
+
exports.MobileMenuToggler = MobileMenuToggler;
|
|
115
|
+
var MobileMenu = _styledComponents.default.nav.withConfig({
|
|
116
|
+
displayName: "Headerstyles__MobileMenu",
|
|
117
|
+
componentId: "sc-hifrdy-12"
|
|
118
|
+
})(["z-index:1;position:absolute;top:65px;left:0;display:flex;flex-direction:column;width:100%;min-height:calc(100vh - 65px);background-color:", ";padding:0;text-align:center;opacity:0;visibility:hidden;transition:opacity 0.4s,visibility 0.4s;height:calc(100vh - 65px);overflow:scroll;", " ", " ", " button{text-transform:uppercase;}"], _colors.default.white, function (props) {
|
|
119
|
+
return props.isActive && "\n opacity: 1;\n visibility: visible;\n ";
|
|
120
|
+
}, function (props) {
|
|
121
|
+
return props.withSidebar && "\n width:180%;\n left:-64px;\n ";
|
|
122
|
+
}, _rwd.default.MLarge(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: none;\n "]))));
|
|
123
|
+
exports.MobileMenu = MobileMenu;
|
|
124
|
+
var MobileMenuItem = _styledComponents.default.li.withConfig({
|
|
125
|
+
displayName: "Headerstyles__MobileMenuItem",
|
|
126
|
+
componentId: "sc-hifrdy-13"
|
|
127
|
+
})(["align-items:center;display:flex !important;justify-content:center;", ""], function (props) {
|
|
128
|
+
return props.red && "\n background: #D2200D;\n color:white;\n border-bottom: 1px solid #979797;\n ";
|
|
129
|
+
});
|
|
130
|
+
exports.MobileMenuItem = MobileMenuItem;
|
|
131
|
+
var MobileMenuPart = _styledComponents.default.div.withConfig({
|
|
132
|
+
displayName: "Headerstyles__MobileMenuPart",
|
|
133
|
+
componentId: "sc-hifrdy-14"
|
|
134
|
+
})(["", " ", " ", " ", " ", ""], function (props) {
|
|
135
|
+
return props.withPadding && "\n padding: 30px 0;\n\n @media screen and (max-width: 320px) {\n padding: 15px 0;\n }\n ";
|
|
136
|
+
}, function (props) {
|
|
137
|
+
return props.grow && "\n flex-grow: ".concat(props.grow, ";\n ");
|
|
138
|
+
}, function (props) {
|
|
139
|
+
return props.flexColumn && "\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n button {\n margin: 10px 0;\n }\n ";
|
|
140
|
+
}, function (props) {
|
|
141
|
+
return props.noPaddingTop && "\n padding-top: 0;\n ";
|
|
142
|
+
}, function (props) {
|
|
143
|
+
return props.borderTop && "\n border-top: 1px solid ".concat(_colors.default.lightGrey, ";\n ");
|
|
144
|
+
});
|
|
145
|
+
exports.MobileMenuPart = MobileMenuPart;
|
|
146
|
+
var UserAccount = _styledComponents.default.div.withConfig({
|
|
147
|
+
displayName: "Headerstyles__UserAccount",
|
|
148
|
+
componentId: "sc-hifrdy-15"
|
|
149
|
+
})(["z-index:1;position:relative;display:inline-block;vertical-align:middle;", ""], _rwd.default.MLarge(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin: -4px 0;\n margin-left: 32px;\n "]))));
|
|
150
|
+
exports.UserAccount = UserAccount;
|
|
151
|
+
var UserButton = _styledComponents.default.button.withConfig({
|
|
152
|
+
displayName: "Headerstyles__UserButton",
|
|
153
|
+
componentId: "sc-hifrdy-16"
|
|
154
|
+
})(["display:inline-block;vertical-align:middle;width:48px;height:48px;border-radius:24px;overflow:hidden;background-color:", ";opacity:1;transition:opacity 0.2s;outline:none;cursor:pointer;box-shadow:none;border:none;background-color:buttonface;padding:0;"], _colors.default.grey2);
|
|
155
|
+
exports.UserButton = UserButton;
|
|
156
|
+
var UserAvatar = _styledComponents.default.img.withConfig({
|
|
157
|
+
displayName: "Headerstyles__UserAvatar",
|
|
158
|
+
componentId: "sc-hifrdy-17"
|
|
159
|
+
})(["display:block;width:100%;height:100%;object-fit:cover;object-position:center center;"]);
|
|
160
|
+
exports.UserAvatar = UserAvatar;
|
|
161
|
+
var UserName = _styledComponents.default.div.withConfig({
|
|
162
|
+
displayName: "Headerstyles__UserName",
|
|
163
|
+
componentId: "sc-hifrdy-18"
|
|
164
|
+
})(["z-index:0;position:relative;display:block;padding-top:36px;padding-bottom:20px;font-weight:600;font-size:16px;line-height:24px;background-color:", ";color:", ";margin-top:-24px;"], _colors.default.orangishRed, _colors.default.white);
|
|
165
|
+
exports.UserName = UserName;
|
|
166
|
+
var LoginButton = _styledComponents.default.span.withConfig({
|
|
167
|
+
displayName: "Headerstyles__LoginButton",
|
|
168
|
+
componentId: "sc-hifrdy-19"
|
|
169
|
+
})(["cursor:pointer;margin-right:24px;display:none;&:hover{opacity:0.6;}@media screen and (min-width:992px){display:block;}"]);
|
|
170
|
+
exports.LoginButton = LoginButton;
|
|
171
|
+
var SignupButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
172
|
+
displayName: "Headerstyles__SignupButton",
|
|
173
|
+
componentId: "sc-hifrdy-20"
|
|
174
|
+
})(["padding-right:32px !important;color:", " !important;&:hover{background:", ";}", ""], sc.WHITE_HEX, sc.BLUE_BASE_RELEASED_HEX, function (props) {
|
|
175
|
+
return props.isMobile && "\n margin: 0;\n width: 163.94px;\n ";
|
|
176
|
+
});
|
|
177
|
+
exports.SignupButton = SignupButton;
|
|
178
|
+
var CTAContainer = _styledComponents.default.div.withConfig({
|
|
179
|
+
displayName: "Headerstyles__CTAContainer",
|
|
180
|
+
componentId: "sc-hifrdy-21"
|
|
181
|
+
})(["align-items:center;border-top:1px solid ", ";display:flex;flex-direction:column;justify-content:center;padding:56px 0;width:100%;span{color:1px solid ", ";font-size:10px;letter-spacing:2.1px;margin-bottom:14px;}div{display:flex;flex-wrap:wrap;}", " ", "{display:flex;justify-content:center;background:transparent;margin:12px;svg{fill:rgb(32,32,32);height:18px !important;width:18px !important;}}"], sc.GRAY_BASE_HEX, sc.GRAY_BASE_HEX, _rwd.rwdMax.Medium(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n div{\n width: 192px; /* Fit exactly 3 icons */\n }\n "]))), _FooterMenu.SocialLink);
|
|
182
|
+
exports.CTAContainer = CTAContainer;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.iconsMap = exports.default = exports.TooltipIcon = exports.Icon = void 0;
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
var _templateObject;
|
|
10
|
+
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); }
|
|
11
|
+
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; }
|
|
12
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
+
var iconsMap = {
|
|
14
|
+
expand: '\\e923',
|
|
15
|
+
shrink: '\\e924',
|
|
16
|
+
emoji: '\\e922',
|
|
17
|
+
arrowDown: '\\e900',
|
|
18
|
+
arrowLeft: '\\e901',
|
|
19
|
+
arrowRight: '\\e902',
|
|
20
|
+
arrowUp: '\\e903',
|
|
21
|
+
heart: '\\e904',
|
|
22
|
+
heartFill: '\\e921',
|
|
23
|
+
lock: '\\e905',
|
|
24
|
+
menu: '\\e906',
|
|
25
|
+
pen: '\\e907',
|
|
26
|
+
star: '\\e908',
|
|
27
|
+
trash: '\\e909',
|
|
28
|
+
unread: '\\e90a',
|
|
29
|
+
user: '\\e90b',
|
|
30
|
+
edit: '\\e90c',
|
|
31
|
+
check: '\\e90d',
|
|
32
|
+
inProgress: '\\e90e',
|
|
33
|
+
warning: '\\e90f',
|
|
34
|
+
logout: '\\e910',
|
|
35
|
+
tokenHolder: '\\e911',
|
|
36
|
+
teams: '\\e912',
|
|
37
|
+
tokenSales: '\\e913',
|
|
38
|
+
analytics: '\\e914',
|
|
39
|
+
updates: '\\e915',
|
|
40
|
+
overview: '\\e916',
|
|
41
|
+
comments: '\\e917',
|
|
42
|
+
hamburger: '\\e918',
|
|
43
|
+
share: '\\e919',
|
|
44
|
+
facebook: '\\e91a',
|
|
45
|
+
linkedin: '\\e91b',
|
|
46
|
+
medium: '\\e91c',
|
|
47
|
+
reddit: '\\e91d',
|
|
48
|
+
telegram: '\\e91e',
|
|
49
|
+
twitter: '\\e91f',
|
|
50
|
+
youtube: '\\e920'
|
|
51
|
+
};
|
|
52
|
+
exports.iconsMap = iconsMap;
|
|
53
|
+
var TooltipIcon = _styledComponents.default.i.attrs({
|
|
54
|
+
className: 'ion ion-md-information-circle'
|
|
55
|
+
}).withConfig({
|
|
56
|
+
displayName: "Iconstyle__TooltipIcon",
|
|
57
|
+
componentId: "sc-1v2m4hs-0"
|
|
58
|
+
})(["position:relative;left:-0.4px;font-size:18px;opacity:0.2;transform:rotateY(180deg);margin:0 14px;"]);
|
|
59
|
+
exports.TooltipIcon = TooltipIcon;
|
|
60
|
+
var Icon = _styledComponents.default.i.withConfig({
|
|
61
|
+
displayName: "Iconstyle__Icon",
|
|
62
|
+
componentId: "sc-1v2m4hs-1"
|
|
63
|
+
})(["font-family:'icomoon' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;&::before{content:\"", "\";}", ""], function (props) {
|
|
64
|
+
return props.icon;
|
|
65
|
+
}, function (_ref) {
|
|
66
|
+
var checklist = _ref.checklist;
|
|
67
|
+
return checklist && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: 3px;\n margin-right: 11px;\n "])));
|
|
68
|
+
});
|
|
69
|
+
exports.Icon = Icon;
|
|
70
|
+
var _default = Icon;
|
|
71
|
+
exports.default = _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.InfoIcon = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _reactTippy = require("react-tippy");
|
|
10
|
+
var _InfoIcon = require("./InfoIcon.styles");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
var InfoIcon = function InfoIcon(_ref) {
|
|
13
|
+
var title = _ref.title,
|
|
14
|
+
html = _ref.html,
|
|
15
|
+
position = _ref.position,
|
|
16
|
+
noMargin = _ref.noMargin,
|
|
17
|
+
noMarginLeft = _ref.noMarginLeft,
|
|
18
|
+
noMarginRight = _ref.noMarginRight;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_InfoIcon.Container, {
|
|
20
|
+
noMargin: noMargin,
|
|
21
|
+
noMarginLeft: noMarginLeft,
|
|
22
|
+
noMarginRight: noMarginRight
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_reactTippy.Tooltip, {
|
|
24
|
+
position: position,
|
|
25
|
+
title: title,
|
|
26
|
+
html: html,
|
|
27
|
+
theme: "light",
|
|
28
|
+
arrow: true,
|
|
29
|
+
duration: 200
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.Icon, null)));
|
|
31
|
+
};
|
|
32
|
+
exports.InfoIcon = InfoIcon;
|
|
33
|
+
InfoIcon.propTypes = {
|
|
34
|
+
title: _propTypes.default.string,
|
|
35
|
+
html: _propTypes.default.node,
|
|
36
|
+
position: _propTypes.default.oneOf(['top', 'bottom', 'left', 'right']),
|
|
37
|
+
noMargin: _propTypes.default.bool,
|
|
38
|
+
noMarginLeft: _propTypes.default.bool,
|
|
39
|
+
noMarginRight: _propTypes.default.bool
|
|
40
|
+
};
|
|
41
|
+
InfoIcon.defaultProps = {
|
|
42
|
+
title: null,
|
|
43
|
+
html: null,
|
|
44
|
+
position: 'bottom',
|
|
45
|
+
noMargin: false,
|
|
46
|
+
noMarginLeft: false,
|
|
47
|
+
noMarginRight: false
|
|
48
|
+
};
|
|
49
|
+
var _default = InfoIcon;
|
|
50
|
+
exports.default = _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.InfoIconTop = exports.InfoIconBottom = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _InfoIcon = require("./InfoIcon");
|
|
9
|
+
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
+
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
var _default = {
|
|
13
|
+
title: 'Components Library/Icons/Info Icon',
|
|
14
|
+
component: _InfoIcon.InfoIcon,
|
|
15
|
+
argTypes: {
|
|
16
|
+
title: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
defaultValue: 'default is null/ add some title'
|
|
19
|
+
},
|
|
20
|
+
html: {
|
|
21
|
+
type: 'node',
|
|
22
|
+
defaultValue: 'default is null/ add some html'
|
|
23
|
+
},
|
|
24
|
+
position: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
defaultValue: 'bottom'
|
|
27
|
+
},
|
|
28
|
+
noMargin: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
defaultValue: false
|
|
31
|
+
},
|
|
32
|
+
noMarginLeft: {
|
|
33
|
+
type: 'boolean',
|
|
34
|
+
defaultValue: false
|
|
35
|
+
},
|
|
36
|
+
noMarginRight: {
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
defaultValue: false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.default = _default;
|
|
43
|
+
var Template = function Template(args) {
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, args)));
|
|
45
|
+
};
|
|
46
|
+
var InfoIconBottom = Template.bind({});
|
|
47
|
+
exports.InfoIconBottom = InfoIconBottom;
|
|
48
|
+
InfoIconBottom.args = {};
|
|
49
|
+
var InfoIconTop = Template.bind({});
|
|
50
|
+
exports.InfoIconTop = InfoIconTop;
|
|
51
|
+
InfoIconTop.args = {
|
|
52
|
+
position: 'top'
|
|
53
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Icon = exports.Container = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
var Container = _styledComponents.default.div.withConfig({
|
|
11
|
+
displayName: "InfoIconstyles__Container",
|
|
12
|
+
componentId: "sc-d3sdn3-0"
|
|
13
|
+
})(["display:inline-block;vertical-align:middle;margin:0 12px;font-size:0;line-height:0;", " ", " ", " & > div{position:relative;display:inline-block!important;}"], function (props) {
|
|
14
|
+
return props.noMargin && "\n margin: 0;\n ";
|
|
15
|
+
}, function (props) {
|
|
16
|
+
return props.noMarginLeft && "\n margin-left: 0;\n ";
|
|
17
|
+
}, function (props) {
|
|
18
|
+
return props.noMarginRight && "\n margin-right: 0;\n ";
|
|
19
|
+
});
|
|
20
|
+
exports.Container = Container;
|
|
21
|
+
var Icon = _styledComponents.default.i.attrs({
|
|
22
|
+
className: 'ion ion-md-information-circle'
|
|
23
|
+
}).withConfig({
|
|
24
|
+
displayName: "InfoIconstyles__Icon",
|
|
25
|
+
componentId: "sc-d3sdn3-1"
|
|
26
|
+
})(["position:relative;left:-0.4px;display:inline-block;vertical-align:middle;font-size:16px;line-height:16px;vertical-align:middle;color:", ";transition:color 0.2s;&:hover{color:", ";}"], function (props) {
|
|
27
|
+
return _theme.default.cGrey2;
|
|
28
|
+
}, function (props) {
|
|
29
|
+
return _theme.default.cPrimary;
|
|
30
|
+
});
|
|
31
|
+
exports.Icon = Icon;
|