@redneckz/wildless-cms-uni-blocks 0.5.15 → 0.6.16

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 (253) hide show
  1. package/bin/migration-scripts/0.5.14.js +27 -0
  2. package/bin/migration-scripts/0.6.16.js +90 -0
  3. package/bin/utils.js +2 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +57 -44
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/Blocks.d.ts +1 -0
  8. package/bundle/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  9. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  10. package/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -0
  11. package/bundle/components/Gallery/GalleryContent.d.ts +3 -1
  12. package/bundle/components/Headline/constants.d.ts +0 -2
  13. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  14. package/bundle/model/AlignText.d.ts +2 -0
  15. package/bundle/model/HeadlineType.d.ts +2 -2
  16. package/dist/components/Accordion/Accordion.js +2 -6
  17. package/dist/components/Accordion/Accordion.js.map +1 -1
  18. package/dist/components/Blocks.d.ts +1 -0
  19. package/dist/components/Blocks.js +2 -0
  20. package/dist/components/Blocks.js.map +1 -1
  21. package/dist/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  22. package/dist/components/ContactsBlock/ContactsBlock.js +19 -0
  23. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -0
  24. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  25. package/dist/components/ContactsBlock/ContactsBlockContent.js +2 -0
  26. package/dist/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  27. package/dist/components/ContentPage/renderContentPageHead.d.ts +3 -0
  28. package/dist/components/ContentPage/renderContentPageHead.js +30 -0
  29. package/dist/components/ContentPage/renderContentPageHead.js.map +1 -0
  30. package/dist/components/Gallery/Gallery.mobile.js +2 -1
  31. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  32. package/dist/components/Gallery/GalleryCardInner.js +6 -11
  33. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  34. package/dist/components/Gallery/GalleryContainer.js +2 -2
  35. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  36. package/dist/components/Gallery/GalleryContent.d.ts +3 -1
  37. package/dist/components/Gallery/GalleryInner.js +4 -3
  38. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  39. package/dist/components/Headline/Headline.js +2 -1
  40. package/dist/components/Headline/Headline.js.map +1 -1
  41. package/dist/components/Headline/Headline.mobile.js +2 -1
  42. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  43. package/dist/components/Headline/constants.d.ts +0 -2
  44. package/dist/components/Headline/constants.js +2 -6
  45. package/dist/components/Headline/constants.js.map +1 -1
  46. package/dist/components/MobileAppTile/MobileAppTile.js +5 -3
  47. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  48. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  49. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  50. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  51. package/dist/components/Tile/Tile.js +1 -1
  52. package/dist/components/Tile/Tile.js.map +1 -1
  53. package/dist/model/AlignText.d.ts +2 -0
  54. package/dist/model/AlignText.js +8 -0
  55. package/dist/model/AlignText.js.map +1 -0
  56. package/dist/model/HeadlineType.d.ts +2 -2
  57. package/dist/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  58. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  59. package/dist/ui-kit/List/ListItem.js +4 -4
  60. package/dist/ui-kit/List/ListItem.js.map +1 -1
  61. package/lib/common.css +1 -1
  62. package/lib/components/Accordion/Accordion.js +2 -6
  63. package/lib/components/Accordion/Accordion.js.map +1 -1
  64. package/lib/components/Blocks.d.ts +1 -0
  65. package/lib/components/Blocks.js +2 -0
  66. package/lib/components/Blocks.js.map +1 -1
  67. package/lib/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  68. package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +5 -0
  69. package/lib/components/ContactsBlock/ContactsBlock.js +17 -0
  70. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -0
  71. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  72. package/lib/components/ContactsBlock/ContactsBlockContent.js +2 -0
  73. package/lib/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  74. package/lib/components/ContentPage/renderContentPageHead.d.ts +3 -0
  75. package/lib/components/ContentPage/renderContentPageHead.js +27 -0
  76. package/lib/components/ContentPage/renderContentPageHead.js.map +1 -0
  77. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  78. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  79. package/lib/components/Gallery/GalleryCardInner.js +6 -11
  80. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  81. package/lib/components/Gallery/GalleryContainer.js +2 -2
  82. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  83. package/lib/components/Gallery/GalleryContent.d.ts +3 -1
  84. package/lib/components/Gallery/GalleryInner.js +4 -3
  85. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  86. package/lib/components/Headline/Headline.js +3 -2
  87. package/lib/components/Headline/Headline.js.map +1 -1
  88. package/lib/components/Headline/Headline.mobile.js +3 -2
  89. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  90. package/lib/components/Headline/constants.d.ts +0 -2
  91. package/lib/components/Headline/constants.js +1 -5
  92. package/lib/components/Headline/constants.js.map +1 -1
  93. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +2 -1
  94. package/lib/components/MobileAppTile/MobileAppTile.js +5 -3
  95. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  96. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  97. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  98. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  99. package/lib/components/Tile/Tile.js +1 -1
  100. package/lib/components/Tile/Tile.js.map +1 -1
  101. package/lib/model/AlignText.d.ts +2 -0
  102. package/lib/model/AlignText.js +6 -0
  103. package/lib/model/AlignText.js.map +1 -0
  104. package/lib/model/HeadlineType.d.ts +2 -2
  105. package/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  106. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  107. package/lib/ui-kit/List/ListItem.js +4 -4
  108. package/lib/ui-kit/List/ListItem.js.map +1 -1
  109. package/mobile/bundle/bundle.umd.js +10 -8
  110. package/mobile/bundle/bundle.umd.min.js +1 -1
  111. package/mobile/bundle/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  112. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  113. package/mobile/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -0
  114. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +3 -1
  115. package/mobile/bundle/components/Headline/constants.d.ts +0 -2
  116. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  117. package/mobile/bundle/model/AlignText.d.ts +2 -0
  118. package/mobile/bundle/model/HeadlineType.d.ts +2 -2
  119. package/mobile/dist/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  120. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +19 -0
  121. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -0
  122. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  123. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.js +2 -0
  124. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  125. package/mobile/dist/components/ContentPage/renderContentPageHead.d.ts +3 -0
  126. package/mobile/dist/components/ContentPage/renderContentPageHead.js +30 -0
  127. package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -0
  128. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  129. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  130. package/mobile/dist/components/Gallery/GalleryCardInner.js +6 -11
  131. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  132. package/mobile/dist/components/Gallery/GalleryContainer.js +2 -2
  133. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  134. package/mobile/dist/components/Gallery/GalleryContent.d.ts +3 -1
  135. package/mobile/dist/components/Gallery/GalleryInner.js +4 -3
  136. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  137. package/mobile/dist/components/Headline/Headline.js +2 -1
  138. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  139. package/mobile/dist/components/Headline/constants.d.ts +0 -2
  140. package/mobile/dist/components/Headline/constants.js +2 -6
  141. package/mobile/dist/components/Headline/constants.js.map +1 -1
  142. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  143. package/mobile/dist/components/Tile/Tile.js +1 -1
  144. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  145. package/mobile/dist/model/AlignText.d.ts +2 -0
  146. package/mobile/dist/model/AlignText.js +8 -0
  147. package/mobile/dist/model/AlignText.js.map +1 -0
  148. package/mobile/dist/model/HeadlineType.d.ts +2 -2
  149. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  150. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  151. package/mobile/dist/ui-kit/List/ListItem.js +4 -4
  152. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  153. package/mobile/lib/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  154. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +17 -0
  155. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -0
  156. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  157. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.js +2 -0
  158. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  159. package/mobile/lib/components/ContentPage/renderContentPageHead.d.ts +3 -0
  160. package/mobile/lib/components/ContentPage/renderContentPageHead.js +27 -0
  161. package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -0
  162. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  163. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  164. package/mobile/lib/components/Gallery/GalleryCardInner.js +6 -11
  165. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  166. package/mobile/lib/components/Gallery/GalleryContainer.js +2 -2
  167. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  168. package/mobile/lib/components/Gallery/GalleryContent.d.ts +3 -1
  169. package/mobile/lib/components/Gallery/GalleryInner.js +4 -3
  170. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  171. package/mobile/lib/components/Headline/Headline.js +3 -2
  172. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  173. package/mobile/lib/components/Headline/constants.d.ts +0 -2
  174. package/mobile/lib/components/Headline/constants.js +1 -5
  175. package/mobile/lib/components/Headline/constants.js.map +1 -1
  176. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  177. package/mobile/lib/components/Tile/Tile.js +1 -1
  178. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  179. package/mobile/lib/model/AlignText.d.ts +2 -0
  180. package/mobile/lib/model/AlignText.js +6 -0
  181. package/mobile/lib/model/AlignText.js.map +1 -0
  182. package/mobile/lib/model/HeadlineType.d.ts +2 -2
  183. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  184. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  185. package/mobile/lib/ui-kit/List/ListItem.js +4 -4
  186. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  187. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +51 -0
  188. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +70 -0
  189. package/mobile/src/components/ContactsBlock/ContactsBlock.ui.json +8 -0
  190. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +39 -0
  191. package/mobile/src/components/ContentPage/renderContentPageHead.tsx +38 -0
  192. package/mobile/src/components/Gallery/Gallery.example.json +2 -2
  193. package/mobile/src/components/Gallery/Gallery.tsx +9 -5
  194. package/mobile/src/components/Gallery/Gallery.ui.json +11 -1
  195. package/mobile/src/components/Gallery/GalleryCardInner.tsx +17 -26
  196. package/mobile/src/components/Gallery/GalleryContainer.tsx +1 -2
  197. package/mobile/src/components/Gallery/GalleryContent.ts +3 -1
  198. package/mobile/src/components/Gallery/GalleryInner.tsx +11 -4
  199. package/mobile/src/components/Headline/Headline.tsx +4 -3
  200. package/mobile/src/components/Headline/constants.ts +1 -7
  201. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +6 -0
  202. package/mobile/src/components/Tile/Tile.tsx +1 -1
  203. package/mobile/src/model/AlignText.ts +7 -0
  204. package/mobile/src/model/HeadlineType.ts +2 -2
  205. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +32 -23
  206. package/mobile/src/ui-kit/List/ListItem.tsx +10 -7
  207. package/package.json +1 -1
  208. package/src/components/Accordion/Accordion.tsx +2 -8
  209. package/src/components/Blocks.ts +2 -0
  210. package/src/components/ContactsBlock/ContactsBlock.example.json +51 -0
  211. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +57 -0
  212. package/src/components/ContactsBlock/ContactsBlock.tsx +70 -0
  213. package/src/components/ContactsBlock/ContactsBlock.ui.json +8 -0
  214. package/src/components/ContactsBlock/ContactsBlockContent.ts +39 -0
  215. package/src/components/ContentPage/renderContentPageHead.tsx +38 -0
  216. package/src/components/Gallery/Gallery.example.json +2 -2
  217. package/src/components/Gallery/Gallery.fixture.mobile.tsx +3 -3
  218. package/src/components/Gallery/Gallery.fixture.tsx +20 -24
  219. package/src/components/Gallery/Gallery.mobile.tsx +9 -5
  220. package/src/components/Gallery/Gallery.ui.json +11 -1
  221. package/src/components/Gallery/GalleryCardInner.tsx +17 -26
  222. package/src/components/Gallery/GalleryContainer.tsx +1 -2
  223. package/src/components/Gallery/GalleryContent.ts +3 -1
  224. package/src/components/Gallery/GalleryInner.tsx +11 -4
  225. package/src/components/Headline/Headline.mobile.tsx +4 -3
  226. package/src/components/Headline/Headline.tsx +4 -3
  227. package/src/components/Headline/constants.ts +1 -7
  228. package/src/components/MiniGallery/MiniGallery.fixture.tsx +72 -44
  229. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -0
  230. package/src/components/MobileAppTile/MobileAppTile.tsx +8 -1
  231. package/src/components/MobileAppTile/MobileAppTileContent.ts +6 -0
  232. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  233. package/src/components/Tile/Tile.tsx +1 -1
  234. package/src/model/AlignText.ts +7 -0
  235. package/src/model/HeadlineType.ts +2 -2
  236. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +32 -23
  237. package/src/ui-kit/List/ListItem.tsx +10 -7
  238. package/bundle/components/ContentPage/ContentPageHead.d.ts +0 -7
  239. package/dist/components/ContentPage/ContentPageHead.d.ts +0 -7
  240. package/dist/components/ContentPage/ContentPageHead.js +0 -20
  241. package/dist/components/ContentPage/ContentPageHead.js.map +0 -1
  242. package/lib/components/ContentPage/ContentPageHead.d.ts +0 -7
  243. package/lib/components/ContentPage/ContentPageHead.js +0 -18
  244. package/lib/components/ContentPage/ContentPageHead.js.map +0 -1
  245. package/mobile/bundle/components/ContentPage/ContentPageHead.d.ts +0 -7
  246. package/mobile/dist/components/ContentPage/ContentPageHead.d.ts +0 -7
  247. package/mobile/dist/components/ContentPage/ContentPageHead.js +0 -20
  248. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +0 -1
  249. package/mobile/lib/components/ContentPage/ContentPageHead.d.ts +0 -7
  250. package/mobile/lib/components/ContentPage/ContentPageHead.js +0 -18
  251. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +0 -1
  252. package/mobile/src/components/ContentPage/ContentPageHead.tsx +0 -43
  253. package/src/components/ContentPage/ContentPageHead.tsx +0 -43
@@ -228,6 +228,12 @@
228
228
  return JSXTmpl;
229
229
  };
230
230
 
231
+ const AlignText = {
232
+ left: 'text-left',
233
+ center: 'text-center',
234
+ right: 'text-right',
235
+ };
236
+
231
237
  class EventBus {
232
238
  static inst = new EventBus();
233
239
  subscribers = {};
@@ -350,12 +356,7 @@
350
356
 
351
357
  const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
352
358
 
353
- const ALIGN_TITLE$1 = {
354
- left: 'text-left',
355
- center: 'text-center',
356
- right: 'text-right',
357
- };
358
- const Accordion = JSX(({ className = '', context, title, accordionAlignTitle = 'center', description, children, ...rest }) => (jsxs(BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${ALIGN_TITLE$1[accordionAlignTitle]}`, title: title })) : null, description ? jsx("div", { className: "mb-2.5 text-l", children: description }) : null, jsx(AccordionItemsList, { children: children })] })));
359
+ const Accordion = JSX(({ className = '', context, title, accordionAlignTitle = 'center', description, children, ...rest }) => (jsxs(BlockWrapper, { context: context, className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${AlignText[accordionAlignTitle]}`, title: title })) : null, description ? jsx("div", { className: "mb-2.5 text-l", children: description }) : null, jsx(AccordionItemsList, { children: children })] })));
359
360
  Accordion.childrenTypes = ['AccordionItem'];
360
361
 
361
362
  const Foldable = JSX(({ isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
@@ -484,9 +485,9 @@
484
485
  };
485
486
  const renderStep = (benefitsBlockVersion) => (benefit, i) => {
486
487
  const description = (benefit?.description || undefined);
487
- return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${benefitsIconStyleMap[benefitsBlockVersion]}`, image: setIconVersion(benefit.icon, benefitsBlockVersion), asSVG: true })) : null, benefit?.icon?.src ? jsx(ImgInner, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5", children: [benefit?.label ? (jsx("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[benefitsBlockVersion]}`, children: benefit.label })) : null, renderDescription$2(description, benefitsBlockVersion)] })] }, String(i)));
488
+ return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${benefitsIconStyleMap[benefitsBlockVersion]}`, image: setIconVersion(benefit.icon, benefitsBlockVersion), asSVG: true })) : null, benefit?.icon?.src ? jsx(ImgInner, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5", children: [benefit?.label ? (jsx("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[benefitsBlockVersion]}`, children: benefit.label })) : null, renderDescription$3(description, benefitsBlockVersion)] })] }, String(i)));
488
489
  };
489
- const renderDescription$2 = (description, benefitsBlockVersion) => {
490
+ const renderDescription$3 = (description, benefitsBlockVersion) => {
490
491
  const benefitType = description ? description?.benefitType : null;
491
492
  if (!benefitType) {
492
493
  return null;
@@ -650,11 +651,6 @@
650
651
  return jsx("div", { className: `${className}`, children: description });
651
652
  });
652
653
 
653
- const ALIGN_TEXT = {
654
- left: 'text-left',
655
- center: 'text-center',
656
- right: 'text-right',
657
- };
658
654
  const HEADLINE_BLOCK_STYLE_MAPS = {
659
655
  transparent: {
660
656
  background: 'bg-transparent',
@@ -705,6 +701,7 @@
705
701
  },
706
702
  };
707
703
  const HEADLINE_SMALL_VERSION = {
704
+ H6: 'text-h6',
708
705
  XL_L: 'text-xl-light',
709
706
  XL_R: 'text-xl',
710
707
  L_L: 'text-l-light',
@@ -717,7 +714,7 @@
717
714
  const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'center', className = '', title, description, headlineVersion = 'XL', as, ...rest }) => {
718
715
  const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
719
716
  const SIZE_MAPS = HEADLINE_VERSION[headlineVersion];
720
- return (jsxs(BlockWrapper, { className: `font-sans flex flex-col p-[50px] ${SIZE_MAPS.gap} ${STYLE_MAPS.background} ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: SIZE_MAPS?.headingType, as: as || SIZE_MAPS?.as, className: `whitespace-pre-wrap ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (jsx(Description, { className: `${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, description: description })) : null] }));
717
+ return (jsxs(BlockWrapper, { className: `font-sans flex flex-col p-[50px] ${SIZE_MAPS.gap} ${STYLE_MAPS.background} ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: SIZE_MAPS?.headingType, as: as || SIZE_MAPS?.as, className: `whitespace-pre-wrap ${STYLE_MAPS.text} ${AlignText[align]}`, title: title })) : null, description ? (jsx(Description, { className: `${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${AlignText[align]}`, description: description })) : null] }));
721
718
  });
722
719
 
723
720
  const Bonus = JSX((props) => {
@@ -1366,6 +1363,17 @@
1366
1363
  return (jsx("div", { className: "pr-[50px]", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans text-xs-light font-medium py-3", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
1367
1364
  };
1368
1365
 
1366
+ const contactsBlockStyleMap = {
1367
+ primary: 'bg-white',
1368
+ secondary: 'bg-primary-main text-white',
1369
+ };
1370
+ const ContactsBlock = JSX(({ className = '', contacts, context, info, contactsBlockVersion = 'secondary', ...rest }) => {
1371
+ return (jsxs(BlockWrapper, { context: context, className: `${contactsBlockStyleMap[contactsBlockVersion]} flex p-12 ${className}`, ...rest, children: [info ? renderInfo(info) : null, contacts ? renderContacts(contacts) : null] }));
1372
+ });
1373
+ const renderInfo = (info) => (jsx("div", { className: "flex grow basis-0 pr-11", children: info.map(({ title, description, button }, index) => (jsxs("div", { className: "grow basis-0 pr-11 last:pr-0", children: [jsx(Heading, { as: "h5", headingType: "h5", title: title, className: "pb-2.5" }), jsx(Description, { className: "text-l-light pb-6", description: description }), button ? jsx(Button, { ...button }) : null] }, String(index)))) }));
1374
+ const renderContacts = (contacts) => (jsx("div", { className: "flex grow basis-0", children: contacts.map((contactsColumn, index) => renderContactsColumn({ contactsColumn, index })) }));
1375
+ const renderContactsColumn = ({ contactsColumn, index }) => contactsColumn ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11", children: contactsColumn.map(({ title, description, additionalDescription }, key) => (jsxs("div", { className: "pr-11 last:pr-0 last:mt-5", children: [jsx(Heading, { as: "h5", headingType: "h5", title: title }), jsx(Description, { className: "text-l-light mt-2.5", description: description }), additionalDescription ? (jsx(Description, { className: "text-m-light mt-1.5 opacity-80", description: additionalDescription })) : null] }, String(key)))) }, String(index))) : null;
1376
+
1369
1377
  const renderErrorContent = (error) => {
1370
1378
  if (error?.errorContentType === 'Image' && error?.image) {
1371
1379
  return jsx(ImgInner, { image: error.image });
@@ -1810,12 +1818,12 @@
1810
1818
  gray: 'bg-secondary-text',
1811
1819
  };
1812
1820
  const DOT_SIZE_MAP = {
1813
- L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3',
1814
- M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3',
1815
- S: 'w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5',
1821
+ L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4',
1822
+ M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3',
1823
+ S: 'w-1 h-1 min-w-1 min-h-1 mr-2',
1816
1824
  };
1817
1825
  const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary', size = 'M' }) => {
1818
- return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { className: `rounded-full inline-block ${LIST_DOT_STYLE_MAP[version]} ${DOT_SIZE_MAP[size]}` })) : null, jsx("span", { children: children })] }));
1826
+ return (jsxs("div", { className: `font-sans flex items-baseline ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { children: jsx("div", { className: `rounded-full align-middle inline-block ${LIST_DOT_STYLE_MAP[version]} ${DOT_SIZE_MAP[size]}` }) })) : null, jsx("span", { children: children })] }));
1819
1827
  });
1820
1828
 
1821
1829
  const TEXT_STYLE_MAP = {
@@ -1841,30 +1849,24 @@
1841
1849
  return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${TEXT_SIZE_MAP[listItemSize]} ${className} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: `${itemClassName} mb-1.5`, isDotted: isDotted, version: version, size: listItemSize, children: item }, String(i)))) }));
1842
1850
  });
1843
1851
 
1844
- const ALIGN_TITLE = {
1845
- left: 'text-left',
1846
- center: 'text-center',
1847
- right: 'text-right',
1848
- };
1849
- const GalleryCardInner = JSX(({ title, headlineSmallVersion = 'XL_L', description, additionalDescription, image, items, button, version, isDotted = true, align = 'center', }) => {
1850
- return (jsxs("div", { className: `h-full flex flex-col justify-between ${ALIGN_TITLE[align]}`, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$1(image), renderCardTitle(headlineSmallVersion, title), renderDescription$1(description, title), renderAdditionalDescription$1(additionalDescription), items?.length ? renderItems$1(items, isDotted, version) : null] }), button ? renderButton(button) : null] }));
1852
+ const GalleryCardInner = JSX(({ title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items, button, version, isDotted = true, align = 'center', }) => {
1853
+ return (jsxs("div", { className: `h-full flex flex-col justify-between ${AlignText[align]}`, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$1(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$2(description, title), items?.length ? renderItems$1(items, isDotted, version) : null, renderAdditionalDescription$1(additionalDescription)] }), button?.text ? jsx(Button, { className: "mt-6", ...button }) : null] }));
1851
1854
  });
1852
- const renderImage$1 = (image) => image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(ImgInner, { className: "mb-6", image: image }) })) : null;
1855
+ const renderImage$1 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
1853
1856
  const renderCardTitle = (headlineSmallVersion, title) => title ? jsx("div", { className: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
1854
- const renderDescription$1 = (description, title) => description ? jsx("div", { className: `text-base ${title ? 'mt-2' : ''}`, children: description }) : null;
1857
+ const renderDescription$2 = (description, title) => description ? jsx("div", { className: `text-l ${title ? 'mt-2' : ''}`, children: description }) : null;
1855
1858
  const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "text-m-light text-secondary-text mt-auto", children: additionalDescription })) : null;
1856
- const renderButton = (button) => (jsx(Button, { className: "mt-6 w-full", ...button }));
1857
- const renderItems$1 = (items, isDotted, version = 'primary') => (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 text-left first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
1859
+ const renderItems$1 = (items, isDotted, version = 'primary') => (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
1858
1860
 
1859
- const GalleryContainer = JSX(({ context, title, headlineVersion = 'L', description, cards = [], version = 'normal', activeCardIndex, }) => {
1860
- return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: headlineVersion, align: "center" }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
1861
+ const GalleryContainer = JSX(({ context, title, headlineVersion = 'M', description, cards = [], version = 'normal', activeCardIndex, }) => {
1862
+ return (jsxs("div", { children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: headlineVersion, align: "center" }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
1861
1863
  });
1862
1864
  function renderCard({ card, version }, i) {
1863
1865
  return (jsx("section", { className: `box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between
1864
1866
  items-stretch ${cardStyleMap[version]} ${VersionStyleMap[card.version ?? 'primary']} w-full col-span-4`, role: "listitem", children: jsx(GalleryCardInner, { ...card }) }, String(i)));
1865
1867
  }
1866
1868
 
1867
- const GalleryInner = JSX(({ context, cards = [], className = '', version = 'normal', ...rest }) => {
1869
+ const GalleryInner = JSX(({ context, cards = [], className = '', version = 'normal', button, ...rest }) => {
1868
1870
  const [activeCardIndex, setActiveCardIndex] = useState(0);
1869
1871
  const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
1870
1872
  const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
@@ -1872,12 +1874,12 @@
1872
1874
  const showNextButton = isGalleryScrollAvailable &&
1873
1875
  cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
1874
1876
  const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
1875
- return (jsxs(BlockWrapper, { context: context, className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`, ...rest, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), renderArrows({
1877
+ return (jsxs(BlockWrapper, { context: context, className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${className}`, ...rest, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), renderArrows({
1876
1878
  handler: [handlePrevClick, handleNextClick],
1877
1879
  isShown: [showPrevButton, showNextButton],
1878
1880
  btnClass: ['left-8', 'right-8'],
1879
1881
  className: 'top-1/2',
1880
- }), jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" })] }));
1882
+ }), isGalleryScrollAvailable ? (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" })] })) : null, button ? jsx(Button, { className: "mt-8 mx-auto", ...button }) : null] }));
1881
1883
  });
1882
1884
 
1883
1885
  const Gallery = JSX((props) => jsx(GalleryInner, { ...props, version: "normal" }));
@@ -2225,19 +2227,20 @@
2225
2227
  }
2226
2228
  }
2227
2229
 
2228
- const MobileAppTile = JSX(({ className = '', context, title = 'Мобильное приложение', qr, buttons, version = 'primary', items, image, headingType = 'h4', ...rest }) => {
2230
+ const MobileAppTile = JSX(({ className = '', context, title = 'Мобильное приложение', qr, buttons, version = 'primary', items, image, headingType = 'h4', alignTitle = 'left', description, ...rest }) => {
2229
2231
  const textColorClass = version === 'primary' ? 'text-primary-text' : '';
2230
2232
  const containerStyle = version === 'secondary' ? 'p-3.5 min-w-[120px]' : 'min-w-[92px]';
2231
2233
  const buttonsWithClass = buttons?.map((_) => ({ ..._, className: 'min-w-[168px]' }));
2232
2234
  return (jsxs(BlockWrapper, { context: context, className: `flex justify-between font-sans p-9 box-border relative min-h-[320px]
2233
2235
  ${getTileMinHeight(className)}
2234
2236
  ${VersionStyleMap[version]}
2235
- ${className}`, ...rest, children: [jsx(BaseTile, { context: context, className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
2236
- ${textColorClass}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr, alt: "QR-\u043A\u043E\u0434" }) })) : null, renderList$1(version, items)] }) }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
2237
+ ${className}`, ...rest, children: [jsxs(BaseTile, { context: context, className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
2238
+ ${textColorClass} ${AlignText[alignTitle]}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr, alt: "QR-\u043A\u043E\u0434" }) })) : null, renderList$1(version, items)] })] }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
2237
2239
  });
2238
2240
  const renderList$1 = (version, items) => {
2239
2241
  return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0", version: version })) : (jsx("span", { className: "text-m-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
2240
2242
  };
2243
+ const renderDescription$1 = (description) => description ? jsx("p", { className: "text-xl-light mb-5", children: description }) : null;
2241
2244
 
2242
2245
  const OFFICE_MAP_URL = '/api/v1/branches';
2243
2246
  // TODO: regionCode - внутренний идентификатор банка. Не соответствует государственной нумерации регионов РФ
@@ -2495,10 +2498,19 @@
2495
2498
  return content || defaultContent;
2496
2499
  }
2497
2500
 
2498
- const DefaultFoldButton = JSX(({ className, label, icon, dataTheme = '', onClick }) => (jsxs("button", { className: `border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer ${className || ''}`, "data-theme": dataTheme, onClick: onClick, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(ImgInner, { image: {
2499
- icon,
2500
- iconVersion: 'white',
2501
- }, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] })));
2501
+ const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', onClick }) => {
2502
+ const STATE_STYLE = 'hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none';
2503
+ const DIMENSIONS_STYLE = 'flex justify-center w-full px-0 py-5 mb-[1px]';
2504
+ return (jsxs("button", { className: [
2505
+ 'border border-transparent bg-primary-main font-sans text-white cursor-pointer',
2506
+ STATE_STYLE,
2507
+ DIMENSIONS_STYLE,
2508
+ className,
2509
+ ].join(' '), "data-theme": dataTheme, onClick: onClick, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(ImgInner, { image: {
2510
+ icon,
2511
+ iconVersion: 'white',
2512
+ }, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
2513
+ });
2502
2514
  const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
2503
2515
  const labels = ['Развернуть', 'Скрыть'];
2504
2516
  const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
@@ -2982,7 +2994,7 @@
2982
2994
  version,
2983
2995
  router,
2984
2996
  handlerDecorator,
2985
- })) })] })) : null, button?.text ? (jsx(Button, { className: "mt-8 w-full max-w-[240px]", version: "primary", ...useLink({ router, handlerDecorator }, button) })) : null] }));
2997
+ })) })] })) : null, button?.text ? (jsx(Button, { className: "mt-8 min-w-[240px]", version: "primary", ...useLink({ router, handlerDecorator }, button) })) : null] }));
2986
2998
  });
2987
2999
  const renderStepIcon = (styleMap) => ({ icon }, i) => {
2988
3000
  return (jsx("div", { className: "flex flex-col items-center text-center", children: jsx("div", { className: `h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center
@@ -3273,7 +3285,7 @@
3273
3285
  const Tile = JSX((props) => {
3274
3286
  const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, listItemSize = 'M', className = '', version = 'primary', ...rest } = props;
3275
3287
  const headingClassName = version === 'primary' ? 'text-primary-text' : '';
3276
- return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-8 gap-3" })) : null, image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (jsx(Description, { className: "max-w-[600px] text-xl-light mt-2.5", description: description })) : null, children, renderList({ version, isDotted, listItemSize }, items)] }) }));
3288
+ return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'min-w-[158px]' })), className: "flex mt-8 gap-3" })) : null, image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (jsx(Description, { className: "max-w-[600px] text-xl-light mt-2.5", description: description })) : null, children, renderList({ version, isDotted, listItemSize }, items)] }) }));
3277
3289
  });
3278
3290
  function renderList({ version, isDotted, listItemSize }, items) {
3279
3291
  return items?.length ? (jsx(List, { items: items, isDotted: isDotted, className: "mt-2.5", listItemSize: listItemSize, itemClassName: "mb-1.5", version: version })) : null;
@@ -3288,6 +3300,7 @@
3288
3300
  ComparisonTable,
3289
3301
  Calculator,
3290
3302
  Catalog,
3303
+ ContactsBlock,
3291
3304
  ExchangeRateTile,
3292
3305
  Footer,
3293
3306
  Gallery,
@@ -3412,7 +3425,7 @@
3412
3425
  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", context: context }, "LikeControl") }));
3413
3426
  }
3414
3427
 
3415
- const packageVersion = "0.5.15";
3428
+ const packageVersion = "0.6.16";
3416
3429
 
3417
3430
  exports.Blocks = Blocks;
3418
3431
  exports.ContentPage = ContentPage;