@redneckz/wildless-cms-uni-blocks 0.14.13 → 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 (114) hide show
  1. package/bundle/bundle.umd.js +13 -15
  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/components/ProductBlock/ProductBlock.js +2 -2
  6. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  7. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  8. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  9. package/dist/components/ProductTile/ProductTile.js +1 -1
  10. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  11. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  12. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  13. package/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  14. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  15. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  16. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  17. package/lib/common.css +1 -1
  18. package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  19. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  20. package/lib/components/ProductBlock/ProductBlock.js +2 -2
  21. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  22. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  23. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  24. package/lib/components/ProductTile/ProductTile.js +1 -1
  25. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  26. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  27. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  28. package/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  29. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  30. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  31. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  32. package/mobile/bundle/bundle.umd.js +12 -14
  33. package/mobile/bundle/bundle.umd.min.js +1 -1
  34. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  35. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  36. package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -2
  37. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  38. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  39. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  40. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  41. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  42. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  43. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  44. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  45. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  46. package/mobile/lib/common.css +1 -1
  47. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  48. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  49. package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -2
  50. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  51. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  52. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  53. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  54. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  55. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  56. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  57. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  58. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  59. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
  60. package/mobile/src/components/ProductBlock/ProductBlock.tsx +3 -3
  61. package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
  62. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
  63. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  64. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  65. package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
  66. package/package.json +1 -1
  67. package/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
  68. package/src/components/ProductBlock/ProductBlock.tsx +3 -3
  69. package/src/components/ProductGallery/ProductGallery.tsx +1 -0
  70. package/src/components/ProductTile/ProductTile.example.json +1 -0
  71. package/src/components/ProductTile/ProductTile.tsx +2 -0
  72. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  73. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  74. package/src/ui-kit/Button/ButtonInner.tsx +2 -2
  75. package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  76. package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
  77. package/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
  78. package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  79. package/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
  80. package/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  81. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
  82. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -4
  83. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
  84. package/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
  85. package/dist/components/MobileAppTile/renderDescription.js +0 -7
  86. package/dist/components/MobileAppTile/renderDescription.js.map +0 -1
  87. package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  88. package/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
  89. package/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  90. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
  91. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -2
  92. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
  93. package/lib/components/MobileAppTile/renderDescription.d.ts +0 -1
  94. package/lib/components/MobileAppTile/renderDescription.js +0 -4
  95. package/lib/components/MobileAppTile/renderDescription.js.map +0 -1
  96. package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  97. package/mobile/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
  98. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  99. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
  100. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  101. package/mobile/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
  102. package/mobile/dist/components/MobileAppTile/renderDescription.js +0 -7
  103. package/mobile/dist/components/MobileAppTile/renderDescription.js.map +0 -1
  104. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  105. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
  106. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  107. package/mobile/lib/components/MobileAppTile/renderDescription.d.ts +0 -2
  108. package/mobile/lib/components/MobileAppTile/renderDescription.js +0 -4
  109. package/mobile/lib/components/MobileAppTile/renderDescription.js.map +0 -1
  110. package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
  111. package/mobile/src/components/MobileAppTile/renderDescription.tsx +0 -10
  112. package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +0 -1
  113. package/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
  114. package/src/components/MobileAppTile/renderDescription.tsx +0 -10
@@ -4,7 +4,7 @@ import { style } from '../../utils/style.js';
4
4
  import { iconStyleMap } from './buttonClassNameConstants.js';
5
5
  export const ButtonInner = JSX((props) => {
6
6
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
7
- 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] }));
7
+ 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] }));
8
8
  });
9
9
  const getButtonStyle = (props) => {
10
10
  const { version, aboveText, rounded } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAc,CAAC,KAAK,EAAE,EAAE;IACpD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS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AC,KAAoB,EAAE,EAAE;IAC9C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAEnE,OAAO,KAAK,CACV,uCAAuC,EACvC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,kBAAkB,EACtD,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAC9B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAe,EAAE,EAAE,CAClE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
@@ -646,7 +646,7 @@
646
646
 
647
647
  const ButtonInner = JSX((props) => {
648
648
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
649
- 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] }));
649
+ 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] }));
650
650
  });
651
651
  const getButtonStyle = (props) => {
652
652
  const { version, aboveText, rounded } = props;
@@ -1306,8 +1306,8 @@
1306
1306
  const AlignStyles = 'text-left';
1307
1307
 
1308
1308
  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] })));
1309
- 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)));
1310
- const renderDescription$3 = (description) => {
1309
+ 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)));
1310
+ const renderDescription$2 = (description) => {
1311
1311
  const benefitType = description?.benefitType || null;
1312
1312
  return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
1313
1313
  ? renderListBenefit(description)
@@ -2588,12 +2588,12 @@
2588
2588
  center: '@xl:self-center',
2589
2589
  end: '@xl:self-end',
2590
2590
  };
2591
- 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, {
2591
+ 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, {
2592
2592
  className: style('@xl:justify-self-end @xl:row-start-1 @xl:row-end-3 @xl:col-start-2 ', positionStyle(isImageAlwaysOnRight), isImageSecondary ? 'hidden @xl:block' : ''),
2593
2593
  imageAlign,
2594
- }), jsx("div", { className: "self-end", children: buttons })] })] })] })));
2594
+ }), buttons ? jsx("div", { className: "self-end", children: buttons }) : null] })] })] })));
2595
2595
  const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight
2596
- ? 'ml-xl justify-self-end row-start-1 row-end-3 col-start-2 self-center'
2596
+ ? 'justify-self-end row-start-1 row-end-3 col-start-2 self-center'
2597
2597
  : '';
2598
2598
  const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2599
2599
 
@@ -2653,14 +2653,14 @@
2653
2653
  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);
2654
2654
 
2655
2655
  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 }) => {
2656
- 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], {
2656
+ 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], {
2657
2657
  className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2658
2658
  isVertical: isButtonFullWidth,
2659
2659
  })] }));
2660
2660
  });
2661
2661
  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] }));
2662
2662
  const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
2663
- const renderDescription$2 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2663
+ const renderDescription$1 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2664
2664
  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;
2665
2665
  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;
2666
2666
 
@@ -2708,7 +2708,7 @@
2708
2708
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2709
2709
  const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
2710
2710
 
2711
- const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
2711
+ const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
2712
2712
  const img = image?.src ? jsx(Img, { image: image }) : null;
2713
2713
  const headline = renderHeadline({ title, description, headlineVersion, align });
2714
2714
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
@@ -3252,8 +3252,6 @@
3252
3252
  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)));
3253
3253
  };
3254
3254
 
3255
- 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;
3256
-
3257
3255
  const renderList$1 = (items, listItemSize) => {
3258
3256
  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" }));
3259
3257
  };
@@ -3261,7 +3259,7 @@
3261
3259
  const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
3262
3260
  const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
3263
3261
  const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
3264
- 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] })] }) }));
3262
+ 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] })] }) }));
3265
3263
  });
3266
3264
 
3267
3265
  const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит', monthLimit) : null] })) : null;
@@ -3302,7 +3300,7 @@
3302
3300
  .map((s) => s.productBlock)
3303
3301
  .map((_, i) => (jsx("div", { className: "box-border h-full", role: "listitem", children: jsx(BaseProductTile, { className: "px-5 h-full", headlineVersion: "L", ..._, ...rest }) }, String(i)))) }) })));
3304
3302
 
3305
- const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
3303
+ const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, isFullWidthTitle = true, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, isFullWidthTitle: isFullWidthTitle, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
3306
3304
 
3307
3305
  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: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
3308
3306
  label: 'Адрес',
@@ -4918,7 +4916,7 @@
4918
4916
 
4919
4917
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
4920
4918
 
4921
- const packageVersion = "0.14.13";
4919
+ const packageVersion = "0.14.15";
4922
4920
 
4923
4921
  exports.Blocks = Blocks;
4924
4922
  exports.ContentPage = ContentPage;