@redneckz/wildless-cms-uni-blocks 0.6.36 → 0.6.37
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/bin/migration-scripts/0.6.32.js +6 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +121 -113
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
- package/{lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts → bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/bundle/components/Gallery/GalleryContent.d.ts +5 -0
- package/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
- package/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
- package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/bundle/components/Video/VideoContent.d.ts +1 -0
- package/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
- package/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
- package/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
- package/bundle/ui-kit/Text/Text.d.ts +1 -26
- package/bundle/ui-kit/Text/TextProps.d.ts +26 -0
- package/dist/components/Blocks.js +7 -3
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +4 -2
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +3 -1
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +5 -2
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +2 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
- package/dist/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +6 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +5 -0
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +2 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
- package/dist/components/ImgBlock/ImgBlock.js +11 -0
- package/dist/components/ImgBlock/ImgBlock.js.map +1 -0
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
- package/dist/components/{InvestmentGallery/InvestmentGalleryContent.js → ImgBlock/ImgBlockContent.js} +1 -1
- package/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
- package/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
- package/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
- package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
- package/{mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js → dist/components/ParagraphBlock/ParagraphBlockContent.js} +1 -1
- package/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
- package/dist/components/ProductGallery/ProductGallery.js +7 -7
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
- package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
- package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +1 -3
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/TariffsTable/TableTileHeader.js +1 -3
- package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +6 -6
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +3 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +1 -0
- package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
- package/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
- package/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Text/Text.d.ts +1 -26
- package/dist/ui-kit/Text/Text.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +26 -0
- package/dist/ui-kit/Text/TextProps.js +2 -0
- package/dist/ui-kit/Text/TextProps.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +7 -3
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +5 -3
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +4 -2
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +6 -3
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
- package/lib/components/Carousel/Carousel.js +2 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.d.ts +10 -0
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
- package/{bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +6 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +5 -0
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +3 -3
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
- package/lib/components/{InvestmentGallery/InvestmentGallery.fixture.d.ts → ImgBlock/ImgBlock.fixture.d.ts} +0 -2
- package/lib/components/ImgBlock/ImgBlock.js +9 -0
- package/lib/components/ImgBlock/ImgBlock.js.map +1 -0
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
- package/lib/components/ImgBlock/ImgBlockContent.js +2 -0
- package/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
- package/lib/components/ParagraphBlock/ParagraphBlock.fixture.d.ts +9 -0
- package/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
- package/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
- package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
- package/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
- package/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
- package/lib/components/ProductGallery/ProductGallery.js +8 -8
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
- package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
- package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +1 -3
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/TariffsTable/TableTileHeader.js +1 -3
- package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +6 -6
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +4 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +1 -0
- package/lib/ui-kit/InnerTable/InnerTable.js +4 -3
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
- package/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
- package/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Text/Text.d.ts +1 -26
- package/lib/ui-kit/Text/Text.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +26 -0
- package/lib/ui-kit/Text/TextProps.js +2 -0
- package/lib/ui-kit/Text/TextProps.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +4 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
- package/mobile/bundle/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/bundle/components/Gallery/GalleryContent.d.ts +5 -0
- package/mobile/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
- package/mobile/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
- package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/mobile/bundle/components/Video/VideoContent.d.ts +1 -0
- package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
- package/mobile/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
- package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
- package/mobile/bundle/ui-kit/Text/Text.d.ts +1 -26
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +26 -0
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +4 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +5 -2
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +2 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +6 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +5 -0
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +2 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
- package/mobile/dist/components/ImgBlock/ImgBlock.js +11 -0
- package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -0
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
- package/mobile/dist/components/ImgBlock/ImgBlockContent.js +2 -0
- package/mobile/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
- package/mobile/dist/components/ProductGallery/ProductGallery.js +7 -7
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
- package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -3
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
- package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
- package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Text/Text.d.ts +1 -26
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +26 -0
- package/mobile/dist/ui-kit/Text/TextProps.js +2 -0
- package/mobile/dist/ui-kit/Text/TextProps.js.map +1 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +5 -3
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +6 -3
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +2 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +4 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +6 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +5 -0
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +3 -3
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
- package/mobile/lib/components/ImgBlock/ImgBlock.js +9 -0
- package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -0
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
- package/mobile/lib/components/ImgBlock/ImgBlockContent.js +2 -0
- package/mobile/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
- package/mobile/lib/components/ProductGallery/ProductGallery.js +8 -8
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
- package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -3
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +4 -3
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
- package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
- package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Text/Text.d.ts +1 -26
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +26 -0
- package/mobile/lib/ui-kit/Text/TextProps.js +2 -0
- package/mobile/lib/ui-kit/Text/TextProps.js.map +1 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
- package/mobile/src/components/Carousel/Carousel.tsx +2 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
- package/mobile/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +27 -32
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +7 -1
- package/mobile/src/components/Gallery/GalleryContent.ts +5 -0
- package/mobile/src/components/Gallery/GalleryInner.tsx +0 -1
- package/mobile/src/components/Header/Header.tsx +4 -6
- package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -0
- package/mobile/src/components/ImgBlock/ImgBlock.example.json +11 -0
- package/mobile/src/components/ImgBlock/ImgBlock.tsx +17 -0
- package/mobile/src/components/ImgBlock/ImgBlock.ui.json +7 -0
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +8 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
- package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +13 -13
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
- package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +8 -10
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
- package/mobile/src/components/Video/VideoContent.ts +1 -0
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
- package/mobile/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
- package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
- package/mobile/src/ui-kit/Radio/RadioProps.ts +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +0 -1
- package/mobile/src/ui-kit/Text/Text.tsx +1 -63
- package/mobile/src/ui-kit/Text/TextProps.ts +63 -0
- package/package.json +1 -1
- package/src/components/Blocks.ts +7 -3
- package/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
- package/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
- package/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
- package/src/components/Carousel/Carousel.fixture.tsx +20 -1
- package/src/components/Carousel/Carousel.tsx +2 -1
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +2 -2
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
- package/src/components/{InvestmentGallery/InvestmentGallery.fixture.tsx → CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx} +21 -27
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
- package/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +27 -32
- package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/src/components/Gallery/GalleryCardInner.tsx +7 -1
- package/src/components/Gallery/GalleryContent.ts +5 -0
- package/src/components/Gallery/GalleryInner.tsx +0 -1
- package/src/components/Header/Header.mobile.tsx +4 -6
- package/src/components/Header/HeaderSubMenu.tsx +1 -0
- package/src/components/ImgBlock/ImgBlock.example.json +11 -0
- package/src/components/ImgBlock/ImgBlock.fixture.tsx +21 -0
- package/src/components/ImgBlock/ImgBlock.tsx +17 -0
- package/src/components/ImgBlock/ImgBlock.ui.json +7 -0
- package/src/components/ImgBlock/ImgBlockContent.ts +8 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
- package/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
- package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +45 -0
- package/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
- package/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
- package/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
- package/src/components/ProductGallery/ProductGallery.tsx +13 -13
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
- package/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.tsx +2 -3
- package/src/components/TariffsTable/TableTileHeader.tsx +8 -10
- package/src/components/TariffsTable/TariffsTable.tsx +20 -22
- package/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
- package/src/components/Video/VideoContent.ts +1 -0
- package/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
- package/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
- package/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
- package/src/ui-kit/Radio/Radio.tsx +1 -1
- package/src/ui-kit/Radio/RadioProps.ts +1 -1
- package/src/ui-kit/Select/Select.tsx +0 -1
- package/src/ui-kit/Text/Text.tsx +1 -63
- package/src/ui-kit/Text/TextProps.ts +63 -0
- package/tailwind.config.cjs +8 -0
- package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
- package/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
- package/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
- package/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
- package/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
- package/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
- package/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
- package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
- package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
- package/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
- package/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
- package/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
- package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
4
|
import { VersionStyleMap } from '../../model/BlockVersion';
|
|
5
5
|
import { BorderVersionStyleMap } from '../../model/BorderVersion';
|
|
6
|
+
import { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
6
7
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
7
8
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
8
9
|
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
9
10
|
import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
|
|
10
|
-
import type { ProductGalleryContent
|
|
11
|
+
import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
11
12
|
|
|
12
13
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
|
|
13
14
|
|
|
14
|
-
interface
|
|
15
|
-
slide?:
|
|
15
|
+
interface NavButtonProps {
|
|
16
|
+
slide?: HeadlineCommonProps;
|
|
16
17
|
i: number;
|
|
17
|
-
|
|
18
|
+
isActive: boolean;
|
|
18
19
|
onClick: () => void;
|
|
19
20
|
version: BlockVersion;
|
|
20
21
|
}
|
|
@@ -34,6 +35,7 @@ export const ProductGallery = JSX<ProductGalleryProps>(
|
|
|
34
35
|
const galleryNav = slides.map((s) => s.nav);
|
|
35
36
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
36
37
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
38
|
+
const handleActiveSlideIndex = useCallback((_: number) => setActiveSlideIndex(_), []);
|
|
37
39
|
|
|
38
40
|
return (
|
|
39
41
|
<BlockWrapper
|
|
@@ -54,8 +56,8 @@ export const ProductGallery = JSX<ProductGalleryProps>(
|
|
|
54
56
|
renderNavButton({
|
|
55
57
|
slide,
|
|
56
58
|
i,
|
|
57
|
-
activeSlideIndex,
|
|
58
|
-
onClick: () =>
|
|
59
|
+
isActive: Boolean(i === activeSlideIndex),
|
|
60
|
+
onClick: () => handleActiveSlideIndex(i),
|
|
59
61
|
version,
|
|
60
62
|
}),
|
|
61
63
|
)}
|
|
@@ -87,17 +89,15 @@ function renderProductBlock(block: ProductBlockInnerContent & UniBlockProps, i:
|
|
|
87
89
|
);
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
function renderNavButton({ slide, i,
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const btnClassName = isActiveBtn
|
|
92
|
+
function renderNavButton({ slide, i, isActive, onClick, version }: NavButtonProps) {
|
|
93
|
+
const btnClassName = isActive
|
|
94
94
|
? 'bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6'
|
|
95
95
|
: `min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur
|
|
96
96
|
${VersionStyleMap[version]}`;
|
|
97
|
-
const btnTitleClassName =
|
|
97
|
+
const btnTitleClassName = isActive
|
|
98
98
|
? 'text-primary-text !text-h6 p-2'
|
|
99
99
|
: `text-l pb-1 ${productBlockStyleMap[version].title}`;
|
|
100
|
-
const btnDescClassName =
|
|
100
|
+
const btnDescClassName = isActive
|
|
101
101
|
? 'text-secondary-text text-l-light'
|
|
102
102
|
: `text-m-light ${productBlockStyleMap[version].text}`;
|
|
103
103
|
|
|
@@ -20,31 +20,29 @@ export const RegionsAndBranches = JSX<RegionsAndBranchesProps>(
|
|
|
20
20
|
branches = [],
|
|
21
21
|
selectedBranch,
|
|
22
22
|
onSelectedBranch,
|
|
23
|
-
}) =>
|
|
24
|
-
|
|
25
|
-
<div className="
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
<div className="max-w-[396px] w-1/2">
|
|
37
|
-
<WrapperSelect
|
|
38
|
-
data={branches}
|
|
39
|
-
fieldValue="branchCode"
|
|
40
|
-
fieldLabel="address"
|
|
41
|
-
selected={selectedBranch}
|
|
42
|
-
setSelected={onSelectedBranch}
|
|
43
|
-
label="Отделение"
|
|
44
|
-
placeholder="Выберите отделение"
|
|
45
|
-
/>
|
|
46
|
-
</div>
|
|
23
|
+
}) => (
|
|
24
|
+
<div className="flex justify-between gap-4 mb-6">
|
|
25
|
+
<div className="max-w-[396px] w-1/2">
|
|
26
|
+
<WrapperSelect
|
|
27
|
+
data={regions}
|
|
28
|
+
fieldValue="code"
|
|
29
|
+
fieldLabel="name"
|
|
30
|
+
selected={selectedRegion}
|
|
31
|
+
setSelected={onSelectedRegion}
|
|
32
|
+
label="Регион"
|
|
33
|
+
/>
|
|
47
34
|
</div>
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
<div className="max-w-[396px] w-1/2">
|
|
36
|
+
<WrapperSelect
|
|
37
|
+
data={branches}
|
|
38
|
+
fieldValue="branchCode"
|
|
39
|
+
fieldLabel="address"
|
|
40
|
+
selected={selectedBranch}
|
|
41
|
+
setSelected={onSelectedBranch}
|
|
42
|
+
label="Отделение"
|
|
43
|
+
placeholder="Выберите отделение"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
),
|
|
50
48
|
);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks/core';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks/core';
|
|
3
3
|
import { Radio } from '../../ui-kit/Radio/Radio';
|
|
4
4
|
|
|
5
5
|
export const RenderRadioButtons = JSX(() => {
|
|
6
6
|
const [selectedOption, setSelectedOption] = useState('option2');
|
|
7
|
-
|
|
8
|
-
const onChange = (_: React.ChangeEvent<HTMLInputElement>) => setSelectedOption(_.target.value);
|
|
7
|
+
const onChange = useCallback((_: string) => setSelectedOption(_), []);
|
|
9
8
|
|
|
10
9
|
return (
|
|
11
10
|
<div>
|
|
@@ -18,6 +18,7 @@ const DEFAULT_DAYS = 26;
|
|
|
18
18
|
export const SafeDepositRental = JSX<SafeDepositRentalProps>(
|
|
19
19
|
({ title, footnote, className = '', ...rest }) => {
|
|
20
20
|
const [showMap, setShowMap] = useState<boolean>(false);
|
|
21
|
+
const handleShowMap = useCallback(() => setShowMap((_) => !_), []);
|
|
21
22
|
const [safeDepositState, setStateDepositState] = useState<SafeDepositRentalState>({
|
|
22
23
|
selectedRegion: '',
|
|
23
24
|
selectedBranch: '',
|
|
@@ -37,10 +38,6 @@ export const SafeDepositRental = JSX<SafeDepositRentalProps>(
|
|
|
37
38
|
[setStateDepositState],
|
|
38
39
|
);
|
|
39
40
|
|
|
40
|
-
const onShowMapToggle = () => {
|
|
41
|
-
setShowMap(!showMap);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
41
|
const points = getCoordinates(getBranch(branches, safeDepositState.selectedBranch) || branches);
|
|
45
42
|
|
|
46
43
|
return (
|
|
@@ -58,7 +55,7 @@ export const SafeDepositRental = JSX<SafeDepositRentalProps>(
|
|
|
58
55
|
regions={regions}
|
|
59
56
|
branches={branches}
|
|
60
57
|
data={{ ...safeDepositState, selectedRegion }}
|
|
61
|
-
|
|
58
|
+
onClick={handleShowMap}
|
|
62
59
|
onChange={handleChangeSafeDepositState}
|
|
63
60
|
/>
|
|
64
61
|
{footnote ? <p className="text-s-light text-secondary-text">{footnote}</p> : null}
|
|
@@ -13,7 +13,7 @@ export interface SafeDepositRentalFieldsProps extends SafeDepositRentalState {
|
|
|
13
13
|
safeBoxCases?: SafeBoxCase[];
|
|
14
14
|
caseVolumes?: SafeBoxCaseVolume[];
|
|
15
15
|
branches?: Branch[];
|
|
16
|
-
|
|
16
|
+
onClick: () => void;
|
|
17
17
|
onChange: HandleChangeState;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -29,7 +29,7 @@ export const SafeDepositRentalFields = JSX<SafeDepositRentalFieldsProps>(
|
|
|
29
29
|
safeBoxCases,
|
|
30
30
|
caseVolumes,
|
|
31
31
|
onChange,
|
|
32
|
-
|
|
32
|
+
onClick,
|
|
33
33
|
}) => {
|
|
34
34
|
return (
|
|
35
35
|
<div className="flex-1 mr-9">
|
|
@@ -53,7 +53,7 @@ export const SafeDepositRentalFields = JSX<SafeDepositRentalFieldsProps>(
|
|
|
53
53
|
<span className="text-secondary-text text-l-light">Тип договора</span>
|
|
54
54
|
<div className="flex justify-between items-center mt-5">
|
|
55
55
|
<RenderRadioButtons />
|
|
56
|
-
<Button text="Офисы на карте" version="primary" onClick={
|
|
56
|
+
<Button text="Офисы на карте" version="primary" onClick={onClick} />
|
|
57
57
|
</div>
|
|
58
58
|
</div>
|
|
59
59
|
);
|
|
@@ -11,12 +11,12 @@ export interface SafeDepositRentalFormProps {
|
|
|
11
11
|
regions: Region[];
|
|
12
12
|
branches: Branch[];
|
|
13
13
|
data: SafeDepositRentalState;
|
|
14
|
-
|
|
14
|
+
onClick: () => void;
|
|
15
15
|
onChange: (data: Partial<SafeDepositRentalState>) => void;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export const SafeDepositRentalForm = JSX<SafeDepositRentalFormProps>((props) => {
|
|
19
|
-
const { regions, data, branches, onChange,
|
|
19
|
+
const { regions, data, branches, onChange, onClick } = props;
|
|
20
20
|
|
|
21
21
|
useEffect(() => {
|
|
22
22
|
onChange({
|
|
@@ -41,7 +41,7 @@ export const SafeDepositRentalForm = JSX<SafeDepositRentalFormProps>((props) =>
|
|
|
41
41
|
<SafeDepositRentalFields
|
|
42
42
|
{...data}
|
|
43
43
|
regions={regions}
|
|
44
|
-
|
|
44
|
+
onClick={onClick}
|
|
45
45
|
branches={branches}
|
|
46
46
|
caseVolumes={caseVolumes}
|
|
47
47
|
safeBoxCases={safeBoxCases}
|
|
@@ -3,13 +3,11 @@ import { Heading } from '../../ui-kit/Heading/Heading';
|
|
|
3
3
|
import { Img } from '../../ui-kit/Img/Img';
|
|
4
4
|
import type { TariffsTableRowHeader } from './TariffsTableContent';
|
|
5
5
|
|
|
6
|
-
export const TableTileHeader = JSX<TariffsTableRowHeader>(({ title, icon }) =>
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
{icon
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
);
|
|
15
|
-
});
|
|
6
|
+
export const TableTileHeader = JSX<TariffsTableRowHeader>(({ title, icon }) => (
|
|
7
|
+
<div className="flex gap-2.5 mb-2">
|
|
8
|
+
{title ? <Heading headingType="h3" className="font-medium" title={title} /> : null}
|
|
9
|
+
{icon ? (
|
|
10
|
+
<Img className="ml-auto max-w-6 max-h-6" image={icon} width="24px" height="24px" />
|
|
11
|
+
) : null}
|
|
12
|
+
</div>
|
|
13
|
+
));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
5
|
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
@@ -19,8 +19,15 @@ export interface TariffsTableRowProps extends UniBlockProps {
|
|
|
19
19
|
export const TariffsTableRow = JSX<TariffsTableRowProps>(
|
|
20
20
|
({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
|
|
21
21
|
const [tableInner, setTableInner] = useState<TariffsTableInnerContent | undefined>(undefined);
|
|
22
|
+
const handleSetTableInner = useCallback(
|
|
23
|
+
(_: TariffsTableInnerContent | undefined) => setTableInner(_),
|
|
24
|
+
[],
|
|
25
|
+
);
|
|
22
26
|
const [openTableInnerIdx, setOpenTableInnerIdx] = useState<number | undefined>(undefined);
|
|
23
|
-
|
|
27
|
+
const handleOpenTableInnerIdx = useCallback(
|
|
28
|
+
(_: number | undefined) => setOpenTableInnerIdx(_),
|
|
29
|
+
[],
|
|
30
|
+
);
|
|
24
31
|
const onHideContentClick = () => setTableInner(undefined);
|
|
25
32
|
|
|
26
33
|
return (
|
|
@@ -55,10 +62,10 @@ export const TariffsTableRow = JSX<TariffsTableRowProps>(
|
|
|
55
62
|
cells={cells}
|
|
56
63
|
rowIdx={rowIdx}
|
|
57
64
|
cellIdx={i}
|
|
58
|
-
setTableInner={
|
|
65
|
+
setTableInner={handleSetTableInner}
|
|
59
66
|
tableInner={tableInner}
|
|
60
67
|
openTableInnerIdx={openTableInnerIdx}
|
|
61
|
-
setOpenTableInnerIdx={
|
|
68
|
+
setOpenTableInnerIdx={handleOpenTableInnerIdx}
|
|
62
69
|
{...rest}
|
|
63
70
|
/>
|
|
64
71
|
))}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useTariffsInnerTableData } from './useTariffsInnerTableData';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
3
|
import { InnerTableBody } from './InnerTableBody';
|
|
5
4
|
import { TableInnerButton } from './InnerTableButton';
|
|
6
5
|
import { InnerTableHeader } from './InnerTableHeader';
|
|
7
6
|
import type { TableFetchData, TariffsTableInnerContent } from './InnerTableProps';
|
|
7
|
+
import { useTariffsInnerTableData } from './useTariffsInnerTableData';
|
|
8
8
|
|
|
9
9
|
export interface InnerTableProps extends TariffsTableInnerContent {
|
|
10
10
|
onClick?: () => void;
|
|
@@ -14,10 +14,9 @@ const EMPTY_DATA = 'Данных нет';
|
|
|
14
14
|
|
|
15
15
|
export const InnerTable = JSX<InnerTableProps>(({ dataUrl, pdfUrl, onClick }) => {
|
|
16
16
|
const { tableData }: TableFetchData = useTariffsInnerTableData(dataUrl);
|
|
17
|
-
|
|
18
17
|
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
18
|
+
const handleActiveTabIndex = useCallback((_: number) => setActiveTabIndex(_), []);
|
|
19
19
|
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
20
|
-
|
|
21
20
|
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
22
21
|
|
|
23
22
|
return tableData ? (
|
|
@@ -25,7 +24,7 @@ export const InnerTable = JSX<InnerTableProps>(({ dataUrl, pdfUrl, onClick }) =>
|
|
|
25
24
|
<InnerTableHeader
|
|
26
25
|
currencies={currencies}
|
|
27
26
|
activeTabIndex={activeTabIndex}
|
|
28
|
-
setActiveTabIndex={
|
|
27
|
+
setActiveTabIndex={handleActiveTabIndex}
|
|
29
28
|
linkToPDF={pdfUrl} //TODO: need link to service
|
|
30
29
|
/>
|
|
31
30
|
<InnerTableBody activeTabIndex={activeTabIndex} items={items} />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { Img } from '../Img/Img';
|
|
4
4
|
import { InnerTableBodyItem } from './InnerTableBodyItem';
|
|
5
5
|
import type { DataItem } from './InnerTableProps';
|
|
@@ -12,9 +12,10 @@ export interface InnerTableBodyProps {
|
|
|
12
12
|
export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items }) => {
|
|
13
13
|
const [hiddenTables, setHiddenTables] = useState<Record<string, boolean>>({});
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] }))
|
|
17
|
-
|
|
15
|
+
const toggleTables = useCallback(
|
|
16
|
+
(key) => setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] })),
|
|
17
|
+
[],
|
|
18
|
+
);
|
|
18
19
|
|
|
19
20
|
return (
|
|
20
21
|
<div>
|
|
@@ -25,7 +26,7 @@ export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items
|
|
|
25
26
|
<div key={key} className="w-full">
|
|
26
27
|
<div
|
|
27
28
|
className="flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative"
|
|
28
|
-
onClick={() =>
|
|
29
|
+
onClick={() => toggleTables(key)}
|
|
29
30
|
>
|
|
30
31
|
{_.title}
|
|
31
32
|
<Img
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
interface ParagraphProps {
|
|
5
|
-
size?: TextSize;
|
|
6
|
-
color?: TextColor;
|
|
7
|
-
align?: TextAlign;
|
|
8
|
-
font?: FontWeight;
|
|
9
|
-
}
|
|
2
|
+
import type { ParagraphProps } from './ParagraphProps';
|
|
10
3
|
|
|
11
4
|
export const Paragraph = JSX<ParagraphProps>((props) => {
|
|
12
5
|
const { size = '', color = '', align = '', font = '', children } = props;
|
|
@@ -12,7 +12,7 @@ export const Radio = JSX<RadioProps>(({ name, text, value, checked, onChange, cl
|
|
|
12
12
|
value={value}
|
|
13
13
|
name={name}
|
|
14
14
|
checked={checked}
|
|
15
|
-
onChange={onChange}
|
|
15
|
+
onChange={(_) => onChange(_.target.value)}
|
|
16
16
|
/>
|
|
17
17
|
{text ? <span className="text-primary-text ml-3 cursor-pointer">{text}</span> : null}
|
|
18
18
|
</label>
|
|
@@ -22,7 +22,6 @@ export const Select = JSX<SelectProps>(
|
|
|
22
22
|
({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '' }) => {
|
|
23
23
|
const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
|
|
24
24
|
const [isOpen, setIsOpen] = useState(false);
|
|
25
|
-
|
|
26
25
|
const handleClickOutside = useCallback(() => setIsOpen(false), []);
|
|
27
26
|
const wrapperRef = useOutsideClick<HTMLDivElement>(handleClickOutside);
|
|
28
27
|
|
|
@@ -1,67 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @title Размер текста
|
|
5
|
-
*/
|
|
6
|
-
export type TextSize =
|
|
7
|
-
| ''
|
|
8
|
-
| 'text-xs-light'
|
|
9
|
-
| 'text-s-light'
|
|
10
|
-
| 'text-s'
|
|
11
|
-
| 'text-m-light'
|
|
12
|
-
| 'text-m'
|
|
13
|
-
| 'text-l-light'
|
|
14
|
-
| 'text-l'
|
|
15
|
-
| 'text-xl-light'
|
|
16
|
-
| 'text-xl';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @title Размер текста
|
|
20
|
-
*/
|
|
21
|
-
export type TitleSize =
|
|
22
|
-
| ''
|
|
23
|
-
| 'text-h6'
|
|
24
|
-
| 'text-h5'
|
|
25
|
-
| 'text-h5-light'
|
|
26
|
-
| 'text-h4'
|
|
27
|
-
| 'text-h3'
|
|
28
|
-
| 'text-h2'
|
|
29
|
-
| 'text-h1'
|
|
30
|
-
| 'text-h0'
|
|
31
|
-
| 'text-m-title'
|
|
32
|
-
| 'text-m-title-xs'
|
|
33
|
-
| 'title-extra'
|
|
34
|
-
| 'title-huge';
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @title Цвет текста
|
|
38
|
-
*/
|
|
39
|
-
export type TextColor =
|
|
40
|
-
| ''
|
|
41
|
-
| 'text-main'
|
|
42
|
-
| 'text-primary-text'
|
|
43
|
-
| 'text-primary-main'
|
|
44
|
-
| 'text-secondary-text'
|
|
45
|
-
| 'text-secondary-light'
|
|
46
|
-
| 'text-error'
|
|
47
|
-
| 'text-white'
|
|
48
|
-
| 'text-green';
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @title Выравнивание
|
|
52
|
-
* @enumNames [
|
|
53
|
-
* "По умолчанию",
|
|
54
|
-
* "По левому краю",
|
|
55
|
-
* "По центру",
|
|
56
|
-
* "По правому краю"
|
|
57
|
-
* ]
|
|
58
|
-
*/
|
|
59
|
-
export type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @title Насыщенность шрифта
|
|
63
|
-
*/
|
|
64
|
-
export type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
|
|
2
|
+
import type { FontWeight, TextAlign, TextColor, TextSize, TitleSize } from './TextProps';
|
|
65
3
|
|
|
66
4
|
interface TextProps {
|
|
67
5
|
size?: TextSize | TitleSize;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title Размер текста
|
|
3
|
+
*/
|
|
4
|
+
export type TextSize =
|
|
5
|
+
| ''
|
|
6
|
+
| 'text-xs'
|
|
7
|
+
| 'text-xs-light'
|
|
8
|
+
| 'text-s-light'
|
|
9
|
+
| 'text-s'
|
|
10
|
+
| 'text-m-light'
|
|
11
|
+
| 'text-m'
|
|
12
|
+
| 'text-l-light'
|
|
13
|
+
| 'text-l'
|
|
14
|
+
| 'text-xl-light'
|
|
15
|
+
| 'text-xl';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @title Размер текста
|
|
19
|
+
*/
|
|
20
|
+
export type TitleSize =
|
|
21
|
+
| ''
|
|
22
|
+
| 'text-h6'
|
|
23
|
+
| 'text-h5'
|
|
24
|
+
| 'text-h5-light'
|
|
25
|
+
| 'text-h4'
|
|
26
|
+
| 'text-h3'
|
|
27
|
+
| 'text-h2'
|
|
28
|
+
| 'text-h1'
|
|
29
|
+
| 'text-h0'
|
|
30
|
+
| 'text-m-title'
|
|
31
|
+
| 'text-m-title-xs'
|
|
32
|
+
| 'title-extra'
|
|
33
|
+
| 'title-huge';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @title Цвет текста
|
|
37
|
+
*/
|
|
38
|
+
export type TextColor =
|
|
39
|
+
| ''
|
|
40
|
+
| 'text-main'
|
|
41
|
+
| 'text-primary-text'
|
|
42
|
+
| 'text-primary-main'
|
|
43
|
+
| 'text-secondary-text'
|
|
44
|
+
| 'text-secondary-light'
|
|
45
|
+
| 'text-error'
|
|
46
|
+
| 'text-white'
|
|
47
|
+
| 'text-green';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @title Выравнивание
|
|
51
|
+
* @enumNames [
|
|
52
|
+
* "По умолчанию",
|
|
53
|
+
* "По левому краю",
|
|
54
|
+
* "По центру",
|
|
55
|
+
* "По правому краю"
|
|
56
|
+
* ]
|
|
57
|
+
*/
|
|
58
|
+
export type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @title Насыщенность шрифта
|
|
62
|
+
*/
|
|
63
|
+
export type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
|
package/package.json
CHANGED
package/src/components/Blocks.ts
CHANGED
|
@@ -8,9 +8,9 @@ import { BusinessBlock } from './BusinessBlock/BusinessBlock';
|
|
|
8
8
|
import { Calculator } from './Calculator/Calculator';
|
|
9
9
|
import { CardTransfer } from './CardTransfer/CardTransfer';
|
|
10
10
|
import { Carousel } from './Carousel/Carousel';
|
|
11
|
-
import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
|
|
12
11
|
import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
13
12
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
13
|
+
import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
|
|
14
14
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
15
15
|
import { Catalog } from './Catalog/Catalog';
|
|
16
16
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
@@ -22,8 +22,8 @@ import { Gallery } from './Gallery/Gallery';
|
|
|
22
22
|
import { GracePeriod } from './GracePeriod/GracePeriod';
|
|
23
23
|
import { Header } from './Header/Header';
|
|
24
24
|
import { Headline } from './Headline/Headline';
|
|
25
|
+
import { ImgBlock } from './ImgBlock/ImgBlock';
|
|
25
26
|
import { InsuranceAmountBlock } from './InsuranceAmountBlock/InsuranceAmountBlock';
|
|
26
|
-
import { InvestmentGallery } from './InvestmentGallery/InvestmentGallery';
|
|
27
27
|
import { InvestmentInfo } from './InvestmentInfo/InvestmentInfo';
|
|
28
28
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
29
29
|
import { MiniGallery } from './MiniGallery/MiniGallery';
|
|
@@ -32,6 +32,7 @@ import { OfficeMap } from './OfficeMap/OfficeMap';
|
|
|
32
32
|
import { OfficeServicesBlock } from './OfficeServicesBlock/OfficeServicesBlock';
|
|
33
33
|
import { OtherProducts } from './OtherProducts/OtherProducts';
|
|
34
34
|
import { OtherProductsItem } from './OtherProductsItem/OtherProductsItem';
|
|
35
|
+
import { ParagraphBlock } from './ParagraphBlock/ParagraphBlock';
|
|
35
36
|
import { PictureText } from './PictureText/PictureText';
|
|
36
37
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
37
38
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
@@ -48,6 +49,7 @@ import { TextBlock } from './TextBlock/TextBlock';
|
|
|
48
49
|
import { Tile } from './Tile/Tile';
|
|
49
50
|
import { VerticalLayout } from './VerticalLayout/VerticalLayout';
|
|
50
51
|
import { Video } from './Video/Video';
|
|
52
|
+
import { CarouselInvestmentCard } from './CarouselInvestmentCard/CarouselInvestmentCard';
|
|
51
53
|
|
|
52
54
|
export const Blocks: BlocksRegistry = {
|
|
53
55
|
Accordion,
|
|
@@ -73,12 +75,13 @@ export const Blocks: BlocksRegistry = {
|
|
|
73
75
|
GracePeriod,
|
|
74
76
|
Header,
|
|
75
77
|
Headline,
|
|
78
|
+
ImgBlock,
|
|
76
79
|
InsuranceAmountBlock,
|
|
77
80
|
InvestmentInfo,
|
|
78
|
-
InvestmentGallery,
|
|
79
81
|
LinkDocs,
|
|
80
82
|
MiniGallery,
|
|
81
83
|
MobileAppTile,
|
|
84
|
+
ParagraphBlock,
|
|
82
85
|
PictureText,
|
|
83
86
|
Placeholder,
|
|
84
87
|
ProductBlock,
|
|
@@ -99,4 +102,5 @@ export const Blocks: BlocksRegistry = {
|
|
|
99
102
|
Tile,
|
|
100
103
|
VerticalLayout,
|
|
101
104
|
Video,
|
|
105
|
+
CarouselInvestmentCard,
|
|
102
106
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { CommonCalculatorProps } from './CalculatorContent';
|
|
4
4
|
import { CalculatorValueBlock } from './CalculatorValueBlock';
|
|
5
5
|
import { DEFAULT_REST_MIN_SUM, DEFAULT_TRAVEL_MIN_SUM } from './constants';
|
|
@@ -16,7 +16,9 @@ export interface BonusCalculatorProps extends CommonCalculatorProps {
|
|
|
16
16
|
export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
17
17
|
({ className = '', sourceBookDir = '', buttons, footnote }) => {
|
|
18
18
|
const [travelExpenseValue, setTravelExpenseValue] = useState(DEFAULT_TRAVEL_MIN_SUM);
|
|
19
|
+
const handleTravelExpenseValue = useCallback((_: number) => setTravelExpenseValue(_), []);
|
|
19
20
|
const [restExpenseValue, setRestExpenseValue] = useState(DEFAULT_REST_MIN_SUM);
|
|
21
|
+
const handleRestExpenseValue = useCallback((_: number) => setRestExpenseValue(_), []);
|
|
20
22
|
const userInputParams = {
|
|
21
23
|
travelExpenseValue,
|
|
22
24
|
restExpenseValue,
|
|
@@ -36,7 +38,7 @@ export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
|
36
38
|
step: 500,
|
|
37
39
|
isShowItems: false,
|
|
38
40
|
},
|
|
39
|
-
|
|
41
|
+
handleTravelExpenseValue,
|
|
40
42
|
)}
|
|
41
43
|
{renderWantedSumInput(
|
|
42
44
|
'Сумма покупок в остальных категориях, ₽',
|
|
@@ -48,7 +50,7 @@ export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
|
48
50
|
step: 500,
|
|
49
51
|
isShowItems: false,
|
|
50
52
|
},
|
|
51
|
-
|
|
53
|
+
handleRestExpenseValue,
|
|
52
54
|
)}
|
|
53
55
|
</div>
|
|
54
56
|
<div>
|