@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,223 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "AdminBadgeSvg", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _AdminBadgeSvg.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "CameraSvg", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _CameraSvg.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "CapsLockSvg", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _CapsLockSvg.default;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "DocumentBackSvg", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _DocumentBackSvg.default;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "DocumentSmallSvg", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _DocumentSmallSvg.default;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "DocumentSvg", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _DocumentSvg.default;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "EthSvg", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _EthSvg.default;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "EurSvg", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _EurSvg.default;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "FaceScanIconSvg", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function get() {
|
|
57
|
-
return _FaceScanIconSvg.default;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "FourSvg", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function get() {
|
|
63
|
-
return _FourSvg.default;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "Glassess", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function get() {
|
|
69
|
-
return _Glassess.default;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "LogoSvg", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _LogoSvg.default;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "OneSvg", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _OneSvg.default;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "PassportSvg", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function get() {
|
|
87
|
-
return _PassportSvg.default;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "RefreshSvg", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function get() {
|
|
93
|
-
return _RefreshSvg.default;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, "SocialFacebook", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function get() {
|
|
99
|
-
return _SocialFacebook.default;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "SocialInstagram", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function get() {
|
|
105
|
-
return _SocialInstagram.default;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, "SocialLinkedIn", {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function get() {
|
|
111
|
-
return _SocialLinkedIn.default;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "SocialMedium", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function get() {
|
|
117
|
-
return _SocialMedium.default;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, "SocialReddit", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function get() {
|
|
123
|
-
return _SocialReddit.default;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(exports, "SocialTelegram", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function get() {
|
|
129
|
-
return _SocialTelegram.default;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, "SocialTwitter", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function get() {
|
|
135
|
-
return _SocialTwitter.default;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(exports, "SocialYoutube", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function get() {
|
|
141
|
-
return _SocialYoutube.default;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "ThreeSvg", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function get() {
|
|
147
|
-
return _ThreeSvg.default;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(exports, "TwoSidedDocumentSvg", {
|
|
151
|
-
enumerable: true,
|
|
152
|
-
get: function get() {
|
|
153
|
-
return _TwoSidedDocumentSvg.default;
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(exports, "TwoSvg", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function get() {
|
|
159
|
-
return _TwoSvg.default;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "UpdateDefaultSvg", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function get() {
|
|
165
|
-
return _UpdateDefaultSvg.default;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "UpdateHardSvg", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function get() {
|
|
171
|
-
return _UpdateHardSvg.default;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
Object.defineProperty(exports, "UpdateSoftSvg", {
|
|
175
|
-
enumerable: true,
|
|
176
|
-
get: function get() {
|
|
177
|
-
return _UpdateSoftSvg.default;
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
Object.defineProperty(exports, "UploadSvg", {
|
|
181
|
-
enumerable: true,
|
|
182
|
-
get: function get() {
|
|
183
|
-
return _UploadSvg.default;
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(exports, "VerifiedBadge", {
|
|
187
|
-
enumerable: true,
|
|
188
|
-
get: function get() {
|
|
189
|
-
return _VerifiedBadge.default;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
var _LogoSvg = _interopRequireDefault(require("./LogoSvg"));
|
|
193
|
-
var _CapsLockSvg = _interopRequireDefault(require("./CapsLockSvg"));
|
|
194
|
-
var _EthSvg = _interopRequireDefault(require("./EthSvg"));
|
|
195
|
-
var _EurSvg = _interopRequireDefault(require("./EurSvg"));
|
|
196
|
-
var _DocumentSvg = _interopRequireDefault(require("./DocumentSvg"));
|
|
197
|
-
var _PassportSvg = _interopRequireDefault(require("./PassportSvg"));
|
|
198
|
-
var _TwoSidedDocumentSvg = _interopRequireDefault(require("./TwoSidedDocumentSvg"));
|
|
199
|
-
var _CameraSvg = _interopRequireDefault(require("./CameraSvg"));
|
|
200
|
-
var _UploadSvg = _interopRequireDefault(require("./UploadSvg"));
|
|
201
|
-
var _DocumentBackSvg = _interopRequireDefault(require("./DocumentBackSvg"));
|
|
202
|
-
var _DocumentSmallSvg = _interopRequireDefault(require("./DocumentSmallSvg"));
|
|
203
|
-
var _FaceScanIconSvg = _interopRequireDefault(require("./FaceScanIconSvg"));
|
|
204
|
-
var _RefreshSvg = _interopRequireDefault(require("./RefreshSvg"));
|
|
205
|
-
var _AdminBadgeSvg = _interopRequireDefault(require("./AdminBadgeSvg"));
|
|
206
|
-
var _OneSvg = _interopRequireDefault(require("./OneSvg"));
|
|
207
|
-
var _TwoSvg = _interopRequireDefault(require("./TwoSvg"));
|
|
208
|
-
var _ThreeSvg = _interopRequireDefault(require("./ThreeSvg"));
|
|
209
|
-
var _FourSvg = _interopRequireDefault(require("./FourSvg"));
|
|
210
|
-
var _Glassess = _interopRequireDefault(require("./Glassess"));
|
|
211
|
-
var _VerifiedBadge = _interopRequireDefault(require("./VerifiedBadge"));
|
|
212
|
-
var _SocialFacebook = _interopRequireDefault(require("./SocialFacebook"));
|
|
213
|
-
var _SocialInstagram = _interopRequireDefault(require("./SocialInstagram"));
|
|
214
|
-
var _SocialLinkedIn = _interopRequireDefault(require("./SocialLinkedIn"));
|
|
215
|
-
var _SocialMedium = _interopRequireDefault(require("./SocialMedium"));
|
|
216
|
-
var _SocialReddit = _interopRequireDefault(require("./SocialReddit"));
|
|
217
|
-
var _SocialTelegram = _interopRequireDefault(require("./SocialTelegram"));
|
|
218
|
-
var _SocialTwitter = _interopRequireDefault(require("./SocialTwitter"));
|
|
219
|
-
var _SocialYoutube = _interopRequireDefault(require("./SocialYoutube"));
|
|
220
|
-
var _UpdateDefaultSvg = _interopRequireDefault(require("./UpdateDefaultSvg"));
|
|
221
|
-
var _UpdateSoftSvg = _interopRequireDefault(require("./UpdateSoftSvg"));
|
|
222
|
-
var _UpdateHardSvg = _interopRequireDefault(require("./UpdateHardSvg"));
|
|
223
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,70 +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.Switch = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _Switch = require("./Switch.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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
18
|
-
function _iterableToArrayLimit(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; } }
|
|
19
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
-
var Switch = function Switch(props) {
|
|
21
|
-
var value1 = props.value1,
|
|
22
|
-
value2 = props.value2,
|
|
23
|
-
handleChange = props.handleChange,
|
|
24
|
-
mobile = props.mobile,
|
|
25
|
-
dark = props.dark;
|
|
26
|
-
var _useState = (0, _react.useState)(props.value),
|
|
27
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
-
value = _useState2[0],
|
|
29
|
-
setValue = _useState2[1];
|
|
30
|
-
(0, _react.useEffect)(function () {
|
|
31
|
-
handleChange(value);
|
|
32
|
-
}, [value]);
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_Switch.Container, {
|
|
34
|
-
mobile: mobile
|
|
35
|
-
}, /*#__PURE__*/_react.default.createElement(_Switch.Value, {
|
|
36
|
-
active: value === value1,
|
|
37
|
-
onClick: function onClick() {
|
|
38
|
-
return setValue(value1);
|
|
39
|
-
},
|
|
40
|
-
dark: dark
|
|
41
|
-
}, value1), /*#__PURE__*/_react.default.createElement(_Switch.Indicator, {
|
|
42
|
-
value1: value === value1,
|
|
43
|
-
value2: value === value2,
|
|
44
|
-
onClick: function onClick() {
|
|
45
|
-
return setValue(value === value1 ? value2 : value1);
|
|
46
|
-
},
|
|
47
|
-
dark: dark
|
|
48
|
-
}), /*#__PURE__*/_react.default.createElement(_Switch.Value, {
|
|
49
|
-
active: value === value2,
|
|
50
|
-
onClick: function onClick() {
|
|
51
|
-
return setValue(value2);
|
|
52
|
-
},
|
|
53
|
-
dark: dark
|
|
54
|
-
}, value2));
|
|
55
|
-
};
|
|
56
|
-
exports.Switch = Switch;
|
|
57
|
-
Switch.propTypes = {
|
|
58
|
-
value: _propTypes.default.string.isRequired,
|
|
59
|
-
value1: _propTypes.default.string.isRequired,
|
|
60
|
-
value2: _propTypes.default.string.isRequired,
|
|
61
|
-
handleChange: _propTypes.default.func.isRequired,
|
|
62
|
-
mobile: _propTypes.default.bool,
|
|
63
|
-
dark: _propTypes.default.bool
|
|
64
|
-
};
|
|
65
|
-
Switch.defaultProps = {
|
|
66
|
-
mobile: false,
|
|
67
|
-
dark: false
|
|
68
|
-
};
|
|
69
|
-
var _default = Switch;
|
|
70
|
-
exports.default = _default;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.SwitchMobile = exports.SwitchDefault = exports.SwitchDark = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Switch = _interopRequireDefault(require("./Switch"));
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _addonViewport = require("@storybook/addon-viewport");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var _default = {
|
|
13
|
-
title: 'Components Library/Switch',
|
|
14
|
-
component: _Switch.default,
|
|
15
|
-
argTypes: {
|
|
16
|
-
value: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
value1: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
value2: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
required: true
|
|
27
|
-
},
|
|
28
|
-
handleChange: {
|
|
29
|
-
type: 'function',
|
|
30
|
-
required: true,
|
|
31
|
-
action: 'handleChange'
|
|
32
|
-
},
|
|
33
|
-
mobile: {
|
|
34
|
-
type: 'boolean',
|
|
35
|
-
defaultValue: false
|
|
36
|
-
},
|
|
37
|
-
dark: {
|
|
38
|
-
type: 'boolean',
|
|
39
|
-
defaultValue: false
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
parameters: {
|
|
43
|
-
viewport: {
|
|
44
|
-
viewports: _addonViewport.INITIAL_VIEWPORTS,
|
|
45
|
-
defaultViewport: 'reset viewport'
|
|
46
|
-
},
|
|
47
|
-
backgrounds: {
|
|
48
|
-
default: ''
|
|
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(_Switch.default, args));
|
|
55
|
-
};
|
|
56
|
-
var SwitchDefault = Template.bind({});
|
|
57
|
-
exports.SwitchDefault = SwitchDefault;
|
|
58
|
-
SwitchDefault.args = {};
|
|
59
|
-
var SwitchDark = Template.bind({});
|
|
60
|
-
exports.SwitchDark = SwitchDark;
|
|
61
|
-
SwitchDark.args = {
|
|
62
|
-
value: 'Initial Value',
|
|
63
|
-
value1: 'Click on Value 1',
|
|
64
|
-
value2: 'Click on Value 2',
|
|
65
|
-
dark: true
|
|
66
|
-
};
|
|
67
|
-
SwitchDark.parameters = {
|
|
68
|
-
backgrounds: {
|
|
69
|
-
default: 'black'
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var SwitchMobile = Template.bind({});
|
|
73
|
-
exports.SwitchMobile = SwitchMobile;
|
|
74
|
-
SwitchMobile.args = {
|
|
75
|
-
value: 'Initial Value',
|
|
76
|
-
value1: 'Click on Value 1',
|
|
77
|
-
value2: 'Click on Value 2',
|
|
78
|
-
mobile: true
|
|
79
|
-
};
|
|
80
|
-
SwitchMobile.parameters = {
|
|
81
|
-
viewport: {
|
|
82
|
-
defaultViewport: 'iphonexsmax'
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
//now stories automatically changing to dark and mobile situatons
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Value = exports.Indicator = exports.Container = 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 switchWidth = 34;
|
|
11
|
-
var Container = _styledComponents.default.div.withConfig({
|
|
12
|
-
displayName: "Switchstyles__Container",
|
|
13
|
-
componentId: "sc-1tkcx5j-0"
|
|
14
|
-
})(["display:inline-block;vertical-align:middle;position:relative;font-size:0;text-align:center;", ""], function (props) {
|
|
15
|
-
return props.mobile && "\n display: block;\n margin: 0;\n padding: 18px 0;\n ";
|
|
16
|
-
});
|
|
17
|
-
exports.Container = Container;
|
|
18
|
-
var Value = _styledComponents.default.div.withConfig({
|
|
19
|
-
displayName: "Switchstyles__Value",
|
|
20
|
-
componentId: "sc-1tkcx5j-1"
|
|
21
|
-
})(["display:inline-block;vertical-align:middle;font-size:11px;line-height:16px;letter-spacing:2px;text-transform:uppercase;padding:2px 0;opacity:0.5;color:", ";transition:opacity 0.2s,color 0.2s;cursor:pointer;&:hover{color:", ";}", " ", ";"], function (props) {
|
|
22
|
-
return _theme.default.cBlack;
|
|
23
|
-
}, function (props) {
|
|
24
|
-
return _theme.default.cPrimary;
|
|
25
|
-
}, function (props) {
|
|
26
|
-
return props.active && "\n opacity: 1;\n ";
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return props.dark && "\n color: ".concat(_theme.default.cPrimary, ";\n\n &:hover {\n color: ").concat(_theme.default.cBlack, ";\n }\n ");
|
|
29
|
-
});
|
|
30
|
-
exports.Value = Value;
|
|
31
|
-
var Indicator = _styledComponents.default.button.withConfig({
|
|
32
|
-
displayName: "Switchstyles__Indicator",
|
|
33
|
-
componentId: "sc-1tkcx5j-2"
|
|
34
|
-
})(["display:inline-block;vertical-align:middle;width:", "px;height:16px;border-radius:8px;background-color:", ";margin:0 16px;position:relative;outline:0;cursor:pointer;&:before{content:'';display:block;width:18px;height:18px;position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;border-radius:9px;background-color:", ";transform:translateX(0);transition:transform .2s,background-color .2s;}&:hover{&:before{background-color:", ";}}", " ", " ", ""], switchWidth, function (props) {
|
|
35
|
-
return _theme.default.cGrey;
|
|
36
|
-
}, function (props) {
|
|
37
|
-
return _theme.default.cBlack;
|
|
38
|
-
}, function (props) {
|
|
39
|
-
return _theme.default.cPrimary;
|
|
40
|
-
}, function (props) {
|
|
41
|
-
return props.dark && "\n background-color: ".concat(_theme.default.cGrey2, ";\n\n &:before {\n background-color: ").concat(_theme.default.cPrimary, ";\n }\n\n &:hover {\n &:before {\n background-color: ").concat(_theme.default.cBlack, ";\n }\n }\n ");
|
|
42
|
-
}, function (props) {
|
|
43
|
-
return props.value1 && "\n &:before {\n transform: translateX(-".concat(switchWidth / 2 - 8, "px);\n }\n ");
|
|
44
|
-
}, function (props) {
|
|
45
|
-
return props.value2 && "\n &:before {\n transform: translateX(".concat(switchWidth / 2 - 8, "px);\n }\n ");
|
|
46
|
-
});
|
|
47
|
-
exports.Indicator = Indicator;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "Tab", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _Tabs.Tab;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.default = exports.Tabs = void 0;
|
|
13
|
-
var _react = _interopRequireDefault(require("react"));
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
var _reactTransitionGroup = require("react-transition-group");
|
|
16
|
-
var _Tabs = require("./Tabs.styles");
|
|
17
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
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); }
|
|
19
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
-
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; }
|
|
22
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
-
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); }
|
|
24
|
-
var timeout = 300;
|
|
25
|
-
var getTransitionStyles = {
|
|
26
|
-
entering: {
|
|
27
|
-
position: 'absolute',
|
|
28
|
-
opacity: 0
|
|
29
|
-
},
|
|
30
|
-
entered: {
|
|
31
|
-
transition: "opacity ".concat(timeout, "ms ease-in-out"),
|
|
32
|
-
opacity: 1
|
|
33
|
-
},
|
|
34
|
-
exiting: {
|
|
35
|
-
transition: "opacity ".concat(timeout, "ms ease-in-out"),
|
|
36
|
-
opacity: 0
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var Tabs = function Tabs(_ref) {
|
|
40
|
-
var children = _ref.children,
|
|
41
|
-
activeTab = _ref.activeTab;
|
|
42
|
-
return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.TransitionGroup, {
|
|
43
|
-
component: _Tabs.StyledTabs
|
|
44
|
-
}, _react.default.Children.map(children, function (child) {
|
|
45
|
-
if (child.props.tabId !== activeTab || ! /*#__PURE__*/_react.default.isValidElement(child)) return null;
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.Transition, {
|
|
47
|
-
key: child.props.tabId,
|
|
48
|
-
timeout: {
|
|
49
|
-
enter: timeout,
|
|
50
|
-
exit: timeout
|
|
51
|
-
}
|
|
52
|
-
}, function (status) {
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
54
|
-
style: _objectSpread({
|
|
55
|
-
height: '100%'
|
|
56
|
-
}, getTransitionStyles[status])
|
|
57
|
-
}, child);
|
|
58
|
-
});
|
|
59
|
-
}));
|
|
60
|
-
};
|
|
61
|
-
exports.Tabs = Tabs;
|
|
62
|
-
Tabs.propTypes = {
|
|
63
|
-
children: _propTypes.default.node.isRequired,
|
|
64
|
-
activeTab: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
65
|
-
};
|
|
66
|
-
Tabs.defaultProps = {
|
|
67
|
-
activeTab: 0
|
|
68
|
-
};
|
|
69
|
-
var _default = Tabs;
|
|
70
|
-
exports.default = _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// import React from 'react'
|
|
2
|
-
// import Tabs from './Tabs'
|
|
3
|
-
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
4
|
-
// import { Number } from 'index'
|
|
5
|
-
|
|
6
|
-
// export default {
|
|
7
|
-
// title: 'Components Library/Tabs/Tabs',
|
|
8
|
-
// component: Tabs,
|
|
9
|
-
// argTypes: {
|
|
10
|
-
// children: { type: 'node', defaultValue: [], required: true },
|
|
11
|
-
// activeTab: { type: 'oneOf Number or String', defaultValue: 0 },
|
|
12
|
-
// },
|
|
13
|
-
// }
|
|
14
|
-
|
|
15
|
-
// const Template = args => (
|
|
16
|
-
// <ComponentWrapper>
|
|
17
|
-
// <Tabs {...args} />
|
|
18
|
-
// </ComponentWrapper>
|
|
19
|
-
// )
|
|
20
|
-
|
|
21
|
-
// export const TabsExample = Template.bind({})
|
|
22
|
-
// TabsExample.args = {
|
|
23
|
-
// children: [<Number />, <Number />, <Number />],
|
|
24
|
-
// activeTab: 3,
|
|
25
|
-
// }
|
|
26
|
-
|
|
27
|
-
// //doublecheck:
|
|
28
|
-
// // less visible than in TabNav ( activeTab not showing)
|
|
29
|
-
"use strict";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Tab = exports.StyledTabs = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var StyledTabs = _styledComponents.default.div.withConfig({
|
|
10
|
-
displayName: "Tabsstyles__StyledTabs",
|
|
11
|
-
componentId: "sc-gc1wc-0"
|
|
12
|
-
})(["position:relative;width:100%;"]);
|
|
13
|
-
exports.StyledTabs = StyledTabs;
|
|
14
|
-
var Tab = _styledComponents.default.div.withConfig({
|
|
15
|
-
displayName: "Tabsstyles__Tab",
|
|
16
|
-
componentId: "sc-gc1wc-1"
|
|
17
|
-
})(["position:relative;top:0;left:0;width:100%;"]);
|
|
18
|
-
exports.Tab = Tab;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.TabNav = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _TabsNav = require("./TabsNav.styles");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var TabNav = function TabNav(_ref) {
|
|
12
|
-
var children = _ref.children,
|
|
13
|
-
isActive = _ref.isActive,
|
|
14
|
-
onClick = _ref.onClick;
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement(_TabsNav.StyledTab, {
|
|
16
|
-
onClick: onClick,
|
|
17
|
-
isActive: isActive
|
|
18
|
-
}, /*#__PURE__*/_react.default.createElement(_TabsNav.LinkText, null, children));
|
|
19
|
-
};
|
|
20
|
-
exports.TabNav = TabNav;
|
|
21
|
-
TabNav.propTypes = {
|
|
22
|
-
children: _propTypes.default.node.isRequired,
|
|
23
|
-
isActive: _propTypes.default.bool,
|
|
24
|
-
onClick: _propTypes.default.func
|
|
25
|
-
};
|
|
26
|
-
TabNav.defaultProps = {
|
|
27
|
-
isActive: false,
|
|
28
|
-
onClick: function onClick() {}
|
|
29
|
-
};
|
|
30
|
-
var _default = TabNav;
|
|
31
|
-
exports.default = _default;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.TabNavInactive = exports.TabNavActive = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _TabNav = require("./TabNav");
|
|
9
|
-
var _index = require("index");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var _default = {
|
|
12
|
-
title: 'Components Library/Tabs/TabNav',
|
|
13
|
-
component: _TabNav.TabNav,
|
|
14
|
-
argTypes: {
|
|
15
|
-
children: {
|
|
16
|
-
type: 'node',
|
|
17
|
-
defaultValue: [],
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
isActive: {
|
|
21
|
-
type: 'boolean',
|
|
22
|
-
defaultValue: false
|
|
23
|
-
},
|
|
24
|
-
onClick: {
|
|
25
|
-
type: 'function',
|
|
26
|
-
action: 'onClick'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.default = _default;
|
|
31
|
-
var Template = function Template(args) {
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_TabNav.TabNav, args);
|
|
33
|
-
};
|
|
34
|
-
var TabNavActive = Template.bind({});
|
|
35
|
-
exports.TabNavActive = TabNavActive;
|
|
36
|
-
TabNavActive.args = {
|
|
37
|
-
children: [/*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null)],
|
|
38
|
-
isActive: true
|
|
39
|
-
};
|
|
40
|
-
var TabNavInactive = Template.bind({});
|
|
41
|
-
exports.TabNavInactive = TabNavInactive;
|
|
42
|
-
TabNavInactive.args = {
|
|
43
|
-
children: [/*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null), /*#__PURE__*/_react.default.createElement(_index.Number, null)]
|
|
44
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "TabNav", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _TabNav.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.default = exports.TabsNav = void 0;
|
|
13
|
-
var _react = _interopRequireDefault(require("react"));
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
var _TabsNav = require("./TabsNav.styles");
|
|
16
|
-
var _TabNav = _interopRequireDefault(require("./TabNav"));
|
|
17
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
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); }
|
|
19
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
-
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; }
|
|
22
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
-
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); }
|
|
24
|
-
var TabsNav = function TabsNav(_ref) {
|
|
25
|
-
var children = _ref.children,
|
|
26
|
-
activeTab = _ref.activeTab;
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_TabsNav.StyledTabs, null, /*#__PURE__*/_react.default.createElement(_TabsNav.Scroll, null, /*#__PURE__*/_react.default.createElement(_TabsNav.TabsWrapper, null, _react.default.Children.map(children, function (child) {
|
|
28
|
-
if (! /*#__PURE__*/_react.default.isValidElement(child)) return null;
|
|
29
|
-
return /*#__PURE__*/_react.default.cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {
|
|
30
|
-
isActive: child.props.tabId === activeTab
|
|
31
|
-
}));
|
|
32
|
-
}))));
|
|
33
|
-
};
|
|
34
|
-
exports.TabsNav = TabsNav;
|
|
35
|
-
TabsNav.propTypes = {
|
|
36
|
-
children: _propTypes.default.node.isRequired,
|
|
37
|
-
activeTab: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
38
|
-
};
|
|
39
|
-
TabsNav.defaultProps = {
|
|
40
|
-
activeTab: 0
|
|
41
|
-
};
|
|
42
|
-
var _default = TabsNav;
|
|
43
|
-
exports.default = _default;
|