@redneckz/wildless-cms-uni-blocks 0.14.814 → 0.14.815
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/UniBlock/UniBlock.d.ts +3 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +86 -19
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/GalleryLayout/GalleryLayout.d.ts +5 -0
- package/bundle/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
- package/dist/BlockRenderer/renderBlock.js +1 -1
- package/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/dist/UniBlock/UniBlock.d.ts +3 -1
- package/dist/UniBlock/UniBlock.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/GalleryLayout/GalleryLayout.d.ts +5 -0
- package/dist/components/GalleryLayout/GalleryLayout.js +71 -0
- package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -0
- package/dist/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
- package/dist/components/GalleryLayout/GalleryLayoutContent.js +2 -0
- package/dist/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +8 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +3 -3
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/BlockRenderer/renderBlock.js +1 -1
- package/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/lib/UniBlock/UniBlock.d.ts +3 -1
- package/lib/UniBlock/UniBlock.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/GalleryLayout/GalleryLayout.d.ts +5 -0
- package/lib/components/GalleryLayout/GalleryLayout.fixture.d.ts +5 -0
- package/lib/components/GalleryLayout/GalleryLayout.js +69 -0
- package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -0
- package/lib/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
- package/lib/components/GalleryLayout/GalleryLayoutContent.js +2 -0
- package/lib/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +3 -3
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/bundle/UniBlock/UniBlock.d.ts +3 -1
- package/mobile/bundle/bundle.umd.js +86 -19
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/GalleryLayout/GalleryLayout.d.ts +5 -0
- package/mobile/bundle/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
- package/mobile/dist/BlockRenderer/renderBlock.js +1 -1
- package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/dist/UniBlock/UniBlock.d.ts +3 -1
- package/mobile/dist/UniBlock/UniBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/GalleryLayout.d.ts +5 -0
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js +71 -0
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -0
- package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
- package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.js +2 -0
- package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +8 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -3
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/BlockRenderer/renderBlock.js +1 -1
- package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
- package/mobile/lib/UniBlock/UniBlock.d.ts +3 -1
- package/mobile/lib/UniBlock/UniBlock.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/GalleryLayout.d.ts +5 -0
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js +69 -0
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -0
- package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
- package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.js +2 -0
- package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -3
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/src/BlockRenderer/renderBlock.tsx +3 -3
- package/mobile/src/UniBlock/UniBlock.tsx +3 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -0
- package/mobile/src/components/GalleryLayout/GalleryLayout.example.json +102 -0
- package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +140 -0
- package/mobile/src/components/GalleryLayout/GalleryLayout.ui.json +1 -0
- package/mobile/src/components/GalleryLayout/GalleryLayoutContent.ts +16 -0
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +60 -23
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +11 -7
- package/package.json +2 -2
- package/src/BlockRenderer/renderBlock.tsx +3 -3
- package/src/UniBlock/UniBlock.tsx +3 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -0
- package/src/components/GalleryLayout/GalleryLayout.example.json +102 -0
- package/src/components/GalleryLayout/GalleryLayout.fixture.tsx +61 -0
- package/src/components/GalleryLayout/GalleryLayout.tsx +140 -0
- package/src/components/GalleryLayout/GalleryLayout.ui.json +1 -0
- package/src/components/GalleryLayout/GalleryLayoutContent.ts +16 -0
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +60 -23
- package/src/ui-kit/BaseTile/BaseTile.tsx +11 -7
package/bundle/bundle.umd.js
CHANGED
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
// Adjusted by decorator block and blockClassName
|
|
161
161
|
render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
|
|
162
162
|
const { content } = adjustedBlock;
|
|
163
|
-
return BlockComponent ? (jsx(BlockComponent, { className: adjustedBlockClassName, block: block, options: options
|
|
163
|
+
return BlockComponent ? (jsx(BlockComponent, { ...content, ...extraProps, className: style(adjustedBlockClassName, content?.className), block: block, options: options }, key)) : null;
|
|
164
164
|
},
|
|
165
165
|
}, key);
|
|
166
166
|
}
|
|
@@ -621,13 +621,12 @@
|
|
|
621
621
|
const handleClick = useCallback(() => router.back(), []);
|
|
622
622
|
const backwardButtonText = rest.options?.page?.common?.backwardButton;
|
|
623
623
|
const isBackBtn = backwardButton && !isMobile;
|
|
624
|
-
return (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [isBackBtn && renderBackwardButton({ version, handleClick, text: backwardButtonText }), title ? jsx("div", { className: "relative
|
|
624
|
+
return (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [isBackBtn && renderBackwardButton({ version, handleClick, text: backwardButtonText }), title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl w-full', {
|
|
625
625
|
'self-start @xl:w-auto': leftImage,
|
|
626
626
|
}), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl items-center md:items-stretch', {
|
|
627
627
|
'@xl:grid-cols-2 auto-cols-fr': rightImage,
|
|
628
628
|
grow: !leftImage,
|
|
629
|
-
}, 'h-
|
|
630
|
-
'auto-rows-[max-content_1fr]'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderUnitContainer(renderChildren({ ...rest, extraProps: { className: '@container-normal' } })), renderImageContainer(rightImage, {
|
|
629
|
+
}, 'h-auto'), children: [renderMiddleContent(insetTitle, children), renderUnitContainer(renderChildren({ ...rest, extraProps: { className: '@container-normal' } })), renderImageContainer(rightImage, {
|
|
631
630
|
className: style('@xl:justify-self-end @xl:col-start-2', {
|
|
632
631
|
[imageAlwaysOnRightContainerStyle(isImageAlwaysOnRight)]: buttons,
|
|
633
632
|
'col-start-2 self-center': isImageAlwaysOnRight,
|
|
@@ -636,6 +635,7 @@
|
|
|
636
635
|
imageAlign,
|
|
637
636
|
}), buttons ? jsx("div", { className: "self-end", children: buttons }) : null] })] })] }));
|
|
638
637
|
});
|
|
638
|
+
const renderMiddleContent = (insetTitle, children) => insetTitle || children ? (jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] })) : null;
|
|
639
639
|
const imageAlwaysOnRightContainerStyle = (isImage) => style(isImage ? 'row-span-2' : '@xl:row-span-2');
|
|
640
640
|
const renderUnitContainer = (childrenBlocks) => childrenBlocks?.length ? (jsx("div", { className: "flex items-start justify-end", children: childrenBlocks })) : null;
|
|
641
641
|
|
|
@@ -716,8 +716,15 @@
|
|
|
716
716
|
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
717
717
|
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
718
718
|
const filteredBenefits = benefits?.filter((_) => '__html' in _ || 'label' in _ || 'description' in _);
|
|
719
|
-
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, ...rest, children:
|
|
719
|
+
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, ...rest, children: renderChildList(renderBenefits(filteredBenefits, { benefitsVersion, isTabularBenefits }), renderRichText(__html, { richVersion, isDotted, headlineVersion }), children, renderPriceList(priceList), renderTags(tags)) }));
|
|
720
720
|
});
|
|
721
|
+
const renderBenefits = (benefits, { benefitsVersion, isTabularBenefits, } = {}) => benefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: benefits })) : null;
|
|
722
|
+
const renderRichText = (__html, { richVersion, isDotted, headlineVersion, } = {}) => __html ? (jsx(RichText, { __html: __html, richVersion: richVersion, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion ?? 'L'] })) : null;
|
|
723
|
+
const renderPriceList = (priceList) => priceList?.length ? jsx(PriceList, { priceList: priceList }) : null;
|
|
724
|
+
const renderChildList = (...elements) => {
|
|
725
|
+
const cleanElements = elements.filter(Boolean);
|
|
726
|
+
return cleanElements.length ? (jsx("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: cleanElements.map((_, i) => (jsx("div", { children: _ }, String(i)))) })) : null;
|
|
727
|
+
};
|
|
721
728
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
722
729
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
723
730
|
|
|
@@ -7390,7 +7397,7 @@
|
|
|
7390
7397
|
black: 'bg-black',
|
|
7391
7398
|
white: 'bg-white',
|
|
7392
7399
|
};
|
|
7393
|
-
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
|
|
7400
|
+
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align, className: "min-h-24" }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
|
|
7394
7401
|
const renderColorOption = (color, i) => (jsx("figure", { className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
7395
7402
|
|
|
7396
7403
|
const CarouselLinkButton = JSX(({ icon, ...linkProps }) => {
|
|
@@ -9889,6 +9896,77 @@
|
|
|
9889
9896
|
return (jsxs(BlockWrapper, { tag: "footer", className: style('grid gap-y-xl p-4xl pb-24 lg:p-xl', className), ...rest, children: [renderLogoSearchBar(common, navigationItems), jsxs("div", { className: "flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ", children: [jsx(Sitemap, { navigationItems: navigationItems }), jsx("div", { className: "border-t border-main-divider lg:hidden w-full" }), jsxs("div", { className: style(LEFT_COLUMN_STYLE, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], showButtonText: false, stretched: true, children: _?.title }, String(i)))), otherLinks.map((_, i) => (jsx(Link, { className: "text-s font-light", ..._ }, `${_.href}_${i}`)))] })] }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
|
|
9890
9897
|
});
|
|
9891
9898
|
|
|
9899
|
+
const getInnerPadding = (isPadding = false) => isPadding ? {} : { padding: 'p-0' };
|
|
9900
|
+
|
|
9901
|
+
const gapStyles = {
|
|
9902
|
+
XXL: 'gap-6xl',
|
|
9903
|
+
XL: 'gap-5xl',
|
|
9904
|
+
L: 'gap-3xl',
|
|
9905
|
+
M: 'gap-m',
|
|
9906
|
+
S: 'gap-xs',
|
|
9907
|
+
XS: 'gap-2xs',
|
|
9908
|
+
'': '',
|
|
9909
|
+
};
|
|
9910
|
+
|
|
9911
|
+
const MIN_LENGTH_CHILD = 5;
|
|
9912
|
+
const SHORT_TILE_INDEXES = [1, 2, 3, 4];
|
|
9913
|
+
const LINK_SCHEMA = {
|
|
9914
|
+
link: {
|
|
9915
|
+
allOf: [
|
|
9916
|
+
{ $ref: `#/definitions/LinkCommonProps` },
|
|
9917
|
+
{
|
|
9918
|
+
type: 'object',
|
|
9919
|
+
properties: {
|
|
9920
|
+
data: {
|
|
9921
|
+
type: 'array',
|
|
9922
|
+
items: { $ref: '#/definitions/AspectsDef' },
|
|
9923
|
+
title: 'Дополнительные атрибуты',
|
|
9924
|
+
},
|
|
9925
|
+
},
|
|
9926
|
+
},
|
|
9927
|
+
],
|
|
9928
|
+
title: 'Ссылка',
|
|
9929
|
+
required: ['href'],
|
|
9930
|
+
},
|
|
9931
|
+
};
|
|
9932
|
+
const GalleryLayout = UniBlock(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-4 lg:auto-rows-fr', gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
9933
|
+
...rest,
|
|
9934
|
+
renderProps: getRenderProps({ isInnerPadding, isCardBorder }),
|
|
9935
|
+
}) })), {
|
|
9936
|
+
childrenTypes: ['ProductBlock'],
|
|
9937
|
+
childSchema: () => LINK_SCHEMA,
|
|
9938
|
+
allowRemoveChild: (slot) => (slot?.blocks ?? []).length > MIN_LENGTH_CHILD,
|
|
9939
|
+
});
|
|
9940
|
+
const getRenderProps = ({ isInnerPadding, isCardBorder, }) => (childBlock, childOptions, i) => renderBlock$1(childBlock, {
|
|
9941
|
+
...childOptions,
|
|
9942
|
+
blockDecorator: blockDecoratorWrapper(childOptions.blockDecorator, i),
|
|
9943
|
+
}, {
|
|
9944
|
+
className: style('w-full', getBorderStyle(isCardBorder)),
|
|
9945
|
+
...getInnerPadding(isInnerPadding),
|
|
9946
|
+
});
|
|
9947
|
+
const blockDecoratorWrapper = (blockDecorator, idx = 0) => (props, i) => blockDecorator?.({
|
|
9948
|
+
...props,
|
|
9949
|
+
render: (renderProps) => productBlockDecorator(idx)({ ...props, ...renderProps }, i),
|
|
9950
|
+
}, `wrap_${i}`) ?? productBlockDecorator(idx)(props, i);
|
|
9951
|
+
const productBlockDecorator = (idx) => ({ blockClassName, block, render }, i) => (jsx(LinkWrapper, { ...block.content?.link, className: getChildStyle(idx), children: render({
|
|
9952
|
+
blockClassName: style(blockClassName, 'h-full'),
|
|
9953
|
+
block: modifyBlock(block, idx),
|
|
9954
|
+
}) }, i));
|
|
9955
|
+
const getChildStyle = (index) => SHORT_TILE_INDEXES.includes(index)
|
|
9956
|
+
? 'lg:col-span-1 lg:row-span-1'
|
|
9957
|
+
: 'lg:col-span-2 lg:row-span-2';
|
|
9958
|
+
const modifyBlock = (block, i) => {
|
|
9959
|
+
const content = { ...block.content };
|
|
9960
|
+
if (SHORT_TILE_INDEXES.includes(i)) {
|
|
9961
|
+
delete content.description;
|
|
9962
|
+
delete content.benefits;
|
|
9963
|
+
}
|
|
9964
|
+
if (content.link?.href) {
|
|
9965
|
+
delete content.buttons;
|
|
9966
|
+
}
|
|
9967
|
+
return { ...block, content };
|
|
9968
|
+
};
|
|
9969
|
+
|
|
9892
9970
|
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
|
|
9893
9971
|
const renderCalendar = (calendar) => {
|
|
9894
9972
|
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
@@ -10225,18 +10303,6 @@
|
|
|
10225
10303
|
common: page?.common ?? {},
|
|
10226
10304
|
});
|
|
10227
10305
|
|
|
10228
|
-
const getInnerPadding = (isPadding = false) => isPadding ? {} : { padding: 'p-0' };
|
|
10229
|
-
|
|
10230
|
-
const gapStyles = {
|
|
10231
|
-
XXL: 'gap-6xl',
|
|
10232
|
-
XL: 'gap-5xl',
|
|
10233
|
-
L: 'gap-3xl',
|
|
10234
|
-
M: 'gap-m',
|
|
10235
|
-
S: 'gap-xs',
|
|
10236
|
-
XS: 'gap-2xs',
|
|
10237
|
-
'': '',
|
|
10238
|
-
};
|
|
10239
|
-
|
|
10240
10306
|
const HorizontalLayout = UniBlock(({ className = '', padding = 'p-0', gap = 'XS', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
10241
10307
|
...rest,
|
|
10242
10308
|
extraProps: {
|
|
@@ -11342,6 +11408,7 @@
|
|
|
11342
11408
|
ErrorBlock,
|
|
11343
11409
|
ExchangeRateTile,
|
|
11344
11410
|
Footer,
|
|
11411
|
+
GalleryLayout,
|
|
11345
11412
|
GracePeriod,
|
|
11346
11413
|
GrantSupport,
|
|
11347
11414
|
Header,
|
|
@@ -11514,7 +11581,7 @@
|
|
|
11514
11581
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11515
11582
|
});
|
|
11516
11583
|
|
|
11517
|
-
const packageVersion = "0.14.
|
|
11584
|
+
const packageVersion = "0.14.814";
|
|
11518
11585
|
|
|
11519
11586
|
exports.Blocks = Blocks;
|
|
11520
11587
|
exports.ContentPage = ContentPage;
|