@stokr/components-library 2.3.58-beta.5 → 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 +99 -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
|
@@ -7,29 +7,19 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _ComponentScroll = _interopRequireDefault(require("../../ComponentScroll/ComponentScroll"));
|
|
10
|
-
var
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
27
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
28
|
-
var OptionalScroll = function OptionalScroll(_ref) {
|
|
29
|
-
var children = _ref.children,
|
|
30
|
-
maxHeight = _ref.maxHeight,
|
|
31
|
-
noScroll = _ref.noScroll,
|
|
32
|
-
onScroll = _ref.onScroll;
|
|
10
|
+
var _Table2 = require("./Table.styles");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
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); }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
const OptionalScroll = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
children,
|
|
19
|
+
maxHeight,
|
|
20
|
+
noScroll,
|
|
21
|
+
onScroll
|
|
22
|
+
} = _ref;
|
|
33
23
|
if (noScroll) {
|
|
34
24
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, children);
|
|
35
25
|
}
|
|
@@ -48,114 +38,90 @@ OptionalScroll.propTypes = {
|
|
|
48
38
|
noScroll: _propTypes.default.bool.isRequired,
|
|
49
39
|
onScroll: _propTypes.default.func.isRequired
|
|
50
40
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
58
|
-
args[_key] = arguments[_key];
|
|
59
|
-
}
|
|
60
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
61
|
-
_defineProperty(_assertThisInitialized(_this), "onResize", function () {
|
|
62
|
-
clearTimeout(_this.resizeTimeout);
|
|
63
|
-
_this.resizeTimeout = setTimeout(_this.setColumnsWidth, 200);
|
|
41
|
+
class Table extends _react.PureComponent {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
44
|
+
_defineProperty(this, "onResize", () => {
|
|
45
|
+
clearTimeout(this.resizeTimeout);
|
|
46
|
+
this.resizeTimeout = setTimeout(this.setColumnsWidth, 200);
|
|
64
47
|
});
|
|
65
|
-
_defineProperty(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Array.prototype.forEach.call(bodyColumns,
|
|
48
|
+
_defineProperty(this, "setColumnsWidth", () => {
|
|
49
|
+
const headColumns = this.headTableEl.children[0].children[0].children;
|
|
50
|
+
const bodyColumns = this.bodyTableEl.children[0].children[0].children;
|
|
51
|
+
Array.prototype.forEach.call(bodyColumns, (column, columnKey) => {
|
|
69
52
|
bodyColumns[columnKey].style.width = '';
|
|
70
53
|
});
|
|
71
|
-
|
|
72
|
-
Array.prototype.forEach.call(bodyColumns,
|
|
54
|
+
this.headTableEl.style.width = '';
|
|
55
|
+
Array.prototype.forEach.call(bodyColumns, (column, columnKey) => {
|
|
73
56
|
headColumns[columnKey].style.width = "".concat(column.offsetWidth, "px");
|
|
74
57
|
bodyColumns[columnKey].style.width = "".concat(column.offsetWidth, "px");
|
|
75
58
|
});
|
|
76
|
-
|
|
59
|
+
this.headTableEl.style.width = "".concat(this.bodyTableEl.offsetWidth, "px");
|
|
77
60
|
});
|
|
78
|
-
_defineProperty(
|
|
61
|
+
_defineProperty(this, "onScroll", e => {
|
|
79
62
|
if (!e) return;
|
|
80
|
-
|
|
63
|
+
this.headTableWrapperEl.scrollLeft = e.target.scrollLeft;
|
|
81
64
|
});
|
|
82
|
-
return _this;
|
|
83
65
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
align: column.align
|
|
144
|
-
}, column.label);
|
|
145
|
-
}))), /*#__PURE__*/_react.default.createElement(_Table.Body, null, data.map(function (row) {
|
|
146
|
-
return /*#__PURE__*/_react.default.createElement(_Table.Row, {
|
|
147
|
-
key: row.id
|
|
148
|
-
}, Object.keys(row).map(function (columnKey) {
|
|
149
|
-
return columnsProps[columnKey] && /*#__PURE__*/_react.default.createElement(_Table.Column, {
|
|
150
|
-
key: columnKey,
|
|
151
|
-
align: columnsProps[columnKey].align
|
|
152
|
-
}, row[columnKey]);
|
|
153
|
-
}));
|
|
154
|
-
}))))));
|
|
155
|
-
}
|
|
156
|
-
}]);
|
|
157
|
-
return Table;
|
|
158
|
-
}(_react.PureComponent);
|
|
66
|
+
componentDidMount() {
|
|
67
|
+
this.setColumnsWidth();
|
|
68
|
+
window.addEventListener('resize', this.onResize);
|
|
69
|
+
}
|
|
70
|
+
componentWillUnmount() {
|
|
71
|
+
clearTimeout(this.resizeTimeout);
|
|
72
|
+
window.removeEventListener('resize', this.onResize);
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
const {
|
|
76
|
+
columns,
|
|
77
|
+
data,
|
|
78
|
+
maxHeight,
|
|
79
|
+
noScroll
|
|
80
|
+
} = this.props;
|
|
81
|
+
const columnsProps = {};
|
|
82
|
+
columns.map(column => {
|
|
83
|
+
columnsProps[column.key] = {
|
|
84
|
+
width: column.width,
|
|
85
|
+
align: column.align,
|
|
86
|
+
marginLeft: column.marginLeft
|
|
87
|
+
};
|
|
88
|
+
return column;
|
|
89
|
+
});
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement(_Table2.Container, null, /*#__PURE__*/_react.default.createElement(_Table2.HeadWrapper, {
|
|
91
|
+
ref: el => {
|
|
92
|
+
this.headTableWrapperEl = el;
|
|
93
|
+
}
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_Table2.StyledTable, {
|
|
95
|
+
ref: el => {
|
|
96
|
+
this.headTableEl = el;
|
|
97
|
+
}
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement(_Table2.Head, null, /*#__PURE__*/_react.default.createElement(_Table2.Row, null, columns.map(column => /*#__PURE__*/_react.default.createElement(_Table2.Column, {
|
|
99
|
+
key: column.key,
|
|
100
|
+
align: column.align
|
|
101
|
+
}, column.label)))))), /*#__PURE__*/_react.default.createElement(_Table2.TableWrapper, null, /*#__PURE__*/_react.default.createElement(OptionalScroll, {
|
|
102
|
+
maxHeight: maxHeight,
|
|
103
|
+
noScroll: noScroll,
|
|
104
|
+
onScroll: this.onScroll
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_Table2.StyledTable, {
|
|
106
|
+
ref: el => {
|
|
107
|
+
this.bodyTableEl = el;
|
|
108
|
+
}
|
|
109
|
+
}, /*#__PURE__*/_react.default.createElement(_Table2.Head, {
|
|
110
|
+
hidden: true
|
|
111
|
+
}, /*#__PURE__*/_react.default.createElement(_Table2.Row, null, columns.map(column => /*#__PURE__*/_react.default.createElement(_Table2.Column, {
|
|
112
|
+
key: column.key,
|
|
113
|
+
colWidth: column.width,
|
|
114
|
+
minWidth: column.minWidth,
|
|
115
|
+
maxWidth: column.maxWidth,
|
|
116
|
+
align: column.align
|
|
117
|
+
}, column.label)))), /*#__PURE__*/_react.default.createElement(_Table2.Body, null, data.map(row => /*#__PURE__*/_react.default.createElement(_Table2.Row, {
|
|
118
|
+
key: row.id
|
|
119
|
+
}, Object.keys(row).map(columnKey => columnsProps[columnKey] && /*#__PURE__*/_react.default.createElement(_Table2.Column, {
|
|
120
|
+
key: columnKey,
|
|
121
|
+
align: columnsProps[columnKey].align
|
|
122
|
+
}, row[columnKey])))))))));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
159
125
|
Table.propTypes = {
|
|
160
126
|
columns: _propTypes.default.arrayOf(Object).isRequired,
|
|
161
127
|
data: _propTypes.default.arrayOf(Object).isRequired,
|
|
@@ -166,5 +132,4 @@ Table.defaultProps = {
|
|
|
166
132
|
maxHeight: 500,
|
|
167
133
|
noScroll: false
|
|
168
134
|
};
|
|
169
|
-
var _default = Table;
|
|
170
|
-
exports.default = _default;
|
|
135
|
+
var _default = exports.default = Table;
|
|
@@ -4,138 +4,76 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TableWrapper = exports.TableWrap = exports.TableDropdownIcon = exports.TableCellType = exports.Styles = exports.StyledTr = exports.StyledTh = exports.StyledTd = exports.StyledTable = exports.StyledReactTable = exports.Row = exports.HeadWrapper = exports.Head = exports.Container = exports.Column = exports.Body = void 0;
|
|
7
|
-
var _styledComponents =
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
+
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); }
|
|
9
|
+
const Container = exports.Container = _styledComponents.default.div.withConfig({
|
|
10
10
|
displayName: "Tablestyles__Container",
|
|
11
11
|
componentId: "sc-pdcd6r-0"
|
|
12
12
|
})(["position:relative;"]);
|
|
13
|
-
exports.
|
|
14
|
-
var HeadWrapper = _styledComponents.default.div.withConfig({
|
|
13
|
+
const HeadWrapper = exports.HeadWrapper = _styledComponents.default.div.withConfig({
|
|
15
14
|
displayName: "Tablestyles__HeadWrapper",
|
|
16
15
|
componentId: "sc-pdcd6r-1"
|
|
17
|
-
})(["z-index:1;position:absolute;top:0;left:0;width:100%;overflow:hidden;background-color:", ";"],
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
exports.HeadWrapper = HeadWrapper;
|
|
21
|
-
var TableWrapper = _styledComponents.default.div.withConfig({
|
|
16
|
+
})(["z-index:1;position:absolute;top:0;left:0;width:100%;overflow:hidden;background-color:", ";"], props => props.theme.cWhite);
|
|
17
|
+
const TableWrapper = exports.TableWrapper = _styledComponents.default.div.withConfig({
|
|
22
18
|
displayName: "Tablestyles__TableWrapper",
|
|
23
19
|
componentId: "sc-pdcd6r-2"
|
|
24
20
|
})(["z-index:0;position:relative;display:block;"]);
|
|
25
|
-
exports.
|
|
26
|
-
var StyledTable = _styledComponents.default.div.withConfig({
|
|
21
|
+
const StyledTable = exports.StyledTable = _styledComponents.default.div.withConfig({
|
|
27
22
|
displayName: "Tablestyles__StyledTable",
|
|
28
23
|
componentId: "sc-pdcd6r-3"
|
|
29
24
|
})(["display:table;min-width:100%;"]);
|
|
30
|
-
exports.
|
|
31
|
-
var Row = _styledComponents.default.div.withConfig({
|
|
25
|
+
const Row = exports.Row = _styledComponents.default.div.withConfig({
|
|
32
26
|
displayName: "Tablestyles__Row",
|
|
33
27
|
componentId: "sc-pdcd6r-4"
|
|
34
28
|
})(["display:table-row;"]);
|
|
35
|
-
exports.
|
|
36
|
-
var Column = _styledComponents.default.div.withConfig({
|
|
29
|
+
const Column = exports.Column = _styledComponents.default.div.withConfig({
|
|
37
30
|
displayName: "Tablestyles__Column",
|
|
38
31
|
componentId: "sc-pdcd6r-5"
|
|
39
|
-
})(["display:table-cell;text-align:", ";font-family:'Open Sans';", ";", ";", ";"],
|
|
40
|
-
|
|
41
|
-
}, function (props) {
|
|
42
|
-
return props.colWidth && "\n width: ".concat(props.colWidth, "\n min-width: ").concat(props.colWidth, "\n ");
|
|
43
|
-
}, function (props) {
|
|
44
|
-
return props.minWidth && "\n min-width: ".concat(props.minWidth, "\n ");
|
|
45
|
-
}, function (props) {
|
|
46
|
-
return props.maxWidth && "\n width: ".concat(props.maxWidth, "\n max-width: ").concat(props.maxWidth, "\n ");
|
|
47
|
-
});
|
|
48
|
-
exports.Column = Column;
|
|
49
|
-
var Head = _styledComponents.default.div.withConfig({
|
|
32
|
+
})(["display:table-cell;text-align:", ";font-family:'Open Sans';", ";", ";", ";"], props => props.align, props => props.colWidth && "\n width: ".concat(props.colWidth, "\n min-width: ").concat(props.colWidth, "\n "), props => props.minWidth && "\n min-width: ".concat(props.minWidth, "\n "), props => props.maxWidth && "\n width: ".concat(props.maxWidth, "\n max-width: ").concat(props.maxWidth, "\n "));
|
|
33
|
+
const Head = exports.Head = _styledComponents.default.div.withConfig({
|
|
50
34
|
displayName: "Tablestyles__Head",
|
|
51
35
|
componentId: "sc-pdcd6r-6"
|
|
52
|
-
})(["display:table-header-group;", " ", "{", "{border-bottom:1px solid ", ";}}", "{color:", ";font-weight:600;font-size:11px;line-height:20px;letter-spacing:1.98px;text-transform:uppercase;vertical-align:middle;white-space:nowrap;padding:10px 10px;}"],
|
|
53
|
-
|
|
54
|
-
}, Row, Column, function (props) {
|
|
55
|
-
return props.theme.cLightGrey;
|
|
56
|
-
}, Column, function (props) {
|
|
57
|
-
return props.theme.cProgress;
|
|
58
|
-
});
|
|
59
|
-
exports.Head = Head;
|
|
60
|
-
var Body = _styledComponents.default.div.withConfig({
|
|
36
|
+
})(["display:table-header-group;", " ", "{", "{border-bottom:1px solid ", ";}}", "{color:", ";font-weight:600;font-size:11px;line-height:20px;letter-spacing:1.98px;text-transform:uppercase;vertical-align:middle;white-space:nowrap;padding:10px 10px;}"], props => props.hidden && "\n visibility: hidden;\n ", Row, Column, props => props.theme.cLightGrey, Column, props => props.theme.cProgress);
|
|
37
|
+
const Body = exports.Body = _styledComponents.default.div.withConfig({
|
|
61
38
|
displayName: "Tablestyles__Body",
|
|
62
39
|
componentId: "sc-pdcd6r-7"
|
|
63
|
-
})(["display:table-row-group;", "{& + ", "{", "{border-top:1px solid ", ";}}}", "{color:", ";font-weight:400;font-size:14px;line-height:20px;vertical-align:middle;padding:26px 10px;}"], Row, Row, Column,
|
|
64
|
-
return props.theme.cLightGrey;
|
|
65
|
-
}, Column, function (props) {
|
|
66
|
-
return props.theme.cBlack;
|
|
67
|
-
});
|
|
40
|
+
})(["display:table-row-group;", "{& + ", "{", "{border-top:1px solid ", ";}}}", "{color:", ";font-weight:400;font-size:14px;line-height:20px;vertical-align:middle;padding:26px 10px;}"], Row, Row, Column, props => props.theme.cLightGrey, Column, props => props.theme.cBlack);
|
|
68
41
|
|
|
69
42
|
// TODO: move to separate file
|
|
70
|
-
exports.
|
|
71
|
-
var TableCellType = _styledComponents.default.div.withConfig({
|
|
43
|
+
const TableCellType = exports.TableCellType = _styledComponents.default.div.withConfig({
|
|
72
44
|
displayName: "Tablestyles__TableCellType",
|
|
73
45
|
componentId: "sc-pdcd6r-8"
|
|
74
|
-
})(["display:inline-block;background-color:", ";color:", ";font-weight:600;min-width:40px;line-height:24px;border-radius:3px;text-align:center;"],
|
|
75
|
-
|
|
76
|
-
}, function (props) {
|
|
77
|
-
return props.theme.cWhite;
|
|
78
|
-
});
|
|
79
|
-
exports.TableCellType = TableCellType;
|
|
80
|
-
var TableDropdownIcon = _styledComponents.default.i.attrs({
|
|
46
|
+
})(["display:inline-block;background-color:", ";color:", ";font-weight:600;min-width:40px;line-height:24px;border-radius:3px;text-align:center;"], props => props.color, props => props.theme.cWhite);
|
|
47
|
+
const TableDropdownIcon = exports.TableDropdownIcon = _styledComponents.default.i.attrs({
|
|
81
48
|
className: 'ion ion-ios-arrow-down'
|
|
82
49
|
}).withConfig({
|
|
83
50
|
displayName: "Tablestyles__TableDropdownIcon",
|
|
84
51
|
componentId: "sc-pdcd6r-9"
|
|
85
|
-
})(["width:14px;height:20px;font-size:20px;margin-top:-10px;transform:rotate(0);transition:0.3s transform;cursor:pointer;", ""],
|
|
86
|
-
|
|
87
|
-
});
|
|
88
|
-
exports.TableDropdownIcon = TableDropdownIcon;
|
|
89
|
-
var Styles = _styledComponents.default.div.withConfig({
|
|
52
|
+
})(["width:14px;height:20px;font-size:20px;margin-top:-10px;transform:rotate(0);transition:0.3s transform;cursor:pointer;", ""], props => props.isActive && "\n transform: rotate(180deg);\n ");
|
|
53
|
+
const Styles = exports.Styles = _styledComponents.default.div.withConfig({
|
|
90
54
|
displayName: "Tablestyles__Styles",
|
|
91
55
|
componentId: "sc-pdcd6r-10"
|
|
92
56
|
})(["display:block;max-width:100%;table{th,td{&.collapse{width:0.0000000001%;}}}"]);
|
|
93
|
-
exports.
|
|
94
|
-
var TableWrap = _styledComponents.default.div.withConfig({
|
|
57
|
+
const TableWrap = exports.TableWrap = _styledComponents.default.div.withConfig({
|
|
95
58
|
displayName: "Tablestyles__TableWrap",
|
|
96
59
|
componentId: "sc-pdcd6r-11"
|
|
97
60
|
})(["display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;"]);
|
|
98
|
-
exports.
|
|
99
|
-
var StyledTh = _styledComponents.default.th.withConfig({
|
|
61
|
+
const StyledTh = exports.StyledTh = _styledComponents.default.th.withConfig({
|
|
100
62
|
displayName: "Tablestyles__StyledTh",
|
|
101
63
|
componentId: "sc-pdcd6r-12"
|
|
102
|
-
})(["text-transform:uppercase;padding:10px;font-size:11px;letter-spacing:1.6px;font-weight:600;background-color:white;color:#000000de;border-bottom:1px solid #e1e1e1;line-height:20px;", " ", " ", " ", ""],
|
|
103
|
-
|
|
104
|
-
}, function (props) {
|
|
105
|
-
return props.width && "\n width: ".concat(props.width, ";\n min-width: ").concat(props.width, ";\n max-width: ").concat(props.width, ";\n ");
|
|
106
|
-
}, function (props) {
|
|
107
|
-
return props.minWidth && "\n min-width: ".concat(props.minWidth, ";\n ");
|
|
108
|
-
}, function (props) {
|
|
109
|
-
return props.maxWidth && "\n max-width: ".concat(props.maxWidth, ";\n ");
|
|
110
|
-
});
|
|
111
|
-
exports.StyledTh = StyledTh;
|
|
112
|
-
var StyledTd = _styledComponents.default.td.withConfig({
|
|
64
|
+
})(["text-transform:uppercase;padding:10px;font-size:11px;letter-spacing:1.6px;font-weight:600;background-color:white;color:#000000de;border-bottom:1px solid #e1e1e1;line-height:20px;", " ", " ", " ", ""], props => props.blue && "\n background-color: #0050ca;\n color: #ffffff;\n border:none;\n ", props => props.width && "\n width: ".concat(props.width, ";\n min-width: ").concat(props.width, ";\n max-width: ").concat(props.width, ";\n "), props => props.minWidth && "\n min-width: ".concat(props.minWidth, ";\n "), props => props.maxWidth && "\n max-width: ".concat(props.maxWidth, ";\n "));
|
|
65
|
+
const StyledTd = exports.StyledTd = _styledComponents.default.td.withConfig({
|
|
113
66
|
displayName: "Tablestyles__StyledTd",
|
|
114
67
|
componentId: "sc-pdcd6r-13"
|
|
115
|
-
})(["padding:26px 15px;border-bottom:1px solid #e1e1e1;font-size:14px;", " ", " ", " ", " ", ""],
|
|
116
|
-
|
|
117
|
-
}, function (props) {
|
|
118
|
-
return props.subTable && "\n padding: 0;\n &:last-child {\n border-bottom: 0;\n }\n ";
|
|
119
|
-
}, function (props) {
|
|
120
|
-
return props.width && "\n width: ".concat(props.width, ";\n min-width: ").concat(props.width, ";\n max-width: ").concat(props.width, ";\n ");
|
|
121
|
-
}, function (props) {
|
|
122
|
-
return props.minWidth && "\n min-width: ".concat(props.minWidth, ";\n ");
|
|
123
|
-
}, function (props) {
|
|
124
|
-
return props.maxWidth && "\n max-width: ".concat(props.maxWidth, ";\n ");
|
|
125
|
-
});
|
|
126
|
-
exports.StyledTd = StyledTd;
|
|
127
|
-
var StyledTr = _styledComponents.default.tr.withConfig({
|
|
68
|
+
})(["padding:26px 15px;border-bottom:1px solid #e1e1e1;font-size:14px;", " ", " ", " ", " ", ""], props => props.blue && "\n background-color: #004bb7;\n color: #ffffff;\n ", props => props.subTable && "\n padding: 0;\n &:last-child {\n border-bottom: 0;\n }\n ", props => props.width && "\n width: ".concat(props.width, ";\n min-width: ").concat(props.width, ";\n max-width: ").concat(props.width, ";\n "), props => props.minWidth && "\n min-width: ".concat(props.minWidth, ";\n "), props => props.maxWidth && "\n max-width: ".concat(props.maxWidth, ";\n "));
|
|
69
|
+
const StyledTr = exports.StyledTr = _styledComponents.default.tr.withConfig({
|
|
128
70
|
displayName: "Tablestyles__StyledTr",
|
|
129
71
|
componentId: "sc-pdcd6r-14"
|
|
130
|
-
})(["", ""],
|
|
131
|
-
|
|
132
|
-
});
|
|
133
|
-
exports.StyledTr = StyledTr;
|
|
134
|
-
var StyledReactTable = _styledComponents.default.table.withConfig({
|
|
72
|
+
})(["", " ", ""], props => props.customRowStyles && (0, _styledComponents.css)(["", ""], props.customRowStyles(props.rowIndex, props.rowData)), props => props.customRowHoverStyles && (0, _styledComponents.css)(["&:hover{", "}"], props.customRowHoverStyles(props.rowIndex, props.rowData)));
|
|
73
|
+
const StyledReactTable = exports.StyledReactTable = _styledComponents.default.table.withConfig({
|
|
135
74
|
displayName: "Tablestyles__StyledReactTable",
|
|
136
75
|
componentId: "sc-pdcd6r-15"
|
|
137
|
-
})(["width:100%;border-spacing:0;"]);
|
|
138
|
-
exports.StyledReactTable = StyledReactTable;
|
|
76
|
+
})(["width:100%;border-spacing:0;", ""], props => props.customTableStyles && (0, _styledComponents.css)(["", ""], props.customTableStyles()));
|
|
139
77
|
StyledReactTable.Tr = StyledTr;
|
|
140
78
|
StyledReactTable.Th = StyledTh;
|
|
141
79
|
StyledReactTable.Td = StyledTd;
|
|
@@ -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
|
});
|
|
@@ -12,14 +11,15 @@ var _Text = _interopRequireDefault(require("../Text/Text.styles"));
|
|
|
12
11
|
var _Checkbox = _interopRequireWildcard(require("../Checkbox/Checkbox"));
|
|
13
12
|
var _ComponentWrapper = _interopRequireDefault(require("../ComponentWrapper/ComponentWrapper.styles"));
|
|
14
13
|
var _AgreementItem = require("./AgreementItem.styles");
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
text
|
|
21
|
-
checkbox
|
|
22
|
-
info
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
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); }
|
|
16
|
+
const AgreementItem = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
title,
|
|
19
|
+
text,
|
|
20
|
+
checkbox,
|
|
21
|
+
info
|
|
22
|
+
} = _ref;
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement(_AgreementItem.Container, null, /*#__PURE__*/_react.default.createElement(_Text.default, null, title && /*#__PURE__*/_react.default.createElement("h3", null, title), text && /*#__PURE__*/_react.default.createElement("p", null, text)), checkbox && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
24
24
|
noPaddingHorizontal: true,
|
|
25
25
|
noPaddingBottom: true
|
|
@@ -48,5 +48,4 @@ AgreementItem.defaultProps = {
|
|
|
48
48
|
title: '',
|
|
49
49
|
info: ''
|
|
50
50
|
};
|
|
51
|
-
var _default = AgreementItem;
|
|
52
|
-
exports.default = _default;
|
|
51
|
+
var _default = exports.default = AgreementItem;
|
|
@@ -8,9 +8,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _AgreementItem = _interopRequireDefault(require("./AgreementItem"));
|
|
9
9
|
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
10
|
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
// import Checkbox, { CheckboxPropTypes } from '../Checkbox/Checkbox'
|
|
13
|
-
var _default = {
|
|
13
|
+
var _default = exports.default = {
|
|
14
14
|
title: 'Components Library/Agreement Item',
|
|
15
15
|
component: _AgreementItem.default,
|
|
16
16
|
argTypes: {
|
|
@@ -63,12 +63,8 @@ var _default = {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
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(_AgreementItem.default, args)));
|
|
69
|
-
};
|
|
70
|
-
var AgreementItemOverview = Template.bind({});
|
|
71
|
-
exports.AgreementItemOverview = AgreementItemOverview;
|
|
66
|
+
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(_AgreementItem.default, args)));
|
|
67
|
+
const AgreementItemOverview = exports.AgreementItemOverview = Template.bind({});
|
|
72
68
|
AgreementItemOverview.args = {
|
|
73
69
|
title: 'Agreement Item Title',
|
|
74
70
|
text: 'some Text',
|
|
@@ -76,8 +72,7 @@ AgreementItemOverview.args = {
|
|
|
76
72
|
ventureName: 'Venture Name',
|
|
77
73
|
info: 'Info'
|
|
78
74
|
};
|
|
79
|
-
|
|
80
|
-
exports.AgreementItemExample = AgreementItemExample;
|
|
75
|
+
const AgreementItemExample = exports.AgreementItemExample = Template.bind({});
|
|
81
76
|
AgreementItemExample.args = {
|
|
82
77
|
title: 'disclaimer',
|
|
83
78
|
text: 'Before being able to view any fund offering, you, as a prospective investor, must confirm a few things. Please read check the boxes',
|
|
@@ -5,31 +5,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.TermsOfOfferingLink = exports.OfferingPageLink = exports.InfoBox = exports.Container = exports.CheckboxWrap = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const Container = exports.Container = _styledComponents.default.div.withConfig({
|
|
10
10
|
displayName: "AgreementItemstyles__Container",
|
|
11
11
|
componentId: "sc-1prg3a3-0"
|
|
12
12
|
})(["display:block;"]);
|
|
13
|
-
exports.
|
|
14
|
-
var CheckboxWrap = _styledComponents.default.div.withConfig({
|
|
13
|
+
const CheckboxWrap = exports.CheckboxWrap = _styledComponents.default.div.withConfig({
|
|
15
14
|
displayName: "AgreementItemstyles__CheckboxWrap",
|
|
16
15
|
componentId: "sc-1prg3a3-1"
|
|
17
16
|
})(["padding:6px 0;"]);
|
|
18
|
-
exports.
|
|
19
|
-
var InfoBox = _styledComponents.default.div.withConfig({
|
|
17
|
+
const InfoBox = exports.InfoBox = _styledComponents.default.div.withConfig({
|
|
20
18
|
displayName: "AgreementItemstyles__InfoBox",
|
|
21
19
|
componentId: "sc-1prg3a3-2"
|
|
22
20
|
})(["max-width:240px;text-align:left;"]);
|
|
23
21
|
|
|
24
22
|
//styles from unmerged IIS:
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
|
|
24
|
+
const OfferingPageLink = exports.OfferingPageLink = _styledComponents.default.a.withConfig({
|
|
27
25
|
displayName: "AgreementItemstyles__OfferingPageLink",
|
|
28
26
|
componentId: "sc-1prg3a3-3"
|
|
29
27
|
})(["text-decoration:underline;&:hover{color:#0050ca !important;opacity:0.7;text-decoration:underline;}"]);
|
|
30
|
-
exports.
|
|
31
|
-
var TermsOfOfferingLink = _styledComponents.default.a.withConfig({
|
|
28
|
+
const TermsOfOfferingLink = exports.TermsOfOfferingLink = _styledComponents.default.a.withConfig({
|
|
32
29
|
displayName: "AgreementItemstyles__TermsOfOfferingLink",
|
|
33
30
|
componentId: "sc-1prg3a3-4"
|
|
34
|
-
})(["text-decoration:underline;&:hover{opacity:0.7;text-decoration:underline;}"]);
|
|
35
|
-
exports.TermsOfOfferingLink = TermsOfOfferingLink;
|
|
31
|
+
})(["text-decoration:underline;&:hover{opacity:0.7;text-decoration:underline;}"]);
|