@redneckz/wildless-cms-uni-blocks 0.3.12 → 0.3.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 (601) hide show
  1. package/README.md +13 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +208 -153
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
  6. package/dist/components/Accordion/AccordionBlocks.js +2 -0
  7. package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  8. package/dist/components/Accordion/AccordionContent.d.ts +13 -2
  9. package/dist/components/Accordion/AccordionItem.js +2 -2
  10. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  11. package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
  12. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  13. package/dist/components/Accordion/AccordionItemInner.js +5 -4
  14. package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  15. package/dist/components/Accordion/AccordionItemInner.mobile.js +1 -1
  16. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  17. package/dist/components/Blocks.mobile.d.ts +3 -1
  18. package/dist/components/Blocks.mobile.js +6 -2
  19. package/dist/components/Blocks.mobile.js.map +1 -1
  20. package/dist/components/ComparisonTable/ComparisonTable.js +7 -25
  21. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  22. package/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  23. package/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
  24. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  25. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  26. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
  27. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  28. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  29. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  30. package/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
  31. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  32. package/dist/components/ComparisonTable/TableColumn.js +2 -2
  33. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  34. package/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  35. package/dist/components/CreditCalculator/CreditCalculator.js +8 -47
  36. package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  37. package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  38. package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  39. package/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
  40. package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  41. package/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
  42. package/dist/components/CreditCalculator/defaultTabs.js +23 -0
  43. package/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
  44. package/dist/components/Footer/Footer.mobile.js +5 -6
  45. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  46. package/dist/components/Footer/FooterContent.d.ts +1 -1
  47. package/dist/components/Gallery/Gallery.mobile.js +6 -6
  48. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  49. package/dist/components/Gallery/GalleryContent.d.ts +6 -0
  50. package/dist/components/Gallery/GalleryInner.js +1 -1
  51. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  52. package/dist/components/Header/Header.mobile.js +3 -2
  53. package/dist/components/Header/Header.mobile.js.map +1 -1
  54. package/dist/components/Header/HeaderBurger.d.ts +2 -2
  55. package/dist/components/Header/HeaderBurger.js +1 -1
  56. package/dist/components/Header/HeaderBurger.js.map +1 -1
  57. package/dist/components/Header/HeaderContent.d.ts +10 -4
  58. package/dist/components/Header/HeaderTop.js +1 -1
  59. package/dist/components/Header/HeaderTop.js.map +1 -1
  60. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  61. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  62. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  63. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  64. package/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
  65. package/dist/components/TariffsTable/TableTileHeader.js +10 -0
  66. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
  67. package/dist/components/TariffsTable/TariffsTable.js +14 -11
  68. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  69. package/dist/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
  70. package/dist/components/TariffsTable/TariffsTable.mobile.js +21 -0
  71. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
  72. package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  73. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  74. package/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  75. package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  76. package/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
  77. package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  78. package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  79. package/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
  80. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  81. package/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  82. package/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
  83. package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  84. package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
  85. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  86. package/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
  87. package/dist/hooks/useTableArrowScrollControl.js +12 -0
  88. package/dist/hooks/useTableArrowScrollControl.js.map +1 -0
  89. package/dist/model/ListOrientation.d.ts +8 -0
  90. package/dist/model/ListOrientation.js +2 -0
  91. package/dist/model/ListOrientation.js.map +1 -0
  92. package/dist/model/SitemapProps.d.ts +11 -0
  93. package/dist/services/sitemap/SitemapProps.d.ts +12 -1
  94. package/dist/ui-kit/Button/Button.d.ts +1 -0
  95. package/dist/ui-kit/Button/Button.js +7 -22
  96. package/dist/ui-kit/Button/Button.js.map +1 -1
  97. package/dist/ui-kit/Button/ButtonInner.js +16 -10
  98. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  99. package/dist/ui-kit/Img/Img.d.ts +2 -1
  100. package/dist/ui-kit/Img/Img.js +2 -2
  101. package/dist/ui-kit/Img/Img.js.map +1 -1
  102. package/dist/ui-kit/Img/Img.mobile.d.ts +6 -2
  103. package/dist/ui-kit/Img/Img.mobile.js +10 -5
  104. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  105. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
  106. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  107. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  108. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  109. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  110. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
  111. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  112. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  113. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  114. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  115. package/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
  116. package/dist/ui-kit/Tabs/Tabs.js +16 -0
  117. package/dist/ui-kit/Tabs/Tabs.js.map +1 -0
  118. package/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
  119. package/dist/ui-kit/Tabs/TabsProps.js +2 -0
  120. package/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
  121. package/lib/common.css +1 -1
  122. package/lib/components/Accordion/Accordion.fixture.d.ts +4 -1
  123. package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -1
  124. package/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  125. package/lib/components/Accordion/AccordionBlocks.js +2 -0
  126. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  127. package/lib/components/Accordion/AccordionContent.d.ts +13 -2
  128. package/lib/components/Accordion/AccordionItem.js +2 -2
  129. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  130. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  131. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  132. package/lib/components/Accordion/AccordionItemInner.js +5 -4
  133. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  134. package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -1
  135. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  136. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +3 -1
  137. package/lib/components/Blocks.mobile.d.ts +3 -1
  138. package/lib/components/Blocks.mobile.js +6 -2
  139. package/lib/components/Blocks.mobile.js.map +1 -1
  140. package/lib/components/ComparisonTable/ComparisonTable.js +8 -26
  141. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  142. package/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  143. package/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
  144. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  145. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  146. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
  147. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  148. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  149. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  150. package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
  151. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  152. package/lib/components/ComparisonTable/TableColumn.js +2 -2
  153. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  154. package/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  155. package/lib/components/CreditCalculator/CreditCalculator.fixture.d.ts +3 -1
  156. package/lib/components/CreditCalculator/CreditCalculator.js +8 -47
  157. package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  158. package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  159. package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  160. package/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
  161. package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  162. package/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
  163. package/lib/components/CreditCalculator/defaultTabs.js +21 -0
  164. package/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
  165. package/lib/components/Footer/Footer.fixture.d.ts +3 -1
  166. package/lib/components/Footer/Footer.fixture.mobile.d.ts +3 -1
  167. package/lib/components/Footer/Footer.mobile.js +5 -6
  168. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  169. package/lib/components/Footer/FooterContent.d.ts +1 -1
  170. package/lib/components/Gallery/Gallery.mobile.js +6 -6
  171. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  172. package/lib/components/Gallery/GalleryContent.d.ts +6 -0
  173. package/lib/components/Gallery/GalleryInner.js +1 -1
  174. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  175. package/lib/components/Header/Header.mobile.js +3 -2
  176. package/lib/components/Header/Header.mobile.js.map +1 -1
  177. package/lib/components/Header/HeaderBurger.d.ts +2 -2
  178. package/lib/components/Header/HeaderBurger.js +1 -1
  179. package/lib/components/Header/HeaderBurger.js.map +1 -1
  180. package/lib/components/Header/HeaderContent.d.ts +10 -4
  181. package/lib/components/Header/HeaderTop.js +1 -1
  182. package/lib/components/Header/HeaderTop.js.map +1 -1
  183. package/lib/components/LikeControl/LikeControl.fixture.d.ts +3 -1
  184. package/lib/components/LinkList/LinkList.fixture.d.ts +3 -1
  185. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +3 -1
  186. package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +3 -1
  187. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  188. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  189. package/lib/components/Navigation/Navigation.fixture.d.ts +3 -1
  190. package/lib/components/Placeholder/Placeholder.fixture.d.ts +3 -1
  191. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +3 -0
  192. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  193. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +3 -1
  194. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  195. package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -1
  196. package/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
  197. package/lib/components/TariffsTable/TableTileHeader.js +8 -0
  198. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
  199. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +5 -0
  200. package/lib/components/TariffsTable/TariffsTable.js +14 -11
  201. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  202. package/lib/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
  203. package/lib/components/TariffsTable/TariffsTable.mobile.js +19 -0
  204. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
  205. package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  206. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  207. package/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  208. package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  209. package/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
  210. package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  211. package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  212. package/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
  213. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  214. package/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  215. package/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
  216. package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  217. package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
  218. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
  219. package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
  220. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  221. package/lib/components/Tile/Tile.fixture.d.ts +1 -0
  222. package/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
  223. package/lib/hooks/useTableArrowScrollControl.js +9 -0
  224. package/lib/hooks/useTableArrowScrollControl.js.map +1 -0
  225. package/lib/model/ListOrientation.d.ts +8 -0
  226. package/lib/model/ListOrientation.js +2 -0
  227. package/lib/model/ListOrientation.js.map +1 -0
  228. package/lib/model/SitemapProps.d.ts +11 -0
  229. package/lib/services/sitemap/SitemapProps.d.ts +12 -1
  230. package/lib/ui-kit/Button/Button.d.ts +1 -0
  231. package/lib/ui-kit/Button/Button.js +6 -21
  232. package/lib/ui-kit/Button/Button.js.map +1 -1
  233. package/lib/ui-kit/Button/ButtonInner.js +16 -10
  234. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  235. package/lib/ui-kit/Img/Img.d.ts +2 -1
  236. package/lib/ui-kit/Img/Img.js +2 -2
  237. package/lib/ui-kit/Img/Img.js.map +1 -1
  238. package/lib/ui-kit/Img/Img.mobile.d.ts +6 -2
  239. package/lib/ui-kit/Img/Img.mobile.js +10 -5
  240. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  241. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
  242. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  243. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  244. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  245. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  246. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
  247. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  248. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  249. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  250. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  251. package/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
  252. package/lib/ui-kit/Tabs/Tabs.js +14 -0
  253. package/lib/ui-kit/Tabs/Tabs.js.map +1 -0
  254. package/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
  255. package/lib/ui-kit/Tabs/TabsProps.js +2 -0
  256. package/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
  257. package/mobile/bundle/bundle.umd.js +253 -139
  258. package/mobile/bundle/bundle.umd.min.js +1 -1
  259. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
  260. package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
  261. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  262. package/mobile/dist/components/Accordion/AccordionContent.d.ts +13 -2
  263. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  264. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  265. package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -1
  266. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  267. package/mobile/dist/components/Blocks.d.ts +3 -1
  268. package/mobile/dist/components/Blocks.js +6 -2
  269. package/mobile/dist/components/Blocks.js.map +1 -1
  270. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  271. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
  272. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  273. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  274. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
  275. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  276. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  277. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  278. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
  279. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  280. package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -2
  281. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  282. package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  283. package/mobile/dist/components/CreditCalculator/CreditCalculator.js +8 -47
  284. package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  285. package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  286. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  287. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
  288. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  289. package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
  290. package/mobile/dist/components/CreditCalculator/defaultTabs.js +23 -0
  291. package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
  292. package/mobile/dist/components/Footer/Footer.js +5 -6
  293. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  294. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
  295. package/mobile/dist/components/Gallery/Gallery.js +6 -6
  296. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  297. package/mobile/dist/components/Gallery/GalleryContent.d.ts +6 -0
  298. package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
  299. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  300. package/mobile/dist/components/Header/Header.js +3 -2
  301. package/mobile/dist/components/Header/Header.js.map +1 -1
  302. package/mobile/dist/components/Header/HeaderBurger.d.ts +2 -2
  303. package/mobile/dist/components/Header/HeaderBurger.js +1 -1
  304. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  305. package/mobile/dist/components/Header/HeaderContent.d.ts +10 -4
  306. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  307. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  308. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  309. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  310. package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
  311. package/mobile/dist/components/TariffsTable/TableTileHeader.js +10 -0
  312. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
  313. package/mobile/dist/components/TariffsTable/TariffsTable.js +14 -18
  314. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  315. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  316. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  317. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  318. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  319. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
  320. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  321. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  322. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
  323. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  324. package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  325. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
  326. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  327. package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
  328. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  329. package/mobile/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
  330. package/mobile/dist/hooks/useTableArrowScrollControl.js +12 -0
  331. package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -0
  332. package/mobile/dist/model/ListOrientation.d.ts +8 -0
  333. package/mobile/dist/model/ListOrientation.js +2 -0
  334. package/mobile/dist/model/ListOrientation.js.map +1 -0
  335. package/mobile/dist/model/SitemapProps.d.ts +11 -0
  336. package/mobile/dist/services/sitemap/SitemapProps.d.ts +12 -1
  337. package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -10
  338. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  339. package/mobile/dist/ui-kit/Img/Img.d.ts +6 -2
  340. package/mobile/dist/ui-kit/Img/Img.js +10 -5
  341. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  342. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
  343. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  344. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  345. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  346. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  347. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
  348. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  349. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  350. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  351. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  352. package/mobile/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
  353. package/mobile/dist/ui-kit/Tabs/Tabs.js +16 -0
  354. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -0
  355. package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
  356. package/mobile/dist/ui-kit/Tabs/TabsProps.js +2 -0
  357. package/mobile/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
  358. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  359. package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
  360. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  361. package/mobile/lib/components/Accordion/AccordionContent.d.ts +13 -2
  362. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  363. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  364. package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -1
  365. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  366. package/mobile/lib/components/Blocks.d.ts +3 -1
  367. package/mobile/lib/components/Blocks.js +6 -2
  368. package/mobile/lib/components/Blocks.js.map +1 -1
  369. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  370. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
  371. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  372. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  373. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
  374. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  375. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  376. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  377. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
  378. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  379. package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -2
  380. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  381. package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  382. package/mobile/lib/components/CreditCalculator/CreditCalculator.js +8 -47
  383. package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  384. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  385. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  386. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
  387. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  388. package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
  389. package/mobile/lib/components/CreditCalculator/defaultTabs.js +21 -0
  390. package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
  391. package/mobile/lib/components/Footer/Footer.js +5 -6
  392. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  393. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
  394. package/mobile/lib/components/Gallery/Gallery.js +6 -6
  395. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  396. package/mobile/lib/components/Gallery/GalleryContent.d.ts +6 -0
  397. package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
  398. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  399. package/mobile/lib/components/Header/Header.js +3 -2
  400. package/mobile/lib/components/Header/Header.js.map +1 -1
  401. package/mobile/lib/components/Header/HeaderBurger.d.ts +2 -2
  402. package/mobile/lib/components/Header/HeaderBurger.js +1 -1
  403. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  404. package/mobile/lib/components/Header/HeaderContent.d.ts +10 -4
  405. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  406. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  407. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  408. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  409. package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
  410. package/mobile/lib/components/TariffsTable/TableTileHeader.js +8 -0
  411. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
  412. package/mobile/lib/components/TariffsTable/TariffsTable.js +14 -18
  413. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  414. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  415. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  416. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  417. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  418. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
  419. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  420. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  421. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
  422. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  423. package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  424. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
  425. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  426. package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
  427. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  428. package/mobile/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
  429. package/mobile/lib/hooks/useTableArrowScrollControl.js +9 -0
  430. package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -0
  431. package/mobile/lib/model/ListOrientation.d.ts +8 -0
  432. package/mobile/lib/model/ListOrientation.js +2 -0
  433. package/mobile/lib/model/ListOrientation.js.map +1 -0
  434. package/mobile/lib/model/SitemapProps.d.ts +11 -0
  435. package/mobile/lib/services/sitemap/SitemapProps.d.ts +12 -1
  436. package/mobile/lib/ui-kit/Button/ButtonInner.js +16 -10
  437. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  438. package/mobile/lib/ui-kit/Img/Img.d.ts +6 -2
  439. package/mobile/lib/ui-kit/Img/Img.js +10 -5
  440. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  441. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
  442. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  443. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  444. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  445. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  446. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
  447. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  448. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  449. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  450. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  451. package/mobile/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
  452. package/mobile/lib/ui-kit/Tabs/Tabs.js +14 -0
  453. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -0
  454. package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
  455. package/mobile/lib/ui-kit/Tabs/TabsProps.js +2 -0
  456. package/mobile/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
  457. package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
  458. package/mobile/src/components/Accordion/AccordionContent.ts +16 -0
  459. package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
  460. package/mobile/src/components/Accordion/AccordionItemInner.tsx +1 -1
  461. package/mobile/src/components/Blocks.ts +6 -2
  462. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
  463. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
  464. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
  465. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
  466. package/mobile/src/components/ComparisonTable/TableColumn.tsx +6 -2
  467. package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +19 -81
  468. package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
  469. package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
  470. package/mobile/src/components/CreditCalculator/defaultTabs.ts +22 -0
  471. package/mobile/src/components/Footer/Footer.tsx +9 -9
  472. package/mobile/src/components/Footer/FooterContent.ts +1 -1
  473. package/mobile/src/components/Gallery/Gallery.example.json +4 -0
  474. package/mobile/src/components/Gallery/Gallery.tsx +19 -9
  475. package/mobile/src/components/Gallery/GalleryContent.ts +6 -0
  476. package/mobile/src/components/Gallery/GalleryInner.tsx +2 -0
  477. package/mobile/src/components/Header/Header.tsx +5 -6
  478. package/mobile/src/components/Header/HeaderBurger.tsx +11 -6
  479. package/mobile/src/components/Header/HeaderContent.ts +12 -4
  480. package/mobile/src/components/Header/HeaderTop.tsx +5 -1
  481. package/mobile/src/components/MiniGallery/MiniGallery.example.json +8 -4
  482. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -0
  483. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -1
  484. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  485. package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
  486. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +15 -0
  487. package/mobile/src/components/TariffsTable/TariffsTable.example.json +7 -1
  488. package/mobile/src/components/TariffsTable/TariffsTable.tsx +41 -65
  489. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
  490. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +31 -23
  491. package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
  492. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
  493. package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
  494. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
  495. package/mobile/src/hooks/useTableArrowScrollControl.ts +22 -0
  496. package/mobile/src/model/ListOrientation.ts +8 -0
  497. package/mobile/src/model/SitemapProps.ts +12 -0
  498. package/mobile/src/services/sitemap/SitemapProps.ts +13 -1
  499. package/mobile/src/ui-kit/Button/ButtonInner.tsx +25 -21
  500. package/mobile/src/ui-kit/Img/Img.tsx +29 -15
  501. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
  502. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
  503. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
  504. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
  505. package/mobile/src/ui-kit/Tabs/Tabs.tsx +46 -0
  506. package/mobile/src/ui-kit/Tabs/TabsProps.ts +20 -0
  507. package/package.json +12 -2
  508. package/src/components/Accordion/Accordion.fixture.mobile.tsx +7 -5
  509. package/src/components/Accordion/Accordion.fixture.tsx +80 -14
  510. package/src/components/Accordion/AccordionBlocks.tsx +2 -0
  511. package/src/components/Accordion/AccordionContent.ts +16 -0
  512. package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
  513. package/src/components/Accordion/AccordionItem.tsx +4 -2
  514. package/src/components/Accordion/AccordionItemInner.mobile.tsx +1 -1
  515. package/src/components/Accordion/AccordionItemInner.tsx +21 -16
  516. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +36 -33
  517. package/src/components/Blocks.mobile.ts +6 -2
  518. package/src/components/ComparisonTable/ComparisonTable.tsx +38 -99
  519. package/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
  520. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
  521. package/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
  522. package/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
  523. package/src/components/ComparisonTable/TableColumn.tsx +6 -2
  524. package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +30 -10
  525. package/src/components/CreditCalculator/CreditCalculator.tsx +19 -81
  526. package/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
  527. package/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
  528. package/src/components/CreditCalculator/defaultTabs.ts +22 -0
  529. package/src/components/Footer/Footer.fixture.mobile.tsx +88 -281
  530. package/src/components/Footer/Footer.fixture.tsx +143 -141
  531. package/src/components/Footer/Footer.mobile.tsx +9 -9
  532. package/src/components/Footer/FooterContent.ts +1 -1
  533. package/src/components/Gallery/Gallery.example.json +4 -0
  534. package/src/components/Gallery/Gallery.fixture.mobile.tsx +9 -4
  535. package/src/components/Gallery/Gallery.mobile.tsx +19 -9
  536. package/src/components/Gallery/GalleryContent.ts +6 -0
  537. package/src/components/Gallery/GalleryInner.tsx +2 -0
  538. package/src/components/Header/Header.fixture.mobile.tsx +1 -203
  539. package/src/components/Header/Header.mobile.tsx +5 -6
  540. package/src/components/Header/HeaderBurger.tsx +11 -6
  541. package/src/components/Header/HeaderContent.ts +12 -4
  542. package/src/components/Header/HeaderTop.tsx +5 -1
  543. package/src/components/LikeControl/LikeControl.fixture.tsx +7 -5
  544. package/src/components/LinkList/LinkList.fixture.tsx +8 -10
  545. package/src/components/MiniGallery/MiniGallery.example.json +8 -4
  546. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +11 -9
  547. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +32 -30
  548. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  549. package/src/components/Navigation/Navigation.fixture.tsx +26 -24
  550. package/src/components/Placeholder/Placeholder.fixture.tsx +7 -5
  551. package/src/components/ProductBlock/ProductBlock.fixture.tsx +27 -11
  552. package/src/components/ProductBlock/ProductBlockContent.ts +1 -0
  553. package/src/components/ProductGallery/ProductGallery.example.json +2 -1
  554. package/src/components/ProductGallery/ProductGallery.fixture.tsx +104 -102
  555. package/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  556. package/src/components/ProductTile/ProductTile.example.json +1 -0
  557. package/src/components/ProductTile/ProductTile.fixture.tsx +50 -117
  558. package/src/components/TariffsTable/TableTileHeader.tsx +15 -0
  559. package/src/components/TariffsTable/TariffsTable.example.json +7 -1
  560. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +164 -0
  561. package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -1
  562. package/src/components/TariffsTable/TariffsTable.mobile.tsx +54 -0
  563. package/src/components/TariffsTable/TariffsTable.tsx +51 -47
  564. package/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
  565. package/src/components/TariffsTable/TariffsTableContent.ts +31 -23
  566. package/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
  567. package/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
  568. package/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
  569. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +105 -93
  570. package/src/components/TextBlock/TextBlock.fixture.tsx +91 -64
  571. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
  572. package/src/components/Tile/Tile.fixture.tsx +17 -35
  573. package/src/hooks/useTableArrowScrollControl.ts +22 -0
  574. package/src/model/ListOrientation.ts +8 -0
  575. package/src/model/SitemapProps.ts +12 -0
  576. package/src/services/sitemap/SitemapProps.ts +13 -1
  577. package/src/ui-kit/Button/Button.tsx +32 -54
  578. package/src/ui-kit/Button/ButtonInner.tsx +25 -21
  579. package/src/ui-kit/Img/Img.mobile.tsx +29 -15
  580. package/src/ui-kit/Img/Img.tsx +27 -24
  581. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
  582. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
  583. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
  584. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
  585. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
  586. package/src/ui-kit/Tabs/Tabs.tsx +46 -0
  587. package/src/ui-kit/Tabs/TabsProps.ts +20 -0
  588. package/dist/hooks/useComparisonTableScroll.d.ts +0 -12
  589. package/dist/hooks/useComparisonTableScroll.js +0 -12
  590. package/dist/hooks/useComparisonTableScroll.js.map +0 -1
  591. package/lib/hooks/useComparisonTableScroll.d.ts +0 -12
  592. package/lib/hooks/useComparisonTableScroll.js +0 -9
  593. package/lib/hooks/useComparisonTableScroll.js.map +0 -1
  594. package/mobile/dist/hooks/useComparisonTableScroll.d.ts +0 -12
  595. package/mobile/dist/hooks/useComparisonTableScroll.js +0 -12
  596. package/mobile/dist/hooks/useComparisonTableScroll.js.map +0 -1
  597. package/mobile/lib/hooks/useComparisonTableScroll.d.ts +0 -12
  598. package/mobile/lib/hooks/useComparisonTableScroll.js +0 -9
  599. package/mobile/lib/hooks/useComparisonTableScroll.js.map +0 -1
  600. package/mobile/src/hooks/useComparisonTableScroll.ts +0 -21
  601. package/src/hooks/useComparisonTableScroll.ts +0 -21
@@ -246,18 +246,23 @@
246
246
  return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
247
247
  });
248
248
 
249
- const Img = JSX(({ className = '', image }) => {
249
+ const Img = JSX(({ className = '', image, imageClassName }) => {
250
250
  if (!image) {
251
251
  return null;
252
252
  }
253
+ return (jsxs("picture", { className: className, children: [image.sources?.length
254
+ ? image.sources.map(({ src, format }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
255
+ : null, renderImg(image, imageClassName)] }));
256
+ });
257
+ const renderImg = (image, imageClassName = '') => {
253
258
  const style = {
254
259
  width: image.size?.width ? `${image.size?.width}px` : '100%',
255
260
  height: image.size?.height ? `${image.size?.height}px` : '100%',
256
261
  };
257
- return (jsxs("picture", { className: className, children: [image.sources?.length
258
- ? image.sources.map(({ src, format }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
259
- : null, jsx("img", { src: image.src, className: `m-auto ${image.className || ''}`, alt: image.alt || image.title, title: image.title, style: style, ...image.size })] }));
260
- });
262
+ const title = image.title || '';
263
+ const alt = image.alt || image.title;
264
+ return (jsx("img", { src: image.src, className: `m-auto ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
265
+ };
261
266
  function formatToMimeType(format) {
262
267
  return format ? `image/${String(format)}` : undefined;
263
268
  }
@@ -282,7 +287,15 @@
282
287
  const BASE_DOT_OPACITY = 0.3;
283
288
  const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
284
289
  const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction, showDots }) => {
285
- return showDots && children?.length ? (jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => (jsx("div", { className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
290
+ const handleClick = (idx) => (e) => {
291
+ if (idx === activeIndex) {
292
+ return;
293
+ }
294
+ const contentContainer = e.currentTarget.parentElement
295
+ ?.previousElementSibling;
296
+ contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth' });
297
+ };
298
+ return showDots && children?.length ? (jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => (jsx("div", { onClick: handleClick(idx), className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
286
299
  });
287
300
  const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
288
301
  if (currentIdx < activeIndex || currentIdx > activeIndex + 1)
@@ -360,6 +373,12 @@
360
373
  const SwipeListControl = JSX(({ className, context, children, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, onSlideChange, }) => {
361
374
  const [activeIndex, setActiveIndex] = context.useState(0);
362
375
  const [indexFraction, setIndexFraction] = context.useState(0);
376
+ const dotsProps = {
377
+ activeIndex,
378
+ indexFraction,
379
+ showDots,
380
+ children,
381
+ };
363
382
  const handleScroll = (e) => {
364
383
  const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } = e.currentTarget;
365
384
  // horizontal PADDING / 2 to compensate padding-margin combo of child container
@@ -380,10 +399,8 @@
380
399
  setActiveIndex(index);
381
400
  setIndexFraction(fraction);
382
401
  };
383
- return (jsxs("div", { className: className, children: [renderSwipeList({ gap, padding, activeIndex, handleScroll, children }), renderSwipelistDots({ activeIndex, indexFraction, showDots, children })] }));
402
+ return (jsxs("div", { className: className, children: [jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), jsx(SwipeListControlDots, { ...dotsProps })] }));
384
403
  });
385
- const renderSwipeList = ({ gap, padding, activeIndex, handleScroll, children }) => (jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }));
386
- const renderSwipelistDots = ({ activeIndex, indexFraction, showDots, children }) => (jsx(SwipeListControlDots, { activeIndex: activeIndex, indexFraction: indexFraction, showDots: showDots, children: children }));
387
404
 
388
405
  const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
389
406
  const { text, fileSize, ...linkProps } = doc;
@@ -427,63 +444,6 @@
427
444
  return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48", asSVG: true })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
428
445
  }
429
446
 
430
- const LIST_STYLE_CLASSES$1 = 'rounded-full inline-block mr-3 mt-2';
431
- const TEXT_STYLE_MAP$1 = {
432
- primary: 'text-primary-text',
433
- secondary: 'text-white',
434
- gray: 'text-secondary-text',
435
- };
436
- const LIST_STYLE_MAP$1 = {
437
- primary: 'bg-primary-main',
438
- secondary: 'bg-white',
439
- gray: 'bg-secondary-text',
440
- };
441
- const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
442
- return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle$1(version) }), jsx("span", { className: `text-m-md ${TEXT_STYLE_MAP$1[version]}`, children: children })] }));
443
- });
444
- const getListStyle$1 = (version) => {
445
- const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
446
- return `${LIST_STYLE_CLASSES$1} ${LIST_STYLE_MAP$1[version]} ${size}`;
447
- };
448
-
449
- const List = JSX((props) => {
450
- const { className = '', itemClassName, isDotted, items, version } = props;
451
- return (jsx("section", { className: `${className}`, role: "list", children: items?.length
452
- ? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
453
- : null }));
454
- });
455
-
456
- const textBlockStyleMaps = {
457
- primary: {
458
- background: 'bg-white',
459
- icon: 'bg-primary-main text-white',
460
- title: 'text-primary-text',
461
- description: 'text-secondary-text',
462
- },
463
- secondary: {
464
- background: 'bg-primary-main',
465
- icon: 'bg-white text-primary-main',
466
- title: 'text-white',
467
- description: 'text-white',
468
- },
469
- 'secondary-light': {
470
- background: 'bg-primary-main/10',
471
- icon: 'bg-primary-main text-white',
472
- title: 'text-primary-text',
473
- description: 'text-secondary-text',
474
- },
475
- };
476
- const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
477
- const textBlockStyleMap = textBlockStyleMaps[blockVersion];
478
- return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage$1(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, version: "gray", className: "mt-1 text-m-sm text-secondary-text" })) : null] })] }));
479
- });
480
- function renderIcon(className) {
481
- return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
482
- }
483
- function renderImage$1(image) {
484
- return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
485
- }
486
-
487
447
  const isURL = (href) => href?.includes('//');
488
448
  const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
489
449
  const getOrigin = (href) => {
@@ -541,17 +501,23 @@
541
501
  };
542
502
  }
543
503
 
544
- const ButtonInner = JSX(({ text, aboveText, appendLeft, rounded, version }) => {
545
- const withoutText = !text && !aboveText && Boolean(appendLeft);
546
- const buttonInnerClasses = version !== 'link'
547
- ? `flex items-center justify-center
548
- ${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`
549
- : null;
550
- return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
504
+ const ButtonInner = JSX((props) => {
505
+ const { text, aboveText, appendLeft } = props;
506
+ return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button font-medium text-left", children: text })] })) : null] }));
551
507
  });
552
- function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
553
- return (jsxs("div", { className: buttonInnerClasses, children: [appendLeft ? appendLeft : null, withoutText ? null : (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-m-button font-medium text-left", children: text })] }))] }));
554
- }
508
+ const getButtonStyle = (props) => {
509
+ const { version, aboveText, rounded } = props;
510
+ if (version === 'link') {
511
+ return '';
512
+ }
513
+ const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`;
514
+ return [
515
+ 'flex items-center justify-center',
516
+ isWithText(props) ? withTextStyle : 'h-12 w-12',
517
+ rounded ? 'rounded-full' : '',
518
+ ].join(' ');
519
+ };
520
+ const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
555
521
 
556
522
  const buttonStyleMap = {
557
523
  primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
@@ -575,9 +541,9 @@
575
541
  const ButtonSection = JSX(({ context, className = '', buttons }) => {
576
542
  const { handlerDecorator } = context;
577
543
  const router = context.useRouter();
578
- return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$2(useLink({ router, handlerDecorator }, button), index)) })) : null;
544
+ return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$3(useLink({ router, handlerDecorator }, button), index)) })) : null;
579
545
  });
580
- function renderButton$2({ icon, ...button }, i) {
546
+ function renderButton$3({ icon, ...button }, i) {
581
547
  if (!button?.text)
582
548
  return;
583
549
  return icon ? (jsx(Button, { appendLeft: jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
@@ -588,10 +554,93 @@
588
554
  return jsx("div", { className: `font-normal text-m-md ${className}`, children: description });
589
555
  });
590
556
 
557
+ const LIST_STYLE_CLASSES$1 = 'rounded-full inline-block mr-3 mt-2';
558
+ const TEXT_STYLE_MAP$1 = {
559
+ primary: 'text-primary-text',
560
+ secondary: 'text-white',
561
+ gray: 'text-secondary-text',
562
+ };
563
+ const LIST_STYLE_MAP$1 = {
564
+ primary: 'bg-primary-main',
565
+ secondary: 'bg-white',
566
+ gray: 'bg-secondary-text',
567
+ };
568
+ const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
569
+ return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle$1(version) }), jsx("span", { className: `text-m-md ${TEXT_STYLE_MAP$1[version]}`, children: children })] }));
570
+ });
571
+ const getListStyle$1 = (version) => {
572
+ const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
573
+ return `${LIST_STYLE_CLASSES$1} ${LIST_STYLE_MAP$1[version]} ${size}`;
574
+ };
575
+
576
+ const List = JSX((props) => {
577
+ const { className = '', itemClassName, isDotted, items, version } = props;
578
+ return (jsx("section", { className: `${className}`, role: "list", children: items?.length
579
+ ? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
580
+ : null }));
581
+ });
582
+
591
583
  const BaseTile = JSX(({ className = '', title, children, buttons, image }) => {
592
584
  return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { children: children }), buttons?.length ? jsx("div", { children: buttons }) : null] }), image] })] }));
593
585
  });
594
586
 
587
+ const benefitTitleStyleMap = {
588
+ primary: 'text-primary-text',
589
+ secondary: 'text-white',
590
+ };
591
+ const benefitDescStyleMap = {
592
+ primary: 'text-secondary-text',
593
+ secondary: 'text-white',
594
+ };
595
+ function renderBenefit(benefit, i, version) {
596
+ return (jsxs("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon && (jsx(Icon, { className: "w-6 h-6 rounded-full box-border", name: benefit.icon, width: "24", height: "24", asSVG: true })), jsx("div", { className: `font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-m-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] }, String(i)));
597
+ }
598
+
599
+ const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
600
+ return (jsxs("div", { className: `w-full text-primary-text ${className}`, children: [jsx("div", { children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? jsx(Description, { className: "mt-3", description: description }) : null, benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? jsx(List, { className: "mt-3", items: items }) : null] }) }), renderImage$1(image)] }));
601
+ });
602
+ function renderImage$1(image) {
603
+ return image?.src ? (jsx("div", { className: "mt-5", children: jsx(Img, { image: { className: 'block', ...image } }) })) : null;
604
+ }
605
+
606
+ const ProductBlock = JSX(
607
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
608
+ (props /* Get rid of image and benefits */) => {
609
+ const { className } = props;
610
+ return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${className || ''}`, children: jsx(ProductBlockInner, { ...props }) }));
611
+ });
612
+
613
+ const textBlockStyleMaps = {
614
+ primary: {
615
+ background: 'bg-white',
616
+ icon: 'bg-primary-main text-white',
617
+ title: 'text-primary-text',
618
+ description: 'text-secondary-text',
619
+ },
620
+ secondary: {
621
+ background: 'bg-primary-main',
622
+ icon: 'bg-white text-primary-main',
623
+ title: 'text-white',
624
+ description: 'text-white',
625
+ },
626
+ 'secondary-light': {
627
+ background: 'bg-primary-main/10',
628
+ icon: 'bg-primary-main text-white',
629
+ title: 'text-primary-text',
630
+ description: 'text-secondary-text',
631
+ },
632
+ };
633
+ const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
634
+ const textBlockStyleMap = textBlockStyleMaps[blockVersion];
635
+ return (jsxs("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? (jsx(List, { className: "mt-1", items: items, isDotted: isDotted, version: blockVersion.indexOf('secondary') !== -1 ? 'secondary' : 'gray' })) : null] })] }));
636
+ });
637
+ function renderIcon(className) {
638
+ return (jsx("div", { className: "mb-3", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
639
+ }
640
+ function renderImage(image) {
641
+ return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
642
+ }
643
+
595
644
  const getColSpan = (className) => {
596
645
  const colSpanPrefix = 'col-span-';
597
646
  const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
@@ -673,23 +722,23 @@
673
722
  secondary: 'bg-primary-main text-white',
674
723
  };
675
724
  const Gallery = JSX(({ context, title, description, cards = [], className, isScroll = true }) => {
676
- return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), description ? (jsx("div", { className: "font-normal text-m-md max-w-[600px] mt-2", children: description })) : null] }), renderCardsLayout(isScroll, cards, context)] }));
725
+ return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? (jsx("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(isScroll, cards, context)] }));
677
726
  });
678
727
  function renderCardsLayout(isScroll, cards, context) {
679
728
  return isScroll ? (jsx(SwipeListControl, { context: context, children: cards?.map(renderCard$1) })) : (jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard$1) }));
680
729
  }
681
730
  function renderCard$1(card, key) {
682
- return (jsxs("div", { className: `box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
683
- ${blockStyle[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: card.image }) })) : null, card.title ? jsx("h4", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems$1(card.items) : null] }), card?.button?.text ? renderButton$1(card.button) : null] }, key));
731
+ return (jsxs("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
732
+ ${blockStyle[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? jsx("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems$1(card.items, card.version) : null] }), card?.button?.text ? renderButton$2(card.button) : null] }, key));
684
733
  }
685
- function renderButton$1(button) {
734
+ function renderButton$2(button) {
686
735
  return (jsx(Button, { className: "mt-3", appendLeft: button?.icon && jsx(Icon, { name: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
687
736
  }
688
737
  function renderDescription(card) {
689
- return (jsx("div", { className: `text-secondary-text mt-2 ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
738
+ return (jsx("div", { className: `text-secondary-text mt-1 text-m-sm ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
690
739
  }
691
- function renderItems$1(items) {
692
- return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: "text-m-sm text-secondary-text pl-2", children: item.text })] }, String(i)))) }));
740
+ function renderItems$1(items, version = 'primary') {
741
+ return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
693
742
  }
694
743
 
695
744
  const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
@@ -750,9 +799,9 @@
750
799
 
751
800
  const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
752
801
  const titleStyleClasses = getTitleStyle(version, description, items);
753
- return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton(button) : null] }));
802
+ return (jsxs("div", { children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton$1(button) : null] }));
754
803
  });
755
- function renderButton(button) {
804
+ function renderButton$1(button) {
756
805
  return (jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && jsx(Icon, { name: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
757
806
  }
758
807
  function renderCardTitle(title, className) {
@@ -789,7 +838,7 @@
789
838
  const showNextButton = isGalleryScrollAvailable &&
790
839
  cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
791
840
  const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
792
- return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
841
+ return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })), jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
793
842
  });
794
843
 
795
844
  const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
@@ -809,6 +858,7 @@
809
858
  LinkDocs,
810
859
  TextBlock,
811
860
  PictureText,
861
+ ProductBlock,
812
862
  Tile,
813
863
  ProductTile,
814
864
  Gallery,
@@ -825,7 +875,7 @@
825
875
  return null;
826
876
  }
827
877
  const AccordionBlock = AccordionBlocks[type];
828
- return (jsx("div", { className: "mb-5 last:mb-0", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
878
+ return (jsx("div", { className: "mb-5 last:mb-0 first:mt-2", children: jsx(AccordionBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
829
879
  };
830
880
 
831
881
  const isActiveHandler = ({ context, blocks }) => {
@@ -853,13 +903,75 @@
853
903
  });
854
904
  return (jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider`, children: [jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
855
905
  ${bordered ? '' : 'py-[14px] px-0'}
856
- ${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-sm pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "20", height: "20", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
906
+ ${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
857
907
  });
858
908
 
859
909
  const Accordion = JSX(({ title, description, accordionItems, context, className = '', bordered }) => {
860
910
  return (jsxs("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-md text-center", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem${i}`))) })) : null] }));
861
911
  });
862
912
 
913
+ const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
914
+ const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
915
+
916
+ const HeaderCell = JSX(({ icon, image, title, subtitle, isFillGradient }) => (jsxs("div", { role: "columnheader", scope: "col", children: [icon && (jsx(Icon, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", name: icon, width: "63", height: "63" })), image?.src && (jsx("div", { className: "mb-3.5", children: jsx(Img, { image: image }) })), title && (jsx(Heading, { headingType: "h4", className: `${isFillGradient ? 'text-white' : ''}`, title: title })), subtitle && (jsx("div", { className: `text-m-sm mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`, children: subtitle }))] })));
917
+
918
+ const TableCell = JSX(({ cell, rowHeader, isFillGradient = false }) => {
919
+ const cellWrapperClasses = `box-border flex flex-col`;
920
+ const cellClasses = `h-full ${DIVIDER_CLASSES}`;
921
+ return (jsx("div", { className: cellWrapperClasses, role: "cell", children: jsx("div", { className: cellClasses, children: cell.map(renderCellInner$1(isFillGradient, rowHeader)) }) }));
922
+ });
923
+ const renderCellInner$1 = (isFillGradient, rowHeader) => ({ label, description }, i) => (jsxs("div", { className: "flex justify-between text-m-sm py-3.5", children: [jsx("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), jsxs("div", { className: "basis-1/2", children: [label && (jsx("div", { className: `text-right ${isFillGradient ? 'text-white' : ''}`, children: label })), description && (jsx("div", { className: `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: description }))] })] }, String(i)));
924
+
925
+ const TableColumn = JSX(({ header, columnData, visibleRowLength = 0, isFillGradient, showRow, onToggleColumn }) => {
926
+ const columnDataView = columnData.slice(0, showRow ? columnData.length : visibleRowLength);
927
+ const gradientClassName = isFillGradient ? GRADIENT : '';
928
+ const buttonVersion = isFillGradient ? 'secondary' : 'primary';
929
+ return (jsxs("div", { className: `border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`, role: "row", children: [jsx(HeaderCell, { ...header, isFillGradient: isFillGradient }), columnDataView?.length
930
+ ? columnDataView.map(({ rowHeader, cell }, i) => (jsx(TableCell, { cell: cell, rowHeader: rowHeader, isFillGradient: isFillGradient }, String(i))))
931
+ : null, showRow && renderButton({ header, buttonVersion }), renderToggleButton({ onToggleColumn, isFillGradient, showRow })] }));
932
+ });
933
+ const renderButton = ({ header, buttonVersion }) => (jsx(Button, { href: header.link.href, target: header.link.target, version: buttonVersion, className: "font-medium text-m-sm mt-4 py-[11px]", children: header.link.text }));
934
+ const renderToggleButton = ({ onToggleColumn, isFillGradient, showRow }) => (jsx("div", { className: "mt-5", role: "cell", children: jsx("a", { role: "link", onClick: onToggleColumn, className: `font-medium text-m-sm cursor-pointer ${isFillGradient ? 'text-white/80' : 'text-primary-main'}`, children: !showRow ? 'Показать описание' : 'Скрыть' }) }));
935
+
936
+ const ComparisonTable = JSX(({ className, context, title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, useSwiper = false, }) => {
937
+ const tableData = columns?.map(({ data, header }) => ({
938
+ header,
939
+ column: data?.map((cell, i) => ({ cell, rowHeader: rowHeaders?.[i]?.title })),
940
+ })) || [];
941
+ const [columnsViewState, setColumnsViewState] = context.useState(new Array(columns?.length).fill(!visibleRowLength));
942
+ const handleToggleColumn = (i) => {
943
+ columnsViewState[i] = !columnsViewState[i];
944
+ setColumnsViewState([...columnsViewState]);
945
+ };
946
+ return (jsxs("section", { className: `bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${className || ''}`, children: [title && (jsx(Heading, { headingType: "h3", className: "font-medium text-center m-0 mb-5", title: title })), renderColumns({
947
+ tableData,
948
+ context,
949
+ visibleRowLength,
950
+ isColoredFirstColumn,
951
+ columnsViewState,
952
+ handleToggleColumn,
953
+ useSwiper,
954
+ setColumnsViewState,
955
+ })] }));
956
+ });
957
+ const renderColumns = ({ context, tableData, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn, useSwiper, setColumnsViewState, }) => (jsx("div", { role: "table", children: tableData?.length ? (useSwiper ? (jsx(SwipeListControl, { context: context, onSlideChange: onSlideChange(columnsViewState, setColumnsViewState), children: tableData.map(renderColumn({
958
+ context,
959
+ visibleRowLength,
960
+ isColoredFirstColumn,
961
+ columnsViewState,
962
+ handleToggleColumn,
963
+ })) })) : (tableData.map(renderColumn({
964
+ context,
965
+ visibleRowLength,
966
+ isColoredFirstColumn,
967
+ columnsViewState,
968
+ handleToggleColumn,
969
+ })))) : null }));
970
+ const renderColumn = ({ context, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn }) => (columnData, i) => (jsx(TableColumn, { context: context, visibleRowLength: visibleRowLength, showRow: columnsViewState[i], header: columnData.header, columnData: columnData.column, isFillGradient: i === 0 && isColoredFirstColumn, onToggleColumn: () => handleToggleColumn(i) }, String(i)));
971
+ const onSlideChange = (columnsViewState, setColumnsViewState) => () => {
972
+ setColumnsViewState(new Array(columnsViewState.length).fill(false));
973
+ };
974
+
863
975
  function useExchangeRates(useAsyncData) {
864
976
  const { data } = useAsyncData(EXCHANGE_RATES_URL, fetchExchangeRates);
865
977
  return data || {};
@@ -1042,12 +1154,22 @@
1042
1154
  ],
1043
1155
  }));
1044
1156
 
1045
- const Footer = JSX(({ className = '', documents, relatedEnterprises, contacts, socialMedia, topItems, context, horizontalNavigationTitle, subMenu, }) => {
1046
- const propsTextBlock = {
1047
- context,
1048
- accordionItems: getAccordionItems(topItems),
1049
- };
1050
- return (jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), jsx(Accordion, { className: "!p-0 mb-4", ...propsTextBlock }), jsx("div", { children: subMenu?.map(renderSubMenuItem) }), jsx(MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), jsx(SearchBar, { context: context, className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia, context: context }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), jsx(TextInformation, { links: documents, context: context })] }));
1157
+ function useSitemap(useAsyncData) {
1158
+ const { data } = useAsyncData(sitemapURL(), fetchSitemap);
1159
+ return data || {};
1160
+ }
1161
+ async function fetchSitemap() {
1162
+ const response = await fetch(sitemapURL());
1163
+ return await response.json();
1164
+ }
1165
+ function sitemapURL() {
1166
+ return `/wcms-resources/${projectSettings.SITEMAP || 'sitemap'}.json`;
1167
+ }
1168
+
1169
+ const Footer = JSX(({ className = '', documents, relatedEnterprises, contacts, socialMedia, context, horizontalNavigationTitle, }) => {
1170
+ const sitemap = useSitemap(context.useAsyncData);
1171
+ const dispositions = sitemap?.dispositions;
1172
+ return (jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), jsx(Accordion, { context: context, className: "!p-0 mb-4", accordionItems: getAccordionItems(sitemap.topItems) }), jsx("div", { children: dispositions?.map(renderSubMenuItem) }), jsx(MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), jsx(SearchBar, { context: context, className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia, context: context }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), jsx(TextInformation, { links: documents, context: context })] }));
1051
1173
  });
1052
1174
  const renderSubMenuItem = (menu, i) => {
1053
1175
  const { icon, href, text } = menu;
@@ -1081,18 +1203,6 @@
1081
1203
  const subtract = (minuend, subtrahend) => (minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
1082
1204
  const mergeTopItems = (left, right) => substitute(left, right).concat(subtract(right, left));
1083
1205
 
1084
- function useSitemap(useAsyncData) {
1085
- const { data } = useAsyncData(sitemapURL(), fetchSitemap);
1086
- return data || {};
1087
- }
1088
- async function fetchSitemap() {
1089
- const response = await fetch(sitemapURL());
1090
- return await response.json();
1091
- }
1092
- function sitemapURL() {
1093
- return `/wcms-resources/${projectSettings.SITEMAP || 'sitemap'}.json`;
1094
- }
1095
-
1096
1206
  const TEXT_CLASSES = 'font-sans font-normal text-sm';
1097
1207
  const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
1098
1208
  const HeaderItem = JSX(({ className, text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
@@ -1114,18 +1224,19 @@
1114
1224
 
1115
1225
  const HeaderBurger = JSX(({ context, burgerSubMenu, onClick, defaultLocation = '', children }) => {
1116
1226
  const [city, getCity] = context.useGeolocation(defaultLocation);
1117
- return (jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent cursor-pointer", onClick: onClick, children: jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), jsxs("button", { onClick: getCity, className: "flex items-center text-sm text-secondary-text mb-4 bg-transparent cursor-pointer", children: [jsx(Icon, { name: "GeolocationIcon", width: "20", height: "20", className: "text-primary-main box-border mr-2", asSVG: true }), city] }), children, jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), jsx(SearchBar, { context: context, className: "grow" })] }));
1227
+ return (jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent cursor-pointer", onClick: onClick, children: jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), jsxs("button", { onClick: getCity, className: "flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer", children: [jsx(Icon, { name: "GeolocationIcon", width: "20", height: "20", className: "text-primary-main box-border mr-2", asSVG: true }), city] }), children, jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), jsx(SearchBar, { context: context, className: "grow" })] }));
1118
1228
  });
1119
1229
  const renderBurgerSubMenuItem = (menu, i) => {
1120
1230
  const { icon, href, text } = menu;
1121
1231
  return (jsxs("a", { href: href, className: "flex text-sm mb-4 hover:text-primary-main", children: [icon ? (jsx(Icon, { className: "text-primary-main pr-1", name: icon, width: "24", height: "24", asSVG: true })) : null, jsx("span", { className: "pl-0.5 font-medium", children: text })] }, `headerSubMenu-${i}`));
1122
1232
  };
1123
1233
 
1124
- const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
1234
+ const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), jsx(Logo, { bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
1125
1235
 
1126
- const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems, burgerSubMenu }) => {
1236
+ const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems }) => {
1127
1237
  const router = context.useRouter();
1128
1238
  const sitemap = useSitemap(context.useAsyncData);
1239
+ const dispositions = sitemap?.dispositions;
1129
1240
  const { handlerDecorator } = context;
1130
1241
  const mergedItems = mergeTopItems(sitemap.topItems, topItems);
1131
1242
  const activeTopItem = mergedItems.find(isTopItemActive(router));
@@ -1137,36 +1248,10 @@
1137
1248
  ...useLink({ router, handlerDecorator }, _),
1138
1249
  active: _ === activeSubItem,
1139
1250
  bgColor,
1140
- }, i)) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: burgerSubMenu, defaultLocation: defaultLocation, children: jsx(Accordion, { context: context, accordionItems: getAccordionItems(topItems), className: "p-0 pt-0 pb-0 mb-4" }) })) : null] }));
1251
+ }, i)) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: jsx(Accordion, { context: context, accordionItems: getAccordionItems(sitemap.topItems), className: "!p-0 mb-4" }) })) : null] }));
1141
1252
  });
1142
1253
  const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-sm", ...item }, String(i)));
1143
1254
 
1144
- const benefitTitleStyleMap = {
1145
- primary: 'text-primary-text',
1146
- secondary: 'text-white',
1147
- };
1148
- const benefitDescStyleMap = {
1149
- primary: 'text-secondary-text',
1150
- secondary: 'text-white',
1151
- };
1152
- function renderBenefit(benefit, i, version) {
1153
- return (jsxs("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon && (jsx(Icon, { className: "w-6 h-6 rounded-full box-border", name: benefit.icon, width: "24", height: "24", asSVG: true })), jsx("div", { className: `font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-m-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] }, String(i)));
1154
- }
1155
-
1156
- const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
1157
- return (jsxs("div", { className: `w-full text-primary-text ${className}`, children: [jsx("div", { children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? jsx(Description, { className: "mt-3", description: description }) : null, benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "mt-3", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? jsx(List, { className: "mt-3", items: items }) : null] }) }), renderImage(image)] }));
1158
- });
1159
- function renderImage(image) {
1160
- return image?.src ? (jsx("div", { className: "mt-5", children: jsx(Img, { image: { className: 'block', ...image } }) })) : null;
1161
- }
1162
-
1163
- const ProductBlock = JSX(
1164
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
1165
- (props /* Get rid of image and benefits */) => {
1166
- const { className } = props;
1167
- return (jsx("section", { className: `font-sans bg-white px-4 py-6 ${className || ''}`, children: jsx(ProductBlockInner, { ...props }) }));
1168
- });
1169
-
1170
1255
  const ProductGalleryBlock = JSX(({ block, headingType, context }) => {
1171
1256
  return (jsx("section", { className: "flex grow-0 shrink-0 basis-full px-4 pt-6", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { context: context, headingType: headingType || 'h2', ...block }) }) }));
1172
1257
  });
@@ -1194,20 +1279,49 @@
1194
1279
  return (jsx("div", { className: `${iconAreaSize} bg-secondary-light rounded-full z-10 mr-3 flex justify-center content-center`, children: jsx("span", { className: `font-medium text-secondary-text self-center ${iconTextSize}`, children: (step.icon && jsx(Icon, { name: step.icon, width: iconSize, height: iconSize })) || i + 1 }) }));
1195
1280
  };
1196
1281
 
1282
+ const TableTileHeader = JSX(({ title, icon }) => {
1283
+ return (jsxs("div", { className: "flex gap-2.5 mb-2", children: [title ? jsx(Heading, { headingType: "h3", className: "font-medium", title: title }) : null, icon ? (jsx(Icon, { className: "ml-auto max-w-6 max-h-6", name: icon, width: "24px", height: "24px" })) : null] }));
1284
+ });
1285
+
1286
+ const TariffsTableTileCell = JSX(({ header, data }) => {
1287
+ return (jsxs("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [jsx(TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner) : null] }));
1288
+ });
1289
+ const renderCellInner = ({ label, description, list, image, buttons }, i) => (jsxs("div", { children: [i > 0 && (jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-2" })), label ? jsx("div", { className: "text-m-sm m-0", children: label }) : null, description ? (jsx("div", { className: "text-m-sm text-secondary-text mt-[3px]", children: description })) : null, list?.items?.length ? (jsx("div", { className: "flex flex-col justify-between items-start", children: jsx("div", { role: "list", children: list.items.map((text, idx) => (jsx(BlockItem, { className: "text-m-sm", text: text, version: "gray", isDotted: list.isDotted ?? true }, String(idx)))) }) })) : null, image && jsx(Img, { image: { ...image, className: 'm-0' } }), buttons?.length ? (jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (jsx(Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, rounded: rounded, appendLeft: icon && jsx(Icon, { name: icon, width: "24px", height: "24px", asSVG: true }), ...buttonProps, "aria-label": icon }, String(idx)))) })) : null] }, String(i)));
1290
+
1291
+ const TariffsTableVertical = JSX(({ tiles }) => (jsx("div", { className: "flex flex-col gap-3.5", children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, { ...tile }, String(i)))) })));
1292
+
1293
+ const TariffsTableHorizontal = JSX(({ tiles, context }) => (jsx(SwipeListControl, { context: context, children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, { ...tile }, String(i)))) })));
1294
+
1295
+ const TariffsTable = JSX(({ className, context, title, description, columns, rowHeaders, orientation = 'vertical' }) => {
1296
+ const colData = getColData(columns);
1297
+ const tiles = getTiles(rowHeaders, colData);
1298
+ return (jsxs("section", { className: `px-4 py-6 bg-white font-sans text-primary-text ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? jsx("div", { className: "mb-5 text-center text-m-md", children: description }) : null, tiles?.length ? renderOrientationTable(orientation, tiles, context) : null] }));
1299
+ });
1300
+ function renderOrientationTable(orientation, tiles, context) {
1301
+ return orientation === 'vertical' ? (jsx(TariffsTableVertical, { tiles: tiles })) : (jsx(TariffsTableHorizontal, { context: context, tiles: tiles }));
1302
+ }
1303
+ const getColData = (columns) => columns?.[0].data ? columns[0].data : [];
1304
+ const getTiles = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
1305
+ header,
1306
+ data: colData?.[i] || [{}],
1307
+ }));
1308
+
1197
1309
  const Blocks = {
1198
1310
  Accordion,
1311
+ ComparisonTable,
1199
1312
  ExchangeRateTile,
1200
1313
  Footer,
1201
1314
  Gallery,
1202
1315
  Header,
1203
1316
  Headline,
1204
1317
  LinkDocs,
1318
+ LinkList,
1205
1319
  MobileAppTile,
1206
1320
  ProductBlock,
1207
1321
  ProductGallery,
1208
1322
  StepsBlock,
1323
+ TariffsTable,
1209
1324
  TextBlock,
1210
- LinkList,
1211
1325
  };
1212
1326
 
1213
1327
  const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-[36px] bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));