@stokr/components-library 2.3.58-beta.6 → 2.3.58-beta.8
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 +3 -3
- package/dist/api/auth.js +16 -53
- package/dist/api/fetchData.js +26 -66
- package/dist/api/fetchDataPublic.js +20 -57
- package/dist/components/2FA/Connect2FA.js +10 -11
- package/dist/components/2FA/EnterCode.js +32 -30
- package/dist/components/2FA/EnterCode.stories.js +4 -8
- package/dist/components/2FA/InstallAuthApp.js +8 -9
- package/dist/components/2FA/ResetCode.js +11 -12
- package/dist/components/2FA/Sucess2FA.js +12 -16
- package/dist/components/2FA/disable-2fa-flow.js +53 -104
- package/dist/components/2FA/disable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/enable-2fa-flow.js +73 -144
- package/dist/components/2FA/enable-2fa-flow.stories.js +4 -8
- package/dist/components/2FA/index.js +9 -9
- package/dist/components/2FA/login-with-otp-flow.js +126 -206
- package/dist/components/2FA/login-with-otp-flow.stories.js +4 -8
- package/dist/components/2FA/main-flow.js +70 -144
- package/dist/components/2FA/main-flow.stories.js +4 -8
- package/dist/components/AccountBalance/AccountBalance.js +14 -13
- package/dist/components/AccountBalance/AccountBalance.stories.js +6 -12
- package/dist/components/AccountBalance/AccountBalance.styles.js +9 -17
- package/dist/components/AdminDashboard/Table/ReactTable.js +77 -84
- package/dist/components/AdminDashboard/Table/ReactTable.stories.js +87 -63
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +24 -30
- package/dist/components/AdminDashboard/Table/Table.js +88 -123
- package/dist/components/AdminDashboard/Table/Table.styles.js +28 -90
- package/dist/components/AgreementItem/AgreementItem.js +10 -11
- package/dist/components/AgreementItem/AgreementItem.stories.js +5 -10
- package/dist/components/AgreementItem/AgreementItem.styles.js +8 -12
- package/dist/components/AnalyticGraphs/Analytic.js +504 -743
- package/dist/components/AnalyticGraphs/Analytic.styles.js +14 -26
- package/dist/components/BackButton/BackButton.js +9 -10
- package/dist/components/BackButton/BackButton.stories.js +4 -8
- package/dist/components/BackButton/BackButton.styles.js +13 -51
- package/dist/components/Background/Background.js +12 -11
- package/dist/components/Background/Background.stories.js +8 -14
- package/dist/components/Background/Background.styles.js +17 -33
- package/dist/components/BarChart/BarChart.js +138 -181
- package/dist/components/BarChart/BarChart.stories.js +5 -10
- package/dist/components/BarChart/BarChart.styles.js +8 -15
- package/dist/components/BarChartLegend/BarChartLegend.js +40 -67
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +5 -10
- package/dist/components/BasicTable/BasicTable.js +12 -13
- package/dist/components/BasicTable/BasicTable.stories.js +5 -10
- package/dist/components/BasicTable/BasicTable.styles.js +11 -27
- package/dist/components/BlogPost/BlogPost.js +34 -53
- package/dist/components/BlogPost/BlogPost.stories.js +33 -46
- package/dist/components/BlogPost/BlogPost.styles.js +67 -59
- package/dist/components/Button/Button-stoDetails.js +150 -129
- package/dist/components/Button/Button.stories.js +27 -44
- package/dist/components/Button/Button.styles.js +24 -62
- package/dist/components/Button/GlareButton.js +61 -89
- package/dist/components/Button/GlareButton.stories.js +19 -29
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +5 -10
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +4 -8
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +9 -10
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +8 -17
- package/dist/components/Card/Card.styles.js +14 -41
- package/dist/components/ChartBox/ChartBox.js +5 -8
- package/dist/components/ChartBox/ChartBox.stories.js +3 -6
- package/dist/components/ChartBox/ChartBox.styles.js +8 -14
- package/dist/components/ChartBox/ChartBoxDistribution.js +5 -8
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +3 -6
- package/dist/components/ChartLegend/ChartLegend.js +30 -46
- package/dist/components/ChartLegend/ChartLegend.stories.js +22 -28
- package/dist/components/ChartLegend/ChartLegend.styles.js +16 -41
- package/dist/components/Checkbox/Checkbox.js +32 -32
- package/dist/components/Checkbox/Checkbox.stories.js +5 -10
- package/dist/components/Checkbox/Checkbox.styles.js +10 -23
- package/dist/components/Checklist/ChecklistCard.js +33 -35
- package/dist/components/Checklist/ChecklistCard.stories.js +77 -100
- package/dist/components/Checklist/ChecklistCard.styles.js +12 -15
- package/dist/components/Chips/Chip.js +14 -13
- package/dist/components/Chips/Chip.stories.js +10 -19
- package/dist/components/Chips/Chip.styles.js +14 -14
- package/dist/components/Chips/ChipWrapper.js +23 -41
- package/dist/components/Chips/ChipsWrapper.stories.js +9 -17
- package/dist/components/ComponentScroll/ComponentScroll.js +25 -34
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +16 -23
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +22 -47
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +7 -61
- package/dist/components/CryptoAddress/ComponentWrap.js +10 -11
- package/dist/components/CryptoAddress/CryptoAddress.js +51 -68
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +7 -13
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +55 -124
- package/dist/components/CryptoAddress/RadioWrap.js +9 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +24 -25
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +5 -10
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +12 -42
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +10 -9
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +16 -27
- package/dist/components/DonutChart/DonutChart.js +101 -130
- package/dist/components/DonutChart/DonutChart.stories.js +4 -8
- package/dist/components/DonutChart/DonutChart.styles.js +15 -27
- package/dist/components/DoubleButton/DoubleButton.styles.js +8 -8
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +3 -5
- package/dist/components/FAQ/FAQ.js +29 -45
- package/dist/components/FAQ/FAQ.stories.js +4 -9
- package/dist/components/FAQ/FAQ.styles.js +23 -39
- package/dist/components/Footer/Footer.js +9 -10
- package/dist/components/Footer/Footer.stories.js +6 -12
- package/dist/components/Footer/Footer.styles.js +22 -46
- package/dist/components/Footer/FooterLayout.js +16 -20
- package/dist/components/Footer/FooterLayout.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.js +61 -83
- package/dist/components/Footer/FooterMenu.stories.js +4 -8
- package/dist/components/Footer/FooterMenu.styles.js +16 -39
- package/dist/components/Footer/index.js +4 -4
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +92 -114
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +4 -8
- package/dist/components/Form/Form.js +15 -14
- package/dist/components/Form/Form.stories.js +4 -8
- package/dist/components/Form/Form.styles.js +16 -36
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +7 -12
- package/dist/components/Grid/Grid.styles.js +17 -68
- package/dist/components/Header/Header.js +98 -163
- package/dist/components/Header/Header.stories.js +17 -28
- package/dist/components/Header/Header.styles.js +61 -124
- package/dist/components/HeroBlock/HeroVideoBlock.js +20 -25
- package/dist/components/Icon/Icon.style.js +10 -22
- package/dist/components/Icon/Icon2.js +11 -13
- package/dist/components/InfoIcon/InfoIcon.js +18 -17
- package/dist/components/InfoIcon/InfoIcon.stories.js +5 -10
- package/dist/components/InfoIcon/InfoIcon.styles.js +5 -21
- package/dist/components/InfoPanel/InfoPanel.js +26 -48
- package/dist/components/Input/DatePickerInput.js +21 -33
- package/dist/components/Input/DatePickerInput.stories.js +5 -10
- package/dist/components/Input/DatePickerInput.styles.js +5 -19
- package/dist/components/Input/Input.js +43 -51
- package/dist/components/Input/Input.stories.js +9 -16
- package/dist/components/Input/Input.styles.js +8 -43
- package/dist/components/Input/InputPassword.js +30 -50
- package/dist/components/Input/InputPassword.stories.js +6 -12
- package/dist/components/Input/InputPassword.styles.js +30 -57
- package/dist/components/Input/InputUsername.js +83 -102
- package/dist/components/Input/InputWithButton.js +20 -19
- package/dist/components/Input/InputWithButton.stories.js +5 -9
- package/dist/components/Input/InputWithButton.styles.js +7 -19
- package/dist/components/Input/OtpInput.js +27 -42
- package/dist/components/Input/OtpInput.stories.js +5 -11
- package/dist/components/Input/RangeInput.js +29 -25
- package/dist/components/Input/RangeInput.stories.js +4 -8
- package/dist/components/Input/RangeInput.styles.js +15 -42
- package/dist/components/Input/Select.js +68 -89
- package/dist/components/Input/Select.stories.js +6 -12
- package/dist/components/Input/Select.styles.js +12 -32
- package/dist/components/InvestCalculator/InvestCalculator.js +245 -243
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +18 -21
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +14 -33
- package/dist/components/InvestmentStat/InvestmentStat.js +11 -10
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +5 -10
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +12 -24
- package/dist/components/KYCFlow/BasicInfo.js +419 -460
- package/dist/components/KYCFlow/Confirmation.js +12 -17
- package/dist/components/KYCFlow/DocumentFileUpload.js +214 -227
- package/dist/components/KYCFlow/DocumentScan.js +16 -15
- package/dist/components/KYCFlow/DocumentScanUpload.js +203 -210
- package/dist/components/KYCFlow/DocumentSelect.js +87 -117
- package/dist/components/KYCFlow/DocumentSuccess.js +14 -15
- package/dist/components/KYCFlow/DocumentUpload.js +10 -11
- package/dist/components/KYCFlow/DocumentVerificationType.js +98 -128
- package/dist/components/KYCFlow/FaceScan.js +10 -11
- package/dist/components/KYCFlow/FaceScanRecognition.js +14 -13
- package/dist/components/KYCFlow/FaceScanSuccess.js +10 -13
- package/dist/components/KYCFlow/Terms.js +90 -113
- package/dist/components/KYCFlow/_styles.js +37 -86
- package/dist/components/KYCFlow/index.js +14 -14
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +7 -19
- package/dist/components/LatestUpdate/LatestUpdate.js +12 -11
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +5 -10
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +15 -28
- package/dist/components/Layout/Layout-func-no-work.js +24 -24
- package/dist/components/Layout/Layout.js +47 -68
- package/dist/components/Layout/Layout.stories.js +5 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +13 -12
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +5 -10
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +10 -22
- package/dist/components/LearnMorePage/LearnMore.js +134 -174
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +7 -22
- package/dist/components/LearnMorePage/LearnMore.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMore.styles.js +24 -74
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +3 -5
- package/dist/components/LearnMorePage/LearnMoreItem.js +11 -16
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +18 -54
- package/dist/components/LearnMoreSection/LearnMore.js +119 -158
- package/dist/components/LearnMoreSection/LearnMore.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMore.styles.js +15 -41
- package/dist/components/LearnMoreSection/LearnMoreItem.js +14 -15
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +4 -8
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +9 -23
- package/dist/components/LoginModal/LoginModal.js +35 -41
- package/dist/components/LoginModal/LoginModal.stories.js +8 -12
- package/dist/components/MainMenu/DynamicMainMenu.js +11 -14
- package/dist/components/MainMenu/MainMenu.js +157 -190
- package/dist/components/MainMenu/MainMenu.styles.js +48 -89
- package/dist/components/MatomoConnect/Matomo.js +201 -463
- package/dist/components/MenuNav/MenuNav.styles.js +5 -9
- package/dist/components/Modal/Modal.js +46 -48
- package/dist/components/Modal/Modal.stories.js +8 -16
- package/dist/components/Modal/Modal.styles.js +34 -96
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +69 -95
- package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +22 -43
- package/dist/components/Modal/PaymentModal.js +43 -54
- package/dist/components/Modal/PaymentModal.stories.js +4 -8
- package/dist/components/MultiProgressBar/MultiProgressBar.js +19 -23
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +6 -12
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +9 -22
- package/dist/components/Newsletter/Newsletter.js +65 -100
- package/dist/components/Newsletter/Newsletter.stories.js +4 -8
- package/dist/components/Newsletter/Newsletter.styles.js +47 -44
- package/dist/components/NotificationContext/NotificationContext.js +93 -125
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +4 -16
- package/dist/components/Number/Number.js +13 -10
- package/dist/components/Number/Number.stories.js +23 -41
- package/dist/components/Number/Number.styles.js +4 -10
- package/dist/components/PageTransition/PageTransition.js +16 -19
- package/dist/components/Pagination/Pagination.js +22 -25
- package/dist/components/Pagination/Pagination.stories.js +29 -36
- package/dist/components/Pagination/Pagination.styles.js +8 -15
- package/dist/components/Pagination/PaginationControls.js +32 -36
- package/dist/components/Pagination/PaginationControls.stories.js +33 -62
- package/dist/components/Pagination/usePagination.js +29 -37
- package/dist/components/Process/Process.stories.js +6 -12
- package/dist/components/Process/Process.styles.js +6 -16
- package/dist/components/ProfileBadge/ProfileBadge.js +12 -11
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +5 -9
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +13 -19
- package/dist/components/ProfileBox/ProfileBox.js +15 -17
- package/dist/components/ProfileBox/ProfileBox.stories.js +5 -9
- package/dist/components/ProfileBox/ProfileBox.styles.js +9 -21
- package/dist/components/ProfileHeader/ProfileHeader.js +163 -199
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +24 -46
- package/dist/components/ProfileStat/ProfileStat.js +12 -11
- package/dist/components/ProfileStat/ProfileStat.stories.js +6 -12
- package/dist/components/ProfileStat/ProfileStat.styles.js +9 -23
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +20 -36
- package/dist/components/QRCode/QRCode.js +30 -30
- package/dist/components/QRCode/QRCode.stories.js +14 -26
- package/dist/components/ROI/ROI.js +225 -261
- package/dist/components/ROI/ROI.styles.js +13 -25
- package/dist/components/ROI/ROIChart.js +196 -303
- package/dist/components/ROI/ROIChart.styles.js +7 -11
- package/dist/components/ROI/ROIModal.js +13 -20
- package/dist/components/ROI/ROIParkingo.js +208 -244
- package/dist/components/ROI/ROIPixelmatic.js +209 -245
- package/dist/components/ROI/ROIScenarioBox.js +9 -8
- package/dist/components/ROI/ROIScenarioBox.styles.js +10 -33
- package/dist/components/Radio/Radio.js +19 -18
- package/dist/components/Radio/Radio.stories.js +4 -8
- package/dist/components/Radio/Radio.styles.js +5 -14
- package/dist/components/RefreshButton/RefreshButton.js +6 -5
- package/dist/components/RefreshButton/RefreshButton.stories.js +5 -10
- package/dist/components/RefreshButton/RefreshButton.styles.js +9 -24
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +17 -18
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +5 -9
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +3 -4
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +46 -70
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +10 -22
- package/dist/components/RegisterLiquidSteps/complete.js +4 -5
- package/dist/components/RegisterLiquidSteps/flow.js +53 -99
- package/dist/components/RegisterLiquidSteps/index.js +7 -22
- package/dist/components/RegisterLiquidSteps/register-liquid.js +62 -102
- package/dist/components/RegisterModal/RegisterModal.js +82 -118
- package/dist/components/RegisterModal/RegisterModal.stories.js +5 -9
- package/dist/components/RequestDataBox/RequestDataBox.js +9 -8
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +4 -8
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +7 -12
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +10 -11
- package/dist/components/ResetConfirmModal/ResetConfirmModal.styles.js +3 -4
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +29 -28
- package/dist/components/SEO/SEO.js +11 -10
- package/dist/components/SEO/SEO.stories.js +4 -8
- package/dist/components/SectionTitle/SectionTitle.styles.js +3 -5
- package/dist/components/ShareButton/ShareButton.js +132 -145
- package/dist/components/SideLine/SideLine.js +3 -6
- package/dist/components/SideLine/SideLine.stories.js +3 -6
- package/dist/components/SideLine/SideLine.styles.js +6 -12
- package/dist/components/SigningSubflow/SignSubIntro.js +9 -8
- package/dist/components/SigningSubflow/_styles.js +9 -20
- package/dist/components/SigningSubflow/index.js +5 -5
- package/dist/components/Slider/Slider.js +16 -16
- package/dist/components/Slider/Slider.stories.js +5 -10
- package/dist/components/Slider/Slider.styles.js +5 -8
- package/dist/components/SpanButton/SpanButton.styles.js +3 -6
- package/dist/components/StatusBadge/StatusBadge.styles.js +4 -10
- package/dist/components/StepController/StepController.js +49 -74
- package/dist/components/StepController/StepController.stories.js +4 -8
- package/dist/components/StepController/StepController.styles.js +6 -12
- package/dist/components/StepController/StepControllerContext.js +46 -68
- package/dist/components/StepController/StepControllerProgress.js +16 -19
- package/dist/components/StepController/StepControllerProgress.stories.js +4 -8
- package/dist/components/StepsProgress/StepsProgress.js +44 -58
- package/dist/components/StepsProgress/StepsProgress.stories.js +33 -35
- package/dist/components/StepsProgress/StepsProgress.styles.js +7 -15
- package/dist/components/StokrLoader/StokrLoader.js +20 -23
- package/dist/components/StokrLoader/media.js +5 -7
- package/dist/components/SvgIcons/AdminBadgeSvg.js +16 -19
- package/dist/components/SvgIcons/CameraSvg.js +26 -29
- package/dist/components/SvgIcons/CapsLockSvg.js +21 -24
- package/dist/components/SvgIcons/DocumentBackSvg.js +25 -28
- package/dist/components/SvgIcons/DocumentSmallSvg.js +51 -54
- package/dist/components/SvgIcons/DocumentSvg.js +28 -31
- package/dist/components/SvgIcons/Early.js +14 -17
- package/dist/components/SvgIcons/EthSvg.js +30 -33
- package/dist/components/SvgIcons/EurSvg.js +16 -19
- package/dist/components/SvgIcons/FaceScanIconSvg.js +21 -24
- package/dist/components/SvgIcons/FourSvg.js +11 -14
- package/dist/components/SvgIcons/Glassess.js +19 -22
- package/dist/components/SvgIcons/LogoSvg.js +14 -17
- package/dist/components/SvgIcons/OneSvg.js +13 -16
- package/dist/components/SvgIcons/PassportSvg.js +46 -49
- package/dist/components/SvgIcons/RefreshSvg.js +17 -20
- package/dist/components/SvgIcons/SocialFacebook.js +20 -23
- package/dist/components/SvgIcons/SocialInstagram.js +11 -14
- package/dist/components/SvgIcons/SocialLinkedIn.js +25 -28
- package/dist/components/SvgIcons/SocialMedium.js +15 -18
- package/dist/components/SvgIcons/SocialReddit.js +15 -18
- package/dist/components/SvgIcons/SocialTelegram.js +49 -52
- package/dist/components/SvgIcons/SocialTwitter.js +44 -47
- package/dist/components/SvgIcons/SocialYoutube.js +15 -18
- package/dist/components/SvgIcons/ThreeSvg.js +10 -13
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +72 -75
- package/dist/components/SvgIcons/TwoSvg.js +13 -16
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +19 -22
- package/dist/components/SvgIcons/UpdateHardSvg.js +15 -18
- package/dist/components/SvgIcons/UpdateSoftSvg.js +17 -20
- package/dist/components/SvgIcons/UploadSvg.js +24 -27
- package/dist/components/SvgIcons/VerifiedBadge.js +13 -16
- package/dist/components/SvgIcons/index.js +32 -32
- package/dist/components/Switch/Switch.js +23 -37
- package/dist/components/Switch/Switch.stories.js +8 -14
- package/dist/components/Switch/Switch.styles.js +8 -33
- package/dist/components/Tabs/Tabs.js +19 -21
- package/dist/components/Tabs/Tabs.stories.js +4 -8
- package/dist/components/Tabs/Tabs.styles.js +4 -6
- package/dist/components/TabsNav/TabNav.js +14 -13
- package/dist/components/TabsNav/TabNav.stories.js +5 -10
- package/dist/components/TabsNav/TabsNav.js +14 -14
- package/dist/components/TabsNav/TabsNav.stories.js +4 -8
- package/dist/components/TabsNav/TabsNav.styles.js +10 -25
- package/dist/components/TeamOverview/TeamOverview.js +38 -84
- package/dist/components/TeamOverview/TeamOverview.stories.js +5 -10
- package/dist/components/TeamOverview/TeamOverview.styles.js +18 -35
- package/dist/components/TermsModal/TermsModal.js +49 -79
- package/dist/components/TermsModal/TermsModal.stories.js +4 -8
- package/dist/components/TermsModal/_styles.js +35 -100
- package/dist/components/Text/Headline.js +15 -14
- package/dist/components/Text/Headline.stories.js +4 -8
- package/dist/components/Text/StyledText.js +5 -8
- package/dist/components/Text/Text.stories.js +5 -10
- package/dist/components/Text/Text.styles.js +15 -37
- package/dist/components/TextLink/TextLink.styles.js +6 -17
- package/dist/components/ToDoList/ToDoList.js +76 -85
- package/dist/components/ToDoList/ToDoList.stories.js +7 -14
- package/dist/components/ToDoList/ToDoList.styles.js +34 -43
- package/dist/components/ToDoList/ToDoListTask.js +22 -35
- package/dist/components/ToDoList/ToDoListTask.stories.js +5 -10
- package/dist/components/ToDoList/ToDoListTask.styles.js +13 -40
- package/dist/components/TransactionDetails/TransactionDetails.js +9 -19
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +5 -10
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +6 -15
- package/dist/components/TransactionInfo/TransactionInfo.js +18 -17
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +4 -8
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +10 -31
- package/dist/components/TwoFactorModal/TwoFactorModal.js +72 -94
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +49 -48
- package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +6 -11
- package/dist/components/breakdown/Breakdown.js +38 -36
- package/dist/components/breakdown/index.js +3 -5
- package/dist/components/headerHo/HeaderHo.js +585 -769
- package/dist/components/headerHo/HeaderHo.stories.js +9 -13
- package/dist/components/headerHo/index.js +3 -5
- package/dist/components/icons/Arrow.js +43 -46
- package/dist/components/icons/Arrow.stories.js +7 -14
- package/dist/components/icons/ArrowSimple.js +32 -35
- package/dist/components/icons/ArrowSimple.stories.js +7 -14
- package/dist/components/icons/Check.js +28 -31
- package/dist/components/icons/Check.stories.js +3 -6
- package/dist/components/icons/Facebook.js +11 -14
- package/dist/components/icons/Facebook.stories.js +3 -6
- package/dist/components/icons/Info.js +40 -43
- package/dist/components/icons/Info.stories.js +3 -6
- package/dist/components/icons/Instagram.js +11 -14
- package/dist/components/icons/Instagram.stories.js +3 -6
- package/dist/components/icons/LinkIcon.js +19 -22
- package/dist/components/icons/LinkIcon.stories.js +3 -6
- package/dist/components/icons/LinkedIn.js +28 -31
- package/dist/components/icons/LinkedIn.stories.js +3 -6
- package/dist/components/icons/Medium.js +27 -30
- package/dist/components/icons/Medium.stories.js +3 -6
- package/dist/components/icons/Reddit.js +17 -20
- package/dist/components/icons/Reddit.stories.js +3 -6
- package/dist/components/icons/Share.js +47 -50
- package/dist/components/icons/Share.stories.js +3 -6
- package/dist/components/icons/Telegram.js +27 -30
- package/dist/components/icons/Telegram.stories.js +3 -6
- package/dist/components/icons/Twitter.js +11 -14
- package/dist/components/icons/Twitter.stories.js +3 -6
- package/dist/components/icons/X.js +11 -14
- package/dist/components/icons/X.stories.js +3 -6
- package/dist/components/icons/Youtube.js +11 -14
- package/dist/components/icons/Youtube.stories.js +3 -6
- package/dist/components/icons/index.js +15 -15
- package/dist/components/landing-page/List.js +3 -5
- package/dist/components/landing-page/PageContent.js +5 -7
- package/dist/components/landing-page/PageText.js +12 -16
- package/dist/components/landing-page/PageTitle.js +16 -47
- package/dist/components/logo/Logo.js +49 -71
- package/dist/components/logo/index.js +3 -5
- package/dist/components/renderToBody/index.js +3 -5
- package/dist/components/renderToBody/renderToBody.js +39 -60
- package/dist/components/taxId/TaxId.stories.js +11 -16
- package/dist/components/taxId/complete.js +9 -11
- package/dist/components/taxId/flow.js +22 -34
- package/dist/components/taxId/index.js +4 -4
- package/dist/components/taxId/register-taxid.js +54 -92
- package/dist/components/video/Video.js +69 -84
- package/dist/components/video/Video.stories.js +5 -9
- package/dist/components/video/index.js +3 -5
- package/dist/constants/globalVariables.js +10 -20
- package/dist/constants/style.js +23 -46
- package/dist/context/Auth.js +247 -340
- package/dist/context/AuthContext.js +545 -1023
- package/dist/context/Checkbox/CheckboxContext.js +65 -117
- package/dist/firebase-config.js +4 -6
- package/dist/hooks/useNewVentureForm.js +128 -193
- package/dist/hooks/useTimer.js +29 -51
- package/dist/index.js +134 -134
- package/dist/model/axios.js +4 -6
- package/dist/model/axiosPublic.js +4 -6
- package/dist/services/TimerService.js +70 -89
- package/dist/static/images/copy_icon.svg +4 -0
- package/dist/styles/colors.js +2 -4
- package/dist/styles/fonts.js +3 -4
- package/dist/styles/global.js +3 -4
- package/dist/styles/grid.js +4 -5
- package/dist/styles/reactTippy.js +3 -4
- package/dist/styles/rwd.js +12 -26
- package/dist/styles/semanticUi.js +3 -4
- package/dist/styles/spacing.js +2 -3
- package/dist/styles/theme.js +6 -9
- package/dist/utils/allowed-countries-list.js +2 -3
- package/dist/utils/analytics.js +32 -48
- package/dist/utils/check-sale-time-left.js +37 -39
- package/dist/utils/check-todo-status.js +3 -4
- package/dist/utils/checklistGenerator.js +46 -46
- package/dist/utils/copyToClipboard.js +65 -131
- package/dist/utils/countries-list.js +2 -3
- package/dist/utils/customHooks.js +40 -67
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/fix-decimals.js +4 -5
- package/dist/utils/formatCurrencyValue.js +41 -52
- package/dist/utils/get-cookie-domain.js +3 -4
- package/dist/utils/get-short-address.js +1 -3
- package/dist/utils/isUSInvestor.js +2 -4
- package/dist/utils/km_ify.js +3 -3
- package/dist/utils/lock-body.js +3 -5
- package/dist/utils/moment.js +10 -12
- package/dist/utils/redirect-url.js +2 -3
- package/dist/utils/saveAs.js +5 -5
- package/dist/utils/scrollUtils.js +33 -36
- package/dist/utils/set-redirect-cookie.js +6 -7
- package/dist/utils/withRouter.js +6 -6
- package/package.json +134 -141
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -8,96 +7,72 @@ exports.useMobileView = exports.useCooldown = exports.useContainerSize = exports
|
|
|
8
7
|
exports.usePrevious = usePrevious;
|
|
9
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
9
|
var _rwd = _interopRequireWildcard(require("../styles/rwd"));
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
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."); }
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
|
-
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; } }
|
|
19
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
-
var useMobileView = function useMobileView() {
|
|
21
|
-
var breakpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _rwd.sizes.Medium;
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
|
+
const useMobileView = function () {
|
|
13
|
+
let breakpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _rwd.sizes.Medium;
|
|
22
14
|
var breakpointNumber = breakpoint.match(/\d/g);
|
|
23
15
|
breakpointNumber = breakpointNumber.join('');
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
setisMobile = _React$useState2[1];
|
|
28
|
-
var timeout = _react.default.useRef();
|
|
29
|
-
_react.default.useEffect(function () {
|
|
16
|
+
const [isMobile, setisMobile] = _react.default.useState(window.innerWidth <= breakpointNumber);
|
|
17
|
+
const timeout = _react.default.useRef();
|
|
18
|
+
_react.default.useEffect(() => {
|
|
30
19
|
window.addEventListener('resize', onResize);
|
|
31
20
|
onResizeTimeout();
|
|
32
|
-
return
|
|
21
|
+
return () => {
|
|
33
22
|
window.removeEventListener('resize', onResize);
|
|
34
23
|
};
|
|
35
24
|
}, []);
|
|
36
|
-
|
|
25
|
+
const onResize = () => {
|
|
37
26
|
clearTimeout(timeout.current);
|
|
38
27
|
timeout.current = setTimeout(onResizeTimeout, 100);
|
|
39
28
|
};
|
|
40
|
-
|
|
29
|
+
const onResizeTimeout = () => {
|
|
41
30
|
setisMobile(checkIsMobile());
|
|
42
31
|
};
|
|
43
|
-
|
|
44
|
-
return window.innerWidth <= breakpointNumber;
|
|
45
|
-
};
|
|
32
|
+
const checkIsMobile = () => window.innerWidth <= breakpointNumber;
|
|
46
33
|
return isMobile;
|
|
47
34
|
};
|
|
48
35
|
|
|
49
36
|
// Custom hook for container size detection
|
|
50
37
|
exports.useMobileView = useMobileView;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
isMobile = _useState2[0],
|
|
56
|
-
setIsMobile = _useState2[1];
|
|
57
|
-
(0, _react.useEffect)(function () {
|
|
38
|
+
const useContainerSize = function (ref) {
|
|
39
|
+
let breakpoint = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
40
|
+
const [isMobile, setIsMobile] = (0, _react.useState)(false);
|
|
41
|
+
(0, _react.useEffect)(() => {
|
|
58
42
|
if (!ref.current) return;
|
|
59
43
|
|
|
60
44
|
// Initial check
|
|
61
45
|
checkSize();
|
|
62
|
-
|
|
46
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
63
47
|
checkSize();
|
|
64
48
|
});
|
|
65
49
|
resizeObserver.observe(ref.current);
|
|
66
|
-
return
|
|
50
|
+
return () => {
|
|
67
51
|
resizeObserver.disconnect();
|
|
68
52
|
};
|
|
69
53
|
}, [breakpoint]);
|
|
70
|
-
|
|
71
|
-
|
|
54
|
+
const checkSize = () => {
|
|
55
|
+
const width = ref.current.offsetWidth;
|
|
72
56
|
setIsMobile(width < breakpoint);
|
|
73
57
|
};
|
|
74
58
|
return isMobile;
|
|
75
59
|
};
|
|
76
60
|
exports.useContainerSize = useContainerSize;
|
|
77
61
|
function usePrevious(value) {
|
|
78
|
-
|
|
79
|
-
(0, _react.useEffect)(
|
|
62
|
+
const ref = (0, _react.useRef)();
|
|
63
|
+
(0, _react.useEffect)(() => {
|
|
80
64
|
ref.current = value;
|
|
81
65
|
});
|
|
82
66
|
return ref.current;
|
|
83
67
|
}
|
|
84
68
|
|
|
85
69
|
//use this hook when you need timer functionality
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
93
|
-
hasTimerFinished = _useState6[0],
|
|
94
|
-
sethasTimerFinished = _useState6[1];
|
|
95
|
-
var _useState7 = (0, _react.useState)(0),
|
|
96
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
97
|
-
secondsRemaining = _useState8[0],
|
|
98
|
-
setSecondsRemaining = _useState8[1];
|
|
99
|
-
var lastCalled = (0, _react.useRef)(null);
|
|
100
|
-
var startCooldown = function startCooldown(actionCallback) {
|
|
70
|
+
const useCooldown = cooldownInSeconds => {
|
|
71
|
+
const [isDisabled, setIsDisabled] = (0, _react.useState)(false);
|
|
72
|
+
const [hasTimerFinished, sethasTimerFinished] = (0, _react.useState)(false);
|
|
73
|
+
const [secondsRemaining, setSecondsRemaining] = (0, _react.useState)(0);
|
|
74
|
+
const lastCalled = (0, _react.useRef)(null);
|
|
75
|
+
const startCooldown = actionCallback => {
|
|
101
76
|
if (!isDisabled) {
|
|
102
77
|
setIsDisabled(true);
|
|
103
78
|
sethasTimerFinished(false);
|
|
@@ -108,36 +83,34 @@ var useCooldown = function useCooldown(cooldownInSeconds) {
|
|
|
108
83
|
}
|
|
109
84
|
}
|
|
110
85
|
};
|
|
111
|
-
|
|
112
|
-
|
|
86
|
+
const updateCooldown = (0, _react.useCallback)(() => {
|
|
87
|
+
const secondsPassed = Math.ceil((Date.now() - lastCalled.current) / 1000);
|
|
113
88
|
setSecondsRemaining(cooldownInSeconds - secondsPassed);
|
|
114
89
|
if (secondsPassed >= cooldownInSeconds) {
|
|
115
90
|
setIsDisabled(false);
|
|
116
91
|
sethasTimerFinished(true);
|
|
117
92
|
}
|
|
118
93
|
}, [cooldownInSeconds]);
|
|
119
|
-
(0, _react.useEffect)(
|
|
120
|
-
|
|
94
|
+
(0, _react.useEffect)(() => {
|
|
95
|
+
let timerId;
|
|
121
96
|
if (isDisabled) {
|
|
122
97
|
updateCooldown(); // Call once immediately, so we don't skip the first second
|
|
123
98
|
timerId = setInterval(updateCooldown, 1000);
|
|
124
99
|
}
|
|
125
|
-
return
|
|
126
|
-
return clearInterval(timerId);
|
|
127
|
-
};
|
|
100
|
+
return () => clearInterval(timerId);
|
|
128
101
|
}, [cooldownInSeconds, isDisabled, updateCooldown]);
|
|
129
102
|
return {
|
|
130
|
-
isDisabled
|
|
131
|
-
secondsRemaining
|
|
132
|
-
startCooldown
|
|
133
|
-
hasTimerFinished
|
|
103
|
+
isDisabled,
|
|
104
|
+
secondsRemaining,
|
|
105
|
+
startCooldown,
|
|
106
|
+
hasTimerFinished
|
|
134
107
|
};
|
|
135
108
|
};
|
|
136
109
|
exports.useCooldown = useCooldown;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
110
|
+
const cooldownHOC = function (Component) {
|
|
111
|
+
let seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
|
|
112
|
+
const Wrapper = props => {
|
|
113
|
+
const cooldownProps = useCooldown(seconds);
|
|
141
114
|
return /*#__PURE__*/_react.default.createElement(Component, _extends({
|
|
142
115
|
cooldown: cooldownProps
|
|
143
116
|
}, props));
|
|
@@ -7,9 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
8
8
|
var _getCookieDomain = _interopRequireDefault(require("./get-cookie-domain"));
|
|
9
9
|
var _redirectUrl = _interopRequireDefault(require("./redirect-url"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
var _default =
|
|
12
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var _default = () => {
|
|
12
|
+
const cookieDomain = (0, _getCookieDomain.default)();
|
|
13
13
|
_jsCookie.default.remove('STOKR_INVESTOR_DASHBOARD_REDIRECT', cookieDomain);
|
|
14
14
|
_jsCookie.default.remove('STOKR_INVEST_IN_STO_REDIRECT', cookieDomain);
|
|
15
15
|
window.location.href = _redirectUrl.default;
|
|
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.fixDecimals = exports.default = void 0;
|
|
7
7
|
// Convert to float; fix decimals; convert to string; return
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return (roundingFn(Number(value) *
|
|
8
|
+
const fixDecimals = function (value, decimals) {
|
|
9
|
+
let roundingFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Math.round;
|
|
10
|
+
return (roundingFn(Number(value) * 10 ** decimals) / 10 ** decimals).toFixed(decimals);
|
|
11
11
|
};
|
|
12
12
|
exports.fixDecimals = fixDecimals;
|
|
13
|
-
var _default = fixDecimals;
|
|
14
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = fixDecimals;
|
|
@@ -4,62 +4,51 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getProjectCurrencySign = exports.getCurrencySymbol = exports.formatCurrencyValue = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
'lbtc-private': ['BTC', 8],
|
|
31
|
-
bmn1: ['BMN1', 2],
|
|
32
|
-
'btc-fb': ['BTC', 8],
|
|
33
|
-
'usdc-fb': ['USDC', 2],
|
|
34
|
-
'usdq-fb': ['USDQ', 2]
|
|
35
|
-
}[currency] || [currency, tokenDecimals],
|
|
36
|
-
_ref2 = _slicedToArray(_ref, 2),
|
|
37
|
-
symbol = _ref2[0],
|
|
38
|
-
decimals = _ref2[1];
|
|
7
|
+
const formatCurrencyValue = function (currency, value) {
|
|
8
|
+
let tokenDecimals = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2;
|
|
9
|
+
const [symbol, decimals] = {
|
|
10
|
+
tether: ['USDT', 2],
|
|
11
|
+
gemini: ['GUSD', 2],
|
|
12
|
+
ether: ['ETH', 4],
|
|
13
|
+
artid: ['ARTID', 2],
|
|
14
|
+
bitcoin: ['BTC', 8],
|
|
15
|
+
lbtc: ['LBTC', 8],
|
|
16
|
+
'lusdt-bfx': ['USDT', 2],
|
|
17
|
+
'lbtc-bfx': ['LBTC', 8],
|
|
18
|
+
'btc-bfx': ['BTC', 8],
|
|
19
|
+
euro: ['EUR', 2],
|
|
20
|
+
usd: ['USD', 2],
|
|
21
|
+
chf: ['CHF', 2],
|
|
22
|
+
lusdt: ['USDT', 2],
|
|
23
|
+
'bitcoin-private': ['EUR', 2],
|
|
24
|
+
'lbtc-private': ['BTC', 8],
|
|
25
|
+
bmn1: ['BMN1', 2],
|
|
26
|
+
'btc-fb': ['BTC', 8],
|
|
27
|
+
'usdc-fb': ['USDC', 2],
|
|
28
|
+
'usdq-fb': ['USDQ', 2]
|
|
29
|
+
}[currency] || [currency, tokenDecimals];
|
|
39
30
|
return "".concat(symbol, " ").concat(parseFloat(Math.abs(value)).toFixed(decimals));
|
|
40
31
|
};
|
|
41
32
|
exports.formatCurrencyValue = formatCurrencyValue;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}[currencySelected] || currencySelected;
|
|
60
|
-
};
|
|
33
|
+
const getCurrencySymbol = currencySelected => ({
|
|
34
|
+
euro: '€',
|
|
35
|
+
usd: '$',
|
|
36
|
+
ether: 'ETH',
|
|
37
|
+
chf: 'CHF',
|
|
38
|
+
tether: 'USDT',
|
|
39
|
+
bitcoin: 'BTC',
|
|
40
|
+
lbtc: 'LBTC',
|
|
41
|
+
lusdt: 'USDT',
|
|
42
|
+
'lusdt-bfx': 'USDT',
|
|
43
|
+
'lbtc-bfx': 'LBTC',
|
|
44
|
+
'btc-bfx': 'BTC',
|
|
45
|
+
bmn1: 'BMN1',
|
|
46
|
+
'btc-fb': 'BTC',
|
|
47
|
+
'usdc-fb': 'USDC',
|
|
48
|
+
'usdq-fb': 'USDQ'
|
|
49
|
+
})[currencySelected] || currencySelected;
|
|
61
50
|
exports.getCurrencySymbol = getCurrencySymbol;
|
|
62
|
-
|
|
51
|
+
const getProjectCurrencySign = tokenCurrency => {
|
|
63
52
|
return tokenCurrency === 'EUR' ? '€' : tokenCurrency === 'USD' ? '$' : tokenCurrency === 'BTC' ? '₿' : '';
|
|
64
53
|
};
|
|
65
54
|
exports.getProjectCurrencySign = getProjectCurrencySign;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getCookieDomain = exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const getCookieDomain = () => {
|
|
8
|
+
const cookieDomain = {};
|
|
9
9
|
|
|
10
10
|
// Cookie for deployed app
|
|
11
11
|
if (process.env.NODE_ENV === 'production') {
|
|
@@ -14,5 +14,4 @@ var getCookieDomain = function getCookieDomain() {
|
|
|
14
14
|
return cookieDomain;
|
|
15
15
|
};
|
|
16
16
|
exports.getCookieDomain = getCookieDomain;
|
|
17
|
-
var _default = getCookieDomain;
|
|
18
|
-
exports.default = _default;
|
|
17
|
+
var _default = exports.default = getCookieDomain;
|
|
@@ -4,7 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _default =
|
|
8
|
-
return "".concat(address.slice(0, 6), "[...]").concat(address.slice(-4));
|
|
9
|
-
};
|
|
7
|
+
var _default = address => "".concat(address.slice(0, 6), "[...]").concat(address.slice(-4));
|
|
10
8
|
exports.default = _default;
|
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isUSInvestor = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return usCountries.includes(user.country);
|
|
10
|
-
};
|
|
7
|
+
const usCountries = ['United States', 'Puerto Rico'];
|
|
8
|
+
const isUSInvestor = user => usCountries.includes(user.country);
|
|
11
9
|
exports.isUSInvestor = isUSInvestor;
|
package/dist/utils/km_ify.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.km_ify = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const km_ify = function (input, decimals) {
|
|
8
|
+
let convertBillion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
9
9
|
if (input >= 1000000000 && convertBillion) {
|
|
10
10
|
input /= 1000000000;
|
|
11
11
|
if (input % 10 !== 0) {
|
|
@@ -32,7 +32,7 @@ var km_ify = function km_ify(input, decimals) {
|
|
|
32
32
|
} else return input;
|
|
33
33
|
};
|
|
34
34
|
exports.km_ify = km_ify;
|
|
35
|
-
|
|
35
|
+
const truncateDecimals = (number, digits) => {
|
|
36
36
|
var re = new RegExp('(\\d+\\.\\d{' + digits + '})(\\d)'),
|
|
37
37
|
m = number.toString().match(re);
|
|
38
38
|
return m ? parseFloat(m[1]) : number.valueOf();
|
package/dist/utils/lock-body.js
CHANGED
|
@@ -7,14 +7,12 @@ exports.default = _default;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
// Hook
|
|
9
9
|
function _default() {
|
|
10
|
-
(0, _react.useLayoutEffect)(
|
|
10
|
+
(0, _react.useLayoutEffect)(() => {
|
|
11
11
|
// Get original body overflow
|
|
12
|
-
|
|
12
|
+
const originalStyle = window.getComputedStyle(document.body).overflow;
|
|
13
13
|
// Prevent scrolling on mount
|
|
14
14
|
document.body.style.overflow = 'hidden';
|
|
15
15
|
// Re-enable scrolling when component unmounts
|
|
16
|
-
return
|
|
17
|
-
return document.body.style.overflow = originalStyle;
|
|
18
|
-
};
|
|
16
|
+
return () => document.body.style.overflow = originalStyle;
|
|
19
17
|
}, []); // Empty array ensures effect is only run on mount and unmount
|
|
20
18
|
}
|
package/dist/utils/moment.js
CHANGED
|
@@ -6,33 +6,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
Object.defineProperty(exports, "moment", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function
|
|
9
|
+
get: function () {
|
|
10
10
|
return _moment.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "momentTimezone", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function
|
|
15
|
+
get: function () {
|
|
16
16
|
return _momentTimezone.default;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
exports.momentUtils = void 0;
|
|
20
20
|
var _moment = _interopRequireDefault(require("moment"));
|
|
21
21
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
|
22
|
-
function _interopRequireDefault(
|
|
22
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
23
|
// Re-export moment and moment-timezone for use in other repos
|
|
24
24
|
// Export moment as default for convenience
|
|
25
|
-
var _default = _moment.default; // Common moment utilities that might be useful across projects
|
|
26
|
-
exports.
|
|
27
|
-
var momentUtils = {
|
|
25
|
+
var _default = exports.default = _moment.default; // Common moment utilities that might be useful across projects
|
|
26
|
+
const momentUtils = exports.momentUtils = {
|
|
28
27
|
/**
|
|
29
28
|
* Format a date to a readable string
|
|
30
29
|
* @param {Date|string|moment} date - The date to format
|
|
31
30
|
* @param {string} format - The format string (default: 'DD MMM YYYY')
|
|
32
31
|
* @returns {string} - Formatted date string
|
|
33
32
|
*/
|
|
34
|
-
formatDate: function
|
|
35
|
-
|
|
33
|
+
formatDate: function (date) {
|
|
34
|
+
let format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'DD MMM YYYY';
|
|
36
35
|
return (0, _moment.default)(date).format(format);
|
|
37
36
|
},
|
|
38
37
|
/**
|
|
@@ -41,9 +40,8 @@ var momentUtils = {
|
|
|
41
40
|
* @param {string} format - The format string (default: 'DD MMM YYYY - hh:mm')
|
|
42
41
|
* @returns {string} - Formatted date string
|
|
43
42
|
*/
|
|
44
|
-
formatDateTime: function
|
|
45
|
-
|
|
43
|
+
formatDateTime: function (date) {
|
|
44
|
+
let format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'DD MMM YYYY - hh:mm';
|
|
46
45
|
return (0, _moment.default)(date).format(format);
|
|
47
46
|
}
|
|
48
|
-
};
|
|
49
|
-
exports.momentUtils = momentUtils;
|
|
47
|
+
};
|
|
@@ -5,6 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
var _default = _jsCookie.default.get('STOKR_INVESTOR_DASHBOARD_REDIRECT') || _jsCookie.default.get('STOKR_INVEST_IN_STO_REDIRECT');
|
|
10
|
-
exports.default = _default;
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
var _default = exports.default = _jsCookie.default.get('STOKR_INVESTOR_DASHBOARD_REDIRECT') || _jsCookie.default.get('STOKR_INVEST_IN_STO_REDIRECT');
|
package/dist/utils/saveAs.js
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.saveAs = exports.openFile = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const saveAs = function (file) {
|
|
8
|
+
let fileName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'fileName';
|
|
9
9
|
// Create blob link to download
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const url = window.URL.createObjectURL(file);
|
|
11
|
+
const link = document.createElement('a');
|
|
12
12
|
link.href = url;
|
|
13
13
|
link.setAttribute('download', fileName);
|
|
14
14
|
|
|
@@ -22,7 +22,7 @@ var saveAs = function saveAs(file) {
|
|
|
22
22
|
link.parentNode.removeChild(link);
|
|
23
23
|
};
|
|
24
24
|
exports.saveAs = saveAs;
|
|
25
|
-
|
|
25
|
+
const openFile = file => {
|
|
26
26
|
var url = window.URL.createObjectURL(file);
|
|
27
27
|
window.open(url);
|
|
28
28
|
};
|