@doyourjob/gravity-ui-page-constructor 5.31.141-dev.1 → 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/schema.d.ts +3 -0
- package/build/cjs/blocks/HeaderMinify/schema.d.ts +3 -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 +1 -0
- package/build/cjs/blocks/index.js +3 -1
- package/build/cjs/blocks/validators.d.ts +1 -0
- package/build/cjs/blocks/validators.js +1 -0
- 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 +1 -0
- package/build/cjs/components/index.js +3 -0
- package/build/cjs/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +2 -0
- package/build/cjs/models/constructor-items/blocks.d.ts +19 -1
- package/build/cjs/models/constructor-items/blocks.js +1 -0
- package/build/cjs/schema/constants.d.ts +7 -1
- package/build/cjs/schema/constants.js +2 -1
- package/build/cjs/schema/validators/blocks.d.ts +1 -0
- package/build/cjs/schema/validators/blocks.js +1 -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/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/schema.d.ts +3 -0
- package/build/esm/blocks/HeaderMinify/schema.d.ts +3 -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 +1 -0
- package/build/esm/blocks/index.js +1 -0
- package/build/esm/blocks/validators.d.ts +1 -0
- package/build/esm/blocks/validators.js +1 -0
- 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 +1 -0
- package/build/esm/components/index.js +1 -0
- package/build/esm/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +2 -0
- package/build/esm/models/constructor-items/blocks.d.ts +19 -1
- package/build/esm/models/constructor-items/blocks.js +1 -0
- package/build/esm/schema/constants.d.ts +7 -1
- package/build/esm/schema/constants.js +3 -2
- package/build/esm/schema/validators/blocks.d.ts +1 -0
- package/build/esm/schema/validators/blocks.js +1 -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/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +19 -1
- package/server/models/constructor-items/blocks.js +1 -0
- package/widget/290.index.js +1 -1
- package/widget/index.js +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-banner-minify-block {
|
|
4
|
+
align-items: end;
|
|
5
|
+
--dc-accent-color: #001a2b;
|
|
6
|
+
--dc-bg-color: #ffffff;
|
|
7
|
+
}
|
|
8
|
+
.pc-banner-minify-block_theme_dark {
|
|
9
|
+
--dc-accent-color: #ffffff;
|
|
10
|
+
--dc-bg-color: #001a2b;
|
|
11
|
+
}
|
|
12
|
+
.pc-banner-minify-block__title {
|
|
13
|
+
color: var(--dc-accent-color);
|
|
14
|
+
}
|
|
15
|
+
.pc-banner-minify-block__text {
|
|
16
|
+
color: var(--dc-accent-color);
|
|
17
|
+
margin-top: 48px;
|
|
18
|
+
font-size: 24px;
|
|
19
|
+
line-height: 28px;
|
|
20
|
+
}
|
|
21
|
+
.pc-banner-minify-block__buttons {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: end;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
gap: 24px;
|
|
26
|
+
padding-top: 32px;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BannerMinifyBlock = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const TitleItem_1 = tslib_1.__importDefault(require("../../components/Title/TitleItem"));
|
|
7
|
+
const grid_1 = require("../../grid");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const Button_1 = tslib_1.__importDefault(require("./Button/Button"));
|
|
10
|
+
const b = (0, utils_1.block)('banner-minify-block');
|
|
11
|
+
const leftColSizes = { lg: 5, all: 12 };
|
|
12
|
+
const rightColSizes = { lg: 7, all: 12 };
|
|
13
|
+
const BannerMinifyBlock = (props) => {
|
|
14
|
+
const { title, text, buttons, theme } = props;
|
|
15
|
+
const titleProps = !title || typeof title === 'string' ? { text: title } : title;
|
|
16
|
+
return (react_1.default.createElement(grid_1.Row, { className: b({ theme }) },
|
|
17
|
+
react_1.default.createElement(grid_1.Col, { sizes: leftColSizes },
|
|
18
|
+
title && react_1.default.createElement(TitleItem_1.default, Object.assign({ className: b('title') }, titleProps)),
|
|
19
|
+
text && react_1.default.createElement("div", { className: b('text') }, text)),
|
|
20
|
+
react_1.default.createElement(grid_1.Col, { sizes: rightColSizes },
|
|
21
|
+
react_1.default.createElement("div", { className: b('buttons') }, buttons === null || buttons === void 0 ? void 0 : buttons.map((button, index) => (react_1.default.createElement(Button_1.default, Object.assign({ key: index }, button))))))));
|
|
22
|
+
};
|
|
23
|
+
exports.BannerMinifyBlock = BannerMinifyBlock;
|
|
24
|
+
exports.default = exports.BannerMinifyBlock;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-banner-minify-button {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding: 16px 28px;
|
|
8
|
+
border-radius: 16px;
|
|
9
|
+
background: var(--dc-accent-color);
|
|
10
|
+
color: var(--dc-bg-color);
|
|
11
|
+
font-size: 24px;
|
|
12
|
+
line-height: 24px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
letter-spacing: 0.01em;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
transition: opacity 0.3s ease;
|
|
17
|
+
}
|
|
18
|
+
.pc-banner-minify-button_theme_outline {
|
|
19
|
+
border: 1px solid var(--dc-accent-color);
|
|
20
|
+
background: transparent;
|
|
21
|
+
color: var(--dc-accent-color);
|
|
22
|
+
}
|
|
23
|
+
@media (hover: hover) and (pointer: fine) {
|
|
24
|
+
.pc-banner-minify-button:hover {
|
|
25
|
+
opacity: 0.8;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Button = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const components_1 = require("../../../components");
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
|
+
const b = (0, utils_1.block)('banner-minify-button');
|
|
9
|
+
const Button = (props) => {
|
|
10
|
+
const { url, theme, text } = props;
|
|
11
|
+
return (react_1.default.createElement(components_1.RouterLink, { href: url },
|
|
12
|
+
react_1.default.createElement("a", { href: url, className: b({ theme }) }, text)));
|
|
13
|
+
};
|
|
14
|
+
exports.Button = Button;
|
|
15
|
+
exports.default = exports.Button;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
export declare const BannerMinifyBlock: {
|
|
2
|
+
'banner-minify-block': {
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
properties: {
|
|
5
|
+
theme: {
|
|
6
|
+
type: string;
|
|
7
|
+
enum: string[];
|
|
8
|
+
};
|
|
9
|
+
title: {
|
|
10
|
+
type: string;
|
|
11
|
+
additionalProperties: boolean;
|
|
12
|
+
required: string[];
|
|
13
|
+
properties: {
|
|
14
|
+
text: {
|
|
15
|
+
type: string;
|
|
16
|
+
contentType: string;
|
|
17
|
+
};
|
|
18
|
+
link: {
|
|
19
|
+
type: string;
|
|
20
|
+
additionalProperties: boolean;
|
|
21
|
+
required: string[];
|
|
22
|
+
properties: {
|
|
23
|
+
text: {
|
|
24
|
+
type: string;
|
|
25
|
+
contentType: string;
|
|
26
|
+
};
|
|
27
|
+
url: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
urlTitle: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
arrow: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
theme: {
|
|
37
|
+
type: string;
|
|
38
|
+
enum: string[];
|
|
39
|
+
};
|
|
40
|
+
textSize: {
|
|
41
|
+
type: string;
|
|
42
|
+
enum: string[];
|
|
43
|
+
};
|
|
44
|
+
target: {
|
|
45
|
+
type: string;
|
|
46
|
+
enum: string[];
|
|
47
|
+
};
|
|
48
|
+
analyticsEvents: {
|
|
49
|
+
oneOf: ({
|
|
50
|
+
optionName: string;
|
|
51
|
+
type: string;
|
|
52
|
+
additionalProperties: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
required: string[];
|
|
56
|
+
properties: {
|
|
57
|
+
name: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
type: {
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
counters: {
|
|
64
|
+
type: string;
|
|
65
|
+
additionalProperties: boolean;
|
|
66
|
+
required: never[];
|
|
67
|
+
properties: {
|
|
68
|
+
include: {
|
|
69
|
+
type: string;
|
|
70
|
+
items: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
exclude: {
|
|
75
|
+
type: string;
|
|
76
|
+
items: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
context: {
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
items?: undefined;
|
|
87
|
+
} | {
|
|
88
|
+
type: string;
|
|
89
|
+
items: {
|
|
90
|
+
type: string;
|
|
91
|
+
additionalProperties: {
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
required: string[];
|
|
95
|
+
properties: {
|
|
96
|
+
name: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
type: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
counters: {
|
|
103
|
+
type: string;
|
|
104
|
+
additionalProperties: boolean;
|
|
105
|
+
required: never[];
|
|
106
|
+
properties: {
|
|
107
|
+
include: {
|
|
108
|
+
type: string;
|
|
109
|
+
items: {
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
exclude: {
|
|
114
|
+
type: string;
|
|
115
|
+
items: {
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
context: {
|
|
122
|
+
type: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
optionName: string;
|
|
127
|
+
})[];
|
|
128
|
+
};
|
|
129
|
+
type: {};
|
|
130
|
+
when: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
textSize: {
|
|
136
|
+
type: string;
|
|
137
|
+
enum: string[];
|
|
138
|
+
};
|
|
139
|
+
url: {
|
|
140
|
+
type: string;
|
|
141
|
+
};
|
|
142
|
+
urlTitle: {
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
resetMargin: {
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
text: {
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
buttons: {
|
|
154
|
+
type: string;
|
|
155
|
+
items: {
|
|
156
|
+
type: string;
|
|
157
|
+
additionalProperties: boolean;
|
|
158
|
+
required: string[];
|
|
159
|
+
properties: {
|
|
160
|
+
text: {
|
|
161
|
+
type: string;
|
|
162
|
+
};
|
|
163
|
+
url: {
|
|
164
|
+
type: string;
|
|
165
|
+
};
|
|
166
|
+
theme: {
|
|
167
|
+
type: string;
|
|
168
|
+
enum: string[];
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
anchor: {
|
|
174
|
+
type: string;
|
|
175
|
+
additionalProperties: boolean;
|
|
176
|
+
required: string[];
|
|
177
|
+
properties: {
|
|
178
|
+
text: {
|
|
179
|
+
type: string;
|
|
180
|
+
contentType: string;
|
|
181
|
+
};
|
|
182
|
+
url: {
|
|
183
|
+
type: string;
|
|
184
|
+
};
|
|
185
|
+
urlTitle: {
|
|
186
|
+
type: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
visibility: {
|
|
191
|
+
oneOf: ({
|
|
192
|
+
type: string;
|
|
193
|
+
enum: string[];
|
|
194
|
+
additionalProperties?: undefined;
|
|
195
|
+
properties?: undefined;
|
|
196
|
+
} | {
|
|
197
|
+
type: string;
|
|
198
|
+
additionalProperties: boolean;
|
|
199
|
+
properties: {
|
|
200
|
+
xs: {
|
|
201
|
+
type: string;
|
|
202
|
+
};
|
|
203
|
+
sm: {
|
|
204
|
+
type: string;
|
|
205
|
+
};
|
|
206
|
+
md: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
lg: {
|
|
210
|
+
type: string;
|
|
211
|
+
};
|
|
212
|
+
xl: {
|
|
213
|
+
type: string;
|
|
214
|
+
};
|
|
215
|
+
xxl: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
enum?: undefined;
|
|
220
|
+
})[];
|
|
221
|
+
};
|
|
222
|
+
visible: {
|
|
223
|
+
type: string;
|
|
224
|
+
enum: string[];
|
|
225
|
+
};
|
|
226
|
+
hidden: {
|
|
227
|
+
type: string;
|
|
228
|
+
enum: string[];
|
|
229
|
+
};
|
|
230
|
+
resetPaddings: {
|
|
231
|
+
type: string;
|
|
232
|
+
};
|
|
233
|
+
context: {
|
|
234
|
+
type: string;
|
|
235
|
+
};
|
|
236
|
+
indent: {
|
|
237
|
+
type: string;
|
|
238
|
+
additionalProperties: boolean;
|
|
239
|
+
properties: {
|
|
240
|
+
top: {
|
|
241
|
+
enum: string[];
|
|
242
|
+
};
|
|
243
|
+
bottom: {
|
|
244
|
+
enum: string[];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
backgroundFull: {
|
|
249
|
+
type: string;
|
|
250
|
+
};
|
|
251
|
+
visibilityFilter: {
|
|
252
|
+
oneOf: ({
|
|
253
|
+
type: string;
|
|
254
|
+
items?: undefined;
|
|
255
|
+
} | {
|
|
256
|
+
type: string;
|
|
257
|
+
items: {
|
|
258
|
+
type: string;
|
|
259
|
+
};
|
|
260
|
+
})[];
|
|
261
|
+
};
|
|
262
|
+
blockUnicorn: {
|
|
263
|
+
type: string;
|
|
264
|
+
};
|
|
265
|
+
blockBackground: {
|
|
266
|
+
oneOf: ({
|
|
267
|
+
type: string;
|
|
268
|
+
additionalProperties?: undefined;
|
|
269
|
+
properties?: undefined;
|
|
270
|
+
} | {
|
|
271
|
+
type: string;
|
|
272
|
+
additionalProperties: boolean;
|
|
273
|
+
properties: {
|
|
274
|
+
color: {
|
|
275
|
+
type: string;
|
|
276
|
+
};
|
|
277
|
+
image: {
|
|
278
|
+
type: string;
|
|
279
|
+
};
|
|
280
|
+
size: {
|
|
281
|
+
type: string;
|
|
282
|
+
};
|
|
283
|
+
repeat: {
|
|
284
|
+
type: string;
|
|
285
|
+
};
|
|
286
|
+
position: {
|
|
287
|
+
type: string;
|
|
288
|
+
};
|
|
289
|
+
attachment: {
|
|
290
|
+
type: string;
|
|
291
|
+
};
|
|
292
|
+
clip: {
|
|
293
|
+
type: string;
|
|
294
|
+
};
|
|
295
|
+
origin: {
|
|
296
|
+
type: string;
|
|
297
|
+
};
|
|
298
|
+
blendMode: {
|
|
299
|
+
type: string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
})[];
|
|
303
|
+
};
|
|
304
|
+
type: {};
|
|
305
|
+
when: {
|
|
306
|
+
type: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BannerMinifyBlock = void 0;
|
|
4
|
+
const common_1 = require("../../schema/validators/common");
|
|
5
|
+
exports.BannerMinifyBlock = {
|
|
6
|
+
'banner-minify-block': {
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
properties: Object.assign(Object.assign({}, common_1.BlockBaseProps), { theme: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
enum: ['light', 'dark'],
|
|
11
|
+
}, title: common_1.TitleProps, text: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
}, buttons: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
items: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
additionalProperties: false,
|
|
18
|
+
required: ['text', 'url'],
|
|
19
|
+
properties: {
|
|
20
|
+
text: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
url: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
theme: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
enum: ['normal', 'outline'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
} }),
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -357,6 +357,9 @@ export declare const CardLayoutProps: {
|
|
|
357
357
|
};
|
|
358
358
|
})[];
|
|
359
359
|
};
|
|
360
|
+
blockUnicorn: {
|
|
361
|
+
type: string;
|
|
362
|
+
};
|
|
360
363
|
blockBackground: {
|
|
361
364
|
oneOf: ({
|
|
362
365
|
type: string;
|
|
@@ -762,6 +765,9 @@ export declare const CardLayoutBlock: {
|
|
|
762
765
|
};
|
|
763
766
|
})[];
|
|
764
767
|
};
|
|
768
|
+
blockUnicorn: {
|
|
769
|
+
type: string;
|
|
770
|
+
};
|
|
765
771
|
blockBackground: {
|
|
766
772
|
oneOf: ({
|
|
767
773
|
type: string;
|
|
@@ -313,6 +313,9 @@ export declare const FilterProps: {
|
|
|
313
313
|
};
|
|
314
314
|
})[];
|
|
315
315
|
};
|
|
316
|
+
blockUnicorn: {
|
|
317
|
+
type: string;
|
|
318
|
+
};
|
|
316
319
|
blockBackground: {
|
|
317
320
|
oneOf: ({
|
|
318
321
|
type: string;
|
|
@@ -647,6 +650,9 @@ export declare const FilterBlock: {
|
|
|
647
650
|
};
|
|
648
651
|
})[];
|
|
649
652
|
};
|
|
653
|
+
blockUnicorn: {
|
|
654
|
+
type: string;
|
|
655
|
+
};
|
|
650
656
|
blockBackground: {
|
|
651
657
|
oneOf: ({
|
|
652
658
|
type: string;
|
|
@@ -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
|
};
|