@redneckz/wildless-cms-uni-blocks 0.14.7 → 0.14.8
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/bundle.umd.js +5 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Header/HeaderSubMenu.js +2 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +2 -2
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Header/HeaderSubMenu.js +2 -2
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js +2 -2
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +2 -2
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +2 -2
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -2
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +1 -1
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +2 -2
- package/package.json +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +2 -2
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +1 -1
- package/src/ui-kit/Sitemap/Sitemap.tsx +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -3555,10 +3555,10 @@
|
|
|
3555
3555
|
const link = useLink({ isRemote: true });
|
|
3556
3556
|
return (jsx("div", { className: style('flex items-start justify-between', className), children: topItems?.map(link).map(renderColumn) }));
|
|
3557
3557
|
});
|
|
3558
|
-
const
|
|
3558
|
+
const FOOTER_AREA_KEYS = ['all', 'footer'];
|
|
3559
3559
|
const renderColumn = (menuItem, index) => {
|
|
3560
3560
|
const { text, items = [], href, target, onClick } = menuItem;
|
|
3561
|
-
const visibleSubItems = items.filter((_) => !_.displayArea || _.displayArea.toLowerCase()
|
|
3561
|
+
const visibleSubItems = items.filter((_) => !_.displayArea || FOOTER_AREA_KEYS.includes(_.displayArea.toLowerCase()));
|
|
3562
3562
|
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}` }), visibleSubItems.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
|
|
3563
3563
|
};
|
|
3564
3564
|
const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
|
|
@@ -3927,11 +3927,11 @@
|
|
|
3927
3927
|
};
|
|
3928
3928
|
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);
|
|
3929
3929
|
|
|
3930
|
-
const
|
|
3930
|
+
const HEADER_AREA_KEYS = ['all', 'header'];
|
|
3931
3931
|
const HeaderSubMenu = JSX(({ subItems = [], version, internetBankUrl }) => {
|
|
3932
3932
|
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
3933
3933
|
const router = useRouter();
|
|
3934
|
-
const visibleSubItems = useMemo(() => subItems.filter((item) => !item.displayArea || item.displayArea.toLowerCase()
|
|
3934
|
+
const visibleSubItems = useMemo(() => subItems.filter((item) => !item.displayArea || HEADER_AREA_KEYS.includes(item.displayArea.toLowerCase())), [subItems]);
|
|
3935
3935
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
3936
3936
|
const [visibleItemsCount, setVisibleItemsCount] = useState(visibleSubItems.length);
|
|
3937
3937
|
const dropDownMenuItems = visibleSubItems.slice(visibleItemsCount);
|
|
@@ -5447,7 +5447,7 @@
|
|
|
5447
5447
|
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" }) }));
|
|
5448
5448
|
}
|
|
5449
5449
|
|
|
5450
|
-
const packageVersion = "0.14.
|
|
5450
|
+
const packageVersion = "0.14.8";
|
|
5451
5451
|
|
|
5452
5452
|
exports.Blocks = Blocks;
|
|
5453
5453
|
exports.ContentPage = ContentPage;
|