@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
|
@@ -12,6 +12,8 @@ unpredictable css rules order in build */
|
|
|
12
12
|
margin-left: var(--btn-image-margin);
|
|
13
13
|
}
|
|
14
14
|
.pc-button-block_theme_github.pc-button-block_theme_github {
|
|
15
|
+
--g-button-background-color: var(--pc-monochrome-button-background-color);
|
|
16
|
+
--g-button-background-color-hover: var(--pc-monochrome-button-background-color-hover);
|
|
15
17
|
--yc-button-background-color: var(--pc-monochrome-button-background-color);
|
|
16
18
|
--yc-button-background-color-hover: var(--pc-monochrome-button-background-color-hover);
|
|
17
19
|
}
|
|
@@ -25,6 +27,8 @@ unpredictable css rules order in build */
|
|
|
25
27
|
border-radius: 300px;
|
|
26
28
|
}
|
|
27
29
|
.pc-button-block_theme_monochrome {
|
|
30
|
+
--g-button-background-color: var(--pc-monochrome-button-background-color);
|
|
31
|
+
--g-button-background-color-hover: var(--pc-monochrome-button-background-color-hover);
|
|
28
32
|
--yc-button-background-color: var(--pc-monochrome-button-background-color);
|
|
29
33
|
--yc-button-background-color-hover: var(--pc-monochrome-button-background-color-hover);
|
|
30
34
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ButtonProps as ButtonParams } from '../../models';
|
|
2
|
+
import { ButtonProps as ButtonParams, QAProps } from '../../models';
|
|
3
3
|
import './Button.css';
|
|
4
|
-
export interface ButtonProps extends Omit<ButtonParams, 'url'
|
|
4
|
+
export interface ButtonProps extends Omit<ButtonParams, 'url'>, QAProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
url?: string;
|
|
7
7
|
onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
8
|
-
qa?: string;
|
|
9
8
|
}
|
|
10
9
|
declare const Button: (props: ButtonProps) => JSX.Element;
|
|
11
10
|
export default Button;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useCallback, useContext } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { StoreBadge } from '@gravity-ui/components';
|
|
4
|
+
import { Button as CommonButton, Icon, Platform } from '@gravity-ui/uikit';
|
|
4
5
|
import { LocaleContext } from '../../context/localeContext/localeContext';
|
|
5
6
|
import { useAnalytics } from '../../hooks';
|
|
6
7
|
import { useMetrika } from '../../hooks/useMetrika';
|
|
@@ -13,7 +14,7 @@ import './Button.css';
|
|
|
13
14
|
const b = block('button-block');
|
|
14
15
|
const Button = (props) => {
|
|
15
16
|
const handleMetrika = useMetrika();
|
|
16
|
-
const {
|
|
17
|
+
const { tld } = useContext(LocaleContext);
|
|
17
18
|
const { className, metrikaGoals, pixelEvents, analyticsEvents, size = 'l', theme = 'normal', url, img, onClick: onClickOrigin, text, width } = props, rest = __rest(props, ["className", "metrikaGoals", "pixelEvents", "analyticsEvents", "size", "theme", "url", "img", "onClick", "text", "width"]);
|
|
18
19
|
const defaultImgPosition = 'left';
|
|
19
20
|
const handleAnalytics = useAnalytics(DefaultEventNames.Button, url);
|
|
@@ -34,7 +35,7 @@ const Button = (props) => {
|
|
|
34
35
|
const buttonProps = Object.assign(Object.assign({}, rest), { onClick });
|
|
35
36
|
if (theme === 'app-store' || theme === 'google-play') {
|
|
36
37
|
const platform = theme === 'app-store' ? Platform.IOS : Platform.ANDROID;
|
|
37
|
-
return React.createElement(StoreBadge, { className: buttonClass, platform: platform,
|
|
38
|
+
return React.createElement(StoreBadge, { className: buttonClass, platform: platform, href: url });
|
|
38
39
|
}
|
|
39
40
|
let icon;
|
|
40
41
|
let image = img && (React.createElement("img", { className: b('image'), src: buttonImg.url, alt: buttonImg.alt || i18n('image-alt') }));
|
|
@@ -3,6 +3,8 @@ unpredictable css rules order in build */
|
|
|
3
3
|
.pc-button-tabs__item.pc-button-tabs__item {
|
|
4
4
|
margin-right: 8px;
|
|
5
5
|
margin-bottom: 12px;
|
|
6
|
+
--g-button-background-color: var(--pc-tab-item-background-color);
|
|
7
|
+
--g-button-background-color-hover: var(--pc-tab-item-background-color-hover);
|
|
6
8
|
--yc-button-background-color: var(--pc-tab-item-background-color);
|
|
7
9
|
--yc-button-background-color-hover: var(--pc-tab-item-background-color-hover);
|
|
8
10
|
}
|
|
@@ -14,6 +16,8 @@ unpredictable css rules order in build */
|
|
|
14
16
|
}
|
|
15
17
|
.pc-button-tabs__item.pc-button-tabs__item_active {
|
|
16
18
|
pointer-events: none;
|
|
19
|
+
--g-button-background-color: var(--pc-selected-tab-item-background-color);
|
|
20
|
+
--g-button-background-color-hover: var(--pc-selected-tab-item-background-color-hover);
|
|
17
21
|
--yc-button-background-color: var(--pc-selected-tab-item-background-color);
|
|
18
22
|
--yc-button-background-color-hover: var(--pc-selected-tab-item-background-color-hover);
|
|
19
23
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonSize } from '@gravity-ui/uikit';
|
|
3
|
-
import { ButtonProps } from '../../models';
|
|
3
|
+
import { ButtonProps, QAProps } from '../../models';
|
|
4
4
|
import './ButtonTabs.css';
|
|
5
5
|
export interface ButtonTabsItemProps extends Omit<ButtonProps, 'url' | 'primary' | 'target' | 'text'> {
|
|
6
6
|
id: string | null;
|
|
7
7
|
title: string;
|
|
8
8
|
}
|
|
9
|
-
export interface ButtonTabsProps {
|
|
9
|
+
export interface ButtonTabsProps extends QAProps {
|
|
10
10
|
className?: string;
|
|
11
11
|
items: ButtonTabsItemProps[];
|
|
12
12
|
activeTab?: string | null;
|
|
13
13
|
onSelectTab?: (tabId: string | null, e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
14
14
|
tabSize?: ButtonSize;
|
|
15
|
-
qa?: string;
|
|
16
15
|
}
|
|
17
16
|
declare const ButtonTabs: React.FC<ButtonTabsProps>;
|
|
18
17
|
export default ButtonTabs;
|
|
@@ -15,12 +15,12 @@ unpredictable css rules order in build */
|
|
|
15
15
|
height: 100%;
|
|
16
16
|
overflow-x: hidden;
|
|
17
17
|
border-radius: var(--pc-border-radius);
|
|
18
|
-
background-color: var(--
|
|
18
|
+
background-color: var(--g-color-base-float);
|
|
19
19
|
transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
20
20
|
display: flex;
|
|
21
21
|
}
|
|
22
22
|
.pc-card-base-block_border_line {
|
|
23
|
-
border: 1px solid var(--
|
|
23
|
+
border: 1px solid var(--g-color-line-generic);
|
|
24
24
|
}
|
|
25
25
|
.pc-card-base-block_border_line, .pc-card-base-block_border_none {
|
|
26
26
|
cursor: default;
|
|
@@ -42,8 +42,8 @@ unpredictable css rules order in build */
|
|
|
42
42
|
padding: 32px;
|
|
43
43
|
}
|
|
44
44
|
.pc-card-base-block__body {
|
|
45
|
-
font-size: var(--
|
|
46
|
-
line-height: var(--
|
|
45
|
+
font-size: var(--g-text-body-2-font-size);
|
|
46
|
+
line-height: var(--g-text-body-2-line-height);
|
|
47
47
|
flex: 1;
|
|
48
48
|
padding: 32px;
|
|
49
49
|
}
|
|
@@ -69,7 +69,7 @@ a.pc-card-base-block {
|
|
|
69
69
|
height: 100%;
|
|
70
70
|
overflow-x: hidden;
|
|
71
71
|
border-radius: var(--pc-border-radius);
|
|
72
|
-
background-color: var(--
|
|
72
|
+
background-color: var(--g-color-base-float);
|
|
73
73
|
transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
74
74
|
}
|
|
75
75
|
a.pc-card-base-block:hover, a.pc-card-base-block:active {
|
|
@@ -77,7 +77,7 @@ a.pc-card-base-block:hover, a.pc-card-base-block:active {
|
|
|
77
77
|
color: inherit;
|
|
78
78
|
}
|
|
79
79
|
a.pc-card-base-block_border_line {
|
|
80
|
-
border: 1px solid var(--
|
|
80
|
+
border: 1px solid var(--g-color-line-generic);
|
|
81
81
|
}
|
|
82
82
|
a.pc-card-base-block_border_line, a.pc-card-base-block_border_none {
|
|
83
83
|
cursor: default;
|
|
@@ -42,36 +42,36 @@ unpredictable css rules order in build */
|
|
|
42
42
|
height: 36px;
|
|
43
43
|
}
|
|
44
44
|
.pc-control_theme_primary {
|
|
45
|
-
color: var(--
|
|
45
|
+
color: var(--g-color-text-complementary);
|
|
46
46
|
}
|
|
47
47
|
.pc-control_theme_primary:hover {
|
|
48
|
-
color: var(--
|
|
48
|
+
color: var(--g-color-text-primary);
|
|
49
49
|
}
|
|
50
50
|
.pc-control_theme_secondary {
|
|
51
|
-
color: var(--
|
|
51
|
+
color: var(--g-color-text-secondary);
|
|
52
52
|
}
|
|
53
53
|
.pc-control_theme_secondary:hover {
|
|
54
|
-
color: var(--
|
|
54
|
+
color: var(--g-color-text-complementary);
|
|
55
55
|
}
|
|
56
56
|
.pc-control_theme_link {
|
|
57
|
-
color: var(--
|
|
57
|
+
color: var(--g-color-text-complementary);
|
|
58
58
|
}
|
|
59
59
|
.pc-control_theme_link:hover {
|
|
60
|
-
color: var(--
|
|
60
|
+
color: var(--g-color-text-link-hover);
|
|
61
61
|
}
|
|
62
62
|
.pc-control_theme_accent {
|
|
63
63
|
opacity: 0.7;
|
|
64
|
-
color: var(--
|
|
64
|
+
color: var(--g-color-base-danger-heavy);
|
|
65
65
|
}
|
|
66
66
|
.pc-control_theme_accent:hover {
|
|
67
67
|
opacity: 1;
|
|
68
68
|
}
|
|
69
69
|
.pc-control_disabled {
|
|
70
70
|
cursor: default;
|
|
71
|
-
color: var(--
|
|
71
|
+
color: var(--g-color-text-secondary);
|
|
72
72
|
}
|
|
73
73
|
.pc-control_disabled:hover {
|
|
74
|
-
color: var(--
|
|
74
|
+
color: var(--g-color-text-secondary);
|
|
75
75
|
}
|
|
76
76
|
@media (max-width: 768px) {
|
|
77
77
|
.pc-control:hover {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
3
|
.pc-ErrorWrapper {
|
|
4
|
-
font-size: var(--
|
|
5
|
-
line-height: var(--
|
|
4
|
+
font-size: var(--g-text-body-1-font-size);
|
|
5
|
+
line-height: var(--g-text-body-1-line-height);
|
|
6
6
|
white-space: nowrap;
|
|
7
|
-
color: var(--
|
|
7
|
+
color: var(--g-color-text-danger);
|
|
8
8
|
}
|
|
9
9
|
.pc-ErrorWrapper__text {
|
|
10
10
|
margin-bottom: 5px;
|
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
3
|
.pc-file-link {
|
|
4
|
-
--pc-color-label-background: rgba(0, 0, 0, 0.07);
|
|
5
4
|
align-items: baseline;
|
|
6
5
|
}
|
|
7
|
-
.pc-file-link_ext_pdf {
|
|
8
|
-
--pc-file-label-color: var(--yc-color-promo-highlight-tomato);
|
|
9
|
-
}
|
|
10
|
-
.pc-file-link_ext_doc {
|
|
11
|
-
--pc-file-label-color: var(--yc-color-promo-highlight-sky);
|
|
12
|
-
}
|
|
13
|
-
.pc-file-link_ext_xls {
|
|
14
|
-
--pc-file-label-color: var(--yc-color-promo-highlight-mint);
|
|
15
|
-
}
|
|
16
|
-
.pc-file-link_ext_ppt {
|
|
17
|
-
--pc-file-label-color: var(--yc-color-promo-highlight-copper);
|
|
18
|
-
}
|
|
19
|
-
.pc-file-link_ext_fig {
|
|
20
|
-
--pc-file-label-color: var(--yc-color-promo-highlight-neon);
|
|
21
|
-
}
|
|
22
|
-
.pc-file-link_ext_zip {
|
|
23
|
-
--pc-file-label-color: var(--yc-color-promo-highlight-asphalt);
|
|
24
|
-
}
|
|
25
6
|
.pc-file-link_type_horizontal {
|
|
26
7
|
display: flex;
|
|
27
8
|
}
|
|
@@ -29,59 +10,38 @@ unpredictable css rules order in build */
|
|
|
29
10
|
margin-right: 8px;
|
|
30
11
|
}
|
|
31
12
|
.pc-file-link__file-label {
|
|
32
|
-
flex: 0 0 auto;
|
|
33
|
-
width: 44px;
|
|
34
|
-
height: 24px;
|
|
35
|
-
line-height: 24px;
|
|
36
|
-
background-color: var(--pc-file-label-color);
|
|
37
|
-
color: var(--yc-color-text-light-primary);
|
|
38
|
-
border-radius: 4px;
|
|
39
|
-
text-transform: uppercase;
|
|
40
|
-
text-align: center;
|
|
41
|
-
}
|
|
42
|
-
.pc-file-link__file-label {
|
|
43
|
-
color: var(--yc-color-text-primary);
|
|
44
13
|
display: flex;
|
|
45
14
|
justify-content: center;
|
|
46
|
-
|
|
15
|
+
text-transform: uppercase;
|
|
16
|
+
}
|
|
17
|
+
.pc-file-link__file-label .yc-label__text {
|
|
18
|
+
width: initial;
|
|
47
19
|
}
|
|
48
20
|
.pc-file-link__link > a {
|
|
49
|
-
color: var(--
|
|
21
|
+
color: var(--g-color-text-primary);
|
|
50
22
|
}
|
|
51
23
|
.pc-file-link__link > a:hover {
|
|
52
|
-
color: var(--
|
|
24
|
+
color: var(--g-color-text-secondary);
|
|
53
25
|
}
|
|
54
26
|
.pc-file-link_size_l .pc-file-link__file-label {
|
|
55
|
-
font-size: var(--
|
|
56
|
-
line-height: var(--
|
|
57
|
-
width:
|
|
58
|
-
height: 24px;
|
|
59
|
-
padding: 2px 6px;
|
|
27
|
+
font-size: var(--g-text-body-2-font-size);
|
|
28
|
+
line-height: var(--g-text-body-2-line-height);
|
|
29
|
+
width: 52px;
|
|
60
30
|
}
|
|
61
31
|
.pc-file-link_size_m .pc-file-link__file-label, .pc-file-link_size_s .pc-file-link__file-label {
|
|
62
|
-
font-size: var(--
|
|
63
|
-
line-height: var(--
|
|
64
|
-
width:
|
|
65
|
-
height: 20px;
|
|
66
|
-
padding: 1px 4px;
|
|
67
|
-
}
|
|
68
|
-
.pc-file-link_theme_dark .pc-file-link__file-label {
|
|
69
|
-
color: var(--yc-color-text-light-primary);
|
|
70
|
-
background-color: var(--yc-color-base-light-simple-hover);
|
|
32
|
+
font-size: var(--g-text-body-1-font-size);
|
|
33
|
+
line-height: var(--g-text-body-1-line-height);
|
|
34
|
+
width: 44px;
|
|
71
35
|
}
|
|
72
36
|
.pc-file-link_theme_dark .pc-file-link__link > a {
|
|
73
|
-
color: var(--
|
|
37
|
+
color: var(--g-color-text-light-primary);
|
|
74
38
|
}
|
|
75
39
|
.pc-file-link_theme_dark .pc-file-link__link > a:hover {
|
|
76
|
-
color: var(--
|
|
77
|
-
}
|
|
78
|
-
.pc-file-link_theme_light .pc-file-link__file-label {
|
|
79
|
-
color: var(--yc-color-text-dark-primary);
|
|
80
|
-
background-color: var(--pc-color-label-background);
|
|
40
|
+
color: var(--g-color-text-light-secondary);
|
|
81
41
|
}
|
|
82
42
|
.pc-file-link_theme_light .pc-file-link__link > a {
|
|
83
|
-
color: var(--
|
|
43
|
+
color: var(--g-color-text-dark-primary);
|
|
84
44
|
}
|
|
85
45
|
.pc-file-link_theme_light .pc-file-link__link > a:hover {
|
|
86
|
-
color: var(--
|
|
46
|
+
color: var(--g-color-text-dark-secondary);
|
|
87
47
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
+
import { Label } from '@gravity-ui/uikit';
|
|
2
3
|
import { LocationContext } from '../../context/locationContext';
|
|
3
4
|
import { block, getLinkProps } from '../../utils';
|
|
4
5
|
import './FileLink.css';
|
|
@@ -20,12 +21,28 @@ export function getFileExt(name) {
|
|
|
20
21
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
21
22
|
return name && name.split('.').pop().toLowerCase();
|
|
22
23
|
}
|
|
24
|
+
const FileExtensionThemes = {
|
|
25
|
+
[FileExtension.PDF]: 'danger',
|
|
26
|
+
[FileExtension.DOC]: 'info',
|
|
27
|
+
[FileExtension.XLS]: 'success',
|
|
28
|
+
[FileExtension.PPT]: 'warning',
|
|
29
|
+
[FileExtension.FIG]: 'normal',
|
|
30
|
+
[FileExtension.ZIP]: 'unknown',
|
|
31
|
+
};
|
|
32
|
+
const LabelSizeMap = {
|
|
33
|
+
l: 's',
|
|
34
|
+
m: 's',
|
|
35
|
+
s: 'xs',
|
|
36
|
+
xs: 'xs',
|
|
37
|
+
};
|
|
23
38
|
const FileLink = (props) => {
|
|
24
39
|
const { hostname } = useContext(LocationContext);
|
|
25
40
|
const { href, text, type = 'vertical', textSize = 'm', className, theme = 'default', onClick, } = props;
|
|
26
41
|
const fileExt = getFileExt(href);
|
|
42
|
+
const labelTheme = (FileExtensionThemes[fileExt] || 'unknown');
|
|
43
|
+
const labelSize = LabelSizeMap[textSize];
|
|
27
44
|
return (React.createElement("div", { className: b({ ext: fileExt, type, size: textSize, theme }, className) },
|
|
28
|
-
|
|
45
|
+
React.createElement(Label, { className: b('file-label'), size: labelSize, theme: labelTheme }, fileExt),
|
|
29
46
|
React.createElement("div", { className: b('link') },
|
|
30
47
|
React.createElement("a", Object.assign({ href: href }, getLinkProps(href, hostname), { onClick: onClick }), text))));
|
|
31
48
|
};
|
|
@@ -28,7 +28,7 @@ unpredictable css rules order in build */
|
|
|
28
28
|
width: 36px;
|
|
29
29
|
height: 36px;
|
|
30
30
|
border-radius: 8px;
|
|
31
|
-
background-color: var(--
|
|
31
|
+
background-color: var(--g-color-base-simple-hover-solid);
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
opacity: 0;
|
|
34
34
|
transition: 0.3s;
|
|
@@ -37,10 +37,10 @@ unpredictable css rules order in build */
|
|
|
37
37
|
opacity: 1;
|
|
38
38
|
}
|
|
39
39
|
.pc-fullscreen-image__icon {
|
|
40
|
-
color: var(--
|
|
40
|
+
color: var(--g-color-text-hint);
|
|
41
41
|
}
|
|
42
42
|
.pc-fullscreen-image__icon_hover:hover {
|
|
43
|
-
color: var(--
|
|
43
|
+
color: var(--g-color-text-secondary);
|
|
44
44
|
}
|
|
45
45
|
@media (max-width: 1185px) {
|
|
46
46
|
.pc-fullscreen-image__modal-image {
|
|
@@ -41,7 +41,7 @@ unpredictable css rules order in build */
|
|
|
41
41
|
width: 36px;
|
|
42
42
|
height: 36px;
|
|
43
43
|
border-radius: 8px;
|
|
44
|
-
background-color: var(--
|
|
44
|
+
background-color: var(--g-color-base-simple-hover-solid);
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
z-index: 10;
|
|
47
47
|
}
|
|
@@ -55,10 +55,10 @@ unpredictable css rules order in build */
|
|
|
55
55
|
pointer-events: inherit;
|
|
56
56
|
}
|
|
57
57
|
.pc-full-screen-media__icon {
|
|
58
|
-
color: var(--
|
|
58
|
+
color: var(--g-color-text-hint);
|
|
59
59
|
}
|
|
60
60
|
.pc-full-screen-media__icon_hover:hover {
|
|
61
|
-
color: var(--
|
|
61
|
+
color: var(--g-color-text-secondary);
|
|
62
62
|
}
|
|
63
63
|
@media (max-width: 577px) {
|
|
64
64
|
.pc-full-screen-media__icon-wrapper {
|
|
@@ -8,35 +8,35 @@ unpredictable css rules order in build */
|
|
|
8
8
|
display: inline-block;
|
|
9
9
|
}
|
|
10
10
|
.pc-header-breadcrumbs__text {
|
|
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
|
outline: none;
|
|
14
|
-
color: var(--
|
|
14
|
+
color: var(--g-color-text-link);
|
|
15
15
|
text-decoration: none;
|
|
16
16
|
cursor: pointer;
|
|
17
|
-
color: var(--
|
|
17
|
+
color: var(--g-color-text-secondary);
|
|
18
18
|
}
|
|
19
19
|
.utilityfocus .pc-header-breadcrumbs__text:focus {
|
|
20
20
|
outline: 2px solid #ffdb4d;
|
|
21
21
|
}
|
|
22
22
|
.pc-header-breadcrumbs__text:hover, .pc-header-breadcrumbs__text:active {
|
|
23
|
-
--pc-text-header-color: var(--
|
|
24
|
-
color: var(--
|
|
23
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
24
|
+
color: var(--g-color-text-link-hover);
|
|
25
25
|
}
|
|
26
26
|
.pc-header-breadcrumbs__text:after {
|
|
27
27
|
content: " / ";
|
|
28
28
|
margin: 0 8px 0 6px;
|
|
29
|
-
color: var(--
|
|
29
|
+
color: var(--g-color-text-secondary);
|
|
30
30
|
}
|
|
31
31
|
.pc-header-breadcrumbs__text:hover {
|
|
32
|
-
color: var(--
|
|
32
|
+
color: var(--g-color-text-primary);
|
|
33
33
|
}
|
|
34
34
|
.pc-header-breadcrumbs_theme_dark .pc-header-breadcrumbs__text {
|
|
35
|
-
color: var(--
|
|
35
|
+
color: var(--g-color-text-light-secondary);
|
|
36
36
|
}
|
|
37
37
|
.pc-header-breadcrumbs_theme_dark .pc-header-breadcrumbs__text:after {
|
|
38
|
-
color: var(--
|
|
38
|
+
color: var(--g-color-text-light-secondary);
|
|
39
39
|
}
|
|
40
40
|
.pc-header-breadcrumbs_theme_dark .pc-header-breadcrumbs__text:hover {
|
|
41
|
-
color: var(--
|
|
41
|
+
color: var(--g-color-text-light-primary);
|
|
42
42
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { CSSProperties, MouseEventHandler } from 'react';
|
|
2
|
-
import { ImageDeviceProps, ImageObjectProps } from '../../models';
|
|
3
|
-
export interface ImageProps extends Partial<ImageObjectProps>, Partial<ImageDeviceProps
|
|
2
|
+
import { ImageDeviceProps, ImageObjectProps, QAProps } from '../../models';
|
|
3
|
+
export interface ImageProps extends Partial<ImageObjectProps>, Partial<ImageDeviceProps>, QAProps {
|
|
4
4
|
style?: CSSProperties;
|
|
5
5
|
className?: string;
|
|
6
6
|
onClick?: MouseEventHandler;
|
|
7
7
|
containerClassName?: string;
|
|
8
|
-
qa?: string;
|
|
9
8
|
}
|
|
10
9
|
declare const Image: (props: ImageProps) => JSX.Element | null;
|
|
11
10
|
export default Image;
|
|
@@ -5,7 +5,7 @@ unpredictable css rules order in build */
|
|
|
5
5
|
}
|
|
6
6
|
.pc-link-block__link {
|
|
7
7
|
outline: none;
|
|
8
|
-
color: var(--
|
|
8
|
+
color: var(--g-color-text-link);
|
|
9
9
|
text-decoration: none;
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
display: flex;
|
|
@@ -15,14 +15,14 @@ unpredictable css rules order in build */
|
|
|
15
15
|
outline: 2px solid #ffdb4d;
|
|
16
16
|
}
|
|
17
17
|
.pc-link-block__link:hover, .pc-link-block__link:active {
|
|
18
|
-
--pc-text-header-color: var(--
|
|
19
|
-
color: var(--
|
|
18
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
19
|
+
color: var(--g-color-text-link-hover);
|
|
20
20
|
}
|
|
21
21
|
.pc-link-block__link_theme_dark {
|
|
22
|
-
color: var(--
|
|
22
|
+
color: var(--g-color-text-light-primary);
|
|
23
23
|
}
|
|
24
24
|
.pc-link-block__link_theme_dark:hover {
|
|
25
|
-
color: var(--
|
|
25
|
+
color: var(--g-color-text-light-secondary);
|
|
26
26
|
}
|
|
27
27
|
.pc-link-block__link_has-arrow {
|
|
28
28
|
display: inherit;
|
|
@@ -30,7 +30,7 @@ unpredictable css rules order in build */
|
|
|
30
30
|
}
|
|
31
31
|
.pc-link-block__link_has-arrow:hover, .pc-link-block__link_has-arrow:active {
|
|
32
32
|
--pc-text-header-color: inherit;
|
|
33
|
-
color: var(--
|
|
33
|
+
color: var(--g-color-text-link);
|
|
34
34
|
}
|
|
35
35
|
.pc-link-block__link_has-arrow .pc-link-block__content {
|
|
36
36
|
white-space: normal;
|
|
@@ -39,7 +39,7 @@ unpredictable css rules order in build */
|
|
|
39
39
|
transform: translateX(5px) rotate(-90deg);
|
|
40
40
|
}
|
|
41
41
|
.pc-link-block__link.pc-link-block__link_has-arrow.pc-link-block__link_theme_dark:hover {
|
|
42
|
-
color: var(--
|
|
42
|
+
color: var(--g-color-text-light-primary);
|
|
43
43
|
}
|
|
44
44
|
.pc-link-block__arrow {
|
|
45
45
|
position: relative;
|
|
@@ -48,17 +48,17 @@ unpredictable css rules order in build */
|
|
|
48
48
|
transform: rotate(-90deg);
|
|
49
49
|
}
|
|
50
50
|
.pc-link-block_size_l {
|
|
51
|
-
font-size: var(--
|
|
52
|
-
line-height: var(--
|
|
51
|
+
font-size: var(--g-text-body-3-font-size);
|
|
52
|
+
line-height: var(--g-text-body-3-line-height);
|
|
53
53
|
}
|
|
54
54
|
.pc-link-block_size_m {
|
|
55
|
-
font-size: var(--
|
|
56
|
-
line-height: var(--
|
|
55
|
+
font-size: var(--g-text-body-2-font-size);
|
|
56
|
+
line-height: var(--g-text-body-2-line-height);
|
|
57
57
|
}
|
|
58
58
|
.pc-link-block_size_m .pc-link-block__arrow {
|
|
59
59
|
top: 1px;
|
|
60
60
|
}
|
|
61
61
|
.pc-link-block_size_s {
|
|
62
|
-
font-size: var(--
|
|
63
|
-
line-height: var(--
|
|
62
|
+
font-size: var(--g-text-body-1-font-size);
|
|
63
|
+
line-height: var(--g-text-body-1-line-height);
|
|
64
64
|
}
|
|
@@ -45,6 +45,7 @@ const Video = (props) => {
|
|
|
45
45
|
return video.src.length && !hasVideoFallback ? (React.createElement("div", { className: b('wrap', videoClassName), style: { height } },
|
|
46
46
|
React.createElement("video", { disablePictureInPicture: true, playsInline: true,
|
|
47
47
|
// @ts-ignore
|
|
48
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
48
49
|
pip: "false", className: b('item'), ref: ref, preload: "metadata", muted: true }, getVideoTypesWithPriority(video.src).map(({ src, type }, index) => (React.createElement("source", { key: index, src: src, type: type })))))) : null;
|
|
49
50
|
}, [video, videoClassName, hasVideoFallback, height]);
|
|
50
51
|
switch (video.type) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
3
|
.pc-meta-info {
|
|
4
|
-
font-size: var(--
|
|
5
|
-
line-height: var(--
|
|
4
|
+
font-size: var(--g-text-body-2-font-size);
|
|
5
|
+
line-height: var(--g-text-body-2-line-height);
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
font-weight: 500;
|
|
@@ -12,7 +12,7 @@ unpredictable css rules order in build */
|
|
|
12
12
|
position: relative;
|
|
13
13
|
width: 64px;
|
|
14
14
|
height: 64px;
|
|
15
|
-
background: var(--
|
|
15
|
+
background: var(--g-color-base-background);
|
|
16
16
|
transition: background-color 300ms;
|
|
17
17
|
}
|
|
18
18
|
.pc-CustomBarControls__button:hover {
|
|
@@ -28,8 +28,8 @@ unpredictable css rules order in build */
|
|
|
28
28
|
border-radius: 166px;
|
|
29
29
|
}
|
|
30
30
|
.pc-ReactPlayer__button_theme_blue {
|
|
31
|
-
color: var(--
|
|
32
|
-
background-color: var(--
|
|
31
|
+
color: var(--g-color-base-background);
|
|
32
|
+
background-color: var(--g-color-base-brand);
|
|
33
33
|
}
|
|
34
34
|
.pc-ReactPlayer__button_theme_grey {
|
|
35
35
|
color: var(--pc-text-header-color);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
3
|
.pc-table {
|
|
4
|
-
font-size: var(--
|
|
5
|
-
line-height: var(--
|
|
4
|
+
font-size: var(--g-text-body-2-font-size);
|
|
5
|
+
line-height: var(--g-text-body-2-line-height);
|
|
6
6
|
margin-top: 32px;
|
|
7
7
|
}
|
|
8
8
|
.pc-table__table {
|
|
@@ -16,7 +16,7 @@ unpredictable css rules order in build */
|
|
|
16
16
|
font-weight: 500;
|
|
17
17
|
}
|
|
18
18
|
.pc-table__row:first-child .pc-table__cell {
|
|
19
|
-
border-bottom-color: var(--
|
|
19
|
+
border-bottom-color: var(--g-color-line-generic-active);
|
|
20
20
|
align-items: flex-end;
|
|
21
21
|
padding-top: 0;
|
|
22
22
|
}
|
|
@@ -25,7 +25,7 @@ unpredictable css rules order in build */
|
|
|
25
25
|
display: flex;
|
|
26
26
|
flex: 1;
|
|
27
27
|
align-items: center;
|
|
28
|
-
border-bottom: 1px solid var(--
|
|
28
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
|
29
29
|
}
|
|
30
30
|
.pc-table__cell:first-child {
|
|
31
31
|
flex: 2;
|
|
@@ -49,18 +49,18 @@ unpredictable css rules order in build */
|
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
}
|
|
51
51
|
.pc-table__marker_type_disk.pc-table__marker_index_0 {
|
|
52
|
-
background-color: var(--
|
|
52
|
+
background-color: var(--g-color-base-neutral-light);
|
|
53
53
|
}
|
|
54
54
|
.pc-table__marker_type_disk.pc-table__marker_index_1 {
|
|
55
|
-
background-color: var(--
|
|
55
|
+
background-color: var(--g-color-base-brand);
|
|
56
56
|
}
|
|
57
57
|
.pc-table__marker_type_disk.pc-table__marker_index_2 {
|
|
58
|
-
border: 1px solid var(--
|
|
58
|
+
border: 1px solid var(--g-color-text-hint);
|
|
59
59
|
}
|
|
60
60
|
.pc-table__legend {
|
|
61
61
|
display: flex;
|
|
62
62
|
margin-top: 20px;
|
|
63
|
-
color: var(--
|
|
63
|
+
color: var(--g-color-text-secondary);
|
|
64
64
|
}
|
|
65
65
|
.pc-table__legend-item {
|
|
66
66
|
display: flex;
|
|
@@ -4,13 +4,13 @@ unpredictable css rules order in build */
|
|
|
4
4
|
margin-top: 12px;
|
|
5
5
|
}
|
|
6
6
|
.pc-title__description .yfm {
|
|
7
|
-
font-size: var(--
|
|
8
|
-
line-height: var(--
|
|
7
|
+
font-size: var(--g-text-body-3-font-size);
|
|
8
|
+
line-height: var(--g-text-body-3-line-height);
|
|
9
9
|
}
|
|
10
10
|
.pc-title__description_titleSize_s, .pc-title__description_titleSize_xs {
|
|
11
11
|
margin-top: 8px;
|
|
12
12
|
}
|
|
13
13
|
.pc-title__description_titleSize_s .yfm, .pc-title__description_titleSize_xs .yfm {
|
|
14
|
-
font-size: var(--
|
|
15
|
-
line-height: var(--
|
|
14
|
+
font-size: var(--g-text-body-2-font-size);
|
|
15
|
+
line-height: var(--g-text-body-2-line-height);
|
|
16
16
|
}
|