@stokr/components-library 0.6.5 → 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,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Wrapper = exports.Title = exports.Amount = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
|
|
9
|
-
var _rwd = _interopRequireDefault(require("styles/rwd"));
|
|
10
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
11
|
-
var _templateObject, _templateObject2;
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
14
|
-
var Wrapper = (0, _styledComponents.default)(_ComponentWrapper.default).withConfig({
|
|
15
|
-
displayName: "CaptialRaisedSummarystyles__Wrapper",
|
|
16
|
-
componentId: "sc-1608cnu-0"
|
|
17
|
-
})(["background:", ";display:flex;flex-direction:column;justify-content:center;height:100%;margin-top:-1px;"], function (props) {
|
|
18
|
-
return _theme.default.cPrimary;
|
|
19
|
-
});
|
|
20
|
-
exports.Wrapper = Wrapper;
|
|
21
|
-
var Title = _styledComponents.default.div.withConfig({
|
|
22
|
-
displayName: "CaptialRaisedSummarystyles__Title",
|
|
23
|
-
componentId: "sc-1608cnu-1"
|
|
24
|
-
})(["font-size:11px;line-height:20px;letter-spacing:2px;margin-bottom:14px;color:", ";"], function (props) {
|
|
25
|
-
return _theme.default.cWhite;
|
|
26
|
-
});
|
|
27
|
-
exports.Title = Title;
|
|
28
|
-
var Amount = _styledComponents.default.div.withConfig({
|
|
29
|
-
displayName: "CaptialRaisedSummarystyles__Amount",
|
|
30
|
-
componentId: "sc-1608cnu-2"
|
|
31
|
-
})(["font-size:34px;line-height:40px;font-weight:300;margin-bottom:20px;letter-spacing:2px;color:", ";white-space:nowrap;", " ", ""], function (props) {
|
|
32
|
-
return _theme.default.cWhite;
|
|
33
|
-
}, _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 28px;\n "]))), _rwd.default.Large(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 34px;\n "]))));
|
|
34
|
-
exports.Amount = Amount;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ChartBox = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
|
|
9
|
-
var _Text = _interopRequireDefault(require("components/Text/Text.styles"));
|
|
10
|
-
var _ChartBox = require("./ChartBox.styles");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
// import Select from "components/Input/Select";
|
|
13
|
-
// import DonutChart from "components/DonutChart/DonutChart";
|
|
14
|
-
// import {
|
|
15
|
-
// DonutChartLabel,
|
|
16
|
-
// DonutChartValue,
|
|
17
|
-
// DonutChartInfo,
|
|
18
|
-
// DonutChartTrend
|
|
19
|
-
// } from "components/DonutChart/DonutChart.styles";
|
|
20
|
-
// import ChartLegend from "components/ChartLegend/ChartLegend";
|
|
21
|
-
// import from "components//";
|
|
22
|
-
|
|
23
|
-
// import { Container, Chart, Legend, SelectWrapper } from "./ChartBox.styles";
|
|
24
|
-
|
|
25
|
-
// const example = (
|
|
26
|
-
// <
|
|
27
|
-
// data={[
|
|
28
|
-
// { label: "Token balance", value: "TYK 300" },
|
|
29
|
-
// { label: "Token price", value: "€ 2.50" },
|
|
30
|
-
// { label: "Token value", value: "€ 750" },
|
|
31
|
-
// { label: "Distributions", value: "€ 150" },
|
|
32
|
-
// { label: "ROI", value: "20.0%" }
|
|
33
|
-
// ]}
|
|
34
|
-
// />
|
|
35
|
-
// );
|
|
36
|
-
|
|
37
|
-
var ChartBox = function ChartBox() {
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_ChartBox.Container, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
39
|
-
center: true
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h4", null, "No Investments yet..."))));
|
|
41
|
-
};
|
|
42
|
-
exports.ChartBox = ChartBox;
|
|
43
|
-
var _default = ChartBox;
|
|
44
|
-
exports.default = _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.chartBoxEmpty = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ChartBox = require("./ChartBox");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = {
|
|
11
|
-
title: 'Components Library/Chart Box/Chart Box',
|
|
12
|
-
component: _ChartBox.ChartBox
|
|
13
|
-
};
|
|
14
|
-
exports.default = _default;
|
|
15
|
-
var chartBoxEmpty = function chartBoxEmpty() {
|
|
16
|
-
return /*#__PURE__*/_react.default.createElement(_ChartBox.ChartBox, null);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//ChartBox the component is pretty much commented out
|
|
20
|
-
exports.chartBoxEmpty = chartBoxEmpty;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SelectWrapper = exports.Legend = exports.Container = exports.Chart = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _rwd = _interopRequireDefault(require("styles/rwd"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
var Container = _styledComponents.default.div.withConfig({
|
|
13
|
-
displayName: "ChartBoxstyles__Container",
|
|
14
|
-
componentId: "sc-1h5ta2j-0"
|
|
15
|
-
})(["position:relative;font-size:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 0;text-align:left;width:100%;", " @media screen and (max-width:767px){width:100%;}"], _rwd.default.Medium(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: start;\n padding: 64px 0;\n flex-direction: row;\n "]))));
|
|
16
|
-
exports.Container = Container;
|
|
17
|
-
var Chart = _styledComponents.default.div.withConfig({
|
|
18
|
-
displayName: "ChartBoxstyles__Chart",
|
|
19
|
-
componentId: "sc-1h5ta2j-1"
|
|
20
|
-
})(["display:block;"]);
|
|
21
|
-
exports.Chart = Chart;
|
|
22
|
-
var Legend = _styledComponents.default.div.withConfig({
|
|
23
|
-
displayName: "ChartBoxstyles__Legend",
|
|
24
|
-
componentId: "sc-1h5ta2j-2"
|
|
25
|
-
})(["display:block;width:100%;padding-top:64px;", " ", ""], _rwd.default.Medium(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: auto;\n flex-grow: 1;\n padding-top: 0;\n padding-left: 64px;\n\n ", "\n "])), function (props) {
|
|
26
|
-
return props.spaceTop && "\n padding-top: 104px;\n ";
|
|
27
|
-
}), _rwd.default.Large(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n max-width: 768px;\n "]))));
|
|
28
|
-
exports.Legend = Legend;
|
|
29
|
-
var SelectWrapper = _styledComponents.default.div.withConfig({
|
|
30
|
-
displayName: "ChartBoxstyles__SelectWrapper",
|
|
31
|
-
componentId: "sc-1h5ta2j-3"
|
|
32
|
-
})(["padding-bottom:64px;"]);
|
|
33
|
-
exports.SelectWrapper = SelectWrapper;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ChartBoxDistribution = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ComponentWrapper = _interopRequireDefault(require("components/ComponentWrapper/ComponentWrapper.styles"));
|
|
9
|
-
var _Text = _interopRequireDefault(require("components/Text/Text.styles"));
|
|
10
|
-
var _ChartBox = require("./ChartBox.styles");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
// import Select from 'components/Input/Select';
|
|
13
|
-
// import DonutChart from 'components/DonutChart/DonutChart';
|
|
14
|
-
// import {
|
|
15
|
-
// DonutChartLabel, DonutChartValue,
|
|
16
|
-
// } from 'components/DonutChart/DonutChart.styles';
|
|
17
|
-
// import ChartLegend from 'components/ChartLegend/ChartLegend';
|
|
18
|
-
|
|
19
|
-
// import {
|
|
20
|
-
// Container, Chart, Legend, SelectWrapper,
|
|
21
|
-
// } from './ChartBox.styles';
|
|
22
|
-
|
|
23
|
-
var ChartBoxDistribution = function ChartBoxDistribution() {
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_ChartBox.Container, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
25
|
-
center: true
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h4", null, "No Distributions yet..."))));
|
|
27
|
-
};
|
|
28
|
-
exports.ChartBoxDistribution = ChartBoxDistribution;
|
|
29
|
-
var _default = ChartBoxDistribution;
|
|
30
|
-
exports.default = _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.chartBoxDistributionEmpty = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ChartBoxDistribution = require("./ChartBoxDistribution");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = {
|
|
11
|
-
title: 'Components Library/Chart Box/Chart Box Distribution',
|
|
12
|
-
component: _ChartBoxDistribution.ChartBoxDistribution
|
|
13
|
-
};
|
|
14
|
-
exports.default = _default;
|
|
15
|
-
var chartBoxDistributionEmpty = function chartBoxDistributionEmpty() {
|
|
16
|
-
return /*#__PURE__*/_react.default.createElement(_ChartBoxDistribution.ChartBoxDistribution, null);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//ChartBox the component is pretty much commented out
|
|
20
|
-
//Legend
|
|
21
|
-
exports.chartBoxDistributionEmpty = chartBoxDistributionEmpty;
|
|
@@ -1,62 +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.ChartLegend = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _reactCollapse = require("react-collapse");
|
|
11
|
-
var _ChartLegend = require("./ChartLegend.styles");
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
20
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
-
var ChartLegend = function ChartLegend(props) {
|
|
22
|
-
var data = props.data;
|
|
23
|
-
var _useState = (0, _react.useState)(data.map(function () {
|
|
24
|
-
return false;
|
|
25
|
-
})),
|
|
26
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
-
activeItems = _useState2[0],
|
|
28
|
-
setActiveItems = _useState2[1];
|
|
29
|
-
var toggleItem = function toggleItem(key) {
|
|
30
|
-
var newActiveItems = data.map(function (item, itemKey) {
|
|
31
|
-
return itemKey === key ? !activeItems[itemKey] : activeItems[itemKey];
|
|
32
|
-
});
|
|
33
|
-
setActiveItems(newActiveItems);
|
|
34
|
-
};
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(_ChartLegend.Items, null, data.map(function (item, itemKey) {
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(_ChartLegend.Item, {
|
|
37
|
-
key: item.name
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(_ChartLegend.Head, {
|
|
39
|
-
onClick: function onClick() {
|
|
40
|
-
return toggleItem(itemKey);
|
|
41
|
-
}
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement(_ChartLegend.ColorLabel, {
|
|
43
|
-
itemColor: item.color
|
|
44
|
-
}), /*#__PURE__*/_react.default.createElement(_ChartLegend.NameCol, null, /*#__PURE__*/_react.default.createElement(_ChartLegend.LargeText, null, item.name), /*#__PURE__*/_react.default.createElement(_ChartLegend.SmallText, null, item.subname)), /*#__PURE__*/_react.default.createElement(_ChartLegend.ValueCol, null, /*#__PURE__*/_react.default.createElement(_ChartLegend.LargeText, null, item.value), /*#__PURE__*/_react.default.createElement(_ChartLegend.SmallText, null, item.info)), item.details && /*#__PURE__*/_react.default.createElement(_ChartLegend.Arrow, {
|
|
45
|
-
isOpened: activeItems[itemKey]
|
|
46
|
-
})), item.details && /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
47
|
-
isOpened: activeItems[itemKey]
|
|
48
|
-
}, /*#__PURE__*/_react.default.createElement(_ChartLegend.Body, null, item.details)));
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
exports.ChartLegend = ChartLegend;
|
|
52
|
-
ChartLegend.propTypes = {
|
|
53
|
-
data: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
54
|
-
value: _propTypes.default.number.isRequired,
|
|
55
|
-
name: _propTypes.default.string,
|
|
56
|
-
color: _propTypes.default.string,
|
|
57
|
-
subname: _propTypes.default.string,
|
|
58
|
-
info: _propTypes.default.string
|
|
59
|
-
})).isRequired
|
|
60
|
-
};
|
|
61
|
-
var _default = ChartLegend;
|
|
62
|
-
exports.default = _default;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ChartLegendFull = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ChartLegend = require("./ChartLegend");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _BasicTable = _interopRequireDefault(require("components/BasicTable/BasicTable"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var _default = {
|
|
13
|
-
title: 'Components Library/Chart Legend',
|
|
14
|
-
component: _ChartLegend.ChartLegend,
|
|
15
|
-
argTypes: {
|
|
16
|
-
data: {
|
|
17
|
-
type: 'array',
|
|
18
|
-
defaultValue: [{
|
|
19
|
-
value: 0
|
|
20
|
-
}, {
|
|
21
|
-
name: ''
|
|
22
|
-
}, {
|
|
23
|
-
color: ''
|
|
24
|
-
}, {
|
|
25
|
-
subname: ''
|
|
26
|
-
}, {
|
|
27
|
-
info: ''
|
|
28
|
-
}],
|
|
29
|
-
required: true
|
|
30
|
-
},
|
|
31
|
-
value: {
|
|
32
|
-
type: 'number',
|
|
33
|
-
required: true
|
|
34
|
-
},
|
|
35
|
-
name: {
|
|
36
|
-
type: 'string'
|
|
37
|
-
},
|
|
38
|
-
color: {
|
|
39
|
-
type: 'string',
|
|
40
|
-
defaultValue: ''
|
|
41
|
-
},
|
|
42
|
-
subname: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
defaultValue: ''
|
|
45
|
-
},
|
|
46
|
-
info: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
defaultValue: ''
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
exports.default = _default;
|
|
53
|
-
var Template = function Template(args) {
|
|
54
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_ChartLegend.ChartLegend, args));
|
|
55
|
-
};
|
|
56
|
-
var Table = function Table(balance, symbol, price, address, link, label) {
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(_BasicTable.default, {
|
|
58
|
-
data: [{
|
|
59
|
-
label: 'Token balance',
|
|
60
|
-
value: balance.toString()
|
|
61
|
-
}, {
|
|
62
|
-
label: 'Token price',
|
|
63
|
-
value: "".concat(symbol, " ").concat(price.toFixed(2))
|
|
64
|
-
}, {
|
|
65
|
-
label: 'Token value',
|
|
66
|
-
value: "".concat(symbol, " ").concat((balance * price).toFixed(2))
|
|
67
|
-
}, {
|
|
68
|
-
label: label,
|
|
69
|
-
value: address,
|
|
70
|
-
isLink: true,
|
|
71
|
-
link: link
|
|
72
|
-
}]
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
var ChartLegendFull = Template.bind({});
|
|
76
|
-
exports.ChartLegendFull = ChartLegendFull;
|
|
77
|
-
ChartLegendFull.args = {
|
|
78
|
-
data: [{
|
|
79
|
-
value: 1560,
|
|
80
|
-
name: 'Name',
|
|
81
|
-
color: 'red',
|
|
82
|
-
subname: 'Sub Name',
|
|
83
|
-
info: 'information',
|
|
84
|
-
price: 10000,
|
|
85
|
-
details: Table(1560, 'USD', 10000, 'some link', 'some label')
|
|
86
|
-
}]
|
|
87
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ValueCol = exports.SmallText = exports.NameCol = exports.LargeText = exports.Items = exports.Item = exports.Head = exports.ColorLabel = exports.Body = exports.Arrow = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var Items = _styledComponents.default.div.withConfig({
|
|
10
|
-
displayName: "ChartLegendstyles__Items",
|
|
11
|
-
componentId: "sc-gh1vwu-0"
|
|
12
|
-
})(["display:block;margin:-16px 0;"]);
|
|
13
|
-
exports.Items = Items;
|
|
14
|
-
var Item = _styledComponents.default.div.withConfig({
|
|
15
|
-
displayName: "ChartLegendstyles__Item",
|
|
16
|
-
componentId: "sc-gh1vwu-1"
|
|
17
|
-
})(["padding:16px 0;"]);
|
|
18
|
-
exports.Item = Item;
|
|
19
|
-
var Head = _styledComponents.default.div.withConfig({
|
|
20
|
-
displayName: "ChartLegendstyles__Head",
|
|
21
|
-
componentId: "sc-gh1vwu-2"
|
|
22
|
-
})(["cursor:pointer;position:relative;font-size:0;padding:0 46px;"]);
|
|
23
|
-
exports.Head = Head;
|
|
24
|
-
var Body = _styledComponents.default.div.withConfig({
|
|
25
|
-
displayName: "ChartLegendstyles__Body",
|
|
26
|
-
componentId: "sc-gh1vwu-3"
|
|
27
|
-
})(["padding:18px 0;"]);
|
|
28
|
-
exports.Body = Body;
|
|
29
|
-
var ColorLabel = _styledComponents.default.div.withConfig({
|
|
30
|
-
displayName: "ChartLegendstyles__ColorLabel",
|
|
31
|
-
componentId: "sc-gh1vwu-4"
|
|
32
|
-
})(["display:block;width:28px;height:28px;background-color:", ";position:absolute;top:0;left:0;"], function (props) {
|
|
33
|
-
return props.itemColor;
|
|
34
|
-
});
|
|
35
|
-
exports.ColorLabel = ColorLabel;
|
|
36
|
-
var NameCol = _styledComponents.default.div.withConfig({
|
|
37
|
-
displayName: "ChartLegendstyles__NameCol",
|
|
38
|
-
componentId: "sc-gh1vwu-5"
|
|
39
|
-
})(["width:50%;display:inline-block;vertical-align:top;"]);
|
|
40
|
-
exports.NameCol = NameCol;
|
|
41
|
-
var ValueCol = _styledComponents.default.div.withConfig({
|
|
42
|
-
displayName: "ChartLegendstyles__ValueCol",
|
|
43
|
-
componentId: "sc-gh1vwu-6"
|
|
44
|
-
})(["width:50%;display:inline-block;vertical-align:top;"]);
|
|
45
|
-
exports.ValueCol = ValueCol;
|
|
46
|
-
var LargeText = _styledComponents.default.div.withConfig({
|
|
47
|
-
displayName: "ChartLegendstyles__LargeText",
|
|
48
|
-
componentId: "sc-gh1vwu-7"
|
|
49
|
-
})(["font-weight:300;font-size:22px;line-height:28px;"]);
|
|
50
|
-
exports.LargeText = LargeText;
|
|
51
|
-
var SmallText = _styledComponents.default.div.withConfig({
|
|
52
|
-
displayName: "ChartLegendstyles__SmallText",
|
|
53
|
-
componentId: "sc-gh1vwu-8"
|
|
54
|
-
})(["font-size:11px;line-height:12px;margin-top:4px;font-style:italic;"]);
|
|
55
|
-
exports.SmallText = SmallText;
|
|
56
|
-
var Arrow = _styledComponents.default.i.attrs({
|
|
57
|
-
className: 'ion ion-ios-arrow-down'
|
|
58
|
-
}).withConfig({
|
|
59
|
-
displayName: "ChartLegendstyles__Arrow",
|
|
60
|
-
componentId: "sc-gh1vwu-9"
|
|
61
|
-
})(["&&&{position:absolute;top:14px;right:24px;transition:0.3s transform;transform:rotate(0);text-align:center;font-size:16px;line-height:16px;height:16px;margin-top:-8px;", "}"], function (props) {
|
|
62
|
-
return props.isOpened && "\n transform: rotate(180deg);\n ";
|
|
63
|
-
});
|
|
64
|
-
exports.Arrow = Arrow;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.CheckboxPropTypes = exports.Checkbox = exports.CheckBoxCaption = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _Checkbox = require("./Checkbox.styles");
|
|
11
|
-
var _excluded = ["id", "name", "text", "label", "value", "checked", "large", "error", "touched", "onChange", "onBlur", "onFocus", "textStyle", "isTerms", "disabled", "onTermsClicked", "onClick"];
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
-
var TermsStyled = _styledComponents.default.span.withConfig({
|
|
17
|
-
displayName: "Checkbox__TermsStyled",
|
|
18
|
-
componentId: "sc-knu01c-0"
|
|
19
|
-
})(["cursor:pointer;font-size:12px;text-decoration:underline;&:hover{opacity:0.7;}"]);
|
|
20
|
-
var CheckBoxCaption = _styledComponents.default.div.withConfig({
|
|
21
|
-
displayName: "Checkbox__CheckBoxCaption",
|
|
22
|
-
componentId: "sc-knu01c-1"
|
|
23
|
-
})(["padding-top:12px;letter-spacing:0.4px;font-size:11px;font-weight:400;"]);
|
|
24
|
-
exports.CheckBoxCaption = CheckBoxCaption;
|
|
25
|
-
var Terms = function Terms(_ref) {
|
|
26
|
-
var onTermsClicked = _ref.onTermsClicked;
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(TermsStyled, {
|
|
28
|
-
onClick: function onClick(e) {
|
|
29
|
-
e.stopPropagation();
|
|
30
|
-
e.preventDefault();
|
|
31
|
-
onTermsClicked();
|
|
32
|
-
}
|
|
33
|
-
}, "Terms of Use");
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// TODO: Refactor
|
|
37
|
-
|
|
38
|
-
var Checkbox = function Checkbox(_ref2) {
|
|
39
|
-
var id = _ref2.id,
|
|
40
|
-
name = _ref2.name,
|
|
41
|
-
text = _ref2.text,
|
|
42
|
-
label = _ref2.label,
|
|
43
|
-
value = _ref2.value,
|
|
44
|
-
checked = _ref2.checked,
|
|
45
|
-
large = _ref2.large,
|
|
46
|
-
error = _ref2.error,
|
|
47
|
-
touched = _ref2.touched,
|
|
48
|
-
onChange = _ref2.onChange,
|
|
49
|
-
onBlur = _ref2.onBlur,
|
|
50
|
-
onFocus = _ref2.onFocus,
|
|
51
|
-
textStyle = _ref2.textStyle,
|
|
52
|
-
isTerms = _ref2.isTerms,
|
|
53
|
-
disabled = _ref2.disabled,
|
|
54
|
-
onTermsClicked = _ref2.onTermsClicked,
|
|
55
|
-
onClick = _ref2.onClick,
|
|
56
|
-
props = _objectWithoutProperties(_ref2, _excluded);
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(_Checkbox.Wrapper, null, label && /*#__PURE__*/_react.default.createElement(_Checkbox.Label, {
|
|
58
|
-
error: error && touched,
|
|
59
|
-
htmlFor: id
|
|
60
|
-
}, label), /*#__PURE__*/_react.default.createElement(_Checkbox.Input, {
|
|
61
|
-
error: error,
|
|
62
|
-
large: large,
|
|
63
|
-
disabled: disabled
|
|
64
|
-
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
65
|
-
type: "checkbox",
|
|
66
|
-
id: id,
|
|
67
|
-
name: name || id,
|
|
68
|
-
value: value,
|
|
69
|
-
checked: checked,
|
|
70
|
-
onChange: onChange,
|
|
71
|
-
onBlur: onBlur,
|
|
72
|
-
disabled: disabled,
|
|
73
|
-
onFocus: onFocus,
|
|
74
|
-
onClick: onClick
|
|
75
|
-
}, props)), /*#__PURE__*/_react.default.createElement("label", {
|
|
76
|
-
htmlFor: id,
|
|
77
|
-
style: textStyle
|
|
78
|
-
}, text, isTerms && /*#__PURE__*/_react.default.createElement(Terms, {
|
|
79
|
-
onTermsClicked: onTermsClicked,
|
|
80
|
-
onclick: "event.stopPropagation();"
|
|
81
|
-
}))));
|
|
82
|
-
};
|
|
83
|
-
exports.Checkbox = Checkbox;
|
|
84
|
-
var CheckboxPropTypes = {
|
|
85
|
-
id: _propTypes.default.string.isRequired,
|
|
86
|
-
name: _propTypes.default.string,
|
|
87
|
-
text: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]),
|
|
88
|
-
label: _propTypes.default.string,
|
|
89
|
-
value: _propTypes.default.string,
|
|
90
|
-
checked: _propTypes.default.bool,
|
|
91
|
-
large: _propTypes.default.bool,
|
|
92
|
-
error: _propTypes.default.bool,
|
|
93
|
-
touched: _propTypes.default.bool,
|
|
94
|
-
onChange: _propTypes.default.func,
|
|
95
|
-
onBlur: _propTypes.default.func,
|
|
96
|
-
onFocus: _propTypes.default.func,
|
|
97
|
-
textStyle: _propTypes.default.object
|
|
98
|
-
};
|
|
99
|
-
exports.CheckboxPropTypes = CheckboxPropTypes;
|
|
100
|
-
Checkbox.propTypes = CheckboxPropTypes;
|
|
101
|
-
Checkbox.defaultProps = {
|
|
102
|
-
name: '',
|
|
103
|
-
text: '',
|
|
104
|
-
label: '',
|
|
105
|
-
value: '',
|
|
106
|
-
checked: false,
|
|
107
|
-
large: false,
|
|
108
|
-
error: false,
|
|
109
|
-
touched: false,
|
|
110
|
-
onChange: function onChange() {},
|
|
111
|
-
onBlur: function onBlur() {},
|
|
112
|
-
onFocus: function onFocus() {},
|
|
113
|
-
textStyle: {}
|
|
114
|
-
};
|
|
115
|
-
var _default = Checkbox;
|
|
116
|
-
exports.default = _default;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.CheckboxUnchecked = exports.CheckboxChecked = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Checkbox = require("./Checkbox");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
// import { Wrapper, Label, InputWrap } from './Input.styles'
|
|
12
|
-
// import { useState } from 'react'
|
|
13
|
-
var _default = {
|
|
14
|
-
title: 'Components Library/Checkbox',
|
|
15
|
-
component: _Checkbox.Checkbox,
|
|
16
|
-
argTypes: {
|
|
17
|
-
id: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
name: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
text: {
|
|
26
|
-
control: {
|
|
27
|
-
type: 'object'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
label: {
|
|
31
|
-
type: 'string',
|
|
32
|
-
defaultValue: ''
|
|
33
|
-
},
|
|
34
|
-
value: {
|
|
35
|
-
type: 'string'
|
|
36
|
-
},
|
|
37
|
-
checked: {
|
|
38
|
-
type: 'boolean',
|
|
39
|
-
defaultValue: false
|
|
40
|
-
},
|
|
41
|
-
large: {
|
|
42
|
-
type: 'boolean',
|
|
43
|
-
defaultValue: false
|
|
44
|
-
},
|
|
45
|
-
error: {
|
|
46
|
-
type: 'boolean',
|
|
47
|
-
defaultValue: false
|
|
48
|
-
},
|
|
49
|
-
touched: {
|
|
50
|
-
type: 'boolean',
|
|
51
|
-
defaultValue: false
|
|
52
|
-
},
|
|
53
|
-
disabled: {
|
|
54
|
-
type: 'boolean',
|
|
55
|
-
defaultValue: false
|
|
56
|
-
},
|
|
57
|
-
onChange: {
|
|
58
|
-
type: 'function',
|
|
59
|
-
action: 'onChange'
|
|
60
|
-
},
|
|
61
|
-
onClick: {
|
|
62
|
-
type: 'function',
|
|
63
|
-
action: 'onClick'
|
|
64
|
-
},
|
|
65
|
-
onBlur: {
|
|
66
|
-
type: 'function',
|
|
67
|
-
action: 'onBlur'
|
|
68
|
-
},
|
|
69
|
-
onFocus: {
|
|
70
|
-
type: 'function',
|
|
71
|
-
action: 'onFocus'
|
|
72
|
-
},
|
|
73
|
-
textStyle: {
|
|
74
|
-
type: 'object'
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
exports.default = _default;
|
|
79
|
-
var Template = function Template(args) {
|
|
80
|
-
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_Checkbox.Checkbox, args));
|
|
81
|
-
};
|
|
82
|
-
var CheckboxUnchecked = Template.bind({});
|
|
83
|
-
exports.CheckboxUnchecked = CheckboxUnchecked;
|
|
84
|
-
CheckboxUnchecked.args = {
|
|
85
|
-
label: 'A Label'
|
|
86
|
-
};
|
|
87
|
-
var CheckboxChecked = Template.bind({});
|
|
88
|
-
exports.CheckboxChecked = CheckboxChecked;
|
|
89
|
-
CheckboxChecked.args = {
|
|
90
|
-
label: 'A Label',
|
|
91
|
-
checked: true
|
|
92
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Wrapper = exports.Label = exports.Input = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _Input = require("components/Input/Input.styles");
|
|
9
|
-
var _theme = _interopRequireDefault(require("styles/theme"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var Wrapper = _styledComponents.default.div.withConfig({
|
|
12
|
-
displayName: "Checkboxstyles__Wrapper",
|
|
13
|
-
componentId: "sc-1drozoj-0"
|
|
14
|
-
})(["position:relative;display:block;"]);
|
|
15
|
-
exports.Wrapper = Wrapper;
|
|
16
|
-
var Label = (0, _styledComponents.default)(_Input.Label).withConfig({
|
|
17
|
-
displayName: "Checkboxstyles__Label",
|
|
18
|
-
componentId: "sc-1drozoj-1"
|
|
19
|
-
})(["position:relative;top:0;transform:none;font-size:10px;margin-bottom:5px;"]);
|
|
20
|
-
exports.Label = Label;
|
|
21
|
-
var Input = _styledComponents.default.div.withConfig({
|
|
22
|
-
displayName: "Checkboxstyles__Input",
|
|
23
|
-
componentId: "sc-1drozoj-2"
|
|
24
|
-
})(["position:relative;& > input{z-index:-1;position:absolute;top:4px;left:4px;display:block;width:1px;height:0;opacity:0;border:0;& + label{position:relative;display:inline-block;max-width:100%;padding-left:28px;font-family:'Open Sans';font-size:12px;line-height:16px;font-weight:300;letter-spacing:0.4px;cursor:pointer;", ";&:before,&:after{display:block;position:absolute;}&:before{content:'';top:0;left:0;width:16px;height:16px;border-radius:3px;border:1px solid #9b9b9b;box-shadow:none;transition:border-color 0.2s;", " ", "}&:after{content:'\\f3ff';font-family:'Ionicons';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;top:3px;left:3px;width:10px;height:10px;font-size:22px;line-height:10px;text-align:center;color:transparent;", ";}}&:focus + label,&:hover + label{&:before{border-color:", ";}}&:checked + label{&:after{color:", ";}}}"], function (props) {
|
|
25
|
-
return props.error && "color: ".concat(_theme.default.cWarning);
|
|
26
|
-
}, function (props) {
|
|
27
|
-
return props.large && "\n width: 20px;\n height: 20px;\n border-radius: 4px;\n ";
|
|
28
|
-
}, function (props) {
|
|
29
|
-
return props.disabled && "\n background-color: #9b9b9b30;\n\n ";
|
|
30
|
-
}, function (props) {
|
|
31
|
-
return props.large && "\n top: 0;\n left: 0;\n width: 20px;\n height: 20px;\n font-size: 34px;\n line-height: 20px;\n ";
|
|
32
|
-
}, function (props) {
|
|
33
|
-
return props.disabled ? 'none' : _theme.default.cPrimary;
|
|
34
|
-
}, function (props) {
|
|
35
|
-
return _theme.default.cPrimary;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
// IIS had minor differences - leaving out of merge. lighter checkbox border, more margin
|
|
39
|
-
// IIS Input & + label
|
|
40
|
-
// font-size: 16px;
|
|
41
|
-
// line-height: 22px;
|
|
42
|
-
// border: 1px solid ${theme.cGrey}
|
|
43
|
-
// &:before + &:after
|
|
44
|
-
// margin-top: 3px;
|
|
45
|
-
exports.Input = Input;
|