@doyourjob/gravity-ui-page-constructor 5.31.285 → 5.31.286
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/Benchmark/Benchmark.css +3 -16
- package/build/cjs/blocks/Benchmark/Benchmark.js +5 -1
- package/build/cjs/blocks/Benchmark/schema.d.ts +154 -1
- package/build/cjs/blocks/Benchmark/schema.js +8 -1
- package/build/cjs/blocks/Benefits/Benefits.css +3 -16
- package/build/cjs/blocks/Benefits/Benefits.js +5 -1
- package/build/cjs/blocks/Benefits/schema.d.ts +154 -1
- package/build/cjs/blocks/Benefits/schema.js +8 -1
- package/build/cjs/blocks/LogoRotator/LogoRotator.css +4 -17
- package/build/cjs/blocks/LogoRotator/LogoRotator.js +5 -1
- package/build/cjs/blocks/LogoRotator/schema.d.ts +154 -1
- package/build/cjs/blocks/LogoRotator/schema.js +8 -1
- package/build/cjs/blocks/UnicornCards/UnicornCards.css +3 -16
- package/build/cjs/blocks/UnicornCards/UnicornCards.js +5 -1
- package/build/cjs/blocks/UnicornCards/schema.d.ts +154 -1
- package/build/cjs/blocks/UnicornCards/schema.js +10 -1
- package/build/cjs/blocks/WhatsNew/WhatsNew.css +0 -13
- package/build/cjs/blocks/WhatsNew/WhatsNew.js +5 -1
- package/build/cjs/blocks/WhatsNew/schema.d.ts +2 -5
- package/build/cjs/blocks/WhatsNew/schema.js +10 -1
- package/build/cjs/blocks/index.d.ts +0 -2
- package/build/cjs/blocks/index.js +2 -6
- package/build/cjs/blocks/validators.d.ts +0 -2
- package/build/cjs/blocks/validators.js +0 -2
- package/build/cjs/constructor-items.d.ts +0 -2
- package/build/cjs/constructor-items.js +0 -2
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -31
- package/build/cjs/models/constructor-items/blocks.js +0 -2
- package/build/cjs/schema/constants.d.ts +2 -2
- package/build/cjs/schema/constants.js +1 -3
- package/build/cjs/schema/validators/blocks.d.ts +0 -2
- package/build/cjs/schema/validators/blocks.js +0 -2
- package/build/cjs/text-transform/config.js +31 -8
- package/build/cjs/utils/blocks.js +2 -1
- package/build/esm/blocks/Benchmark/Benchmark.css +3 -16
- package/build/esm/blocks/Benchmark/Benchmark.js +5 -1
- package/build/esm/blocks/Benchmark/schema.d.ts +154 -1
- package/build/esm/blocks/Benchmark/schema.js +9 -2
- package/build/esm/blocks/Benefits/Benefits.css +3 -16
- package/build/esm/blocks/Benefits/Benefits.js +5 -1
- package/build/esm/blocks/Benefits/schema.d.ts +154 -1
- package/build/esm/blocks/Benefits/schema.js +9 -2
- package/build/esm/blocks/LogoRotator/LogoRotator.css +4 -17
- package/build/esm/blocks/LogoRotator/LogoRotator.js +5 -1
- package/build/esm/blocks/LogoRotator/schema.d.ts +154 -1
- package/build/esm/blocks/LogoRotator/schema.js +9 -2
- package/build/esm/blocks/UnicornCards/UnicornCards.css +3 -16
- package/build/esm/blocks/UnicornCards/UnicornCards.js +5 -1
- package/build/esm/blocks/UnicornCards/schema.d.ts +154 -1
- package/build/esm/blocks/UnicornCards/schema.js +11 -2
- package/build/esm/blocks/WhatsNew/WhatsNew.css +0 -13
- package/build/esm/blocks/WhatsNew/WhatsNew.js +5 -1
- package/build/esm/blocks/WhatsNew/schema.d.ts +2 -5
- package/build/esm/blocks/WhatsNew/schema.js +11 -2
- package/build/esm/blocks/index.d.ts +0 -2
- package/build/esm/blocks/index.js +0 -2
- package/build/esm/blocks/validators.d.ts +0 -2
- package/build/esm/blocks/validators.js +0 -2
- package/build/esm/constructor-items.d.ts +0 -2
- package/build/esm/constructor-items.js +1 -3
- package/build/esm/models/constructor-items/blocks.d.ts +1 -31
- package/build/esm/models/constructor-items/blocks.js +0 -2
- package/build/esm/schema/constants.d.ts +2 -2
- package/build/esm/schema/constants.js +2 -4
- package/build/esm/schema/validators/blocks.d.ts +0 -2
- package/build/esm/schema/validators/blocks.js +0 -2
- package/build/esm/text-transform/config.js +31 -8
- package/build/esm/utils/blocks.js +2 -1
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +1 -31
- package/server/models/constructor-items/blocks.js +0 -2
- package/server/text-transform/config.js +31 -8
- package/server/utils/blocks.js +2 -1
- package/widget/index.js +1 -1
- package/build/cjs/blocks/Advantages/Advantages.css +0 -132
- package/build/cjs/blocks/Advantages/Advantages.d.ts +0 -3
- package/build/cjs/blocks/Advantages/Advantages.js +0 -33
- package/build/cjs/blocks/Advantages/schema.d.ts +0 -53
- package/build/cjs/blocks/Advantages/schema.js +0 -36
- package/build/cjs/blocks/BannerMinify/BannerMinify.css +0 -45
- package/build/cjs/blocks/BannerMinify/BannerMinify.d.ts +0 -3
- package/build/cjs/blocks/BannerMinify/BannerMinify.js +0 -24
- package/build/cjs/blocks/BannerMinify/Button/Button.css +0 -28
- package/build/cjs/blocks/BannerMinify/Button/Button.d.ts +0 -3
- package/build/cjs/blocks/BannerMinify/Button/Button.js +0 -15
- package/build/cjs/blocks/BannerMinify/schema.d.ts +0 -182
- package/build/cjs/blocks/BannerMinify/schema.js +0 -36
- package/build/cjs/components/TextNode/TextNode.css +0 -2
- package/build/cjs/components/TextNode/TextNode.d.ts +0 -12
- package/build/cjs/components/TextNode/TextNode.js +0 -16
- package/build/esm/blocks/Advantages/Advantages.css +0 -132
- package/build/esm/blocks/Advantages/Advantages.d.ts +0 -4
- package/build/esm/blocks/Advantages/Advantages.js +0 -29
- package/build/esm/blocks/Advantages/schema.d.ts +0 -53
- package/build/esm/blocks/Advantages/schema.js +0 -33
- package/build/esm/blocks/BannerMinify/BannerMinify.css +0 -45
- package/build/esm/blocks/BannerMinify/BannerMinify.d.ts +0 -4
- package/build/esm/blocks/BannerMinify/BannerMinify.js +0 -20
- package/build/esm/blocks/BannerMinify/Button/Button.css +0 -28
- package/build/esm/blocks/BannerMinify/Button/Button.d.ts +0 -4
- package/build/esm/blocks/BannerMinify/Button/Button.js +0 -11
- package/build/esm/blocks/BannerMinify/schema.d.ts +0 -182
- package/build/esm/blocks/BannerMinify/schema.js +0 -33
- package/build/esm/components/TextNode/TextNode.css +0 -2
- package/build/esm/components/TextNode/TextNode.d.ts +0 -13
- package/build/esm/components/TextNode/TextNode.js +0 -14
|
@@ -31,25 +31,12 @@ unpredictable css rules order in build */
|
|
|
31
31
|
text-align: initial;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
.pc-benchmark-block__title {
|
|
35
|
-
font-size: var(--g-text-display-4-font-size, var(--pc-text-display-4-font-size));
|
|
36
|
-
line-height: var(--g-text-display-4-line-height, var(--pc-text-display-4-line-height));
|
|
37
|
-
margin: 0;
|
|
38
|
-
font-weight: var(--g-text-accent-font-weight);
|
|
39
|
-
color: var(--g-color-text-primary);
|
|
40
|
-
}
|
|
41
|
-
@media (max-width: 769px) {
|
|
42
|
-
.pc-benchmark-block__title {
|
|
43
|
-
font-size: var(--g-text-display-1-font-size, var(--pc-text-display-1-font-size));
|
|
44
|
-
line-height: var(--g-text-display-1-line-height, var(--pc-text-display-1-line-height));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
34
|
.pc-benchmark-block__text {
|
|
48
|
-
font-size:
|
|
49
|
-
line-height:
|
|
35
|
+
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
36
|
+
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
50
37
|
opacity: 0.6;
|
|
51
38
|
}
|
|
52
|
-
@media (max-width:
|
|
39
|
+
@media (max-width: 577px) {
|
|
53
40
|
.pc-benchmark-block__text {
|
|
54
41
|
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
55
42
|
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
@@ -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 components_1 = require("../../components");
|
|
6
|
+
const TitleItem_1 = tslib_1.__importDefault(require("../../components/Title/TitleItem"));
|
|
6
7
|
const utils_1 = require("../../utils");
|
|
7
8
|
const b = (0, utils_1.block)('benchmark-block');
|
|
8
9
|
const Benchmark = ({ title, text, items, metricsColor, duration, animated, }) => {
|
|
@@ -13,10 +14,13 @@ const Benchmark = ({ title, text, items, metricsColor, duration, animated, }) =>
|
|
|
13
14
|
['--local-items-bg']: metricsColor,
|
|
14
15
|
}
|
|
15
16
|
: {}, [metricsColor]);
|
|
17
|
+
const titleProps = !title || typeof title === 'string'
|
|
18
|
+
? { text: title, textSize: 'l' }
|
|
19
|
+
: title;
|
|
16
20
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated, onAnimateStart: handleOnAnimateStart },
|
|
17
21
|
react_1.default.createElement("div", { className: b('root'), style: styles },
|
|
18
22
|
title || text ? (react_1.default.createElement("div", { className: b('head') },
|
|
19
|
-
|
|
23
|
+
react_1.default.createElement(TitleItem_1.default, Object.assign({}, titleProps)),
|
|
20
24
|
text && react_1.default.createElement("div", { className: b('text') }, text))) : null,
|
|
21
25
|
react_1.default.createElement("div", { className: b('items') }, items === null || items === void 0 ? void 0 : items.map((item, index) => (react_1.default.createElement("div", { key: index, className: b('item') },
|
|
22
26
|
react_1.default.createElement("div", { className: b('item-value') },
|
|
@@ -4,7 +4,160 @@ export declare const BenchmarkBlock: {
|
|
|
4
4
|
required: string[];
|
|
5
5
|
properties: {
|
|
6
6
|
title: {
|
|
7
|
-
|
|
7
|
+
oneOf: ({
|
|
8
|
+
type: string;
|
|
9
|
+
contentType: string;
|
|
10
|
+
optionName: string;
|
|
11
|
+
} | {
|
|
12
|
+
optionName: string;
|
|
13
|
+
type: string;
|
|
14
|
+
additionalProperties: boolean;
|
|
15
|
+
required: string[];
|
|
16
|
+
properties: {
|
|
17
|
+
text: {
|
|
18
|
+
type: string;
|
|
19
|
+
contentType: string;
|
|
20
|
+
};
|
|
21
|
+
link: {
|
|
22
|
+
type: string;
|
|
23
|
+
additionalProperties: boolean;
|
|
24
|
+
required: string[];
|
|
25
|
+
properties: {
|
|
26
|
+
text: {
|
|
27
|
+
type: string;
|
|
28
|
+
contentType: string;
|
|
29
|
+
};
|
|
30
|
+
url: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
urlTitle: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
arrow: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
theme: {
|
|
40
|
+
type: string;
|
|
41
|
+
enum: string[];
|
|
42
|
+
};
|
|
43
|
+
textSize: {
|
|
44
|
+
type: string;
|
|
45
|
+
enum: string[];
|
|
46
|
+
};
|
|
47
|
+
target: {
|
|
48
|
+
type: string;
|
|
49
|
+
enum: string[];
|
|
50
|
+
};
|
|
51
|
+
analyticsEvents: {
|
|
52
|
+
oneOf: ({
|
|
53
|
+
optionName: string;
|
|
54
|
+
type: string;
|
|
55
|
+
additionalProperties: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
required: string[];
|
|
59
|
+
properties: {
|
|
60
|
+
name: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
type: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
counters: {
|
|
67
|
+
type: string;
|
|
68
|
+
additionalProperties: boolean;
|
|
69
|
+
required: never[];
|
|
70
|
+
properties: {
|
|
71
|
+
include: {
|
|
72
|
+
type: string;
|
|
73
|
+
items: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
exclude: {
|
|
78
|
+
type: string;
|
|
79
|
+
items: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
context: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
items?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
type: string;
|
|
92
|
+
items: {
|
|
93
|
+
type: string;
|
|
94
|
+
additionalProperties: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
required: string[];
|
|
98
|
+
properties: {
|
|
99
|
+
name: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
type: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
counters: {
|
|
106
|
+
type: string;
|
|
107
|
+
additionalProperties: boolean;
|
|
108
|
+
required: never[];
|
|
109
|
+
properties: {
|
|
110
|
+
include: {
|
|
111
|
+
type: string;
|
|
112
|
+
items: {
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
exclude: {
|
|
117
|
+
type: string;
|
|
118
|
+
items: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
context: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
optionName: string;
|
|
130
|
+
})[];
|
|
131
|
+
};
|
|
132
|
+
type: {};
|
|
133
|
+
when: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
textSize: {
|
|
139
|
+
type: string;
|
|
140
|
+
enum: string[];
|
|
141
|
+
};
|
|
142
|
+
bottomSpace: {
|
|
143
|
+
type: string;
|
|
144
|
+
enum: string[];
|
|
145
|
+
};
|
|
146
|
+
centered: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
url: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
urlTitle: {
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
resetMargin: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
contentType?: undefined;
|
|
160
|
+
})[];
|
|
8
161
|
};
|
|
9
162
|
text: {
|
|
10
163
|
type: string;
|
|
@@ -7,7 +7,14 @@ exports.BenchmarkBlock = {
|
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: ['data'],
|
|
9
9
|
properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.AnimatableProps), { title: {
|
|
10
|
-
|
|
10
|
+
oneOf: [
|
|
11
|
+
{
|
|
12
|
+
type: 'string',
|
|
13
|
+
contentType: 'text',
|
|
14
|
+
optionName: 'text',
|
|
15
|
+
},
|
|
16
|
+
Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
|
|
17
|
+
],
|
|
11
18
|
}, text: {
|
|
12
19
|
type: 'string',
|
|
13
20
|
}, duration: {
|
|
@@ -375,26 +375,13 @@ unpredictable css rules order in build */
|
|
|
375
375
|
text-align: initial;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
.pc-benefits-block__title {
|
|
379
|
-
font-size: var(--g-text-display-4-font-size, var(--pc-text-display-4-font-size));
|
|
380
|
-
line-height: var(--g-text-display-4-line-height, var(--pc-text-display-4-line-height));
|
|
381
|
-
margin: 0;
|
|
382
|
-
font-weight: var(--g-text-accent-font-weight);
|
|
383
|
-
color: var(--g-color-text-primary);
|
|
384
|
-
}
|
|
385
|
-
@media (max-width: 769px) {
|
|
386
|
-
.pc-benefits-block__title {
|
|
387
|
-
font-size: var(--g-text-display-1-font-size, var(--pc-text-display-1-font-size));
|
|
388
|
-
line-height: var(--g-text-display-1-line-height, var(--pc-text-display-1-line-height));
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
378
|
.pc-benefits-block__text {
|
|
392
|
-
font-size:
|
|
393
|
-
line-height:
|
|
379
|
+
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
380
|
+
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
394
381
|
opacity: 0.6;
|
|
395
382
|
max-width: 600px;
|
|
396
383
|
}
|
|
397
|
-
@media (max-width:
|
|
384
|
+
@media (max-width: 577px) {
|
|
398
385
|
.pc-benefits-block__text {
|
|
399
386
|
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
400
387
|
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const utils_1 = require("../../components/Media/Video/utils");
|
|
8
|
+
const TitleItem_1 = tslib_1.__importDefault(require("../../components/Title/TitleItem"));
|
|
8
9
|
const grid_1 = require("../../grid");
|
|
9
10
|
const utils_2 = require("../../utils");
|
|
10
11
|
const b = (0, utils_2.block)('benefits-block');
|
|
@@ -17,10 +18,13 @@ const BenefitsBlock = (props) => {
|
|
|
17
18
|
['--local-item-bg']: itemBackground,
|
|
18
19
|
}
|
|
19
20
|
: {}, [itemBackground]);
|
|
21
|
+
const titleProps = !title || typeof title === 'string'
|
|
22
|
+
? { text: title, textSize: 'l' }
|
|
23
|
+
: title;
|
|
20
24
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b({ theme }), animate: animated },
|
|
21
25
|
react_1.default.createElement("div", { className: b('root'), style: styles },
|
|
22
26
|
title || text ? (react_1.default.createElement("div", { className: b('head') },
|
|
23
|
-
|
|
27
|
+
react_1.default.createElement(TitleItem_1.default, Object.assign({}, titleProps)),
|
|
24
28
|
text && react_1.default.createElement("div", { className: b('text') }, text))) : null,
|
|
25
29
|
react_1.default.createElement(grid_1.Row, null,
|
|
26
30
|
react_1.default.createElement(grid_1.Col, { sizes: colSizesLeft }, video && (react_1.default.createElement("video", { disablePictureInPicture: true, playsInline: true,
|
|
@@ -8,7 +8,160 @@ export declare const BenefitsBlock: {
|
|
|
8
8
|
enum: string[];
|
|
9
9
|
};
|
|
10
10
|
title: {
|
|
11
|
-
|
|
11
|
+
oneOf: ({
|
|
12
|
+
type: string;
|
|
13
|
+
contentType: string;
|
|
14
|
+
optionName: string;
|
|
15
|
+
} | {
|
|
16
|
+
optionName: string;
|
|
17
|
+
type: string;
|
|
18
|
+
additionalProperties: boolean;
|
|
19
|
+
required: string[];
|
|
20
|
+
properties: {
|
|
21
|
+
text: {
|
|
22
|
+
type: string;
|
|
23
|
+
contentType: string;
|
|
24
|
+
};
|
|
25
|
+
link: {
|
|
26
|
+
type: string;
|
|
27
|
+
additionalProperties: boolean;
|
|
28
|
+
required: string[];
|
|
29
|
+
properties: {
|
|
30
|
+
text: {
|
|
31
|
+
type: string;
|
|
32
|
+
contentType: string;
|
|
33
|
+
};
|
|
34
|
+
url: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
urlTitle: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
arrow: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
theme: {
|
|
44
|
+
type: string;
|
|
45
|
+
enum: string[];
|
|
46
|
+
};
|
|
47
|
+
textSize: {
|
|
48
|
+
type: string;
|
|
49
|
+
enum: string[];
|
|
50
|
+
};
|
|
51
|
+
target: {
|
|
52
|
+
type: string;
|
|
53
|
+
enum: string[];
|
|
54
|
+
};
|
|
55
|
+
analyticsEvents: {
|
|
56
|
+
oneOf: ({
|
|
57
|
+
optionName: string;
|
|
58
|
+
type: string;
|
|
59
|
+
additionalProperties: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
required: string[];
|
|
63
|
+
properties: {
|
|
64
|
+
name: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
type: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
counters: {
|
|
71
|
+
type: string;
|
|
72
|
+
additionalProperties: boolean;
|
|
73
|
+
required: never[];
|
|
74
|
+
properties: {
|
|
75
|
+
include: {
|
|
76
|
+
type: string;
|
|
77
|
+
items: {
|
|
78
|
+
type: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
exclude: {
|
|
82
|
+
type: string;
|
|
83
|
+
items: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
context: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
items?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
type: string;
|
|
96
|
+
items: {
|
|
97
|
+
type: string;
|
|
98
|
+
additionalProperties: {
|
|
99
|
+
type: string;
|
|
100
|
+
};
|
|
101
|
+
required: string[];
|
|
102
|
+
properties: {
|
|
103
|
+
name: {
|
|
104
|
+
type: string;
|
|
105
|
+
};
|
|
106
|
+
type: {
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
counters: {
|
|
110
|
+
type: string;
|
|
111
|
+
additionalProperties: boolean;
|
|
112
|
+
required: never[];
|
|
113
|
+
properties: {
|
|
114
|
+
include: {
|
|
115
|
+
type: string;
|
|
116
|
+
items: {
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
exclude: {
|
|
121
|
+
type: string;
|
|
122
|
+
items: {
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
context: {
|
|
129
|
+
type: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
optionName: string;
|
|
134
|
+
})[];
|
|
135
|
+
};
|
|
136
|
+
type: {};
|
|
137
|
+
when: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
textSize: {
|
|
143
|
+
type: string;
|
|
144
|
+
enum: string[];
|
|
145
|
+
};
|
|
146
|
+
bottomSpace: {
|
|
147
|
+
type: string;
|
|
148
|
+
enum: string[];
|
|
149
|
+
};
|
|
150
|
+
centered: {
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
url: {
|
|
154
|
+
type: string;
|
|
155
|
+
};
|
|
156
|
+
urlTitle: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
resetMargin: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
contentType?: undefined;
|
|
164
|
+
})[];
|
|
12
165
|
};
|
|
13
166
|
text: {
|
|
14
167
|
type: string;
|
|
@@ -7,7 +7,14 @@ exports.BenefitsBlock = {
|
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: false,
|
|
9
9
|
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { theme: common_1.ThemeProps, title: {
|
|
10
|
-
|
|
10
|
+
oneOf: [
|
|
11
|
+
{
|
|
12
|
+
type: 'string',
|
|
13
|
+
contentType: 'text',
|
|
14
|
+
optionName: 'text',
|
|
15
|
+
},
|
|
16
|
+
Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
|
|
17
|
+
],
|
|
11
18
|
}, text: {
|
|
12
19
|
type: 'string',
|
|
13
20
|
}, video: {
|
|
@@ -31,25 +31,12 @@ unpredictable css rules order in build */
|
|
|
31
31
|
text-align: initial;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
.pc-logo-rotator-block__title {
|
|
35
|
-
font-size: var(--g-text-display-4-font-size, var(--pc-text-display-4-font-size));
|
|
36
|
-
line-height: var(--g-text-display-4-line-height, var(--pc-text-display-4-line-height));
|
|
37
|
-
margin: 0;
|
|
38
|
-
font-weight: var(--g-text-accent-font-weight);
|
|
39
|
-
color: var(--g-color-text-primary);
|
|
40
|
-
}
|
|
41
|
-
@media (max-width: 769px) {
|
|
42
|
-
.pc-logo-rotator-block__title {
|
|
43
|
-
font-size: var(--g-text-display-1-font-size, var(--pc-text-display-1-font-size));
|
|
44
|
-
line-height: var(--g-text-display-1-line-height, var(--pc-text-display-1-line-height));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
34
|
.pc-logo-rotator-block__text {
|
|
48
|
-
font-size:
|
|
49
|
-
line-height:
|
|
35
|
+
font-size: var(--g-text-header-2-font-size, var(--pc-text-header-2-font-size));
|
|
36
|
+
line-height: var(--g-text-header-2-line-height, var(--pc-text-header-2-line-height));
|
|
50
37
|
opacity: 0.6;
|
|
51
38
|
}
|
|
52
|
-
@media (max-width:
|
|
39
|
+
@media (max-width: 577px) {
|
|
53
40
|
.pc-logo-rotator-block__text {
|
|
54
41
|
font-size: var(--g-text-body-3-font-size, var(--pc-text-body-3-font-size));
|
|
55
42
|
line-height: var(--g-text-body-3-line-height, var(--pc-text-body-3-line-height));
|
|
@@ -63,7 +50,7 @@ unpredictable css rules order in build */
|
|
|
63
50
|
max-width: 50%;
|
|
64
51
|
}
|
|
65
52
|
}
|
|
66
|
-
.pc-logo-rotator-block_theme_dark .pc-logo-rotator-
|
|
53
|
+
.pc-logo-rotator-block_theme_dark .pc-logo-rotator-block__head > * {
|
|
67
54
|
color: #ffffff;
|
|
68
55
|
}
|
|
69
56
|
.pc-logo-rotator-block__items {
|
|
@@ -6,6 +6,7 @@ const react_1 = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
7
|
const components_1 = require("../../components");
|
|
8
8
|
const AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
|
|
9
|
+
const TitleItem_1 = tslib_1.__importDefault(require("../../components/Title/TitleItem"));
|
|
9
10
|
const constants_1 = require("../../constants");
|
|
10
11
|
const grid_1 = require("../../grid");
|
|
11
12
|
const useWindowBreakpoint_1 = tslib_1.__importDefault(require("../../hooks/useWindowBreakpoint"));
|
|
@@ -198,10 +199,13 @@ const LogoRotatorBlock = (props) => {
|
|
|
198
199
|
swapAnimation,
|
|
199
200
|
transitions,
|
|
200
201
|
]);
|
|
202
|
+
const titleProps = !title || typeof title === 'string'
|
|
203
|
+
? { text: title, textSize: 'l' }
|
|
204
|
+
: title;
|
|
201
205
|
return (react_1.default.createElement(AnimateBlock_1.default, { className: b({ theme }), animate: animated },
|
|
202
206
|
react_1.default.createElement("div", { className: b('root') },
|
|
203
207
|
title || text ? (react_1.default.createElement("div", { className: b('head') },
|
|
204
|
-
|
|
208
|
+
react_1.default.createElement(TitleItem_1.default, Object.assign({}, titleProps)),
|
|
205
209
|
text && react_1.default.createElement("div", { className: b('text') }, text))) : null,
|
|
206
210
|
rowMode ? (react_1.default.createElement("div", { className: b('row-items'), ref: rowItemsRef }, slots.map((slot, index) => {
|
|
207
211
|
var _a;
|