@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
|
@@ -10,6 +10,7 @@ import type { CarouselContent } from './CarouselContent';
|
|
|
10
10
|
import { CarouselScrollButtons } from './CarouselScrollButtons';
|
|
11
11
|
import { ITEMS_GAP } from './itemsGap';
|
|
12
12
|
import { renderCarouselCards } from './renderCarouselCards';
|
|
13
|
+
import { VISIBLE_ITEM_COUNT } from './visibleItemCount';
|
|
13
14
|
|
|
14
15
|
export interface CarouselProps extends CarouselContent, UniBlockProps {
|
|
15
16
|
itemCount?: number;
|
|
@@ -19,7 +20,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
19
20
|
({
|
|
20
21
|
className,
|
|
21
22
|
itemCount,
|
|
22
|
-
visibleItemCount =
|
|
23
|
+
visibleItemCount = VISIBLE_ITEM_COUNT,
|
|
23
24
|
noCardBorder,
|
|
24
25
|
isAlignCenter,
|
|
25
26
|
arrowsPadded = true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VISIBLE_ITEM_COUNT = 0;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
2
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
4
6
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
@@ -7,8 +9,6 @@ import { style } from '../../utils/style';
|
|
|
7
9
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
8
10
|
import { Headline } from '../Headline/Headline';
|
|
9
11
|
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
10
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
11
|
-
import type { Picture } from '../../model/Picture';
|
|
12
12
|
|
|
13
13
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
|
|
14
14
|
|
package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts
CHANGED
|
@@ -2,10 +2,8 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
-
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
6
5
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
|
-
|
|
8
|
-
export type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
|
|
6
|
+
import type { SocialMediaLink } from '../Footer/FooterContent';
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* @title Карточка рекомендаций
|
|
@@ -17,5 +15,5 @@ export type CarouselRecommendationCardContent = UniBlockContent &
|
|
|
17
15
|
LinkCommonProps &
|
|
18
16
|
AlignProps & {
|
|
19
17
|
/** @title Соц сети */
|
|
20
|
-
socialMedia?:
|
|
18
|
+
socialMedia?: SocialMediaLink[];
|
|
21
19
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import type { IconProps } from '../../model/Picture';
|
|
4
|
+
import type { IconProps, Picture } from '../../model/Picture';
|
|
5
|
+
|
|
6
|
+
export interface SocialMediaLink extends LinkProps {
|
|
7
|
+
icon?: Picture;
|
|
8
|
+
}
|
|
5
9
|
|
|
6
10
|
/**
|
|
7
11
|
* @title Тип контакта
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Picture } from '../../model/Picture';
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
2
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
4
|
-
import type { ContactGroup,
|
|
3
|
+
import type { ContactGroup, SocialMediaLink } from './FooterContent';
|
|
5
4
|
|
|
6
5
|
export interface FooterDataProps extends SitemapData {
|
|
7
6
|
documents?: LinkProps[];
|
|
8
7
|
relatedEnterprises?: LinkProps[];
|
|
9
8
|
contacts?: ContactGroup[];
|
|
10
|
-
socialMedia?:
|
|
11
|
-
mobileApps?:
|
|
9
|
+
socialMedia?: SocialMediaLink[];
|
|
10
|
+
mobileApps?: SocialMediaLink[];
|
|
12
11
|
horizontalNavigationTitle?: string; // TODO: для мобильной версии
|
|
13
|
-
subMenu?: SubMenuItem[]; // TODO: для мобильной версии
|
|
14
|
-
logo?: {
|
|
15
|
-
image?: Picture;
|
|
16
|
-
title?: string;
|
|
17
|
-
};
|
|
18
12
|
}
|
|
@@ -1,55 +1,50 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import { Button } from '../../ui-kit/Button/Button';
|
|
4
|
-
import
|
|
4
|
+
import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
6
|
import { style } from '../../utils/style';
|
|
7
|
-
import {
|
|
7
|
+
import { buttonSizeStyle } from './buttonSizeStyle';
|
|
8
8
|
import { findIconByHref } from './findIconByHref';
|
|
9
9
|
|
|
10
10
|
export type ButtonSize = 'default' | 'stretched';
|
|
11
11
|
|
|
12
|
-
interface MediaButtonProps extends
|
|
12
|
+
interface MediaButtonProps extends ButtonContent {
|
|
13
13
|
buttonSize?: ButtonSize;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
//TODO: Refactor this.
|
|
17
|
+
export const MediaButton = JSX<MediaButtonProps>(({ buttonSize = 'default', icon, ...rest }) => {
|
|
18
|
+
const { href } = rest;
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const { iconMapped, label } = findIconByHref(href);
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
) : null}
|
|
50
|
-
</Button>
|
|
51
|
-
);
|
|
52
|
-
},
|
|
53
|
-
);
|
|
24
|
+
return (
|
|
25
|
+
<Button
|
|
26
|
+
className={style(
|
|
27
|
+
'border border-solid hover:border-transparent',
|
|
28
|
+
'group-data-primary:border-main-divider',
|
|
29
|
+
'hover:bg-primary-main hover:text-black',
|
|
30
|
+
'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover',
|
|
31
|
+
'group-data-gray:border-green',
|
|
32
|
+
'py-m group/media flex items-center justify-center box-border',
|
|
33
|
+
buttonSizeStyle[buttonSize],
|
|
34
|
+
)}
|
|
35
|
+
aria-label={label}
|
|
36
|
+
rel="noopener noreferrer"
|
|
37
|
+
target="_blank"
|
|
38
|
+
{...rest}
|
|
39
|
+
>
|
|
40
|
+
<Img
|
|
41
|
+
image={iconCustom}
|
|
42
|
+
imageClassName="group-hover/media:text-white"
|
|
43
|
+
width="24"
|
|
44
|
+
height="24"
|
|
45
|
+
/>
|
|
46
|
+
</Button>
|
|
47
|
+
);
|
|
48
|
+
});
|
|
54
49
|
|
|
55
50
|
const getFilteredIcon = (icon: Picture | undefined) => (icon?.src || icon?.icon ? icon : undefined);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
-
import { MediaButton } from './MediaButton';
|
|
5
|
-
import type { ButtonSize } from './MediaButton';
|
|
6
4
|
import { style } from '../../utils/style';
|
|
5
|
+
import type { ButtonSize } from './MediaButton';
|
|
6
|
+
import { MediaButton } from './MediaButton';
|
|
7
7
|
|
|
8
8
|
export interface SocialMediaProps {
|
|
9
9
|
className?: string;
|
|
@@ -6,6 +6,6 @@ import type { BaseProductTileContent } from '../../ui-kit/BaseProductTile/BasePr
|
|
|
6
6
|
*/
|
|
7
7
|
export type ProductBlockContent = UniBlockContent &
|
|
8
8
|
BaseProductTileContent & {
|
|
9
|
-
/** @title Отображать кнопку возврата */
|
|
9
|
+
/** @title Отображать кнопку возврата (только для десктопной версии) */
|
|
10
10
|
backwardButton?: boolean;
|
|
11
11
|
};
|
|
@@ -9,7 +9,7 @@ export function renderBackwardButton(version: ButtonVersion, handleClick: () =>
|
|
|
9
9
|
const text = 'Вернуться назад';
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<div className="flex items-center gap-s">
|
|
12
|
+
<div className="hidden sm:flex items-center gap-s">
|
|
13
13
|
<div
|
|
14
14
|
className={getRegularButtonClasses({ className, version, rounded: true })}
|
|
15
15
|
onClick={handleClick}
|
|
@@ -11,6 +11,7 @@ import { RichText } from '../../ui-kit/RichText/RichText';
|
|
|
11
11
|
import { Text } from '../../ui-kit/Text/Text';
|
|
12
12
|
import { style } from '../../utils/style';
|
|
13
13
|
import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
|
|
14
|
+
import type { TextColor } from '../../ui-kit/Text/TextProps';
|
|
14
15
|
|
|
15
16
|
export interface RepresentativeOfficeInfoProps
|
|
16
17
|
extends RepresentativeOfficeInfoContent,
|
|
@@ -36,13 +37,22 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
36
37
|
>
|
|
37
38
|
<div className="w-full flex justify-between flex-row-reverse">
|
|
38
39
|
{renderIconBlock(icon)}
|
|
39
|
-
{title ? <Heading headingType="
|
|
40
|
+
{title ? <Heading headingType="h3" as="h3" title={title} /> : null}
|
|
40
41
|
</div>
|
|
41
42
|
<div className="w-full space-y-m">
|
|
42
43
|
{__html ? renderDescriptionBlock(__html) : null}
|
|
43
|
-
{renderBlock(
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
{renderBlock({
|
|
45
|
+
label: 'Адрес',
|
|
46
|
+
data: address,
|
|
47
|
+
iconName: 'GeolocationIcon',
|
|
48
|
+
})}
|
|
49
|
+
{renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' })}
|
|
50
|
+
{renderBlock({
|
|
51
|
+
label: 'E-mail',
|
|
52
|
+
data: email,
|
|
53
|
+
iconName: 'MailIcon',
|
|
54
|
+
dataColor: 'text-primary-main',
|
|
55
|
+
})}
|
|
46
56
|
{button?.text ? renderButtonsSection([button]) : null}
|
|
47
57
|
</div>
|
|
48
58
|
</BlockWrapper>
|
|
@@ -56,23 +66,29 @@ const renderIconBlock = (icon?: Picture) => (
|
|
|
56
66
|
);
|
|
57
67
|
|
|
58
68
|
const renderDescriptionBlock = (__html?: string) => (
|
|
59
|
-
<div className="border-b border-main-divider">
|
|
69
|
+
<div className="border-b border-main-divider pb-lg">
|
|
60
70
|
<RichText __html={__html} />
|
|
61
71
|
</div>
|
|
62
72
|
);
|
|
63
73
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
interface renderBlockProps {
|
|
75
|
+
label?: string;
|
|
76
|
+
data?: string;
|
|
77
|
+
iconName?: IconName | undefined;
|
|
78
|
+
dataColor?: TextColor;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const renderBlock = ({ label, data, iconName, dataColor = '' }: renderBlockProps) =>
|
|
82
|
+
data ? (
|
|
83
|
+
<div className="flex gap-s">
|
|
84
|
+
<Icon iconVersion="black" name={iconName} width="24" height="24" />
|
|
85
|
+
<div className="flex flex-col gap-2xs">
|
|
86
|
+
<Text size="text-m" font="font-light" color="text-secondary-text">
|
|
87
|
+
{label}
|
|
88
|
+
</Text>
|
|
89
|
+
<Text size="text-xl" color={dataColor}>
|
|
73
90
|
{data}
|
|
74
91
|
</Text>
|
|
75
|
-
|
|
92
|
+
</div>
|
|
76
93
|
</div>
|
|
77
|
-
|
|
78
|
-
);
|
|
94
|
+
) : null;
|
|
@@ -128,10 +128,11 @@ const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step
|
|
|
128
128
|
'z-10 mr-s flex justify-center content-center',
|
|
129
129
|
)}
|
|
130
130
|
>
|
|
131
|
-
<span className="flex self-center text-h4 text-secondary-text group-data-secondary:text-white">
|
|
131
|
+
<span className="flex max-w-full max-h-full self-center text-h4 text-secondary-text group-data-secondary:text-white">
|
|
132
132
|
{checkCanRenderIcon(step?.icon) ? (
|
|
133
133
|
<Img
|
|
134
134
|
image={{ ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }}
|
|
135
|
+
imageClassName="max-w-full max-h-full"
|
|
135
136
|
width={iconSize}
|
|
136
137
|
height={iconSize}
|
|
137
138
|
/>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable max-len, max-lines */
|
|
4
4
|
|
|
5
5
|
export const IconsWithoutInversion = new Set([
|
|
6
|
-
'ActualBalanceIcon', 'AirPlaneIcon', 'BagIcon', 'BelarusianFlag', 'BriefcaseIcon', 'CardWithGemIcon', 'CarIcon', 'ChartIcon', 'ChevronLeftIcon', 'CinemaIcon', 'ClientIcon', 'ClockIcon', 'ComfortableCompIcon', 'CreditCardsIcon', 'DocsIcon', 'DollarIcon', 'DoneIcon', 'EarthIcon', 'EuroIcon', 'FullScreenIcon', 'GlassIcon', 'HeadphonesIcon', 'HeartIcon', 'HouseIcon', 'HuaweiIcon', 'InterestGrowthIcon', 'JCBIcon', '
|
|
6
|
+
'ActualBalanceIcon', 'AirPlaneIcon', 'BagIcon', 'BelarusianFlag', 'BriefcaseIcon', 'CardWithGemIcon', 'CarIcon', 'ChartIcon', 'ChevronLeftIcon', 'CinemaIcon', 'ClientIcon', 'ClockIcon', 'ComfortableCompIcon', 'CreditCardsIcon', 'DocsIcon', 'DollarIcon', 'DoneIcon', 'EarthIcon', 'EuroIcon', 'FullScreenIcon', 'GlassIcon', 'HeadphonesIcon', 'HeartIcon', 'HouseIcon', 'HuaweiIcon', 'InterestGrowthIcon', 'JCBIcon', 'MapMarkerClusterIcon', 'MapMarkerSingleIcon', 'MapOpenedIcon', 'MasterCardIcon', 'MirIcon', 'MoneyInsuranceIcon', 'NewDocIcon', 'OfficeIcon', 'PackA4Icon', 'PassSendIcon', 'PercentIcon', 'PowerIcon', 'PumpkinIcon', 'ResponseFailIcon', 'ResponseOKIcon', 'SignDocsIcon', 'SoundIcon', 'UnionPayIcon', 'UserGeoLocationIcon', 'VisaIcon', 'WateringCanIcon'
|
|
7
7
|
]);
|
|
8
8
|
|
|
9
9
|
export enum IconMap {
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg title="E-mail" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"
|
|
1
|
+
<svg title="E-mail" isInverse="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
|
|
2
|
+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M22 12.98v2.52c0 3.5-2 5-5 5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5"/>
|
|
3
|
+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9"/>
|
|
4
|
+
</svg>
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
<svg title="Телефон" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"
|
|
1
|
+
<svg title="Телефон" isInverse="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none">
|
|
2
|
+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M9.39 6.01c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78 0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56"/>
|
|
3
|
+
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg title="Лого «Rutube»" isInverse="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><g fill="
|
|
1
|
+
<svg title="Лого «Rutube»" isInverse="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><g fill="currentColor" clip-path="url(#clip0_21939_18954)"><path d="M18.165 4.692a1.835 1.835 0 1 0 0-3.67 1.835 1.835 0 0 0 0 3.67ZM12.711 4.489H-.187v14.338h3.59v-4.665h6.88l3.138 4.665h4.02l-3.462-4.686c1.075-.172 1.85-.58 2.322-1.226.473-.644.71-1.676.71-3.052V8.788c0-.817-.087-1.462-.237-1.956A3.268 3.268 0 0 0 16 5.521a3.5 3.5 0 0 0-1.333-.796c-.516-.15-1.16-.236-1.956-.236Zm-.58 6.513H3.403V7.65h8.728c.494 0 .838.086 1.01.236.172.15.28.43.28.839v1.204c0 .43-.108.709-.28.86-.172.15-.516.214-1.01.214Z"/></g><defs><clipPath id="clip0_21939_18954"><path fill="#fff" d="M0 0h20v20H0z"/></clipPath></defs></svg>
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { useEffect,
|
|
1
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
3
|
+
import type { Nullable } from '../../utils/Nullable';
|
|
3
4
|
import { fetchJSON } from '../../utils/fetchJSON';
|
|
4
5
|
import { joinPath } from '../../utils/url';
|
|
5
6
|
import { useDebouncedEffect } from '../../utils/useDebouncedEffect';
|
|
6
|
-
import { CorpusItem,
|
|
7
|
+
import { CorpusItem, SearchIndex, search } from './search';
|
|
7
8
|
|
|
8
9
|
const SEARCH_INDEX_FILENAME = 'search.index.json';
|
|
9
|
-
const DEFAULT_BASE_PATH = ['/'];
|
|
10
10
|
|
|
11
11
|
export type SearchResult = Array<CorpusItem[]>; // List of pages (CorpusItem) per base path from "basePathList"
|
|
12
12
|
|
|
13
13
|
interface SearchParams {
|
|
14
|
-
basePathList
|
|
14
|
+
basePathList: Nullable<string[]>;
|
|
15
15
|
initialQuery?: string;
|
|
16
|
-
wasOpened?: boolean;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export interface SearchInputProps {
|
|
@@ -22,9 +21,8 @@ export interface SearchInputProps {
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export const useSearch = ({
|
|
25
|
-
basePathList
|
|
24
|
+
basePathList,
|
|
26
25
|
initialQuery = '',
|
|
27
|
-
wasOpened,
|
|
28
26
|
}: SearchParams): [SearchResult | null, SearchInputProps] => {
|
|
29
27
|
const [query, setQuery] = useState(initialQuery || '');
|
|
30
28
|
|
|
@@ -34,12 +32,7 @@ export const useSearch = ({
|
|
|
34
32
|
}
|
|
35
33
|
}, [initialQuery]);
|
|
36
34
|
|
|
37
|
-
const
|
|
38
|
-
() => basePathList.map((_) => (wasOpened ? _ : null)), // Load search index on very first search
|
|
39
|
-
[wasOpened, basePathList],
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
const { data } = useAsyncData(key, fetchSearchIndex);
|
|
35
|
+
const { data } = useAsyncData(basePathList?.length ? basePathList : null, fetchSearchIndex);
|
|
43
36
|
|
|
44
37
|
const [result, setResult] = useState<SearchResult | null>(null);
|
|
45
38
|
|
|
@@ -33,7 +33,12 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
33
33
|
tags = [],
|
|
34
34
|
buttons,
|
|
35
35
|
image,
|
|
36
|
-
imageOptions: {
|
|
36
|
+
imageOptions: {
|
|
37
|
+
imageAlign = 'end',
|
|
38
|
+
directionRight = true,
|
|
39
|
+
isBackground,
|
|
40
|
+
isImageAlwaysOnRight,
|
|
41
|
+
} = {},
|
|
37
42
|
children,
|
|
38
43
|
}) => {
|
|
39
44
|
const img = image?.src ? <Img image={image} /> : null;
|
|
@@ -58,6 +63,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
58
63
|
{...(isFullWidthTitle ? { insetTitle: headline } : { title: headline })}
|
|
59
64
|
{...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight))}
|
|
60
65
|
imageAlign={imageAlign}
|
|
66
|
+
isImageAlwaysOnRight={isImageAlwaysOnRight}
|
|
61
67
|
buttons={renderButtonsSection(buttons)}
|
|
62
68
|
>
|
|
63
69
|
<div className="flex flex-col gap-xl">
|
|
@@ -16,6 +16,8 @@ export interface TileImageOptions {
|
|
|
16
16
|
imageAlign?: Align;
|
|
17
17
|
/** @title Фоновое изображение */
|
|
18
18
|
isBackground?: boolean;
|
|
19
|
+
/** @title Изображение всегда справа */
|
|
20
|
+
isImageAlwaysOnRight?: boolean;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export type BaseProductTileContent = HeadlineProps &
|
|
@@ -12,6 +12,7 @@ interface BaseTileProps extends UniBlockProps {
|
|
|
12
12
|
imageAlign?: Align;
|
|
13
13
|
backImage?: VNode;
|
|
14
14
|
buttons?: VNode;
|
|
15
|
+
isImageAlwaysOnRight?: boolean;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
const imageAlignmentMap: Record<Align, string> = {
|
|
@@ -32,6 +33,7 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
32
33
|
rightImage,
|
|
33
34
|
imageAlign,
|
|
34
35
|
backImage,
|
|
36
|
+
isImageAlwaysOnRight = false,
|
|
35
37
|
children,
|
|
36
38
|
}) => (
|
|
37
39
|
<div
|
|
@@ -42,7 +44,12 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
42
44
|
)}
|
|
43
45
|
>
|
|
44
46
|
{title ? <div className="relative">{title}</div> : null}
|
|
45
|
-
<div
|
|
47
|
+
<div
|
|
48
|
+
className={style(
|
|
49
|
+
'grow relative flex justify-around @lg:justify-between items-stretch gap-3xl',
|
|
50
|
+
isImageAlwaysOnRight ? 'flex-row' : 'flex-col @lg:flex-row',
|
|
51
|
+
)}
|
|
52
|
+
>
|
|
46
53
|
{renderImageContainer(leftImage, { imageAlign })}
|
|
47
54
|
<div
|
|
48
55
|
className={style(
|
|
@@ -60,7 +67,7 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
60
67
|
{buttons}
|
|
61
68
|
</div>
|
|
62
69
|
{renderImageContainer(rightImage, {
|
|
63
|
-
className: '-order-1 @xl:order-1',
|
|
70
|
+
className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
|
|
64
71
|
imageAlign,
|
|
65
72
|
})}
|
|
66
73
|
</div>
|
|
@@ -6,7 +6,7 @@ export const buttonStyleMap: Record<ButtonVersion, string> = {
|
|
|
6
6
|
'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
7
7
|
white:
|
|
8
8
|
'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
|
|
9
|
-
link: '',
|
|
9
|
+
link: 'text-primary-main',
|
|
10
10
|
transparent: '',
|
|
11
11
|
gray: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
12
12
|
'': '',
|
|
@@ -30,7 +30,7 @@ export const iconStyleMap: Record<ButtonVersion, string> = {
|
|
|
30
30
|
primary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
31
31
|
secondary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
32
32
|
white: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
33
|
-
link: '',
|
|
33
|
+
link: 'text-primary-main',
|
|
34
34
|
transparent: '',
|
|
35
35
|
gray: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
36
36
|
'': '',
|
|
@@ -30,15 +30,15 @@ const renderButton =
|
|
|
30
30
|
(buttonClassName = '') =>
|
|
31
31
|
(button?: ButtonContent, index?: number) => {
|
|
32
32
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
33
|
-
const
|
|
34
|
-
const
|
|
33
|
+
const iconVersion = getIconVersion(icon, version);
|
|
34
|
+
const iconRightVersion = getIconVersion(iconRight, version);
|
|
35
35
|
|
|
36
36
|
return text || icon?.icon ? (
|
|
37
37
|
<Button
|
|
38
38
|
key={index ? String(index) : ''}
|
|
39
39
|
className={style('basis-full sm:basis-auto', buttonClassName)}
|
|
40
40
|
appendLeft={renderButtonIcon({ ...icon, iconVersion })}
|
|
41
|
-
appendRight={renderButtonIcon({ ...iconRight, iconVersion })}
|
|
41
|
+
appendRight={renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion })}
|
|
42
42
|
version={version}
|
|
43
43
|
text={text}
|
|
44
44
|
{...rest}
|
|
@@ -48,11 +48,20 @@ const renderButton =
|
|
|
48
48
|
|
|
49
49
|
const DEFAULT_ICON_W = 24;
|
|
50
50
|
|
|
51
|
-
const
|
|
52
|
-
|
|
51
|
+
const getIconVersion = (icon: Picture | undefined, version = 'secondary') => {
|
|
52
|
+
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
53
|
+
|
|
54
|
+
return icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const renderButtonIcon = (icon: Picture) => {
|
|
58
|
+
console.log(icon);
|
|
59
|
+
|
|
60
|
+
return icon?.icon || icon?.src ? (
|
|
53
61
|
<Img
|
|
54
62
|
image={icon}
|
|
55
63
|
width={String(icon?.size?.width || DEFAULT_ICON_W)}
|
|
56
64
|
height={String(DEFAULT_ICON_W)}
|
|
57
65
|
/>
|
|
58
66
|
) : null;
|
|
67
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { style } from '../../utils/style';
|
|
3
3
|
import type { RichTextProps } from './RichTextProps';
|
|
4
|
+
import { getHtmlText } from './getHtmlText';
|
|
4
5
|
|
|
5
6
|
export const RichText = JSX<RichTextProps>((props) => {
|
|
6
7
|
const { __html = '', richVersion = '' } = props;
|
|
7
8
|
|
|
8
|
-
return (
|
|
9
|
+
return getHtmlText(__html) ? (
|
|
9
10
|
<div className={style(richVersion, 'md-container')} dangerouslySetInnerHTML={{ __html }} />
|
|
10
|
-
);
|
|
11
|
+
) : null;
|
|
11
12
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const getHtmlText = (html: string) => html.replace(/<\/?[^>]+\/?>/g, '').trim();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Nullable<T> = T | null | undefined;
|
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@ const renderFoldButton =
|
|
|
61
61
|
return (
|
|
62
62
|
<button
|
|
63
63
|
onClick={onToggle}
|
|
64
|
-
className="w-full p-xl bg-
|
|
64
|
+
className="w-full p-xl bg-primary-main flex items-center border-b border-white"
|
|
65
65
|
>
|
|
66
66
|
<div className="w-11 h-11 bg-white rounded-md flex justify-center items-center">
|
|
67
67
|
<Icon name={tab.nav?.icon?.icon} iconVersion="color" width="24" height="24" />
|