@redneckz/wildless-cms-uni-blocks 0.14.304 → 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 +4 -3
- 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/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/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/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/src/ui-kit/BaseTile/BaseTile.tsx +6 -4
- package/package.json +1 -1
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +46 -13
- package/src/ui-kit/BaseTile/BaseTile.tsx +6 -4
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' : '';
|
|
@@ -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;
|