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

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 (336) 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 +47 -325
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/dist/components/Blocks.js +0 -6
  6. package/dist/components/Blocks.js.map +1 -1
  7. package/dist/components/Blocks.mobile.js +0 -4
  8. package/dist/components/Blocks.mobile.js.map +1 -1
  9. package/lib/common.css +1 -1
  10. package/lib/components/Blocks.js +0 -6
  11. package/lib/components/Blocks.js.map +1 -1
  12. package/lib/components/Blocks.mobile.js +0 -4
  13. package/lib/components/Blocks.mobile.js.map +1 -1
  14. package/mobile/bundle/bundle.umd.js +20 -226
  15. package/mobile/bundle/bundle.umd.min.js +1 -1
  16. package/mobile/dist/components/Blocks.js +0 -4
  17. package/mobile/dist/components/Blocks.js.map +1 -1
  18. package/mobile/lib/common.css +1 -1
  19. package/mobile/lib/components/Blocks.js +0 -4
  20. package/mobile/lib/components/Blocks.js.map +1 -1
  21. package/mobile/src/components/Blocks.ts +0 -4
  22. package/package.json +2 -2
  23. package/src/components/Blocks.mobile.ts +0 -4
  24. package/src/components/Blocks.ts +0 -6
  25. package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  26. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  27. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  28. package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  29. package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  30. package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  31. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  32. package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  33. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  34. package/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  35. package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  36. package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  37. package/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  38. package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  39. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  40. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  41. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  42. package/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  43. package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  44. package/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  45. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  46. package/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  47. package/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  48. package/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  49. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  50. package/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  51. package/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  52. package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  53. package/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  54. package/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  55. package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  56. package/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  57. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  58. package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  59. package/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  60. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  61. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  62. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  63. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  64. package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  65. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  66. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  67. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  68. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  69. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  70. package/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  71. package/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  72. package/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  73. package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  74. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  75. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  76. package/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  77. package/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  78. package/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  79. package/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  80. package/dist/components/ExchangeRateTile/renderInput.js +0 -16
  81. package/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  82. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  83. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  84. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  85. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  86. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  87. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  88. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  89. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  90. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  91. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  92. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  93. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  94. package/dist/ui-kit/Rating/Rating.d.ts +0 -1
  95. package/dist/ui-kit/Rating/Rating.js +0 -21
  96. package/dist/ui-kit/Rating/Rating.js.map +0 -1
  97. package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  98. package/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  99. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  100. package/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  101. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +0 -5
  102. package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +0 -5
  103. package/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  104. package/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  105. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  106. package/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  107. package/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  108. package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  109. package/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  110. package/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  111. package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  112. package/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  113. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  114. package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  115. package/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  116. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  117. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  118. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  119. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  120. package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  121. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +0 -5
  122. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +0 -5
  123. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  124. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  125. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  126. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  127. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  128. package/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  129. package/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  130. package/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  131. package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  132. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  133. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  134. package/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  135. package/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  136. package/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  137. package/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  138. package/lib/components/ExchangeRateTile/renderInput.js +0 -13
  139. package/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  140. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  141. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  142. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  143. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  144. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +0 -5
  145. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  146. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  147. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  148. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  149. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  150. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  151. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  152. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  153. package/lib/ui-kit/Rating/Rating.d.ts +0 -1
  154. package/lib/ui-kit/Rating/Rating.fixture.d.ts +0 -5
  155. package/lib/ui-kit/Rating/Rating.js +0 -18
  156. package/lib/ui-kit/Rating/Rating.js.map +0 -1
  157. package/mobile/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  158. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  159. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  160. package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  161. package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  162. package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  163. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  164. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  165. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  166. package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  167. package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  168. package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  169. package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  170. package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  171. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  172. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  173. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  174. package/mobile/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  175. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  176. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  177. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  178. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  179. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  180. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  181. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  182. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  183. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  184. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  185. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  186. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  187. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  188. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  189. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  190. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  191. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  192. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  193. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  194. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  195. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  196. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  197. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  198. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  199. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  200. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  201. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  202. package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  203. package/mobile/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  204. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  205. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  206. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  207. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  208. package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  209. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  210. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  211. package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  212. package/mobile/dist/components/ExchangeRateTile/renderInput.js +0 -16
  213. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  214. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  215. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  216. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  217. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  218. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  219. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  220. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  221. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  222. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  223. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  224. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  225. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  226. package/mobile/dist/ui-kit/Rating/Rating.d.ts +0 -1
  227. package/mobile/dist/ui-kit/Rating/Rating.js +0 -21
  228. package/mobile/dist/ui-kit/Rating/Rating.js.map +0 -1
  229. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  230. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  231. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  232. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  233. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  234. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  235. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  236. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  237. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  238. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  239. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  240. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  241. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  242. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  243. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  244. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  245. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  246. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  247. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  248. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  249. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  250. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  251. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  252. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  253. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  254. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  255. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  256. package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  257. package/mobile/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  258. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  259. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  260. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  261. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  262. package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  263. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  264. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  265. package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  266. package/mobile/lib/components/ExchangeRateTile/renderInput.js +0 -13
  267. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  268. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  269. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  270. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  271. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  272. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  273. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  274. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  275. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  276. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  277. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  278. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  279. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  280. package/mobile/lib/ui-kit/Rating/Rating.d.ts +0 -1
  281. package/mobile/lib/ui-kit/Rating/Rating.js +0 -18
  282. package/mobile/lib/ui-kit/Rating/Rating.js.map +0 -1
  283. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  284. package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  285. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  286. package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  287. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  288. package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  289. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  290. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  291. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  292. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  293. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  294. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  295. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  296. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  297. package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  298. package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  299. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  300. package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  301. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  302. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  303. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  304. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  305. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  306. package/mobile/src/ui-kit/Rating/Rating.tsx +0 -39
  307. package/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  308. package/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  309. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +0 -83
  310. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +0 -40
  311. package/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  312. package/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  313. package/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  314. package/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  315. package/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  316. package/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  317. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  318. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  319. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.tsx +0 -19
  320. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +0 -21
  321. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  322. package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  323. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  324. package/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  325. package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  326. package/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  327. package/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  328. package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  329. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  330. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -62
  331. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  332. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  333. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  334. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  335. package/src/ui-kit/Rating/Rating.fixture.tsx +0 -7
  336. package/src/ui-kit/Rating/Rating.tsx +0 -39
@@ -1,89 +0,0 @@
1
- {
2
- "content": {
3
- "version": "primary",
4
- "padding": "",
5
- "title": "Заголовок",
6
- "insuranceTabs": [
7
- {
8
- "title": "Описание 1",
9
- "cards": [
10
- {
11
- "sum": 200000,
12
- "fee": 2100,
13
- "icon": {
14
- "format": "webp",
15
- "size": {
16
- "width": 70,
17
- "height": 70
18
- },
19
- "icon": "ActualBalanceIcon"
20
- },
21
- "href": ""
22
- },
23
- {
24
- "sum": 200000,
25
- "fee": 2100,
26
- "icon": {
27
- "format": "webp",
28
- "size": {
29
- "width": 70,
30
- "height": 70
31
- },
32
- "icon": "ActualBalanceIcon"
33
- },
34
- "href": ""
35
- }
36
- ]
37
- },
38
- {
39
- "title": "Описание 2",
40
- "cards": [
41
- {
42
- "sum": 200000,
43
- "fee": 2100,
44
- "icon": {
45
- "format": "webp",
46
- "size": {
47
- "width": 70,
48
- "height": 70
49
- },
50
- "icon": "ActualBalanceIcon"
51
- },
52
- "href": ""
53
- },
54
- {
55
- "sum": 200000,
56
- "fee": 2100,
57
- "icon": {
58
- "format": "webp",
59
- "size": {
60
- "width": 70,
61
- "height": 70
62
- },
63
- "icon": "ActualBalanceIcon"
64
- },
65
- "href": ""
66
- },
67
- {
68
- "sum": 200000,
69
- "fee": 2100,
70
- "icon": {
71
- "format": "webp",
72
- "size": {
73
- "width": 70,
74
- "height": 70
75
- },
76
- "icon": "ActualBalanceIcon"
77
- }
78
- }
79
- ]
80
- }
81
- ],
82
- "button": {
83
- "href": "",
84
- "text": "Выбрать программу",
85
- "target": "_self",
86
- "version": "primary"
87
- }
88
- }
89
- }
@@ -1,82 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
- import { Heading } from '../../ui-kit/Heading/Heading';
5
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
6
- import { style } from '../../utils/style';
7
- import { type InsuranceAmountBlockContent } from './InsuranceAmountBlockContent';
8
- import { InsuranceAmountBlockInner } from './InsuranceAmountBlockInner';
9
-
10
- interface NavButtonProps {
11
- title?: string;
12
- i: number;
13
- isActive: boolean;
14
- onClick: () => void;
15
- }
16
-
17
- export interface InsuranceAmountBlockProps extends InsuranceAmountBlockContent, UniBlockProps {}
18
-
19
- export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
20
- ({ className = '', title, insuranceTabs = [], button, ...rest }) => {
21
- const [activeSlideIndex, setActiveSlideIndex] = useState(0);
22
- const handleActiveSlideIndex = useCallback((_: number) => setActiveSlideIndex(_), []);
23
-
24
- return (
25
- <BlockWrapper
26
- className={style('box-border overflow-hidden relative px-0 space-y-2xl', className)}
27
- defaultPadding="p-6xl"
28
- {...rest}
29
- >
30
- {title ? <Heading className="text-center" title={title} headingType="h3" /> : null}
31
- {insuranceTabs?.length > 1 ? (
32
- <div className="p-xs bg-secondary-light w-fit mx-auto rounded-md">
33
- {insuranceTabs.map((item, i) =>
34
- renderNavButton({
35
- title: item?.title,
36
- i,
37
- isActive: Boolean(i === activeSlideIndex),
38
- onClick: () => handleActiveSlideIndex(i),
39
- }),
40
- )}
41
- </div>
42
- ) : null}
43
- <div
44
- className="flex"
45
- style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
46
- role="list"
47
- >
48
- {renderInsuranceGalleries({
49
- insuranceTabs,
50
- button,
51
- })}
52
- </div>
53
- </BlockWrapper>
54
- );
55
- },
56
- );
57
-
58
- const renderInsuranceGalleries = ({ insuranceTabs, button }: InsuranceAmountBlockContent) => {
59
- const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
60
-
61
- return insuranceGalleries?.length
62
- ? insuranceGalleries.map((cards, i) => (
63
- <InsuranceAmountBlockInner key={String(i)} button={button} cards={cards} />
64
- ))
65
- : null;
66
- };
67
-
68
- function renderNavButton({ title, i, isActive, onClick }: NavButtonProps) {
69
- const btnClassName = isActive ? 'bg-primary-main text-white rounded-md' : `text-secondary-text`;
70
-
71
- return (
72
- <button
73
- type="button"
74
- key={String(i)}
75
- onClick={onClick}
76
- aria-label={`Кнопка ${title}`}
77
- className={`box-border px-m py-s text-m font-light ${btnClassName}`}
78
- >
79
- {title}
80
- </button>
81
- );
82
- }
@@ -1,21 +0,0 @@
1
- {
2
- "content": {
3
- "insuranceTabs": {
4
- "items": {
5
- "cards": {
6
- "items": {
7
- "fee": {
8
- "ui:field": "number"
9
- },
10
- "sum": {
11
- "ui:field": "number"
12
- },
13
- "icon": {
14
- "ui:field": "icon"
15
- }
16
- }
17
- }
18
- }
19
- }
20
- }
21
- }
@@ -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,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
- }