@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
|
@@ -12,6 +12,7 @@ export interface CommonRefinancingParams {
|
|
|
12
12
|
isInsurance: boolean;
|
|
13
13
|
isExtraMoney: boolean;
|
|
14
14
|
}
|
|
15
|
+
|
|
15
16
|
export interface RefinancingCalculatorSourceBookRateParams extends CommonRefinancingParams {
|
|
16
17
|
minSum: number;
|
|
17
18
|
maxSum: number;
|
|
@@ -78,12 +79,6 @@ export const useRefinancingCalculatorParams = (
|
|
|
78
79
|
rateRows,
|
|
79
80
|
);
|
|
80
81
|
|
|
81
|
-
const { minSumOld, maxSumOld } = getLimitRangeByKeys(
|
|
82
|
-
['minSumOld', 'maxSumOld'],
|
|
83
|
-
sourceBookLimitParams,
|
|
84
|
-
rateRows,
|
|
85
|
-
);
|
|
86
|
-
|
|
87
82
|
const { minMonths, maxMonths } = getLimitRangeByKeys(
|
|
88
83
|
['minMonths', 'maxMonths'],
|
|
89
84
|
sourceBookLimitParams,
|
|
@@ -110,8 +105,6 @@ export const useRefinancingCalculatorParams = (
|
|
|
110
105
|
...userInputParams,
|
|
111
106
|
minSum,
|
|
112
107
|
maxSum,
|
|
113
|
-
minSumOld,
|
|
114
|
-
maxSumOld,
|
|
115
108
|
minMonths,
|
|
116
109
|
maxMonths,
|
|
117
110
|
moneyValue,
|
|
@@ -57,6 +57,7 @@ export default {
|
|
|
57
57
|
<div className="container grid grid-cols-12">
|
|
58
58
|
<Carousel
|
|
59
59
|
className="col-span-12"
|
|
60
|
+
visibleItemCount={0}
|
|
60
61
|
noCardBorder={true}
|
|
61
62
|
block={{
|
|
62
63
|
type: 'Carousel',
|
|
@@ -171,6 +172,7 @@ export default {
|
|
|
171
172
|
<div className="container grid grid-cols-12">
|
|
172
173
|
<Carousel
|
|
173
174
|
className="col-span-12"
|
|
175
|
+
visibleItemCount={0}
|
|
174
176
|
block={{
|
|
175
177
|
type: 'Carousel',
|
|
176
178
|
blocks: new Array(6).fill({
|
|
@@ -221,6 +223,7 @@ export default {
|
|
|
221
223
|
<div className="container grid grid-cols-12">
|
|
222
224
|
<Carousel
|
|
223
225
|
className="col-span-12"
|
|
226
|
+
visibleItemCount={0}
|
|
224
227
|
block={{
|
|
225
228
|
type: 'Carousel',
|
|
226
229
|
blocks: new Array(6).fill({
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VISIBLE_ITEM_COUNT = 1;
|
package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import '../../setup-fixture';
|
|
2
2
|
|
|
3
3
|
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import type { SocialMediaLink } from '../Footer/FooterContent';
|
|
4
5
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard';
|
|
5
|
-
import type {
|
|
6
|
-
CarouselRecommendationCardContent,
|
|
7
|
-
RecommendationSocialMedia,
|
|
8
|
-
} from './CarouselRecommendationCardContent';
|
|
6
|
+
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
9
7
|
|
|
10
8
|
const icon: Picture = {
|
|
11
9
|
src: 'product-basket.png',
|
|
@@ -17,42 +15,30 @@ const icon: Picture = {
|
|
|
17
15
|
title: 'product-basket',
|
|
18
16
|
};
|
|
19
17
|
|
|
20
|
-
const
|
|
21
|
-
target: '_blank',
|
|
22
|
-
version: 'gray',
|
|
23
|
-
rounded: false,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const socialMediaWithText: RecommendationSocialMedia[] = [
|
|
18
|
+
const socialMediaWithText: SocialMediaLink[] = [
|
|
27
19
|
{
|
|
28
20
|
href: 'https://t.me',
|
|
29
21
|
text: 'Telegram',
|
|
30
|
-
...commonProps,
|
|
31
22
|
},
|
|
32
23
|
{
|
|
33
24
|
href: 'https://vk.com',
|
|
34
25
|
text: 'Telegram',
|
|
35
|
-
...commonProps,
|
|
36
26
|
},
|
|
37
27
|
{
|
|
38
28
|
href: 'https://ok.ru',
|
|
39
29
|
text: 'Telegram',
|
|
40
|
-
...commonProps,
|
|
41
30
|
},
|
|
42
31
|
];
|
|
43
32
|
|
|
44
|
-
const socialMediaWithoutText:
|
|
33
|
+
const socialMediaWithoutText: SocialMediaLink[] = [
|
|
45
34
|
{
|
|
46
35
|
href: 'https://t.me',
|
|
47
|
-
...commonProps,
|
|
48
36
|
},
|
|
49
37
|
{
|
|
50
38
|
href: 'https://vk.com',
|
|
51
|
-
...commonProps,
|
|
52
39
|
},
|
|
53
40
|
{
|
|
54
41
|
href: 'https://ok.ru',
|
|
55
|
-
...commonProps,
|
|
56
42
|
},
|
|
57
43
|
];
|
|
58
44
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import '../../setup-fixture';
|
|
2
2
|
|
|
3
3
|
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import type { SocialMediaLink } from '../Footer/FooterContent';
|
|
4
5
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard';
|
|
5
|
-
import type {
|
|
6
|
-
CarouselRecommendationCardContent,
|
|
7
|
-
RecommendationSocialMedia,
|
|
8
|
-
} from './CarouselRecommendationCardContent';
|
|
6
|
+
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
9
7
|
|
|
10
8
|
const icon: Picture = {
|
|
11
9
|
src: 'product-basket.png',
|
|
@@ -17,42 +15,30 @@ const icon: Picture = {
|
|
|
17
15
|
title: 'product-basket',
|
|
18
16
|
};
|
|
19
17
|
|
|
20
|
-
const
|
|
21
|
-
target: '_blank',
|
|
22
|
-
version: 'gray',
|
|
23
|
-
rounded: false,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const socialMediaWithText: RecommendationSocialMedia[] = [
|
|
18
|
+
const socialMediaWithText: SocialMediaLink[] = [
|
|
27
19
|
{
|
|
28
20
|
href: 'https://t.me',
|
|
29
21
|
text: 'Telegram',
|
|
30
|
-
...commonProps,
|
|
31
22
|
},
|
|
32
23
|
{
|
|
33
24
|
href: 'https://vk.com',
|
|
34
25
|
text: 'Telegram',
|
|
35
|
-
...commonProps,
|
|
36
26
|
},
|
|
37
27
|
{
|
|
38
28
|
href: 'https://ok.ru',
|
|
39
29
|
text: 'Telegram',
|
|
40
|
-
...commonProps,
|
|
41
30
|
},
|
|
42
31
|
];
|
|
43
32
|
|
|
44
|
-
const socialMediaWithoutText:
|
|
33
|
+
const socialMediaWithoutText: SocialMediaLink[] = [
|
|
45
34
|
{
|
|
46
35
|
href: 'https://t.me',
|
|
47
|
-
...commonProps,
|
|
48
36
|
},
|
|
49
37
|
{
|
|
50
38
|
href: 'https://vk.com',
|
|
51
|
-
...commonProps,
|
|
52
39
|
},
|
|
53
40
|
{
|
|
54
41
|
href: 'https://ok.ru',
|
|
55
|
-
...commonProps,
|
|
56
42
|
},
|
|
57
43
|
];
|
|
58
44
|
|
|
@@ -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
|
|
|
@@ -12,6 +12,7 @@ import type { CarouselRecommendationCardContent } from './CarouselRecommendation
|
|
|
12
12
|
|
|
13
13
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
|
|
14
14
|
|
|
15
|
+
//TODO: replace SocialMedia with renderButtonSection
|
|
15
16
|
export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
16
17
|
({
|
|
17
18
|
className,
|
|
@@ -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
|
};
|
|
@@ -6,6 +6,7 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
6
6
|
import { Logo } from '../../ui-kit/Logo/Logo';
|
|
7
7
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
|
|
8
8
|
import { Sitemap } from '../../ui-kit/Sitemap/Sitemap';
|
|
9
|
+
import { style } from '../../utils/style';
|
|
9
10
|
import { Contacts } from './Contacts';
|
|
10
11
|
import type { FooterDataProps } from './FooterDataProps';
|
|
11
12
|
import type { FooterProps } from './FooterProps';
|
|
@@ -16,8 +17,8 @@ import { TextInformation } from './TextInformation';
|
|
|
16
17
|
const LEFT_COL_WIDTH = 'w-52';
|
|
17
18
|
|
|
18
19
|
export const Footer = JSX<FooterProps>(({ className, ...rest }) => {
|
|
19
|
-
const { topItems } = useSitemap(rest.options?.page?.fallback);
|
|
20
|
-
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps
|
|
20
|
+
const { topItems, logo } = useSitemap(rest.options?.page?.fallback);
|
|
21
|
+
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } =
|
|
21
22
|
useSWRResource<FooterDataProps>(projectSettings.FOOTER || 'footer', {
|
|
22
23
|
fallback: rest.options?.page?.fallback,
|
|
23
24
|
});
|
|
@@ -29,7 +30,7 @@ export const Footer = JSX<FooterProps>(({ className, ...rest }) => {
|
|
|
29
30
|
<SearchBar className="grow" />
|
|
30
31
|
</div>
|
|
31
32
|
<div className="flex items-stretch gap-6xl">
|
|
32
|
-
<div className={
|
|
33
|
+
<div className={style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl')}>
|
|
33
34
|
<Contacts items={contacts} />
|
|
34
35
|
<SocialMedia media={socialMedia}>Соцсети</SocialMedia>
|
|
35
36
|
<SocialMedia media={mobileApps}>Мобильное приложение</SocialMedia>
|
|
@@ -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}
|
|
@@ -7,8 +7,8 @@ import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
|
7
7
|
const BUTTON: ButtonContent = {
|
|
8
8
|
text: 'Информация о регионе',
|
|
9
9
|
target: '_blank',
|
|
10
|
-
version: '
|
|
11
|
-
|
|
10
|
+
version: 'link',
|
|
11
|
+
iconRight: { icon: 'ArrowTopRightIcon', iconVersion: 'color' },
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const ICON: Picture = {
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
default: (
|
|
33
33
|
<div className="container grid grid-cols-12">
|
|
34
34
|
<RepresentativeOfficeInfo
|
|
35
|
-
className="col-span-
|
|
35
|
+
className="col-span-6"
|
|
36
36
|
title="Представительство в Республике Беларусь"
|
|
37
37
|
__html={DESCRIPTION}
|
|
38
38
|
address="Республика Беларусь, 220004, г. Минск, ул. Немига, д. 40"
|
|
@@ -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
|
/>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import { Tile } from './Tile';
|
|
5
|
+
import type { TileContent } from './TileContent';
|
|
6
|
+
|
|
7
|
+
const image: Picture = {
|
|
8
|
+
src: 'from-5-5-percent.svg',
|
|
9
|
+
format: 'webp',
|
|
10
|
+
size: {
|
|
11
|
+
width: 145,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const TILE: TileContent = {
|
|
16
|
+
title: 'Кредиты',
|
|
17
|
+
isDotted: true,
|
|
18
|
+
listItemSize: 'L',
|
|
19
|
+
items: ['До 3 млн ₽', 'до 5 лет'],
|
|
20
|
+
__html: undefined,
|
|
21
|
+
buttons: [
|
|
22
|
+
{
|
|
23
|
+
text: 'Подробнее',
|
|
24
|
+
href: '/credit-cards',
|
|
25
|
+
version: 'secondary',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
image,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
default: (
|
|
33
|
+
<div className="container grid grid-cols-12">
|
|
34
|
+
<Tile className="col-span-12" {...TILE} />
|
|
35
|
+
</div>
|
|
36
|
+
),
|
|
37
|
+
rightImage: (
|
|
38
|
+
<div className="container grid grid-cols-12">
|
|
39
|
+
<Tile
|
|
40
|
+
className="col-span-12"
|
|
41
|
+
{...TILE}
|
|
42
|
+
imageOptions={{
|
|
43
|
+
isImageAlwaysOnRight: true,
|
|
44
|
+
}}
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
),
|
|
48
|
+
};
|
package/src/icons/IconName.ts
CHANGED
|
@@ -29,7 +29,6 @@ export const IconsWithoutInversion = new Set([
|
|
|
29
29
|
'HuaweiIcon',
|
|
30
30
|
'InterestGrowthIcon',
|
|
31
31
|
'JCBIcon',
|
|
32
|
-
'MailIcon',
|
|
33
32
|
'MapMarkerClusterIcon',
|
|
34
33
|
'MapMarkerSingleIcon',
|
|
35
34
|
'MapOpenedIcon',
|
|
@@ -41,7 +40,6 @@ export const IconsWithoutInversion = new Set([
|
|
|
41
40
|
'PackA4Icon',
|
|
42
41
|
'PassSendIcon',
|
|
43
42
|
'PercentIcon',
|
|
44
|
-
'PhoneIcon',
|
|
45
43
|
'PowerIcon',
|
|
46
44
|
'PumpkinIcon',
|
|
47
45
|
'ResponseFailIcon',
|
package/src/icons/MailIcon.svg
CHANGED
|
@@ -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>
|