@redneckz/wildless-cms-uni-blocks 0.14.544 → 0.14.546
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 +9 -13
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/bundle/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RollupItem/AccordionFoldButton.js +1 -2
- package/dist/components/RollupItem/AccordionFoldButton.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +1 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/dist/components/TextBlock/TextBlock.js +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RollupItem/AccordionFoldButton.js +1 -2
- package/lib/components/RollupItem/AccordionFoldButton.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +1 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.js +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -13
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js +1 -2
- package/mobile/dist/components/RollupItem/AccordionFoldButton.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js +1 -2
- package/mobile/lib/components/RollupItem/AccordionFoldButton.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +2 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -3
- package/mobile/src/components/RollupItem/AccordionFoldButton.tsx +1 -4
- package/mobile/src/components/RollupItem/RollupItem.tsx +4 -2
- package/mobile/src/components/RollupItem/RollupItemContent.ts +1 -1
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -0
- package/package.json +1 -1
- package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +2 -2
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -3
- package/src/components/RollupItem/AccordionFoldButton.tsx +1 -4
- package/src/components/RollupItem/RollupItem.tsx +4 -2
- package/src/components/RollupItem/RollupItemContent.ts +1 -1
- package/src/components/TextBlock/TextBlock.tsx +2 -2
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -0
- package/bundle/components/RollupItem/rollupIconVersion.d.ts +0 -1
- package/bundle/components/RollupItem/rollupItemStyles.d.ts +0 -1
- package/bundle/components/RollupItem/rollupItemStyles.mobile.d.ts +0 -1
- package/dist/components/RollupItem/rollupIconVersion.d.ts +0 -1
- package/dist/components/RollupItem/rollupIconVersion.js +0 -4
- package/dist/components/RollupItem/rollupIconVersion.js.map +0 -1
- package/dist/components/RollupItem/rollupItemStyles.d.ts +0 -1
- package/dist/components/RollupItem/rollupItemStyles.js +0 -4
- package/dist/components/RollupItem/rollupItemStyles.js.map +0 -1
- package/dist/components/RollupItem/rollupItemStyles.mobile.d.ts +0 -1
- package/dist/components/RollupItem/rollupItemStyles.mobile.js +0 -4
- package/dist/components/RollupItem/rollupItemStyles.mobile.js.map +0 -1
- package/lib/components/RollupItem/rollupIconVersion.d.ts +0 -1
- package/lib/components/RollupItem/rollupIconVersion.js +0 -2
- package/lib/components/RollupItem/rollupIconVersion.js.map +0 -1
- package/lib/components/RollupItem/rollupItemStyles.d.ts +0 -1
- package/lib/components/RollupItem/rollupItemStyles.js +0 -2
- package/lib/components/RollupItem/rollupItemStyles.js.map +0 -1
- package/lib/components/RollupItem/rollupItemStyles.mobile.d.ts +0 -1
- package/lib/components/RollupItem/rollupItemStyles.mobile.js +0 -2
- package/lib/components/RollupItem/rollupItemStyles.mobile.js.map +0 -1
- package/mobile/bundle/components/RollupItem/rollupIconVersion.d.ts +0 -1
- package/mobile/bundle/components/RollupItem/rollupItemStyles.d.ts +0 -1
- package/mobile/dist/components/RollupItem/rollupIconVersion.d.ts +0 -1
- package/mobile/dist/components/RollupItem/rollupIconVersion.js +0 -4
- package/mobile/dist/components/RollupItem/rollupIconVersion.js.map +0 -1
- package/mobile/dist/components/RollupItem/rollupItemStyles.d.ts +0 -1
- package/mobile/dist/components/RollupItem/rollupItemStyles.js +0 -4
- package/mobile/dist/components/RollupItem/rollupItemStyles.js.map +0 -1
- package/mobile/lib/components/RollupItem/rollupIconVersion.d.ts +0 -1
- package/mobile/lib/components/RollupItem/rollupIconVersion.js +0 -2
- package/mobile/lib/components/RollupItem/rollupIconVersion.js.map +0 -1
- package/mobile/lib/components/RollupItem/rollupItemStyles.d.ts +0 -1
- package/mobile/lib/components/RollupItem/rollupItemStyles.js +0 -2
- package/mobile/lib/components/RollupItem/rollupItemStyles.js.map +0 -1
- package/mobile/src/components/RollupItem/rollupIconVersion.tsx +0 -1
- package/mobile/src/components/RollupItem/rollupItemStyles.ts +0 -1
- package/src/components/RollupItem/rollupIconVersion.tsx +0 -1
- package/src/components/RollupItem/rollupItemStyles.mobile.ts +0 -1
- package/src/components/RollupItem/rollupItemStyles.ts +0 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -737,11 +737,11 @@
|
|
|
737
737
|
};
|
|
738
738
|
const BaseProductTile = JSX(
|
|
739
739
|
// eslint-disable-next-line max-lines-per-function
|
|
740
|
-
({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, isDotted = true, benefits, __html, isFullWidthTitle, priceList = [], tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, ...rest }) => {
|
|
740
|
+
({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, isDotted = true, benefits, __html, richVersion, isFullWidthTitle, priceList = [], tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, ...rest }) => {
|
|
741
741
|
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
742
742
|
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
743
743
|
const filteredBenefits = benefits?.filter((_) => '__html' in _ || 'label' in _ || 'description' in _);
|
|
744
|
-
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: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion] })) : null, children, priceList?.length ? jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
744
|
+
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: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (jsx(RichText, { richVersion: richVersion, __html: __html, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion] })) : null, children, priceList?.length ? jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
745
745
|
});
|
|
746
746
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
747
747
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
@@ -5302,7 +5302,7 @@
|
|
|
5302
5302
|
const mapByIndex = (points, index) => points.map((_) => _.coords?.[index]);
|
|
5303
5303
|
const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
|
|
5304
5304
|
|
|
5305
|
-
const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
5305
|
+
const renderDescriptionBlock$1 = ({ __html, list, richVersion }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html, richVersion: richVersion }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
5306
5306
|
|
|
5307
5307
|
const FILTRATION_LABELS = {
|
|
5308
5308
|
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
@@ -5751,7 +5751,7 @@
|
|
|
5751
5751
|
return (jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('relative overflow-hidden grow', 'ml-xs px-xl', 'box-border basis-0 border', 'border-gray group-data-secondary:border-white/50', 'text-left whitespace-nowrap', btnClassName), children: [jsx("div", { className: btnTitleClassName, children: nav?.title }), jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
|
|
5752
5752
|
};
|
|
5753
5753
|
|
|
5754
|
-
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
|
|
5754
|
+
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, richVersion, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock({ __html, richVersion }) : null, renderBlock({
|
|
5755
5755
|
label: 'Адрес',
|
|
5756
5756
|
data: address,
|
|
5757
5757
|
iconName: 'GeolocationIcon',
|
|
@@ -5761,7 +5761,7 @@
|
|
|
5761
5761
|
iconName: 'MailIcon',
|
|
5762
5762
|
dataColor: 'text-primary-main',
|
|
5763
5763
|
}), button?.text ? renderButtonsSection([button]) : null] })] })));
|
|
5764
|
-
const renderDescriptionBlock = (
|
|
5764
|
+
const renderDescriptionBlock = (props) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { ...props, itemSize: "list-s" }) }));
|
|
5765
5765
|
const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
|
|
5766
5766
|
|
|
5767
5767
|
const RichTextBlock = JSX((props) => {
|
|
@@ -5769,9 +5769,7 @@
|
|
|
5769
5769
|
return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) }));
|
|
5770
5770
|
});
|
|
5771
5771
|
|
|
5772
|
-
const
|
|
5773
|
-
|
|
5774
|
-
const AccordionFoldButton = JSX(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => (jsx(TextWithIcon, { tag: "button", className: style('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null })));
|
|
5772
|
+
const AccordionFoldButton = JSX(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => (jsx(TextWithIcon, { tag: "button", className: style('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? jsx(Icon, { name: icon, iconVersion: "color", width: "24", height: "24" }) : null })));
|
|
5775
5773
|
|
|
5776
5774
|
const getFoldableStyles = (isMobile = false) => isMobile ? 'flex flex-wrap group-last:last:pb-0' : 'grid grid-cols-12 [&>*]:pb-m';
|
|
5777
5775
|
|
|
@@ -5779,13 +5777,11 @@
|
|
|
5779
5777
|
const getDesktopName = (isUnfolded = false) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
5780
5778
|
const getMobileName = (isUnfolded = false) => isUnfolded ? 'ArrowUpSolidIcon' : 'ArrowDownSolidIcon';
|
|
5781
5779
|
|
|
5782
|
-
const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
|
|
5783
|
-
|
|
5784
5780
|
const RollupItem = UniBlock(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, foldButtonVersion = 'default',
|
|
5785
5781
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5786
5782
|
version, role, ...rest }) => {
|
|
5787
5783
|
const isMobile = useMobileMode();
|
|
5788
|
-
return (jsx(BlockWrapper, { className: style('w-full',
|
|
5784
|
+
return (jsx(BlockWrapper, { className: style('w-full border-0 border-b border-solid border-main-divider last:border-b-0', className), defaultPadding: "p-0", tag: "div", version: "transparent", role: role, ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', getFoldableStyles(isMobile)), isUnfolded: isUnfolded, children: renderChildren({
|
|
5789
5785
|
...rest,
|
|
5790
5786
|
extraProps: { className: 'w-full', padding: 'p-0' },
|
|
5791
5787
|
}) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
|
|
@@ -6247,7 +6243,7 @@
|
|
|
6247
6243
|
return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
|
|
6248
6244
|
});
|
|
6249
6245
|
|
|
6250
|
-
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
|
|
6246
|
+
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
|
|
6251
6247
|
const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
|
|
6252
6248
|
const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
6253
6249
|
|
|
@@ -6513,7 +6509,7 @@
|
|
|
6513
6509
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6514
6510
|
});
|
|
6515
6511
|
|
|
6516
|
-
const packageVersion = "0.14.
|
|
6512
|
+
const packageVersion = "0.14.545";
|
|
6517
6513
|
|
|
6518
6514
|
exports.Blocks = Blocks;
|
|
6519
6515
|
exports.ContentPage = ContentPage;
|