@redneckz/wildless-cms-uni-blocks 0.2.111 → 0.2.114
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 +79 -61
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.d.ts +5 -0
- package/dist/components/Accordion/Accordion.mobile.js +10 -0
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -0
- package/dist/components/Accordion/AccordionContent.d.ts +12 -0
- package/dist/components/Accordion/AccordionItem.js +7 -24
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.d.ts +5 -0
- package/dist/components/Accordion/AccordionItem.mobile.js +16 -0
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -0
- package/dist/components/Accordion/AccordionItemInner.d.ts +2 -0
- package/dist/components/Accordion/AccordionItemInner.js +17 -0
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -0
- package/dist/components/Accordion/AccordionItemInner.mobile.d.ts +2 -0
- package/dist/components/Accordion/AccordionItemInner.mobile.js +17 -0
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -0
- package/dist/components/Accordion/utils/isActiveHandler.d.ts +9 -0
- package/dist/components/Accordion/utils/isActiveHandler.js +21 -0
- package/dist/components/Accordion/utils/isActiveHandler.js.map +1 -0
- package/dist/components/BaseTile/BaseTile.js +3 -32
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.mobile.d.ts +5 -0
- package/dist/components/BaseTile/BaseTile.mobile.js +17 -0
- package/dist/components/BaseTile/BaseTile.mobile.js.map +1 -0
- package/dist/components/BaseTile/BaseTileInner.d.ts +5 -0
- package/dist/components/BaseTile/BaseTileInner.js +14 -0
- package/dist/components/BaseTile/BaseTileInner.js.map +1 -0
- package/dist/components/BaseTile/BaseTileInner.mobile.d.ts +5 -0
- package/dist/components/BaseTile/BaseTileInner.mobile.js +14 -0
- package/dist/components/BaseTile/BaseTileInner.mobile.js.map +1 -0
- package/dist/components/BaseTile/BaseTileProps.d.ts +9 -3
- package/dist/components/BaseTile/getTitleSizeByClassName.d.ts +1 -0
- package/dist/components/BaseTile/getTitleSizeByClassName.js +17 -0
- package/dist/components/BaseTile/getTitleSizeByClassName.js.map +1 -0
- package/dist/components/BaseTile/renderButton.d.ts +2 -0
- package/dist/components/BaseTile/renderButton.js +12 -0
- package/dist/components/BaseTile/renderButton.js.map +1 -0
- package/dist/components/BaseTile/renderButton.mobile.d.ts +2 -0
- package/dist/components/BaseTile/renderButton.mobile.js +13 -0
- package/dist/components/BaseTile/renderButton.mobile.js.map +1 -0
- package/dist/components/BaseTile/renderItems.d.ts +2 -0
- package/dist/components/BaseTile/renderItems.js +9 -0
- package/dist/components/BaseTile/renderItems.js.map +1 -0
- package/dist/components/BaseTile/renderItems.mobile.d.ts +2 -0
- package/dist/components/BaseTile/renderItems.mobile.js +9 -0
- package/dist/components/BaseTile/renderItems.mobile.js.map +1 -0
- package/dist/components/Blocks.mobile.d.ts +1 -6
- package/dist/components/Blocks.mobile.js +2 -12
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +20 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +12 -0
- package/dist/components/Footer/HorizontalNavigation.d.ts +5 -1
- package/dist/components/Footer/HorizontalNavigation.js +3 -3
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.d.ts +6 -0
- package/dist/components/Footer/HorizontalNavigation.mobile.js +12 -0
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -0
- package/dist/components/Footer/MediaButton.d.ts +5 -0
- package/dist/components/Footer/MediaButton.js +23 -0
- package/dist/components/Footer/MediaButton.js.map +1 -0
- package/dist/components/Footer/SocialMedia.js +2 -19
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/SocialMedia.mobile.d.ts +6 -0
- package/dist/components/Footer/SocialMedia.mobile.js +12 -0
- package/dist/components/Footer/SocialMedia.mobile.js.map +1 -0
- package/dist/components/Footer/TextInformation.d.ts +1 -1
- package/dist/components/Footer/TextInformation.mobile.d.ts +2 -0
- package/dist/components/Footer/TextInformation.mobile.js +12 -0
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -0
- package/dist/components/Header/Header.mobile.d.ts +5 -0
- package/dist/components/Header/Header.mobile.js +32 -0
- package/dist/components/Header/Header.mobile.js.map +1 -0
- package/dist/components/Header/HeaderBurger.d.ts +10 -0
- package/dist/components/Header/HeaderBurger.js +16 -0
- package/dist/components/Header/HeaderBurger.js.map +1 -0
- package/dist/components/Header/HeaderContent.d.ts +11 -1
- package/dist/components/Header/HeaderTop.d.ts +6 -0
- package/dist/components/Header/HeaderTop.js +8 -0
- package/dist/components/Header/HeaderTop.js.map +1 -0
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.d.ts +5 -0
- package/dist/components/Headline/Headline.mobile.js +10 -0
- package/dist/components/Headline/Headline.mobile.js.map +1 -0
- package/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.d.ts +5 -0
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +9 -0
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -17
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.d.ts +5 -0
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +11 -0
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -0
- package/dist/components/ProductBlock/renderBenefit.d.ts +2 -0
- package/dist/components/ProductBlock/renderBenefit.js +21 -0
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -0
- package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -0
- package/dist/components/ProductBlock/renderBenefit.mobile.js +17 -0
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -0
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/dist/components/ProductGallery/ProductGallery.mobile.js +21 -0
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -0
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/dist/components/ProductGallery/ProductGalleryBlock.js +9 -0
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -0
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +8 -0
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +9 -0
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -0
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +9 -5
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -0
- package/dist/components/TextBlock/TextBlock.js +2 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.d.ts +5 -0
- package/dist/components/TextBlock/TextBlock.mobile.js +40 -0
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -0
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -0
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +6 -1
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/model/Picture.d.ts +1 -0
- package/dist/ui-kit/BlockItem/BlockItem.js +2 -2
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Breadcrumb.js +3 -3
- package/dist/ui-kit/Breadcrumb.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +7 -5
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.d.ts +6 -0
- package/dist/ui-kit/Button/Button.mobile.js +28 -0
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -0
- package/dist/ui-kit/HeaderItem/HeaderItem.d.ts +0 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.d.ts +3 -0
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +23 -0
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -0
- package/dist/ui-kit/Icon/IconProps.d.ts +73 -61
- package/dist/ui-kit/Icon/IconProps.js +67 -61
- package/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/dist/ui-kit/Img.js +3 -3
- package/dist/ui-kit/Img.js.map +1 -1
- package/dist/ui-kit/Img.mobile.d.ts +7 -0
- package/dist/ui-kit/Img.mobile.js +18 -0
- package/dist/ui-kit/Img.mobile.js.map +1 -0
- package/dist/ui-kit/Logo/Logo.d.ts +1 -0
- package/dist/ui-kit/Logo/Logo.js +2 -2
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.d.ts +8 -0
- package/dist/ui-kit/Logo/Logo.mobile.js +24 -0
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/dist/ui-kit/{SearchBar.js → SearchBar/SearchBar.js} +2 -2
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -0
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +14 -0
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -0
- package/dist/ui-kit/{SearchBar.d.ts → SearchBar.mobile.d.ts} +0 -0
- package/dist/ui-kit/SearchBar.mobile.js +14 -0
- package/dist/ui-kit/SearchBar.mobile.js.map +1 -0
- package/dist/utils/getAccordionItems.d.ts +1 -0
- package/dist/utils/getAccordionItems.js +13 -0
- package/dist/utils/getAccordionItems.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +2 -0
- package/lib/components/Accordion/Accordion.mobile.d.ts +5 -0
- package/lib/components/Accordion/Accordion.mobile.js +8 -0
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -0
- package/lib/components/Accordion/AccordionContent.d.ts +12 -0
- package/lib/components/Accordion/AccordionItem.js +7 -24
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.d.ts +5 -0
- package/lib/components/Accordion/AccordionItem.mobile.js +14 -0
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -0
- package/lib/components/Accordion/AccordionItemInner.d.ts +2 -0
- package/lib/components/Accordion/AccordionItemInner.js +15 -0
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -0
- package/lib/components/Accordion/AccordionItemInner.mobile.d.ts +2 -0
- package/lib/components/Accordion/AccordionItemInner.mobile.js +15 -0
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -0
- package/lib/components/Accordion/utils/isActiveHandler.d.ts +9 -0
- package/lib/components/Accordion/utils/isActiveHandler.js +18 -0
- package/lib/components/Accordion/utils/isActiveHandler.js.map +1 -0
- package/lib/components/BaseTile/BaseTile.js +3 -32
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.mobile.d.ts +5 -0
- package/lib/components/BaseTile/BaseTile.mobile.js +15 -0
- package/lib/components/BaseTile/BaseTile.mobile.js.map +1 -0
- package/lib/components/BaseTile/BaseTileInner.d.ts +5 -0
- package/lib/components/BaseTile/BaseTileInner.js +12 -0
- package/lib/components/BaseTile/BaseTileInner.js.map +1 -0
- package/lib/components/BaseTile/BaseTileInner.mobile.d.ts +5 -0
- package/lib/components/BaseTile/BaseTileInner.mobile.js +12 -0
- package/lib/components/BaseTile/BaseTileInner.mobile.js.map +1 -0
- package/lib/components/BaseTile/BaseTileProps.d.ts +9 -3
- package/lib/components/BaseTile/getTitleSizeByClassName.d.ts +1 -0
- package/lib/components/BaseTile/getTitleSizeByClassName.js +14 -0
- package/lib/components/BaseTile/getTitleSizeByClassName.js.map +1 -0
- package/lib/components/BaseTile/renderButton.d.ts +2 -0
- package/lib/components/BaseTile/renderButton.js +9 -0
- package/lib/components/BaseTile/renderButton.js.map +1 -0
- package/lib/components/BaseTile/renderButton.mobile.d.ts +2 -0
- package/lib/components/BaseTile/renderButton.mobile.js +10 -0
- package/lib/components/BaseTile/renderButton.mobile.js.map +1 -0
- package/lib/components/BaseTile/renderItems.d.ts +2 -0
- package/lib/components/BaseTile/renderItems.js +6 -0
- package/lib/components/BaseTile/renderItems.js.map +1 -0
- package/lib/components/BaseTile/renderItems.mobile.d.ts +2 -0
- package/lib/components/BaseTile/renderItems.mobile.js +6 -0
- package/lib/components/BaseTile/renderItems.mobile.js.map +1 -0
- package/lib/components/Blocks.mobile.d.ts +1 -6
- package/lib/components/Blocks.mobile.js +2 -12
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +2 -0
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +21 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +12 -0
- package/lib/components/Footer/HorizontalNavigation.d.ts +5 -1
- package/lib/components/Footer/HorizontalNavigation.js +3 -3
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.d.ts +6 -0
- package/lib/components/Footer/HorizontalNavigation.mobile.js +10 -0
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -0
- package/lib/components/Footer/MediaButton.d.ts +5 -0
- package/lib/components/Footer/MediaButton.js +21 -0
- package/lib/components/Footer/MediaButton.js.map +1 -0
- package/lib/components/Footer/SocialMedia.js +1 -18
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/SocialMedia.mobile.d.ts +6 -0
- package/lib/components/Footer/SocialMedia.mobile.js +10 -0
- package/lib/components/Footer/SocialMedia.mobile.js.map +1 -0
- package/lib/components/Footer/TextInformation.d.ts +1 -1
- package/lib/components/Footer/TextInformation.mobile.d.ts +2 -0
- package/lib/components/Footer/TextInformation.mobile.js +10 -0
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -0
- package/lib/components/Header/Header.fixture.mobile.d.ts +5 -0
- package/lib/components/Header/Header.mobile.d.ts +5 -0
- package/lib/components/Header/Header.mobile.js +30 -0
- package/lib/components/Header/Header.mobile.js.map +1 -0
- package/lib/components/Header/HeaderBurger.d.ts +10 -0
- package/lib/components/Header/HeaderBurger.js +14 -0
- package/lib/components/Header/HeaderBurger.js.map +1 -0
- package/lib/components/Header/HeaderContent.d.ts +11 -1
- package/lib/components/Header/HeaderTop.d.ts +6 -0
- package/lib/components/Header/HeaderTop.js +6 -0
- package/lib/components/Header/HeaderTop.js.map +1 -0
- package/lib/components/Headline/Headline.fixture.d.ts +4 -0
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +9 -0
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.d.ts +5 -0
- package/lib/components/Headline/Headline.mobile.js +8 -0
- package/lib/components/Headline/Headline.mobile.js.map +1 -0
- package/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -3
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +2 -0
- package/lib/components/MobileAppTile/MobileAppTile.mobile.d.ts +5 -0
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +7 -0
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +4 -0
- package/lib/components/ProductBlock/ProductBlock.mobile.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -16
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.d.ts +5 -0
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +9 -0
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -0
- package/lib/components/ProductBlock/renderBenefit.d.ts +2 -0
- package/lib/components/ProductBlock/renderBenefit.js +18 -0
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -0
- package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -0
- package/lib/components/ProductBlock/renderBenefit.mobile.js +14 -0
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -0
- package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +4 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.js +19 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -0
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/lib/components/ProductGallery/ProductGalleryBlock.js +7 -0
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -0
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +8 -0
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +7 -0
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -0
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +9 -5
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -0
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +4 -0
- package/lib/components/TextBlock/TextBlock.js +2 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.d.ts +5 -0
- package/lib/components/TextBlock/TextBlock.mobile.js +38 -0
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -0
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -0
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +6 -1
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/model/Picture.d.ts +1 -0
- package/lib/ui-kit/BlockItem/BlockItem.js +2 -2
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Breadcrumb.js +3 -3
- package/lib/ui-kit/Breadcrumb.js.map +1 -1
- package/lib/ui-kit/Button/Button.fixture.mobile.d.ts +5 -0
- package/lib/ui-kit/Button/Button.js +7 -5
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.d.ts +6 -0
- package/lib/ui-kit/Button/Button.mobile.js +26 -0
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.d.ts +0 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.d.ts +3 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +21 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -0
- package/lib/ui-kit/Icon/IconProps.d.ts +73 -61
- package/lib/ui-kit/Icon/IconProps.js +67 -61
- package/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/lib/ui-kit/Img.js +3 -3
- package/lib/ui-kit/Img.js.map +1 -1
- package/lib/ui-kit/Img.mobile.d.ts +7 -0
- package/lib/ui-kit/Img.mobile.js +15 -0
- package/lib/ui-kit/Img.mobile.js.map +1 -0
- package/lib/ui-kit/Logo/Logo.d.ts +1 -0
- package/lib/ui-kit/Logo/Logo.js +2 -2
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.d.ts +8 -0
- package/lib/ui-kit/Logo/Logo.mobile.js +22 -0
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/lib/ui-kit/{SearchBar.js → SearchBar/SearchBar.js} +2 -2
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -0
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +12 -0
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -0
- package/lib/ui-kit/{SearchBar.d.ts → SearchBar.mobile.d.ts} +0 -0
- package/lib/ui-kit/SearchBar.mobile.js +12 -0
- package/lib/ui-kit/SearchBar.mobile.js.map +1 -0
- package/lib/utils/getAccordionItems.d.ts +1 -0
- package/lib/utils/getAccordionItems.js +10 -0
- package/lib/utils/getAccordionItems.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +978 -0
- package/mobile/bundle/bundle.umd.min.js +1 -0
- package/mobile/dist/ProjectSettings.d.ts +21 -0
- package/mobile/dist/ProjectSettings.js +33 -0
- package/mobile/dist/ProjectSettings.js.map +1 -0
- package/mobile/dist/api/DaDataAPI.d.ts +3 -0
- package/mobile/dist/api/DaDataAPI.js +33 -0
- package/mobile/dist/api/DaDataAPI.js.map +1 -0
- package/mobile/dist/api/LikeAPI.d.ts +9 -0
- package/mobile/dist/api/LikeAPI.js +120 -0
- package/mobile/dist/api/LikeAPI.js.map +1 -0
- package/mobile/dist/components/Accordion/Accordion.d.ts +5 -0
- package/mobile/dist/components/Accordion/Accordion.js +10 -0
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +6 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +13 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +77 -0
- package/mobile/dist/components/Accordion/AccordionContent.js +2 -0
- package/mobile/dist/components/Accordion/AccordionContent.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +5 -0
- package/mobile/dist/components/Accordion/AccordionItem.js +16 -0
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionItemInner.d.ts +2 -0
- package/mobile/dist/components/Accordion/AccordionItemInner.js +17 -0
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -0
- package/mobile/dist/components/Accordion/utils/isActiveHandler.d.ts +9 -0
- package/mobile/dist/components/Accordion/utils/isActiveHandler.js +21 -0
- package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +1 -0
- package/mobile/dist/components/BaseTile/BaseTile.d.ts +5 -0
- package/mobile/dist/components/BaseTile/BaseTile.js +17 -0
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -0
- package/mobile/dist/components/BaseTile/BaseTileInner.d.ts +5 -0
- package/mobile/dist/components/BaseTile/BaseTileInner.js +14 -0
- package/mobile/dist/components/BaseTile/BaseTileInner.js.map +1 -0
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +47 -0
- package/mobile/dist/components/BaseTile/BaseTileProps.js +2 -0
- package/mobile/dist/components/BaseTile/BaseTileProps.js.map +1 -0
- package/mobile/dist/components/BaseTile/getTitleSizeByClassName.d.ts +1 -0
- package/mobile/dist/components/BaseTile/getTitleSizeByClassName.js +17 -0
- package/mobile/dist/components/BaseTile/getTitleSizeByClassName.js.map +1 -0
- package/mobile/dist/components/BaseTile/renderButton.d.ts +2 -0
- package/mobile/dist/components/BaseTile/renderButton.js +13 -0
- package/mobile/dist/components/BaseTile/renderButton.js.map +1 -0
- package/mobile/dist/components/BaseTile/renderItems.d.ts +2 -0
- package/mobile/dist/components/BaseTile/renderItems.js +9 -0
- package/mobile/dist/components/BaseTile/renderItems.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +13 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +23 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.js +2 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.js.map +1 -0
- package/mobile/dist/components/BlockContent.d.ts +23 -0
- package/mobile/dist/components/BlockContent.js +2 -0
- package/mobile/dist/components/BlockContent.js.map +1 -0
- package/mobile/dist/components/Blocks.d.ts +11 -0
- package/mobile/dist/components/Blocks.js +23 -0
- package/mobile/dist/components/Blocks.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +36 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +59 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.js +2 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +11 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +10 -0
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableCell.d.ts +8 -0
- package/mobile/dist/components/ComparisonTable/TableCell.js +12 -0
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableRow.d.ts +10 -0
- package/mobile/dist/components/ComparisonTable/TableRow.js +10 -0
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/mobile/dist/components/ComparisonTable/TableRowContainer.js +6 -0
- package/mobile/dist/components/ComparisonTable/TableRowContainer.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/constants.d.ts +6 -0
- package/mobile/dist/components/ComparisonTable/constants.js +9 -0
- package/mobile/dist/components/ComparisonTable/constants.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +28 -0
- package/mobile/dist/components/ContentPage/ContentPage.js +32 -0
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +31 -0
- package/mobile/dist/components/ContentPage/ContentPageContext.js +2 -0
- package/mobile/dist/components/ContentPage/ContentPageContext.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPageHead.d.ts +6 -0
- package/mobile/dist/components/ContentPage/ContentPageHead.js +11 -0
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -0
- package/mobile/dist/components/ContentPage/toMobilePage.d.ts +2 -0
- package/mobile/dist/components/ContentPage/toMobilePage.js +34 -0
- package/mobile/dist/components/ContentPage/toMobilePage.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +5 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +57 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +19 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js +2 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/constants.d.ts +7 -0
- package/mobile/dist/components/CreditCalculator/constants.js +10 -0
- package/mobile/dist/components/CreditCalculator/constants.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +7 -0
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js +11 -0
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +7 -0
- package/mobile/dist/components/CreditCalculator/getCreditRate.js +13 -0
- package/mobile/dist/components/CreditCalculator/getCreditRate.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js +15 -0
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js +19 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +35 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +2 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +1 -0
- package/mobile/dist/components/Footer/Contacts.d.ts +7 -0
- package/mobile/dist/components/Footer/Contacts.js +31 -0
- package/mobile/dist/components/Footer/Contacts.js.map +1 -0
- package/mobile/dist/components/Footer/Footer.d.ts +5 -0
- package/mobile/dist/components/Footer/Footer.js +26 -0
- package/mobile/dist/components/Footer/Footer.js.map +1 -0
- package/mobile/dist/components/Footer/FooterContent.d.ts +50 -0
- package/mobile/dist/components/Footer/FooterContent.js +2 -0
- package/mobile/dist/components/Footer/FooterContent.js.map +1 -0
- package/mobile/dist/components/Footer/FooterLink.d.ts +5 -0
- package/mobile/dist/components/Footer/FooterLink.js +2 -0
- package/mobile/dist/components/Footer/FooterLink.js.map +1 -0
- package/mobile/dist/components/Footer/HorizontalNavigation.d.ts +6 -0
- package/mobile/dist/components/Footer/HorizontalNavigation.js +12 -0
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -0
- package/mobile/dist/components/Footer/MediaButton.d.ts +5 -0
- package/mobile/dist/components/Footer/MediaButton.js +23 -0
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -0
- package/mobile/dist/components/Footer/Sitemap.d.ts +6 -0
- package/mobile/dist/components/Footer/Sitemap.js +22 -0
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -0
- package/mobile/dist/components/Footer/SocialMedia.d.ts +6 -0
- package/mobile/dist/components/Footer/SocialMedia.js +12 -0
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -0
- package/mobile/dist/components/Footer/TextInformation.d.ts +2 -0
- package/mobile/dist/components/Footer/TextInformation.js +12 -0
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -0
- package/mobile/dist/components/Gallery/Gallery.d.ts +2 -0
- package/mobile/dist/components/Gallery/Gallery.js +18 -0
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/mobile/dist/components/Gallery/GalleryCardInner.js +19 -0
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +13 -0
- package/mobile/dist/components/Gallery/GalleryContainer.js +16 -0
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +32 -0
- package/mobile/dist/components/Gallery/GalleryContent.js +2 -0
- package/mobile/dist/components/Gallery/GalleryContent.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryInner.d.ts +7 -0
- package/mobile/dist/components/Gallery/GalleryInner.js +18 -0
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryProps.d.ts +4 -0
- package/mobile/dist/components/Gallery/GalleryProps.js +2 -0
- package/mobile/dist/components/Gallery/GalleryProps.js.map +1 -0
- package/mobile/dist/components/Gallery/constants.d.ts +6 -0
- package/mobile/dist/components/Gallery/constants.js +19 -0
- package/mobile/dist/components/Gallery/constants.js.map +1 -0
- package/mobile/dist/components/Header/Header.d.ts +5 -0
- package/mobile/dist/components/Header/Header.js +32 -0
- package/mobile/dist/components/Header/Header.js.map +1 -0
- package/mobile/dist/components/Header/HeaderBurger.d.ts +10 -0
- package/mobile/dist/components/Header/HeaderBurger.js +16 -0
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -0
- package/mobile/dist/components/Header/HeaderContent.d.ts +29 -0
- package/mobile/dist/components/Header/HeaderContent.js +2 -0
- package/mobile/dist/components/Header/HeaderContent.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +24 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +6 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -0
- package/mobile/dist/components/Header/HeaderTop.d.ts +6 -0
- package/mobile/dist/components/Header/HeaderTop.js +8 -0
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -0
- package/mobile/dist/components/Headline/Headline.d.ts +5 -0
- package/mobile/dist/components/Headline/Headline.js +10 -0
- package/mobile/dist/components/Headline/Headline.js.map +1 -0
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +8 -0
- package/mobile/dist/components/Headline/HeadlineContent.js +2 -0
- package/mobile/dist/components/Headline/HeadlineContent.js.map +1 -0
- package/mobile/dist/components/LikeControl/LikeControl.d.ts +2 -0
- package/mobile/dist/components/LikeControl/LikeControl.js +10 -0
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js +42 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +23 -0
- package/mobile/dist/components/LinkDocs/LinkDocsContent.js +2 -0
- package/mobile/dist/components/LinkDocs/LinkDocsContent.js.map +1 -0
- package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/mobile/dist/components/MiniGallery/MiniGallery.js +7 -0
- package/mobile/dist/components/MiniGallery/MiniGallery.js.map +1 -0
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +5 -0
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +9 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +18 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.js +2 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.js.map +1 -0
- package/mobile/dist/components/Navigation/Navigation.d.ts +5 -0
- package/mobile/dist/components/Navigation/Navigation.js +16 -0
- package/mobile/dist/components/Navigation/Navigation.js.map +1 -0
- package/mobile/dist/components/Navigation/NavigationContent.d.ts +10 -0
- package/mobile/dist/components/Navigation/NavigationContent.js +2 -0
- package/mobile/dist/components/Navigation/NavigationContent.js.map +1 -0
- package/mobile/dist/components/Navigation/NavigationItem.d.ts +4 -0
- package/mobile/dist/components/Navigation/NavigationItem.js +6 -0
- package/mobile/dist/components/Navigation/NavigationItem.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureText.d.ts +5 -0
- package/mobile/dist/components/PictureText/PictureText.js +14 -0
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +9 -0
- package/mobile/dist/components/PictureText/PictureTextContent.js +2 -0
- package/mobile/dist/components/PictureText/PictureTextContent.js.map +1 -0
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +6 -0
- package/mobile/dist/components/Placeholder/Placeholder.js +15 -0
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -0
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +6 -0
- package/mobile/dist/components/Placeholder/PlaceholderContent.js +2 -0
- package/mobile/dist/components/Placeholder/PlaceholderContent.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js +12 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +25 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.js +2 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +5 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +11 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -0
- package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -0
- package/mobile/dist/components/ProductBlock/renderBenefit.js +17 -0
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -0
- package/mobile/dist/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/mobile/dist/components/ProductGallery/ProductGallery.js +21 -0
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +9 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +30 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js +2 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js.map +1 -0
- package/mobile/dist/components/ProductTile/ProductTile.d.ts +5 -0
- package/mobile/dist/components/ProductTile/ProductTile.js +20 -0
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -0
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +12 -0
- package/mobile/dist/components/ProductTile/ProductTileContent.js +2 -0
- package/mobile/dist/components/ProductTile/ProductTileContent.js.map +1 -0
- package/mobile/dist/components/PromoTile/PromoTile.d.ts +5 -0
- package/mobile/dist/components/PromoTile/PromoTile.js +18 -0
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -0
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +8 -0
- package/mobile/dist/components/PromoTile/PromoTileContent.js +2 -0
- package/mobile/dist/components/PromoTile/PromoTileContent.js.map +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/mobile/dist/components/StepsBlock/StepsBlock.js +24 -0
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +30 -0
- package/mobile/dist/components/StepsBlock/StepsBlockContent.js +2 -0
- package/mobile/dist/components/StepsBlock/StepsBlockContent.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js +25 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +6 -0
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +16 -0
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +59 -0
- package/mobile/dist/components/TariffsTable/TariffsTableContent.js +2 -0
- package/mobile/dist/components/TariffsTable/TariffsTableContent.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +8 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +13 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -0
- package/mobile/dist/components/TariffsTable/constants.d.ts +4 -0
- package/mobile/dist/components/TariffsTable/constants.js +7 -0
- package/mobile/dist/components/TariffsTable/constants.js.map +1 -0
- package/mobile/dist/components/TextBlock/TextBlock.d.ts +5 -0
- package/mobile/dist/components/TextBlock/TextBlock.js +40 -0
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -0
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +24 -0
- package/mobile/dist/components/TextBlock/TextBlockContent.js +2 -0
- package/mobile/dist/components/TextBlock/TextBlockContent.js.map +1 -0
- package/mobile/dist/components/Tile/Tile.d.ts +6 -0
- package/mobile/dist/components/Tile/Tile.js +39 -0
- package/mobile/dist/components/Tile/Tile.js.map +1 -0
- package/mobile/dist/components/Tile/TileContent.d.ts +5 -0
- package/mobile/dist/components/Tile/TileContent.js +2 -0
- package/mobile/dist/components/Tile/TileContent.js.map +1 -0
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +10 -0
- package/mobile/dist/content-page-repository/ContentPageRepository.js +56 -0
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -0
- package/mobile/dist/content-page-repository/TransformationOptions.d.ts +4 -0
- package/mobile/dist/content-page-repository/TransformationOptions.js +2 -0
- package/mobile/dist/content-page-repository/TransformationOptions.js.map +1 -0
- package/mobile/dist/content-page-repository/index.d.ts +2 -0
- package/mobile/dist/content-page-repository/index.js +7 -0
- package/mobile/dist/content-page-repository/index.js.map +1 -0
- package/mobile/dist/content-page-repository/mapJSON.d.ts +1 -0
- package/mobile/dist/content-page-repository/mapJSON.js +24 -0
- package/mobile/dist/content-page-repository/mapJSON.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +3 -0
- package/mobile/dist/content-page-repository/transformContentPage.js +30 -0
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -0
- package/mobile/dist/content-page-repository/transformMarkdown.d.ts +1 -0
- package/mobile/dist/content-page-repository/transformMarkdown.js +16 -0
- package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -0
- package/mobile/dist/content-page-repository/transformPicture.d.ts +3 -0
- package/mobile/dist/content-page-repository/transformPicture.js +50 -0
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -0
- package/mobile/dist/hooks/useComparisonTableScroll.d.ts +12 -0
- package/mobile/dist/hooks/useComparisonTableScroll.js +12 -0
- package/mobile/dist/hooks/useComparisonTableScroll.js.map +1 -0
- package/mobile/dist/hooks/useCreditCalculatorData.d.ts +3 -0
- package/mobile/dist/hooks/useCreditCalculatorData.js +15 -0
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -0
- package/mobile/dist/hooks/useLink.d.ts +15 -0
- package/mobile/dist/hooks/useLink.js +23 -0
- package/mobile/dist/hooks/useLink.js.map +1 -0
- package/mobile/dist/index.d.ts +19 -0
- package/mobile/dist/index.js +49 -0
- package/mobile/dist/index.js.map +1 -0
- package/mobile/dist/model/BgColorVersion.d.ts +8 -0
- package/mobile/dist/model/BgColorVersion.js +2 -0
- package/mobile/dist/model/BgColorVersion.js.map +1 -0
- package/mobile/dist/model/BlockVersion.d.ts +5 -0
- package/mobile/dist/model/BlockVersion.js +2 -0
- package/mobile/dist/model/BlockVersion.js.map +1 -0
- package/mobile/dist/model/ButtonVersion.d.ts +6 -0
- package/mobile/dist/model/ButtonVersion.js +2 -0
- package/mobile/dist/model/ButtonVersion.js.map +1 -0
- package/mobile/dist/model/GalleryVersion.d.ts +1 -0
- package/mobile/dist/model/GalleryVersion.js +2 -0
- package/mobile/dist/model/GalleryVersion.js.map +1 -0
- package/mobile/dist/model/LinkProps.d.ts +22 -0
- package/mobile/dist/model/LinkProps.js +2 -0
- package/mobile/dist/model/LinkProps.js.map +1 -0
- package/mobile/dist/model/Picture.d.ts +29 -0
- package/mobile/dist/model/Picture.js +2 -0
- package/mobile/dist/model/Picture.js.map +1 -0
- package/mobile/dist/model/SitemapProps.d.ts +13 -0
- package/mobile/dist/model/SitemapProps.js +2 -0
- package/mobile/dist/model/SitemapProps.js.map +1 -0
- package/mobile/dist/model/SizeVersion.d.ts +8 -0
- package/mobile/dist/model/SizeVersion.js +2 -0
- package/mobile/dist/model/SizeVersion.js.map +1 -0
- package/mobile/dist/model/TableVersion.d.ts +1 -0
- package/mobile/dist/model/TableVersion.js +2 -0
- package/mobile/dist/model/TableVersion.js.map +1 -0
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +13 -0
- package/mobile/dist/services/sitemap/SitemapProps.js +2 -0
- package/mobile/dist/services/sitemap/SitemapProps.js.map +1 -0
- package/mobile/dist/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/mobile/dist/services/sitemap/findActiveSubItem.js +13 -0
- package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -0
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +4 -0
- package/mobile/dist/services/sitemap/isHrefActive.js +9 -0
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -0
- package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -0
- package/mobile/dist/services/sitemap/isSubItemActive.js +6 -0
- package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -0
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -0
- package/mobile/dist/services/sitemap/isTopItemActive.js +7 -0
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -0
- package/mobile/dist/services/sitemap/mergeTopItems.d.ts +2 -0
- package/mobile/dist/services/sitemap/mergeTopItems.js +8 -0
- package/mobile/dist/services/sitemap/mergeTopItems.js.map +1 -0
- package/mobile/dist/services/sitemap/useSitemap.d.ts +3 -0
- package/mobile/dist/services/sitemap/useSitemap.js +16 -0
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -0
- package/mobile/dist/types.d.ts +51 -0
- package/mobile/dist/types.js +2 -0
- package/mobile/dist/types.js.map +1 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +2 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +24 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +21 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js +2 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js.map +1 -0
- package/mobile/dist/ui-kit/Breadcrumb.d.ts +6 -0
- package/mobile/dist/ui-kit/Breadcrumb.js +13 -0
- package/mobile/dist/ui-kit/Breadcrumb.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/dist/ui-kit/Button/ArrowButton.js +22 -0
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -0
- package/mobile/dist/ui-kit/Button/Button.d.ts +6 -0
- package/mobile/dist/ui-kit/Button/Button.js +28 -0
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +30 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.js +2 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.js.map +1 -0
- package/mobile/dist/ui-kit/Button/LikeButton.d.ts +6 -0
- package/mobile/dist/ui-kit/Button/LikeButton.js +15 -0
- package/mobile/dist/ui-kit/Button/LikeButton.js.map +1 -0
- package/mobile/dist/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +17 -0
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -0
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +6 -0
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.js +2 -0
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.js.map +1 -0
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +23 -0
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/Icon.d.ts +2 -0
- package/mobile/dist/ui-kit/Icon/Icon.js +13 -0
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +159 -0
- package/mobile/dist/ui-kit/Icon/IconProps.js +78 -0
- package/mobile/dist/ui-kit/Icon/IconProps.js.map +1 -0
- package/mobile/dist/ui-kit/Img.d.ts +7 -0
- package/mobile/dist/ui-kit/Img.js +18 -0
- package/mobile/dist/ui-kit/Img.js.map +1 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js +27 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -0
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +10 -0
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.js +2 -0
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.js.map +1 -0
- package/mobile/dist/ui-kit/Logo/Logo.d.ts +8 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +24 -0
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -0
- package/mobile/dist/ui-kit/SVG.d.ts +20 -0
- package/mobile/dist/ui-kit/SVG.js +8 -0
- package/mobile/dist/ui-kit/SVG.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +14 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -0
- package/mobile/dist/ui-kit/Title/Title.d.ts +3 -0
- package/mobile/dist/ui-kit/Title/Title.js +18 -0
- package/mobile/dist/ui-kit/Title/Title.js.map +1 -0
- package/mobile/dist/ui-kit/Title/TitleProps.d.ts +4 -0
- package/mobile/dist/ui-kit/Title/TitleProps.js +2 -0
- package/mobile/dist/ui-kit/Title/TitleProps.js.map +1 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +13 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.js +24 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -0
- package/mobile/dist/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/mobile/dist/utils/addSpacesBetweenNumbers.js +5 -0
- package/mobile/dist/utils/addSpacesBetweenNumbers.js.map +1 -0
- package/mobile/dist/utils/adjustHref.d.ts +4 -0
- package/mobile/dist/utils/adjustHref.js +21 -0
- package/mobile/dist/utils/adjustHref.js.map +1 -0
- package/mobile/dist/utils/clamp.d.ts +1 -0
- package/mobile/dist/utils/clamp.js +5 -0
- package/mobile/dist/utils/clamp.js.map +1 -0
- package/mobile/dist/utils/getAccordionItems.d.ts +1 -0
- package/mobile/dist/utils/getAccordionItems.js +13 -0
- package/mobile/dist/utils/getAccordionItems.js.map +1 -0
- package/mobile/dist/utils/getColSpan.d.ts +1 -0
- package/mobile/dist/utils/getColSpan.js +9 -0
- package/mobile/dist/utils/getColSpan.js.map +1 -0
- package/mobile/dist/utils/getGeolocation.d.ts +1 -0
- package/mobile/dist/utils/getGeolocation.js +5 -0
- package/mobile/dist/utils/getGeolocation.js.map +1 -0
- package/mobile/dist/utils/joinList.d.ts +1 -0
- package/mobile/dist/utils/joinList.js +7 -0
- package/mobile/dist/utils/joinList.js.map +1 -0
- package/mobile/dist/utils/maxBy.d.ts +2 -0
- package/mobile/dist/utils/maxBy.js +7 -0
- package/mobile/dist/utils/maxBy.js.map +1 -0
- package/mobile/dist/utils/url.d.ts +3 -0
- package/mobile/dist/utils/url.js +18 -0
- package/mobile/dist/utils/url.js.map +1 -0
- package/mobile/dist/utils/withoutMobilePath.d.ts +2 -0
- package/mobile/dist/utils/withoutMobilePath.js +6 -0
- package/mobile/dist/utils/withoutMobilePath.js.map +1 -0
- package/mobile/lib/ProjectSettings.d.ts +21 -0
- package/mobile/lib/ProjectSettings.js +31 -0
- package/mobile/lib/ProjectSettings.js.map +1 -0
- package/mobile/lib/api/DaDataAPI.d.ts +3 -0
- package/mobile/lib/api/DaDataAPI.js +30 -0
- package/mobile/lib/api/DaDataAPI.js.map +1 -0
- package/mobile/lib/api/LikeAPI.d.ts +9 -0
- package/mobile/lib/api/LikeAPI.js +117 -0
- package/mobile/lib/api/LikeAPI.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.d.ts +5 -0
- package/mobile/lib/components/Accordion/Accordion.js +8 -0
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +6 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +11 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +77 -0
- package/mobile/lib/components/Accordion/AccordionContent.js +2 -0
- package/mobile/lib/components/Accordion/AccordionContent.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +5 -0
- package/mobile/lib/components/Accordion/AccordionItem.js +14 -0
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionItemInner.d.ts +2 -0
- package/mobile/lib/components/Accordion/AccordionItemInner.js +15 -0
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -0
- package/mobile/lib/components/Accordion/utils/isActiveHandler.d.ts +9 -0
- package/mobile/lib/components/Accordion/utils/isActiveHandler.js +18 -0
- package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTile.d.ts +5 -0
- package/mobile/lib/components/BaseTile/BaseTile.js +15 -0
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTileInner.d.ts +5 -0
- package/mobile/lib/components/BaseTile/BaseTileInner.js +12 -0
- package/mobile/lib/components/BaseTile/BaseTileInner.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +47 -0
- package/mobile/lib/components/BaseTile/BaseTileProps.js +2 -0
- package/mobile/lib/components/BaseTile/BaseTileProps.js.map +1 -0
- package/mobile/lib/components/BaseTile/getTitleSizeByClassName.d.ts +1 -0
- package/mobile/lib/components/BaseTile/getTitleSizeByClassName.js +14 -0
- package/mobile/lib/components/BaseTile/getTitleSizeByClassName.js.map +1 -0
- package/mobile/lib/components/BaseTile/renderButton.d.ts +2 -0
- package/mobile/lib/components/BaseTile/renderButton.js +10 -0
- package/mobile/lib/components/BaseTile/renderButton.js.map +1 -0
- package/mobile/lib/components/BaseTile/renderItems.d.ts +2 -0
- package/mobile/lib/components/BaseTile/renderItems.js +6 -0
- package/mobile/lib/components/BaseTile/renderItems.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +11 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +23 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.js +2 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.js.map +1 -0
- package/mobile/lib/components/BlockContent.d.ts +23 -0
- package/mobile/lib/components/BlockContent.js +2 -0
- package/mobile/lib/components/BlockContent.js.map +1 -0
- package/mobile/lib/components/Blocks.d.ts +11 -0
- package/mobile/lib/components/Blocks.js +21 -0
- package/mobile/lib/components/Blocks.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +34 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +59 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.js +2 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +9 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +8 -0
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableCell.d.ts +8 -0
- package/mobile/lib/components/ComparisonTable/TableCell.js +10 -0
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableRow.d.ts +10 -0
- package/mobile/lib/components/ComparisonTable/TableRow.js +8 -0
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/mobile/lib/components/ComparisonTable/TableRowContainer.js +4 -0
- package/mobile/lib/components/ComparisonTable/TableRowContainer.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/constants.d.ts +6 -0
- package/mobile/lib/components/ComparisonTable/constants.js +7 -0
- package/mobile/lib/components/ComparisonTable/constants.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +28 -0
- package/mobile/lib/components/ContentPage/ContentPage.js +30 -0
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +31 -0
- package/mobile/lib/components/ContentPage/ContentPageContext.js +2 -0
- package/mobile/lib/components/ContentPage/ContentPageContext.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPageHead.d.ts +6 -0
- package/mobile/lib/components/ContentPage/ContentPageHead.js +9 -0
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -0
- package/mobile/lib/components/ContentPage/toMobilePage.d.ts +2 -0
- package/mobile/lib/components/ContentPage/toMobilePage.js +31 -0
- package/mobile/lib/components/ContentPage/toMobilePage.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +5 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +55 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +19 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js +2 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/constants.d.ts +7 -0
- package/mobile/lib/components/CreditCalculator/constants.js +8 -0
- package/mobile/lib/components/CreditCalculator/constants.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +7 -0
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js +8 -0
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +7 -0
- package/mobile/lib/components/CreditCalculator/getCreditRate.js +10 -0
- package/mobile/lib/components/CreditCalculator/getCreditRate.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js +12 -0
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js +16 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +33 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +2 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +1 -0
- package/mobile/lib/components/Footer/Contacts.d.ts +7 -0
- package/mobile/lib/components/Footer/Contacts.js +29 -0
- package/mobile/lib/components/Footer/Contacts.js.map +1 -0
- package/mobile/lib/components/Footer/Footer.d.ts +5 -0
- package/mobile/lib/components/Footer/Footer.js +24 -0
- package/mobile/lib/components/Footer/Footer.js.map +1 -0
- package/mobile/lib/components/Footer/FooterContent.d.ts +50 -0
- package/mobile/lib/components/Footer/FooterContent.js +2 -0
- package/mobile/lib/components/Footer/FooterContent.js.map +1 -0
- package/mobile/lib/components/Footer/FooterLink.d.ts +5 -0
- package/mobile/lib/components/Footer/FooterLink.js +2 -0
- package/mobile/lib/components/Footer/FooterLink.js.map +1 -0
- package/mobile/lib/components/Footer/HorizontalNavigation.d.ts +6 -0
- package/mobile/lib/components/Footer/HorizontalNavigation.js +10 -0
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -0
- package/mobile/lib/components/Footer/MediaButton.d.ts +5 -0
- package/mobile/lib/components/Footer/MediaButton.js +21 -0
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -0
- package/mobile/lib/components/Footer/Sitemap.d.ts +6 -0
- package/mobile/lib/components/Footer/Sitemap.js +20 -0
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -0
- package/mobile/lib/components/Footer/SocialMedia.d.ts +6 -0
- package/mobile/lib/components/Footer/SocialMedia.js +10 -0
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -0
- package/mobile/lib/components/Footer/TextInformation.d.ts +2 -0
- package/mobile/lib/components/Footer/TextInformation.js +10 -0
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -0
- package/mobile/lib/components/Gallery/Gallery.d.ts +2 -0
- package/mobile/lib/components/Gallery/Gallery.js +16 -0
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/mobile/lib/components/Gallery/GalleryCardInner.js +17 -0
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +13 -0
- package/mobile/lib/components/Gallery/GalleryContainer.js +14 -0
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +32 -0
- package/mobile/lib/components/Gallery/GalleryContent.js +2 -0
- package/mobile/lib/components/Gallery/GalleryContent.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryInner.d.ts +7 -0
- package/mobile/lib/components/Gallery/GalleryInner.js +16 -0
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryProps.d.ts +4 -0
- package/mobile/lib/components/Gallery/GalleryProps.js +2 -0
- package/mobile/lib/components/Gallery/GalleryProps.js.map +1 -0
- package/mobile/lib/components/Gallery/constants.d.ts +6 -0
- package/mobile/lib/components/Gallery/constants.js +17 -0
- package/mobile/lib/components/Gallery/constants.js.map +1 -0
- package/mobile/lib/components/Header/Header.d.ts +5 -0
- package/mobile/lib/components/Header/Header.js +30 -0
- package/mobile/lib/components/Header/Header.js.map +1 -0
- package/mobile/lib/components/Header/HeaderBurger.d.ts +10 -0
- package/mobile/lib/components/Header/HeaderBurger.js +14 -0
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -0
- package/mobile/lib/components/Header/HeaderContent.d.ts +29 -0
- package/mobile/lib/components/Header/HeaderContent.js +2 -0
- package/mobile/lib/components/Header/HeaderContent.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +22 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +4 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -0
- package/mobile/lib/components/Header/HeaderTop.d.ts +6 -0
- package/mobile/lib/components/Header/HeaderTop.js +6 -0
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -0
- package/mobile/lib/components/Headline/Headline.d.ts +5 -0
- package/mobile/lib/components/Headline/Headline.js +8 -0
- package/mobile/lib/components/Headline/Headline.js.map +1 -0
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +8 -0
- package/mobile/lib/components/Headline/HeadlineContent.js +2 -0
- package/mobile/lib/components/Headline/HeadlineContent.js.map +1 -0
- package/mobile/lib/components/LikeControl/LikeControl.d.ts +2 -0
- package/mobile/lib/components/LikeControl/LikeControl.js +8 -0
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js +40 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +23 -0
- package/mobile/lib/components/LinkDocs/LinkDocsContent.js +2 -0
- package/mobile/lib/components/LinkDocs/LinkDocsContent.js.map +1 -0
- package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/mobile/lib/components/MiniGallery/MiniGallery.js +5 -0
- package/mobile/lib/components/MiniGallery/MiniGallery.js.map +1 -0
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +5 -0
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +7 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +18 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.js +2 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.js.map +1 -0
- package/mobile/lib/components/Navigation/Navigation.d.ts +5 -0
- package/mobile/lib/components/Navigation/Navigation.js +14 -0
- package/mobile/lib/components/Navigation/Navigation.js.map +1 -0
- package/mobile/lib/components/Navigation/NavigationContent.d.ts +10 -0
- package/mobile/lib/components/Navigation/NavigationContent.js +2 -0
- package/mobile/lib/components/Navigation/NavigationContent.js.map +1 -0
- package/mobile/lib/components/Navigation/NavigationItem.d.ts +4 -0
- package/mobile/lib/components/Navigation/NavigationItem.js +4 -0
- package/mobile/lib/components/Navigation/NavigationItem.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureText.d.ts +5 -0
- package/mobile/lib/components/PictureText/PictureText.js +12 -0
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +9 -0
- package/mobile/lib/components/PictureText/PictureTextContent.js +2 -0
- package/mobile/lib/components/PictureText/PictureTextContent.js.map +1 -0
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +6 -0
- package/mobile/lib/components/Placeholder/Placeholder.js +13 -0
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -0
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +6 -0
- package/mobile/lib/components/Placeholder/PlaceholderContent.js +2 -0
- package/mobile/lib/components/Placeholder/PlaceholderContent.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js +10 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +25 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.js +2 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +5 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +9 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -0
- package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -0
- package/mobile/lib/components/ProductBlock/renderBenefit.js +14 -0
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -0
- package/mobile/lib/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/mobile/lib/components/ProductGallery/ProductGallery.js +19 -0
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +7 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +30 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js +2 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js.map +1 -0
- package/mobile/lib/components/ProductTile/ProductTile.d.ts +5 -0
- package/mobile/lib/components/ProductTile/ProductTile.js +18 -0
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -0
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +12 -0
- package/mobile/lib/components/ProductTile/ProductTileContent.js +2 -0
- package/mobile/lib/components/ProductTile/ProductTileContent.js.map +1 -0
- package/mobile/lib/components/PromoTile/PromoTile.d.ts +5 -0
- package/mobile/lib/components/PromoTile/PromoTile.js +16 -0
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -0
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +8 -0
- package/mobile/lib/components/PromoTile/PromoTileContent.js +2 -0
- package/mobile/lib/components/PromoTile/PromoTileContent.js.map +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/mobile/lib/components/StepsBlock/StepsBlock.js +22 -0
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +30 -0
- package/mobile/lib/components/StepsBlock/StepsBlockContent.js +2 -0
- package/mobile/lib/components/StepsBlock/StepsBlockContent.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js +23 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +6 -0
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -0
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +59 -0
- package/mobile/lib/components/TariffsTable/TariffsTableContent.js +2 -0
- package/mobile/lib/components/TariffsTable/TariffsTableContent.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +8 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +11 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -0
- package/mobile/lib/components/TariffsTable/constants.d.ts +4 -0
- package/mobile/lib/components/TariffsTable/constants.js +5 -0
- package/mobile/lib/components/TariffsTable/constants.js.map +1 -0
- package/mobile/lib/components/TextBlock/TextBlock.d.ts +5 -0
- package/mobile/lib/components/TextBlock/TextBlock.js +38 -0
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -0
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +24 -0
- package/mobile/lib/components/TextBlock/TextBlockContent.js +2 -0
- package/mobile/lib/components/TextBlock/TextBlockContent.js.map +1 -0
- package/mobile/lib/components/Tile/Tile.d.ts +6 -0
- package/mobile/lib/components/Tile/Tile.js +37 -0
- package/mobile/lib/components/Tile/Tile.js.map +1 -0
- package/mobile/lib/components/Tile/TileContent.d.ts +5 -0
- package/mobile/lib/components/Tile/TileContent.js +2 -0
- package/mobile/lib/components/Tile/TileContent.js.map +1 -0
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +10 -0
- package/mobile/lib/content-page-repository/ContentPageRepository.js +50 -0
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -0
- package/mobile/lib/content-page-repository/TransformationOptions.d.ts +4 -0
- package/mobile/lib/content-page-repository/TransformationOptions.js +2 -0
- package/mobile/lib/content-page-repository/TransformationOptions.js.map +1 -0
- package/mobile/lib/content-page-repository/index.d.ts +2 -0
- package/mobile/lib/content-page-repository/index.js +3 -0
- package/mobile/lib/content-page-repository/index.js.map +1 -0
- package/mobile/lib/content-page-repository/mapJSON.d.ts +1 -0
- package/mobile/lib/content-page-repository/mapJSON.js +21 -0
- package/mobile/lib/content-page-repository/mapJSON.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +3 -0
- package/mobile/lib/content-page-repository/transformContentPage.js +24 -0
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -0
- package/mobile/lib/content-page-repository/transformMarkdown.d.ts +1 -0
- package/mobile/lib/content-page-repository/transformMarkdown.js +10 -0
- package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -0
- package/mobile/lib/content-page-repository/transformPicture.d.ts +3 -0
- package/mobile/lib/content-page-repository/transformPicture.js +44 -0
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -0
- package/mobile/lib/hooks/useComparisonTableScroll.d.ts +12 -0
- package/mobile/lib/hooks/useComparisonTableScroll.js +9 -0
- package/mobile/lib/hooks/useComparisonTableScroll.js.map +1 -0
- package/mobile/lib/hooks/useCreditCalculatorData.d.ts +3 -0
- package/mobile/lib/hooks/useCreditCalculatorData.js +12 -0
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -0
- package/mobile/lib/hooks/useLink.d.ts +15 -0
- package/mobile/lib/hooks/useLink.js +20 -0
- package/mobile/lib/hooks/useLink.js.map +1 -0
- package/mobile/lib/index.d.ts +19 -0
- package/mobile/lib/index.js +13 -0
- package/mobile/lib/index.js.map +1 -0
- package/mobile/lib/model/BgColorVersion.d.ts +8 -0
- package/mobile/lib/model/BgColorVersion.js +2 -0
- package/mobile/lib/model/BgColorVersion.js.map +1 -0
- package/mobile/lib/model/BlockVersion.d.ts +5 -0
- package/mobile/lib/model/BlockVersion.js +2 -0
- package/mobile/lib/model/BlockVersion.js.map +1 -0
- package/mobile/lib/model/ButtonVersion.d.ts +6 -0
- package/mobile/lib/model/ButtonVersion.js +2 -0
- package/mobile/lib/model/ButtonVersion.js.map +1 -0
- package/mobile/lib/model/GalleryVersion.d.ts +1 -0
- package/mobile/lib/model/GalleryVersion.js +2 -0
- package/mobile/lib/model/GalleryVersion.js.map +1 -0
- package/mobile/lib/model/LinkProps.d.ts +22 -0
- package/mobile/lib/model/LinkProps.js +2 -0
- package/mobile/lib/model/LinkProps.js.map +1 -0
- package/mobile/lib/model/Picture.d.ts +29 -0
- package/mobile/lib/model/Picture.js +2 -0
- package/mobile/lib/model/Picture.js.map +1 -0
- package/mobile/lib/model/SitemapProps.d.ts +13 -0
- package/mobile/lib/model/SitemapProps.js +2 -0
- package/mobile/lib/model/SitemapProps.js.map +1 -0
- package/mobile/lib/model/SizeVersion.d.ts +8 -0
- package/mobile/lib/model/SizeVersion.js +2 -0
- package/mobile/lib/model/SizeVersion.js.map +1 -0
- package/mobile/lib/model/TableVersion.d.ts +1 -0
- package/mobile/lib/model/TableVersion.js +2 -0
- package/mobile/lib/model/TableVersion.js.map +1 -0
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +13 -0
- package/mobile/lib/services/sitemap/SitemapProps.js +2 -0
- package/mobile/lib/services/sitemap/SitemapProps.js.map +1 -0
- package/mobile/lib/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/mobile/lib/services/sitemap/findActiveSubItem.js +10 -0
- package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -0
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +4 -0
- package/mobile/lib/services/sitemap/isHrefActive.js +6 -0
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -0
- package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -0
- package/mobile/lib/services/sitemap/isSubItemActive.js +3 -0
- package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -0
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -0
- package/mobile/lib/services/sitemap/isTopItemActive.js +4 -0
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -0
- package/mobile/lib/services/sitemap/mergeTopItems.d.ts +2 -0
- package/mobile/lib/services/sitemap/mergeTopItems.js +5 -0
- package/mobile/lib/services/sitemap/mergeTopItems.js.map +1 -0
- package/mobile/lib/services/sitemap/useSitemap.d.ts +3 -0
- package/mobile/lib/services/sitemap/useSitemap.js +13 -0
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -0
- package/mobile/lib/types.d.ts +51 -0
- package/mobile/lib/types.js +2 -0
- package/mobile/lib/types.js.map +1 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +2 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +22 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +21 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js +2 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js.map +1 -0
- package/mobile/lib/ui-kit/Breadcrumb.d.ts +6 -0
- package/mobile/lib/ui-kit/Breadcrumb.js +11 -0
- package/mobile/lib/ui-kit/Breadcrumb.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.js +20 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -0
- package/mobile/lib/ui-kit/Button/Button.d.ts +6 -0
- package/mobile/lib/ui-kit/Button/Button.js +26 -0
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +30 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.js +2 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.js.map +1 -0
- package/mobile/lib/ui-kit/Button/LikeButton.d.ts +6 -0
- package/mobile/lib/ui-kit/Button/LikeButton.js +13 -0
- package/mobile/lib/ui-kit/Button/LikeButton.js.map +1 -0
- package/mobile/lib/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +15 -0
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -0
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +6 -0
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.js +2 -0
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.js.map +1 -0
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +21 -0
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/Icon.d.ts +2 -0
- package/mobile/lib/ui-kit/Icon/Icon.js +11 -0
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +159 -0
- package/mobile/lib/ui-kit/Icon/IconProps.js +76 -0
- package/mobile/lib/ui-kit/Icon/IconProps.js.map +1 -0
- package/mobile/lib/ui-kit/Img.d.ts +7 -0
- package/mobile/lib/ui-kit/Img.js +15 -0
- package/mobile/lib/ui-kit/Img.js.map +1 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js +25 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -0
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +10 -0
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.js +2 -0
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.js.map +1 -0
- package/mobile/lib/ui-kit/Logo/Logo.d.ts +8 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +22 -0
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -0
- package/mobile/lib/ui-kit/SVG.d.ts +20 -0
- package/mobile/lib/ui-kit/SVG.js +6 -0
- package/mobile/lib/ui-kit/SVG.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +12 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -0
- package/mobile/lib/ui-kit/Title/Title.d.ts +3 -0
- package/mobile/lib/ui-kit/Title/Title.js +16 -0
- package/mobile/lib/ui-kit/Title/Title.js.map +1 -0
- package/mobile/lib/ui-kit/Title/TitleProps.d.ts +4 -0
- package/mobile/lib/ui-kit/Title/TitleProps.js +2 -0
- package/mobile/lib/ui-kit/Title/TitleProps.js.map +1 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +13 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.js +22 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -0
- package/mobile/lib/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/mobile/lib/utils/addSpacesBetweenNumbers.js +2 -0
- package/mobile/lib/utils/addSpacesBetweenNumbers.js.map +1 -0
- package/mobile/lib/utils/adjustHref.d.ts +4 -0
- package/mobile/lib/utils/adjustHref.js +18 -0
- package/mobile/lib/utils/adjustHref.js.map +1 -0
- package/mobile/lib/utils/clamp.d.ts +1 -0
- package/mobile/lib/utils/clamp.js +2 -0
- package/mobile/lib/utils/clamp.js.map +1 -0
- package/mobile/lib/utils/getAccordionItems.d.ts +1 -0
- package/mobile/lib/utils/getAccordionItems.js +10 -0
- package/mobile/lib/utils/getAccordionItems.js.map +1 -0
- package/mobile/lib/utils/getColSpan.d.ts +1 -0
- package/mobile/lib/utils/getColSpan.js +6 -0
- package/mobile/lib/utils/getColSpan.js.map +1 -0
- package/mobile/lib/utils/getGeolocation.d.ts +1 -0
- package/mobile/lib/utils/getGeolocation.js +2 -0
- package/mobile/lib/utils/getGeolocation.js.map +1 -0
- package/mobile/lib/utils/joinList.d.ts +1 -0
- package/mobile/lib/utils/joinList.js +4 -0
- package/mobile/lib/utils/joinList.js.map +1 -0
- package/mobile/lib/utils/maxBy.d.ts +2 -0
- package/mobile/lib/utils/maxBy.js +3 -0
- package/mobile/lib/utils/maxBy.js.map +1 -0
- package/mobile/lib/utils/url.d.ts +3 -0
- package/mobile/lib/utils/url.js +13 -0
- package/mobile/lib/utils/url.js.map +1 -0
- package/mobile/lib/utils/withoutMobilePath.d.ts +2 -0
- package/mobile/lib/utils/withoutMobilePath.js +3 -0
- package/mobile/lib/utils/withoutMobilePath.js.map +1 -0
- package/mobile/src/ProjectSettings.ts +43 -0
- package/mobile/src/api/DaDataAPI.ts +34 -0
- package/mobile/src/api/LikeAPI.ts +145 -0
- package/mobile/src/common.css +141 -0
- package/mobile/src/components/Accordion/Accordion.example.json +50 -0
- package/mobile/src/components/Accordion/Accordion.tsx +38 -0
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +11 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +91 -0
- package/mobile/src/components/Accordion/AccordionItem.tsx +39 -0
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +28 -0
- package/mobile/src/components/Accordion/utils/isActiveHandler.ts +24 -0
- package/mobile/src/components/BaseTile/BaseTile.tsx +53 -0
- package/mobile/src/components/BaseTile/BaseTileInner.tsx +31 -0
- package/mobile/src/components/BaseTile/BaseTileProps.ts +50 -0
- package/mobile/src/components/BaseTile/getTitleSizeByClassName.ts +11 -0
- package/mobile/src/components/BaseTile/renderButton.tsx +20 -0
- package/mobile/src/components/BaseTile/renderItems.tsx +12 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +13 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +43 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +25 -0
- package/mobile/src/components/BlockContent.ts +43 -0
- package/mobile/src/components/Blocks.ts +21 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +84 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +129 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +64 -0
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +50 -0
- package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +26 -0
- package/mobile/src/components/ComparisonTable/TableCell.tsx +43 -0
- package/mobile/src/components/ComparisonTable/TableRow.tsx +44 -0
- package/mobile/src/components/ComparisonTable/TableRowContainer.tsx +7 -0
- package/mobile/src/components/ComparisonTable/constants.ts +6 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +452 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +125 -0
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +37 -0
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +26 -0
- package/mobile/src/components/ContentPage/toMobilePage.ts +38 -0
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +154 -0
- package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +21 -0
- package/mobile/src/components/CreditCalculator/constants.ts +8 -0
- package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +16 -0
- package/mobile/src/components/CreditCalculator/getCreditRate.ts +18 -0
- package/mobile/src/components/CreditCalculator/getCreditTermYears.spec.ts +10 -0
- package/mobile/src/components/CreditCalculator/getCreditTermYears.ts +15 -0
- package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +32 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +80 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +7 -0
- package/mobile/src/components/Footer/Contacts.tsx +73 -0
- package/mobile/src/components/Footer/Footer.tsx +66 -0
- package/mobile/src/components/Footer/FooterContent.ts +55 -0
- package/mobile/src/components/Footer/FooterLink.ts +6 -0
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +52 -0
- package/mobile/src/components/Footer/MediaButton.tsx +43 -0
- package/mobile/src/components/Footer/Sitemap.tsx +59 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +21 -0
- package/mobile/src/components/Footer/TextInformation.tsx +50 -0
- package/mobile/src/components/Gallery/Gallery.example.json +58 -0
- package/mobile/src/components/Gallery/Gallery.tsx +69 -0
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +53 -0
- package/mobile/src/components/Gallery/GalleryContainer.tsx +59 -0
- package/mobile/src/components/Gallery/GalleryContent.ts +34 -0
- package/mobile/src/components/Gallery/GalleryInner.tsx +57 -0
- package/mobile/src/components/Gallery/GalleryProps.ts +4 -0
- package/mobile/src/components/Gallery/constants.ts +22 -0
- package/mobile/src/components/Header/Header.tsx +73 -0
- package/mobile/src/components/Header/HeaderBurger.tsx +45 -0
- package/mobile/src/components/Header/HeaderContent.ts +30 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +69 -0
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +19 -0
- package/mobile/src/components/Header/HeaderTop.tsx +28 -0
- package/mobile/src/components/Headline/Headline.example.json +6 -0
- package/mobile/src/components/Headline/Headline.tsx +30 -0
- package/mobile/src/components/Headline/HeadlineContent.ts +11 -0
- package/mobile/src/components/LikeControl/LikeControl.tsx +23 -0
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +26 -0
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +82 -0
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +26 -0
- package/mobile/src/components/MiniGallery/MiniGallery.example.json +50 -0
- package/mobile/src/components/MiniGallery/MiniGallery.tsx +10 -0
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +6 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +22 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +31 -0
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +22 -0
- package/mobile/src/components/Navigation/Navigation.tsx +39 -0
- package/mobile/src/components/Navigation/NavigationContent.ts +11 -0
- package/mobile/src/components/Navigation/NavigationItem.tsx +17 -0
- package/mobile/src/components/PictureText/PictureText.example.json +20 -0
- package/mobile/src/components/PictureText/PictureText.tsx +47 -0
- package/mobile/src/components/PictureText/PictureTextContent.ts +10 -0
- package/mobile/src/components/Placeholder/Placeholder.tsx +30 -0
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +6 -0
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +17 -0
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +18 -0
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +28 -0
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +49 -0
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +35 -0
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +21 -0
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +56 -0
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +22 -0
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +32 -0
- package/mobile/src/components/ProductTile/ProductTile.example.json +30 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +44 -0
- package/mobile/src/components/ProductTile/ProductTileContent.ts +13 -0
- package/mobile/src/components/PromoTile/PromoTile.example.json +13 -0
- package/mobile/src/components/PromoTile/PromoTile.tsx +43 -0
- package/mobile/src/components/PromoTile/PromoTileContent.ts +9 -0
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +20 -0
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +93 -0
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +33 -0
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +83 -0
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +74 -0
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +61 -0
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +65 -0
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +51 -0
- package/mobile/src/components/TariffsTable/constants.ts +4 -0
- package/mobile/src/components/TextBlock/TextBlock.example.json +13 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +76 -0
- package/mobile/src/components/TextBlock/TextBlockContent.ts +27 -0
- package/mobile/src/components/Tile/Tile.example.json +21 -0
- package/mobile/src/components/Tile/Tile.tsx +52 -0
- package/mobile/src/components/Tile/TileContent.ts +6 -0
- package/mobile/src/content-page-repository/ContentPageRepository.ts +63 -0
- package/mobile/src/content-page-repository/TransformationOptions.ts +4 -0
- package/mobile/src/content-page-repository/index.ts +2 -0
- package/mobile/src/content-page-repository/mapJSON.spec.ts +28 -0
- package/mobile/src/content-page-repository/mapJSON.ts +23 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +33 -0
- package/mobile/src/content-page-repository/transformMarkdown.ts +10 -0
- package/mobile/src/content-page-repository/transformPicture.ts +66 -0
- package/mobile/src/hooks/useComparisonTableScroll.ts +21 -0
- package/mobile/src/hooks/useCreditCalculatorData.ts +23 -0
- package/mobile/src/hooks/useLink.ts +29 -0
- package/mobile/src/icons/ActualBalanceIcon.svg +187 -0
- package/mobile/src/icons/AppleIcon.svg +1 -0
- package/mobile/src/icons/AtmIcon.svg +7 -0
- package/mobile/src/icons/BankIcon.svg +11 -0
- package/mobile/src/icons/BurgerIcon.svg +6 -0
- package/mobile/src/icons/BurgerIconWhite.svg +6 -0
- package/mobile/src/icons/Calendar2Icon.svg +1 -0
- package/mobile/src/icons/CalendarCircleIcon.svg +1 -0
- package/mobile/src/icons/CalendarIcon.svg +17 -0
- package/mobile/src/icons/CalendarTickIcon.svg +1 -0
- package/mobile/src/icons/CalendarWhiteIcon.svg +17 -0
- package/mobile/src/icons/CardIcon.svg +1 -0
- package/mobile/src/icons/CardPosIcon.svg +1 -0
- package/mobile/src/icons/CardTickIcon.svg +1 -0
- package/mobile/src/icons/CardWithGemIcon.svg +1 -0
- package/mobile/src/icons/ChartSquareIcon.svg +1 -0
- package/mobile/src/icons/ClockIcon.svg +209 -0
- package/mobile/src/icons/CloseIcon.svg +6 -0
- package/mobile/src/icons/ComfortableCompIcon.svg +374 -0
- package/mobile/src/icons/CreditCardsIcon.svg +1 -0
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -0
- package/mobile/src/icons/DocIcon.svg +5 -0
- package/mobile/src/icons/DocumentTextIcon.svg +6 -0
- package/mobile/src/icons/DollarIcon.svg +10 -0
- package/mobile/src/icons/EarthIcon.svg +1 -0
- package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -0
- package/mobile/src/icons/EmptyWalletIcon.svg +17 -0
- package/mobile/src/icons/EmptyWalletWhiteIcon.svg +16 -0
- package/mobile/src/icons/EuroIcon.svg +10 -0
- package/mobile/src/icons/GeolocationIcon.svg +4 -0
- package/mobile/src/icons/GlassIcon.svg +1 -0
- package/mobile/src/icons/GlobalIcon.svg +1 -0
- package/mobile/src/icons/GridIcon.svg +4 -0
- package/mobile/src/icons/GridIconWhite.svg +4 -0
- package/mobile/src/icons/InterestGrowthIcon.svg +1 -0
- package/mobile/src/icons/InterestIcon.svg +1 -0
- package/mobile/src/icons/JCBIcon.svg +1 -0
- package/mobile/src/icons/LoupeIcon.svg +9 -0
- package/mobile/src/icons/MasterCardIcon.svg +1 -0
- package/mobile/src/icons/MinusIcon.svg +1 -0
- package/mobile/src/icons/MirIcon.svg +1 -0
- package/mobile/src/icons/MoneyIcon.svg +1 -0
- package/mobile/src/icons/MoneyInsuranceIcon.svg +1 -0
- package/mobile/src/icons/MonitorMobileIcon.svg +1 -0
- package/mobile/src/icons/NewDocIcon.svg +251 -0
- package/mobile/src/icons/OfficeIcon.svg +1 -0
- package/mobile/src/icons/OkIcon.svg +5 -0
- package/mobile/src/icons/PassSendIcon.svg +238 -0
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -0
- package/mobile/src/icons/PercentageSquareIcon.svg +16 -0
- package/mobile/src/icons/PercentageSquareWhiteIcon.svg +16 -0
- package/mobile/src/icons/PersonalCardIcon.svg +1 -0
- package/mobile/src/icons/PlayMarketIcon.svg +1 -0
- package/mobile/src/icons/PlusIcon.svg +1 -0
- package/mobile/src/icons/Profile2UserIcon.svg +1 -0
- package/mobile/src/icons/ProfileIcon.svg +16 -0
- package/mobile/src/icons/RoundRubleIcon.svg +1 -0
- package/mobile/src/icons/SafeIcon.svg +1 -0
- package/mobile/src/icons/ShieldTickIcon.svg +1 -0
- package/mobile/src/icons/SignDocsIcon.svg +288 -0
- package/mobile/src/icons/SmallClockIcon.svg +1 -0
- package/mobile/src/icons/TelegramIcon.svg +5 -0
- package/mobile/src/icons/UnionPayIcon.svg +1 -0
- package/mobile/src/icons/UserTickIcon.svg +1 -0
- package/mobile/src/icons/VKIcon.svg +7 -0
- package/mobile/src/icons/VisaIcon.svg +1 -0
- package/mobile/src/icons/WalletAdd2Icon.svg +1 -0
- package/mobile/src/icons/WalletAddIcon.svg +1 -0
- package/mobile/src/icons/WalletIcon.svg +1 -0
- package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -0
- package/mobile/src/index.ts +34 -0
- package/mobile/src/model/BgColorVersion.ts +8 -0
- package/mobile/src/model/BlockVersion.ts +5 -0
- package/mobile/src/model/ButtonVersion.ts +6 -0
- package/mobile/src/model/GalleryVersion.ts +1 -0
- package/mobile/src/model/LinkProps.ts +23 -0
- package/mobile/src/model/Picture.ts +31 -0
- package/mobile/src/model/SitemapProps.ts +15 -0
- package/mobile/src/model/SizeVersion.ts +8 -0
- package/mobile/src/model/TableVersion.ts +1 -0
- package/mobile/src/services/sitemap/SitemapProps.ts +15 -0
- package/mobile/src/services/sitemap/findActiveSubItem.ts +14 -0
- package/mobile/src/services/sitemap/isHrefActive.ts +13 -0
- package/mobile/src/services/sitemap/isSubItemActive.ts +8 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +9 -0
- package/mobile/src/services/sitemap/mergeTopItems.spec.ts +20 -0
- package/mobile/src/services/sitemap/mergeTopItems.ts +12 -0
- package/mobile/src/services/sitemap/useSitemap.ts +17 -0
- package/mobile/src/setup-fixture.ts +83 -0
- package/mobile/src/types.ts +61 -0
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +36 -0
- package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +23 -0
- package/mobile/src/ui-kit/Breadcrumb.tsx +21 -0
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +32 -0
- package/mobile/src/ui-kit/Button/Button.tsx +97 -0
- package/mobile/src/ui-kit/Button/ButtonProps.ts +33 -0
- package/mobile/src/ui-kit/Button/LikeButton.tsx +41 -0
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +40 -0
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +6 -0
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +43 -0
- package/mobile/src/ui-kit/Icon/Icon.tsx +30 -0
- package/mobile/src/ui-kit/Icon/IconProps.ts +161 -0
- package/mobile/src/ui-kit/Img.tsx +36 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +65 -0
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +10 -0
- package/mobile/src/ui-kit/Logo/Logo.tsx +50 -0
- package/mobile/src/ui-kit/SVG.tsx +41 -0
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +46 -0
- package/mobile/src/ui-kit/Title/Title.tsx +22 -0
- package/mobile/src/ui-kit/Title/TitleProps.ts +5 -0
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +64 -0
- package/mobile/src/utils/addSpacesBetweenNumbers.ts +2 -0
- package/mobile/src/utils/adjustHref.spec.ts +25 -0
- package/mobile/src/utils/adjustHref.ts +24 -0
- package/mobile/src/utils/clamp.ts +2 -0
- package/mobile/src/utils/getAccordionItems.ts +10 -0
- package/mobile/src/utils/getColSpan.ts +5 -0
- package/mobile/src/utils/getGeolocation.ts +4 -0
- package/mobile/src/utils/joinList.ts +7 -0
- package/mobile/src/utils/maxBy.spec.ts +11 -0
- package/mobile/src/utils/maxBy.ts +7 -0
- package/mobile/src/utils/url.spec.ts +17 -0
- package/mobile/src/utils/url.ts +15 -0
- package/mobile/src/utils/withoutMobilePath.ts +3 -0
- package/package.json +4 -8
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +65 -0
- package/src/components/Accordion/Accordion.fixture.tsx +1 -0
- package/src/components/Accordion/Accordion.mobile.tsx +38 -0
- package/src/components/Accordion/AccordionContent.ts +12 -0
- package/src/components/Accordion/AccordionItem.mobile.tsx +39 -0
- package/src/components/Accordion/AccordionItem.tsx +9 -46
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +28 -0
- package/src/components/Accordion/AccordionItemInner.tsx +28 -0
- package/src/components/Accordion/utils/isActiveHandler.ts +24 -0
- package/src/components/BaseTile/BaseTile.mobile.tsx +53 -0
- package/src/components/BaseTile/BaseTile.tsx +12 -74
- package/src/components/BaseTile/BaseTileInner.mobile.tsx +31 -0
- package/src/components/BaseTile/BaseTileInner.tsx +37 -0
- package/src/components/BaseTile/BaseTileProps.ts +9 -3
- package/src/components/BaseTile/getTitleSizeByClassName.ts +11 -0
- package/src/components/BaseTile/renderButton.mobile.tsx +20 -0
- package/src/components/BaseTile/renderButton.tsx +13 -0
- package/src/components/BaseTile/renderItems.mobile.tsx +12 -0
- package/src/components/BaseTile/renderItems.tsx +12 -0
- package/src/components/Blocks.mobile.ts +2 -12
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +2 -2
- package/src/components/ContentPage/ContentPage.page.mobile.json +452 -0
- package/src/components/Footer/Footer.fixture.mobile.tsx +285 -0
- package/src/components/Footer/Footer.mobile.tsx +60 -6
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/FooterContent.ts +13 -0
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +52 -0
- package/src/components/Footer/HorizontalNavigation.tsx +29 -24
- package/src/components/Footer/MediaButton.tsx +43 -0
- package/src/components/Footer/SocialMedia.mobile.tsx +21 -0
- package/src/components/Footer/SocialMedia.tsx +1 -43
- package/src/components/Footer/TextInformation.mobile.tsx +50 -0
- package/src/components/Footer/TextInformation.tsx +1 -1
- package/src/components/Header/Header.fixture.mobile.tsx +209 -0
- package/src/components/Header/Header.mobile.tsx +73 -0
- package/src/components/Header/HeaderBurger.tsx +45 -0
- package/src/components/Header/HeaderContent.ts +11 -1
- package/src/components/Header/HeaderTop.tsx +28 -0
- package/src/components/Headline/Headline.fixture.mobile.tsx +67 -0
- package/src/components/Headline/Headline.fixture.tsx +54 -0
- package/src/components/Headline/Headline.mobile.tsx +30 -0
- package/src/components/Headline/Headline.tsx +3 -3
- package/src/components/Headline/HeadlineContent.ts +2 -1
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +0 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.example.json +3 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +13 -0
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +30 -32
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +31 -0
- package/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +59 -0
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +3 -5
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +49 -0
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -41
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +35 -0
- package/src/components/ProductBlock/renderBenefit.tsx +41 -0
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +127 -0
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +5 -4
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +56 -0
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +22 -0
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +27 -0
- package/src/components/ProductGallery/ProductGalleryContent.ts +2 -1
- package/src/components/StepsBlock/StepsBlock.example.json +1 -0
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +39 -18
- package/src/components/StepsBlock/StepsBlockContent.ts +1 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +103 -0
- package/src/components/TextBlock/TextBlock.mobile.tsx +76 -0
- package/src/components/TextBlock/TextBlock.tsx +3 -3
- package/src/components/TextBlock/TextBlockContent.ts +1 -0
- package/src/components/Tile/Tile.tsx +1 -1
- package/src/content-page-repository/transformPicture.ts +6 -1
- package/src/icons/AtmIcon.svg +7 -0
- package/src/icons/BankIcon.svg +11 -0
- package/src/icons/BurgerIcon.svg +6 -0
- package/src/icons/BurgerIconWhite.svg +6 -0
- package/src/icons/CloseIcon.svg +6 -0
- package/src/icons/GeolocationIcon.svg +4 -0
- package/src/model/Picture.ts +1 -0
- package/src/ui-kit/BlockItem/BlockItem.tsx +2 -2
- package/src/ui-kit/Breadcrumb.tsx +4 -9
- package/src/ui-kit/Button/Button.fixture.mobile.tsx +16 -0
- package/src/ui-kit/Button/Button.fixture.tsx +40 -10
- package/src/ui-kit/Button/Button.mobile.tsx +97 -0
- package/src/ui-kit/Button/Button.tsx +12 -9
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +43 -0
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +3 -5
- package/src/ui-kit/Icon/IconProps.ts +12 -0
- package/src/ui-kit/Img.mobile.tsx +36 -0
- package/src/ui-kit/Img.tsx +3 -2
- package/src/ui-kit/Logo/Logo.mobile.tsx +50 -0
- package/src/ui-kit/Logo/Logo.tsx +7 -4
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +46 -0
- package/src/ui-kit/SearchBar/SearchBar.tsx +46 -0
- package/src/ui-kit/{SearchBar.tsx → SearchBar.mobile.tsx} +2 -2
- package/src/utils/getAccordionItems.ts +10 -0
- package/dist/ui-kit/SearchBar.js.map +0 -1
- package/lib/ui-kit/SearchBar.js.map +0 -1
|
@@ -0,0 +1,978 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniMobileBlocks = {}));
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
|
+
|
|
7
|
+
const setup = (_jsx, _jsxs) => {
|
|
8
|
+
setup._jsx = _jsx;
|
|
9
|
+
setup._jsxs = _jsxs || _jsx;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
setup.vue = _ => {
|
|
13
|
+
const adapter = (type, { children, dangerouslySetInnerHTML, ...rest } = {}) => {
|
|
14
|
+
const props = Object.assign({}, rest, dangerouslySetInnerHTML ? { innerHTML: dangerouslySetInnerHTML.__html } : {});
|
|
15
|
+
const isComponent = typeof type !== 'string';
|
|
16
|
+
const lazyChildren = isComponent ? () => children : children; // Vue optimization
|
|
17
|
+
return _(type, props, lazyChildren);
|
|
18
|
+
};
|
|
19
|
+
setup(adapter);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const jsx = (...args) => setup._jsx(...args);
|
|
23
|
+
const jsxs = (...args) => setup._jsxs(...args);
|
|
24
|
+
|
|
25
|
+
const JSX = Component => {
|
|
26
|
+
if (Component._tmpl) return Component._tmpl;
|
|
27
|
+
|
|
28
|
+
Component._tmpl = function JSXTmpl(rawProps, context) {
|
|
29
|
+
const { children: rawChildren, ...props } = rawProps || {};
|
|
30
|
+
|
|
31
|
+
const defaultSlot = context?.slots?.default; // Vue
|
|
32
|
+
const children = rawChildren || (defaultSlot && defaultSlot());
|
|
33
|
+
return Component(Object.assign(props, children && { children }), context);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
Component._tmpl.inheritAttrs = false; // Vue
|
|
37
|
+
|
|
38
|
+
return Component._tmpl;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const getGeolocation = async () => new Promise((resolve) => navigator.geolocation.getCurrentPosition(({ coords }) => resolve(coords)));
|
|
42
|
+
|
|
43
|
+
function DaDataAPI(baseURL = '') {
|
|
44
|
+
async function getFetcherAddress() {
|
|
45
|
+
if (!('geolocation' in navigator)) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
try {
|
|
49
|
+
const coords = await getGeolocation();
|
|
50
|
+
const response = await fetch(`${baseURL}/geolocate`, {
|
|
51
|
+
method: 'POST',
|
|
52
|
+
mode: 'cors',
|
|
53
|
+
body: JSON.stringify({
|
|
54
|
+
lat: coords.latitude,
|
|
55
|
+
lon: coords.longitude,
|
|
56
|
+
count: 1,
|
|
57
|
+
}),
|
|
58
|
+
});
|
|
59
|
+
const data = (await response.json());
|
|
60
|
+
return data?.suggestions?.[0]?.data?.city;
|
|
61
|
+
}
|
|
62
|
+
catch (e) {
|
|
63
|
+
console.error(e);
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
getFetcherAddress,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const AUTH_PREFIX = 'guest';
|
|
73
|
+
const STORAGE_KEY = 'likesToken';
|
|
74
|
+
// eslint-disable-next-line max-lines-per-function
|
|
75
|
+
function LikeAPI(projectId, baseURL = '') {
|
|
76
|
+
async function getLikeCount(...nodeIds) {
|
|
77
|
+
if (!nodeIds.length) {
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
const { token: Authorization } = await auth();
|
|
81
|
+
try {
|
|
82
|
+
const response = await fetch(`${baseURL}/assist/v1/public/projects/${projectId}/nodes/likes`, {
|
|
83
|
+
method: 'POST',
|
|
84
|
+
mode: 'cors',
|
|
85
|
+
headers: { 'Content-Type': 'application/json', Authorization },
|
|
86
|
+
body: JSON.stringify({
|
|
87
|
+
node_ids: nodeIds,
|
|
88
|
+
}),
|
|
89
|
+
});
|
|
90
|
+
const { likes } = await response.json();
|
|
91
|
+
return likes || [];
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
console.error(e);
|
|
95
|
+
return [];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
async function like(nodeId) {
|
|
99
|
+
if (!nodeId) {
|
|
100
|
+
return 0;
|
|
101
|
+
}
|
|
102
|
+
const { token: Authorization, name } = await auth();
|
|
103
|
+
try {
|
|
104
|
+
const response = await fetch(`${baseURL}/assist/v1/public/projects/${projectId}/nodes/like`, {
|
|
105
|
+
method: 'POST',
|
|
106
|
+
mode: 'cors',
|
|
107
|
+
headers: {
|
|
108
|
+
'Content-Type': 'application/json',
|
|
109
|
+
Authorization,
|
|
110
|
+
UserID: name,
|
|
111
|
+
},
|
|
112
|
+
body: JSON.stringify({
|
|
113
|
+
node_id: nodeId,
|
|
114
|
+
user_name: name,
|
|
115
|
+
}),
|
|
116
|
+
});
|
|
117
|
+
const { likes } = await response.json();
|
|
118
|
+
return likes || 0;
|
|
119
|
+
}
|
|
120
|
+
catch (e) {
|
|
121
|
+
console.error(e);
|
|
122
|
+
return 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
async function dislike(nodeId) {
|
|
126
|
+
if (!nodeId) {
|
|
127
|
+
return 0;
|
|
128
|
+
}
|
|
129
|
+
const { token: Authorization, name } = await auth();
|
|
130
|
+
try {
|
|
131
|
+
const response = await fetch(`${baseURL}/assist/v1/public/projects/${projectId}/nodes/unlike`, {
|
|
132
|
+
method: 'POST',
|
|
133
|
+
mode: 'cors',
|
|
134
|
+
headers: {
|
|
135
|
+
'Content-Type': 'application/json',
|
|
136
|
+
Authorization,
|
|
137
|
+
UserID: name,
|
|
138
|
+
},
|
|
139
|
+
body: JSON.stringify({
|
|
140
|
+
node_id: nodeId,
|
|
141
|
+
user_name: name,
|
|
142
|
+
}),
|
|
143
|
+
});
|
|
144
|
+
const { likes } = await response.json();
|
|
145
|
+
return likes || 0;
|
|
146
|
+
}
|
|
147
|
+
catch (e) {
|
|
148
|
+
console.error(e);
|
|
149
|
+
return 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
async function auth() {
|
|
153
|
+
try {
|
|
154
|
+
const userData = JSON.parse(globalThis.localStorage.getItem(STORAGE_KEY) || '');
|
|
155
|
+
if (userData?.token) {
|
|
156
|
+
return userData;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
// do nothing
|
|
161
|
+
}
|
|
162
|
+
try {
|
|
163
|
+
const response = await fetch(`${baseURL}/assist/v1/public/auth`, {
|
|
164
|
+
method: 'POST',
|
|
165
|
+
mode: 'cors',
|
|
166
|
+
headers: {
|
|
167
|
+
'Content-Type': 'application/json',
|
|
168
|
+
},
|
|
169
|
+
body: JSON.stringify({
|
|
170
|
+
prefix: AUTH_PREFIX,
|
|
171
|
+
}),
|
|
172
|
+
});
|
|
173
|
+
const { token, name } = await response.json();
|
|
174
|
+
globalThis.localStorage.setItem(STORAGE_KEY, JSON.stringify({ token, name }));
|
|
175
|
+
return { token, name };
|
|
176
|
+
}
|
|
177
|
+
catch (e) {
|
|
178
|
+
console.error(e);
|
|
179
|
+
return {};
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
getLikeCount,
|
|
184
|
+
like,
|
|
185
|
+
dislike,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const projectSettings = new (class {
|
|
190
|
+
_ = {
|
|
191
|
+
PROD_BRANCH: 'master',
|
|
192
|
+
FORCED_DRAFT_FLOW: false,
|
|
193
|
+
};
|
|
194
|
+
setup(_) {
|
|
195
|
+
this._ = _;
|
|
196
|
+
}
|
|
197
|
+
get TEST_BRANCH() {
|
|
198
|
+
return this._.TEST_BRANCH;
|
|
199
|
+
}
|
|
200
|
+
get RC_BRANCH() {
|
|
201
|
+
return this._.RC_BRANCH;
|
|
202
|
+
}
|
|
203
|
+
get PROD_BRANCH() {
|
|
204
|
+
return this._.PROD_BRANCH;
|
|
205
|
+
}
|
|
206
|
+
get FORCED_DRAFT_FLOW() {
|
|
207
|
+
return this._.FORCED_DRAFT_FLOW;
|
|
208
|
+
}
|
|
209
|
+
get ENABLE_ASSIST() {
|
|
210
|
+
return this._.ENABLE_ASSIST;
|
|
211
|
+
}
|
|
212
|
+
get SITEMAP() {
|
|
213
|
+
return this._.SITEMAP;
|
|
214
|
+
}
|
|
215
|
+
get CDN() {
|
|
216
|
+
return this._.CDN;
|
|
217
|
+
}
|
|
218
|
+
})();
|
|
219
|
+
|
|
220
|
+
const Icon = JSX(({ className = '', name, alt = `Icon ${name}`, title = alt, asSVG, ...imgProps }) => {
|
|
221
|
+
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
222
|
+
if (asSVG) {
|
|
223
|
+
return (jsxs("svg", { className: className, ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
224
|
+
}
|
|
225
|
+
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
const getColSpan = (className) => {
|
|
229
|
+
const colSpanPrefix = 'col-span-';
|
|
230
|
+
const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
|
|
231
|
+
return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
const SizeTableClass = {
|
|
235
|
+
XL: 'text-m-title',
|
|
236
|
+
L: 'text-m-title',
|
|
237
|
+
M: 'text-m-title-md',
|
|
238
|
+
S: 'text-m-title-xs',
|
|
239
|
+
'2XS': 'text-m-title-xs',
|
|
240
|
+
'3XS': 'text-m-title-xs',
|
|
241
|
+
};
|
|
242
|
+
const Title = JSX(({ size = 'L', className, children, ...rest }) => {
|
|
243
|
+
const Tag = size === 'XL' || size === 'L' ? 'h1' : 'h2';
|
|
244
|
+
return (jsx(Tag, { className: getClasses(SizeTableClass[size], className), ...rest, children: children }));
|
|
245
|
+
});
|
|
246
|
+
const getClasses = (...classes) => classes.filter(Boolean).join(' ');
|
|
247
|
+
|
|
248
|
+
const isURL = (href) => href?.includes('//');
|
|
249
|
+
const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
250
|
+
const getOrigin = (href) => {
|
|
251
|
+
if (!href || !isURL(href)) {
|
|
252
|
+
return undefined;
|
|
253
|
+
}
|
|
254
|
+
const url = href;
|
|
255
|
+
const protoSeparator = '//';
|
|
256
|
+
const endOfProto = url.indexOf(protoSeparator);
|
|
257
|
+
const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
|
|
258
|
+
return endOfOrigin !== -1 ? url.substring(0, endOfOrigin) : url;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
var url = /*#__PURE__*/Object.freeze({
|
|
262
|
+
__proto__: null,
|
|
263
|
+
isURL: isURL,
|
|
264
|
+
withoutQuery: withoutQuery,
|
|
265
|
+
getOrigin: getOrigin
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
const MOBILE_URL_PATH = '/mobile';
|
|
269
|
+
const withoutMobilePath = (href) => (href || '').replace(MOBILE_URL_PATH, '');
|
|
270
|
+
|
|
271
|
+
const adjustHref = (href, router) => {
|
|
272
|
+
if (!href) {
|
|
273
|
+
return href;
|
|
274
|
+
}
|
|
275
|
+
const relativeHref = toRelativeHref(href, router) || '';
|
|
276
|
+
const isMobilePage = router?.pathname.startsWith(MOBILE_URL_PATH);
|
|
277
|
+
return isMobilePage && !isURL(relativeHref) ? `${MOBILE_URL_PATH}${relativeHref}` : relativeHref;
|
|
278
|
+
};
|
|
279
|
+
const toRelativeHref = (href, router) => {
|
|
280
|
+
if (!href) {
|
|
281
|
+
return href;
|
|
282
|
+
}
|
|
283
|
+
const origin = getOrigin(router?.href);
|
|
284
|
+
return origin ? href.replace(origin, '') || '/' : href;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
const defaultHandlerDecorator = (handler) => handler;
|
|
288
|
+
function useLink({ router, handlerDecorator = defaultHandlerDecorator, }, link) {
|
|
289
|
+
const href = adjustHref(link.href, router);
|
|
290
|
+
return {
|
|
291
|
+
...link,
|
|
292
|
+
href,
|
|
293
|
+
ariaLabel: link.text,
|
|
294
|
+
onClick: handlerDecorator((ev) => {
|
|
295
|
+
const isLocalHref = href && !isURL(href);
|
|
296
|
+
const isLocalTarget = !link.target || link.target === '_self';
|
|
297
|
+
if (isLocalHref && isLocalTarget) {
|
|
298
|
+
ev.preventDefault();
|
|
299
|
+
router.push(href);
|
|
300
|
+
}
|
|
301
|
+
}, link),
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const Img = JSX(({ className = '', image: { size, ...image } }) => {
|
|
306
|
+
const style = {
|
|
307
|
+
width: size?.width ? `${size?.width}px` : '100%',
|
|
308
|
+
height: size?.height ? `${size?.height}px` : '100%',
|
|
309
|
+
};
|
|
310
|
+
return (jsxs("picture", { className: className, children: [image.sources?.length
|
|
311
|
+
? image.sources.map(({ src, format }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
312
|
+
: null, jsx("img", { src: image.src, className: `m-auto ${image.className || ''}`, alt: image.alt || image.title, title: image.title, style: style, ...size })] }));
|
|
313
|
+
});
|
|
314
|
+
function formatToMimeType(format) {
|
|
315
|
+
return format ? `image/${String(format)}` : undefined;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
const buttonStyleMap = {
|
|
319
|
+
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
320
|
+
secondary: 'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
|
|
321
|
+
};
|
|
322
|
+
const buttonDisabledStyleMap = {
|
|
323
|
+
primary: 'bg-secondary-dark text-secondary-text',
|
|
324
|
+
secondary: 'bg-secondary-light text-secondary-text',
|
|
325
|
+
};
|
|
326
|
+
const styleButton = 'w-full text-center font-sans select-none';
|
|
327
|
+
const Button = JSX(({ className, text, aboveText, appendLeft, href, target, onClick, children, disabled, rounded, version = 'none', ariaLabel, ...rest }) => {
|
|
328
|
+
const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, rounded: rounded }));
|
|
329
|
+
if (disabled) {
|
|
330
|
+
return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: "-1", className: `inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, children: buttonInner }));
|
|
331
|
+
}
|
|
332
|
+
return (jsx("a", { className: `${styleButton} inline-block cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`, href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: !href ? 'button' : 'link', ...rest, children: buttonInner }));
|
|
333
|
+
});
|
|
334
|
+
const ButtonInner = JSX(({ text, aboveText, appendLeft, rounded }) => {
|
|
335
|
+
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
336
|
+
const buttonInnerClasses = `flex items-center justify-center ${withoutText ? 'h-12 w-12' : `px-9 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`;
|
|
337
|
+
return (jsxs("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button font-medium text-left", children: text })] }))] }));
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
const PADDING_TOP_CLASSES = 'first:mt-0 mt-3';
|
|
341
|
+
function renderButton({ icon, ...button }, i) {
|
|
342
|
+
if (!button?.text)
|
|
343
|
+
return;
|
|
344
|
+
return icon ? (jsx(Button, { className: PADDING_TOP_CLASSES, appendLeft: jsx(Icon, { name: icon, width: "24", height: "24" }), ...button }, String(i))) : (jsx(Button, { className: PADDING_TOP_CLASSES, ...button }, String(i)));
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
|
|
348
|
+
const TEXT_STYLE_MAP = {
|
|
349
|
+
primary: 'text-primary-text',
|
|
350
|
+
secondary: 'text-secondary-text',
|
|
351
|
+
};
|
|
352
|
+
const LIST_STYLE_MAP = {
|
|
353
|
+
primary: 'bg-primary-main',
|
|
354
|
+
secondary: 'bg-secondary-text',
|
|
355
|
+
};
|
|
356
|
+
const BlockItem = JSX(({ className = '', isDotted = true, text, children, version = 'primary', white }) => {
|
|
357
|
+
return (jsxs("div", { className: `font-sans flex items-baseline ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle(version, white) }), jsx("span", { className: white ? 'text-white' : TEXT_STYLE_MAP[version], children: text || children })] }));
|
|
358
|
+
});
|
|
359
|
+
const getListStyle = (version, white) => {
|
|
360
|
+
const color = white ? 'bg-white' : LIST_STYLE_MAP[version];
|
|
361
|
+
const size = version === 'primary'
|
|
362
|
+
? 'w-2 h-2 min-w-2 min-h-2 mt-2'
|
|
363
|
+
: 'w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5';
|
|
364
|
+
return `${LIST_STYLE_CLASSES} ${color} ${size}`;
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
function renderItems$1(items = [], version) {
|
|
368
|
+
return (jsx("section", { className: "mt-3", role: "list", children: items.map((_, i) => (jsx(BlockItem, { className: "mt-1.5 first:mt-0", text: _, version: version }, String(i)))) }));
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
const BaseTileInner = JSX(({ context, description, children, buttons, image, items, version = 'primary' }) => {
|
|
372
|
+
const router = context.useRouter();
|
|
373
|
+
const { handlerDecorator } = context;
|
|
374
|
+
return (jsxs("div", { children: [description && jsx("div", { className: `font-normal text-base mt-3`, children: description }), children, items?.length && renderItems$1(items, version), buttons?.length && (jsx("div", { className: "mt-[18px]", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })), image?.src && jsx(Img, { className: "mt-auto ml-7", image: image })] }));
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
function getTitleSizeByClassName(className = '') {
|
|
378
|
+
const colSpan = getColSpan(className);
|
|
379
|
+
if (colSpan <= 4) {
|
|
380
|
+
return 'S';
|
|
381
|
+
}
|
|
382
|
+
else if (colSpan <= 8) {
|
|
383
|
+
return 'M';
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
return 'L';
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const alignBlock = {
|
|
391
|
+
left: 'items-start',
|
|
392
|
+
center: 'items-center',
|
|
393
|
+
right: 'items-end',
|
|
394
|
+
};
|
|
395
|
+
const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
|
|
396
|
+
const BaseTile = JSX(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', align = 'left', }) => {
|
|
397
|
+
return (jsxs("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && (jsx(Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), jsx(BaseTileInner, { context: context, buttons: buttons, image: image, children: children, description: description, items: items })] }));
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
const tileStyleMap = {
|
|
401
|
+
primary: 'bg-white text-primary-text',
|
|
402
|
+
secondary: 'bg-primary-main text-white',
|
|
403
|
+
};
|
|
404
|
+
const Tile = JSX((props) => {
|
|
405
|
+
const { children, className = '', version = 'primary', role } = props;
|
|
406
|
+
return (jsx("section", { className: `font-sans p-9 box-border ${className || ''} ${tileStyleMap[version]} ${getContainerPaddingRight(className)} ${getContainerMinHeight(className)} `, role: role, children: jsx(BaseTile, { ...props, children: children }) }));
|
|
407
|
+
});
|
|
408
|
+
function getContainerPaddingRight(className = '') {
|
|
409
|
+
const colSpan = getColSpan(className);
|
|
410
|
+
if (colSpan <= 6) {
|
|
411
|
+
return 'pr-9';
|
|
412
|
+
}
|
|
413
|
+
else if (colSpan <= 8) {
|
|
414
|
+
return 'pr-[4.75rem]';
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
return 'pr-[9.4rem]';
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function getContainerMinHeight(className = '') {
|
|
421
|
+
const colSpan = getColSpan(className);
|
|
422
|
+
if (colSpan <= 6) {
|
|
423
|
+
return 'min-h-[300px]';
|
|
424
|
+
}
|
|
425
|
+
else if (colSpan <= 8) {
|
|
426
|
+
return 'min-h-[320px]';
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
return 'min-h-[360px]';
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
const CBR_EXCHANGE_RATE_URL = 'https://www.cbr-xml-daily.ru/daily_json.js';
|
|
434
|
+
const CURRENCY_CODES = ['USD', 'EUR'];
|
|
435
|
+
const CURRENCY_ICONS_MAP = {
|
|
436
|
+
USD: 'DollarIcon',
|
|
437
|
+
EUR: 'EuroIcon',
|
|
438
|
+
};
|
|
439
|
+
const buttons = [
|
|
440
|
+
{
|
|
441
|
+
text: 'Все показатели',
|
|
442
|
+
href: 'https://cbr.ru/currency_base/daily/',
|
|
443
|
+
version: 'secondary',
|
|
444
|
+
},
|
|
445
|
+
];
|
|
446
|
+
const ExchangeRateTile = JSX(({ className, context, title }) => {
|
|
447
|
+
const { data } = context.useAsyncData(CBR_EXCHANGE_RATE_URL, fetchExchangeRate);
|
|
448
|
+
return (jsx(Tile, { className: className, context: context, title: title || 'Курсы обмена валют', buttons: buttons, children: jsxs("table", { children: [jsx("thead", { children: jsxs("tr", { children: [jsx(CurrencyTH, { children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), jsx(CurrencyTH, { className: "pl-11", children: "\u041A\u0443\u0440\u0441" })] }) }), jsx("tbody", { children: CURRENCY_CODES.map((code) => {
|
|
449
|
+
const value = (data?.Valute || {})[code]?.Value;
|
|
450
|
+
return (jsxs("tr", { children: [jsx(CurrencyTD, { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }), jsx("span", { className: "ml-2", children: code })] }) }), jsx(CurrencyTD, { className: "pt-4 pl-11", children: formatCurrency(value) })] }, code));
|
|
451
|
+
}) })] }) }));
|
|
452
|
+
});
|
|
453
|
+
const CurrencyTH = JSX(({ className = '', children }) => (jsx("th", { className: `text-left font-normal text-sm text-secondary-text ${className}`, children: children })));
|
|
454
|
+
const CurrencyTD = JSX(({ className = '', children }) => (jsx("td", { className: `text-left font-normal text-base text-primary-text ${className}`, children: children })));
|
|
455
|
+
async function fetchExchangeRate() {
|
|
456
|
+
const response = await fetch(CBR_EXCHANGE_RATE_URL);
|
|
457
|
+
return await response.json();
|
|
458
|
+
}
|
|
459
|
+
const currencyNumberFormat = new Intl.NumberFormat('ru', { style: 'currency', currency: 'RUB' });
|
|
460
|
+
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
461
|
+
|
|
462
|
+
const Headline = JSX(({ bgColor = 'transparent', className = '', title, description, image }) => {
|
|
463
|
+
return (jsxs("section", { className: `px-4 py-6 ${bgColor} ${className}`, children: [title && (jsx(Title, { size: "L", className: "text-primary-text mt-0 font-medium", children: title })), description && (jsx("p", { className: `font-normal text-m-md ${title ? 'mt-2.5' : ''}`, children: description })), image?.src && (jsx("div", { className: "mt-5 mx-auto flex justify-center", children: jsx(Img, { image: image }) }))] }));
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
const titleAlignStyleMap = {
|
|
467
|
+
left: 'text-left',
|
|
468
|
+
center: 'text-center',
|
|
469
|
+
right: 'text-right',
|
|
470
|
+
};
|
|
471
|
+
const titleMarginsStyleMap = {
|
|
472
|
+
double: 'mb-8',
|
|
473
|
+
single: 'mb-[26px]',
|
|
474
|
+
};
|
|
475
|
+
const linkColumnsModeStyleMap = {
|
|
476
|
+
double: 'gap-x-5 gap-y-[26px] flex-wrap',
|
|
477
|
+
single: 'gap-3.5 flex-col',
|
|
478
|
+
};
|
|
479
|
+
const LinkDocs = JSX(({ className = '', title, align, documents, icon, columnsMode = 'single' }) => {
|
|
480
|
+
const containerClasses = linkColumnsModeStyleMap[columnsMode];
|
|
481
|
+
return (jsxs("section", { className: `font-sans p-[50px] bg-white ${className}`, children: [title && (jsx(Title, { className: `font-medium mt-0 ${titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, children: title })), jsx("div", { className: `flex ${containerClasses}`, role: "list", children: documents?.length
|
|
482
|
+
? documents.map(({ text, fileSize, ...linkProps }, i) => (jsxs("a", { className: `group flex text-sm align-middle h-fit
|
|
483
|
+
text-primary-text no-underline hover:text-primary-main
|
|
484
|
+
${columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : ''}`, role: "listitem", ...linkProps, children: [icon && jsx(Icon, { className: "mr-2.5 h-fit", name: icon, width: "24px", height: "24px" }), jsxs("span", { className: "self-center", children: [text, jsx("span", { className: "text-secondary-text group-hover:text-primary-main", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })] }, String(i))))
|
|
485
|
+
: null })] }));
|
|
486
|
+
});
|
|
487
|
+
const getExtFromHref = (href) => {
|
|
488
|
+
if (!href)
|
|
489
|
+
return '';
|
|
490
|
+
const lastChunk = href.split('.').pop();
|
|
491
|
+
if (!lastChunk || lastChunk.includes('/'))
|
|
492
|
+
return '';
|
|
493
|
+
return lastChunk;
|
|
494
|
+
};
|
|
495
|
+
const formatSuffix = (ext, fileSize) => {
|
|
496
|
+
const prefix = ext || fileSize ? ',' : '';
|
|
497
|
+
const extension = ext ? ` ${ext}` : '';
|
|
498
|
+
const size = fileSize ? ` (${fileSize})` : '';
|
|
499
|
+
return prefix + extension + size;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
const PictureText = JSX(({ className, title, image, benefits }) => {
|
|
503
|
+
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, children: [jsx(Title, { className: "font-medium m-0 text-center", children: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: "mr-6", image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map(renderBenefit$1) })) : null] })] }));
|
|
504
|
+
});
|
|
505
|
+
function renderBenefit$1(benefit, i) {
|
|
506
|
+
return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48" })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
const textBlockStyleMaps = {
|
|
510
|
+
primary: {
|
|
511
|
+
background: 'bg-white',
|
|
512
|
+
icon: 'bg-primary-main text-white',
|
|
513
|
+
title: 'text-primary-text',
|
|
514
|
+
description: 'text-secondary-text',
|
|
515
|
+
},
|
|
516
|
+
secondary: {
|
|
517
|
+
background: 'bg-primary-main',
|
|
518
|
+
icon: 'bg-white text-primary-main',
|
|
519
|
+
title: 'text-white',
|
|
520
|
+
description: 'text-white',
|
|
521
|
+
},
|
|
522
|
+
'secondary-light': {
|
|
523
|
+
background: 'bg-primary-main/10',
|
|
524
|
+
icon: 'bg-primary-main text-white',
|
|
525
|
+
title: 'text-primary-text',
|
|
526
|
+
description: 'text-secondary-text',
|
|
527
|
+
},
|
|
528
|
+
};
|
|
529
|
+
const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items }) => {
|
|
530
|
+
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
531
|
+
return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? renderItems(items) : null] })] }));
|
|
532
|
+
});
|
|
533
|
+
function renderItems(items = [], version) {
|
|
534
|
+
return (jsx("section", { className: "mt-1", role: "list", children: items.map((_, i) => (jsx(BlockItem, { text: _, version: version }, String(i)))) }));
|
|
535
|
+
}
|
|
536
|
+
function renderIcon(className) {
|
|
537
|
+
return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
538
|
+
}
|
|
539
|
+
function renderImage(image) {
|
|
540
|
+
return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
const AccordionBlocks = {
|
|
544
|
+
Headline,
|
|
545
|
+
LinkDocs,
|
|
546
|
+
TextBlock,
|
|
547
|
+
PictureText,
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
const AccordionItemInner = JSX(({ blocks, context }) => {
|
|
551
|
+
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 }));
|
|
552
|
+
});
|
|
553
|
+
const renderBlock$1 = (context) => (block, i) => {
|
|
554
|
+
const type = block?.accordionBlockType;
|
|
555
|
+
if (!type || !(type in AccordionBlocks)) {
|
|
556
|
+
return null;
|
|
557
|
+
}
|
|
558
|
+
const AccordionBlock = AccordionBlocks[type];
|
|
559
|
+
return (jsx("div", { className: "mb-5 last:mb-0 py-2.5", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
const isActiveHandler = ({ context, blocks }) => {
|
|
563
|
+
const [isActive, setIsActive] = context.useState(false);
|
|
564
|
+
const hasContent = blocks?.length;
|
|
565
|
+
const icon = isActive ? 'MinusIcon' : 'PlusIcon';
|
|
566
|
+
const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
|
|
567
|
+
const handleToggle = (e) => {
|
|
568
|
+
if (!hasContent) {
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
setIsActive(!isActive);
|
|
572
|
+
const contentBlock = getContentBlock(e);
|
|
573
|
+
contentBlock.style.maxHeight = contentBlock.style.maxHeight
|
|
574
|
+
? null
|
|
575
|
+
: `${contentBlock.scrollHeight}px`;
|
|
576
|
+
};
|
|
577
|
+
return { isActive, hasContent, icon, handleToggle };
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
const AccordionItem = JSX(({ label, blocks, bordered, context }) => {
|
|
581
|
+
const { hasContent, icon, handleToggle } = isActiveHandler({
|
|
582
|
+
context,
|
|
583
|
+
blocks,
|
|
584
|
+
});
|
|
585
|
+
return (jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0 py-[14px]'} 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
|
|
586
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24" }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
const Accordion = JSX(({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
590
|
+
return (jsxs("section", { className: `py-6 font-sans bg-white text-primary-text ${bordered ? 'px-4' : ''} ${className}`, children: [title ? (jsx(Title, { className: "m-0 mb-2 font-medium text-center", size: "M", children: 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] }));
|
|
591
|
+
});
|
|
592
|
+
|
|
593
|
+
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
594
|
+
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
595
|
+
});
|
|
596
|
+
|
|
597
|
+
const LOGO_PATHS = [
|
|
598
|
+
'm13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z',
|
|
599
|
+
'M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z',
|
|
600
|
+
'M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z',
|
|
601
|
+
'M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z',
|
|
602
|
+
'M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z',
|
|
603
|
+
];
|
|
604
|
+
const SVG_COLOR = {
|
|
605
|
+
'bg-white': 'text-primary-main',
|
|
606
|
+
transparent: 'text-white',
|
|
607
|
+
};
|
|
608
|
+
const TEXT_COLOR = {
|
|
609
|
+
'bg-white': 'text-black',
|
|
610
|
+
transparent: 'text-white',
|
|
611
|
+
};
|
|
612
|
+
const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', hideTitle }) => {
|
|
613
|
+
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', children: [jsx(SVG, { className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, viewBox: "0 0 40 45", paths: LOGO_PATHS.map((d) => ({ d })) }), !hideTitle && (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
|
|
614
|
+
});
|
|
615
|
+
|
|
616
|
+
const MobileAppTile = JSX(({ className, title = 'Мобильное приложение', description, href = '#' }) => {
|
|
617
|
+
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-sm font-medium", children: title }), jsx("div", { className: "text-xs text-secondary-text", children: description })] })] })) : null }));
|
|
618
|
+
});
|
|
619
|
+
|
|
620
|
+
const Contacts = JSX(({ className, items, hasButton, context }) => {
|
|
621
|
+
const router = context.useRouter();
|
|
622
|
+
const { handlerDecorator } = context;
|
|
623
|
+
return (jsxs("div", { className: `flex flex-col ${className || ''}`, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "my-4", ...useLink({ router, handlerDecorator }, {
|
|
624
|
+
text: 'Обратная связь',
|
|
625
|
+
href: '/',
|
|
626
|
+
target: '_blank',
|
|
627
|
+
}) })) : null] }));
|
|
628
|
+
});
|
|
629
|
+
const renderContact = (item, index) => {
|
|
630
|
+
const { type, text, description } = item;
|
|
631
|
+
return (jsxs("div", { className: "mb-4", children: [jsx("div", { children: renderText(type, text) }), jsx("div", { className: "font-sans text-sm text-secondary-text", children: description })] }, String(index)));
|
|
632
|
+
};
|
|
633
|
+
const renderText = (type, text = '') => {
|
|
634
|
+
switch (type) {
|
|
635
|
+
case 'tel':
|
|
636
|
+
return (jsx("a", { className: "font-sans font-medium text-xl text-primary-text no-underline", href: `tel:${formatTel(text)}`, children: text }));
|
|
637
|
+
case 'email':
|
|
638
|
+
return (jsx("a", { className: "font-sans font-medium text-xl text-primary-text no-underline", href: `mailto:${text}`, children: text }));
|
|
639
|
+
default:
|
|
640
|
+
return jsx("span", { children: text });
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
const formatTel = (s) => s.replaceAll(/\D/g, '');
|
|
644
|
+
|
|
645
|
+
const HorizontalNavigation = JSX(({ title, links, className = '', context }) => {
|
|
646
|
+
const router = context.useRouter();
|
|
647
|
+
const { handlerDecorator } = context;
|
|
648
|
+
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-5 py-5", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, ...useLink({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
649
|
+
});
|
|
650
|
+
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}` })));
|
|
651
|
+
|
|
652
|
+
const ICONS_MAP = [
|
|
653
|
+
{
|
|
654
|
+
origins: ['t.me', 'telegram.org'],
|
|
655
|
+
icon: 'TelegramIcon',
|
|
656
|
+
label: 'Телеграм',
|
|
657
|
+
width: '20px',
|
|
658
|
+
height: '16px',
|
|
659
|
+
},
|
|
660
|
+
{ origins: ['vk.com'], icon: 'VKIcon', label: 'ВКонтакте', width: '24px', height: '12px' },
|
|
661
|
+
{ origins: ['ok.ru'], icon: 'OkIcon', label: 'Одноклассники', width: '12px', height: '20px' },
|
|
662
|
+
];
|
|
663
|
+
const MediaButton = JSX(({ href }) => {
|
|
664
|
+
const { icon, width, height } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
665
|
+
if (!icon)
|
|
666
|
+
return null;
|
|
667
|
+
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:fill-primary-main", href: href, target: "_blank", rel: "noopener noreferrer", children: Icon && jsx(Icon, { name: icon, width: width, height: height, asSVG: true, className: "block" }) }));
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
const SocialMedia = JSX(({ className, media, context }) => {
|
|
671
|
+
const router = context.useRouter();
|
|
672
|
+
const { handlerDecorator } = context;
|
|
673
|
+
return (jsx("div", { className: `flex gap-2 items-start justify-start pt-6 pb-6 ${className || ''}`, children: media?.map((_, index) => (jsx(MediaButton, { ...useLink({ router, handlerDecorator }, _) }, String(index)))) }));
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
const TextInformation = JSX(({ className, links, context }) => {
|
|
677
|
+
const router = context.useRouter();
|
|
678
|
+
const { handlerDecorator } = context;
|
|
679
|
+
return (jsxs("div", { className: `${className || ''}`, children: [jsx("div", { className: "pt-5 pb-[5px]", 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-5 pt-[5px]`, children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ...useLink({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
680
|
+
});
|
|
681
|
+
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}` })));
|
|
682
|
+
|
|
683
|
+
const SearchBar = JSX(({ className, context }) => {
|
|
684
|
+
const { term, setTerm } = context.useSearch();
|
|
685
|
+
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 h-full 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" }), jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "w-auto invisible peer-focus:visible absolute top-1 right-1", onClick: (e) => {
|
|
686
|
+
e.preventDefault();
|
|
687
|
+
console.log('click');
|
|
688
|
+
}, children: jsx("div", { className: "font-normal text-sm px-9 py-[9px]", children: "\u041D\u0430\u0439\u0442\u0438" }) })] }));
|
|
689
|
+
});
|
|
690
|
+
|
|
691
|
+
const getAccordionItems = (items) => items?.map((item) => ({
|
|
692
|
+
label: item.text || '',
|
|
693
|
+
blocks: [
|
|
694
|
+
{
|
|
695
|
+
accordionBlockType: 'LinkDocs',
|
|
696
|
+
documents: item.items || [],
|
|
697
|
+
},
|
|
698
|
+
],
|
|
699
|
+
}));
|
|
700
|
+
|
|
701
|
+
const Footer = JSX(({ className = '', documents, relatedEnterprises, contacts, socialMedia, topItems, context, horizontalNavigationTitle, subMenu, }) => {
|
|
702
|
+
const propsTextBlock = {
|
|
703
|
+
context,
|
|
704
|
+
accordionItems: getAccordionItems(topItems),
|
|
705
|
+
};
|
|
706
|
+
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 pt-0 pb-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 })] }));
|
|
707
|
+
});
|
|
708
|
+
const renderSubMenuItem = (menu, i) => {
|
|
709
|
+
const { icon, href, text } = menu;
|
|
710
|
+
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-0.5 font-medium", children: text })] }, `footer-${i}`));
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
const maxBy = (discriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
714
|
+
|
|
715
|
+
const isHrefActive = (href, router, cmp = (href, baseHref) => baseHref.startsWith(href)) => {
|
|
716
|
+
return cmp(withoutQuery(href), withoutMobilePath(withoutQuery(isURL(href) ? router.href : router.pathname)));
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
const isSubItemActive = (router) => (subItem) => isHrefActive(subItem.href, router);
|
|
720
|
+
|
|
721
|
+
const findActiveSubItem = (router) => (items = []) => {
|
|
722
|
+
const possibleActiveSubItems = items?.filter(isSubItemActive(router));
|
|
723
|
+
const activeSubItem = possibleActiveSubItems?.length
|
|
724
|
+
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
725
|
+
: null;
|
|
726
|
+
return activeSubItem;
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
|
|
730
|
+
|
|
731
|
+
const cmp = (a) => (b) => a?.href === b?.href;
|
|
732
|
+
const substitute = (items, substitution) => (items || []).map((_) => substitution?.find(cmp(_)) || _);
|
|
733
|
+
const subtract = (minuend, subtrahend) => (minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
|
|
734
|
+
const mergeTopItems = (left, right) => substitute(left, right).concat(subtract(right, left));
|
|
735
|
+
|
|
736
|
+
function useSitemap(useAsyncData) {
|
|
737
|
+
const { data } = useAsyncData(sitemapURL(), fetchSitemap);
|
|
738
|
+
return data || {};
|
|
739
|
+
}
|
|
740
|
+
async function fetchSitemap() {
|
|
741
|
+
const response = await fetch(sitemapURL());
|
|
742
|
+
return await response.json();
|
|
743
|
+
}
|
|
744
|
+
function sitemapURL() {
|
|
745
|
+
return `/wcms-resources/${projectSettings.SITEMAP || 'sitemap'}.json`;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
const TEXT_CLASSES = 'font-sans font-normal text-sm';
|
|
749
|
+
const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
|
|
750
|
+
const HeaderItem = JSX(({ className, text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
|
|
751
|
+
return (jsxs("a", { className: `relative inline-block bg-transparent text-center no-underline ${className || ''}`, href: href, target: target, onClick: onClick, children: [jsx("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? jsx("div", { className: getBorderClasses(bgColor, active) }) : null] }));
|
|
752
|
+
});
|
|
753
|
+
const getTextClasses = (bgColor, active) => {
|
|
754
|
+
let classes = 'text-white';
|
|
755
|
+
if (bgColor === 'bg-white') {
|
|
756
|
+
classes = active ? 'text-primary-main' : 'text-secondary-text hover:text-primary-main';
|
|
757
|
+
}
|
|
758
|
+
return `${classes} ${TEXT_CLASSES}`;
|
|
759
|
+
};
|
|
760
|
+
const getBorderClasses = (bgColor, active) => {
|
|
761
|
+
if (!active) {
|
|
762
|
+
return BORDER_CLASSES;
|
|
763
|
+
}
|
|
764
|
+
return `${bgColor === 'bg-white' ? 'bg-primary-main' : bgColor} ${BORDER_CLASSES}`;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
const HeaderBurger = JSX(({ context, burgerSubMenu, onClick, defaultLocation = '', children }) => {
|
|
768
|
+
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
769
|
+
return (jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4", children: [jsx("button", { className: "absolute top-4 right-4", 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", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24", className: "box-border mr-2", asSVG: true }), city] }), children, jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), jsx(SearchBar, { context: context, className: "grow" })] }));
|
|
770
|
+
});
|
|
771
|
+
const renderBurgerSubMenuItem = (menu, i) => {
|
|
772
|
+
const { icon, href, text } = menu;
|
|
773
|
+
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-0.5 font-medium", children: text })] }, `headerSubMenu-${i}`));
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
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", onClick: onClick, 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`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
777
|
+
|
|
778
|
+
const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems, burgerSubMenu }) => {
|
|
779
|
+
const router = context.useRouter();
|
|
780
|
+
const sitemap = useSitemap(context.useAsyncData);
|
|
781
|
+
const { handlerDecorator } = context;
|
|
782
|
+
const mergedItems = mergeTopItems(sitemap.topItems, topItems);
|
|
783
|
+
const activeTopItem = mergedItems.find(isTopItemActive(router));
|
|
784
|
+
const subItems = activeTopItem?.items;
|
|
785
|
+
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
786
|
+
const [burgerMenuShow, setBurgerMenuShow] = context.useState(false);
|
|
787
|
+
const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
|
|
788
|
+
return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0", children: [jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-x-scroll overflow-y-hidden w-full h-[50px]", children: jsx("div", { className: "flex", children: subItems?.map((_, i) => renderSubItem({
|
|
789
|
+
...useLink({ router, handlerDecorator }, _),
|
|
790
|
+
active: _ === activeSubItem,
|
|
791
|
+
bgColor,
|
|
792
|
+
}, i)) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: burgerSubMenu, defaultLocation: defaultLocation, children: jsx(Accordion, { context: context, accordionItems: getAccordionItems(topItems), className: "p-0 pt-0 pb-0 mb-4" }) })) : null] }));
|
|
793
|
+
});
|
|
794
|
+
const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-sm", ...item }, String(i)));
|
|
795
|
+
|
|
796
|
+
const GOLDEN_RATIO = 1.618;
|
|
797
|
+
const Placeholder = JSX(({ className, context, title }) => {
|
|
798
|
+
return (jsx(Tile, { className: className, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: jsx("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() }) }));
|
|
799
|
+
});
|
|
800
|
+
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
801
|
+
.map((_) => Math.floor(_))
|
|
802
|
+
.map(renderShimmerItem);
|
|
803
|
+
const renderShimmerItem = (width = 100, index) => (jsx("div", { style: { width: `${width}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
804
|
+
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
805
|
+
|
|
806
|
+
const benefitTitleStyleMap = {
|
|
807
|
+
primary: 'text-primary-text',
|
|
808
|
+
secondary: 'text-white',
|
|
809
|
+
};
|
|
810
|
+
const benefitDescStyleMap = {
|
|
811
|
+
primary: 'text-secondary-text',
|
|
812
|
+
secondary: 'text-white',
|
|
813
|
+
};
|
|
814
|
+
function renderBenefit(benefit, i, version) {
|
|
815
|
+
return (jsxs("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon && (jsx(Icon, { className: "w-[25px] h-[25px] rounded-full box-border", name: benefit.icon, width: "24", height: "24" })), jsx("h4", { className: `font-medium text-m-base m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-m-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] }, String(i)));
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
const ProductBlockInner = JSX(({ className, context, title, titleSize, description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
819
|
+
return (jsxs("div", { className: `${className || ''}`, children: [jsx("div", { children: jsx(BaseTile, { context: context, title: title, titleSize: titleSize || 'XL', description: description, items: items, buttons: buttons, children: benefits?.length ? (jsx("div", { className: "mt-[19px]", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null }) }), image?.src && (jsx("div", { className: "mt-5", children: jsx(Img, { image: { className: 'block', ...image } }) }))] }));
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
const ProductBlock = JSX(
|
|
823
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
824
|
+
(props /* Get rid of image and benefits */) => {
|
|
825
|
+
const { className } = props;
|
|
826
|
+
return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${className || ''}`, children: jsx(ProductBlockInner, { ...props }) }));
|
|
827
|
+
});
|
|
828
|
+
|
|
829
|
+
const ProductGalleryBlock = JSX(({ block, titleSize, context }) => {
|
|
830
|
+
return (jsx("section", { className: "flex grow-0 shrink-0 basis-full px-4 py-6", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { context: context, titleSize: titleSize, ...block }) }) }));
|
|
831
|
+
});
|
|
832
|
+
|
|
833
|
+
const ProductGallery = JSX(({ className, context, duration = 0, slides = [] }) => {
|
|
834
|
+
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
835
|
+
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
836
|
+
return (jsxs("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, children: [jsx("div", { className: `flex duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((block, i) => (jsx(ProductGalleryBlock, { block: block, context: context }, String(i)))) }), jsx("div", { className: "flex px-4 py-6", children: slides.map((_, i) => renderNavButton({
|
|
837
|
+
i,
|
|
838
|
+
activeSlideIndex,
|
|
839
|
+
onClick: () => setActiveSlideIndex(i),
|
|
840
|
+
duration,
|
|
841
|
+
})) })] }));
|
|
842
|
+
});
|
|
843
|
+
function renderNavButton({ i, activeSlideIndex, onClick, duration }) {
|
|
844
|
+
const isActiveBtn = i === activeSlideIndex;
|
|
845
|
+
const progressBarClassName = isActiveBtn ? 'animate-slide bg-primary-main' : 'bg-main-divider';
|
|
846
|
+
return (jsx("button", { type: "button", onClick: onClick, className: `relative overflow-hidden border-0 bg-inherit cursor-pointer pl-0 mr-1.5 pt-4 pb-5 last:mr-0 grow basis-0`, children: jsx("div", { className: `absolute bottom-0 left-0 w-full h-[3px] ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } }) }, String(i)));
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
const StepsBlock = JSX(({ className, title, description, steps, size = 'normal' }) => {
|
|
850
|
+
return (jsxs("section", { className: `box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${className || ''}`, children: [title && (jsx(Title, { size: "M", className: "font-medium m-0 text-center", children: title })), description && jsx("p", { className: `text-m-md text-center ${title && 'mt-2'}`, children: description }), steps?.length ? (jsx("div", { className: `box-border py-0.5 mb-0.5 mt-5`, children: jsx("div", { className: "flex flex-col justify-between gap-x-[101px]", children: steps.map((step, i) => renderStepTitle({ step, size, i, length: steps.length })) }) })) : null] }));
|
|
851
|
+
});
|
|
852
|
+
const renderStepTitle = (params) => {
|
|
853
|
+
const { step, size, i, length } = params;
|
|
854
|
+
const isLastStep = length - 1 === i;
|
|
855
|
+
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-[24px]';
|
|
856
|
+
return (jsx("div", { children: jsxs("div", { className: "flex flex-row text-center relative", children: [jsxs("div", { children: [renderIconArea(step, size, i), !isLastStep && jsx("div", { className: `min-h-8 h-full w-[2px] bg-secondary-light ${margin}` })] }), jsxs("div", { className: "flex flex-col justify-center relative", children: [step.label && (jsx("div", { className: "font-medium text-m-title-xs m-0 text-left", children: step.label })), step.description && (jsx("div", { className: `font-normal text-sm text-secondary-text text-left ${step.label ? 'mt-1' : ''}`, children: step.description }))] })] }, String(i)) }, String(i)));
|
|
857
|
+
};
|
|
858
|
+
const renderIconArea = (step, size, i) => {
|
|
859
|
+
const iconAreaSize = size === 'normal'
|
|
860
|
+
? 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]'
|
|
861
|
+
: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
|
|
862
|
+
const iconSize = size === 'normal' ? '38' : '27';
|
|
863
|
+
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
864
|
+
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 }) }));
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
const Blocks = {
|
|
868
|
+
ExchangeRateTile,
|
|
869
|
+
Footer,
|
|
870
|
+
Header,
|
|
871
|
+
Headline,
|
|
872
|
+
Placeholder,
|
|
873
|
+
ProductBlock,
|
|
874
|
+
ProductGallery,
|
|
875
|
+
TextBlock,
|
|
876
|
+
StepsBlock,
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
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() })));
|
|
880
|
+
const renderLikeIcon = () => {
|
|
881
|
+
const params = {
|
|
882
|
+
stroke: '#292D32',
|
|
883
|
+
strokeLinecap: 'round',
|
|
884
|
+
strokeLinejoin: 'round',
|
|
885
|
+
strokeWidth: '1.5',
|
|
886
|
+
};
|
|
887
|
+
return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsx("path", { ...params, strokeMiterlimit: "10", d: "M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77" }), jsx("path", { ...params, d: "M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z" })] }));
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
const LikeControl = JSX(({ className, context }) => {
|
|
891
|
+
const likeService = context.useLikeService();
|
|
892
|
+
return (jsxs("div", { className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className || ''}`, children: [jsx(LikeButton, { onClick: likeService.like, ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), jsx(LikeButton, { onClick: likeService.dislike, className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), jsx("span", { className: "select-none", children: likeService.likeCount })] }));
|
|
893
|
+
});
|
|
894
|
+
|
|
895
|
+
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
896
|
+
const ContentPage = JSX(({ className, context, blocksRegistry, data: { style: pageStyle, blocks, slots = {}, likeControl, colorPalette = 'pc' }, blockDecorator = defaultBlockDecorator, }) => {
|
|
897
|
+
const { header } = slots;
|
|
898
|
+
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className || ''}`, "data-theme": colorPalette, children: [header?.blocks?.length ? (jsx("div", { className: `${style2className(header?.style)}`, children: header.blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, blocks?.length ? (jsx("div", { className: "container grid grid-cols-12 gap-1", children: blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i)) })) : null, likeControl && (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto", context: context }) }))] }));
|
|
899
|
+
});
|
|
900
|
+
function renderBlock({ block, blockDecorator, blocksRegistry, context }, i) {
|
|
901
|
+
const { type } = block;
|
|
902
|
+
if (!(type in blocksRegistry)) {
|
|
903
|
+
console.warn(`No block with "${type}" is registered`);
|
|
904
|
+
}
|
|
905
|
+
const BlockComponent = blocksRegistry[type] || Placeholder;
|
|
906
|
+
return blockDecorator({
|
|
907
|
+
blockClassName: style2className(block.style),
|
|
908
|
+
block,
|
|
909
|
+
render: (props) => {
|
|
910
|
+
const { version, content, blocks } = props.block;
|
|
911
|
+
return (jsx(BlockComponent, { className: props.blockClassName, version: version, context: context, ...content, children: blocks?.length
|
|
912
|
+
? blocks.map((block, i) => renderBlock({ block, blockDecorator, blocksRegistry, context }, i))
|
|
913
|
+
: null }, `${type}-${i}`));
|
|
914
|
+
},
|
|
915
|
+
}, `block-${i}`);
|
|
916
|
+
}
|
|
917
|
+
function style2className(style) {
|
|
918
|
+
return style ? style.join(' ') : '';
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
const ContentPageHead = JSX(({ HeadComponent, data, children }) => {
|
|
922
|
+
const { title, description, keywords, robots, og } = data;
|
|
923
|
+
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(',') }), og
|
|
924
|
+
? Object.entries(og).map(([key, value]) => (jsx("meta", { name: `og:${key}`, content: value }, key)))
|
|
925
|
+
: null, children] }));
|
|
926
|
+
});
|
|
927
|
+
|
|
928
|
+
function toMobilePage(contentPage) {
|
|
929
|
+
const { blocks, slots } = contentPage;
|
|
930
|
+
return {
|
|
931
|
+
...contentPage,
|
|
932
|
+
blocks: getMobileBlocks(blocks),
|
|
933
|
+
slots: slots &&
|
|
934
|
+
Object.keys(slots).reduce((res, key) => ({
|
|
935
|
+
...res,
|
|
936
|
+
[key]: {
|
|
937
|
+
...slots[key],
|
|
938
|
+
blocks: getMobileBlocks(slots[key].blocks),
|
|
939
|
+
},
|
|
940
|
+
}), {}),
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
function getMobileBlocks(blocks) {
|
|
944
|
+
return blocks?.filter(({ mobile }) => !mobile?.hidden).map(toMobileBlock);
|
|
945
|
+
}
|
|
946
|
+
function toMobileBlock(block) {
|
|
947
|
+
const { mobile } = block;
|
|
948
|
+
if (mobile) {
|
|
949
|
+
return {
|
|
950
|
+
...block,
|
|
951
|
+
style: mobile.style?.length ? mobile.style : block.style,
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
else {
|
|
955
|
+
return block;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
function joinList(sep) {
|
|
960
|
+
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
exports.Blocks = Blocks;
|
|
964
|
+
exports.ContentPage = ContentPage;
|
|
965
|
+
exports.ContentPageHead = ContentPageHead;
|
|
966
|
+
exports.DaDataAPI = DaDataAPI;
|
|
967
|
+
exports.Header = Header;
|
|
968
|
+
exports.Icon = Icon;
|
|
969
|
+
exports.LikeAPI = LikeAPI;
|
|
970
|
+
exports.joinList = joinList;
|
|
971
|
+
exports.projectSettings = projectSettings;
|
|
972
|
+
exports.setup = setup;
|
|
973
|
+
exports.toMobilePage = toMobilePage;
|
|
974
|
+
exports.url = url;
|
|
975
|
+
|
|
976
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
977
|
+
|
|
978
|
+
}));
|