@redneckz/wildless-cms-uni-blocks 0.6.28 → 0.6.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +190 -110
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Carousel/Carousel.d.ts +5 -0
- package/bundle/components/Carousel/CarouselContainer.d.ts +6 -0
- package/bundle/components/Carousel/CarouselContent.d.ts +10 -0
- package/bundle/components/Carousel/CarouselNavButtons.d.ts +11 -0
- package/bundle/components/CarouselCard/CarouselCard.d.ts +7 -0
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +17 -0
- package/bundle/components/CarouselCard/constants.d.ts +3 -0
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
- package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
- package/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/bundle/components/Recommendation/RecommendationContent.d.ts +8 -0
- package/bundle/components/RollupItem/RollupItem.d.ts +3 -0
- package/bundle/components/RollupItem/RollupItemContent.d.ts +12 -0
- package/bundle/components/RollupItem/RollupItemProps.d.ts +4 -0
- package/bundle/hooks/useCarousel.d.ts +14 -0
- package/bundle/icons/IconName.d.ts +6 -2
- package/bundle/model/CarouselCardVersion.d.ts +1 -0
- package/bundle/services/sitemap/SitemapProps.d.ts +5 -0
- package/bundle/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/bundle/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -2
- package/bundle/ui-kit/Select/Select.d.ts +3 -3
- package/cosmos-static/icons/HeartIcon.svg +1 -0
- package/cosmos-static/icons/HuaweiIcon.svg +1 -0
- package/dist/components/Blocks.js +10 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +5 -0
- package/dist/components/Carousel/Carousel.js +28 -0
- package/dist/components/Carousel/Carousel.js.map +1 -0
- package/dist/components/Carousel/CarouselContainer.d.ts +6 -0
- package/dist/components/Carousel/CarouselContainer.js +11 -0
- package/dist/components/Carousel/CarouselContainer.js.map +1 -0
- package/dist/components/Carousel/CarouselContent.d.ts +10 -0
- package/dist/components/Carousel/CarouselContent.js +2 -0
- package/dist/components/Carousel/CarouselContent.js.map +1 -0
- package/dist/components/Carousel/CarouselNavButtons.d.ts +11 -0
- package/dist/components/Carousel/CarouselNavButtons.js +36 -0
- package/dist/components/Carousel/CarouselNavButtons.js.map +1 -0
- package/dist/components/CarouselCard/CarouselCard.d.ts +7 -0
- package/dist/components/CarouselCard/CarouselCard.js +20 -0
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -0
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +17 -0
- package/dist/components/CarouselCard/CarouselCardContent.js +2 -0
- package/dist/components/CarouselCard/CarouselCardContent.js.map +1 -0
- package/dist/components/CarouselCard/constants.d.ts +3 -0
- package/dist/components/CarouselCard/constants.js +11 -0
- package/dist/components/CarouselCard/constants.js.map +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +29 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTableBody.js +6 -6
- package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
- package/dist/components/ComparisonTable/ComparisonTableRows.js +10 -3
- package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +2 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +0 -6
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +3 -2
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/Recommendation/RecommendationContent.d.ts +8 -0
- package/dist/components/RollupItem/RollupItem.d.ts +3 -0
- package/dist/components/RollupItem/RollupItem.js +18 -0
- package/dist/components/RollupItem/RollupItem.js.map +1 -0
- package/dist/components/RollupItem/RollupItemContent.d.ts +12 -0
- package/dist/components/RollupItem/RollupItemContent.js +2 -0
- package/dist/components/RollupItem/RollupItemContent.js.map +1 -0
- package/dist/components/RollupItem/RollupItemProps.d.ts +4 -0
- package/dist/components/RollupItem/RollupItemProps.js +2 -0
- package/dist/components/RollupItem/RollupItemProps.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +16 -11
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/hooks/useCarousel.d.ts +14 -0
- package/dist/hooks/useCarousel.js +24 -0
- package/dist/hooks/useCarousel.js.map +1 -0
- package/dist/icons/IconName.d.ts +6 -2
- package/dist/icons/IconName.js +5 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlurVersion.d.ts +0 -0
- package/dist/model/BlurVersion.js +1 -0
- package/dist/model/BlurVersion.js.map +1 -0
- package/dist/model/CarouselCardVersion.d.ts +1 -0
- package/dist/model/CarouselCardVersion.js +2 -0
- package/dist/model/CarouselCardVersion.js.map +1 -0
- package/dist/services/sitemap/SitemapProps.d.ts +5 -0
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
- package/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
- package/dist/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
- package/dist/ui-kit/Input/InputProps.d.ts +1 -2
- package/dist/ui-kit/Logo/Logo.js +4 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Select/Select.d.ts +3 -3
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +10 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +5 -0
- package/lib/components/Carousel/Carousel.fixture.d.ts +8 -0
- package/lib/components/Carousel/Carousel.js +26 -0
- package/lib/components/Carousel/Carousel.js.map +1 -0
- package/lib/components/Carousel/CarouselContainer.d.ts +6 -0
- package/lib/components/Carousel/CarouselContainer.js +9 -0
- package/lib/components/Carousel/CarouselContainer.js.map +1 -0
- package/lib/components/Carousel/CarouselContent.d.ts +10 -0
- package/lib/components/Carousel/CarouselContent.js +2 -0
- package/lib/components/Carousel/CarouselContent.js.map +1 -0
- package/lib/components/Carousel/CarouselNavButtons.d.ts +11 -0
- package/lib/components/Carousel/CarouselNavButtons.js +34 -0
- package/lib/components/Carousel/CarouselNavButtons.js.map +1 -0
- package/lib/components/CarouselCard/CarouselCard.d.ts +7 -0
- package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +11 -0
- package/lib/components/CarouselCard/CarouselCard.js +18 -0
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -0
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +17 -0
- package/lib/components/CarouselCard/CarouselCardContent.js +2 -0
- package/lib/components/CarouselCard/CarouselCardContent.js.map +1 -0
- package/lib/components/CarouselCard/constants.d.ts +3 -0
- package/lib/components/CarouselCard/constants.js +9 -0
- package/lib/components/CarouselCard/constants.js.map +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +9 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +27 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTableBody.js +6 -6
- package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
- package/lib/components/ComparisonTable/ComparisonTableRows.js +10 -3
- package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +2 -2
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +0 -6
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +3 -2
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/Recommendation/RecommendationContent.d.ts +8 -0
- package/lib/components/RollupItem/RollupItem.d.ts +3 -0
- package/lib/components/RollupItem/RollupItem.fixture.d.ts +7 -0
- package/lib/components/RollupItem/RollupItem.js +16 -0
- package/lib/components/RollupItem/RollupItem.js.map +1 -0
- package/lib/components/RollupItem/RollupItemContent.d.ts +12 -0
- package/lib/components/RollupItem/RollupItemContent.js +2 -0
- package/lib/components/RollupItem/RollupItemContent.js.map +1 -0
- package/lib/components/RollupItem/RollupItemProps.d.ts +4 -0
- package/lib/components/RollupItem/RollupItemProps.js +2 -0
- package/lib/components/RollupItem/RollupItemProps.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTable.js +16 -11
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +4 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/hooks/useCarousel.d.ts +14 -0
- package/lib/hooks/useCarousel.js +21 -0
- package/lib/hooks/useCarousel.js.map +1 -0
- package/lib/icons/IconName.d.ts +6 -2
- package/lib/icons/IconName.js +5 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlurVersion.d.ts +0 -0
- package/lib/model/BlurVersion.js +1 -0
- package/lib/model/BlurVersion.js.map +1 -0
- package/lib/model/CarouselCardVersion.d.ts +1 -0
- package/lib/model/CarouselCardVersion.js +2 -0
- package/lib/model/CarouselCardVersion.js.map +1 -0
- package/lib/services/sitemap/SitemapProps.d.ts +5 -0
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
- package/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
- package/lib/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
- package/lib/ui-kit/Input/InputProps.d.ts +1 -2
- package/lib/ui-kit/Logo/Logo.js +4 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Select/Select.d.ts +3 -3
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Carousel/Carousel.d.ts +5 -0
- package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +6 -0
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +10 -0
- package/mobile/bundle/components/Carousel/CarouselNavButtons.d.ts +11 -0
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +7 -0
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +17 -0
- package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -0
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
- package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
- package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +8 -0
- package/mobile/bundle/components/RollupItem/RollupItem.d.ts +3 -0
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +12 -0
- package/mobile/bundle/components/RollupItem/RollupItemProps.d.ts +4 -0
- package/mobile/bundle/hooks/useCarousel.d.ts +14 -0
- package/mobile/bundle/icons/IconName.d.ts +6 -2
- package/mobile/bundle/model/CarouselCardVersion.d.ts +1 -0
- package/mobile/bundle/services/sitemap/SitemapProps.d.ts +5 -0
- package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/mobile/bundle/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -2
- package/mobile/bundle/ui-kit/Select/Select.d.ts +3 -3
- package/mobile/dist/components/Carousel/Carousel.d.ts +5 -0
- package/mobile/dist/components/Carousel/Carousel.js +28 -0
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -0
- package/mobile/dist/components/Carousel/CarouselContainer.d.ts +6 -0
- package/mobile/dist/components/Carousel/CarouselContainer.js +11 -0
- package/mobile/dist/components/Carousel/CarouselContainer.js.map +1 -0
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +10 -0
- package/mobile/dist/components/Carousel/CarouselContent.js +2 -0
- package/mobile/dist/components/Carousel/CarouselContent.js.map +1 -0
- package/mobile/dist/components/Carousel/CarouselNavButtons.d.ts +11 -0
- package/mobile/dist/components/Carousel/CarouselNavButtons.js +36 -0
- package/mobile/dist/components/Carousel/CarouselNavButtons.js.map +1 -0
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +7 -0
- package/mobile/dist/components/CarouselCard/CarouselCard.js +20 -0
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -0
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +17 -0
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js +2 -0
- package/mobile/dist/components/CarouselCard/CarouselCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselCard/constants.d.ts +3 -0
- package/mobile/dist/components/CarouselCard/constants.js +11 -0
- package/mobile/dist/components/CarouselCard/constants.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +29 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +6 -6
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +10 -3
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +2 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +3 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +8 -0
- package/mobile/dist/components/RollupItem/RollupItem.d.ts +3 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +18 -0
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +12 -0
- package/mobile/dist/components/RollupItem/RollupItemContent.js +2 -0
- package/mobile/dist/components/RollupItem/RollupItemContent.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItemProps.d.ts +4 -0
- package/mobile/dist/components/RollupItem/RollupItemProps.js +2 -0
- package/mobile/dist/components/RollupItem/RollupItemProps.js.map +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/hooks/useCarousel.d.ts +14 -0
- package/mobile/dist/hooks/useCarousel.js +24 -0
- package/mobile/dist/hooks/useCarousel.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +6 -2
- package/mobile/dist/icons/IconName.js +5 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlurVersion.d.ts +0 -0
- package/mobile/dist/model/BlurVersion.js +1 -0
- package/mobile/dist/model/BlurVersion.js.map +1 -0
- package/mobile/dist/model/CarouselCardVersion.d.ts +1 -0
- package/mobile/dist/model/CarouselCardVersion.js +2 -0
- package/mobile/dist/model/CarouselCardVersion.js.map +1 -0
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +5 -0
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
- package/mobile/dist/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
- package/mobile/dist/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -2
- package/mobile/dist/ui-kit/Select/Select.d.ts +3 -3
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.d.ts +5 -0
- package/mobile/lib/components/Carousel/Carousel.js +26 -0
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -0
- package/mobile/lib/components/Carousel/CarouselContainer.d.ts +6 -0
- package/mobile/lib/components/Carousel/CarouselContainer.js +9 -0
- package/mobile/lib/components/Carousel/CarouselContainer.js.map +1 -0
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +10 -0
- package/mobile/lib/components/Carousel/CarouselContent.js +2 -0
- package/mobile/lib/components/Carousel/CarouselContent.js.map +1 -0
- package/mobile/lib/components/Carousel/CarouselNavButtons.d.ts +11 -0
- package/mobile/lib/components/Carousel/CarouselNavButtons.js +34 -0
- package/mobile/lib/components/Carousel/CarouselNavButtons.js.map +1 -0
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +7 -0
- package/mobile/lib/components/CarouselCard/CarouselCard.js +18 -0
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -0
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +17 -0
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js +2 -0
- package/mobile/lib/components/CarouselCard/CarouselCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselCard/constants.d.ts +3 -0
- package/mobile/lib/components/CarouselCard/constants.js +9 -0
- package/mobile/lib/components/CarouselCard/constants.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +5 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +27 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +15 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js +2 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +6 -6
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +4 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +10 -3
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +2 -2
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +3 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +8 -0
- package/mobile/lib/components/RollupItem/RollupItem.d.ts +3 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +16 -0
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +12 -0
- package/mobile/lib/components/RollupItem/RollupItemContent.js +2 -0
- package/mobile/lib/components/RollupItem/RollupItemContent.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItemProps.d.ts +4 -0
- package/mobile/lib/components/RollupItem/RollupItemProps.js +2 -0
- package/mobile/lib/components/RollupItem/RollupItemProps.js.map +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/hooks/useCarousel.d.ts +14 -0
- package/mobile/lib/hooks/useCarousel.js +21 -0
- package/mobile/lib/hooks/useCarousel.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +6 -2
- package/mobile/lib/icons/IconName.js +5 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlurVersion.d.ts +0 -0
- package/mobile/lib/model/BlurVersion.js +1 -0
- package/mobile/lib/model/BlurVersion.js.map +1 -0
- package/mobile/lib/model/CarouselCardVersion.d.ts +1 -0
- package/mobile/lib/model/CarouselCardVersion.js +2 -0
- package/mobile/lib/model/CarouselCardVersion.js.map +1 -0
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +5 -0
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.d.ts +0 -0
- package/mobile/lib/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.js +0 -0
- package/mobile/lib/ui-kit/InnerTable/useTariffsInnerTableData.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -2
- package/mobile/lib/ui-kit/Select/Select.d.ts +3 -3
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/components/Carousel/Carousel.example.json +6 -0
- package/mobile/src/components/Carousel/Carousel.tsx +70 -0
- package/mobile/src/components/Carousel/CarouselContainer.tsx +26 -0
- package/mobile/src/components/Carousel/CarouselContent.ts +10 -0
- package/mobile/src/components/Carousel/CarouselNavButtons.tsx +51 -0
- package/mobile/src/components/CarouselCard/CarouselCard.example.json +11 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +49 -0
- package/mobile/src/components/CarouselCard/CarouselCard.ui.json +1 -0
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +18 -0
- package/mobile/src/components/CarouselCard/constants.ts +11 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +24 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +93 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +1 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +16 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +10 -10
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +20 -6
- package/mobile/src/components/Header/Header.tsx +49 -51
- package/mobile/src/components/Header/HeaderContent.ts +0 -6
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +3 -5
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +5 -1
- package/mobile/src/components/Recommendation/RecommendationContent.ts +8 -0
- package/mobile/src/components/RollupItem/RollupItem.example.json +23 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +86 -0
- package/mobile/src/components/RollupItem/RollupItem.ui.json +1 -0
- package/mobile/src/components/RollupItem/RollupItemContent.ts +13 -0
- package/mobile/src/components/RollupItem/RollupItemProps.ts +4 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/mobile/src/hooks/useCarousel.ts +55 -0
- package/mobile/src/icons/HeartIcon.svg +3 -0
- package/mobile/src/icons/HuaweiIcon.svg +1 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/model/BlurVersion.ts +0 -0
- package/mobile/src/model/CarouselCardVersion.ts +1 -0
- package/mobile/src/services/sitemap/SitemapProps.ts +5 -0
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/mobile/src/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.ts +0 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -2
- package/mobile/src/ui-kit/Select/Select.tsx +3 -3
- package/package.json +1 -1
- package/src/components/Blocks.ts +10 -2
- package/src/components/Carousel/Carousel.example.json +6 -0
- package/src/components/Carousel/Carousel.fixture.tsx +76 -0
- package/src/components/Carousel/Carousel.tsx +70 -0
- package/src/components/Carousel/CarouselContainer.tsx +26 -0
- package/src/components/Carousel/CarouselContent.ts +10 -0
- package/src/components/Carousel/CarouselNavButtons.tsx +51 -0
- package/src/components/CarouselCard/CarouselCard.example.json +11 -0
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +47 -0
- package/src/components/CarouselCard/CarouselCard.tsx +49 -0
- package/src/components/CarouselCard/CarouselCard.ui.json +1 -0
- package/src/components/CarouselCard/CarouselCardContent.ts +18 -0
- package/src/components/CarouselCard/constants.ts +11 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +24 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +64 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +93 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +1 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +16 -0
- package/src/components/ComparisonTable/ComparisonTableBody.tsx +10 -10
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +20 -6
- package/src/components/Header/Header.fixture.mobile.tsx +2 -2
- package/src/components/Header/Header.fixture.tsx +3 -3
- package/src/components/Header/Header.mobile.tsx +49 -51
- package/src/components/Header/Header.tsx +2 -9
- package/src/components/Header/HeaderContent.ts +0 -6
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.example.json +3 -5
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/Recommendation/RecommendationCard.tsx +5 -1
- package/src/components/Recommendation/RecommendationContent.ts +8 -0
- package/src/components/RollupItem/RollupItem.example.json +23 -0
- package/src/components/RollupItem/RollupItem.fixture.tsx +23 -0
- package/src/components/RollupItem/RollupItem.tsx +86 -0
- package/src/components/RollupItem/RollupItem.ui.json +1 -0
- package/src/components/RollupItem/RollupItemContent.ts +13 -0
- package/src/components/RollupItem/RollupItemProps.ts +4 -0
- package/src/components/TariffsTable/TariffsTable.tsx +30 -13
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +46 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/src/hooks/useCarousel.ts +55 -0
- package/src/icons/HeartIcon.svg +3 -0
- package/src/icons/HuaweiIcon.svg +1 -0
- package/src/icons/IconName.ts +327 -6
- package/src/model/BlurVersion.ts +0 -0
- package/src/model/CarouselCardVersion.ts +1 -0
- package/src/services/sitemap/SitemapProps.ts +5 -0
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
- package/src/ui-kit/Foldable/Foldable.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/src/{hooks → ui-kit/InnerTable}/useTariffsInnerTableData.ts +0 -0
- package/src/ui-kit/Input/InputProps.ts +1 -2
- package/src/ui-kit/Logo/Logo.tsx +4 -1
- package/src/ui-kit/Select/Select.tsx +3 -3
- package/bundle/hooks/useTableArrowScrollControl.d.ts +0 -5
- package/dist/hooks/useTableArrowScrollControl.d.ts +0 -5
- package/dist/hooks/useTableArrowScrollControl.js +0 -21
- package/dist/hooks/useTableArrowScrollControl.js.map +0 -1
- package/dist/hooks/useTariffsInnerTableData.js.map +0 -1
- package/lib/hooks/useTableArrowScrollControl.d.ts +0 -5
- package/lib/hooks/useTableArrowScrollControl.js +0 -18
- package/lib/hooks/useTableArrowScrollControl.js.map +0 -1
- package/lib/hooks/useTariffsInnerTableData.js.map +0 -1
- package/mobile/bundle/hooks/useTableArrowScrollControl.d.ts +0 -5
- package/mobile/dist/hooks/useTableArrowScrollControl.d.ts +0 -5
- package/mobile/dist/hooks/useTableArrowScrollControl.js +0 -21
- package/mobile/dist/hooks/useTableArrowScrollControl.js.map +0 -1
- package/mobile/dist/hooks/useTariffsInnerTableData.js.map +0 -1
- package/mobile/lib/hooks/useTableArrowScrollControl.d.ts +0 -5
- package/mobile/lib/hooks/useTableArrowScrollControl.js +0 -18
- package/mobile/lib/hooks/useTableArrowScrollControl.js.map +0 -1
- package/mobile/lib/hooks/useTariffsInnerTableData.js.map +0 -1
- package/mobile/src/hooks/useTableArrowScrollControl.ts +0 -28
- package/src/hooks/useTableArrowScrollControl.ts +0 -28
package/bundle/bundle.umd.js
CHANGED
|
@@ -446,9 +446,9 @@
|
|
|
446
446
|
});
|
|
447
447
|
|
|
448
448
|
const icons$1 = ['PlusIcon', 'MinusIcon'];
|
|
449
|
-
const AccordionItem = JSX(({ className = '', label = '', isExpanded, children }) => (jsx("li", { className: `border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "grid grid-cols-12 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { label: label, icon: icons$1[Number(isUnfolded)], onClick: onToggle })) }) })));
|
|
449
|
+
const AccordionItem = JSX(({ className = '', label = '', isExpanded, children }) => (jsx("li", { className: `border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "grid grid-cols-12 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton$1, { label: label, icon: icons$1[Number(isUnfolded)], onClick: onToggle })) }) })));
|
|
450
450
|
AccordionItem.childrenTypes = [];
|
|
451
|
-
const FoldButton = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer", onClick: onClick, children: [jsx("span", { className: "text-xl font-medium pr-2.5", children: label }), jsx(ImgInner, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })] })));
|
|
451
|
+
const FoldButton$1 = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer", onClick: onClick, children: [jsx("span", { className: "text-xl font-medium pr-2.5", children: label }), jsx(ImgInner, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })] })));
|
|
452
452
|
|
|
453
453
|
const VersionStyleMap = {
|
|
454
454
|
primary: 'bg-white text-primary-text',
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
if (version === 'link') {
|
|
607
607
|
return '';
|
|
608
608
|
}
|
|
609
|
-
const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-
|
|
609
|
+
const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-4'}`;
|
|
610
610
|
return [
|
|
611
611
|
'group flex items-center justify-center',
|
|
612
612
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
@@ -1242,6 +1242,85 @@
|
|
|
1242
1242
|
return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
|
|
1243
1243
|
});
|
|
1244
1244
|
|
|
1245
|
+
const useCarouselControl = ({ itemsCount, visibleItemCount = itemsCount, isCyclic, }) => {
|
|
1246
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
1247
|
+
const inc = useCallback(() => setActiveIndex((_) => (isCyclic ? (_ + 1) % itemsCount : Math.min(_ + 1, itemsCount - 1))), []);
|
|
1248
|
+
const dec = useCallback(() => setActiveIndex((_) => (isCyclic ? (itemsCount + _ - 1) % itemsCount : Math.max(_ - 1, 0))), []);
|
|
1249
|
+
const isScrollAvailable = itemsCount > visibleItemCount;
|
|
1250
|
+
const isCyclicAndScrollAvailable = isCyclic && isScrollAvailable;
|
|
1251
|
+
const canInc = isCyclicAndScrollAvailable ||
|
|
1252
|
+
(isScrollAvailable && itemsCount - activeIndex > visibleItemCount);
|
|
1253
|
+
const canDec = isCyclicAndScrollAvailable || Boolean(isScrollAvailable && activeIndex > 0);
|
|
1254
|
+
return [
|
|
1255
|
+
activeIndex,
|
|
1256
|
+
{
|
|
1257
|
+
inc,
|
|
1258
|
+
dec,
|
|
1259
|
+
canInc,
|
|
1260
|
+
canDec,
|
|
1261
|
+
},
|
|
1262
|
+
];
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
const CarouselContainer = JSX(({ children, activeItem, cardFullViewCount, cardWidth }) => {
|
|
1266
|
+
const cardFullViewStyles = cardFullViewCount === 1
|
|
1267
|
+
? `translateX(-${activeItem}00%)`
|
|
1268
|
+
: `translateX(-${activeItem * cardWidth}px)`;
|
|
1269
|
+
return (jsx("div", { className: "w-auto flex flex-1 duration-1000", style: { transform: `${cardFullViewStyles}` }, role: "list", children: children }));
|
|
1270
|
+
});
|
|
1271
|
+
|
|
1272
|
+
const Carousel = JSX(({ cardFullViewCount = 1, children, cardWidth = 1007, className = '', isBlur = true, isCyclic = false, block, ...rest }) => {
|
|
1273
|
+
const blurClasses = isBlur ? 'absolute top-0 bottom-0 w-[84px]' : '';
|
|
1274
|
+
const { blocks: childBlocks } = block || {};
|
|
1275
|
+
const childBlocksLength = childBlocks !== undefined ? childBlocks.length : 0;
|
|
1276
|
+
const isScrollAvailable = childBlocksLength > cardFullViewCount;
|
|
1277
|
+
const [activeIndex, controls] = useCarouselControl({
|
|
1278
|
+
itemsCount: childBlocksLength,
|
|
1279
|
+
visibleItemCount: cardFullViewCount,
|
|
1280
|
+
isCyclic,
|
|
1281
|
+
});
|
|
1282
|
+
const { inc, dec, canDec, canInc } = controls;
|
|
1283
|
+
return (jsxs(BlockWrapper, { className: `box-border h-full relative font-sans flex flex-col justify-center overflow-hidden ${className}`, ...rest, children: [jsx(CarouselContainer, { activeItem: activeIndex, cardFullViewCount: cardFullViewCount, cardWidth: cardWidth, children: children }), isScrollAvailable ? (jsx("div", { children: renderArrows({
|
|
1284
|
+
handler: [dec, inc],
|
|
1285
|
+
isShown: [canDec, canInc],
|
|
1286
|
+
btnClass: ['left-8', 'right-8'],
|
|
1287
|
+
className: 'top-1/2 z-10',
|
|
1288
|
+
}) })) : null, isScrollAvailable ? (jsxs("div", { children: [jsx("div", { className: `${blurClasses} left-0 bg-opacity-from-white` }), jsx("div", { className: `${blurClasses} right-0 bg-opacity-to-white` })] })) : null] }));
|
|
1289
|
+
});
|
|
1290
|
+
Carousel.childrenTypes = ['CarouselCard', 'CarouselTariffsCard'];
|
|
1291
|
+
|
|
1292
|
+
const BLOCK_CLASSES = 'absolute border border-solid border-main-stroke w-[100%] h-[100%]';
|
|
1293
|
+
const CARD_STYLE_MAP = {
|
|
1294
|
+
normal: 'min-w-[100%] justify-center items-center my-7 col-span-12',
|
|
1295
|
+
mini: 'justify-center items-center mx-4 my-9 col-span-4',
|
|
1296
|
+
};
|
|
1297
|
+
const CARD_WIDTH_MAP = {
|
|
1298
|
+
normal: 'w-[1007px]',
|
|
1299
|
+
mini: 'w-[350px]',
|
|
1300
|
+
};
|
|
1301
|
+
const CarouselCard = JSX(({ button, className = '', description, title, version = 'normal' }) => {
|
|
1302
|
+
return (jsx("section", { className: `flex ${CARD_STYLE_MAP[version]}`, children: jsxs("div", { className: `relative ${CARD_WIDTH_MAP[version]}`, children: [jsxs("div", { className: `relative bg-white py-6 px-10 z-10
|
|
1303
|
+
border border-solid border-green-light ${className}`, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), button ? renderButton({ button, buttonClassName: 'mt-6 w-[158px]' }) : null] }), jsx("div", { className: `top-9 right-12 bg-green-dark ${BLOCK_CLASSES}` }), jsx("div", { className: `top-6 right-8 bg-green ${BLOCK_CLASSES}` }), jsx("div", { className: `top-3 right-4 bg-green-light ${BLOCK_CLASSES}` })] }) }));
|
|
1304
|
+
});
|
|
1305
|
+
|
|
1306
|
+
const CarouselTariffsCard = JSX(({ className = '', title, icon, isHighlighting, button, rows = [], ...rest }) => {
|
|
1307
|
+
const hitStyle = getHitStyle(Boolean(isHighlighting));
|
|
1308
|
+
const rowsNode = rows.map(renderCardInfo);
|
|
1309
|
+
const VISIBLE_ROWS_COUNT = 1;
|
|
1310
|
+
const [visibleRows, hiddenRows] = [
|
|
1311
|
+
rowsNode.slice(0, VISIBLE_ROWS_COUNT),
|
|
1312
|
+
rowsNode.slice(VISIBLE_ROWS_COUNT),
|
|
1313
|
+
];
|
|
1314
|
+
return (jsxs(BlockWrapper, { className: `font-sans bg-white p-[50px] p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${hitStyle} ${className}`, ...rest, children: [isHighlighting ? renderHitIcon() : null, icon?.src ? jsx(ImgInner, { className: "flex justify-center", image: icon }) : null, title ? (jsx(Heading, { className: "text-primary-text text-center pt-2", headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-4", ...button }) : null, rows?.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: rows.length > 1 ? renderFoldButton$1 : null })) : null] }));
|
|
1315
|
+
});
|
|
1316
|
+
const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-9 pt-[71px]' : 'mt-[70px] pt-9';
|
|
1317
|
+
const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16", asSVG: true })] }));
|
|
1318
|
+
const renderCardInfo = (cell) => (jsxs("div", { className: "py-5 border-b border-main-divider flex flex-col gap-1", children: [cell?.title ? (jsx("div", { className: "text-secondary-text text-m-light opacity-80", children: cell.title })) : null, cell?.description ? jsx("div", { className: "text-primary-text text-h6", children: cell.description }) : null] }));
|
|
1319
|
+
const renderHitIcon = () => {
|
|
1320
|
+
const POSITION_STYLE = 'absolute -top-7 -right-4';
|
|
1321
|
+
return (jsxs("div", { className: `h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)] ${POSITION_STYLE}`, children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "23", height: "22", asSVG: true }), jsx("div", { className: "text-center", children: "\u0425\u0438\u0442" })] }));
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1245
1324
|
const cardStyleMap$1 = {
|
|
1246
1325
|
black: 'bg-black',
|
|
1247
1326
|
white: 'bg-white',
|
|
@@ -1267,23 +1346,6 @@
|
|
|
1267
1346
|
}), jsx("div", { className: `${BLUR_BLOCK_CLASSES$2} left-0 bg-opacity-from-white` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$2} right-0 bg-opacity-to-white` })] }));
|
|
1268
1347
|
});
|
|
1269
1348
|
|
|
1270
|
-
const useTableArrowScrollControl = ({ columnsLength, colsLengthForScroll, }) => {
|
|
1271
|
-
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
1272
|
-
const onNextClick = useCallback(() => setActiveCardIndex((_) => _ + 1), []);
|
|
1273
|
-
const onPrevClick = useCallback(() => setActiveCardIndex((_) => _ - 1), []);
|
|
1274
|
-
const isScrollAvailable = columnsLength > colsLengthForScroll;
|
|
1275
|
-
const showNextButton = isScrollAvailable && columnsLength - activeCardIndex > colsLengthForScroll;
|
|
1276
|
-
const showPrevButton = Boolean(isScrollAvailable && activeCardIndex > 0);
|
|
1277
|
-
return {
|
|
1278
|
-
activeCardIndex,
|
|
1279
|
-
onNextClick,
|
|
1280
|
-
onPrevClick,
|
|
1281
|
-
isScrollAvailable,
|
|
1282
|
-
showNextButton,
|
|
1283
|
-
showPrevButton,
|
|
1284
|
-
};
|
|
1285
|
-
};
|
|
1286
|
-
|
|
1287
1349
|
const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
1288
1350
|
const BORDER_CLASSES$1 = 'border-main-stroke border-solid border';
|
|
1289
1351
|
const DIVIDER_CLASSES$1 = 'border-main-divider border border-t-0 border-x-0';
|
|
@@ -1303,16 +1365,6 @@
|
|
|
1303
1365
|
|
|
1304
1366
|
const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeCardIndex }) => (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader" }), jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$2, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header }, String(i)))) })] })));
|
|
1305
1367
|
|
|
1306
|
-
const TableArrowScrollControl = JSX(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
|
|
1307
|
-
return isScrollAvailable ? (jsx("div", { children: renderArrows({
|
|
1308
|
-
handler: [onPrevClick, onNextClick],
|
|
1309
|
-
isShown: [showPrevButton, showNextButton],
|
|
1310
|
-
btnClass: ['top-[108px]', 'top-11'],
|
|
1311
|
-
className: 'right-7',
|
|
1312
|
-
isDisabled: true,
|
|
1313
|
-
}) })) : null;
|
|
1314
|
-
});
|
|
1315
|
-
|
|
1316
1368
|
const TableCell = JSX(({ cell, isFirstRow, isLastRow, isFillGradient }) => {
|
|
1317
1369
|
const cellWrapperClasses = `w-80 box-border flex flex-col ${BORDER_CLASSES$1} ${!isLastRow ? 'border-y-0' : 'border-t-0 rounded-b-md'} ${isFillGradient ? GRADIENT : ''}`;
|
|
1318
1370
|
const cellClasses = `mx-7 h-full ${DIVIDER_CLASSES$1} ${isFillGradient && isFirstRow ? 'border-t' : ''} ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
|
|
@@ -1325,8 +1377,15 @@
|
|
|
1325
1377
|
const titleStyle = (isLastRow = false) => `text-s py-7 ${DIVIDER_CLASSES$1} ${FIRST_CELL_CLASSES$1} ${isLastRow ? 'border-b-0' : 'border-solid'}`;
|
|
1326
1378
|
const TableRow = JSX(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? jsx("div", { className: titleStyle(isLastRow), children: header.title }) : null, data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$2, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
|
|
1327
1379
|
|
|
1328
|
-
const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn,
|
|
1329
|
-
|
|
1380
|
+
const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn, activeCardIndex, controls, isScrollAvailable }) => {
|
|
1381
|
+
const { inc, dec, canDec, canInc } = controls;
|
|
1382
|
+
return (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), isScrollAvailable ? (jsx("div", { children: renderArrows({
|
|
1383
|
+
handler: [inc, dec],
|
|
1384
|
+
isShown: [canDec, canInc],
|
|
1385
|
+
btnClass: ['top-[108px]', 'top-11'],
|
|
1386
|
+
className: 'right-7',
|
|
1387
|
+
isDisabled: true,
|
|
1388
|
+
}) })) : null] }));
|
|
1330
1389
|
});
|
|
1331
1390
|
|
|
1332
1391
|
const ComparisonTableBody = JSX(({ columns, rowHeaders, isShowAllRow, visibleRowLength, isColoredFirstColumn }) => {
|
|
@@ -1338,12 +1397,12 @@
|
|
|
1338
1397
|
data: colData.map((col) => col?.[i] || [{}]),
|
|
1339
1398
|
}))
|
|
1340
1399
|
.slice(0, isShowAllRow ? rowHeaders.length : visibleRowLength);
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1343
|
-
|
|
1400
|
+
const isScrollAvailable = colData.length > COLS_LENGTH_FOR_SCROLL$1;
|
|
1401
|
+
const [activeIndex, controls] = useCarouselControl({
|
|
1402
|
+
itemsCount: colData.length,
|
|
1403
|
+
visibleItemCount: COLS_LENGTH_FOR_SCROLL$1,
|
|
1344
1404
|
});
|
|
1345
|
-
|
|
1346
|
-
return (jsxs("div", { children: [jsxs("div", { role: "table", children: [colHeaders?.length ? (jsx(ComparisonTableColumnHeaders, { colHeaders: colHeaders, activeCardIndex: activeCardIndex })) : null, rowData?.length ? (jsx(ComparisonTableRows, { rowData: rowData, isColoredFirstColumn: isColoredFirstColumn, ...tableArrowScrollProps })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
|
|
1405
|
+
return (jsxs("div", { children: [jsxs("div", { role: "table", children: [colHeaders?.length ? (jsx(ComparisonTableColumnHeaders, { colHeaders: colHeaders, activeCardIndex: activeIndex })) : null, rowData?.length ? (jsx(ComparisonTableRows, { rowData: rowData, isColoredFirstColumn: isColoredFirstColumn, activeCardIndex: activeIndex, controls: controls, isScrollAvailable: isScrollAvailable })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
|
|
1347
1406
|
});
|
|
1348
1407
|
|
|
1349
1408
|
const ComparisonTable = JSX(({ className = '', title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, ...rest }) => {
|
|
@@ -1620,7 +1679,10 @@
|
|
|
1620
1679
|
transparent: 'text-white',
|
|
1621
1680
|
};
|
|
1622
1681
|
const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
|
|
1623
|
-
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(ImgInner, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(ImgInner, { image: {
|
|
1682
|
+
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(ImgInner, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(ImgInner, { image: {
|
|
1683
|
+
icon: logo?.image?.icon || 'LogoIcon',
|
|
1684
|
+
iconVersion: ICON_VERSION_MAP[bgColor],
|
|
1685
|
+
}, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle$2(children, bgColor, logo?.title) : null] }));
|
|
1624
1686
|
});
|
|
1625
1687
|
const renderTitle$2 = (children, bgColor, title) => {
|
|
1626
1688
|
const text = children || title || 'Россельхозбанк';
|
|
@@ -1924,7 +1986,7 @@
|
|
|
1924
1986
|
'bg-white': 'black',
|
|
1925
1987
|
transparent: 'white',
|
|
1926
1988
|
};
|
|
1927
|
-
const HeaderSecondaryMenu = JSX(({ className, defaultLocation = '', bgColor = 'bg-white' }) => {
|
|
1989
|
+
const HeaderSecondaryMenu = JSX(({ className, defaultLocation = 'Москва', bgColor = 'bg-white' }) => {
|
|
1928
1990
|
const [city, getCity] = useGeolocation(defaultLocation);
|
|
1929
1991
|
return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 group ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(ImgInner, { image: { icon: 'LoupeIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0 pointer-events-none", asSVG: true }) }), jsx(HeaderSecondaryMenuButton, { className: `${LINKS_COLORS_MAP[bgColor]} group min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(ImgInner, { image: { icon: 'GridIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full bg-main-divider/20 rounded-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0", asSVG: true }) })] }));
|
|
1930
1992
|
});
|
|
@@ -2007,9 +2069,9 @@
|
|
|
2007
2069
|
'bg-white': 'bg-main-divider',
|
|
2008
2070
|
transparent: 'bg-main-divider opacity-30',
|
|
2009
2071
|
};
|
|
2010
|
-
const Header = JSX(({ bgColor = 'bg-white', className = '',
|
|
2072
|
+
const Header = JSX(({ bgColor = 'bg-white', className = '', showSubMenu = true, ...rest }) => {
|
|
2011
2073
|
const router = useRouter();
|
|
2012
|
-
const { topItems } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.page?.fallback);
|
|
2074
|
+
const { topItems, logo, defaultLocation } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.page?.fallback);
|
|
2013
2075
|
const activeTopItem = showSubMenu ? getActiveItem(topItems, router) : null;
|
|
2014
2076
|
const topMenu = topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, "aria-label": _.text, bgColor: bgColor, ..._ }, String(i))));
|
|
2015
2077
|
return (jsx(BlockWrapper, { tag: "header", className: `pt-6 px-20 ${bgColor} ${className} ${showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5'}`, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topMenu, jsx(HeaderSecondaryMenu, { className: "ml-auto", defaultLocation: defaultLocation, bgColor: bgColor })] }), jsx("div", { className: `mt-6 h-[1px] ${BORDER_COLORS[bgColor]}` }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, bgColor: bgColor })) : null] }) }));
|
|
@@ -2096,6 +2158,52 @@
|
|
|
2096
2158
|
return (jsx("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m-light ${btnClassName}`, children: title }, String(i)));
|
|
2097
2159
|
}
|
|
2098
2160
|
|
|
2161
|
+
const BorderVersionStyleMap = {
|
|
2162
|
+
primary: 'border-main-stroke',
|
|
2163
|
+
secondary: 'border-white/50',
|
|
2164
|
+
};
|
|
2165
|
+
|
|
2166
|
+
const getItemListFontSize = (colValue) => (colValue === 'single' ? 'text-h6' : 'text-l');
|
|
2167
|
+
const cardColumnsModeStyleMap = {
|
|
2168
|
+
double: 'flex gap-y-2 gap-x-10 flex-wrap',
|
|
2169
|
+
single: 'flex gap-y-2 flex-col',
|
|
2170
|
+
};
|
|
2171
|
+
const InvestmentGalleryCard = JSX(({ className = '', columnsMode = 'double', description, additionalDescription, image, cardList, title, version = 'primary', }) => {
|
|
2172
|
+
const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
2173
|
+
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
2174
|
+
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border
|
|
2175
|
+
p-9 min-w-[697px] min-h-[319px]
|
|
2176
|
+
${BorderVersionStyleMap[version]}
|
|
2177
|
+
${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex itens-center justify-between mb-4", children: [description ? jsx(Description, { className: "text-h6", description: description }) : null, additionalDescription ? (jsxs("div", { className: "text-m-light text-secondary-text", children: [" ", additionalDescription, " "] })) : null] }), cardList?.length ? (jsx("div", { className: `${cardColumnsModeStyleMap[columnsMode]}`, role: "list", children: renderCardList(cardList, columnsMode) })) : null] }) }) }));
|
|
2178
|
+
});
|
|
2179
|
+
const renderCardList = (cardList, columnsMode) => cardList.map((item, i) => (jsxs("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: [item?.parameter ? (jsx("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDesccription ? (jsx("span", { className: "text-m-light text-secondary-text", children: item.parameterDesccription })) : null] }, String(i))));
|
|
2180
|
+
|
|
2181
|
+
const BLUR_BLOCK_CLASSES$1 = 'absolute top-0 bottom-0 w-[84px]';
|
|
2182
|
+
const CARD_FULL_VIEW_COUNT$1 = 1;
|
|
2183
|
+
const InvestmentGallery = JSX(({ cards = [], className = '', title, version = 'primary', ...rest }) => {
|
|
2184
|
+
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
2185
|
+
const cardWidth = 525;
|
|
2186
|
+
return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-9", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * cardWidth}px)` }, role: "list", children: cards?.length ? cards.map(renderInvestmentGalleryCard(className, version)) : null }), renderNavButtons$1({
|
|
2187
|
+
cardsCount: cards.length,
|
|
2188
|
+
activeCardIndex,
|
|
2189
|
+
setActiveCardIndex,
|
|
2190
|
+
})] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
|
|
2191
|
+
});
|
|
2192
|
+
const renderInvestmentGalleryCard = (className, version) => (card, i) => jsx(InvestmentGalleryCard, { className: className, version: version, ...card }, String(i));
|
|
2193
|
+
const renderNavButtons$1 = ({ cardsCount, activeCardIndex, setActiveCardIndex }) => {
|
|
2194
|
+
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT$1;
|
|
2195
|
+
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT$1;
|
|
2196
|
+
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
2197
|
+
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
2198
|
+
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
2199
|
+
return (jsx("div", { children: renderArrows({
|
|
2200
|
+
handler: [handlePrevClick, handleNextClick],
|
|
2201
|
+
isShown: [showPrevButton, showNextButton],
|
|
2202
|
+
btnClass: ['left-8', 'right-8'],
|
|
2203
|
+
className: 'top-1/2 mt-3',
|
|
2204
|
+
}) }));
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2099
2207
|
function joinList(sep) {
|
|
2100
2208
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
2101
2209
|
}
|
|
@@ -2200,7 +2308,7 @@
|
|
|
2200
2308
|
return (jsxs(BlockWrapper, { className: `flex justify-between font-sans p-9 box-border relative min-h-[320px]
|
|
2201
2309
|
${getTileMinHeight(className)}
|
|
2202
2310
|
${VersionStyleMap[version]}
|
|
2203
|
-
${className}`, ...rest, children: [jsxs(BaseTile, { className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap
|
|
2311
|
+
${className}`, ...rest, children: [jsxs(BaseTile, { className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap mb-6 w-full
|
|
2204
2312
|
${textColorClass} ${AlignText[alignTitle]}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { buttons: buttonsWithClass, className: "flex gap-4", ...rest })) : null, children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr }) })) : null, renderList$1(version, items)] })] }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
|
|
2205
2313
|
});
|
|
2206
2314
|
const renderList$1 = (version, items) => {
|
|
@@ -2632,7 +2740,7 @@
|
|
|
2632
2740
|
|
|
2633
2741
|
const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', onClick }) => {
|
|
2634
2742
|
const STATE_STYLE = 'hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none';
|
|
2635
|
-
const DIMENSIONS_STYLE = 'flex justify-center w-full px-0 py-5
|
|
2743
|
+
const DIMENSIONS_STYLE = 'flex justify-center w-full px-0 py-5';
|
|
2636
2744
|
return (jsxs("button", { className: [
|
|
2637
2745
|
'border border-transparent bg-primary-main font-sans text-white cursor-pointer',
|
|
2638
2746
|
STATE_STYLE,
|
|
@@ -2764,11 +2872,6 @@
|
|
|
2764
2872
|
: null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { className: breadcrumbsStyleMap[version], ...breadcrumb }, String(i))))) })) : null, jsx(ProductBlockInner, { version: version, ...rest })] }));
|
|
2765
2873
|
});
|
|
2766
2874
|
|
|
2767
|
-
const BorderVersionStyleMap = {
|
|
2768
|
-
primary: 'border-main-stroke',
|
|
2769
|
-
secondary: 'border-white/50',
|
|
2770
|
-
};
|
|
2771
|
-
|
|
2772
2875
|
const productBlockStyleMap = {
|
|
2773
2876
|
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
2774
2877
|
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
@@ -2852,30 +2955,30 @@
|
|
|
2852
2955
|
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
2853
2956
|
}
|
|
2854
2957
|
|
|
2855
|
-
const RecommendationCard = JSX(({ className = '', title, description, items, image, version, socialMedia }) => {
|
|
2958
|
+
const RecommendationCard = JSX(({ className = '', title, description, items, image, version, socialMedia, button }) => {
|
|
2856
2959
|
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
2857
2960
|
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
2858
|
-
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx(Description, { className: "mb-2", description: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null] }) }) }));
|
|
2961
|
+
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx(Description, { className: "mb-2", description: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null, button?.text ? (jsx("div", { className: "pt-2", children: renderButton({ button, buttonClassName: 'mt-16' }) })) : null] }) }) }));
|
|
2859
2962
|
});
|
|
2860
2963
|
|
|
2861
|
-
const BLUR_BLOCK_CLASSES
|
|
2862
|
-
const CARD_FULL_VIEW_COUNT
|
|
2964
|
+
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
2965
|
+
const CARD_FULL_VIEW_COUNT = 2;
|
|
2863
2966
|
const CARD_SHIFT = 525;
|
|
2864
2967
|
const Recommendation = JSX(({ recommendations = [], className = '', title, version = 'primary', ...rest }) => {
|
|
2865
2968
|
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
2866
2969
|
return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-6", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
|
|
2867
2970
|
? recommendations.map((card, i) => (jsx(RecommendationCard, { version: version, className: BorderVersionStyleMap[version], ...card }, String(i))))
|
|
2868
|
-
: null }), renderNavButtons
|
|
2971
|
+
: null }), renderNavButtons({
|
|
2869
2972
|
cardsCount: recommendations.length,
|
|
2870
2973
|
activeCardIndex,
|
|
2871
2974
|
setActiveCardIndex,
|
|
2872
|
-
})] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES
|
|
2975
|
+
})] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
|
|
2873
2976
|
});
|
|
2874
|
-
const renderNavButtons
|
|
2977
|
+
const renderNavButtons = ({ cardsCount, activeCardIndex, setActiveCardIndex, }) => {
|
|
2875
2978
|
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
2876
2979
|
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
2877
|
-
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT
|
|
2878
|
-
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT
|
|
2980
|
+
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
2981
|
+
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
2879
2982
|
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
2880
2983
|
return (jsx("div", { children: renderArrows({
|
|
2881
2984
|
handler: [handlePrevClick, handleNextClick],
|
|
@@ -2885,6 +2988,15 @@
|
|
|
2885
2988
|
}) }));
|
|
2886
2989
|
};
|
|
2887
2990
|
|
|
2991
|
+
const RollupItem = JSX(({ className = '', label = 'Развернуть', isExpanded, isFoldButtonOnTop = true, version = 'primary', children, }) => (jsx("div", { className: `border-b border-solid border-main-divider w-full ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx("div", { className: "box-border", children: jsx(FoldableSection, { className: `grid grid-cols-12 gap-1 border-box`, isUnfolded: isUnfolded, children: children }) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle, label, version }) }) })));
|
|
2992
|
+
RollupItem.childrenTypes = [];
|
|
2993
|
+
const renderFoldButton = ({ isUnfolded, onToggle, label, version }) => {
|
|
2994
|
+
const icons = ['PlusIcon', 'MinusIcon'];
|
|
2995
|
+
const labels = label ? [label, label] : ['Развернуть', 'Скрыть'];
|
|
2996
|
+
return version === 'primary' ? (jsx(FoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle })) : (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
|
|
2997
|
+
};
|
|
2998
|
+
const FoldButton = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer", onClick: onClick, children: [jsx("span", { className: "text-xl font-medium pr-2.5", children: label }), icon ? jsx(ImgInner, { image: getIconWithVersion({ icon }), width: "24", height: "24", asSVG: true }) : null] })));
|
|
2999
|
+
|
|
2888
3000
|
const SAFEBOXES_URL = '/api/v1/safeboxes';
|
|
2889
3001
|
const EMPTY_VALUE = [];
|
|
2890
3002
|
function useSafeBoxes(regionCode) {
|
|
@@ -3329,14 +3441,14 @@
|
|
|
3329
3441
|
data: colData.map((col) => col?.[i] || []),
|
|
3330
3442
|
}));
|
|
3331
3443
|
const columnsLength = colData.length;
|
|
3332
|
-
const
|
|
3333
|
-
|
|
3334
|
-
|
|
3444
|
+
const [activeIndex, controls] = useCarouselControl({
|
|
3445
|
+
itemsCount: colData.length,
|
|
3446
|
+
visibleItemCount: COLS_LENGTH_FOR_SCROLL,
|
|
3335
3447
|
});
|
|
3336
|
-
const
|
|
3337
|
-
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeCardIndex:
|
|
3448
|
+
const isScrollAvailable = colData.length > COLS_LENGTH_FOR_SCROLL;
|
|
3449
|
+
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeCardIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
3338
3450
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
3339
|
-
return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, {
|
|
3451
|
+
return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, { controls: controls, isScrollAvailable: isScrollAvailable, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(Wrapper, { controls: controls, isScrollAvailable: isScrollAvailable, children: rows }))] }));
|
|
3340
3452
|
});
|
|
3341
3453
|
function renderTitle({ title, description }) {
|
|
3342
3454
|
return title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
|
|
@@ -3344,9 +3456,14 @@
|
|
|
3344
3456
|
function renderDescription(description) {
|
|
3345
3457
|
return description ? jsx("div", { className: "mb-9 text-center text-l", children: description }) : null;
|
|
3346
3458
|
}
|
|
3347
|
-
const Wrapper = JSX(({ children,
|
|
3348
|
-
const {
|
|
3349
|
-
return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children,
|
|
3459
|
+
const Wrapper = JSX(({ children, controls, isScrollAvailable }) => {
|
|
3460
|
+
const { inc, dec, canDec, canInc } = controls;
|
|
3461
|
+
return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children, isScrollAvailable ? (jsx("div", { children: renderArrows({
|
|
3462
|
+
handler: [inc, dec],
|
|
3463
|
+
isShown: [canDec, canInc],
|
|
3464
|
+
btnClass: ['top-[108px]', 'top-11'],
|
|
3465
|
+
className: 'right-7',
|
|
3466
|
+
}) })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
|
|
3350
3467
|
});
|
|
3351
3468
|
|
|
3352
3469
|
const textBlockStyleMaps = {
|
|
@@ -3414,7 +3531,7 @@
|
|
|
3414
3531
|
primary: 'bg-white',
|
|
3415
3532
|
secondary: 'bg-primary-main',
|
|
3416
3533
|
};
|
|
3417
|
-
const VerticalLayout = JSX(({ className = '', children, gap = '', align = 'left', version = '
|
|
3534
|
+
const VerticalLayout = JSX(({ className = '', children, gap = '', align = 'left', version = 'transparent', ...rest }) => (jsx(BlockWrapper, { className: [
|
|
3418
3535
|
'flex flex-col',
|
|
3419
3536
|
gapStyleMap[gap],
|
|
3420
3537
|
alignStyle[align],
|
|
@@ -3425,47 +3542,6 @@
|
|
|
3425
3542
|
exclude: ['VerticalLayout'],
|
|
3426
3543
|
};
|
|
3427
3544
|
|
|
3428
|
-
const getItemListFontSize = (colValue) => (colValue === 'single' ? 'text-h6' : 'text-l');
|
|
3429
|
-
const cardColumnsModeStyleMap = {
|
|
3430
|
-
double: 'flex gap-y-2 gap-x-10 flex-wrap',
|
|
3431
|
-
single: 'flex gap-y-2 flex-col',
|
|
3432
|
-
};
|
|
3433
|
-
const InvestmentGalleryCard = JSX(({ className = '', columnsMode = 'double', description, additionalDescription, image, cardList, title, version = 'primary', }) => {
|
|
3434
|
-
const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
3435
|
-
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
3436
|
-
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border
|
|
3437
|
-
p-9 min-w-[697px] min-h-[319px]
|
|
3438
|
-
${BorderVersionStyleMap[version]}
|
|
3439
|
-
${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex itens-center justify-between mb-4", children: [description ? jsx(Description, { className: "text-h6", description: description }) : null, additionalDescription ? (jsxs("div", { className: "text-m-light text-secondary-text", children: [" ", additionalDescription, " "] })) : null] }), cardList?.length ? (jsx("div", { className: `${cardColumnsModeStyleMap[columnsMode]}`, role: "list", children: renderCardList(cardList, columnsMode) })) : null] }) }) }));
|
|
3440
|
-
});
|
|
3441
|
-
const renderCardList = (cardList, columnsMode) => cardList.map((item, i) => (jsxs("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: [item?.parameter ? (jsx("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDesccription ? (jsx("span", { className: "text-m-light text-secondary-text", children: item.parameterDesccription })) : null] }, String(i))));
|
|
3442
|
-
|
|
3443
|
-
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
3444
|
-
const CARD_FULL_VIEW_COUNT = 1;
|
|
3445
|
-
const InvestmentGallery = JSX(({ cards = [], className = '', title, version = 'primary', ...rest }) => {
|
|
3446
|
-
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
3447
|
-
const cardWidth = 525;
|
|
3448
|
-
return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-9", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * cardWidth}px)` }, role: "list", children: cards?.length ? cards.map(renderInvestmentGalleryCard(className, version)) : null }), renderNavButtons({
|
|
3449
|
-
cardsCount: cards.length,
|
|
3450
|
-
activeCardIndex,
|
|
3451
|
-
setActiveCardIndex,
|
|
3452
|
-
})] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
|
|
3453
|
-
});
|
|
3454
|
-
const renderInvestmentGalleryCard = (className, version) => (card, i) => jsx(InvestmentGalleryCard, { className: className, version: version, ...card }, String(i));
|
|
3455
|
-
const renderNavButtons = ({ cardsCount, activeCardIndex, setActiveCardIndex }) => {
|
|
3456
|
-
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
3457
|
-
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
3458
|
-
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
3459
|
-
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
3460
|
-
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
3461
|
-
return (jsx("div", { children: renderArrows({
|
|
3462
|
-
handler: [handlePrevClick, handleNextClick],
|
|
3463
|
-
isShown: [showPrevButton, showNextButton],
|
|
3464
|
-
btnClass: ['left-8', 'right-8'],
|
|
3465
|
-
className: 'top-1/2 mt-3',
|
|
3466
|
-
}) }));
|
|
3467
|
-
};
|
|
3468
|
-
|
|
3469
3545
|
const Blocks = {
|
|
3470
3546
|
Accordion,
|
|
3471
3547
|
AccordionItem,
|
|
@@ -3474,10 +3550,13 @@
|
|
|
3474
3550
|
Bonus,
|
|
3475
3551
|
BonusBenefitsBlock,
|
|
3476
3552
|
CardTransfer,
|
|
3477
|
-
ComparisonTable,
|
|
3478
3553
|
Calculator,
|
|
3554
|
+
Carousel,
|
|
3555
|
+
CarouselCard,
|
|
3556
|
+
CarouselTariffsCard,
|
|
3479
3557
|
Catalog,
|
|
3480
3558
|
ContactsBlock,
|
|
3559
|
+
ComparisonTable,
|
|
3481
3560
|
ErrorBlock,
|
|
3482
3561
|
ExchangeRateTile,
|
|
3483
3562
|
Footer,
|
|
@@ -3502,6 +3581,7 @@
|
|
|
3502
3581
|
OtherProducts,
|
|
3503
3582
|
OtherProductsItem,
|
|
3504
3583
|
Recommendation,
|
|
3584
|
+
RollupItem,
|
|
3505
3585
|
SafeDepositRental,
|
|
3506
3586
|
StepsBlock,
|
|
3507
3587
|
Tabs,
|
|
@@ -3616,7 +3696,7 @@
|
|
|
3616
3696
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
3617
3697
|
}
|
|
3618
3698
|
|
|
3619
|
-
const packageVersion = "0.6.
|
|
3699
|
+
const packageVersion = "0.6.30";
|
|
3620
3700
|
|
|
3621
3701
|
exports.Blocks = Blocks;
|
|
3622
3702
|
exports.ContentPage = ContentPage;
|