@redneckz/wildless-cms-uni-blocks 0.14.28 → 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 (625) hide show
  1. package/bin/migration-scripts/0.14.28.js +28 -0
  2. package/bin/migration-scripts/0.14.29.js +73 -0
  3. package/bin/migration-scripts/0.14.30.js +54 -0
  4. package/bin/migration-scripts/0.14.4.js +4 -4
  5. package/bin/utils.js +54 -7
  6. package/bundle/blocks.schema.json +1 -1
  7. package/bundle/bundle.umd.js +219 -133
  8. package/bundle/bundle.umd.min.js +1 -1
  9. package/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  10. package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  11. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  12. package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
  13. package/bundle/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  14. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  15. package/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  16. package/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  17. package/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  18. package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  19. package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  20. package/bundle/hooks/useResizeObserver.d.ts +3 -0
  21. package/bundle/model/HeadlineType.d.ts +0 -8
  22. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  23. package/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
  24. package/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  25. package/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
  26. package/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
  27. package/dist/components/Blocks.js +0 -6
  28. package/dist/components/Blocks.js.map +1 -1
  29. package/dist/components/Blocks.mobile.js +0 -4
  30. package/dist/components/Blocks.mobile.js.map +1 -1
  31. package/dist/components/Calculator/CreditCalculatorForm.js +3 -2
  32. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  33. package/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  34. package/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
  35. package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  36. package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  37. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  38. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  39. package/dist/components/Carousel/Carousel.js +1 -1
  40. package/dist/components/Carousel/Carousel.js.map +1 -1
  41. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  42. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  43. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  44. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  45. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  46. package/dist/components/Depository/Depository.js +12 -3
  47. package/dist/components/Depository/Depository.js.map +1 -1
  48. package/dist/components/Depository/DepositoryFilter.js +1 -1
  49. package/dist/components/Depository/DepositoryFilter.js.map +1 -1
  50. package/dist/components/Depository/DepositoryItem.js +1 -1
  51. package/dist/components/Depository/DepositoryItem.js.map +1 -1
  52. package/dist/components/Depository/useDepository.js +11 -1
  53. package/dist/components/Depository/useDepository.js.map +1 -1
  54. package/dist/components/Footer/SocialMedia.js +2 -2
  55. package/dist/components/Footer/SocialMedia.js.map +1 -1
  56. package/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
  57. package/dist/components/Headline/headlineVersionStyles.js +1 -12
  58. package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  59. package/dist/components/OfficesAtmsMap/Badge.js +2 -2
  60. package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  61. package/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  62. package/dist/components/OfficesAtmsMap/CardCell.js +6 -4
  63. package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  64. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  65. package/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  66. package/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
  67. package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  68. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  69. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
  70. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  71. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  72. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
  73. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  74. package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  75. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  76. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  77. package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  78. package/dist/components/StepsBlock/StepsBlock.js +3 -2
  79. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  80. package/dist/hooks/useResizeObserver.d.ts +3 -0
  81. package/dist/hooks/useResizeObserver.js +22 -0
  82. package/dist/hooks/useResizeObserver.js.map +1 -0
  83. package/dist/model/HeadlineType.d.ts +0 -8
  84. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  85. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  86. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  87. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  88. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  89. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  90. package/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  91. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  92. package/dist/ui-kit/Foldable/FoldableSection.js +5 -4
  93. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  94. package/dist/ui-kit/List/List.js +1 -1
  95. package/dist/ui-kit/List/List.js.map +1 -1
  96. package/dist/ui-kit/List/ListItem.js +1 -1
  97. package/dist/ui-kit/List/ListItem.js.map +1 -1
  98. package/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
  99. package/dist/ui-kit/PriceList/PriceList.js +9 -0
  100. package/dist/ui-kit/PriceList/PriceList.js.map +1 -0
  101. package/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  102. package/{mobile/dist/components/PictureText/PictureTextContent.js → dist/ui-kit/PriceList/PriceListProps.js} +1 -1
  103. package/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
  104. package/dist/ui-kit/Select/Select.js +1 -0
  105. package/dist/ui-kit/Select/Select.js.map +1 -1
  106. package/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
  107. package/dist/ui-kit/Select/SelectPopup.js +2 -2
  108. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  109. package/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
  110. package/dist/ui-kit/Select/useSelectPopup.js +2 -2
  111. package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  112. package/lib/common.css +1 -1
  113. package/lib/components/Blocks.js +0 -6
  114. package/lib/components/Blocks.js.map +1 -1
  115. package/lib/components/Blocks.mobile.js +0 -4
  116. package/lib/components/Blocks.mobile.js.map +1 -1
  117. package/lib/components/Calculator/CreditCalculatorForm.js +3 -2
  118. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  119. package/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  120. package/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
  121. package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  122. package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  123. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  124. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  125. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
  126. package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -2
  127. package/lib/components/Carousel/Carousel.js +1 -1
  128. package/lib/components/Carousel/Carousel.js.map +1 -1
  129. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  130. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  131. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
  132. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  133. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  134. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  135. package/lib/components/Depository/Depository.js +12 -3
  136. package/lib/components/Depository/Depository.js.map +1 -1
  137. package/lib/components/Depository/DepositoryFilter.js +1 -1
  138. package/lib/components/Depository/DepositoryFilter.js.map +1 -1
  139. package/lib/components/Depository/DepositoryItem.js +1 -1
  140. package/lib/components/Depository/DepositoryItem.js.map +1 -1
  141. package/lib/components/Depository/useDepository.js +11 -1
  142. package/lib/components/Depository/useDepository.js.map +1 -1
  143. package/lib/components/Footer/SocialMedia.js +2 -2
  144. package/lib/components/Footer/SocialMedia.js.map +1 -1
  145. package/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
  146. package/lib/components/Headline/headlineVersionStyles.js +0 -11
  147. package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  148. package/lib/components/OfficesAtmsMap/Badge.js +2 -2
  149. package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  150. package/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  151. package/lib/components/OfficesAtmsMap/CardCell.js +6 -4
  152. package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  153. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  154. package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  155. package/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
  156. package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  157. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  158. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
  159. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  160. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  161. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
  162. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  163. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  164. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  165. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  166. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
  167. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
  168. package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +1 -0
  169. package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  170. package/lib/components/StepsBlock/StepsBlock.js +3 -2
  171. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  172. package/lib/hooks/useResizeObserver.d.ts +3 -0
  173. package/lib/hooks/useResizeObserver.js +19 -0
  174. package/lib/hooks/useResizeObserver.js.map +1 -0
  175. package/lib/model/HeadlineType.d.ts +0 -8
  176. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  177. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  178. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  179. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  180. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  181. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  182. package/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  183. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  184. package/lib/ui-kit/Foldable/FoldableSection.js +6 -5
  185. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  186. package/lib/ui-kit/List/List.js +1 -1
  187. package/lib/ui-kit/List/List.js.map +1 -1
  188. package/lib/ui-kit/List/ListItem.js +1 -1
  189. package/lib/ui-kit/List/ListItem.js.map +1 -1
  190. package/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
  191. package/lib/ui-kit/PriceList/PriceList.fixture.d.ts +6 -0
  192. package/lib/ui-kit/PriceList/PriceList.js +7 -0
  193. package/lib/ui-kit/PriceList/PriceList.js.map +1 -0
  194. package/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  195. package/lib/ui-kit/PriceList/PriceListProps.js +2 -0
  196. package/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
  197. package/lib/ui-kit/Select/Select.js +1 -0
  198. package/lib/ui-kit/Select/Select.js.map +1 -1
  199. package/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
  200. package/lib/ui-kit/Select/SelectPopup.js +2 -2
  201. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  202. package/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
  203. package/lib/ui-kit/Select/useSelectPopup.js +2 -2
  204. package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  205. package/mobile/bundle/bundle.umd.js +88 -88
  206. package/mobile/bundle/bundle.umd.min.js +1 -1
  207. package/mobile/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  208. package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  209. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  210. package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
  211. package/mobile/bundle/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  212. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  213. package/mobile/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  214. package/mobile/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  215. package/mobile/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  216. package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  217. package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  218. package/mobile/bundle/hooks/useResizeObserver.d.ts +3 -0
  219. package/mobile/bundle/model/HeadlineType.d.ts +0 -8
  220. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  221. package/mobile/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
  222. package/mobile/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  223. package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
  224. package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
  225. package/mobile/dist/components/Blocks.js +0 -4
  226. package/mobile/dist/components/Blocks.js.map +1 -1
  227. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -2
  228. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  229. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  230. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
  231. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  232. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  233. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  234. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  235. package/mobile/dist/components/Carousel/Carousel.js +1 -1
  236. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  237. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  238. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  239. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  240. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  241. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  242. package/mobile/dist/components/Depository/Depository.js +12 -3
  243. package/mobile/dist/components/Depository/Depository.js.map +1 -1
  244. package/mobile/dist/components/Depository/DepositoryFilter.js +1 -1
  245. package/mobile/dist/components/Depository/DepositoryFilter.js.map +1 -1
  246. package/mobile/dist/components/Depository/DepositoryItem.js +1 -1
  247. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
  248. package/mobile/dist/components/Depository/useDepository.js +11 -1
  249. package/mobile/dist/components/Depository/useDepository.js.map +1 -1
  250. package/mobile/dist/components/Footer/SocialMedia.js +2 -2
  251. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  252. package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
  253. package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -12
  254. package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
  255. package/mobile/dist/components/OfficesAtmsMap/Badge.js +2 -2
  256. package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
  257. package/mobile/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  258. package/mobile/dist/components/OfficesAtmsMap/CardCell.js +6 -4
  259. package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
  260. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  261. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  262. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
  263. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  264. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  265. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
  266. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  267. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  268. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
  269. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  270. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  271. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  272. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  273. package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  274. package/mobile/dist/hooks/useResizeObserver.d.ts +3 -0
  275. package/mobile/dist/hooks/useResizeObserver.js +22 -0
  276. package/mobile/dist/hooks/useResizeObserver.js.map +1 -0
  277. package/mobile/dist/model/HeadlineType.d.ts +0 -8
  278. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  279. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  280. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  281. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  282. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  283. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  284. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  285. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  286. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +5 -4
  287. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  288. package/mobile/dist/ui-kit/List/List.js +1 -1
  289. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  290. package/mobile/dist/ui-kit/List/ListItem.js +1 -1
  291. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  292. package/mobile/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
  293. package/mobile/dist/ui-kit/PriceList/PriceList.js +9 -0
  294. package/mobile/dist/ui-kit/PriceList/PriceList.js.map +1 -0
  295. package/mobile/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  296. package/{dist/components/PictureText/PictureTextContent.js → mobile/dist/ui-kit/PriceList/PriceListProps.js} +1 -1
  297. package/mobile/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
  298. package/mobile/dist/ui-kit/Select/Select.js +1 -0
  299. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  300. package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
  301. package/mobile/dist/ui-kit/Select/SelectPopup.js +2 -2
  302. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  303. package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
  304. package/mobile/dist/ui-kit/Select/useSelectPopup.js +2 -2
  305. package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  306. package/mobile/lib/common.css +1 -1
  307. package/mobile/lib/components/Blocks.js +0 -4
  308. package/mobile/lib/components/Blocks.js.map +1 -1
  309. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +3 -2
  310. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  311. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
  312. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
  313. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  314. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
  315. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  316. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  317. package/mobile/lib/components/Carousel/Carousel.js +1 -1
  318. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  319. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  320. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  321. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
  322. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  323. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
  324. package/mobile/lib/components/Depository/Depository.js +12 -3
  325. package/mobile/lib/components/Depository/Depository.js.map +1 -1
  326. package/mobile/lib/components/Depository/DepositoryFilter.js +1 -1
  327. package/mobile/lib/components/Depository/DepositoryFilter.js.map +1 -1
  328. package/mobile/lib/components/Depository/DepositoryItem.js +1 -1
  329. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
  330. package/mobile/lib/components/Depository/useDepository.js +11 -1
  331. package/mobile/lib/components/Depository/useDepository.js.map +1 -1
  332. package/mobile/lib/components/Footer/SocialMedia.js +2 -2
  333. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  334. package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
  335. package/mobile/lib/components/Headline/headlineVersionStyles.js +0 -11
  336. package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
  337. package/mobile/lib/components/OfficesAtmsMap/Badge.js +2 -2
  338. package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
  339. package/mobile/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
  340. package/mobile/lib/components/OfficesAtmsMap/CardCell.js +6 -4
  341. package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
  342. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
  343. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
  344. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
  345. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
  346. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
  347. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
  348. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
  349. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
  350. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
  351. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
  352. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
  353. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
  354. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  355. package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
  356. package/mobile/lib/hooks/useResizeObserver.d.ts +3 -0
  357. package/mobile/lib/hooks/useResizeObserver.js +19 -0
  358. package/mobile/lib/hooks/useResizeObserver.js.map +1 -0
  359. package/mobile/lib/model/HeadlineType.d.ts +0 -8
  360. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
  361. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  362. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
  363. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  364. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  365. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  366. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  367. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  368. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +6 -5
  369. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  370. package/mobile/lib/ui-kit/List/List.js +1 -1
  371. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  372. package/mobile/lib/ui-kit/List/ListItem.js +1 -1
  373. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  374. package/mobile/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
  375. package/mobile/lib/ui-kit/PriceList/PriceList.js +7 -0
  376. package/mobile/lib/ui-kit/PriceList/PriceList.js.map +1 -0
  377. package/mobile/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
  378. package/mobile/lib/ui-kit/PriceList/PriceListProps.js +2 -0
  379. package/mobile/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
  380. package/mobile/lib/ui-kit/Select/Select.js +1 -0
  381. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  382. package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
  383. package/mobile/lib/ui-kit/Select/SelectPopup.js +2 -2
  384. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  385. package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
  386. package/mobile/lib/ui-kit/Select/useSelectPopup.js +2 -2
  387. package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  388. package/mobile/src/common.css +1 -0
  389. package/mobile/src/components/Blocks.ts +0 -4
  390. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
  391. package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
  392. package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
  393. package/mobile/src/components/Carousel/Carousel.tsx +1 -1
  394. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
  395. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
  396. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
  397. package/mobile/src/components/Depository/Depository.tsx +25 -8
  398. package/mobile/src/components/Depository/DepositoryFilter.tsx +1 -1
  399. package/mobile/src/components/Depository/DepositoryItem.tsx +6 -2
  400. package/mobile/src/components/Depository/useDepository.ts +15 -6
  401. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  402. package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -13
  403. package/mobile/src/components/OfficesAtmsMap/Badge.tsx +2 -2
  404. package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
  405. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
  406. package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
  407. package/mobile/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
  408. package/mobile/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
  409. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
  410. package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
  411. package/mobile/src/hooks/useResizeObserver.ts +28 -0
  412. package/mobile/src/model/HeadlineType.ts +0 -10
  413. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
  414. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
  415. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  416. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  417. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
  418. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
  419. package/mobile/src/ui-kit/List/List.tsx +1 -1
  420. package/mobile/src/ui-kit/List/ListItem.tsx +15 -17
  421. package/mobile/src/ui-kit/PriceList/PriceList.tsx +25 -0
  422. package/mobile/src/ui-kit/PriceList/PriceListProps.ts +11 -0
  423. package/mobile/src/ui-kit/Select/Select.tsx +1 -0
  424. package/mobile/src/ui-kit/Select/SelectPopup.tsx +41 -34
  425. package/mobile/src/ui-kit/Select/useSelectPopup.tsx +2 -0
  426. package/package.json +1 -1
  427. package/src/common.css +1 -0
  428. package/src/components/Blocks.mobile.ts +0 -4
  429. package/src/components/Blocks.ts +0 -6
  430. package/src/components/Calculator/Calculator.fixture.mobile.tsx +15 -0
  431. package/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
  432. package/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
  433. package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
  434. package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -34
  435. package/src/components/Carousel/Carousel.fixture.tsx +2 -52
  436. package/src/components/Carousel/Carousel.tsx +1 -1
  437. package/src/components/CarouselCard/CarouselCard.tsx +1 -1
  438. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +44 -0
  439. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
  440. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
  441. package/src/components/Depository/Depository.tsx +25 -8
  442. package/src/components/Depository/DepositoryFilter.tsx +1 -1
  443. package/src/components/Depository/DepositoryItem.tsx +6 -2
  444. package/src/components/Depository/useDepository.ts +15 -6
  445. package/src/components/Footer/SocialMedia.tsx +2 -2
  446. package/src/components/Headline/headlineVersionStyles.ts +1 -13
  447. package/src/components/OfficesAtmsMap/Badge.tsx +2 -2
  448. package/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
  449. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
  450. package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
  451. package/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
  452. package/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
  453. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
  454. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +42 -0
  455. package/src/components/ProductBlock/ProductBlock.fixture.tsx +42 -0
  456. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +15 -0
  457. package/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
  458. package/src/components/StepsBlock/StepsBlock.tsx +7 -4
  459. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +4 -12
  460. package/src/hooks/useResizeObserver.ts +28 -0
  461. package/src/model/HeadlineType.ts +0 -10
  462. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
  463. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
  464. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
  465. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  466. package/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
  467. package/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
  468. package/src/ui-kit/List/List.tsx +1 -1
  469. package/src/ui-kit/List/ListItem.tsx +15 -17
  470. package/src/ui-kit/PriceList/PriceList.fixture.tsx +16 -0
  471. package/src/ui-kit/PriceList/PriceList.tsx +25 -0
  472. package/src/ui-kit/PriceList/PriceListProps.ts +11 -0
  473. package/src/ui-kit/Select/Select.tsx +1 -0
  474. package/src/ui-kit/Select/SelectPopup.tsx +41 -34
  475. package/src/ui-kit/Select/useSelectPopup.tsx +2 -0
  476. package/tailwind.config.cjs +23 -20
  477. package/bin/migration-scripts/0.14.12.js +0 -34
  478. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  479. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  480. package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  481. package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  482. package/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  483. package/bundle/components/PictureText/PictureText.d.ts +0 -5
  484. package/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
  485. package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  486. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  487. package/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
  488. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  489. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  490. package/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  491. package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  492. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  493. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
  494. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  495. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  496. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  497. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  498. package/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  499. package/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
  500. package/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  501. package/dist/components/PictureText/PictureText.d.ts +0 -5
  502. package/dist/components/PictureText/PictureText.js +0 -9
  503. package/dist/components/PictureText/PictureText.js.map +0 -1
  504. package/dist/components/PictureText/PictureTextContent.d.ts +0 -11
  505. package/dist/components/PictureText/PictureTextContent.js.map +0 -1
  506. package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  507. package/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
  508. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  509. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  510. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +0 -13
  511. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +0 -13
  512. package/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
  513. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  514. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  515. package/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  516. package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  517. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  518. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +0 -8
  519. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
  520. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  521. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  522. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  523. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  524. package/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  525. package/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
  526. package/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  527. package/lib/components/PictureText/PictureText.d.ts +0 -5
  528. package/lib/components/PictureText/PictureText.fixture.d.ts +0 -14
  529. package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +0 -14
  530. package/lib/components/PictureText/PictureText.js +0 -7
  531. package/lib/components/PictureText/PictureText.js.map +0 -1
  532. package/lib/components/PictureText/PictureTextContent.d.ts +0 -11
  533. package/lib/components/PictureText/PictureTextContent.js +0 -2
  534. package/lib/components/PictureText/PictureTextContent.js.map +0 -1
  535. package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -1
  536. package/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
  537. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  538. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  539. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  540. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  541. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  542. package/mobile/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  543. package/mobile/bundle/components/PictureText/PictureText.d.ts +0 -5
  544. package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
  545. package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  546. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  547. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
  548. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  549. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  550. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  551. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  552. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  553. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
  554. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  555. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  556. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  557. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  558. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  559. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
  560. package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  561. package/mobile/dist/components/PictureText/PictureText.d.ts +0 -5
  562. package/mobile/dist/components/PictureText/PictureText.js +0 -9
  563. package/mobile/dist/components/PictureText/PictureText.js.map +0 -1
  564. package/mobile/dist/components/PictureText/PictureTextContent.d.ts +0 -11
  565. package/mobile/dist/components/PictureText/PictureTextContent.js.map +0 -1
  566. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  567. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
  568. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  569. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
  570. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
  571. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
  572. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
  573. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
  574. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
  575. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
  576. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
  577. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
  578. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
  579. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
  580. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
  581. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
  582. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
  583. package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
  584. package/mobile/lib/components/PictureText/PictureText.d.ts +0 -5
  585. package/mobile/lib/components/PictureText/PictureText.js +0 -7
  586. package/mobile/lib/components/PictureText/PictureText.js.map +0 -1
  587. package/mobile/lib/components/PictureText/PictureTextContent.d.ts +0 -11
  588. package/mobile/lib/components/PictureText/PictureTextContent.js +0 -2
  589. package/mobile/lib/components/PictureText/PictureTextContent.js.map +0 -1
  590. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
  591. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
  592. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
  593. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
  594. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
  595. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
  596. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
  597. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
  598. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
  599. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
  600. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
  601. package/mobile/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
  602. package/mobile/src/components/PictureText/PictureText.example.json +0 -40
  603. package/mobile/src/components/PictureText/PictureText.tsx +0 -36
  604. package/mobile/src/components/PictureText/PictureText.ui.json +0 -23
  605. package/mobile/src/components/PictureText/PictureTextContent.ts +0 -13
  606. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
  607. package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
  608. package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +0 -92
  609. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +0 -96
  610. package/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
  611. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
  612. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
  613. package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
  614. package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +0 -26
  615. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
  616. package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
  617. package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
  618. package/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
  619. package/src/components/PictureText/PictureText.example.json +0 -40
  620. package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -116
  621. package/src/components/PictureText/PictureText.fixture.tsx +0 -130
  622. package/src/components/PictureText/PictureText.tsx +0 -36
  623. package/src/components/PictureText/PictureText.ui.json +0 -23
  624. package/src/components/PictureText/PictureTextContent.ts +0 -13
  625. package/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
@@ -4,5 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const DatePicker_1 = require("../../ui-kit/DatePicker/DatePicker");
6
6
  const SearchInput_1 = require("../../ui-kit/SearchDialog/SearchInput");
7
- exports.DepositoryFilter = (0, uni_jsx_1.JSX)(({ field, onClearFilter, filtrationState }) => ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 mb-3xl space-x-xl", children: [(0, jsx_runtime_1.jsx)(SearchInput_1.SearchInput, { className: "col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), (0, jsx_runtime_1.jsx)(DatePicker_1.DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u043E\u0442", maxDate: filtrationState.endDate, ...field('startDate') }), (0, jsx_runtime_1.jsx)(DatePicker_1.DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u0434\u043E", minDate: filtrationState.startDate, ...field('endDate') }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-2 mt-auto", children: (0, jsx_runtime_1.jsx)("button", { className: "px-m py-s rounded-md bg-main-gray text-green cursor-pointer w-full", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }) })] })));
7
+ exports.DepositoryFilter = (0, uni_jsx_1.JSX)(({ field, onClearFilter, filtrationState }) => ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 mb-3xl space-x-xl", children: [(0, jsx_runtime_1.jsx)(SearchInput_1.SearchInput, { className: "col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), (0, jsx_runtime_1.jsx)(DatePicker_1.DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u043E\u0442", maxDate: filtrationState.endDate, ...field('startDate') }), (0, jsx_runtime_1.jsx)(DatePicker_1.DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u0434\u043E", minDate: filtrationState.startDate, ...field('endDate') }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-2 mt-auto", children: (0, jsx_runtime_1.jsx)("button", { className: "px-m py-s rounded-md bg-main-gray text-green hover:text-white hover:bg-primary-hover active:bg-primary-active cursor-pointer w-full", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }) })] })));
8
8
  //# sourceMappingURL=DepositoryFilter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositoryFilter.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryFilter.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mEAAgE;AAChE,uEAAoE;AASvD,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAC7C,iCAAK,SAAS,EAAC,qCAAqC,aAClD,uBAAC,yBAAW,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAC,gCAAO,KAAK,KAAK,CAAC,OAAO,CAAC,GAAI,EACtF,uBAAC,uBAAU,IACT,SAAS,EAAC,YAAY,EACtB,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,OAAO,KAC5B,KAAK,CAAC,WAAW,CAAC,GACtB,EACF,uBAAC,uBAAU,IACT,SAAS,EAAC,YAAY,EACtB,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,SAAS,KAC9B,KAAK,CAAC,SAAS,CAAC,GACpB,EACF,gCAAK,SAAS,EAAC,oBAAoB,YACjC,mCACE,SAAS,EAAC,oEAAoE,EAC9E,OAAO,EAAE,aAAa,sGAGf,GACL,IACF,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"DepositoryFilter.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryFilter.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mEAAgE;AAChE,uEAAoE;AASvD,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAC7C,iCAAK,SAAS,EAAC,qCAAqC,aAClD,uBAAC,yBAAW,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAC,gCAAO,KAAK,KAAK,CAAC,OAAO,CAAC,GAAI,EACtF,uBAAC,uBAAU,IACT,SAAS,EAAC,YAAY,EACtB,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,OAAO,KAC5B,KAAK,CAAC,WAAW,CAAC,GACtB,EACF,uBAAC,uBAAU,IACT,SAAS,EAAC,YAAY,EACtB,KAAK,EAAC,mDAAW,EACjB,OAAO,EAAE,eAAe,CAAC,SAAS,KAC9B,KAAK,CAAC,SAAS,CAAC,GACpB,EACF,gCAAK,SAAS,EAAC,oBAAoB,YACjC,mCACE,SAAS,EAAC,qIAAqI,EAC/I,OAAO,EAAE,aAAa,sGAGf,GACL,IACF,CACP,CACF,CAAC"}
@@ -7,7 +7,7 @@ const formatDate_1 = require("../../utils/formatDate");
7
7
  const DepositoryItem = ({ title, timestamp, publicId }) => {
8
8
  const link = (0, useLink_1.useLink)({ basePath: '/' });
9
9
  const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
10
- return ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-2 text-m", children: timestamp ? (0, jsx_runtime_1.jsx)(Text_1.Text, { children: (0, formatDate_1.formatDate)(timestamp) }) : null }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: (0, jsx_runtime_1.jsx)("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-2", children: timestamp ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", "font-weight": "font-light", children: (0, formatDate_1.formatDate)(timestamp) })) : null }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: (0, jsx_runtime_1.jsx)("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
11
11
  };
12
12
  exports.DepositoryItem = DepositoryItem;
13
13
  //# sourceMappingURL=DepositoryItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,uDAAoD;AAG7C,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACnF,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,EAAE,QAAQ,EA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G,IAAI,EAAE,IAAI,EAAE,QAAQ,sBAAY,4CAAS,YACzC,KAAK,GACJ,GACA,KAZ6E,QAAQ,CAavF,CACP,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,cAAc,kBAoBzB"}
@@ -3,8 +3,18 @@ exports.useDepository = void 0;
3
3
  const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
4
4
  const fetchJSON_1 = require("../../utils/fetchJSON");
5
5
  const formatDate_1 = require("../../utils/formatDate");
6
+ const DEPOSITARY_URL = '/api/v1/depository';
6
7
  const useDepository = ({ size, page, query, startDate, endDate }) => {
7
- const { data } = (0, useAsyncData_1.useAsyncData)(`/api/v1/depository?page=${page}&size=${size}&query=${query}&timestampStart=${startDate ? (0, formatDate_1.formatDate)(startDate, true) : ''}&timestampEnd=${endDate ? (0, formatDate_1.formatDate)(endDate, true) : ''}`, fetchJSON_1.fetchJSONUnsafe);
8
+ const formatStartDate = startDate ? (0, formatDate_1.formatDate)(startDate, true) : '';
9
+ const formatEndDate = endDate ? (0, formatDate_1.formatDate)(endDate, true) : '';
10
+ const searchParams = new URLSearchParams(DEPOSITARY_URL);
11
+ searchParams.set('page', String(page));
12
+ searchParams.set('size', String(size));
13
+ searchParams.set('query', query);
14
+ searchParams.set('startDate', formatStartDate);
15
+ searchParams.set('endDate', formatEndDate);
16
+ const queryString = `?${searchParams.toString()}`;
17
+ const { data } = (0, useAsyncData_1.useAsyncData)(DEPOSITARY_URL + queryString, fetchJSON_1.fetchJSONUnsafe);
8
18
  return { items: data?.content, totalPages: data?.totalPages };
9
19
  };
10
20
  exports.useDepository = useDepository;
@@ -1 +1 @@
1
- {"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAwD;AACxD,uDAAoD;AAoB7C,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,O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vC,YAAY,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACjC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAC/C,YAAY,CAAC,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAE3C,MAAM,WAAW,GAAG,IAAI,YAAY,CAAC,QAAQ,EAAE,EAAE,CAAC;IAElD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAiB,cAAc,GAAG,WAAW,EAAE,2BAAe,CAAC,CAAC;IAE7F,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAChE,CAAC,CAAC;AAjBW,QAAA,aAAa,iBAiBxB"}
@@ -22,12 +22,12 @@ exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className = '', media, showButtonTex
22
22
  ..._,
23
23
  ...buttonText,
24
24
  icon: { ...iconCustom, iconVersion: 'color' },
25
- version,
25
+ version: _?.version ?? version,
26
26
  };
27
27
  });
28
28
  const buttonClassName = (0, style_1.style)('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', stretched ? 'flex-1 justify-center' : '');
29
29
  return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col gap-xs', className), children: [(0, jsx_runtime_1.jsx)("div", { className: "flex gap-xs", children: (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
30
- className: stretched ? 'w-full' : '',
30
+ className: (0, style_1.style)(stretched || hasText ? 'basis-full' : ''),
31
31
  buttonClassName,
32
32
  }) }), children ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
33
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":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../model/HeadlineType';
2
2
  import { type HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
3
3
  import { type FontWeight, type TextSize, type TitleSize } from '../../ui-kit/Text/TextProps';
4
4
  export declare const headlineVersionStyles: Record<HeadlineVersion, {
@@ -7,4 +7,3 @@ export declare const headlineVersionStyles: Record<HeadlineVersion, {
7
7
  descriptionWeight: FontWeight;
8
8
  descriptionStyle: string;
9
9
  }>;
10
- export declare const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string>;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.HEADLINE_SMALL_VERSION = exports.headlineVersionStyles = void 0;
2
+ exports.headlineVersionStyles = void 0;
3
3
  exports.headlineVersionStyles = {
4
4
  XXL: {
5
5
  title: { headingType: 'h0', as: 'h1' },
@@ -38,15 +38,4 @@ exports.headlineVersionStyles = {
38
38
  descriptionStyle: 'mt-xs',
39
39
  },
40
40
  };
41
- // TODO: Move to Gallery and rename
42
- exports.HEADLINE_SMALL_VERSION = {
43
- H6: 'text-h6',
44
- XL_L: 'text-xl-light',
45
- XL_R: 'text-xl',
46
- L_L: 'text-l-light',
47
- L_R: 'text-l',
48
- M: 'text-m-light',
49
- S: 'text-s-light',
50
- XS: 'text-xs-light',
51
- };
52
41
  //# sourceMappingURL=headlineVersionStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"headlineVersionStyles.js","sourceRoot":"","sources":["../../../src/components/Headline/headlineVersionStyles.ts"],"names":[],"mappings":";;AAIa,QAAA,qBAAqB,GAQ9B;IACF,GAAG,EAAE;QACH,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,aAAa;QAChC,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,QAAQ;QACzB,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;CACF,CAAC;AAEF,mCAAmC;AACtB,QAAA,sBAAsB,GAAyC;IAC1E,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,QAAQ;IACb,CAAC,EAAE,cAAc;IACjB,CAAC,EAAE,cAAc;IACjB,EAAE,EAAE,eAAe;CACpB,CAAC"}
1
+ {"version":3,"file":"headlineVersionStyles.js","sourceRoot":"","sources":["../../../src/components/Headline/headlineVersionStyles.ts"],"names":[],"mappings":";;AAIa,QAAA,qBAAqB,GAQ9B;IACF,GAAG,EAAE;QACH,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,aAAa;QAChC,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,QAAQ;QACzB,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;CACF,CAAC"}
@@ -6,9 +6,9 @@ const Text_1 = require("../../ui-kit/Text/Text");
6
6
  const style_1 = require("../../utils/style");
7
7
  const colorStyle = {
8
8
  yellow: { border: 'border-yellow-light', text: 'text-yellow' },
9
- green: { border: 'border-green-light', text: 'text-green-dark' },
9
+ green: { border: 'border-green-more-light', text: 'text-green-dark' },
10
10
  gray: { border: 'border-gray', text: 'text-secondary-text' },
11
- red: { border: 'border-error', text: 'text-error' },
11
+ red: { border: 'border-error/30', text: 'text-error' },
12
12
  };
13
13
  exports.Badge = (0, uni_jsx_1.JSX)(({ className, children, color = 'gray' }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('p-s border border-gray rounded-md flex items-center', colorStyle[color].border, className), children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: colorStyle[color].text, children: children }) })));
14
14
  //# sourceMappingURL=Badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/Badge.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAE1C,MAAM,UAAU,GAAwD;IACtE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9D,KAAK,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAChE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC5D,GAAG,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE;CACpD,CAAC;AAOW,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAChF,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,qDAAqD,EACrD,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,EACxB,SAAS,CACV,YAED,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,YAC9C,QAAQ,GACJ,GACH,CACP,CAAC,CAAC"}
1
+ {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/Badge.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAE1C,MAAM,UAAU,GAAwD;IACtE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9D,KAAK,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACrE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC5D,GAAG,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE;CACvD,CAAC;AAOW,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAChF,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,qDAAqD,EACrD,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,EACxB,SAAS,CACV,YAED,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,YAC9C,QAAQ,GACJ,GACH,CACP,CAAC,CAAC"}
@@ -1,8 +1,9 @@
1
- import { type TextColor } from '../../ui-kit/Text/TextProps';
1
+ import { type TextColor, type TextSize } from '../../ui-kit/Text/TextProps';
2
2
  export interface CardCellProps {
3
3
  className?: string;
4
4
  label?: string;
5
- value?: string;
5
+ labelSize?: TextSize;
6
+ value?: string | string[];
6
7
  subText?: string;
7
8
  subColor?: TextColor;
8
9
  }
@@ -4,11 +4,13 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Text_1 = require("../../ui-kit/Text/Text");
6
6
  const style_1 = require("../../utils/style");
7
- exports.CardCell = (0, uni_jsx_1.JSX)(({ className, label, value, subText, subColor }) => {
8
- const textItems = value?.split(',') ?? [];
9
- if (!textItems.length && !subText) {
7
+ exports.CardCell = (0, uni_jsx_1.JSX)(({ value, subText, children, ...props }) => {
8
+ const textItems = (Array.isArray(value) ? value : value?.split(',') ?? []).filter(Boolean);
9
+ if ([textItems.length, children, subText].every((_) => !_)) {
10
10
  return null;
11
11
  }
12
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", size: "text-m", children: label })) : null, textItems.filter(Boolean).map((text, i) => ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: text.trim() }, String(i)))), subText ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: subColor, size: "text-m", children: subText })) : null] }));
12
+ return renderCardCell({ textItems, subText, children, ...props });
13
13
  });
14
+ const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", size: labelSize, children: label })) : null, children ||
15
+ textItems.filter(Boolean).map((text, i) => ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: text.trim() }, String(i)))), subText ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: subColor, size: "text-m", children: subText })) : null] }));
14
16
  //# sourceMappingURL=CardCell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardCell.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAU7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5F,MAA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?: string;
18
+ short?: string;
17
19
  status?: boolean;
18
20
  workTime?: string;
19
21
  lunchHour?: string;
@@ -37,6 +39,9 @@ export declare type WorkSchedule = {
37
39
  workingFriday?: boolean;
38
40
  workingSaturday?: boolean;
39
41
  workingSunday?: boolean;
42
+ isMatchesPattern?: boolean;
43
+ businessScheduleVisibleTag?: boolean;
44
+ businessScheduleDescription?: string;
40
45
  };
41
46
  export declare type SafeBoxCaseTariff = {
42
47
  id?: number;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { WorkScheduleWeek } from './OfficesAtmsMapProps';
3
+ export declare const getScheduleDescription: (workScheduleWeek: WorkScheduleWeek[]) => JSX.Element;
4
+ export declare const buildScheduleText: ({ workTime, lunchHour, daysOff }: Record<string, string | undefined>, isSaturday?: boolean) => string;
@@ -0,0 +1,36 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.buildScheduleText = exports.getScheduleDescription = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const CardCell_1 = require("./CardCell");
5
+ const getScheduleDescription = (workScheduleWeek) => {
6
+ const workingWeekday = workScheduleWeek.find((_) => _.key !== 'workingSaturday' && Boolean(_.status) && Boolean(_.workTime));
7
+ const workingSaturday = workScheduleWeek.find((_) => _.key === 'workingSaturday' && Boolean(_.status) && Boolean(_.workTime));
8
+ const daysOff = workScheduleWeek
9
+ .filter((_) => !_.status)
10
+ .map((_) => _.short?.toLowerCase())
11
+ .join(', ');
12
+ const rows = [
13
+ (0, exports.buildScheduleText)({
14
+ workTime: workingWeekday?.workTime,
15
+ lunchHour: workingWeekday?.lunchHour,
16
+ daysOff: workingSaturday ? '' : daysOff,
17
+ }),
18
+ (0, exports.buildScheduleText)({ workTime: workingSaturday?.workTime, lunchHour: workingSaturday?.lunchHour, daysOff }, true),
19
+ ].filter(Boolean);
20
+ return (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", value: rows, className: "max-w-none" });
21
+ };
22
+ exports.getScheduleDescription = getScheduleDescription;
23
+ const buildScheduleText = ({ workTime = '', lunchHour = '', daysOff = '' }, isSaturday = false) => {
24
+ if (!workTime) {
25
+ return '';
26
+ }
27
+ return [
28
+ `${isSaturday ? 'Суббота' : 'Будние дни'}: ${workTime}`,
29
+ lunchHour ? `перерыв: ${lunchHour}` : '',
30
+ daysOff ? `не работает: ${daysOff}` : '',
31
+ ]
32
+ .filter(Boolean)
33
+ .join('; ');
34
+ };
35
+ exports.buildScheduleText = buildScheduleText;
36
+ //# sourceMappingURL=getScheduleDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScheduleDescription.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/getScheduleDescription.tsx"],"names":[],"mappings":";;;AAAA,yCAAsC;AAG/B,MAAM,sBAAsB,GAAG,CAAC,gBAAoC,EAAE,EAAE;IAC7E,MAAM,cAAc,GAAG,gBAAgB,CAAC,IAAI,CAC1C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,iBAAiB,IAAI,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAC/E,CAAC;IAEF,MAAM,eAAe,GAAG,gBAAgB,CAAC,IAAI,CAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,iBAAiB,IAAI,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAC/E,CAAC;IAEF,MAAM,OAAO,GAAG,gBAAgB;SAC7B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;SACxB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC;SACl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DAY_MAP: string[][];
3
+ export declare const getWorkScheduleWeek: (workSchedule?: WorkSchedule) => WorkScheduleWeek[];
@@ -0,0 +1,28 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.getWorkScheduleWeek = exports.WEEKDAY_MAP = void 0;
3
+ exports.WEEKDAY_MAP = [
4
+ ['workingMonday', 'Пн', 'Понедельник'],
5
+ ['workingTuesday', 'Вт', 'Вторник'],
6
+ ['workingWednesday', 'Ср', 'Среда'],
7
+ ['workingThursday', 'Чт', 'Четверг'],
8
+ ['workingFriday', 'Пт', 'Пятница'],
9
+ ['workingSaturday', 'Сб', 'Суббота'],
10
+ ['workingSunday', 'Вс', 'Воскресенье'],
11
+ ];
12
+ const getWorkScheduleWeek = (workSchedule) => exports.WEEKDAY_MAP.map(([key, short, title]) => ({
13
+ key,
14
+ title,
15
+ short,
16
+ status: Boolean(workSchedule?.[key]),
17
+ get workTime() {
18
+ return key === 'workingSaturday' ? workSchedule?.workTimeSaturday : workSchedule?.workTime;
19
+ },
20
+ get lunchHour() {
21
+ return key === 'workingSaturday' ? workSchedule?.lunchHourSaturday : workSchedule?.lunchHour;
22
+ },
23
+ get hasLunch() {
24
+ return /\d+/.test(this.lunchHour ?? '');
25
+ },
26
+ }));
27
+ exports.getWorkScheduleWeek = getWorkScheduleWeek;
28
+ //# sourceMappingURL=getWorkScheduleWeek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWorkScheduleWeek.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx"],"names":[],"mappings":";;AAEa,QAAA,WAAW,GAAG;IACzB,CAAC,eAAe,EAAE,IAAI,EAAE,aAAa,CAAC;IACtC,CAAC,gBAAgB,EAAE,IAAI,EAAE,SAAS,CAAC;IACnC,CAAC,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC;IACnC,CAAC,iBAAiB,EAAE,IAAI,EAAE,SAAS,CAAC;IACpC,CAAC,eAAe,EAAE,IAAI,EAAE,SAAS,CAAC;IAClC,CAAC,iBAAiB,EAAE,IAAI,EAAE,SAAS,CAAC;IACpC,CAAC,eAAe,EAAE,IAAI,EAAE,aAAa,CAAC;CACvC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,YAA2B,EAAsB,EAAE,CACrF,mBAAW,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACxC,GAAG;IACH,KAAK;IACL,KAAK;IACL,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,QAAQ;QACV,OAAO,GAAG,KAAK,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,YAAY,EAAE,QAAQ,CAAC;IAC7F,CAAC;IACD,IAAI,SAAS;QACX,OAAO,GAAG,KAAK,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,SAAS,CAAC;IAC/F,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC,CAAC,CAAC;AAfO,QAAA,mBAAmB,uBAe1B"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { WorkScheduleWeek } from './OfficesAtmsMapProps';
3
+ export declare const renderBusinessSchedule: (scheduleDescription?: string) => JSX.Element | null;
4
+ export declare const getBusinessSchedule: (scheduleDescription: string) => {
5
+ short: string;
6
+ status: boolean;
7
+ }[];
8
+ export declare const renderAlternativeDay: ({ short, status }: WorkScheduleWeek, index: number) => JSX.Element;
@@ -0,0 +1,32 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderAlternativeDay = exports.getBusinessSchedule = exports.renderBusinessSchedule = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Text_1 = require("../../ui-kit/Text/Text");
5
+ const style_1 = require("../../utils/style");
6
+ const CardCell_1 = require("./CardCell");
7
+ const CardRow_1 = require("./CardRow");
8
+ const getWorkScheduleWeek_1 = require("./getWorkScheduleWeek");
9
+ const renderBusinessSchedule = (scheduleDescription) => {
10
+ if (!scheduleDescription) {
11
+ return null;
12
+ }
13
+ const businessSchedule = (0, exports.getBusinessSchedule)(scheduleDescription);
14
+ return ((0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "border-none", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", labelSize: "text-l", children: (0, jsx_runtime_1.jsx)("div", { className: "flex gap-1", children: businessSchedule.map(exports.renderAlternativeDay) }) }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", className: "max-w-none", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { children: scheduleDescription }) })] }));
15
+ };
16
+ exports.renderBusinessSchedule = renderBusinessSchedule;
17
+ const getBusinessSchedule = (scheduleDescription) => {
18
+ const weekDayMap = getWorkScheduleWeek_1.WEEKDAY_MAP.map(([, short]) => ({ short, status: true }));
19
+ const splittedScheduleDescription = scheduleDescription.split('/') ?? [];
20
+ const lastPartScheduleDescription = splittedScheduleDescription[splittedScheduleDescription.length - 1]?.toLowerCase();
21
+ if (!lastPartScheduleDescription?.includes('выходной')) {
22
+ return weekDayMap;
23
+ }
24
+ return weekDayMap.map((_) => ({
25
+ ..._,
26
+ status: !lastPartScheduleDescription?.includes(_.short.toLowerCase()),
27
+ }));
28
+ };
29
+ exports.getBusinessSchedule = getBusinessSchedule;
30
+ const renderAlternativeDay = ({ short, status }, index) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('w-9 h-9 rounded-md flex items-center justify-center', status ? 'bg-green-more-light text-green-dark' : 'bg-error/30 text-error'), children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xs", children: short }) }, String(index)));
31
+ exports.renderAlternativeDay = renderAlternativeDay;
32
+ //# sourceMappingURL=renderBusinessSchedule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderBusinessSchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderBusinessSchedule.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,6CAA0C;AAC1C,yCAAsC;AACtC,uCAAoC;AACpC,+DAAoD;AAG7C,MAAM,sBAAsB,GAAG,CAAC,mBAA4B,EAAE,EAAE;IACrE,IAAI,CAAC,mBAAmB,EAAE;QACxB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,gBAAgB,GAAG,IAAA,2BAAmB,EAAC,mBAAmB,CAAC,CAAC;IAElE,OAAO,CACL,wBAAC,iBAAO,IAAC,SAAS,EAAC,aAAa,aAC9B,uBAAC,mBAAQ,IAAC,KAAK,EAAC,0GAAqB,EAAC,SAAS,EAAC,QAAQ,YACtD,gCAAK,SAAS,EAAC,YAAY,YAAE,gBAAgB,CAAC,GAAG,CAAC,4BAAoB,CAAC,GAAO,GACrE,EACX,uBAAC,mBAAQ,IAAC,KAAK,EAAC,qEAAc,EAAC,SAAS,EAAC,YAAY,YACnD,uBAAC,WAAI,cAAE,mBAAmB,GAAQ,GACzB,IACH,CACX,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC;AAEK,MAAM,mBAAmB,GAAG,CAAC,mBAA2B,EAAE,EAAE;IACjE,MAAM,UAAU,GAAG,iCAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAE7E,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACzE,MAAM,2BAA2B,GAC/B,2BAA2B,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC;IAErF,IAAI,CAAC,2BAA2B,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;QACtD,OAAO,UAAU,CAAC;KACnB;IAED,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,CAAC;QACJ,MAAM,EAAE,CAAC,2BAA2B,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;KACtE,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AAfW,QAAA,mBAAmB,uBAe9B;AAEK,MAAM,oBAAoB,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAoB,EAAE,KAAa,EAAE,EAAE,CAAC,CAC1F,gCAEE,SAAS,EAAE,IAAA,aAAK,EACd,qDAAqD,EACrD,MAAM,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,wBAAwB,CAC1E,YAED,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,KAAK,GAAQ,IAN9B,MAAM,CAAC,KAAK,CAAC,CAOd,CACP,CAAC;AAVW,QAAA,oBAAoB,wBAU/B"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type Branch, type Currency, type WorkScheduleWeek } from './OfficesAtmsMapProps';
3
- export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element;
3
+ export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element | null;
4
4
  export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
5
- export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek) => JSX.Element | null;
5
+ export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek[]) => JSX.Element | null;
6
6
  export declare const renderDay: ({ title, status, workTime, lunchHour, hasLunch }: WorkScheduleWeek, index: number) => JSX.Element;
@@ -6,45 +6,41 @@ const Text_1 = require("../../ui-kit/Text/Text");
6
6
  const Badge_1 = require("./Badge");
7
7
  const CardCell_1 = require("./CardCell");
8
8
  const CardRow_1 = require("./CardRow");
9
- const WEEKDAY_MAP = [
10
- ['Понедельник', 'workingMonday'],
11
- ['Вторник', 'workingTuesday'],
12
- ['Среда', 'workingWednesday'],
13
- ['Четверг', 'workingThursday'],
14
- ['Пятница', 'workingFriday'],
15
- ['Суббота', 'workingSaturday'],
16
- ['Воскресенье', 'workingSunday'],
17
- ];
9
+ const getScheduleDescription_1 = require("./getScheduleDescription");
10
+ const getWorkScheduleWeek_1 = require("./getWorkScheduleWeek");
11
+ const renderBusinessSchedule_1 = require("./renderBusinessSchedule");
18
12
  const currentWeekDayIdx = new Date().getDay();
19
13
  const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, index) => {
20
- const workScheduleWeek = workSchedule ? getWorkScheduleWeek(workSchedule) : null;
21
- const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
22
- return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: name }), (0, exports.renderCurrentDaySchedule)(currentWeekDay)] }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null, (0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "flex-wrap", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workScheduleWeek?.length ? (0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { children: workScheduleWeek?.map(exports.renderDay) }) : null, exchangeRate?.currencies?.length ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(exports.renderCurrency) })) : null] }, String(index)));
14
+ if (!workSchedule) {
15
+ return null;
16
+ }
17
+ const workScheduleWeek = (0, getWorkScheduleWeek_1.getWorkScheduleWeek)(workSchedule);
18
+ const labelSchedule = workSchedule?.businessScheduleVisibleTag
19
+ ? 'Для физических лиц'
20
+ : 'Для физических и юридических лиц';
21
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: name }), (0, exports.renderCurrentDaySchedule)(workScheduleWeek)] }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null, (0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "flex-wrap", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule.isMatchesPattern ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { children: (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: (0, jsx_runtime_1.jsx)("div", { className: "flex justify-between pt-xs", children: workScheduleWeek?.map(exports.renderDay) }) }) })) : ((0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", children: (0, jsx_runtime_1.jsx)("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderBusinessSchedule_1.renderAlternativeDay) }) }), (0, getScheduleDescription_1.getScheduleDescription)(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
22
+ ? (0, renderBusinessSchedule_1.renderBusinessSchedule)(workSchedule?.businessScheduleDescription)
23
+ : null, exchangeRate?.currencies?.length ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(exports.renderCurrency) })) : null] }, String(index)));
23
24
  };
24
25
  exports.renderOfficeCard = renderOfficeCard;
25
- const getWorkScheduleWeek = (workSchedule) => WEEKDAY_MAP.map(([title, key]) => {
26
- const dayOff = ['workingSaturday', 'workingSunday'].includes(key);
27
- return {
28
- title,
29
- status: Boolean(workSchedule?.[key]),
30
- workTime: dayOff ? workSchedule?.workTimeSaturday : workSchedule?.workTime,
31
- lunchHour: dayOff ? workSchedule?.lunchHourSaturday : workSchedule?.lunchHour,
32
- get hasLunch() {
33
- return /\d+/.test(this.lunchHour ?? '');
34
- },
35
- };
36
- });
37
26
  const renderCurrency = ({ currency, buyExchangeRate, saleExchangeRate }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg h-full", children: [currency?.currency ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", value: currency.currency }) : null, buyExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u0443\u043F\u0438\u0442\u044C", value: String(buyExchangeRate) }) : null, saleExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C", value: String(saleExchangeRate) }) : null] }, String(i)));
38
27
  exports.renderCurrency = renderCurrency;
39
28
  //TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
40
29
  const renderCurrentDaySchedule = (workScheduleWeek) => {
41
- if (!workScheduleWeek) {
30
+ const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
31
+ if (!currentWeekDay) {
42
32
  return null;
43
33
  }
44
- const { lunchHour, status, workTime, hasLunch } = workScheduleWeek;
45
- return status ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s", children: [workTime ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "yellow", children: lunchHour }) : null] })) : ((0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
34
+ const { lunchHour, status, workTime, hasLunch } = currentWeekDay;
35
+ return status ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s items-start whitespace-nowrap", children: [workTime ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "yellow", children: `перерыв: ${lunchHour}` }) : null] })) : ((0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
46
36
  };
47
37
  exports.renderCurrentDaySchedule = renderCurrentDaySchedule;
48
- const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: title, value: status && workTime ? workTime : '', subText: !status ? 'Выходной' : lunchHour, subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
38
+ const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: title, value: status && workTime ? workTime : '', subText: getSubTextLunch(lunchHour, hasLunch, status), subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
49
39
  exports.renderDay = renderDay;
40
+ const getSubTextLunch = (lunchHour, hasLunch = false, status = false) => {
41
+ if (!status) {
42
+ return 'Не работает';
43
+ }
44
+ return lunchHour && hasLunch ? `Перерыв ${lunchHour}` : lunchHour;
45
+ };
50
46
  //# sourceMappingURL=renderOfficeCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,mCAAgC;AAChC,yCAAsC;AACtC,uCAAoC;AAQpC,MAAM,WAAW,GAAG;IAClB,CAAC,aAAa,EAAE,eAAe,CAAC;IAChC,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAC7B,CAAC,OAAO,EAAE,kBAAkB,CAAC;IAC7B,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAC9B,CAAC,SAAS,EAAE,eAAe,CAAC;IAC5B,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAC9B,CAAC,aAAa,EAAE,eAAe,CAAC;CACjC,CAAC;AAEF,MAAM,iBAAiB,GAAG,IAAI,IAAI,E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AQ,EAAE,MAAM,CAAC,EACrD,QAAQ,EAAE,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,IAJ3D,MAAM,CAAC,KAAK,CAAC,CAKlB,CACH,CAAC;AAXW,QAAA,SAAS,aAWpB;AAEF,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAE,QAAQ,GAAG,KAAK,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IAC/E,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,aAAa,CAAC;KACtB;IAED,OAAO,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
+ import { type UniBlockContent } from '../../model/JSXBlock';
1
2
  import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
2
3
  /**
3
4
  * @title Форматированный текст
4
5
  */
5
- export declare type RichTextBlockContent = RichTextProps;
6
+ export declare type RichTextBlockContent = UniBlockContent & RichTextProps;
@@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.StepsBlock = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const AlignStyles_1 = require("../../model/AlignStyles");
5
6
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
7
  const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
7
8
  const Img_1 = require("../../ui-kit/Img/Img");
@@ -13,13 +14,13 @@ const renderStep_1 = require("./renderStep");
13
14
  const StepsBlockStyleMaps_1 = require("./StepsBlockStyleMaps");
14
15
  const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
15
16
  const getPaddingX = (steps) => (steps < 5 ? 'px-24' : 'px-16');
16
- exports.StepsBlock = (0, uni_jsx_1.JSX)(({ className = '', showLines = true, steps = [], buttons, size = 'normal', version = 'primary', stepVersion = 'gray', title, description, ...rest }) => {
17
+ exports.StepsBlock = (0, uni_jsx_1.JSX)(({ align = AlignStyles_1.AlignStyles, buttons, className = '', description, showLines = true, size = 'normal', steps = [], stepVersion = 'gray', title, version = 'primary', ...rest }) => {
17
18
  const shortGaps = steps.length > 3;
18
19
  const styleMap = StepsBlockStyleMaps_1.STEPS_BLOCK_STYLE;
19
20
  const lineOpacity = getLineOpacity(showLines);
20
21
  const paddingX = getPaddingX(steps.length);
21
22
  const isMainButton = Boolean(buttons?.every((b) => b?.text));
22
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full" }), steps?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "box-border space-y-lg", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex items-center', paddingX), children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map((0, renderStep_1.renderStep)({ styleMap, isMainButton, version })) })] })) : null, (0, renderButtonsSection_1.renderButtonsSection)(buttons)] }));
23
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: align }), steps?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "box-border space-y-lg", children: [(0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex items-center', paddingX), children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map((0, renderStep_1.renderStep)({ styleMap, isMainButton, version })) })] })) : null, (0, renderButtonsSection_1.renderButtonsSection)(buttons)] }));
23
24
  });
24
25
  const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
25
26
  const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
@@ -1 +1 @@
1
- {"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,8CAA2C;AAC3C,+CAA4C;AAC5C,mDAAgD;AAChD,6CAA0C;AAC1C,mDAAgD;AAChD,6CAA0C;AAE1C,+DAA0E;AAI1E,MAAM,cAAc,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAE9E,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AAE1D,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,IAAI,EAChB,KAAK,GAAG,EAAE,EACV,OAAO,EACP,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,SAAS,EACnB,WAAW,GAAG,MAAM,EACpB,KAAK,EACL,WAAW,E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BAAY,IAEX,cAAc,EAAC,EAAE,EACjB,SAAS,EAAE,GAAG,gBAAgB,CAC5B,IAAI,CACL,4EAA4E,EAC7E,OAAO,EAAE,WAAW,YAEnB,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,WAAW,EAAE,EACjE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,CACF,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,SAAS,EACT,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAClF,YAEA,CAAC,GAAG,CAAC,GACD,CACR,IAtBI,MAAM,CAAC,CAAC,CAAC,CAuBD,CAChB,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAE3F,MAAM,gBAAgB,GAAG,CAAC,OAAqB,EAAE,EAAE,CACjD,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function useResizeObserver<T extends HTMLDivElement, Deps extends any[] = []>(callback: (target: T, entry: ResizeObserverEntry) => void, deps: Deps): {
2
+ current: T | null;
3
+ };
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.useResizeObserver = void 0;
3
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
4
+ function useResizeObserver(callback, deps) {
5
+ const ref = (0, hooks_1.useRef)(null);
6
+ (0, hooks_1.useEffect)(() => {
7
+ const element = ref?.current;
8
+ if (!element) {
9
+ return undefined;
10
+ }
11
+ const observer = new ResizeObserver((entries) => {
12
+ callback(element, entries[0]);
13
+ });
14
+ observer.observe(element);
15
+ return () => {
16
+ observer.disconnect();
17
+ };
18
+ }, [callback, ...deps]);
19
+ return ref;
20
+ }
21
+ exports.useResizeObserver = useResizeObserver;
22
+ //# sourceMappingURL=useResizeObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResizeObserver.js","sourceRoot":"","sources":["../../src/hooks/useResizeObserver.ts"],"names":[],"mappings":";;AAAA,uDAAgE;AAEhE,SAAgB,iBAAiB,CAC/B,QAAyD,EACzD,IAAU;IAEV,MAAM,GAAG,GAAG,IAAA,cAAM,EAAW,IAAI,CAAC,CAAC;IAEnC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO,CAAC;QAE7B,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;YAC9C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAE1B,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,UAAU,EAAE,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;IAExB,OAAO,GAAG,CAAC;AACb,CAAC;AAzBD,8CAyBC"}