@redneckz/wildless-cms-uni-blocks 0.8.22 → 0.8.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.8.17.js +27 -0
- package/bin/migration-scripts/0.8.23.js +31 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +83 -58
- 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 +8 -3
- 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/StepsBlockContent.d.ts +2 -2
- package/bundle/components/Tabs/LinkTab.d.ts +1 -0
- 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/hooks/useBranches.d.ts +20 -0
- 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/bundle/ui-kit/TopItem/TopItem.d.ts +2 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +5 -5
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/dist/components/Bonus/BonusContent.d.ts +4 -4
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +8 -3
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/dist/components/Calculator/getMonthlyPayment.js +4 -1
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- 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/Header/HeaderSecondaryMenu.js +7 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- 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/StepsBlockContent.d.ts +2 -2
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/dist/components/Tabs/LinkTab.d.ts +1 -0
- package/dist/components/Tabs/LinkTab.js +6 -2
- package/dist/components/Tabs/LinkTab.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +15 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +3 -2
- package/dist/components/Tabs/renderTab.js +1 -1
- package/dist/components/Tabs/renderTab.js.map +1 -1
- 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/hooks/useBranches.d.ts +20 -0
- package/dist/hooks/useBranches.js +16 -0
- package/dist/hooks/useBranches.js.map +1 -0
- 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 +3 -6
- 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/dist/ui-kit/TopItem/TopItem.d.ts +2 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +5 -5
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -4
- package/lib/components/Bonus/BonusContent.d.ts +4 -4
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +8 -3
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/lib/components/Calculator/getMonthlyPayment.js +4 -1
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- 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/Header/HeaderSecondaryMenu.js +7 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- 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/StepsBlockContent.d.ts +2 -2
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/lib/components/Tabs/LinkTab.d.ts +1 -0
- package/lib/components/Tabs/LinkTab.js +6 -2
- package/lib/components/Tabs/LinkTab.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +15 -3
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +3 -2
- package/lib/components/Tabs/renderTab.js +1 -1
- package/lib/components/Tabs/renderTab.js.map +1 -1
- 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/hooks/useBranches.d.ts +20 -0
- package/lib/hooks/useBranches.js +13 -0
- package/lib/hooks/useBranches.js.map +1 -0
- 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 +3 -6
- 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/lib/ui-kit/TopItem/TopItem.d.ts +2 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +16 -40
- 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 +8 -3
- 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 +2 -2
- package/mobile/bundle/components/Tabs/LinkTab.d.ts +1 -0
- 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/hooks/useBranches.d.ts +20 -0
- 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/bundle/ui-kit/TopItem/TopItem.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +5 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -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/BonusBenefitsBlock.js +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +8 -3
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +4 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- 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/Header/HeaderSecondaryMenu.js +7 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- 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/StepsBlockContent.d.ts +2 -2
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/LinkTab.d.ts +1 -0
- package/mobile/dist/components/Tabs/LinkTab.js +6 -2
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +15 -3
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/dist/components/Tabs/renderTab.js +1 -1
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- 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/hooks/useBranches.d.ts +20 -0
- package/mobile/dist/hooks/useBranches.js +16 -0
- package/mobile/dist/hooks/useBranches.js.map +1 -0
- 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 +3 -6
- 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/dist/ui-kit/TopItem/TopItem.d.ts +2 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +5 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -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/BonusBenefitsBlock.js +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +8 -3
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +8 -10
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +4 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- 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/Header/HeaderSecondaryMenu.js +7 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- 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/StepsBlockContent.d.ts +2 -2
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -2
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/LinkTab.d.ts +1 -0
- package/mobile/lib/components/Tabs/LinkTab.js +6 -2
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +15 -3
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/lib/components/Tabs/renderTab.js +1 -1
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- 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/hooks/useBranches.d.ts +20 -0
- package/mobile/lib/hooks/useBranches.js +13 -0
- package/mobile/lib/hooks/useBranches.js.map +1 -0
- 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 +3 -6
- 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/lib/ui-kit/TopItem/TopItem.d.ts +2 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +13 -11
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +5 -5
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +9 -10
- package/mobile/src/components/Bonus/BonusContent.ts +8 -7
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +16 -8
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +3 -3
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +17 -10
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +24 -24
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +3 -1
- 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/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/GracePeriod/GracePeriodContent.ts +6 -4
- package/mobile/src/components/Header/HeaderContent.ts +3 -4
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +9 -2
- 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/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/StepsBlockContent.ts +2 -2
- package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +3 -3
- package/mobile/src/components/Tabs/LinkTab.tsx +8 -2
- package/mobile/src/components/Tabs/Tabs.tsx +18 -3
- package/mobile/src/components/Tabs/TabsContent.ts +3 -2
- package/mobile/src/components/Tabs/renderTab.tsx +7 -1
- 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/hooks/useBranches.ts +43 -0
- 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 +17 -9
- 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/mobile/src/ui-kit/TopItem/TopItem.tsx +2 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +13 -11
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +5 -5
- package/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +9 -10
- package/src/components/Bonus/BonusContent.ts +8 -7
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +16 -8
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +8 -8
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +3 -3
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +17 -10
- package/src/components/BusinessBlock/BusinessBlockContent.ts +24 -24
- package/src/components/Calculator/getMonthlyPayment.ts +3 -1
- 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/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/GracePeriod/GracePeriodContent.ts +6 -4
- package/src/components/Header/HeaderContent.ts +3 -4
- package/src/components/Header/HeaderSecondaryMenu.tsx +9 -2
- 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/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/StepsBlockContent.ts +2 -2
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +3 -3
- package/src/components/Tabs/LinkTab.tsx +8 -2
- package/src/components/Tabs/Tabs.tsx +18 -3
- package/src/components/Tabs/TabsContent.ts +3 -2
- package/src/components/Tabs/renderTab.tsx +7 -1
- 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/hooks/useBranches.ts +43 -0
- 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 +17 -9
- 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/src/ui-kit/TopItem/TopItem.tsx +2 -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
|
@@ -19,6 +19,14 @@ export const Tabs = JSX<TabsBlockProps>((props) => {
|
|
|
19
19
|
|
|
20
20
|
const [currentTab, setCurrentTab] = useState(tabs ? tabs[0] : undefined);
|
|
21
21
|
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
if (!tabs || !tabs[0]) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
fireTabEvent(tabs[0]);
|
|
28
|
+
}, []);
|
|
29
|
+
|
|
22
30
|
useEffect(() => {
|
|
23
31
|
if (currentTab?.type === 'group') {
|
|
24
32
|
defaultEventBus.subject('tab', { type: currentTab.type, label: currentTab.ref });
|
|
@@ -26,9 +34,7 @@ export const Tabs = JSX<TabsBlockProps>((props) => {
|
|
|
26
34
|
}, [currentTab]);
|
|
27
35
|
|
|
28
36
|
const handleClick = useCallback((selectedTab: TabData) => {
|
|
29
|
-
|
|
30
|
-
defaultEventBus.fire('tab', { type: selectedTab.type, label: selectedTab.ref });
|
|
31
|
-
}
|
|
37
|
+
fireTabEvent(selectedTab);
|
|
32
38
|
setCurrentTab(selectedTab);
|
|
33
39
|
}, []);
|
|
34
40
|
|
|
@@ -61,3 +67,12 @@ export const Tabs = JSX<TabsBlockProps>((props) => {
|
|
|
61
67
|
</BlockWrapper>
|
|
62
68
|
);
|
|
63
69
|
});
|
|
70
|
+
|
|
71
|
+
const fireTabEvent = (tab: TabData) => {
|
|
72
|
+
if (tab.type === 'group') {
|
|
73
|
+
defaultEventBus.fire('tab', { type: tab.type, label: tab.ref });
|
|
74
|
+
}
|
|
75
|
+
if (tab.type === 'link') {
|
|
76
|
+
defaultEventBus.fire('tab', { type: tab.type, label: tab.href });
|
|
77
|
+
}
|
|
78
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -38,7 +39,7 @@ export type TabsMode = 'wideScreen' | 'scrollable';
|
|
|
38
39
|
/**
|
|
39
40
|
* @title Вкладки
|
|
40
41
|
*/
|
|
41
|
-
export
|
|
42
|
+
export type TabsContent = UniBlockContent & {
|
|
42
43
|
/** @title Табы */
|
|
43
44
|
tabs?: TabData[];
|
|
44
45
|
/** @title Закрепить сверху */
|
|
@@ -50,4 +51,4 @@ export interface TabsContent {
|
|
|
50
51
|
* @default "wideScreen"
|
|
51
52
|
*/
|
|
52
53
|
tabsMode?: TabsMode;
|
|
53
|
-
}
|
|
54
|
+
};
|
|
@@ -26,7 +26,13 @@ export const renderTab =
|
|
|
26
26
|
return renderGroupTab({ page, currentTab, showCounter, onClick, isScrollable })(tab, i);
|
|
27
27
|
case 'link': {
|
|
28
28
|
return (
|
|
29
|
-
<LinkTab
|
|
29
|
+
<LinkTab
|
|
30
|
+
key={String(i)}
|
|
31
|
+
tab={tab}
|
|
32
|
+
currentTab={currentTab}
|
|
33
|
+
isScrollable={isScrollable}
|
|
34
|
+
onClick={onClick}
|
|
35
|
+
/>
|
|
30
36
|
);
|
|
31
37
|
}
|
|
32
38
|
default:
|
|
@@ -24,12 +24,11 @@ export default {
|
|
|
24
24
|
<div className="container grid grid-cols-12">
|
|
25
25
|
<div className="font-sans overflow-hidden col-span-12">
|
|
26
26
|
<div className="flex flex-col gap-6" data-theme="pc">
|
|
27
|
-
<TextBlock {...TEXT_BLOCK}
|
|
28
|
-
<TextBlock {...TEXT_BLOCK}
|
|
29
|
-
<TextBlock {...TEXT_BLOCK}
|
|
30
|
-
<TextBlock {...TEXT_BLOCK}
|
|
31
|
-
<TextBlock {...TEXT_BLOCK}
|
|
32
|
-
<TextBlock {...TEXT_BLOCK} blockVersion="secondary-light" iconVersion="small" />
|
|
27
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="small" />
|
|
28
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="big" image={image} />
|
|
29
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="none" />
|
|
30
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="small" />
|
|
31
|
+
<TextBlock {...TEXT_BLOCK} version="secondary" iconVersion="small" />
|
|
33
32
|
</div>
|
|
34
33
|
</div>
|
|
35
34
|
</div>
|
|
@@ -38,9 +37,8 @@ export default {
|
|
|
38
37
|
<div className="container grid grid-cols-12">
|
|
39
38
|
<div className="font-sans overflow-hidden col-span-12">
|
|
40
39
|
<div className="flex flex-col gap-6" data-theme="bc">
|
|
41
|
-
<TextBlock {...TEXT_BLOCK}
|
|
42
|
-
<TextBlock {...TEXT_BLOCK}
|
|
43
|
-
<TextBlock {...TEXT_BLOCK} blockVersion="secondary-light" iconVersion="small" />
|
|
40
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="small" />
|
|
41
|
+
<TextBlock {...TEXT_BLOCK} version="secondary" iconVersion="small" />
|
|
44
42
|
</div>
|
|
45
43
|
</div>
|
|
46
44
|
</div>
|
|
@@ -49,9 +47,8 @@ export default {
|
|
|
49
47
|
<div className="container grid grid-cols-12">
|
|
50
48
|
<div className="font-sans overflow-hidden col-span-12">
|
|
51
49
|
<div className="flex flex-col gap-6" data-theme="eo">
|
|
52
|
-
<TextBlock {...TEXT_BLOCK}
|
|
53
|
-
<TextBlock {...TEXT_BLOCK}
|
|
54
|
-
<TextBlock {...TEXT_BLOCK} blockVersion="secondary-light" iconVersion="small" />
|
|
50
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="small" />
|
|
51
|
+
<TextBlock {...TEXT_BLOCK} version="secondary" iconVersion="small" />
|
|
55
52
|
</div>
|
|
56
53
|
</div>
|
|
57
54
|
</div>
|
|
@@ -3,57 +3,21 @@ import type { UniBlockProps } from '../../model/JSXBlock';
|
|
|
3
3
|
import type { Picture } from '../../model/Picture';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
5
|
import { List } from '../../ui-kit/List/List';
|
|
6
|
-
import type { TextBlockContent
|
|
6
|
+
import type { TextBlockContent } from './TextBlockContent';
|
|
7
7
|
|
|
8
8
|
export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
|
|
9
9
|
|
|
10
|
-
const textBlockStyleMaps: Record<TextBlockVersion, Record<string, string>> = {
|
|
11
|
-
primary: {
|
|
12
|
-
background: 'bg-white',
|
|
13
|
-
icon: 'bg-primary-main text-white',
|
|
14
|
-
title: 'text-primary-text',
|
|
15
|
-
description: 'text-secondary-text',
|
|
16
|
-
},
|
|
17
|
-
secondary: {
|
|
18
|
-
background: 'bg-primary-main',
|
|
19
|
-
icon: 'bg-white text-primary-main',
|
|
20
|
-
title: 'text-white',
|
|
21
|
-
description: 'text-white',
|
|
22
|
-
},
|
|
23
|
-
'secondary-light': {
|
|
24
|
-
background: 'bg-primary-main/10',
|
|
25
|
-
icon: 'bg-primary-main text-white',
|
|
26
|
-
title: 'text-primary-text',
|
|
27
|
-
description: 'text-secondary-text',
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
10
|
export const TextBlock = JSX<TextBlockProps>(
|
|
32
|
-
({
|
|
33
|
-
title,
|
|
34
|
-
description,
|
|
35
|
-
blockVersion = 'primary',
|
|
36
|
-
iconVersion,
|
|
37
|
-
image,
|
|
38
|
-
className = '',
|
|
39
|
-
items,
|
|
40
|
-
isDotted = true,
|
|
41
|
-
}) => {
|
|
42
|
-
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
43
|
-
|
|
11
|
+
({ title, description, iconVersion, image, className = '', items, isDotted = true }) => {
|
|
44
12
|
return (
|
|
45
13
|
<section
|
|
46
|
-
className={`font-sans px-4 py-[18px] flex flex-col
|
|
14
|
+
className={`font-sans px-4 py-[18px] flex flex-col bg-white group-data-secondary:bg-primary-main ${className}`}
|
|
47
15
|
>
|
|
48
|
-
{iconVersion === 'small' ? renderIcon(
|
|
16
|
+
{iconVersion === 'small' ? renderIcon() : null}
|
|
49
17
|
{iconVersion === 'big' ? renderImage(image) : null}
|
|
50
|
-
<div className="py-0.5">
|
|
51
|
-
{title ?
|
|
52
|
-
|
|
53
|
-
) : null}
|
|
54
|
-
{description ? (
|
|
55
|
-
<div className={`text-s ${textBlockStyleMap.description}`}>{description}</div>
|
|
56
|
-
) : null}
|
|
18
|
+
<div className="py-0.5 text-secondary-text group-data-secondary:text-white">
|
|
19
|
+
{title ? <div className={`text-l font-medium mb-1`}>{title}</div> : null}
|
|
20
|
+
{description ? <div className={`text-s `}>{description}</div> : null}
|
|
57
21
|
{items?.length ? (
|
|
58
22
|
<List className="mt-1 text-m" items={items} isDotted={isDotted} />
|
|
59
23
|
) : null}
|
|
@@ -63,10 +27,12 @@ export const TextBlock = JSX<TextBlockProps>(
|
|
|
63
27
|
},
|
|
64
28
|
);
|
|
65
29
|
|
|
66
|
-
function renderIcon(
|
|
30
|
+
function renderIcon() {
|
|
67
31
|
return (
|
|
68
32
|
<div className="mb-3">
|
|
69
|
-
<div className=
|
|
33
|
+
<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">
|
|
34
|
+
i
|
|
35
|
+
</div>
|
|
70
36
|
</div>
|
|
71
37
|
);
|
|
72
38
|
}
|
|
@@ -6,43 +6,22 @@ import { Img } from '../../ui-kit/Img/Img';
|
|
|
6
6
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
7
7
|
import { RichText } from '../../ui-kit/RichText/RichText';
|
|
8
8
|
import { Text } from '../../ui-kit/Text/Text';
|
|
9
|
-
import type { TextBlockContent
|
|
9
|
+
import type { TextBlockContent } from './TextBlockContent';
|
|
10
10
|
|
|
11
11
|
export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
|
|
12
12
|
|
|
13
|
-
const textBlockBack: Record<TextBlockVersion, string> = {
|
|
14
|
-
primary: 'bg-white',
|
|
15
|
-
secondary: 'bg-primary-main',
|
|
16
|
-
'secondary-light': 'bg-primary-main/10',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
13
|
export const TextBlock = JSX<TextBlockProps>(
|
|
20
|
-
({
|
|
21
|
-
className = '',
|
|
22
|
-
title,
|
|
23
|
-
description,
|
|
24
|
-
blockVersion = 'primary',
|
|
25
|
-
iconVersion,
|
|
26
|
-
image,
|
|
27
|
-
__html,
|
|
28
|
-
...rest
|
|
29
|
-
}) => {
|
|
30
|
-
const isSecondaryBlock = blockVersion === 'secondary';
|
|
31
|
-
|
|
14
|
+
({ className = '', title, description, iconVersion, image, __html, ...rest }) => {
|
|
32
15
|
return (
|
|
33
16
|
<BlockWrapper
|
|
34
|
-
className={`px-9 py-4 flex gap-3
|
|
17
|
+
className={`px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10' ${className}`}
|
|
35
18
|
{...rest}
|
|
36
19
|
>
|
|
37
|
-
{iconVersion === 'small' ? (
|
|
38
|
-
<div className="mt-1">{renderIcon(isSecondaryBlock)}</div>
|
|
39
|
-
) : null}
|
|
20
|
+
{iconVersion === 'small' ? <div className="mt-1">{renderIcon()}</div> : null}
|
|
40
21
|
{iconVersion === 'big' ? renderImage(image) : null}
|
|
41
22
|
<div>
|
|
42
|
-
{title ? renderTitle(title
|
|
43
|
-
{description ? (
|
|
44
|
-
<div className="mt-1">{renderDescription(description, isSecondaryBlock)}</div>
|
|
45
|
-
) : null}
|
|
23
|
+
{title ? renderTitle(title) : null}
|
|
24
|
+
{description ? <div className="mt-1">{renderDescription(description)}</div> : null}
|
|
46
25
|
{__html ? <RichText __html={__html} /> : null}
|
|
47
26
|
</div>
|
|
48
27
|
</BlockWrapper>
|
|
@@ -50,11 +29,9 @@ export const TextBlock = JSX<TextBlockProps>(
|
|
|
50
29
|
},
|
|
51
30
|
);
|
|
52
31
|
|
|
53
|
-
const renderIcon = (
|
|
32
|
+
const renderIcon = () => (
|
|
54
33
|
<div
|
|
55
|
-
className={`rounded-full h-4 w-4 text-center text-xs-light
|
|
56
|
-
isSecondaryBlock ? 'bg-white text-primary-main' : 'bg-primary-main text-white'
|
|
57
|
-
}`}
|
|
34
|
+
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`}
|
|
58
35
|
>
|
|
59
36
|
i
|
|
60
37
|
</div>
|
|
@@ -62,18 +39,14 @@ const renderIcon = (isSecondaryBlock: boolean) => (
|
|
|
62
39
|
|
|
63
40
|
const renderImage = (image?: Picture) => (image?.src ? <Img image={image} /> : null);
|
|
64
41
|
|
|
65
|
-
const renderTitle = (title: string
|
|
66
|
-
<Text
|
|
67
|
-
size="text-l"
|
|
68
|
-
font="font-medium"
|
|
69
|
-
color={isSecondaryBlock ? 'text-white' : 'text-primary-text'}
|
|
70
|
-
>
|
|
42
|
+
const renderTitle = (title: string) => (
|
|
43
|
+
<Text size="text-l" font="font-medium" color="text-primary-text group-data-secondary:text-white">
|
|
71
44
|
{title}
|
|
72
45
|
</Text>
|
|
73
46
|
);
|
|
74
47
|
|
|
75
|
-
const renderDescription = (description: string
|
|
76
|
-
<Paragraph size="text-s" color=
|
|
48
|
+
const renderDescription = (description: string) => (
|
|
49
|
+
<Paragraph size="text-s" color="text-secondary-text group-data-secondary:text-white">
|
|
77
50
|
{description}
|
|
78
51
|
</Paragraph>
|
|
79
52
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
3
3
|
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -12,15 +12,15 @@ export type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
|
|
|
12
12
|
* @title Размер иконки
|
|
13
13
|
* @enumNames ["Нет", "Маленькая", "Большая"]
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
type TextBlockIconVersion = 'none' | 'small' | 'big';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @title Текстовый блок
|
|
19
19
|
*/
|
|
20
20
|
export type TextBlockContent = HeadlineCommonProps &
|
|
21
|
-
RichTextProps &
|
|
21
|
+
RichTextProps &
|
|
22
|
+
ImageContent & {
|
|
22
23
|
iconVersion?: TextBlockIconVersion;
|
|
23
|
-
image?: Picture;
|
|
24
24
|
blockVersion?: TextBlockVersion;
|
|
25
25
|
/** @title Буллиты */ // TODO: mobile prop
|
|
26
26
|
isDotted?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
4
4
|
import type { HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
@@ -10,7 +10,8 @@ import type { TagsContent } from '../../ui-kit/Tags/TagsContent';
|
|
|
10
10
|
/**
|
|
11
11
|
* @title Плитка
|
|
12
12
|
*/
|
|
13
|
-
export type TileContent =
|
|
13
|
+
export type TileContent = UniBlockContent &
|
|
14
|
+
HeadingCommonProps &
|
|
14
15
|
RichTextProps &
|
|
15
16
|
ListContent &
|
|
16
17
|
ButtonContent &
|
|
@@ -36,5 +37,4 @@ export type TileContent = HeadingCommonProps &
|
|
|
36
37
|
*/
|
|
37
38
|
isDotted?: boolean;
|
|
38
39
|
listItemSize?: ListItemSize;
|
|
39
|
-
version?: BlockVersion;
|
|
40
40
|
};
|
|
@@ -77,6 +77,7 @@ export default {
|
|
|
77
77
|
className="col-span-12"
|
|
78
78
|
align="right"
|
|
79
79
|
version="secondary"
|
|
80
|
+
isTheme={false}
|
|
80
81
|
block={{
|
|
81
82
|
type: 'VerticalLayout',
|
|
82
83
|
blocks: [
|
|
@@ -95,6 +96,7 @@ export default {
|
|
|
95
96
|
gap="XL"
|
|
96
97
|
align="left"
|
|
97
98
|
version="secondary"
|
|
99
|
+
isTheme={false}
|
|
98
100
|
block={{
|
|
99
101
|
type: 'VerticalLayout',
|
|
100
102
|
blocks: [
|
|
@@ -1,18 +1,17 @@
|
|
|
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
|
/**
|
|
7
7
|
* @title Вертикальный компоновщик
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type VerticalLayoutContent = UniBlockContent & {
|
|
10
10
|
colorPalette?: ColorPalette;
|
|
11
|
-
version?: BlockVersion;
|
|
12
11
|
align?: AlignTypeWithStretch;
|
|
13
12
|
gap?: GapVersion;
|
|
14
13
|
/** @title Внутренний отступ компоновщика */
|
|
15
14
|
isPadding?: boolean;
|
|
16
15
|
/** @title Отступы вложенных компонентов */
|
|
17
16
|
isInnerPadding?: boolean;
|
|
18
|
-
}
|
|
17
|
+
};
|
|
@@ -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
|
/**
|
|
@@ -7,19 +8,20 @@ import type { Picture } from '../../model/Picture';
|
|
|
7
8
|
* "title": "Заголовок блока"
|
|
8
9
|
* }
|
|
9
10
|
*/
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
export type VideoContent = UniBlockContent &
|
|
12
|
+
TitleProps & {
|
|
13
|
+
/**
|
|
14
|
+
* @title Ссылка на видео
|
|
15
|
+
*/
|
|
16
|
+
url?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @title Заставка в блоке
|
|
19
|
+
* @default {
|
|
20
|
+
* "format": "webp",
|
|
21
|
+
* "size": {
|
|
22
|
+
* "width": 1004
|
|
23
|
+
* },
|
|
24
|
+
* }
|
|
25
|
+
*/
|
|
26
|
+
previewImg?: Picture;
|
|
27
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { fetchJSON } from '../utils/fetchJSON';
|
|
3
|
+
|
|
4
|
+
export interface Tariff {
|
|
5
|
+
tariffType?: string;
|
|
6
|
+
tariffValue?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface SafeBoxCase {
|
|
10
|
+
safeBoxCasesSize?: string;
|
|
11
|
+
tariffs?: Tariff[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface SafeBoxCaseVolume {
|
|
15
|
+
volume?: string;
|
|
16
|
+
safeBoxCases?: SafeBoxCase[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface Branch {
|
|
20
|
+
branchCode?: string;
|
|
21
|
+
address?: string;
|
|
22
|
+
gpsLatitude?: number;
|
|
23
|
+
gpsLongitude?: number;
|
|
24
|
+
safeBoxCaseVolumes?: SafeBoxCaseVolume[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const BRANCHES_URL = '/api/v1/branches';
|
|
28
|
+
const EMPTY_VALUE = [];
|
|
29
|
+
|
|
30
|
+
export function useBranches(regionCode?: string): Branch[] {
|
|
31
|
+
const { data } = useAsyncData<Branch[], any, string | null>(
|
|
32
|
+
regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null,
|
|
33
|
+
fetchSafeBoxes,
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
return data || EMPTY_VALUE;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const fetchSafeBoxes = async (url: string): Promise<Branch[]> => {
|
|
40
|
+
const result = await fetchJSON<Branch[]>(url, { method: 'GET' });
|
|
41
|
+
|
|
42
|
+
return result || EMPTY_VALUE;
|
|
43
|
+
};
|
|
@@ -25,6 +25,11 @@ export type LabelProps = {
|
|
|
25
25
|
label?: string;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
+
export type AdditionalDescriptionProps = {
|
|
29
|
+
/** @title Дополнительное описание */
|
|
30
|
+
additionalDescription?: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
28
33
|
export type HeadlineCommonProps = TitleProps & DescriptionProps;
|
|
29
34
|
|
|
30
35
|
export type HeadlineProps = HeadlineCommonProps & {
|
package/src/model/JSXBlock.ts
CHANGED
|
@@ -5,13 +5,21 @@ import type { BlockVersion } from './BlockVersion';
|
|
|
5
5
|
import type { BlockDef } from './ContentPageDef';
|
|
6
6
|
import type { VNode } from './VNode';
|
|
7
7
|
|
|
8
|
-
export interface UniBlockProps {
|
|
8
|
+
export interface UniBlockProps extends UniBlockContent {
|
|
9
9
|
className?: string;
|
|
10
|
-
version?: BlockVersion;
|
|
11
10
|
block?: BlockDef;
|
|
12
11
|
options?: BlockRendererOptions;
|
|
13
12
|
}
|
|
14
13
|
|
|
14
|
+
export interface UniBlockContent {
|
|
15
|
+
version?: BlockVersion;
|
|
16
|
+
/**
|
|
17
|
+
* @title Наследование темы
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
isTheme?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
export type JSXBlock<BlockProps extends UniBlockProps = UniBlockProps> = UNIComponent<
|
|
16
24
|
BlockProps,
|
|
17
25
|
any,
|
package/src/model/LogoType.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ImageContent } from '../ui-kit/Img/ImgProps';
|
|
2
|
+
import type { TitleProps } from './HeadlineType';
|
|
2
3
|
|
|
3
|
-
export type LogoType =
|
|
4
|
-
image?: Picture;
|
|
5
|
-
title?: string;
|
|
6
|
-
};
|
|
4
|
+
export 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
|
/**
|
|
6
6
|
* @title Ссылка
|
|
@@ -24,9 +24,7 @@ export interface DispositionItem extends LinkProps {
|
|
|
24
24
|
* @title Представительства за рубежом
|
|
25
25
|
* @required ["text", "href"]
|
|
26
26
|
*/
|
|
27
|
-
export
|
|
28
|
-
icon?: Picture;
|
|
29
|
-
}
|
|
27
|
+
export type ForeignOffice = LinkProps & IconProps;
|
|
30
28
|
|
|
31
29
|
export interface SitemapDataProps {
|
|
32
30
|
topItems?: TopMenuItem[];
|
|
@@ -20,7 +20,15 @@ export const blockStyles: Record<BlockVersion, string> = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export const BlockWrapper = JSX<BlockWrapperProps>(
|
|
23
|
-
({
|
|
23
|
+
({
|
|
24
|
+
className = '',
|
|
25
|
+
version = 'primary',
|
|
26
|
+
block,
|
|
27
|
+
tag = 'section',
|
|
28
|
+
role,
|
|
29
|
+
isTheme = true,
|
|
30
|
+
children,
|
|
31
|
+
}) => {
|
|
24
32
|
const Tag: any = tag;
|
|
25
33
|
|
|
26
34
|
const ref = useBlockIntersectionObserver(block);
|
|
@@ -30,12 +38,7 @@ export const BlockWrapper = JSX<BlockWrapperProps>(
|
|
|
30
38
|
() =>
|
|
31
39
|
defaultEventBus.subscribe('tab', (event) => {
|
|
32
40
|
setHidden(
|
|
33
|
-
Boolean(
|
|
34
|
-
event.type === 'group' &&
|
|
35
|
-
event.label &&
|
|
36
|
-
block?.labels?.length &&
|
|
37
|
-
!block.labels.includes(event.label),
|
|
38
|
-
),
|
|
41
|
+
Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)),
|
|
39
42
|
);
|
|
40
43
|
}),
|
|
41
44
|
[block],
|
|
@@ -43,8 +46,13 @@ export const BlockWrapper = JSX<BlockWrapperProps>(
|
|
|
43
46
|
|
|
44
47
|
return (
|
|
45
48
|
<Tag
|
|
46
|
-
className={style(
|
|
47
|
-
|
|
49
|
+
className={style(
|
|
50
|
+
isTheme ? 'group' : '',
|
|
51
|
+
blockStyles[version],
|
|
52
|
+
isHidden ? 'hidden' : '',
|
|
53
|
+
className,
|
|
54
|
+
)}
|
|
55
|
+
{...(version && isTheme ? { 'data-ver': version } : {})}
|
|
48
56
|
{...(block?.anchor ? { id: block.anchor, ref } : {})}
|
|
49
57
|
role={role}
|
|
50
58
|
>
|
|
@@ -24,6 +24,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
24
24
|
children,
|
|
25
25
|
onVisibleIndicesChange,
|
|
26
26
|
listType = 'horizontal-list',
|
|
27
|
+
version,
|
|
27
28
|
}) => {
|
|
28
29
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
29
30
|
|
|
@@ -53,6 +54,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
53
54
|
activeIndex={activeIndex}
|
|
54
55
|
dotCount={itemCount}
|
|
55
56
|
listType={listType}
|
|
57
|
+
version={version}
|
|
56
58
|
/>
|
|
57
59
|
) : null}
|
|
58
60
|
</div>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
2
|
import type { SwipeContainerProps } from './SwipeListControlProps';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @title Swipe-контроллер
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
7
|
+
export type SwipeListControlContent = UniBlockContent &
|
|
8
|
+
SwipeContainerProps & {
|
|
9
|
+
/** @title Точки-индикаторы */
|
|
10
|
+
showDots?: boolean;
|
|
11
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import { style } from '../../utils/style';
|
|
2
4
|
import type { SwipeListControlType } from './SwipeListControlProps';
|
|
3
5
|
|
|
4
6
|
const containerStyles: Record<SwipeListControlType, string> = {
|
|
@@ -12,7 +14,7 @@ const activeDotStyles: Record<SwipeListControlType, string> = {
|
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
const dotStyle =
|
|
15
|
-
'cursor-pointer
|
|
17
|
+
'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
16
18
|
|
|
17
19
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
18
20
|
|
|
@@ -21,10 +23,11 @@ interface SwipeListControlDotsProps {
|
|
|
21
23
|
activeIndex?: number;
|
|
22
24
|
dotCount?: number;
|
|
23
25
|
listType?: SwipeListControlType;
|
|
26
|
+
version?: BlockVersion;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
27
|
-
({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list' }) => {
|
|
30
|
+
({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
28
31
|
const handleClick = (idx: number) => {
|
|
29
32
|
if (idx !== activeIndex && containerRef?.current) {
|
|
30
33
|
containerRef.current.children[idx]?.scrollIntoView({
|
|
@@ -35,7 +38,10 @@ export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
|
|
|
35
38
|
};
|
|
36
39
|
|
|
37
40
|
return dotCount ? (
|
|
38
|
-
<div
|
|
41
|
+
<div
|
|
42
|
+
className={style('flex gap-2', containerStyles[listType], version ? 'group' : '')}
|
|
43
|
+
{...(version ? { 'data-ver': version } : {})}
|
|
44
|
+
>
|
|
39
45
|
{new Array(dotCount).fill(null).map((_, idx: number) => (
|
|
40
46
|
<div
|
|
41
47
|
key={String(idx)}
|