@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,25 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
3
+ import { Text } from '../Text/Text';
4
+ import { type PriceItem, type PriceListProps } from './PriceListProps';
5
+
6
+ export const PriceList = JSX<PriceListProps>(({ priceList }) =>
7
+ priceList?.length ? (
8
+ <div className="flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl">
9
+ {priceList.map(renderPriceListItem)}
10
+ </div>
11
+ ) : null,
12
+ );
13
+
14
+ const renderPriceListItem = ({ label, amount }: PriceItem) => (
15
+ <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">
16
+ <Text font="font-light" size="text-l" color="text-secondary-text">
17
+ {label}
18
+ </Text>
19
+ {amount ? (
20
+ <span className="font-sans text-h6 sm:text-primary-main text-primary-text">
21
+ {toLocalNumberFormat(2)(amount)} ₽
22
+ </span>
23
+ ) : null}
24
+ </div>
25
+ );
@@ -0,0 +1,11 @@
1
+ import { type LabelProps } from '../../model/HeadlineType';
2
+
3
+ export type PriceItem = LabelProps & {
4
+ /** @title Значение поля */
5
+ amount?: number;
6
+ };
7
+
8
+ export interface PriceListProps {
9
+ /** @title Список цен */
10
+ priceList?: PriceItem[];
11
+ }
@@ -51,6 +51,7 @@ export const Select = JSX<SelectProps>(
51
51
  query,
52
52
  onChange,
53
53
  onClose: handleClose,
54
+ iconVersion,
54
55
  });
55
56
 
56
57
  return (
@@ -1,4 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { type IconVersion } from '../../model/IconVersion';
2
3
  import { style } from '../../utils/style';
3
4
  import { Icon } from '../Icon/Icon';
4
5
  import { filterOptions } from './filterOptions';
@@ -6,42 +7,48 @@ import { formatOption } from './formatOption';
6
7
  import { type Option } from './Option';
7
8
 
8
9
  export interface SelectPopupProps {
9
- popupRef?: { current: HTMLDivElement | null };
10
+ iconVersion?: IconVersion;
11
+ onChange?: (option: Option) => void;
10
12
  options?: Option[];
11
- value?: Option;
13
+ popupRef?: { current: HTMLDivElement | null };
12
14
  query?: string;
13
- onChange?: (option: Option) => void;
15
+ value?: Option;
14
16
  }
15
17
 
16
- export const SelectPopup = JSX<SelectPopupProps>(({ popupRef, options, value, query, onChange }) =>
17
- options?.length ? (
18
- <div
19
- className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md"
20
- role="listbox"
21
- ref={popupRef}
22
- >
23
- {filterOptions(options, query).map((option) => (
24
- <div
25
- key={option.key}
26
- className="flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative"
27
- role="option"
28
- aria-selected={option.key === value?.key}
29
- onClick={(e) => {
30
- e.stopPropagation();
31
- if (onChange) {
32
- onChange(option);
33
- }
34
- }}
35
- >
36
- <span className="min-h-6">{formatOption(option)}</span>
37
- <Icon
38
- name="DoneSimpleIcon"
39
- width="16"
40
- height="16"
41
- className={style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden')}
42
- />
43
- </div>
44
- ))}
45
- </div>
46
- ) : null,
18
+ export const SelectPopup = JSX<SelectPopupProps>(
19
+ ({ popupRef, options, value, query, onChange, iconVersion }) =>
20
+ options?.length ? (
21
+ <div
22
+ className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md"
23
+ role="listbox"
24
+ ref={popupRef}
25
+ >
26
+ {filterOptions(options, query).map((option) => (
27
+ <div
28
+ key={option.key}
29
+ className="flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative"
30
+ role="option"
31
+ aria-selected={option.key === value?.key}
32
+ onClick={(e) => {
33
+ e.stopPropagation();
34
+ if (onChange) {
35
+ onChange(option);
36
+ }
37
+ }}
38
+ >
39
+ <span className="min-h-6">{formatOption(option)}</span>
40
+ <Icon
41
+ name="DoneSimpleIcon"
42
+ width="16"
43
+ height="16"
44
+ iconVersion={iconVersion}
45
+ className={style(
46
+ 'absolute right-4 pt-3xs',
47
+ option.key === value?.key ? '' : 'hidden',
48
+ )}
49
+ />
50
+ </div>
51
+ ))}
52
+ </div>
53
+ ) : null,
47
54
  );
@@ -16,6 +16,7 @@ export function useSelectPopup({
16
16
  query,
17
17
  onChange,
18
18
  onClose,
19
+ iconVersion,
19
20
  }: SelectPopupOptions) {
20
21
  const popup = usePopupManager();
21
22
 
@@ -50,6 +51,7 @@ export function useSelectPopup({
50
51
  value={value}
51
52
  query={query}
52
53
  onChange={handleChange}
54
+ iconVersion={iconVersion}
53
55
  />,
54
56
  {
55
57
  top: top + window.scrollY + height,
@@ -64,7 +64,7 @@ module.exports = {
64
64
  'linear-gradient(90deg, rgba(var(--color-primary-main), 1) 0%, rgba(var(--color-primary-main), 0) 80%);',
65
65
  'green-to-yellow': 'linear-gradient(180deg, #42AB44 0%, #F6DB7D 100%)',
66
66
  },
67
- flexShrink: { '1/2': '0.5'},
67
+ flexShrink: { '1/2': '0.5' },
68
68
  fontFamily: {
69
69
  sans: ['Ubuntu', ...defaultTheme.fontFamily.sans],
70
70
  mohave: ['Mohave', ...defaultTheme.fontFamily.sans],
@@ -231,6 +231,7 @@ module.exports = {
231
231
  },
232
232
  green: 'rgba(var(--color-green), <alpha-value>)',
233
233
  'green-light': 'rgba(var(--color-green-light), <alpha-value>)',
234
+ 'green-more-light': 'rgba(var(--color-green-more-light), <alpha-value>)',
234
235
  'green-dark': 'rgba(var(--color-green-dark), <alpha-value>)',
235
236
  'green-more-dark': 'rgba(var(--color-green-more-dark), <alpha-value>)',
236
237
  yellow: 'rgba(var(--color-yellow), <alpha-value>)',
@@ -260,7 +261,6 @@ module.exports = {
260
261
  },
261
262
  borderColor: {
262
263
  'primary-hover': 'rgba(134, 134, 134, 1)',
263
- 'green-light': 'rgba(219, 242, 219, 1)',
264
264
  golden: 'rgba(255, 237, 184, 1)',
265
265
  },
266
266
  borderRadius: {
@@ -268,24 +268,27 @@ module.exports = {
268
268
  },
269
269
  },
270
270
  },
271
- plugins: [require('@tailwindcss/container-queries'), function ({ addComponents }) {
272
- addComponents({
273
- '.container': {
274
- maxWidth: '100%',
275
- '@screen sm': {
276
- maxWidth: 'none',
277
- },
278
- '@screen md': {
279
- maxWidth: 'none',
280
- },
281
- '@screen lg': {
282
- maxWidth: '1024px',
283
- },
284
- '@screen xl': {
285
- maxWidth: '1280px',
271
+ plugins: [
272
+ require('@tailwindcss/container-queries'),
273
+ function ({ addComponents }) {
274
+ addComponents({
275
+ '.container': {
276
+ maxWidth: '100%',
277
+ '@screen sm': {
278
+ maxWidth: 'none',
279
+ },
280
+ '@screen md': {
281
+ maxWidth: 'none',
282
+ },
283
+ '@screen lg': {
284
+ maxWidth: '1024px',
285
+ },
286
+ '@screen xl': {
287
+ maxWidth: '1280px',
288
+ },
286
289
  },
287
- }
288
- })
289
- }],
290
+ });
291
+ },
292
+ ],
290
293
  safelist: [],
291
294
  };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type PictureTextContent } from './PictureTextContent';
3
- export interface PictureTextProps extends PictureTextContent, UniBlockProps {
4
- }
5
- export declare const PictureText: import("@redneckz/uni-jsx").UNIComponent<PictureTextProps, any, any>;
@@ -1,11 +0,0 @@
1
- import { type UniBlockContent } from '../../model/JSXBlock';
2
- import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
3
- /**
4
- * @title Картинка с текстом
5
- */
6
- export declare type PictureTextContent = UniBlockContent & BaseProductTileContent & {
7
- /** @title Ежемесячный лимит */
8
- monthLimit?: number;
9
- /** @title Страховая сумма */
10
- sum?: number;
11
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderInsuranceSumMonth: (sum?: number, monthLimit?: number) => JSX.Element | null;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderLunchHour = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const Text_1 = require("../../ui-kit/Text/Text");
5
- const renderLunchHour = (lunchHour) => {
6
- const hasLunch = /\d+/gi.test(lunchHour);
7
- return hasLunch ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row w-full pb-2xs", children: [(0, jsx_runtime_1.jsx)("div", { className: "pr-s", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-error", children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-error", children: lunchHour }) })] })) : ((0, jsx_runtime_1.jsx)("div", { className: "items-center w-full pb-2xs", children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: "text-primary-main", font: "font-light", children: lunchHour }) }) }));
8
- };
9
- exports.renderLunchHour = renderLunchHour;
10
- //# sourceMappingURL=renderLunchHour.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderLunchHour.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderLunchHour.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAEvC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEzC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,2DAE/B,GACH,EACN,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,YACnC,SAAS,GACL,GACH,IACF,CACP,CAAC,CAAC,CAAC,CACF,gCAAK,SAAS,EAAC,4BAA4B,YACzC,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,YAAY,YAC5D,SAAS,GACL,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,eAAe,mBAyB1B"}
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type PictureTextContent } from './PictureTextContent';
3
- export interface PictureTextProps extends PictureTextContent, UniBlockProps {
4
- }
5
- export declare const PictureText: import("@redneckz/uni-jsx").UNIComponent<PictureTextProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.PictureText = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
6
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
- const renderInsuranceSumMonth_1 = require("./renderInsuranceSumMonth");
8
- exports.PictureText = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isFullWidthTitle: true, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: (0, renderInsuranceSumMonth_1.renderInsuranceSumMonth)(Number(sum), Number(monthLimit)) }) })));
9
- //# sourceMappingURL=PictureText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AAEzD,uEAAoE;AAIvD,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,aAAa,EACrB,GAAG,EACH,UAAU,EACV,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,OAAO,EACtB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,EACtB,YAAY,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,KAC1E,IAAI,YAEP,IAAA,iDAAuB,EAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,GACzC,GACL,CAChB,CACF,CAAC"}
@@ -1,11 +0,0 @@
1
- import { type UniBlockContent } from '../../model/JSXBlock';
2
- import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
3
- /**
4
- * @title Картинка с текстом
5
- */
6
- export declare type PictureTextContent = UniBlockContent & BaseProductTileContent & {
7
- /** @title Ежемесячный лимит */
8
- monthLimit?: number;
9
- /** @title Страховая сумма */
10
- sum?: number;
11
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictureTextContent.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureTextContent.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderInsuranceSumMonth: (sum?: number, monthLimit?: number) => JSX.Element | null;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderInsuranceSumMonth = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const Text_1 = require("../../ui-kit/Text/Text");
5
- const toLocalNumberFormat_1 = require("../../utils/toLocalNumberFormat");
6
- const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? ((0, jsx_runtime_1.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;
7
- exports.renderInsuranceSumMonth = renderInsuranceSumMonth;
8
- const renderValueBlock = (title, value = 0) => ((0, jsx_runtime_1.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: [(0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: title }), (0, jsx_runtime_1.jsxs)("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [(0, toLocalNumberFormat_1.toLocalNumberFormat)(2)(value), " \u20BD"] })] }));
9
- //# sourceMappingURL=renderInsuranceSumMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,yEAAsE;AAE/D,MAAM,uBAAuB,GAAG,CAAC,GAAY,EAAE,UAAmB,EAAE,EAAE,CAC3E,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAClB,iCAAK,SAAS,EAAC,4EAA4E,aACxF,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EACjE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,IAC9E,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AANE,QAAA,uBAAuB,2BAMzB;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CACrD,iCAAK,SAAS,EAAC,iJAAiJ,aAC9J,uBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,kCAAM,SAAS,EAAC,0DAA0D,aACvE,IAAA,yCAAmB,EAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eACzB,IACH,CACP,CAAC"}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { Text } from '../../ui-kit/Text/Text.js';
3
- export const renderLunchHour = (lunchHour) => {
4
- const hasLunch = /\d+/gi.test(lunchHour);
5
- return hasLunch ? (_jsxs("div", { className: "flex flex-row w-full pb-2xs", children: [_jsx("div", { className: "pr-s", children: _jsx(Text, { size: "text-l", color: "text-error", children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }) }), _jsx("div", { children: _jsx(Text, { size: "text-l", color: "text-error", children: lunchHour }) })] })) : (_jsx("div", { className: "items-center w-full pb-2xs", children: _jsx("div", { children: _jsx(Text, { size: "text-m", color: "text-primary-main", font: "font-light", children: lunchHour }) }) }));
6
- };
7
- //# sourceMappingURL=renderLunchHour.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderLunchHour.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderLunchHour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEzC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,eAAK,SAAS,EAAC,6BAA6B,aAC1C,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,2DAE/B,GACH,EACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,YACnC,SAAS,GACL,GACH,IACF,CACP,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,4BAA4B,YACzC,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,YAAY,YAC5D,SAAS,GACL,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type PictureTextContent } from './PictureTextContent';
3
- export interface PictureTextProps extends PictureTextContent, UniBlockProps {
4
- }
5
- export declare const PictureText: import("@redneckz/uni-jsx").UNIComponent<PictureTextProps, any, any>;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import '../../setup-fixture';
3
- import { type PictureTextContent } from './PictureTextContent';
4
- export declare const PICTURE_TEXT: PictureTextContent;
5
- export declare const INSURANCE_TEXT: PictureTextContent;
6
- export declare const BENEFITS_HTML_TEXT: PictureTextContent;
7
- declare const _default: {
8
- default: JSX.Element;
9
- secondary: JSX.Element;
10
- 'insurance sum': JSX.Element;
11
- 'insurance monthPay': JSX.Element;
12
- 'benefits as html': JSX.Element;
13
- };
14
- export default _default;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import '../../setup-fixture';
3
- import { type PictureTextContent } from './PictureTextContent';
4
- export declare const PICTURE_TEXT: PictureTextContent;
5
- export declare const INSURANCE_TEXT: PictureTextContent;
6
- export declare const BENEFITS_HTML_TEXT: PictureTextContent;
7
- declare const _default: {
8
- default: JSX.Element;
9
- secondary: JSX.Element;
10
- 'insurance sum': JSX.Element;
11
- 'insurance monthPay': JSX.Element;
12
- 'benefits as html': JSX.Element;
13
- };
14
- export default _default;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile.js';
4
- import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
- import { renderInsuranceSumMonth } from './renderInsuranceSumMonth.js';
6
- export 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)) }) })));
7
- //# sourceMappingURL=PictureText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIpE,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,aAAa,EACrB,GAAG,EACH,UAAU,EACV,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,KAAC,eAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,OAAO,EACtB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,EACtB,YAAY,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,KAC1E,IAAI,YAEP,uBAAuB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,GACzC,GACL,CAChB,CACF,CAAC"}
@@ -1,11 +0,0 @@
1
- import { type UniBlockContent } from '../../model/JSXBlock';
2
- import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
3
- /**
4
- * @title Картинка с текстом
5
- */
6
- export declare type PictureTextContent = UniBlockContent & BaseProductTileContent & {
7
- /** @title Ежемесячный лимит */
8
- monthLimit?: number;
9
- /** @title Страховая сумма */
10
- sum?: number;
11
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=PictureTextContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictureTextContent.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureTextContent.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const renderInsuranceSumMonth: (sum?: number, monthLimit?: number) => JSX.Element | null;
@@ -1,6 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { Text } from '../../ui-kit/Text/Text.js';
3
- import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat.js';
4
- export 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;
5
- 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"] })] }));
6
- //# sourceMappingURL=renderInsuranceSumMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAY,EAAE,UAAmB,EAAE,EAAE,CAC3E,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAClB,eAAK,SAAS,EAAC,4EAA4E,aACxF,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EACjE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,IAC9E,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CACrD,eAAK,SAAS,EAAC,iJAAiJ,aAC9J,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,gBAAM,SAAS,EAAC,0DAA0D,aACvE,mBAAmB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eACzB,IACH,CACP,CAAC"}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type PictureTextContent } from './PictureTextContent';
3
- export interface PictureTextProps extends PictureTextContent, UniBlockProps {
4
- }
5
- export declare const PictureText: import("@redneckz/uni-jsx").UNIComponent<PictureTextProps, any, any>;
@@ -1,11 +0,0 @@
1
- import { type UniBlockContent } from '../../model/JSXBlock';
2
- import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
3
- /**
4
- * @title Картинка с текстом
5
- */
6
- export declare type PictureTextContent = UniBlockContent & BaseProductTileContent & {
7
- /** @title Ежемесячный лимит */
8
- monthLimit?: number;
9
- /** @title Страховая сумма */
10
- sum?: number;
11
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderInsuranceSumMonth: (sum?: number, monthLimit?: number) => JSX.Element | null;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderLunchHour = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const Text_1 = require("../../ui-kit/Text/Text");
5
- const renderLunchHour = (lunchHour) => {
6
- const hasLunch = /\d+/gi.test(lunchHour);
7
- return hasLunch ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row w-full pb-2xs", children: [(0, jsx_runtime_1.jsx)("div", { className: "pr-s", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-error", children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-error", children: lunchHour }) })] })) : ((0, jsx_runtime_1.jsx)("div", { className: "items-center w-full pb-2xs", children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: "text-primary-main", font: "font-light", children: lunchHour }) }) }));
8
- };
9
- exports.renderLunchHour = renderLunchHour;
10
- //# sourceMappingURL=renderLunchHour.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderLunchHour.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderLunchHour.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAEvC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEzC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,2DAE/B,GACH,EACN,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,YACnC,SAAS,GACL,GACH,IACF,CACP,CAAC,CAAC,CAAC,CACF,gCAAK,SAAS,EAAC,4BAA4B,YACzC,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,YAAY,YAC5D,SAAS,GACL,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,eAAe,mBAyB1B"}
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type PictureTextContent } from './PictureTextContent';
3
- export interface PictureTextProps extends PictureTextContent, UniBlockProps {
4
- }
5
- export declare const PictureText: import("@redneckz/uni-jsx").UNIComponent<PictureTextProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.PictureText = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
6
- const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
- const renderInsuranceSumMonth_1 = require("./renderInsuranceSumMonth");
8
- exports.PictureText = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isFullWidthTitle: true, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: (0, renderInsuranceSumMonth_1.renderInsuranceSumMonth)(Number(sum), Number(monthLimit)) }) })));
9
- //# sourceMappingURL=PictureText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AAEzD,uEAAoE;AAIvD,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,aAAa,EACrB,GAAG,EACH,UAAU,EACV,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,OAAO,EACtB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,EACtB,YAAY,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,KAC1E,IAAI,YAEP,IAAA,iDAAuB,EAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,GACzC,GACL,CAChB,CACF,CAAC"}
@@ -1,11 +0,0 @@
1
- import { type UniBlockContent } from '../../model/JSXBlock';
2
- import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
3
- /**
4
- * @title Картинка с текстом
5
- */
6
- export declare type PictureTextContent = UniBlockContent & BaseProductTileContent & {
7
- /** @title Ежемесячный лимит */
8
- monthLimit?: number;
9
- /** @title Страховая сумма */
10
- sum?: number;
11
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictureTextContent.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureTextContent.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderInsuranceSumMonth: (sum?: number, monthLimit?: number) => JSX.Element | null;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderInsuranceSumMonth = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const Text_1 = require("../../ui-kit/Text/Text");
5
- const toLocalNumberFormat_1 = require("../../utils/toLocalNumberFormat");
6
- const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? ((0, jsx_runtime_1.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;
7
- exports.renderInsuranceSumMonth = renderInsuranceSumMonth;
8
- const renderValueBlock = (title, value = 0) => ((0, jsx_runtime_1.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: [(0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: title }), (0, jsx_runtime_1.jsxs)("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [(0, toLocalNumberFormat_1.toLocalNumberFormat)(2)(value), " \u20BD"] })] }));
9
- //# sourceMappingURL=renderInsuranceSumMonth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,yEAAsE;AAE/D,MAAM,uBAAuB,GAAG,CAAC,GAAY,EAAE,UAAmB,EAAE,EAAE,CAC3E,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAClB,iCAAK,SAAS,EAAC,4EAA4E,aACxF,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EACjE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,IAC9E,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AANE,QAAA,uBAAuB,2BAMzB;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CACrD,iCAAK,SAAS,EAAC,iJAAiJ,aAC9J,uBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,kCAAM,SAAS,EAAC,0DAA0D,aACvE,IAAA,yCAAmB,EAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eACzB,IACH,CACP,CAAC"}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderLunchHour: (lunchHour: string) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { Text } from '../../ui-kit/Text/Text.js';
3
- export const renderLunchHour = (lunchHour) => {
4
- const hasLunch = /\d+/gi.test(lunchHour);
5
- return hasLunch ? (_jsxs("div", { className: "flex flex-row w-full pb-2xs", children: [_jsx("div", { className: "pr-s", children: _jsx(Text, { size: "text-l", color: "text-error", children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }) }), _jsx("div", { children: _jsx(Text, { size: "text-l", color: "text-error", children: lunchHour }) })] })) : (_jsx("div", { className: "items-center w-full pb-2xs", children: _jsx("div", { children: _jsx(Text, { size: "text-m", color: "text-primary-main", font: "font-light", children: lunchHour }) }) }));
6
- };
7
- //# sourceMappingURL=renderLunchHour.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderLunchHour.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderLunchHour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAEzC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,eAAK,SAAS,EAAC,6BAA6B,aAC1C,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,2DAE/B,GACH,EACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,YAAY,YACnC,SAAS,GACL,GACH,IACF,CACP,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,4BAA4B,YACzC,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,YAAY,YAC5D,SAAS,GACL,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../model/JSXBlock';
2
- import { type PictureTextContent } from './PictureTextContent';
3
- export interface PictureTextProps extends PictureTextContent, UniBlockProps {
4
- }
5
- export declare const PictureText: import("@redneckz/uni-jsx").UNIComponent<PictureTextProps, any, any>;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile.js';
4
- import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
5
- import { renderInsuranceSumMonth } from './renderInsuranceSumMonth.js';
6
- export 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)) }) })));
7
- //# sourceMappingURL=PictureText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAIpE,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EACC,SAAS,EACT,OAAO,EACP,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,aAAa,EACrB,GAAG,EACH,UAAU,EACV,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,KAAC,eAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,OAAO,EACtB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,EACtB,YAAY,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,KAC1E,IAAI,YAEP,uBAAuB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,GACzC,GACL,CAChB,CACF,CAAC"}