@redneckz/wildless-cms-uni-blocks 0.6.18 → 0.6.20

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 (437) hide show
  1. package/bin/migration-scripts/0.6.19.js +21 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +129 -77
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Blocks.d.ts +2 -41
  6. package/bundle/components/Blocks.mobile.d.ts +2 -18
  7. package/bundle/components/ContentPage/ContentPage.d.ts +2 -2
  8. package/bundle/components/ContentPage/mapSlot.d.ts +2 -0
  9. package/bundle/components/ContentPage/normalizeBlock.d.ts +3 -11
  10. package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +3 -2
  11. package/bundle/components/ContentPage/renderBlock.d.ts +7 -3
  12. package/bundle/components/ContentPage/renderBlockList.d.ts +14 -0
  13. package/bundle/components/ContentPage/renderSlots.d.ts +12 -0
  14. package/bundle/components/StepsBlock/renderStepContent.d.ts +2 -2
  15. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
  16. package/bundle/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  17. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  18. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  19. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  20. package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  21. package/bundle/model/BlockDecorator.d.ts +4 -3
  22. package/bundle/model/BlocksRegistry.d.ts +1 -1
  23. package/bundle/model/ContentPageDef.d.ts +1 -4
  24. package/bundle/model/JSXBlock.d.ts +3 -1
  25. package/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  26. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  27. package/dist/components/Blocks.d.ts +2 -41
  28. package/dist/components/Blocks.js.map +1 -1
  29. package/dist/components/Blocks.mobile.d.ts +2 -18
  30. package/dist/components/Blocks.mobile.js.map +1 -1
  31. package/dist/components/Bonus/Bonus.js +1 -1
  32. package/dist/components/Bonus/Bonus.js.map +1 -1
  33. package/dist/components/ContentPage/ContentPage.d.ts +2 -2
  34. package/dist/components/ContentPage/ContentPage.js +12 -11
  35. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  36. package/dist/components/ContentPage/mapSlot.d.ts +2 -0
  37. package/dist/components/ContentPage/mapSlot.js +14 -0
  38. package/dist/components/ContentPage/mapSlot.js.map +1 -0
  39. package/dist/components/ContentPage/normalizeBlock.d.ts +3 -11
  40. package/dist/components/ContentPage/normalizeBlock.js +13 -3
  41. package/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  42. package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +3 -2
  43. package/dist/components/ContentPage/normalizeBlock.mobile.js +18 -3
  44. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  45. package/dist/components/ContentPage/normalizePage.js +2 -14
  46. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  47. package/dist/components/ContentPage/renderBlock.d.ts +7 -3
  48. package/dist/components/ContentPage/renderBlock.js +9 -9
  49. package/dist/components/ContentPage/renderBlock.js.map +1 -1
  50. package/dist/components/ContentPage/renderBlockList.d.ts +14 -0
  51. package/dist/components/ContentPage/renderBlockList.js +18 -0
  52. package/dist/components/ContentPage/renderBlockList.js.map +1 -0
  53. package/dist/components/ContentPage/renderSlots.d.ts +12 -0
  54. package/dist/components/ContentPage/renderSlots.js +17 -0
  55. package/dist/components/ContentPage/renderSlots.js.map +1 -0
  56. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  57. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  58. package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
  59. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  60. package/dist/components/StepsBlock/StepsBlock.js +3 -3
  61. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  62. package/dist/components/StepsBlock/renderItems.js +1 -4
  63. package/dist/components/StepsBlock/renderItems.js.map +1 -1
  64. package/dist/components/StepsBlock/renderStepContent.d.ts +2 -2
  65. package/dist/components/StepsBlock/renderStepContent.js +13 -8
  66. package/dist/components/StepsBlock/renderStepContent.js.map +1 -1
  67. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
  68. package/dist/components/TariffsTable/EmbeddableCellData.js +4 -11
  69. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  70. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  71. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  72. package/dist/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  73. package/dist/components/TariffsTable/TariffsTableCell.js +13 -18
  74. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  75. package/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  76. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  77. package/dist/components/TariffsTable/TariffsTableRenderCell.js +42 -0
  78. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  79. package/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  80. package/dist/components/TariffsTable/TariffsTableRow.js +6 -2
  81. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  82. package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  83. package/dist/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  84. package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  85. package/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
  86. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  87. package/dist/model/BlockDecorator.d.ts +4 -3
  88. package/dist/model/BlockDecorator.js +1 -2
  89. package/dist/model/BlockDecorator.js.map +1 -1
  90. package/dist/model/BlocksRegistry.d.ts +1 -1
  91. package/dist/model/ContentPageDef.d.ts +1 -4
  92. package/dist/model/JSXBlock.d.ts +3 -1
  93. package/dist/model/getParentBlockDef.js +5 -2
  94. package/dist/model/getParentBlockDef.js.map +1 -1
  95. package/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  96. package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  97. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  98. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  99. package/dist/ui-kit/InnerTable/InnerTableButton.js +2 -6
  100. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  101. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  102. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  103. package/dist/ui-kit/Radio/Radio.js +1 -1
  104. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  105. package/dist/ui-kit/Select/Select.js +1 -1
  106. package/dist/ui-kit/Select/Select.js.map +1 -1
  107. package/lib/common.css +1 -1
  108. package/lib/components/Blocks.d.ts +2 -41
  109. package/lib/components/Blocks.js.map +1 -1
  110. package/lib/components/Blocks.mobile.d.ts +2 -18
  111. package/lib/components/Blocks.mobile.js.map +1 -1
  112. package/lib/components/Bonus/Bonus.js +1 -1
  113. package/lib/components/Bonus/Bonus.js.map +1 -1
  114. package/lib/components/ContentPage/ContentPage.d.ts +2 -2
  115. package/lib/components/ContentPage/ContentPage.js +12 -11
  116. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  117. package/lib/components/ContentPage/mapSlot.d.ts +2 -0
  118. package/lib/components/ContentPage/mapSlot.js +11 -0
  119. package/lib/components/ContentPage/mapSlot.js.map +1 -0
  120. package/lib/components/ContentPage/normalizeBlock.d.ts +3 -11
  121. package/lib/components/ContentPage/normalizeBlock.js +13 -3
  122. package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  123. package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +3 -2
  124. package/lib/components/ContentPage/normalizeBlock.mobile.js +18 -3
  125. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  126. package/lib/components/ContentPage/normalizePage.js +2 -14
  127. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  128. package/lib/components/ContentPage/renderBlock.d.ts +7 -3
  129. package/lib/components/ContentPage/renderBlock.js +9 -9
  130. package/lib/components/ContentPage/renderBlock.js.map +1 -1
  131. package/lib/components/ContentPage/renderBlockList.d.ts +14 -0
  132. package/lib/components/ContentPage/renderBlockList.js +15 -0
  133. package/lib/components/ContentPage/renderBlockList.js.map +1 -0
  134. package/lib/components/ContentPage/renderSlots.d.ts +12 -0
  135. package/lib/components/ContentPage/renderSlots.js +14 -0
  136. package/lib/components/ContentPage/renderSlots.js.map +1 -0
  137. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  138. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  139. package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
  140. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  141. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +6 -2
  142. package/lib/components/StepsBlock/StepsBlock.js +3 -3
  143. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  144. package/lib/components/StepsBlock/renderItems.js +1 -4
  145. package/lib/components/StepsBlock/renderItems.js.map +1 -1
  146. package/lib/components/StepsBlock/renderStepContent.d.ts +2 -2
  147. package/lib/components/StepsBlock/renderStepContent.js +14 -9
  148. package/lib/components/StepsBlock/renderStepContent.js.map +1 -1
  149. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
  150. package/lib/components/TariffsTable/EmbeddableCellData.js +4 -11
  151. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  152. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  153. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  154. package/lib/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  155. package/lib/components/TariffsTable/TariffsTableCell.js +14 -19
  156. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  157. package/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  158. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  159. package/lib/components/TariffsTable/TariffsTableRenderCell.js +39 -0
  160. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  161. package/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  162. package/lib/components/TariffsTable/TariffsTableRow.js +6 -2
  163. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  164. package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  165. package/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  166. package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  167. package/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
  168. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  169. package/lib/model/BlockDecorator.d.ts +4 -3
  170. package/lib/model/BlockDecorator.js +0 -1
  171. package/lib/model/BlockDecorator.js.map +1 -1
  172. package/lib/model/BlocksRegistry.d.ts +1 -1
  173. package/lib/model/ContentPageDef.d.ts +1 -4
  174. package/lib/model/JSXBlock.d.ts +3 -1
  175. package/lib/model/getParentBlockDef.js +5 -2
  176. package/lib/model/getParentBlockDef.js.map +1 -1
  177. package/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  178. package/lib/ui-kit/InnerTable/InnerTable.js +3 -2
  179. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  180. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  181. package/lib/ui-kit/InnerTable/InnerTableButton.js +2 -6
  182. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  183. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  184. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  185. package/lib/ui-kit/Radio/Radio.js +1 -1
  186. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  187. package/lib/ui-kit/Select/Select.js +1 -1
  188. package/lib/ui-kit/Select/Select.js.map +1 -1
  189. package/mobile/bundle/bundle.umd.js +50 -23
  190. package/mobile/bundle/bundle.umd.min.js +1 -1
  191. package/mobile/bundle/components/Blocks.d.ts +2 -18
  192. package/mobile/bundle/components/ContentPage/ContentPage.d.ts +2 -2
  193. package/mobile/bundle/components/ContentPage/mapSlot.d.ts +2 -0
  194. package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +3 -2
  195. package/mobile/bundle/components/ContentPage/renderBlock.d.ts +7 -3
  196. package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +14 -0
  197. package/mobile/bundle/components/ContentPage/renderSlots.d.ts +12 -0
  198. package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +2 -2
  199. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  200. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  201. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  202. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  203. package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  204. package/mobile/bundle/model/BlockDecorator.d.ts +4 -3
  205. package/mobile/bundle/model/BlocksRegistry.d.ts +1 -1
  206. package/mobile/bundle/model/ContentPageDef.d.ts +1 -4
  207. package/mobile/bundle/model/JSXBlock.d.ts +3 -1
  208. package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  209. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  210. package/mobile/dist/components/Blocks.d.ts +2 -18
  211. package/mobile/dist/components/Blocks.js.map +1 -1
  212. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  213. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  214. package/mobile/dist/components/ContentPage/ContentPage.d.ts +2 -2
  215. package/mobile/dist/components/ContentPage/ContentPage.js +12 -11
  216. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  217. package/mobile/dist/components/ContentPage/mapSlot.d.ts +2 -0
  218. package/mobile/dist/components/ContentPage/mapSlot.js +14 -0
  219. package/mobile/dist/components/ContentPage/mapSlot.js.map +1 -0
  220. package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +3 -2
  221. package/mobile/dist/components/ContentPage/normalizeBlock.js +18 -3
  222. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  223. package/mobile/dist/components/ContentPage/normalizePage.js +2 -14
  224. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  225. package/mobile/dist/components/ContentPage/renderBlock.d.ts +7 -3
  226. package/mobile/dist/components/ContentPage/renderBlock.js +9 -9
  227. package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
  228. package/mobile/dist/components/ContentPage/renderBlockList.d.ts +14 -0
  229. package/mobile/dist/components/ContentPage/renderBlockList.js +18 -0
  230. package/mobile/dist/components/ContentPage/renderBlockList.js.map +1 -0
  231. package/mobile/dist/components/ContentPage/renderSlots.d.ts +12 -0
  232. package/mobile/dist/components/ContentPage/renderSlots.js +17 -0
  233. package/mobile/dist/components/ContentPage/renderSlots.js.map +1 -0
  234. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  235. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  236. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
  237. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  238. package/mobile/dist/components/StepsBlock/renderItems.js +1 -4
  239. package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -1
  240. package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +2 -2
  241. package/mobile/dist/components/StepsBlock/renderStepContent.js +13 -8
  242. package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -1
  243. package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  244. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +13 -18
  245. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  246. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  247. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  248. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +42 -0
  249. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  250. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  251. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +6 -2
  252. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  253. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  254. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  255. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  256. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
  257. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  258. package/mobile/dist/model/BlockDecorator.d.ts +4 -3
  259. package/mobile/dist/model/BlockDecorator.js +1 -2
  260. package/mobile/dist/model/BlockDecorator.js.map +1 -1
  261. package/mobile/dist/model/BlocksRegistry.d.ts +1 -1
  262. package/mobile/dist/model/ContentPageDef.d.ts +1 -4
  263. package/mobile/dist/model/JSXBlock.d.ts +3 -1
  264. package/mobile/dist/model/getParentBlockDef.js +5 -2
  265. package/mobile/dist/model/getParentBlockDef.js.map +1 -1
  266. package/mobile/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  267. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  268. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  269. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  270. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +2 -6
  271. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  272. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  273. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  274. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  275. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  276. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  277. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  278. package/mobile/lib/components/Blocks.d.ts +2 -18
  279. package/mobile/lib/components/Blocks.js.map +1 -1
  280. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  281. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  282. package/mobile/lib/components/ContentPage/ContentPage.d.ts +2 -2
  283. package/mobile/lib/components/ContentPage/ContentPage.js +12 -11
  284. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  285. package/mobile/lib/components/ContentPage/mapSlot.d.ts +2 -0
  286. package/mobile/lib/components/ContentPage/mapSlot.js +11 -0
  287. package/mobile/lib/components/ContentPage/mapSlot.js.map +1 -0
  288. package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +3 -2
  289. package/mobile/lib/components/ContentPage/normalizeBlock.js +18 -3
  290. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  291. package/mobile/lib/components/ContentPage/normalizePage.js +2 -14
  292. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  293. package/mobile/lib/components/ContentPage/renderBlock.d.ts +7 -3
  294. package/mobile/lib/components/ContentPage/renderBlock.js +9 -9
  295. package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
  296. package/mobile/lib/components/ContentPage/renderBlockList.d.ts +14 -0
  297. package/mobile/lib/components/ContentPage/renderBlockList.js +15 -0
  298. package/mobile/lib/components/ContentPage/renderBlockList.js.map +1 -0
  299. package/mobile/lib/components/ContentPage/renderSlots.d.ts +12 -0
  300. package/mobile/lib/components/ContentPage/renderSlots.js +14 -0
  301. package/mobile/lib/components/ContentPage/renderSlots.js.map +1 -0
  302. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  303. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  304. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
  305. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  306. package/mobile/lib/components/StepsBlock/renderItems.js +1 -4
  307. package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -1
  308. package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +2 -2
  309. package/mobile/lib/components/StepsBlock/renderStepContent.js +14 -9
  310. package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -1
  311. package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +8 -2
  312. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -19
  313. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  314. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
  315. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
  316. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +39 -0
  317. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
  318. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -1
  319. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +6 -2
  320. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  321. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
  322. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -8
  323. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  324. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
  325. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  326. package/mobile/lib/model/BlockDecorator.d.ts +4 -3
  327. package/mobile/lib/model/BlockDecorator.js +0 -1
  328. package/mobile/lib/model/BlockDecorator.js.map +1 -1
  329. package/mobile/lib/model/BlocksRegistry.d.ts +1 -1
  330. package/mobile/lib/model/ContentPageDef.d.ts +1 -4
  331. package/mobile/lib/model/JSXBlock.d.ts +3 -1
  332. package/mobile/lib/model/getParentBlockDef.js +5 -2
  333. package/mobile/lib/model/getParentBlockDef.js.map +1 -1
  334. package/mobile/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -0
  335. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +3 -2
  336. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  337. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
  338. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +2 -6
  339. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  340. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  341. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  342. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  343. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  344. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  345. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  346. package/mobile/src/components/Blocks.ts +2 -1
  347. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  348. package/mobile/src/components/ContentPage/ContentPage.page.json +7 -10
  349. package/mobile/src/components/ContentPage/ContentPage.tsx +24 -28
  350. package/mobile/src/components/ContentPage/mapSlot.ts +17 -0
  351. package/mobile/src/components/ContentPage/normalizeBlock.ts +26 -4
  352. package/mobile/src/components/ContentPage/normalizePage.ts +3 -20
  353. package/mobile/src/components/ContentPage/renderBlock.tsx +16 -18
  354. package/mobile/src/components/ContentPage/renderBlockList.tsx +39 -0
  355. package/mobile/src/components/ContentPage/renderSlots.tsx +33 -0
  356. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +5 -1
  357. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
  358. package/mobile/src/components/StepsBlock/renderItems.tsx +5 -8
  359. package/mobile/src/components/StepsBlock/renderStepContent.tsx +40 -15
  360. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +39 -45
  361. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +3 -4
  362. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +88 -0
  363. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +18 -9
  364. package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +5 -20
  365. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -1
  366. package/mobile/src/model/BlockDecorator.ts +4 -4
  367. package/mobile/src/model/BlocksRegistry.ts +1 -1
  368. package/mobile/src/model/ContentPageDef.ts +1 -5
  369. package/mobile/src/model/JSXBlock.ts +3 -1
  370. package/mobile/src/model/getParentBlockDef.ts +6 -2
  371. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +13 -4
  372. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +20 -26
  373. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
  374. package/mobile/src/ui-kit/Radio/Radio.tsx +2 -2
  375. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  376. package/package.json +1 -1
  377. package/src/components/Accordion/Accordion.fixture.mobile.tsx +16 -4
  378. package/src/components/Blocks.mobile.ts +2 -1
  379. package/src/components/Blocks.ts +2 -1
  380. package/src/components/Bonus/Bonus.tsx +1 -1
  381. package/src/components/ContentPage/ContentPage.page.json +7 -10
  382. package/src/components/ContentPage/ContentPage.tsx +24 -28
  383. package/src/components/ContentPage/mapSlot.ts +17 -0
  384. package/src/components/ContentPage/normalizeBlock.mobile.ts +26 -4
  385. package/src/components/ContentPage/normalizeBlock.ts +17 -4
  386. package/src/components/ContentPage/normalizePage.ts +3 -20
  387. package/src/components/ContentPage/renderBlock.tsx +16 -18
  388. package/src/components/ContentPage/renderBlockList.tsx +39 -0
  389. package/src/components/ContentPage/renderSlots.tsx +33 -0
  390. package/src/components/ProductBlock/renderBackwardButton.tsx +5 -1
  391. package/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
  392. package/src/components/StepsBlock/StepsBlock.fixture.tsx +72 -81
  393. package/src/components/StepsBlock/StepsBlock.tsx +3 -3
  394. package/src/components/StepsBlock/renderItems.tsx +5 -8
  395. package/src/components/StepsBlock/renderStepContent.tsx +40 -15
  396. package/src/components/TariffsTable/EmbeddableCellData.tsx +20 -18
  397. package/src/components/TariffsTable/TariffsTable.tsx +1 -2
  398. package/src/components/TariffsTable/TariffsTableCell.tsx +39 -45
  399. package/src/components/TariffsTable/TariffsTableContent.ts +3 -4
  400. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +88 -0
  401. package/src/components/TariffsTable/TariffsTableRow.tsx +18 -9
  402. package/src/components/TariffsTable/TariffsTableRowContainer.tsx +5 -20
  403. package/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -1
  404. package/src/model/BlockDecorator.ts +4 -4
  405. package/src/model/BlocksRegistry.ts +1 -1
  406. package/src/model/ContentPageDef.ts +1 -5
  407. package/src/model/JSXBlock.ts +3 -1
  408. package/src/model/getParentBlockDef.ts +6 -2
  409. package/src/ui-kit/InnerTable/InnerTable.tsx +13 -4
  410. package/src/ui-kit/InnerTable/InnerTableButton.tsx +20 -26
  411. package/src/ui-kit/InputRange/InputRange.tsx +1 -1
  412. package/src/ui-kit/Radio/Radio.tsx +2 -2
  413. package/src/ui-kit/Select/Select.tsx +1 -1
  414. package/bundle/components/ContentPage/filterBlocks.d.ts +0 -12
  415. package/bundle/components/ContentPage/filterBlocks.mobile.d.ts +0 -12
  416. package/dist/components/ContentPage/filterBlocks.d.ts +0 -12
  417. package/dist/components/ContentPage/filterBlocks.js +0 -6
  418. package/dist/components/ContentPage/filterBlocks.js.map +0 -1
  419. package/dist/components/ContentPage/filterBlocks.mobile.d.ts +0 -12
  420. package/dist/components/ContentPage/filterBlocks.mobile.js +0 -8
  421. package/dist/components/ContentPage/filterBlocks.mobile.js.map +0 -1
  422. package/lib/components/ContentPage/filterBlocks.d.ts +0 -12
  423. package/lib/components/ContentPage/filterBlocks.js +0 -3
  424. package/lib/components/ContentPage/filterBlocks.js.map +0 -1
  425. package/lib/components/ContentPage/filterBlocks.mobile.d.ts +0 -12
  426. package/lib/components/ContentPage/filterBlocks.mobile.js +0 -5
  427. package/lib/components/ContentPage/filterBlocks.mobile.js.map +0 -1
  428. package/mobile/bundle/components/ContentPage/filterBlocks.d.ts +0 -3
  429. package/mobile/dist/components/ContentPage/filterBlocks.d.ts +0 -3
  430. package/mobile/dist/components/ContentPage/filterBlocks.js +0 -8
  431. package/mobile/dist/components/ContentPage/filterBlocks.js.map +0 -1
  432. package/mobile/lib/components/ContentPage/filterBlocks.d.ts +0 -3
  433. package/mobile/lib/components/ContentPage/filterBlocks.js +0 -5
  434. package/mobile/lib/components/ContentPage/filterBlocks.js.map +0 -1
  435. package/mobile/src/components/ContentPage/filterBlocks.ts +0 -11
  436. package/src/components/ContentPage/filterBlocks.mobile.ts +0 -11
  437. package/src/components/ContentPage/filterBlocks.ts +0 -6
@@ -1,6 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useState } from '@redneckz/uni-jsx/lib/hooks';
2
3
  import type { UniBlockProps } from '../../model/JSXBlock';
3
4
  import { Img } from '../../ui-kit/Img/Img';
5
+ import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
4
6
  import { TableCarouselContainer } from '../ComparisonTable/TableCarouselContainer';
5
7
  import { COLUMN_WIDTH, DIVIDER_CLASSES, FIRST_CELL_CLASSES } from './constants';
6
8
  import { TariffsTableCell } from './TariffsTableCell';
@@ -10,19 +12,23 @@ import { TariffsTableRowContainer } from './TariffsTableRowContainer';
10
12
  export interface TariffsTableRowProps extends UniBlockProps {
11
13
  row: Data;
12
14
  activeCardIndex: number;
13
- isLastRow: boolean;
14
15
  rowIdx: number;
15
16
  }
16
17
 
17
18
  export const TariffsTableRow = JSX<TariffsTableRowProps>(
18
- ({ row: { header, data }, activeCardIndex, isLastRow, context, rowIdx }) => {
19
+ ({ row: { header, data }, activeCardIndex, context, rowIdx }) => {
20
+ const [tableInner, setTableInner] = useState<TariffsTableInnerContent | undefined>(undefined);
21
+ const [openTableInnerIdx, setOpenTableInnerIdx] = useState<number | undefined>(undefined);
22
+
23
+ const onHideContentClick = () => setTableInner(undefined);
24
+
19
25
  return (
20
- <TariffsTableRowContainer context={context} rowIdx={rowIdx}>
21
- <div
22
- className={`text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${
23
- !isLastRow ? 'border-solid' : ''
24
- }`}
25
- >
26
+ <TariffsTableRowContainer
27
+ context={context}
28
+ onHideContentClick={onHideContentClick}
29
+ tableInner={tableInner}
30
+ >
31
+ <div className={`text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`}>
26
32
  <div className="flex items-center text-primary-text" role="cell">
27
33
  {header?.icon ? (
28
34
  <Img
@@ -46,10 +52,13 @@ export const TariffsTableRow = JSX<TariffsTableRowProps>(
46
52
  <TariffsTableCell
47
53
  key={String(i)}
48
54
  cells={cells}
49
- isLastRow={isLastRow}
50
55
  rowIdx={rowIdx}
51
56
  cellIdx={i}
52
57
  context={context}
58
+ setTableInner={setTableInner}
59
+ tableInner={tableInner}
60
+ openTableInnerIdx={openTableInnerIdx}
61
+ setOpenTableInnerIdx={setOpenTableInnerIdx}
53
62
  />
54
63
  ))}
55
64
  </TableCarouselContainer>
@@ -1,6 +1,4 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { EventBus } from '../../EventBus/EventBus';
4
2
  import type { UniBlockProps } from '../../model/JSXBlock';
5
3
  import type { VNode } from '../../model/VNode';
6
4
  import { InnerTable } from '../../ui-kit/InnerTable/InnerTable';
@@ -8,31 +6,18 @@ import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTabl
8
6
 
9
7
  export interface TariffsTableRowContainerProps extends UniBlockProps {
10
8
  children?: VNode;
11
- rowIdx: number;
9
+ onHideContentClick: () => void;
10
+ tableInner?: TariffsTableInnerContent;
12
11
  }
13
12
 
14
13
  export const TariffsTableRowContainer = JSX<TariffsTableRowContainerProps>(
15
- ({ context, children, rowIdx }) => {
16
- const [tableInnerData, setTableInnerData] = useState<TariffsTableInnerContent | undefined>(
17
- undefined,
18
- );
19
-
20
- useEffect(
21
- () =>
22
- EventBus.inst.subscribe('tariffInnerTable', (event) => {
23
- setTableInnerData(
24
- rowIdx === event.rowIdx ? { dataUrl: event.dataUrl, pdfUrl: event.pdfUrl } : undefined,
25
- );
26
- }),
27
- [rowIdx],
28
- );
29
-
14
+ ({ context, children, tableInner, onHideContentClick }) => {
30
15
  return (
31
16
  <div className="self-start flex flex-col" role="row">
32
17
  <div className="flex">{children}</div>
33
- {tableInnerData ? (
18
+ {tableInner ? (
34
19
  <div className="origin-top animate-expansion">
35
- <InnerTable context={context} {...tableInnerData} />
20
+ <InnerTable context={context} {...tableInner} onClick={onHideContentClick} />
36
21
  </div>
37
22
  ) : null}
38
23
  </div>
@@ -39,5 +39,7 @@ const renderCell = (cell: CellDef, context: ContentPageContext) => {
39
39
 
40
40
  const EmbeddableCellInner = EmbeddableCellData[type];
41
41
 
42
- return <EmbeddableCellInner context={context} {...rest} />;
42
+ return (
43
+ <EmbeddableCellInner context={context} displayTable={() => null} {...rest} isVisible={true} />
44
+ );
43
45
  };
@@ -1,10 +1,10 @@
1
- import type { BlockDef, Slot, SlotsMap } from './ContentPageDef';
1
+ import type { BlockDef, Slot } from './ContentPageDef';
2
2
 
3
3
  export const DEFAULT_SLOT_NAME = null;
4
4
 
5
- export type BlockAncestors = [keyof SlotsMap | typeof DEFAULT_SLOT_NAME, ...Slot[]];
6
-
7
- export const DEFAULT_ANCESTORS: BlockAncestors = [DEFAULT_SLOT_NAME];
5
+ export type SlotName = string | typeof DEFAULT_SLOT_NAME;
6
+ export type BlockAncestorItem = [Slot, SlotName];
7
+ export type BlockAncestors = BlockAncestorItem[];
8
8
 
9
9
  interface BlockDecoratorProps<VNode> {
10
10
  blockClassName: string;
@@ -1,3 +1,3 @@
1
1
  import type { JSXBlock } from './JSXBlock';
2
2
 
3
- export type BlocksRegistry<BlockProps = Record<string, any>> = Record<string, JSXBlock<BlockProps>>;
3
+ export type BlocksRegistry = Record<string, JSXBlock<any>>;
@@ -22,10 +22,7 @@ export interface BlockDef extends BaseBlockDef {
22
22
  export interface Slot {
23
23
  style?: string[];
24
24
  blocks?: BlockDef[];
25
- }
26
-
27
- export interface SlotsMap {
28
- header?: Slot;
25
+ slots?: Record<string, BlockDef[]>;
29
26
  }
30
27
 
31
28
  export interface ContentPageMeta {
@@ -44,7 +41,6 @@ export interface ContentPageMeta {
44
41
 
45
42
  export interface ContentPageDef extends ContentPageMeta, Slot {
46
43
  _customPageType?: string;
47
- slots?: SlotsMap;
48
44
  fallback?: Record<string, unknown>;
49
45
  likeControl?: boolean;
50
46
  colorPalette?: ColorPalette;
@@ -1,6 +1,6 @@
1
1
  import type { UNIComponent } from '@redneckz/uni-jsx';
2
2
  import type { ContentPageContext } from '../components/ContentPage/ContentPageContext';
3
- import type { BlockAncestors } from './BlockDecorator';
3
+ import type { BlockAncestors, SlotName } from './BlockDecorator';
4
4
  import type { ContentPageDef } from './ContentPageDef';
5
5
  import type { VNode } from './VNode';
6
6
 
@@ -11,6 +11,7 @@ export interface UniBlockProps {
11
11
  ancestors?: BlockAncestors;
12
12
  labels?: string[];
13
13
  anchor?: string;
14
+ slots?: Record<string, VNode>;
14
15
  }
15
16
 
16
17
  export type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<
@@ -19,5 +20,6 @@ export type JSXBlock<BlockProps = Record<string, any>> = UNIComponent<
19
20
  VNode | VNode[]
20
21
  > & {
21
22
  childrenTypes?: string[];
23
+ slots?: (props: BlockProps) => SlotName[];
22
24
  renderChild?: (child: VNode, i: number) => VNode;
23
25
  };
@@ -2,7 +2,11 @@ import type { BlockAncestors } from './BlockDecorator';
2
2
  import type { BlockDef } from './ContentPageDef';
3
3
 
4
4
  export function getParentBlockDef(ancestors: BlockAncestors | undefined, type?: string): BlockDef {
5
- const [, ...blocks] = ancestors || [];
5
+ const [block] =
6
+ (ancestors || [])
7
+ .map((item) => item)
8
+ .reverse()
9
+ .find(([_]) => _ && 'type' in _ && (!type || type === (_ as BlockDef).type)) || [];
6
10
 
7
- return blocks.reverse().find((_) => !type || type === (_ as BlockDef)?.type) || {};
11
+ return block || {};
8
12
  }
@@ -7,9 +7,13 @@ import { TableInnerButton } from './InnerTableButton';
7
7
  import { InnerTableHeader } from './InnerTableHeader';
8
8
  import type { TableFetchData, TariffsTableInnerContent } from './InnerTableProps';
9
9
 
10
- export interface InnerTableProps extends TariffsTableInnerContent, UniBlockProps {}
10
+ export interface InnerTableProps extends TariffsTableInnerContent, UniBlockProps {
11
+ onClick: () => void;
12
+ }
11
13
 
12
- export const InnerTable = JSX<InnerTableProps>(({ context, dataUrl, pdfUrl }) => {
14
+ const EMPTY_DATA = 'Данных нет';
15
+
16
+ export const InnerTable = JSX<InnerTableProps>(({ context, dataUrl, pdfUrl, onClick }) => {
13
17
  const { tableData }: TableFetchData = useTariffsInnerTableData(dataUrl);
14
18
 
15
19
  const [activeTabIndex, setActiveTabIndex] = useState(0);
@@ -26,7 +30,12 @@ export const InnerTable = JSX<InnerTableProps>(({ context, dataUrl, pdfUrl }) =>
26
30
  linkToPDF={pdfUrl} //TODO: need link to service
27
31
  />
28
32
  <InnerTableBody context={context} activeTabIndex={activeTabIndex} items={items} />
29
- <TableInnerButton context={context} isOpen />
33
+ <TableInnerButton context={context} onClick={onClick} isOpen />
34
+ </div>
35
+ ) : (
36
+ <div className="my-5 text-h6 text-center">
37
+ <p>{EMPTY_DATA}</p>
38
+ <TableInnerButton context={context} onClick={onClick} isOpen />
30
39
  </div>
31
- ) : null;
40
+ );
32
41
  });
@@ -1,36 +1,30 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { EventBus } from '../../EventBus/EventBus';
3
2
  import type { UniBlockProps } from '../../model/JSXBlock';
4
3
  import { Button } from '../Button/Button';
5
4
  import { Icon } from '../Icon/Icon';
6
5
  import type { TariffsTableInnerEvent } from './InnerTableProps';
7
6
 
8
7
  export interface TableInnerButtonProps extends TariffsTableInnerEvent, UniBlockProps {
8
+ onClick?: () => void;
9
9
  isOpen?: boolean;
10
10
  }
11
11
 
12
- export const TableInnerButton = JSX<TableInnerButtonProps>(
13
- ({ isOpen, dataUrl, pdfUrl, rowIdx, cellIdx, fieldIdx }) => {
14
- const handleClick = () => {
15
- EventBus.inst.fire('tariffInnerTable', { dataUrl, pdfUrl, rowIdx, cellIdx, fieldIdx });
16
- };
17
-
18
- return (
19
- <Button
20
- version="primary"
21
- onClick={handleClick}
22
- className="w-full flex items-center justify-center rounded-none py-5"
23
- >
24
- <div className="text-h4">{isOpen ? 'Скрыть' : 'Показать ставки по вкладу'}</div>
25
- <Icon
26
- name={isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon'}
27
- className="ml-3"
28
- iconVersion="white"
29
- width="20"
30
- height="20"
31
- asSVG
32
- />
33
- </Button>
34
- );
35
- },
36
- );
12
+ export const TableInnerButton = JSX<TableInnerButtonProps>(({ isOpen, onClick }) => {
13
+ return (
14
+ <Button
15
+ version="primary"
16
+ onClick={onClick}
17
+ className="w-full flex items-center justify-center rounded-none py-5"
18
+ >
19
+ <div className="text-h4">{isOpen ? 'Скрыть' : 'Показать ставки по вкладу'}</div>
20
+ <Icon
21
+ name={isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon'}
22
+ className="ml-3"
23
+ iconVersion="white"
24
+ width="20"
25
+ height="20"
26
+ asSVG
27
+ />
28
+ </Button>
29
+ );
30
+ });
@@ -33,7 +33,7 @@ export const InputRange = JSX<InputRangeProps>(
33
33
  return (
34
34
  <div className={className}>
35
35
  <label className="block relative">
36
- {title ? <span className="text-m-light">{title}</span> : null}
36
+ {title ? <span className="text-m-light text-primary-text">{title}</span> : null}
37
37
  <input
38
38
  className={`m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md
39
39
  outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus ${DISABLED_INPUT_CLASSES}`}
@@ -3,7 +3,7 @@ import { RadioProps } from './RadioProps';
3
3
 
4
4
  export const Radio = JSX<RadioProps>(({ name, text, value, checked, onChange, className }) => (
5
5
  <div className={className}>
6
- <label className="flex items-center relative cursor-pointer">
6
+ <label className="font-sans flex items-center relative cursor-pointer">
7
7
  <input
8
8
  className="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover
9
9
  checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text
@@ -14,7 +14,7 @@ export const Radio = JSX<RadioProps>(({ name, text, value, checked, onChange, cl
14
14
  checked={checked}
15
15
  onChange={onChange}
16
16
  />
17
- {text ? <span className="font-sans ml-3 cursor-pointer">{text}</span> : null}
17
+ {text ? <span className="text-primary-text ml-3 cursor-pointer">{text}</span> : null}
18
18
  </label>
19
19
  </div>
20
20
  ));
@@ -41,7 +41,7 @@ export const Select = JSX<SelectProps>(
41
41
 
42
42
  return (
43
43
  <div className={`${className}`} ref={wrapperRef}>
44
- {label ? <span className="mb-2 flex">{label}</span> : null}
44
+ {label ? <span className="mb-2 flex text-primary-text">{label}</span> : null}
45
45
  <div className={`relative ${isOpen ? 'z-20' : 'z-10'}`}>
46
46
  <div
47
47
  className={`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
@@ -1,12 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => {
4
- type?: string | undefined;
5
- content?: Record<string, any> | undefined;
6
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
7
- hidden?: boolean | undefined;
8
- anchor?: string | undefined;
9
- labels?: string[] | undefined;
10
- style?: string[] | undefined;
11
- blocks?: BlockDef[] | undefined;
12
- }[];
@@ -1,12 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => {
4
- type?: string | undefined;
5
- content?: Record<string, any> | undefined;
6
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
7
- hidden?: boolean | undefined;
8
- anchor?: string | undefined;
9
- labels?: string[] | undefined;
10
- style?: string[] | undefined;
11
- blocks?: BlockDef[] | undefined;
12
- }[];
@@ -1,12 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => {
4
- type?: string | undefined;
5
- content?: Record<string, any> | undefined;
6
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
7
- hidden?: boolean | undefined;
8
- anchor?: string | undefined;
9
- labels?: string[] | undefined;
10
- style?: string[] | undefined;
11
- blocks?: BlockDef[] | undefined;
12
- }[];
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.filterBlocks = void 0;
3
- const normalizeBlock_1 = require("./normalizeBlock");
4
- const filterBlocks = (blocks, blocksRegistry) => blocks?.filter((block) => (block?.type || '') in blocksRegistry).map(normalizeBlock_1.normalizeBlock);
5
- exports.filterBlocks = filterBlocks;
6
- //# sourceMappingURL=filterBlocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":";;AAEA,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,CAAC,CAAC,GAAG,CAAC,+BAAc,CAAC,CAAC;AAD1E,QAAA,YAAY,gBAC8D"}
@@ -1,12 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => {
4
- type?: string | undefined;
5
- content?: Record<string, any> | undefined;
6
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
7
- hidden?: boolean | undefined;
8
- anchor?: string | undefined;
9
- labels?: string[] | undefined;
10
- style?: string[] | undefined;
11
- blocks?: BlockDef[] | undefined;
12
- }[];
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.filterBlocks = void 0;
3
- const normalizeBlock_1 = require("./normalizeBlock");
4
- const filterBlocks = (blocks, blocksRegistry) => blocks
5
- ?.filter((block) => (block?.type || block?.mobile?.type || '') in blocksRegistry && !block.mobile?.hidden)
6
- .map(normalizeBlock_1.normalizeBlock);
7
- exports.filterBlocks = filterBlocks;
8
- //# sourceMappingURL=filterBlocks.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterBlocks.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.mobile.ts"],"names":[],"mappings":";;AAEA,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM;IACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxF;KACA,GAAG,CAAC,+BAAc,CAAC,CAAC;AANZ,QAAA,YAAY,gBAMA"}
@@ -1,12 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => {
4
- type?: string | undefined;
5
- content?: Record<string, any> | undefined;
6
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
7
- hidden?: boolean | undefined;
8
- anchor?: string | undefined;
9
- labels?: string[] | undefined;
10
- style?: string[] | undefined;
11
- blocks?: BlockDef[] | undefined;
12
- }[];
@@ -1,3 +0,0 @@
1
- import { normalizeBlock } from './normalizeBlock.js';
2
- export const filterBlocks = (blocks, blocksRegistry) => blocks?.filter((block) => (block?.type || '') in blocksRegistry).map(normalizeBlock);
3
- //# sourceMappingURL=filterBlocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => {
4
- type?: string | undefined;
5
- content?: Record<string, any> | undefined;
6
- version?: import("../../model/BlockVersion").BlockVersion | undefined;
7
- hidden?: boolean | undefined;
8
- anchor?: string | undefined;
9
- labels?: string[] | undefined;
10
- style?: string[] | undefined;
11
- blocks?: BlockDef[] | undefined;
12
- }[];
@@ -1,5 +0,0 @@
1
- import { normalizeBlock } from './normalizeBlock.js';
2
- export const filterBlocks = (blocks, blocksRegistry) => blocks
3
- ?.filter((block) => (block?.type || block?.mobile?.type || '') in blocksRegistry && !block.mobile?.hidden)
4
- .map(normalizeBlock);
5
- //# sourceMappingURL=filterBlocks.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterBlocks.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.mobile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM;IACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxF;KACA,GAAG,CAAC,cAAc,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => BlockDef[];
@@ -1,3 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => BlockDef[];
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.filterBlocks = void 0;
3
- const normalizeBlock_1 = require("./normalizeBlock");
4
- const filterBlocks = (blocks, blocksRegistry) => blocks
5
- ?.filter((block) => (block?.type || block?.mobile?.type || '') in blocksRegistry && !block.mobile?.hidden)
6
- .map(normalizeBlock_1.normalizeBlock);
7
- exports.filterBlocks = filterBlocks;
8
- //# sourceMappingURL=filterBlocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":";;AAEA,qDAAkD;AAE3C,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM;IACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxF;KACA,GAAG,CAAC,+BAAc,CAAC,CAAC;AANZ,QAAA,YAAY,gBAMA"}
@@ -1,3 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- export declare const filterBlocks: (blocks: BlockDef[], blocksRegistry: BlocksRegistry) => BlockDef[];
@@ -1,5 +0,0 @@
1
- import { normalizeBlock } from './normalizeBlock.js';
2
- export const filterBlocks = (blocks, blocksRegistry) => blocks
3
- ?.filter((block) => (block?.type || block?.mobile?.type || '') in blocksRegistry && !block.mobile?.hidden)
4
- .map(normalizeBlock);
5
- //# sourceMappingURL=filterBlocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterBlocks.js","sourceRoot":"","sources":["../../../src/components/ContentPage/filterBlocks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAkB,EAAE,cAA8B,EAAE,EAAE,CACjF,MAAM;IACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxF;KACA,GAAG,CAAC,cAAc,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- import { normalizeBlock } from './normalizeBlock';
4
-
5
- export const filterBlocks = (blocks: BlockDef[], blocksRegistry: BlocksRegistry) =>
6
- blocks
7
- ?.filter(
8
- (block) =>
9
- (block?.type || block?.mobile?.type || '') in blocksRegistry && !block.mobile?.hidden,
10
- )
11
- .map(normalizeBlock);
@@ -1,11 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- import { normalizeBlock } from './normalizeBlock';
4
-
5
- export const filterBlocks = (blocks: BlockDef[], blocksRegistry: BlocksRegistry) =>
6
- blocks
7
- ?.filter(
8
- (block) =>
9
- (block?.type || block?.mobile?.type || '') in blocksRegistry && !block.mobile?.hidden,
10
- )
11
- .map(normalizeBlock);
@@ -1,6 +0,0 @@
1
- import type { BlocksRegistry } from '../../model/BlocksRegistry';
2
- import type { BlockDef } from '../../model/ContentPageDef';
3
- import { normalizeBlock } from './normalizeBlock';
4
-
5
- export const filterBlocks = (blocks: BlockDef[], blocksRegistry: BlocksRegistry) =>
6
- blocks?.filter((block) => (block?.type || '') in blocksRegistry).map(normalizeBlock);