@redneckz/wildless-cms-uni-blocks 0.3.83 → 0.3.85

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 (908) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +390 -324
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/Logo.svg +1 -0
  5. package/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  6. package/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  7. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  8. package/dist/components/Calculator/Calculator.js +7 -7
  9. package/dist/components/Calculator/Calculator.js.map +1 -1
  10. package/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  11. package/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  12. package/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  13. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  14. package/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  15. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  16. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  17. package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  18. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  19. package/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  20. package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  21. package/dist/components/Calculator/Rate.d.ts +7 -0
  22. package/dist/components/Calculator/Rate.js +6 -0
  23. package/dist/components/Calculator/Rate.js.map +1 -0
  24. package/dist/components/Calculator/constants.d.ts +13 -4
  25. package/dist/components/Calculator/constants.js +34 -5
  26. package/dist/components/Calculator/constants.js.map +1 -1
  27. package/dist/components/Calculator/getBonus.d.ts +2 -0
  28. package/dist/components/Calculator/getBonus.js +16 -0
  29. package/dist/components/Calculator/getBonus.js.map +1 -0
  30. package/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  31. package/dist/components/Calculator/getDefaultMonths.js +1 -4
  32. package/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  33. package/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  34. package/dist/components/Calculator/getDefaultSum.js +1 -3
  35. package/dist/components/Calculator/getDefaultSum.js.map +1 -1
  36. package/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  37. package/dist/components/Calculator/getMonthlyPayment.js +10 -11
  38. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  39. package/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  40. package/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  41. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  42. package/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  43. package/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  44. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  45. package/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  46. package/dist/components/Calculator/renderMonthsInput.js +4 -3
  47. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  48. package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  49. package/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  50. package/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  51. package/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  52. package/dist/components/Calculator/renderRealEstateValue.js +6 -5
  53. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  54. package/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  55. package/dist/components/Calculator/renderWantedSumInput.js +5 -7
  56. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  57. package/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  58. package/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  59. package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  60. package/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  61. package/dist/components/Calculator/useCalculatorParams.js +12 -0
  62. package/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  63. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  64. package/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  65. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  66. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  67. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  68. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  69. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  70. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  71. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  72. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  73. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  74. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  75. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  76. package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  77. package/dist/components/ExchangeRateTile/renderButton.js +2 -2
  78. package/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  79. package/dist/components/ExchangeRateTile/renderInput.js +1 -1
  80. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  81. package/dist/components/Footer/HorizontalNavigation.js +2 -2
  82. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  83. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -2
  84. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  85. package/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  86. package/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  87. package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  88. package/dist/components/Footer/MediaButton.js +2 -1
  89. package/dist/components/Footer/MediaButton.js.map +1 -1
  90. package/dist/components/Footer/TextInformation.js +2 -2
  91. package/dist/components/Footer/TextInformation.js.map +1 -1
  92. package/dist/components/Footer/TextInformation.mobile.js +2 -2
  93. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  94. package/dist/components/Footer/TextInformationLink.d.ts +8 -0
  95. package/dist/components/Footer/TextInformationLink.js +6 -0
  96. package/dist/components/Footer/TextInformationLink.js.map +1 -0
  97. package/dist/components/Gallery/Gallery.mobile.js +2 -1
  98. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  99. package/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  100. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  101. package/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  102. package/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  103. package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  104. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  105. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  106. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  107. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  108. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  109. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  110. package/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  111. package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  112. package/dist/components/ProductBlock/ProductBlock.js +3 -1
  113. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  114. package/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  115. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  116. package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  117. package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  118. package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  119. package/dist/components/StepsBlock/StepsBlock.js +3 -1
  120. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  121. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  122. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  123. package/dist/components/TariffsTable/TariffsTable.mobile.js +3 -2
  124. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  125. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  126. package/dist/components/TextBlock/TextBlock.mobile.js +2 -1
  127. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  128. package/dist/components/Tile/Tile.js +4 -3
  129. package/dist/components/Tile/Tile.js.map +1 -1
  130. package/dist/content-page-repository/transformPicture.js +7 -3
  131. package/dist/content-page-repository/transformPicture.js.map +1 -1
  132. package/dist/hooks/useExchangeRates.js +5 -7
  133. package/dist/hooks/useExchangeRates.js.map +1 -1
  134. package/dist/icons/IconName.d.ts +4 -2
  135. package/dist/icons/IconName.js +2 -0
  136. package/dist/icons/IconName.js.map +1 -1
  137. package/dist/model/Picture.d.ts +4 -3
  138. package/dist/services/sitemap/findActiveSubItem.js +1 -2
  139. package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  140. package/dist/ui-kit/BlockWrapper.js +2 -2
  141. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  142. package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  143. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  144. package/dist/ui-kit/Button/ButtonSection.js +1 -1
  145. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  146. package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  147. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  148. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  149. package/dist/ui-kit/Foldable/Foldable.js +4 -2
  150. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  151. package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
  152. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  153. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  154. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  155. package/dist/ui-kit/Heading/Heading.js +1 -1
  156. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  157. package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
  158. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  159. package/dist/ui-kit/Img/Img.d.ts +0 -3
  160. package/dist/ui-kit/Img/Img.js +4 -30
  161. package/dist/ui-kit/Img/Img.js.map +1 -1
  162. package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
  163. package/dist/ui-kit/Img/Img.mobile.js +4 -31
  164. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  165. package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  166. package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  167. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  168. package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  169. package/dist/ui-kit/Img/ImgInner.js +19 -0
  170. package/dist/ui-kit/Img/ImgInner.js.map +1 -0
  171. package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  172. package/dist/ui-kit/Logo/Logo.js +1 -9
  173. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  174. package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
  175. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  176. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  177. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  178. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  179. package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
  180. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  181. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
  182. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  183. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  184. package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  185. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  186. package/lib/common.css +1 -1
  187. package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  188. package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  189. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  190. package/lib/components/Calculator/Calculator.js +7 -7
  191. package/lib/components/Calculator/Calculator.js.map +1 -1
  192. package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  193. package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  194. package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  195. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  196. package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  197. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  198. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  199. package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  200. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  201. package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  202. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  203. package/lib/components/Calculator/Rate.d.ts +7 -0
  204. package/lib/components/Calculator/Rate.js +4 -0
  205. package/lib/components/Calculator/Rate.js.map +1 -0
  206. package/lib/components/Calculator/constants.d.ts +13 -4
  207. package/lib/components/Calculator/constants.js +33 -4
  208. package/lib/components/Calculator/constants.js.map +1 -1
  209. package/lib/components/Calculator/getBonus.d.ts +2 -0
  210. package/lib/components/Calculator/getBonus.js +13 -0
  211. package/lib/components/Calculator/getBonus.js.map +1 -0
  212. package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  213. package/lib/components/Calculator/getDefaultMonths.js +1 -4
  214. package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  215. package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  216. package/lib/components/Calculator/getDefaultSum.js +1 -3
  217. package/lib/components/Calculator/getDefaultSum.js.map +1 -1
  218. package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  219. package/lib/components/Calculator/getMonthlyPayment.js +11 -12
  220. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  221. package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  222. package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  223. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  224. package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  225. package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  226. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  227. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  228. package/lib/components/Calculator/renderMonthsInput.js +4 -3
  229. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  230. package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  231. package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  232. package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  233. package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  234. package/lib/components/Calculator/renderRealEstateValue.js +6 -5
  235. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  236. package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  237. package/lib/components/Calculator/renderWantedSumInput.js +5 -7
  238. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  239. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  240. package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  241. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  242. package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  243. package/lib/components/Calculator/useCalculatorParams.js +9 -0
  244. package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  245. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  246. package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  247. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  248. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  249. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  250. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  251. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  252. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  253. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  254. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  255. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  256. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  257. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  258. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  259. package/lib/components/ExchangeRateTile/renderButton.js +2 -2
  260. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  261. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  262. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  263. package/lib/components/Footer/HorizontalNavigation.js +2 -2
  264. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  265. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
  266. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  267. package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  268. package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  269. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  270. package/lib/components/Footer/MediaButton.js +2 -1
  271. package/lib/components/Footer/MediaButton.js.map +1 -1
  272. package/lib/components/Footer/TextInformation.js +2 -2
  273. package/lib/components/Footer/TextInformation.js.map +1 -1
  274. package/lib/components/Footer/TextInformation.mobile.js +2 -2
  275. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  276. package/lib/components/Footer/TextInformationLink.d.ts +8 -0
  277. package/lib/components/Footer/TextInformationLink.js +4 -0
  278. package/lib/components/Footer/TextInformationLink.js.map +1 -0
  279. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  280. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  281. package/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  282. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  283. package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  284. package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  285. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  286. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  287. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  288. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  289. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  290. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  291. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  292. package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  293. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  294. package/lib/components/ProductBlock/ProductBlock.js +3 -1
  295. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  296. package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  297. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  298. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  299. package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  300. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  301. package/lib/components/StepsBlock/StepsBlock.js +3 -1
  302. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  303. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  304. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  305. package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
  306. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  307. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  308. package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
  309. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  310. package/lib/components/Tile/Tile.js +4 -3
  311. package/lib/components/Tile/Tile.js.map +1 -1
  312. package/lib/content-page-repository/transformPicture.js +7 -3
  313. package/lib/content-page-repository/transformPicture.js.map +1 -1
  314. package/lib/hooks/useExchangeRates.js +5 -7
  315. package/lib/hooks/useExchangeRates.js.map +1 -1
  316. package/lib/icons/IconName.d.ts +4 -2
  317. package/lib/icons/IconName.js +2 -0
  318. package/lib/icons/IconName.js.map +1 -1
  319. package/lib/model/Picture.d.ts +4 -3
  320. package/lib/services/sitemap/findActiveSubItem.js +1 -2
  321. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  322. package/lib/ui-kit/BlockWrapper.js +2 -2
  323. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  324. package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  325. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  326. package/lib/ui-kit/Button/ButtonSection.js +1 -1
  327. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  328. package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  329. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  330. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  331. package/lib/ui-kit/Foldable/Foldable.js +4 -2
  332. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  333. package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
  334. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  335. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  336. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  337. package/lib/ui-kit/Heading/Heading.js +1 -1
  338. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  339. package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
  340. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  341. package/lib/ui-kit/Img/Img.d.ts +0 -3
  342. package/lib/ui-kit/Img/Img.js +4 -29
  343. package/lib/ui-kit/Img/Img.js.map +1 -1
  344. package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
  345. package/lib/ui-kit/Img/Img.mobile.js +4 -30
  346. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  347. package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  348. package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  349. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  350. package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  351. package/lib/ui-kit/Img/ImgInner.js +17 -0
  352. package/lib/ui-kit/Img/ImgInner.js.map +1 -0
  353. package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  354. package/lib/ui-kit/Logo/Logo.js +1 -9
  355. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  356. package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
  357. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  358. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  359. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
  360. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  361. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  362. package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
  363. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  364. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
  365. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  366. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  367. package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  368. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  369. package/mobile/bundle/bundle.umd.js +117 -93
  370. package/mobile/bundle/bundle.umd.min.js +1 -1
  371. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  372. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  373. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  374. package/mobile/dist/components/Calculator/Calculator.js +7 -7
  375. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  376. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  377. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  378. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  379. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  380. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  381. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  382. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  383. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  384. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  385. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  386. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  387. package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
  388. package/mobile/dist/components/Calculator/Rate.js +6 -0
  389. package/mobile/dist/components/Calculator/Rate.js.map +1 -0
  390. package/mobile/dist/components/Calculator/constants.d.ts +13 -4
  391. package/mobile/dist/components/Calculator/constants.js +34 -5
  392. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  393. package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
  394. package/mobile/dist/components/Calculator/getBonus.js +16 -0
  395. package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
  396. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  397. package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
  398. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  399. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  400. package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
  401. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
  402. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  403. package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
  404. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  405. package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  406. package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  407. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  408. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  409. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  410. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  411. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  412. package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
  413. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  414. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  415. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  416. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  417. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  418. package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
  419. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  420. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  421. package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
  422. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  423. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  424. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  425. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  426. package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  427. package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
  428. package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  429. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  430. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  431. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  432. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  433. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  434. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  435. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  436. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  437. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  438. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  439. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  440. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  441. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  442. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  443. package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
  444. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  445. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  446. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  447. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
  448. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  449. package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  450. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  451. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  452. package/mobile/dist/components/Footer/MediaButton.js +2 -1
  453. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  454. package/mobile/dist/components/Footer/TextInformation.js +2 -2
  455. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  456. package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
  457. package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
  458. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
  459. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  460. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  461. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  462. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  463. package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  464. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  465. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  466. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  467. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  468. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  469. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  470. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  471. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  472. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  473. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  474. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  475. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  476. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  477. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  478. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  479. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  480. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
  481. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  482. package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
  483. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  484. package/mobile/dist/components/Tile/Tile.js +4 -3
  485. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  486. package/mobile/dist/content-page-repository/transformPicture.js +7 -3
  487. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  488. package/mobile/dist/hooks/useExchangeRates.js +5 -7
  489. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  490. package/mobile/dist/icons/IconName.d.ts +4 -2
  491. package/mobile/dist/icons/IconName.js +2 -0
  492. package/mobile/dist/icons/IconName.js.map +1 -1
  493. package/mobile/dist/model/Picture.d.ts +4 -3
  494. package/mobile/dist/services/sitemap/findActiveSubItem.js +1 -2
  495. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  496. package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
  497. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  498. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  499. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  500. package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
  501. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  502. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  503. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  504. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  505. package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
  506. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  507. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
  508. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  509. package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
  510. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  511. package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
  512. package/mobile/dist/ui-kit/Img/Img.js +4 -31
  513. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  514. package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  515. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  516. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  517. package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  518. package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
  519. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
  520. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  521. package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
  522. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  523. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  524. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  525. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  526. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
  527. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  528. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  529. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  530. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  531. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  532. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  533. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  534. package/mobile/lib/components/Calculator/Calculator.js +7 -7
  535. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  536. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  537. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  538. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  539. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  540. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  541. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  542. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  543. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  544. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  545. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  546. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  547. package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
  548. package/mobile/lib/components/Calculator/Rate.js +4 -0
  549. package/mobile/lib/components/Calculator/Rate.js.map +1 -0
  550. package/mobile/lib/components/Calculator/constants.d.ts +13 -4
  551. package/mobile/lib/components/Calculator/constants.js +33 -4
  552. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  553. package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
  554. package/mobile/lib/components/Calculator/getBonus.js +13 -0
  555. package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
  556. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  557. package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
  558. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  559. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  560. package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
  561. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
  562. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  563. package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
  564. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  565. package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  566. package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  567. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  568. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  569. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  570. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  571. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  572. package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
  573. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  574. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  575. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  576. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  577. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  578. package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
  579. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  580. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  581. package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
  582. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  583. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  584. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  585. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  586. package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  587. package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
  588. package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  589. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  590. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  591. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  592. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  593. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  594. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  595. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  596. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  597. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  598. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  599. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  600. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  601. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  602. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  603. package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
  604. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  605. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  606. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  607. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
  608. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  609. package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  610. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  611. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  612. package/mobile/lib/components/Footer/MediaButton.js +2 -1
  613. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  614. package/mobile/lib/components/Footer/TextInformation.js +2 -2
  615. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  616. package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
  617. package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
  618. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
  619. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  620. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  621. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  622. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  623. package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  624. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  625. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  626. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  627. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  628. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  629. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  630. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  631. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  632. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  633. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  634. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  635. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  636. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  637. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  638. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  639. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  640. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
  641. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  642. package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
  643. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  644. package/mobile/lib/components/Tile/Tile.js +4 -3
  645. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  646. package/mobile/lib/content-page-repository/transformPicture.js +7 -3
  647. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  648. package/mobile/lib/hooks/useExchangeRates.js +5 -7
  649. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  650. package/mobile/lib/icons/IconName.d.ts +4 -2
  651. package/mobile/lib/icons/IconName.js +2 -0
  652. package/mobile/lib/icons/IconName.js.map +1 -1
  653. package/mobile/lib/model/Picture.d.ts +4 -3
  654. package/mobile/lib/services/sitemap/findActiveSubItem.js +1 -2
  655. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  656. package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
  657. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  658. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  659. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  660. package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
  661. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  662. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  663. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  664. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  665. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
  666. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  667. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
  668. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  669. package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
  670. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  671. package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
  672. package/mobile/lib/ui-kit/Img/Img.js +4 -30
  673. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  674. package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  675. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  676. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  677. package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  678. package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
  679. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
  680. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  681. package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
  682. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  683. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  684. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  685. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  686. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
  687. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  688. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  689. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  690. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  691. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  692. package/mobile/src/components/Calculator/Calculator.tsx +8 -8
  693. package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
  694. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  695. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  696. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  697. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  698. package/mobile/src/components/Calculator/Rate.tsx +22 -0
  699. package/mobile/src/components/Calculator/constants.ts +41 -4
  700. package/mobile/src/components/Calculator/getBonus.ts +38 -0
  701. package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
  702. package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
  703. package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
  704. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  705. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  706. package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
  707. package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  708. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  709. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  710. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  711. package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
  712. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  713. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  714. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  715. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  716. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  717. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  718. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  719. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  720. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  721. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
  722. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  723. package/mobile/src/components/Footer/MediaButton.tsx +2 -7
  724. package/mobile/src/components/Footer/TextInformation.tsx +2 -22
  725. package/mobile/src/components/Footer/TextInformationLink.tsx +23 -0
  726. package/mobile/src/components/Gallery/Gallery.tsx +3 -5
  727. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  728. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  729. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  730. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  731. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  732. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  733. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  734. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  735. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  736. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -3
  737. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
  738. package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
  739. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
  740. package/mobile/src/components/Tile/Tile.example.json +0 -1
  741. package/mobile/src/components/Tile/Tile.tsx +6 -3
  742. package/mobile/src/content-page-repository/transformPicture.ts +7 -5
  743. package/mobile/src/hooks/useExchangeRates.ts +6 -7
  744. package/mobile/src/icons/IconName.ts +4 -4
  745. package/mobile/src/icons/Logo.svg +7 -0
  746. package/mobile/src/model/Picture.ts +5 -3
  747. package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -3
  748. package/mobile/src/ui-kit/BlockWrapper.tsx +2 -5
  749. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  750. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
  751. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  752. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  753. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
  754. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
  755. package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
  756. package/mobile/src/ui-kit/Img/Img.tsx +4 -71
  757. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  758. package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
  759. package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
  760. package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
  761. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  762. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
  763. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  764. package/package.json +2 -1
  765. package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  766. package/src/components/Calculator/Calculator.fixture.tsx +2 -14
  767. package/src/components/Calculator/Calculator.tsx +8 -8
  768. package/src/components/Calculator/CalculatorContent.ts +14 -4
  769. package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  770. package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  771. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  772. package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  773. package/src/components/Calculator/Rate.tsx +22 -0
  774. package/src/components/Calculator/constants.ts +41 -4
  775. package/src/components/Calculator/getBonus.ts +38 -0
  776. package/src/components/Calculator/getDefaultMonths.ts +2 -7
  777. package/src/components/Calculator/getDefaultSum.ts +2 -5
  778. package/src/components/Calculator/getMonthlyPayment.ts +12 -28
  779. package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  780. package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  781. package/src/components/Calculator/renderMonthsInput.tsx +7 -10
  782. package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  783. package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  784. package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  785. package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  786. package/src/components/Calculator/useCalculatorParams.ts +16 -0
  787. package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  788. package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  789. package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  790. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  791. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  792. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
  793. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  794. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  795. package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  796. package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  797. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
  798. package/src/components/Footer/HorizontalNavigation.tsx +2 -20
  799. package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  800. package/src/components/Footer/MediaButton.tsx +2 -7
  801. package/src/components/Footer/TextInformation.mobile.tsx +2 -22
  802. package/src/components/Footer/TextInformation.tsx +2 -22
  803. package/src/components/Footer/TextInformationLink.tsx +23 -0
  804. package/src/components/Gallery/Gallery.mobile.tsx +3 -5
  805. package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  806. package/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  807. package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  808. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  809. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
  810. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  811. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  812. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  813. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  814. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  815. package/src/components/ProductBlock/ProductBlock.tsx +8 -2
  816. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  817. package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -11
  818. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
  819. package/src/components/StepsBlock/StepsBlock.tsx +10 -8
  820. package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
  821. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
  822. package/src/components/TextBlock/TextBlock.tsx +1 -1
  823. package/src/components/Tile/Tile.example.json +0 -1
  824. package/src/components/Tile/Tile.tsx +6 -3
  825. package/src/content-page-repository/transformPicture.ts +7 -5
  826. package/src/hooks/useExchangeRates.ts +6 -7
  827. package/src/icons/IconName.ts +4 -1
  828. package/src/icons/Logo.svg +7 -0
  829. package/src/model/Picture.ts +5 -3
  830. package/src/services/sitemap/findActiveSubItem.ts +2 -3
  831. package/src/ui-kit/BlockWrapper.tsx +2 -5
  832. package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  833. package/src/ui-kit/Button/ButtonSection.tsx +1 -1
  834. package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  835. package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  836. package/src/ui-kit/Foldable/Foldable.tsx +7 -5
  837. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
  838. package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
  839. package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
  840. package/src/ui-kit/Heading/Heading.tsx +1 -1
  841. package/src/ui-kit/Img/Img.mobile.tsx +4 -71
  842. package/src/ui-kit/Img/Img.tsx +6 -60
  843. package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  844. package/src/ui-kit/Img/ImgInner.tsx +37 -0
  845. package/src/ui-kit/Img/ImgProps.ts +1 -0
  846. package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
  847. package/src/ui-kit/Logo/Logo.tsx +5 -11
  848. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
  849. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  850. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
  851. package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
  852. package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  853. package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  854. package/dist/components/Calculator/getCalculatorParams.js +0 -12
  855. package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  856. package/dist/components/Calculator/renderRate.d.ts +0 -8
  857. package/dist/components/Calculator/renderRate.js +0 -9
  858. package/dist/components/Calculator/renderRate.js.map +0 -1
  859. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  860. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
  861. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  862. package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  863. package/dist/hooks/useCreditCalculatorData.js +0 -15
  864. package/dist/hooks/useCreditCalculatorData.js.map +0 -1
  865. package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
  866. package/dist/ui-kit/SearchBar.mobile.js +0 -14
  867. package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
  868. package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  869. package/lib/components/Calculator/getCalculatorParams.js +0 -9
  870. package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  871. package/lib/components/Calculator/renderRate.d.ts +0 -8
  872. package/lib/components/Calculator/renderRate.js +0 -6
  873. package/lib/components/Calculator/renderRate.js.map +0 -1
  874. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  875. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
  876. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  877. package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  878. package/lib/hooks/useCreditCalculatorData.js +0 -12
  879. package/lib/hooks/useCreditCalculatorData.js.map +0 -1
  880. package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
  881. package/lib/ui-kit/SearchBar.mobile.js +0 -12
  882. package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
  883. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  884. package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
  885. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  886. package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
  887. package/mobile/dist/components/Calculator/renderRate.js +0 -9
  888. package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
  889. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  890. package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
  891. package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
  892. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  893. package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
  894. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  895. package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
  896. package/mobile/lib/components/Calculator/renderRate.js +0 -6
  897. package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
  898. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  899. package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
  900. package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
  901. package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
  902. package/mobile/src/components/Calculator/renderRate.tsx +0 -22
  903. package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
  904. package/src/components/Calculator/getCalculatorParams.ts +0 -18
  905. package/src/components/Calculator/renderRate.tsx +0 -22
  906. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
  907. package/src/hooks/useCreditCalculatorData.ts +0 -20
  908. package/src/ui-kit/SearchBar.mobile.tsx +0 -45
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,oCAAiC;AACjC,qCAAkC;AAKrB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAEnC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,gCAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,SAAS,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,EAAuB,EAAE,CAAS;IAClF,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE;QACjB,OAAO;KACR;IAED,OAAO,IA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AClF,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,uBAAC,eAAM,IAEL,UAAU,EAAE,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAC7D,WAAW,EAAE,uBAAC,SAAG,IAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,KAC/D,MAAM,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
@@ -11,7 +11,10 @@ const CHECK_PATHS = [
11
11
  fill: 'white',
12
12
  },
13
13
  ];
14
- exports.Checkbox = (0, uni_jsx_1.JSX)(({ text, checked, onChange, className }) => ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsxs)("label", { className: "flex items-center cursor-pointer relative", children: [(0, jsx_runtime_1.jsx)("input", { className: `peer appearance-none w-5 h-5 border-solid border ${checked ? 'border-black' : 'border-main-stroke'} rounded checked:bg-primary-main checked:border-primary-main m-0`, type: "checkbox", onChange: (e) => {
14
+ exports.Checkbox = (0, uni_jsx_1.JSX)(({ className, text, checked, isRadio, onChange }) => ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsxs)("label", { className: "flex items-center cursor-pointer relative", children: [(0, jsx_runtime_1.jsx)("input", { className: `peer appearance-none w-5 h-5 border-solid
15
+ ${isRadio ? 'rounded-full border-2' : 'rounded checked:bg-primary-main border'}
16
+ ${checked ? 'border-black' : 'border-main-stroke'}
17
+ checked:border-primary-main m-0`, type: "checkbox", onChange: (e) => {
15
18
  onChange(e.target.checked);
16
- }, checked: checked }), (0, jsx_runtime_1.jsx)(SVG_1.SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }), text ? (0, jsx_runtime_1.jsx)("span", { className: "font-sans ml-3 text-m-base cursor-pointer", children: text }) : null] }) })));
19
+ }, checked: checked }), isRadio ? ((0, jsx_runtime_1.jsx)("div", { className: "left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block" })) : ((0, jsx_runtime_1.jsx)(SVG_1.SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" })), text ? (0, jsx_runtime_1.jsx)("span", { className: "font-sans ml-3 text-m-base cursor-pointer", children: text }) : null] }) })));
17
20
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/ui-kit/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,gCAA6B;AAE7B,MAAM,WAAW,GAAG;IAClB;QACE,CAAC,EAAE,4HAA4H;QAC/H,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,OAAO;KACd;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACrF,gCAAK,SAAS,EAAE,SAAS,YACvB,mCAAO,SAAS,EAAC,2CAA2C,aAC1D,kCACE,SAAS,EAAE,oDACT,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAC7B,kEAAkE,EAClE,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;oBACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBAC7B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,uBAAC,SAAG,IACF,KAAK,EAAE,WAAW,EAClB,SAAS,EAAC,iDAAiD,EAC3D,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,GAAG,EACV,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,UAAU,GAClB,CACH,EACA,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,2CAA2C,YAAE,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,IAClF,GACJ,CACP,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export interface CheckboxProps {
2
2
  text?: string;
3
3
  checked: boolean;
4
- onChange: (value: boolean) => void;
5
4
  className?: string;
5
+ isRadio?: boolean;
6
+ onChange: (value: boolean) => void;
6
7
  }
@@ -11,8 +11,10 @@ exports.Foldable = (0, uni_jsx_1.JSX)(({ blocks = [], context, hiddenBlocksNum =
11
11
  context,
12
12
  initialState: isUnfolded,
13
13
  });
14
- return blocks ? ((0, jsx_runtime_1.jsxs)("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? ((0, jsx_runtime_1.jsxs)("button", { className: foldButtonClasses ||
15
- 'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer', "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: "pr-3", children: isActive ? 'Скрыть' : foldButtonLabel }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true }) : null] })) : null] })) : null;
14
+ const buttonClassName = foldButtonClasses ||
15
+ 'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer';
16
+ const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
17
+ return blocks ? ((0, jsx_runtime_1.jsxs)("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? ((0, jsx_runtime_1.jsxs)("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true }) : null] })) : null] })) : null;
16
18
  });
17
19
  const renderBlocks = (blocks, render, { blocksToHide, isActive, containerClasses }) => {
18
20
  const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
@@ -1 +1 @@
1
- {"version":3,"file":"Foldable.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/Foldable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,6CAA0C;AAC1C,uCAAoC;AACpC,yDAA+E;AAuBlE,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,MAAM,GAAG,EAAE,EACX,OAAO,EACP,eAAe,GAAG,CAAC,EACnB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAClB,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,IAAA,aAAK,EAAC,eAAe,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAE9D,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,IAAA,mCAAgB,EAAC;QACxD,OAAO;QACP,YAAY,EAAE,UAAU;KACzB,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,4CACG,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,EAC1E,eAAe,CAAC,CAAC,CAAC,CACjB,oCACE,SAAS,EACP,iBAAiB;oBACjB,8HAA8H,gBAEpH,mBAAmB,EAC/B,OAAO,EAAE,YAAY,aAErB,iCAAM,SAAS,EAAC,M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ACd,gCAAK,SAAS,EAAE,GAAG,0CAAuB,IAAI,gBAAgB,EAAE,YAAG,YAAY,GAAO,IAClF,EACN,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -5,14 +5,14 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const TEXT_CLASSES = 'font-sans font-light text-base';
6
6
  const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
7
7
  exports.HeaderItem = (0, uni_jsx_1.JSX)(({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white', dataItemName, }) => ((0, jsx_runtime_1.jsxs)("a", { className: `relative inline-block bg-transparent text-center no-underline ${className}`, href: href, target: target, onClick: onClick, "data-item-name": dataItemName, children: [(0, jsx_runtime_1.jsx)("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? (0, jsx_runtime_1.jsx)("div", { className: getBorderClasses(bgColor, active) }) : null] })));
8
- const getTextClasses = (bgColor, active) => {
8
+ const getTextClasses = (bgColor, active = false) => {
9
9
  let classes = 'text-white';
10
10
  if (bgColor === 'bg-white') {
11
11
  classes = active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main';
12
12
  }
13
13
  return `${classes} ${TEXT_CLASSES}`;
14
14
  };
15
- const getBorderClasses = (bgColor, active) => {
15
+ const getBorderClasses = (bgColor, active = false) => {
16
16
  if (!active) {
17
17
  return BORDER_CLASSES;
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,MAAM,YAAY,GAAG,gCAAgC,CAAC;AACtD,MAAM,cAAc,GAAG,0CAA0C,CAAC;AAErD,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,UAAU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MAAM,EACN,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,UAAU,EACpB,YAAY,GACb,EAAE,EAAE,CAAC,CACJ,+BACE,SAAS,EAAE,iEAAiE,SAAS,EAAE,EACvF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,oBACA,YAAY,aAE5B,iCAAM,SAAS,EAAE,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,EAC1E,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,IACpE,CACL,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACjE,IAAI,OAAO,GAAG,YAAY,CAAC;IAC3B,IAAI,OAAO,KAAK,UAAU,EAAE;QAC1B,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,2CAA2C,CAAC;KACtF;IAED,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACnE,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,cAAc,CAAC;KACvB;IAED,OAAO,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -4,17 +4,17 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const TEXT_CLASSES = 'font-sans font-normal text-sm';
6
6
  const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
7
- exports.HeaderItem = (0, uni_jsx_1.JSX)(({ className, text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
8
- return ((0, jsx_runtime_1.jsxs)("a", { className: `relative inline-block bg-transparent text-center no-underline ${className || ''}`, href: href, target: target, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? (0, jsx_runtime_1.jsx)("div", { className: getBorderClasses(bgColor, active) }) : null] }));
7
+ exports.HeaderItem = (0, uni_jsx_1.JSX)(({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
8
+ return ((0, jsx_runtime_1.jsxs)("a", { className: `relative inline-block bg-transparent text-center no-underline ${className}`, href: href, target: target, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? (0, jsx_runtime_1.jsx)("div", { className: getBorderClasses(bgColor, active) }) : null] }));
9
9
  });
10
- const getTextClasses = (bgColor, active) => {
10
+ const getTextClasses = (bgColor, active = false) => {
11
11
  let classes = 'text-white';
12
12
  if (bgColor === 'bg-white') {
13
13
  classes = active ? 'text-primary-main' : 'text-secondary-text hover:text-primary-main';
14
14
  }
15
15
  return `${classes} ${TEXT_CLASSES}`;
16
16
  };
17
- const getBorderClasses = (bgColor, active) => {
17
+ const getBorderClasses = (bgColor, active = false) => {
18
18
  if (!active) {
19
19
  return BORDER_CLASSES;
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderItem.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAMxC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AACrD,MAAM,cAAc,GAAG,0CAA0C,CAAC;AAErD,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,UA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AI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,UAAU,EAAE,EAAE,EAAE;IAC1F,OAAO,CACL,+BACE,SAAS,EAAE,iEAAiE,SAAS,EAAE,EACvF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,aAEhB,iCAAM,SAAS,EAAE,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,EAC1E,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,IACpE,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACjE,IAAI,OAAO,GAAG,YAAY,CAAC;IAC3B,IAAI,OAAO,KAAK,UAAU,EAAE;QAC1B,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,6CAA6C,CAAC;KACxF;IAED,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,OAAuB,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACnE,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,cAAc,CAAC;KACvB;IAED,OAAO,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,IAAI,cAAc,EAAE,CAAC;AACrF,CAAC,CAAC"}
@@ -13,7 +13,7 @@ const HEADING_STYLE_MAP = {
13
13
  exports.Heading = (0, uni_jsx_1.JSX)((props) => {
14
14
  const { className = '', headingType, title, as } = props;
15
15
  if (!headingType) {
16
- return;
16
+ return null;
17
17
  }
18
18
  const Tag = as || headingType;
19
19
  return ((0, jsx_runtime_1.jsx)(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQxC,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,iCAAiC;CACtC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEzD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IAED,MAAM,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC;IAE9B,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,iBAAiB,iBAAiB,CAAC,WAAW,CAAC,IAAI,SAAS,EAAE,YAAG,KAAK,GAAO,CAC9F,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQxC,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,iCAAiC;CACtC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEzD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC;IAE9B,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,iBAAiB,iBAAiB,CAAC,WAAW,CAAC,IAAI,SAAS,EAAE,YAAG,KAAK,GAAO,CAC9F,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -13,7 +13,7 @@ const HeadingClass = {
13
13
  exports.Heading = (0, uni_jsx_1.JSX)((props) => {
14
14
  const { className, headingType, title, as } = props;
15
15
  if (!headingType) {
16
- return;
16
+ return null;
17
17
  }
18
18
  const Tag = as || headingType;
19
19
  return ((0, jsx_runtime_1.jsx)(Tag, { className: `font-sans font-medium m-0 ${HeadingClass[headingType]} ${className || ''}`, children: title }));
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IAED,MAAM,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC;IAE9B,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,6BAA6B,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACxF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Heading.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC;IAE9B,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,6BAA6B,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACxF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,2 @@
1
- import type { ImgSource, Picture } from '../../model/Picture';
2
1
  import type { Image, ImageProps } from './ImgProps';
3
2
  export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
4
- export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
5
- export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
@@ -1,35 +1,9 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.formatToMimeType = exports.ImgAsPicture = exports.Img = void 0;
2
+ exports.Img = 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 Icon_1 = require("../Icon/Icon");
6
- const getIconVersion_1 = require("./getIconVersion");
7
- exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '', ...iconProps }) => {
8
- if (!image) {
9
- return null;
10
- }
11
- // backwards compatibility with existing icons in usage
12
- const icon = typeof image === 'string' ? image : image.icon;
13
- if (icon || icon === '') {
14
- return icon.length ? ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: className, imageClassName: imageClassName, iconVersion: (0, getIconVersion_1.getIconVersion)(image), name: icon, ...iconProps })) : null;
15
- }
16
- return ((0, jsx_runtime_1.jsx)(exports.ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
5
+ const ImgInner_1 = require("./ImgInner");
6
+ exports.Img = (0, uni_jsx_1.JSX)(({ className = '', imageClassName, image, ...iconProps }) => {
7
+ return ((0, jsx_runtime_1.jsx)(ImgInner_1.ImgInner, { className: className, imageClassName: imageClassName, image: image, ...iconProps }));
17
8
  });
18
- exports.ImgAsPicture = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '' }) => {
19
- if (!image) {
20
- return null;
21
- }
22
- return ((0, jsx_runtime_1.jsxs)("picture", { className: `flex-none ${className}`, children: [image?.sources?.length
23
- ? image.sources.map(({ src, format, media, size }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format), media: media, ...size }, `${index}_${src}`)))
24
- : null, renderImg(image, imageClassName)] }));
25
- });
26
- const renderImg = (image, imageClassName = '') => {
27
- const title = image.title || '';
28
- const alt = image.alt || image.title;
29
- return (0, jsx_runtime_1.jsx)("img", { src: image.src, className: imageClassName, alt: alt, title: title, ...image.size });
30
- };
31
- function formatToMimeType(format) {
32
- return format ? `image/${String(format)}` : undefined;
33
- }
34
- exports.formatToMimeType = formatToMimeType;
35
9
  //# sourceMappingURL=Img.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":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+1,2 @@
1
- import type { ImgSource, Picture } from '../../model/Picture';
2
1
  import type { Image, ImageProps } from './ImgProps';
3
2
  export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
4
- export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
5
- export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
@@ -1,36 +1,9 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.formatToMimeType = exports.ImgAsPicture = exports.Img = void 0;
2
+ exports.Img = 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 Icon_1 = require("../Icon/Icon");
6
- const getIconVersion_1 = require("./getIconVersion");
7
- exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '', ...iconProps }) => {
8
- // backwards compatibility with existing icons in usage
9
- const icon = typeof image === 'string' ? image : image?.icon;
10
- if (icon || icon === '') {
11
- return ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: className, imageClassName: imageClassName, iconVersion: (0, getIconVersion_1.getIconVersion)(image), name: icon, ...iconProps }));
12
- }
13
- return ((0, jsx_runtime_1.jsx)(exports.ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
5
+ const ImgInner_1 = require("./ImgInner");
6
+ exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image }) => {
7
+ return (0, jsx_runtime_1.jsx)(ImgInner_1.ImgInner, { className: className, image: image, isMobile: true });
14
8
  });
15
- exports.ImgAsPicture = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '' }) => {
16
- if (!image) {
17
- return null;
18
- }
19
- return ((0, jsx_runtime_1.jsxs)("picture", { className: className, children: [image?.sources?.length
20
- ? image.sources.map(({ src, format }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
21
- : null, renderImg(image, imageClassName)] }));
22
- });
23
- const renderImg = (image, imageClassName = '') => {
24
- const style = {
25
- width: image.size?.width ? `${image.size?.width}px` : '100%',
26
- height: image.size?.height ? `${image.size?.height}px` : '100%',
27
- };
28
- const title = image.title || '';
29
- const alt = image.alt || image.title;
30
- return ((0, jsx_runtime_1.jsx)("img", { src: image.src, className: `m-auto ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
31
- };
32
- function formatToMimeType(format) {
33
- return format ? `image/${String(format)}` : undefined;
34
- }
35
- exports.formatToMimeType = formatToMimeType;
36
9
  //# sourceMappingURL=Img.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Img.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uCAAoC;AACpC,qDAAkD;AAKrC,QAAA,GAAG,GAAG,IAAA,aAAG,EACpB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE;IAC/D,uDAAuD;IACvD,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC;IAC7D,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACvB,OAAO,CACL,uBAAC,WAAI,IACH,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,IAAA,+BAAc,EAAC,KAAK,CAAC,EAClC,IAAI,EAAE,IAAI,KACN,SAAS,GACb,CACH,CAAC;KACH;IAED,OAAO,CACL,uBAAC,oBAAY,IACX,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAgB,GACvB,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,E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,KAAK,EAAE,KAAK,KACR,KAAK,CAAC,IAAI,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,SAAgB,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"Img.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAsC;AAIzB,QAAA,GAAG,GAAG,IAAA,aAAG,EAAoB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,OAAO,uBAAC,mBAAQ,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAI,CAAC;AAC1E,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ImgSource, Picture } from '../../model/Picture';
2
+ import type { ImageProps } from './ImgProps';
3
+ export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
4
+ export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
@@ -0,0 +1,32 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.formatToMimeType = exports.ImgAsPicture = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const sourcesComparator = (a, b) => {
6
+ if (a.media && b.media) {
7
+ return a.media - b.media;
8
+ }
9
+ return 0;
10
+ };
11
+ exports.ImgAsPicture = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '', isMobile = false }) => {
12
+ if (!image) {
13
+ return null;
14
+ }
15
+ const pictureStyles = isMobile ? 'flex' : 'flex-none';
16
+ return ((0, jsx_runtime_1.jsxs)("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
17
+ ? image.sources
18
+ .sort(sourcesComparator)
19
+ .map(({ src, format, media, size }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...size }, `${index}_${src}`)))
20
+ : null, renderImg(image, imageClassName, isMobile)] }));
21
+ });
22
+ const renderImg = (image, imageClassName = '', isMobile = false) => {
23
+ const title = image.title || '';
24
+ const alt = image.alt || image.title;
25
+ const imgStyle = isMobile ? 'm-auto' : 'm-0';
26
+ return ((0, jsx_runtime_1.jsx)("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, ...image.size }));
27
+ };
28
+ function formatToMimeType(format) {
29
+ return format ? `image/${String(format)}` : undefined;
30
+ }
31
+ exports.formatToMimeType = formatToMimeType;
32
+ //# sourceMappingURL=ImgAsPicture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImgAsPicture.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgAsPicture.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACnD,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE;QACtB,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;KAC1B;IAED,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE;IACnE,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;IAEtD,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AAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAFD,4CAEC"}
@@ -0,0 +1,2 @@
1
+ import type { Image, ImageProps } from './ImgProps';
2
+ export declare const ImgInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.ImgInner = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const Icon_1 = require("../Icon/Icon");
6
+ const getIconVersion_1 = require("./getIconVersion");
7
+ const ImgAsPicture_1 = require("./ImgAsPicture");
8
+ exports.ImgInner = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
9
+ if (!image) {
10
+ return null;
11
+ }
12
+ // backwards compatibility with existing icons in usage
13
+ const icon = typeof image === 'string' ? image : image.icon;
14
+ if (icon || icon === '') {
15
+ return icon.length ? ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: className, imageClassName: imageClassName, iconVersion: (0, getIconVersion_1.getIconVersion)(image), name: icon, ...iconProps })) : null;
16
+ }
17
+ return ((0, jsx_runtime_1.jsx)(ImgAsPicture_1.ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
18
+ });
19
+ //# sourceMappingURL=ImgInner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImgInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uCAAoC;AACpC,qDAAkD;AAClD,iDAA8C;AAGjC,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE;IACzE,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,uDAAuD;IACvD,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAC5D,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,uBAAC,WAAI,IACH,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,IAAA,+BAAc,EAAC,KAAK,CAAC,EAClC,IAAI,EAAE,IAAI,KACN,SAAS,GACb,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;KACV;IAED,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAgB,EACvB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -7,4 +7,5 @@ export interface ImageContent<T = Picture> {
7
7
  export interface ImageProps<T> extends ImageContent<T>, IconCompatibilityFields {
8
8
  className?: string;
9
9
  imageClassName?: string;
10
+ isMobile?: boolean;
10
11
  }
@@ -3,14 +3,6 @@ exports.Logo = 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
5
  const Img_1 = require("../Img/Img");
6
- const SVG_1 = require("../SVG");
7
- const LOGO_PATHS = [
8
- 'm13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z',
9
- 'M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z',
10
- 'M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z',
11
- 'M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z',
12
- 'M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z',
13
- ];
14
6
  const SVG_COLOR = {
15
7
  'bg-white': 'text-primary-main',
16
8
  transparent: 'text-white',
@@ -20,7 +12,7 @@ const TEXT_COLOR = {
20
12
  transparent: 'text-white',
21
13
  };
22
14
  exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', hideTitle, }) => {
23
- return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : ((0, jsx_runtime_1.jsx)(SVG_1.SVG, { className: `${SVG_COLOR[bgColor]} w-10`, viewBox: "0 0 40 45", paths: LOGO_PATHS.map((d) => ({ d })) })), hideTitle ? null : renderTitle(children, bgColor, logo?.title)] }));
15
+ return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'Logo' }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), hideTitle ? null : renderTitle(children, bgColor, logo?.title)] }));
24
16
  });
25
17
  const renderTitle = (children, bgColor, title) => {
26
18
  const text = children || title || 'Россельхозбанк';
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,oCAAiC;AACjC,gCAA6B;AAc7B,MAAM,UAAU,GAAG;IACjB,w5CAAw5C;IACx5C,2OAA2O;IAC3O,0JAA0J;IAC1J,gpBAAgpB;IAChpB,kDAAkD;CACnD,CAAC;AACF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AACF,MAAM,UAAU,GAAmC;IACjD,UAA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AC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAC7D,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,QAAQ,IAAI,KAAK,IAAI,gBAAgB,CAAC;IAEnD,OAAO,iCAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,qBAAqB,YAAG,IAAI,GAAQ,CAAC;AACrF,CAAC,CAAC"}
@@ -2,14 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Logo = 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 SVG_1 = require("../SVG");
6
- const LOGO_PATHS = [
7
- 'm13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z',
8
- 'M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z',
9
- 'M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z',
10
- 'M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z',
11
- 'M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z',
12
- ];
5
+ const Img_1 = require("../Img/Img");
13
6
  const SVG_COLOR = {
14
7
  'bg-white': 'text-primary-main',
15
8
  transparent: 'text-white',
@@ -19,6 +12,6 @@ const TEXT_COLOR = {
19
12
  transparent: 'text-white',
20
13
  };
21
14
  exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, children, targetBlank, bgColor = 'bg-white', hideTitle }) => {
22
- return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [(0, jsx_runtime_1.jsx)(SVG_1.SVG, { className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, viewBox: "0 0 40 45", paths: LOGO_PATHS.map((d) => ({ d })) }), hideTitle ? null : ((0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
15
+ return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'Logo' }, className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, asSVG: true }), hideTitle ? null : ((0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
23
16
  });
24
17
  //# sourceMappingURL=Logo.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,gCAA6B;AAU7B,MAAM,UAAU,GAAG;IACjB,w5CAAw5C;IACx5C,2OAA2O;IAC3O,0JAA0J;IAC1J,gpBAAgpB;IAChpB,kDAAkD;CACnD,CAAC;AACF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AACF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,+BACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC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EAAE,KAAK,SAAG,EACvF,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAClB,iCAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,6BAA6B,YACjE,QAAQ,IAAI,gBAAgB,GACxB,CACR,IACC,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { UniBlockProps } from '../../types';
2
+ interface RadioButtonItem {
3
+ id: string;
4
+ text: string;
5
+ }
6
+ interface RadioButtonGroupProps extends UniBlockProps {
7
+ items: RadioButtonItem[];
8
+ checkedItem?: string;
9
+ onChangeCheckedItem: (id: string) => void;
10
+ }
11
+ export declare const RadioButtonGroup: (props: import("@redneckz/uni-jsx").PropsWithChildren<RadioButtonGroupProps, any>, context?: any) => any;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.RadioButtonGroup = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const Checkbox_1 = require("../Checkbox/Checkbox");
6
+ exports.RadioButtonGroup = (0, uni_jsx_1.JSX)(({ items, checkedItem, onChangeCheckedItem }) => {
7
+ return ((0, jsx_runtime_1.jsx)("div", { children: items?.map(({ id, text }) => ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem(id) }, id))) }));
8
+ });
9
+ //# sourceMappingURL=RadioButtonGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mDAAgD;AAanC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAC9C,OAAO,CACL,0CACG,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,uBAAC,mBAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAJlC,EAAE,CAKP,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -2,13 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.SearchBar = 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 Button_1 = require("../Button/Button");
6
- const Img_1 = require("../Img/Img");
7
- exports.SearchBar = (0, uni_jsx_1.JSX)(({ className, context }) => {
8
- const { term, setTerm } = context.useSearch();
9
- return ((0, jsx_runtime_1.jsxs)("form", { className: `relative ${className || ''}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-[24px] h-[24px]", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : ((0, jsx_runtime_1.jsx)("label", { htmlFor: "search-bar-input", className: "font-sans font-light text-base text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), (0, jsx_runtime_1.jsx)("input", { id: "search-bar-input", className: 'h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-1 right-1", onClick: (e) => {
10
- e.preventDefault();
11
- console.log('click');
12
- }, children: (0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm px-9 py-[9px]", children: "\u041D\u0430\u0439\u0442\u0438" }) })] }));
5
+ const SearchBarInner_1 = require("./SearchBarInner");
6
+ exports.SearchBar = (0, uni_jsx_1.JSX)(({ className = '', context }) => {
7
+ return (0, jsx_runtime_1.jsx)(SearchBarInner_1.SearchBarInner, { context: context, className: className });
13
8
  });
14
9
  //# sourceMappingURL=SearchBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAC1C,oCAAiC;AAEpB,QAAA,SAAS,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAE9C,OAAO,CACL,kCAAM,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,aAC5C,iCAAK,SAAS,EAAC,yGAAyG,aACtH,gCAAK,SAAS,EAAC,mBAAmB,YAChC,uBAAC,SAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC5C,EACL,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACb,kCACE,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAC,oDAAoD,2FAGxD,CACT,IACG,EACN,kCACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EACP,mLAAmL,EAErL,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,kBAAkB,GACvB,EACF,uBAAC,eAAM,IACL,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,gCAAO,EACZ,SAAS,EAAC,qDAAqD,EAC/D,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC,YAED,gCAAK,SAAS,EAAC,mCAAmC,+CAAY,GACvD,IACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qDAAkD;AAErC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1E,OAAO,uBAAC,+BAAc,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;AACpE,CAAC,CAAC,CAAC"}
@@ -2,12 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.SearchBar = 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 Img_1 = require("../Img/Img");
6
- exports.SearchBar = (0, uni_jsx_1.JSX)(({ className, context }) => {
7
- const { term, setTerm } = context.useSearch();
8
- return ((0, jsx_runtime_1.jsxs)("form", { className: `relative ${className || ''}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-[20px] h-[20px]", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : ((0, jsx_runtime_1.jsx)("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), (0, jsx_runtime_1.jsx)("input", { id: "search-bar-input", className: 'h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: "some search" }), (0, jsx_runtime_1.jsx)("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
9
- e.preventDefault();
10
- setTerm('');
11
- }, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: "CloseIcon", width: "24", height: "24" }) })] }));
5
+ const SearchBarInner_1 = require("./SearchBarInner");
6
+ exports.SearchBar = (0, uni_jsx_1.JSX)(({ className = '', context }) => {
7
+ return (0, jsx_runtime_1.jsx)(SearchBarInner_1.SearchBarInner, { context: context, className: className, isMobile: true });
12
8
  });
13
9
  //# sourceMappingURL=SearchBar.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oCAAiC;AAEpB,QAAA,SAAS,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAE9C,OAAO,CACL,kCAAM,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,aAC5C,iCAAK,SAAS,EAAC,yGAAyG,aACtH,gCAAK,SAAS,EAAC,mBAAmB,YAChC,uBAAC,SAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC5C,EACL,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACb,kCACE,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAC,mDAAmD,2FAGvD,CACT,IACG,EACN,kCACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EACP,qMAAqM,EAEvM,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,kBAAkB,EACvB,WAAW,EAAC,aAAa,GACzB,EACF,mCACE,SAAS,EAAC,uHAAuH,EACjI,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC,YAED,uBAAC,SAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACzC,IACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"SearchBar.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qDAAkD;AAErC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1E,OAAO,uBAAC,+BAAc,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,GAAI,CAAC;AACpF,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../types';
2
+ export interface SearchBarInnerProps extends UniBlockProps {
3
+ isMobile?: boolean;
4
+ }
5
+ export declare const SearchBarInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<SearchBarInnerProps, any>, context?: any) => any;
@@ -0,0 +1,24 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.SearchBarInner = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const Button_1 = require("../Button/Button");
6
+ const Img_1 = require("../Img/Img");
7
+ exports.SearchBarInner = (0, uni_jsx_1.JSX)(({ className, context, isMobile = false }) => {
8
+ const { term, setTerm } = context.useSearch();
9
+ const LoupeIconClassName = isMobile ? 'w-[20px] h-[20px]' : 'w-[24px] h-[24px]';
10
+ const SearchBarLabelClassName = isMobile ? 'font-normal text-sm' : 'font-light text-base';
11
+ const SearchBarInputClassName = isMobile
12
+ ? ' placeholder-transparent font-normal'
13
+ : 'font-light h-full';
14
+ const inputPlaceholder = isMobile ? 'some search' : null;
15
+ return ((0, jsx_runtime_1.jsxs)("form", { className: `font-sans relative ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [(0, jsx_runtime_1.jsx)("div", { className: LoupeIconClassName, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : ((0, jsx_runtime_1.jsx)("label", { htmlFor: "search-bar-input", className: `text-secondary-text ${SearchBarLabelClassName}`, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), (0, jsx_runtime_1.jsx)("input", { id: "search-bar-input", className: `h-12 pl-12 w-full peer text-base text-black border border-solid rounded box-border
16
+ outline-none pr-[6%] border-main-divider focus:border-primary-text ${SearchBarInputClassName}`, value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: inputPlaceholder }), isMobile ? ((0, jsx_runtime_1.jsx)("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
17
+ e.preventDefault();
18
+ setTerm('');
19
+ }, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: "CloseIcon", width: "24", height: "24" }) })) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-1 right-1", onClick: (e) => {
20
+ e.preventDefault();
21
+ console.log('click');
22
+ }, children: (0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm px-9 py-[9px]", children: "\u041D\u0430\u0439\u0442\u0438" }) }))] }));
23
+ });
24
+ //# sourceMappingURL=SearchBarInner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchBarInner.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBarInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAC1C,oCAAiC;AAMpB,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAE9C,MAAM,kBAAkB,GAAG,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAChF,MAAM,uBAAuB,GAAG,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,sBAAsB,CAAC;IAC1F,MAAM,uBAAuB,GAAG,QAAQ;QACtC,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,mBAAmB,CAAC;IACxB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC;IAEzD,OAAO,CACL,kCAAM,SAAS,EAAE,sBAAsB,SAAS,EA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