@redneckz/wildless-cms-uni-blocks 0.14.24 → 0.14.26

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 (345) hide show
  1. package/bin/migration-scripts/0.14.26.js +53 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +46 -42
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  6. package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  7. package/bundle/utils/deleteAllCookie.d.ts +1 -0
  8. package/bundle/utils/isIcon.d.ts +2 -0
  9. package/dist/components/Blocks.js +0 -2
  10. package/dist/components/Blocks.js.map +1 -1
  11. package/dist/components/Blocks.mobile.js +0 -2
  12. package/dist/components/Blocks.mobile.js.map +1 -1
  13. package/dist/components/Bonus/Bonus.js +4 -4
  14. package/dist/components/Bonus/Bonus.js.map +1 -1
  15. package/dist/components/Carousel/Carousel.js +1 -1
  16. package/dist/components/Carousel/Carousel.js.map +1 -1
  17. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  18. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  19. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -2
  20. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  21. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  22. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  23. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  24. package/dist/components/ContentPage/ContentPage.js +1 -1
  25. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  26. package/dist/components/Footer/Footer.js +3 -1
  27. package/dist/components/Footer/Footer.js.map +1 -1
  28. package/dist/components/Footer/Footer.mobile.js +3 -1
  29. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  30. package/dist/components/Footer/SocialMedia.js +2 -2
  31. package/dist/components/Footer/SocialMedia.js.map +1 -1
  32. package/dist/components/Footer/TextInformation.js +1 -1
  33. package/dist/components/Footer/TextInformation.js.map +1 -1
  34. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  35. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  36. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  37. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  38. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  39. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  40. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  41. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  42. package/dist/components/Tabs/Tabs.js +7 -3
  43. package/dist/components/Tabs/Tabs.js.map +1 -1
  44. package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  45. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  46. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  47. package/dist/ui-kit/BaseTile/BaseTile.js +3 -2
  48. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  49. package/dist/ui-kit/Button/ButtonInner.js +2 -1
  50. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  51. package/dist/ui-kit/Button/renderButtonsSection.js +2 -1
  52. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  53. package/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  54. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  55. package/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  56. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  57. package/dist/ui-kit/LocationDialog/renderRegion.js +3 -2
  58. package/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  59. package/dist/utils/deleteAllCookie.d.ts +1 -0
  60. package/dist/utils/deleteAllCookie.js +11 -0
  61. package/dist/utils/deleteAllCookie.js.map +1 -0
  62. package/dist/utils/isIcon.d.ts +2 -0
  63. package/dist/utils/isIcon.js +5 -0
  64. package/dist/utils/isIcon.js.map +1 -0
  65. package/lib/common.css +1 -1
  66. package/lib/components/Blocks.js +0 -2
  67. package/lib/components/Blocks.js.map +1 -1
  68. package/lib/components/Blocks.mobile.js +0 -2
  69. package/lib/components/Blocks.mobile.js.map +1 -1
  70. package/lib/components/Bonus/Bonus.js +4 -4
  71. package/lib/components/Bonus/Bonus.js.map +1 -1
  72. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
  73. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +1 -1
  74. package/lib/components/Carousel/Carousel.js +1 -1
  75. package/lib/components/Carousel/Carousel.js.map +1 -1
  76. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  77. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  78. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
  79. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.d.ts +2 -0
  80. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +6 -3
  81. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  82. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  83. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  84. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  85. package/lib/components/ContentPage/ContentPage.js +1 -1
  86. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  87. package/lib/components/Footer/Footer.js +3 -1
  88. package/lib/components/Footer/Footer.js.map +1 -1
  89. package/lib/components/Footer/Footer.mobile.js +3 -1
  90. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  91. package/lib/components/Footer/SocialMedia.js +2 -2
  92. package/lib/components/Footer/SocialMedia.js.map +1 -1
  93. package/lib/components/Footer/TextInformation.js +1 -1
  94. package/lib/components/Footer/TextInformation.js.map +1 -1
  95. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  96. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  97. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  98. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  99. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  100. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  101. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  102. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  103. package/lib/components/Tabs/Tabs.js +7 -3
  104. package/lib/components/Tabs/Tabs.js.map +1 -1
  105. package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  106. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  107. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  108. package/lib/ui-kit/BaseTile/BaseTile.js +3 -2
  109. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  110. package/lib/ui-kit/Button/ButtonInner.js +2 -1
  111. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  112. package/lib/ui-kit/Button/renderButtonsSection.js +2 -1
  113. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  114. package/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  115. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  116. package/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  117. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  118. package/lib/ui-kit/LocationDialog/renderRegion.js +3 -2
  119. package/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  120. package/lib/utils/deleteAllCookie.d.ts +1 -0
  121. package/lib/utils/deleteAllCookie.js +8 -0
  122. package/lib/utils/deleteAllCookie.js.map +1 -0
  123. package/lib/utils/isIcon.d.ts +2 -0
  124. package/lib/utils/isIcon.js +2 -0
  125. package/lib/utils/isIcon.js.map +1 -0
  126. package/mobile/bundle/bundle.umd.js +46 -42
  127. package/mobile/bundle/bundle.umd.min.js +1 -1
  128. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  129. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  130. package/mobile/bundle/utils/deleteAllCookie.d.ts +1 -0
  131. package/mobile/bundle/utils/isIcon.d.ts +2 -0
  132. package/mobile/dist/components/Blocks.js +0 -2
  133. package/mobile/dist/components/Blocks.js.map +1 -1
  134. package/mobile/dist/components/Bonus/Bonus.js +4 -4
  135. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  136. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  137. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  138. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  139. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  140. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +5 -2
  141. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  142. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  143. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  144. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  145. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  146. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  147. package/mobile/dist/components/Footer/Footer.js +3 -1
  148. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  149. package/mobile/dist/components/Footer/SocialMedia.js +2 -2
  150. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  151. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  152. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  153. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  154. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  155. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  156. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  157. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  158. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  159. package/mobile/dist/components/Tabs/Tabs.js +7 -3
  160. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  161. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  162. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  163. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  164. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -2
  165. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  166. package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -1
  167. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  168. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -1
  169. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  170. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  171. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  172. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  173. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  174. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js +3 -2
  175. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  176. package/mobile/dist/utils/deleteAllCookie.d.ts +1 -0
  177. package/mobile/dist/utils/deleteAllCookie.js +11 -0
  178. package/mobile/dist/utils/deleteAllCookie.js.map +1 -0
  179. package/mobile/dist/utils/isIcon.d.ts +2 -0
  180. package/mobile/dist/utils/isIcon.js +5 -0
  181. package/mobile/dist/utils/isIcon.js.map +1 -0
  182. package/mobile/lib/common.css +1 -1
  183. package/mobile/lib/components/Blocks.js +0 -2
  184. package/mobile/lib/components/Blocks.js.map +1 -1
  185. package/mobile/lib/components/Bonus/Bonus.js +4 -4
  186. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  187. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  188. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  189. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  190. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  191. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +6 -3
  192. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  193. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +4 -3
  194. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  195. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  196. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  197. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  198. package/mobile/lib/components/Footer/Footer.js +3 -1
  199. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  200. package/mobile/lib/components/Footer/SocialMedia.js +2 -2
  201. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  202. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  203. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  204. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  205. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  206. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
  207. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  208. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  209. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  210. package/mobile/lib/components/Tabs/Tabs.js +7 -3
  211. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  212. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +8 -0
  213. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  214. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  215. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -2
  216. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  217. package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -1
  218. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  219. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -1
  220. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  221. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  222. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  223. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
  224. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  225. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js +3 -2
  226. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -1
  227. package/mobile/lib/utils/deleteAllCookie.d.ts +1 -0
  228. package/mobile/lib/utils/deleteAllCookie.js +8 -0
  229. package/mobile/lib/utils/deleteAllCookie.js.map +1 -0
  230. package/mobile/lib/utils/isIcon.d.ts +2 -0
  231. package/mobile/lib/utils/isIcon.js +2 -0
  232. package/mobile/lib/utils/isIcon.js.map +1 -0
  233. package/mobile/src/components/Blocks.ts +0 -2
  234. package/mobile/src/components/Bonus/Bonus.tsx +4 -4
  235. package/mobile/src/components/Carousel/Carousel.tsx +1 -1
  236. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  237. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +15 -5
  238. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +5 -3
  239. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +6 -6
  240. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
  241. package/mobile/src/components/Footer/Footer.tsx +10 -0
  242. package/mobile/src/components/Footer/SocialMedia.tsx +2 -4
  243. package/mobile/src/components/Footer/TextInformation.tsx +1 -1
  244. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +7 -1
  245. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -8
  246. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -2
  247. package/mobile/src/components/Tabs/Tabs.tsx +8 -4
  248. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  249. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +8 -4
  250. package/mobile/src/ui-kit/Button/ButtonInner.tsx +7 -2
  251. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
  252. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -1
  253. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +6 -4
  254. package/mobile/src/ui-kit/LocationDialog/renderRegion.tsx +5 -2
  255. package/mobile/src/utils/deleteAllCookie.ts +8 -0
  256. package/mobile/src/utils/isIcon.ts +3 -0
  257. package/package.json +1 -1
  258. package/src/components/Blocks.mobile.ts +0 -2
  259. package/src/components/Blocks.ts +0 -2
  260. package/src/components/Bonus/Bonus.tsx +4 -4
  261. package/src/components/Carousel/Carousel.fixture.mobile.tsx +12 -11
  262. package/src/components/Carousel/Carousel.fixture.tsx +15 -14
  263. package/src/components/Carousel/Carousel.tsx +1 -1
  264. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  265. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +41 -2
  266. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +41 -2
  267. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +15 -5
  268. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +5 -3
  269. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +6 -6
  270. package/src/components/ContentPage/ContentPage.tsx +1 -1
  271. package/src/components/Footer/Footer.mobile.tsx +10 -0
  272. package/src/components/Footer/Footer.tsx +10 -0
  273. package/src/components/Footer/SocialMedia.tsx +2 -4
  274. package/src/components/Footer/TextInformation.tsx +1 -1
  275. package/src/components/ProductBlock/renderBackwardButton.tsx +7 -1
  276. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -8
  277. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -2
  278. package/src/components/StepsBlock/StepsBlock.tsx +3 -3
  279. package/src/components/Tabs/Tabs.tsx +8 -4
  280. package/src/components/Tile/Tile.fixture.tsx +1 -2
  281. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  282. package/src/ui-kit/BaseTile/BaseTile.tsx +8 -4
  283. package/src/ui-kit/Button/ButtonInner.tsx +7 -2
  284. package/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
  285. package/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -1
  286. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +6 -4
  287. package/src/ui-kit/LocationDialog/renderRegion.tsx +5 -2
  288. package/src/utils/deleteAllCookie.ts +8 -0
  289. package/src/utils/isIcon.ts +3 -0
  290. package/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  291. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  292. package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  293. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  294. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -13
  295. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  296. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  297. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  298. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  299. package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  300. package/dist/components/StepsBlock/checkCanRenderIcon.js +0 -5
  301. package/dist/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  302. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  303. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -8
  304. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +0 -7
  305. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -11
  306. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  307. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  308. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  309. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  310. package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  311. package/lib/components/StepsBlock/checkCanRenderIcon.js +0 -2
  312. package/lib/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  313. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  314. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  315. package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  316. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  317. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -13
  318. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  319. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  320. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  321. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  322. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  323. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js +0 -5
  324. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  325. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +0 -5
  326. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +0 -11
  327. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +0 -1
  328. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +0 -11
  329. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +0 -2
  330. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +0 -1
  331. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +0 -4
  332. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js +0 -2
  333. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js.map +0 -1
  334. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +0 -25
  335. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +0 -28
  336. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +0 -1
  337. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +0 -15
  338. package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +0 -4
  339. package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +0 -25
  340. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +0 -34
  341. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -36
  342. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +0 -28
  343. package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +0 -1
  344. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +0 -15
  345. package/src/components/StepsBlock/checkCanRenderIcon.ts +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"renderRegion.js","sourceRoot":"","sources":["../../../src/ui-kit/LocationDialog/renderRegion.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,gBAA2C,EAAE,EAAE,CAAC,CAAC,MAAc,EAAE,EAAE,CAC9F,CACE,cAAqB,SAAS,EAAC,QAAQ,YACrC,iBACE,SAAS,EAAC,yCAAyC,EACnD,OAAO,EAAE,GAAG,EAAE;YACZ,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC,YAEA,MAAM,CAAC,IAAI,IAAI,EAAE,GACX,IARD,MAAM,CAAC,EAAE,CASb,CACP,CAAC"}
1
+ {"version":3,"file":"renderRegion.js","sourceRoot":"","sources":["../../../src/ui-kit/LocationDialog/renderRegion.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,gBAA2C,EAAE,EAAE,CAAC,CAAC,MAAc,EAAE,EAAE,CAC9F,CACE,cAAqB,SAAS,EAAC,iBAAiB,YAC9C,iBACE,SAAS,EAAC,yCAAyC,EACnD,OAAO,EAAE,GAAG,EAAE;YACZ,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC,YAED,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,MAAM,CAAC,IAAI,IAAI,EAAE,GACb,GACA,IAVD,MAAM,CAAC,EAAE,CAWb,CACP,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const deleteAllCookies: () => void;
@@ -0,0 +1,8 @@
1
+ export const deleteAllCookies = () => {
2
+ const cookies = globalThis.document?.cookie.split(';') ?? [];
3
+ for (const cookie of cookies) {
4
+ const [name] = cookie.split('=');
5
+ globalThis.document.cookie = `${name}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;
6
+ }
7
+ };
8
+ //# sourceMappingURL=deleteAllCookie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteAllCookie.js","sourceRoot":"","sources":["../../src/utils/deleteAllCookie.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IAE7D,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,IAAI,gDAAgD,CAAC;KACtF;AACH,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type Picture } from '../model/Picture';
2
+ export declare const isIcon: (icon: Picture | undefined) => boolean;
@@ -0,0 +1,2 @@
1
+ export const isIcon = (icon) => Boolean(icon?.src || icon?.icon);
2
+ //# sourceMappingURL=isIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isIcon.js","sourceRoot":"","sources":["../../src/utils/isIcon.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAyB,EAAW,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC"}
@@ -12,7 +12,6 @@ import { CarouselCard } from './CarouselCard/CarouselCard';
12
12
  import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
13
13
  import { CarouselLinks } from './CarouselLinks/CarouselLinks';
14
14
  import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
15
- import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
16
15
  import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
17
16
  import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
18
17
  import { ComparisonTable } from './ComparisonTable/ComparisonTable';
@@ -58,7 +57,6 @@ export const Blocks: BlocksRegistry = {
58
57
  CarouselCatalogCard,
59
58
  CarouselLinks,
60
59
  CarouselProductCard,
61
- CarouselProgramsCard,
62
60
  CarouselRecommendationCard,
63
61
  CarouselTariffsCard,
64
62
  ComparisonTable,
@@ -22,12 +22,12 @@ export const Bonus = JSX<BonusProps>(
22
22
  headlineVersion="M"
23
23
  align={align}
24
24
  />
25
- <div className="flex flex-wrap w-full">
25
+ <div className="flex flex-wrap gap-3xl gap-x-m w-full">
26
26
  {bonusItems.length > 0
27
27
  ? bonusItems.map((_, i) => (
28
28
  <div
29
29
  key={String(i)}
30
- className="mb-3xl last:mb-0 sm:space-y-xs flex flex-col grow w-full p-4xl sm:p-m @xl:w-[49%] border border-gray"
30
+ className="w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow w-full p-xl sm:p-m border border-gray"
31
31
  >
32
32
  <div className="grow">
33
33
  <Headline
@@ -59,10 +59,10 @@ const renderBonusItemContent = (bonusItemContent: BonusImageDef | BonusCountDef)
59
59
  : renderBonusImage(bonusItemContent as BonusImageDef);
60
60
 
61
61
  const renderBonusCount = (_: BonusCountDef) => (
62
- <div className="w-full pt-default mt-s flex justify-center sm:justify-end items-end">
62
+ <div className="w-full pt-default @xl:mt-s @xl:mb-4 flex justify-center sm:justify-end items-end">
63
63
  {_.bonusCount ? (
64
64
  // -mb-10 добавлен для выравнивания bonusCount относительно bonusName, тк шрифт font-mohave неправильно высчитывает line-height
65
- <div className="shrink-0 -mb-10">
65
+ <div className="shrink-0 -mb-6 @xl:-mb-4">
66
66
  <span className="font-mohave text-title-large sm:text-title-extra gradient-color-text">
67
67
  {_.bonusCount}
68
68
  </span>
@@ -68,7 +68,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
68
68
  />
69
69
  </div>
70
70
  <SwipeListControlDots
71
- className="@lg:hidden"
71
+ className="@5xl:hidden"
72
72
  containerRef={containerRef}
73
73
  activeIndex={dotsActiveIndex}
74
74
  dotCount={count}
@@ -39,7 +39,7 @@ export const CarouselCatalogCard = JSX<CarouselCatalogCardProps>(
39
39
  className="h-full"
40
40
  padding={padding}
41
41
  title={
42
- title ? (
42
+ title || description ? (
43
43
  <Headline
44
44
  title={title}
45
45
  description={description}
@@ -1,10 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type UniBlockProps } from '../../model/JSXBlock';
3
+ import { leftOrRightImage } from '../../ui-kit/BaseProductTile/BaseProductTile';
3
4
  import { BaseTile } from '../../ui-kit/BaseTile/BaseTile';
5
+ import { BenefitsList } from '../../ui-kit/BenefitsList/BenefitsList';
4
6
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
7
  import { Img } from '../../ui-kit/Img/Img';
6
8
  import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
7
9
  import { List } from '../../ui-kit/List/List';
10
+ import { isIcon } from '../../utils/isIcon';
8
11
  import { style } from '../../utils/style';
9
12
  import { SocialMedia } from '../Footer/SocialMedia';
10
13
  import { Headline } from '../Headline/Headline';
@@ -27,7 +30,12 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
27
30
  target,
28
31
  title,
29
32
  align = 'text-left',
30
- isImageAlwaysOnRight = ImageAlwaysOnRight,
33
+ benefits,
34
+ imageOptions: {
35
+ directionRight = true,
36
+ isImageAlwaysOnRight = ImageAlwaysOnRight,
37
+ isImageSecondary = false,
38
+ } = {},
31
39
  ...rest
32
40
  }) => {
33
41
  return (
@@ -39,7 +47,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
39
47
  <LinkWrapper href={href} target={target} className="h-full">
40
48
  <BaseTile
41
49
  className="h-full"
42
- defaultPadding="p-m"
50
+ defaultPadding="p-2xl"
43
51
  padding={padding}
44
52
  insetTitle={
45
53
  title ? (
@@ -52,15 +60,17 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
52
60
  />
53
61
  ) : null
54
62
  }
55
- rightImage={icon?.icon || icon?.src ? <Img image={icon} /> : null}
63
+ {...leftOrRightImage(isIcon(icon) ? <Img image={icon} /> : null, directionRight)}
56
64
  buttons={
57
65
  socialMedia.length ? (
58
- <SocialMedia media={socialMedia} showButtonText={true} version={rest.version} />
66
+ <SocialMedia media={socialMedia} showButtonText={true} version={rest?.version} />
59
67
  ) : null
60
68
  }
61
69
  isImageAlwaysOnRight={isImageAlwaysOnRight}
70
+ isImageSecondary={isImageSecondary}
62
71
  >
63
- {items.length ? <List items={items} listItemSize={listItemSize} /> : null}
72
+ <BenefitsList benefits={benefits} />
73
+ <List items={items} listItemSize={listItemSize} />
64
74
  </BaseTile>
65
75
  </LinkWrapper>
66
76
  </BlockWrapper>
@@ -2,6 +2,8 @@ import { type AlignProps, type HeadlineCommonProps } from '../../model/HeadlineT
2
2
  import { type UniBlockContent } from '../../model/JSXBlock';
3
3
  import { type LinkCommonProps } from '../../model/LinkProps';
4
4
  import { type IconProps } from '../../model/Picture';
5
+ import { type TileImageOptions } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
6
+ import { type BenefitsListContent } from '../../ui-kit/BenefitsList/BenefitsListContent';
5
7
  import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
6
8
  import { type ListContent } from '../../ui-kit/List/ListContent';
7
9
 
@@ -13,9 +15,9 @@ export type CarouselRecommendationCardContent = UniBlockContent &
13
15
  ListContent &
14
16
  IconProps &
15
17
  LinkCommonProps &
16
- AlignProps & {
18
+ AlignProps &
19
+ BenefitsListContent & {
17
20
  /** @title Соц сети */
18
21
  socialMedia?: ButtonContent[];
19
- /** @title Изображение всегда справа */
20
- isImageAlwaysOnRight?: boolean;
22
+ imageOptions?: TileImageOptions;
21
23
  };
@@ -1,6 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type UniBlockProps } from '../../model/JSXBlock';
3
- import { type Picture } from '../../model/Picture';
4
3
  import { type VNode } from '../../model/VNode';
5
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
5
  import { Button } from '../../ui-kit/Button/Button';
@@ -10,6 +9,7 @@ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
10
9
  import { Heading } from '../../ui-kit/Heading/Heading';
11
10
  import { Icon } from '../../ui-kit/Icon/Icon';
12
11
  import { Img } from '../../ui-kit/Img/Img';
12
+ import { isIcon } from '../../utils/isIcon';
13
13
  import { style } from '../../utils/style';
14
14
  import { type CarouselTariffsCardContent } from './CarouselTariffsCardContent';
15
15
  import { renderCardInfo } from './renderCardInfo';
@@ -26,7 +26,11 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
26
26
 
27
27
  return (
28
28
  <BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-3xl" {...rest}>
29
- {renderIconBlock(icon)}
29
+ {isIcon(icon) ? (
30
+ <div className="self-center">
31
+ <Img image={icon} />
32
+ </div>
33
+ ) : null}
30
34
  {title ? (
31
35
  <Heading className={style('pt-xs', align)} headingType="h5" title={title} />
32
36
  ) : null}
@@ -47,10 +51,6 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
47
51
  },
48
52
  );
49
53
 
50
- const renderIconBlock = (icon?: Picture) => (
51
- <div className="self-center">{icon?.src || icon?.icon ? <Img image={icon} /> : null}</div>
52
- );
53
-
54
54
  const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode => (
55
55
  <button
56
56
  className="w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center"
@@ -42,7 +42,7 @@ export const ContentPage: JSXBlock<ContentPageProps> = JSX<ContentPageProps>(
42
42
  {renderBlocksList(slots?.header, { ...options, slotName: 'header' })}
43
43
  </div>
44
44
  ) : null}
45
- <div className="container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs">
45
+ <div className="container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs">
46
46
  {renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } })}
47
47
  {renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })}
48
48
  </div>
@@ -7,12 +7,14 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
7
  import { Button } from '../../ui-kit/Button/Button';
8
8
  import { Text } from '../../ui-kit/Text/Text';
9
9
  import { appendSlash } from '../../utils/appendSlash';
10
+ import { deleteAllCookies } from '../../utils/deleteAllCookie';
10
11
  import { RollupItem } from '../RollupItem/RollupItem';
11
12
  import { Contacts } from './Contacts';
12
13
  import { findIconByHref } from './findIconByHref';
13
14
  import { type FooterDataProps } from './FooterDataProps';
14
15
  import { type FooterProps } from './FooterProps';
15
16
  import { HorizontalNavigation } from './HorizontalNavigation';
17
+ import { HorizontalNavigationLink } from './HorizontalNavigationLink';
16
18
  import { LinkList } from './LinkList';
17
19
  import { SocialMedia } from './SocialMedia';
18
20
  import { TextInformation } from './TextInformation';
@@ -48,6 +50,14 @@ export const Footer = JSX<FooterProps>(({ className, ...rest }) => {
48
50
  </Text>
49
51
  <div className="mt-xs">{mobileApps?.map(renderButton)}</div>
50
52
  </div>
53
+ <div className="py-lg border-t border-main-divider">
54
+ <HorizontalNavigationLink
55
+ text="Вернуться на прежнюю версию сайта"
56
+ className="text-l font-light max-w-[292px]"
57
+ href="https://old.rshb.ru"
58
+ onClick={deleteAllCookies}
59
+ />
60
+ </div>
51
61
  <HorizontalNavigation
52
62
  className="py-lg border-y border-main-divider"
53
63
  title={horizontalNavigationTitle}
@@ -1,10 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import type { ButtonVersion } from '../../model/ButtonVersion';
4
- import type { Picture } from '../../model/Picture';
5
4
  import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
6
5
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
7
6
  import { Text } from '../../ui-kit/Text/Text';
7
+ import { isIcon } from '../../utils/isIcon';
8
8
  import { style } from '../../utils/style';
9
9
  import { findIconByHref } from './findIconByHref';
10
10
 
@@ -22,7 +22,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
22
22
  const buttons: ButtonContent[] | undefined = media?.map((_) => {
23
23
  const { href, icon, text } = _;
24
24
  const { iconMapped } = findIconByHref(href);
25
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
25
+ const iconCustom = isIcon(icon) ? icon : iconMapped;
26
26
  const buttonText = showButtonText ? { text } : { text: '' };
27
27
 
28
28
  if (!hasText && text) {
@@ -60,5 +60,3 @@ export const SocialMedia = JSX<SocialMediaProps>(
60
60
  );
61
61
  },
62
62
  );
63
-
64
- const getFilteredIcon = (icon: Picture | undefined) => (icon?.src || icon?.icon ? icon : undefined);
@@ -12,7 +12,7 @@ export const TextInformation = JSX<FooterLink>(({ className = '', links }) => (
12
12
  </Text>
13
13
  </div>
14
14
  {links?.length ? (
15
- <div className="flex flex-col @lg:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg">
15
+ <div className="flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg">
16
16
  {links.map((_, i) => (
17
17
  <TextInformationLink key={String(i)} index={i} {..._} />
18
18
  ))}
@@ -22,7 +22,13 @@ export function renderBackwardButton(version: ButtonVersion, handleClick: () =>
22
22
  }}
23
23
  />
24
24
  </div>
25
- <Button version="link" text={text} ariaLabel={text} onClick={handleClick} />
25
+ <Button
26
+ version="link"
27
+ className="group-data-secondary:text-white/80"
28
+ text={text}
29
+ ariaLabel={text}
30
+ onClick={handleClick}
31
+ />
26
32
  </div>
27
33
  );
28
34
  }
@@ -1,7 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type IconName } from '../../icons/IconName';
3
3
  import { type UniBlockProps } from '../../model/JSXBlock';
4
- import { type Picture } from '../../model/Picture';
5
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
5
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
7
6
  import { Heading } from '../../ui-kit/Heading/Heading';
@@ -10,6 +9,7 @@ import { Img } from '../../ui-kit/Img/Img';
10
9
  import { RichText } from '../../ui-kit/RichText/RichText';
11
10
  import { Text } from '../../ui-kit/Text/Text';
12
11
  import { type TextColor } from '../../ui-kit/Text/TextProps';
12
+ import { isIcon } from '../../utils/isIcon';
13
13
  import { style } from '../../utils/style';
14
14
  import { type RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
15
15
 
@@ -36,7 +36,11 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
36
36
  {...rest}
37
37
  >
38
38
  <div className="w-full flex justify-between flex-row-reverse">
39
- {renderIconBlock(icon)}
39
+ {isIcon(icon) ? (
40
+ <div className={'w-10 h-7 sm:w-24 sm:h-16'}>
41
+ <Img image={icon} />
42
+ </div>
43
+ ) : null}
40
44
  {title ? <Heading headingType="h3" as="h3" title={title} /> : null}
41
45
  </div>
42
46
  <div className="w-full space-y-m">
@@ -59,12 +63,6 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
59
63
  ),
60
64
  );
61
65
 
62
- const renderIconBlock = (icon?: Picture) => (
63
- <div className={'w-10 h-7 sm:w-24 sm:h-16'}>
64
- {icon?.src || icon?.icon ? <Img image={icon} /> : null}
65
- </div>
66
- );
67
-
68
66
  const renderDescriptionBlock = (__html?: string) => (
69
67
  <div className="border-b border-main-divider pb-lg">
70
68
  <RichText __html={__html} />
@@ -7,9 +7,9 @@ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
7
7
  import { Img } from '../../ui-kit/Img/Img';
8
8
  import { RichText } from '../../ui-kit/RichText/RichText';
9
9
  import { assertUnreachable } from '../../utils/assertUnreachable';
10
+ import { isIcon } from '../../utils/isIcon';
10
11
  import { style } from '../../utils/style';
11
12
  import { Headline } from '../Headline/Headline';
12
- import { checkCanRenderIcon } from './checkCanRenderIcon';
13
13
  import { type DefaultStep, type Step, type StepsBlockContent } from './StepsBlockContent';
14
14
  import { STEPS_BLOCK_STYLE } from './StepsBlockStyleMaps';
15
15
 
@@ -128,7 +128,7 @@ const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step
128
128
  )}
129
129
  >
130
130
  <span className="flex max-w-full max-h-full self-center text-h4 text-secondary-text group-data-secondary:text-white">
131
- {checkCanRenderIcon(step?.icon) ? (
131
+ {isIcon(step?.icon) ? (
132
132
  <Img
133
133
  image={{ ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }}
134
134
  imageClassName="max-w-full max-h-full"
@@ -31,9 +31,9 @@ export const Tabs = JSX<TabsBlockProps>(
31
31
  (_) => _.type === 'group' && _.ref === router.query[TAB_QUERY_PARAM_KEY],
32
32
  ) || 0
33
33
  : 0;
34
-
34
+ const defaultTab = tabs[defaultTabIndex] || tabs[0];
35
35
  setActiveTabIndex(defaultTabIndex);
36
- fireTabEvent(tabs[defaultTabIndex]);
36
+ fireTabEvent(defaultTab);
37
37
  }, [isReady]);
38
38
 
39
39
  useEffect(() => {
@@ -57,10 +57,14 @@ export const Tabs = JSX<TabsBlockProps>(
57
57
  const handleChange = useCallback(
58
58
  (_: TabItemBase) => {
59
59
  const index = tabsControlItems.indexOf(_);
60
+ const tab = tabs[index];
60
61
 
61
62
  setActiveTabIndex(index);
62
- fireTabEvent(tabs[index]);
63
- updateUrlSearchTabParam(_);
63
+ fireTabEvent(tab);
64
+
65
+ if (tab.type === 'group') {
66
+ updateUrlSearchTabParam(_);
67
+ }
64
68
  },
65
69
  [tabs, tabsControlItems],
66
70
  );
@@ -81,7 +81,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
81
81
  },
82
82
  );
83
83
 
84
- const leftOrRightImage = (img: VNode, directionRight: boolean) =>
84
+ export const leftOrRightImage = (img: VNode, directionRight: boolean) =>
85
85
  directionRight ? { rightImage: img } : { leftImage: img };
86
86
 
87
87
  const renderTags = (tags: string[]) => (tags?.length ? <Tags tags={tags} /> : null);
@@ -38,7 +38,7 @@ export const BaseTile = JSX<BaseTileProps>(
38
38
  }) => (
39
39
  <div
40
40
  className={style(
41
- 'relative flex flex-col gap-3xl font-sans overflow-hidden',
41
+ 'relative flex flex-col gap-3xl overflow-hidden',
42
42
  padding || defaultPadding,
43
43
  className,
44
44
  )}
@@ -46,10 +46,11 @@ export const BaseTile = JSX<BaseTileProps>(
46
46
  {title ? <div className="relative">{title}</div> : null}
47
47
  <div
48
48
  className={style(
49
- 'grow relative flex flex-col-reverse @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl',
49
+ 'grow relative flex flex-col @md:flex-row gap-3xl',
50
+ leftImage ? 'self-start' : '',
50
51
  )}
51
52
  >
52
- {renderImageContainer(leftImage, { imageAlign })}
53
+ {renderImageContainer(leftImage, { imageAlign, className: 'm-auto' })}
53
54
  <div
54
55
  className={style(
55
56
  'grid gap-3xl',
@@ -66,7 +67,7 @@ export const BaseTile = JSX<BaseTileProps>(
66
67
  '@xl:justify-self-end @xl:col-start-2',
67
68
  buttons ? rowSpanStyle(isImageAlwaysOnRight) : '',
68
69
  positionStyle(isImageAlwaysOnRight),
69
- isImageSecondary ? 'hidden @xl:block' : '',
70
+ imageSecondaryStyle(isImageSecondary),
70
71
  ),
71
72
  imageAlign,
72
73
  })}
@@ -101,3 +102,6 @@ const renderImageContainer = (
101
102
  {image}
102
103
  </div>
103
104
  ) : null;
105
+
106
+ const imageSecondaryStyle = (isImageSecondary: boolean) =>
107
+ isImageSecondary ? 'hidden @md:block' : '';
@@ -6,17 +6,22 @@ import { type ButtonProps } from './ButtonProps';
6
6
 
7
7
  export const ButtonInner = JSX<ButtonProps>((props) => {
8
8
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
9
+ const iconHideStyle = isWithText(props) ? 'hidden lg:block' : '';
9
10
 
10
11
  return (
11
12
  <div className={style(getButtonStyle(props), 'flex gap-xs')}>
12
- {appendLeft ? <div className={iconStyleMap[version]}>{appendLeft}</div> : null}
13
+ {appendLeft ? (
14
+ <div className={style(iconHideStyle, iconStyleMap[version])}>{appendLeft}</div>
15
+ ) : null}
13
16
  {isWithText(props) ? (
14
17
  <div className="whitespace-pre">
15
18
  {aboveText ? <div className="text-xs font-light text-left">{aboveText}</div> : null}
16
19
  <div className={`text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`}>{text}</div>
17
20
  </div>
18
21
  ) : null}
19
- {appendRight ? <div className={iconStyleMap[version]}>{appendRight}</div> : null}
22
+ {appendRight ? (
23
+ <div className={style(iconHideStyle, iconStyleMap[version])}>{appendRight}</div>
24
+ ) : null}
20
25
  </div>
21
26
  );
22
27
  });
@@ -1,4 +1,5 @@
1
1
  import { type Picture } from '../../model/Picture';
2
+ import { isIcon } from '../../utils/isIcon';
2
3
  import { style } from '../../utils/style';
3
4
  import { Img } from '../Img/Img';
4
5
  import { Button } from './Button';
@@ -57,7 +58,7 @@ const getIconVersion = (icon: Picture | undefined, version = 'secondary') => {
57
58
  };
58
59
 
59
60
  const renderButtonIcon = (icon: Picture) =>
60
- icon?.icon || icon?.src ? (
61
+ isIcon(icon) ? (
61
62
  <Img
62
63
  image={icon}
63
64
  width={String(icon?.size?.width || DEFAULT_ICON_W)}
@@ -35,8 +35,12 @@ export const LocationDialog = JSX<UniBlockProps>(() => {
35
35
 
36
36
  return (
37
37
  <Dialog
38
+ className="pb-20"
38
39
  head={
39
40
  <div>
41
+ <Text size="text-h4" color="text-primary-text">
42
+ Выберите филиал
43
+ </Text>
40
44
  {currentLocation ? (
41
45
  <div className="mb-s">
42
46
  <Text size="text-l" font="font-light">
@@ -61,7 +65,7 @@ export const LocationDialog = JSX<UniBlockProps>(() => {
61
65
  .map(renderRegion(handleChangeLocation))}
62
66
  </div>
63
67
  ) : (
64
- <div className="columns-2 sm:columns-5">
68
+ <div className="columns-1 sm:columns-5">
65
69
  {Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation))}
66
70
  </div>
67
71
  )}
@@ -6,13 +6,13 @@ import { Text } from '../Text/Text';
6
6
 
7
7
  export const renderForeignOffices = (foreignOffices: ForeignOffice[] | undefined) =>
8
8
  foreignOffices?.length ? (
9
- <div className="border-t border-main-divider mt-2xs pt-2xs">
9
+ <div className="sm:border-t sm:border-main-divider mt-2xs pt-2xs">
10
10
  <div className="mb-m">
11
11
  <Text size="text-m" font="font-light" color="text-secondary-text">
12
12
  Представительства за рубежом:
13
13
  </Text>
14
14
  </div>
15
- <div className="flex gap-5xl">
15
+ <div className="flex flex-col sm:flex-row gap-5xl">
16
16
  {foreignOffices.map((office, i: number) => (
17
17
  <ForeignOffice key={String(i)} {...office} />
18
18
  ))}
@@ -25,11 +25,13 @@ const ForeignOffice = JSX<ForeignOffice>(({ icon, ...rest }) => {
25
25
  const { text, target, href, onClick } = link(rest);
26
26
 
27
27
  return (
28
- <div className="flex gap-s">
28
+ <div className="flex gap-s items-center">
29
29
  {icon ? <Img pathPrefix="/wcms-resources/" image={icon} /> : null}
30
30
  {text ? (
31
31
  <a className="hover:text-primary-hover" href={href} target={target} onClick={onClick}>
32
- {text}
32
+ <Text size="text-l" font="font-light" color="text-primary-text">
33
+ {text}
34
+ </Text>
33
35
  </a>
34
36
  ) : null}
35
37
  </div>
@@ -1,15 +1,18 @@
1
1
  import { type Region } from '../../hooks/useRegions';
2
+ import { Text } from '../Text/Text';
2
3
 
3
4
  export const renderRegion = (onChangeLocation?: (region: Region) => void) => (region: Region) =>
4
5
  (
5
- <div key={region.id} className="mb-2xs">
6
+ <div key={region.id} className="mb-xs sm:mb-2xs">
6
7
  <button
7
8
  className="cursor-pointer hover:text-primary-hover"
8
9
  onClick={() => {
9
10
  onChangeLocation && onChangeLocation(region);
10
11
  }}
11
12
  >
12
- {region.name || ''}
13
+ <Text size="text-l" font="font-light">
14
+ {region.name || ''}
15
+ </Text>
13
16
  </button>
14
17
  </div>
15
18
  );
@@ -0,0 +1,8 @@
1
+ export const deleteAllCookies = () => {
2
+ const cookies = globalThis.document?.cookie.split(';') ?? [];
3
+
4
+ for (const cookie of cookies) {
5
+ const [name] = cookie.split('=');
6
+ globalThis.document.cookie = `${name}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;
7
+ }
8
+ };
@@ -0,0 +1,3 @@
1
+ import { type Picture } from '../model/Picture';
2
+
3
+ export const isIcon = (icon: Picture | undefined): boolean => Boolean(icon?.src || icon?.icon);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.24",
3
+ "version": "0.14.26",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -12,7 +12,6 @@ import { CarouselCard } from './CarouselCard/CarouselCard';
12
12
  import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
13
13
  import { CarouselLinks } from './CarouselLinks/CarouselLinks';
14
14
  import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
15
- import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
16
15
  import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
17
16
  import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
18
17
  import { ComparisonTable } from './ComparisonTable/ComparisonTable';
@@ -58,7 +57,6 @@ export const Blocks: BlocksRegistry = {
58
57
  CarouselCatalogCard,
59
58
  CarouselLinks,
60
59
  CarouselProductCard,
61
- CarouselProgramsCard,
62
60
  CarouselRecommendationCard,
63
61
  CarouselTariffsCard,
64
62
  ComparisonTable,
@@ -14,7 +14,6 @@ import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
14
14
  import { CarouselInvestmentCard } from './CarouselInvestmentCard/CarouselInvestmentCard';
15
15
  import { CarouselLinks } from './CarouselLinks/CarouselLinks';
16
16
  import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
17
- import { CarouselProgramsCard } from './CarouselProgramsCard/CarouselProgramsCard';
18
17
  import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
19
18
  import { CarouselRichTextCard } from './CarouselRichTextCard/CarouselRichTextCard';
20
19
  import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
@@ -73,7 +72,6 @@ export const Blocks: BlocksRegistry = {
73
72
  CarouselInvestmentCard,
74
73
  CarouselLinks,
75
74
  CarouselProductCard,
76
- CarouselProgramsCard,
77
75
  CarouselRecommendationCard,
78
76
  CarouselRichTextCard,
79
77
  CarouselTariffsCard,