@redneckz/wildless-cms-uni-blocks 0.13.9 → 0.13.11
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/ProjectSettings.d.ts +4 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +68 -38
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/HeaderSubMenu.d.ts +5 -1
- package/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
- package/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
- package/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
- package/bundle/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/bundle/components/StickyBottomMenu/StickyBottomMenu.fallback.d.ts +1 -0
- package/bundle/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
- package/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
- package/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
- package/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
- package/bundle/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
- package/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
- package/bundle/hooks/fallbackWCMSResource.d.ts +1 -1
- package/bundle/hooks/useActiveRoute.d.ts +2 -0
- package/bundle/hooks/useSWRResource.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +10 -6
- package/bundle/services/sitemap/SitemapData.d.ts +5 -1
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
- package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
- package/cosmos-static/icons/BurgerIcon.svg +1 -1
- package/cosmos-static/icons/ChartIcon.svg +1 -0
- package/cosmos-static/icons/MapOpenedIcon.svg +1 -0
- package/dist/ProjectSettings.d.ts +4 -0
- package/dist/ProjectSettings.js +6 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +3 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.page.json +37 -0
- package/dist/components/ContentPage/useContentPageData.js +1 -1
- package/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/dist/components/Header/Header.js +6 -5
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.d.ts +5 -1
- package/dist/components/Header/HeaderSubMenu.js +8 -7
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
- package/dist/components/StickyBottomMenu/ActiveSubMenu.js +9 -0
- package/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
- package/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
- package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +12 -0
- package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +38 -0
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.fallback.d.ts +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.fallback.js +7 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.fallback.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.js +6 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +30 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/dist/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
- package/dist/components/StickyBottomMenu/TopItemMobile.js +12 -0
- package/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/dist/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
- package/dist/components/StickyBottomMenu/renderMenuItems.js +13 -0
- package/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
- package/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
- package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js +26 -0
- package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/dist/hooks/fallbackWCMSResource.d.ts +1 -1
- package/dist/hooks/fallbackWCMSResource.js +3 -2
- package/dist/hooks/fallbackWCMSResource.js.map +1 -1
- package/dist/hooks/useActiveRoute.d.ts +2 -0
- package/dist/hooks/useActiveRoute.js +11 -0
- package/dist/hooks/useActiveRoute.js.map +1 -0
- package/dist/hooks/useSWRResource.d.ts +1 -1
- package/dist/hooks/useSWRResource.js +3 -2
- package/dist/hooks/useSWRResource.js.map +1 -1
- package/dist/icons/IconName.d.ts +10 -6
- package/dist/icons/IconName.js +9 -5
- package/dist/icons/IconName.js.map +1 -1
- package/dist/services/sitemap/SitemapData.d.ts +5 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +8 -5
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/DialogManager/Dialog.js +1 -1
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
- package/dist/ui-kit/DialogManager/isDialogOpen.js +5 -0
- package/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
- package/dist/ui-kit/LocationDialog/LocationDialog.js +1 -1
- package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js +2 -1
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +3 -1
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/lib/ProjectSettings.d.ts +4 -0
- package/lib/ProjectSettings.js +6 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +3 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.page.json +37 -0
- package/lib/components/ContentPage/useContentPageData.js +1 -1
- package/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/lib/components/Header/Header.js +6 -5
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.d.ts +5 -1
- package/lib/components/Header/HeaderSubMenu.js +8 -7
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
- package/lib/components/StickyBottomMenu/ActiveSubMenu.js +7 -0
- package/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
- package/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
- package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +10 -0
- package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +36 -0
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.fallback.d.ts +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.fallback.js +4 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.fallback.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.fixture.d.ts +8 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.fixture.mobile.d.ts +6 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.js +4 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +28 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/lib/components/StickyBottomMenu/TopItemMobile.d.ts +8 -0
- package/lib/components/StickyBottomMenu/TopItemMobile.js +9 -0
- package/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/lib/components/StickyBottomMenu/renderMenuItems.d.ts +2 -0
- package/lib/components/StickyBottomMenu/renderMenuItems.js +10 -0
- package/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
- package/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
- package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +23 -0
- package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/lib/hooks/fallbackWCMSResource.d.ts +1 -1
- package/lib/hooks/fallbackWCMSResource.js +3 -2
- package/lib/hooks/fallbackWCMSResource.js.map +1 -1
- package/lib/hooks/useActiveRoute.d.ts +2 -0
- package/lib/hooks/useActiveRoute.js +8 -0
- package/lib/hooks/useActiveRoute.js.map +1 -0
- package/lib/hooks/useSWRResource.d.ts +1 -1
- package/lib/hooks/useSWRResource.js +3 -2
- package/lib/hooks/useSWRResource.js.map +1 -1
- package/lib/icons/IconName.d.ts +10 -6
- package/lib/icons/IconName.js +9 -5
- package/lib/icons/IconName.js.map +1 -1
- package/lib/services/sitemap/SitemapData.d.ts +5 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +8 -5
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/DialogManager/Dialog.js +1 -1
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
- package/lib/ui-kit/DialogManager/isDialogOpen.js +2 -0
- package/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
- package/lib/ui-kit/LocationDialog/LocationDialog.js +1 -1
- package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +0 -1
- package/lib/ui-kit/LocationDialog/renderRegion.d.ts +0 -1
- package/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +0 -1
- package/lib/ui-kit/SearchBar/SearchBar.js +2 -1
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js +3 -1
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/mobile/bundle/ProjectSettings.d.ts +4 -0
- package/mobile/bundle/bundle.umd.js +446 -68
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +5 -1
- package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
- package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
- package/mobile/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenu.fallback.d.ts +1 -0
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
- package/mobile/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
- package/mobile/bundle/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
- package/mobile/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
- package/mobile/bundle/hooks/fallbackWCMSResource.d.ts +1 -1
- package/mobile/bundle/hooks/useActiveRoute.d.ts +2 -0
- package/mobile/bundle/hooks/useSWRResource.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +10 -6
- package/mobile/bundle/services/sitemap/SitemapData.d.ts +5 -1
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
- package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
- package/mobile/dist/ProjectSettings.d.ts +4 -0
- package/mobile/dist/ProjectSettings.js +6 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +3 -2
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.page.json +37 -0
- package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.d.ts +5 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +8 -7
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js +9 -0
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +12 -0
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +38 -0
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.fallback.d.ts +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.fallback.js +7 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.fallback.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +30 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
- package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js +12 -0
- package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
- package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js +13 -0
- package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
- package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js +26 -0
- package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/mobile/dist/hooks/fallbackWCMSResource.d.ts +1 -1
- package/mobile/dist/hooks/fallbackWCMSResource.js +3 -2
- package/mobile/dist/hooks/fallbackWCMSResource.js.map +1 -1
- package/mobile/dist/hooks/useActiveRoute.d.ts +2 -0
- package/mobile/dist/hooks/useActiveRoute.js +11 -0
- package/mobile/dist/hooks/useActiveRoute.js.map +1 -0
- package/mobile/dist/hooks/useSWRResource.d.ts +1 -1
- package/mobile/dist/hooks/useSWRResource.js +3 -2
- package/mobile/dist/hooks/useSWRResource.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +10 -6
- package/mobile/dist/icons/IconName.js +9 -5
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +5 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +8 -5
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
- package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js +5 -0
- package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +1 -1
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +2 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +3 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/mobile/lib/ProjectSettings.d.ts +4 -0
- package/mobile/lib/ProjectSettings.js +6 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +3 -2
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.page.json +37 -0
- package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.d.ts +5 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +8 -7
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js +7 -0
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +10 -0
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +36 -0
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.fallback.d.ts +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.fallback.js +4 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.fallback.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +28 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js +9 -0
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
- package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js +10 -0
- package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
- package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +23 -0
- package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/mobile/lib/hooks/fallbackWCMSResource.d.ts +1 -1
- package/mobile/lib/hooks/fallbackWCMSResource.js +3 -2
- package/mobile/lib/hooks/fallbackWCMSResource.js.map +1 -1
- package/mobile/lib/hooks/useActiveRoute.d.ts +2 -0
- package/mobile/lib/hooks/useActiveRoute.js +8 -0
- package/mobile/lib/hooks/useActiveRoute.js.map +1 -0
- package/mobile/lib/hooks/useSWRResource.d.ts +1 -1
- package/mobile/lib/hooks/useSWRResource.js +3 -2
- package/mobile/lib/hooks/useSWRResource.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +10 -6
- package/mobile/lib/icons/IconName.js +9 -5
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +5 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +8 -5
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
- package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js +2 -0
- package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +1 -1
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +2 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +3 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/mobile/src/ProjectSettings.ts +8 -0
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +2 -2
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +37 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -1
- package/mobile/src/components/ContentPage/useContentPageData.ts +1 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +16 -8
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/StickyBottomMenu/ActiveSubMenu.tsx +16 -0
- package/mobile/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +32 -0
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +102 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.example.json +35 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.fallback.ts +8 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +44 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +11 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +24 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuProps.tsx +10 -0
- package/mobile/src/components/StickyBottomMenu/TopItemMobile.tsx +32 -0
- package/mobile/src/components/StickyBottomMenu/renderMenuItems.tsx +32 -0
- package/mobile/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +34 -0
- package/mobile/src/hooks/fallbackWCMSResource.ts +8 -3
- package/mobile/src/hooks/useActiveRoute.ts +12 -0
- package/mobile/src/hooks/useSWRResource.ts +3 -1
- package/mobile/src/icons/BurgerIcon.svg +4 -4
- package/mobile/src/icons/ChartIcon.svg +7 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MapOpenedIcon.svg +5 -0
- package/mobile/src/services/sitemap/SitemapData.ts +5 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -12
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +16 -7
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +2 -2
- package/mobile/src/ui-kit/DialogManager/isDialogOpen.ts +4 -0
- package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -2
- package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +2 -2
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +5 -3
- package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +11 -0
- package/package.json +1 -1
- package/src/ProjectSettings.ts +8 -0
- package/src/components/ApplicationForm/ResponseNotification.tsx +2 -2
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/ContentPage/ContentPage.page.json +37 -0
- package/src/components/ContentPage/ContentPage.tsx +3 -1
- package/src/components/ContentPage/useContentPageData.ts +1 -1
- package/src/components/Header/Header.tsx +12 -6
- package/src/components/Header/HeaderSubMenu.tsx +16 -8
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/StickyBottomMenu/ActiveSubMenu.tsx +16 -0
- package/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +32 -0
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +102 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.example.json +35 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.fallback.ts +8 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.mobile.tsx +36 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.tsx +36 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +44 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.tsx +4 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +11 -0
- package/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +24 -0
- package/src/components/StickyBottomMenu/StickyBottomMenuProps.tsx +10 -0
- package/src/components/StickyBottomMenu/TopItemMobile.tsx +32 -0
- package/src/components/StickyBottomMenu/renderMenuItems.tsx +32 -0
- package/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +34 -0
- package/src/hooks/fallbackWCMSResource.ts +8 -3
- package/src/hooks/useActiveRoute.ts +12 -0
- package/src/hooks/useSWRResource.ts +3 -1
- package/src/icons/BurgerIcon.svg +4 -4
- package/src/icons/ChartIcon.svg +7 -0
- package/src/icons/IconName.ts +6 -389
- package/src/icons/MapOpenedIcon.svg +5 -0
- package/src/services/sitemap/SitemapData.ts +5 -1
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -12
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
- package/src/ui-kit/BaseTile/BaseTile.tsx +16 -7
- package/src/ui-kit/DialogManager/Dialog.tsx +2 -2
- package/src/ui-kit/DialogManager/isDialogOpen.ts +4 -0
- package/src/ui-kit/LocationDialog/LocationDialog.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBar.tsx +3 -2
- package/src/ui-kit/SearchDialog/SearchInput.tsx +2 -2
- package/src/ui-kit/Sitemap/Sitemap.tsx +5 -3
- package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +11 -0
- package/bin/migration-scripts/0.13.9.js +0 -59
- /package/cosmos-static/icons/{ResponceFailIcon.svg → ResponseFailIcon.svg} +0 -0
- /package/cosmos-static/icons/{ResponceOKIcon.svg → ResponseOKIcon.svg} +0 -0
- /package/mobile/src/icons/{ResponceFailIcon.svg → ResponseFailIcon.svg} +0 -0
- /package/mobile/src/icons/{ResponceOKIcon.svg → ResponseOKIcon.svg} +0 -0
- /package/src/icons/{ResponceFailIcon.svg → ResponseFailIcon.svg} +0 -0
- /package/src/icons/{ResponceOKIcon.svg → ResponseOKIcon.svg} +0 -0
|
@@ -11,9 +11,7 @@ import { RichText } from '../RichText/RichText';
|
|
|
11
11
|
import { Tags } from '../Tags/Tags';
|
|
12
12
|
import type { BaseProductTileContent } from './BaseProductTileContent';
|
|
13
13
|
|
|
14
|
-
interface BaseProductTileProps extends UniBlockProps, BaseProductTileContent {
|
|
15
|
-
isInsetTitle?: boolean;
|
|
16
|
-
}
|
|
14
|
+
interface BaseProductTileProps extends UniBlockProps, BaseProductTileContent {}
|
|
17
15
|
|
|
18
16
|
export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
19
17
|
({
|
|
@@ -24,15 +22,15 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
24
22
|
description,
|
|
25
23
|
headlineVersion = 'L',
|
|
26
24
|
align = 'text-left',
|
|
27
|
-
isInsetTitle = true,
|
|
28
25
|
benefitsVersion,
|
|
29
26
|
isTabularBenefits,
|
|
30
27
|
benefits,
|
|
31
28
|
__html,
|
|
29
|
+
isFullWidthTitle = true,
|
|
32
30
|
items,
|
|
33
31
|
isDotted = true,
|
|
34
32
|
listItemSize,
|
|
35
|
-
tags,
|
|
33
|
+
tags = [],
|
|
36
34
|
buttons,
|
|
37
35
|
image,
|
|
38
36
|
imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {},
|
|
@@ -48,29 +46,34 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
48
46
|
isEmbedded={true}
|
|
49
47
|
/>
|
|
50
48
|
);
|
|
49
|
+
const filteredBenefits = benefits?.filter(
|
|
50
|
+
(_) => _?.type === 'rte' || 'label' in _ || 'description' in _,
|
|
51
|
+
);
|
|
51
52
|
|
|
52
53
|
return (
|
|
53
54
|
<BaseTile
|
|
54
55
|
className={className}
|
|
55
56
|
padding={padding}
|
|
56
57
|
defaultPadding={defaultPadding}
|
|
57
|
-
{...(
|
|
58
|
+
{...(isFullWidthTitle ? { insetTitle: headline } : { title: headline })}
|
|
58
59
|
{...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight))}
|
|
59
60
|
imageAlign={imageAlign}
|
|
60
61
|
buttons={renderButtonsSection(buttons)}
|
|
61
62
|
>
|
|
62
63
|
<div className="flex flex-col gap-xl">
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
{filteredBenefits?.length ? (
|
|
65
|
+
<BenefitsList
|
|
66
|
+
benefitsVersion={benefitsVersion}
|
|
67
|
+
isTabularBenefits={isTabularBenefits}
|
|
68
|
+
benefits={filteredBenefits}
|
|
69
|
+
/>
|
|
70
|
+
) : null}
|
|
68
71
|
{__html ? <RichText __html={__html} /> : null}
|
|
69
72
|
{items?.length ? (
|
|
70
73
|
<List items={items} isDotted={isDotted} listItemSize={listItemSize} />
|
|
71
74
|
) : null}
|
|
72
75
|
{children}
|
|
73
|
-
{tags
|
|
76
|
+
{renderTags(tags)}
|
|
74
77
|
</div>
|
|
75
78
|
</BaseTile>
|
|
76
79
|
);
|
|
@@ -79,3 +82,5 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
79
82
|
|
|
80
83
|
const leftOrRightImage = (img: VNode, directionRight: boolean) =>
|
|
81
84
|
directionRight ? { rightImage: img } : { leftImage: img };
|
|
85
|
+
|
|
86
|
+
const renderTags = (tags: string[]) => (tags?.length ? <Tags tags={tags} /> : null);
|
|
@@ -15,9 +15,9 @@ interface BaseTileProps extends UniBlockProps {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const imageAlignmentMap: Record<Align, string> = {
|
|
18
|
-
start: 'self-start',
|
|
19
|
-
center: 'self-center',
|
|
20
|
-
end: 'self-end',
|
|
18
|
+
start: '@xl:self-start',
|
|
19
|
+
center: '@xl:self-center',
|
|
20
|
+
end: '@xl:self-end',
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export const BaseTile = JSX<BaseTileProps>(
|
|
@@ -42,7 +42,7 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
42
42
|
)}
|
|
43
43
|
>
|
|
44
44
|
{title ? <div className="relative">{title}</div> : null}
|
|
45
|
-
<div className="grow relative flex flex-
|
|
45
|
+
<div className="grow relative flex flex-col @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl">
|
|
46
46
|
{renderImageContainer(leftImage, { imageAlign })}
|
|
47
47
|
<div
|
|
48
48
|
className={style(
|
|
@@ -53,11 +53,16 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
53
53
|
{insetTitle}
|
|
54
54
|
<div className="grow">{children}</div>
|
|
55
55
|
{backImage ? (
|
|
56
|
-
<div className="mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4">
|
|
56
|
+
<div className="justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4">
|
|
57
|
+
{backImage}
|
|
58
|
+
</div>
|
|
57
59
|
) : null}
|
|
58
60
|
{buttons}
|
|
59
61
|
</div>
|
|
60
|
-
{renderImageContainer(rightImage, {
|
|
62
|
+
{renderImageContainer(rightImage, {
|
|
63
|
+
className: '-order-1 @xl:order-1',
|
|
64
|
+
imageAlign,
|
|
65
|
+
})}
|
|
61
66
|
</div>
|
|
62
67
|
</div>
|
|
63
68
|
),
|
|
@@ -69,7 +74,11 @@ const renderImageContainer = (
|
|
|
69
74
|
) =>
|
|
70
75
|
image ? (
|
|
71
76
|
<div
|
|
72
|
-
className={style(
|
|
77
|
+
className={style(
|
|
78
|
+
'md:flex-shrink-0 self-center',
|
|
79
|
+
imageAlign && imageAlignmentMap[imageAlign],
|
|
80
|
+
className,
|
|
81
|
+
)}
|
|
73
82
|
>
|
|
74
83
|
{image}
|
|
75
84
|
</div>
|
|
@@ -20,8 +20,8 @@ export const Dialog = JSX<DialogProps>(({ className, head, children, onClose })
|
|
|
20
20
|
}, [onClose]);
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
|
-
<div className={style('relative min-h-full bg-white', className)}>
|
|
24
|
-
<div className="sticky py-xl top-0 bg-white">
|
|
23
|
+
<div className={style('relative min-h-full bg-white p-5', className)}>
|
|
24
|
+
<div className="sticky py-xl top-0 bg-white z-10">
|
|
25
25
|
<CloseButton className="absolute top-0 right-0" onClose={handleClose} />
|
|
26
26
|
<div className="container">{head}</div>
|
|
27
27
|
</div>
|
|
@@ -62,7 +62,7 @@ export const LocationDialog = JSX<UniBlockProps>(() => {
|
|
|
62
62
|
.map(renderRegion(handleChangeLocation))}
|
|
63
63
|
</div>
|
|
64
64
|
) : (
|
|
65
|
-
<div className="columns-5">
|
|
65
|
+
<div className="columns-2 sm:columns-5">
|
|
66
66
|
{Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation))}
|
|
67
67
|
</div>
|
|
68
68
|
)}
|
|
@@ -3,6 +3,7 @@ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { CloseButton } from '../DialogManager/CloseButton';
|
|
4
4
|
import { SearchInput } from '../SearchDialog/SearchInput';
|
|
5
5
|
import { useSearchDialog } from '../SearchDialog/useSearchDialog';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
6
7
|
|
|
7
8
|
interface SearchBarProps {
|
|
8
9
|
className?: string;
|
|
@@ -27,9 +28,9 @@ export const SearchBar = JSX<SearchBarProps>(({ className }) => {
|
|
|
27
28
|
);
|
|
28
29
|
|
|
29
30
|
return (
|
|
30
|
-
<div className={className}>
|
|
31
|
+
<div className={style('relative', className)}>
|
|
31
32
|
<SearchInput value={value} onChange={handleInitialInputChange} />
|
|
32
|
-
<CloseButton className="absolute top-
|
|
33
|
+
<CloseButton className="absolute top-0 right-0 sm:hidden" onClose={resetQueryOnDialogClose} />
|
|
33
34
|
</div>
|
|
34
35
|
);
|
|
35
36
|
});
|
|
@@ -23,11 +23,11 @@ export const SearchInput = JSX<SearchInputProps>(
|
|
|
23
23
|
return (
|
|
24
24
|
<div className={style('font-sans relative', className)} role="form">
|
|
25
25
|
<div className="absolute h-full flex items-center pl-m pointer-events-none">
|
|
26
|
-
<Img image={{ icon: 'LoupeIcon' }} width="24" height="24" />
|
|
26
|
+
<Img image={{ icon: 'LoupeIcon', iconVersion: 'black' }} width="24" height="24" />
|
|
27
27
|
</div>
|
|
28
28
|
<input
|
|
29
29
|
className={style(
|
|
30
|
-
'h-12
|
|
30
|
+
'h-12 w-full px-10 text-l text-black outline-none box-border',
|
|
31
31
|
'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text',
|
|
32
32
|
)}
|
|
33
33
|
value={value}
|
|
@@ -34,9 +34,11 @@ const renderColumn = (menuItem: TopMenuItemProps & { onClick: () => void }, inde
|
|
|
34
34
|
>
|
|
35
35
|
{text || `Раздел ${index}`}
|
|
36
36
|
</a>
|
|
37
|
-
{items
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
{items
|
|
38
|
+
?.filter((_) => !_.displayArea || _.displayArea === 'Footer')
|
|
39
|
+
.map((_, i) => (
|
|
40
|
+
<ColumnItem key={String(i)} {..._} basePath={appendSlash(href)} index={i} />
|
|
41
|
+
))}
|
|
40
42
|
</div>
|
|
41
43
|
);
|
|
42
44
|
};
|
|
@@ -9,6 +9,7 @@ import { scrollToStart } from './scrollToStart';
|
|
|
9
9
|
export interface SwipeListScroll {
|
|
10
10
|
scrollLeft: () => void;
|
|
11
11
|
scrollRight: () => void;
|
|
12
|
+
scrollTo: (idx: number) => void;
|
|
12
13
|
canScrollLeft: boolean;
|
|
13
14
|
canScrollRight: boolean;
|
|
14
15
|
visibleIndicesRange: [number, number];
|
|
@@ -68,11 +69,21 @@ export const useSwipeListScroll = <E extends HTMLElement>({
|
|
|
68
69
|
}
|
|
69
70
|
}, [itemCount, canScrollRight]);
|
|
70
71
|
|
|
72
|
+
const scrollTo = useCallback(
|
|
73
|
+
(idx) => {
|
|
74
|
+
if (containerRef?.current) {
|
|
75
|
+
containerRef.current.children[idx]?.scrollIntoView();
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
[containerRef],
|
|
79
|
+
);
|
|
80
|
+
|
|
71
81
|
return [
|
|
72
82
|
containerRef,
|
|
73
83
|
{
|
|
74
84
|
scrollLeft,
|
|
75
85
|
scrollRight,
|
|
86
|
+
scrollTo,
|
|
76
87
|
canScrollLeft,
|
|
77
88
|
canScrollRight,
|
|
78
89
|
visibleIndicesRange: [minIndex, maxIndex],
|
package/package.json
CHANGED
package/src/ProjectSettings.ts
CHANGED
|
@@ -7,7 +7,9 @@ export interface ProjectSettings {
|
|
|
7
7
|
FORCED_DRAFT_FLOW?: boolean;
|
|
8
8
|
ASSIST_PROJECT_ID?: string;
|
|
9
9
|
SITEMAP?: string;
|
|
10
|
+
STICKY_MOBILE_MENU?: string;
|
|
10
11
|
FOOTER?: string;
|
|
12
|
+
PORTAL_DATA?: string;
|
|
11
13
|
CHAT_BOT?: string; // "personal" or "business"
|
|
12
14
|
CDN?: string; // Should ends with "/"
|
|
13
15
|
BASE_PATH?: string; // Should ends with "/"
|
|
@@ -42,9 +44,15 @@ export const projectSettings = new (class implements ProjectSettings {
|
|
|
42
44
|
get SITEMAP() {
|
|
43
45
|
return this._.SITEMAP;
|
|
44
46
|
}
|
|
47
|
+
get STICKY_MOBILE_MENU() {
|
|
48
|
+
return this._.STICKY_MOBILE_MENU;
|
|
49
|
+
}
|
|
45
50
|
get FOOTER() {
|
|
46
51
|
return this._.FOOTER;
|
|
47
52
|
}
|
|
53
|
+
get PORTAL_DATA() {
|
|
54
|
+
return this._.PORTAL_DATA;
|
|
55
|
+
}
|
|
48
56
|
get CHAT_BOT() {
|
|
49
57
|
return this._.CHAT_BOT;
|
|
50
58
|
}
|
|
@@ -14,9 +14,9 @@ export const ResponseNotification = JSX<ResponseNotificationProps>(({ responseTy
|
|
|
14
14
|
return (
|
|
15
15
|
<div className={`flex items-center p-lg rounded-md space-x-m ${backgroundColor}`}>
|
|
16
16
|
{responseOK ? (
|
|
17
|
-
<Img image={{ icon: '
|
|
17
|
+
<Img image={{ icon: 'ResponseOKIcon' }} width="42" height="42" />
|
|
18
18
|
) : (
|
|
19
|
-
<Img image={{ icon: '
|
|
19
|
+
<Img image={{ icon: 'ResponseFailIcon' }} width="37" height="34" />
|
|
20
20
|
)}
|
|
21
21
|
<div>
|
|
22
22
|
<Heading
|
|
@@ -34,6 +34,7 @@ import { RichTextBlock } from './RichTextBlock/RichTextBlock';
|
|
|
34
34
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
35
35
|
import { SafeDepositRental } from './SafeDepositRental/SafeDepositRental';
|
|
36
36
|
import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
37
|
+
import { StickyBottomMenu } from './StickyBottomMenu/StickyBottomMenu';
|
|
37
38
|
import { Tabs } from './Tabs/Tabs';
|
|
38
39
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
39
40
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
@@ -76,6 +77,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
76
77
|
RollupItem,
|
|
77
78
|
SafeDepositRental,
|
|
78
79
|
StepsBlock,
|
|
80
|
+
StickyBottomMenu,
|
|
79
81
|
Tabs,
|
|
80
82
|
TariffsTable,
|
|
81
83
|
TextBlock,
|
package/src/components/Blocks.ts
CHANGED
|
@@ -50,6 +50,7 @@ import { RichTextBlock } from './RichTextBlock/RichTextBlock';
|
|
|
50
50
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
51
51
|
import { SafeDepositRental } from './SafeDepositRental/SafeDepositRental';
|
|
52
52
|
import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
53
|
+
import { StickyBottomMenu } from './StickyBottomMenu/StickyBottomMenu';
|
|
53
54
|
import { SwipeListControlBlock } from './SwipeListControlBlock/SwipeListControlBlock';
|
|
54
55
|
import { Tabs } from './Tabs/Tabs';
|
|
55
56
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
@@ -110,6 +111,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
110
111
|
SafeDepositRental,
|
|
111
112
|
StepsBlock,
|
|
112
113
|
SwipeListControlBlock,
|
|
114
|
+
StickyBottomMenu,
|
|
113
115
|
Tabs,
|
|
114
116
|
TariffsTable,
|
|
115
117
|
TextBlock,
|
|
@@ -28,6 +28,43 @@
|
|
|
28
28
|
"type": "Footer",
|
|
29
29
|
"style": ["col-span-12"]
|
|
30
30
|
}
|
|
31
|
+
],
|
|
32
|
+
"stickyBottomMenu": [
|
|
33
|
+
{
|
|
34
|
+
"type": "StickyBottomMenu",
|
|
35
|
+
"content": {
|
|
36
|
+
"menuItems": [
|
|
37
|
+
{
|
|
38
|
+
"title": "Кредиты",
|
|
39
|
+
"url": "#EmptyWalletIcon",
|
|
40
|
+
"icon": {
|
|
41
|
+
"icon": "EmptyWalletIcon"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"title": "Карты",
|
|
46
|
+
"url": "#CardIcon",
|
|
47
|
+
"icon": {
|
|
48
|
+
"icon": "CardIcon"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"title": "Вклады",
|
|
53
|
+
"url": "#SafeIcon",
|
|
54
|
+
"icon": {
|
|
55
|
+
"icon": "SafeIcon"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"title": "Инвестиции",
|
|
60
|
+
"url": "#ChartIcon",
|
|
61
|
+
"icon": {
|
|
62
|
+
"icon": "ChartIcon"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
31
68
|
]
|
|
32
69
|
},
|
|
33
70
|
"blocks": []
|
|
@@ -11,6 +11,7 @@ import { CookiePopup } from '../../ui-kit/CookiePopup/CookiePopup';
|
|
|
11
11
|
import { DialogManager } from '../../ui-kit/DialogManager/DialogManager';
|
|
12
12
|
import { style } from '../../utils/style';
|
|
13
13
|
import { LikeControl } from '../LikeControl/LikeControl';
|
|
14
|
+
import { StickyBottomMenu } from '../StickyBottomMenu/StickyBottomMenu';
|
|
14
15
|
|
|
15
16
|
interface ContentPageProps extends UniBlockProps {
|
|
16
17
|
blocksRegistry: BlocksRegistry;
|
|
@@ -49,6 +50,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
|
|
|
49
50
|
</div>
|
|
50
51
|
{likeControl ? renderLikeControl() : null}
|
|
51
52
|
</section>
|
|
53
|
+
<StickyBottomMenu />
|
|
52
54
|
<DialogManager />
|
|
53
55
|
<CookiePopup
|
|
54
56
|
termLink={{ href: '/pd-policy#cookie', target: '_blank' }}
|
|
@@ -60,7 +62,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
|
|
|
60
62
|
);
|
|
61
63
|
|
|
62
64
|
ContentPage.childrenTypes = [];
|
|
63
|
-
ContentPage.slots = () => ['header', 'footer'];
|
|
65
|
+
ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
|
|
64
66
|
|
|
65
67
|
function renderLikeControl() {
|
|
66
68
|
return (
|
|
@@ -3,7 +3,7 @@ import type { BlocksRegistry } from '../../model/BlocksRegistry';
|
|
|
3
3
|
import type { BlockDef, ContentPageDef } from '../../model/ContentPageDef';
|
|
4
4
|
import baseData from './ContentPage.page.json';
|
|
5
5
|
|
|
6
|
-
const BLOCK_TYPES_BLACK_LIST = ['Header', 'Footer', 'Placeholder'];
|
|
6
|
+
const BLOCK_TYPES_BLACK_LIST = ['Header', 'Footer', 'Placeholder', 'StickyBottomMenu'];
|
|
7
7
|
|
|
8
8
|
export function useContentPageData(blocksRegistry: BlocksRegistry): ContentPageDef {
|
|
9
9
|
const [data, setData] = useState<ContentPageDef>(baseData);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
3
|
+
import { useActiveRoute } from '../../hooks/useActiveRoute';
|
|
4
|
+
import { useSWRResource } from '../../hooks/useSWRResource';
|
|
3
5
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
4
6
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
7
|
+
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
5
8
|
import { useSitemap } from '../../services/sitemap/useSitemap';
|
|
6
9
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
10
|
import { Logo } from '../../ui-kit/Logo/Logo';
|
|
@@ -10,7 +13,6 @@ import { style } from '../../utils/style';
|
|
|
10
13
|
import type { HeaderProps } from './HeaderProps';
|
|
11
14
|
import { HeaderSecondaryMenu } from './HeaderSecondaryMenu';
|
|
12
15
|
import { HeaderSubMenu } from './HeaderSubMenu';
|
|
13
|
-
import { isTopItemActive } from './isTopItemActive';
|
|
14
16
|
|
|
15
17
|
const BG_COLOR_TO_BLOCK_VERSION: Record<BgColorVersion, BlockVersion> = {
|
|
16
18
|
'bg-white': 'primary',
|
|
@@ -19,12 +21,16 @@ const BG_COLOR_TO_BLOCK_VERSION: Record<BgColorVersion, BlockVersion> = {
|
|
|
19
21
|
|
|
20
22
|
export const Header = JSX<HeaderProps>(
|
|
21
23
|
({ className, bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const { topItems, logo, officesLink, internetBankUrl, defaultLocation } = useSitemap(
|
|
24
|
+
const { topItems, logo, officesLink, defaultLocation } = useSitemap(
|
|
25
25
|
rest.options?.page?.fallback,
|
|
26
26
|
);
|
|
27
|
-
const activeTopItem = topItems
|
|
27
|
+
const [, activeTopItem] = useActiveRoute(topItems);
|
|
28
|
+
|
|
29
|
+
const { internetBankUrl } = useSWRResource<SitemapData>(
|
|
30
|
+
projectSettings.PORTAL_DATA || 'portal-data',
|
|
31
|
+
{},
|
|
32
|
+
'portal-resources',
|
|
33
|
+
);
|
|
28
34
|
|
|
29
35
|
return (
|
|
30
36
|
<BlockWrapper
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
4
3
|
import type { IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
|
|
5
4
|
import { useRouter } from '../../hooks/useRouter';
|
|
6
5
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
7
6
|
import type { IconVersion } from '../../model/IconVersion';
|
|
8
7
|
import type { LinkProps } from '../../model/LinkProps';
|
|
8
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
9
9
|
import { DropdownMenu } from './DropdownMenu';
|
|
10
|
+
import { findActiveSubItem } from './findActiveSubItem';
|
|
10
11
|
import { HeaderChatBotButton } from './HeaderChatBotButton';
|
|
11
12
|
import { HeaderSubMenuItem } from './HeaderSubMenuItem';
|
|
12
13
|
import { InternetBankButton } from './InternetBankButton';
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
interface HeaderSubMenuLinkProps extends LinkProps {
|
|
16
|
+
displayArea?: string;
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
export interface HeaderSubMenuProps {
|
|
16
20
|
version?: BlockVersion;
|
|
17
|
-
subItems?:
|
|
21
|
+
subItems?: HeaderSubMenuLinkProps[];
|
|
18
22
|
internetBankUrl?: string;
|
|
19
23
|
}
|
|
20
24
|
|
|
@@ -24,24 +28,28 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
|
|
|
24
28
|
|
|
25
29
|
const router = useRouter();
|
|
26
30
|
|
|
31
|
+
const visibleSubItems = useMemo(
|
|
32
|
+
() => subItems.filter((item) => !item.displayArea || item.displayArea === 'Header'),
|
|
33
|
+
[subItems],
|
|
34
|
+
);
|
|
27
35
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
28
36
|
|
|
29
|
-
const [visibleItemsCount, setVisibleItemsCount] = useState(
|
|
37
|
+
const [visibleItemsCount, setVisibleItemsCount] = useState(visibleSubItems.length);
|
|
30
38
|
|
|
31
|
-
const dropDownMenuItems =
|
|
39
|
+
const dropDownMenuItems = visibleSubItems.slice(visibleItemsCount);
|
|
32
40
|
|
|
33
41
|
const subItemsListRef = useRef<HTMLDivElement | null>(null);
|
|
34
42
|
const observerOptions: IntersectionObserverOptions = { rootRef: subItemsListRef };
|
|
35
43
|
const subItemsVisibilityHandlers = useMemo(
|
|
36
44
|
() =>
|
|
37
|
-
|
|
45
|
+
visibleSubItems.map((_, index) => (isIntersecting: boolean) => {
|
|
38
46
|
setVisibleItemsCount(
|
|
39
47
|
isIntersecting
|
|
40
48
|
? handleIntersectionActivation(index)
|
|
41
49
|
: handleIntersectionDeactivation(index),
|
|
42
50
|
);
|
|
43
51
|
}),
|
|
44
|
-
[
|
|
52
|
+
[visibleSubItems],
|
|
45
53
|
);
|
|
46
54
|
|
|
47
55
|
return (
|
|
@@ -50,7 +58,7 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
|
|
|
50
58
|
ref={subItemsListRef}
|
|
51
59
|
className="overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl"
|
|
52
60
|
>
|
|
53
|
-
{
|
|
61
|
+
{visibleSubItems.map((_, i) => (
|
|
54
62
|
<HeaderSubMenuItem
|
|
55
63
|
key={String(i)}
|
|
56
64
|
className={visibleItemsCount - 1 < i ? 'invisible' : ''}
|
|
@@ -25,7 +25,7 @@ export const PictureText = JSX<PictureTextProps>(
|
|
|
25
25
|
padding={padding}
|
|
26
26
|
headlineVersion={headlineVersion}
|
|
27
27
|
align={align}
|
|
28
|
-
|
|
28
|
+
isFullWidthTitle={false}
|
|
29
29
|
imageOptions={{ directionRight: false, imageAlign: 'center', ...imageOptions }}
|
|
30
30
|
{...rest}
|
|
31
31
|
>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import { ActiveSubMenuItem } from './ActiveSubMenuItem';
|
|
4
|
+
|
|
5
|
+
interface ActiveSubMenuProps {
|
|
6
|
+
activeMenuSubItems?: LinkProps[];
|
|
7
|
+
}
|
|
8
|
+
export const ActiveSubMenu = JSX<ActiveSubMenuProps>(({ activeMenuSubItems }) => {
|
|
9
|
+
return activeMenuSubItems ? (
|
|
10
|
+
<div className="mb-5">
|
|
11
|
+
{activeMenuSubItems.map((_, i) => (
|
|
12
|
+
<ActiveSubMenuItem item={_} i={i} />
|
|
13
|
+
))}
|
|
14
|
+
</div>
|
|
15
|
+
) : null;
|
|
16
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import { useLink } from '../../hooks/useLink';
|
|
4
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
+
|
|
6
|
+
interface ActiveSubMenuItemProps {
|
|
7
|
+
item: LinkProps;
|
|
8
|
+
i: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const ActiveSubMenuItem = JSX<ActiveSubMenuItemProps>(({ item, i }) => {
|
|
12
|
+
const link = useLink();
|
|
13
|
+
const { href, target, onClick } = link(item);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<a
|
|
17
|
+
key={`subItems-${String(i)}`}
|
|
18
|
+
className="py-3 text-h5 font-light flex justify-between cursor-pointer"
|
|
19
|
+
href={href}
|
|
20
|
+
target={target}
|
|
21
|
+
onClick={onClick}
|
|
22
|
+
>
|
|
23
|
+
{item.text}
|
|
24
|
+
<Img
|
|
25
|
+
image={{ icon: 'ChevronLeftIcon', iconVersion: 'black' }}
|
|
26
|
+
width="24"
|
|
27
|
+
height="24"
|
|
28
|
+
className="text-secondary-text rotate-180 opacity-30"
|
|
29
|
+
/>
|
|
30
|
+
</a>
|
|
31
|
+
);
|
|
32
|
+
});
|