@redneckz/wildless-cms-uni-blocks 0.3.6 → 0.3.9
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 +48 -27
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/OkIcon.svg +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 +1 -0
- package/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +7 -2
- package/dist/components/Accordion/AccordionItem.mobile.js +3 -2
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -2
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BlockContent.d.ts +2 -1
- package/dist/components/Blocks.mobile.d.ts +1 -0
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.js +1 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ContentPage/ContentPageHead.js +13 -6
- package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/dist/components/Footer/Contacts.js +2 -2
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/dist/components/Footer/MediaButton.js +1 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/TextInformation.mobile.js +1 -1
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +6 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +5 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +2 -3
- 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/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkList/LinkList.d.ts +5 -0
- package/dist/components/LinkList/LinkList.js +14 -0
- package/dist/components/LinkList/LinkList.js.map +1 -0
- package/dist/components/LinkList/LinkListContent.d.ts +8 -0
- package/dist/components/LinkList/LinkListContent.js +2 -0
- package/dist/components/LinkList/LinkListContent.js.map +1 -0
- package/dist/components/LinkList/linkListContentExample.d.ts +2 -0
- package/dist/components/LinkList/linkListContentExample.js +23 -0
- package/dist/components/LinkList/linkListContentExample.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +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 +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.d.ts +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/types.d.ts +8 -9
- package/dist/ui-kit/BlockItem/BlockItem.js +1 -1
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Description/Description.js +2 -2
- package/dist/ui-kit/Description/Description.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/utils/getAccordionItems.js +1 -1
- package/dist/utils/getCurrentDate.d.ts +1 -0
- package/dist/utils/getCurrentDate.js +7 -0
- package/dist/utils/getCurrentDate.js.map +1 -0
- package/lib/common.css +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 +1 -0
- package/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +7 -2
- package/lib/components/Accordion/AccordionItem.mobile.js +3 -2
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -2
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BlockContent.d.ts +2 -1
- package/lib/components/Blocks.mobile.d.ts +1 -0
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.js +1 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ContentPage/ContentPageHead.js +13 -6
- package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/lib/components/Footer/Contacts.js +2 -2
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/lib/components/Footer/MediaButton.js +1 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/TextInformation.mobile.js +1 -1
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +6 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +5 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +2 -3
- 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/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkList/LinkList.d.ts +5 -0
- package/lib/components/LinkList/LinkList.fixture.d.ts +2 -0
- package/lib/components/LinkList/LinkList.js +12 -0
- package/lib/components/LinkList/LinkList.js.map +1 -0
- package/lib/components/LinkList/LinkListContent.d.ts +8 -0
- package/lib/components/LinkList/LinkListContent.js +2 -0
- package/lib/components/LinkList/LinkListContent.js.map +1 -0
- package/lib/components/LinkList/linkListContentExample.d.ts +2 -0
- package/lib/components/LinkList/linkListContentExample.js +21 -0
- package/lib/components/LinkList/linkListContentExample.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +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 +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.d.ts +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/types.d.ts +8 -9
- package/lib/ui-kit/BlockItem/BlockItem.js +1 -1
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Description/Description.js +2 -2
- package/lib/ui-kit/Description/Description.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/utils/getAccordionItems.js +1 -1
- package/lib/utils/getCurrentDate.d.ts +1 -0
- package/lib/utils/getCurrentDate.js +4 -0
- package/lib/utils/getCurrentDate.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +66 -40
- 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 +1 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +7 -2
- package/mobile/dist/components/Accordion/AccordionItem.js +3 -2
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -2
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BlockContent.d.ts +2 -1
- package/mobile/dist/components/Blocks.d.ts +1 -0
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js +13 -6
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +2 -2
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +6 -2
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +5 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +2 -3
- 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/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.d.ts +5 -0
- package/mobile/dist/components/LinkList/LinkList.js +14 -0
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -0
- package/mobile/dist/components/LinkList/LinkListContent.d.ts +8 -0
- package/mobile/dist/components/LinkList/LinkListContent.js +2 -0
- package/mobile/dist/components/LinkList/LinkListContent.js.map +1 -0
- package/mobile/dist/components/LinkList/linkListContentExample.d.ts +2 -0
- package/mobile/dist/components/LinkList/linkListContentExample.js +23 -0
- package/mobile/dist/components/LinkList/linkListContentExample.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.d.ts +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/types.d.ts +8 -9
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +1 -1
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/dist/ui-kit/Description/Description.js +2 -2
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -4
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/utils/getAccordionItems.js +1 -1
- package/mobile/dist/utils/getCurrentDate.d.ts +1 -0
- package/mobile/dist/utils/getCurrentDate.js +7 -0
- package/mobile/dist/utils/getCurrentDate.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 +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +7 -2
- package/mobile/lib/components/Accordion/AccordionItem.js +3 -2
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -2
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +2 -1
- package/mobile/lib/components/Blocks.d.ts +1 -0
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js +13 -6
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +2 -2
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +6 -2
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +5 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +2 -3
- 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/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.d.ts +5 -0
- package/mobile/lib/components/LinkList/LinkList.js +12 -0
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -0
- package/mobile/lib/components/LinkList/LinkListContent.d.ts +8 -0
- package/mobile/lib/components/LinkList/LinkListContent.js +2 -0
- package/mobile/lib/components/LinkList/LinkListContent.js.map +1 -0
- package/mobile/lib/components/LinkList/linkListContentExample.d.ts +2 -0
- package/mobile/lib/components/LinkList/linkListContentExample.js +21 -0
- package/mobile/lib/components/LinkList/linkListContentExample.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.d.ts +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/types.d.ts +8 -9
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +1 -1
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/lib/ui-kit/Description/Description.js +2 -2
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +3 -4
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/utils/getAccordionItems.js +1 -1
- package/mobile/lib/utils/getCurrentDate.d.ts +1 -0
- package/mobile/lib/utils/getCurrentDate.js +4 -0
- package/mobile/lib/utils/getCurrentDate.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +1 -3
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +10 -2
- package/mobile/src/components/Accordion/AccordionItem.tsx +5 -4
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +2 -2
- package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
- package/mobile/src/components/BlockContent.ts +3 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +20 -17
- package/mobile/src/components/Footer/Contacts.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +3 -3
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +4 -2
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/Gallery/Gallery.example.json +20 -4
- package/mobile/src/components/Gallery/Gallery.tsx +14 -4
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -1
- package/mobile/src/components/Gallery/GalleryInner.tsx +4 -3
- package/mobile/src/components/Header/HeaderBurger.tsx +15 -8
- package/mobile/src/components/Header/HeaderTop.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +4 -2
- package/mobile/src/components/LinkList/LinkList.example.json +21 -0
- package/mobile/src/components/LinkList/LinkList.tsx +28 -0
- package/mobile/src/components/LinkList/LinkListContent.ts +9 -0
- package/mobile/src/components/LinkList/linkListContentExample.ts +22 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +2 -2
- package/mobile/src/icons/OkIcon.svg +1 -0
- package/mobile/src/types.ts +8 -10
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
- package/mobile/src/ui-kit/Description/Description.tsx +2 -2
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +3 -12
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +7 -9
- package/mobile/src/utils/getAccordionItems.ts +1 -1
- package/mobile/src/utils/getCurrentDate.ts +3 -0
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.mobile.tsx +1 -3
- package/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/src/components/Accordion/AccordionContent.ts +10 -2
- package/src/components/Accordion/AccordionItem.mobile.tsx +5 -4
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +2 -2
- package/src/components/Accordion/utils/isActiveHandler.ts +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
- package/src/components/BlockContent.ts +3 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/src/components/ContentPage/ContentPageHead.tsx +20 -17
- package/src/components/Footer/Contacts.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +3 -3
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +4 -2
- package/src/components/Footer/TextInformation.mobile.tsx +2 -2
- package/src/components/Gallery/Gallery.example.json +20 -4
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -0
- package/src/components/Gallery/Gallery.fixture.tsx +9 -1
- package/src/components/Gallery/Gallery.mobile.tsx +14 -4
- package/src/components/Gallery/GalleryCardInner.tsx +12 -1
- package/src/components/Gallery/GalleryInner.tsx +4 -3
- package/src/components/Header/HeaderBurger.tsx +15 -8
- package/src/components/Header/HeaderTop.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +4 -2
- package/src/components/LinkDocs/LinkDocs.tsx +2 -2
- package/src/components/LinkList/LinkList.example.json +21 -0
- package/src/components/LinkList/LinkList.fixture.tsx +13 -0
- package/src/components/LinkList/LinkList.tsx +28 -0
- package/src/components/LinkList/LinkListContent.ts +9 -0
- package/src/components/LinkList/linkListContentExample.ts +22 -0
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +5 -0
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.example.json +2 -1
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +6 -4
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +2 -0
- package/src/components/ProductGallery/ProductGallery.tsx +3 -3
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +1 -1
- package/src/components/PromoTile/PromoTile.fixture.tsx +2 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +1 -1
- package/src/components/Tile/Tile.tsx +2 -2
- package/src/icons/OkIcon.svg +1 -0
- package/src/types.ts +8 -10
- package/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
- package/src/ui-kit/Description/Description.tsx +2 -2
- package/src/ui-kit/InputRange/InputRange.tsx +3 -12
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +7 -9
- package/src/utils/getAccordionItems.ts +1 -1
- package/src/utils/getCurrentDate.ts +3 -0
|
@@ -6,22 +6,17 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
6
6
|
({ className, title, items = [], min = 1, max = 100, step = 1, value = min, onChange }) => {
|
|
7
7
|
const handleChange = (value: string) => {
|
|
8
8
|
if (!onChange) return;
|
|
9
|
-
|
|
10
9
|
const sanitizedValue = Number(value.replace(/\D/g, ''));
|
|
11
10
|
onChange(sanitizedValue);
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
const inputStyle = {
|
|
15
13
|
backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
|
|
16
14
|
};
|
|
17
|
-
|
|
18
15
|
const handleBlur = () => {
|
|
19
16
|
if (!onChange) return;
|
|
20
|
-
|
|
21
17
|
if (value < min) onChange(min);
|
|
22
18
|
if (value > max) onChange(max);
|
|
23
19
|
};
|
|
24
|
-
|
|
25
20
|
return (
|
|
26
21
|
<div className={className}>
|
|
27
22
|
<label className="block relative">
|
|
@@ -32,14 +27,12 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
32
27
|
) : null}
|
|
33
28
|
<input
|
|
34
29
|
className={`m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md
|
|
35
|
-
outline-none p-0 pl-4 m-0 box-border text-primary-text ${
|
|
36
|
-
title ? 'pt-4' : ''
|
|
37
|
-
}`}
|
|
30
|
+
outline-none p-0 pl-4 m-0 box-border text-primary-text ${ title ? 'pt-4' : '' }`}
|
|
38
31
|
value={addSpacesBetweenNumbers(value)}
|
|
39
32
|
onChange={(e) => handleChange(e.target.value)}
|
|
40
33
|
onBlur={handleBlur}
|
|
41
34
|
/>
|
|
42
|
-
<div className="absolute inset-x-0 top-
|
|
35
|
+
<div className="absolute inset-x-0 top-[35px] px-4 leading-[18px]">
|
|
43
36
|
<input
|
|
44
37
|
className="box-border w-full m-0 cursor-pointer slider"
|
|
45
38
|
type="range"
|
|
@@ -54,9 +47,7 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
54
47
|
</label>
|
|
55
48
|
<div className="flex justify-between my-3">
|
|
56
49
|
{items.map((item, i) => (
|
|
57
|
-
<span key={String(i)} className="text-xs leading-[14px] text-secondary-text pl-4">
|
|
58
|
-
{item}
|
|
59
|
-
</span>
|
|
50
|
+
<span key={String(i)} className="text-xs leading-[14px] text-secondary-text pl-4"> {item} </span>
|
|
60
51
|
))}
|
|
61
52
|
</div>
|
|
62
53
|
</div>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import { Button } from '../Button/Button';
|
|
4
3
|
import { Icon } from '../Icon/Icon';
|
|
5
4
|
|
|
6
5
|
export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
|
|
@@ -23,24 +22,23 @@ export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
|
|
|
23
22
|
<input
|
|
24
23
|
id="search-bar-input"
|
|
25
24
|
className={
|
|
26
|
-
'h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded
|
|
25
|
+
'h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text'
|
|
27
26
|
}
|
|
28
27
|
value={term}
|
|
29
28
|
onChange={(e) => setTerm(e.target.value)}
|
|
30
29
|
type="text"
|
|
31
30
|
name="search-bar-input"
|
|
31
|
+
placeholder="some search"
|
|
32
32
|
/>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
text="Найти"
|
|
36
|
-
className="w-auto invisible peer-focus:visible absolute top-1 right-1"
|
|
33
|
+
<button
|
|
34
|
+
className="visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer"
|
|
37
35
|
onClick={(e) => {
|
|
38
36
|
e.preventDefault();
|
|
39
|
-
|
|
37
|
+
setTerm('');
|
|
40
38
|
}}
|
|
41
39
|
>
|
|
42
|
-
<
|
|
43
|
-
</
|
|
40
|
+
<Icon name="CloseIcon" width="24" height="24" />
|
|
41
|
+
</button>
|
|
44
42
|
</form>
|
|
45
43
|
);
|
|
46
44
|
});
|
package/package.json
CHANGED
|
@@ -10,9 +10,7 @@ export const Accordion = JSX<AccordionProps>(
|
|
|
10
10
|
({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
11
11
|
return (
|
|
12
12
|
<section
|
|
13
|
-
className={`py-6 font-sans bg-white text-primary-text ${
|
|
14
|
-
bordered ? 'px-4' : ''
|
|
15
|
-
} ${className}`}
|
|
13
|
+
className={`py-6 px-4 font-sans bg-white text-primary-text ${className}`}
|
|
16
14
|
>
|
|
17
15
|
{title ? <Heading headingType="h3" className="mb-2 text-center" title={title} /> : null}
|
|
18
16
|
{description ? <div className="mb-5 text-m-md text-center">{description}</div> : null}
|
|
@@ -6,6 +6,7 @@ import { Tile } from '../Tile/Tile';
|
|
|
6
6
|
import { ProductTile } from '../ProductTile/ProductTile';
|
|
7
7
|
import { Gallery } from '../Gallery/Gallery';
|
|
8
8
|
import { MiniGallery } from '../MiniGallery/MiniGallery';
|
|
9
|
+
import { LinkList } from '../LinkList/LinkList';
|
|
9
10
|
|
|
10
11
|
export const AccordionBlocks = {
|
|
11
12
|
Headline,
|
|
@@ -16,4 +17,5 @@ export const AccordionBlocks = {
|
|
|
16
17
|
ProductTile,
|
|
17
18
|
Gallery,
|
|
18
19
|
MiniGallery,
|
|
20
|
+
LinkList,
|
|
19
21
|
};
|
|
@@ -6,6 +6,7 @@ import type { PictureTextContent } from '../PictureText/PictureTextContent';
|
|
|
6
6
|
import type { ProductTileContent } from '../ProductTile/ProductTileContent';
|
|
7
7
|
import type { TextBlockContent } from '../TextBlock/TextBlockContent';
|
|
8
8
|
import type { TileContent } from '../Tile/TileContent';
|
|
9
|
+
import type { LinkListContent } from '../LinkList/LinkListContent';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* @title Тип блока
|
|
@@ -18,7 +19,8 @@ export type AccordionBlockType =
|
|
|
18
19
|
| 'Tile'
|
|
19
20
|
| 'ProductTile'
|
|
20
21
|
| 'Gallery'
|
|
21
|
-
| 'MiniGallery'
|
|
22
|
+
| 'MiniGallery'
|
|
23
|
+
| 'LinkList';
|
|
22
24
|
|
|
23
25
|
interface AccordionBlockDef {
|
|
24
26
|
accordionBlockType: AccordionBlockType;
|
|
@@ -64,6 +66,11 @@ export type GalleryAccordionBlockDef = GalleryContent & AccordionBlockDef;
|
|
|
64
66
|
*/
|
|
65
67
|
export type MiniGalleryAccordionBlockDef = MiniGalleryContent & AccordionBlockDef;
|
|
66
68
|
|
|
69
|
+
/**
|
|
70
|
+
* @title Список ссылок
|
|
71
|
+
*/
|
|
72
|
+
export type LinkListAccordionBlockDef = LinkListContent & AccordionBlockDef;
|
|
73
|
+
|
|
67
74
|
/**
|
|
68
75
|
* @title Выберите блок
|
|
69
76
|
*/
|
|
@@ -81,7 +88,8 @@ export type AccordionBlockProps =
|
|
|
81
88
|
| TileAccordionBlockDef
|
|
82
89
|
| ProductTileAccordionBlockDef
|
|
83
90
|
| GalleryAccordionBlockDef
|
|
84
|
-
| MiniGalleryAccordionBlockDef
|
|
91
|
+
| MiniGalleryAccordionBlockDef
|
|
92
|
+
| LinkListAccordionBlockDef;
|
|
85
93
|
|
|
86
94
|
/**
|
|
87
95
|
* @title Элемент списка
|
|
@@ -16,22 +16,23 @@ export const AccordionItem = JSX<AccordionItemProps>(({ label, blocks, bordered,
|
|
|
16
16
|
return (
|
|
17
17
|
<li
|
|
18
18
|
className={`${
|
|
19
|
-
bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0
|
|
19
|
+
bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'
|
|
20
20
|
} border-solid border-main-divider`}
|
|
21
21
|
>
|
|
22
22
|
<button
|
|
23
23
|
className={`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
24
|
-
|
|
24
|
+
${bordered ? '' : 'py-[14px] px-0'}
|
|
25
|
+
${hasContent ? 'group cursor-pointer' : ''}`}
|
|
25
26
|
onClick={handleToggle}
|
|
26
27
|
>
|
|
27
28
|
<span
|
|
28
|
-
className={`text-
|
|
29
|
+
className={`text-sm pr-2.5 font-medium ${
|
|
29
30
|
hasContent ? 'group-hover:text-primary-main' : ''
|
|
30
31
|
}`}
|
|
31
32
|
>
|
|
32
33
|
{label}
|
|
33
34
|
</span>
|
|
34
|
-
{hasContent ? <Icon name={icon} width="
|
|
35
|
+
{hasContent ? <Icon name={icon} width="20" height="20" asSVG /> : null}
|
|
35
36
|
</button>
|
|
36
37
|
{hasContent ? <AccordionItemInner blocks={blocks} context={context} /> : null}
|
|
37
38
|
</li>
|
|
@@ -7,7 +7,7 @@ import type { AccordionItemProps } from './AccordionItem';
|
|
|
7
7
|
|
|
8
8
|
export const AccordionItemInner = JSX<AccordionItemProps>(({ blocks, context }) => {
|
|
9
9
|
return (
|
|
10
|
-
<div className=
|
|
10
|
+
<div className="transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0">
|
|
11
11
|
{blocks?.length ? blocks.map(renderBlock(context)) : null}
|
|
12
12
|
</div>
|
|
13
13
|
);
|
|
@@ -21,7 +21,7 @@ const renderBlock = (context: ContentPageContext) => (block: AccordionBlockProps
|
|
|
21
21
|
|
|
22
22
|
const AccordionBlock: JSXBlock = AccordionBlocks[type];
|
|
23
23
|
return (
|
|
24
|
-
<div className="mb-5 last:mb-0
|
|
24
|
+
<div className="mb-5 last:mb-0" key={`block_${i}`}>
|
|
25
25
|
<AccordionBlock context={context} {...block} className="!p-0" />
|
|
26
26
|
</div>
|
|
27
27
|
);
|
|
@@ -9,7 +9,7 @@ export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps
|
|
|
9
9
|
export const BenefitsBlock = JSX<BenefitsBlockProps>(({ className, title, benefits }) => {
|
|
10
10
|
return (
|
|
11
11
|
<section
|
|
12
|
-
className={`font-sans text-primary-text bg-white p-12
|
|
12
|
+
className={`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${
|
|
13
13
|
className || ''
|
|
14
14
|
}`}
|
|
15
15
|
>
|
|
@@ -17,7 +17,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(({ className, title, benefi
|
|
|
17
17
|
<Heading headingType="h2" className="max-w-[47rem] text-center" title={title} />
|
|
18
18
|
) : null}
|
|
19
19
|
{benefits?.length ? (
|
|
20
|
-
<div className="grid grid-cols-2 gap-
|
|
20
|
+
<div className="grid grid-cols-2 gap-8 mt-9">{benefits.map(renderStep)}</div>
|
|
21
21
|
) : null}
|
|
22
22
|
</section>
|
|
23
23
|
);
|
|
@@ -25,7 +25,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(({ className, title, benefi
|
|
|
25
25
|
|
|
26
26
|
const renderStep = (benefit: Benefit, i: number) => {
|
|
27
27
|
return (
|
|
28
|
-
<div key={String(i)} className="flex items-center
|
|
28
|
+
<div key={String(i)} className="flex items-center gap-5 max-w-[500px]">
|
|
29
29
|
{benefit.icon && (
|
|
30
30
|
<Icon
|
|
31
31
|
className="h-[70px] w-[70px] min-w-[70px] min-h-[70px]"
|
|
@@ -17,6 +17,7 @@ import type { StepsBlockContent } from './StepsBlock/StepsBlockContent';
|
|
|
17
17
|
import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
|
|
18
18
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
19
19
|
import type { TileContent } from './Tile/TileContent';
|
|
20
|
+
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* @hidden
|
|
@@ -40,4 +41,5 @@ export type BlockContent =
|
|
|
40
41
|
| TariffsTableContent
|
|
41
42
|
| TextBlockContent
|
|
42
43
|
| TileContent
|
|
43
|
-
| NavigationContent
|
|
44
|
+
| NavigationContent
|
|
45
|
+
| LinkListContent;
|
|
@@ -10,6 +10,7 @@ import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
|
10
10
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
11
11
|
import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
12
12
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
13
|
+
import { LinkList } from './LinkList/LinkList';
|
|
13
14
|
|
|
14
15
|
export const Blocks = {
|
|
15
16
|
Accordion,
|
|
@@ -24,4 +25,5 @@ export const Blocks = {
|
|
|
24
25
|
ProductGallery,
|
|
25
26
|
StepsBlock,
|
|
26
27
|
TextBlock,
|
|
28
|
+
LinkList,
|
|
27
29
|
};
|
|
@@ -16,7 +16,7 @@ export const TableCell = JSX<TableCellProps>(({ cell, isFirstRow, isLastRow, isF
|
|
|
16
16
|
|
|
17
17
|
const cellClasses = `mx-7 h-full ${DIVIDER_CLASSES} ${
|
|
18
18
|
isFillGradient && isFirstRow ? 'border-t' : ''
|
|
19
|
-
} ${!isLastRow ? 'border-solid' : ''}`;
|
|
19
|
+
} ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
22
|
<div className={cellWrapperClasses} role="cell">
|
|
@@ -7,13 +7,8 @@ export interface ContentPageHeadProps {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data, children }) => {
|
|
10
|
-
const {
|
|
11
|
-
|
|
12
|
-
main: { description, keywords, canonical, robots },
|
|
13
|
-
og,
|
|
14
|
-
twitter,
|
|
15
|
-
jsonLd,
|
|
16
|
-
} = data;
|
|
10
|
+
const { title, main, og, twitter, jsonLd } = data;
|
|
11
|
+
const { description, keywords, canonical, robots } = main || {};
|
|
17
12
|
return (
|
|
18
13
|
<HeadComponent>
|
|
19
14
|
<title>{title}</title>
|
|
@@ -21,19 +16,27 @@ export const ContentPageHead = JSX<ContentPageHeadProps>(({ HeadComponent, data,
|
|
|
21
16
|
{description && <meta name="description" content={description} />}
|
|
22
17
|
{keywords && <meta name="keywords" content={keywords.join(',')} />}
|
|
23
18
|
{robots && <meta name="robots" content={robots.join(',')} />}
|
|
24
|
-
{og
|
|
25
|
-
|
|
26
|
-
<meta key={key} name={`og:${key}`} content={value} />
|
|
27
|
-
))
|
|
28
|
-
: null}
|
|
29
|
-
{twitter
|
|
30
|
-
? Object.entries(twitter).map(([key, value]) => (
|
|
31
|
-
<meta key={key} name={`twitter:${key}`} content={value} />
|
|
32
|
-
))
|
|
33
|
-
: null}
|
|
19
|
+
{renderOpenGraph(og)}
|
|
20
|
+
{renderTwitter(twitter)}
|
|
34
21
|
{canonical && <link rel="canonical" href={canonical} />}
|
|
35
22
|
{jsonLd && <script type="application/ld+json">{jsonLd}</script>}
|
|
36
23
|
{children}
|
|
37
24
|
</HeadComponent>
|
|
38
25
|
);
|
|
39
26
|
});
|
|
27
|
+
|
|
28
|
+
function renderOpenGraph(og: Record<string, string> | undefined) {
|
|
29
|
+
return og
|
|
30
|
+
? Object.entries(og).map(([key, value]) => (
|
|
31
|
+
<meta key={key} name={`og:${key}`} content={value} />
|
|
32
|
+
))
|
|
33
|
+
: null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function renderTwitter(twitter: Record<string, string> | undefined) {
|
|
37
|
+
return twitter
|
|
38
|
+
? Object.entries(twitter).map(([key, value]) => (
|
|
39
|
+
<meta key={key} name={`twitter:${key}`} content={value} />
|
|
40
|
+
))
|
|
41
|
+
: null;
|
|
42
|
+
}
|
|
@@ -19,7 +19,7 @@ export const Contacts = JSX<ContactsProps>(({ className, items, hasButton, conte
|
|
|
19
19
|
{hasButton ? (
|
|
20
20
|
<Button
|
|
21
21
|
version="primary"
|
|
22
|
-
className="
|
|
22
|
+
className="mt-0.5 mb-5"
|
|
23
23
|
{...useLink(
|
|
24
24
|
{ router, handlerDecorator },
|
|
25
25
|
{
|
|
@@ -38,7 +38,7 @@ const renderContact = (item: ContactInfo, index: number) => {
|
|
|
38
38
|
const { type, text, description } = item;
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<div className="mb-
|
|
41
|
+
<div className="mb-3.5" key={String(index)}>
|
|
42
42
|
<div>{renderText(type, text)}</div>
|
|
43
43
|
<div className="font-sans text-sm text-secondary-text">{description}</div>
|
|
44
44
|
</div>
|
|
@@ -35,7 +35,7 @@ export const Footer = JSX<FooterProps>(
|
|
|
35
35
|
return (
|
|
36
36
|
<footer className={`px-4 py-[26px] bg-white ${className}`}>
|
|
37
37
|
<Contacts className="overflow-hidden" items={contacts} context={context} hasButton />
|
|
38
|
-
<Accordion className="p-0
|
|
38
|
+
<Accordion className="!p-0 mb-4" {...propsTextBlock} />
|
|
39
39
|
<div>{subMenu?.map(renderSubMenuItem)}</div>
|
|
40
40
|
<MobileAppTile
|
|
41
41
|
context={context}
|
|
@@ -58,9 +58,9 @@ export const Footer = JSX<FooterProps>(
|
|
|
58
58
|
const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
|
|
59
59
|
const { icon, href, text } = menu;
|
|
60
60
|
return (
|
|
61
|
-
<Button key={`footer-${i}`} href={href} className="flex text-sm mb-4">
|
|
61
|
+
<Button version="link" key={`footer-${i}`} href={href} className="flex text-sm mb-4">
|
|
62
62
|
{icon ? <Icon className="pr-1" name={icon} width="24" height="24" asSVG /> : null}
|
|
63
|
-
<span className="pl-
|
|
63
|
+
<span className="pl-2.5 font-medium text-primary-text">{text}</span>
|
|
64
64
|
</Button>
|
|
65
65
|
);
|
|
66
66
|
};
|
|
@@ -17,7 +17,7 @@ export const HorizontalNavigation = JSX<HorizontalNavigationProps>(
|
|
|
17
17
|
<div className={className}>
|
|
18
18
|
<span className="text-primary-text font-sans font-medium text-sm">{title}</span>
|
|
19
19
|
{links?.length ? (
|
|
20
|
-
<div className="flex flex-col gap-
|
|
20
|
+
<div className="flex flex-col gap-2 pt-3">
|
|
21
21
|
{links.map((_, i) => (
|
|
22
22
|
<HorizontalNavigationLink
|
|
23
23
|
key={String(i)}
|
|
@@ -32,13 +32,15 @@ export const MediaButton = JSX<MediaButtonProps>(({ href }) => {
|
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<a
|
|
35
|
-
className="flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:
|
|
35
|
+
className="flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main"
|
|
36
36
|
href={href}
|
|
37
37
|
aria-label={label}
|
|
38
38
|
target="_blank"
|
|
39
39
|
rel="noopener noreferrer"
|
|
40
40
|
>
|
|
41
|
-
{Icon &&
|
|
41
|
+
{Icon && (
|
|
42
|
+
<Icon name={icon} width={width} height={height} asSVG className="block" color="none" />
|
|
43
|
+
)}
|
|
42
44
|
</a>
|
|
43
45
|
);
|
|
44
46
|
});
|
|
@@ -8,13 +8,13 @@ export const TextInformation = JSX<FooterLink>(({ className, links, context }) =
|
|
|
8
8
|
const { handlerDecorator } = context;
|
|
9
9
|
return (
|
|
10
10
|
<div className={`${className || ''}`}>
|
|
11
|
-
<div className="
|
|
11
|
+
<div className="py-6">
|
|
12
12
|
<span className="font-sans font-normal text-xs text-secondary-text">
|
|
13
13
|
{`\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.`}
|
|
14
14
|
</span>
|
|
15
15
|
</div>
|
|
16
16
|
{links?.length ? (
|
|
17
|
-
<div className={`flex flex-col justify-start items-start gap-
|
|
17
|
+
<div className={`flex flex-col justify-start items-start gap-2`}>
|
|
18
18
|
{links.map((_, i) => (
|
|
19
19
|
<TextInformationLink
|
|
20
20
|
key={String(i)}
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
"title": "Заголовок 1",
|
|
14
14
|
"description": "Описание 1",
|
|
15
15
|
"href": "/credit-cards",
|
|
16
|
-
"items": [
|
|
16
|
+
"items": [
|
|
17
|
+
{"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
|
|
18
|
+
{"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
|
|
19
|
+
{"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
|
|
20
|
+
]
|
|
17
21
|
},
|
|
18
22
|
{
|
|
19
23
|
"image": {
|
|
@@ -26,7 +30,11 @@
|
|
|
26
30
|
"title": "Заголовок 2",
|
|
27
31
|
"description": "Описание 2",
|
|
28
32
|
"href": "/credit-cards",
|
|
29
|
-
"items": [
|
|
33
|
+
"items": [
|
|
34
|
+
{"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
|
|
35
|
+
{"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
|
|
36
|
+
{"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
|
|
37
|
+
]
|
|
30
38
|
},
|
|
31
39
|
{
|
|
32
40
|
"image": {
|
|
@@ -39,7 +47,11 @@
|
|
|
39
47
|
"title": "Заголовок 3",
|
|
40
48
|
"description": "Описание 3",
|
|
41
49
|
"href": "/credit-cards",
|
|
42
|
-
"items": [
|
|
50
|
+
"items": [
|
|
51
|
+
{"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
|
|
52
|
+
{"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
|
|
53
|
+
{"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
|
|
54
|
+
]
|
|
43
55
|
},
|
|
44
56
|
{
|
|
45
57
|
"image": {
|
|
@@ -52,7 +64,11 @@
|
|
|
52
64
|
"title": "Заголовок 4",
|
|
53
65
|
"description": "Описание 4",
|
|
54
66
|
"href": "/credit-cards",
|
|
55
|
-
"items": [
|
|
67
|
+
"items": [
|
|
68
|
+
{"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
|
|
69
|
+
{"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
|
|
70
|
+
{"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
|
|
71
|
+
]
|
|
56
72
|
}
|
|
57
73
|
]
|
|
58
74
|
}
|
|
@@ -21,6 +21,14 @@ const buttonPrimary: ButtonCommonProps = {
|
|
|
21
21
|
version: 'secondary',
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
const buttonPrimaryIcon: ButtonCommonProps = {
|
|
25
|
+
href: '/credit-cards',
|
|
26
|
+
text: 'Подробнее',
|
|
27
|
+
target: '_blank',
|
|
28
|
+
version: 'secondary',
|
|
29
|
+
icon: 'BankIcon',
|
|
30
|
+
};
|
|
31
|
+
|
|
24
32
|
const defaultItems = [
|
|
25
33
|
{ text: 'Качественные фермерские продукты напрямую от производителей' },
|
|
26
34
|
{ text: 'Самая большая база сельских туров по России' },
|
|
@@ -45,7 +53,7 @@ export const defaultProps: GalleryProps = {
|
|
|
45
53
|
title: 'Более 1000 развлечений',
|
|
46
54
|
description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
|
|
47
55
|
image,
|
|
48
|
-
button:
|
|
56
|
+
button: buttonPrimaryIcon,
|
|
49
57
|
items: defaultItems,
|
|
50
58
|
},
|
|
51
59
|
{
|
|
@@ -7,6 +7,7 @@ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl
|
|
|
7
7
|
import type { GalleryCard } from './GalleryContent';
|
|
8
8
|
import { GalleryItem } from './GalleryContent';
|
|
9
9
|
import type { GalleryProps } from './GalleryProps';
|
|
10
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
10
11
|
|
|
11
12
|
const blockStyle: Record<BlockVersion, string> = {
|
|
12
13
|
primary: 'bg-white',
|
|
@@ -44,7 +45,6 @@ function renderCard(card: GalleryCard, key: number) {
|
|
|
44
45
|
<div
|
|
45
46
|
className={`box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
46
47
|
${blockStyle[card.version ?? 'primary']}`}
|
|
47
|
-
role="listitem"
|
|
48
48
|
key={key}
|
|
49
49
|
>
|
|
50
50
|
<div>
|
|
@@ -57,11 +57,21 @@ function renderCard(card: GalleryCard, key: number) {
|
|
|
57
57
|
{card.description ? renderDescription(card) : null}
|
|
58
58
|
{card.items?.length ? renderItems(card.items) : null}
|
|
59
59
|
</div>
|
|
60
|
-
{card?.button?.href ?
|
|
60
|
+
{card?.button?.href ? renderButton(card.button) : null}
|
|
61
61
|
</div>
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
function renderButton(button) {
|
|
66
|
+
return (
|
|
67
|
+
<Button
|
|
68
|
+
className="mt-3"
|
|
69
|
+
appendLeft={button?.icon && <Icon name={button?.icon} width="24px" height="24px" asSVG />}
|
|
70
|
+
{...button}
|
|
71
|
+
/>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
65
75
|
function renderDescription(card: GalleryCard) {
|
|
66
76
|
return (
|
|
67
77
|
<div
|
|
@@ -77,8 +87,8 @@ function renderDescription(card: GalleryCard) {
|
|
|
77
87
|
function renderItems(items: GalleryItem[]) {
|
|
78
88
|
return (
|
|
79
89
|
<section className="mt-3">
|
|
80
|
-
{items.map((item) => (
|
|
81
|
-
<div>
|
|
90
|
+
{items.map((item, i) => (
|
|
91
|
+
<div key={String(i)}>
|
|
82
92
|
<span className="text-m-md font-medium">{item.title}</span>
|
|
83
93
|
<span className="text-m-sm text-secondary-text pl-2">{item.text}</span>
|
|
84
94
|
</div>
|
|
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
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
|
+
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
5
6
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
7
|
import type { GalleryCard } from './GalleryContent';
|
|
7
8
|
|
|
@@ -22,12 +23,22 @@ export const GalleryCardInner = JSX<GalleryCard>(
|
|
|
22
23
|
) : null}
|
|
23
24
|
{items?.length ? renderItems(items, version) : null}
|
|
24
25
|
</div>
|
|
25
|
-
{button?.text
|
|
26
|
+
{button?.text ? renderButton(button) : null}
|
|
26
27
|
</div>
|
|
27
28
|
);
|
|
28
29
|
},
|
|
29
30
|
);
|
|
30
31
|
|
|
32
|
+
function renderButton(button) {
|
|
33
|
+
return (
|
|
34
|
+
<Button
|
|
35
|
+
className="mt-6 w-full"
|
|
36
|
+
appendLeft={button.icon && <Icon name={button.icon} width="24px" height="24px" asSVG />}
|
|
37
|
+
{...button}
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
31
42
|
function renderCardTitle(title: string, className: string) {
|
|
32
43
|
return <div className={`font-medium text-xl m-0 ${className}`}>{title}</div>;
|
|
33
44
|
}
|
|
@@ -38,19 +38,20 @@ export const GalleryInner = JSX<GalleryInnerProps>(
|
|
|
38
38
|
/>
|
|
39
39
|
{showPrevButton && (
|
|
40
40
|
<ArrowButton
|
|
41
|
-
className="absolute top-1/2 left-8 rotate-180"
|
|
41
|
+
className="absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]"
|
|
42
42
|
onClick={handlePrevClick}
|
|
43
43
|
ariaLabel="Пролистать влево"
|
|
44
44
|
/>
|
|
45
45
|
)}
|
|
46
46
|
{showNextButton && (
|
|
47
47
|
<ArrowButton
|
|
48
|
-
className="absolute top-1/2 right-
|
|
48
|
+
className="absolute top-1/2 right-8 z-10 mt-[25px]"
|
|
49
49
|
onClick={handleNextClick}
|
|
50
50
|
ariaLabel="Пролистать вправо"
|
|
51
51
|
/>
|
|
52
52
|
)}
|
|
53
|
-
<div className="absolute top-0
|
|
53
|
+
<div className="absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" />
|
|
54
|
+
<div className="absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" />
|
|
54
55
|
</section>
|
|
55
56
|
);
|
|
56
57
|
},
|