@stokr/components-library 0.6.6 → 0.6.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/package.json +84 -77
- package/.vscode/settings.json +0 -3
- package/CHANGELOG.md +0 -7
- package/Dockerfile +0 -20
- package/build/asset-manifest.json +0 -45
- package/build/favicon.ico +0 -0
- package/build/index.html +0 -1
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- package/build/static/css/main.e30a9d15.css +0 -15
- package/build/static/css/main.e30a9d15.css.map +0 -1
- package/build/static/js/main.8c250652.js +0 -3
- package/build/static/js/main.8c250652.js.LICENSE.txt +0 -158
- package/build/static/js/main.8c250652.js.map +0 -1
- package/build/static/media/Ionicons.4e528d6445ca1974c313.woff +0 -0
- package/build/static/media/Ionicons.643c37f102b41f7f90c3.woff2 +0 -0
- package/build/static/media/Ionicons.98b7d3182f652f021bc3.ttf +0 -0
- package/build/static/media/OpenSans-Bold.9bea22b57dc165ed4382.ttf +0 -0
- package/build/static/media/OpenSans-Bold.a750292d6a0b5a760679.woff +0 -0
- package/build/static/media/OpenSans-Bold.cbfc24090ef8bacab132.woff2 +0 -0
- package/build/static/media/OpenSans-ExtraBold.21e493d43617de76dbc7.woff2 +0 -0
- package/build/static/media/OpenSans-ExtraBold.81f3ef07b7952e249da1.woff +0 -0
- package/build/static/media/OpenSans-ExtraBold.bcb6531cf820152b7538.ttf +0 -0
- package/build/static/media/OpenSans-Light.179ef2df02cb0b68c9fd.woff2 +0 -0
- package/build/static/media/OpenSans-Light.55053cc0a8e6482eca64.ttf +0 -0
- package/build/static/media/OpenSans-Light.c6a4bc1bd034d6303053.woff +0 -0
- package/build/static/media/OpenSans-Regular.3caa0d4f9b7d58668066.woff2 +0 -0
- package/build/static/media/OpenSans-Regular.9ec738fbb66068dc1ca7.woff +0 -0
- package/build/static/media/OpenSans-Regular.d97d7385fe8771611848.ttf +0 -0
- package/build/static/media/OpenSans-SemiBold.311956ded96d3fd2813d.woff2 +0 -0
- package/build/static/media/OpenSans-SemiBold.39f5961b2d3eb4aa5bf5.woff +0 -0
- package/build/static/media/OpenSans-SemiBold.d2b1865643b98c0e8b54.ttf +0 -0
- package/build/static/media/address-refreshing.5fbb0cc56c384480118a.gif +0 -0
- package/build/static/media/arrow-down-black.fe92da3ac6ed16b45bf57713df82cea2.svg +0 -21
- package/build/static/media/avatar-placeholder.488a33b3f080a43e0d43.png +0 -0
- package/build/static/media/icomoon.2640959b1f9381cde047.eot +0 -0
- package/build/static/media/icomoon.35bce49b15feeae93572c36a08feecd9.svg +0 -47
- package/build/static/media/icomoon.4c3c428d0ce82f840710.woff +0 -0
- package/build/static/media/icomoon.a1d7666a48f976227722.ttf +0 -0
- package/build/static/media/lemonway.33e88c3a49e7ac73e3a9.png +0 -0
- package/build/static/media/sicos-logo.7fa3ac9d583b52c3987da529da67cb15.svg +0 -1
- package/build/static/media/slick.2630a3e3eab21c607e21.svg +0 -14
- package/build/static/media/slick.295183786cd8a1389865.woff +0 -0
- package/build/static/media/slick.a4e97f5a2a64f0ab1323.eot +0 -0
- package/build/static/media/slick.c94f7671dcc99dce43e2.ttf +0 -0
- package/build/static/media/whales.7a1e9453670d08b8b76a.png +0 -0
- package/buildpushndeploy.sh +0 -9
- package/devops/Dockerfile +0 -20
- package/devops/Jenkinsfile +0 -56
- package/devops/ansible/docker-stack-deploy.yml +0 -32
- package/devops/ansible/hosts.ini +0 -7
- package/devops/docker-compose.yml +0 -25
- package/dist/api/StokrWeb3.js +0 -184
- package/dist/api/fetchData.js +0 -76
- package/dist/api/fetchDataPublic.js +0 -65
- package/dist/components/AccountBalance/AccountBalance.js +0 -53
- package/dist/components/AccountBalance/AccountBalance.stories.js +0 -88
- package/dist/components/AccountBalance/AccountBalance.styles.js +0 -40
- package/dist/components/AdminDashboard/Table/Table.js +0 -170
- package/dist/components/AdminDashboard/Table/Table.styles.js +0 -79
- package/dist/components/AgreementItem/AgreementItem.js +0 -51
- package/dist/components/AgreementItem/AgreementItem.stories.js +0 -109
- package/dist/components/AgreementItem/AgreementItem.styles.js +0 -35
- package/dist/components/AnalyticGraphs/Analytic.js +0 -781
- package/dist/components/AnalyticGraphs/Analytic.styles.js +0 -37
- package/dist/components/BackButton/BackButton.js +0 -32
- package/dist/components/BackButton/BackButton.stories.js +0 -35
- package/dist/components/BackButton/BackButton.styles.js +0 -76
- package/dist/components/Background/Background.js +0 -41
- package/dist/components/Background/Background.stories.js +0 -62
- package/dist/components/Background/Background.styles.js +0 -69
- package/dist/components/BarChart/BarChart.js +0 -304
- package/dist/components/BarChart/BarChart.stories.js +0 -47
- package/dist/components/BarChart/BarChart.styles.js +0 -33
- package/dist/components/BarChartLegend/BarChartLegend.js +0 -106
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +0 -26
- package/dist/components/BasicTable/BasicTable.js +0 -32
- package/dist/components/BasicTable/BasicTable.stories.js +0 -63
- package/dist/components/BasicTable/BasicTable.styles.js +0 -52
- package/dist/components/Button/Button.stories.js +0 -79
- package/dist/components/Button/Button.styles.js +0 -83
- package/dist/components/ButtonContainer/ButtonContainer.styles.js +0 -18
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -45
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +0 -34
- package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +0 -34
- package/dist/components/ChartBox/ChartBox.js +0 -44
- package/dist/components/ChartBox/ChartBox.stories.js +0 -20
- package/dist/components/ChartBox/ChartBox.styles.js +0 -33
- package/dist/components/ChartBox/ChartBoxDistribution.js +0 -30
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +0 -21
- package/dist/components/ChartLegend/ChartLegend.js +0 -62
- package/dist/components/ChartLegend/ChartLegend.stories.js +0 -87
- package/dist/components/ChartLegend/ChartLegend.styles.js +0 -64
- package/dist/components/Checkbox/Checkbox.js +0 -116
- package/dist/components/Checkbox/Checkbox.stories.js +0 -92
- package/dist/components/Checkbox/Checkbox.styles.js +0 -45
- package/dist/components/Checklist/UserChecklist.js +0 -274
- package/dist/components/Checklist/UserChecklist.stories.js +0 -126
- package/dist/components/ComponentScroll/ComponentScroll.js +0 -138
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +0 -102
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +0 -66
- package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +0 -68
- package/dist/components/CryptoAddress/ComponentWrap.js +0 -37
- package/dist/components/CryptoAddress/CryptoAddress.js +0 -145
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +0 -173
- package/dist/components/CryptoAddress/CryptoAddress.styles.js +0 -186
- package/dist/components/CryptoAddress/RadioWrap.js +0 -49
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +0 -54
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -74
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +0 -67
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +0 -40
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +0 -59
- package/dist/components/DonutChart/DonutChart.js +0 -182
- package/dist/components/DonutChart/DonutChart.stories.js +0 -40
- package/dist/components/DonutChart/DonutChart.styles.js +0 -50
- package/dist/components/DoubleButton/DoubleButton.styles.js +0 -22
- package/dist/components/ErrorMessage/ErrorMessage.styles.js +0 -15
- package/dist/components/FAQ/FAQ.js +0 -65
- package/dist/components/FAQ/FAQ.stories.js +0 -74
- package/dist/components/FAQ/FAQ.styles.js +0 -48
- package/dist/components/Footer/Footer.js +0 -66
- package/dist/components/Footer/Footer.stories.js +0 -54
- package/dist/components/Footer/Footer.styles.js +0 -74
- package/dist/components/Footer/FooterLayout.js +0 -129
- package/dist/components/Footer/FooterLayout.stories.js +0 -31
- package/dist/components/Footer/FooterMenu.js +0 -117
- package/dist/components/Footer/FooterMenu.stories.js +0 -121
- package/dist/components/Footer/FooterMenu.styles.js +0 -80
- package/dist/components/Footer/index.js +0 -27
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +0 -127
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -42
- package/dist/components/Form/Form.js +0 -68
- package/dist/components/Form/Form.stories.js +0 -35
- package/dist/components/Form/Form.styles.js +0 -59
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +0 -32
- package/dist/components/Grid/Grid.styles.js +0 -68
- package/dist/components/Header/Header.js +0 -452
- package/dist/components/Header/Header.stories.js +0 -188
- package/dist/components/Header/Header.styles.js +0 -180
- package/dist/components/Icon/Icon.style.js +0 -71
- package/dist/components/InfoIcon/InfoIcon.js +0 -50
- package/dist/components/InfoIcon/InfoIcon.stories.js +0 -52
- package/dist/components/InfoIcon/InfoIcon.styles.js +0 -31
- package/dist/components/InfoPanel/InfoPanel.js +0 -146
- package/dist/components/Input/DatePickerInput.js +0 -85
- package/dist/components/Input/DatePickerInput.stories.js +0 -91
- package/dist/components/Input/DatePickerInput.styles.js +0 -29
- package/dist/components/Input/Input.js +0 -108
- package/dist/components/Input/Input.stories.js +0 -148
- package/dist/components/Input/Input.styles.js +0 -53
- package/dist/components/Input/InputPassword.js +0 -151
- package/dist/components/Input/InputPassword.stories.js +0 -85
- package/dist/components/Input/InputPassword.styles.js +0 -80
- package/dist/components/Input/RangeInput.js +0 -60
- package/dist/components/Input/RangeInput.stories.js +0 -59
- package/dist/components/Input/RangeInput.styles.js +0 -53
- package/dist/components/Input/Select.js +0 -148
- package/dist/components/Input/Select.stories.js +0 -142
- package/dist/components/Input/Select.styles.js +0 -65
- package/dist/components/InvestCalculator/InvestCalculator.js +0 -367
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +0 -137
- package/dist/components/InvestCalculator/InvestCalculator.styles.js +0 -66
- package/dist/components/InvestmentStat/InvestmentStat.js +0 -40
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +0 -56
- package/dist/components/InvestmentStat/InvestmentStat.styles.js +0 -43
- package/dist/components/KYCFlow/BasicInfo.js +0 -489
- package/dist/components/KYCFlow/Confirmation.js +0 -51
- package/dist/components/KYCFlow/DocumentFileUpload.js +0 -276
- package/dist/components/KYCFlow/DocumentScan.js +0 -74
- package/dist/components/KYCFlow/DocumentScanUpload.js +0 -258
- package/dist/components/KYCFlow/DocumentSelect.js +0 -148
- package/dist/components/KYCFlow/DocumentSuccess.js +0 -64
- package/dist/components/KYCFlow/DocumentUpload.js +0 -54
- package/dist/components/KYCFlow/DocumentVerificationType.js +0 -161
- package/dist/components/KYCFlow/FaceScan.js +0 -55
- package/dist/components/KYCFlow/FaceScanRecognition.js +0 -60
- package/dist/components/KYCFlow/FaceScanSuccess.js +0 -59
- package/dist/components/KYCFlow/Terms.js +0 -142
- package/dist/components/KYCFlow/_styles.js +0 -160
- package/dist/components/KYCFlow/index.js +0 -97
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +0 -41
- package/dist/components/LatestUpdate/LatestUpdate.js +0 -51
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +0 -62
- package/dist/components/LatestUpdate/LatestUpdate.styles.js +0 -71
- package/dist/components/Layout/Layout-func-no-work.js +0 -78
- package/dist/components/Layout/Layout.js +0 -103
- package/dist/components/Layout/Layout.stories.js +0 -67
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +0 -47
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -70
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +0 -43
- package/dist/components/LearnMorePage/LearnMore.js +0 -255
- package/dist/components/LearnMorePage/LearnMore.shared.styles.js +0 -40
- package/dist/components/LearnMorePage/LearnMore.stories.js +0 -51
- package/dist/components/LearnMorePage/LearnMore.styles.js +0 -120
- package/dist/components/LearnMorePage/LearnMoreExampleObject.js +0 -87
- package/dist/components/LearnMorePage/LearnMoreItem.js +0 -75
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +0 -65
- package/dist/components/LearnMorePage/LearnMoreItem.styles.js +0 -87
- package/dist/components/LearnMoreSection/LearnMore.js +0 -199
- package/dist/components/LearnMoreSection/LearnMore.stories.js +0 -33
- package/dist/components/LearnMoreSection/LearnMore.styles.js +0 -73
- package/dist/components/LearnMoreSection/LearnMoreItem.js +0 -52
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +0 -62
- package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +0 -50
- package/dist/components/LoginModal/LoginModal.js +0 -163
- package/dist/components/MainMenu/DynamicMainMenu.js +0 -50
- package/dist/components/MainMenu/MainMenu.js +0 -262
- package/dist/components/MainMenu/MainMenu.styles.js +0 -124
- package/dist/components/MatomoConnect/Matomo.js +0 -485
- package/dist/components/MatomoConnect/Matomo_fuckup.js +0 -383
- package/dist/components/MenuNav/MenuNav.styles.js +0 -42
- package/dist/components/Modal/Modal.js +0 -123
- package/dist/components/Modal/Modal.stories.js +0 -82
- package/dist/components/Modal/Modal.styles.js +0 -140
- package/dist/components/MultiProgressBar/MultiProgressBar.js +0 -48
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +0 -72
- package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +0 -41
- package/dist/components/Newsletter/Newsletter.js +0 -139
- package/dist/components/Newsletter/Newsletter.stories.js +0 -19
- package/dist/components/Newsletter/Newsletter.styles.js +0 -83
- package/dist/components/NotificationContext/NotificationContext.js +0 -173
- package/dist/components/NotificationContext/NotificationContext.stories.js +0 -33
- package/dist/components/NotificationCounter/NotificationCounter.styles.js +0 -22
- package/dist/components/Number/Number.js +0 -35
- package/dist/components/Number/Number.stories.js +0 -41
- package/dist/components/Number/Number.styles.js +0 -20
- package/dist/components/PageTransition/PageTransition.js +0 -57
- package/dist/components/Process/Process.stories.js +0 -47
- package/dist/components/Process/Process.styles.js +0 -33
- package/dist/components/ProfileBadge/ProfileBadge.js +0 -53
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +0 -48
- package/dist/components/ProfileBadge/ProfileBadge.styles.js +0 -32
- package/dist/components/ProfileBox/ProfileBox.js +0 -39
- package/dist/components/ProfileBox/ProfileBox.stories.js +0 -38
- package/dist/components/ProfileBox/ProfileBox.styles.js +0 -49
- package/dist/components/ProfileHeader/ProfileHeader-CLb4.js +0 -477
- package/dist/components/ProfileHeader/ProfileHeader.js +0 -330
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +0 -87
- package/dist/components/ProfileStat/ProfileStat.js +0 -42
- package/dist/components/ProfileStat/ProfileStat.stories.js +0 -71
- package/dist/components/ProfileStat/ProfileStat.styles.js +0 -42
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +0 -69
- package/dist/components/ROI/ROI.js +0 -312
- package/dist/components/ROI/ROI.styles.js +0 -63
- package/dist/components/ROI/ROIChart.js +0 -469
- package/dist/components/ROI/ROIChart.styles.js +0 -33
- package/dist/components/ROI/ROIModal.js +0 -91
- package/dist/components/ROI/ROIScenarioBox.js +0 -55
- package/dist/components/ROI/ROIScenarioBox.styles.js +0 -52
- package/dist/components/Radio/Radio.js +0 -68
- package/dist/components/Radio/Radio.stories.js +0 -76
- package/dist/components/Radio/Radio.styles.js +0 -31
- package/dist/components/RefreshButton/RefreshButton.js +0 -21
- package/dist/components/RefreshButton/RefreshButton.stories.js +0 -41
- package/dist/components/RefreshButton/RefreshButton.styles.js +0 -39
- package/dist/components/RegisterAlgorand/AlgoAddressName.js +0 -138
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +0 -444
- package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +0 -47
- package/dist/components/RegisterAlgorand/AlgoSuccess.js +0 -38
- package/dist/components/RegisterAlgorand/Algorand.stories.js +0 -78
- package/dist/components/RegisterAlgorand/ChooseWallet.js +0 -97
- package/dist/components/RegisterAlgorand/SelectProject.js +0 -90
- package/dist/components/RegisterAlgorand/_styles.js +0 -28
- package/dist/components/RegisterAlgorand/flow.js +0 -409
- package/dist/components/RegisterAlgorand/flowWithMemo.js +0 -410
- package/dist/components/RegisterAlgorand/index.js +0 -48
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +0 -40
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -33
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.styles.js +0 -16
- package/dist/components/RegisterEthereum/EthAddressLedger.js +0 -215
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +0 -205
- package/dist/components/RegisterEthereum/EthAddressName.js +0 -135
- package/dist/components/RegisterEthereum/EthConnectLedger.js +0 -194
- package/dist/components/RegisterEthereum/EthConnectMetamask.js +0 -35
- package/dist/components/RegisterEthereum/EthFinish.js +0 -41
- package/dist/components/RegisterEthereum/EthIntro.js +0 -95
- package/dist/components/RegisterEthereum/_styles.js +0 -28
- package/dist/components/RegisterEthereum/index.js +0 -68
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.js +0 -106
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.stories.js +0 -66
- package/dist/components/RegisterLiquidSteps/RegisterLiquidSteps.styles.js +0 -48
- package/dist/components/RegisterLiquidSteps/complete.js +0 -37
- package/dist/components/RegisterLiquidSteps/flow.js +0 -197
- package/dist/components/RegisterLiquidSteps/index.js +0 -52
- package/dist/components/RegisterLiquidSteps/register-liquid.js +0 -240
- package/dist/components/RegisterModal/RegisterModal.js +0 -180
- package/dist/components/RegisterModal/RegisterModal.stories.js +0 -46
- package/dist/components/RequestDataBox/RequestDataBox.js +0 -31
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +0 -40
- package/dist/components/RequestDataBox/RequestDataBox.styles.js +0 -31
- package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -185
- package/dist/components/RiskQuestionnaire/_styles.js +0 -15
- package/dist/components/SEO/SEO.js +0 -71
- package/dist/components/SEO/SEO.stories.js +0 -64
- package/dist/components/SectionTitle/SectionTitle.styles.js +0 -15
- package/dist/components/SideLine/SideLine.js +0 -15
- package/dist/components/SideLine/SideLine.stories.js +0 -31
- package/dist/components/SideLine/SideLine.styles.js +0 -26
- package/dist/components/SigningSubflow/SignSubAddressMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubConnectLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubConnectMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubIntro.js +0 -54
- package/dist/components/SigningSubflow/SignSubSendLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubSendMetamask.js +0 -62
- package/dist/components/SigningSubflow/SignSubTransactionLedger.js +0 -161
- package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +0 -166
- package/dist/components/SigningSubflow/_styles.js +0 -45
- package/dist/components/SigningSubflow/index.js +0 -74
- package/dist/components/Slider/Slider.js +0 -50
- package/dist/components/Slider/Slider.stories.js +0 -72
- package/dist/components/Slider/Slider.styles.js +0 -23
- package/dist/components/SpanButton/SpanButton.styles.js +0 -15
- package/dist/components/StatusBadge/StatusBadge.styles.js +0 -20
- package/dist/components/StepController/StepController.js +0 -111
- package/dist/components/StepController/StepController.stories.js +0 -63
- package/dist/components/StepController/StepController.styles.js +0 -26
- package/dist/components/StepController/StepControllerContext.js +0 -104
- package/dist/components/StepController/StepControllerProgress.js +0 -40
- package/dist/components/StepController/StepControllerProgress.stories.js +0 -52
- package/dist/components/StepsProgress/StepsProgress.js +0 -127
- package/dist/components/StepsProgress/StepsProgress.stories.js +0 -50
- package/dist/components/StepsProgress/StepsProgress.styles.js +0 -36
- package/dist/components/StokrLoader/StokrLoader.js +0 -32
- package/dist/components/StokrLoader/media.js +0 -27
- package/dist/components/SvgIcons/AdminBadgeSvg.js +0 -26
- package/dist/components/SvgIcons/CameraSvg.js +0 -36
- package/dist/components/SvgIcons/CapsLockSvg.js +0 -31
- package/dist/components/SvgIcons/DocumentBackSvg.js +0 -35
- package/dist/components/SvgIcons/DocumentSmallSvg.js +0 -61
- package/dist/components/SvgIcons/DocumentSvg.js +0 -38
- package/dist/components/SvgIcons/Early.js +0 -24
- package/dist/components/SvgIcons/EthSvg.js +0 -40
- package/dist/components/SvgIcons/EurSvg.js +0 -26
- package/dist/components/SvgIcons/FaceScanIconSvg.js +0 -31
- package/dist/components/SvgIcons/FourSvg.js +0 -21
- package/dist/components/SvgIcons/Glassess.js +0 -29
- package/dist/components/SvgIcons/LogoSvg.js +0 -24
- package/dist/components/SvgIcons/OneSvg.js +0 -23
- package/dist/components/SvgIcons/PassportSvg.js +0 -56
- package/dist/components/SvgIcons/RefreshSvg.js +0 -27
- package/dist/components/SvgIcons/SocialFacebook.js +0 -25
- package/dist/components/SvgIcons/SocialInstagram.js +0 -26
- package/dist/components/SvgIcons/SocialLinkedIn.js +0 -25
- package/dist/components/SvgIcons/SocialMedium.js +0 -25
- package/dist/components/SvgIcons/SocialReddit.js +0 -25
- package/dist/components/SvgIcons/SocialTelegram.js +0 -25
- package/dist/components/SvgIcons/SocialTwitter.js +0 -25
- package/dist/components/SvgIcons/SocialYoutube.js +0 -25
- package/dist/components/SvgIcons/ThreeSvg.js +0 -20
- package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +0 -82
- package/dist/components/SvgIcons/TwoSvg.js +0 -23
- package/dist/components/SvgIcons/UpdateDefaultSvg.js +0 -29
- package/dist/components/SvgIcons/UpdateHardSvg.js +0 -25
- package/dist/components/SvgIcons/UpdateSoftSvg.js +0 -27
- package/dist/components/SvgIcons/UploadSvg.js +0 -34
- package/dist/components/SvgIcons/VerifiedBadge.js +0 -23
- package/dist/components/SvgIcons/index.js +0 -223
- package/dist/components/Switch/Switch.js +0 -70
- package/dist/components/Switch/Switch.stories.js +0 -86
- package/dist/components/Switch/Switch.styles.js +0 -47
- package/dist/components/Tabs/Tabs.js +0 -70
- package/dist/components/Tabs/Tabs.stories.js +0 -29
- package/dist/components/Tabs/Tabs.styles.js +0 -18
- package/dist/components/TabsNav/TabNav.js +0 -31
- package/dist/components/TabsNav/TabNav.stories.js +0 -44
- package/dist/components/TabsNav/TabsNav.js +0 -43
- package/dist/components/TabsNav/TabsNav.stories.js +0 -26
- package/dist/components/TabsNav/TabsNav.styles.js +0 -43
- package/dist/components/TeamOverview/TeamOverview.js +0 -125
- package/dist/components/TeamOverview/TeamOverview.stories.js +0 -80
- package/dist/components/TeamOverview/TeamOverview.styles.js +0 -81
- package/dist/components/Text/Headline.js +0 -29
- package/dist/components/Text/Headline.stories.js +0 -51
- package/dist/components/Text/StyledText.js +0 -19
- package/dist/components/Text/Text.stories.js +0 -71
- package/dist/components/Text/Text.styles.js +0 -40
- package/dist/components/TextLink/TextLink.styles.js +0 -30
- package/dist/components/ToDoList/ToDoList.js +0 -184
- package/dist/components/ToDoList/ToDoList.stories.js +0 -137
- package/dist/components/ToDoList/ToDoList.styles.js +0 -83
- package/dist/components/ToDoList/ToDoListTask.js +0 -118
- package/dist/components/ToDoList/ToDoListTask.stories.js +0 -72
- package/dist/components/ToDoList/ToDoListTask.styles.js +0 -74
- package/dist/components/TransactionDetails/TransactionDetails.js +0 -46
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +0 -59
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +0 -31
- package/dist/components/TransactionInfo/TransactionInfo.js +0 -58
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +0 -64
- package/dist/components/TransactionInfo/TransactionInfo.styles.js +0 -54
- package/dist/components/TwoFactorModal/TwoFactorModal.js +0 -122
- package/dist/components/breakdown/Breakdown.js +0 -56
- package/dist/components/breakdown/index.js +0 -27
- package/dist/components/context/Auth.js +0 -207
- package/dist/components/context/AuthContext.js +0 -335
- package/dist/components/icons/Arrow.js +0 -70
- package/dist/components/icons/Arrow.stories.js +0 -49
- package/dist/components/icons/ArrowSimple.js +0 -59
- package/dist/components/icons/ArrowSimple.stories.js +0 -55
- package/dist/components/icons/Check.js +0 -43
- package/dist/components/icons/Check.stories.js +0 -25
- package/dist/components/icons/Facebook.js +0 -26
- package/dist/components/icons/Facebook.stories.js +0 -24
- package/dist/components/icons/Info.js +0 -55
- package/dist/components/icons/Info.stories.js +0 -19
- package/dist/components/icons/Instagram.js +0 -26
- package/dist/components/icons/Instagram.stories.js +0 -24
- package/dist/components/icons/LinkIcon.js +0 -34
- package/dist/components/icons/LinkIcon.stories.js +0 -24
- package/dist/components/icons/LinkedIn.js +0 -43
- package/dist/components/icons/LinkedIn.stories.js +0 -19
- package/dist/components/icons/Medium.js +0 -42
- package/dist/components/icons/Medium.stories.js +0 -19
- package/dist/components/icons/Reddit.js +0 -32
- package/dist/components/icons/Reddit.stories.js +0 -24
- package/dist/components/icons/Share.js +0 -62
- package/dist/components/icons/Share.stories.js +0 -19
- package/dist/components/icons/Telegram.js +0 -42
- package/dist/components/icons/Telegram.stories.js +0 -19
- package/dist/components/icons/Twitter.js +0 -26
- package/dist/components/icons/Twitter.stories.js +0 -24
- package/dist/components/icons/X.js +0 -26
- package/dist/components/icons/X.stories.js +0 -19
- package/dist/components/icons/Youtube.js +0 -26
- package/dist/components/icons/Youtube.stories.js +0 -24
- package/dist/components/icons/index.js +0 -170
- package/dist/components/renderToBody/index.js +0 -27
- package/dist/components/renderToBody/renderToBody.js +0 -68
- package/dist/components/taxId/TaxId.stories.js +0 -42
- package/dist/components/taxId/complete.js +0 -32
- package/dist/components/taxId/flow.js +0 -52
- package/dist/components/taxId/index.js +0 -27
- package/dist/components/taxId/register-taxid.js +0 -186
- package/dist/components/video/Video.js +0 -174
- package/dist/components/video/Video.stories.js +0 -56
- package/dist/components/video/index.js +0 -27
- package/dist/constants/style.js +0 -52
- package/dist/index.js +0 -1
- package/dist/model/axios.js +0 -18
- package/dist/model/axiosPublic.js +0 -18
- package/dist/styles/colors.js +0 -55
- package/dist/styles/fonts.js +0 -34
- package/dist/styles/global.js +0 -19
- package/dist/styles/grid.js +0 -16
- package/dist/styles/reactTippy.js +0 -12
- package/dist/styles/rwd.js +0 -52
- package/dist/styles/semanticUi.js +0 -12
- package/dist/styles/spacing.js +0 -12
- package/dist/styles/theme.js +0 -43
- package/dist/utils/allowed-countries-list.js +0 -1375
- package/dist/utils/breakpoint.js +0 -19
- package/dist/utils/countries-list.js +0 -1008
- package/dist/utils/customHooks.js +0 -52
- package/dist/utils/delete-redirect-cookie-and-navigate.js +0 -20
- package/dist/utils/fix-decimals.js +0 -11
- package/dist/utils/get-cookie-domain.js +0 -16
- package/dist/utils/get-short-address.js +0 -10
- package/dist/utils/lock-body.js +0 -20
- package/dist/utils/redirect-url.js +0 -10
- package/dist/utils/set-redirect-cookie.js +0 -20
- package/docker-compose.yml +0 -25
- package/storybook-static/favicon.ico +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// import React from 'react'
|
|
2
|
-
// import { BarChart } from './BarChart'
|
|
3
|
-
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
4
|
-
|
|
5
|
-
// export default {
|
|
6
|
-
// title: 'Components Library/BarChart',
|
|
7
|
-
// component: BarChart,
|
|
8
|
-
// argTypes: {
|
|
9
|
-
// data: {
|
|
10
|
-
// type: 'array of shape',
|
|
11
|
-
// defaultValue: [{ value: 0 }, { name: '' }, { tooltip: '' }],
|
|
12
|
-
// required: true,
|
|
13
|
-
// },
|
|
14
|
-
// value: { type: 'number', required: true },
|
|
15
|
-
// name: { type: 'string' },
|
|
16
|
-
// tooltip: { type: 'string or node' },
|
|
17
|
-
// id: { type: 'string', required: true },
|
|
18
|
-
// title: { type: 'string', defaultValue: '' },
|
|
19
|
-
// colorTheme: { type: 'string', defaultValue: 'default' },
|
|
20
|
-
// },
|
|
21
|
-
// }
|
|
22
|
-
|
|
23
|
-
// const Template = args => (
|
|
24
|
-
// <ComponentWrapper>
|
|
25
|
-
// <BarChart {...args} />
|
|
26
|
-
// </ComponentWrapper>
|
|
27
|
-
// )
|
|
28
|
-
|
|
29
|
-
// export const BarChartDefault = Template.bind({})
|
|
30
|
-
// BarChartDefault.args = {}
|
|
31
|
-
|
|
32
|
-
// export const BarChartFull = Template.bind({})
|
|
33
|
-
// BarChartFull.args = {
|
|
34
|
-
// data: [
|
|
35
|
-
// {
|
|
36
|
-
// value: 1560,
|
|
37
|
-
// name: 'Name',
|
|
38
|
-
// colorThem: 'red',
|
|
39
|
-
// },
|
|
40
|
-
// ],
|
|
41
|
-
// id: 'Identity',
|
|
42
|
-
// title: 'A Title',
|
|
43
|
-
// }
|
|
44
|
-
|
|
45
|
-
// doublecheck:
|
|
46
|
-
// d3 causing SB to crash. cannot resolve
|
|
47
|
-
"use strict";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.TooltipWrapper = exports.ChartTitle = exports.Chart = exports.BarChartTooltip = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var Chart = _styledComponents.default.div.withConfig({
|
|
11
|
-
displayName: "BarChartstyles__Chart",
|
|
12
|
-
componentId: "sc-2ptm80-0"
|
|
13
|
-
})(["position:relative;display:block;width:100%;height:auto;overflow:hidden;.axisX,.axisY{& > path{stroke:#e1e1e1;}.tick{text{font-family:'Open Sans';font-weight:600;font-size:14px;line-height:20px;color:", ";}line{stroke:none;}}}.axisY{& > path{stroke:none;}}.gridX,.gridY{& > path{stroke:none;}}.gridX{.tick line{stroke:none;}}.gridY{.tick line{stroke:#dfe5f1;}}"], function (props) {
|
|
14
|
-
return _theme.default.cGrey2;
|
|
15
|
-
});
|
|
16
|
-
exports.Chart = Chart;
|
|
17
|
-
var _default = Chart;
|
|
18
|
-
exports.default = _default;
|
|
19
|
-
var TooltipWrapper = _styledComponents.default.div.withConfig({
|
|
20
|
-
displayName: "BarChartstyles__TooltipWrapper",
|
|
21
|
-
componentId: "sc-2ptm80-1"
|
|
22
|
-
})(["position:absolute;top:0;left:0;pointer-events:none;"]);
|
|
23
|
-
exports.TooltipWrapper = TooltipWrapper;
|
|
24
|
-
var BarChartTooltip = _styledComponents.default.div.withConfig({
|
|
25
|
-
displayName: "BarChartstyles__BarChartTooltip",
|
|
26
|
-
componentId: "sc-2ptm80-2"
|
|
27
|
-
})(["font-size:10px;min-width:40px;& > h3{font-weight:400;font-family:'Open Sans';font-size:16px;margin:0;padding:0;}& > p{color:#79ca65;font-family:'Open Sans';font-size:11px;text-transform:uppercase;}"]);
|
|
28
|
-
exports.BarChartTooltip = BarChartTooltip;
|
|
29
|
-
var ChartTitle = _styledComponents.default.div.withConfig({
|
|
30
|
-
displayName: "BarChartstyles__ChartTitle",
|
|
31
|
-
componentId: "sc-2ptm80-3"
|
|
32
|
-
})(["font-family:'Open Sans';font-size:12px;line-height:20px;text-align:center;letter-spacing:2px;text-transform:uppercase;padding:0;margin:0;"]);
|
|
33
|
-
exports.ChartTitle = ChartTitle;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.BarChartLegend = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var d3 = _interopRequireWildcard(require("d3"));
|
|
10
|
-
var _BarChartLegend = require("./BarChartLegend.styles");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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 _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
15
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
17
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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 gradients = {
|
|
29
|
-
default: {
|
|
30
|
-
start: '#0050ca',
|
|
31
|
-
end: '#0050ca'
|
|
32
|
-
},
|
|
33
|
-
red: {
|
|
34
|
-
start: '#f24f45',
|
|
35
|
-
end: '#ee220d'
|
|
36
|
-
},
|
|
37
|
-
blue: {
|
|
38
|
-
start: '#6a97e0',
|
|
39
|
-
end: '#0050ca'
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var BarChartLegend = /*#__PURE__*/function (_PureComponent) {
|
|
43
|
-
_inherits(BarChartLegend, _PureComponent);
|
|
44
|
-
var _super = _createSuper(BarChartLegend);
|
|
45
|
-
function BarChartLegend() {
|
|
46
|
-
var _this;
|
|
47
|
-
_classCallCheck(this, BarChartLegend);
|
|
48
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49
|
-
args[_key] = arguments[_key];
|
|
50
|
-
}
|
|
51
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
52
|
-
_defineProperty(_assertThisInitialized(_this), "createChart", function () {
|
|
53
|
-
if (!_this.barEl) return;
|
|
54
|
-
var _this$props = _this.props,
|
|
55
|
-
id = _this$props.id,
|
|
56
|
-
colorTheme = _this$props.colorTheme;
|
|
57
|
-
var width = 50;
|
|
58
|
-
var thickness = 6;
|
|
59
|
-
var radius = thickness / 2;
|
|
60
|
-
_this.svg = d3.select(_this.barEl).append('svg').attr('width', width).attr('height', thickness);
|
|
61
|
-
_this.defs = _this.svg.append('defs');
|
|
62
|
-
|
|
63
|
-
// #region gradient
|
|
64
|
-
_this.gradient = _this.defs.append('linearGradient').attr('id', "".concat(id, "-barChartLegend-gradient")).attr('x1', '0%').attr('x2', '100%').attr('y1', '50%').attr('y2', '50%');
|
|
65
|
-
_this.gradient.append('stop').attr('class', 'start').attr('offset', '0%').attr('stop-color', gradients[colorTheme].start).attr('stop-opacity', 1);
|
|
66
|
-
_this.gradient.append('stop').attr('class', 'end').attr('offset', '100%').attr('stop-color', gradients[colorTheme].end).attr('stop-opacity', 1);
|
|
67
|
-
// #endregion gradient
|
|
68
|
-
|
|
69
|
-
// #region bars
|
|
70
|
-
_this.bar = _this.svg.append('path').attr('class', 'bar').style('fill', "url(#".concat(id, "-barChartLegend-gradient)")).attr('d', function (item) {
|
|
71
|
-
return "\n M 0 0\n A ".concat(radius, " ").concat(radius, " 0 0 1 ").concat(radius, " ").concat(-radius, "\n H ").concat(width - radius, "\n A ").concat(radius, " ").concat(radius, " 0 0 1 ").concat(width, " 0\n A ").concat(radius, " ").concat(radius, " 0 0 1 ").concat(width - radius, " ").concat(radius, "\n H ").concat(radius, "\n A ").concat(radius, " ").concat(radius, " 0 0 1 0 0 \n Z\n ");
|
|
72
|
-
}).attr('transform', "translate(0, ".concat(radius, ")"));
|
|
73
|
-
// #endregion bars
|
|
74
|
-
});
|
|
75
|
-
return _this;
|
|
76
|
-
}
|
|
77
|
-
_createClass(BarChartLegend, [{
|
|
78
|
-
key: "componentDidMount",
|
|
79
|
-
value: function componentDidMount() {
|
|
80
|
-
this.createChart();
|
|
81
|
-
}
|
|
82
|
-
}, {
|
|
83
|
-
key: "render",
|
|
84
|
-
value: function render() {
|
|
85
|
-
var _this2 = this;
|
|
86
|
-
var label = this.props.label;
|
|
87
|
-
return /*#__PURE__*/_react.default.createElement(_BarChartLegend.Container, null, /*#__PURE__*/_react.default.createElement(_BarChartLegend.Bar, {
|
|
88
|
-
ref: function ref(el) {
|
|
89
|
-
_this2.barEl = el;
|
|
90
|
-
}
|
|
91
|
-
}), /*#__PURE__*/_react.default.createElement(_BarChartLegend.Label, null, label));
|
|
92
|
-
}
|
|
93
|
-
}]);
|
|
94
|
-
return BarChartLegend;
|
|
95
|
-
}(_react.PureComponent);
|
|
96
|
-
exports.BarChartLegend = BarChartLegend;
|
|
97
|
-
BarChartLegend.propTypes = {
|
|
98
|
-
id: _propTypes.default.string.isRequired,
|
|
99
|
-
label: _propTypes.default.string.isRequired,
|
|
100
|
-
colorTheme: _propTypes.default.oneOf(['default', 'red', 'blue'])
|
|
101
|
-
};
|
|
102
|
-
BarChartLegend.defaultProps = {
|
|
103
|
-
colorTheme: 'default'
|
|
104
|
-
};
|
|
105
|
-
var _default = BarChartLegend;
|
|
106
|
-
exports.default = _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Label = exports.Container = exports.Bar = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var Container = _styledComponents.default.div.withConfig({
|
|
11
|
-
displayName: "BarChartLegendstyles__Container",
|
|
12
|
-
componentId: "sc-442fg9-0"
|
|
13
|
-
})(["position:relative;font-size:0;padding:2px 0;"]);
|
|
14
|
-
exports.Container = Container;
|
|
15
|
-
var Bar = _styledComponents.default.div.withConfig({
|
|
16
|
-
displayName: "BarChartLegendstyles__Bar",
|
|
17
|
-
componentId: "sc-442fg9-1"
|
|
18
|
-
})(["z-index:1;position:relative;display:inline-block;vertical-align:middle;width:50px;margin-right:-50px;"]);
|
|
19
|
-
exports.Bar = Bar;
|
|
20
|
-
var Label = _styledComponents.default.div.withConfig({
|
|
21
|
-
displayName: "BarChartLegendstyles__Label",
|
|
22
|
-
componentId: "sc-442fg9-2"
|
|
23
|
-
})(["z-index:0;position:relative;display:inline-block;vertical-align:middle;padding-left:70px;max-width:100%;color:", ";font-size:11px;line-height:16px;"], function (props) {
|
|
24
|
-
return _theme.default.cGrey2;
|
|
25
|
-
});
|
|
26
|
-
exports.Label = Label;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.BasicTable = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _BasicTable = require("./BasicTable.styles");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var BasicTable = function BasicTable(_ref) {
|
|
12
|
-
var data = _ref.data,
|
|
13
|
-
filled = _ref.filled,
|
|
14
|
-
smallPadding = _ref.smallPadding;
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement(_BasicTable.Table, {
|
|
16
|
-
filled: filled
|
|
17
|
-
}, data.map(function (item, itemKey) {
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(_BasicTable.Row, {
|
|
19
|
-
key: item.label,
|
|
20
|
-
smallPadding: smallPadding
|
|
21
|
-
}, /*#__PURE__*/_react.default.createElement(_BasicTable.Label, null, item.label), /*#__PURE__*/_react.default.createElement(_BasicTable.Value, null, item.value, /*#__PURE__*/_react.default.createElement(_BasicTable.Caption, null, item.valueDescription)), item.labelwarning ? /*#__PURE__*/_react.default.createElement(_BasicTable.LabelWarning, null, item.labelwarning) : '');
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
24
|
-
exports.BasicTable = BasicTable;
|
|
25
|
-
BasicTable.propTypes = {
|
|
26
|
-
data: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
27
|
-
label: _propTypes.default.string.isRequired,
|
|
28
|
-
value: _propTypes.default.string.isRequired
|
|
29
|
-
})).isRequired
|
|
30
|
-
};
|
|
31
|
-
var _default = BasicTable;
|
|
32
|
-
exports.default = _default;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.BasicTableSeveral = exports.BasicTableExample = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _BasicTable = _interopRequireDefault(require("./BasicTable"));
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var _default = {
|
|
12
|
-
title: 'Components Library/Basic Table',
|
|
13
|
-
component: _BasicTable.default,
|
|
14
|
-
argTypes: {
|
|
15
|
-
data: {
|
|
16
|
-
type: 'array of shape with two strings',
|
|
17
|
-
required: true,
|
|
18
|
-
defaultValue: [{
|
|
19
|
-
lable: ''
|
|
20
|
-
}]
|
|
21
|
-
},
|
|
22
|
-
filled: {
|
|
23
|
-
defaultValue: ''
|
|
24
|
-
},
|
|
25
|
-
smallPadding: {
|
|
26
|
-
defaultValue: ''
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.default = _default;
|
|
31
|
-
var Template = function Template(args) {
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_BasicTable.default, args));
|
|
33
|
-
};
|
|
34
|
-
var BasicTableExample = Template.bind({});
|
|
35
|
-
exports.BasicTableExample = BasicTableExample;
|
|
36
|
-
BasicTableExample.args = {
|
|
37
|
-
data: [{
|
|
38
|
-
lable: 'table lable',
|
|
39
|
-
value: 'a value'
|
|
40
|
-
}]
|
|
41
|
-
};
|
|
42
|
-
var BasicTableSeveral = Template.bind({});
|
|
43
|
-
exports.BasicTableSeveral = BasicTableSeveral;
|
|
44
|
-
BasicTableSeveral.args = {
|
|
45
|
-
data: [{
|
|
46
|
-
lable: 'table lable',
|
|
47
|
-
value: 'a value'
|
|
48
|
-
}, {
|
|
49
|
-
lable: 'table lable 1',
|
|
50
|
-
value: 'another value'
|
|
51
|
-
}, {
|
|
52
|
-
lable: 'table lable 2',
|
|
53
|
-
value: 'and another'
|
|
54
|
-
}, {
|
|
55
|
-
lable: 'table lable 3',
|
|
56
|
-
value: 'value'
|
|
57
|
-
}]
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
//doublecheck:
|
|
61
|
-
// why is lable not showing?
|
|
62
|
-
// took out {value:''} from default data array
|
|
63
|
-
// because since merge it includes a caption component that breaks SB
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Value = exports.Table = exports.Row = exports.LabelWarning = exports.Label = exports.Caption = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _rwd = _interopRequireDefault(require("styles/rwd"));
|
|
9
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
10
|
-
var _templateObject;
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
var Table = _styledComponents.default.div.withConfig({
|
|
14
|
-
displayName: "BasicTablestyles__Table",
|
|
15
|
-
componentId: "sc-11e8nyz-0"
|
|
16
|
-
})(["display:block;border:1px solid ", ";", ""], function (props) {
|
|
17
|
-
return _theme.default.cLightGrey;
|
|
18
|
-
}, function (props) {
|
|
19
|
-
return props.filled && "\n background: #e1e1e1; //".concat(function (props) {
|
|
20
|
-
return _theme.default.cLightGrey;
|
|
21
|
-
}, ";\n ");
|
|
22
|
-
});
|
|
23
|
-
exports.Table = Table;
|
|
24
|
-
var Row = _styledComponents.default.div.withConfig({
|
|
25
|
-
displayName: "BasicTablestyles__Row",
|
|
26
|
-
componentId: "sc-11e8nyz-1"
|
|
27
|
-
})(["font-size:11px;line-height:24px;letter-spacing:2.1px;text-transform:uppercase;padding:16px 24px;display:block;", " & + &{border-top:1px solid ", ";}&:after{content:'';display:block;width:100%;height:0;clear:both;}", ""], _rwd.default.XLarge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 16px 46px;\n "]))), function (props) {
|
|
28
|
-
return _theme.default.cLightGrey;
|
|
29
|
-
}, function (props) {
|
|
30
|
-
return props.smallPadding && "\n padding: 14px 6px;\n ";
|
|
31
|
-
});
|
|
32
|
-
exports.Row = Row;
|
|
33
|
-
var Label = _styledComponents.default.div.withConfig({
|
|
34
|
-
displayName: "BasicTablestyles__Label",
|
|
35
|
-
componentId: "sc-11e8nyz-2"
|
|
36
|
-
})(["float:left;max-width:50%;text-align:start;"]);
|
|
37
|
-
exports.Label = Label;
|
|
38
|
-
var Value = _styledComponents.default.div.withConfig({
|
|
39
|
-
displayName: "BasicTablestyles__Value",
|
|
40
|
-
componentId: "sc-11e8nyz-3"
|
|
41
|
-
})(["float:right;display:grid;max-width:50%;"]);
|
|
42
|
-
exports.Value = Value;
|
|
43
|
-
var LabelWarning = _styledComponents.default.div.withConfig({
|
|
44
|
-
displayName: "BasicTablestyles__LabelWarning",
|
|
45
|
-
componentId: "sc-11e8nyz-4"
|
|
46
|
-
})(["float:left;text-align:left;width:100%;color:#ee220d;line-height:16px;"]);
|
|
47
|
-
exports.LabelWarning = LabelWarning;
|
|
48
|
-
var Caption = _styledComponents.default.div.withConfig({
|
|
49
|
-
displayName: "BasicTablestyles__Caption",
|
|
50
|
-
componentId: "sc-11e8nyz-5"
|
|
51
|
-
})(["text-transform:initial;font-size:11px;float:right;letter-spacing:0.6px;font-style:italic;"]);
|
|
52
|
-
exports.Caption = Caption;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ButtonSecondary = exports.ButtonNegative = exports.ButtonLong = exports.ButtonDisabled = exports.ButtonDefault = exports.ButtonCenter = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _ButtonContainer = require("../ButtonContainer/ButtonContainer.styles");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
// import { DoubleButtons } from '../DoubleButton/DoubleButton.styles'
|
|
13
|
-
var _default = {
|
|
14
|
-
title: 'Components Library/Buttons/Button',
|
|
15
|
-
component: _Button.default,
|
|
16
|
-
argTypes: {
|
|
17
|
-
secondary: {
|
|
18
|
-
type: 'boolean',
|
|
19
|
-
defaultValue: false
|
|
20
|
-
},
|
|
21
|
-
disabled: {
|
|
22
|
-
type: 'boolean',
|
|
23
|
-
defaultValue: false
|
|
24
|
-
},
|
|
25
|
-
negative: {
|
|
26
|
-
type: 'boolean',
|
|
27
|
-
defaultValue: false
|
|
28
|
-
},
|
|
29
|
-
center: {
|
|
30
|
-
type: 'boolean',
|
|
31
|
-
defaultValue: false
|
|
32
|
-
}
|
|
33
|
-
// outLine: { type: 'boolean', defaultValue: false },
|
|
34
|
-
// marginTop: { type: 'boolean', defaultValue: false },
|
|
35
|
-
// marginRight: { type: 'boolean', defaultValue: false },
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.default = _default;
|
|
39
|
-
var Template = function Template(args) {
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_ButtonContainer.ButtonContainer, null, /*#__PURE__*/_react.default.createElement(_Button.default, args, "Button")));
|
|
41
|
-
};
|
|
42
|
-
var ButtonDefault = Template.bind({});
|
|
43
|
-
exports.ButtonDefault = ButtonDefault;
|
|
44
|
-
ButtonDefault.args = {};
|
|
45
|
-
var ButtonSecondary = Template.bind({});
|
|
46
|
-
exports.ButtonSecondary = ButtonSecondary;
|
|
47
|
-
ButtonSecondary.args = {
|
|
48
|
-
secondary: true
|
|
49
|
-
};
|
|
50
|
-
var ButtonDisabled = Template.bind({});
|
|
51
|
-
exports.ButtonDisabled = ButtonDisabled;
|
|
52
|
-
ButtonDisabled.args = {
|
|
53
|
-
disabled: true
|
|
54
|
-
};
|
|
55
|
-
var ButtonNegative = Template.bind({});
|
|
56
|
-
exports.ButtonNegative = ButtonNegative;
|
|
57
|
-
ButtonNegative.args = {
|
|
58
|
-
negative: true
|
|
59
|
-
};
|
|
60
|
-
var ButtonCenter = Template.bind({});
|
|
61
|
-
exports.ButtonCenter = ButtonCenter;
|
|
62
|
-
ButtonCenter.args = {
|
|
63
|
-
center: true
|
|
64
|
-
};
|
|
65
|
-
var ButtonLong = function ButtonLong(args) {
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_ButtonContainer.ButtonContainer, null, /*#__PURE__*/_react.default.createElement(_Button.default, args, "Much Longer Button Label")));
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// export const DoubleButton = args => (
|
|
70
|
-
// <ComponentWrapper>
|
|
71
|
-
// <DoubleButtons />
|
|
72
|
-
// </ComponentWrapper>
|
|
73
|
-
// )
|
|
74
|
-
|
|
75
|
-
// doublecheck:
|
|
76
|
-
//other props mentioned in Button.styles that are not in propTypes:
|
|
77
|
-
//type, minWidth, fluid, onlyText, outLine, marginTop, isUpdates, isDone..
|
|
78
|
-
// Doublebuttons not showing, cannot find use
|
|
79
|
-
exports.ButtonLong = ButtonLong;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.Button = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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 Button = _styledComponents.default.button.attrs(function (props) {
|
|
17
|
-
return {
|
|
18
|
-
type: props.type || 'button'
|
|
19
|
-
};
|
|
20
|
-
}).withConfig({
|
|
21
|
-
displayName: "Buttonstyles__Button",
|
|
22
|
-
componentId: "sc-1bxw8qq-0"
|
|
23
|
-
})(["display:inline-block;height:auto;min-height:40px;max-width:100%;background-color:", ";border:1px solid ", ";font-weight:bold;font-size:12px;line-height:16px;color:", ";text-transform:uppercase;text-align:center;letter-spacing:2px;border-radius:28px;padding:11px 32px;margin:0;outline:0;vertical-align:baseline;text-shadow:none;user-select:none;cursor:pointer;transition:color .2s,background-color .2s,border-color .2s;", " ", " ", " ", " ", " ", " &:hover,&:focus,&:active{background-color:", ";border-color:", ";color:", ";}", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
24
|
-
return _theme.default.cPrimary;
|
|
25
|
-
}, function (props) {
|
|
26
|
-
return _theme.default.cPrimary;
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return _theme.default.cWhite;
|
|
29
|
-
}, function (_ref) {
|
|
30
|
-
var isUpdates = _ref.isUpdates,
|
|
31
|
-
isCancel = _ref.isCancel;
|
|
32
|
-
return isUpdates && isCancel && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 11px 0;\n margin-left: 32px;\n "])));
|
|
33
|
-
}, function (_ref2) {
|
|
34
|
-
var isUpdates = _ref2.isUpdates,
|
|
35
|
-
isDone = _ref2.isDone;
|
|
36
|
-
return isUpdates && isDone && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: 32px;\n\n @media screen and (max-width: 850px) {\n padding: 11px 20px;\n }\n "])));
|
|
37
|
-
}, function (_ref3) {
|
|
38
|
-
var withMarginBottom = _ref3.withMarginBottom;
|
|
39
|
-
return withMarginBottom && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: 32px;\n "])));
|
|
40
|
-
}, function (props) {
|
|
41
|
-
return props.minWidth && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-width: ", ";\n "])), props.minWidth);
|
|
42
|
-
}, function (props) {
|
|
43
|
-
return props.fluid && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: block;\n width: 100%;\n padding: 11px 12px;\n "])));
|
|
44
|
-
}, function (props) {
|
|
45
|
-
return props.center && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: auto;\n margin-right: auto;\n "])));
|
|
46
|
-
}, function (props) {
|
|
47
|
-
return _theme.default.cPrimaryDark;
|
|
48
|
-
}, function (props) {
|
|
49
|
-
return _theme.default.cPrimaryDark;
|
|
50
|
-
}, function (props) {
|
|
51
|
-
return _theme.default.cWhite;
|
|
52
|
-
}, function (props) {
|
|
53
|
-
return props.secondary && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cWhite, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite);
|
|
54
|
-
}, function (props) {
|
|
55
|
-
return props.onlyText && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border-color: transparent;\n background-color: transparent;\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: transparent;\n border-color: transparent;\n color: ", ";\n }\n "])), _theme.default.cBlack, _theme.default.cPrimary);
|
|
56
|
-
}, function (props) {
|
|
57
|
-
return props.disabled && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n opacity: 0.2;\n cursor: default;\n box-shadow: none !important;\n pointer-events: none !important;\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cBlack, _theme.default.cWhite, _theme.default.cBlack, _theme.default.cPrimary, _theme.default.cPrimary, _theme.default.cWhite);
|
|
58
|
-
}, function (props) {
|
|
59
|
-
return props.negative && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cWarning, _theme.default.cWhite, _theme.default.cWarning, _theme.default.cWhite, _theme.default.cWarningDark, _theme.default.cWarningDark);
|
|
60
|
-
}, function (props) {
|
|
61
|
-
return props.outline && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: transparent;\n color: ", ";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n }\n "])), _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWhite, _theme.default.cWarning);
|
|
62
|
-
}, function (props) {
|
|
63
|
-
return props.marginTop && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-top: ", ";\n "])), props.marginTop);
|
|
64
|
-
}, function (props) {
|
|
65
|
-
return props.marginRight && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-right: ", ";\n "])), props.marginRight);
|
|
66
|
-
}, function (props) {
|
|
67
|
-
return props.isLoginMobile && "\n margin-bottom: 20px;\n width: 163.94px;\n ";
|
|
68
|
-
});
|
|
69
|
-
exports.Button = Button;
|
|
70
|
-
Button.propTypes = {
|
|
71
|
-
secondary: _propTypes.default.bool,
|
|
72
|
-
disabled: _propTypes.default.bool,
|
|
73
|
-
negative: _propTypes.default.bool,
|
|
74
|
-
center: _propTypes.default.bool
|
|
75
|
-
};
|
|
76
|
-
Button.defaultProps = {
|
|
77
|
-
secondary: false,
|
|
78
|
-
disabled: false,
|
|
79
|
-
negative: false,
|
|
80
|
-
center: false
|
|
81
|
-
};
|
|
82
|
-
var _default = Button;
|
|
83
|
-
exports.default = _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ButtonContainer = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _Button = _interopRequireDefault(require("components/Button/Button.styles"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var ButtonContainer = _styledComponents.default.div.withConfig({
|
|
11
|
-
displayName: "ButtonContainerstyles__ButtonContainer",
|
|
12
|
-
componentId: "sc-1no5512-0"
|
|
13
|
-
})(["align-items:center;display:flex;justify-content:center;", " ", "{min-width:150px;max-width:300px;}@media screen and (max-width:767px){flex-direction:column;", "{min-width:150px;max-width:400px;}}"], function (props) {
|
|
14
|
-
return props.flexColumn && "\n flex-direction:column;\n ";
|
|
15
|
-
}, _Button.default, _Button.default);
|
|
16
|
-
exports.ButtonContainer = ButtonContainer;
|
|
17
|
-
var _default = ButtonContainer;
|
|
18
|
-
exports.default = _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.CapitalRaisedSum = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _CaptialRaisedSummary = _interopRequireDefault(require("./CaptialRaisedSummary"));
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
// import Checkbox, { CheckboxPropTypes } from 'components/Checkbox/Checkbox'
|
|
12
|
-
var _default = {
|
|
13
|
-
title: 'Components Library/Capital Raised Summary',
|
|
14
|
-
component: _CaptialRaisedSummary.default,
|
|
15
|
-
argTypes: {
|
|
16
|
-
capital: {
|
|
17
|
-
type: 'number',
|
|
18
|
-
defaultValue: 0,
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
multiProgressBar: {
|
|
22
|
-
type: 'shape',
|
|
23
|
-
defaultValue: {}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.default = _default;
|
|
28
|
-
var Template = function Template(args) {
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_CaptialRaisedSummary.default, args));
|
|
30
|
-
};
|
|
31
|
-
var CapitalRaisedSum = Template.bind({});
|
|
32
|
-
exports.CapitalRaisedSum = CapitalRaisedSum;
|
|
33
|
-
CapitalRaisedSum.args = {
|
|
34
|
-
capital: 150,
|
|
35
|
-
multiProgressBar: {
|
|
36
|
-
backParts: [{
|
|
37
|
-
value: 7,
|
|
38
|
-
label: 'backparts - minumum fill'
|
|
39
|
-
}],
|
|
40
|
-
fillParts: [{
|
|
41
|
-
value: 60,
|
|
42
|
-
label: 'fillparts - maximum fill'
|
|
43
|
-
}]
|
|
44
|
-
}
|
|
45
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.CaptialRaisedSummary = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactCountup = _interopRequireDefault(require("react-countup"));
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var _MultiProgressBar = _interopRequireWildcard(require("components/MultiProgressBar/MultiProgressBar"));
|
|
12
|
-
var _CaptialRaisedSummary = require("./CaptialRaisedSummary.styles");
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
var CaptialRaisedSummary = function CaptialRaisedSummary(_ref) {
|
|
17
|
-
var capital = _ref.capital,
|
|
18
|
-
multiProgressBar = _ref.multiProgressBar;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement(_CaptialRaisedSummary.Wrapper, null, /*#__PURE__*/_react.default.createElement(_CaptialRaisedSummary.Title, null, "CAPITAL RAISED"), /*#__PURE__*/_react.default.createElement(_CaptialRaisedSummary.Amount, null, /*#__PURE__*/_react.default.createElement(_reactCountup.default, {
|
|
20
|
-
end: capital,
|
|
21
|
-
prefix: "\u20AC ",
|
|
22
|
-
duration: 0.01,
|
|
23
|
-
separator: ","
|
|
24
|
-
})), /*#__PURE__*/_react.default.createElement(_MultiProgressBar.default, multiProgressBar));
|
|
25
|
-
};
|
|
26
|
-
exports.CaptialRaisedSummary = CaptialRaisedSummary;
|
|
27
|
-
CaptialRaisedSummary.propTypes = {
|
|
28
|
-
capital: _propTypes.default.number.isRequired,
|
|
29
|
-
multiProgressBar: _propTypes.default.shape(_MultiProgressBar.MultiProgressBarPropTypes).isRequired
|
|
30
|
-
};
|
|
31
|
-
var _default = CaptialRaisedSummary; //MERGE:
|
|
32
|
-
//check IIS for better logic, yet unmerged
|
|
33
|
-
//only IIS is used, so replace, but context is unresolved
|
|
34
|
-
exports.default = _default;
|