@redneckz/wildless-cms-uni-blocks 0.3.8 → 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 +35 -21
- 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/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/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/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/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/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/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 +52 -33
- 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/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/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/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/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/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/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/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/ProductBlockInner.tsx +1 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +2 -2
- package/mobile/src/icons/OkIcon.svg +1 -0
- 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/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/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/Tile/Tile.tsx +2 -2
- package/src/icons/OkIcon.svg +1 -0
- 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
|
@@ -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">
|
|
@@ -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
|
}
|
|
@@ -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
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { Button } from '../../ui-kit/Button/Button';
|
|
3
2
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
3
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
|
|
5
4
|
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
@@ -19,13 +18,19 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
|
19
18
|
|
|
20
19
|
return (
|
|
21
20
|
<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}>
|
|
21
|
+
<button className="absolute top-4 right-4 border-none bg-transparent cursor-pointer" onClick={onClick}>
|
|
23
22
|
<Icon name="CloseIcon" width="24" height="24" asSVG />
|
|
24
23
|
</button>
|
|
25
|
-
<
|
|
26
|
-
<Icon
|
|
24
|
+
<button onClick={getCity} className="flex items-center text-sm text-secondary-text mb-4 bg-transparent cursor-pointer">
|
|
25
|
+
<Icon
|
|
26
|
+
name="GeolocationIcon"
|
|
27
|
+
width="20"
|
|
28
|
+
height="20"
|
|
29
|
+
className="text-primary-main box-border mr-2"
|
|
30
|
+
asSVG
|
|
31
|
+
/>
|
|
27
32
|
{city}
|
|
28
|
-
</
|
|
33
|
+
</button>
|
|
29
34
|
{children}
|
|
30
35
|
<div className="mb-7">{burgerSubMenu?.map(renderBurgerSubMenuItem)}</div>
|
|
31
36
|
<SearchBar context={context} className="grow" />
|
|
@@ -37,9 +42,11 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
|
|
|
37
42
|
const renderBurgerSubMenuItem = (menu: SubMenuItem, i: number) => {
|
|
38
43
|
const { icon, href, text } = menu;
|
|
39
44
|
return (
|
|
40
|
-
<
|
|
41
|
-
{icon ?
|
|
45
|
+
<a key={`headerSubMenu-${i}`} href={href} className="flex text-sm mb-4 hover:text-primary-main">
|
|
46
|
+
{icon ? (
|
|
47
|
+
<Icon className="text-primary-main pr-1" name={icon} width="24" height="24" asSVG />
|
|
48
|
+
) : null}
|
|
42
49
|
<span className="pl-0.5 font-medium">{text}</span>
|
|
43
|
-
</
|
|
50
|
+
</a>
|
|
44
51
|
);
|
|
45
52
|
};
|
|
@@ -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 border-0 bg-transparent" onClick={onClick} aria-label="Открыть меню">
|
|
14
|
+
<button className="pr-4 border-0 bg-transparent cursor-pointer" onClick={onClick} aria-label="Открыть меню">
|
|
15
15
|
<Icon
|
|
16
16
|
name={bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite'}
|
|
17
17
|
width="24"
|
|
@@ -24,7 +24,7 @@ export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
|
|
|
24
24
|
<button
|
|
25
25
|
className={`${
|
|
26
26
|
bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'
|
|
27
|
-
} text-sm border-0 bg-transparent`}
|
|
27
|
+
} text-sm border-0 bg-transparent cursor-pointer`}
|
|
28
28
|
>
|
|
29
29
|
Войти
|
|
30
30
|
</button>
|
|
@@ -19,7 +19,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
19
19
|
hasBorder = true,
|
|
20
20
|
}) => {
|
|
21
21
|
return (
|
|
22
|
-
<section className={`font-sans py-6 px-4 bg-white ${className}`}>
|
|
22
|
+
<section className={`font-sans text-primary-text py-6 px-4 bg-white ${className}`}>
|
|
23
23
|
{title ? (
|
|
24
24
|
<Heading
|
|
25
25
|
headingType="h2"
|
|
@@ -27,7 +27,9 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
27
27
|
title={title}
|
|
28
28
|
/>
|
|
29
29
|
) : null}
|
|
30
|
-
{subtitle ?
|
|
30
|
+
{subtitle ? (
|
|
31
|
+
<h3 className="mt-0 font-normal mb-5 text-center text-m-md">{subtitle}</h3>
|
|
32
|
+
) : null}
|
|
31
33
|
{listMode === 'vertical' ? (
|
|
32
34
|
<LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
|
|
33
35
|
) : (
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"documents": [
|
|
3
|
+
{
|
|
4
|
+
"text": "Документ №1",
|
|
5
|
+
"href": "/documents/document1.doc"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"text": "Документ №2",
|
|
9
|
+
"href": "/documents/document2.rtf",
|
|
10
|
+
"target": "_blank"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"text": "Документ №3",
|
|
14
|
+
"href": "/abc3/map.jpeg"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"text": "Документ №4",
|
|
18
|
+
"href": "/abc/map.rar"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import type { LinkListContent } from './LinkListContent';
|
|
4
|
+
|
|
5
|
+
export interface LinkListProps extends LinkListContent, UniBlockProps {}
|
|
6
|
+
|
|
7
|
+
export const LinkList = JSX<LinkListProps>(({ className = '', documents }) => {
|
|
8
|
+
return (
|
|
9
|
+
<section className={`font-sans bg-white mt-[10px] ${className}`}>
|
|
10
|
+
<ul className="flex flex-col text-sm text-secondary-text p-0">
|
|
11
|
+
{documents?.length ? renderLinkListItem(documents) : null}
|
|
12
|
+
</ul>
|
|
13
|
+
</section>
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const renderLinkListItem = (documents) => {
|
|
18
|
+
return documents.map((doc, i) => {
|
|
19
|
+
const { text, ...linkProps } = doc;
|
|
20
|
+
return (
|
|
21
|
+
<li key={`list_item_${String(i)}`} className="mb-4 list-none">
|
|
22
|
+
<a className="hover:text-primary-main" role="link" {...linkProps}>
|
|
23
|
+
{text ? text : null}
|
|
24
|
+
</a>
|
|
25
|
+
</li>
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LinkListContent } from './LinkListContent';
|
|
2
|
+
|
|
3
|
+
export const linkDocsContentExample: LinkListContent = {
|
|
4
|
+
documents: [
|
|
5
|
+
{ text: 'target self', href: '/abc1/cooldoc/', target: '_self' },
|
|
6
|
+
{ text: 'target blank', href: '/abc2/wtf/', target: '_blank' },
|
|
7
|
+
{ text: 'GlassIcon', href: '/abc3/map/' },
|
|
8
|
+
{ text: 'no icon', href: '/abc4' },
|
|
9
|
+
{ text: 'документ 5', href: '/abc5' },
|
|
10
|
+
{ text: 'документ 6', href: '/abc6/abc' },
|
|
11
|
+
{ text: 'Text text text', href: '/abc7/yolo' },
|
|
12
|
+
{
|
|
13
|
+
text: 'Some more generic text to stretch item, and even more, more text, and more generic text, and even more, more text, and even more',
|
|
14
|
+
href: '/abc8/archive/',
|
|
15
|
+
},
|
|
16
|
+
{ text: 'И ещё немного текста', href: '/abc9/' },
|
|
17
|
+
{
|
|
18
|
+
text: 'Форматируем, сортируем, смотрим как отображается...',
|
|
19
|
+
href: '/abc10/',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
};
|
|
@@ -20,8 +20,8 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
20
20
|
<Logo className="w-[33px]" bgColor="transparent" hideTitle />
|
|
21
21
|
</div>
|
|
22
22
|
<a href={href} target="_blank" className="flex flex-col justify-center pl-3">
|
|
23
|
-
<div className="text-
|
|
24
|
-
<div className="text-
|
|
23
|
+
<div className="text-m-button font-medium mb-[3px]">{title}</div>
|
|
24
|
+
<div className="text-m-button text-secondary-text">{description}</div>
|
|
25
25
|
</a>
|
|
26
26
|
</div>
|
|
27
27
|
) : null}
|
|
@@ -48,7 +48,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
48
48
|
) : null
|
|
49
49
|
}
|
|
50
50
|
>
|
|
51
|
-
{description
|
|
51
|
+
{description ? <Description className="mb-5" description={description} /> : null}
|
|
52
52
|
{benefits?.length ? (
|
|
53
53
|
<div className="mt-5">{benefits.map((_, i) => renderBenefit(_, i, version))}</div>
|
|
54
54
|
) : null}
|
|
@@ -12,7 +12,7 @@ export interface ProductGalleryBlockProps extends UniBlockProps {
|
|
|
12
12
|
export const ProductGalleryBlock = JSX<ProductGalleryBlockProps>(
|
|
13
13
|
({ block, headingType, context }) => {
|
|
14
14
|
return (
|
|
15
|
-
<section className="flex grow-0 shrink-0 basis-full px-4 pt-6"
|
|
15
|
+
<section className="flex grow-0 shrink-0 basis-full px-4 pt-6">
|
|
16
16
|
<div className="flex grow">
|
|
17
17
|
<ProductBlockInner context={context} headingType={headingType || 'h2'} {...block} />
|
|
18
18
|
</div>
|
|
@@ -10,7 +10,7 @@ import { BaseTile } from '../BaseTile/BaseTile';
|
|
|
10
10
|
import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
|
|
11
11
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
12
12
|
import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
|
|
13
|
-
import type { TileContent } from '
|
|
13
|
+
import type { TileContent } from './TileContent';
|
|
14
14
|
|
|
15
15
|
export interface TileProps extends TileContent, UniBlockProps {
|
|
16
16
|
role?: string;
|
|
@@ -37,7 +37,7 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
37
37
|
|
|
38
38
|
return (
|
|
39
39
|
<section
|
|
40
|
-
className={`font-sans p-9 box-border ${className} ${
|
|
40
|
+
className={`overflow-hidden font-sans p-9 box-border ${className} ${
|
|
41
41
|
tileStyleMap[version]
|
|
42
42
|
} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `}
|
|
43
43
|
role={role}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<svg title="Лого «Одноклассники»" viewBox="0 0 12 20" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path
|
|
3
|
+
fill="currentColor"
|
|
3
4
|
d="M5.986 10.341C3.05 10.341.61 7.995.61 5.22.61 2.347 3.05 0 5.987 0c3.036 0 5.375 2.346 5.375 5.22a5.048 5.048 0 0 1-1.578 3.628 5.451 5.451 0 0 1-3.78 1.494h-.018Zm0-7.324A2.186 2.186 0 0 0 3.797 5.22c0 1.196.946 2.106 2.19 2.106 1.293 0 2.189-.91 2.189-2.106.001-1.199-.896-2.203-2.19-2.203Zm2.14 11.586 3.037 2.825c.598.621.598 1.531 0 2.106-.646.621-1.643.621-2.14 0l-3.036-2.873-2.937 2.873c-.298.287-.697.43-1.146.43-.348 0-.746-.144-1.095-.43-.597-.575-.597-1.485 0-2.107l3.086-2.825a14.303 14.303 0 0 1-3.182-1.339c-.747-.383-.896-1.34-.498-2.059.498-.718 1.393-.909 2.19-.43a7.08 7.08 0 0 0 3.583.97 7.08 7.08 0 0 0 3.583-.97c.797-.479 1.742-.288 2.19.43.448.72.248 1.675-.45 2.06-.944.574-2.039 1.005-3.184 1.34Z"
|
|
4
5
|
/>
|
|
5
6
|
</svg>
|
|
@@ -19,7 +19,7 @@ export const BlockItem = JSX<BlockItemProps>(
|
|
|
19
19
|
({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
20
20
|
return (
|
|
21
21
|
<div className={`font-sans flex items-start ${className}`} role="listitem">
|
|
22
|
-
{isDotted && <div className={getListStyle(version)} />}
|
|
22
|
+
{isDotted && <div className={getListStyle(version)} />}
|
|
23
23
|
<span className={TEXT_STYLE_MAP[version]}>{text || children}</span>
|
|
24
24
|
</div>
|
|
25
25
|
);
|
|
@@ -6,7 +6,7 @@ export interface DescriptionProps extends DescriptionContent {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export const Description = JSX<DescriptionProps>((props) => {
|
|
9
|
-
const { className, description } = props;
|
|
9
|
+
const { className = '', description } = props;
|
|
10
10
|
|
|
11
|
-
return <div className={`font-normal text-m-md ${className
|
|
11
|
+
return <div className={`font-normal text-m-md ${className}`}>{description}</div>;
|
|
12
12
|
});
|