@redneckz/wildless-cms-uni-blocks 0.14.11 → 0.14.13

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 (173) hide show
  1. package/bin/migration-scripts/0.14.12.js +34 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +19 -17
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  6. package/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  7. package/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  8. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  9. package/dist/components/Carousel/renderCardHighlight.js +1 -1
  10. package/dist/components/Carousel/renderCardHighlight.js.map +1 -1
  11. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  12. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  13. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  14. package/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  15. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  16. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  17. package/dist/components/PictureText/PictureText.js +1 -1
  18. package/dist/components/PictureText/PictureText.js.map +1 -1
  19. package/dist/components/Tile/Tile.js +1 -1
  20. package/dist/components/Tile/Tile.js.map +1 -1
  21. package/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  22. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  23. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  24. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  25. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  26. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  27. package/dist/ui-kit/Button/ArrowButton.js +3 -2
  28. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  29. package/dist/ui-kit/Button/renderButtonsSection.js +3 -1
  30. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  31. package/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
  32. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  33. package/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  34. package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  35. package/dist/ui-kit/Select/SelectPopup.js +1 -1
  36. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  37. package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  38. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  39. package/lib/common.css +1 -1
  40. package/lib/components/Carousel/renderCardHighlight.js +1 -1
  41. package/lib/components/Carousel/renderCardHighlight.js.map +1 -1
  42. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  43. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  44. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  45. package/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  46. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  47. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  48. package/lib/components/PictureText/PictureText.js +1 -1
  49. package/lib/components/PictureText/PictureText.js.map +1 -1
  50. package/lib/components/Tile/Tile.js +1 -1
  51. package/lib/components/Tile/Tile.js.map +1 -1
  52. package/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  53. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  54. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  55. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  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/ArrowButton.js +3 -2
  59. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  60. package/lib/ui-kit/Button/renderButtonsSection.js +3 -1
  61. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  62. package/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
  63. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  64. package/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  65. package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  66. package/lib/ui-kit/Select/SelectPopup.js +1 -1
  67. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  68. package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  69. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  70. package/mobile/bundle/bundle.umd.js +16 -14
  71. package/mobile/bundle/bundle.umd.min.js +1 -1
  72. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  73. package/mobile/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  74. package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  75. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  76. package/mobile/dist/components/Carousel/renderCardHighlight.js +1 -1
  77. package/mobile/dist/components/Carousel/renderCardHighlight.js.map +1 -1
  78. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  79. package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  80. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  81. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  82. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  83. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  84. package/mobile/dist/components/Tile/Tile.js +1 -1
  85. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  86. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  87. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  88. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  89. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  90. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  91. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  92. package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -2
  93. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  94. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +3 -1
  95. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  96. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
  97. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  98. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  99. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  100. package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
  101. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  102. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  103. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  104. package/mobile/lib/common.css +1 -1
  105. package/mobile/lib/components/Carousel/renderCardHighlight.js +1 -1
  106. package/mobile/lib/components/Carousel/renderCardHighlight.js.map +1 -1
  107. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  108. package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  109. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  110. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  111. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  112. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  113. package/mobile/lib/components/Tile/Tile.js +1 -1
  114. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  115. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  116. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  117. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  118. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  119. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  120. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  121. package/mobile/lib/ui-kit/Button/ArrowButton.js +3 -2
  122. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  123. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +3 -1
  124. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  125. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
  126. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  127. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  128. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  129. package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
  130. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  131. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  132. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  133. package/mobile/src/components/Carousel/renderCardHighlight.tsx +1 -1
  134. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  135. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  136. package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
  137. package/mobile/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
  138. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  139. package/mobile/src/components/PictureText/PictureText.tsx +1 -1
  140. package/mobile/src/components/Tile/Tile.tsx +1 -0
  141. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
  142. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  143. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
  144. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  145. package/mobile/src/ui-kit/Button/ArrowButton.tsx +6 -3
  146. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
  147. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
  148. package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
  149. package/mobile/src/ui-kit/Select/SelectPopup.tsx +2 -2
  150. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
  151. package/package.json +1 -1
  152. package/src/components/Carousel/renderCardHighlight.tsx +1 -1
  153. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  154. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  155. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  156. package/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
  157. package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +1 -15
  158. package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +0 -14
  159. package/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
  160. package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  161. package/src/components/PictureText/PictureText.tsx +1 -1
  162. package/src/components/Tile/Tile.tsx +1 -0
  163. package/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
  164. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  165. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
  166. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  167. package/src/ui-kit/Button/ArrowButton.tsx +6 -3
  168. package/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
  169. package/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
  170. package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
  171. package/src/ui-kit/Select/SelectPopup.tsx +2 -2
  172. package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
  173. package/tailwind.config.cjs +1 -0
@@ -832,7 +832,7 @@
832
832
  return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
833
833
  };
834
834
 
835
- const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: () => onChange && onChange(option), children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
835
+ const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md s1hadow-black", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: () => onChange && onChange(option), children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
836
836
 
837
837
  function useSelectPopup({ isOpen, options, value, query, onChange, onClose, }) {
838
838
  const popup = usePopupManager();
@@ -1029,7 +1029,7 @@
1029
1029
  const inputStyle = {
1030
1030
  backgroundSize: `${((rangeValueShift * 100) / (max - min)).toFixed(2)}% 100%`,
1031
1031
  };
1032
- return (jsxs("div", { children: [list.length ? (jsx("div", { className: "absolute w-full flex justify-between -bottom-[3px] px-m", children: list.map((_, i) => (jsx("div", { className: `w-2 h-2 rounded-full ${rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main'}` }, String(i)))) })) : null, jsx("div", { className: "absolute inset-x-0 -bottom-1 px-m leading-[18px]", children: jsx("input", { className: "box-border w-full m-0 cursor-pointer slider relative z-10", style: inputStyle, type: "range", min: min, max: max, step: step, value: rangeValue, disabled: disabled, onInput: ((e) => {
1032
+ return (jsxs("div", { children: [list.length ? (jsx("div", { className: "absolute w-full flex justify-between -bottom-[3px] px-m", children: list.map((_, i) => (jsx("div", { className: style('w-2 h-2 rounded-full', rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main') }, String(i)))) })) : null, jsx("div", { className: "absolute inset-x-0 -bottom-1 px-m leading-[18px]", children: jsx("input", { className: "box-border w-full m-0 cursor-pointer slider relative z-10", style: inputStyle, type: "range", min: min, max: max, step: step, value: rangeValue, disabled: disabled, onInput: ((e) => {
1033
1033
  const rawValue = parseDecimal(e.target?.value);
1034
1034
  const newValue = list.length ? list[rawValue] : rawValue;
1035
1035
  onChange && onChange(newValue || 0);
@@ -1311,7 +1311,9 @@
1311
1311
  return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: _ }) }, `benefitListItem-${i}`))) })) : null;
1312
1312
  };
1313
1313
 
1314
- const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-lg sm:gap-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
1314
+ const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical
1315
+ ? 'flex-col gap-xs justify-items-stretch'
1316
+ : 'flex-wrap @xl:flex-nowrap gap-lg sm:gap-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
1315
1317
  const renderButton = (buttonClassName = '') => (button, index) => {
1316
1318
  const { text, icon, iconRight, version, ...rest } = button || {};
1317
1319
  const iconVersion = getIconVersion(icon, version);
@@ -1468,9 +1470,9 @@
1468
1470
  ];
1469
1471
  };
1470
1472
 
1471
- const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
1472
- ? 'bg-secondary-light text-secondary-text'
1473
- : 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16" }) })));
1473
+ const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: style('group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black', disabled
1474
+ ? 'bg-secondary-light text-secondary-text'
1475
+ : 'bg-white text-primary-text hover:text-primary-main', className || ''), disabled: disabled, ...rest, children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16" }) })));
1474
1476
  const ScrollLeftButton = JSX((props) => (jsx(ArrowButton, { ...props, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })));
1475
1477
  const ScrollRightButton = JSX((props) => (jsx(ArrowButton, { ...props, className: `${props.className || ''} rotate-180`, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })));
1476
1478
 
@@ -2533,7 +2535,7 @@
2533
2535
  : null;
2534
2536
  }
2535
2537
 
2536
- const renderCardHighlight = ({ className, text = 'ХИТ' } = {}) => (jsxs("div", { className: style('w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]', className), children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "24", height: "24" }), jsx(Paragraph, { size: "text-s", font: "font-normal", align: "text-center", color: "text-primary-text", children: text })] }));
2538
+ const renderCardHighlight = ({ className, text = 'ХИТ' } = {}) => (jsxs("div", { className: style('w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black', className), children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "24", height: "24" }), jsx(Paragraph, { size: "text-s", font: "font-normal", align: "text-center", color: "text-primary-text", children: text })] }));
2537
2539
 
2538
2540
  const cardBaseStyle = 'relative h-full';
2539
2541
  const CARD_SIZE_MAP = {
@@ -2622,8 +2624,8 @@
2622
2624
  center: '@xl:self-center',
2623
2625
  end: '@xl:self-end',
2624
2626
  };
2625
- const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary, 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, {
2626
- className: style('@xl:justify-self-end row-start-1 @xl:row-end-3 @xl:col-start-2', positionStyle(isImageAlwaysOnRight), isImageSecondary ? 'hidden @xl:block' : ''),
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, {
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' : ''),
2627
2629
  imageAlign,
2628
2630
  }), jsx("div", { className: "self-end", children: buttons })] })] })] })));
2629
2631
  const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight
@@ -2753,7 +2755,7 @@
2753
2755
  const img = image?.src ? jsx(Img, { image: image }) : null;
2754
2756
  const headline = renderHeadline({ title, description, headlineVersion, align });
2755
2757
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
2756
- return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), 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 }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2758
+ 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), 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 }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2757
2759
  });
2758
2760
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
2759
2761
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
@@ -2823,8 +2825,8 @@
2823
2825
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2824
2826
 
2825
2827
  //TODO: replace SocialMedia with renderButtonSection
2826
- const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2827
- 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: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2828
+ const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', isImageAlwaysOnRight = true, ...rest }) => {
2829
+ 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: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2828
2830
  });
2829
2831
 
2830
2832
  const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
@@ -4079,7 +4081,7 @@
4079
4081
  if (investmentZeroColumn) {
4080
4082
  columns.unshift(investmentZeroColumn);
4081
4083
  }
4082
- return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { className: "container text-m font-light space-y-4xl", children: [columns?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-3xl pr-lg text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-3xl w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-xs mx-3xl" }), jsx("div", { className: "flex justify-between text-primary-text mt-s -mx-5xl", children: columns.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "max-w-[657px]", items: items, isDotted: isDotted, listItemSize: "M" })) : null] }) }));
4084
+ return (jsx(BlockWrapper, { className: className, defaultPadding: "p-4xl", ...rest, children: jsxs("div", { className: "container text-m font-light space-y-4xl", children: [columns?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-3xl pr-lg text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-3xl w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-xs mx-3xl" }), jsx("div", { className: "flex justify-between text-primary-text mt-s -mx-5xl", children: columns.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "max-w-[657px]", items: items, isDotted: isDotted, listItemSize: "M" })) : null] }) }));
4083
4085
  });
4084
4086
  const renderInvestmentColumn = (column, i, arr) => {
4085
4087
  const isSecondColumn = i === 1;
@@ -4580,7 +4582,7 @@
4580
4582
  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;
4581
4583
  const renderValueBlock = (title, value = 0) => (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: title }), jsxs("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
4582
4584
 
4583
- const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isFullWidthTitle: false, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
4585
+ const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isFullWidthTitle: true, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
4584
4586
 
4585
4587
  const GOLDEN_RATIO = 1.618;
4586
4588
  const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border', className), ...rest, children: [jsx(Headline, { className: "max-w-[600px]", title: title, description: description, headlineVersion: "L", align: "text-left", isEmbedded: true }), jsx("figure", { className: "m-0 mt-xl min-w-[80%]", children: renderShimmer() })] })));
@@ -5132,7 +5134,7 @@
5132
5134
  return (jsx("ul", { className: style('text-secondary-text group-data-secondary:text-white/80', listStyle), children: items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-s", font: "font-light", children: _ }) }, `listItem-${i}`))) }));
5133
5135
  };
5134
5136
 
5135
- const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, ...rest }) })));
5137
+ const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, isFullWidthTitle: false, ...rest }) })));
5136
5138
 
5137
5139
  const VerticalLayout = JSX(({ className = '', gap = '', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
5138
5140
  ...rest,
@@ -5282,7 +5284,7 @@
5282
5284
  globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
5283
5285
  close();
5284
5286
  }, []);
5285
- return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [jsx("div", { className: "sm:flex-1", children: jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
5287
+ return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm:flex-1", children: jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
5286
5288
  });
5287
5289
  const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
5288
5290
 
@@ -5449,7 +5451,7 @@
5449
5451
  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" }) }));
5450
5452
  }
5451
5453
 
5452
- const packageVersion = "0.14.11";
5454
+ const packageVersion = "0.14.13";
5453
5455
 
5454
5456
  exports.Blocks = Blocks;
5455
5457
  exports.ContentPage = ContentPage;