@redneckz/wildless-cms-uni-blocks 0.2.114 → 0.3.0
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 +395 -323
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +2 -2
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +2 -2
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/dist/components/Accordion/AccordionBlocks.js +8 -0
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +30 -18
- package/dist/components/Accordion/AccordionItem.js +1 -1
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +2 -6
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +6 -11
- package/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/dist/components/BaseTile/{getTitleSizeByClassName.js → getTileHeadingType.js} +7 -7
- package/dist/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/dist/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/dist/components/BaseTile/getTileMinHeight.js +17 -0
- package/dist/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/dist/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/dist/components/BaseTile/getTileRightPadding.js +17 -0
- package/dist/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/dist/components/Blocks.mobile.d.ts +1 -0
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +3 -3
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -4
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/dist/components/ContentPage/isBlockInRegistry.js +7 -0
- package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/dist/components/ContentPage/normalizeBlock.d.ts +8 -0
- package/dist/components/ContentPage/normalizeBlock.js +9 -0
- package/dist/components/ContentPage/normalizeBlock.js.map +1 -0
- package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
- package/dist/components/ContentPage/normalizeBlock.mobile.js +8 -0
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -0
- package/dist/components/ContentPage/normalizePage.d.ts +2 -0
- package/dist/components/ContentPage/normalizePage.js +25 -0
- package/dist/components/ContentPage/normalizePage.js.map +1 -0
- package/dist/components/ContentPage/normalizePage.mobile.d.ts +2 -0
- package/{mobile/dist/components/ContentPage/toMobilePage.js → dist/components/ContentPage/normalizePage.mobile.js} +10 -17
- package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/dist/components/Footer/MediaButton.js +2 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +19 -8
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +2 -4
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +5 -6
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +8 -3
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Gallery/constants.js +2 -2
- package/dist/components/Gallery/constants.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.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/Headline.mobile.js +3 -3
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +7 -3
- package/dist/components/LinkDocs/LinkDocs.js +6 -25
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.d.ts +5 -0
- package/dist/components/LinkDocs/LinkDocs.mobile.js +11 -0
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +12 -0
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/dist/components/LinkDocs/LinkDocsList.js +9 -0
- package/dist/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/dist/components/LinkDocs/LinkDocsListItem.js +7 -0
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.d.ts +2 -0
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +7 -0
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +22 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +11 -0
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/dist/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/dist/components/LinkDocs/linkDocsContentExample.js +27 -0
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +8 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -3
- package/dist/components/PictureText/PictureText.js +5 -5
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +4 -2
- package/dist/components/Placeholder/Placeholder.mobile.d.ts +6 -0
- package/dist/components/Placeholder/Placeholder.mobile.js +15 -0
- package/dist/components/Placeholder/Placeholder.mobile.js.map +1 -0
- package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -11
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -3
- package/dist/components/ProductBlock/ProductBlockInner.js +7 -3
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js +3 -2
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +4 -4
- package/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +4 -4
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +2 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/dist/components/ProductTile/ProductTile.js +14 -4
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/dist/components/PromoTile/PromoTile.js +12 -3
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +2 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +3 -3
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +4 -7
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/dist/components/Tile/Tile.js +10 -27
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +9 -2
- package/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/dist/content-page-repository/ContentPageRepository.js +0 -10
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/icons/IconName.d.ts +82 -0
- package/dist/icons/IconName.js +78 -0
- package/dist/icons/IconName.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/model/ButtonVersion.d.ts +1 -1
- package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/dist/services/sitemap/checkIsHrefSameOrigin.js +6 -0
- package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/dist/services/sitemap/isTopItemActive.js +4 -1
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/setup-fixture.d.ts +3 -0
- package/dist/setup-fixture.js +72 -0
- package/dist/setup-fixture.js.map +1 -0
- package/dist/types.d.ts +5 -5
- package/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/dist/ui-kit/BlockItem/BlockItem.js +9 -10
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/dist/ui-kit/Button/Button.d.ts +0 -2
- package/dist/ui-kit/Button/Button.js +24 -13
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.d.ts +0 -2
- package/dist/ui-kit/Button/Button.mobile.js +6 -8
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/dist/ui-kit/Button/ButtonInner.js +16 -0
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -0
- package/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/dist/ui-kit/Button/ButtonSection.js +18 -0
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -0
- package/dist/ui-kit/Description/Description.d.ts +2 -0
- package/dist/ui-kit/Description/Description.js +9 -0
- package/dist/ui-kit/Description/Description.js.map +1 -0
- package/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/dist/ui-kit/Description/DescriptionProps.js +2 -0
- package/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/dist/ui-kit/Heading/Heading.d.ts +5 -0
- package/dist/ui-kit/Heading/Heading.js +21 -0
- package/dist/ui-kit/Heading/Heading.js.map +1 -0
- package/dist/ui-kit/Heading/Heading.mobile.d.ts +5 -0
- package/dist/ui-kit/Heading/Heading.mobile.js +21 -0
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -0
- package/dist/ui-kit/Heading/HeadingContent.d.ts +15 -0
- package/dist/ui-kit/Heading/HeadingContent.js +2 -0
- package/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/dist/ui-kit/Icon/Icon.js +6 -2
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +6 -148
- package/dist/ui-kit/Icon/IconProps.js +0 -76
- package/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/{mobile/dist/ui-kit → dist/ui-kit/Img}/Img.d.ts +1 -1
- package/dist/ui-kit/{Img.js → Img/Img.js} +0 -0
- package/dist/ui-kit/Img/Img.js.map +1 -0
- package/dist/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
- package/dist/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -0
- package/dist/ui-kit/Img/ImgProps.d.ts +7 -0
- package/dist/ui-kit/{Title/TitleProps.js → Img/ImgProps.js} +1 -1
- package/dist/ui-kit/Img/ImgProps.js.map +1 -0
- package/dist/ui-kit/List/List.d.ts +2 -0
- package/dist/ui-kit/List/List.js +12 -0
- package/dist/ui-kit/List/List.js.map +1 -0
- package/dist/ui-kit/List/ListContent.d.ts +4 -0
- package/dist/ui-kit/List/ListContent.js +2 -0
- package/dist/ui-kit/List/ListContent.js.map +1 -0
- package/dist/ui-kit/List/ListItem.d.ts +11 -0
- package/dist/ui-kit/List/ListItem.js +23 -0
- package/dist/ui-kit/List/ListItem.js.map +1 -0
- package/dist/ui-kit/List/ListProps.d.ts +14 -0
- package/{mobile/dist/ui-kit/Title/TitleProps.js → dist/ui-kit/List/ListProps.js} +1 -1
- package/dist/ui-kit/List/ListProps.js.map +1 -0
- package/dist/ui-kit/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +32 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +28 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +8 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +11 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/dist/ui-kit/SwipeListControl/constants.js +12 -0
- package/dist/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +13 -0
- package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +18 -0
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +27 -0
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +2 -2
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +2 -2
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/lib/components/Accordion/AccordionBlocks.js +8 -0
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +30 -18
- package/lib/components/Accordion/AccordionItem.js +1 -1
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +2 -6
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +6 -11
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/lib/components/BaseTile/{getTitleSizeByClassName.js → getTileHeadingType.js} +5 -5
- package/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/lib/components/BaseTile/getTileMinHeight.js +14 -0
- package/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/lib/components/BaseTile/getTileRightPadding.js +14 -0
- package/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/lib/components/Blocks.mobile.d.ts +1 -0
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +3 -3
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -4
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/lib/components/ContentPage/isBlockInRegistry.js +4 -0
- package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/lib/components/ContentPage/normalizeBlock.d.ts +8 -0
- package/lib/components/ContentPage/normalizeBlock.js +6 -0
- package/lib/components/ContentPage/normalizeBlock.js.map +1 -0
- package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
- package/lib/components/ContentPage/normalizeBlock.mobile.js +5 -0
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -0
- package/lib/components/ContentPage/normalizePage.d.ts +2 -0
- package/lib/components/ContentPage/normalizePage.js +22 -0
- package/lib/components/ContentPage/normalizePage.js.map +1 -0
- package/lib/components/ContentPage/normalizePage.mobile.d.ts +2 -0
- package/{mobile/lib/components/ContentPage/toMobilePage.js → lib/components/ContentPage/normalizePage.mobile.js} +8 -15
- package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/lib/components/Footer/MediaButton.js +2 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Gallery/Gallery.fixture.d.ts +2 -0
- package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +5 -0
- package/lib/components/Gallery/Gallery.mobile.js +19 -8
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +2 -4
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +6 -7
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +8 -3
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Gallery/constants.js +2 -2
- package/lib/components/Gallery/constants.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +0 -4
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +3 -3
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +7 -3
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +2 -7
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +6 -0
- package/lib/components/LinkDocs/LinkDocs.js +6 -25
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.d.ts +5 -0
- package/lib/components/LinkDocs/LinkDocs.mobile.js +9 -0
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +10 -0
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/lib/components/LinkDocs/LinkDocsList.js +7 -0
- package/lib/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/lib/components/LinkDocs/LinkDocsListItem.js +5 -0
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.d.ts +2 -0
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +5 -0
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +20 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +9 -0
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/lib/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/lib/components/LinkDocs/linkDocsContentExample.js +25 -0
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +2 -0
- package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +8 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -3
- package/lib/components/PictureText/PictureText.js +5 -5
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +4 -2
- package/lib/components/Placeholder/Placeholder.mobile.d.ts +6 -0
- package/lib/components/Placeholder/Placeholder.mobile.js +13 -0
- package/lib/components/Placeholder/Placeholder.mobile.js.map +1 -0
- package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -11
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -3
- package/lib/components/ProductBlock/ProductBlockInner.js +7 -3
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.d.ts +2 -3
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +7 -3
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js +3 -2
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +4 -4
- package/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +4 -4
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +2 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -0
- package/lib/components/ProductTile/ProductTile.js +14 -4
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/lib/components/PromoTile/PromoTile.js +12 -3
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +3 -3
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +4 -7
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/lib/components/Tile/Tile.fixture.d.ts +2 -0
- package/lib/components/Tile/Tile.js +11 -28
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +9 -2
- package/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/lib/content-page-repository/ContentPageRepository.js +0 -10
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/icons/IconName.d.ts +82 -0
- package/lib/icons/IconName.js +76 -0
- package/lib/icons/IconName.js.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/model/ButtonVersion.d.ts +1 -1
- package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/lib/services/sitemap/checkIsHrefSameOrigin.js +3 -0
- package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/lib/services/sitemap/isTopItemActive.js +4 -1
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/setup-fixture.js +70 -0
- package/lib/setup-fixture.js.map +1 -0
- package/lib/types.d.ts +5 -5
- package/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/lib/ui-kit/BlockItem/BlockItem.js +9 -10
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/lib/ui-kit/Button/Button.d.ts +0 -2
- package/lib/ui-kit/Button/Button.js +23 -12
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.d.ts +0 -2
- package/lib/ui-kit/Button/Button.mobile.js +6 -8
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/lib/ui-kit/Button/ButtonInner.js +14 -0
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -0
- package/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/lib/ui-kit/Button/ButtonSection.js +16 -0
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -0
- package/lib/ui-kit/Description/Description.d.ts +2 -0
- package/lib/ui-kit/Description/Description.js +7 -0
- package/lib/ui-kit/Description/Description.js.map +1 -0
- package/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/lib/ui-kit/Description/DescriptionProps.js +2 -0
- package/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/lib/ui-kit/Heading/Heading.d.ts +5 -0
- package/lib/ui-kit/Heading/Heading.fixture.d.ts +4 -0
- package/lib/ui-kit/Heading/Heading.fixture.mobile.d.ts +4 -0
- package/lib/ui-kit/Heading/Heading.js +19 -0
- package/lib/ui-kit/Heading/Heading.js.map +1 -0
- package/lib/ui-kit/Heading/Heading.mobile.d.ts +5 -0
- package/lib/ui-kit/Heading/Heading.mobile.js +19 -0
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -0
- package/lib/ui-kit/Heading/HeadingContent.d.ts +15 -0
- package/lib/ui-kit/Heading/HeadingContent.js +2 -0
- package/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +2 -1
- package/lib/ui-kit/Icon/Icon.js +6 -2
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +6 -148
- package/lib/ui-kit/Icon/IconProps.js +1 -75
- package/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/lib/ui-kit/{Img.d.ts → Img/Img.d.ts} +1 -1
- package/lib/ui-kit/{Img.js → Img/Img.js} +0 -0
- package/lib/ui-kit/Img/Img.js.map +1 -0
- package/lib/ui-kit/{Img.mobile.d.ts → Img/Img.mobile.d.ts} +2 -5
- package/lib/ui-kit/{Img.mobile.js → Img/Img.mobile.js} +7 -4
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -0
- package/lib/ui-kit/Img/ImgProps.d.ts +7 -0
- package/lib/ui-kit/Img/ImgProps.js +2 -0
- package/lib/ui-kit/Img/ImgProps.js.map +1 -0
- package/lib/ui-kit/List/List.d.ts +2 -0
- package/lib/ui-kit/List/List.js +10 -0
- package/lib/ui-kit/List/List.js.map +1 -0
- package/lib/ui-kit/List/ListContent.d.ts +4 -0
- package/lib/ui-kit/List/ListContent.js +2 -0
- package/lib/ui-kit/List/ListContent.js.map +1 -0
- package/lib/ui-kit/List/ListItem.d.ts +11 -0
- package/lib/ui-kit/List/ListItem.js +21 -0
- package/lib/ui-kit/List/ListItem.js.map +1 -0
- package/lib/ui-kit/List/ListProps.d.ts +14 -0
- package/lib/ui-kit/List/ListProps.js +2 -0
- package/lib/ui-kit/List/ListProps.js.map +1 -0
- package/lib/ui-kit/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +4 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +30 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +26 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +6 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +9 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/lib/ui-kit/SwipeListControl/constants.js +10 -0
- package/lib/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +10 -0
- package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +7 -0
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +15 -0
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +24 -0
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +472 -212
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +2 -2
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +8 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +30 -18
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +2 -11
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +6 -11
- package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/dist/components/BaseTile/{getTitleSizeByClassName.js → getTileHeadingType.js} +7 -7
- package/mobile/dist/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/mobile/dist/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/mobile/dist/components/BaseTile/getTileMinHeight.js +17 -0
- package/mobile/dist/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/mobile/dist/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/mobile/dist/components/BaseTile/getTileRightPadding.js +17 -0
- package/mobile/dist/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/mobile/dist/components/Blocks.d.ts +1 -0
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +3 -3
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -4
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js +7 -0
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +2 -0
- package/mobile/dist/components/ContentPage/normalizeBlock.js +8 -0
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -0
- package/mobile/dist/components/ContentPage/normalizePage.d.ts +2 -0
- package/{dist/components/ContentPage/toMobilePage.js → mobile/dist/components/ContentPage/normalizePage.js} +10 -17
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/mobile/dist/components/Footer/MediaButton.js +2 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +19 -8
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -4
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +5 -6
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +8 -3
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Gallery/constants.js +2 -2
- package/mobile/dist/components/Gallery/constants.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +3 -3
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +7 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js +5 -36
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +12 -0
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/mobile/dist/components/LinkDocs/LinkDocsList.js +9 -0
- package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +7 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +22 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +11 -0
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +27 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -3
- package/mobile/dist/components/PictureText/PictureText.js +5 -5
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +4 -2
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -11
- package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -3
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +7 -3
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +3 -2
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +4 -4
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js +14 -4
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/mobile/dist/components/PromoTile/PromoTile.js +12 -3
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +3 -3
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +4 -7
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/mobile/dist/components/Tile/Tile.js +10 -27
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +9 -2
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/mobile/dist/content-page-repository/ContentPageRepository.js +0 -10
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +82 -0
- package/mobile/dist/icons/IconName.js +78 -0
- package/mobile/dist/icons/IconName.js.map +1 -0
- package/mobile/dist/index.d.ts +1 -1
- package/mobile/dist/index.js +3 -3
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/model/ButtonVersion.d.ts +1 -1
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +6 -0
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/mobile/dist/services/sitemap/isTopItemActive.js +4 -1
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/setup-fixture.d.ts +3 -0
- package/mobile/dist/setup-fixture.js +72 -0
- package/mobile/dist/setup-fixture.js.map +1 -0
- package/mobile/dist/types.d.ts +5 -5
- package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +9 -10
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Button/Button.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/Button.js +6 -8
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -0
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/mobile/dist/ui-kit/Button/ButtonSection.js +18 -0
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -0
- package/mobile/dist/ui-kit/Description/Description.d.ts +2 -0
- package/mobile/dist/ui-kit/Description/Description.js +9 -0
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -0
- package/mobile/dist/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/mobile/dist/ui-kit/Description/DescriptionProps.js +2 -0
- package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/mobile/dist/ui-kit/Heading/Heading.d.ts +5 -0
- package/mobile/dist/ui-kit/Heading/Heading.js +21 -0
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -0
- package/mobile/dist/ui-kit/Heading/HeadingContent.d.ts +15 -0
- package/mobile/dist/ui-kit/Heading/HeadingContent.js +2 -0
- package/mobile/dist/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/Icon.js +6 -2
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +6 -148
- package/mobile/dist/ui-kit/Icon/IconProps.js +0 -76
- package/mobile/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/{dist/ui-kit → mobile/dist/ui-kit/Img}/Img.d.ts +2 -5
- package/mobile/dist/ui-kit/{Img.js → Img/Img.js} +7 -4
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -0
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +7 -0
- package/mobile/dist/ui-kit/Img/ImgProps.js +2 -0
- package/mobile/dist/ui-kit/Img/ImgProps.js.map +1 -0
- package/mobile/dist/ui-kit/List/List.d.ts +2 -0
- package/mobile/dist/ui-kit/List/List.js +12 -0
- package/mobile/dist/ui-kit/List/List.js.map +1 -0
- package/mobile/dist/ui-kit/List/ListContent.d.ts +4 -0
- package/mobile/dist/ui-kit/List/ListContent.js +2 -0
- package/mobile/dist/ui-kit/List/ListContent.js.map +1 -0
- package/mobile/dist/ui-kit/List/ListItem.d.ts +11 -0
- package/mobile/dist/ui-kit/List/ListItem.js +23 -0
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -0
- package/mobile/dist/ui-kit/List/ListProps.d.ts +14 -0
- package/mobile/dist/ui-kit/List/ListProps.js +2 -0
- package/mobile/dist/ui-kit/List/ListProps.js.map +1 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +32 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +28 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +8 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +11 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/mobile/dist/ui-kit/SwipeListControl/constants.js +12 -0
- package/mobile/dist/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +13 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +18 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +27 -0
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +2 -2
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +4 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +8 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +30 -18
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +2 -11
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +6 -11
- package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/lib/components/BaseTile/{getTitleSizeByClassName.js → getTileHeadingType.js} +5 -5
- package/mobile/lib/components/BaseTile/getTileHeadingType.js.map +1 -0
- package/mobile/lib/components/BaseTile/getTileMinHeight.d.ts +1 -0
- package/mobile/lib/components/BaseTile/getTileMinHeight.js +14 -0
- package/mobile/lib/components/BaseTile/getTileMinHeight.js.map +1 -0
- package/mobile/lib/components/BaseTile/getTileRightPadding.d.ts +1 -0
- package/mobile/lib/components/BaseTile/getTileRightPadding.js +14 -0
- package/mobile/lib/components/BaseTile/getTileRightPadding.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/mobile/lib/components/Blocks.d.ts +1 -0
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +3 -3
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -4
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -0
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js +4 -0
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -0
- package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +2 -0
- package/mobile/lib/components/ContentPage/normalizeBlock.js +5 -0
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -0
- package/mobile/lib/components/ContentPage/normalizePage.d.ts +2 -0
- package/{lib/components/ContentPage/toMobilePage.js → mobile/lib/components/ContentPage/normalizePage.js} +8 -15
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +12 -6
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -4
- package/mobile/lib/components/Footer/MediaButton.js +2 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +19 -8
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -4
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +6 -7
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +8 -3
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Gallery/constants.js +2 -2
- package/mobile/lib/components/Gallery/constants.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +3 -3
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +7 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js +5 -36
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +27 -7
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +10 -0
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +9 -0
- package/mobile/lib/components/LinkDocs/LinkDocsList.js +7 -0
- package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +5 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +20 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +9 -0
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +25 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -3
- package/mobile/lib/components/PictureText/PictureText.js +5 -5
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +4 -2
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -11
- package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -3
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +7 -3
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +3 -2
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +4 -4
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js +14 -4
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +10 -5
- package/mobile/lib/components/PromoTile/PromoTile.js +12 -3
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +7 -3
- package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +3 -3
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -11
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +4 -7
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +2 -1
- package/mobile/lib/components/Tile/Tile.js +11 -28
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +9 -2
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +0 -2
- package/mobile/lib/content-page-repository/ContentPageRepository.js +0 -10
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +82 -0
- package/mobile/lib/icons/IconName.js +76 -0
- package/mobile/lib/icons/IconName.js.map +1 -0
- package/mobile/lib/index.d.ts +1 -1
- package/mobile/lib/index.js +1 -1
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/model/ButtonVersion.d.ts +1 -1
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +3 -0
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +1 -0
- package/mobile/lib/services/sitemap/isTopItemActive.js +4 -1
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/setup-fixture.d.ts +3 -0
- package/mobile/lib/setup-fixture.js +70 -0
- package/mobile/lib/setup-fixture.js.map +1 -0
- package/mobile/lib/types.d.ts +5 -5
- package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +9 -10
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Button/Button.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/Button.js +6 -8
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +7 -0
- package/mobile/lib/ui-kit/Button/ButtonInner.js +14 -0
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +10 -0
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +5 -0
- package/mobile/lib/ui-kit/Button/ButtonSection.js +16 -0
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -0
- package/mobile/lib/ui-kit/Description/Description.d.ts +2 -0
- package/mobile/lib/ui-kit/Description/Description.js +7 -0
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -0
- package/mobile/lib/ui-kit/Description/DescriptionProps.d.ts +7 -0
- package/mobile/lib/ui-kit/Description/DescriptionProps.js +2 -0
- package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +1 -0
- package/mobile/lib/ui-kit/Heading/Heading.d.ts +5 -0
- package/mobile/lib/ui-kit/Heading/Heading.js +19 -0
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -0
- package/mobile/lib/ui-kit/Heading/HeadingContent.d.ts +15 -0
- package/mobile/lib/ui-kit/Heading/HeadingContent.js +2 -0
- package/mobile/lib/ui-kit/Heading/HeadingContent.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/Icon.js +6 -2
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +6 -148
- package/mobile/lib/ui-kit/Icon/IconProps.js +1 -75
- package/mobile/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/mobile/lib/ui-kit/{Img.d.ts → Img/Img.d.ts} +2 -5
- package/mobile/lib/ui-kit/{Img.js → Img/Img.js} +7 -4
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -0
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +7 -0
- package/mobile/lib/ui-kit/Img/ImgProps.js +2 -0
- package/mobile/lib/ui-kit/Img/ImgProps.js.map +1 -0
- package/mobile/lib/ui-kit/List/List.d.ts +2 -0
- package/mobile/lib/ui-kit/List/List.js +10 -0
- package/mobile/lib/ui-kit/List/List.js.map +1 -0
- package/mobile/lib/ui-kit/List/ListContent.d.ts +4 -0
- package/mobile/lib/ui-kit/List/ListContent.js +2 -0
- package/mobile/lib/ui-kit/List/ListContent.js.map +1 -0
- package/mobile/lib/ui-kit/List/ListItem.d.ts +11 -0
- package/mobile/lib/ui-kit/List/ListItem.js +21 -0
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -0
- package/mobile/lib/ui-kit/List/ListProps.d.ts +14 -0
- package/mobile/lib/ui-kit/List/ListProps.js +2 -0
- package/mobile/lib/ui-kit/List/ListProps.js.map +1 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +30 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +26 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +6 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +9 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +17 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.js +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/constants.d.ts +2 -0
- package/mobile/lib/ui-kit/SwipeListControl/constants.js +10 -0
- package/mobile/lib/ui-kit/SwipeListControl/constants.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +10 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +15 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +24 -0
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +2 -6
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +8 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +49 -21
- package/mobile/src/components/Accordion/AccordionItem.tsx +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +11 -42
- package/mobile/src/components/BaseTile/BaseTileProps.ts +9 -11
- package/{src/components/BaseTile/getTitleSizeByClassName.ts → mobile/src/components/BaseTile/getTileHeadingType.ts} +5 -4
- package/mobile/src/components/BaseTile/getTileMinHeight.ts +12 -0
- package/mobile/src/components/BaseTile/getTileRightPadding.ts +12 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +4 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +6 -2
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +3 -7
- package/mobile/src/components/ContentPage/ContentPage.page.json +1630 -87
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -8
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +5 -0
- package/mobile/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
- package/mobile/src/components/ContentPage/normalizeBlock.ts +6 -0
- package/mobile/src/components/ContentPage/{toMobilePage.ts → normalizePage.ts} +7 -14
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- package/mobile/src/components/Footer/MediaButton.tsx +2 -1
- package/mobile/src/components/Gallery/Gallery.tsx +58 -39
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +6 -11
- package/mobile/src/components/Gallery/GalleryContainer.tsx +9 -10
- package/mobile/src/components/Gallery/GalleryContent.ts +9 -3
- package/mobile/src/components/Gallery/GalleryInner.tsx +1 -1
- package/mobile/src/components/Gallery/constants.ts +2 -2
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
- package/mobile/src/components/Header/HeaderTop.tsx +1 -1
- package/mobile/src/components/Headline/Headline.tsx +3 -7
- package/mobile/src/components/Headline/HeadlineContent.ts +11 -6
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +32 -70
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +29 -7
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +28 -0
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +33 -0
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +12 -0
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +51 -0
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +33 -0
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +26 -0
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +11 -8
- package/mobile/src/components/PictureText/PictureText.tsx +5 -4
- package/mobile/src/components/PictureText/PictureTextContent.ts +5 -2
- package/mobile/src/components/Placeholder/Placeholder.tsx +10 -5
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +3 -3
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +21 -18
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +26 -11
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +3 -2
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +3 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -6
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +63 -15
- package/mobile/src/components/ProductTile/ProductTileContent.ts +17 -9
- package/mobile/src/components/PromoTile/PromoTile.tsx +41 -14
- package/mobile/src/components/PromoTile/PromoTileContent.ts +11 -5
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -7
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +6 -2
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +4 -3
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +5 -11
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +20 -16
- package/mobile/src/components/TextBlock/TextBlockContent.ts +4 -1
- package/mobile/src/components/Tile/Tile.tsx +46 -27
- package/mobile/src/components/Tile/TileContent.ts +13 -2
- package/mobile/src/content-page-repository/ContentPageRepository.ts +0 -12
- package/mobile/src/icons/ActualBalanceIcon.svg +1 -3
- package/mobile/src/icons/AppleIcon.svg +1 -1
- package/mobile/src/icons/AtmIcon.svg +6 -6
- package/mobile/src/icons/BankIcon.svg +10 -10
- package/mobile/src/icons/BurgerIcon.svg +1 -1
- package/mobile/src/icons/BurgerIconWhite.svg +1 -1
- package/mobile/src/icons/Calendar2Icon.svg +1 -1
- package/mobile/src/icons/CalendarCircleIcon.svg +1 -1
- package/mobile/src/icons/CalendarIcon.svg +2 -2
- package/mobile/src/icons/CalendarTickIcon.svg +1 -1
- package/mobile/src/icons/CalendarWhiteIcon.svg +1 -1
- package/mobile/src/icons/CardIcon.svg +1 -1
- package/mobile/src/icons/CardPosIcon.svg +1 -1
- package/mobile/src/icons/CardTickIcon.svg +1 -1
- package/mobile/src/icons/CardWithGemIcon.svg +1 -1
- package/mobile/src/icons/ChartSquareIcon.svg +1 -1
- package/mobile/src/icons/ClockIcon.svg +1 -3
- package/mobile/src/icons/CloseIcon.svg +1 -1
- package/mobile/src/icons/ComfortableCompIcon.svg +1 -3
- package/mobile/src/icons/CreditCardsIcon.svg +1 -1
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -1
- package/mobile/src/icons/DocIcon.svg +3 -3
- package/mobile/src/icons/DocIconMonoColor.svg +5 -0
- package/mobile/src/icons/DocumentTextIcon.svg +3 -3
- package/mobile/src/icons/DollarIcon.svg +1 -1
- package/mobile/src/icons/EarthIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/mobile/src/icons/EmptyWalletIcon.svg +2 -2
- package/mobile/src/icons/EmptyWalletWhiteIcon.svg +1 -1
- package/mobile/src/icons/EuroIcon.svg +1 -1
- package/mobile/src/icons/GeolocationIcon.svg +3 -3
- package/mobile/src/icons/GlassIcon.svg +1 -1
- package/mobile/src/icons/GlobalIcon.svg +1 -1
- package/mobile/src/icons/GridIcon.svg +1 -1
- package/mobile/src/icons/GridIconWhite.svg +1 -1
- package/mobile/src/icons/IconName.ts +16 -0
- package/mobile/src/icons/InterestGrowthIcon.svg +1 -1
- package/mobile/src/icons/InterestIcon.svg +1 -1
- package/mobile/src/icons/JCBIcon.svg +1 -1
- package/mobile/src/icons/LoupeIcon.svg +1 -1
- package/mobile/src/icons/MasterCardIcon.svg +1 -1
- package/mobile/src/icons/MinusIcon.svg +1 -1
- package/mobile/src/icons/MirIcon.svg +1 -1
- package/mobile/src/icons/MoneyIcon.svg +1 -1
- package/mobile/src/icons/MoneyInsuranceIcon.svg +1 -1
- package/mobile/src/icons/MonitorMobileIcon.svg +1 -1
- package/mobile/src/icons/NewDocIcon.svg +1 -3
- package/mobile/src/icons/OfficeIcon.svg +1 -1
- package/mobile/src/icons/OkIcon.svg +1 -1
- package/mobile/src/icons/PassSendIcon.svg +1 -3
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareIcon.svg +2 -2
- package/mobile/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/mobile/src/icons/PersonalCardIcon.svg +1 -1
- package/mobile/src/icons/PlayMarketIcon.svg +1 -1
- package/mobile/src/icons/PlusIcon.svg +1 -1
- package/mobile/src/icons/Profile2UserIcon.svg +1 -1
- package/mobile/src/icons/ProfileIcon.svg +1 -1
- package/mobile/src/icons/RoundRubleIcon.svg +1 -1
- package/mobile/src/icons/SafeIcon.svg +1 -1
- package/mobile/src/icons/ShieldTickIcon.svg +1 -1
- package/mobile/src/icons/SignDocsIcon.svg +1 -3
- package/mobile/src/icons/SmallClockIcon.svg +1 -1
- package/mobile/src/icons/TelegramIcon.svg +2 -1
- package/mobile/src/icons/UnionPayIcon.svg +1 -1
- package/mobile/src/icons/UserTickIcon.svg +1 -1
- package/mobile/src/icons/VKIcon.svg +2 -1
- package/mobile/src/icons/VisaIcon.svg +1 -1
- package/mobile/src/icons/WalletAdd2Icon.svg +1 -1
- package/mobile/src/icons/WalletAddIcon.svg +1 -1
- package/mobile/src/icons/WalletIcon.svg +1 -1
- package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/mobile/src/index.ts +1 -1
- package/mobile/src/model/ButtonVersion.ts +1 -1
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +20 -0
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +6 -0
- package/mobile/src/services/sitemap/isTopItemActive.spec.ts +59 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +4 -1
- package/mobile/src/types.ts +6 -5
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +12 -15
- package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
- package/mobile/src/ui-kit/Button/Button.tsx +11 -24
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +37 -0
- package/mobile/src/ui-kit/Button/ButtonProps.ts +11 -0
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +34 -0
- package/mobile/src/ui-kit/Description/Description.tsx +8 -0
- package/mobile/src/ui-kit/Description/DescriptionProps.ts +8 -0
- package/mobile/src/ui-kit/Heading/Heading.tsx +29 -0
- package/mobile/src/ui-kit/Heading/HeadingContent.ts +17 -0
- package/mobile/src/ui-kit/Icon/Icon.tsx +16 -3
- package/mobile/src/ui-kit/Icon/IconProps.ts +7 -148
- package/mobile/src/ui-kit/{Img.tsx → Img/Img.tsx} +9 -10
- package/mobile/src/ui-kit/Img/ImgProps.ts +9 -0
- package/mobile/src/ui-kit/List/List.tsx +24 -0
- package/mobile/src/ui-kit/List/ListContent.ts +4 -0
- package/mobile/src/ui-kit/List/ListItem.tsx +43 -0
- package/mobile/src/ui-kit/List/ListProps.ts +16 -0
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +62 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +51 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +20 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +48 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +19 -0
- package/mobile/src/ui-kit/SwipeListControl/constants.ts +10 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +9 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +19 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +20 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +24 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +41 -0
- package/package.json +14 -15
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +10 -10
- package/src/components/Accordion/Accordion.fixture.tsx +54 -10
- package/src/components/Accordion/Accordion.mobile.tsx +2 -6
- package/src/components/Accordion/Accordion.tsx +2 -2
- package/src/components/Accordion/AccordionBlocks.tsx +8 -0
- package/src/components/Accordion/AccordionContent.ts +49 -21
- package/src/components/Accordion/AccordionItem.mobile.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/BaseTile/BaseTile.tsx +10 -34
- package/src/components/BaseTile/BaseTileProps.ts +9 -11
- package/{mobile/src/components/BaseTile/getTitleSizeByClassName.ts → src/components/BaseTile/getTileHeadingType.ts} +5 -4
- package/src/components/BaseTile/getTileMinHeight.ts +12 -0
- package/src/components/BaseTile/getTileRightPadding.ts +12 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +4 -2
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -0
- package/src/components/ComparisonTable/ComparisonTable.tsx +6 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +3 -7
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +3 -3
- package/src/components/ContentPage/ContentPage.fixture.tsx +3 -2
- package/src/components/ContentPage/ContentPage.page.json +15 -81
- package/src/components/ContentPage/ContentPage.tsx +2 -8
- package/src/components/ContentPage/isBlockInRegistry.ts +5 -0
- package/src/components/ContentPage/normalizeBlock.mobile.spec.ts +71 -0
- package/src/components/ContentPage/normalizeBlock.mobile.ts +6 -0
- package/src/components/ContentPage/normalizeBlock.spec.ts +50 -0
- package/src/components/ContentPage/normalizeBlock.ts +7 -0
- package/src/components/ContentPage/{toMobilePage.ts → normalizePage.mobile.ts} +7 -14
- package/src/components/ContentPage/normalizePage.ts +29 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- package/src/components/Footer/Footer.fixture.tsx +0 -126
- package/src/components/Footer/MediaButton.tsx +2 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +103 -0
- package/src/components/Gallery/Gallery.fixture.tsx +5 -4
- package/src/components/Gallery/Gallery.mobile.tsx +58 -39
- package/src/components/Gallery/GalleryCardInner.tsx +6 -11
- package/src/components/Gallery/GalleryContainer.tsx +9 -10
- package/src/components/Gallery/GalleryContent.ts +9 -3
- package/src/components/Gallery/GalleryInner.tsx +1 -1
- package/src/components/Gallery/constants.ts +2 -2
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +4 -4
- package/src/components/Header/HeaderTop.tsx +1 -1
- package/src/components/Headline/Headline.fixture.tsx +0 -54
- package/src/components/Headline/Headline.mobile.tsx +3 -7
- package/src/components/Headline/Headline.tsx +2 -4
- package/src/components/Headline/HeadlineContent.ts +11 -6
- package/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +36 -0
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +17 -48
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +44 -0
- package/src/components/LinkDocs/LinkDocs.tsx +35 -52
- package/src/components/LinkDocs/LinkDocsContent.ts +29 -7
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +28 -0
- package/src/components/LinkDocs/LinkDocsList.tsx +33 -0
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +12 -0
- package/src/components/LinkDocs/LinkDocsListItem.tsx +14 -0
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +51 -0
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +33 -0
- package/src/components/LinkDocs/linkDocsContentExample.ts +26 -0
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +47 -20
- package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -8
- package/src/components/PictureText/PictureText.tsx +5 -4
- package/src/components/PictureText/PictureTextContent.ts +5 -2
- package/src/components/Placeholder/Placeholder.mobile.tsx +35 -0
- package/src/components/Placeholder/PlaceholderContent.ts +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -1
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +21 -18
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +26 -11
- package/src/components/ProductBlock/ProductBlockInner.tsx +28 -12
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +3 -2
- package/src/components/ProductBlock/renderBenefit.tsx +3 -2
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +0 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +4 -1
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +3 -1
- package/src/components/ProductGallery/ProductGallery.tsx +3 -2
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +6 -6
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -6
- package/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/src/components/ProductTile/ProductTile.fixture.tsx +28 -0
- package/src/components/ProductTile/ProductTile.tsx +63 -15
- package/src/components/ProductTile/ProductTileContent.ts +17 -9
- package/src/components/PromoTile/PromoTile.fixture.tsx +0 -1
- package/src/components/PromoTile/PromoTile.tsx +41 -14
- package/src/components/PromoTile/PromoTileContent.ts +11 -5
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -7
- package/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/src/components/TariffsTable/TariffsTable.tsx +6 -2
- package/src/components/TariffsTable/TariffsTableCell.tsx +4 -3
- package/src/components/TariffsTable/TariffsTableContent.ts +5 -11
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +28 -13
- package/src/components/TextBlock/TextBlock.mobile.tsx +20 -16
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/TextBlock/TextBlockContent.ts +4 -1
- package/src/components/Tile/Tile.fixture.tsx +19 -2
- package/src/components/Tile/Tile.tsx +46 -27
- package/src/components/Tile/TileContent.ts +13 -2
- package/src/content-page-repository/ContentPageRepository.ts +0 -12
- package/src/icons/ActualBalanceIcon.svg +1 -3
- package/src/icons/AppleIcon.svg +1 -1
- package/src/icons/AtmIcon.svg +6 -6
- package/src/icons/BankIcon.svg +10 -10
- package/src/icons/BurgerIcon.svg +1 -1
- package/src/icons/BurgerIconWhite.svg +1 -1
- package/src/icons/Calendar2Icon.svg +1 -1
- package/src/icons/CalendarCircleIcon.svg +1 -1
- package/src/icons/CalendarIcon.svg +2 -2
- package/src/icons/CalendarTickIcon.svg +1 -1
- package/src/icons/CalendarWhiteIcon.svg +1 -1
- package/src/icons/CardIcon.svg +1 -1
- package/src/icons/CardPosIcon.svg +1 -1
- package/src/icons/CardTickIcon.svg +1 -1
- package/src/icons/CardWithGemIcon.svg +1 -1
- package/src/icons/ChartSquareIcon.svg +1 -1
- package/src/icons/ClockIcon.svg +1 -3
- package/src/icons/CloseIcon.svg +1 -1
- package/src/icons/ComfortableCompIcon.svg +1 -3
- package/src/icons/CreditCardsIcon.svg +1 -1
- package/src/icons/DiscountShapeIcon.svg +1 -1
- package/src/icons/DocIcon.svg +3 -3
- package/src/icons/DocIconMonoColor.svg +5 -0
- package/src/icons/DocumentTextIcon.svg +3 -3
- package/src/icons/DollarIcon.svg +1 -1
- package/src/icons/EarthIcon.svg +1 -1
- package/src/icons/EmptyWalletChangeIcon.svg +1 -1
- package/src/icons/EmptyWalletIcon.svg +2 -2
- package/src/icons/EmptyWalletWhiteIcon.svg +1 -1
- package/src/icons/EuroIcon.svg +1 -1
- package/src/icons/GeolocationIcon.svg +3 -3
- package/src/icons/GlassIcon.svg +1 -1
- package/src/icons/GlobalIcon.svg +1 -1
- package/src/icons/GridIcon.svg +1 -1
- package/src/icons/GridIconWhite.svg +1 -1
- package/src/icons/IconName.ts +16 -0
- package/src/icons/InterestGrowthIcon.svg +1 -1
- package/src/icons/InterestIcon.svg +1 -1
- package/src/icons/JCBIcon.svg +1 -1
- package/src/icons/LoupeIcon.svg +1 -1
- package/src/icons/MasterCardIcon.svg +1 -1
- package/src/icons/MinusIcon.svg +1 -1
- package/src/icons/MirIcon.svg +1 -1
- package/src/icons/MoneyIcon.svg +1 -1
- package/src/icons/MoneyInsuranceIcon.svg +1 -1
- package/src/icons/MonitorMobileIcon.svg +1 -1
- package/src/icons/NewDocIcon.svg +1 -3
- package/src/icons/OfficeIcon.svg +1 -1
- package/src/icons/OkIcon.svg +1 -1
- package/src/icons/PassSendIcon.svg +1 -3
- package/src/icons/PercentageRoundIcon.svg +1 -1
- package/src/icons/PercentageSquareIcon.svg +2 -2
- package/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/src/icons/PersonalCardIcon.svg +1 -1
- package/src/icons/PlayMarketIcon.svg +1 -1
- package/src/icons/PlusIcon.svg +1 -1
- package/src/icons/Profile2UserIcon.svg +1 -1
- package/src/icons/ProfileIcon.svg +1 -1
- package/src/icons/RoundRubleIcon.svg +1 -1
- package/src/icons/SafeIcon.svg +1 -1
- package/src/icons/ShieldTickIcon.svg +1 -1
- package/src/icons/SignDocsIcon.svg +1 -3
- package/src/icons/SmallClockIcon.svg +1 -1
- package/src/icons/TelegramIcon.svg +2 -1
- package/src/icons/UnionPayIcon.svg +1 -1
- package/src/icons/UserTickIcon.svg +1 -1
- package/src/icons/VKIcon.svg +2 -1
- package/src/icons/VisaIcon.svg +1 -1
- package/src/icons/WalletAdd2Icon.svg +1 -1
- package/src/icons/WalletAddIcon.svg +1 -1
- package/src/icons/WalletIcon.svg +1 -1
- package/src/icons/WalletWithMoneyIcon.svg +1 -1
- package/src/index.ts +1 -1
- package/src/model/ButtonVersion.ts +1 -1
- package/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +20 -0
- package/src/services/sitemap/checkIsHrefSameOrigin.ts +6 -0
- package/src/services/sitemap/isTopItemActive.spec.ts +59 -0
- package/src/services/sitemap/isTopItemActive.ts +4 -1
- package/src/types.ts +6 -5
- package/src/ui-kit/BlockItem/BlockItem.tsx +12 -15
- package/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
- package/src/ui-kit/Button/Button.fixture.tsx +4 -5
- package/src/ui-kit/Button/Button.mobile.tsx +11 -24
- package/src/ui-kit/Button/Button.tsx +55 -51
- package/src/ui-kit/Button/ButtonInner.tsx +37 -0
- package/src/ui-kit/Button/ButtonProps.ts +11 -0
- package/src/ui-kit/Button/ButtonSection.tsx +34 -0
- package/src/ui-kit/Description/Description.tsx +8 -0
- package/src/ui-kit/Description/DescriptionProps.ts +8 -0
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +29 -0
- package/src/ui-kit/Heading/Heading.fixture.tsx +28 -0
- package/src/ui-kit/Heading/Heading.mobile.tsx +29 -0
- package/src/ui-kit/Heading/Heading.tsx +29 -0
- package/src/ui-kit/Heading/HeadingContent.ts +17 -0
- package/src/ui-kit/Icon/Icon.fixture.tsx +20 -12
- package/src/ui-kit/Icon/Icon.tsx +16 -3
- package/src/ui-kit/Icon/IconProps.ts +7 -148
- package/src/ui-kit/{Img.mobile.tsx → Img/Img.mobile.tsx} +9 -10
- package/src/ui-kit/{Img.tsx → Img/Img.tsx} +1 -1
- package/src/ui-kit/Img/ImgProps.ts +9 -0
- package/src/ui-kit/List/List.tsx +24 -0
- package/src/ui-kit/List/ListContent.ts +4 -0
- package/src/ui-kit/List/ListItem.tsx +43 -0
- package/src/ui-kit/List/ListProps.ts +16 -0
- package/src/ui-kit/Logo/Logo.mobile.tsx +1 -0
- package/src/ui-kit/Logo/Logo.tsx +1 -0
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +16 -0
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +62 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +51 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +20 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +48 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +19 -0
- package/src/ui-kit/SwipeListControl/constants.ts +10 -0
- package/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +9 -0
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +19 -0
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +20 -0
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +24 -0
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +41 -0
- package/dist/components/BaseTile/BaseTile.mobile.d.ts +0 -5
- package/dist/components/BaseTile/BaseTile.mobile.js +0 -17
- package/dist/components/BaseTile/BaseTile.mobile.js.map +0 -1
- package/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/dist/components/BaseTile/BaseTileInner.js +0 -14
- package/dist/components/BaseTile/BaseTileInner.js.map +0 -1
- package/dist/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
- package/dist/components/BaseTile/BaseTileInner.mobile.js +0 -14
- package/dist/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
- package/dist/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/dist/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/dist/components/BaseTile/renderButton.d.ts +0 -2
- package/dist/components/BaseTile/renderButton.js +0 -12
- package/dist/components/BaseTile/renderButton.js.map +0 -1
- package/dist/components/BaseTile/renderButton.mobile.d.ts +0 -2
- package/dist/components/BaseTile/renderButton.mobile.js +0 -13
- package/dist/components/BaseTile/renderButton.mobile.js.map +0 -1
- package/dist/components/BaseTile/renderItems.d.ts +0 -2
- package/dist/components/BaseTile/renderItems.js +0 -9
- package/dist/components/BaseTile/renderItems.js.map +0 -1
- package/dist/components/BaseTile/renderItems.mobile.d.ts +0 -2
- package/dist/components/BaseTile/renderItems.mobile.js +0 -9
- package/dist/components/BaseTile/renderItems.mobile.js.map +0 -1
- package/dist/components/ContentPage/toMobilePage.d.ts +0 -2
- package/dist/components/ContentPage/toMobilePage.js.map +0 -1
- package/dist/ui-kit/Img.js.map +0 -1
- package/dist/ui-kit/Img.mobile.js.map +0 -1
- package/dist/ui-kit/Title/Title.d.ts +0 -3
- package/dist/ui-kit/Title/Title.js +0 -18
- package/dist/ui-kit/Title/Title.js.map +0 -1
- package/dist/ui-kit/Title/Title.mobile.d.ts +0 -3
- package/dist/ui-kit/Title/Title.mobile.js +0 -18
- package/dist/ui-kit/Title/Title.mobile.js.map +0 -1
- package/dist/ui-kit/Title/TitleProps.d.ts +0 -4
- package/dist/ui-kit/Title/TitleProps.js.map +0 -1
- package/lib/components/BaseTile/BaseTile.mobile.d.ts +0 -5
- package/lib/components/BaseTile/BaseTile.mobile.js +0 -15
- package/lib/components/BaseTile/BaseTile.mobile.js.map +0 -1
- package/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/lib/components/BaseTile/BaseTileInner.js +0 -12
- package/lib/components/BaseTile/BaseTileInner.js.map +0 -1
- package/lib/components/BaseTile/BaseTileInner.mobile.d.ts +0 -5
- package/lib/components/BaseTile/BaseTileInner.mobile.js +0 -12
- package/lib/components/BaseTile/BaseTileInner.mobile.js.map +0 -1
- package/lib/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/lib/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/lib/components/BaseTile/renderButton.d.ts +0 -2
- package/lib/components/BaseTile/renderButton.js +0 -9
- package/lib/components/BaseTile/renderButton.js.map +0 -1
- package/lib/components/BaseTile/renderButton.mobile.d.ts +0 -2
- package/lib/components/BaseTile/renderButton.mobile.js +0 -10
- package/lib/components/BaseTile/renderButton.mobile.js.map +0 -1
- package/lib/components/BaseTile/renderItems.d.ts +0 -2
- package/lib/components/BaseTile/renderItems.js +0 -6
- package/lib/components/BaseTile/renderItems.js.map +0 -1
- package/lib/components/BaseTile/renderItems.mobile.d.ts +0 -2
- package/lib/components/BaseTile/renderItems.mobile.js +0 -6
- package/lib/components/BaseTile/renderItems.mobile.js.map +0 -1
- package/lib/components/ContentPage/toMobilePage.d.ts +0 -2
- package/lib/components/ContentPage/toMobilePage.js.map +0 -1
- package/lib/ui-kit/Img.js.map +0 -1
- package/lib/ui-kit/Img.mobile.js.map +0 -1
- package/lib/ui-kit/Title/Title.d.ts +0 -3
- package/lib/ui-kit/Title/Title.js +0 -16
- package/lib/ui-kit/Title/Title.js.map +0 -1
- package/lib/ui-kit/Title/Title.mobile.d.ts +0 -3
- package/lib/ui-kit/Title/Title.mobile.js +0 -16
- package/lib/ui-kit/Title/Title.mobile.js.map +0 -1
- package/lib/ui-kit/Title/TitleProps.d.ts +0 -4
- package/lib/ui-kit/Title/TitleProps.js +0 -2
- package/lib/ui-kit/Title/TitleProps.js.map +0 -1
- package/mobile/dist/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/mobile/dist/components/BaseTile/BaseTileInner.js +0 -14
- package/mobile/dist/components/BaseTile/BaseTileInner.js.map +0 -1
- package/mobile/dist/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/mobile/dist/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/mobile/dist/components/BaseTile/renderButton.d.ts +0 -2
- package/mobile/dist/components/BaseTile/renderButton.js +0 -13
- package/mobile/dist/components/BaseTile/renderButton.js.map +0 -1
- package/mobile/dist/components/BaseTile/renderItems.d.ts +0 -2
- package/mobile/dist/components/BaseTile/renderItems.js +0 -9
- package/mobile/dist/components/BaseTile/renderItems.js.map +0 -1
- package/mobile/dist/components/ContentPage/toMobilePage.d.ts +0 -2
- package/mobile/dist/components/ContentPage/toMobilePage.js.map +0 -1
- package/mobile/dist/ui-kit/Img.js.map +0 -1
- package/mobile/dist/ui-kit/Title/Title.d.ts +0 -3
- package/mobile/dist/ui-kit/Title/Title.js +0 -18
- package/mobile/dist/ui-kit/Title/Title.js.map +0 -1
- package/mobile/dist/ui-kit/Title/TitleProps.d.ts +0 -4
- package/mobile/dist/ui-kit/Title/TitleProps.js.map +0 -1
- package/mobile/lib/components/BaseTile/BaseTileInner.d.ts +0 -5
- package/mobile/lib/components/BaseTile/BaseTileInner.js +0 -12
- package/mobile/lib/components/BaseTile/BaseTileInner.js.map +0 -1
- package/mobile/lib/components/BaseTile/getTitleSizeByClassName.d.ts +0 -1
- package/mobile/lib/components/BaseTile/getTitleSizeByClassName.js.map +0 -1
- package/mobile/lib/components/BaseTile/renderButton.d.ts +0 -2
- package/mobile/lib/components/BaseTile/renderButton.js +0 -10
- package/mobile/lib/components/BaseTile/renderButton.js.map +0 -1
- package/mobile/lib/components/BaseTile/renderItems.d.ts +0 -2
- package/mobile/lib/components/BaseTile/renderItems.js +0 -6
- package/mobile/lib/components/BaseTile/renderItems.js.map +0 -1
- package/mobile/lib/components/ContentPage/toMobilePage.d.ts +0 -2
- package/mobile/lib/components/ContentPage/toMobilePage.js.map +0 -1
- package/mobile/lib/ui-kit/Img.js.map +0 -1
- package/mobile/lib/ui-kit/Title/Title.d.ts +0 -3
- package/mobile/lib/ui-kit/Title/Title.js +0 -16
- package/mobile/lib/ui-kit/Title/Title.js.map +0 -1
- package/mobile/lib/ui-kit/Title/TitleProps.d.ts +0 -4
- package/mobile/lib/ui-kit/Title/TitleProps.js +0 -2
- package/mobile/lib/ui-kit/Title/TitleProps.js.map +0 -1
- package/mobile/src/components/BaseTile/BaseTileInner.tsx +0 -31
- package/mobile/src/components/BaseTile/renderButton.tsx +0 -20
- package/mobile/src/components/BaseTile/renderItems.tsx +0 -12
- package/mobile/src/ui-kit/Title/Title.tsx +0 -22
- package/mobile/src/ui-kit/Title/TitleProps.ts +0 -5
- package/src/components/BaseTile/BaseTile.mobile.tsx +0 -53
- package/src/components/BaseTile/BaseTileInner.mobile.tsx +0 -31
- package/src/components/BaseTile/BaseTileInner.tsx +0 -37
- package/src/components/BaseTile/renderButton.mobile.tsx +0 -20
- package/src/components/BaseTile/renderButton.tsx +0 -13
- package/src/components/BaseTile/renderItems.mobile.tsx +0 -12
- package/src/components/BaseTile/renderItems.tsx +0 -12
- package/src/components/ContentPage/ContentPage.page.mobile.json +0 -452
- package/src/ui-kit/Title/Title.mobile.tsx +0 -22
- package/src/ui-kit/Title/Title.tsx +0 -22
- package/src/ui-kit/Title/TitleProps.ts +0 -5
|
@@ -186,65 +186,6 @@
|
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
const projectSettings = new (class {
|
|
190
|
-
_ = {
|
|
191
|
-
PROD_BRANCH: 'master',
|
|
192
|
-
FORCED_DRAFT_FLOW: false,
|
|
193
|
-
};
|
|
194
|
-
setup(_) {
|
|
195
|
-
this._ = _;
|
|
196
|
-
}
|
|
197
|
-
get TEST_BRANCH() {
|
|
198
|
-
return this._.TEST_BRANCH;
|
|
199
|
-
}
|
|
200
|
-
get RC_BRANCH() {
|
|
201
|
-
return this._.RC_BRANCH;
|
|
202
|
-
}
|
|
203
|
-
get PROD_BRANCH() {
|
|
204
|
-
return this._.PROD_BRANCH;
|
|
205
|
-
}
|
|
206
|
-
get FORCED_DRAFT_FLOW() {
|
|
207
|
-
return this._.FORCED_DRAFT_FLOW;
|
|
208
|
-
}
|
|
209
|
-
get ENABLE_ASSIST() {
|
|
210
|
-
return this._.ENABLE_ASSIST;
|
|
211
|
-
}
|
|
212
|
-
get SITEMAP() {
|
|
213
|
-
return this._.SITEMAP;
|
|
214
|
-
}
|
|
215
|
-
get CDN() {
|
|
216
|
-
return this._.CDN;
|
|
217
|
-
}
|
|
218
|
-
})();
|
|
219
|
-
|
|
220
|
-
const Icon = JSX(({ className = '', name, alt = `Icon ${name}`, title = alt, asSVG, ...imgProps }) => {
|
|
221
|
-
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
222
|
-
if (asSVG) {
|
|
223
|
-
return (jsxs("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
224
|
-
}
|
|
225
|
-
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
const getColSpan = (className) => {
|
|
229
|
-
const colSpanPrefix = 'col-span-';
|
|
230
|
-
const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
|
|
231
|
-
return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
const SizeTableClass = {
|
|
235
|
-
XL: 'text-m-title',
|
|
236
|
-
L: 'text-m-title',
|
|
237
|
-
M: 'text-m-title-md',
|
|
238
|
-
S: 'text-m-title-xs',
|
|
239
|
-
'2XS': 'text-m-title-xs',
|
|
240
|
-
'3XS': 'text-m-title-xs',
|
|
241
|
-
};
|
|
242
|
-
const Title = JSX(({ size = 'L', className, children, ...rest }) => {
|
|
243
|
-
const Tag = size === 'XL' || size === 'L' ? 'h1' : 'h2';
|
|
244
|
-
return (jsx(Tag, { className: getClasses(SizeTableClass[size], className), ...rest, children: children }));
|
|
245
|
-
});
|
|
246
|
-
const getClasses = (...classes) => classes.filter(Boolean).join(' ');
|
|
247
|
-
|
|
248
189
|
const isURL = (href) => href?.includes('//');
|
|
249
190
|
const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
250
191
|
const getOrigin = (href) => {
|
|
@@ -302,131 +243,154 @@
|
|
|
302
243
|
};
|
|
303
244
|
}
|
|
304
245
|
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
246
|
+
const projectSettings = new (class {
|
|
247
|
+
_ = {
|
|
248
|
+
PROD_BRANCH: 'master',
|
|
249
|
+
FORCED_DRAFT_FLOW: false,
|
|
309
250
|
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
251
|
+
setup(_) {
|
|
252
|
+
this._ = _;
|
|
253
|
+
}
|
|
254
|
+
get TEST_BRANCH() {
|
|
255
|
+
return this._.TEST_BRANCH;
|
|
256
|
+
}
|
|
257
|
+
get RC_BRANCH() {
|
|
258
|
+
return this._.RC_BRANCH;
|
|
259
|
+
}
|
|
260
|
+
get PROD_BRANCH() {
|
|
261
|
+
return this._.PROD_BRANCH;
|
|
262
|
+
}
|
|
263
|
+
get FORCED_DRAFT_FLOW() {
|
|
264
|
+
return this._.FORCED_DRAFT_FLOW;
|
|
265
|
+
}
|
|
266
|
+
get ENABLE_ASSIST() {
|
|
267
|
+
return this._.ENABLE_ASSIST;
|
|
268
|
+
}
|
|
269
|
+
get SITEMAP() {
|
|
270
|
+
return this._.SITEMAP;
|
|
271
|
+
}
|
|
272
|
+
get CDN() {
|
|
273
|
+
return this._.CDN;
|
|
274
|
+
}
|
|
275
|
+
})();
|
|
276
|
+
|
|
277
|
+
const svgColorsMap = {
|
|
278
|
+
none: '',
|
|
279
|
+
primary: 'text-primary-main',
|
|
280
|
+
};
|
|
281
|
+
const Icon = JSX(({ className = '', name, alt = `Icon ${name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
|
|
282
|
+
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
283
|
+
if (asSVG) {
|
|
284
|
+
return (jsxs("svg", { className: `${svgColorsMap[color]} ${className}`, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
285
|
+
}
|
|
286
|
+
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
313
287
|
});
|
|
314
|
-
|
|
315
|
-
|
|
288
|
+
|
|
289
|
+
const ButtonInner = JSX(({ text, aboveText, appendLeft, rounded, version }) => {
|
|
290
|
+
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
291
|
+
const buttonInnerClasses = version !== 'link'
|
|
292
|
+
? `flex items-center justify-center
|
|
293
|
+
${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`
|
|
294
|
+
: null;
|
|
295
|
+
return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
|
|
296
|
+
});
|
|
297
|
+
function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
|
|
298
|
+
return (jsxs("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button font-medium text-left", children: text })] }))] }));
|
|
316
299
|
}
|
|
317
300
|
|
|
318
301
|
const buttonStyleMap = {
|
|
319
302
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
320
303
|
secondary: 'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
|
|
304
|
+
link: 'text-primary-main',
|
|
321
305
|
};
|
|
322
306
|
const buttonDisabledStyleMap = {
|
|
323
307
|
primary: 'bg-secondary-dark text-secondary-text',
|
|
324
308
|
secondary: 'bg-secondary-light text-secondary-text',
|
|
309
|
+
link: '',
|
|
325
310
|
};
|
|
326
311
|
const styleButton = 'w-full text-center font-sans select-none';
|
|
327
|
-
const Button = JSX(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = '
|
|
328
|
-
const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded }));
|
|
312
|
+
const Button = JSX(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = 'primary', ariaLabel, ...rest }) => {
|
|
313
|
+
const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded, version: version }));
|
|
329
314
|
if (disabled) {
|
|
330
315
|
return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
|
|
331
316
|
}
|
|
332
317
|
return (jsx("a", { className: `${styleButton} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: !href ? 'button' : 'link', ...rest, children: buttonInner }));
|
|
333
318
|
});
|
|
334
|
-
const ButtonInner = JSX(({ text, aboveText, appendLeft, rounded }) => {
|
|
335
|
-
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
336
|
-
const buttonInnerClasses = `flex items-center justify-center ${withoutText ? 'h-12 w-12' : `px-9 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`;
|
|
337
|
-
return (jsxs("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button font-medium text-left", children: text })] }))] }));
|
|
338
|
-
});
|
|
339
319
|
|
|
340
|
-
const
|
|
320
|
+
const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
321
|
+
const { handlerDecorator } = context;
|
|
322
|
+
const router = context.useRouter();
|
|
323
|
+
return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null;
|
|
324
|
+
});
|
|
341
325
|
function renderButton({ icon, ...button }, i) {
|
|
342
326
|
if (!button?.text)
|
|
343
327
|
return;
|
|
344
|
-
return icon ? (jsx(Button, {
|
|
328
|
+
return icon ? (jsx(Button, { appendLeft: jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
|
|
345
329
|
}
|
|
346
330
|
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
331
|
+
const HeadingClass = {
|
|
332
|
+
h1: 'text-m-title',
|
|
333
|
+
h2: 'text-m-title',
|
|
334
|
+
h3: 'text-m-title-md',
|
|
335
|
+
h4: 'text-m-title-xs',
|
|
336
|
+
h5: 'text-m-title-xs',
|
|
337
|
+
h6: 'text-m-title-xs',
|
|
351
338
|
};
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
339
|
+
const Heading = JSX((props) => {
|
|
340
|
+
const { className, headingType, title } = props;
|
|
341
|
+
if (!headingType) {
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
const Tag = headingType;
|
|
345
|
+
return (jsx(Tag, { className: `font-sans font-medium ${HeadingClass[headingType]} ${className || ''}`, children: title }));
|
|
358
346
|
});
|
|
359
|
-
const getListStyle = (version, white) => {
|
|
360
|
-
const color = white ? 'bg-white' : LIST_STYLE_MAP[version];
|
|
361
|
-
const size = version === 'primary'
|
|
362
|
-
? 'w-2 h-2 min-w-2 min-h-2 mt-2'
|
|
363
|
-
: 'w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5';
|
|
364
|
-
return `${LIST_STYLE_CLASSES} ${color} ${size}`;
|
|
365
|
-
};
|
|
366
347
|
|
|
367
|
-
|
|
368
|
-
return (
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
const BaseTileInner = JSX(({ context, description, children, buttons, image, items, version = 'primary' }) => {
|
|
372
|
-
const router = context.useRouter();
|
|
373
|
-
const { handlerDecorator } = context;
|
|
374
|
-
return (jsxs("div", { children: [description && jsx("div", { className: `font-normal text-base mt-3`, children: description }), children, items?.length && renderItems$1(items, version), buttons?.length && (jsx("div", { className: "mt-[18px]", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })), image?.src && jsx(Img, { className: "mt-auto ml-7", image: image })] }));
|
|
348
|
+
const BaseTile = JSX(({ className = '', title, children, buttons, image }) => {
|
|
349
|
+
return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: `flex grow w-full justify-between`, children: [jsxs("div", { className: `flex flex-col justify-between`, children: [jsx("div", { children: children }), jsx("div", { children: buttons })] }), image] })] }));
|
|
375
350
|
});
|
|
376
351
|
|
|
377
|
-
|
|
352
|
+
const getColSpan = (className) => {
|
|
353
|
+
const colSpanPrefix = 'col-span-';
|
|
354
|
+
const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
|
|
355
|
+
return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
function getTileHeadingType(className = '') {
|
|
378
359
|
const colSpan = getColSpan(className);
|
|
379
360
|
if (colSpan <= 4) {
|
|
380
|
-
return '
|
|
361
|
+
return 'h4';
|
|
381
362
|
}
|
|
382
363
|
else if (colSpan <= 8) {
|
|
383
|
-
return '
|
|
364
|
+
return 'h3';
|
|
384
365
|
}
|
|
385
366
|
else {
|
|
386
|
-
return '
|
|
367
|
+
return 'h2';
|
|
387
368
|
}
|
|
388
369
|
}
|
|
389
370
|
|
|
390
|
-
|
|
391
|
-
left: 'items-start',
|
|
392
|
-
center: 'items-center',
|
|
393
|
-
right: 'items-end',
|
|
394
|
-
};
|
|
395
|
-
const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
|
|
396
|
-
const BaseTile = JSX(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', align = 'left', }) => {
|
|
397
|
-
return (jsxs("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && (jsx(Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), jsx(BaseTileInner, { context: context, buttons: buttons, image: image, children: children, description: description, items: items })] }));
|
|
398
|
-
});
|
|
399
|
-
|
|
400
|
-
const tileStyleMap = {
|
|
401
|
-
primary: 'bg-white text-primary-text',
|
|
402
|
-
secondary: 'bg-primary-main text-white',
|
|
403
|
-
};
|
|
404
|
-
const Tile = JSX((props) => {
|
|
405
|
-
const { children, className = '', version = 'primary', role } = props;
|
|
406
|
-
return (jsx("section", { className: `font-sans p-9 box-border ${className || ''} ${tileStyleMap[version]} ${getContainerPaddingRight(className)} ${getContainerMinHeight(className)} `, role: role, children: jsx(BaseTile, { ...props, children: children }) }));
|
|
407
|
-
});
|
|
408
|
-
function getContainerPaddingRight(className = '') {
|
|
371
|
+
function getTileMinHeight(className = '') {
|
|
409
372
|
const colSpan = getColSpan(className);
|
|
410
373
|
if (colSpan <= 6) {
|
|
411
|
-
return '
|
|
374
|
+
return 'min-h-[300px]';
|
|
412
375
|
}
|
|
413
376
|
else if (colSpan <= 8) {
|
|
414
|
-
return '
|
|
377
|
+
return 'min-h-[320px]';
|
|
415
378
|
}
|
|
416
379
|
else {
|
|
417
|
-
return '
|
|
380
|
+
return 'min-h-[360px]';
|
|
418
381
|
}
|
|
419
382
|
}
|
|
420
|
-
|
|
383
|
+
|
|
384
|
+
function getTileRightPadding(className = '') {
|
|
421
385
|
const colSpan = getColSpan(className);
|
|
422
386
|
if (colSpan <= 6) {
|
|
423
|
-
return '
|
|
387
|
+
return 'pr-9';
|
|
424
388
|
}
|
|
425
389
|
else if (colSpan <= 8) {
|
|
426
|
-
return '
|
|
390
|
+
return 'pr-[4.75rem]';
|
|
427
391
|
}
|
|
428
392
|
else {
|
|
429
|
-
return '
|
|
393
|
+
return 'pr-[9.4rem]';
|
|
430
394
|
}
|
|
431
395
|
}
|
|
432
396
|
|
|
@@ -443,12 +407,9 @@
|
|
|
443
407
|
version: 'secondary',
|
|
444
408
|
},
|
|
445
409
|
];
|
|
446
|
-
const ExchangeRateTile = JSX(({ className, context, title }) => {
|
|
410
|
+
const ExchangeRateTile = JSX(({ className = '', context, title = 'Курсы обмена валют' }) => {
|
|
447
411
|
const { data } = context.useAsyncData(CBR_EXCHANGE_RATE_URL, fetchExchangeRate);
|
|
448
|
-
return (jsx(
|
|
449
|
-
const value = (data?.Valute || {})[code]?.Value;
|
|
450
|
-
return (jsxs("tr", { children: [jsx(CurrencyTD, { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }), jsx("span", { className: "ml-2", children: code })] }) }), jsx(CurrencyTD, { className: "pt-4 pl-11", children: formatCurrency(value) })] }, code));
|
|
451
|
-
}) })] }) }));
|
|
412
|
+
return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsx(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: jsxs("table", { children: [jsx("thead", { children: jsxs("tr", { children: [jsx(CurrencyTH, { children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), jsx(CurrencyTH, { className: "pl-11", children: "\u041A\u0443\u0440\u0441" })] }) }), jsx("tbody", { children: CURRENCY_CODES.map(renderCurrencyRow(data)) })] }) }) }));
|
|
452
413
|
});
|
|
453
414
|
const CurrencyTH = JSX(({ className = '', children }) => (jsx("th", { className: `text-left font-normal text-sm text-secondary-text ${className}`, children: children })));
|
|
454
415
|
const CurrencyTD = JSX(({ className = '', children }) => (jsx("td", { className: `text-left font-normal text-base text-primary-text ${className}`, children: children })));
|
|
@@ -458,54 +419,213 @@
|
|
|
458
419
|
}
|
|
459
420
|
const currencyNumberFormat = new Intl.NumberFormat('ru', { style: 'currency', currency: 'RUB' });
|
|
460
421
|
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
422
|
+
const renderCurrencyRow = (data) => (code) => {
|
|
423
|
+
const value = (data?.Valute || {})[code]?.Value;
|
|
424
|
+
return (jsxs("tr", { children: [jsx(CurrencyTD, { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }), jsx("span", { className: "ml-2", children: code })] }) }), jsx(CurrencyTD, { className: "pt-4 pl-11", children: formatCurrency(value) })] }, code));
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
const Img = JSX(({ className = '', image }) => {
|
|
428
|
+
if (!image) {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
const style = {
|
|
432
|
+
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
433
|
+
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
434
|
+
};
|
|
435
|
+
return (jsxs("picture", { className: className, children: [image.sources?.length
|
|
436
|
+
? image.sources.map(({ src, format }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
437
|
+
: null, jsx("img", { src: image.src, className: `m-auto ${image.className || ''}`, alt: image.alt || image.title, title: image.title, style: style, ...image.size })] }));
|
|
438
|
+
});
|
|
439
|
+
function formatToMimeType(format) {
|
|
440
|
+
return format ? `image/${String(format)}` : undefined;
|
|
441
|
+
}
|
|
461
442
|
|
|
462
443
|
const Headline = JSX(({ bgColor = 'transparent', className = '', title, description, image }) => {
|
|
463
|
-
return (jsxs("section", { className: `px-4 py-6 ${bgColor} ${className}`, children: [title &&
|
|
444
|
+
return (jsxs("section", { className: `px-4 py-6 ${bgColor} ${className}`, children: [title && jsx(Heading, { headingType: "h2", className: "text-primary-text", title: title }), description && (jsx("p", { className: `font-normal text-m-md ${title ? 'mt-2.5' : ''}`, children: description })), image?.src && (jsx("div", { className: "mt-5 mx-auto flex justify-center", children: jsx(Img, { image: image }) }))] }));
|
|
464
445
|
});
|
|
465
446
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
447
|
+
/*
|
|
448
|
+
Calculates array of breakpoints for each scrollable element in container.
|
|
449
|
+
Returns array of tuples consisting of [start, end] boundary scrollLeft values.
|
|
450
|
+
*/
|
|
451
|
+
const getScrollPoints = ({ gap, padding, clientWidth, scrollWidth, childElementCount, itemWidth, }) => {
|
|
452
|
+
const scrollItemWidth = itemWidth + gap;
|
|
453
|
+
const scrollableDistance = scrollWidth - clientWidth;
|
|
454
|
+
const edgeScrollDistance = clientWidth - gap - padding;
|
|
455
|
+
const lastScrollableIdx = childElementCount - 2;
|
|
456
|
+
const scrollPoints = new Array(childElementCount)
|
|
457
|
+
.fill(0)
|
|
458
|
+
.map((_, idx) => idx === 0 || idx === lastScrollableIdx
|
|
459
|
+
? [
|
|
460
|
+
idx > 0 ? scrollableDistance - edgeScrollDistance : 0,
|
|
461
|
+
idx > 0 ? scrollableDistance : edgeScrollDistance,
|
|
462
|
+
]
|
|
463
|
+
: [
|
|
464
|
+
(idx - 1) * scrollItemWidth + edgeScrollDistance,
|
|
465
|
+
idx * scrollItemWidth + edgeScrollDistance,
|
|
466
|
+
]);
|
|
467
|
+
scrollPoints[childElementCount - 1] = [scrollableDistance, scrollWidth];
|
|
468
|
+
return scrollPoints;
|
|
470
469
|
};
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
470
|
+
|
|
471
|
+
/*
|
|
472
|
+
Returns object containing whole index part, and it's decimal part for a given
|
|
473
|
+
scrollLeft value of a container and an array of tuple containing values of a
|
|
474
|
+
start and end boundaries of a scrollable child, right boundary non-inclusive.
|
|
475
|
+
Returns object with index equal -1 and fraction equal 0 if scrollLeft is outside given scrollPoints
|
|
476
|
+
*/
|
|
477
|
+
const getIndexParts = (scrollLeft, scrollPoints) => {
|
|
478
|
+
const index = scrollPoints.findIndex(([start, end]) => start <= scrollLeft && scrollLeft < end);
|
|
479
|
+
if (index < 0)
|
|
480
|
+
return { index, fraction: 0 };
|
|
481
|
+
const [start, end] = scrollPoints[index];
|
|
482
|
+
const fraction = (scrollLeft - start) / (end - start);
|
|
483
|
+
return { index, fraction };
|
|
474
484
|
};
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
485
|
+
|
|
486
|
+
const SwipeListControlItem = JSX(({ className = '', children, ...rest }) => {
|
|
487
|
+
return (jsx("div", { className: `snap-center snap-always min-w-full ${className}`, role: "listitem", ...rest, children: children }));
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
// styles used to compensate outer container padding to get rid of clipping effect
|
|
491
|
+
const getContainerStyle = (padding) => {
|
|
492
|
+
return {
|
|
493
|
+
marginLeft: `${-padding}px`,
|
|
494
|
+
marginRight: `${-padding}px`,
|
|
495
|
+
paddingLeft: `${padding}px`,
|
|
496
|
+
paddingRight: `${padding}px`,
|
|
497
|
+
};
|
|
478
498
|
};
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
499
|
+
|
|
500
|
+
// column-gap between children of SwipeListControl container
|
|
501
|
+
const DEFAULT_GAP = 14;
|
|
502
|
+
/*
|
|
503
|
+
Horizontal padding used on a container above SwipeListControl.
|
|
504
|
+
Same value used on a SwipeListControlChildren container to compensate it
|
|
505
|
+
and get rid of a clipping effect caused by overflow: hidden.
|
|
506
|
+
*/
|
|
507
|
+
const DEFAULT_PADDING = 16;
|
|
508
|
+
// Classes used to compensate outer container padding, so that child elements won't be clipped
|
|
509
|
+
|
|
510
|
+
const SwipeListControlList = JSX(({ className = '', children, activeIndex, onScroll, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, }) => {
|
|
511
|
+
return (jsx("div", { className: `overflow-auto flex horizontal-list no-scrollbar ${className}`, style: { ...getContainerStyle(padding), gap: `${gap}px` }, role: "list", onScroll: onScroll, children: children?.length ? (children?.map((child, idx) => (jsx(SwipeListControlItem, { style: getContainerStyle(padding / 4), "aria-current": Boolean(activeIndex === idx), children: child }, String(idx))))) : (jsx(SwipeListControlItem, { children: children })) }));
|
|
486
512
|
});
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
513
|
+
|
|
514
|
+
const DOT_STYLES = 'bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full';
|
|
515
|
+
const BASE_DOT_WIDTH = 6;
|
|
516
|
+
const ACTIVE_DOT_WIDTH_CHANGE = 16;
|
|
517
|
+
const BASE_DOT_OPACITY = 0.3;
|
|
518
|
+
const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
|
|
519
|
+
const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction, showDots }) => {
|
|
520
|
+
return showDots && children?.length ? (jsx("div", { className: "flex gap-2 mx-auto mt-[22px] w-fit", children: children?.map((_, idx) => (jsx("div", { className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
|
|
521
|
+
});
|
|
522
|
+
const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
|
|
523
|
+
if (currentIdx < activeIndex || currentIdx > activeIndex + 1)
|
|
524
|
+
return null;
|
|
525
|
+
const leftIndexMod = 1 - indexFraction;
|
|
526
|
+
const rightIndexMod = indexFraction;
|
|
527
|
+
return currentIdx === activeIndex
|
|
528
|
+
? {
|
|
529
|
+
opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * leftIndexMod}`,
|
|
530
|
+
width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * leftIndexMod}px`,
|
|
531
|
+
}
|
|
532
|
+
: {
|
|
533
|
+
opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * rightIndexMod}`,
|
|
534
|
+
width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * rightIndexMod}px`,
|
|
535
|
+
};
|
|
494
536
|
};
|
|
537
|
+
|
|
538
|
+
const SwipeListControl = JSX(({ className, context, children, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, }) => {
|
|
539
|
+
const [activeIndex, setActiveIndex] = context.useState(0);
|
|
540
|
+
const [indexFraction, setIndexFraction] = context.useState(0);
|
|
541
|
+
const handleScroll = (e) => {
|
|
542
|
+
const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } = e.currentTarget;
|
|
543
|
+
// horizontal PADDING / 2 to compensate padding-margin combo of child container
|
|
544
|
+
// without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
|
|
545
|
+
const itemWidth = children[0].offsetWidth - padding / 2;
|
|
546
|
+
const scrollPoints = getScrollPoints({
|
|
547
|
+
gap,
|
|
548
|
+
padding,
|
|
549
|
+
clientWidth,
|
|
550
|
+
scrollWidth,
|
|
551
|
+
childElementCount,
|
|
552
|
+
itemWidth,
|
|
553
|
+
});
|
|
554
|
+
const { index, fraction } = getIndexParts(scrollLeft, scrollPoints);
|
|
555
|
+
setActiveIndex(index);
|
|
556
|
+
setIndexFraction(fraction);
|
|
557
|
+
};
|
|
558
|
+
return (jsxs("div", { className: className, children: [jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), jsx(SwipeListControlDots, { activeIndex: activeIndex, indexFraction: indexFraction, showDots: showDots, children: children })] }));
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
562
|
+
const { text, fileSize, ...linkProps } = doc;
|
|
563
|
+
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Icon, { className: iconClassName, name: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
564
|
+
});
|
|
495
565
|
const formatSuffix = (ext, fileSize) => {
|
|
496
566
|
const prefix = ext || fileSize ? ',' : '';
|
|
497
567
|
const extension = ext ? ` ${ext}` : '';
|
|
498
568
|
const size = fileSize ? ` (${fileSize})` : '';
|
|
499
569
|
return prefix + extension + size;
|
|
500
570
|
};
|
|
571
|
+
const getExtFromHref = (href) => {
|
|
572
|
+
if (!href)
|
|
573
|
+
return '';
|
|
574
|
+
const index = href.lastIndexOf('.');
|
|
575
|
+
return index !== -1 ? href.substring(index + 1) : '';
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (jsx(LinkDocsListItemBase, { className: `flex h-full ${className}`, iconClassName: "mr-2.5 min-w-6 min-h-6", doc: doc, icon: icon })));
|
|
579
|
+
|
|
580
|
+
const LinkDocsHorizontalList = JSX(({ context, hasBorder = true, documents, icon }) => {
|
|
581
|
+
return (jsx(SwipeListControl, { context: context, className: "text-m-sm text-primary-main", children: documents?.length
|
|
582
|
+
? documents.map((doc, i) => (jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-main-stroke border p-4' : '', doc: doc, icon: icon }, String(i))))
|
|
583
|
+
: null }));
|
|
584
|
+
});
|
|
501
585
|
|
|
502
|
-
const
|
|
503
|
-
return (
|
|
586
|
+
const LinkDocsVerticalList = JSX(({ hasBorder = true, documents, icon }) => {
|
|
587
|
+
return (jsx("div", { className: `text-m-sm text-primary-main flex flex-col ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
|
|
588
|
+
? documents.map((doc, i) => (jsx("div", { role: "listitem", children: jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-main-stroke border p-4' : '', doc: doc, icon: icon }) }, String(i))))
|
|
589
|
+
: null }));
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
const LinkDocs = JSX(({ className = '', context, title, subtitle, icon = 'DocIconMonoColor', documents, listMode = 'vertical', hasBorder = true, }) => {
|
|
593
|
+
return (jsxs("section", { className: `py-6 px-4 bg-white ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${subtitle ? 'mb-2' : 'mb-5'}`, title: title })) : null, subtitle ? jsx("h3", { className: "mb-5 text-center text-m-base", children: subtitle }) : null, listMode === 'vertical' ? (jsx(LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : (jsx(LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
const PictureText = JSX(({ className = '', title, image, benefits }) => {
|
|
597
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: "mr-6", image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map(renderBenefit$1) })) : null] })] }));
|
|
504
598
|
});
|
|
505
599
|
function renderBenefit$1(benefit, i) {
|
|
506
|
-
return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48" })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
|
|
600
|
+
return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48", asSVG: true })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
|
|
507
601
|
}
|
|
508
602
|
|
|
603
|
+
const LIST_STYLE_CLASSES$1 = 'rounded-full inline-block mr-3';
|
|
604
|
+
const TEXT_STYLE_MAP$1 = {
|
|
605
|
+
primary: 'text-primary-text',
|
|
606
|
+
secondary: 'text-white',
|
|
607
|
+
gray: 'text-secondary-text',
|
|
608
|
+
};
|
|
609
|
+
const LIST_STYLE_MAP$1 = {
|
|
610
|
+
primary: 'bg-primary-main',
|
|
611
|
+
secondary: 'bg-white',
|
|
612
|
+
gray: 'bg-secondary-text',
|
|
613
|
+
};
|
|
614
|
+
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
615
|
+
return (jsxs("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle$1(version) }), jsx("span", { className: TEXT_STYLE_MAP$1[version], children: children })] }));
|
|
616
|
+
});
|
|
617
|
+
const getListStyle$1 = (version) => {
|
|
618
|
+
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
619
|
+
return `${LIST_STYLE_CLASSES$1} ${LIST_STYLE_MAP$1[version]} ${size}`;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
const List = JSX((props) => {
|
|
623
|
+
const { className = '', itemClassName, isDotted, items, version } = props;
|
|
624
|
+
return (jsx("section", { className: `${className}`, role: "list", children: items?.length
|
|
625
|
+
? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
626
|
+
: null }));
|
|
627
|
+
});
|
|
628
|
+
|
|
509
629
|
const textBlockStyleMaps = {
|
|
510
630
|
primary: {
|
|
511
631
|
background: 'bg-white',
|
|
@@ -526,13 +646,10 @@
|
|
|
526
646
|
description: 'text-secondary-text',
|
|
527
647
|
},
|
|
528
648
|
};
|
|
529
|
-
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items }) => {
|
|
649
|
+
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
530
650
|
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
531
|
-
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ?
|
|
651
|
+
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, version: "gray", className: "mt-1 text-m-sm text-secondary-text" })) : null] })] }));
|
|
532
652
|
});
|
|
533
|
-
function renderItems(items = [], version) {
|
|
534
|
-
return (jsx("section", { className: "mt-1", role: "list", children: items.map((_, i) => (jsx(BlockItem, { text: _, version: version }, String(i)))) }));
|
|
535
|
-
}
|
|
536
653
|
function renderIcon(className) {
|
|
537
654
|
return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
538
655
|
}
|
|
@@ -540,11 +657,155 @@
|
|
|
540
657
|
return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
541
658
|
}
|
|
542
659
|
|
|
660
|
+
const Description = JSX((props) => {
|
|
661
|
+
const { className, description } = props;
|
|
662
|
+
return jsx("div", { className: `font-normal text-base ${className || ''}`, children: description });
|
|
663
|
+
});
|
|
664
|
+
|
|
665
|
+
const tileStyleMap = {
|
|
666
|
+
primary: 'bg-white text-primary-text',
|
|
667
|
+
secondary: 'bg-primary-main text-white',
|
|
668
|
+
};
|
|
669
|
+
const Tile = JSX((props) => {
|
|
670
|
+
const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, } = props;
|
|
671
|
+
return (jsx("section", { className: `font-sans p-9 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] ${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), children, items?.length ? jsx(List, { items: items }) : null] }) }));
|
|
672
|
+
});
|
|
673
|
+
|
|
674
|
+
const productTileStyleMap = {
|
|
675
|
+
primary: 'bg-white text-primary-text',
|
|
676
|
+
secondary: 'bg-primary-main text-white',
|
|
677
|
+
};
|
|
678
|
+
const ProductTile = JSX(({ context, className = '', title, description, benefits, buttons, image, version = 'primary', }) => {
|
|
679
|
+
return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), jsxs("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? (jsx("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) })) : null, benefits?.length ? (jsx("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] })] }) }));
|
|
680
|
+
});
|
|
681
|
+
function renderBenefitLabel(benefit, i) {
|
|
682
|
+
return (jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
|
|
683
|
+
}
|
|
684
|
+
function renderBenefitDescription(benefit, i, version = 'primary') {
|
|
685
|
+
const labelStyleMap = {
|
|
686
|
+
primary: 'text-secondary-text',
|
|
687
|
+
secondary: 'text-white',
|
|
688
|
+
};
|
|
689
|
+
return (jsx("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.description }, String(i)));
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
const blockStyle = {
|
|
693
|
+
primary: 'bg-white',
|
|
694
|
+
secondary: 'bg-primary-main text-white',
|
|
695
|
+
};
|
|
696
|
+
const Gallery = JSX(({ context, title, description, cards = [], className, isScroll = true }) => {
|
|
697
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), description ? (jsx("div", { className: "font-normal text-m-md max-w-[600px] mt-2", children: description })) : null] }), renderCardsLayout(isScroll, cards, context)] }));
|
|
698
|
+
});
|
|
699
|
+
function renderCardsLayout(isScroll, cards, context) {
|
|
700
|
+
return isScroll ? (jsx(SwipeListControl, { context: context, children: cards?.map(renderCard$1) })) : (jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard$1) }));
|
|
701
|
+
}
|
|
702
|
+
function renderCard$1(card, key) {
|
|
703
|
+
return (jsxs("div", { className: `box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
704
|
+
${blockStyle[card.version ?? 'primary']}`, role: "listitem", children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: card.image }) })) : null, card.title ? jsx("h4", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items) : null] }), card?.button?.href ? jsx(Button, { className: "mt-3", ...card.button }) : null] }, key));
|
|
705
|
+
}
|
|
706
|
+
function renderDescription(card) {
|
|
707
|
+
return (jsx("div", { className: `text-secondary-text mt-2 ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
|
|
708
|
+
}
|
|
709
|
+
function renderItems(items) {
|
|
710
|
+
return (jsx("section", { className: "mt-3", children: items.map((item) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: "text-m-sm text-secondary-text pl-2", children: item.text })] }))) }));
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
714
|
+
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
const ARROW_PATHS = [
|
|
718
|
+
{
|
|
719
|
+
d: 'm9 12 4-4-4-4',
|
|
720
|
+
stroke: 'currentColor',
|
|
721
|
+
strokeWidth: '2',
|
|
722
|
+
strokeLinecap: 'round',
|
|
723
|
+
fill: 'none',
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
d: 'M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z',
|
|
727
|
+
},
|
|
728
|
+
];
|
|
729
|
+
const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
|
|
730
|
+
? 'bg-secondary-light text-secondary-text'
|
|
731
|
+
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(SVG, { paths: ARROW_PATHS, viewBox: "0 0 16 16", fill: "none", width: "16", height: "16" }) })));
|
|
732
|
+
|
|
733
|
+
const cardVersionMap = {
|
|
734
|
+
primary: 'bg-white text-secondary-text',
|
|
735
|
+
secondary: 'bg-primary-main text-white',
|
|
736
|
+
};
|
|
737
|
+
const galleryLengthForScrollMap = {
|
|
738
|
+
normal: 3,
|
|
739
|
+
mini: 4,
|
|
740
|
+
};
|
|
741
|
+
const cardStyleMap = {
|
|
742
|
+
normal: 'min-w-[364px] w-[364px]',
|
|
743
|
+
mini: 'min-w-[260px] w-[260px]',
|
|
744
|
+
};
|
|
745
|
+
const cardWidthMap = {
|
|
746
|
+
normal: 380,
|
|
747
|
+
mini: 276,
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
|
|
751
|
+
const TEXT_STYLE_MAP = {
|
|
752
|
+
primary: 'text-primary-text',
|
|
753
|
+
secondary: 'text-white',
|
|
754
|
+
gray: 'text-secondary-text',
|
|
755
|
+
};
|
|
756
|
+
const LIST_STYLE_MAP = {
|
|
757
|
+
primary: 'bg-primary-main',
|
|
758
|
+
secondary: 'bg-white',
|
|
759
|
+
gray: 'bg-secondary-text',
|
|
760
|
+
};
|
|
761
|
+
const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
762
|
+
return (jsxs("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle(version) }), jsx("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
763
|
+
});
|
|
764
|
+
const getListStyle = (version) => {
|
|
765
|
+
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
766
|
+
return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
|
|
770
|
+
return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description ? jsx("div", { className: `font-normal text-sm mt-2`, children: description }) : null, items?.length ? (jsx("section", { className: `max-w-[308px] mt-2`, role: "list", children: items.map((item, i) => renderItem(item.text, i, version)) })) : null] }), button?.text && jsx(Button, { className: "mt-6", ...button })] }));
|
|
771
|
+
});
|
|
772
|
+
function renderCardTitle(title, description, items) {
|
|
773
|
+
return (jsx("div", { className: `font-medium text-xl m-0 ${!description && !items?.length ? 'text-center' : ''}`, children: title }));
|
|
774
|
+
}
|
|
775
|
+
function renderItem(item, i, version) {
|
|
776
|
+
return (jsx(BlockItem, { version: version ?? 'primary', children: jsx("span", { className: "text-sm", children: item }) }, String(i)));
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
const GalleryContainer = JSX(({ context, title, description, cards = [], version = 'normal', activeCardIndex }) => {
|
|
780
|
+
return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsxs("div", { className: "flex flex-col items-center mb-8", children: [title ? jsx(Heading, { headingType: "h2", className: "text-center", title: title }) : null, description ? (jsx("div", { className: "font-normal text-base max-w-[600px] mt-2.5", children: description })) : null] }), jsx("div", { className: `flex ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
|
|
781
|
+
});
|
|
782
|
+
function renderCard({ card, version }, i) {
|
|
783
|
+
return (jsx("section", { className: `box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between
|
|
784
|
+
items-stretch ${cardStyleMap[version]} ${cardVersionMap[card.version ?? 'primary']} w-full col-span-4`, role: "listitem", children: jsx(GalleryCardInner, { ...card }) }, String(i)));
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
const GalleryInner = JSX(({ context, cards = [], className = '', version = 'normal', ...rest }) => {
|
|
788
|
+
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
789
|
+
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
790
|
+
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
791
|
+
const isGalleryScrollAvailable = cards?.length > galleryLengthForScrollMap[version];
|
|
792
|
+
const showNextButton = isGalleryScrollAvailable &&
|
|
793
|
+
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
794
|
+
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
795
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-1 z-10", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })] }));
|
|
796
|
+
});
|
|
797
|
+
|
|
798
|
+
const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
|
|
799
|
+
|
|
543
800
|
const AccordionBlocks = {
|
|
544
801
|
Headline,
|
|
545
802
|
LinkDocs,
|
|
546
803
|
TextBlock,
|
|
547
804
|
PictureText,
|
|
805
|
+
Tile,
|
|
806
|
+
ProductTile,
|
|
807
|
+
Gallery,
|
|
808
|
+
MiniGallery,
|
|
548
809
|
};
|
|
549
810
|
|
|
550
811
|
const AccordionItemInner = JSX(({ blocks, context }) => {
|
|
@@ -583,15 +844,11 @@
|
|
|
583
844
|
blocks,
|
|
584
845
|
});
|
|
585
846
|
return (jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0 py-[14px]'} border-solid border-main-divider`, children: [jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
586
|
-
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24" }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
847
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
587
848
|
});
|
|
588
849
|
|
|
589
850
|
const Accordion = JSX(({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
590
|
-
return (jsxs("section", { className: `py-6 font-sans bg-white text-primary-text ${bordered ? 'px-4' : ''} ${className}`, children: [title ?
|
|
591
|
-
});
|
|
592
|
-
|
|
593
|
-
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
594
|
-
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
851
|
+
return (jsxs("section", { className: `py-6 font-sans bg-white text-primary-text ${bordered ? 'px-4' : ''} ${className}`, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-md text-center", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem${i}`))) })) : null] }));
|
|
595
852
|
});
|
|
596
853
|
|
|
597
854
|
const LOGO_PATHS = [
|
|
@@ -610,7 +867,7 @@
|
|
|
610
867
|
transparent: 'text-white',
|
|
611
868
|
};
|
|
612
869
|
const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', hideTitle }) => {
|
|
613
|
-
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', children: [jsx(SVG, { className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, viewBox: "0 0 40 45", paths: LOGO_PATHS.map((d) => ({ d })) }), !hideTitle && (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
|
|
870
|
+
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [jsx(SVG, { className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, viewBox: "0 0 40 45", paths: LOGO_PATHS.map((d) => ({ d })) }), !hideTitle && (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
|
|
614
871
|
});
|
|
615
872
|
|
|
616
873
|
const MobileAppTile = JSX(({ className, title = 'Мобильное приложение', description, href = '#' }) => {
|
|
@@ -661,10 +918,10 @@
|
|
|
661
918
|
{ origins: ['ok.ru'], icon: 'OkIcon', label: 'Одноклассники', width: '12px', height: '20px' },
|
|
662
919
|
];
|
|
663
920
|
const MediaButton = JSX(({ href }) => {
|
|
664
|
-
const { icon, width, height } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
921
|
+
const { icon, width, height, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
665
922
|
if (!icon)
|
|
666
923
|
return null;
|
|
667
|
-
return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main", href: href, target: "_blank", rel: "noopener noreferrer", children: Icon && jsx(Icon, { name: icon, width: width, height: height, asSVG: true, className: "block" }) }));
|
|
924
|
+
return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main", href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: Icon && jsx(Icon, { name: icon, width: width, height: height, asSVG: true, className: "block" }) }));
|
|
668
925
|
});
|
|
669
926
|
|
|
670
927
|
const SocialMedia = JSX(({ className, media, context }) => {
|
|
@@ -726,7 +983,11 @@
|
|
|
726
983
|
return activeSubItem;
|
|
727
984
|
};
|
|
728
985
|
|
|
729
|
-
const
|
|
986
|
+
const checkIsHrefSameOrigin = (href, router) => getOrigin(href) === getOrigin(router.href);
|
|
987
|
+
|
|
988
|
+
const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) ||
|
|
989
|
+
isHrefActive(topItem.href, router) ||
|
|
990
|
+
checkIsHrefSameOrigin(topItem.href, router);
|
|
730
991
|
|
|
731
992
|
const cmp = (a) => (b) => a?.href === b?.href;
|
|
732
993
|
const substitute = (items, substitution) => (items || []).map((_) => substitution?.find(cmp(_)) || _);
|
|
@@ -773,7 +1034,7 @@
|
|
|
773
1034
|
return (jsxs(Button, { href: href, className: "flex text-sm mb-4", children: [icon ? jsx(Icon, { className: "pr-1", name: icon, width: "24", height: "24", asSVG: true }) : null, jsx("span", { className: "pl-0.5 font-medium", children: text })] }, `headerSubMenu-${i}`));
|
|
774
1035
|
};
|
|
775
1036
|
|
|
776
|
-
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pr-4", onClick: onClick, children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
1037
|
+
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pr-4", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
777
1038
|
|
|
778
1039
|
const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems, burgerSubMenu }) => {
|
|
779
1040
|
const router = context.useRouter();
|
|
@@ -785,7 +1046,7 @@
|
|
|
785
1046
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
786
1047
|
const [burgerMenuShow, setBurgerMenuShow] = context.useState(false);
|
|
787
1048
|
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
788
|
-
return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0", children: [jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-
|
|
1049
|
+
return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0", children: [jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: jsx("div", { className: "flex", children: subItems?.map((_, i) => renderSubItem({
|
|
789
1050
|
...useLink({ router, handlerDecorator }, _),
|
|
790
1051
|
active: _ === activeSubItem,
|
|
791
1052
|
bgColor,
|
|
@@ -794,8 +1055,8 @@
|
|
|
794
1055
|
const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-sm", ...item }, String(i)));
|
|
795
1056
|
|
|
796
1057
|
const GOLDEN_RATIO = 1.618;
|
|
797
|
-
const Placeholder = JSX(({ className, context, title }) => {
|
|
798
|
-
return (jsx(Tile, { className: className
|
|
1058
|
+
const Placeholder = JSX(({ className = '', context, title }) => {
|
|
1059
|
+
return (jsx(Tile, { className: `pr-0 min-h-0 ${className}`, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: jsx("figure", { className: "m-0", children: renderShimmer() }) }));
|
|
799
1060
|
});
|
|
800
1061
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
801
1062
|
.map((_) => Math.floor(_))
|
|
@@ -812,11 +1073,11 @@
|
|
|
812
1073
|
secondary: 'text-white',
|
|
813
1074
|
};
|
|
814
1075
|
function renderBenefit(benefit, i, version) {
|
|
815
|
-
return (jsxs("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon && (jsx(Icon, { className: "w-[25px] h-[25px] rounded-full box-border", name: benefit.icon, width: "24", height: "24" })), jsx("
|
|
1076
|
+
return (jsxs("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon && (jsx(Icon, { className: "w-[25px] h-[25px] rounded-full box-border", name: benefit.icon, width: "24", height: "24", asSVG: true })), jsx("div", { className: `font-medium text-m-base m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-m-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] }, String(i)));
|
|
816
1077
|
}
|
|
817
1078
|
|
|
818
|
-
const ProductBlockInner = JSX(({ className, context, title,
|
|
819
|
-
return (jsxs("div", { className: `${className
|
|
1079
|
+
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
1080
|
+
return (jsxs("div", { className: `${className}`, children: [jsx("div", { children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: [description && jsx(Description, { description: description }), benefits?.length ? (jsx("div", { className: "mt-[19px]", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? jsx(List, { items: items }) : null] }) }), image?.src && (jsx("div", { className: "mt-5", children: jsx(Img, { image: { className: 'block', ...image } }) }))] }));
|
|
820
1081
|
});
|
|
821
1082
|
|
|
822
1083
|
const ProductBlock = JSX(
|
|
@@ -826,28 +1087,29 @@
|
|
|
826
1087
|
return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${className || ''}`, children: jsx(ProductBlockInner, { ...props }) }));
|
|
827
1088
|
});
|
|
828
1089
|
|
|
829
|
-
const ProductGalleryBlock = JSX(({ block,
|
|
830
|
-
return (jsx("section", { className: "flex grow-0 shrink-0 basis-full px-4 py-6", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { context: context,
|
|
1090
|
+
const ProductGalleryBlock = JSX(({ block, headingType, context }) => {
|
|
1091
|
+
return (jsx("section", { className: "flex grow-0 shrink-0 basis-full px-4 py-6", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
831
1092
|
});
|
|
832
1093
|
|
|
833
1094
|
const ProductGallery = JSX(({ className, context, duration = 0, slides = [] }) => {
|
|
834
1095
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
835
1096
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
836
1097
|
return (jsxs("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, children: [jsx("div", { className: `flex duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((block, i) => (jsx(ProductGalleryBlock, { block: block, context: context }, String(i)))) }), jsx("div", { className: "flex px-4 py-6", children: slides.map((_, i) => renderNavButton({
|
|
1098
|
+
slide: _.productBlock,
|
|
837
1099
|
i,
|
|
838
1100
|
activeSlideIndex,
|
|
839
1101
|
onClick: () => setActiveSlideIndex(i),
|
|
840
1102
|
duration,
|
|
841
1103
|
})) })] }));
|
|
842
1104
|
});
|
|
843
|
-
function renderNavButton({ i, activeSlideIndex, onClick, duration }) {
|
|
1105
|
+
function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
|
|
844
1106
|
const isActiveBtn = i === activeSlideIndex;
|
|
845
1107
|
const progressBarClassName = isActiveBtn ? 'animate-slide bg-primary-main' : 'bg-main-divider';
|
|
846
|
-
return (jsx("button", { type: "button", onClick: onClick, className: `relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0`, children: jsx("div", { className: `absolute bottom-0 left-0 w-full h-[3px] ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } }) }, String(i)));
|
|
1108
|
+
return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0`, children: jsx("div", { className: `absolute bottom-0 left-0 w-full h-[3px] ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } }) }, String(i)));
|
|
847
1109
|
}
|
|
848
1110
|
|
|
849
1111
|
const StepsBlock = JSX(({ className, title, description, steps, size = 'normal' }) => {
|
|
850
|
-
return (jsxs("section", { className: `box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${className || ''}`, children: [title &&
|
|
1112
|
+
return (jsxs("section", { className: `box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${className || ''}`, children: [title && jsx(Heading, { headingType: "h3", className: "text-center", title: title }), description && jsx("p", { className: `text-m-md text-center ${title && 'mt-2'}`, children: description }), steps?.length ? (jsx("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: jsx("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map((step, i) => renderStepTitle({ step, size, i, length: steps.length })) }) })) : null] }));
|
|
851
1113
|
});
|
|
852
1114
|
const renderStepTitle = (params) => {
|
|
853
1115
|
const { step, size, i, length } = params;
|
|
@@ -861,7 +1123,7 @@
|
|
|
861
1123
|
: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
|
|
862
1124
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
863
1125
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
864
|
-
return (jsx("div", { className: `${iconAreaSize} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium text-secondary-text self-center ${iconTextSize}`, children: (step.icon && jsx(Icon, { name: step.icon, width: iconSize, height: iconSize })) || i + 1 }) }));
|
|
1126
|
+
return (jsx("div", { className: `${iconAreaSize} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium text-secondary-text self-center ${iconTextSize}`, children: (step.icon && jsx(Icon, { name: step.icon, width: iconSize, height: iconSize, asSVG: true })) || i + 1 }) }));
|
|
865
1127
|
};
|
|
866
1128
|
|
|
867
1129
|
const Blocks = {
|
|
@@ -869,6 +1131,7 @@
|
|
|
869
1131
|
Footer,
|
|
870
1132
|
Header,
|
|
871
1133
|
Headline,
|
|
1134
|
+
LinkDocs,
|
|
872
1135
|
Placeholder,
|
|
873
1136
|
ProductBlock,
|
|
874
1137
|
ProductGallery,
|
|
@@ -907,10 +1170,8 @@
|
|
|
907
1170
|
blockClassName: style2className(block.style),
|
|
908
1171
|
block,
|
|
909
1172
|
render: (props) => {
|
|
910
|
-
const { version, content
|
|
911
|
-
return (jsx(BlockComponent, { className: props.blockClassName, version: version, context: context, ...content,
|
|
912
|
-
? blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i))
|
|
913
|
-
: null }, `${type}-${i}`));
|
|
1173
|
+
const { version, content } = props.block;
|
|
1174
|
+
return (jsx(BlockComponent, { className: props.blockClassName, version: version, context: context, ...content }, `${type}-${i}`));
|
|
914
1175
|
},
|
|
915
1176
|
}, `block-${i}`);
|
|
916
1177
|
}
|
|
@@ -925,7 +1186,16 @@
|
|
|
925
1186
|
: null, children] }));
|
|
926
1187
|
});
|
|
927
1188
|
|
|
928
|
-
function
|
|
1189
|
+
function isBlockInRegistry(block, registry) {
|
|
1190
|
+
return block.type in registry;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
function normalizeBlock(block) {
|
|
1194
|
+
const { mobile, ...rest } = block;
|
|
1195
|
+
return mobile ? { ...rest, ...mobile, content: { ...rest.content, ...mobile.content } } : block;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
function normalizePage(contentPage) {
|
|
929
1199
|
const { blocks, slots } = contentPage;
|
|
930
1200
|
return {
|
|
931
1201
|
...contentPage,
|
|
@@ -941,19 +1211,9 @@
|
|
|
941
1211
|
};
|
|
942
1212
|
}
|
|
943
1213
|
function getMobileBlocks(blocks) {
|
|
944
|
-
return blocks
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
const { mobile } = block;
|
|
948
|
-
if (mobile) {
|
|
949
|
-
return {
|
|
950
|
-
...block,
|
|
951
|
-
style: mobile.style?.length ? mobile.style : block.style,
|
|
952
|
-
};
|
|
953
|
-
}
|
|
954
|
-
else {
|
|
955
|
-
return block;
|
|
956
|
-
}
|
|
1214
|
+
return blocks
|
|
1215
|
+
?.filter((block) => isBlockInRegistry(block, Blocks) && !block.mobile?.hidden)
|
|
1216
|
+
.map(normalizeBlock);
|
|
957
1217
|
}
|
|
958
1218
|
|
|
959
1219
|
function joinList(sep) {
|
|
@@ -968,9 +1228,9 @@
|
|
|
968
1228
|
exports.Icon = Icon;
|
|
969
1229
|
exports.LikeAPI = LikeAPI;
|
|
970
1230
|
exports.joinList = joinList;
|
|
1231
|
+
exports.normalizePage = normalizePage;
|
|
971
1232
|
exports.projectSettings = projectSettings;
|
|
972
1233
|
exports.setup = setup;
|
|
973
|
-
exports.toMobilePage = toMobilePage;
|
|
974
1234
|
exports.url = url;
|
|
975
1235
|
|
|
976
1236
|
Object.defineProperty(exports, '__esModule', { value: true });
|