@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
@@ -1,4 +1,5 @@
1
1
  import type { LinkProps } from './LinkProps';
2
+ import { IconName } from '../icons/IconName';
2
3
  /**
3
4
  * @title Меню
4
5
  * @required ["text", "href"]
@@ -7,7 +8,17 @@ export interface TopMenuItem extends LinkProps {
7
8
  /** @title Ссылки */
8
9
  items?: LinkProps[];
9
10
  }
11
+ /**
12
+ * @title Ссылка дополнительного меню
13
+ * @required ["text", "href"]
14
+ */
15
+ export interface DispositionItem extends LinkProps {
16
+ /** @hidden */
17
+ icon?: IconName;
18
+ }
10
19
  export interface SitemapProps {
11
20
  /** @title Дополнительное меню */
12
21
  topItems?: TopMenuItem[];
22
+ /** @title Дополнительное меню */
23
+ dispositions?: DispositionItem[];
13
24
  }
@@ -1,4 +1,5 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
+ import { IconName } from '../../icons/IconName';
2
3
  /**
3
4
  * @title Ссылка
4
5
  * @required ["text", "href"]
@@ -7,7 +8,17 @@ export interface TopMenuItem extends LinkProps {
7
8
  /** @hidden */
8
9
  items?: LinkProps[];
9
10
  }
11
+ /**
12
+ * @title Ссылка дополнительного меню
13
+ * @required ["text", "href"]
14
+ */
15
+ export interface DispositionItem extends LinkProps {
16
+ /** @hidden */
17
+ icon?: IconName;
18
+ }
10
19
  export interface SitemapProps {
11
- /** @title Дополнительное меню */
20
+ /** @title Основное меню */
12
21
  topItems?: TopMenuItem[];
22
+ /** @title Дополнительное меню */
23
+ dispositions?: DispositionItem[];
13
24
  }
@@ -1,14 +1,20 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- export const ButtonInner = JSX(({ text, aboveText, appendLeft, rounded, version }) => {
4
- const withoutText = !text && !aboveText && Boolean(appendLeft);
5
- const buttonInnerClasses = version !== 'link'
6
- ? `flex items-center justify-center
7
- ${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${rounded ? 'rounded-full' : ''}`
8
- : null;
9
- return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
3
+ export const ButtonInner = JSX((props) => {
4
+ const { text, aboveText, appendLeft } = props;
5
+ 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] }));
10
6
  });
11
- function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
12
- 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 })] }))] }));
13
- }
7
+ const getButtonStyle = (props) => {
8
+ const { version, aboveText, rounded } = props;
9
+ if (version === 'link') {
10
+ return '';
11
+ }
12
+ const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`;
13
+ return [
14
+ 'flex items-center justify-center',
15
+ isWithText(props) ? withTextStyle : 'h-12 w-12',
16
+ rounded ? 'rounded-full' : '',
17
+ ].join(' ');
18
+ };
19
+ const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
14
20
  //# sourceMappingURL=ButtonInner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;IACpD,MAAM,WAAW,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE/D,MAAM,kBAAkB,GACtB,OAAO,KAAK,MAAM;QAChB,CAAC,CAAC;YACE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,IACzE,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAC7B,EAAE;QACJ,CAAC,CAAC,IAAI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ACjD,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,MAAM,aAAa,GAAG,cAAc,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IAEpE,OAAO;QACL,kCAAkC;QAClC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW;QAC/C,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KAC9B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAoB,EAAE,EAAE,CACvE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
- import type { ImgSource } from '../../model/Picture';
2
- import { ImageProps } from './ImgProps';
1
+ import type { Picture, ImgSource } from '../../model/Picture';
2
+ export interface ImageProps {
3
+ className?: string;
4
+ imageClassName?: string;
5
+ image: Picture;
6
+ }
3
7
  export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps, any>, context?: any) => any;
4
8
  export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
@@ -1,17 +1,22 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- export const Img = JSX(({ className = '', image }) => {
3
+ export const Img = JSX(({ className = '', image, imageClassName }) => {
4
4
  if (!image) {
5
5
  return null;
6
6
  }
7
+ return (_jsxs("picture", { className: className, children: [image.sources?.length
8
+ ? image.sources.map(({ src, format }, index) => (_jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
9
+ : null, renderImg(image, imageClassName)] }));
10
+ });
11
+ const renderImg = (image, imageClassName = '') => {
7
12
  const style = {
8
13
  width: image.size?.width ? `${image.size?.width}px` : '100%',
9
14
  height: image.size?.height ? `${image.size?.height}px` : '100%',
10
15
  };
11
- return (_jsxs("picture", { className: className, children: [image.sources?.length
12
- ? image.sources.map(({ src, format }, index) => (_jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
13
- : null, _jsx("img", { src: image.src, className: `m-auto ${image.className || ''}`, alt: image.alt || image.title, title: image.title, style: style, ...image.size })] }));
14
- });
16
+ const title = image.title || '';
17
+ const alt = image.alt || image.title;
18
+ return (_jsx("img", { src: image.src, className: `m-auto ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
19
+ };
15
20
  export function formatToMimeType(format) {
16
21
  return format ? `image/${String(format)}` : undefined;
17
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,CAAa,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IAC/D,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IACD,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QAC5D,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;KAChE,CAAC;IAEF,OAAO,CACL,mBAAS,SAAS,EAAE,SAAS,aAC1B,KAAK,CAAC,OAAO,EAAE,MAAM;gBACpB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neckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { DEFAULT_GAP, DEFAULT_PADDING } from './constants.js';
4
4
  import { SwipeListControlDots } from './SwipeListControlDots.js';
@@ -8,6 +8,12 @@ import { getScrollPoints } from './utils/getScrollPoints.js';
8
8
  export const SwipeListControl = JSX(({ className, context, children, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, onSlideChange, }) => {
9
9
  const [activeIndex, setActiveIndex] = context.useState(0);
10
10
  const [indexFraction, setIndexFraction] = context.useState(0);
11
+ const dotsProps = {
12
+ activeIndex,
13
+ indexFraction,
14
+ showDots,
15
+ children,
16
+ };
11
17
  const handleScroll = (e) => {
12
18
  const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } = e.currentTarget;
13
19
  // horizontal PADDING / 2 to compensate padding-margin combo of child container
@@ -28,8 +34,6 @@ export const SwipeListControl = JSX(({ className, context, children, gap = DEFAU
28
34
  setActiveIndex(index);
29
35
  setIndexFraction(fraction);
30
36
  };
31
- return (_jsxs("div", { className: className, children: [renderSwipeList({ gap, padding, activeIndex, handleScroll, children }), renderSwipelistDots({ activeIndex, indexFraction, showDots, children })] }));
37
+ return (_jsxs("div", { className: className, children: [_jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), _jsx(SwipeListControlDots, { ...dotsProps })] }));
32
38
  });
33
- const renderSwipeList = ({ gap, padding, activeIndex, handleScroll, children }) => (_jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }));
34
- const renderSwipelistDots = ({ activeIndex, indexFraction, showDots, children }) => (_jsx(SwipeListControlDots, { activeIndex: activeIndex, indexFraction: indexFraction, showDots: showDots, children: children }));
35
39
  //# sourceMappingURL=SwipeListControl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],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,CACL,eAAK,SAAS,EAAE,SAAS,aACvB,KAAC,oBAAoB,IACnB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,YAAY,YAErB,QAAQ,GACY,EACvB,KAAC,oBAAoB,OAAK,SAAS,GAAI,IACnC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -6,7 +6,15 @@ const ACTIVE_DOT_WIDTH_CHANGE = 16;
6
6
  const BASE_DOT_OPACITY = 0.3;
7
7
  const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
8
8
  export const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction, showDots }) => {
9
- 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;
9
+ const handleClick = (idx) => (e) => {
10
+ if (idx === activeIndex) {
11
+ return;
12
+ }
13
+ const contentContainer = e.currentTarget.parentElement
14
+ ?.previousElementSibling;
15
+ contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth' });
16
+ };
17
+ 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;
10
18
  });
11
19
  const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
12
20
  if (currentIdx < activeIndex || currentIdx > activeIndex + 1)
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,UAAU,GAAG,yEAAyE,CAAC;AAC7F,MAA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,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,UAAkB,EAClB,WAAmB,EACnB,aAAqB,EACU,EAAE;IACjC,IAAI,UAAU,GAAG,WAAW,IAAI,UAAU,GAAG,WAAW,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAE1E,MAAM,YAAY,GAAG,CAAC,GAAG,aAAa,CAAC;IACvC,MAAM,aAAa,GAAG,aAAa,CAAC;IAEpC,OAAO,UAAU,KAAK,WAAW;QAC/B,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,YAAY,EAAE;YACzE,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,YAAY,IAAI;SACtE;QACH,CAAC,CAAC;YACE,OAAO,EAAE,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,aAAa,EAAE;YAC1E,KAAK,EAAE,GAAG,cAAc,GAAG,uBAAuB,GAAG,aAAa,IAAI;SACvE,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { TableArrowScrollControlProps } from './TableArrowScrollControlProps';
2
+ export declare const TableArrowScrollControl: (props: import("@redneckz/uni-jsx").PropsWithChildren<TableArrowScrollControlProps, any>, context?: any) => any;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { ArrowButton } from '../Button/ArrowButton.js';
4
+ export const TableArrowScrollControl = JSX(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
5
+ return isScrollAvailable ? (_jsx("div", { children: _jsxs("div", { className: "absolute top-7 right-7 z-10", children: [_jsx(ArrowButton, { onClick: onNextClick, disabled: !showNextButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" }), _jsx(ArrowButton, { className: "mt-4 rotate-180", onClick: onPrevClick, disabled: !showPrevButton, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })] }) })) : null;
6
+ });
7
+ //# sourceMappingURL=TableArrowScrollControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableArrowScrollControl.js","sourceRoot":"","sources":["../../../src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CACxC,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IAClF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,wBACE,eAAK,SAAS,EAAC,6BAA6B,aAC1C,KAAC,WAAW,IACV,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,mGAAmB,wBACV,cAAc,GACjC,EACF,KAAC,WAAW,IACV,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,cAAc,EACzB,SAAS,EAAC,6FAAkB,wBACT,aAAa,GAChC,IACE,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface TableArrowScrollControlProps {
2
+ isScrollAvailable?: boolean;
3
+ onNextClick?: (ev?: MouseEvent) => void;
4
+ onPrevClick?: (ev?: MouseEvent) => void;
5
+ showNextButton?: boolean;
6
+ showPrevButton?: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableArrowScrollControlProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableArrowScrollControlProps.js","sourceRoot":"","sources":["../../../src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type { TabsProps } from './TabsProps';
2
+ export declare const Tabs: (props: import("@redneckz/uni-jsx").PropsWithChildren<TabsProps, any>, context?: any) => any;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { Icon } from '../../ui-kit/Icon/Icon.js';
4
+ const TAB_STYLE = 'px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke';
5
+ const ACTIVE_TAB_STYLE = 'px-2 h-16 pt-4 pb-2 text-white bg-primary-main';
6
+ export const Tabs = JSX(({ tabs, currentTabIndex, onTabClick }) => {
7
+ return (_jsx("div", { className: "flex items-end border-b border-main-stroke", role: "tablist", children: tabs?.map(renderTab(currentTabIndex, onTabClick)) }));
8
+ });
9
+ const renderTab = (currentTabIndex, onTabClick) => (tab, index) => {
10
+ const isActive = currentTabIndex === index;
11
+ return (_jsxs("div", { className: `flex h-full flex-1 cursor-pointer mr-2 last:mr-0 ${isActive ? ACTIVE_TAB_STYLE : TAB_STYLE}`, role: "tab", onClick: () => onTabClick(index), "aria-selected": String(isActive), children: [tab?.icon ? renderIcon(tab, isActive) : null, _jsxs("div", { children: [tab?.title ? _jsx("h3", { className: "font-medium m-0 text-base", children: tab?.title }) : null, tab?.description ? (_jsx("span", { className: `font-light text-xs ${isActive ? '' : 'text-secondary-text'}`, children: tab?.description })) : null] })] }, String(index)));
12
+ };
13
+ const renderIcon = (tab, isActive) => (_jsx("div", { className: "h-full mt-1", style: isActive ? { filter: 'invert(1)' } : null, children: _jsx(Icon, { className: "w-5 h-5 mr-3", name: tab?.icon || 'CardIcon', asSVG: !isActive }) }));
14
+ //# sourceMappingURL=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C,CAAC,CAClB,eAAM,SAAS,EAAE,sBAAsB,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAqB,EAAE,YAC3E,GAAG,EAAE,WAAW,GACZ,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,KAhBD,MAAM,CAAC,KAAK,CAAC,CAiBd,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,GAAQ,EAAE,QAAiB,EAAE,EAAE,CAAC,CAClD,cAAK,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,YAC3E,KAAC,IAAI,IAAC,SAAS,EAAC,cAAc,EAAC,IAAI,EAAE,GAAG,EAAE,IAAI,IAAI,UAAU,EAAE,KAAK,EAAE,CAAC,QAAQ,GAAI,GAC9E,CACP,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { IconName } from '../../icons/IconName';
2
+ /**
3
+ * @title Вкладка
4
+ */
5
+ export interface Tab {
6
+ /** @title Имя вкладки */
7
+ title?: string;
8
+ /** @title Описание */
9
+ description?: string;
10
+ icon?: IconName;
11
+ }
12
+ export declare type TabClickHandler = (value: number) => void;
13
+ export interface TabsProps {
14
+ tabs?: Tab[];
15
+ currentTabIndex: number;
16
+ onTabClick: TabClickHandler;
17
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TabsProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabsProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Tabs/TabsProps.ts"],"names":[],"mappings":""}
@@ -1,6 +1,7 @@
1
1
  import { Headline } from '../Headline/Headline';
2
2
  import { LinkDocs } from '../LinkDocs/LinkDocs';
3
3
  import { PictureText } from '../PictureText/PictureText';
4
+ import { ProductBlock } from '../ProductBlock/ProductBlock';
4
5
  import { TextBlock } from '../TextBlock/TextBlock';
5
6
  import { Tile } from '../Tile/Tile';
6
7
  import { ProductTile } from '../ProductTile/ProductTile';
@@ -13,6 +14,7 @@ export const AccordionBlocks = {
13
14
  LinkDocs,
14
15
  TextBlock,
15
16
  PictureText,
17
+ ProductBlock,
16
18
  Tile,
17
19
  ProductTile,
18
20
  Gallery,
@@ -3,6 +3,7 @@ import type { HeadlineContent } from '../Headline/HeadlineContent';
3
3
  import type { LinkDocsContent } from '../LinkDocs/LinkDocsContent';
4
4
  import type { MiniGalleryContent } from '../MiniGallery/MiniGalleryContent';
5
5
  import type { PictureTextContent } from '../PictureText/PictureTextContent';
6
+ import type { ProductBlockContent } from '../ProductBlock/ProductBlockContent';
6
7
  import type { ProductTileContent } from '../ProductTile/ProductTileContent';
7
8
  import type { TextBlockContent } from '../TextBlock/TextBlockContent';
8
9
  import type { TileContent } from '../Tile/TileContent';
@@ -18,6 +19,7 @@ export type AccordionBlockType =
18
19
  | 'PictureText'
19
20
  | 'Tile'
20
21
  | 'ProductTile'
22
+ | 'ProductBlock'
21
23
  | 'Gallery'
22
24
  | 'MiniGallery'
23
25
  | 'LinkList';
@@ -46,6 +48,11 @@ export type TextBlockAccordionBlockDef = TextBlockContent & AccordionBlockDef;
46
48
  */
47
49
  export type PictureTextAccordionBlockDef = PictureTextContent & AccordionBlockDef;
48
50
 
51
+ /**
52
+ * @title Продуктовый блок
53
+ */
54
+ export type ProductBlockAccordionBlockDef = ProductBlockContent & AccordionBlockDef;
55
+
49
56
  /**
50
57
  * @title Плитка
51
58
  */
@@ -85,12 +92,19 @@ export type AccordionBlockProps =
85
92
  | LinkDocsAccordionBlockDef
86
93
  | TextBlockAccordionBlockDef
87
94
  | PictureTextAccordionBlockDef
95
+ | ProductBlockAccordionBlockDef
88
96
  | TileAccordionBlockDef
89
97
  | ProductTileAccordionBlockDef
90
98
  | GalleryAccordionBlockDef
91
99
  | MiniGalleryAccordionBlockDef
92
100
  | LinkListAccordionBlockDef;
93
101
 
102
+ /**
103
+ * @title Количество колонок
104
+ * @enumNames ["1 колонка", "2 колонки"]
105
+ */
106
+ export type ColumnsCount = 1 | 2;
107
+
94
108
  /**
95
109
  * @title Элемент списка
96
110
  */
@@ -107,6 +121,8 @@ export interface AccordionItemCommonProps {
107
121
  * @default false
108
122
  */
109
123
  bordered?: boolean; // TODO: только для мобильной версии
124
+
125
+ columns?: ColumnsCount;
110
126
  }
111
127
 
112
128
  /**
@@ -26,13 +26,13 @@ export const AccordionItem = JSX<AccordionItemProps>(({ label, blocks, bordered,
26
26
  onClick={handleToggle}
27
27
  >
28
28
  <span
29
- className={`text-sm pr-2.5 font-medium ${
29
+ className={`text-m-title-xs pr-2.5 font-medium ${
30
30
  hasContent ? 'group-hover:text-primary-main' : ''
31
31
  }`}
32
32
  >
33
33
  {label}
34
34
  </span>
35
- {hasContent ? <Icon name={icon} width="20" height="20" asSVG /> : null}
35
+ {hasContent ? <Icon name={icon} width="24" height="24" asSVG /> : null}
36
36
  </button>
37
37
  {hasContent ? <AccordionItemInner blocks={blocks} context={context} /> : null}
38
38
  </li>
@@ -21,7 +21,7 @@ const renderBlock = (context: ContentPageContext) => (block: AccordionBlockProps
21
21
 
22
22
  const AccordionBlock: JSXBlock = AccordionBlocks[type];
23
23
  return (
24
- <div className="mb-5 last:mb-0" key={`block_${i}`}>
24
+ <div className="mb-5 last:mb-0 first:mt-2" key={`block_${i}`}>
25
25
  <AccordionBlock context={context} {...block} className="!p-0" />
26
26
  </div>
27
27
  );
@@ -1,29 +1,33 @@
1
1
  import { Accordion } from './Accordion/Accordion';
2
+ import { ComparisonTable } from './ComparisonTable/ComparisonTable';
2
3
  import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
3
4
  import { Footer } from './Footer/Footer';
4
5
  import { Gallery } from './Gallery/Gallery';
5
6
  import { Header } from './Header/Header';
6
7
  import { Headline } from './Headline/Headline';
7
8
  import { LinkDocs } from './LinkDocs/LinkDocs';
9
+ import { LinkList } from './LinkList/LinkList';
8
10
  import { MobileAppTile } from './MobileAppTile/MobileAppTile';
9
11
  import { ProductBlock } from './ProductBlock/ProductBlock';
10
12
  import { ProductGallery } from './ProductGallery/ProductGallery';
11
13
  import { StepsBlock } from './StepsBlock/StepsBlock';
14
+ import { TariffsTable } from './TariffsTable/TariffsTable';
12
15
  import { TextBlock } from './TextBlock/TextBlock';
13
- import { LinkList } from './LinkList/LinkList';
14
16
 
15
17
  export const Blocks = {
16
18
  Accordion,
19
+ ComparisonTable,
17
20
  ExchangeRateTile,
18
21
  Footer,
19
22
  Gallery,
20
23
  Header,
21
24
  Headline,
22
25
  LinkDocs,
26
+ LinkList,
23
27
  MobileAppTile,
24
28
  ProductBlock,
25
29
  ProductGallery,
26
30
  StepsBlock,
31
+ TariffsTable,
27
32
  TextBlock,
28
- LinkList,
29
33
  };
@@ -0,0 +1,68 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { ComparisonTableColumnHeaders } from './ComparisonTableColumnHeaders';
3
+ import { ComparisonTableRows } from './ComparisonTableRows';
4
+ import { useTableArrowScrollControl } from '../../hooks/useTableArrowScrollControl';
5
+ import { COLS_LENGTH_FOR_SCROLL } from './constants';
6
+ import { ContentPageContext } from '../ContentPage/ContentPageContext';
7
+ import { Column, RowHeader } from './ComparisonTableContent';
8
+
9
+ interface ComparisonTableBodyProps {
10
+ context: ContentPageContext;
11
+ columns?: Column[];
12
+ rowHeaders?: RowHeader[];
13
+ isShowAllRow: boolean;
14
+ isColoredFirstColumn: boolean;
15
+ visibleRowLength: number;
16
+ }
17
+
18
+ export const ComparisonTableBody = JSX<ComparisonTableBodyProps>(
19
+ ({ context, columns, rowHeaders, isShowAllRow, visibleRowLength, isColoredFirstColumn }) => {
20
+ const router = context.useRouter();
21
+ const { handlerDecorator } = context;
22
+
23
+ const colHeaders = columns?.map(({ header }) => header || {});
24
+ const colData = columns?.map(({ data }) => data) || [];
25
+ const rowData = rowHeaders
26
+ ?.map((header, i) => ({
27
+ header,
28
+ data: colData.map((col) => col?.[i] || [{}]),
29
+ }))
30
+ .slice(0, isShowAllRow ? rowHeaders.length : visibleRowLength);
31
+
32
+ const [activeCardIndex, setActiveCardIndex] = context.useState(0);
33
+
34
+ const tableArrowScrollProps = useTableArrowScrollControl({
35
+ columnsLength: colData.length,
36
+ colsLengthForScroll: COLS_LENGTH_FOR_SCROLL,
37
+ activeCardIndex,
38
+ setActiveCardIndex,
39
+ });
40
+ const { isScrollAvailable } = tableArrowScrollProps;
41
+
42
+ return (
43
+ <div>
44
+ <div role="table">
45
+ {colHeaders?.length ? (
46
+ <ComparisonTableColumnHeaders
47
+ colHeaders={colHeaders}
48
+ activeCardIndex={activeCardIndex}
49
+ router={router}
50
+ handlerDecorator={handlerDecorator}
51
+ />
52
+ ) : null}
53
+ {rowData?.length ? (
54
+ <ComparisonTableRows
55
+ rowData={rowData}
56
+ activeCardIndex={activeCardIndex}
57
+ isColoredFirstColumn={isColoredFirstColumn}
58
+ {...tableArrowScrollProps}
59
+ />
60
+ ) : null}
61
+ </div>
62
+ {isScrollAvailable ? (
63
+ <div className="absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" />
64
+ ) : null}
65
+ </div>
66
+ );
67
+ },
68
+ );
@@ -0,0 +1,34 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { TableRowContainer } from './TableRowContainer';
3
+ import { COLUMN_WIDTH, FIRST_CELL_CLASSES } from './constants';
4
+ import { TableCarouselContainer } from './TableCarouselContainer';
5
+ import { HeaderCell } from './HeaderCell';
6
+ import { useLink } from '../../hooks/useLink';
7
+ import type { ColumnHeader } from './ComparisonTableContent';
8
+ import type { HandlerDecorator, Router } from '../ContentPage/ContentPageContext';
9
+
10
+ interface ComparisonTableColumnHeadersProps {
11
+ colHeaders: ColumnHeader[];
12
+ activeCardIndex: number;
13
+ router: Router;
14
+ handlerDecorator: HandlerDecorator | undefined;
15
+ }
16
+
17
+ export const ComparisonTableColumnHeaders = JSX<ComparisonTableColumnHeadersProps>(
18
+ ({ colHeaders, activeCardIndex, router, handlerDecorator }) => {
19
+ return (
20
+ <TableRowContainer>
21
+ <div className={FIRST_CELL_CLASSES} role="columnheader" scope="col" />
22
+ <TableCarouselContainer activeCardIndex={activeCardIndex} columnWidth={COLUMN_WIDTH}>
23
+ {colHeaders.map((header, i) => (
24
+ <HeaderCell
25
+ key={String(i)}
26
+ {...header}
27
+ link={header.link && useLink({ router, handlerDecorator }, header.link)}
28
+ />
29
+ ))}
30
+ </TableCarouselContainer>
31
+ </TableRowContainer>
32
+ );
33
+ },
34
+ );
@@ -63,6 +63,6 @@ export interface ComparisonTableContent {
63
63
  isColoredFirstColumn?: boolean;
64
64
  /** @title Отображать заданное количество строк */
65
65
  visibleRowLength?: number;
66
- /** @title Использовать свайпер- */
66
+ /** @title Использовать свайпер (моб.) */
67
67
  useSwiper?: boolean;
68
68
  }
@@ -0,0 +1,32 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { TableRow } from './TableRow';
3
+ import { TableArrowScrollControl } from '../../ui-kit/TableArrowScrollControl/TableArrowScrollControl';
4
+ import type { TableArrowScrollControlProps } from '../../ui-kit/TableArrowScrollControl/TableArrowScrollControlProps';
5
+ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
6
+ import type { CellData } from './ComparisonTableContent';
7
+
8
+ type ComparisonTableRowsProps = TableArrowScrollControlProps & {
9
+ rowData: { header: HeadingContent; data: CellData[][] }[];
10
+ activeCardIndex: number;
11
+ isColoredFirstColumn: boolean;
12
+ };
13
+
14
+ export const ComparisonTableRows = JSX<ComparisonTableRowsProps>(
15
+ ({ rowData, activeCardIndex, isColoredFirstColumn, ...tableArrowScrollProps }) => {
16
+ return (
17
+ <div className="relative">
18
+ {rowData.map((row, i, { length }) => (
19
+ <TableRow
20
+ key={String(i)}
21
+ row={row}
22
+ isFirstRow={i === 0}
23
+ isLastRow={i + 1 === length}
24
+ activeCardIndex={activeCardIndex}
25
+ isColoredFirstColumn={isColoredFirstColumn}
26
+ />
27
+ ))}
28
+ <TableArrowScrollControl {...tableArrowScrollProps} />
29
+ </div>
30
+ );
31
+ },
32
+ );
@@ -21,7 +21,10 @@ export const TableColumn = JSX<TableColumnProps>(
21
21
  const gradientClassName = isFillGradient ? GRADIENT : '';
22
22
  const buttonVersion: ButtonVersion = isFillGradient ? 'secondary' : 'primary';
23
23
  return (
24
- <div className={`border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`}>
24
+ <div
25
+ className={`border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`}
26
+ role="row"
27
+ >
25
28
  <HeaderCell {...header} isFillGradient={isFillGradient} />
26
29
  {columnDataView?.length
27
30
  ? columnDataView.map(({ rowHeader, cell }, i) => (
@@ -53,8 +56,9 @@ const renderButton = ({ header, buttonVersion }) => (
53
56
  );
54
57
 
55
58
  const renderToggleButton = ({ onToggleColumn, isFillGradient, showRow }) => (
56
- <div className="mt-5">
59
+ <div className="mt-5" role="cell">
57
60
  <a
61
+ role="link"
58
62
  onClick={onToggleColumn}
59
63
  className={`font-medium text-m-sm cursor-pointer ${
60
64
  isFillGradient ? 'text-white/80' : 'text-primary-main'