@cloud-ru/uikit-product-site-section 0.23.3 → 0.23.4

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 (416) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/components/SectionAccordion/SectionAccordion.d.ts +28 -0
  3. package/dist/cjs/components/SectionAccordion/SectionAccordion.js +29 -0
  4. package/dist/cjs/components/SectionAccordion/index.d.ts +1 -0
  5. package/dist/cjs/components/SectionAccordion/index.js +17 -0
  6. package/dist/cjs/components/SectionAccordion/styles.module.css +11 -0
  7. package/dist/cjs/components/SectionAccordion/types.d.ts +9 -0
  8. package/dist/cjs/components/SectionAccordion/types.js +2 -0
  9. package/dist/cjs/components/SectionAccordion/utils.d.ts +4 -0
  10. package/dist/cjs/components/SectionAccordion/utils.js +29 -0
  11. package/dist/cjs/components/SectionBasic/SectionBasic.d.ts +38 -0
  12. package/dist/cjs/components/SectionBasic/SectionBasic.js +45 -0
  13. package/dist/cjs/components/SectionBasic/index.d.ts +1 -0
  14. package/dist/cjs/components/SectionBasic/index.js +17 -0
  15. package/dist/cjs/components/SectionBasic/styles.module.css +73 -0
  16. package/dist/cjs/components/SectionBenefits/SectionBenefits.d.ts +33 -0
  17. package/dist/cjs/components/SectionBenefits/SectionBenefits.js +56 -0
  18. package/dist/cjs/components/SectionBenefits/components/CardNumeric/CardNumeric.d.ts +6 -0
  19. package/dist/cjs/components/SectionBenefits/components/CardNumeric/CardNumeric.js +25 -0
  20. package/dist/cjs/components/SectionBenefits/components/CardNumeric/index.d.ts +1 -0
  21. package/dist/cjs/components/SectionBenefits/components/CardNumeric/index.js +17 -0
  22. package/dist/cjs/components/SectionBenefits/components/CardNumeric/styles.module.css +4 -0
  23. package/dist/cjs/components/SectionBenefits/components/index.d.ts +1 -0
  24. package/dist/cjs/components/SectionBenefits/components/index.js +17 -0
  25. package/dist/cjs/components/SectionBenefits/index.d.ts +1 -0
  26. package/dist/cjs/components/SectionBenefits/index.js +17 -0
  27. package/dist/cjs/components/SectionBenefits/styles.module.css +12 -0
  28. package/dist/cjs/components/SectionBenefits/types.d.ts +69 -0
  29. package/dist/cjs/components/SectionBenefits/types.js +2 -0
  30. package/dist/cjs/components/SectionBenefitsBanner/SectionBenefitsBanner.d.ts +19 -0
  31. package/dist/cjs/components/SectionBenefitsBanner/SectionBenefitsBanner.js +31 -0
  32. package/dist/cjs/components/SectionBenefitsBanner/index.d.ts +1 -0
  33. package/dist/cjs/components/SectionBenefitsBanner/index.js +17 -0
  34. package/dist/cjs/components/SectionBenefitsBanner/styles.module.css +91 -0
  35. package/dist/cjs/components/SectionBenefitsBanner/types.d.ts +34 -0
  36. package/dist/cjs/components/SectionBenefitsBanner/types.js +14 -0
  37. package/dist/cjs/components/SectionBenefitsBanner/utils.d.ts +3 -0
  38. package/dist/cjs/components/SectionBenefitsBanner/utils.js +14 -0
  39. package/dist/cjs/components/SectionBlogCarousel/SectionBlogCarousel.d.ts +5 -0
  40. package/dist/cjs/components/SectionBlogCarousel/SectionBlogCarousel.js +24 -0
  41. package/dist/cjs/components/SectionBlogCarousel/index.d.ts +1 -0
  42. package/dist/cjs/components/SectionBlogCarousel/index.js +17 -0
  43. package/dist/cjs/components/SectionBlogCarousel/utils.d.ts +3 -0
  44. package/dist/cjs/components/SectionBlogCarousel/utils.js +25 -0
  45. package/dist/cjs/components/SectionCaseCarousel/SectionCaseCarousel.d.ts +5 -0
  46. package/dist/cjs/components/SectionCaseCarousel/SectionCaseCarousel.js +24 -0
  47. package/dist/cjs/components/SectionCaseCarousel/index.d.ts +1 -0
  48. package/dist/cjs/components/SectionCaseCarousel/index.js +17 -0
  49. package/dist/cjs/components/SectionCaseCarousel/styles.module.css +3 -0
  50. package/dist/cjs/components/SectionCaseCarousel/utils.d.ts +3 -0
  51. package/dist/cjs/components/SectionCaseCarousel/utils.js +21 -0
  52. package/dist/cjs/components/SectionCatalog/SectionCatalog.d.ts +29 -0
  53. package/dist/cjs/components/SectionCatalog/SectionCatalog.js +35 -0
  54. package/dist/cjs/components/SectionCatalog/constants.d.ts +14 -0
  55. package/dist/cjs/components/SectionCatalog/constants.js +8 -0
  56. package/dist/cjs/components/SectionCatalog/index.d.ts +1 -0
  57. package/dist/cjs/components/SectionCatalog/index.js +17 -0
  58. package/dist/cjs/components/SectionCatalog/styles.module.css +43 -0
  59. package/dist/cjs/components/SectionClientsCarousel/SectionClientsCarousel.d.ts +3 -0
  60. package/dist/cjs/components/SectionClientsCarousel/SectionClientsCarousel.js +24 -0
  61. package/dist/cjs/components/SectionClientsCarousel/index.d.ts +1 -0
  62. package/dist/cjs/components/SectionClientsCarousel/index.js +17 -0
  63. package/dist/cjs/components/SectionClientsCarousel/utils.d.ts +3 -0
  64. package/dist/cjs/components/SectionClientsCarousel/utils.js +25 -0
  65. package/dist/cjs/components/SectionContent/SectionContent.d.ts +21 -0
  66. package/dist/cjs/components/SectionContent/SectionContent.js +31 -0
  67. package/dist/cjs/components/SectionContent/index.d.ts +1 -0
  68. package/dist/cjs/components/SectionContent/index.js +17 -0
  69. package/dist/cjs/components/SectionContent/styles.module.css +59 -0
  70. package/dist/cjs/components/SectionContentList/SectionContentList.d.ts +26 -0
  71. package/dist/cjs/components/SectionContentList/SectionContentList.js +27 -0
  72. package/dist/cjs/components/SectionContentList/index.d.ts +1 -0
  73. package/dist/cjs/components/SectionContentList/index.js +17 -0
  74. package/dist/cjs/components/SectionContentList/styles.module.css +49 -0
  75. package/dist/cjs/components/SectionContentTabs/SectionContentTabs.d.ts +36 -0
  76. package/dist/cjs/components/SectionContentTabs/SectionContentTabs.js +43 -0
  77. package/dist/cjs/components/SectionContentTabs/index.d.ts +1 -0
  78. package/dist/cjs/components/SectionContentTabs/index.js +17 -0
  79. package/dist/cjs/components/SectionContentTabs/styles.module.css +76 -0
  80. package/dist/cjs/components/SectionExpertsCarousel/SectionExpertsCarousel.d.ts +4 -0
  81. package/dist/cjs/components/SectionExpertsCarousel/SectionExpertsCarousel.js +21 -0
  82. package/dist/cjs/components/SectionExpertsCarousel/constants.d.ts +2 -0
  83. package/dist/cjs/components/SectionExpertsCarousel/constants.js +5 -0
  84. package/dist/cjs/components/SectionExpertsCarousel/index.d.ts +1 -0
  85. package/dist/cjs/components/SectionExpertsCarousel/index.js +17 -0
  86. package/dist/cjs/components/SectionExpertsCarousel/types.d.ts +6 -0
  87. package/dist/cjs/components/SectionExpertsCarousel/types.js +2 -0
  88. package/dist/cjs/components/SectionLeading/SectionLeading.d.ts +15 -0
  89. package/dist/cjs/components/SectionLeading/SectionLeading.js +57 -0
  90. package/dist/cjs/components/SectionLeading/index.d.ts +1 -0
  91. package/dist/cjs/components/SectionLeading/index.js +17 -0
  92. package/dist/cjs/components/SectionLeading/styles.module.css +23 -0
  93. package/dist/cjs/components/SectionLeading/utils.d.ts +1 -0
  94. package/dist/cjs/components/SectionLeading/utils.js +13 -0
  95. package/dist/cjs/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.d.ts +4 -0
  96. package/dist/cjs/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.js +24 -0
  97. package/dist/cjs/components/SectionMarketplaceCarousel/index.d.ts +1 -0
  98. package/dist/cjs/components/SectionMarketplaceCarousel/index.js +17 -0
  99. package/dist/cjs/components/SectionMarketplaceCarousel/utils.d.ts +3 -0
  100. package/dist/cjs/components/SectionMarketplaceCarousel/utils.js +29 -0
  101. package/dist/cjs/components/SectionMedia/SectionMedia.d.ts +5 -0
  102. package/dist/cjs/components/SectionMedia/SectionMedia.js +26 -0
  103. package/dist/cjs/components/SectionMedia/index.d.ts +1 -0
  104. package/dist/cjs/components/SectionMedia/index.js +17 -0
  105. package/dist/cjs/components/SectionMedia/styles.module.css +10 -0
  106. package/dist/cjs/components/SectionPersonalManager/SectionPersonalManager.d.ts +24 -0
  107. package/dist/cjs/components/SectionPersonalManager/SectionPersonalManager.js +53 -0
  108. package/dist/cjs/components/SectionPersonalManager/index.d.ts +1 -0
  109. package/dist/cjs/components/SectionPersonalManager/index.js +17 -0
  110. package/dist/cjs/components/SectionPersonalManager/styles.module.css +122 -0
  111. package/dist/cjs/components/SectionPersonalManager/utils.d.ts +3 -0
  112. package/dist/cjs/components/SectionPersonalManager/utils.js +15 -0
  113. package/dist/cjs/components/SectionPromoList/SectionPromoList.d.ts +19 -0
  114. package/dist/cjs/components/SectionPromoList/SectionPromoList.js +27 -0
  115. package/dist/cjs/components/SectionPromoList/index.d.ts +1 -0
  116. package/dist/cjs/components/SectionPromoList/index.js +17 -0
  117. package/dist/cjs/components/SectionPromoList/styles.module.css +43 -0
  118. package/dist/cjs/components/SectionSocial/SectionSocial.d.ts +19 -0
  119. package/dist/cjs/components/SectionSocial/SectionSocial.js +33 -0
  120. package/dist/cjs/components/SectionSocial/constants.d.ts +14 -0
  121. package/dist/cjs/components/SectionSocial/constants.js +8 -0
  122. package/dist/cjs/components/SectionSocial/index.d.ts +1 -0
  123. package/dist/cjs/components/SectionSocial/index.js +17 -0
  124. package/dist/cjs/components/SectionSocial/styles.module.css +4 -0
  125. package/dist/cjs/components/SectionTable/SectionTable.d.ts +15 -0
  126. package/dist/cjs/components/SectionTable/SectionTable.js +28 -0
  127. package/dist/cjs/components/SectionTable/index.d.ts +1 -0
  128. package/dist/cjs/components/SectionTable/index.js +17 -0
  129. package/dist/cjs/components/SectionTable/styles.module.css +25 -0
  130. package/dist/cjs/components/index.d.ts +19 -0
  131. package/dist/cjs/components/index.js +35 -0
  132. package/dist/cjs/constants.d.ts +4 -0
  133. package/dist/cjs/constants.js +7 -0
  134. package/dist/cjs/helperComponents/BenefitItem/BenefitItem.d.ts +8 -0
  135. package/dist/cjs/helperComponents/BenefitItem/BenefitItem.js +15 -0
  136. package/dist/cjs/helperComponents/BenefitItem/index.d.ts +1 -0
  137. package/dist/cjs/helperComponents/BenefitItem/index.js +17 -0
  138. package/dist/cjs/helperComponents/BenefitItem/styles.module.css +27 -0
  139. package/dist/cjs/helperComponents/BenefitItem/utils.d.ts +4 -0
  140. package/dist/cjs/helperComponents/BenefitItem/utils.js +26 -0
  141. package/dist/cjs/helperComponents/CardClient/CardClient.d.ts +5 -0
  142. package/dist/cjs/helperComponents/CardClient/CardClient.js +11 -0
  143. package/dist/cjs/helperComponents/CardClient/index.d.ts +1 -0
  144. package/dist/cjs/helperComponents/CardClient/index.js +17 -0
  145. package/dist/cjs/helperComponents/CardClient/styles.module.css +24 -0
  146. package/dist/cjs/helperComponents/CardLeading/CardLeading.d.ts +4 -0
  147. package/dist/cjs/helperComponents/CardLeading/CardLeading.js +26 -0
  148. package/dist/cjs/helperComponents/CardLeading/index.d.ts +2 -0
  149. package/dist/cjs/helperComponents/CardLeading/index.js +18 -0
  150. package/dist/cjs/helperComponents/CardLeading/styles.module.css +36 -0
  151. package/dist/cjs/helperComponents/CardLeading/types.d.ts +11 -0
  152. package/dist/cjs/helperComponents/CardLeading/types.js +2 -0
  153. package/dist/cjs/helperComponents/CardLeading/utils.d.ts +4 -0
  154. package/dist/cjs/helperComponents/CardLeading/utils.js +27 -0
  155. package/dist/cjs/helperComponents/CardSocial/CardSocial.d.ts +25 -0
  156. package/dist/cjs/helperComponents/CardSocial/CardSocial.js +34 -0
  157. package/dist/cjs/helperComponents/CardSocial/index.d.ts +1 -0
  158. package/dist/cjs/helperComponents/CardSocial/index.js +17 -0
  159. package/dist/cjs/helperComponents/CardSocial/styles.module.css +42 -0
  160. package/dist/cjs/helperComponents/CardSocial/utils.d.ts +3 -0
  161. package/dist/cjs/helperComponents/CardSocial/utils.js +13 -0
  162. package/dist/cjs/helperComponents/Expert/Expert.d.ts +5 -0
  163. package/dist/cjs/helperComponents/Expert/Expert.js +13 -0
  164. package/dist/cjs/helperComponents/Expert/index.d.ts +1 -0
  165. package/dist/cjs/helperComponents/Expert/index.js +17 -0
  166. package/dist/cjs/helperComponents/Expert/styles.module.css +38 -0
  167. package/dist/cjs/helperComponents/PromoList/PromoList.d.ts +6 -0
  168. package/dist/cjs/helperComponents/PromoList/PromoList.js +13 -0
  169. package/dist/cjs/helperComponents/PromoList/index.d.ts +1 -0
  170. package/dist/cjs/helperComponents/PromoList/index.js +17 -0
  171. package/dist/cjs/helperComponents/PromoList/styles.module.css +53 -0
  172. package/dist/cjs/helperComponents/SectionButton/SectionButton.d.ts +2 -0
  173. package/dist/cjs/helperComponents/SectionButton/SectionButton.js +28 -0
  174. package/dist/cjs/helperComponents/SectionButton/index.d.ts +1 -0
  175. package/dist/cjs/helperComponents/SectionButton/index.js +17 -0
  176. package/dist/cjs/helperComponents/SectionButton/types.d.ts +8 -0
  177. package/dist/cjs/helperComponents/SectionButton/types.js +2 -0
  178. package/dist/cjs/helperComponents/SectionCarousel/SectionCarousel.d.ts +2 -0
  179. package/dist/cjs/helperComponents/SectionCarousel/SectionCarousel.js +61 -0
  180. package/dist/cjs/helperComponents/SectionCarousel/index.d.ts +2 -0
  181. package/dist/cjs/helperComponents/SectionCarousel/index.js +17 -0
  182. package/dist/cjs/helperComponents/SectionCarousel/styles.module.css +5 -0
  183. package/dist/cjs/helperComponents/SectionCarousel/types.d.ts +32 -0
  184. package/dist/cjs/helperComponents/SectionCarousel/types.js +2 -0
  185. package/dist/cjs/helperComponents/SectionCarousel/utils.d.ts +6 -0
  186. package/dist/cjs/helperComponents/SectionCarousel/utils.js +8 -0
  187. package/dist/cjs/helperComponents/SectionCatalogFooter/SectionCatalogFooter.d.ts +12 -0
  188. package/dist/cjs/helperComponents/SectionCatalogFooter/SectionCatalogFooter.js +16 -0
  189. package/dist/cjs/helperComponents/SectionCatalogFooter/index.d.ts +1 -0
  190. package/dist/cjs/helperComponents/SectionCatalogFooter/index.js +17 -0
  191. package/dist/cjs/helperComponents/SectionCatalogFooter/styles.module.css +8 -0
  192. package/dist/cjs/helperComponents/SectionTitle/SectionTitle.d.ts +22 -0
  193. package/dist/cjs/helperComponents/SectionTitle/SectionTitle.js +17 -0
  194. package/dist/cjs/helperComponents/SectionTitle/constants.d.ts +5 -0
  195. package/dist/cjs/helperComponents/SectionTitle/constants.js +8 -0
  196. package/dist/cjs/helperComponents/SectionTitle/index.d.ts +1 -0
  197. package/dist/cjs/helperComponents/SectionTitle/index.js +17 -0
  198. package/dist/cjs/helperComponents/SectionTitle/styles.module.css +31 -0
  199. package/dist/cjs/helperComponents/SectionTitle/types.d.ts +5 -0
  200. package/dist/cjs/helperComponents/SectionTitle/types.js +2 -0
  201. package/dist/cjs/helperComponents/SectionTitle/utils.d.ts +8 -0
  202. package/dist/cjs/helperComponents/SectionTitle/utils.js +67 -0
  203. package/dist/cjs/helperComponents/index.d.ts +10 -0
  204. package/dist/cjs/helperComponents/index.js +26 -0
  205. package/dist/cjs/index.d.ts +2 -0
  206. package/dist/cjs/index.js +18 -0
  207. package/dist/cjs/types.d.ts +19 -0
  208. package/dist/cjs/types.js +2 -0
  209. package/dist/esm/components/SectionAccordion/SectionAccordion.d.ts +28 -0
  210. package/dist/esm/components/SectionAccordion/SectionAccordion.js +23 -0
  211. package/dist/esm/components/SectionAccordion/index.d.ts +1 -0
  212. package/dist/esm/components/SectionAccordion/index.js +1 -0
  213. package/dist/esm/components/SectionAccordion/styles.module.css +11 -0
  214. package/dist/esm/components/SectionAccordion/types.d.ts +9 -0
  215. package/dist/esm/components/SectionAccordion/types.js +1 -0
  216. package/dist/esm/components/SectionAccordion/utils.d.ts +4 -0
  217. package/dist/esm/components/SectionAccordion/utils.js +24 -0
  218. package/dist/esm/components/SectionBasic/SectionBasic.d.ts +38 -0
  219. package/dist/esm/components/SectionBasic/SectionBasic.js +39 -0
  220. package/dist/esm/components/SectionBasic/index.d.ts +1 -0
  221. package/dist/esm/components/SectionBasic/index.js +1 -0
  222. package/dist/esm/components/SectionBasic/styles.module.css +73 -0
  223. package/dist/esm/components/SectionBenefits/SectionBenefits.d.ts +33 -0
  224. package/dist/esm/components/SectionBenefits/SectionBenefits.js +50 -0
  225. package/dist/esm/components/SectionBenefits/components/CardNumeric/CardNumeric.d.ts +6 -0
  226. package/dist/esm/components/SectionBenefits/components/CardNumeric/CardNumeric.js +19 -0
  227. package/dist/esm/components/SectionBenefits/components/CardNumeric/index.d.ts +1 -0
  228. package/dist/esm/components/SectionBenefits/components/CardNumeric/index.js +1 -0
  229. package/dist/esm/components/SectionBenefits/components/CardNumeric/styles.module.css +4 -0
  230. package/dist/esm/components/SectionBenefits/components/index.d.ts +1 -0
  231. package/dist/esm/components/SectionBenefits/components/index.js +1 -0
  232. package/dist/esm/components/SectionBenefits/index.d.ts +1 -0
  233. package/dist/esm/components/SectionBenefits/index.js +1 -0
  234. package/dist/esm/components/SectionBenefits/styles.module.css +12 -0
  235. package/dist/esm/components/SectionBenefits/types.d.ts +69 -0
  236. package/dist/esm/components/SectionBenefits/types.js +1 -0
  237. package/dist/esm/components/SectionBenefitsBanner/SectionBenefitsBanner.d.ts +19 -0
  238. package/dist/esm/components/SectionBenefitsBanner/SectionBenefitsBanner.js +25 -0
  239. package/dist/esm/components/SectionBenefitsBanner/index.d.ts +1 -0
  240. package/dist/esm/components/SectionBenefitsBanner/index.js +1 -0
  241. package/dist/esm/components/SectionBenefitsBanner/styles.module.css +91 -0
  242. package/dist/esm/components/SectionBenefitsBanner/types.d.ts +34 -0
  243. package/dist/esm/components/SectionBenefitsBanner/types.js +11 -0
  244. package/dist/esm/components/SectionBenefitsBanner/utils.d.ts +3 -0
  245. package/dist/esm/components/SectionBenefitsBanner/utils.js +11 -0
  246. package/dist/esm/components/SectionBlogCarousel/SectionBlogCarousel.d.ts +5 -0
  247. package/dist/esm/components/SectionBlogCarousel/SectionBlogCarousel.js +21 -0
  248. package/dist/esm/components/SectionBlogCarousel/index.d.ts +1 -0
  249. package/dist/esm/components/SectionBlogCarousel/index.js +1 -0
  250. package/dist/esm/components/SectionBlogCarousel/utils.d.ts +3 -0
  251. package/dist/esm/components/SectionBlogCarousel/utils.js +21 -0
  252. package/dist/esm/components/SectionCaseCarousel/SectionCaseCarousel.d.ts +5 -0
  253. package/dist/esm/components/SectionCaseCarousel/SectionCaseCarousel.js +21 -0
  254. package/dist/esm/components/SectionCaseCarousel/index.d.ts +1 -0
  255. package/dist/esm/components/SectionCaseCarousel/index.js +1 -0
  256. package/dist/esm/components/SectionCaseCarousel/styles.module.css +3 -0
  257. package/dist/esm/components/SectionCaseCarousel/utils.d.ts +3 -0
  258. package/dist/esm/components/SectionCaseCarousel/utils.js +17 -0
  259. package/dist/esm/components/SectionCatalog/SectionCatalog.d.ts +29 -0
  260. package/dist/esm/components/SectionCatalog/SectionCatalog.js +29 -0
  261. package/dist/esm/components/SectionCatalog/constants.d.ts +14 -0
  262. package/dist/esm/components/SectionCatalog/constants.js +5 -0
  263. package/dist/esm/components/SectionCatalog/index.d.ts +1 -0
  264. package/dist/esm/components/SectionCatalog/index.js +1 -0
  265. package/dist/esm/components/SectionCatalog/styles.module.css +43 -0
  266. package/dist/esm/components/SectionClientsCarousel/SectionClientsCarousel.d.ts +3 -0
  267. package/dist/esm/components/SectionClientsCarousel/SectionClientsCarousel.js +21 -0
  268. package/dist/esm/components/SectionClientsCarousel/index.d.ts +1 -0
  269. package/dist/esm/components/SectionClientsCarousel/index.js +1 -0
  270. package/dist/esm/components/SectionClientsCarousel/utils.d.ts +3 -0
  271. package/dist/esm/components/SectionClientsCarousel/utils.js +21 -0
  272. package/dist/esm/components/SectionContent/SectionContent.d.ts +21 -0
  273. package/dist/esm/components/SectionContent/SectionContent.js +25 -0
  274. package/dist/esm/components/SectionContent/index.d.ts +1 -0
  275. package/dist/esm/components/SectionContent/index.js +1 -0
  276. package/dist/esm/components/SectionContent/styles.module.css +59 -0
  277. package/dist/esm/components/SectionContentList/SectionContentList.d.ts +26 -0
  278. package/dist/esm/components/SectionContentList/SectionContentList.js +21 -0
  279. package/dist/esm/components/SectionContentList/index.d.ts +1 -0
  280. package/dist/esm/components/SectionContentList/index.js +1 -0
  281. package/dist/esm/components/SectionContentList/styles.module.css +49 -0
  282. package/dist/esm/components/SectionContentTabs/SectionContentTabs.d.ts +36 -0
  283. package/dist/esm/components/SectionContentTabs/SectionContentTabs.js +37 -0
  284. package/dist/esm/components/SectionContentTabs/index.d.ts +1 -0
  285. package/dist/esm/components/SectionContentTabs/index.js +1 -0
  286. package/dist/esm/components/SectionContentTabs/styles.module.css +76 -0
  287. package/dist/esm/components/SectionExpertsCarousel/SectionExpertsCarousel.d.ts +4 -0
  288. package/dist/esm/components/SectionExpertsCarousel/SectionExpertsCarousel.js +18 -0
  289. package/dist/esm/components/SectionExpertsCarousel/constants.d.ts +2 -0
  290. package/dist/esm/components/SectionExpertsCarousel/constants.js +2 -0
  291. package/dist/esm/components/SectionExpertsCarousel/index.d.ts +1 -0
  292. package/dist/esm/components/SectionExpertsCarousel/index.js +1 -0
  293. package/dist/esm/components/SectionExpertsCarousel/types.d.ts +6 -0
  294. package/dist/esm/components/SectionExpertsCarousel/types.js +1 -0
  295. package/dist/esm/components/SectionLeading/SectionLeading.d.ts +15 -0
  296. package/dist/esm/components/SectionLeading/SectionLeading.js +51 -0
  297. package/dist/esm/components/SectionLeading/index.d.ts +1 -0
  298. package/dist/esm/components/SectionLeading/index.js +1 -0
  299. package/dist/esm/components/SectionLeading/styles.module.css +23 -0
  300. package/dist/esm/components/SectionLeading/utils.d.ts +1 -0
  301. package/dist/esm/components/SectionLeading/utils.js +9 -0
  302. package/dist/esm/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.d.ts +4 -0
  303. package/dist/esm/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.js +21 -0
  304. package/dist/esm/components/SectionMarketplaceCarousel/index.d.ts +1 -0
  305. package/dist/esm/components/SectionMarketplaceCarousel/index.js +1 -0
  306. package/dist/esm/components/SectionMarketplaceCarousel/utils.d.ts +3 -0
  307. package/dist/esm/components/SectionMarketplaceCarousel/utils.js +25 -0
  308. package/dist/esm/components/SectionMedia/SectionMedia.d.ts +5 -0
  309. package/dist/esm/components/SectionMedia/SectionMedia.js +20 -0
  310. package/dist/esm/components/SectionMedia/index.d.ts +1 -0
  311. package/dist/esm/components/SectionMedia/index.js +1 -0
  312. package/dist/esm/components/SectionMedia/styles.module.css +10 -0
  313. package/dist/esm/components/SectionPersonalManager/SectionPersonalManager.d.ts +24 -0
  314. package/dist/esm/components/SectionPersonalManager/SectionPersonalManager.js +47 -0
  315. package/dist/esm/components/SectionPersonalManager/index.d.ts +1 -0
  316. package/dist/esm/components/SectionPersonalManager/index.js +1 -0
  317. package/dist/esm/components/SectionPersonalManager/styles.module.css +122 -0
  318. package/dist/esm/components/SectionPersonalManager/utils.d.ts +3 -0
  319. package/dist/esm/components/SectionPersonalManager/utils.js +11 -0
  320. package/dist/esm/components/SectionPromoList/SectionPromoList.d.ts +19 -0
  321. package/dist/esm/components/SectionPromoList/SectionPromoList.js +21 -0
  322. package/dist/esm/components/SectionPromoList/index.d.ts +1 -0
  323. package/dist/esm/components/SectionPromoList/index.js +1 -0
  324. package/dist/esm/components/SectionPromoList/styles.module.css +43 -0
  325. package/dist/esm/components/SectionSocial/SectionSocial.d.ts +19 -0
  326. package/dist/esm/components/SectionSocial/SectionSocial.js +27 -0
  327. package/dist/esm/components/SectionSocial/constants.d.ts +14 -0
  328. package/dist/esm/components/SectionSocial/constants.js +5 -0
  329. package/dist/esm/components/SectionSocial/index.d.ts +1 -0
  330. package/dist/esm/components/SectionSocial/index.js +1 -0
  331. package/dist/esm/components/SectionSocial/styles.module.css +4 -0
  332. package/dist/esm/components/SectionTable/SectionTable.d.ts +15 -0
  333. package/dist/esm/components/SectionTable/SectionTable.js +22 -0
  334. package/dist/esm/components/SectionTable/index.d.ts +1 -0
  335. package/dist/esm/components/SectionTable/index.js +1 -0
  336. package/dist/esm/components/SectionTable/styles.module.css +25 -0
  337. package/dist/esm/components/index.d.ts +19 -0
  338. package/dist/esm/components/index.js +19 -0
  339. package/dist/esm/constants.d.ts +4 -0
  340. package/dist/esm/constants.js +4 -0
  341. package/dist/esm/helperComponents/BenefitItem/BenefitItem.d.ts +8 -0
  342. package/dist/esm/helperComponents/BenefitItem/BenefitItem.js +9 -0
  343. package/dist/esm/helperComponents/BenefitItem/index.d.ts +1 -0
  344. package/dist/esm/helperComponents/BenefitItem/index.js +1 -0
  345. package/dist/esm/helperComponents/BenefitItem/styles.module.css +27 -0
  346. package/dist/esm/helperComponents/BenefitItem/utils.d.ts +4 -0
  347. package/dist/esm/helperComponents/BenefitItem/utils.js +22 -0
  348. package/dist/esm/helperComponents/CardClient/CardClient.d.ts +5 -0
  349. package/dist/esm/helperComponents/CardClient/CardClient.js +5 -0
  350. package/dist/esm/helperComponents/CardClient/index.d.ts +1 -0
  351. package/dist/esm/helperComponents/CardClient/index.js +1 -0
  352. package/dist/esm/helperComponents/CardClient/styles.module.css +24 -0
  353. package/dist/esm/helperComponents/CardLeading/CardLeading.d.ts +4 -0
  354. package/dist/esm/helperComponents/CardLeading/CardLeading.js +20 -0
  355. package/dist/esm/helperComponents/CardLeading/index.d.ts +2 -0
  356. package/dist/esm/helperComponents/CardLeading/index.js +2 -0
  357. package/dist/esm/helperComponents/CardLeading/styles.module.css +36 -0
  358. package/dist/esm/helperComponents/CardLeading/types.d.ts +11 -0
  359. package/dist/esm/helperComponents/CardLeading/types.js +1 -0
  360. package/dist/esm/helperComponents/CardLeading/utils.d.ts +4 -0
  361. package/dist/esm/helperComponents/CardLeading/utils.js +22 -0
  362. package/dist/esm/helperComponents/CardSocial/CardSocial.d.ts +25 -0
  363. package/dist/esm/helperComponents/CardSocial/CardSocial.js +28 -0
  364. package/dist/esm/helperComponents/CardSocial/index.d.ts +1 -0
  365. package/dist/esm/helperComponents/CardSocial/index.js +1 -0
  366. package/dist/esm/helperComponents/CardSocial/styles.module.css +42 -0
  367. package/dist/esm/helperComponents/CardSocial/utils.d.ts +3 -0
  368. package/dist/esm/helperComponents/CardSocial/utils.js +9 -0
  369. package/dist/esm/helperComponents/Expert/Expert.d.ts +5 -0
  370. package/dist/esm/helperComponents/Expert/Expert.js +7 -0
  371. package/dist/esm/helperComponents/Expert/index.d.ts +1 -0
  372. package/dist/esm/helperComponents/Expert/index.js +1 -0
  373. package/dist/esm/helperComponents/Expert/styles.module.css +38 -0
  374. package/dist/esm/helperComponents/PromoList/PromoList.d.ts +6 -0
  375. package/dist/esm/helperComponents/PromoList/PromoList.js +7 -0
  376. package/dist/esm/helperComponents/PromoList/index.d.ts +1 -0
  377. package/dist/esm/helperComponents/PromoList/index.js +1 -0
  378. package/dist/esm/helperComponents/PromoList/styles.module.css +53 -0
  379. package/dist/esm/helperComponents/SectionButton/SectionButton.d.ts +2 -0
  380. package/dist/esm/helperComponents/SectionButton/SectionButton.js +25 -0
  381. package/dist/esm/helperComponents/SectionButton/index.d.ts +1 -0
  382. package/dist/esm/helperComponents/SectionButton/index.js +1 -0
  383. package/dist/esm/helperComponents/SectionButton/types.d.ts +8 -0
  384. package/dist/esm/helperComponents/SectionButton/types.js +1 -0
  385. package/dist/esm/helperComponents/SectionCarousel/SectionCarousel.d.ts +2 -0
  386. package/dist/esm/helperComponents/SectionCarousel/SectionCarousel.js +55 -0
  387. package/dist/esm/helperComponents/SectionCarousel/index.d.ts +2 -0
  388. package/dist/esm/helperComponents/SectionCarousel/index.js +1 -0
  389. package/dist/esm/helperComponents/SectionCarousel/styles.module.css +5 -0
  390. package/dist/esm/helperComponents/SectionCarousel/types.d.ts +32 -0
  391. package/dist/esm/helperComponents/SectionCarousel/types.js +1 -0
  392. package/dist/esm/helperComponents/SectionCarousel/utils.d.ts +6 -0
  393. package/dist/esm/helperComponents/SectionCarousel/utils.js +4 -0
  394. package/dist/esm/helperComponents/SectionCatalogFooter/SectionCatalogFooter.d.ts +12 -0
  395. package/dist/esm/helperComponents/SectionCatalogFooter/SectionCatalogFooter.js +10 -0
  396. package/dist/esm/helperComponents/SectionCatalogFooter/index.d.ts +1 -0
  397. package/dist/esm/helperComponents/SectionCatalogFooter/index.js +1 -0
  398. package/dist/esm/helperComponents/SectionCatalogFooter/styles.module.css +8 -0
  399. package/dist/esm/helperComponents/SectionTitle/SectionTitle.d.ts +22 -0
  400. package/dist/esm/helperComponents/SectionTitle/SectionTitle.js +11 -0
  401. package/dist/esm/helperComponents/SectionTitle/constants.d.ts +5 -0
  402. package/dist/esm/helperComponents/SectionTitle/constants.js +5 -0
  403. package/dist/esm/helperComponents/SectionTitle/index.d.ts +1 -0
  404. package/dist/esm/helperComponents/SectionTitle/index.js +1 -0
  405. package/dist/esm/helperComponents/SectionTitle/styles.module.css +31 -0
  406. package/dist/esm/helperComponents/SectionTitle/types.d.ts +5 -0
  407. package/dist/esm/helperComponents/SectionTitle/types.js +1 -0
  408. package/dist/esm/helperComponents/SectionTitle/utils.d.ts +8 -0
  409. package/dist/esm/helperComponents/SectionTitle/utils.js +63 -0
  410. package/dist/esm/helperComponents/index.d.ts +10 -0
  411. package/dist/esm/helperComponents/index.js +10 -0
  412. package/dist/esm/index.d.ts +2 -0
  413. package/dist/esm/index.js +2 -0
  414. package/dist/esm/types.d.ts +19 -0
  415. package/dist/esm/types.js +1 -0
  416. package/package.json +13 -12
@@ -0,0 +1,31 @@
1
+ .sectionTitle,
2
+ .titlesWrapper{
3
+ display:flex;
4
+ gap:var(--dimension-1m, 8px);
5
+ text-align:left;
6
+ }
7
+ .sectionTitle[data-align=center],
8
+ .titlesWrapper[data-align=center]{
9
+ text-align:center;
10
+ }
11
+
12
+ .sectionTitle{
13
+ flex-direction:column;
14
+ }
15
+
16
+ .titlesWrapper{
17
+ flex-direction:column-reverse;
18
+ }
19
+
20
+ .title{
21
+ color:var(--sys-neutral-text-main, #41424e);
22
+ white-space:pre-line;
23
+ }
24
+
25
+ .subtitle{
26
+ color:var(--sys-neutral-text-light, #8b8e9b);
27
+ }
28
+
29
+ .description{
30
+ color:var(--sys-neutral-text-support, #6d707f);
31
+ }
@@ -0,0 +1,5 @@
1
+ import { Tag } from '@snack-uikit/typography';
2
+ import { ValueOf } from '@snack-uikit/utils';
3
+ import { SIZE } from './constants';
4
+ export type Size = ValueOf<typeof SIZE>;
5
+ export type SectionTag = Extract<Tag, 'h2' | 'h3' | 'h4'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { WithLayoutType } from '@sbercloud/uikit-product-utils';
2
+ import { TypographyProps } from '@snack-uikit/typography';
3
+ import { Size } from './types';
4
+ type Props = WithLayoutType<{
5
+ titleSectionSize: Size;
6
+ }>;
7
+ export declare const getTitleTypographyProps: ({ layoutType, titleSectionSize, }: Props) => Pick<TypographyProps, "size" | "purpose">;
8
+ export {};
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTitleTypographyProps = void 0;
4
+ const getTitleTypographyProps = ({ layoutType, titleSectionSize, }) => {
5
+ switch (layoutType) {
6
+ case 'tablet':
7
+ switch (titleSectionSize) {
8
+ case 'l':
9
+ return {
10
+ purpose: 'headline',
11
+ size: 'l',
12
+ };
13
+ case 's':
14
+ return {
15
+ purpose: 'title',
16
+ size: 'l',
17
+ };
18
+ case 'm':
19
+ default:
20
+ return {
21
+ purpose: 'headline',
22
+ size: 'm',
23
+ };
24
+ }
25
+ case 'mobile':
26
+ switch (titleSectionSize) {
27
+ case 'l':
28
+ return {
29
+ purpose: 'headline',
30
+ size: 'm',
31
+ };
32
+ case 's':
33
+ return {
34
+ purpose: 'title',
35
+ size: 'm',
36
+ };
37
+ case 'm':
38
+ default:
39
+ return {
40
+ purpose: 'headline',
41
+ size: 's',
42
+ };
43
+ }
44
+ case 'desktop':
45
+ case 'desktopSmall':
46
+ default:
47
+ switch (titleSectionSize) {
48
+ case 'l':
49
+ return {
50
+ purpose: 'display',
51
+ size: 'm',
52
+ };
53
+ case 's':
54
+ return {
55
+ purpose: 'headline',
56
+ size: 's',
57
+ };
58
+ case 'm':
59
+ default:
60
+ return {
61
+ purpose: 'headline',
62
+ size: 'l',
63
+ };
64
+ }
65
+ }
66
+ };
67
+ exports.getTitleTypographyProps = getTitleTypographyProps;
@@ -0,0 +1,10 @@
1
+ export * from './CardLeading';
2
+ export * from './CardSocial';
3
+ export * from './Expert';
4
+ export * from './PromoList';
5
+ export * from './SectionCatalogFooter';
6
+ export * from './SectionTitle';
7
+ export * from './SectionCarousel';
8
+ export * from './CardClient';
9
+ export * from './BenefitItem';
10
+ export * from './SectionButton';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CardLeading"), exports);
18
+ __exportStar(require("./CardSocial"), exports);
19
+ __exportStar(require("./Expert"), exports);
20
+ __exportStar(require("./PromoList"), exports);
21
+ __exportStar(require("./SectionCatalogFooter"), exports);
22
+ __exportStar(require("./SectionTitle"), exports);
23
+ __exportStar(require("./SectionCarousel"), exports);
24
+ __exportStar(require("./CardClient"), exports);
25
+ __exportStar(require("./BenefitItem"), exports);
26
+ __exportStar(require("./SectionButton"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './helperComponents/SectionCarousel';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./components"), exports);
18
+ __exportStar(require("./helperComponents/SectionCarousel"), exports);
@@ -0,0 +1,19 @@
1
+ import { SiteVideoProps } from '@sbercloud/uikit-product-site-media';
2
+ import { ValueOf } from '@snack-uikit/utils';
3
+ import { SECTION_COLORS } from './constants';
4
+ export type SectionColor = ValueOf<typeof SECTION_COLORS>;
5
+ type MediaVideoProps = Pick<SiteVideoProps, 'video' | 'onPlay' | 'onError'> & {
6
+ image?: never;
7
+ };
8
+ type MediaImageProps = {
9
+ video?: never;
10
+ onPlay?: never;
11
+ onError?: never;
12
+ /** Ссылка на изображение */
13
+ image: {
14
+ src: string;
15
+ alt?: string;
16
+ };
17
+ };
18
+ export type MediaContentProps = MediaImageProps | MediaVideoProps;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
2
+ import { SectionColor } from '../../types';
3
+ import { AccordionItem } from './types';
4
+ type AccordionPropsCopy = {
5
+ selectionMode: 'single';
6
+ expandedDefault?: string;
7
+ onExpandedChange?(value?: string): void;
8
+ } | {
9
+ selectionMode: 'multiple';
10
+ expandedDefault?: string[];
11
+ onExpandedChange?(value?: string[]): void;
12
+ };
13
+ export type SectionAccordionProps = WithSupportProps<AccordionPropsCopy & WithLayoutType<{
14
+ /** id секции */
15
+ id?: string;
16
+ /** Название секции */
17
+ title: string;
18
+ /** Массив айтемов */
19
+ items: AccordionItem[];
20
+ /** Цвет фона */
21
+ backgroundColor?: SectionColor;
22
+ /** Внешний бордер для блоков */
23
+ outline?: boolean;
24
+ /** CSS-класс */
25
+ className?: string;
26
+ }>>;
27
+ export declare function SectionAccordion({ id, title, items, selectionMode, layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className, ...rest }: SectionAccordionProps): import("react/jsx-runtime").JSX.Element;
28
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { RichText } from '@sbercloud/uikit-product-site-rich-text';
14
+ import { extractSupportProps } from '@sbercloud/uikit-product-utils';
15
+ import { AccordionPrimary } from '@snack-uikit/accordion';
16
+ import { Typography } from '@snack-uikit/typography';
17
+ import { SectionBasic } from '../SectionBasic';
18
+ import styles from './styles.module.css';
19
+ import { getBlockDescriptionSize, getBlockTitleProps } from './utils';
20
+ export function SectionAccordion(_a) {
21
+ var { id, title, items, selectionMode = 'multiple', layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className } = _a, rest = __rest(_a, ["id", "title", "items", "selectionMode", "layoutType", "backgroundColor", "outline", "onExpandedChange", "expandedDefault", "className"]);
22
+ return (_jsx(SectionBasic, Object.assign({ id: id, title: title, layoutType: layoutType, backgroundColor: backgroundColor }, extractSupportProps(rest), { children: _jsx(AccordionPrimary, { selectionMode: selectionMode, expandedDefault: expandedDefault, onExpandedChange: onExpandedChange, className: styles.accordion, children: items.map(({ title, description, onClick }, index) => (_jsx(AccordionPrimary.CollapseBlock, { id: index.toString(), header: _jsx(Typography, Object.assign({ family: 'sans' }, getBlockTitleProps(layoutType), { className: styles.title, children: _jsx(RichText, { richText: title }) })), className: className, removeContentFromDOM: false, outline: outline, onClick: onClick, children: _jsx(Typography, { family: 'sans', purpose: 'body', tag: 'div', size: getBlockDescriptionSize(layoutType), className: styles.description, children: _jsx(RichText, { richText: description }) }) }, index))) }) })));
23
+ }
@@ -0,0 +1 @@
1
+ export * from './SectionAccordion';
@@ -0,0 +1 @@
1
+ export * from './SectionAccordion';
@@ -0,0 +1,11 @@
1
+ .accordion{
2
+ gap:1px;
3
+ }
4
+
5
+ .description{
6
+ color:var(--sys-neutral-text-support, #6d707f);
7
+ }
8
+
9
+ .title{
10
+ color:var(--sys-neutral-text-main, #41424e);
11
+ }
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { CollapseBlockPrimaryProps } from '@snack-uikit/accordion';
3
+ /** Элемент аккордиона */
4
+ export type AccordionItem = Pick<CollapseBlockPrimaryProps, 'onClick'> & {
5
+ /** Заголовок блока */
6
+ title: string;
7
+ /** Описание блока (rich text) */
8
+ description: string | ReactNode;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { LayoutType } from '@sbercloud/uikit-product-utils';
2
+ import { TypographyProps } from '@snack-uikit/typography';
3
+ export declare const getBlockTitleProps: (layoutType: LayoutType) => Pick<TypographyProps, "purpose" | "size">;
4
+ export declare const getBlockDescriptionSize: (layoutType: LayoutType) => TypographyProps["size"];
@@ -0,0 +1,24 @@
1
+ export const getBlockTitleProps = (layoutType) => {
2
+ switch (layoutType) {
3
+ case 'tablet':
4
+ case 'mobile':
5
+ return {
6
+ purpose: 'title',
7
+ size: 'm',
8
+ };
9
+ default:
10
+ return {
11
+ purpose: 'headline',
12
+ size: 's',
13
+ };
14
+ }
15
+ };
16
+ export const getBlockDescriptionSize = (layoutType) => {
17
+ switch (layoutType) {
18
+ case 'tablet':
19
+ case 'mobile':
20
+ return 'm';
21
+ default:
22
+ return 'l';
23
+ }
24
+ };
@@ -0,0 +1,38 @@
1
+ import { MouseEvent, MouseEventHandler, ReactNode } from 'react';
2
+ import { FieldSelectProps } from '@sbercloud/uikit-product-mobile-fields';
3
+ import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
4
+ import { PaginationProps } from '@snack-uikit/pagination';
5
+ import { SectionTitleProps } from '../../helperComponents';
6
+ import { SectionColor } from '../../types';
7
+ type TabBarItem = WithSupportProps<{
8
+ value: string;
9
+ label: string;
10
+ disabled?: boolean;
11
+ className?: string;
12
+ counter?: number;
13
+ onClick?(event: MouseEvent<HTMLButtonElement>): void;
14
+ }>;
15
+ export type SectionBasicProps = WithLayoutType<WithSupportProps<Pick<SectionTitleProps, 'title' | 'subtitle' | 'description' | 'titleSectionSize' | 'titleTag' | 'subtitleTag' | 'titleAlign'> & {
16
+ /** id секции */
17
+ id?: string;
18
+ children: ReactNode;
19
+ /** Массив табов */
20
+ tabBarItems?: TabBarItem[];
21
+ /** Массив фильтров */
22
+ filterItems?: FieldSelectProps[];
23
+ /** Настройки пагинации */
24
+ pagination?: PaginationProps;
25
+ /** Цвет фона */
26
+ backgroundColor?: SectionColor;
27
+ /** CSS-класс */
28
+ className?: string;
29
+ /** Кнопка внизу секции */
30
+ moreButton?: {
31
+ label?: string;
32
+ href?: string;
33
+ onClick: MouseEventHandler<HTMLElement>;
34
+ 'data-test-id'?: string;
35
+ };
36
+ }>>;
37
+ export declare function SectionBasic({ id, children, title, subtitle, description, titleSectionSize, titleTag, subtitleTag, tabBarItems, filterItems, moreButton, className, pagination, backgroundColor, layoutType, titleAlign, ...rest }: SectionBasicProps): import("react/jsx-runtime").JSX.Element;
38
+ export {};
@@ -0,0 +1,39 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import cn from 'classnames';
14
+ import { useState } from 'react';
15
+ import { useLocale } from '@sbercloud/uikit-product-locale';
16
+ import { AdaptiveFieldSelect } from '@sbercloud/uikit-product-mobile-fields';
17
+ import { Layout } from '@sbercloud/uikit-product-site-layout';
18
+ import { extractSupportProps } from '@sbercloud/uikit-product-utils';
19
+ import { ButtonOutline } from '@snack-uikit/button';
20
+ import { Pagination } from '@snack-uikit/pagination';
21
+ import { Tabs } from '@snack-uikit/tabs';
22
+ import { SECTION_COLORS } from '../../constants';
23
+ import { SectionTitle } from '../../helperComponents';
24
+ import styles from './styles.module.css';
25
+ const getInitialTab = (tabBarItems) => {
26
+ if (!tabBarItems || tabBarItems.length < 1) {
27
+ return undefined;
28
+ }
29
+ const [firstTab] = tabBarItems;
30
+ return firstTab.value;
31
+ };
32
+ export function SectionBasic(_a) {
33
+ var _b, _c;
34
+ var { id, children, title, subtitle, description, titleSectionSize = 'm', titleTag, subtitleTag, tabBarItems, filterItems, moreButton, className, pagination, backgroundColor = SECTION_COLORS.NeutralBackground1Level, layoutType, titleAlign } = _a, rest = __rest(_a, ["id", "children", "title", "subtitle", "description", "titleSectionSize", "titleTag", "subtitleTag", "tabBarItems", "filterItems", "moreButton", "className", "pagination", "backgroundColor", "layoutType", "titleAlign"]);
35
+ const [currentTab, setCurrentTab] = useState(getInitialTab(tabBarItems));
36
+ const { t } = useLocale('SiteSection');
37
+ const showFooter = Boolean(pagination || moreButton);
38
+ return (_jsx(Layout.SectionWrapper, Object.assign({ id: id, layoutType: layoutType, className: cn(className, styles.wrapper), "data-section-background": backgroundColor }, extractSupportProps(rest), { children: _jsxs("div", { className: styles.sectionBasic, "data-layout-type": layoutType, children: [_jsx(SectionTitle, { layoutType: layoutType, title: title, description: description, titleSectionSize: titleSectionSize, titleTag: titleTag, titleAlign: titleAlign, subtitle: subtitle, subtitleTag: subtitleTag }), (tabBarItems === null || tabBarItems === void 0 ? void 0 : tabBarItems.length) && (_jsx("div", { className: styles.sectionTabs, children: _jsx(Tabs, { value: currentTab, onChange: setCurrentTab, children: _jsx(Tabs.TabBar, { children: tabBarItems.map(tabProps => (_jsx(Tabs.Tab, Object.assign({}, tabProps), tabProps.value))) }) }) })), (filterItems === null || filterItems === void 0 ? void 0 : filterItems.length) && (_jsx("div", { className: styles.sectionFilters, "data-layout-type": layoutType, children: filterItems.map(filterProps => (_jsx(AdaptiveFieldSelect, Object.assign({}, filterProps, { className: cn(filterProps.className, styles.filter), layoutType: layoutType, size: 'l' }), filterProps.id))) })), children, showFooter && (_jsxs("div", { className: styles.footer, "data-layout-type": layoutType, children: [pagination && _jsx(Pagination, Object.assign({}, pagination)), moreButton && (_jsx(ButtonOutline, { className: styles.showMoreButton, label: (_b = moreButton.label) !== null && _b !== void 0 ? _b : t('Basic.showMore'), onClick: moreButton.onClick, href: moreButton.href, "data-test-id": (_c = moreButton['data-test-id']) !== null && _c !== void 0 ? _c : 'section__more-btn', appearance: 'neutral', size: 'l', type: 'button', "data-layout-type": layoutType }))] }))] }) })));
39
+ }
@@ -0,0 +1 @@
1
+ export * from './SectionBasic';
@@ -0,0 +1 @@
1
+ export * from './SectionBasic';
@@ -0,0 +1,73 @@
1
+ .sectionBasic{
2
+ display:flex;
3
+ flex-direction:column;
4
+ gap:var(--dimension-5m, 40px);
5
+ padding:var(--dimension-7m, 56px) 0;
6
+ }
7
+ .sectionBasic[data-layout-type=tablet]{
8
+ gap:var(--dimension-4m, 32px);
9
+ padding:var(--dimension-5m, 40px) 0;
10
+ }
11
+ .sectionBasic[data-layout-type=mobile]{
12
+ gap:var(--dimension-3m, 24px);
13
+ padding:var(--dimension-4m, 32px) 0;
14
+ }
15
+
16
+ .wrapper[data-section-background=neutral-background1-level]{
17
+ background-color:var(--sys-neutral-background1-level, #fdfdfd);
18
+ }
19
+ .wrapper[data-section-background=neutral-background]{
20
+ background-color:var(--sys-neutral-background, #eeeff3);
21
+ }
22
+
23
+ .sectionTitle{
24
+ display:flex;
25
+ flex-direction:column;
26
+ gap:var(--dimension-1m, 8px);
27
+ }
28
+
29
+ .title{
30
+ color:var(--sys-neutral-text-main, #41424e);
31
+ }
32
+
33
+ .description{
34
+ color:var(--sys-neutral-text-support, #6d707f);
35
+ }
36
+
37
+ .sectionTabs{
38
+ display:flex;
39
+ flex-direction:column;
40
+ gap:var(--dimension-4m, 32px);
41
+ color:var(--sys-neutral-text-main, #41424e);
42
+ }
43
+
44
+ .sectionFilters{
45
+ display:grid;
46
+ grid-template-columns:repeat(3, 1fr);
47
+ gap:var(--dimension-4m, 32px);
48
+ }
49
+ .sectionFilters[data-layout-type=tablet]{
50
+ grid-template-columns:repeat(2, 1fr);
51
+ gap:var(--dimension-2m, 16px);
52
+ }
53
+ .sectionFilters[data-layout-type=mobile]{
54
+ grid-template-columns:repeat(1, 1fr);
55
+ gap:var(--dimension-3m, 24px);
56
+ }
57
+
58
+ .footer{
59
+ display:flex;
60
+ flex-direction:column;
61
+ align-items:center;
62
+ gap:var(--dimension-5m, 40px);
63
+ }
64
+ .footer[data-layout-type=tablet]{
65
+ gap:var(--dimension-4m, 32px);
66
+ }
67
+ .footer[data-layout-type=mobile]{
68
+ gap:var(--dimension-3m, 24px);
69
+ }
70
+
71
+ .showMoreButton[data-layout-type=mobile]{
72
+ width:100%;
73
+ }
@@ -0,0 +1,33 @@
1
+ import { GridProps } from '@sbercloud/uikit-product-site-grid';
2
+ import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
3
+ import { SectionTitleProps } from '../../helperComponents';
4
+ import { SectionButtonProps } from '../../helperComponents/SectionButton/types';
5
+ import { SectionColor } from '../../types';
6
+ import { ContentBasic, ContentInfo, ContentNumeric, ContentProduct } from './types';
7
+ export type SectionBenefitsProps = WithSupportProps<WithLayoutType<{
8
+ /** id секции */
9
+ id?: string;
10
+ /** Название секции */
11
+ title?: string;
12
+ /** Название подзаголовка секции */
13
+ subtitle?: string;
14
+ /** Цвет фона секции */
15
+ backgroundColor?: SectionColor;
16
+ /** Тег заголовка */
17
+ titleTag?: SectionTitleProps['titleTag'];
18
+ /** Тег заголовка */
19
+ subtitleTag?: SectionTitleProps['subtitleTag'];
20
+ /** Описание секции */
21
+ description?: string;
22
+ /** Конфигурация настройки колонок для разных layoutType */
23
+ columnsConfig: GridProps['columnsConfig'];
24
+ /** Текст нижней сноски */
25
+ note?: string;
26
+ buttons?: SectionButtonProps[];
27
+ /**
28
+ * Выравнивание кнопок по горизонтали
29
+ * @default 'left'
30
+ */
31
+ buttonsAlign?: 'left' | 'center';
32
+ }>> & (ContentBasic | ContentInfo | ContentNumeric | ContentProduct);
33
+ export declare function SectionBenefits({ id, title, titleTag, subtitle, subtitleTag, description, type, content, tabBarItems, columnsConfig, layoutType, buttons, note, backgroundColor, buttonsAlign, ...rest }: SectionBenefitsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,50 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useMemo, useState } from 'react';
14
+ import { CardBasic, CardInfo, CardProduct } from '@sbercloud/uikit-product-site-cards';
15
+ import { Grid } from '@sbercloud/uikit-product-site-grid';
16
+ import { extractSupportProps } from '@sbercloud/uikit-product-utils';
17
+ import { Typography } from '@snack-uikit/typography';
18
+ import { SectionButton } from '../../helperComponents';
19
+ import { SectionBasic } from '../SectionBasic';
20
+ import { CardNumeric } from './components';
21
+ import styles from './styles.module.css';
22
+ export function SectionBenefits(_a) {
23
+ var { id, title, titleTag, subtitle, subtitleTag, description, type, content, tabBarItems, columnsConfig, layoutType, buttons, note, backgroundColor, buttonsAlign = 'left' } = _a, rest = __rest(_a, ["id", "title", "titleTag", "subtitle", "subtitleTag", "description", "type", "content", "tabBarItems", "columnsConfig", "layoutType", "buttons", "note", "backgroundColor", "buttonsAlign"]);
24
+ const [activeTab, setActiveTab] = useState(tabBarItems && tabBarItems[0].value);
25
+ const tabs = useMemo(() => tabBarItems === null || tabBarItems === void 0 ? void 0 : tabBarItems.map(tab => (Object.assign(Object.assign({}, tab), { onClick: (e) => {
26
+ var _a;
27
+ setActiveTab(tab.value);
28
+ (_a = tab.onClick) === null || _a === void 0 ? void 0 : _a.call(tab, e);
29
+ } }))), [tabBarItems]);
30
+ const outline = rest.outline;
31
+ const gap = type === 'basic' ? 'l' : 's';
32
+ const backgroundColorSection = type === 'basic' || outline ? 'neutral-background1-level' : 'neutral-background';
33
+ return (_jsxs(SectionBasic, Object.assign({ id: id, title: title, titleTag: titleTag, subtitle: subtitle, subtitleTag: subtitleTag, description: description, layoutType: layoutType, backgroundColor: backgroundColor || backgroundColorSection, tabBarItems: tabs }, extractSupportProps(rest), { children: [!tabBarItems && (_jsxs(Grid, { layoutType: layoutType, columnsConfig: columnsConfig, gap: gap, children: [type === 'info' &&
34
+ content.map((item, index) => _jsx(CardInfo, Object.assign({}, item, { outline: outline, layoutType: layoutType }), index)), type === 'numeric' &&
35
+ content.map((item, index) => (_jsx(CardNumeric, Object.assign({}, item, { number: index + 1, layoutType: layoutType }), index))), type === 'product' &&
36
+ content.map((item, index) => _jsx(CardProduct, Object.assign({}, item, { layoutType: layoutType }), index)), type === 'basic' &&
37
+ content.map((item, index) => _jsx(CardBasic, Object.assign({}, item, { layoutType: layoutType }), index))] })), tabBarItems && (_jsxs(Grid, { layoutType: layoutType, columnsConfig: columnsConfig, gap: gap, children: [type === 'info' &&
38
+ content
39
+ .filter(({ tabValue }) => tabValue === activeTab)
40
+ .map(({ cards }) => cards.map((card, index) => (_jsx(CardInfo, Object.assign({ layoutType: layoutType }, card, { outline: outline }), index)))), type === 'numeric' &&
41
+ content
42
+ .filter(({ tabValue }) => tabValue === activeTab)
43
+ .map(({ cards }) => cards.map((card, index) => (_jsx(CardNumeric, Object.assign({ layoutType: layoutType }, card, { number: index + 1 }), index)))), type === 'product' &&
44
+ content
45
+ .filter(({ tabValue }) => tabValue === activeTab)
46
+ .map(({ cards }) => cards.map((card, index) => _jsx(CardProduct, Object.assign({ layoutType: layoutType }, card), index))), type === 'basic' &&
47
+ content
48
+ .filter(({ tabValue }) => tabValue === activeTab)
49
+ .map(({ cards }) => cards.map((card, index) => _jsx(CardBasic, Object.assign({ layoutType: layoutType }, card), index)))] })), note && (_jsx(Typography.SansBodyM, { className: styles.note, children: _jsx("span", { dangerouslySetInnerHTML: { __html: note } }) })), buttons && (_jsx("div", { className: styles.buttons, "data-buttons-align": buttonsAlign, children: buttons.map(button => SectionButton(button)) }))] })));
50
+ }
@@ -0,0 +1,6 @@
1
+ import { CardInfoProps } from '@sbercloud/uikit-product-site-cards';
2
+ type CardNumericProps = Omit<CardInfoProps, 'icon'> & {
3
+ number: number;
4
+ };
5
+ export declare function CardNumeric({ number, ...props }: CardNumericProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { CardInfo } from '@sbercloud/uikit-product-site-cards';
14
+ import { Typography } from '@snack-uikit/typography';
15
+ import styles from './styles.module.css';
16
+ export function CardNumeric(_a) {
17
+ var { number } = _a, props = __rest(_a, ["number"]);
18
+ return (_jsx(CardInfo, Object.assign({}, props, { icon: _jsx(Typography.SansHeadlineM, { className: styles.number, children: number }) })));
19
+ }
@@ -0,0 +1 @@
1
+ export * from './CardNumeric';
@@ -0,0 +1 @@
1
+ export * from './CardNumeric';
@@ -0,0 +1,4 @@
1
+ .number{
2
+ color:var(--sys-neutral-text-main, #41424e);
3
+ min-width:20px;
4
+ }
@@ -0,0 +1 @@
1
+ export * from './CardNumeric';
@@ -0,0 +1 @@
1
+ export * from './CardNumeric';
@@ -0,0 +1 @@
1
+ export * from './SectionBenefits';
@@ -0,0 +1 @@
1
+ export * from './SectionBenefits';
@@ -0,0 +1,12 @@
1
+ .buttons{
2
+ display:flex;
3
+ flex-wrap:wrap;
4
+ gap:8px;
5
+ }
6
+ .buttons[data-buttons-align=center]{
7
+ justify-content:center;
8
+ }
9
+
10
+ .note{
11
+ color:var(--sys-neutral-text-support, #6d707f);
12
+ }