@doyourjob/gravity-ui-page-constructor 5.31.141-dev.0 → 5.31.141-dev.2
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/BannerMinify/BannerMinify.css +27 -0
- package/build/cjs/blocks/BannerMinify/BannerMinify.d.ts +3 -0
- package/build/cjs/blocks/BannerMinify/BannerMinify.js +24 -0
- package/build/cjs/blocks/BannerMinify/Button/Button.css +27 -0
- package/build/cjs/blocks/BannerMinify/Button/Button.d.ts +3 -0
- package/build/cjs/blocks/BannerMinify/Button/Button.js +15 -0
- package/build/cjs/blocks/BannerMinify/schema.d.ts +310 -0
- package/build/cjs/blocks/BannerMinify/schema.js +34 -0
- package/build/cjs/blocks/Benchmark/schema.d.ts +3 -0
- package/build/cjs/blocks/CardLayout/schema.d.ts +6 -0
- package/build/cjs/blocks/ContentLayout/schema.d.ts +3 -0
- package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +3 -0
- package/build/cjs/blocks/FilterBlock/schema.d.ts +6 -0
- package/build/cjs/blocks/FilterCardLayout/schema.d.ts +3 -0
- package/build/cjs/blocks/Form/schema.d.ts +3 -0
- package/build/cjs/blocks/Header/Header.js +1 -2
- package/build/cjs/blocks/Header/schema.d.ts +3 -0
- package/build/cjs/blocks/HeaderMinify/Button/Button.css +27 -0
- package/build/cjs/blocks/HeaderMinify/Button/Button.d.ts +3 -0
- package/build/cjs/blocks/HeaderMinify/Button/Button.js +17 -0
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.css +35 -0
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.d.ts +3 -0
- package/build/cjs/blocks/HeaderMinify/HeaderMinify.js +25 -0
- package/build/cjs/blocks/HeaderMinify/schema.d.ts +221 -0
- package/build/cjs/blocks/HeaderMinify/schema.js +41 -0
- package/build/cjs/blocks/HeaderSlider/schema.d.ts +3 -0
- package/build/cjs/blocks/HighlightTable/schema.d.ts +3 -0
- package/build/cjs/blocks/Icons/schema.d.ts +6 -0
- package/build/cjs/blocks/LogoRotator/LogoRotator.css +7 -0
- package/build/cjs/blocks/LogoRotator/LogoRotator.js +5 -2
- package/build/cjs/blocks/LogoRotator/schema.d.ts +145 -0
- package/build/cjs/blocks/LogoRotator/schema.js +1 -1
- package/build/cjs/blocks/Map/schema.d.ts +3 -0
- package/build/cjs/blocks/Media/schema.d.ts +6 -0
- package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
- package/build/cjs/blocks/Questions/schema.d.ts +3 -0
- package/build/cjs/blocks/Slider/schema.d.ts +3 -0
- package/build/cjs/blocks/SliderNew/schema.d.ts +3 -0
- package/build/cjs/blocks/TabLinks/schema.d.ts +3 -0
- package/build/cjs/blocks/Table/schema.d.ts +3 -0
- package/build/cjs/blocks/Tabs/schema.d.ts +3 -0
- package/build/cjs/blocks/TabsHighlightTable/schema.d.ts +3 -0
- package/build/cjs/blocks/index.d.ts +2 -0
- package/build/cjs/blocks/index.js +5 -1
- package/build/cjs/blocks/validators.d.ts +1 -0
- package/build/cjs/blocks/validators.js +1 -0
- package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.css +1 -1
- package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.js +5 -5
- package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.css +13 -0
- package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +3 -0
- package/build/cjs/components/BackgroundUnicorn/BackgroundUnicorn.js +15 -0
- package/build/cjs/components/index.d.ts +2 -0
- package/build/cjs/components/index.js +6 -1
- package/build/cjs/constructor-items.d.ts +2 -0
- package/build/cjs/constructor-items.js +2 -0
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +2 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +38 -2
- package/build/cjs/models/constructor-items/blocks.js +7 -1
- package/build/cjs/schema/constants.d.ts +7 -1
- package/build/cjs/schema/constants.js +3 -1
- package/build/cjs/schema/validators/blocks.d.ts +2 -0
- package/build/cjs/schema/validators/blocks.js +2 -0
- package/build/cjs/schema/validators/common.d.ts +3 -0
- package/build/cjs/schema/validators/common.js +2 -0
- package/build/cjs/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
- package/build/cjs/sub-blocks/StoryCard/schema.d.ts +3 -0
- package/build/cjs/text-transform/config.js +6 -0
- package/build/esm/blocks/BannerMinify/BannerMinify.css +27 -0
- package/build/esm/blocks/BannerMinify/BannerMinify.d.ts +4 -0
- package/build/esm/blocks/BannerMinify/BannerMinify.js +20 -0
- package/build/esm/blocks/BannerMinify/Button/Button.css +27 -0
- package/build/esm/blocks/BannerMinify/Button/Button.d.ts +4 -0
- package/build/esm/blocks/BannerMinify/Button/Button.js +11 -0
- package/build/esm/blocks/BannerMinify/schema.d.ts +310 -0
- package/build/esm/blocks/BannerMinify/schema.js +31 -0
- package/build/esm/blocks/Benchmark/schema.d.ts +3 -0
- package/build/esm/blocks/CardLayout/schema.d.ts +6 -0
- package/build/esm/blocks/ContentLayout/schema.d.ts +3 -0
- package/build/esm/blocks/ExtendedFeatures/schema.d.ts +3 -0
- package/build/esm/blocks/FilterBlock/schema.d.ts +6 -0
- package/build/esm/blocks/FilterCardLayout/schema.d.ts +3 -0
- package/build/esm/blocks/Form/schema.d.ts +3 -0
- package/build/esm/blocks/Header/Header.js +1 -2
- package/build/esm/blocks/Header/schema.d.ts +3 -0
- package/build/esm/blocks/HeaderMinify/Button/Button.css +27 -0
- package/build/esm/blocks/HeaderMinify/Button/Button.d.ts +4 -0
- package/build/esm/blocks/HeaderMinify/Button/Button.js +13 -0
- package/build/esm/blocks/HeaderMinify/HeaderMinify.css +35 -0
- package/build/esm/blocks/HeaderMinify/HeaderMinify.d.ts +4 -0
- package/build/esm/blocks/HeaderMinify/HeaderMinify.js +21 -0
- package/build/esm/blocks/HeaderMinify/schema.d.ts +221 -0
- package/build/esm/blocks/HeaderMinify/schema.js +38 -0
- package/build/esm/blocks/HeaderSlider/schema.d.ts +3 -0
- package/build/esm/blocks/HighlightTable/schema.d.ts +3 -0
- package/build/esm/blocks/Icons/schema.d.ts +6 -0
- package/build/esm/blocks/LogoRotator/LogoRotator.css +7 -0
- package/build/esm/blocks/LogoRotator/LogoRotator.js +5 -2
- package/build/esm/blocks/LogoRotator/schema.d.ts +145 -0
- package/build/esm/blocks/LogoRotator/schema.js +2 -2
- package/build/esm/blocks/Map/schema.d.ts +3 -0
- package/build/esm/blocks/Media/schema.d.ts +6 -0
- package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +3 -0
- package/build/esm/blocks/Questions/schema.d.ts +3 -0
- package/build/esm/blocks/Slider/schema.d.ts +3 -0
- package/build/esm/blocks/SliderNew/schema.d.ts +3 -0
- package/build/esm/blocks/TabLinks/schema.d.ts +3 -0
- package/build/esm/blocks/Table/schema.d.ts +3 -0
- package/build/esm/blocks/Tabs/schema.d.ts +3 -0
- package/build/esm/blocks/TabsHighlightTable/schema.d.ts +3 -0
- package/build/esm/blocks/index.d.ts +2 -0
- package/build/esm/blocks/index.js +2 -0
- package/build/esm/blocks/validators.d.ts +1 -0
- package/build/esm/blocks/validators.js +1 -0
- package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.css +1 -1
- package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.js +2 -2
- package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.css +13 -0
- package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.d.ts +4 -0
- package/build/esm/components/BackgroundUnicorn/BackgroundUnicorn.js +13 -0
- package/build/esm/components/index.d.ts +2 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/constructor-items.d.ts +2 -0
- package/build/esm/constructor-items.js +3 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +2 -0
- package/build/esm/models/constructor-items/blocks.d.ts +38 -2
- package/build/esm/models/constructor-items/blocks.js +7 -1
- package/build/esm/schema/constants.d.ts +7 -1
- package/build/esm/schema/constants.js +4 -2
- package/build/esm/schema/validators/blocks.d.ts +2 -0
- package/build/esm/schema/validators/blocks.js +2 -0
- package/build/esm/schema/validators/common.d.ts +3 -0
- package/build/esm/schema/validators/common.js +2 -0
- package/build/esm/sub-blocks/ContentLayoutCard/schema.d.ts +3 -0
- package/build/esm/sub-blocks/StoryCard/schema.d.ts +3 -0
- package/build/esm/text-transform/config.js +6 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +38 -2
- package/server/models/constructor-items/blocks.js +7 -1
- package/server/text-transform/config.js +6 -0
- package/widget/290.index.js +1 -1
- package/widget/index.js +1 -1
- /package/build/cjs/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
- /package/build/esm/{blocks/Header → components}/BackgroundEffect/BackgroundEffect.d.ts +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HeaderMinifyBlock = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const components_1 = require("../../components");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const Button_1 = tslib_1.__importDefault(require("./Button/Button"));
|
|
9
|
+
const b = (0, utils_1.block)('header-minify-block');
|
|
10
|
+
const modifiers = {
|
|
11
|
+
constructor: true,
|
|
12
|
+
};
|
|
13
|
+
const HeaderMinifyBlock = (props) => {
|
|
14
|
+
const { title, description, button, backgroundEffect } = props;
|
|
15
|
+
const headerRef = (0, react_1.useRef)(null);
|
|
16
|
+
return (react_1.default.createElement("header", { ref: headerRef, className: b() },
|
|
17
|
+
backgroundEffect && backgroundEffect.firstSrc && backgroundEffect.secondSrc && (react_1.default.createElement(components_1.BackgroundEffect, Object.assign({}, backgroundEffect, { attachRef: headerRef }))),
|
|
18
|
+
react_1.default.createElement("h1", { className: b('title') },
|
|
19
|
+
react_1.default.createElement(components_1.HTML, null, title)),
|
|
20
|
+
description && (react_1.default.createElement("div", { className: b('description') },
|
|
21
|
+
react_1.default.createElement(components_1.YFMWrapper, { content: description, modifiers: modifiers }))),
|
|
22
|
+
react_1.default.createElement("div", { className: b('buttons') }, button && react_1.default.createElement(Button_1.default, Object.assign({}, button)))));
|
|
23
|
+
};
|
|
24
|
+
exports.HeaderMinifyBlock = HeaderMinifyBlock;
|
|
25
|
+
exports.default = exports.HeaderMinifyBlock;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
export declare const HeaderMinifyProperties: {
|
|
2
|
+
title: {
|
|
3
|
+
type: string;
|
|
4
|
+
contentType: string;
|
|
5
|
+
};
|
|
6
|
+
description: {
|
|
7
|
+
type: string;
|
|
8
|
+
contentType: string;
|
|
9
|
+
inputType: string;
|
|
10
|
+
};
|
|
11
|
+
button: {
|
|
12
|
+
type: string;
|
|
13
|
+
additionalProperties: boolean;
|
|
14
|
+
required: string[];
|
|
15
|
+
properties: {
|
|
16
|
+
icon: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
text: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
url: {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
backgroundEffect: {
|
|
28
|
+
type: string;
|
|
29
|
+
additionalProperties: boolean;
|
|
30
|
+
required: string[];
|
|
31
|
+
properties: {
|
|
32
|
+
firstSrc: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
secondSrc: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare const HeaderMinifyBlock: {
|
|
42
|
+
'header-minify-block': {
|
|
43
|
+
additionalProperties: boolean;
|
|
44
|
+
required: string[];
|
|
45
|
+
properties: {
|
|
46
|
+
title: {
|
|
47
|
+
type: string;
|
|
48
|
+
contentType: string;
|
|
49
|
+
};
|
|
50
|
+
description: {
|
|
51
|
+
type: string;
|
|
52
|
+
contentType: string;
|
|
53
|
+
inputType: string;
|
|
54
|
+
};
|
|
55
|
+
button: {
|
|
56
|
+
type: string;
|
|
57
|
+
additionalProperties: boolean;
|
|
58
|
+
required: string[];
|
|
59
|
+
properties: {
|
|
60
|
+
icon: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
text: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
url: {
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
backgroundEffect: {
|
|
72
|
+
type: string;
|
|
73
|
+
additionalProperties: boolean;
|
|
74
|
+
required: string[];
|
|
75
|
+
properties: {
|
|
76
|
+
firstSrc: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
secondSrc: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
anchor: {
|
|
85
|
+
type: string;
|
|
86
|
+
additionalProperties: boolean;
|
|
87
|
+
required: string[];
|
|
88
|
+
properties: {
|
|
89
|
+
text: {
|
|
90
|
+
type: string;
|
|
91
|
+
contentType: string;
|
|
92
|
+
};
|
|
93
|
+
url: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
urlTitle: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
visibility: {
|
|
102
|
+
oneOf: ({
|
|
103
|
+
type: string;
|
|
104
|
+
enum: string[];
|
|
105
|
+
additionalProperties?: undefined;
|
|
106
|
+
properties?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
type: string;
|
|
109
|
+
additionalProperties: boolean;
|
|
110
|
+
properties: {
|
|
111
|
+
xs: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
sm: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
md: {
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
lg: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
xl: {
|
|
124
|
+
type: string;
|
|
125
|
+
};
|
|
126
|
+
xxl: {
|
|
127
|
+
type: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
enum?: undefined;
|
|
131
|
+
})[];
|
|
132
|
+
};
|
|
133
|
+
visible: {
|
|
134
|
+
type: string;
|
|
135
|
+
enum: string[];
|
|
136
|
+
};
|
|
137
|
+
hidden: {
|
|
138
|
+
type: string;
|
|
139
|
+
enum: string[];
|
|
140
|
+
};
|
|
141
|
+
resetPaddings: {
|
|
142
|
+
type: string;
|
|
143
|
+
};
|
|
144
|
+
context: {
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
indent: {
|
|
148
|
+
type: string;
|
|
149
|
+
additionalProperties: boolean;
|
|
150
|
+
properties: {
|
|
151
|
+
top: {
|
|
152
|
+
enum: string[];
|
|
153
|
+
};
|
|
154
|
+
bottom: {
|
|
155
|
+
enum: string[];
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
backgroundFull: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
visibilityFilter: {
|
|
163
|
+
oneOf: ({
|
|
164
|
+
type: string;
|
|
165
|
+
items?: undefined;
|
|
166
|
+
} | {
|
|
167
|
+
type: string;
|
|
168
|
+
items: {
|
|
169
|
+
type: string;
|
|
170
|
+
};
|
|
171
|
+
})[];
|
|
172
|
+
};
|
|
173
|
+
blockUnicorn: {
|
|
174
|
+
type: string;
|
|
175
|
+
};
|
|
176
|
+
blockBackground: {
|
|
177
|
+
oneOf: ({
|
|
178
|
+
type: string;
|
|
179
|
+
additionalProperties?: undefined;
|
|
180
|
+
properties?: undefined;
|
|
181
|
+
} | {
|
|
182
|
+
type: string;
|
|
183
|
+
additionalProperties: boolean;
|
|
184
|
+
properties: {
|
|
185
|
+
color: {
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
188
|
+
image: {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
size: {
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
repeat: {
|
|
195
|
+
type: string;
|
|
196
|
+
};
|
|
197
|
+
position: {
|
|
198
|
+
type: string;
|
|
199
|
+
};
|
|
200
|
+
attachment: {
|
|
201
|
+
type: string;
|
|
202
|
+
};
|
|
203
|
+
clip: {
|
|
204
|
+
type: string;
|
|
205
|
+
};
|
|
206
|
+
origin: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
blendMode: {
|
|
210
|
+
type: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
})[];
|
|
214
|
+
};
|
|
215
|
+
type: {};
|
|
216
|
+
when: {
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HeaderMinifyBlock = exports.HeaderMinifyProperties = void 0;
|
|
4
|
+
const common_1 = require("../../schema/validators/common");
|
|
5
|
+
exports.HeaderMinifyProperties = {
|
|
6
|
+
title: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
contentType: 'text',
|
|
9
|
+
},
|
|
10
|
+
description: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
contentType: 'yfm',
|
|
13
|
+
inputType: 'textarea',
|
|
14
|
+
},
|
|
15
|
+
button: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
additionalProperties: false,
|
|
18
|
+
required: ['text', 'url'],
|
|
19
|
+
properties: {
|
|
20
|
+
icon: { type: 'string' },
|
|
21
|
+
text: { type: 'string' },
|
|
22
|
+
url: { type: 'string' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
backgroundEffect: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
additionalProperties: false,
|
|
28
|
+
required: ['firstSrc', 'secondSrc'],
|
|
29
|
+
properties: {
|
|
30
|
+
firstSrc: { type: 'string' },
|
|
31
|
+
secondSrc: { type: 'string' },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
exports.HeaderMinifyBlock = {
|
|
36
|
+
'header-minify-block': {
|
|
37
|
+
additionalProperties: false,
|
|
38
|
+
required: ['title'],
|
|
39
|
+
properties: Object.assign(Object.assign({}, common_1.BlockBaseProps), exports.HeaderMinifyProperties),
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -213,6 +213,9 @@ export declare const IconsProps: {
|
|
|
213
213
|
};
|
|
214
214
|
})[];
|
|
215
215
|
};
|
|
216
|
+
blockUnicorn: {
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
216
219
|
blockBackground: {
|
|
217
220
|
oneOf: ({
|
|
218
221
|
type: string;
|
|
@@ -474,6 +477,9 @@ export declare const IconsBlock: {
|
|
|
474
477
|
};
|
|
475
478
|
})[];
|
|
476
479
|
};
|
|
480
|
+
blockUnicorn: {
|
|
481
|
+
type: string;
|
|
482
|
+
};
|
|
477
483
|
blockBackground: {
|
|
478
484
|
oneOf: ({
|
|
479
485
|
type: string;
|
|
@@ -16,6 +16,13 @@ unpredictable css rules order in build */
|
|
|
16
16
|
.pc-logo-rotator-block__row {
|
|
17
17
|
justify-content: center;
|
|
18
18
|
}
|
|
19
|
+
.pc-logo-rotator-block_theme_dark .pc-logo-rotator-block__title {
|
|
20
|
+
color: #ffffff;
|
|
21
|
+
}
|
|
22
|
+
.pc-logo-rotator-block__title {
|
|
23
|
+
margin-bottom: 48px;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
19
26
|
.pc-logo-rotator-block__items {
|
|
20
27
|
display: flex;
|
|
21
28
|
flex-wrap: wrap;
|
|
@@ -4,12 +4,13 @@ exports.LogoRotatorBlock = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
|
|
7
|
+
const TitleItem_1 = tslib_1.__importDefault(require("../../components/Title/TitleItem"));
|
|
7
8
|
const grid_1 = require("../../grid");
|
|
8
9
|
const utils_1 = require("../../utils");
|
|
9
10
|
const Item_1 = tslib_1.__importDefault(require("./Item"));
|
|
10
11
|
const b = (0, utils_1.block)('logo-rotator-block');
|
|
11
12
|
const LogoRotatorBlock = (props) => {
|
|
12
|
-
const { animated, items, count, colSizes } = props;
|
|
13
|
+
const { animated, title, theme, items, count, colSizes } = props;
|
|
13
14
|
const [slots, setSlots] = (0, react_1.useState)(new Array(count).fill(0).map((_, index) => index));
|
|
14
15
|
const [hidden, setHidden] = (0, react_1.useState)(() => Array(count).fill(false));
|
|
15
16
|
const nextIndexRef = (0, react_1.useRef)(count - 1);
|
|
@@ -48,7 +49,9 @@ const LogoRotatorBlock = (props) => {
|
|
|
48
49
|
};
|
|
49
50
|
}, [count, items]);
|
|
50
51
|
const renderItems = (0, react_1.useMemo)(() => slots.map((slot, index) => (react_1.default.createElement(Item_1.default, { key: index, colSizes: colSizes, url: items[slot].url, src: items[slot].src, hidden: hidden[index] }))), [colSizes, hidden, items, slots]);
|
|
51
|
-
|
|
52
|
+
const titleProps = !title || typeof title === 'string' ? { text: title } : title;
|
|
53
|
+
return (react_1.default.createElement(AnimateBlock_1.default, { className: b({ theme }), animate: animated },
|
|
54
|
+
react_1.default.createElement(TitleItem_1.default, Object.assign({ className: b('title') }, titleProps)),
|
|
52
55
|
react_1.default.createElement(grid_1.Grid, { className: b('items') },
|
|
53
56
|
react_1.default.createElement(grid_1.Row, { className: b('row') }, renderItems))));
|
|
54
57
|
};
|
|
@@ -3,6 +3,151 @@ export declare const LogoRotatorBlock: {
|
|
|
3
3
|
additionalProperties: boolean;
|
|
4
4
|
required: string[];
|
|
5
5
|
properties: {
|
|
6
|
+
title: {
|
|
7
|
+
type: string;
|
|
8
|
+
additionalProperties: boolean;
|
|
9
|
+
required: string[];
|
|
10
|
+
properties: {
|
|
11
|
+
text: {
|
|
12
|
+
type: string;
|
|
13
|
+
contentType: string;
|
|
14
|
+
};
|
|
15
|
+
link: {
|
|
16
|
+
type: string;
|
|
17
|
+
additionalProperties: boolean;
|
|
18
|
+
required: string[];
|
|
19
|
+
properties: {
|
|
20
|
+
text: {
|
|
21
|
+
type: string;
|
|
22
|
+
contentType: string;
|
|
23
|
+
};
|
|
24
|
+
url: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
urlTitle: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
arrow: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
theme: {
|
|
34
|
+
type: string;
|
|
35
|
+
enum: string[];
|
|
36
|
+
};
|
|
37
|
+
textSize: {
|
|
38
|
+
type: string;
|
|
39
|
+
enum: string[];
|
|
40
|
+
};
|
|
41
|
+
target: {
|
|
42
|
+
type: string;
|
|
43
|
+
enum: string[];
|
|
44
|
+
};
|
|
45
|
+
analyticsEvents: {
|
|
46
|
+
oneOf: ({
|
|
47
|
+
optionName: string;
|
|
48
|
+
type: string;
|
|
49
|
+
additionalProperties: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
required: string[];
|
|
53
|
+
properties: {
|
|
54
|
+
name: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
type: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
counters: {
|
|
61
|
+
type: string;
|
|
62
|
+
additionalProperties: boolean;
|
|
63
|
+
required: never[];
|
|
64
|
+
properties: {
|
|
65
|
+
include: {
|
|
66
|
+
type: string;
|
|
67
|
+
items: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
exclude: {
|
|
72
|
+
type: string;
|
|
73
|
+
items: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
context: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
items?: undefined;
|
|
84
|
+
} | {
|
|
85
|
+
type: string;
|
|
86
|
+
items: {
|
|
87
|
+
type: string;
|
|
88
|
+
additionalProperties: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
required: string[];
|
|
92
|
+
properties: {
|
|
93
|
+
name: {
|
|
94
|
+
type: string;
|
|
95
|
+
};
|
|
96
|
+
type: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
counters: {
|
|
100
|
+
type: string;
|
|
101
|
+
additionalProperties: boolean;
|
|
102
|
+
required: never[];
|
|
103
|
+
properties: {
|
|
104
|
+
include: {
|
|
105
|
+
type: string;
|
|
106
|
+
items: {
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
exclude: {
|
|
111
|
+
type: string;
|
|
112
|
+
items: {
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
context: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
optionName: string;
|
|
124
|
+
})[];
|
|
125
|
+
};
|
|
126
|
+
type: {};
|
|
127
|
+
when: {
|
|
128
|
+
type: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
textSize: {
|
|
133
|
+
type: string;
|
|
134
|
+
enum: string[];
|
|
135
|
+
};
|
|
136
|
+
url: {
|
|
137
|
+
type: string;
|
|
138
|
+
};
|
|
139
|
+
urlTitle: {
|
|
140
|
+
type: string;
|
|
141
|
+
};
|
|
142
|
+
resetMargin: {
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
theme: {
|
|
148
|
+
type: string;
|
|
149
|
+
enum: string[];
|
|
150
|
+
};
|
|
6
151
|
items: {
|
|
7
152
|
type: string;
|
|
8
153
|
items: {
|
|
@@ -6,7 +6,7 @@ exports.LogoRotatorBlock = {
|
|
|
6
6
|
'logo-rotator-block': {
|
|
7
7
|
additionalProperties: false,
|
|
8
8
|
required: ['items', 'count'],
|
|
9
|
-
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { items: {
|
|
9
|
+
properties: Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.AnimatableProps), { title: common_1.TitleProps, theme: common_1.ThemeProps, items: {
|
|
10
10
|
type: 'array',
|
|
11
11
|
items: {
|
|
12
12
|
type: 'object',
|
|
@@ -804,6 +804,9 @@ export declare const MediaBlockBaseProps: {
|
|
|
804
804
|
};
|
|
805
805
|
})[];
|
|
806
806
|
};
|
|
807
|
+
blockUnicorn: {
|
|
808
|
+
type: string;
|
|
809
|
+
};
|
|
807
810
|
blockBackground: {
|
|
808
811
|
oneOf: ({
|
|
809
812
|
type: string;
|
|
@@ -1668,6 +1671,9 @@ export declare const MediaBlock: {
|
|
|
1668
1671
|
};
|
|
1669
1672
|
})[];
|
|
1670
1673
|
};
|
|
1674
|
+
blockUnicorn: {
|
|
1675
|
+
type: string;
|
|
1676
|
+
};
|
|
1671
1677
|
blockBackground: {
|
|
1672
1678
|
oneOf: ({
|
|
1673
1679
|
type: string;
|
|
@@ -15,10 +15,12 @@ export { default as TabsBlock } from './Tabs/Tabs';
|
|
|
15
15
|
export { default as TabsHighlightTableBlock } from './TabsHighlightTable/TabsHighlightTable';
|
|
16
16
|
export { default as TabLinksBlock } from './TabLinks/TabLinks';
|
|
17
17
|
export { default as HeaderBlock } from './Header/Header';
|
|
18
|
+
export { default as HeaderMinifyBlock } from './HeaderMinify/HeaderMinify';
|
|
18
19
|
export { default as IconsBlock } from './Icons/Icons';
|
|
19
20
|
export { default as HeaderSliderBlock } from './HeaderSlider/HeaderSlider';
|
|
20
21
|
export { default as CardLayoutBlock } from './CardLayout/CardLayout';
|
|
21
22
|
export { default as ContentLayoutBlock } from './ContentLayout/ContentLayout';
|
|
23
|
+
export { default as BannerMinifyBlock } from './BannerMinify/BannerMinify';
|
|
22
24
|
export { default as ShareBlock } from './Share/Share';
|
|
23
25
|
export { default as FilterBlock } from './FilterBlock/FilterBlock';
|
|
24
26
|
export { default as FilterCardLayoutBlock } from './FilterCardLayout/FilterCardLayout';
|