@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
|
@@ -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 { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
4
4
|
import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
|
|
5
5
|
import { CommonCalculatorProps } from './CalculatorContent';
|
|
@@ -37,7 +37,9 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
|
37
37
|
const [isSalaryClient, toggleIsSalaryClient] = useState(false);
|
|
38
38
|
const [isStateEmployee, toggleIsStateEmployee] = useState(false);
|
|
39
39
|
const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
|
|
40
|
+
const handleMoneyValue = useCallback((_: number) => setMoneyValue(_), []);
|
|
40
41
|
const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
|
|
42
|
+
const handleMonthsValue = useCallback((_: number) => setMonthsValue(_), []);
|
|
41
43
|
const userInputParams = {
|
|
42
44
|
isAnnuity,
|
|
43
45
|
isInsurance,
|
|
@@ -54,9 +56,9 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
|
54
56
|
{renderWantedSumInput(
|
|
55
57
|
'Сумма кредита, ₽',
|
|
56
58
|
{ ...calculatorParams, step: 500 },
|
|
57
|
-
|
|
59
|
+
handleMoneyValue,
|
|
58
60
|
)}
|
|
59
|
-
{renderMonthsInput('Срок кредита, месяцев', calculatorParams,
|
|
61
|
+
{renderMonthsInput('Срок кредита, месяцев', calculatorParams, handleMonthsValue)}
|
|
60
62
|
<div className="mt-7">
|
|
61
63
|
<Checkbox
|
|
62
64
|
text="Получаю зарплату на счёт в Россельхозбанке"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// TEMP
|
|
2
2
|
|
|
3
3
|
import { JSX } from '@redneckz/uni-jsx';
|
|
4
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
5
5
|
import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
|
|
6
6
|
import { CommonCalculatorProps, DepositCalculatorParams } from './CalculatorContent';
|
|
7
7
|
import { CalculatorValueBlock } from './CalculatorValueBlock';
|
|
@@ -34,6 +34,7 @@ const depositTypeItems = [
|
|
|
34
34
|
export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
|
|
35
35
|
({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
36
36
|
const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
|
|
37
|
+
const handleMoneyValue = useCallback((_: number) => setMoneyValue(_), []);
|
|
37
38
|
const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
|
|
38
39
|
const [isMonthlyInterestPayment, toggleIsMonthlyInterestPayment] = useState(false);
|
|
39
40
|
const userInputParams = {
|
|
@@ -41,6 +42,8 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
|
|
|
41
42
|
monthsValue,
|
|
42
43
|
isMonthlyInterestPayment,
|
|
43
44
|
};
|
|
45
|
+
const handleMonthsValue = useCallback((_: number) => setMonthsValue(_), []);
|
|
46
|
+
const [isEveryMonth, toggleIsEveryMonth] = useState(false);
|
|
44
47
|
|
|
45
48
|
const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir);
|
|
46
49
|
const { income, finalSum, rate } = calculatorParams;
|
|
@@ -53,14 +56,14 @@ export const DepositCalculatorForm = JSX<DepositCalculatorProp>(
|
|
|
53
56
|
{
|
|
54
57
|
...calculatorParams,
|
|
55
58
|
},
|
|
56
|
-
|
|
59
|
+
handleMoneyValue,
|
|
57
60
|
)}
|
|
58
61
|
{renderMonthsInput(
|
|
59
62
|
'Срок вклада, месяцев',
|
|
60
63
|
{
|
|
61
64
|
...calculatorParams,
|
|
62
65
|
},
|
|
63
|
-
|
|
66
|
+
handleMonthsValue,
|
|
64
67
|
)}
|
|
65
68
|
</div>
|
|
66
69
|
<Rate rate={rate || 1} rateBlockClassName="tracking-[-25px]" unit="%" />
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
2
1
|
import '../../setup-fixture';
|
|
3
2
|
import { Blocks } from '../Blocks';
|
|
4
3
|
import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
|
|
5
4
|
import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
|
|
6
5
|
import { BUSINESS_CARD } from '../CarouselProgramsCard/CarouselProgramsCard.fixture';
|
|
7
6
|
import { Carousel } from './Carousel';
|
|
7
|
+
import { INVESTMENT_CARD_WITH_SINGLE_COLUMN } from '../CarouselInvestmentCard/CarouselInvestmentCard.fixture';
|
|
8
|
+
import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
8
9
|
|
|
9
10
|
const options = {
|
|
10
11
|
blocksRegistry: Blocks,
|
|
@@ -86,4 +87,22 @@ export default {
|
|
|
86
87
|
/>
|
|
87
88
|
</div>
|
|
88
89
|
),
|
|
90
|
+
investment: (
|
|
91
|
+
<div className="container grid grid-cols-12">
|
|
92
|
+
<Carousel
|
|
93
|
+
className="col-span-12"
|
|
94
|
+
isBlur={true}
|
|
95
|
+
isCyclic={false}
|
|
96
|
+
block={{
|
|
97
|
+
type: 'Carousel',
|
|
98
|
+
blocks: new Array(6).fill({
|
|
99
|
+
type: 'CarouselInvestmentCard',
|
|
100
|
+
content: INVESTMENT_CARD_WITH_SINGLE_COLUMN,
|
|
101
|
+
style: ['col-span-2'],
|
|
102
|
+
}),
|
|
103
|
+
}}
|
|
104
|
+
options={options}
|
|
105
|
+
/>
|
|
106
|
+
</div>
|
|
107
|
+
),
|
|
89
108
|
};
|
|
@@ -17,7 +17,7 @@ export interface CarouselProps extends CarouselContent, UniBlockProps {
|
|
|
17
17
|
const ITEMS_GAP = 4;
|
|
18
18
|
|
|
19
19
|
const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px]';
|
|
20
|
-
const scrollButtonStyle = 'absolute top-
|
|
20
|
+
const scrollButtonStyle = 'absolute top-[calc(50%-12px)] z-50';
|
|
21
21
|
|
|
22
22
|
export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
23
23
|
({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, ...rest }) => {
|
|
@@ -57,6 +57,7 @@ Carousel.childrenTypes = [
|
|
|
57
57
|
'CarouselTariffsCard',
|
|
58
58
|
'CarouselLinks',
|
|
59
59
|
'CarouselProgramsCard',
|
|
60
|
+
'CarouselInvestmentCard',
|
|
60
61
|
];
|
|
61
62
|
|
|
62
63
|
const renderScrollButtons = ({
|
|
@@ -10,8 +10,8 @@ export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
|
|
|
10
10
|
const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-full h-full';
|
|
11
11
|
|
|
12
12
|
const CARD_WIDTH_MAP: Record<CarouselCardVersion, string> = {
|
|
13
|
-
normal:
|
|
14
|
-
mini:
|
|
13
|
+
normal: 'min-w-[1007px]',
|
|
14
|
+
mini: 'min-w-[355px]',
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const CarouselCard = JSX<CarouselCardProps>(
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"image": {
|
|
3
|
+
"format": "webp",
|
|
4
|
+
"size": {
|
|
5
|
+
"width": 180,
|
|
6
|
+
"height": 180
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"title": "Заголовок",
|
|
10
|
+
"description": "Описание",
|
|
11
|
+
"additionalDescription": "Описание 1-2",
|
|
12
|
+
"columnsMode": "1",
|
|
13
|
+
"cardsList":[
|
|
14
|
+
{
|
|
15
|
+
"parameter": "Параметр",
|
|
16
|
+
"parameterDescription": "Описание пункта"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"parameter": "Параметр",
|
|
20
|
+
"parameterDescription": "Описание пункта"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"parameter": "Параметр",
|
|
24
|
+
"parameterDescription": "Описание пункта"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"version": "primary"
|
|
28
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
import '../../setup-fixture';
|
|
3
|
-
import {
|
|
3
|
+
import { CarouselInvestmentCard } from './CarouselInvestmentCard';
|
|
4
|
+
import type { CarouselInvestmentCardContent } from './CarouselInvestmentCardContent';
|
|
4
5
|
|
|
5
6
|
const five: Picture = {
|
|
6
7
|
src: '5.svg',
|
|
@@ -12,7 +13,7 @@ const five: Picture = {
|
|
|
12
13
|
title: 'five',
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
const
|
|
16
|
+
const cardsList = [
|
|
16
17
|
{
|
|
17
18
|
parameter: 'IR',
|
|
18
19
|
parameterDesccription: 'cтрана эмитента',
|
|
@@ -39,40 +40,33 @@ const cardListExample = [
|
|
|
39
40
|
},
|
|
40
41
|
];
|
|
41
42
|
|
|
42
|
-
const
|
|
43
|
+
export const INVESTMENT_CARD_WITH_SINGLE_COLUMN: CarouselInvestmentCardContent = {
|
|
43
44
|
title: 'Borets Finance DAC 17/09/26',
|
|
44
45
|
description: 'BRTS-26 XS2230649225',
|
|
45
46
|
additionalDescription: 'Краткосрочная',
|
|
47
|
+
cardsList,
|
|
48
|
+
columnsMode: 1,
|
|
49
|
+
image: five,
|
|
46
50
|
};
|
|
47
51
|
|
|
48
|
-
export const
|
|
49
|
-
title: '
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
image: five,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
...cardCoomonProps,
|
|
59
|
-
columnsMode: 'single',
|
|
60
|
-
cardList: cardListExample,
|
|
61
|
-
image: five,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
...cardCoomonProps,
|
|
65
|
-
columnsMode: 'double',
|
|
66
|
-
cardList: cardListExample,
|
|
67
|
-
image: five,
|
|
68
|
-
},
|
|
69
|
-
],
|
|
52
|
+
export const INVESTMENT_CARD_WITH_DOUBLE_COLUMN: CarouselInvestmentCardContent = {
|
|
53
|
+
title: 'Borets Finance DAC 17/09/26',
|
|
54
|
+
description: 'BRTS-26 XS2230649225',
|
|
55
|
+
additionalDescription: 'Краткосрочная',
|
|
56
|
+
cardsList,
|
|
57
|
+
columnsMode: 2,
|
|
58
|
+
image: five,
|
|
70
59
|
};
|
|
71
60
|
|
|
72
61
|
export default {
|
|
73
62
|
default: (
|
|
74
|
-
<div className="container grid grid-cols-12
|
|
75
|
-
<
|
|
63
|
+
<div className="container grid grid-cols-12">
|
|
64
|
+
<CarouselInvestmentCard className="col-span-4" {...INVESTMENT_CARD_WITH_SINGLE_COLUMN} />
|
|
65
|
+
</div>
|
|
66
|
+
),
|
|
67
|
+
'with-double-columns': (
|
|
68
|
+
<div className="container grid grid-cols-12">
|
|
69
|
+
<CarouselInvestmentCard className="col-span-4" {...INVESTMENT_CARD_WITH_DOUBLE_COLUMN} />
|
|
76
70
|
</div>
|
|
77
71
|
),
|
|
78
72
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { BaseTile } from '../BaseTile/BaseTile';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
|
+
import { BorderVersionStyleMap } from '../../model/BorderVersion';
|
|
4
|
+
import type {
|
|
5
|
+
CardColumnsMode,
|
|
6
|
+
CardsListItem,
|
|
7
|
+
CarouselInvestmentCardContent,
|
|
8
|
+
} from './CarouselInvestmentCardContent';
|
|
9
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
10
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
11
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
12
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
13
|
+
|
|
14
|
+
export interface CarouselInvestmentCardProps extends CarouselInvestmentCardContent, UniBlockProps {}
|
|
15
|
+
|
|
16
|
+
const getItemListFontSize = (colValue?: number) => (colValue === 1 ? 'text-h6' : 'text-l');
|
|
17
|
+
|
|
18
|
+
const cardColumnsModeStyleMap: Record<CardColumnsMode, string> = {
|
|
19
|
+
1: 'flex gap-y-2 flex-col',
|
|
20
|
+
2: 'flex gap-y-2 gap-x-10 flex-wrap',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const CarouselInvestmentCard = JSX<CarouselInvestmentCardProps>(
|
|
24
|
+
({
|
|
25
|
+
additionalDescription,
|
|
26
|
+
cardsList = [],
|
|
27
|
+
className = '',
|
|
28
|
+
columnsMode = 1,
|
|
29
|
+
description,
|
|
30
|
+
image,
|
|
31
|
+
title,
|
|
32
|
+
version = 'primary',
|
|
33
|
+
...rest
|
|
34
|
+
}) => {
|
|
35
|
+
const tileTitle = title ? (
|
|
36
|
+
<Heading headingType="h4" as="h3" className="mb-3.5 z-10" title={title} />
|
|
37
|
+
) : null;
|
|
38
|
+
|
|
39
|
+
const tileImage = image?.src ? (
|
|
40
|
+
<Img className="absolute bottom-0 right-0 m-0" image={image} />
|
|
41
|
+
) : null;
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<BlockWrapper
|
|
45
|
+
className={`relative text-left border border-solid box-border
|
|
46
|
+
p-9 w-[697px]
|
|
47
|
+
${BorderVersionStyleMap[version]}
|
|
48
|
+
${className}`}
|
|
49
|
+
{...rest}
|
|
50
|
+
>
|
|
51
|
+
<BaseTile title={tileTitle} image={tileImage}>
|
|
52
|
+
<div className="flex justify-between mb-4">
|
|
53
|
+
{description ? <span className="text-h6 w-1/3">{description}</span> : null}
|
|
54
|
+
{additionalDescription ? (
|
|
55
|
+
<span className="text-m-light text-secondary-text">{additionalDescription}</span>
|
|
56
|
+
) : null}
|
|
57
|
+
</div>
|
|
58
|
+
{cardsList.length ? (
|
|
59
|
+
<ul className={`list-none m-0 p-0 ${cardColumnsModeStyleMap[columnsMode]}`}>
|
|
60
|
+
{renderCardList(cardsList, columnsMode)}
|
|
61
|
+
</ul>
|
|
62
|
+
) : null}
|
|
63
|
+
</BaseTile>
|
|
64
|
+
</BlockWrapper>
|
|
65
|
+
);
|
|
66
|
+
},
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
const renderCardList = (cardsList: CardsListItem[], columnsMode: number) => {
|
|
70
|
+
const CARDS_COUNT_MAP = [4, 9];
|
|
71
|
+
const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
|
|
72
|
+
|
|
73
|
+
return visibleCardsList.map((item, i) => (
|
|
74
|
+
<li key={String(i)} className={columnsMode === 2 ? 'basis-[calc(50%-20px)]' : ''}>
|
|
75
|
+
{item?.parameter ? (
|
|
76
|
+
<span className={`pr-2.5 ${getItemListFontSize(columnsMode)}`}>{item.parameter}</span>
|
|
77
|
+
) : null}
|
|
78
|
+
{item?.parameterDescription ? (
|
|
79
|
+
<span className="text-m-light text-secondary-text">{item.parameterDescription}</span>
|
|
80
|
+
) : null}
|
|
81
|
+
</li>
|
|
82
|
+
));
|
|
83
|
+
};
|
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
-
import type { HeadlineCommonProps
|
|
3
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @title
|
|
6
|
+
* @title Карточка галереи инвестиций
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @title Количество колонок
|
|
7
11
|
* @enumNames [
|
|
8
12
|
* "1 колонка",
|
|
9
13
|
* "2 колонки",
|
|
10
14
|
* ]
|
|
11
15
|
*/
|
|
12
|
-
export type CardColumnsMode =
|
|
16
|
+
export type CardColumnsMode = 1 | 2;
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
export interface CardsListItem {
|
|
19
|
+
/** @title Параметр */
|
|
20
|
+
parameter?: string;
|
|
21
|
+
/** @title Описание */
|
|
22
|
+
parameterDescription?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CarouselInvestmentCardContent extends HeadlineCommonProps {
|
|
18
25
|
/** @title Доп. описание карточки */
|
|
19
26
|
additionalDescription?: string;
|
|
27
|
+
/** @default 1 */
|
|
28
|
+
columnsMode?: CardColumnsMode;
|
|
29
|
+
/**
|
|
30
|
+
* @title Список
|
|
31
|
+
*/
|
|
32
|
+
cardsList?: CardsListItem[];
|
|
20
33
|
/**
|
|
21
34
|
* @default {
|
|
22
35
|
* "format": "webp",
|
|
@@ -32,23 +45,5 @@ export interface InvestmentGalleryCardTypes extends HeadlineCommonProps {
|
|
|
32
45
|
* }
|
|
33
46
|
*/
|
|
34
47
|
image?: Picture;
|
|
35
|
-
columnsMode?: CardColumnsMode;
|
|
36
|
-
/** @title Описание пункта */
|
|
37
|
-
cardList?: CardListItem[];
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface CardListItem {
|
|
41
|
-
/** @title Параметр */
|
|
42
|
-
parameter?: string;
|
|
43
|
-
/** @title Описание */
|
|
44
|
-
parameterDesccription?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @title Карточка
|
|
49
|
-
*/
|
|
50
|
-
export interface InvestmentGalleryContent extends TitleProps {
|
|
51
|
-
/** @title Карточки */
|
|
52
|
-
cards?: InvestmentGalleryCardTypes[];
|
|
53
48
|
version?: BlockVersion;
|
|
54
49
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
|
-
import { VNode } from '../../model/VNode';
|
|
5
1
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
7
3
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
@@ -10,7 +6,11 @@ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
|
10
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
11
7
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
12
8
|
import { Img } from '../../ui-kit/Img/Img';
|
|
9
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
10
|
+
import { VNode } from '../../model/VNode';
|
|
13
11
|
import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
|
|
12
|
+
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
13
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
14
14
|
|
|
15
15
|
export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
|
|
16
16
|
|
|
@@ -23,34 +23,29 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
23
23
|
const hiddenRows = rowsNode.slice(VISIBLE_ROWS_COUNT);
|
|
24
24
|
|
|
25
25
|
return (
|
|
26
|
-
<BlockWrapper
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
)}
|
|
50
|
-
renderFoldButton={rows.length > 1 ? renderFoldButton : null}
|
|
51
|
-
/>
|
|
52
|
-
) : null}
|
|
53
|
-
</div>
|
|
26
|
+
<BlockWrapper
|
|
27
|
+
className={`font-sans relative bg-white border border-main-stroke min-w-[322px] p-8
|
|
28
|
+
${getHitStyle(isHighlighting)}
|
|
29
|
+
${className}`}
|
|
30
|
+
{...rest}
|
|
31
|
+
>
|
|
32
|
+
{isHighlighting ? renderHitIcon() : null}
|
|
33
|
+
{icon?.src ? <Img image={icon} /> : null}
|
|
34
|
+
{title ? (
|
|
35
|
+
<Heading className="text-primary-text text-center pt-2" headingType="h5" title={title} />
|
|
36
|
+
) : null}
|
|
37
|
+
{button ? <Button className="w-full mt-4" {...button} /> : null}
|
|
38
|
+
{rows.length ? (
|
|
39
|
+
<Foldable
|
|
40
|
+
renderFoldableSection={({ isUnfolded }) => (
|
|
41
|
+
<div>
|
|
42
|
+
{visibleRows}
|
|
43
|
+
<FoldableSection isUnfolded={isUnfolded}>{hiddenRows}</FoldableSection>
|
|
44
|
+
</div>
|
|
45
|
+
)}
|
|
46
|
+
renderFoldButton={rows.length > 1 ? renderFoldButton : null}
|
|
47
|
+
/>
|
|
48
|
+
) : null}
|
|
54
49
|
</BlockWrapper>
|
|
55
50
|
);
|
|
56
51
|
},
|
|
@@ -20,7 +20,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
|
|
|
20
20
|
...rest
|
|
21
21
|
}) => {
|
|
22
22
|
const [isShowAllRow, setIsShowAllRow] = useState(!visibleRowLength);
|
|
23
|
-
const
|
|
23
|
+
const handleToggle = useCallback(() => setIsShowAllRow((_) => !_), []);
|
|
24
24
|
|
|
25
25
|
return (
|
|
26
26
|
<BlockWrapper
|
|
@@ -40,7 +40,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
|
|
|
40
40
|
visibleRowLength={visibleRowLength}
|
|
41
41
|
/>
|
|
42
42
|
{visibleRowLength
|
|
43
|
-
? renderShowMoreToggleButton({ isShowAllRow, onClick:
|
|
43
|
+
? renderShowMoreToggleButton({ isShowAllRow, onClick: handleToggle })
|
|
44
44
|
: null}
|
|
45
45
|
</BlockWrapper>
|
|
46
46
|
);
|
|
@@ -19,6 +19,7 @@ export const GalleryCardInner = JSX<GalleryCardProps>(
|
|
|
19
19
|
items,
|
|
20
20
|
button,
|
|
21
21
|
version,
|
|
22
|
+
isFullWidth = true,
|
|
22
23
|
isDotted = true,
|
|
23
24
|
align = 'center',
|
|
24
25
|
}) => (
|
|
@@ -30,7 +31,12 @@ export const GalleryCardInner = JSX<GalleryCardProps>(
|
|
|
30
31
|
{items?.length ? renderItems(items, isDotted, version) : null}
|
|
31
32
|
{renderAdditionalDescription(additionalDescription)}
|
|
32
33
|
</div>
|
|
33
|
-
{button?.text
|
|
34
|
+
{button?.text
|
|
35
|
+
? renderButton({
|
|
36
|
+
button,
|
|
37
|
+
buttonClassName: `mt-6 ${isFullWidth ? '' : 'self-center'}`,
|
|
38
|
+
})
|
|
39
|
+
: null}
|
|
34
40
|
</div>
|
|
35
41
|
),
|
|
36
42
|
);
|
|
@@ -38,7 +38,6 @@ export const GalleryInner = JSX<GalleryInnerProps>(
|
|
|
38
38
|
<div className="absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" />
|
|
39
39
|
</div>
|
|
40
40
|
) : null}
|
|
41
|
-
|
|
42
41
|
{button ? renderButton({ button, buttonClassName: 'mt-8 mx-auto' }) : null}
|
|
43
42
|
</BlockWrapper>
|
|
44
43
|
);
|
|
@@ -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 { useRouter } from '../../hooks/useRouter';
|
|
4
4
|
import type { Fallback } from '../../model/Fallback';
|
|
5
5
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
@@ -30,15 +30,13 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
|
|
|
30
30
|
const activeTopItem = topItems?.find(isTopItemActive(router));
|
|
31
31
|
const subItems = activeTopItem?.items;
|
|
32
32
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
33
|
-
|
|
34
33
|
const [burgerMenuShow, setBurgerMenuShow] = useState(false);
|
|
35
|
-
|
|
36
|
-
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
34
|
+
const handleBurgerMenuShow = useCallback(() => setBurgerMenuShow((_) => !_), []);
|
|
37
35
|
|
|
38
36
|
return (
|
|
39
37
|
<header className={`${bgColor} ${className}`}>
|
|
40
38
|
<div className="container px-4 py-0 box-border">
|
|
41
|
-
<HeaderTop onClick={
|
|
39
|
+
<HeaderTop onClick={handleBurgerMenuShow} bgColor={bgColor} />
|
|
42
40
|
<nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]">
|
|
43
41
|
<div className="flex no-scrollbar horizontal-list h-full items-center">
|
|
44
42
|
{subItems?.map((_, i) => (
|
|
@@ -55,7 +53,7 @@ export const Header = JSX<HeaderProps>(({ className = '', bgColor = 'bg-white',
|
|
|
55
53
|
</div>
|
|
56
54
|
{burgerMenuShow ? (
|
|
57
55
|
<HeaderBurger
|
|
58
|
-
onClick={
|
|
56
|
+
onClick={handleBurgerMenuShow}
|
|
59
57
|
burgerSubMenu={dispositions}
|
|
60
58
|
defaultLocation={defaultLocation}
|
|
61
59
|
>
|
|
@@ -19,6 +19,7 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(({ subItems = [], bgColor }
|
|
|
19
19
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
20
20
|
|
|
21
21
|
const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
|
|
22
|
+
|
|
22
23
|
const dropDownMenuItems = subItems.slice(visibleItemsCount);
|
|
23
24
|
|
|
24
25
|
const subItemsListRef = useRef<HTMLDivElement | null>(null);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import '../../setup-fixture';
|
|
3
|
+
import { ImgBlock } from './ImgBlock';
|
|
4
|
+
|
|
5
|
+
const image: Picture = {
|
|
6
|
+
src: 'legal-support-business.png',
|
|
7
|
+
format: 'webp',
|
|
8
|
+
size: {
|
|
9
|
+
width: 200,
|
|
10
|
+
height: 200,
|
|
11
|
+
},
|
|
12
|
+
alt: 'Варианты потребительского кредита',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
default: (
|
|
17
|
+
<div className="container grid grid-cols-12">
|
|
18
|
+
<ImgBlock className="col-span-12" image={image} />
|
|
19
|
+
</div>
|
|
20
|
+
),
|
|
21
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
+
import type { ImgBlockContent } from './ImgBlockContent';
|
|
6
|
+
|
|
7
|
+
interface ImgBlockProps extends ImgBlockContent, UniBlockProps {}
|
|
8
|
+
|
|
9
|
+
export const ImgBlock = JSX<ImgBlockProps>((props) => {
|
|
10
|
+
const { className, image, ...rest } = props;
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<BlockWrapper className={className} {...rest}>
|
|
14
|
+
<Img image={image} />
|
|
15
|
+
</BlockWrapper>
|
|
16
|
+
);
|
|
17
|
+
});
|