@redneckz/wildless-cms-uni-blocks 0.8.21 → 0.8.23
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.8.23.js +31 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +38 -73
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/bundle/components/Bonus/BonusContent.d.ts +4 -4
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -1
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/bundle/components/CardTransfer/CardTransferContent.d.ts +2 -1
- package/bundle/components/Carousel/CarouselContent.d.ts +3 -2
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +3 -6
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +4 -3
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -3
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +3 -4
- package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -7
- package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +4 -5
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -6
- package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +3 -5
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -7
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +3 -3
- package/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +3 -2
- package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +3 -9
- package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +5 -6
- package/bundle/components/ComparisonTable/TableRow.d.ts +3 -2
- package/bundle/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +6 -9
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +3 -2
- package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -2
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +2 -1
- package/bundle/components/Header/HeaderContent.d.ts +3 -4
- package/bundle/components/Headline/HeadlineContent.d.ts +3 -4
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -2
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +3 -2
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -2
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +4 -4
- package/bundle/components/LikeControl/LikeControl.d.ts +2 -1
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -1
- package/bundle/components/LinkList/LinkListContent.d.ts +3 -2
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/bundle/components/OfficeMap/OfficeMapContent.d.ts +11 -10
- package/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +3 -2
- package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -2
- package/bundle/components/PictureText/PictureTextContent.d.ts +3 -4
- package/bundle/components/PictureText/renderBenefit.d.ts +1 -1
- package/bundle/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -4
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +3 -4
- package/bundle/components/ProductTile/ProductTileContent.d.ts +3 -6
- package/bundle/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/bundle/components/Recommendation/RecommendationContent.d.ts +3 -4
- package/bundle/components/RollupItem/RollupItem.d.ts +4 -2
- package/bundle/components/RollupItem/RollupItemContent.d.ts +2 -3
- package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +2 -1
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
- package/bundle/components/Tabs/TabsContent.d.ts +3 -2
- package/bundle/components/TextBlock/TextBlockContent.d.ts +4 -4
- package/bundle/components/Tile/TileContent.d.ts +2 -3
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -4
- package/bundle/components/Video/VideoContent.d.ts +3 -2
- package/bundle/model/HeadlineType.d.ts +4 -0
- package/bundle/model/JSXBlock.d.ts +9 -2
- package/bundle/model/LogoType.d.ts +3 -5
- package/bundle/services/sitemap/SitemapProps.d.ts +2 -4
- package/bundle/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +3 -4
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
- package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/dist/components/Bonus/BonusContent.d.ts +4 -4
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -1
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/dist/components/CardTransfer/CardTransferContent.d.ts +2 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +3 -2
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +3 -6
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +4 -3
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -3
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +3 -4
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -7
- package/dist/components/CarouselLinks/CarouselLinks.js +3 -3
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +4 -5
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -6
- package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +3 -5
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -7
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +3 -3
- package/dist/components/ComparisonTable/ComparisonTableBody.d.ts +3 -2
- package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -9
- package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +5 -6
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.d.ts +3 -2
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +6 -9
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +3 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -2
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -1
- package/dist/components/Header/HeaderContent.d.ts +3 -4
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +3 -4
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -2
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +3 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -2
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +4 -4
- package/dist/components/LikeControl/LikeControl.d.ts +2 -1
- package/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -1
- package/dist/components/LinkList/LinkListContent.d.ts +3 -2
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/dist/components/OfficeMap/OfficeMapContent.d.ts +11 -10
- package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +3 -2
- package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -2
- package/dist/components/PictureText/PictureTextContent.d.ts +3 -4
- package/dist/components/PictureText/renderBenefit.d.ts +1 -1
- package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -4
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.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/ProductGalleryContent.d.ts +3 -4
- package/dist/components/ProductTile/ProductTileContent.d.ts +3 -6
- package/dist/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/dist/components/Recommendation/RecommendationContent.d.ts +3 -4
- package/dist/components/RollupItem/RollupItem.d.ts +4 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItemContent.d.ts +2 -3
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +2 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +11 -8
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -6
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +7 -39
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +3 -2
- package/dist/components/TextBlock/TextBlock.js +5 -11
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +4 -25
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +4 -4
- package/dist/components/Tile/TileContent.d.ts +2 -3
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -4
- package/dist/components/Video/VideoContent.d.ts +3 -2
- package/dist/model/HeadlineType.d.ts +4 -0
- package/dist/model/JSXBlock.d.ts +9 -2
- package/dist/model/LogoType.d.ts +3 -5
- package/dist/services/sitemap/SitemapProps.d.ts +2 -4
- package/dist/ui-kit/BlockWrapper.js +2 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +3 -4
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +4 -3
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/lib/components/Bonus/BonusContent.d.ts +4 -4
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -1
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/lib/components/CardTransfer/CardTransferContent.d.ts +2 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +3 -2
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +3 -6
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +4 -3
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -3
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +3 -4
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -7
- package/lib/components/CarouselLinks/CarouselLinks.js +3 -3
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +4 -5
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -6
- package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +3 -5
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -7
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +3 -3
- package/lib/components/ComparisonTable/ComparisonTableBody.d.ts +3 -2
- package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -9
- package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +5 -6
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.d.ts +3 -2
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +6 -9
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +3 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -2
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -1
- package/lib/components/Header/HeaderContent.d.ts +3 -4
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +3 -4
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -2
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +3 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -2
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +4 -4
- package/lib/components/LikeControl/LikeControl.d.ts +2 -1
- package/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -1
- package/lib/components/LinkList/LinkListContent.d.ts +3 -2
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/lib/components/OfficeMap/OfficeMapContent.d.ts +11 -10
- package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +3 -2
- package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -2
- package/lib/components/PictureText/PictureTextContent.d.ts +3 -4
- package/lib/components/PictureText/renderBenefit.d.ts +1 -1
- package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -4
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.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/ProductGalleryContent.d.ts +3 -4
- package/lib/components/ProductTile/ProductTileContent.d.ts +3 -6
- package/lib/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/lib/components/Recommendation/RecommendationContent.d.ts +3 -4
- package/lib/components/RollupItem/RollupItem.d.ts +4 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItemContent.d.ts +2 -3
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +2 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +12 -9
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -7
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +6 -38
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +3 -2
- package/lib/components/TextBlock/TextBlock.js +5 -11
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +4 -25
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +4 -4
- package/lib/components/Tile/TileContent.d.ts +2 -3
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -4
- package/lib/components/Video/VideoContent.d.ts +3 -2
- package/lib/model/HeadlineType.d.ts +4 -0
- package/lib/model/JSXBlock.d.ts +9 -2
- package/lib/model/LogoType.d.ts +3 -5
- package/lib/services/sitemap/SitemapProps.d.ts +2 -4
- package/lib/ui-kit/BlockWrapper.js +2 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +3 -4
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +4 -3
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +23 -80
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +4 -4
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -1
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +2 -1
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +3 -2
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +3 -6
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +4 -3
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -3
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +3 -4
- package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -7
- package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +4 -5
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -6
- package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +3 -5
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -7
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +3 -3
- package/mobile/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +3 -2
- package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +3 -9
- package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +5 -6
- package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +3 -2
- package/mobile/bundle/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +6 -9
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +3 -2
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -2
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +2 -1
- package/mobile/bundle/components/Header/HeaderContent.d.ts +3 -4
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +3 -4
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -2
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +3 -2
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -2
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +4 -4
- package/mobile/bundle/components/LikeControl/LikeControl.d.ts +2 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -1
- package/mobile/bundle/components/LinkList/LinkListContent.d.ts +3 -2
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/bundle/components/OfficeMap/OfficeMapContent.d.ts +11 -10
- package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +3 -2
- package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -2
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +3 -4
- package/mobile/bundle/components/PictureText/renderBenefit.d.ts +1 -1
- package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -4
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +3 -4
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +3 -6
- package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +3 -4
- package/mobile/bundle/components/RollupItem/RollupItem.d.ts +4 -2
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +2 -3
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +2 -1
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/mobile/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +4 -4
- package/mobile/bundle/components/Tile/TileContent.d.ts +2 -3
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -4
- package/mobile/bundle/components/Video/VideoContent.d.ts +3 -2
- package/mobile/bundle/model/HeadlineType.d.ts +4 -0
- package/mobile/bundle/model/JSXBlock.d.ts +9 -2
- package/mobile/bundle/model/LogoType.d.ts +3 -5
- package/mobile/bundle/services/sitemap/SitemapProps.d.ts +2 -4
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +3 -4
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/mobile/dist/components/Bonus/BonusContent.d.ts +4 -4
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +2 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +3 -2
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +3 -6
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +4 -3
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -3
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +3 -4
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -7
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +3 -3
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +4 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -6
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +3 -5
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -7
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +3 -3
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.d.ts +3 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -9
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +5 -6
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.d.ts +3 -2
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +6 -9
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +3 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -2
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +3 -4
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +3 -4
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -2
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +3 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -2
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +4 -4
- package/mobile/dist/components/LikeControl/LikeControl.d.ts +2 -1
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -1
- package/mobile/dist/components/LinkList/LinkListContent.d.ts +3 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/dist/components/OfficeMap/OfficeMapContent.d.ts +11 -10
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +3 -2
- package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -2
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +3 -4
- package/mobile/dist/components/PictureText/renderBenefit.d.ts +1 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -4
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -4
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +3 -6
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +3 -4
- package/mobile/dist/components/RollupItem/RollupItem.d.ts +4 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +2 -3
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +2 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -6
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +7 -39
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/dist/components/TextBlock/TextBlock.js +4 -25
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +4 -4
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -3
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -4
- package/mobile/dist/components/Video/VideoContent.d.ts +3 -2
- package/mobile/dist/model/HeadlineType.d.ts +4 -0
- package/mobile/dist/model/JSXBlock.d.ts +9 -2
- package/mobile/dist/model/LogoType.d.ts +3 -5
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -4
- package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +3 -4
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +4 -3
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/mobile/lib/components/Bonus/BonusContent.d.ts +4 -4
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +2 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +3 -2
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +3 -6
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +4 -3
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +2 -3
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +3 -4
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -7
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +3 -3
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +4 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -6
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +3 -5
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +5 -7
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +3 -3
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.d.ts +3 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -9
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +5 -6
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.d.ts +3 -2
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +6 -9
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +3 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +3 -2
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +3 -4
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +3 -4
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +3 -2
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +3 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +3 -2
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +4 -4
- package/mobile/lib/components/LikeControl/LikeControl.d.ts +2 -1
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -1
- package/mobile/lib/components/LinkList/LinkListContent.d.ts +3 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/lib/components/OfficeMap/OfficeMapContent.d.ts +11 -10
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +3 -2
- package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -2
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +3 -4
- package/mobile/lib/components/PictureText/renderBenefit.d.ts +1 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -4
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -4
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +3 -6
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +3 -4
- package/mobile/lib/components/RollupItem/RollupItem.d.ts +4 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +2 -3
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +2 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -7
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -2
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +6 -38
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/lib/components/TextBlock/TextBlock.js +4 -25
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +4 -4
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -3
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +3 -4
- package/mobile/lib/components/Video/VideoContent.d.ts +3 -2
- package/mobile/lib/model/HeadlineType.d.ts +4 -0
- package/mobile/lib/model/JSXBlock.d.ts +9 -2
- package/mobile/lib/model/LogoType.d.ts +3 -5
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -4
- package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +3 -4
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +4 -3
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +13 -11
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +9 -10
- package/mobile/src/components/Bonus/BonusContent.ts +8 -7
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +11 -8
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +24 -24
- package/mobile/src/components/CardTransfer/CardTransferContent.ts +3 -1
- package/mobile/src/components/Carousel/Carousel.tsx +8 -1
- package/mobile/src/components/Carousel/CarouselContent.ts +4 -2
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +4 -6
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +14 -12
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -3
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +6 -5
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +27 -28
- package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +2 -1
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -11
- package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +8 -7
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +35 -36
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +8 -8
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +30 -29
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +12 -10
- package/mobile/src/components/Catalog/Catalog.ui.json +1 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +3 -2
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +15 -21
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +10 -9
- package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -2
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +9 -11
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +10 -8
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +6 -4
- package/mobile/src/components/Gallery/Gallery.ui.json +1 -0
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +6 -4
- package/mobile/src/components/Header/HeaderContent.ts +3 -4
- package/mobile/src/components/Headline/Headline.tsx +5 -3
- package/mobile/src/components/Headline/HeadlineContent.ts +9 -8
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +4 -2
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +3 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +9 -7
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +12 -11
- package/mobile/src/components/LikeControl/LikeControl.tsx +2 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +27 -25
- package/mobile/src/components/LinkList/LinkListContent.ts +3 -2
- package/mobile/src/components/MiniGallery/MiniGallery.ui.json +1 -0
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +3 -3
- package/mobile/src/components/OfficeMap/OfficeMapContent.ts +12 -11
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +7 -5
- package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +3 -2
- package/mobile/src/components/PictureText/PictureTextContent.ts +29 -28
- package/mobile/src/components/PictureText/renderBenefit.tsx +1 -1
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +8 -8
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +2 -3
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +3 -4
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +3 -4
- package/mobile/src/components/ProductTile/ProductTileContent.ts +10 -6
- package/mobile/src/components/PromoTile/PromoTileContent.ts +3 -3
- package/mobile/src/components/Recommendation/RecommendationContent.ts +6 -6
- package/mobile/src/components/RollupItem/RollupItem.tsx +5 -3
- package/mobile/src/components/RollupItem/RollupItemContent.ts +8 -8
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +2 -1
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +3 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +23 -27
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +4 -3
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +6 -40
- package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +3 -3
- package/mobile/src/components/Tabs/TabsContent.ts +3 -2
- package/mobile/src/components/TextBlock/TextBlock.tsx +11 -45
- package/mobile/src/components/TextBlock/TextBlockContent.ts +4 -4
- package/mobile/src/components/Tile/TileContent.ts +3 -3
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +3 -4
- package/mobile/src/components/Video/VideoContent.ts +18 -16
- package/mobile/src/model/HeadlineType.ts +5 -0
- package/mobile/src/model/JSXBlock.ts +10 -2
- package/mobile/src/model/LogoType.ts +3 -5
- package/mobile/src/services/sitemap/SitemapProps.ts +2 -4
- package/mobile/src/ui-kit/BlockWrapper.tsx +16 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlContent.ts +6 -6
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +9 -3
- package/mobile/src/ui-kit/Text/TextProps.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +13 -11
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +9 -10
- package/src/components/Bonus/BonusContent.ts +8 -7
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +11 -8
- package/src/components/BusinessBlock/BusinessBlockContent.ts +24 -24
- package/src/components/CardTransfer/CardTransferContent.ts +3 -1
- package/src/components/Carousel/Carousel.tsx +8 -1
- package/src/components/Carousel/CarouselContent.ts +4 -2
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +4 -6
- package/src/components/CarouselCard/CarouselCardContent.ts +14 -12
- package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -3
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +6 -5
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +27 -28
- package/src/components/CarouselLinks/CarouselLinks.example.json +2 -1
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +1 -0
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -11
- package/src/components/CarouselLinks/CarouselLinksContent.ts +8 -7
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +35 -36
- package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +8 -8
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +30 -29
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +12 -10
- package/src/components/Catalog/Catalog.ui.json +1 -0
- package/src/components/ComparisonTable/ComparisonTableBody.tsx +3 -2
- package/src/components/ComparisonTable/ComparisonTableContent.ts +15 -21
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +10 -9
- package/src/components/ComparisonTable/TableRow.tsx +3 -2
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlockContent.ts +9 -11
- package/src/components/ErrorBlock/ErrorBlockContent.ts +10 -8
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +6 -4
- package/src/components/Gallery/Gallery.ui.json +1 -0
- package/src/components/GracePeriod/GracePeriodContent.ts +6 -4
- package/src/components/Header/HeaderContent.ts +3 -4
- package/src/components/Headline/Headline.tsx +5 -3
- package/src/components/Headline/HeadlineContent.ts +9 -8
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +4 -2
- package/src/components/ImgBlock/ImgBlockContent.ts +3 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +9 -7
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +12 -11
- package/src/components/LikeControl/LikeControl.tsx +2 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +27 -25
- package/src/components/LinkList/LinkListContent.ts +3 -2
- package/src/components/MiniGallery/MiniGallery.ui.json +1 -0
- package/src/components/MobileAppTile/MobileAppTileContent.ts +3 -3
- package/src/components/OfficeMap/OfficeMapContent.ts +12 -11
- package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +7 -5
- package/src/components/ParagraphBlock/ParagraphBlockContent.ts +3 -2
- package/src/components/PictureText/PictureTextContent.ts +29 -28
- package/src/components/PictureText/renderBenefit.tsx +1 -1
- package/src/components/Placeholder/PlaceholderContent.ts +2 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +8 -8
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +2 -3
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -0
- package/src/components/ProductGallery/ProductGallery.tsx +3 -4
- package/src/components/ProductGallery/ProductGalleryContent.ts +3 -4
- package/src/components/ProductTile/ProductTileContent.ts +10 -6
- package/src/components/PromoTile/PromoTileContent.ts +3 -3
- package/src/components/Recommendation/RecommendationContent.ts +6 -6
- package/src/components/RollupItem/RollupItem.tsx +5 -3
- package/src/components/RollupItem/RollupItemContent.ts +8 -8
- package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +2 -1
- package/src/components/StepsBlock/StepsBlock.example.json +3 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +4 -0
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +23 -27
- package/src/components/StepsBlock/StepsBlock.tsx +34 -27
- package/src/components/StepsBlock/StepsBlockContent.ts +4 -3
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +6 -40
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +3 -3
- package/src/components/Tabs/TabsContent.ts +3 -2
- package/src/components/TextBlock/TextBlock.fixture.tsx +9 -12
- package/src/components/TextBlock/TextBlock.mobile.tsx +11 -45
- package/src/components/TextBlock/TextBlock.tsx +12 -39
- package/src/components/TextBlock/TextBlockContent.ts +4 -4
- package/src/components/Tile/TileContent.ts +3 -3
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +2 -0
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +3 -4
- package/src/components/Video/VideoContent.ts +18 -16
- package/src/model/HeadlineType.ts +5 -0
- package/src/model/JSXBlock.ts +10 -2
- package/src/model/LogoType.ts +3 -5
- package/src/services/sitemap/SitemapProps.ts +2 -4
- package/src/ui-kit/BlockWrapper.tsx +16 -3
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlContent.ts +6 -6
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +9 -3
- package/src/ui-kit/Text/TextProps.ts +1 -1
- package/bundle/components/RollupItem/RollupItemProps.d.ts +0 -4
- package/dist/components/RollupItem/RollupItemProps.d.ts +0 -4
- package/dist/components/RollupItem/RollupItemProps.js +0 -2
- package/dist/components/RollupItem/RollupItemProps.js.map +0 -1
- package/lib/components/RollupItem/RollupItemProps.d.ts +0 -4
- package/lib/components/RollupItem/RollupItemProps.js +0 -2
- package/lib/components/RollupItem/RollupItemProps.js.map +0 -1
- package/mobile/bundle/components/RollupItem/RollupItemProps.d.ts +0 -4
- package/mobile/dist/components/RollupItem/RollupItemProps.d.ts +0 -4
- package/mobile/dist/components/RollupItem/RollupItemProps.js +0 -2
- package/mobile/dist/components/RollupItem/RollupItemProps.js.map +0 -1
- package/mobile/lib/components/RollupItem/RollupItemProps.d.ts +0 -4
- package/mobile/lib/components/RollupItem/RollupItemProps.js +0 -2
- package/mobile/lib/components/RollupItem/RollupItemProps.js.map +0 -1
- package/mobile/src/components/RollupItem/RollupItemProps.ts +0 -4
- package/src/components/RollupItem/RollupItemProps.ts +0 -4
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { AlignTypeWithStretch } from '../../model/AlignType';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { ColorPalette } from '../../model/ContentPageDef';
|
|
3
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
4
4
|
import type { GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
|
|
5
5
|
/**
|
|
6
6
|
* @title Вертикальный компоновщик
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export declare type VerticalLayoutContent = UniBlockContent & {
|
|
9
9
|
colorPalette?: ColorPalette;
|
|
10
|
-
version?: BlockVersion;
|
|
11
10
|
align?: AlignTypeWithStretch;
|
|
12
11
|
gap?: GapVersion;
|
|
13
12
|
/** @title Внутренний отступ компоновщика */
|
|
14
13
|
isPadding?: boolean;
|
|
15
14
|
/** @title Отступы вложенных компонентов */
|
|
16
15
|
isInnerPadding?: boolean;
|
|
17
|
-
}
|
|
16
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
3
|
import type { Picture } from '../../model/Picture';
|
|
3
4
|
/**
|
|
4
5
|
* @title Блок Видео
|
|
@@ -6,7 +7,7 @@ import type { Picture } from '../../model/Picture';
|
|
|
6
7
|
* "title": "Заголовок блока"
|
|
7
8
|
* }
|
|
8
9
|
*/
|
|
9
|
-
export
|
|
10
|
+
export declare type VideoContent = UniBlockContent & TitleProps & {
|
|
10
11
|
/**
|
|
11
12
|
* @title Ссылка на видео
|
|
12
13
|
*/
|
|
@@ -21,4 +22,4 @@ export interface VideoContent extends TitleProps {
|
|
|
21
22
|
* }
|
|
22
23
|
*/
|
|
23
24
|
previewImg?: Picture;
|
|
24
|
-
}
|
|
25
|
+
};
|
|
@@ -20,6 +20,10 @@ export declare type LabelProps = {
|
|
|
20
20
|
/** @title Название */
|
|
21
21
|
label?: string;
|
|
22
22
|
};
|
|
23
|
+
export declare type AdditionalDescriptionProps = {
|
|
24
|
+
/** @title Дополнительное описание */
|
|
25
|
+
additionalDescription?: string;
|
|
26
|
+
};
|
|
23
27
|
export declare type HeadlineCommonProps = TitleProps & DescriptionProps;
|
|
24
28
|
export declare type HeadlineProps = HeadlineCommonProps & {
|
|
25
29
|
headlineVersion?: HeadlineVersion;
|
package/lib/model/JSXBlock.d.ts
CHANGED
|
@@ -4,12 +4,19 @@ import type { SlotName } from './BlockDecorator';
|
|
|
4
4
|
import type { BlockVersion } from './BlockVersion';
|
|
5
5
|
import type { BlockDef } from './ContentPageDef';
|
|
6
6
|
import type { VNode } from './VNode';
|
|
7
|
-
export interface UniBlockProps {
|
|
7
|
+
export interface UniBlockProps extends UniBlockContent {
|
|
8
8
|
className?: string;
|
|
9
|
-
version?: BlockVersion;
|
|
10
9
|
block?: BlockDef;
|
|
11
10
|
options?: BlockRendererOptions;
|
|
12
11
|
}
|
|
12
|
+
export interface UniBlockContent {
|
|
13
|
+
version?: BlockVersion;
|
|
14
|
+
/**
|
|
15
|
+
* @title Наследование темы
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
isTheme?: boolean;
|
|
19
|
+
}
|
|
13
20
|
export declare type JSXBlock<BlockProps extends UniBlockProps = UniBlockProps> = UNIComponent<BlockProps, any, VNode | VNode[]> & {
|
|
14
21
|
childrenTypes?: string[] | {
|
|
15
22
|
include?: string[];
|
package/lib/model/LogoType.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title?: string;
|
|
5
|
-
};
|
|
1
|
+
import type { ImageContent } from '../ui-kit/Img/ImgProps';
|
|
2
|
+
import type { TitleProps } from './HeadlineType';
|
|
3
|
+
export declare type LogoType = ImageContent & TitleProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
2
|
import type { LogoType } from '../../model/LogoType';
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import type { IconProps, Picture } from '../../model/Picture';
|
|
4
4
|
/**
|
|
5
5
|
* @title Ссылка
|
|
6
6
|
* @required ["text", "href"]
|
|
@@ -21,9 +21,7 @@ export interface DispositionItem extends LinkProps {
|
|
|
21
21
|
* @title Представительства за рубежом
|
|
22
22
|
* @required ["text", "href"]
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
25
|
-
icon?: Picture;
|
|
26
|
-
}
|
|
24
|
+
export declare type ForeignOffice = LinkProps & IconProps;
|
|
27
25
|
export interface SitemapDataProps {
|
|
28
26
|
topItems?: TopMenuItem[];
|
|
29
27
|
dispositions?: DispositionItem[];
|
|
@@ -11,7 +11,7 @@ export const blockStyles = {
|
|
|
11
11
|
transparent: 'bg-transparent text-primary-text',
|
|
12
12
|
'': '',
|
|
13
13
|
};
|
|
14
|
-
export const BlockWrapper = JSX(({ className = '', version = 'primary', block, tag = 'section', role, children }) => {
|
|
14
|
+
export const BlockWrapper = JSX(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, children, }) => {
|
|
15
15
|
const Tag = tag;
|
|
16
16
|
const ref = useBlockIntersectionObserver(block);
|
|
17
17
|
const [isHidden, setHidden] = useState(false);
|
|
@@ -21,6 +21,6 @@ export const BlockWrapper = JSX(({ className = '', version = 'primary', block, t
|
|
|
21
21
|
block?.labels?.length &&
|
|
22
22
|
!block.labels.includes(event.label)));
|
|
23
23
|
}), [block]);
|
|
24
|
-
return (_jsx(Tag, { className: style('group', blockStyles[version], isHidden ? 'hidden' : '', className), ...(version ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, children: children }));
|
|
24
|
+
return (_jsx(Tag, { className: style(isTheme ? 'group' : '', blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, children: children }));
|
|
25
25
|
});
|
|
26
26
|
//# sourceMappingURL=BlockWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAOvC,MAAM,CAAC,MAAM,WAAW,GAAiC;IACvD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;IACvC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,kCAAkC;IAC/C,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,
|
|
1
|
+
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAOvC,MAAM,CAAC,MAAM,WAAW,GAAiC;IACvD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;IACvC,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE,kCAAkC;IAC/C,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,SAAS,EACnB,KAAK,EACL,GAAG,GAAG,SAAS,EACf,IAAI,EACJ,OAAO,GAAG,IAAI,EACd,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,GAAG,GAAQ,GAAG,CAAC;IAErB,MAAM,GAAG,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAC;IAEhD,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,SAAS,CACP,GAAG,EAAE,CACH,eAAe,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;QACzC,SAAS,CACP,OAAO,CACL,KAAK,CAAC,IAAI,KAAK,OAAO;YACpB,KAAK,CAAC,KAAK;YACX,KAAK,EAAE,MAAM,EAAE,MAAM;YACrB,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CACtC,CACF,CAAC;IACJ,CAAC,CAAC,EACJ,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,OAAO,CACL,KAAC,GAAG,IACF,SAAS,EAAE,KAAK,CACd,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EACtB,WAAW,CAAC,OAAO,CAAC,EACpB,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EACxB,SAAS,CACV,KACG,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACnD,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACpD,IAAI,EAAE,IAAI,YAET,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -11,13 +11,13 @@ const DEFAULT_GAP = 14;
|
|
|
11
11
|
and get rid of a clipping effect caused by overflow: hidden.
|
|
12
12
|
*/
|
|
13
13
|
const DEFAULT_PADDING = 16;
|
|
14
|
-
export const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
14
|
+
export const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', version, }) => {
|
|
15
15
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
16
16
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
17
17
|
itemCount,
|
|
18
18
|
onVisibleIndicesChange,
|
|
19
19
|
});
|
|
20
20
|
const [activeIndex] = scroll.visibleIndicesRange;
|
|
21
|
-
return (_jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [_jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (_jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType })) : null] }));
|
|
21
|
+
return (_jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [_jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (_jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType, version: version })) : null] }));
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=SwipeListControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB;;;;GAIG;AACH,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,WAAW,EACjB,OAAO,GAAG,eAAe,EACzB,QAAQ,GAAG,IAAI,EACf,SAAS,EACT,QAAQ,EACR,sBAAsB,EACtB,QAAQ,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB;;;;GAIG;AACH,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,WAAW,EACjB,OAAO,GAAG,eAAe,EACzB,QAAQ,GAAG,IAAI,EACf,SAAS,EACT,QAAQ,EACR,sBAAsB,EACtB,QAAQ,GAAG,iBAAiB,EAC5B,OAAO,GACR,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,kBAAkB,CAAiB;QAChE,SAAS;QACT,sBAAsB;KACvB,CAAC,CAAC;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAEjD,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,KAAK,eAAe,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,aACrF,KAAC,kBAAkB,IACjB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,CAAC,EACnB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,sBAAsB,EAAE,MAAM,CAAC,0BAA0B,EACzD,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACU,EACpB,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,oBAAoB,IACnB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
2
|
import type { SwipeContainerProps } from './SwipeListControlProps';
|
|
3
3
|
/**
|
|
4
4
|
* @title Swipe-контроллер
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare type SwipeListControlContent = UniBlockContent & SwipeContainerProps & {
|
|
7
7
|
/** @title Точки-индикаторы */
|
|
8
8
|
showDots?: boolean;
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
1
2
|
import type { SwipeListControlType } from './SwipeListControlProps';
|
|
2
3
|
interface SwipeListControlDotsProps {
|
|
3
4
|
containerRef?: {
|
|
@@ -6,6 +7,7 @@ interface SwipeListControlDotsProps {
|
|
|
6
7
|
activeIndex?: number;
|
|
7
8
|
dotCount?: number;
|
|
8
9
|
listType?: SwipeListControlType;
|
|
10
|
+
version?: BlockVersion;
|
|
9
11
|
}
|
|
10
12
|
export declare const SwipeListControlDots: import("@redneckz/uni-jsx").UNIComponent<SwipeListControlDotsProps, any, any>;
|
|
11
13
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { style } from '../../utils/style.js';
|
|
3
4
|
const containerStyles = {
|
|
4
5
|
'horizontal-list': 'mx-auto mt-5 w-fit',
|
|
5
6
|
'vertical-list': 'absolute flex-col justify-center h-full top-0 left-4',
|
|
@@ -8,9 +9,9 @@ const activeDotStyles = {
|
|
|
8
9
|
'horizontal-list': 'w-6',
|
|
9
10
|
'vertical-list': 'h-6',
|
|
10
11
|
};
|
|
11
|
-
const dotStyle = 'cursor-pointer
|
|
12
|
+
const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
12
13
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
13
|
-
export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list' }) => {
|
|
14
|
+
export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
14
15
|
const handleClick = (idx) => {
|
|
15
16
|
if (idx !== activeIndex && containerRef?.current) {
|
|
16
17
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -19,6 +20,6 @@ export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount =
|
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
};
|
|
22
|
-
return dotCount ? (_jsx("div", { className:
|
|
23
|
+
return dotCount ? (_jsx("div", { className: style('flex gap-2', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (_jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
|
|
23
24
|
});
|
|
24
25
|
//# sourceMappingURL=SwipeListControlDots.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,oBAAoB;IACvC,eAAe,EAAE,sDAAsD;CACxE,CAAC;AAEF,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,QAAQ,GACZ,yIAAyI,CAAC;AAE5I,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAU9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,iBAAiB,EAAE,OAAO,EAAE,EAAE,EAAE;IACrF,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE;QAClC,IAAI,GAAG,KAAK,WAAW,IAAI,YAAY,EAAE,OAAO,EAAE;YAChD,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;gBACjD,QAAQ,EAAE,QAAQ;gBAClB,KAAK,EAAE,SAAS;aACjB,CAAC,CAAC;SACJ;IACH,CAAC,CAAC;IAEF,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,cACE,SAAS,EAAE,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7E,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,YAE3C,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAW,EAAE,EAAE,CAAC,CACtD,cAEE,SAAS,EAAE,GAAG,QAAQ,IACpB,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,gBACpD,EAAE,EACF,IAAI,EAAC,QAAQ,uBAEb,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,IAN1B,MAAM,CAAC,GAAG,CAAC,CAOhB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
transparent: 'bg-transparent text-primary-text',
|
|
360
360
|
'': '',
|
|
361
361
|
};
|
|
362
|
-
const BlockWrapper = JSX(({ className = '', version = 'primary', block, tag = 'section', role, children }) => {
|
|
362
|
+
const BlockWrapper = JSX(({ className = '', version = 'primary', block, tag = 'section', role, isTheme = true, children, }) => {
|
|
363
363
|
const Tag = tag;
|
|
364
364
|
const ref = useBlockIntersectionObserver(block);
|
|
365
365
|
const [isHidden, setHidden] = useState(false);
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
block?.labels?.length &&
|
|
370
370
|
!block.labels.includes(event.label)));
|
|
371
371
|
}), [block]);
|
|
372
|
-
return (jsx(Tag, { className: style('group', blockStyles[version], isHidden ? 'hidden' : '', className), ...(version ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, children: children }));
|
|
372
|
+
return (jsx(Tag, { className: style(isTheme ? 'group' : '', blockStyles[version], isHidden ? 'hidden' : '', className), ...(version && isTheme ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, children: children }));
|
|
373
373
|
});
|
|
374
374
|
|
|
375
375
|
const HeadingClass = {
|
|
@@ -605,9 +605,9 @@
|
|
|
605
605
|
'horizontal-list': 'w-6',
|
|
606
606
|
'vertical-list': 'h-6',
|
|
607
607
|
};
|
|
608
|
-
const dotStyle = 'cursor-pointer
|
|
608
|
+
const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
609
609
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
610
|
-
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list' }) => {
|
|
610
|
+
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
611
611
|
const handleClick = (idx) => {
|
|
612
612
|
if (idx !== activeIndex && containerRef?.current) {
|
|
613
613
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
|
-
return dotCount ? (jsx("div", { className:
|
|
619
|
+
return dotCount ? (jsx("div", { className: style('flex gap-2', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
|
|
620
620
|
});
|
|
621
621
|
|
|
622
622
|
const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
|
|
@@ -693,14 +693,14 @@
|
|
|
693
693
|
and get rid of a clipping effect caused by overflow: hidden.
|
|
694
694
|
*/
|
|
695
695
|
const DEFAULT_PADDING = 16;
|
|
696
|
-
const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
696
|
+
const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', version, }) => {
|
|
697
697
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
698
698
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
699
699
|
itemCount,
|
|
700
700
|
onVisibleIndicesChange,
|
|
701
701
|
});
|
|
702
702
|
const [activeIndex] = scroll.visibleIndicesRange;
|
|
703
|
-
return (jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType })) : null] }));
|
|
703
|
+
return (jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType, version: version })) : null] }));
|
|
704
704
|
});
|
|
705
705
|
|
|
706
706
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
@@ -1208,9 +1208,9 @@
|
|
|
1208
1208
|
},
|
|
1209
1209
|
};
|
|
1210
1210
|
|
|
1211
|
-
const Headline = JSX(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as,
|
|
1211
|
+
const Headline = JSX(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as, ...rest }) => {
|
|
1212
1212
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
1213
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col p-12', versionStyle.wrapper, className),
|
|
1213
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col p-12 group-data-secondary:bg-primary-main group-data-secondary:text-white', versionStyle.wrapper, className), ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { color: "group-data-secondary:text-white/80", size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
|
|
1214
1214
|
});
|
|
1215
1215
|
|
|
1216
1216
|
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
@@ -1349,7 +1349,7 @@
|
|
|
1349
1349
|
|
|
1350
1350
|
const renderBenefit = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
|
|
1351
1351
|
|
|
1352
|
-
const ProductBlockInner = JSX(({ className = '', headlineVersion = 'L', benefits, benefitsVersion = 'normal', buttons, image, items,
|
|
1352
|
+
const ProductBlockInner = JSX(({ className = '', headlineVersion = 'L', benefits, benefitsVersion = 'normal', buttons, image, items, isDotted = true, label, title, description, ...rest }) => (jsxs(BlockWrapper, { className: `w-full ${className}`, ...rest, children: [jsxs("div", { children: [label ? renderLabel(label) : null, jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs(BaseTile, { buttons: renderButtonsSection(buttons, { className: 'mt-5', isVertical: true }), children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map(renderBenefit('primary', benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-3 text-m", items: items, isDotted: isDotted })) : null] })] }), renderImage$1(image)] })));
|
|
1353
1353
|
function renderImage$1(image) {
|
|
1354
1354
|
return image?.src ? (jsx(Img, { imageClassName: "mt-5 mx-auto block", image: { className: 'block', ...image } })) : null;
|
|
1355
1355
|
}
|
|
@@ -1371,44 +1371,12 @@
|
|
|
1371
1371
|
|
|
1372
1372
|
const checkCanRenderIcon = (icon) => Boolean(icon?.icon || icon?.src);
|
|
1373
1373
|
|
|
1374
|
-
const
|
|
1375
|
-
primary:
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
dot: 'bg-secondary-text',
|
|
1381
|
-
},
|
|
1382
|
-
secondary: {
|
|
1383
|
-
description: '!text-white/80 text-l-light',
|
|
1384
|
-
iconText: 'text-white',
|
|
1385
|
-
iconBackground: 'bg-white/30',
|
|
1386
|
-
iconConnector: 'bg-white',
|
|
1387
|
-
dot: 'bg-white/80',
|
|
1388
|
-
},
|
|
1389
|
-
gray: {
|
|
1390
|
-
// TODO Replace this Map with group-data-*
|
|
1391
|
-
description: '!text-white/80 text-l-light',
|
|
1392
|
-
iconText: 'text-white',
|
|
1393
|
-
iconBackground: 'bg-white/30',
|
|
1394
|
-
iconConnector: 'bg-white',
|
|
1395
|
-
dot: 'bg-white/80',
|
|
1396
|
-
},
|
|
1397
|
-
transparent: {
|
|
1398
|
-
description: '!text-white/80 text-l-light',
|
|
1399
|
-
iconText: 'text-white',
|
|
1400
|
-
iconBackground: 'bg-white/30',
|
|
1401
|
-
iconConnector: 'bg-white',
|
|
1402
|
-
dot: 'bg-white/80',
|
|
1403
|
-
},
|
|
1404
|
-
'': {
|
|
1405
|
-
// TODO Replace this Map with group-data-*
|
|
1406
|
-
description: '!text-white/80 text-l-light',
|
|
1407
|
-
iconText: 'text-white',
|
|
1408
|
-
iconBackground: 'bg-white/30',
|
|
1409
|
-
iconConnector: 'bg-white',
|
|
1410
|
-
dot: 'bg-white/80',
|
|
1411
|
-
},
|
|
1374
|
+
const STEPS_BLOCK_STYLE = {
|
|
1375
|
+
description: 'text-white/80 text-l-light group-data-primary:text-secondary-text',
|
|
1376
|
+
iconText: 'text-white group-data-primary:text-secondary-text',
|
|
1377
|
+
iconBackground: 'bg-white/30 group-data-primary:bg-main-divider',
|
|
1378
|
+
iconConnector: 'bg-white group-data-primary:bg-secondary-light',
|
|
1379
|
+
dot: 'bg-white/80 group-data-primary:bg-secondary-text',
|
|
1412
1380
|
};
|
|
1413
1381
|
|
|
1414
1382
|
const STEPS_SIZE_MAP = {
|
|
@@ -1419,10 +1387,8 @@
|
|
|
1419
1387
|
normal: 'min-h-[70px]',
|
|
1420
1388
|
small: 'min-h-12',
|
|
1421
1389
|
};
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1424
|
-
return (jsxs(BlockWrapper, { className: `box-border px-4 py-6 flex flex-col ${className}`, version: version, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "text-center", title: title }) : null, description ? (jsx("p", { className: `text-m-light text-center ${styleMap.description} ${title ? 'mt-2' : ''}`, children: description })) : null, steps?.length ? (jsx("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: jsx("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map(renderStep(size, version, showLines)) }) })) : null] }));
|
|
1425
|
-
});
|
|
1390
|
+
const styleMap = STEPS_BLOCK_STYLE;
|
|
1391
|
+
const StepsBlock = JSX(({ className = '', title, description, showLines = true, steps, size = 'normal', version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: `box-border px-4 py-6 flex flex-col ${className}`, version: version, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "text-center", title: title }) : null, description ? (jsx("p", { className: `text-m-light text-center ${styleMap.description} ${title ? 'mt-2' : ''}`, children: description })) : null, steps?.length ? (jsx("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: jsx("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map(renderStep(size, version, showLines)) }) })) : null] })));
|
|
1426
1392
|
// TODO: Create universal function for this case
|
|
1427
1393
|
const renderStep = (size, version, showLines) =>
|
|
1428
1394
|
// Linter doesn't understand that switch processes all cases
|
|
@@ -1444,11 +1410,9 @@
|
|
|
1444
1410
|
const renderDefaultStep = (size, version, showLines) => (step, i, steps) => {
|
|
1445
1411
|
const isLastStep = steps.length - 1 === i;
|
|
1446
1412
|
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-6';
|
|
1447
|
-
const styleMap = STEPS_BLOCK_STYLE_MAPS[version];
|
|
1448
1413
|
return (jsx("div", { children: jsxs("div", { className: "flex flex-row text-center relative", children: [jsxs("div", { className: "overflow-hidden flex-shrink-0", children: [renderIconArea(size, version)(step, i), isLastStep ? null : (jsx("div", { className: `min-h-8 h-full w-0.5 ${showLines ? styleMap.iconConnector : ''} ${margin}` }))] }), jsxs("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label ? (jsx("div", { className: "text-m-title-xs font-medium m-0 text-left mb-1", children: step.label })) : null, step.description ? (jsx("div", { className: `text-s ${styleMap.description} text-left`, children: step.description })) : null] })] }) }, String(i)));
|
|
1449
1414
|
};
|
|
1450
1415
|
const renderIconArea = (size, version) => (step, i) => {
|
|
1451
|
-
const styleMap = STEPS_BLOCK_STYLE_MAPS[version];
|
|
1452
1416
|
const iconAreaSize = STEPS_SIZE_MAP[size];
|
|
1453
1417
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
1454
1418
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
@@ -1501,32 +1465,11 @@
|
|
|
1501
1465
|
data: colData?.[i] || [{}],
|
|
1502
1466
|
}));
|
|
1503
1467
|
|
|
1504
|
-
const
|
|
1505
|
-
primary: {
|
|
1506
|
-
background: 'bg-white',
|
|
1507
|
-
icon: 'bg-primary-main text-white',
|
|
1508
|
-
title: 'text-primary-text',
|
|
1509
|
-
description: 'text-secondary-text',
|
|
1510
|
-
},
|
|
1511
|
-
secondary: {
|
|
1512
|
-
background: 'bg-primary-main',
|
|
1513
|
-
icon: 'bg-white text-primary-main',
|
|
1514
|
-
title: 'text-white',
|
|
1515
|
-
description: 'text-white',
|
|
1516
|
-
},
|
|
1517
|
-
'secondary-light': {
|
|
1518
|
-
background: 'bg-primary-main/10',
|
|
1519
|
-
icon: 'bg-primary-main text-white',
|
|
1520
|
-
title: 'text-primary-text',
|
|
1521
|
-
description: 'text-secondary-text',
|
|
1522
|
-
},
|
|
1523
|
-
};
|
|
1524
|
-
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
1525
|
-
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
1526
|
-
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `text-l font-medium mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-s ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? (jsx(List, { className: "mt-1 text-m", items: items, isDotted: isDotted })) : null] })] }));
|
|
1468
|
+
const TextBlock = JSX(({ title, description, iconVersion, image, className = '', items, isDotted = true }) => {
|
|
1469
|
+
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col bg-white group-data-secondary:bg-primary-main ${className}`, children: [iconVersion === 'small' ? renderIcon() : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5 text-secondary-text group-data-secondary:text-white", children: [title ? jsx("div", { className: `text-l font-medium mb-1`, children: title }) : null, description ? jsx("div", { className: `text-s `, children: description }) : null, items?.length ? (jsx(List, { className: "mt-1 text-m", items: items, isDotted: isDotted })) : null] })] }));
|
|
1527
1470
|
});
|
|
1528
|
-
function renderIcon(
|
|
1529
|
-
return (jsx("div", { className: "mb-3", children: jsx("div", { className:
|
|
1471
|
+
function renderIcon() {
|
|
1472
|
+
return (jsx("div", { className: "mb-3", children: jsx("div", { className: "rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main", children: "i" }) }));
|
|
1530
1473
|
}
|
|
1531
1474
|
function renderImage(image) {
|
|
1532
1475
|
return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
@@ -1676,7 +1619,7 @@
|
|
|
1676
1619
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
1677
1620
|
}
|
|
1678
1621
|
|
|
1679
|
-
const packageVersion = "0.8.
|
|
1622
|
+
const packageVersion = "0.8.23";
|
|
1680
1623
|
|
|
1681
1624
|
exports.Blocks = Blocks;
|
|
1682
1625
|
exports.ContentPage = ContentPage;
|