@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VISIBLE_ITEM_COUNT = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VISIBLE_ITEM_COUNT = 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
2
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
3
3
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CarouselRecommendationCard: import("@redneckz/uni-jsx").UNIComponent<RecommendationCardProps, any, any>;
|
|
@@ -2,13 +2,12 @@ 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
|
-
|
|
6
|
+
import type { SocialMediaLink } from '../Footer/FooterContent';
|
|
8
7
|
/**
|
|
9
8
|
* @title Карточка рекомендаций
|
|
10
9
|
*/
|
|
11
10
|
export declare type CarouselRecommendationCardContent = UniBlockContent & HeadlineCommonProps & ListContent & IconProps & LinkCommonProps & AlignProps & {
|
|
12
11
|
/** @title Соц сети */
|
|
13
|
-
socialMedia?:
|
|
12
|
+
socialMedia?: SocialMediaLink[];
|
|
14
13
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
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
|
+
export interface SocialMediaLink extends LinkProps {
|
|
6
|
+
icon?: Picture;
|
|
7
|
+
}
|
|
5
8
|
/**
|
|
6
9
|
* @title Тип контакта
|
|
7
10
|
* @enumNames [
|
|
@@ -1,17 +1,11 @@
|
|
|
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
|
export interface FooterDataProps extends SitemapData {
|
|
6
5
|
documents?: LinkProps[];
|
|
7
6
|
relatedEnterprises?: LinkProps[];
|
|
8
7
|
contacts?: ContactGroup[];
|
|
9
|
-
socialMedia?:
|
|
10
|
-
mobileApps?:
|
|
8
|
+
socialMedia?: SocialMediaLink[];
|
|
9
|
+
mobileApps?: SocialMediaLink[];
|
|
11
10
|
horizontalNavigationTitle?: string;
|
|
12
|
-
subMenu?: SubMenuItem[];
|
|
13
|
-
logo?: {
|
|
14
|
-
image?: Picture;
|
|
15
|
-
title?: string;
|
|
16
|
-
};
|
|
17
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
1
|
+
import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
3
2
|
export declare type ButtonSize = 'default' | 'stretched';
|
|
4
|
-
interface MediaButtonProps extends
|
|
3
|
+
interface MediaButtonProps extends ButtonContent {
|
|
5
4
|
buttonSize?: ButtonSize;
|
|
6
5
|
}
|
|
7
6
|
export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
|
|
@@ -4,6 +4,6 @@ import type { BaseProductTileContent } from '../../ui-kit/BaseProductTile/BasePr
|
|
|
4
4
|
* @title Продуктовый блок
|
|
5
5
|
*/
|
|
6
6
|
export declare type ProductBlockContent = UniBlockContent & BaseProductTileContent & {
|
|
7
|
-
/** @title Отображать кнопку возврата */
|
|
7
|
+
/** @title Отображать кнопку возврата (только для десктопной версии) */
|
|
8
8
|
backwardButton?: boolean;
|
|
9
9
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import type { Nullable } from '../../utils/Nullable';
|
|
1
2
|
import { CorpusItem } from './search';
|
|
2
3
|
export declare type SearchResult = Array<CorpusItem[]>;
|
|
3
4
|
interface SearchParams {
|
|
4
|
-
basePathList
|
|
5
|
+
basePathList: Nullable<string[]>;
|
|
5
6
|
initialQuery?: string;
|
|
6
|
-
wasOpened?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface SearchInputProps {
|
|
9
9
|
value: string;
|
|
10
10
|
onChange: (query: string) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare const useSearch: ({ basePathList, initialQuery,
|
|
12
|
+
export declare const useSearch: ({ basePathList, initialQuery, }: SearchParams) => [SearchResult | null, SearchInputProps];
|
|
13
13
|
export {};
|
|
@@ -15,6 +15,8 @@ export interface TileImageOptions {
|
|
|
15
15
|
imageAlign?: Align;
|
|
16
16
|
/** @title Фоновое изображение */
|
|
17
17
|
isBackground?: boolean;
|
|
18
|
+
/** @title Изображение всегда справа */
|
|
19
|
+
isImageAlwaysOnRight?: boolean;
|
|
18
20
|
}
|
|
19
21
|
export declare type BaseProductTileContent = HeadlineProps & BenefitsListContent & RichTextProps & ListContent & BulletsProps & TagsContent & ButtonsSectionContent & ImageContent & {
|
|
20
22
|
/** @title Лейбл (моб.) */
|
|
@@ -9,6 +9,7 @@ interface BaseTileProps extends UniBlockProps {
|
|
|
9
9
|
imageAlign?: Align;
|
|
10
10
|
backImage?: VNode;
|
|
11
11
|
buttons?: VNode;
|
|
12
|
+
isImageAlwaysOnRight?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const BaseTile: import("@redneckz/uni-jsx").UNIComponent<BaseTileProps, any, any>;
|
|
14
15
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getHtmlText: (html: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Nullable<T> = T | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="
|
|
1
|
+
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><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"/><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"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="
|
|
1
|
+
<svg id="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><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"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg id="icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><g fill="
|
|
1
|
+
<svg id="icon" 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.67Zm-5.454-.203H-.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>
|
|
@@ -28,6 +28,6 @@ const renderTabs = (tabs) => {
|
|
|
28
28
|
return tabs.map((tab, index) => ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: index === 0, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: (0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { children: renderCalculator(tab) }) })), renderFoldButton: renderFoldButton(tab) }, index.toString())));
|
|
29
29
|
};
|
|
30
30
|
const renderFoldButton = (tab) => ({ isUnfolded, onToggle }) => {
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)("button", { onClick: onToggle, className: "w-full p-xl bg-
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)("button", { onClick: onToggle, className: "w-full p-xl bg-primary-main flex items-center border-b border-white", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-11 h-11 bg-white rounded-md flex justify-center items-center", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: tab.nav?.icon?.icon, iconVersion: "color", width: "24", height: "24" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex-1 flex flex-col pl-s", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { align: "text-left", color: "text-white", children: tab.nav?.title }), (0, jsx_runtime_1.jsx)(Text_1.Text, { align: "text-left", size: "text-s", color: "text-white", font: "font-light", children: tab.nav?.description })] }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', iconVersion: "white", width: "24", height: "24" })] }));
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=Calculator.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calculator.mobile.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAE1D,2EAAwE;AACxE,iDAA8C;AAC9C,iDAA8C;AAE9C,iEAA8D;AAIjD,QAAA,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,SAAS,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CACrF,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,KAAK,YACrD,UAAU,CAAC,cAAc,CAAC,GACd,CAChB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,GAAkB,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,GAAG,CAAC,eAAe,EAAE,QAAQ,CAAC;IAE3C,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,2CAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,2CAAoB,CAAC,IAAI,CAAC,CAAC;IAEjD,OAAO,uBAAC,aAAa,OAAK,GAAG,CAAC,eAAe,EAAE,QAAQ,SAAG,CAAC;AAC7D,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAqB,EAAE,EAAE;IAC3C,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACzB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAEtC,IAAI,WAAW,EAAE;QACf,OAAO,uBAAC,2BAAY,cAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAgB,CAAC;KACjE;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EA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,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC1E,EACN,iCAAK,SAAS,EAAC,2BAA2B,aACxC,uBAAC,WAAI,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,YAAY,YACvC,GAAG,CAAC,GAAG,EAAE,KAAK,GACV,EACP,uBAAC,WAAI,IAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,YAAY,YACvE,GAAG,CAAC,GAAG,EAAE,WAAW,GAChB,IACH,EACN,uBAAC,WAAI,IACH,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAClD,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,IACK,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -18,7 +18,6 @@ const useRefinancingCalculatorParams = (userInputParams, sourceBookDir, paramsVi
|
|
|
18
18
|
paramsViewSettings,
|
|
19
19
|
});
|
|
20
20
|
const { minSum, maxSum } = (0, rangeHelpers_1.getLimitRangeByKeys)(['minSum', 'maxSum'], sourceBookLimitParams, rateRows);
|
|
21
|
-
const { minSumOld, maxSumOld } = (0, rangeHelpers_1.getLimitRangeByKeys)(['minSumOld', 'maxSumOld'], sourceBookLimitParams, rateRows);
|
|
22
21
|
const { minMonths, maxMonths } = (0, rangeHelpers_1.getLimitRangeByKeys)(['minMonths', 'maxMonths'], sourceBookLimitParams, rateRows);
|
|
23
22
|
const refinancingCalculatorSourceBookRateParams = (0, getRefinancingCalculatorRateParams_1.getRefinancingCalculatorRateParams)({
|
|
24
23
|
rateRows,
|
|
@@ -37,8 +36,6 @@ const useRefinancingCalculatorParams = (userInputParams, sourceBookDir, paramsVi
|
|
|
37
36
|
...userInputParams,
|
|
38
37
|
minSum,
|
|
39
38
|
maxSum,
|
|
40
|
-
minSumOld,
|
|
41
|
-
maxSumOld,
|
|
42
39
|
minMonths,
|
|
43
40
|
maxMonths,
|
|
44
41
|
moneyValue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRefinancingCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useRefinancingCalculatorParams.ts"],"names":[],"mappings":";;AAAA,uDAAsD;AAEtD,2CAAkG;AAClG,2DAAwD;AACxD,+FAA4F;AAC5F,6FAA0F;AAC1F,iDAAqD;AACrD,+DAA4D;
|
|
1
|
+
{"version":3,"file":"useRefinancingCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useRefinancingCalculatorParams.ts"],"names":[],"mappings":";;AAAA,uDAAsD;AAEtD,2CAAkG;AAClG,2DAAwD;AACxD,+FAA4F;AAC5F,6FAA0F;AAC1F,iDAAqD;AACrD,+DAA4D;AAmDrD,MAAM,8BAA8B,GAAG,CAC5C,eAAqD,EACrD,aAAsB,EACtB,kBAA4D,EAC/B,EAAE;IAC/B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC;IACnF,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAC9B,aAAa,IAAI,wCAA4B,CAC9C,CAAC;IACF,MAAM,QAAQ,GAAG,IAAI,EAAE,QAAQ,IAAI,CAAC,iDAAqC,CAAC,CAAC;IAC3E,MAAM,SAAS,GAAG,IAAI,EAAE,SAAS,IAAI,EAAE,CAAC;IACxC,MAAM,qBAAqB,GAAG,IAAA,yEAAmC,EAAC;QAChE,SAAS;QACT,eAAe;QACf,kBAAkB;KACnB,CAAC,CAAC;IAEH,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kCAAmB,EAC5C,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACpB,qBAAqB,EACrB,QAAQ,CACT,CAAC;IAEF,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAA,kCAAmB,EAClD,CAAC,WAAW,EAAE,WAAW,CAAC,EAC1B,qBAAqB,EACrB,QAAQ,CACT,CAAC;IAEF,MAAM,yCAAyC,GAAG,IAAA,uEAAkC,EAAC;QACnF,QAAQ;QACR,eAAe;QACf,kBAAkB;QAClB,UAAU;QACV,WAAW;QACX,iBAAiB;QACjB,UAAU;KACX,CAAC,CAAC;IACH,MAAM,EAAE,IAAI,EAAE,GAAG,yCAAyC,CAAC;IAC3D,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,eAAe,CAAC,iBAAiB,GAAG,cAAc,CAAC;IAEnE,OAAO,IAAA,eAAO,EACZ,GAAG,EAAE,CAAC,CAAC;QACL,GAAG,yCAAyC;QAC5C,GAAG,eAAe;QAClB,MAAM;QACN,MAAM;QACN,SAAS;QACT,SAAS;QACT,UAAU;QACV,WAAW;QACX,iBAAiB;QACjB,UAAU;QACV,cAAc;QACd,OAAO;KACR,CAAC,EACF,CAAC,eAAe,EAAE,IAAI,CAAC,CACxB,CAAC;AACJ,CAAC,CAAC;AA5DW,QAAA,8BAA8B,kCA4DzC"}
|
|
@@ -11,7 +11,8 @@ const style_1 = require("../../utils/style");
|
|
|
11
11
|
const CarouselScrollButtons_1 = require("./CarouselScrollButtons");
|
|
12
12
|
const itemsGap_1 = require("./itemsGap");
|
|
13
13
|
const renderCarouselCards_1 = require("./renderCarouselCards");
|
|
14
|
-
|
|
14
|
+
const visibleItemCount_1 = require("./visibleItemCount");
|
|
15
|
+
exports.Carousel = (0, uni_jsx_1.JSX)(({ className, itemCount, visibleItemCount = visibleItemCount_1.VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
|
|
15
16
|
const { blocks: childBlocks = [] } = rest.block || {};
|
|
16
17
|
const count = itemCount || childBlocks?.length;
|
|
17
18
|
const [activeIndex, { inc: increaseActiveIndex, dec: decreaseActiveIndex }] = (0, useCarouselControls_1.useCarouselControls)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAsE;AAEtE,4DAAyD;AACzD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,6CAA0C;AAE1C,mEAAgE;AAChE,yCAAuC;AACvC,+DAA4D;
|
|
1
|
+
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yEAAsE;AAEtE,4DAAyD;AACzD,yFAAsF;AACtF,6FAA0F;AAC1F,yFAAsF;AACtF,6CAA0C;AAE1C,mEAAgE;AAChE,yCAAuC;AACvC,+DAA4D;AAC5D,yDAAwD;AAM3C,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EACC,SAAS,EACT,SAAS,EACT,gBAAgB,GAAG,qCAAkB,EACrC,YAAY,EACZ,aAAa,EACb,YAAY,GAAG,IAAI,EACnB,KAAK,GAAG,IAAI,EACZ,QAAQ,GAAG,QAAQ,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACtD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,CAAC;IAE/C,MAAM,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,mBAAmB,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC,GACzE,IAAA,yCAAmB,EACjB;QACE,SAAS,EAAE,KAAK;QAChB,gBAAgB;KACjB,EACD,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,CAAC,CAAC,CACjC,CAAC;IAEJ,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAA,uCAAkB,EAAiB,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ACtB,4BAA4B;IAC5B,qBAAqB;IACrB,sBAAsB;IACtB,wBAAwB;IACxB,mBAAmB;CACpB,CAAC;AAEF,gBAAQ,CAAC,WAAW,GAAG,GAAG,EAAE,CAAC,CAAC;IAC5B,cAAc,EAAE;QACd,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,SAAS;KAChB;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VISIBLE_ITEM_COUNT = 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visibleItemCount.js","sourceRoot":"","sources":["../../../src/components/Carousel/visibleItemCount.ts"],"names":[],"mappings":";;AAAa,QAAA,kBAAkB,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VISIBLE_ITEM_COUNT = 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visibleItemCount.mobile.js","sourceRoot":"","sources":["../../../src/components/Carousel/visibleItemCount.mobile.ts"],"names":[],"mappings":";;AAAa,QAAA,kBAAkB,GAAG,CAAC,CAAC"}
|
|
@@ -10,6 +10,7 @@ const List_1 = require("../../ui-kit/List/List");
|
|
|
10
10
|
const style_1 = require("../../utils/style");
|
|
11
11
|
const SocialMedia_1 = require("../Footer/SocialMedia");
|
|
12
12
|
const Headline_1 = require("../Headline/Headline");
|
|
13
|
+
//TODO: replace SocialMedia with renderButtonSection
|
|
13
14
|
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ className, padding, description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
|
|
14
15
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { href: href, target: target, className: "h-full", children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, buttons: socialMedia.length ? (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia }) : null, children: items.length ? (0, jsx_runtime_1.jsx)(List_1.List, { items: items, listItemSize: "S" }) : null }) }) }));
|
|
15
16
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAKhD,oDAAoD;AACvC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,EACT,OAAO,EACP,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,KAAK,GAAG,WAAW,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,sDAAsD,EAAE,SAAS,CAAC,EACnF,cAAc,EAAC,KAAK,KAChB,IAAI,YAER,uBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,QAAQ,YACzD,uBAAC,mBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,KAAK,EACpB,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,SAAS,EAAE,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EAChE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,YAEvE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GACrD,GACC,GACD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
2
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
3
3
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CarouselRecommendationCard: import("@redneckz/uni-jsx").UNIComponent<RecommendationCardProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.mobile.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.mobile.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAKnC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,KAAK,GAAG,WAAW,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,6CAA6C,EAAE,SAAS,CAAC,EAC1E,cAAc,EAAC,OAAO,KAClB,IAAI,YAER,wBAAC,yBAAW,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,aAC9D,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,IAAI,EACpB,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,KAAK,GACZ,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,WAAI,IAAC,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,IAAI,GAAG,CAC1E,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,CAAC,IAAI,CAAC,EAChB,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,KAAK,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,IACpD,GACD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CACpC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACxB,0CACE,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,GAChB,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -2,13 +2,12 @@ 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
|
-
|
|
6
|
+
import type { SocialMediaLink } from '../Footer/FooterContent';
|
|
8
7
|
/**
|
|
9
8
|
* @title Карточка рекомендаций
|
|
10
9
|
*/
|
|
11
10
|
export declare type CarouselRecommendationCardContent = UniBlockContent & HeadlineCommonProps & ListContent & IconProps & LinkCommonProps & AlignProps & {
|
|
12
11
|
/** @title Соц сети */
|
|
13
|
-
socialMedia?:
|
|
12
|
+
socialMedia?: SocialMediaLink[];
|
|
14
13
|
};
|
|
@@ -9,16 +9,17 @@ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
|
9
9
|
const Logo_1 = require("../../ui-kit/Logo/Logo");
|
|
10
10
|
const SearchBar_1 = require("../../ui-kit/SearchBar/SearchBar");
|
|
11
11
|
const Sitemap_1 = require("../../ui-kit/Sitemap/Sitemap");
|
|
12
|
+
const style_1 = require("../../utils/style");
|
|
12
13
|
const Contacts_1 = require("./Contacts");
|
|
13
14
|
const HorizontalNavigation_1 = require("./HorizontalNavigation");
|
|
14
15
|
const SocialMedia_1 = require("./SocialMedia");
|
|
15
16
|
const TextInformation_1 = require("./TextInformation");
|
|
16
17
|
const LEFT_COL_WIDTH = 'w-52';
|
|
17
18
|
exports.Footer = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
18
|
-
const { topItems } = (0, useSitemap_1.useSitemap)(rest.options?.page?.fallback);
|
|
19
|
-
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps
|
|
19
|
+
const { topItems, logo } = (0, useSitemap_1.useSitemap)(rest.options?.page?.fallback);
|
|
20
|
+
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer', {
|
|
20
21
|
fallback: rest.options?.page?.fallback,
|
|
21
22
|
});
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: LEFT_COL_WIDTH, logo: logo }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { className: "grow" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className:
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: LEFT_COL_WIDTH, logo: logo }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { className: "grow" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { items: contacts }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), (0, jsx_runtime_1.jsx)(Sitemap_1.Sitemap, { className: "flex-grow", topItems: topItems })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
|
|
23
24
|
});
|
|
24
25
|
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,+DAA4D;AAC5D,kEAA+D;AAC/D,4DAAyD;AACzD,iDAA8C;AAC9C,gEAA6D;AAC7D,0DAAuD;AACvD,yCAAsC;AAGtC,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAM,cAAc,GAAG,MAAM,CAAC;AAEjB,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAChE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,uBAAU,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,+DAA4D;AAC5D,kEAA+D;AAC/D,4DAAyD;AACzD,iDAA8C;AAC9C,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AC,OAAO,EAAC,KAAK,EAAE,kBAAkB,GAAI,EACrE,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,GAAI,IACxB,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
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
|
+
export interface SocialMediaLink extends LinkProps {
|
|
6
|
+
icon?: Picture;
|
|
7
|
+
}
|
|
5
8
|
/**
|
|
6
9
|
* @title Тип контакта
|
|
7
10
|
* @enumNames [
|
|
@@ -1,17 +1,11 @@
|
|
|
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
|
export interface FooterDataProps extends SitemapData {
|
|
6
5
|
documents?: LinkProps[];
|
|
7
6
|
relatedEnterprises?: LinkProps[];
|
|
8
7
|
contacts?: ContactGroup[];
|
|
9
|
-
socialMedia?:
|
|
10
|
-
mobileApps?:
|
|
8
|
+
socialMedia?: SocialMediaLink[];
|
|
9
|
+
mobileApps?: SocialMediaLink[];
|
|
11
10
|
horizontalNavigationTitle?: string;
|
|
12
|
-
subMenu?: SubMenuItem[];
|
|
13
|
-
logo?: {
|
|
14
|
-
image?: Picture;
|
|
15
|
-
title?: string;
|
|
16
|
-
};
|
|
17
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
1
|
+
import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
3
2
|
export declare type ButtonSize = 'default' | 'stretched';
|
|
4
|
-
interface MediaButtonProps extends
|
|
3
|
+
interface MediaButtonProps extends ButtonContent {
|
|
5
4
|
buttonSize?: ButtonSize;
|
|
6
5
|
}
|
|
7
6
|
export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
|
|
@@ -5,13 +5,14 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
7
|
const style_1 = require("../../utils/style");
|
|
8
|
-
const
|
|
8
|
+
const buttonSizeStyle_1 = require("./buttonSizeStyle");
|
|
9
9
|
const findIconByHref_1 = require("./findIconByHref");
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
//TODO: Refactor this.
|
|
11
|
+
exports.MediaButton = (0, uni_jsx_1.JSX)(({ buttonSize = 'default', icon, ...rest }) => {
|
|
12
|
+
const { href } = rest;
|
|
12
13
|
const { iconMapped, label } = (0, findIconByHref_1.findIconByHref)(href);
|
|
13
14
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: (0, style_1.style)(
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: (0, style_1.style)('border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', 'py-m group/media flex items-center justify-center box-border', buttonSizeStyle_1.buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
|
|
15
16
|
});
|
|
16
17
|
const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
|
|
17
18
|
//# sourceMappingURL=MediaButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAC1C,uDAAoD;AACpD,qDAAkD;AAQlD,sBAAsB;AACT,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,UAAU,GAAG,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7F,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAEtB,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC;IAEvD,OAAO,CACL,uBAAC,eAAM,IACL,SAAS,EAAE,IAAA,aAAK,EACd,8CAA8C,EAC9C,wCAAwC,EACxC,wCAAwC,EACxC,iGAAiG,EACjG,8BAA8B,EAC9B,8DAA8D,EAC9D,iCAAe,CAAC,UAAU,CAAC,CAC5B,gBACW,KAAK,EACjB,GAAG,EAAC,qBAAqB,EACzB,MAAM,EAAC,QAAQ,KACX,IAAI,YAER,uBAAC,SAAG,IACF,KAAK,EAAE,UAAU,EACjB,cAAc,EAAC,8BAA8B,EAC7C,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,GACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,IAAyB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ exports.SocialMedia = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
|
-
const MediaButton_1 = require("./MediaButton");
|
|
7
6
|
const style_1 = require("../../utils/style");
|
|
7
|
+
const MediaButton_1 = require("./MediaButton");
|
|
8
8
|
exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media, children, buttonSize }) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex gap-xs', className), children: media?.map((_, index) => ((0, jsx_runtime_1.jsx)(MediaButton_1.MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
|
|
9
9
|
//# sourceMappingURL=SocialMedia.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,+CAA4C;
|
|
1
|
+
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,6CAA0C;AAE1C,+CAA4C;AAQ/B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACnD,iCAAK,SAAS,EAAC,0CAA0C,aACtD,QAAQ,CAAC,CAAC,CAAC,CACV,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,QAAQ,GACJ,CACR,CAAC,CAAC,CAAC,IAAI,EACR,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,aAAa,EAAE,SAAS,CAAC,YAC5C,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,uBAAC,yBAAW,IAAqB,UAAU,EAAE,UAAU,KAAM,CAAC,IAA5C,MAAM,CAAC,KAAK,CAAC,CAAmC,CACnE,CAAC,GACE,IACF,CACP,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
3
|
-
exports.
|
|
2
|
+
exports.buttonSizeStyle = void 0;
|
|
3
|
+
exports.buttonSizeStyle = {
|
|
4
4
|
default: 'w-14 h-14',
|
|
5
5
|
stretched: 'flex-1 h-14',
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=buttonSizeStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonSizeStyle.js","sourceRoot":"","sources":["../../../src/components/Footer/buttonSizeStyle.ts"],"names":[],"mappings":";;AAEa,QAAA,eAAe,GAAoC;IAC9D,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,aAAa;CACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AACzD,6CAA0C;AAE1C,iEAA8D;AAC9D,uDAA0D;AAE1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C;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,kDAAkD,EAAE,SAAS,CAAC,EAC/E,cAAc,EAAC,OAAO,EACtB,OAAO,EAAE,OAAO,KACZ,IAAI,aAEP,cAAc;gBACb,CAAC,CAAC,IAAA,2CAAoB,EAClB,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACjE,WAAW,CACZ;gBACH,CAAC,CAAC,IAAI,EACR,uBAAC,iCAAe,IAAC,SAAS,EAAC,aAAa,KAAK,IAAI,GAAI,IACxC,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -4,6 +4,6 @@ import type { BaseProductTileContent } from '../../ui-kit/BaseProductTile/BasePr
|
|
|
4
4
|
* @title Продуктовый блок
|
|
5
5
|
*/
|
|
6
6
|
export declare type ProductBlockContent = UniBlockContent & BaseProductTileContent & {
|
|
7
|
-
/** @title Отображать кнопку возврата */
|
|
7
|
+
/** @title Отображать кнопку возврата (только для десктопной версии) */
|
|
8
8
|
backwardButton?: boolean;
|
|
9
9
|
};
|
|
@@ -8,7 +8,7 @@ function renderBackwardButton(version, handleClick) {
|
|
|
8
8
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
9
9
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
10
10
|
const text = 'Вернуться назад';
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-s", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, getRegularButtonClasses_1.getRegularButtonClasses)({ className, version, rounded: true }), onClick: handleClick, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "hidden sm:flex items-center gap-s", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, getRegularButtonClasses_1.getRegularButtonClasses)({ className, version, rounded: true }), onClick: handleClick, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: {
|
|
12
12
|
icon: 'ArrowLeftIcon',
|
|
13
13
|
iconVersion: iconVersion,
|
|
14
14
|
} }) }), (0, jsx_runtime_1.jsx)(Button_1.Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AACpD,8CAA2C;AAC3C,yFAAsF;AAEtF,SAAgB,oBAAoB,CAAC,OAAsB,EAAE,WAAuB;IAClF,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,SAAS,GAAG,8DAA8D,CAAC;IACjF,MAAM,IAAI,GAAG,iBAAiB,CAAC;IAE/B,OAAO,CACL,iCAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AACpD,8CAA2C;AAC3C,yFAAsF;AAEtF,SAAgB,oBAAoB,CAAC,OAAsB,EAAE,WAAuB;IAClF,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,SAAS,GAAG,8DAA8D,CAAC;IACjF,MAAM,IAAI,GAAG,iBAAiB,CAAC;IAE/B,OAAO,CACL,iCAAK,SAAS,EAAC,mCAAmC,aAChD,gCACE,SAAS,EAAE,IAAA,iDAAuB,EAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzE,OAAO,EAAE,WAAW,YAEpB,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;wBACL,IAAI,EAAE,eAAe;wBACrB,WAAW,EAAE,WAAW;qBACzB,GACD,GACE,EACN,uBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,GAAI,IACxE,CACP,CAAC;AACJ,CAAC;AAtBD,oDAsBC"}
|
|
@@ -10,8 +10,17 @@ const Img_1 = require("../../ui-kit/Img/Img");
|
|
|
10
10
|
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
11
11
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
12
|
const style_1 = require("../../utils/style");
|
|
13
|
-
exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border text-left space-y-s', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "
|
|
13
|
+
exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border text-left space-y-s', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h3", title: title }) : null] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
|
|
14
|
+
label: 'Адрес',
|
|
15
|
+
data: address,
|
|
16
|
+
iconName: 'GeolocationIcon',
|
|
17
|
+
}), renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' }), renderBlock({
|
|
18
|
+
label: 'E-mail',
|
|
19
|
+
data: email,
|
|
20
|
+
iconName: 'MailIcon',
|
|
21
|
+
dataColor: 'text-primary-main',
|
|
22
|
+
}), button?.text ? (0, renderButtonsSection_1.renderButtonsSection)([button]) : null] })] })));
|
|
14
23
|
const renderIconBlock = (icon) => ((0, jsx_runtime_1.jsx)("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: icon?.src || icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null }));
|
|
15
|
-
const renderDescriptionBlock = (__html) => ((0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
|
|
16
|
-
const renderBlock = (
|
|
24
|
+
const renderDescriptionBlock = (__html) => ((0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider pb-lg", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
|
|
25
|
+
const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2xs", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
|
|
17
26
|
//# sourceMappingURL=RepresentativeOfficeInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,6DAA0D;AAC1D,iDAA8C;AAC9C,6CAA0C;
|
|
1
|
+
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,6DAA0D;AAC1D,iDAA8C;AAC9C,6CAA0C;AAQ7B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EACC,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,gCAAgC,EAAE,SAAS,CAAC,EAC7D,OAAO,EAAE,OAAO,KACZ,IAAI,aAER,iCAAK,SAAS,EAAC,8CAA8C,aAC1D,eAAe,CAAC,IAAI,CAAC,EACrB,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC9D,EACN,iCAAK,SAAS,EAAC,kBAAkB,aAC9B,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAC9C,WAAW,CAAC;oBACX,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,iBAAiB;iBAC5B,CAAC,EACD,WAAW,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,IAA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C,IAAI,GACA,IACH,IACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -46,6 +46,6 @@ const renderIconArea = (size, version) => (step, i) => {
|
|
|
46
46
|
const isImg = Boolean(step?.icon?.src);
|
|
47
47
|
const iconAreaSize = STEPS_SIZE_MAP[size][isImg ? 'image' : 'icon'];
|
|
48
48
|
const containerStyle = isImg ? '' : `rounded-md ${styleMap.iconBackground}`;
|
|
49
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(iconAreaSize, containerStyle, 'z-10 mr-s flex justify-center content-center'), children: (0, jsx_runtime_1.jsx)("span", { className: "flex self-center text-h4 text-secondary-text group-data-secondary:text-white", children: (0, checkCanRenderIcon_1.checkCanRenderIcon)(step?.icon) ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }, width: iconSize, height: iconSize })) : ((0, jsx_runtime_1.jsx)("span", { children: i + 1 })) }) }));
|
|
49
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(iconAreaSize, containerStyle, 'z-10 mr-s flex justify-center content-center'), children: (0, jsx_runtime_1.jsx)("span", { className: "flex max-w-full max-h-full self-center text-h4 text-secondary-text group-data-secondary:text-white", children: (0, checkCanRenderIcon_1.checkCanRenderIcon)(step?.icon) ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }, imageClassName: "max-w-full max-h-full", width: iconSize, height: iconSize })) : ((0, jsx_runtime_1.jsx)("span", { children: i + 1 })) }) }));
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=StepsBlock.mobile.js.map
|