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

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 (455) hide show
  1. package/bin/migration-scripts/0.14.29.js +4 -34
  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 +201 -89
  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/List/List.d.ts +2 -0
  18. package/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
  19. package/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  20. package/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
  21. package/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
  22. package/dist/components/BenefitsBlock/BenefitsBlock.js +3 -1
  23. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  24. package/dist/components/Blocks.js +0 -2
  25. package/dist/components/Blocks.js.map +1 -1
  26. package/dist/components/Blocks.mobile.js +0 -2
  27. package/dist/components/Blocks.mobile.js.map +1 -1
  28. package/dist/components/Calculator/CreditCalculatorForm.js +3 -2
  29. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  30. package/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  31. package/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
  32. package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  33. package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  34. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  35. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  36. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  37. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  38. package/dist/components/Depository/Depository.js +12 -3
  39. package/dist/components/Depository/Depository.js.map +1 -1
  40. package/dist/components/Depository/DepositoryFilter.js +1 -1
  41. package/dist/components/Depository/DepositoryFilter.js.map +1 -1
  42. package/dist/components/Depository/DepositoryItem.js +1 -1
  43. package/dist/components/Depository/DepositoryItem.js.map +1 -1
  44. package/dist/components/Depository/useDepository.js +11 -1
  45. package/dist/components/Depository/useDepository.js.map +1 -1
  46. package/dist/components/OfficesAtmsMap/Badge.js +2 -2
  47. package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  48. package/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  49. package/dist/components/OfficesAtmsMap/CardCell.js +6 -4
  50. package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  51. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  52. package/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  53. package/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
  54. package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  55. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  56. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
  57. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  58. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  59. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
  60. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  61. package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  62. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  63. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  64. package/dist/components/StepsBlock/StepsBlock.js +3 -2
  65. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  66. package/dist/hooks/useResizeObserver.d.ts +3 -0
  67. package/dist/hooks/useResizeObserver.js +22 -0
  68. package/dist/hooks/useResizeObserver.js.map +1 -0
  69. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  70. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  71. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  72. package/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  73. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  74. package/dist/ui-kit/Foldable/FoldableSection.js +5 -4
  75. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  76. package/dist/ui-kit/List/List.d.ts +2 -0
  77. package/dist/ui-kit/List/List.js +3 -3
  78. package/dist/ui-kit/List/List.js.map +1 -1
  79. package/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
  80. package/dist/ui-kit/PriceList/PriceList.js +9 -0
  81. package/dist/ui-kit/PriceList/PriceList.js.map +1 -0
  82. package/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  83. package/dist/{components/PictureText/PictureTextContent.js → ui-kit/PriceList/PriceListProps.js} +1 -1
  84. package/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
  85. package/dist/ui-kit/Select/Select.js +1 -0
  86. package/dist/ui-kit/Select/Select.js.map +1 -1
  87. package/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
  88. package/dist/ui-kit/Select/SelectPopup.js +2 -2
  89. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  90. package/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
  91. package/dist/ui-kit/Select/useSelectPopup.js +2 -2
  92. package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  93. package/lib/common.css +1 -1
  94. package/lib/components/BenefitsBlock/BenefitsBlock.js +3 -1
  95. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  96. package/lib/components/Blocks.js +0 -2
  97. package/lib/components/Blocks.js.map +1 -1
  98. package/lib/components/Blocks.mobile.js +0 -2
  99. package/lib/components/Blocks.mobile.js.map +1 -1
  100. package/lib/components/Calculator/CreditCalculatorForm.js +3 -2
  101. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  102. package/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  103. package/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
  104. package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  105. package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  106. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  107. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  108. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  109. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  110. package/lib/components/Depository/Depository.js +12 -3
  111. package/lib/components/Depository/Depository.js.map +1 -1
  112. package/lib/components/Depository/DepositoryFilter.js +1 -1
  113. package/lib/components/Depository/DepositoryFilter.js.map +1 -1
  114. package/lib/components/Depository/DepositoryItem.js +1 -1
  115. package/lib/components/Depository/DepositoryItem.js.map +1 -1
  116. package/lib/components/Depository/useDepository.js +11 -1
  117. package/lib/components/Depository/useDepository.js.map +1 -1
  118. package/lib/components/OfficesAtmsMap/Badge.js +2 -2
  119. package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  120. package/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  121. package/lib/components/OfficesAtmsMap/CardCell.js +6 -4
  122. package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  123. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  124. package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  125. package/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
  126. package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  127. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  128. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
  129. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  130. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  131. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
  132. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  133. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  134. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  135. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  136. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
  137. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
  138. package/lib/components/StepsBlock/StepsBlock.js +3 -2
  139. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  140. package/lib/hooks/useResizeObserver.d.ts +3 -0
  141. package/lib/hooks/useResizeObserver.js +19 -0
  142. package/lib/hooks/useResizeObserver.js.map +1 -0
  143. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  144. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  145. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  146. package/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  147. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  148. package/lib/ui-kit/Foldable/FoldableSection.js +6 -5
  149. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  150. package/lib/ui-kit/List/List.d.ts +2 -0
  151. package/lib/ui-kit/List/List.js +1 -1
  152. package/lib/ui-kit/List/List.js.map +1 -1
  153. package/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
  154. package/lib/ui-kit/PriceList/PriceList.fixture.d.ts +6 -0
  155. package/lib/ui-kit/PriceList/PriceList.js +7 -0
  156. package/lib/ui-kit/PriceList/PriceList.js.map +1 -0
  157. package/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  158. package/lib/ui-kit/PriceList/PriceListProps.js +2 -0
  159. package/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
  160. package/lib/ui-kit/Select/Select.js +1 -0
  161. package/lib/ui-kit/Select/Select.js.map +1 -1
  162. package/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
  163. package/lib/ui-kit/Select/SelectPopup.js +2 -2
  164. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  165. package/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
  166. package/lib/ui-kit/Select/useSelectPopup.js +2 -2
  167. package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  168. package/mobile/bundle/bundle.umd.js +70 -47
  169. package/mobile/bundle/bundle.umd.min.js +1 -1
  170. package/mobile/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  171. package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  172. package/mobile/bundle/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  173. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  174. package/mobile/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  175. package/mobile/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  176. package/mobile/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  177. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  178. package/mobile/bundle/hooks/useResizeObserver.d.ts +3 -0
  179. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  180. package/mobile/bundle/ui-kit/List/List.d.ts +2 -0
  181. package/mobile/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
  182. package/mobile/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  183. package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
  184. package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
  185. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +3 -1
  186. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  187. package/mobile/dist/components/Blocks.js +0 -2
  188. package/mobile/dist/components/Blocks.js.map +1 -1
  189. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -2
  190. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  191. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  192. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
  193. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  194. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  195. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  196. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  197. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  198. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  199. package/mobile/dist/components/Depository/Depository.js +12 -3
  200. package/mobile/dist/components/Depository/Depository.js.map +1 -1
  201. package/mobile/dist/components/Depository/DepositoryFilter.js +1 -1
  202. package/mobile/dist/components/Depository/DepositoryFilter.js.map +1 -1
  203. package/mobile/dist/components/Depository/DepositoryItem.js +1 -1
  204. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
  205. package/mobile/dist/components/Depository/useDepository.js +11 -1
  206. package/mobile/dist/components/Depository/useDepository.js.map +1 -1
  207. package/mobile/dist/components/OfficesAtmsMap/Badge.js +2 -2
  208. package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  209. package/mobile/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  210. package/mobile/dist/components/OfficesAtmsMap/CardCell.js +6 -4
  211. package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  212. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  213. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  214. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
  215. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  216. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  217. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
  218. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  219. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  220. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
  221. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  222. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  223. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  224. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  225. package/mobile/dist/hooks/useResizeObserver.d.ts +3 -0
  226. package/mobile/dist/hooks/useResizeObserver.js +22 -0
  227. package/mobile/dist/hooks/useResizeObserver.js.map +1 -0
  228. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  229. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  230. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  231. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  232. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  233. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +5 -4
  234. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  235. package/mobile/dist/ui-kit/List/List.d.ts +2 -0
  236. package/mobile/dist/ui-kit/List/List.js +3 -3
  237. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  238. package/mobile/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
  239. package/mobile/dist/ui-kit/PriceList/PriceList.js +9 -0
  240. package/mobile/dist/ui-kit/PriceList/PriceList.js.map +1 -0
  241. package/mobile/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  242. package/mobile/dist/{components/PictureText/PictureTextContent.js → ui-kit/PriceList/PriceListProps.js} +1 -1
  243. package/mobile/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
  244. package/mobile/dist/ui-kit/Select/Select.js +1 -0
  245. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  246. package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
  247. package/mobile/dist/ui-kit/Select/SelectPopup.js +2 -2
  248. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  249. package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
  250. package/mobile/dist/ui-kit/Select/useSelectPopup.js +2 -2
  251. package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  252. package/mobile/lib/common.css +1 -1
  253. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +3 -1
  254. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  255. package/mobile/lib/components/Blocks.js +0 -2
  256. package/mobile/lib/components/Blocks.js.map +1 -1
  257. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +3 -2
  258. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  259. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  260. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
  261. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  262. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  263. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  264. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  265. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  266. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  267. package/mobile/lib/components/Depository/Depository.js +12 -3
  268. package/mobile/lib/components/Depository/Depository.js.map +1 -1
  269. package/mobile/lib/components/Depository/DepositoryFilter.js +1 -1
  270. package/mobile/lib/components/Depository/DepositoryFilter.js.map +1 -1
  271. package/mobile/lib/components/Depository/DepositoryItem.js +1 -1
  272. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
  273. package/mobile/lib/components/Depository/useDepository.js +11 -1
  274. package/mobile/lib/components/Depository/useDepository.js.map +1 -1
  275. package/mobile/lib/components/OfficesAtmsMap/Badge.js +2 -2
  276. package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  277. package/mobile/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  278. package/mobile/lib/components/OfficesAtmsMap/CardCell.js +6 -4
  279. package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  280. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  281. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  282. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
  283. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  284. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  285. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
  286. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  287. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  288. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
  289. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  290. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  291. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  292. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  293. package/mobile/lib/hooks/useResizeObserver.d.ts +3 -0
  294. package/mobile/lib/hooks/useResizeObserver.js +19 -0
  295. package/mobile/lib/hooks/useResizeObserver.js.map +1 -0
  296. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  297. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  298. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  299. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  300. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  301. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +6 -5
  302. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  303. package/mobile/lib/ui-kit/List/List.d.ts +2 -0
  304. package/mobile/lib/ui-kit/List/List.js +1 -1
  305. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  306. package/mobile/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
  307. package/mobile/lib/ui-kit/PriceList/PriceList.js +7 -0
  308. package/mobile/lib/ui-kit/PriceList/PriceList.js.map +1 -0
  309. package/mobile/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  310. package/mobile/lib/ui-kit/PriceList/PriceListProps.js +2 -0
  311. package/mobile/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
  312. package/mobile/lib/ui-kit/Select/Select.js +1 -0
  313. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  314. package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
  315. package/mobile/lib/ui-kit/Select/SelectPopup.js +2 -2
  316. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  317. package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
  318. package/mobile/lib/ui-kit/Select/useSelectPopup.js +2 -2
  319. package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  320. package/mobile/src/common.css +1 -0
  321. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +9 -6
  322. package/mobile/src/components/Blocks.ts +0 -2
  323. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
  324. package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
  325. package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
  326. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
  327. package/mobile/src/components/Depository/Depository.tsx +25 -8
  328. package/mobile/src/components/Depository/DepositoryFilter.tsx +1 -1
  329. package/mobile/src/components/Depository/DepositoryItem.tsx +6 -2
  330. package/mobile/src/components/Depository/useDepository.ts +15 -6
  331. package/mobile/src/components/OfficesAtmsMap/Badge.tsx +2 -2
  332. package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
  333. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
  334. package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
  335. package/mobile/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
  336. package/mobile/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
  337. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
  338. package/mobile/src/hooks/useResizeObserver.ts +28 -0
  339. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
  340. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
  341. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
  342. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
  343. package/mobile/src/ui-kit/List/List.tsx +1 -1
  344. package/mobile/src/ui-kit/PriceList/PriceList.tsx +25 -0
  345. package/mobile/src/ui-kit/PriceList/PriceListProps.ts +11 -0
  346. package/mobile/src/ui-kit/Select/Select.tsx +1 -0
  347. package/mobile/src/ui-kit/Select/SelectPopup.tsx +41 -34
  348. package/mobile/src/ui-kit/Select/useSelectPopup.tsx +2 -0
  349. package/package.json +2 -2
  350. package/src/common.css +1 -0
  351. package/src/components/BenefitsBlock/BenefitsBlock.tsx +9 -6
  352. package/src/components/Blocks.mobile.ts +0 -2
  353. package/src/components/Blocks.ts +0 -2
  354. package/src/components/Calculator/Calculator.fixture.mobile.tsx +15 -0
  355. package/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
  356. package/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
  357. package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
  358. package/src/components/CarouselCard/CarouselCard.tsx +1 -1
  359. package/src/components/Depository/Depository.tsx +25 -8
  360. package/src/components/Depository/DepositoryFilter.tsx +1 -1
  361. package/src/components/Depository/DepositoryItem.tsx +6 -2
  362. package/src/components/Depository/useDepository.ts +15 -6
  363. package/src/components/OfficesAtmsMap/Badge.tsx +2 -2
  364. package/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
  365. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
  366. package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
  367. package/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
  368. package/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
  369. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
  370. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +42 -0
  371. package/src/components/ProductBlock/ProductBlock.fixture.tsx +42 -0
  372. package/src/components/StepsBlock/StepsBlock.tsx +7 -4
  373. package/src/hooks/useResizeObserver.ts +28 -0
  374. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
  375. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
  376. package/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
  377. package/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
  378. package/src/ui-kit/List/List.tsx +1 -1
  379. package/src/ui-kit/PriceList/PriceList.fixture.tsx +16 -0
  380. package/src/ui-kit/PriceList/PriceList.tsx +25 -0
  381. package/src/ui-kit/PriceList/PriceListProps.ts +11 -0
  382. package/src/ui-kit/Select/Select.tsx +1 -0
  383. package/src/ui-kit/Select/SelectPopup.tsx +41 -34
  384. package/src/ui-kit/Select/useSelectPopup.tsx +2 -0
  385. package/tailwind.config.cjs +23 -20
  386. package/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  387. package/bundle/components/PictureText/PictureText.d.ts +0 -5
  388. package/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
  389. package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  390. package/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  391. package/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
  392. package/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  393. package/dist/components/PictureText/PictureText.d.ts +0 -5
  394. package/dist/components/PictureText/PictureText.js +0 -9
  395. package/dist/components/PictureText/PictureText.js.map +0 -1
  396. package/dist/components/PictureText/PictureTextContent.d.ts +0 -11
  397. package/dist/components/PictureText/PictureTextContent.js.map +0 -1
  398. package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  399. package/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
  400. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  401. package/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  402. package/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
  403. package/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  404. package/lib/components/PictureText/PictureText.d.ts +0 -5
  405. package/lib/components/PictureText/PictureText.fixture.d.ts +0 -14
  406. package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +0 -14
  407. package/lib/components/PictureText/PictureText.js +0 -7
  408. package/lib/components/PictureText/PictureText.js.map +0 -1
  409. package/lib/components/PictureText/PictureTextContent.d.ts +0 -11
  410. package/lib/components/PictureText/PictureTextContent.js +0 -2
  411. package/lib/components/PictureText/PictureTextContent.js.map +0 -1
  412. package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -1
  413. package/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
  414. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  415. package/mobile/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  416. package/mobile/bundle/components/PictureText/PictureText.d.ts +0 -5
  417. package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
  418. package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  419. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  420. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
  421. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  422. package/mobile/dist/components/PictureText/PictureText.d.ts +0 -5
  423. package/mobile/dist/components/PictureText/PictureText.js +0 -9
  424. package/mobile/dist/components/PictureText/PictureText.js.map +0 -1
  425. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +0 -11
  426. package/mobile/dist/components/PictureText/PictureTextContent.js.map +0 -1
  427. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  428. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
  429. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  430. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  431. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
  432. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  433. package/mobile/lib/components/PictureText/PictureText.d.ts +0 -5
  434. package/mobile/lib/components/PictureText/PictureText.js +0 -7
  435. package/mobile/lib/components/PictureText/PictureText.js.map +0 -1
  436. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +0 -11
  437. package/mobile/lib/components/PictureText/PictureTextContent.js +0 -2
  438. package/mobile/lib/components/PictureText/PictureTextContent.js.map +0 -1
  439. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  440. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
  441. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  442. package/mobile/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
  443. package/mobile/src/components/PictureText/PictureText.example.json +0 -40
  444. package/mobile/src/components/PictureText/PictureText.tsx +0 -36
  445. package/mobile/src/components/PictureText/PictureText.ui.json +0 -23
  446. package/mobile/src/components/PictureText/PictureTextContent.ts +0 -13
  447. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
  448. package/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
  449. package/src/components/PictureText/PictureText.example.json +0 -40
  450. package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -116
  451. package/src/components/PictureText/PictureText.fixture.tsx +0 -130
  452. package/src/components/PictureText/PictureText.tsx +0 -36
  453. package/src/components/PictureText/PictureText.ui.json +0 -23
  454. package/src/components/PictureText/PictureTextContent.ts +0 -13
  455. package/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
@@ -1,4 +1,4 @@
1
- import { deleteEmptyProps, deleteProp, renameProp } from '../utils.js';
1
+ import { deleteEmptyButton, deleteEmptyProps, deleteProp, renameProp } from '../utils.js';
2
2
 
3
3
  export const description = 'v0.14.29';
4
4
 
@@ -44,7 +44,9 @@ function adjustCarouselProductCardBlock(block) {
44
44
  ...content.imageOptions,
45
45
  isImageAlwaysOnRight: false,
46
46
  };
47
-
47
+ if (!content?.align || content?.align === 'center') {
48
+ content.align = 'text-center';
49
+ }
48
50
  if (content?.isTopPosition) {
49
51
  content.imageOptions = {
50
52
  ...content.imageOptions,
@@ -71,35 +73,3 @@ function adjustSocialMedia(content) {
71
73
  content.socialMedia = [{ ...button }];
72
74
  }
73
75
  }
74
-
75
- function clearIcon(obj, prop = 'icon') {
76
- const iconObj = obj?.[prop];
77
-
78
- if (!iconObj) {
79
- return;
80
- }
81
- const isIconName = iconObj?.icon || iconObj?.src;
82
-
83
- if (!isIconName) {
84
- deleteProp(obj, prop);
85
- }
86
- if (prop === 'icon') {
87
- clearIcon(obj, 'iconRight');
88
- }
89
- }
90
-
91
- function deleteEmptyButton(obj) {
92
- if (obj?.buttons && !obj?.buttons?.length) {
93
- for (const arrButton of obj.buttons) {
94
- deleteEmptyButton(arrButton);
95
- }
96
- }
97
- const button = obj?.button;
98
- clearIcon(button);
99
- if (button?.text || button?.icon || button?.iconRight) {
100
- return obj;
101
- }
102
- deleteProp(obj, 'button');
103
-
104
- return obj;
105
- }
@@ -0,0 +1,54 @@
1
+ import { deleteEmptyButton, deleteEmptyProps, deleteProp } from '../utils.js';
2
+
3
+ export const description = 'v0.14.30';
4
+
5
+ export default (uniPath, content) => {
6
+ if (!content?.blocks) {
7
+ return content;
8
+ }
9
+
10
+ for (const block of content.blocks) {
11
+ adjustCarouselPictureText(block);
12
+ }
13
+
14
+ return { ...content };
15
+ };
16
+
17
+ function adjustCarouselPictureText(block) {
18
+ if (block.blocks) {
19
+ for (const childBlock of block.blocks) {
20
+ adjustCarouselPictureText(childBlock);
21
+ }
22
+ }
23
+
24
+ const content = block?.content;
25
+ if (block.type === 'PictureText' && content) {
26
+ block.content = deleteEmptyProps(content);
27
+ block.content = deleteEmptyButton(content);
28
+
29
+ if (content?.title) {
30
+ content.isFullWidthTitle = true;
31
+ content.align = 'text-center';
32
+ content.headlineVersion = 'M';
33
+ }
34
+ if (content?.sum || content?.monthLimit) {
35
+ content.priceList = [];
36
+ }
37
+ if (content?.sum) {
38
+ content.priceList.push({ label: 'Страховая сумма', amount: content.sum });
39
+ }
40
+ if (content?.monthLimit) {
41
+ content.priceList.push({ label: 'Ежемесячный лимит', amount: content.monthLimit });
42
+ }
43
+ deleteProp(content, 'sum');
44
+ deleteProp(content, 'monthLimit');
45
+ deleteProp(content, 'directionRight');
46
+ content.imageOptions = {
47
+ ...content.imageOptions,
48
+ directionRight: content?.imageOptions?.directionRight || false,
49
+ };
50
+ }
51
+ if (block.type === 'PictureText') {
52
+ block.type = 'ProductBlock';
53
+ }
54
+ }
package/bin/utils.js CHANGED
@@ -33,3 +33,39 @@ const isNotEmpty = (_) =>
33
33
  (!Array.isArray(_) || _.length > 0) &&
34
34
  (typeof _ !== 'string' || _.length > 0) &&
35
35
  (typeof _ !== 'object' || Object.keys(_).length > 0);
36
+
37
+ export function deleteEmptyButton(obj) {
38
+ if (obj?.buttons && !obj?.buttons?.length) {
39
+ for (const arrButton of obj.buttons) {
40
+ deleteEmptyButton(arrButton);
41
+ }
42
+ }
43
+
44
+ const button = obj?.button;
45
+ clearIcon(button);
46
+
47
+ if (button?.text || button?.icon || button?.iconRight) {
48
+ return obj;
49
+ }
50
+
51
+ deleteProp(obj, 'button');
52
+
53
+ return obj;
54
+ }
55
+
56
+ export function clearIcon(obj, prop = 'icon') {
57
+ const iconObj = obj?.[prop];
58
+
59
+ if (!iconObj) {
60
+ return;
61
+ }
62
+ const isIconName = iconObj?.icon || iconObj?.src;
63
+
64
+ if (!isIconName) {
65
+ deleteProp(obj, prop);
66
+ }
67
+
68
+ if (prop === 'icon') {
69
+ clearIcon(obj, 'iconRight');
70
+ }
71
+ }