@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAK9C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GAAG,QAAQ,EAAE,EAAE,EAAE;IAC5D,OAAO,CACL,mBACE,SAAS,EAAE,2EACT,SAAS,IAAI,EACf,EAAE,aAED,KAAK,IAAI,KAAC,OAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SA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KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACxB,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,IACG,KAlBE,MAAM,CAAC,CAAC,CAAC,CAmBb,IApBE,MAAM,CAAC,CAAC,CAAC,CAqBb,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAU,EAAE,IAAiB,EAAE,CAAS,EAAE,EAAE;IAClE,MAAM,YAAY,GAChB,IAAI,KAAK,QAAQ;QACf,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,6CAA6C,CAAC;IAEpD,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,MAAM,YAAY,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAE5E,OAAO,CACL,cACE,SAAS,EAAE,GAAG,YAAY,+EAA+E,YAEzG,eAAM,SAAS,EAAE,+CAA+C,YAAY,EAAE,YAC3E,CAAC,IAAI,CAAC,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAChF,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -15,7 +15,7 @@ const tileStyleMap = {
|
|
|
15
15
|
};
|
|
16
16
|
export const Tile = JSX((props) => {
|
|
17
17
|
const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, } = props;
|
|
18
|
-
return (_jsx("section", { className: `font-sans p-9 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, children: _jsxs(BaseTile, { context: context, title: title && (_jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
18
|
+
return (_jsx("section", { className: `overflow-hidden font-sans p-9 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, children: _jsxs(BaseTile, { context: context, title: title && (_jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
19
19
|
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (_jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && _jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), children, renderList(items, version)] }) }));
|
|
20
20
|
});
|
|
21
21
|
function renderList(items, version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAOtE,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IA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21
|
}
|
|
22
22
|
export interface ContentPageMeta {
|
|
23
|
-
title
|
|
24
|
-
slug
|
|
25
|
-
main
|
|
23
|
+
title?: string;
|
|
24
|
+
slug?: string;
|
|
25
|
+
main?: {
|
|
26
|
+
description?: string;
|
|
27
|
+
keywords?: string[];
|
|
28
|
+
canonical?: string;
|
|
29
|
+
robots?: string[];
|
|
30
|
+
};
|
|
26
31
|
og?: Record<string, string>;
|
|
27
32
|
twitter?: Record<string, string>;
|
|
28
33
|
jsonLd?: string;
|
|
29
34
|
}
|
|
30
|
-
export interface ContentPageMetaMain {
|
|
31
|
-
description?: string;
|
|
32
|
-
keywords?: string[];
|
|
33
|
-
canonical?: string;
|
|
34
|
-
robots?: string[];
|
|
35
|
-
}
|
|
36
35
|
export interface ContentPageDef extends ContentPageMeta {
|
|
37
36
|
style?: string[];
|
|
38
37
|
blocks?: BlockDef[];
|
|
@@ -12,7 +12,7 @@ const LIST_STYLE_MAP = {
|
|
|
12
12
|
gray: 'bg-secondary-text',
|
|
13
13
|
};
|
|
14
14
|
export const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
15
|
-
return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }),
|
|
15
|
+
return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
16
16
|
});
|
|
17
17
|
const getListStyle = (version) => {
|
|
18
18
|
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,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AAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,eAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
export const Description = JSX((props) => {
|
|
4
|
-
const { className, description } = props;
|
|
5
|
-
return _jsx("div", { className: `font-normal text-m-md ${className
|
|
4
|
+
const { className = '', description } = props;
|
|
5
|
+
return _jsx("div", { className: `font-normal text-m-md ${className}`, children: description });
|
|
6
6
|
});
|
|
7
7
|
//# sourceMappingURL=Description.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"Description.js","sourceRoot":"","sources":["../../../src/ui-kit/Description/Description.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE9C,OAAO,cAAK,SAAS,EAAE,yBAAyB,SAAS,EAAE,YAAG,WAAW,GAAO,CAAC;AACnF,CAAC,CAAC,CAAC"}
|
|
@@ -20,6 +20,6 @@ export const InputRange = JSX(({ className, title, items = [], min = 1, max = 10
|
|
|
20
20
|
onChange(max);
|
|
21
21
|
};
|
|
22
22
|
return (_jsxs("div", { className: className, children: [_jsxs("label", { className: "block relative", children: [title ? (_jsx("span", { className: "absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5", children: title })) : null, _jsx("input", { className: `m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md
|
|
23
|
-
outline-none p-0 pl-4 m-0 box-border text-primary-text ${title ? 'pt-4' : ''}`, value: addSpacesBetweenNumbers(value), onChange: (e) => handleChange(e.target.value), onBlur: handleBlur }), _jsx("div", { className: "absolute inset-x-0 top-
|
|
23
|
+
outline-none p-0 pl-4 m-0 box-border text-primary-text ${title ? 'pt-4' : ''}`, value: addSpacesBetweenNumbers(value), onChange: (e) => handleChange(e.target.value), onBlur: handleBlur }), _jsx("div", { className: "absolute inset-x-0 top-[35px] px-4 leading-[18px]", children: _jsx("input", { className: "box-border w-full m-0 cursor-pointer slider", type: "range", min: min, max: max, step: step, value: value, onChange: (e) => handleChange(e.target.value), style: inputStyle }) })] }), _jsx("div", { className: "flex justify-between my-3", children: items.map((item, i) => (_jsxs("span", { className: "text-xs leading-[14px] text-secondary-text pl-4", children: [" ", item, " "] }, String(i)))) })] }));
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=InputRange.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputRange.js","sourceRoot":"","sources":["../../../src/ui-kit/InputRange/InputRange.ts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CAAC,CAAC,CAAC,CAA6E,CAClG,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Button } from '../Button/Button.js';
|
|
4
3
|
import { Icon } from '../Icon/Icon.js';
|
|
5
4
|
export const SearchBar = JSX(({ className, context }) => {
|
|
6
5
|
const { term, setTerm } = context.useSearch();
|
|
7
|
-
return (_jsxs("form", { className: `relative ${className || ''}`, children: [_jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [_jsx("div", { className: "w-[20px] h-[20px]", children: _jsx(Icon, { name: "LoupeIcon", width: "24", height: "24" }) }), !term && (_jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), _jsx("input", { id: "search-bar-input", className: 'h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded
|
|
6
|
+
return (_jsxs("form", { className: `relative ${className || ''}`, children: [_jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [_jsx("div", { className: "w-[20px] h-[20px]", children: _jsx(Icon, { name: "LoupeIcon", width: "24", height: "24" }) }), !term && (_jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), _jsx("input", { id: "search-bar-input", className: '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', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: "some search" }), _jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer", onClick: (e) => {
|
|
8
7
|
e.preventDefault();
|
|
9
|
-
|
|
10
|
-
}, children: _jsx(
|
|
8
|
+
setTerm('');
|
|
9
|
+
}, children: _jsx(Icon, { name: "CloseIcon", width: "24", height: "24" }) })] }));
|
|
11
10
|
});
|
|
12
11
|
//# sourceMappingURL=SearchBar.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SearchBar.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAC9C,OAAO,CACL,gBAAM,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,aAC5C,eAAK,SAAS,EAAC,yGAAyG,aACtH,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC5C,EACL,CAAC,IAAI,IAAI,CACR,gBACE,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAC,mDAAmD,2FAGvD,CACT,IACG,EACN,gBACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EACP,qMAAqM,EAEvM,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,kBAAkB,EACvB,WAAW,EAAC,aAAa,GACzB,EACF,iBACE,SAAS,EAAC,2GAA2G,EACrH,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC,YAED,KAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACzC,IACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCurrentDate: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrentDate.js","sourceRoot":"","sources":["../../src/utils/getCurrentDate.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC,CAAC"}
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
});
|
|
413
413
|
|
|
414
414
|
const LinkDocs = JSX(({ className = '', context, title, subtitle, icon = 'DocIconMonoColor', documents, listMode = 'vertical', hasBorder = true, }) => {
|
|
415
|
-
return (jsxs("section", { className: `font-sans py-6 px-4 bg-white ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${subtitle ? 'mb-2' : 'mb-5'}`, title: title })) : null, subtitle ? jsx("h3", { className: "mb-5 text-center text-m-md", children: subtitle }) : null, listMode === 'vertical' ? (jsx(LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : (jsx(LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
|
|
415
|
+
return (jsxs("section", { className: `font-sans text-primary-text py-6 px-4 bg-white ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${subtitle ? 'mb-2' : 'mb-5'}`, title: title })) : null, subtitle ? (jsx("h3", { className: "mt-0 font-normal mb-5 text-center text-m-md", children: subtitle })) : null, listMode === 'vertical' ? (jsx(LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : (jsx(LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
|
|
416
416
|
});
|
|
417
417
|
|
|
418
418
|
const PictureText = JSX(({ className = '', title, image, benefits }) => {
|
|
@@ -570,17 +570,17 @@
|
|
|
570
570
|
const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
571
571
|
const { handlerDecorator } = context;
|
|
572
572
|
const router = context.useRouter();
|
|
573
|
-
return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null;
|
|
573
|
+
return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$2(useLink({ router, handlerDecorator }, button), index)) })) : null;
|
|
574
574
|
});
|
|
575
|
-
function renderButton({ icon, ...button }, i) {
|
|
575
|
+
function renderButton$2({ icon, ...button }, i) {
|
|
576
576
|
if (!button?.text)
|
|
577
577
|
return;
|
|
578
578
|
return icon ? (jsx(Button, { appendLeft: jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
const Description = JSX((props) => {
|
|
582
|
-
const { className, description } = props;
|
|
583
|
-
return jsx("div", { className: `font-normal text-m-md ${className
|
|
582
|
+
const { className = '', description } = props;
|
|
583
|
+
return jsx("div", { className: `font-normal text-m-md ${className}`, children: description });
|
|
584
584
|
});
|
|
585
585
|
|
|
586
586
|
const BaseTile = JSX(({ className = '', title, children, buttons, image }) => {
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
};
|
|
639
639
|
const Tile = JSX((props) => {
|
|
640
640
|
const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, } = props;
|
|
641
|
-
return (jsx("section", { className: `font-sans p-9 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
641
|
+
return (jsx("section", { className: `overflow-hidden font-sans p-9 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
642
642
|
${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), children, renderList(items, version)] }) }));
|
|
643
643
|
});
|
|
644
644
|
function renderList(items, version) {
|
|
@@ -675,13 +675,16 @@
|
|
|
675
675
|
}
|
|
676
676
|
function renderCard$1(card, key) {
|
|
677
677
|
return (jsxs("div", { className: `box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
678
|
-
${blockStyle[card.version ?? 'primary']}`,
|
|
678
|
+
${blockStyle[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: card.image }) })) : null, card.title ? jsx("h4", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems$1(card.items) : null] }), card?.button?.href ? renderButton$1(card.button) : null] }, key));
|
|
679
|
+
}
|
|
680
|
+
function renderButton$1(button) {
|
|
681
|
+
return (jsx(Button, { className: "mt-3", appendLeft: button?.icon && jsx(Icon, { name: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
679
682
|
}
|
|
680
683
|
function renderDescription(card) {
|
|
681
684
|
return (jsx("div", { className: `text-secondary-text mt-2 ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
|
|
682
685
|
}
|
|
683
686
|
function renderItems$1(items) {
|
|
684
|
-
return (jsx("section", { className: "mt-3", children: items.map((item) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: "text-m-sm text-secondary-text pl-2", children: item.text })] }))) }));
|
|
687
|
+
return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: "text-m-sm text-secondary-text pl-2", children: item.text })] }, String(i)))) }));
|
|
685
688
|
}
|
|
686
689
|
|
|
687
690
|
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
@@ -733,7 +736,7 @@
|
|
|
733
736
|
gray: 'bg-secondary-text',
|
|
734
737
|
};
|
|
735
738
|
const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
|
|
736
|
-
return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle(version) }),
|
|
739
|
+
return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle(version) }), jsx("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
737
740
|
});
|
|
738
741
|
const getListStyle = (version) => {
|
|
739
742
|
const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
|
|
@@ -742,8 +745,11 @@
|
|
|
742
745
|
|
|
743
746
|
const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
|
|
744
747
|
const titleStyleClasses = getTitleStyle(version, description, items);
|
|
745
|
-
return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text
|
|
748
|
+
return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton(button) : null] }));
|
|
746
749
|
});
|
|
750
|
+
function renderButton(button) {
|
|
751
|
+
return (jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && jsx(Icon, { name: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
752
|
+
}
|
|
747
753
|
function renderCardTitle(title, className) {
|
|
748
754
|
return jsx("div", { className: `font-medium text-xl m-0 ${className}`, children: title });
|
|
749
755
|
}
|
|
@@ -778,11 +784,21 @@
|
|
|
778
784
|
const showNextButton = isGalleryScrollAvailable &&
|
|
779
785
|
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
780
786
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
781
|
-
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-
|
|
787
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
|
|
782
788
|
});
|
|
783
789
|
|
|
784
790
|
const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
|
|
785
791
|
|
|
792
|
+
const LinkList = JSX(({ className = '', documents }) => {
|
|
793
|
+
return (jsx("section", { className: `font-sans bg-white mt-[10px] ${className}`, children: jsx("ul", { className: "flex flex-col text-sm text-secondary-text p-0", children: documents?.length ? renderLinkListItem(documents) : null }) }));
|
|
794
|
+
});
|
|
795
|
+
const renderLinkListItem = (documents) => {
|
|
796
|
+
return documents.map((doc, i) => {
|
|
797
|
+
const { text, ...linkProps } = doc;
|
|
798
|
+
return (jsx("li", { className: "mb-4 list-none", children: jsx("a", { className: "hover:text-primary-main", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
|
|
799
|
+
});
|
|
800
|
+
};
|
|
801
|
+
|
|
786
802
|
const AccordionBlocks = {
|
|
787
803
|
Headline,
|
|
788
804
|
LinkDocs,
|
|
@@ -792,10 +808,11 @@
|
|
|
792
808
|
ProductTile,
|
|
793
809
|
Gallery,
|
|
794
810
|
MiniGallery,
|
|
811
|
+
LinkList,
|
|
795
812
|
};
|
|
796
813
|
|
|
797
814
|
const AccordionItemInner = JSX(({ blocks, context }) => {
|
|
798
|
-
return (jsx("div", { className:
|
|
815
|
+
return (jsx("div", { className: "transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0", children: blocks?.length ? blocks.map(renderBlock$1(context)) : null }));
|
|
799
816
|
});
|
|
800
817
|
const renderBlock$1 = (context) => (block, i) => {
|
|
801
818
|
const type = block?.accordionBlockType;
|
|
@@ -803,7 +820,7 @@
|
|
|
803
820
|
return null;
|
|
804
821
|
}
|
|
805
822
|
const AccordionBlock = AccordionBlocks[type];
|
|
806
|
-
return (jsx("div", { className: "mb-5 last:mb-0
|
|
823
|
+
return (jsx("div", { className: "mb-5 last:mb-0", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
807
824
|
};
|
|
808
825
|
|
|
809
826
|
const isActiveHandler = ({ context, blocks }) => {
|
|
@@ -829,12 +846,13 @@
|
|
|
829
846
|
context,
|
|
830
847
|
blocks,
|
|
831
848
|
});
|
|
832
|
-
return (jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0
|
|
833
|
-
|
|
849
|
+
return (jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider`, children: [jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
850
|
+
${bordered ? '' : 'py-[14px] px-0'}
|
|
851
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-sm pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "20", height: "20", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
834
852
|
});
|
|
835
853
|
|
|
836
854
|
const Accordion = JSX(({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
837
|
-
return (jsxs("section", { className: `py-6 font-sans bg-white text-primary-text ${
|
|
855
|
+
return (jsxs("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-md text-center", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem${i}`))) })) : null] }));
|
|
838
856
|
});
|
|
839
857
|
|
|
840
858
|
const CBR_EXCHANGE_RATE_URL = 'https://www.cbr-xml-daily.ru/daily_json.js';
|
|
@@ -887,13 +905,13 @@
|
|
|
887
905
|
});
|
|
888
906
|
|
|
889
907
|
const MobileAppTile = JSX(({ className, title = 'Мобильное приложение', description, href = '#' }) => {
|
|
890
|
-
return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${className || ''}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]", children: jsx(Logo, { className: "w-[33px]", bgColor: "transparent", hideTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-
|
|
908
|
+
return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${className || ''}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]", children: jsx(Logo, { className: "w-[33px]", bgColor: "transparent", hideTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-m-button font-medium mb-[3px]", children: title }), jsx("div", { className: "text-m-button text-secondary-text", children: description })] })] })) : null }));
|
|
891
909
|
});
|
|
892
910
|
|
|
893
911
|
const Contacts = JSX(({ className, items, hasButton, context }) => {
|
|
894
912
|
const router = context.useRouter();
|
|
895
913
|
const { handlerDecorator } = context;
|
|
896
|
-
return (jsxs("div", { className: `flex flex-col ${className || ''}`, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "
|
|
914
|
+
return (jsxs("div", { className: `flex flex-col ${className || ''}`, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mt-0.5 mb-5", ...useLink({ router, handlerDecorator }, {
|
|
897
915
|
text: 'Обратная связь',
|
|
898
916
|
href: '/',
|
|
899
917
|
target: '_blank',
|
|
@@ -901,7 +919,7 @@
|
|
|
901
919
|
});
|
|
902
920
|
const renderContact = (item, index) => {
|
|
903
921
|
const { type, text, description } = item;
|
|
904
|
-
return (jsxs("div", { className: "mb-
|
|
922
|
+
return (jsxs("div", { className: "mb-3.5", children: [jsx("div", { children: renderText(type, text) }), jsx("div", { className: "font-sans text-sm text-secondary-text", children: description })] }, String(index)));
|
|
905
923
|
};
|
|
906
924
|
const renderText = (type, text = '') => {
|
|
907
925
|
switch (type) {
|
|
@@ -918,7 +936,7 @@
|
|
|
918
936
|
const HorizontalNavigation = JSX(({ title, links, className = '', context }) => {
|
|
919
937
|
const router = context.useRouter();
|
|
920
938
|
const { handlerDecorator } = context;
|
|
921
|
-
return (jsxs("div", { className: className, children: [jsx("span", { className: "text-primary-text font-sans font-medium text-sm", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-
|
|
939
|
+
return (jsxs("div", { className: className, children: [jsx("span", { className: "text-primary-text font-sans font-medium text-sm", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-2 pt-3", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, ...useLink({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
922
940
|
});
|
|
923
941
|
const HorizontalNavigationLink = JSX(({ className = '', index, text, href, target, onClick }) => (jsx("a", { className: `font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
924
942
|
|
|
@@ -937,7 +955,7 @@
|
|
|
937
955
|
const { icon, width, height, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
938
956
|
if (!icon)
|
|
939
957
|
return null;
|
|
940
|
-
return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:
|
|
958
|
+
return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main", href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: Icon && (jsx(Icon, { name: icon, width: width, height: height, asSVG: true, className: "block", color: "none" })) }));
|
|
941
959
|
});
|
|
942
960
|
|
|
943
961
|
const SocialMedia = JSX(({ className, media, context }) => {
|
|
@@ -949,23 +967,23 @@
|
|
|
949
967
|
const TextInformation = JSX(({ className, links, context }) => {
|
|
950
968
|
const router = context.useRouter();
|
|
951
969
|
const { handlerDecorator } = context;
|
|
952
|
-
return (jsxs("div", { className: `${className || ''}`, children: [jsx("div", { className: "
|
|
970
|
+
return (jsxs("div", { className: `${className || ''}`, children: [jsx("div", { className: "py-6", children: jsx("span", { className: "font-sans font-normal text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: `flex flex-col justify-start items-start gap-2`, children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ...useLink({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
953
971
|
});
|
|
954
972
|
const TextInformationLink = JSX(({ className, index, text, href, target, onClick }) => (jsx("a", { className: `font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className || ''}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
955
973
|
|
|
956
974
|
const SearchBar = JSX(({ className, context }) => {
|
|
957
975
|
const { term, setTerm } = context.useSearch();
|
|
958
|
-
return (jsxs("form", { className: `relative ${className || ''}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: "w-[20px] h-[20px]", children: jsx(Icon, { name: "LoupeIcon", width: "24", height: "24" }) }), !term && (jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: 'h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded
|
|
976
|
+
return (jsxs("form", { className: `relative ${className || ''}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: "w-[20px] h-[20px]", children: jsx(Icon, { name: "LoupeIcon", width: "24", height: "24" }) }), !term && (jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: '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', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: "some search" }), jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer", onClick: (e) => {
|
|
959
977
|
e.preventDefault();
|
|
960
|
-
|
|
961
|
-
}, children: jsx(
|
|
978
|
+
setTerm('');
|
|
979
|
+
}, children: jsx(Icon, { name: "CloseIcon", width: "24", height: "24" }) })] }));
|
|
962
980
|
});
|
|
963
981
|
|
|
964
982
|
const getAccordionItems = (items) => items?.map((item) => ({
|
|
965
983
|
label: item.text || '',
|
|
966
984
|
blocks: [
|
|
967
985
|
{
|
|
968
|
-
accordionBlockType: '
|
|
986
|
+
accordionBlockType: 'LinkList',
|
|
969
987
|
documents: item.items || [],
|
|
970
988
|
},
|
|
971
989
|
],
|
|
@@ -976,11 +994,11 @@
|
|
|
976
994
|
context,
|
|
977
995
|
accordionItems: getAccordionItems(topItems),
|
|
978
996
|
};
|
|
979
|
-
return (jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), jsx(Accordion, { className: "p-0
|
|
997
|
+
return (jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), jsx(Accordion, { className: "!p-0 mb-4", ...propsTextBlock }), jsx("div", { children: subMenu?.map(renderSubMenuItem) }), jsx(MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), jsx(SearchBar, { context: context, className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia, context: context }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), jsx(TextInformation, { links: documents, context: context })] }));
|
|
980
998
|
});
|
|
981
999
|
const renderSubMenuItem = (menu, i) => {
|
|
982
1000
|
const { icon, href, text } = menu;
|
|
983
|
-
return (jsxs(Button, { href: href, className: "flex text-sm mb-4", children: [icon ? jsx(Icon, { className: "pr-1", name: icon, width: "24", height: "24", asSVG: true }) : null, jsx("span", { className: "pl-
|
|
1001
|
+
return (jsxs(Button, { version: "link", href: href, className: "flex text-sm mb-4", children: [icon ? jsx(Icon, { className: "pr-1", name: icon, width: "24", height: "24", asSVG: true }) : null, jsx("span", { className: "pl-2.5 font-medium text-primary-text", children: text })] }, `footer-${i}`));
|
|
984
1002
|
};
|
|
985
1003
|
|
|
986
1004
|
const maxBy = (discriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
@@ -1043,14 +1061,14 @@
|
|
|
1043
1061
|
|
|
1044
1062
|
const HeaderBurger = JSX(({ context, burgerSubMenu, onClick, defaultLocation = '', children }) => {
|
|
1045
1063
|
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
1046
|
-
return (jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent", onClick: onClick, children: jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), jsxs(
|
|
1064
|
+
return (jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent cursor-pointer", onClick: onClick, children: jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), jsxs("button", { onClick: getCity, className: "flex items-center text-sm text-secondary-text mb-4 bg-transparent cursor-pointer", children: [jsx(Icon, { name: "GeolocationIcon", width: "20", height: "20", className: "text-primary-main box-border mr-2", asSVG: true }), city] }), children, jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), jsx(SearchBar, { context: context, className: "grow" })] }));
|
|
1047
1065
|
});
|
|
1048
1066
|
const renderBurgerSubMenuItem = (menu, i) => {
|
|
1049
1067
|
const { icon, href, text } = menu;
|
|
1050
|
-
return (jsxs(
|
|
1068
|
+
return (jsxs("a", { href: href, className: "flex text-sm mb-4 hover:text-primary-main", children: [icon ? (jsx(Icon, { className: "text-primary-main pr-1", name: icon, width: "24", height: "24", asSVG: true })) : null, jsx("span", { className: "pl-0.5 font-medium", children: text })] }, `headerSubMenu-${i}`));
|
|
1051
1069
|
};
|
|
1052
1070
|
|
|
1053
|
-
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pr-4 border-0 bg-transparent", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
1071
|
+
const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
1054
1072
|
|
|
1055
1073
|
const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems, burgerSubMenu }) => {
|
|
1056
1074
|
const router = context.useRouter();
|
|
@@ -1083,7 +1101,7 @@
|
|
|
1083
1101
|
}
|
|
1084
1102
|
|
|
1085
1103
|
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
1086
|
-
return (jsxs("div", { className: `w-full text-primary-text ${className}`, children: [jsx("div", { children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description
|
|
1104
|
+
return (jsxs("div", { className: `w-full text-primary-text ${className}`, children: [jsx("div", { children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? jsx(Description, { className: "mb-5", description: description }) : null, benefits?.length ? (jsx("div", { className: "mt-5", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? jsx(List, { items: items }) : null] }) }), renderImage(image)] }));
|
|
1087
1105
|
});
|
|
1088
1106
|
function renderImage(image) {
|
|
1089
1107
|
return image?.src ? (jsx("div", { className: "mt-5", children: jsx(Img, { image: { className: 'block', ...image } }) })) : null;
|
|
@@ -1097,7 +1115,7 @@
|
|
|
1097
1115
|
});
|
|
1098
1116
|
|
|
1099
1117
|
const ProductGalleryBlock = JSX(({ block, headingType, context }) => {
|
|
1100
|
-
return (jsx("section", { className: "flex grow-0 shrink-0 basis-full px-4 pt-6",
|
|
1118
|
+
return (jsx("section", { className: "flex grow-0 shrink-0 basis-full px-4 pt-6", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
1101
1119
|
});
|
|
1102
1120
|
|
|
1103
1121
|
const ProductGallery = JSX(({ className, context, slides = [] }) => {
|
|
@@ -1120,7 +1138,7 @@
|
|
|
1120
1138
|
: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
|
|
1121
1139
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
1122
1140
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
1123
|
-
return (jsx("div", { className: `${iconAreaSize} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium text-secondary-text self-center ${iconTextSize}`, children: (step.icon && jsx(Icon, { name: step.icon, width: iconSize, height: iconSize
|
|
1141
|
+
return (jsx("div", { className: `${iconAreaSize} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium text-secondary-text self-center ${iconTextSize}`, children: (step.icon && jsx(Icon, { name: step.icon, width: iconSize, height: iconSize })) || i + 1 }) }));
|
|
1124
1142
|
};
|
|
1125
1143
|
|
|
1126
1144
|
const Blocks = {
|
|
@@ -1136,6 +1154,7 @@
|
|
|
1136
1154
|
ProductGallery,
|
|
1137
1155
|
StepsBlock,
|
|
1138
1156
|
TextBlock,
|
|
1157
|
+
LinkList,
|
|
1139
1158
|
};
|
|
1140
1159
|
|
|
1141
1160
|
const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-[36px] bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
|
|
@@ -1189,13 +1208,20 @@
|
|
|
1189
1208
|
}
|
|
1190
1209
|
|
|
1191
1210
|
const ContentPageHead = JSX(({ HeadComponent, data, children }) => {
|
|
1192
|
-
const { title, main
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
: null, twitter
|
|
1196
|
-
? Object.entries(twitter).map(([key, value]) => (jsx("meta", { name: `twitter:${key}`, content: value }, key)))
|
|
1197
|
-
: null, canonical && jsx("link", { rel: "canonical", href: canonical }), jsonLd && jsx("script", { type: "application/ld+json", children: jsonLd }), children] }));
|
|
1211
|
+
const { title, main, og, twitter, jsonLd } = data;
|
|
1212
|
+
const { description, keywords, canonical, robots } = main || {};
|
|
1213
|
+
return (jsxs(HeadComponent, { children: [jsx("title", { children: title }), jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), description && jsx("meta", { name: "description", content: description }), keywords && jsx("meta", { name: "keywords", content: keywords.join(',') }), robots && jsx("meta", { name: "robots", content: robots.join(',') }), renderOpenGraph(og), renderTwitter(twitter), canonical && jsx("link", { rel: "canonical", href: canonical }), jsonLd && jsx("script", { type: "application/ld+json", children: jsonLd }), children] }));
|
|
1198
1214
|
});
|
|
1215
|
+
function renderOpenGraph(og) {
|
|
1216
|
+
return og
|
|
1217
|
+
? Object.entries(og).map(([key, value]) => (jsx("meta", { name: `og:${key}`, content: value }, key)))
|
|
1218
|
+
: null;
|
|
1219
|
+
}
|
|
1220
|
+
function renderTwitter(twitter) {
|
|
1221
|
+
return twitter
|
|
1222
|
+
? Object.entries(twitter).map(([key, value]) => (jsx("meta", { name: `twitter:${key}`, content: value }, key)))
|
|
1223
|
+
: null;
|
|
1224
|
+
}
|
|
1199
1225
|
|
|
1200
1226
|
function isBlockInRegistry(blockType, registry) {
|
|
1201
1227
|
return (blockType || '') in registry;
|