@gravity-ui/page-constructor 3.16.0 → 4.0.0

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 (283) hide show
  1. package/README.md +1 -1
  2. package/build/cjs/blocks/Companies/Companies.css +5 -5
  3. package/build/cjs/blocks/Companies/Companies.js +3 -3
  4. package/build/cjs/blocks/ContentLayout/ContentLayout.css +4 -4
  5. package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -3
  6. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
  7. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
  8. package/build/cjs/blocks/Header/Header.css +22 -22
  9. package/build/cjs/blocks/Header/Header.js +2 -2
  10. package/build/cjs/blocks/Icons/Icons.css +2 -2
  11. package/build/cjs/blocks/Info/Info.css +1 -1
  12. package/build/cjs/blocks/Info/Info.js +3 -3
  13. package/build/cjs/blocks/Media/Media.js +2 -2
  14. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
  15. package/build/cjs/blocks/Questions/Questions.css +12 -12
  16. package/build/cjs/blocks/Share/Share.css +14 -12
  17. package/build/cjs/blocks/Slider/Arrow/Arrow.css +4 -4
  18. package/build/cjs/blocks/Slider/Slider.css +10 -10
  19. package/build/cjs/blocks/Table/Table.css +5 -5
  20. package/build/cjs/blocks/Tabs/Tabs.css +6 -6
  21. package/build/cjs/blocks/Tabs/Tabs.js +2 -2
  22. package/build/cjs/components/Anchor/Anchor.d.ts +2 -3
  23. package/build/cjs/components/AnimateBlock/AnimateBlock.d.ts +2 -3
  24. package/build/cjs/components/Author/Author.css +8 -8
  25. package/build/cjs/components/Author/Author.js +2 -2
  26. package/build/cjs/components/BlockBase/BlockBase.d.ts +2 -2
  27. package/build/cjs/components/BlockBase/BlockBase.js +1 -1
  28. package/build/cjs/components/Button/Button.css +4 -0
  29. package/build/cjs/components/Button/Button.d.ts +2 -3
  30. package/build/cjs/components/Button/Button.js +3 -2
  31. package/build/cjs/components/ButtonTabs/ButtonTabs.css +4 -0
  32. package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +2 -3
  33. package/build/cjs/components/CardBase/CardBase.css +6 -6
  34. package/build/cjs/components/Control/Control.css +9 -9
  35. package/build/cjs/components/ErrorWrapper/ErrorWrapper.css +3 -3
  36. package/build/cjs/components/FileLink/FileLink.css +16 -56
  37. package/build/cjs/components/FileLink/FileLink.js +18 -1
  38. package/build/cjs/components/FullWidthBackground/FullWidthBackground.css +1 -1
  39. package/build/cjs/components/FullscreenImage/FullscreenImage.css +3 -3
  40. package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +3 -3
  41. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
  42. package/build/cjs/components/Image/Image.d.ts +2 -3
  43. package/build/cjs/components/Link/Link.css +13 -13
  44. package/build/cjs/components/Media/Video/Video.js +1 -0
  45. package/build/cjs/components/MetaInfo/MetaInfo.css +2 -2
  46. package/build/cjs/components/OverflowScroller/OverflowScroller.css +1 -1
  47. package/build/cjs/components/ReactPlayer/CustomBarControls.css +1 -1
  48. package/build/cjs/components/ReactPlayer/ReactPlayer.css +2 -2
  49. package/build/cjs/components/Table/Table.css +8 -8
  50. package/build/cjs/components/Title/Title.css +4 -4
  51. package/build/cjs/components/Title/TitleItem.css +19 -19
  52. package/build/cjs/components/Title/TitleItem.d.ts +2 -3
  53. package/build/cjs/components/Title/TitleItem.js +2 -2
  54. package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
  55. package/build/cjs/components/VideoBlock/VideoBlock.css +2 -2
  56. package/build/cjs/components/constants.d.ts +3 -1
  57. package/build/cjs/components/constants.js +4 -2
  58. package/build/cjs/containers/PageConstructor/PageConstructor.css +50 -30
  59. package/build/cjs/containers/PageConstructor/PageConstructor.js +6 -3
  60. package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -3
  61. package/build/cjs/containers/PageConstructor/Provider.js +2 -2
  62. package/build/cjs/context/theme/ThemeContext.d.ts +2 -3
  63. package/build/cjs/context/theme/ThemeContext.js +0 -1
  64. package/build/cjs/context/theme/index.d.ts +0 -1
  65. package/build/cjs/context/theme/index.js +0 -1
  66. package/build/cjs/context/theme/useTheme.d.ts +1 -1
  67. package/build/cjs/context/theme/useTheme.js +2 -2
  68. package/build/cjs/context/theme/withTheme.js +1 -1
  69. package/build/cjs/editor/components/AddBlock/AddBlock.css +6 -5
  70. package/build/cjs/editor/components/AddBlock/AddBlock.js +1 -1
  71. package/build/cjs/editor/components/ControlPanel/ControlPanel.css +12 -5
  72. package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +4 -2
  73. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +16 -9
  74. package/build/cjs/editor/components/EditBlock/EditBlock.css +2 -2
  75. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +2 -2
  76. package/build/cjs/editor/components/Layout/Layout.css +11 -9
  77. package/build/cjs/editor/components/Layout/Layout.d.ts +4 -1
  78. package/build/cjs/editor/components/Layout/Layout.js +2 -2
  79. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.css +4 -4
  80. package/build/cjs/editor/containers/Editor/Editor.js +5 -5
  81. package/build/cjs/editor/containers/Form/Form.css +12 -12
  82. package/build/cjs/editor/data/previews/default-preview.js +1 -1
  83. package/build/cjs/editor/data/previews/header-block.js +5 -5
  84. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +1 -1
  85. package/build/cjs/editor/store/index.d.ts +3 -1
  86. package/build/cjs/editor/store/index.js +7 -2
  87. package/build/cjs/editor/store/reducer.d.ts +8 -2
  88. package/build/cjs/editor/store/reducer.js +4 -1
  89. package/build/cjs/editor/styles/root.css +6 -4
  90. package/build/cjs/grid/Col/Col.d.ts +3 -4
  91. package/build/cjs/grid/Col/Col.js +2 -2
  92. package/build/cjs/grid/Grid/Grid.css +1 -1
  93. package/build/cjs/models/common.d.ts +4 -0
  94. package/build/cjs/models/common.js +5 -1
  95. package/build/cjs/models/constructor-items/blocks.d.ts +0 -4
  96. package/build/cjs/models/constructor-items/common.d.ts +3 -5
  97. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.css +4 -4
  98. package/build/cjs/navigation/components/Logo/Logo.css +3 -3
  99. package/build/cjs/navigation/components/Logo/Logo.js +3 -3
  100. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.css +7 -7
  101. package/build/cjs/navigation/components/Navigation/Navigation.css +2 -2
  102. package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +1 -1
  103. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
  104. package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
  105. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.css +5 -5
  106. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
  107. package/build/cjs/navigation/components/SocialIcon/SocialIcon.css +3 -3
  108. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
  109. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
  110. package/build/cjs/sub-blocks/BannerCard/BannerCard.css +16 -16
  111. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -3
  112. package/build/cjs/sub-blocks/Content/Content.css +22 -22
  113. package/build/cjs/sub-blocks/Content/ContentList/ContentList.css +6 -6
  114. package/build/cjs/sub-blocks/Content/ContentList/ContentList.js +3 -3
  115. package/build/cjs/sub-blocks/Divider/Divider.css +1 -1
  116. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +39 -39
  117. package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
  118. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +1 -1
  119. package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
  120. package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
  121. package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
  122. package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
  123. package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
  124. package/build/cjs/sub-blocks/Quote/Quote.css +10 -10
  125. package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
  126. package/build/cjs/utils/theme.d.ts +1 -1
  127. package/build/esm/blocks/Companies/Companies.css +5 -5
  128. package/build/esm/blocks/Companies/Companies.js +3 -3
  129. package/build/esm/blocks/ContentLayout/ContentLayout.css +4 -4
  130. package/build/esm/blocks/ContentLayout/ContentLayout.js +1 -3
  131. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
  132. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
  133. package/build/esm/blocks/Header/Header.css +22 -22
  134. package/build/esm/blocks/Header/Header.js +2 -2
  135. package/build/esm/blocks/Icons/Icons.css +2 -2
  136. package/build/esm/blocks/Info/Info.css +1 -1
  137. package/build/esm/blocks/Info/Info.js +3 -3
  138. package/build/esm/blocks/Media/Media.js +3 -3
  139. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
  140. package/build/esm/blocks/Questions/Questions.css +12 -12
  141. package/build/esm/blocks/Share/Share.css +14 -12
  142. package/build/esm/blocks/Slider/Arrow/Arrow.css +4 -4
  143. package/build/esm/blocks/Slider/Slider.css +10 -10
  144. package/build/esm/blocks/Table/Table.css +5 -5
  145. package/build/esm/blocks/Tabs/Tabs.css +6 -6
  146. package/build/esm/blocks/Tabs/Tabs.js +3 -3
  147. package/build/esm/components/Anchor/Anchor.d.ts +2 -3
  148. package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +2 -3
  149. package/build/esm/components/Author/Author.css +8 -8
  150. package/build/esm/components/Author/Author.js +2 -2
  151. package/build/esm/components/BlockBase/BlockBase.d.ts +2 -2
  152. package/build/esm/components/BlockBase/BlockBase.js +1 -1
  153. package/build/esm/components/Button/Button.css +4 -0
  154. package/build/esm/components/Button/Button.d.ts +2 -3
  155. package/build/esm/components/Button/Button.js +4 -3
  156. package/build/esm/components/ButtonTabs/ButtonTabs.css +4 -0
  157. package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +2 -3
  158. package/build/esm/components/CardBase/CardBase.css +6 -6
  159. package/build/esm/components/Control/Control.css +9 -9
  160. package/build/esm/components/ErrorWrapper/ErrorWrapper.css +3 -3
  161. package/build/esm/components/FileLink/FileLink.css +16 -56
  162. package/build/esm/components/FileLink/FileLink.js +18 -1
  163. package/build/esm/components/FullWidthBackground/FullWidthBackground.css +1 -1
  164. package/build/esm/components/FullscreenImage/FullscreenImage.css +3 -3
  165. package/build/esm/components/FullscreenMedia/FullscreenMedia.css +3 -3
  166. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
  167. package/build/esm/components/Image/Image.d.ts +2 -3
  168. package/build/esm/components/Link/Link.css +13 -13
  169. package/build/esm/components/Media/Video/Video.js +1 -0
  170. package/build/esm/components/MetaInfo/MetaInfo.css +2 -2
  171. package/build/esm/components/OverflowScroller/OverflowScroller.css +1 -1
  172. package/build/esm/components/ReactPlayer/CustomBarControls.css +1 -1
  173. package/build/esm/components/ReactPlayer/ReactPlayer.css +2 -2
  174. package/build/esm/components/Table/Table.css +8 -8
  175. package/build/esm/components/Title/Title.css +4 -4
  176. package/build/esm/components/Title/TitleItem.css +19 -19
  177. package/build/esm/components/Title/TitleItem.d.ts +2 -3
  178. package/build/esm/components/Title/TitleItem.js +2 -2
  179. package/build/esm/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
  180. package/build/esm/components/VideoBlock/VideoBlock.css +2 -2
  181. package/build/esm/components/constants.d.ts +3 -1
  182. package/build/esm/components/constants.js +3 -1
  183. package/build/esm/containers/PageConstructor/PageConstructor.css +50 -30
  184. package/build/esm/containers/PageConstructor/PageConstructor.js +7 -4
  185. package/build/esm/containers/PageConstructor/Provider.d.ts +2 -3
  186. package/build/esm/containers/PageConstructor/Provider.js +2 -2
  187. package/build/esm/context/theme/ThemeContext.d.ts +2 -3
  188. package/build/esm/context/theme/ThemeContext.js +0 -1
  189. package/build/esm/context/theme/index.d.ts +0 -1
  190. package/build/esm/context/theme/index.js +0 -1
  191. package/build/esm/context/theme/useTheme.d.ts +1 -1
  192. package/build/esm/context/theme/useTheme.js +2 -2
  193. package/build/esm/context/theme/withTheme.js +1 -1
  194. package/build/esm/editor/components/AddBlock/AddBlock.css +6 -5
  195. package/build/esm/editor/components/AddBlock/AddBlock.js +1 -1
  196. package/build/esm/editor/components/ControlPanel/ControlPanel.css +12 -5
  197. package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +4 -2
  198. package/build/esm/editor/components/ControlPanel/ControlPanel.js +17 -10
  199. package/build/esm/editor/components/EditBlock/EditBlock.css +2 -2
  200. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +2 -2
  201. package/build/esm/editor/components/Layout/Layout.css +11 -9
  202. package/build/esm/editor/components/Layout/Layout.d.ts +4 -1
  203. package/build/esm/editor/components/Layout/Layout.js +2 -2
  204. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.css +4 -4
  205. package/build/esm/editor/containers/Editor/Editor.js +5 -5
  206. package/build/esm/editor/containers/Form/Form.css +12 -12
  207. package/build/esm/editor/data/previews/default-preview.js +1 -1
  208. package/build/esm/editor/data/previews/header-block.js +5 -5
  209. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +1 -1
  210. package/build/esm/editor/store/index.d.ts +3 -1
  211. package/build/esm/editor/store/index.js +8 -3
  212. package/build/esm/editor/store/reducer.d.ts +8 -2
  213. package/build/esm/editor/store/reducer.js +3 -0
  214. package/build/esm/editor/styles/root.css +6 -4
  215. package/build/esm/grid/Col/Col.d.ts +3 -4
  216. package/build/esm/grid/Col/Col.js +2 -2
  217. package/build/esm/grid/Grid/Grid.css +1 -1
  218. package/build/esm/models/common.d.ts +4 -0
  219. package/build/esm/models/common.js +4 -0
  220. package/build/esm/models/constructor-items/blocks.d.ts +0 -4
  221. package/build/esm/models/constructor-items/common.d.ts +3 -5
  222. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.css +4 -4
  223. package/build/esm/navigation/components/Logo/Logo.css +3 -3
  224. package/build/esm/navigation/components/Logo/Logo.js +3 -3
  225. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.css +7 -7
  226. package/build/esm/navigation/components/Navigation/Navigation.css +2 -2
  227. package/build/esm/navigation/components/NavigationItem/NavigationItem.css +1 -1
  228. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
  229. package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
  230. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.css +5 -5
  231. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
  232. package/build/esm/navigation/components/SocialIcon/SocialIcon.css +3 -3
  233. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
  234. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
  235. package/build/esm/sub-blocks/BannerCard/BannerCard.css +16 -16
  236. package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -3
  237. package/build/esm/sub-blocks/Content/Content.css +22 -22
  238. package/build/esm/sub-blocks/Content/ContentList/ContentList.css +6 -6
  239. package/build/esm/sub-blocks/Content/ContentList/ContentList.js +3 -3
  240. package/build/esm/sub-blocks/Divider/Divider.css +1 -1
  241. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +39 -39
  242. package/build/esm/sub-blocks/HubspotForm/index.js +2 -2
  243. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +1 -1
  244. package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
  245. package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
  246. package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
  247. package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
  248. package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
  249. package/build/esm/sub-blocks/Quote/Quote.css +10 -10
  250. package/build/esm/sub-blocks/Quote/Quote.js +3 -3
  251. package/build/esm/utils/theme.d.ts +1 -1
  252. package/package.json +7 -5
  253. package/server/components/constants.d.ts +3 -1
  254. package/server/components/constants.js +4 -2
  255. package/server/models/common.d.ts +4 -0
  256. package/server/models/common.js +5 -1
  257. package/server/models/constructor-items/blocks.d.ts +0 -4
  258. package/server/models/constructor-items/common.d.ts +3 -5
  259. package/server/utils/theme.d.ts +1 -1
  260. package/styles/colors/dark.scss +6 -0
  261. package/styles/colors/light.scss +6 -0
  262. package/styles/colors/social.scss +10 -0
  263. package/styles/mixins.scss +21 -25
  264. package/styles/root.scss +28 -14
  265. package/styles/storybook/common.scss +6 -6
  266. package/styles/storybook/palette.scss +6 -6
  267. package/styles/storybook/typography.scss +46 -46
  268. package/styles/styles.css +15 -15
  269. package/styles/variables.scss +0 -8
  270. package/styles/yfm.scss +12 -12
  271. package/widget/index.js +1 -1
  272. package/build/cjs/context/theme/ThemeProvider.d.ts +0 -22
  273. package/build/cjs/context/theme/ThemeProvider.js +0 -49
  274. package/build/cjs/context/theme/ThemeValueContext.d.ts +0 -7
  275. package/build/cjs/context/theme/ThemeValueContext.js +0 -9
  276. package/build/cjs/context/theme/useThemeValue.d.ts +0 -2
  277. package/build/cjs/context/theme/useThemeValue.js +0 -11
  278. package/build/esm/context/theme/ThemeProvider.d.ts +0 -22
  279. package/build/esm/context/theme/ThemeProvider.js +0 -44
  280. package/build/esm/context/theme/ThemeValueContext.d.ts +0 -7
  281. package/build/esm/context/theme/ThemeValueContext.js +0 -5
  282. package/build/esm/context/theme/useThemeValue.d.ts +0 -2
  283. package/build/esm/context/theme/useThemeValue.js +0 -6
package/README.md CHANGED
@@ -195,7 +195,7 @@ To add a theme to a block property:
195
195
 
196
196
  1. In the `models/blocks.ts` file, define the type of the respective block property using the `ThemeSupporting<T>` generic, where `T` is the type of the property.
197
197
 
198
- 2. In the file with the block's `react` component, get the value of the property with the theme via `getThemedValue` and `ThemeValueContext` (see examples in the `Banner.tsx` block).
198
+ 2. In the file with the block's `react` component, get the value of the property with the theme via `getThemedValue` and `useTheme` hook (see examples in the `MediaBlock.tsx` block).
199
199
 
200
200
  3. Add theme support to the property validator: in the block's `schema.ts` file, wrap this property in `withTheme`.
201
201
 
@@ -8,15 +8,15 @@ unpredictable css rules order in build */
8
8
  text-align: center;
9
9
  }
10
10
  .pc-companies-block__title {
11
- font-size: var(--yc-text-display-2-font-size);
12
- line-height: var(--yc-text-display-2-line-height);
11
+ font-size: var(--g-text-display-2-font-size);
12
+ line-height: var(--g-text-display-2-line-height);
13
13
  color: var(--pc-text-header-color);
14
- font-weight: var(--yc-text-accent-font-weight);
14
+ font-weight: var(--g-text-accent-font-weight);
15
15
  }
16
16
  @media (max-width: 576px) {
17
17
  .pc-companies-block__title {
18
- font-size: var(--yc-text-display-1-font-size);
19
- line-height: var(--yc-text-display-1-line-height);
18
+ font-size: var(--g-text-display-1-font-size);
19
+ line-height: var(--g-text-display-1-line-height);
20
20
  }
21
21
  }
22
22
  .pc-companies-block__images {
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CompaniesBlock = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importStar(require("react"));
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const components_1 = require("../../components");
7
7
  const AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
8
- const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
8
+ const theme_1 = require("../../context/theme");
9
9
  const utils_1 = require("../../utils");
10
10
  const b = (0, utils_1.block)('companies-block');
11
11
  const CompaniesBlock = ({ title, images, animated }) => {
12
- const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
12
+ const theme = (0, theme_1.useTheme)();
13
13
  const themedImages = (0, utils_1.getThemedValue)(images, theme) || {};
14
14
  return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), offset: 150, animate: animated },
15
15
  react_1.default.createElement("div", { className: b('content') },
@@ -15,12 +15,12 @@ unpredictable css rules order in build */
15
15
  margin-top: 24px;
16
16
  }
17
17
  .pc-content-layout-block__files_size_s {
18
- font-size: var(--yc-text-body-2-font-size);
19
- line-height: var(--yc-text-body-2-line-height);
18
+ font-size: var(--g-text-body-2-font-size);
19
+ line-height: var(--g-text-body-2-line-height);
20
20
  }
21
21
  .pc-content-layout-block__files_size_l {
22
- font-size: var(--yc-text-body-3-font-size);
23
- line-height: var(--yc-text-body-3-line-height);
22
+ font-size: var(--g-text-body-3-font-size);
23
+ line-height: var(--g-text-body-3-line-height);
24
24
  }
25
25
  .pc-content-layout-block__files_centered {
26
26
  margin-left: auto;
@@ -31,9 +31,7 @@ function getTextWidth(size) {
31
31
  }
32
32
  const ContentLayoutBlock = (props) => {
33
33
  const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
34
- const { textContent, fileContent } = props;
35
- const propsSource = props.properties || props;
36
- const { size = 'l', background, centered, theme = 'default', textWidth = 'm' } = propsSource;
34
+ const { textContent, fileContent, size = 'l', background, centered, theme = 'default', textWidth = 'm', } = props;
37
35
  const colSizes = (0, react_1.useMemo)(() => getTextWidth(textWidth), [textWidth]);
38
36
  return (react_1.default.createElement("div", { className: b({ size, background: Boolean(background) }) },
39
37
  react_1.default.createElement(sub_blocks_1.Content, Object.assign({ className: b('content') }, textContent, { size: size, centered: centered, colSizes: colSizes, theme: theme })),
@@ -17,17 +17,17 @@ unpredictable css rules order in build */
17
17
  padding-right: 32px;
18
18
  }
19
19
  .pc-ExtendedFeaturesBlock__item-title {
20
- font-size: var(--yc-text-header-1-font-size);
21
- line-height: var(--yc-text-header-1-line-height);
20
+ font-size: var(--g-text-header-1-font-size);
21
+ line-height: var(--g-text-header-1-line-height);
22
22
  color: var(--pc-text-header-color);
23
- font-weight: var(--yc-text-accent-font-weight);
23
+ font-weight: var(--g-text-accent-font-weight);
24
24
  display: block;
25
25
  position: relative;
26
26
  margin-bottom: 8px;
27
27
  }
28
28
  .pc-ExtendedFeaturesBlock__item-title a {
29
29
  outline: none;
30
- color: var(--yc-color-text-link);
30
+ color: var(--g-color-text-link);
31
31
  text-decoration: none;
32
32
  cursor: pointer;
33
33
  }
@@ -35,28 +35,28 @@ unpredictable css rules order in build */
35
35
  outline: 2px solid #ffdb4d;
36
36
  }
37
37
  .pc-ExtendedFeaturesBlock__item-title a:hover, .pc-ExtendedFeaturesBlock__item-title a:active {
38
- --pc-text-header-color: var(--yc-color-text-link-hover);
39
- color: var(--yc-color-text-link-hover);
38
+ --pc-text-header-color: var(--g-color-text-link-hover);
39
+ color: var(--g-color-text-link-hover);
40
40
  }
41
41
  .pc-ExtendedFeaturesBlock__item-label {
42
- font-size: var(--yc-text-caption-2-font-size);
43
- line-height: var(--yc-text-caption-2-line-height);
42
+ font-size: var(--g-text-caption-2-font-size);
43
+ line-height: var(--g-text-caption-2-line-height);
44
44
  position: relative;
45
45
  top: -3px;
46
46
  height: 16px;
47
47
  margin-left: 8px;
48
48
  padding: 1.5px 5px 2px;
49
- color: var(--yc-color-base-background);
50
- background-color: var(--yc-my-color-brand-normal);
49
+ color: var(--g-color-base-background);
50
+ background-color: var(--g-color-base-brand);
51
51
  border-radius: 4px;
52
52
  }
53
53
  .pc-ExtendedFeaturesBlock__item-text, .pc-ExtendedFeaturesBlock__item-link {
54
- font-size: var(--yc-text-body-2-font-size);
55
- line-height: var(--yc-text-body-2-line-height);
54
+ font-size: var(--g-text-body-2-font-size);
55
+ line-height: var(--g-text-body-2-line-height);
56
56
  }
57
57
  .pc-ExtendedFeaturesBlock__item-text a {
58
58
  outline: none;
59
- color: var(--yc-color-text-link);
59
+ color: var(--g-color-text-link);
60
60
  text-decoration: none;
61
61
  cursor: pointer;
62
62
  }
@@ -64,12 +64,12 @@ unpredictable css rules order in build */
64
64
  outline: 2px solid #ffdb4d;
65
65
  }
66
66
  .pc-ExtendedFeaturesBlock__item-text a:hover, .pc-ExtendedFeaturesBlock__item-text a:active {
67
- --pc-text-header-color: var(--yc-color-text-link-hover);
68
- color: var(--yc-color-text-link-hover);
67
+ --pc-text-header-color: var(--g-color-text-link-hover);
68
+ color: var(--g-color-text-link-hover);
69
69
  }
70
70
  .pc-ExtendedFeaturesBlock__item-link {
71
71
  margin-top: 8px;
72
- color: var(--yc-color-text-link);
72
+ color: var(--g-color-text-link);
73
73
  }
74
74
  .pc-ExtendedFeaturesBlock__icon {
75
75
  width: 32px;
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExtendedFeaturesBlock = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importStar(require("react"));
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const components_1 = require("../../components/");
7
7
  const Image_1 = tslib_1.__importDefault(require("../../components/Image/Image"));
8
8
  const utils_1 = require("../../components/Media/Image/utils");
9
- const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
9
+ const theme_1 = require("../../context/theme");
10
10
  const grid_1 = require("../../grid");
11
11
  const sub_blocks_1 = require("../../sub-blocks");
12
12
  const utils_2 = require("../../utils");
@@ -17,7 +17,7 @@ const DEFAULT_SIZES = {
17
17
  md: 4,
18
18
  };
19
19
  const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, }) => {
20
- const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
20
+ const theme = (0, theme_1.useTheme)();
21
21
  return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
22
22
  react_1.default.createElement(components_1.Title, { title: title, subtitle: description, className: b('header') }),
23
23
  react_1.default.createElement("div", { className: b('items') },
@@ -23,7 +23,7 @@ unpredictable css rules order in build */
23
23
  .pc-header-block__content_theme_dark .pc-header-block__title,
24
24
  .pc-header-block__content_theme_dark .pc-header-block__description .yfm,
25
25
  .pc-header-block__content_theme_dark .pc-header-block__description .yfm * {
26
- color: var(--yc-color-text-light-primary);
26
+ color: var(--g-color-text-light-primary);
27
27
  }
28
28
  .pc-header-block__content_vertical-offset {
29
29
  margin: 16px 0;
@@ -48,21 +48,21 @@ unpredictable css rules order in build */
48
48
  z-index: 10;
49
49
  }
50
50
  .pc-header-block__title {
51
- font-size: var(--yc-text-display-4-font-size);
52
- line-height: var(--yc-text-display-4-line-height);
51
+ font-size: var(--g-text-display-4-font-size);
52
+ line-height: var(--g-text-display-4-line-height);
53
53
  color: var(--pc-text-header-color);
54
- font-weight: var(--yc-text-accent-font-weight);
54
+ font-weight: var(--g-text-accent-font-weight);
55
55
  position: relative;
56
56
  }
57
57
  @media (max-width: 577px) {
58
58
  .pc-header-block__title {
59
- font-size: var(--yc-text-display-2-font-size);
60
- line-height: var(--yc-text-display-2-line-height);
59
+ font-size: var(--g-text-display-2-font-size);
60
+ line-height: var(--g-text-display-2-line-height);
61
61
  }
62
62
  }
63
63
  .pc-header-block__title a {
64
64
  outline: none;
65
- color: var(--yc-color-text-link);
65
+ color: var(--g-color-text-link);
66
66
  text-decoration: none;
67
67
  cursor: pointer;
68
68
  }
@@ -70,21 +70,21 @@ unpredictable css rules order in build */
70
70
  outline: 2px solid #ffdb4d;
71
71
  }
72
72
  .pc-header-block__title a:hover, .pc-header-block__title a:active {
73
- --pc-text-header-color: var(--yc-color-text-link-hover);
74
- color: var(--yc-color-text-link-hover);
73
+ --pc-text-header-color: var(--g-color-text-link-hover);
74
+ color: var(--g-color-text-link-hover);
75
75
  }
76
76
  .pc-header-block__description {
77
77
  margin-top: 16px;
78
78
  font-weight: normal;
79
- font-size: var(--yc-text-caption-2-font-size);
80
- line-height: var(--yc-text-caption-2-line-height);
81
- margin-block-end: var(--yc-text-body-1-line-height);
79
+ font-size: var(--g-text-caption-2-font-size);
80
+ line-height: var(--g-text-caption-2-line-height);
81
+ margin-block-end: var(--g-text-body-1-line-height);
82
82
  }
83
83
  .pc-header-block__description .yfm,
84
84
  .pc-header-block__description .yfm * {
85
- font-size: var(--yc-text-body-3-font-size);
86
- line-height: var(--yc-text-body-3-line-height);
87
- color: var(--yc-color-text-primary);
85
+ font-size: var(--g-text-body-3-font-size);
86
+ line-height: var(--g-text-body-3-line-height);
87
+ color: var(--g-color-text-primary);
88
88
  }
89
89
  .pc-header-block__buttons {
90
90
  margin-top: 16px;
@@ -165,18 +165,18 @@ unpredictable css rules order in build */
165
165
  transform: none;
166
166
  max-width: none;
167
167
  width: 100%;
168
- background-color: var(--yc-color-base-background);
168
+ background-color: var(--g-color-base-background);
169
169
  }
170
170
  .pc-header-block__overtitle {
171
- font-size: var(--yc-text-body-3-font-size);
172
- line-height: var(--yc-text-body-3-line-height);
173
- margin-block-start: var(--yc-text-body-3-line-height);
171
+ font-size: var(--g-text-body-3-font-size);
172
+ line-height: var(--g-text-body-3-line-height);
173
+ margin-block-start: var(--g-text-body-3-line-height);
174
174
  margin-bottom: 8px;
175
175
  font-weight: 400;
176
176
  }
177
177
  .pc-header-block__overtitle a {
178
178
  outline: none;
179
- color: var(--yc-color-text-link);
179
+ color: var(--g-color-text-link);
180
180
  text-decoration: none;
181
181
  cursor: pointer;
182
182
  }
@@ -184,8 +184,8 @@ unpredictable css rules order in build */
184
184
  outline: 2px solid #ffdb4d;
185
185
  }
186
186
  .pc-header-block__overtitle a:hover, .pc-header-block__overtitle a:active {
187
- --pc-text-header-color: var(--yc-color-text-link-hover);
188
- color: var(--yc-color-text-link-hover);
187
+ --pc-text-header-color: var(--g-color-text-link-hover);
188
+ color: var(--g-color-text-link-hover);
189
189
  }
190
190
  @media (max-width: 1440px) {
191
191
  .pc-header-block__background, .pc-header-block__background.pc-header-block__background_media {
@@ -8,7 +8,7 @@ const HeaderBreadcrumbs_1 = tslib_1.__importDefault(require("../../components/He
8
8
  const utils_1 = require("../../components/Media/Image/utils");
9
9
  const YFMWrapper_1 = tslib_1.__importDefault(require("../../components/YFMWrapper/YFMWrapper"));
10
10
  const mobileContext_1 = require("../../context/mobileContext");
11
- const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
11
+ const theme_1 = require("../../context/theme");
12
12
  const grid_1 = require("../../grid");
13
13
  const utils_2 = require("../../utils");
14
14
  const utils_3 = require("./utils");
@@ -23,7 +23,7 @@ const FullWidthBackground = ({ background }) => (react_1.default.createElement("
23
23
  const HeaderBlock = (props) => {
24
24
  const { title, overtitle, description, buttons, image, video, width = 'm', imageSize, offset = 'default', background, theme: textTheme = 'light', verticalOffset = 'm', className, breadcrumbs, status, children, } = props;
25
25
  const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
26
- const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
26
+ const theme = (0, theme_1.useTheme)();
27
27
  const hasRightSideImage = Boolean(image || video);
28
28
  const curImageSize = imageSize || (0, utils_3.getImageSize)(width);
29
29
  const titleSizes = hasRightSideImage ? (0, utils_3.titleWithImageSizes)(curImageSize) : (0, utils_3.getTitleSizes)(width);
@@ -4,8 +4,8 @@ unpredictable css rules order in build */
4
4
  display: flex;
5
5
  flex-wrap: wrap;
6
6
  justify-content: center;
7
- font-size: var(--yc-text-body-2-font-size);
8
- line-height: var(--yc-text-body-2-line-height);
7
+ font-size: var(--g-text-body-2-font-size);
8
+ line-height: var(--g-text-body-2-line-height);
9
9
  }
10
10
  .pc-icons-block_size_s .pc-icons-block__item {
11
11
  width: 96px;
@@ -1,7 +1,7 @@
1
1
  /* use this for style redefinitions to awoid problems with
2
2
  unpredictable css rules order in build */
3
3
  .pc-info-block__container {
4
- background-color: var(--yc-color-base-special);
4
+ background-color: var(--g-color-base-brand);
5
5
  padding: 96px 64px;
6
6
  border-radius: var(--pc-border-radius);
7
7
  }
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InfoBlock = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importStar(require("react"));
6
- const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const theme_1 = require("../../context/theme");
7
7
  const grid_1 = require("../../grid");
8
8
  const Content_1 = tslib_1.__importDefault(require("../../sub-blocks/Content/Content"));
9
9
  const utils_1 = require("../../utils");
@@ -11,7 +11,7 @@ const b = (0, utils_1.block)('info-block');
11
11
  const sizes = { md: 6, all: 12 };
12
12
  const InfoBlock = (props) => {
13
13
  const { backgroundColor, theme: blockTheme = 'dark', buttons = [], title, sectionsTitle, links = [], rightContent = {}, leftContent = {}, } = props;
14
- const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
14
+ const theme = (0, theme_1.useTheme)();
15
15
  const contentTheme = blockTheme === 'dark' ? 'dark' : 'default';
16
16
  const rightLinks = [
17
17
  ...((rightContent === null || rightContent === void 0 ? void 0 : rightContent.links) || []),
@@ -5,12 +5,12 @@ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importStar(require("react"));
6
6
  const Media_1 = tslib_1.__importDefault(require("../../components/Media/Media"));
7
7
  const MediaBase_1 = tslib_1.__importDefault(require("../../components/MediaBase/MediaBase"));
8
- const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
8
+ const theme_1 = require("../../context/theme");
9
9
  const utils_1 = require("../../utils");
10
10
  const MediaBlock = (props) => {
11
11
  const { media } = props;
12
12
  const [play, setPlay] = (0, react_1.useState)(false);
13
- const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
13
+ const theme = (0, theme_1.useTheme)();
14
14
  const mediaThemed = (0, utils_1.getThemedValue)(media, theme);
15
15
  return (react_1.default.createElement(MediaBase_1.default, Object.assign({}, props, { onScroll: () => setPlay(true) }),
16
16
  react_1.default.createElement(MediaBase_1.default.Card, null,
@@ -5,10 +5,10 @@
5
5
  /* use this for style redefinitions to awoid problems with
6
6
  unpredictable css rules order in build */
7
7
  .pc-PromoFeaturesBlock__card-title {
8
- font-size: var(--yc-text-header-1-font-size);
9
- line-height: var(--yc-text-header-1-line-height);
8
+ font-size: var(--g-text-header-1-font-size);
9
+ line-height: var(--g-text-header-1-line-height);
10
10
  color: var(--pc-text-header-color);
11
- font-weight: var(--yc-text-accent-font-weight);
11
+ font-weight: var(--g-text-accent-font-weight);
12
12
  }
13
13
  .pc-PromoFeaturesBlock__card-container {
14
14
  display: flex;
@@ -23,7 +23,7 @@ unpredictable css rules order in build */
23
23
  background-color: inherit;
24
24
  }
25
25
  .pc-PromoFeaturesBlock__background_grey {
26
- background-color: var(--yc-color-base-misc);
26
+ background-color: var(--g-color-base-misc-light);
27
27
  }
28
28
  .pc-PromoFeaturesBlock_grey {
29
29
  padding: 64px 0;
@@ -44,8 +44,8 @@ unpredictable css rules order in build */
44
44
  margin-bottom: 8px;
45
45
  }
46
46
  .pc-PromoFeaturesBlock__card-text {
47
- font-size: var(--yc-text-body-2-font-size);
48
- line-height: var(--yc-text-body-2-line-height);
47
+ font-size: var(--g-text-body-2-font-size);
48
+ line-height: var(--g-text-body-2-line-height);
49
49
  }
50
50
  .pc-PromoFeaturesBlock__card-media {
51
51
  margin-top: 16px;
@@ -57,24 +57,24 @@ unpredictable css rules order in build */
57
57
  padding: 32px;
58
58
  }
59
59
  .pc-PromoFeaturesBlock__card_light {
60
- background-color: var(--yc-color-base-background);
60
+ background-color: var(--g-color-base-background);
61
61
  }
62
62
  .pc-PromoFeaturesBlock__card_default {
63
- background-color: var(--yc-color-base-misc);
63
+ background-color: var(--g-color-base-misc-light);
64
64
  }
65
65
  .pc-PromoFeaturesBlock__card_accent {
66
- color: var(--yc-color-text-light-primary);
67
- background-color: var(--yc-color-base-special);
66
+ color: var(--g-color-text-light-primary);
67
+ background-color: var(--g-color-base-brand);
68
68
  }
69
69
  .pc-PromoFeaturesBlock__card_accent .pc-PromoFeaturesBlock__card-title,
70
70
  .pc-PromoFeaturesBlock__card_accent .pc-PromoFeaturesBlock__card-text > .yfm * {
71
- color: var(--yc-color-text-light-primary);
71
+ color: var(--g-color-text-light-primary);
72
72
  }
73
73
  .pc-PromoFeaturesBlock__card_accent-light {
74
- background-color: var(--yc-color-base-selection);
74
+ background-color: var(--pc-color-base-copper);
75
75
  }
76
76
  .pc-PromoFeaturesBlock__card_primary {
77
- background-color: var(--yc-color-promo-base-gold);
77
+ background-color: var(--pc-color-base-gold);
78
78
  }
79
79
  @media (min-width: 769px) {
80
80
  .pc-PromoFeaturesBlock.pc-AnimateBlock .pc-PromoFeaturesBlock__card-container-column, .pc-AnimateBlock .pc-PromoFeaturesBlock .pc-PromoFeaturesBlock__card-container-column {
@@ -12,23 +12,23 @@ unpredictable css rules order in build */
12
12
  }
13
13
  .pc-QuestionsBlock__item {
14
14
  padding-bottom: 32px;
15
- border-bottom: 1px solid var(--yc-color-line-generic);
15
+ border-bottom: 1px solid var(--g-color-line-generic);
16
16
  }
17
17
  .pc-QuestionsBlock__item + .pc-QuestionsBlock__item {
18
18
  padding-top: 32px;
19
19
  }
20
20
  .pc-QuestionsBlock__item-title {
21
- font-size: var(--yc-text-header-1-font-size);
22
- line-height: var(--yc-text-header-1-line-height);
21
+ font-size: var(--g-text-header-1-font-size);
22
+ line-height: var(--g-text-header-1-line-height);
23
23
  color: var(--pc-text-header-color);
24
- font-weight: var(--yc-text-accent-font-weight);
24
+ font-weight: var(--g-text-accent-font-weight);
25
25
  position: relative;
26
26
  padding-right: 24px;
27
27
  cursor: pointer;
28
28
  }
29
29
  .pc-QuestionsBlock__item-title a {
30
30
  outline: none;
31
- color: var(--yc-color-text-link);
31
+ color: var(--g-color-text-link);
32
32
  text-decoration: none;
33
33
  cursor: pointer;
34
34
  }
@@ -36,23 +36,23 @@ unpredictable css rules order in build */
36
36
  outline: 2px solid #ffdb4d;
37
37
  }
38
38
  .pc-QuestionsBlock__item-title a:hover, .pc-QuestionsBlock__item-title a:active {
39
- --pc-text-header-color: var(--yc-color-text-link-hover);
40
- color: var(--yc-color-text-link-hover);
39
+ --pc-text-header-color: var(--g-color-text-link-hover);
40
+ color: var(--g-color-text-link-hover);
41
41
  }
42
42
  .pc-QuestionsBlock__text {
43
- font-size: var(--yc-text-body-2-font-size);
44
- line-height: var(--yc-text-body-2-line-height);
43
+ font-size: var(--g-text-body-2-font-size);
44
+ line-height: var(--g-text-body-2-line-height);
45
45
  margin-top: 12px;
46
46
  }
47
47
  .pc-QuestionsBlock__arrow {
48
48
  position: absolute;
49
49
  right: 0;
50
50
  top: 0;
51
- color: var(--yc-color-text-info);
51
+ color: var(--g-color-text-primary);
52
52
  }
53
53
  .pc-QuestionsBlock__link {
54
- font-size: var(--yc-text-body-2-font-size);
55
- line-height: var(--yc-text-body-2-line-height);
54
+ font-size: var(--g-text-body-2-font-size);
55
+ line-height: var(--g-text-body-2-line-height);
56
56
  }
57
57
  @media (max-width: 769px) {
58
58
  .pc-QuestionsBlock__title {
@@ -5,10 +5,10 @@
5
5
  /* use this for style redefinitions to awoid problems with
6
6
  unpredictable css rules order in build */
7
7
  .pc-share-block__title {
8
- font-size: var(--yc-text-body-3-font-size);
9
- line-height: var(--yc-text-body-3-line-height);
8
+ font-size: var(--g-text-body-3-font-size);
9
+ line-height: var(--g-text-body-3-line-height);
10
10
  color: var(--pc-text-header-color);
11
- font-weight: var(--yc-text-accent-font-weight);
11
+ font-weight: var(--g-text-accent-font-weight);
12
12
  text-align: center;
13
13
  font-weight: normal;
14
14
  }
@@ -20,27 +20,29 @@ unpredictable css rules order in build */
20
20
  .pc-share-block__item.pc-share-block__item {
21
21
  display: flex;
22
22
  justify-content: center;
23
- width: 48px;
23
+ align-items: center;
24
+ /* stylelint-disable-next-line declaration-no-important */
25
+ width: 48px !important;
24
26
  height: 48px;
25
27
  border-radius: 100%;
26
28
  }
27
29
  .pc-share-block__item.pc-share-block__item_type_vk {
28
- background-color: var(--yc-color-vk);
30
+ background-color: var(--pc-color-vk);
29
31
  }
30
32
  .pc-share-block__item.pc-share-block__item_type_facebook {
31
- background-color: var(--yc-color-facebook);
33
+ background-color: var(--pc-color-facebook);
32
34
  }
33
35
  .pc-share-block__item.pc-share-block__item_type_twitter {
34
- background-color: var(--yc-color-twitter);
36
+ background-color: var(--pc-color-twitter);
35
37
  }
36
38
  .pc-share-block__item.pc-share-block__item_type_telegram {
37
- background-color: var(--yc-color-telegram);
39
+ background-color: var(--pc-color-telegram);
38
40
  }
39
41
  .pc-share-block__item.pc-share-block__item_type_telegram {
40
- background-color: var(--yc-color-telegram);
42
+ background-color: var(--pc-color-telegram);
41
43
  }
42
44
  .pc-share-block__item.pc-share-block__item_type_linkedin {
43
- background-color: var(--yc-color-linkedin);
45
+ background-color: var(--pc-color-linkedin);
44
46
  }
45
47
  .pc-share-block__item.pc-share-block__item.pc-share-block__item.pc-share-block__item:before {
46
48
  border-radius: 100%;
@@ -48,14 +50,14 @@ unpredictable css rules order in build */
48
50
 
49
51
  .pc-share-block__item.pc-share-block__item:hover:before {
50
52
  /* stylelint-disable-next-line declaration-no-important */
51
- background-color: var(--yc-color-base-generic) !important;
53
+ background-color: var(--g-color-base-generic) !important;
52
54
  border-radius: 100%;
53
55
  }
54
56
  .pc-share-block__item.pc-share-block__item + .pc-share-block__item.pc-share-block__item {
55
57
  margin-left: 12px;
56
58
  }
57
59
  .pc-share-block__item.pc-share-block__item svg {
58
- color: var(--yc-color-base-background);
60
+ color: var(--g-color-base-background);
59
61
  }
60
62
 
61
63
  @media (max-width: 577px) {
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .pc-slider-block-arrow__button:hover {
6
- box-shadow: 0px 4px 24px var(--yc-color-sfx-shadow), 0px 2px 8px var(--yc-color-sfx-shadow);
6
+ box-shadow: 0px 4px 24px var(--g-color-sfx-shadow), 0px 2px 8px var(--g-color-sfx-shadow);
7
7
  cursor: pointer;
8
8
  }
9
9
 
@@ -43,14 +43,14 @@ unpredictable css rules order in build */
43
43
  cursor: pointer;
44
44
  width: 42px;
45
45
  height: 42px;
46
- color: var(--yc-color-text-secondary);
46
+ color: var(--g-color-text-secondary);
47
47
  border-radius: 100%;
48
- background-color: var(--yc-color-base-background);
48
+ background-color: var(--g-color-base-background);
49
49
  box-shadow: 0 4px 24px var(--pc-color-sfx-shadow), 0 2px 8px var(--pc-color-sfx-shadow);
50
50
  transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
51
51
  }
52
52
  .pc-slider-block-arrow:hover .pc-slider-block-arrow__button {
53
- color: var(--yc-color-text-primary);
53
+ color: var(--g-color-text-primary);
54
54
  box-shadow: 0 2px 12px var(--pc-color-sfx-shadow), 0 4px 24px var(--pc-color-sfx-shadow);
55
55
  }
56
56
  .pc-slider-block-arrow__icon {
@@ -143,17 +143,17 @@ unpredictable css rules order in build */
143
143
  width: 8px;
144
144
  height: 8px;
145
145
  border-radius: 100%;
146
- background-color: var(--yc-color-line-generic-accent);
146
+ background-color: var(--g-color-line-generic-accent);
147
147
  cursor: pointer;
148
148
  }
149
149
  .pc-SliderBlock__dot:hover {
150
- background-color: var(--yc-color-line-generic-accent-hover);
150
+ background-color: var(--g-color-line-generic-accent-hover);
151
151
  }
152
152
  .pc-SliderBlock__dot + .pc-SliderBlock__dot {
153
153
  margin-left: 16px;
154
154
  }
155
155
  .pc-SliderBlock__dot_active {
156
- background-color: var(--yc-color-line-generic-active);
156
+ background-color: var(--g-color-line-generic-active);
157
157
  }
158
158
  .pc-SliderBlock__bar {
159
159
  position: absolute;
@@ -180,19 +180,19 @@ unpredictable css rules order in build */
180
180
  position: absolute;
181
181
  top: 0;
182
182
  left: 0;
183
- color: var(--yc-color-text-secondary);
183
+ color: var(--g-color-text-secondary);
184
184
  }
185
185
  .pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_l {
186
- font-size: var(--yc-text-header-1-font-size);
187
- line-height: var(--yc-text-header-1-line-height);
186
+ font-size: var(--g-text-header-1-font-size);
187
+ line-height: var(--g-text-header-1-line-height);
188
188
  }
189
189
  .pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_m {
190
- font-size: var(--yc-text-body-2-font-size);
191
- line-height: var(--yc-text-body-2-line-height);
190
+ font-size: var(--g-text-body-2-font-size);
191
+ line-height: var(--g-text-body-2-line-height);
192
192
  }
193
193
  .pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_s {
194
- font-size: var(--yc-text-body-1-font-size);
195
- line-height: var(--yc-text-body-1-line-height);
194
+ font-size: var(--g-text-body-1-font-size);
195
+ line-height: var(--g-text-body-1-line-height);
196
196
  }
197
197
  @media (min-width: 769px) {
198
198
  .pc-SliderBlock__animate-slides.pc-AnimateBlock .slick-slide, .pc-AnimateBlock .pc-SliderBlock__animate-slides .slick-slide {
@@ -5,18 +5,18 @@
5
5
  /* use this for style redefinitions to awoid problems with
6
6
  unpredictable css rules order in build */
7
7
  .pc-table-block__title {
8
- font-size: var(--yc-text-display-2-font-size);
9
- line-height: var(--yc-text-display-2-line-height);
8
+ font-size: var(--g-text-display-2-font-size);
9
+ line-height: var(--g-text-display-2-line-height);
10
10
  color: var(--pc-text-header-color);
11
- font-weight: var(--yc-text-accent-font-weight);
11
+ font-weight: var(--g-text-accent-font-weight);
12
12
  top: calc(var(--header-height) + 32px);
13
13
  position: sticky;
14
14
  margin-right: 32px;
15
15
  }
16
16
  @media (max-width: 576px) {
17
17
  .pc-table-block__title {
18
- font-size: var(--yc-text-display-1-font-size);
19
- line-height: var(--yc-text-display-1-line-height);
18
+ font-size: var(--g-text-display-1-font-size);
19
+ line-height: var(--g-text-display-1-line-height);
20
20
  }
21
21
  }
22
22
  .pc-table-block__table {