@redneckz/wildless-cms-uni-blocks 0.3.4 → 0.3.7
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 +51 -36
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/utils/isActiveHandler.js +1 -1
- package/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Blocks.d.ts +0 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +4 -2
- package/dist/components/Blocks.mobile.js +7 -3
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageHead.js +4 -2
- package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/dist/components/ContentPage/isBlockInRegistry.js +2 -2
- package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.d.ts +1 -1
- package/dist/components/ContentPage/normalizePage.js +1 -1
- package/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +15 -5
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +1 -1
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.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/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.js +8 -3
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +4 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.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.mobile.js +3 -14
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +5 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +1 -1
- package/dist/types.d.ts +8 -2
- package/dist/ui-kit/BlockItem/BlockItem.js +3 -3
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Description/Description.d.ts +4 -1
- package/dist/ui-kit/Description/Description.js +1 -1
- package/dist/ui-kit/Description/Description.js.map +1 -1
- package/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
- package/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/dist/ui-kit/Heading/Heading.js +1 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +2 -2
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/utils/isActiveHandler.js +1 -1
- package/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/Blocks.d.ts +0 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.d.ts +4 -2
- package/lib/components/Blocks.mobile.js +7 -3
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageHead.js +4 -2
- package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/lib/components/ContentPage/isBlockInRegistry.js +2 -2
- package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.d.ts +1 -1
- package/lib/components/ContentPage/normalizePage.js +1 -1
- package/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +15 -5
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +1 -1
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.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/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +2 -0
- package/lib/components/Placeholder/Placeholder.js +9 -4
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +4 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.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.fixture.mobile.d.ts +1 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.js +4 -15
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +5 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +1 -1
- package/lib/types.d.ts +8 -2
- package/lib/ui-kit/BlockItem/BlockItem.js +3 -3
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Description/Description.d.ts +4 -1
- package/lib/ui-kit/Description/Description.js +1 -1
- package/lib/ui-kit/Description/Description.js.map +1 -1
- package/{mobile/dist/ui-kit/Description/DescriptionProps.d.ts → lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/lib/ui-kit/Description/DescriptionContent.js +2 -0
- package/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/lib/ui-kit/Heading/Heading.js +1 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js +2 -2
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +262 -253
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/utils/isActiveHandler.js +1 -1
- package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/Blocks.d.ts +4 -2
- package/mobile/dist/components/Blocks.js +7 -3
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js +4 -2
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js +2 -2
- package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +15 -5
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.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/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +8 -3
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +4 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +3 -14
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +5 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +1 -1
- package/mobile/dist/types.d.ts +8 -2
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +3 -3
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/dist/ui-kit/Description/Description.d.ts +4 -1
- package/mobile/dist/ui-kit/Description/Description.js +1 -1
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
- package/mobile/{lib/ui-kit/Description/DescriptionProps.d.ts → dist/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/mobile/dist/ui-kit/Description/{DescriptionProps.js → DescriptionContent.js} +1 -1
- package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
- package/mobile/lib/components/Accordion/utils/isActiveHandler.js +1 -1
- package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/Blocks.d.ts +4 -2
- package/mobile/lib/components/Blocks.js +7 -3
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js +4 -2
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +1 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js +2 -2
- package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +15 -5
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.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/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +9 -4
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +4 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +4 -15
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +5 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +1 -1
- package/mobile/lib/types.d.ts +8 -2
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +3 -3
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/lib/ui-kit/Description/Description.d.ts +4 -1
- package/mobile/lib/ui-kit/Description/Description.js +1 -1
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
- package/{dist/ui-kit/Description/DescriptionProps.d.ts → mobile/lib/ui-kit/Description/DescriptionContent.d.ts} +0 -3
- package/mobile/lib/ui-kit/Description/DescriptionContent.js +2 -0
- package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +1 -0
- package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +1 -1
- package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -2
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/Blocks.ts +7 -3
- package/mobile/src/components/ContentPage/ContentPage.page.json +54 -47
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +14 -1
- package/mobile/src/components/ContentPage/isBlockInRegistry.ts +2 -4
- package/mobile/src/components/ContentPage/normalizePage.ts +4 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +23 -15
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -2
- package/mobile/src/components/Header/HeaderTop.tsx +6 -2
- package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +36 -14
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -1
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +17 -11
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -2
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +12 -49
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/mobile/src/components/PromoTile/PromoTileContent.ts +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
- package/mobile/src/components/Tile/Tile.tsx +7 -4
- package/mobile/src/components/Tile/TileContent.ts +1 -1
- package/mobile/src/types.ts +9 -2
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
- package/mobile/src/ui-kit/Description/Description.tsx +6 -2
- package/mobile/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
- package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +3 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +5 -1
- package/package.json +1 -1
- package/src/components/Accordion/utils/isActiveHandler.ts +1 -2
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/Blocks.mobile.ts +7 -3
- package/src/components/Blocks.ts +0 -2
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +0 -1
- package/src/components/ContentPage/ContentPage.page.json +54 -47
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/ContentPage/ContentPageHead.tsx +14 -1
- package/src/components/ContentPage/isBlockInRegistry.ts +2 -4
- package/src/components/ContentPage/normalizePage.mobile.ts +4 -1
- package/src/components/ContentPage/normalizePage.ts +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +23 -15
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/HeaderBurger.tsx +2 -2
- package/src/components/Header/HeaderTop.tsx +6 -2
- package/src/components/Headline/HeadlineContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +9 -0
- package/src/components/Placeholder/Placeholder.tsx +35 -8
- package/src/components/Placeholder/PlaceholderContent.ts +2 -1
- package/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +8 -2
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +17 -11
- package/src/components/ProductBlock/ProductBlockInner.tsx +2 -2
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +106 -0
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +12 -49
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +1 -1
- package/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/src/components/PromoTile/PromoTileContent.ts +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
- package/src/components/Tile/Tile.tsx +7 -4
- package/src/components/Tile/TileContent.ts +1 -1
- package/src/types.ts +9 -2
- package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
- package/src/ui-kit/Description/Description.tsx +6 -2
- package/src/ui-kit/Description/{DescriptionProps.ts → DescriptionContent.ts} +0 -4
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +0 -1
- package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
- package/src/ui-kit/Heading/Heading.tsx +3 -1
- package/src/ui-kit/List/ListItem.tsx +3 -3
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +5 -1
- package/dist/components/Placeholder/Placeholder.mobile.d.ts +0 -6
- package/dist/components/Placeholder/Placeholder.mobile.js +0 -15
- package/dist/components/Placeholder/Placeholder.mobile.js.map +0 -1
- package/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/lib/components/Placeholder/Placeholder.mobile.d.ts +0 -6
- package/lib/components/Placeholder/Placeholder.mobile.js +0 -13
- package/lib/components/Placeholder/Placeholder.mobile.js.map +0 -1
- package/lib/ui-kit/Description/DescriptionProps.js +0 -2
- package/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/mobile/dist/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/mobile/lib/ui-kit/Description/DescriptionProps.js +0 -2
- package/mobile/lib/ui-kit/Description/DescriptionProps.js.map +0 -1
- package/src/components/Placeholder/Placeholder.mobile.tsx +0 -35
|
@@ -7,7 +7,13 @@ export interface ContentPageHeadProps {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data, children }) => {
|
|
10
|
-
const {
|
|
10
|
+
const {
|
|
11
|
+
title,
|
|
12
|
+
main: { description, keywords, canonical, robots },
|
|
13
|
+
og,
|
|
14
|
+
twitter,
|
|
15
|
+
jsonLd,
|
|
16
|
+
} = data;
|
|
11
17
|
return (
|
|
12
18
|
<HeadComponent>
|
|
13
19
|
<title>{title}</title>
|
|
@@ -20,6 +26,13 @@ export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data,
|
|
|
20
26
|
<meta key={key} name={`og:${key}`} content={value} />
|
|
21
27
|
))
|
|
22
28
|
: null}
|
|
29
|
+
{twitter
|
|
30
|
+
? Object.entries(twitter).map(([key, value]) => (
|
|
31
|
+
<meta key={key} name={`twitter:${key}`} content={value} />
|
|
32
|
+
))
|
|
33
|
+
: null}
|
|
34
|
+
{canonical && <link rel="canonical" href={canonical} />}
|
|
35
|
+
{jsonLd && <script type="application/ld+json">{jsonLd}</script>}
|
|
23
36
|
{children}
|
|
24
37
|
</HeadComponent>
|
|
25
38
|
);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export function isBlockInRegistry<T>(block: BlockDef, registry: Record<string, T>) {
|
|
4
|
-
return block.type in registry;
|
|
1
|
+
export function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>) {
|
|
2
|
+
return (blockType || '') in registry;
|
|
5
3
|
}
|
|
@@ -32,6 +32,9 @@ export function normalizePage(
|
|
|
32
32
|
|
|
33
33
|
function getMobileBlocks(blocks?: BlockDef[]) {
|
|
34
34
|
return blocks
|
|
35
|
-
?.filter(
|
|
35
|
+
?.filter(
|
|
36
|
+
(block) =>
|
|
37
|
+
isBlockInRegistry(block?.type || block?.mobile?.type, Blocks) && !block.mobile?.hidden,
|
|
38
|
+
)
|
|
36
39
|
.map(normalizeBlock);
|
|
37
40
|
}
|
|
@@ -31,5 +31,5 @@ export function normalizePage<T extends ContentPageDef | undefined | null>(
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
function getDesktopBlocks(blocks?: BlockDef[]) {
|
|
34
|
-
return blocks?.filter((block) => isBlockInRegistry(block, Blocks)).map(normalizeBlock);
|
|
34
|
+
return blocks?.filter((block) => isBlockInRegistry(block?.type, Blocks)).map(normalizeBlock);
|
|
35
35
|
}
|
|
@@ -44,7 +44,7 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
|
|
|
44
44
|
<Heading
|
|
45
45
|
headingType={getTileHeadingType(className)}
|
|
46
46
|
title={title}
|
|
47
|
-
className={`whitespace-pre-wrap max-w-[600px]`}
|
|
47
|
+
className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}`}
|
|
48
48
|
/>
|
|
49
49
|
)
|
|
50
50
|
}
|
|
@@ -3,10 +3,11 @@ import type { BlockVersion } from '../../model/BlockVersion';
|
|
|
3
3
|
import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
|
|
4
4
|
import { Button } from '../../ui-kit/Button/Button';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
-
import type { GalleryCard
|
|
6
|
+
import type { GalleryCard } from './GalleryContent';
|
|
7
7
|
|
|
8
8
|
export const GalleryCardInner = JSX<GalleryCard>(
|
|
9
9
|
({ title, description, image, items, button, version }) => {
|
|
10
|
+
const titleStyleClasses = getTitleStyle(version, description, items);
|
|
10
11
|
return (
|
|
11
12
|
<div>
|
|
12
13
|
<div>
|
|
@@ -15,15 +16,11 @@ export const GalleryCardInner = JSX<GalleryCard>(
|
|
|
15
16
|
<Img className="mb-6" image={image} />
|
|
16
17
|
</div>
|
|
17
18
|
) : null}
|
|
18
|
-
{title
|
|
19
|
-
{description ?
|
|
20
|
-
|
|
21
|
-
<section className={`max-w-[308px] mt-2`} role="list">
|
|
22
|
-
{items
|
|
23
|
-
.filter((item) => item?.text)
|
|
24
|
-
.map((item, i) => renderItem(item.text as string, i, version))}
|
|
25
|
-
</section>
|
|
19
|
+
{title ? renderCardTitle(title, titleStyleClasses) : null}
|
|
20
|
+
{description ? (
|
|
21
|
+
<div className={`font-normal text-sm ${title ? 'mt-2' : ''}`}>{description}</div>
|
|
26
22
|
) : null}
|
|
23
|
+
{items?.length ? renderItems(items, version) : null}
|
|
27
24
|
</div>
|
|
28
25
|
{button?.text && <Button className="mt-6" {...button} />}
|
|
29
26
|
</div>
|
|
@@ -31,13 +28,17 @@ export const GalleryCardInner = JSX<GalleryCard>(
|
|
|
31
28
|
},
|
|
32
29
|
);
|
|
33
30
|
|
|
34
|
-
function renderCardTitle(title: string,
|
|
31
|
+
function renderCardTitle(title: string, className: string) {
|
|
32
|
+
return <div className={`font-medium text-xl m-0 ${className}`}>{title}</div>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function renderItems(items, version) {
|
|
35
36
|
return (
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</
|
|
37
|
+
<section className={`max-w-[308px] mt-2`} role="list">
|
|
38
|
+
{items
|
|
39
|
+
.filter((item) => item?.text)
|
|
40
|
+
.map((item, i) => renderItem(item.text as string, i, version))}
|
|
41
|
+
</section>
|
|
41
42
|
);
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -48,3 +49,10 @@ function renderItem(item: string, i: number, version?: BlockVersion) {
|
|
|
48
49
|
</BlockItem>
|
|
49
50
|
);
|
|
50
51
|
}
|
|
52
|
+
|
|
53
|
+
function getTitleStyle(version, description, items) {
|
|
54
|
+
return `font-medium text-xl m-0
|
|
55
|
+
${version !== 'secondary' ? 'text-primary-text' : ''}
|
|
56
|
+
${!description && !items?.length ? 'text-center' : ''}
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
@@ -32,7 +32,7 @@ export const Header = JSX<HeaderProps>(
|
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<header className={`${bgColor} ${className}`}>
|
|
35
|
-
<div className="container px-4 py-0">
|
|
35
|
+
<div className="container px-4 py-0 box-border">
|
|
36
36
|
<HeaderTop onClick={toggleBurgerMenu} bgColor={bgColor} />
|
|
37
37
|
<nav className="flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]">
|
|
38
38
|
<div className="flex">
|
|
@@ -18,8 +18,8 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
|
18
18
|
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<div className="absolute top-0 left-0 w-full h-full bg-white p-4">
|
|
22
|
-
<button className="absolute top-4 right-4" onClick={onClick}>
|
|
21
|
+
<div className="absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20">
|
|
22
|
+
<button className="absolute top-4 right-4 border-none bg-transparent" onClick={onClick}>
|
|
23
23
|
<Icon name="CloseIcon" width="24" height="24" asSVG />
|
|
24
24
|
</button>
|
|
25
25
|
<Button onClick={getCity} className="flex items-center text-sm text-secondary-text mb-4">
|
|
@@ -11,7 +11,7 @@ export interface HeaderTopProps {
|
|
|
11
11
|
export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
|
|
12
12
|
<div className="flex items-center justify-between border-0 border-b border-main-divider h-[50px]">
|
|
13
13
|
<div className="flex items-center">
|
|
14
|
-
<button className="pr-4" onClick={onClick} aria-label="Открыть меню">
|
|
14
|
+
<button className="pr-4 border-0 bg-transparent" onClick={onClick} aria-label="Открыть меню">
|
|
15
15
|
<Icon
|
|
16
16
|
name={bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite'}
|
|
17
17
|
width="24"
|
|
@@ -21,7 +21,11 @@ export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
|
|
|
21
21
|
</button>
|
|
22
22
|
<Logo bgColor={bgColor} />
|
|
23
23
|
</div>
|
|
24
|
-
<button
|
|
24
|
+
<button
|
|
25
|
+
className={`${
|
|
26
|
+
bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'
|
|
27
|
+
} text-sm border-0 bg-transparent`}
|
|
28
|
+
>
|
|
25
29
|
Войти
|
|
26
30
|
</button>
|
|
27
31
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
2
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
@@ -4,7 +4,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
|
|
|
4
4
|
|
|
5
5
|
export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
|
|
6
6
|
<LinkDocsListItemBase
|
|
7
|
-
className={`flex h-full ${className}`}
|
|
7
|
+
className={`flex h-full box-border ${className}`}
|
|
8
8
|
iconClassName="mr-3 min-w-6 min-h-6"
|
|
9
9
|
doc={doc}
|
|
10
10
|
icon={icon}
|
|
@@ -4,7 +4,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
|
|
|
4
4
|
|
|
5
5
|
export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
|
|
6
6
|
<LinkDocsListItemBase
|
|
7
|
-
className={className}
|
|
7
|
+
className={`flex h-full box-border ${className}`}
|
|
8
8
|
iconClassName="mr-2.5 min-w-6 min-h-6 text-primary-text"
|
|
9
9
|
textClassName="self-center"
|
|
10
10
|
suffixClassName="text-secondary-text group-hover:text-primary-main"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
2
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
2
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
3
|
-
import { Tile } from '../Tile/Tile';
|
|
4
3
|
import type { UniBlockProps } from '../../types';
|
|
4
|
+
import { Description } from '../../ui-kit/Description/Description';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
+
import { BaseTile } from '../BaseTile/BaseTile';
|
|
7
|
+
import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
|
|
8
|
+
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
9
|
+
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
5
10
|
|
|
6
11
|
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
7
12
|
className?: string;
|
|
@@ -9,13 +14,35 @@ export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
|
9
14
|
|
|
10
15
|
const GOLDEN_RATIO = 1.618;
|
|
11
16
|
|
|
12
|
-
export const Placeholder = JSX<PlaceholderProps>(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
17
|
+
export const Placeholder = JSX<PlaceholderProps>(
|
|
18
|
+
({ className, context, title, description = 'Блок в разработке...' }) => {
|
|
19
|
+
return (
|
|
20
|
+
<section
|
|
21
|
+
className={`bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(
|
|
22
|
+
className,
|
|
23
|
+
)} ${getTileMinHeight(className)} `}
|
|
24
|
+
>
|
|
25
|
+
<BaseTile
|
|
26
|
+
context={context}
|
|
27
|
+
title={
|
|
28
|
+
title ? (
|
|
29
|
+
<Heading
|
|
30
|
+
headingType={getTileHeadingType(className)}
|
|
31
|
+
title={title}
|
|
32
|
+
className={`whitespace-pre-wrap max-w-[600px]`}
|
|
33
|
+
/>
|
|
34
|
+
) : null
|
|
35
|
+
}
|
|
36
|
+
>
|
|
37
|
+
{description ? (
|
|
38
|
+
<Description className="mt-4 max-w-[600px]" description={description} />
|
|
39
|
+
) : null}
|
|
40
|
+
<figure className="m-0 min-w-[600px]">{renderShimmer()}</figure>
|
|
41
|
+
</BaseTile>
|
|
42
|
+
</section>
|
|
43
|
+
);
|
|
44
|
+
},
|
|
45
|
+
);
|
|
19
46
|
|
|
20
47
|
const renderShimmer = (size = 3) =>
|
|
21
48
|
goldenSequence(100, size)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
1
2
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
6
|
-
export type PlaceholderContent = HeadingContent;
|
|
7
|
+
export type PlaceholderContent = HeadingContent & DescriptionContent;
|
|
@@ -7,9 +7,15 @@ const image: Picture = {
|
|
|
7
7
|
format: 'webp',
|
|
8
8
|
alt: 'Потребительский кредит наличными',
|
|
9
9
|
size: {
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
10
|
+
width: 234,
|
|
11
|
+
height: 234,
|
|
12
12
|
},
|
|
13
|
+
sources: [
|
|
14
|
+
{
|
|
15
|
+
src: 'money-1.png 1x, money-1-2x.png 2x',
|
|
16
|
+
format: 'png',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
13
19
|
};
|
|
14
20
|
|
|
15
21
|
export default {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import type { DescriptionContent } from '../../ui-kit/Description/
|
|
4
|
+
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
5
5
|
import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
|
|
6
6
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
7
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
@@ -25,7 +25,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
25
25
|
version = 'primary',
|
|
26
26
|
}) => {
|
|
27
27
|
return (
|
|
28
|
-
<div className={
|
|
28
|
+
<div className={`w-full text-primary-text ${className}`}>
|
|
29
29
|
<div>
|
|
30
30
|
<BaseTile
|
|
31
31
|
context={context}
|
|
@@ -34,31 +34,37 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
34
34
|
<Heading
|
|
35
35
|
headingType={headingType}
|
|
36
36
|
title={title}
|
|
37
|
-
className={`whitespace-pre-wrap max-w-[600px]`}
|
|
37
|
+
className={`whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}`}
|
|
38
38
|
/>
|
|
39
39
|
)
|
|
40
40
|
}
|
|
41
41
|
buttons={
|
|
42
42
|
buttons?.length ? (
|
|
43
|
-
<ButtonSection
|
|
43
|
+
<ButtonSection
|
|
44
|
+
context={context}
|
|
45
|
+
buttons={buttons}
|
|
46
|
+
className="flex flex-col mt-5 gap-2.5"
|
|
47
|
+
/>
|
|
44
48
|
) : null
|
|
45
49
|
}
|
|
46
50
|
>
|
|
47
51
|
{description && <Description description={description} />}
|
|
48
52
|
{benefits?.length ? (
|
|
49
|
-
<div className="mt-
|
|
50
|
-
{benefits.map((_, i) => renderBenefit(_, i, version))}
|
|
51
|
-
</div>
|
|
53
|
+
<div className="mt-5">{benefits.map((_, i) => renderBenefit(_, i, version))}</div>
|
|
52
54
|
) : null}
|
|
53
55
|
{items?.length ? <List items={items} /> : null}
|
|
54
56
|
</BaseTile>
|
|
55
57
|
</div>
|
|
56
|
-
{image
|
|
57
|
-
<div className="mt-5">
|
|
58
|
-
<Img image={{ className: 'block', ...image }} />
|
|
59
|
-
</div>
|
|
60
|
-
)}
|
|
58
|
+
{renderImage(image)}
|
|
61
59
|
</div>
|
|
62
60
|
);
|
|
63
61
|
},
|
|
64
62
|
);
|
|
63
|
+
|
|
64
|
+
function renderImage(image) {
|
|
65
|
+
return image?.src ? (
|
|
66
|
+
<div className="mt-5">
|
|
67
|
+
<Img image={{ className: 'block', ...image }} />
|
|
68
|
+
</div>
|
|
69
|
+
) : null;
|
|
70
|
+
}
|
|
@@ -25,7 +25,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
25
25
|
version = 'primary',
|
|
26
26
|
}) => {
|
|
27
27
|
return (
|
|
28
|
-
<div className={`flex grow justify-between items-stretch ${className}`}>
|
|
28
|
+
<div className={`flex grow justify-between items-stretch text-primary-text ${className}`}>
|
|
29
29
|
<div className={'flex flex-col'}>
|
|
30
30
|
<BaseTile
|
|
31
31
|
context={context}
|
|
@@ -52,7 +52,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
52
52
|
{benefits.map((_, i) => renderBenefit(_, i, version))}
|
|
53
53
|
</div>
|
|
54
54
|
) : null}
|
|
55
|
-
{items?.length ? <List items={items} /> : null}
|
|
55
|
+
{items?.length ? <List className="mt-5" items={items} /> : null}
|
|
56
56
|
</BaseTile>
|
|
57
57
|
</div>
|
|
58
58
|
{image?.src && <Img className="mt-auto" image={image} />}
|
|
@@ -16,14 +16,14 @@ export function renderBenefit(benefit: Benefit, i: number, version: string) {
|
|
|
16
16
|
<div key={String(i)} className="flex gap-3 items-center mb-2.5 last:mb-0">
|
|
17
17
|
{benefit.icon && (
|
|
18
18
|
<Icon
|
|
19
|
-
className="w-
|
|
19
|
+
className="w-6 h-6 rounded-full box-border"
|
|
20
20
|
name={benefit.icon}
|
|
21
21
|
width="24"
|
|
22
22
|
height="24"
|
|
23
23
|
asSVG
|
|
24
24
|
/>
|
|
25
25
|
)}
|
|
26
|
-
<div className={`font-medium text-m-
|
|
26
|
+
<div className={`font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`}>
|
|
27
27
|
{benefit.label}
|
|
28
28
|
</div>
|
|
29
29
|
{benefit.description && (
|
|
@@ -10,20 +10,34 @@ const moneyImage: Picture = {
|
|
|
10
10
|
height: 280,
|
|
11
11
|
},
|
|
12
12
|
alt: 'Варианты потребительского кредита',
|
|
13
|
+
sources: [
|
|
14
|
+
{
|
|
15
|
+
src: 'money-1.png 1x, money-1-2x.png 2x',
|
|
16
|
+
format: 'png',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
13
19
|
};
|
|
14
20
|
|
|
15
21
|
const worker: Picture = {
|
|
16
22
|
src: 'money-2.png',
|
|
17
23
|
format: 'webp',
|
|
24
|
+
alt: 'Варианты потребительского кредита',
|
|
18
25
|
size: {
|
|
19
26
|
width: 280,
|
|
20
27
|
height: 280,
|
|
21
28
|
},
|
|
29
|
+
sources: [
|
|
30
|
+
{
|
|
31
|
+
src: 'money-2.png 1x, money-2-2x.png 2x',
|
|
32
|
+
format: 'png',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
22
35
|
};
|
|
23
36
|
|
|
24
37
|
const creditCard: Picture = {
|
|
25
38
|
src: 'credit-card-1.png',
|
|
26
39
|
format: 'webp',
|
|
40
|
+
alt: 'Варианты потребительского кредита',
|
|
27
41
|
size: {
|
|
28
42
|
width: 280,
|
|
29
43
|
height: 280,
|
|
@@ -31,6 +45,98 @@ const creditCard: Picture = {
|
|
|
31
45
|
};
|
|
32
46
|
|
|
33
47
|
export default {
|
|
48
|
+
default: (
|
|
49
|
+
<div className="p-2">
|
|
50
|
+
<div className="container grid grid-cols-12">
|
|
51
|
+
<ProductGallery
|
|
52
|
+
className="col-span-12"
|
|
53
|
+
context={context}
|
|
54
|
+
slides={[
|
|
55
|
+
{
|
|
56
|
+
productBlock: {
|
|
57
|
+
title: 'Акция «Кредит на все, что хочется!»',
|
|
58
|
+
items: [
|
|
59
|
+
'Потребительский кредит по специальной процентной ставке',
|
|
60
|
+
'Получите деньги без залога и поручительства',
|
|
61
|
+
'Кредитный лимит до 5 млн рублей',
|
|
62
|
+
],
|
|
63
|
+
buttons: [
|
|
64
|
+
{
|
|
65
|
+
href: 'https://rshb.ru',
|
|
66
|
+
text: 'Подробнее',
|
|
67
|
+
target: '_blank',
|
|
68
|
+
version: 'primary',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
image: moneyImage,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
productBlock: {
|
|
76
|
+
title: 'Ставка от 12,5% годовых на срок до 3 лет!',
|
|
77
|
+
items: [
|
|
78
|
+
'Потребительский кредит по специальной процентной ставке',
|
|
79
|
+
'Получите деньги без залога и поручительства',
|
|
80
|
+
'Кредитный лимит до 5 млн рублей',
|
|
81
|
+
],
|
|
82
|
+
buttons: [
|
|
83
|
+
{
|
|
84
|
+
href: 'https://rshb.ru',
|
|
85
|
+
text: 'Подробнее',
|
|
86
|
+
target: '_blank',
|
|
87
|
+
version: 'primary',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
image: worker,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
nav: {
|
|
95
|
+
title: 'Выгодно покупать',
|
|
96
|
+
desc: 'Дополнительные бонусные баллы за покупки',
|
|
97
|
+
},
|
|
98
|
+
productBlock: {
|
|
99
|
+
title: 'Дополнительные бонусные баллы за покупки!',
|
|
100
|
+
items: [
|
|
101
|
+
'Потребительский кредит по специальной процентной ставке',
|
|
102
|
+
'Получите деньги без залога и поручительства',
|
|
103
|
+
'Кредитный лимит до 5 млн рублей',
|
|
104
|
+
],
|
|
105
|
+
buttons: [
|
|
106
|
+
{
|
|
107
|
+
href: 'https://rshb.ru',
|
|
108
|
+
text: 'Подробнее',
|
|
109
|
+
target: '_blank',
|
|
110
|
+
version: 'primary',
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
image: creditCard,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
productBlock: {
|
|
118
|
+
title: 'Карты Unionpay',
|
|
119
|
+
items: [
|
|
120
|
+
'Потребительский кредит по специальной процентной ставке',
|
|
121
|
+
'Получите деньги без залога и поручительства',
|
|
122
|
+
'Кредитный лимит до 5 млн рублей',
|
|
123
|
+
],
|
|
124
|
+
buttons: [
|
|
125
|
+
{
|
|
126
|
+
href: 'https://rshb.ru',
|
|
127
|
+
text: 'Подробнее',
|
|
128
|
+
target: '_blank',
|
|
129
|
+
version: 'primary',
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
image: creditCard,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
]}
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
),
|
|
34
140
|
primary: (
|
|
35
141
|
<div className="p-2">
|
|
36
142
|
<div className="container grid grid-cols-12">
|
|
@@ -1,58 +1,21 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import { ProductGalleryBlock } from './ProductGalleryBlock';
|
|
4
3
|
import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
4
|
+
import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
|
|
5
|
+
import { ProductGalleryBlock } from './ProductGalleryBlock';
|
|
5
6
|
|
|
6
7
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
|
|
7
8
|
|
|
8
|
-
export const ProductGallery = JSX<ProductGalleryProps>(
|
|
9
|
-
|
|
10
|
-
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
11
|
-
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<section className={`font-sans bg-white overflow-hidden w-100 ${className || ''}`}>
|
|
15
|
-
<div
|
|
16
|
-
className={`flex duration-1000`}
|
|
17
|
-
style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
|
|
18
|
-
role="list"
|
|
19
|
-
>
|
|
20
|
-
{galleryBlocks.map((block, i) => (
|
|
21
|
-
<ProductGalleryBlock key={String(i)} block={block} context={context} />
|
|
22
|
-
))}
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<div className="flex px-4 py-6">
|
|
26
|
-
{slides.map((_, i) =>
|
|
27
|
-
renderNavButton({
|
|
28
|
-
slide: _.productBlock,
|
|
29
|
-
i,
|
|
30
|
-
activeSlideIndex,
|
|
31
|
-
onClick: () => setActiveSlideIndex(i),
|
|
32
|
-
duration,
|
|
33
|
-
}),
|
|
34
|
-
)}
|
|
35
|
-
</div>
|
|
36
|
-
</section>
|
|
37
|
-
);
|
|
38
|
-
},
|
|
39
|
-
);
|
|
9
|
+
export const ProductGallery = JSX<ProductGalleryProps>(({ className, context, slides = [] }) => {
|
|
10
|
+
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
40
11
|
|
|
41
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
|
|
42
|
-
const isActiveBtn = i === activeSlideIndex;
|
|
43
|
-
const progressBarClassName = isActiveBtn ? 'animate-slide bg-primary-main' : 'bg-main-divider';
|
|
44
12
|
return (
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
>
|
|
52
|
-
<div
|
|
53
|
-
className={`absolute bottom-0 left-0 w-full h-[3px] ${progressBarClassName}`}
|
|
54
|
-
style={{ animationDuration: `${duration}s`, animationFillMode: 'forwards' }}
|
|
55
|
-
></div>
|
|
56
|
-
</button>
|
|
13
|
+
<section className={`font-sans bg-white overflow-hidden w-100 pb-6 ${className || ''}`}>
|
|
14
|
+
<SwipeListControl context={context}>
|
|
15
|
+
{galleryBlocks.map((block, i) => (
|
|
16
|
+
<ProductGalleryBlock key={String(i)} block={block} context={context} />
|
|
17
|
+
))}
|
|
18
|
+
</SwipeListControl>
|
|
19
|
+
</section>
|
|
57
20
|
);
|
|
58
|
-
}
|
|
21
|
+
});
|