@redneckz/wildless-cms-uni-blocks 0.14.840 → 0.14.842

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 (497) hide show
  1. package/bin/migration-scripts/0.14.832.js +1 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +63 -346
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/ui-kit/Loader/Loader.d.ts +1 -1
  6. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  7. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  8. package/dist/components/Blocks.js +0 -6
  9. package/dist/components/Blocks.js.map +1 -1
  10. package/dist/components/Blocks.mobile.js +0 -4
  11. package/dist/components/Blocks.mobile.js.map +1 -1
  12. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  13. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  14. package/dist/components/CardTransfer/CardTransfer.js +1 -8
  15. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  16. package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  17. package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  18. package/dist/components/Carousel/renderCarouselCards.js +2 -2
  19. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  20. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  21. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  22. package/dist/components/Footer/TextInformationLink.js +1 -1
  23. package/dist/components/Footer/TextInformationLink.js.map +1 -1
  24. package/dist/components/Header/HeaderTopMenu.js +1 -1
  25. package/dist/components/Header/HeaderTopMenu.js.map +1 -1
  26. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  27. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  28. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  29. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  30. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  31. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  32. package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  33. package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  34. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  35. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  36. package/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
  37. package/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  38. package/dist/ui-kit/Loader/Loader.d.ts +1 -1
  39. package/dist/ui-kit/Loader/Loader.js.map +1 -1
  40. package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  41. package/lib/common.css +1 -1
  42. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  43. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  44. package/lib/components/Blocks.js +0 -6
  45. package/lib/components/Blocks.js.map +1 -1
  46. package/lib/components/Blocks.mobile.js +0 -4
  47. package/lib/components/Blocks.mobile.js.map +1 -1
  48. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  49. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  50. package/lib/components/CardTransfer/CardTransfer.js +1 -8
  51. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  52. package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  53. package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  54. package/lib/components/Carousel/renderCarouselCards.js +2 -2
  55. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  56. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  57. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  58. package/lib/components/Footer/TextInformationLink.js +1 -1
  59. package/lib/components/Footer/TextInformationLink.js.map +1 -1
  60. package/lib/components/Header/HeaderTopMenu.js +1 -1
  61. package/lib/components/Header/HeaderTopMenu.js.map +1 -1
  62. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  63. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  64. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  65. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  66. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  67. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  68. package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  69. package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  70. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  71. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  72. package/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
  73. package/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  74. package/lib/ui-kit/Loader/Loader.d.ts +1 -1
  75. package/lib/ui-kit/Loader/Loader.js.map +1 -1
  76. package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +4 -1
  77. package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  78. package/mobile/bundle/bundle.umd.js +35 -246
  79. package/mobile/bundle/bundle.umd.min.js +1 -1
  80. package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -1
  81. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  82. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  83. package/mobile/dist/components/Blocks.js +0 -4
  84. package/mobile/dist/components/Blocks.js.map +1 -1
  85. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  86. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  87. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -8
  88. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  89. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  90. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  91. package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
  92. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  93. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  94. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  95. package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
  96. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
  97. package/mobile/dist/components/Header/HeaderTopMenu.js +1 -1
  98. package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
  99. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  100. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  101. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  102. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  103. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  104. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  105. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  106. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  107. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  108. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  109. package/mobile/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
  110. package/mobile/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  111. package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -1
  112. package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
  113. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  114. package/mobile/lib/common.css +1 -1
  115. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  116. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  117. package/mobile/lib/components/Blocks.js +0 -4
  118. package/mobile/lib/components/Blocks.js.map +1 -1
  119. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  120. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  121. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -8
  122. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  123. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  124. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  125. package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
  126. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  127. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  128. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  129. package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
  130. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
  131. package/mobile/lib/components/Header/HeaderTopMenu.js +1 -1
  132. package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
  133. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  134. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  135. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  136. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  137. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  138. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  139. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  140. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  141. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  142. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  143. package/mobile/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
  144. package/mobile/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  145. package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -1
  146. package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
  147. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  148. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  149. package/mobile/src/components/Blocks.ts +0 -4
  150. package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
  151. package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -18
  152. package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
  153. package/mobile/src/components/Carousel/renderCarouselCards.tsx +2 -6
  154. package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
  155. package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
  156. package/mobile/src/components/Header/HeaderTopMenu.tsx +1 -5
  157. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
  158. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  159. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  160. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  161. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
  162. package/mobile/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
  163. package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
  164. package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
  165. package/package.json +2 -2
  166. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  167. package/src/components/Blocks.mobile.ts +0 -4
  168. package/src/components/Blocks.ts +0 -6
  169. package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
  170. package/src/components/CardTransfer/CardTransfer.tsx +5 -18
  171. package/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
  172. package/src/components/Carousel/renderCarouselCards.tsx +2 -6
  173. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  174. package/src/components/Footer/TextInformationLink.tsx +1 -1
  175. package/src/components/Header/HeaderTopMenu.tsx +1 -5
  176. package/src/icons/IconName.ts +4 -4
  177. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
  178. package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  179. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  180. package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  181. package/src/ui-kit/InputRange/InputRange.tsx +1 -1
  182. package/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
  183. package/src/ui-kit/Loader/Loader.tsx +1 -1
  184. package/src/ui-kit/ProgressBar/ProgressBar.fixture.tsx +4 -1
  185. package/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
  186. package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  187. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  188. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  189. package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  190. package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  191. package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  192. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  193. package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  194. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  195. package/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  196. package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  197. package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  198. package/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  199. package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  200. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  201. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  202. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  203. package/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  204. package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  205. package/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  206. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  207. package/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  208. package/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  209. package/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  210. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  211. package/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  212. package/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  213. package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  214. package/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  215. package/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  216. package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  217. package/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  218. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  219. package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  220. package/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  221. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  222. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  223. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  224. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  225. package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  226. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  227. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  228. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  229. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  230. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  231. package/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  232. package/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  233. package/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  234. package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  235. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  236. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  237. package/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  238. package/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  239. package/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  240. package/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  241. package/dist/components/ExchangeRateTile/renderInput.js +0 -16
  242. package/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  243. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  244. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  245. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  246. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  247. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  248. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  249. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  250. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  251. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  252. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  253. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  254. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  255. package/dist/ui-kit/Rating/Rating.d.ts +0 -1
  256. package/dist/ui-kit/Rating/Rating.js +0 -21
  257. package/dist/ui-kit/Rating/Rating.js.map +0 -1
  258. package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  259. package/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  260. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  261. package/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  262. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +0 -5
  263. package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +0 -5
  264. package/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  265. package/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  266. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  267. package/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  268. package/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  269. package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  270. package/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  271. package/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  272. package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  273. package/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  274. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  275. package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  276. package/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  277. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  278. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  279. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  280. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  281. package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  282. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +0 -5
  283. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +0 -5
  284. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  285. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  286. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  287. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  288. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  289. package/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  290. package/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  291. package/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  292. package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  293. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  294. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  295. package/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  296. package/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  297. package/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  298. package/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  299. package/lib/components/ExchangeRateTile/renderInput.js +0 -13
  300. package/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  301. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  302. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  303. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  304. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  305. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +0 -5
  306. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  307. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  308. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  309. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  310. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  311. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  312. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  313. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  314. package/lib/ui-kit/Rating/Rating.d.ts +0 -1
  315. package/lib/ui-kit/Rating/Rating.fixture.d.ts +0 -5
  316. package/lib/ui-kit/Rating/Rating.js +0 -18
  317. package/lib/ui-kit/Rating/Rating.js.map +0 -1
  318. package/mobile/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  319. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  320. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  321. package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  322. package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  323. package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  324. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  325. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  326. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  327. package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  328. package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  329. package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  330. package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  331. package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  332. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  333. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  334. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  335. package/mobile/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  336. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  337. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  338. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  339. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  340. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  341. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  342. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  343. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  344. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  345. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  346. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  347. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  348. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  349. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  350. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  351. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  352. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  353. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  354. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  355. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  356. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  357. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  358. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  359. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  360. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  361. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  362. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  363. package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  364. package/mobile/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  365. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  366. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  367. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  368. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  369. package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  370. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  371. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  372. package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  373. package/mobile/dist/components/ExchangeRateTile/renderInput.js +0 -16
  374. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  375. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  376. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  377. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  378. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  379. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  380. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  381. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  382. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  383. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  384. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  385. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  386. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  387. package/mobile/dist/ui-kit/Rating/Rating.d.ts +0 -1
  388. package/mobile/dist/ui-kit/Rating/Rating.js +0 -21
  389. package/mobile/dist/ui-kit/Rating/Rating.js.map +0 -1
  390. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  391. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  392. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  393. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  394. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  395. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  396. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  397. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  398. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  399. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  400. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  401. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  402. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  403. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  404. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  405. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  406. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  407. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  408. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  409. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  410. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  411. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  412. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  413. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  414. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  415. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  416. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  417. package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  418. package/mobile/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  419. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  420. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  421. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  422. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  423. package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  424. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  425. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  426. package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  427. package/mobile/lib/components/ExchangeRateTile/renderInput.js +0 -13
  428. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  429. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  430. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  431. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  432. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  433. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  434. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  435. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  436. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  437. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  438. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  439. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  440. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  441. package/mobile/lib/ui-kit/Rating/Rating.d.ts +0 -1
  442. package/mobile/lib/ui-kit/Rating/Rating.js +0 -18
  443. package/mobile/lib/ui-kit/Rating/Rating.js.map +0 -1
  444. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  445. package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  446. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  447. package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  448. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  449. package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  450. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  451. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  452. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  453. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  454. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  455. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  456. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  457. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  458. package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  459. package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  460. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  461. package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  462. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  463. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  464. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  465. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  466. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  467. package/mobile/src/ui-kit/Rating/Rating.tsx +0 -39
  468. package/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  469. package/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  470. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +0 -83
  471. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +0 -40
  472. package/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  473. package/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  474. package/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  475. package/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  476. package/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  477. package/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  478. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  479. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  480. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.tsx +0 -19
  481. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +0 -21
  482. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  483. package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  484. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  485. package/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  486. package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  487. package/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  488. package/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  489. package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  490. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  491. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -62
  492. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  493. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  494. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  495. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  496. package/src/ui-kit/Rating/Rating.fixture.tsx +0 -7
  497. package/src/ui-kit/Rating/Rating.tsx +0 -39
@@ -1,145 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { useCarouselControls } from '../../hooks/useCarouselControls';
4
- import { type ComponentType } from '../../model/ComponentType';
5
- import { Img } from '../../ui-kit/Img/Img';
6
- import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
7
- import { type ButtonCommonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
8
- import { renderArrows } from '../../ui-kit/LinkButton/renderArrows';
9
- import { Text } from '../../ui-kit/Text/Text';
10
- import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
11
- import { type CardItem, type InsuranceAmountBlockTab } from './InsuranceAmountBlockContent';
12
-
13
- export interface InsuranceAmountBlockInnerProps extends InsuranceAmountBlockTab, ComponentType {
14
- button?: ButtonCommonContent;
15
- }
16
-
17
- type InsuranceGalleryProps = {
18
- activeIndex: number;
19
- cards: CardItem[];
20
- selectedCardIndex: number;
21
- onClick: (index: number) => void;
22
- };
23
-
24
- type NavButtonProps = {
25
- slide: CardItem;
26
- i: number;
27
- isActive: boolean;
28
- onClick: () => void;
29
- };
30
-
31
- export const InsuranceAmountBlockInner = JSX<InsuranceAmountBlockInnerProps>(
32
- ({ className = '', cards = [], button }) => {
33
- const [selectedCardIndex, setSelectedCardIndex] = useState(0);
34
- const handleSelectedCardIndex = useCallback((_: number) => setSelectedCardIndex(_), []);
35
- const galleryLength = cards.length;
36
- const CARD_VIEW_COUNT = 2;
37
- const [activeIndex, controls] = useCarouselControls({
38
- itemCount: galleryLength,
39
- visibleItemCount: CARD_VIEW_COUNT,
40
- });
41
- const { canDec, canInc } = controls;
42
- const activeHref = cards[activeIndex]?.href;
43
-
44
- return (
45
- <section role="listitem" className={`min-w-full text-center ${className}`}>
46
- <div className="relative overflow-hidden" aria-label="Страховые программы">
47
- {galleryLength
48
- ? renderGallery({
49
- activeIndex,
50
- cards,
51
- selectedCardIndex,
52
- onClick: handleSelectedCardIndex,
53
- })
54
- : null}
55
- {renderArrows({
56
- ...controls,
57
- btnClass: ['left-12', 'right-12'],
58
- className: 'top-16',
59
- })}
60
- {canDec ? (
61
- <div className="absolute top-0 left-0 h-full w-32 bg-opacity-from-white" />
62
- ) : null}
63
- {canInc ? (
64
- <div className="absolute top-0 right-0 h-full w-32 bg-opacity-to-white" />
65
- ) : null}
66
- </div>
67
- <LinkButton className="w-60 text-center" version="primary" {...button} href={activeHref} />
68
- </section>
69
- );
70
- },
71
- );
72
-
73
- function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }: InsuranceGalleryProps) {
74
- const tabsShiftWidth = activeIndex * 460;
75
- const cardsAlignStyle = cards.length > 2 ? 'justify-start' : 'justify-center';
76
-
77
- return (
78
- <div style={{ transform: `translateX(-${tabsShiftWidth}px)` }} className="duration-1000 px-6xl">
79
- <div className={`w-full flex flex-nowrap gap-s pb-6xl ${cardsAlignStyle}`}>
80
- {cards.map((slide, i) =>
81
- renderNavButton({
82
- slide,
83
- i,
84
- isActive: Boolean(i === selectedCardIndex),
85
- onClick: () => onClick(i),
86
- }),
87
- )}
88
- </div>
89
- </div>
90
- );
91
- }
92
-
93
- function renderNavButton({ slide, i, isActive, onClick }: NavButtonProps) {
94
- const btnClassName = isActive
95
- ? 'shadow-dark-blue border-primary-main'
96
- : `ease-in duration-300 border-gray`;
97
-
98
- return (
99
- <button
100
- type="button"
101
- key={String(i)}
102
- onClick={onClick}
103
- className={`p-3xl min-w-fit flex items-center gap-2xl bg-white border-solid border relative ${btnClassName}`}
104
- >
105
- {slide?.icon ? (
106
- <Img
107
- className="p-lg rounded-full bg-secondary-light"
108
- image={slide.icon}
109
- width="108"
110
- height="108"
111
- />
112
- ) : null}
113
-
114
- <div className="flex gap-s">
115
- {slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null}
116
- {slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null}
117
- </div>
118
- {renderDoneIcon(isActive)}
119
- </button>
120
- );
121
- }
122
-
123
- function renderValueBlock(title: string, sum: number) {
124
- return (
125
- <div className="flex flex-col text-left whitespace-pre">
126
- <Text size="text-h6">{toLocalNumberFormat(2)(sum)} ₽</Text>
127
- <div className="mt-2xs">
128
- <Text size="text-l" color="text-secondary-text">
129
- {title}
130
- </Text>
131
- </div>
132
- </div>
133
- );
134
- }
135
-
136
- function renderDoneIcon(isActive: boolean) {
137
- return isActive ? (
138
- <Img
139
- className={`h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`}
140
- image={{ icon: 'DoneIcon' }}
141
- width="24"
142
- height="24"
143
- />
144
- ) : null;
145
- }
@@ -1,39 +0,0 @@
1
- import { useState } from '@redneckz/uni-jsx/lib/hooks';
2
- import { Icon } from '../Icon/Icon';
3
-
4
- export const Rating = () => {
5
- const [rating, setRating] = useState(0);
6
- const [hoverRating, setHoverRating] = useState(0);
7
-
8
- const handleClick = (event: { currentTarget: { id: string } }) => {
9
- setRating(parseInt(event.currentTarget.id));
10
- };
11
-
12
- const handleMouseEnter = (event: { currentTarget: { id: string } }) => {
13
- setHoverRating(parseInt(event.currentTarget.id));
14
- };
15
-
16
- const handleMouseLeave = () => {
17
- setHoverRating(0);
18
- };
19
-
20
- return (
21
- <div className="flex justify-center">
22
- {[...Array(5)].map((_, i) => (
23
- <span
24
- key={i}
25
- onClick={handleClick}
26
- onMouseEnter={handleMouseEnter}
27
- onMouseLeave={handleMouseLeave}
28
- id={`${i + 1}`}
29
- >
30
- <Icon
31
- name="StarIcon"
32
- iconVersion={rating >= i + 1 || hoverRating >= i + 1 ? 'color' : 'gray'}
33
- className="cursor-pointer w-14 h-14"
34
- />
35
- </span>
36
- ))}
37
- </div>
38
- );
39
- };
@@ -1,36 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { useLink } from '../../hooks/useLink';
3
- import { type ComponentType } from '../../model/ComponentType';
4
- import { Img } from '../../ui-kit/Img/Img';
5
- import { style } from '../../utils/style';
6
- import { type CarouselLinkProps } from './CarouselLinksContent';
7
-
8
- export type CarouselLinkButtonProps = CarouselLinkProps & ComponentType;
9
-
10
- export const CarouselLinkButton = JSX<CarouselLinkButtonProps>(({ icon, ...linkProps }) => {
11
- const link = useLink();
12
- const { text, href, target, onClick } = link(linkProps);
13
-
14
- const textStyle =
15
- 'font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap';
16
-
17
- return text ? (
18
- <div className={style('p-3 rounded-lg bg-white text-secondary-text flex justify-center')}>
19
- <a role="link" href={href} target={target} onClick={onClick}>
20
- <div className="flex flex-col items-center gap-3 break-words max-w-[150px]">
21
- {icon ? (
22
- <Img
23
- className="w-7 h-7 md:w-12 md:h-12"
24
- image={{
25
- ...icon,
26
- iconVersion: icon?.iconVersion,
27
- }}
28
- alt={text}
29
- />
30
- ) : null}
31
- <div className={textStyle}>{text}</div>
32
- </div>
33
- </a>
34
- </div>
35
- ) : null;
36
- });
@@ -1,31 +0,0 @@
1
- {
2
- "content": {
3
- "version": "secondary",
4
- "padding": "",
5
- "title": "Заголовок",
6
- "description": "Описание 1",
7
- "additionalDescription": "Описание 2",
8
- "links": [
9
- {
10
- "text": "Текст",
11
- "href": "#"
12
- },
13
- {
14
- "text": "Текст",
15
- "href": "#"
16
- },
17
- {
18
- "text": "Текст",
19
- "href": "#"
20
- },
21
- {
22
- "text": "Текст",
23
- "href": "#"
24
- },
25
- {
26
- "text": "Текст",
27
- "href": "#"
28
- }
29
- ]
30
- }
31
- }
@@ -1,83 +0,0 @@
1
- import '../../setup-fixture';
2
-
3
- import { CarouselLinks } from './CarouselLinks';
4
- import { type CarouselLinkProps } from './CarouselLinksContent';
5
-
6
- const links = [
7
- {
8
- text: 'Миссия и Стратегия',
9
- href: '#',
10
- icon: { icon: 'AchievementIcon' },
11
- },
12
- {
13
- text: 'Контакты и реквизиты',
14
- href: '#',
15
- icon: { icon: 'PhoneCallingIcon' },
16
- },
17
- {
18
- text: 'Новости',
19
- href: '#',
20
- icon: { icon: 'BankIcon' },
21
- },
22
- {
23
- text: 'Карьера в Банке',
24
- href: '#',
25
- icon: { icon: 'BriefcaseIcon' },
26
- },
27
- {
28
- text: 'Меры безопасности',
29
- href: '#',
30
- icon: { icon: 'ShieldTickIcon' },
31
- },
32
- {
33
- text: 'Награды и рейтинги',
34
- href: '#',
35
- icon: { icon: 'CupIcon' },
36
- },
37
- {
38
- text: 'Агротех стартапы',
39
- href: '#',
40
- icon: { icon: 'DevIcon' },
41
- },
42
- {
43
- text: 'Залоговое имущество',
44
- href: '#',
45
- icon: { icon: 'PercentageRoundIcon' },
46
- },
47
- {
48
- text: 'Меры безопасности',
49
- href: '#',
50
- icon: { icon: 'LockIcon' },
51
- },
52
- {
53
- text: 'Непрофильные активы',
54
- href: '#',
55
- icon: { icon: 'ChartRoundIcon' },
56
- },
57
- {
58
- text: 'Меры безопасности',
59
- href: '#',
60
- icon: { icon: 'CopyIcon' },
61
- },
62
- ] as CarouselLinkProps[];
63
-
64
- const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
65
- один из крупнейших банков в России. Был основан в 2000 году в целях развития
66
- национальной кредитно-финансовой системы агропромышленного сектора и
67
- сельских территорий Российской Федерации.`;
68
-
69
- const additionalDescription = `Сегодня это универсальный коммерческий банк,
70
- предоставляющий все виды банковских услуг и занимающий лидирующие позиции
71
- в финансировании агропромышленного комплекса России.`;
72
-
73
- export default {
74
- default: (
75
- <CarouselLinks
76
- links={links}
77
- title="О Банке"
78
- description={description}
79
- additionalDescription={additionalDescription}
80
- version="secondary"
81
- />
82
- ),
83
- };
@@ -1,40 +0,0 @@
1
- import '../../setup-fixture';
2
-
3
- import { CarouselLinks } from './CarouselLinks';
4
- import { type CarouselLinkProps } from './CarouselLinksContent';
5
-
6
- const link = {
7
- text: 'Заключения',
8
- href: '#',
9
- icon: {
10
- icon: 'BankIcon',
11
- },
12
- };
13
-
14
- const links = Array.from<CarouselLinkProps>({ length: 11 })
15
- .fill(link as CarouselLinkProps)
16
- .map((_) => ({ ..._, text: `${_.text}`, icon: _.icon }));
17
-
18
- const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
19
- один из крупнейших банков в России. Был основан в 2000 году в целях развития
20
- национальной кредитно-финансовой системы агропромышленного сектора и
21
- сельских территорий Российской Федерации.`;
22
-
23
- const additionalDescription = `Сегодня это универсальный коммерческий банк,
24
- предоставляющий все виды банковских услуг и занимающий лидирующие позиции
25
- в финансировании агропромышленного комплекса России.`;
26
-
27
- export default {
28
- default: (
29
- <div className="container grid grid-cols-12">
30
- <CarouselLinks
31
- links={links}
32
- title="О Банке"
33
- description={description}
34
- additionalDescription={additionalDescription}
35
- version="secondary"
36
- className="col-span-12"
37
- />
38
- </div>
39
- ),
40
- };
@@ -1,50 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
4
- import { style } from '../../utils/style';
5
- import { Headline } from '../Headline/Headline';
6
- import { CarouselLinkButton } from './CarouselLinkButton';
7
- import { type CarouselLinkProps, type CarouselLinksContent } from './CarouselLinksContent';
8
-
9
- interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {}
10
-
11
- export const CarouselLinks = JSX<CarouselLinksProps>(
12
- ({ className, additionalDescription, description, links, title, ...rest }) => (
13
- <BlockWrapper defaultPadding="p-5xl" className={style('overflow-hidden', className)} {...rest}>
14
- <div className="flex flex-col lg:flex-row gap-5 justify-between">
15
- <div className="flex-1">
16
- <Headline
17
- isEmbedded={true}
18
- title={title}
19
- description={description}
20
- as="h1"
21
- align="text-left"
22
- headlineVersion="XL"
23
- />
24
- <Headline
25
- className="pt-m"
26
- description={additionalDescription}
27
- align="text-left"
28
- isEmbedded={true}
29
- />
30
- </div>
31
- {links?.length ? renderLinks(links) : null}
32
- </div>
33
- </BlockWrapper>
34
- ),
35
- );
36
-
37
- const renderLinks = (links: CarouselLinkProps[]) => (
38
- <div
39
- className={style(
40
- 'lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3',
41
- 'lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6',
42
- 'grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2',
43
- 'grid gap-3 lg:gap-5',
44
- )}
45
- >
46
- {links.map((link, i) => (
47
- <CarouselLinkButton key={String(i)} {...link} />
48
- ))}
49
- </div>
50
- );
@@ -1,16 +0,0 @@
1
- {
2
- "content": {
3
- "links": {
4
- "items": {
5
- "icon": {
6
- "ui:field": "icon"
7
- }
8
- }
9
- }
10
- },
11
- "style": {
12
- "ui:options": {
13
- "minCols": 12
14
- }
15
- }
16
- }
@@ -1,22 +0,0 @@
1
- import {
2
- type AdditionalDescriptionProps,
3
- type HeadlineCommonProps,
4
- } from '../../model/HeadlineType';
5
- import { type LinkProps } from '../../model/LinkProps';
6
- import { type IconProps } from '../../model/Picture';
7
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
8
-
9
- /**
10
- * @title Шапка колонки
11
- */
12
- export type CarouselLinkProps = IconProps & LinkProps;
13
-
14
- /** @title Карусель с ссылками */
15
- export type CarouselLinksContent = UniBlockContent &
16
- HeadlineCommonProps &
17
- AdditionalDescriptionProps & {
18
- /** @title Ссылки */
19
- links?: CarouselLinkProps[];
20
- /** @title Отступы вложенных компонентов */
21
- isInnerPadding?: boolean;
22
- };
@@ -1,6 +0,0 @@
1
- export enum Currency {
2
- RUB = 'RUB',
3
- EUR = 'EUR',
4
- USD = 'USD',
5
- CNY = 'CNY',
6
- }
@@ -1,64 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { type ComponentType } from '../../model/ComponentType';
3
- import { Img } from '../../ui-kit/Img/Img';
4
- import { Text } from '../../ui-kit/Text/Text';
5
- import { style } from '../../utils/style';
6
- import { type ExchangeCurrencyItem } from './ExchangeCurrencyCalculator';
7
- import { formatCurrency } from './formatCurrency';
8
-
9
- const TABLE_STYLE_BASE = 'text-m font-light text-secondary-text ';
10
- const TABLE_HEAD_STYLE = `${TABLE_STYLE_BASE} text-left`;
11
- const TABLE_HEAD_STYLE_CENTER = `${TABLE_STYLE_BASE} pl-5xl text-center`;
12
- const TABLE_HEAD_STYLE_RIGHT = `${TABLE_STYLE_BASE} pl-5xl text-right`;
13
-
14
- const CURRENCY_ICONS_MAP = {
15
- USD: 'DollarIcon',
16
- EUR: 'EuroIcon',
17
- CNY: 'ChineseYuanRenminbiIcon',
18
- };
19
-
20
- interface CurrencyTableProps extends ComponentType {
21
- exchangeCurrencyItems: ExchangeCurrencyItem[];
22
- }
23
-
24
- export const CurrencyTable = JSX<CurrencyTableProps>(({ className, exchangeCurrencyItems }) => (
25
- <table className={style('h-fit w-full', className)}>
26
- <thead>
27
- <tr>
28
- <th className={TABLE_HEAD_STYLE}>
29
- <Text size="text-m">Валюта</Text>
30
- </th>
31
- <th className={TABLE_HEAD_STYLE_CENTER}>
32
- <Text size="text-m">Купить</Text>
33
- </th>
34
- <th className={TABLE_HEAD_STYLE_RIGHT}>
35
- <Text size="text-m">Продать</Text>
36
- </th>
37
- </tr>
38
- </thead>
39
- <tbody>{exchangeCurrencyItems.map(renderCurrencyRow)}</tbody>
40
- </table>
41
- ));
42
-
43
- const renderCurrencyRow = (exchangeCurrencyItem: ExchangeCurrencyItem) => {
44
- const currency = exchangeCurrencyItem?.currency?.currency;
45
-
46
- return (
47
- <tr key={currency} className="pb-2xs text-h6">
48
- <td className="pt-m m-auto flex text-left">
49
- <div className="flex items-center gap-xs">
50
- {currency ? (
51
- <Img image={{ icon: CURRENCY_ICONS_MAP[currency] }} width="24" height="24" />
52
- ) : null}
53
- <Text size="text-h6">{currency}</Text>
54
- </div>
55
- </td>
56
- <td className="pt-m pl-5xl text-center">
57
- <Text size="text-h6">{formatCurrency(exchangeCurrencyItem?.saleExchangeRate)}</Text>
58
- </td>
59
- <td className="pt-m pl-5xl text-right">
60
- <Text size="text-h6">{formatCurrency(exchangeCurrencyItem?.buyExchangeRate)}</Text>
61
- </td>
62
- </tr>
63
- );
64
- };
@@ -1,28 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { type ComponentType } from '../../model/ComponentType';
3
- import { type Picture } from '../../model/Picture';
4
- import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
5
- import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
6
- import { style } from '../../utils/style';
7
-
8
- interface CurrentLocationProps extends ComponentType {
9
- address?: string;
10
- }
11
-
12
- const icon: Picture = { icon: 'GpsIcon' };
13
-
14
- export const CurrentLocation = JSX<CurrentLocationProps>(({ className = '', address }) => (
15
- <div className={style('flex gap-s w-full justify-between @sm:justify-center', className)}>
16
- <RoundedIcon {...icon} iconBgVersion="primary" className="shrink-0" />
17
- <div className="space-y-2xs whitespace-pre-wrap">
18
- {address ? (
19
- <Paragraph size="text-l" color="text-primary-main">
20
- {address}
21
- </Paragraph>
22
- ) : null}
23
- <Paragraph size="text-m" color="text-secondary-text">
24
- Курс указан для заданного офиса
25
- </Paragraph>
26
- </div>
27
- </div>
28
- ));