@redneckz/wildless-cms-uni-blocks 0.14.28 → 0.14.29

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 (221) hide show
  1. package/bin/migration-scripts/0.14.28.js +28 -0
  2. package/bin/migration-scripts/0.14.29.js +105 -0
  3. package/bin/migration-scripts/0.14.4.js +4 -4
  4. package/bin/utils.js +20 -9
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +41 -67
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  9. package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
  10. package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  11. package/bundle/model/HeadlineType.d.ts +0 -8
  12. package/dist/components/Blocks.js +0 -4
  13. package/dist/components/Blocks.js.map +1 -1
  14. package/dist/components/Blocks.mobile.js +0 -2
  15. package/dist/components/Blocks.mobile.js.map +1 -1
  16. package/dist/components/Carousel/Carousel.js +1 -1
  17. package/dist/components/Carousel/Carousel.js.map +1 -1
  18. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  19. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  20. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  21. package/dist/components/Footer/SocialMedia.js +2 -2
  22. package/dist/components/Footer/SocialMedia.js.map +1 -1
  23. package/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
  24. package/dist/components/Headline/headlineVersionStyles.js +1 -12
  25. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  26. package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  27. package/dist/model/HeadlineType.d.ts +0 -8
  28. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  29. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  30. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  31. package/dist/ui-kit/List/List.js +1 -1
  32. package/dist/ui-kit/List/List.js.map +1 -1
  33. package/dist/ui-kit/List/ListItem.js +1 -1
  34. package/dist/ui-kit/List/ListItem.js.map +1 -1
  35. package/lib/common.css +1 -1
  36. package/lib/components/Blocks.js +0 -4
  37. package/lib/components/Blocks.js.map +1 -1
  38. package/lib/components/Blocks.mobile.js +0 -2
  39. package/lib/components/Blocks.mobile.js.map +1 -1
  40. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
  41. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -2
  42. package/lib/components/Carousel/Carousel.js +1 -1
  43. package/lib/components/Carousel/Carousel.js.map +1 -1
  44. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
  45. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  46. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  47. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  48. package/lib/components/Footer/SocialMedia.js +2 -2
  49. package/lib/components/Footer/SocialMedia.js.map +1 -1
  50. package/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
  51. package/lib/components/Headline/headlineVersionStyles.js +0 -11
  52. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  53. package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +1 -0
  54. package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  55. package/lib/model/HeadlineType.d.ts +0 -8
  56. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  57. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  58. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  59. package/lib/ui-kit/List/List.js +1 -1
  60. package/lib/ui-kit/List/List.js.map +1 -1
  61. package/lib/ui-kit/List/ListItem.js +1 -1
  62. package/lib/ui-kit/List/ListItem.js.map +1 -1
  63. package/mobile/bundle/bundle.umd.js +41 -64
  64. package/mobile/bundle/bundle.umd.min.js +1 -1
  65. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  66. package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
  67. package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  68. package/mobile/bundle/model/HeadlineType.d.ts +0 -8
  69. package/mobile/dist/components/Blocks.js +0 -2
  70. package/mobile/dist/components/Blocks.js.map +1 -1
  71. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  72. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  73. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  74. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  75. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  76. package/mobile/dist/components/Footer/SocialMedia.js +2 -2
  77. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  78. package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
  79. package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -12
  80. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  81. package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  82. package/mobile/dist/model/HeadlineType.d.ts +0 -8
  83. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  84. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  85. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  86. package/mobile/dist/ui-kit/List/List.js +1 -1
  87. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  88. package/mobile/dist/ui-kit/List/ListItem.js +1 -1
  89. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  90. package/mobile/lib/common.css +1 -1
  91. package/mobile/lib/components/Blocks.js +0 -2
  92. package/mobile/lib/components/Blocks.js.map +1 -1
  93. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  94. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  95. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  96. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  97. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  98. package/mobile/lib/components/Footer/SocialMedia.js +2 -2
  99. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  100. package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
  101. package/mobile/lib/components/Headline/headlineVersionStyles.js +0 -11
  102. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  103. package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  104. package/mobile/lib/model/HeadlineType.d.ts +0 -8
  105. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  106. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  107. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  108. package/mobile/lib/ui-kit/List/List.js +1 -1
  109. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  110. package/mobile/lib/ui-kit/List/ListItem.js +1 -1
  111. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  112. package/mobile/src/components/Blocks.ts +0 -2
  113. package/mobile/src/components/Carousel/Carousel.tsx +1 -1
  114. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
  115. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
  116. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  117. package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -13
  118. package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
  119. package/mobile/src/model/HeadlineType.ts +0 -10
  120. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  121. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  122. package/mobile/src/ui-kit/List/List.tsx +1 -1
  123. package/mobile/src/ui-kit/List/ListItem.tsx +15 -17
  124. package/package.json +1 -1
  125. package/src/components/Blocks.mobile.ts +0 -2
  126. package/src/components/Blocks.ts +0 -4
  127. package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -34
  128. package/src/components/Carousel/Carousel.fixture.tsx +2 -52
  129. package/src/components/Carousel/Carousel.tsx +1 -1
  130. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +44 -0
  131. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
  132. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
  133. package/src/components/Footer/SocialMedia.tsx +2 -2
  134. package/src/components/Headline/headlineVersionStyles.ts +1 -13
  135. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +15 -0
  136. package/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
  137. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +4 -12
  138. package/src/model/HeadlineType.ts +0 -10
  139. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  140. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  141. package/src/ui-kit/List/List.tsx +1 -1
  142. package/src/ui-kit/List/ListItem.tsx +15 -17
  143. package/bin/migration-scripts/0.14.12.js +0 -34
  144. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  145. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  146. package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  147. package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  148. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  149. package/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
  150. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  151. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  152. package/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  153. package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  154. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  155. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
  156. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  157. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  158. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  159. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  160. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  161. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +0 -13
  162. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +0 -13
  163. package/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
  164. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  165. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  166. package/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  167. package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  168. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  169. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +0 -8
  170. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
  171. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  172. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  173. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  174. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  175. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  176. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  177. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  178. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  179. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  180. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
  181. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  182. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  183. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  184. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  185. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  186. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
  187. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  188. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  189. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  190. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  191. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  192. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
  193. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  194. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  195. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  196. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  197. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  198. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
  199. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  200. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  201. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  202. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  203. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
  204. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
  205. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
  206. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
  207. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
  208. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
  209. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
  210. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
  211. package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
  212. package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +0 -92
  213. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +0 -96
  214. package/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
  215. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
  216. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
  217. package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
  218. package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +0 -26
  219. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
  220. package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
  221. package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
@@ -1530,8 +1530,8 @@
1530
1530
  const defaultIconSize = 44;
1531
1531
 
1532
1532
  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] })));
1533
- 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)));
1534
- const renderDescription$2 = (description) => {
1533
+ 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$1(benefit.description)] })) : null] }, String(i)));
1534
+ const renderDescription$1 = (description) => {
1535
1535
  const benefitType = description?.benefitType || null;
1536
1536
  return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
1537
1537
  ? renderListBenefit(description)
@@ -1552,7 +1552,7 @@
1552
1552
  const { text, icon, iconRight, version, ...rest } = button || {};
1553
1553
  const iconVersion = getIconVersion(icon, version);
1554
1554
  const iconRightVersion = getIconVersion(iconRight, version);
1555
- return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1555
+ return text || icon?.icon ? (jsx(Button, { className: style('basis-full lg:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1556
1556
  };
1557
1557
  const DEFAULT_ICON_W = 24;
1558
1558
  const getIconVersion = (icon, version = 'secondary') => {
@@ -1599,17 +1599,6 @@
1599
1599
  descriptionStyle: 'mt-xs',
1600
1600
  },
1601
1601
  };
1602
- // TODO: Move to Gallery and rename
1603
- const HEADLINE_SMALL_VERSION = {
1604
- H6: 'text-h6',
1605
- XL_L: 'text-xl-light',
1606
- XL_R: 'text-xl',
1607
- L_L: 'text-l-light',
1608
- L_R: 'text-l',
1609
- M: 'text-m-light',
1610
- S: 'text-s-light',
1611
- XS: 'text-xs-light',
1612
- };
1613
1602
 
1614
1603
  const Headline = JSX(({ className, version = '', headlineVersion = 'XL', title, description, align = 'text-center', as, isEmbedded = false, isTheme = false, ...rest }) => {
1615
1604
  const versionStyle = headlineVersionStyles[headlineVersion];
@@ -2798,8 +2787,8 @@
2798
2787
  'CarouselProgramsCard',
2799
2788
  'CarouselRecommendationCard',
2800
2789
  'CarouselTariffsCard',
2801
- 'CarouselRichTextCard',
2802
2790
  'CarouselInvestmentCard',
2791
+ 'RichTextBlock',
2803
2792
  'ProductBlock',
2804
2793
  ];
2805
2794
  Carousel.childSchema = () => ({
@@ -2831,7 +2820,7 @@
2831
2820
  center: '@xl:self-center',
2832
2821
  end: '@xl:self-end',
2833
2822
  };
2834
- 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 overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @md:flex-row gap-3xl', leftImage ? 'self-start' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'm-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
2823
+ 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 overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl', leftImage ? 'self-start' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
2835
2824
  className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
2836
2825
  imageAlign,
2837
2826
  }), renderButtons(buttons)] })] })] })));
@@ -2839,7 +2828,7 @@
2839
2828
  const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'justify-self-end col-start-2 self-center' : '';
2840
2829
  const renderButtons = (buttons) => buttons ? jsx("div", { className: "self-end", children: buttons }) : null;
2841
2830
  const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2842
- const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @md:block' : '';
2831
+ const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @xl:block' : '';
2843
2832
 
2844
2833
  const cardStyleMap = {
2845
2834
  black: 'bg-black',
@@ -2874,47 +2863,6 @@
2874
2863
  .map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
2875
2864
  };
2876
2865
 
2877
- const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2878
- const link = useLink({ isRemote });
2879
- const linkProps = link({ href, target });
2880
- const Tag = href ? 'a' : 'div';
2881
- return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2882
- });
2883
-
2884
- const DOT_SIZE_MAP = {
2885
- L: 'w-1.5 h-1.5 mr-m',
2886
- M: 'w-1.5 h-1.5 mr-s',
2887
- S: 'w-1 h-1 mr-xs',
2888
- XS: 'w-1 h-1 mr-xs',
2889
- };
2890
- const ListItem = JSX(({ className, isDotted = true, 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 })] })));
2891
-
2892
- const TEXT_SIZE_MAP = {
2893
- XS: 'text-m font-light',
2894
- S: 'text-l font-light',
2895
- M: 'text-h6',
2896
- L: 'text-h5',
2897
- };
2898
- const ITEM_INDENT_MAP = {
2899
- XS: 'ml-2xs',
2900
- S: 'ml-xs',
2901
- M: 'ml-s',
2902
- L: 'ml-m',
2903
- };
2904
- 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);
2905
-
2906
- 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 }) => {
2907
- 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], {
2908
- className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2909
- isVertical: isButtonFullWidth,
2910
- })] }));
2911
- });
2912
- 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] }));
2913
- const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
2914
- const renderDescription$1 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2915
- 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;
2916
- 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;
2917
-
2918
2866
  const sum = (list = []) => list.reduce((a, b) => a + b, 0);
2919
2867
 
2920
2868
  const avg = (items = []) => (items?.length ? sum(items) / items.length : 0);
@@ -2956,6 +2904,28 @@
2956
2904
 
2957
2905
  const BenefitsList = JSX(({ isTabularBenefits, ...rest }) => isTabularBenefits ? jsx(TabularBenefitsList, { ...rest }) : jsx(DefaultBenefitsList, { ...rest }));
2958
2906
 
2907
+ const DOT_SIZE_MAP = {
2908
+ L: 'w-1.5 h-1.5 mr-m',
2909
+ M: 'w-1.5 h-1.5 mr-s',
2910
+ S: 'w-1 h-1 mr-xs',
2911
+ XS: 'w-1 h-1 mr-xs',
2912
+ };
2913
+ 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 })] })));
2914
+
2915
+ const TEXT_SIZE_MAP = {
2916
+ XS: 'text-m font-light',
2917
+ S: 'text-l font-light',
2918
+ M: 'text-h6',
2919
+ L: 'text-h5',
2920
+ };
2921
+ const ITEM_INDENT_MAP = {
2922
+ XS: 'ml-2xs',
2923
+ S: 'ml-xs',
2924
+ M: 'ml-s',
2925
+ L: 'ml-m',
2926
+ };
2927
+ 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);
2928
+
2959
2929
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2960
2930
  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)));
2961
2931
 
@@ -2969,6 +2939,13 @@
2969
2939
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
2970
2940
  const renderHeadline = ({ title, description, headlineVersion, align }) => title || description ? (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true })) : null;
2971
2941
 
2942
+ const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2943
+ const link = useLink({ isRemote });
2944
+ const linkProps = link({ href, target });
2945
+ const Tag = href ? 'a' : 'div';
2946
+ return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2947
+ });
2948
+
2972
2949
  const ICONS_MAP = [
2973
2950
  {
2974
2951
  origins: ['t.me', 'telegram.org'],
@@ -3020,12 +2997,12 @@
3020
2997
  ..._,
3021
2998
  ...buttonText,
3022
2999
  icon: { ...iconCustom, iconVersion: 'color' },
3023
- version,
3000
+ version: _?.version ?? version,
3024
3001
  };
3025
3002
  });
3026
3003
  const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', stretched ? 'flex-1 justify-center' : '');
3027
3004
  return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
3028
- className: stretched ? 'w-full' : '',
3005
+ className: style(stretched || hasText ? 'basis-full' : ''),
3029
3006
  buttonClassName,
3030
3007
  }) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
3031
3008
  });
@@ -3033,11 +3010,10 @@
3033
3010
  const ImageAlwaysOnRight = true;
3034
3011
 
3035
3012
  //TODO: replace SocialMedia with renderButtonSection
3036
- const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
3037
- return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, listItemSize: listItemSize })] }) }) }));
3013
+ const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
3014
+ return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, listItemSize: listItemSize, isDotted: isDotted }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
3038
3015
  });
3039
-
3040
- const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
3016
+ const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
3041
3017
 
3042
3018
  const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
3043
3019
  const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
@@ -5433,9 +5409,7 @@
5433
5409
  CarouselCatalogCard,
5434
5410
  CarouselInvestmentCard,
5435
5411
  CarouselLinks,
5436
- CarouselProductCard,
5437
5412
  CarouselRecommendationCard,
5438
- CarouselRichTextCard,
5439
5413
  CarouselTariffsCard,
5440
5414
  ComparisonTable,
5441
5415
  ContactsBlock,
@@ -5711,7 +5685,7 @@
5711
5685
  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" }) }));
5712
5686
  }
5713
5687
 
5714
- const packageVersion = "0.14.28";
5688
+ const packageVersion = "0.14.29";
5715
5689
 
5716
5690
  exports.Blocks = Blocks;
5717
5691
  exports.ContentPage = ContentPage;