@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,7 +1,11 @@
1
1
  import type { IconName } from '../../icons/IconName';
2
- import type { Picture } from '../../model/Picture';
3
- import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
- import type { CellData, RowHeader } from '../ComparisonTable/ComparisonTableContent';
2
+ import type { CellData } from '../ComparisonTable/ComparisonTableContent';
3
+ import type { ListOrientation } from '../../model/ListOrientation';
4
+ import type { ImageContent } from '../../ui-kit/Img/ImgProps';
5
+ import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
6
+ import type { ListContent } from '../../ui-kit/List/ListContent';
7
+ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
8
+ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
5
9
 
6
10
  /**
7
11
  * @title Ряд
@@ -22,38 +26,42 @@ export interface TariffsTableColumn {
22
26
  /**
23
27
  * @title Список
24
28
  */
25
- export interface TariffsTableList {
29
+ export type TariffsTableList = ListContent & {
26
30
  /** @title Маркеры */
27
31
  isDotted?: boolean;
28
- /** @title Элементы списка */
29
- items?: string[];
30
- }
32
+ };
31
33
 
32
34
  /**
33
35
  * @title Ячейка
34
36
  */
35
- export interface TariffsTableCellData extends CellData {
36
- list?: TariffsTableList;
37
- image?: Picture;
38
- /** @title Кнопки */
39
- buttons?: ButtonWithIconProps[];
40
- }
37
+ export type TariffsTableCellData = CellData &
38
+ ImageContent &
39
+ ButtonContent & {
40
+ list?: TariffsTableList;
41
+ };
41
42
 
42
43
  /**
43
44
  * @title Параметр
44
45
  */
45
- export interface TariffsTableRowHeader extends RowHeader {
46
+ export type TariffsTableRowHeader = HeadingContent & {
46
47
  icon?: IconName;
47
- }
48
+ };
48
49
 
49
50
  /**
50
51
  * @title Таблица тарифов
51
52
  */
52
- export interface TariffsTableContent {
53
- /** @title Заголовок */
54
- title?: string;
55
- /** @title Колонки */
56
- columns?: TariffsTableColumn[];
57
- /** @title Параметры */
58
- rowHeaders?: TariffsTableRowHeader[];
59
- }
53
+ export type TariffsTableContent = HeadingContent &
54
+ DescriptionContent & {
55
+ /** @title Колонки */
56
+ columns?: TariffsTableColumn[];
57
+ /** @title Параметры */
58
+ rowHeaders?: TariffsTableRowHeader[];
59
+ /** @title Направление таблицы (моб.) */
60
+ orientation?: ListOrientation;
61
+ };
62
+
63
+ /** @hidden */
64
+ export type TariffsTableTileCellProps = {
65
+ header: TariffsTableRowHeader;
66
+ data: TariffsTableCellData[];
67
+ };
@@ -0,0 +1,16 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
3
+ import { TariffsTableTileCell } from './TariffsTableTileCell';
4
+ import type { ContentPageContext } from '../ContentPage/ContentPageContext';
5
+ import type { TariffsTableTileCellProps } from './TariffsTableContent';
6
+
7
+ export const TariffsTableHorizontal = JSX<{
8
+ context: ContentPageContext;
9
+ tiles: TariffsTableTileCellProps[];
10
+ }>(({ tiles, context }) => (
11
+ <SwipeListControl context={context}>
12
+ {tiles.map((tile, i) => (
13
+ <TariffsTableTileCell key={String(i)} {...tile} />
14
+ ))}
15
+ </SwipeListControl>
16
+ ));
@@ -0,0 +1,61 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { TableTileHeader } from './TableTileHeader';
3
+ import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
4
+ import { Img } from '../../ui-kit/Img/Img';
5
+ import { Button } from '../../ui-kit/Button/Button';
6
+ import { Icon } from '../../ui-kit/Icon/Icon';
7
+ import type { TariffsTableCellData, TariffsTableTileCellProps } from './TariffsTableContent';
8
+
9
+ export const TariffsTableTileCell = JSX<TariffsTableTileCellProps>(({ header, data }) => {
10
+ return (
11
+ <div className="rounded-md border-main-stroke h-full box-border border p-4">
12
+ <TableTileHeader {...header} />
13
+ {data?.length ? data.map(renderCellInner) : null}
14
+ </div>
15
+ );
16
+ });
17
+
18
+ const renderCellInner = (
19
+ { label, description, list, image, buttons }: TariffsTableCellData,
20
+ i: number,
21
+ ) => (
22
+ <div key={String(i)}>
23
+ {i > 0 && (
24
+ <div className="border-main-divider border border-solid border-t-0 border-x-0 my-2" />
25
+ )}
26
+ {label ? <div className="text-m-sm m-0">{label}</div> : null}
27
+ {description ? (
28
+ <div className="text-m-sm text-secondary-text mt-[3px]">{description}</div>
29
+ ) : null}
30
+ {list?.items?.length ? (
31
+ <div className="flex flex-col justify-between items-start">
32
+ <div role="list">
33
+ {list.items.map((text, idx) => (
34
+ <BlockItem
35
+ className="text-m-sm"
36
+ key={String(idx)}
37
+ text={text}
38
+ version="gray"
39
+ isDotted={list.isDotted ?? true}
40
+ />
41
+ ))}
42
+ </div>
43
+ </div>
44
+ ) : null}
45
+ {image && <Img image={{ ...image, className: 'm-0' }} />}
46
+ {buttons?.length ? (
47
+ <div>
48
+ {buttons.map(({ icon, rounded, ...buttonProps }, idx) => (
49
+ <Button
50
+ className={`mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`}
51
+ key={String(idx)}
52
+ rounded={rounded}
53
+ appendLeft={icon && <Icon name={icon} width="24px" height="24px" asSVG />}
54
+ {...buttonProps}
55
+ aria-label={icon}
56
+ />
57
+ ))}
58
+ </div>
59
+ ) : null}
60
+ </div>
61
+ );
@@ -0,0 +1,11 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { TariffsTableTileCell } from './TariffsTableTileCell';
3
+ import type { TariffsTableTileCellProps } from './TariffsTableContent';
4
+
5
+ export const TariffsTableVertical = JSX<{ tiles: TariffsTableTileCellProps[] }>(({ tiles }) => (
6
+ <div className="flex flex-col gap-3.5">
7
+ {tiles.map((tile, i) => (
8
+ <TariffsTableTileCell key={String(i)} {...tile} />
9
+ ))}
10
+ </div>
11
+ ));
@@ -12,107 +12,119 @@ const image: Picture = {
12
12
  },
13
13
  };
14
14
 
15
+ const items = [
16
+ 'Вклады до 1,4 млн застрахованы',
17
+ 'Вклады до 1,4 млн застрахованы',
18
+ 'Вклады до 1,4 млн застрахованы',
19
+ ];
20
+
15
21
  export const TEXT_BLOCK: TextBlockContent = {
16
22
  title: 'Все карты Россельхозбанка работают',
17
23
  description:
18
24
  "Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу можно заказать карту 'Кредитная карта Своя Union Pay' на сайте и в приложении Россельхозбанка",
19
25
  };
20
26
 
21
- export default (
22
- <div className="container grid grid-cols-12">
23
- <div className="col-span-12">
24
- <div>
25
- <p>Private clients</p>
26
- <div className="flex flex-col gap-[6px]" data-theme="pc">
27
- <TextBlock
28
- context={mobileContext}
29
- {...TEXT_BLOCK}
30
- blockVersion="primary"
31
- iconVersion="small"
32
- />
33
- <TextBlock
34
- context={mobileContext}
35
- {...TEXT_BLOCK}
36
- blockVersion="primary"
37
- iconVersion="big"
38
- image={image}
39
- />
40
- <TextBlock
41
- context={mobileContext}
42
- {...TEXT_BLOCK}
43
- blockVersion="primary"
44
- iconVersion="none"
45
- />
46
- <TextBlock
47
- context={mobileContext}
48
- description="Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу"
49
- blockVersion="primary"
50
- />
51
- <TextBlock
52
- context={mobileContext}
53
- title="Все карты Россельхозбанка работают"
54
- blockVersion="primary"
55
- />
56
- <TextBlock
57
- context={mobileContext}
58
- title="Все карты Россельхозбанка работают"
59
- blockVersion="primary"
60
- iconVersion="small"
61
- items={[
62
- 'Вклады до 1,4 млн застрахованы',
63
- 'Вклады до 1,4 млн застрахованы',
64
- 'Вклады до 1,4 млн застрахованы',
65
- ]}
66
- />
27
+ export default {
28
+ default: (
29
+ <div className="container grid grid-cols-12">
30
+ <div className="col-span-12">
31
+ <div>
32
+ <p>Private clients</p>
33
+ <div className="flex flex-col gap-[6px]" data-theme="pc">
34
+ <TextBlock
35
+ context={mobileContext}
36
+ {...TEXT_BLOCK}
37
+ blockVersion="primary"
38
+ iconVersion="small"
39
+ />
40
+ <TextBlock
41
+ context={mobileContext}
42
+ {...TEXT_BLOCK}
43
+ blockVersion="primary"
44
+ iconVersion="big"
45
+ image={image}
46
+ />
47
+ <TextBlock
48
+ context={mobileContext}
49
+ {...TEXT_BLOCK}
50
+ blockVersion="primary"
51
+ iconVersion="none"
52
+ />
53
+ <TextBlock
54
+ context={mobileContext}
55
+ description="Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу"
56
+ blockVersion="primary"
57
+ />
58
+ <TextBlock
59
+ context={mobileContext}
60
+ title="Все карты Россельхозбанка работают"
61
+ blockVersion="primary"
62
+ />
63
+ <TextBlock
64
+ context={mobileContext}
65
+ title="Все карты Россельхозбанка работают"
66
+ blockVersion="primary"
67
+ iconVersion="small"
68
+ items={items}
69
+ />
70
+ <TextBlock
71
+ context={mobileContext}
72
+ title="Все карты Россельхозбанка работают"
73
+ description="Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу"
74
+ blockVersion="secondary"
75
+ iconVersion="small"
76
+ items={items}
77
+ />
78
+ </div>
67
79
  </div>
68
- </div>
69
- <div>
70
- <p>Business clients</p>
71
- <div className="flex flex-col gap-[6px]" data-theme="bc">
72
- <TextBlock
73
- className="flex flex-col"
74
- context={mobileContext}
75
- {...TEXT_BLOCK}
76
- blockVersion="primary"
77
- iconVersion="small"
78
- />
79
- <TextBlock
80
- context={mobileContext}
81
- {...TEXT_BLOCK}
82
- iconVersion="small"
83
- blockVersion="secondary"
84
- />
85
- <TextBlock
86
- context={mobileContext}
87
- {...TEXT_BLOCK}
88
- iconVersion="small"
89
- blockVersion="secondary-light"
90
- />
80
+ <div>
81
+ <p>Business clients</p>
82
+ <div className="flex flex-col gap-[6px]" data-theme="bc">
83
+ <TextBlock
84
+ className="flex flex-col"
85
+ context={mobileContext}
86
+ {...TEXT_BLOCK}
87
+ blockVersion="primary"
88
+ iconVersion="small"
89
+ />
90
+ <TextBlock
91
+ context={mobileContext}
92
+ {...TEXT_BLOCK}
93
+ iconVersion="small"
94
+ blockVersion="secondary"
95
+ />
96
+ <TextBlock
97
+ context={mobileContext}
98
+ {...TEXT_BLOCK}
99
+ iconVersion="small"
100
+ blockVersion="secondary-light"
101
+ />
102
+ </div>
91
103
  </div>
92
- </div>
93
- <div>
94
- <p>Ecosystem own</p>
95
- <div className="flex flex-col gap-[6px]" data-theme="eo">
96
- <TextBlock
97
- context={mobileContext}
98
- {...TEXT_BLOCK}
99
- iconVersion="small"
100
- blockVersion="primary"
101
- />
102
- <TextBlock
103
- context={mobileContext}
104
- {...TEXT_BLOCK}
105
- iconVersion="small"
106
- blockVersion="secondary"
107
- />
108
- <TextBlock
109
- context={mobileContext}
110
- {...TEXT_BLOCK}
111
- iconVersion="small"
112
- blockVersion="secondary-light"
113
- />
104
+ <div>
105
+ <p>Ecosystem own</p>
106
+ <div className="flex flex-col gap-[6px]" data-theme="eo">
107
+ <TextBlock
108
+ context={mobileContext}
109
+ {...TEXT_BLOCK}
110
+ iconVersion="small"
111
+ blockVersion="primary"
112
+ />
113
+ <TextBlock
114
+ context={mobileContext}
115
+ {...TEXT_BLOCK}
116
+ iconVersion="small"
117
+ blockVersion="secondary"
118
+ />
119
+ <TextBlock
120
+ context={mobileContext}
121
+ {...TEXT_BLOCK}
122
+ iconVersion="small"
123
+ blockVersion="secondary-light"
124
+ />
125
+ </div>
114
126
  </div>
115
127
  </div>
116
128
  </div>
117
- </div>
118
- );
129
+ ),
130
+ };
@@ -18,72 +18,99 @@ export const TEXT_BLOCK: TextBlockContent = {
18
18
  "Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу можно заказать карту 'Кредитная карта Своя Union Pay' на сайте и в приложении Россельхозбанка",
19
19
  };
20
20
 
21
- export default (
22
- <div className="container grid grid-cols-12">
23
- <div className="font-sans overflow-hidden col-span-12">
24
- <div>
25
- <p>Private clients</p>
26
- <div className="flex flex-col gap-6" data-theme="pc">
27
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
28
- <TextBlock
29
- context={context}
30
- {...TEXT_BLOCK}
31
- blockVersion="primary"
32
- iconVersion="big"
33
- image={image}
34
- />
35
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="none" />
36
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
37
- <TextBlock
38
- context={context}
39
- {...TEXT_BLOCK}
40
- blockVersion="secondary"
41
- iconVersion="small"
42
- />
43
- <TextBlock
44
- context={context}
45
- {...TEXT_BLOCK}
46
- blockVersion="secondary-light"
47
- iconVersion="small"
48
- />
21
+ export default {
22
+ default: (
23
+ <div className="container grid grid-cols-12">
24
+ <div className="font-sans overflow-hidden col-span-12">
25
+ <div>
26
+ <p>Private clients</p>
27
+ <div className="flex flex-col gap-6" data-theme="pc">
28
+ <TextBlock
29
+ context={context}
30
+ {...TEXT_BLOCK}
31
+ blockVersion="primary"
32
+ iconVersion="small"
33
+ />
34
+ <TextBlock
35
+ context={context}
36
+ {...TEXT_BLOCK}
37
+ blockVersion="primary"
38
+ iconVersion="big"
39
+ image={image}
40
+ />
41
+ <TextBlock
42
+ context={context}
43
+ {...TEXT_BLOCK}
44
+ blockVersion="primary"
45
+ iconVersion="none"
46
+ />
47
+ <TextBlock
48
+ context={context}
49
+ {...TEXT_BLOCK}
50
+ blockVersion="primary"
51
+ iconVersion="small"
52
+ />
53
+ <TextBlock
54
+ context={context}
55
+ {...TEXT_BLOCK}
56
+ blockVersion="secondary"
57
+ iconVersion="small"
58
+ />
59
+ <TextBlock
60
+ context={context}
61
+ {...TEXT_BLOCK}
62
+ blockVersion="secondary-light"
63
+ iconVersion="small"
64
+ />
65
+ </div>
49
66
  </div>
50
- </div>
51
- <div>
52
- <p>Business clients</p>
53
- <div className="flex flex-col gap-6" data-theme="bc">
54
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
55
- <TextBlock
56
- context={context}
57
- {...TEXT_BLOCK}
58
- blockVersion="secondary"
59
- iconVersion="small"
60
- />
61
- <TextBlock
62
- context={context}
63
- {...TEXT_BLOCK}
64
- blockVersion="secondary-light"
65
- iconVersion="small"
66
- />
67
+ <div>
68
+ <p>Business clients</p>
69
+ <div className="flex flex-col gap-6" data-theme="bc">
70
+ <TextBlock
71
+ context={context}
72
+ {...TEXT_BLOCK}
73
+ blockVersion="primary"
74
+ iconVersion="small"
75
+ />
76
+ <TextBlock
77
+ context={context}
78
+ {...TEXT_BLOCK}
79
+ blockVersion="secondary"
80
+ iconVersion="small"
81
+ />
82
+ <TextBlock
83
+ context={context}
84
+ {...TEXT_BLOCK}
85
+ blockVersion="secondary-light"
86
+ iconVersion="small"
87
+ />
88
+ </div>
67
89
  </div>
68
- </div>
69
- <div>
70
- <p>Ecosystem own</p>
71
- <div className="flex flex-col gap-6" data-theme="eo">
72
- <TextBlock context={context} {...TEXT_BLOCK} blockVersion="primary" iconVersion="small" />
73
- <TextBlock
74
- context={context}
75
- {...TEXT_BLOCK}
76
- blockVersion="secondary"
77
- iconVersion="small"
78
- />
79
- <TextBlock
80
- context={context}
81
- {...TEXT_BLOCK}
82
- blockVersion="secondary-light"
83
- iconVersion="small"
84
- />
90
+ <div>
91
+ <p>Ecosystem own</p>
92
+ <div className="flex flex-col gap-6" data-theme="eo">
93
+ <TextBlock
94
+ context={context}
95
+ {...TEXT_BLOCK}
96
+ blockVersion="primary"
97
+ iconVersion="small"
98
+ />
99
+ <TextBlock
100
+ context={context}
101
+ {...TEXT_BLOCK}
102
+ blockVersion="secondary"
103
+ iconVersion="small"
104
+ />
105
+ <TextBlock
106
+ context={context}
107
+ {...TEXT_BLOCK}
108
+ blockVersion="secondary-light"
109
+ iconVersion="small"
110
+ />
111
+ </div>
85
112
  </div>
86
113
  </div>
87
114
  </div>
88
- </div>
89
- );
115
+ ),
116
+ };
@@ -55,10 +55,10 @@ export const TextBlock = JSX<TextBlockProps>(
55
55
  ) : null}
56
56
  {items?.length ? (
57
57
  <List
58
+ className="mt-1"
58
59
  items={items}
59
60
  isDotted={isDotted}
60
- version="gray"
61
- className="mt-1 text-m-sm text-secondary-text"
61
+ version={blockVersion.indexOf('secondary') !== -1 ? 'secondary' : 'gray'}
62
62
  />
63
63
  ) : null}
64
64
  </div>
@@ -40,27 +40,25 @@ export const TILE: TileContent = {
40
40
  image,
41
41
  };
42
42
 
43
+ export const TILE_PREMIUM: TileContent = {
44
+ title: 'Премиальные продукты',
45
+ description:
46
+ 'Выделенные зоны обслуживания и персональный финансовый консультант. Полный спектр премиальных продуктов, подчеркивающих ваш статус',
47
+ buttons: [
48
+ {
49
+ href: 'https://rshb.ru',
50
+ text: 'Подробнее',
51
+ target: '_blank',
52
+ version: 'secondary',
53
+ },
54
+ ],
55
+ image: image3,
56
+ };
57
+
43
58
  export default {
44
59
  credit: (
45
60
  <div className="container grid grid-cols-12">
46
- <Tile
47
- context={context}
48
- className="col-span-8"
49
- title="Кредиты"
50
- items={[
51
- 'Кредитный лимит до 10 млн ₽',
52
- 'Кредиты наличными на любые цели',
53
- 'Получите деньги без залога и поручителей',
54
- ]}
55
- buttons={[
56
- {
57
- text: 'Подробнее',
58
- href: '/credit-cards',
59
- version: 'secondary',
60
- },
61
- ]}
62
- image={image}
63
- />
61
+ <Tile context={context} className="col-span-8" {...TILE} />
64
62
  </div>
65
63
  ),
66
64
  mortgage: (
@@ -108,23 +106,7 @@ export default {
108
106
  ),
109
107
  premium: (
110
108
  <div className="container grid grid-cols-12">
111
- <Tile
112
- context={context}
113
- className="col-span-6"
114
- title="Премиальные продукты"
115
- description={
116
- 'Выделенные зоны обслуживания и персональный финансовый консультант. Полный спектр премиальных продуктов, подчеркивающих ваш статус'
117
- }
118
- buttons={[
119
- {
120
- href: 'https://rshb.ru',
121
- text: 'Подробнее',
122
- target: '_blank',
123
- version: 'secondary',
124
- },
125
- ]}
126
- image={image3}
127
- />
109
+ <Tile context={context} className="col-span-6" {...TILE_PREMIUM} />
128
110
  </div>
129
111
  ),
130
112
  ecosystem: (
@@ -0,0 +1,22 @@
1
+ import type { TableArrowScrollControlProps } from '../ui-kit/TableArrowScrollControl/TableArrowScrollControlProps';
2
+
3
+ export const useTableArrowScrollControl = ({
4
+ columnsLength,
5
+ colsLengthForScroll,
6
+ activeCardIndex,
7
+ setActiveCardIndex,
8
+ }: {
9
+ columnsLength: number;
10
+ colsLengthForScroll: number;
11
+ activeCardIndex: number;
12
+ setActiveCardIndex: (_: number) => void;
13
+ }): Required<TableArrowScrollControlProps> => {
14
+ const onNextClick = () => setActiveCardIndex(activeCardIndex + 1);
15
+ const onPrevClick = () => setActiveCardIndex(activeCardIndex - 1);
16
+
17
+ const isScrollAvailable = columnsLength > colsLengthForScroll;
18
+ const showNextButton = isScrollAvailable && columnsLength - activeCardIndex > colsLengthForScroll;
19
+ const showPrevButton = Boolean(isScrollAvailable && activeCardIndex > 0);
20
+
21
+ return { onNextClick, onPrevClick, isScrollAvailable, showNextButton, showPrevButton };
22
+ };