@redneckz/wildless-cms-uni-blocks 0.14.29 → 0.14.30

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 (429) hide show
  1. package/bin/migration-scripts/0.14.29.js +1 -33
  2. package/bin/migration-scripts/0.14.30.js +54 -0
  3. package/bin/utils.js +36 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +179 -67
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  8. package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  9. package/bundle/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  10. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  11. package/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  12. package/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  13. package/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  14. package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  15. package/bundle/hooks/useResizeObserver.d.ts +3 -0
  16. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  17. package/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
  18. package/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  19. package/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
  20. package/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
  21. package/dist/components/Blocks.js +0 -2
  22. package/dist/components/Blocks.js.map +1 -1
  23. package/dist/components/Blocks.mobile.js +0 -2
  24. package/dist/components/Blocks.mobile.js.map +1 -1
  25. package/dist/components/Calculator/CreditCalculatorForm.js +3 -2
  26. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  27. package/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  28. package/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
  29. package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  30. package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  31. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  32. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  33. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  34. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  35. package/dist/components/Depository/Depository.js +12 -3
  36. package/dist/components/Depository/Depository.js.map +1 -1
  37. package/dist/components/Depository/DepositoryFilter.js +1 -1
  38. package/dist/components/Depository/DepositoryFilter.js.map +1 -1
  39. package/dist/components/Depository/DepositoryItem.js +1 -1
  40. package/dist/components/Depository/DepositoryItem.js.map +1 -1
  41. package/dist/components/Depository/useDepository.js +11 -1
  42. package/dist/components/Depository/useDepository.js.map +1 -1
  43. package/dist/components/OfficesAtmsMap/Badge.js +2 -2
  44. package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  45. package/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  46. package/dist/components/OfficesAtmsMap/CardCell.js +6 -4
  47. package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  48. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  49. package/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  50. package/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
  51. package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  52. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  53. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
  54. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  55. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  56. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
  57. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  58. package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  59. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  60. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  61. package/dist/components/StepsBlock/StepsBlock.js +3 -2
  62. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  63. package/dist/hooks/useResizeObserver.d.ts +3 -0
  64. package/dist/hooks/useResizeObserver.js +22 -0
  65. package/dist/hooks/useResizeObserver.js.map +1 -0
  66. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  67. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  68. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  69. package/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  70. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  71. package/dist/ui-kit/Foldable/FoldableSection.js +5 -4
  72. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  73. package/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
  74. package/dist/ui-kit/PriceList/PriceList.js +9 -0
  75. package/dist/ui-kit/PriceList/PriceList.js.map +1 -0
  76. package/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  77. package/dist/{components/PictureText/PictureTextContent.js → ui-kit/PriceList/PriceListProps.js} +1 -1
  78. package/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
  79. package/dist/ui-kit/Select/Select.js +1 -0
  80. package/dist/ui-kit/Select/Select.js.map +1 -1
  81. package/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
  82. package/dist/ui-kit/Select/SelectPopup.js +2 -2
  83. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  84. package/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
  85. package/dist/ui-kit/Select/useSelectPopup.js +2 -2
  86. package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  87. package/lib/common.css +1 -1
  88. package/lib/components/Blocks.js +0 -2
  89. package/lib/components/Blocks.js.map +1 -1
  90. package/lib/components/Blocks.mobile.js +0 -2
  91. package/lib/components/Blocks.mobile.js.map +1 -1
  92. package/lib/components/Calculator/CreditCalculatorForm.js +3 -2
  93. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  94. package/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  95. package/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
  96. package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  97. package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  98. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  99. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  100. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  101. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  102. package/lib/components/Depository/Depository.js +12 -3
  103. package/lib/components/Depository/Depository.js.map +1 -1
  104. package/lib/components/Depository/DepositoryFilter.js +1 -1
  105. package/lib/components/Depository/DepositoryFilter.js.map +1 -1
  106. package/lib/components/Depository/DepositoryItem.js +1 -1
  107. package/lib/components/Depository/DepositoryItem.js.map +1 -1
  108. package/lib/components/Depository/useDepository.js +11 -1
  109. package/lib/components/Depository/useDepository.js.map +1 -1
  110. package/lib/components/OfficesAtmsMap/Badge.js +2 -2
  111. package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  112. package/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  113. package/lib/components/OfficesAtmsMap/CardCell.js +6 -4
  114. package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  115. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  116. package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  117. package/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
  118. package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  119. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  120. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
  121. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  122. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  123. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
  124. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  125. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  126. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  127. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  128. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
  129. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
  130. package/lib/components/StepsBlock/StepsBlock.js +3 -2
  131. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  132. package/lib/hooks/useResizeObserver.d.ts +3 -0
  133. package/lib/hooks/useResizeObserver.js +19 -0
  134. package/lib/hooks/useResizeObserver.js.map +1 -0
  135. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  136. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  137. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  138. package/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  139. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  140. package/lib/ui-kit/Foldable/FoldableSection.js +6 -5
  141. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  142. package/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
  143. package/lib/ui-kit/PriceList/PriceList.fixture.d.ts +6 -0
  144. package/lib/ui-kit/PriceList/PriceList.js +7 -0
  145. package/lib/ui-kit/PriceList/PriceList.js.map +1 -0
  146. package/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  147. package/lib/ui-kit/PriceList/PriceListProps.js +2 -0
  148. package/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
  149. package/lib/ui-kit/Select/Select.js +1 -0
  150. package/lib/ui-kit/Select/Select.js.map +1 -1
  151. package/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
  152. package/lib/ui-kit/Select/SelectPopup.js +2 -2
  153. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  154. package/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
  155. package/lib/ui-kit/Select/useSelectPopup.js +2 -2
  156. package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  157. package/mobile/bundle/bundle.umd.js +48 -25
  158. package/mobile/bundle/bundle.umd.min.js +1 -1
  159. package/mobile/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  160. package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  161. package/mobile/bundle/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  162. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  163. package/mobile/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  164. package/mobile/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  165. package/mobile/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  166. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  167. package/mobile/bundle/hooks/useResizeObserver.d.ts +3 -0
  168. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  169. package/mobile/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
  170. package/mobile/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  171. package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
  172. package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
  173. package/mobile/dist/components/Blocks.js +0 -2
  174. package/mobile/dist/components/Blocks.js.map +1 -1
  175. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -2
  176. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  177. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  178. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
  179. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  180. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  181. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  182. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  183. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  184. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  185. package/mobile/dist/components/Depository/Depository.js +12 -3
  186. package/mobile/dist/components/Depository/Depository.js.map +1 -1
  187. package/mobile/dist/components/Depository/DepositoryFilter.js +1 -1
  188. package/mobile/dist/components/Depository/DepositoryFilter.js.map +1 -1
  189. package/mobile/dist/components/Depository/DepositoryItem.js +1 -1
  190. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
  191. package/mobile/dist/components/Depository/useDepository.js +11 -1
  192. package/mobile/dist/components/Depository/useDepository.js.map +1 -1
  193. package/mobile/dist/components/OfficesAtmsMap/Badge.js +2 -2
  194. package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  195. package/mobile/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  196. package/mobile/dist/components/OfficesAtmsMap/CardCell.js +6 -4
  197. package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  198. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  199. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  200. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
  201. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  202. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  203. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
  204. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  205. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  206. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
  207. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  208. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  209. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  210. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  211. package/mobile/dist/hooks/useResizeObserver.d.ts +3 -0
  212. package/mobile/dist/hooks/useResizeObserver.js +22 -0
  213. package/mobile/dist/hooks/useResizeObserver.js.map +1 -0
  214. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  215. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  216. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  217. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  218. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  219. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +5 -4
  220. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  221. package/mobile/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
  222. package/mobile/dist/ui-kit/PriceList/PriceList.js +9 -0
  223. package/mobile/dist/ui-kit/PriceList/PriceList.js.map +1 -0
  224. package/mobile/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  225. package/mobile/dist/{components/PictureText/PictureTextContent.js → ui-kit/PriceList/PriceListProps.js} +1 -1
  226. package/mobile/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
  227. package/mobile/dist/ui-kit/Select/Select.js +1 -0
  228. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  229. package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
  230. package/mobile/dist/ui-kit/Select/SelectPopup.js +2 -2
  231. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  232. package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
  233. package/mobile/dist/ui-kit/Select/useSelectPopup.js +2 -2
  234. package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  235. package/mobile/lib/common.css +1 -1
  236. package/mobile/lib/components/Blocks.js +0 -2
  237. package/mobile/lib/components/Blocks.js.map +1 -1
  238. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +3 -2
  239. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  240. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  241. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
  242. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  243. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  244. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  245. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  246. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  247. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  248. package/mobile/lib/components/Depository/Depository.js +12 -3
  249. package/mobile/lib/components/Depository/Depository.js.map +1 -1
  250. package/mobile/lib/components/Depository/DepositoryFilter.js +1 -1
  251. package/mobile/lib/components/Depository/DepositoryFilter.js.map +1 -1
  252. package/mobile/lib/components/Depository/DepositoryItem.js +1 -1
  253. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
  254. package/mobile/lib/components/Depository/useDepository.js +11 -1
  255. package/mobile/lib/components/Depository/useDepository.js.map +1 -1
  256. package/mobile/lib/components/OfficesAtmsMap/Badge.js +2 -2
  257. package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  258. package/mobile/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  259. package/mobile/lib/components/OfficesAtmsMap/CardCell.js +6 -4
  260. package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  261. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  262. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  263. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
  264. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  265. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  266. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
  267. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  268. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  269. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
  270. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  271. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  272. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  273. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  274. package/mobile/lib/hooks/useResizeObserver.d.ts +3 -0
  275. package/mobile/lib/hooks/useResizeObserver.js +19 -0
  276. package/mobile/lib/hooks/useResizeObserver.js.map +1 -0
  277. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  278. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  279. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  280. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  281. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  282. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +6 -5
  283. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  284. package/mobile/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
  285. package/mobile/lib/ui-kit/PriceList/PriceList.js +7 -0
  286. package/mobile/lib/ui-kit/PriceList/PriceList.js.map +1 -0
  287. package/mobile/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  288. package/mobile/lib/ui-kit/PriceList/PriceListProps.js +2 -0
  289. package/mobile/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
  290. package/mobile/lib/ui-kit/Select/Select.js +1 -0
  291. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  292. package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
  293. package/mobile/lib/ui-kit/Select/SelectPopup.js +2 -2
  294. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  295. package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
  296. package/mobile/lib/ui-kit/Select/useSelectPopup.js +2 -2
  297. package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  298. package/mobile/src/common.css +1 -0
  299. package/mobile/src/components/Blocks.ts +0 -2
  300. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
  301. package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
  302. package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
  303. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
  304. package/mobile/src/components/Depository/Depository.tsx +25 -8
  305. package/mobile/src/components/Depository/DepositoryFilter.tsx +1 -1
  306. package/mobile/src/components/Depository/DepositoryItem.tsx +6 -2
  307. package/mobile/src/components/Depository/useDepository.ts +15 -6
  308. package/mobile/src/components/OfficesAtmsMap/Badge.tsx +2 -2
  309. package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
  310. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
  311. package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
  312. package/mobile/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
  313. package/mobile/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
  314. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
  315. package/mobile/src/hooks/useResizeObserver.ts +28 -0
  316. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
  317. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
  318. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
  319. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
  320. package/mobile/src/ui-kit/PriceList/PriceList.tsx +25 -0
  321. package/mobile/src/ui-kit/PriceList/PriceListProps.ts +11 -0
  322. package/mobile/src/ui-kit/Select/Select.tsx +1 -0
  323. package/mobile/src/ui-kit/Select/SelectPopup.tsx +41 -34
  324. package/mobile/src/ui-kit/Select/useSelectPopup.tsx +2 -0
  325. package/package.json +1 -1
  326. package/src/common.css +1 -0
  327. package/src/components/Blocks.mobile.ts +0 -2
  328. package/src/components/Blocks.ts +0 -2
  329. package/src/components/Calculator/Calculator.fixture.mobile.tsx +15 -0
  330. package/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
  331. package/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
  332. package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
  333. package/src/components/CarouselCard/CarouselCard.tsx +1 -1
  334. package/src/components/Depository/Depository.tsx +25 -8
  335. package/src/components/Depository/DepositoryFilter.tsx +1 -1
  336. package/src/components/Depository/DepositoryItem.tsx +6 -2
  337. package/src/components/Depository/useDepository.ts +15 -6
  338. package/src/components/OfficesAtmsMap/Badge.tsx +2 -2
  339. package/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
  340. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
  341. package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
  342. package/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
  343. package/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
  344. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
  345. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +42 -0
  346. package/src/components/ProductBlock/ProductBlock.fixture.tsx +42 -0
  347. package/src/components/StepsBlock/StepsBlock.tsx +7 -4
  348. package/src/hooks/useResizeObserver.ts +28 -0
  349. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
  350. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
  351. package/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
  352. package/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
  353. package/src/ui-kit/PriceList/PriceList.fixture.tsx +16 -0
  354. package/src/ui-kit/PriceList/PriceList.tsx +25 -0
  355. package/src/ui-kit/PriceList/PriceListProps.ts +11 -0
  356. package/src/ui-kit/Select/Select.tsx +1 -0
  357. package/src/ui-kit/Select/SelectPopup.tsx +41 -34
  358. package/src/ui-kit/Select/useSelectPopup.tsx +2 -0
  359. package/tailwind.config.cjs +23 -20
  360. package/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  361. package/bundle/components/PictureText/PictureText.d.ts +0 -5
  362. package/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
  363. package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  364. package/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  365. package/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
  366. package/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  367. package/dist/components/PictureText/PictureText.d.ts +0 -5
  368. package/dist/components/PictureText/PictureText.js +0 -9
  369. package/dist/components/PictureText/PictureText.js.map +0 -1
  370. package/dist/components/PictureText/PictureTextContent.d.ts +0 -11
  371. package/dist/components/PictureText/PictureTextContent.js.map +0 -1
  372. package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  373. package/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
  374. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  375. package/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  376. package/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
  377. package/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  378. package/lib/components/PictureText/PictureText.d.ts +0 -5
  379. package/lib/components/PictureText/PictureText.fixture.d.ts +0 -14
  380. package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +0 -14
  381. package/lib/components/PictureText/PictureText.js +0 -7
  382. package/lib/components/PictureText/PictureText.js.map +0 -1
  383. package/lib/components/PictureText/PictureTextContent.d.ts +0 -11
  384. package/lib/components/PictureText/PictureTextContent.js +0 -2
  385. package/lib/components/PictureText/PictureTextContent.js.map +0 -1
  386. package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -1
  387. package/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
  388. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  389. package/mobile/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  390. package/mobile/bundle/components/PictureText/PictureText.d.ts +0 -5
  391. package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
  392. package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  393. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  394. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
  395. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  396. package/mobile/dist/components/PictureText/PictureText.d.ts +0 -5
  397. package/mobile/dist/components/PictureText/PictureText.js +0 -9
  398. package/mobile/dist/components/PictureText/PictureText.js.map +0 -1
  399. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +0 -11
  400. package/mobile/dist/components/PictureText/PictureTextContent.js.map +0 -1
  401. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  402. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
  403. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  404. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  405. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
  406. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  407. package/mobile/lib/components/PictureText/PictureText.d.ts +0 -5
  408. package/mobile/lib/components/PictureText/PictureText.js +0 -7
  409. package/mobile/lib/components/PictureText/PictureText.js.map +0 -1
  410. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +0 -11
  411. package/mobile/lib/components/PictureText/PictureTextContent.js +0 -2
  412. package/mobile/lib/components/PictureText/PictureTextContent.js.map +0 -1
  413. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  414. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
  415. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  416. package/mobile/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
  417. package/mobile/src/components/PictureText/PictureText.example.json +0 -40
  418. package/mobile/src/components/PictureText/PictureText.tsx +0 -36
  419. package/mobile/src/components/PictureText/PictureText.ui.json +0 -23
  420. package/mobile/src/components/PictureText/PictureTextContent.ts +0 -13
  421. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
  422. package/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
  423. package/src/components/PictureText/PictureText.example.json +0 -40
  424. package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -116
  425. package/src/components/PictureText/PictureText.fixture.tsx +0 -130
  426. package/src/components/PictureText/PictureText.tsx +0 -36
  427. package/src/components/PictureText/PictureText.ui.json +0 -23
  428. package/src/components/PictureText/PictureTextContent.ts +0 -13
  429. package/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat.js';
4
+ import { Text } from '../Text/Text.js';
5
+ export const PriceList = JSX(({ priceList }) => priceList?.length ? (_jsx("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: priceList.map(renderPriceListItem) })) : null);
6
+ const renderPriceListItem = ({ label, amount }) => (_jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre", children: [_jsx(Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: label }), amount ? (_jsxs("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [toLocalNumberFormat(2)(amount), " \u20BD"] })) : null] }));
7
+ //# sourceMappingURL=PriceList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PriceList.js","sourceRoot":"","sources":["../../../src/ui-kit/PriceList/PriceList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAC7D,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,cAAK,SAAS,EAAC,4EAA4E,YACxF,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAC/B,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAa,EAAE,EAAE,CAAC,CAC5D,eAAK,SAAS,EAAC,iJAAiJ,aAC9J,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACN,MAAM,CAAC,CAAC,CAAC,CACR,gBAAM,SAAS,EAAC,0DAA0D,aACvE,mBAAmB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,eAC1B,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type LabelProps } from '../../model/HeadlineType';
2
+ export declare type PriceItem = LabelProps & {
3
+ /** @title Значение поля */
4
+ amount?: number;
5
+ };
6
+ export interface PriceListProps {
7
+ /** @title Список цен */
8
+ priceList?: PriceItem[];
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PriceListProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PriceListProps.js","sourceRoot":"","sources":["../../../src/ui-kit/PriceList/PriceListProps.ts"],"names":[],"mappings":""}
@@ -22,6 +22,7 @@ export const Select = JSX(({ className, label, options = [], value, valid = true
22
22
  query,
23
23
  onChange,
24
24
  onClose: handleClose,
25
+ iconVersion,
25
26
  });
26
27
  return (_jsxs("div", { className: className, children: [renderLabel(label), _jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [_jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [_jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon(isOpen, iconVersion)] }), isSearch && isOpen ? (_jsx("div", { className: style('absolute top-0 w-full z-20'), children: _jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
27
28
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAG9D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAclD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EACC,SAAS,EACT,KAAK,EACL,OAAO,GAAG,EAAE,EACZ,KAAK,EACL,KAAK,GAAG,IAAI,EACZ,QAAQ,GAAG,IAAI,EACf,WAAW,GAAG,EAAE,EAChB,QAAQ,GAAG,KAAK,EAChB,WAAW,EACX,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC;IAC/D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEvC,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACb,KAAK,EAAE,CAAC;IACV,C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AAI,GAC7D,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAc,EAAE,EAAE,CACrC,KAAK,CAAC,CAAC,CAAC,CACN,cAAK,SAAS,EAAC,OAAO,YACpB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,YAAY,YAC5D,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,UAAU,GAAG,CAAC,MAAe,EAAE,WAAyB,EAAE,EAAE,CAAC,CACjE,KAAC,IAAI,IACH,SAAS,EAAE,KAAK,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,EAChE,WAAW,EAAE,WAAW,EACxB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,QAAiB,EAAE,KAAc,EAAE,EAAE,CAC3D,KAAK,CACH,QAAQ,CAAC,CAAC,CAAC,8CAA8C,CAAC,CAAC,CAAC,EAAE,EAC9D,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CACxC,CAAC"}
@@ -1,11 +1,13 @@
1
+ import { type IconVersion } from '../../model/IconVersion';
1
2
  import { type Option } from './Option';
2
3
  export interface SelectPopupProps {
4
+ iconVersion?: IconVersion;
5
+ onChange?: (option: Option) => void;
6
+ options?: Option[];
3
7
  popupRef?: {
4
8
  current: HTMLDivElement | null;
5
9
  };
6
- options?: Option[];
7
- value?: Option;
8
10
  query?: string;
9
- onChange?: (option: Option) => void;
11
+ value?: Option;
10
12
  }
11
13
  export declare const SelectPopup: import("@redneckz/uni-jsx").UNIComponent<SelectPopupProps, any, any>;
@@ -4,10 +4,10 @@ import { style } from '../../utils/style.js';
4
4
  import { Icon } from '../Icon/Icon.js';
5
5
  import { filterOptions } from './filterOptions.js';
6
6
  import { formatOption } from './formatOption.js';
7
- export const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (_jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (_jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: (e) => {
7
+ export const SelectPopup = JSX(({ popupRef, options, value, query, onChange, iconVersion }) => options?.length ? (_jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (_jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: (e) => {
8
8
  e.stopPropagation();
9
9
  if (onChange) {
10
10
  onChange(option);
11
11
  }
12
- }, children: [_jsx("span", { className: "min-h-6", children: formatOption(option) }), _jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
12
+ }, children: [_jsx("span", { className: "min-h-6", children: formatOption(option) }), _jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", iconVersion: iconVersion, className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
13
13
  //# sourceMappingURL=SelectPopup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectPopup.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/SelectPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC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C,CAAC,IAAI,CACX,CAAC"}
@@ -3,7 +3,7 @@ interface SelectPopupOptions extends SelectPopupProps {
3
3
  isOpen?: boolean;
4
4
  onClose?: () => void;
5
5
  }
6
- export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, }: SelectPopupOptions): {
6
+ export declare function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }: SelectPopupOptions): {
7
7
  current: HTMLDivElement | null;
8
8
  };
9
9
  export {};
@@ -3,7 +3,7 @@ import { useCallback, useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useOutsideClick } from '@redneckz/uni-jsx/lib/hooks/useOutsideClick';
4
4
  import { usePopupManager } from '../PopupManager/usePopupManager.js';
5
5
  import { SelectPopup } from './SelectPopup.js';
6
- export function useSelectPopup({ isOpen, options, value, query, onChange, onClose, }) {
6
+ export function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }) {
7
7
  const popup = usePopupManager();
8
8
  const close = useCallback(() => {
9
9
  popup.close();
@@ -21,7 +21,7 @@ export function useSelectPopup({ isOpen, options, value, query, onChange, onClos
21
21
  }
22
22
  const inputElement = inputRef.current;
23
23
  const { top, left, width, height } = inputElement.getBoundingClientRect();
24
- popup.update(_jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange }), {
24
+ popup.update(_jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange, iconVersion: iconVersion }), {
25
25
  top: top + window.scrollY + height,
26
26
  left,
27
27
  width,
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectPopup.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/useSelectPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AA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,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,qBAAqB,EAAE,CAAC;QAE1E,KAAK,CAAC,MAAM,CACV,KAAC,WAAW,IACV,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,WAAW,GACxB,EACF;YACE,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,OAAO,GAAG,MAAM;YAClC,IAAI;YACJ,KAAK;SACN,CACF,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;IAElD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -846,14 +846,14 @@
846
846
  return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
847
847
  };
848
848
 
849
- const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: (e) => {
849
+ const SelectPopup = JSX(({ popupRef, options, value, query, onChange, iconVersion }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: (e) => {
850
850
  e.stopPropagation();
851
851
  if (onChange) {
852
852
  onChange(option);
853
853
  }
854
- }, children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
854
+ }, children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", iconVersion: iconVersion, className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
855
855
 
856
- function useSelectPopup({ isOpen, options, value, query, onChange, onClose, }) {
856
+ function useSelectPopup({ isOpen, options, value, query, onChange, onClose, iconVersion, }) {
857
857
  const popup = usePopupManager();
858
858
  const close = useCallback(() => {
859
859
  popup.close();
@@ -871,7 +871,7 @@
871
871
  }
872
872
  const inputElement = inputRef.current;
873
873
  const { top, left, width, height } = inputElement.getBoundingClientRect();
874
- popup.update(jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange }), {
874
+ popup.update(jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange, iconVersion: iconVersion }), {
875
875
  top: top + window.scrollY + height,
876
876
  left,
877
877
  width,
@@ -894,6 +894,7 @@
894
894
  query,
895
895
  onChange,
896
896
  onClose: handleClose,
897
+ iconVersion,
897
898
  });
898
899
  return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
899
900
  });
@@ -1340,7 +1341,7 @@
1340
1341
  selectedMonth,
1341
1342
  showCalendar,
1342
1343
  });
1343
- return (jsxs("div", { className: style(className, 'relative'), ref: ref, children: [jsx(Text, { size: "text-m", children: label }), renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-10 select-none", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] }));
1344
+ return (jsxs("div", { className: style(className, 'relative'), ref: ref, children: [jsx(Text, { size: "text-m", "font-weight": "font-light", children: label }), renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-10 select-none", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] }));
1344
1345
  });
1345
1346
  const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
1346
1347
 
@@ -1841,16 +1842,34 @@
1841
1842
  return isFoldButtonOnTop ? (jsxs("div", { className: className, children: [buttonNode, sectionNode] })) : (jsxs("div", { className: className, children: [sectionNode, buttonNode] }));
1842
1843
  });
1843
1844
 
1845
+ function useResizeObserver(callback, deps) {
1846
+ const ref = useRef(null);
1847
+ useEffect(() => {
1848
+ const element = ref?.current;
1849
+ if (!element) {
1850
+ return undefined;
1851
+ }
1852
+ const observer = new ResizeObserver((entries) => {
1853
+ callback(element, entries[0]);
1854
+ });
1855
+ observer.observe(element);
1856
+ return () => {
1857
+ observer.disconnect();
1858
+ };
1859
+ }, [callback, ...deps]);
1860
+ return ref;
1861
+ }
1862
+
1844
1863
  const FoldableSection = JSX(({ className = '', isUnfolded, children }) => {
1845
1864
  const containerRef = useRef(null);
1846
- useEffect(() => {
1865
+ const childrenWrapperRef = useResizeObserver((childrenWrapperEl) => {
1847
1866
  if (containerRef.current) {
1848
1867
  containerRef.current.style.maxHeight = isUnfolded
1849
- ? `${containerRef.current.scrollHeight}px`
1868
+ ? `${childrenWrapperEl.scrollHeight}px`
1850
1869
  : '';
1851
1870
  }
1852
- }, [isUnfolded, children?.length]);
1853
- return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden ${containerRef.current || !isUnfolded ? 'max-h-0' : ''} ${className}`, children: children }));
1871
+ }, [isUnfolded]);
1872
+ return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden ${containerRef.current || !isUnfolded ? 'max-h-0' : ''} `, children: jsx("div", { className: className, ref: childrenWrapperRef, children: children }) }));
1854
1873
  });
1855
1874
 
1856
1875
  const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
@@ -2041,7 +2060,7 @@
2041
2060
  };
2042
2061
  const RadioButtonGroup = JSX(({ items, checkedItem, className, onChange: onChangeCheckedItem, orientation = 'horizontal', }) => (jsx("div", { className: style(`flex ${orientationStyleMap[orientation]}`, className), children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
2043
2062
 
2044
- const renderBinaryRadioButtonGroup = ({ items, title, orientation = 'horizontal', value, radioGroupClassName, onChange, }) => (jsxs("div", { className: "space-y-s", children: [title ? (jsx("div", { children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, className: style('flex-col sm:flex-row', radioGroupClassName), onChange: (_) => onChange && onChange(_ === items[0].id) })] }));
2063
+ const renderBinaryRadioButtonGroup = ({ items, title, mobileTitle = title, orientation = 'horizontal', value, radioGroupClassName, onChange, }) => (jsxs("div", { className: "space-y-s", children: [title ? (jsx("div", { className: "hidden @5xl:block", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, mobileTitle ? (jsx("div", { className: "@5xl:hidden", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: mobileTitle }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, className: style('flex-col sm:flex-row', radioGroupClassName), onChange: (_) => onChange && onChange(_ === items[0].id) })] }));
2045
2064
 
2046
2065
  const renderInterestPayment = (props) => renderBinaryRadioButtonGroup({
2047
2066
  ...props,
@@ -2279,7 +2298,7 @@
2279
2298
  }), [userInputParams, data]);
2280
2299
  };
2281
2300
 
2282
- const CreditCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings, isMobile }) => {
2301
+ const CreditCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
2283
2302
  const [userInputParams, { field }] = useForm({
2284
2303
  isAnnuity: true,
2285
2304
  isInsurance: true,
@@ -2291,7 +2310,8 @@
2291
2310
  });
2292
2311
  const calculatorParams = useCreditCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
2293
2312
  const paymentTypeElement = renderPaymentType({
2294
- title: isMobile ? 'Тип платежа' : '',
2313
+ title: '',
2314
+ mobileTitle: 'Тип платежа',
2295
2315
  orientation: 'vertical',
2296
2316
  ...field('isAnnuity'),
2297
2317
  });
@@ -2503,6 +2523,12 @@
2503
2523
  moneyExtra: REFINANCING_OLD_DEFAULT_SUM,
2504
2524
  });
2505
2525
  const calculatorParams = useRefinancingCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
2526
+ const paymentTypeElement = renderPaymentType({
2527
+ title: '',
2528
+ mobileTitle: 'Тип платежа',
2529
+ orientation: 'vertical',
2530
+ ...field('isAnnuity'),
2531
+ });
2506
2532
  return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
2507
2533
  title: 'Остаток долга в других банках, ₽ ',
2508
2534
  step: 500,
@@ -2532,12 +2558,12 @@
2532
2558
  ...field('moneyExtra'),
2533
2559
  value: calculatorParams.moneyExtra,
2534
2560
  })
2535
- : null] }), renderRate({
2561
+ : null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), renderRate({
2536
2562
  rate: calculatorParams.rate,
2537
2563
  fractionDigits: 1,
2538
- }), jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), calculatorParams.benefit > 0 ? (jsx(CalculatorValueBlock, { title: 'Выгода в месяц', value: calculatorParams.benefit, postfix: "\u20BD" })) : null, renderPaymentType({ orientation: 'vertical', ...field('isAnnuity') }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
2564
+ }), jsxs("div", { className: "flex flex-col gap-2xl mt-2 sm:w-96 sm:mt-0", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), calculatorParams.benefit > 0 ? (jsx(CalculatorValueBlock, { title: 'Выгода в месяц', value: calculatorParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
2539
2565
  });
2540
- const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
2566
+ const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
2541
2567
 
2542
2568
  const EmbeddableCalcBlocks = {
2543
2569
  CreditCalculatorForm,
@@ -2789,7 +2815,7 @@
2789
2815
 
2790
2816
  const layerBaseStyle = 'z-10 border border-solid w-full h-full';
2791
2817
  const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
2792
- const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative h-full", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2818
+ const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative h-full", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2793
2819
  className: 'mt-m sm:mt-6xl sm:justify-center',
2794
2820
  isVertical: true,
2795
2821
  })] })] }) })));
@@ -2898,14 +2924,17 @@
2898
2924
  };
2899
2925
  const List = JSX(({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2900
2926
 
2927
+ const PriceList = JSX(({ priceList }) => priceList?.length ? (jsx("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: priceList.map(renderPriceListItem) })) : null);
2928
+ const renderPriceListItem = ({ label, amount }) => (jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre", children: [jsx(Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: label }), amount ? (jsxs("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [toLocalNumberFormat(2)(amount), " \u20BD"] })) : null] }));
2929
+
2901
2930
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2902
2931
  const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
2903
2932
 
2904
- const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
2933
+ const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [], listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
2905
2934
  const img = image?.src ? jsx(Img, { image: image }) : null;
2906
2935
  const headline = renderHeadline({ title, description, headlineVersion, align });
2907
2936
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
2908
- return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2937
+ return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, priceList?.length ? jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
2909
2938
  });
2910
2939
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
2911
2940
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
@@ -3724,11 +3753,6 @@
3724
3753
  MortgageFiltration.childrenTypes = ['ProductTile'];
3725
3754
  MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
3726
3755
 
3727
- const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит', monthLimit) : null] })) : null;
3728
- const renderValueBlock = (title, value = 0) => (jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre", children: [jsx(Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: title }), jsxs("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
3729
-
3730
- const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isFullWidthTitle: true, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
3731
-
3732
3756
  const GOLDEN_RATIO = 1.618;
3733
3757
  const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border', className), ...rest, children: [jsx(Headline, { className: "max-w-[600px]", title: title, description: description, headlineVersion: "L", align: "text-left", isEmbedded: true }), jsx("figure", { className: "m-0 mt-xl min-w-[80%]", children: renderShimmer() })] })));
3734
3758
  const renderShimmer = (size = 3) => goldenSequence(100, size)
@@ -4927,7 +4951,6 @@
4927
4951
  ImgBlock,
4928
4952
  LinkDocs,
4929
4953
  MobileAppTile,
4930
- PictureText,
4931
4954
  Placeholder,
4932
4955
  ProductBlock,
4933
4956
  ProductGallery,
@@ -5139,7 +5162,7 @@
5139
5162
 
5140
5163
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
5141
5164
 
5142
- const packageVersion = "0.14.29";
5165
+ const packageVersion = "0.14.30";
5143
5166
 
5144
5167
  exports.Blocks = Blocks;
5145
5168
  exports.ContentPage = ContentPage;