@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,35 +0,0 @@
1
- import { type TitleProps } from '../../model/HeadlineType';
2
- import { type IconProps } from '../../model/Picture';
3
- import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
4
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
5
-
6
- /**
7
- * @title Кнопка выбора программы
8
- */
9
- export type CardItem = IconProps & {
10
- /** @title Страховой взнос */
11
- fee?: number;
12
- /** @title Страховая сумма */
13
- sum?: number;
14
- /** @title Ссылка на программу*/
15
- href?: string;
16
- };
17
-
18
- /**
19
- * @title Вкладка
20
- */
21
- export type InsuranceAmountBlockTab = TitleProps & {
22
- /** @title Содержимое вкладки */
23
- cards?: CardItem[];
24
- };
25
-
26
- /**
27
- * @title Страховые суммы
28
- */
29
- export type InsuranceAmountBlockContent = UniBlockContent &
30
- TitleProps & {
31
- /** @title Список вкладок */
32
- insuranceTabs?: InsuranceAmountBlockTab[];
33
- /** @title Кнопка */
34
- button?: LinkButtonContent;
35
- };
@@ -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,7 +0,0 @@
1
- import '../../setup-fixture';
2
-
3
- import { Rating } from './Rating';
4
-
5
- export default {
6
- default: <Rating />,
7
- };
@@ -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
- };