@redneckz/wildless-cms-uni-blocks 0.6.35 → 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 +276 -160
- 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/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/bundle/components/Gallery/GalleryContent.d.ts +5 -0
- package/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
- 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/hooks/useIntersectionObserver.d.ts +7 -1
- package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -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/SwipeListControl/SwipeListContainer.d.ts +19 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
- package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
- package/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
- package/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
- package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
- package/bundle/ui-kit/Text/Text.d.ts +1 -26
- package/bundle/ui-kit/Text/TextProps.d.ts +26 -0
- package/bundle/utils/areArraysEqual.d.ts +1 -0
- package/bundle/utils/mapChildren.d.ts +2 -0
- package/bundle/utils/maxBy.d.ts +2 -2
- package/bundle/utils/minBy.d.ts +1 -0
- package/dist/components/Blocks.js +9 -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 +15 -15
- 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/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
- 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/ComparisonTable/ComparisonTable.mobile.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +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 +1 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
- package/dist/components/Header/HeaderSubMenuItem.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/RollupItem/RollupItem.js +10 -1
- package/dist/components/RollupItem/RollupItem.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/hooks/useIntersectionObserver.d.ts +7 -1
- package/dist/hooks/useIntersectionObserver.js +10 -1
- package/dist/hooks/useIntersectionObserver.js.map +1 -1
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +1 -11
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/dist/ui-kit/Button/ArrowButton.js +3 -1
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Foldable/FoldableSection.js +1 -1
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- 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/SwipeListControl/SwipeListContainer.d.ts +19 -0
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
- package/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
- package/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
- package/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
- package/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
- package/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
- package/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
- 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/dist/utils/areArraysEqual.d.ts +1 -0
- package/dist/utils/areArraysEqual.js +5 -0
- package/dist/utils/areArraysEqual.js.map +1 -0
- package/dist/utils/mapChildren.d.ts +2 -0
- package/dist/utils/mapChildren.js +10 -0
- package/dist/utils/mapChildren.js.map +1 -0
- package/dist/utils/maxBy.d.ts +2 -2
- package/dist/utils/maxBy.js +4 -4
- package/dist/utils/maxBy.js.map +1 -1
- package/dist/utils/minBy.d.ts +1 -0
- package/dist/utils/minBy.js +6 -0
- package/dist/utils/minBy.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +9 -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 +2 -0
- package/lib/components/Carousel/Carousel.js +15 -15
- 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/{mobile/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/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +8 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
- 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/ComparisonTable/ComparisonTable.mobile.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +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 +1 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
- package/lib/components/Header/HeaderSubMenuItem.js +1 -1
- package/lib/components/Header/HeaderSubMenuItem.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/RollupItem/RollupItem.js +10 -1
- package/lib/components/RollupItem/RollupItem.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/hooks/useIntersectionObserver.d.ts +7 -1
- package/lib/hooks/useIntersectionObserver.js +11 -2
- package/lib/hooks/useIntersectionObserver.js.map +1 -1
- package/lib/hooks/useLink.js +2 -2
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +1 -11
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/lib/ui-kit/Button/ArrowButton.js +2 -0
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Foldable/FoldableSection.js +1 -1
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- 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/SwipeListControl/SwipeListContainer.d.ts +19 -0
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
- package/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
- package/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
- package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
- package/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
- package/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
- package/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
- 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/lib/utils/areArraysEqual.d.ts +1 -0
- package/lib/utils/areArraysEqual.js +2 -0
- package/lib/utils/areArraysEqual.js.map +1 -0
- package/lib/utils/mapChildren.d.ts +2 -0
- package/lib/utils/mapChildren.js +7 -0
- package/lib/utils/mapChildren.js.map +1 -0
- package/lib/utils/maxBy.d.ts +2 -2
- package/lib/utils/maxBy.js +2 -2
- package/lib/utils/maxBy.js.map +1 -1
- package/lib/utils/minBy.d.ts +1 -0
- package/lib/utils/minBy.js +3 -0
- package/lib/utils/minBy.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +144 -145
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
- package/{bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/bundle/components/Gallery/GalleryContent.d.ts +5 -0
- package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
- 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/hooks/useIntersectionObserver.d.ts +7 -1
- package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -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/SwipeListControl/SwipeListContainer.d.ts +19 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
- package/mobile/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
- package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
- package/mobile/bundle/ui-kit/Text/Text.d.ts +1 -26
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +26 -0
- package/mobile/bundle/utils/areArraysEqual.d.ts +1 -0
- package/mobile/bundle/utils/mapChildren.d.ts +2 -0
- package/mobile/bundle/utils/maxBy.d.ts +2 -2
- package/mobile/bundle/utils/minBy.d.ts +1 -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 +15 -15
- 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/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +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 +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.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/RollupItem/RollupItem.js +10 -1
- package/mobile/dist/components/RollupItem/RollupItem.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/hooks/useIntersectionObserver.d.ts +7 -1
- package/mobile/dist/hooks/useIntersectionObserver.js +10 -1
- package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +1 -11
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- 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/SwipeListControl/SwipeListContainer.d.ts +19 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
- package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
- 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/dist/utils/areArraysEqual.d.ts +1 -0
- package/mobile/dist/utils/areArraysEqual.js +5 -0
- package/mobile/dist/utils/areArraysEqual.js.map +1 -0
- package/mobile/dist/utils/mapChildren.d.ts +2 -0
- package/mobile/dist/utils/mapChildren.js +10 -0
- package/mobile/dist/utils/mapChildren.js.map +1 -0
- package/mobile/dist/utils/maxBy.d.ts +2 -2
- package/mobile/dist/utils/maxBy.js +4 -4
- package/mobile/dist/utils/maxBy.js.map +1 -1
- package/mobile/dist/utils/minBy.d.ts +1 -0
- package/mobile/dist/utils/minBy.js +6 -0
- package/mobile/dist/utils/minBy.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 +15 -15
- 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/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +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 +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.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/RollupItem/RollupItem.js +10 -1
- package/mobile/lib/components/RollupItem/RollupItem.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/hooks/useIntersectionObserver.d.ts +7 -1
- package/mobile/lib/hooks/useIntersectionObserver.js +11 -2
- package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +2 -2
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +1 -11
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- 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/SwipeListControl/SwipeListContainer.d.ts +19 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
- package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
- 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/lib/utils/areArraysEqual.d.ts +1 -0
- package/mobile/lib/utils/areArraysEqual.js +2 -0
- package/mobile/lib/utils/areArraysEqual.js.map +1 -0
- package/mobile/lib/utils/mapChildren.d.ts +2 -0
- package/mobile/lib/utils/mapChildren.js +7 -0
- package/mobile/lib/utils/mapChildren.js.map +1 -0
- package/mobile/lib/utils/maxBy.d.ts +2 -2
- package/mobile/lib/utils/maxBy.js +2 -2
- package/mobile/lib/utils/maxBy.js.map +1 -1
- package/mobile/lib/utils/minBy.d.ts +1 -0
- package/mobile/lib/utils/minBy.js +3 -0
- package/mobile/lib/utils/minBy.js.map +1 -0
- package/mobile/src/common.css +0 -7
- 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 +42 -23
- 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/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -29
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/mobile/src/components/Gallery/Gallery.tsx +1 -1
- 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 +3 -4
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +5 -2
- 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/RollupItem/RollupItem.tsx +10 -1
- 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/hooks/useIntersectionObserver.ts +23 -2
- package/mobile/src/hooks/useLink.ts +2 -2
- package/mobile/src/ui-kit/BlockWrapper.tsx +1 -16
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +13 -0
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
- 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/SwipeListControl/SwipeListContainer.tsx +97 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
- package/mobile/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
- package/mobile/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
- package/mobile/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
- package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
- package/mobile/src/ui-kit/Text/Text.tsx +1 -63
- package/mobile/src/ui-kit/Text/TextProps.ts +63 -0
- package/mobile/src/utils/areArraysEqual.ts +2 -0
- package/mobile/src/utils/mapChildren.ts +11 -0
- package/mobile/src/utils/maxBy.ts +3 -4
- package/mobile/src/utils/minBy.ts +5 -0
- package/package.json +2 -2
- package/src/common.css +0 -7
- package/src/components/Blocks.ts +9 -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 +40 -1
- package/src/components/Carousel/Carousel.tsx +42 -23
- 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/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +38 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -29
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/src/components/Gallery/Gallery.mobile.tsx +1 -1
- 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 +3 -4
- package/src/components/Header/HeaderSubMenuItem.tsx +5 -2
- 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/RollupItem/RollupItem.tsx +10 -1
- 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/hooks/useIntersectionObserver.ts +23 -2
- package/src/hooks/useLink.ts +2 -2
- package/src/ui-kit/BlockWrapper.tsx +1 -16
- package/src/ui-kit/Button/ArrowButton.tsx +13 -0
- package/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
- 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/SwipeListControl/SwipeListContainer.tsx +97 -0
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
- package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
- package/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
- package/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
- package/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
- package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
- package/src/ui-kit/Text/Text.tsx +1 -63
- package/src/ui-kit/Text/TextProps.ts +63 -0
- package/src/utils/areArraysEqual.ts +2 -0
- package/src/utils/mapChildren.ts +11 -0
- package/src/utils/maxBy.ts +3 -4
- package/src/utils/minBy.ts +5 -0
- package/tailwind.config.cjs +8 -0
- package/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
- package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
- package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
- package/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
- package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
- package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
- package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
- package/dist/components/Carousel/CarouselContainer.d.ts +0 -10
- package/dist/components/Carousel/CarouselContainer.js +0 -14
- package/dist/components/Carousel/CarouselContainer.js.map +0 -1
- 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/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
- package/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
- package/dist/ui-kit/SwipeListControl/constants.js +0 -12
- package/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
- package/lib/components/Carousel/CarouselContainer.d.ts +0 -10
- package/lib/components/Carousel/CarouselContainer.js +0 -12
- package/lib/components/Carousel/CarouselContainer.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/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
- package/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
- package/lib/ui-kit/SwipeListControl/constants.js +0 -10
- package/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -7
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -11
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
- package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
- package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
- package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
- package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
- package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
- package/mobile/dist/components/Carousel/CarouselContainer.d.ts +0 -10
- package/mobile/dist/components/Carousel/CarouselContainer.js +0 -14
- package/mobile/dist/components/Carousel/CarouselContainer.js.map +0 -1
- 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/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
- package/mobile/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
- package/mobile/dist/ui-kit/SwipeListControl/constants.js +0 -12
- package/mobile/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
- package/mobile/lib/components/Carousel/CarouselContainer.d.ts +0 -10
- package/mobile/lib/components/Carousel/CarouselContainer.js +0 -12
- package/mobile/lib/components/Carousel/CarouselContainer.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/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
- package/mobile/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
- package/mobile/lib/ui-kit/SwipeListControl/constants.js +0 -10
- package/mobile/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
- package/mobile/src/components/Carousel/CarouselContainer.tsx +0 -34
- 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/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
- package/mobile/src/ui-kit/SwipeListControl/constants.ts +0 -10
- package/mobile/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
- package/src/components/Carousel/CarouselContainer.tsx +0 -34
- 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
- package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
- package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
- package/src/ui-kit/SwipeListControl/constants.ts +0 -10
- package/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
|
@@ -8,11 +8,12 @@ const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
|
8
8
|
const InsuranceAmountBlockInner_1 = require("./InsuranceAmountBlockInner");
|
|
9
9
|
exports.InsuranceAmountBlock = (0, uni_jsx_1.JSX)(({ className = '', title, insuranceTabs = [], button, ...rest }) => {
|
|
10
10
|
const [activeSlideIndex, setActiveSlideIndex] = (0, hooks_1.useState)(0);
|
|
11
|
+
const handleActiveSlideIndex = (0, hooks_1.useCallback)((_) => setActiveSlideIndex(_), []);
|
|
11
12
|
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center mb-8", title: title, headingType: "h3" }) : null, insuranceTabs?.length > 1 ? ((0, jsx_runtime_1.jsx)("div", { className: "p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md", children: insuranceTabs.map((item, i) => renderNavButton({
|
|
12
13
|
title: item?.title,
|
|
13
14
|
i,
|
|
14
|
-
activeSlideIndex,
|
|
15
|
-
onClick: () =>
|
|
15
|
+
isActive: Boolean(i === activeSlideIndex),
|
|
16
|
+
onClick: () => handleActiveSlideIndex(i),
|
|
16
17
|
})) })) : null, (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
|
|
17
18
|
insuranceTabs,
|
|
18
19
|
button,
|
|
@@ -24,11 +25,8 @@ const renderInsuranceGalleries = ({ insuranceTabs, button }) => {
|
|
|
24
25
|
? insuranceGalleries.map((cards, i) => ((0, jsx_runtime_1.jsx)(InsuranceAmountBlockInner_1.InsuranceAmountBlockInner, { button: button, cards: cards }, String(i))))
|
|
25
26
|
: null;
|
|
26
27
|
};
|
|
27
|
-
function renderNavButton({ title, i,
|
|
28
|
-
const
|
|
29
|
-
const btnClassName = isActiveBtn
|
|
30
|
-
? 'bg-primary-main text-white rounded-md'
|
|
31
|
-
: `text-secondary-text`;
|
|
28
|
+
function renderNavButton({ title, i, isActive, onClick }) {
|
|
29
|
+
const btnClassName = isActive ? 'bg-primary-main text-white rounded-md' : `text-secondary-text`;
|
|
32
30
|
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m-light ${btnClassName}`, children: title }, String(i)));
|
|
33
31
|
}
|
|
34
32
|
//# sourceMappingURL=InsuranceAmountBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsuranceAmountBlock.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"InsuranceAmountBlock.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,4DAAyD;AACzD,0DAAuD;AAEvD,2EAAwE;AAW3D,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,aAAa,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAC5D,MAAM,sBAAsB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtF,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,0EAA0E,SAAS,EAAE,KAC5F,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,EACtF,aAAa,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC3B,gCAAK,SAAS,EAAC,wDAAwD,YACpE,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAA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EAAE,YAE7D,KAAK,IALD,MAAM,CAAC,CAAC,CAAC,CAMP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -35,14 +35,14 @@ exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', cards
|
|
|
35
35
|
function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }) {
|
|
36
36
|
const tabsShiftWidth = activeIndex * 460;
|
|
37
37
|
const cardsAlignStyle = cards.length > 2 ? 'justify-start' : 'justify-center';
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000 px-[50px]", children: (0, jsx_runtime_1.jsx)("div", { className: `w-full flex flex-nowrap gap-3.5 pb-12 ${cardsAlignStyle}`, children: cards.map((slide, i) =>
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000 px-[50px]", children: (0, jsx_runtime_1.jsx)("div", { className: `w-full flex flex-nowrap gap-3.5 pb-12 ${cardsAlignStyle}`, children: cards.map((slide, i) => renderNavButton({
|
|
39
39
|
slide,
|
|
40
40
|
i,
|
|
41
41
|
isActive: Boolean(i === selectedCardIndex),
|
|
42
42
|
onClick: () => onClick(i),
|
|
43
43
|
})) }) }));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function renderNavButton({ slide, i, isActive, onClick }) {
|
|
46
46
|
const btnClassName = isActive
|
|
47
47
|
? 'shadow-dark-blue/42 border-primary-main'
|
|
48
48
|
: `ease-in duration-300 border-main-stroke`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsuranceAmountBlockInner.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,yEAAsE;AACtE,uDAAoD;AAEpD,mEAAgE;AAChE,8CAA2C;AAC3C,iFAA8E;AAsBjE,Q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,EAAC,6DAA6D,GAAG,CAChF,CAAC,CAAC,CAAC,IAAI,IACJ,EACN,uBAAC,eAAM,IAAC,SAAS,EAAC,uBAAuB,EAAC,OAAO,EAAC,SAAS,KAAK,MAAM,EAAE,IAAI,EAAE,UAAU,GAAI,IACpF,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,aAAa,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAyB;IAC9F,MAAM,cAAc,GAAG,WAAW,GAAG,GAAG,CAAC;IACzC,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAE9E,OAAO,CACL,gCACE,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,cAAc,KAAK,EAAE,EACxD,SAAS,EAAC,yBAAyB,YAEnC,gCAAK,SAAS,EAAE,yCAAyC,eAAe,EAAE,YACvE,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CACtB,
|
|
1
|
+
{"version":3,"file":"InsuranceAmountBlockInner.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,yEAAsE;AACtE,uDAAoD;AAEpD,mEAAgE;AAChE,8CAA2C;AAC3C,iFAA8E;AAsBjE,QAAA,yBAAyB,GAAG,IAAA,aAAG,EAC1C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IACzC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAC9D,MAAM,uBAAuB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,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gBAAgB,CAAC,iBAAiB,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAC/D,EACL,cAAc,CAAC,QAAQ,CAAC,KAjBpB,MAAM,CAAC,CAAC,CAAC,CAkBP,CACV,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa,EAAE,GAAW;IAClD,OAAO,CACL,iCAAK,SAAS,EAAC,wCAAwC,aACrD,kCAAM,SAAS,EAAC,SAAS,aAAE,IAAA,iDAAuB,EAAC,GAAG,CAAC,eAAU,EACjE,iCAAM,SAAS,EAAC,iCAAiC,YAAE,KAAK,GAAQ,IAC5D,CACP,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,QAAiB;IACvC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,uBAAC,SAAG,IACF,SAAS,EAAE,gDAAgD,EAC3D,KAAK,EAAC,UAAU,EAChB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import type { ParagraphBlockContent } from './ParagraphBlockContent';
|
|
3
|
+
interface ParagraphBlockProps extends ParagraphBlockContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const ParagraphBlock: import("@redneckz/uni-jsx").UNIComponent<ParagraphBlockProps, any, any>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.ParagraphBlock = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
+
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
7
|
+
exports.ParagraphBlock = (0, uni_jsx_1.JSX)((props) => {
|
|
8
|
+
const { className, text, size, color, align, font, ...rest } = props;
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, ...rest, children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: size, color: color, align: align, font: font, children: text }) }));
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=ParagraphBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParagraphBlock.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,gEAA6D;AAKhD,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAErE,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YAC1C,uBAAC,qBAAS,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,YAC1D,IAAI,GACK,GACC,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=ParagraphBlockContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParagraphBlockContent.js","sourceRoot":"","sources":["../../../src/components/ParagraphBlock/ParagraphBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -15,12 +15,13 @@ exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className = '', slides = [], vers
|
|
|
15
15
|
const galleryNav = slides.map((s) => s.nav);
|
|
16
16
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
17
17
|
const [activeSlideIndex, setActiveSlideIndex] = (0, hooks_1.useState)(0);
|
|
18
|
+
const handleActiveSlideIndex = (0, hooks_1.useCallback)((_) => setActiveSlideIndex(_), []);
|
|
18
19
|
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${className}
|
|
19
20
|
${BlockVersion_1.VersionStyleMap[version]}`, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, ...rest, version }, i)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28", children: galleryNav.map((slide, i) => renderNavButton({
|
|
20
21
|
slide,
|
|
21
22
|
i,
|
|
22
|
-
activeSlideIndex,
|
|
23
|
-
onClick: () =>
|
|
23
|
+
isActive: Boolean(i === activeSlideIndex),
|
|
24
|
+
onClick: () => handleActiveSlideIndex(i),
|
|
24
25
|
version,
|
|
25
26
|
})) })] }));
|
|
26
27
|
});
|
|
@@ -29,16 +30,15 @@ function renderProductBlock(block, i) {
|
|
|
29
30
|
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
30
31
|
return ((0, jsx_runtime_1.jsx)("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: `pl-[50px] z-10 ${additionalClass}`, textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
|
|
31
32
|
}
|
|
32
|
-
function renderNavButton({ slide, i,
|
|
33
|
-
const
|
|
34
|
-
const btnClassName = isActiveBtn
|
|
33
|
+
function renderNavButton({ slide, i, isActive, onClick, version }) {
|
|
34
|
+
const btnClassName = isActive
|
|
35
35
|
? 'bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6'
|
|
36
36
|
: `min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur
|
|
37
37
|
${BlockVersion_1.VersionStyleMap[version]}`;
|
|
38
|
-
const btnTitleClassName =
|
|
38
|
+
const btnTitleClassName = isActive
|
|
39
39
|
? 'text-primary-text !text-h6 p-2'
|
|
40
40
|
: `text-l pb-1 ${productBlockStyleMap[version].title}`;
|
|
41
|
-
const btnDescClassName =
|
|
41
|
+
const btnDescClassName = isActive
|
|
42
42
|
? 'text-secondary-text text-l-light'
|
|
43
43
|
: `text-m-light ${productBlockStyleMap[version].text}`;
|
|
44
44
|
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,2DAA2D;AAC3D,6DAAkE;AAGlE,4DAAyD;AAEzD,yEAAsE;AAkBtE,MAAM,oBAAoB,GAAoC;IAC5D,OAAO,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACtE,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE;CAC1D,CAAC;AAEW,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAA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eAAe,aAC5B,gCAAK,SAAS,EAAE,aAAa,iBAAiB,EAAE,YAAG,KAAK,EAAE,KAAK,GAAO,EACtE,gCAAK,SAAS,EAAE,wBAAwB,gBAAgB,EAAE,YAAG,KAAK,EAAE,WAAW,GAAO,IAClF,IAVD,MAAM,CAAC,CAAC,CAAC,CAWP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -9,7 +9,16 @@ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
|
|
|
9
9
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
10
|
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
11
11
|
exports.RollupItem = (0, uni_jsx_1.JSX)(({ className = '', label = 'Развернуть', isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsx)("div", { className: `border-b border-solid border-main-divider w-full ${className}`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)("div", { className: "box-border", children: (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: `grid grid-cols-12 gap-1 border-box`, isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) }) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle, label, version }) }) })));
|
|
12
|
-
exports.RollupItem.childrenTypes =
|
|
12
|
+
exports.RollupItem.childrenTypes = {
|
|
13
|
+
exclude: [
|
|
14
|
+
'RollupItem',
|
|
15
|
+
'Accordion',
|
|
16
|
+
'AccordionItem',
|
|
17
|
+
'OtherProducts',
|
|
18
|
+
'OtherProductsItem',
|
|
19
|
+
'VerticalLayout',
|
|
20
|
+
],
|
|
21
|
+
};
|
|
13
22
|
const renderFoldButton = ({ isUnfolded, onToggle, label, version }) => {
|
|
14
23
|
const iconsPrimary = ['PlusIcon', 'MinusIcon'];
|
|
15
24
|
const iconsSecondary = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AAExE,8CAA2C;AAC3C,uEAAoE;AAgBvD,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,YAAY,EACpB,UAAU,EACV,iBAAiB,GAAG,IAAI,EACxB,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,gCAAK,SAAS,EAAE,oDAAoD,SAAS,EAAE,YAC7E,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,UAAU,EAC7B,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,iCAAe,IACd,SAAS,EAAE,oCAAoC,EAC/C,UAAU,EAAE,UAAU,YAErB,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,GACd,CACP,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC7C,gBAAgB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,GAE5D,GACE,CACP,CACF,CAAC;AAEF,kBAAU,CAAC,aAAa,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAGpE,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AAExE,8CAA2C;AAC3C,uE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O,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAC7B,uBAAC,UAAU,IACT,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EACtC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EACjC,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,qCAAiB,IAChB,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EACxC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EACjC,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACpE,oCACE,SAAS,EAAC,0HAA0H,EACpI,OAAO,EAAE,OAAO,aAEhB,iCAAM,SAAS,EAAC,4BAA4B,YAAE,KAAK,GAAQ,EAC1D,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IACjF,CACV,CAAC,CAAC"}
|
|
@@ -3,7 +3,5 @@ exports.RegionsAndBranches = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const WrapperSelect_1 = require("./WrapperSelect");
|
|
6
|
-
exports.RegionsAndBranches = (0, uni_jsx_1.JSX)(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between gap-4 mb-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "max-w-[396px] w-1/2", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), (0, jsx_runtime_1.jsx)("div", { className: "max-w-[396px] w-1/2", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] }));
|
|
8
|
-
});
|
|
6
|
+
exports.RegionsAndBranches = (0, uni_jsx_1.JSX)(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between gap-4 mb-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "max-w-[396px] w-1/2", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), (0, jsx_runtime_1.jsx)("div", { className: "max-w-[396px] w-1/2", children: (0, jsx_runtime_1.jsx)(WrapperSelect_1.WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] })));
|
|
9
7
|
//# sourceMappingURL=RegionsAndBranches.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegionsAndBranches.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/RegionsAndBranches.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,mDAAgD;AAWnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,OAAO,GAAG,EAAE,EACZ,cAAc,EACd,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,GAAG,EAAE,EACb,cAAc,EACd,gBAAgB,GACjB,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"RegionsAndBranches.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/RegionsAndBranches.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,mDAAgD;AAWnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EACC,OAAO,GAAG,EAAE,EACZ,cAAc,EACd,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,GAAG,EAAE,EACb,cAAc,EACd,gBAAgB,GACjB,EAAE,EAAE,CAAC,CACJ,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,6BAAa,IACZ,IAAI,EAAE,OAAO,EACb,UAAU,EAAC,MAAM,EACjB,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAC,sCAAQ,GACd,GACE,EACN,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,6BAAa,IACZ,IAAI,EAAE,QAAQ,EACd,UAAU,EAAC,YAAY,EACvB,UAAU,EAAC,SAAS,EACpB,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAC,wDAAW,EACjB,WAAW,EAAC,yGAAoB,GAChC,GACE,IACF,CACP,CACF,CAAC"}
|
|
@@ -6,7 +6,7 @@ const core_1 = require("@redneckz/uni-jsx/lib/hooks/core");
|
|
|
6
6
|
const Radio_1 = require("../../ui-kit/Radio/Radio");
|
|
7
7
|
exports.RenderRadioButtons = (0, uni_jsx_1.JSX)(() => {
|
|
8
8
|
const [selectedOption, setSelectedOption] = (0, core_1.useState)('option2');
|
|
9
|
-
const onChange = (_) => setSelectedOption(_
|
|
9
|
+
const onChange = (0, core_1.useCallback)((_) => setSelectedOption(_), []);
|
|
10
10
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Radio_1.Radio, { className: "mb-2", name: "contractType", text: "\u041F\u0440\u043E\u0441\u0442\u043E\u0435 \u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435", value: "option1", checked: selectedOption === 'option1', onChange: onChange }), (0, jsx_runtime_1.jsx)(Radio_1.Radio, { name: "contractType", text: "\u0421\u0434\u0435\u043B\u043A\u0430 \u0441 \u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u044C\u044E", value: "option2", checked: selectedOption === 'option2', onChange: onChange })] }));
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=RenderRadioButtons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderRadioButtons.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/RenderRadioButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"RenderRadioButtons.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/RenderRadioButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAyE;AACzE,oDAAiD;AAEpC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IACzC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,eAAQ,EAAC,SAAS,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,IAAA,kBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,CACL,4CACE,uBAAC,aAAK,IACJ,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,6FAAkB,EACvB,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,cAAc,KAAK,SAAS,EACrC,QAAQ,EAAE,QAAQ,GAClB,EACF,uBAAC,aAAK,IACJ,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,4HAAwB,EAC7B,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,cAAc,KAAK,SAAS,EACrC,QAAQ,EAAE,QAAQ,GAClB,IACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ const utils_1 = require("./utils");
|
|
|
13
13
|
const DEFAULT_DAYS = 26;
|
|
14
14
|
exports.SafeDepositRental = (0, uni_jsx_1.JSX)(({ title, footnote, className = '', ...rest }) => {
|
|
15
15
|
const [showMap, setShowMap] = (0, hooks_1.useState)(false);
|
|
16
|
+
const handleShowMap = (0, hooks_1.useCallback)(() => setShowMap((_) => !_), []);
|
|
16
17
|
const [safeDepositState, setStateDepositState] = (0, hooks_1.useState)({
|
|
17
18
|
selectedRegion: '',
|
|
18
19
|
selectedBranch: '',
|
|
@@ -24,11 +25,8 @@ exports.SafeDepositRental = (0, uni_jsx_1.JSX)(({ title, footnote, className = '
|
|
|
24
25
|
const selectedRegion = normalizeSelectedRegion(safeDepositState.selectedRegion, regions);
|
|
25
26
|
const branches = (0, useSafeBoxes_1.useSafeBoxes)(selectedRegion);
|
|
26
27
|
const handleChangeSafeDepositState = (0, hooks_1.useCallback)((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
27
|
-
const onShowMapToggle = () => {
|
|
28
|
-
setShowMap(!showMap);
|
|
29
|
-
};
|
|
30
28
|
const points = (0, utils_1.getCoordinates)((0, utils_1.getBranch)(branches, safeDepositState.selectedBranch) || branches);
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "font-sans bg-white px-8 py-12", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-2.5 text-center" })) : null, (0, jsx_runtime_1.jsx)(SafeDepositRentalForm_1.SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion },
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "font-sans bg-white px-8 py-12", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-2.5 text-center" })) : null, (0, jsx_runtime_1.jsx)(SafeDepositRentalForm_1.SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onClick: handleShowMap, onChange: handleChangeSafeDepositState }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-[640px]" }) : null] }));
|
|
32
30
|
});
|
|
33
31
|
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
34
32
|
//# sourceMappingURL=SafeDepositRental.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRental.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRental.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,2DAAwD;AAExD,4DAAyD;AACzD,0DAAuD;AACvD,gEAA6D;AAE7D,mEAAgE;AAEhE,mDAAwD;AACxD,mCAAoD;AAIpD,MAAM,YAAY,GAAG,EAAE,CAAC;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,WAAW,EAAC,IAAI,EAChB,EAAE,EAAC,IAAI,EACP,SAAS,EAAC,sCAAsC,GAChD,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,6CAAqB,IACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,EAAE,GAAG,gBAAgB,EAAE,cAAc,EAAE,EAC7C,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,4BAA4B,GACtC,EACD,QAAQ,CAAC,CAAC,CAAC,8BAAG,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAK,CAAC,CAAC,CAAC,IAAI,IAC7E,EACL,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,uBAAC,qBAAS,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,WAAW,GAAG,CAAC,CAAC,CAAC,IAAI,IACzE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,cAAsB,EAAE,OAAkB,EAAE,EAAE,CAC7E,CAAC,cAAc,IAAI,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC"}
|
|
@@ -6,7 +6,7 @@ export interface SafeDepositRentalFieldsProps extends SafeDepositRentalState {
|
|
|
6
6
|
safeBoxCases?: SafeBoxCase[];
|
|
7
7
|
caseVolumes?: SafeBoxCaseVolume[];
|
|
8
8
|
branches?: Branch[];
|
|
9
|
-
|
|
9
|
+
onClick: () => void;
|
|
10
10
|
onChange: HandleChangeState;
|
|
11
11
|
}
|
|
12
12
|
export declare const SafeDepositRentalFields: import("@redneckz/uni-jsx").UNIComponent<SafeDepositRentalFieldsProps, any, any>;
|
|
@@ -7,8 +7,8 @@ const RegionsAndBranches_1 = require("./RegionsAndBranches");
|
|
|
7
7
|
const RenderRadioButtons_1 = require("./RenderRadioButtons");
|
|
8
8
|
const RentalPeriod_1 = require("./RentalPeriod");
|
|
9
9
|
const SafeBoxCases_1 = require("./SafeBoxCases");
|
|
10
|
-
exports.SafeDepositRentalFields = (0, uni_jsx_1.JSX)(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange,
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex-1 mr-9", children: [(0, jsx_runtime_1.jsx)(RegionsAndBranches_1.RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), (0, jsx_runtime_1.jsx)(RentalPeriod_1.RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), (0, jsx_runtime_1.jsx)(SafeBoxCases_1.SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), (0, jsx_runtime_1.jsx)("span", { className: "text-secondary-text text-l-light", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between items-center mt-5", children: [(0, jsx_runtime_1.jsx)(RenderRadioButtons_1.RenderRadioButtons, {}), (0, jsx_runtime_1.jsx)(Button_1.Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick:
|
|
10
|
+
exports.SafeDepositRentalFields = (0, uni_jsx_1.JSX)(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onClick, }) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex-1 mr-9", children: [(0, jsx_runtime_1.jsx)(RegionsAndBranches_1.RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), (0, jsx_runtime_1.jsx)(RentalPeriod_1.RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), (0, jsx_runtime_1.jsx)(SafeBoxCases_1.SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), (0, jsx_runtime_1.jsx)("span", { className: "text-secondary-text text-l-light", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between items-center mt-5", children: [(0, jsx_runtime_1.jsx)(RenderRadioButtons_1.RenderRadioButtons, {}), (0, jsx_runtime_1.jsx)(Button_1.Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onClick })] })] }));
|
|
12
12
|
});
|
|
13
13
|
const onSelectedBranch = (onChange) => (value) => {
|
|
14
14
|
onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRentalFields.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalFields.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AACpD,6DAA0D;AAC1D,6DAA0D;AAC1D,iDAA8C;AAC9C,iDAA8C;AAajC,QAAA,uBAAuB,GAAG,IAAA,aAAG,EACxC,CAAC,EACC,OAAO,EACP,cAAc,EACd,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"SafeDepositRentalFields.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalFields.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AACpD,6DAA0D;AAC1D,6DAA0D;AAC1D,iDAA8C;AAC9C,iDAA8C;AAajC,QAAA,uBAAuB,GAAG,IAAA,aAAG,EACxC,CAAC,EACC,OAAO,EACP,cAAc,EACd,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,OAAO,GACR,EAAE,EAAE;IACH,OAAO,CACL,iCAAK,SAAS,EAAC,aAAa,aAC1B,uBAAC,uCAAkB,IACjB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,EAChE,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GAC5C,EACF,uBAAC,2BAAY,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAI,EAC3E,uBAAC,2BAAY,IACX,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB,EACtC,oBAAoB,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACpD,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,GAClE,EACF,iCAAM,SAAS,EAAC,kCAAkC,oFAAoB,EACtE,iCAAK,SAAS,EAAC,wCAAwC,aACrD,uBAAC,uCAAkB,KAAG,EACtB,uBAAC,eAAM,IAAC,IAAI,EAAC,4EAAgB,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,GAAI,IAChE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,QAA2B,EAAE,EAAE,CAAC,CAAC,KAAa,EAAE,EAAE;IAC1E,QAAQ,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,QAA2B,EAAE,EAAE,CAAC,CAAC,KAAa,EAAE,EAAE;IAC9E,QAAQ,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;AAC/D,CAAC,CAAC"}
|
|
@@ -5,7 +5,7 @@ export interface SafeDepositRentalFormProps {
|
|
|
5
5
|
regions: Region[];
|
|
6
6
|
branches: Branch[];
|
|
7
7
|
data: SafeDepositRentalState;
|
|
8
|
-
|
|
8
|
+
onClick: () => void;
|
|
9
9
|
onChange: (data: Partial<SafeDepositRentalState>) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const SafeDepositRentalForm: import("@redneckz/uni-jsx").UNIComponent<SafeDepositRentalFormProps, any, any>;
|
|
@@ -7,7 +7,7 @@ const SafeDepositRentalFields_1 = require("./SafeDepositRentalFields");
|
|
|
7
7
|
const SafeDepositRentalTotal_1 = require("./SafeDepositRentalTotal");
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
9
|
exports.SafeDepositRentalForm = (0, uni_jsx_1.JSX)((props) => {
|
|
10
|
-
const { regions, data, branches, onChange,
|
|
10
|
+
const { regions, data, branches, onChange, onClick } = props;
|
|
11
11
|
(0, core_1.useEffect)(() => {
|
|
12
12
|
onChange({
|
|
13
13
|
selectedBranch: '',
|
|
@@ -19,7 +19,7 @@ exports.SafeDepositRentalForm = (0, uni_jsx_1.JSX)((props) => {
|
|
|
19
19
|
const caseVolumes = getCaseVolumes(branch?.safeBoxCaseVolumes);
|
|
20
20
|
const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes, data.selectedCaseVolume)?.safeBoxCases;
|
|
21
21
|
const tariffs = getTariffs(safeBoxCases, data.selectedBoxSize);
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between align-top mb-6", children: [(0, jsx_runtime_1.jsx)(SafeDepositRentalFields_1.SafeDepositRentalFields, { ...data, regions: regions,
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between align-top mb-6", children: [(0, jsx_runtime_1.jsx)(SafeDepositRentalFields_1.SafeDepositRentalFields, { ...data, regions: regions, onClick: onClick, branches: branches, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: onChange }), (0, jsx_runtime_1.jsx)(SafeDepositRentalTotal_1.SafeDepositRentalTotal, { days: data.days, tariffs: tariffs })] }));
|
|
23
23
|
});
|
|
24
24
|
const getCaseVolumes = (safeBoxCaseVolumes) => safeBoxCaseVolumes?.length ? safeBoxCaseVolumes?.filter((_) => _?.safeBoxCases?.length) : [];
|
|
25
25
|
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRentalForm.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRentalForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAA6D;AAE7D,uEAAoE;AACpE,qEAAkE;AAGlE,mCAAoC;AAUvB,QAAA,qBAAqB,GAAG,IAAA,aAAG,EAA6B,CAAC,KAAK,EAAE,EAAE;IAC7E,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ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AO,EAAE,OAAO,GAAI,IACzD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,kBAAwC,EAAE,EAAE,CAClE,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAE/F,MAAM,aAAa,GAAG,CAAC,WAAiC,EAAE,kBAA2B,EAAE,EAAE,CACvF,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,kBAAkB,CAAC,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,YAA4B,EAAE,eAAwB,EAAE,EAAE,CAC5E,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,KAAK,eAAe,CAAC,EAAE,OAAO,CAAC"}
|
|
@@ -29,8 +29,6 @@ exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className = '', showLines = true, ste
|
|
|
29
29
|
className,
|
|
30
30
|
].join(' '), ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: `box-border ${titleMargin}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex items-center ${paddingX}`, children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("div", { className: `h-0.5 w-full bg-secondary-light ${lineOpacity}` }))(steps.map(renderStepIcon(styleMap, version))) }), (0, jsx_runtime_1.jsx)("div", { className: `flex justify-between mt-4 ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map((0, renderStepContent_1.renderStepContent)({ styleMap, isMainButton: Boolean(button?.text), version })) })] })) : null, button?.text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-8 min-w-[240px]", version: "primary", ...button })) : null] }));
|
|
31
31
|
});
|
|
32
|
-
const renderStepIcon = (styleMap, version) => ({ icon }, i) => {
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col items-center text-center", children: (0, jsx_runtime_1.jsx)("div", { className: `h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center
|
|
32
|
+
const renderStepIcon = (styleMap, version) => ({ icon }, i) => ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col items-center text-center", children: (0, jsx_runtime_1.jsx)("div", { className: `h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center
|
|
34
33
|
${styleMap.iconBackground} ${styleMap.title}`, children: (0, checkIsIconRenderable_1.checkIsIconRenderable)(icon) ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon || {}, version), width: "48", height: "48", asSVG: true })) : ((0, jsx_runtime_1.jsx)("span", { className: `text-h4 ${styleMap.iconText}`, children: i + 1 })) }) }, String(i)));
|
|
35
|
-
};
|
|
36
34
|
//# sourceMappingURL=StepsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAC3C,6EAA0E;AAC1E,uEAAoE;AACpE,mDAAgD;AAChD,2DAAwD;AAGxD,+DAA+D;AAI/D,MAAM,cAAc,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAE9E,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,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uni-jsx");
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
|
-
exports.TableTileHeader = (0, uni_jsx_1.JSX)(({ title, icon }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-2.5 mb-2", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "font-medium", title: title }) : null, icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "ml-auto max-w-6 max-h-6", image: icon, width: "24px", height: "24px" })) : null] }));
|
|
9
|
-
});
|
|
7
|
+
exports.TableTileHeader = (0, uni_jsx_1.JSX)(({ title, icon }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-2.5 mb-2", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "font-medium", title: title }) : null, icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "ml-auto max-w-6 max-h-6", image: icon, width: "24px", height: "24px" })) : null] })));
|
|
10
8
|
//# sourceMappingURL=TableTileHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTileHeader.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableTileHeader.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AACvD,8CAA2C;AAG9B,QAAA,eAAe,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"TableTileHeader.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableTileHeader.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AACvD,8CAA2C;AAG9B,QAAA,eAAe,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC7E,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACjF,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IAAC,SAAS,EAAC,yBAAyB,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,GAAG,CACpF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC"}
|
|
@@ -22,10 +22,9 @@ exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className = '', title, description,
|
|
|
22
22
|
itemCount: itemCount,
|
|
23
23
|
visibleItemCount: constants_1.COLS_LENGTH_FOR_SCROLL,
|
|
24
24
|
});
|
|
25
|
-
const { isScrollAvailable } = controls;
|
|
26
25
|
const rows = (rowData || []).map((row, i) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
27
26
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${itemCount > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)(Wrapper, { controls: controls,
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${itemCount > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)(Wrapper, { controls: controls, children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: DefaultFoldButton_1.renderDefaultFoldButton })) : ((0, jsx_runtime_1.jsx)(Wrapper, { controls: controls, children: rows }))] }));
|
|
29
28
|
});
|
|
30
29
|
function renderTitle({ title, description }) {
|
|
31
30
|
return title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
|
|
@@ -33,11 +32,12 @@ function renderTitle({ title, description }) {
|
|
|
33
32
|
function renderDescription(description) {
|
|
34
33
|
return description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-9 text-center text-l", children: description }) : null;
|
|
35
34
|
}
|
|
36
|
-
const Wrapper = (0, uni_jsx_1.JSX)(({ children, controls
|
|
37
|
-
|
|
35
|
+
const Wrapper = (0, uni_jsx_1.JSX)(({ children, controls }) => {
|
|
36
|
+
const { isScrollAvailable } = controls;
|
|
37
|
+
return ((0, jsx_runtime_1.jsxs)("div", { role: "table", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [children, (0, renderArrows_1.renderArrows)({
|
|
38
38
|
...controls,
|
|
39
39
|
btnClass: ['top-[108px]', 'top-[44px]'],
|
|
40
40
|
className: 'right-7',
|
|
41
|
-
})
|
|
42
|
-
|
|
41
|
+
})] }), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
|
|
42
|
+
});
|
|
43
43
|
//# sourceMappingURL=TariffsTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,yEAAsE;AAEtE,4DAAyD;AACzD,mEAAgE;AAChE,+EAAkF;AAClF,6DAA0D;AAC1D,2EAAwE;AACxE,0DAAuD;AACvD,2CAAqD;AAErD,uDAAoD;
|
|
1
|
+
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,yEAAsE;AAEtE,4DAAyD;AACzD,mEAAgE;AAChE,+EAAkF;AAClF,6DAA0D;AAC1D,2EAAwE;AACxE,0DAAuD;AACvD,2CAAqD;AAErD,uDAAoD;AAQvC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,UAAU,EACV,cAAc,EAAE,OAAO,EACvB,aAAa,GAAG,CAAC,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,MAAM;QACN,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KAC3C,CAAC,CAAC,CAAC;IACJ,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IACjC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,IAAA,yCAAmB,EAAC;QAClD,SAAS,EAAE,SAAS;QACpB,gBAAgB,EAAE,kCAAsB;KACzC,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,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,CACb,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,EAC3D,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,iBAAiB,CAAC,WAAoB;IAC7C,OAAO,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,yBAAyB,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3F,CAAC;AAED,MAAM,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3D,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,CAAC;IAEvC,OAAO,CACL,iCAAK,IAAI,EAAC,OAAO,aACf,iCAAK,SAAS,EAAC,UAAU,aACtB,QAAQ,EACR,IAAA,2BAAY,EAAC;wBACZ,GAAG,QAAQ;wBACX,QAAQ,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;wBACvC,SAAS,EAAE,SAAS;qBACrB,CAAC,IACE,EACL,iBAAiB,CAAC,CAAC,CAAC,CACnB,gCAAK,SAAS,EAAC,8DAA8D,GAAG,CACjF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -11,8 +11,10 @@ const TariffsTableCell_1 = require("./TariffsTableCell");
|
|
|
11
11
|
const TariffsTableRowContainer_1 = require("./TariffsTableRowContainer");
|
|
12
12
|
exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
|
|
13
13
|
const [tableInner, setTableInner] = (0, hooks_1.useState)(undefined);
|
|
14
|
+
const handleSetTableInner = (0, hooks_1.useCallback)((_) => setTableInner(_), []);
|
|
14
15
|
const [openTableInnerIdx, setOpenTableInnerIdx] = (0, hooks_1.useState)(undefined);
|
|
16
|
+
const handleOpenTableInnerIdx = (0, hooks_1.useCallback)((_) => setOpenTableInnerIdx(_), []);
|
|
15
17
|
const onHideContentClick = () => setTableInner(undefined);
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", image: (0, getIconWithVersion_1.getIconWithVersion)(header.icon), width: "24px", height: "24px", asSVG: true })) : null, header?.title ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeIndex: activeIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner:
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", image: (0, getIconWithVersion_1.getIconWithVersion)(header.icon), width: "24px", height: "24px", asSVG: true })) : null, header?.title ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeIndex: activeIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
17
19
|
});
|
|
18
20
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAEpE,8CAA2C;AAE3C,uEAAoE;AACpE,sFAAmF;AACnF,2CAAgF;AAChF,yDAAsD;AAEtD,yEAAsE;AAQzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAuC,SAAS,CAAC,CAAC;IAC9F,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EACrC,CAAC,CAAuC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAC7D,EAAE,CACH,CAAC;IACF,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAqB,SAAS,CAAC,CAAC;IAC1F,MAAM,uBAAuB,G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qB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface IntersectionObserverOptions<E extends Element = Element> {
|
|
2
|
+
sensitivity?: number;
|
|
3
|
+
rootRef?: {
|
|
4
|
+
current: E | null;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare function useIntersectionObserver<R extends Element>(observerCallback: IntersectionObserverCallback, { sensitivity, rootRef }?: IntersectionObserverOptions): {
|
|
2
8
|
current: R | null;
|
|
3
9
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.useIntersectionObserver = void 0;
|
|
3
3
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
-
|
|
4
|
+
const SENSITIVITY_SCALE = 10;
|
|
5
|
+
function useIntersectionObserver(observerCallback, { sensitivity, rootRef } = {}) {
|
|
5
6
|
const ref = (0, hooks_1.useRef)(null);
|
|
7
|
+
const observerOptions = (0, hooks_1.useMemo)(() => ({ threshold: sensitivityToThreshold(sensitivity), root: rootRef?.current }), [sensitivity, rootRef?.current]);
|
|
6
8
|
(0, hooks_1.useEffect)(() => {
|
|
7
9
|
if (!ref.current) {
|
|
8
10
|
return undefined;
|
|
@@ -16,4 +18,11 @@ function useIntersectionObserver(observerCallback, observerOptions) {
|
|
|
16
18
|
return ref;
|
|
17
19
|
}
|
|
18
20
|
exports.useIntersectionObserver = useIntersectionObserver;
|
|
21
|
+
function sensitivityToThreshold(sensitivity = 0) {
|
|
22
|
+
const thresholdsCount = Math.round(sensitivity * SENSITIVITY_SCALE);
|
|
23
|
+
return new Array(thresholdsCount)
|
|
24
|
+
.fill(0)
|
|
25
|
+
.map((_, thi) => Math.min(thi / thresholdsCount), 1)
|
|
26
|
+
.concat(1);
|
|
27
|
+
}
|
|
19
28
|
//# sourceMappingURL=useIntersectionObserver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIntersectionObserver.js","sourceRoot":"","sources":["../../src/hooks/useIntersectionObserver.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"useIntersectionObserver.js","sourceRoot":"","sources":["../../src/hooks/useIntersectionObserver.ts"],"names":[],"mappings":";;AAAA,uDAAyE;AAOzE,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,SAAgB,uBAAuB,CACrC,gBAA8C,EAC9C,EAAE,WAAW,EAAE,OAAO,KAAkC,EAAE;IAE1D,MAAM,GAAG,GAAG,IAAA,cAAM,EAAW,IAAI,CAAC,CAAC;IAEnC,MAAM,eAAe,GAAG,IAAA,eAAO,EAC7B,GAAG,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,sBAAsB,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAClF,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAChC,CAAC;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;YAChB,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;QACzF,oBAAoB,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAE1C,OAAO,GAAG,EAAE;YACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC;IAExC,OAAO,GAAG,CAAC;AACb,CAAC;AAzBD,0DAyBC;AAED,SAAS,sBAAsB,CAAC,WAAW,GAAG,CAAC;IAC7C,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,iBAAiB,CAAC,CAAC;IAEpE,OAAO,IAAI,KAAK,CAAC,eAAe,CAAC;SAC9B,IAAI,CAAC,CAAC,CAAC;SACP,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;SACnD,MAAM,CAAC,CAAC,CAAC,CAAC;AACf,CAAC"}
|
package/dist/hooks/useLink.js
CHANGED
|
@@ -16,7 +16,7 @@ function useLink() {
|
|
|
16
16
|
props.onClick && props.onClick(ev);
|
|
17
17
|
const isLocalHref = href && !(0, url_1.isURL)(href);
|
|
18
18
|
const isLocalTarget = !props.target || props.target === '_self';
|
|
19
|
-
if (isLocalHref && isLocalTarget) {
|
|
19
|
+
if (isLocalHref && isLocalTarget && !(0, url_1.isHash)(href)) {
|
|
20
20
|
ev?.preventDefault();
|
|
21
21
|
router.push(href);
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AACA,oDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":";;AACA,oDAAiD;AACjD,sCAA6C;AAC7C,yDAAsD;AACtD,2CAAwC;AAMxC,SAAgB,OAAO;IAGrB,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAE3B,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE5C,OAAO;YACL,GAAG,KAAK;YACR,IAAI;YACJ,YAAY,EAAE,KAAK,CAAC,IAAI;YACxB,OAAO,EAAE,IAAA,mCAAgB,EAAC,CAAC,EAAmC,EAAE,EAAE;gBAChE,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBACnC,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,IAAA,WAAK,EAAC,IAAI,CAAC,CAAC;gBACzC,MAAM,aAAa,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC;gBAChE,IAAI,WAAW,IAAI,aAAa,IAAI,CAAC,IAAA,YAAM,EAAC,IAAI,CAAC,EAAE;oBACjD,EAAE,EAAE,cAAc,EAAE,CAAC;oBACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACnB;YACH,CAAC,EAAE,KAAK,CAAC;SACV,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAvBD,0BAuBC"}
|