@redneckz/wildless-cms-uni-blocks 0.2.112 → 0.2.115
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/Placeholder/Placeholder.mobile.d.ts +6 -0
- package/dist/components/Placeholder/Placeholder.mobile.js +15 -0
- package/dist/components/Placeholder/Placeholder.mobile.js.map +1 -0
- 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/{mobile/dist/ui-kit → dist/ui-kit/SearchBar}/SearchBar.d.ts +1 -1
- 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/{mobile/dist/ui-kit/SearchBar.js → dist/ui-kit/SearchBar.mobile.js} +2 -2
- 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/Placeholder/Placeholder.mobile.d.ts +6 -0
- package/lib/components/Placeholder/Placeholder.mobile.js +13 -0
- package/lib/components/Placeholder/Placeholder.mobile.js.map +1 -0
- 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/{mobile/lib/ui-kit → lib/ui-kit/SearchBar}/SearchBar.d.ts +1 -1
- 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 +374 -242
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +2 -2
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +12 -0
- package/mobile/dist/components/Accordion/AccordionItem.js +9 -26
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- 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.js +9 -33
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- 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 +9 -3
- 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/Blocks.d.ts +1 -6
- package/mobile/dist/components/Blocks.js +2 -12
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +20 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +12 -0
- package/mobile/dist/components/Footer/HorizontalNavigation.d.ts +5 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +3 -3
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- 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/SocialMedia.js +2 -19
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.d.ts +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +13 -11
- package/mobile/dist/components/Header/Header.js.map +1 -1
- 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 +11 -1
- 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.js +3 -8
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +3 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +2 -17
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- 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.js +5 -11
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- 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 +2 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +9 -5
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -0
- package/mobile/dist/components/TextBlock/TextBlock.js +8 -4
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -0
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +6 -1
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/model/Picture.d.ts +1 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +2 -2
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/dist/ui-kit/Breadcrumb.js +3 -3
- package/mobile/dist/ui-kit/Breadcrumb.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.js +7 -5
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +7 -5
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +73 -61
- package/mobile/dist/ui-kit/Icon/IconProps.js +67 -61
- package/mobile/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/mobile/dist/ui-kit/Img.js +3 -3
- package/mobile/dist/ui-kit/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.d.ts +1 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +2 -2
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- 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/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/lib/components/Accordion/Accordion.js +2 -2
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +12 -0
- package/mobile/lib/components/Accordion/AccordionItem.js +9 -26
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- 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.js +9 -33
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- 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 +9 -3
- 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/Blocks.d.ts +1 -6
- package/mobile/lib/components/Blocks.js +2 -12
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +21 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +12 -0
- package/mobile/lib/components/Footer/HorizontalNavigation.d.ts +5 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +4 -4
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- 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/SocialMedia.js +2 -19
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.d.ts +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +13 -11
- package/mobile/lib/components/Header/Header.js.map +1 -1
- 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 +11 -1
- 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.js +3 -8
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +3 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +2 -17
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- 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.js +5 -11
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- 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 +2 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +9 -5
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -0
- package/mobile/lib/components/TextBlock/TextBlock.js +8 -4
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -0
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +6 -1
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/model/Picture.d.ts +1 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +2 -2
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/mobile/lib/ui-kit/Breadcrumb.js +3 -3
- package/mobile/lib/ui-kit/Breadcrumb.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.js +7 -5
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +7 -5
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +73 -61
- package/mobile/lib/ui-kit/Icon/IconProps.js +67 -61
- package/mobile/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/mobile/lib/ui-kit/Img.js +3 -3
- package/mobile/lib/ui-kit/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.d.ts +1 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +2 -2
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- 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/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/src/components/Accordion/Accordion.tsx +30 -14
- package/mobile/src/components/Accordion/AccordionContent.ts +12 -0
- package/mobile/src/components/Accordion/AccordionItem.tsx +16 -49
- 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 +20 -75
- package/mobile/src/components/BaseTile/BaseTileInner.tsx +31 -0
- package/mobile/src/components/BaseTile/BaseTileProps.ts +9 -3
- 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/Blocks.ts +2 -12
- package/mobile/src/components/ContentPage/ContentPage.page.json +15 -1624
- package/mobile/src/components/Footer/Footer.tsx +60 -6
- package/mobile/src/components/Footer/FooterContent.ts +13 -0
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +30 -24
- package/mobile/src/components/Footer/MediaButton.tsx +43 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -44
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/Header/Header.tsx +42 -41
- package/mobile/src/components/Header/HeaderBurger.tsx +45 -0
- package/mobile/src/components/Header/HeaderContent.ts +11 -1
- package/mobile/src/components/Header/HeaderTop.tsx +28 -0
- package/mobile/src/components/Headline/Headline.tsx +10 -12
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +3 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +19 -20
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +10 -5
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +3 -5
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +9 -46
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +35 -0
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +10 -34
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +22 -0
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +2 -1
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +1 -0
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +39 -18
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +1 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +26 -15
- package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -0
- package/mobile/src/components/Tile/Tile.tsx +1 -1
- package/mobile/src/content-page-repository/transformPicture.ts +6 -1
- 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/CloseIcon.svg +6 -0
- package/mobile/src/icons/GeolocationIcon.svg +4 -0
- package/mobile/src/model/Picture.ts +1 -0
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +2 -2
- package/mobile/src/ui-kit/Breadcrumb.tsx +4 -9
- package/mobile/src/ui-kit/Button/Button.tsx +13 -10
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +19 -15
- package/mobile/src/ui-kit/Icon/IconProps.ts +12 -0
- package/mobile/src/ui-kit/Img.tsx +3 -2
- package/mobile/src/ui-kit/Logo/Logo.tsx +9 -6
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +46 -0
- package/mobile/src/utils/getAccordionItems.ts +10 -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/Placeholder/Placeholder.mobile.tsx +35 -0
- 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.tsx → SearchBar/SearchBar.tsx} +3 -3
- package/{mobile/src/ui-kit/SearchBar.tsx → src/ui-kit/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
- package/mobile/dist/ui-kit/SearchBar.js.map +0 -1
- package/mobile/lib/ui-kit/SearchBar.js +0 -12
- package/mobile/lib/ui-kit/SearchBar.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const i=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,i,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},i=n?.slots?.default,l=r||i&&i();return e(Object.assign(a,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},s=a((({className:e="",name:t,alt:a=`Icon ${t}`,title:i=a,asSVG:s,...c})=>{const o=`${l.CDN||""}icons/${t}.svg`;return s?r("svg",{className:e,...c,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:a,title:i,...c,"aria-hidden":"true"})})),c=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12},o=e=>e?.includes("//"),m=e=>(e||"").replace(/\/?\?.*/,""),d=e=>{if(!e||!o(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var h=Object.freeze({__proto__:null,isURL:o,withoutQuery:m,getOrigin:d});const x="/mobile",u=(e,t)=>{if(!e)return e;const n=d(t?.href);return n?e.replace(n,"")||"/":e},p=e=>e;function f({router:e,handlerDecorator:t=p},n){const r=((e,t)=>{if(!e)return e;const n=u(e,t)||"",r=t?.pathname.startsWith(x);return r&&!o(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!o(r),i=!n.target||"_self"===n.target;a&&i&&(t.preventDefault(),e.push(r))}),n)}}const b={primary:"text-primary-text",secondary:"text-secondary-text"},g={primary:"bg-primary-main",secondary:"bg-secondary-text"},N=a((({className:e="",isDotted:t=!0,text:a,children:i,version:l="primary",white:s})=>r("div",{className:`font-sans inline-block flex items-baseline ${e}`,role:"listitem",children:[t&&n("div",{className:v(l,s)}),n("span",{className:s?"text-white":b[l],children:a||i})]}))),v=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":g[e]} ${"primary"===e?"w-[8px] h-[8px] min-w-[8px] min-h-[8px] mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`,y={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active"},w={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},k="inline-block text-center font-sans select-none",$=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:s,children:c,disabled:o,rounded:m,version:d="none",ariaLabel:h,...x})=>{const u=c??n(C,{text:t,aboveText:r,appendLeft:a,rounded:m});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`${k} ${w[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:u}):n("a",{className:`${k} cursor-pointer no-underline ${y[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:s,"aria-label":h,role:i?"link":"button",...x,children:u})})),C=a((({text:e,aboveText:t,appendLeft:a,rounded:i})=>{const l=!e&&!t&&Boolean(a);return r("div",{className:`flex items-center justify-center ${l?"h-12 w-12 min-h-12 min-w-12":"px-8 gap-2 "+(t?"py-2":"py-[13px]")} ${i?"rounded-full":""}`,children:[a||null,l?null:r("div",{children:[n("div",{className:"text-2xs text-left",children:t}),n("div",{className:"text-sm font-medium text-left",children:e})]})]})})),S=a((({className:e,image:{size:t,...a}})=>{const i={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:`flex-none ${e||""}`,children:[a.sources?.length?a.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:_(t)},`${r}_${e}`))):null,n("img",{src:a.src,alt:a.alt||a.title,title:a.title,style:i,...t})]})}));function _(e){return e?`image/${String(e)}`:void 0}const j={XL:"text-m-title",L:"text-m-title",M:"text-m-title-md",S:"text-m-title-xs","2XS":"text-m-title-xs","3XS":"text-m-title-xs"},L=a((({size:e="L",className:t,children:r,...a})=>n("XL"===e||"L"===e?"h1":"h2",{className:D(j[e],t),...a,children:r}))),D=(...e)=>e.filter(Boolean).join(" "),T=a((({className:e,context:t,title:a,titleSize:i,description:l,children:c,buttons:o,image:m,items:d,version:h="primary"})=>{const x=t.useRouter(),{handlerDecorator:u}=t;return r("div",{className:"font-sans flex flex-col grow h-full items-start",children:[a&&n(L,{size:R(i,e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===h?"text-primary-text":""),children:a}),r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between items-start",children:[r("div",{children:[l&&n("div",{className:"font-normal text-base mt-4 max-w-[600px]",children:l}),c,d?.length?A(d,h):null]}),o?.length?n("div",{className:"flex mt-9 gap-3",children:o.map(((e,t)=>function({icon:e,asSVG:t,...r},a){if(!r?.text)return;return n($,e?{appendLeft:n(s,{name:e,asSVG:t,width:"24",height:"24"}),...r}:{...r},String(a))}(f({router:x,handlerDecorator:u},e),t)))}):null]}),m?.src&&n(S,{className:"mt-auto ml-7",image:m})]})]})}));function R(e,t=""){if(e)return e;const n=c(t);return n<=4?"S":n<=8?"M":"L"}function A(e=[],t){return n("section",{className:"max-w-[600px] mt-5",role:"list",children:e.map(((e,r)=>n(N,{className:r?"mt-2.5":"",text:e,white:"primary"!==t},String(r))))})}const O={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},I=a((e=>{const{children:t,className:r="",version:a="primary",role:i}=e;return n("section",{className:`font-sans p-9 box-border ${r} ${O[a]} ${P(r)} ${V(r)} `,role:i,children:n(T,{...e,children:t})})}));function P(e=""){const t=c(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function V(e=""){const t=c(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const M="https://www.cbr-xml-daily.ru/daily_json.js",B=["USD","EUR"],Z={USD:"DollarIcon",EUR:"EuroIcon"},z=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],H=a((({className:e,context:t,title:a})=>{const{data:i}=t.useAsyncData(M,G);return n(I,{className:e,context:t,title:a||"Курсы обмена валют",buttons:z,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(E,{children:"Валюта"}),n(E,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:B.map((e=>{const t=(i?.Valute||{})[e]?.Value;return r("tr",{children:[n(F,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(s,{name:Z[e],width:"24",height:"24"}),n("span",{className:"ml-2",children:e})]})}),n(F,{className:"pt-4 pl-11",children:W(t)})]},e)}))})]})})})),E=a((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),F=a((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function G(){const e=await fetch(M);return await e.json()}const U=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),W=e=>e?U.format(e):"",J=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(X,{index:t,...f({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),X=a((({className:e,index:t,text:r,href:a,target:i,onClick:l})=>n("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] ${e||""}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),Q=a((({className:e,context:t})=>n("footer",{className:`${e} px-9 py-2 bg-white rounded-bl-3xl rounded-br-3xl`,children:n(J,{context:t})}))),q=a((({title:e,description:t,cards:a=[],className:i})=>r("section",{className:`relative font-sans text-primary-text bg-white p-4 overflow-hidden ${i}`,children:[r("div",{className:"flex flex-col items-center mb-8",children:[n(L,{className:"font-medium m-0 text-centers",children:e}),t?n("div",{className:"font-normal text-base max-w-[600px] mt-3",children:t}):null]}),n("div",{className:"horizontal-list no-scrollbar",role:"list",children:a?.map(Y)})]})));function Y(e,t){return r("div",{className:"box-border horizontal-list-item border-solid border rounded-md border-main-divider p-4 mx-1 flex flex-col justify-between items-stretch",role:"listitem",children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(S,{className:"mb-6",image:e.image})}):null,e.title?n("h4",{className:"font-medium text-xl m-0 "+(e.description||e.items?.length?"":"text-center"),children:e.title}):null,e.description?n("div",{className:"font-normal text-sm text-secondary-text mt-2",children:e.description}):null,e.items?.length?K(e.items):null]}),e?.button?.href?n($,{className:"mt-6",...e.button}):null]},t)}function K(e=[]){return n("section",{className:"max-w-[308px] mt-2",role:"list",children:e.map(((e,t)=>n(N,{children:n("span",{className:"text-sm text-secondary-text",children:e})},String(t))))})}const ee=(e,t,n=((e,t)=>t.startsWith(e)))=>n(m(e),(e=>(e||"").replace(x,""))(m(o(e)?t.href:t.pathname))),te=e=>t=>ee(t.href,e),ne=e=>(t=[])=>{const n=t?.filter(te(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null},re=e=>t=>e?.href===t?.href,ae=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(re(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(re(e))))));var n,r,a};async function ie(){const e=await fetch(le());return await e.json()}function le(){return`/wcms-resources/${l.SITEMAP||"sitemap"}.json`}const se="absolute left-0 -bottom-2 w-full h-[2px]",ce=a((({className:e,text:t,href:a,target:i,active:l,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:s,children:[n("span",{className:oe(o,l),children:t||c}),l?n("div",{className:me(o,l)}):null]}))),oe=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-normal text-base`},me=(e,t)=>t?`${"bg-white"===e?e:"bg-primary-main"} ${se}`:se,de=a((({className:e,viewBox:t,fill:r="none",width:a,height:i,paths:l,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:i,children:l.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...s,...r},a)))}))),he=["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","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","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","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","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],xe={"bg-white":"text-primary-main",transparent:"text-white"},ue={"bg-white":"text-black",transparent:"text-white"},pe=a((({className:e,href:t,children:a,targetBlank:i,bgColor:l="bg-white"})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self",children:[n(de,{className:`${xe[l]} w-10`,viewBox:"0 0 40 45",paths:he.map((e=>({d:e})))}),n("span",{className:`${ue[l]} text-base font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),fe=a((({className:e="",text:t,href:r,target:a,active:i,flat:l,onClick:s,children:c,ariaLabel:o,bgColor:m="bg-white"})=>n("a",{className:`${be(m,i,l)} ${e}`,href:r,target:a,onClick:s,rel:"noopener noreferrer","aria-label":o,children:n("span",{className:ge(m,i,l),children:t||c})}))),be=(e,t,n)=>{let r="border-transparent";return t&&(r="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${r} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},ge=(e,t,n)=>{let r="text-white";return"bg-white"===e&&(r=t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${r} font-sans font-normal text-sm`},Ne=a((({className:e="",children:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":r,children:t}))),ve={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},ye={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},we={"bg-white":"GridIcon",transparent:"GridIconWhite"},ke=a((({context:e,className:t,defaultLocation:a="",bgColor:i="bg-white"})=>{const[l,c]=e.useGeolocation(a);return r("div",{className:`flex items-center ${t||""}`,children:[n(fe,{className:"mr-5",flat:!0,href:"#",text:l,ariaLabel:"Местоположение",onClick:c,bgColor:i}),n(fe,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:i}),n(Ne,{className:`mr-5 ${ve[i]}`,ariaLabel:"Поиск по сайту",children:n(s,{name:"LoupeIcon",className:"h-full",asSVG:!0})}),n(Ne,{className:`mr-5 ${ve[i]}`,ariaLabel:"Профиль",children:n(s,{name:"ProfileIcon",className:"h-full",asSVG:!0})}),n(Ne,{className:`${ye[i]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(s,{name:we[i],className:"h-full",asSVG:!0})})]})})),$e={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ce=a((({className:e,defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l})=>{const s=i.useRouter(),c=function(e){const{data:t}=e(le(),ie);return t||{}}(i.useAsyncData),{handlerDecorator:o}=i,m=ae(c.topItems,l),d=m.find((e=>t=>t.items?.some(te(e))||ee(t.href,e))(s)),h=d?.items,x=ne(s)(h),u=m.map(((e,t)=>n(fe,{active:e===d,...f({router:s,handlerDecorator:o},e),ariaLabel:e.text,bgColor:a},String(t)))),p=h?.map((e=>n(ce,{className:"mr-8",active:e===x,...f({router:s,handlerDecorator:o},e),bgColor:a},e.href)));return n("header",{className:`pt-5 pb-8 px-20 ${a} ${e||""}`,children:r("div",{className:"container",children:[r("div",{className:"flex items-center",children:[n(pe,{className:"mr-8",bgColor:a}),u,n(ke,{context:i,className:"ml-auto",defaultLocation:t,bgColor:a})]}),n("div",{className:`mt-5 h-[1px] ${$e[a]}`}),n("nav",{className:"mt-5",children:p})]})})})),Se={left:"text-left",center:"text-center",right:"text-right"},_e=a((({bgColor:e="transparent",align:t="left",className:a,title:i,description:l})=>{const s=Se[t];return r("section",{className:`p-[50px] ${e} ${a||""} `,children:[i&&n(L,{size:"L",className:`text-primary-text mt-0 font-medium ${s}`,children:i}),l&&n("p",{className:`font-normal text-base mt-4 ${s}`,children:l})]})})),je=a((({className:e,context:t,title:a="Мобильное приложение",qr:i,buttons:l=[]})=>n(I,{className:e,context:t,title:a,buttons:l,children:r("div",{className:"flex items-center",children:[i?.src&&i?.href&&n("a",{href:i.href,target:"_blank",children:n("img",{src:i.src,alt:a,title:a,width:"164",height:"164",className:"w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light"})}),n("span",{className:"font-normal text-sm text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})}))),Le=a((({className:e,text:t,onClick:r,href:a,target:i,isActive:l})=>n("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${l?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:r,href:a,target:i,children:t}))),De=a((({className:e,context:t,title:a,buttons:i})=>{const l=t.useRouter(),{handlerDecorator:s}=t,c=ne(l)(i);return r("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,children:[n("h2",{className:"font-medium text-xl m-0",children:a}),i?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:i.filter((({text:e})=>e)).map(((e,t)=>n(Le,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...f({router:l,handlerDecorator:s},e)},String(t))))}):null]})})),Te=a((({className:e,title:t,image:a,benefits:i})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(L,{className:"font-medium m-0 text-center",children:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(S,{className:"mr-6",image:a}),i?.length?n("div",{className:"flex flex-col",children:i.map(Re)}):null]})]})));function Re(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(s,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const Ae=a((({className:e,context:t,title:r})=>n(I,{className:e,context:t,title:r,description:"Блок в разработке...",children:n("figure",{className:"m-0 min-w-[600px]",children:Oe()})}))),Oe=(e=3)=>Pe(100,e).map((e=>Math.floor(e))).map(Ie),Ie=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Pe=(e,t)=>[e].concat(t>0?Pe(e/1.618,t-1):[]),Ve={primary:"bg-main",secondary:"bg-white/30"},Me={primary:"text-primary-text",secondary:"text-white"},Be={primary:"text-secondary-text",secondary:"text-white"},Ze=a((({className:e,context:t,title:a,titleSize:i,description:l,benefits:c,buttons:o,image:m,items:d,version:h="primary"})=>r("div",{className:`flex grow justify-between items-stretch ${e||""}`,children:[n("div",{className:"flex flex-col",children:n(T,{context:t,title:a,titleSize:i||"XL",description:l,items:d,buttons:o,version:h,children:c?.length?n("div",{className:"flex gap-6 mt-6 mb-3.5",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-4 items-center",children:[e.icon&&n(s,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${Ve[a]}`,name:e.icon,width:"24",height:"24"}),r("div",{className:"flex gap-1 flex-col h-full max-w-[149px]",children:[n("h4",{className:`font-medium text-xl m-0 ${Me[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-sm ${Be[a]}`,children:e.description})]})]},String(t))}(e,t,h)))}):null})}),m?.src&&n(S,{className:"mt-auto",image:m})]})));const ze=a((({titleSize:e,image:t,benefits:r,...a})=>{const{className:i}=a;return n("section",{className:`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] ${i||""}`,children:n(Ze,{...a,titleSize:"L"})})})),He=a((e=>{const{benefits:t,version:a}=e;return n(I,{...e,children:r("div",{className:"flex mt-5 mb-1",children:[t?.length?n("div",{className:"mr-8",children:t.map(Ee)}):null,t?.length?n("div",{className:"pt-1",children:t.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,a)))}):null]})})}));function Ee(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const Fe=a((({className:e,title:t,description:a,steps:i,size:l="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-20 py-[50px] flex flex-col ${e||""}`,children:[t&&n(L,{size:"M",className:"font-medium m-0 text-center",children:t}),a&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:a}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(((e,t,n)=>Ge({step:e,size:l},t,n)))})}):null]}))),Ge=({step:e,size:t},a,i)=>{const l=i.length-1===a,c="normal"===t?"38":"27",o="normal"===t?"ml-[34px]":"ml-[24px]";return r("div",{children:[r("div",{className:"flex flex-row text-center relative",children:[n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(s,{name:e.icon,width:c,height:c})||a+1})}),r("div",{className:"flex flex-col justify-center relative",children:[e.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(e.label?"mt-1":""),children:e.description})]})]},String(a)),!l&&n("div",{className:`h-8 w-[2px] bg-secondary-light ${o}`})]})},Ue={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},We=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:s})=>{const c=Ue[a];return r("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,children:[i&&"small"===i?Je(c.icon):null,i&&"big"===i?Xe(l):null,r("div",{className:"py-0.5",children:[e&&n("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&n("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function Je(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function Xe(e){return e?.src?n(S,{className:"pt-0.5 pr-3",image:e}):null}const Qe={ExchangeRateTile:H,Footer:Q,Gallery:q,Header:Ce,Headline:_e,MobileAppTile:je,PictureText:Te,Placeholder:Ae,ProductBlock:ze,ProductTile:He,TextBlock:We,Tile:I,Navigation:De,StepsBlock:Fe},qe=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Ye()}))),Ye=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,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"}),n("path",{...e,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"})]})},Ke=a((({className:e,context:t})=>{const a=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(qe,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(qe,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),et=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),tt=a((({className:e,context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=et})=>{const{header:d}=s;return r("section",{className:`relative ${rt(i)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${rt(d?.style)}`,children:d.blocks.map(((e,n)=>nt({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>nt({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Ke,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function nt({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l in r||console.warn(`No block with "${l}" is registered`);const s=r[l]||Ae;return t({blockClassName:rt(e.style),block:e,render:e=>{const{version:c,content:o,blocks:m}=e.block;return n(s,{className:e.blockClassName,version:c,context:a,...o,children:m?.length?m.map(((e,n)=>nt({block:e,blockDecorator:t,blocksRegistry:r,context:a},n))):null},`${l}-${i}`)}},`block-${i}`)}function rt(e){return e?e.join(" "):""}const at=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,description:l,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l&&n("meta",{name:"description",content:l}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,a]})}));function it(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(lt)}function lt(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}e.Blocks=Qe,e.ContentPage=tt,e.ContentPageHead=at,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ce,e.Icon=s,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:i}=await n.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=l,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:n}=e;return{...e,blocks:it(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:it(n[t].blocks)}})),{})}},e.url=h,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...i}={})=>{const l=Object.assign({},i,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),i=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const a=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},s=i((({className:e="",name:t,alt:i=`Icon ${t}`,title:l=i,asSVG:s,...c})=>{const o=`${a.CDN||""}icons/${t}.svg`;return s?r("svg",{className:e,...c,"aria-hidden":"true",children:[l?n("title",{children:l}):null,i?n("desc",{children:i}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:i,title:l,...c,"aria-hidden":"true"})})),c=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12},o={XL:"text-m-title",L:"text-m-title",M:"text-m-title-md",S:"text-m-title-xs","2XS":"text-m-title-xs","3XS":"text-m-title-xs"},m=i((({size:e="L",className:t,children:r,...i})=>n("XL"===e||"L"===e?"h1":"h2",{className:d(o[e],t),...i,children:r}))),d=(...e)=>e.filter(Boolean).join(" "),h=e=>e?.includes("//"),u=e=>(e||"").replace(/\/?\?.*/,""),x=e=>{if(!e||!h(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var p=Object.freeze({__proto__:null,isURL:h,withoutQuery:u,getOrigin:x});const f="/mobile",b=(e,t)=>{if(!e)return e;const n=x(t?.href);return n?e.replace(n,"")||"/":e},g=e=>e;function N({router:e,handlerDecorator:t=g},n){const r=((e,t)=>{if(!e)return e;const n=b(e,t)||"",r=t?.pathname.startsWith(f);return r&&!h(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const i=r&&!h(r),l=!n.target||"_self"===n.target;i&&l&&(t.preventDefault(),e.push(r))}),n)}}const v=i((({className:e="",image:{size:t,...i}})=>{const l={width:t?.width?`${t?.width}px`:"100%",height:t?.height?`${t?.height}px`:"100%"};return r("picture",{className:e,children:[i.sources?.length?i.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:y(t)},`${r}_${e}`))):null,n("img",{src:i.src,className:`m-auto ${i.className||""}`,alt:i.alt||i.title,title:i.title,style:l,...t})]})}));function y(e){return e?`image/${String(e)}`:void 0}const w={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active"},k={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text"},$="w-full text-center font-sans select-none",S=i((({className:e,text:t,aboveText:r,appendLeft:i,href:l,target:a,onClick:s,children:c,disabled:o,rounded:m,version:d="none",ariaLabel:h,...u})=>{const x=c??n(C,{text:t,aboveText:r,appendLeft:i,rounded:m});return o?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${$} ${k[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:x}):n("a",{className:`${$} inline-block cursor-pointer no-underline ${w[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:a,onClick:s,"aria-label":h,role:l?"link":"button",...u,children:x})})),C=i((({text:e,aboveText:t,appendLeft:i,rounded:l})=>{const a=!e&&!t&&Boolean(i);return r("div",{className:`flex items-center justify-center ${a?"h-12 w-12":"px-9 gap-2 "+(t?"py-2":"py-3.5")} ${l?"rounded-full":""}`,children:[i||null,a?null:r("div",{children:[n("div",{className:"text-m-2xs text-left",children:t}),n("div",{className:"text-m-button font-medium text-left",children:e})]})]})})),_="first:mt-0 mt-3";const j={primary:"text-primary-text",secondary:"text-secondary-text"},D={primary:"bg-primary-main",secondary:"bg-secondary-text"},T=i((({className:e="",isDotted:t=!0,text:i,children:l,version:a="primary",white:s})=>r("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t&&n("div",{className:I(a,s)}),n("span",{className:s?"text-white":j[a],children:i||l})]}))),I=(e,t)=>`rounded-full inline-block mr-3 ${t?"bg-white":D[e]} ${"primary"===e?"w-2 h-2 min-w-2 min-h-2 mt-2":"w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5"}`;function L(e=[],t){return n("section",{className:"mt-3",role:"list",children:e.map(((e,r)=>n(T,{className:"mt-1.5 first:mt-0",text:e,version:t},String(r))))})}const R=i((({context:e,description:t,children:i,buttons:l,image:a,items:c,version:o="primary"})=>{const m=e.useRouter(),{handlerDecorator:d}=e;return r("div",{children:[t&&n("div",{className:"font-normal text-base mt-3",children:t}),i,c?.length&&L(c,o),l?.length&&n("div",{className:"mt-[18px]",children:l.map(((e,t)=>function({icon:e,...t},r){if(t?.text)return n(S,e?{className:_,appendLeft:n(s,{name:e,width:"24",height:"24"}),...t}:{className:_,...t},String(r))}(N({router:m,handlerDecorator:d},e),t)))}),a?.src&&n(v,{className:"mt-auto ml-7",image:a})]})}));function O(e=""){const t=c(e);return t<=4?"S":t<=8?"M":"L"}const A={left:"items-start",center:"items-center",right:"items-end"},M=i((({className:e,context:t,title:i,titleSize:l,description:a,children:s,buttons:c,image:o,items:d,version:h="primary",align:u="left"})=>r("div",{className:`font-sans flex flex-col grow h-full ${A[u]}`,children:[i&&n(m,{size:l||O(e),className:"font-medium m-0 whitespace-pre-wrap max-w-[600px] "+("primary"===h?"text-primary-text":""),children:i}),n(R,{context:t,buttons:c,image:o,children:s,description:a,items:d})]}))),B={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},V=i((e=>{const{children:t,className:r="",version:i="primary",role:l}=e;return n("section",{className:`font-sans p-9 box-border ${r||""} ${B[i]} ${P(r)} ${H(r)} `,role:l,children:n(M,{...e,children:t})})}));function P(e=""){const t=c(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}function H(e=""){const t=c(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Z="https://www.cbr-xml-daily.ru/daily_json.js",z=["USD","EUR"],E={USD:"DollarIcon",EUR:"EuroIcon"},F=[{text:"Все показатели",href:"https://cbr.ru/currency_base/daily/",version:"secondary"}],G=i((({className:e,context:t,title:i})=>{const{data:l}=t.useAsyncData(Z,J);return n(V,{className:e,context:t,title:i||"Курсы обмена валют",buttons:F,children:r("table",{children:[n("thead",{children:r("tr",{children:[n(U,{children:"Валюта"}),n(U,{className:"pl-11",children:"Курс"})]})}),n("tbody",{children:z.map((e=>{const t=(l?.Valute||{})[e]?.Value;return r("tr",{children:[n(W,{className:"pt-4",children:r("div",{className:"flex items-center",children:[n(s,{name:E[e],width:"24",height:"24"}),n("span",{className:"ml-2",children:e})]})}),n(W,{className:"pt-4 pl-11",children:K(t)})]},e)}))})]})})})),U=i((({className:e="",children:t})=>n("th",{className:`text-left font-normal text-sm text-secondary-text ${e}`,children:t}))),W=i((({className:e="",children:t})=>n("td",{className:`text-left font-normal text-base text-primary-text ${e}`,children:t})));async function J(){const e=await fetch(Z);return await e.json()}const X=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),K=e=>e?X.format(e):"",Q=i((({bgColor:e="transparent",className:t="",title:i,description:l,image:a})=>r("section",{className:`px-4 py-6 ${e} ${t}`,children:[i&&n(m,{size:"L",className:"text-primary-text mt-0 font-medium",children:i}),l&&n("p",{className:"font-normal text-m-md "+(i?"mt-2.5":""),children:l}),a?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(v,{image:a})})]}))),Y={left:"text-left",center:"text-center",right:"text-right"},q={double:"mb-8",single:"mb-[26px]"},ee={double:"gap-x-5 gap-y-[26px] flex-wrap",single:"gap-3.5 flex-col"},te=i((({className:e="",title:t,align:i,documents:l,icon:a,columnsMode:c="single"})=>{const o=ee[c];return r("section",{className:`font-sans p-[50px] bg-white ${e}`,children:[t&&n(m,{className:`font-medium mt-0 ${q[c]} ${Y[i??"center"]}`,children:t}),n("div",{className:`flex ${o}`,role:"list",children:l?.length?l.map((({text:e,fileSize:t,...i},l)=>r("a",{className:"group flex text-sm align-middle h-fit\n text-primary-text no-underline hover:text-primary-main\n "+("double"===c?"basis-[calc(50%-20px)]":""),role:"listitem",...i,children:[a&&n(s,{className:"mr-2.5 h-fit",name:a,width:"24px",height:"24px"}),r("span",{className:"self-center",children:[e,n("span",{className:"text-secondary-text group-hover:text-primary-main",children:i?.href&&re(ne(i.href),t)})]})]},String(l)))):null})]})})),ne=e=>{if(!e)return"";const t=e.split(".").pop();return!t||t.includes("/")?"":t},re=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ie=i((({className:e,title:t,image:i,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(m,{className:"font-medium m-0 text-center",children:t}),r("div",{className:"flex justify-center mt-9",children:[i?.src&&n(v,{className:"mr-6",image:i}),l?.length?n("div",{className:"flex flex-col",children:l.map(le)}):null]})]})));function le(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(s,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48"}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const ae={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},se=i((({title:e,description:t,blockVersion:i="primary",iconVersion:l,image:a,className:s="",items:c})=>{const o=ae[i];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${s}`,children:["small"===l?oe(o.icon):null,"big"===l?me(a):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${o.title}`,children:e}):null,t?n("div",{className:`text-sm ${o.description}`,children:t}):null,c?.length?ce(c):null]})]})}));function ce(e=[],t){return n("section",{className:"mt-1",role:"list",children:e.map(((e,r)=>n(T,{text:e,version:t},String(r))))})}function oe(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function me(e){return e?.src?n(v,{className:"pb-3 mr-auto",image:e}):null}const de={Headline:Q,LinkDocs:te,TextBlock:se,PictureText:ie},he=i((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 ",children:e?.length?e.map(ue(t)):null}))),ue=e=>(t,r)=>{const i=t?.accordionBlockType;if(!i||!(i in de))return null;return n("div",{className:"mb-5 last:mb-0 py-2.5",children:n(de[i],{context:e,...t,className:"!p-0"})},`block_${r}`)},xe=i((({label:e,blocks:t,bordered:i,context:l})=>{const{hasContent:a,icon:c,handleToggle:o}=(({context:e,blocks:t})=>{const[n,r]=e.useState(!1),i=t?.length;return{isActive:n,hasContent:i,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!i)return;r(!n);const t=(({target:e})=>"BUTTON"===e.tagName?e.nextSibling:e.parentNode.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:(i?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0 py-[14px]")+" border-solid border-main-divider",children:[r("button",{className:"border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n "+(a?"group cursor-pointer":""),onClick:o,children:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(a?"group-hover:text-primary-main":""),children:e}),a?n(s,{name:c,width:"24",height:"24"}):null]}),a?n(he,{blocks:t,context:l}):null]})})),pe=i((({title:e,description:t,accordionItems:i,context:l,className:a="",bordered:s})=>r("section",{className:`py-6 font-sans bg-white text-primary-text ${s?"px-4":""} ${a}`,children:[e?n(m,{className:"m-0 mb-2 font-medium text-center",size:"M",children:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,i?.length?n("ul",{className:"list-none m-0 p-0",children:i.map(((e,t)=>n(xe,{...e,context:l,bordered:s},`AccordionItem${t}`)))}):null]}))),fe=i((({className:e,viewBox:t,fill:r="none",width:i,height:l,paths:a,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:i,height:l,children:a.map((({d:e,fill:t,...r},i)=>n("path",{d:e,fill:t||"currentColor",...s,...r},i)))}))),be=["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","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","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","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","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],ge={"bg-white":"text-primary-main",transparent:"text-white"},Ne={"bg-white":"text-black",transparent:"text-white"},ve=i((({className:e="",href:t,children:i,targetBlank:l,bgColor:a="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self",children:[n(fe,{className:`${ge[a]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:be.map((e=>({d:e})))}),!s&&n("span",{className:`${Ne[a]} text-sm font-medium ml-2.5`,children:i||"Россельхозбанк"})]}))),ye=i((({className:e,title:t="Мобильное приложение",description:i,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ve,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3",children:[n("div",{className:"text-sm font-medium",children:t}),n("div",{className:"text-xs text-secondary-text",children:i})]})]}):null}))),we=i((({className:e,items:t,hasButton:i,context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(ke):null,i?n(S,{version:"primary",className:"my-4",...N({router:a,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),ke=(e,t)=>{const{type:i,text:l,description:a}=e;return r("div",{className:"mb-4",children:[n("div",{children:$e(i,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:a})]},String(t))},$e=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Se(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Se=e=>e.replaceAll(/\D/g,""),Ce=i((({title:e,links:t,className:i="",context:l})=>{const a=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:i,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-5 py-5",children:t.map(((e,t)=>n(_e,{index:t,...N({router:a,handlerDecorator:s},e)},String(t))))}):null]})})),_e=i((({className:e="",index:t,text:r,href:i,target:l,onClick:a})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),je=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],De=i((({href:e})=>{const{icon:t,width:r,height:i}=je.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("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:e,target:"_blank",rel:"noopener noreferrer",children:s&&n(s,{name:t,width:r,height:i,asSVG:!0,className:"block"})}):null})),Te=i((({className:e,media:t,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(De,{...N({router:i,handlerDecorator:l},e)},String(t))))})})),Ie=i((({className:e,links:t,context:i})=>{const l=i.useRouter(),{handlerDecorator:a}=i;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(Le,{index:t,...N({router:l,handlerDecorator:a},e)},String(t))))}):null]})})),Le=i((({className:e,index:t,text:r,href:i,target:l,onClick:a})=>n("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] ${e||""}`,href:i,target:l,onClick:a,children:r||`Документ ${t}`}))),Re=i((({className:e,context:t})=>{const{term:i,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(s,{name:"LoupeIcon",width:"24",height:"24"})}),!i&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("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:i,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),n(S,{version:"primary",text:"Найти",className:"w-auto invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Oe=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkDocs",documents:e.items||[]}]}))),Ae=i((({className:e="",documents:t,relatedEnterprises:i,contacts:l,socialMedia:a,topItems:s,context:c,horizontalNavigationTitle:o,subMenu:m})=>{const d={context:c,accordionItems:Oe(s)};return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(we,{className:"overflow-hidden",items:l,context:c,hasButton:!0}),n(pe,{className:"p-0 pt-0 pb-0 mb-4",...d}),n("div",{children:m?.map(Me)}),n(ye,{context:c,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Re,{context:c,className:"grow"}),n(Te,{className:"pb-4",media:a,context:c}),n(Ce,{title:o,links:i,context:c}),n(Ie,{links:t,context:c})]})})),Me=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`footer-${t}`)},Be=(e,t,n=((e,t)=>t.startsWith(e)))=>n(u(e),(e=>(e||"").replace(f,""))(u(h(e)?t.href:t.pathname))),Ve=e=>t=>Be(t.href,e),Pe=e=>t=>e?.href===t?.href,He=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(Pe(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Pe(e))))));var n,r,i};async function Ze(){const e=await fetch(ze());return await e.json()}function ze(){return`/wcms-resources/${a.SITEMAP||"sitemap"}.json`}const Ee="absolute left-0 -bottom-3 w-full h-[2px]",Fe=i((({className:e,text:t,href:i,target:l,active:a,onClick:s,children:c,bgColor:o="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:i,target:l,onClick:s,children:[n("span",{className:Ge(o,a),children:t||c}),a?n("div",{className:Ue(o,a)}):null]}))),Ge=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Ue=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ee}`:Ee,We=i((({context:e,burgerSubMenu:t,onClick:i,defaultLocation:l="",children:a})=>{const[c,o]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4",children:[n("button",{className:"absolute top-4 right-4",onClick:i,children:n(s,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r(S,{onClick:o,className:"flex items-center text-sm text-secondary-text mb-4",children:[n(s,{name:"GeolocationIcon",width:"24",height:"24",className:"box-border mr-2",asSVG:!0}),c]}),a,n("div",{className:"mb-7",children:t?.map(Je)}),n(Re,{context:e,className:"grow"})]})})),Je=(e,t)=>{const{icon:i,href:l,text:a}=e;return r(S,{href:l,className:"flex text-sm mb-4",children:[i?n(s,{className:"pr-1",name:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:a})]},`headerSubMenu-${t}`)},Xe=i((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pr-4",onClick:e,children:n(s,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(ve,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm",children:"Войти"})]}))),Ke=i((({className:e="",defaultLocation:t,bgColor:i="bg-white",context:l,topItems:a,burgerSubMenu:s})=>{const c=l.useRouter(),o=function(e){const{data:t}=e(ze(),Ze);return t||{}}(l.useAsyncData),{handlerDecorator:m}=l,d=He(o.topItems,a).find((e=>t=>t.items?.some(Ve(e))||Be(t.href,e))(c)),h=d?.items,u=(e=>(t=[])=>{const n=t?.filter(Ve(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(c)(h),[x,p]=l.useState(!1),f=()=>p(!x);return r("header",{className:`${i} ${e}`,children:[r("div",{className:"container px-4 py-0",children:[n(Xe,{onClick:f,bgColor:i}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex",children:h?.map(((e,t)=>Qe({...N({router:c,handlerDecorator:m},e),active:e===u,bgColor:i},t)))})})]}),x?n(We,{context:l,onClick:f,burgerSubMenu:s,defaultLocation:t,children:n(pe,{context:l,accordionItems:Oe(a),className:"p-0 pt-0 pb-0 mb-4"})}):null]})})),Qe=(e,t)=>n(Fe,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),Ye=i((({className:e="",context:t,title:r})=>n(V,{className:`pr-0 min-h-0 ${e}`,context:t,title:r,description:"Блок в разработке...",children:n("figure",{className:"m-0",children:qe()})}))),qe=(e=3)=>tt(100,e).map((e=>Math.floor(e))).map(et),et=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),tt=(e,t)=>[e].concat(t>0?tt(e/1.618,t-1):[]),nt={primary:"text-primary-text",secondary:"text-white"},rt={primary:"text-secondary-text",secondary:"text-white"};const it=i((({className:e,context:t,title:i,titleSize:l,description:a,benefits:c,buttons:o,image:m,items:d,version:h="primary"})=>r("div",{className:`${e||""}`,children:[n("div",{children:n(M,{context:t,title:i,titleSize:l||"XL",description:a,items:d,buttons:o,children:c?.length?n("div",{className:"mt-[19px]",children:c.map(((e,t)=>function(e,t,i){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(s,{className:"w-[25px] h-[25px] rounded-full box-border",name:e.icon,width:"24",height:"24"}),n("h4",{className:`font-medium text-m-base m-0 ${nt[i]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${rt[i]}`,children:e.description})]},String(t))}(e,t,h)))}):null})}),m?.src&&n("div",{className:"mt-5",children:n(v,{image:{className:"block",...m}})})]}))),lt=i((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(it,{...e})})})),at=i((({block:e,titleSize:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 py-6",role:"listitem",children:n("div",{className:"flex grow",children:n(it,{context:r,titleSize:t,...e})})}))),st=i((({className:e,context:t,duration:i=0,slides:l=[]})=>{const a=l.map((e=>e.productBlock)),[s,c]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${s}00%)`},role:"list",children:a.map(((e,r)=>n(at,{block:e,context:t},String(r))))}),n("div",{className:"flex px-4 py-6",children:l.map(((e,t)=>function({i:e,activeSlideIndex:t,onClick:r,duration:i}){return n("button",{type:"button",onClick:r,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:n("div",{className:"absolute bottom-0 left-0 w-full h-[3px] "+(e===t?"animate-slide bg-primary-main":"bg-main-divider"),style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})},String(e))}({i:t,activeSlideIndex:s,onClick:()=>c(t),duration:i})))})]})}));const ct=i((({className:e,title:t,description:i,steps:l,size:a="normal"})=>r("section",{className:`box-border font-sans text-primary-text bg-white px-4 py-6 flex flex-col ${e||""}`,children:[t&&n(m,{size:"M",className:"font-medium m-0 text-center",children:t}),i&&n("p",{className:`text-m-md text-center ${t&&"mt-2"}`,children:i}),l?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(((e,t)=>ot({step:e,size:a,i:t,length:l.length})))})}):null]}))),ot=e=>{const{step:t,size:i,i:l,length:a}=e,s=a-1===l,c="normal"===i?"ml-[34px]":"ml-[24px]";return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{children:[mt(t,i,l),!s&&n("div",{className:`min-h-8 h-full w-[2px] bg-secondary-light ${c}`})]}),r("div",{className:"flex flex-col justify-center relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:"font-normal text-sm text-secondary-text text-left "+(t.label?"mt-1":""),children:t.description})]})]},String(l))},String(l))},mt=(e,t,r)=>{const i="normal"===t?"38":"27";return n("div",{className:`${"normal"===t?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium text-secondary-text self-center ${"normal"===t?"text-m-title":"text-m-title-xs"}`,children:e.icon&&n(s,{name:e.icon,width:i,height:i})||r+1})})},dt={ExchangeRateTile:G,Footer:Ae,Header:Ke,Headline:Q,Placeholder:Ye,ProductBlock:lt,ProductGallery:st,TextBlock:se,StepsBlock:ct},ht=i((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:ut()}))),ut=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,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"}),n("path",{...e,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"})]})},xt=i((({className:e,context:t})=>{const i=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(ht,{onClick:i.like,ariaLabel:"Поставить отметку «лайк»"}),n(ht,{onClick:i.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:i.likeCount})]})})),pt=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ft=i((({className:e,context:t,blocksRegistry:i,data:{style:l,blocks:a,slots:s={},likeControl:c,colorPalette:o="pc"},blockDecorator:m=pt})=>{const{header:d}=s;return r("section",{className:`relative ${gt(l)} ${e||""}`,"data-theme":o,children:[d?.blocks?.length?n("div",{className:`${gt(d?.style)}`,children:d.blocks.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,a?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:a.map(((e,n)=>bt({block:e,blockDecorator:m,blocksRegistry:i,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(xt,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},l){const{type:a}=e;a in r||console.warn(`No block with "${a}" is registered`);const s=r[a]||Ye;return t({blockClassName:gt(e.style),block:e,render:e=>{const{version:c,content:o,blocks:m}=e.block;return n(s,{className:e.blockClassName,version:c,context:i,...o,children:m?.length?m.map(((e,n)=>bt({block:e,blockDecorator:t,blocksRegistry:r,context:i},n))):null},`${a}-${l}`)}},`block-${l}`)}function gt(e){return e?e.join(" "):""}const Nt=i((({HeadComponent:e,data:t,children:i})=>{const{title:l,description:a,keywords:s,robots:c,og:o}=t;return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),a&&n("meta",{name:"description",content:a}),s&&n("meta",{name:"keywords",content:s.join(",")}),c&&n("meta",{name:"robots",content:c.join(",")}),o?Object.entries(o).map((([e,t])=>n("meta",{name:`og:${e}`,content:t},e))):null,i]})}));function vt(e){return e?.filter((({mobile:e})=>!e?.hidden)).map(yt)}function yt(e){const{mobile:t}=e;return t?{...e,style:t.style?.length?t.style:e.style}:e}e.Blocks=dt,e.ContentPage=ft,e.ContentPageHead=Nt,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ke,e.Icon=s,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:i,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:i,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:a}=await n.json();return a||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=a,e.setup=t,e.toMobilePage=function(e){const{blocks:t,slots:n}=e;return{...e,blocks:vt(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:vt(n[t].blocks)}})),{})}},e.url=p,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Title_1 = require("../../ui-kit/Title/Title");
|
|
6
6
|
const AccordionItem_1 = require("./AccordionItem");
|
|
7
|
-
exports.Accordion = (0, uni_jsx_1.JSX)(({ title, accordionItems, context, className }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `
|
|
7
|
+
exports.Accordion = (0, uni_jsx_1.JSX)(({ title, description, accordionItems, context, className = '', bordered }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `py-6 font-sans bg-white text-primary-text ${bordered ? 'px-4' : ''} ${className}`, children: [title ? ((0, jsx_runtime_1.jsx)(Title_1.Title, { className: "m-0 mb-2 font-medium text-center", size: "M", children: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-m-md text-center", children: description }) : null, accordionItems?.length ? ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => ((0, jsx_runtime_1.jsx)(AccordionItem_1.AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem${i}`))) })) : null] }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oDAAiD;AAEjD,mDAAgD;AAInC,QAAA,SAAS,GAAG,IAAA,aAAG,
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oDAAiD;AAEjD,mDAAgD;AAInC,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5E,OAAO,CACL,qCACE,SAAS,EAAE,6CACT,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EACtB,IAAI,SAAS,EAAE,aAEd,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,aAAK,IAAC,SAAS,EAAC,kCAAkC,EAAC,IAAI,EAAC,GAAG,YACzD,KAAK,GACA,CACT,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,4BAA4B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACpF,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CACxB,+BAAI,SAAS,EAAC,mBAAmB,YAC9B,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAC/B,uBAAC,6BAAa,OAER,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAHb,gBAAgB,CAAC,EAAE,CAIxB,CACH,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -53,6 +53,11 @@ export interface AccordionItemCommonProps {
|
|
|
53
53
|
label?: string;
|
|
54
54
|
/** @title Блоки */
|
|
55
55
|
blocks?: AccordionBlockProps[];
|
|
56
|
+
/**
|
|
57
|
+
* @title Отображать/скрывать обводку элемента
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
bordered?: boolean;
|
|
56
61
|
}
|
|
57
62
|
/**
|
|
58
63
|
* @title Аккордеон
|
|
@@ -62,4 +67,11 @@ export interface AccordionContent {
|
|
|
62
67
|
title?: string;
|
|
63
68
|
/** @title Список */
|
|
64
69
|
accordionItems?: AccordionItemCommonProps[];
|
|
70
|
+
/** @title Подзаголовок */
|
|
71
|
+
description?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @title Отображать/скрывать обводку у элемента списка
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
bordered?: boolean;
|
|
65
77
|
}
|
|
@@ -3,31 +3,14 @@ exports.AccordionItem = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const hasContent =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
setIsActive(!isActive);
|
|
16
|
-
const contentBlock = getContentBlock(e);
|
|
17
|
-
contentBlock.style.maxHeight = contentBlock.style.maxHeight
|
|
18
|
-
? null
|
|
19
|
-
: `${contentBlock.scrollHeight}px`;
|
|
20
|
-
};
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: [(0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans text-primary-text
|
|
22
|
-
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: `m-0 text-xl pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: "24", height: "24" }) : null] }), hasContent ? ((0, jsx_runtime_1.jsx)("div", { className: `${isActive ? 'pb-5' : ''} text-sm transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 `, children: blocks?.length ? blocks.map((block, i) => renderBlock(block, i, context)) : null })) : null] }));
|
|
6
|
+
const AccordionItemInner_1 = require("./AccordionItemInner");
|
|
7
|
+
const isActiveHandler_1 = require("./utils/isActiveHandler");
|
|
8
|
+
exports.AccordionItem = (0, uni_jsx_1.JSX)(({ label, blocks, bordered, context }) => {
|
|
9
|
+
const { hasContent, icon, handleToggle } = (0, isActiveHandler_1.isActiveHandler)({
|
|
10
|
+
context,
|
|
11
|
+
blocks,
|
|
12
|
+
});
|
|
13
|
+
return ((0, jsx_runtime_1.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: [(0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
14
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: "24", height: "24" }) : null] }), hasContent ? (0, jsx_runtime_1.jsx)(AccordionItemInner_1.AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
23
15
|
});
|
|
24
|
-
const renderBlock = (block, i, context) => {
|
|
25
|
-
const type = block?.accordionBlockType;
|
|
26
|
-
if (!type || !(type in AccordionBlocks_1.AccordionBlocks)) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
const AccordionBlock = AccordionBlocks_1.AccordionBlocks[type];
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "mb-5 last:mb-0", children: (0, jsx_runtime_1.jsx)(AccordionBlock, { context: context, ...block }) }, `block_${i}`));
|
|
31
|
-
};
|
|
32
|
-
const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
|
|
33
16
|
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAE9C,6DAA0D;AAC1D,6DAA0D;AAI7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAA,iCAAe,EAAC;QACzD,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,gCACE,SAAS,EAAE,GACT,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,6CACzC,mCAAmC,aAEnC,oCACE,SAAS,EAAE;UACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC5C,OAAO,EAAE,YAAY,aAErB,iCACE,SAAS,EAAE,sCACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,YAED,KAAK,GACD,EACN,UAAU,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACzD,EACR,UAAU,CAAC,CAAC,CAAC,uBAAC,uCAAkB,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,CACN,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.AccordionItemInner = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const AccordionBlocks_1 = require("./AccordionBlocks");
|
|
6
|
+
exports.AccordionItemInner = (0, uni_jsx_1.JSX)(({ blocks, context }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 `, children: blocks?.length ? blocks.map(renderBlock(context)) : null }));
|
|
8
|
+
});
|
|
9
|
+
const renderBlock = (context) => (block, i) => {
|
|
10
|
+
const type = block?.accordionBlockType;
|
|
11
|
+
if (!type || !(type in AccordionBlocks_1.AccordionBlocks)) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
const AccordionBlock = AccordionBlocks_1.AccordionBlocks[type];
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "mb-5 last:mb-0 py-2.5", children: (0, jsx_runtime_1.jsx)(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=AccordionItemInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItemInner.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AAIvC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,gCAAK,SAAS,EAAE,2EAA2E,YACxF,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GACrD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE;IAC7F,MAAM,IAAI,GAAG,KAAK,EAAE,kBAAkB,CAAC;IACvC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,iCAAe,CAAC,EAAE;QACvC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,cAAc,GAAa,iCAAe,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,CACL,gCAAK,SAAS,EAAC,uBAAuB,YACpC,uBAAC,cAAc,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IADtB,SAAS,CAAC,EAAE,CAElD,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.isActiveHandler = void 0;
|
|
3
|
+
const isActiveHandler = ({ context, blocks }) => {
|
|
4
|
+
const [isActive, setIsActive] = context.useState(false);
|
|
5
|
+
const hasContent = blocks?.length;
|
|
6
|
+
const icon = isActive ? 'MinusIcon' : 'PlusIcon';
|
|
7
|
+
const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
|
|
8
|
+
const handleToggle = (e) => {
|
|
9
|
+
if (!hasContent) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
setIsActive(!isActive);
|
|
13
|
+
const contentBlock = getContentBlock(e);
|
|
14
|
+
contentBlock.style.maxHeight = contentBlock.style.maxHeight
|
|
15
|
+
? null
|
|
16
|
+
: `${contentBlock.scrollHeight}px`;
|
|
17
|
+
};
|
|
18
|
+
return { isActive, hasContent, icon, handleToggle };
|
|
19
|
+
};
|
|
20
|
+
exports.isActiveHandler = isActiveHandler;
|
|
21
|
+
//# sourceMappingURL=isActiveHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACrC,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;IAEnF,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AArBW,QAAA,eAAe,mBAqB1B"}
|
|
@@ -2,40 +2,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.BaseTile = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
-
const BlockItem_1 = require("../../ui-kit/BlockItem/BlockItem");
|
|
7
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
9
|
-
const Img_1 = require("../../ui-kit/Img");
|
|
10
5
|
const Title_1 = require("../../ui-kit/Title/Title");
|
|
11
|
-
const
|
|
6
|
+
const BaseTileInner_1 = require("./BaseTileInner");
|
|
7
|
+
const getTitleSizeByClassName_1 = require("./getTitleSizeByClassName");
|
|
8
|
+
const alignBlock = {
|
|
9
|
+
left: 'items-start',
|
|
10
|
+
center: 'items-center',
|
|
11
|
+
right: 'items-end',
|
|
12
|
+
};
|
|
12
13
|
const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
|
|
13
|
-
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', }) => {
|
|
14
|
-
|
|
15
|
-
const { handlerDecorator } = context;
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { size: getTitleSize(titleSize, className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), (0, jsx_runtime_1.jsxs)("div", { className: "flex grow w-full justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between items-start", children: [(0, jsx_runtime_1.jsxs)("div", { children: [description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })), children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image })] })] }));
|
|
14
|
+
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', align = 'left', }) => {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && ((0, jsx_runtime_1.jsx)(Title_1.Title, { size: titleSize || (0, getTitleSizeByClassName_1.getTitleSizeByClassName)(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), (0, jsx_runtime_1.jsx)(BaseTileInner_1.BaseTileInner, { context: context, buttons: buttons, image: image, children: children, description: description, items: items })] }));
|
|
17
16
|
});
|
|
18
|
-
function getTitleSize(titleSize, className = '') {
|
|
19
|
-
if (titleSize) {
|
|
20
|
-
return titleSize;
|
|
21
|
-
}
|
|
22
|
-
const colSpan = (0, getColSpan_1.getColSpan)(className);
|
|
23
|
-
if (colSpan <= 4) {
|
|
24
|
-
return 'S';
|
|
25
|
-
}
|
|
26
|
-
else if (colSpan <= 8) {
|
|
27
|
-
return 'M';
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return 'L';
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function renderItems(items = [], version) {
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: "max-w-[600px] mt-5", role: "list", children: items.map((_, i) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { className: i ? 'mt-2.5' : '', text: _, white: version !== 'primary' }, String(i)))) }));
|
|
35
|
-
}
|
|
36
|
-
function renderButton({ icon, asSVG, ...button }, i) {
|
|
37
|
-
if (!button?.text)
|
|
38
|
-
return;
|
|
39
|
-
return icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { appendLeft: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, asSVG: asSVG, width: "24", height: "24" }), ...button }, String(i))) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...button }, String(i)));
|
|
40
|
-
}
|
|
41
17
|
//# sourceMappingURL=BaseTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oDAAiD;AACjD,mDAAgD;AAEhD,uEAAoE;AAEpE,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAIF,MAAM,aAAa,GAAG,mDAAmD,CAAC;AAE7D,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,OAAO,CACL,iCAAK,SAAS,EAAE,uCAAuC,UAAU,CAAC,KAAK,CAAC,EAAE,aACvE,KAAK,IAAI,CACR,uBAAC,aAAK,IACJ,IAAI,EAAE,SAAS,IAAI,IAAA,iDAAuB,EAAC,SAAS,CAAC,EACrD,SAAS,EAAE,GAAG,aAAa,IAAI,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,YAEhF,KAAK,GACA,CACT,EACD,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,GACZ,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { BaseTileMainProps } from './BaseTileProps';
|
|
3
|
+
export interface BaseTileInnerProps extends BaseTileMainProps, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const BaseTileInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<BaseTileInnerProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.BaseTileInner = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
+
const Img_1 = require("../../ui-kit/Img");
|
|
7
|
+
const renderButton_1 = require("./renderButton");
|
|
8
|
+
const renderItems_1 = require("./renderItems");
|
|
9
|
+
exports.BaseTileInner = (0, uni_jsx_1.JSX)(({ context, description, children, buttons, image, items, version = 'primary' }) => {
|
|
10
|
+
const router = context.useRouter();
|
|
11
|
+
const { handlerDecorator } = context;
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [description && (0, jsx_runtime_1.jsx)("div", { className: `font-normal text-base mt-3`, children: description }), children, items?.length && (0, renderItems_1.renderItems)(items, version), buttons?.length && ((0, jsx_runtime_1.jsx)("div", { className: "mt-[18px]", children: buttons.map((button, index) => (0, renderButton_1.renderButton)((0, useLink_1.useLink)({ router, handlerDecorator }, button), index)) })), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image })] }));
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=BaseTileInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTileInner.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTileInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,0CAAuC;AAEvC,iDAA8C;AAC9C,+CAA4C;AAI/B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,OAAO,CACL,4CACG,WAAW,IAAI,gCAAK,SAAS,EAAE,4BAA4B,YAAG,WAAW,GAAO,EAChF,QAAQ,EACR,KAAK,EAAE,MAAM,IAAI,IAAA,yBAAW,EAAC,KAAK,EAAE,OAAO,CAAC,EAC5C,OAAO,EAAE,MAAM,IAAI,CAClB,gCAAK,SAAS,EAAC,WAAW,YACvB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,IAAA,2BAAY,EAAC,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CACnE,GACG,CACP,EACA,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,IACzD,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -16,9 +16,14 @@ export interface BaseTileIconButton extends ButtonWithIconProps {
|
|
|
16
16
|
icon?: IconName;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* @title
|
|
19
|
+
* @title Общий компонент плиток
|
|
20
20
|
*/
|
|
21
|
-
export interface BaseTileCommonProps {
|
|
21
|
+
export interface BaseTileCommonProps extends BaseTileTitleProps, BaseTileMainProps {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @title Заголовк плитки
|
|
25
|
+
*/
|
|
26
|
+
export interface BaseTileTitleProps {
|
|
22
27
|
/** @title Заголовок */
|
|
23
28
|
title?: string;
|
|
24
29
|
/**
|
|
@@ -26,7 +31,8 @@ export interface BaseTileCommonProps {
|
|
|
26
31
|
* @default M
|
|
27
32
|
*/
|
|
28
33
|
titleSize?: TitleSize;
|
|
29
|
-
|
|
34
|
+
}
|
|
35
|
+
export interface BaseTileMainProps {
|
|
30
36
|
description?: string;
|
|
31
37
|
image?: Picture;
|
|
32
38
|
/** @title Список */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getTitleSizeByClassName(className?: string): "L" | "M" | "S";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.getTitleSizeByClassName = void 0;
|
|
3
|
+
const getColSpan_1 = require("../../utils/getColSpan");
|
|
4
|
+
function getTitleSizeByClassName(className = '') {
|
|
5
|
+
const colSpan = (0, getColSpan_1.getColSpan)(className);
|
|
6
|
+
if (colSpan <= 4) {
|
|
7
|
+
return 'S';
|
|
8
|
+
}
|
|
9
|
+
else if (colSpan <= 8) {
|
|
10
|
+
return 'M';
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return 'L';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.getTitleSizeByClassName = getTitleSizeByClassName;
|
|
17
|
+
//# sourceMappingURL=getTitleSizeByClassName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTitleSizeByClassName.js","sourceRoot":"","sources":["../../../src/components/BaseTile/getTitleSizeByClassName.ts"],"names":[],"mappings":";;AAAA,uDAAoD;AACpD,SAAgB,uBAAuB,CAAC,SAAS,GAAG,EAAE;IACpD,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,SAAS,CAAC,CAAC;IACtC,IAAI,OAAO,IAAI,CAAC,EAAE;QAChB,OAAO,GAAG,CAAC;KACZ;SAAM,IAAI,OAAO,IAAI,CAAC,EAAE;QACvB,OAAO,GAAG,CAAC;KACZ;SAAM;QACL,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;AATD,0DASC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderButton = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
5
|
+
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
+
const PADDING_TOP_CLASSES = 'first:mt-0 mt-3';
|
|
7
|
+
function renderButton({ icon, ...button }, i) {
|
|
8
|
+
if (!button?.text)
|
|
9
|
+
return;
|
|
10
|
+
return icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: PADDING_TOP_CLASSES, appendLeft: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, width: "24", height: "24" }), ...button }, String(i))) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: PADDING_TOP_CLASSES, ...button }, String(i)));
|
|
11
|
+
}
|
|
12
|
+
exports.renderButton = renderButton;
|
|
13
|
+
//# sourceMappingURL=renderButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/BaseTile/renderButton.tsx"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,iDAA8C;AAG9C,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAE9C,SAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,EAAsB,EAAE,CAAS;IAC7E,IAAI,CAAC,MAAM,EAAE,IAAI;QAAE,OAAO;IAE1B,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,eAAM,IACL,SAAS,EAAE,mBAAmB,EAE9B,UAAU,EAAE,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,KACnD,MAAM,IAFL,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAM,IAAC,SAAS,EAAE,mBAAmB,KAAsB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvE,CAAC;AACJ,CAAC;AAbD,oCAaC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderItems = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const BlockItem_1 = require("../../ui-kit/BlockItem/BlockItem");
|
|
5
|
+
function renderItems(items = [], version) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: "mt-3", role: "list", children: items.map((_, i) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { className: "mt-1.5 first:mt-0", text: _, version: version }, String(i)))) }));
|
|
7
|
+
}
|
|
8
|
+
exports.renderItems = renderItems;
|
|
9
|
+
//# sourceMappingURL=renderItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderItems.js","sourceRoot":"","sources":["../../../src/components/BaseTile/renderItems.tsx"],"names":[],"mappings":";;;AACA,gEAA6D;AAE7D,SAAgB,WAAW,CAAC,QAAkB,EAAE,EAAE,OAAsB;IACtE,OAAO,CACL,oCAAS,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,YAClC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,qBAAS,IAAiB,SAAS,EAAC,mBAAmB,EAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,IAAlE,MAAM,CAAC,CAAC,CAAC,CAA6D,CACvF,CAAC,GACM,CACX,CAAC;AACJ,CAAC;AARD,kCAQC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
export declare const Blocks: {
|
|
2
2
|
ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
|
|
3
3
|
Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
|
|
4
|
-
Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
|
|
5
4
|
Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
|
|
6
5
|
Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
|
|
7
|
-
MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
|
|
8
|
-
PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
|
|
9
6
|
Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
|
|
10
7
|
ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
|
|
11
|
-
|
|
8
|
+
ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductGallery/ProductGallery").ProductGalleryProps, any>, context?: any) => any;
|
|
12
9
|
TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
|
|
13
|
-
Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile/Tile").TileProps, any>, context?: any) => any;
|
|
14
|
-
Navigation: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Navigation/Navigation").NavigationProps, any>, context?: any) => any;
|
|
15
10
|
StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
|
|
16
11
|
};
|