@redneckz/wildless-cms-uni-blocks 0.14.915 → 0.14.916
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +6 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Footer/LinkList.d.ts +0 -1
- package/bundle/model/AspectsProps.d.ts +9 -1
- package/bundle/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/dist/components/Footer/LinkList.d.ts +0 -1
- package/dist/components/Footer/LinkList.js +2 -2
- package/dist/components/Footer/LinkList.js.map +1 -1
- package/dist/model/AspectsProps.d.ts +9 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +3 -3
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/lib/components/Footer/LinkList.d.ts +0 -1
- package/lib/components/Footer/LinkList.js +2 -2
- package/lib/components/Footer/LinkList.js.map +1 -1
- package/lib/model/AspectsProps.d.ts +9 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
- package/lib/ui-kit/Sitemap/Sitemap.js +3 -3
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +3 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Footer/LinkList.d.ts +0 -1
- package/mobile/bundle/model/AspectsProps.d.ts +9 -1
- package/mobile/bundle/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/dist/components/Footer/LinkList.d.ts +0 -1
- package/mobile/dist/components/Footer/LinkList.js +2 -2
- package/mobile/dist/components/Footer/LinkList.js.map +1 -1
- package/mobile/dist/model/AspectsProps.d.ts +9 -1
- package/mobile/dist/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/lib/components/Footer/LinkList.d.ts +0 -1
- package/mobile/lib/components/Footer/LinkList.js +2 -2
- package/mobile/lib/components/Footer/LinkList.js.map +1 -1
- package/mobile/lib/model/AspectsProps.d.ts +9 -1
- package/mobile/lib/ui-kit/Sitemap/SitemapProps.d.ts +1 -0
- package/mobile/src/components/Footer/LinkList.tsx +2 -7
- package/mobile/src/model/AspectsProps.ts +11 -1
- package/mobile/src/ui-kit/Sitemap/SitemapProps.ts +1 -0
- package/package.json +1 -1
- package/src/components/Footer/LinkList.tsx +2 -7
- package/src/model/AspectsProps.ts +11 -1
- package/src/ui-kit/Sitemap/Sitemap.tsx +29 -29
- package/src/ui-kit/Sitemap/SitemapProps.ts +1 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -10503,9 +10503,9 @@
|
|
|
10503
10503
|
});
|
|
10504
10504
|
const getCurrencyRates = (currencies) => currencies?.filter((_) => [1, 2, 3].includes(_?.currency?.id)) || [];
|
|
10505
10505
|
|
|
10506
|
-
const LinkList = JSX(({ className
|
|
10506
|
+
const LinkList = JSX(({ className, items }) => {
|
|
10507
10507
|
const link = useLink();
|
|
10508
|
-
return
|
|
10508
|
+
return jsx("ul", { className: style('w-full', className), children: items?.map(renderLinkListItem(link)) });
|
|
10509
10509
|
});
|
|
10510
10510
|
const renderLinkListItem = (link) => ({ dataFooter, ...linkProps }, i) => {
|
|
10511
10511
|
const { text, href, target, onClick } = link(linkProps);
|
|
@@ -10519,16 +10519,16 @@
|
|
|
10519
10519
|
|
|
10520
10520
|
const FOOTER_AREA_KEYS = ['all', 'footer'];
|
|
10521
10521
|
const IS_SINGLE_SEARCH_INDEX$1 = Boolean(env.SINGLE_SEARCH_INDEX);
|
|
10522
|
-
const Sitemap = JSX(({ className, navigationItems }) => {
|
|
10522
|
+
const Sitemap = JSX(({ className, navigationItems, isSearchPanel = false }) => {
|
|
10523
10523
|
const link = useLink();
|
|
10524
10524
|
const filteredItems = navigationItems?.filter(isVisibleItem(FOOTER_AREA_KEYS))?.map(link) ?? [];
|
|
10525
10525
|
const [firstItem] = filteredItems;
|
|
10526
|
-
return (jsx("div", { className: "space-y-2", children: IS_SINGLE_SEARCH_INDEX$1 ? (jsx("div", { children: jsx(LinkList, { className: "columns-3 space-y-3 gap-x-6xl", items: firstItem?.items
|
|
10526
|
+
return (jsx("div", { className: "space-y-2", children: IS_SINGLE_SEARCH_INDEX$1 && isSearchPanel ? (jsx("div", { children: jsx(LinkList, { className: "block columns-3 space-y-3 gap-x-6xl", items: firstItem?.items }) })) : (jsx("div", { role: "menu", className: style('w-full flex items-start justify-between flex-col md:flex-row gap-m lg:order-2', className), children: filteredItems?.map(renderColumn) })) }));
|
|
10527
10527
|
});
|
|
10528
10528
|
const renderColumn = (menuItem, index) => {
|
|
10529
10529
|
const { text, items = [], href, target = '_self', onClick, dataFooter } = menuItem;
|
|
10530
10530
|
const visibleSubItems = items.filter(isVisibleItem(FOOTER_AREA_KEYS));
|
|
10531
|
-
return (jsxs("div", { role: "menuitem", className: "flex flex-col gap-s w-full @md:w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target, onClick: onClick, ...getAspectsAttributes(dataFooter), children: text }), visibleSubItems ? jsx(LinkList, { items: visibleSubItems }) : null] }, String(index)));
|
|
10531
|
+
return (jsxs("div", { role: "menuitem", className: "flex flex-col gap-s w-full @md:w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target, onClick: onClick, ...getAspectsAttributes(dataFooter), children: text }), visibleSubItems ? (jsx(LinkList, { className: "flex flex-col gap-s", items: visibleSubItems })) : null] }, String(index)));
|
|
10532
10532
|
};
|
|
10533
10533
|
|
|
10534
10534
|
const Contacts = JSX(({ className = '', items = [] }) => items?.length ? (jsx("div", { className: style('space-y-m', className), children: items.map(renderContactsGroup) })) : null);
|
|
@@ -12104,7 +12104,7 @@
|
|
|
12104
12104
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12105
12105
|
});
|
|
12106
12106
|
|
|
12107
|
-
const packageVersion = "0.14.
|
|
12107
|
+
const packageVersion = "0.14.915";
|
|
12108
12108
|
|
|
12109
12109
|
exports.Blocks = Blocks;
|
|
12110
12110
|
exports.ContentPage = ContentPage;
|