@redneckz/wildless-cms-uni-blocks 0.12.5 → 0.12.6
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +60 -98
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/bundle/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/bundle/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/bundle/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/bundle/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/cosmos-static/icons/BelarusianFlag.svg +1 -0
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +3 -17
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js +16 -16
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.js +7 -0
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +10 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.js +7 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.js +12 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/dist/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/dist/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/dist/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/dist/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +14 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.js +8 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/dist/ui-kit/CookiePopup/CookiePopup.js +13 -7
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/dist/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/dist/ui-kit/Dialog/useDialogProps.js +9 -7
- package/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.js +2 -1
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/dist/ui-kit/Text/Text.js +2 -1
- package/dist/ui-kit/Text/Text.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -18
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/lib/{ui-kit/Heading/Heading.fixture.mobile.d.ts → components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts} +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js +16 -16
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.js +4 -0
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +3 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +7 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.js +4 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +2 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.js +9 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/lib/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/lib/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/lib/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/lib/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +12 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.js +6 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/lib/ui-kit/CookiePopup/CookiePopup.js +12 -6
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/lib/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/lib/ui-kit/Dialog/useDialogProps.js +9 -7
- package/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.js +2 -1
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/lib/ui-kit/Text/Text.js +2 -1
- package/lib/ui-kit/Text/Text.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +68 -54
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/bundle/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +3 -17
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js +16 -16
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.js +7 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +10 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.js +7 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js +12 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +14 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.js +8 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +13 -7
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js +9 -7
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +2 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/dist/ui-kit/Text/Text.js +2 -1
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -18
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js +16 -16
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.js +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +7 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.js +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js +9 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +12 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.js +6 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +12 -6
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js +9 -7
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +2 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/lib/ui-kit/Text/Text.js +2 -1
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.example.json +7 -2
- package/mobile/src/components/PictureText/PictureText.tsx +14 -3
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +4 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +20 -16
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +19 -17
- package/mobile/src/components/ProductTile/ProductTile.example.json +4 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +23 -58
- package/mobile/src/components/ProductTile/ProductTileContent.ts +4 -35
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +3 -3
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +50 -49
- package/mobile/src/components/Tile/Tile.example.json +6 -2
- package/mobile/src/components/Tile/Tile.tsx +4 -3
- package/mobile/src/icons/BelarusianFlag.svg +4 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +19 -6
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -1
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -49
- package/mobile/src/ui-kit/BenefitItem/renderBenefitDescription.tsx +13 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +24 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitLabel.tsx +12 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitText.tsx +14 -0
- package/mobile/src/ui-kit/BenefitsList/BenefitsList.tsx +5 -32
- package/mobile/src/ui-kit/BenefitsList/BenefitsListContent.ts +3 -1
- package/mobile/src/ui-kit/BenefitsList/BenefitsListProps.ts +5 -0
- package/mobile/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +33 -0
- package/mobile/src/ui-kit/BenefitsList/TabularBenefitsList.tsx +17 -0
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +17 -9
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/mobile/src/ui-kit/Dialog/useDialogProps.ts +11 -9
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +3 -2
- package/mobile/src/ui-kit/Text/Text.tsx +3 -2
- package/mobile/src/ui-kit/Text/TextProps.ts +0 -2
- package/package.json +1 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/PictureText/PictureText.example.json +7 -2
- package/src/components/PictureText/PictureText.tsx +14 -3
- package/src/components/ProductBlock/ProductBlock.example.json +4 -2
- package/src/components/ProductBlock/ProductBlock.tsx +20 -16
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +19 -17
- package/src/components/ProductGallery/ProductGallery.tsx +2 -1
- package/src/components/ProductTile/ProductTile.example.json +4 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +13 -14
- package/src/components/ProductTile/ProductTile.tsx +23 -58
- package/src/components/ProductTile/ProductTileContent.ts +4 -35
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +47 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +18 -9
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +16 -8
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +50 -49
- package/src/components/Tile/Tile.example.json +6 -2
- package/src/components/Tile/Tile.fixture.tsx +1 -1
- package/src/components/Tile/Tile.tsx +4 -3
- package/src/icons/BelarusianFlag.svg +4 -0
- package/src/icons/IconName.ts +5 -5
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +19 -6
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -1
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -49
- package/src/ui-kit/BenefitItem/renderBenefitDescription.tsx +13 -0
- package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +24 -0
- package/src/ui-kit/BenefitItem/renderBenefitLabel.tsx +12 -0
- package/src/ui-kit/BenefitItem/renderBenefitText.tsx +14 -0
- package/src/ui-kit/BenefitsList/BenefitsList.tsx +5 -32
- package/src/ui-kit/BenefitsList/BenefitsListContent.ts +3 -1
- package/src/ui-kit/BenefitsList/BenefitsListProps.ts +5 -0
- package/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +33 -0
- package/src/ui-kit/BenefitsList/TabularBenefitsList.tsx +17 -0
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +17 -9
- package/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/src/ui-kit/Dialog/useDialogProps.ts +11 -9
- package/src/ui-kit/Paragraph/Paragraph.tsx +3 -2
- package/src/ui-kit/Text/Text.tsx +3 -2
- package/src/ui-kit/Text/TextProps.ts +0 -2
- package/tailwind.config.cjs +0 -3
- package/bundle/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/bundle/components/ProductTile/renderBenefit.d.ts +0 -3
- package/bundle/components/ProductTile/renderImage.d.ts +0 -3
- package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/bundle/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/dist/components/MobileAppTile/renderButtonSection.js +0 -1
- package/dist/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/dist/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/dist/components/ProductTile/renderAdditionalDescription.js +0 -14
- package/dist/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/dist/components/ProductTile/renderBenefit.d.ts +0 -3
- package/dist/components/ProductTile/renderBenefit.js +0 -29
- package/dist/components/ProductTile/renderBenefit.js.map +0 -1
- package/dist/components/ProductTile/renderImage.d.ts +0 -3
- package/dist/components/ProductTile/renderImage.js +0 -13
- package/dist/components/ProductTile/renderImage.js.map +0 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +0 -4
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.js +0 -4
- package/dist/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js +0 -4
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +0 -1
- package/dist/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/dist/ui-kit/BenefitsList/renderBenefit.js +0 -13
- package/dist/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/lib/components/MobileAppTile/renderButtonSection.js +0 -1
- package/lib/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/lib/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/lib/components/ProductTile/renderAdditionalDescription.js +0 -11
- package/lib/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/lib/components/ProductTile/renderBenefit.d.ts +0 -2
- package/lib/components/ProductTile/renderBenefit.js +0 -26
- package/lib/components/ProductTile/renderBenefit.js.map +0 -1
- package/lib/components/ProductTile/renderImage.d.ts +0 -3
- package/lib/components/ProductTile/renderImage.js +0 -10
- package/lib/components/ProductTile/renderImage.js.map +0 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +0 -2
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.js +0 -2
- package/lib/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js +0 -2
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +0 -1
- package/lib/ui-kit/BenefitsList/renderBenefit.d.ts +0 -3
- package/lib/ui-kit/BenefitsList/renderBenefit.js +0 -10
- package/lib/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/bundle/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/bundle/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/bundle/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js +0 -1
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js +0 -14
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderBenefit.js +0 -29
- package/mobile/dist/components/ProductTile/renderBenefit.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderImage.js +0 -13
- package/mobile/dist/components/ProductTile/renderImage.js.map +0 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js +0 -4
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js +0 -13
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js +0 -1
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js +0 -11
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderBenefit.js +0 -26
- package/mobile/lib/components/ProductTile/renderBenefit.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderImage.js +0 -10
- package/mobile/lib/components/ProductTile/renderImage.js.map +0 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js +0 -2
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js +0 -10
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/mobile/src/components/ProductTile/renderAdditionalDescription.tsx +0 -19
- package/mobile/src/components/ProductTile/renderBenefit.tsx +0 -41
- package/mobile/src/components/ProductTile/renderImage.tsx +0 -16
- package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +0 -1
- package/mobile/src/ui-kit/BenefitsList/renderBenefit.tsx +0 -14
- package/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/src/components/ProductTile/renderAdditionalDescription.tsx +0 -19
- package/src/components/ProductTile/renderBenefit.tsx +0 -41
- package/src/components/ProductTile/renderImage.tsx +0 -16
- package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +0 -1
- package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +0 -1
- package/src/ui-kit/BenefitItem/labelSize.tsx +0 -1
- package/src/ui-kit/BenefitsList/renderBenefit.tsx +0 -14
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +0 -30
|
@@ -39,13 +39,13 @@ export const CarouselInvestmentCard = JSX<CarouselInvestmentCardProps>(
|
|
|
39
39
|
'border border-solid border-gray group-data-secondary:border-white/50',
|
|
40
40
|
className,
|
|
41
41
|
)}
|
|
42
|
-
|
|
42
|
+
padding="p-0"
|
|
43
43
|
{...rest}
|
|
44
44
|
>
|
|
45
45
|
<BaseTile
|
|
46
46
|
className="h-full"
|
|
47
|
-
padding={padding}
|
|
48
47
|
defaultPadding="p-m"
|
|
48
|
+
padding={padding}
|
|
49
49
|
title={
|
|
50
50
|
title ? <Heading headingType="h4" as="h3" className="mb-3.5 z-10" title={title} /> : null
|
|
51
51
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"content": {
|
|
3
3
|
"title": "Блок с картинкой",
|
|
4
4
|
"description": "Описание",
|
|
5
|
+
"headlineVersion": "M",
|
|
6
|
+
"align": "text-center",
|
|
5
7
|
"image": {
|
|
6
8
|
"format": "webp",
|
|
7
9
|
"size": {
|
|
@@ -10,7 +12,6 @@
|
|
|
10
12
|
}
|
|
11
13
|
},
|
|
12
14
|
"version": "primary",
|
|
13
|
-
"directionRight": false,
|
|
14
15
|
"benefits": [
|
|
15
16
|
{
|
|
16
17
|
"type": "default",
|
|
@@ -30,6 +31,10 @@
|
|
|
30
31
|
}
|
|
31
32
|
],
|
|
32
33
|
"sum": 500000,
|
|
33
|
-
"monthLimit": 25000
|
|
34
|
+
"monthLimit": 25000,
|
|
35
|
+
"imageOptions": {
|
|
36
|
+
"directionRight": false,
|
|
37
|
+
"imageAlign": "center"
|
|
38
|
+
}
|
|
34
39
|
}
|
|
35
40
|
}
|
|
@@ -8,15 +8,26 @@ import { renderInsuranceSumMonth } from './renderInsuranceSumMonth';
|
|
|
8
8
|
export interface PictureTextProps extends PictureTextContent, UniBlockProps {}
|
|
9
9
|
|
|
10
10
|
export const PictureText = JSX<PictureTextProps>(
|
|
11
|
-
({
|
|
12
|
-
|
|
11
|
+
({
|
|
12
|
+
className,
|
|
13
|
+
padding,
|
|
14
|
+
headlineVersion = 'M',
|
|
15
|
+
align = 'text-center',
|
|
16
|
+
sum,
|
|
17
|
+
monthLimit,
|
|
18
|
+
imageOptions,
|
|
19
|
+
...rest
|
|
20
|
+
}) => (
|
|
21
|
+
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
13
22
|
<BaseProductTile
|
|
14
23
|
className="h-full"
|
|
24
|
+
defaultPadding="p-default"
|
|
25
|
+
padding={padding}
|
|
15
26
|
headlineVersion={headlineVersion}
|
|
16
27
|
align={align}
|
|
17
28
|
isInsetTitle={false}
|
|
29
|
+
imageOptions={{ directionRight: false, imageAlign: 'center', ...imageOptions }}
|
|
18
30
|
{...rest}
|
|
19
|
-
imageOptions={{ directionRight: false, imageAlign: 'center', ...rest.imageOptions }}
|
|
20
31
|
>
|
|
21
32
|
{renderInsuranceSumMonth(Number(sum), Number(monthLimit))}
|
|
22
33
|
</BaseProductTile>
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
],
|
|
25
25
|
"version": "primary",
|
|
26
26
|
"benefitsVersion": "normal",
|
|
27
|
-
"benefitsCountOfRow": 3,
|
|
28
27
|
"benefits": [
|
|
29
28
|
{
|
|
30
29
|
"label": "Преимущество №1",
|
|
@@ -39,6 +38,9 @@
|
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
],
|
|
42
|
-
"
|
|
41
|
+
"imageOptions": {
|
|
42
|
+
"directionRight": true,
|
|
43
|
+
"imageAlign": "end"
|
|
44
|
+
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -6,20 +6,24 @@ import { style } from '../../utils/style';
|
|
|
6
6
|
import type { ProductBlockContent } from './ProductBlockContent';
|
|
7
7
|
import { renderBackwardButton } from './renderBackwardButton';
|
|
8
8
|
|
|
9
|
-
export interface ProductBlockProps extends
|
|
9
|
+
export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
|
|
10
10
|
|
|
11
|
-
export const ProductBlock = JSX<ProductBlockProps>(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
export const ProductBlock = JSX<ProductBlockProps>(
|
|
12
|
+
({ className, padding, backwardButton, ...rest }) => (
|
|
13
|
+
<BlockWrapper
|
|
14
|
+
className={style('overflow-hidden flex flex-col gap-lg box-border', className)}
|
|
15
|
+
defaultPadding="p-default"
|
|
16
|
+
padding={padding}
|
|
17
|
+
{...rest}
|
|
18
|
+
>
|
|
19
|
+
{backwardButton?.text
|
|
20
|
+
? renderBackwardButton(
|
|
21
|
+
backwardButton,
|
|
22
|
+
!rest.version || rest.version === 'primary' ? 'primary' : 'white',
|
|
23
|
+
)
|
|
24
|
+
: null}
|
|
25
|
+
|
|
26
|
+
<BaseProductTile className="grow h-full" {...rest} />
|
|
27
|
+
</BlockWrapper>
|
|
28
|
+
),
|
|
29
|
+
);
|
|
@@ -8,20 +8,22 @@ import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
|
8
8
|
|
|
9
9
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
|
|
10
10
|
|
|
11
|
-
export const ProductGallery = JSX<ProductGalleryProps>(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
export const ProductGallery = JSX<ProductGalleryProps>(
|
|
12
|
+
({ className, padding, slides = [], ...rest }) => (
|
|
13
|
+
<BlockWrapper
|
|
14
|
+
className={style('overflow-hidden relative', className)}
|
|
15
|
+
padding={padding}
|
|
16
|
+
{...rest}
|
|
17
|
+
>
|
|
18
|
+
<SwipeListControl gap={0} padding={0}>
|
|
19
|
+
{slides
|
|
20
|
+
.map((s) => s.productBlock)
|
|
21
|
+
.map((_, i) => (
|
|
22
|
+
<div key={String(i)} className="box-border h-full" role="listitem">
|
|
23
|
+
<BaseProductTile className="px-5 h-full" headlineVersion="L" {..._} {...rest} />
|
|
24
|
+
</div>
|
|
25
|
+
))}
|
|
26
|
+
</SwipeListControl>
|
|
27
|
+
</BlockWrapper>
|
|
28
|
+
),
|
|
29
|
+
);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"version": "primary",
|
|
13
|
+
"isTabularBenefits": true,
|
|
13
14
|
"benefits": [
|
|
14
15
|
{
|
|
15
16
|
"type": "default",
|
|
@@ -34,7 +35,9 @@
|
|
|
34
35
|
}
|
|
35
36
|
],
|
|
36
37
|
"imageOptions": {
|
|
37
|
-
"directionRight": true
|
|
38
|
+
"directionRight": true,
|
|
39
|
+
"imageAlign": "end",
|
|
40
|
+
"isBackground": true
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
}
|
|
@@ -1,73 +1,38 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import
|
|
3
|
+
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Headline } from '../Headline/Headline';
|
|
8
|
-
import type { Benefit, ProductTileContent } from './ProductTileContent';
|
|
9
|
-
import { renderAdditionalDescription } from './renderAdditionalDescription';
|
|
10
|
-
import { renderBenefit } from './renderBenefit';
|
|
11
|
-
import { renderImage } from './renderImage';
|
|
5
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
6
|
+
import type { ProductTileContent } from './ProductTileContent';
|
|
12
7
|
|
|
13
8
|
export interface ProductTileProps extends ProductTileContent, UniBlockProps {}
|
|
14
9
|
|
|
15
10
|
export const ProductTile = JSX<ProductTileProps>(
|
|
16
11
|
({
|
|
17
|
-
className
|
|
18
|
-
|
|
12
|
+
className,
|
|
13
|
+
padding,
|
|
19
14
|
headlineVersion = 'S',
|
|
20
|
-
|
|
15
|
+
isTabularBenefits = true,
|
|
21
16
|
additionalDescription,
|
|
22
|
-
|
|
23
|
-
buttons,
|
|
24
|
-
image,
|
|
25
|
-
directionRight = true,
|
|
17
|
+
imageOptions,
|
|
26
18
|
...rest
|
|
27
19
|
}) => (
|
|
28
|
-
<BlockWrapper
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{renderBenefits(benefits, image)}
|
|
45
|
-
{renderAdditionalDescription(additionalDescription, image)}
|
|
46
|
-
</div>
|
|
47
|
-
{renderButtonsSection(buttons, {
|
|
48
|
-
className: style('mt-5 text-l', directionRight ? '' : 'justify-end'),
|
|
49
|
-
})}
|
|
50
|
-
{renderImage(image, directionRight)}
|
|
20
|
+
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
21
|
+
<BaseProductTile
|
|
22
|
+
className="h-full"
|
|
23
|
+
defaultPadding="p-m"
|
|
24
|
+
padding={padding}
|
|
25
|
+
headlineVersion={headlineVersion}
|
|
26
|
+
isTabularBenefits={isTabularBenefits}
|
|
27
|
+
imageOptions={{ isBackground: true, ...imageOptions }}
|
|
28
|
+
{...rest}
|
|
29
|
+
>
|
|
30
|
+
{additionalDescription ? (
|
|
31
|
+
<Paragraph size="text-m" font="font-light" color="group-data-primary:text-secondary-text">
|
|
32
|
+
{additionalDescription}
|
|
33
|
+
</Paragraph>
|
|
34
|
+
) : null}
|
|
35
|
+
</BaseProductTile>
|
|
51
36
|
</BlockWrapper>
|
|
52
37
|
),
|
|
53
38
|
);
|
|
54
|
-
|
|
55
|
-
function renderBenefits(benefits: Benefit[], image?: Picture) {
|
|
56
|
-
if (!benefits.length) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
61
|
-
const benefitsWidth = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<div
|
|
65
|
-
className={style(
|
|
66
|
-
'z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline',
|
|
67
|
-
benefitsWidth,
|
|
68
|
-
)}
|
|
69
|
-
>
|
|
70
|
-
{benefits.length ? benefits.map(renderBenefit) : null}
|
|
71
|
-
</div>
|
|
72
|
-
);
|
|
73
|
-
}
|
|
@@ -1,41 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
AdditionalDescriptionProps,
|
|
4
|
-
DescriptionProps,
|
|
5
|
-
HeadlineProps,
|
|
6
|
-
LabelProps,
|
|
7
|
-
} from '../../model/HeadlineType';
|
|
1
|
+
import type { AdditionalDescriptionProps } from '../../model/HeadlineType';
|
|
8
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
9
|
-
import
|
|
10
|
-
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
11
|
-
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @title Стандартный
|
|
15
|
-
*/
|
|
16
|
-
type TextBenefit = DescriptionProps & LabelProps & DefaultListItemType;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @title Преимущество
|
|
20
|
-
* @default{
|
|
21
|
-
* "type": "default"
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
|
-
export type Benefit = TextBenefit | RichTextItem;
|
|
3
|
+
import { BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
25
4
|
|
|
26
5
|
/**
|
|
27
6
|
* @title Продуктовая плитка
|
|
28
7
|
*/
|
|
29
8
|
export type ProductTileContent = UniBlockContent &
|
|
30
|
-
|
|
31
|
-
AdditionalDescriptionProps
|
|
32
|
-
ButtonContent &
|
|
33
|
-
ImageContent & {
|
|
34
|
-
/**
|
|
35
|
-
* @title Преимущества
|
|
36
|
-
* @maxItems 7
|
|
37
|
-
*/
|
|
38
|
-
benefits?: Benefit[];
|
|
39
|
-
/** @title Картинка справа/текст слева */
|
|
40
|
-
directionRight?: boolean;
|
|
41
|
-
};
|
|
9
|
+
BaseProductTileContent &
|
|
10
|
+
AdditionalDescriptionProps;
|
|
@@ -30,9 +30,9 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
30
30
|
...rest
|
|
31
31
|
}) => (
|
|
32
32
|
<BlockWrapper className={style('box-border text-left', className)} version={version} {...rest}>
|
|
33
|
-
<div className="w-full flex justify-between">
|
|
34
|
-
{title ? <Heading headingType="h4" as="h3" className="mb-6" title={title} /> : null}
|
|
33
|
+
<div className="w-full sm:flex sm:justify-between sm:flex-row-reverse">
|
|
35
34
|
{renderIconBlock(icon)}
|
|
35
|
+
{title ? <Heading headingType="h4" as="h3" className="mb-3 sm:mb-6" title={title} /> : null}
|
|
36
36
|
</div>
|
|
37
37
|
<div className="w-full">
|
|
38
38
|
{__html ? renderDescriptionBlock(__html) : null}
|
|
@@ -50,7 +50,7 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
|
|
|
50
50
|
);
|
|
51
51
|
|
|
52
52
|
const renderIconBlock = (icon?: Picture) => (
|
|
53
|
-
<div className=
|
|
53
|
+
<div className={'w-10 h-7 sm:w-24 sm:h-16 mb-3 sm:mb-0 sm:mt-3'}>
|
|
54
54
|
{icon?.src ? <Img image={icon} /> : null}
|
|
55
55
|
{icon?.icon ? <Img image={icon} /> : null}
|
|
56
56
|
</div>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import type { SizeVersion } from '../../model/SizeVersion';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -8,63 +7,71 @@ import { Img } from '../../ui-kit/Img/Img';
|
|
|
8
7
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
9
8
|
import { assertUnreachable } from '../../utils/assertUnreachable';
|
|
10
9
|
import { checkCanRenderIcon } from './checkCanRenderIcon';
|
|
11
|
-
import type { DefaultStep, Step
|
|
10
|
+
import type { DefaultStep, Step } from './StepsBlockContent';
|
|
12
11
|
import { STEPS_BLOCK_STYLE } from './StepsBlockStyleMaps';
|
|
12
|
+
import { style } from '../../utils/style';
|
|
13
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
14
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
15
|
+
import { StepsBlockContent } from './StepsBlockContent';
|
|
16
|
+
import { UniBlockProps } from '../../model/JSXBlock';
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
type StepIconVersion = Record<'icon' | 'image', string>;
|
|
15
19
|
|
|
16
|
-
const STEPS_SIZE_MAP: Record<SizeVersion,
|
|
17
|
-
normal: 'h-
|
|
18
|
-
small: 'h-12 w-12
|
|
20
|
+
const STEPS_SIZE_MAP: Record<SizeVersion, StepIconVersion> = {
|
|
21
|
+
normal: { icon: 'h-11 w-11', image: 'h-14 w-14' },
|
|
22
|
+
small: { icon: 'h-12 w-12', image: 'h-14 w-14' },
|
|
19
23
|
};
|
|
20
24
|
|
|
21
25
|
const STEPS_TILE_DESCRIPTION_HEIGHT_MAP: Record<SizeVersion, string> = {
|
|
22
|
-
normal: '
|
|
26
|
+
normal: '',
|
|
23
27
|
small: 'min-h-12',
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
const styleMap = STEPS_BLOCK_STYLE;
|
|
27
31
|
|
|
32
|
+
export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {}
|
|
33
|
+
|
|
28
34
|
export const StepsBlock = JSX<StepsBlockProps>(
|
|
29
35
|
({
|
|
30
36
|
className = '',
|
|
31
37
|
title,
|
|
32
38
|
description,
|
|
33
|
-
showLines = true,
|
|
34
39
|
steps,
|
|
40
|
+
buttons,
|
|
35
41
|
size = 'normal',
|
|
36
42
|
version = 'primary',
|
|
37
43
|
...rest
|
|
38
44
|
}) => (
|
|
39
45
|
<BlockWrapper
|
|
40
|
-
className={
|
|
41
|
-
defaultPadding="
|
|
46
|
+
className={style('box-border flex flex-col gap-2', className)}
|
|
47
|
+
defaultPadding="p-default"
|
|
42
48
|
version={version}
|
|
43
49
|
{...rest}
|
|
44
50
|
>
|
|
45
|
-
{title ? <Heading headingType="h3" className="text-
|
|
51
|
+
{title ? <Heading headingType="h3" className="text-left" title={title} /> : null}
|
|
46
52
|
{description ? (
|
|
47
|
-
<
|
|
48
|
-
{description}
|
|
49
|
-
</
|
|
53
|
+
<Paragraph size="text-xl" font="font-light">
|
|
54
|
+
<span className={styleMap.description}>{description}</span>
|
|
55
|
+
</Paragraph>
|
|
50
56
|
) : null}
|
|
51
57
|
{steps?.length ? (
|
|
52
|
-
<div className=
|
|
53
|
-
<div className="flex flex-col justify-between
|
|
54
|
-
{steps.map(renderStep(size, version
|
|
58
|
+
<div className="box-border">
|
|
59
|
+
<div className="flex flex-col justify-between">
|
|
60
|
+
{steps.map(renderStep(size, version))}
|
|
55
61
|
</div>
|
|
56
62
|
</div>
|
|
57
63
|
) : null}
|
|
64
|
+
{renderButtonsSection(buttons, { className: 'mt-3', isVertical: true })}
|
|
58
65
|
</BlockWrapper>
|
|
59
66
|
),
|
|
60
67
|
);
|
|
61
68
|
|
|
62
69
|
// TODO: Create universal function for this case
|
|
63
70
|
const renderStep =
|
|
64
|
-
(size: SizeVersion, version: BlockVersion
|
|
71
|
+
(size: SizeVersion, version: BlockVersion) =>
|
|
65
72
|
// Linter doesn't understand that switch processes all cases
|
|
66
73
|
// eslint-disable-next-line consistent-return
|
|
67
|
-
(step: Step, i: number
|
|
74
|
+
(step: Step, i: number) => {
|
|
68
75
|
const { type } = step;
|
|
69
76
|
|
|
70
77
|
if (!(type === 'default' || type === 'rte')) {
|
|
@@ -73,7 +80,7 @@ const renderStep =
|
|
|
73
80
|
|
|
74
81
|
switch (type) {
|
|
75
82
|
case 'default':
|
|
76
|
-
return renderDefaultStep(size, version
|
|
83
|
+
return renderDefaultStep(size, version)(step, i);
|
|
77
84
|
case 'rte':
|
|
78
85
|
return <RichText __html={step.__html} />;
|
|
79
86
|
default:
|
|
@@ -82,52 +89,46 @@ const renderStep =
|
|
|
82
89
|
};
|
|
83
90
|
|
|
84
91
|
const renderDefaultStep =
|
|
85
|
-
(size: SizeVersion, version: BlockVersion,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return (
|
|
91
|
-
<div key={String(i)}>
|
|
92
|
-
<div className="flex flex-row text-center relative">
|
|
93
|
-
<div className="overflow-hidden flex-shrink-0">
|
|
92
|
+
(size: SizeVersion, version: BlockVersion) => (step: DefaultStep, i: number) =>
|
|
93
|
+
(
|
|
94
|
+
<div key={String(i)} className="contents">
|
|
95
|
+
<div className="flex flex-row text-center relative py-3">
|
|
96
|
+
<div className="overflow-hidden flex flex-shrink-0 items-center">
|
|
94
97
|
{renderIconArea(size, version)(step, i)}
|
|
95
|
-
{isLastStep ? null : (
|
|
96
|
-
<div
|
|
97
|
-
className={`min-h-8 h-full w-0.5 ${
|
|
98
|
-
showLines ? styleMap.iconConnector : ''
|
|
99
|
-
} ${margin}`}
|
|
100
|
-
/>
|
|
101
|
-
)}
|
|
102
98
|
</div>
|
|
103
99
|
<div
|
|
104
|
-
className={
|
|
100
|
+
className={style(
|
|
101
|
+
'flex flex-col justify-center h-fit',
|
|
102
|
+
STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size],
|
|
103
|
+
)}
|
|
105
104
|
>
|
|
106
|
-
{step.label ?
|
|
107
|
-
<div className="text-m-title-xs font-medium m-0 text-left mb-1">{step.label}</div>
|
|
108
|
-
) : null}
|
|
105
|
+
{step.label ? <div className="text-l m-0 text-left">{step.label}</div> : null}
|
|
109
106
|
{step.description ? (
|
|
110
|
-
<div className={
|
|
107
|
+
<div className={style('text-s font-light text-left', styleMap.description)}>
|
|
108
|
+
{step.description}
|
|
109
|
+
</div>
|
|
111
110
|
) : null}
|
|
112
111
|
</div>
|
|
113
112
|
</div>
|
|
114
113
|
</div>
|
|
115
114
|
);
|
|
116
|
-
};
|
|
117
115
|
|
|
118
116
|
const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step, i: number) => {
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
const iconSize = size === 'normal' ? '38' : '27';
|
|
122
|
-
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
123
|
-
|
|
117
|
+
const iconSize = size === 'normal' ? '38' : '24';
|
|
124
118
|
const iconVersion = version === 'secondary' ? 'white' : 'color';
|
|
119
|
+
const isImg = Boolean(step?.icon?.src);
|
|
120
|
+
const iconAreaSize = STEPS_SIZE_MAP[size][isImg ? 'image' : 'icon'];
|
|
121
|
+
const containerStyle = isImg ? '' : `rounded-md ${styleMap.iconBackground}`;
|
|
125
122
|
|
|
126
123
|
return (
|
|
127
124
|
<div
|
|
128
|
-
className={
|
|
125
|
+
className={style(
|
|
126
|
+
iconAreaSize,
|
|
127
|
+
containerStyle,
|
|
128
|
+
'z-10 mr-3 flex justify-center content-center',
|
|
129
|
+
)}
|
|
129
130
|
>
|
|
130
|
-
<span className=
|
|
131
|
+
<span className="flex self-center text-h4 text-secondary-text group-data-secondary:text-white">
|
|
131
132
|
{checkCanRenderIcon(step?.icon) ? (
|
|
132
133
|
<Img
|
|
133
134
|
image={{ ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"content": {
|
|
3
3
|
"title": "Плитка",
|
|
4
|
-
"
|
|
4
|
+
"headlineVersion": "S",
|
|
5
5
|
"__html": "<p>Описание</p>",
|
|
6
6
|
"image": {
|
|
7
7
|
"format": "webp",
|
|
8
8
|
"size": {
|
|
9
|
+
"format": "webp",
|
|
9
10
|
"width": 445
|
|
10
11
|
}
|
|
11
12
|
},
|
|
@@ -19,6 +20,9 @@
|
|
|
19
20
|
}
|
|
20
21
|
],
|
|
21
22
|
"version": "primary",
|
|
22
|
-
"
|
|
23
|
+
"imageOptions": {
|
|
24
|
+
"directionRight": true,
|
|
25
|
+
"imageAlign": "end"
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
}
|
|
@@ -7,14 +7,15 @@ import type { TileContent } from './TileContent';
|
|
|
7
7
|
export interface TileProps extends TileContent, UniBlockProps {}
|
|
8
8
|
|
|
9
9
|
export const Tile = JSX<TileProps>(
|
|
10
|
-
({ className, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (
|
|
11
|
-
<BlockWrapper className={className} {...rest}>
|
|
10
|
+
({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (
|
|
11
|
+
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
12
12
|
<BaseProductTile
|
|
13
13
|
className="h-full"
|
|
14
|
+
defaultPadding="p-m"
|
|
15
|
+
padding={padding}
|
|
14
16
|
headlineVersion={headlineVersion}
|
|
15
17
|
listItemSize={listItemSize}
|
|
16
18
|
{...rest}
|
|
17
|
-
imageOptions={{ imageAlign: 'end', ...rest.imageOptions }}
|
|
18
19
|
/>
|
|
19
20
|
</BlockWrapper>
|
|
20
21
|
),
|