@redneckz/wildless-cms-uni-blocks 0.2.116 → 0.3.2
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 +356 -286
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +1 -1
- 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 -5
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +3 -6
- package/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/dist/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +4 -4
- 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 +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +2 -2
- 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 +28 -0
- package/dist/components/ContentPage/normalizePage.js.map +1 -0
- package/dist/components/ContentPage/normalizePage.mobile.d.ts +2 -0
- package/dist/components/ContentPage/normalizePage.mobile.js +30 -0
- 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/Gallery/Gallery.mobile.js +18 -7
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +4 -4
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.js +4 -5
- 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/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +2 -2
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +6 -6
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- 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 -11
- package/dist/components/PictureText/PictureText.js +4 -4
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +4 -2
- package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- 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.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- 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 +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- 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 +3 -2
- package/dist/icons/IconName.js +1 -0
- package/dist/icons/IconName.js.map +1 -1
- 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/types.d.ts +5 -5
- package/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/dist/ui-kit/BlockItem/BlockItem.js +8 -9
- 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 +4 -1
- package/dist/ui-kit/Heading/Heading.js +7 -4
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.d.ts +4 -1
- package/dist/ui-kit/Heading/Heading.mobile.js +6 -3
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/{lib/ui-kit/Heading/HeadingProps.d.ts → dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
- 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 -0
- package/dist/ui-kit/{Img.d.ts → 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/{Heading/HeadingProps.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/{mobile/dist/ui-kit/Heading/HeadingProps.js → dist/ui-kit/List/ListContent.js} +1 -1
- 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/dist/ui-kit/List/ListProps.js +2 -0
- package/dist/ui-kit/List/ListProps.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +1 -1
- 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 -5
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +3 -6
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
- 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 +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +2 -2
- 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 +25 -0
- package/lib/components/ContentPage/normalizePage.js.map +1 -0
- package/lib/components/ContentPage/normalizePage.mobile.d.ts +2 -0
- package/lib/components/ContentPage/{toMobilePage.js → normalizePage.mobile.js} +11 -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/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 +18 -7
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +4 -4
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.js +5 -6
- 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/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +2 -2
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +6 -6
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- 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 -11
- package/lib/components/PictureText/PictureText.js +4 -4
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +4 -2
- package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- 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.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +3 -3
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- 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 +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- 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 +3 -2
- package/lib/icons/IconName.js +1 -0
- package/lib/icons/IconName.js.map +1 -1
- 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/types.d.ts +5 -5
- package/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/lib/ui-kit/BlockItem/BlockItem.js +8 -9
- 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 +4 -1
- package/lib/ui-kit/Heading/Heading.js +7 -4
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.d.ts +4 -1
- package/lib/ui-kit/Heading/Heading.mobile.js +6 -3
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/{mobile/dist/ui-kit/Heading/HeadingProps.d.ts → lib/ui-kit/Heading/HeadingContent.d.ts} +6 -4
- 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 -0
- package/{mobile/dist/ui-kit → lib/ui-kit/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/mobile/bundle/bundle.umd.js +346 -200
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +1 -1
- 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 +3 -6
- package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/dist/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +4 -4
- 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 +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -2
- 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/mobile/dist/components/ContentPage/normalizePage.js +30 -0
- 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/Gallery/Gallery.js +18 -7
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +4 -4
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +4 -5
- 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/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +6 -6
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
- package/mobile/dist/components/PictureText/PictureText.js +4 -4
- 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/PlaceholderContent.d.ts +2 -3
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- 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/ProductGalleryBlock.d.ts +3 -3
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- 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 +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- 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 +3 -2
- package/mobile/dist/icons/IconName.js +1 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- 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/types.d.ts +5 -5
- package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +8 -9
- 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 +4 -1
- package/mobile/dist/ui-kit/Heading/Heading.js +6 -3
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/{dist/ui-kit/Heading/HeadingProps.d.ts → mobile/dist/ui-kit/Heading/HeadingContent.d.ts} +6 -4
- 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 -0
- package/{lib/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/lib/components/Accordion/Accordion.js +1 -1
- 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 +3 -6
- package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +1 -0
- package/mobile/lib/components/BaseTile/{getHeadingType.js → getTileHeadingType.js} +2 -2
- 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 +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +6 -4
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -2
- 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/mobile/lib/components/ContentPage/{toMobilePage.js → normalizePage.js} +11 -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/Gallery/Gallery.js +18 -7
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +4 -4
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +5 -6
- 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/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +6 -6
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +0 -1
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +5 -11
- package/mobile/lib/components/PictureText/PictureText.js +4 -4
- 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/PlaceholderContent.d.ts +2 -3
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -4
- 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/ProductGalleryBlock.d.ts +3 -3
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- 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 +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- 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 +3 -2
- package/mobile/lib/icons/IconName.js +1 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- 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/types.d.ts +5 -5
- package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +1 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +8 -9
- 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 +4 -1
- package/mobile/lib/ui-kit/Heading/Heading.js +6 -3
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/{HeadingProps.d.ts → HeadingContent.d.ts} +6 -4
- 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 -0
- 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/src/components/Accordion/Accordion.tsx +1 -1
- 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 -41
- package/mobile/src/components/BaseTile/BaseTileProps.ts +5 -7
- package/{src/components/BaseTile/getHeadingType.ts → mobile/src/components/BaseTile/getTileHeadingType.ts} +1 -1
- 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 +3 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +2 -2
- package/mobile/src/components/ContentPage/ContentPage.page.json +1620 -133
- 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} +13 -14
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- package/mobile/src/components/Gallery/Gallery.tsx +57 -38
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -11
- package/mobile/src/components/Gallery/GalleryContainer.tsx +8 -9
- 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/HeaderSecondaryMenu.tsx +4 -4
- package/mobile/src/components/Headline/Headline.tsx +2 -2
- package/mobile/src/components/Headline/HeadlineContent.ts +11 -9
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +10 -6
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
- package/mobile/src/components/PictureText/PictureText.tsx +4 -3
- package/mobile/src/components/PictureText/PictureTextContent.ts +5 -2
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +3 -3
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +21 -10
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +26 -11
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +1 -0
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
- 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 +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +5 -1
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
- 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 +0 -2
- package/mobile/src/icons/AtmIcon.svg +5 -5
- package/mobile/src/icons/BankIcon.svg +9 -9
- 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 +1 -1
- 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 +0 -2
- package/mobile/src/icons/CloseIcon.svg +1 -1
- package/mobile/src/icons/ComfortableCompIcon.svg +0 -2
- package/mobile/src/icons/CreditCardsIcon.svg +1 -1
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -1
- package/mobile/src/icons/DocIcon.svg +4 -4
- 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 +1 -1
- 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/GlobalIcon.svg +1 -1
- package/mobile/src/icons/IconName.ts +3 -3
- 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/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 +0 -2
- package/mobile/src/icons/OfficeIcon.svg +1 -1
- package/mobile/src/icons/OkIcon.svg +1 -1
- package/mobile/src/icons/PassSendIcon.svg +0 -2
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
- package/mobile/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/mobile/src/icons/PersonalCardIcon.svg +1 -1
- package/mobile/src/icons/PlusIcon.svg +1 -1
- package/mobile/src/icons/Profile2UserIcon.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 +0 -2
- 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/types.ts +6 -5
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
- 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 +14 -5
- package/mobile/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
- package/mobile/src/ui-kit/Icon/Icon.tsx +16 -3
- package/mobile/src/ui-kit/Icon/IconProps.ts +7 -0
- 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/package.json +4 -4
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +8 -8
- package/src/components/Accordion/Accordion.fixture.tsx +52 -8
- package/src/components/Accordion/Accordion.mobile.tsx +1 -1
- package/src/components/Accordion/Accordion.tsx +1 -1
- 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 -36
- package/src/components/BaseTile/BaseTileProps.ts +5 -7
- package/{mobile/src/components/BaseTile/getHeadingType.ts → src/components/BaseTile/getTileHeadingType.ts} +1 -1
- package/src/components/BaseTile/getTileMinHeight.ts +12 -0
- package/src/components/BaseTile/getTileRightPadding.ts +12 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -1
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +7 -4
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -0
- package/src/components/ComparisonTable/ComparisonTable.tsx +5 -1
- package/src/components/ComparisonTable/HeaderCell.tsx +2 -2
- 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 +1 -1
- 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} +13 -14
- package/src/components/ContentPage/normalizePage.ts +35 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +60 -36
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -4
- 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 +57 -38
- package/src/components/Gallery/GalleryCardInner.tsx +8 -11
- package/src/components/Gallery/GalleryContainer.tsx +8 -9
- 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/HeaderSecondaryMenu.tsx +4 -4
- package/src/components/Headline/Headline.mobile.tsx +2 -2
- package/src/components/Headline/Headline.tsx +3 -1
- package/src/components/Headline/HeadlineContent.ts +11 -9
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +10 -6
- package/src/components/LinkDocs/LinkDocs.tsx +4 -4
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
- package/src/components/LinkDocs/linkDocsContentExample.ts +0 -1
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +47 -20
- package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -15
- package/src/components/PictureText/PictureText.tsx +4 -3
- package/src/components/PictureText/PictureTextContent.ts +5 -2
- package/src/components/Placeholder/PlaceholderContent.ts +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +21 -10
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +26 -11
- package/src/components/ProductBlock/ProductBlockInner.tsx +28 -12
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +1 -0
- package/src/components/ProductBlock/renderBenefit.tsx +1 -0
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +4 -0
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +4 -4
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -4
- 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.tsx +41 -14
- package/src/components/PromoTile/PromoTileContent.ts +11 -5
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.tsx +5 -1
- package/src/components/TariffsTable/TariffsTableCell.tsx +3 -2
- 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 +37 -23
- 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 +0 -2
- package/src/icons/AtmIcon.svg +5 -5
- package/src/icons/BankIcon.svg +9 -9
- 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 +1 -1
- 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 +0 -2
- package/src/icons/CloseIcon.svg +1 -1
- package/src/icons/ComfortableCompIcon.svg +0 -2
- package/src/icons/CreditCardsIcon.svg +1 -1
- package/src/icons/DiscountShapeIcon.svg +1 -1
- package/src/icons/DocIcon.svg +4 -4
- 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 +1 -1
- package/src/icons/EmptyWalletWhiteIcon.svg +1 -1
- package/src/icons/EuroIcon.svg +1 -1
- package/src/icons/GeolocationIcon.svg +3 -3
- package/src/icons/GlobalIcon.svg +1 -1
- package/src/icons/IconName.ts +3 -3
- package/src/icons/InterestGrowthIcon.svg +1 -1
- package/src/icons/InterestIcon.svg +1 -1
- package/src/icons/JCBIcon.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 +0 -2
- package/src/icons/OfficeIcon.svg +1 -1
- package/src/icons/OkIcon.svg +1 -1
- package/src/icons/PassSendIcon.svg +0 -2
- package/src/icons/PercentageRoundIcon.svg +1 -1
- package/src/icons/PercentageSquareIcon.svg +1 -1
- package/src/icons/PercentageSquareWhiteIcon.svg +1 -1
- package/src/icons/PersonalCardIcon.svg +1 -1
- package/src/icons/PlusIcon.svg +1 -1
- package/src/icons/Profile2UserIcon.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 +0 -2
- 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/types.ts +6 -5
- package/src/ui-kit/BlockItem/BlockItem.tsx +11 -14
- package/src/ui-kit/BlockItem/BlockItemProps.ts +2 -2
- package/src/ui-kit/Button/Button.fixture.tsx +2 -2
- 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 +7 -6
- package/src/ui-kit/Heading/Heading.fixture.tsx +6 -6
- package/src/ui-kit/Heading/Heading.mobile.tsx +14 -5
- package/src/ui-kit/Heading/Heading.tsx +14 -5
- package/src/ui-kit/Heading/{HeadingProps.ts → HeadingContent.ts} +7 -4
- package/src/ui-kit/Icon/Icon.fixture.tsx +13 -2
- package/src/ui-kit/Icon/Icon.tsx +16 -3
- package/src/ui-kit/Icon/IconProps.ts +7 -0
- 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/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/getHeadingType.d.ts +0 -1
- package/dist/components/BaseTile/getHeadingType.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 +0 -34
- package/dist/components/ContentPage/toMobilePage.js.map +0 -1
- package/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/dist/ui-kit/Img.js.map +0 -1
- package/dist/ui-kit/Img.mobile.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/getHeadingType.d.ts +0 -1
- package/lib/components/BaseTile/getHeadingType.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/Heading/HeadingProps.js +0 -2
- package/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/lib/ui-kit/Img.js.map +0 -1
- package/lib/ui-kit/Img.mobile.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/getHeadingType.d.ts +0 -1
- package/mobile/dist/components/BaseTile/getHeadingType.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 +0 -34
- package/mobile/dist/components/ContentPage/toMobilePage.js.map +0 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/mobile/dist/ui-kit/Img.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/getHeadingType.d.ts +0 -1
- package/mobile/lib/components/BaseTile/getHeadingType.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/Heading/HeadingProps.js +0 -2
- package/mobile/lib/ui-kit/Heading/HeadingProps.js.map +0 -1
- package/mobile/lib/ui-kit/Img.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/src/components/BaseTile/BaseTile.mobile.tsx +0 -52
- 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 -17
- 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 -508
|
@@ -1,18 +1,24 @@
|
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
1
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import type {
|
|
3
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
|
|
5
|
+
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
6
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
3
8
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
4
|
-
export
|
|
9
|
+
export declare type ProductBlockInnerContent = HeadingContent & HeadingTypeContent & DescriptionContent & ListContent & ButtonContent & ImageContent & {
|
|
5
10
|
/**
|
|
6
11
|
* @title Преимущества
|
|
7
12
|
* @minItems 2
|
|
8
13
|
* @maxItems 3
|
|
9
14
|
*/
|
|
10
15
|
benefits?: Benefit[];
|
|
11
|
-
|
|
16
|
+
version?: BlockVersion;
|
|
17
|
+
};
|
|
12
18
|
/**
|
|
13
19
|
* @title Продуктовый блок
|
|
14
20
|
*/
|
|
15
|
-
export interface ProductBlockContent extends
|
|
21
|
+
export interface ProductBlockContent extends ProductBlockInnerContent {
|
|
16
22
|
/** @title Хлебные крошки */
|
|
17
23
|
breadcrumbs?: LinkProps[];
|
|
18
24
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../types';
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
4
|
-
}
|
|
2
|
+
import type { ProductBlockInnerContent } from './ProductBlockContent';
|
|
3
|
+
export declare type ProductBlockInnerProps = ProductBlockInnerContent & UniBlockProps;
|
|
5
4
|
export declare const ProductBlockInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockInnerProps, any>, context?: any) => any;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonSection } from '../../ui-kit/Button/ButtonSection.js';
|
|
4
|
+
import { Description } from '../../ui-kit/Description/Description.js';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
|
+
import { List } from '../../ui-kit/List/List.js';
|
|
4
8
|
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
5
9
|
import { renderBenefit } from './renderBenefit.js';
|
|
6
|
-
export const ProductBlockInner = JSX(({ className, context, title, headingType, description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
7
|
-
return (_jsxs("div", { className: `${className
|
|
10
|
+
export const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
11
|
+
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 } }) }))] }));
|
|
8
12
|
});
|
|
9
13
|
//# sourceMappingURL=ProductBlockInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,GACpB,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,SAAS,EAAE,aAC5B,wBACE,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,aAGT,WAAW,IAAI,KAAC,WAAW,IAAC,WAAW,EAAE,WAAW,GAAI,EACxD,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,cAAK,SAAS,EAAC,WAAW,YACvB,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GACjD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IACrC,GACP,EACL,KAAK,EAAE,GAAG,IAAI,CACb,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,GAAG,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAI,GAC5C,CACP,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -9,6 +9,6 @@ const benefitDescStyleMap = {
|
|
|
9
9
|
secondary: 'text-white',
|
|
10
10
|
};
|
|
11
11
|
export function renderBenefit(benefit, i, version) {
|
|
12
|
-
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("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)));
|
|
12
|
+
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)));
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=renderBenefit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBenefit.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBenefit.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;CACxB,CAAC;AACF,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,CAAS,EAAE,OAAe;IACxE,OAAO,CACL,eAAqB,SAAS,EAAC,0CAA0C,aACtE,OAAO,CAAC,IAAI,IAAI,CACf,KAAC,IAAI,IACH,SAAS,EAAC,2CAA2C,EACrD,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"renderBenefit.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBenefit.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;CACxB,CAAC;AACF,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,CAAS,EAAE,OAAe;IACxE,OAAO,CACL,eAAqB,SAAS,EAAC,0CAA0C,aACtE,OAAO,CAAC,IAAI,IAAI,CACf,KAAC,IAAI,IACH,SAAS,EAAC,2CAA2C,EACrD,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,EACD,cAAK,SAAS,EAAE,+BAA+B,oBAAoB,CAAC,OAAO,CAAC,EAAE,YAC3E,OAAO,CAAC,KAAK,GACV,EACL,OAAO,CAAC,WAAW,IAAI,CACtB,cAAK,SAAS,EAAE,yBAAyB,mBAAmB,CAAC,OAAO,CAAC,EAAE,YACpE,OAAO,CAAC,WAAW,GAChB,CACP,KAjBO,MAAM,CAAC,CAAC,CAAC,CAkBb,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../types';
|
|
2
|
-
import { HeadingType } from '../../ui-kit/Heading/
|
|
3
|
-
import type {
|
|
2
|
+
import { HeadingType } from '../../ui-kit/Heading/HeadingContent';
|
|
3
|
+
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
4
4
|
export interface ProductGalleryBlockProps extends UniBlockProps {
|
|
5
5
|
headingType?: HeadingType;
|
|
6
|
-
block?:
|
|
6
|
+
block?: ProductBlockInnerContent;
|
|
7
7
|
}
|
|
8
8
|
export declare const ProductGalleryBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductGalleryBlockProps, any>, context?: any) => any;
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { ProductBlockInner } from '../ProductBlock/ProductBlockInner.js';
|
|
4
4
|
export const ProductGalleryBlock = JSX(({ block, headingType, context }) => {
|
|
5
|
-
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, ...block }) }) }));
|
|
5
|
+
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 }) }) }));
|
|
6
6
|
});
|
|
7
7
|
//# sourceMappingURL=ProductGalleryBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryBlock.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAOtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;IAClC,OAAO,CACL,kBAAS,SAAS,EAAC,2CAA2C,EAAC,IAAI,EAAC,UAAU,YAC5E,cAAK,SAAS,EAAC,WAAW,YACxB,KAAC,iBAAiB,IAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,KAAM,KAAK,GAAI,
|
|
1
|
+
{"version":3,"file":"ProductGalleryBlock.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAOtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;IAClC,OAAO,CACL,kBAAS,SAAS,EAAC,2CAA2C,EAAC,IAAI,EAAC,UAAU,YAC5E,cAAK,SAAS,EAAC,WAAW,YACxB,KAAC,iBAAiB,IAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,IAAI,KAAM,KAAK,GAAI,GAChF,GACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
2
|
/** @title Кнопка под слайдом */
|
|
3
3
|
interface ProductGalleryNav {
|
|
4
4
|
/** @title Заголовок */
|
|
@@ -13,7 +13,7 @@ export interface ProductSlide {
|
|
|
13
13
|
/** @title Превью содержимого слайда на навигации */
|
|
14
14
|
nav?: ProductGalleryNav;
|
|
15
15
|
/** @title Содержимое слайда */
|
|
16
|
-
productBlock:
|
|
16
|
+
productBlock: ProductBlockInnerContent;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* @title Продуктовая галерея
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { ButtonSection } from '../../ui-kit/Button/ButtonSection.js';
|
|
4
|
+
import { Description } from '../../ui-kit/Description/Description.js';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
|
+
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
8
|
+
import { getTileHeadingType } from '../BaseTile/getTileHeadingType.js';
|
|
9
|
+
import { getTileMinHeight } from '../BaseTile/getTileMinHeight.js';
|
|
10
|
+
import { getTileRightPadding } from '../BaseTile/getTileRightPadding.js';
|
|
11
|
+
const productTileStyleMap = {
|
|
12
|
+
primary: 'bg-white text-primary-text',
|
|
13
|
+
secondary: 'bg-primary-main text-white',
|
|
14
|
+
};
|
|
15
|
+
export const ProductTile = JSX(({ context, className = '', title, description, benefits, buttons, image, version = 'primary', }) => {
|
|
16
|
+
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] })] }) }));
|
|
7
17
|
});
|
|
8
18
|
function renderBenefitLabel(benefit, i) {
|
|
9
19
|
return (_jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAMtE,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EACC,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,GAAG,SAAS,GACpB,EAAE,EAAE;IACH,OAAO,CACL,kBACE,SAAS,EAAE,uDAAuD,SAAS,IACzE,mBAAmB,CAAC,OAAO,CAC7B,IAAI,mBAAmB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC,GAAG,YAEpE,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,kBAAkB,CAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,EAEV,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,KAAC,GAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,aAElE,WAAW,IAAI,KAAC,WAAW,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAE,WAAW,GAAI,EACxF,eAAK,SAAS,EAAC,gBAAgB,aAC5B,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,cAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAO,CAC/D,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,cAAK,SAAS,EAAC,MAAM,YAClB,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAC5D,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,kBAAkB,CAAC,OAAgB,EAAE,CAAS;IACrD,OAAO,CACL,cAAqB,SAAS,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,YACvE,OAAO,CAAC,KAAK,IADN,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAgB,EAAE,CAAS,EAAE,OAAO,GAAG,SAAS;IAChF,MAAM,aAAa,GAAiC;QAClD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IACF,OAAO,CACL,cAAqB,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,YACnF,OAAO,CAAC,WAAW,IADZ,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
|
|
4
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
+
import type { TextBenefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
3
7
|
/**
|
|
4
8
|
* @title Продуктовая плитка
|
|
5
9
|
*/
|
|
6
|
-
export
|
|
10
|
+
export declare type ProductTileContent = HeadingContent & DescriptionContent & ButtonContent & ImageContent & {
|
|
11
|
+
version?: BlockVersion;
|
|
7
12
|
/**
|
|
8
13
|
* @title Преимущества
|
|
9
14
|
* @maxItems 7
|
|
10
15
|
*/
|
|
11
|
-
benefits?:
|
|
12
|
-
}
|
|
16
|
+
benefits?: TextBenefit[];
|
|
17
|
+
};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { ButtonSection } from '../../ui-kit/Button/ButtonSection.js';
|
|
4
|
+
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
+
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
6
|
+
import { getTileHeadingType } from '../BaseTile/getTileHeadingType.js';
|
|
7
|
+
import { getTileMinHeight } from '../BaseTile/getTileMinHeight.js';
|
|
8
|
+
import { getTileRightPadding } from '../BaseTile/getTileRightPadding.js';
|
|
9
|
+
const promoTileStyleMap = {
|
|
10
|
+
primary: 'bg-white text-primary-text',
|
|
11
|
+
secondary: 'bg-primary-main text-white',
|
|
12
|
+
};
|
|
13
|
+
export const PromoTile = JSX(({ className = '', context, title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', }) => {
|
|
14
|
+
return (_jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${promoTileStyleMap[version]} ${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]` })) : null, buttons: buttons?.length ? (_jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, children: _jsxs("div", { className: "mt-1.5", children: [date ? _jsx("div", { className: "text-sm mb-2", children: formatDate(date) }) : null, _jsx("div", { className: "text-base", children: description })] }) }) }));
|
|
6
15
|
});
|
|
7
16
|
function formatDate(date) {
|
|
8
17
|
const dateObj = new Date(date);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromoTile.js","sourceRoot":"","sources":["../../../src/components/PromoTile/PromoTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PromoTile.js","sourceRoot":"","sources":["../../../src/components/PromoTile/PromoTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAKtE,MAAM,iBAAiB,GAAiC;IACtD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,GAAG,yBAAyB,EACjC,IAAI,EACJ,WAAW,EACX,OAAO,GAAG,EAAE,EACZ,OAAO,GAAG,SAAS,GACpB,EAAE,EAAE;IACH,OAAO,CACL,kBACE,SAAS,EAAE,uDAAuD,SAAS,IACzE,iBAAiB,CAAC,OAAO,CAC3B,IAAI,mBAAmB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC,GAAG,YAEpE,KAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,KAAC,OAAO,IACN,WAAW,EAAE,kBAAkB,CAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,YAGV,eAAK,SAAS,EAAC,QAAQ,aACpB,IAAI,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,cAAc,YAAE,UAAU,CAAC,IAAI,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,EACrE,cAAK,SAAS,EAAC,WAAW,YAAE,WAAW,GAAO,IAC1C,GACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,IAAY;IAC9B,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,UAAU,GAA+B;QAC7C,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,SAAS;KAChB,CAAC;IACF,OAAO,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
|
|
4
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
5
|
/**
|
|
3
6
|
* @title Акции
|
|
4
7
|
*/
|
|
5
|
-
export
|
|
8
|
+
export declare type PromoTileContent = HeadingContent & DescriptionContent & ButtonContent & {
|
|
6
9
|
/** @title Дата публикации */
|
|
7
10
|
date?: string;
|
|
8
|
-
|
|
11
|
+
version?: BlockVersion;
|
|
12
|
+
};
|
|
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
4
4
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
5
5
|
export const StepsBlock = JSX(({ className, title, description, steps, size = 'normal' }) => {
|
|
6
|
-
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, {
|
|
6
|
+
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] }));
|
|
7
7
|
});
|
|
8
8
|
const renderStepTitle = (params) => {
|
|
9
9
|
const { step, size, i, length } = params;
|
|
@@ -17,6 +17,6 @@ const renderIconArea = (step, size, i) => {
|
|
|
17
17
|
: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
|
|
18
18
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
19
19
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
20
|
-
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 }) }));
|
|
20
|
+
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 }) }));
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=StepsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAK9C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,CACL,mBACE,SAAS,EAAE,2EACT,SAAS,IAAI,EACf,EAAE,aAED,KAAK,IAAI,KAAC,OAAO,IAAC,
|
|
1
|
+
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAK9C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,CACL,mBACE,SAAS,EAAE,2EACT,SAAS,IAAI,EACf,EAAE,aAED,KAAK,IAAI,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,EAC3E,WAAW,IAAI,YAAG,SAAS,EAAE,yBAAyB,KAAK,IAAI,MAAM,EAAE,YAAG,WAAW,GAAK,EAC1F,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,cAAK,SAAS,EAAE,+BAA+B,YAC7C,cAAK,SAAS,EAAC,6CAA6C,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAC7E,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AASF,MAAM,eAAe,GAAG,CAAC,MAA6B,EAAE,EAAE;IACxD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEzC,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;IAE7D,OAAO,CACL,wBACE,eAAqB,SAAS,EAAC,oCAAoC,aACjE,0BACG,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAC7B,CAAC,UAAU,IAAI,cAAK,SAAS,EAAE,6CAA6C,MAAM,EAAE,GAAI,IACrF,EACN,eAAK,SAAS,EAAC,uCAAuC,aACnD,IAAI,CAAC,KAAK,IAAI,CACb,cAAK,SAAS,EAAC,2CAA2C,YAAE,IAAI,CAAC,KAAK,GAAO,CAC9E,EACA,IAAI,CAAC,WAAW,IAAI,CACnB,cACE,SAAS,EAAE,qDACT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACxB,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,IACG,KAlBE,MAAM,CAAC,CAAC,CAAC,CAmBb,IApBE,MAAM,CAAC,CAAC,CAAC,CAqBb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAU,EAAE,IAAiB,EAAE,CAAS,EAAE,EAAE;IAClE,MAAM,YAAY,GAChB,IAAI,KAAK,QAAQ;QACf,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,6CAA6C,CAAC;IAEpD,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,MAAM,YAAY,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAE5E,OAAO,CACL,cACE,SAAS,EAAE,GAAG,YAAY,+EAA+E,YAEzG,eAAM,SAAS,EAAE,+CAA+C,YAAY,EAAE,YAC3E,CAAC,IAAI,CAAC,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,SAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GACtF,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -18,6 +18,6 @@ export const TariffsTable = JSX(({ className, context, title, rowHeaders, column
|
|
|
18
18
|
activeCardIndex,
|
|
19
19
|
setActiveCardIndex,
|
|
20
20
|
});
|
|
21
|
-
return (_jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [_jsx(Heading, {
|
|
21
|
+
return (_jsxs("section", { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className || ''}`, children: [_jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", title: title }), _jsxs("div", { role: "table", children: [rowData?.length ? (_jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (_jsx(TariffsTableRow, { row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex }, String(i)))), isScrollAvailable ? (_jsx("div", { children: _jsxs("div", { className: "absolute top-7 right-7 z-10", children: [_jsx(ArrowButton, { onClick: nextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }), _jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: prevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })] }) })) : null] })) : null, isScrollAvailable ? (_jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] })] }));
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=TariffsTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,MAAM,OAAO,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,MAAM;QACN,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAC7C,CAAC,CAAC,CAAC;IAEJ,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,GAC/E,wBAAwB,CAAC;QACvB,OAAO;QACP,mBAAmB,EAAE,sBAAsB;QAC3C,eAAe;QACf,kBAAkB;KACnB,CAAC,CAAC;IAEL,OAAO,CACL,mBACE,SAAS,EAAE,qFACT,SAAS,IAAI,EACf,EAAE,aAEF,KAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,MAAM,OAAO,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,MAAM;QACN,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAC7C,CAAC,CAAC,CAAC;IAEJ,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,GAC/E,wBAAwB,CAAC;QACvB,OAAO;QACP,mBAAmB,EAAE,sBAAsB;QAC3C,eAAe;QACf,kBAAkB;KACnB,CAAC,CAAC;IAEL,OAAO,CACL,mBACE,SAAS,EAAE,qFACT,SAAS,IAAI,EACf,EAAE,aAEF,KAAC,OAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAC,wCAAwC,EAClD,KAAK,EAAE,KAAK,GACZ,EACF,eAAK,IAAI,EAAC,OAAO,aACd,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACjB,eAAK,SAAS,EAAC,UAAU,aACtB,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACnC,KAAC,eAAe,IAEd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,CAAC,GAAG,CAAC,KAAK,MAAM,EAC3B,eAAe,EAAE,eAAe,IAH3B,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,EACD,iBAAiB,CAAC,CAAC,CAAC,CACnB,wBACE,eAAK,SAAS,EAAC,6BAA6B,aAC1C,KAAC,WAAW,IACV,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,mGAAmB,GAC7B,EACF,KAAC,WAAW,IACV,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,6FAAkB,GAC5B,IACE,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,EACP,iBAAiB,CAAC,CAAC,CAAC,CACnB,cAAK,SAAS,EAAC,8DAA8D,GAAG,CACjF,CAAC,CAAC,CAAC,IAAI,IACJ,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,12 +3,12 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { BlockItem } from '../../ui-kit/BlockItem/BlockItem.js';
|
|
4
4
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
5
5
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
6
|
-
import { Img } from '../../ui-kit/Img.js';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
7
|
export const TariffsTableCell = JSX(({ cell, isLastRow }) => {
|
|
8
8
|
const cellWrapperClasses = `first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 ${isLastRow ? 'border-t-0 rounded-b-md' : ''}`;
|
|
9
9
|
return (_jsx("div", { className: cellWrapperClasses, role: "cell", children: _jsx("div", { children: cell.map((item, i) => renderCellInner(item, i)) }) }));
|
|
10
10
|
});
|
|
11
|
-
const renderCellInner = ({ label, description, list, image, buttons }, i) => (_jsxs("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && (_jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label && _jsx("div", { className: "text-xl font-medium m-0", children: label }), description && _jsx("div", { className: "text-sm text-secondary-text", children: description }), list?.items?.length ? (_jsx("div", { className: "flex flex-col justify-between items-start", children: _jsx("div", { role: "list", children: list.items.map((text, idx) => (_jsx(BlockItem, { text: text, version:
|
|
11
|
+
const renderCellInner = ({ label, description, list, image, buttons }, i) => (_jsxs("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && (_jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label && _jsx("div", { className: "text-xl font-medium m-0", children: label }), description && _jsx("div", { className: "text-sm text-secondary-text", children: description }), list?.items?.length ? (_jsx("div", { className: "flex flex-col justify-between items-start", children: _jsx("div", { role: "list", children: list.items.map((text, idx) => (_jsx(BlockItem, { className: "text-sm", text: text, version: "gray", isDotted: list.isDotted ?? true }, String(idx)))) }) })) : null, image && _jsx(Img, { image: image }), buttons?.length
|
|
12
12
|
? buttons.map(({ icon, ...buttonProps }, idx) => (_jsx(Button, { className: `${idx > 0 ? 'ml-3' : ''} w-12 h-12`, appendLeft: icon && _jsx(Icon, { name: icon, width: "24px", height: "24px", asSVG: true }), ...buttonProps }, String(idx))))
|
|
13
13
|
: null] }, String(i)));
|
|
14
14
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAQ3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,kBAAkB,GAAG,+GACzB,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAC1C,EAAE,CAAC;IAEH,OAAO,CACL,cAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,wBAAM,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAO,GACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CACtB,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAwB,EAClE,CAAS,EACT,EAAE,CAAC,CACH,eAAqB,SAAS,EAAC,sBAAsB,aAClD,CAAC,GAAG,CAAC,IAAI,CACR,cAAK,SAAS,EAAC,oEAAoE,GAAG,CACvF,EACA,KAAK,IAAI,cAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAO,EAC/D,WAAW,IAAI,cAAK,SAAS,EAAC,6BAA6B,YAAE,WAAW,GAAO,EAC/E,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,cAAK,SAAS,EAAC,2CAA2C,YACxD,cAAK,IAAI,EAAC,MAAM,YACb,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAC7B,KAAC,SAAS,IACR,SAAS,EAAC,SAAS,EAEnB,IAAI,EAAE,IAAI,EACV,OAAO,EAAC,MAAM,EACd,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,IAH1B,MAAM,CAAC,GAAG,CAAC,CAIhB,CACH,CAAC,GACE,GACF,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,IAAI,KAAC,GAAG,IAAC,KAAK,EAAE,KAAK,GAAI,EAC9B,OAAO,EAAE,MAAM;YACd,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC7C,KAAC,MAAM,IACL,SAAS,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,EAE/C,UAAU,EAAE,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,KACrE,WAAW,IAFV,MAAM,CAAC,GAAG,CAAC,CAGhB,CACH,CAAC;YACJ,CAAC,CAAC,IAAI,KA/BA,MAAM,CAAC,CAAC,CAAC,CAgCb,CACP,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
1
|
+
import type { IconName } from '../../icons/IconName';
|
|
3
2
|
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
3
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
import type { CellData, RowHeader } from '../ComparisonTable/ComparisonTableContent';
|
|
6
5
|
/**
|
|
7
6
|
* @title Ряд
|
|
8
7
|
*/
|
|
@@ -21,12 +20,7 @@ export interface TariffsTableColumn {
|
|
|
21
20
|
* @title Список
|
|
22
21
|
*/
|
|
23
22
|
export interface TariffsTableList {
|
|
24
|
-
/** @
|
|
25
|
-
version?: BlockItemVersion;
|
|
26
|
-
/**
|
|
27
|
-
* @title Маркеры
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
23
|
+
/** @title Маркеры */
|
|
30
24
|
isDotted?: boolean;
|
|
31
25
|
/** @title Элементы списка */
|
|
32
26
|
items?: string[];
|
|
@@ -38,7 +32,7 @@ export interface TariffsTableCellData extends CellData {
|
|
|
38
32
|
list?: TariffsTableList;
|
|
39
33
|
image?: Picture;
|
|
40
34
|
/** @title Кнопки */
|
|
41
|
-
buttons?:
|
|
35
|
+
buttons?: ButtonWithIconProps[];
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* @title Параметр
|
|
@@ -6,6 +6,6 @@ import { TariffsTableCell } from './TariffsTableCell.js';
|
|
|
6
6
|
import { TableRowContainer } from '../ComparisonTable/TableRowContainer.js';
|
|
7
7
|
import { TableCarouselContainer } from '../ComparisonTable/TableCarouselContainer.js';
|
|
8
8
|
export const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex, isLastRow }) => {
|
|
9
|
-
return (_jsxs(TableRowContainer, { children: [_jsx("div", { className: `text-sm py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: _jsxs("div", { className: "flex items-center text-primary-text", children: [header?.icon && (_jsx(Icon, { className: "mr-[14px] max-w-6 max-h-6", name: header.icon, width: "24px", height: "24px" })), header?.title] }) }), data?.length ? (_jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH, version: "tariff", children: data.map((cell, i) => (_jsx(TariffsTableCell, { cell: cell, isLastRow: isLastRow }, String(i)))) })) : null] }));
|
|
9
|
+
return (_jsxs(TableRowContainer, { children: [_jsx("div", { className: `text-sm py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: _jsxs("div", { className: "flex items-center text-primary-text", children: [header?.icon && (_jsx(Icon, { className: "mr-[14px] max-w-6 max-h-6", name: header.icon, width: "24px", height: "24px", asSVG: true })), header?.title] }) }), data?.length ? (_jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH, version: "tariff", children: data.map((cell, i) => (_jsx(TariffsTableCell, { cell: cell, isLastRow: isLastRow }, String(i)))) })) : null] }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAUnF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,EAAE;IACxD,OAAO,CACL,MAAC,iBAAiB,eAChB,cACE,SAAS,EAAE,gBAAgB,kBAAkB,IAAI,eAAe,IAC9D,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAChC,EAAE,YAEF,eAAK,SAAS,EAAC,qCAAqC,aACjD,MAAM,EAAE,IAAI,IAAI,CACf,KAAC,IAAI,IACH,SAAS,EAAC,2BAA2B,EACrC,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAUnF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,EAAE;IACxD,OAAO,CACL,MAAC,iBAAiB,eAChB,cACE,SAAS,EAAE,gBAAgB,kBAAkB,IAAI,eAAe,IAC9D,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAChC,EAAE,YAEF,eAAK,SAAS,EAAC,qCAAqC,aACjD,MAAM,EAAE,IAAI,IAAI,CACf,KAAC,IAAI,IACH,SAAS,EAAC,2BAA2B,EACrC,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,SACL,CACH,EACA,MAAM,EAAE,KAAK,IACV,GACF,EACL,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,sBAAsB,IACrB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,YAAY,EACzB,OAAO,EAAC,QAAQ,YAEf,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,KAAC,gBAAgB,IAAiB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,IAA3C,MAAM,CAAC,CAAC,CAAC,CAAsC,CACvE,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACU,CACrB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
4
|
+
import { List } from '../../ui-kit/List/List.js';
|
|
5
5
|
const textBlockStyleMaps = {
|
|
6
6
|
primary: {
|
|
7
7
|
background: 'bg-white',
|
|
@@ -22,13 +22,10 @@ const textBlockStyleMaps = {
|
|
|
22
22
|
description: 'text-secondary-text',
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
|
-
export const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items }) => {
|
|
25
|
+
export const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
26
26
|
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
27
|
-
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 ?
|
|
27
|
+
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] })] }));
|
|
28
28
|
});
|
|
29
|
-
function renderItems(items = [], version) {
|
|
30
|
-
return (_jsx("section", { className: "mt-1", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { text: _, version: version }, String(i)))) }));
|
|
31
|
-
}
|
|
32
29
|
function renderIcon(className) {
|
|
33
30
|
return (_jsx("div", { className: "mb-3", children: _jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
34
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAK9C,MAAM,kBAAkB,GAAqD;IAC3E,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;KACnC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,YAAY;KAC1B;IACD,iBAAiB,EAAE;QACjB,UAAU,EAAE,oBAAoB;QAChC,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;KACnC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EACC,KAAK,EACL,WAAW,EACX,YAAY,GAAG,SAAS,EACxB,WAAW,EACX,KAAK,EACL,SAAS,GAAG,EAAE,EACd,KAAK,EACL,QAAQ,GAAG,IAAI,GAChB,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC3D,OAAO,CACL,mBACE,SAAS,EAAE,0CAA0C,iBAAiB,CAAC,UAAU,IAAI,SAAS,EAAE,aAE/F,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EACnE,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAClD,eAAK,SAAS,EAAC,QAAQ,aACpB,KAAK,CAAC,CAAC,CAAC,CACP,cAAK,SAAS,EAAE,8BAA8B,iBAAiB,CAAC,KAAK,EAAE,YAAG,KAAK,GAAO,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,cAAK,SAAS,EAAE,WAAW,iBAAiB,CAAC,WAAW,EAAE,YAAG,WAAW,GAAO,CAChF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,KAAC,IAAI,IACH,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAC,MAAM,EACd,SAAS,EAAC,oCAAoC,GAC9C,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,SAAiB;IACnC,OAAO,CACL,cAAK,SAAS,EAAC,MAAM,YACnB,cAAK,SAAS,EAAE,4CAA4C,SAAS,EAAE,kBAAS,GAC5E,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAe;IAClC,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5E,CAAC"}
|
|
@@ -20,5 +20,6 @@ export interface TextBlockContent {
|
|
|
20
20
|
iconVersion?: TextBlockIconVersion;
|
|
21
21
|
image?: Picture;
|
|
22
22
|
blockVersion?: TextBlockVersion;
|
|
23
|
-
|
|
23
|
+
/** @title Маркеры списка (моб.) */ isDotted?: boolean;
|
|
24
|
+
/** @title Список (моб.) */ items?: string[];
|
|
24
25
|
}
|
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonSection } from '../../ui-kit/Button/ButtonSection.js';
|
|
4
|
+
import { Description } from '../../ui-kit/Description/Description.js';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
|
+
import { List } from '../../ui-kit/List/List.js';
|
|
4
8
|
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
9
|
+
import { getTileHeadingType } from '../BaseTile/getTileHeadingType.js';
|
|
10
|
+
import { getTileMinHeight } from '../BaseTile/getTileMinHeight.js';
|
|
11
|
+
import { getTileRightPadding } from '../BaseTile/getTileRightPadding.js';
|
|
5
12
|
const tileStyleMap = {
|
|
6
13
|
primary: 'bg-white text-primary-text',
|
|
7
14
|
secondary: 'bg-primary-main text-white',
|
|
8
15
|
};
|
|
9
16
|
export const Tile = JSX((props) => {
|
|
10
|
-
const { children, className = '', version = 'primary', role } = props;
|
|
11
|
-
return (_jsx("section", { className: `font-sans p-9 box-border ${className
|
|
17
|
+
const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, } = props;
|
|
18
|
+
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] }) }));
|
|
12
19
|
});
|
|
13
|
-
function getContainerPaddingRight(className = '') {
|
|
14
|
-
const colSpan = getColSpan(className);
|
|
15
|
-
if (colSpan <= 6) {
|
|
16
|
-
return 'pr-9';
|
|
17
|
-
}
|
|
18
|
-
else if (colSpan <= 8) {
|
|
19
|
-
return 'pr-[4.75rem]';
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return 'pr-[9.4rem]';
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function getContainerMinHeight(className = '') {
|
|
26
|
-
const colSpan = getColSpan(className);
|
|
27
|
-
if (colSpan <= 6) {
|
|
28
|
-
return 'min-h-[300px]';
|
|
29
|
-
}
|
|
30
|
-
else if (colSpan <= 8) {
|
|
31
|
-
return 'min-h-[320px]';
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return 'min-h-[360px]';
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
20
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAOtE,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EACJ,OAAO,EACP,KAAK,EACL,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,SAAS,EACnB,IAAI,GACL,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,kBACE,SAAS,EAAE,4BAA4B,SAAS,IAC9C,YAAY,CAAC,OAAO,CACtB,IAAI,mBAAmB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC,GAAG,EACpE,IAAI,EAAE,IAAI,YAEV,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,kBAAkB,CAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,qCACT,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAChD,EAAE,GACF,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,EAEV,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,KAAC,GAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,aAElE,WAAW,IAAI,KAAC,WAAW,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAE,WAAW,GAAI,EACvF,QAAQ,EACR,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IACrC,GACH,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionProps';
|
|
4
|
+
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
5
|
+
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
2
7
|
/**
|
|
3
8
|
* @title Плитка
|
|
4
9
|
*/
|
|
5
|
-
export declare type TileContent =
|
|
10
|
+
export declare type TileContent = HeadingContent & DescriptionContent & ListContent & ButtonContent & ImageContent & {
|
|
11
|
+
version?: BlockVersion;
|
|
12
|
+
};
|
|
@@ -3,8 +3,6 @@ import type { TransformationOptions } from './TransformationOptions';
|
|
|
3
3
|
export declare function ContentPageRepository({ contentDir, publicDir, }?: Partial<TransformationOptions>): {
|
|
4
4
|
getAllContentPages: () => Promise<ContentPageDef[]>;
|
|
5
5
|
getContentPageBySlug: (slug: string) => Promise<ContentPageDef | undefined>;
|
|
6
|
-
getMobilePageBySlug: (slug: string) => Promise<ContentPageDef | undefined>;
|
|
7
6
|
getSecondaryContentPages: () => Promise<ContentPageDef[]>;
|
|
8
7
|
getIndexPage: () => Promise<ContentPageDef | undefined>;
|
|
9
|
-
getIndexMobilePage: () => Promise<ContentPageDef | undefined>;
|
|
10
8
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import glob from 'glob';
|
|
2
2
|
import util from 'util';
|
|
3
|
-
import { toMobilePage } from '../components/ContentPage/toMobilePage.js';
|
|
4
3
|
import { transformContentPage } from './transformContentPage.js';
|
|
5
4
|
const INDEX_PAGE_SLUG = 'index';
|
|
6
5
|
const find = util.promisify(glob);
|
|
@@ -18,16 +17,9 @@ export function ContentPageRepository({ contentDir = 'content', publicDir = 'pub
|
|
|
18
17
|
const pages = await getAllContentPages();
|
|
19
18
|
return pages.find((content) => content.slug === slug);
|
|
20
19
|
}
|
|
21
|
-
async function getMobilePageBySlug(slug) {
|
|
22
|
-
const page = await getContentPageBySlug(slug);
|
|
23
|
-
return page && toMobilePage(page);
|
|
24
|
-
}
|
|
25
20
|
async function getIndexPage() {
|
|
26
21
|
return await getContentPageBySlug(INDEX_PAGE_SLUG);
|
|
27
22
|
}
|
|
28
|
-
async function getIndexMobilePage() {
|
|
29
|
-
return await getMobilePageBySlug(INDEX_PAGE_SLUG);
|
|
30
|
-
}
|
|
31
23
|
const cache = {};
|
|
32
24
|
async function readPage(filePath) {
|
|
33
25
|
if (!(filePath in cache)) {
|
|
@@ -41,10 +33,8 @@ export function ContentPageRepository({ contentDir = 'content', publicDir = 'pub
|
|
|
41
33
|
return {
|
|
42
34
|
getAllContentPages,
|
|
43
35
|
getContentPageBySlug,
|
|
44
|
-
getMobilePageBySlug,
|
|
45
36
|
getSecondaryContentPages,
|
|
46
37
|
getIndexPage,
|
|
47
|
-
getIndexMobilePage,
|
|
48
38
|
};
|
|
49
39
|
}
|
|
50
40
|
//# sourceMappingURL=ContentPageRepository.js.map
|