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

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 (389) 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 +55 -107
  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/TariffsTable/TableCarouselContainer.d.ts +0 -2
  20. package/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
  21. package/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  22. package/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  23. package/dist/components/TariffsTable/TariffsTable.js +4 -11
  24. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  25. package/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  26. package/dist/components/TariffsTable/TariffsTableCell.js +14 -4
  27. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  28. package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  29. package/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  30. package/dist/components/TariffsTable/TariffsTableRow.js +6 -10
  31. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  32. package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  33. package/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
  34. package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  35. package/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  36. package/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
  37. package/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  38. package/dist/components/TariffsTable/dataFixture.js +1 -14
  39. package/dist/components/TariffsTable/dataFixture.js.map +1 -1
  40. package/dist/components/TariffsTable/renderCell.d.ts +2 -0
  41. package/dist/components/TariffsTable/renderCell.js +15 -0
  42. package/dist/components/TariffsTable/renderCell.js.map +1 -0
  43. package/dist/components/TariffsTable/renderHeader.d.ts +2 -0
  44. package/dist/components/TariffsTable/renderHeader.js +10 -0
  45. package/dist/components/TariffsTable/renderHeader.js.map +1 -0
  46. package/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  47. package/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
  48. package/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  49. package/dist/model/onClick.d.ts +3 -0
  50. package/dist/model/onClick.js +2 -0
  51. package/dist/model/onClick.js.map +1 -0
  52. package/dist/model/onClose.d.ts +3 -0
  53. package/dist/model/onClose.js +2 -0
  54. package/dist/model/onClose.js.map +1 -0
  55. package/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  56. package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  57. package/dist/ui-kit/InnerTable/InnerTable.js +2 -3
  58. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  59. package/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
  60. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  61. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  62. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  63. package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  64. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  65. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  66. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  67. package/lib/common.css +1 -1
  68. package/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  69. package/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
  70. package/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  71. package/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  72. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +3 -1
  73. package/lib/components/TariffsTable/TariffsTable.js +4 -11
  74. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  75. package/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  76. package/lib/components/TariffsTable/TariffsTableCell.js +14 -4
  77. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  78. package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  79. package/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  80. package/lib/components/TariffsTable/TariffsTableRow.js +6 -10
  81. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  82. package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  83. package/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
  84. package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  85. package/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  86. package/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
  87. package/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  88. package/lib/components/TariffsTable/dataFixture.js +1 -14
  89. package/lib/components/TariffsTable/dataFixture.js.map +1 -1
  90. package/lib/components/TariffsTable/renderCell.d.ts +2 -0
  91. package/lib/components/TariffsTable/renderCell.js +12 -0
  92. package/lib/components/TariffsTable/renderCell.js.map +1 -0
  93. package/lib/components/TariffsTable/renderHeader.d.ts +2 -0
  94. package/lib/components/TariffsTable/renderHeader.js +7 -0
  95. package/lib/components/TariffsTable/renderHeader.js.map +1 -0
  96. package/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  97. package/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
  98. package/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  99. package/lib/model/onClick.d.ts +3 -0
  100. package/lib/model/onClick.js +2 -0
  101. package/lib/model/onClick.js.map +1 -0
  102. package/lib/model/onClose.d.ts +3 -0
  103. package/lib/model/onClose.js +2 -0
  104. package/lib/model/onClose.js.map +1 -0
  105. package/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  106. package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  107. package/lib/ui-kit/InnerTable/InnerTable.js +2 -3
  108. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  109. package/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
  110. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  111. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  112. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  113. package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  114. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  115. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  116. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  117. package/mobile/bundle/bundle.umd.js +45 -122
  118. package/mobile/bundle/bundle.umd.min.js +1 -1
  119. package/mobile/bundle/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  120. package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
  121. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  122. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  123. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  124. package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  125. package/mobile/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  126. package/mobile/bundle/components/TariffsTable/renderCell.d.ts +2 -0
  127. package/mobile/bundle/components/TariffsTable/renderHeader.d.ts +2 -0
  128. package/mobile/bundle/model/onClick.d.ts +3 -0
  129. package/mobile/bundle/model/onClose.d.ts +3 -0
  130. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  131. package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  132. package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  133. package/mobile/dist/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  134. package/mobile/dist/components/TariffsTable/TableCarouselContainer.js +1 -1
  135. package/mobile/dist/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  136. package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  137. package/mobile/dist/components/TariffsTable/TariffsTable.js +4 -11
  138. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  139. package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  140. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +14 -4
  141. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  142. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  143. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  144. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +6 -10
  145. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  146. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  147. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -3
  148. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  149. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  150. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js +1 -9
  151. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  152. package/mobile/dist/components/TariffsTable/dataFixture.js +1 -14
  153. package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
  154. package/mobile/dist/components/TariffsTable/renderCell.d.ts +2 -0
  155. package/mobile/dist/components/TariffsTable/renderCell.js +15 -0
  156. package/mobile/dist/components/TariffsTable/renderCell.js.map +1 -0
  157. package/mobile/dist/components/TariffsTable/renderHeader.d.ts +2 -0
  158. package/mobile/dist/components/TariffsTable/renderHeader.js +10 -0
  159. package/mobile/dist/components/TariffsTable/renderHeader.js.map +1 -0
  160. package/mobile/dist/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  161. package/mobile/dist/components/TariffsTable/renderInnerTableCell.js +1 -0
  162. package/mobile/dist/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  163. package/mobile/dist/model/onClick.d.ts +3 -0
  164. package/mobile/dist/model/onClick.js +2 -0
  165. package/mobile/dist/model/onClick.js.map +1 -0
  166. package/mobile/dist/model/onClose.d.ts +3 -0
  167. package/mobile/dist/model/onClose.js +2 -0
  168. package/mobile/dist/model/onClose.js.map +1 -0
  169. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  170. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  171. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +2 -3
  172. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  173. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +4 -6
  174. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  175. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  176. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  177. package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  178. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  179. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  180. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  181. package/mobile/lib/common.css +1 -1
  182. package/mobile/lib/components/TariffsTable/TableCarouselContainer.d.ts +0 -2
  183. package/mobile/lib/components/TariffsTable/TableCarouselContainer.js +1 -1
  184. package/mobile/lib/components/TariffsTable/TableCarouselContainer.js.map +1 -1
  185. package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  186. package/mobile/lib/components/TariffsTable/TariffsTable.js +4 -11
  187. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  188. package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +10 -8
  189. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -4
  190. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  191. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -68
  192. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -2
  193. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +6 -10
  194. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  195. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +2 -1
  196. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -2
  197. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  198. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.d.ts +1 -6
  199. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js +2 -10
  200. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -1
  201. package/mobile/lib/components/TariffsTable/dataFixture.js +1 -14
  202. package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
  203. package/mobile/lib/components/TariffsTable/renderCell.d.ts +2 -0
  204. package/mobile/lib/components/TariffsTable/renderCell.js +12 -0
  205. package/mobile/lib/components/TariffsTable/renderCell.js.map +1 -0
  206. package/mobile/lib/components/TariffsTable/renderHeader.d.ts +2 -0
  207. package/mobile/lib/components/TariffsTable/renderHeader.js +7 -0
  208. package/mobile/lib/components/TariffsTable/renderHeader.js.map +1 -0
  209. package/mobile/lib/components/TariffsTable/renderInnerTableCell.d.ts +0 -0
  210. package/mobile/lib/components/TariffsTable/renderInnerTableCell.js +1 -0
  211. package/mobile/lib/components/TariffsTable/renderInnerTableCell.js.map +1 -0
  212. package/mobile/lib/model/onClick.d.ts +3 -0
  213. package/mobile/lib/model/onClick.js +2 -0
  214. package/mobile/lib/model/onClick.js.map +1 -0
  215. package/mobile/lib/model/onClose.d.ts +3 -0
  216. package/mobile/lib/model/onClose.js +2 -0
  217. package/mobile/lib/model/onClose.js.map +1 -0
  218. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  219. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  220. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +2 -3
  221. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  222. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +4 -6
  223. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  224. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +2 -3
  225. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  226. package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +2 -4
  227. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +1 -1
  228. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  229. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -1
  230. package/mobile/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
  231. package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -34
  232. package/mobile/src/components/TariffsTable/TariffsTable.tsx +6 -13
  233. package/mobile/src/components/TariffsTable/TariffsTable.ui.json +0 -3
  234. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
  235. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +7 -84
  236. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
  237. package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
  238. package/mobile/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
  239. package/mobile/src/components/TariffsTable/dataFixture.tsx +9 -22
  240. package/mobile/src/components/TariffsTable/renderCell.tsx +42 -0
  241. package/mobile/src/components/TariffsTable/renderHeader.tsx +19 -0
  242. package/mobile/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
  243. package/mobile/src/model/onClick.ts +3 -0
  244. package/mobile/src/model/onClose.ts +3 -0
  245. package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
  246. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
  247. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
  248. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
  249. package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
  250. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
  251. package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  252. package/package.json +1 -1
  253. package/src/components/TariffsTable/TableCarouselContainer.tsx +3 -10
  254. package/src/components/TariffsTable/TariffsTable.example.json +1 -34
  255. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +28 -2
  256. package/src/components/TariffsTable/TariffsTable.tsx +6 -13
  257. package/src/components/TariffsTable/TariffsTable.ui.json +0 -3
  258. package/src/components/TariffsTable/TariffsTableCell.tsx +37 -35
  259. package/src/components/TariffsTable/TariffsTableContent.ts +7 -84
  260. package/src/components/TariffsTable/TariffsTableRow.tsx +9 -49
  261. package/src/components/TariffsTable/TariffsTableRowContainer.tsx +7 -13
  262. package/src/components/TariffsTable/TariffsTableWrapper.tsx +5 -25
  263. package/src/components/TariffsTable/dataFixture.tsx +9 -22
  264. package/src/components/TariffsTable/renderCell.tsx +42 -0
  265. package/src/components/TariffsTable/renderHeader.tsx +19 -0
  266. package/src/components/TariffsTable/renderInnerTableCell.tsx +0 -0
  267. package/src/model/onClick.ts +3 -0
  268. package/src/model/onClose.ts +3 -0
  269. package/src/retail/components/DraftDialog/DraftActionButton.tsx +5 -3
  270. package/src/ui-kit/InnerTable/InnerTable.fixture.mobile.tsx +1 -4
  271. package/src/ui-kit/InnerTable/InnerTable.fixture.tsx +1 -4
  272. package/src/ui-kit/InnerTable/InnerTable.tsx +2 -6
  273. package/src/ui-kit/InnerTable/InnerTableBody.tsx +19 -21
  274. package/src/ui-kit/InnerTable/InnerTableButton.tsx +2 -4
  275. package/src/ui-kit/InnerTable/InnerTableProps.ts +2 -4
  276. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +1 -1
  277. package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +1 -1
  278. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  279. package/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
  280. package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  281. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  282. package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  283. package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  284. package/bundle/components/TariffsTable/constants.d.ts +0 -4
  285. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  286. package/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
  287. package/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  288. package/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
  289. package/dist/components/TariffsTable/TableTileHeader.js +0 -8
  290. package/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
  291. package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  292. package/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
  293. package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  294. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  295. package/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
  296. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  297. package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  298. package/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
  299. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  300. package/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  301. package/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
  302. package/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  303. package/dist/components/TariffsTable/constants.d.ts +0 -4
  304. package/dist/components/TariffsTable/constants.js +0 -7
  305. package/dist/components/TariffsTable/constants.js.map +0 -1
  306. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  307. package/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
  308. package/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  309. package/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
  310. package/lib/components/TariffsTable/TableTileHeader.js +0 -6
  311. package/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
  312. package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  313. package/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
  314. package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  315. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  316. package/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
  317. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  318. package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  319. package/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
  320. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  321. package/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  322. package/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
  323. package/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  324. package/lib/components/TariffsTable/constants.d.ts +0 -4
  325. package/lib/components/TariffsTable/constants.js +0 -5
  326. package/lib/components/TariffsTable/constants.js.map +0 -1
  327. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  328. package/mobile/bundle/components/TariffsTable/TableTileHeader.d.ts +0 -2
  329. package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  330. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  331. package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  332. package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  333. package/mobile/bundle/components/TariffsTable/constants.d.ts +0 -4
  334. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  335. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +0 -25
  336. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  337. package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +0 -2
  338. package/mobile/dist/components/TariffsTable/TableTileHeader.js +0 -8
  339. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +0 -1
  340. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  341. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +0 -8
  342. package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  343. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  344. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +0 -41
  345. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  346. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  347. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +0 -17
  348. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  349. package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  350. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +0 -7
  351. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  352. package/mobile/dist/components/TariffsTable/constants.d.ts +0 -4
  353. package/mobile/dist/components/TariffsTable/constants.js +0 -7
  354. package/mobile/dist/components/TariffsTable/constants.js.map +0 -1
  355. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +0 -20
  356. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +0 -23
  357. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +0 -1
  358. package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +0 -2
  359. package/mobile/lib/components/TariffsTable/TableTileHeader.js +0 -6
  360. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +0 -1
  361. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +0 -2
  362. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +0 -6
  363. package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +0 -1
  364. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -12
  365. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +0 -39
  366. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +0 -1
  367. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +0 -6
  368. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +0 -15
  369. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +0 -1
  370. package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +0 -2
  371. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +0 -5
  372. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +0 -1
  373. package/mobile/lib/components/TariffsTable/constants.d.ts +0 -4
  374. package/mobile/lib/components/TariffsTable/constants.js +0 -5
  375. package/mobile/lib/components/TariffsTable/constants.js.map +0 -1
  376. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
  377. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +0 -15
  378. package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
  379. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
  380. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
  381. package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
  382. package/mobile/src/components/TariffsTable/constants.ts +0 -4
  383. package/src/components/TariffsTable/EmbeddableCellData.tsx +0 -79
  384. package/src/components/TariffsTable/TableTileHeader.tsx +0 -15
  385. package/src/components/TariffsTable/TariffsTableHorizontal.tsx +0 -14
  386. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -83
  387. package/src/components/TariffsTable/TariffsTableTileCell.tsx +0 -33
  388. package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -13
  389. package/src/components/TariffsTable/constants.ts +0 -4
@@ -1,7 +1,5 @@
1
1
  import { type TableVersion } from '../../model/TableVersion';
2
2
  export interface TableCarouselContainerProps {
3
- activeIndex: number;
4
- columnWidth: number;
5
3
  version?: TableVersion;
6
4
  }
7
5
  export declare const TableCarouselContainer: import("@redneckz/uni-jsx").UNIComponent<TableCarouselContainerProps, any, any>;
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
2
  import { type TariffsTableContent } from './TariffsTableContent';
3
3
  export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {
4
4
  }
5
- export declare const TariffsTable: import("@redneckz/uni-jsx").UNIComponent<TariffsTableProps, any, any>;
5
+ export declare const TariffsTable: import("../../UniBlock/UniBlock").UniBlockComponent<TariffsTableProps>;
@@ -1,15 +1,17 @@
1
- import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
1
+ import type { JSONRefObject } from '../../data/JSONRefObject';
2
+ import { type OnCloseProps } from '../../model/onClose';
3
+ import { type TableFetchData, type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
2
4
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
5
  import { type CellDef } from './TariffsTableContent';
4
6
  export interface TariffTableContentProps {
5
- openTableInnerIdx?: number;
6
- setOpenTableInnerIdx: (props?: number) => void;
7
- setTableInner: (props?: TariffsTableInnerContent) => void;
7
+ onSetTable: (props?: TariffsTableInnerContent) => void;
8
8
  tableInner?: TariffsTableInnerContent;
9
9
  }
10
- export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps {
11
- rowIdx: number;
12
- cellIdx: number;
13
- cells: CellDef[];
10
+ declare type CellDefProps = CellDef & {
11
+ tableSource?: JSONRefObject & TableFetchData;
12
+ };
13
+ export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps, OnCloseProps {
14
+ cells: CellDefProps[];
14
15
  }
15
16
  export declare const TariffsTableCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableCellProps, any, any>;
17
+ export {};
@@ -4,28 +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
- * @hidden
10
- */
11
- export interface TariffsTableTile {
12
- header: TariffsTableRowHeader;
13
- data: CellDef[];
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export interface TariffsTableProps extends UniBlockProps {
19
- tiles?: TariffsTableTile[];
20
- }
21
- /**
22
- * @hidden
23
- */
24
- export interface TariffsTableCellIndexProps {
25
- rowIdx: number;
26
- cellIdx: number;
27
- fieldIdx: number;
28
- }
7
+ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
29
8
  /**
30
9
  * @hidden
31
10
  */
@@ -37,55 +16,10 @@ export declare type Data = {
37
16
  * @title Параметр
38
17
  */
39
18
  export declare type TariffsTableRowHeader = TitleProps & IconProps;
40
- /**
41
- * @title Изображение
42
- */
43
- export declare type ImageCellDef = ImageContent & {
44
- /** @default Img */
45
- tableCellType: 'Img';
46
- };
47
- /**
48
- * @title Кнопки
49
- */
50
- export declare type ButtonsCellDef = ButtonsSectionContent & {
51
- /** @default Buttons */
52
- tableCellType: 'Buttons';
53
- };
54
- /**
55
- * @title Заголовок и описание
56
- */
57
- export declare type LabelDescriptionCell = LabelProps & DescriptionProps;
58
- /**
59
- * @title Заголовок и описание
60
- */
61
- export declare type LabelDescriptionCellDef = LabelDescriptionCell & {
62
- /** @default LabelDescription */
63
- tableCellType: 'LabelDescription';
64
- };
65
- /**
66
- * @title Список
67
- */
68
- export declare type RichTextDef = RichTextProps & {
69
- /** @default RichText */
70
- tableCellType: 'RichText';
71
- };
72
- /**
73
- * @title Таблица
74
- */
75
- export declare type InnerTableBlockDef = TariffsTableInnerContent & {
76
- /** @default Table */
77
- tableCellType: 'Table';
78
- };
79
- /** @title Не выбрано * */
80
- export declare type EmptyCellType = {
81
- /** @default "" */
82
- tableCellType: '';
83
- };
84
19
  /**
85
20
  * @title Содержимое ячейки
86
- * @default { "tableCellType": "" }
87
21
  */
88
- export declare type CellDef = EmptyCellType | ImageCellDef | ButtonsCellDef | LabelDescriptionCellDef | RichTextDef | InnerTableBlockDef;
22
+ export declare type CellDef = LabelProps & DescriptionProps & RichTextProps & ImageContent & TariffsTableInnerContent & ButtonsSectionContent;
89
23
  /**
90
24
  * @title Ячейки
91
25
  */
@@ -2,7 +2,5 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
2
  import { type Data } from './TariffsTableContent';
3
3
  export interface TariffsTableRowProps extends UniBlockProps {
4
4
  row: Data;
5
- activeIndex: number;
6
- rowIdx: number;
7
5
  }
8
6
  export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
@@ -2,6 +2,7 @@ import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTabl
2
2
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
3
  export interface TariffsTableRowContainerProps extends UniBlockProps {
4
4
  tableInner?: TariffsTableInnerContent;
5
- onHideContentClick?: () => void;
5
+ onClick?: (_?: TariffsTableInnerContent) => void;
6
6
  }
7
+ export declare const DIVIDER_STYLE = "border-main-divider lg:border-b w-full py-s lg:py-xl";
7
8
  export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
@@ -1,6 +1 @@
1
- import { type CarouselControls } from '../../hooks/useCarouselControls';
2
- interface WrapperProps {
3
- controls: CarouselControls;
4
- }
5
- export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<WrapperProps, any, any>;
6
- export {};
1
+ export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
@@ -0,0 +1,2 @@
1
+ import type { CellDef } from './TariffsTableContent';
2
+ export declare const renderCell: ({ label, description, __html, isDotted, buttons, image }: CellDef, i: number) => any;
@@ -0,0 +1,2 @@
1
+ import type { TariffsTableRowHeader } from './TariffsTableContent';
2
+ export declare const renderHeader: ({ title, icon }: TariffsTableRowHeader) => any;
@@ -0,0 +1,3 @@
1
+ export interface OnClickProps {
2
+ onClick?: () => void;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface OnCloseProps {
2
+ onClose?: () => void;
3
+ }
@@ -1,8 +1,7 @@
1
- import { type TariffsTableCellIndexProps } from '../../components/TariffsTable/TariffsTableContent';
2
1
  import { type ComponentType } from '../../model/ComponentType';
3
- import type { OnClickProps } from '../../model/OnClickProps';
2
+ import { type OnClickProps } from '../../model/onClick';
4
3
  import { type TariffsTableInnerContent } from './InnerTableProps';
5
- export interface InnerTableButtonProps extends Partial<TariffsTableCellIndexProps>, TariffsTableInnerContent, ComponentType, OnClickProps {
4
+ export interface InnerTableButtonProps extends TariffsTableInnerContent, ComponentType, OnClickProps {
6
5
  isOpen?: boolean;
7
6
  }
8
7
  export declare const TableInnerButton: import("@redneckz/uni-jsx").UNIComponent<InnerTableButtonProps, any, any>;
@@ -14,9 +14,7 @@ export declare type TableData = {
14
14
  export declare type TableFetchData = {
15
15
  tableData?: TableData[];
16
16
  };
17
- export interface TariffsTableInnerContent {
17
+ export declare type TariffsTableInnerContent = {
18
18
  /** @title Справочник */
19
19
  tableSource?: JSONRefObject;
20
- /** @title Ссылка PDF-файл */
21
- pdfUrl?: string;
22
- }
20
+ };
@@ -1,4 +1,4 @@
1
- import type { OnCloseProps } from '../../model/OnCloseProps';
1
+ import { type OnCloseProps } from '../../model/onClose';
2
2
  export interface ResponseNotificationProps extends OnCloseProps {
3
3
  ok?: boolean;
4
4
  typeForm?: string;
@@ -1,7 +1,5 @@
1
1
  import { type TableVersion } from '../../model/TableVersion';
2
2
  export interface TableCarouselContainerProps {
3
- activeIndex: number;
4
- columnWidth: number;
5
3
  version?: TableVersion;
6
4
  }
7
5
  export declare const TableCarouselContainer: import("@redneckz/uni-jsx").UNIComponent<TableCarouselContainerProps, any, any>;
@@ -6,5 +6,5 @@ const carouselContainerClassesMap = {
6
6
  comparison: 'flex gap-m duration-1000',
7
7
  tariff: 'flex gap-5xl flex-grow duration-1000',
8
8
  };
9
- exports.TableCarouselContainer = (0, uni_jsx_1.JSX)(({ children, activeIndex, columnWidth, version = 'comparison' }) => ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-1 overflow-hidden", children: (0, jsx_runtime_1.jsx)("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
9
+ exports.TableCarouselContainer = (0, uni_jsx_1.JSX)(({ children, version = 'comparison' }) => ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-1", children: (0, jsx_runtime_1.jsx)("div", { className: carouselContainerClassesMap[version], children: children }) })));
10
10
  //# sourceMappingURL=TableCarouselContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCarouselContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableCarouselContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AASxC,MAAM,2BAA2B,GAAiC;IAChE,UAAU,EAAE,0BAA0B;IACtC,MAAM,EAAE,sCAAsC;CAC/C,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC,CAClE,gCAAK,SAAS,EAAC,6BAA6B,YAC1C,gCACE,SAAS,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAC/C,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,WAAW,GAAG,WAAW,KAAK,EAAE,YAElE,QAAQ,GACL,GACF,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"TableCarouselContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableCarouselContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAOxC,MAAM,2BAA2B,GAAiC;IAChE,UAAU,EAAE,0BAA0B;IACtC,MAAM,EAAE,sCAAsC;CAC/C,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC,CACxC,gCAAK,SAAS,EAAC,aAAa,YAC1B,gCAAK,SAAS,EAAE,2BAA2B,CAAC,OAAO,CAAC,YAAG,QAAQ,GAAO,GAClE,CACP,CACF,CAAC"}
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
2
  import { type TariffsTableContent } from './TariffsTableContent';
3
3
  export interface TariffsTableProps extends TariffsTableContent, UniBlockProps {
4
4
  }
5
- export declare const TariffsTable: import("@redneckz/uni-jsx").UNIComponent<TariffsTableProps, any, any>;
5
+ export declare const TariffsTable: import("../../UniBlock/UniBlock").UniBlockComponent<TariffsTableProps>;
@@ -1,32 +1,25 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.TariffsTable = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
4
  const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
6
- const useCarouselControls_1 = require("../../hooks/useCarouselControls");
7
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
8
6
  const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
9
7
  const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
10
8
  const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
9
+ const UniBlock_1 = require("../../UniBlock/UniBlock");
11
10
  const style_1 = require("../../utils/style");
12
11
  const Headline_1 = require("../Headline/Headline");
13
- const constants_1 = require("./constants");
14
12
  const TariffsTableRow_1 = require("./TariffsTableRow");
15
13
  const TariffsTableWrapper_1 = require("./TariffsTableWrapper");
16
- exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
14
+ exports.TariffsTable = (0, UniBlock_1.UniBlock)(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
17
15
  const colData = columns?.map(({ data }) => data) || [];
18
16
  const rowData = rowHeaders?.map((header, i) => ({
19
17
  header,
20
18
  data: colData.map((col) => col?.[i] || []),
21
19
  }));
22
- const itemCount = colData.length;
23
- const [activeIndex, controls] = (0, useCarouselControls_1.useCarouselControls)({
24
- itemCount: itemCount,
25
- visibleItemCount: constants_1.COLS_LENGTH_FOR_SCROLL,
26
- });
27
- const rows = (rowData || []).map((row, i) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
20
+ const rows = (rowData || []).map((row, i) => ((0, jsx_runtime_1.jsx)(TariffsTableRow_1.TariffsTableRow, { row: row, ...rest }, String(i))));
28
21
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
29
22
  const [isUnfolded, { toggle }] = (0, useBool_1.useBool)(false);
30
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), (0, jsx_runtime_1.jsx)("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsxs)(Foldable_1.Foldable, { children: [(0, jsx_runtime_1.jsxs)(TariffsTableWrapper_1.TariffsTableWrapper, { controls: controls, children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), (0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : ((0, jsx_runtime_1.jsx)(TariffsTableWrapper_1.TariffsTableWrapper, { controls: controls, children: rows })) })] }));
23
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), (0, jsx_runtime_1.jsx)("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? ((0, jsx_runtime_1.jsxs)(Foldable_1.Foldable, { children: [(0, jsx_runtime_1.jsxs)(TariffsTableWrapper_1.TariffsTableWrapper, { children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), (0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : ((0, jsx_runtime_1.jsx)(TariffsTableWrapper_1.TariffsTableWrapper, { children: rows })) })] }));
31
24
  });
32
25
  //# sourceMappingURL=TariffsTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAC9D,yEAAsE;AACtE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AAExE,6CAA0C;AAC1C,mDAAgD;AAChD,2CAAqD;AAErD,uDAAoD;AACpD,+DAA4D;AAI/C,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,UAAU,EACV,cAAc,EAAE,OAAO,EACvB,aAAa,GAAG,CAAC,EACjB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC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,MAAM,GAAI,IACzE,CACZ,CAAC,CAAC,CAAC,CACF,uBAAC,yCAAmB,cAAE,IAAI,GAAuB,CAClD,GACG,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,15 +1,17 @@
1
- import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
1
+ import type { JSONRefObject } from '../../data/JSONRefObject';
2
+ import { type OnCloseProps } from '../../model/onClose';
3
+ import { type TableFetchData, type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
2
4
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
5
  import { type CellDef } from './TariffsTableContent';
4
6
  export interface TariffTableContentProps {
5
- openTableInnerIdx?: number;
6
- setOpenTableInnerIdx: (props?: number) => void;
7
- setTableInner: (props?: TariffsTableInnerContent) => void;
7
+ onSetTable: (props?: TariffsTableInnerContent) => void;
8
8
  tableInner?: TariffsTableInnerContent;
9
9
  }
10
- export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps {
11
- rowIdx: number;
12
- cellIdx: number;
13
- cells: CellDef[];
10
+ declare type CellDefProps = CellDef & {
11
+ tableSource?: JSONRefObject & TableFetchData;
12
+ };
13
+ export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps, OnCloseProps {
14
+ cells: CellDefProps[];
14
15
  }
15
16
  export declare const TariffsTableCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableCellProps, any, any>;
17
+ export {};
@@ -2,8 +2,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.TariffsTableCell = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const TariffsTableRenderCell_1 = require("./TariffsTableRenderCell");
6
- exports.TariffsTableCell = (0, uni_jsx_1.JSX)(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => ((0, jsx_runtime_1.jsx)("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
7
- ? cells.map((_, i) => ((0, jsx_runtime_1.jsx)(TariffsTableRenderCell_1.RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
8
- : null })));
5
+ const InnerTableButton_1 = require("../../ui-kit/InnerTable/InnerTableButton");
6
+ const renderCell_1 = require("./renderCell");
7
+ exports.TariffsTableCell = (0, uni_jsx_1.JSX)(({ cells, tableInner, onSetTable }) => {
8
+ return ((0, jsx_runtime_1.jsx)("div", { className: "w-80 flex-grow flex flex-col gap-lg", role: "cell", children: cells?.length
9
+ ? cells.map((_, i) => {
10
+ if (_?.tableSource?.tableData) {
11
+ return ((0, jsx_runtime_1.jsx)(InnerTableButton_1.TableInnerButton, { className: "w-fit", isOpen: Boolean(tableInner), onClick: () => {
12
+ onSetTable(tableInner ? undefined : { tableSource: _.tableSource });
13
+ } }, String(i)));
14
+ }
15
+ return (0, renderCell_1.renderCell)(_, i);
16
+ })
17
+ : null }));
18
+ });
9
19
  //# sourceMappingURL=TariffsTableCell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,qEAA2D;AAe9C,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EACC,KAAK,EACL,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,oBAAoB,GACrB,EAAE,EAAE,CAAC,CACJ,gCAAK,SAAS,EAAC,gDAAgD,EAAC,IAAI,EAAC,MAAM,YACxE,KAAK,EAAE,MAAM;QACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,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,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -4,28 +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
- * @hidden
10
- */
11
- export interface TariffsTableTile {
12
- header: TariffsTableRowHeader;
13
- data: CellDef[];
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export interface TariffsTableProps extends UniBlockProps {
19
- tiles?: TariffsTableTile[];
20
- }
21
- /**
22
- * @hidden
23
- */
24
- export interface TariffsTableCellIndexProps {
25
- rowIdx: number;
26
- cellIdx: number;
27
- fieldIdx: number;
28
- }
7
+ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
29
8
  /**
30
9
  * @hidden
31
10
  */
@@ -37,55 +16,10 @@ export declare type Data = {
37
16
  * @title Параметр
38
17
  */
39
18
  export declare type TariffsTableRowHeader = TitleProps & IconProps;
40
- /**
41
- * @title Изображение
42
- */
43
- export declare type ImageCellDef = ImageContent & {
44
- /** @default Img */
45
- tableCellType: 'Img';
46
- };
47
- /**
48
- * @title Кнопки
49
- */
50
- export declare type ButtonsCellDef = ButtonsSectionContent & {
51
- /** @default Buttons */
52
- tableCellType: 'Buttons';
53
- };
54
- /**
55
- * @title Заголовок и описание
56
- */
57
- export declare type LabelDescriptionCell = LabelProps & DescriptionProps;
58
- /**
59
- * @title Заголовок и описание
60
- */
61
- export declare type LabelDescriptionCellDef = LabelDescriptionCell & {
62
- /** @default LabelDescription */
63
- tableCellType: 'LabelDescription';
64
- };
65
- /**
66
- * @title Список
67
- */
68
- export declare type RichTextDef = RichTextProps & {
69
- /** @default RichText */
70
- tableCellType: 'RichText';
71
- };
72
- /**
73
- * @title Таблица
74
- */
75
- export declare type InnerTableBlockDef = TariffsTableInnerContent & {
76
- /** @default Table */
77
- tableCellType: 'Table';
78
- };
79
- /** @title Не выбрано * */
80
- export declare type EmptyCellType = {
81
- /** @default "" */
82
- tableCellType: '';
83
- };
84
19
  /**
85
20
  * @title Содержимое ячейки
86
- * @default { "tableCellType": "" }
87
21
  */
88
- export declare type CellDef = EmptyCellType | ImageCellDef | ButtonsCellDef | LabelDescriptionCellDef | RichTextDef | InnerTableBlockDef;
22
+ export declare type CellDef = LabelProps & DescriptionProps & RichTextProps & ImageContent & TariffsTableInnerContent & ButtonsSectionContent;
89
23
  /**
90
24
  * @title Ячейки
91
25
  */
@@ -2,7 +2,5 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
2
  import { type Data } from './TariffsTableContent';
3
3
  export interface TariffsTableRowProps extends UniBlockProps {
4
4
  row: Data;
5
- activeIndex: number;
6
- rowIdx: number;
7
5
  }
8
6
  export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
@@ -3,19 +3,15 @@ exports.TariffsTableRow = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
- const Img_1 = require("../../ui-kit/Img/Img");
7
- const Text_1 = require("../../ui-kit/Text/Text");
8
- const style_1 = require("../../utils/style");
9
- const constants_1 = require("./constants");
6
+ const renderHeader_1 = require("./renderHeader");
10
7
  const TableCarouselContainer_1 = require("./TableCarouselContainer");
11
8
  const TariffsTableCell_1 = require("./TariffsTableCell");
12
9
  const TariffsTableRowContainer_1 = require("./TariffsTableRowContainer");
13
- exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
10
+ exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data = [] }, ...rest }) => {
14
11
  const [tableInner, setTableInner] = (0, hooks_1.useState)(undefined);
15
- const handleSetTableInner = (0, hooks_1.useCallback)((_) => setTableInner(_), []);
16
- const [openTableInnerIdx, setOpenTableInnerIdx] = (0, hooks_1.useState)(undefined);
17
- const handleOpenTableInnerIdx = (0, hooks_1.useCallback)((_) => setOpenTableInnerIdx(_), []);
18
- const onHideContentClick = () => setTableInner(undefined);
19
- return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('text-s', constants_1.firstCellStyle), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeIndex: activeIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
12
+ const handleSetTableInner = (0, hooks_1.useCallback)((_) => {
13
+ setTableInner(_);
14
+ }, []);
15
+ return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { tableInner: tableInner, ...rest, children: [(0, renderHeader_1.renderHeader)(header), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, onSetTable: handleSetTableInner, tableInner: tableInner, ...rest }, String(i)))) })) : null] }));
20
16
  });
21
17
  //# sourceMappingURL=TariffsTableRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,8CAA2C;AAE3C,iDAA8C;AAE9C,6CAA0C;AAC1C,2CAA2D;AAC3D,qEAAkE;AAClE,yDAAsD;AAEtD,yEAAsE;AAQzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAuC,SAAS,CAAC,CAAC;IAC9F,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EACrC,CAAC,CAAuC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAC7D,EAAE,CACH,CAAC;IACF,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAqB,SAAS,CAAC,CAAC;IAC1F,MAAM,uBAAuB,GAAG,IAAA,mBAAW,EACzC,CAAC,CAAqB,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAClD,EAAE,CACH,CAAC;IACF,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAE1D,OAAO,CACL,wBAAC,mDAAwB,IACvB,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,KAClB,IAAI,aAER,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,QAAQ,EAAE,0BAAc,CAAC,YAC7C,iCAAK,SAAS,EAAC,yBAAyB,EAAC,IAAI,EAAC,MAAM,aACjD,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAC,oCAAoC,EAC9C,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,mBAAmB,YAC5D,MAAM,EAAE,KAAK,GACT,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,GACF,EACL,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IACrB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,wBAAY,EACzB,OAAO,EAAC,QAAQ,YAEf,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mCAAgB,IAEf,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,aAAa,EAAE,mBAAmB,EAClC,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,uBAAuB,KACzC,IAAI,IARH,MAAM,CAAC,CAAC,CAAC,CASd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAGpE,iDAA8C;AAC9C,qEAAkE;AAClE,yDAAsD;AAEtD,yEAAsE;AAMzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAuC,SAAS,CAAC,CAAC;IAC9F,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAA4B,EAAE,EAAE;QACvE,aAAa,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,wBAAC,mDAAwB,IAAC,UAAU,EAAE,UAAU,KAAM,IAAI,aACvD,IAAA,2BAAY,EAAC,MAAM,CAAC,EACpB,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IAAC,OAAO,EAAC,QAAQ,YACrC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mCAAgB,IAEf,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,mBAAmB,EAC/B,UAAU,EAAE,UAAU,KAClB,IAAI,IAJH,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -2,6 +2,7 @@ import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTabl
2
2
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
3
  export interface TariffsTableRowContainerProps extends UniBlockProps {
4
4
  tableInner?: TariffsTableInnerContent;
5
- onHideContentClick?: () => void;
5
+ onClick?: (_?: TariffsTableInnerContent) => void;
6
6
  }
7
+ export declare const DIVIDER_STYLE = "border-main-divider lg:border-b w-full py-s lg:py-xl";
7
8
  export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.TariffsTableRowContainer = void 0;
2
+ exports.TariffsTableRowContainer = exports.DIVIDER_STYLE = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const InnerTable_1 = require("../../ui-kit/InnerTable/InnerTable");
6
6
  const style_1 = require("../../utils/style");
7
- const constants_1 = require("./constants");
8
- exports.TariffsTableRowContainer = (0, uni_jsx_1.JSX)(({ children, tableInner, onHideContentClick }) => ((0, jsx_runtime_1.jsxs)("div", { className: "self-start flex flex-col", role: "row", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(constants_1.dividerStyle, 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg'), children: children }), tableInner ? ((0, jsx_runtime_1.jsx)("div", { className: "origin-top animate-expansion", children: (0, jsx_runtime_1.jsx)(InnerTable_1.InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
7
+ exports.DIVIDER_STYLE = 'border-main-divider lg:border-b w-full py-s lg:py-xl';
8
+ exports.TariffsTableRowContainer = (0, uni_jsx_1.JSX)(({ children, tableInner, onClick }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('self-start flex flex-col gap-xl', exports.DIVIDER_STYLE), role: "row", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex flex-col lg:flex-row gap-x-5xl gap-y-xs'), children: children }), tableInner ? ((0, jsx_runtime_1.jsx)("div", { className: "origin-top animate-expansion", children: (0, jsx_runtime_1.jsx)(InnerTable_1.InnerTable, { ...tableInner, onClick: onClick }) })) : null] })));
9
9
  //# sourceMappingURL=TariffsTableRowContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTableRowContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRowContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAGhE,6CAA0C;AAC1C,2CAA2C;AAO9B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAChD,iCAAK,SAAS,EAAC,0BAA0B,EAAC,IAAI,EAAC,KAAK,aAClD,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,wBAAY,EACZ,iEAAiE,CAClE,YAEA,QAAQ,GACL,EACL,UAAU,CAAC,CAAC,CAAC,CACZ,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,uBAAC,uBAAU,OAAK,UAAU,EAAE,OAAO,EAAE,kBAAkB,GAAI,GACvD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"TariffsTableRowContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRowContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAGhE,6CAA0C;AAO7B,QAAA,aAAa,GAAG,sDAAsD,CAAC;AAEvE,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrC,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,iCAAiC,EAAE,qBAAa,CAAC,EAAE,IAAI,EAAC,KAAK,aACjF,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,8CAA8C,CAAC,YAAG,QAAQ,GAAO,EACtF,UAAU,CAAC,CAAC,CAAC,CACZ,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,uBAAC,uBAAU,OAAK,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,GAC5C,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CACF,CAAC"}
@@ -1,6 +1 @@
1
- import { type CarouselControls } from '../../hooks/useCarouselControls';
2
- interface WrapperProps {
3
- controls: CarouselControls;
4
- }
5
- export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<WrapperProps, any, any>;
6
- export {};
1
+ export declare const TariffsTableWrapper: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
@@ -2,13 +2,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.TariffsTableWrapper = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const renderArrows_1 = require("../../ui-kit/LinkButton/renderArrows");
6
- exports.TariffsTableWrapper = (0, uni_jsx_1.JSX)(({ children, controls }) => {
7
- const { isScrollAvailable } = controls;
8
- return ((0, jsx_runtime_1.jsxs)("div", { role: "table", className: "overflow-x-auto w-auto grid md:block", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative space-y-xs", children: [children, (0, renderArrows_1.renderArrows)({
9
- ...controls,
10
- btnClass: ['top-28', 'top-11'],
11
- className: 'right-7',
12
- })] }), isScrollAvailable ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
13
- });
5
+ exports.TariffsTableWrapper = (0, uni_jsx_1.JSX)(({ children }) => ((0, jsx_runtime_1.jsx)("div", { role: "table", className: "overflow-x-auto w-auto grid relative gap-y-xs", children: children })));
14
6
  //# sourceMappingURL=TariffsTableWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TariffsTableWrapper.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uEAAoE;AAMvD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9E,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,CAAC;IAEvC,OAAO,CACL,iCAAK,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,sCAAsC,aAChE,iCAAK,SAAS,EAAC,qBAAqB,aACjC,QAAQ,EACR,IAAA,2BAAY,EAAC;wBACZ,GAAG,QAAQ;wBACX,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;wBAC9B,SAAS,EAAE,SAAS;qBACrB,CAAC,IACE,EACL,iBAAiB,CAAC,CAAC,CAAC,CACnB,gCAAK,SAAS,EAAC,0DAA0D,GAAG,CAC7E,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"TariffsTableWrapper.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAE3B,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACvD,gCAAK,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,+CAA+C,YACxE,QAAQ,GACL,CACP,CAAC,CAAC"}