@gravity-ui/page-constructor 6.8.2-alpha.1 → 7.0.0-alpha.3

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 (385) hide show
  1. package/README.md +108 -10
  2. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +11 -6
  3. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -5
  4. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
  5. package/build/cjs/blocks/Header/Header.css +15 -10
  6. package/build/cjs/blocks/Header/Header.js +6 -1
  7. package/build/cjs/blocks/Header/Header.js.map +1 -1
  8. package/build/cjs/blocks/HeaderSlider/HeaderSlider.css +0 -10
  9. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +2 -2
  10. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  11. package/build/cjs/blocks/HeaderSlider/schema.d.ts +9 -1
  12. package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.css +43 -21
  13. package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +3 -1
  14. package/build/cjs/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
  15. package/build/cjs/blocks/Share/Share.css +3 -2
  16. package/build/cjs/blocks/Share/Share.js +4 -1
  17. package/build/cjs/blocks/Share/Share.js.map +1 -1
  18. package/build/cjs/blocks/Slider/Arrow/Arrow.css +22 -21
  19. package/build/cjs/blocks/Slider/Arrow/Arrow.d.ts +4 -2
  20. package/build/cjs/blocks/Slider/Arrow/Arrow.js +1 -1
  21. package/build/cjs/blocks/Slider/Arrow/Arrow.js.map +1 -1
  22. package/build/cjs/blocks/Slider/Slider.css +549 -329
  23. package/build/cjs/blocks/Slider/Slider.d.ts +6 -5
  24. package/build/cjs/blocks/Slider/Slider.js +32 -275
  25. package/build/cjs/blocks/Slider/Slider.js.map +1 -1
  26. package/build/cjs/blocks/Slider/i18n/en.json +1 -1
  27. package/build/cjs/blocks/Slider/i18n/ru.json +1 -1
  28. package/build/cjs/blocks/Slider/models.d.ts +2 -2
  29. package/build/cjs/blocks/Slider/models.js +1 -1
  30. package/build/cjs/blocks/Slider/models.js.map +1 -1
  31. package/build/cjs/blocks/Slider/schema.d.ts +18 -1
  32. package/build/cjs/blocks/Slider/schema.js +9 -0
  33. package/build/cjs/blocks/Slider/schema.js.map +1 -1
  34. package/build/cjs/blocks/{SliderNew → Slider}/useSlider.d.ts +1 -0
  35. package/build/cjs/blocks/{SliderNew → Slider}/useSlider.js +4 -0
  36. package/build/cjs/blocks/Slider/useSlider.js.map +1 -0
  37. package/build/cjs/blocks/Slider/useSliderPagination.js.map +1 -0
  38. package/build/cjs/blocks/Slider/utils.d.ts +7 -28
  39. package/build/cjs/blocks/Slider/utils.js +28 -109
  40. package/build/cjs/blocks/Slider/utils.js.map +1 -1
  41. package/build/cjs/blocks/{SliderNew → SliderOld}/Arrow/Arrow.css +14 -11
  42. package/build/cjs/blocks/SliderOld/Arrow/Arrow.d.ts +9 -0
  43. package/build/cjs/blocks/SliderOld/Arrow/Arrow.js +11 -0
  44. package/build/cjs/blocks/SliderOld/Arrow/Arrow.js.map +1 -0
  45. package/build/cjs/blocks/SliderOld/SliderOld.css +703 -0
  46. package/build/cjs/blocks/SliderOld/SliderOld.d.ts +17 -0
  47. package/build/cjs/blocks/SliderOld/SliderOld.js +293 -0
  48. package/build/cjs/blocks/SliderOld/SliderOld.js.map +1 -0
  49. package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/en.json +1 -1
  50. package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.d.ts +1 -1
  51. package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.js +1 -1
  52. package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/index.js.map +1 -1
  53. package/build/cjs/blocks/{SliderNew → SliderOld}/i18n/ru.json +1 -1
  54. package/build/cjs/blocks/{SliderNew → SliderOld}/models.d.ts +2 -2
  55. package/build/cjs/blocks/{SliderNew → SliderOld}/models.js +1 -1
  56. package/build/cjs/blocks/{SliderNew → SliderOld}/models.js.map +1 -1
  57. package/build/cjs/blocks/{SliderNew → SliderOld}/schema.d.ts +5 -21
  58. package/build/cjs/blocks/{SliderNew → SliderOld}/schema.js +6 -14
  59. package/build/cjs/blocks/SliderOld/schema.js.map +1 -0
  60. package/build/cjs/blocks/SliderOld/utils.d.ts +37 -0
  61. package/build/cjs/blocks/SliderOld/utils.js +129 -0
  62. package/build/cjs/blocks/SliderOld/utils.js.map +1 -0
  63. package/build/cjs/blocks/Table/Table.css +4 -3
  64. package/build/cjs/blocks/Table/Table.js +3 -1
  65. package/build/cjs/blocks/Table/Table.js.map +1 -1
  66. package/build/cjs/blocks/index.d.ts +2 -0
  67. package/build/cjs/blocks/index.js +3 -1
  68. package/build/cjs/blocks/index.js.map +1 -1
  69. package/build/cjs/blocks/validators.d.ts +1 -0
  70. package/build/cjs/blocks/validators.js +1 -0
  71. package/build/cjs/blocks/validators.js.map +1 -1
  72. package/build/cjs/components/BackgroundImage/BackgroundImage.js +2 -2
  73. package/build/cjs/components/BackgroundImage/BackgroundImage.js.map +1 -1
  74. package/build/cjs/components/ContentList/ContentList.css +10 -6
  75. package/build/cjs/components/ContentList/ContentList.js +1 -1
  76. package/build/cjs/components/ContentList/ContentList.js.map +1 -1
  77. package/build/cjs/components/FullscreenImage/FullscreenImage.css +99 -18
  78. package/build/cjs/components/FullscreenImage/FullscreenImage.d.ts +5 -0
  79. package/build/cjs/components/FullscreenImage/FullscreenImage.js +14 -2
  80. package/build/cjs/components/FullscreenImage/FullscreenImage.js.map +1 -1
  81. package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +1 -3
  82. package/build/cjs/components/HTML/HTML.d.ts +15 -8
  83. package/build/cjs/components/HTML/HTML.js +19 -10
  84. package/build/cjs/components/HTML/HTML.js.map +1 -1
  85. package/build/cjs/components/Image/Image.d.ts +2 -4
  86. package/build/cjs/components/Image/Image.js +8 -22
  87. package/build/cjs/components/Image/Image.js.map +1 -1
  88. package/build/cjs/components/Media/Image/Image.d.ts +1 -0
  89. package/build/cjs/components/Media/Image/Image.js +7 -5
  90. package/build/cjs/components/Media/Image/Image.js.map +1 -1
  91. package/build/cjs/components/Media/Media.css +4 -0
  92. package/build/cjs/components/Media/Media.d.ts +1 -0
  93. package/build/cjs/components/Media/Media.js +3 -2
  94. package/build/cjs/components/Media/Media.js.map +1 -1
  95. package/build/cjs/components/MetaInfo/MetaInfo.css +1 -1
  96. package/build/cjs/components/MetaInfo/MetaInfo.js +1 -1
  97. package/build/cjs/components/MetaInfo/MetaInfo.js.map +1 -1
  98. package/build/cjs/components/Table/Table.css +2 -1
  99. package/build/cjs/components/Table/Table.js +4 -2
  100. package/build/cjs/components/Table/Table.js.map +1 -1
  101. package/build/cjs/components/Title/TitleItem.css +7 -4
  102. package/build/cjs/components/Title/TitleItem.js +3 -1
  103. package/build/cjs/components/Title/TitleItem.js.map +1 -1
  104. package/build/cjs/components/VideoBlock/VideoBlock.js +1 -1
  105. package/build/cjs/components/VideoBlock/VideoBlock.js.map +1 -1
  106. package/build/cjs/components/YFMWrapper/YFMWrapper.d.ts +4 -2
  107. package/build/cjs/components/YFMWrapper/YFMWrapper.js +3 -3
  108. package/build/cjs/components/YFMWrapper/YFMWrapper.js.map +1 -1
  109. package/build/cjs/components/YandexForm/YandexForm.js +1 -1
  110. package/build/cjs/components/YandexForm/YandexForm.js.map +1 -1
  111. package/build/cjs/constructor-items.d.ts +2 -2
  112. package/build/cjs/constructor-items.js +2 -4
  113. package/build/cjs/constructor-items.js.map +1 -1
  114. package/build/cjs/containers/Loadable/Loadable.js +1 -1
  115. package/build/cjs/containers/Loadable/Loadable.js.map +1 -1
  116. package/build/cjs/editor/data/index.js +1 -1
  117. package/build/cjs/editor/data/index.js.map +1 -1
  118. package/build/cjs/editor/data/templates/{slider-new-block.json → slider-old-block.json} +2 -2
  119. package/build/cjs/editor/widget/utils.js +1 -1
  120. package/build/cjs/editor/widget/utils.js.map +1 -1
  121. package/build/cjs/models/common.d.ts +1 -0
  122. package/build/cjs/models/common.js.map +1 -1
  123. package/build/cjs/models/constructor-items/blocks.d.ts +17 -15
  124. package/build/cjs/models/constructor-items/blocks.js +3 -2
  125. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  126. package/build/cjs/models/constructor-items/common.d.ts +6 -13
  127. package/build/cjs/models/constructor-items/common.js +1 -8
  128. package/build/cjs/models/constructor-items/common.js.map +1 -1
  129. package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +1 -1
  130. package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.js.map +1 -1
  131. package/build/cjs/schema/constants.js +4 -2
  132. package/build/cjs/schema/constants.js.map +1 -1
  133. package/build/cjs/schema/validators/blocks.d.ts +2 -1
  134. package/build/cjs/schema/validators/blocks.js +2 -1
  135. package/build/cjs/schema/validators/blocks.js.map +1 -1
  136. package/build/cjs/sub-blocks/BannerCard/BannerCard.css +14 -8
  137. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -1
  138. package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  139. package/build/cjs/sub-blocks/Content/Content.css +27 -25
  140. package/build/cjs/sub-blocks/Content/Content.js +1 -1
  141. package/build/cjs/sub-blocks/Content/Content.js.map +1 -1
  142. package/build/cjs/sub-blocks/PriceCard/PriceCard.css +2 -1
  143. package/build/cjs/sub-blocks/PriceCard/PriceCard.js +1 -1
  144. package/build/cjs/sub-blocks/PriceCard/PriceCard.js.map +1 -1
  145. package/build/cjs/sub-blocks/Quote/Quote.css +8 -4
  146. package/build/cjs/sub-blocks/Quote/Quote.js +2 -1
  147. package/build/cjs/sub-blocks/Quote/Quote.js.map +1 -1
  148. package/build/cjs/text-transform/common.d.ts +4 -3
  149. package/build/cjs/text-transform/common.js +50 -21
  150. package/build/cjs/text-transform/common.js.map +1 -1
  151. package/build/cjs/text-transform/config.d.ts +5 -2
  152. package/build/cjs/text-transform/config.js +87 -43
  153. package/build/cjs/text-transform/config.js.map +1 -1
  154. package/build/cjs/text-transform/transformers.js +2 -2
  155. package/build/cjs/text-transform/transformers.js.map +1 -1
  156. package/build/cjs/utils/blocks.d.ts +10 -2
  157. package/build/cjs/utils/blocks.js +9 -3
  158. package/build/cjs/utils/blocks.js.map +1 -1
  159. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +11 -6
  160. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +4 -6
  161. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
  162. package/build/esm/blocks/Header/Header.css +15 -10
  163. package/build/esm/blocks/Header/Header.js +7 -2
  164. package/build/esm/blocks/Header/Header.js.map +1 -1
  165. package/build/esm/blocks/HeaderSlider/HeaderSlider.css +0 -10
  166. package/build/esm/blocks/HeaderSlider/HeaderSlider.js +1 -1
  167. package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  168. package/build/esm/blocks/HeaderSlider/schema.d.ts +9 -1
  169. package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.css +43 -21
  170. package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js +4 -2
  171. package/build/esm/blocks/Questions/QuestionBlockItem/QuestionBlockItem.js.map +1 -1
  172. package/build/esm/blocks/Share/Share.css +3 -2
  173. package/build/esm/blocks/Share/Share.js +4 -1
  174. package/build/esm/blocks/Share/Share.js.map +1 -1
  175. package/build/esm/blocks/Slider/Arrow/Arrow.css +22 -21
  176. package/build/esm/blocks/Slider/Arrow/Arrow.d.ts +4 -2
  177. package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
  178. package/build/esm/blocks/Slider/Arrow/Arrow.js.map +1 -1
  179. package/build/esm/blocks/Slider/Slider.css +549 -329
  180. package/build/esm/blocks/Slider/Slider.d.ts +6 -5
  181. package/build/esm/blocks/Slider/Slider.js +33 -276
  182. package/build/esm/blocks/Slider/Slider.js.map +1 -1
  183. package/build/esm/blocks/Slider/i18n/en.json +1 -1
  184. package/build/esm/blocks/Slider/i18n/ru.json +1 -1
  185. package/build/esm/blocks/Slider/models.d.ts +2 -2
  186. package/build/esm/blocks/Slider/models.js +1 -1
  187. package/build/esm/blocks/Slider/models.js.map +1 -1
  188. package/build/esm/blocks/Slider/schema.d.ts +18 -1
  189. package/build/esm/blocks/Slider/schema.js +9 -0
  190. package/build/esm/blocks/Slider/schema.js.map +1 -1
  191. package/build/esm/blocks/{SliderNew → Slider}/useSlider.d.ts +1 -0
  192. package/build/esm/blocks/{SliderNew → Slider}/useSlider.js +4 -0
  193. package/build/esm/blocks/Slider/useSlider.js.map +1 -0
  194. package/build/esm/blocks/Slider/useSliderPagination.js.map +1 -0
  195. package/build/esm/blocks/Slider/utils.d.ts +7 -28
  196. package/build/esm/blocks/Slider/utils.js +25 -103
  197. package/build/esm/blocks/Slider/utils.js.map +1 -1
  198. package/build/esm/blocks/{SliderNew → SliderOld}/Arrow/Arrow.css +14 -11
  199. package/build/esm/blocks/SliderOld/Arrow/Arrow.d.ts +10 -0
  200. package/build/esm/blocks/SliderOld/Arrow/Arrow.js +9 -0
  201. package/build/esm/blocks/SliderOld/Arrow/Arrow.js.map +1 -0
  202. package/build/esm/blocks/SliderOld/SliderOld.css +703 -0
  203. package/build/esm/blocks/SliderOld/SliderOld.d.ts +18 -0
  204. package/build/esm/blocks/SliderOld/SliderOld.js +289 -0
  205. package/build/esm/blocks/SliderOld/SliderOld.js.map +1 -0
  206. package/build/esm/blocks/{SliderNew → SliderOld}/i18n/en.json +1 -1
  207. package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.d.ts +1 -1
  208. package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.js +1 -1
  209. package/build/esm/blocks/{SliderNew → SliderOld}/i18n/index.js.map +1 -1
  210. package/build/esm/blocks/{SliderNew → SliderOld}/i18n/ru.json +1 -1
  211. package/build/esm/blocks/{SliderNew → SliderOld}/models.d.ts +2 -2
  212. package/build/esm/blocks/{SliderNew → SliderOld}/models.js +1 -1
  213. package/build/esm/blocks/{SliderNew → SliderOld}/models.js.map +1 -1
  214. package/build/esm/blocks/{SliderNew → SliderOld}/schema.d.ts +5 -21
  215. package/build/esm/blocks/{SliderNew → SliderOld}/schema.js +5 -13
  216. package/build/esm/blocks/SliderOld/schema.js.map +1 -0
  217. package/build/esm/blocks/SliderOld/utils.d.ts +37 -0
  218. package/build/esm/blocks/SliderOld/utils.js +119 -0
  219. package/build/esm/blocks/SliderOld/utils.js.map +1 -0
  220. package/build/esm/blocks/Table/Table.css +4 -3
  221. package/build/esm/blocks/Table/Table.js +4 -2
  222. package/build/esm/blocks/Table/Table.js.map +1 -1
  223. package/build/esm/blocks/index.d.ts +2 -0
  224. package/build/esm/blocks/index.js +1 -0
  225. package/build/esm/blocks/index.js.map +1 -1
  226. package/build/esm/blocks/validators.d.ts +1 -0
  227. package/build/esm/blocks/validators.js +1 -0
  228. package/build/esm/blocks/validators.js.map +1 -1
  229. package/build/esm/components/BackgroundImage/BackgroundImage.js +2 -2
  230. package/build/esm/components/BackgroundImage/BackgroundImage.js.map +1 -1
  231. package/build/esm/components/ContentList/ContentList.css +10 -6
  232. package/build/esm/components/ContentList/ContentList.js +1 -1
  233. package/build/esm/components/ContentList/ContentList.js.map +1 -1
  234. package/build/esm/components/FullscreenImage/FullscreenImage.css +99 -18
  235. package/build/esm/components/FullscreenImage/FullscreenImage.d.ts +5 -0
  236. package/build/esm/components/FullscreenImage/FullscreenImage.js +14 -2
  237. package/build/esm/components/FullscreenImage/FullscreenImage.js.map +1 -1
  238. package/build/esm/components/FullscreenMedia/FullscreenMedia.css +1 -3
  239. package/build/esm/components/HTML/HTML.d.ts +15 -8
  240. package/build/esm/components/HTML/HTML.js +20 -11
  241. package/build/esm/components/HTML/HTML.js.map +1 -1
  242. package/build/esm/components/Image/Image.d.ts +2 -4
  243. package/build/esm/components/Image/Image.js +8 -21
  244. package/build/esm/components/Image/Image.js.map +1 -1
  245. package/build/esm/components/Media/Image/Image.d.ts +1 -0
  246. package/build/esm/components/Media/Image/Image.js +7 -5
  247. package/build/esm/components/Media/Image/Image.js.map +1 -1
  248. package/build/esm/components/Media/Media.css +4 -0
  249. package/build/esm/components/Media/Media.d.ts +1 -0
  250. package/build/esm/components/Media/Media.js +3 -2
  251. package/build/esm/components/Media/Media.js.map +1 -1
  252. package/build/esm/components/MetaInfo/MetaInfo.css +1 -1
  253. package/build/esm/components/MetaInfo/MetaInfo.js +1 -1
  254. package/build/esm/components/MetaInfo/MetaInfo.js.map +1 -1
  255. package/build/esm/components/Table/Table.css +2 -1
  256. package/build/esm/components/Table/Table.js +5 -3
  257. package/build/esm/components/Table/Table.js.map +1 -1
  258. package/build/esm/components/Title/TitleItem.css +7 -4
  259. package/build/esm/components/Title/TitleItem.js +4 -2
  260. package/build/esm/components/Title/TitleItem.js.map +1 -1
  261. package/build/esm/components/VideoBlock/VideoBlock.js +1 -1
  262. package/build/esm/components/VideoBlock/VideoBlock.js.map +1 -1
  263. package/build/esm/components/YFMWrapper/YFMWrapper.d.ts +4 -2
  264. package/build/esm/components/YFMWrapper/YFMWrapper.js +3 -3
  265. package/build/esm/components/YFMWrapper/YFMWrapper.js.map +1 -1
  266. package/build/esm/components/YandexForm/YandexForm.js +1 -1
  267. package/build/esm/components/YandexForm/YandexForm.js.map +1 -1
  268. package/build/esm/constructor-items.d.ts +2 -2
  269. package/build/esm/constructor-items.js +3 -5
  270. package/build/esm/constructor-items.js.map +1 -1
  271. package/build/esm/containers/Loadable/Loadable.js +1 -1
  272. package/build/esm/containers/Loadable/Loadable.js.map +1 -1
  273. package/build/esm/editor/data/index.js +1 -1
  274. package/build/esm/editor/data/index.js.map +1 -1
  275. package/build/esm/editor/data/templates/{slider-new-block.json → slider-old-block.json} +2 -2
  276. package/build/esm/editor/widget/utils.js +1 -1
  277. package/build/esm/editor/widget/utils.js.map +1 -1
  278. package/build/esm/models/common.d.ts +1 -0
  279. package/build/esm/models/common.js.map +1 -1
  280. package/build/esm/models/constructor-items/blocks.d.ts +17 -15
  281. package/build/esm/models/constructor-items/blocks.js +3 -2
  282. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  283. package/build/esm/models/constructor-items/common.d.ts +6 -13
  284. package/build/esm/models/constructor-items/common.js +0 -7
  285. package/build/esm/models/constructor-items/common.js.map +1 -1
  286. package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js +1 -1
  287. package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.js.map +1 -1
  288. package/build/esm/schema/constants.js +5 -3
  289. package/build/esm/schema/constants.js.map +1 -1
  290. package/build/esm/schema/validators/blocks.d.ts +2 -1
  291. package/build/esm/schema/validators/blocks.js +2 -1
  292. package/build/esm/schema/validators/blocks.js.map +1 -1
  293. package/build/esm/sub-blocks/BannerCard/BannerCard.css +14 -8
  294. package/build/esm/sub-blocks/BannerCard/BannerCard.js +4 -2
  295. package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  296. package/build/esm/sub-blocks/Content/Content.css +27 -25
  297. package/build/esm/sub-blocks/Content/Content.js +1 -1
  298. package/build/esm/sub-blocks/Content/Content.js.map +1 -1
  299. package/build/esm/sub-blocks/PriceCard/PriceCard.css +2 -1
  300. package/build/esm/sub-blocks/PriceCard/PriceCard.js +2 -2
  301. package/build/esm/sub-blocks/PriceCard/PriceCard.js.map +1 -1
  302. package/build/esm/sub-blocks/Quote/Quote.css +8 -4
  303. package/build/esm/sub-blocks/Quote/Quote.js +3 -2
  304. package/build/esm/sub-blocks/Quote/Quote.js.map +1 -1
  305. package/build/esm/text-transform/common.d.ts +4 -3
  306. package/build/esm/text-transform/common.js +50 -21
  307. package/build/esm/text-transform/common.js.map +1 -1
  308. package/build/esm/text-transform/config.d.ts +5 -2
  309. package/build/esm/text-transform/config.js +87 -43
  310. package/build/esm/text-transform/config.js.map +1 -1
  311. package/build/esm/text-transform/transformers.js +2 -2
  312. package/build/esm/text-transform/transformers.js.map +1 -1
  313. package/build/esm/utils/blocks.d.ts +10 -2
  314. package/build/esm/utils/blocks.js +8 -2
  315. package/build/esm/utils/blocks.js.map +1 -1
  316. package/package.json +2 -2
  317. package/schema/index.js +1 -1
  318. package/server/models/common.d.ts +1 -0
  319. package/server/models/constructor-items/blocks.d.ts +17 -15
  320. package/server/models/constructor-items/blocks.js +3 -2
  321. package/server/models/constructor-items/common.d.ts +6 -13
  322. package/server/models/constructor-items/common.js +1 -8
  323. package/server/text-transform/common.d.ts +4 -3
  324. package/server/text-transform/common.js +41 -18
  325. package/server/text-transform/config.d.ts +5 -2
  326. package/server/text-transform/config.js +84 -43
  327. package/server/text-transform/transformers.js +2 -2
  328. package/server/utils/blocks.d.ts +10 -2
  329. package/server/utils/blocks.js +9 -3
  330. package/styles/fonts.scss +1 -0
  331. package/styles/styles.css +0 -1
  332. package/styles/styles.scss +0 -1
  333. package/styles/variables.scss +1 -0
  334. package/widget/2042.index.js +1 -0
  335. package/widget/2723.index.js +1 -0
  336. package/widget/3392.index.js +1 -0
  337. package/widget/6173.index.js +1 -0
  338. package/widget/6328.index.js +1 -0
  339. package/widget/6353.index.js +1 -0
  340. package/widget/6463.index.js +1 -0
  341. package/widget/6887.index.js +1 -0
  342. package/widget/7458.index.js +1 -0
  343. package/widget/7570.index.js +1 -0
  344. package/widget/7627.index.js +1 -0
  345. package/widget/8446.index.js +1 -0
  346. package/widget/9340.index.js +1 -0
  347. package/widget/9979.index.js +1 -0
  348. package/build/cjs/blocks/SliderNew/Arrow/Arrow.d.ts +0 -11
  349. package/build/cjs/blocks/SliderNew/Arrow/Arrow.js +0 -11
  350. package/build/cjs/blocks/SliderNew/Arrow/Arrow.js.map +0 -1
  351. package/build/cjs/blocks/SliderNew/Slider.css +0 -834
  352. package/build/cjs/blocks/SliderNew/Slider.d.ts +0 -13
  353. package/build/cjs/blocks/SliderNew/Slider.js +0 -60
  354. package/build/cjs/blocks/SliderNew/Slider.js.map +0 -1
  355. package/build/cjs/blocks/SliderNew/schema.js.map +0 -1
  356. package/build/cjs/blocks/SliderNew/useSlider.js.map +0 -1
  357. package/build/cjs/blocks/SliderNew/useSliderPagination.js.map +0 -1
  358. package/build/cjs/blocks/SliderNew/utils.d.ts +0 -16
  359. package/build/cjs/blocks/SliderNew/utils.js +0 -48
  360. package/build/cjs/blocks/SliderNew/utils.js.map +0 -1
  361. package/build/cjs/blocks/unstable.d.ts +0 -1
  362. package/build/cjs/blocks/unstable.js +0 -7
  363. package/build/cjs/blocks/unstable.js.map +0 -1
  364. package/build/esm/blocks/SliderNew/Arrow/Arrow.d.ts +0 -12
  365. package/build/esm/blocks/SliderNew/Arrow/Arrow.js +0 -9
  366. package/build/esm/blocks/SliderNew/Arrow/Arrow.js.map +0 -1
  367. package/build/esm/blocks/SliderNew/Slider.css +0 -834
  368. package/build/esm/blocks/SliderNew/Slider.d.ts +0 -14
  369. package/build/esm/blocks/SliderNew/Slider.js +0 -56
  370. package/build/esm/blocks/SliderNew/Slider.js.map +0 -1
  371. package/build/esm/blocks/SliderNew/schema.js.map +0 -1
  372. package/build/esm/blocks/SliderNew/useSlider.js.map +0 -1
  373. package/build/esm/blocks/SliderNew/useSliderPagination.js.map +0 -1
  374. package/build/esm/blocks/SliderNew/utils.d.ts +0 -16
  375. package/build/esm/blocks/SliderNew/utils.js +0 -41
  376. package/build/esm/blocks/SliderNew/utils.js.map +0 -1
  377. package/build/esm/blocks/unstable.d.ts +0 -1
  378. package/build/esm/blocks/unstable.js +0 -2
  379. package/build/esm/blocks/unstable.js.map +0 -1
  380. /package/build/cjs/blocks/{SliderNew → Slider}/useSliderPagination.d.ts +0 -0
  381. /package/build/cjs/blocks/{SliderNew → Slider}/useSliderPagination.js +0 -0
  382. /package/build/cjs/blocks/{Slider → SliderOld}/slick.css +0 -0
  383. /package/build/esm/blocks/{SliderNew → Slider}/useSliderPagination.d.ts +0 -0
  384. /package/build/esm/blocks/{SliderNew → Slider}/useSliderPagination.js +0 -0
  385. /package/build/esm/blocks/{Slider → SliderOld}/slick.css +0 -0
@@ -100,12 +100,7 @@ interface LoopProps {
100
100
  start: number;
101
101
  end?: number;
102
102
  }
103
- export declare enum Device {
104
- Desktop = "desktop",
105
- Mobile = "mobile",
106
- Tablet = "tablet"
107
- }
108
- export interface ImageInfoProps extends Pick<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, 'aria-describedby' | 'loading'>, ImageDevicesVisibleProps {
103
+ export interface ImageInfoProps extends Pick<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, 'aria-describedby' | 'loading'> {
109
104
  alt?: string;
110
105
  fetchPriority?: 'high' | 'low' | 'auto';
111
106
  disableCompress?: boolean;
@@ -114,18 +109,16 @@ export interface ImageObjectProps extends ImageInfoProps {
114
109
  src: string;
115
110
  }
116
111
  export interface ImageDeviceProps extends ImageInfoProps {
117
- [Device.Desktop]: string;
118
- [Device.Mobile]: string;
119
- [Device.Tablet]?: string;
120
- }
121
- export interface ImageDevicesVisibleProps {
122
- hide?: boolean | Partial<Record<Device, boolean>>;
112
+ desktop: string;
113
+ mobile: string;
114
+ tablet?: string;
123
115
  }
124
116
  export type ImageProps = string | ImageObjectProps | ImageDeviceProps;
125
117
  export type ThemedImage = ThemeSupporting<ImageProps>;
126
- export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement>, Partial<ImageDeviceProps>, Partial<ImageObjectProps>, QAProps, ImageDevicesVisibleProps {
118
+ export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement>, Partial<ImageDeviceProps>, Partial<ImageObjectProps>, QAProps {
127
119
  style?: React.CSSProperties;
128
120
  imageClassName?: string;
121
+ hide?: boolean;
129
122
  }
130
123
  export interface MediaVideoProps extends AnalyticsEventsBase {
131
124
  src: string[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Device = exports.QuoteType = exports.MediaVideoControlsType = exports.MediaVideoType = exports.CustomControlsButtonPositioning = exports.CustomControlsType = exports.PlayButtonThemes = exports.PlayButtonType = exports.PriceLabelColor = exports.PriceDetailsType = exports.AuthorType = void 0;
3
+ exports.QuoteType = exports.MediaVideoControlsType = exports.MediaVideoType = exports.CustomControlsButtonPositioning = exports.CustomControlsType = exports.PlayButtonThemes = exports.PlayButtonType = exports.PriceLabelColor = exports.PriceDetailsType = exports.AuthorType = void 0;
4
4
  // enums
5
5
  var AuthorType;
6
6
  (function (AuthorType) {
@@ -56,11 +56,4 @@ var QuoteType;
56
56
  QuoteType["Chevron"] = "chevron";
57
57
  QuoteType["EnglishDouble"] = "english-double";
58
58
  })(QuoteType || (exports.QuoteType = QuoteType = {}));
59
- // images
60
- var Device;
61
- (function (Device) {
62
- Device["Desktop"] = "desktop";
63
- Device["Mobile"] = "mobile";
64
- Device["Tablet"] = "tablet";
65
- })(Device || (exports.Device = Device = {}));
66
59
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"../../../../src","sources":["models/constructor-items/common.ts"],"names":[],"mappings":";;;AAOA,QAAQ;AACR,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,2BAAa,CAAA;AACjB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,+CAA2B,CAAA;IAC3B,yCAAqB,CAAA;AACzB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,8BAAW,CAAA;AACf,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;AACjB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,iCAAa,CAAA;IACb,iCAAa,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,yDAAmC,CAAA;IACnC,oEAA8C,CAAA;AAClD,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,+BAIX;AAJD,WAAY,+BAA+B;IACvC,gDAAa,CAAA;IACb,kDAAe,CAAA;IACf,oDAAiB,CAAA;AACrB,CAAC,EAJW,+BAA+B,+CAA/B,+BAA+B,QAI1C;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACrB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,6CAAgC,CAAA;AACpC,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAsED,SAAS;AAET,IAAY,MAIX;AAJD,WAAY,MAAM;IACd,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,2BAAiB,CAAA;AACrB,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB","sourcesContent":["import * as React from 'react';\n\nimport {ButtonView, ButtonProps as UikitButtonProps} from '@gravity-ui/uikit';\n\nimport {ThemeSupporting} from '../../utils';\nimport {AnalyticsEventsBase, AnalyticsEventsProp, ClassNameProps, QAProps} from '../common';\n\n// enums\nexport enum AuthorType {\n Column = 'column',\n Line = 'line',\n}\n\nexport enum PriceDetailsType {\n MARKED_LIST = 'marked-list',\n SETTINGS = 'settings',\n}\n\nexport enum PriceLabelColor {\n BLUE = 'blue',\n GREEN = 'green',\n YELLOW = 'yellow',\n PURPLE = 'purple',\n RED = 'red',\n}\n\nexport enum PlayButtonType {\n Default = 'default',\n Text = 'text',\n}\n\nexport enum PlayButtonThemes {\n Blue = 'blue',\n Grey = 'grey',\n}\n\nexport enum CustomControlsType {\n WithMuteButton = 'with-mute-button',\n WithPlayPauseButton = 'with-play-pause-button',\n}\n\nexport enum CustomControlsButtonPositioning {\n Left = 'left',\n Right = 'right',\n Center = 'center',\n}\n\nexport enum MediaVideoType {\n Default = 'default',\n Player = 'player',\n}\n\nexport enum MediaVideoControlsType {\n Default = 'default',\n Custom = 'custom',\n}\n\nexport enum QuoteType {\n Chevron = 'chevron', // « »\n EnglishDouble = 'english-double', // “ ”\n}\n\n// types\nexport type TextTheme = 'light' | 'dark';\nexport type TextSize = 'xs' | 's' | 'sm' | 'm' | 'l';\nexport type DividerSize = '0' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';\nexport type HeaderWidth = 's' | 'm' | 'l';\nexport type HeaderImageSize = 's' | 'm';\nexport type HeaderOffset = 'default' | 'large';\nexport type Justify = 'start' | 'center' | 'end';\nexport type ColumnsCount = 1 | 2 | 3 | 4;\nexport type LegendTableMarkerType = 'disk' | 'tick';\nexport type LinkTheme = 'file-link' | 'normal' | 'back' | 'underline';\nexport type MediaDirection = 'media-content' | 'content-media';\nexport type PriceDescriptionColor = 'cornflower' | 'black';\nexport type ContentSize = 's' | 'm' | 'l';\nexport type ContentTextSize = 's' | 'm' | 'l';\nexport type ContentTheme = 'default' | 'dark' | 'light';\nexport type FileLinkType = 'vertical' | 'horizontal';\nexport type ImageCardMargins = 's' | 'm';\nexport type LayoutItemContentMargin = 'm' | 'l';\n\n// modifiers\nexport interface Themable {\n theme?: TextTheme;\n}\n\nexport interface Justifyable {\n justify?: Justify;\n}\n\nexport interface Stylable {\n className?: string;\n}\n\nexport interface Animatable {\n animated?: boolean;\n}\n\nexport interface Tabbable {\n tabIndex?: number;\n}\n\nexport interface Roleable {\n role?: React.AriaRole;\n}\n\nexport interface AriaProps {\n ariaProps?: React.AriaAttributes;\n}\n\n//common props\nexport interface Background {\n image?: string;\n color?: string;\n}\n\nexport interface AnchorProps {\n text: string;\n url: string;\n}\n\n/**\n * @deprecated Component VideoBlock will be deleted, which uses this logic\n */\ninterface LoopProps {\n start: number;\n end?: number;\n}\n\n// images\n\nexport enum Device {\n Desktop = 'desktop',\n Mobile = 'mobile',\n Tablet = 'tablet',\n}\n\nexport interface ImageInfoProps\n extends Pick<\n React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>,\n 'aria-describedby' | 'loading'\n >,\n ImageDevicesVisibleProps {\n alt?: string;\n fetchPriority?: 'high' | 'low' | 'auto';\n disableCompress?: boolean;\n}\n\nexport interface ImageObjectProps extends ImageInfoProps {\n src: string;\n}\n\nexport interface ImageDeviceProps extends ImageInfoProps {\n [Device.Desktop]: string;\n [Device.Mobile]: string;\n [Device.Tablet]?: string;\n}\n\nexport interface ImageDevicesVisibleProps {\n hide?: boolean | Partial<Record<Device, boolean>>;\n}\n\nexport type ImageProps = string | ImageObjectProps | ImageDeviceProps;\nexport type ThemedImage = ThemeSupporting<ImageProps>;\n\nexport interface BackgroundImageProps\n extends React.HTMLProps<HTMLDivElement>,\n Partial<ImageDeviceProps>,\n Partial<ImageObjectProps>,\n QAProps,\n ImageDevicesVisibleProps {\n style?: React.CSSProperties;\n imageClassName?: string;\n}\n\n//components props\nexport interface MediaVideoProps extends AnalyticsEventsBase {\n src: string[];\n type?: MediaVideoType;\n loop?: LoopProps | boolean;\n muted?: boolean;\n autoplay?: boolean;\n elapsedTime?: number;\n playButton?: PlayButtonProps;\n controls?: MediaVideoControlsType;\n customControlsOptions?: CustomControlsOptions;\n ariaLabel?: string;\n contain?: boolean;\n}\n\n// links\nexport interface LinkProps extends AnalyticsEventsBase, Stylable, Tabbable {\n url: string;\n urlTitle?: string;\n text?: string;\n textSize?: TextSize;\n theme?: LinkTheme;\n colorTheme?: TextTheme;\n arrow?: boolean;\n target?: string;\n extraProps?: React.HTMLProps<HTMLAnchorElement>;\n}\n\nexport interface FileLinkProps extends ClassNameProps, Tabbable {\n href: string;\n text: React.ReactNode;\n type?: FileLinkType;\n textSize?: TextSize;\n theme?: ContentTheme;\n urlTitle?: string;\n onClick?: () => void;\n extraProps?: React.HTMLProps<HTMLAnchorElement>;\n}\n\n// buttons\nexport type ButtonTheme =\n | ButtonView\n | 'github'\n | 'app-store'\n | 'google-play'\n | 'scale'\n | 'monochrome';\n\nexport interface ButtonProps\n extends AnalyticsEventsBase,\n Pick<UikitButtonProps, 'size' | 'width' | 'extraProps'> {\n text: string;\n url: string;\n urlTitle?: string;\n primary?: boolean;\n theme?: ButtonTheme;\n img?: ButtonImageProps | string;\n target?: string;\n}\n\nexport type ButtonImagePosition = 'left' | 'right';\n\nexport interface ButtonImageProps {\n url: string;\n position?: ButtonImagePosition;\n alt?: string;\n}\n\nexport interface CustomControlsOptions {\n type?: CustomControlsType;\n muteButtonShown?: boolean;\n positioning?: CustomControlsButtonPositioning;\n}\n\nexport interface PlayButtonProps extends ClassNameProps {\n type?: PlayButtonType;\n theme?: PlayButtonThemes;\n text?: string;\n}\n\nexport type ThemedMediaVideoProps = ThemeSupporting<MediaVideoProps>;\n\nexport interface MediaComponentVideoProps extends AnalyticsEventsBase {\n video: MediaVideoProps;\n height?: number;\n ratio?: number | 'auto';\n previewImg?: string;\n}\n\nexport interface MediaComponentVideoIframeProps {\n videoIframe: string;\n}\n\nexport interface MediaComponentYoutubeProps {\n youtube: string;\n previewImg?: string;\n fullscreen?: boolean;\n}\n\nexport interface MediaComponentImageProps {\n image: ImageProps | ImageProps[] | ImageDeviceProps;\n video?: MediaVideoProps;\n parallax?: boolean;\n height?: number;\n disableImageSliderForArrayInput?: boolean;\n}\n\nexport interface MediaComponentDataLensProps {\n dataLens: DataLensProps;\n}\n\nexport interface MediaComponentIframeProps {\n iframe: IframeProps;\n margins?: boolean;\n}\n\nexport interface MediaProps\n extends Animatable,\n Partial<MediaComponentDataLensProps>,\n Partial<MediaComponentYoutubeProps>,\n Partial<MediaComponentVideoIframeProps>,\n Partial<MediaComponentImageProps>,\n Partial<MediaComponentIframeProps>,\n Partial<MediaComponentVideoProps> {\n color?: string;\n videoMicrodata?: {\n name?: string;\n description?: string;\n duration?: string;\n uploadDate?: string;\n contentUrl?: string;\n thumbnailUrl?: string;\n };\n}\n\nexport interface BackgroundMediaProps extends MediaProps, Animatable, QAProps {\n fullWidthMedia?: boolean;\n className?: string;\n mediaClassName?: string;\n}\n\nexport type Coordinate = number[];\n\nexport interface MapBaseProps {\n zoom?: number;\n className?: string;\n}\n\nexport interface GMapProps extends MapBaseProps {\n address: string;\n}\n\nexport interface YMapProps extends MapBaseProps {\n markers: YMapMarker[];\n id: string;\n}\n\nexport interface YMapMarker {\n address?: string;\n coordinate?: Coordinate;\n label?: YMapMarkerLabel;\n}\n\nexport interface YMapMarkerLabel {\n iconCaption?: string;\n iconContent?: string;\n iconColor?: string;\n preset?: string;\n}\n\nexport type MapProps = GMapProps | YMapProps;\n\nexport type ThemedMediaProps = ThemeSupporting<MediaProps>;\n\nexport interface DataLensObjectProps {\n id: string;\n theme: 'dark' | 'light';\n}\n\nexport interface IframeProps {\n src: string;\n width?: number;\n height?: number;\n title?: string;\n name?: string;\n}\n\nexport type DataLensProps = string | DataLensObjectProps;\n\nexport interface AuthorItem {\n firstName: string;\n secondName: string;\n description?: string;\n avatar?: ThemeSupporting<ImageProps> | JSX.Element;\n}\n\nexport interface HeaderBreadCrumbsProps extends ClassNameProps {\n items: {\n url: string;\n text: React.ReactNode;\n }[];\n theme?: TextTheme;\n analyticsEvents?: AnalyticsEventsProp;\n}\n\nexport interface TitleItemProps extends Justifyable, TitleItemBaseProps {\n navTitle?: string;\n anchor?: string;\n}\n\nexport interface TitleItemBaseProps {\n text: string;\n textSize?: TextSize;\n url?: string;\n urlTitle?: string;\n custom?: string | React.ReactNode;\n onClick?: () => void;\n}\n\nexport type MediaView = 'fit' | 'full';\n\n// card\nexport type MediaBorder = 'shadow' | 'line' | 'none';\nexport type CardBorder = MediaBorder;\nexport type ControlPosition = 'content' | 'footer';\n\nexport interface CardBaseProps {\n border?: CardBorder;\n}\n\nexport type CardLayoutProps = {\n controlPosition?: ControlPosition;\n};\n\n//price\nexport interface PriceDescriptionProps {\n title: string;\n detailedTitle?: string;\n description: string;\n label?: {\n color: PriceLabelColor;\n text?: string;\n size?: TextSize;\n };\n}\n\nexport interface PriceDetailsSettingsProps {\n title: string;\n description: string;\n}\n\nexport interface PriceDetailsListProps {\n text: string;\n}\n\nexport interface PriceDetailsProps {\n items?: PriceDetailsSettingsProps[] | PriceDetailsListProps[];\n}\n\nexport interface PriceItemProps\n extends PriceDetailsProps,\n PriceDescriptionProps,\n AnalyticsEventsBase {}\n\nexport interface PriceFoldableDetailsProps {\n title: string;\n size?: TextSize;\n titleColor?: PriceDescriptionColor;\n}\n\n/** @deprecated */\nexport interface PriceDetailedProps extends CardBaseProps {\n items: PriceItemProps[];\n description?: {\n titleSize?: TextSize;\n descriptionSize?: TextSize;\n titleColor?: PriceDescriptionColor;\n };\n details?: {\n titleSize?: TextSize;\n descriptionSize?: TextSize;\n };\n priceType?: PriceDetailsType;\n numberGroupItems?: 3 | 4 | 5;\n isCombined?: boolean;\n useMixedView?: boolean;\n foldable?: PriceFoldableDetailsProps;\n labelsDefaultText?: Record<PriceLabelColor, string>;\n}\n\nexport interface AuthorProps extends QAProps {\n author: AuthorItem;\n className?: string;\n authorContainerClassName?: string;\n type?: AuthorType;\n theme?: ContentTheme;\n}\n\nexport interface TitleProps {\n title?: TitleItemProps | string;\n subtitle?: string;\n}\n\nexport interface YandexFormProps extends AnalyticsEventsBase {\n id: number | string;\n containerId?: string;\n theme?: string;\n className?: string;\n headerHeight?: number;\n customFormOrigin?: string;\n customFormSection?: string;\n params?: {[key: string]: string};\n\n onSubmit?: () => void;\n onLoad?: () => void;\n}\n\nexport interface WithBorder {\n border?: MediaBorder;\n /**\n * @deprecated use custom class for media-component\n */\n disableShadow?: boolean;\n}\n"]}
1
+ {"version":3,"file":"common.js","sourceRoot":"../../../../src","sources":["models/constructor-items/common.ts"],"names":[],"mappings":";;;AAOA,QAAQ;AACR,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,2BAAa,CAAA;AACjB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,+CAA2B,CAAA;IAC3B,yCAAqB,CAAA;AACzB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,8BAAW,CAAA;AACf,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;AACjB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,iCAAa,CAAA;IACb,iCAAa,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,yDAAmC,CAAA;IACnC,oEAA8C,CAAA;AAClD,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED,IAAY,+BAIX;AAJD,WAAY,+BAA+B;IACvC,gDAAa,CAAA;IACb,kDAAe,CAAA;IACf,oDAAiB,CAAA;AACrB,CAAC,EAJW,+BAA+B,+CAA/B,+BAA+B,QAI1C;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACrB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,6CAAgC,CAAA;AACpC,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB","sourcesContent":["import * as React from 'react';\n\nimport {ButtonView, ButtonProps as UikitButtonProps} from '@gravity-ui/uikit';\n\nimport {ThemeSupporting} from '../../utils';\nimport {AnalyticsEventsBase, AnalyticsEventsProp, ClassNameProps, QAProps} from '../common';\n\n// enums\nexport enum AuthorType {\n Column = 'column',\n Line = 'line',\n}\n\nexport enum PriceDetailsType {\n MARKED_LIST = 'marked-list',\n SETTINGS = 'settings',\n}\n\nexport enum PriceLabelColor {\n BLUE = 'blue',\n GREEN = 'green',\n YELLOW = 'yellow',\n PURPLE = 'purple',\n RED = 'red',\n}\n\nexport enum PlayButtonType {\n Default = 'default',\n Text = 'text',\n}\n\nexport enum PlayButtonThemes {\n Blue = 'blue',\n Grey = 'grey',\n}\n\nexport enum CustomControlsType {\n WithMuteButton = 'with-mute-button',\n WithPlayPauseButton = 'with-play-pause-button',\n}\n\nexport enum CustomControlsButtonPositioning {\n Left = 'left',\n Right = 'right',\n Center = 'center',\n}\n\nexport enum MediaVideoType {\n Default = 'default',\n Player = 'player',\n}\n\nexport enum MediaVideoControlsType {\n Default = 'default',\n Custom = 'custom',\n}\n\nexport enum QuoteType {\n Chevron = 'chevron', // « »\n EnglishDouble = 'english-double', // “ ”\n}\n\n// types\nexport type TextTheme = 'light' | 'dark';\nexport type TextSize = 'xs' | 's' | 'sm' | 'm' | 'l';\nexport type DividerSize = '0' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';\nexport type HeaderWidth = 's' | 'm' | 'l';\nexport type HeaderImageSize = 's' | 'm';\nexport type HeaderOffset = 'default' | 'large';\nexport type Justify = 'start' | 'center' | 'end';\nexport type ColumnsCount = 1 | 2 | 3 | 4;\nexport type LegendTableMarkerType = 'disk' | 'tick';\nexport type LinkTheme = 'file-link' | 'normal' | 'back' | 'underline';\nexport type MediaDirection = 'media-content' | 'content-media';\nexport type PriceDescriptionColor = 'cornflower' | 'black';\nexport type ContentSize = 's' | 'm' | 'l';\nexport type ContentTextSize = 's' | 'm' | 'l';\nexport type ContentTheme = 'default' | 'dark' | 'light';\nexport type FileLinkType = 'vertical' | 'horizontal';\nexport type ImageCardMargins = 's' | 'm';\nexport type LayoutItemContentMargin = 'm' | 'l';\n\n// modifiers\nexport interface Themable {\n theme?: TextTheme;\n}\n\nexport interface Justifyable {\n justify?: Justify;\n}\n\nexport interface Stylable {\n className?: string;\n}\n\nexport interface Animatable {\n animated?: boolean;\n}\n\nexport interface Tabbable {\n tabIndex?: number;\n}\n\nexport interface Roleable {\n role?: React.AriaRole;\n}\n\nexport interface AriaProps {\n ariaProps?: React.AriaAttributes;\n}\n\n//common props\nexport interface Background {\n image?: string;\n color?: string;\n}\n\nexport interface AnchorProps {\n text: string;\n url: string;\n}\n\n/**\n * @deprecated Component VideoBlock will be deleted, which uses this logic\n */\ninterface LoopProps {\n start: number;\n end?: number;\n}\n\n// images\n\nexport interface ImageInfoProps\n extends Pick<\n React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>,\n 'aria-describedby' | 'loading'\n > {\n alt?: string;\n fetchPriority?: 'high' | 'low' | 'auto';\n disableCompress?: boolean;\n}\n\nexport interface ImageObjectProps extends ImageInfoProps {\n src: string;\n}\n\nexport interface ImageDeviceProps extends ImageInfoProps {\n desktop: string;\n mobile: string;\n tablet?: string;\n}\n\nexport type ImageProps = string | ImageObjectProps | ImageDeviceProps;\nexport type ThemedImage = ThemeSupporting<ImageProps>;\n\nexport interface BackgroundImageProps\n extends React.HTMLProps<HTMLDivElement>,\n Partial<ImageDeviceProps>,\n Partial<ImageObjectProps>,\n QAProps {\n style?: React.CSSProperties;\n imageClassName?: string;\n hide?: boolean;\n}\n\n//components props\nexport interface MediaVideoProps extends AnalyticsEventsBase {\n src: string[];\n type?: MediaVideoType;\n loop?: LoopProps | boolean;\n muted?: boolean;\n autoplay?: boolean;\n elapsedTime?: number;\n playButton?: PlayButtonProps;\n controls?: MediaVideoControlsType;\n customControlsOptions?: CustomControlsOptions;\n ariaLabel?: string;\n contain?: boolean;\n}\n\n// links\nexport interface LinkProps extends AnalyticsEventsBase, Stylable, Tabbable {\n url: string;\n urlTitle?: string;\n text?: string;\n textSize?: TextSize;\n theme?: LinkTheme;\n colorTheme?: TextTheme;\n arrow?: boolean;\n target?: string;\n extraProps?: React.HTMLProps<HTMLAnchorElement>;\n}\n\nexport interface FileLinkProps extends ClassNameProps, Tabbable {\n href: string;\n text: React.ReactNode;\n type?: FileLinkType;\n textSize?: TextSize;\n theme?: ContentTheme;\n urlTitle?: string;\n onClick?: () => void;\n extraProps?: React.HTMLProps<HTMLAnchorElement>;\n}\n\n// buttons\nexport type ButtonTheme =\n | ButtonView\n | 'github'\n | 'app-store'\n | 'google-play'\n | 'scale'\n | 'monochrome';\n\nexport interface ButtonProps\n extends AnalyticsEventsBase,\n Pick<UikitButtonProps, 'size' | 'width' | 'extraProps'> {\n text: string;\n url: string;\n urlTitle?: string;\n primary?: boolean;\n theme?: ButtonTheme;\n img?: ButtonImageProps | string;\n target?: string;\n}\n\nexport type ButtonImagePosition = 'left' | 'right';\n\nexport interface ButtonImageProps {\n url: string;\n position?: ButtonImagePosition;\n alt?: string;\n}\n\nexport interface CustomControlsOptions {\n type?: CustomControlsType;\n muteButtonShown?: boolean;\n positioning?: CustomControlsButtonPositioning;\n}\n\nexport interface PlayButtonProps extends ClassNameProps {\n type?: PlayButtonType;\n theme?: PlayButtonThemes;\n text?: string;\n}\n\nexport type ThemedMediaVideoProps = ThemeSupporting<MediaVideoProps>;\n\nexport interface MediaComponentVideoProps extends AnalyticsEventsBase {\n video: MediaVideoProps;\n height?: number;\n ratio?: number | 'auto';\n previewImg?: string;\n}\n\nexport interface MediaComponentVideoIframeProps {\n videoIframe: string;\n}\n\nexport interface MediaComponentYoutubeProps {\n youtube: string;\n previewImg?: string;\n fullscreen?: boolean;\n}\n\nexport interface MediaComponentImageProps {\n image: ImageProps | ImageProps[] | ImageDeviceProps;\n video?: MediaVideoProps;\n parallax?: boolean;\n height?: number;\n disableImageSliderForArrayInput?: boolean;\n}\n\nexport interface MediaComponentDataLensProps {\n dataLens: DataLensProps;\n}\n\nexport interface MediaComponentIframeProps {\n iframe: IframeProps;\n margins?: boolean;\n}\n\nexport interface MediaProps\n extends Animatable,\n Partial<MediaComponentDataLensProps>,\n Partial<MediaComponentYoutubeProps>,\n Partial<MediaComponentVideoIframeProps>,\n Partial<MediaComponentImageProps>,\n Partial<MediaComponentIframeProps>,\n Partial<MediaComponentVideoProps> {\n color?: string;\n videoMicrodata?: {\n name?: string;\n description?: string;\n duration?: string;\n uploadDate?: string;\n contentUrl?: string;\n thumbnailUrl?: string;\n };\n}\n\nexport interface BackgroundMediaProps extends MediaProps, Animatable, QAProps {\n fullWidthMedia?: boolean;\n className?: string;\n mediaClassName?: string;\n}\n\nexport type Coordinate = number[];\n\nexport interface MapBaseProps {\n zoom?: number;\n className?: string;\n}\n\nexport interface GMapProps extends MapBaseProps {\n address: string;\n}\n\nexport interface YMapProps extends MapBaseProps {\n markers: YMapMarker[];\n id: string;\n}\n\nexport interface YMapMarker {\n address?: string;\n coordinate?: Coordinate;\n label?: YMapMarkerLabel;\n}\n\nexport interface YMapMarkerLabel {\n iconCaption?: string;\n iconContent?: string;\n iconColor?: string;\n preset?: string;\n}\n\nexport type MapProps = GMapProps | YMapProps;\n\nexport type ThemedMediaProps = ThemeSupporting<MediaProps>;\n\nexport interface DataLensObjectProps {\n id: string;\n theme: 'dark' | 'light';\n}\n\nexport interface IframeProps {\n src: string;\n width?: number;\n height?: number;\n title?: string;\n name?: string;\n}\n\nexport type DataLensProps = string | DataLensObjectProps;\n\nexport interface AuthorItem {\n firstName: string;\n secondName: string;\n description?: string;\n avatar?: ThemeSupporting<ImageProps> | JSX.Element;\n}\n\nexport interface HeaderBreadCrumbsProps extends ClassNameProps {\n items: {\n url: string;\n text: React.ReactNode;\n }[];\n theme?: TextTheme;\n analyticsEvents?: AnalyticsEventsProp;\n}\n\nexport interface TitleItemProps extends Justifyable, TitleItemBaseProps {\n navTitle?: string;\n anchor?: string;\n}\n\nexport interface TitleItemBaseProps {\n text: string;\n textSize?: TextSize;\n url?: string;\n urlTitle?: string;\n custom?: string | React.ReactNode;\n onClick?: () => void;\n}\n\nexport type MediaView = 'fit' | 'full';\n\n// card\nexport type MediaBorder = 'shadow' | 'line' | 'none';\nexport type CardBorder = MediaBorder;\nexport type ControlPosition = 'content' | 'footer';\n\nexport interface CardBaseProps {\n border?: CardBorder;\n}\n\nexport type CardLayoutProps = {\n controlPosition?: ControlPosition;\n};\n\n//price\nexport interface PriceDescriptionProps {\n title: string;\n detailedTitle?: string;\n description: string;\n label?: {\n color: PriceLabelColor;\n text?: string;\n size?: TextSize;\n };\n}\n\nexport interface PriceDetailsSettingsProps {\n title: string;\n description: string;\n}\n\nexport interface PriceDetailsListProps {\n text: string;\n}\n\nexport interface PriceDetailsProps {\n items?: PriceDetailsSettingsProps[] | PriceDetailsListProps[];\n}\n\nexport interface PriceItemProps\n extends PriceDetailsProps,\n PriceDescriptionProps,\n AnalyticsEventsBase {}\n\nexport interface PriceFoldableDetailsProps {\n title: string;\n size?: TextSize;\n titleColor?: PriceDescriptionColor;\n}\n\n/** @deprecated */\nexport interface PriceDetailedProps extends CardBaseProps {\n items: PriceItemProps[];\n description?: {\n titleSize?: TextSize;\n descriptionSize?: TextSize;\n titleColor?: PriceDescriptionColor;\n };\n details?: {\n titleSize?: TextSize;\n descriptionSize?: TextSize;\n };\n priceType?: PriceDetailsType;\n numberGroupItems?: 3 | 4 | 5;\n isCombined?: boolean;\n useMixedView?: boolean;\n foldable?: PriceFoldableDetailsProps;\n labelsDefaultText?: Record<PriceLabelColor, string>;\n}\n\nexport interface AuthorProps extends QAProps {\n author: AuthorItem;\n className?: string;\n authorContainerClassName?: string;\n type?: AuthorType;\n theme?: ContentTheme;\n}\n\nexport interface TitleProps {\n title?: TitleItemProps | string;\n subtitle?: string;\n}\n\nexport interface YandexFormProps extends AnalyticsEventsBase {\n id: number | string;\n containerId?: string;\n theme?: string;\n className?: string;\n headerHeight?: number;\n customFormOrigin?: string;\n customFormSection?: string;\n params?: {[key: string]: string};\n\n onSubmit?: () => void;\n onLoad?: () => void;\n}\n\nexport interface WithBorder {\n border?: MediaBorder;\n /**\n * @deprecated use custom class for media-component\n */\n disableShadow?: boolean;\n}\n"]}
@@ -24,7 +24,7 @@ const GithubButton = ({ text, url, className, label, size, icon, urlTitle, }) =>
24
24
  githubButton.parentNode.replaceChild(el, githubButton);
25
25
  }
26
26
  }
27
- catch (_) { }
27
+ catch { }
28
28
  });
29
29
  }
30
30
  });
@@ -1 +1 @@
1
- {"version":3,"file":"GithubButton.js","sourceRoot":"../../../../../../../src","sources":["navigation/components/NavigationItem/components/GithubButton/GithubButton.tsx"],"names":[],"mappings":";;;;;AAAA,qDAA+B;AAE/B,2DAAyF;AACzF,yDAA2C;AAK3C,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,eAAe,CAAC,CAAC;AAIjC,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAExC,yEAAyE;AAClE,MAAM,YAAY,GAAG,CAAC,EACzB,IAAI,EACJ,GAAG,EACH,SAAS,EACT,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,QAAQ,GACkB,EAAE,EAAE;IAC9B,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAkB,IAAI,CAAC,CAAC;IACzD,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAoB,IAAI,CAAC,CAAC;IAEtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,KAAK,GAAG,GAAG,EAAE;YACf,IAAI,YAAY,CAAC,OAAO,EAAE,CAAC;gBACvB,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CACjD,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,CAAC;gBACF,MAAM,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE;oBAClE,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;wBAC3B,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;4BACrD,IAAI,CAAC;gCACD,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC;oCAC1B,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;gCAC3D,CAAC;4BACL,CAAC;4BAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;wBAClB,CAAC,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC;QAEF,MAAM,KAAK,GAAG,GAAG,EAAE;YACf,IAAI,YAAY,EAAE,OAAO,EAAE,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;gBACtD,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YACvF,CAAC;QACL,CAAC,CAAC;QAEF,KAAK,EAAE,CAAC;QAER,OAAO,GAAG,EAAE;YACR,KAAK,EAAE,CAAC;QACZ,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,gCAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,YAC9B,iCAAM,GAAG,EAAE,YAAY,YACnB,8BACI,IAAI,EAAE,GAAG,EACT,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,QAAQ,qBACC,MAAM,gBACV,KAAK,IAAI,aAAa,KAC9B,CAAC,IAAI,IAAI,EAAC,WAAW,EAAE,mCAA0B,CAAC,IAAI,CAAC,EAAC,CAAC,KACzD,CAAC,IAAI,IAAI,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC,YAEhC,IAAI,GACL,GACD,GACL,CACT,CAAC;AACN,CAAC,CAAC;AA9DW,QAAA,YAAY,gBA8DvB","sourcesContent":["import * as React from 'react';\n\nimport {NavigationGithubButton, NavigationGithubButtonIcon} from '../../../../../models';\nimport {block} from '../../../../../utils';\nimport {NavigationItemProps} from '../../../../models';\n\nimport './GithubButton.scss';\n\nconst b = block('github-button');\n\ntype NavigationGithubButtonProps = NavigationItemProps & NavigationGithubButton;\n\nconst DEFAULT_LABEL = 'Stars on GitHub';\n\n/* More information about github-buttons in https://buttons.github.io/ */\nexport const GithubButton = ({\n text,\n url,\n className,\n label,\n size,\n icon,\n urlTitle,\n}: NavigationGithubButtonProps) => {\n const containerRef = React.useRef<HTMLSpanElement>(null);\n const linkRef = React.useRef<HTMLAnchorElement>(null);\n\n React.useEffect(() => {\n const paint = () => {\n if (containerRef.current) {\n const githubButton = containerRef.current.appendChild(\n document.createElement('span'),\n );\n import(/* webpackMode: \"eager\" */ 'github-buttons').then(({render}) => {\n if (linkRef.current !== null) {\n render(githubButton.appendChild(linkRef.current), (el) => {\n try {\n if (githubButton.parentNode) {\n githubButton.parentNode.replaceChild(el, githubButton);\n }\n } catch (_) {}\n });\n }\n });\n }\n };\n\n const reset = () => {\n if (containerRef?.current?.lastChild && linkRef.current) {\n containerRef.current.replaceChild(linkRef.current, containerRef.current.lastChild);\n }\n };\n\n paint();\n\n return () => {\n reset();\n };\n }, []);\n\n return (\n <div className={b(null, className)}>\n <span ref={containerRef}>\n <a\n href={url}\n ref={linkRef}\n title={urlTitle}\n data-show-count=\"true\"\n aria-label={label || DEFAULT_LABEL}\n {...(icon && {'data-icon': NavigationGithubButtonIcon[icon]})}\n {...(size && {'data-size': size})}\n >\n {text}\n </a>\n </span>\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"GithubButton.js","sourceRoot":"../../../../../../../src","sources":["navigation/components/NavigationItem/components/GithubButton/GithubButton.tsx"],"names":[],"mappings":";;;;;AAAA,qDAA+B;AAE/B,2DAAyF;AACzF,yDAA2C;AAK3C,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,eAAe,CAAC,CAAC;AAIjC,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAExC,yEAAyE;AAClE,MAAM,YAAY,GAAG,CAAC,EACzB,IAAI,EACJ,GAAG,EACH,SAAS,EACT,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,QAAQ,GACkB,EAAE,EAAE;IAC9B,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAkB,IAAI,CAAC,CAAC;IACzD,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAoB,IAAI,CAAC,CAAC;IAEtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,KAAK,GAAG,GAAG,EAAE;YACf,IAAI,YAAY,CAAC,OAAO,EAAE,CAAC;gBACvB,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CACjD,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,CAAC;gBACF,MAAM,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE;oBAClE,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;wBAC3B,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;4BACrD,IAAI,CAAC;gCACD,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC;oCAC1B,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;gCAC3D,CAAC;4BACL,CAAC;4BAAC,MAAM,CAAC,CAAA,CAAC;wBACd,CAAC,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC;QAEF,MAAM,KAAK,GAAG,GAAG,EAAE;YACf,IAAI,YAAY,EAAE,OAAO,EAAE,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;gBACtD,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YACvF,CAAC;QACL,CAAC,CAAC;QAEF,KAAK,EAAE,CAAC;QAER,OAAO,GAAG,EAAE;YACR,KAAK,EAAE,CAAC;QACZ,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,gCAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,YAC9B,iCAAM,GAAG,EAAE,YAAY,YACnB,8BACI,IAAI,EAAE,GAAG,EACT,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,QAAQ,qBACC,MAAM,gBACV,KAAK,IAAI,aAAa,KAC9B,CAAC,IAAI,IAAI,EAAC,WAAW,EAAE,mCAA0B,CAAC,IAAI,CAAC,EAAC,CAAC,KACzD,CAAC,IAAI,IAAI,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC,YAEhC,IAAI,GACL,GACD,GACL,CACT,CAAC;AACN,CAAC,CAAC;AA9DW,QAAA,YAAY,gBA8DvB","sourcesContent":["import * as React from 'react';\n\nimport {NavigationGithubButton, NavigationGithubButtonIcon} from '../../../../../models';\nimport {block} from '../../../../../utils';\nimport {NavigationItemProps} from '../../../../models';\n\nimport './GithubButton.scss';\n\nconst b = block('github-button');\n\ntype NavigationGithubButtonProps = NavigationItemProps & NavigationGithubButton;\n\nconst DEFAULT_LABEL = 'Stars on GitHub';\n\n/* More information about github-buttons in https://buttons.github.io/ */\nexport const GithubButton = ({\n text,\n url,\n className,\n label,\n size,\n icon,\n urlTitle,\n}: NavigationGithubButtonProps) => {\n const containerRef = React.useRef<HTMLSpanElement>(null);\n const linkRef = React.useRef<HTMLAnchorElement>(null);\n\n React.useEffect(() => {\n const paint = () => {\n if (containerRef.current) {\n const githubButton = containerRef.current.appendChild(\n document.createElement('span'),\n );\n import(/* webpackMode: \"eager\" */ 'github-buttons').then(({render}) => {\n if (linkRef.current !== null) {\n render(githubButton.appendChild(linkRef.current), (el) => {\n try {\n if (githubButton.parentNode) {\n githubButton.parentNode.replaceChild(el, githubButton);\n }\n } catch {}\n });\n }\n });\n }\n };\n\n const reset = () => {\n if (containerRef?.current?.lastChild && linkRef.current) {\n containerRef.current.replaceChild(linkRef.current, containerRef.current.lastChild);\n }\n };\n\n paint();\n\n return () => {\n reset();\n };\n }, []);\n\n return (\n <div className={b(null, className)}>\n <span ref={containerRef}>\n <a\n href={url}\n ref={linkRef}\n title={urlTitle}\n data-show-count=\"true\"\n aria-label={label || DEFAULT_LABEL}\n {...(icon && {'data-icon': NavigationGithubButtonIcon[icon]})}\n {...(size && {'data-size': size})}\n >\n {text}\n </a>\n </span>\n </div>\n );\n};\n"]}
@@ -7,7 +7,7 @@ exports.blockSchemas = {
7
7
  ...sub_blocks_1.Divider,
8
8
  ...blocks_1.ExtendedFeaturesBlock,
9
9
  ...blocks_1.PromoFeaturesBlock,
10
- ...blocks_1.SliderBlock,
10
+ ...blocks_1.SliderOldBlock,
11
11
  ...blocks_1.QuestionsBlock,
12
12
  ...blocks_1.FoldableListBlock,
13
13
  ...blocks_1.HeaderBlock,
@@ -25,7 +25,7 @@ exports.blockSchemas = {
25
25
  ...blocks_1.ShareBlock,
26
26
  ...blocks_1.FilterBlock,
27
27
  ...blocks_1.FormBlock,
28
- ...blocks_1.SliderNewBlock,
28
+ ...blocks_1.SliderBlock,
29
29
  };
30
30
  exports.cardSchemas = {
31
31
  ...sub_blocks_1.MediaCardBlock,
@@ -44,6 +44,8 @@ exports.constructorBlockSchemaNames = [
44
44
  'post',
45
45
  'extended-features-block',
46
46
  'promo-features-block',
47
+ /** @deprecated */
48
+ 'slider-old-block',
47
49
  'slider-block',
48
50
  'questions-block',
49
51
  'header-block',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"../../../src","sources":["schema/constants.ts"],"names":[],"mappings":";;;AAEA,mDAuB6B;AAC7B,2DASiC;AAEpB,QAAA,YAAY,GAA8B;IACnD,GAAG,oBAAO;IACV,GAAG,8BAAqB;IACxB,GAAG,2BAAkB;IACrB,GAAG,oBAAW;IACd,GAAG,uBAAc;IACjB,GAAG,0BAAiB;IACpB,GAAG,oBAAW;IACd,GAAG,oBAAW;IACd,GAAG,uBAAc;IACjB,GAAG,mBAAU;IACb,GAAG,iBAAQ;IACX,GAAG,kBAAS;IACZ,GAAG,mBAAU;IACb,GAAG,kBAAS;IACZ,GAAG,0BAAiB;IACpB,GAAG,mBAAU;IACb,GAAG,wBAAe;IAClB,GAAG,2BAAkB;IACrB,GAAG,mBAAU;IACb,GAAG,oBAAW;IACd,GAAG,kBAAS;IACZ,GAAG,uBAAc;CACpB,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,GAAG,2BAAc;IACjB,GAAG,mBAAU;IACb,GAAG,+BAAkB;IACrB,GAAG,2BAAc;IACjB,GAAG,kBAAK;IACR,GAAG,sBAAS;IACZ,GAAG,2BAAc;IACjB,GAAG,sBAAS;CACf,CAAC;AAEW,QAAA,2BAA2B,GAAG;IACvC,SAAS;IACT,OAAO;IACP,OAAO;IACP,MAAM;IACN,yBAAyB;IACzB,sBAAsB;IACtB,cAAc;IACd,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,aAAa;IACb,WAAW;IACX,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,kBAAkB;IAClB,gBAAgB;IAChB,qBAAqB;IACrB,wBAAwB;IACxB,aAAa;IACb,mBAAmB;IACnB,sBAAsB;IACtB,aAAa;IACb,cAAc;IACd,YAAY;CACf,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACtC,YAAY;IACZ,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,OAAO;IACP,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,YAAY;CACf,CAAC","sourcesContent":["import {BlockType} from '../models';\n\nimport {\n BannerBlock,\n BannerCard,\n CardLayoutBlock,\n CompaniesBlock,\n ContentLayoutBlock,\n ExtendedFeaturesBlock,\n FilterBlock,\n FoldableListBlock,\n FormBlock,\n HeaderBlock,\n HeaderSliderBlock,\n IconsBlock,\n InfoBlock,\n MapBlock,\n MediaBlock,\n PromoFeaturesBlock,\n QuestionsBlock,\n ShareBlock,\n SliderBlock,\n SliderNewBlock,\n TableBlock,\n TabsBlock,\n} from './validators/blocks';\nimport {\n BackgroundCard,\n BasicCard,\n Divider,\n ImageCard,\n MediaCardBlock,\n PriceCardBlock,\n PriceDetailedBlock,\n Quote,\n} from './validators/sub-blocks';\n\nexport const blockSchemas: Record<BlockType, object> = {\n ...Divider,\n ...ExtendedFeaturesBlock,\n ...PromoFeaturesBlock,\n ...SliderBlock,\n ...QuestionsBlock,\n ...FoldableListBlock,\n ...HeaderBlock,\n ...BannerBlock,\n ...CompaniesBlock,\n ...MediaBlock,\n ...MapBlock,\n ...InfoBlock,\n ...TableBlock,\n ...TabsBlock,\n ...HeaderSliderBlock,\n ...IconsBlock,\n ...CardLayoutBlock,\n ...ContentLayoutBlock,\n ...ShareBlock,\n ...FilterBlock,\n ...FormBlock,\n ...SliderNewBlock,\n};\n\nexport const cardSchemas = {\n ...MediaCardBlock,\n ...BannerCard,\n ...PriceDetailedBlock,\n ...BackgroundCard,\n ...Quote,\n ...BasicCard,\n ...PriceCardBlock,\n ...ImageCard,\n};\n\nexport const constructorBlockSchemaNames = [\n 'divider',\n 'quote',\n 'event',\n 'post',\n 'extended-features-block',\n 'promo-features-block',\n 'slider-block',\n 'questions-block',\n 'header-block',\n 'banner-block',\n 'companies-block',\n 'media-block',\n 'map-block',\n 'info-block',\n 'table-block',\n 'tabs-block',\n /** @deprecated */\n 'price-detailed',\n 'header-slider-block',\n 'cards-with-image-block',\n 'icons-block',\n 'card-layout-block',\n 'content-layout-block',\n 'share-block',\n 'filter-block',\n 'form-block',\n];\n\nexport const constructorCardSchemaNames = [\n 'media-card',\n 'banner-card',\n /** @deprecated */\n 'price-detailed',\n 'background-card',\n 'quote',\n 'basic-card',\n 'layout-item',\n 'price-card',\n 'image-card',\n];\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"../../../src","sources":["schema/constants.ts"],"names":[],"mappings":";;;AAEA,mDAuB6B;AAC7B,2DASiC;AAEpB,QAAA,YAAY,GAA8B;IACnD,GAAG,oBAAO;IACV,GAAG,8BAAqB;IACxB,GAAG,2BAAkB;IACrB,GAAG,uBAAc;IACjB,GAAG,uBAAc;IACjB,GAAG,0BAAiB;IACpB,GAAG,oBAAW;IACd,GAAG,oBAAW;IACd,GAAG,uBAAc;IACjB,GAAG,mBAAU;IACb,GAAG,iBAAQ;IACX,GAAG,kBAAS;IACZ,GAAG,mBAAU;IACb,GAAG,kBAAS;IACZ,GAAG,0BAAiB;IACpB,GAAG,mBAAU;IACb,GAAG,wBAAe;IAClB,GAAG,2BAAkB;IACrB,GAAG,mBAAU;IACb,GAAG,oBAAW;IACd,GAAG,kBAAS;IACZ,GAAG,oBAAW;CACjB,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,GAAG,2BAAc;IACjB,GAAG,mBAAU;IACb,GAAG,+BAAkB;IACrB,GAAG,2BAAc;IACjB,GAAG,kBAAK;IACR,GAAG,sBAAS;IACZ,GAAG,2BAAc;IACjB,GAAG,sBAAS;CACf,CAAC;AAEW,QAAA,2BAA2B,GAAG;IACvC,SAAS;IACT,OAAO;IACP,OAAO;IACP,MAAM;IACN,yBAAyB;IACzB,sBAAsB;IACtB,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,aAAa;IACb,WAAW;IACX,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,kBAAkB;IAClB,gBAAgB;IAChB,qBAAqB;IACrB,wBAAwB;IACxB,aAAa;IACb,mBAAmB;IACnB,sBAAsB;IACtB,aAAa;IACb,cAAc;IACd,YAAY;CACf,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACtC,YAAY;IACZ,aAAa;IACb,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,OAAO;IACP,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,YAAY;CACf,CAAC","sourcesContent":["import {BlockType} from '../models';\n\nimport {\n BannerBlock,\n BannerCard,\n CardLayoutBlock,\n CompaniesBlock,\n ContentLayoutBlock,\n ExtendedFeaturesBlock,\n FilterBlock,\n FoldableListBlock,\n FormBlock,\n HeaderBlock,\n HeaderSliderBlock,\n IconsBlock,\n InfoBlock,\n MapBlock,\n MediaBlock,\n PromoFeaturesBlock,\n QuestionsBlock,\n ShareBlock,\n SliderBlock,\n SliderOldBlock,\n TableBlock,\n TabsBlock,\n} from './validators/blocks';\nimport {\n BackgroundCard,\n BasicCard,\n Divider,\n ImageCard,\n MediaCardBlock,\n PriceCardBlock,\n PriceDetailedBlock,\n Quote,\n} from './validators/sub-blocks';\n\nexport const blockSchemas: Record<BlockType, object> = {\n ...Divider,\n ...ExtendedFeaturesBlock,\n ...PromoFeaturesBlock,\n ...SliderOldBlock,\n ...QuestionsBlock,\n ...FoldableListBlock,\n ...HeaderBlock,\n ...BannerBlock,\n ...CompaniesBlock,\n ...MediaBlock,\n ...MapBlock,\n ...InfoBlock,\n ...TableBlock,\n ...TabsBlock,\n ...HeaderSliderBlock,\n ...IconsBlock,\n ...CardLayoutBlock,\n ...ContentLayoutBlock,\n ...ShareBlock,\n ...FilterBlock,\n ...FormBlock,\n ...SliderBlock,\n};\n\nexport const cardSchemas = {\n ...MediaCardBlock,\n ...BannerCard,\n ...PriceDetailedBlock,\n ...BackgroundCard,\n ...Quote,\n ...BasicCard,\n ...PriceCardBlock,\n ...ImageCard,\n};\n\nexport const constructorBlockSchemaNames = [\n 'divider',\n 'quote',\n 'event',\n 'post',\n 'extended-features-block',\n 'promo-features-block',\n /** @deprecated */\n 'slider-old-block',\n 'slider-block',\n 'questions-block',\n 'header-block',\n 'banner-block',\n 'companies-block',\n 'media-block',\n 'map-block',\n 'info-block',\n 'table-block',\n 'tabs-block',\n /** @deprecated */\n 'price-detailed',\n 'header-slider-block',\n 'cards-with-image-block',\n 'icons-block',\n 'card-layout-block',\n 'content-layout-block',\n 'share-block',\n 'filter-block',\n 'form-block',\n];\n\nexport const constructorCardSchemaNames = [\n 'media-card',\n 'banner-card',\n /** @deprecated */\n 'price-detailed',\n 'background-card',\n 'quote',\n 'basic-card',\n 'layout-item',\n 'price-card',\n 'image-card',\n];\n"]}
@@ -9,6 +9,7 @@ export * from "../../blocks/Map/schema.js";
9
9
  export * from "../../blocks/Questions/schema.js";
10
10
  export * from "../../blocks/FoldableList/schema.js";
11
11
  export * from "../../blocks/Slider/schema.js";
12
+ export * from "../../blocks/SliderOld/schema.js";
12
13
  export * from "../../blocks/Table/schema.js";
13
14
  export * from "../../blocks/Tabs/schema.js";
14
15
  export * from "../../blocks/HeaderSlider/schema.js";
@@ -18,4 +19,4 @@ export * from "../../blocks/ContentLayout/schema.js";
18
19
  export * from "../../blocks/Share/schema.js";
19
20
  export * from "../../blocks/FilterBlock/schema.js";
20
21
  export * from "../../blocks/Form/schema.js";
21
- export * from "../../blocks/SliderNew/schema.js";
22
+ export * from "../../blocks/Slider/schema.js";
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("../../blocks/Map/schema.js"), exports);
12
12
  tslib_1.__exportStar(require("../../blocks/Questions/schema.js"), exports);
13
13
  tslib_1.__exportStar(require("../../blocks/FoldableList/schema.js"), exports);
14
14
  tslib_1.__exportStar(require("../../blocks/Slider/schema.js"), exports);
15
+ tslib_1.__exportStar(require("../../blocks/SliderOld/schema.js"), exports);
15
16
  tslib_1.__exportStar(require("../../blocks/Table/schema.js"), exports);
16
17
  tslib_1.__exportStar(require("../../blocks/Tabs/schema.js"), exports);
17
18
  tslib_1.__exportStar(require("../../blocks/HeaderSlider/schema.js"), exports);
@@ -21,5 +22,5 @@ tslib_1.__exportStar(require("../../blocks/ContentLayout/schema.js"), exports);
21
22
  tslib_1.__exportStar(require("../../blocks/Share/schema.js"), exports);
22
23
  tslib_1.__exportStar(require("../../blocks/FilterBlock/schema.js"), exports);
23
24
  tslib_1.__exportStar(require("../../blocks/Form/schema.js"), exports);
24
- tslib_1.__exportStar(require("../../blocks/SliderNew/schema.js"), exports);
25
+ tslib_1.__exportStar(require("../../blocks/Slider/schema.js"), exports);
25
26
  //# sourceMappingURL=blocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.js","sourceRoot":"../../../../src","sources":["schema/validators/blocks.ts"],"names":[],"mappings":";;;AAAA,wEAA2C;AAC3C,2EAA8C;AAC9C,kFAAqD;AACrD,oFAAuD;AACvD,wEAA2C;AAC3C,sEAAyC;AACzC,uEAA0C;AAC1C,qEAAwC;AACxC,2EAA8C;AAC9C,8EAAiD;AACjD,wEAA2C;AAC3C,uEAA0C;AAC1C,sEAAyC;AACzC,8EAAiD;AACjD,uEAA0C;AAC1C,4EAA+C;AAC/C,+EAAkD;AAClD,uEAA0C;AAC1C,6EAAgD;AAChD,sEAAyC;AACzC,2EAA8C","sourcesContent":["export * from '../../blocks/Banner/schema';\nexport * from '../../blocks/Companies/schema';\nexport * from '../../blocks/ExtendedFeatures/schema';\nexport * from '../../blocks/PromoFeaturesBlock/schema';\nexport * from '../../blocks/Header/schema';\nexport * from '../../blocks/Info/schema';\nexport * from '../../blocks/Media/schema';\nexport * from '../../blocks/Map/schema';\nexport * from '../../blocks/Questions/schema';\nexport * from '../../blocks/FoldableList/schema';\nexport * from '../../blocks/Slider/schema';\nexport * from '../../blocks/Table/schema';\nexport * from '../../blocks/Tabs/schema';\nexport * from '../../blocks/HeaderSlider/schema';\nexport * from '../../blocks/Icons/schema';\nexport * from '../../blocks/CardLayout/schema';\nexport * from '../../blocks/ContentLayout/schema';\nexport * from '../../blocks/Share/schema';\nexport * from '../../blocks/FilterBlock/schema';\nexport * from '../../blocks/Form/schema';\nexport * from '../../blocks/SliderNew/schema';\n"]}
1
+ {"version":3,"file":"blocks.js","sourceRoot":"../../../../src","sources":["schema/validators/blocks.ts"],"names":[],"mappings":";;;AAAA,wEAA2C;AAC3C,2EAA8C;AAC9C,kFAAqD;AACrD,oFAAuD;AACvD,wEAA2C;AAC3C,sEAAyC;AACzC,uEAA0C;AAC1C,qEAAwC;AACxC,2EAA8C;AAC9C,8EAAiD;AACjD,wEAA2C;AAC3C,2EAA8C;AAC9C,uEAA0C;AAC1C,sEAAyC;AACzC,8EAAiD;AACjD,uEAA0C;AAC1C,4EAA+C;AAC/C,+EAAkD;AAClD,uEAA0C;AAC1C,6EAAgD;AAChD,sEAAyC;AACzC,wEAA2C","sourcesContent":["export * from '../../blocks/Banner/schema';\nexport * from '../../blocks/Companies/schema';\nexport * from '../../blocks/ExtendedFeatures/schema';\nexport * from '../../blocks/PromoFeaturesBlock/schema';\nexport * from '../../blocks/Header/schema';\nexport * from '../../blocks/Info/schema';\nexport * from '../../blocks/Media/schema';\nexport * from '../../blocks/Map/schema';\nexport * from '../../blocks/Questions/schema';\nexport * from '../../blocks/FoldableList/schema';\nexport * from '../../blocks/Slider/schema';\nexport * from '../../blocks/SliderOld/schema';\nexport * from '../../blocks/Table/schema';\nexport * from '../../blocks/Tabs/schema';\nexport * from '../../blocks/HeaderSlider/schema';\nexport * from '../../blocks/Icons/schema';\nexport * from '../../blocks/CardLayout/schema';\nexport * from '../../blocks/ContentLayout/schema';\nexport * from '../../blocks/Share/schema';\nexport * from '../../blocks/FilterBlock/schema';\nexport * from '../../blocks/Form/schema';\nexport * from '../../blocks/Slider/schema';\n"]}
@@ -1,4 +1,4 @@
1
- .pc-banner-card__subtitle p, .pc-banner-card__subtitle, .pc-banner-card__title {
1
+ .pc-banner-card__subtitle.pc-banner-card__subtitle p, .pc-banner-card__subtitle.pc-banner-card__subtitle, .pc-banner-card__title.pc-banner-card__title {
2
2
  margin: 0;
3
3
  }
4
4
 
@@ -16,31 +16,35 @@ unpredictable css rules order in build */
16
16
  color: var(--g-color-text-light-primary);
17
17
  }
18
18
 
19
- .pc-banner-card__title {
19
+ .pc-banner-card__text {
20
+ max-width: 100%;
21
+ }
22
+ .pc-banner-card__title.pc-banner-card__title {
20
23
  font-size: var(--g-text-display-2-font-size);
21
24
  line-height: var(--g-text-display-2-line-height);
22
25
  color: var(--pc-text-header-color);
23
26
  font-weight: var(--g-text-accent-font-weight);
24
27
  }
25
28
  @media (max-width: 576px) {
26
- .pc-banner-card__title {
29
+ .pc-banner-card__title.pc-banner-card__title {
27
30
  font-size: var(--g-text-display-1-font-size);
28
31
  line-height: var(--g-text-display-1-line-height);
29
32
  }
30
33
  }
31
- .pc-banner-card__title a {
34
+ .pc-banner-card__title.pc-banner-card__title a {
32
35
  outline: none;
33
36
  color: var(--g-color-text-link);
34
37
  text-decoration: none;
35
38
  cursor: pointer;
36
39
  }
37
- .utilityfocus .pc-banner-card__title a:focus {
40
+ .utilityfocus .pc-banner-card__title.pc-banner-card__title a:focus {
38
41
  outline: 2px solid #ffdb4d;
39
42
  }
40
- .pc-banner-card__title a:hover, .pc-banner-card__title a:active {
43
+ .pc-banner-card__title.pc-banner-card__title a:hover, .pc-banner-card__title.pc-banner-card__title a:active {
41
44
  --pc-text-header-color: var(--g-color-text-link-hover);
42
45
  color: var(--g-color-text-link-hover);
43
46
  }
47
+
44
48
  .pc-banner-card__content {
45
49
  width: 100%;
46
50
  border-radius: var(--pc-border-radius);
@@ -56,8 +60,9 @@ unpredictable css rules order in build */
56
60
  justify-content: space-between;
57
61
  flex-direction: column;
58
62
  align-items: baseline;
63
+ max-width: 100%;
59
64
  }
60
- .pc-banner-card__subtitle {
65
+ .pc-banner-card__subtitle.pc-banner-card__subtitle {
61
66
  display: inline-block;
62
67
  margin-top: 8px;
63
68
  font-size: var(--g-text-body-3-font-size);
@@ -66,13 +71,14 @@ unpredictable css rules order in build */
66
71
  font-weight: var(--g-text-accent-font-weight);
67
72
  font-weight: normal;
68
73
  }
69
- .pc-banner-card__subtitle p {
74
+ .pc-banner-card__subtitle.pc-banner-card__subtitle p {
70
75
  font-size: var(--g-text-body-3-font-size);
71
76
  line-height: var(--g-text-body-3-line-height);
72
77
  color: var(--pc-text-header-color);
73
78
  font-weight: var(--g-text-accent-font-weight);
74
79
  font-weight: normal;
75
80
  }
81
+
76
82
  .pc-banner-card__button.pc-banner-card__button {
77
83
  margin-top: 28px;
78
84
  }
@@ -13,7 +13,9 @@ const BannerCard = (props) => {
13
13
  if (color) {
14
14
  contentStyle.backgroundColor = (0, utils_1.getThemedValue)(color, theme);
15
15
  }
16
- return ((0, jsx_runtime_1.jsx)("div", { className: b({ theme: textTheme, ['media-view']: mediaView }), children: (0, jsx_runtime_1.jsxs)("div", { className: b('content'), style: contentStyle, children: [(0, jsx_runtime_1.jsxs)("div", { className: b('info'), children: [(0, jsx_runtime_1.jsxs)("div", { className: b('text'), children: [(0, jsx_runtime_1.jsx)("h2", { className: b('title'), children: (0, jsx_runtime_1.jsx)(components_1.HTML, { children: title }) }), subtitle && ((0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { className: b('subtitle'), content: subtitle, modifiers: { constructor: true } }))] }), url && ((0, jsx_runtime_1.jsx)(components_1.RouterLink, { href: url, children: (0, jsx_runtime_1.jsx)(components_1.Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text ?? '', url: url, target: target }) }))] }), (0, jsx_runtime_1.jsx)(components_1.BackgroundImage, { className: b('image'), src: (0, utils_1.getThemedValue)(image, theme), disableCompress: disableCompress })] }) }));
16
+ return ((0, jsx_runtime_1.jsx)("div", { className: b({ theme: textTheme, ['media-view']: mediaView }), children: (0, jsx_runtime_1.jsxs)("div", { className: b('content'), style: contentStyle, children: [(0, jsx_runtime_1.jsxs)("div", { className: b('info'), children: [(0, jsx_runtime_1.jsxs)("div", { className: b('text'), children: [(0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { tagName: "h2", contentClassName: b('title'), content: title, modifiers: {
17
+ constructor: true,
18
+ } }), subtitle && ((0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { contentClassName: b('subtitle'), content: subtitle, modifiers: { constructor: true } }))] }), url && ((0, jsx_runtime_1.jsx)(components_1.RouterLink, { href: url, children: (0, jsx_runtime_1.jsx)(components_1.Button, { className: b('button'), theme: buttonTheme, size: "xl", text: text ?? '', url: url, target: target }) }))] }), (0, jsx_runtime_1.jsx)(components_1.BackgroundImage, { className: b('image'), src: (0, utils_1.getThemedValue)(image, theme), disableCompress: disableCompress })] }) }));
17
19
  };
18
20
  exports.BannerCard = BannerCard;
19
21
  exports.default = exports.BannerCard;
@@ -1 +1 @@
1
- {"version":3,"file":"BannerCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BannerCard/BannerCard.tsx"],"names":[],"mappings":";;;;AAAA,0DAAuF;AACvF,wDAA6C;AAE7C,gDAAkD;AAIlD,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,aAAa,CAAC,CAAC;AAExB,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EACF,KAAK,EACL,QAAQ,EACR,MAAM,EAAE,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,QAAQ,EAAC,GAAG,EAAE,EAC/D,KAAK,EACL,KAAK,EAAE,SAAS,GAAG,OAAO,EAC1B,KAAK,EACL,eAAe,EACf,SAAS,GAAG,MAAM,GACrB,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACzB,MAAM,YAAY,GAA2B,EAAE,CAAC;IAEhD,IAAI,KAAK,EAAE,CAAC;QACR,YAAY,CAAC,eAAe,GAAG,IAAA,sBAAc,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,CACH,gCAAK,SAAS,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAC,CAAC,YAC5D,iCAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,YAAY,aAC7C,iCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,iCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,+BAAI,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YACrB,uBAAC,iBAAI,cAAE,KAAK,GAAQ,GACnB,EACJ,QAAQ,IAAI,CACT,uBAAC,uBAAU,IACP,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,EACxB,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,GAChC,CACL,IACC,EAEL,GAAG,IAAI,CACJ,uBAAC,uBAAU,IAAC,IAAI,EAAE,GAAG,YACjB,uBAAC,mBAAM,IACH,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EACtB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAC,IAAI,EACT,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,GAChB,GACO,CAChB,IACC,EACN,uBAAC,4BAAe,IACZ,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EACrB,GAAG,EAAE,IAAA,sBAAc,EAAC,KAAK,EAAE,KAAK,CAAC,EACjC,eAAe,EAAE,eAAe,GAClC,IACA,GACJ,CACT,CAAC;AACN,CAAC,CAAC;AAxDW,QAAA,UAAU,cAwDrB;AAEF,kBAAe,kBAAU,CAAC","sourcesContent":["import {BackgroundImage, Button, HTML, RouterLink, YFMWrapper} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {BannerCardProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './BannerCard.scss';\n\nconst b = block('banner-card');\n\nexport const BannerCard = (props: BannerCardProps) => {\n const {\n title,\n subtitle,\n button: {url, text, target, theme: buttonTheme = 'raised'} = {},\n color,\n theme: textTheme = 'light',\n image,\n disableCompress,\n mediaView = 'full',\n } = props;\n const theme = useTheme();\n const contentStyle: Record<string, string> = {};\n\n if (color) {\n contentStyle.backgroundColor = getThemedValue(color, theme);\n }\n\n return (\n <div className={b({theme: textTheme, ['media-view']: mediaView})}>\n <div className={b('content')} style={contentStyle}>\n <div className={b('info')}>\n <div className={b('text')}>\n <h2 className={b('title')}>\n <HTML>{title}</HTML>\n </h2>\n {subtitle && (\n <YFMWrapper\n className={b('subtitle')}\n content={subtitle}\n modifiers={{constructor: true}}\n />\n )}\n </div>\n\n {url && (\n <RouterLink href={url}>\n <Button\n className={b('button')}\n theme={buttonTheme}\n size=\"xl\"\n text={text ?? ''}\n url={url}\n target={target}\n />\n </RouterLink>\n )}\n </div>\n <BackgroundImage\n className={b('image')}\n src={getThemedValue(image, theme)}\n disableCompress={disableCompress}\n />\n </div>\n </div>\n );\n};\n\nexport default BannerCard;\n"]}
1
+ {"version":3,"file":"BannerCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/BannerCard/BannerCard.tsx"],"names":[],"mappings":";;;;AAAA,0DAAiF;AACjF,wDAA6C;AAE7C,gDAAkD;AAIlD,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,aAAa,CAAC,CAAC;AAExB,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EACF,KAAK,EACL,QAAQ,EACR,MAAM,EAAE,EAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,QAAQ,EAAC,GAAG,EAAE,EAC/D,KAAK,EACL,KAAK,EAAE,SAAS,GAAG,OAAO,EAC1B,KAAK,EACL,eAAe,EACf,SAAS,GAAG,MAAM,GACrB,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACzB,MAAM,YAAY,GAA2B,EAAE,CAAC;IAEhD,IAAI,KAAK,EAAE,CAAC;QACR,YAAY,CAAC,eAAe,GAAG,IAAA,sBAAc,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,CACH,gCAAK,SAAS,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAC,CAAC,YAC5D,iCAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,YAAY,aAC7C,iCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,iCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,uBAAC,uBAAU,IACP,OAAO,EAAC,IAAI,EACZ,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,EAC5B,OAAO,EAAE,KAAK,EACd,SAAS,EAAE;wCACP,WAAW,EAAE,IAAI;qCACpB,GACH,EACD,QAAQ,IAAI,CACT,uBAAC,uBAAU,IACP,gBAAgB,EAAE,CAAC,CAAC,UAAU,CAAC,EAC/B,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,GAChC,CACL,IACC,EAEL,GAAG,IAAI,CACJ,uBAAC,uBAAU,IAAC,IAAI,EAAE,GAAG,YACjB,uBAAC,mBAAM,IACH,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EACtB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAC,IAAI,EACT,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,GAChB,GACO,CAChB,IACC,EACN,uBAAC,4BAAe,IACZ,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EACrB,GAAG,EAAE,IAAA,sBAAc,EAAC,KAAK,EAAE,KAAK,CAAC,EACjC,eAAe,EAAE,eAAe,GAClC,IACA,GACJ,CACT,CAAC;AACN,CAAC,CAAC;AA7DW,QAAA,UAAU,cA6DrB;AAEF,kBAAe,kBAAU,CAAC","sourcesContent":["import {BackgroundImage, Button, RouterLink, YFMWrapper} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {BannerCardProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './BannerCard.scss';\n\nconst b = block('banner-card');\n\nexport const BannerCard = (props: BannerCardProps) => {\n const {\n title,\n subtitle,\n button: {url, text, target, theme: buttonTheme = 'raised'} = {},\n color,\n theme: textTheme = 'light',\n image,\n disableCompress,\n mediaView = 'full',\n } = props;\n const theme = useTheme();\n const contentStyle: Record<string, string> = {};\n\n if (color) {\n contentStyle.backgroundColor = getThemedValue(color, theme);\n }\n\n return (\n <div className={b({theme: textTheme, ['media-view']: mediaView})}>\n <div className={b('content')} style={contentStyle}>\n <div className={b('info')}>\n <div className={b('text')}>\n <YFMWrapper\n tagName=\"h2\"\n contentClassName={b('title')}\n content={title}\n modifiers={{\n constructor: true,\n }}\n />\n {subtitle && (\n <YFMWrapper\n contentClassName={b('subtitle')}\n content={subtitle}\n modifiers={{constructor: true}}\n />\n )}\n </div>\n\n {url && (\n <RouterLink href={url}>\n <Button\n className={b('button')}\n theme={buttonTheme}\n size=\"xl\"\n text={text ?? ''}\n url={url}\n target={target}\n />\n </RouterLink>\n )}\n </div>\n <BackgroundImage\n className={b('image')}\n src={getThemedValue(image, theme)}\n disableCompress={disableCompress}\n />\n </div>\n </div>\n );\n};\n\nexport default BannerCard;\n"]}
@@ -128,73 +128,75 @@ unpredictable css rules order in build */
128
128
  .pc-content_size_l .pc-content__buttons {
129
129
  margin-top: 24px;
130
130
  }
131
- .pc-content_theme_dark {
131
+ .pc-content_theme_dark.pc-content_theme_dark {
132
132
  --g-color-line-focus: var(--pc-color-line-focus-dark);
133
133
  }
134
- .pc-content_theme_dark .pc-content__title *,
135
- .pc-content_theme_dark .pc-content__text .yfm,
136
- .pc-content_theme_dark .pc-content__text .yfm *,
137
- .pc-content_theme_dark .pc-content__links a {
134
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__title *,
135
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm,
136
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm *,
137
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__links a {
138
138
  color: var(--g-color-text-light-primary);
139
139
  }
140
- .pc-content_theme_dark .pc-content__notice .yfm,
141
- .pc-content_theme_dark .pc-content__notice .yfm * {
140
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm,
141
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm * {
142
142
  color: var(--g-color-text-light-secondary);
143
143
  }
144
- .pc-content_theme_dark .pc-content__notice .yfm a {
144
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a {
145
145
  color: var(--g-color-text-light-secondary);
146
146
  text-decoration: underline;
147
147
  }
148
- .pc-content_theme_dark .pc-content__notice .yfm a:hover {
148
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a:hover {
149
149
  color: var(--g-color-text-light-primary);
150
150
  }
151
- .pc-content_theme_dark .pc-content__text .yfm a {
151
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a {
152
152
  color: var(--g-color-text-light-primary);
153
153
  text-decoration: underline;
154
154
  }
155
- .pc-content_theme_dark .pc-content__text .yfm a:hover {
155
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a:hover {
156
156
  color: var(--g-color-text-light-secondary);
157
157
  }
158
- .pc-content_theme_dark .pc-content__title a {
158
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__title a {
159
159
  color: var(--g-color-text-light-primary);
160
160
  text-decoration: underline;
161
161
  text-decoration: none;
162
162
  }
163
- .pc-content_theme_dark .pc-content__title a:hover {
163
+ .pc-content_theme_dark.pc-content_theme_dark .pc-content__title a:hover {
164
164
  color: var(--g-color-text-light-secondary);
165
165
  }
166
- .pc-content_theme_light .pc-content__title *,
167
- .pc-content_theme_light .pc-content__text .yfm,
168
- .pc-content_theme_light .pc-content__text .yfm *,
169
- .pc-content_theme_light .pc-content__links a {
166
+
167
+ .pc-content_theme_light.pc-content_theme_light .pc-content__title *,
168
+ .pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm,
169
+ .pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm *,
170
+ .pc-content_theme_light.pc-content_theme_light .pc-content__links a {
170
171
  color: var(--g-color-text-dark-primary);
171
172
  }
172
- .pc-content_theme_light .pc-content__notice .yfm,
173
- .pc-content_theme_light .pc-content__notice .yfm * {
173
+ .pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm,
174
+ .pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm * {
174
175
  color: var(--g-color-text-dark-secondary);
175
176
  }
176
- .pc-content_theme_light .pc-content__notice .yfm a {
177
+ .pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a {
177
178
  color: var(--g-color-text-dark-secondary);
178
179
  text-decoration: underline;
179
180
  }
180
- .pc-content_theme_light .pc-content__notice .yfm a:hover {
181
+ .pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a:hover {
181
182
  color: var(--g-color-text-dark-primary);
182
183
  }
183
- .pc-content_theme_light .pc-content__text .yfm a {
184
+ .pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a {
184
185
  color: var(--g-color-text-dark-primary);
185
186
  text-decoration: underline;
186
187
  }
187
- .pc-content_theme_light .pc-content__text .yfm a:hover {
188
+ .pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a:hover {
188
189
  color: var(--g-color-text-dark-secondary);
189
190
  }
190
- .pc-content_theme_light .pc-content__title a {
191
+ .pc-content_theme_light.pc-content_theme_light .pc-content__title a {
191
192
  color: var(--g-color-text-dark-primary);
192
193
  text-decoration: underline;
193
194
  text-decoration: none;
194
195
  }
195
- .pc-content_theme_light .pc-content__title a:hover {
196
+ .pc-content_theme_light.pc-content_theme_light .pc-content__title a:hover {
196
197
  color: var(--g-color-text-dark-secondary);
197
198
  }
199
+
198
200
  .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__links),
199
201
  .pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__buttons),
200
202
  .pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__links),
@@ -27,7 +27,7 @@ const Content = (props) => {
27
27
  const hasTitle = Boolean(title);
28
28
  const defaultTitleId = (0, uikit_1.useUniqId)();
29
29
  const titleId = titleIdFromProps || defaultTitleId;
30
- return ((0, jsx_runtime_1.jsxs)(grid_1.Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && ((0, jsx_runtime_1.jsx)(components_1.Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && ((0, jsx_runtime_1.jsx)("div", { className: b('text', { ['without-title']: !hasTitle }), children: (0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId }) })), list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: b('list'), children: (0, jsx_runtime_1.jsx)(components_1.ContentList, { list: list, size: size, qa: qaAttributes.list, theme: theme }) })) : null, additionalInfo && ((0, jsx_runtime_1.jsx)("div", { className: b('notice'), children: (0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { content: additionalInfo, modifiers: {
30
+ return ((0, jsx_runtime_1.jsxs)(grid_1.Col, { className: b({ size, centered, theme, 'control-position': controlPosition }, className), reset: true, sizes: colSizes, qa: qaAttributes.container, children: [title && ((0, jsx_runtime_1.jsx)(components_1.Title, { className: b('title'), title: titleProps, colSizes: { all: 12 }, id: titleId })), text && ((0, jsx_runtime_1.jsx)("div", { className: b('text', { ['without-title']: !hasTitle }), children: (0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { content: text, modifiers: { constructor: true, [`constructor-size-${size}`]: true }, id: textId, qa: qaAttributes.list }) })), list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: b('list'), children: (0, jsx_runtime_1.jsx)(components_1.ContentList, { list: list, size: size, qa: qaAttributes.list, theme: theme }) })) : null, additionalInfo && ((0, jsx_runtime_1.jsx)("div", { className: b('notice'), children: (0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { content: additionalInfo, modifiers: {
31
31
  constructor: true,
32
32
  'constructor-notice': true,
33
33
  [`constructor-size-${size}`]: true,
@@ -1 +1 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/Content.tsx"],"names":[],"mappings":"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","sourcesContent":["import {useUniqId} from '@gravity-ui/uikit';\n\nimport {Buttons, ContentList, Links, Title, YFMWrapper} from '../../components';\nimport {Col} from '../../grid';\nimport {\n ClassNameProps,\n ContentBlockProps,\n ContentSize,\n TextSize,\n TitleItemProps,\n} from '../../models';\nimport {QAProps} from '../../models/common';\nimport {block} from '../../utils';\nimport {getQaAttrubutes} from '../../utils/blocks';\n\nimport './Content.scss';\n\nconst b = block('content');\n\nfunction getTextSize(size: ContentSize): TextSize {\n switch (size) {\n case 's':\n return 's';\n case 'm':\n return 'sm';\n case 'l':\n default:\n return 'm';\n }\n}\n\nexport type ContentProps = ContentBlockProps & ClassNameProps & QAProps;\n\nconst Content = (props: ContentProps) => {\n const {\n title,\n titleId: titleIdFromProps,\n text,\n textId,\n additionalInfo,\n size = 'l',\n links,\n buttons,\n colSizes = {all: 12, sm: 8},\n centered,\n theme,\n className,\n list,\n qa,\n controlPosition,\n } = props;\n const qaAttributes = getQaAttrubutes(qa, ['links', 'link', 'buttons', 'button', 'list']);\n\n const titleProps =\n !title || typeof title === 'string'\n ? ({text: title, textSize: getTextSize(size)} as TitleItemProps)\n : title;\n\n const hasTitle = Boolean(title);\n const defaultTitleId = useUniqId();\n const titleId = titleIdFromProps || defaultTitleId;\n\n return (\n <Col\n className={b({size, centered, theme, 'control-position': controlPosition}, className)}\n reset\n sizes={colSizes}\n qa={qaAttributes.container}\n >\n {title && (\n <Title\n className={b('title')}\n title={titleProps}\n colSizes={{all: 12}}\n id={titleId}\n />\n )}\n {text && (\n <div className={b('text', {['without-title']: !hasTitle})}>\n <YFMWrapper\n content={text}\n modifiers={{constructor: true, [`constructor-size-${size}`]: true}}\n id={textId}\n />\n </div>\n )}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList list={list} size={size} qa={qaAttributes.list} theme={theme} />\n </div>\n ) : null}\n {additionalInfo && (\n <div className={b('notice')}>\n <YFMWrapper\n content={additionalInfo}\n modifiers={{\n constructor: true,\n 'constructor-notice': true,\n [`constructor-size-${size}`]: true,\n }}\n />\n </div>\n )}\n {links && (\n <Links\n className={b('links', {size})}\n size={size}\n links={links}\n titleId={titleId}\n qa={qaAttributes.links}\n linkQa={qaAttributes.link}\n />\n )}\n {buttons && (\n <Buttons\n className={b('buttons', {size})}\n size={size}\n buttons={buttons}\n titleId={titleId}\n qa={qaAttributes.buttons}\n buttonQa={qaAttributes.button}\n />\n )}\n </Col>\n );\n};\n\nexport default Content;\n"]}
1
+ {"version":3,"file":"Content.js","sourceRoot":"../../../../src","sources":["sub-blocks/Content/Content.tsx"],"names":[],"mappings":"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","sourcesContent":["import {useUniqId} from '@gravity-ui/uikit';\n\nimport {Buttons, ContentList, Links, Title, YFMWrapper} from '../../components';\nimport {Col} from '../../grid';\nimport {\n ClassNameProps,\n ContentBlockProps,\n ContentSize,\n TextSize,\n TitleItemProps,\n} from '../../models';\nimport {QAProps} from '../../models/common';\nimport {block} from '../../utils';\nimport {getQaAttrubutes} from '../../utils/blocks';\n\nimport './Content.scss';\n\nconst b = block('content');\n\nfunction getTextSize(size: ContentSize): TextSize {\n switch (size) {\n case 's':\n return 's';\n case 'm':\n return 'sm';\n case 'l':\n default:\n return 'm';\n }\n}\n\nexport type ContentProps = ContentBlockProps & ClassNameProps & QAProps;\n\nconst Content = (props: ContentProps) => {\n const {\n title,\n titleId: titleIdFromProps,\n text,\n textId,\n additionalInfo,\n size = 'l',\n links,\n buttons,\n colSizes = {all: 12, sm: 8},\n centered,\n theme,\n className,\n list,\n qa,\n controlPosition,\n } = props;\n const qaAttributes = getQaAttrubutes(qa, ['links', 'link', 'buttons', 'button', 'list']);\n\n const titleProps =\n !title || typeof title === 'string'\n ? ({text: title, textSize: getTextSize(size)} as TitleItemProps)\n : title;\n\n const hasTitle = Boolean(title);\n const defaultTitleId = useUniqId();\n const titleId = titleIdFromProps || defaultTitleId;\n\n return (\n <Col\n className={b({size, centered, theme, 'control-position': controlPosition}, className)}\n reset\n sizes={colSizes}\n qa={qaAttributes.container}\n >\n {title && (\n <Title\n className={b('title')}\n title={titleProps}\n colSizes={{all: 12}}\n id={titleId}\n />\n )}\n {text && (\n <div className={b('text', {['without-title']: !hasTitle})}>\n <YFMWrapper\n content={text}\n modifiers={{constructor: true, [`constructor-size-${size}`]: true}}\n id={textId}\n qa={qaAttributes.list}\n />\n </div>\n )}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList list={list} size={size} qa={qaAttributes.list} theme={theme} />\n </div>\n ) : null}\n {additionalInfo && (\n <div className={b('notice')}>\n <YFMWrapper\n content={additionalInfo}\n modifiers={{\n constructor: true,\n 'constructor-notice': true,\n [`constructor-size-${size}`]: true,\n }}\n />\n </div>\n )}\n {links && (\n <Links\n className={b('links', {size})}\n size={size}\n links={links}\n titleId={titleId}\n qa={qaAttributes.links}\n linkQa={qaAttributes.link}\n />\n )}\n {buttons && (\n <Buttons\n className={b('buttons', {size})}\n size={size}\n buttons={buttons}\n titleId={titleId}\n qa={qaAttributes.buttons}\n buttonQa={qaAttributes.button}\n />\n )}\n </Col>\n );\n};\n\nexport default Content;\n"]}
@@ -47,11 +47,12 @@ unpredictable css rules order in build */
47
47
  .pc-price-card__content_theme_light .pc-price-card__info a:hover {
48
48
  color: var(--g-color-text-dark-secondary);
49
49
  }
50
- .pc-price-card__title {
50
+ .pc-price-card__title.pc-price-card__title {
51
51
  font-size: var(--g-text-subheader-3-font-size);
52
52
  line-height: var(--g-text-subheader-3-line-height);
53
53
  margin-bottom: 24px;
54
54
  }
55
+
55
56
  .pc-price-card__price {
56
57
  margin-bottom: 24px;
57
58
  }
@@ -7,7 +7,7 @@ const utils_1 = require("../../utils/index.js");
7
7
  const b = (0, utils_1.block)('price-card');
8
8
  const PriceCard = (props) => {
9
9
  const { border, title, price, pricePeriod, priceDetails, theme, description, list, buttons, links, backgroundColor, } = props;
10
- return ((0, jsx_runtime_1.jsx)(components_1.CardBase, { className: b({ theme }), border: border, children: (0, jsx_runtime_1.jsxs)(components_1.CardBase.Content, { children: [(0, jsx_runtime_1.jsx)(components_1.BackgroundImage, { className: b('background'), style: { backgroundColor } }), (0, jsx_runtime_1.jsxs)("div", { className: b('content', { theme }), children: [(0, jsx_runtime_1.jsxs)("div", { className: b('info'), children: [(0, jsx_runtime_1.jsx)(components_1.HTML, { className: b('title'), children: title }), (0, jsx_runtime_1.jsxs)("div", { className: b('price'), children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("span", { className: b('price-value'), children: price }), pricePeriod && ((0, jsx_runtime_1.jsxs)("span", { className: b('price-period'), children: ["/ ", pricePeriod] }))] }), priceDetails && ((0, jsx_runtime_1.jsx)("div", { className: b('price-details'), children: priceDetails }))] }), description && (0, jsx_runtime_1.jsx)("div", { className: b('description'), children: description }), list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: b('list'), children: (0, jsx_runtime_1.jsx)(components_1.ContentList, { list: list.map((item) => ({
10
+ return ((0, jsx_runtime_1.jsx)(components_1.CardBase, { className: b({ theme }), border: border, children: (0, jsx_runtime_1.jsxs)(components_1.CardBase.Content, { children: [(0, jsx_runtime_1.jsx)(components_1.BackgroundImage, { className: b('background'), style: { backgroundColor } }), (0, jsx_runtime_1.jsxs)("div", { className: b('content', { theme }), children: [(0, jsx_runtime_1.jsxs)("div", { className: b('info'), children: [(0, jsx_runtime_1.jsx)(components_1.YFMWrapper, { content: title, contentClassName: b('title'), onlyContent: true, modifiers: { constructor: true } }), (0, jsx_runtime_1.jsxs)("div", { className: b('price'), children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("span", { className: b('price-value'), children: price }), pricePeriod && ((0, jsx_runtime_1.jsxs)("span", { className: b('price-period'), children: ["/ ", pricePeriod] }))] }), priceDetails && ((0, jsx_runtime_1.jsx)("div", { className: b('price-details'), children: priceDetails }))] }), description && (0, jsx_runtime_1.jsx)("div", { className: b('description'), children: description }), list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: b('list'), children: (0, jsx_runtime_1.jsx)(components_1.ContentList, { list: list.map((item) => ({
11
11
  icon: icons_1.Check,
12
12
  text: item,
13
13
  })), size: "s" }) })) : null] }), (0, jsx_runtime_1.jsx)(components_1.Buttons, { className: b('buttons'), buttons: buttons, size: "s" }), (0, jsx_runtime_1.jsx)(components_1.Links, { className: b('links'), links: links, size: "s" })] })] }, "content") }));
@@ -1 +1 @@
1
- {"version":3,"file":"PriceCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceCard/PriceCard.tsx"],"names":[],"mappings":";;;AAAA,6CAAwC;AAExC,0DAA8F;AAE9F,gDAAkC;AAIlC,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,YAAY,CAAC,CAAC;AAE9B,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxC,MAAM,EACF,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,KAAK,EACL,WAAW,EACX,IAAI,EACJ,OAAO,EACP,KAAK,EACL,eAAe,GAClB,GAAG,KAAK,CAAC;IACV,OAAO,CACH,uBAAC,qBAAQ,IAAC,SAAS,EAAE,CAAC,CAAC,EAAC,KAAK,EAAC,CAAC,EAAE,MAAM,EAAE,MAAM,YAC3C,wBAAC,qBAAQ,CAAC,OAAO,eACb,uBAAC,4BAAe,IAAC,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,EAAC,eAAe,EAAC,GAAI,EACzE,iCAAK,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,KAAK,EAAC,CAAC,aACjC,iCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,uBAAC,iBAAI,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAG,KAAK,GAAQ,EAC3C,iCAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aACtB,4CACI,iCAAM,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAAG,KAAK,GAAQ,EAChD,WAAW,IAAI,CACZ,kCAAM,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,mBAAK,WAAW,IAAQ,CAC7D,IACC,EACL,YAAY,IAAI,CACb,gCAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAAG,YAAY,GAAO,CAC3D,IACC,EACL,WAAW,IAAI,gCAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAAG,WAAW,GAAO,EACpE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACZ,gCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACrB,uBAAC,wBAAW,IACR,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;4CACtB,IAAI,EAAE,aAAK;4CACX,IAAI,EAAE,IAAI;yCACb,CAAC,CAAC,EACH,IAAI,EAAC,GAAG,GACV,GACA,CACT,CAAC,CAAC,CAAC,IAAI,IACN,EACN,uBAAC,oBAAO,IAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,GAAG,GAAG,EAC/D,uBAAC,kBAAK,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,GAAG,GAAG,IACrD,KA/BY,SAAS,CAgCZ,GACZ,CACd,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["import {Check} from '@gravity-ui/icons';\n\nimport {BackgroundImage, Buttons, CardBase, ContentList, HTML, Links} from '../../components';\nimport {PriceCardProps} from '../../models';\nimport {block} from '../../utils';\n\nimport './PriceCard.scss';\n\nconst b = block('price-card');\n\nconst PriceCard = (props: PriceCardProps) => {\n const {\n border,\n title,\n price,\n pricePeriod,\n priceDetails,\n theme,\n description,\n list,\n buttons,\n links,\n backgroundColor,\n } = props;\n return (\n <CardBase className={b({theme})} border={border}>\n <CardBase.Content key=\"content\">\n <BackgroundImage className={b('background')} style={{backgroundColor}} />\n <div className={b('content', {theme})}>\n <div className={b('info')}>\n <HTML className={b('title')}>{title}</HTML>\n <div className={b('price')}>\n <div>\n <span className={b('price-value')}>{price}</span>\n {pricePeriod && (\n <span className={b('price-period')}>/ {pricePeriod}</span>\n )}\n </div>\n {priceDetails && (\n <div className={b('price-details')}>{priceDetails}</div>\n )}\n </div>\n {description && <div className={b('description')}>{description}</div>}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList\n list={list.map((item) => ({\n icon: Check,\n text: item,\n }))}\n size=\"s\"\n />\n </div>\n ) : null}\n </div>\n <Buttons className={b('buttons')} buttons={buttons} size=\"s\" />\n <Links className={b('links')} links={links} size=\"s\" />\n </div>\n </CardBase.Content>\n </CardBase>\n );\n};\n\nexport default PriceCard;\n"]}
1
+ {"version":3,"file":"PriceCard.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceCard/PriceCard.tsx"],"names":[],"mappings":";;;AAAA,6CAAwC;AAExC,0DAAoG;AAEpG,gDAAkC;AAIlC,MAAM,CAAC,GAAG,IAAA,aAAK,EAAC,YAAY,CAAC,CAAC;AAE9B,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxC,MAAM,EACF,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,KAAK,EACL,WAAW,EACX,IAAI,EACJ,OAAO,EACP,KAAK,EACL,eAAe,GAClB,GAAG,KAAK,CAAC;IACV,OAAO,CACH,uBAAC,qBAAQ,IAAC,SAAS,EAAE,CAAC,CAAC,EAAC,KAAK,EAAC,CAAC,EAAE,MAAM,EAAE,MAAM,YAC3C,wBAAC,qBAAQ,CAAC,OAAO,eACb,uBAAC,4BAAe,IAAC,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,EAAC,eAAe,EAAC,GAAI,EACzE,iCAAK,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,KAAK,EAAC,CAAC,aACjC,iCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,uBAAC,uBAAU,IACP,OAAO,EAAE,KAAK,EACd,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,EAC5B,WAAW,QACX,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,GAChC,EACF,iCAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aACtB,4CACI,iCAAM,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAAG,KAAK,GAAQ,EAChD,WAAW,IAAI,CACZ,kCAAM,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,mBAAK,WAAW,IAAQ,CAC7D,IACC,EACL,YAAY,IAAI,CACb,gCAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAAG,YAAY,GAAO,CAC3D,IACC,EACL,WAAW,IAAI,gCAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAAG,WAAW,GAAO,EACpE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACZ,gCAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACrB,uBAAC,wBAAW,IACR,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;4CACtB,IAAI,EAAE,aAAK;4CACX,IAAI,EAAE,IAAI;yCACb,CAAC,CAAC,EACH,IAAI,EAAC,GAAG,GACV,GACA,CACT,CAAC,CAAC,CAAC,IAAI,IACN,EACN,uBAAC,oBAAO,IAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,GAAG,GAAG,EAC/D,uBAAC,kBAAK,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,GAAG,GAAG,IACrD,KApCY,SAAS,CAqCZ,GACZ,CACd,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["import {Check} from '@gravity-ui/icons';\n\nimport {BackgroundImage, Buttons, CardBase, ContentList, Links, YFMWrapper} from '../../components';\nimport {PriceCardProps} from '../../models';\nimport {block} from '../../utils';\n\nimport './PriceCard.scss';\n\nconst b = block('price-card');\n\nconst PriceCard = (props: PriceCardProps) => {\n const {\n border,\n title,\n price,\n pricePeriod,\n priceDetails,\n theme,\n description,\n list,\n buttons,\n links,\n backgroundColor,\n } = props;\n return (\n <CardBase className={b({theme})} border={border}>\n <CardBase.Content key=\"content\">\n <BackgroundImage className={b('background')} style={{backgroundColor}} />\n <div className={b('content', {theme})}>\n <div className={b('info')}>\n <YFMWrapper\n content={title}\n contentClassName={b('title')}\n onlyContent\n modifiers={{constructor: true}}\n />\n <div className={b('price')}>\n <div>\n <span className={b('price-value')}>{price}</span>\n {pricePeriod && (\n <span className={b('price-period')}>/ {pricePeriod}</span>\n )}\n </div>\n {priceDetails && (\n <div className={b('price-details')}>{priceDetails}</div>\n )}\n </div>\n {description && <div className={b('description')}>{description}</div>}\n {list?.length ? (\n <div className={b('list')}>\n <ContentList\n list={list.map((item) => ({\n icon: Check,\n text: item,\n }))}\n size=\"s\"\n />\n </div>\n ) : null}\n </div>\n <Buttons className={b('buttons')} buttons={buttons} size=\"s\" />\n <Links className={b('links')} links={links} size=\"s\" />\n </div>\n </CardBase.Content>\n </CardBase>\n );\n};\n\nexport default PriceCard;\n"]}
@@ -63,22 +63,26 @@ unpredictable css rules order in build */
63
63
  font-size: var(--g-text-body-3-font-size);
64
64
  line-height: var(--g-text-body-3-line-height);
65
65
  }
66
- .pc-quote__content_quote-type_chevron::before {
66
+ .pc-quote__content_quote-type_chevron.pc-quote__content_quote-type_chevron::before {
67
67
  position: absolute;
68
68
  left: -10px;
69
69
  content: "«";
70
70
  }
71
- .pc-quote__content_quote-type_chevron .pc-quote__text::after {
71
+ .pc-quote__content_quote-type_chevron.pc-quote__content_quote-type_chevron .pc-quote__text::after {
72
72
  content: "»";
73
+ left: auto;
73
74
  }
74
- .pc-quote__content_quote-type_english-double::before {
75
+
76
+ .pc-quote__content_quote-type_english-double.pc-quote__content_quote-type_english-double::before {
75
77
  position: absolute;
76
78
  left: -8px;
77
79
  content: "“";
78
80
  }
79
- .pc-quote__content_quote-type_english-double .pc-quote__text::after {
81
+ .pc-quote__content_quote-type_english-double.pc-quote__content_quote-type_english-double .pc-quote__text::after {
80
82
  content: "”";
83
+ left: auto;
81
84
  }
85
+
82
86
  .pc-quote__content .yfm {
83
87
  font-size: var(--g-text-body-3-font-size);
84
88
  line-height: var(--g-text-body-3-line-height);