@redneckz/wildless-cms-uni-blocks 0.12.4 → 0.12.5

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 (326) hide show
  1. package/bin/migration-scripts/0.12.3.js +2 -0
  2. package/bin/migration-scripts/0.9.10.js +1 -1
  3. package/bundle/bundle.umd.js +43 -77
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  6. package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  7. package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  8. package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  9. package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
  10. package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  11. package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
  12. package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  13. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  14. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
  15. package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  16. package/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  17. package/bundle/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
  18. package/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
  19. package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  20. package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
  21. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  22. package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  23. package/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
  24. package/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  25. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  26. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +4 -0
  27. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
  28. package/dist/components/Blocks.mobile.js +6 -0
  29. package/dist/components/Blocks.mobile.js.map +1 -1
  30. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  31. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  32. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  33. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
  34. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  35. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
  36. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +4 -0
  37. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
  38. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  39. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
  40. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  41. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
  42. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +4 -0
  43. package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
  44. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  45. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
  46. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  47. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  48. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +20 -0
  49. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  50. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
  51. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +8 -0
  52. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
  53. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  54. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  55. package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  56. package/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
  57. package/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  58. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  59. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  60. package/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  61. package/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
  62. package/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  63. package/dist/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
  64. package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js +5 -0
  65. package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
  66. package/dist/components/Tabs/LinkTab.js +2 -1
  67. package/dist/components/Tabs/LinkTab.js.map +1 -1
  68. package/dist/components/Tabs/Tabs.js +3 -2
  69. package/dist/components/Tabs/Tabs.js.map +1 -1
  70. package/dist/components/Tabs/renderGroupTab.js +7 -13
  71. package/dist/components/Tabs/renderGroupTab.js.map +1 -1
  72. package/dist/components/Tabs/tabItemClasses.d.ts +2 -3
  73. package/dist/components/Tabs/tabItemClasses.js +10 -46
  74. package/dist/components/Tabs/tabItemClasses.js.map +1 -1
  75. package/dist/components/TariffsTable/TariffsTable.mobile.js +0 -1
  76. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  77. package/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
  78. package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  79. package/lib/common.css +1 -1
  80. package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  81. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts +6 -0
  82. package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
  83. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  84. package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  85. package/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
  86. package/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  87. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
  88. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +2 -0
  89. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
  90. package/lib/components/Blocks.mobile.js +6 -0
  91. package/lib/components/Blocks.mobile.js.map +1 -1
  92. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.d.ts +7 -0
  93. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  94. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  95. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  96. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
  97. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  98. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
  99. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +2 -0
  100. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
  101. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  102. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
  103. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  104. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
  105. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +2 -0
  106. package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
  107. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -0
  108. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
  109. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  110. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  111. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +17 -0
  112. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  113. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +3 -0
  114. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +5 -0
  115. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
  116. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +0 -11
  117. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +6 -0
  118. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  119. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  120. package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  121. package/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
  122. package/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  123. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -1
  124. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +7 -0
  125. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  126. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  127. package/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  128. package/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
  129. package/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  130. package/lib/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
  131. package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js +3 -0
  132. package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
  133. package/lib/components/Tabs/LinkTab.js +3 -2
  134. package/lib/components/Tabs/LinkTab.js.map +1 -1
  135. package/lib/components/Tabs/Tabs.fixture.mobile.d.ts +8 -0
  136. package/lib/components/Tabs/Tabs.js +3 -2
  137. package/lib/components/Tabs/Tabs.js.map +1 -1
  138. package/lib/components/Tabs/renderGroupTab.d.ts +0 -1
  139. package/lib/components/Tabs/renderGroupTab.js +9 -15
  140. package/lib/components/Tabs/renderGroupTab.js.map +1 -1
  141. package/lib/components/Tabs/renderTab.d.ts +0 -1
  142. package/lib/components/Tabs/tabItemClasses.d.ts +2 -3
  143. package/lib/components/Tabs/tabItemClasses.js +8 -43
  144. package/lib/components/Tabs/tabItemClasses.js.map +1 -1
  145. package/lib/components/TariffsTable/TariffsTable.mobile.js +0 -1
  146. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  147. package/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
  148. package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  149. package/mobile/bundle/bundle.umd.js +507 -335
  150. package/mobile/bundle/bundle.umd.min.js +1 -1
  151. package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  152. package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  153. package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  154. package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  155. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  156. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  157. package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  158. package/mobile/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  159. package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
  160. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  161. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
  162. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  163. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  164. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
  165. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  166. package/mobile/dist/components/Blocks.js +6 -0
  167. package/mobile/dist/components/Blocks.js.map +1 -1
  168. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  169. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  170. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  171. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
  172. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  173. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  174. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
  175. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  176. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  177. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
  178. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  179. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  180. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +8 -0
  181. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  182. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  183. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  184. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  185. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
  186. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  187. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  188. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  189. package/mobile/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  190. package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
  191. package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  192. package/mobile/dist/components/Tabs/LinkTab.js +2 -1
  193. package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
  194. package/mobile/dist/components/Tabs/Tabs.js +3 -2
  195. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  196. package/mobile/dist/components/Tabs/renderGroupTab.js +7 -13
  197. package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
  198. package/mobile/dist/components/Tabs/tabItemClasses.d.ts +2 -3
  199. package/mobile/dist/components/Tabs/tabItemClasses.js +10 -46
  200. package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
  201. package/mobile/dist/components/TariffsTable/TariffsTable.js +0 -1
  202. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  203. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
  204. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  205. package/mobile/lib/common.css +1 -1
  206. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  207. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
  208. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  209. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
  210. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
  211. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
  212. package/mobile/lib/components/Blocks.js +6 -0
  213. package/mobile/lib/components/Blocks.js.map +1 -1
  214. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
  215. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  216. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
  217. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
  218. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
  219. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
  220. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
  221. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
  222. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
  223. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
  224. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
  225. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
  226. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +5 -0
  227. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
  228. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  229. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  230. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
  231. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
  232. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
  233. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
  234. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  235. package/mobile/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
  236. package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
  237. package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
  238. package/mobile/lib/components/Tabs/LinkTab.js +3 -2
  239. package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
  240. package/mobile/lib/components/Tabs/Tabs.js +3 -2
  241. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  242. package/mobile/lib/components/Tabs/renderGroupTab.js +9 -15
  243. package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
  244. package/mobile/lib/components/Tabs/tabItemClasses.d.ts +2 -3
  245. package/mobile/lib/components/Tabs/tabItemClasses.js +8 -43
  246. package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
  247. package/mobile/lib/components/TariffsTable/TariffsTable.js +0 -1
  248. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  249. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
  250. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  251. package/mobile/src/common.css +3 -0
  252. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
  253. package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
  254. package/mobile/src/components/Blocks.ts +6 -0
  255. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
  256. package/mobile/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
  257. package/mobile/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
  258. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
  259. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +14 -0
  260. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
  261. package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
  262. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
  263. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
  264. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
  265. package/mobile/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
  266. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
  267. package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
  268. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
  269. package/mobile/src/components/PictureText/PictureText.example.json +1 -11
  270. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
  271. package/mobile/src/components/ProductTile/ProductTile.example.json +4 -12
  272. package/mobile/src/components/Tabs/LinkTab.tsx +19 -8
  273. package/mobile/src/components/Tabs/Tabs.tsx +7 -4
  274. package/mobile/src/components/Tabs/renderGroupTab.tsx +21 -33
  275. package/mobile/src/components/Tabs/tabItemClasses.ts +12 -45
  276. package/mobile/src/components/TariffsTable/TariffsTable.tsx +0 -1
  277. package/mobile/src/components/Tile/Tile.example.json +1 -11
  278. package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
  279. package/package.json +1 -1
  280. package/src/common.css +3 -0
  281. package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +43 -0
  282. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +0 -1
  283. package/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
  284. package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +1 -0
  285. package/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
  286. package/src/components/Blocks.mobile.ts +6 -0
  287. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.tsx +67 -0
  288. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
  289. package/src/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.ts +1 -0
  290. package/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
  291. package/src/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.ts +1 -0
  292. package/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
  293. package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
  294. package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +14 -0
  295. package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +27 -0
  296. package/src/components/Carousel/Carousel.fixture.tsx +13 -2
  297. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.tsx +23 -0
  298. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +3 -25
  299. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
  300. package/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
  301. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
  302. package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
  303. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +34 -0
  304. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -7
  305. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
  306. package/src/components/CarouselProgramsCard/programCardStyles.mobile.ts +2 -0
  307. package/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
  308. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
  309. package/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
  310. package/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
  311. package/src/components/PictureText/PictureText.example.json +1 -11
  312. package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -6
  313. package/src/components/PictureText/PictureText.fixture.tsx +0 -6
  314. package/src/components/ProductBlock/ProductBlock.example.json +1 -11
  315. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -6
  316. package/src/components/ProductTile/ProductTile.example.json +4 -12
  317. package/src/components/Tabs/LinkTab.tsx +19 -8
  318. package/src/components/Tabs/Tabs.fixture.mobile.tsx +55 -0
  319. package/src/components/Tabs/Tabs.fixture.tsx +8 -17
  320. package/src/components/Tabs/Tabs.tsx +7 -4
  321. package/src/components/Tabs/renderGroupTab.tsx +21 -33
  322. package/src/components/Tabs/tabItemClasses.ts +12 -45
  323. package/src/components/TariffsTable/TariffsTable.mobile.tsx +0 -1
  324. package/src/components/Tile/Tile.example.json +1 -11
  325. package/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
  326. package/tailwind.config.cjs +12 -12
@@ -18,5 +18,7 @@ function adjustImageOptions(block) {
18
18
  ...block.content.imageOptions,
19
19
  directionRight: block.content.directionRight,
20
20
  };
21
+
22
+ Reflect.deleteProperty(block?.content, 'directionRight');
21
23
  }
22
24
  }
@@ -24,7 +24,7 @@ function adjustProductTileBlock(block) {
24
24
  if (block.type === 'ProductTile') {
25
25
  const blockContent = block?.content;
26
26
  if (blockContent?.isImageOnRightSide) {
27
- renameProp(ProductTile, 'isImageOnRightSide', 'directionRight');
27
+ renameProp(blockContent, 'isImageOnRightSide', 'directionRight');
28
28
  }
29
29
  }
30
30
  }
@@ -705,7 +705,7 @@
705
705
 
706
706
  const PhoneInput = JSX(({ children, onChange, ...inputProps }) => {
707
707
  const handleChange = useCallback((value) => onChange && onChange(normalizePhone(value)), [onChange]);
708
- return (jsx(Input, { onChange: handleChange, onFocus: handleChange, ...inputProps, children: children }));
708
+ return (jsx(Input, { onChange: handleChange, onFocus: (event) => handleChange(event?.target?.value || ''), ...inputProps, children: children }));
709
709
  });
710
710
 
711
711
  const PhoneInputControl = JSX(({ className, label, value, error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(PhoneInput, { "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs-light", color: "text-error", children: error })) : null })] })));
@@ -1162,11 +1162,10 @@
1162
1162
  return (jsx(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "text-center mb-8" }) : null, COMPONENTS_MAP[typeForm]({ button, link, onSubmit: handleSubmit }), responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
1163
1163
  });
1164
1164
 
1165
- const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-default", ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefitList.map(renderStep$1) })) : null] })));
1166
- const renderStep$1 = (benefit, i) => {
1167
- const description = benefit.description;
1168
- return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(Img, { className: "w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black", image: benefit.icon })) : null, benefit?.icon?.src ? jsx(Img, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5 h-full", children: [benefit?.label ? jsx(Heading, { headingType: "h6", children: benefit.label }) : null, renderDescription$4(description)] })] }, String(i)));
1169
- };
1165
+ const benefitImageStyles = 'w-12 h-12 min-w-12 rounded-full';
1166
+
1167
+ const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: "text-center", title: title }) : null, benefitList?.length ? (jsx("div", { className: "sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8", role: "list", children: benefitList.map(renderBenefit$2) })) : null] })));
1168
+ const renderBenefit$2 = (benefit, i) => (jsxs("div", { className: "flex items-center sm:basis-1/2 sm:max-w-[400px] mb-14", role: "listitem", children: [benefit?.icon?.icon ? (jsx(Img, { className: style('p-3 mr-5 shrink-0 bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black', benefitImageStyles), image: benefit.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "mr-5 shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$4(benefit.description)] })) : null] }, String(i)));
1170
1169
  const renderDescription$4 = (description) => {
1171
1170
  const benefitType = description?.benefitType || null;
1172
1171
  return description && benefitType ? (jsx("div", { className: "mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
@@ -1262,10 +1261,13 @@
1262
1261
  right: 'text-right',
1263
1262
  };
1264
1263
 
1265
- const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col text-center', className), defaultPadding: "p-default", ...rest, children: [jsx(Headline, { className: "!p-0 mb-8", title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
1266
- const renderBonusBenefit = ({ icon, title, description }, i) => {
1267
- return (jsxs("div", { className: style('flex flex-col items-center text-h6', !description && !title ? 'justify-center' : ''), children: [title ? jsx("span", { children: title }) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? jsx("span", { children: description }) : null] }, String(i)));
1268
- };
1264
+ const bonusBenefitAlign = 'text-center';
1265
+
1266
+ const bonusBenefitStyles = 'items-center';
1267
+
1268
+ const renderBonusBenefit = ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align: bonusBenefitAlign, children: title })) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? (jsx(Text, { size: "text-h6", font: "font-normal", align: bonusBenefitAlign, children: description })) : null] }, String(i)));
1269
+
1270
+ const renderBonusBenefits = (bonusBenefits, columnsCount, cardTextAlign) => (jsx("div", { className: `grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) }));
1269
1271
  const getElementsColsValue = (colValue) => {
1270
1272
  switch (colValue) {
1271
1273
  case '3':
@@ -1279,6 +1281,10 @@
1279
1281
  }
1280
1282
  };
1281
1283
 
1284
+ const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: style('p-default', className), defaultPadding: "p-default", ...rest, children: [jsx(Headline, { className: "mb-4 sm:mb-8", isPadding: false, title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
1285
+ ? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
1286
+ : null] })));
1287
+
1282
1288
  const BusinessCard = JSX((props) => {
1283
1289
  const { title, image, cardItems, button } = props;
1284
1290
  return (jsxs("div", { className: "border-gray border p-9 w-1/2", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? jsx(Img, { image: image }) : null] })) : null, title ? jsx(Heading, { headingType: "h4", title: title, className: "mb-6" }) : null, cardItems?.length ? jsx("ul", { children: cardItems.map((_, i) => renderItem(_, String(i))) }) : null, renderButtonsSection([button], { buttonClassName: 'mt-6' })] }));
@@ -2264,8 +2270,8 @@
2264
2270
  black: 'bg-black',
2265
2271
  white: 'bg-white',
2266
2272
  };
2267
- const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('border box-border border-gray min-w-[392px] h-full flex flex-col justify-left', className), ...rest, children: [image?.src ? jsx(Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
2268
- const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2273
+ const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('border box-border border-gray p-default sm:p-7 h-full flex flex-col justify-left', className), ...rest, children: [image?.src ? jsx(Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
2274
+ const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2269
2275
 
2270
2276
  const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2271
2277
  const link = useLink({ isRemote });
@@ -2348,10 +2354,13 @@
2348
2354
  const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
2349
2355
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('max-w-[308px] mt-2 text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
2350
2356
 
2357
+ const cardTitleFont = 'font-normal';
2358
+ const cardDescriptionColor = 'text-secondary-text';
2359
+
2351
2360
  const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
2352
- return (jsx(BlockWrapper, { className: style('border border-gray', className), defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: "mb-3.5", headingType: "h5", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$2) })) : null] })] }) }));
2361
+ return (jsx(BlockWrapper, { className: style('border border-gray', className), defaultPadding: "p-lg sm:p-0", ...rest, children: jsxs(LinkWrapper, { className: "sm:flex sm:items-center", href: href, target: target, children: [jsx("div", { className: "min-w-[200px] flex justify-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }), jsxs("div", { className: "sm:px-3 py-xl", children: [title ? jsx(Heading, { className: "mb-2 sm:mb-3.5", headingType: "h6", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-2 sm:gap-3", children: list?.map(renderList$2) })) : null] })] }) }));
2353
2362
  });
2354
- const renderList$2 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: "text-h6", children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
2363
+ const renderList$2 = (_, i) => (jsxs("div", { className: "flex flex-row-reverse justify-between gap-y-1 sm:flex-col", children: [_.title ? (jsx(Text, { size: "text-l", font: cardTitleFont, children: _.title })) : null, _.description ? (jsx(Paragraph, { size: "text-l", font: "font-light", color: cardDescriptionColor, children: _.description })) : null] }, String(i)));
2355
2364
 
2356
2365
  const buttonSizeStyles = {
2357
2366
  default: 'w-14 h-14',
@@ -2906,12 +2915,12 @@
2906
2915
  'bg-white': 'text-primary-text',
2907
2916
  transparent: 'text-white',
2908
2917
  };
2909
- const renderTitle$2 = (title, bgColor, className) => {
2918
+ const renderTitle$1 = (title, bgColor, className) => {
2910
2919
  return (jsx("span", { className: `${TEXT_COLOR[bgColor]} ml-2.5 font-medium ${className || ''}`, children: title || 'Россельхозбанк' }));
2911
2920
  };
2912
2921
 
2913
2922
  const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
2914
- return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$2(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? renderTitle$2(children || logo?.title, bgColor) : null] }));
2923
+ return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$2(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? renderTitle$1(children || logo?.title, bgColor) : null] }));
2915
2924
  });
2916
2925
 
2917
2926
  const CloseButton = JSX(({ className, onClick }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClick, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
@@ -4460,10 +4469,9 @@
4460
4469
  const WIDESCREEN_ACTIVE_LINK_CLASSES = 'bg-primary-main text-white';
4461
4470
  const TEXT_CLASSES = 'font-sans text-m text-center';
4462
4471
  const ACTIVE_TEXT_CLASSES = 'text-white';
4463
- const INACTIVE_TEXT_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
4464
- const WHITE_ACTIVE_TEXT_CLASSES = 'text-primary-main';
4465
- const GROUP_TAB_CLASSES = {
4466
- div: {
4472
+ const INACTIVE_TEXT_CLASSES = 'text-secondary-text sm:group-hover/btn:text-primary-main';
4473
+ const TAB_CLASSES = {
4474
+ block: {
4467
4475
  scrollable: {
4468
4476
  active: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${SCROLLABLE_ACTIVE_LINK_CLASSES}`,
4469
4477
  default: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
@@ -4479,37 +4487,7 @@
4479
4487
  },
4480
4488
  text: {
4481
4489
  scrollable: {
4482
- active: `h-full border-0 border-b-2`,
4483
- default: ``,
4484
- },
4485
- centered: {
4486
- active: '',
4487
- default: '',
4488
- },
4489
- wideScreen: {
4490
- active: '',
4491
- default: '',
4492
- },
4493
- },
4494
- };
4495
- const LINK_TAB_CLASSES = {
4496
- link: {
4497
- scrollable: {
4498
- active: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${SCROLLABLE_ACTIVE_LINK_CLASSES}`,
4499
- default: `inline-flex px-4 grow whitespace-nowrap ${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
4500
- },
4501
- centered: {
4502
- active: `px-4 rounded-md ${LINK_CLASSES} ${WIDESCREEN_ACTIVE_LINK_CLASSES} whitespace-nowrap`,
4503
- default: `px-4 rounded-md ${LINK_CLASSES} group/btn bg-transparent whitespace-nowrap`,
4504
- },
4505
- wideScreen: {
4506
- active: `${LINK_CLASSES} ${WIDESCREEN_ACTIVE_LINK_CLASSES}`,
4507
- default: `${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`,
4508
- },
4509
- },
4510
- text: {
4511
- scrollable: {
4512
- active: `${TEXT_CLASSES} flex items-center h-full border-0 border-b-2 ${WHITE_ACTIVE_TEXT_CLASSES}`,
4490
+ active: `${TEXT_CLASSES} flex items-center h-full border-0 border-b-2`,
4513
4491
  default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
4514
4492
  },
4515
4493
  centered: {
@@ -4517,20 +4495,15 @@
4517
4495
  default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
4518
4496
  },
4519
4497
  wideScreen: {
4520
- active: `${TEXT_CLASSES} ${ACTIVE_TEXT_CLASSES}`,
4521
- default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`,
4498
+ active: `${TEXT_CLASSES} ${ACTIVE_TEXT_CLASSES} text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,
4499
+ default: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES} px-2.5 bg-white`,
4522
4500
  },
4523
4501
  },
4524
4502
  };
4525
- const getGroupTabClassName = (type, active, tabsMode) => {
4503
+ const getTabClassName = (type, active, tabsMode) => {
4526
4504
  const styleActive = active ? 'active' : 'default';
4527
4505
  const mode = tabsMode || 'wideScreen';
4528
- return GROUP_TAB_CLASSES[type][mode][styleActive];
4529
- };
4530
- const getLinkTabClassName = (type, active, tabsMode) => {
4531
- const styleActive = active ? 'active' : 'default';
4532
- const mode = tabsMode || 'wideScreen';
4533
- return LINK_TAB_CLASSES[type][mode][styleActive];
4506
+ return TAB_CLASSES[type][mode][styleActive];
4534
4507
  };
4535
4508
 
4536
4509
  const LinkTab = JSX((props) => {
@@ -4542,28 +4515,21 @@
4542
4515
  adjustedProps.onClick(ev);
4543
4516
  onClick(tab);
4544
4517
  };
4545
- return (jsx("a", { role: "tab", className: getLinkTabClassName('link', active, tabsMode), target: tab.target, href: adjustedProps.href, onClick: handleClick, children: jsx("span", { className: getLinkTabClassName('text', active, tabsMode), children: tab.text }) }));
4518
+ return (jsx("div", { className: getTabClassName('block', active, tabsMode), role: "tab", "aria-selected": active, onClick: () => onClick(tab), children: jsx("a", { role: "tab", className: style('flex flex-1 items-center justify-center h-full', getTabClassName('text', active, tabsMode)), target: tab.target, href: adjustedProps.href, onClick: handleClick, children: jsx("span", { children: tab.text }) }) }));
4546
4519
  });
4547
4520
 
4548
- const BADGE_CLASSES = 'min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
4549
- const ACTIVE_BADGE_CLASSES = 'bg-white/30 text-white';
4550
- const INACTIVE_BADGE_CLASSES = 'bg-main-divider text-secondary-text group-hover/btn:text-primary-main';
4521
+ const BADGE_CLASSES = 'bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
4522
+ const LIGHT_BADGE_CLASSES = 'bg-white/30 text-white';
4523
+ const DARK_BADGE_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
4551
4524
  const renderGroupTab = ({ page, currentTab, showCounter, onClick, tabsMode }) => (tab, i) => {
4552
4525
  const active = currentTab === tab;
4553
4526
  const count = tab.ref && page?.blocks
4554
4527
  ? page.blocks.filter((block) => block?.labels?.includes(tab.ref)).length
4555
4528
  : 0;
4556
- return (jsx("div", { className: getGroupTabClassName('div', active, tabsMode), role: "tab", "aria-selected": active, onClick: () => onClick(tab), children: jsxs("div", { className: `flex flex-1 items-center justify-center ${getGroupTabClassName('text', active, tabsMode)}`, children: [renderTitle$1(tab.title, active, tabsMode), renderCount(showCounter, count, active)] }) }, `group-${String(i)}`));
4557
- };
4558
- const renderTitle$1 = (title, active, tabsMode) => {
4559
- const activeClassName = active ? WHITE_ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES;
4560
- const titleClassName = tabsMode === 'scrollable'
4561
- ? `${TEXT_CLASSES} ${activeClassName}`
4562
- : `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`;
4563
- return title ? jsx("h3", { className: titleClassName, children: title }) : null;
4529
+ return (jsx("div", { className: getTabClassName('block', active, tabsMode), role: "tab", "aria-selected": active, onClick: () => onClick(tab), children: jsxs("div", { className: style('flex flex-1 items-center justify-center h-full', getTabClassName('text', active, tabsMode)), children: [jsx("span", { children: tab.title }), showCounter && count ? renderCount(tabsMode, count, active) : null] }) }, `group-${String(i)}`));
4564
4530
  };
4565
- const renderCount = (showCounter, count, active) => {
4566
- return showCounter && count ? (jsx("div", { className: `${BADGE_CLASSES} ${active ? ACTIVE_BADGE_CLASSES : INACTIVE_BADGE_CLASSES}`, children: count })) : null;
4531
+ const renderCount = (tabsMode, count, active) => {
4532
+ return (jsx("div", { className: style(BADGE_CLASSES, active && tabsMode !== 'scrollable' ? LIGHT_BADGE_CLASSES : DARK_BADGE_CLASSES), children: count }));
4567
4533
  };
4568
4534
 
4569
4535
  const renderTab = ({ page, showCounter, ...rest }) => (tab, i) => {
@@ -4596,7 +4562,7 @@
4596
4562
  });
4597
4563
 
4598
4564
  const Tabs = JSX((props) => {
4599
- const { className = '', tabs, isSticky, ...rest } = props;
4565
+ const { className = '', isSticky, tabs, ...rest } = props;
4600
4566
  const [currentTab, setCurrentTab] = useState(tabs ? tabs[0] : undefined);
4601
4567
  useEffect(() => {
4602
4568
  if (!tabs || !tabs[0]) {
@@ -4613,7 +4579,7 @@
4613
4579
  fireTabEvent(selectedTab);
4614
4580
  setCurrentTab(selectedTab);
4615
4581
  }, []);
4616
- return (jsx(BlockWrapper, { className: `relative box-border flex gap-x-1 w-full ${isSticky ? 'sticky top-1 z-20' : ''} ${className}`, defaultPadding: "p-0", role: "tablist", ...rest, children: renderTabs({ tabs, onClick: handleClick, currentTab, ...rest }) }));
4582
+ return (jsx(BlockWrapper, { className: style('relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar', isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", role: "tablist", ...rest, children: renderTabs({ tabs, onClick: handleClick, currentTab, ...rest }) }));
4617
4583
  });
4618
4584
  const renderTabs = ({ tabsMode, tabs, ...rest }) => {
4619
4585
  switch (tabsMode) {
@@ -5049,7 +5015,7 @@
5049
5015
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
5050
5016
  }
5051
5017
 
5052
- const packageVersion = "0.12.4";
5018
+ const packageVersion = "0.12.5";
5053
5019
 
5054
5020
  exports.Blocks = Blocks;
5055
5021
  exports.ContentPage = ContentPage;