@redneckz/wildless-cms-uni-blocks 0.13.22 → 0.13.24
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.13.15.js +25 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +49 -38
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
- package/bundle/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/bundle/components/Footer/FooterContent.d.ts +4 -1
- package/bundle/components/Footer/FooterDataProps.d.ts +4 -10
- package/bundle/components/Footer/MediaButton.d.ts +2 -3
- package/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/bundle/services/search/useSearch.d.ts +3 -3
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/bundle/utils/Nullable.d.ts +1 -0
- package/cosmos-static/icons/MailIcon.svg +1 -1
- package/cosmos-static/icons/PhoneIcon.svg +1 -1
- package/cosmos-static/icons/RutubeIcon.svg +1 -1
- package/dist/components/Calculator/Calculator.mobile.js +1 -1
- package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
- package/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +2 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/visibleItemCount.d.ts +1 -0
- package/dist/components/Carousel/visibleItemCount.js +4 -0
- package/dist/components/Carousel/visibleItemCount.js.map +1 -0
- package/dist/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
- package/dist/components/Carousel/visibleItemCount.mobile.js +4 -0
- package/dist/components/Carousel/visibleItemCount.mobile.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/dist/components/Footer/Footer.js +4 -3
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +4 -1
- package/dist/components/Footer/FooterDataProps.d.ts +4 -10
- package/dist/components/Footer/MediaButton.d.ts +2 -3
- package/dist/components/Footer/MediaButton.js +5 -4
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/{lib/components/Footer/buttonSizeStyles.d.ts → dist/components/Footer/buttonSizeStyle.d.ts} +1 -1
- package/{mobile/dist/components/Footer/buttonSizeStyles.js → dist/components/Footer/buttonSizeStyle.js} +3 -3
- package/dist/components/Footer/buttonSizeStyle.js.map +1 -0
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/icons/IconName.js +1 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/services/search/useSearch.d.ts +3 -3
- package/dist/services/search/useSearch.js +2 -5
- package/dist/services/search/useSearch.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +11 -4
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/RichText/RichText.js +2 -1
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/dist/ui-kit/RichText/getHtmlText.js +5 -0
- package/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/dist/ui-kit/SearchDialog/SearchDialog.js +0 -1
- package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/dist/utils/Nullable.d.ts +1 -0
- package/dist/utils/Nullable.js +2 -0
- package/dist/utils/Nullable.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Calculator/Calculator.mobile.js +1 -1
- package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
- package/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +2 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/visibleItemCount.d.ts +1 -0
- package/lib/components/Carousel/visibleItemCount.js +2 -0
- package/lib/components/Carousel/visibleItemCount.js.map +1 -0
- package/lib/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
- package/lib/components/Carousel/visibleItemCount.mobile.js +2 -0
- package/lib/components/Carousel/visibleItemCount.mobile.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/lib/components/Footer/Footer.js +4 -3
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +4 -1
- package/lib/components/Footer/FooterDataProps.d.ts +4 -10
- package/lib/components/Footer/MediaButton.d.ts +2 -3
- package/lib/components/Footer/MediaButton.js +5 -4
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/{dist/components/Footer/buttonSizeStyles.d.ts → lib/components/Footer/buttonSizeStyle.d.ts} +1 -1
- package/lib/components/Footer/buttonSizeStyle.js +5 -0
- package/lib/components/Footer/buttonSizeStyle.js.map +1 -0
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.fixture.mobile.d.ts +9 -0
- package/lib/icons/IconName.js +1 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/services/search/useSearch.d.ts +3 -3
- package/lib/services/search/useSearch.js +3 -6
- package/lib/services/search/useSearch.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +11 -4
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/RichText/RichText.js +2 -1
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/lib/ui-kit/RichText/getHtmlText.js +2 -0
- package/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/lib/ui-kit/SearchDialog/SearchDialog.js +0 -1
- package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/lib/utils/Nullable.d.ts +1 -0
- package/lib/utils/Nullable.js +2 -0
- package/lib/utils/Nullable.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +47 -37
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/mobile/bundle/components/Footer/FooterContent.d.ts +4 -1
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -10
- package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -3
- package/mobile/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/bundle/services/search/useSearch.d.ts +3 -3
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/mobile/bundle/utils/Nullable.d.ts +1 -0
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +2 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/visibleItemCount.d.ts +1 -0
- package/mobile/dist/components/Carousel/visibleItemCount.js +4 -0
- package/mobile/dist/components/Carousel/visibleItemCount.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/mobile/dist/components/Footer/FooterContent.d.ts +4 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -10
- package/mobile/dist/components/Footer/MediaButton.d.ts +2 -3
- package/mobile/dist/components/Footer/MediaButton.js +5 -4
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +4 -0
- package/{dist/components/Footer/buttonSizeStyles.js → mobile/dist/components/Footer/buttonSizeStyle.js} +3 -3
- package/mobile/dist/components/Footer/buttonSizeStyle.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/icons/IconName.js +1 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/services/search/useSearch.d.ts +3 -3
- package/mobile/dist/services/search/useSearch.js +2 -5
- package/mobile/dist/services/search/useSearch.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +11 -4
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichText.js +2 -1
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/mobile/dist/ui-kit/RichText/getHtmlText.js +5 -0
- package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +0 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/dist/utils/Nullable.d.ts +1 -0
- package/mobile/dist/utils/Nullable.js +2 -0
- package/mobile/dist/utils/Nullable.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +2 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/visibleItemCount.d.ts +1 -0
- package/mobile/lib/components/Carousel/visibleItemCount.js +2 -0
- package/mobile/lib/components/Carousel/visibleItemCount.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/mobile/lib/components/Footer/FooterContent.d.ts +4 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -10
- package/mobile/lib/components/Footer/MediaButton.d.ts +2 -3
- package/mobile/lib/components/Footer/MediaButton.js +5 -4
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +4 -0
- package/mobile/lib/components/Footer/buttonSizeStyle.js +5 -0
- package/mobile/lib/components/Footer/buttonSizeStyle.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/icons/IconName.js +1 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/services/search/useSearch.d.ts +3 -3
- package/mobile/lib/services/search/useSearch.js +3 -6
- package/mobile/lib/services/search/useSearch.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +11 -4
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichText.js +2 -1
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/mobile/lib/ui-kit/RichText/getHtmlText.js +2 -0
- package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +0 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/lib/utils/Nullable.d.ts +1 -0
- package/mobile/lib/utils/Nullable.js +2 -0
- package/mobile/lib/utils/Nullable.js.map +1 -0
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
- package/mobile/src/components/Carousel/Carousel.example.json +0 -1
- package/mobile/src/components/Carousel/Carousel.tsx +2 -1
- package/mobile/src/components/Carousel/visibleItemCount.ts +1 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
- package/mobile/src/components/Footer/FooterContent.ts +5 -1
- package/mobile/src/components/Footer/FooterDataProps.ts +4 -10
- package/mobile/src/components/Footer/MediaButton.tsx +34 -39
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
- package/mobile/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -1
- package/mobile/src/icons/IconName.ts +1 -1
- package/mobile/src/icons/MailIcon.svg +4 -1
- package/mobile/src/icons/PhoneIcon.svg +3 -1
- package/mobile/src/icons/RutubeIcon.svg +1 -1
- package/mobile/src/services/search/useSearch.ts +6 -13
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +14 -5
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
- package/mobile/src/ui-kit/RichText/RichText.tsx +3 -2
- package/mobile/src/ui-kit/RichText/getHtmlText.tsx +1 -0
- package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +0 -1
- package/mobile/src/utils/Nullable.ts +1 -0
- package/package.json +1 -1
- package/src/components/Calculator/Calculator.mobile.tsx +1 -1
- package/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
- package/src/components/Carousel/Carousel.example.json +0 -1
- package/src/components/Carousel/Carousel.fixture.tsx +3 -0
- package/src/components/Carousel/Carousel.tsx +2 -1
- package/src/components/Carousel/visibleItemCount.mobile.ts +1 -0
- package/src/components/Carousel/visibleItemCount.ts +1 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +4 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
- package/src/components/Footer/Footer.tsx +4 -3
- package/src/components/Footer/FooterContent.ts +5 -1
- package/src/components/Footer/FooterDataProps.ts +4 -10
- package/src/components/Footer/MediaButton.tsx +34 -39
- package/src/components/Footer/SocialMedia.tsx +2 -2
- package/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
- package/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +3 -3
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -1
- package/src/components/Tile/Tile.fixture.mobile.tsx +48 -0
- package/src/icons/IconName.ts +0 -2
- package/src/icons/MailIcon.svg +4 -1
- package/src/icons/PhoneIcon.svg +3 -1
- package/src/icons/RutubeIcon.svg +1 -1
- package/src/services/search/useSearch.ts +6 -13
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
- package/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
- package/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +14 -5
- package/src/ui-kit/Logo/Logo.tsx +1 -1
- package/src/ui-kit/RichText/RichText.tsx +3 -2
- package/src/ui-kit/RichText/getHtmlText.tsx +1 -0
- package/src/ui-kit/SearchDialog/SearchDialog.tsx +0 -1
- package/src/utils/Nullable.ts +1 -0
- package/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/dist/components/Footer/buttonSizeStyles.js.map +0 -1
- package/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/dist/components/Footer/buttonStylesWithText.js +0 -9
- package/dist/components/Footer/buttonStylesWithText.js.map +0 -1
- package/lib/components/Footer/buttonSizeStyles.js +0 -5
- package/lib/components/Footer/buttonSizeStyles.js.map +0 -1
- package/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/lib/components/Footer/buttonStylesWithText.js +0 -6
- package/lib/components/Footer/buttonStylesWithText.js.map +0 -1
- package/mobile/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +0 -4
- package/mobile/dist/components/Footer/buttonSizeStyles.js.map +0 -1
- package/mobile/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/mobile/dist/components/Footer/buttonStylesWithText.js +0 -9
- package/mobile/dist/components/Footer/buttonStylesWithText.js.map +0 -1
- package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +0 -4
- package/mobile/lib/components/Footer/buttonSizeStyles.js +0 -5
- package/mobile/lib/components/Footer/buttonSizeStyles.js.map +0 -1
- package/mobile/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/mobile/lib/components/Footer/buttonStylesWithText.js +0 -6
- package/mobile/lib/components/Footer/buttonStylesWithText.js.map +0 -1
- package/mobile/src/components/Footer/buttonStylesWithText.ts +0 -11
- package/src/components/Footer/buttonStylesWithText.ts +0 -11
package/bundle/bundle.umd.js
CHANGED
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
607
607
|
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
608
608
|
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
|
|
609
|
-
link: '',
|
|
609
|
+
link: 'text-primary-main',
|
|
610
610
|
transparent: '',
|
|
611
611
|
gray: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
612
612
|
'': '',
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
primary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
627
627
|
secondary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
628
628
|
white: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
629
|
-
link: '',
|
|
629
|
+
link: 'text-primary-main',
|
|
630
630
|
transparent: '',
|
|
631
631
|
gray: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
632
632
|
'': '',
|
|
@@ -1327,12 +1327,19 @@
|
|
|
1327
1327
|
const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
1328
1328
|
const renderButton = (buttonClassName = '') => (button, index) => {
|
|
1329
1329
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
1330
|
-
const
|
|
1331
|
-
const
|
|
1332
|
-
return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1330
|
+
const iconVersion = getIconVersion(icon, version);
|
|
1331
|
+
const iconRightVersion = getIconVersion(iconRight, version);
|
|
1332
|
+
return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1333
1333
|
};
|
|
1334
1334
|
const DEFAULT_ICON_W = 24;
|
|
1335
|
-
const
|
|
1335
|
+
const getIconVersion = (icon, version = 'secondary') => {
|
|
1336
|
+
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
1337
|
+
return icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
|
|
1338
|
+
};
|
|
1339
|
+
const renderButtonIcon = (icon) => {
|
|
1340
|
+
console.log(icon);
|
|
1341
|
+
return icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
|
|
1342
|
+
};
|
|
1336
1343
|
|
|
1337
1344
|
const headlineVersionStyles = {
|
|
1338
1345
|
XXL: {
|
|
@@ -2101,7 +2108,6 @@
|
|
|
2101
2108
|
paramsViewSettings,
|
|
2102
2109
|
});
|
|
2103
2110
|
const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], sourceBookLimitParams, rateRows);
|
|
2104
|
-
const { minSumOld, maxSumOld } = getLimitRangeByKeys(['minSumOld', 'maxSumOld'], sourceBookLimitParams, rateRows);
|
|
2105
2111
|
const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], sourceBookLimitParams, rateRows);
|
|
2106
2112
|
const refinancingCalculatorSourceBookRateParams = getRefinancingCalculatorRateParams({
|
|
2107
2113
|
rateRows,
|
|
@@ -2120,8 +2126,6 @@
|
|
|
2120
2126
|
...userInputParams,
|
|
2121
2127
|
minSum,
|
|
2122
2128
|
maxSum,
|
|
2123
|
-
minSumOld,
|
|
2124
|
-
maxSumOld,
|
|
2125
2129
|
minMonths,
|
|
2126
2130
|
maxMonths,
|
|
2127
2131
|
moneyValue,
|
|
@@ -2545,7 +2549,9 @@
|
|
|
2545
2549
|
'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider');
|
|
2546
2550
|
const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
|
|
2547
2551
|
|
|
2548
|
-
const
|
|
2552
|
+
const VISIBLE_ITEM_COUNT = 1;
|
|
2553
|
+
|
|
2554
|
+
const Carousel = JSX(({ className, itemCount, visibleItemCount = VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
|
|
2549
2555
|
const { blocks: childBlocks = [] } = rest.block || {};
|
|
2550
2556
|
const count = itemCount || childBlocks?.length;
|
|
2551
2557
|
const [activeIndex, { inc: increaseActiveIndex, dec: decreaseActiveIndex }] = useCarouselControls({
|
|
@@ -2618,8 +2624,8 @@
|
|
|
2618
2624
|
center: '@lg:self-center',
|
|
2619
2625
|
end: '@lg:self-end',
|
|
2620
2626
|
};
|
|
2621
|
-
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className:
|
|
2622
|
-
className: '-order-1 @xl:order-1',
|
|
2627
|
+
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex justify-around @lg:justify-between items-stretch gap-3xl', isImageAlwaysOnRight ? 'flex-row' : 'flex-col @lg:flex-row'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
|
|
2628
|
+
className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
|
|
2623
2629
|
imageAlign,
|
|
2624
2630
|
})] })] })));
|
|
2625
2631
|
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
@@ -2697,9 +2703,11 @@
|
|
|
2697
2703
|
? 'bg-secondary-light text-primary-main'
|
|
2698
2704
|
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
|
|
2699
2705
|
|
|
2706
|
+
const getHtmlText = (html) => html.replace(/<\/?[^>]+\/?>/g, '').trim();
|
|
2707
|
+
|
|
2700
2708
|
const RichText = JSX((props) => {
|
|
2701
2709
|
const { __html = '', richVersion = '' } = props;
|
|
2702
|
-
return (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }));
|
|
2710
|
+
return getHtmlText(__html) ? (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } })) : null;
|
|
2703
2711
|
});
|
|
2704
2712
|
|
|
2705
2713
|
const renderBenefitDescription = (description, i) => description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description }, `description-${i}`)) : null;
|
|
@@ -2729,11 +2737,11 @@
|
|
|
2729
2737
|
const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
|
|
2730
2738
|
const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
|
|
2731
2739
|
|
|
2732
|
-
const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
|
|
2740
|
+
const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground, isImageAlwaysOnRight, } = {}, children, }) => {
|
|
2733
2741
|
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
2734
2742
|
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
2735
2743
|
const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
|
|
2736
|
-
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
|
|
2744
|
+
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
|
|
2737
2745
|
});
|
|
2738
2746
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
2739
2747
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
@@ -2744,15 +2752,11 @@
|
|
|
2744
2752
|
description: _.description,
|
|
2745
2753
|
})) }) }) })));
|
|
2746
2754
|
|
|
2747
|
-
const
|
|
2755
|
+
const buttonSizeStyle = {
|
|
2748
2756
|
default: 'w-14 h-14',
|
|
2749
2757
|
stretched: 'flex-1 h-14',
|
|
2750
2758
|
};
|
|
2751
2759
|
|
|
2752
|
-
const buttonStylesWithText = (text, buttonSize) => text
|
|
2753
|
-
? ''
|
|
2754
|
-
: style('py-m group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
|
|
2755
|
-
|
|
2756
2760
|
const ICONS_MAP = [
|
|
2757
2761
|
{
|
|
2758
2762
|
origins: ['t.me', 'telegram.org'],
|
|
@@ -2793,16 +2797,18 @@
|
|
|
2793
2797
|
|
|
2794
2798
|
const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
|
|
2795
2799
|
|
|
2796
|
-
|
|
2797
|
-
|
|
2800
|
+
//TODO: Refactor this.
|
|
2801
|
+
const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
|
|
2802
|
+
const { href } = rest;
|
|
2798
2803
|
const { iconMapped, label } = findIconByHref(href);
|
|
2799
2804
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
2800
|
-
return (jsx(Button, { className: style(
|
|
2805
|
+
return (jsx(Button, { className: style('border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', 'py-m group/media flex items-center justify-center box-border', buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
|
|
2801
2806
|
});
|
|
2802
2807
|
const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
|
|
2803
2808
|
|
|
2804
2809
|
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
|
|
2805
2810
|
|
|
2811
|
+
//TODO: replace SocialMedia with renderButtonSection
|
|
2806
2812
|
const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
|
|
2807
2813
|
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: "S" }) : null }) }) }));
|
|
2808
2814
|
});
|
|
@@ -3296,7 +3302,7 @@
|
|
|
3296
3302
|
transparent: 'text-white',
|
|
3297
3303
|
};
|
|
3298
3304
|
const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$1(bgColor, logo?.image, ICON_SIZE), showTitle
|
|
3299
|
-
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title }) }))
|
|
3305
|
+
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title || 'Россельхозбанк' }) }))
|
|
3300
3306
|
: null] })));
|
|
3301
3307
|
|
|
3302
3308
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
|
|
@@ -3373,17 +3379,14 @@
|
|
|
3373
3379
|
const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
|
|
3374
3380
|
|
|
3375
3381
|
const SEARCH_INDEX_FILENAME = 'search.index.json';
|
|
3376
|
-
const
|
|
3377
|
-
const useSearch = ({ basePathList = DEFAULT_BASE_PATH, initialQuery = '', wasOpened, }) => {
|
|
3382
|
+
const useSearch = ({ basePathList, initialQuery = '', }) => {
|
|
3378
3383
|
const [query, setQuery] = useState(initialQuery || '');
|
|
3379
3384
|
useEffect(() => {
|
|
3380
3385
|
if (initialQuery !== undefined && initialQuery !== null) {
|
|
3381
3386
|
setQuery(initialQuery);
|
|
3382
3387
|
}
|
|
3383
3388
|
}, [initialQuery]);
|
|
3384
|
-
const
|
|
3385
|
-
[wasOpened, basePathList]);
|
|
3386
|
-
const { data } = useAsyncData(key, fetchSearchIndex);
|
|
3389
|
+
const { data } = useAsyncData(basePathList?.length ? basePathList : null, fetchSearchIndex);
|
|
3387
3390
|
const [result, setResult] = useState(null);
|
|
3388
3391
|
useDebouncedEffect(() => {
|
|
3389
3392
|
if (data) {
|
|
@@ -3426,7 +3429,6 @@
|
|
|
3426
3429
|
const [searchResult, searchInputProps] = useSearch({
|
|
3427
3430
|
basePathList,
|
|
3428
3431
|
initialQuery,
|
|
3429
|
-
wasOpened: false,
|
|
3430
3432
|
});
|
|
3431
3433
|
const searchItems = useMemo(() => combineTopItemsAndSearchResult(topItems)(searchResult), [topItems, searchResult]);
|
|
3432
3434
|
useEffect(() => printSearchItems(searchItems), [searchItems]); // Temp
|
|
@@ -3507,11 +3509,11 @@
|
|
|
3507
3509
|
|
|
3508
3510
|
const LEFT_COL_WIDTH = 'w-52';
|
|
3509
3511
|
const Footer = JSX(({ className, ...rest }) => {
|
|
3510
|
-
const { topItems } = useSitemap(rest.options?.page?.fallback);
|
|
3511
|
-
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps
|
|
3512
|
+
const { topItems, logo } = useSitemap(rest.options?.page?.fallback);
|
|
3513
|
+
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
|
|
3512
3514
|
fallback: rest.options?.page?.fallback,
|
|
3513
3515
|
});
|
|
3514
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className:
|
|
3516
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3515
3517
|
});
|
|
3516
3518
|
|
|
3517
3519
|
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
|
|
@@ -4496,7 +4498,7 @@
|
|
|
4496
4498
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
4497
4499
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
4498
4500
|
const text = 'Вернуться назад';
|
|
4499
|
-
return (jsxs("div", { className: "flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
4501
|
+
return (jsxs("div", { className: "hidden sm:flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
4500
4502
|
icon: 'ArrowLeftIcon',
|
|
4501
4503
|
iconVersion: iconVersion,
|
|
4502
4504
|
} }) }), jsx(Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
|
|
@@ -4544,10 +4546,19 @@
|
|
|
4544
4546
|
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
4545
4547
|
}
|
|
4546
4548
|
|
|
4547
|
-
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "
|
|
4549
|
+
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
|
|
4550
|
+
label: 'Адрес',
|
|
4551
|
+
data: address,
|
|
4552
|
+
iconName: 'GeolocationIcon',
|
|
4553
|
+
}), renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' }), renderBlock({
|
|
4554
|
+
label: 'E-mail',
|
|
4555
|
+
data: email,
|
|
4556
|
+
iconName: 'MailIcon',
|
|
4557
|
+
dataColor: 'text-primary-main',
|
|
4558
|
+
}), button?.text ? renderButtonsSection([button]) : null] })] })));
|
|
4548
4559
|
const renderIconBlock = (icon) => (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
|
|
4549
|
-
const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider", children: jsx(RichText, { __html: __html }) }));
|
|
4550
|
-
const renderBlock = (
|
|
4560
|
+
const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { __html: __html }) }));
|
|
4561
|
+
const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
|
|
4551
4562
|
|
|
4552
4563
|
const RichTextBlock = JSX((props) => {
|
|
4553
4564
|
const { __html, richVersion, ...rest } = props;
|
|
@@ -5322,7 +5333,7 @@
|
|
|
5322
5333
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5323
5334
|
}
|
|
5324
5335
|
|
|
5325
|
-
const packageVersion = "0.13.
|
|
5336
|
+
const packageVersion = "0.13.24";
|
|
5326
5337
|
|
|
5327
5338
|
exports.Blocks = Blocks;
|
|
5328
5339
|
exports.ContentPage = ContentPage;
|