@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
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAClF,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,eAAe,CAAC;QACzD,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,cAAI,SAAS,EAAC,oEAAoE,aAChF,kBACE,SAAS,EAAE;UACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC5C,OAAO,EAAE,YAAY,aAErB,eACE,SAAS,EAAE,8BACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,YAED,KAAK,GACD,EACN,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACzD,EACR,UAAU,CAAC,CAAC,CAAC,KAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,CACN,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
3
|
+
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const AccordionItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<AccordionItemProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
+
import { AccordionItemInner } from './AccordionItemInner.js';
|
|
5
|
+
import { isActiveHandler } from './utils/isActiveHandler.js';
|
|
6
|
+
export const AccordionItem = JSX(({ label, blocks, bordered, context }) => {
|
|
7
|
+
const { hasContent, icon, handleToggle } = isActiveHandler({
|
|
8
|
+
context,
|
|
9
|
+
blocks,
|
|
10
|
+
});
|
|
11
|
+
return (_jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0 py-[14px]'} border-solid border-main-divider`, children: [_jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
12
|
+
${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [_jsx("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? _jsx(Icon, { name: icon, width: "24", height: "24" }) : null] }), hasContent ? _jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=AccordionItem.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItem.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,eAAe,CAAC;QACzD,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,CACL,cACE,SAAS,EAAE,GACT,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,6CACzC,mCAAmC,aAEnC,kBACE,SAAS,EAAE;UACT,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EAC5C,OAAO,EAAE,YAAY,aAErB,eACE,SAAS,EAAE,sCACT,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EACjD,EAAE,YAED,KAAK,GACD,EACN,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACzD,EACR,UAAU,CAAC,CAAC,CAAC,KAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,CACN,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { AccordionBlocks } from './AccordionBlocks.js';
|
|
4
|
+
export const AccordionItemInner = JSX(({ blocks, context }) => {
|
|
5
|
+
return (_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 }));
|
|
6
|
+
});
|
|
7
|
+
const renderBlock = (context) => (block, i) => {
|
|
8
|
+
const type = block?.accordionBlockType;
|
|
9
|
+
if (!type || !(type in AccordionBlocks)) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const AccordionBlock = AccordionBlocks[type];
|
|
13
|
+
return (_jsx("div", { className: "mb-5 last:mb-0 pb-5", children: _jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=AccordionItemInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItemInner.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,cAAK,SAAS,EAAE,0EAA0E,YACvF,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,eAAe,CAAC,EAAE;QACvC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,cAAc,GAAa,eAAe,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,CACL,cAAK,SAAS,EAAC,qBAAqB,YAClC,KAAC,cAAc,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IADxB,SAAS,CAAC,EAAE,CAEhD,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { AccordionBlocks } from './AccordionBlocks.js';
|
|
4
|
+
export const AccordionItemInner = JSX(({ blocks, context }) => {
|
|
5
|
+
return (_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 }));
|
|
6
|
+
});
|
|
7
|
+
const renderBlock = (context) => (block, i) => {
|
|
8
|
+
const type = block?.accordionBlockType;
|
|
9
|
+
if (!type || !(type in AccordionBlocks)) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const AccordionBlock = AccordionBlocks[type];
|
|
13
|
+
return (_jsx("div", { className: "mb-5 last:mb-0 py-2.5", children: _jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=AccordionItemInner.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItemInner.mobile.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemInner.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAqB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,cAAK,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,eAAe,CAAC,EAAE;QACvC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,cAAc,GAAa,eAAe,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,CACL,cAAK,SAAS,EAAC,uBAAuB,YACpC,KAAC,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,18 @@
|
|
|
1
|
+
export const isActiveHandler = ({ context, blocks }) => {
|
|
2
|
+
const [isActive, setIsActive] = context.useState(false);
|
|
3
|
+
const hasContent = blocks?.length;
|
|
4
|
+
const icon = isActive ? 'MinusIcon' : 'PlusIcon';
|
|
5
|
+
const getContentBlock = ({ target }) => target.tagName === 'BUTTON' ? target.nextSibling : target.parentNode.nextSibling;
|
|
6
|
+
const handleToggle = (e) => {
|
|
7
|
+
if (!hasContent) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
setIsActive(!isActive);
|
|
11
|
+
const contentBlock = getContentBlock(e);
|
|
12
|
+
contentBlock.style.maxHeight = contentBlock.style.maxHeight
|
|
13
|
+
? null
|
|
14
|
+
: `${contentBlock.scrollHeight}px`;
|
|
15
|
+
};
|
|
16
|
+
return { isActive, hasContent, icon, handleToggle };
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=isActiveHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,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"}
|
|
@@ -1,39 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useLink } from '../../hooks/useLink.js';
|
|
4
|
-
import { BlockItem } from '../../ui-kit/BlockItem/BlockItem.js';
|
|
5
|
-
import { Button } from '../../ui-kit/Button/Button.js';
|
|
6
|
-
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
7
|
-
import { Img } from '../../ui-kit/Img.js';
|
|
8
3
|
import { Title } from '../../ui-kit/Title/Title.js';
|
|
9
|
-
import {
|
|
4
|
+
import { BaseTileInner } from './BaseTileInner.js';
|
|
5
|
+
import { getTitleSizeByClassName } from './getTitleSizeByClassName.js';
|
|
10
6
|
const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
|
|
11
7
|
export const BaseTile = JSX(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', }) => {
|
|
12
|
-
|
|
13
|
-
const { handlerDecorator } = context;
|
|
14
|
-
return (_jsxs("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && (_jsx(Title, { size: getTitleSize(titleSize, className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), _jsxs("div", { className: "flex grow w-full justify-between", children: [_jsxs("div", { className: "flex flex-col justify-between items-start", children: [_jsxs("div", { children: [description && (_jsx("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })), children, items?.length ? renderItems(items, version) : null] }), buttons?.length ? (_jsx("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })) : null] }), image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image })] })] }));
|
|
8
|
+
return (_jsxs("div", { className: `font-sans flex flex-col grow h-full items-start`, children: [title && (_jsx(Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), _jsx(BaseTileInner, { context: context, buttons: buttons, image: image, children: children, description: description, items: items })] }));
|
|
15
9
|
});
|
|
16
|
-
function getTitleSize(titleSize, className = '') {
|
|
17
|
-
if (titleSize) {
|
|
18
|
-
return titleSize;
|
|
19
|
-
}
|
|
20
|
-
const colSpan = getColSpan(className);
|
|
21
|
-
if (colSpan <= 4) {
|
|
22
|
-
return 'S';
|
|
23
|
-
}
|
|
24
|
-
else if (colSpan <= 8) {
|
|
25
|
-
return 'M';
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return 'L';
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function renderItems(items = [], version) {
|
|
32
|
-
return (_jsx("section", { className: "max-w-[600px] mt-5", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { className: i ? 'mt-2.5' : '', text: _, white: version !== 'primary' }, String(i)))) }));
|
|
33
|
-
}
|
|
34
|
-
function renderButton({ icon, asSVG, ...button }, i) {
|
|
35
|
-
if (!button?.text)
|
|
36
|
-
return;
|
|
37
|
-
return icon ? (_jsx(Button, { appendLeft: _jsx(Icon, { name: icon, asSVG: asSVG, width: "24", height: "24" }), ...button }, String(i))) : (_jsx(Button, { ...button }, String(i)));
|
|
38
|
-
}
|
|
39
10
|
//# sourceMappingURL=BaseTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIpE,MAAM,aAAa,GAAG,mDAAmD,CAAC;AAE1E,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,GACpB,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,iDAAiD,aAC9D,KAAK,IAAI,CACR,KAAC,KAAK,IACJ,IAAI,EAAE,SAAS,IAAI,uBAAuB,CAAC,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,KAAC,aAAa,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 { BaseTileCommonProps } from './BaseTileProps';
|
|
3
|
+
export interface BaseTileProps extends BaseTileCommonProps, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const BaseTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<BaseTileProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Title } from '../../ui-kit/Title/Title.js';
|
|
4
|
+
import { BaseTileInner } from './BaseTileInner.js';
|
|
5
|
+
import { getTitleSizeByClassName } from './getTitleSizeByClassName.js';
|
|
6
|
+
const alignBlock = {
|
|
7
|
+
left: 'items-start',
|
|
8
|
+
center: 'items-center',
|
|
9
|
+
right: 'items-end',
|
|
10
|
+
};
|
|
11
|
+
const TITLE_CLASSES = 'font-medium m-0 whitespace-pre-wrap max-w-[600px]';
|
|
12
|
+
export const BaseTile = JSX(({ className, context, title, titleSize, description, children, buttons, image, items, version = 'primary', align = 'left', }) => {
|
|
13
|
+
return (_jsxs("div", { className: `font-sans flex flex-col grow h-full ${alignBlock[align]}`, children: [title && (_jsx(Title, { size: titleSize || getTitleSizeByClassName(className), className: `${TITLE_CLASSES} ${version === 'primary' ? 'text-primary-text' : ''}`, children: title })), _jsx(BaseTileInner, { context: context, buttons: buttons, image: image, children: children, description: description, items: items })] }));
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=BaseTile.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTile.mobile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,UAAU,GAA8B;IAC5C,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,WAAW;CACnB,CAAC;AAIF,MAAM,aAAa,GAAG,mDAAmD,CAAC;AAE1E,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,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,eAAK,SAAS,EAAE,uCAAuC,UAAU,CAAC,KAAK,CAAC,EAAE,aACvE,KAAK,IAAI,CACR,KAAC,KAAK,IACJ,IAAI,EAAE,SAAS,IAAI,uBAAuB,CAAC,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,KAAC,aAAa,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,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { useLink } from '../../hooks/useLink.js';
|
|
4
|
+
import { Img } from '../../ui-kit/Img.js';
|
|
5
|
+
import { renderButton } from './renderButton.js';
|
|
6
|
+
import { renderItems } from './renderItems.js';
|
|
7
|
+
export const BaseTileInner = JSX(({ context, description, children, buttons, image, items, version = 'primary' }) => {
|
|
8
|
+
const router = context.useRouter();
|
|
9
|
+
const { handlerDecorator } = context;
|
|
10
|
+
return (_jsxs("div", { className: `flex grow w-full justify-between}`, children: [_jsxs("div", { className: `flex flex-col justify-between items-start}`, children: [_jsxs("div", { children: [description && (_jsx("div", { className: `font-normal text-base mt-4 max-w-[600px]`, children: description })), children, items?.length && renderItems(items, version)] }), buttons?.length && (_jsx("div", { className: "flex mt-9 gap-3", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) }))] }), image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image })] }));
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=BaseTileInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTileInner.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTileInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAC9B,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,eAAK,SAAS,EAAE,mCAAmC,aACjD,eAAK,SAAS,EAAE,4CAA4C,aAC1D,0BACG,WAAW,IAAI,CACd,cAAK,SAAS,EAAE,0CAA0C,YAAG,WAAW,GAAO,CAChF,EACA,QAAQ,EACR,KAAK,EAAE,MAAM,IAAI,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,IACzC,EACL,OAAO,EAAE,MAAM,IAAI,CAClB,cAAK,SAAS,EAAC,iBAAiB,YAC7B,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CACnE,GACG,CACP,IACG,EACL,KAAK,EAAE,GAAG,IAAI,KAAC,GAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,IACzD,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,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { useLink } from '../../hooks/useLink.js';
|
|
4
|
+
import { Img } from '../../ui-kit/Img.js';
|
|
5
|
+
import { renderButton } from './renderButton.js';
|
|
6
|
+
import { renderItems } from './renderItems.js';
|
|
7
|
+
export const BaseTileInner = JSX(({ context, description, children, buttons, image, items, version = 'primary' }) => {
|
|
8
|
+
const router = context.useRouter();
|
|
9
|
+
const { handlerDecorator } = context;
|
|
10
|
+
return (_jsxs("div", { children: [description && _jsx("div", { className: `font-normal text-base mt-3`, children: description }), children, items?.length && renderItems(items, version), buttons?.length && (_jsx("div", { className: "mt-[18px]", children: buttons.map((button, index) => renderButton(useLink({ router, handlerDecorator }, button), index)) })), image?.src && _jsx(Img, { className: "mt-auto ml-7", image: image })] }));
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=BaseTileInner.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTileInner.mobile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTileInner.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAC9B,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,0BACG,WAAW,IAAI,cAAK,SAAS,EAAE,4BAA4B,YAAG,WAAW,GAAO,EAChF,QAAQ,EACR,KAAK,EAAE,MAAM,IAAI,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,EAC5C,OAAO,EAAE,MAAM,IAAI,CAClB,cAAK,SAAS,EAAC,WAAW,YACvB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CACnE,GACG,CACP,EACA,KAAK,EAAE,GAAG,IAAI,KAAC,GAAG,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,14 @@
|
|
|
1
|
+
import { getColSpan } from '../../utils/getColSpan.js';
|
|
2
|
+
export function getTitleSizeByClassName(className = '') {
|
|
3
|
+
const colSpan = getColSpan(className);
|
|
4
|
+
if (colSpan <= 4) {
|
|
5
|
+
return 'S';
|
|
6
|
+
}
|
|
7
|
+
else if (colSpan <= 8) {
|
|
8
|
+
return 'M';
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
return 'L';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=getTitleSizeByClassName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTitleSizeByClassName.js","sourceRoot":"","sources":["../../../src/components/BaseTile/getTitleSizeByClassName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,MAAM,UAAU,uBAAuB,CAAC,SAAS,GAAG,EAAE;IACpD,MAAM,OAAO,GAAG,UAAU,CAAC,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { Button } from '../../ui-kit/Button/Button.js';
|
|
3
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
+
export function renderButton({ icon, ...button }, i) {
|
|
5
|
+
if (!button?.text)
|
|
6
|
+
return;
|
|
7
|
+
return icon ? (_jsx(Button, { appendLeft: _jsx(Icon, { name: icon, width: "24", height: "24" }), ...button }, String(i))) : (_jsx(Button, { ...button }, String(i)));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=renderButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/BaseTile/renderButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,UAAU,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,KAAC,MAAM,IAAiB,UAAU,EAAE,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,KAAM,MAAM,IAA9E,MAAM,CAAC,CAAC,CAAC,CAAyE,CAChG,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { Button } from '../../ui-kit/Button/Button.js';
|
|
3
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
+
const PADDING_TOP_CLASSES = 'first:mt-0 mt-3';
|
|
5
|
+
export function renderButton({ icon, ...button }, i) {
|
|
6
|
+
if (!button?.text)
|
|
7
|
+
return;
|
|
8
|
+
return icon ? (_jsx(Button, { className: PADDING_TOP_CLASSES, appendLeft: _jsx(Icon, { name: icon, width: "24", height: "24" }), ...button }, String(i))) : (_jsx(Button, { className: PADDING_TOP_CLASSES, ...button }, String(i)));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=renderButton.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderButton.mobile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/renderButton.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAE9C,MAAM,UAAU,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,KAAC,MAAM,IACL,SAAS,EAAE,mBAAmB,EAE9B,UAAU,EAAE,KAAC,IAAI,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,KAAC,MAAM,IAAC,SAAS,EAAE,mBAAmB,KAAsB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { BlockItem } from '../../ui-kit/BlockItem/BlockItem.js';
|
|
3
|
+
export function renderItems(items = [], version) {
|
|
4
|
+
return (_jsx("section", { className: "max-w-[600px] mt-5", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { className: "mt-2.5 first:mt-0", text: _, version: version }, String(i)))) }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=renderItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderItems.js","sourceRoot":"","sources":["../../../src/components/BaseTile/renderItems.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,MAAM,UAAU,WAAW,CAAC,QAAkB,EAAE,EAAE,OAAsB;IACtE,OAAO,CACL,kBAAS,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,MAAM,YAChD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,KAAC,SAAS,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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { BlockItem } from '../../ui-kit/BlockItem/BlockItem.js';
|
|
3
|
+
export function renderItems(items = [], version) {
|
|
4
|
+
return (_jsx("section", { className: "mt-3", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { className: "mt-1.5 first:mt-0", text: _, version: version }, String(i)))) }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=renderItems.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderItems.mobile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/renderItems.mobile.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,MAAM,UAAU,WAAW,CAAC,QAAkB,EAAE,EAAE,OAAsB;IACtE,OAAO,CACL,kBAAS,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,YAClC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,KAAC,SAAS,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"}
|
|
@@ -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
|
};
|
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile.js';
|
|
2
2
|
import { Footer } from './Footer/Footer.js';
|
|
3
|
-
import { Gallery } from './Gallery/Gallery.js';
|
|
4
3
|
import { Header } from './Header/Header.js';
|
|
5
4
|
import { Headline } from './Headline/Headline.js';
|
|
6
|
-
import { MobileAppTile } from './MobileAppTile/MobileAppTile.js';
|
|
7
|
-
import { Navigation } from './Navigation/Navigation.js';
|
|
8
|
-
import { PictureText } from './PictureText/PictureText.js';
|
|
9
5
|
import { Placeholder } from './Placeholder/Placeholder.js';
|
|
10
6
|
import { ProductBlock } from './ProductBlock/ProductBlock.js';
|
|
11
|
-
import {
|
|
7
|
+
import { ProductGallery } from './ProductGallery/ProductGallery.js';
|
|
12
8
|
import { StepsBlock } from './StepsBlock/StepsBlock.js';
|
|
13
9
|
import { TextBlock } from './TextBlock/TextBlock.js';
|
|
14
|
-
import { Tile } from './Tile/Tile.js';
|
|
15
10
|
export const Blocks = {
|
|
16
11
|
ExchangeRateTile,
|
|
17
12
|
Footer,
|
|
18
|
-
Gallery,
|
|
19
13
|
Header,
|
|
20
14
|
Headline,
|
|
21
|
-
MobileAppTile,
|
|
22
|
-
PictureText,
|
|
23
15
|
Placeholder,
|
|
24
16
|
ProductBlock,
|
|
25
|
-
|
|
17
|
+
ProductGallery,
|
|
26
18
|
TextBlock,
|
|
27
|
-
Tile,
|
|
28
|
-
Navigation,
|
|
29
19
|
StepsBlock,
|
|
30
20
|
};
|
|
31
21
|
//# sourceMappingURL=Blocks.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Blocks.mobile.js","sourceRoot":"","sources":["../../src/components/Blocks.mobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,gBAAgB;IAChB,MAAM;IACN,MAAM;IACN,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,cAAc;IACd,SAAS;IACT,UAAU;CACX,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Logo } from '../../ui-kit/Logo/Logo.js';
|
|
4
|
-
import { SearchBar } from '../../ui-kit/SearchBar.js';
|
|
4
|
+
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar.js';
|
|
5
5
|
import { Contacts } from './Contacts.js';
|
|
6
6
|
import { HorizontalNavigation } from './HorizontalNavigation.js';
|
|
7
7
|
import { Sitemap } from './Sitemap.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAC3C,MAAM,4BAA4B,GAAG,cAAc,CAAC;AAIpD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,kBAAQ,SAAS,EAAE,uBAAuB,SAAS,IAAI,EAAE,EAAE,aACzD,eAAK,SAAS,EAAC,6CAA6C,aAC1D,KAAC,IAAI,IAAC,SAAS,EAAE,GAAG,sBAAsB,IAAI,4BAA4B,EAAE,GAAI,EAChF,KAAC,SAAS,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,GAAG,IAC5C,EACN,eAAK,SAAS,EAAC,wCAAwC,aACrD,KAAC,QAAQ,IACP,SAAS,EAAE,GAAG,sBAAsB,6BAA6B,4BAA4B,EAAE,EAC/F,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,OAAO,EAChB,SAAS,SACT,EACF,KAAC,OAAO,IAAC,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,GAAI,IAC/D,EACN,KAAC,WAAW,IAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,EACrD,KAAC,oBAAoB,IAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAI,EACrE,KAAC,eAAe,IAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAChD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Accordion } from '../Accordion/Accordion.js';
|
|
4
|
+
import { MobileAppTile } from '../MobileAppTile/MobileAppTile.js';
|
|
5
|
+
import { Contacts } from './Contacts.js';
|
|
6
|
+
import { HorizontalNavigation } from './HorizontalNavigation.js';
|
|
7
|
+
import { SocialMedia } from './SocialMedia.js';
|
|
3
8
|
import { TextInformation } from './TextInformation.js';
|
|
4
|
-
|
|
9
|
+
import { Button } from '../../ui-kit/Button/Button.js';
|
|
10
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
11
|
+
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar.js';
|
|
12
|
+
import { getAccordionItems } from '../../utils/getAccordionItems.js';
|
|
13
|
+
export const Footer = JSX(({ className = '', documents, relatedEnterprises, contacts, socialMedia, topItems, context, horizontalNavigationTitle, subMenu, }) => {
|
|
14
|
+
const propsTextBlock = {
|
|
15
|
+
context,
|
|
16
|
+
accordionItems: getAccordionItems(topItems),
|
|
17
|
+
};
|
|
18
|
+
return (_jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [_jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), _jsx(Accordion, { className: "p-0 pt-0 pb-0 mb-4", ...propsTextBlock }), _jsx("div", { children: subMenu?.map(renderSubMenuItem) }), _jsx(MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), _jsx(SearchBar, { context: context, className: "grow" }), _jsx(SocialMedia, { className: "pb-4", media: socialMedia, context: context }), _jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), _jsx(TextInformation, { links: documents, context: context })] }));
|
|
19
|
+
});
|
|
20
|
+
const renderSubMenuItem = (menu, i) => {
|
|
21
|
+
const { icon, href, text } = menu;
|
|
22
|
+
return (_jsxs(Button, { href: href, className: "flex text-sm mb-4", children: [icon ? _jsx(Icon, { className: "pr-1", name: icon, width: "24", height: "24", asSVG: true }) : null, _jsx("span", { className: "pl-0.5 font-medium", children: text })] }, `footer-${i}`));
|
|
23
|
+
};
|
|
5
24
|
//# sourceMappingURL=Footer.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,yBAAyB,EACzB,OAAO,GACR,EAAE,EAAE;IACH,MAAM,cAAc,GAAmB;QACrC,OAAO;QACP,cAAc,EAAE,iBAAiB,CAAC,QAAQ,CAAC;KAC5C,CAAC;IACF,OAAO,CACL,kBAAQ,SAAS,EAAE,2BAA2B,SAAS,EAAE,aACvD,KAAC,QAAQ,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,SAAG,EACrF,KAAC,SAAS,IAAC,SAAS,EAAC,oBAAoB,KAAK,cAAc,GAAI,EAChE,wBAAM,OAAO,EAAE,GAAG,CAAC,iBAAiB,CAAC,GAAO,EAC5C,KAAC,aAAa,IACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,qHAAsB,EAC5B,WAAW,EAAC,8FAA6B,GACzC,EACF,KAAC,SAAS,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,GAAG,EAChD,KAAC,WAAW,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,EACtE,KAAC,oBAAoB,IACnB,KAAK,EAAE,yBAAyB,EAChC,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,OAAO,GAChB,EACF,KAAC,eAAe,IAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAChD,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,IAAiB,EAAE,CAAS,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAClC,OAAO,CACL,MAAC,MAAM,IAAqB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,mBAAmB,aAClE,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EACjF,eAAM,SAAS,EAAC,oBAAoB,YAAE,IAAI,GAAQ,KAFvC,UAAU,CAAC,EAAE,CAGjB,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
2
|
import type { SitemapProps } from '../../services/sitemap/SitemapProps';
|
|
3
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
3
4
|
/**
|
|
4
5
|
* @title Тип контакта
|
|
5
6
|
* @enumNames [
|
|
@@ -22,6 +23,13 @@ export interface ContactInfo {
|
|
|
22
23
|
* @required ["href"]
|
|
23
24
|
*/
|
|
24
25
|
export declare type SocialMedia = Omit<LinkProps, 'text'>;
|
|
26
|
+
/**
|
|
27
|
+
* @title Пункт подменю
|
|
28
|
+
*/
|
|
29
|
+
export interface SubMenuItem extends LinkProps {
|
|
30
|
+
/** @title Иконка подменю */
|
|
31
|
+
icon?: IconName;
|
|
32
|
+
}
|
|
25
33
|
/**
|
|
26
34
|
* @title Подвал
|
|
27
35
|
* @required ["topItems"]
|
|
@@ -35,4 +43,8 @@ export interface FooterContent extends SitemapProps {
|
|
|
35
43
|
contacts?: ContactInfo[];
|
|
36
44
|
/** @title Социальные сети */
|
|
37
45
|
socialMedia?: SocialMedia[];
|
|
46
|
+
/** @title Заголовок для меню */
|
|
47
|
+
horizontalNavigationTitle?: string;
|
|
48
|
+
/** @title Подменю */
|
|
49
|
+
subMenu?: SubMenuItem[];
|
|
38
50
|
}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
1
2
|
import type { FooterLink } from './FooterLink';
|
|
2
|
-
export
|
|
3
|
+
export interface HorizontalNavigationProps extends FooterLink, UniBlockProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const HorizontalNavigation: (props: import("@redneckz/uni-jsx").PropsWithChildren<HorizontalNavigationProps, any>, context?: any) => any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
|
-
export const HorizontalNavigation = JSX(({
|
|
4
|
+
export const HorizontalNavigation = JSX(({ links, className = '', context }) => {
|
|
5
5
|
const router = context.useRouter();
|
|
6
6
|
const { handlerDecorator } = context;
|
|
7
|
-
return (_jsx("div", { className:
|
|
7
|
+
return (_jsx("div", { className: className, children: links?.length ? (_jsx("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (_jsx(HorizontalNavigationLink, { index: i, ...useLink({ router, handlerDecorator }, _) }, String(i)))) })) : null }));
|
|
8
8
|
});
|
|
9
|
-
const HorizontalNavigationLink = JSX(({ className, index, text, href, target, onClick }) => (_jsx("a", { className: `font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline
|
|
9
|
+
const HorizontalNavigationLink = JSX(({ className = '', index, text, href, target, onClick }) => (_jsx("a", { className: `font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
10
10
|
//# sourceMappingURL=HorizontalNavigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalNavigation.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"HorizontalNavigation.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAS9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,YACtB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,cAAK,SAAS,EAAC,qGAAqG,YACjH,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,KAAC,wBAAwB,IAEvB,KAAK,EAAE,CAAC,KACJ,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAFvC,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAQF,MAAM,wBAAwB,GAAG,GAAG,CAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,YACE,SAAS,EAAE,sHAAsH,SAAS,EAAE,EAC5I,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
|