@redneckz/wildless-cms-uni-blocks 0.14.841 → 0.14.843
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +30 -148
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.js +1 -1
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/Header/HeaderTopMenu.js +1 -1
- package/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -1
- package/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.js +1 -1
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/Header/HeaderTopMenu.js +1 -1
- package/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +4 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/bundle/bundle.umd.js +22 -147
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
- package/mobile/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/package.json +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -16
- package/src/components/Carousel/Carousel.fixture.tsx +0 -35
- package/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/TextInformationLink.tsx +1 -1
- package/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/src/icons/IconName.ts +4 -4
- package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/src/ui-kit/Loader/Loader.tsx +1 -1
- package/src/ui-kit/ProgressBar/ProgressBar.fixture.tsx +4 -1
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/bundle/components/CarouselCard/constants.d.ts +0 -2
- package/bundle/components/CarouselCard/titleSize.d.ts +0 -1
- package/bundle/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/bundle/components/Depository/Depository.d.ts +0 -11
- package/bundle/components/Depository/DepositoryContent.d.ts +0 -5
- package/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
- package/bundle/components/Depository/DepositoryItem.d.ts +0 -2
- package/bundle/components/Depository/useDepository.d.ts +0 -15
- package/bundle/ui-kit/Unit/Unit.d.ts +0 -2
- package/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/dist/components/CarouselCard/CarouselCard.js +0 -16
- package/dist/components/CarouselCard/CarouselCard.js.map +0 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/dist/components/CarouselCard/CarouselCardContent.js +0 -2
- package/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/dist/components/CarouselCard/constants.d.ts +0 -2
- package/dist/components/CarouselCard/constants.js +0 -7
- package/dist/components/CarouselCard/constants.js.map +0 -1
- package/dist/components/CarouselCard/titleSize.d.ts +0 -1
- package/dist/components/CarouselCard/titleSize.js +0 -4
- package/dist/components/CarouselCard/titleSize.js.map +0 -1
- package/dist/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/dist/components/CarouselCard/titleSize.mobile.js +0 -4
- package/dist/components/CarouselCard/titleSize.mobile.js.map +0 -1
- package/dist/components/Depository/Depository.d.ts +0 -11
- package/dist/components/Depository/Depository.js +0 -42
- package/dist/components/Depository/Depository.js.map +0 -1
- package/dist/components/Depository/DepositoryContent.d.ts +0 -5
- package/dist/components/Depository/DepositoryContent.js +0 -2
- package/dist/components/Depository/DepositoryContent.js.map +0 -1
- package/dist/components/Depository/DepositoryFilter.d.ts +0 -9
- package/dist/components/Depository/DepositoryFilter.js +0 -9
- package/dist/components/Depository/DepositoryFilter.js.map +0 -1
- package/dist/components/Depository/DepositoryItem.d.ts +0 -2
- package/dist/components/Depository/DepositoryItem.js +0 -15
- package/dist/components/Depository/DepositoryItem.js.map +0 -1
- package/dist/components/Depository/useDepository.d.ts +0 -15
- package/dist/components/Depository/useDepository.js +0 -22
- package/dist/components/Depository/useDepository.js.map +0 -1
- package/dist/ui-kit/Unit/Unit.d.ts +0 -2
- package/dist/ui-kit/Unit/Unit.js +0 -9
- package/dist/ui-kit/Unit/Unit.js.map +0 -1
- package/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/dist/ui-kit/Unit/UnitProps.js +0 -2
- package/dist/ui-kit/Unit/UnitProps.js.map +0 -1
- package/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +0 -11
- package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +0 -7
- package/lib/components/CarouselCard/CarouselCard.js +0 -14
- package/lib/components/CarouselCard/CarouselCard.js.map +0 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/lib/components/CarouselCard/CarouselCardContent.js +0 -2
- package/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/lib/components/CarouselCard/constants.d.ts +0 -2
- package/lib/components/CarouselCard/constants.js +0 -5
- package/lib/components/CarouselCard/constants.js.map +0 -1
- package/lib/components/CarouselCard/titleSize.d.ts +0 -1
- package/lib/components/CarouselCard/titleSize.js +0 -2
- package/lib/components/CarouselCard/titleSize.js.map +0 -1
- package/lib/components/CarouselCard/titleSize.mobile.d.ts +0 -1
- package/lib/components/CarouselCard/titleSize.mobile.js +0 -2
- package/lib/components/CarouselCard/titleSize.mobile.js.map +0 -1
- package/lib/components/Depository/Depository.d.ts +0 -11
- package/lib/components/Depository/Depository.fixture.d.ts +0 -5
- package/lib/components/Depository/Depository.fixture.mobile.d.ts +0 -5
- package/lib/components/Depository/Depository.js +0 -40
- package/lib/components/Depository/Depository.js.map +0 -1
- package/lib/components/Depository/DepositoryContent.d.ts +0 -5
- package/lib/components/Depository/DepositoryContent.js +0 -2
- package/lib/components/Depository/DepositoryContent.js.map +0 -1
- package/lib/components/Depository/DepositoryFilter.d.ts +0 -9
- package/lib/components/Depository/DepositoryFilter.js +0 -7
- package/lib/components/Depository/DepositoryFilter.js.map +0 -1
- package/lib/components/Depository/DepositoryItem.d.ts +0 -2
- package/lib/components/Depository/DepositoryItem.js +0 -13
- package/lib/components/Depository/DepositoryItem.js.map +0 -1
- package/lib/components/Depository/useDepository.d.ts +0 -15
- package/lib/components/Depository/useDepository.js +0 -19
- package/lib/components/Depository/useDepository.js.map +0 -1
- package/lib/ui-kit/Unit/Unit.d.ts +0 -2
- package/lib/ui-kit/Unit/Unit.js +0 -7
- package/lib/ui-kit/Unit/Unit.js.map +0 -1
- package/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/lib/ui-kit/Unit/UnitProps.js +0 -2
- package/lib/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/bundle/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/bundle/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/bundle/components/Depository/Depository.d.ts +0 -11
- package/mobile/bundle/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/bundle/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/bundle/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/bundle/components/Depository/useDepository.d.ts +0 -15
- package/mobile/bundle/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/dist/components/CarouselCard/CarouselCard.js +0 -16
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +0 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js +0 -2
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/mobile/dist/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/dist/components/CarouselCard/constants.js +0 -7
- package/mobile/dist/components/CarouselCard/constants.js.map +0 -1
- package/mobile/dist/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/dist/components/CarouselCard/titleSize.js +0 -4
- package/mobile/dist/components/CarouselCard/titleSize.js.map +0 -1
- package/mobile/dist/components/Depository/Depository.d.ts +0 -11
- package/mobile/dist/components/Depository/Depository.js +0 -42
- package/mobile/dist/components/Depository/Depository.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/dist/components/Depository/DepositoryContent.js +0 -2
- package/mobile/dist/components/Depository/DepositoryContent.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/dist/components/Depository/DepositoryFilter.js +0 -9
- package/mobile/dist/components/Depository/DepositoryFilter.js.map +0 -1
- package/mobile/dist/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/dist/components/Depository/DepositoryItem.js +0 -15
- package/mobile/dist/components/Depository/DepositoryItem.js.map +0 -1
- package/mobile/dist/components/Depository/useDepository.d.ts +0 -15
- package/mobile/dist/components/Depository/useDepository.js +0 -22
- package/mobile/dist/components/Depository/useDepository.js.map +0 -1
- package/mobile/dist/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/dist/ui-kit/Unit/Unit.js +0 -9
- package/mobile/dist/ui-kit/Unit/Unit.js.map +0 -1
- package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/dist/ui-kit/Unit/UnitProps.js +0 -2
- package/mobile/dist/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -5
- package/mobile/lib/components/CarouselCard/CarouselCard.js +0 -14
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +0 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +0 -11
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js +0 -2
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselCard/constants.d.ts +0 -2
- package/mobile/lib/components/CarouselCard/constants.js +0 -5
- package/mobile/lib/components/CarouselCard/constants.js.map +0 -1
- package/mobile/lib/components/CarouselCard/titleSize.d.ts +0 -1
- package/mobile/lib/components/CarouselCard/titleSize.js +0 -2
- package/mobile/lib/components/CarouselCard/titleSize.js.map +0 -1
- package/mobile/lib/components/Depository/Depository.d.ts +0 -11
- package/mobile/lib/components/Depository/Depository.js +0 -40
- package/mobile/lib/components/Depository/Depository.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryContent.d.ts +0 -5
- package/mobile/lib/components/Depository/DepositoryContent.js +0 -2
- package/mobile/lib/components/Depository/DepositoryContent.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryFilter.d.ts +0 -9
- package/mobile/lib/components/Depository/DepositoryFilter.js +0 -7
- package/mobile/lib/components/Depository/DepositoryFilter.js.map +0 -1
- package/mobile/lib/components/Depository/DepositoryItem.d.ts +0 -2
- package/mobile/lib/components/Depository/DepositoryItem.js +0 -13
- package/mobile/lib/components/Depository/DepositoryItem.js.map +0 -1
- package/mobile/lib/components/Depository/useDepository.d.ts +0 -15
- package/mobile/lib/components/Depository/useDepository.js +0 -19
- package/mobile/lib/components/Depository/useDepository.js.map +0 -1
- package/mobile/lib/ui-kit/Unit/Unit.d.ts +0 -2
- package/mobile/lib/ui-kit/Unit/Unit.js +0 -7
- package/mobile/lib/ui-kit/Unit/Unit.js.map +0 -1
- package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +0 -8
- package/mobile/lib/ui-kit/Unit/UnitProps.js +0 -2
- package/mobile/lib/ui-kit/Unit/UnitProps.js.map +0 -1
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +0 -14
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +0 -47
- package/mobile/src/components/CarouselCard/CarouselCard.ui.json +0 -1
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +0 -13
- package/mobile/src/components/CarouselCard/constants.ts +0 -6
- package/mobile/src/components/CarouselCard/titleSize.tsx +0 -1
- package/mobile/src/components/Depository/Depository.example.json +0 -6
- package/mobile/src/components/Depository/Depository.tsx +0 -84
- package/mobile/src/components/Depository/Depository.ui.json +0 -1
- package/mobile/src/components/Depository/DepositoryContent.ts +0 -6
- package/mobile/src/components/Depository/DepositoryFilter.tsx +0 -41
- package/mobile/src/components/Depository/DepositoryItem.tsx +0 -31
- package/mobile/src/components/Depository/useDepository.ts +0 -46
- package/mobile/src/ui-kit/Unit/Unit.tsx +0 -26
- package/mobile/src/ui-kit/Unit/UnitProps.ts +0 -8
- package/src/components/CarouselCard/CarouselCard.example.json +0 -14
- package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +0 -28
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +0 -53
- package/src/components/CarouselCard/CarouselCard.tsx +0 -47
- package/src/components/CarouselCard/CarouselCard.ui.json +0 -1
- package/src/components/CarouselCard/CarouselCardContent.ts +0 -13
- package/src/components/CarouselCard/constants.ts +0 -6
- package/src/components/CarouselCard/titleSize.mobile.tsx +0 -1
- package/src/components/CarouselCard/titleSize.tsx +0 -1
- package/src/components/Depository/Depository.example.json +0 -6
- package/src/components/Depository/Depository.fixture.mobile.tsx +0 -12
- package/src/components/Depository/Depository.fixture.tsx +0 -12
- package/src/components/Depository/Depository.tsx +0 -84
- package/src/components/Depository/Depository.ui.json +0 -1
- package/src/components/Depository/DepositoryContent.ts +0 -6
- package/src/components/Depository/DepositoryFilter.tsx +0 -41
- package/src/components/Depository/DepositoryItem.tsx +0 -31
- package/src/components/Depository/useDepository.ts +0 -46
- package/src/ui-kit/Unit/Unit.tsx +0 -26
- package/src/ui-kit/Unit/UnitProps.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalculatorStyle.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/CalculatorStyle.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CalculatorStyle.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/CalculatorStyle.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,mDAAmD;IAC5D,KAAK,EAAE,gCAAgC;IACvC,MAAM,EAAE,iCAAiC;CAC1C,CAAC"}
|
|
@@ -21,7 +21,7 @@ export const InputRange = JSX((props) => {
|
|
|
21
21
|
const handleChange = useCallback((ev) => {
|
|
22
22
|
onChange && onChange(parseDecimal(ev.target?.value));
|
|
23
23
|
}, [onChange]);
|
|
24
|
-
return (_jsxs("div", { className: className, children: [_jsxs("label", { className: "block relative", children: [title ? (_jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, _jsx("input", { className: style('text-h3 w-full h-14', 'pl-m
|
|
24
|
+
return (_jsxs("div", { className: className, children: [_jsxs("label", { className: "block relative", children: [title ? (_jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, _jsx("input", { className: style('text-h3 w-full h-14', 'pl-m box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
|
|
25
25
|
});
|
|
26
26
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
27
27
|
const renderRangeCaption = (items) => (_jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (_jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputRange.js","sourceRoot":"","sources":["../../../src/ui-kit/InputRange/InputRange.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,kBAAkB,GAAG,+CAA+C,CAAC;AAE3E,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,EACJ,SAAS,EACT,KAAK,EACL,KAAK,GAAG,EAAE,EACV,IAAI,GAAG,EAAE,EACT,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAA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AAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAEvF,MAAM,kBAAkB,GAAG,CAAC,KAAe,EAAE,EAAE,CAAC,CAC9C,cAAK,SAAS,EAAC,4BAA4B,YACxC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,KAAC,IAAI,IAAiB,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9E,IAAI,IADI,MAAM,CAAC,CAAC,CAAC,CAEb,CACR,CAAC,GACE,CACP,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { iconStyleMap } from './buttonClassNameConstants.js';
|
|
|
6
6
|
export const ButtonInner = JSX((props) => {
|
|
7
7
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
8
8
|
const iconHideStyle = isWithText(props) && 'hidden lg:block';
|
|
9
|
-
return (_jsxs("div", { className: style(buttonStyle(props), 'flex gap-xs'), children: [appendLeft ? (_jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendLeft })) : null, isWithText(props) ? (_jsxs("div", { className: "whitespace-pre", children: [aboveText ? _jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, _jsx("div", { className: `text-left ${aboveText ? 'text-s
|
|
9
|
+
return (_jsxs("div", { className: style(buttonStyle(props), 'flex gap-xs'), children: [appendLeft ? (_jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendLeft })) : null, isWithText(props) ? (_jsxs("div", { className: "whitespace-pre", children: [aboveText ? _jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, _jsx("div", { className: `text-left ${aboveText ? 'text-s' : 'text-l'}`, children: text })] })) : null, appendRight ? (_jsx("div", { className: style(iconHideStyle, iconStyleMap[version]), children: appendRight })) : null] }));
|
|
10
10
|
});
|
|
11
11
|
const buttonStyle = (props) => {
|
|
12
12
|
const { version, aboveText, rounded } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D,kBAAkB;AAClB,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAkB,CAAC,KAAK,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAChF,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC;IAE7D,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,aACrD,UAAU,CAAC,CAAC,CAAC,CACZ,cAAK,SAAS,EAAE,KAAK,CAAC,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,YAAG,UAAU,GAAO,CAChF,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,eAAK,SAAS,EAAC,gBAAgB,aAC5B,SAAS,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,8BAA8B,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,EACnF,cAAK,SAAS,EAAE,aAAa,SAAS,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B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,MAAM,aAAa,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAEnE,OAAO,KAAK,CACV,uCAAuC,EACvC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,kBAAkB,EACtD;QACE,cAAc,EAAE,OAAO;KACxB,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAmB,EAAE,EAAE,CACtE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/ui-kit/Loader/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/ui-kit/Loader/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAU1C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,KAAK,GAAG,mBAAmB,EAAE,QAAQ,GAAG,UAAU,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACrF,cACE,SAAS,EAAE,KAAK,CAAC,qDAAqD,EAAE,QAAQ,EAAE;QAChF,eAAe,EAAE,IAAI;KACtB,CAAC,YAEF,cACE,SAAS,EAAE,KAAK,CACd,cAAc,EACd,2BAA2B,EAC3B,6BAA6B,EAC7B,sBAAsB,EACtB,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,EAC5D,KAAK,CACN,EACD,IAAI,EAAC,QAAQ,GACb,GACE,CACP,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
3
|
import { JSX } from '@redneckz/uni-jsx';
|
|
4
|
-
export const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (_jsxs("div", { children: [_jsx("div", { className: "h-4 w-full bg-gray relative", children: _jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), _jsxs("div", { className: "relative", children: [showPercentage ? _jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? _jsx("div", { className: "text-right
|
|
4
|
+
export const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (_jsxs("div", { children: [_jsx("div", { className: "h-4 w-full bg-gray relative", children: _jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), _jsxs("div", { className: "relative", children: [showPercentage ? _jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? _jsx("div", { className: "text-right pr-m text-gray", children: description }) : null] })] })));
|
|
5
5
|
//# sourceMappingURL=ProgressBar.js.map
|
|
@@ -14,14 +14,12 @@ import { CalculatorDeposit } from './CalculatorDeposit/CalculatorDeposit';
|
|
|
14
14
|
import { CalculatorRefinancing } from './CalculatorRefinancing/CalculatorRefinancing';
|
|
15
15
|
import { CardTransfer } from './CardTransfer/CardTransfer';
|
|
16
16
|
import { Carousel } from './Carousel/Carousel';
|
|
17
|
-
import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
18
17
|
import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
19
18
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
20
19
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
21
20
|
import { CreditCardForm } from './CreditCardForm/CreditCardForm';
|
|
22
21
|
import { CreditForm } from './CreditForm/CreditForm';
|
|
23
22
|
import { DepositFiltration } from './DepositFiltration/DepositFiltration';
|
|
24
|
-
import { Depository } from './Depository/Depository';
|
|
25
23
|
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
26
24
|
import { Footer } from './Footer/Footer';
|
|
27
25
|
import { GalleryLayout } from './GalleryLayout/GalleryLayout';
|
|
@@ -57,12 +55,10 @@ export const Blocks: BlocksRegistry = {
|
|
|
57
55
|
CalculatorRefinancing,
|
|
58
56
|
CardTransfer,
|
|
59
57
|
Carousel,
|
|
60
|
-
CarouselCard,
|
|
61
58
|
CarouselCatalogCard,
|
|
62
59
|
CarouselRecommendationCard,
|
|
63
60
|
CarouselTariffsCard,
|
|
64
61
|
DepositFiltration,
|
|
65
|
-
Depository,
|
|
66
62
|
ErrorBlock,
|
|
67
63
|
Footer,
|
|
68
64
|
GalleryLayout,
|
|
@@ -97,9 +97,7 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
|
|
|
97
97
|
value: calcParams.moneyExtra,
|
|
98
98
|
})
|
|
99
99
|
: null}
|
|
100
|
-
<div className="sm:hidden
|
|
101
|
-
{paymentTypeElement}
|
|
102
|
-
</div>
|
|
100
|
+
<div className="sm:hidden pb-m border-b border-main-divider">{paymentTypeElement}</div>
|
|
103
101
|
</div>
|
|
104
102
|
<div className={style(CalculatorStyle.result, '@4xl:w-1/2')}>
|
|
105
103
|
<CalculatorValue title="Полная стоимость кредита" value={calcSource?.totalLoanCost} />
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
4
2
|
import { useForm } from '../../hooks/useForm/useForm';
|
|
5
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
4
|
import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
|
|
@@ -31,35 +29,24 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
31
29
|
formType = 'private',
|
|
32
30
|
...rest
|
|
33
31
|
}) => {
|
|
34
|
-
const [isDisabled, { setValue: setDisabled }] = useBool(false);
|
|
35
|
-
|
|
36
32
|
const handleSubmit = useSubmitCardTransfer(formType);
|
|
37
33
|
|
|
38
34
|
const [{ amount }, { field, onSubmit }] = useForm(INITIAL_FORM_STATE, {
|
|
39
35
|
onSubmit: handleSubmit,
|
|
40
36
|
});
|
|
41
37
|
|
|
42
|
-
// TODO: dont set state in useEffect
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
setDisabled(amount <= 0);
|
|
45
|
-
}, [amount]);
|
|
46
|
-
|
|
47
38
|
return (
|
|
48
39
|
<BlockWrapper
|
|
49
|
-
className={style('flex flex-col items-center', className)}
|
|
40
|
+
className={style('flex flex-col gap-4xl items-center', className)}
|
|
50
41
|
defaultPadding="p-6xl"
|
|
51
42
|
{...rest}
|
|
52
43
|
>
|
|
53
44
|
{title ? (
|
|
54
|
-
<Heading
|
|
55
|
-
className="pb-lg xl:pb-4xl self-start xl:self-center"
|
|
56
|
-
headingType="h3"
|
|
57
|
-
title={title}
|
|
58
|
-
/>
|
|
45
|
+
<Heading className="self-start xl:self-center" headingType="h3" title={title} />
|
|
59
46
|
) : null}
|
|
60
|
-
<form className="w-full xl:max-w-
|
|
47
|
+
<form className="w-full xl:max-w-md space-y-lg" method="POST" onSubmit={onSubmit}>
|
|
61
48
|
<CurrencyInput
|
|
62
|
-
valid={
|
|
49
|
+
valid={amount > 0}
|
|
63
50
|
label={label}
|
|
64
51
|
max={MAX_AMOUNT}
|
|
65
52
|
min={MIN_AMOUNT}
|
|
@@ -67,7 +54,7 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
67
54
|
/>
|
|
68
55
|
<input type="hidden" name="amount" value={amount} />
|
|
69
56
|
{button?.text ? (
|
|
70
|
-
<SubmitButton className="w-full
|
|
57
|
+
<SubmitButton className="w-full" disabled={amount <= 0}>
|
|
71
58
|
{button.text}
|
|
72
59
|
</SubmitButton>
|
|
73
60
|
) : null}
|
|
@@ -29,8 +29,8 @@ export const SubmitFailedDialog = ({
|
|
|
29
29
|
isEmbedded={true}
|
|
30
30
|
/>
|
|
31
31
|
{errorMessage ? (
|
|
32
|
-
<div className="bg-secondary-dark rounded-xl
|
|
33
|
-
<div className="col-span-8">
|
|
32
|
+
<div className="bg-secondary-dark rounded-xl p-m grid gap-m grid-cols-12">
|
|
33
|
+
<div className="col-span-8">{errorMessage}</div>
|
|
34
34
|
<div className="col-span-4">
|
|
35
35
|
<Img image={{ icon: 'ResponseFailIcon', iconVersion: 'normal' }} />
|
|
36
36
|
</div>
|
|
@@ -54,11 +54,7 @@ export const renderCarouselCards = ({
|
|
|
54
54
|
const cardWrapperStyle = (
|
|
55
55
|
_: BlockDef | undefined,
|
|
56
56
|
{ someCardsHighlighted }: { someCardsHighlighted?: boolean },
|
|
57
|
-
) =>
|
|
58
|
-
style(
|
|
59
|
-
cardBaseStyle,
|
|
60
|
-
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'),
|
|
61
|
-
);
|
|
57
|
+
) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-16'));
|
|
62
58
|
|
|
63
59
|
const cardStyle = (
|
|
64
60
|
_: BlockDef | undefined,
|
|
@@ -72,7 +68,7 @@ const cardStyle = (
|
|
|
72
68
|
cardBaseStyle,
|
|
73
69
|
'min-w-80',
|
|
74
70
|
CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
|
|
75
|
-
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-
|
|
71
|
+
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-16' : 'pt-3xl'),
|
|
76
72
|
getBorderStyle(showBorder),
|
|
77
73
|
showBorder && 'h-full',
|
|
78
74
|
);
|
|
@@ -17,7 +17,7 @@ export const TextInformationLink = JSX<Partial<TextInformationLinkProps>>(
|
|
|
17
17
|
return (
|
|
18
18
|
<a
|
|
19
19
|
className={style(
|
|
20
|
-
'text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-
|
|
20
|
+
'text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-72',
|
|
21
21
|
className,
|
|
22
22
|
)}
|
|
23
23
|
href={href}
|
|
@@ -66,11 +66,7 @@ export const HeaderTopMenu = JSX<HeaderMenuProps>(
|
|
|
66
66
|
data={dataHeader}
|
|
67
67
|
showTitle={false}
|
|
68
68
|
/>
|
|
69
|
-
<div
|
|
70
|
-
ref={topItemsListRef}
|
|
71
|
-
className="overflow-hidden min-w-[160px] pb-xs mt-xs"
|
|
72
|
-
role="menu"
|
|
73
|
-
>
|
|
69
|
+
<div ref={topItemsListRef} className="overflow-hidden min-w-40 pb-xs mt-xs" role="menu">
|
|
74
70
|
{navigationItems.map((_, i) => (
|
|
75
71
|
<HeaderTopMenuItem
|
|
76
72
|
key={String(i)}
|
|
@@ -49,21 +49,21 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
|
|
|
49
49
|
head={<Logo />}
|
|
50
50
|
onClose={onClose}
|
|
51
51
|
>
|
|
52
|
-
<div className="flex flex-col gap-lg items-center
|
|
53
|
-
<div className="flex
|
|
52
|
+
<div className="flex flex-col gap-lg items-center">
|
|
53
|
+
<div className="flex">
|
|
54
54
|
<img className="grow" src={captcha}></img>
|
|
55
55
|
<Button className="w-8" embedded onClick={handleCreateCaptcha}>
|
|
56
56
|
<Icon iconVersion="normal" name="RefreshIcon" />
|
|
57
57
|
</Button>
|
|
58
58
|
</div>
|
|
59
59
|
<Input
|
|
60
|
-
className="w-
|
|
60
|
+
className="w-80"
|
|
61
61
|
onChange={setCode}
|
|
62
62
|
value={code}
|
|
63
63
|
placeholder="Введите код с картинки"
|
|
64
64
|
/>
|
|
65
65
|
{hasError ? <div className="text-error">Неверный код</div> : null}
|
|
66
|
-
<div className="flex w-
|
|
66
|
+
<div className="flex w-80 justify-between">
|
|
67
67
|
<Button version="secondary" onClick={close}>
|
|
68
68
|
Вернуться
|
|
69
69
|
</Button>
|
|
@@ -54,7 +54,7 @@ export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
56
|
<Dialog className="my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0" onClose={onClose}>
|
|
57
|
-
<div className="flex flex-col gap-lg items-center mt-xs
|
|
57
|
+
<div className="flex flex-col gap-lg items-center mt-xs mx-6xl">
|
|
58
58
|
<Heading
|
|
59
59
|
className="whitespace-pre-wrap text-center"
|
|
60
60
|
title="Нашли черновик вашей заявки"
|
|
@@ -130,7 +130,7 @@ const renderText = (timeNextReq: number, handleSendCode: () => void) =>
|
|
|
130
130
|
timeNextReq ? (
|
|
131
131
|
<div className="flex flex-row text-l font-light text-base">
|
|
132
132
|
Получить новый код можно через
|
|
133
|
-
<Timer className="
|
|
133
|
+
<Timer className="pl-2xs" seconds={timeNextReq} />
|
|
134
134
|
</div>
|
|
135
135
|
) : (
|
|
136
136
|
<Button embedded onClick={handleSendCode}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const CalculatorStyle = {
|
|
2
|
-
wrapper: 'flex flex-col justify-between lg:flex-row gap-
|
|
2
|
+
wrapper: 'flex flex-col justify-between lg:flex-row gap-4xl',
|
|
3
3
|
input: 'flex flex-col lg:w-1/2 gap-2xl',
|
|
4
4
|
result: 'flex flex-col gap-y-xl min-w-52',
|
|
5
5
|
};
|
|
@@ -17,7 +17,7 @@ export const ButtonInner = JSX<LinkButtonProps>((props) => {
|
|
|
17
17
|
{isWithText(props) ? (
|
|
18
18
|
<div className="whitespace-pre">
|
|
19
19
|
{aboveText ? <div className="text-xs font-light text-left">{aboveText}</div> : null}
|
|
20
|
-
<div className={`text-left ${aboveText ? 'text-s
|
|
20
|
+
<div className={`text-left ${aboveText ? 'text-s' : 'text-l'}`}>{text}</div>
|
|
21
21
|
</div>
|
|
22
22
|
) : null}
|
|
23
23
|
{appendRight ? (
|
|
@@ -15,7 +15,7 @@ export const ProgressBar = JSX<ProgressBarProps>(
|
|
|
15
15
|
</div>
|
|
16
16
|
<div className="relative">
|
|
17
17
|
{showPercentage ? <div className="absolute left-2/4 text-green">{step}%</div> : null}
|
|
18
|
-
{description ? <div className="text-right
|
|
18
|
+
{description ? <div className="text-right pr-m text-gray">{description}</div> : null}
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.843",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"path": "lib/common.css"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
"limit": "
|
|
197
|
+
"limit": "94 kB",
|
|
198
198
|
"path": "bundle/bundle.umd.min.js"
|
|
199
199
|
}
|
|
200
200
|
],
|
|
@@ -14,14 +14,12 @@ import { CalculatorDeposit } from './CalculatorDeposit/CalculatorDeposit';
|
|
|
14
14
|
import { CalculatorRefinancing } from './CalculatorRefinancing/CalculatorRefinancing';
|
|
15
15
|
import { CardTransfer } from './CardTransfer/CardTransfer';
|
|
16
16
|
import { Carousel } from './Carousel/Carousel';
|
|
17
|
-
import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
18
17
|
import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
19
18
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
20
19
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
21
20
|
import { CreditCardForm } from './CreditCardForm/CreditCardForm';
|
|
22
21
|
import { CreditForm } from './CreditForm/CreditForm';
|
|
23
22
|
import { DepositFiltration } from './DepositFiltration/DepositFiltration';
|
|
24
|
-
import { Depository } from './Depository/Depository';
|
|
25
23
|
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
26
24
|
import { Footer } from './Footer/Footer';
|
|
27
25
|
import { GalleryLayout } from './GalleryLayout/GalleryLayout';
|
|
@@ -57,12 +55,10 @@ export const Blocks: BlocksRegistry = {
|
|
|
57
55
|
CalculatorRefinancing,
|
|
58
56
|
CardTransfer,
|
|
59
57
|
Carousel,
|
|
60
|
-
CarouselCard,
|
|
61
58
|
CarouselCatalogCard,
|
|
62
59
|
CarouselRecommendationCard,
|
|
63
60
|
CarouselTariffsCard,
|
|
64
61
|
DepositFiltration,
|
|
65
|
-
Depository,
|
|
66
62
|
ErrorBlock,
|
|
67
63
|
Footer,
|
|
68
64
|
GalleryLayout,
|
package/src/components/Blocks.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { CalculatorDeposit } from './CalculatorDeposit/CalculatorDeposit';
|
|
|
14
14
|
import { CalculatorRefinancing } from './CalculatorRefinancing/CalculatorRefinancing';
|
|
15
15
|
import { CardTransfer } from './CardTransfer/CardTransfer';
|
|
16
16
|
import { Carousel } from './Carousel/Carousel';
|
|
17
|
-
import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
18
17
|
import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
19
18
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
20
19
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
@@ -23,7 +22,6 @@ import { CreditCardForm } from './CreditCardForm/CreditCardForm';
|
|
|
23
22
|
import { CreditForm } from './CreditForm/CreditForm';
|
|
24
23
|
import { DebitForm } from './DebitForm/DebitForm';
|
|
25
24
|
import { DepositFiltration } from './DepositFiltration/DepositFiltration';
|
|
26
|
-
import { Depository } from './Depository/Depository';
|
|
27
25
|
import { ErrorBlock } from './ErrorBlock/ErrorBlock';
|
|
28
26
|
import { Footer } from './Footer/Footer';
|
|
29
27
|
import { GalleryLayout } from './GalleryLayout/GalleryLayout';
|
|
@@ -60,13 +58,11 @@ export const Blocks: BlocksRegistry = {
|
|
|
60
58
|
CalculatorRefinancing,
|
|
61
59
|
CardTransfer,
|
|
62
60
|
Carousel,
|
|
63
|
-
CarouselCard,
|
|
64
61
|
CarouselCatalogCard,
|
|
65
62
|
CarouselRecommendationCard,
|
|
66
63
|
CarouselTariffsCard,
|
|
67
64
|
ContactsBlock,
|
|
68
65
|
DepositFiltration,
|
|
69
|
-
Depository,
|
|
70
66
|
ErrorBlock,
|
|
71
67
|
Footer,
|
|
72
68
|
GalleryLayout,
|
|
@@ -97,9 +97,7 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
|
|
|
97
97
|
value: calcParams.moneyExtra,
|
|
98
98
|
})
|
|
99
99
|
: null}
|
|
100
|
-
<div className="sm:hidden
|
|
101
|
-
{paymentTypeElement}
|
|
102
|
-
</div>
|
|
100
|
+
<div className="sm:hidden pb-m border-b border-main-divider">{paymentTypeElement}</div>
|
|
103
101
|
</div>
|
|
104
102
|
<div className={style(CalculatorStyle.result, '@4xl:w-1/2')}>
|
|
105
103
|
<CalculatorValue title="Полная стоимость кредита" value={calcSource?.totalLoanCost} />
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
4
2
|
import { useForm } from '../../hooks/useForm/useForm';
|
|
5
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
4
|
import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
|
|
@@ -31,35 +29,24 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
31
29
|
formType = 'private',
|
|
32
30
|
...rest
|
|
33
31
|
}) => {
|
|
34
|
-
const [isDisabled, { setValue: setDisabled }] = useBool(false);
|
|
35
|
-
|
|
36
32
|
const handleSubmit = useSubmitCardTransfer(formType);
|
|
37
33
|
|
|
38
34
|
const [{ amount }, { field, onSubmit }] = useForm(INITIAL_FORM_STATE, {
|
|
39
35
|
onSubmit: handleSubmit,
|
|
40
36
|
});
|
|
41
37
|
|
|
42
|
-
// TODO: dont set state in useEffect
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
setDisabled(amount <= 0);
|
|
45
|
-
}, [amount]);
|
|
46
|
-
|
|
47
38
|
return (
|
|
48
39
|
<BlockWrapper
|
|
49
|
-
className={style('flex flex-col items-center', className)}
|
|
40
|
+
className={style('flex flex-col gap-4xl items-center', className)}
|
|
50
41
|
defaultPadding="p-6xl"
|
|
51
42
|
{...rest}
|
|
52
43
|
>
|
|
53
44
|
{title ? (
|
|
54
|
-
<Heading
|
|
55
|
-
className="pb-lg xl:pb-4xl self-start xl:self-center"
|
|
56
|
-
headingType="h3"
|
|
57
|
-
title={title}
|
|
58
|
-
/>
|
|
45
|
+
<Heading className="self-start xl:self-center" headingType="h3" title={title} />
|
|
59
46
|
) : null}
|
|
60
|
-
<form className="w-full xl:max-w-
|
|
47
|
+
<form className="w-full xl:max-w-md space-y-lg" method="POST" onSubmit={onSubmit}>
|
|
61
48
|
<CurrencyInput
|
|
62
|
-
valid={
|
|
49
|
+
valid={amount > 0}
|
|
63
50
|
label={label}
|
|
64
51
|
max={MAX_AMOUNT}
|
|
65
52
|
min={MIN_AMOUNT}
|
|
@@ -67,7 +54,7 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
67
54
|
/>
|
|
68
55
|
<input type="hidden" name="amount" value={amount} />
|
|
69
56
|
{button?.text ? (
|
|
70
|
-
<SubmitButton className="w-full
|
|
57
|
+
<SubmitButton className="w-full" disabled={amount <= 0}>
|
|
71
58
|
{button.text}
|
|
72
59
|
</SubmitButton>
|
|
73
60
|
) : null}
|
|
@@ -29,8 +29,8 @@ export const SubmitFailedDialog = ({
|
|
|
29
29
|
isEmbedded={true}
|
|
30
30
|
/>
|
|
31
31
|
{errorMessage ? (
|
|
32
|
-
<div className="bg-secondary-dark rounded-xl
|
|
33
|
-
<div className="col-span-8">
|
|
32
|
+
<div className="bg-secondary-dark rounded-xl p-m grid gap-m grid-cols-12">
|
|
33
|
+
<div className="col-span-8">{errorMessage}</div>
|
|
34
34
|
<div className="col-span-4">
|
|
35
35
|
<Img image={{ icon: 'ResponseFailIcon', iconVersion: 'normal' }} />
|
|
36
36
|
</div>
|
|
@@ -3,7 +3,6 @@ import { type BlockDef } from '../../model/ContentPageDef';
|
|
|
3
3
|
import { type Picture } from '../../model/Picture';
|
|
4
4
|
import '../../setup-fixture';
|
|
5
5
|
import { Blocks } from '../Blocks';
|
|
6
|
-
import { CARD } from '../CarouselCard/CarouselCard.fixture';
|
|
7
6
|
import { CATALOG_CARD, CATALOG_CARD_NEW } from '../CarouselCatalogCard/CarouselCatalogCard.fixture';
|
|
8
7
|
import { CAROUSEL_RECOMMENDATION_CARD_BENEFITS } from '../CarouselRecommendationCard/CarouselRecommendationCard.fixture';
|
|
9
8
|
import { CAROUSEL_RECOMMENDATION_CARD } from '../CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile';
|
|
@@ -46,21 +45,6 @@ const options = {
|
|
|
46
45
|
|
|
47
46
|
export default {
|
|
48
47
|
default: (
|
|
49
|
-
<div className="container grid grid-cols-12">
|
|
50
|
-
<Carousel
|
|
51
|
-
className="col-span-12"
|
|
52
|
-
block={{
|
|
53
|
-
type: 'Carousel',
|
|
54
|
-
blocks: [
|
|
55
|
-
{ type: 'CarouselCard', content: CARD },
|
|
56
|
-
{ type: 'CarouselCard', content: CARD },
|
|
57
|
-
],
|
|
58
|
-
}}
|
|
59
|
-
options={options}
|
|
60
|
-
/>
|
|
61
|
-
</div>
|
|
62
|
-
),
|
|
63
|
-
catalog: (
|
|
64
48
|
<div className="container grid grid-cols-12">
|
|
65
49
|
<Carousel
|
|
66
50
|
className="col-span-12"
|
|
@@ -3,7 +3,6 @@ import { type BlockDef } from '../../model/ContentPageDef';
|
|
|
3
3
|
import { type Picture } from '../../model/Picture';
|
|
4
4
|
import '../../setup-fixture';
|
|
5
5
|
import { Blocks } from '../Blocks';
|
|
6
|
-
import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
|
|
7
6
|
import { CATALOG_CARD, CATALOG_CARD_NEW } from '../CarouselCatalogCard/CarouselCatalogCard.fixture';
|
|
8
7
|
import {
|
|
9
8
|
CAROUSEL_RECOMMENDATION_CARD_BENEFITS,
|
|
@@ -69,40 +68,6 @@ const options = {
|
|
|
69
68
|
|
|
70
69
|
export default {
|
|
71
70
|
default: (
|
|
72
|
-
<div className="container grid grid-cols-12">
|
|
73
|
-
<Carousel
|
|
74
|
-
className="col-span-12"
|
|
75
|
-
visibleItemCount={1}
|
|
76
|
-
noCardBorder={true}
|
|
77
|
-
block={{
|
|
78
|
-
type: 'Carousel',
|
|
79
|
-
blocks: [
|
|
80
|
-
{ type: 'CarouselCard', content: CARD },
|
|
81
|
-
{ type: 'CarouselCard', content: CARD_NEW },
|
|
82
|
-
],
|
|
83
|
-
}}
|
|
84
|
-
options={options}
|
|
85
|
-
/>
|
|
86
|
-
</div>
|
|
87
|
-
),
|
|
88
|
-
'mini cards': (
|
|
89
|
-
<div className="container grid grid-cols-12">
|
|
90
|
-
<Carousel
|
|
91
|
-
className="col-span-12"
|
|
92
|
-
visibleItemCount={0}
|
|
93
|
-
noCardBorder={true}
|
|
94
|
-
block={{
|
|
95
|
-
type: 'Carousel',
|
|
96
|
-
blocks: Array.from<BlockDef>({ length: 6 }).fill({
|
|
97
|
-
type: 'CarouselCard',
|
|
98
|
-
content: CARD_MINI,
|
|
99
|
-
}),
|
|
100
|
-
}}
|
|
101
|
-
options={options}
|
|
102
|
-
/>
|
|
103
|
-
</div>
|
|
104
|
-
),
|
|
105
|
-
catalog: (
|
|
106
71
|
<div className="container grid grid-cols-12">
|
|
107
72
|
<Carousel
|
|
108
73
|
className="col-span-12"
|
|
@@ -54,11 +54,7 @@ export const renderCarouselCards = ({
|
|
|
54
54
|
const cardWrapperStyle = (
|
|
55
55
|
_: BlockDef | undefined,
|
|
56
56
|
{ someCardsHighlighted }: { someCardsHighlighted?: boolean },
|
|
57
|
-
) =>
|
|
58
|
-
style(
|
|
59
|
-
cardBaseStyle,
|
|
60
|
-
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'),
|
|
61
|
-
);
|
|
57
|
+
) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-16'));
|
|
62
58
|
|
|
63
59
|
const cardStyle = (
|
|
64
60
|
_: BlockDef | undefined,
|
|
@@ -72,7 +68,7 @@ const cardStyle = (
|
|
|
72
68
|
cardBaseStyle,
|
|
73
69
|
'min-w-80',
|
|
74
70
|
CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
|
|
75
|
-
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-
|
|
71
|
+
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-16' : 'pt-3xl'),
|
|
76
72
|
getBorderStyle(showBorder),
|
|
77
73
|
showBorder && 'h-full',
|
|
78
74
|
);
|