@rabbitio/ui-kit 1.0.0-beta.12 → 1.0.0-beta.121
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/.env.example +1 -0
- package/.gitlab-ci.yml +29 -0
- package/.husky/commit-msg +19 -0
- package/.husky/pre-push +1 -0
- package/README.md +14 -4
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +19749 -0
- package/coverage/coverage-final.json +122 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +1001 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/rabbit-ui-kit/index.html +116 -0
- package/coverage/rabbit-ui-kit/index.js.html +88 -0
- package/coverage/rabbit-ui-kit/src/common-apis/adapters/analyticsAdapters/googleAnalyticsAdapter.js.html +151 -0
- package/coverage/rabbit-ui-kit/src/common-apis/adapters/analyticsAdapters/index.html +146 -0
- package/coverage/rabbit-ui-kit/src/common-apis/adapters/analyticsAdapters/metrikaAdapter.js.html +172 -0
- package/coverage/rabbit-ui-kit/src/common-apis/adapters/analyticsAdapters/mixpanelAdapter.js.html +199 -0
- package/coverage/rabbit-ui-kit/src/common-apis/adapters/axiosAdapter.js.html +190 -0
- package/coverage/rabbit-ui-kit/src/common-apis/adapters/index.html +131 -0
- package/coverage/rabbit-ui-kit/src/common-apis/adapters/qrUtils.js.html +139 -0
- package/coverage/rabbit-ui-kit/src/common-apis/external-apis/apiGroups.js.html +253 -0
- package/coverage/rabbit-ui-kit/src/common-apis/external-apis/emailAPI.js.html +133 -0
- package/coverage/rabbit-ui-kit/src/common-apis/external-apis/index.html +146 -0
- package/coverage/rabbit-ui-kit/src/common-apis/external-apis/ipAddressProviders.js.html +391 -0
- package/coverage/rabbit-ui-kit/src/common-apis/globalConstants.jsx.html +94 -0
- package/coverage/rabbit-ui-kit/src/common-apis/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/common-apis/models/blockchain.js.html +115 -0
- package/coverage/rabbit-ui-kit/src/common-apis/models/coin.js.html +829 -0
- package/coverage/rabbit-ui-kit/src/common-apis/models/index.html +146 -0
- package/coverage/rabbit-ui-kit/src/common-apis/models/protocol.js.html +100 -0
- package/coverage/rabbit-ui-kit/src/common-apis/services/fiatCurrenciesService.js.html +544 -0
- package/coverage/rabbit-ui-kit/src/common-apis/services/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/amountUtils.js.html +1234 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/cache.js.html +811 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/errorUtils.js.html +211 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/index.html +191 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/logging/index.html +131 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/logging/logger.js.html +211 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/logging/logsStorage.js.html +268 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/postponeExecution.js.html +118 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/rabbitTicker.js.html +157 -0
- package/coverage/rabbit-ui-kit/src/common-apis/utils/safeStringify.js.html +235 -0
- package/coverage/rabbit-ui-kit/src/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/index.js.html +388 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/cacheAndConcurrentRequestsResolver.js.html +1660 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/cachedRobustExternalApiCallerService.js.html +526 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/cancelProcessing.js.html +172 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/concurrentCalculationsMetadataHolder.js.html +310 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/externalApiProvider.js.html +553 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/externalServicesStatsCollector.js.html +319 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/index.html +206 -0
- package/coverage/rabbit-ui-kit/src/robust-api-caller/robustExternalAPICallerService.js.html +997 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/changeHeroSwapProvider.js.html +2800 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/changeNowSwapProvider.js.html +2644 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/exolixSwapProvider.js.html +1942 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/goexmeSwapProvider.js.html +2389 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/index.html +236 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/letsExchangeSwapProvider.js.html +1666 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/retriableErrorsUtils.js.html +274 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +1888 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +1981 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/utils.js.html +163 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/baseSwapCreationInfo.js.html +319 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwap.js.html +514 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwapWithFiatData.js.html +529 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/index.html +176 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/partner.js.html +166 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/models/swapProviderCoinInfo.js.html +337 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/services/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/services/publicSwapService.js.html +1654 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/utils/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/swaps-lib/utils/swapUtils.js.html +706 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/arrowIcon.jsx.html +124 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/arrowTosca.jsx.html +127 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/arrowWhite.jsx.html +127 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/darkRectangle.jsx.html +106 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/determinedError.jsx.html +439 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/failedValidationIcon.jsx.html +202 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/index.html +281 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/infoIcon.jsx.html +133 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/messageIcon.jsx.html +346 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/noticeQuestionIcon.jsx.html +247 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/successfulValidationIcon.jsx.html +163 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/supportDialogImage.jsx.html +268 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/assets/wrappedImages/walletIcon.jsx.html +151 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/AssetIcon/AssetIcon.jsx.html +256 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/AssetIcon/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/AssetSelection/AssetSelection.jsx.html +289 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/AssetSelection/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/BackgroundTitle/BackgroundTitle.jsx.html +187 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/BackgroundTitle/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/InformationMessage/InformationMessage.jsx.html +238 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/InformationMessage/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Input/Input.jsx.html +634 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Input/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/LoadingDots/LoadingDots.jsx.html +196 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/LoadingDots/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/NoticeIcon/NoticeIcon.jsx.html +277 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/NoticeIcon/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/QrCode/QrCode.jsx.html +199 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/QrCode/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/RateSelector/RateSelector.jsx.html +175 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/RateSelector/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/SupportChat/SupportChat.jsx.html +217 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/SupportChat/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Textarea/Textarea.jsx.html +529 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Textarea/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/TitleBox/TitleBox.jsx.html +508 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/TitleBox/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Tooltip/Tooltip.jsx.html +316 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Tooltip/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/TwoLinesOfText/LinesOfText.jsx.html +313 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/TwoLinesOfText/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Validation/Validation.jsx.html +202 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Validation/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/Button/Button.jsx.html +733 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/Button/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/Close/Close.jsx.html +259 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/Close/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/LinkButton/LinkButton.jsx.html +433 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/LinkButton/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +415 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/RadioButtonWithText/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/AmountInput/AmountInput.jsx.html +1429 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/AmountInput/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/CoinPicker/CoinPicker.jsx.html +1474 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/CoinPicker/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/ColoredNotice/ColoredNotice.jsx.html +241 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/ColoredNotice/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/LineWithIconLink/LineWithIconLink.jsx.html +190 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/LineWithIconLink/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/LogoCarousel/LogoCarousel.jsx.html +307 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/LogoCarousel/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/SearchableCoinsList/SearchableCoinsList.jsx.html +427 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/SearchableCoinsList/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +181 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/TitledLineWithIconLink/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +283 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/CoinPickerDialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/Dialog.jsx.html +1567 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +481 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/DialogButtons/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/DialogStep/DialogStep.jsx.html +1747 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx.html +4375 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/SwapForm/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/WaitlistSubscription/WaitlistSubscription.jsx.html +559 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/WaitlistSubscription/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +316 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/components/templates/DeterminedErrorDialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/hooks/index.html +146 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/hooks/useCallHandlingErrors.js.html +166 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/hooks/useIsHydrated.js.html +121 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/hooks/useReferredState.js.html +157 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/utils/index.html +176 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/utils/inputValueProviders.js.html +235 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/utils/searchCoins.js.html +259 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/utils/textUtils.js.html +139 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/utils/uiUtils.js.html +121 -0
- package/coverage/rabbit-ui-kit/src/ui-kit/utils/urlQueryUtils.js.html +271 -0
- package/coverage/rabbit-ui-kit/stories/atoms/BackgroundTitle.stories.jsx.html +202 -0
- package/coverage/rabbit-ui-kit/stories/atoms/LinesOfText.stories.jsx.html +283 -0
- package/coverage/rabbit-ui-kit/stories/atoms/LoadingDots.stories.jsx.html +226 -0
- package/coverage/rabbit-ui-kit/stories/atoms/QrCode.stories.jsx.html +175 -0
- package/coverage/rabbit-ui-kit/stories/atoms/RateSelector.stories.jsx.html +136 -0
- package/coverage/rabbit-ui-kit/stories/atoms/Validation.stories.jsx.html +178 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/Button.stories.jsx.html +883 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/Close.stories.jsx.html +211 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/LinkButton.stories.jsx.html +301 -0
- package/coverage/rabbit-ui-kit/stories/atoms/buttons/index.html +146 -0
- package/coverage/rabbit-ui-kit/stories/atoms/index.html +191 -0
- package/coverage/rabbit-ui-kit/stories/molecules/AmountInput.stories.jsx.html +289 -0
- package/coverage/rabbit-ui-kit/stories/molecules/CoinPicker.stories.jsx.html +322 -0
- package/coverage/rabbit-ui-kit/stories/molecules/ColoredNotice.stories.jsx.html +178 -0
- package/coverage/rabbit-ui-kit/stories/molecules/LineWithIconLink.stories.jsx.html +154 -0
- package/coverage/rabbit-ui-kit/stories/molecules/LogoCarousel.stories.jsx.html +235 -0
- package/coverage/rabbit-ui-kit/stories/molecules/TitledLineWithIconLink.stories.jsx.html +160 -0
- package/coverage/rabbit-ui-kit/stories/molecules/index.html +191 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/Dialog.stories.jsx.html +523 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +328 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +337 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/organisms/Dialog/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/organisms/WaitlistSubscription.stories.jsx.html +151 -0
- package/coverage/rabbit-ui-kit/stories/organisms/index.html +116 -0
- package/coverage/rabbit-ui-kit/stories/stubs/coins.jsx.html +6880 -0
- package/coverage/rabbit-ui-kit/stories/stubs/exampleContent.jsx.html +145 -0
- package/coverage/rabbit-ui-kit/stories/stubs/index.html +131 -0
- package/coverage/rabbit-ui-kit/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +190 -0
- package/coverage/rabbit-ui-kit/stories/templates/index.html +116 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/dist/global.css +197 -0
- package/dist/global.css.map +1 -0
- package/dist/index.cjs +15089 -1593
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2352 -8493
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +11801 -1298
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +15003 -1594
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +15081 -1596
- package/dist/index.umd.js.map +1 -1
- package/package.json +35 -9
- package/raw +1000 -0
- package/src/common-apis/adapters/analyticsAdapters/googleAnalyticsAdapter.js +22 -0
- package/src/common-apis/adapters/analyticsAdapters/metrikaAdapter.js +29 -0
- package/src/common-apis/adapters/analyticsAdapters/mixpanelAdapter.js +38 -0
- package/src/common-apis/adapters/axiosAdapter.js +35 -0
- package/src/common-apis/adapters/qrUtils.js +18 -0
- package/src/common-apis/external-apis/apiGroups.js +56 -0
- package/src/common-apis/external-apis/emailAPI.js +16 -0
- package/src/common-apis/external-apis/ipAddressProviders.js +102 -0
- package/src/common-apis/globalConstants.jsx +3 -0
- package/src/{common → common-apis}/models/coin.js +98 -7
- package/src/{common → common-apis/services}/fiatCurrenciesService.js +4 -12
- package/src/common-apis/tests/integration/external-apis/ipAddressProviders/getClientIpAddress.test.js +18 -0
- package/src/common-apis/tests/units/utils/amountUtils/composeRateText.test.js +152 -0
- package/src/{common → common-apis/utils}/amountUtils.js +100 -140
- package/src/{common → common-apis}/utils/cache.js +15 -41
- package/src/{common → common-apis/utils}/errorUtils.js +15 -0
- package/src/{common → common-apis}/utils/logging/logger.js +7 -13
- package/src/common-apis/utils/postponeExecution.js +11 -0
- package/src/common-apis/utils/rabbitTicker.js +24 -0
- package/src/index.js +91 -14
- package/src/robust-api-caller/cacheAndConcurrentRequestsResolver.js +525 -0
- package/src/robust-api-caller/cachedRobustExternalApiCallerService.js +147 -0
- package/src/robust-api-caller/cancelProcessing.js +29 -0
- package/src/robust-api-caller/concurrentCalculationsMetadataHolder.js +75 -0
- package/src/robust-api-caller/externalApiProvider.js +156 -0
- package/src/robust-api-caller/externalServicesStatsCollector.js +78 -0
- package/src/robust-api-caller/robustExternalAPICallerService.js +304 -0
- package/src/robust-api-caller/tests/robustExternalAPICallerService/robustExternalAPICallerService/callExternalAPI/_performCallAttempt.test.js +533 -0
- package/src/robust-api-caller/tests/robustExternalAPICallerService/robustExternalAPICallerService/callExternalAPI/callExternalAPI.test.js +532 -0
- package/src/robust-api-caller/tests/robustExternalAPICallerService/robustExternalAPICallerService/constructor.test.js +19 -0
- package/src/swaps-lib/external-apis/changeHeroSwapProvider.js +905 -0
- package/src/swaps-lib/external-apis/changeNowSwapProvider.js +853 -0
- package/src/swaps-lib/external-apis/exolixSwapProvider.js +619 -0
- package/src/swaps-lib/external-apis/goexmeSwapProvider.js +768 -0
- package/src/swaps-lib/external-apis/letsExchangeSwapProvider.js +527 -0
- package/src/swaps-lib/external-apis/retriableErrorsUtils.js +63 -0
- package/src/swaps-lib/external-apis/swapProvider.js +457 -25
- package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +320 -486
- package/src/swaps-lib/external-apis/utils.js +26 -0
- package/src/swaps-lib/models/baseSwapCreationInfo.js +78 -0
- package/src/swaps-lib/models/existingSwap.js +101 -16
- package/src/swaps-lib/models/existingSwapWithFiatData.js +148 -0
- package/src/swaps-lib/models/partner.js +27 -0
- package/src/swaps-lib/models/swapProviderCoinInfo.js +84 -0
- package/src/swaps-lib/services/publicSwapService.js +523 -0
- package/src/swaps-lib/test/external-apis/changeHeroSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +155 -0
- package/src/swaps-lib/test/external-apis/changeHeroSwapProvider/createSwap.test.js +702 -0
- package/src/swaps-lib/test/external-apis/changeHeroSwapProvider/getExistingSwapsDetailsAndStatus.test.js +501 -0
- package/src/swaps-lib/test/external-apis/changeHeroSwapProvider/getSwapInfo.test.js +425 -0
- package/src/swaps-lib/test/external-apis/changeNowSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +83 -0
- package/src/swaps-lib/test/external-apis/changeNowSwapProvider/_providerHelpers.test.js +54 -0
- package/src/swaps-lib/test/external-apis/changeNowSwapProvider/_validateAddressWithProvider.test.js +49 -0
- package/src/swaps-lib/test/external-apis/changeNowSwapProvider/createSwap.test.js +938 -0
- package/src/swaps-lib/test/external-apis/changeNowSwapProvider/getExistingSwapsDetailsAndStatus.test.js +353 -0
- package/src/swaps-lib/test/external-apis/changeNowSwapProvider/getSwapInfo.test.js +342 -0
- package/src/swaps-lib/test/external-apis/exolixSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +34 -0
- package/src/swaps-lib/test/external-apis/exolixSwapProvider/createSwap.test.js +1081 -0
- package/src/swaps-lib/test/external-apis/exolixSwapProvider/getSwapInfo.test.js +611 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/_convertCurrencyMeta.test.js +95 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +75 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/createSwap.test.js +225 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/getExistingSwapsDetailsAndStatus.test.js +175 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/getSwapInfo.test.js +177 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/helpers.test.js +26 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/PairSupport.int.test.js +69 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/_fetchSupportedCurrenciesIfNeeded.int.test.js +307 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/createSwap.int.test.js +335 -0
- package/src/swaps-lib/test/external-apis/goexmeSwapProvider/integration/getSwapInfo.int.test.js +154 -0
- package/src/swaps-lib/test/external-apis/swapProvider/getAllSupportedCurrencies.test.js +63 -0
- package/src/swaps-lib/test/external-apis/swapProvider/getDepositCurrencies.test.js +73 -0
- package/src/swaps-lib/test/external-apis/swapProvider/getWithdrawalCurrencies.test.js +102 -0
- package/src/swaps-lib/test/external-apis/swapProvider/removeProtocolNameFromCoinName.test.js +152 -0
- package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +536 -0
- package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/createSwap.test.js +1359 -0
- package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getExistingSwapsDetailsAndStatus.test.js +136 -0
- package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getSwapInfo.test.js +1743 -0
- package/src/swaps-lib/test/utils/swapUtils/isIpBannedProviderError.test.js +150 -0
- package/src/swaps-lib/test/utils/swapUtils/safeHandleRequestsLimitExceeding.test.js +80 -0
- package/src/swaps-lib/utils/swapUtils.js +207 -0
- package/{styles → src/ui-kit/assets/styles}/_functions.scss +5 -0
- package/{styles → src/ui-kit/assets/styles}/_mixins.scss +2 -2
- package/{styles → src/ui-kit/assets/styles}/_placeholder.scss +3 -3
- package/{styles → src/ui-kit/assets/styles}/_variables.scss +17 -15
- package/src/ui-kit/assets/styles/fonts/NunitoSans-Bold.ttf +0 -0
- package/src/ui-kit/assets/styles/fonts/NunitoSans-ExtraBold.ttf +0 -0
- package/src/ui-kit/assets/styles/fonts/NunitoSans-Light.ttf +0 -0
- package/src/ui-kit/assets/styles/fonts/NunitoSans-Regular.ttf +0 -0
- package/src/ui-kit/assets/styles/fonts/NunitoSans-SemiBold.ttf +0 -0
- package/src/ui-kit/assets/styles/global.scss +171 -0
- package/src/ui-kit/assets/styles/index.scss +10 -0
- package/src/ui-kit/assets/wrappedImages/arrowIcon.jsx +13 -0
- package/src/ui-kit/assets/wrappedImages/arrowTosca.jsx +14 -0
- package/src/ui-kit/assets/wrappedImages/arrowWhite.jsx +14 -0
- package/src/ui-kit/assets/wrappedImages/darkRectangle.jsx +7 -0
- package/src/ui-kit/assets/wrappedImages/determinedError.jsx +118 -0
- package/src/ui-kit/assets/wrappedImages/failedValidationIcon.jsx +39 -0
- package/src/ui-kit/assets/wrappedImages/infoIcon.jsx +16 -0
- package/src/ui-kit/assets/wrappedImages/messageIcon.jsx +87 -0
- package/src/ui-kit/assets/wrappedImages/noticeQuestionIcon.jsx +54 -0
- package/src/ui-kit/assets/wrappedImages/successfulValidationIcon.jsx +26 -0
- package/src/ui-kit/assets/wrappedImages/supportDialogImage.jsx +61 -0
- package/src/ui-kit/assets/wrappedImages/walletIcon.jsx +22 -0
- package/src/{components → ui-kit/components}/atoms/AssetIcon/AssetIcon.jsx +16 -14
- package/src/{components → ui-kit/components}/atoms/AssetIcon/asset-icon.module.scss +1 -1
- package/src/ui-kit/components/atoms/AssetSelection/AssetSelection.jsx +68 -0
- package/src/ui-kit/components/atoms/AssetSelection/asset-selection.module.scss +56 -0
- package/src/ui-kit/components/atoms/BackgroundTitle/BackgroundTitle.jsx +34 -0
- package/src/ui-kit/components/atoms/BackgroundTitle/background-title.module.scss +52 -0
- package/src/ui-kit/components/atoms/InformationMessage/InformationMessage.jsx +51 -0
- package/src/ui-kit/components/atoms/InformationMessage/information-message.module.scss +38 -0
- package/src/ui-kit/components/atoms/Input/Input.jsx +183 -0
- package/src/ui-kit/components/atoms/Input/input.module.scss +107 -0
- package/src/{components → ui-kit/components}/atoms/LoadingDots/LoadingDots.jsx +8 -28
- package/src/{components → ui-kit/components}/atoms/LoadingDots/LoadingDots.module.scss +3 -2
- package/src/ui-kit/components/atoms/NoticeIcon/NoticeIcon.jsx +64 -0
- package/src/ui-kit/components/atoms/NoticeIcon/notice-icon.module.scss +14 -0
- package/src/ui-kit/components/atoms/QrCode/QrCode.jsx +38 -0
- package/src/ui-kit/components/atoms/QrCode/qr-code.module.scss +8 -0
- package/src/ui-kit/components/atoms/RateSelector/RateSelector.jsx +30 -0
- package/src/ui-kit/components/atoms/RateSelector/rate-selector.module.scss +47 -0
- package/src/{components → ui-kit/components}/atoms/SupportChat/SupportChat.jsx +5 -1
- package/src/ui-kit/components/atoms/Textarea/Textarea.jsx +148 -0
- package/src/ui-kit/components/atoms/Textarea/textarea.module.scss +71 -0
- package/src/ui-kit/components/atoms/TitleBox/TitleBox.jsx +141 -0
- package/src/ui-kit/components/atoms/TitleBox/title-box.module.scss +32 -0
- package/src/ui-kit/components/atoms/Tooltip/Tooltip.jsx +77 -0
- package/src/ui-kit/components/atoms/Tooltip/tooltip.module.scss +237 -0
- package/src/ui-kit/components/atoms/TwoLinesOfText/LinesOfText.jsx +76 -0
- package/src/ui-kit/components/atoms/TwoLinesOfText/lines-of-text.module.scss +65 -0
- package/src/ui-kit/components/atoms/Validation/Validation.jsx +39 -0
- package/src/ui-kit/components/atoms/Validation/validation.module.scss +19 -0
- package/src/{components → ui-kit/components}/atoms/buttons/Button/Button.jsx +26 -45
- package/src/{components → ui-kit/components}/atoms/buttons/Button/Button.module.scss +1 -1
- package/src/ui-kit/components/atoms/buttons/Close/Close.jsx +58 -0
- package/src/ui-kit/components/atoms/buttons/Close/close.module.scss +75 -0
- package/src/ui-kit/components/atoms/buttons/LinkButton/LinkButton.jsx +116 -0
- package/src/ui-kit/components/atoms/buttons/LinkButton/link-button.module.scss +53 -0
- package/src/ui-kit/components/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx +110 -0
- package/src/ui-kit/components/atoms/buttons/RadioButtonWithText/radio-button-with-text.module.scss +86 -0
- package/src/ui-kit/components/molecules/AmountInput/AmountInput.jsx +448 -0
- package/src/ui-kit/components/molecules/AmountInput/amount-input.module.scss +233 -0
- package/src/ui-kit/components/molecules/CoinPicker/CoinPicker.jsx +463 -0
- package/src/ui-kit/components/molecules/CoinPicker/coin-picker.module.scss +207 -0
- package/src/ui-kit/components/molecules/ColoredNotice/ColoredNotice.jsx +52 -0
- package/src/ui-kit/components/molecules/ColoredNotice/colored-notice.module.scss +36 -0
- package/src/ui-kit/components/molecules/LineWithIconLink/LineWithIconLink.jsx +35 -0
- package/src/ui-kit/components/molecules/LineWithIconLink/line-with-icon-link.module.scss +25 -0
- package/src/ui-kit/components/molecules/LogoCarousel/LogoCarousel.jsx +74 -0
- package/src/ui-kit/components/molecules/LogoCarousel/logo-carousel.module.scss +106 -0
- package/src/ui-kit/components/molecules/SearchableCoinsList/SearchableCoinsList.jsx +114 -0
- package/src/ui-kit/components/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx +32 -0
- package/src/ui-kit/components/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx +66 -0
- package/src/ui-kit/components/organisms/Dialog/Dialog.jsx +494 -0
- package/src/ui-kit/components/organisms/Dialog/DialogButtons/DialogButtons.jsx +132 -0
- package/src/ui-kit/components/organisms/Dialog/DialogButtons/dialog-buttons.module.scss +25 -0
- package/src/ui-kit/components/organisms/Dialog/DialogStep/DialogStep.jsx +554 -0
- package/src/ui-kit/components/organisms/Dialog/DialogStep/dialog-step.module.scss +382 -0
- package/src/ui-kit/components/organisms/Dialog/dialog.module.scss +226 -0
- package/src/ui-kit/components/organisms/SwapForm/SwapForm.jsx +1430 -0
- package/src/ui-kit/components/organisms/SwapForm/swap-form.module.scss +134 -0
- package/src/ui-kit/components/organisms/WaitlistSubscription/WaitlistSubscription.jsx +158 -0
- package/src/ui-kit/components/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx +77 -0
- package/src/ui-kit/hooks/useCallHandlingErrors.js +27 -0
- package/src/ui-kit/hooks/useIsHydrated.js +12 -0
- package/src/ui-kit/hooks/useReferredState.js +24 -0
- package/src/ui-kit/tests/utils/inputValueProviders/provideFormatOfFloatValueByInputString.test.js +146 -0
- package/src/ui-kit/tests/utils/urlQueryUtils/getQueryParameterValues.test.js +65 -0
- package/src/ui-kit/tests/utils/urlQueryUtils/saveQueryParameterAndValues.test.js +104 -0
- package/src/ui-kit/utils/inputValueProviders.js +50 -0
- package/src/ui-kit/utils/searchCoins.js +58 -0
- package/src/ui-kit/utils/textUtils.js +18 -0
- package/src/ui-kit/utils/uiUtils.js +12 -0
- package/src/ui-kit/utils/urlQueryUtils.js +62 -0
- package/stories/font.scss +40 -0
- package/stories/stubs/coins.jsx +2266 -0
- package/stories/stubs/exampleContent.jsx +20 -0
- package/styles/_global-classes.scss +0 -433
- package/styles/fonts/NunitoSans-Bold.ttf +0 -0
- package/styles/fonts/NunitoSans-ExtraBold.ttf +0 -0
- package/styles/fonts/NunitoSans-Light.ttf +0 -0
- package/styles/fonts/NunitoSans-Regular.ttf +0 -0
- package/styles/fonts/NunitoSans-SemiBold.ttf +0 -0
- package/styles/global-styles-index.scss +0 -74
- package/styles/index.scss +0 -33
- /package/src/{common → common-apis}/models/blockchain.js +0 -0
- /package/src/{common → common-apis}/models/protocol.js +0 -0
- /package/src/{common → common-apis}/utils/logging/logsStorage.js +0 -0
- /package/src/{common → common-apis}/utils/safeStringify.js +0 -0
- /package/{styles → src/ui-kit/assets/styles}/colors/_light-colors.scss +0 -0
- /package/{styles → src/ui-kit/assets/styles}/colors/_solid-colors.scss +0 -0
- /package/{styles → src/ui-kit/assets/styles}/size/_margin-size.scss +0 -0
- /package/{styles → src/ui-kit/assets/styles}/size/_padding-size.scss +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "../../../assets/styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.title-box {
|
|
4
|
+
&.full-width {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-wrapper {
|
|
9
|
+
width: 100%;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
flex-grow: 1;
|
|
14
|
+
margin-bottom: Margin("1");
|
|
15
|
+
gap: Margin("2");
|
|
16
|
+
min-height: 26px;
|
|
17
|
+
|
|
18
|
+
&-title {
|
|
19
|
+
color: SolidColor("grey");
|
|
20
|
+
font-weight: $semi-bold;
|
|
21
|
+
text-align: left;
|
|
22
|
+
|
|
23
|
+
&.transparent-title {
|
|
24
|
+
color: rgba($white, 0.2);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-link-button {
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CSSTransition } from "react-transition-group";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
|
|
5
|
+
import s from "./tooltip.module.scss";
|
|
6
|
+
import DarkRectangle from "../../../assets/wrappedImages/darkRectangle.jsx";
|
|
7
|
+
|
|
8
|
+
import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
|
|
9
|
+
|
|
10
|
+
export const TOOLTIP_POSITIONS = {
|
|
11
|
+
TOP: "top",
|
|
12
|
+
LEFT: "left",
|
|
13
|
+
RIGHT: "right",
|
|
14
|
+
BOTTOM: "bottom",
|
|
15
|
+
TOP_LEFT: "top-left",
|
|
16
|
+
TOP_RIGHT: "top-right",
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Tooltip component for displaying contextual information.
|
|
21
|
+
*
|
|
22
|
+
* @component
|
|
23
|
+
* @param {Object} props - The props object.
|
|
24
|
+
* @param {React.ReactNode} props.children - The content to display inside the tooltip.
|
|
25
|
+
* @param {boolean} props.showTooltip - Controls whether the tooltip is visible.
|
|
26
|
+
* @param {Function} props.handleClick - Handler for click events.
|
|
27
|
+
* @param {boolean} [props.wide] - If true, applies a wider style to the tooltip.
|
|
28
|
+
* @param {string} props.position - One of the predefined positions for the tooltip.
|
|
29
|
+
* @param {boolean} [props.ignorePointerEvents] - If true, the tooltip will not react to pointer events.
|
|
30
|
+
*/
|
|
31
|
+
export const Tooltip = ({
|
|
32
|
+
children,
|
|
33
|
+
showTooltip,
|
|
34
|
+
handleClick = () => {},
|
|
35
|
+
wide = false,
|
|
36
|
+
position = TOOLTIP_POSITIONS.TOP,
|
|
37
|
+
ignorePointerEvents = false,
|
|
38
|
+
}) => {
|
|
39
|
+
const handleError = useCallHandlingErrors();
|
|
40
|
+
|
|
41
|
+
const onClick = e => {
|
|
42
|
+
e.stopPropagation();
|
|
43
|
+
handleClick();
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<CSSTransition in={showTooltip} timeout={400} unmountOnExit>
|
|
48
|
+
<span
|
|
49
|
+
className={`${s["tooltip"]} ${wide ? s["wide"] : ""} ${s[position]} ${
|
|
50
|
+
ignorePointerEvents ? s["ignore-pointer"] : ""
|
|
51
|
+
}`}
|
|
52
|
+
onClick={e => handleError(onClick, e)}
|
|
53
|
+
onDoubleClick={e => handleError(e => e.stopPropagation(), e)}
|
|
54
|
+
>
|
|
55
|
+
<DarkRectangle />
|
|
56
|
+
{/*<img src={darkRectangle} alt="dark rectangle" />*/}
|
|
57
|
+
{children}
|
|
58
|
+
</span>
|
|
59
|
+
</CSSTransition>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
Tooltip.propTypes = {
|
|
64
|
+
children: PropTypes.node.isRequired,
|
|
65
|
+
showTooltip: PropTypes.bool.isRequired,
|
|
66
|
+
handleClick: PropTypes.func,
|
|
67
|
+
wide: PropTypes.bool,
|
|
68
|
+
position: PropTypes.oneOf(Object.values(TOOLTIP_POSITIONS)),
|
|
69
|
+
ignorePointerEvents: PropTypes.bool,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
Tooltip.defaultProps = {
|
|
73
|
+
handleClick: () => {},
|
|
74
|
+
wide: false,
|
|
75
|
+
position: TOOLTIP_POSITIONS.TOP,
|
|
76
|
+
ignorePointerEvents: false,
|
|
77
|
+
};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
@use "../../../assets/styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.tooltip {
|
|
4
|
+
@include typograpy("p");
|
|
5
|
+
font-weight: $medium;
|
|
6
|
+
line-height: 20px;
|
|
7
|
+
padding: Padding("5") Padding("4");
|
|
8
|
+
background: SolidColor("dark");
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: calc(100% + 15px);
|
|
11
|
+
left: 50%;
|
|
12
|
+
transform: translateX(-50%);
|
|
13
|
+
color: $white;
|
|
14
|
+
border-radius: $borderRadius;
|
|
15
|
+
z-index: 3;
|
|
16
|
+
display: block;
|
|
17
|
+
min-width: 200px;
|
|
18
|
+
max-width: 300px;
|
|
19
|
+
text-align: center;
|
|
20
|
+
word-wrap: break-word;
|
|
21
|
+
word-break: normal;
|
|
22
|
+
|
|
23
|
+
&.enter {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translateX(-50%) translateY(10px) scale(0.95);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.enter-active,
|
|
29
|
+
&.exit {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
32
|
+
transition: 0.2s all $transitionEaseOut;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.exit-active {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.top-left {
|
|
41
|
+
transform: none;
|
|
42
|
+
bottom: calc(100% + 15px);
|
|
43
|
+
right: -14px;
|
|
44
|
+
left: auto;
|
|
45
|
+
img,
|
|
46
|
+
svg {
|
|
47
|
+
left: auto;
|
|
48
|
+
right: 0px;
|
|
49
|
+
top: calc(100% - 4px);
|
|
50
|
+
transform: translateX(-40%);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.enter {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transform: translateX(5px) translateY(10px) scale(0.95);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.enter-active,
|
|
59
|
+
&.enter-done,
|
|
60
|
+
&.exit {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
transform: translateX(0) translateY(0) scale(1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.exit-active {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
transform: translateX(0) translateY(0) scale(1);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.top-right {
|
|
72
|
+
transform: none;
|
|
73
|
+
bottom: calc(100% + 15px);
|
|
74
|
+
left: -14px;
|
|
75
|
+
img,
|
|
76
|
+
svg {
|
|
77
|
+
left: 0px;
|
|
78
|
+
top: calc(100% - 4px);
|
|
79
|
+
transform: translateX(40%);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.enter {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
transform: translateX(-5px) translateY(10px) scale(0.95);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.enter-active,
|
|
88
|
+
&.enter-done,
|
|
89
|
+
&.exit {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
transform: translateX(0) translateY(0) scale(1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.exit-active {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transform: translateX(0) translateY(0) scale(1);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.left {
|
|
101
|
+
left: auto;
|
|
102
|
+
right: calc(100% + 16px);
|
|
103
|
+
bottom: calc(100% - 4px);
|
|
104
|
+
img,
|
|
105
|
+
svg {
|
|
106
|
+
top: calc(41%);
|
|
107
|
+
left: calc(100% - 7px);
|
|
108
|
+
transform: rotateZ(-90deg);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.enter {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
transform: translateX(16px) translateY(50%) scale(0.95);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.enter-active,
|
|
117
|
+
&.enter-done,
|
|
118
|
+
&.exit {
|
|
119
|
+
opacity: 1;
|
|
120
|
+
transform: translateX(0) translateY(50%) scale(1);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.exit-active {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
transform: translateX(0) translateY(50%) scale(1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.bottom {
|
|
130
|
+
// TODO: [dev] Currently works for RBF form. Not tested in other cases
|
|
131
|
+
bottom: auto;
|
|
132
|
+
top: calc(100% + 16px);
|
|
133
|
+
left: 50%;
|
|
134
|
+
img,
|
|
135
|
+
svg {
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: -12px;
|
|
138
|
+
left: calc(50% - 12px);
|
|
139
|
+
transform: rotateZ(-180deg);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.enter {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform: translateX(-50%) translateY(-10px) scale(0.95);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.enter-active,
|
|
148
|
+
&.enter-done,
|
|
149
|
+
&.exit {
|
|
150
|
+
opacity: 1;
|
|
151
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&.exit-active {
|
|
155
|
+
opacity: 0;
|
|
156
|
+
transform: translateX(-50%) translateY(0) scale(1);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&.right {
|
|
161
|
+
// TODO: [dev] Currently works for RBF form. Not tested in other cases
|
|
162
|
+
left: calc(100% + 16px);
|
|
163
|
+
right: auto;
|
|
164
|
+
top: 7px;
|
|
165
|
+
bottom: auto;
|
|
166
|
+
img,
|
|
167
|
+
svg {
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: calc(50% - 6px);
|
|
170
|
+
left: -18px;
|
|
171
|
+
transform: rotateZ(-270deg);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.enter {
|
|
175
|
+
opacity: 0;
|
|
176
|
+
transform: translateX(-16px) translateY(-50%) scale(0.95);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.enter-active,
|
|
180
|
+
&.enter-done,
|
|
181
|
+
&.exit {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
transform: translateX(0) translateY(-50%) scale(1);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.exit-active {
|
|
187
|
+
opacity: 0;
|
|
188
|
+
transform: translateX(0) translateY(-50%) scale(1);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.wide {
|
|
193
|
+
min-width: 300px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&.ignore-pointer {
|
|
197
|
+
pointer-events: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&-enter {
|
|
201
|
+
opacity: 0;
|
|
202
|
+
bottom: calc(100% - 10px);
|
|
203
|
+
position: absolute;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&-enter-active {
|
|
207
|
+
opacity: 1;
|
|
208
|
+
bottom: calc(100% + 15px);
|
|
209
|
+
position: absolute;
|
|
210
|
+
transition: 0.3s;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&-enter-done {
|
|
214
|
+
bottom: calc(100% + 15px);
|
|
215
|
+
position: absolute;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&-exit {
|
|
219
|
+
opacity: 1;
|
|
220
|
+
bottom: calc(100% + 15px);
|
|
221
|
+
position: absolute;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&-exit-active {
|
|
225
|
+
opacity: 0;
|
|
226
|
+
bottom: calc(100% - 10px);
|
|
227
|
+
position: absolute;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
img,
|
|
231
|
+
svg {
|
|
232
|
+
position: absolute;
|
|
233
|
+
top: calc(100% - 1px);
|
|
234
|
+
left: 50%;
|
|
235
|
+
transform: translateX(-50%);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
|
|
4
|
+
import s from "./lines-of-text.module.scss";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Renders up to three lines of text with configurable options for horizontal layout, text wrapping, and breaking.
|
|
8
|
+
* Optionally, displays a default text content centered vertically if provided.
|
|
9
|
+
*
|
|
10
|
+
* @component
|
|
11
|
+
* @param {Object} props - The props object.
|
|
12
|
+
* @param {string} props.firstLineText - Text for the first line.
|
|
13
|
+
* @param {string} props.secondLineText - Text for the second line.
|
|
14
|
+
* @param {string} props.thirdLineText - Text for the third line.
|
|
15
|
+
* @param {boolean} props.isHorizontal - If true, displays the text horizontally.
|
|
16
|
+
* @param {string} [props.defaultTextContent] - Default text content to display, centered vertically.
|
|
17
|
+
* @param {boolean} [props.isFirstLineTextReducible] - If true, the first line text can be reduced.
|
|
18
|
+
* @param {string} [props.firstLineNotReducibleSuffix] - Suffix to append to the first line text if not reducible.
|
|
19
|
+
* @param {boolean} [props.wrapFirstLine] - If true, allows the first line text to wrap.
|
|
20
|
+
* @param {boolean} [props.breakFirstLine] - If true, allows the first line text to break onto the next line.
|
|
21
|
+
*/
|
|
22
|
+
export const LinesOfText = ({
|
|
23
|
+
firstLineText = "",
|
|
24
|
+
secondLineText = "",
|
|
25
|
+
thirdLineText = "",
|
|
26
|
+
isHorizontal = false,
|
|
27
|
+
defaultTextContent = "",
|
|
28
|
+
isFirstLineTextReducible = false,
|
|
29
|
+
firstLineNotReducibleSuffix = "",
|
|
30
|
+
wrapFirstLine = false,
|
|
31
|
+
breakFirstLine = false,
|
|
32
|
+
}) => {
|
|
33
|
+
return defaultTextContent ? (
|
|
34
|
+
<div className={s["centered-vertically"]}>{defaultTextContent}</div>
|
|
35
|
+
) : (
|
|
36
|
+
<div className={isHorizontal ? s["horizontal"] : ""}>
|
|
37
|
+
<h5 className={s["first-line-text"]}>
|
|
38
|
+
<span
|
|
39
|
+
className={`${isFirstLineTextReducible ? s["shorted"] : s["full-text"]} ${
|
|
40
|
+
wrapFirstLine ? " " + s["wrap"] : ""
|
|
41
|
+
} ${breakFirstLine ? " " + s["break"] : ""}`}
|
|
42
|
+
>
|
|
43
|
+
{firstLineText}
|
|
44
|
+
</span>
|
|
45
|
+
{`\u00A0${firstLineNotReducibleSuffix}`}
|
|
46
|
+
</h5>
|
|
47
|
+
{isHorizontal ? <div className={"line"} /> : null}
|
|
48
|
+
{secondLineText ? <p className={s["second-line-text"]}>{secondLineText}</p> : null}
|
|
49
|
+
{thirdLineText ? <p className={s["second-line-text"]}>{thirdLineText}</p> : null}
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
LinesOfText.propTypes = {
|
|
55
|
+
firstLineText: PropTypes.string,
|
|
56
|
+
secondLineText: PropTypes.string,
|
|
57
|
+
thirdLineText: PropTypes.string,
|
|
58
|
+
isHorizontal: PropTypes.bool,
|
|
59
|
+
defaultTextContent: PropTypes.string,
|
|
60
|
+
isFirstLineTextReducible: PropTypes.bool,
|
|
61
|
+
firstLineNotReducibleSuffix: PropTypes.string,
|
|
62
|
+
wrapFirstLine: PropTypes.bool,
|
|
63
|
+
breakFirstLine: PropTypes.bool,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
LinesOfText.defaultProps = {
|
|
67
|
+
firstLineText: "",
|
|
68
|
+
secondLineText: "",
|
|
69
|
+
thirdLineText: "",
|
|
70
|
+
isHorizontal: false,
|
|
71
|
+
defaultTextContent: "",
|
|
72
|
+
isFirstLineTextReducible: false,
|
|
73
|
+
firstLineNotReducibleSuffix: "",
|
|
74
|
+
wrapFirstLine: false,
|
|
75
|
+
breakFirstLine: false,
|
|
76
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@use "../../../assets/styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.first-line-text {
|
|
4
|
+
display: flex;
|
|
5
|
+
font-weight: $bold;
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
// font-family: NunitoSans;
|
|
8
|
+
text-align: left;
|
|
9
|
+
|
|
10
|
+
.wrap {
|
|
11
|
+
white-space: normal;
|
|
12
|
+
word-wrap: break-word;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.break {
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
white-space: break-spaces;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.full-text {
|
|
21
|
+
width: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: Margin("2");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.shorted {
|
|
28
|
+
word-wrap: unset;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
|
|
33
|
+
@media (max-width: $tablet-width) {
|
|
34
|
+
width: auto;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.horizontal {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
|
|
43
|
+
@media (max-width: $phone-width) {
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.line {
|
|
49
|
+
width: 20px;
|
|
50
|
+
margin: 0 Margin("3");
|
|
51
|
+
text-align: left;
|
|
52
|
+
// font-family: NunitoSans;
|
|
53
|
+
|
|
54
|
+
@media (max-width: $phone-width) {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.second-line-text {
|
|
61
|
+
color: SolidColor("grey");
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
text-align: left;
|
|
64
|
+
// font-family: NunitoSans;
|
|
65
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
|
|
4
|
+
import s from "./validation.module.scss";
|
|
5
|
+
import SuccessfulValidationIcon from "../../../assets/wrappedImages/successfulValidationIcon.jsx";
|
|
6
|
+
import FailedValidationIcon from "../../../assets/wrappedImages/failedValidationIcon.jsx";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Simple validation message with an icon.
|
|
10
|
+
* It shows either a success or failure icon based on the isSuccessAlert prop.
|
|
11
|
+
*
|
|
12
|
+
* @param {Object} props - The component props.
|
|
13
|
+
* @param {string} props.text - The validation message text to display.
|
|
14
|
+
* @param {boolean} props.isSuccessAlert - Determines if the displayed alert is for a success (true) or failure (false).
|
|
15
|
+
*/
|
|
16
|
+
export const Validation = ({ text = "", isSuccessAlert }) => {
|
|
17
|
+
return (
|
|
18
|
+
<div className={s["validation"]}>
|
|
19
|
+
{isSuccessAlert ? (
|
|
20
|
+
// <img src={successfulValidationIcon} alt="validation icon" />
|
|
21
|
+
<SuccessfulValidationIcon />
|
|
22
|
+
) : (
|
|
23
|
+
// <img src={failedValidationIcon} alt="validation icon" />
|
|
24
|
+
<FailedValidationIcon />
|
|
25
|
+
)}
|
|
26
|
+
<span className={s["validation-text"]}>{text}</span>
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
Validation.propTypes = {
|
|
32
|
+
text: PropTypes.string,
|
|
33
|
+
isSuccessAlert: PropTypes.bool.isRequired,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
Validation.defaultProps = {
|
|
37
|
+
text: "",
|
|
38
|
+
isSuccessAlert: false,
|
|
39
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use "../../../assets/styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.validation {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
margin-top: Margin("3");
|
|
7
|
+
|
|
8
|
+
svg {
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-text {
|
|
13
|
+
text-align: left;
|
|
14
|
+
color: SolidColor("sky");
|
|
15
|
+
margin-left: Margin("2");
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
@extend %text-semibold;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -46,13 +46,14 @@ export const Button = ({
|
|
|
46
46
|
icon = "",
|
|
47
47
|
content = "",
|
|
48
48
|
isDisabled = false,
|
|
49
|
-
setClickTrigger =
|
|
49
|
+
setClickTrigger = p => {},
|
|
50
50
|
isFormSubmittingButton = false,
|
|
51
51
|
bigIcon = false,
|
|
52
52
|
checkmarkOnClick = false,
|
|
53
53
|
propagatePrimaryButtonClick = true,
|
|
54
54
|
smallPaddingOnSmallMobiles = false,
|
|
55
55
|
handleError = (func, event) => func(event),
|
|
56
|
+
openNewTab = false,
|
|
56
57
|
}) => {
|
|
57
58
|
const [isLoading, setIsLoading] = useState(loading);
|
|
58
59
|
const [isCheckShown, setIsCheckShown] = useState(false);
|
|
@@ -72,7 +73,7 @@ export const Button = ({
|
|
|
72
73
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
73
74
|
}, [isLoading]);
|
|
74
75
|
|
|
75
|
-
const buttonClick =
|
|
76
|
+
const buttonClick = e => {
|
|
76
77
|
if (isLoading || isDisabled) {
|
|
77
78
|
return false;
|
|
78
79
|
}
|
|
@@ -84,7 +85,11 @@ export const Button = ({
|
|
|
84
85
|
}, 2000);
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
e
|
|
88
|
+
if (e?.persist) {
|
|
89
|
+
// Persisting React's SyntheticEvent to be able to use it in any async context
|
|
90
|
+
e.persist();
|
|
91
|
+
}
|
|
92
|
+
|
|
88
93
|
!propagatePrimaryButtonClick && e.stopPropagation();
|
|
89
94
|
if (loader) {
|
|
90
95
|
setIsLoading(true);
|
|
@@ -99,9 +104,7 @@ export const Button = ({
|
|
|
99
104
|
(fullWidthOnMobiles ? ` ${styles["full-width-on-mobiles"]}` : "") +
|
|
100
105
|
(fullWidthOnTablets ? ` ${styles["full-width-on-tablets"]}` : "") +
|
|
101
106
|
(isDisabled ? ` ${styles.disable}` : "") +
|
|
102
|
-
(smallPaddingOnSmallMobiles
|
|
103
|
-
? ` ${styles["small-padding-on-small-mobiles"]}`
|
|
104
|
-
: "");
|
|
107
|
+
(smallPaddingOnSmallMobiles ? ` ${styles["small-padding-on-small-mobiles"]}` : "");
|
|
105
108
|
|
|
106
109
|
return (
|
|
107
110
|
<>
|
|
@@ -109,67 +112,45 @@ export const Button = ({
|
|
|
109
112
|
{to ? (
|
|
110
113
|
<a
|
|
111
114
|
className={classNames}
|
|
112
|
-
onClick={
|
|
115
|
+
onClick={e => handleError(buttonClick, e)}
|
|
113
116
|
href={to}
|
|
114
117
|
ref={buttonRef}
|
|
118
|
+
target={openNewTab ? "_blank" : ""}
|
|
115
119
|
>
|
|
116
120
|
{icon ? (
|
|
117
|
-
<div
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
(bigIcon ? ` ${styles["big-icon"]}` : "")
|
|
121
|
-
}
|
|
122
|
-
>
|
|
123
|
-
<img src={icon} alt="button icon" />
|
|
124
|
-
<span className={styles["button-with-icon-text"]}>
|
|
125
|
-
{content}
|
|
126
|
-
</span>
|
|
121
|
+
<div className={styles["button-with-icon"] + (bigIcon ? ` ${styles["big-icon"]}` : "")}>
|
|
122
|
+
<img src={icon} alt="button icon" loading="lazy" />
|
|
123
|
+
<span className={styles["button-with-icon-text"]}>{content}</span>
|
|
127
124
|
</div>
|
|
128
125
|
) : (
|
|
129
126
|
content
|
|
130
127
|
)}
|
|
131
128
|
</a>
|
|
132
129
|
) : (
|
|
133
|
-
<div
|
|
134
|
-
className={classNames}
|
|
135
|
-
onClick={(e) => handleError(buttonClick, e)}
|
|
136
|
-
ref={buttonRef}
|
|
137
|
-
>
|
|
130
|
+
<div className={classNames} onClick={e => handleError(buttonClick, e)} ref={buttonRef}>
|
|
138
131
|
<div
|
|
139
|
-
className={`${styles["button-primary-dots-wrapper"]} ${
|
|
140
|
-
isLoading && loader ? styles.show : ""
|
|
141
|
-
}`}
|
|
132
|
+
className={`${styles["button-primary-dots-wrapper"]} ${isLoading && loader ? styles.show : ""}`}
|
|
142
133
|
>
|
|
143
|
-
{loader && isLoading ?
|
|
144
|
-
<LoadingDots isColored={mode === "white"} />
|
|
145
|
-
) : null}
|
|
134
|
+
{loader && isLoading ? <LoadingDots isColored={mode === "white"} /> : null}
|
|
146
135
|
</div>
|
|
147
136
|
<div
|
|
148
|
-
className={`${styles["button-success-icon"]} ${
|
|
149
|
-
styles[
|
|
150
|
-
}
|
|
137
|
+
className={`${styles["button-success-icon"]} ${styles[mode]} ${
|
|
138
|
+
isCheckShown ? styles["show"] : ""
|
|
139
|
+
}`}
|
|
151
140
|
></div>
|
|
152
141
|
{icon ? (
|
|
153
142
|
<div
|
|
154
143
|
className={`${styles["button-with-icon"]} ${
|
|
155
|
-
(isLoading && loader) ||
|
|
156
|
-
(checkmarkOnClick && isCheckShown)
|
|
157
|
-
? styles["hide"]
|
|
158
|
-
: ""
|
|
144
|
+
(isLoading && loader) || (checkmarkOnClick && isCheckShown) ? styles["hide"] : ""
|
|
159
145
|
} ${bigIcon ? styles["big-icon"] : ""}`}
|
|
160
146
|
>
|
|
161
|
-
<img src={icon} alt="button icon" />
|
|
162
|
-
<span className={styles["button-with-icon-text"]}>
|
|
163
|
-
{content}
|
|
164
|
-
</span>
|
|
147
|
+
<img src={icon} alt="button icon" loading="lazy" />
|
|
148
|
+
<span className={styles["button-with-icon-text"]}>{content}</span>
|
|
165
149
|
</div>
|
|
166
150
|
) : (
|
|
167
151
|
<span
|
|
168
152
|
className={`${styles["button-text"]} ${
|
|
169
|
-
(isLoading && loader) ||
|
|
170
|
-
(checkmarkOnClick && isCheckShown)
|
|
171
|
-
? styles["hide"]
|
|
172
|
-
: ""
|
|
153
|
+
(isLoading && loader) || (checkmarkOnClick && isCheckShown) ? styles["hide"] : ""
|
|
173
154
|
}`}
|
|
174
155
|
>
|
|
175
156
|
{content}
|
|
@@ -225,11 +206,11 @@ Button.defaultProps = {
|
|
|
225
206
|
icon: "",
|
|
226
207
|
content: "",
|
|
227
208
|
isDisabled: false,
|
|
228
|
-
setClickTrigger:
|
|
209
|
+
setClickTrigger: p => {},
|
|
229
210
|
isFormSubmittingButton: false,
|
|
230
211
|
bigIcon: false,
|
|
231
212
|
checkmarkOnClick: false,
|
|
232
213
|
propagatePrimaryButtonClick: true,
|
|
233
214
|
smallPaddingOnSmallMobiles: false,
|
|
234
|
-
handleError:
|
|
215
|
+
handleError: func => func(),
|
|
235
216
|
};
|