@stokr/components-library 2.3.58-beta.6 → 2.3.58-beta.7
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 -5
- package/dist/model/axiosPublic.js +4 -5
- 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
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.InputLabeled = exports.InputFilled = exports.InputFillInverted = exports.InputEmpty = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _viewport = require("storybook/viewport");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _Input = require("./Input");
|
|
10
10
|
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
11
11
|
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
var _default = {
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
var _default = exports.default = {
|
|
14
14
|
title: 'Components Library/Inputs/Input',
|
|
15
15
|
component: _Input.Input,
|
|
16
16
|
argTypes: {
|
|
@@ -75,15 +75,12 @@ var _default = {
|
|
|
75
75
|
},
|
|
76
76
|
parameters: {
|
|
77
77
|
viewport: {
|
|
78
|
-
viewports:
|
|
78
|
+
viewports: _viewport.INITIAL_VIEWPORTS,
|
|
79
79
|
defaultViewport: 'resetviewport'
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
var Template = function Template(args) {
|
|
85
|
-
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(_Input.Input, args)));
|
|
86
|
-
};
|
|
83
|
+
const Template = args => /*#__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(_Input.Input, args)));
|
|
87
84
|
|
|
88
85
|
//trying to integrate state:
|
|
89
86
|
// const Template = args => {
|
|
@@ -99,8 +96,7 @@ var Template = function Template(args) {
|
|
|
99
96
|
// />
|
|
100
97
|
// }
|
|
101
98
|
|
|
102
|
-
|
|
103
|
-
exports.InputLabeled = InputLabeled;
|
|
99
|
+
const InputLabeled = exports.InputLabeled = Template.bind({});
|
|
104
100
|
InputLabeled.args = {
|
|
105
101
|
label: 'input description (label)'
|
|
106
102
|
};
|
|
@@ -109,8 +105,7 @@ InputLabeled.parameters = {
|
|
|
109
105
|
default: 'resetviewport'
|
|
110
106
|
}
|
|
111
107
|
};
|
|
112
|
-
|
|
113
|
-
exports.InputFilled = InputFilled;
|
|
108
|
+
const InputFilled = exports.InputFilled = Template.bind({});
|
|
114
109
|
InputFilled.args = {
|
|
115
110
|
label: 'input description (label)',
|
|
116
111
|
value: 'your text (value)'
|
|
@@ -120,8 +115,7 @@ InputFilled.parameters = {
|
|
|
120
115
|
default: 'resetviewport'
|
|
121
116
|
}
|
|
122
117
|
};
|
|
123
|
-
|
|
124
|
-
exports.InputFillInverted = InputFillInverted;
|
|
118
|
+
const InputFillInverted = exports.InputFillInverted = Template.bind({});
|
|
125
119
|
InputFillInverted.args = {
|
|
126
120
|
type: 'text',
|
|
127
121
|
label: 'input description (label) inverted',
|
|
@@ -133,8 +127,7 @@ InputFillInverted.parameters = {
|
|
|
133
127
|
default: 'grey'
|
|
134
128
|
}
|
|
135
129
|
};
|
|
136
|
-
|
|
137
|
-
exports.InputEmpty = InputEmpty;
|
|
130
|
+
const InputEmpty = exports.InputEmpty = Template.bind({});
|
|
138
131
|
InputEmpty.args = {};
|
|
139
132
|
InputEmpty.parameters = {
|
|
140
133
|
backgrounds: {
|
|
@@ -1,57 +1,22 @@
|
|
|
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
|
});
|
|
7
6
|
exports.Wrapper = exports.Label = exports.InputWrap = void 0;
|
|
8
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
8
|
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
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; }
|
|
14
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
|
-
var Wrapper = _styledComponents.default.div.withConfig({
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
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
|
+
const Wrapper = exports.Wrapper = _styledComponents.default.div.withConfig({
|
|
16
12
|
displayName: "Inputstyles__Wrapper",
|
|
17
13
|
componentId: "sc-1osolkh-0"
|
|
18
|
-
})(["position:relative;display:block;input:-webkit-autofill{border:none;border-bottom:1px solid #e1e1e1;box-shadow:0 0 0px 1000px #fff inset;transition:background-color 5000s ease-in-out 0s;}", ""],
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
exports.Wrapper = Wrapper;
|
|
22
|
-
var Label = _styledComponents.default.label.withConfig({
|
|
14
|
+
})(["position:relative;display:block;input:-webkit-autofill{border:none;border-bottom:1px solid #e1e1e1;box-shadow:0 0 0px 1000px #fff inset;transition:background-color 5000s ease-in-out 0s;}", ""], props => props.inverted && (0, _styledComponents.css)(["", "{color:", ";opacity:0.4;}", "{& > input{color:", ";border-bottom-color:", ";&:focus,&:hover{border-bottom-color:rgba(255,255,255,0.4);}}}"], Label, _theme.default.cWhite, InputWrap, _theme.default.cWhite, _theme.default.cWhite));
|
|
15
|
+
const Label = exports.Label = _styledComponents.default.label.withConfig({
|
|
23
16
|
displayName: "Inputstyles__Label",
|
|
24
17
|
componentId: "sc-1osolkh-1"
|
|
25
|
-
})(["z-index:11;display:block;position:absolute;left:0;top:-2px;font-weight:500;height:12px;font-size:11px;line-height:20px;letter-spacing:2px;text-transform:uppercase;color:", ";pointer-events:none;transform:translateY(15px);transition:transform 0.2s,font-size 0.2s;", " ", " ", " ", ""],
|
|
26
|
-
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return props.autoHeightLabel && "\n height:auto;\n position: relative;\n ";
|
|
29
|
-
}, function (props) {
|
|
30
|
-
return props.isUp && "\n font-size: 10px;\n transform: translateY(0);\n ";
|
|
31
|
-
}, function (props) {
|
|
32
|
-
return props.active && "\n color: ".concat(_theme.default.cPrimary, ";\n ");
|
|
33
|
-
}, function (props) {
|
|
34
|
-
return props.error && "\n color: ".concat(_theme.default.cWarning, ";\n ");
|
|
35
|
-
});
|
|
36
|
-
exports.Label = Label;
|
|
37
|
-
var InputWrap = _styledComponents.default.div.withConfig({
|
|
18
|
+
})(["z-index:11;display:block;position:absolute;left:0;top:-2px;font-weight:500;height:12px;font-size:11px;line-height:20px;letter-spacing:2px;text-transform:uppercase;color:", ";pointer-events:none;transform:translateY(15px);transition:transform 0.2s,font-size 0.2s;", " ", " ", " ", ""], props => _theme.default.cBlack, props => props.autoHeightLabel && "\n height:auto;\n position: relative;\n ", props => props.isUp && "\n font-size: 10px;\n transform: translateY(0);\n ", props => props.active && "\n color: ".concat(_theme.default.cPrimary, ";\n "), props => props.error && "\n color: ".concat(_theme.default.cWarning, ";\n "));
|
|
19
|
+
const InputWrap = exports.InputWrap = _styledComponents.default.div.withConfig({
|
|
38
20
|
displayName: "Inputstyles__InputWrap",
|
|
39
21
|
componentId: "sc-1osolkh-2"
|
|
40
|
-
})(["position:relative;& > input{z-index:0;font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:15px 0;padding-bottom:5px;box-shadow:none;border:0;outline:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s;", " &:focus,&:hover{border-top-color:transparent;border-bottom-color:", ";}&::placeholder{color:transparent;opacity:0;}}", " ", ""],
|
|
41
|
-
return _theme.default.cGrey;
|
|
42
|
-
}, function (props) {
|
|
43
|
-
return _theme.default.cBlack;
|
|
44
|
-
}, function (props) {
|
|
45
|
-
return props.autoHeightLabel && "\n height:20px;\n padding-top:0;\n ";
|
|
46
|
-
}, function (props) {
|
|
47
|
-
return _theme.default.cPrimary;
|
|
48
|
-
}, function (props) {
|
|
49
|
-
return props.disabled && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & > input {\n color: ", ";\n &:focus,\n &:hover {\n border-top-color: transparent;\n border-bottom-color: ", ";\n }\n }\n "])), function (props) {
|
|
50
|
-
return _theme.default.cGrey2;
|
|
51
|
-
}, function (props) {
|
|
52
|
-
return _theme.default.cGrey;
|
|
53
|
-
});
|
|
54
|
-
}, function (props) {
|
|
55
|
-
return props.dashboard && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n & > input {\n border: 0;\n padding: 0;\n height: 22px;\n font-family: 'Open Sans';\n font-weight: 300;\n font-size: 14px;\n line-height: 22px;\n letter-spacing: 0.53px;\n text-transform: normal;\n color: ", ";\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n }\n "])), _theme.default.cBlack, _theme.default.cGrey2);
|
|
56
|
-
});
|
|
57
|
-
exports.InputWrap = InputWrap;
|
|
22
|
+
})(["position:relative;& > input{z-index:0;font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:15px 0;padding-bottom:5px;box-shadow:none;border:0;outline:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s;", " &:focus,&:hover{border-top-color:transparent;border-bottom-color:", ";}&::placeholder{color:transparent;opacity:0;}}", " ", ""], props => _theme.default.cGrey, props => _theme.default.cBlack, props => props.autoHeightLabel && "\n height:20px;\n padding-top:0;\n ", props => _theme.default.cPrimary, props => props.disabled && (0, _styledComponents.css)(["& > input{color:", ";&:focus,&:hover{border-top-color:transparent;border-bottom-color:", ";}}"], props => _theme.default.cGrey2, props => _theme.default.cGrey), props => props.dashboard && (0, _styledComponents.css)(["& > input{border:0;padding:0;height:22px;font-family:'Open Sans';font-weight:300;font-size:14px;line-height:22px;letter-spacing:0.53px;text-transform:normal;color:", ";&::placeholder{color:", ";opacity:1;}}"], _theme.default.cBlack, _theme.default.cGrey2));
|
|
@@ -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
|
});
|
|
@@ -11,68 +10,50 @@ var _SvgIcons = require("../SvgIcons");
|
|
|
11
10
|
var _InfoIcon = _interopRequireDefault(require("../InfoIcon/InfoIcon"));
|
|
12
11
|
var _Input = require("./Input.styles");
|
|
13
12
|
var _InputPassword = require("./InputPassword.styles");
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
-
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."); }
|
|
19
|
-
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); }
|
|
20
|
-
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; }
|
|
21
|
-
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; } }
|
|
22
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
-
var PasswordStrength = {
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
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); }
|
|
15
|
+
const PasswordStrength = exports.PasswordStrength = {
|
|
24
16
|
NONE: 'none',
|
|
25
17
|
WEAK: 'Weak',
|
|
26
18
|
MEDIUM: 'Average',
|
|
27
19
|
STRONG: 'Excellent'
|
|
28
20
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
id
|
|
33
|
-
name
|
|
34
|
-
value
|
|
35
|
-
error
|
|
36
|
-
touched
|
|
37
|
-
info
|
|
38
|
-
showStrength
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
isCapslockOn = _useState4[0],
|
|
46
|
-
setIsCapslockOn = _useState4[1];
|
|
47
|
-
var _useState5 = (0, _react.useState)(!!value),
|
|
48
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
49
|
-
labelUp = _useState6[0],
|
|
50
|
-
setLabelUp = _useState6[1];
|
|
51
|
-
var _useState7 = (0, _react.useState)(false),
|
|
52
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
53
|
-
hasFocus = _useState8[0],
|
|
54
|
-
setHasFocus = _useState8[1];
|
|
55
|
-
(0, _react.useEffect)(function () {
|
|
21
|
+
const InputPassword = props => {
|
|
22
|
+
const {
|
|
23
|
+
label,
|
|
24
|
+
id,
|
|
25
|
+
name,
|
|
26
|
+
value,
|
|
27
|
+
error,
|
|
28
|
+
touched,
|
|
29
|
+
info,
|
|
30
|
+
showStrength
|
|
31
|
+
} = props;
|
|
32
|
+
const [isPasswordVisible, setIsPasswordVisible] = (0, _react.useState)(false);
|
|
33
|
+
const [isCapslockOn, setIsCapslockOn] = (0, _react.useState)(false);
|
|
34
|
+
const [labelUp, setLabelUp] = (0, _react.useState)(!!value);
|
|
35
|
+
const [hasFocus, setHasFocus] = (0, _react.useState)(false);
|
|
36
|
+
(0, _react.useEffect)(() => {
|
|
56
37
|
setLabelUp(hasFocus || !!value);
|
|
57
38
|
}, [hasFocus, value]);
|
|
58
|
-
|
|
39
|
+
const togglePasswordVisibility = () => {
|
|
59
40
|
setIsPasswordVisible(!isPasswordVisible);
|
|
60
41
|
};
|
|
61
|
-
|
|
42
|
+
const handleCapslock = e => {
|
|
62
43
|
setIsCapslockOn(e.getModifierState('CapsLock'));
|
|
63
44
|
};
|
|
64
|
-
|
|
45
|
+
const onFocus = (e, field) => {
|
|
65
46
|
props.onFocus && props.onFocus(e, field);
|
|
66
47
|
setHasFocus(true);
|
|
67
48
|
};
|
|
68
|
-
|
|
49
|
+
const onBlur = (e, field) => {
|
|
69
50
|
if (props.onBlur) props.onBlur(e, field);
|
|
70
51
|
setHasFocus(false);
|
|
71
52
|
};
|
|
72
|
-
|
|
53
|
+
const onChange = (e, field) => {
|
|
73
54
|
props.onChange && props.onChange(e, field);
|
|
74
55
|
};
|
|
75
|
-
|
|
56
|
+
const passwordStrengthFunction = () => {
|
|
76
57
|
if (value.length === 0) {
|
|
77
58
|
return PasswordStrength.NONE;
|
|
78
59
|
}
|
|
@@ -84,7 +65,7 @@ var InputPassword = function InputPassword(props) {
|
|
|
84
65
|
}
|
|
85
66
|
return PasswordStrength.STRONG;
|
|
86
67
|
};
|
|
87
|
-
|
|
68
|
+
const passwordStrength = passwordStrengthFunction();
|
|
88
69
|
return /*#__PURE__*/_react.default.createElement(_Input.Wrapper, null, label && /*#__PURE__*/_react.default.createElement(_Input.Label, {
|
|
89
70
|
isUp: labelUp,
|
|
90
71
|
active: hasFocus,
|
|
@@ -147,11 +128,10 @@ InputPassword.defaultProps = {
|
|
|
147
128
|
value: '',
|
|
148
129
|
error: false,
|
|
149
130
|
touched: false,
|
|
150
|
-
onChange:
|
|
151
|
-
onBlur:
|
|
152
|
-
onFocus:
|
|
131
|
+
onChange: () => {},
|
|
132
|
+
onBlur: () => {},
|
|
133
|
+
onFocus: () => {},
|
|
153
134
|
info: '',
|
|
154
135
|
showStrength: false
|
|
155
136
|
};
|
|
156
|
-
var _default = InputPassword;
|
|
157
|
-
exports.default = _default;
|
|
137
|
+
var _default = exports.default = InputPassword;
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _InputPassword = require("./InputPassword");
|
|
9
9
|
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
10
|
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
var _default = {
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
var _default = exports.default = {
|
|
13
13
|
title: 'Components Library/Inputs/Input Password',
|
|
14
14
|
component: _InputPassword.InputPassword,
|
|
15
15
|
argTypes: {
|
|
@@ -62,25 +62,19 @@ var _default = {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
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(_InputPassword.InputPassword, args)));
|
|
68
|
-
};
|
|
69
|
-
var PasswordFilled = Template.bind({});
|
|
70
|
-
exports.PasswordFilled = PasswordFilled;
|
|
65
|
+
const Template = args => /*#__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(_InputPassword.InputPassword, args)));
|
|
66
|
+
const PasswordFilled = exports.PasswordFilled = Template.bind({});
|
|
71
67
|
PasswordFilled.args = {
|
|
72
68
|
label: 'input description (label) - PASSWORD',
|
|
73
69
|
value: 'your password (value)'
|
|
74
70
|
};
|
|
75
|
-
|
|
76
|
-
exports.PasswordStrength = PasswordStrength;
|
|
71
|
+
const PasswordStrength = exports.PasswordStrength = Template.bind({});
|
|
77
72
|
PasswordStrength.args = {
|
|
78
73
|
label: 'input description (label) - PASSWORD',
|
|
79
74
|
value: 'your password (value)',
|
|
80
75
|
showStrength: true
|
|
81
76
|
};
|
|
82
|
-
|
|
83
|
-
exports.InputPasswordEmpty = InputPasswordEmpty;
|
|
77
|
+
const InputPasswordEmpty = exports.InputPasswordEmpty = Template.bind({});
|
|
84
78
|
InputPasswordEmpty.args = {
|
|
85
79
|
label: 'input description (label) - PASSWORD'
|
|
86
80
|
};
|
|
@@ -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,82 +7,56 @@ exports.ShowPassword = exports.PasswordStrengthWrap = exports.PasswordStrengthTe
|
|
|
8
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
8
|
var _InputPassword = require("./InputPassword");
|
|
10
9
|
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
16
|
-
var BottomWrap = _styledComponents.default.div.withConfig({
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
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); }
|
|
12
|
+
const BottomWrap = exports.BottomWrap = _styledComponents.default.div.withConfig({
|
|
17
13
|
displayName: "InputPasswordstyles__BottomWrap",
|
|
18
14
|
componentId: "sc-nohv3o-0"
|
|
19
15
|
})(["position:relative;margin-top:6px;"]);
|
|
20
|
-
exports.
|
|
21
|
-
var ShowPassword = _styledComponents.default.div.withConfig({
|
|
16
|
+
const ShowPassword = exports.ShowPassword = _styledComponents.default.div.withConfig({
|
|
22
17
|
displayName: "InputPasswordstyles__ShowPassword",
|
|
23
18
|
componentId: "sc-nohv3o-1"
|
|
24
|
-
})(["display:block;position:absolute;top:0;right:0;cursor:pointer;transition:color 0.2s;font-size:12px;line-height:16px;padding:12px 0;height:40px;width:20px;text-align:right;&:hover{color:", ";}"],
|
|
25
|
-
|
|
26
|
-
});
|
|
27
|
-
exports.ShowPassword = ShowPassword;
|
|
28
|
-
var CapslockIndicator = _styledComponents.default.div.withConfig({
|
|
19
|
+
})(["display:block;position:absolute;top:0;right:0;cursor:pointer;transition:color 0.2s;font-size:12px;line-height:16px;padding:12px 0;height:40px;width:20px;text-align:right;&:hover{color:", ";}"], props => _theme.default.cPrimary);
|
|
20
|
+
const CapslockIndicator = exports.CapslockIndicator = _styledComponents.default.div.withConfig({
|
|
29
21
|
displayName: "InputPasswordstyles__CapslockIndicator",
|
|
30
22
|
componentId: "sc-nohv3o-2"
|
|
31
|
-
})(["position:absolute;top:4px;right:2px;& > svg{fill:", ";}"],
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
exports.CapslockIndicator = CapslockIndicator;
|
|
35
|
-
var PasswordStrengthWrap = _styledComponents.default.div.withConfig({
|
|
23
|
+
})(["position:absolute;top:4px;right:2px;& > svg{fill:", ";}"], props => _theme.default.cBlack);
|
|
24
|
+
const PasswordStrengthWrap = exports.PasswordStrengthWrap = _styledComponents.default.div.withConfig({
|
|
36
25
|
displayName: "InputPasswordstyles__PasswordStrengthWrap",
|
|
37
26
|
componentId: "sc-nohv3o-3"
|
|
38
27
|
})(["padding:3px 0;display:block;width:100%;padding-right:20px;font-size:0;"]);
|
|
39
|
-
exports.
|
|
40
|
-
var PasswordStrengthIndicators = _styledComponents.default.div.withConfig({
|
|
28
|
+
const PasswordStrengthIndicators = exports.PasswordStrengthIndicators = _styledComponents.default.div.withConfig({
|
|
41
29
|
displayName: "InputPasswordstyles__PasswordStrengthIndicators",
|
|
42
30
|
componentId: "sc-nohv3o-4"
|
|
43
|
-
})(["display:inline-block;vertical-align:middle;margin:0 -4px;padding-right:12px;", " ", " ", ""],
|
|
44
|
-
|
|
45
|
-
}, function (props) {
|
|
46
|
-
return props.passwordStrength === _InputPassword.PasswordStrength.MEDIUM && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", " {\n &:nth-child(1),\n &:nth-child(2) {\n background-color: ", ";\n }\n }\n "])), PasswordStrengthIndicator, _theme.default.cYellow);
|
|
47
|
-
}, function (props) {
|
|
48
|
-
return props.passwordStrength === _InputPassword.PasswordStrength.STRONG && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", " {\n &:nth-child(1),\n &:nth-child(2),\n &:nth-child(3) {\n background-color: ", ";\n }\n }\n "])), PasswordStrengthIndicator, _theme.default.cLighterGreen);
|
|
49
|
-
});
|
|
50
|
-
exports.PasswordStrengthIndicators = PasswordStrengthIndicators;
|
|
51
|
-
var PasswordStrengthIndicator = _styledComponents.default.div.withConfig({
|
|
31
|
+
})(["display:inline-block;vertical-align:middle;margin:0 -4px;padding-right:12px;", " ", " ", ""], props => props.passwordStrength === _InputPassword.PasswordStrength.WEAK && (0, _styledComponents.css)(["", "{&:nth-child(1){background-color:", ";}}"], PasswordStrengthIndicator, _theme.default.cWarning), props => props.passwordStrength === _InputPassword.PasswordStrength.MEDIUM && (0, _styledComponents.css)(["", "{&:nth-child(1),&:nth-child(2){background-color:", ";}}"], PasswordStrengthIndicator, _theme.default.cYellow), props => props.passwordStrength === _InputPassword.PasswordStrength.STRONG && (0, _styledComponents.css)(["", "{&:nth-child(1),&:nth-child(2),&:nth-child(3){background-color:", ";}}"], PasswordStrengthIndicator, _theme.default.cLighterGreen));
|
|
32
|
+
const PasswordStrengthIndicator = exports.PasswordStrengthIndicator = _styledComponents.default.div.withConfig({
|
|
52
33
|
displayName: "InputPasswordstyles__PasswordStrengthIndicator",
|
|
53
34
|
componentId: "sc-nohv3o-5"
|
|
54
|
-
})(["display:inline-block;vertical-align:middle;width:32px;height:6px;border-radius:3px;margin:3px 4px;background-color:", ";"],
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
exports.PasswordStrengthIndicator = PasswordStrengthIndicator;
|
|
58
|
-
var PasswordStrengthText = _styledComponents.default.div.withConfig({
|
|
35
|
+
})(["display:inline-block;vertical-align:middle;width:32px;height:6px;border-radius:3px;margin:3px 4px;background-color:", ";"], props => _theme.default.cGrey);
|
|
36
|
+
const PasswordStrengthText = exports.PasswordStrengthText = _styledComponents.default.div.withConfig({
|
|
59
37
|
displayName: "InputPasswordstyles__PasswordStrengthText",
|
|
60
38
|
componentId: "sc-nohv3o-6"
|
|
61
|
-
})(["display:inline-block;vertical-align:middle;font-weight:300;font-size:9px;line-height:12px;letter-spacing:0.4px;font-style:italic;color:", ";"],
|
|
62
|
-
|
|
63
|
-
});
|
|
64
|
-
exports.PasswordStrengthText = PasswordStrengthText;
|
|
65
|
-
var DatePickerOverlay = _styledComponents.default.div.withConfig({
|
|
39
|
+
})(["display:inline-block;vertical-align:middle;font-weight:300;font-size:9px;line-height:12px;letter-spacing:0.4px;font-style:italic;color:", ";"], props => _theme.default.cText);
|
|
40
|
+
const DatePickerOverlay = exports.DatePickerOverlay = _styledComponents.default.div.withConfig({
|
|
66
41
|
displayName: "InputPasswordstyles__DatePickerOverlay",
|
|
67
42
|
componentId: "sc-nohv3o-7"
|
|
68
|
-
})(["&&& > .DayPickerInput{z-index:100;display:block;position:relative;width:100%;}&&& > .DayPickerInput > input{font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:13px 0;padding-bottom:7px;border-radius:0;box-shadow:none;outline:0;border:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s;&:focus,&:hover{box-shadow:none;border-top-color:transparent;border-bottom-color:", ";}&::placeholder{color:transparent;opacity:0;}}"],
|
|
69
|
-
|
|
70
|
-
}, function (props) {
|
|
71
|
-
return _theme.default.cBlack;
|
|
72
|
-
}, function (props) {
|
|
73
|
-
return _theme.default.cPrimary;
|
|
74
|
-
});
|
|
75
|
-
exports.DatePickerOverlay = DatePickerOverlay;
|
|
76
|
-
var InfoIconWrapper = _styledComponents.default.div.withConfig({
|
|
43
|
+
})(["&&& > .DayPickerInput{z-index:100;display:block;position:relative;width:100%;}&&& > .DayPickerInput > input{font-family:'Open sans';display:block;width:100%;height:40px;font-weight:600;font-size:12px;line-height:18px;padding:13px 0;padding-bottom:7px;border-radius:0;box-shadow:none;outline:0;border:0;border-top:1px solid transparent;border-bottom:1px solid ", ";color:", ";background-color:transparent;transition:border-color 0.2s;&:focus,&:hover{box-shadow:none;border-top-color:transparent;border-bottom-color:", ";}&::placeholder{color:transparent;opacity:0;}}"], props => _theme.default.cGrey, props => _theme.default.cBlack, props => _theme.default.cPrimary);
|
|
44
|
+
const InfoIconWrapper = exports.InfoIconWrapper = _styledComponents.default.div.withConfig({
|
|
77
45
|
displayName: "InputPasswordstyles__InfoIconWrapper",
|
|
78
46
|
componentId: "sc-nohv3o-8"
|
|
79
|
-
})(["display:inline-block;vertical-align:middle;margin:-2px 0;left:80px;position:absolute;z-index:10;top:2px;transition:all 0.5s;", ""],
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
47
|
+
})(["display:inline-block;vertical-align:middle;margin:-2px 0;left:80px;position:absolute;z-index:10;top:2px;transition:all 0.5s;", ""], _ref => {
|
|
48
|
+
let {
|
|
49
|
+
isPassword
|
|
50
|
+
} = _ref;
|
|
51
|
+
return isPassword && (0, _styledComponents.css)(["opacity:", ";pointer-events:", ";"], _ref2 => {
|
|
52
|
+
let {
|
|
53
|
+
labelUp
|
|
54
|
+
} = _ref2;
|
|
83
55
|
return labelUp ? 1 : 0;
|
|
84
|
-
},
|
|
85
|
-
|
|
56
|
+
}, _ref3 => {
|
|
57
|
+
let {
|
|
58
|
+
labelUp
|
|
59
|
+
} = _ref3;
|
|
86
60
|
return labelUp ? 'auto' : 'none';
|
|
87
61
|
});
|
|
88
|
-
});
|
|
89
|
-
exports.InfoIconWrapper = InfoIconWrapper;
|
|
62
|
+
});
|