@redneckz/wildless-cms-uni-blocks 0.14.854 → 0.14.856

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 (410) hide show
  1. package/bin/migration-scripts/0.14.850.js +70 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +58 -109
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  6. package/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
  7. package/bundle/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  8. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  9. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  10. package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  11. package/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  12. package/bundle/components/TariffsTable/renderCell.d.ts +2 -0
  13. package/bundle/components/TariffsTable/renderHeader.d.ts +2 -0
  14. package/bundle/model/onClick.d.ts +3 -0
  15. package/bundle/model/onClose.d.ts +3 -0
  16. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  17. package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  18. package/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  19. package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  20. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  21. package/dist/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  22. package/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
  23. package/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  24. package/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  25. package/dist/components/TariffsTable/TariffsTable.js +4 -11
  26. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  27. package/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  28. package/dist/components/TariffsTable/TariffsTableCell.js +14 -4
  29. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  30. package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  31. package/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  32. package/dist/components/TariffsTable/TariffsTableRow.js +6 -10
  33. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  34. package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  35. package/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
  36. package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  37. package/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  38. package/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
  39. package/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  40. package/dist/components/TariffsTable/dataFixture.js +1 -14
  41. package/dist/components/TariffsTable/dataFixture.js.map +1 -1
  42. package/dist/components/TariffsTable/renderCell.d.ts +2 -0
  43. package/dist/components/TariffsTable/renderCell.js +15 -0
  44. package/dist/components/TariffsTable/renderCell.js.map +1 -0
  45. package/dist/components/TariffsTable/renderHeader.d.ts +2 -0
  46. package/dist/components/TariffsTable/renderHeader.js +10 -0
  47. package/dist/components/TariffsTable/renderHeader.js.map +1 -0
  48. package/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  49. package/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
  50. package/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  51. package/dist/model/onClick.d.ts +3 -0
  52. package/dist/model/onClick.js +2 -0
  53. package/dist/model/onClick.js.map +1 -0
  54. package/dist/model/onClose.d.ts +3 -0
  55. package/dist/model/onClose.js +2 -0
  56. package/dist/model/onClose.js.map +1 -0
  57. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
  58. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  59. package/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  60. package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  61. package/dist/ui-kit/InnerTable/InnerTable.js +2 -3
  62. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  63. package/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
  64. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  65. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  66. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  67. package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  68. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  69. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  70. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  71. package/lib/common.css +1 -1
  72. package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  73. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  74. package/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  75. package/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
  76. package/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  77. package/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  78. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +3 -1
  79. package/lib/components/TariffsTable/TariffsTable.js +4 -11
  80. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  81. package/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  82. package/lib/components/TariffsTable/TariffsTableCell.js +14 -4
  83. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  84. package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  85. package/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  86. package/lib/components/TariffsTable/TariffsTableRow.js +6 -10
  87. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  88. package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  89. package/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
  90. package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  91. package/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  92. package/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
  93. package/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  94. package/lib/components/TariffsTable/dataFixture.js +1 -14
  95. package/lib/components/TariffsTable/dataFixture.js.map +1 -1
  96. package/lib/components/TariffsTable/renderCell.d.ts +2 -0
  97. package/lib/components/TariffsTable/renderCell.js +12 -0
  98. package/lib/components/TariffsTable/renderCell.js.map +1 -0
  99. package/lib/components/TariffsTable/renderHeader.d.ts +2 -0
  100. package/lib/components/TariffsTable/renderHeader.js +7 -0
  101. package/lib/components/TariffsTable/renderHeader.js.map +1 -0
  102. package/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  103. package/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
  104. package/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  105. package/lib/model/onClick.d.ts +3 -0
  106. package/lib/model/onClick.js +2 -0
  107. package/lib/model/onClick.js.map +1 -0
  108. package/lib/model/onClose.d.ts +3 -0
  109. package/lib/model/onClose.js +2 -0
  110. package/lib/model/onClose.js.map +1 -0
  111. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
  112. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  113. package/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  114. package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  115. package/lib/ui-kit/InnerTable/InnerTable.js +2 -3
  116. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  117. package/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
  118. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  119. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  120. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  121. package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  122. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  123. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  124. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  125. package/mobile/bundle/bundle.umd.js +47 -123
  126. package/mobile/bundle/bundle.umd.min.js +1 -1
  127. package/mobile/bundle/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  128. package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
  129. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  130. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  131. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  132. package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  133. package/mobile/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  134. package/mobile/bundle/components/TariffsTable/renderCell.d.ts +2 -0
  135. package/mobile/bundle/components/TariffsTable/renderHeader.d.ts +2 -0
  136. package/mobile/bundle/model/onClick.d.ts +3 -0
  137. package/mobile/bundle/model/onClose.d.ts +3 -0
  138. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  139. package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  140. package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  141. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  142. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  143. package/mobile/dist/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  144. package/mobile/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
  145. package/mobile/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  146. package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  147. package/mobile/dist/components/TariffsTable/TariffsTable.js +4 -11
  148. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  149. package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  150. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +14 -4
  151. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  152. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  153. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  154. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +6 -10
  155. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  156. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  157. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
  158. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  159. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  160. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
  161. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  162. package/mobile/dist/components/TariffsTable/dataFixture.js +1 -14
  163. package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
  164. package/mobile/dist/components/TariffsTable/renderCell.d.ts +2 -0
  165. package/mobile/dist/components/TariffsTable/renderCell.js +15 -0
  166. package/mobile/dist/components/TariffsTable/renderCell.js.map +1 -0
  167. package/mobile/dist/components/TariffsTable/renderHeader.d.ts +2 -0
  168. package/mobile/dist/components/TariffsTable/renderHeader.js +10 -0
  169. package/mobile/dist/components/TariffsTable/renderHeader.js.map +1 -0
  170. package/mobile/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  171. package/mobile/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
  172. package/mobile/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  173. package/mobile/dist/model/onClick.d.ts +3 -0
  174. package/mobile/dist/model/onClick.js +2 -0
  175. package/mobile/dist/model/onClick.js.map +1 -0
  176. package/mobile/dist/model/onClose.d.ts +3 -0
  177. package/mobile/dist/model/onClose.js +2 -0
  178. package/mobile/dist/model/onClose.js.map +1 -0
  179. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
  180. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  181. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  182. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  183. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +2 -3
  184. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  185. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
  186. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  187. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  188. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  189. package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  190. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  191. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  192. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  193. package/mobile/lib/common.css +1 -1
  194. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  195. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  196. package/mobile/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  197. package/mobile/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
  198. package/mobile/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  199. package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  200. package/mobile/lib/components/TariffsTable/TariffsTable.js +4 -11
  201. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  202. package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  203. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -4
  204. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  205. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  206. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  207. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +6 -10
  208. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  209. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  210. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
  211. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  212. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  213. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
  214. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  215. package/mobile/lib/components/TariffsTable/dataFixture.js +1 -14
  216. package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
  217. package/mobile/lib/components/TariffsTable/renderCell.d.ts +2 -0
  218. package/mobile/lib/components/TariffsTable/renderCell.js +12 -0
  219. package/mobile/lib/components/TariffsTable/renderCell.js.map +1 -0
  220. package/mobile/lib/components/TariffsTable/renderHeader.d.ts +2 -0
  221. package/mobile/lib/components/TariffsTable/renderHeader.js +7 -0
  222. package/mobile/lib/components/TariffsTable/renderHeader.js.map +1 -0
  223. package/mobile/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  224. package/mobile/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
  225. package/mobile/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  226. package/mobile/lib/model/onClick.d.ts +3 -0
  227. package/mobile/lib/model/onClick.js +2 -0
  228. package/mobile/lib/model/onClick.js.map +1 -0
  229. package/mobile/lib/model/onClose.d.ts +3 -0
  230. package/mobile/lib/model/onClose.js +2 -0
  231. package/mobile/lib/model/onClose.js.map +1 -0
  232. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
  233. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  234. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  235. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  236. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +2 -3
  237. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  238. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
  239. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  240. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  241. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  242. package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  243. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  244. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  245. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  246. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -11
  247. package/mobile/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
  248. package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -34
  249. package/mobile/src/components/TariffsTable/TariffsTable.tsx +6 -13
  250. package/mobile/src/components/TariffsTable/TariffsTable.ui.json +0 -3
  251. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
  252. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +7 -84
  253. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
  254. package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
  255. package/mobile/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
  256. package/mobile/src/components/TariffsTable/dataFixture.tsx +9 -22
  257. package/mobile/src/components/TariffsTable/renderCell.tsx +42 -0
  258. package/mobile/src/components/TariffsTable/renderHeader.tsx +19 -0
  259. package/mobile/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
  260. package/mobile/src/model/onClick.ts +3 -0
  261. package/mobile/src/model/onClose.ts +3 -0
  262. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +3 -1
  263. package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
  264. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
  265. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
  266. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
  267. package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
  268. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
  269. package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  270. package/package.json +1 -1
  271. package/src/components/Header/HeaderSecondaryMenu.tsx +8 -11
  272. package/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
  273. package/src/components/TariffsTable/TariffsTable.example.json +1 -34
  274. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +28 -2
  275. package/src/components/TariffsTable/TariffsTable.tsx +6 -13
  276. package/src/components/TariffsTable/TariffsTable.ui.json +0 -3
  277. package/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
  278. package/src/components/TariffsTable/TariffsTableContent.ts +7 -84
  279. package/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
  280. package/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
  281. package/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
  282. package/src/components/TariffsTable/dataFixture.tsx +9 -22
  283. package/src/components/TariffsTable/renderCell.tsx +42 -0
  284. package/src/components/TariffsTable/renderHeader.tsx +19 -0
  285. package/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
  286. package/src/icons/IconName.ts +4 -4
  287. package/src/model/onClick.ts +3 -0
  288. package/src/model/onClose.ts +3 -0
  289. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +3 -1
  290. package/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
  291. package/src/ui-kit/InnerTable/InnerTable.fixture.mobile.tsx +1 -4
  292. package/src/ui-kit/InnerTable/InnerTable.fixture.tsx +1 -4
  293. package/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
  294. package/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
  295. package/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
  296. package/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
  297. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
  298. package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  299. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  300. package/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
  301. package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  302. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  303. package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  304. package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  305. package/bundle/components/TariffsTable/constants.d.ts +0 -4
  306. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  307. package/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
  308. package/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  309. package/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
  310. package/dist/components/TariffsTable/TableTileHeader.js +0 -8
  311. package/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
  312. package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  313. package/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
  314. package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  315. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  316. package/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
  317. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  318. package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  319. package/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
  320. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  321. package/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  322. package/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
  323. package/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  324. package/dist/components/TariffsTable/constants.d.ts +0 -4
  325. package/dist/components/TariffsTable/constants.js +0 -7
  326. package/dist/components/TariffsTable/constants.js.map +0 -1
  327. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  328. package/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
  329. package/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  330. package/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
  331. package/lib/components/TariffsTable/TableTileHeader.js +0 -6
  332. package/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
  333. package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  334. package/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
  335. package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  336. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  337. package/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
  338. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  339. package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  340. package/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
  341. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  342. package/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  343. package/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
  344. package/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  345. package/lib/components/TariffsTable/constants.d.ts +0 -4
  346. package/lib/components/TariffsTable/constants.js +0 -5
  347. package/lib/components/TariffsTable/constants.js.map +0 -1
  348. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  349. package/mobile/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
  350. package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  351. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  352. package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  353. package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  354. package/mobile/bundle/components/TariffsTable/constants.d.ts +0 -4
  355. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  356. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
  357. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  358. package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
  359. package/mobile/dist/components/TariffsTable/TableTileHeader.js +0 -8
  360. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
  361. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  362. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
  363. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  364. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  365. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
  366. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  367. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  368. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
  369. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  370. package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  371. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
  372. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  373. package/mobile/dist/components/TariffsTable/constants.d.ts +0 -4
  374. package/mobile/dist/components/TariffsTable/constants.js +0 -7
  375. package/mobile/dist/components/TariffsTable/constants.js.map +0 -1
  376. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  377. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
  378. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  379. package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
  380. package/mobile/lib/components/TariffsTable/TableTileHeader.js +0 -6
  381. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
  382. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  383. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
  384. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  385. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  386. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
  387. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  388. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  389. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
  390. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  391. package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  392. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
  393. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  394. package/mobile/lib/components/TariffsTable/constants.d.ts +0 -4
  395. package/mobile/lib/components/TariffsTable/constants.js +0 -5
  396. package/mobile/lib/components/TariffsTable/constants.js.map +0 -1
  397. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
  398. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +0 -15
  399. package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
  400. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
  401. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
  402. package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
  403. package/mobile/src/components/TariffsTable/constants.ts +0 -4
  404. package/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
  405. package/src/components/TariffsTable/TableTileHeader.tsx +0 -15
  406. package/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
  407. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
  408. package/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
  409. package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
  410. package/src/components/TariffsTable/constants.ts +0 -4
@@ -1,48 +1,50 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
2
+ import type { JSONRefObject } from '../../data/JSONRefObject';
3
+ import { type OnCloseProps } from '../../model/onClose';
4
+ import { TableInnerButton } from '../../ui-kit/InnerTable/InnerTableButton';
5
+ import {
6
+ type TableFetchData,
7
+ type TariffsTableInnerContent,
8
+ } from '../../ui-kit/InnerTable/InnerTableProps';
3
9
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
10
+ import { renderCell } from './renderCell';
4
11
  import { type CellDef } from './TariffsTableContent';
5
- import { RenderCellInner } from './TariffsTableRenderCell';
6
12
 
7
13
  export interface TariffTableContentProps {
8
- openTableInnerIdx?: number;
9
- setOpenTableInnerIdx: (props?: number) => void;
10
- setTableInner: (props?: TariffsTableInnerContent) => void;
14
+ onSetTable: (props?: TariffsTableInnerContent) => void;
11
15
  tableInner?: TariffsTableInnerContent;
12
16
  }
13
17
 
14
- export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps {
15
- rowIdx: number;
16
- cellIdx: number;
17
- cells: CellDef[];
18
+ type CellDefProps = CellDef & { tableSource?: JSONRefObject & TableFetchData };
19
+
20
+ export interface TariffsTableCellProps
21
+ extends TariffTableContentProps,
22
+ UniBlockProps,
23
+ OnCloseProps {
24
+ cells: CellDefProps[];
18
25
  }
19
26
 
20
- export const TariffsTableCell = JSX<TariffsTableCellProps>(
21
- ({
22
- cells,
23
- rowIdx,
24
- cellIdx,
25
- setTableInner,
26
- tableInner,
27
- openTableInnerIdx,
28
- setOpenTableInnerIdx,
29
- }) => (
30
- <div className="w-80 flex-grow flex flex-col gap-m @4xl:gap-lg" role="cell">
27
+ export const TariffsTableCell = JSX<TariffsTableCellProps>(({ cells, tableInner, onSetTable }) => {
28
+ return (
29
+ <div className="w-80 flex-grow flex flex-col gap-lg" role="cell">
31
30
  {cells?.length
32
- ? cells.map((_, i) => (
33
- <RenderCellInner
34
- key={String(i)}
35
- cell={_}
36
- fieldIdx={i}
37
- rowIdx={rowIdx}
38
- cellIdx={cellIdx}
39
- setTableInner={setTableInner}
40
- tableInner={tableInner}
41
- openTableInnerIdx={openTableInnerIdx}
42
- setOpenTableInnerIdx={setOpenTableInnerIdx}
43
- />
44
- ))
31
+ ? cells.map((_, i) => {
32
+ if (_?.tableSource?.tableData) {
33
+ return (
34
+ <TableInnerButton
35
+ key={String(i)}
36
+ className="w-fit"
37
+ isOpen={Boolean(tableInner)}
38
+ onClick={() => {
39
+ onSetTable(tableInner ? undefined : { tableSource: _.tableSource });
40
+ }}
41
+ />
42
+ );
43
+ }
44
+
45
+ return renderCell(_, i);
46
+ })
45
47
  : null}
46
48
  </div>
47
- ),
48
- );
49
+ );
50
+ });
@@ -4,31 +4,7 @@ import { type ImageContent } from '../../ui-kit/Img/ImgProps';
4
4
  import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
5
5
  import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
6
6
  import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
7
- import { type UniBlockContent, type UniBlockProps } from '../../UniBlock/UniBlockProps';
8
-
9
- /**
10
- * @hidden
11
- */
12
- export interface TariffsTableTile {
13
- header: TariffsTableRowHeader;
14
- data: CellDef[];
15
- }
16
-
17
- /**
18
- * @hidden
19
- */
20
- export interface TariffsTableProps extends UniBlockProps {
21
- tiles?: TariffsTableTile[];
22
- }
23
-
24
- /**
25
- * @hidden
26
- */
27
- export interface TariffsTableCellIndexProps {
28
- rowIdx: number;
29
- cellIdx: number;
30
- fieldIdx: number;
31
- }
7
+ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
32
8
 
33
9
  /**
34
10
  * @hidden
@@ -43,68 +19,15 @@ export type Data = {
43
19
  */
44
20
  export type TariffsTableRowHeader = TitleProps & IconProps;
45
21
 
46
- /**
47
- * @title Изображение
48
- */
49
- export type ImageCellDef = ImageContent & {
50
- /** @default Img */
51
- tableCellType: 'Img';
52
- };
53
-
54
- /**
55
- * @title Кнопки
56
- */
57
- export type ButtonsCellDef = ButtonsSectionContent & {
58
- /** @default Buttons */
59
- tableCellType: 'Buttons';
60
- };
61
-
62
- /**
63
- * @title Заголовок и описание
64
- */
65
- export type LabelDescriptionCell = LabelProps & DescriptionProps;
66
-
67
- /**
68
- * @title Заголовок и описание
69
- */
70
- export type LabelDescriptionCellDef = LabelDescriptionCell & {
71
- /** @default LabelDescription */
72
- tableCellType: 'LabelDescription';
73
- };
74
-
75
- /**
76
- * @title Список
77
- */
78
- export type RichTextDef = RichTextProps & {
79
- /** @default RichText */
80
- tableCellType: 'RichText';
81
- };
82
-
83
- /**
84
- * @title Таблица
85
- */
86
- export type InnerTableBlockDef = TariffsTableInnerContent & {
87
- /** @default Table */
88
- tableCellType: 'Table';
89
- };
90
-
91
- /** @title Не выбрано * */
92
- export type EmptyCellType = {
93
- /** @default "" */
94
- tableCellType: '';
95
- };
96
-
97
22
  /**
98
23
  * @title Содержимое ячейки
99
- * @default { "tableCellType": "" }
100
24
  */
101
- export type CellDef =
102
- | EmptyCellType
103
- | ImageCellDef
104
- | ButtonsCellDef
105
- | LabelDescriptionCellDef
106
- | RichTextDef
107
- | InnerTableBlockDef;
25
+ export type CellDef = LabelProps &
26
+ DescriptionProps &
27
+ RichTextProps &
28
+ ImageContent &
29
+ TariffsTableInnerContent &
30
+ ButtonsSectionContent;
108
31
 
109
32
  /**
110
33
  * @title Ячейки
@@ -1,11 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { Img } from '../../ui-kit/Img/Img';
4
3
  import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
5
- import { Text } from '../../ui-kit/Text/Text';
6
4
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
7
- import { style } from '../../utils/style';
8
- import { COLUMN_WIDTH, firstCellStyle } from './constants';
5
+ import { renderHeader } from './renderHeader';
9
6
  import { TableCarouselContainer } from './TableCarouselContainer';
10
7
  import { TariffsTableCell } from './TariffsTableCell';
11
8
  import { type Data } from './TariffsTableContent';
@@ -13,63 +10,26 @@ import { TariffsTableRowContainer } from './TariffsTableRowContainer';
13
10
 
14
11
  export interface TariffsTableRowProps extends UniBlockProps {
15
12
  row: Data;
16
- activeIndex: number;
17
- rowIdx: number;
18
13
  }
19
14
 
20
15
  export const TariffsTableRow = JSX<TariffsTableRowProps>(
21
- ({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
16
+ ({ row: { header, data = [] }, ...rest }) => {
22
17
  const [tableInner, setTableInner] = useState<TariffsTableInnerContent | undefined>(undefined);
23
- const handleSetTableInner = useCallback(
24
- (_: TariffsTableInnerContent | undefined) => setTableInner(_),
25
- [],
26
- );
27
- const [openTableInnerIdx, setOpenTableInnerIdx] = useState<number | undefined>(undefined);
28
- const handleOpenTableInnerIdx = useCallback(
29
- (_: number | undefined) => setOpenTableInnerIdx(_),
30
- [],
31
- );
32
- const onHideContentClick = () => setTableInner(undefined);
18
+ const handleSetTableInner = useCallback((_?: TariffsTableInnerContent) => {
19
+ setTableInner(_);
20
+ }, []);
33
21
 
34
22
  return (
35
- <TariffsTableRowContainer
36
- onHideContentClick={onHideContentClick}
37
- tableInner={tableInner}
38
- {...rest}
39
- >
40
- <div className={style('text-s', firstCellStyle)}>
41
- <div className="flex gap-m items-center" role="cell">
42
- {header?.icon ? (
43
- <Img
44
- className="hidden @4xl:block max-w-6 shrink-0"
45
- image={header.icon}
46
- width="24"
47
- height="24"
48
- />
49
- ) : null}
50
- {header?.title ? (
51
- <Text size="text-m" font="font-light" color="text-primary-text">
52
- {header?.title}
53
- </Text>
54
- ) : null}
55
- </div>
56
- </div>
23
+ <TariffsTableRowContainer tableInner={tableInner} {...rest}>
24
+ {renderHeader(header)}
57
25
  {data?.length ? (
58
- <TableCarouselContainer
59
- activeIndex={activeIndex}
60
- columnWidth={COLUMN_WIDTH}
61
- version="tariff"
62
- >
26
+ <TableCarouselContainer version="tariff">
63
27
  {data.map((cells, i) => (
64
28
  <TariffsTableCell
65
29
  key={String(i)}
66
30
  cells={cells}
67
- rowIdx={rowIdx}
68
- cellIdx={i}
69
- setTableInner={handleSetTableInner}
31
+ onSetTable={handleSetTableInner}
70
32
  tableInner={tableInner}
71
- openTableInnerIdx={openTableInnerIdx}
72
- setOpenTableInnerIdx={handleOpenTableInnerIdx}
73
33
  {...rest}
74
34
  />
75
35
  ))}
@@ -3,27 +3,21 @@ import { InnerTable } from '../../ui-kit/InnerTable/InnerTable';
3
3
  import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
4
4
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
5
5
  import { style } from '../../utils/style';
6
- import { dividerStyle } from './constants';
7
6
 
8
7
  export interface TariffsTableRowContainerProps extends UniBlockProps {
9
8
  tableInner?: TariffsTableInnerContent;
10
- onHideContentClick?: () => void;
9
+ onClick?: (_?: TariffsTableInnerContent) => void;
11
10
  }
12
11
 
12
+ export const DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
13
+
13
14
  export const TariffsTableRowContainer = JSX<TariffsTableRowContainerProps>(
14
- ({ children, tableInner, onHideContentClick }) => (
15
- <div className="self-start flex flex-col" role="row">
16
- <div
17
- className={style(
18
- dividerStyle,
19
- 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg',
20
- )}
21
- >
22
- {children}
23
- </div>
15
+ ({ children, tableInner, onClick }) => (
16
+ <div className={style('self-start flex flex-col gap-xl', DIVIDER_STYLE)} role="row">
17
+ <div className={style('flex flex-col lg:flex-row gap-x-5xl gap-y-xs')}>{children}</div>
24
18
  {tableInner ? (
25
19
  <div className="origin-top animate-expansion">
26
- <InnerTable {...tableInner} onClick={onHideContentClick} />
20
+ <InnerTable {...tableInner} onClick={onClick} />
27
21
  </div>
28
22
  ) : null}
29
23
  </div>
@@ -1,27 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { type CarouselControls } from '../../hooks/useCarouselControls';
3
- import { renderArrows } from '../../ui-kit/LinkButton/renderArrows';
4
2
 
5
- interface WrapperProps {
6
- controls: CarouselControls;
7
- }
8
-
9
- export const TariffsTableWrapper = JSX<WrapperProps>(({ children, controls }) => {
10
- const { isScrollAvailable } = controls;
11
-
12
- return (
13
- <div role="table" className="overflow-x-auto w-auto grid md:block">
14
- <div className="relative space-y-xs">
15
- {children}
16
- {renderArrows({
17
- ...controls,
18
- btnClass: ['top-28', 'top-11'],
19
- className: 'right-7',
20
- })}
21
- </div>
22
- {isScrollAvailable ? (
23
- <div className="absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" />
24
- ) : null}
25
- </div>
26
- );
27
- });
3
+ export const TariffsTableWrapper = JSX(({ children }) => (
4
+ <div role="table" className="overflow-x-auto w-auto grid relative gap-y-xs">
5
+ {children}
6
+ </div>
7
+ ));
@@ -1,9 +1,8 @@
1
1
  /* eslint-disable max-lines */
2
2
  import { type Picture } from '../../model/Picture';
3
+ import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
3
4
  import {
4
- type InnerTableBlockDef,
5
- type LabelDescriptionCellDef,
6
- type RichTextDef,
5
+ type CellDef,
7
6
  type TariffsTableColumn,
8
7
  type TariffsTableContent,
9
8
  type TariffsTableRowHeader,
@@ -23,30 +22,25 @@ const image: Picture = {
23
22
  title: 'Платёжные системы',
24
23
  };
25
24
 
26
- const LABEL_BLOCK: LabelDescriptionCellDef = {
27
- tableCellType: 'LabelDescription',
25
+ const LABEL_BLOCK: CellDef = {
28
26
  label: 'Заголовок без описания',
29
27
  };
30
28
 
31
- const LABEL_DESCRIPTION_BLOCK: LabelDescriptionCellDef = {
29
+ const LABEL_DESCRIPTION_BLOCK: CellDef = {
32
30
  label: 'Ячейка 1-2',
33
- tableCellType: 'LabelDescription',
31
+
34
32
  description: 'Описание',
35
33
  };
36
34
 
37
- const TABLE_BLOCK: InnerTableBlockDef = {
38
- tableCellType: 'Table',
35
+ const TABLE_BLOCK: TariffsTableInnerContent = {
39
36
  tableSource: { $ref: '/wcms-resources/tariffs-inner-table-data.json' },
40
- pdfUrl: '#',
41
37
  };
42
38
 
43
- const DESCRIPTION_BLOCK: LabelDescriptionCellDef = {
44
- tableCellType: 'LabelDescription',
39
+ const DESCRIPTION_BLOCK: CellDef = {
45
40
  description: 'Описание без заголовка',
46
41
  };
47
42
 
48
- const RICHTEXT_BLOCK: RichTextDef = {
49
- tableCellType: 'RichText',
43
+ const RICHTEXT_BLOCK: CellDef = {
50
44
  __html: `
51
45
  <ul>
52
46
  <li>Элемент списка 1</li>
@@ -77,29 +71,24 @@ export const columns: TariffsTableColumn[] = [
77
71
  {
78
72
  label: 'Бесплатно',
79
73
  description: 'В банкоматах и кассах Россельхозбанка и банков-партнеров',
80
- tableCellType: 'LabelDescription',
81
74
  },
82
75
  {
83
76
  label: 'Бесплатно',
84
77
  description: 'В сторонних банкоматах - 1 раз в месяц, далее 1% минимум 150 руб',
85
- tableCellType: 'LabelDescription',
86
78
  },
87
79
  ],
88
80
  [LABEL_BLOCK],
89
81
  [
90
82
  {
91
83
  label: 'Платёжные системы картинкой',
92
- tableCellType: 'LabelDescription',
93
84
  },
94
85
  {
95
86
  image: image,
96
- tableCellType: 'Img',
97
87
  },
98
88
  ],
99
89
  [
100
- { label: 'Кнопки-иконки', tableCellType: 'LabelDescription' },
90
+ { label: 'Кнопки-иконки' },
101
91
  {
102
- tableCellType: 'Buttons',
103
92
  buttons: [
104
93
  {
105
94
  icon: { icon: 'AppleIcon' },
@@ -121,7 +110,6 @@ export const columns: TariffsTableColumn[] = [
121
110
  [
122
111
  {
123
112
  label: 'Бесплатно',
124
- tableCellType: 'LabelDescription',
125
113
  },
126
114
  ],
127
115
  [
@@ -135,7 +123,6 @@ export const columns: TariffsTableColumn[] = [
135
123
  },
136
124
  alt: 'Деньги',
137
125
  },
138
- tableCellType: 'Img',
139
126
  },
140
127
  ],
141
128
  ],
@@ -0,0 +1,42 @@
1
+ import { Img } from '../../ui-kit/Img/Img';
2
+ import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
3
+ import { RichText } from '../../ui-kit/RichText/RichText';
4
+ import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
5
+ import { Text } from '../../ui-kit/Text/Text';
6
+ import type { CellDef } from './TariffsTableContent';
7
+
8
+ export const renderCell = (
9
+ { label, description, __html, isDotted, buttons, image }: CellDef,
10
+ i: number,
11
+ ) => (
12
+ <div className="grid gap-xs" key={String(i)}>
13
+ {renderLabel(label)}
14
+ {renderDescription(description)}
15
+ {renderRich({ __html, isDotted })}
16
+ {renderButtonsSection(buttons, {
17
+ buttonClassName: 'basis-0',
18
+ })}
19
+ {image?.src ? <Img image={image} /> : null}
20
+ </div>
21
+ );
22
+
23
+ const renderLabel = (label?: string) =>
24
+ label ? (
25
+ <div>
26
+ <Text size="text-h6">{label}</Text>
27
+ </div>
28
+ ) : null;
29
+
30
+ const renderDescription = (description?: string) =>
31
+ description ? (
32
+ <div className="text-l font-light">
33
+ <Text color="text-secondary-text">{description}</Text>
34
+ </div>
35
+ ) : null;
36
+
37
+ const renderRich = ({ __html, isDotted }: RichTextProps) =>
38
+ __html ? (
39
+ <div className="flex flex-col justify-between items-start text-h6">
40
+ <RichText __html={__html} isDotted={isDotted} itemSize="list-m" />
41
+ </div>
42
+ ) : null;
@@ -0,0 +1,19 @@
1
+ import { Img } from '../../ui-kit/Img/Img';
2
+ import { Text } from '../../ui-kit/Text/Text';
3
+ import { style } from '../../utils/style';
4
+ import type { TariffsTableRowHeader } from './TariffsTableContent';
5
+
6
+ const FIRST_CELL_STYLES = 'w-80 flex-shrink-0 sticky left-0 bg-white';
7
+
8
+ export const renderHeader = ({ title, icon }: TariffsTableRowHeader) => (
9
+ <div className={style('flex gap-m items-center', FIRST_CELL_STYLES)} role="cell">
10
+ {icon ? (
11
+ <Img className="hidden lg:block max-w-6 shrink-0" image={icon} width="24" height="24" />
12
+ ) : null}
13
+ {title ? (
14
+ <Text size="text-m" font="font-light" color="text-primary-text">
15
+ {title}
16
+ </Text>
17
+ ) : null}
18
+ </div>
19
+ );
@@ -7,11 +7,11 @@ export const IconsWithoutInversion = new Set([
7
7
  ]);
8
8
 
9
9
  export enum IconMap {
10
- YoutubeIcon = 'YoutubeIcon', WalletWithMoneyIcon = 'WalletWithMoneyIcon', WalletIcon = 'WalletIcon', WalletAddIcon = 'WalletAddIcon', VKIcon = 'VKIcon', UserTickIcon = 'UserTickIcon', UserSquareIcon = 'UserSquareIcon', UserGeoLocationIcon = 'UserGeoLocationIcon', TelegramIcon = 'TelegramIcon', StarIcon = 'StarIcon', SoundIcon = 'SoundIcon', SmallClockIcon = 'SmallClockIcon', SignDocsIcon = 'SignDocsIcon', ShieldTickIcon = 'ShieldTickIcon', SecurityСardIcon = 'SecurityСardIcon', SafeIcon = 'SafeIcon', RutubeIcon = 'RutubeIcon', RustoreIcon = 'RustoreIcon', RoundRubleIcon = 'RoundRubleIcon', ResponseOKIcon = 'ResponseOKIcon', ResponseFailIcon = 'ResponseFailIcon', RefreshIcon = 'RefreshIcon', ProfileIcon = 'ProfileIcon', Profile2UserIcon = 'Profile2UserIcon', PlusIcon = 'PlusIcon', PlusCircleIcon = 'PlusCircleIcon', PlayMarketIcon = 'PlayMarketIcon', PhoneIcon = 'PhoneIcon', PhoneCallingIcon = 'PhoneCallingIcon', PersonalCardIcon = 'PersonalCardIcon', PercentageRoundIcon = 'PercentageRoundIcon', PercentIcon = 'PercentIcon', PassSendIcon = 'PassSendIcon', PackA4Icon = 'PackA4Icon', OkIcon = 'OkIcon', NotificationBingIcon = 'NotificationBingIcon', NewLoanIcon = 'NewLoanIcon', NewDocIcon = 'NewDocIcon', MonitorMobileIcon = 'MonitorMobileIcon', MoneyInsuranceIcon = 'MoneyInsuranceIcon', MoneyIcon = 'MoneyIcon', MinusIcon = 'MinusIcon', MapOpenedIcon = 'MapOpenedIcon', MapMarkerSingleIcon = 'MapMarkerSingleIcon', MapMarkerClusterYellowIcon = 'MapMarkerClusterYellowIcon', MapMarkerClusterIcon = 'MapMarkerClusterIcon', MailIcon = 'MailIcon', MagnifierIcon = 'MagnifierIcon', LoupeIcon = 'LoupeIcon', LogoIcon = 'LogoIcon', LockIcon = 'LockIcon', InfoCircleIcon = 'InfoCircleIcon', HuaweiIcon = 'HuaweiIcon', HouseIcon = 'HouseIcon', HeartTickIcon = 'HeartTickIcon', HeartIcon = 'HeartIcon', HeadphonesIcon = 'HeadphonesIcon', GridIcon = 'GridIcon', GpsIcon = 'GpsIcon', GosUslugiIcon = 'GosUslugiIcon', GlobalIcon = 'GlobalIcon', GeolocationIcon = 'GeolocationIcon', FullScreenIcon = 'FullScreenIcon', FaxIcon = 'FaxIcon', EuroIcon = 'EuroIcon', EmptyWalletIcon = 'EmptyWalletIcon', EmptyWalletChangeIcon = 'EmptyWalletChangeIcon', DzenIcon = 'DzenIcon', DoneSimpleIcon = 'DoneSimpleIcon', DoneIcon = 'DoneIcon', DollarIcon = 'DollarIcon', DocIcon = 'DocIcon', DocDownloadIcon = 'DocDownloadIcon', DiscountShapeIcon = 'DiscountShapeIcon', DevIcon = 'DevIcon', CupIcon = 'CupIcon', CourtHouseIcon = 'CourtHouseIcon', CopyIcon = 'CopyIcon', ConvertCardIcon = 'ConvertCardIcon', CoinIcon = 'CoinIcon', CloseIcon = 'CloseIcon', ClientIcon = 'ClientIcon', ChineseYuanRenminbiIcon = 'ChineseYuanRenminbiIcon', ChevronLeftIcon = 'ChevronLeftIcon', ChatBotIcon = 'ChatBotIcon', ChartSquareIcon = 'ChartSquareIcon', ChartRoundIcon = 'ChartRoundIcon', ChartIcon = 'ChartIcon', CardTickIcon = 'CardTickIcon', CardSendIcon = 'CardSendIcon', CardPosIcon = 'CardPosIcon', CardIcon = 'CardIcon', CalendarTickIcon = 'CalendarTickIcon', CalendarIcon = 'CalendarIcon', CalendarCircleIcon = 'CalendarCircleIcon', BurgerIcon = 'BurgerIcon', BuildingIcon = 'BuildingIcon', BriefcaseIcon = 'BriefcaseIcon', BelarusianFlag = 'BelarusianFlag', BankIcon = 'BankIcon', BankColorIcon = 'BankColorIcon', AtmIcon = 'AtmIcon', ArrowUpSolidIcon = 'ArrowUpSolidIcon', ArrowUpIcon = 'ArrowUpIcon', ArrowTopRightIcon = 'ArrowTopRightIcon', ArrowRightIcon = 'ArrowRightIcon', ArrowLeftIcon = 'ArrowLeftIcon', ArrowDownSolidIcon = 'ArrowDownSolidIcon', ArrowDownIcon = 'ArrowDownIcon', AppleIcon = 'AppleIcon', AlarmIcon = 'AlarmIcon', ActualBalanceIcon = 'ActualBalanceIcon', AchievementIcon = 'AchievementIcon'
10
+ YoutubeIcon = 'YoutubeIcon', WalletWithMoneyIcon = 'WalletWithMoneyIcon', WalletIcon = 'WalletIcon', WalletAddIcon = 'WalletAddIcon', VKIcon = 'VKIcon', UserTickIcon = 'UserTickIcon', UserSquareIcon = 'UserSquareIcon', UserGeoLocationIcon = 'UserGeoLocationIcon', TelegramIcon = 'TelegramIcon', StarIcon = 'StarIcon', SoundIcon = 'SoundIcon', SmallClockIcon = 'SmallClockIcon', SignDocsIcon = 'SignDocsIcon', ShieldTickIcon = 'ShieldTickIcon', SecurityСardIcon = 'SecurityСardIcon', SafeIcon = 'SafeIcon', RutubeIcon = 'RutubeIcon', RustoreIcon = 'RustoreIcon', RoundRubleIcon = 'RoundRubleIcon', ResponseOKIcon = 'ResponseOKIcon', ResponseFailIcon = 'ResponseFailIcon', RefreshIcon = 'RefreshIcon', ProfileIcon = 'ProfileIcon', Profile2UserIcon = 'Profile2UserIcon', PlusIcon = 'PlusIcon', PlusCircleIcon = 'PlusCircleIcon', PlayMarketIcon = 'PlayMarketIcon', PhoneIcon = 'PhoneIcon', PhoneCallingIcon = 'PhoneCallingIcon', PersonalCardIcon = 'PersonalCardIcon', PercentIcon = 'PercentIcon', PercentageRoundIcon = 'PercentageRoundIcon', PassSendIcon = 'PassSendIcon', PackA4Icon = 'PackA4Icon', OkIcon = 'OkIcon', NotificationBingIcon = 'NotificationBingIcon', NewLoanIcon = 'NewLoanIcon', NewDocIcon = 'NewDocIcon', MonitorMobileIcon = 'MonitorMobileIcon', MoneyInsuranceIcon = 'MoneyInsuranceIcon', MoneyIcon = 'MoneyIcon', MinusIcon = 'MinusIcon', MapOpenedIcon = 'MapOpenedIcon', MapMarkerSingleIcon = 'MapMarkerSingleIcon', MapMarkerClusterYellowIcon = 'MapMarkerClusterYellowIcon', MapMarkerClusterIcon = 'MapMarkerClusterIcon', MailIcon = 'MailIcon', MagnifierIcon = 'MagnifierIcon', LoupeIcon = 'LoupeIcon', LogoIcon = 'LogoIcon', LockIcon = 'LockIcon', InfoCircleIcon = 'InfoCircleIcon', HuaweiIcon = 'HuaweiIcon', HouseIcon = 'HouseIcon', HeartTickIcon = 'HeartTickIcon', HeartIcon = 'HeartIcon', HeadphonesIcon = 'HeadphonesIcon', GridIcon = 'GridIcon', GpsIcon = 'GpsIcon', GosUslugiIcon = 'GosUslugiIcon', GlobalIcon = 'GlobalIcon', GeolocationIcon = 'GeolocationIcon', FullScreenIcon = 'FullScreenIcon', FaxIcon = 'FaxIcon', EuroIcon = 'EuroIcon', EmptyWalletIcon = 'EmptyWalletIcon', EmptyWalletChangeIcon = 'EmptyWalletChangeIcon', DzenIcon = 'DzenIcon', DoneSimpleIcon = 'DoneSimpleIcon', DoneIcon = 'DoneIcon', DollarIcon = 'DollarIcon', DocIcon = 'DocIcon', DocDownloadIcon = 'DocDownloadIcon', DiscountShapeIcon = 'DiscountShapeIcon', DevIcon = 'DevIcon', CupIcon = 'CupIcon', CourtHouseIcon = 'CourtHouseIcon', CopyIcon = 'CopyIcon', ConvertCardIcon = 'ConvertCardIcon', CoinIcon = 'CoinIcon', CloseIcon = 'CloseIcon', ClientIcon = 'ClientIcon', ChineseYuanRenminbiIcon = 'ChineseYuanRenminbiIcon', ChevronLeftIcon = 'ChevronLeftIcon', ChatBotIcon = 'ChatBotIcon', ChartSquareIcon = 'ChartSquareIcon', ChartRoundIcon = 'ChartRoundIcon', ChartIcon = 'ChartIcon', CardTickIcon = 'CardTickIcon', CardSendIcon = 'CardSendIcon', CardPosIcon = 'CardPosIcon', CardIcon = 'CardIcon', CalendarTickIcon = 'CalendarTickIcon', CalendarIcon = 'CalendarIcon', CalendarCircleIcon = 'CalendarCircleIcon', BurgerIcon = 'BurgerIcon', BuildingIcon = 'BuildingIcon', BriefcaseIcon = 'BriefcaseIcon', BelarusianFlag = 'BelarusianFlag', BankIcon = 'BankIcon', BankColorIcon = 'BankColorIcon', AtmIcon = 'AtmIcon', ArrowUpSolidIcon = 'ArrowUpSolidIcon', ArrowUpIcon = 'ArrowUpIcon', ArrowTopRightIcon = 'ArrowTopRightIcon', ArrowRightIcon = 'ArrowRightIcon', ArrowLeftIcon = 'ArrowLeftIcon', ArrowDownSolidIcon = 'ArrowDownSolidIcon', ArrowDownIcon = 'ArrowDownIcon', AppleIcon = 'AppleIcon', AlarmIcon = 'AlarmIcon', ActualBalanceIcon = 'ActualBalanceIcon', AchievementIcon = 'AchievementIcon'
11
11
  }
12
12
 
13
13
  export enum IconTitleMap {
14
- YoutubeIcon = 'Лого «Youtube»', WalletWithMoneyIcon = 'Кошелёк с деньгами', WalletIcon = 'Кошелёк', WalletAddIcon = 'Кошелёк с плюсом', VKIcon = 'Лого «VK»', UserTickIcon = 'Пользователь', UserSquareIcon = 'Пользователь в рамке', UserGeoLocationIcon = 'Самолётик', TelegramIcon = 'Лого «Telegram»', StarIcon = 'Звезда', SoundIcon = 'Кольцо', SmallClockIcon = 'Маленькие часы', SignDocsIcon = 'Подписанные документы', ShieldTickIcon = 'Безопасность', SecurityСardIcon = 'Безопасность', SafeIcon = 'Сейф', RutubeIcon = 'Лого «Rutube»', RustoreIcon = 'Лого «Rustore»', RoundRubleIcon = 'Рубль (круг.)', ResponseOKIcon = 'Ок', ResponseFailIcon = 'Ошибка', RefreshIcon = 'RefreshIcon', ProfileIcon = 'Профиль', Profile2UserIcon = 'Профиль, 2 персоны', PlusIcon = 'Плюс', PlusCircleIcon = 'Плюс в круге', PlayMarketIcon = 'Лого «PlayMarket»', PhoneIcon = 'Телефон', PhoneCallingIcon = 'Звонящий телефон', PersonalCardIcon = 'Персональная карта', PercentageRoundIcon = 'Проценты (круг.)', PercentIcon = 'PercentIcon', PassSendIcon = 'Бизнес', PackA4Icon = 'Пачка бумаги А4', OkIcon = 'Лого «Одноклассники»', NotificationBingIcon = 'Колокольчик нотификаций', NewLoanIcon = 'Новая заявка', NewDocIcon = 'Новый документ', MonitorMobileIcon = 'Монитор и мобильный', MoneyInsuranceIcon = 'Денежное страхование', MoneyIcon = 'Деньги', MinusIcon = 'Минус', MapOpenedIcon = 'Иконка Развёрнутая карта', MapMarkerSingleIcon = 'Маркер карты РСХБ', MapMarkerClusterYellowIcon = 'Маркер карты (желтый)', MapMarkerClusterIcon = 'Маркер карты', MailIcon = 'E-mail', MagnifierIcon = 'MagnifierIcon', LoupeIcon = 'Лупа', LogoIcon = 'Логотип', LockIcon = 'Замок', InfoCircleIcon = 'InfoCircleIcon', HuaweiIcon = 'Лого «Huawei»', HouseIcon = 'Ипотека', HeartTickIcon = 'Сердцебеение', HeartIcon = 'Сердце', HeadphonesIcon = 'HeadphonesIcon', GridIcon = 'Сетка (белая)', GpsIcon = 'Gps', GosUslugiIcon = 'ГосУслуги', GlobalIcon = 'Глобус', GeolocationIcon = 'Геолокация', FullScreenIcon = 'FullScreenIcon', FaxIcon = 'Факс', EuroIcon = 'Евро', EmptyWalletIcon = 'Пустой кошелёк', EmptyWalletChangeIcon = 'Пустой кошелёк с возвратом', DzenIcon = 'Лого «Дзен»', DoneSimpleIcon = 'Зелёная \'галочка\'', DoneIcon = 'Зелёная \'галочка\' в круге', DollarIcon = 'Доллар', DocIcon = 'Документ', DocDownloadIcon = 'Скачать документ', DiscountShapeIcon = 'Скидка', DevIcon = 'Разработка', CupIcon = 'Кубок', CourtHouseIcon = 'Здание суда', CopyIcon = 'Копирование', ConvertCardIcon = 'Конвертирование', CoinIcon = 'Монеты', CloseIcon = 'Крестик', ClientIcon = 'Клиент', ChineseYuanRenminbiIcon = 'Китайский юань', ChevronLeftIcon = 'Стрелка \'Влево\'', ChatBotIcon = 'Чат-бот', ChartSquareIcon = 'Деньги внутри кошелька', ChartRoundIcon = 'Диаграмма (в круге)', ChartIcon = 'Инвестиции', CardTickIcon = 'Кред. карта с галочкой', CardSendIcon = 'Карта', CardPosIcon = 'Кред. карта под наклоном', CardIcon = 'Кред. карта', CalendarTickIcon = 'Календарь с галочкой', CalendarIcon = 'Календарь', CalendarCircleIcon = 'Скруглённый календарь', BurgerIcon = 'Бургер', BuildingIcon = 'Здание с деревом', BriefcaseIcon = 'Портфель', BelarusianFlag = 'Белорусский флаг', BankIcon = 'Банк', BankColorIcon = 'Банк (в цвете)', AtmIcon = 'Банкомат', ArrowUpSolidIcon = 'Стрелка сплошная \'Вверх\'', ArrowUpIcon = 'Стрелка \'Вверх\'', ArrowTopRightIcon = 'Стрелка \'Вверх-право\'', ArrowRightIcon = 'Стрелка \'Вправо\'', ArrowLeftIcon = 'Стрелка \'Влево\'', ArrowDownSolidIcon = 'Стрелка сплошная \'Вниз\'', ArrowDownIcon = 'Стрелка \'Вниз\'', AppleIcon = 'Лого «Apple»', AlarmIcon = 'Предупреждение', ActualBalanceIcon = 'Деньги', AchievementIcon = 'Достижение'
14
+ YoutubeIcon = 'Лого «Youtube»', WalletWithMoneyIcon = 'Кошелёк с деньгами', WalletIcon = 'Кошелёк', WalletAddIcon = 'Кошелёк с плюсом', VKIcon = 'Лого «VK»', UserTickIcon = 'Пользователь', UserSquareIcon = 'Пользователь в рамке', UserGeoLocationIcon = 'Самолётик', TelegramIcon = 'Лого «Telegram»', StarIcon = 'Звезда', SoundIcon = 'Кольцо', SmallClockIcon = 'Маленькие часы', SignDocsIcon = 'Подписанные документы', ShieldTickIcon = 'Безопасность', SecurityСardIcon = 'Безопасность', SafeIcon = 'Сейф', RutubeIcon = 'Лого «Rutube»', RustoreIcon = 'Лого «Rustore»', RoundRubleIcon = 'Рубль (круг.)', ResponseOKIcon = 'Ок', ResponseFailIcon = 'Ошибка', RefreshIcon = 'RefreshIcon', ProfileIcon = 'Профиль', Profile2UserIcon = 'Профиль, 2 персоны', PlusIcon = 'Плюс', PlusCircleIcon = 'Плюс в круге', PlayMarketIcon = 'Лого «PlayMarket»', PhoneIcon = 'Телефон', PhoneCallingIcon = 'Звонящий телефон', PersonalCardIcon = 'Персональная карта', PercentIcon = 'PercentIcon', PercentageRoundIcon = 'Проценты (круг.)', PassSendIcon = 'Бизнес', PackA4Icon = 'Пачка бумаги А4', OkIcon = 'Лого «Одноклассники»', NotificationBingIcon = 'Колокольчик нотификаций', NewLoanIcon = 'Новая заявка', NewDocIcon = 'Новый документ', MonitorMobileIcon = 'Монитор и мобильный', MoneyInsuranceIcon = 'Денежное страхование', MoneyIcon = 'Деньги', MinusIcon = 'Минус', MapOpenedIcon = 'Иконка Развёрнутая карта', MapMarkerSingleIcon = 'Маркер карты РСХБ', MapMarkerClusterYellowIcon = 'Маркер карты (желтый)', MapMarkerClusterIcon = 'Маркер карты', MailIcon = 'E-mail', MagnifierIcon = 'MagnifierIcon', LoupeIcon = 'Лупа', LogoIcon = 'Логотип', LockIcon = 'Замок', InfoCircleIcon = 'InfoCircleIcon', HuaweiIcon = 'Лого «Huawei»', HouseIcon = 'Ипотека', HeartTickIcon = 'Сердцебеение', HeartIcon = 'Сердце', HeadphonesIcon = 'HeadphonesIcon', GridIcon = 'Сетка (белая)', GpsIcon = 'Gps', GosUslugiIcon = 'ГосУслуги', GlobalIcon = 'Глобус', GeolocationIcon = 'Геолокация', FullScreenIcon = 'FullScreenIcon', FaxIcon = 'Факс', EuroIcon = 'Евро', EmptyWalletIcon = 'Пустой кошелёк', EmptyWalletChangeIcon = 'Пустой кошелёк с возвратом', DzenIcon = 'Лого «Дзен»', DoneSimpleIcon = 'Зелёная \'галочка\'', DoneIcon = 'Зелёная \'галочка\' в круге', DollarIcon = 'Доллар', DocIcon = 'Документ', DocDownloadIcon = 'Скачать документ', DiscountShapeIcon = 'Скидка', DevIcon = 'Разработка', CupIcon = 'Кубок', CourtHouseIcon = 'Здание суда', CopyIcon = 'Копирование', ConvertCardIcon = 'Конвертирование', CoinIcon = 'Монеты', CloseIcon = 'Крестик', ClientIcon = 'Клиент', ChineseYuanRenminbiIcon = 'Китайский юань', ChevronLeftIcon = 'Стрелка \'Влево\'', ChatBotIcon = 'Чат-бот', ChartSquareIcon = 'Деньги внутри кошелька', ChartRoundIcon = 'Диаграмма (в круге)', ChartIcon = 'Инвестиции', CardTickIcon = 'Кред. карта с галочкой', CardSendIcon = 'Карта', CardPosIcon = 'Кред. карта под наклоном', CardIcon = 'Кред. карта', CalendarTickIcon = 'Календарь с галочкой', CalendarIcon = 'Календарь', CalendarCircleIcon = 'Скруглённый календарь', BurgerIcon = 'Бургер', BuildingIcon = 'Здание с деревом', BriefcaseIcon = 'Портфель', BelarusianFlag = 'Белорусский флаг', BankIcon = 'Банк', BankColorIcon = 'Банк (в цвете)', AtmIcon = 'Банкомат', ArrowUpSolidIcon = 'Стрелка сплошная \'Вверх\'', ArrowUpIcon = 'Стрелка \'Вверх\'', ArrowTopRightIcon = 'Стрелка \'Вверх-право\'', ArrowRightIcon = 'Стрелка \'Вправо\'', ArrowLeftIcon = 'Стрелка \'Влево\'', ArrowDownSolidIcon = 'Стрелка сплошная \'Вниз\'', ArrowDownIcon = 'Стрелка \'Вниз\'', AppleIcon = 'Лого «Apple»', AlarmIcon = 'Предупреждение', ActualBalanceIcon = 'Деньги', AchievementIcon = 'Достижение'
15
15
  }
16
16
 
17
17
  /**
@@ -19,7 +19,7 @@ export enum IconTitleMap {
19
19
  * @title Иконка
20
20
  * @enumNames [
21
21
  * "",
22
- * 'Лого «Youtube»', 'Кошелёк с деньгами', 'Кошелёк', 'Кошелёк с плюсом', 'Лого «VK»', 'Пользователь', 'Пользователь в рамке', 'Самолётик', 'Лого «Telegram»', 'Звезда', 'Кольцо', 'Маленькие часы', 'Подписанные документы', 'Безопасность', 'Безопасность', 'Сейф', 'Лого «Rutube»', 'Лого «Rustore»', 'Рубль (круг.)', 'Ок', 'Ошибка', 'RefreshIcon', 'Профиль', 'Профиль, 2 персоны', 'Плюс', 'Плюс в круге', 'Лого «PlayMarket»', 'Телефон', 'Звонящий телефон', 'Персональная карта', 'Проценты (круг.)', 'PercentIcon', 'Бизнес', 'Пачка бумаги А4', 'Лого «Одноклассники»', 'Колокольчик нотификаций', 'Новая заявка', 'Новый документ', 'Монитор и мобильный', 'Денежное страхование', 'Деньги', 'Минус', 'Иконка Развёрнутая карта', 'Маркер карты РСХБ', 'Маркер карты (желтый)', 'Маркер карты', 'E-mail', 'MagnifierIcon', 'Лупа', 'Логотип', 'Замок', 'InfoCircleIcon', 'Лого «Huawei»', 'Ипотека', 'Сердцебеение', 'Сердце', 'HeadphonesIcon', 'Сетка (белая)', 'Gps', 'ГосУслуги', 'Глобус', 'Геолокация', 'FullScreenIcon', 'Факс', 'Евро', 'Пустой кошелёк', 'Пустой кошелёк с возвратом', 'Лого «Дзен»', 'Зелёная \'галочка\'', 'Зелёная \'галочка\' в круге', 'Доллар', 'Документ', 'Скачать документ', 'Скидка', 'Разработка', 'Кубок', 'Здание суда', 'Копирование', 'Конвертирование', 'Монеты', 'Крестик', 'Клиент', 'Китайский юань', 'Стрелка \'Влево\'', 'Чат-бот', 'Деньги внутри кошелька', 'Диаграмма (в круге)', 'Инвестиции', 'Кред. карта с галочкой', 'Карта', 'Кред. карта под наклоном', 'Кред. карта', 'Календарь с галочкой', 'Календарь', 'Скруглённый календарь', 'Бургер', 'Здание с деревом', 'Портфель', 'Белорусский флаг', 'Банк', 'Банк (в цвете)', 'Банкомат', 'Стрелка сплошная \'Вверх\'', 'Стрелка \'Вверх\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вправо\'', 'Стрелка \'Влево\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Вниз\'', 'Лого «Apple»', 'Предупреждение', 'Деньги', 'Достижение'
22
+ * 'Лого «Youtube»', 'Кошелёк с деньгами', 'Кошелёк', 'Кошелёк с плюсом', 'Лого «VK»', 'Пользователь', 'Пользователь в рамке', 'Самолётик', 'Лого «Telegram»', 'Звезда', 'Кольцо', 'Маленькие часы', 'Подписанные документы', 'Безопасность', 'Безопасность', 'Сейф', 'Лого «Rutube»', 'Лого «Rustore»', 'Рубль (круг.)', 'Ок', 'Ошибка', 'RefreshIcon', 'Профиль', 'Профиль, 2 персоны', 'Плюс', 'Плюс в круге', 'Лого «PlayMarket»', 'Телефон', 'Звонящий телефон', 'Персональная карта', 'PercentIcon', 'Проценты (круг.)', 'Бизнес', 'Пачка бумаги А4', 'Лого «Одноклассники»', 'Колокольчик нотификаций', 'Новая заявка', 'Новый документ', 'Монитор и мобильный', 'Денежное страхование', 'Деньги', 'Минус', 'Иконка Развёрнутая карта', 'Маркер карты РСХБ', 'Маркер карты (желтый)', 'Маркер карты', 'E-mail', 'MagnifierIcon', 'Лупа', 'Логотип', 'Замок', 'InfoCircleIcon', 'Лого «Huawei»', 'Ипотека', 'Сердцебеение', 'Сердце', 'HeadphonesIcon', 'Сетка (белая)', 'Gps', 'ГосУслуги', 'Глобус', 'Геолокация', 'FullScreenIcon', 'Факс', 'Евро', 'Пустой кошелёк', 'Пустой кошелёк с возвратом', 'Лого «Дзен»', 'Зелёная \'галочка\'', 'Зелёная \'галочка\' в круге', 'Доллар', 'Документ', 'Скачать документ', 'Скидка', 'Разработка', 'Кубок', 'Здание суда', 'Копирование', 'Конвертирование', 'Монеты', 'Крестик', 'Клиент', 'Китайский юань', 'Стрелка \'Влево\'', 'Чат-бот', 'Деньги внутри кошелька', 'Диаграмма (в круге)', 'Инвестиции', 'Кред. карта с галочкой', 'Карта', 'Кред. карта под наклоном', 'Кред. карта', 'Календарь с галочкой', 'Календарь', 'Скруглённый календарь', 'Бургер', 'Здание с деревом', 'Портфель', 'Белорусский флаг', 'Банк', 'Банк (в цвете)', 'Банкомат', 'Стрелка сплошная \'Вверх\'', 'Стрелка \'Вверх\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вправо\'', 'Стрелка \'Влево\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Вниз\'', 'Лого «Apple»', 'Предупреждение', 'Деньги', 'Достижение'
23
23
  * ]
24
24
  */
25
- export type IconName = '' | 'YoutubeIcon' | 'WalletWithMoneyIcon' | 'WalletIcon' | 'WalletAddIcon' | 'VKIcon' | 'UserTickIcon' | 'UserSquareIcon' | 'UserGeoLocationIcon' | 'TelegramIcon' | 'StarIcon' | 'SoundIcon' | 'SmallClockIcon' | 'SignDocsIcon' | 'ShieldTickIcon' | 'SecurityСardIcon' | 'SafeIcon' | 'RutubeIcon' | 'RustoreIcon' | 'RoundRubleIcon' | 'ResponseOKIcon' | 'ResponseFailIcon' | 'RefreshIcon' | 'ProfileIcon' | 'Profile2UserIcon' | 'PlusIcon' | 'PlusCircleIcon' | 'PlayMarketIcon' | 'PhoneIcon' | 'PhoneCallingIcon' | 'PersonalCardIcon' | 'PercentageRoundIcon' | 'PercentIcon' | 'PassSendIcon' | 'PackA4Icon' | 'OkIcon' | 'NotificationBingIcon' | 'NewLoanIcon' | 'NewDocIcon' | 'MonitorMobileIcon' | 'MoneyInsuranceIcon' | 'MoneyIcon' | 'MinusIcon' | 'MapOpenedIcon' | 'MapMarkerSingleIcon' | 'MapMarkerClusterYellowIcon' | 'MapMarkerClusterIcon' | 'MailIcon' | 'MagnifierIcon' | 'LoupeIcon' | 'LogoIcon' | 'LockIcon' | 'InfoCircleIcon' | 'HuaweiIcon' | 'HouseIcon' | 'HeartTickIcon' | 'HeartIcon' | 'HeadphonesIcon' | 'GridIcon' | 'GpsIcon' | 'GosUslugiIcon' | 'GlobalIcon' | 'GeolocationIcon' | 'FullScreenIcon' | 'FaxIcon' | 'EuroIcon' | 'EmptyWalletIcon' | 'EmptyWalletChangeIcon' | 'DzenIcon' | 'DoneSimpleIcon' | 'DoneIcon' | 'DollarIcon' | 'DocIcon' | 'DocDownloadIcon' | 'DiscountShapeIcon' | 'DevIcon' | 'CupIcon' | 'CourtHouseIcon' | 'CopyIcon' | 'ConvertCardIcon' | 'CoinIcon' | 'CloseIcon' | 'ClientIcon' | 'ChineseYuanRenminbiIcon' | 'ChevronLeftIcon' | 'ChatBotIcon' | 'ChartSquareIcon' | 'ChartRoundIcon' | 'ChartIcon' | 'CardTickIcon' | 'CardSendIcon' | 'CardPosIcon' | 'CardIcon' | 'CalendarTickIcon' | 'CalendarIcon' | 'CalendarCircleIcon' | 'BurgerIcon' | 'BuildingIcon' | 'BriefcaseIcon' | 'BelarusianFlag' | 'BankIcon' | 'BankColorIcon' | 'AtmIcon' | 'ArrowUpSolidIcon' | 'ArrowUpIcon' | 'ArrowTopRightIcon' | 'ArrowRightIcon' | 'ArrowLeftIcon' | 'ArrowDownSolidIcon' | 'ArrowDownIcon' | 'AppleIcon' | 'AlarmIcon' | 'ActualBalanceIcon' | 'AchievementIcon';
25
+ export type IconName = '' | 'YoutubeIcon' | 'WalletWithMoneyIcon' | 'WalletIcon' | 'WalletAddIcon' | 'VKIcon' | 'UserTickIcon' | 'UserSquareIcon' | 'UserGeoLocationIcon' | 'TelegramIcon' | 'StarIcon' | 'SoundIcon' | 'SmallClockIcon' | 'SignDocsIcon' | 'ShieldTickIcon' | 'SecurityСardIcon' | 'SafeIcon' | 'RutubeIcon' | 'RustoreIcon' | 'RoundRubleIcon' | 'ResponseOKIcon' | 'ResponseFailIcon' | 'RefreshIcon' | 'ProfileIcon' | 'Profile2UserIcon' | 'PlusIcon' | 'PlusCircleIcon' | 'PlayMarketIcon' | 'PhoneIcon' | 'PhoneCallingIcon' | 'PersonalCardIcon' | 'PercentIcon' | 'PercentageRoundIcon' | 'PassSendIcon' | 'PackA4Icon' | 'OkIcon' | 'NotificationBingIcon' | 'NewLoanIcon' | 'NewDocIcon' | 'MonitorMobileIcon' | 'MoneyInsuranceIcon' | 'MoneyIcon' | 'MinusIcon' | 'MapOpenedIcon' | 'MapMarkerSingleIcon' | 'MapMarkerClusterYellowIcon' | 'MapMarkerClusterIcon' | 'MailIcon' | 'MagnifierIcon' | 'LoupeIcon' | 'LogoIcon' | 'LockIcon' | 'InfoCircleIcon' | 'HuaweiIcon' | 'HouseIcon' | 'HeartTickIcon' | 'HeartIcon' | 'HeadphonesIcon' | 'GridIcon' | 'GpsIcon' | 'GosUslugiIcon' | 'GlobalIcon' | 'GeolocationIcon' | 'FullScreenIcon' | 'FaxIcon' | 'EuroIcon' | 'EmptyWalletIcon' | 'EmptyWalletChangeIcon' | 'DzenIcon' | 'DoneSimpleIcon' | 'DoneIcon' | 'DollarIcon' | 'DocIcon' | 'DocDownloadIcon' | 'DiscountShapeIcon' | 'DevIcon' | 'CupIcon' | 'CourtHouseIcon' | 'CopyIcon' | 'ConvertCardIcon' | 'CoinIcon' | 'CloseIcon' | 'ClientIcon' | 'ChineseYuanRenminbiIcon' | 'ChevronLeftIcon' | 'ChatBotIcon' | 'ChartSquareIcon' | 'ChartRoundIcon' | 'ChartIcon' | 'CardTickIcon' | 'CardSendIcon' | 'CardPosIcon' | 'CardIcon' | 'CalendarTickIcon' | 'CalendarIcon' | 'CalendarCircleIcon' | 'BurgerIcon' | 'BuildingIcon' | 'BriefcaseIcon' | 'BelarusianFlag' | 'BankIcon' | 'BankColorIcon' | 'AtmIcon' | 'ArrowUpSolidIcon' | 'ArrowUpIcon' | 'ArrowTopRightIcon' | 'ArrowRightIcon' | 'ArrowLeftIcon' | 'ArrowDownSolidIcon' | 'ArrowDownIcon' | 'AppleIcon' | 'AlarmIcon' | 'ActualBalanceIcon' | 'AchievementIcon';
@@ -0,0 +1,3 @@
1
+ export interface OnClickProps {
2
+ onClick?: () => void;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface OnCloseProps {
2
+ onClose?: () => void;
3
+ }
@@ -6,6 +6,7 @@ import type { OnCloseProps } from '../../../model/OnCloseProps';
6
6
  import { Button } from '../../../ui-kit/Button/Button';
7
7
  import { SubmitButton } from '../../../ui-kit/Button/SubmitButton';
8
8
  import { Dialog } from '../../../ui-kit/DialogManager/Dialog';
9
+ import { useDialogManager } from '../../../ui-kit/DialogManager/useDialogManager';
9
10
  import { Icon } from '../../../ui-kit/Icon/Icon';
10
11
  import { Input } from '../../../ui-kit/Input/Input';
11
12
  import { Loader } from '../../../ui-kit/Loader/Loader';
@@ -23,6 +24,7 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
23
24
  const [code, setCode] = useState('');
24
25
  const [hasError, setHasError] = useState(false);
25
26
  const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
27
+ const { closeAll } = useDialogManager();
26
28
 
27
29
  const handleCheckCaptcha = useCallback(async () => {
28
30
  startLoading();
@@ -64,7 +66,7 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
64
66
  />
65
67
  {hasError ? <div className="text-error">Неверный код</div> : null}
66
68
  <div className="flex w-80 justify-between">
67
- <Button version="secondary" onClick={close}>
69
+ <Button version="secondary" onClick={closeAll}>
68
70
  Вернуться
69
71
  </Button>
70
72
  <SubmitButton version="secondary" disabled={!code} onClick={handleCheckCaptcha}>