@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
|
@@ -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(--
|
|
12
|
-
font-size: var(--
|
|
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(--
|
|
46
|
-
color: var(--
|
|
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(--
|
|
49
|
-
border-radius: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
133
|
-
font-size: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
221
|
-
font-size: var(--
|
|
222
|
-
line-height: var(--
|
|
223
|
-
font-weight: var(--
|
|
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(--
|
|
229
|
-
line-height: var(--
|
|
230
|
-
font-weight: var(--
|
|
231
|
-
color: var(--
|
|
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(--
|
|
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(--
|
|
250
|
-
color: var(--
|
|
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(--
|
|
259
|
-
line-height: var(--
|
|
260
|
-
font-weight: var(--
|
|
261
|
-
color: var(--
|
|
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(--
|
|
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(--
|
|
286
|
-
background-color: var(--
|
|
287
|
-
color: var(--
|
|
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(--
|
|
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(--
|
|
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(--
|
|
301
|
+
border: 1px solid var(--g-color-line-generic);
|
|
302
302
|
}
|
|
303
303
|
.pc-hubspot-form .hs_recaptcha div {
|
|
304
|
-
font-size: var(--
|
|
305
|
-
line-height: var(--
|
|
306
|
-
font-weight: var(--
|
|
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,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
5
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
6
|
-
const
|
|
6
|
+
const theme_1 = require("../../context/theme");
|
|
7
7
|
const hooks_1 = require("../../hooks");
|
|
8
8
|
const useMetrika_1 = require("../../hooks/useMetrika");
|
|
9
9
|
const models_1 = require("../../models");
|
|
@@ -15,8 +15,8 @@ const HubspotForm = (0, react_1.forwardRef)((props, ref) => {
|
|
|
15
15
|
// hubspotEvents, // TODO: decide how to handle them
|
|
16
16
|
analyticsEvents, onBeforeSubmit, onSubmit, onBeforeLoad, onLoad, createDOMElement, onSubmitError, } = props;
|
|
17
17
|
const handleMetrika = (0, useMetrika_1.useMetrika)();
|
|
18
|
+
const themeValue = (0, theme_1.useTheme)();
|
|
18
19
|
const handleAnalytics = (0, hooks_1.useAnalytics)(models_1.DefaultEventNames.HubspotFormSubmit);
|
|
19
|
-
const { themeValue } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
|
|
20
20
|
const isMobileValue = (0, react_1.useContext)(mobileContext_1.MobileContext);
|
|
21
21
|
const theme = themeProp !== null && themeProp !== void 0 ? themeProp : themeValue;
|
|
22
22
|
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(--
|
|
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(--
|
|
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(--
|
|
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;
|
|
@@ -3,26 +3,26 @@ unpredictable css rules order in build */
|
|
|
3
3
|
.pc-price-description {
|
|
4
4
|
margin-bottom: 12px;
|
|
5
5
|
}
|
|
6
|
-
.pc-price-description__title_size_l, .pc-price-description__description_size_l, .pc-price-description__detailed-title_size_l
|
|
7
|
-
font-size: var(--
|
|
8
|
-
line-height: var(--
|
|
6
|
+
.pc-price-description__title_size_l, .pc-price-description__description_size_l, .pc-price-description__detailed-title_size_l {
|
|
7
|
+
font-size: var(--g-text-header-1-font-size);
|
|
8
|
+
line-height: var(--g-text-header-1-line-height);
|
|
9
9
|
}
|
|
10
|
-
.pc-price-description__title_size_m, .pc-price-description__description_size_m, .pc-price-description__detailed-title_size_m
|
|
11
|
-
font-size: var(--
|
|
12
|
-
line-height: var(--
|
|
10
|
+
.pc-price-description__title_size_m, .pc-price-description__description_size_m, .pc-price-description__detailed-title_size_m {
|
|
11
|
+
font-size: var(--g-text-body-2-font-size);
|
|
12
|
+
line-height: var(--g-text-body-2-line-height);
|
|
13
13
|
}
|
|
14
|
-
.pc-price-description__title_size_s, .pc-price-description__description_size_s, .pc-price-description__detailed-title_size_s
|
|
15
|
-
font-size: var(--
|
|
16
|
-
line-height: var(--
|
|
14
|
+
.pc-price-description__title_size_s, .pc-price-description__description_size_s, .pc-price-description__detailed-title_size_s {
|
|
15
|
+
font-size: var(--g-text-body-1-font-size);
|
|
16
|
+
line-height: var(--g-text-body-1-line-height);
|
|
17
17
|
}
|
|
18
18
|
.pc-price-description__main-title {
|
|
19
19
|
font-weight: 500;
|
|
20
20
|
}
|
|
21
21
|
.pc-price-description__main-title_color_cornflower {
|
|
22
|
-
color: var(--
|
|
22
|
+
color: var(--g-color-base-brand);
|
|
23
23
|
}
|
|
24
24
|
.pc-price-description__main-title_color_black {
|
|
25
|
-
color: var(--
|
|
25
|
+
color: var(--g-color-text-primary);
|
|
26
26
|
}
|
|
27
27
|
.pc-price-description__title {
|
|
28
28
|
display: flex;
|
|
@@ -35,25 +35,13 @@ unpredictable css rules order in build */
|
|
|
35
35
|
.pc-price-description__detailed-title {
|
|
36
36
|
margin-left: 4px;
|
|
37
37
|
}
|
|
38
|
-
.pc-price-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
width: fit-content;
|
|
38
|
+
.pc-price-description__label_size_s {
|
|
39
|
+
font-size: var(--g-text-body-2-font-size);
|
|
40
|
+
line-height: var(--g-text-body-2-line-height);
|
|
42
41
|
}
|
|
43
|
-
.pc-price-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
.pc-price-description__label_color_green {
|
|
47
|
-
background: var(--yc-color-promo-highlight-mint);
|
|
48
|
-
}
|
|
49
|
-
.pc-price-description__label_color_yellow {
|
|
50
|
-
background: var(--yc-color-promo-highlight-gold);
|
|
51
|
-
}
|
|
52
|
-
.pc-price-description__label_color_purple {
|
|
53
|
-
background: var(--yc-color-promo-highlight-neon);
|
|
54
|
-
}
|
|
55
|
-
.pc-price-description__label_color_red {
|
|
56
|
-
background: var(--yc-color-promo-highlight-tomato);
|
|
42
|
+
.pc-price-description__label_size_xs {
|
|
43
|
+
font-size: var(--g-text-body-1-font-size);
|
|
44
|
+
line-height: var(--g-text-body-1-line-height);
|
|
57
45
|
}
|
|
58
46
|
@media (max-width: 577px) {
|
|
59
47
|
.pc-price-description {
|
|
@@ -2,10 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
5
6
|
const components_1 = require("../../../components");
|
|
6
7
|
const stylesContext_1 = require("../../../context/stylesContext");
|
|
8
|
+
const models_1 = require("../../../models");
|
|
7
9
|
const utils_1 = require("../../../utils");
|
|
8
10
|
const b = (0, utils_1.block)('price-description');
|
|
11
|
+
const LabelColorsMapping = {
|
|
12
|
+
[models_1.PriceLabelColor.BLUE]: 'info',
|
|
13
|
+
[models_1.PriceLabelColor.GREEN]: 'success',
|
|
14
|
+
[models_1.PriceLabelColor.YELLOW]: 'warning',
|
|
15
|
+
[models_1.PriceLabelColor.PURPLE]: 'normal',
|
|
16
|
+
[models_1.PriceLabelColor.RED]: 'dnager',
|
|
17
|
+
};
|
|
18
|
+
const LabelSizeMap = {
|
|
19
|
+
l: 's',
|
|
20
|
+
m: 's',
|
|
21
|
+
s: 'xs',
|
|
22
|
+
xs: 'xs',
|
|
23
|
+
};
|
|
9
24
|
const PriceDescription = (props) => {
|
|
10
25
|
const { title, detailedTitle = '', description, titleSize = 'l', descriptionSize = 'm', colorTitle = 'cornflower', label, labelsDefaultText, className, } = props;
|
|
11
26
|
const descriptionRef = react_1.default.useRef(null);
|
|
@@ -38,7 +53,9 @@ const PriceDescription = (props) => {
|
|
|
38
53
|
return null;
|
|
39
54
|
}
|
|
40
55
|
const labelTitle = label.text || (labelsDefaultText && labelsDefaultText[label.color]);
|
|
41
|
-
|
|
56
|
+
const labelColor = (LabelColorsMapping[label.color] || 'unknown');
|
|
57
|
+
const labelSize = LabelSizeMap[label.size || descriptionSize];
|
|
58
|
+
return (react_1.default.createElement(uikit_1.Label, { className: b('label', { size: labelSize }), theme: labelColor, size: labelSize }, labelTitle));
|
|
42
59
|
}, [descriptionSize, label, labelsDefaultText]);
|
|
43
60
|
const titleElement = (0, react_1.useMemo)(() => {
|
|
44
61
|
return (react_1.default.createElement("div", { className: b('title', { size: titleSize }) },
|
|
@@ -4,17 +4,17 @@ unpredictable css rules order in build */
|
|
|
4
4
|
font-weight: 400;
|
|
5
5
|
}
|
|
6
6
|
.pc-settings-list__title_size_l, .pc-settings-list__description_size_l {
|
|
7
|
-
font-size: var(--
|
|
8
|
-
line-height: var(--
|
|
7
|
+
font-size: var(--g-text-header-1-font-size);
|
|
8
|
+
line-height: var(--g-text-header-1-line-height);
|
|
9
9
|
}
|
|
10
10
|
.pc-settings-list__title_size_m, .pc-settings-list__description_size_m {
|
|
11
|
-
font-size: var(--
|
|
12
|
-
line-height: var(--
|
|
11
|
+
font-size: var(--g-text-body-2-font-size);
|
|
12
|
+
line-height: var(--g-text-body-2-line-height);
|
|
13
13
|
}
|
|
14
14
|
.pc-settings-list__title_size_s, .pc-settings-list__description_size_s {
|
|
15
|
-
font-size: var(--
|
|
16
|
-
line-height: var(--
|
|
15
|
+
font-size: var(--g-text-body-1-font-size);
|
|
16
|
+
line-height: var(--g-text-body-1-line-height);
|
|
17
17
|
}
|
|
18
18
|
.pc-settings-list__title {
|
|
19
|
-
color: var(--
|
|
19
|
+
color: var(--g-color-text-hint);
|
|
20
20
|
}
|
|
@@ -17,7 +17,7 @@ unpredictable css rules order in build */
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
.pc-price-details__delimiter-line {
|
|
20
|
-
border-top: 1px solid var(--
|
|
20
|
+
border-top: 1px solid var(--g-color-line-generic);
|
|
21
21
|
}
|
|
22
22
|
.pc-price-details__arrow {
|
|
23
23
|
margin: auto 10px;
|
|
@@ -26,14 +26,14 @@ unpredictable css rules order in build */
|
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
display: flex;
|
|
28
28
|
font-weight: 400;
|
|
29
|
-
font-size: var(--
|
|
30
|
-
line-height: var(--
|
|
29
|
+
font-size: var(--g-text-body-2-font-size);
|
|
30
|
+
line-height: var(--g-text-body-2-line-height);
|
|
31
31
|
}
|
|
32
32
|
.pc-price-details__foldable_title_color_cornflower {
|
|
33
|
-
color: var(--
|
|
33
|
+
color: var(--g-color-text-link);
|
|
34
34
|
}
|
|
35
35
|
.pc-price-details__foldable_title_color_black {
|
|
36
|
-
color: var(--
|
|
36
|
+
color: var(--g-color-text-primary);
|
|
37
37
|
}
|
|
38
38
|
.pc-price-details__foldable_block > * {
|
|
39
39
|
padding-top: 12px;
|
|
@@ -10,14 +10,14 @@ unpredictable css rules order in build */
|
|
|
10
10
|
height: 100%;
|
|
11
11
|
overflow-x: hidden;
|
|
12
12
|
border-radius: var(--pc-border-radius);
|
|
13
|
-
background-color: var(--
|
|
13
|
+
background-color: var(--g-color-base-float);
|
|
14
14
|
transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
15
15
|
display: flex;
|
|
16
16
|
min-height: 400px;
|
|
17
17
|
height: 100%;
|
|
18
18
|
}
|
|
19
19
|
.pc-quote_theme_dark {
|
|
20
|
-
color: var(--
|
|
20
|
+
color: var(--g-color-text-light-primary);
|
|
21
21
|
}
|
|
22
22
|
.pc-quote_theme_dark h1,
|
|
23
23
|
.pc-quote_theme_dark h2,
|
|
@@ -26,10 +26,10 @@ unpredictable css rules order in build */
|
|
|
26
26
|
.pc-quote_theme_dark h5,
|
|
27
27
|
.pc-quote_theme_dark h6,
|
|
28
28
|
.pc-quote_theme_dark .yfm {
|
|
29
|
-
color: var(--
|
|
29
|
+
color: var(--g-color-text-light-primary);
|
|
30
30
|
}
|
|
31
31
|
.pc-quote_border_line {
|
|
32
|
-
border: 1px solid var(--
|
|
32
|
+
border: 1px solid var(--g-color-line-generic);
|
|
33
33
|
}
|
|
34
34
|
.pc-quote_border_line, .pc-quote_border_none {
|
|
35
35
|
cursor: default;
|
|
@@ -60,8 +60,8 @@ unpredictable css rules order in build */
|
|
|
60
60
|
.pc-quote__content {
|
|
61
61
|
margin-top: 24px;
|
|
62
62
|
position: relative;
|
|
63
|
-
font-size: var(--
|
|
64
|
-
line-height: var(--
|
|
63
|
+
font-size: var(--g-text-body-3-font-size);
|
|
64
|
+
line-height: var(--g-text-body-3-line-height);
|
|
65
65
|
}
|
|
66
66
|
.pc-quote__content::before {
|
|
67
67
|
position: absolute;
|
|
@@ -84,7 +84,7 @@ unpredictable css rules order in build */
|
|
|
84
84
|
margin-top: 20px;
|
|
85
85
|
}
|
|
86
86
|
.pc-quote__author_theme_dark, .pc-quote_theme_dark {
|
|
87
|
-
color: var(--
|
|
87
|
+
color: var(--g-color-text-light-primary);
|
|
88
88
|
}
|
|
89
89
|
.pc-quote__author_theme_dark h1,
|
|
90
90
|
.pc-quote__author_theme_dark h2,
|
|
@@ -99,7 +99,7 @@ unpredictable css rules order in build */
|
|
|
99
99
|
.pc-quote_theme_dark h5,
|
|
100
100
|
.pc-quote_theme_dark h6,
|
|
101
101
|
.pc-quote_theme_dark .yfm {
|
|
102
|
-
color: var(--
|
|
102
|
+
color: var(--g-color-text-light-primary);
|
|
103
103
|
}
|
|
104
104
|
.pc-quote__author {
|
|
105
105
|
max-width: calc(60% - 20px);
|
|
@@ -110,10 +110,10 @@ unpredictable css rules order in build */
|
|
|
110
110
|
/* stylelint-enable declaration-no-important */
|
|
111
111
|
}
|
|
112
112
|
.pc-quote__link-button_theme_dark {
|
|
113
|
-
color: var(--
|
|
113
|
+
color: var(--g-color-base-background) !important;
|
|
114
114
|
}
|
|
115
115
|
.pc-quote__link-button_theme_dark:before {
|
|
116
|
-
border-color: var(--
|
|
116
|
+
border-color: var(--g-color-base-background) !important;
|
|
117
117
|
}
|
|
118
118
|
@media (max-width: 1081px) {
|
|
119
119
|
.pc-quote__author-wrapper {
|
|
@@ -5,14 +5,14 @@ const react_1 = tslib_1.__importStar(require("react"));
|
|
|
5
5
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const utils_1 = require("../../components/Media/Image/utils");
|
|
8
|
-
const
|
|
8
|
+
const theme_1 = require("../../context/theme");
|
|
9
9
|
const hooks_1 = require("../../hooks");
|
|
10
10
|
const models_1 = require("../../models");
|
|
11
11
|
const utils_2 = require("../../utils");
|
|
12
12
|
const b = (0, utils_2.block)('quote');
|
|
13
13
|
const Quote = (props) => {
|
|
14
14
|
const { theme: textTheme = 'light', color, image, border = 'shadow', text, logo, author, url, buttonText, } = props;
|
|
15
|
-
const
|
|
15
|
+
const theme = (0, theme_1.useTheme)();
|
|
16
16
|
const imageThemed = (0, utils_2.getThemedValue)(image, theme);
|
|
17
17
|
const imageData = (0, utils_1.getMediaImage)(imageThemed);
|
|
18
18
|
const handleAnalytics = (0, hooks_1.useAnalytics)(models_1.DefaultEventNames.QuoteButton, url);
|
|
@@ -4,4 +4,4 @@ export interface ThemedValue<T> extends Partial<Record<string, T>> {
|
|
|
4
4
|
}
|
|
5
5
|
export type ThemeSupporting<T> = T | ThemedValue<T>;
|
|
6
6
|
export declare function isThemedValue<T>(value: ThemeSupporting<T>): value is ThemedValue<T>;
|
|
7
|
-
export declare function getThemedValue<T>(value: ThemeSupporting<T>, theme?:
|
|
7
|
+
export declare function getThemedValue<T>(value: ThemeSupporting<T>, theme?: import("..").Theme): T;
|
|
@@ -8,15 +8,15 @@ unpredictable css rules order in build */
|
|
|
8
8
|
text-align: center;
|
|
9
9
|
}
|
|
10
10
|
.pc-companies-block__title {
|
|
11
|
-
font-size: var(--
|
|
12
|
-
line-height: var(--
|
|
11
|
+
font-size: var(--g-text-display-2-font-size);
|
|
12
|
+
line-height: var(--g-text-display-2-line-height);
|
|
13
13
|
color: var(--pc-text-header-color);
|
|
14
|
-
font-weight: var(--
|
|
14
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
15
15
|
}
|
|
16
16
|
@media (max-width: 576px) {
|
|
17
17
|
.pc-companies-block__title {
|
|
18
|
-
font-size: var(--
|
|
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-companies-block__images {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Image } from '../../components';
|
|
3
3
|
import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';
|
|
4
|
-
import {
|
|
4
|
+
import { useTheme } from '../../context/theme';
|
|
5
5
|
import { block, getThemedValue } from '../../utils';
|
|
6
6
|
import './Companies.css';
|
|
7
7
|
const b = block('companies-block');
|
|
8
8
|
export const CompaniesBlock = ({ title, images, animated }) => {
|
|
9
|
-
const
|
|
9
|
+
const theme = useTheme();
|
|
10
10
|
const themedImages = getThemedValue(images, theme) || {};
|
|
11
11
|
return (React.createElement(AnimateBlock, { className: b(), offset: 150, animate: animated },
|
|
12
12
|
React.createElement("div", { className: b('content') },
|
|
@@ -15,12 +15,12 @@ unpredictable css rules order in build */
|
|
|
15
15
|
margin-top: 24px;
|
|
16
16
|
}
|
|
17
17
|
.pc-content-layout-block__files_size_s {
|
|
18
|
-
font-size: var(--
|
|
19
|
-
line-height: var(--
|
|
18
|
+
font-size: var(--g-text-body-2-font-size);
|
|
19
|
+
line-height: var(--g-text-body-2-line-height);
|
|
20
20
|
}
|
|
21
21
|
.pc-content-layout-block__files_size_l {
|
|
22
|
-
font-size: var(--
|
|
23
|
-
line-height: var(--
|
|
22
|
+
font-size: var(--g-text-body-3-font-size);
|
|
23
|
+
line-height: var(--g-text-body-3-line-height);
|
|
24
24
|
}
|
|
25
25
|
.pc-content-layout-block__files_centered {
|
|
26
26
|
margin-left: auto;
|
|
@@ -28,9 +28,7 @@ function getTextWidth(size) {
|
|
|
28
28
|
}
|
|
29
29
|
export const ContentLayoutBlock = (props) => {
|
|
30
30
|
const isMobile = useContext(MobileContext);
|
|
31
|
-
const { textContent, fileContent } = props;
|
|
32
|
-
const propsSource = props.properties || props;
|
|
33
|
-
const { size = 'l', background, centered, theme = 'default', textWidth = 'm' } = propsSource;
|
|
31
|
+
const { textContent, fileContent, size = 'l', background, centered, theme = 'default', textWidth = 'm', } = props;
|
|
34
32
|
const colSizes = useMemo(() => getTextWidth(textWidth), [textWidth]);
|
|
35
33
|
return (React.createElement("div", { className: b({ size, background: Boolean(background) }) },
|
|
36
34
|
React.createElement(Content, Object.assign({ className: b('content') }, textContent, { size: size, centered: centered, colSizes: colSizes, theme: theme })),
|
|
@@ -17,17 +17,17 @@ unpredictable css rules order in build */
|
|
|
17
17
|
padding-right: 32px;
|
|
18
18
|
}
|
|
19
19
|
.pc-ExtendedFeaturesBlock__item-title {
|
|
20
|
-
font-size: var(--
|
|
21
|
-
line-height: var(--
|
|
20
|
+
font-size: var(--g-text-header-1-font-size);
|
|
21
|
+
line-height: var(--g-text-header-1-line-height);
|
|
22
22
|
color: var(--pc-text-header-color);
|
|
23
|
-
font-weight: var(--
|
|
23
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
24
24
|
display: block;
|
|
25
25
|
position: relative;
|
|
26
26
|
margin-bottom: 8px;
|
|
27
27
|
}
|
|
28
28
|
.pc-ExtendedFeaturesBlock__item-title a {
|
|
29
29
|
outline: none;
|
|
30
|
-
color: var(--
|
|
30
|
+
color: var(--g-color-text-link);
|
|
31
31
|
text-decoration: none;
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
@@ -35,28 +35,28 @@ unpredictable css rules order in build */
|
|
|
35
35
|
outline: 2px solid #ffdb4d;
|
|
36
36
|
}
|
|
37
37
|
.pc-ExtendedFeaturesBlock__item-title a:hover, .pc-ExtendedFeaturesBlock__item-title a:active {
|
|
38
|
-
--pc-text-header-color: var(--
|
|
39
|
-
color: var(--
|
|
38
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
39
|
+
color: var(--g-color-text-link-hover);
|
|
40
40
|
}
|
|
41
41
|
.pc-ExtendedFeaturesBlock__item-label {
|
|
42
|
-
font-size: var(--
|
|
43
|
-
line-height: var(--
|
|
42
|
+
font-size: var(--g-text-caption-2-font-size);
|
|
43
|
+
line-height: var(--g-text-caption-2-line-height);
|
|
44
44
|
position: relative;
|
|
45
45
|
top: -3px;
|
|
46
46
|
height: 16px;
|
|
47
47
|
margin-left: 8px;
|
|
48
48
|
padding: 1.5px 5px 2px;
|
|
49
|
-
color: var(--
|
|
50
|
-
background-color: var(--
|
|
49
|
+
color: var(--g-color-base-background);
|
|
50
|
+
background-color: var(--g-color-base-brand);
|
|
51
51
|
border-radius: 4px;
|
|
52
52
|
}
|
|
53
53
|
.pc-ExtendedFeaturesBlock__item-text, .pc-ExtendedFeaturesBlock__item-link {
|
|
54
|
-
font-size: var(--
|
|
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
|
.pc-ExtendedFeaturesBlock__item-text a {
|
|
58
58
|
outline: none;
|
|
59
|
-
color: var(--
|
|
59
|
+
color: var(--g-color-text-link);
|
|
60
60
|
text-decoration: none;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
}
|
|
@@ -64,12 +64,12 @@ unpredictable css rules order in build */
|
|
|
64
64
|
outline: 2px solid #ffdb4d;
|
|
65
65
|
}
|
|
66
66
|
.pc-ExtendedFeaturesBlock__item-text a:hover, .pc-ExtendedFeaturesBlock__item-text a:active {
|
|
67
|
-
--pc-text-header-color: var(--
|
|
68
|
-
color: var(--
|
|
67
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
68
|
+
color: var(--g-color-text-link-hover);
|
|
69
69
|
}
|
|
70
70
|
.pc-ExtendedFeaturesBlock__item-link {
|
|
71
71
|
margin-top: 8px;
|
|
72
|
-
color: var(--
|
|
72
|
+
color: var(--g-color-text-link);
|
|
73
73
|
}
|
|
74
74
|
.pc-ExtendedFeaturesBlock__icon {
|
|
75
75
|
width: 32px;
|