@redneckz/wildless-cms-uni-blocks 0.14.30 → 0.14.32
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/bin/migration-scripts/0.14.29.js +3 -1
- package/bundle/bundle.umd.js +24 -24
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/List/List.d.ts +2 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +3 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/ui-kit/List/List.d.ts +2 -0
- package/dist/ui-kit/List/List.js +3 -3
- package/dist/ui-kit/List/List.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +3 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/ui-kit/List/List.d.ts +2 -0
- package/lib/ui-kit/List/List.js +1 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +24 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/List/List.d.ts +2 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +3 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/ui-kit/List/List.d.ts +2 -0
- package/mobile/dist/ui-kit/List/List.js +3 -3
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +3 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/ui-kit/List/List.d.ts +2 -0
- package/mobile/lib/ui-kit/List/List.js +1 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +9 -6
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/package.json +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +9 -6
- package/src/ui-kit/List/List.tsx +1 -1
|
@@ -44,7 +44,9 @@ function adjustCarouselProductCardBlock(block) {
|
|
|
44
44
|
...content.imageOptions,
|
|
45
45
|
isImageAlwaysOnRight: false,
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
if (!content?.align || content?.align === 'center') {
|
|
48
|
+
content.align = 'text-center';
|
|
49
|
+
}
|
|
48
50
|
if (content?.isTopPosition) {
|
|
49
51
|
content.imageOptions = {
|
|
50
52
|
...content.imageOptions,
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1528,6 +1528,28 @@
|
|
|
1528
1528
|
}, className: style('rounded-icon object-fit flex justify-center items-center', iconBgStyles[iconBgVersion], className), children: jsx(Icon, { ...rest, width: "54%", height: "54%", name: icon }) })) : null;
|
|
1529
1529
|
});
|
|
1530
1530
|
|
|
1531
|
+
const DOT_SIZE_MAP = {
|
|
1532
|
+
L: 'w-1.5 h-1.5 mr-m',
|
|
1533
|
+
M: 'w-1.5 h-1.5 mr-s',
|
|
1534
|
+
S: 'w-1 h-1 mr-xs',
|
|
1535
|
+
XS: 'w-1 h-1 mr-xs',
|
|
1536
|
+
};
|
|
1537
|
+
const ListItem = JSX(({ className, isDotted, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
|
|
1538
|
+
|
|
1539
|
+
const TEXT_SIZE_MAP = {
|
|
1540
|
+
XS: 'text-m font-light',
|
|
1541
|
+
S: 'text-l font-light',
|
|
1542
|
+
M: 'text-h6',
|
|
1543
|
+
L: 'text-h5',
|
|
1544
|
+
};
|
|
1545
|
+
const ITEM_INDENT_MAP = {
|
|
1546
|
+
XS: 'ml-2xs',
|
|
1547
|
+
S: 'ml-xs',
|
|
1548
|
+
M: 'ml-s',
|
|
1549
|
+
L: 'ml-m',
|
|
1550
|
+
};
|
|
1551
|
+
const List = JSX(({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
1552
|
+
|
|
1531
1553
|
const defaultIconSize = 44;
|
|
1532
1554
|
|
|
1533
1555
|
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: AlignStyles, title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
@@ -1541,7 +1563,7 @@
|
|
|
1541
1563
|
const renderTextBenefit = (description) => description?.name ? (jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description.name })) : null;
|
|
1542
1564
|
const renderListBenefit = (description) => {
|
|
1543
1565
|
const listStyleType = description?.bullets ? 'list-disc pl-3xl' : '';
|
|
1544
|
-
return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: jsx(Text, {
|
|
1566
|
+
return description?.items && description.items.length > 0 ? (jsx("ul", { className: style(listStyleType, description.listItemSize ? TEXT_SIZE_MAP[description.listItemSize] : ''), children: description.items.map((_, i) => (jsx("li", { children: jsx(Text, { color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: _ }) }, `benefitListItem-${i}`))) })) : null;
|
|
1545
1567
|
};
|
|
1546
1568
|
|
|
1547
1569
|
const isIcon = (icon) => Boolean(icon?.src || icon?.icon);
|
|
@@ -2912,28 +2934,6 @@
|
|
|
2912
2934
|
|
|
2913
2935
|
const BenefitsList = JSX(({ isTabularBenefits, ...rest }) => isTabularBenefits ? jsx(TabularBenefitsList, { ...rest }) : jsx(DefaultBenefitsList, { ...rest }));
|
|
2914
2936
|
|
|
2915
|
-
const DOT_SIZE_MAP = {
|
|
2916
|
-
L: 'w-1.5 h-1.5 mr-m',
|
|
2917
|
-
M: 'w-1.5 h-1.5 mr-s',
|
|
2918
|
-
S: 'w-1 h-1 mr-xs',
|
|
2919
|
-
XS: 'w-1 h-1 mr-xs',
|
|
2920
|
-
};
|
|
2921
|
-
const ListItem = JSX(({ className, isDotted, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
|
|
2922
|
-
|
|
2923
|
-
const TEXT_SIZE_MAP = {
|
|
2924
|
-
XS: 'text-m font-light',
|
|
2925
|
-
S: 'text-l font-light',
|
|
2926
|
-
M: 'text-h6',
|
|
2927
|
-
L: 'text-h5',
|
|
2928
|
-
};
|
|
2929
|
-
const ITEM_INDENT_MAP = {
|
|
2930
|
-
XS: 'ml-2xs',
|
|
2931
|
-
S: 'ml-xs',
|
|
2932
|
-
M: 'ml-s',
|
|
2933
|
-
L: 'ml-m',
|
|
2934
|
-
};
|
|
2935
|
-
const List = JSX(({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2936
|
-
|
|
2937
2937
|
const PriceList = JSX(({ priceList }) => priceList?.length ? (jsx("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: priceList.map(renderPriceListItem) })) : null);
|
|
2938
2938
|
const renderPriceListItem = ({ label, amount }) => (jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre", children: [jsx(Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: label }), amount ? (jsxs("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [toLocalNumberFormat(2)(amount), " \u20BD"] })) : null] }));
|
|
2939
2939
|
|
|
@@ -5797,7 +5797,7 @@
|
|
|
5797
5797
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5798
5798
|
}
|
|
5799
5799
|
|
|
5800
|
-
const packageVersion = "0.14.
|
|
5800
|
+
const packageVersion = "0.14.31";
|
|
5801
5801
|
|
|
5802
5802
|
exports.Blocks = Blocks;
|
|
5803
5803
|
exports.ContentPage = ContentPage;
|