@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
@@ -8,11 +8,11 @@ unpredictable css rules order in build */
8
8
  flex-direction: column;
9
9
  min-width: 220px;
10
10
  padding: 16px;
11
- border: 1px solid var(--yc-color-line-generic);
11
+ border: 1px solid var(--g-color-line-generic);
12
12
  border-top-width: 0;
13
13
  border-radius: calc(var(--pc-border-radius) / 2);
14
- background: var(--yc-color-base-float);
15
- box-shadow: 0 3px 10px var(--yc-color-sfx-shadow);
14
+ background: var(--g-color-base-float);
15
+ box-shadow: 0 3px 10px var(--g-color-sfx-shadow);
16
16
  }
17
17
  .pc-navigation-popup__list {
18
18
  margin: 0;
@@ -26,6 +26,6 @@ unpredictable css rules order in build */
26
26
  border-radius: 8px;
27
27
  }
28
28
  .pc-navigation-popup__link:hover {
29
- color: var(--yc-color-text-primary);
30
- background-color: var(--yc-color-base-simple-hover);
29
+ color: var(--g-color-text-primary);
30
+ background-color: var(--g-color-base-simple-hover);
31
31
  }
@@ -10,6 +10,6 @@ export const NavigationPopup = ({ anchorRef, items, onClose, className, open, })
10
10
  // Workaround to recalculate position on every opening. Required for valid position calculation for scrolled header links.
11
11
  , {
12
12
  // Workaround to recalculate position on every opening. Required for valid position calculation for scrolled header links.
13
- anchorRef: open ? anchorRef : undefined, className: b(null, className), open: open, onClose: onClose, onOutsideClick: onClose, keepMounted: true, disablePortal: true, strategy: "fixed", placement: "bottom-start", offset: OFFSET_RESET },
13
+ anchorRef: open ? anchorRef : undefined, contentClassName: b(null, className), open: open, onClose: onClose, onOutsideClick: onClose, keepMounted: true, disablePortal: true, strategy: "fixed", placement: "bottom-start", offset: OFFSET_RESET },
14
14
  React.createElement("ul", { className: b('list') }, items.map((item) => (React.createElement(NavigationItem, { key: item.text, className: b('link'), data: item, menuLayout: NavigationLayout.Dropdown }))))));
15
15
  export default NavigationPopup;
@@ -7,12 +7,12 @@ unpredictable css rules order in build */
7
7
  width: 40px;
8
8
  height: 40px;
9
9
  margin-right: 8px;
10
- color: var(--yc-color-base-background);
10
+ color: var(--g-color-base-background);
11
11
  border-radius: 50%;
12
- background-color: var(--yc-color-base-generic);
12
+ background-color: var(--g-color-base-generic);
13
13
  }
14
14
  .pc-social-icon:hover {
15
- background-color: var(--yc-color-base-generic-hover);
15
+ background-color: var(--g-color-base-generic-hover);
16
16
  }
17
17
  .pc-social-icon__icon {
18
18
  width: 16px;
@@ -4,10 +4,10 @@ unpredictable css rules order in build */
4
4
  position: relative;
5
5
  }
6
6
  .pc-background-card_theme_light {
7
- background-color: var(--yc-color-promo-base-silver);
7
+ background-color: var(--pc-color-base-silver);
8
8
  }
9
9
  .pc-background-card_theme_dark {
10
- background-color: var(--yc-color-promo-base-asphalt);
10
+ background-color: var(--pc-color-base-asphalt);
11
11
  }
12
12
  .pc-background-card_padding_s {
13
13
  padding-bottom: 80px;
@@ -39,8 +39,8 @@ unpredictable css rules order in build */
39
39
  }
40
40
 
41
41
  a.pc-background-card_theme_light {
42
- background-color: var(--yc-color-promo-base-silver);
42
+ background-color: var(--pc-color-base-silver);
43
43
  }
44
44
  a.pc-background-card_theme_dark {
45
- background-color: var(--yc-color-promo-base-asphalt);
45
+ background-color: var(--pc-color-base-asphalt);
46
46
  }
@@ -1,13 +1,13 @@
1
- import React, { useContext } from 'react';
1
+ import React from 'react';
2
2
  import { BackgroundImage, CardBase } from '../../components/';
3
- import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
3
+ import { useTheme } from '../../context/theme';
4
4
  import { block, getThemedValue } from '../../utils';
5
5
  import Content from '../Content/Content';
6
6
  import './BackgroundCard.css';
7
7
  const b = block('background-card');
8
8
  const BackgroundCard = (props) => {
9
9
  const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, } = props;
10
- const { themeValue: theme } = useContext(ThemeValueContext);
10
+ const theme = useTheme();
11
11
  const hasBackgroundColor = backgroundColor || cardTheme !== 'default';
12
12
  const link = hasBackgroundColor || border === 'line' ? undefined : url;
13
13
  const borderType = hasBackgroundColor ? 'none' : border;
@@ -6,28 +6,28 @@
6
6
  unpredictable css rules order in build */
7
7
  .pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__title,
8
8
  .pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__subtitle {
9
- color: var(--yc-color-text-light-primary);
9
+ color: var(--g-color-text-light-primary);
10
10
  }
11
11
  .pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__title p,
12
12
  .pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__subtitle p {
13
- color: var(--yc-color-text-light-primary);
13
+ color: var(--g-color-text-light-primary);
14
14
  }
15
15
 
16
16
  .pc-banner-card__title {
17
- font-size: var(--yc-text-display-2-font-size);
18
- line-height: var(--yc-text-display-2-line-height);
17
+ font-size: var(--g-text-display-2-font-size);
18
+ line-height: var(--g-text-display-2-line-height);
19
19
  color: var(--pc-text-header-color);
20
- font-weight: var(--yc-text-accent-font-weight);
20
+ font-weight: var(--g-text-accent-font-weight);
21
21
  }
22
22
  @media (max-width: 576px) {
23
23
  .pc-banner-card__title {
24
- font-size: var(--yc-text-display-1-font-size);
25
- line-height: var(--yc-text-display-1-line-height);
24
+ font-size: var(--g-text-display-1-font-size);
25
+ line-height: var(--g-text-display-1-line-height);
26
26
  }
27
27
  }
28
28
  .pc-banner-card__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,8 +35,8 @@ unpredictable css rules order in build */
35
35
  outline: 2px solid #ffdb4d;
36
36
  }
37
37
  .pc-banner-card__title a:hover, .pc-banner-card__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-banner-card__content {
42
42
  width: 100%;
@@ -57,17 +57,17 @@ unpredictable css rules order in build */
57
57
  .pc-banner-card__subtitle {
58
58
  display: inline-block;
59
59
  margin-top: 8px;
60
- font-size: var(--yc-text-body-3-font-size);
61
- line-height: var(--yc-text-body-3-line-height);
60
+ font-size: var(--g-text-body-3-font-size);
61
+ line-height: var(--g-text-body-3-line-height);
62
62
  color: var(--pc-text-header-color);
63
- font-weight: var(--yc-text-accent-font-weight);
63
+ font-weight: var(--g-text-accent-font-weight);
64
64
  font-weight: normal;
65
65
  }
66
66
  .pc-banner-card__subtitle p {
67
- font-size: var(--yc-text-body-3-font-size);
68
- line-height: var(--yc-text-body-3-line-height);
67
+ font-size: var(--g-text-body-3-font-size);
68
+ line-height: var(--g-text-body-3-line-height);
69
69
  color: var(--pc-text-header-color);
70
- font-weight: var(--yc-text-accent-font-weight);
70
+ font-weight: var(--g-text-accent-font-weight);
71
71
  font-weight: normal;
72
72
  }
73
73
  .pc-banner-card__button.pc-banner-card__button {
@@ -1,12 +1,12 @@
1
- import React, { useContext } from 'react';
1
+ import React from 'react';
2
2
  import { BackgroundImage, Button, HTML, RouterLink, YFMWrapper } from '../../components';
3
- import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
3
+ import { useTheme } from '../../context/theme';
4
4
  import { block, getThemedValue } from '../../utils';
5
5
  import './BannerCard.css';
6
6
  const b = block('banner-card');
7
7
  export const BannerCard = (props) => {
8
8
  const { title, subtitle, button: { url, text, target }, color, theme: textTheme = 'light', image, disableCompress, } = props;
9
- const { themeValue: theme } = useContext(ThemeValueContext);
9
+ const theme = useTheme();
10
10
  const contentStyle = {};
11
11
  if (color) {
12
12
  contentStyle.backgroundColor = getThemedValue(color, theme);
@@ -8,7 +8,7 @@ unpredictable css rules order in build */
8
8
  .pc-content {
9
9
  --pc-monochrome-button-background-color: #262626;
10
10
  --pc-monochrome-button-background-color-hover: #393939;
11
- --pc-monochrome-button-color: var(--yc-color-text-light-primary);
11
+ --pc-monochrome-button-color: var(--g-color-text-light-primary);
12
12
  }
13
13
  .pc-content__notice .yfm ol,
14
14
  .pc-content__notice .yfm ul, .pc-content__text .yfm ol,
@@ -17,14 +17,14 @@ unpredictable css rules order in build */
17
17
  }
18
18
  .pc-content__notice.pc-content__notice .yfm,
19
19
  .pc-content__notice.pc-content__notice .yfm > * {
20
- color: var(--yc-color-text-secondary);
20
+ color: var(--g-color-text-secondary);
21
21
  }
22
22
  .pc-content__notice.pc-content__notice .yfm a {
23
- color: var(--yc-color-text-secondary);
23
+ color: var(--g-color-text-secondary);
24
24
  text-decoration: underline;
25
25
  }
26
26
  .pc-content__notice.pc-content__notice .yfm a:hover {
27
- color: var(--yc-color-text-primary);
27
+ color: var(--g-color-text-primary);
28
28
  }
29
29
 
30
30
  .pc-content__button.pc-content__button {
@@ -82,8 +82,8 @@ unpredictable css rules order in build */
82
82
  }
83
83
  .pc-content_size_l .pc-content__text .yfm,
84
84
  .pc-content_size_l .pc-content__notice .yfm {
85
- font-size: var(--yc-text-body-3-font-size);
86
- line-height: var(--yc-text-body-3-line-height);
85
+ font-size: var(--g-text-body-3-font-size);
86
+ line-height: var(--g-text-body-3-line-height);
87
87
  }
88
88
  .pc-content_size_l .pc-content__links,
89
89
  .pc-content_size_l .pc-content__link,
@@ -95,63 +95,63 @@ unpredictable css rules order in build */
95
95
  .pc-content_theme_dark .pc-content__text .yfm,
96
96
  .pc-content_theme_dark .pc-content__text .yfm *,
97
97
  .pc-content_theme_dark .pc-content__link a {
98
- color: var(--yc-color-text-light-primary);
98
+ color: var(--g-color-text-light-primary);
99
99
  }
100
100
  .pc-content_theme_dark .pc-content__notice .yfm,
101
101
  .pc-content_theme_dark .pc-content__notice .yfm * {
102
- color: var(--yc-color-text-light-secondary);
102
+ color: var(--g-color-text-light-secondary);
103
103
  }
104
104
  .pc-content_theme_dark .pc-content__notice .yfm a {
105
- color: var(--yc-color-text-light-secondary);
105
+ color: var(--g-color-text-light-secondary);
106
106
  text-decoration: underline;
107
107
  }
108
108
  .pc-content_theme_dark .pc-content__notice .yfm a:hover {
109
- color: var(--yc-color-text-light-primary);
109
+ color: var(--g-color-text-light-primary);
110
110
  }
111
111
  .pc-content_theme_dark .pc-content__text .yfm a {
112
- color: var(--yc-color-text-light-primary);
112
+ color: var(--g-color-text-light-primary);
113
113
  text-decoration: underline;
114
114
  }
115
115
  .pc-content_theme_dark .pc-content__text .yfm a:hover {
116
- color: var(--yc-color-text-light-secondary);
116
+ color: var(--g-color-text-light-secondary);
117
117
  }
118
118
  .pc-content_theme_dark .pc-content__title a {
119
- color: var(--yc-color-text-light-primary);
119
+ color: var(--g-color-text-light-primary);
120
120
  text-decoration: underline;
121
121
  text-decoration: none;
122
122
  }
123
123
  .pc-content_theme_dark .pc-content__title a:hover {
124
- color: var(--yc-color-text-light-secondary);
124
+ color: var(--g-color-text-light-secondary);
125
125
  }
126
126
  .pc-content_theme_light .pc-content__title *,
127
127
  .pc-content_theme_light .pc-content__text .yfm,
128
128
  .pc-content_theme_light .pc-content__text .yfm *,
129
129
  .pc-content_theme_light .pc-content__link a {
130
- color: var(--yc-color-text-dark-primary);
130
+ color: var(--g-color-text-dark-primary);
131
131
  }
132
132
  .pc-content_theme_light .pc-content__notice .yfm,
133
133
  .pc-content_theme_light .pc-content__notice .yfm * {
134
- color: var(--yc-color-text-dark-secondary);
134
+ color: var(--g-color-text-dark-secondary);
135
135
  }
136
136
  .pc-content_theme_light .pc-content__notice .yfm a {
137
- color: var(--yc-color-text-dark-secondary);
137
+ color: var(--g-color-text-dark-secondary);
138
138
  text-decoration: underline;
139
139
  }
140
140
  .pc-content_theme_light .pc-content__notice .yfm a:hover {
141
- color: var(--yc-color-text-dark-primary);
141
+ color: var(--g-color-text-dark-primary);
142
142
  }
143
143
  .pc-content_theme_light .pc-content__text .yfm a {
144
- color: var(--yc-color-text-dark-primary);
144
+ color: var(--g-color-text-dark-primary);
145
145
  text-decoration: underline;
146
146
  }
147
147
  .pc-content_theme_light .pc-content__text .yfm a:hover {
148
- color: var(--yc-color-text-dark-secondary);
148
+ color: var(--g-color-text-dark-secondary);
149
149
  }
150
150
  .pc-content_theme_light .pc-content__title a {
151
- color: var(--yc-color-text-dark-primary);
151
+ color: var(--g-color-text-dark-primary);
152
152
  text-decoration: underline;
153
153
  text-decoration: none;
154
154
  }
155
155
  .pc-content_theme_light .pc-content__title a:hover {
156
- color: var(--yc-color-text-dark-secondary);
156
+ color: var(--g-color-text-dark-secondary);
157
157
  }
@@ -4,8 +4,8 @@ unpredictable css rules order in build */
4
4
  margin-top: 24px;
5
5
  }
6
6
  .pc-content-list_size_l .pc-content-list__title {
7
- font-size: var(--yc-text-header-1-font-size);
8
- line-height: var(--yc-text-header-1-line-height);
7
+ font-size: var(--g-text-header-1-font-size);
8
+ line-height: var(--g-text-header-1-line-height);
9
9
  margin: 0 0 8px;
10
10
  }
11
11
  .pc-content-list_size_l .pc-content-list__icon {
@@ -22,8 +22,8 @@ unpredictable css rules order in build */
22
22
  margin-top: 16px;
23
23
  }
24
24
  .pc-content-list_size_s .pc-content-list__title {
25
- font-size: var(--yc-text-subheader-3-font-size);
26
- line-height: var(--yc-text-subheader-3-line-height);
25
+ font-size: var(--g-text-subheader-3-font-size);
26
+ line-height: var(--g-text-subheader-3-line-height);
27
27
  margin: 0 0 calc(8px / 2);
28
28
  }
29
29
  .pc-content-list_size_s .pc-content-list__icon {
@@ -34,8 +34,8 @@ unpredictable css rules order in build */
34
34
  margin-right: 8px;
35
35
  }
36
36
  .pc-content-list_size_s .pc-content-list__text {
37
- font-size: var(--yc-text-body-1-font-size);
38
- line-height: var(--yc-text-body-1-line-height);
37
+ font-size: var(--g-text-body-1-font-size);
38
+ line-height: var(--g-text-body-1-line-height);
39
39
  }
40
40
  .pc-content-list_size_s .pc-content-list__item:not(:last-child) {
41
41
  margin-bottom: 12px;
@@ -1,14 +1,14 @@
1
- import React, { useContext } from 'react';
1
+ import React from 'react';
2
2
  import { v4 as uuidv4 } from 'uuid';
3
3
  import { YFMWrapper } from '../../../components';
4
4
  import Image from '../../../components/Image/Image';
5
5
  import { getMediaImage } from '../../../components/Media/Image/utils';
6
- import { ThemeValueContext } from '../../../context/theme/ThemeValueContext';
6
+ import { useTheme } from '../../../context/theme';
7
7
  import { block, getThemedValue } from '../../../utils';
8
8
  import './ContentList.css';
9
9
  const b = block('content-list');
10
10
  const ContentList = ({ list, size }) => {
11
- const { themeValue: theme } = useContext(ThemeValueContext);
11
+ const theme = useTheme();
12
12
  return (React.createElement("div", { className: b({ size }) }, list === null || list === void 0 ? void 0 : list.map((item) => {
13
13
  const { icon, title, text } = item;
14
14
  const iconThemed = getThemedValue(icon, theme);
@@ -23,5 +23,5 @@
23
23
  padding-top: 128px;
24
24
  }
25
25
  .pc-divider-block_border {
26
- border-top: 1px solid var(--yc-color-line-generic);
26
+ border-top: 1px solid var(--g-color-line-generic);
27
27
  }
@@ -8,8 +8,8 @@ unpredictable css rules order in build */
8
8
  padding-left: 10px;
9
9
  }
10
10
  .pc-hubspot-form .hs-form-field > label {
11
- color: var(--yc-color-text-primary);
12
- font-size: var(--yc-text-body-2-font-size);
11
+ color: var(--g-color-text-primary);
12
+ font-size: var(--g-text-body-2-font-size);
13
13
  display: flex;
14
14
  width: 200px;
15
15
  max-width: 100%;
@@ -42,11 +42,11 @@ unpredictable css rules order in build */
42
42
  font-size: 15px;
43
43
  line-height: 16px;
44
44
  font-weight: normal;
45
- font-family: var(--yc-text-body-font-family);
46
- color: var(--yc-color-text-primary);
45
+ font-family: var(--g-text-body-font-family);
46
+ color: var(--g-color-text-primary);
47
47
  background-color: transparent;
48
- border: 1px solid var(--yc-color-line-generic);
49
- border-radius: var(--yc-border-radius-l);
48
+ border: 1px solid var(--g-color-line-generic);
49
+ border-radius: var(--g-border-radius-l);
50
50
  }
51
51
  .pc-hubspot-form .hs-form-field .input input[type=text]:hover,
52
52
  .pc-hubspot-form .hs-form-field .input input[type=number]:hover,
@@ -54,7 +54,7 @@ unpredictable css rules order in build */
54
54
  .pc-hubspot-form .hs-form-field .input input[type=email]:hover,
55
55
  .pc-hubspot-form .hs-form-field .input textarea:hover,
56
56
  .pc-hubspot-form .hs-form-field .input select:hover {
57
- border: 1px solid var(--yc-color-line-generic-hover);
57
+ border: 1px solid var(--g-color-line-generic-hover);
58
58
  }
59
59
  .pc-hubspot-form .hs-form-field .input input[type=text]::placeholder,
60
60
  .pc-hubspot-form .hs-form-field .input input[type=number]::placeholder,
@@ -62,7 +62,7 @@ unpredictable css rules order in build */
62
62
  .pc-hubspot-form .hs-form-field .input input[type=email]::placeholder,
63
63
  .pc-hubspot-form .hs-form-field .input textarea::placeholder,
64
64
  .pc-hubspot-form .hs-form-field .input select::placeholder {
65
- color: var(--yc-color-text-hint);
65
+ color: var(--g-color-text-hint);
66
66
  }
67
67
  .pc-hubspot-form .hs-form-field .input input[type=text]:focus,
68
68
  .pc-hubspot-form .hs-form-field .input input[type=number]:focus,
@@ -77,7 +77,7 @@ unpredictable css rules order in build */
77
77
  .pc-hubspot-form .hs-form-field .input input[type=tel]:focus,
78
78
  .pc-hubspot-form .hs-form-field .input input[type=email]:focus,
79
79
  .pc-hubspot-form .hs-form-field .input textarea:focus {
80
- border: 2px solid var(--yc-color-base-special);
80
+ border: 2px solid var(--g-color-base-brand);
81
81
  outline: none;
82
82
  }
83
83
  .pc-hubspot-form .hs-form-field .input textarea {
@@ -97,7 +97,7 @@ unpredictable css rules order in build */
97
97
  padding-right: 30px;
98
98
  }
99
99
  .pc-hubspot-form .hs-form-field .input select:focus {
100
- border: 1px solid var(--yc-color-line-generic-active);
100
+ border: 1px solid var(--g-color-line-generic-active);
101
101
  }
102
102
  .pc-hubspot-form .hs-form-field:not(.hs-fieldtype-textarea):not(.hs-fieldtype-booleancheckbox) {
103
103
  display: flex;
@@ -129,8 +129,8 @@ unpredictable css rules order in build */
129
129
  .pc-hubspot-form .hs-form-field .hs-form-checkbox-display span:not(.hs-form-required),
130
130
  .pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display span:not(.hs-form-required),
131
131
  .pc-hubspot-form .hs-form-field .hs-form-radio-display span:not(.hs-form-required) {
132
- color: var(--yc-color-text-primary);
133
- font-size: var(--yc-text-body-2-font-size);
132
+ color: var(--g-color-text-primary);
133
+ font-size: var(--g-text-body-2-font-size);
134
134
  line-height: 16px;
135
135
  padding-left: 7px;
136
136
  margin: 0;
@@ -155,7 +155,7 @@ unpredictable css rules order in build */
155
155
  width: 17px;
156
156
  background-color: transparent;
157
157
  border-radius: 4px;
158
- border: 1px solid var(--yc-color-line-generic-accent);
158
+ border: 1px solid var(--g-color-line-generic-accent);
159
159
  transition: background-color 0.1s linear;
160
160
  }
161
161
  .pc-hubspot-form .hs-form-field .hs-form-booleancheckbox-display span:not(.hs-form-required):after,
@@ -188,7 +188,7 @@ unpredictable css rules order in build */
188
188
  width: 17px;
189
189
  background-color: transparent;
190
190
  border-radius: 50%;
191
- border: 1px solid var(--yc-color-line-generic-accent);
191
+ border: 1px solid var(--g-color-line-generic-accent);
192
192
  transition: background-color 0.1s linear;
193
193
  }
194
194
  .pc-hubspot-form .hs-form-field .hs-form-radio-display span:after {
@@ -217,18 +217,18 @@ unpredictable css rules order in build */
217
217
  padding-left: 10px;
218
218
  }
219
219
  .pc-hubspot-form .hs-richtext p {
220
- color: var(--yc-color-text-primary);
221
- font-size: var(--yc-text-body-2-font-size);
222
- line-height: var(--yc-text-body-2-line-height);
223
- font-weight: var(--yc-text-body-font-weight);
220
+ color: var(--g-color-text-primary);
221
+ font-size: var(--g-text-body-2-font-size);
222
+ line-height: var(--g-text-body-2-line-height);
223
+ font-weight: var(--g-text-body-font-weight);
224
224
  margin: 0 0 20px;
225
225
  }
226
226
  .pc-hubspot-form .hs_error_rollup {
227
227
  padding-left: 10px;
228
- font-size: var(--yc-text-body-1-font-size);
229
- line-height: var(--yc-text-body-1-line-height);
230
- font-weight: var(--yc-text-body-font-weight);
231
- color: var(--yc-color-text-danger);
228
+ font-size: var(--g-text-body-1-font-size);
229
+ line-height: var(--g-text-body-1-line-height);
230
+ font-weight: var(--g-text-body-font-weight);
231
+ color: var(--g-color-text-danger);
232
232
  }
233
233
  .pc-hubspot-form .inputs-list {
234
234
  list-style: none;
@@ -236,7 +236,7 @@ unpredictable css rules order in build */
236
236
  margin: 0;
237
237
  }
238
238
  .pc-hubspot-form .hs-form-required {
239
- color: var(--yc-color-text-hint);
239
+ color: var(--g-color-text-hint);
240
240
  width: 10px;
241
241
  order: 1;
242
242
  position: absolute;
@@ -246,8 +246,8 @@ unpredictable css rules order in build */
246
246
  order: 3;
247
247
  padding: 0;
248
248
  margin: 3px 0 0;
249
- font-size: var(--yc-text-body-1-font-size);
250
- color: var(--yc-color-text-complementary);
249
+ font-size: var(--g-text-body-1-font-size);
250
+ color: var(--g-color-text-complementary);
251
251
  }
252
252
  .pc-hubspot-form .hs-error-msgs {
253
253
  width: 100%;
@@ -255,10 +255,10 @@ unpredictable css rules order in build */
255
255
  order: 4;
256
256
  }
257
257
  .pc-hubspot-form .hs-error-msg {
258
- font-size: var(--yc-text-body-1-font-size);
259
- line-height: var(--yc-text-body-1-line-height);
260
- font-weight: var(--yc-text-body-font-weight);
261
- color: var(--yc-color-text-danger);
258
+ font-size: var(--g-text-body-1-font-size);
259
+ line-height: var(--g-text-body-1-line-height);
260
+ font-weight: var(--g-text-body-font-weight);
261
+ color: var(--g-color-text-danger);
262
262
  display: block;
263
263
  }
264
264
  .pc-hubspot-form .actions {
@@ -268,7 +268,7 @@ unpredictable css rules order in build */
268
268
  .pc-hubspot-form .hs-button.primary {
269
269
  margin: 0;
270
270
  padding: 0;
271
- font-family: var(--yc-text-body-font-family);
271
+ font-family: var(--g-font-family-sans);
272
272
  font-size: inherit;
273
273
  font-weight: 400;
274
274
  color: inherit;
@@ -282,11 +282,11 @@ unpredictable css rules order in build */
282
282
  box-sizing: border-box;
283
283
  height: 44px;
284
284
  padding: 0 20px;
285
- border-radius: var(--yc-border-radius-xl);
286
- background-color: var(--yc-color-base-special);
287
- color: var(--yc-my-color-brand-text-contrast);
285
+ border-radius: var(--g-border-radius-xl);
286
+ background-color: var(--g-color-base-brand);
287
+ color: var(--g-color-text-brand-contrast);
288
288
  line-height: 44px;
289
- font-size: var(--yc-text-body-2-font-size);
289
+ font-size: var(--g-text-body-2-font-size);
290
290
  font-weight: normal;
291
291
  user-select: none;
292
292
  text-align: center;
@@ -294,16 +294,16 @@ unpredictable css rules order in build */
294
294
  appearance: none;
295
295
  }
296
296
  .pc-hubspot-form .hs-button.primary:hover {
297
- background-color: var(--yc-color-base-special-hover);
297
+ background-color: var(--g-color-base-brand-hover);
298
298
  }
299
299
  .pc-hubspot-form .grecaptcha-badge {
300
300
  box-shadow: none !important;
301
- border: 1px solid var(--yc-color-line-generic);
301
+ border: 1px solid var(--g-color-line-generic);
302
302
  }
303
303
  .pc-hubspot-form .hs_recaptcha div {
304
- font-size: var(--yc-text-body-2-font-size);
305
- line-height: var(--yc-text-body-2-line-height);
306
- font-weight: var(--yc-text-body-font-weight);
304
+ font-size: var(--g-text-body-2-font-size);
305
+ line-height: var(--g-text-body-2-line-height);
306
+ font-weight: var(--g-text-body-font-weight);
307
307
  }
308
308
  .pc-hubspot-form_mobile .hs-richtext,
309
309
  .pc-hubspot-form_mobile .hs-form-field,
@@ -1,6 +1,6 @@
1
1
  import React, { forwardRef, useContext, useMemo } from 'react';
2
2
  import { MobileContext } from '../../context/mobileContext';
3
- import { ThemeValueContext } from '../../context/theme/ThemeValueContext';
3
+ import { useTheme } from '../../context/theme';
4
4
  import { useAnalytics, useHandleHubspotEvents } from '../../hooks';
5
5
  import { useMetrika } from '../../hooks/useMetrika';
6
6
  import { DefaultEventNames } from '../../models';
@@ -13,8 +13,8 @@ const HubspotForm = forwardRef((props, ref) => {
13
13
  // hubspotEvents, // TODO: decide how to handle them
14
14
  analyticsEvents, onBeforeSubmit, onSubmit, onBeforeLoad, onLoad, createDOMElement, onSubmitError, } = props;
15
15
  const handleMetrika = useMetrika();
16
+ const themeValue = useTheme();
16
17
  const handleAnalytics = useAnalytics(DefaultEventNames.HubspotFormSubmit);
17
- const { themeValue } = useContext(ThemeValueContext);
18
18
  const isMobileValue = useContext(MobileContext);
19
19
  const theme = themeProp !== null && themeProp !== void 0 ? themeProp : themeValue;
20
20
  const mobile = isMobileProp !== null && isMobileProp !== void 0 ? isMobileProp : isMobileValue;
@@ -6,7 +6,7 @@ unpredictable css rules order in build */
6
6
  border-radius: var(--pc-border-radius);
7
7
  }
8
8
  .pc-layout-item__media_border {
9
- border: 1px solid var(--yc-color-line-generic);
9
+ border: 1px solid var(--g-color-line-generic);
10
10
  }
11
11
  .pc-layout-item__meta-info {
12
12
  margin: 16px 0 -8px 0;
@@ -13,7 +13,7 @@ unpredictable css rules order in build */
13
13
  width: 100%;
14
14
  }
15
15
  .pc-combined-price-detailed-block__row:not(:last-child) {
16
- border-bottom: 1px solid var(--yc-color-line-generic);
16
+ border-bottom: 1px solid var(--g-color-line-generic);
17
17
  margin-bottom: 12px !important;
18
18
  padding-bottom: 12px;
19
19
  }
@@ -22,7 +22,7 @@ unpredictable css rules order in build */
22
22
  padding-top: 12px;
23
23
  }
24
24
  .pc-combined-price-detailed-block__description_delimiter > * {
25
- border-top: 1px solid var(--yc-color-line-generic);
25
+ border-top: 1px solid var(--g-color-line-generic);
26
26
  }
27
27
  .pc-combined-price-detailed-block__empty-column {
28
28
  border-top: 0;