@gravity-ui/page-constructor 4.48.0 → 4.49.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.
|
@@ -55,8 +55,19 @@ unpredictable css rules order in build */
|
|
|
55
55
|
font-size: var(--g-text-body-2-font-size);
|
|
56
56
|
line-height: var(--g-text-body-2-line-height);
|
|
57
57
|
margin: 12px 0 0;
|
|
58
|
+
}
|
|
59
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm,
|
|
60
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm > * {
|
|
61
|
+
color: var(--g-color-text-secondary);
|
|
62
|
+
}
|
|
63
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm a {
|
|
58
64
|
color: var(--g-color-text-secondary);
|
|
65
|
+
text-decoration: underline;
|
|
66
|
+
}
|
|
67
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm a:hover {
|
|
68
|
+
color: var(--g-color-text-primary);
|
|
59
69
|
}
|
|
70
|
+
|
|
60
71
|
.pc-tabs-block__col_centered {
|
|
61
72
|
margin: 0 auto;
|
|
62
73
|
}
|
|
@@ -11,6 +11,7 @@ const utils_1 = require("../../components/Media/Image/utils");
|
|
|
11
11
|
const Media_1 = tslib_1.__importDefault(require("../../components/Media/Media"));
|
|
12
12
|
const Title_1 = tslib_1.__importDefault(require("../../components/Title/Title"));
|
|
13
13
|
const VideoBlock_1 = require("../../components/VideoBlock/VideoBlock");
|
|
14
|
+
const YFMWrapper_1 = tslib_1.__importDefault(require("../../components/YFMWrapper/YFMWrapper"));
|
|
14
15
|
const theme_1 = require("../../context/theme");
|
|
15
16
|
const grid_1 = require("../../grid");
|
|
16
17
|
const utils_2 = require("../../utils");
|
|
@@ -68,7 +69,8 @@ const TabsBlock = ({ items, title, description, animated, tabsColSizes, centered
|
|
|
68
69
|
react_1.default.createElement(Media_1.default, Object.assign({}, (0, utils_2.getThemedValue)(activeTabData.media, theme), { key: activeTab, className: b('media'), playVideo: play, height: mediaVideoHeight || undefined, onImageLoad: handleImageHeight }))))),
|
|
69
70
|
imageProps && (react_1.default.createElement(react_1.Fragment, null,
|
|
70
71
|
react_1.default.createElement(FullscreenImage_1.default, Object.assign({}, imageProps, { imageClassName: b('image') })))),
|
|
71
|
-
(activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (react_1.default.createElement("p", { className: b('caption'), id: captionId },
|
|
72
|
+
(activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (react_1.default.createElement("p", { className: b('caption'), id: captionId },
|
|
73
|
+
react_1.default.createElement(YFMWrapper_1.default, { content: activeTabData.caption, modifiers: { constructor: true }, id: captionId })))));
|
|
72
74
|
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), onScroll: () => setPlay(true), animate: animated },
|
|
73
75
|
react_1.default.createElement(Title_1.default, { title: title, subtitle: description, className: b('title', { centered: centered }) }),
|
|
74
76
|
react_1.default.createElement(grid_1.Row, null,
|
|
@@ -55,8 +55,19 @@ unpredictable css rules order in build */
|
|
|
55
55
|
font-size: var(--g-text-body-2-font-size);
|
|
56
56
|
line-height: var(--g-text-body-2-line-height);
|
|
57
57
|
margin: 12px 0 0;
|
|
58
|
+
}
|
|
59
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm,
|
|
60
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm > * {
|
|
61
|
+
color: var(--g-color-text-secondary);
|
|
62
|
+
}
|
|
63
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm a {
|
|
58
64
|
color: var(--g-color-text-secondary);
|
|
65
|
+
text-decoration: underline;
|
|
66
|
+
}
|
|
67
|
+
.pc-tabs-block__caption.pc-tabs-block__caption .yfm a:hover {
|
|
68
|
+
color: var(--g-color-text-primary);
|
|
59
69
|
}
|
|
70
|
+
|
|
60
71
|
.pc-tabs-block__col_centered {
|
|
61
72
|
margin: 0 auto;
|
|
62
73
|
}
|
|
@@ -7,6 +7,7 @@ import { getMediaImage } from '../../components/Media/Image/utils';
|
|
|
7
7
|
import Media from '../../components/Media/Media';
|
|
8
8
|
import Title from '../../components/Title/Title';
|
|
9
9
|
import { getHeight } from '../../components/VideoBlock/VideoBlock';
|
|
10
|
+
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
|
|
10
11
|
import { useTheme } from '../../context/theme';
|
|
11
12
|
import { Col, GridColumnOrderClasses, Row } from '../../grid';
|
|
12
13
|
import { block, getThemedValue } from '../../utils';
|
|
@@ -65,7 +66,8 @@ export const TabsBlock = ({ items, title, description, animated, tabsColSizes, c
|
|
|
65
66
|
React.createElement(Media, Object.assign({}, getThemedValue(activeTabData.media, theme), { key: activeTab, className: b('media'), playVideo: play, height: mediaVideoHeight || undefined, onImageLoad: handleImageHeight }))))),
|
|
66
67
|
imageProps && (React.createElement(Fragment, null,
|
|
67
68
|
React.createElement(FullscreenImage, Object.assign({}, imageProps, { imageClassName: b('image') })))),
|
|
68
|
-
(activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (React.createElement("p", { className: b('caption'), id: captionId },
|
|
69
|
+
(activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.caption) && (React.createElement("p", { className: b('caption'), id: captionId },
|
|
70
|
+
React.createElement(YFMWrapper, { content: activeTabData.caption, modifiers: { constructor: true }, id: captionId })))));
|
|
69
71
|
return (React.createElement(AnimateBlock, { className: b(), onScroll: () => setPlay(true), animate: animated },
|
|
70
72
|
React.createElement(Title, { title: title, subtitle: description, className: b('title', { centered: centered }) }),
|
|
71
73
|
React.createElement(Row, null,
|