@doyourjob/gravity-ui-page-constructor 5.31.285 → 5.31.287

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.
Files changed (134) hide show
  1. package/build/cjs/blocks/Benchmark/Benchmark.css +3 -16
  2. package/build/cjs/blocks/Benchmark/Benchmark.js +5 -1
  3. package/build/cjs/blocks/Benchmark/schema.d.ts +154 -1
  4. package/build/cjs/blocks/Benchmark/schema.js +8 -1
  5. package/build/cjs/blocks/Benefits/Benefits.css +3 -16
  6. package/build/cjs/blocks/Benefits/Benefits.js +5 -1
  7. package/build/cjs/blocks/Benefits/schema.d.ts +154 -1
  8. package/build/cjs/blocks/Benefits/schema.js +8 -1
  9. package/build/cjs/blocks/Header/schema.d.ts +81 -3
  10. package/build/cjs/blocks/HeaderSlider/schema.d.ts +27 -1
  11. package/build/cjs/blocks/LogoRotator/LogoRotator.css +4 -17
  12. package/build/cjs/blocks/LogoRotator/LogoRotator.js +5 -1
  13. package/build/cjs/blocks/LogoRotator/schema.d.ts +154 -1
  14. package/build/cjs/blocks/LogoRotator/schema.js +8 -1
  15. package/build/cjs/blocks/Media/schema.d.ts +54 -2
  16. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +27 -1
  17. package/build/cjs/blocks/Tabs/schema.d.ts +27 -1
  18. package/build/cjs/blocks/UnicornCards/UnicornCards.css +3 -16
  19. package/build/cjs/blocks/UnicornCards/UnicornCards.js +5 -1
  20. package/build/cjs/blocks/UnicornCards/schema.d.ts +154 -1
  21. package/build/cjs/blocks/UnicornCards/schema.js +10 -1
  22. package/build/cjs/blocks/WhatsNew/WhatsNew.css +0 -13
  23. package/build/cjs/blocks/WhatsNew/WhatsNew.js +5 -1
  24. package/build/cjs/blocks/WhatsNew/schema.d.ts +2 -5
  25. package/build/cjs/blocks/WhatsNew/schema.js +10 -1
  26. package/build/cjs/blocks/index.d.ts +0 -2
  27. package/build/cjs/blocks/index.js +2 -6
  28. package/build/cjs/blocks/validators.d.ts +0 -2
  29. package/build/cjs/blocks/validators.js +0 -2
  30. package/build/cjs/components/Media/Iframe/Iframe.js +18 -4
  31. package/build/cjs/components/Media/Iframe/utils.d.ts +2 -0
  32. package/build/cjs/components/Media/Iframe/utils.js +29 -0
  33. package/build/cjs/constructor-items.d.ts +0 -2
  34. package/build/cjs/constructor-items.js +0 -2
  35. package/build/cjs/models/constructor-items/blocks.d.ts +1 -31
  36. package/build/cjs/models/constructor-items/blocks.js +0 -2
  37. package/build/cjs/models/constructor-items/common.d.ts +2 -1
  38. package/build/cjs/schema/constants.d.ts +29 -3
  39. package/build/cjs/schema/constants.js +1 -3
  40. package/build/cjs/schema/validators/blocks.d.ts +0 -2
  41. package/build/cjs/schema/validators/blocks.js +0 -2
  42. package/build/cjs/schema/validators/common.d.ts +27 -1
  43. package/build/cjs/schema/validators/common.js +28 -1
  44. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +27 -1
  45. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +27 -1
  46. package/build/cjs/text-transform/config.js +31 -8
  47. package/build/cjs/utils/blocks.js +2 -1
  48. package/build/esm/blocks/Benchmark/Benchmark.css +3 -16
  49. package/build/esm/blocks/Benchmark/Benchmark.js +5 -1
  50. package/build/esm/blocks/Benchmark/schema.d.ts +154 -1
  51. package/build/esm/blocks/Benchmark/schema.js +9 -2
  52. package/build/esm/blocks/Benefits/Benefits.css +3 -16
  53. package/build/esm/blocks/Benefits/Benefits.js +5 -1
  54. package/build/esm/blocks/Benefits/schema.d.ts +154 -1
  55. package/build/esm/blocks/Benefits/schema.js +9 -2
  56. package/build/esm/blocks/Header/schema.d.ts +81 -3
  57. package/build/esm/blocks/HeaderSlider/schema.d.ts +27 -1
  58. package/build/esm/blocks/LogoRotator/LogoRotator.css +4 -17
  59. package/build/esm/blocks/LogoRotator/LogoRotator.js +5 -1
  60. package/build/esm/blocks/LogoRotator/schema.d.ts +154 -1
  61. package/build/esm/blocks/LogoRotator/schema.js +9 -2
  62. package/build/esm/blocks/Media/schema.d.ts +54 -2
  63. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +27 -1
  64. package/build/esm/blocks/Tabs/schema.d.ts +27 -1
  65. package/build/esm/blocks/UnicornCards/UnicornCards.css +3 -16
  66. package/build/esm/blocks/UnicornCards/UnicornCards.js +5 -1
  67. package/build/esm/blocks/UnicornCards/schema.d.ts +154 -1
  68. package/build/esm/blocks/UnicornCards/schema.js +11 -2
  69. package/build/esm/blocks/WhatsNew/WhatsNew.css +0 -13
  70. package/build/esm/blocks/WhatsNew/WhatsNew.js +5 -1
  71. package/build/esm/blocks/WhatsNew/schema.d.ts +2 -5
  72. package/build/esm/blocks/WhatsNew/schema.js +11 -2
  73. package/build/esm/blocks/index.d.ts +0 -2
  74. package/build/esm/blocks/index.js +0 -2
  75. package/build/esm/blocks/validators.d.ts +0 -2
  76. package/build/esm/blocks/validators.js +0 -2
  77. package/build/esm/components/Media/Iframe/Iframe.js +18 -4
  78. package/build/esm/components/Media/Iframe/utils.d.ts +2 -0
  79. package/build/esm/components/Media/Iframe/utils.js +25 -0
  80. package/build/esm/constructor-items.d.ts +0 -2
  81. package/build/esm/constructor-items.js +1 -3
  82. package/build/esm/models/constructor-items/blocks.d.ts +1 -31
  83. package/build/esm/models/constructor-items/blocks.js +0 -2
  84. package/build/esm/models/constructor-items/common.d.ts +2 -1
  85. package/build/esm/schema/constants.d.ts +29 -3
  86. package/build/esm/schema/constants.js +2 -4
  87. package/build/esm/schema/validators/blocks.d.ts +0 -2
  88. package/build/esm/schema/validators/blocks.js +0 -2
  89. package/build/esm/schema/validators/common.d.ts +27 -1
  90. package/build/esm/schema/validators/common.js +28 -1
  91. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +27 -1
  92. package/build/esm/sub-blocks/MediaCard/schema.d.ts +27 -1
  93. package/build/esm/text-transform/config.js +31 -8
  94. package/build/esm/utils/blocks.js +2 -1
  95. package/package.json +1 -1
  96. package/schema/index.js +1 -1
  97. package/server/models/constructor-items/blocks.d.ts +1 -31
  98. package/server/models/constructor-items/blocks.js +0 -2
  99. package/server/models/constructor-items/common.d.ts +2 -1
  100. package/server/text-transform/config.js +31 -8
  101. package/server/utils/blocks.js +2 -1
  102. package/widget/index.js +1 -1
  103. package/build/cjs/blocks/Advantages/Advantages.css +0 -132
  104. package/build/cjs/blocks/Advantages/Advantages.d.ts +0 -3
  105. package/build/cjs/blocks/Advantages/Advantages.js +0 -33
  106. package/build/cjs/blocks/Advantages/schema.d.ts +0 -53
  107. package/build/cjs/blocks/Advantages/schema.js +0 -36
  108. package/build/cjs/blocks/BannerMinify/BannerMinify.css +0 -45
  109. package/build/cjs/blocks/BannerMinify/BannerMinify.d.ts +0 -3
  110. package/build/cjs/blocks/BannerMinify/BannerMinify.js +0 -24
  111. package/build/cjs/blocks/BannerMinify/Button/Button.css +0 -28
  112. package/build/cjs/blocks/BannerMinify/Button/Button.d.ts +0 -3
  113. package/build/cjs/blocks/BannerMinify/Button/Button.js +0 -15
  114. package/build/cjs/blocks/BannerMinify/schema.d.ts +0 -182
  115. package/build/cjs/blocks/BannerMinify/schema.js +0 -36
  116. package/build/cjs/components/TextNode/TextNode.css +0 -2
  117. package/build/cjs/components/TextNode/TextNode.d.ts +0 -12
  118. package/build/cjs/components/TextNode/TextNode.js +0 -16
  119. package/build/esm/blocks/Advantages/Advantages.css +0 -132
  120. package/build/esm/blocks/Advantages/Advantages.d.ts +0 -4
  121. package/build/esm/blocks/Advantages/Advantages.js +0 -29
  122. package/build/esm/blocks/Advantages/schema.d.ts +0 -53
  123. package/build/esm/blocks/Advantages/schema.js +0 -33
  124. package/build/esm/blocks/BannerMinify/BannerMinify.css +0 -45
  125. package/build/esm/blocks/BannerMinify/BannerMinify.d.ts +0 -4
  126. package/build/esm/blocks/BannerMinify/BannerMinify.js +0 -20
  127. package/build/esm/blocks/BannerMinify/Button/Button.css +0 -28
  128. package/build/esm/blocks/BannerMinify/Button/Button.d.ts +0 -4
  129. package/build/esm/blocks/BannerMinify/Button/Button.js +0 -11
  130. package/build/esm/blocks/BannerMinify/schema.d.ts +0 -182
  131. package/build/esm/blocks/BannerMinify/schema.js +0 -33
  132. package/build/esm/components/TextNode/TextNode.css +0 -2
  133. package/build/esm/components/TextNode/TextNode.d.ts +0 -13
  134. 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: 24px;
49
- line-height: 28px;
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: 769px) {
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
- title && react_1.default.createElement("h2", { className: b('title') }, title),
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
- type: string;
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
- type: 'string',
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: 24px;
393
- line-height: 28px;
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: 769px) {
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
- title && react_1.default.createElement("h2", { className: b('title') }, title),
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
- type: string;
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
- type: 'string',
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: {
@@ -306,7 +306,33 @@ export declare const HeaderBackgroundProps: {
306
306
  type: string;
307
307
  };
308
308
  height: {
309
- type: string;
309
+ oneOf: ({
310
+ type: string;
311
+ optionName: string;
312
+ additionalProperties?: undefined;
313
+ properties?: undefined;
314
+ } | {
315
+ type: string;
316
+ additionalProperties: boolean;
317
+ optionName: string;
318
+ properties: {
319
+ all: {
320
+ type: string;
321
+ };
322
+ sm: {
323
+ type: string;
324
+ };
325
+ md: {
326
+ type: string;
327
+ };
328
+ lg: {
329
+ type: string;
330
+ };
331
+ xl: {
332
+ type: string;
333
+ };
334
+ };
335
+ })[];
310
336
  };
311
337
  width: {
312
338
  type: string;
@@ -1047,7 +1073,33 @@ export declare const HeaderProperties: {
1047
1073
  type: string;
1048
1074
  };
1049
1075
  height: {
1050
- type: string;
1076
+ oneOf: ({
1077
+ type: string;
1078
+ optionName: string;
1079
+ additionalProperties?: undefined;
1080
+ properties?: undefined;
1081
+ } | {
1082
+ type: string;
1083
+ additionalProperties: boolean;
1084
+ optionName: string;
1085
+ properties: {
1086
+ all: {
1087
+ type: string;
1088
+ };
1089
+ sm: {
1090
+ type: string;
1091
+ };
1092
+ md: {
1093
+ type: string;
1094
+ };
1095
+ lg: {
1096
+ type: string;
1097
+ };
1098
+ xl: {
1099
+ type: string;
1100
+ };
1101
+ };
1102
+ })[];
1051
1103
  };
1052
1104
  width: {
1053
1105
  type: string;
@@ -1926,7 +1978,33 @@ export declare const HeaderBlock: {
1926
1978
  type: string;
1927
1979
  };
1928
1980
  height: {
1929
- type: string;
1981
+ oneOf: ({
1982
+ type: string;
1983
+ optionName: string;
1984
+ additionalProperties?: undefined;
1985
+ properties?: undefined;
1986
+ } | {
1987
+ type: string;
1988
+ additionalProperties: boolean;
1989
+ optionName: string;
1990
+ properties: {
1991
+ all: {
1992
+ type: string;
1993
+ };
1994
+ sm: {
1995
+ type: string;
1996
+ };
1997
+ md: {
1998
+ type: string;
1999
+ };
2000
+ lg: {
2001
+ type: string;
2002
+ };
2003
+ xl: {
2004
+ type: string;
2005
+ };
2006
+ };
2007
+ })[];
1930
2008
  };
1931
2009
  width: {
1932
2010
  type: string;
@@ -738,7 +738,33 @@ export declare const HeaderSliderBlock: {
738
738
  type: string;
739
739
  };
740
740
  height: {
741
- type: string;
741
+ oneOf: ({
742
+ type: string;
743
+ optionName: string;
744
+ additionalProperties?: undefined;
745
+ properties?: undefined;
746
+ } | {
747
+ type: string;
748
+ additionalProperties: boolean;
749
+ optionName: string;
750
+ properties: {
751
+ all: {
752
+ type: string;
753
+ };
754
+ sm: {
755
+ type: string;
756
+ };
757
+ md: {
758
+ type: string;
759
+ };
760
+ lg: {
761
+ type: string;
762
+ };
763
+ xl: {
764
+ type: string;
765
+ };
766
+ };
767
+ })[];
742
768
  };
743
769
  width: {
744
770
  type: string;
@@ -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: 24px;
49
- line-height: 28px;
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: 769px) {
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-block__title {
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
- title && react_1.default.createElement("h2", { className: b('title') }, title),
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;