@gravity-ui/page-constructor 6.0.0-alpha.4 → 6.0.0-alpha.6
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/build/cjs/blocks/Share/Share.js +5 -1
- package/build/cjs/blocks/Table/Table.css +4 -3
- package/build/cjs/blocks/Table/Table.js +3 -1
- package/build/cjs/components/Title/TitleItem.css +1 -0
- package/build/cjs/sub-blocks/BannerCard/BannerCard.css +4 -0
- package/build/cjs/sub-blocks/Content/Content.css +27 -25
- package/build/cjs/text-transform/config.js +39 -32
- package/build/esm/blocks/Share/Share.js +5 -1
- package/build/esm/blocks/Table/Table.css +4 -3
- package/build/esm/blocks/Table/Table.js +4 -2
- package/build/esm/components/Title/TitleItem.css +1 -0
- package/build/esm/sub-blocks/BannerCard/BannerCard.css +4 -0
- package/build/esm/sub-blocks/Content/Content.css +27 -25
- package/build/esm/text-transform/config.js +40 -33
- package/package.json +1 -1
- package/server/text-transform/config.js +39 -32
- package/widget/index.js +1 -1
|
@@ -3,6 +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 uikit_1 = require("@gravity-ui/uikit");
|
|
6
|
+
const components_1 = require("../../components");
|
|
6
7
|
const locationContext_1 = require("../../context/locationContext");
|
|
7
8
|
const hooks_1 = require("../../hooks");
|
|
8
9
|
const Facebook_1 = require("../../icons/Facebook");
|
|
@@ -26,7 +27,10 @@ const Share = ({ items, title }) => {
|
|
|
26
27
|
const handleAnalytics = (0, hooks_1.useAnalytics)(models_1.DefaultEventNames.ShareButton);
|
|
27
28
|
const handleButtonClick = (0, react_1.useCallback)(() => handleAnalytics(), [handleAnalytics]);
|
|
28
29
|
return (react_1.default.createElement("div", { className: b() },
|
|
29
|
-
react_1.default.createElement("h5", { className: b('title') }, title
|
|
30
|
+
react_1.default.createElement("h5", { className: b('title') }, title ? (react_1.default.createElement(components_1.YFMWrapper, { content: title, modifiers: {
|
|
31
|
+
constructor: true,
|
|
32
|
+
// constructorTheme: textTheme,
|
|
33
|
+
} })) : ((0, i18n_1.i18n)('constructor-share'))),
|
|
30
34
|
react_1.default.createElement("div", { className: b('items') }, items.map((type) => {
|
|
31
35
|
const url = (0, utils_1.getAbsolutePath)(hostname, pathname);
|
|
32
36
|
const socialUrl = (0, utils_1.getShareLink)(url, type);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.pc-table-block__title {
|
|
1
|
+
.pc-table-block__title.pc-table-block__title {
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
/* use this for style redefinitions to awoid problems with
|
|
6
6
|
unpredictable css rules order in build */
|
|
7
|
-
.pc-table-block__title {
|
|
7
|
+
.pc-table-block__title.pc-table-block__title {
|
|
8
8
|
font-size: var(--g-text-display-2-font-size);
|
|
9
9
|
line-height: var(--g-text-display-2-line-height);
|
|
10
10
|
color: var(--pc-text-header-color);
|
|
@@ -14,11 +14,12 @@ unpredictable css rules order in build */
|
|
|
14
14
|
margin-right: 32px;
|
|
15
15
|
}
|
|
16
16
|
@media (max-width: 576px) {
|
|
17
|
-
.pc-table-block__title {
|
|
17
|
+
.pc-table-block__title.pc-table-block__title {
|
|
18
18
|
font-size: var(--g-text-display-1-font-size);
|
|
19
19
|
line-height: var(--g-text-display-1-line-height);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
|
|
22
23
|
.pc-table-block__table {
|
|
23
24
|
margin-top: 0;
|
|
24
25
|
}
|
|
@@ -13,7 +13,9 @@ const TableBlock = (props) => {
|
|
|
13
13
|
react_1.default.createElement(grid_1.Grid, { className: b('content') },
|
|
14
14
|
react_1.default.createElement(grid_1.Row, { className: b('row') },
|
|
15
15
|
react_1.default.createElement(grid_1.Col, { sizes: { [grid_1.GridColumnSize.Md]: 4, [grid_1.GridColumnSize.All]: 12 } },
|
|
16
|
-
react_1.default.createElement("h2",
|
|
16
|
+
react_1.default.createElement(components_1.YFMWrapper, { tagName: "h2", contentClassName: b('title'), content: title, modifiers: {
|
|
17
|
+
constructor: true,
|
|
18
|
+
} })),
|
|
17
19
|
react_1.default.createElement(grid_1.Col, { sizes: { [grid_1.GridColumnSize.Md]: 8, [grid_1.GridColumnSize.All]: 12 } },
|
|
18
20
|
react_1.default.createElement(components_1.Table, Object.assign({ className: b('table') }, table)))))));
|
|
19
21
|
};
|
|
@@ -16,6 +16,9 @@ unpredictable css rules order in build */
|
|
|
16
16
|
color: var(--g-color-text-light-primary);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.pc-banner-card__text {
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
}
|
|
19
22
|
.pc-banner-card__title.pc-banner-card__title {
|
|
20
23
|
font-size: var(--g-text-display-2-font-size);
|
|
21
24
|
line-height: var(--g-text-display-2-line-height);
|
|
@@ -57,6 +60,7 @@ unpredictable css rules order in build */
|
|
|
57
60
|
justify-content: space-between;
|
|
58
61
|
flex-direction: column;
|
|
59
62
|
align-items: baseline;
|
|
63
|
+
max-width: 100%;
|
|
60
64
|
}
|
|
61
65
|
.pc-banner-card__subtitle.pc-banner-card__subtitle {
|
|
62
66
|
display: inline-block;
|
|
@@ -81,73 +81,75 @@ unpredictable css rules order in build */
|
|
|
81
81
|
.pc-content_size_l .pc-content__buttons {
|
|
82
82
|
margin-top: 24px;
|
|
83
83
|
}
|
|
84
|
-
.pc-content_theme_dark {
|
|
84
|
+
.pc-content_theme_dark.pc-content_theme_dark {
|
|
85
85
|
--g-color-line-focus: var(--pc-color-line-focus-dark);
|
|
86
86
|
}
|
|
87
|
-
.pc-content_theme_dark .pc-content__title *,
|
|
88
|
-
.pc-content_theme_dark .pc-content__text .yfm,
|
|
89
|
-
.pc-content_theme_dark .pc-content__text .yfm *,
|
|
90
|
-
.pc-content_theme_dark .pc-content__links a {
|
|
87
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title *,
|
|
88
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm,
|
|
89
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm *,
|
|
90
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__links a {
|
|
91
91
|
color: var(--g-color-text-light-primary);
|
|
92
92
|
}
|
|
93
|
-
.pc-content_theme_dark .pc-content__notice .yfm,
|
|
94
|
-
.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
93
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm,
|
|
94
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
95
95
|
color: var(--g-color-text-light-secondary);
|
|
96
96
|
}
|
|
97
|
-
.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
97
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
98
98
|
color: var(--g-color-text-light-secondary);
|
|
99
99
|
text-decoration: underline;
|
|
100
100
|
}
|
|
101
|
-
.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
101
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
102
102
|
color: var(--g-color-text-light-primary);
|
|
103
103
|
}
|
|
104
|
-
.pc-content_theme_dark .pc-content__text .yfm a {
|
|
104
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a {
|
|
105
105
|
color: var(--g-color-text-light-primary);
|
|
106
106
|
text-decoration: underline;
|
|
107
107
|
}
|
|
108
|
-
.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
108
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
109
109
|
color: var(--g-color-text-light-secondary);
|
|
110
110
|
}
|
|
111
|
-
.pc-content_theme_dark .pc-content__title a {
|
|
111
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a {
|
|
112
112
|
color: var(--g-color-text-light-primary);
|
|
113
113
|
text-decoration: underline;
|
|
114
114
|
text-decoration: none;
|
|
115
115
|
}
|
|
116
|
-
.pc-content_theme_dark .pc-content__title a:hover {
|
|
116
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a:hover {
|
|
117
117
|
color: var(--g-color-text-light-secondary);
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
.pc-content_theme_light .pc-
|
|
121
|
-
.pc-content_theme_light .pc-content__text .yfm
|
|
122
|
-
.pc-content_theme_light .pc-
|
|
119
|
+
|
|
120
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title *,
|
|
121
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm,
|
|
122
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm *,
|
|
123
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__links a {
|
|
123
124
|
color: var(--g-color-text-dark-primary);
|
|
124
125
|
}
|
|
125
|
-
.pc-content_theme_light .pc-content__notice .yfm,
|
|
126
|
-
.pc-content_theme_light .pc-content__notice .yfm * {
|
|
126
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm,
|
|
127
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm * {
|
|
127
128
|
color: var(--g-color-text-dark-secondary);
|
|
128
129
|
}
|
|
129
|
-
.pc-content_theme_light .pc-content__notice .yfm a {
|
|
130
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a {
|
|
130
131
|
color: var(--g-color-text-dark-secondary);
|
|
131
132
|
text-decoration: underline;
|
|
132
133
|
}
|
|
133
|
-
.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
134
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
134
135
|
color: var(--g-color-text-dark-primary);
|
|
135
136
|
}
|
|
136
|
-
.pc-content_theme_light .pc-content__text .yfm a {
|
|
137
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a {
|
|
137
138
|
color: var(--g-color-text-dark-primary);
|
|
138
139
|
text-decoration: underline;
|
|
139
140
|
}
|
|
140
|
-
.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
141
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
141
142
|
color: var(--g-color-text-dark-secondary);
|
|
142
143
|
}
|
|
143
|
-
.pc-content_theme_light .pc-content__title a {
|
|
144
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a {
|
|
144
145
|
color: var(--g-color-text-dark-primary);
|
|
145
146
|
text-decoration: underline;
|
|
146
147
|
text-decoration: none;
|
|
147
148
|
}
|
|
148
|
-
.pc-content_theme_light .pc-content__title a:hover {
|
|
149
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a:hover {
|
|
149
150
|
color: var(--g-color-text-dark-secondary);
|
|
150
151
|
}
|
|
152
|
+
|
|
151
153
|
.pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__links),
|
|
152
154
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__buttons),
|
|
153
155
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__links),
|
|
@@ -113,7 +113,8 @@ exports.config = {
|
|
|
113
113
|
[models_1.SubBlockType.BasicCard]: [
|
|
114
114
|
{
|
|
115
115
|
fields: ['title'],
|
|
116
|
-
transformer: common_1.
|
|
116
|
+
transformer: common_1.yfmTransformer,
|
|
117
|
+
renderInline: true,
|
|
117
118
|
},
|
|
118
119
|
{
|
|
119
120
|
fields: ['text', 'additionalInfo'],
|
|
@@ -122,22 +123,16 @@ exports.config = {
|
|
|
122
123
|
],
|
|
123
124
|
[models_1.SubBlockType.BackgroundCard]: [
|
|
124
125
|
{
|
|
125
|
-
fields: ['text', 'additionalInfo'],
|
|
126
|
+
fields: ['title', 'text', 'additionalInfo'],
|
|
126
127
|
transformer: common_1.yfmTransformer,
|
|
127
|
-
|
|
128
|
-
{
|
|
129
|
-
fields: ['title'],
|
|
130
|
-
transformer: common_1.typografTransformer,
|
|
128
|
+
renderInline: true,
|
|
131
129
|
},
|
|
132
130
|
],
|
|
133
131
|
[models_1.SubBlockType.ImageCard]: [
|
|
134
132
|
{
|
|
135
|
-
fields: ['text', 'additionalInfo'],
|
|
133
|
+
fields: ['title', 'text', 'additionalInfo'],
|
|
136
134
|
transformer: common_1.yfmTransformer,
|
|
137
|
-
|
|
138
|
-
{
|
|
139
|
-
fields: ['title'],
|
|
140
|
-
transformer: common_1.typografTransformer,
|
|
135
|
+
renderInline: true,
|
|
141
136
|
},
|
|
142
137
|
],
|
|
143
138
|
[models_1.SubBlockType.LayoutItem]: [
|
|
@@ -149,7 +144,8 @@ exports.config = {
|
|
|
149
144
|
{
|
|
150
145
|
fields: ['content'],
|
|
151
146
|
parser: parseContentLayoutTitle,
|
|
152
|
-
transformer: common_1.
|
|
147
|
+
transformer: common_1.yfmTransformer,
|
|
148
|
+
renderInline: true,
|
|
153
149
|
},
|
|
154
150
|
{
|
|
155
151
|
fields: ['metaInfo'],
|
|
@@ -193,15 +189,13 @@ exports.config = {
|
|
|
193
189
|
},
|
|
194
190
|
],
|
|
195
191
|
[models_1.BlockType.SliderOldBlock]: exports.blockHeaderTransformer,
|
|
192
|
+
[models_1.BlockType.SliderBlock]: exports.blockHeaderTransformer,
|
|
196
193
|
[models_1.BlockType.CompaniesBlock]: exports.blockHeaderTransformer,
|
|
197
194
|
[models_1.BlockType.QuestionsBlock]: [
|
|
198
195
|
{
|
|
199
|
-
fields: ['title'],
|
|
200
|
-
transformer: common_1.typografTransformer,
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
fields: ['text', 'additionalInfo'],
|
|
196
|
+
fields: ['title', 'text', 'additionalInfo'],
|
|
204
197
|
transformer: common_1.yfmTransformer,
|
|
198
|
+
renderInline: true,
|
|
205
199
|
},
|
|
206
200
|
{
|
|
207
201
|
fields: ['items'],
|
|
@@ -223,7 +217,8 @@ exports.config = {
|
|
|
223
217
|
[models_1.SubBlockType.BannerCard]: [
|
|
224
218
|
{
|
|
225
219
|
fields: ['title'],
|
|
226
|
-
transformer: common_1.
|
|
220
|
+
transformer: common_1.yfmTransformer,
|
|
221
|
+
renderInline: true,
|
|
227
222
|
},
|
|
228
223
|
{
|
|
229
224
|
fields: ['subtitle'],
|
|
@@ -233,7 +228,7 @@ exports.config = {
|
|
|
233
228
|
[models_1.BlockType.MediaBlock]: [
|
|
234
229
|
...exports.blockHeaderTransformer,
|
|
235
230
|
{
|
|
236
|
-
fields: ['
|
|
231
|
+
fields: ['additionalInfo'],
|
|
237
232
|
transformer: common_1.yfmTransformer,
|
|
238
233
|
},
|
|
239
234
|
{
|
|
@@ -258,11 +253,17 @@ exports.config = {
|
|
|
258
253
|
},
|
|
259
254
|
{
|
|
260
255
|
fields: ['items'],
|
|
261
|
-
transformer: common_1.
|
|
256
|
+
transformer: common_1.yfmTransformer,
|
|
262
257
|
parser: parseItemsTitle,
|
|
258
|
+
renderInline: true,
|
|
263
259
|
},
|
|
264
260
|
],
|
|
265
261
|
[models_1.BlockType.TableBlock]: [
|
|
262
|
+
{
|
|
263
|
+
fields: ['title'],
|
|
264
|
+
transformer: common_1.yfmTransformer,
|
|
265
|
+
renderInline: true,
|
|
266
|
+
},
|
|
266
267
|
{
|
|
267
268
|
fields: ['table'],
|
|
268
269
|
transformer: common_1.yfmTransformer,
|
|
@@ -276,15 +277,11 @@ exports.config = {
|
|
|
276
277
|
},
|
|
277
278
|
],
|
|
278
279
|
[models_1.BlockType.HeaderSliderBlock]: [
|
|
279
|
-
{
|
|
280
|
-
fields: ['items'],
|
|
281
|
-
transformer: common_1.typografTransformer,
|
|
282
|
-
parser: (0, common_1.createItemsParser)(['title', 'overtitle']),
|
|
283
|
-
},
|
|
284
280
|
{
|
|
285
281
|
fields: ['items'],
|
|
286
282
|
transformer: common_1.yfmTransformer,
|
|
287
|
-
parser: (0, common_1.createItemsParser)(['description']),
|
|
283
|
+
parser: (0, common_1.createItemsParser)(['title', 'overtitle', 'description']),
|
|
284
|
+
renderInline: true,
|
|
288
285
|
},
|
|
289
286
|
],
|
|
290
287
|
[models_1.SubBlockType.PriceDetailed]: [
|
|
@@ -312,8 +309,9 @@ exports.config = {
|
|
|
312
309
|
},
|
|
313
310
|
{
|
|
314
311
|
fields: ['textContent'],
|
|
315
|
-
transformer: common_1.
|
|
312
|
+
transformer: common_1.yfmTransformer,
|
|
316
313
|
parser: parseContentLayoutTitle,
|
|
314
|
+
renderInline: true,
|
|
317
315
|
},
|
|
318
316
|
],
|
|
319
317
|
[models_1.SubBlockType.Content]: [
|
|
@@ -323,8 +321,9 @@ exports.config = {
|
|
|
323
321
|
},
|
|
324
322
|
{
|
|
325
323
|
fields: ['title'],
|
|
326
|
-
transformer: common_1.
|
|
324
|
+
transformer: common_1.yfmTransformer,
|
|
327
325
|
parser: parseTitle,
|
|
326
|
+
renderInline: true,
|
|
328
327
|
},
|
|
329
328
|
{
|
|
330
329
|
fields: ['list'],
|
|
@@ -333,6 +332,11 @@ exports.config = {
|
|
|
333
332
|
},
|
|
334
333
|
],
|
|
335
334
|
[models_1.BlockType.InfoBlock]: [
|
|
335
|
+
{
|
|
336
|
+
fields: ['title'],
|
|
337
|
+
transformer: common_1.yfmTransformer,
|
|
338
|
+
renderInline: true,
|
|
339
|
+
},
|
|
336
340
|
{
|
|
337
341
|
fields: ['rightContent', 'leftContent'],
|
|
338
342
|
transformer: common_1.yfmTransformer,
|
|
@@ -340,14 +344,16 @@ exports.config = {
|
|
|
340
344
|
},
|
|
341
345
|
{
|
|
342
346
|
fields: ['rightContent', 'leftContent'],
|
|
343
|
-
transformer: common_1.
|
|
347
|
+
transformer: common_1.yfmTransformer,
|
|
344
348
|
parser: parseContentLayoutTitle,
|
|
349
|
+
renderInline: true,
|
|
345
350
|
},
|
|
346
351
|
],
|
|
347
352
|
[models_1.BlockType.ShareBlock]: [
|
|
348
353
|
{
|
|
349
354
|
fields: ['title'],
|
|
350
|
-
transformer: common_1.
|
|
355
|
+
transformer: common_1.yfmTransformer,
|
|
356
|
+
renderInline: true,
|
|
351
357
|
},
|
|
352
358
|
],
|
|
353
359
|
[models_1.BlockType.CardLayoutBlock]: exports.blockHeaderTransformer,
|
|
@@ -362,7 +368,7 @@ exports.config = {
|
|
|
362
368
|
{
|
|
363
369
|
fields: ['list'],
|
|
364
370
|
transformer: common_1.yfmTransformer,
|
|
365
|
-
parser: (0, common_1.createItemsParser)(['text']),
|
|
371
|
+
parser: (0, common_1.createItemsParser)(['title', 'text']),
|
|
366
372
|
},
|
|
367
373
|
],
|
|
368
374
|
[models_1.BlockType.FormBlock]: [
|
|
@@ -373,8 +379,9 @@ exports.config = {
|
|
|
373
379
|
},
|
|
374
380
|
{
|
|
375
381
|
fields: ['textContent'],
|
|
376
|
-
transformer: common_1.
|
|
382
|
+
transformer: common_1.yfmTransformer,
|
|
377
383
|
parser: parseContentLayoutTitle,
|
|
384
|
+
renderInline: true,
|
|
378
385
|
},
|
|
379
386
|
],
|
|
380
387
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useContext } from 'react';
|
|
2
2
|
import { Button, Icon } from '@gravity-ui/uikit';
|
|
3
|
+
import { YFMWrapper } from '../../components';
|
|
3
4
|
import { LocationContext } from '../../context/locationContext';
|
|
4
5
|
import { useAnalytics } from '../../hooks';
|
|
5
6
|
import { Facebook } from '../../icons/Facebook';
|
|
@@ -24,7 +25,10 @@ const Share = ({ items, title }) => {
|
|
|
24
25
|
const handleAnalytics = useAnalytics(DefaultEventNames.ShareButton);
|
|
25
26
|
const handleButtonClick = useCallback(() => handleAnalytics(), [handleAnalytics]);
|
|
26
27
|
return (React.createElement("div", { className: b() },
|
|
27
|
-
React.createElement("h5", { className: b('title') }, title
|
|
28
|
+
React.createElement("h5", { className: b('title') }, title ? (React.createElement(YFMWrapper, { content: title, modifiers: {
|
|
29
|
+
constructor: true,
|
|
30
|
+
// constructorTheme: textTheme,
|
|
31
|
+
} })) : (i18n('constructor-share'))),
|
|
28
32
|
React.createElement("div", { className: b('items') }, items.map((type) => {
|
|
29
33
|
const url = getAbsolutePath(hostname, pathname);
|
|
30
34
|
const socialUrl = getShareLink(url, type);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.pc-table-block__title {
|
|
1
|
+
.pc-table-block__title.pc-table-block__title {
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
/* use this for style redefinitions to awoid problems with
|
|
6
6
|
unpredictable css rules order in build */
|
|
7
|
-
.pc-table-block__title {
|
|
7
|
+
.pc-table-block__title.pc-table-block__title {
|
|
8
8
|
font-size: var(--g-text-display-2-font-size);
|
|
9
9
|
line-height: var(--g-text-display-2-line-height);
|
|
10
10
|
color: var(--pc-text-header-color);
|
|
@@ -14,11 +14,12 @@ unpredictable css rules order in build */
|
|
|
14
14
|
margin-right: 32px;
|
|
15
15
|
}
|
|
16
16
|
@media (max-width: 576px) {
|
|
17
|
-
.pc-table-block__title {
|
|
17
|
+
.pc-table-block__title.pc-table-block__title {
|
|
18
18
|
font-size: var(--g-text-display-1-font-size);
|
|
19
19
|
line-height: var(--g-text-display-1-line-height);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
|
|
22
23
|
.pc-table-block__table {
|
|
23
24
|
margin-top: 0;
|
|
24
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Table } from '../../components';
|
|
2
|
+
import { Table, YFMWrapper } from '../../components';
|
|
3
3
|
import { Col, Grid, GridColumnSize, Row } from '../../grid';
|
|
4
4
|
import { block } from '../../utils';
|
|
5
5
|
import './Table.css';
|
|
@@ -10,7 +10,9 @@ export const TableBlock = (props) => {
|
|
|
10
10
|
React.createElement(Grid, { className: b('content') },
|
|
11
11
|
React.createElement(Row, { className: b('row') },
|
|
12
12
|
React.createElement(Col, { sizes: { [GridColumnSize.Md]: 4, [GridColumnSize.All]: 12 } },
|
|
13
|
-
React.createElement("h2",
|
|
13
|
+
React.createElement(YFMWrapper, { tagName: "h2", contentClassName: b('title'), content: title, modifiers: {
|
|
14
|
+
constructor: true,
|
|
15
|
+
} })),
|
|
14
16
|
React.createElement(Col, { sizes: { [GridColumnSize.Md]: 8, [GridColumnSize.All]: 12 } },
|
|
15
17
|
React.createElement(Table, Object.assign({ className: b('table') }, table)))))));
|
|
16
18
|
};
|
|
@@ -16,6 +16,9 @@ unpredictable css rules order in build */
|
|
|
16
16
|
color: var(--g-color-text-light-primary);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.pc-banner-card__text {
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
}
|
|
19
22
|
.pc-banner-card__title.pc-banner-card__title {
|
|
20
23
|
font-size: var(--g-text-display-2-font-size);
|
|
21
24
|
line-height: var(--g-text-display-2-line-height);
|
|
@@ -57,6 +60,7 @@ unpredictable css rules order in build */
|
|
|
57
60
|
justify-content: space-between;
|
|
58
61
|
flex-direction: column;
|
|
59
62
|
align-items: baseline;
|
|
63
|
+
max-width: 100%;
|
|
60
64
|
}
|
|
61
65
|
.pc-banner-card__subtitle.pc-banner-card__subtitle {
|
|
62
66
|
display: inline-block;
|
|
@@ -81,73 +81,75 @@ unpredictable css rules order in build */
|
|
|
81
81
|
.pc-content_size_l .pc-content__buttons {
|
|
82
82
|
margin-top: 24px;
|
|
83
83
|
}
|
|
84
|
-
.pc-content_theme_dark {
|
|
84
|
+
.pc-content_theme_dark.pc-content_theme_dark {
|
|
85
85
|
--g-color-line-focus: var(--pc-color-line-focus-dark);
|
|
86
86
|
}
|
|
87
|
-
.pc-content_theme_dark .pc-content__title *,
|
|
88
|
-
.pc-content_theme_dark .pc-content__text .yfm,
|
|
89
|
-
.pc-content_theme_dark .pc-content__text .yfm *,
|
|
90
|
-
.pc-content_theme_dark .pc-content__links a {
|
|
87
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title *,
|
|
88
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm,
|
|
89
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm *,
|
|
90
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__links a {
|
|
91
91
|
color: var(--g-color-text-light-primary);
|
|
92
92
|
}
|
|
93
|
-
.pc-content_theme_dark .pc-content__notice .yfm,
|
|
94
|
-
.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
93
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm,
|
|
94
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm * {
|
|
95
95
|
color: var(--g-color-text-light-secondary);
|
|
96
96
|
}
|
|
97
|
-
.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
97
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a {
|
|
98
98
|
color: var(--g-color-text-light-secondary);
|
|
99
99
|
text-decoration: underline;
|
|
100
100
|
}
|
|
101
|
-
.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
101
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__notice .yfm a:hover {
|
|
102
102
|
color: var(--g-color-text-light-primary);
|
|
103
103
|
}
|
|
104
|
-
.pc-content_theme_dark .pc-content__text .yfm a {
|
|
104
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a {
|
|
105
105
|
color: var(--g-color-text-light-primary);
|
|
106
106
|
text-decoration: underline;
|
|
107
107
|
}
|
|
108
|
-
.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
108
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__text .yfm a:hover {
|
|
109
109
|
color: var(--g-color-text-light-secondary);
|
|
110
110
|
}
|
|
111
|
-
.pc-content_theme_dark .pc-content__title a {
|
|
111
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a {
|
|
112
112
|
color: var(--g-color-text-light-primary);
|
|
113
113
|
text-decoration: underline;
|
|
114
114
|
text-decoration: none;
|
|
115
115
|
}
|
|
116
|
-
.pc-content_theme_dark .pc-content__title a:hover {
|
|
116
|
+
.pc-content_theme_dark.pc-content_theme_dark .pc-content__title a:hover {
|
|
117
117
|
color: var(--g-color-text-light-secondary);
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
.pc-content_theme_light .pc-
|
|
121
|
-
.pc-content_theme_light .pc-content__text .yfm
|
|
122
|
-
.pc-content_theme_light .pc-
|
|
119
|
+
|
|
120
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title *,
|
|
121
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm,
|
|
122
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm *,
|
|
123
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__links a {
|
|
123
124
|
color: var(--g-color-text-dark-primary);
|
|
124
125
|
}
|
|
125
|
-
.pc-content_theme_light .pc-content__notice .yfm,
|
|
126
|
-
.pc-content_theme_light .pc-content__notice .yfm * {
|
|
126
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm,
|
|
127
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm * {
|
|
127
128
|
color: var(--g-color-text-dark-secondary);
|
|
128
129
|
}
|
|
129
|
-
.pc-content_theme_light .pc-content__notice .yfm a {
|
|
130
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a {
|
|
130
131
|
color: var(--g-color-text-dark-secondary);
|
|
131
132
|
text-decoration: underline;
|
|
132
133
|
}
|
|
133
|
-
.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
134
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__notice .yfm a:hover {
|
|
134
135
|
color: var(--g-color-text-dark-primary);
|
|
135
136
|
}
|
|
136
|
-
.pc-content_theme_light .pc-content__text .yfm a {
|
|
137
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a {
|
|
137
138
|
color: var(--g-color-text-dark-primary);
|
|
138
139
|
text-decoration: underline;
|
|
139
140
|
}
|
|
140
|
-
.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
141
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__text .yfm a:hover {
|
|
141
142
|
color: var(--g-color-text-dark-secondary);
|
|
142
143
|
}
|
|
143
|
-
.pc-content_theme_light .pc-content__title a {
|
|
144
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a {
|
|
144
145
|
color: var(--g-color-text-dark-primary);
|
|
145
146
|
text-decoration: underline;
|
|
146
147
|
text-decoration: none;
|
|
147
148
|
}
|
|
148
|
-
.pc-content_theme_light .pc-content__title a:hover {
|
|
149
|
+
.pc-content_theme_light.pc-content_theme_light .pc-content__title a:hover {
|
|
149
150
|
color: var(--g-color-text-dark-secondary);
|
|
150
151
|
}
|
|
152
|
+
|
|
151
153
|
.pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__buttons), .pc-content_control-position_bottom .pc-content__notice:has(+ .pc-content__links),
|
|
152
154
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__buttons),
|
|
153
155
|
.pc-content_control-position_bottom .pc-content__list:has(+ .pc-content__links),
|