@redneckz/wildless-cms-uni-blocks 0.13.4 → 0.13.6

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 (344) hide show
  1. package/bin/migration-scripts/0.13.4.js +30 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +168 -124
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  6. package/bundle/components/Carousel/CarouselContent.d.ts +6 -0
  7. package/bundle/components/Carousel/renderCarouselCards.d.ts +3 -1
  8. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  9. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  10. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  11. package/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
  12. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  13. package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  14. package/bundle/icons/IconName.d.ts +4 -2
  15. package/bundle/model/HeadlineType.d.ts +1 -1
  16. package/bundle/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  17. package/bundle/ui-kit/Input/InputProps.d.ts +1 -0
  18. package/bundle/ui-kit/List/ListContent.d.ts +2 -2
  19. package/bundle/ui-kit/Select/Select.d.ts +1 -0
  20. package/cosmos-static/icons/CourtHouseIcon.svg +1 -0
  21. package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  22. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  23. package/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
  24. package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  25. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  26. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  27. package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
  28. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  29. package/dist/components/ApplicationForm/renderRegion.js +1 -1
  30. package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  31. package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  32. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  33. package/dist/components/ButtonsBlock/ButtonsBlock.js +9 -1
  34. package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  35. package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  36. package/dist/components/Carousel/Carousel.js +2 -2
  37. package/dist/components/Carousel/Carousel.js.map +1 -1
  38. package/dist/components/Carousel/CarouselContent.d.ts +6 -0
  39. package/dist/components/Carousel/renderCarouselCards.d.ts +3 -1
  40. package/dist/components/Carousel/renderCarouselCards.js +12 -3
  41. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  42. package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  43. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  44. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  45. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  46. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  47. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  48. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  49. package/dist/components/Header/HeaderSubMenu.d.ts +1 -1
  50. package/dist/components/Header/HeaderSubMenu.js +4 -4
  51. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  52. package/dist/components/Headline/headlineVersionStyles.js +1 -1
  53. package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  54. package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  55. package/dist/icons/IconName.d.ts +4 -2
  56. package/dist/icons/IconName.js +2 -0
  57. package/dist/icons/IconName.js.map +1 -1
  58. package/dist/model/HeadlineType.d.ts +1 -1
  59. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  60. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  61. package/dist/ui-kit/DialogManager/DialogManager.js +9 -29
  62. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  63. package/dist/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  64. package/dist/ui-kit/DialogManager/useDialogsList.js +37 -0
  65. package/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  66. package/dist/ui-kit/Input/Input.js +2 -2
  67. package/dist/ui-kit/Input/Input.js.map +1 -1
  68. package/dist/ui-kit/Input/InputProps.d.ts +1 -0
  69. package/dist/ui-kit/List/List.js +2 -0
  70. package/dist/ui-kit/List/List.js.map +1 -1
  71. package/dist/ui-kit/List/ListContent.d.ts +2 -2
  72. package/dist/ui-kit/List/ListItem.js +1 -0
  73. package/dist/ui-kit/List/ListItem.js.map +1 -1
  74. package/dist/ui-kit/Select/Select.d.ts +1 -0
  75. package/dist/ui-kit/Select/Select.js +18 -4
  76. package/dist/ui-kit/Select/Select.js.map +1 -1
  77. package/lib/common.css +1 -1
  78. package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  79. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  80. package/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
  81. package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  82. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  83. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  84. package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
  85. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  86. package/lib/components/ApplicationForm/renderRegion.js +1 -1
  87. package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  88. package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  89. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  90. package/lib/components/ButtonsBlock/ButtonsBlock.js +9 -1
  91. package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  92. package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  93. package/lib/components/Carousel/Carousel.js +2 -2
  94. package/lib/components/Carousel/Carousel.js.map +1 -1
  95. package/lib/components/Carousel/CarouselContent.d.ts +6 -0
  96. package/lib/components/Carousel/renderCarouselCards.d.ts +3 -1
  97. package/lib/components/Carousel/renderCarouselCards.js +12 -3
  98. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  99. package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  100. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  101. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  102. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  103. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  104. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  105. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  106. package/lib/components/Header/HeaderSubMenu.d.ts +1 -1
  107. package/lib/components/Header/HeaderSubMenu.js +4 -4
  108. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  109. package/lib/components/Headline/headlineVersionStyles.js +1 -1
  110. package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  111. package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  112. package/lib/icons/IconName.d.ts +4 -2
  113. package/lib/icons/IconName.js +2 -0
  114. package/lib/icons/IconName.js.map +1 -1
  115. package/lib/model/HeadlineType.d.ts +1 -1
  116. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  117. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  118. package/lib/ui-kit/DialogManager/DialogManager.js +9 -29
  119. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  120. package/lib/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  121. package/lib/ui-kit/DialogManager/useDialogsList.js +34 -0
  122. package/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  123. package/lib/ui-kit/Input/Input.js +2 -2
  124. package/lib/ui-kit/Input/Input.js.map +1 -1
  125. package/lib/ui-kit/Input/InputProps.d.ts +1 -0
  126. package/lib/ui-kit/List/List.js +2 -0
  127. package/lib/ui-kit/List/List.js.map +1 -1
  128. package/lib/ui-kit/List/ListContent.d.ts +2 -2
  129. package/lib/ui-kit/List/ListItem.js +1 -0
  130. package/lib/ui-kit/List/ListItem.js.map +1 -1
  131. package/lib/ui-kit/Select/Select.d.ts +1 -0
  132. package/lib/ui-kit/Select/Select.js +19 -5
  133. package/lib/ui-kit/Select/Select.js.map +1 -1
  134. package/mobile/bundle/bundle.umd.js +139 -31
  135. package/mobile/bundle/bundle.umd.min.js +1 -1
  136. package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  137. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +6 -0
  138. package/mobile/bundle/components/Carousel/renderCarouselCards.d.ts +3 -1
  139. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  140. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  141. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  142. package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
  143. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  144. package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  145. package/mobile/bundle/icons/IconName.d.ts +4 -2
  146. package/mobile/bundle/model/HeadlineType.d.ts +1 -1
  147. package/mobile/bundle/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  148. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -0
  149. package/mobile/bundle/ui-kit/List/ListContent.d.ts +2 -2
  150. package/mobile/bundle/ui-kit/Select/Select.d.ts +1 -0
  151. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  152. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  153. package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
  154. package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  155. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  156. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  157. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
  158. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  159. package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
  160. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  161. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  162. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  163. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js +9 -1
  164. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  165. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  166. package/mobile/dist/components/Carousel/Carousel.js +2 -2
  167. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  168. package/mobile/dist/components/Carousel/CarouselContent.d.ts +6 -0
  169. package/mobile/dist/components/Carousel/renderCarouselCards.d.ts +3 -1
  170. package/mobile/dist/components/Carousel/renderCarouselCards.js +12 -3
  171. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  172. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  173. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  174. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  175. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  176. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  177. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  178. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  179. package/mobile/dist/components/Footer/buttonSizeStyles.js +1 -1
  180. package/mobile/dist/components/Header/HeaderSubMenu.d.ts +1 -1
  181. package/mobile/dist/components/Header/HeaderSubMenu.js +4 -4
  182. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  183. package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -1
  184. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  185. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  186. package/mobile/dist/icons/IconName.d.ts +4 -2
  187. package/mobile/dist/icons/IconName.js +2 -0
  188. package/mobile/dist/icons/IconName.js.map +1 -1
  189. package/mobile/dist/model/HeadlineType.d.ts +1 -1
  190. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  191. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  192. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +9 -29
  193. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  194. package/mobile/dist/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  195. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js +37 -0
  196. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  197. package/mobile/dist/ui-kit/Input/Input.js +2 -2
  198. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  199. package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -0
  200. package/mobile/dist/ui-kit/List/List.js +2 -0
  201. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  202. package/mobile/dist/ui-kit/List/ListContent.d.ts +2 -2
  203. package/mobile/dist/ui-kit/List/ListItem.js +1 -0
  204. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  205. package/mobile/dist/ui-kit/Select/Select.d.ts +1 -0
  206. package/mobile/dist/ui-kit/Select/Select.js +18 -4
  207. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  208. package/mobile/lib/common.css +1 -1
  209. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  210. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  211. package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
  212. package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  213. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  214. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  215. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
  216. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  217. package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
  218. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  219. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  220. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  221. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js +9 -1
  222. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  223. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  224. package/mobile/lib/components/Carousel/Carousel.js +2 -2
  225. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  226. package/mobile/lib/components/Carousel/CarouselContent.d.ts +6 -0
  227. package/mobile/lib/components/Carousel/renderCarouselCards.d.ts +3 -1
  228. package/mobile/lib/components/Carousel/renderCarouselCards.js +12 -3
  229. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  230. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  231. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  232. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  233. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  234. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  235. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  236. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  237. package/mobile/lib/components/Footer/buttonSizeStyles.js +1 -1
  238. package/mobile/lib/components/Header/HeaderSubMenu.d.ts +1 -1
  239. package/mobile/lib/components/Header/HeaderSubMenu.js +4 -4
  240. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  241. package/mobile/lib/components/Headline/headlineVersionStyles.js +1 -1
  242. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  243. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  244. package/mobile/lib/icons/IconName.d.ts +4 -2
  245. package/mobile/lib/icons/IconName.js +2 -0
  246. package/mobile/lib/icons/IconName.js.map +1 -1
  247. package/mobile/lib/model/HeadlineType.d.ts +1 -1
  248. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  249. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  250. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +9 -29
  251. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  252. package/mobile/lib/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  253. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js +34 -0
  254. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  255. package/mobile/lib/ui-kit/Input/Input.js +2 -2
  256. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  257. package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -0
  258. package/mobile/lib/ui-kit/List/List.js +2 -0
  259. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  260. package/mobile/lib/ui-kit/List/ListContent.d.ts +2 -2
  261. package/mobile/lib/ui-kit/List/ListItem.js +1 -0
  262. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  263. package/mobile/lib/ui-kit/Select/Select.d.ts +1 -0
  264. package/mobile/lib/ui-kit/Select/Select.js +19 -5
  265. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  266. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -1
  267. package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +1 -0
  268. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  269. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
  270. package/mobile/src/components/ApplicationForm/renderRegion.tsx +1 -0
  271. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +1 -0
  272. package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +22 -5
  273. package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
  274. package/mobile/src/components/Carousel/Carousel.example.json +2 -1
  275. package/mobile/src/components/Carousel/Carousel.tsx +2 -1
  276. package/mobile/src/components/Carousel/CarouselContent.ts +7 -0
  277. package/mobile/src/components/Carousel/renderCarouselCards.tsx +20 -4
  278. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  279. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
  280. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +7 -7
  281. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
  282. package/mobile/src/components/Footer/buttonSizeStyles.ts +1 -1
  283. package/mobile/src/components/Header/HeaderSubMenu.tsx +17 -15
  284. package/mobile/src/components/Headline/Headline.example.json +1 -1
  285. package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -1
  286. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -5
  287. package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -8
  288. package/mobile/src/icons/CourtHouseIcon.svg +1 -0
  289. package/mobile/src/icons/IconName.ts +4 -4
  290. package/mobile/src/model/HeadlineType.ts +1 -1
  291. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  292. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +9 -34
  293. package/mobile/src/ui-kit/DialogManager/useDialogsList.ts +50 -0
  294. package/mobile/src/ui-kit/Input/Input.tsx +2 -0
  295. package/mobile/src/ui-kit/Input/InputProps.ts +1 -0
  296. package/mobile/src/ui-kit/List/List.tsx +2 -0
  297. package/mobile/src/ui-kit/List/ListContent.ts +2 -2
  298. package/mobile/src/ui-kit/List/ListItem.tsx +1 -0
  299. package/mobile/src/ui-kit/Select/Select.tsx +46 -12
  300. package/package.json +1 -1
  301. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -1
  302. package/src/components/ApplicationForm/PhoneInputControl.tsx +1 -0
  303. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  304. package/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
  305. package/src/components/ApplicationForm/renderRegion.tsx +1 -0
  306. package/src/components/ApplicationForm/renderRegionDepartment.tsx +1 -0
  307. package/src/components/ButtonsBlock/ButtonsBlock.tsx +22 -5
  308. package/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
  309. package/src/components/Carousel/Carousel.example.json +2 -1
  310. package/src/components/Carousel/Carousel.fixture.tsx +2 -0
  311. package/src/components/Carousel/Carousel.tsx +2 -1
  312. package/src/components/Carousel/CarouselContent.ts +7 -0
  313. package/src/components/Carousel/renderCarouselCards.tsx +20 -4
  314. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +12 -9
  315. package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  316. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
  317. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +1 -1
  318. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +7 -7
  319. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
  320. package/src/components/Header/HeaderSubMenu.tsx +17 -15
  321. package/src/components/Headline/Headline.example.json +1 -1
  322. package/src/components/Headline/headlineVersionStyles.ts +1 -1
  323. package/src/components/LinkDocs/LinkDocsContent.ts +3 -5
  324. package/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -8
  325. package/src/icons/CourtHouseIcon.svg +1 -0
  326. package/src/icons/IconName.ts +4 -1
  327. package/src/model/HeadlineType.ts +1 -1
  328. package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  329. package/src/ui-kit/DialogManager/DialogManager.tsx +9 -34
  330. package/src/ui-kit/DialogManager/useDialogsList.ts +50 -0
  331. package/src/ui-kit/Input/Input.tsx +2 -0
  332. package/src/ui-kit/Input/InputProps.ts +1 -0
  333. package/src/ui-kit/List/List.tsx +2 -0
  334. package/src/ui-kit/List/ListContent.ts +2 -2
  335. package/src/ui-kit/List/ListItem.tsx +1 -0
  336. package/src/ui-kit/Select/Select.tsx +46 -12
  337. package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
  338. package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
  339. package/dist/components/Footer/buttonSizeStyles.mobile.js +0 -7
  340. package/dist/components/Footer/buttonSizeStyles.mobile.js.map +0 -1
  341. package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
  342. package/lib/components/Footer/buttonSizeStyles.mobile.js +0 -5
  343. package/lib/components/Footer/buttonSizeStyles.mobile.js.map +0 -1
  344. package/src/components/Footer/buttonSizeStyles.mobile.ts +0 -6
@@ -5,12 +5,14 @@ import { ListItem } from './ListItem';
5
5
  import type { ListProps } from './ListProps';
6
6
 
7
7
  const TEXT_SIZE_MAP: Record<ListItemSize, string> = {
8
+ XS: 'text-m font-light',
8
9
  S: 'text-l font-light',
9
10
  M: 'text-h6',
10
11
  L: 'text-h5',
11
12
  };
12
13
 
13
14
  const ITEM_INDENT_MAP: Record<ListItemSize, string> = {
15
+ XS: 'ml-2xs',
14
16
  S: 'ml-xs',
15
17
  M: 'ml-s',
16
18
  L: 'ml-m',
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @title Размер пунктов списка
3
- * @enumNames ["Маленький", "Средний", "Большой"]
3
+ * @enumNames ["Очень маленький", "Маленький", "Средний", "Большой"]
4
4
  */
5
- export type ListItemSize = 'S' | 'M' | 'L';
5
+ export type ListItemSize = 'XS' | 'S' | 'M' | 'L';
6
6
 
7
7
  export interface ListContent {
8
8
  /** @title Список */
@@ -16,6 +16,7 @@ const DOT_SIZE_MAP = {
16
16
  L: 'w-1.5 h-1.5 mr-m', // TODO: Действительно нужен этот вариант? отличается только margin
17
17
  M: 'w-1.5 h-1.5 mr-s',
18
18
  S: 'w-1 h-1 mr-xs',
19
+ XS: 'w-1 h-1 mr-xs',
19
20
  };
20
21
 
21
22
  export const ListItem = JSX<ListItemProps>(
@@ -1,11 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useBool } from '../../hooks/useBool';
4
4
  import { useOutsideClick } from '../../hooks/useOutsideClick';
5
5
  import { LabelProps } from '../../model/HeadlineType';
6
+ import { jaroWinklerDistance } from '../../services/search/jaroWinklerDistance';
6
7
  import { Text } from '../../ui-kit/Text/Text';
7
8
  import { style } from '../../utils/style';
8
9
  import { Icon } from '../Icon/Icon';
10
+ import { Input } from '../Input/Input';
9
11
 
10
12
  export interface Option {
11
13
  key: string;
@@ -20,6 +22,7 @@ export type SelectProps = LabelProps & {
20
22
  isBorder?: boolean;
21
23
  placeholder?: string;
22
24
  onChange?: (value: Option) => void;
25
+ isSearch?: boolean;
23
26
  };
24
27
 
25
28
  export const Select = JSX<SelectProps>(
@@ -32,13 +35,19 @@ export const Select = JSX<SelectProps>(
32
35
  isBorder = true,
33
36
  placeholder = '',
34
37
  onChange,
38
+ isSearch = false,
35
39
  }) => {
36
40
  const [isOpen, { setFalse: close, toggle }] = useBool();
37
- const wrapperRef = useOutsideClick<HTMLDivElement>(close);
41
+ const [searchValue, setSearchValue] = useState('');
42
+ const reset = useCallback(() => {
43
+ close();
44
+ setSearchValue('');
45
+ }, []);
46
+ const wrapperRef = useOutsideClick<HTMLDivElement>(reset);
38
47
 
39
48
  const handleChange = useCallback(
40
49
  (option: Option) => {
41
- close();
50
+ reset();
42
51
  onChange && onChange(option);
43
52
  },
44
53
  [onChange],
@@ -48,17 +57,11 @@ export const Select = JSX<SelectProps>(
48
57
 
49
58
  return (
50
59
  <div className={className} ref={wrapperRef}>
51
- {label ? (
52
- <div className="mb-xs">
53
- <Text size="text-m" color="text-primary-text" font="font-light">
54
- {label}
55
- </Text>
56
- </div>
57
- ) : null}
60
+ {renderLabel(label)}
58
61
  <div className={style('relative', isOpen ? 'z-20' : 'z-10')}>
59
62
  <div
60
63
  className={style(
61
- 'text-l flex justify-between items-center text-primary-text cursor-pointer',
64
+ 'text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10',
62
65
  getBorderStyle(isBorder, valid),
63
66
  )}
64
67
  onClick={toggle}
@@ -73,10 +76,13 @@ export const Select = JSX<SelectProps>(
73
76
  height="16"
74
77
  />
75
78
  </div>
79
+ {isSearch ? renderSearch(isOpen, searchValue, setSearchValue) : null}
76
80
  {options?.length ? (
77
81
  <div className={style('h-0', isOpen ? '' : 'overflow-hidden')}>
78
82
  <div className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
79
- {options.map(renderOption(handleChange, isOpen, isSelected))}
83
+ {getFilteredOptions(options, searchValue).map(
84
+ renderOption(handleChange, isOpen, isSelected),
85
+ )}
80
86
  </div>
81
87
  </div>
82
88
  ) : null}
@@ -86,6 +92,34 @@ export const Select = JSX<SelectProps>(
86
92
  },
87
93
  );
88
94
 
95
+ const renderLabel = (label?: string) =>
96
+ label ? (
97
+ <div className="mb-xs">
98
+ <Text size="text-m" color="text-primary-text" font="font-light">
99
+ {label}
100
+ </Text>
101
+ </div>
102
+ ) : null;
103
+
104
+ const getFilteredOptions = (options: Option[], searchValue: string) => {
105
+ return searchValue
106
+ ? options.filter(
107
+ (_) => jaroWinklerDistance(_.text?.toLowerCase())(searchValue.toLowerCase()) >= 0.6,
108
+ )
109
+ : options;
110
+ };
111
+
112
+ const renderSearch = (
113
+ isOpen: boolean,
114
+ searchValue: string,
115
+ setSearchValue: (value: string) => void,
116
+ ) =>
117
+ isOpen ? (
118
+ <div className={style('absolute top-0 w-full h-full z-20')}>
119
+ <Input type="text" autoFocus value={searchValue} onChange={setSearchValue} />
120
+ </div>
121
+ ) : null;
122
+
89
123
  const renderOption =
90
124
  (
91
125
  handleChange: (option: Option) => void,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -28,6 +28,7 @@ const initialFormState: CreditFormState = {
28
28
  };
29
29
 
30
30
  const creditValidator = objectValidator({
31
+ fullName: defaultValidator,
31
32
  annualRevenue: defaultValidator,
32
33
  inn: innValidator,
33
34
  name: nameValidator,
@@ -65,7 +66,7 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
65
66
 
66
67
  return (
67
68
  <form className="container space-y-m" onSubmit={formProps.onSubmit}>
68
- <Heading headingType="h6" title="Параметры кредита" className="sm:text-center" />
69
+ <Heading headingType="h6" title="Параметры" className="sm:text-center" />
69
70
  {renderCreditParameters(field)}
70
71
  <Heading headingType="h6" title="Данные организации" className="sm:text-center" />
71
72
  {renderCreditDataOrganization(field)}
@@ -13,6 +13,7 @@ export const PhoneInputControl = JSX<InputControlProps>(
13
13
  value={value}
14
14
  onChange={onChange}
15
15
  onBlur={onBlur}
16
+ placeholder="+7 (___) ___-__-__"
16
17
  />
17
18
  <div className="h-2">
18
19
  {error ? (
@@ -11,7 +11,7 @@ export const renderCreditDataOrganization = (field: FormFieldRegisterer<CreditFo
11
11
  <InputControl
12
12
  className="shrink-0 w-full"
13
13
  label="Наименование организации"
14
- {...field('fullName')}
14
+ {...withValidator(field('fullName'), defaultValidator)}
15
15
  />
16
16
  <InputControl
17
17
  className="shrink-0 w-full"
@@ -16,7 +16,7 @@ export const renderCreditParameters = (field: FormFieldRegisterer<CreditFormStat
16
16
  <div className="sm:w-1/2">
17
17
  <label>
18
18
  <Text size="text-m" font="font-light">
19
- Сумма кредита, ₽
19
+ Сумма, ₽
20
20
  </Text>
21
21
  </label>
22
22
  <InputRange
@@ -29,7 +29,7 @@ export const renderCreditParameters = (field: FormFieldRegisterer<CreditFormStat
29
29
  <div className="sm:w-1/2">
30
30
  <label>
31
31
  <Text size="text-m" font="font-light">
32
- Срок кредита, месяцев
32
+ Срок, месяцев
33
33
  </Text>
34
34
  </label>
35
35
  <InputRange
@@ -15,6 +15,7 @@ export const renderRegion = ({ regions, field }: RegionProps) => (
15
15
  className="w-full"
16
16
  label="Регион"
17
17
  placeholder="Выберите регион"
18
+ isSearch
18
19
  options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
19
20
  {...withValidator(field('region'), defaultValidator)}
20
21
  />
@@ -18,6 +18,7 @@ export const renderRegionDepartment = ({ regions, branches, field }: RegionDepar
18
18
  <SelectControl
19
19
  label="Регион"
20
20
  placeholder="Выберите регион"
21
+ isSearch
21
22
  options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
22
23
  {...withValidator(field('region'), defaultValidator)}
23
24
  />
@@ -4,11 +4,28 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
5
  import { style } from '../../utils/style';
6
6
  import type { ButtonsBlockContent } from './ButtonsBlockContent';
7
+ import type { Align } from '../../model/Align';
7
8
 
8
9
  interface ButtonsBlockProps extends ButtonsBlockContent, UniBlockProps {}
9
10
 
10
- export const ButtonsBlock = JSX<ButtonsBlockProps>(({ buttons, className, ...rest }) => (
11
- <BlockWrapper className={style('!bg-transparent', className)} defaultPadding="p-0" {...rest}>
12
- {renderButtonsSection(buttons)}
13
- </BlockWrapper>
14
- ));
11
+ const alignStyleMap: Record<Align, string> = {
12
+ start: 'justify-start',
13
+ center: 'justify-center',
14
+ end: 'justify-end',
15
+ };
16
+
17
+ export const ButtonsBlock = JSX<ButtonsBlockProps>(
18
+ ({ buttons, className = '', align, ...rest }) => {
19
+ const alignStyle = align ? style('flex', alignStyleMap[align]) : '';
20
+
21
+ return (
22
+ <BlockWrapper
23
+ className={style('!bg-transparent', alignStyle, className)}
24
+ defaultPadding="p-0"
25
+ {...rest}
26
+ >
27
+ {renderButtonsSection(buttons)}
28
+ </BlockWrapper>
29
+ );
30
+ },
31
+ );
@@ -1,4 +1,5 @@
1
1
  import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
2
+ import type { Align } from '../../model/Align';
2
3
 
3
4
  /**
4
5
  * @title Блок кнопок
@@ -6,4 +7,5 @@ import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
6
7
  export interface ButtonsBlockContent {
7
8
  /** @title Кнопки */
8
9
  buttons?: ButtonContent[];
10
+ align?: Align;
9
11
  }
@@ -4,5 +4,6 @@
4
4
  "arrowsPadded": true,
5
5
  "isCycle": false,
6
6
  "isPadding": true,
7
- "isAlignCenter": false
7
+ "isAlignCenter": false,
8
+ "cardSize": "normal"
8
9
  }
@@ -187,6 +187,7 @@ export default {
187
187
  <Carousel
188
188
  className="col-span-12"
189
189
  visibleItemCount={0}
190
+ cardSize="big"
190
191
  block={{
191
192
  type: 'Carousel',
192
193
  blocks: new Array(6).fill({
@@ -203,6 +204,7 @@ export default {
203
204
  <Carousel
204
205
  className="col-span-12"
205
206
  visibleItemCount={0}
207
+ cardSize="big"
206
208
  block={{
207
209
  type: 'Carousel',
208
210
  blocks: new Array(6).fill({
@@ -26,6 +26,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
26
26
  showDots,
27
27
  arrowsPadded = true,
28
28
  isGap = true,
29
+ cardSize = 'normal',
29
30
  ...rest
30
31
  }) => {
31
32
  const { blocks: childBlocks = [] } = rest.block || {};
@@ -55,7 +56,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
55
56
  gap={isGap ? ITEMS_GAP : undefined}
56
57
  onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
57
58
  >
58
- {renderCarouselCards({ noCardBorder, activeIndex, ...rest })}
59
+ {renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest })}
59
60
  </SwipeListContainer>
60
61
  <CarouselScrollButtons
61
62
  scroll={scroll}
@@ -1,5 +1,11 @@
1
1
  import type { UniBlockContent } from '../../model/JSXBlock';
2
2
 
3
+ /**
4
+ * @title Размер карточек
5
+ * @enumNames ["Нормальный", "Большой"]
6
+ */
7
+ export type CardSizeMode = 'normal' | 'big';
8
+
3
9
  /**
4
10
  * @title Карусель
5
11
  */
@@ -17,4 +23,5 @@ export type CarouselContent = UniBlockContent & {
17
23
  isGap?: boolean;
18
24
  /** @title Не показывать контур на карточках */
19
25
  noCardBorder?: boolean;
26
+ cardSize?: CardSizeMode;
20
27
  };
@@ -5,14 +5,21 @@ import type { BlockDef } from '../../model/ContentPageDef';
5
5
  import type { UniBlockProps } from '../../model/JSXBlock';
6
6
  import { style } from '../../utils/style';
7
7
  import { renderCardHighlight } from './renderCardHighlight';
8
+ import type { CardSizeMode } from './CarouselContent';
8
9
 
9
10
  const cardBaseStyle = 'relative h-full';
10
11
 
12
+ const CARD_SIZE_MAP: Record<CardSizeMode, string> = {
13
+ normal: 'sm:min-w-96',
14
+ big: 'sm:min-w-[515px]',
15
+ };
16
+
11
17
  export const renderCarouselCards = ({
12
18
  noCardBorder,
13
19
  activeIndex,
20
+ cardSize = 'normal',
14
21
  ...rest
15
- }: UniBlockProps & { noCardBorder?: boolean; activeIndex?: number }) => {
22
+ }: UniBlockProps & { noCardBorder?: boolean; activeIndex?: number; cardSize?: CardSizeMode }) => {
16
23
  const { blocks: childBlocks } = rest.block || {};
17
24
  const someCardsHighlighted = childBlocks?.some(isCardHighlighted);
18
25
 
@@ -21,7 +28,11 @@ export const renderCarouselCards = ({
21
28
  renderProps: (block: BlockDef, options: BlockRendererOptions, blockIndex) => (
22
29
  <div className={cardWrapperStyle(block, { someCardsHighlighted })}>
23
30
  {renderBlock(block, options, {
24
- className: cardStyle(block, { someCardsHighlighted, showBorder: !noCardBorder }),
31
+ className: cardStyle(block, {
32
+ someCardsHighlighted,
33
+ showBorder: !noCardBorder,
34
+ cardSize,
35
+ }),
25
36
  blockIndex,
26
37
  isActive: blockIndex === activeIndex,
27
38
  })}
@@ -44,11 +55,16 @@ const cardWrapperStyle = (
44
55
 
45
56
  const cardStyle = (
46
57
  _: BlockDef | undefined,
47
- { someCardsHighlighted, showBorder }: { someCardsHighlighted?: boolean; showBorder?: boolean },
58
+ {
59
+ someCardsHighlighted,
60
+ showBorder,
61
+ cardSize = 'normal',
62
+ }: { someCardsHighlighted?: boolean; showBorder?: boolean; cardSize?: CardSizeMode },
48
63
  ) =>
49
64
  style(
50
65
  cardBaseStyle,
51
- 'min-w-80 sm:min-w-96',
66
+ 'min-w-80',
67
+ CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
52
68
  someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'),
53
69
  showBorder &&
54
70
  'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider',
@@ -21,14 +21,17 @@ const MAX_LINKS_COUNT = 10;
21
21
 
22
22
  export default {
23
23
  default: (
24
- <CarouselLinks
25
- links={links}
26
- title="О Банке"
27
- description={description}
28
- additionalDescription={additionalDescription}
29
- maxLinksCount={MAX_LINKS_COUNT}
30
- version="secondary"
31
- block={{ type: 'Carousel', blocks: new Array(1).fill(link).flat() }}
32
- />
24
+ <div className="container grid grid-cols-12">
25
+ <CarouselLinks
26
+ links={links}
27
+ title="О Банке"
28
+ description={description}
29
+ additionalDescription={additionalDescription}
30
+ maxLinksCount={MAX_LINKS_COUNT}
31
+ version="secondary"
32
+ className="col-span-12"
33
+ block={{ type: 'Carousel', blocks: new Array(1).fill(link).flat() }}
34
+ />
35
+ </div>
33
36
  ),
34
37
  };
@@ -53,7 +53,7 @@ const renderLinks = (links: LinkProps[], maxLinksCount: number) => {
53
53
 
54
54
  return (
55
55
  <Carousel
56
- className="sm:w-2/3 w-full p-0 sm:p-xs"
56
+ className="@container-normal sm:w-2/3 w-full p-0 sm:p-xs"
57
57
  version="secondary"
58
58
  itemCount={itemCount}
59
59
  arrowsPadded={false}
@@ -1,9 +1,12 @@
1
1
  import type { BulletsProps } from '../../model/Bullets';
2
- import type { AdditionalDescriptionProps, HeadlineSmallProps } from '../../model/HeadlineType';
2
+ import type {
3
+ AdditionalDescriptionProps,
4
+ AlignProps,
5
+ HeadlineSmallProps,
6
+ } from '../../model/HeadlineType';
3
7
  import type { UniBlockContent } from '../../model/JSXBlock';
4
8
  import type { IconProps } from '../../model/Picture';
5
9
  import type { LinkCommonProps } from '../../model/LinkProps';
6
- import type { TextAlign } from '../../ui-kit/Text/TextProps';
7
10
  import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
8
11
 
9
12
  /**
@@ -22,10 +25,10 @@ export type CarouselProductCardContent = UniBlockContent &
22
25
  AdditionalDescriptionProps &
23
26
  IconProps &
24
27
  BulletsProps &
25
- LinkCommonProps & {
28
+ LinkCommonProps &
29
+ AlignProps & {
26
30
  /** @title Список */
27
31
  items?: ListProps[];
28
- align?: TextAlign;
29
32
  /** @title Изображение на всю ширину */
30
33
  isImageFullWidth?: boolean;
31
34
  /** @title Картинка сверху над текстом */
@@ -89,7 +89,7 @@ export const CAROUSEL_RECOMMENDATION_CARD_SECONDARY: CarouselRecommendationCardC
89
89
  description: 'Описание',
90
90
  align: 'text-left',
91
91
  icon,
92
- items: ['Свежие новости', 'Акции и предложенияа', 'Ставки и катировки'],
92
+ items: ['Свежие новости', 'Акции и предложения', 'Ставки и котировки'],
93
93
  version: 'secondary',
94
94
  socialMedia: socialMediaWithoutText,
95
95
  };
@@ -1,6 +1,4 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
- import type { Picture } from '../../model/Picture';
4
2
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
3
  import { Img } from '../../ui-kit/Img/Img';
6
4
  import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
@@ -9,6 +7,8 @@ import { style } from '../../utils/style';
9
7
  import { SocialMedia } from '../Footer/SocialMedia';
10
8
  import { Headline } from '../Headline/Headline';
11
9
  import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
10
+ import type { UniBlockProps } from '../../model/JSXBlock';
11
+ import type { Picture } from '../../model/Picture';
12
12
 
13
13
  export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
14
14
 
@@ -27,20 +27,20 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
27
27
  }) => {
28
28
  return (
29
29
  <BlockWrapper
30
- className={style('relative group-data-gray:bg-main-divider/50 space-y-m', className)}
31
- defaultPadding="p-6xl"
30
+ className={style('relative group-data-gray:bg-main-divider/50', className)}
31
+ defaultPadding="p-3xl"
32
32
  {...rest}
33
33
  >
34
- <LinkWrapper href={href} target={target}>
34
+ <LinkWrapper href={href} target={target} className={'space-y-lg'}>
35
35
  <Headline
36
36
  title={title}
37
37
  description={description}
38
- headlineVersion="S"
38
+ headlineVersion="XS"
39
39
  isEmbedded={true}
40
40
  align={align}
41
41
  />
42
42
  {items.length ? (
43
- <List className="flex flex-col gap-xs" items={items} listItemSize="S" />
43
+ <List className="flex flex-col gap-xs" items={items} listItemSize="XS" />
44
44
  ) : null}
45
45
  {renderIcon(icon)}
46
46
  {socialMedia.length ? <SocialMedia media={socialMedia} /> : null}
@@ -1,9 +1,8 @@
1
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
1
+ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
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
5
  import type { ListContent } from '../../ui-kit/List/ListContent';
6
- import type { TextAlign } from '../../ui-kit/Text/TextProps';
7
6
  import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
8
7
 
9
8
  export type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
@@ -15,8 +14,8 @@ export type CarouselRecommendationCardContent = UniBlockContent &
15
14
  HeadlineCommonProps &
16
15
  ListContent &
17
16
  IconProps &
18
- LinkCommonProps & {
17
+ LinkCommonProps &
18
+ AlignProps & {
19
19
  /** @title Соц сети */
20
20
  socialMedia?: RecommendationSocialMedia[];
21
- align?: TextAlign;
22
21
  };
@@ -1,16 +1,16 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { useRouter } from '../../hooks/useRouter';
4
- import { findActiveSubItem } from './findActiveSubItem';
5
- import { DropdownMenu } from './DropdownMenu';
6
- import { HeaderSubMenuItem } from './HeaderSubMenuItem';
7
3
  import { projectSettings } from '../../ProjectSettings';
8
- import { HeaderChatBotButton } from './HeaderChatBotButton';
9
- import { InternetBankButton } from './InternetBankButton';
10
- import type { LinkProps } from '../../model/LinkProps';
11
4
  import type { IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
5
+ import { useRouter } from '../../hooks/useRouter';
12
6
  import type { BlockVersion } from '../../model/BlockVersion';
13
7
  import type { IconVersion } from '../../model/IconVersion';
8
+ import type { LinkProps } from '../../model/LinkProps';
9
+ import { DropdownMenu } from './DropdownMenu';
10
+ import { HeaderChatBotButton } from './HeaderChatBotButton';
11
+ import { HeaderSubMenuItem } from './HeaderSubMenuItem';
12
+ import { InternetBankButton } from './InternetBankButton';
13
+ import { findActiveSubItem } from './findActiveSubItem';
14
14
 
15
15
  export interface HeaderSubMenuProps {
16
16
  version?: BlockVersion;
@@ -68,14 +68,16 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
68
68
  activeItem={activeSubItem}
69
69
  />
70
70
  ) : null}
71
- {projectSettings.CHAT_BOT ? (
72
- <HeaderChatBotButton
73
- className="ml-4xl"
74
- iconVersion={iconVersion}
75
- chat={projectSettings.CHAT_BOT}
76
- />
77
- ) : null}
78
- <InternetBankButton version={version} internetBankUrl={internetBankUrl} />
71
+ <div className="flex">
72
+ {projectSettings.CHAT_BOT ? (
73
+ <HeaderChatBotButton
74
+ className="ml-4xl"
75
+ iconVersion={iconVersion}
76
+ chat={projectSettings.CHAT_BOT}
77
+ />
78
+ ) : null}
79
+ <InternetBankButton version={version} internetBankUrl={internetBankUrl} />
80
+ </div>
79
81
  </nav>
80
82
  );
81
83
  },
@@ -2,7 +2,7 @@
2
2
  "content": {
3
3
  "title": "Заголовок",
4
4
  "description": "Описание",
5
- "align": "center",
5
+ "align": "text-center",
6
6
  "headlineVersion": "M"
7
7
  }
8
8
  }
@@ -43,7 +43,7 @@ export const headlineVersionStyles: Record<
43
43
  },
44
44
  XS: {
45
45
  title: { headingType: 'h5', as: 'h2' },
46
- descriptionSize: 'text-l',
46
+ descriptionSize: 'text-m',
47
47
  descriptionWeight: 'font-light',
48
48
  descriptionStyle: 'mt-xs',
49
49
  },
@@ -1,10 +1,9 @@
1
1
  import { Attachment } from '../../model/Attachment';
2
2
  import { EmptyOption } from '../../model/EmptyOptionType';
3
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
+ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
4
4
  import type { UniBlockContent } from '../../model/JSXBlock';
5
5
  import type { LinkProps, Target } from '../../model/LinkProps';
6
6
  import type { IconProps } from '../../model/Picture';
7
- import type { TextAlign } from '../../ui-kit/Text/TextProps';
8
7
 
9
8
  /**
10
9
  * @title Отображение списка
@@ -52,10 +51,9 @@ export type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
52
51
  */
53
52
  export type LinkDocsContent = UniBlockContent &
54
53
  HeadlineCommonProps &
55
- IconProps & {
54
+ IconProps &
55
+ AlignProps & {
56
56
  /** @title Список */
57
57
  documents?: DocBlockDef[];
58
58
  columnsMode?: LinkColumnsMode;
59
- /** @title Выравнивание */
60
- align?: TextAlign;
61
59
  };