@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
|
@@ -249,10 +249,6 @@ interface ContentLayoutBlockParams {
|
|
|
249
249
|
textWidth?: ContentTextSize;
|
|
250
250
|
}
|
|
251
251
|
export interface ContentLayoutBlockProps extends ContentLayoutBlockParams {
|
|
252
|
-
/**
|
|
253
|
-
* @deprecated Use params on top level instead
|
|
254
|
-
*/
|
|
255
|
-
properties?: ContentLayoutBlockParams;
|
|
256
252
|
textContent: ContentBlockProps;
|
|
257
253
|
fileContent?: FileLinkProps[];
|
|
258
254
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { ButtonView, ButtonProps as UikitButtonProps } from '@gravity-ui/uikit';
|
|
3
3
|
import { ThemeSupporting } from '../../utils/theme';
|
|
4
|
-
import { AnalyticsEventsBase, ClassNameProps, PixelEventType } from '../common';
|
|
4
|
+
import { AnalyticsEventsBase, ClassNameProps, PixelEventType, QAProps } from '../common';
|
|
5
5
|
export declare enum AuthorType {
|
|
6
6
|
Column = "column",
|
|
7
7
|
Line = "line"
|
|
@@ -90,11 +90,10 @@ export interface ImageDeviceProps extends ImageInfoProps {
|
|
|
90
90
|
}
|
|
91
91
|
export type ImageProps = string | ImageObjectProps | ImageDeviceProps;
|
|
92
92
|
export type ThemedImage = ThemeSupporting<ImageProps>;
|
|
93
|
-
export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement>, Partial<ImageDeviceProps>, Partial<ImageObjectProps
|
|
93
|
+
export interface BackgroundImageProps extends React.HTMLProps<HTMLDivElement>, Partial<ImageDeviceProps>, Partial<ImageObjectProps>, QAProps {
|
|
94
94
|
style?: CSSProperties;
|
|
95
95
|
imageClassName?: string;
|
|
96
96
|
hide?: boolean;
|
|
97
|
-
qa?: string;
|
|
98
97
|
}
|
|
99
98
|
export interface MediaVideoProps extends AnalyticsEventsBase {
|
|
100
99
|
src: string[];
|
|
@@ -327,12 +326,11 @@ export interface PriceDetailedProps extends CardBaseProps {
|
|
|
327
326
|
foldable?: PriceFoldableDetailsProps;
|
|
328
327
|
labelsDefaultText?: Record<PriceLabelColor, string>;
|
|
329
328
|
}
|
|
330
|
-
export interface AuthorProps {
|
|
329
|
+
export interface AuthorProps extends QAProps {
|
|
331
330
|
author: AuthorItem;
|
|
332
331
|
className?: string;
|
|
333
332
|
authorContainerClassName?: string;
|
|
334
333
|
type?: AuthorType;
|
|
335
|
-
dataQa?: string;
|
|
336
334
|
}
|
|
337
335
|
export interface TitleProps {
|
|
338
336
|
title?: TitleItemProps | string;
|
|
@@ -30,8 +30,8 @@ unpredictable css rules order in build */
|
|
|
30
30
|
.pc-desktop-navigation__right {
|
|
31
31
|
flex: 0;
|
|
32
32
|
justify-content: flex-end;
|
|
33
|
-
font-size: var(--
|
|
34
|
-
line-height: var(--
|
|
33
|
+
font-size: var(--g-text-body-2-font-size);
|
|
34
|
+
line-height: var(--g-text-body-2-line-height);
|
|
35
35
|
}
|
|
36
36
|
.pc-desktop-navigation__navigation-container {
|
|
37
37
|
display: flex;
|
|
@@ -65,8 +65,8 @@ unpredictable css rules order in build */
|
|
|
65
65
|
}
|
|
66
66
|
.pc-desktop-navigation__links {
|
|
67
67
|
position: relative;
|
|
68
|
-
font-size: var(--
|
|
69
|
-
line-height: var(--
|
|
68
|
+
font-size: var(--g-text-body-2-font-size);
|
|
69
|
+
line-height: var(--g-text-body-2-line-height);
|
|
70
70
|
}
|
|
71
71
|
.pc-desktop-navigation__item {
|
|
72
72
|
position: relative;
|
|
@@ -14,9 +14,9 @@ unpredictable css rules order in build */
|
|
|
14
14
|
object-fit: contain;
|
|
15
15
|
}
|
|
16
16
|
.pc-logo__text {
|
|
17
|
-
font-size: var(--
|
|
18
|
-
line-height: var(--
|
|
17
|
+
font-size: var(--g-text-header-1-font-size);
|
|
18
|
+
line-height: var(--g-text-header-1-line-height);
|
|
19
19
|
color: var(--pc-text-header-color);
|
|
20
|
-
font-weight: var(--
|
|
20
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
21
21
|
white-space: nowrap;
|
|
22
22
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const components_1 = require("../../../components");
|
|
6
6
|
const utils_1 = require("../../../components/Media/Image/utils");
|
|
7
7
|
const RouterLink_1 = tslib_1.__importDefault(require("../../../components/RouterLink/RouterLink"));
|
|
8
|
-
const
|
|
8
|
+
const theme_1 = require("../../../context/theme");
|
|
9
9
|
const utils_2 = require("../../../utils");
|
|
10
10
|
const b = (0, utils_2.block)('logo');
|
|
11
11
|
const Logo = (props) => {
|
|
12
|
-
const
|
|
12
|
+
const theme = (0, theme_1.useTheme)();
|
|
13
13
|
const themedLogoProps = (0, utils_2.getThemedValue)(props, theme) || props;
|
|
14
14
|
const imageData = (0, utils_1.getMediaImage)(themedLogoProps.icon || props.icon);
|
|
15
15
|
const textData = themedLogoProps.text || props.text;
|
|
@@ -8,14 +8,14 @@ unpredictable css rules order in build */
|
|
|
8
8
|
width: 100%;
|
|
9
9
|
border-bottom-right-radius: var(--pc-border-radius);
|
|
10
10
|
border-bottom-left-radius: var(--pc-border-radius);
|
|
11
|
-
background-color: var(--
|
|
12
|
-
box-shadow: 0 3px 10px var(--
|
|
11
|
+
background-color: var(--g-color-base-background);
|
|
12
|
+
box-shadow: 0 3px 10px var(--g-color-sfx-shadow);
|
|
13
13
|
max-height: calc(100vh - 2 * var(--header-height));
|
|
14
14
|
overflow-y: scroll;
|
|
15
15
|
scrollbar-width: none;
|
|
16
16
|
-ms-overflow-style: none;
|
|
17
|
-
font-size: var(--
|
|
18
|
-
line-height: var(--
|
|
17
|
+
font-size: var(--g-text-body-2-font-size);
|
|
18
|
+
line-height: var(--g-text-body-2-line-height);
|
|
19
19
|
}
|
|
20
20
|
.pc-mobile-navigation::-webkit-scrollbar {
|
|
21
21
|
display: none;
|
|
@@ -53,11 +53,11 @@ unpredictable css rules order in build */
|
|
|
53
53
|
flex-direction: column;
|
|
54
54
|
min-width: 220px;
|
|
55
55
|
padding: 16px;
|
|
56
|
-
border: 1px solid var(--
|
|
56
|
+
border: 1px solid var(--g-color-line-generic);
|
|
57
57
|
border-top-width: 0;
|
|
58
58
|
border-radius: calc(var(--pc-border-radius) / 2);
|
|
59
|
-
background: var(--
|
|
60
|
-
box-shadow: 0 3px 10px var(--
|
|
59
|
+
background: var(--g-color-base-float);
|
|
60
|
+
box-shadow: 0 3px 10px var(--g-color-sfx-shadow);
|
|
61
61
|
}
|
|
62
62
|
@media (min-width: 769px) {
|
|
63
63
|
.pc-mobile-navigation__popup {
|
|
@@ -8,8 +8,8 @@ unpredictable css rules order in build */
|
|
|
8
8
|
justify-content: center;
|
|
9
9
|
align-items: center;
|
|
10
10
|
height: var(--header-height);
|
|
11
|
-
background-color: var(--
|
|
11
|
+
background-color: var(--g-color-base-background);
|
|
12
12
|
}
|
|
13
13
|
.pc-navigation_with-border {
|
|
14
|
-
box-shadow: inset 0 -1px 0 var(--
|
|
14
|
+
box-shadow: inset 0 -1px 0 var(--g-color-line-generic);
|
|
15
15
|
}
|
|
@@ -13,7 +13,7 @@ unpredictable css rules order in build */
|
|
|
13
13
|
outline: 2px solid #ffdb4d;
|
|
14
14
|
}
|
|
15
15
|
.pc-navigation-item__content:hover, .pc-navigation-item__content:active {
|
|
16
|
-
color: var(--
|
|
16
|
+
color: var(--g-color-text-link);
|
|
17
17
|
}
|
|
18
18
|
.pc-navigation-item_menu-layout_desktop {
|
|
19
19
|
height: var(--header-height);
|
package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css
CHANGED
|
@@ -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-navigation-link {
|
|
4
|
-
color: var(--
|
|
4
|
+
color: var(--g-color-text-primary);
|
|
5
5
|
color: inherit;
|
|
6
6
|
text-decoration: none;
|
|
7
7
|
outline: none;
|
|
@@ -14,7 +14,7 @@ unpredictable css rules order in build */
|
|
|
14
14
|
outline: 2px solid #ffdb4d;
|
|
15
15
|
}
|
|
16
16
|
.pc-navigation-link:hover, .pc-navigation-link_active {
|
|
17
|
-
color: var(--
|
|
17
|
+
color: var(--g-color-text-link);
|
|
18
18
|
}
|
|
19
19
|
.pc-navigation-link__arrow {
|
|
20
20
|
position: relative;
|
|
@@ -8,11 +8,11 @@ unpredictable css rules order in build */
|
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
min-width: 220px;
|
|
10
10
|
padding: 16px;
|
|
11
|
-
border: 1px solid var(--
|
|
11
|
+
border: 1px solid var(--g-color-line-generic);
|
|
12
12
|
border-top-width: 0;
|
|
13
13
|
border-radius: calc(var(--pc-border-radius) / 2);
|
|
14
|
-
background: var(--
|
|
15
|
-
box-shadow: 0 3px 10px var(--
|
|
14
|
+
background: var(--g-color-base-float);
|
|
15
|
+
box-shadow: 0 3px 10px var(--g-color-sfx-shadow);
|
|
16
16
|
}
|
|
17
17
|
.pc-navigation-popup__list {
|
|
18
18
|
margin: 0;
|
|
@@ -26,6 +26,6 @@ unpredictable css rules order in build */
|
|
|
26
26
|
border-radius: 8px;
|
|
27
27
|
}
|
|
28
28
|
.pc-navigation-popup__link:hover {
|
|
29
|
-
color: var(--
|
|
30
|
-
background-color: var(--
|
|
29
|
+
color: var(--g-color-text-primary);
|
|
30
|
+
background-color: var(--g-color-base-simple-hover);
|
|
31
31
|
}
|
|
@@ -13,7 +13,7 @@ const NavigationPopup = ({ anchorRef, items, onClose, className, open, }) => (re
|
|
|
13
13
|
// Workaround to recalculate position on every opening. Required for valid position calculation for scrolled header links.
|
|
14
14
|
, {
|
|
15
15
|
// Workaround to recalculate position on every opening. Required for valid position calculation for scrolled header links.
|
|
16
|
-
anchorRef: open ? anchorRef : undefined,
|
|
16
|
+
anchorRef: open ? anchorRef : undefined, contentClassName: b(null, className), open: open, onClose: onClose, onOutsideClick: onClose, keepMounted: true, disablePortal: true, strategy: "fixed", placement: "bottom-start", offset: OFFSET_RESET },
|
|
17
17
|
react_1.default.createElement("ul", { className: b('list') }, items.map((item) => (react_1.default.createElement(NavigationItem_1.default, { key: item.text, className: b('link'), data: item, menuLayout: models_1.NavigationLayout.Dropdown }))))));
|
|
18
18
|
exports.NavigationPopup = NavigationPopup;
|
|
19
19
|
exports.default = exports.NavigationPopup;
|
|
@@ -7,12 +7,12 @@ unpredictable css rules order in build */
|
|
|
7
7
|
width: 40px;
|
|
8
8
|
height: 40px;
|
|
9
9
|
margin-right: 8px;
|
|
10
|
-
color: var(--
|
|
10
|
+
color: var(--g-color-base-background);
|
|
11
11
|
border-radius: 50%;
|
|
12
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--g-color-base-generic);
|
|
13
13
|
}
|
|
14
14
|
.pc-social-icon:hover {
|
|
15
|
-
background-color: var(--
|
|
15
|
+
background-color: var(--g-color-base-generic-hover);
|
|
16
16
|
}
|
|
17
17
|
.pc-social-icon__icon {
|
|
18
18
|
width: 16px;
|
|
@@ -4,10 +4,10 @@ unpredictable css rules order in build */
|
|
|
4
4
|
position: relative;
|
|
5
5
|
}
|
|
6
6
|
.pc-background-card_theme_light {
|
|
7
|
-
background-color: var(--
|
|
7
|
+
background-color: var(--pc-color-base-silver);
|
|
8
8
|
}
|
|
9
9
|
.pc-background-card_theme_dark {
|
|
10
|
-
background-color: var(--
|
|
10
|
+
background-color: var(--pc-color-base-asphalt);
|
|
11
11
|
}
|
|
12
12
|
.pc-background-card_padding_s {
|
|
13
13
|
padding-bottom: 80px;
|
|
@@ -39,8 +39,8 @@ unpredictable css rules order in build */
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
a.pc-background-card_theme_light {
|
|
42
|
-
background-color: var(--
|
|
42
|
+
background-color: var(--pc-color-base-silver);
|
|
43
43
|
}
|
|
44
44
|
a.pc-background-card_theme_dark {
|
|
45
|
-
background-color: var(--
|
|
45
|
+
background-color: var(--pc-color-base-asphalt);
|
|
46
46
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const components_1 = require("../../components/");
|
|
6
|
-
const
|
|
6
|
+
const theme_1 = require("../../context/theme");
|
|
7
7
|
const utils_1 = require("../../utils");
|
|
8
8
|
const Content_1 = tslib_1.__importDefault(require("../Content/Content"));
|
|
9
9
|
const b = (0, utils_1.block)('background-card');
|
|
10
10
|
const BackgroundCard = (props) => {
|
|
11
11
|
const { url, title, text, border, background, paddingBottom, backgroundColor, additionalInfo, theme: cardTheme = 'default', links, buttons, } = props;
|
|
12
|
-
const
|
|
12
|
+
const theme = (0, theme_1.useTheme)();
|
|
13
13
|
const hasBackgroundColor = backgroundColor || cardTheme !== 'default';
|
|
14
14
|
const link = hasBackgroundColor || border === 'line' ? undefined : url;
|
|
15
15
|
const borderType = hasBackgroundColor ? 'none' : border;
|
|
@@ -6,28 +6,28 @@
|
|
|
6
6
|
unpredictable css rules order in build */
|
|
7
7
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__title,
|
|
8
8
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__subtitle {
|
|
9
|
-
color: var(--
|
|
9
|
+
color: var(--g-color-text-light-primary);
|
|
10
10
|
}
|
|
11
11
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__title p,
|
|
12
12
|
.pc-banner-card_theme_dark.pc-banner-card_theme_dark .pc-banner-card__subtitle p {
|
|
13
|
-
color: var(--
|
|
13
|
+
color: var(--g-color-text-light-primary);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.pc-banner-card__title {
|
|
17
|
-
font-size: var(--
|
|
18
|
-
line-height: var(--
|
|
17
|
+
font-size: var(--g-text-display-2-font-size);
|
|
18
|
+
line-height: var(--g-text-display-2-line-height);
|
|
19
19
|
color: var(--pc-text-header-color);
|
|
20
|
-
font-weight: var(--
|
|
20
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
21
21
|
}
|
|
22
22
|
@media (max-width: 576px) {
|
|
23
23
|
.pc-banner-card__title {
|
|
24
|
-
font-size: var(--
|
|
25
|
-
line-height: var(--
|
|
24
|
+
font-size: var(--g-text-display-1-font-size);
|
|
25
|
+
line-height: var(--g-text-display-1-line-height);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
.pc-banner-card__title a {
|
|
29
29
|
outline: none;
|
|
30
|
-
color: var(--
|
|
30
|
+
color: var(--g-color-text-link);
|
|
31
31
|
text-decoration: none;
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
@@ -35,8 +35,8 @@ unpredictable css rules order in build */
|
|
|
35
35
|
outline: 2px solid #ffdb4d;
|
|
36
36
|
}
|
|
37
37
|
.pc-banner-card__title a:hover, .pc-banner-card__title a:active {
|
|
38
|
-
--pc-text-header-color: var(--
|
|
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-banner-card__content {
|
|
42
42
|
width: 100%;
|
|
@@ -57,17 +57,17 @@ unpredictable css rules order in build */
|
|
|
57
57
|
.pc-banner-card__subtitle {
|
|
58
58
|
display: inline-block;
|
|
59
59
|
margin-top: 8px;
|
|
60
|
-
font-size: var(--
|
|
61
|
-
line-height: var(--
|
|
60
|
+
font-size: var(--g-text-body-3-font-size);
|
|
61
|
+
line-height: var(--g-text-body-3-line-height);
|
|
62
62
|
color: var(--pc-text-header-color);
|
|
63
|
-
font-weight: var(--
|
|
63
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
64
64
|
font-weight: normal;
|
|
65
65
|
}
|
|
66
66
|
.pc-banner-card__subtitle p {
|
|
67
|
-
font-size: var(--
|
|
68
|
-
line-height: var(--
|
|
67
|
+
font-size: var(--g-text-body-3-font-size);
|
|
68
|
+
line-height: var(--g-text-body-3-line-height);
|
|
69
69
|
color: var(--pc-text-header-color);
|
|
70
|
-
font-weight: var(--
|
|
70
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
71
71
|
font-weight: normal;
|
|
72
72
|
}
|
|
73
73
|
.pc-banner-card__button.pc-banner-card__button {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BannerCard = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
|
-
const
|
|
7
|
+
const theme_1 = require("../../context/theme");
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
9
|
const b = (0, utils_1.block)('banner-card');
|
|
10
10
|
const BannerCard = (props) => {
|
|
11
11
|
const { title, subtitle, button: { url, text, target }, color, theme: textTheme = 'light', image, disableCompress, } = props;
|
|
12
|
-
const
|
|
12
|
+
const theme = (0, theme_1.useTheme)();
|
|
13
13
|
const contentStyle = {};
|
|
14
14
|
if (color) {
|
|
15
15
|
contentStyle.backgroundColor = (0, utils_1.getThemedValue)(color, theme);
|
|
@@ -8,7 +8,7 @@ unpredictable css rules order in build */
|
|
|
8
8
|
.pc-content {
|
|
9
9
|
--pc-monochrome-button-background-color: #262626;
|
|
10
10
|
--pc-monochrome-button-background-color-hover: #393939;
|
|
11
|
-
--pc-monochrome-button-color: var(--
|
|
11
|
+
--pc-monochrome-button-color: var(--g-color-text-light-primary);
|
|
12
12
|
}
|
|
13
13
|
.pc-content__notice .yfm ol,
|
|
14
14
|
.pc-content__notice .yfm ul, .pc-content__text .yfm ol,
|
|
@@ -17,14 +17,14 @@ unpredictable css rules order in build */
|
|
|
17
17
|
}
|
|
18
18
|
.pc-content__notice.pc-content__notice .yfm,
|
|
19
19
|
.pc-content__notice.pc-content__notice .yfm > * {
|
|
20
|
-
color: var(--
|
|
20
|
+
color: var(--g-color-text-secondary);
|
|
21
21
|
}
|
|
22
22
|
.pc-content__notice.pc-content__notice .yfm a {
|
|
23
|
-
color: var(--
|
|
23
|
+
color: var(--g-color-text-secondary);
|
|
24
24
|
text-decoration: underline;
|
|
25
25
|
}
|
|
26
26
|
.pc-content__notice.pc-content__notice .yfm a:hover {
|
|
27
|
-
color: var(--
|
|
27
|
+
color: var(--g-color-text-primary);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.pc-content__button.pc-content__button {
|
|
@@ -82,8 +82,8 @@ unpredictable css rules order in build */
|
|
|
82
82
|
}
|
|
83
83
|
.pc-content_size_l .pc-content__text .yfm,
|
|
84
84
|
.pc-content_size_l .pc-content__notice .yfm {
|
|
85
|
-
font-size: var(--
|
|
86
|
-
line-height: var(--
|
|
85
|
+
font-size: var(--g-text-body-3-font-size);
|
|
86
|
+
line-height: var(--g-text-body-3-line-height);
|
|
87
87
|
}
|
|
88
88
|
.pc-content_size_l .pc-content__links,
|
|
89
89
|
.pc-content_size_l .pc-content__link,
|
|
@@ -95,63 +95,63 @@ unpredictable css rules order in build */
|
|
|
95
95
|
.pc-content_theme_dark .pc-content__text .yfm,
|
|
96
96
|
.pc-content_theme_dark .pc-content__text .yfm *,
|
|
97
97
|
.pc-content_theme_dark .pc-content__link a {
|
|
98
|
-
color: var(--
|
|
98
|
+
color: var(--g-color-text-light-primary);
|
|
99
99
|
}
|
|
100
100
|
.pc-content_theme_dark .pc-content__notice .yfm,
|
|
101
101
|
.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
102
|
-
color: var(--
|
|
102
|
+
color: var(--g-color-text-light-secondary);
|
|
103
103
|
}
|
|
104
104
|
.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
105
|
-
color: var(--
|
|
105
|
+
color: var(--g-color-text-light-secondary);
|
|
106
106
|
text-decoration: underline;
|
|
107
107
|
}
|
|
108
108
|
.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
109
|
-
color: var(--
|
|
109
|
+
color: var(--g-color-text-light-primary);
|
|
110
110
|
}
|
|
111
111
|
.pc-content_theme_dark .pc-content__text .yfm a {
|
|
112
|
-
color: var(--
|
|
112
|
+
color: var(--g-color-text-light-primary);
|
|
113
113
|
text-decoration: underline;
|
|
114
114
|
}
|
|
115
115
|
.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
116
|
-
color: var(--
|
|
116
|
+
color: var(--g-color-text-light-secondary);
|
|
117
117
|
}
|
|
118
118
|
.pc-content_theme_dark .pc-content__title a {
|
|
119
|
-
color: var(--
|
|
119
|
+
color: var(--g-color-text-light-primary);
|
|
120
120
|
text-decoration: underline;
|
|
121
121
|
text-decoration: none;
|
|
122
122
|
}
|
|
123
123
|
.pc-content_theme_dark .pc-content__title a:hover {
|
|
124
|
-
color: var(--
|
|
124
|
+
color: var(--g-color-text-light-secondary);
|
|
125
125
|
}
|
|
126
126
|
.pc-content_theme_light .pc-content__title *,
|
|
127
127
|
.pc-content_theme_light .pc-content__text .yfm,
|
|
128
128
|
.pc-content_theme_light .pc-content__text .yfm *,
|
|
129
129
|
.pc-content_theme_light .pc-content__link a {
|
|
130
|
-
color: var(--
|
|
130
|
+
color: var(--g-color-text-dark-primary);
|
|
131
131
|
}
|
|
132
132
|
.pc-content_theme_light .pc-content__notice .yfm,
|
|
133
133
|
.pc-content_theme_light .pc-content__notice .yfm * {
|
|
134
|
-
color: var(--
|
|
134
|
+
color: var(--g-color-text-dark-secondary);
|
|
135
135
|
}
|
|
136
136
|
.pc-content_theme_light .pc-content__notice .yfm a {
|
|
137
|
-
color: var(--
|
|
137
|
+
color: var(--g-color-text-dark-secondary);
|
|
138
138
|
text-decoration: underline;
|
|
139
139
|
}
|
|
140
140
|
.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
141
|
-
color: var(--
|
|
141
|
+
color: var(--g-color-text-dark-primary);
|
|
142
142
|
}
|
|
143
143
|
.pc-content_theme_light .pc-content__text .yfm a {
|
|
144
|
-
color: var(--
|
|
144
|
+
color: var(--g-color-text-dark-primary);
|
|
145
145
|
text-decoration: underline;
|
|
146
146
|
}
|
|
147
147
|
.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
148
|
-
color: var(--
|
|
148
|
+
color: var(--g-color-text-dark-secondary);
|
|
149
149
|
}
|
|
150
150
|
.pc-content_theme_light .pc-content__title a {
|
|
151
|
-
color: var(--
|
|
151
|
+
color: var(--g-color-text-dark-primary);
|
|
152
152
|
text-decoration: underline;
|
|
153
153
|
text-decoration: none;
|
|
154
154
|
}
|
|
155
155
|
.pc-content_theme_light .pc-content__title a:hover {
|
|
156
|
-
color: var(--
|
|
156
|
+
color: var(--g-color-text-dark-secondary);
|
|
157
157
|
}
|
|
@@ -4,8 +4,8 @@ unpredictable css rules order in build */
|
|
|
4
4
|
margin-top: 24px;
|
|
5
5
|
}
|
|
6
6
|
.pc-content-list_size_l .pc-content-list__title {
|
|
7
|
-
font-size: var(--
|
|
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
|
margin: 0 0 8px;
|
|
10
10
|
}
|
|
11
11
|
.pc-content-list_size_l .pc-content-list__icon {
|
|
@@ -22,8 +22,8 @@ unpredictable css rules order in build */
|
|
|
22
22
|
margin-top: 16px;
|
|
23
23
|
}
|
|
24
24
|
.pc-content-list_size_s .pc-content-list__title {
|
|
25
|
-
font-size: var(--
|
|
26
|
-
line-height: var(--
|
|
25
|
+
font-size: var(--g-text-subheader-3-font-size);
|
|
26
|
+
line-height: var(--g-text-subheader-3-line-height);
|
|
27
27
|
margin: 0 0 calc(8px / 2);
|
|
28
28
|
}
|
|
29
29
|
.pc-content-list_size_s .pc-content-list__icon {
|
|
@@ -34,8 +34,8 @@ unpredictable css rules order in build */
|
|
|
34
34
|
margin-right: 8px;
|
|
35
35
|
}
|
|
36
36
|
.pc-content-list_size_s .pc-content-list__text {
|
|
37
|
-
font-size: var(--
|
|
38
|
-
line-height: var(--
|
|
37
|
+
font-size: var(--g-text-body-1-font-size);
|
|
38
|
+
line-height: var(--g-text-body-1-line-height);
|
|
39
39
|
}
|
|
40
40
|
.pc-content-list_size_s .pc-content-list__item:not(:last-child) {
|
|
41
41
|
margin-bottom: 12px;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const uuid_1 = require("uuid");
|
|
6
6
|
const components_1 = require("../../../components");
|
|
7
7
|
const Image_1 = tslib_1.__importDefault(require("../../../components/Image/Image"));
|
|
8
8
|
const utils_1 = require("../../../components/Media/Image/utils");
|
|
9
|
-
const
|
|
9
|
+
const theme_1 = require("../../../context/theme");
|
|
10
10
|
const utils_2 = require("../../../utils");
|
|
11
11
|
const b = (0, utils_2.block)('content-list');
|
|
12
12
|
const ContentList = ({ list, size }) => {
|
|
13
|
-
const
|
|
13
|
+
const theme = (0, theme_1.useTheme)();
|
|
14
14
|
return (react_1.default.createElement("div", { className: b({ size }) }, list === null || list === void 0 ? void 0 : list.map((item) => {
|
|
15
15
|
const { icon, title, text } = item;
|
|
16
16
|
const iconThemed = (0, utils_2.getThemedValue)(icon, theme);
|