@redneckz/wildless-cms-uni-blocks 0.14.303 → 0.14.305
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 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +3 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +4 -3
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +4 -3
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +6 -4
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
- package/package.json +1 -1
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +46 -13
- package/src/ui-kit/BaseTile/BaseTile.tsx +6 -4
- package/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -554,17 +554,18 @@
|
|
|
554
554
|
center: '@xl:self-center',
|
|
555
555
|
end: '@xl:self-end',
|
|
556
556
|
};
|
|
557
|
-
const BaseTile = JSX(({ className, version = 'primary', defaultPadding, padding = '', title
|
|
557
|
+
const BaseTile = JSX(({ className, version = 'primary', defaultPadding, padding = '', title, insetTitle, buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, backwardButton, children, ...rest }) => {
|
|
558
558
|
const router = useRouter();
|
|
559
559
|
const handleClick = useCallback(() => {
|
|
560
560
|
router.back();
|
|
561
561
|
}, []);
|
|
562
|
-
return (jsxs("div", { className: getStyle$1(padding, defaultPadding, className), children: [backwardButton ? renderBackwardButton(version, handleClick) : null,
|
|
562
|
+
return (jsxs("div", { className: getStyle$1(padding, defaultPadding, className), children: [backwardButton ? renderBackwardButton(version, handleClick) : null, getTitle(title), jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl w-full', leftImage ? 'self-start @xl:w-auto' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2 auto-cols-fr' : '', leftImage ? '' : 'grow', 'h-full', //? fix issue https://github.com/redneckz/temp_wcms/issues/1254
|
|
563
563
|
'auto-rows-[max-content_1fr]'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderUnitBlock(renderChildren({ ...rest, extraProps: { className: '@container-normal' } })), renderImageContainer(rightImage, {
|
|
564
564
|
className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
|
|
565
565
|
imageAlign,
|
|
566
566
|
}), renderButtons(buttons)] })] })] }));
|
|
567
567
|
});
|
|
568
|
+
const getTitle = (title) => (title ? jsx("div", { className: "relative h-full", children: title }) : null);
|
|
568
569
|
const getStyle$1 = (padding = '', defaultPadding = '', className = '') => style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className);
|
|
569
570
|
const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
|
|
570
571
|
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'col-start-2 self-center' : '';
|
|
@@ -4083,7 +4084,7 @@
|
|
|
4083
4084
|
const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
4084
4085
|
const link = useLink({ isRemote: isAnotherPortal, basePath });
|
|
4085
4086
|
const { href, target, onClick } = link(rest);
|
|
4086
|
-
return (jsx("a", { className: style('text-l font-light text-secondary-text hover:text-primary-main no-underline', '
|
|
4087
|
+
return (jsx("a", { className: style('text-l font-light text-secondary-text hover:text-primary-main no-underline', 'whitespace-wrap'), href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
4087
4088
|
});
|
|
4088
4089
|
const isVisibleItem$1 = (_) => !_.displayArea || FOOTER_AREA_KEYS.includes(_.displayArea.toLowerCase());
|
|
4089
4090
|
|
|
@@ -6187,7 +6188,7 @@
|
|
|
6187
6188
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6188
6189
|
});
|
|
6189
6190
|
|
|
6190
|
-
const packageVersion = "0.14.
|
|
6191
|
+
const packageVersion = "0.14.304";
|
|
6191
6192
|
|
|
6192
6193
|
exports.Blocks = Blocks;
|
|
6193
6194
|
exports.ContentPage = ContentPage;
|