@redneckz/wildless-cms-uni-blocks 0.10.0 → 0.10.1

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 (168) hide show
  1. package/bin/migration-scripts/0.9.10.js +30 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +35 -25
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Footer/FooterContent.d.ts +1 -1
  6. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  7. package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  8. package/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
  9. package/bundle/components/ProductTile/renderImage.d.ts +1 -1
  10. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  11. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  12. package/bundle/components/Tile/TileContent.d.ts +2 -0
  13. package/dist/components/Blocks.js +2 -0
  14. package/dist/components/Blocks.js.map +1 -1
  15. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  16. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  17. package/dist/components/Footer/FooterContent.d.ts +1 -1
  18. package/dist/components/Headline/Headline.js +1 -1
  19. package/dist/components/Headline/Headline.js.map +1 -1
  20. package/dist/components/ProductBlock/ProductBlock.js +2 -3
  21. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  22. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  23. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  24. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  25. package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  26. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  27. package/dist/components/ProductTile/ProductTile.js +4 -2
  28. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  29. package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  30. package/dist/components/ProductTile/renderImage.d.ts +1 -1
  31. package/dist/components/ProductTile/renderImage.js +3 -2
  32. package/dist/components/ProductTile/renderImage.js.map +1 -1
  33. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  34. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
  35. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  36. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  37. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  38. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  39. package/dist/components/Tile/Tile.js +5 -4
  40. package/dist/components/Tile/Tile.js.map +1 -1
  41. package/dist/components/Tile/TileContent.d.ts +2 -0
  42. package/lib/common.css +1 -1
  43. package/lib/components/Blocks.js +2 -0
  44. package/lib/components/Blocks.js.map +1 -1
  45. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  46. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  47. package/lib/components/Footer/FooterContent.d.ts +1 -1
  48. package/lib/components/Headline/Headline.js +1 -1
  49. package/lib/components/Headline/Headline.js.map +1 -1
  50. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -1
  51. package/lib/components/ProductBlock/ProductBlock.js +2 -3
  52. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  53. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  54. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  55. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  56. package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  57. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  58. package/lib/components/ProductTile/ProductTile.js +4 -2
  59. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  60. package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  61. package/lib/components/ProductTile/renderImage.d.ts +1 -1
  62. package/lib/components/ProductTile/renderImage.js +3 -2
  63. package/lib/components/ProductTile/renderImage.js.map +1 -1
  64. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  65. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +6 -0
  66. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
  67. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  68. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  69. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  70. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  71. package/lib/components/Tile/Tile.fixture.d.ts +1 -0
  72. package/lib/components/Tile/Tile.js +5 -4
  73. package/lib/components/Tile/Tile.js.map +1 -1
  74. package/lib/components/Tile/TileContent.d.ts +2 -0
  75. package/mobile/bundle/bundle.umd.js +2 -2
  76. package/mobile/bundle/bundle.umd.min.js +1 -1
  77. package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -1
  78. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  79. package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  80. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
  81. package/mobile/bundle/components/ProductTile/renderImage.d.ts +1 -1
  82. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  83. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  84. package/mobile/bundle/components/Tile/TileContent.d.ts +2 -0
  85. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  86. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  87. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
  88. package/mobile/dist/components/Headline/Headline.js +1 -1
  89. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  90. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  91. package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  92. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  93. package/mobile/dist/components/ProductTile/ProductTile.js +4 -2
  94. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  95. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  96. package/mobile/dist/components/ProductTile/renderImage.d.ts +1 -1
  97. package/mobile/dist/components/ProductTile/renderImage.js +3 -2
  98. package/mobile/dist/components/ProductTile/renderImage.js.map +1 -1
  99. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  100. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
  101. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  102. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  103. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  104. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  105. package/mobile/dist/components/Tile/Tile.js +5 -4
  106. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  107. package/mobile/dist/components/Tile/TileContent.d.ts +2 -0
  108. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  109. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  110. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
  111. package/mobile/lib/components/Headline/Headline.js +1 -1
  112. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  113. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  114. package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  115. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  116. package/mobile/lib/components/ProductTile/ProductTile.js +4 -2
  117. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  118. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  119. package/mobile/lib/components/ProductTile/renderImage.d.ts +1 -1
  120. package/mobile/lib/components/ProductTile/renderImage.js +3 -2
  121. package/mobile/lib/components/ProductTile/renderImage.js.map +1 -1
  122. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  123. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
  124. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  125. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  126. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  127. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  128. package/mobile/lib/components/Tile/Tile.js +5 -4
  129. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  130. package/mobile/lib/components/Tile/TileContent.d.ts +2 -0
  131. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
  132. package/mobile/src/components/Footer/FooterContent.ts +1 -1
  133. package/mobile/src/components/Headline/Headline.tsx +1 -5
  134. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
  135. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  136. package/mobile/src/components/ProductTile/ProductTile.tsx +11 -6
  137. package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
  138. package/mobile/src/components/ProductTile/renderImage.tsx +3 -2
  139. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
  140. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
  141. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
  142. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
  143. package/mobile/src/components/Tile/Tile.example.json +2 -1
  144. package/mobile/src/components/Tile/Tile.tsx +26 -17
  145. package/mobile/src/components/Tile/TileContent.ts +2 -0
  146. package/package.json +2 -2
  147. package/src/components/Blocks.ts +2 -0
  148. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
  149. package/src/components/Footer/FooterContent.ts +1 -1
  150. package/src/components/Headline/Headline.tsx +1 -5
  151. package/src/components/ProductBlock/ProductBlock.fixture.tsx +14 -22
  152. package/src/components/ProductBlock/ProductBlock.tsx +5 -6
  153. package/src/components/ProductBlock/ProductBlockContent.ts +0 -2
  154. package/src/components/ProductBlock/ProductBlockInner.tsx +21 -25
  155. package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  156. package/src/components/ProductTile/ProductTile.fixture.tsx +6 -2
  157. package/src/components/ProductTile/ProductTile.tsx +11 -6
  158. package/src/components/ProductTile/ProductTileContent.ts +1 -1
  159. package/src/components/ProductTile/renderImage.tsx +3 -2
  160. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
  161. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +37 -0
  162. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
  163. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
  164. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
  165. package/src/components/Tile/Tile.example.json +2 -1
  166. package/src/components/Tile/Tile.fixture.tsx +5 -0
  167. package/src/components/Tile/Tile.tsx +26 -17
  168. package/src/components/Tile/TileContent.ts +2 -0
@@ -1263,7 +1263,7 @@
1263
1263
  const Headline = JSX(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as, isPadding = true, isTheme = false, version = '', ...rest }) => {
1264
1264
  const versionStyle = headlineVersionStyles[headlineVersion];
1265
1265
  const paddingStyle = isPadding ? 'p-12' : '';
1266
- return (jsxs(BlockWrapper, { className: style('flex flex-col', paddingStyle, versionStyle.wrapper, className), version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { color: "group-data-secondary:text-white/80", size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
1266
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', paddingStyle, versionStyle.wrapper, className), version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
1267
1267
  });
1268
1268
 
1269
1269
  const Bonus = JSX((props) => {
@@ -2036,7 +2036,7 @@
2036
2036
 
2037
2037
  const DEFAULT_ANCESTORS = [];
2038
2038
  const defaultStyle = 'col-span-12';
2039
- function renderBlock(block, options, { className, ...extraProps } = {}) {
2039
+ function renderBlock$1(block, options, { className, ...extraProps } = {}) {
2040
2040
  const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
2041
2041
  const { type } = block;
2042
2042
  if (!(type && type in blocksRegistry)) {
@@ -2059,7 +2059,7 @@
2059
2059
  const DEFAULT_SLOT_NAME = null;
2060
2060
 
2061
2061
  const EMPTY_ANCESTORS = [];
2062
- const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderProps = renderBlock, ...options }) => (blocks || []).map((_, j) => renderProps(_, {
2062
+ const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderProps = renderBlock$1, ...options }) => (blocks || []).map((_, j) => renderProps(_, {
2063
2063
  ...options,
2064
2064
  key: `${key ? key : _.type}-${j}`,
2065
2065
  ancestors: options.parent
@@ -2267,11 +2267,11 @@
2267
2267
  return (jsx(BlockWrapper, { className: style(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: jsxs("div", { className: style(getAlignStyle(isAlignCenter), 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren({
2268
2268
  ...rest,
2269
2269
  renderProps: isBankHistoryCarousel
2270
- ? (block, options) => renderBlock(block, options, {
2270
+ ? (block, options) => renderBlock$1(block, options, {
2271
2271
  blocksLength: childBlocks?.length,
2272
2272
  activeIndex: activeIndex,
2273
2273
  })
2274
- : renderBlock,
2274
+ : renderBlock$1,
2275
2275
  }) }), jsx(CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count }), showDots ? renderDots(containerRef, dotsActiveIndex, itemCount) : null] }) }));
2276
2276
  });
2277
2277
  Carousel.childrenTypes = [
@@ -2343,7 +2343,7 @@
2343
2343
  black: 'bg-black',
2344
2344
  white: 'bg-white',
2345
2345
  };
2346
- const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
2346
+ const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
2347
2347
  const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2348
2348
 
2349
2349
  const LinkWrapper = JSX(({ className = '', href, target, children }) => {
@@ -2493,9 +2493,9 @@
2493
2493
 
2494
2494
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
2495
2495
  const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', version = 'primary', ...rest }) => {
2496
- return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "flex flex-col gap-2", itemClassName: "text-l-light", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$1(icon)] }) }));
2496
+ return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "flex flex-col gap-2", itemClassName: "text-l-light", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$2(icon)] }) }));
2497
2497
  });
2498
- const renderIconBlock$1 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2498
+ const renderIconBlock$2 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2499
2499
 
2500
2500
  const RichText = JSX((props) => {
2501
2501
  const { __html = '', richVersion = '' } = props;
@@ -2531,9 +2531,9 @@
2531
2531
  const cellsNode = cardCells.map(renderCardInfo);
2532
2532
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
2533
2533
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
2534
- return (jsxs(BlockWrapper, { className: style('relative border border-gray p-8 flex flex-col', getHitStyle(isHighlighting), className), ...rest, children: [isHighlighting ? renderHitIcon() : null, renderIconBlock(icon), title ? jsx(Heading, { className: "text-center pt-2", headingType: "h5", title: title }) : null, button ? jsx(Button, { className: "w-full mt-4", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2534
+ return (jsxs(BlockWrapper, { className: style('relative border border-gray p-8 flex flex-col', getHitStyle(isHighlighting), className), ...rest, children: [isHighlighting ? renderHitIcon() : null, renderIconBlock$1(icon), title ? jsx(Heading, { className: "text-center pt-2", headingType: "h5", title: title }) : null, button ? jsx(Button, { className: "w-full mt-4", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2535
2535
  });
2536
- const renderIconBlock = (icon) => (jsxs("div", { className: "w-[267px] min-w-[267px] self-center", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null] }));
2536
+ const renderIconBlock$1 = (icon) => (jsxs("div", { className: "w-[267px] min-w-[267px] self-center", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null] }));
2537
2537
  const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-8 pt-20' : 'mt-20 pt-8';
2538
2538
  const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16", asSVG: true })] }));
2539
2539
  const renderCardInfo = (cell, i) => (jsxs("div", { className: "py-5 border-b border-main-divider", children: [cell?.title ? (jsx("div", { className: "text-secondary-text text-m-light opacity-80", children: cell.title })) : null, cell?.description ? (jsx("div", { className: "text-primary-text text-h6 mt-1", children: cell.description })) : null] }, String(i)));
@@ -4235,10 +4235,10 @@
4235
4235
 
4236
4236
  const renderBenefit$1 = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
4237
4237
 
4238
- const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', directionRight = true, }) => {
4238
+ const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', directionRight = true, }) => {
4239
4239
  const benefitsCount = benefits?.filter((_) => _.label)?.length;
4240
4240
  const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
4241
- return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [image?.src ? (jsx(ImgInner, { className: `mt-[-50px] ${directionRight ? 'order-2' : ''}`, image: image })) : null, jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits?.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] })] }));
4241
+ return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [image?.src ? (jsx(ImgInner, { className: style('mt-[-50px]', directionRight ? 'order-2' : ''), image: image })) : null, jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits?.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] })] })] }));
4242
4242
  });
4243
4243
  const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
4244
4244
  ? 'inline-grid grid-cols-[auto_auto_auto]'
@@ -4255,9 +4255,7 @@
4255
4255
  const ProductBlock = JSX((props) => {
4256
4256
  const { className = '', breadcrumbs, backwardButton, version = 'primary', ...rest } = props;
4257
4257
  const buttonVersion = version === 'primary' ? version : 'white';
4258
- return (jsxs(BlockWrapper, { className: `overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${className}`, version: version, ...rest, children: [backwardButton?.text
4259
- ? renderBackwardButton(backwardButton, buttonVersion, 'mb-10 -mt-2.5')
4260
- : null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbStyle}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { className: breadcrumbStyle, ...breadcrumb }, String(i))))) })) : null, jsx(ProductBlockInner, { version: version, ...rest })] }));
4258
+ return (jsxs(BlockWrapper, { className: style('overflow-hidden p-12 flex flex-col box-border min-h-[454px]', className), version: version, ...rest, children: [backwardButton?.text ? renderBackwardButton(backwardButton, buttonVersion) : null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: style('mx-2', breadcrumbStyle), children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { className: breadcrumbStyle, ...breadcrumb }, String(i))))) })) : null, jsx(ProductBlockInner, { className: "mt-10", version: version, ...rest })] }));
4261
4259
  });
4262
4260
 
4263
4261
  const ProductGallery = JSX(({ className = '', slides = [], ...rest }) => {
@@ -4319,21 +4317,23 @@
4319
4317
  }
4320
4318
  };
4321
4319
 
4322
- function renderImage$1(image, isImageOnRightSide) {
4320
+ function renderImage$1(image, directionRight) {
4323
4321
  if (!image?.src) {
4324
4322
  return null;
4325
4323
  }
4326
- return (jsx(ImgInner, { className: `absolute ${isImageOnRightSide ? 'right-0' : 'left-0'} bottom-0`, image: image }));
4324
+ return (jsx(ImgInner, { className: style('absolute', directionRight ? 'right-0' : 'left-0', 'bottom-0'), image: image }));
4327
4325
  }
4328
4326
 
4329
- const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, isImageOnRightSide = true, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden p-9 box-border relative min-h-[364px]', getTileRightPadding(className), className), ...rest, children: [jsxs("div", { className: style('flex flex-col', isImageOnRightSide ? '' : 'items-end'), children: [jsx(Headline, { className: style('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), renderAdditionalDescription(additionalDescription, image), renderButtonsSection(buttons, { className: 'mt-5 z-10 text-l' })] }), renderImage$1(image, isImageOnRightSide)] })));
4327
+ const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, directionRight = true, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between', getTileRightPadding(className), className), ...rest, children: [jsxs("div", { className: style('flex flex-col', directionRight ? '' : 'items-end'), children: [jsx(Headline, { className: style('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), renderAdditionalDescription(additionalDescription, image)] }), renderButtonsSection(buttons, {
4328
+ className: style('mt-5 text-l', directionRight ? '' : 'justify-end'),
4329
+ }), renderImage$1(image, directionRight)] })));
4330
4330
  function renderBenefits(benefits, image) {
4331
4331
  if (!benefits.length) {
4332
4332
  return null;
4333
4333
  }
4334
4334
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
4335
4335
  const benefitsWidth = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
4336
- return (jsx("div", { className: `z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline ${benefitsWidth}`, children: benefits.length ? benefits.map(renderBenefit) : null }));
4336
+ return (jsx("div", { className: style('z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline', benefitsWidth), children: benefits.length ? benefits.map(renderBenefit) : null }));
4337
4337
  }
4338
4338
 
4339
4339
  const PromoTile = JSX(({ className = '', title = 'Акции и спецпредложения', date, description, as, buttons = [], ...rest }) => (jsx(BlockWrapper, { className: style('p-9 box-border', className, getTileRightPadding(className), getTileMinHeight(className)), ...rest, children: jsx(BaseTile, { title: title ? (jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, headlineVersion: getTileHeadingType(className), align: "text-left", as: as || 'h2' })) : null, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) })));
@@ -4919,10 +4919,10 @@
4919
4919
  });
4920
4920
  const renderTag = (tag, key) => (jsx("span", { className: "text-m-light py-2 px-2.5 border-solid border rounded-md border-gray", children: tag }, String(key)));
4921
4921
 
4922
- const Tile = JSX(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, ...rest }) => (jsx(BlockWrapper, { className: `overflow-hidden p-9 pr-3 box-border ${getTileRightPadding(className)} ${getTileMinHeight(className)} ${className}`, ...rest, children: jsxs(BaseTile, { title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: renderButtonsSection(buttons, {
4923
- className: 'mt-8',
4924
- buttonClassName: 'min-w-[158px]',
4925
- }), image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })));
4922
+ const Tile = JSX(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, directionRight = true, ...rest }) => (jsxs(BlockWrapper, { className: style('flex grow justify-between items-stretch h-full p-9 pr-3 box-border', getTileRightPadding(className), getTileMinHeight(className), className), ...rest, children: [image?.src ? (jsx(ImgInner, { className: style('mt-auto ml-7', directionRight ? 'order-2' : ''), image: image })) : null, jsx(BaseTile, { title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: renderButtonsSection(buttons, {
4923
+ className: 'mt-8',
4924
+ buttonClassName: 'min-w-[158px]',
4925
+ }), children: jsxs("div", { children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })] })));
4926
4926
 
4927
4927
  const alignStyle = {
4928
4928
  stretch: 'items-stretch',
@@ -4934,7 +4934,7 @@
4934
4934
  const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
4935
4935
  return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, isTheme: isTheme, ...rest, children: renderChildren({
4936
4936
  ...rest,
4937
- renderProps: (block, options) => renderBlock(block, options, { className: innerPaddingStyle }),
4937
+ renderProps: (block, options) => renderBlock$1(block, options, { className: innerPaddingStyle }),
4938
4938
  }) }));
4939
4939
  });
4940
4940
  VerticalLayout.childrenTypes = [];
@@ -4947,6 +4947,15 @@
4947
4947
  return (jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [jsx(Headline, { title: title, headlineVersion: "M" }), url ? (jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: adjustHref(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: jsx("source", { src: adjustHref(router)(url) }) })) : null] }));
4948
4948
  });
4949
4949
 
4950
+ const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left p-9', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between", children: [title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null, renderIconBlock(icon)] }), jsxs("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
4951
+ ? renderButtonsSection([button], {
4952
+ className: 'mb-6',
4953
+ })
4954
+ : null] })] })));
4955
+ const renderIconBlock = (icon) => (jsxs("div", { className: "self-end", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null] }));
4956
+ const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-5 my-5", children: jsx(RichText, { __html: __html }) }));
4957
+ const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "flex flex-col first:pb-1", children: [jsx(Text, { size: "text-m-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
4958
+
4950
4959
  const Blocks = {
4951
4960
  ApplicationForm,
4952
4961
  BenefitsBlock,
@@ -5004,6 +5013,7 @@
5004
5013
  VerticalLayout,
5005
5014
  Video,
5006
5015
  ExchangeRateOffice,
5016
+ RepresentativeOfficeInfo,
5007
5017
  };
5008
5018
 
5009
5019
  const debounce = (fn, delay = 600) => {
@@ -5134,7 +5144,7 @@
5134
5144
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
5135
5145
  }
5136
5146
 
5137
- const packageVersion = "0.10.0";
5147
+ const packageVersion = "0.10.1";
5138
5148
 
5139
5149
  exports.Blocks = Blocks;
5140
5150
  exports.ContentPage = ContentPage;