@redneckz/wildless-cms-uni-blocks 0.13.9 → 0.13.10
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.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/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.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/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/dist/wlc.json +1 -0
- 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.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/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/lib/wlc.json +1 -0
- 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/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/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.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/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/dist/wlc.json +1 -0
- 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.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/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/lib/wlc.json +1 -0
- 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.tsx +43 -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/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/mobile/src/wlc.json +1 -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.fixture.mobile.tsx +36 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.tsx +36 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +43 -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/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/src/wlc.json +1 -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
package/bundle/bundle.umd.js
CHANGED
|
@@ -79,9 +79,15 @@
|
|
|
79
79
|
get SITEMAP() {
|
|
80
80
|
return this._.SITEMAP;
|
|
81
81
|
}
|
|
82
|
+
get STICKY_MOBILE_MENU() {
|
|
83
|
+
return this._.STICKY_MOBILE_MENU;
|
|
84
|
+
}
|
|
82
85
|
get FOOTER() {
|
|
83
86
|
return this._.FOOTER;
|
|
84
87
|
}
|
|
88
|
+
get PORTAL_DATA() {
|
|
89
|
+
return this._.PORTAL_DATA;
|
|
90
|
+
}
|
|
85
91
|
get CHAT_BOT() {
|
|
86
92
|
return this._.CHAT_BOT;
|
|
87
93
|
}
|
|
@@ -1131,8 +1137,9 @@
|
|
|
1131
1137
|
});
|
|
1132
1138
|
|
|
1133
1139
|
const EMPTY_VALUE$1 = {};
|
|
1134
|
-
|
|
1135
|
-
|
|
1140
|
+
const DEFAULT_FOLDER_NAME = 'wcms-resources';
|
|
1141
|
+
function useSWRResource(filename, fallback = EMPTY_VALUE$1, folderName = DEFAULT_FOLDER_NAME) {
|
|
1142
|
+
const { data } = useAsyncData(filename ? `/${folderName}/${filename}.json` : null, fetchJSONUnsafe, { fallback });
|
|
1136
1143
|
return data || EMPTY_VALUE$1;
|
|
1137
1144
|
}
|
|
1138
1145
|
|
|
@@ -1254,7 +1261,7 @@
|
|
|
1254
1261
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
1255
1262
|
const responseOK = responseType === 'OK';
|
|
1256
1263
|
const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
|
|
1257
|
-
return (jsxs("div", { className: `flex items-center p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: '
|
|
1264
|
+
return (jsxs("div", { className: `flex items-center p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponseOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponseFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-2xs" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
|
|
1258
1265
|
});
|
|
1259
1266
|
|
|
1260
1267
|
const API = CorporateLeadAPI();
|
|
@@ -2403,11 +2410,17 @@
|
|
|
2403
2410
|
scrollToStart(containerRef.current);
|
|
2404
2411
|
}
|
|
2405
2412
|
}, [itemCount, canScrollRight]);
|
|
2413
|
+
const scrollTo = useCallback((idx) => {
|
|
2414
|
+
if (containerRef?.current) {
|
|
2415
|
+
containerRef.current.children[idx]?.scrollIntoView();
|
|
2416
|
+
}
|
|
2417
|
+
}, [containerRef]);
|
|
2406
2418
|
return [
|
|
2407
2419
|
containerRef,
|
|
2408
2420
|
{
|
|
2409
2421
|
scrollLeft,
|
|
2410
2422
|
scrollRight,
|
|
2423
|
+
scrollTo,
|
|
2411
2424
|
canScrollLeft,
|
|
2412
2425
|
canScrollRight,
|
|
2413
2426
|
visibleIndicesRange: [minIndex, maxIndex],
|
|
@@ -2595,12 +2608,15 @@
|
|
|
2595
2608
|
});
|
|
2596
2609
|
|
|
2597
2610
|
const imageAlignmentMap = {
|
|
2598
|
-
start: 'self-start',
|
|
2599
|
-
center: 'self-center',
|
|
2600
|
-
end: 'self-end',
|
|
2611
|
+
start: '@xl:self-start',
|
|
2612
|
+
center: '@xl:self-center',
|
|
2613
|
+
end: '@xl:self-end',
|
|
2601
2614
|
};
|
|
2602
|
-
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-
|
|
2603
|
-
|
|
2615
|
+
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-col @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
|
|
2616
|
+
className: '-order-1 @xl:order-1',
|
|
2617
|
+
imageAlign,
|
|
2618
|
+
})] })] })));
|
|
2619
|
+
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2604
2620
|
|
|
2605
2621
|
const cardColumnsModeStyleMap = {
|
|
2606
2622
|
1: 'grid-cols-1',
|
|
@@ -2705,12 +2721,14 @@
|
|
|
2705
2721
|
const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
|
|
2706
2722
|
const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
|
|
2707
2723
|
|
|
2708
|
-
const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left',
|
|
2724
|
+
const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
|
|
2709
2725
|
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
2710
2726
|
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
2711
|
-
|
|
2727
|
+
const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
|
|
2728
|
+
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
|
|
2712
2729
|
});
|
|
2713
2730
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
2731
|
+
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
2714
2732
|
|
|
2715
2733
|
const CarouselProgramsCard = JSX(({ className, title, icon, list, href, target, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-3xl", ...rest, children: jsx(LinkWrapper, { className: "flex items-center h-full", href: href, target: target, children: jsx(BaseProductTile, { title: title, headlineVersion: "XS", image: icon, imageOptions: { directionRight: false, imageAlign: 'center' }, benefits: list?.map((_) => ({
|
|
2716
2734
|
type: 'default',
|
|
@@ -3273,7 +3291,7 @@
|
|
|
3273
3291
|
const handleChange = useCallback((ev) => {
|
|
3274
3292
|
onChange && onChange(ev.target?.value || '');
|
|
3275
3293
|
}, [onChange]);
|
|
3276
|
-
return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12
|
|
3294
|
+
return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 w-full px-10 text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
|
|
3277
3295
|
});
|
|
3278
3296
|
|
|
3279
3297
|
const useDebouncedEffect = (effect, deps, delay = 300) => useEffect(() => {
|
|
@@ -3368,7 +3386,7 @@
|
|
|
3368
3386
|
close();
|
|
3369
3387
|
onClose && onClose();
|
|
3370
3388
|
}, [onClose]);
|
|
3371
|
-
return (jsxs("div", { className: style('relative min-h-full bg-white', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
|
|
3389
|
+
return (jsxs("div", { className: style('relative min-h-full bg-white p-5', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
|
|
3372
3390
|
});
|
|
3373
3391
|
|
|
3374
3392
|
const Sitemap = JSX(({ className, topItems }) => {
|
|
@@ -3377,7 +3395,9 @@
|
|
|
3377
3395
|
});
|
|
3378
3396
|
const renderColumn = (menuItem, index) => {
|
|
3379
3397
|
const { text, items, href, target, onClick } = menuItem;
|
|
3380
|
-
return (jsxs("div", { className: "flex flex-col gap-s w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items
|
|
3398
|
+
return (jsxs("div", { className: "flex flex-col gap-s w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items
|
|
3399
|
+
?.filter((_) => !_.displayArea || _.displayArea === 'Footer')
|
|
3400
|
+
.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
|
|
3381
3401
|
};
|
|
3382
3402
|
const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
|
|
3383
3403
|
const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
@@ -3432,7 +3452,7 @@
|
|
|
3432
3452
|
open({ initialQuery: _ }, { onClose: resetQueryOnDialogClose });
|
|
3433
3453
|
}
|
|
3434
3454
|
}, [resetQueryOnDialogClose]);
|
|
3435
|
-
return (jsxs("div", { className: className, children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-
|
|
3455
|
+
return (jsxs("div", { className: style('relative', className), children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
|
|
3436
3456
|
});
|
|
3437
3457
|
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
3438
3458
|
|
|
@@ -3494,6 +3514,16 @@
|
|
|
3494
3514
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
3495
3515
|
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-52 border-r pr-s border-main-divider last:border-r-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
3496
3516
|
|
|
3517
|
+
const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
3518
|
+
|
|
3519
|
+
const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
|
|
3520
|
+
|
|
3521
|
+
function useActiveRoute(items = []) {
|
|
3522
|
+
const router = useRouter();
|
|
3523
|
+
const activeIndex = items.findIndex(isTopItemActive(router));
|
|
3524
|
+
return [activeIndex, items[activeIndex]];
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3497
3527
|
const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
|
|
3498
3528
|
const link = useLink({ isRemote: true });
|
|
3499
3529
|
const { href, target, text, onClick } = link(rest);
|
|
@@ -3596,7 +3626,7 @@
|
|
|
3596
3626
|
}, []);
|
|
3597
3627
|
return (jsxs(Dialog, { head: jsxs("div", { children: [currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
|
|
3598
3628
|
.filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
|
|
3599
|
-
.map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
|
|
3629
|
+
.map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-2 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
|
|
3600
3630
|
});
|
|
3601
3631
|
const regionFirstLetter = (region) => region.name?.charAt(0) || '';
|
|
3602
3632
|
const cleanUpRegions = (regions) => regions.map((region) => ({
|
|
@@ -3644,6 +3674,13 @@
|
|
|
3644
3674
|
}) })] }));
|
|
3645
3675
|
});
|
|
3646
3676
|
|
|
3677
|
+
const findActiveSubItem = (router) => (items = []) => {
|
|
3678
|
+
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
3679
|
+
return possibleActiveSubItems?.length
|
|
3680
|
+
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
3681
|
+
: undefined;
|
|
3682
|
+
};
|
|
3683
|
+
|
|
3647
3684
|
const getNS = (_) => globalThis[_];
|
|
3648
3685
|
function useExternalNS(namespaceName, url) {
|
|
3649
3686
|
const [externalNS, setExternalNS] = useState();
|
|
@@ -3725,43 +3762,33 @@
|
|
|
3725
3762
|
};
|
|
3726
3763
|
const InternetBankButton = JSX(({ version, internetBankUrl }) => internetBankUrl ? (jsx(Button, { href: internetBankUrl, ariaLabel: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A", target: "_blank", className: style('py-s ml-s text-l font-light whitespace-nowrap hover:text-primary-main', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A" })) : null);
|
|
3727
3764
|
|
|
3728
|
-
const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
3729
|
-
|
|
3730
|
-
const findActiveSubItem = (router) => (items = []) => {
|
|
3731
|
-
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
3732
|
-
return possibleActiveSubItems?.length
|
|
3733
|
-
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
3734
|
-
: undefined;
|
|
3735
|
-
};
|
|
3736
|
-
|
|
3737
3765
|
const HeaderSubMenu = JSX(({ subItems = [], version, internetBankUrl }) => {
|
|
3738
3766
|
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
3739
3767
|
const router = useRouter();
|
|
3768
|
+
const visibleSubItems = useMemo(() => subItems.filter((item) => !item.displayArea || item.displayArea === 'Header'), [subItems]);
|
|
3740
3769
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
3741
|
-
const [visibleItemsCount, setVisibleItemsCount] = useState(
|
|
3742
|
-
const dropDownMenuItems =
|
|
3770
|
+
const [visibleItemsCount, setVisibleItemsCount] = useState(visibleSubItems.length);
|
|
3771
|
+
const dropDownMenuItems = visibleSubItems.slice(visibleItemsCount);
|
|
3743
3772
|
const subItemsListRef = useRef(null);
|
|
3744
3773
|
const observerOptions = { rootRef: subItemsListRef };
|
|
3745
|
-
const subItemsVisibilityHandlers = useMemo(() =>
|
|
3774
|
+
const subItemsVisibilityHandlers = useMemo(() => visibleSubItems.map((_, index) => (isIntersecting) => {
|
|
3746
3775
|
setVisibleItemsCount(isIntersecting
|
|
3747
3776
|
? handleIntersectionActivation(index)
|
|
3748
3777
|
: handleIntersectionDeactivation(index));
|
|
3749
|
-
}), [
|
|
3750
|
-
return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children:
|
|
3778
|
+
}), [visibleSubItems]);
|
|
3779
|
+
return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children: visibleSubItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, jsxs("div", { className: "flex", children: [projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] })] }));
|
|
3751
3780
|
});
|
|
3752
3781
|
const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
|
|
3753
3782
|
const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
|
|
3754
3783
|
|
|
3755
|
-
const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
|
|
3756
|
-
|
|
3757
3784
|
const BG_COLOR_TO_BLOCK_VERSION = {
|
|
3758
3785
|
'bg-white': 'primary',
|
|
3759
3786
|
transparent: 'transparent',
|
|
3760
3787
|
};
|
|
3761
3788
|
const Header = JSX(({ className, bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
3762
|
-
const
|
|
3763
|
-
const
|
|
3764
|
-
const
|
|
3789
|
+
const { topItems, logo, officesLink, defaultLocation } = useSitemap(rest.options?.page?.fallback);
|
|
3790
|
+
const [, activeTopItem] = useActiveRoute(topItems);
|
|
3791
|
+
const { internetBankUrl } = useSWRResource(projectSettings.PORTAL_DATA || 'portal-data', {}, 'portal-resources');
|
|
3765
3792
|
return (jsx(BlockWrapper, { tag: "header", className: style('pt-3xl px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", officesLink: officesLink, defaultLocation: defaultLocation })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }) }));
|
|
3766
3793
|
});
|
|
3767
3794
|
|
|
@@ -4437,7 +4464,7 @@
|
|
|
4437
4464
|
const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit) : null] })) : null;
|
|
4438
4465
|
const renderValueBlock = (title, value = 0) => (jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre", children: [jsx(Text, { font: "font-light", size: "text-l", children: title }), jsxs(Text, { size: "text-h6", color: "text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
|
|
4439
4466
|
|
|
4440
|
-
const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align,
|
|
4467
|
+
const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isFullWidthTitle: false, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
|
|
4441
4468
|
|
|
4442
4469
|
const GOLDEN_RATIO = 1.618;
|
|
4443
4470
|
const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border', className), ...rest, children: [jsx(Headline, { className: "max-w-[600px]", title: title, description: description, headlineVersion: "L", align: "text-left", isEmbedded: true }), jsx("figure", { className: "m-0 mt-xl min-w-[80%]", children: renderShimmer() })] })));
|
|
@@ -4718,6 +4745,8 @@
|
|
|
4718
4745
|
const getIconSizeStyle = (size) => (size === 'normal' ? 'h-24 w-24' : 'h-16 w-16');
|
|
4719
4746
|
const getIconTextStyle = (version) => version === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
|
|
4720
4747
|
|
|
4748
|
+
const StickyBottomMenu = JSX(() => jsx("div", {})); // DO not remove "<div></div>". Required to pass tests. With "null" it's falling.
|
|
4749
|
+
|
|
4721
4750
|
const DEFAULT_GAP = 14;
|
|
4722
4751
|
/*
|
|
4723
4752
|
Horizontal padding used on a container above SwipeListControl.
|
|
@@ -5051,6 +5080,7 @@
|
|
|
5051
5080
|
SafeDepositRental,
|
|
5052
5081
|
StepsBlock,
|
|
5053
5082
|
SwipeListControlBlock,
|
|
5083
|
+
StickyBottomMenu,
|
|
5054
5084
|
Tabs,
|
|
5055
5085
|
TariffsTable,
|
|
5056
5086
|
TextBlock,
|
|
@@ -5259,15 +5289,15 @@
|
|
|
5259
5289
|
parent: data,
|
|
5260
5290
|
};
|
|
5261
5291
|
useBlockRouterProvider();
|
|
5262
|
-
return (jsxs("div", { children: [jsxs("section", { className: style('relative @container', pageStyle, className), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
5292
|
+
return (jsxs("div", { children: [jsxs("section", { className: style('relative @container', pageStyle, className), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
5263
5293
|
});
|
|
5264
5294
|
ContentPage.childrenTypes = [];
|
|
5265
|
-
ContentPage.slots = () => ['header', 'footer'];
|
|
5295
|
+
ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
|
|
5266
5296
|
function renderLikeControl() {
|
|
5267
5297
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5268
5298
|
}
|
|
5269
5299
|
|
|
5270
|
-
const packageVersion = "0.13.
|
|
5300
|
+
const packageVersion = "0.13.10";
|
|
5271
5301
|
|
|
5272
5302
|
exports.Blocks = Blocks;
|
|
5273
5303
|
exports.ContentPage = ContentPage;
|