@redneckz/wildless-cms-uni-blocks 0.14.14 → 0.14.15

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.
Files changed (53) hide show
  1. package/bundle/bundle.umd.js +10 -12
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  4. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  5. package/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  6. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  7. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  8. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  9. package/lib/common.css +1 -1
  10. package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  11. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  12. package/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  13. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  14. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  15. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  16. package/mobile/bundle/bundle.umd.js +10 -12
  17. package/mobile/bundle/bundle.umd.min.js +1 -1
  18. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  19. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  20. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  21. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  22. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  23. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  24. package/mobile/lib/common.css +1 -1
  25. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  26. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  27. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  28. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  29. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  30. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  31. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
  32. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  33. package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
  34. package/package.json +1 -1
  35. package/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
  36. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  37. package/src/ui-kit/Button/ButtonInner.tsx +2 -2
  38. package/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
  39. package/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
  40. package/dist/components/MobileAppTile/renderDescription.js +0 -7
  41. package/dist/components/MobileAppTile/renderDescription.js.map +0 -1
  42. package/lib/components/MobileAppTile/renderDescription.d.ts +0 -1
  43. package/lib/components/MobileAppTile/renderDescription.js +0 -4
  44. package/lib/components/MobileAppTile/renderDescription.js.map +0 -1
  45. package/mobile/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
  46. package/mobile/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
  47. package/mobile/dist/components/MobileAppTile/renderDescription.js +0 -7
  48. package/mobile/dist/components/MobileAppTile/renderDescription.js.map +0 -1
  49. package/mobile/lib/components/MobileAppTile/renderDescription.d.ts +0 -2
  50. package/mobile/lib/components/MobileAppTile/renderDescription.js +0 -4
  51. package/mobile/lib/components/MobileAppTile/renderDescription.js.map +0 -1
  52. package/mobile/src/components/MobileAppTile/renderDescription.tsx +0 -10
  53. package/src/components/MobileAppTile/renderDescription.tsx +0 -10
@@ -638,7 +638,7 @@
638
638
 
639
639
  const ButtonInner = JSX((props) => {
640
640
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
641
- return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-xs'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
641
+ return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-xs'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
642
642
  });
643
643
  const getButtonStyle = (props) => {
644
644
  const { version, aboveText, rounded } = props;
@@ -1298,8 +1298,8 @@
1298
1298
  const AlignStyles = 'text-center';
1299
1299
 
1300
1300
  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] })));
1301
- const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
1302
- const renderDescription$3 = (description) => {
1301
+ const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$2(benefit.description)] })) : null] }, String(i)));
1302
+ const renderDescription$2 = (description) => {
1303
1303
  const benefitType = description?.benefitType || null;
1304
1304
  return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
1305
1305
  ? renderListBenefit(description)
@@ -2624,12 +2624,12 @@
2624
2624
  center: '@xl:self-center',
2625
2625
  end: '@xl:self-end',
2626
2626
  };
2627
- const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col-reverse @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow grid gap-3xl row-span-1", children: [insetTitle, children] }), renderImageContainer(rightImage, {
2627
+ const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col-reverse @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg", children: [insetTitle, children] }), renderImageContainer(rightImage, {
2628
2628
  className: style('@xl:justify-self-end @xl:row-start-1 @xl:row-end-3 @xl:col-start-2 ', positionStyle(isImageAlwaysOnRight), isImageSecondary ? 'hidden @xl:block' : ''),
2629
2629
  imageAlign,
2630
- }), jsx("div", { className: "self-end", children: buttons })] })] })] })));
2630
+ }), buttons ? jsx("div", { className: "self-end", children: buttons }) : null] })] })] })));
2631
2631
  const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight
2632
- ? 'ml-xl justify-self-end row-start-1 row-end-3 col-start-2 self-center'
2632
+ ? 'justify-self-end row-start-1 row-end-3 col-start-2 self-center'
2633
2633
  : '';
2634
2634
  const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2635
2635
 
@@ -2696,14 +2696,14 @@
2696
2696
  const List = JSX(({ className, hasIndent, isDotted, 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);
2697
2697
 
2698
2698
  const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
2699
- return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$2(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2699
+ return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$1(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2700
2700
  className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2701
2701
  isVertical: isButtonFullWidth,
2702
2702
  })] }));
2703
2703
  });
2704
2704
  const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? (jsx(Img, { className: style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
2705
2705
  const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
2706
- const renderDescription$2 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2706
+ const renderDescription$1 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2707
2707
  const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
2708
2708
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
2709
2709
 
@@ -4147,8 +4147,6 @@
4147
4147
  return (jsx("div", { role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
4148
4148
  };
4149
4149
 
4150
- const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description }) })) : null;
4151
-
4152
4150
  const renderList$1 = (items, listItemSize) => {
4153
4151
  return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
4154
4152
  };
@@ -4156,7 +4154,7 @@
4156
4154
  const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
4157
4155
  const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
4158
4156
  const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
4159
- return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons), children: [renderDescription$1(description), jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @4xl:flex-row @4xl:items-center'), children: [renderList$1(items, listItemSize), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @4xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
4157
+ return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [renderList$1(items, listItemSize), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
4160
4158
  });
4161
4159
 
4162
4160
  const badgeBgStyleMap = {
@@ -5451,7 +5449,7 @@
5451
5449
  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" }) }));
5452
5450
  }
5453
5451
 
5454
- const packageVersion = "0.14.14";
5452
+ const packageVersion = "0.14.15";
5455
5453
 
5456
5454
  exports.Blocks = Blocks;
5457
5455
  exports.ContentPage = ContentPage;