@redneckz/wildless-cms-uni-blocks 0.14.358 → 0.14.359
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 +3 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js +2 -2
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/components/Header/Header.tsx +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -4470,10 +4470,10 @@
|
|
|
4470
4470
|
const Header = UniBlock(({ className, bgColor = 'bg-white', logo: customLogo, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], portal, ...rest }) => {
|
|
4471
4471
|
const sitemap = rest.options?.page?.sitemap ?? {};
|
|
4472
4472
|
const { topItems, logo } = sitemap;
|
|
4473
|
-
const {
|
|
4473
|
+
const { dataHeader, ...logoProps } = logo ?? {};
|
|
4474
4474
|
const [, activeTopItem] = useActiveRoute(topItems);
|
|
4475
4475
|
const { internetBankButton } = portal || {};
|
|
4476
|
-
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: customLogo ?? logoProps, data:
|
|
4476
|
+
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: customLogo ?? logoProps, data: dataHeader }), topItems?.filter(isVisibleItem).map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, data: _.dataHeader, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", ...sitemap })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', getVersionStyle(version)) }), activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankButton: internetBankButton })) : null] }) }));
|
|
4477
4477
|
});
|
|
4478
4478
|
const getVersionStyle = (version) => (version === 'transparent' ? 'opacity-30' : '');
|
|
4479
4479
|
|
|
@@ -6258,7 +6258,7 @@
|
|
|
6258
6258
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6259
6259
|
});
|
|
6260
6260
|
|
|
6261
|
-
const packageVersion = "0.14.
|
|
6261
|
+
const packageVersion = "0.14.358";
|
|
6262
6262
|
|
|
6263
6263
|
exports.Blocks = Blocks;
|
|
6264
6264
|
exports.ContentPage = ContentPage;
|