@redneckz/wildless-cms-uni-blocks 0.6.35 → 0.6.37

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 (970) hide show
  1. package/bin/migration-scripts/0.6.32.js +6 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +276 -160
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  6. package/{lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts → bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  7. package/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  8. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  9. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  10. package/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  11. package/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  12. package/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  13. package/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  14. package/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  15. package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  16. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  17. package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  18. package/bundle/components/Video/VideoContent.d.ts +1 -0
  19. package/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  20. package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  21. package/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  22. package/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  23. package/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  24. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  25. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  26. package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  27. package/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  28. package/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  29. package/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  30. package/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  31. package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  32. package/bundle/ui-kit/Text/Text.d.ts +1 -26
  33. package/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  34. package/bundle/utils/areArraysEqual.d.ts +1 -0
  35. package/bundle/utils/mapChildren.d.ts +2 -0
  36. package/bundle/utils/maxBy.d.ts +2 -2
  37. package/bundle/utils/minBy.d.ts +1 -0
  38. package/dist/components/Blocks.js +9 -3
  39. package/dist/components/Blocks.js.map +1 -1
  40. package/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  41. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  42. package/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  43. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  44. package/dist/components/Calculator/DepositCalculatorForm.js +5 -2
  45. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  46. package/dist/components/Carousel/Carousel.js +15 -15
  47. package/dist/components/Carousel/Carousel.js.map +1 -1
  48. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  49. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  50. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  51. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  52. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  53. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  54. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  55. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  56. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  57. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  58. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  59. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  60. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  61. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  62. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  63. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  64. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  65. package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  66. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  67. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  68. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  69. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  70. package/dist/components/Gallery/GalleryCardInner.js +6 -1
  71. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  72. package/dist/components/Gallery/GalleryContent.d.ts +5 -0
  73. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  74. package/dist/components/Header/Header.mobile.js +2 -2
  75. package/dist/components/Header/Header.mobile.js.map +1 -1
  76. package/dist/components/Header/HeaderSubMenu.js +1 -1
  77. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  78. package/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  79. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  80. package/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  81. package/dist/components/ImgBlock/ImgBlock.js +11 -0
  82. package/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  83. package/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  84. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.js → ImgBlock/ImgBlockContent.js} +1 -1
  85. package/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  86. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
  87. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  88. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  89. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  90. package/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  91. package/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  92. package/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  93. package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  94. package/{mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js → dist/components/ParagraphBlock/ParagraphBlockContent.js} +1 -1
  95. package/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  96. package/dist/components/ProductGallery/ProductGallery.js +7 -7
  97. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  98. package/dist/components/RollupItem/RollupItem.js +10 -1
  99. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  100. package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  101. package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  102. package/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  103. package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  104. package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  105. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  106. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  107. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  108. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  109. package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  110. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  111. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  112. package/dist/components/StepsBlock/StepsBlock.js +1 -3
  113. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  114. package/dist/components/TariffsTable/TableTileHeader.js +1 -3
  115. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  116. package/dist/components/TariffsTable/TariffsTable.js +6 -6
  117. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  118. package/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  119. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  120. package/dist/components/Video/VideoContent.d.ts +1 -0
  121. package/dist/hooks/useIntersectionObserver.d.ts +7 -1
  122. package/dist/hooks/useIntersectionObserver.js +10 -1
  123. package/dist/hooks/useIntersectionObserver.js.map +1 -1
  124. package/dist/hooks/useLink.js +1 -1
  125. package/dist/hooks/useLink.js.map +1 -1
  126. package/dist/ui-kit/BlockWrapper.js +1 -11
  127. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  128. package/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  129. package/dist/ui-kit/Button/ArrowButton.js +3 -1
  130. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  131. package/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  132. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  133. package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  134. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  135. package/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  136. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  137. package/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  138. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  139. package/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  140. package/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  141. package/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  142. package/dist/ui-kit/Radio/Radio.js +1 -1
  143. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  144. package/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  145. package/dist/ui-kit/Select/Select.js.map +1 -1
  146. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  147. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  148. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  149. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  150. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  151. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  152. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  153. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  154. package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  155. package/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  156. package/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  157. package/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  158. package/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  159. package/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  160. package/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  161. package/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  162. package/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  163. package/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  164. package/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  165. package/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  166. package/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  167. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  168. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  169. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  170. package/dist/ui-kit/Text/Text.d.ts +1 -26
  171. package/dist/ui-kit/Text/Text.js.map +1 -1
  172. package/dist/ui-kit/Text/TextProps.d.ts +26 -0
  173. package/dist/ui-kit/Text/TextProps.js +2 -0
  174. package/dist/ui-kit/Text/TextProps.js.map +1 -0
  175. package/dist/utils/areArraysEqual.d.ts +1 -0
  176. package/dist/utils/areArraysEqual.js +5 -0
  177. package/dist/utils/areArraysEqual.js.map +1 -0
  178. package/dist/utils/mapChildren.d.ts +2 -0
  179. package/dist/utils/mapChildren.js +10 -0
  180. package/dist/utils/mapChildren.js.map +1 -0
  181. package/dist/utils/maxBy.d.ts +2 -2
  182. package/dist/utils/maxBy.js +4 -4
  183. package/dist/utils/maxBy.js.map +1 -1
  184. package/dist/utils/minBy.d.ts +1 -0
  185. package/dist/utils/minBy.js +6 -0
  186. package/dist/utils/minBy.js.map +1 -0
  187. package/lib/common.css +1 -1
  188. package/lib/components/Blocks.js +9 -3
  189. package/lib/components/Blocks.js.map +1 -1
  190. package/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  191. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  192. package/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  193. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  194. package/lib/components/Calculator/DepositCalculatorForm.js +6 -3
  195. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  196. package/lib/components/Carousel/Carousel.fixture.d.ts +2 -0
  197. package/lib/components/Carousel/Carousel.js +15 -15
  198. package/lib/components/Carousel/Carousel.js.map +1 -1
  199. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  200. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  201. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  202. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.d.ts +10 -0
  203. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  204. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  205. package/{mobile/bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  206. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  207. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  208. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  209. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +8 -0
  210. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  211. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  212. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  213. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  214. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  215. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  216. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -1
  217. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  218. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  219. package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  220. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  221. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  222. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  223. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  224. package/lib/components/Gallery/GalleryCardInner.js +6 -1
  225. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  226. package/lib/components/Gallery/GalleryContent.d.ts +5 -0
  227. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  228. package/lib/components/Header/Header.mobile.js +3 -3
  229. package/lib/components/Header/Header.mobile.js.map +1 -1
  230. package/lib/components/Header/HeaderSubMenu.js +1 -1
  231. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  232. package/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  233. package/lib/components/Header/HeaderSubMenuItem.js +1 -1
  234. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  235. package/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  236. package/lib/components/{InvestmentGallery/InvestmentGallery.fixture.d.ts → ImgBlock/ImgBlock.fixture.d.ts} +0 -2
  237. package/lib/components/ImgBlock/ImgBlock.js +9 -0
  238. package/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  239. package/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  240. package/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  241. package/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  242. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  243. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  244. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  245. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  246. package/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  247. package/lib/components/ParagraphBlock/ParagraphBlock.fixture.d.ts +9 -0
  248. package/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  249. package/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  250. package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  251. package/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  252. package/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  253. package/lib/components/ProductGallery/ProductGallery.js +8 -8
  254. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  255. package/lib/components/RollupItem/RollupItem.js +10 -1
  256. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  257. package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  258. package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  259. package/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  260. package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  261. package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  262. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  263. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  264. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  265. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  266. package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  267. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  268. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  269. package/lib/components/StepsBlock/StepsBlock.js +1 -3
  270. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  271. package/lib/components/TariffsTable/TableTileHeader.js +1 -3
  272. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  273. package/lib/components/TariffsTable/TariffsTable.js +6 -6
  274. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  275. package/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  276. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  277. package/lib/components/Video/VideoContent.d.ts +1 -0
  278. package/lib/hooks/useIntersectionObserver.d.ts +7 -1
  279. package/lib/hooks/useIntersectionObserver.js +11 -2
  280. package/lib/hooks/useIntersectionObserver.js.map +1 -1
  281. package/lib/hooks/useLink.js +2 -2
  282. package/lib/hooks/useLink.js.map +1 -1
  283. package/lib/ui-kit/BlockWrapper.js +1 -11
  284. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  285. package/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  286. package/lib/ui-kit/Button/ArrowButton.js +2 -0
  287. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  288. package/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  289. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  290. package/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  291. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  292. package/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  293. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  294. package/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  295. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  296. package/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  297. package/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  298. package/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  299. package/lib/ui-kit/Radio/Radio.js +1 -1
  300. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  301. package/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  302. package/lib/ui-kit/Select/Select.js.map +1 -1
  303. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  304. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  305. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  306. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  307. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  308. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  309. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  310. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  311. package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  312. package/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  313. package/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  314. package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  315. package/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  316. package/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  317. package/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  318. package/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  319. package/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  320. package/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  321. package/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  322. package/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  323. package/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  324. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  325. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  326. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  327. package/lib/ui-kit/Text/Text.d.ts +1 -26
  328. package/lib/ui-kit/Text/Text.js.map +1 -1
  329. package/lib/ui-kit/Text/TextProps.d.ts +26 -0
  330. package/lib/ui-kit/Text/TextProps.js +2 -0
  331. package/lib/ui-kit/Text/TextProps.js.map +1 -0
  332. package/lib/utils/areArraysEqual.d.ts +1 -0
  333. package/lib/utils/areArraysEqual.js +2 -0
  334. package/lib/utils/areArraysEqual.js.map +1 -0
  335. package/lib/utils/mapChildren.d.ts +2 -0
  336. package/lib/utils/mapChildren.js +7 -0
  337. package/lib/utils/mapChildren.js.map +1 -0
  338. package/lib/utils/maxBy.d.ts +2 -2
  339. package/lib/utils/maxBy.js +2 -2
  340. package/lib/utils/maxBy.js.map +1 -1
  341. package/lib/utils/minBy.d.ts +1 -0
  342. package/lib/utils/minBy.js +3 -0
  343. package/lib/utils/minBy.js.map +1 -0
  344. package/mobile/bundle/bundle.umd.js +144 -145
  345. package/mobile/bundle/bundle.umd.min.js +1 -1
  346. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  347. package/{bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  348. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  349. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  350. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  351. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  352. package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  353. package/mobile/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  354. package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  355. package/mobile/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  356. package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  357. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  358. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  359. package/mobile/bundle/components/Video/VideoContent.d.ts +1 -0
  360. package/mobile/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  361. package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  362. package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  363. package/mobile/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  364. package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  365. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  366. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  367. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  368. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  369. package/mobile/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  370. package/mobile/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  371. package/mobile/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  372. package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  373. package/mobile/bundle/ui-kit/Text/Text.d.ts +1 -26
  374. package/mobile/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  375. package/mobile/bundle/utils/areArraysEqual.d.ts +1 -0
  376. package/mobile/bundle/utils/mapChildren.d.ts +2 -0
  377. package/mobile/bundle/utils/maxBy.d.ts +2 -2
  378. package/mobile/bundle/utils/minBy.d.ts +1 -0
  379. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  380. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  381. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  382. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  383. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +5 -2
  384. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  385. package/mobile/dist/components/Carousel/Carousel.js +15 -15
  386. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  387. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  388. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  389. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  390. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  391. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  392. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  393. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  394. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  395. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  396. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  397. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  398. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  399. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  400. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  401. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  402. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  403. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  404. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  405. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  406. package/mobile/dist/components/Gallery/Gallery.js +1 -1
  407. package/mobile/dist/components/Gallery/GalleryCardInner.js +6 -1
  408. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  409. package/mobile/dist/components/Gallery/GalleryContent.d.ts +5 -0
  410. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  411. package/mobile/dist/components/Header/Header.js +2 -2
  412. package/mobile/dist/components/Header/Header.js.map +1 -1
  413. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  414. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  415. package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  416. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  417. package/mobile/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  418. package/mobile/dist/components/ImgBlock/ImgBlock.js +11 -0
  419. package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  420. package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  421. package/mobile/dist/components/ImgBlock/ImgBlockContent.js +2 -0
  422. package/mobile/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  423. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
  424. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  425. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  426. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  427. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  428. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  429. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  430. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  431. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  432. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  433. package/mobile/dist/components/ProductGallery/ProductGallery.js +7 -7
  434. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  435. package/mobile/dist/components/RollupItem/RollupItem.js +10 -1
  436. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  437. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  438. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  439. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  440. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  441. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  442. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  443. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  444. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  445. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  446. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  447. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  448. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  449. package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -3
  450. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  451. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  452. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  453. package/mobile/dist/components/Video/VideoContent.d.ts +1 -0
  454. package/mobile/dist/hooks/useIntersectionObserver.d.ts +7 -1
  455. package/mobile/dist/hooks/useIntersectionObserver.js +10 -1
  456. package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -1
  457. package/mobile/dist/hooks/useLink.js +1 -1
  458. package/mobile/dist/hooks/useLink.js.map +1 -1
  459. package/mobile/dist/ui-kit/BlockWrapper.js +1 -11
  460. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  461. package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  462. package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -1
  463. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  464. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  465. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  466. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  467. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  468. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  469. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  470. package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  471. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  472. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  473. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  474. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  475. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  476. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  477. package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  478. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  479. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  480. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  481. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  482. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  483. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  484. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  485. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  486. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  487. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  488. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  489. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  490. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  491. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  492. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  493. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  494. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  495. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  496. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  497. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  498. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  499. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  500. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  501. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  502. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  503. package/mobile/dist/ui-kit/Text/Text.d.ts +1 -26
  504. package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
  505. package/mobile/dist/ui-kit/Text/TextProps.d.ts +26 -0
  506. package/mobile/dist/ui-kit/Text/TextProps.js +2 -0
  507. package/mobile/dist/ui-kit/Text/TextProps.js.map +1 -0
  508. package/mobile/dist/utils/areArraysEqual.d.ts +1 -0
  509. package/mobile/dist/utils/areArraysEqual.js +5 -0
  510. package/mobile/dist/utils/areArraysEqual.js.map +1 -0
  511. package/mobile/dist/utils/mapChildren.d.ts +2 -0
  512. package/mobile/dist/utils/mapChildren.js +10 -0
  513. package/mobile/dist/utils/mapChildren.js.map +1 -0
  514. package/mobile/dist/utils/maxBy.d.ts +2 -2
  515. package/mobile/dist/utils/maxBy.js +4 -4
  516. package/mobile/dist/utils/maxBy.js.map +1 -1
  517. package/mobile/dist/utils/minBy.d.ts +1 -0
  518. package/mobile/dist/utils/minBy.js +6 -0
  519. package/mobile/dist/utils/minBy.js.map +1 -0
  520. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  521. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  522. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  523. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  524. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +6 -3
  525. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  526. package/mobile/lib/components/Carousel/Carousel.js +15 -15
  527. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  528. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  529. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  530. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  531. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  532. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  533. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  534. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  535. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  536. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  537. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  538. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  539. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  540. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  541. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  542. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  543. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  544. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  545. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  546. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  547. package/mobile/lib/components/Gallery/Gallery.js +1 -1
  548. package/mobile/lib/components/Gallery/GalleryCardInner.js +6 -1
  549. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  550. package/mobile/lib/components/Gallery/GalleryContent.d.ts +5 -0
  551. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  552. package/mobile/lib/components/Header/Header.js +3 -3
  553. package/mobile/lib/components/Header/Header.js.map +1 -1
  554. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  555. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  556. package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  557. package/mobile/lib/components/Header/HeaderSubMenuItem.js +1 -1
  558. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  559. package/mobile/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  560. package/mobile/lib/components/ImgBlock/ImgBlock.js +9 -0
  561. package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  562. package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  563. package/mobile/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  564. package/mobile/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  565. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  566. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  567. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  568. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  569. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  570. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  571. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  572. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  573. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  574. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  575. package/mobile/lib/components/ProductGallery/ProductGallery.js +8 -8
  576. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  577. package/mobile/lib/components/RollupItem/RollupItem.js +10 -1
  578. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  579. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  580. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  581. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  582. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  583. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  584. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  585. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  586. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  587. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  588. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  589. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  590. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  591. package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -3
  592. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  593. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  594. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  595. package/mobile/lib/components/Video/VideoContent.d.ts +1 -0
  596. package/mobile/lib/hooks/useIntersectionObserver.d.ts +7 -1
  597. package/mobile/lib/hooks/useIntersectionObserver.js +11 -2
  598. package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -1
  599. package/mobile/lib/hooks/useLink.js +2 -2
  600. package/mobile/lib/hooks/useLink.js.map +1 -1
  601. package/mobile/lib/ui-kit/BlockWrapper.js +1 -11
  602. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  603. package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  604. package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -0
  605. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  606. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  607. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  608. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  609. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  610. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  611. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  612. package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  613. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  614. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  615. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  616. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  617. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  618. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  619. package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  620. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  621. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  622. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  623. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  624. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  625. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  626. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  627. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  628. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  629. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  630. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  631. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  632. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  633. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  634. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  635. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  636. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  637. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  638. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  639. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  640. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  641. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  642. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  643. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  644. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  645. package/mobile/lib/ui-kit/Text/Text.d.ts +1 -26
  646. package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
  647. package/mobile/lib/ui-kit/Text/TextProps.d.ts +26 -0
  648. package/mobile/lib/ui-kit/Text/TextProps.js +2 -0
  649. package/mobile/lib/ui-kit/Text/TextProps.js.map +1 -0
  650. package/mobile/lib/utils/areArraysEqual.d.ts +1 -0
  651. package/mobile/lib/utils/areArraysEqual.js +2 -0
  652. package/mobile/lib/utils/areArraysEqual.js.map +1 -0
  653. package/mobile/lib/utils/mapChildren.d.ts +2 -0
  654. package/mobile/lib/utils/mapChildren.js +7 -0
  655. package/mobile/lib/utils/mapChildren.js.map +1 -0
  656. package/mobile/lib/utils/maxBy.d.ts +2 -2
  657. package/mobile/lib/utils/maxBy.js +2 -2
  658. package/mobile/lib/utils/maxBy.js.map +1 -1
  659. package/mobile/lib/utils/minBy.d.ts +1 -0
  660. package/mobile/lib/utils/minBy.js +3 -0
  661. package/mobile/lib/utils/minBy.js.map +1 -0
  662. package/mobile/src/common.css +0 -7
  663. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  664. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  665. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
  666. package/mobile/src/components/Carousel/Carousel.tsx +42 -23
  667. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  668. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  669. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  670. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  671. package/mobile/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  672. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  673. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  674. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  675. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  676. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -29
  677. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  678. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  679. package/mobile/src/components/Gallery/GalleryCardInner.tsx +7 -1
  680. package/mobile/src/components/Gallery/GalleryContent.ts +5 -0
  681. package/mobile/src/components/Gallery/GalleryInner.tsx +0 -1
  682. package/mobile/src/components/Header/Header.tsx +4 -6
  683. package/mobile/src/components/Header/HeaderSubMenu.tsx +3 -4
  684. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  685. package/mobile/src/components/ImgBlock/ImgBlock.example.json +11 -0
  686. package/mobile/src/components/ImgBlock/ImgBlock.tsx +17 -0
  687. package/mobile/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  688. package/mobile/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  689. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
  690. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
  691. package/mobile/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  692. package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  693. package/mobile/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  694. package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  695. package/mobile/src/components/ProductGallery/ProductGallery.tsx +13 -13
  696. package/mobile/src/components/RollupItem/RollupItem.tsx +10 -1
  697. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  698. package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  699. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  700. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  701. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  702. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  703. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
  704. package/mobile/src/components/Video/VideoContent.ts +1 -0
  705. package/mobile/src/hooks/useIntersectionObserver.ts +23 -2
  706. package/mobile/src/hooks/useLink.ts +2 -2
  707. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -16
  708. package/mobile/src/ui-kit/Button/ArrowButton.tsx +13 -0
  709. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  710. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  711. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  712. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  713. package/mobile/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  714. package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
  715. package/mobile/src/ui-kit/Radio/RadioProps.ts +1 -1
  716. package/mobile/src/ui-kit/Select/Select.tsx +0 -1
  717. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  718. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  719. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  720. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  721. package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  722. package/mobile/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  723. package/mobile/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  724. package/mobile/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  725. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  726. package/mobile/src/ui-kit/Text/Text.tsx +1 -63
  727. package/mobile/src/ui-kit/Text/TextProps.ts +63 -0
  728. package/mobile/src/utils/areArraysEqual.ts +2 -0
  729. package/mobile/src/utils/mapChildren.ts +11 -0
  730. package/mobile/src/utils/maxBy.ts +3 -4
  731. package/mobile/src/utils/minBy.ts +5 -0
  732. package/package.json +2 -2
  733. package/src/common.css +0 -7
  734. package/src/components/Blocks.ts +9 -3
  735. package/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  736. package/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  737. package/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
  738. package/src/components/Carousel/Carousel.fixture.tsx +40 -1
  739. package/src/components/Carousel/Carousel.tsx +42 -23
  740. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  741. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  742. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  743. package/src/components/{InvestmentGallery/InvestmentGallery.fixture.tsx → CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx} +21 -27
  744. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  745. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  746. package/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  747. package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  748. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +38 -0
  749. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  750. package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  751. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  752. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -2
  753. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -29
  754. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
  755. package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  756. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  757. package/src/components/Gallery/GalleryCardInner.tsx +7 -1
  758. package/src/components/Gallery/GalleryContent.ts +5 -0
  759. package/src/components/Gallery/GalleryInner.tsx +0 -1
  760. package/src/components/Header/Header.mobile.tsx +4 -6
  761. package/src/components/Header/HeaderSubMenu.tsx +3 -4
  762. package/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  763. package/src/components/ImgBlock/ImgBlock.example.json +11 -0
  764. package/src/components/ImgBlock/ImgBlock.fixture.tsx +21 -0
  765. package/src/components/ImgBlock/ImgBlock.tsx +17 -0
  766. package/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  767. package/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  768. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
  769. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
  770. package/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  771. package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +45 -0
  772. package/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  773. package/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  774. package/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  775. package/src/components/ProductGallery/ProductGallery.tsx +13 -13
  776. package/src/components/RollupItem/RollupItem.tsx +10 -1
  777. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  778. package/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  779. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  780. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  781. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  782. package/src/components/StepsBlock/StepsBlock.tsx +2 -3
  783. package/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  784. package/src/components/TariffsTable/TariffsTable.tsx +20 -22
  785. package/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
  786. package/src/components/Video/VideoContent.ts +1 -0
  787. package/src/hooks/useIntersectionObserver.ts +23 -2
  788. package/src/hooks/useLink.ts +2 -2
  789. package/src/ui-kit/BlockWrapper.tsx +1 -16
  790. package/src/ui-kit/Button/ArrowButton.tsx +13 -0
  791. package/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  792. package/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  793. package/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  794. package/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  795. package/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  796. package/src/ui-kit/Radio/Radio.tsx +1 -1
  797. package/src/ui-kit/Radio/RadioProps.ts +1 -1
  798. package/src/ui-kit/Select/Select.tsx +0 -1
  799. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  800. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  801. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  802. package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  803. package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  804. package/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  805. package/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  806. package/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  807. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  808. package/src/ui-kit/Text/Text.tsx +1 -63
  809. package/src/ui-kit/Text/TextProps.ts +63 -0
  810. package/src/utils/areArraysEqual.ts +2 -0
  811. package/src/utils/mapChildren.ts +11 -0
  812. package/src/utils/maxBy.ts +3 -4
  813. package/src/utils/minBy.ts +5 -0
  814. package/tailwind.config.cjs +8 -0
  815. package/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  816. package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  817. package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  818. package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  819. package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  820. package/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  821. package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  822. package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  823. package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  824. package/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  825. package/dist/components/Carousel/CarouselContainer.js +0 -14
  826. package/dist/components/Carousel/CarouselContainer.js.map +0 -1
  827. package/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  828. package/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  829. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  830. package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  831. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  832. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  833. package/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  834. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  835. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  836. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  837. package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  838. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  839. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  840. package/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  841. package/dist/ui-kit/SwipeListControl/constants.js +0 -12
  842. package/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  843. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  844. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  845. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  846. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  847. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  848. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  849. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  850. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  851. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  852. package/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  853. package/lib/components/Carousel/CarouselContainer.js +0 -12
  854. package/lib/components/Carousel/CarouselContainer.js.map +0 -1
  855. package/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  856. package/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  857. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  858. package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  859. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  860. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  861. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  862. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  863. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  864. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  865. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  866. package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  867. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  868. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  869. package/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  870. package/lib/ui-kit/SwipeListControl/constants.js +0 -10
  871. package/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  872. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  873. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  874. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  875. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -7
  876. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  877. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  878. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -11
  879. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  880. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  881. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  882. package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  883. package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  884. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  885. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  886. package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  887. package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  888. package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  889. package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  890. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  891. package/mobile/dist/components/Carousel/CarouselContainer.js +0 -14
  892. package/mobile/dist/components/Carousel/CarouselContainer.js.map +0 -1
  893. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  894. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  895. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  896. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  897. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  898. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  899. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  900. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  901. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  902. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  903. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  904. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  905. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  906. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  907. package/mobile/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  908. package/mobile/dist/ui-kit/SwipeListControl/constants.js +0 -12
  909. package/mobile/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  910. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  911. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  912. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  913. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  914. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  915. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  916. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  917. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  918. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  919. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  920. package/mobile/lib/components/Carousel/CarouselContainer.js +0 -12
  921. package/mobile/lib/components/Carousel/CarouselContainer.js.map +0 -1
  922. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  923. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  924. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  925. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  926. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  927. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  928. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  929. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  930. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  931. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  932. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  933. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  934. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  935. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  936. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  937. package/mobile/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  938. package/mobile/lib/ui-kit/SwipeListControl/constants.js +0 -10
  939. package/mobile/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  940. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  941. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  942. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  943. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  944. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  945. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  946. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  947. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  948. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  949. package/mobile/src/components/Carousel/CarouselContainer.tsx +0 -34
  950. package/mobile/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  951. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  952. package/mobile/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  953. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
  954. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  955. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  956. package/mobile/src/ui-kit/SwipeListControl/constants.ts +0 -10
  957. package/mobile/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  958. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  959. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
  960. package/src/components/Carousel/CarouselContainer.tsx +0 -34
  961. package/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  962. package/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  963. package/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  964. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
  965. package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  966. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  967. package/src/ui-kit/SwipeListControl/constants.ts +0 -10
  968. package/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  969. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  970. package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
@@ -0,0 +1,97 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
3
+ import type { IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
4
+ import { mapChildren } from '../../utils/mapChildren';
5
+ import type { SwipeContainerProps } from './SwipeListControlProps';
6
+ import { SwipeListItem } from './SwipeListItem';
7
+
8
+ type ItemsVisibilityList = Array<IntersectionObserverEntry | undefined>;
9
+
10
+ type SwipeListItemWidthAuto = 0;
11
+
12
+ /**
13
+ * @title Список
14
+ */
15
+ interface SwipeListContainerProps extends SwipeContainerProps {
16
+ className?: string;
17
+ containerRef?: { current: HTMLDivElement | null };
18
+ activeIndex?: number;
19
+ visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3;
20
+ snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
21
+ onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
22
+ onVisibleIndicesChange?: (indices: number[]) => void;
23
+ }
24
+
25
+ const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]'];
26
+
27
+ export const SwipeListContainer = JSX<SwipeListContainerProps>(
28
+ ({
29
+ className = '',
30
+ containerRef,
31
+ activeIndex,
32
+ visibleItemCount,
33
+ gap = 0,
34
+ padding = 0,
35
+ snapAlign = 'snap-center',
36
+ children,
37
+ onVisibleItemsChange,
38
+ onVisibleIndicesChange,
39
+ }) => {
40
+ const observerOptions: IntersectionObserverOptions = {
41
+ sensitivity: 1,
42
+ rootRef: containerRef,
43
+ };
44
+
45
+ const itemsVisibilityListRef = useRef<ItemsVisibilityList>([]);
46
+ const handleIntersection = useCallback(
47
+ (idx: number, entry: IntersectionObserverEntry) => {
48
+ const itemsVisibilityList = [...(itemsVisibilityListRef.current || [])];
49
+ itemsVisibilityList[idx] = entry;
50
+ itemsVisibilityListRef.current = itemsVisibilityList;
51
+
52
+ onVisibleItemsChange && onVisibleItemsChange(itemsVisibilityList);
53
+ onVisibleIndicesChange && onVisibleIndicesChange(getVisibleIndices(itemsVisibilityList));
54
+ },
55
+ [onVisibleItemsChange, onVisibleIndicesChange],
56
+ );
57
+
58
+ return (
59
+ <div
60
+ className={`box-border overflow-auto flex horizontal-list no-scrollbar ${className}`}
61
+ style={{ ...getContainerStyle(padding), gap: `${gap}px` }}
62
+ role="list"
63
+ ref={containerRef}
64
+ >
65
+ {mapChildren((child, idx) => (
66
+ <SwipeListItem
67
+ key={String(idx)}
68
+ className={`${snapAlign} ${
69
+ visibleItemCount ? childStyleMap[visibleItemCount - 1] : ''
70
+ }`}
71
+ style={getContainerStyle(padding / 4)}
72
+ activeIndex={activeIndex}
73
+ idx={idx}
74
+ observerOptions={observerOptions}
75
+ onIntersection={handleIntersection}
76
+ >
77
+ {child}
78
+ </SwipeListItem>
79
+ ))(children)}
80
+ </div>
81
+ );
82
+ },
83
+ );
84
+
85
+ // Styles used to compensate outer container padding to get rid of clipping effect
86
+ const getContainerStyle = (padding: number): Record<string, string> => ({
87
+ marginLeft: `${-padding}px`,
88
+ marginRight: `${-padding}px`,
89
+ paddingLeft: `${padding}px`,
90
+ paddingRight: `${padding}px`,
91
+ });
92
+
93
+ const getVisibleIndices = (itemsVisibilityList: ItemsVisibilityList) =>
94
+ itemsVisibilityList
95
+ .map((_, i): [IntersectionObserverEntry | undefined, number] => [_, i])
96
+ .filter(([_]) => _ && _.intersectionRatio >= 0.9)
97
+ .map(([, i]) => i);
@@ -1,12 +1,17 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
2
+ import { SwipeListContainer } from './SwipeListContainer';
4
3
  import { SwipeListControlDots } from './SwipeListControlDots';
5
- import { SwipeListControlList } from './SwipeListControlList';
6
- import type { SwipeListControlListProps } from './SwipeListControlList';
7
4
  import type { SwipeListControlProps } from './SwipeListControlProps';
8
- import { getIndexParts } from './utils/getIndexParts';
9
- import { getScrollPoints } from './utils/getScrollPoints';
5
+ import { useSwipeListScroll } from './useSwipeListScroll';
6
+
7
+ const DEFAULT_GAP = 14;
8
+
9
+ /*
10
+ Horizontal padding used on a container above SwipeListControl.
11
+ Same value used on a SwipeListControlChildren container to compensate it
12
+ and get rid of a clipping effect caused by overflow: hidden.
13
+ */
14
+ const DEFAULT_PADDING = 16;
10
15
 
11
16
  export const SwipeListControl = JSX<SwipeListControlProps>(
12
17
  ({
@@ -14,65 +19,36 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
14
19
  gap = DEFAULT_GAP,
15
20
  padding = DEFAULT_PADDING,
16
21
  showDots = true,
17
- onSlideChange,
18
22
  children,
23
+ onVisibleIndicesChange,
19
24
  }) => {
20
- const [activeIndex, setActiveIndex] = useState(0);
21
- const [indexFraction, setIndexFraction] = useState(0);
22
-
23
- const dotsProps = {
24
- activeIndex,
25
- indexFraction,
26
- showDots,
27
- children,
28
- };
29
-
30
- const handleScroll: SwipeListControlListProps['onScroll'] = useCallback(
31
- (e) => {
32
- const {
33
- scrollLeft,
34
- clientWidth,
35
- childElementCount,
36
- scrollWidth,
37
- children: childrenCollection,
38
- } = e?.currentTarget as HTMLElement;
39
- if (!childrenCollection[0]) {
40
- return;
41
- }
25
+ const itemCount = Array.isArray(children) ? children.length : 0;
42
26
 
43
- // horizontal PADDING / 2 to compensate padding-margin combo of child container
44
- // without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
45
- const itemWidth = (childrenCollection[0] as HTMLElement).offsetWidth - padding / 2;
46
- const scrollPoints = getScrollPoints({
47
- gap,
48
- padding,
49
- clientWidth,
50
- scrollWidth,
51
- childElementCount,
52
- itemWidth,
53
- });
54
-
55
- const { index, fraction } = getIndexParts(scrollLeft, scrollPoints);
56
- if (index !== activeIndex && onSlideChange) {
57
- onSlideChange();
58
- }
59
- setActiveIndex(index);
60
- setIndexFraction(fraction);
61
- },
62
- [gap, padding, activeIndex, onSlideChange],
63
- );
27
+ const [containerRef, scroll] = useSwipeListScroll<HTMLDivElement>({
28
+ itemCount,
29
+ onVisibleIndicesChange,
30
+ });
31
+ const [activeIndex] = scroll.visibleIndicesRange;
64
32
 
65
33
  return (
66
34
  <div className={className}>
67
- <SwipeListControlList
35
+ <SwipeListContainer
36
+ containerRef={containerRef}
37
+ activeIndex={activeIndex}
38
+ visibleItemCount={1}
68
39
  gap={gap}
69
40
  padding={padding}
70
- activeIndex={activeIndex}
71
- onScroll={handleScroll}
41
+ onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
72
42
  >
73
43
  {children}
74
- </SwipeListControlList>
75
- <SwipeListControlDots {...dotsProps} />
44
+ </SwipeListContainer>
45
+ {showDots ? (
46
+ <SwipeListControlDots
47
+ containerRef={containerRef}
48
+ activeIndex={activeIndex}
49
+ dotCount={itemCount}
50
+ />
51
+ ) : null}
76
52
  </div>
77
53
  );
78
54
  },
@@ -1,70 +1,36 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
2
 
4
- const DOT_STYLES = 'bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full';
5
- const BASE_DOT_WIDTH = 6;
6
- const ACTIVE_DOT_WIDTH_CHANGE = 16;
7
- const BASE_DOT_OPACITY = 0.3;
8
- const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
3
+ const dotStyle = 'cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300';
9
4
 
10
- export interface SwipeListControlDotsProps {
11
- activeIndex: number;
12
- indexFraction: number;
13
- showDots?: boolean;
5
+ interface SwipeListControlDotsProps {
6
+ containerRef?: { current: HTMLDivElement | null };
7
+ activeIndex?: number;
8
+ dotCount?: number;
14
9
  }
15
10
 
16
11
  export const SwipeListControlDots = JSX<SwipeListControlDotsProps>(
17
- ({ children, activeIndex, indexFraction, showDots }) => {
18
- const handleClick = useCallback(
19
- (idx: number) => (e) => {
20
- if (idx === activeIndex) {
21
- return;
22
- }
23
-
24
- const contentContainer = (e.currentTarget as HTMLElement).parentElement
25
- ?.previousElementSibling;
26
-
27
- contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
28
- },
29
- [activeIndex],
30
- );
31
-
32
- return showDots && children ? (
12
+ ({ containerRef, activeIndex, dotCount = 0 }) => {
13
+ const handleClick = (idx: number) => {
14
+ if (idx !== activeIndex && containerRef?.current) {
15
+ containerRef.current.children[idx]?.scrollIntoView({
16
+ behavior: 'smooth',
17
+ block: 'nearest',
18
+ });
19
+ }
20
+ };
21
+
22
+ return dotCount ? (
33
23
  <div className="flex gap-2 mx-auto mt-5 w-fit">
34
- {children.length && children.map ? (
35
- children.map((_, idx: number) => (
36
- <div
37
- key={String(idx)}
38
- onClick={handleClick(idx)}
39
- className={DOT_STYLES}
40
- style={getDotStyles(idx, activeIndex, indexFraction)}
41
- aria-hidden
42
- />
43
- ))
44
- ) : (
45
- <div className={DOT_STYLES} style={createDotStyle(1)} />
46
- )}
24
+ {new Array(dotCount).fill(null).map((_, idx: number) => (
25
+ <div
26
+ key={String(idx)}
27
+ className={`${dotStyle} ${idx === activeIndex ? 'w-6' : 'w-2 opacity-30'}`}
28
+ role="button"
29
+ aria-hidden
30
+ onClick={() => handleClick(idx)}
31
+ />
32
+ ))}
47
33
  </div>
48
34
  ) : null;
49
35
  },
50
36
  );
51
-
52
- const getDotStyles = (
53
- currentIdx: number,
54
- activeIndex: number,
55
- indexFraction: number,
56
- ): Record<string, string> | undefined => {
57
- if (currentIdx < activeIndex || currentIdx > activeIndex + 1) {
58
- return undefined;
59
- }
60
-
61
- const leftIndexMod = 1 - indexFraction;
62
- const rightIndexMod = indexFraction;
63
-
64
- return createDotStyle(currentIdx === activeIndex ? leftIndexMod : rightIndexMod);
65
- };
66
-
67
- const createDotStyle = (indexModifier: number): Record<string, string> => ({
68
- opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * indexModifier}`,
69
- width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * indexModifier}px`,
70
- });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @title Контейнер
3
3
  */
4
- export interface SwipeContainer {
4
+ export interface SwipeContainerProps {
5
5
  /** @title Расстояние между элементами */
6
6
  gap?: number;
7
7
  /** @title Отступы */
@@ -11,9 +11,9 @@ export interface SwipeContainer {
11
11
  /**
12
12
  * @title Swipe-контроллер
13
13
  */
14
- export interface SwipeListControlProps extends SwipeContainer {
14
+ export interface SwipeListControlProps extends SwipeContainerProps {
15
15
  className?: string;
16
16
  /** @title Точки-индикаторы */
17
17
  showDots?: boolean;
18
- onSlideChange?: () => void;
18
+ onVisibleIndicesChange?: (indices: number[]) => void;
19
19
  }
@@ -0,0 +1,44 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import {
4
+ useIntersectionObserver,
5
+ type IntersectionObserverOptions,
6
+ } from '../../hooks/useIntersectionObserver';
7
+
8
+ /**
9
+ * @title Элемент списка
10
+ */
11
+ interface SwipeListControlItemProps {
12
+ className?: string;
13
+ style?: Record<string, string>;
14
+ idx?: number;
15
+ activeIndex?: number;
16
+ observerOptions?: IntersectionObserverOptions;
17
+ onIntersection?: (idx: number, entry: IntersectionObserverEntry) => void;
18
+ }
19
+
20
+ export const SwipeListItem = JSX<SwipeListControlItemProps>(
21
+ ({ className = '', style, idx, activeIndex, observerOptions, children, onIntersection }) => {
22
+ const observerCallback = useCallback(
23
+ (entries: IntersectionObserverEntry[]) => {
24
+ if (entries.length && onIntersection) {
25
+ onIntersection(idx || 0, entries[entries.length - 1]);
26
+ }
27
+ },
28
+ [onIntersection, idx],
29
+ );
30
+ const ref = useIntersectionObserver<HTMLDivElement>(observerCallback, observerOptions);
31
+
32
+ return (
33
+ <div
34
+ className={`inline-block snap-always box-border ${className}`}
35
+ style={style}
36
+ role="listitem"
37
+ aria-current={Boolean(idx === activeIndex)}
38
+ ref={ref}
39
+ >
40
+ {children}
41
+ </div>
42
+ );
43
+ },
44
+ );
@@ -0,0 +1,10 @@
1
+ const getItemWidth =
2
+ (container: HTMLElement) =>
3
+ (itemCount: number): number =>
4
+ container.scrollWidth / itemCount;
5
+
6
+ export const scrollBy =
7
+ (container: HTMLElement) =>
8
+ (itemCount: number, delta: -1 | 1): void => {
9
+ container.scrollBy({ left: delta * getItemWidth(container)(itemCount), behavior: 'smooth' });
10
+ };
@@ -0,0 +1,3 @@
1
+ export const scrollToEnd = (container: HTMLElement): void => {
2
+ container.scrollTo({ left: container.scrollWidth, behavior: 'smooth' });
3
+ };
@@ -0,0 +1,3 @@
1
+ export const scrollToStart = (container: HTMLElement): void => {
2
+ container.scrollTo({ left: 0, behavior: 'smooth' });
3
+ };
@@ -0,0 +1,84 @@
1
+ import { useCallback, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { areArraysEqual } from '../../utils/areArraysEqual';
3
+ import { maxBy } from '../../utils/maxBy';
4
+ import { minBy } from '../../utils/minBy';
5
+ import { scrollBy } from './scrollBy';
6
+ import { scrollToEnd } from './scrollToEnd';
7
+ import { scrollToStart } from './scrollToStart';
8
+
9
+ export interface SwipeListScroll {
10
+ scrollLeft: () => void;
11
+ scrollRight: () => void;
12
+ canScrollLeft: boolean;
13
+ canScrollRight: boolean;
14
+ visibleIndicesRange: [number, number];
15
+ handleVisibleIndicesChange: (indices: number[]) => void;
16
+ }
17
+
18
+ interface SwipeListScrollProps {
19
+ itemCount: number;
20
+ isCyclic?: boolean;
21
+ onVisibleIndicesChange?: (indices: number[]) => void;
22
+ }
23
+
24
+ export const useSwipeListScroll = <E extends HTMLElement>({
25
+ itemCount,
26
+ isCyclic,
27
+ onVisibleIndicesChange,
28
+ }: SwipeListScrollProps): [containerRef: { current: E | null }, scroll: SwipeListScroll] => {
29
+ const containerRef = useRef<E | null>(null);
30
+
31
+ const [visibleIndices, setVisibleIndices] = useState<number[]>([]);
32
+ const handleVisibleIndicesChange = useCallback(
33
+ (indices: number[]) => {
34
+ setVisibleIndices((prevIndices) =>
35
+ areArraysEqual(prevIndices, indices) ? prevIndices : indices,
36
+ );
37
+ onVisibleIndicesChange && onVisibleIndicesChange(indices);
38
+ },
39
+ [itemCount],
40
+ );
41
+
42
+ const [minIndex, maxIndex] = visibleIndices.length
43
+ ? [minBy<number>()(visibleIndices), maxBy<number>()(visibleIndices)]
44
+ : [-1, -1];
45
+
46
+ const canScrollLeft = minIndex > 0;
47
+ const canScrollRight = maxIndex < itemCount - 1;
48
+
49
+ const scrollLeft = useCallback(() => {
50
+ if (!containerRef.current) {
51
+ return;
52
+ }
53
+
54
+ if (isCyclic && !canScrollLeft) {
55
+ scrollToEnd(containerRef.current);
56
+ } else {
57
+ scrollBy(containerRef.current)(itemCount, -1);
58
+ }
59
+ }, [isCyclic, itemCount, canScrollLeft]);
60
+
61
+ const scrollRight = useCallback(() => {
62
+ if (!containerRef.current) {
63
+ return;
64
+ }
65
+
66
+ if (isCyclic && !canScrollRight) {
67
+ scrollToStart(containerRef.current);
68
+ } else {
69
+ scrollBy(containerRef.current)(itemCount, 1);
70
+ }
71
+ }, [itemCount, isCyclic, canScrollRight]);
72
+
73
+ return [
74
+ containerRef,
75
+ {
76
+ scrollLeft,
77
+ scrollRight,
78
+ canScrollLeft: isCyclic || canScrollLeft,
79
+ canScrollRight: isCyclic || canScrollRight,
80
+ visibleIndicesRange: [minIndex, maxIndex],
81
+ handleVisibleIndicesChange,
82
+ },
83
+ ];
84
+ };
@@ -1,67 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
-
3
- /**
4
- * @title Размер текста
5
- */
6
- export type TextSize =
7
- | ''
8
- | 'text-xs-light'
9
- | 'text-s-light'
10
- | 'text-s'
11
- | 'text-m-light'
12
- | 'text-m'
13
- | 'text-l-light'
14
- | 'text-l'
15
- | 'text-xl-light'
16
- | 'text-xl';
17
-
18
- /**
19
- * @title Размер текста
20
- */
21
- export type TitleSize =
22
- | ''
23
- | 'text-h6'
24
- | 'text-h5'
25
- | 'text-h5-light'
26
- | 'text-h4'
27
- | 'text-h3'
28
- | 'text-h2'
29
- | 'text-h1'
30
- | 'text-h0'
31
- | 'text-m-title'
32
- | 'text-m-title-xs'
33
- | 'title-extra'
34
- | 'title-huge';
35
-
36
- /**
37
- * @title Цвет текста
38
- */
39
- export type TextColor =
40
- | ''
41
- | 'text-main'
42
- | 'text-primary-text'
43
- | 'text-primary-main'
44
- | 'text-secondary-text'
45
- | 'text-secondary-light'
46
- | 'text-error'
47
- | 'text-white'
48
- | 'text-green';
49
-
50
- /**
51
- * @title Выравнивание
52
- * @enumNames [
53
- * "По умолчанию",
54
- * "По левому краю",
55
- * "По центру",
56
- * "По правому краю"
57
- * ]
58
- */
59
- export type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
60
-
61
- /**
62
- * @title Насыщенность шрифта
63
- */
64
- export type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
2
+ import type { FontWeight, TextAlign, TextColor, TextSize, TitleSize } from './TextProps';
65
3
 
66
4
  interface TextProps {
67
5
  size?: TextSize | TitleSize;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @title Размер текста
3
+ */
4
+ export type TextSize =
5
+ | ''
6
+ | 'text-xs'
7
+ | 'text-xs-light'
8
+ | 'text-s-light'
9
+ | 'text-s'
10
+ | 'text-m-light'
11
+ | 'text-m'
12
+ | 'text-l-light'
13
+ | 'text-l'
14
+ | 'text-xl-light'
15
+ | 'text-xl';
16
+
17
+ /**
18
+ * @title Размер текста
19
+ */
20
+ export type TitleSize =
21
+ | ''
22
+ | 'text-h6'
23
+ | 'text-h5'
24
+ | 'text-h5-light'
25
+ | 'text-h4'
26
+ | 'text-h3'
27
+ | 'text-h2'
28
+ | 'text-h1'
29
+ | 'text-h0'
30
+ | 'text-m-title'
31
+ | 'text-m-title-xs'
32
+ | 'title-extra'
33
+ | 'title-huge';
34
+
35
+ /**
36
+ * @title Цвет текста
37
+ */
38
+ export type TextColor =
39
+ | ''
40
+ | 'text-main'
41
+ | 'text-primary-text'
42
+ | 'text-primary-main'
43
+ | 'text-secondary-text'
44
+ | 'text-secondary-light'
45
+ | 'text-error'
46
+ | 'text-white'
47
+ | 'text-green';
48
+
49
+ /**
50
+ * @title Выравнивание
51
+ * @enumNames [
52
+ * "По умолчанию",
53
+ * "По левому краю",
54
+ * "По центру",
55
+ * "По правому краю"
56
+ * ]
57
+ */
58
+ export type TextAlign = '' | 'text-left' | 'text-center' | 'text-right';
59
+
60
+ /**
61
+ * @title Насыщенность шрифта
62
+ */
63
+ export type FontWeight = '' | 'font-light' | 'font-normal' | 'font-medium';
@@ -0,0 +1,2 @@
1
+ export const areArraysEqual = <T>(as?: T[], bs?: T[]): boolean =>
2
+ as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
@@ -0,0 +1,11 @@
1
+ import type { VNode } from '../model/VNode';
2
+
3
+ export const mapChildren =
4
+ (mapper: (node: VNode, idx: number) => VNode) =>
5
+ (children: VNode): VNode => {
6
+ if (children === null || children === undefined) {
7
+ return children;
8
+ }
9
+
10
+ return Array.isArray(children) ? children.map(mapper) : mapper(children, 0);
11
+ };
@@ -1,7 +1,6 @@
1
+ export const defaultDiscriminator = <Item, Value>(_: Item): Value => _ as any;
2
+
1
3
  export const maxBy =
2
- <Item, Value>(discriminator: (item: Item) => Value) =>
4
+ <Item, Value = Item>(discriminator: (item: Item) => Value = defaultDiscriminator) =>
3
5
  (list: Item[]): Item =>
4
6
  list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
5
-
6
- export const minBy = <Item, Value>(discriminator: (item: Item) => Value) =>
7
- maxBy((_: Item) => -discriminator(_));
@@ -0,0 +1,5 @@
1
+ import { defaultDiscriminator, maxBy } from './maxBy';
2
+
3
+ export const minBy = <Item, Value = Item>(
4
+ discriminator: (item: Item) => Value = defaultDiscriminator,
5
+ ) => maxBy((_: Item) => -discriminator(_));
@@ -181,6 +181,14 @@ module.exports = {
181
181
  fontWeight: '300',
182
182
  },
183
183
  ],
184
+ xs: [
185
+ '0.75rem',
186
+ {
187
+ // 12px 18px
188
+ lineHeight: '1.125rem',
189
+ fontWeight: '400',
190
+ },
191
+ ],
184
192
  'xs-light': [
185
193
  '0.75rem',
186
194
  {
@@ -1,10 +0,0 @@
1
- interface CarouselContainerProps {
2
- activeIndex: number;
3
- itemCount: number;
4
- visibleItemCount?: number;
5
- containerRef?: {
6
- current: HTMLDivElement | null;
7
- };
8
- }
9
- export declare const CarouselContainer: import("@redneckz/uni-jsx").UNIComponent<CarouselContainerProps, any, any>;
10
- export {};
@@ -1,5 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { InvestmentGalleryContent } from './InvestmentGalleryContent';
3
- export interface InvestmentGalleryProps extends InvestmentGalleryContent, UniBlockProps {
4
- }
5
- export declare const InvestmentGallery: import("@redneckz/uni-jsx").UNIComponent<InvestmentGalleryProps, any, any>;