@redneckz/wildless-cms-uni-blocks 0.3.12 → 0.3.15

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 (734) hide show
  1. package/README.md +13 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +250 -158
  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.d.ts +1 -0
  18. package/dist/components/Blocks.js +2 -0
  19. package/dist/components/Blocks.js.map +1 -1
  20. package/dist/components/Blocks.mobile.d.ts +3 -1
  21. package/dist/components/Blocks.mobile.js +6 -2
  22. package/dist/components/Blocks.mobile.js.map +1 -1
  23. package/dist/components/ComparisonTable/ComparisonTable.js +7 -25
  24. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  25. package/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  26. package/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
  27. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  28. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  29. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
  30. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  31. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  32. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  33. package/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
  34. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  35. package/dist/components/ComparisonTable/TableColumn.js +2 -2
  36. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  37. package/dist/components/ContentPage/ContentPageHead.js +1 -1
  38. package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  39. package/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  40. package/dist/components/CreditCalculator/CreditCalculator.js +8 -47
  41. package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  42. package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  43. package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  44. package/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
  45. package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  46. package/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
  47. package/dist/components/CreditCalculator/defaultTabs.js +23 -0
  48. package/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
  49. package/dist/components/Footer/Footer.mobile.js +5 -6
  50. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  51. package/dist/components/Footer/FooterContent.d.ts +1 -1
  52. package/dist/components/Gallery/Gallery.mobile.js +6 -6
  53. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  54. package/dist/components/Gallery/GalleryContent.d.ts +6 -0
  55. package/dist/components/Gallery/GalleryInner.js +1 -1
  56. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  57. package/dist/components/Header/Header.mobile.js +3 -2
  58. package/dist/components/Header/Header.mobile.js.map +1 -1
  59. package/dist/components/Header/HeaderBurger.d.ts +2 -2
  60. package/dist/components/Header/HeaderBurger.js +1 -1
  61. package/dist/components/Header/HeaderBurger.js.map +1 -1
  62. package/dist/components/Header/HeaderContent.d.ts +10 -4
  63. package/dist/components/Header/HeaderTop.js +1 -1
  64. package/dist/components/Header/HeaderTop.js.map +1 -1
  65. package/dist/components/Headline/Headline.js +3 -8
  66. package/dist/components/Headline/Headline.js.map +1 -1
  67. package/dist/components/Headline/Headline.mobile.js +3 -2
  68. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  69. package/dist/components/Headline/HeadlineContent.d.ts +2 -2
  70. package/dist/components/Headline/constants.d.ts +4 -0
  71. package/dist/components/Headline/constants.js +13 -0
  72. package/dist/components/Headline/constants.js.map +1 -0
  73. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  74. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  75. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  76. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  77. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  78. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  79. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  80. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  81. package/dist/components/Recommendation/Recommendation.d.ts +5 -0
  82. package/dist/components/Recommendation/Recommendation.js +34 -0
  83. package/dist/components/Recommendation/Recommendation.js.map +1 -0
  84. package/dist/components/Recommendation/RecommendationCard.d.ts +7 -0
  85. package/dist/components/Recommendation/RecommendationCard.js +13 -0
  86. package/dist/components/Recommendation/RecommendationCard.js.map +1 -0
  87. package/dist/components/Recommendation/RecommendationContent.d.ts +14 -0
  88. package/dist/components/Recommendation/RecommendationContent.js +2 -0
  89. package/dist/components/Recommendation/RecommendationContent.js.map +1 -0
  90. package/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
  91. package/dist/components/TariffsTable/TableTileHeader.js +10 -0
  92. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
  93. package/dist/components/TariffsTable/TariffsTable.js +14 -11
  94. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  95. package/dist/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
  96. package/dist/components/TariffsTable/TariffsTable.mobile.js +21 -0
  97. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
  98. package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  99. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  100. package/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  101. package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  102. package/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
  103. package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  104. package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  105. package/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
  106. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  107. package/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  108. package/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
  109. package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  110. package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
  111. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  112. package/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
  113. package/dist/hooks/useTableArrowScrollControl.js +12 -0
  114. package/dist/hooks/useTableArrowScrollControl.js.map +1 -0
  115. package/dist/model/BlockVersion.d.ts +6 -1
  116. package/dist/model/ListOrientation.d.ts +8 -0
  117. package/dist/model/ListOrientation.js +2 -0
  118. package/dist/model/ListOrientation.js.map +1 -0
  119. package/dist/model/SitemapProps.d.ts +11 -0
  120. package/dist/services/sitemap/SitemapProps.d.ts +12 -1
  121. package/dist/ui-kit/Button/Button.d.ts +1 -0
  122. package/dist/ui-kit/Button/Button.js +7 -22
  123. package/dist/ui-kit/Button/Button.js.map +1 -1
  124. package/dist/ui-kit/Button/ButtonInner.js +16 -10
  125. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  126. package/dist/ui-kit/Description/Description.js +1 -1
  127. package/dist/ui-kit/Img/Img.d.ts +2 -1
  128. package/dist/ui-kit/Img/Img.js +2 -2
  129. package/dist/ui-kit/Img/Img.js.map +1 -1
  130. package/dist/ui-kit/Img/Img.mobile.d.ts +6 -2
  131. package/dist/ui-kit/Img/Img.mobile.js +10 -5
  132. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  133. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
  134. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  135. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  136. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  137. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  138. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
  139. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  140. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  141. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  142. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  143. package/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
  144. package/dist/ui-kit/Tabs/Tabs.js +16 -0
  145. package/dist/ui-kit/Tabs/Tabs.js.map +1 -0
  146. package/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
  147. package/dist/ui-kit/Tabs/TabsProps.js +2 -0
  148. package/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
  149. package/lib/common.css +1 -1
  150. package/lib/components/Accordion/Accordion.fixture.d.ts +4 -1
  151. package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -1
  152. package/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  153. package/lib/components/Accordion/AccordionBlocks.js +2 -0
  154. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  155. package/lib/components/Accordion/AccordionContent.d.ts +13 -2
  156. package/lib/components/Accordion/AccordionItem.js +2 -2
  157. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  158. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  159. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  160. package/lib/components/Accordion/AccordionItemInner.js +5 -4
  161. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  162. package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -1
  163. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  164. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +3 -1
  165. package/lib/components/Blocks.d.ts +1 -0
  166. package/lib/components/Blocks.js +2 -0
  167. package/lib/components/Blocks.js.map +1 -1
  168. package/lib/components/Blocks.mobile.d.ts +3 -1
  169. package/lib/components/Blocks.mobile.js +6 -2
  170. package/lib/components/Blocks.mobile.js.map +1 -1
  171. package/lib/components/ComparisonTable/ComparisonTable.js +8 -26
  172. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  173. package/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  174. package/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
  175. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  176. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  177. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
  178. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  179. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  180. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  181. package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
  182. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  183. package/lib/components/ComparisonTable/TableColumn.js +2 -2
  184. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  185. package/lib/components/ContentPage/ContentPageHead.js +1 -1
  186. package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  187. package/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  188. package/lib/components/CreditCalculator/CreditCalculator.fixture.d.ts +3 -1
  189. package/lib/components/CreditCalculator/CreditCalculator.js +8 -47
  190. package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  191. package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  192. package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  193. package/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
  194. package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  195. package/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
  196. package/lib/components/CreditCalculator/defaultTabs.js +21 -0
  197. package/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
  198. package/lib/components/Footer/Footer.fixture.d.ts +3 -1
  199. package/lib/components/Footer/Footer.fixture.mobile.d.ts +3 -1
  200. package/lib/components/Footer/Footer.mobile.js +5 -6
  201. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  202. package/lib/components/Footer/FooterContent.d.ts +1 -1
  203. package/lib/components/Gallery/Gallery.mobile.js +6 -6
  204. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  205. package/lib/components/Gallery/GalleryContent.d.ts +6 -0
  206. package/lib/components/Gallery/GalleryInner.js +1 -1
  207. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  208. package/lib/components/Header/Header.mobile.js +3 -2
  209. package/lib/components/Header/Header.mobile.js.map +1 -1
  210. package/lib/components/Header/HeaderBurger.d.ts +2 -2
  211. package/lib/components/Header/HeaderBurger.js +1 -1
  212. package/lib/components/Header/HeaderBurger.js.map +1 -1
  213. package/lib/components/Header/HeaderContent.d.ts +10 -4
  214. package/lib/components/Header/HeaderTop.js +1 -1
  215. package/lib/components/Header/HeaderTop.js.map +1 -1
  216. package/lib/components/Headline/Headline.fixture.d.ts +4 -2
  217. package/lib/components/Headline/Headline.fixture.mobile.d.ts +2 -3
  218. package/lib/components/Headline/Headline.js +3 -8
  219. package/lib/components/Headline/Headline.js.map +1 -1
  220. package/lib/components/Headline/Headline.mobile.js +3 -2
  221. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  222. package/lib/components/Headline/HeadlineContent.d.ts +2 -2
  223. package/lib/components/Headline/constants.d.ts +4 -0
  224. package/lib/components/Headline/constants.js +11 -0
  225. package/lib/components/Headline/constants.js.map +1 -0
  226. package/lib/components/LikeControl/LikeControl.fixture.d.ts +3 -1
  227. package/lib/components/LinkList/LinkList.fixture.d.ts +3 -1
  228. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +3 -1
  229. package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +3 -1
  230. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  231. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  232. package/lib/components/Navigation/Navigation.fixture.d.ts +3 -1
  233. package/lib/components/Placeholder/Placeholder.fixture.d.ts +3 -1
  234. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +3 -0
  235. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  236. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  237. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  238. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  239. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  240. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +3 -1
  241. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  242. package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -1
  243. package/lib/components/Recommendation/Recommendation.d.ts +5 -0
  244. package/lib/components/Recommendation/Recommendation.fixture.d.ts +6 -0
  245. package/lib/components/Recommendation/Recommendation.js +32 -0
  246. package/lib/components/Recommendation/Recommendation.js.map +1 -0
  247. package/lib/components/Recommendation/RecommendationCard.d.ts +7 -0
  248. package/lib/components/Recommendation/RecommendationCard.js +11 -0
  249. package/lib/components/Recommendation/RecommendationCard.js.map +1 -0
  250. package/lib/components/Recommendation/RecommendationContent.d.ts +14 -0
  251. package/lib/components/Recommendation/RecommendationContent.js +2 -0
  252. package/lib/components/Recommendation/RecommendationContent.js.map +1 -0
  253. package/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
  254. package/lib/components/TariffsTable/TableTileHeader.js +8 -0
  255. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
  256. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +5 -0
  257. package/lib/components/TariffsTable/TariffsTable.js +14 -11
  258. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  259. package/lib/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
  260. package/lib/components/TariffsTable/TariffsTable.mobile.js +19 -0
  261. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
  262. package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  263. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  264. package/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  265. package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  266. package/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
  267. package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  268. package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  269. package/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
  270. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  271. package/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  272. package/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
  273. package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  274. package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
  275. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
  276. package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
  277. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  278. package/lib/components/Tile/Tile.fixture.d.ts +1 -0
  279. package/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
  280. package/lib/hooks/useTableArrowScrollControl.js +9 -0
  281. package/lib/hooks/useTableArrowScrollControl.js.map +1 -0
  282. package/lib/model/BlockVersion.d.ts +6 -1
  283. package/lib/model/ListOrientation.d.ts +8 -0
  284. package/lib/model/ListOrientation.js +2 -0
  285. package/lib/model/ListOrientation.js.map +1 -0
  286. package/lib/model/SitemapProps.d.ts +11 -0
  287. package/lib/services/sitemap/SitemapProps.d.ts +12 -1
  288. package/lib/ui-kit/Button/Button.d.ts +1 -0
  289. package/lib/ui-kit/Button/Button.js +6 -21
  290. package/lib/ui-kit/Button/Button.js.map +1 -1
  291. package/lib/ui-kit/Button/ButtonInner.js +16 -10
  292. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  293. package/lib/ui-kit/Description/Description.js +1 -1
  294. package/lib/ui-kit/Img/Img.d.ts +2 -1
  295. package/lib/ui-kit/Img/Img.js +2 -2
  296. package/lib/ui-kit/Img/Img.js.map +1 -1
  297. package/lib/ui-kit/Img/Img.mobile.d.ts +6 -2
  298. package/lib/ui-kit/Img/Img.mobile.js +10 -5
  299. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  300. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
  301. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  302. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  303. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  304. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  305. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
  306. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  307. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  308. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  309. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  310. package/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
  311. package/lib/ui-kit/Tabs/Tabs.js +14 -0
  312. package/lib/ui-kit/Tabs/Tabs.js.map +1 -0
  313. package/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
  314. package/lib/ui-kit/Tabs/TabsProps.js +2 -0
  315. package/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
  316. package/mobile/bundle/bundle.umd.js +268 -143
  317. package/mobile/bundle/bundle.umd.min.js +1 -1
  318. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
  319. package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
  320. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  321. package/mobile/dist/components/Accordion/AccordionContent.d.ts +13 -2
  322. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  323. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  324. package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -1
  325. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  326. package/mobile/dist/components/Blocks.d.ts +3 -1
  327. package/mobile/dist/components/Blocks.js +6 -2
  328. package/mobile/dist/components/Blocks.js.map +1 -1
  329. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  330. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
  331. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  332. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  333. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
  334. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  335. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  336. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  337. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
  338. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  339. package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -2
  340. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  341. package/mobile/dist/components/ContentPage/ContentPageHead.js +1 -1
  342. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  343. package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  344. package/mobile/dist/components/CreditCalculator/CreditCalculator.js +8 -47
  345. package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  346. package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  347. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  348. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
  349. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  350. package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
  351. package/mobile/dist/components/CreditCalculator/defaultTabs.js +23 -0
  352. package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
  353. package/mobile/dist/components/Footer/Footer.js +5 -6
  354. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  355. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
  356. package/mobile/dist/components/Gallery/Gallery.js +6 -6
  357. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  358. package/mobile/dist/components/Gallery/GalleryContent.d.ts +6 -0
  359. package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
  360. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  361. package/mobile/dist/components/Header/Header.js +3 -2
  362. package/mobile/dist/components/Header/Header.js.map +1 -1
  363. package/mobile/dist/components/Header/HeaderBurger.d.ts +2 -2
  364. package/mobile/dist/components/Header/HeaderBurger.js +1 -1
  365. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  366. package/mobile/dist/components/Header/HeaderContent.d.ts +10 -4
  367. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  368. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  369. package/mobile/dist/components/Headline/Headline.js +3 -2
  370. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  371. package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -2
  372. package/mobile/dist/components/Headline/constants.d.ts +4 -0
  373. package/mobile/dist/components/Headline/constants.js +13 -0
  374. package/mobile/dist/components/Headline/constants.js.map +1 -0
  375. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  376. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  377. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  378. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  379. package/mobile/dist/components/Recommendation/Recommendation.d.ts +5 -0
  380. package/mobile/dist/components/Recommendation/Recommendation.js +34 -0
  381. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -0
  382. package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +7 -0
  383. package/mobile/dist/components/Recommendation/RecommendationCard.js +13 -0
  384. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -0
  385. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +14 -0
  386. package/mobile/dist/components/Recommendation/RecommendationContent.js +2 -0
  387. package/mobile/dist/components/Recommendation/RecommendationContent.js.map +1 -0
  388. package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
  389. package/mobile/dist/components/TariffsTable/TableTileHeader.js +10 -0
  390. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
  391. package/mobile/dist/components/TariffsTable/TariffsTable.js +14 -18
  392. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  393. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
  394. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  395. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  396. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  397. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
  398. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  399. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  400. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
  401. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  402. package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  403. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
  404. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  405. package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
  406. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  407. package/mobile/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
  408. package/mobile/dist/hooks/useTableArrowScrollControl.js +12 -0
  409. package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -0
  410. package/mobile/dist/model/BlockVersion.d.ts +6 -1
  411. package/mobile/dist/model/ListOrientation.d.ts +8 -0
  412. package/mobile/dist/model/ListOrientation.js +2 -0
  413. package/mobile/dist/model/ListOrientation.js.map +1 -0
  414. package/mobile/dist/model/SitemapProps.d.ts +11 -0
  415. package/mobile/dist/services/sitemap/SitemapProps.d.ts +12 -1
  416. package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -10
  417. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  418. package/mobile/dist/ui-kit/Description/Description.js +1 -1
  419. package/mobile/dist/ui-kit/Img/Img.d.ts +6 -2
  420. package/mobile/dist/ui-kit/Img/Img.js +10 -5
  421. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  422. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
  423. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  424. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  425. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  426. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  427. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
  428. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  429. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  430. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  431. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  432. package/mobile/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
  433. package/mobile/dist/ui-kit/Tabs/Tabs.js +16 -0
  434. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -0
  435. package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
  436. package/mobile/dist/ui-kit/Tabs/TabsProps.js +2 -0
  437. package/mobile/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
  438. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  439. package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
  440. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  441. package/mobile/lib/components/Accordion/AccordionContent.d.ts +13 -2
  442. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  443. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  444. package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -1
  445. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  446. package/mobile/lib/components/Blocks.d.ts +3 -1
  447. package/mobile/lib/components/Blocks.js +6 -2
  448. package/mobile/lib/components/Blocks.js.map +1 -1
  449. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  450. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
  451. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
  452. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  453. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
  454. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
  455. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  456. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  457. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
  458. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
  459. package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -2
  460. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  461. package/mobile/lib/components/ContentPage/ContentPageHead.js +1 -1
  462. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  463. package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
  464. package/mobile/lib/components/CreditCalculator/CreditCalculator.js +8 -47
  465. package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  466. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
  467. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
  468. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
  469. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
  470. package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
  471. package/mobile/lib/components/CreditCalculator/defaultTabs.js +21 -0
  472. package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
  473. package/mobile/lib/components/Footer/Footer.js +5 -6
  474. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  475. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
  476. package/mobile/lib/components/Gallery/Gallery.js +6 -6
  477. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  478. package/mobile/lib/components/Gallery/GalleryContent.d.ts +6 -0
  479. package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
  480. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  481. package/mobile/lib/components/Header/Header.js +3 -2
  482. package/mobile/lib/components/Header/Header.js.map +1 -1
  483. package/mobile/lib/components/Header/HeaderBurger.d.ts +2 -2
  484. package/mobile/lib/components/Header/HeaderBurger.js +1 -1
  485. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  486. package/mobile/lib/components/Header/HeaderContent.d.ts +10 -4
  487. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  488. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  489. package/mobile/lib/components/Headline/Headline.js +3 -2
  490. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  491. package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -2
  492. package/mobile/lib/components/Headline/constants.d.ts +4 -0
  493. package/mobile/lib/components/Headline/constants.js +11 -0
  494. package/mobile/lib/components/Headline/constants.js.map +1 -0
  495. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
  496. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  497. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  498. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  499. package/mobile/lib/components/Recommendation/Recommendation.d.ts +5 -0
  500. package/mobile/lib/components/Recommendation/Recommendation.js +32 -0
  501. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -0
  502. package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +7 -0
  503. package/mobile/lib/components/Recommendation/RecommendationCard.js +11 -0
  504. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -0
  505. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +14 -0
  506. package/mobile/lib/components/Recommendation/RecommendationContent.js +2 -0
  507. package/mobile/lib/components/Recommendation/RecommendationContent.js.map +1 -0
  508. package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
  509. package/mobile/lib/components/TariffsTable/TableTileHeader.js +8 -0
  510. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
  511. package/mobile/lib/components/TariffsTable/TariffsTable.js +14 -18
  512. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  513. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
  514. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  515. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
  516. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  517. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
  518. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
  519. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
  520. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
  521. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
  522. package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
  523. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
  524. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
  525. package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
  526. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  527. package/mobile/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
  528. package/mobile/lib/hooks/useTableArrowScrollControl.js +9 -0
  529. package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -0
  530. package/mobile/lib/model/BlockVersion.d.ts +6 -1
  531. package/mobile/lib/model/ListOrientation.d.ts +8 -0
  532. package/mobile/lib/model/ListOrientation.js +2 -0
  533. package/mobile/lib/model/ListOrientation.js.map +1 -0
  534. package/mobile/lib/model/SitemapProps.d.ts +11 -0
  535. package/mobile/lib/services/sitemap/SitemapProps.d.ts +12 -1
  536. package/mobile/lib/ui-kit/Button/ButtonInner.js +16 -10
  537. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  538. package/mobile/lib/ui-kit/Description/Description.js +1 -1
  539. package/mobile/lib/ui-kit/Img/Img.d.ts +6 -2
  540. package/mobile/lib/ui-kit/Img/Img.js +10 -5
  541. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  542. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
  543. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  544. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
  545. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  546. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  547. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
  548. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
  549. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  550. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
  551. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
  552. package/mobile/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
  553. package/mobile/lib/ui-kit/Tabs/Tabs.js +14 -0
  554. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -0
  555. package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
  556. package/mobile/lib/ui-kit/Tabs/TabsProps.js +2 -0
  557. package/mobile/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
  558. package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
  559. package/mobile/src/components/Accordion/AccordionContent.ts +16 -0
  560. package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
  561. package/mobile/src/components/Accordion/AccordionItemInner.tsx +1 -1
  562. package/mobile/src/components/Blocks.ts +6 -2
  563. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
  564. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
  565. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
  566. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
  567. package/mobile/src/components/ComparisonTable/TableColumn.tsx +6 -2
  568. package/mobile/src/components/ContentPage/ContentPage.page.json +74 -0
  569. package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -1
  570. package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +19 -81
  571. package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
  572. package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
  573. package/mobile/src/components/CreditCalculator/defaultTabs.ts +22 -0
  574. package/mobile/src/components/Footer/Footer.tsx +9 -9
  575. package/mobile/src/components/Footer/FooterContent.ts +1 -1
  576. package/mobile/src/components/Gallery/Gallery.example.json +4 -0
  577. package/mobile/src/components/Gallery/Gallery.tsx +19 -9
  578. package/mobile/src/components/Gallery/GalleryContent.ts +6 -0
  579. package/mobile/src/components/Gallery/GalleryInner.tsx +2 -0
  580. package/mobile/src/components/Header/Header.tsx +5 -6
  581. package/mobile/src/components/Header/HeaderBurger.tsx +11 -6
  582. package/mobile/src/components/Header/HeaderContent.ts +12 -4
  583. package/mobile/src/components/Header/HeaderTop.tsx +5 -1
  584. package/mobile/src/components/Headline/Headline.example.json +1 -1
  585. package/mobile/src/components/Headline/Headline.tsx +20 -4
  586. package/mobile/src/components/Headline/HeadlineContent.ts +2 -3
  587. package/mobile/src/components/Headline/constants.ts +14 -0
  588. package/mobile/src/components/MiniGallery/MiniGallery.example.json +8 -4
  589. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -0
  590. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -1
  591. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -1
  592. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  593. package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
  594. package/mobile/src/components/Recommendation/Recommendation.example.json +38 -0
  595. package/mobile/src/components/Recommendation/Recommendation.tsx +105 -0
  596. package/mobile/src/components/Recommendation/RecommendationCard.tsx +33 -0
  597. package/mobile/src/components/Recommendation/RecommendationContent.ts +19 -0
  598. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +15 -0
  599. package/mobile/src/components/TariffsTable/TariffsTable.example.json +7 -1
  600. package/mobile/src/components/TariffsTable/TariffsTable.tsx +41 -65
  601. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
  602. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +31 -23
  603. package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
  604. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
  605. package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
  606. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
  607. package/mobile/src/hooks/useTableArrowScrollControl.ts +22 -0
  608. package/mobile/src/model/BlockVersion.ts +7 -1
  609. package/mobile/src/model/ListOrientation.ts +8 -0
  610. package/mobile/src/model/SitemapProps.ts +12 -0
  611. package/mobile/src/services/sitemap/SitemapProps.ts +13 -1
  612. package/mobile/src/ui-kit/Button/ButtonInner.tsx +25 -21
  613. package/mobile/src/ui-kit/Description/Description.tsx +1 -1
  614. package/mobile/src/ui-kit/Img/Img.tsx +29 -15
  615. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
  616. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
  617. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
  618. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
  619. package/mobile/src/ui-kit/Tabs/Tabs.tsx +46 -0
  620. package/mobile/src/ui-kit/Tabs/TabsProps.ts +20 -0
  621. package/package.json +12 -2
  622. package/src/components/Accordion/Accordion.fixture.mobile.tsx +7 -5
  623. package/src/components/Accordion/Accordion.fixture.tsx +80 -14
  624. package/src/components/Accordion/AccordionBlocks.tsx +2 -0
  625. package/src/components/Accordion/AccordionContent.ts +16 -0
  626. package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
  627. package/src/components/Accordion/AccordionItem.tsx +4 -2
  628. package/src/components/Accordion/AccordionItemInner.mobile.tsx +1 -1
  629. package/src/components/Accordion/AccordionItemInner.tsx +21 -16
  630. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +36 -33
  631. package/src/components/Blocks.mobile.ts +6 -2
  632. package/src/components/Blocks.ts +2 -0
  633. package/src/components/ComparisonTable/ComparisonTable.tsx +38 -99
  634. package/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
  635. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
  636. package/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
  637. package/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
  638. package/src/components/ComparisonTable/TableColumn.tsx +6 -2
  639. package/src/components/ContentPage/ContentPage.page.json +74 -0
  640. package/src/components/ContentPage/ContentPageHead.tsx +1 -1
  641. package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +30 -10
  642. package/src/components/CreditCalculator/CreditCalculator.tsx +19 -81
  643. package/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
  644. package/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
  645. package/src/components/CreditCalculator/defaultTabs.ts +22 -0
  646. package/src/components/Footer/Footer.fixture.mobile.tsx +88 -281
  647. package/src/components/Footer/Footer.fixture.tsx +143 -141
  648. package/src/components/Footer/Footer.mobile.tsx +9 -9
  649. package/src/components/Footer/FooterContent.ts +1 -1
  650. package/src/components/Gallery/Gallery.example.json +4 -0
  651. package/src/components/Gallery/Gallery.fixture.mobile.tsx +9 -4
  652. package/src/components/Gallery/Gallery.mobile.tsx +19 -9
  653. package/src/components/Gallery/GalleryContent.ts +6 -0
  654. package/src/components/Gallery/GalleryInner.tsx +2 -0
  655. package/src/components/Header/Header.fixture.mobile.tsx +1 -203
  656. package/src/components/Header/Header.mobile.tsx +5 -6
  657. package/src/components/Header/HeaderBurger.tsx +11 -6
  658. package/src/components/Header/HeaderContent.ts +12 -4
  659. package/src/components/Header/HeaderTop.tsx +5 -1
  660. package/src/components/Headline/Headline.example.json +1 -1
  661. package/src/components/Headline/Headline.fixture.mobile.tsx +39 -15
  662. package/src/components/Headline/Headline.fixture.tsx +20 -17
  663. package/src/components/Headline/Headline.mobile.tsx +20 -4
  664. package/src/components/Headline/Headline.tsx +9 -12
  665. package/src/components/Headline/HeadlineContent.ts +2 -3
  666. package/src/components/Headline/constants.ts +14 -0
  667. package/src/components/LikeControl/LikeControl.fixture.tsx +7 -5
  668. package/src/components/LinkList/LinkList.fixture.tsx +8 -10
  669. package/src/components/MiniGallery/MiniGallery.example.json +8 -4
  670. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +11 -9
  671. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +32 -30
  672. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  673. package/src/components/Navigation/Navigation.fixture.tsx +26 -24
  674. package/src/components/Placeholder/Placeholder.fixture.tsx +7 -5
  675. package/src/components/ProductBlock/ProductBlock.fixture.tsx +27 -11
  676. package/src/components/ProductBlock/ProductBlockContent.ts +1 -0
  677. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +3 -1
  678. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  679. package/src/components/ProductGallery/ProductGallery.example.json +2 -1
  680. package/src/components/ProductGallery/ProductGallery.fixture.tsx +104 -102
  681. package/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  682. package/src/components/ProductTile/ProductTile.example.json +1 -0
  683. package/src/components/ProductTile/ProductTile.fixture.tsx +50 -117
  684. package/src/components/Recommendation/Recommendation.example.json +38 -0
  685. package/src/components/Recommendation/Recommendation.fixture.tsx +73 -0
  686. package/src/components/Recommendation/Recommendation.tsx +105 -0
  687. package/src/components/Recommendation/RecommendationCard.tsx +33 -0
  688. package/src/components/Recommendation/RecommendationContent.ts +19 -0
  689. package/src/components/TariffsTable/TableTileHeader.tsx +15 -0
  690. package/src/components/TariffsTable/TariffsTable.example.json +7 -1
  691. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +164 -0
  692. package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -1
  693. package/src/components/TariffsTable/TariffsTable.mobile.tsx +54 -0
  694. package/src/components/TariffsTable/TariffsTable.tsx +51 -47
  695. package/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
  696. package/src/components/TariffsTable/TariffsTableContent.ts +31 -23
  697. package/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
  698. package/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
  699. package/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
  700. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +105 -93
  701. package/src/components/TextBlock/TextBlock.fixture.tsx +91 -64
  702. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
  703. package/src/components/Tile/Tile.fixture.tsx +17 -35
  704. package/src/hooks/useTableArrowScrollControl.ts +22 -0
  705. package/src/model/BlockVersion.ts +7 -1
  706. package/src/model/ListOrientation.ts +8 -0
  707. package/src/model/SitemapProps.ts +12 -0
  708. package/src/services/sitemap/SitemapProps.ts +13 -1
  709. package/src/ui-kit/Button/Button.tsx +32 -54
  710. package/src/ui-kit/Button/ButtonInner.tsx +25 -21
  711. package/src/ui-kit/Description/Description.tsx +1 -1
  712. package/src/ui-kit/Img/Img.mobile.tsx +29 -15
  713. package/src/ui-kit/Img/Img.tsx +27 -24
  714. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
  715. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
  716. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
  717. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
  718. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
  719. package/src/ui-kit/Tabs/Tabs.tsx +46 -0
  720. package/src/ui-kit/Tabs/TabsProps.ts +20 -0
  721. package/dist/hooks/useComparisonTableScroll.d.ts +0 -12
  722. package/dist/hooks/useComparisonTableScroll.js +0 -12
  723. package/dist/hooks/useComparisonTableScroll.js.map +0 -1
  724. package/lib/hooks/useComparisonTableScroll.d.ts +0 -12
  725. package/lib/hooks/useComparisonTableScroll.js +0 -9
  726. package/lib/hooks/useComparisonTableScroll.js.map +0 -1
  727. package/mobile/dist/hooks/useComparisonTableScroll.d.ts +0 -12
  728. package/mobile/dist/hooks/useComparisonTableScroll.js +0 -12
  729. package/mobile/dist/hooks/useComparisonTableScroll.js.map +0 -1
  730. package/mobile/lib/hooks/useComparisonTableScroll.d.ts +0 -12
  731. package/mobile/lib/hooks/useComparisonTableScroll.js +0 -9
  732. package/mobile/lib/hooks/useComparisonTableScroll.js.map +0 -1
  733. package/mobile/src/hooks/useComparisonTableScroll.ts +0 -21
  734. package/src/hooks/useComparisonTableScroll.ts +0 -21
@@ -16,86 +16,64 @@ const buttonDisabledStyleMap: Record<ButtonVersion, string> = {
16
16
  link: '',
17
17
  };
18
18
 
19
- const styleButton = 'text-center font-sans select-none';
19
+ const buttonStyle = 'text-center font-sans select-none';
20
20
 
21
21
  export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {}
22
22
 
23
- export const Button = JSX<ButtonCommonProps>(
23
+ export const Button = JSX<ButtonCommonProps>((props) => {
24
+ const { text, aboveText, appendLeft, children, disabled, rounded } = props;
25
+
26
+ const buttonInner = children ?? (
27
+ <ButtonInner text={text} aboveText={aboveText} appendLeft={appendLeft} rounded={rounded} />
28
+ );
29
+
30
+ return disabled ? (
31
+ <DisabledButton {...props}>{buttonInner}</DisabledButton>
32
+ ) : (
33
+ <RegularButton {...props}>{buttonInner}</RegularButton>
34
+ );
35
+ });
36
+
37
+ export const RegularButton = JSX<ButtonCommonProps>(
24
38
  ({
25
39
  className,
26
- text,
27
- aboveText,
28
- appendLeft,
40
+ ariaLabel,
41
+ version = 'none',
42
+ rounded,
29
43
  href,
30
44
  target,
31
- onClick,
32
45
  children,
33
- disabled,
34
- rounded,
35
- version = 'none',
36
- ariaLabel,
46
+ onClick,
37
47
  ...rest
38
- }) => {
39
- const buttonInner = children ?? (
40
- <ButtonInner text={text} aboveText={aboveText} appendLeft={appendLeft} rounded={rounded} />
41
- );
42
-
43
- return disabled
44
- ? renderDisabledButton({ buttonInner, ariaLabel, className, version, rounded })
45
- : renderButton({
46
- buttonInner,
47
- ariaLabel,
48
- className,
49
- version,
50
- rounded,
51
- href,
52
- target,
53
- onClick,
54
- rest,
55
- });
56
- },
57
- );
58
-
59
- function renderButton({
60
- className,
61
- buttonInner,
62
- ariaLabel,
63
- version,
64
- rounded,
65
- href,
66
- target,
67
- onClick,
68
- rest,
69
- }) {
70
- return (
48
+ }) => (
71
49
  <a
72
- className={`${styleButton} inline-block cursor-pointer no-underline ${
50
+ className={`${buttonStyle} inline-block cursor-pointer no-underline ${
73
51
  buttonStyleMap[version] || ''
74
52
  } ${rounded ? 'rounded-full' : 'rounded-md'} ${className || ''}`}
75
53
  href={href}
76
54
  target={target}
77
55
  onClick={onClick}
78
56
  aria-label={ariaLabel}
79
- role={!href ? 'button' : 'link'}
57
+ role={href ? 'link' : 'button'}
80
58
  {...rest}
81
59
  >
82
- {buttonInner}
60
+ {children}
83
61
  </a>
84
- );
85
- }
62
+ ),
63
+ );
86
64
 
87
- function renderDisabledButton({ className, buttonInner, ariaLabel, version, rounded }) {
88
- return (
65
+ const DisabledButton = JSX<ButtonCommonProps>(
66
+ ({ className, children, ariaLabel, version = 'none', rounded }) => (
89
67
  <div
90
68
  role="button"
91
69
  aria-disabled="true"
92
70
  aria-label={ariaLabel}
93
71
  tabIndex="-1"
94
- className={`inline-block ${styleButton} ${buttonDisabledStyleMap[version] || ''} ${
72
+ className={`inline-block ${buttonStyle} ${buttonDisabledStyleMap[version] || ''} ${
95
73
  rounded ? 'rounded-full' : 'rounded-md'
96
74
  } ${className || ''}`}
97
75
  >
98
- {buttonInner}
76
+ {children}
99
77
  </div>
100
- );
101
- }
78
+ ),
79
+ );
@@ -6,32 +6,36 @@ interface ButtonInnerProps extends ButtonWithIconProps {
6
6
  version?: ButtonVersion;
7
7
  }
8
8
 
9
- export const ButtonInner = JSX<ButtonInnerProps>(
10
- ({ text, aboveText, appendLeft, rounded, version }) => {
11
- const withoutText = !text && !aboveText && Boolean(appendLeft);
12
-
13
- const buttonInnerClasses =
14
- version !== 'link'
15
- ? `flex items-center justify-center
16
- ${withoutText ? 'h-12 w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`} ${
17
- rounded ? 'rounded-full' : ''
18
- }`
19
- : null;
20
-
21
- return renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text });
22
- },
23
- );
24
-
25
- function renderButtonInner({ buttonInnerClasses, appendLeft, withoutText, aboveText, text }) {
9
+ export const ButtonInner = JSX<ButtonInnerProps>((props) => {
10
+ const { text, aboveText, appendLeft } = props;
26
11
  return (
27
- <div className={buttonInnerClasses}>
12
+ <div className={getButtonStyle(props)}>
28
13
  {appendLeft ? appendLeft : null}
29
- {withoutText ? null : (
14
+ {isWithText(props) ? (
30
15
  <div>
31
16
  <div className="text-m-2xs text-left">{aboveText}</div>
32
17
  <div className="text-m-button font-medium text-left">{text}</div>
33
18
  </div>
34
- )}
19
+ ) : null}
35
20
  </div>
36
21
  );
37
- }
22
+ });
23
+
24
+ const getButtonStyle = (props: ButtonInnerProps) => {
25
+ const { version, aboveText, rounded } = props;
26
+
27
+ if (version === 'link') {
28
+ return '';
29
+ }
30
+
31
+ const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-3.5'}`;
32
+
33
+ return [
34
+ 'flex items-center justify-center',
35
+ isWithText(props) ? withTextStyle : 'h-12 w-12',
36
+ rounded ? 'rounded-full' : '',
37
+ ].join(' ');
38
+ };
39
+
40
+ const isWithText = ({ text, aboveText, appendLeft }: ButtonInnerProps) =>
41
+ Boolean(text || aboveText || !appendLeft);
@@ -8,5 +8,5 @@ export interface DescriptionProps extends DescriptionContent {
8
8
  export const Description = JSX<DescriptionProps>((props) => {
9
9
  const { className = '', description } = props;
10
10
 
11
- return <div className={`font-normal text-m-md ${className}`}>{description}</div>;
11
+ return <div className={`font-normal text-base ${className}`}>{description}</div>;
12
12
  });
@@ -1,15 +1,16 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { ImgSource } from '../../model/Picture';
3
- import { ImageProps } from './ImgProps';
2
+ import type { Picture, ImgSource } from '../../model/Picture';
4
3
 
5
- export const Img = JSX<ImageProps>(({ className = '', image }) => {
4
+ export interface ImageProps {
5
+ className?: string;
6
+ imageClassName?: string;
7
+ image: Picture;
8
+ }
9
+
10
+ export const Img = JSX<ImageProps>(({ className = '', image, imageClassName }) => {
6
11
  if (!image) {
7
12
  return null;
8
13
  }
9
- const style = {
10
- width: image.size?.width ? `${image.size?.width}px` : '100%',
11
- height: image.size?.height ? `${image.size?.height}px` : '100%',
12
- };
13
14
 
14
15
  return (
15
16
  <picture className={className}>
@@ -18,18 +19,31 @@ export const Img = JSX<ImageProps>(({ className = '', image }) => {
18
19
  <source key={`${index}_${src}`} srcSet={src} type={formatToMimeType(format)} />
19
20
  ))
20
21
  : null}
21
- <img
22
- src={image.src}
23
- className={`m-auto ${image.className || ''}`}
24
- alt={image.alt || image.title}
25
- title={image.title}
26
- style={style}
27
- {...image.size}
28
- />
22
+ {renderImg(image, imageClassName)}
29
23
  </picture>
30
24
  );
31
25
  });
32
26
 
27
+ const renderImg = (image, imageClassName = '') => {
28
+ const style = {
29
+ width: image.size?.width ? `${image.size?.width}px` : '100%',
30
+ height: image.size?.height ? `${image.size?.height}px` : '100%',
31
+ };
32
+ const title = image.title || '';
33
+ const alt = image.alt || image.title;
34
+
35
+ return (
36
+ <img
37
+ src={image.src}
38
+ className={`m-auto ${imageClassName}`}
39
+ alt={alt}
40
+ title={title}
41
+ style={style}
42
+ {...image.size}
43
+ />
44
+ );
45
+ };
46
+
33
47
  export function formatToMimeType(format: ImgSource['format']): string | undefined {
34
48
  return format ? `image/${String(format)}` : undefined;
35
49
  }
@@ -1,35 +1,38 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { ImgSource, Picture } from '../../model/Picture';
2
+ import type { Picture, ImgSource } from '../../model/Picture';
3
3
 
4
4
  export interface ImageProps {
5
5
  className?: string;
6
+ imageClassName?: string;
6
7
  image: Picture;
7
8
  }
8
9
 
9
- export const Img = JSX<ImageProps>(({ className = '', image: { size, ...image } }) => {
10
- const style = {
11
- width: size?.width ? `${size?.width}px` : '100%',
12
- height: size?.height ? `${size?.height}px` : '100%',
13
- };
10
+ export const Img = JSX<ImageProps>(
11
+ ({ className = '', image: { size, ...image }, imageClassName = '' }) => {
12
+ const style = {
13
+ width: size?.width ? `${size?.width}px` : '100%',
14
+ height: size?.height ? `${size?.height}px` : '100%',
15
+ };
14
16
 
15
- return (
16
- <picture className={`flex-none ${className}`}>
17
- {image.sources?.length
18
- ? image.sources.map(({ src, format }, index) => (
19
- <source key={`${index}_${src}`} srcSet={src} type={formatToMimeType(format)} />
20
- ))
21
- : null}
22
- <img
23
- className={image.className || ''}
24
- src={image.src}
25
- alt={image.alt || image.title}
26
- title={image.title}
27
- style={style}
28
- {...size}
29
- />
30
- </picture>
31
- );
32
- });
17
+ return (
18
+ <picture className={`flex-none ${className}`}>
19
+ {image.sources?.length
20
+ ? image.sources.map(({ src, format }, index) => (
21
+ <source key={`${index}_${src}`} srcSet={src} type={formatToMimeType(format)} />
22
+ ))
23
+ : null}
24
+ <img
25
+ className={imageClassName}
26
+ src={image.src}
27
+ alt={image.alt || image.title}
28
+ title={image.title}
29
+ style={style}
30
+ {...size}
31
+ />
32
+ </picture>
33
+ );
34
+ },
35
+ );
33
36
 
34
37
  export function formatToMimeType(format: ImgSource['format']): string | undefined {
35
38
  return format ? `image/${String(format)}` : undefined;
@@ -9,7 +9,7 @@ const children = new Array(4).fill(0).map((_, i) => (
9
9
 
10
10
  export default {
11
11
  default: (
12
- <div className="container px-4 py-5 grid-cols-12 bg-white">
12
+ <div className="px-4 py-5 bg-white">
13
13
  <SwipeListControl context={mobileContext}>{children}</SwipeListControl>
14
14
  </div>
15
15
  ),
@@ -2,9 +2,9 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
3
3
  import { SwipeListControlDots } from './SwipeListControlDots';
4
4
  import { SwipeListControlList } from './SwipeListControlList';
5
- import type { SwipeListControlProps } from './SwipeListControlProps';
6
5
  import { getIndexParts } from './utils/getIndexParts';
7
6
  import { getScrollPoints } from './utils/getScrollPoints';
7
+ import type { SwipeListControlProps } from './SwipeListControlProps';
8
8
 
9
9
  export const SwipeListControl = JSX<SwipeListControlProps>(
10
10
  ({
@@ -19,6 +19,13 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
19
19
  const [activeIndex, setActiveIndex] = context.useState<number>(0);
20
20
  const [indexFraction, setIndexFraction] = context.useState<number>(0);
21
21
 
22
+ const dotsProps = {
23
+ activeIndex,
24
+ indexFraction,
25
+ showDots,
26
+ children,
27
+ };
28
+
22
29
  const handleScroll = (e: UIEvent) => {
23
30
  const { scrollLeft, clientWidth, childElementCount, scrollWidth, children } =
24
31
  e.currentTarget as HTMLElement;
@@ -45,26 +52,16 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
45
52
 
46
53
  return (
47
54
  <div className={className}>
48
- {renderSwipeList({ gap, padding, activeIndex, handleScroll, children })}
49
- {renderSwipelistDots({ activeIndex, indexFraction, showDots, children })}
55
+ <SwipeListControlList
56
+ gap={gap}
57
+ padding={padding}
58
+ activeIndex={activeIndex}
59
+ onScroll={handleScroll}
60
+ >
61
+ {children}
62
+ </SwipeListControlList>
63
+ <SwipeListControlDots {...dotsProps} />
50
64
  </div>
51
65
  );
52
66
  },
53
67
  );
54
-
55
- const renderSwipeList = ({ gap, padding, activeIndex, handleScroll, children }) => (
56
- <SwipeListControlList
57
- gap={gap}
58
- padding={padding}
59
- activeIndex={activeIndex}
60
- onScroll={handleScroll}
61
- >
62
- {children}
63
- </SwipeListControlList>
64
- );
65
-
66
- const renderSwipelistDots = ({ activeIndex, indexFraction, showDots, children }) => (
67
- <SwipeListControlDots activeIndex={activeIndex} indexFraction={indexFraction} showDots={showDots}>
68
- {children}
69
- </SwipeListControlDots>
70
- );
@@ -14,11 +14,23 @@ export interface SwipeListControlDotsProps {
14
14
 
15
15
  export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
16
16
  ({ children, activeIndex, indexFraction, showDots }) => {
17
+ const handleClick = (idx: number) => (e: Event) => {
18
+ if (idx === activeIndex) {
19
+ return;
20
+ }
21
+
22
+ const contentContainer = (e.currentTarget as HTMLElement).parentElement
23
+ ?.previousElementSibling;
24
+
25
+ contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth' });
26
+ };
27
+
17
28
  return showDots && children?.length ? (
18
29
  <div className="flex gap-2 mx-auto mt-5 w-fit">
19
30
  {children?.map((_, idx) => (
20
31
  <div
21
32
  key={String(idx)}
33
+ onClick={handleClick(idx)}
22
34
  className={`${DOT_STYLES}`}
23
35
  style={getDotStyles(idx, activeIndex, indexFraction)}
24
36
  aria-hidden
@@ -0,0 +1,27 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { ArrowButton } from '../Button/ArrowButton';
3
+ import type { TableArrowScrollControlProps } from './TableArrowScrollControlProps';
4
+
5
+ export const TableArrowScrollControl = JSX<TableArrowScrollControlProps>(
6
+ ({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
7
+ return isScrollAvailable ? (
8
+ <div>
9
+ <div className="absolute top-7 right-7 z-10">
10
+ <ArrowButton
11
+ onClick={onNextClick}
12
+ disabled={!showNextButton}
13
+ ariaLabel="Пролистать вправо"
14
+ data-block-control="scroll-right"
15
+ />
16
+ <ArrowButton
17
+ className="mt-4 rotate-180"
18
+ onClick={onPrevClick}
19
+ disabled={!showPrevButton}
20
+ ariaLabel="Пролистать влево"
21
+ data-block-control="scroll-left"
22
+ />
23
+ </div>
24
+ </div>
25
+ ) : null;
26
+ },
27
+ );
@@ -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,46 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { Icon } from '../../ui-kit/Icon/Icon';
3
+ import type { Tab, TabClickHandler, TabsProps } from './TabsProps';
4
+
5
+ const TAB_STYLE = 'px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke';
6
+ const ACTIVE_TAB_STYLE = 'px-2 h-16 pt-4 pb-2 text-white bg-primary-main';
7
+
8
+ export const Tabs = JSX<TabsProps>(({ tabs, currentTabIndex, onTabClick }) => {
9
+ return (
10
+ <div className="flex items-end border-b border-main-stroke" role="tablist">
11
+ {tabs?.map(renderTab(currentTabIndex, onTabClick))}
12
+ </div>
13
+ );
14
+ });
15
+
16
+ const renderTab =
17
+ (currentTabIndex: number, onTabClick: TabClickHandler) => (tab: Tab, index: number) => {
18
+ const isActive = currentTabIndex === index;
19
+ return (
20
+ <div
21
+ key={String(index)}
22
+ className={`flex h-full flex-1 cursor-pointer mr-2 last:mr-0 ${
23
+ isActive ? ACTIVE_TAB_STYLE : TAB_STYLE
24
+ }`}
25
+ role="tab"
26
+ onClick={() => onTabClick(index)}
27
+ aria-selected={String(isActive)}
28
+ >
29
+ {tab?.icon ? renderIcon(tab, isActive) : null}
30
+ <div>
31
+ {tab?.title ? <h3 className="font-medium m-0 text-base">{tab?.title}</h3> : null}
32
+ {tab?.description ? (
33
+ <span className={`font-light text-xs ${isActive ? '' : 'text-secondary-text'}`}>
34
+ {tab?.description}
35
+ </span>
36
+ ) : null}
37
+ </div>
38
+ </div>
39
+ );
40
+ };
41
+
42
+ const renderIcon = (tab: Tab, isActive: boolean) => (
43
+ <div className="h-full mt-1" style={isActive ? { filter: 'invert(1)' } : null}>
44
+ <Icon className="w-5 h-5 mr-3" name={tab?.icon || 'CardIcon'} asSVG={!isActive} />
45
+ </div>
46
+ );
@@ -0,0 +1,20 @@
1
+ import type { IconName } from '../../icons/IconName';
2
+
3
+ /**
4
+ * @title Вкладка
5
+ */
6
+ export interface Tab {
7
+ /** @title Имя вкладки */
8
+ title?: string;
9
+ /** @title Описание */
10
+ description?: string;
11
+ icon?: IconName;
12
+ }
13
+
14
+ export type TabClickHandler = (value: number) => void;
15
+
16
+ export interface TabsProps {
17
+ tabs?: Tab[];
18
+ currentTabIndex: number;
19
+ onTabClick: TabClickHandler;
20
+ }
@@ -1,12 +0,0 @@
1
- export declare const useComparisonTableScroll: <ColData>({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }: {
2
- colData: ColData[];
3
- colsLengthForScroll: number;
4
- activeCardIndex: number;
5
- setActiveCardIndex: (_: number) => void;
6
- }) => {
7
- nextClick: () => void;
8
- prevClick: () => void;
9
- isScrollAvailable: boolean | 0;
10
- showNextButton: boolean | 0;
11
- showPrevButton: boolean | 0;
12
- };
@@ -1,12 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.useComparisonTableScroll = void 0;
3
- const useComparisonTableScroll = ({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }) => {
4
- const nextClick = () => setActiveCardIndex(activeCardIndex + 1);
5
- const prevClick = () => setActiveCardIndex(activeCardIndex - 1);
6
- const isScrollAvailable = colData?.length && colData.length > colsLengthForScroll;
7
- const showNextButton = isScrollAvailable && colData?.length - activeCardIndex > colsLengthForScroll;
8
- const showPrevButton = isScrollAvailable && activeCardIndex > 0;
9
- return { nextClick, prevClick, isScrollAvailable, showNextButton, showPrevButton };
10
- };
11
- exports.useComparisonTableScroll = useComparisonTableScroll;
12
- //# sourceMappingURL=useComparisonTableScroll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useComparisonTableScroll.js","sourceRoot":"","sources":["../../src/hooks/useComparisonTableScroll.ts"],"names":[],"mappings":";;AAAO,MAAM,wBAAwB,GAAG,CAAU,EAChD,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,kBAAkB,GAMnB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAEhE,MAAM,iBAAiB,GAAG,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,MAAM,GAAG,mBAAmB,CAAC;IAClF,MAAM,cAAc,GAClB,iBAAiB,IAAI,OAAO,EAAE,MAAM,GAAG,eAAe,GAAG,mBAAmB,CAAC;IAC/E,MAAM,cAAc,GAAG,iBAAiB,IAAI,eAAe,GAAG,CAAC,CAAC;IAEhE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC;AApBW,QAAA,wBAAwB,4BAoBnC"}
@@ -1,12 +0,0 @@
1
- export declare const useComparisonTableScroll: <ColData>({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }: {
2
- colData: ColData[];
3
- colsLengthForScroll: number;
4
- activeCardIndex: number;
5
- setActiveCardIndex: (_: number) => void;
6
- }) => {
7
- nextClick: () => void;
8
- prevClick: () => void;
9
- isScrollAvailable: boolean | 0;
10
- showNextButton: boolean | 0;
11
- showPrevButton: boolean | 0;
12
- };
@@ -1,9 +0,0 @@
1
- export const useComparisonTableScroll = ({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }) => {
2
- const nextClick = () => setActiveCardIndex(activeCardIndex + 1);
3
- const prevClick = () => setActiveCardIndex(activeCardIndex - 1);
4
- const isScrollAvailable = colData?.length && colData.length > colsLengthForScroll;
5
- const showNextButton = isScrollAvailable && colData?.length - activeCardIndex > colsLengthForScroll;
6
- const showPrevButton = isScrollAvailable && activeCardIndex > 0;
7
- return { nextClick, prevClick, isScrollAvailable, showNextButton, showPrevButton };
8
- };
9
- //# sourceMappingURL=useComparisonTableScroll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useComparisonTableScroll.js","sourceRoot":"","sources":["../../src/hooks/useComparisonTableScroll.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAU,EAChD,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,kBAAkB,GAMnB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAEhE,MAAM,iBAAiB,GAAG,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,MAAM,GAAG,mBAAmB,CAAC;IAClF,MAAM,cAAc,GAClB,iBAAiB,IAAI,OAAO,EAAE,MAAM,GAAG,eAAe,GAAG,mBAAmB,CAAC;IAC/E,MAAM,cAAc,GAAG,iBAAiB,IAAI,eAAe,GAAG,CAAC,CAAC;IAEhE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- export declare const useComparisonTableScroll: <ColData>({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }: {
2
- colData: ColData[];
3
- colsLengthForScroll: number;
4
- activeCardIndex: number;
5
- setActiveCardIndex: (_: number) => void;
6
- }) => {
7
- nextClick: () => void;
8
- prevClick: () => void;
9
- isScrollAvailable: boolean | 0;
10
- showNextButton: boolean | 0;
11
- showPrevButton: boolean | 0;
12
- };
@@ -1,12 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.useComparisonTableScroll = void 0;
3
- const useComparisonTableScroll = ({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }) => {
4
- const nextClick = () => setActiveCardIndex(activeCardIndex + 1);
5
- const prevClick = () => setActiveCardIndex(activeCardIndex - 1);
6
- const isScrollAvailable = colData?.length && colData.length > colsLengthForScroll;
7
- const showNextButton = isScrollAvailable && colData?.length - activeCardIndex > colsLengthForScroll;
8
- const showPrevButton = isScrollAvailable && activeCardIndex > 0;
9
- return { nextClick, prevClick, isScrollAvailable, showNextButton, showPrevButton };
10
- };
11
- exports.useComparisonTableScroll = useComparisonTableScroll;
12
- //# sourceMappingURL=useComparisonTableScroll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useComparisonTableScroll.js","sourceRoot":"","sources":["../../src/hooks/useComparisonTableScroll.ts"],"names":[],"mappings":";;AAAO,MAAM,wBAAwB,GAAG,CAAU,EAChD,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,kBAAkB,GAMnB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAEhE,MAAM,iBAAiB,GAAG,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,MAAM,GAAG,mBAAmB,CAAC;IAClF,MAAM,cAAc,GAClB,iBAAiB,IAAI,OAAO,EAAE,MAAM,GAAG,eAAe,GAAG,mBAAmB,CAAC;IAC/E,MAAM,cAAc,GAAG,iBAAiB,IAAI,eAAe,GAAG,CAAC,CAAC;IAEhE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC;AApBW,QAAA,wBAAwB,4BAoBnC"}
@@ -1,12 +0,0 @@
1
- export declare const useComparisonTableScroll: <ColData>({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }: {
2
- colData: ColData[];
3
- colsLengthForScroll: number;
4
- activeCardIndex: number;
5
- setActiveCardIndex: (_: number) => void;
6
- }) => {
7
- nextClick: () => void;
8
- prevClick: () => void;
9
- isScrollAvailable: boolean | 0;
10
- showNextButton: boolean | 0;
11
- showPrevButton: boolean | 0;
12
- };
@@ -1,9 +0,0 @@
1
- export const useComparisonTableScroll = ({ colData, colsLengthForScroll, activeCardIndex, setActiveCardIndex, }) => {
2
- const nextClick = () => setActiveCardIndex(activeCardIndex + 1);
3
- const prevClick = () => setActiveCardIndex(activeCardIndex - 1);
4
- const isScrollAvailable = colData?.length && colData.length > colsLengthForScroll;
5
- const showNextButton = isScrollAvailable && colData?.length - activeCardIndex > colsLengthForScroll;
6
- const showPrevButton = isScrollAvailable && activeCardIndex > 0;
7
- return { nextClick, prevClick, isScrollAvailable, showNextButton, showPrevButton };
8
- };
9
- //# sourceMappingURL=useComparisonTableScroll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useComparisonTableScroll.js","sourceRoot":"","sources":["../../src/hooks/useComparisonTableScroll.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAU,EAChD,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,kBAAkB,GAMnB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAEhE,MAAM,iBAAiB,GAAG,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,MAAM,GAAG,mBAAmB,CAAC;IAClF,MAAM,cAAc,GAClB,iBAAiB,IAAI,OAAO,EAAE,MAAM,GAAG,eAAe,GAAG,mBAAmB,CAAC;IAC/E,MAAM,cAAc,GAAG,iBAAiB,IAAI,eAAe,GAAG,CAAC,CAAC;IAEhE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- export const useComparisonTableScroll = <ColData>({
2
- colData,
3
- colsLengthForScroll,
4
- activeCardIndex,
5
- setActiveCardIndex,
6
- }: {
7
- colData: ColData[];
8
- colsLengthForScroll: number;
9
- activeCardIndex: number;
10
- setActiveCardIndex: (_: number) => void;
11
- }) => {
12
- const nextClick = () => setActiveCardIndex(activeCardIndex + 1);
13
- const prevClick = () => setActiveCardIndex(activeCardIndex - 1);
14
-
15
- const isScrollAvailable = colData?.length && colData.length > colsLengthForScroll;
16
- const showNextButton =
17
- isScrollAvailable && colData?.length - activeCardIndex > colsLengthForScroll;
18
- const showPrevButton = isScrollAvailable && activeCardIndex > 0;
19
-
20
- return { nextClick, prevClick, isScrollAvailable, showNextButton, showPrevButton };
21
- };