@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.
- package/README.md +1 -1
- package/build/cjs/blocks/Companies/Companies.css +5 -5
- package/build/cjs/blocks/Companies/Companies.js +3 -3
- package/build/cjs/blocks/ContentLayout/ContentLayout.css +4 -4
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -3
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
- package/build/cjs/blocks/Header/Header.css +22 -22
- package/build/cjs/blocks/Header/Header.js +2 -2
- package/build/cjs/blocks/Icons/Icons.css +2 -2
- package/build/cjs/blocks/Info/Info.css +1 -1
- package/build/cjs/blocks/Info/Info.js +3 -3
- package/build/cjs/blocks/Media/Media.js +2 -2
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
- package/build/cjs/blocks/Questions/Questions.css +12 -12
- package/build/cjs/blocks/Share/Share.css +14 -12
- package/build/cjs/blocks/Slider/Arrow/Arrow.css +4 -4
- package/build/cjs/blocks/Slider/Slider.css +10 -10
- package/build/cjs/blocks/Table/Table.css +5 -5
- package/build/cjs/blocks/Tabs/Tabs.css +6 -6
- package/build/cjs/blocks/Tabs/Tabs.js +2 -2
- package/build/cjs/components/Anchor/Anchor.d.ts +2 -3
- package/build/cjs/components/AnimateBlock/AnimateBlock.d.ts +2 -3
- package/build/cjs/components/Author/Author.css +8 -8
- package/build/cjs/components/Author/Author.js +2 -2
- package/build/cjs/components/BlockBase/BlockBase.d.ts +2 -2
- package/build/cjs/components/BlockBase/BlockBase.js +1 -1
- package/build/cjs/components/Button/Button.css +4 -0
- package/build/cjs/components/Button/Button.d.ts +2 -3
- package/build/cjs/components/Button/Button.js +3 -2
- package/build/cjs/components/ButtonTabs/ButtonTabs.css +4 -0
- package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +2 -3
- package/build/cjs/components/CardBase/CardBase.css +6 -6
- package/build/cjs/components/Control/Control.css +9 -9
- package/build/cjs/components/ErrorWrapper/ErrorWrapper.css +3 -3
- package/build/cjs/components/FileLink/FileLink.css +16 -56
- package/build/cjs/components/FileLink/FileLink.js +18 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.css +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.css +3 -3
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +3 -3
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
- package/build/cjs/components/Image/Image.d.ts +2 -3
- package/build/cjs/components/Link/Link.css +13 -13
- package/build/cjs/components/Media/Video/Video.js +1 -0
- package/build/cjs/components/MetaInfo/MetaInfo.css +2 -2
- package/build/cjs/components/OverflowScroller/OverflowScroller.css +1 -1
- package/build/cjs/components/ReactPlayer/CustomBarControls.css +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.css +2 -2
- package/build/cjs/components/Table/Table.css +8 -8
- package/build/cjs/components/Title/Title.css +4 -4
- package/build/cjs/components/Title/TitleItem.css +19 -19
- package/build/cjs/components/Title/TitleItem.d.ts +2 -3
- package/build/cjs/components/Title/TitleItem.js +2 -2
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
- package/build/cjs/components/VideoBlock/VideoBlock.css +2 -2
- package/build/cjs/components/constants.d.ts +3 -1
- package/build/cjs/components/constants.js +4 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.css +50 -30
- package/build/cjs/containers/PageConstructor/PageConstructor.js +6 -3
- package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -3
- package/build/cjs/containers/PageConstructor/Provider.js +2 -2
- package/build/cjs/context/theme/ThemeContext.d.ts +2 -3
- package/build/cjs/context/theme/ThemeContext.js +0 -1
- package/build/cjs/context/theme/index.d.ts +0 -1
- package/build/cjs/context/theme/index.js +0 -1
- package/build/cjs/context/theme/useTheme.d.ts +1 -1
- package/build/cjs/context/theme/useTheme.js +2 -2
- package/build/cjs/context/theme/withTheme.js +1 -1
- package/build/cjs/editor/components/AddBlock/AddBlock.css +6 -5
- package/build/cjs/editor/components/AddBlock/AddBlock.js +1 -1
- package/build/cjs/editor/components/ControlPanel/ControlPanel.css +12 -5
- package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +4 -2
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +16 -9
- package/build/cjs/editor/components/EditBlock/EditBlock.css +2 -2
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +2 -2
- package/build/cjs/editor/components/Layout/Layout.css +11 -9
- package/build/cjs/editor/components/Layout/Layout.d.ts +4 -1
- package/build/cjs/editor/components/Layout/Layout.js +2 -2
- package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.css +4 -4
- package/build/cjs/editor/containers/Editor/Editor.js +5 -5
- package/build/cjs/editor/containers/Form/Form.css +12 -12
- package/build/cjs/editor/data/previews/default-preview.js +1 -1
- package/build/cjs/editor/data/previews/header-block.js +5 -5
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +1 -1
- package/build/cjs/editor/store/index.d.ts +3 -1
- package/build/cjs/editor/store/index.js +7 -2
- package/build/cjs/editor/store/reducer.d.ts +8 -2
- package/build/cjs/editor/store/reducer.js +4 -1
- package/build/cjs/editor/styles/root.css +6 -4
- package/build/cjs/grid/Col/Col.d.ts +3 -4
- package/build/cjs/grid/Col/Col.js +2 -2
- package/build/cjs/grid/Grid/Grid.css +1 -1
- package/build/cjs/models/common.d.ts +4 -0
- package/build/cjs/models/common.js +5 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +0 -4
- package/build/cjs/models/constructor-items/common.d.ts +3 -5
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.css +4 -4
- package/build/cjs/navigation/components/Logo/Logo.css +3 -3
- package/build/cjs/navigation/components/Logo/Logo.js +3 -3
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.css +7 -7
- package/build/cjs/navigation/components/Navigation/Navigation.css +2 -2
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.css +5 -5
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.css +3 -3
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
- package/build/cjs/sub-blocks/BannerCard/BannerCard.css +16 -16
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -3
- package/build/cjs/sub-blocks/Content/Content.css +22 -22
- package/build/cjs/sub-blocks/Content/ContentList/ContentList.css +6 -6
- package/build/cjs/sub-blocks/Content/ContentList/ContentList.js +3 -3
- package/build/cjs/sub-blocks/Divider/Divider.css +1 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +39 -39
- package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
- package/build/cjs/sub-blocks/Quote/Quote.css +10 -10
- package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
- package/build/cjs/utils/theme.d.ts +1 -1
- package/build/esm/blocks/Companies/Companies.css +5 -5
- package/build/esm/blocks/Companies/Companies.js +3 -3
- package/build/esm/blocks/ContentLayout/ContentLayout.css +4 -4
- package/build/esm/blocks/ContentLayout/ContentLayout.js +1 -3
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
- package/build/esm/blocks/Header/Header.css +22 -22
- package/build/esm/blocks/Header/Header.js +2 -2
- package/build/esm/blocks/Icons/Icons.css +2 -2
- package/build/esm/blocks/Info/Info.css +1 -1
- package/build/esm/blocks/Info/Info.js +3 -3
- package/build/esm/blocks/Media/Media.js +3 -3
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
- package/build/esm/blocks/Questions/Questions.css +12 -12
- package/build/esm/blocks/Share/Share.css +14 -12
- package/build/esm/blocks/Slider/Arrow/Arrow.css +4 -4
- package/build/esm/blocks/Slider/Slider.css +10 -10
- package/build/esm/blocks/Table/Table.css +5 -5
- package/build/esm/blocks/Tabs/Tabs.css +6 -6
- package/build/esm/blocks/Tabs/Tabs.js +3 -3
- package/build/esm/components/Anchor/Anchor.d.ts +2 -3
- package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +2 -3
- package/build/esm/components/Author/Author.css +8 -8
- package/build/esm/components/Author/Author.js +2 -2
- package/build/esm/components/BlockBase/BlockBase.d.ts +2 -2
- package/build/esm/components/BlockBase/BlockBase.js +1 -1
- package/build/esm/components/Button/Button.css +4 -0
- package/build/esm/components/Button/Button.d.ts +2 -3
- package/build/esm/components/Button/Button.js +4 -3
- package/build/esm/components/ButtonTabs/ButtonTabs.css +4 -0
- package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +2 -3
- package/build/esm/components/CardBase/CardBase.css +6 -6
- package/build/esm/components/Control/Control.css +9 -9
- package/build/esm/components/ErrorWrapper/ErrorWrapper.css +3 -3
- package/build/esm/components/FileLink/FileLink.css +16 -56
- package/build/esm/components/FileLink/FileLink.js +18 -1
- package/build/esm/components/FullWidthBackground/FullWidthBackground.css +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.css +3 -3
- package/build/esm/components/FullscreenMedia/FullscreenMedia.css +3 -3
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
- package/build/esm/components/Image/Image.d.ts +2 -3
- package/build/esm/components/Link/Link.css +13 -13
- package/build/esm/components/Media/Video/Video.js +1 -0
- package/build/esm/components/MetaInfo/MetaInfo.css +2 -2
- package/build/esm/components/OverflowScroller/OverflowScroller.css +1 -1
- package/build/esm/components/ReactPlayer/CustomBarControls.css +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.css +2 -2
- package/build/esm/components/Table/Table.css +8 -8
- package/build/esm/components/Title/Title.css +4 -4
- package/build/esm/components/Title/TitleItem.css +19 -19
- package/build/esm/components/Title/TitleItem.d.ts +2 -3
- package/build/esm/components/Title/TitleItem.js +2 -2
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
- package/build/esm/components/VideoBlock/VideoBlock.css +2 -2
- package/build/esm/components/constants.d.ts +3 -1
- package/build/esm/components/constants.js +3 -1
- package/build/esm/containers/PageConstructor/PageConstructor.css +50 -30
- package/build/esm/containers/PageConstructor/PageConstructor.js +7 -4
- package/build/esm/containers/PageConstructor/Provider.d.ts +2 -3
- package/build/esm/containers/PageConstructor/Provider.js +2 -2
- package/build/esm/context/theme/ThemeContext.d.ts +2 -3
- package/build/esm/context/theme/ThemeContext.js +0 -1
- package/build/esm/context/theme/index.d.ts +0 -1
- package/build/esm/context/theme/index.js +0 -1
- package/build/esm/context/theme/useTheme.d.ts +1 -1
- package/build/esm/context/theme/useTheme.js +2 -2
- package/build/esm/context/theme/withTheme.js +1 -1
- package/build/esm/editor/components/AddBlock/AddBlock.css +6 -5
- package/build/esm/editor/components/AddBlock/AddBlock.js +1 -1
- package/build/esm/editor/components/ControlPanel/ControlPanel.css +12 -5
- package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +4 -2
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +17 -10
- package/build/esm/editor/components/EditBlock/EditBlock.css +2 -2
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +2 -2
- package/build/esm/editor/components/Layout/Layout.css +11 -9
- package/build/esm/editor/components/Layout/Layout.d.ts +4 -1
- package/build/esm/editor/components/Layout/Layout.js +2 -2
- package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.css +4 -4
- package/build/esm/editor/containers/Editor/Editor.js +5 -5
- package/build/esm/editor/containers/Form/Form.css +12 -12
- package/build/esm/editor/data/previews/default-preview.js +1 -1
- package/build/esm/editor/data/previews/header-block.js +5 -5
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +1 -1
- package/build/esm/editor/store/index.d.ts +3 -1
- package/build/esm/editor/store/index.js +8 -3
- package/build/esm/editor/store/reducer.d.ts +8 -2
- package/build/esm/editor/store/reducer.js +3 -0
- package/build/esm/editor/styles/root.css +6 -4
- package/build/esm/grid/Col/Col.d.ts +3 -4
- package/build/esm/grid/Col/Col.js +2 -2
- package/build/esm/grid/Grid/Grid.css +1 -1
- package/build/esm/models/common.d.ts +4 -0
- package/build/esm/models/common.js +4 -0
- package/build/esm/models/constructor-items/blocks.d.ts +0 -4
- package/build/esm/models/constructor-items/common.d.ts +3 -5
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.css +4 -4
- package/build/esm/navigation/components/Logo/Logo.css +3 -3
- package/build/esm/navigation/components/Logo/Logo.js +3 -3
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.css +7 -7
- package/build/esm/navigation/components/Navigation/Navigation.css +2 -2
- package/build/esm/navigation/components/NavigationItem/NavigationItem.css +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.css +5 -5
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
- package/build/esm/navigation/components/SocialIcon/SocialIcon.css +3 -3
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
- package/build/esm/sub-blocks/BannerCard/BannerCard.css +16 -16
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -3
- package/build/esm/sub-blocks/Content/Content.css +22 -22
- package/build/esm/sub-blocks/Content/ContentList/ContentList.css +6 -6
- package/build/esm/sub-blocks/Content/ContentList/ContentList.js +3 -3
- package/build/esm/sub-blocks/Divider/Divider.css +1 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +39 -39
- package/build/esm/sub-blocks/HubspotForm/index.js +2 -2
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +1 -1
- package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
- package/build/esm/sub-blocks/Quote/Quote.css +10 -10
- package/build/esm/sub-blocks/Quote/Quote.js +3 -3
- package/build/esm/utils/theme.d.ts +1 -1
- package/package.json +7 -5
- package/server/components/constants.d.ts +3 -1
- package/server/components/constants.js +4 -2
- package/server/models/common.d.ts +4 -0
- package/server/models/common.js +5 -1
- package/server/models/constructor-items/blocks.d.ts +0 -4
- package/server/models/constructor-items/common.d.ts +3 -5
- package/server/utils/theme.d.ts +1 -1
- package/styles/colors/dark.scss +6 -0
- package/styles/colors/light.scss +6 -0
- package/styles/colors/social.scss +10 -0
- package/styles/mixins.scss +21 -25
- package/styles/root.scss +28 -14
- package/styles/storybook/common.scss +6 -6
- package/styles/storybook/palette.scss +6 -6
- package/styles/storybook/typography.scss +46 -46
- package/styles/styles.css +15 -15
- package/styles/variables.scss +0 -8
- package/styles/yfm.scss +12 -12
- package/widget/index.js +1 -1
- package/build/cjs/context/theme/ThemeProvider.d.ts +0 -22
- package/build/cjs/context/theme/ThemeProvider.js +0 -49
- package/build/cjs/context/theme/ThemeValueContext.d.ts +0 -7
- package/build/cjs/context/theme/ThemeValueContext.js +0 -9
- package/build/cjs/context/theme/useThemeValue.d.ts +0 -2
- package/build/cjs/context/theme/useThemeValue.js +0 -11
- package/build/esm/context/theme/ThemeProvider.d.ts +0 -22
- package/build/esm/context/theme/ThemeProvider.js +0 -44
- package/build/esm/context/theme/ThemeValueContext.d.ts +0 -7
- package/build/esm/context/theme/ThemeValueContext.js +0 -5
- package/build/esm/context/theme/useThemeValue.d.ts +0 -2
- package/build/esm/context/theme/useThemeValue.js +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AnimateBlock, HTML, Title } from '../../components/';
|
|
3
3
|
import Image from '../../components/Image/Image';
|
|
4
4
|
import { getMediaImage } from '../../components/Media/Image/utils';
|
|
5
|
-
import {
|
|
5
|
+
import { useTheme } from '../../context/theme';
|
|
6
6
|
import { Col, Row } from '../../grid';
|
|
7
7
|
import { Content } from '../../sub-blocks';
|
|
8
8
|
import { block, getThemedValue } from '../../utils';
|
|
@@ -14,7 +14,7 @@ const DEFAULT_SIZES = {
|
|
|
14
14
|
md: 4,
|
|
15
15
|
};
|
|
16
16
|
export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, }) => {
|
|
17
|
-
const
|
|
17
|
+
const theme = useTheme();
|
|
18
18
|
return (React.createElement(AnimateBlock, { className: b(), animate: animated },
|
|
19
19
|
React.createElement(Title, { title: title, subtitle: description, className: b('header') }),
|
|
20
20
|
React.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(--
|
|
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(--
|
|
52
|
-
line-height: var(--
|
|
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(--
|
|
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(--
|
|
60
|
-
line-height: var(--
|
|
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(--
|
|
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(--
|
|
74
|
-
color: var(--
|
|
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(--
|
|
80
|
-
line-height: var(--
|
|
81
|
-
margin-block-end: var(--
|
|
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(--
|
|
86
|
-
line-height: var(--
|
|
87
|
-
color: var(--
|
|
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(--
|
|
168
|
+
background-color: var(--g-color-base-background);
|
|
169
169
|
}
|
|
170
170
|
.pc-header-block__overtitle {
|
|
171
|
-
font-size: var(--
|
|
172
|
-
line-height: var(--
|
|
173
|
-
margin-block-start: var(--
|
|
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(--
|
|
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(--
|
|
188
|
-
color: var(--
|
|
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 {
|
|
@@ -4,7 +4,7 @@ import HeaderBreadcrumbs from '../../components/HeaderBreadcrumbs/HeaderBreadcru
|
|
|
4
4
|
import { getMediaImage } from '../../components/Media/Image/utils';
|
|
5
5
|
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
|
|
6
6
|
import { MobileContext } from '../../context/mobileContext';
|
|
7
|
-
import {
|
|
7
|
+
import { useTheme } from '../../context/theme';
|
|
8
8
|
import { Col, Grid, Row } from '../../grid';
|
|
9
9
|
import { block, getThemedValue } from '../../utils';
|
|
10
10
|
import { getImageSize, getTitleSizes, titleWithImageSizes } from './utils';
|
|
@@ -20,7 +20,7 @@ const FullWidthBackground = ({ background }) => (React.createElement("div", { cl
|
|
|
20
20
|
export const HeaderBlock = (props) => {
|
|
21
21
|
const { title, overtitle, description, buttons, image, video, width = 'm', imageSize, offset = 'default', background, theme: textTheme = 'light', verticalOffset = 'm', className, breadcrumbs, status, children, } = props;
|
|
22
22
|
const isMobile = useContext(MobileContext);
|
|
23
|
-
const
|
|
23
|
+
const theme = useTheme();
|
|
24
24
|
const hasRightSideImage = Boolean(image || video);
|
|
25
25
|
const curImageSize = imageSize || getImageSize(width);
|
|
26
26
|
const titleSizes = hasRightSideImage ? titleWithImageSizes(curImageSize) : 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(--
|
|
8
|
-
line-height: var(--
|
|
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(--
|
|
4
|
+
background-color: var(--g-color-base-brand);
|
|
5
5
|
padding: 96px 64px;
|
|
6
6
|
border-radius: var(--pc-border-radius);
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useTheme } from '../../context/theme';
|
|
3
3
|
import { Col, Grid, Row } from '../../grid';
|
|
4
4
|
import Content from '../../sub-blocks/Content/Content';
|
|
5
5
|
import { block, getThemedValue } from '../../utils';
|
|
@@ -8,7 +8,7 @@ const b = block('info-block');
|
|
|
8
8
|
const sizes = { md: 6, all: 12 };
|
|
9
9
|
export const InfoBlock = (props) => {
|
|
10
10
|
const { backgroundColor, theme: blockTheme = 'dark', buttons = [], title, sectionsTitle, links = [], rightContent = {}, leftContent = {}, } = props;
|
|
11
|
-
const
|
|
11
|
+
const theme = useTheme();
|
|
12
12
|
const contentTheme = blockTheme === 'dark' ? 'dark' : 'default';
|
|
13
13
|
const rightLinks = [
|
|
14
14
|
...((rightContent === null || rightContent === void 0 ? void 0 : rightContent.links) || []),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
2
|
import Media from '../../components/Media/Media';
|
|
3
3
|
import MediaBase from '../../components/MediaBase/MediaBase';
|
|
4
|
-
import {
|
|
4
|
+
import { useTheme } from '../../context/theme';
|
|
5
5
|
import { getThemedValue } from '../../utils';
|
|
6
6
|
export const MediaBlock = (props) => {
|
|
7
7
|
const { media } = props;
|
|
8
8
|
const [play, setPlay] = useState(false);
|
|
9
|
-
const
|
|
9
|
+
const theme = useTheme();
|
|
10
10
|
const mediaThemed = getThemedValue(media, theme);
|
|
11
11
|
return (React.createElement(MediaBase, Object.assign({}, props, { onScroll: () => setPlay(true) }),
|
|
12
12
|
React.createElement(MediaBase.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(--
|
|
9
|
-
line-height: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
48
|
-
line-height: var(--
|
|
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(--
|
|
60
|
+
background-color: var(--g-color-base-background);
|
|
61
61
|
}
|
|
62
62
|
.pc-PromoFeaturesBlock__card_default {
|
|
63
|
-
background-color: var(--
|
|
63
|
+
background-color: var(--g-color-base-misc-light);
|
|
64
64
|
}
|
|
65
65
|
.pc-PromoFeaturesBlock__card_accent {
|
|
66
|
-
color: var(--
|
|
67
|
-
background-color: var(--
|
|
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(--
|
|
71
|
+
color: var(--g-color-text-light-primary);
|
|
72
72
|
}
|
|
73
73
|
.pc-PromoFeaturesBlock__card_accent-light {
|
|
74
|
-
background-color: var(--
|
|
74
|
+
background-color: var(--pc-color-base-copper);
|
|
75
75
|
}
|
|
76
76
|
.pc-PromoFeaturesBlock__card_primary {
|
|
77
|
-
background-color: var(--
|
|
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(--
|
|
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(--
|
|
22
|
-
line-height: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
40
|
-
color: var(--
|
|
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(--
|
|
44
|
-
line-height: var(--
|
|
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(--
|
|
51
|
+
color: var(--g-color-text-primary);
|
|
52
52
|
}
|
|
53
53
|
.pc-QuestionsBlock__link {
|
|
54
|
-
font-size: var(--
|
|
55
|
-
line-height: var(--
|
|
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(--
|
|
9
|
-
line-height: var(--
|
|
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(--
|
|
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
|
-
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
46
|
+
color: var(--g-color-text-secondary);
|
|
47
47
|
border-radius: 100%;
|
|
48
|
-
background-color: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
183
|
+
color: var(--g-color-text-secondary);
|
|
184
184
|
}
|
|
185
185
|
.pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_l {
|
|
186
|
-
font-size: var(--
|
|
187
|
-
line-height: var(--
|
|
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(--
|
|
191
|
-
line-height: var(--
|
|
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(--
|
|
195
|
-
line-height: var(--
|
|
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(--
|
|
9
|
-
line-height: var(--
|
|
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(--
|
|
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(--
|
|
19
|
-
line-height: var(--
|
|
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 {
|
|
@@ -59,10 +59,10 @@ unpredictable css rules order in build */
|
|
|
59
59
|
border-radius: var(--pc-border-radius);
|
|
60
60
|
}
|
|
61
61
|
.pc-tabs-block__caption {
|
|
62
|
-
font-size: var(--
|
|
63
|
-
line-height: var(--
|
|
62
|
+
font-size: var(--g-text-body-2-font-size);
|
|
63
|
+
line-height: var(--g-text-body-2-line-height);
|
|
64
64
|
margin: 12px 0 0;
|
|
65
|
-
color: var(--
|
|
65
|
+
color: var(--g-color-text-secondary);
|
|
66
66
|
}
|
|
67
67
|
.pc-tabs-block__content {
|
|
68
68
|
display: flex;
|
|
@@ -81,10 +81,10 @@ unpredictable css rules order in build */
|
|
|
81
81
|
margin: 0 auto 12px;
|
|
82
82
|
}
|
|
83
83
|
.pc-tabs-block__content-title.pc-tabs-block__content-title > * {
|
|
84
|
-
font-size: var(--
|
|
85
|
-
line-height: var(--
|
|
84
|
+
font-size: var(--g-text-header-1-font-size);
|
|
85
|
+
line-height: var(--g-text-header-1-line-height);
|
|
86
86
|
color: var(--pc-text-header-color);
|
|
87
|
-
font-weight: var(--
|
|
87
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
@media (max-width: 769px) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { Fragment,
|
|
1
|
+
import React, { Fragment, useRef, useState } from 'react';
|
|
2
2
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
3
3
|
import ButtonTabs from '../../components/ButtonTabs/ButtonTabs';
|
|
4
4
|
import FullscreenImage from '../../components/FullscreenImage/FullscreenImage';
|
|
@@ -6,7 +6,7 @@ import { getMediaImage } from '../../components/Media/Image/utils';
|
|
|
6
6
|
import Media from '../../components/Media/Media';
|
|
7
7
|
import Title from '../../components/Title/Title';
|
|
8
8
|
import { getHeight } from '../../components/VideoBlock/VideoBlock';
|
|
9
|
-
import {
|
|
9
|
+
import { useTheme } from '../../context/theme';
|
|
10
10
|
import { Col, GridColumnOrderClasses, Row } from '../../grid';
|
|
11
11
|
import { Content } from '../../sub-blocks';
|
|
12
12
|
import { block, getThemedValue } from '../../utils';
|
|
@@ -16,7 +16,7 @@ export const TabsBlock = ({ items, title, description, animated, tabsColSizes, c
|
|
|
16
16
|
var _a;
|
|
17
17
|
const [activeTab, setActiveTab] = useState(items[0].tabName);
|
|
18
18
|
const [play, setPlay] = useState(false);
|
|
19
|
-
const
|
|
19
|
+
const theme = useTheme();
|
|
20
20
|
const tabs = items.map(({ tabName }) => ({ title: tabName, id: tabName }));
|
|
21
21
|
const activeTabData = items.find(({ tabName }) => tabName === activeTab);
|
|
22
22
|
const isReverse = direction === 'content-media';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ClassNameProps } from '../../models';
|
|
1
|
+
import { ClassNameProps, QAProps } from '../../models';
|
|
2
2
|
import './Anchor.css';
|
|
3
3
|
export declare const qaIdByDefault = "qa-anchor";
|
|
4
|
-
export interface AnchorProps extends ClassNameProps {
|
|
4
|
+
export interface AnchorProps extends ClassNameProps, QAProps {
|
|
5
5
|
id: string;
|
|
6
|
-
qa?: string;
|
|
7
6
|
}
|
|
8
7
|
declare const Anchor: ({ id, className, qa }: AnchorProps) => JSX.Element;
|
|
9
8
|
export default Anchor;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { AnimateContextProps } from '../../context/animateContext/AnimateContext';
|
|
3
|
-
import { WithChildren } from '../../models';
|
|
4
|
-
export interface AnimateBlockProps extends AnimateContextProps {
|
|
3
|
+
import { QAProps, WithChildren } from '../../models';
|
|
4
|
+
export interface AnimateBlockProps extends AnimateContextProps, QAProps {
|
|
5
5
|
animate?: boolean;
|
|
6
6
|
offset?: number;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
onScroll?: () => void;
|
|
10
|
-
qa?: string;
|
|
11
10
|
}
|
|
12
11
|
declare const AnimateBlock: (props: WithChildren<AnimateBlockProps>) => JSX.Element;
|
|
13
12
|
export default AnimateBlock;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
3
|
.pc-author {
|
|
4
|
-
font-size: var(--
|
|
5
|
-
line-height: var(--
|
|
4
|
+
font-size: var(--g-text-body-3-font-size);
|
|
5
|
+
line-height: var(--g-text-body-3-line-height);
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
|
-
color: var(--
|
|
8
|
+
color: var(--g-color-text-secondary);
|
|
9
9
|
}
|
|
10
10
|
.pc-author__avatar {
|
|
11
11
|
width: 80px;
|
|
@@ -23,13 +23,13 @@ unpredictable css rules order in build */
|
|
|
23
23
|
display: block;
|
|
24
24
|
}
|
|
25
25
|
.pc-author__name {
|
|
26
|
-
font-size: var(--
|
|
27
|
-
line-height: var(--
|
|
28
|
-
color: var(--
|
|
26
|
+
font-size: var(--g-text-body-3-font-size);
|
|
27
|
+
line-height: var(--g-text-body-3-line-height);
|
|
28
|
+
color: var(--g-color-text-primary);
|
|
29
29
|
}
|
|
30
30
|
.pc-author__description {
|
|
31
|
-
font-size: var(--
|
|
32
|
-
line-height: var(--
|
|
31
|
+
font-size: var(--g-text-body-2-font-size);
|
|
32
|
+
line-height: var(--g-text-body-2-line-height);
|
|
33
33
|
padding-top: 4px;
|
|
34
34
|
}
|
|
35
35
|
.pc-author__label:not(:first-child) {
|
|
@@ -5,10 +5,10 @@ import { Image } from '../index';
|
|
|
5
5
|
import './Author.css';
|
|
6
6
|
const b = block('author');
|
|
7
7
|
const Author = (props) => {
|
|
8
|
-
const { author, className, authorContainerClassName, type = AuthorType.Column,
|
|
8
|
+
const { author, className, authorContainerClassName, type = AuthorType.Column, qa } = props;
|
|
9
9
|
const { firstName, secondName, description, avatar } = author;
|
|
10
10
|
const name = secondName ? `${firstName} ${secondName}` : firstName;
|
|
11
|
-
return (React.createElement("div", { className: b({ type }, className), "data-qa":
|
|
11
|
+
return (React.createElement("div", { className: b({ type }, className), "data-qa": qa },
|
|
12
12
|
avatar && (React.createElement("div", { className: b('avatar', authorContainerClassName) }, typeof avatar === 'string' ? React.createElement(Image, { src: avatar }) : avatar)),
|
|
13
13
|
React.createElement("div", { className: b('label') },
|
|
14
14
|
React.createElement("div", { className: b('name') }, name),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { BlockBaseProps, ClassNameProps } from '../../models';
|
|
2
|
+
import { BlockBaseProps, ClassNameProps, QAProps } from '../../models';
|
|
3
3
|
import './BlockBase.css';
|
|
4
|
-
export type BlockBaseFullProps = BlockBaseProps & ClassNameProps & PropsWithChildren;
|
|
4
|
+
export type BlockBaseFullProps = BlockBaseProps & ClassNameProps & PropsWithChildren & QAProps;
|
|
5
5
|
declare const BlockBase: (props: BlockBaseFullProps) => JSX.Element;
|
|
6
6
|
export default BlockBase;
|
|
@@ -6,7 +6,7 @@ import './BlockBase.css';
|
|
|
6
6
|
const b = block('block-base');
|
|
7
7
|
const BlockBase = (props) => {
|
|
8
8
|
const { anchor, visible, children, className, resetPaddings, qa } = props;
|
|
9
|
-
return (React.createElement(Col, { className: b({ ['reset-paddings']: resetPaddings }, className), visible: visible, reset: true,
|
|
9
|
+
return (React.createElement(Col, { className: b({ ['reset-paddings']: resetPaddings }, className), visible: visible, reset: true, qa: qa },
|
|
10
10
|
anchor && React.createElement(Anchor, { id: anchor.url, className: b('anchor') }),
|
|
11
11
|
children));
|
|
12
12
|
};
|